From bb697687467b33b47f16d33d2dc8dfcc6ccf7274 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Wed, 28 Jun 2023 11:46:17 -0400 Subject: stuff --- src/js/out/modules/node/crypto.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/js/out/modules/node/crypto.js') diff --git a/src/js/out/modules/node/crypto.js b/src/js/out/modules/node/crypto.js index ed1935be8..0e806596b 100644 --- a/src/js/out/modules/node/crypto.js +++ b/src/js/out/modules/node/crypto.js @@ -1,4 +1,4 @@ -import{StringDecoder as z$} from"node:string_decoder";import*as M$ from"node:buffer";import*as A$ from"node:stream";var L$=Object.defineProperty;var R$=Object.getOwnPropertyNames;var S$=536870888,F$=globalThis.Buffer,H$=globalThis.crypto,v$=H$;var q$=($,Q)=>function(){return Q||(0,$[R$($)[0]])((Q={exports:{}}).exports,Q),Q.exports},j$=($,Q)=>{for(var Y in Q)L$($,Y,{get:Q[Y],enumerable:!0})};var k$=q$({"node_modules/safe-buffer/index.js"($,Q){var Y=M$,Z=Y.Buffer;function G(U,X){for(var K in U)X[K]=U[K]}Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow?Q.exports=Y:(G(Y,$),$.Buffer=V);function V(U,X,K){return Z(U,X,K)}V.prototype=Object.create(Z.prototype),G(Z,V),V.from=function(U,X,K){if(typeof U=="number")throw new TypeError("Argument must not be a number");return Z(U,X,K)},V.alloc=function(U,X,K){if(typeof U!="number")throw new TypeError("Argument must be a number");var I=Z(U);return X!==void 0?typeof K=="string"?I.fill(X,K):I.fill(X):I.fill(0),I},V.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Z(U)},V.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Y.SlowBuffer(U)}}}),g$=q$({"node_modules/randombytes/browser.js"($,Q){var Y=65536,Z=4294967295;function G(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var V=k$().Buffer,U=v$;U&&U.getRandomValues?Q.exports=X:Q.exports=G;function X(K,I){if(K>Z)throw new RangeError("requested too many random bytes");var O=V.allocUnsafe(K);if(K>0)if(K>Y)for(var J=0;J=this._blockSize;){for(var O=this._blockOffset;O0;++J)this._length[J]+=F,F=this._length[J]/4294967296|0,F>0&&(this._length[J]-=4294967296*F);return this},V.prototype._update=function(){throw new Error("_update is not implemented")},V.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var X=this._digest();U!==void 0&&(X=X.toString(U)),this._block.fill(0),this._blockOffset=0;for(var K=0;K<4;++K)this._length[K]=0;return X},V.prototype._digest=function(){throw new Error("_digest is not implemented")},Q.exports=V}}),x$=q$({"node_modules/md5.js/index.js"($,Q){var Y=_$(),Z=N$(),G=k$().Buffer,V=new Array(16);function U(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Y(U,Z),U.prototype._update=function(){for(var F=V,A=0;A<16;++A)F[A]=this._block.readInt32LE(A*4);var H=this._a,W=this._b,E=this._c,T=this._d;H=K(H,W,E,T,F[0],3614090360,7),T=K(T,H,W,E,F[1],3905402710,12),E=K(E,T,H,W,F[2],606105819,17),W=K(W,E,T,H,F[3],3250441966,22),H=K(H,W,E,T,F[4],4118548399,7),T=K(T,H,W,E,F[5],1200080426,12),E=K(E,T,H,W,F[6],2821735955,17),W=K(W,E,T,H,F[7],4249261313,22),H=K(H,W,E,T,F[8],1770035416,7),T=K(T,H,W,E,F[9],2336552879,12),E=K(E,T,H,W,F[10],4294925233,17),W=K(W,E,T,H,F[11],2304563134,22),H=K(H,W,E,T,F[12],1804603682,7),T=K(T,H,W,E,F[13],4254626195,12),E=K(E,T,H,W,F[14],2792965006,17),W=K(W,E,T,H,F[15],1236535329,22),H=I(H,W,E,T,F[1],4129170786,5),T=I(T,H,W,E,F[6],3225465664,9),E=I(E,T,H,W,F[11],643717713,14),W=I(W,E,T,H,F[0],3921069994,20),H=I(H,W,E,T,F[5],3593408605,5),T=I(T,H,W,E,F[10],38016083,9),E=I(E,T,H,W,F[15],3634488961,14),W=I(W,E,T,H,F[4],3889429448,20),H=I(H,W,E,T,F[9],568446438,5),T=I(T,H,W,E,F[14],3275163606,9),E=I(E,T,H,W,F[3],4107603335,14),W=I(W,E,T,H,F[8],1163531501,20),H=I(H,W,E,T,F[13],2850285829,5),T=I(T,H,W,E,F[2],4243563512,9),E=I(E,T,H,W,F[7],1735328473,14),W=I(W,E,T,H,F[12],2368359562,20),H=O(H,W,E,T,F[5],4294588738,4),T=O(T,H,W,E,F[8],2272392833,11),E=O(E,T,H,W,F[11],1839030562,16),W=O(W,E,T,H,F[14],4259657740,23),H=O(H,W,E,T,F[1],2763975236,4),T=O(T,H,W,E,F[4],1272893353,11),E=O(E,T,H,W,F[7],4139469664,16),W=O(W,E,T,H,F[10],3200236656,23),H=O(H,W,E,T,F[13],681279174,4),T=O(T,H,W,E,F[0],3936430074,11),E=O(E,T,H,W,F[3],3572445317,16),W=O(W,E,T,H,F[6],76029189,23),H=O(H,W,E,T,F[9],3654602809,4),T=O(T,H,W,E,F[12],3873151461,11),E=O(E,T,H,W,F[15],530742520,16),W=O(W,E,T,H,F[2],3299628645,23),H=J(H,W,E,T,F[0],4096336452,6),T=J(T,H,W,E,F[7],1126891415,10),E=J(E,T,H,W,F[14],2878612391,15),W=J(W,E,T,H,F[5],4237533241,21),H=J(H,W,E,T,F[12],1700485571,6),T=J(T,H,W,E,F[3],2399980690,10),E=J(E,T,H,W,F[10],4293915773,15),W=J(W,E,T,H,F[1],2240044497,21),H=J(H,W,E,T,F[8],1873313359,6),T=J(T,H,W,E,F[15],4264355552,10),E=J(E,T,H,W,F[6],2734768916,15),W=J(W,E,T,H,F[13],1309151649,21),H=J(H,W,E,T,F[4],4149444226,6),T=J(T,H,W,E,F[11],3174756917,10),E=J(E,T,H,W,F[2],718787259,15),W=J(W,E,T,H,F[9],3951481745,21),this._a=this._a+H|0,this._b=this._b+W|0,this._c=this._c+E|0,this._d=this._d+T|0},U.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 F=G.allocUnsafe(16);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F};function X(F,A){return F<>>32-A}function K(F,A,H,W,E,T,D){return X(F+(A&H|~A&W)+E+T|0,D)+A|0}function I(F,A,H,W,E,T,D){return X(F+(A&W|H&~W)+E+T|0,D)+A|0}function O(F,A,H,W,E,T,D){return X(F+(A^H^W)+E+T|0,D)+A|0}function J(F,A,H,W,E,T,D){return X(F+(H^(A|~W))+E+T|0,D)+A|0}Q.exports=U}}),B$=q$({"node_modules/ripemd160/index.js"($,Q){var Y=F$,Z=_$(),G=N$(),V=new Array(16),U=[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],X=[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],K=[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],I=[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],O=[0,1518500249,1859775393,2400959708,2840853838],J=[1352829926,1548603684,1836072691,2053994217,0];function F(){G.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Z(F,G),F.prototype._update=function(){for(var C=V,L=0;L<16;++L)C[L]=this._block.readInt32LE(L*4);for(var R=this._a|0,P=this._b|0,z=this._c|0,M=this._d|0,S=this._e|0,v=this._a|0,q=this._b|0,j=this._c|0,k=this._d|0,g=this._e|0,_=0;_<80;_+=1){var N,x;_<16?(N=H(R,P,z,M,S,C[U[_]],O[0],K[_]),x=D(v,q,j,k,g,C[X[_]],J[0],I[_])):_<32?(N=W(R,P,z,M,S,C[U[_]],O[1],K[_]),x=T(v,q,j,k,g,C[X[_]],J[1],I[_])):_<48?(N=E(R,P,z,M,S,C[U[_]],O[2],K[_]),x=E(v,q,j,k,g,C[X[_]],J[2],I[_])):_<64?(N=T(R,P,z,M,S,C[U[_]],O[3],K[_]),x=W(v,q,j,k,g,C[X[_]],J[3],I[_])):(N=D(R,P,z,M,S,C[U[_]],O[4],K[_]),x=H(v,q,j,k,g,C[X[_]],J[4],I[_])),R=S,S=M,M=A(z,10),z=P,P=N,v=g,g=k,k=A(j,10),j=q,q=x}var B=this._b+z+k|0;this._b=this._c+M+g|0,this._c=this._d+S+v|0,this._d=this._e+R+q|0,this._e=this._a+P+j|0,this._a=B},F.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 C=Y.alloc?Y.alloc(20):new Y(20);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C.writeInt32LE(this._e,16),C};function A(C,L){return C<>>32-L}function H(C,L,R,P,z,M,S,v){return A(C+(L^R^P)+M+S|0,v)+z|0}function W(C,L,R,P,z,M,S,v){return A(C+(L&R|~L&P)+M+S|0,v)+z|0}function E(C,L,R,P,z,M,S,v){return A(C+((L|~R)^P)+M+S|0,v)+z|0}function T(C,L,R,P,z,M,S,v){return A(C+(L&P|R&~P)+M+S|0,v)+z|0}function D(C,L,R,P,z,M,S,v){return A(C+(L^(R|~P))+M+S|0,v)+z|0}Q.exports=F}}),y$=q$({"node_modules/sha.js/hash.js"($,Q){var Y=k$().Buffer;function Z(G,V){this._block=Y.alloc(G),this._finalSize=V,this._blockSize=G,this._len=0}Z.prototype.update=function(G,V){typeof G=="string"&&(V=V||"utf8",G=Y.from(G,V));for(var U=this._block,X=this._blockSize,K=G.length,I=this._len,O=0;O=this._finalSize&&(this._update(this._block),this._block.fill(0));var U=this._len*8;if(U<=4294967295)this._block.writeUInt32BE(U,this._blockSize-4);else{var X=(U&4294967295)>>>0,K=(U-X)/4294967296;this._block.writeUInt32BE(K,this._blockSize-8),this._block.writeUInt32BE(X,this._blockSize-4)}this._update(this._block);var I=this._hash();return G?I.toString(G):I},Z.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Q.exports=Z}}),w$=q$({"node_modules/sha.js/sha.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(J){return J<<5|J>>>27}function I(J){return J<<30|J>>>2}function O(J,F,A,H){return J===0?F&A|~F&H:J===2?F&A|F&H|A&H:F^A^H}X.prototype._update=function(J){for(var F=this._w,A=this._a|0,H=this._b|0,W=this._c|0,E=this._d|0,T=this._e|0,D=0;D<16;++D)F[D]=J.readInt32BE(D*4);for(;D<80;++D)F[D]=F[D-3]^F[D-8]^F[D-14]^F[D-16];for(var C=0;C<80;++C){var L=~~(C/20),R=K(A)+O(L,H,W,E)+T+F[C]+V[L]|0;T=E,E=W,W=I(H),H=A,A=R}this._a=A+this._a|0,this._b=H+this._b|0,this._c=W+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},X.prototype._hash=function(){var J=G.allocUnsafe(20);return J.writeInt32BE(this._a|0,0),J.writeInt32BE(this._b|0,4),J.writeInt32BE(this._c|0,8),J.writeInt32BE(this._d|0,12),J.writeInt32BE(this._e|0,16),J},Q.exports=X}}),p$=q$({"node_modules/sha.js/sha1.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(F){return F<<1|F>>>31}function I(F){return F<<5|F>>>27}function O(F){return F<<30|F>>>2}function J(F,A,H,W){return F===0?A&H|~A&W:F===2?A&H|A&W|H&W:A^H^W}X.prototype._update=function(F){for(var A=this._w,H=this._a|0,W=this._b|0,E=this._c|0,T=this._d|0,D=this._e|0,C=0;C<16;++C)A[C]=F.readInt32BE(C*4);for(;C<80;++C)A[C]=K(A[C-3]^A[C-8]^A[C-14]^A[C-16]);for(var L=0;L<80;++L){var R=~~(L/20),P=I(H)+J(R,W,E,T)+D+A[L]+V[R]|0;D=T,T=E,E=O(W),W=H,H=P}this._a=H+this._a|0,this._b=W+this._b|0,this._c=E+this._c|0,this._d=T+this._d|0,this._e=D+this._e|0},X.prototype._hash=function(){var F=G.allocUnsafe(20);return F.writeInt32BE(this._a|0,0),F.writeInt32BE(this._b|0,4),F.writeInt32BE(this._c|0,8),F.writeInt32BE(this._d|0,12),F.writeInt32BE(this._e|0,16),F},Q.exports=X}}),f$=q$({"node_modules/sha.js/sha256.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[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],U=new Array(64);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.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};function K(H,W,E){return E^H&(W^E)}function I(H,W,E){return H&W|E&(H|W)}function O(H){return(H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10)}function J(H){return(H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7)}function F(H){return(H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3}function A(H){return(H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10}X.prototype._update=function(H){for(var W=this._w,E=this._a|0,T=this._b|0,D=this._c|0,C=this._d|0,L=this._e|0,R=this._f|0,P=this._g|0,z=this._h|0,M=0;M<16;++M)W[M]=H.readInt32BE(M*4);for(;M<64;++M)W[M]=A(W[M-2])+W[M-7]+F(W[M-15])+W[M-16]|0;for(var S=0;S<64;++S){var v=z+J(L)+K(L,R,P)+V[S]+W[S]|0,q=O(E)+I(E,T,D)|0;z=P,P=R,R=L,L=C+v|0,C=D,D=T,T=E,E=v+q|0}this._a=E+this._a|0,this._b=T+this._b|0,this._c=D+this._c|0,this._d=C+this._d|0,this._e=L+this._e|0,this._f=R+this._f|0,this._g=P+this._g|0,this._h=z+this._h|0},X.prototype._hash=function(){var H=G.allocUnsafe(32);return H.writeInt32BE(this._a,0),H.writeInt32BE(this._b,4),H.writeInt32BE(this._c,8),H.writeInt32BE(this._d,12),H.writeInt32BE(this._e,16),H.writeInt32BE(this._f,20),H.writeInt32BE(this._g,24),H.writeInt32BE(this._h,28),H},Q.exports=X}}),c$=q$({"node_modules/sha.js/sha224.js"($,Q){var Y=_$(),Z=f$(),G=y$(),V=k$().Buffer,U=new Array(64);function X(){this.init(),this._w=U,G.call(this,64,56)}Y(X,Z),X.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},X.prototype._hash=function(){var K=V.allocUnsafe(28);return K.writeInt32BE(this._a,0),K.writeInt32BE(this._b,4),K.writeInt32BE(this._c,8),K.writeInt32BE(this._d,12),K.writeInt32BE(this._e,16),K.writeInt32BE(this._f,20),K.writeInt32BE(this._g,24),K},Q.exports=X}}),h$=q$({"node_modules/sha.js/sha512.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[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],U=new Array(160);function X(){this.init(),this._w=U,Z.call(this,128,112)}Y(X,Z),X.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};function K(T,D,C){return C^T&(D^C)}function I(T,D,C){return T&D|C&(T|D)}function O(T,D){return(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)}function J(T,D){return(T>>>14|D<<18)^(T>>>18|D<<14)^(D>>>9|T<<23)}function F(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^T>>>7}function A(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^(T>>>7|D<<25)}function H(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^T>>>6}function W(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^(T>>>6|D<<26)}function E(T,D){return T>>>0>>0?1:0}X.prototype._update=function(T){for(var D=this._w,C=this._ah|0,L=this._bh|0,R=this._ch|0,P=this._dh|0,z=this._eh|0,M=this._fh|0,S=this._gh|0,v=this._hh|0,q=this._al|0,j=this._bl|0,k=this._cl|0,g=this._dl|0,_=this._el|0,N=this._fl|0,x=this._gl|0,B=this._hl|0,y=0;y<32;y+=2)D[y]=T.readInt32BE(y*4),D[y+1]=T.readInt32BE(y*4+4);for(;y<160;y+=2){var w=D[y-30],p=D[y-30+1],f=F(w,p),c=A(p,w);w=D[y-4],p=D[y-4+1];var h=H(w,p),d=W(p,w),b=D[y-14],l=D[y-14+1],o=D[y-32],u=D[y-32+1],n=c+l|0,s=f+b+E(n,c)|0;n=n+d|0,s=s+h+E(n,d)|0,n=n+u|0,s=s+o+E(n,u)|0,D[y]=s,D[y+1]=n}for(var t=0;t<160;t+=2){s=D[t],n=D[t+1];var m=I(C,L,R),a=I(q,j,k),e=O(C,q),r=O(q,C),i=J(z,_),$0=J(_,z),Q0=V[t],Y0=V[t+1],Z0=K(z,M,S),G0=K(_,N,x),V0=B+$0|0,U0=v+i+E(V0,B)|0;V0=V0+G0|0,U0=U0+Z0+E(V0,G0)|0,V0=V0+Y0|0,U0=U0+Q0+E(V0,Y0)|0,V0=V0+n|0,U0=U0+s+E(V0,n)|0;var X0=r+a|0,K0=e+m+E(X0,r)|0;v=S,B=x,S=M,x=N,M=z,N=_,_=g+V0|0,z=P+U0+E(_,g)|0,P=R,g=k,R=L,k=j,L=C,j=q,q=V0+X0|0,C=U0+K0+E(q,V0)|0}this._al=this._al+q|0,this._bl=this._bl+j|0,this._cl=this._cl+k|0,this._dl=this._dl+g|0,this._el=this._el+_|0,this._fl=this._fl+N|0,this._gl=this._gl+x|0,this._hl=this._hl+B|0,this._ah=this._ah+C+E(this._al,q)|0,this._bh=this._bh+L+E(this._bl,j)|0,this._ch=this._ch+R+E(this._cl,k)|0,this._dh=this._dh+P+E(this._dl,g)|0,this._eh=this._eh+z+E(this._el,_)|0,this._fh=this._fh+M+E(this._fl,N)|0,this._gh=this._gh+S+E(this._gl,x)|0,this._hh=this._hh+v+E(this._hl,B)|0},X.prototype._hash=function(){var T=G.allocUnsafe(64);function D(C,L,R){T.writeInt32BE(C,R),T.writeInt32BE(L,R+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),T},Q.exports=X}}),d$=q$({"node_modules/sha.js/sha384.js"($,Q){var Y=_$(),Z=h$(),G=y$(),V=k$().Buffer,U=new Array(160);function X(){this.init(),this._w=U,G.call(this,128,112)}Y(X,Z),X.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},X.prototype._hash=function(){var K=V.allocUnsafe(48);function I(O,J,F){K.writeInt32BE(O,F),K.writeInt32BE(J,F+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),K},Q.exports=X}}),b$=q$({"node_modules/sha.js/index.js"(Y,Q){var Y=Q.exports=function(Z){Z=Z.toLowerCase();var G=Y[Z];if(!G)throw new Error(Z+" is not supported (we accept pull requests)");return new G};Y.sha=w$(),Y.sha1=p$(),Y.sha224=c$(),Y.sha256=f$(),Y.sha384=d$(),Y.sha512=h$()}}),l$=q$({"node_modules/cipher-base/index.js"($,Q){var Y=k$().Buffer,Z=_$();function G(V){A$.Transform.call(this),this.hashMode=typeof V=="string",this.hashMode?this[V]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}Z(G,A$.Transform),G.prototype.update=function(V,U,X){typeof V=="string"&&(V=Y.from(V,U));var K=this._update(V);return this.hashMode?this:(X&&(K=this._toString(K,X)),K)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function(V,U,X){var K;try{this.hashMode?this._update(V):this.push(this._update(V))}catch(I){K=I}finally{X(K)}},G.prototype._flush=function(V){var U;try{this.push(this.__final())}catch(X){U=X}V(U)},G.prototype._finalOrDigest=function(V){var U=this.__final()||Y.alloc(0);return V&&(U=this._toString(U,V,!0)),U},G.prototype._toString=function(V,U,X){if(this._decoder||(this._decoder=new z$(U),this._encoding=U),this._encoding!==U)throw new Error("can't switch encodings");var K=this._decoder.write(V);return X&&(K+=this._decoder.end()),K},Q.exports=G}}),o$=q$({"node_modules/create-hash/browser.js"($,Q){const Y=function V(U,X){this._options=X,this._hasher=new sY(U,X),this._finalized=!1};Y.prototype=Object.create(A$.Transform.prototype),Y.prototype.update=function V(U,X){return this._checkFinalized(),this._hasher.update(U,X),this},Y.prototype.digest=function V(U,X){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(U,X)},Y.prototype._checkFinalized=function V(){if(this._finalized){var U=new Error("Digest already called");throw U.code="ERR_CRYPTO_HASH_FINALIZED",U}},Y.prototype.copy=function V(){const U=Object.create(Y.prototype);return U._options=this._options,U._hasher=this._hasher.copy(),U._finalized=this._finalized,U};const Z={__proto__:A$.Transform.prototype,...Y.prototype,_transform(V,U,X){this.update(V,U),X&&X()},_flush(V){this.push(this.digest()),V()}},G=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let V of G)Object.defineProperty(Y.prototype,V,{get(){return Object.setPrototypeOf(this,Z),A$.Transform.call(this,this._options),this[V]},enumerable:!1,configurable:!0});Q.exports=function V(U){return new Y(U)},Q.exports.createHash=Q.exports,Q.exports.Hash=Y}}),u$=q$({"node_modules/create-hmac/legacy.js"($,Q){var Y=_$(),Z=k$().Buffer,G=l$(),V=Z.alloc(128),U=64;function X(K,I){G.call(this,"digest"),typeof I=="string"&&(I=Z.from(I)),this._alg=K,this._key=I,I.length>U?I=K(I):I.lengthA){var H=J==="rmd160"?new X:K(J);F=H.update(F).digest()}else F.lengthY||G!==G)throw new TypeError("Bad key length")}}}),e$=q$({"node_modules/pbkdf2/lib/default-encoding.js"($,Q){var Y;global.process&&global.process.browser?Y="utf-8":global.process&&global.process.version?(Z=parseInt(process.version.split(".")[0].slice(1),10),Y=Z>=6?"utf-8":"binary"):Y="utf-8";var Z;Q.exports=Y}}),r$=q$({"node_modules/pbkdf2/lib/to-buffer.js"($,Q){var Y=k$().Buffer;Q.exports=function(Z,G,V){if(Y.isBuffer(Z))return Z;if(typeof Z=="string")return Y.from(Z,G);if(ArrayBuffer.isView(Z))return Y.from(Z.buffer);throw new TypeError(V+" must be a string, a Buffer, a typed array or a DataView")}}}),i$=q$({"node_modules/pbkdf2/lib/sync-browser.js"($,Q){var Y=n$(),Z=B$(),G=b$(),V=k$().Buffer,U=a$(),X=e$(),K=r$(),I=V.alloc(128),O={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function J(H,W,E){var T=F(H),D=H==="sha512"||H==="sha384"?128:64;W.length>D?W=T(W):W.length>>0},$.writeUInt32BE=function(G,V,U){G[0+U]=V>>>24,G[1+U]=V>>>16&255,G[2+U]=V>>>8&255,G[3+U]=V&255},$.ip=function(G,V,U,X){for(var K=0,I=0,O=6;O>=0;O-=2){for(var J=0;J<=24;J+=8)K<<=1,K|=V>>>J+O&1;for(var J=0;J<=24;J+=8)K<<=1,K|=G>>>J+O&1}for(var O=6;O>=0;O-=2){for(var J=1;J<=25;J+=8)I<<=1,I|=V>>>J+O&1;for(var J=1;J<=25;J+=8)I<<=1,I|=G>>>J+O&1}U[X+0]=K>>>0,U[X+1]=I>>>0},$.rip=function(G,V,U,X){for(var K=0,I=0,O=0;O<4;O++)for(var J=24;J>=0;J-=8)K<<=1,K|=V>>>J+O&1,K<<=1,K|=G>>>J+O&1;for(var O=4;O<8;O++)for(var J=24;J>=0;J-=8)I<<=1,I|=V>>>J+O&1,I<<=1,I|=G>>>J+O&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.pc1=function(G,V,U,X){for(var K=0,I=0,O=7;O>=5;O--){for(var J=0;J<=24;J+=8)K<<=1,K|=V>>J+O&1;for(var J=0;J<=24;J+=8)K<<=1,K|=G>>J+O&1}for(var J=0;J<=24;J+=8)K<<=1,K|=V>>J+O&1;for(var O=1;O<=3;O++){for(var J=0;J<=24;J+=8)I<<=1,I|=V>>J+O&1;for(var J=0;J<=24;J+=8)I<<=1,I|=G>>J+O&1}for(var J=0;J<=24;J+=8)I<<=1,I|=G>>J+O&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.r28shl=function(G,V){return G<>>28-V};var Q=[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];$.pc2=function(G,V,U,X){for(var K=0,I=0,O=Q.length>>>1,J=0;J>>Q[J]&1;for(var J=O;J>>Q[J]&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.expand=function(G,V,U){var X=0,K=0;X=(G&1)<<5|G>>>27;for(var I=23;I>=15;I-=4)X<<=6,X|=G>>>I&63;for(var I=11;I>=3;I-=4)K|=G>>>I&63,K<<=6;K|=(G&31)<<1|G>>>31,V[U+0]=X>>>0,V[U+1]=K>>>0};var Y=[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];$.substitute=function(G,V){for(var U=0,X=0;X<4;X++){var K=G>>>18-X*6&63,I=Y[X*64+K];U<<=4,U|=I}for(var X=0;X<4;X++){var K=V>>>18-X*6&63,I=Y[256+X*64+K];U<<=4,U|=I}return U>>>0};var Z=[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];$.permute=function(G){for(var V=0,U=0;U>>Z[U]&1;return V>>>0},$.padSplit=function(G,V,U){for(var X=G.toString(2);X.length0;X--)V+=this._buffer(G,V),U+=this._flushBuffer(K,U);return V+=this._buffer(G,V),K},Z.prototype.final=function(G){var V;G&&(V=this.update(G));var U;return this.type==="encrypt"?U=this._finalEncrypt():U=this._finalDecrypt(),V?V.concat(U):U},Z.prototype._pad=function(G,V){if(V===0)return!1;for(;V>>1];J=G.r28shl(J,H),F=G.r28shl(F,H),G.pc2(J,F,I.keys,A)}},X.prototype._update=function(I,O,J,F){var A=this._desState,H=G.readUInt32BE(I,O),W=G.readUInt32BE(I,O+4);G.ip(H,W,A.tmp,0),H=A.tmp[0],W=A.tmp[1],this.type==="encrypt"?this._encrypt(A,H,W,A.tmp,0):this._decrypt(A,H,W,A.tmp,0),H=A.tmp[0],W=A.tmp[1],G.writeUInt32BE(J,H,F),G.writeUInt32BE(J,W,F+4)},X.prototype._pad=function(I,O){for(var J=I.length-O,F=O;F>>0,H=R}G.rip(W,H,F,A)},X.prototype._decrypt=function(I,O,J,F,A){for(var H=J,W=O,E=I.keys.length-2;E>=0;E-=2){var T=I.keys[E],D=I.keys[E+1];G.expand(H,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=H;H=(W^L)>>>0,W=R}G.rip(H,W,F,A)}}}),UQ=q$({"node_modules/des.js/lib/des/cbc.js"($){var Q=ZQ(),Y=_$(),Z={};function G(U){Q.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var X=0;X>K%8,G._prev=Z(G._prev,U?J:F);return O}function Z(G,V){var U=G.length,X=-1,K=Q.allocUnsafe(G.length);for(G=Q.concat([G,Q.from([V])]);++X>7;return K}$.encrypt=function(G,V,U){for(var X=V.length,K=Q.allocUnsafe(X),I=-1;++I>>24]^W[C>>>16&255]^E[L>>>8&255]^T[R&255]^O[v++],z=H[C>>>24]^W[L>>>16&255]^E[R>>>8&255]^T[D&255]^O[v++],M=H[L>>>24]^W[R>>>16&255]^E[D>>>8&255]^T[C&255]^O[v++],S=H[R>>>24]^W[D>>>16&255]^E[C>>>8&255]^T[L&255]^O[v++],D=P,C=z,L=M,R=S;return P=(F[D>>>24]<<24|F[C>>>16&255]<<16|F[L>>>8&255]<<8|F[R&255])^O[v++],z=(F[C>>>24]<<24|F[L>>>16&255]<<16|F[R>>>8&255]<<8|F[D&255])^O[v++],M=(F[L>>>24]<<24|F[R>>>16&255]<<16|F[D>>>8&255]<<8|F[C&255])^O[v++],S=(F[R>>>24]<<24|F[D>>>16&255]<<16|F[C>>>8&255]<<8|F[L&255])^O[v++],P=P>>>0,z=z>>>0,M=M>>>0,S=S>>>0,[P,z,M,S]}var U=[0,1,2,4,8,16,32,64,128,27,54],X=function(){for(var I=new Array(256),O=0;O<256;O++)O<128?I[O]=O<<1:I[O]=O<<1^283;for(var J=[],F=[],A=[[],[],[],[]],H=[[],[],[],[]],W=0,E=0,T=0;T<256;++T){var D=E^E<<1^E<<2^E<<3^E<<4;D=D>>>8^D&255^99,J[W]=D,F[D]=W;var C=I[W],L=I[C],R=I[L],P=I[D]*257^D*16843008;A[0][W]=P<<24|P>>>8,A[1][W]=P<<16|P>>>16,A[2][W]=P<<8|P>>>24,A[3][W]=P,P=R*16843009^L*65537^C*257^W*16843008,H[0][D]=P<<24|P>>>8,H[1][D]=P<<16|P>>>16,H[2][D]=P<<8|P>>>24,H[3][D]=P,W===0?W=E=1:(W=C^I[I[I[R^C]]],E^=I[I[E]])}return{SBOX:J,INV_SBOX:F,SUB_MIX:A,INV_SUB_MIX:H}}();function K(I){this._key=Z(I),this._reset()}K.blockSize=16,K.keySize=32,K.prototype.blockSize=K.blockSize,K.prototype.keySize=K.keySize,K.prototype._reset=function(){for(var I=this._key,O=I.length,J=O+6,F=(J+1)*4,A=[],H=0;H>>24,W=X.SBOX[W>>>24]<<24|X.SBOX[W>>>16&255]<<16|X.SBOX[W>>>8&255]<<8|X.SBOX[W&255],W^=U[H/O|0]<<24):O>6&&H%O===4&&(W=X.SBOX[W>>>24]<<24|X.SBOX[W>>>16&255]<<16|X.SBOX[W>>>8&255]<<8|X.SBOX[W&255]),A[H]=A[H-O]^W}for(var E=[],T=0;T>>24]]^X.INV_SUB_MIX[1][X.SBOX[C>>>16&255]]^X.INV_SUB_MIX[2][X.SBOX[C>>>8&255]]^X.INV_SUB_MIX[3][X.SBOX[C&255]]}this._nRounds=J,this._keySchedule=A,this._invKeySchedule=E},K.prototype.encryptBlockRaw=function(I){return I=Z(I),V(I,this._keySchedule,X.SUB_MIX,X.SBOX,this._nRounds)},K.prototype.encryptBlock=function(I){var O=this.encryptBlockRaw(I),J=Y.allocUnsafe(16);return J.writeUInt32BE(O[0],0),J.writeUInt32BE(O[1],4),J.writeUInt32BE(O[2],8),J.writeUInt32BE(O[3],12),J},K.prototype.decryptBlock=function(I){I=Z(I);var O=I[1];I[1]=I[3],I[3]=O;var J=V(I,this._invKeySchedule,X.INV_SUB_MIX,X.INV_SBOX,this._nRounds),F=Y.allocUnsafe(16);return F.writeUInt32BE(J[0],0),F.writeUInt32BE(J[3],4),F.writeUInt32BE(J[2],8),F.writeUInt32BE(J[1],12),F},K.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},Q.exports.AES=K}}),RQ=q$({"node_modules/browserify-aes/ghash.js"($,Q){var Y=k$().Buffer,Z=Y.alloc(16,0);function G(X){return[X.readUInt32BE(0),X.readUInt32BE(4),X.readUInt32BE(8),X.readUInt32BE(12)]}function V(X){var K=Y.allocUnsafe(16);return K.writeUInt32BE(X[0]>>>0,0),K.writeUInt32BE(X[1]>>>0,4),K.writeUInt32BE(X[2]>>>0,8),K.writeUInt32BE(X[3]>>>0,12),K}function U(X){this.h=X,this.state=Y.alloc(16,0),this.cache=Y.allocUnsafe(0)}U.prototype.ghash=function(X){for(var K=-1;++K0;I--)X[I]=X[I]>>>1|(X[I-1]&1)<<31;X[0]=X[0]>>>1,J&&(X[0]=X[0]^225<<24)}this.state=V(K)},U.prototype.update=function(X){this.cache=Y.concat([this.cache,X]);for(var K;this.cache.length>=16;)K=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(K)},U.prototype.final=function(X,K){return this.cache.length&&this.ghash(Y.concat([this.cache,Z],16)),this.ghash(V([0,X,0,K])),this.state},Q.exports=U}}),PQ=q$({"node_modules/browserify-aes/authCipher.js"($,Q){var Y=LQ(),Z=k$().Buffer,G=l$(),V=_$(),U=RQ(),X=JQ(),K=TQ();function I(F,A){var H=0;F.length!==A.length&&H++;for(var W=Math.min(F.length,A.length),E=0;E0||K>0;){var A=new Z;A.update(F),A.update(V),U&&A.update(U),F=A.digest();var H=0;if(I>0){var W=O.length-I;H=Math.min(I,F.length),F.copy(O,W,0,H),I-=H}if(H0){var E=J.length-K,T=Math.min(K,F.length-H);F.copy(J,E,H,H+T),K-=T}}return F.fill(0),{key:O,iv:J}}Q.exports=G}}),SQ=q$({"node_modules/browserify-aes/encrypter.js"($){var Q=CQ(),Y=PQ(),Z=k$().Buffer,G=zQ(),V=l$(),U=LQ(),X=MQ(),K=_$();function I(H,W,E){V.call(this),this._cache=new J,this._cipher=new U.AES(W),this._prev=Z.from(E),this._mode=H,this._autopadding=!0}K(I,V),I.prototype._update=function(H){this._cache.add(H);for(var W,E,T=[];W=this._cache.get();)E=this._mode.encrypt(this,W),T.push(E);return Z.concat(T)};var O=Z.alloc(16,16);I.prototype._final=function(){var H=this._cache.flush();if(this._autopadding)return H=this._mode.encrypt(this,H),this._cipher.scrub(),H;if(!H.equals(O))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(H){return this._autopadding=!!H,this};function J(){this.cache=Z.allocUnsafe(0)}J.prototype.add=function(H){this.cache=Z.concat([this.cache,H])},J.prototype.get=function(){if(this.cache.length>15){var H=this.cache.slice(0,16);return this.cache=this.cache.slice(16),H}return null},J.prototype.flush=function(){for(var H=16-this.cache.length,W=Z.allocUnsafe(H),E=-1;++E16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W}else if(this.cache.length>=16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W;return null},O.prototype.flush=function(){if(this.cache.length)return this.cache};function J(H){var W=H[15];if(W<1||W>16)throw new Error("unable to decrypt data");for(var E=-1;++E0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),_Q=q$({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),NQ=q$({"(disabled):node_modules/crypto-browserify/index.js"(){}}),xQ=q$({"node_modules/brorand/index.js"($,Q){var Y;Q.exports=function(G){return Y||(Y=new Z(null)),Y.generate(G)};function Z(G){this.rand=G}Q.exports.Rand=Z,Z.prototype.generate=function(G){return this._rand(G)},Z.prototype._rand=function(G){var V=new F$(G);return H$.getRandomValues(V),V}}}),BQ=q$({"node_modules/miller-rabin/lib/mr.js"($,Q){var Y=_Q(),Z=xQ();function G(V){this.rand=V||new Z.Rand}Q.exports=G,G.create=function(V){return new G(V)},G.prototype._randbelow=function(V){var U=V.bitLength(),X=Math.ceil(U/8);do var K=new Y(this.rand.generate(X));while(K.cmp(V)>=0);return K},G.prototype._randrange=function(V,U){var X=U.sub(V);return V.add(this._randbelow(X))},G.prototype.test=function(V,U,X){var K=V.bitLength(),I=Y.mont(V),O=new Y(1).toRed(I);U||(U=Math.max(1,K/48|0));for(var J=V.subn(1),F=0;!J.testn(F);F++);for(var A=V.shrn(F),H=J.toRed(I),W=!0;U>0;U--){var E=this._randrange(new Y(2),J);X&&X(E);var T=E.toRed(I).redPow(A);if(!(T.cmp(O)===0||T.cmp(H)===0)){for(var D=1;D0;U--){var H=this._randrange(new Y(2),O),W=V.gcd(H);if(W.cmpn(1)!==0)return W;var E=H.toRed(K).redPow(F);if(!(E.cmp(I)===0||E.cmp(A)===0)){for(var T=1;Tz;)S.ishrn(1);if(S.isEven()&&S.iadd(X),S.testn(1)||S.iadd(K),M.cmp(K)){if(!M.cmp(I))for(;S.mod(F).cmp(A);)S.iadd(E)}else for(;S.mod(G).cmp(W);)S.iadd(E);if(v=S.shrn(1),L(v)&&L(S)&&R(v)&&R(S)&&U.test(v)&&U.test(S))return S}}}}),wQ=q$({"node_modules/diffie-hellman/lib/primes.json"($,Q){Q.exports={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"}}}}),pQ=q$({"node_modules/diffie-hellman/lib/dh.js"($,Q){var Y=gQ(),Z=BQ(),G=new Z,V=new Y(24),U=new Y(11),X=new Y(10),K=new Y(3),I=new Y(7),O=yQ(),J=g$();Q.exports=E;function F(D,C){return C=C||"utf8",F$.isBuffer(D)||(D=new F$(D,C)),this._pub=new Y(D),this}function A(D,C){return C=C||"utf8",F$.isBuffer(D)||(D=new F$(D,C)),this._priv=new Y(D),this}var H={};function W(D,C){var L=C.toString("hex"),R=[L,D.toString(16)].join("_");if(R in H)return H[R];var P=0;if(D.isEven()||!O.simpleSieve||!O.fermatTest(D)||!G.test(D))return P+=1,L==="02"||L==="05"?P+=8:P+=4,H[R]=P,P;G.test(D.shrn(1))||(P+=2);var z;switch(L){case"02":D.mod(V).cmp(U)&&(P+=8);break;case"05":z=D.mod(X),z.cmp(K)&&z.cmp(I)&&(P+=8);break;default:P+=4}return H[R]=P,P}function E(D,C,L){this.setGenerator(C),this.__prime=new Y(D),this._prime=Y.mont(this.__prime),this._primeLen=D.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,L?(this.setPublicKey=F,this.setPrivateKey=A):this._primeCode=8}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=W(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new Y(J(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(D){D=new Y(D),D=D.toRed(this._prime);var C=D.redPow(this._priv).fromRed(),L=new F$(C.toArray()),R=this.getPrime();if(L.length0?_:N},U.min=function(_,N){return _.cmp(N)<0?_:N},U.prototype._init=function(_,N,x){if(typeof _=="number")return this._initNumber(_,N,x);if(typeof _=="object")return this._initArray(_,N,x);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),_=_.toString().replace(/\s+/g,"");var B=0;_[0]==="-"&&(B++,this.negative=1),B<_.length&&(N===16?this._parseHex(_,B,x):(this._parseBase(_,N,B),x==="le"&&this._initArray(this.toArray(),N,x)))},U.prototype._initNumber=function(_,N,x){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[_&67108863],this.length=1):_<4503599627370496?(this.words=[_&67108863,_/67108864&67108863],this.length=2):(G(_<9007199254740992),this.words=[_&67108863,_/67108864&67108863,1],this.length=3),x==="le"&&this._initArray(this.toArray(),N,x)},U.prototype._initArray=function(_,N,x){if(G(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var B=0;B=0;B-=3)w=_[B]|_[B-1]<<8|_[B-2]<<16,this.words[y]|=w<>>26-p&67108863,p+=24,p>=26&&(p-=26,y++);else if(x==="le")for(B=0,y=0;B<_.length;B+=3)w=_[B]|_[B+1]<<8|_[B+2]<<16,this.words[y]|=w<>>26-p&67108863,p+=24,p>=26&&(p-=26,y++);return this._strip()};function K(_,N){var x=_.charCodeAt(N);if(x>=48&&x<=57)return x-48;if(x>=65&&x<=70)return x-55;if(x>=97&&x<=102)return x-87;G(!1,"Invalid character in "+_)}function I(_,N,x){var B=K(_,x);return x-1>=N&&(B|=K(_,x-1)<<4),B}U.prototype._parseHex=function(_,N,x){this.length=Math.ceil((_.length-N)/6),this.words=new Array(this.length);for(var B=0;B=N;B-=2)p=I(_,N,B)<=18?(y-=18,w+=1,this.words[w]|=p>>>26):y+=8;else{var f=_.length-N;for(B=f%2===0?N+1:N;B<_.length;B+=2)p=I(_,N,B)<=18?(y-=18,w+=1,this.words[w]|=p>>>26):y+=8}this._strip()};function O(_,N,x,B){for(var y=0,w=0,p=Math.min(_.length,x),f=N;f=49?w=c-49+10:c>=17?w=c-17+10:w=c,G(c>=0&&w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=F}catch{U.prototype.inspect=F}else U.prototype.inspect=F;function F(){return(this.red?""}var A=["","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],W=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(_,N){_=_||10,N=N|0||1;var x;if(_===16||_==="hex"){x="";for(var B=0,y=0,w=0;w>>24-B&16777215,B+=2,B>=26&&(B-=26,w--),y!==0||w!==this.length-1?x=A[6-f.length]+f+x:x=f+x}for(y!==0&&(x=y.toString(16)+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(_===(_|0)&&_>=2&&_<=36){var c=H[_],h=W[_];x="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(h).toString(_);d=d.idivn(h),d.isZero()?x=b+x:x=A[c-b.length]+b+x}for(this.isZero()&&(x="0"+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var _=this.words[0];return this.length===2?_+=this.words[1]*67108864:this.length===3&&this.words[2]===1?_+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-_:_},U.prototype.toJSON=function(){return this.toString(16,2)},X&&(U.prototype.toBuffer=function(_,N){return this.toArrayLike(X,_,N)}),U.prototype.toArray=function(_,N){return this.toArrayLike(Array,_,N)};var E=function(_,N){return _.allocUnsafe?_.allocUnsafe(N):new _(N)};U.prototype.toArrayLike=function(_,N,x){this._strip();var B=this.byteLength(),y=x||Math.max(1,B);G(B<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var w=E(_,y),p=N==="le"?"LE":"BE";return this["_toArrayLike"+p](w,B),w},U.prototype._toArrayLikeLE=function(_,N){for(var x=0,B=0,y=0,w=0;y>8&255),x<_.length&&(_[x++]=p>>16&255),w===6?(x<_.length&&(_[x++]=p>>24&255),B=0,w=0):(B=p>>>24,w+=2)}if(x<_.length)for(_[x++]=B;x<_.length;)_[x++]=0},U.prototype._toArrayLikeBE=function(_,N){for(var x=_.length-1,B=0,y=0,w=0;y=0&&(_[x--]=p>>8&255),x>=0&&(_[x--]=p>>16&255),w===6?(x>=0&&(_[x--]=p>>24&255),B=0,w=0):(B=p>>>24,w+=2)}if(x>=0)for(_[x--]=B;x>=0;)_[x--]=0},Math.clz32?U.prototype._countBits=function(_){return 32-Math.clz32(_)}:U.prototype._countBits=function(_){var N=_,x=0;return N>=4096&&(x+=13,N>>>=13),N>=64&&(x+=7,N>>>=7),N>=8&&(x+=4,N>>>=4),N>=2&&(x+=2,N>>>=2),x+N},U.prototype._zeroBits=function(_){if(_===0)return 26;var N=_,x=0;return(N&8191)===0&&(x+=13,N>>>=13),(N&127)===0&&(x+=7,N>>>=7),(N&15)===0&&(x+=4,N>>>=4),(N&3)===0&&(x+=2,N>>>=2),(N&1)===0&&x++,x},U.prototype.bitLength=function(){var _=this.words[this.length-1],N=this._countBits(_);return(this.length-1)*26+N};function T(_){for(var N=new Array(_.bitLength()),x=0;x>>y&1}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var _=0,N=0;N_.length?this.clone().ior(_):_.clone().ior(this)},U.prototype.uor=function(_){return this.length>_.length?this.clone().iuor(_):_.clone().iuor(this)},U.prototype.iuand=function(_){var N;this.length>_.length?N=_:N=this;for(var x=0;x_.length?this.clone().iand(_):_.clone().iand(this)},U.prototype.uand=function(_){return this.length>_.length?this.clone().iuand(_):_.clone().iuand(this)},U.prototype.iuxor=function(_){var N,x;this.length>_.length?(N=this,x=_):(N=_,x=this);for(var B=0;B_.length?this.clone().ixor(_):_.clone().ixor(this)},U.prototype.uxor=function(_){return this.length>_.length?this.clone().iuxor(_):_.clone().iuxor(this)},U.prototype.inotn=function(_){G(typeof _=="number"&&_>=0);var N=Math.ceil(_/26)|0,x=_%26;this._expand(N),x>0&&N--;for(var B=0;B0&&(this.words[B]=~this.words[B]&67108863>>26-x),this._strip()},U.prototype.notn=function(_){return this.clone().inotn(_)},U.prototype.setn=function(_,N){G(typeof _=="number"&&_>=0);var x=_/26|0,B=_%26;return this._expand(x+1),N?this.words[x]=this.words[x]|1<_.length?(x=this,B=_):(x=_,B=this);for(var y=0,w=0;w>>26;for(;y!==0&&w>>26;if(this.length=x.length,y!==0)this.words[this.length]=y,this.length++;else if(x!==this)for(;w_.length?this.clone().iadd(_):_.clone().iadd(this)},U.prototype.isub=function(_){if(_.negative!==0){_.negative=0;var N=this.iadd(_);return _.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(_),this.negative=1,this._normSign();var x=this.cmp(_);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,y;x>0?(B=this,y=_):(B=_,y=this);for(var w=0,p=0;p>26,this.words[p]=N&67108863;for(;w!==0&&p>26,this.words[p]=N&67108863;if(w===0&&p>>26,b=c&67108863,l=Math.min(h,N.length-1),o=Math.max(0,h-_.length+1);o<=l;o++){var u=h-o|0;y=_.words[u]|0,w=N.words[o]|0,p=y*w+b,d+=p/67108864|0,b=p&67108863}x.words[h]=b|0,c=d|0}return c!==0?x.words[h]=c|0:x.length--,x._strip()}var C=function(_,N,x){var B=_.words,y=N.words,w=x.words,p=0,f,c,h,d=B[0]|0,b=d&8191,l=d>>>13,o=B[1]|0,u=o&8191,n=o>>>13,s=B[2]|0,t=s&8191,m=s>>>13,a=B[3]|0,e=a&8191,r=a>>>13,i=B[4]|0,$0=i&8191,Q0=i>>>13,Y0=B[5]|0,Z0=Y0&8191,G0=Y0>>>13,V0=B[6]|0,U0=V0&8191,X0=V0>>>13,K0=B[7]|0,I0=K0&8191,O0=K0>>>13,J0=B[8]|0,F0=J0&8191,A0=J0>>>13,H0=B[9]|0,W0=H0&8191,E0=H0>>>13,T0=y[0]|0,D0=T0&8191,C0=T0>>>13,L0=y[1]|0,R0=L0&8191,P0=L0>>>13,z0=y[2]|0,M0=z0&8191,S0=z0>>>13,v0=y[3]|0,q0=v0&8191,j0=v0>>>13,k0=y[4]|0,g0=k0&8191,_0=k0>>>13,N0=y[5]|0,x0=N0&8191,B0=N0>>>13,y0=y[6]|0,w0=y0&8191,p0=y0>>>13,f0=y[7]|0,c0=f0&8191,h0=f0>>>13,d0=y[8]|0,b0=d0&8191,l0=d0>>>13,o0=y[9]|0,u0=o0&8191,n0=o0>>>13;x.negative=_.negative^N.negative,x.length=19,f=Math.imul(b,D0),c=Math.imul(b,C0),c=c+Math.imul(l,D0)|0,h=Math.imul(l,C0);var s0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(s0>>>26)|0,s0&=67108863,f=Math.imul(u,D0),c=Math.imul(u,C0),c=c+Math.imul(n,D0)|0,h=Math.imul(n,C0),f=f+Math.imul(b,R0)|0,c=c+Math.imul(b,P0)|0,c=c+Math.imul(l,R0)|0,h=h+Math.imul(l,P0)|0;var t0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(t0>>>26)|0,t0&=67108863,f=Math.imul(t,D0),c=Math.imul(t,C0),c=c+Math.imul(m,D0)|0,h=Math.imul(m,C0),f=f+Math.imul(u,R0)|0,c=c+Math.imul(u,P0)|0,c=c+Math.imul(n,R0)|0,h=h+Math.imul(n,P0)|0,f=f+Math.imul(b,M0)|0,c=c+Math.imul(b,S0)|0,c=c+Math.imul(l,M0)|0,h=h+Math.imul(l,S0)|0;var m0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(m0>>>26)|0,m0&=67108863,f=Math.imul(e,D0),c=Math.imul(e,C0),c=c+Math.imul(r,D0)|0,h=Math.imul(r,C0),f=f+Math.imul(t,R0)|0,c=c+Math.imul(t,P0)|0,c=c+Math.imul(m,R0)|0,h=h+Math.imul(m,P0)|0,f=f+Math.imul(u,M0)|0,c=c+Math.imul(u,S0)|0,c=c+Math.imul(n,M0)|0,h=h+Math.imul(n,S0)|0,f=f+Math.imul(b,q0)|0,c=c+Math.imul(b,j0)|0,c=c+Math.imul(l,q0)|0,h=h+Math.imul(l,j0)|0;var a0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(a0>>>26)|0,a0&=67108863,f=Math.imul($0,D0),c=Math.imul($0,C0),c=c+Math.imul(Q0,D0)|0,h=Math.imul(Q0,C0),f=f+Math.imul(e,R0)|0,c=c+Math.imul(e,P0)|0,c=c+Math.imul(r,R0)|0,h=h+Math.imul(r,P0)|0,f=f+Math.imul(t,M0)|0,c=c+Math.imul(t,S0)|0,c=c+Math.imul(m,M0)|0,h=h+Math.imul(m,S0)|0,f=f+Math.imul(u,q0)|0,c=c+Math.imul(u,j0)|0,c=c+Math.imul(n,q0)|0,h=h+Math.imul(n,j0)|0,f=f+Math.imul(b,g0)|0,c=c+Math.imul(b,_0)|0,c=c+Math.imul(l,g0)|0,h=h+Math.imul(l,_0)|0;var e0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(e0>>>26)|0,e0&=67108863,f=Math.imul(Z0,D0),c=Math.imul(Z0,C0),c=c+Math.imul(G0,D0)|0,h=Math.imul(G0,C0),f=f+Math.imul($0,R0)|0,c=c+Math.imul($0,P0)|0,c=c+Math.imul(Q0,R0)|0,h=h+Math.imul(Q0,P0)|0,f=f+Math.imul(e,M0)|0,c=c+Math.imul(e,S0)|0,c=c+Math.imul(r,M0)|0,h=h+Math.imul(r,S0)|0,f=f+Math.imul(t,q0)|0,c=c+Math.imul(t,j0)|0,c=c+Math.imul(m,q0)|0,h=h+Math.imul(m,j0)|0,f=f+Math.imul(u,g0)|0,c=c+Math.imul(u,_0)|0,c=c+Math.imul(n,g0)|0,h=h+Math.imul(n,_0)|0,f=f+Math.imul(b,x0)|0,c=c+Math.imul(b,B0)|0,c=c+Math.imul(l,x0)|0,h=h+Math.imul(l,B0)|0;var r0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(r0>>>26)|0,r0&=67108863,f=Math.imul(U0,D0),c=Math.imul(U0,C0),c=c+Math.imul(X0,D0)|0,h=Math.imul(X0,C0),f=f+Math.imul(Z0,R0)|0,c=c+Math.imul(Z0,P0)|0,c=c+Math.imul(G0,R0)|0,h=h+Math.imul(G0,P0)|0,f=f+Math.imul($0,M0)|0,c=c+Math.imul($0,S0)|0,c=c+Math.imul(Q0,M0)|0,h=h+Math.imul(Q0,S0)|0,f=f+Math.imul(e,q0)|0,c=c+Math.imul(e,j0)|0,c=c+Math.imul(r,q0)|0,h=h+Math.imul(r,j0)|0,f=f+Math.imul(t,g0)|0,c=c+Math.imul(t,_0)|0,c=c+Math.imul(m,g0)|0,h=h+Math.imul(m,_0)|0,f=f+Math.imul(u,x0)|0,c=c+Math.imul(u,B0)|0,c=c+Math.imul(n,x0)|0,h=h+Math.imul(n,B0)|0,f=f+Math.imul(b,w0)|0,c=c+Math.imul(b,p0)|0,c=c+Math.imul(l,w0)|0,h=h+Math.imul(l,p0)|0;var i0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(i0>>>26)|0,i0&=67108863,f=Math.imul(I0,D0),c=Math.imul(I0,C0),c=c+Math.imul(O0,D0)|0,h=Math.imul(O0,C0),f=f+Math.imul(U0,R0)|0,c=c+Math.imul(U0,P0)|0,c=c+Math.imul(X0,R0)|0,h=h+Math.imul(X0,P0)|0,f=f+Math.imul(Z0,M0)|0,c=c+Math.imul(Z0,S0)|0,c=c+Math.imul(G0,M0)|0,h=h+Math.imul(G0,S0)|0,f=f+Math.imul($0,q0)|0,c=c+Math.imul($0,j0)|0,c=c+Math.imul(Q0,q0)|0,h=h+Math.imul(Q0,j0)|0,f=f+Math.imul(e,g0)|0,c=c+Math.imul(e,_0)|0,c=c+Math.imul(r,g0)|0,h=h+Math.imul(r,_0)|0,f=f+Math.imul(t,x0)|0,c=c+Math.imul(t,B0)|0,c=c+Math.imul(m,x0)|0,h=h+Math.imul(m,B0)|0,f=f+Math.imul(u,w0)|0,c=c+Math.imul(u,p0)|0,c=c+Math.imul(n,w0)|0,h=h+Math.imul(n,p0)|0,f=f+Math.imul(b,c0)|0,c=c+Math.imul(b,h0)|0,c=c+Math.imul(l,c0)|0,h=h+Math.imul(l,h0)|0;var $$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+($$>>>26)|0,$$&=67108863,f=Math.imul(F0,D0),c=Math.imul(F0,C0),c=c+Math.imul(A0,D0)|0,h=Math.imul(A0,C0),f=f+Math.imul(I0,R0)|0,c=c+Math.imul(I0,P0)|0,c=c+Math.imul(O0,R0)|0,h=h+Math.imul(O0,P0)|0,f=f+Math.imul(U0,M0)|0,c=c+Math.imul(U0,S0)|0,c=c+Math.imul(X0,M0)|0,h=h+Math.imul(X0,S0)|0,f=f+Math.imul(Z0,q0)|0,c=c+Math.imul(Z0,j0)|0,c=c+Math.imul(G0,q0)|0,h=h+Math.imul(G0,j0)|0,f=f+Math.imul($0,g0)|0,c=c+Math.imul($0,_0)|0,c=c+Math.imul(Q0,g0)|0,h=h+Math.imul(Q0,_0)|0,f=f+Math.imul(e,x0)|0,c=c+Math.imul(e,B0)|0,c=c+Math.imul(r,x0)|0,h=h+Math.imul(r,B0)|0,f=f+Math.imul(t,w0)|0,c=c+Math.imul(t,p0)|0,c=c+Math.imul(m,w0)|0,h=h+Math.imul(m,p0)|0,f=f+Math.imul(u,c0)|0,c=c+Math.imul(u,h0)|0,c=c+Math.imul(n,c0)|0,h=h+Math.imul(n,h0)|0,f=f+Math.imul(b,b0)|0,c=c+Math.imul(b,l0)|0,c=c+Math.imul(l,b0)|0,h=h+Math.imul(l,l0)|0;var Q$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,f=Math.imul(W0,D0),c=Math.imul(W0,C0),c=c+Math.imul(E0,D0)|0,h=Math.imul(E0,C0),f=f+Math.imul(F0,R0)|0,c=c+Math.imul(F0,P0)|0,c=c+Math.imul(A0,R0)|0,h=h+Math.imul(A0,P0)|0,f=f+Math.imul(I0,M0)|0,c=c+Math.imul(I0,S0)|0,c=c+Math.imul(O0,M0)|0,h=h+Math.imul(O0,S0)|0,f=f+Math.imul(U0,q0)|0,c=c+Math.imul(U0,j0)|0,c=c+Math.imul(X0,q0)|0,h=h+Math.imul(X0,j0)|0,f=f+Math.imul(Z0,g0)|0,c=c+Math.imul(Z0,_0)|0,c=c+Math.imul(G0,g0)|0,h=h+Math.imul(G0,_0)|0,f=f+Math.imul($0,x0)|0,c=c+Math.imul($0,B0)|0,c=c+Math.imul(Q0,x0)|0,h=h+Math.imul(Q0,B0)|0,f=f+Math.imul(e,w0)|0,c=c+Math.imul(e,p0)|0,c=c+Math.imul(r,w0)|0,h=h+Math.imul(r,p0)|0,f=f+Math.imul(t,c0)|0,c=c+Math.imul(t,h0)|0,c=c+Math.imul(m,c0)|0,h=h+Math.imul(m,h0)|0,f=f+Math.imul(u,b0)|0,c=c+Math.imul(u,l0)|0,c=c+Math.imul(n,b0)|0,h=h+Math.imul(n,l0)|0,f=f+Math.imul(b,u0)|0,c=c+Math.imul(b,n0)|0,c=c+Math.imul(l,u0)|0,h=h+Math.imul(l,n0)|0;var Y$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,f=Math.imul(W0,R0),c=Math.imul(W0,P0),c=c+Math.imul(E0,R0)|0,h=Math.imul(E0,P0),f=f+Math.imul(F0,M0)|0,c=c+Math.imul(F0,S0)|0,c=c+Math.imul(A0,M0)|0,h=h+Math.imul(A0,S0)|0,f=f+Math.imul(I0,q0)|0,c=c+Math.imul(I0,j0)|0,c=c+Math.imul(O0,q0)|0,h=h+Math.imul(O0,j0)|0,f=f+Math.imul(U0,g0)|0,c=c+Math.imul(U0,_0)|0,c=c+Math.imul(X0,g0)|0,h=h+Math.imul(X0,_0)|0,f=f+Math.imul(Z0,x0)|0,c=c+Math.imul(Z0,B0)|0,c=c+Math.imul(G0,x0)|0,h=h+Math.imul(G0,B0)|0,f=f+Math.imul($0,w0)|0,c=c+Math.imul($0,p0)|0,c=c+Math.imul(Q0,w0)|0,h=h+Math.imul(Q0,p0)|0,f=f+Math.imul(e,c0)|0,c=c+Math.imul(e,h0)|0,c=c+Math.imul(r,c0)|0,h=h+Math.imul(r,h0)|0,f=f+Math.imul(t,b0)|0,c=c+Math.imul(t,l0)|0,c=c+Math.imul(m,b0)|0,h=h+Math.imul(m,l0)|0,f=f+Math.imul(u,u0)|0,c=c+Math.imul(u,n0)|0,c=c+Math.imul(n,u0)|0,h=h+Math.imul(n,n0)|0;var Z$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,f=Math.imul(W0,M0),c=Math.imul(W0,S0),c=c+Math.imul(E0,M0)|0,h=Math.imul(E0,S0),f=f+Math.imul(F0,q0)|0,c=c+Math.imul(F0,j0)|0,c=c+Math.imul(A0,q0)|0,h=h+Math.imul(A0,j0)|0,f=f+Math.imul(I0,g0)|0,c=c+Math.imul(I0,_0)|0,c=c+Math.imul(O0,g0)|0,h=h+Math.imul(O0,_0)|0,f=f+Math.imul(U0,x0)|0,c=c+Math.imul(U0,B0)|0,c=c+Math.imul(X0,x0)|0,h=h+Math.imul(X0,B0)|0,f=f+Math.imul(Z0,w0)|0,c=c+Math.imul(Z0,p0)|0,c=c+Math.imul(G0,w0)|0,h=h+Math.imul(G0,p0)|0,f=f+Math.imul($0,c0)|0,c=c+Math.imul($0,h0)|0,c=c+Math.imul(Q0,c0)|0,h=h+Math.imul(Q0,h0)|0,f=f+Math.imul(e,b0)|0,c=c+Math.imul(e,l0)|0,c=c+Math.imul(r,b0)|0,h=h+Math.imul(r,l0)|0,f=f+Math.imul(t,u0)|0,c=c+Math.imul(t,n0)|0,c=c+Math.imul(m,u0)|0,h=h+Math.imul(m,n0)|0;var G$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(G$>>>26)|0,G$&=67108863,f=Math.imul(W0,q0),c=Math.imul(W0,j0),c=c+Math.imul(E0,q0)|0,h=Math.imul(E0,j0),f=f+Math.imul(F0,g0)|0,c=c+Math.imul(F0,_0)|0,c=c+Math.imul(A0,g0)|0,h=h+Math.imul(A0,_0)|0,f=f+Math.imul(I0,x0)|0,c=c+Math.imul(I0,B0)|0,c=c+Math.imul(O0,x0)|0,h=h+Math.imul(O0,B0)|0,f=f+Math.imul(U0,w0)|0,c=c+Math.imul(U0,p0)|0,c=c+Math.imul(X0,w0)|0,h=h+Math.imul(X0,p0)|0,f=f+Math.imul(Z0,c0)|0,c=c+Math.imul(Z0,h0)|0,c=c+Math.imul(G0,c0)|0,h=h+Math.imul(G0,h0)|0,f=f+Math.imul($0,b0)|0,c=c+Math.imul($0,l0)|0,c=c+Math.imul(Q0,b0)|0,h=h+Math.imul(Q0,l0)|0,f=f+Math.imul(e,u0)|0,c=c+Math.imul(e,n0)|0,c=c+Math.imul(r,u0)|0,h=h+Math.imul(r,n0)|0;var V$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(V$>>>26)|0,V$&=67108863,f=Math.imul(W0,g0),c=Math.imul(W0,_0),c=c+Math.imul(E0,g0)|0,h=Math.imul(E0,_0),f=f+Math.imul(F0,x0)|0,c=c+Math.imul(F0,B0)|0,c=c+Math.imul(A0,x0)|0,h=h+Math.imul(A0,B0)|0,f=f+Math.imul(I0,w0)|0,c=c+Math.imul(I0,p0)|0,c=c+Math.imul(O0,w0)|0,h=h+Math.imul(O0,p0)|0,f=f+Math.imul(U0,c0)|0,c=c+Math.imul(U0,h0)|0,c=c+Math.imul(X0,c0)|0,h=h+Math.imul(X0,h0)|0,f=f+Math.imul(Z0,b0)|0,c=c+Math.imul(Z0,l0)|0,c=c+Math.imul(G0,b0)|0,h=h+Math.imul(G0,l0)|0,f=f+Math.imul($0,u0)|0,c=c+Math.imul($0,n0)|0,c=c+Math.imul(Q0,u0)|0,h=h+Math.imul(Q0,n0)|0;var U$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(U$>>>26)|0,U$&=67108863,f=Math.imul(W0,x0),c=Math.imul(W0,B0),c=c+Math.imul(E0,x0)|0,h=Math.imul(E0,B0),f=f+Math.imul(F0,w0)|0,c=c+Math.imul(F0,p0)|0,c=c+Math.imul(A0,w0)|0,h=h+Math.imul(A0,p0)|0,f=f+Math.imul(I0,c0)|0,c=c+Math.imul(I0,h0)|0,c=c+Math.imul(O0,c0)|0,h=h+Math.imul(O0,h0)|0,f=f+Math.imul(U0,b0)|0,c=c+Math.imul(U0,l0)|0,c=c+Math.imul(X0,b0)|0,h=h+Math.imul(X0,l0)|0,f=f+Math.imul(Z0,u0)|0,c=c+Math.imul(Z0,n0)|0,c=c+Math.imul(G0,u0)|0,h=h+Math.imul(G0,n0)|0;var X$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(X$>>>26)|0,X$&=67108863,f=Math.imul(W0,w0),c=Math.imul(W0,p0),c=c+Math.imul(E0,w0)|0,h=Math.imul(E0,p0),f=f+Math.imul(F0,c0)|0,c=c+Math.imul(F0,h0)|0,c=c+Math.imul(A0,c0)|0,h=h+Math.imul(A0,h0)|0,f=f+Math.imul(I0,b0)|0,c=c+Math.imul(I0,l0)|0,c=c+Math.imul(O0,b0)|0,h=h+Math.imul(O0,l0)|0,f=f+Math.imul(U0,u0)|0,c=c+Math.imul(U0,n0)|0,c=c+Math.imul(X0,u0)|0,h=h+Math.imul(X0,n0)|0;var K$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(K$>>>26)|0,K$&=67108863,f=Math.imul(W0,c0),c=Math.imul(W0,h0),c=c+Math.imul(E0,c0)|0,h=Math.imul(E0,h0),f=f+Math.imul(F0,b0)|0,c=c+Math.imul(F0,l0)|0,c=c+Math.imul(A0,b0)|0,h=h+Math.imul(A0,l0)|0,f=f+Math.imul(I0,u0)|0,c=c+Math.imul(I0,n0)|0,c=c+Math.imul(O0,u0)|0,h=h+Math.imul(O0,n0)|0;var I$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(I$>>>26)|0,I$&=67108863,f=Math.imul(W0,b0),c=Math.imul(W0,l0),c=c+Math.imul(E0,b0)|0,h=Math.imul(E0,l0),f=f+Math.imul(F0,u0)|0,c=c+Math.imul(F0,n0)|0,c=c+Math.imul(A0,u0)|0,h=h+Math.imul(A0,n0)|0;var O$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(O$>>>26)|0,O$&=67108863,f=Math.imul(W0,u0),c=Math.imul(W0,n0),c=c+Math.imul(E0,u0)|0,h=Math.imul(E0,n0);var J$=(p+f|0)+((c&8191)<<13)|0;return p=(h+(c>>>13)|0)+(J$>>>26)|0,J$&=67108863,w[0]=s0,w[1]=t0,w[2]=m0,w[3]=a0,w[4]=e0,w[5]=r0,w[6]=i0,w[7]=$$,w[8]=Q$,w[9]=Y$,w[10]=Z$,w[11]=G$,w[12]=V$,w[13]=U$,w[14]=X$,w[15]=K$,w[16]=I$,w[17]=O$,w[18]=J$,p!==0&&(w[19]=p,x.length++),x};Math.imul||(C=D);function L(_,N,x){x.negative=N.negative^_.negative,x.length=_.length+N.length;for(var B=0,y=0,w=0;w>>26)|0,y+=p>>>26,p&=67108863}x.words[w]=f,B=p,p=y}return B!==0?x.words[w]=B:x.length--,x._strip()}function R(_,N,x){return L(_,N,x)}U.prototype.mulTo=function(_,N){var x,B=this.length+_.length;return this.length===10&&_.length===10?x=C(this,_,N):B<63?x=D(this,_,N):B<1024?x=L(this,_,N):x=R(this,_,N),x};function P(_,N){this.x=_,this.y=N}P.prototype.makeRBT=function(_){for(var N=new Array(_),x=U.prototype._countBits(_)-1,B=0;B<_;B++)N[B]=this.revBin(B,x,_);return N},P.prototype.revBin=function(_,N,x){if(_===0||_===x-1)return _;for(var B=0,y=0;y>=1;return B},P.prototype.permute=function(_,N,x,B,y,w){for(var p=0;p>>1)y++;return 1<>>13,x[2*w+1]=y&8191,y=y>>>13;for(w=2*N;w>=26,x+=y/67108864|0,x+=w>>>26,this.words[B]=w&67108863}return x!==0&&(this.words[B]=x,this.length++),N?this.ineg():this},U.prototype.muln=function(_){return this.clone().imuln(_)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(_){var N=T(_);if(N.length===0)return new U(1);for(var x=this,B=0;B=0);var N=_%26,x=(_-N)/26,B=67108863>>>26-N<<26-N,y;if(N!==0){var w=0;for(y=0;y>>26-N}w&&(this.words[y]=w,this.length++)}if(x!==0){for(y=this.length-1;y>=0;y--)this.words[y+x]=this.words[y];for(y=0;y=0);var B;N?B=(N-N%26)/26:B=0;var y=_%26,w=Math.min((_-y)/26,this.length),p=67108863^67108863>>>y<w)for(this.length-=w,c=0;c=0&&(h!==0||c>=B);c--){var d=this.words[c]|0;this.words[c]=h<<26-y|d>>>y,h=d&p}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},U.prototype.ishrn=function(_,N,x){return G(this.negative===0),this.iushrn(_,N,x)},U.prototype.shln=function(_){return this.clone().ishln(_)},U.prototype.ushln=function(_){return this.clone().iushln(_)},U.prototype.shrn=function(_){return this.clone().ishrn(_)},U.prototype.ushrn=function(_){return this.clone().iushrn(_)},U.prototype.testn=function(_){G(typeof _=="number"&&_>=0);var N=_%26,x=(_-N)/26,B=1<=0);var N=_%26,x=(_-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(N!==0&&x++,this.length=Math.min(x,this.length),N!==0){var B=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(_){if(G(typeof _=="number"),G(_<67108864),_<0)return this.iaddn(-_);if(this.negative!==0)return this.negative=0,this.iaddn(_),this.negative=1,this;if(this.words[0]-=_,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(f/67108864|0),this.words[y+x]=w&67108863}for(;y>26,this.words[y+x]=w&67108863;if(p===0)return this._strip();for(G(p===-1),p=0,y=0;y>26,this.words[y]=w&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(_,N){var x=this.length-_.length,B=this.clone(),y=_,w=y.words[y.length-1]|0,p=this._countBits(w);x=26-p,x!==0&&(y=y.ushln(x),B.iushln(x),w=y.words[y.length-1]|0);var f=B.length-y.length,c;if(N!=="mod"){c=new U(null),c.length=f+1,c.words=new Array(c.length);for(var h=0;h=0;b--){var l=(B.words[y.length+b]|0)*67108864+(B.words[y.length+b-1]|0);for(l=Math.min(l/w|0,67108863),B._ishlnsubmul(y,l,b);B.negative!==0;)l--,B.negative=0,B._ishlnsubmul(y,1,b),B.isZero()||(B.negative^=1);c&&(c.words[b]=l)}return c&&c._strip(),B._strip(),N!=="div"&&x!==0&&B.iushrn(x),{div:c||null,mod:B}},U.prototype.divmod=function(_,N,x){if(G(!_.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var B,y,w;return this.negative!==0&&_.negative===0?(w=this.neg().divmod(_,N),N!=="mod"&&(B=w.div.neg()),N!=="div"&&(y=w.mod.neg(),x&&y.negative!==0&&y.iadd(_)),{div:B,mod:y}):this.negative===0&&_.negative!==0?(w=this.divmod(_.neg(),N),N!=="mod"&&(B=w.div.neg()),{div:B,mod:w.mod}):(this.negative&_.negative)!==0?(w=this.neg().divmod(_.neg(),N),N!=="div"&&(y=w.mod.neg(),x&&y.negative!==0&&y.isub(_)),{div:w.div,mod:y}):_.length>this.length||this.cmp(_)<0?{div:new U(0),mod:this}:_.length===1?N==="div"?{div:this.divn(_.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modrn(_.words[0]))}:{div:this.divn(_.words[0]),mod:new U(this.modrn(_.words[0]))}:this._wordDiv(_,N)},U.prototype.div=function(_){return this.divmod(_,"div",!1).div},U.prototype.mod=function(_){return this.divmod(_,"mod",!1).mod},U.prototype.umod=function(_){return this.divmod(_,"mod",!0).mod},U.prototype.divRound=function(_){var N=this.divmod(_);if(N.mod.isZero())return N.div;var x=N.div.negative!==0?N.mod.isub(_):N.mod,B=_.ushrn(1),y=_.andln(1),w=x.cmp(B);return w<0||y===1&&w===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modrn=function(_){var N=_<0;N&&(_=-_),G(_<=67108863);for(var x=(1<<26)%_,B=0,y=this.length-1;y>=0;y--)B=(x*B+(this.words[y]|0))%_;return N?-B:B},U.prototype.modn=function(_){return this.modrn(_)},U.prototype.idivn=function(_){var N=_<0;N&&(_=-_),G(_<=67108863);for(var x=0,B=this.length-1;B>=0;B--){var y=(this.words[B]|0)+x*67108864;this.words[B]=y/_|0,x=y%_}return this._strip(),N?this.ineg():this},U.prototype.divn=function(_){return this.clone().idivn(_)},U.prototype.egcd=function(_){G(_.negative===0),G(!_.isZero());var N=this,x=_.clone();N.negative!==0?N=N.umod(_):N=N.clone();for(var B=new U(1),y=new U(0),w=new U(0),p=new U(1),f=0;N.isEven()&&x.isEven();)N.iushrn(1),x.iushrn(1),++f;for(var c=x.clone(),h=N.clone();!N.isZero();){for(var d=0,b=1;(N.words[0]&b)===0&&d<26;++d,b<<=1);if(d>0)for(N.iushrn(d);d-- >0;)(B.isOdd()||y.isOdd())&&(B.iadd(c),y.isub(h)),B.iushrn(1),y.iushrn(1);for(var l=0,o=1;(x.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(x.iushrn(l);l-- >0;)(w.isOdd()||p.isOdd())&&(w.iadd(c),p.isub(h)),w.iushrn(1),p.iushrn(1);N.cmp(x)>=0?(N.isub(x),B.isub(w),y.isub(p)):(x.isub(N),w.isub(B),p.isub(y))}return{a:w,b:p,gcd:x.iushln(f)}},U.prototype._invmp=function(_){G(_.negative===0),G(!_.isZero());var N=this,x=_.clone();N.negative!==0?N=N.umod(_):N=N.clone();for(var B=new U(1),y=new U(0),w=x.clone();N.cmpn(1)>0&&x.cmpn(1)>0;){for(var p=0,f=1;(N.words[0]&f)===0&&p<26;++p,f<<=1);if(p>0)for(N.iushrn(p);p-- >0;)B.isOdd()&&B.iadd(w),B.iushrn(1);for(var c=0,h=1;(x.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(x.iushrn(c);c-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);N.cmp(x)>=0?(N.isub(x),B.isub(y)):(x.isub(N),y.isub(B))}var d;return N.cmpn(1)===0?d=B:d=y,d.cmpn(0)<0&&d.iadd(_),d},U.prototype.gcd=function(_){if(this.isZero())return _.abs();if(_.isZero())return this.abs();var N=this.clone(),x=_.clone();N.negative=0,x.negative=0;for(var B=0;N.isEven()&&x.isEven();B++)N.iushrn(1),x.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;x.isEven();)x.iushrn(1);var y=N.cmp(x);if(y<0){var w=N;N=x,x=w}else if(y===0||x.cmpn(1)===0)break;N.isub(x)}while(!0);return x.iushln(B)},U.prototype.invm=function(_){return this.egcd(_).a.umod(_)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(_){return this.words[0]&_},U.prototype.bincn=function(_){G(typeof _=="number");var N=_%26,x=(_-N)/26,B=1<>>26,p&=67108863,this.words[w]=p}return y!==0&&(this.words[w]=y,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(_){var N=_<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this._strip();var x;if(this.length>1)x=1;else{N&&(_=-_),G(_<=67108863,"Number is too big");var B=this.words[0]|0;x=B===_?0:B<_?-1:1}return this.negative!==0?-x|0:x},U.prototype.cmp=function(_){if(this.negative!==0&&_.negative===0)return-1;if(this.negative===0&&_.negative!==0)return 1;var N=this.ucmp(_);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(_){if(this.length>_.length)return 1;if(this.length<_.length)return-1;for(var N=0,x=this.length-1;x>=0;x--){var B=this.words[x]|0,y=_.words[x]|0;if(B!==y){By&&(N=1);break}}return N},U.prototype.gtn=function(_){return this.cmpn(_)===1},U.prototype.gt=function(_){return this.cmp(_)===1},U.prototype.gten=function(_){return this.cmpn(_)>=0},U.prototype.gte=function(_){return this.cmp(_)>=0},U.prototype.ltn=function(_){return this.cmpn(_)===-1},U.prototype.lt=function(_){return this.cmp(_)===-1},U.prototype.lten=function(_){return this.cmpn(_)<=0},U.prototype.lte=function(_){return this.cmp(_)<=0},U.prototype.eqn=function(_){return this.cmpn(_)===0},U.prototype.eq=function(_){return this.cmp(_)===0},U.red=function(_){return new k(_)},U.prototype.toRed=function(_){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),_.convertTo(this)._forceRed(_)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(_){return this.red=_,this},U.prototype.forceRed=function(_){return G(!this.red,"Already a number in reduction context"),this._forceRed(_)},U.prototype.redAdd=function(_){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,_)},U.prototype.redIAdd=function(_){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,_)},U.prototype.redSub=function(_){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,_)},U.prototype.redISub=function(_){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,_)},U.prototype.redShl=function(_){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,_)},U.prototype.redMul=function(_){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.mul(this,_)},U.prototype.redIMul=function(_){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.imul(this,_)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(_){return G(this.red&&!_.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,_)};var z={k256:null,p224:null,p192:null,p25519:null};function M(_,N){this.name=_,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var _=new U(null);return _.words=new Array(Math.ceil(this.n/13)),_},M.prototype.ireduce=function(_){var N=_,x;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),x=N.bitLength();while(x>this.n);var B=x0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},M.prototype.split=function(_,N){_.iushrn(this.n,0,N)},M.prototype.imulK=function(_){return _.imul(this.k)};function S(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(S,M),S.prototype.split=function(_,N){for(var x=4194303,B=Math.min(_.length,9),y=0;y>>22,w=p}w>>>=22,_.words[y-10]=w,w===0&&_.length>10?_.length-=10:_.length-=9},S.prototype.imulK=function(_){_.words[_.length]=0,_.words[_.length+1]=0,_.length+=2;for(var N=0,x=0;x<_.length;x++){var B=_.words[x]|0;N+=B*977,_.words[x]=N&67108863,N=B*64+(N/67108864|0)}return _.words[_.length-1]===0&&(_.length--,_.words[_.length-1]===0&&_.length--),_};function v(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(v,M);function q(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(q,M);function j(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(j,M),j.prototype.imulK=function(_){for(var N=0,x=0;x<_.length;x++){var B=(_.words[x]|0)*19+N,y=B&67108863;B>>>=26,_.words[x]=y,N=B}return N!==0&&(_.words[_.length++]=N),_},U._prime=function(_){if(z[_])return z[_];var N;if(_==="k256")N=new S;else if(_==="p224")N=new v;else if(_==="p192")N=new q;else if(_==="p25519")N=new j;else throw new Error("Unknown prime "+_);return z[_]=N,N};function k(_){if(typeof _=="string"){var N=U._prime(_);this.m=N.p,this.prime=N}else G(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}k.prototype._verify1=function(_){G(_.negative===0,"red works only with positives"),G(_.red,"red works only with red numbers")},k.prototype._verify2=function(_,N){G((_.negative|N.negative)===0,"red works only with positives"),G(_.red&&_.red===N.red,"red works only with red numbers")},k.prototype.imod=function(_){return this.prime?this.prime.ireduce(_)._forceRed(this):(J(_,_.umod(this.m)._forceRed(this)),_)},k.prototype.neg=function(_){return _.isZero()?_.clone():this.m.sub(_)._forceRed(this)},k.prototype.add=function(_,N){this._verify2(_,N);var x=_.add(N);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},k.prototype.iadd=function(_,N){this._verify2(_,N);var x=_.iadd(N);return x.cmp(this.m)>=0&&x.isub(this.m),x},k.prototype.sub=function(_,N){this._verify2(_,N);var x=_.sub(N);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},k.prototype.isub=function(_,N){this._verify2(_,N);var x=_.isub(N);return x.cmpn(0)<0&&x.iadd(this.m),x},k.prototype.shl=function(_,N){return this._verify1(_),this.imod(_.ushln(N))},k.prototype.imul=function(_,N){return this._verify2(_,N),this.imod(_.imul(N))},k.prototype.mul=function(_,N){return this._verify2(_,N),this.imod(_.mul(N))},k.prototype.isqr=function(_){return this.imul(_,_.clone())},k.prototype.sqr=function(_){return this.mul(_,_)},k.prototype.sqrt=function(_){if(_.isZero())return _.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var x=this.m.add(new U(1)).iushrn(2);return this.pow(_,x)}for(var B=this.m.subn(1),y=0;!B.isZero()&&B.andln(1)===0;)y++,B.iushrn(1);G(!B.isZero());var w=new U(1).toRed(this),p=w.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new U(2*c*c).toRed(this);this.pow(c,f).cmp(p)!==0;)c.redIAdd(p);for(var h=this.pow(c,B),d=this.pow(_,B.addn(1).iushrn(1)),b=this.pow(_,B),l=y;b.cmp(w)!==0;){for(var o=b,u=0;o.cmp(w)!==0;u++)o=o.redSqr();G(u=0;y--){for(var h=N.words[y],d=c-1;d>=0;d--){var b=h>>d&1;if(w!==B[0]&&(w=this.sqr(w)),b===0&&p===0){f=0;continue}p<<=1,p|=b,f++,!(f!==x&&(y!==0||d!==0))&&(w=this.mul(w,B[p]),f=0,p=0)}c=26}return w},k.prototype.convertTo=function(_){var N=_.umod(this.m);return N===_?N.clone():N},k.prototype.convertFrom=function(_){var N=_.clone();return N.red=null,N},U.mont=function(_){return new g(_)};function g(_){k.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(g,k),g.prototype.convertTo=function(_){return this.imod(_.ushln(this.shift))},g.prototype.convertFrom=function(_){var N=this.imod(_.mul(this.rinv));return N.red=null,N},g.prototype.imul=function(_,N){if(_.isZero()||N.isZero())return _.words[0]=0,_.length=1,_;var x=_.imul(N),B=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=x.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.mul=function(_,N){if(_.isZero()||N.isZero())return new U(0)._forceRed(this);var x=_.mul(N),B=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=x.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.invm=function(_){var N=this.imod(_._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof Q>"u"||Q,$)}}),hQ=q$({"node_modules/browserify-rsa/index.js"($,Q){var Y=cQ(),Z=g$();function G(X){var K=V(X),I=K.toRed(Y.mont(X.modulus)).redPow(new Y(X.publicExponent)).fromRed();return{blinder:I,unblinder:K.invm(X.modulus)}}function V(X){var K=X.modulus.byteLength(),I;do I=new Y(Z(K));while(I.cmp(X.modulus)>=0||!I.umod(X.prime1)||!I.umod(X.prime2));return I}function U(X,K){var I=G(K),O=K.modulus.byteLength(),J=new Y(X).mul(I.blinder).umod(K.modulus),F=J.toRed(Y.mont(K.prime1)),A=J.toRed(Y.mont(K.prime2)),H=K.coefficient,W=K.prime1,E=K.prime2,T=F.redPow(K.exponent1).fromRed(),D=A.redPow(K.exponent2).fromRed(),C=T.isub(D).imul(H).umod(W).imul(E);return D.iadd(C).imul(I.unblinder).umod(K.modulus).toArrayLike(F$,"be",O)}U.getr=V,Q.exports=U}}),dQ=q$({"node_modules/elliptic/package.json"($,Q){Q.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),bQ=q$({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),lQ=q$({"node_modules/minimalistic-crypto-utils/lib/utils.js"($){var Q=$;function Y(V,U){if(Array.isArray(V))return V.slice();if(!V)return[];var X=[];if(typeof V!="string"){for(var K=0;K>8,J=I&255;O?X.push(O,J):X.push(J)}return X}Q.toArray=Y;function Z(V){return V.length===1?"0"+V:V}Q.zero2=Z;function G(V){for(var U="",X=0;X(H>>1)-1?T=(H>>1)-D:T=D,W.isubn(T)):T=0,A[E]=T,W.iushrn(1)}return A}Q.getNAF=V;function U(O,J){var F=[[],[]];O=O.clone(),J=J.clone();for(var A=0,H=0,W;O.cmpn(-A)>0||J.cmpn(-H)>0;){var E=O.andln(3)+A&3,T=J.andln(3)+H&3;E===3&&(E=-1),T===3&&(T=-1);var D;(E&1)===0?D=0:(W=O.andln(7)+A&7,(W===3||W===5)&&T===2?D=-E:D=E),F[0].push(D);var C;(T&1)===0?C=0:(W=J.andln(7)+H&7,(W===3||W===5)&&E===2?C=-T:C=T),F[1].push(C),2*A===D+1&&(A=1-A),2*H===C+1&&(H=1-H),O.iushrn(1),J.iushrn(1)}return F}Q.getJSF=U;function X(O,J,F){var A="_"+J;O.prototype[J]=function(){return this[A]!==void 0?this[A]:this[A]=F.call(this)}}Q.cachedProperty=X;function K(O){return typeof O=="string"?Q.toArray(O,"hex"):O}Q.parseBytes=K;function I(O){return new Y(O,"hex","le")}Q.intFromLE=I}}),uQ=q$({"node_modules/elliptic/lib/elliptic/curve/base.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.getNAF,V=Z.getJSF,U=Z.assert;function X(I,O){this.type=I,this.p=new Y(O.p,16),this.red=O.prime?Y.red(O.prime):Y.mont(this.p),this.zero=new Y(0).toRed(this.red),this.one=new Y(1).toRed(this.red),this.two=new Y(2).toRed(this.red),this.n=O.n&&new Y(O.n,16),this.g=O.g&&this.pointFromJSON(O.g,O.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 J=this.n&&this.p.div(this.n);!J||J.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Q.exports=X,X.prototype.point=function(){throw new Error("Not implemented")},X.prototype.validate=function(){throw new Error("Not implemented")},X.prototype._fixedNafMul=function(I,O){U(I.precomputed);var J=I._getDoubles(),F=G(O,1,this._bitLength),A=(1<=W;T--)E=(E<<1)+F[T];H.push(E)}for(var D=this.jpoint(null,null,null),C=this.jpoint(null,null,null),L=A;L>0;L--){for(W=0;W=0;E--){for(var T=0;E>=0&&H[E]===0;E--)T++;if(E>=0&&T++,W=W.dblp(T),E<0)break;var D=H[E];U(D!==0),I.type==="affine"?D>0?W=W.mixedAdd(A[D-1>>1]):W=W.mixedAdd(A[-D-1>>1].neg()):D>0?W=W.add(A[D-1>>1]):W=W.add(A[-D-1>>1].neg())}return I.type==="affine"?W.toP():W},X.prototype._wnafMulAdd=function(I,O,J,F,A){var H=this._wnafT1,W=this._wnafT2,E=this._wnafT3,T=0,D,C,L;for(D=0;D=1;D-=2){var P=D-1,z=D;if(H[P]!==1||H[z]!==1){E[P]=G(J[P],H[P],this._bitLength),E[z]=G(J[z],H[z],this._bitLength),T=Math.max(E[P].length,T),T=Math.max(E[z].length,T);continue}var M=[O[P],null,null,O[z]];O[P].y.cmp(O[z].y)===0?(M[1]=O[P].add(O[z]),M[2]=O[P].toJ().mixedAdd(O[z].neg())):O[P].y.cmp(O[z].y.redNeg())===0?(M[1]=O[P].toJ().mixedAdd(O[z]),M[2]=O[P].add(O[z].neg())):(M[1]=O[P].toJ().mixedAdd(O[z]),M[2]=O[P].toJ().mixedAdd(O[z].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],v=V(J[P],J[z]);for(T=Math.max(v[0].length,T),E[P]=new Array(T),E[z]=new Array(T),C=0;C=0;D--){for(var _=0;D>=0;){var N=!0;for(C=0;C=0&&_++,k=k.dblp(_),D<0)break;for(C=0;C0?L=W[C][x-1>>1]:x<0&&(L=W[C][-x-1>>1].neg()),L.type==="affine"?k=k.mixedAdd(L):k=k.add(L))}}for(D=0;D=Math.ceil((I.bitLength()+1)/O.step):!1},K.prototype._getDoubles=function(I,O){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var J=[this],F=this,A=0;A=0&&(P=D,z=C),L.negative&&(L=L.neg(),R=R.neg()),P.negative&&(P=P.neg(),z=z.neg()),[{a:L,b:R},{a:P,b:z}]},X.prototype._endoSplit=function(O){var J=this.endo.basis,F=J[0],A=J[1],H=A.b.mul(O).divRound(this.n),W=F.b.neg().mul(O).divRound(this.n),E=H.mul(F.a),T=W.mul(A.a),D=H.mul(F.b),C=W.mul(A.b),L=O.sub(E).sub(T),R=D.add(C).neg();return{k1:L,k2:R}},X.prototype.pointFromX=function(O,J){O=new Z(O,16),O.red||(O=O.toRed(this.red));var F=O.redSqr().redMul(O).redIAdd(O.redMul(this.a)).redIAdd(this.b),A=F.redSqrt();if(A.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");var H=A.fromRed().isOdd();return(J&&!H||!J&&H)&&(A=A.redNeg()),this.point(O,A)},X.prototype.validate=function(O){if(O.inf)return!0;var{x:J,y:F}=O,A=this.a.redMul(J),H=J.redSqr().redMul(J).redIAdd(A).redIAdd(this.b);return F.redSqr().redISub(H).cmpn(0)===0},X.prototype._endoWnafMulAdd=function(O,J,F){for(var A=this._endoWnafT1,H=this._endoWnafT2,W=0;W":""},K.prototype.isInfinity=function(){return this.inf},K.prototype.add=function(O){if(this.inf)return O;if(O.inf)return this;if(this.eq(O))return this.dbl();if(this.neg().eq(O))return this.curve.point(null,null);if(this.x.cmp(O.x)===0)return this.curve.point(null,null);var J=this.y.redSub(O.y);J.cmpn(0)!==0&&(J=J.redMul(this.x.redSub(O.x).redInvm()));var F=J.redSqr().redISub(this.x).redISub(O.x),A=J.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,A)},K.prototype.dbl=function(){if(this.inf)return this;var O=this.y.redAdd(this.y);if(O.cmpn(0)===0)return this.curve.point(null,null);var J=this.curve.a,F=this.x.redSqr(),A=O.redInvm(),H=F.redAdd(F).redIAdd(F).redIAdd(J).redMul(A),W=H.redSqr().redISub(this.x.redAdd(this.x)),E=H.redMul(this.x.redSub(W)).redISub(this.y);return this.curve.point(W,E)},K.prototype.getX=function(){return this.x.fromRed()},K.prototype.getY=function(){return this.y.fromRed()},K.prototype.mul=function(O){return O=new Z(O,16),this.isInfinity()?this:this._hasDoubles(O)?this.curve._fixedNafMul(this,O):this.curve.endo?this.curve._endoWnafMulAdd([this],[O]):this.curve._wnafMul(this,O)},K.prototype.mulAdd=function(O,J,F){var A=[this,J],H=[O,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,H):this.curve._wnafMulAdd(1,A,H,2)},K.prototype.jmulAdd=function(O,J,F){var A=[this,J],H=[O,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,H,!0):this.curve._wnafMulAdd(1,A,H,2,!0)},K.prototype.eq=function(O){return this===O||this.inf===O.inf&&(this.inf||this.x.cmp(O.x)===0&&this.y.cmp(O.y)===0)},K.prototype.neg=function(O){if(this.inf)return this;var J=this.curve.point(this.x,this.y.redNeg());if(O&&this.precomputed){var F=this.precomputed,A=function(H){return H.neg()};J.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(A)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(A)}}}return J},K.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var O=this.curve.jpoint(this.x,this.y,this.curve.one);return O};function I(O,J,F,A){V.BasePoint.call(this,O,"jacobian"),J===null&&F===null&&A===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0)):(this.x=new Z(J,16),this.y=new Z(F,16),this.z=new Z(A,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}G(I,V.BasePoint),X.prototype.jpoint=function(O,J,F){return new I(this,O,J,F)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var O=this.z.redInvm(),J=O.redSqr(),F=this.x.redMul(J),A=this.y.redMul(J).redMul(O);return this.curve.point(F,A)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(O){if(this.isInfinity())return O;if(O.isInfinity())return this;var J=O.z.redSqr(),F=this.z.redSqr(),A=this.x.redMul(J),H=O.x.redMul(F),W=this.y.redMul(J.redMul(O.z)),E=O.y.redMul(F.redMul(this.z)),T=A.redSub(H),D=W.redSub(E);if(T.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=T.redSqr(),L=C.redMul(T),R=A.redMul(C),P=D.redSqr().redIAdd(L).redISub(R).redISub(R),z=D.redMul(R.redISub(P)).redISub(W.redMul(L)),M=this.z.redMul(O.z).redMul(T);return this.curve.jpoint(P,z,M)},I.prototype.mixedAdd=function(O){if(this.isInfinity())return O.toJ();if(O.isInfinity())return this;var J=this.z.redSqr(),F=this.x,A=O.x.redMul(J),H=this.y,W=O.y.redMul(J).redMul(this.z),E=F.redSub(A),T=H.redSub(W);if(E.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=E.redSqr(),C=D.redMul(E),L=F.redMul(D),R=T.redSqr().redIAdd(C).redISub(L).redISub(L),P=T.redMul(L.redISub(R)).redISub(H.redMul(C)),z=this.z.redMul(E);return this.curve.jpoint(R,P,z)},I.prototype.dblp=function(O){if(O===0)return this;if(this.isInfinity())return this;if(!O)return this.dbl();var J;if(this.curve.zeroA||this.curve.threeA){var F=this;for(J=0;J=0)return!1;if(F.redIAdd(H),this.x.cmp(F)===0)return!0}},I.prototype.inspect=function(){return this.isInfinity()?"":""},I.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),sQ=q$({"node_modules/elliptic/lib/elliptic/curve/mont.js"($,Q){var Y=bQ(),Z=_$(),G=uQ(),V=oQ();function U(K){G.call(this,"mont",K),this.a=new Y(K.a,16).toRed(this.red),this.b=new Y(K.b,16).toRed(this.red),this.i4=new Y(4).toRed(this.red).redInvm(),this.two=new Y(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Z(U,G),Q.exports=U,U.prototype.validate=function(K){var I=K.normalize().x,O=I.redSqr(),J=O.redMul(I).redAdd(O.redMul(this.a)).redAdd(I),F=J.redSqrt();return F.redSqr().cmp(J)===0};function X(K,I,O){G.BasePoint.call(this,K,"projective"),I===null&&O===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Y(I,16),this.z=new Y(O,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Z(X,G.BasePoint),U.prototype.decodePoint=function(K,I){return this.point(V.toArray(K,I),1)},U.prototype.point=function(K,I){return new X(this,K,I)},U.prototype.pointFromJSON=function(K){return X.fromJSON(this,K)},X.prototype.precompute=function(){},X.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},X.fromJSON=function(K,I){return new X(K,I[0],I[1]||K.one)},X.prototype.inspect=function(){return this.isInfinity()?"":""},X.prototype.isInfinity=function(){return this.z.cmpn(0)===0},X.prototype.dbl=function(){var K=this.x.redAdd(this.z),I=K.redSqr(),O=this.x.redSub(this.z),J=O.redSqr(),F=I.redSub(J),A=I.redMul(J),H=F.redMul(J.redAdd(this.curve.a24.redMul(F)));return this.curve.point(A,H)},X.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.diffAdd=function(K,I){var O=this.x.redAdd(this.z),J=this.x.redSub(this.z),F=K.x.redAdd(K.z),A=K.x.redSub(K.z),H=A.redMul(O),W=F.redMul(J),E=I.z.redMul(H.redAdd(W).redSqr()),T=I.x.redMul(H.redISub(W).redSqr());return this.curve.point(E,T)},X.prototype.mul=function(K){for(var I=K.clone(),O=this,J=this.curve.point(null,null),F=this,A=[];I.cmpn(0)!==0;I.iushrn(1))A.push(I.andln(1));for(var H=A.length-1;H>=0;H--)A[H]===0?(O=O.diffAdd(J,F),J=J.dbl()):(J=O.diffAdd(J,F),O=O.dbl());return J},X.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.eq=function(K){return this.getX().cmp(K.getX())===0},X.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},X.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),tQ=q$({"node_modules/elliptic/lib/elliptic/curve/edwards.js"($,Q){var Y=oQ(),Z=bQ(),G=_$(),V=uQ(),U=Y.assert;function X(I){this.twisted=(I.a|0)!==1,this.mOneA=this.twisted&&(I.a|0)===-1,this.extended=this.mOneA,V.call(this,"edwards",I),this.a=new Z(I.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Z(I.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Z(I.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(I.c|0)===1}G(X,V),Q.exports=X,X.prototype._mulA=function(I){return this.mOneA?I.redNeg():this.a.redMul(I)},X.prototype._mulC=function(I){return this.oneC?I:this.c.redMul(I)},X.prototype.jpoint=function(I,O,J,F){return this.point(I,O,J,F)},X.prototype.pointFromX=function(I,O){I=new Z(I,16),I.red||(I=I.toRed(this.red));var J=I.redSqr(),F=this.c2.redSub(this.a.redMul(J)),A=this.one.redSub(this.c2.redMul(this.d).redMul(J)),H=F.redMul(A.redInvm()),W=H.redSqrt();if(W.redSqr().redSub(H).cmp(this.zero)!==0)throw new Error("invalid point");var E=W.fromRed().isOdd();return(O&&!E||!O&&E)&&(W=W.redNeg()),this.point(I,W)},X.prototype.pointFromY=function(I,O){I=new Z(I,16),I.red||(I=I.toRed(this.red));var J=I.redSqr(),F=J.redSub(this.c2),A=J.redMul(this.d).redMul(this.c2).redSub(this.a),H=F.redMul(A.redInvm());if(H.cmp(this.zero)===0){if(O)throw new Error("invalid point");return this.point(this.zero,I)}var W=H.redSqrt();if(W.redSqr().redSub(H).cmp(this.zero)!==0)throw new Error("invalid point");return W.fromRed().isOdd()!==O&&(W=W.redNeg()),this.point(W,I)},X.prototype.validate=function(I){if(I.isInfinity())return!0;I.normalize();var O=I.x.redSqr(),J=I.y.redSqr(),F=O.redMul(this.a).redAdd(J),A=this.c2.redMul(this.one.redAdd(this.d.redMul(O).redMul(J)));return F.cmp(A)===0};function K(I,O,J,F,A){V.BasePoint.call(this,I,"projective"),O===null&&J===null&&F===null?(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 Z(O,16),this.y=new Z(J,16),this.z=F?new Z(F,16):this.curve.one,this.t=A&&new Z(A,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()))))}G(K,V.BasePoint),X.prototype.pointFromJSON=function(I){return K.fromJSON(this,I)},X.prototype.point=function(I,O,J,F){return new K(this,I,O,J,F)},K.fromJSON=function(I,O){return new K(I,O[0],O[1],O[2])},K.prototype.inspect=function(){return this.isInfinity()?"":""},K.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},K.prototype._extDbl=function(){var I=this.x.redSqr(),O=this.y.redSqr(),J=this.z.redSqr();J=J.redIAdd(J);var F=this.curve._mulA(I),A=this.x.redAdd(this.y).redSqr().redISub(I).redISub(O),H=F.redAdd(O),W=H.redSub(J),E=F.redSub(O),T=A.redMul(W),D=H.redMul(E),C=A.redMul(E),L=W.redMul(H);return this.curve.point(T,D,L,C)},K.prototype._projDbl=function(){var I=this.x.redAdd(this.y).redSqr(),O=this.x.redSqr(),J=this.y.redSqr(),F,A,H,W,E,T;if(this.curve.twisted){W=this.curve._mulA(O);var D=W.redAdd(J);this.zOne?(F=I.redSub(O).redSub(J).redMul(D.redSub(this.curve.two)),A=D.redMul(W.redSub(J)),H=D.redSqr().redSub(D).redSub(D)):(E=this.z.redSqr(),T=D.redSub(E).redISub(E),F=I.redSub(O).redISub(J).redMul(T),A=D.redMul(W.redSub(J)),H=D.redMul(T))}else W=O.redAdd(J),E=this.curve._mulC(this.z).redSqr(),T=W.redSub(E).redSub(E),F=this.curve._mulC(I.redISub(W)).redMul(T),A=this.curve._mulC(W).redMul(O.redISub(J)),H=W.redMul(T);return this.curve.point(F,A,H)},K.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},K.prototype._extAdd=function(I){var O=this.y.redSub(this.x).redMul(I.y.redSub(I.x)),J=this.y.redAdd(this.x).redMul(I.y.redAdd(I.x)),F=this.t.redMul(this.curve.dd).redMul(I.t),A=this.z.redMul(I.z.redAdd(I.z)),H=J.redSub(O),W=A.redSub(F),E=A.redAdd(F),T=J.redAdd(O),D=H.redMul(W),C=E.redMul(T),L=H.redMul(T),R=W.redMul(E);return this.curve.point(D,C,R,L)},K.prototype._projAdd=function(I){var O=this.z.redMul(I.z),J=O.redSqr(),F=this.x.redMul(I.x),A=this.y.redMul(I.y),H=this.curve.d.redMul(F).redMul(A),W=J.redSub(H),E=J.redAdd(H),T=this.x.redAdd(this.y).redMul(I.x.redAdd(I.y)).redISub(F).redISub(A),D=O.redMul(W).redMul(T),C,L;return this.curve.twisted?(C=O.redMul(E).redMul(A.redSub(this.curve._mulA(F))),L=W.redMul(E)):(C=O.redMul(E).redMul(A.redSub(F)),L=this.curve._mulC(W).redMul(E)),this.curve.point(D,C,L)},K.prototype.add=function(I){return this.isInfinity()?I:I.isInfinity()?this:this.curve.extended?this._extAdd(I):this._projAdd(I)},K.prototype.mul=function(I){return this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve._wnafMul(this,I)},K.prototype.mulAdd=function(I,O,J){return this.curve._wnafMulAdd(1,[this,O],[I,J],2,!1)},K.prototype.jmulAdd=function(I,O,J){return this.curve._wnafMulAdd(1,[this,O],[I,J],2,!0)},K.prototype.normalize=function(){if(this.zOne)return this;var I=this.z.redInvm();return this.x=this.x.redMul(I),this.y=this.y.redMul(I),this.t&&(this.t=this.t.redMul(I)),this.z=this.curve.one,this.zOne=!0,this},K.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},K.prototype.getX=function(){return this.normalize(),this.x.fromRed()},K.prototype.getY=function(){return this.normalize(),this.y.fromRed()},K.prototype.eq=function(I){return this===I||this.getX().cmp(I.getX())===0&&this.getY().cmp(I.getY())===0},K.prototype.eqXToP=function(I){var O=I.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(O)===0)return!0;for(var J=I.clone(),F=this.curve.redN.redMul(this.z);;){if(J.iadd(this.curve.n),J.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(F),this.x.cmp(O)===0)return!0}},K.prototype.toP=K.prototype.normalize,K.prototype.mixedAdd=K.prototype.add}}),mQ=q$({"node_modules/elliptic/lib/elliptic/curve/index.js"($){var Q=$;Q.base=uQ(),Q.short=nQ(),Q.mont=sQ(),Q.edwards=tQ()}}),aQ=q$({"node_modules/hash.js/lib/hash/utils.js"($){var Q=ZQ(),Y=_$();$.inherits=Y;function Z(k,g){return(k.charCodeAt(g)&64512)!==55296||g<0||g+1>=k.length?!1:(k.charCodeAt(g+1)&64512)===56320}function G(k,g){if(Array.isArray(k))return k.slice();if(!k)return[];var _=[];if(typeof k=="string")if(g){if(g==="hex")for(k=k.replace(/[^a-z0-9]+/gi,""),k.length%2!==0&&(k="0"+k),x=0;x>6|192,_[N++]=B&63|128):Z(k,x)?(B=65536+((B&1023)<<10)+(k.charCodeAt(++x)&1023),_[N++]=B>>18|240,_[N++]=B>>12&63|128,_[N++]=B>>6&63|128,_[N++]=B&63|128):(_[N++]=B>>12|224,_[N++]=B>>6&63|128,_[N++]=B&63|128)}else for(x=0;x>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return g>>>0}$.htonl=U;function X(k,g){for(var _="",N=0;N>>0}return B}$.join32=O;function J(k,g){for(var _=new Array(k.length*4),N=0,x=0;N>>24,_[x+1]=B>>>16&255,_[x+2]=B>>>8&255,_[x+3]=B&255):(_[x+3]=B>>>24,_[x+2]=B>>>16&255,_[x+1]=B>>>8&255,_[x]=B&255)}return _}$.split32=J;function F(k,g){return k>>>g|k<<32-g}$.rotr32=F;function A(k,g){return k<>>32-g}$.rotl32=A;function H(k,g){return k+g>>>0}$.sum32=H;function W(k,g,_){return k+g+_>>>0}$.sum32_3=W;function E(k,g,_,N){return k+g+_+N>>>0}$.sum32_4=E;function T(k,g,_,N,x){return k+g+_+N+x>>>0}$.sum32_5=T;function D(k,g,_,N){var x=k[g],B=k[g+1],y=N+B>>>0,w=(y>>0,k[g+1]=y}$.sum64=D;function C(k,g,_,N){var x=g+N>>>0,B=(x>>0}$.sum64_hi=C;function L(k,g,_,N){var x=g+N;return x>>>0}$.sum64_lo=L;function R(k,g,_,N,x,B,y,w){var p=0,f=g;f=f+N>>>0,p+=f>>0,p+=f>>0,p+=f>>0}$.sum64_4_hi=R;function P(k,g,_,N,x,B,y,w){var p=g+N+B+w;return p>>>0}$.sum64_4_lo=P;function z(k,g,_,N,x,B,y,w,p,f){var c=0,h=g;h=h+N>>>0,c+=h>>0,c+=h>>0,c+=h>>0,c+=h>>0}$.sum64_5_hi=z;function M(k,g,_,N,x,B,y,w,p,f){var c=g+N+B+w+f;return c>>>0}$.sum64_5_lo=M;function S(k,g,_){var N=g<<32-_|k>>>_;return N>>>0}$.rotr64_hi=S;function v(k,g,_){var N=k<<32-_|g>>>_;return N>>>0}$.rotr64_lo=v;function q(k,g,_){return k>>>_}$.shr64_hi=q;function j(k,g,_){var N=k<<32-_|g>>>_;return N>>>0}$.shr64_lo=j}}),eQ=q$({"node_modules/hash.js/lib/hash/common.js"($){var Q=aQ(),Y=ZQ();function Z(){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}$.BlockHash=Z,Z.prototype.update=function(G,V){if(G=Q.toArray(G,V),this.pending?this.pending=this.pending.concat(G):this.pending=G,this.pendingTotal+=G.length,this.pending.length>=this._delta8){G=this.pending;var U=G.length%this._delta8;this.pending=G.slice(G.length-U,G.length),this.pending.length===0&&(this.pending=null),G=Q.join32(G,0,G.length-U,this.endian);for(var X=0;X>>24&255,X[K++]=G>>>16&255,X[K++]=G>>>8&255,X[K++]=G&255}else for(X[K++]=G&255,X[K++]=G>>>8&255,X[K++]=G>>>16&255,X[K++]=G>>>24&255,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,I=8;I>>3}$.g0_256=I;function O(J){return Y(J,17)^Y(J,19)^J>>>10}$.g1_256=O}}),iQ=q$({"node_modules/hash.js/lib/hash/sha/1.js"($,Q){var Y=aQ(),Z=eQ(),G=rQ(),V=Y.rotl32,U=Y.sum32,X=Y.sum32_5,K=G.ft_1,I=Z.BlockHash,O=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;I.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Y.inherits(J,I),Q.exports=J,J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(F,A){for(var H=this.W,W=0;W<16;W++)H[W]=F[A+W];for(;Wthis.blockSize&&(V=new this.Hash().update(V).digest()),Z(V.length<=this.blockSize);for(var U=V.length;U=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(X,K,I)}Q.exports=V,V.prototype._init=function(U,X,K){var I=U.concat(X).concat(K);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var O=0;O=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(K||[])),this._reseed=1},V.prototype.generate=function(U,X,K,I){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof X!="string"&&(I=K,K=X,X=null),K&&(K=Z.toArray(K,I||"hex"),this._update(K));for(var O=[];O.length"}}}),FY=q$({"node_modules/elliptic/lib/elliptic/ec/signature.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.assert;function V(O,J){if(O instanceof V)return O;this._importDER(O,J)||(G(O.r&&O.s,"Signature without r or s"),this.r=new Y(O.r,16),this.s=new Y(O.s,16),O.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=O.recoveryParam)}Q.exports=V;function U(){this.place=0}function X(O,J){var F=O[J.place++];if(!(F&128))return F;var A=F&15;if(A===0||A>4)return!1;for(var H=0,W=0,E=J.place;W>>=0;return H<=127?!1:(J.place=E,H)}function K(O){for(var J=0,F=O.length-1;!O[J]&&!(O[J+1]&128)&&J>>3);for(O.push(F|128);--F;)O.push(J>>>(F<<3)&255);O.push(J)}V.prototype.toDER=function(O){var J=this.r.toArray(),F=this.s.toArray();for(J[0]&128&&(J=[0].concat(J)),F[0]&128&&(F=[0].concat(F)),J=K(J),F=K(F);!F[0]&&!(F[1]&128);)F=F.slice(1);var A=[2];I(A,J.length),A=A.concat(J),A.push(2),I(A,F.length);var H=A.concat(F),W=[48];return I(W,H.length),W=W.concat(H),Z.encode(W,O)}}}),AY=q$({"node_modules/elliptic/lib/elliptic/ec/index.js"($,Q){var Y=bQ(),Z=OY(),G=oQ(),V=IY(),U=xQ(),X=G.assert,K=JY(),I=FY();function O(J){if(!(this instanceof O))return new O(J);typeof J=="string"&&(X(Object.prototype.hasOwnProperty.call(V,J),"Unknown curve "+J),J=V[J]),J instanceof V.PresetCurve&&(J={curve:J}),this.curve=J.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=J.curve.g,this.g.precompute(J.curve.n.bitLength()+1),this.hash=J.hash||J.curve.hash}Q.exports=O,O.prototype.keyPair=function(J){return new K(this,J)},O.prototype.keyFromPrivate=function(J,F){return K.fromPrivate(this,J,F)},O.prototype.keyFromPublic=function(J,F){return K.fromPublic(this,J,F)},O.prototype.genKeyPair=function(J){J||(J={});for(var F=new Z({hash:this.hash,pers:J.pers,persEnc:J.persEnc||"utf8",entropy:J.entropy||U(this.hash.hmacStrength),entropyEnc:J.entropy&&J.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),H=this.n.sub(new Y(2));;){var W=new Y(F.generate(A));if(!(W.cmp(H)>0))return W.iaddn(1),this.keyFromPrivate(W)}},O.prototype._truncateToN=function(J,F){var A=J.byteLength()*8-this.n.bitLength();return A>0&&(J=J.ushrn(A)),!F&&J.cmp(this.n)>=0?J.sub(this.n):J},O.prototype.sign=function(J,F,A,H){typeof A=="object"&&(H=A,A=null),H||(H={}),F=this.keyFromPrivate(F,A),J=this._truncateToN(new Y(J,16));for(var W=this.n.byteLength(),E=F.getPrivate().toArray("be",W),T=J.toArray("be",W),D=new Z({hash:this.hash,entropy:E,nonce:T,pers:H.pers,persEnc:H.persEnc||"utf8"}),C=this.n.sub(new Y(1)),L=0;;L++){var R=H.k?H.k(L):new Y(D.generate(this.n.byteLength()));if(R=this._truncateToN(R,!0),!(R.cmpn(1)<=0||R.cmp(C)>=0)){var P=this.g.mul(R);if(!P.isInfinity()){var z=P.getX(),M=z.umod(this.n);if(M.cmpn(0)!==0){var S=R.invm(this.n).mul(M.mul(F.getPrivate()).iadd(J));if(S=S.umod(this.n),S.cmpn(0)!==0){var v=(P.getY().isOdd()?1:0)|(z.cmp(M)!==0?2:0);return H.canonical&&S.cmp(this.nh)>0&&(S=this.n.sub(S),v^=1),new I({r:M,s:S,recoveryParam:v})}}}}}},O.prototype.verify=function(J,F,A,H){J=this._truncateToN(new Y(J,16)),A=this.keyFromPublic(A,H),F=new I(F,"hex");var{r:W,s:E}=F;if(W.cmpn(1)<0||W.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var T=E.invm(this.n),D=T.mul(J).umod(this.n),C=T.mul(W).umod(this.n),L;return this.curve._maxwellTrick?(L=this.g.jmulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.eqXToP(W)):(L=this.g.mulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.getX().umod(this.n).cmp(W)===0)},O.prototype.recoverPubKey=function(J,F,A,H){X((3&A)===A,"The recovery param is more than two bits"),F=new I(F,H);var W=this.n,E=new Y(J),T=F.r,D=F.s,C=A&1,L=A>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&L)throw new Error("Unable to find sencond key candinate");L?T=this.curve.pointFromX(T.add(this.curve.n),C):T=this.curve.pointFromX(T,C);var R=F.r.invm(W),P=W.sub(E).mul(R).umod(W),z=D.mul(R).umod(W);return this.g.mulAdd(P,T,z)},O.prototype.getKeyRecoveryParam=function(J,F,A,H){if(F=new I(F,H),F.recoveryParam!==null)return F.recoveryParam;for(var W=0;W<4;W++){var E;try{E=this.recoverPubKey(J,F,W)}catch{continue}if(E.eq(A))return W}throw new Error("Unable to find valid recovery factor")}}}),HY=q$({"node_modules/elliptic/lib/elliptic/eddsa/key.js"($,Q){var Y=oQ(),Z=Y.assert,G=Y.parseBytes,V=Y.cachedProperty;function U(X,K){this.eddsa=X,this._secret=G(K.secret),X.isPoint(K.pub)?this._pub=K.pub:this._pubBytes=G(K.pub)}U.fromPublic=function(X,K){return K instanceof U?K:new U(X,{pub:K})},U.fromSecret=function(X,K){return K instanceof U?K:new U(X,{secret:K})},U.prototype.secret=function(){return this._secret},V(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),V(U,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),V(U,"privBytes",function(){var X=this.eddsa,K=this.hash(),I=X.encodingLength-1,O=K.slice(0,X.encodingLength);return O[0]&=248,O[I]&=127,O[I]|=64,O}),V(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),V(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),V(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(X){return Z(this._secret,"KeyPair can only verify"),this.eddsa.sign(X,this)},U.prototype.verify=function(X,K){return this.eddsa.verify(X,K,this)},U.prototype.getSecret=function(X){return Z(this._secret,"KeyPair is public only"),Y.encode(this.secret(),X)},U.prototype.getPublic=function(X){return Y.encode(this.pubBytes(),X)},Q.exports=U}}),WY=q$({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.assert,V=Z.cachedProperty,U=Z.parseBytes;function X(K,I){this.eddsa=K,typeof I!="object"&&(I=U(I)),Array.isArray(I)&&(I={R:I.slice(0,K.encodingLength),S:I.slice(K.encodingLength)}),G(I.R&&I.S,"Signature without R or S"),K.isPoint(I.R)&&(this._R=I.R),I.S instanceof Y&&(this._S=I.S),this._Rencoded=Array.isArray(I.R)?I.R:I.Rencoded,this._Sencoded=Array.isArray(I.S)?I.S:I.Sencoded}V(X,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),V(X,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),V(X,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),V(X,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),X.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},X.prototype.toHex=function(){return Z.encode(this.toBytes(),"hex").toUpperCase()},Q.exports=X}}),EY=q$({"node_modules/elliptic/lib/elliptic/eddsa/index.js"($,Q){var Y=XY(),Z=IY(),G=oQ(),V=G.assert,U=G.parseBytes,X=HY(),K=WY();function I(O){if(V(O==="ed25519","only tested with ed25519 so far"),!(this instanceof I))return new I(O);O=Z[O].curve,this.curve=O,this.g=O.g,this.g.precompute(O.n.bitLength()+1),this.pointClass=O.point().constructor,this.encodingLength=Math.ceil(O.n.bitLength()/8),this.hash=Y.sha512}Q.exports=I,I.prototype.sign=function(O,J){O=U(O);var F=this.keyFromSecret(J),A=this.hashInt(F.messagePrefix(),O),H=this.g.mul(A),W=this.encodePoint(H),E=this.hashInt(W,F.pubBytes(),O).mul(F.priv()),T=A.add(E).umod(this.curve.n);return this.makeSignature({R:H,S:T,Rencoded:W})},I.prototype.verify=function(O,J,F){O=U(O),J=this.makeSignature(J);var A=this.keyFromPublic(F),H=this.hashInt(J.Rencoded(),A.pubBytes(),O),W=this.g.mul(J.S()),E=J.R().add(A.pub().mul(H));return E.eq(W)},I.prototype.hashInt=function(){for(var O=this.hash(),J=0;J0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),CY=q$({"node_modules/safer-buffer/safer.js"($,Q){var Y=M$,Z=F$,G={},V;for(V in Y)!Y.hasOwnProperty(V)||V==="SlowBuffer"||V==="Buffer"||(G[V]=Y[V]);var U=G.Buffer={};for(V in Z)!Z.hasOwnProperty(V)||V==="allocUnsafe"||V==="allocUnsafeSlow"||(U[V]=Z[V]);if(G.Buffer.prototype=Z.prototype,(!U.from||U.from===Uint8Array.from)&&(U.from=function(X,K,I){if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof X);if(X&&typeof X.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);return Z(X,K,I)}),U.alloc||(U.alloc=function(X,K,I){if(typeof X!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof X);if(X<0||X>=2*(1<<30))throw new RangeError('The value "'+X+'" is invalid for option "size"');var O=Z(X);return!K||K.length===0?O.fill(0):typeof I=="string"?O.fill(K,I):O.fill(K),O}),!G.kStringMaxLength)try{G.kStringMaxLength=S$}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),Q.exports=G}}),LY=q$({"node_modules/asn1.js/lib/asn1/base/reporter.js"($){var Q=_$();function Y(G){this._reporterState={obj:null,path:[],options:G||{},errors:[]}}$.Reporter=Y,Y.prototype.isError=function(G){return G instanceof Z},Y.prototype.save=function(){let G=this._reporterState;return{obj:G.obj,pathLen:G.path.length}},Y.prototype.restore=function(G){let V=this._reporterState;V.obj=G.obj,V.path=V.path.slice(0,G.pathLen)},Y.prototype.enterKey=function(G){return this._reporterState.path.push(G)},Y.prototype.exitKey=function(G){let V=this._reporterState;V.path=V.path.slice(0,G-1)},Y.prototype.leaveKey=function(G,V,U){let X=this._reporterState;this.exitKey(G),X.obj!==null&&(X.obj[V]=U)},Y.prototype.path=function(){return this._reporterState.path.join("/")},Y.prototype.enterObject=function(){let G=this._reporterState,V=G.obj;return G.obj={},V},Y.prototype.leaveObject=function(G){let V=this._reporterState,U=V.obj;return V.obj=G,U},Y.prototype.error=function(G){let V,U=this._reporterState,X=G instanceof Z;if(X?V=G:V=new Z(U.path.map(function(K){return"["+JSON.stringify(K)+"]"}).join(""),G.message||G,G.stack),!U.options.partial)throw V;return X||U.errors.push(V),V},Y.prototype.wrapResult=function(G){let V=this._reporterState;return V.options.partial?{result:this.isError(G)?null:G,errors:V.errors}:G};function Z(G,V){this.path=G,this.rethrow(V)}Q(Z,Error),Z.prototype.rethrow=function(G){if(this.message=G+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Z),!this.stack)try{throw new Error(this.message)}catch(V){this.stack=V.stack}return this}}}),E$=q$({"node_modules/asn1.js/lib/asn1/base/buffer.js"($){var Q=_$(),Y=LY().Reporter,Z=CY().Buffer;function G(U,X){if(Y.call(this,X),!Z.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}Q(G,Y),$.DecoderBuffer=G,G.isDecoderBuffer=function(U){return U instanceof G?!0:typeof U=="object"&&Z.isBuffer(U.base)&&U.constructor.name==="DecoderBuffer"&&typeof U.offset=="number"&&typeof U.length=="number"&&typeof U.save=="function"&&typeof U.restore=="function"&&typeof U.isEmpty=="function"&&typeof U.readUInt8=="function"&&typeof U.skip=="function"&&typeof U.raw=="function"},G.prototype.save=function(){return{offset:this.offset,reporter:Y.prototype.save.call(this)}},G.prototype.restore=function(U){let X=new G(this.base);return X.offset=U.offset,X.length=this.offset,this.offset=U.offset,Y.prototype.restore.call(this,U.reporter),X},G.prototype.isEmpty=function(){return this.offset===this.length},G.prototype.readUInt8=function(U){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(U||"DecoderBuffer overrun")},G.prototype.skip=function(U,X){if(!(this.offset+U<=this.length))return this.error(X||"DecoderBuffer overrun");let K=new G(this.base);return K._reporterState=this._reporterState,K.offset=this.offset,K.length=this.offset+U,this.offset+=U,K},G.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function V(U,X){if(Array.isArray(U))this.length=0,this.value=U.map(function(K){return V.isEncoderBuffer(K)||(K=new V(K,X)),this.length+=K.length,K},this);else if(typeof U=="number"){if(!(0<=U&&U<=255))return X.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U=="string")this.value=U,this.length=Z.byteLength(U);else if(Z.isBuffer(U))this.value=U,this.length=U.length;else return X.error("Unsupported type: "+typeof U)}$.EncoderBuffer=V,V.isEncoderBuffer=function(U){return U instanceof V?!0:typeof U=="object"&&U.constructor.name==="EncoderBuffer"&&typeof U.length=="number"&&typeof U.join=="function"},V.prototype.join=function(U,X){return U||(U=Z.alloc(this.length)),X||(X=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(K){K.join(U,X),X+=K.length}):(typeof this.value=="number"?U[X]=this.value:typeof this.value=="string"?U.write(this.value,X):Z.isBuffer(this.value)&&this.value.copy(U,X),X+=this.length)),U}}}),RY=q$({"node_modules/asn1.js/lib/asn1/base/node.js"($,Q){var Y=LY().Reporter,Z=E$().EncoderBuffer,G=E$().DecoderBuffer,V=ZQ(),U=["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"],X=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),K=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function I(J,F,A){let H={};this._baseState=H,H.name=A,H.enc=J,H.parent=F||null,H.children=null,H.tag=null,H.args=null,H.reverseArgs=null,H.choice=null,H.optional=!1,H.any=!1,H.obj=!1,H.use=null,H.useDecoder=null,H.key=null,H.default=null,H.explicit=null,H.implicit=null,H.contains=null,H.parent||(H.children=[],this._wrap())}Q.exports=I;var O=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];I.prototype.clone=function(){let J=this._baseState,F={};O.forEach(function(H){F[H]=J[H]});let A=new this.constructor(F.parent);return A._baseState=F,A},I.prototype._wrap=function(){let J=this._baseState;X.forEach(function(F){this[F]=function(){let A=new this.constructor(this);return J.children.push(A),A[F].apply(A,arguments)}},this)},I.prototype._init=function(J){let F=this._baseState;V(F.parent===null),J.call(this),F.children=F.children.filter(function(A){return A._baseState.parent===this},this),V.equal(F.children.length,1,"Root node can have only one child")},I.prototype._useArgs=function(J){let F=this._baseState,A=J.filter(function(H){return H instanceof this.constructor},this);J=J.filter(function(H){return!(H instanceof this.constructor)},this),A.length!==0&&(V(F.children===null),F.children=A,A.forEach(function(H){H._baseState.parent=this},this)),J.length!==0&&(V(F.args===null),F.args=J,F.reverseArgs=J.map(function(H){if(typeof H!="object"||H.constructor!==Object)return H;let W={};return Object.keys(H).forEach(function(E){E==(E|0)&&(E|=0);let T=H[E];W[T]=E}),W}))},K.forEach(function(J){I.prototype[J]=function(){let F=this._baseState;throw new Error(J+" not implemented for encoding: "+F.enc)}}),U.forEach(function(J){I.prototype[J]=function(){let F=this._baseState,A=Array.prototype.slice.call(arguments);return V(F.tag===null),F.tag=J,this._useArgs(A),this}}),I.prototype.use=function(J){V(J);let F=this._baseState;return V(F.use===null),F.use=J,this},I.prototype.optional=function(){let J=this._baseState;return J.optional=!0,this},I.prototype.def=function(J){let F=this._baseState;return V(F.default===null),F.default=J,F.optional=!0,this},I.prototype.explicit=function(J){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.explicit=J,this},I.prototype.implicit=function(J){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.implicit=J,this},I.prototype.obj=function(){let J=this._baseState,F=Array.prototype.slice.call(arguments);return J.obj=!0,F.length!==0&&this._useArgs(F),this},I.prototype.key=function(J){let F=this._baseState;return V(F.key===null),F.key=J,this},I.prototype.any=function(){let J=this._baseState;return J.any=!0,this},I.prototype.choice=function(J){let F=this._baseState;return V(F.choice===null),F.choice=J,this._useArgs(Object.keys(J).map(function(A){return J[A]})),this},I.prototype.contains=function(J){let F=this._baseState;return V(F.use===null),F.contains=J,this},I.prototype._decode=function(J,F){let A=this._baseState;if(A.parent===null)return J.wrapResult(A.children[0]._decode(J,F));let H=A.default,W=!0,E=null;if(A.key!==null&&(E=J.enterKey(A.key)),A.optional){let D=null;if(A.explicit!==null?D=A.explicit:A.implicit!==null?D=A.implicit:A.tag!==null&&(D=A.tag),D===null&&!A.any){let C=J.save();try{A.choice===null?this._decodeGeneric(A.tag,J,F):this._decodeChoice(J,F),W=!0}catch{W=!1}J.restore(C)}else if(W=this._peekTag(J,D,A.any),J.isError(W))return W}let T;if(A.obj&&W&&(T=J.enterObject()),W){if(A.explicit!==null){let C=this._decodeTag(J,A.explicit);if(J.isError(C))return C;J=C}let D=J.offset;if(A.use===null&&A.choice===null){let C;A.any&&(C=J.save());let L=this._decodeTag(J,A.implicit!==null?A.implicit:A.tag,A.any);if(J.isError(L))return L;A.any?H=J.raw(C):J=L}if(F&&F.track&&A.tag!==null&&F.track(J.path(),D,J.length,"tagged"),F&&F.track&&A.tag!==null&&F.track(J.path(),J.offset,J.length,"content"),A.any||(A.choice===null?H=this._decodeGeneric(A.tag,J,F):H=this._decodeChoice(J,F)),J.isError(H))return H;if(!A.any&&A.choice===null&&A.children!==null&&A.children.forEach(function(C){C._decode(J,F)}),A.contains&&(A.tag==="octstr"||A.tag==="bitstr")){let C=new G(H);H=this._getUse(A.contains,J._reporterState.obj)._decode(C,F)}}return A.obj&&W&&(H=J.leaveObject(T)),A.key!==null&&(H!==null||W===!0)?J.leaveKey(E,A.key,H):E!==null&&J.exitKey(E),H},I.prototype._decodeGeneric=function(J,F,A){let H=this._baseState;return J==="seq"||J==="set"?null:J==="seqof"||J==="setof"?this._decodeList(F,J,H.args[0],A):/str$/.test(J)?this._decodeStr(F,J,A):J==="objid"&&H.args?this._decodeObjid(F,H.args[0],H.args[1],A):J==="objid"?this._decodeObjid(F,null,null,A):J==="gentime"||J==="utctime"?this._decodeTime(F,J,A):J==="null_"?this._decodeNull(F,A):J==="bool"?this._decodeBool(F,A):J==="objDesc"?this._decodeStr(F,J,A):J==="int"||J==="enum"?this._decodeInt(F,H.args&&H.args[0],A):H.use!==null?this._getUse(H.use,F._reporterState.obj)._decode(F,A):F.error("unknown tag: "+J)},I.prototype._getUse=function(J,F){let A=this._baseState;return A.useDecoder=this._use(J,F),V(A.useDecoder._baseState.parent===null),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit&&(A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit),A.useDecoder},I.prototype._decodeChoice=function(J,F){let A=this._baseState,H=null,W=!1;return Object.keys(A.choice).some(function(E){let T=J.save(),D=A.choice[E];try{let C=D._decode(J,F);if(J.isError(C))return!1;H={type:E,value:C},W=!0}catch{return J.restore(T),!1}return!0},this),W?H:J.error("Choice not matched")},I.prototype._createEncoderBuffer=function(J){return new Z(J,this.reporter)},I.prototype._encode=function(J,F,A){let H=this._baseState;if(H.default!==null&&H.default===J)return;let W=this._encodeValue(J,F,A);if(W!==void 0&&!this._skipDefault(W,F,A))return W},I.prototype._encodeValue=function(J,F,A){let H=this._baseState;if(H.parent===null)return H.children[0]._encode(J,F||new Y);let W=null;if(this.reporter=F,H.optional&&J===void 0)if(H.default!==null)J=H.default;else return;let E=null,T=!1;if(H.any)W=this._createEncoderBuffer(J);else if(H.choice)W=this._encodeChoice(J,F);else if(H.contains)E=this._getUse(H.contains,A)._encode(J,F),T=!0;else if(H.children)E=H.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,F,J);if(D._baseState.key===null)return F.error("Child should have a key");let C=F.enterKey(D._baseState.key);if(typeof J!="object")return F.error("Child expected, but input is not object");let L=D._encode(J[D._baseState.key],F,J);return F.leaveKey(C),L},this).filter(function(D){return D}),E=this._createEncoderBuffer(E);else if(H.tag==="seqof"||H.tag==="setof"){if(!(H.args&&H.args.length===1))return F.error("Too many args for : "+H.tag);if(!Array.isArray(J))return F.error("seqof/setof, but data is not Array");let D=this.clone();D._baseState.implicit=null,E=this._createEncoderBuffer(J.map(function(C){let L=this._baseState;return this._getUse(L.args[0],J)._encode(C,F)},D))}else H.use!==null?W=this._getUse(H.use,A)._encode(J,F):(E=this._encodePrimitive(H.tag,J),T=!0);if(!H.any&&H.choice===null){let D=H.implicit!==null?H.implicit:H.tag,C=H.implicit===null?"universal":"context";D===null?H.use===null&&F.error("Tag could be omitted only for .use()"):H.use===null&&(W=this._encodeComposite(D,T,C,E))}return H.explicit!==null&&(W=this._encodeComposite(H.explicit,!1,"context",W)),W},I.prototype._encodeChoice=function(J,F){let A=this._baseState,H=A.choice[J.type];return H||V(!1,J.type+" not found in "+JSON.stringify(Object.keys(A.choice))),H._encode(J.value,F)},I.prototype._encodePrimitive=function(J,F){let A=this._baseState;if(/str$/.test(J))return this._encodeStr(F,J);if(J==="objid"&&A.args)return this._encodeObjid(F,A.reverseArgs[0],A.args[1]);if(J==="objid")return this._encodeObjid(F,null,null);if(J==="gentime"||J==="utctime")return this._encodeTime(F,J);if(J==="null_")return this._encodeNull();if(J==="int"||J==="enum")return this._encodeInt(F,A.args&&A.reverseArgs[0]);if(J==="bool")return this._encodeBool(F);if(J==="objDesc")return this._encodeStr(F,J);throw new Error("Unsupported tag: "+J)},I.prototype._isNumstr=function(J){return/^[0-9 ]*$/.test(J)},I.prototype._isPrintstr=function(J){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(J)}}}),PY=q$({"node_modules/asn1.js/lib/asn1/constants/der.js"($){function Q(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z}$.tagClass={0:"universal",1:"application",2:"context",3:"private"},$.tagClassByName=Q($.tagClass),$.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"},$.tagByName=Q($.tag)}}),zY=q$({"node_modules/asn1.js/lib/asn1/encoders/der.js"($,Q){var Y=_$(),Z=CY().Buffer,G=RY(),V=PY();function U(O){this.enc="der",this.name=O.name,this.entity=O,this.tree=new X,this.tree._init(O.body)}Q.exports=U,U.prototype.encode=function(O,J){return this.tree._encode(O,J).join()};function X(O){G.call(this,"der",O)}Y(X,G),X.prototype._encodeComposite=function(O,J,F,A){let H=I(O,J,F,this.reporter);if(A.length<128){let T=Z.alloc(2);return T[0]=H,T[1]=A.length,this._createEncoderBuffer([T,A])}let W=1;for(let T=A.length;T>=256;T>>=8)W++;let E=Z.alloc(2+W);E[0]=H,E[1]=128|W;for(let T=1+W,D=A.length;D>0;T--,D>>=8)E[T]=D&255;return this._createEncoderBuffer([E,A])},X.prototype._encodeStr=function(O,J){if(J==="bitstr")return this._createEncoderBuffer([O.unused|0,O.data]);if(J==="bmpstr"){let F=Z.alloc(O.length*2);for(let A=0;A=40)return this.reporter.error("Second objid identifier OOB");O.splice(0,2,O[0]*40+O[1])}let A=0;for(let E=0;E=128;T>>=7)A++}let H=Z.alloc(A),W=H.length-1;for(let E=O.length-1;E>=0;E--){let T=O[E];for(H[W--]=T&127;(T>>=7)>0;)H[W--]=128|T&127}return this._createEncoderBuffer(H)};function K(O){return O<10?"0"+O:O}X.prototype._encodeTime=function(O,J){let F,A=new Date(O);return J==="gentime"?F=[K(A.getUTCFullYear()),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):J==="utctime"?F=[K(A.getUTCFullYear()%100),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+J+" time is not supported yet"),this._encodeStr(F,"octstr")},X.prototype._encodeNull=function(){return this._createEncoderBuffer("")},X.prototype._encodeInt=function(O,J){if(typeof O=="string"){if(!J)return this.reporter.error("String int or enum given, but no values map");if(!J.hasOwnProperty(O))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(O));O=J[O]}if(typeof O!="number"&&!Z.isBuffer(O)){let H=O.toArray();!O.sign&&H[0]&128&&H.unshift(0),O=Z.from(H)}if(Z.isBuffer(O)){let H=O.length;O.length===0&&H++;let W=Z.alloc(H);return O.copy(W),O.length===0&&(W[0]=0),this._createEncoderBuffer(W)}if(O<128)return this._createEncoderBuffer(O);if(O<256)return this._createEncoderBuffer([0,O]);let F=1;for(let H=O;H>=256;H>>=8)F++;let A=new Array(F);for(let H=A.length-1;H>=0;H--)A[H]=O&255,O>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(Z.from(A))},X.prototype._encodeBool=function(O){return this._createEncoderBuffer(O?255:0)},X.prototype._use=function(O,J){return typeof O=="function"&&(O=O(J)),O._getEncoder("der").tree},X.prototype._skipDefault=function(O,J,F){let A=this._baseState,H;if(A.default===null)return!1;let W=O.join();if(A.defaultBuffer===void 0&&(A.defaultBuffer=this._encodeValue(A.default,J,F).join()),W.length!==A.defaultBuffer.length)return!1;for(H=0;H=31?A.error("Multi-octet tag encoding unsupported"):(J||(H|=32),H|=V.tagClassByName[F||"universal"]<<6,H)}}}),MY=q$({"node_modules/asn1.js/lib/asn1/encoders/pem.js"($,Q){var Y=_$(),Z=zY();function G(V){Z.call(this,V),this.enc="pem"}Y(G,Z),Q.exports=G,G.prototype.encode=function(V,U){let X=Z.prototype.encode.call(this,V).toString("base64"),K=["-----BEGIN "+U.label+"-----"];for(let I=0;I>6],W=(A&32)===0;if((A&31)===31){let T=A;for(A=0;(T&128)===128;){if(T=J.readUInt8(F),J.isError(T))return T;A<<=7,A|=T&127}}else A&=31;let E=U.tag[A];return{cls:H,primitive:W,tag:A,tagStr:E}}function O(J,F,A){let H=J.readUInt8(A);if(J.isError(H))return H;if(!F&&H===128)return null;if((H&128)===0)return H;let W=H&127;if(W>4)return J.error("length octect is too long");H=0;for(let E=0;E0&&L.ishrn(R),L}function W(D,C){D=H(D,C),D=D.mod(C);var L=Y.from(D.toArray());if(L.length=F)throw new Error("invalid sig")}Q.exports=X}}),dY=q$({"node_modules/browserify-sign/browser/index.js"($,Q){var Y=k$().Buffer,Z=o$(),G=_$(),V=cY(),U=hY(),X=t$();Object.keys(X).forEach(function(F){X[F].id=Y.from(X[F].id,"hex"),X[F.toLowerCase()]=X[F]});function K(F){A$.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hashType=A.hash,this._hash=Z(A.hash),this._tag=A.id,this._signType=A.sign}G(K,A$.Writable),K.prototype._write=function(F,A,H){this._hash.update(F),H()},K.prototype.update=function(F,A){return typeof F=="string"&&(F=Y.from(F,A)),this._hash.update(F),this},K.prototype.sign=function(F,A){this.end();var H=this._hash.digest(),W=V(H,F,this._hashType,this._signType,this._tag);return A?W.toString(A):W};function I(F){A$.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hash=Z(A.hash),this._tag=A.id,this._signType=A.sign}G(I,A$.Writable),I.prototype._write=function(F,A,H){this._hash.update(F),H()},I.prototype.update=function(F,A){return typeof F=="string"&&(F=Y.from(F,A)),this._hash.update(F),this},I.prototype.verify=function(F,A,H){typeof A=="string"&&(A=Y.from(A,H)),this.end();var W=this._hash.digest();return U(A,W,F,this._signType,this._tag)};function O(F){return new K(F)}function J(F){return new I(F)}Q.exports={Sign:O,Verify:J,createSign:O,createVerify:J}}}),bY=q$({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),lY=q$({"node_modules/create-ecdh/browser.js"($,Q){var Y=TY(),Z=bY();Q.exports=function(X){return new V(X)};var G={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}};G.p224=G.secp224r1,G.p256=G.secp256r1=G.prime256v1,G.p192=G.secp192r1=G.prime192v1,G.p384=G.secp384r1,G.p521=G.secp521r1;function V(X){this.curveType=G[X],this.curveType||(this.curveType={name:X}),this.curve=new Y.ec(this.curveType.name),this.keys=void 0}V.prototype.generateKeys=function(X,K){return this.keys=this.curve.genKeyPair(),this.getPublicKey(X,K)},V.prototype.computeSecret=function(X,K,I){K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K));var O=this.curve.keyFromPublic(X).getPublic(),J=O.mul(this.keys.getPrivate()).getX();return U(J,I,this.curveType.byteLength)},V.prototype.getPublicKey=function(X,K){var I=this.keys.getPublic(K==="compressed",!0);return K==="hybrid"&&(I[I.length-1]%2?I[0]=7:I[0]=6),U(I,X)},V.prototype.getPrivateKey=function(X){return U(this.keys.getPrivate(),X)},V.prototype.setPublicKey=function(X,K){return K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K)),this.keys._importPublic(X),this},V.prototype.setPrivateKey=function(X,K){K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K));var I=new Z(X);return I=I.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(I),this};function U(X,K,I){Array.isArray(X)||(X=X.toArray());var O=new F$(X);if(I&&O.length0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_=k;_-=2)B=I(j,k,_)<=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var J=["","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"],F=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;kj.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;gj.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;xj.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B>>1)N++;return 1<>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<x)for(this.length-=x,w=0;w=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_j.length)return 1;if(this.length=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),{CryptoHasher:sY}=globalThis.Bun,tY=q$({"node_modules/public-encrypt/withPublic.js"($,Q){var Y=nY(),Z=k$().Buffer;function G(V,U){return Z.from(V.toRed(Y.mont(U.modulus)).redPow(new Y(U.publicExponent)).fromRed().toArray())}Q.exports=G}}),mY=q$({"node_modules/public-encrypt/publicEncrypt.js"($,Q){var Y=pY(),Z=g$(),G=o$(),V=oY(),U=uY(),X=nY(),K=tY(),I=hQ(),O=k$().Buffer;Q.exports=function(H,W,E){var T;H.padding?T=H.padding:E?T=1:T=4;var D=Y(H),C;if(T===4)C=J(D,W);else if(T===1)C=F(D,W,E);else if(T===3){if(C=new X(W),C.cmp(D.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return E?I(C,D):K(C,D)};function J(H,W){var E=H.modulus.byteLength(),T=W.length,D=G("sha1").update(O.alloc(0)).digest(),C=D.length,L=2*C;if(T>E-L-2)throw new Error("message too long");var R=O.alloc(E-T-L-2),P=E-C-1,z=Z(C),M=U(O.concat([D,R,O.alloc(1,1),W],P),V(z,P)),S=U(z,V(M,C));return new X(O.concat([O.alloc(1),S,M],E))}function F(H,W,E){var T=W.length,D=H.modulus.byteLength();if(T>D-11)throw new Error("message too long");var C;return E?C=O.alloc(D-T-3,255):C=A(D-T-3),new X(O.concat([O.from([0,E?1:2]),C,O.alloc(1),W],D))}function A(H){for(var W=O.allocUnsafe(H),E=0,T=Z(H*2),D=0,C;ED||new V(H).cmp(T.modulus)>=0)throw new Error("decryption error");var C;W?C=K(new V(H),T):C=U(H,T);var L=I.alloc(D-C.length);if(C=I.concat([L,C],D),E===4)return O(T,C);if(E===1)return J(T,C,W);if(E===3)return C;throw new Error("unknown padding")};function O(A,H){var W=A.modulus.byteLength(),E=X("sha1").update(I.alloc(0)).digest(),T=E.length;if(H[0]!==0)throw new Error("decryption error");var D=H.slice(1,T+1),C=H.slice(T+1),L=G(D,Z(C,T)),R=G(C,Z(L,W-T-1));if(F(E,R.slice(0,T)))throw new Error("decryption error");for(var P=T;R[P]===0;)P++;if(R[P++]!==1)throw new Error("decryption error");return R.slice(P)}function J(A,H,W){for(var E=H.slice(0,2),T=2,D=0;H[T++]!==0;)if(T>=H.length){D++;break}var C=H.slice(2,T-1);if((E.toString("hex")!=="0002"&&!W||E.toString("hex")!=="0001"&&W)&&D++,C.length<8&&D++,D)throw new Error("decryption error");return H.slice(T)}function F(A,H){A=I.from(A),H=I.from(H);var W=0,E=A.length;A.length!==H.length&&(W++,E=Math.min(A.length,H.length));for(var T=-1;++TV||J<0)throw new TypeError("offset must be a uint32");if(J>G||J>F)throw new RangeError("offset out of range")}function X(J,F,A){if(typeof J!="number"||J!==J)throw new TypeError("size must be a number");if(J>V||J<0)throw new TypeError("size must be a uint32");if(J+F>A||J>G)throw new RangeError("buffer too small")}$.randomFill=K,$.randomFillSync=O;function K(J,F,A,H){if(!Z.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")H=F,F=0,A=J.length;else if(typeof A=="function")H=A,A=J.length-F;else if(typeof H!="function")throw new TypeError('"cb" argument must be a function');return U(F,J.length),X(A,F,J.length),I(J,F,A,H)}function I(J,F,A,H){if(H){Y(A,function(E,T){if(E)return H(E);T.copy(J,F),H(null,J)});return}var W=Y(A);return W.copy(J,F),J}function O(J,F,A){if(typeof F>"u"&&(F=0),!Z.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(F,J.length),A===void 0&&(A=J.length-F),X(A,F,J.length),I(J,F,A)}}}),iY=q$({"node_modules/crypto-browserify/index.js"($){$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=g$(),$.createHash=o$(),$.Hash=$.createHash.Hash,$.createHmac=$.Hmac=s$();var Q=m$(),Y=Object.keys(Q),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Y);$.getHashes=function(){return Z};var G=QQ();$.pbkdf2=G.pbkdf2,$.pbkdf2Sync=G.pbkdf2Sync;var V=kQ();$.Cipher=V.Cipher,$.createCipher=V.createCipher,$.Cipheriv=V.Cipheriv,$.createCipheriv=V.createCipheriv,$.Decipher=V.Decipher,$.createDecipher=V.createDecipher,$.Decipheriv=V.Decipheriv,$.createDecipheriv=V.createDecipheriv,$.getCiphers=V.getCiphers,$.listCiphers=V.listCiphers;var U=fQ();$.DiffieHellmanGroup=U.DiffieHellmanGroup,$.createDiffieHellmanGroup=U.createDiffieHellmanGroup,$.getDiffieHellman=U.getDiffieHellman,$.createDiffieHellman=U.createDiffieHellman,$.DiffieHellman=U.DiffieHellman;var X=dY();$.createSign=X.createSign,$.Sign=X.Sign,$.createVerify=X.createVerify,$.Verify=X.Verify,$.createECDH=lY();var K=eY();$.publicEncrypt=K.publicEncrypt,$.privateEncrypt=K.privateEncrypt,$.publicDecrypt=K.publicDecrypt,$.privateDecrypt=K.privateDecrypt,$.getRandomValues=(O)=>H$.getRandomValues(O);var I=rY();$.randomFill=I.randomFill,$.randomFillSync=I.randomFillSync,$.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},$.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),$Z={...iY(),[Symbol.for("CommonJS")]:0},T$="buffer",QZ=($)=>H$.getRandomValues($),YZ=()=>H$.randomUUID(),ZZ=(...$)=>H$.randomInt(...$),D$="timingSafeEqual"in H$?($,Q)=>{let{byteLength:Y}=$,{byteLength:Z}=Q;if(typeof Y!="number"||typeof Z!="number")throw new TypeError("Input must be an array buffer view");if(Y!==Z)throw new RangeError("Input buffers must have the same length");return H$.timingSafeEqual($,Q)}:void 0,GZ="scryptSync"in H$?($,Q,Y,Z)=>{let G=H$.scryptSync($,Q,Y,Z);return T$!=="buffer"?new F$(G).toString(T$):new F$(G)}:void 0,VZ="scryptSync"in H$?function($,Q,Y,Z,G){if(typeof Z=="function"&&(G=Z,Z=void 0),typeof G!="function"){var V=new TypeError("callback must be a function");throw V.code="ERR_INVALID_CALLBACK",V}try{let U=H$.scryptSync($,Q,Y,Z);process.nextTick(G,null,T$!=="buffer"?new F$(U).toString(T$):new F$(U))}catch(U){throw U}}:void 0;D$&&(Object.defineProperty(D$,"name",{value:"::bunternal::"}),Object.defineProperty(VZ,"name",{value:"::bunternal::"}),Object.defineProperty(GZ,"name",{value:"::bunternal::"}));var C$=H$;j$($Z,{DEFAULT_ENCODING:()=>T$,getRandomValues:()=>QZ,randomUUID:()=>YZ,randomInt:()=>ZZ,scrypt:()=>VZ,scryptSync:()=>GZ,timingSafeEqual:()=>D$,webcrypto:()=>C$,subtle:()=>C$.subtle});var{randomBytes:UZ,rng:XZ,pseudoRandomBytes:KZ,prng:IZ,Hash:OZ,createHash:JZ,createHmac:FZ,Hmac:AZ,getHashes:HZ,pbkdf2:WZ,pbkdf2Sync:EZ,Cipher:TZ,createCipher:DZ,Cipheriv:CZ,createCipheriv:LZ,Decipher:RZ,createDecipher:PZ,Decipheriv:zZ,createDecipheriv:MZ,getCiphers:SZ,listCiphers:vZ,DiffieHellmanGroup:qZ,createDiffieHellmanGroup:jZ,getDiffieHellman:kZ,createDiffieHellman:gZ,DiffieHellman:_Z,createSign:NZ,Sign:xZ,createVerify:BZ,Verify:yZ,createECDH:wZ,publicEncrypt:pZ,privateEncrypt:fZ,publicDecrypt:cZ,privateDecrypt:hZ,randomFill:dZ,randomFillSync:bZ,createCredentials:lZ,constants:oZ}=$Z;var nZ=$Z;/*! safe-buffer. MIT License. Feross Aboukhadijeh */export{C$ as webcrypto,D$ as timingSafeEqual,GZ as scryptSync,VZ as scrypt,XZ as rng,YZ as randomUUID,ZZ as randomInt,bZ as randomFillSync,dZ as randomFill,UZ as randomBytes,pZ as publicEncrypt,cZ as publicDecrypt,KZ as pseudoRandomBytes,IZ as prng,fZ as privateEncrypt,hZ as privateDecrypt,EZ as pbkdf2Sync,WZ as pbkdf2,vZ as listCiphers,QZ as getRandomValues,HZ as getHashes,kZ as getDiffieHellman,SZ as getCiphers,nZ as default,BZ as createVerify,NZ as createSign,FZ as createHmac,JZ as createHash,wZ as createECDH,jZ as createDiffieHellmanGroup,gZ as createDiffieHellman,MZ as createDecipheriv,PZ as createDecipher,lZ as createCredentials,LZ as createCipheriv,DZ as createCipher,oZ as constants,yZ as Verify,xZ as Sign,AZ as Hmac,OZ as Hash,qZ as DiffieHellmanGroup,_Z as DiffieHellman,zZ as Decipheriv,RZ as Decipher,T$ as DEFAULT_ENCODING,CZ as Cipheriv,TZ as Cipher}; +import{StringDecoder as $Y} from"node:string_decoder";import*as QY from"node:buffer";import*as oQ from"node:stream";var eQ=Object.defineProperty;var rQ=Object.getOwnPropertyNames;var YY=536870888,lQ=globalThis.Buffer,uQ=globalThis.crypto,ZY=uQ;var GY=(H,W)=>function(){return W||(0,H[rQ(H)[0]])((W={exports:{}}).exports,W),W.exports},VY=(H,W)=>{for(var p$ in W)eQ(H,p$,{get:W[p$],enumerable:!0})};var UY=GY({"node_modules/safe-buffer/index.js"(H,W){var p$=QY,K=p$.Buffer;function G(U,Y){for(var F in U)Y[F]=U[F]}K.from&&K.alloc&&K.allocUnsafe&&K.allocUnsafeSlow?W.exports=p$:(G(p$,H),H.Buffer=$);function $(U,Y,F){return K(U,Y,F)}$.prototype=Object.create(K.prototype),G(K,$),$.from=function(U,Y,F){if(typeof U=="number")throw new TypeError("Argument must not be a number");return K(U,Y,F)},$.alloc=function(U,Y,F){if(typeof U!="number")throw new TypeError("Argument must be a number");var O=K(U);return Y!==void 0?typeof F=="string"?O.fill(Y,F):O.fill(Y):O.fill(0),O},$.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return K(U)},$.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return p$.SlowBuffer(U)}}}),XY=GY({"node_modules/randombytes/browser.js"(H,W){var p$=65536,K=4294967295;function G(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var $=UY().Buffer,U=ZY;U&&U.getRandomValues?W.exports=Y:W.exports=G;function Y(F,O){if(F>K)throw new RangeError("requested too many random bytes");var f$=$.allocUnsafe(F);if(F>0)if(F>p$)for(var z=0;z=this._blockSize;){for(var f$=this._blockOffset;f$0;++z)this._length[z]+=c$,c$=this._length[z]/4294967296|0,c$>0&&(this._length[z]-=4294967296*c$);return this},$.prototype._update=function(){throw new Error("_update is not implemented")},$.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Y=this._digest();U!==void 0&&(Y=Y.toString(U)),this._block.fill(0),this._blockOffset=0;for(var F=0;F<4;++F)this._length[F]=0;return Y},$.prototype._digest=function(){throw new Error("_digest is not implemented")},W.exports=$}}),R0=GY({"node_modules/md5.js/index.js"(H,W){var p$=C0(),K=L0(),G=UY().Buffer,$=new Array(16);function U(){K.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}p$(U,K),U.prototype._update=function(){for(var c$=$,M=0;M<16;++M)c$[M]=this._block.readInt32LE(M*4);var h$=this._a,S=this._b,d$=this._c,v=this._d;h$=F(h$,S,d$,v,c$[0],3614090360,7),v=F(v,h$,S,d$,c$[1],3905402710,12),d$=F(d$,v,h$,S,c$[2],606105819,17),S=F(S,d$,v,h$,c$[3],3250441966,22),h$=F(h$,S,d$,v,c$[4],4118548399,7),v=F(v,h$,S,d$,c$[5],1200080426,12),d$=F(d$,v,h$,S,c$[6],2821735955,17),S=F(S,d$,v,h$,c$[7],4249261313,22),h$=F(h$,S,d$,v,c$[8],1770035416,7),v=F(v,h$,S,d$,c$[9],2336552879,12),d$=F(d$,v,h$,S,c$[10],4294925233,17),S=F(S,d$,v,h$,c$[11],2304563134,22),h$=F(h$,S,d$,v,c$[12],1804603682,7),v=F(v,h$,S,d$,c$[13],4254626195,12),d$=F(d$,v,h$,S,c$[14],2792965006,17),S=F(S,d$,v,h$,c$[15],1236535329,22),h$=O(h$,S,d$,v,c$[1],4129170786,5),v=O(v,h$,S,d$,c$[6],3225465664,9),d$=O(d$,v,h$,S,c$[11],643717713,14),S=O(S,d$,v,h$,c$[0],3921069994,20),h$=O(h$,S,d$,v,c$[5],3593408605,5),v=O(v,h$,S,d$,c$[10],38016083,9),d$=O(d$,v,h$,S,c$[15],3634488961,14),S=O(S,d$,v,h$,c$[4],3889429448,20),h$=O(h$,S,d$,v,c$[9],568446438,5),v=O(v,h$,S,d$,c$[14],3275163606,9),d$=O(d$,v,h$,S,c$[3],4107603335,14),S=O(S,d$,v,h$,c$[8],1163531501,20),h$=O(h$,S,d$,v,c$[13],2850285829,5),v=O(v,h$,S,d$,c$[2],4243563512,9),d$=O(d$,v,h$,S,c$[7],1735328473,14),S=O(S,d$,v,h$,c$[12],2368359562,20),h$=f$(h$,S,d$,v,c$[5],4294588738,4),v=f$(v,h$,S,d$,c$[8],2272392833,11),d$=f$(d$,v,h$,S,c$[11],1839030562,16),S=f$(S,d$,v,h$,c$[14],4259657740,23),h$=f$(h$,S,d$,v,c$[1],2763975236,4),v=f$(v,h$,S,d$,c$[4],1272893353,11),d$=f$(d$,v,h$,S,c$[7],4139469664,16),S=f$(S,d$,v,h$,c$[10],3200236656,23),h$=f$(h$,S,d$,v,c$[13],681279174,4),v=f$(v,h$,S,d$,c$[0],3936430074,11),d$=f$(d$,v,h$,S,c$[3],3572445317,16),S=f$(S,d$,v,h$,c$[6],76029189,23),h$=f$(h$,S,d$,v,c$[9],3654602809,4),v=f$(v,h$,S,d$,c$[12],3873151461,11),d$=f$(d$,v,h$,S,c$[15],530742520,16),S=f$(S,d$,v,h$,c$[2],3299628645,23),h$=z(h$,S,d$,v,c$[0],4096336452,6),v=z(v,h$,S,d$,c$[7],1126891415,10),d$=z(d$,v,h$,S,c$[14],2878612391,15),S=z(S,d$,v,h$,c$[5],4237533241,21),h$=z(h$,S,d$,v,c$[12],1700485571,6),v=z(v,h$,S,d$,c$[3],2399980690,10),d$=z(d$,v,h$,S,c$[10],4293915773,15),S=z(S,d$,v,h$,c$[1],2240044497,21),h$=z(h$,S,d$,v,c$[8],1873313359,6),v=z(v,h$,S,d$,c$[15],4264355552,10),d$=z(d$,v,h$,S,c$[6],2734768916,15),S=z(S,d$,v,h$,c$[13],1309151649,21),h$=z(h$,S,d$,v,c$[4],4149444226,6),v=z(v,h$,S,d$,c$[11],3174756917,10),d$=z(d$,v,h$,S,c$[2],718787259,15),S=z(S,d$,v,h$,c$[9],3951481745,21),this._a=this._a+h$|0,this._b=this._b+S|0,this._c=this._c+d$|0,this._d=this._d+v|0},U.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 c$=G.allocUnsafe(16);return c$.writeInt32LE(this._a,0),c$.writeInt32LE(this._b,4),c$.writeInt32LE(this._c,8),c$.writeInt32LE(this._d,12),c$};function Y(c$,M){return c$<>>32-M}function F(c$,M,h$,S,d$,v,b$){return Y(c$+(M&h$|~M&S)+d$+v|0,b$)+M|0}function O(c$,M,h$,S,d$,v,b$){return Y(c$+(M&S|h$&~S)+d$+v|0,b$)+M|0}function f$(c$,M,h$,S,d$,v,b$){return Y(c$+(M^h$^S)+d$+v|0,b$)+M|0}function z(c$,M,h$,S,d$,v,b$){return Y(c$+(h$^(M|~S))+d$+v|0,b$)+M|0}W.exports=U}}),P0=GY({"node_modules/ripemd160/index.js"(H,W){var p$=lQ,K=C0(),G=L0(),$=new Array(16),U=[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],Y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],F=[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],O=[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],f$=[0,1518500249,1859775393,2400959708,2840853838],z=[1352829926,1548603684,1836072691,2053994217,0];function c$(){G.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}K(c$,G),c$.prototype._update=function(){for(var q=$,l$=0;l$<16;++l$)q[l$]=this._block.readInt32LE(l$*4);for(var j=this._a|0,o$=this._b|0,k=this._c|0,u$=this._d|0,g=this._e|0,n$=this._a|0,_=this._b|0,s$=this._c|0,N=this._d|0,t$=this._e|0,x=0;x<80;x+=1){var m$,B;x<16?(m$=h$(j,o$,k,u$,g,q[U[x]],f$[0],F[x]),B=b$(n$,_,s$,N,t$,q[Y[x]],z[0],O[x])):x<32?(m$=S(j,o$,k,u$,g,q[U[x]],f$[1],F[x]),B=v(n$,_,s$,N,t$,q[Y[x]],z[1],O[x])):x<48?(m$=d$(j,o$,k,u$,g,q[U[x]],f$[2],F[x]),B=d$(n$,_,s$,N,t$,q[Y[x]],z[2],O[x])):x<64?(m$=v(j,o$,k,u$,g,q[U[x]],f$[3],F[x]),B=S(n$,_,s$,N,t$,q[Y[x]],z[3],O[x])):(m$=b$(j,o$,k,u$,g,q[U[x]],f$[4],F[x]),B=h$(n$,_,s$,N,t$,q[Y[x]],z[4],O[x])),j=g,g=u$,u$=M(k,10),k=o$,o$=m$,n$=t$,t$=N,N=M(s$,10),s$=_,_=B}var a$=this._b+k+N|0;this._b=this._c+u$+t$|0,this._c=this._d+g+n$|0,this._d=this._e+j+_|0,this._e=this._a+o$+s$|0,this._a=a$},c$.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 q=p$.alloc?p$.alloc(20):new p$(20);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q.writeInt32LE(this._e,16),q};function M(q,l$){return q<>>32-l$}function h$(q,l$,j,o$,k,u$,g,n$){return M(q+(l$^j^o$)+u$+g|0,n$)+k|0}function S(q,l$,j,o$,k,u$,g,n$){return M(q+(l$&j|~l$&o$)+u$+g|0,n$)+k|0}function d$(q,l$,j,o$,k,u$,g,n$){return M(q+((l$|~j)^o$)+u$+g|0,n$)+k|0}function v(q,l$,j,o$,k,u$,g,n$){return M(q+(l$&o$|j&~o$)+u$+g|0,n$)+k|0}function b$(q,l$,j,o$,k,u$,g,n$){return M(q+(l$^(j|~o$))+u$+g|0,n$)+k|0}W.exports=c$}}),z0=GY({"node_modules/sha.js/hash.js"(H,W){var p$=UY().Buffer;function K(G,$){this._block=p$.alloc(G),this._finalSize=$,this._blockSize=G,this._len=0}K.prototype.update=function(G,$){typeof G=="string"&&($=$||"utf8",G=p$.from(G,$));for(var U=this._block,Y=this._blockSize,F=G.length,O=this._len,f$=0;f$=this._finalSize&&(this._update(this._block),this._block.fill(0));var U=this._len*8;if(U<=4294967295)this._block.writeUInt32BE(U,this._blockSize-4);else{var Y=(U&4294967295)>>>0,F=(U-Y)/4294967296;this._block.writeUInt32BE(F,this._blockSize-8),this._block.writeUInt32BE(Y,this._blockSize-4)}this._update(this._block);var O=this._hash();return G?O.toString(G):O},K.prototype._update=function(){throw new Error("_update must be implemented by subclass")},W.exports=K}}),M0=GY({"node_modules/sha.js/sha.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F(z){return z<<5|z>>>27}function O(z){return z<<30|z>>>2}function f$(z,c$,M,h$){return z===0?c$&M|~c$&h$:z===2?c$&M|c$&h$|M&h$:c$^M^h$}Y.prototype._update=function(z){for(var c$=this._w,M=this._a|0,h$=this._b|0,S=this._c|0,d$=this._d|0,v=this._e|0,b$=0;b$<16;++b$)c$[b$]=z.readInt32BE(b$*4);for(;b$<80;++b$)c$[b$]=c$[b$-3]^c$[b$-8]^c$[b$-14]^c$[b$-16];for(var q=0;q<80;++q){var l$=~~(q/20),j=F(M)+f$(l$,h$,S,d$)+v+c$[q]+$[l$]|0;v=d$,d$=S,S=O(h$),h$=M,M=j}this._a=M+this._a|0,this._b=h$+this._b|0,this._c=S+this._c|0,this._d=d$+this._d|0,this._e=v+this._e|0},Y.prototype._hash=function(){var z=G.allocUnsafe(20);return z.writeInt32BE(this._a|0,0),z.writeInt32BE(this._b|0,4),z.writeInt32BE(this._c|0,8),z.writeInt32BE(this._d|0,12),z.writeInt32BE(this._e|0,16),z},W.exports=Y}}),S0=GY({"node_modules/sha.js/sha1.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F(c$){return c$<<1|c$>>>31}function O(c$){return c$<<5|c$>>>27}function f$(c$){return c$<<30|c$>>>2}function z(c$,M,h$,S){return c$===0?M&h$|~M&S:c$===2?M&h$|M&S|h$&S:M^h$^S}Y.prototype._update=function(c$){for(var M=this._w,h$=this._a|0,S=this._b|0,d$=this._c|0,v=this._d|0,b$=this._e|0,q=0;q<16;++q)M[q]=c$.readInt32BE(q*4);for(;q<80;++q)M[q]=F(M[q-3]^M[q-8]^M[q-14]^M[q-16]);for(var l$=0;l$<80;++l$){var j=~~(l$/20),o$=O(h$)+z(j,S,d$,v)+b$+M[l$]+$[j]|0;b$=v,v=d$,d$=f$(S),S=h$,h$=o$}this._a=h$+this._a|0,this._b=S+this._b|0,this._c=d$+this._c|0,this._d=v+this._d|0,this._e=b$+this._e|0},Y.prototype._hash=function(){var c$=G.allocUnsafe(20);return c$.writeInt32BE(this._a|0,0),c$.writeInt32BE(this._b|0,4),c$.writeInt32BE(this._c|0,8),c$.writeInt32BE(this._d|0,12),c$.writeInt32BE(this._e|0,16),c$},W.exports=Y}}),v0=GY({"node_modules/sha.js/sha256.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[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],U=new Array(64);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.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};function F(h$,S,d$){return d$^h$&(S^d$)}function O(h$,S,d$){return h$&S|d$&(h$|S)}function f$(h$){return(h$>>>2|h$<<30)^(h$>>>13|h$<<19)^(h$>>>22|h$<<10)}function z(h$){return(h$>>>6|h$<<26)^(h$>>>11|h$<<21)^(h$>>>25|h$<<7)}function c$(h$){return(h$>>>7|h$<<25)^(h$>>>18|h$<<14)^h$>>>3}function M(h$){return(h$>>>17|h$<<15)^(h$>>>19|h$<<13)^h$>>>10}Y.prototype._update=function(h$){for(var S=this._w,d$=this._a|0,v=this._b|0,b$=this._c|0,q=this._d|0,l$=this._e|0,j=this._f|0,o$=this._g|0,k=this._h|0,u$=0;u$<16;++u$)S[u$]=h$.readInt32BE(u$*4);for(;u$<64;++u$)S[u$]=M(S[u$-2])+S[u$-7]+c$(S[u$-15])+S[u$-16]|0;for(var g=0;g<64;++g){var n$=k+z(l$)+F(l$,j,o$)+$[g]+S[g]|0,_=f$(d$)+O(d$,v,b$)|0;k=o$,o$=j,j=l$,l$=q+n$|0,q=b$,b$=v,v=d$,d$=n$+_|0}this._a=d$+this._a|0,this._b=v+this._b|0,this._c=b$+this._c|0,this._d=q+this._d|0,this._e=l$+this._e|0,this._f=j+this._f|0,this._g=o$+this._g|0,this._h=k+this._h|0},Y.prototype._hash=function(){var h$=G.allocUnsafe(32);return h$.writeInt32BE(this._a,0),h$.writeInt32BE(this._b,4),h$.writeInt32BE(this._c,8),h$.writeInt32BE(this._d,12),h$.writeInt32BE(this._e,16),h$.writeInt32BE(this._f,20),h$.writeInt32BE(this._g,24),h$.writeInt32BE(this._h,28),h$},W.exports=Y}}),q0=GY({"node_modules/sha.js/sha224.js"(H,W){var p$=C0(),K=v0(),G=z0(),$=UY().Buffer,U=new Array(64);function Y(){this.init(),this._w=U,G.call(this,64,56)}p$(Y,K),Y.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},Y.prototype._hash=function(){var F=$.allocUnsafe(28);return F.writeInt32BE(this._a,0),F.writeInt32BE(this._b,4),F.writeInt32BE(this._c,8),F.writeInt32BE(this._d,12),F.writeInt32BE(this._e,16),F.writeInt32BE(this._f,20),F.writeInt32BE(this._g,24),F},W.exports=Y}}),j0=GY({"node_modules/sha.js/sha512.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[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],U=new Array(160);function Y(){this.init(),this._w=U,K.call(this,128,112)}p$(Y,K),Y.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};function F(v,b$,q){return q^v&(b$^q)}function O(v,b$,q){return v&b$|q&(v|b$)}function f$(v,b$){return(v>>>28|b$<<4)^(b$>>>2|v<<30)^(b$>>>7|v<<25)}function z(v,b$){return(v>>>14|b$<<18)^(v>>>18|b$<<14)^(b$>>>9|v<<23)}function c$(v,b$){return(v>>>1|b$<<31)^(v>>>8|b$<<24)^v>>>7}function M(v,b$){return(v>>>1|b$<<31)^(v>>>8|b$<<24)^(v>>>7|b$<<25)}function h$(v,b$){return(v>>>19|b$<<13)^(b$>>>29|v<<3)^v>>>6}function S(v,b$){return(v>>>19|b$<<13)^(b$>>>29|v<<3)^(v>>>6|b$<<26)}function d$(v,b$){return v>>>0>>0?1:0}Y.prototype._update=function(v){for(var b$=this._w,q=this._ah|0,l$=this._bh|0,j=this._ch|0,o$=this._dh|0,k=this._eh|0,u$=this._fh|0,g=this._gh|0,n$=this._hh|0,_=this._al|0,s$=this._bl|0,N=this._cl|0,t$=this._dl|0,x=this._el|0,m$=this._fl|0,B=this._gl|0,a$=this._hl|0,y=0;y<32;y+=2)b$[y]=v.readInt32BE(y*4),b$[y+1]=v.readInt32BE(y*4+4);for(;y<160;y+=2){var e$=b$[y-30],w=b$[y-30+1],r$=c$(e$,w),E=M(w,e$);e$=b$[y-4],w=b$[y-4+1];var i$=h$(e$,w),p=S(w,e$),$Q=b$[y-14],f=b$[y-14+1],QQ=b$[y-32],c=b$[y-32+1],YQ=E+f|0,h=r$+$Q+d$(YQ,E)|0;YQ=YQ+p|0,h=h+i$+d$(YQ,p)|0,YQ=YQ+c|0,h=h+QQ+d$(YQ,c)|0,b$[y]=h,b$[y+1]=YQ}for(var ZQ=0;ZQ<160;ZQ+=2){h=b$[ZQ],YQ=b$[ZQ+1];var d=O(q,l$,j),GQ=O(_,s$,N),b=f$(q,_),VQ=f$(_,q),l=z(k,x),UQ=z(x,k),o=$[ZQ],XQ=$[ZQ+1],u=F(k,u$,g),KQ=F(x,m$,B),n=a$+UQ|0,IQ=n$+l+d$(n,a$)|0;n=n+KQ|0,IQ=IQ+u+d$(n,KQ)|0,n=n+XQ|0,IQ=IQ+o+d$(n,XQ)|0,n=n+YQ|0,IQ=IQ+h+d$(n,YQ)|0;var s=VQ+GQ|0,OQ=b+d+d$(s,VQ)|0;n$=g,a$=B,g=u$,B=m$,u$=k,m$=x,x=t$+n|0,k=o$+IQ+d$(x,t$)|0,o$=j,t$=N,j=l$,N=s$,l$=q,s$=_,_=n+s|0,q=IQ+OQ+d$(_,n)|0}this._al=this._al+_|0,this._bl=this._bl+s$|0,this._cl=this._cl+N|0,this._dl=this._dl+t$|0,this._el=this._el+x|0,this._fl=this._fl+m$|0,this._gl=this._gl+B|0,this._hl=this._hl+a$|0,this._ah=this._ah+q+d$(this._al,_)|0,this._bh=this._bh+l$+d$(this._bl,s$)|0,this._ch=this._ch+j+d$(this._cl,N)|0,this._dh=this._dh+o$+d$(this._dl,t$)|0,this._eh=this._eh+k+d$(this._el,x)|0,this._fh=this._fh+u$+d$(this._fl,m$)|0,this._gh=this._gh+g+d$(this._gl,B)|0,this._hh=this._hh+n$+d$(this._hl,a$)|0},Y.prototype._hash=function(){var v=G.allocUnsafe(64);function b$(q,l$,j){v.writeInt32BE(q,j),v.writeInt32BE(l$,j+4)}return b$(this._ah,this._al,0),b$(this._bh,this._bl,8),b$(this._ch,this._cl,16),b$(this._dh,this._dl,24),b$(this._eh,this._el,32),b$(this._fh,this._fl,40),b$(this._gh,this._gl,48),b$(this._hh,this._hl,56),v},W.exports=Y}}),k0=GY({"node_modules/sha.js/sha384.js"(H,W){var p$=C0(),K=j0(),G=z0(),$=UY().Buffer,U=new Array(160);function Y(){this.init(),this._w=U,G.call(this,128,112)}p$(Y,K),Y.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},Y.prototype._hash=function(){var F=$.allocUnsafe(48);function O(f$,z,c$){F.writeInt32BE(f$,c$),F.writeInt32BE(z,c$+4)}return O(this._ah,this._al,0),O(this._bh,this._bl,8),O(this._ch,this._cl,16),O(this._dh,this._dl,24),O(this._eh,this._el,32),O(this._fh,this._fl,40),F},W.exports=Y}}),g0=GY({"node_modules/sha.js/index.js"(p$,W){var p$=W.exports=function(K){K=K.toLowerCase();var G=p$[K];if(!G)throw new Error(K+" is not supported (we accept pull requests)");return new G};p$.sha=M0(),p$.sha1=S0(),p$.sha224=q0(),p$.sha256=v0(),p$.sha384=k0(),p$.sha512=j0()}}),_0=GY({"node_modules/cipher-base/index.js"(H,W){var p$=UY().Buffer,K=C0();function G($){oQ.Transform.call(this),this.hashMode=typeof $=="string",this.hashMode?this[$]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}K(G,oQ.Transform),G.prototype.update=function($,U,Y){typeof $=="string"&&($=p$.from($,U));var F=this._update($);return this.hashMode?this:(Y&&(F=this._toString(F,Y)),F)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function($,U,Y){var F;try{this.hashMode?this._update($):this.push(this._update($))}catch(O){F=O}finally{Y(F)}},G.prototype._flush=function($){var U;try{this.push(this.__final())}catch(Y){U=Y}$(U)},G.prototype._finalOrDigest=function($){var U=this.__final()||p$.alloc(0);return $&&(U=this._toString(U,$,!0)),U},G.prototype._toString=function($,U,Y){if(this._decoder||(this._decoder=new $Y(U),this._encoding=U),this._encoding!==U)throw new Error("can't switch encodings");var F=this._decoder.write($);return Y&&(F+=this._decoder.end()),F},W.exports=G}}),N0=GY({"node_modules/create-hash/browser.js"(H,W){const p$=function $(U,Y){this._options=Y,this._hasher=new T$(U,Y),this._finalized=!1};p$.prototype=Object.create(oQ.Transform.prototype),p$.prototype.update=function $(U,Y){return this._checkFinalized(),this._hasher.update(U,Y),this},p$.prototype.digest=function $(U,Y){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(U,Y)},p$.prototype._checkFinalized=function $(){if(this._finalized){var U=new Error("Digest already called");throw U.code="ERR_CRYPTO_HASH_FINALIZED",U}},p$.prototype.copy=function $(){const U=Object.create(p$.prototype);return U._options=this._options,U._hasher=this._hasher.copy(),U._finalized=this._finalized,U};const K={__proto__:oQ.Transform.prototype,...p$.prototype,_transform($,U,Y){this.update($,U),Y&&Y()},_flush($){this.push(this.digest()),$()}},G=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let $ of G)Object.defineProperty(p$.prototype,$,{get(){return Object.setPrototypeOf(this,K),oQ.Transform.call(this,this._options),this[$]},enumerable:!1,configurable:!0});W.exports=function $(U){return new p$(U)},W.exports.createHash=W.exports,W.exports.Hash=p$}}),x0=GY({"node_modules/create-hmac/legacy.js"(H,W){var p$=C0(),K=UY().Buffer,G=_0(),$=K.alloc(128),U=64;function Y(F,O){G.call(this,"digest"),typeof O=="string"&&(O=K.from(O)),this._alg=F,this._key=O,O.length>U?O=F(O):O.lengthM){var h$=z==="rmd160"?new Y:F(z);c$=h$.update(c$).digest()}else c$.lengthp$||G!==G)throw new TypeError("Bad key length")}}}),c0=GY({"node_modules/pbkdf2/lib/default-encoding.js"(H,W){var p$;global.process&&global.process.browser?p$="utf-8":global.process&&global.process.version?(K=parseInt(process.version.split(".")[0].slice(1),10),p$=K>=6?"utf-8":"binary"):p$="utf-8";var K;W.exports=p$}}),KY=GY({"node_modules/pbkdf2/lib/to-buffer.js"(H,W){var p$=UY().Buffer;W.exports=function(K,G,$){if(p$.isBuffer(K))return K;if(typeof K=="string")return p$.from(K,G);if(ArrayBuffer.isView(K))return p$.from(K.buffer);throw new TypeError($+" must be a string, a Buffer, a typed array or a DataView")}}}),h0=GY({"node_modules/pbkdf2/lib/sync-browser.js"(H,W){var p$=B0(),K=P0(),G=g0(),$=UY().Buffer,U=f0(),Y=c0(),F=KY(),O=$.alloc(128),f$={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function z(h$,S,d$){var v=c$(h$),b$=h$==="sha512"||h$==="sha384"?128:64;S.length>b$?S=v(S):S.length>>0},H.writeUInt32BE=function(G,$,U){G[0+U]=$>>>24,G[1+U]=$>>>16&255,G[2+U]=$>>>8&255,G[3+U]=$&255},H.ip=function(G,$,U,Y){for(var F=0,O=0,f$=6;f$>=0;f$-=2){for(var z=0;z<=24;z+=8)F<<=1,F|=$>>>z+f$&1;for(var z=0;z<=24;z+=8)F<<=1,F|=G>>>z+f$&1}for(var f$=6;f$>=0;f$-=2){for(var z=1;z<=25;z+=8)O<<=1,O|=$>>>z+f$&1;for(var z=1;z<=25;z+=8)O<<=1,O|=G>>>z+f$&1}U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.rip=function(G,$,U,Y){for(var F=0,O=0,f$=0;f$<4;f$++)for(var z=24;z>=0;z-=8)F<<=1,F|=$>>>z+f$&1,F<<=1,F|=G>>>z+f$&1;for(var f$=4;f$<8;f$++)for(var z=24;z>=0;z-=8)O<<=1,O|=$>>>z+f$&1,O<<=1,O|=G>>>z+f$&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.pc1=function(G,$,U,Y){for(var F=0,O=0,f$=7;f$>=5;f$--){for(var z=0;z<=24;z+=8)F<<=1,F|=$>>z+f$&1;for(var z=0;z<=24;z+=8)F<<=1,F|=G>>z+f$&1}for(var z=0;z<=24;z+=8)F<<=1,F|=$>>z+f$&1;for(var f$=1;f$<=3;f$++){for(var z=0;z<=24;z+=8)O<<=1,O|=$>>z+f$&1;for(var z=0;z<=24;z+=8)O<<=1,O|=G>>z+f$&1}for(var z=0;z<=24;z+=8)O<<=1,O|=G>>z+f$&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.r28shl=function(G,$){return G<<$&268435455|G>>>28-$};var W=[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];H.pc2=function(G,$,U,Y){for(var F=0,O=0,f$=W.length>>>1,z=0;z>>W[z]&1;for(var z=f$;z>>W[z]&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.expand=function(G,$,U){var Y=0,F=0;Y=(G&1)<<5|G>>>27;for(var O=23;O>=15;O-=4)Y<<=6,Y|=G>>>O&63;for(var O=11;O>=3;O-=4)F|=G>>>O&63,F<<=6;F|=(G&31)<<1|G>>>31,$[U+0]=Y>>>0,$[U+1]=F>>>0};var p$=[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];H.substitute=function(G,$){for(var U=0,Y=0;Y<4;Y++){var F=G>>>18-Y*6&63,O=p$[Y*64+F];U<<=4,U|=O}for(var Y=0;Y<4;Y++){var F=$>>>18-Y*6&63,O=p$[256+Y*64+F];U<<=4,U|=O}return U>>>0};var K=[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];H.permute=function(G){for(var $=0,U=0;U>>K[U]&1;return $>>>0},H.padSplit=function(G,$,U){for(var Y=G.toString(2);Y.length<$;)Y="0"+Y;for(var F=[],O=0;O<$;O+=U)F.push(Y.slice(O,O+U));return F.join(" ")}}}),l0=GY({"node_modules/minimalistic-assert/index.js"(H,W){W.exports=p$;function p$(K,G){if(!K)throw new Error(G||"Assertion failed")}p$.equal=function(K,G,$){if(K!=G)throw new Error($||"Assertion failed: "+K+" != "+G)}}}),OY=GY({"node_modules/des.js/lib/des/cipher.js"(H,W){var p$=l0();function K(G){this.options=G,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}W.exports=K,K.prototype._init=function(){},K.prototype.update=function(G){return G.length===0?[]:this.type==="decrypt"?this._updateDecrypt(G):this._updateEncrypt(G)},K.prototype._buffer=function(G,$){for(var U=Math.min(this.buffer.length-this.bufferOff,G.length-$),Y=0;Y0;Y--)$+=this._buffer(G,$),U+=this._flushBuffer(F,U);return $+=this._buffer(G,$),F},K.prototype.final=function(G){var $;G&&($=this.update(G));var U;return this.type==="encrypt"?U=this._finalEncrypt():U=this._finalDecrypt(),$?$.concat(U):U},K.prototype._pad=function(G,$){if($===0)return!1;for(;$>>1];z=G.r28shl(z,h$),c$=G.r28shl(c$,h$),G.pc2(z,c$,O.keys,M)}},Y.prototype._update=function(O,f$,z,c$){var M=this._desState,h$=G.readUInt32BE(O,f$),S=G.readUInt32BE(O,f$+4);G.ip(h$,S,M.tmp,0),h$=M.tmp[0],S=M.tmp[1],this.type==="encrypt"?this._encrypt(M,h$,S,M.tmp,0):this._decrypt(M,h$,S,M.tmp,0),h$=M.tmp[0],S=M.tmp[1],G.writeUInt32BE(z,h$,c$),G.writeUInt32BE(z,S,c$+4)},Y.prototype._pad=function(O,f$){for(var z=O.length-f$,c$=f$;c$>>0,h$=j}G.rip(S,h$,c$,M)},Y.prototype._decrypt=function(O,f$,z,c$,M){for(var h$=z,S=f$,d$=O.keys.length-2;d$>=0;d$-=2){var v=O.keys[d$],b$=O.keys[d$+1];G.expand(h$,O.tmp,0),v^=O.tmp[0],b$^=O.tmp[1];var q=G.substitute(v,b$),l$=G.permute(q),j=h$;h$=(S^l$)>>>0,S=j}G.rip(h$,S,c$,M)}}}),FY=GY({"node_modules/des.js/lib/des/cbc.js"(H){var W=l0(),p$=C0(),K={};function G(U){W.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Y=0;Y>F%8,G._prev=K(G._prev,U?z:c$);return f$}function K(G,$){var U=G.length,Y=-1,F=W.allocUnsafe(G.length);for(G=W.concat([G,W.from([$])]);++Y>7;return F}H.encrypt=function(G,$,U){for(var Y=$.length,F=W.allocUnsafe(Y),O=-1;++O>>24]^S[q>>>16&255]^d$[l$>>>8&255]^v[j&255]^f$[n$++],k=h$[q>>>24]^S[l$>>>16&255]^d$[j>>>8&255]^v[b$&255]^f$[n$++],u$=h$[l$>>>24]^S[j>>>16&255]^d$[b$>>>8&255]^v[q&255]^f$[n$++],g=h$[j>>>24]^S[b$>>>16&255]^d$[q>>>8&255]^v[l$&255]^f$[n$++],b$=o$,q=k,l$=u$,j=g;return o$=(c$[b$>>>24]<<24|c$[q>>>16&255]<<16|c$[l$>>>8&255]<<8|c$[j&255])^f$[n$++],k=(c$[q>>>24]<<24|c$[l$>>>16&255]<<16|c$[j>>>8&255]<<8|c$[b$&255])^f$[n$++],u$=(c$[l$>>>24]<<24|c$[j>>>16&255]<<16|c$[b$>>>8&255]<<8|c$[q&255])^f$[n$++],g=(c$[j>>>24]<<24|c$[b$>>>16&255]<<16|c$[q>>>8&255]<<8|c$[l$&255])^f$[n$++],o$=o$>>>0,k=k>>>0,u$=u$>>>0,g=g>>>0,[o$,k,u$,g]}var U=[0,1,2,4,8,16,32,64,128,27,54],Y=function(){for(var O=new Array(256),f$=0;f$<256;f$++)f$<128?O[f$]=f$<<1:O[f$]=f$<<1^283;for(var z=[],c$=[],M=[[],[],[],[]],h$=[[],[],[],[]],S=0,d$=0,v=0;v<256;++v){var b$=d$^d$<<1^d$<<2^d$<<3^d$<<4;b$=b$>>>8^b$&255^99,z[S]=b$,c$[b$]=S;var q=O[S],l$=O[q],j=O[l$],o$=O[b$]*257^b$*16843008;M[0][S]=o$<<24|o$>>>8,M[1][S]=o$<<16|o$>>>16,M[2][S]=o$<<8|o$>>>24,M[3][S]=o$,o$=j*16843009^l$*65537^q*257^S*16843008,h$[0][b$]=o$<<24|o$>>>8,h$[1][b$]=o$<<16|o$>>>16,h$[2][b$]=o$<<8|o$>>>24,h$[3][b$]=o$,S===0?S=d$=1:(S=q^O[O[O[j^q]]],d$^=O[O[d$]])}return{SBOX:z,INV_SBOX:c$,SUB_MIX:M,INV_SUB_MIX:h$}}();function F(O){this._key=K(O),this._reset()}F.blockSize=16,F.keySize=32,F.prototype.blockSize=F.blockSize,F.prototype.keySize=F.keySize,F.prototype._reset=function(){for(var O=this._key,f$=O.length,z=f$+6,c$=(z+1)*4,M=[],h$=0;h$>>24,S=Y.SBOX[S>>>24]<<24|Y.SBOX[S>>>16&255]<<16|Y.SBOX[S>>>8&255]<<8|Y.SBOX[S&255],S^=U[h$/f$|0]<<24):f$>6&&h$%f$===4&&(S=Y.SBOX[S>>>24]<<24|Y.SBOX[S>>>16&255]<<16|Y.SBOX[S>>>8&255]<<8|Y.SBOX[S&255]),M[h$]=M[h$-f$]^S}for(var d$=[],v=0;v>>24]]^Y.INV_SUB_MIX[1][Y.SBOX[q>>>16&255]]^Y.INV_SUB_MIX[2][Y.SBOX[q>>>8&255]]^Y.INV_SUB_MIX[3][Y.SBOX[q&255]]}this._nRounds=z,this._keySchedule=M,this._invKeySchedule=d$},F.prototype.encryptBlockRaw=function(O){return O=K(O),$(O,this._keySchedule,Y.SUB_MIX,Y.SBOX,this._nRounds)},F.prototype.encryptBlock=function(O){var f$=this.encryptBlockRaw(O),z=p$.allocUnsafe(16);return z.writeUInt32BE(f$[0],0),z.writeUInt32BE(f$[1],4),z.writeUInt32BE(f$[2],8),z.writeUInt32BE(f$[3],12),z},F.prototype.decryptBlock=function(O){O=K(O);var f$=O[1];O[1]=O[3],O[3]=f$;var z=$(O,this._invKeySchedule,Y.INV_SUB_MIX,Y.INV_SBOX,this._nRounds),c$=p$.allocUnsafe(16);return c$.writeUInt32BE(z[0],0),c$.writeUInt32BE(z[3],4),c$.writeUInt32BE(z[2],8),c$.writeUInt32BE(z[1],12),c$},F.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},W.exports.AES=F}}),qY=GY({"node_modules/browserify-aes/ghash.js"(H,W){var p$=UY().Buffer,K=p$.alloc(16,0);function G(Y){return[Y.readUInt32BE(0),Y.readUInt32BE(4),Y.readUInt32BE(8),Y.readUInt32BE(12)]}function $(Y){var F=p$.allocUnsafe(16);return F.writeUInt32BE(Y[0]>>>0,0),F.writeUInt32BE(Y[1]>>>0,4),F.writeUInt32BE(Y[2]>>>0,8),F.writeUInt32BE(Y[3]>>>0,12),F}function U(Y){this.h=Y,this.state=p$.alloc(16,0),this.cache=p$.allocUnsafe(0)}U.prototype.ghash=function(Y){for(var F=-1;++F0;O--)Y[O]=Y[O]>>>1|(Y[O-1]&1)<<31;Y[0]=Y[0]>>>1,z&&(Y[0]=Y[0]^225<<24)}this.state=$(F)},U.prototype.update=function(Y){this.cache=p$.concat([this.cache,Y]);for(var F;this.cache.length>=16;)F=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(F)},U.prototype.final=function(Y,F){return this.cache.length&&this.ghash(p$.concat([this.cache,K],16)),this.ghash($([0,Y,0,F])),this.state},W.exports=U}}),jY=GY({"node_modules/browserify-aes/authCipher.js"(H,W){var p$=vY(),K=UY().Buffer,G=_0(),$=C0(),U=qY(),Y=TY(),F=zY();function O(c$,M){var h$=0;c$.length!==M.length&&h$++;for(var S=Math.min(c$.length,M.length),d$=0;d$0||F>0;){var M=new K;M.update(c$),M.update($),U&&M.update(U),c$=M.digest();var h$=0;if(O>0){var S=f$.length-O;h$=Math.min(O,c$.length),c$.copy(f$,S,0,h$),O-=h$}if(h$0){var d$=z.length-F,v=Math.min(F,c$.length-h$);c$.copy(z,d$,h$,h$+v),F-=v}}return c$.fill(0),{key:f$,iv:z}}W.exports=G}}),_Y=GY({"node_modules/browserify-aes/encrypter.js"(H){var W=SY(),p$=jY(),K=UY().Buffer,G=kY(),$=_0(),U=vY(),Y=gY(),F=C0();function O(h$,S,d$){$.call(this),this._cache=new z,this._cipher=new U.AES(S),this._prev=K.from(d$),this._mode=h$,this._autopadding=!0}F(O,$),O.prototype._update=function(h$){this._cache.add(h$);for(var S,d$,v=[];S=this._cache.get();)d$=this._mode.encrypt(this,S),v.push(d$);return K.concat(v)};var f$=K.alloc(16,16);O.prototype._final=function(){var h$=this._cache.flush();if(this._autopadding)return h$=this._mode.encrypt(this,h$),this._cipher.scrub(),h$;if(!h$.equals(f$))throw this._cipher.scrub(),new Error("data not multiple of block length")},O.prototype.setAutoPadding=function(h$){return this._autopadding=!!h$,this};function z(){this.cache=K.allocUnsafe(0)}z.prototype.add=function(h$){this.cache=K.concat([this.cache,h$])},z.prototype.get=function(){if(this.cache.length>15){var h$=this.cache.slice(0,16);return this.cache=this.cache.slice(16),h$}return null},z.prototype.flush=function(){for(var h$=16-this.cache.length,S=K.allocUnsafe(h$),d$=-1;++d$16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S}else if(this.cache.length>=16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S;return null},f$.prototype.flush=function(){if(this.cache.length)return this.cache};function z(h$){var S=h$[15];if(S<1||S>16)throw new Error("unable to decrypt data");for(var d$=-1;++d$0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),D=GY({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),wY=GY({"(disabled):node_modules/crypto-browserify/index.js"(){}}),I=GY({"node_modules/brorand/index.js"(H,W){var p$;W.exports=function(G){return p$||(p$=new K(null)),p$.generate(G)};function K(G){this.rand=G}W.exports.Rand=K,K.prototype.generate=function(G){return this._rand(G)},K.prototype._rand=function(G){var $=new lQ(G);return uQ.getRandomValues($),$}}}),V=GY({"node_modules/miller-rabin/lib/mr.js"(H,W){var p$=D(),K=I();function G($){this.rand=$||new K.Rand}W.exports=G,G.create=function($){return new G($)},G.prototype._randbelow=function($){var U=$.bitLength(),Y=Math.ceil(U/8);do var F=new p$(this.rand.generate(Y));while(F.cmp($)>=0);return F},G.prototype._randrange=function($,U){var Y=U.sub($);return $.add(this._randbelow(Y))},G.prototype.test=function($,U,Y){var F=$.bitLength(),O=p$.mont($),f$=new p$(1).toRed(O);U||(U=Math.max(1,F/48|0));for(var z=$.subn(1),c$=0;!z.testn(c$);c$++);for(var M=$.shrn(c$),h$=z.toRed(O),S=!0;U>0;U--){var d$=this._randrange(new p$(2),z);Y&&Y(d$);var v=d$.toRed(O).redPow(M);if(!(v.cmp(f$)===0||v.cmp(h$)===0)){for(var b$=1;b$0;U--){var h$=this._randrange(new p$(2),f$),S=$.gcd(h$);if(S.cmpn(1)!==0)return S;var d$=h$.toRed(F).redPow(c$);if(!(d$.cmp(O)===0||d$.cmp(M)===0)){for(var v=1;vk;)g.ishrn(1);if(g.isEven()&&g.iadd(Y),g.testn(1)||g.iadd(F),u$.cmp(F)){if(!u$.cmp(O))for(;g.mod(c$).cmp(M);)g.iadd(d$)}else for(;g.mod(G).cmp(S);)g.iadd(d$);if(n$=g.shrn(1),l$(n$)&&l$(g)&&j(n$)&&j(g)&&U.test(n$)&&U.test(g))return g}}}}),X=GY({"node_modules/diffie-hellman/lib/primes.json"(H,W){W.exports={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"}}}}),Z=GY({"node_modules/diffie-hellman/lib/dh.js"(H,W){var p$=T(),K=V(),G=new K,$=new p$(24),U=new p$(11),Y=new p$(10),F=new p$(3),O=new p$(7),f$=Q(),z=XY();W.exports=d$;function c$(b$,q){return q=q||"utf8",lQ.isBuffer(b$)||(b$=new lQ(b$,q)),this._pub=new p$(b$),this}function M(b$,q){return q=q||"utf8",lQ.isBuffer(b$)||(b$=new lQ(b$,q)),this._priv=new p$(b$),this}var h$={};function S(b$,q){var l$=q.toString("hex"),j=[l$,b$.toString(16)].join("_");if(j in h$)return h$[j];var o$=0;if(b$.isEven()||!f$.simpleSieve||!f$.fermatTest(b$)||!G.test(b$))return o$+=1,l$==="02"||l$==="05"?o$+=8:o$+=4,h$[j]=o$,o$;G.test(b$.shrn(1))||(o$+=2);var k;switch(l$){case"02":b$.mod($).cmp(U)&&(o$+=8);break;case"05":k=b$.mod(Y),k.cmp(F)&&k.cmp(O)&&(o$+=8);break;default:o$+=4}return h$[j]=o$,o$}function d$(b$,q,l$){this.setGenerator(q),this.__prime=new p$(b$),this._prime=p$.mont(this.__prime),this._primeLen=b$.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,l$?(this.setPublicKey=c$,this.setPrivateKey=M):this._primeCode=8}Object.defineProperty(d$.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=S(this.__prime,this.__gen)),this._primeCode}}),d$.prototype.generateKeys=function(){return this._priv||(this._priv=new p$(z(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},d$.prototype.computeSecret=function(b$){b$=new p$(b$),b$=b$.toRed(this._prime);var q=b$.redPow(this._priv).fromRed(),l$=new lQ(q.toArray()),j=this.getPrime();if(l$.length0?x:m$},U.min=function(x,m$){return x.cmp(m$)<0?x:m$},U.prototype._init=function(x,m$,B){if(typeof x=="number")return this._initNumber(x,m$,B);if(typeof x=="object")return this._initArray(x,m$,B);m$==="hex"&&(m$=16),G(m$===(m$|0)&&m$>=2&&m$<=36),x=x.toString().replace(/\s+/g,"");var a$=0;x[0]==="-"&&(a$++,this.negative=1),a$=0;a$-=3)e$=x[a$]|x[a$-1]<<8|x[a$-2]<<16,this.words[y]|=e$<>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(B==="le")for(a$=0,y=0;a$>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this._strip()};function F(x,m$){var B=x.charCodeAt(m$);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;G(!1,"Invalid character in "+x)}function O(x,m$,B){var a$=F(x,B);return B-1>=m$&&(a$|=F(x,B-1)<<4),a$}U.prototype._parseHex=function(x,m$,B){this.length=Math.ceil((x.length-m$)/6),this.words=new Array(this.length);for(var a$=0;a$=m$;a$-=2)w=O(x,m$,a$)<=18?(y-=18,e$+=1,this.words[e$]|=w>>>26):y+=8;else{var r$=x.length-m$;for(a$=r$%2===0?m$+1:m$;a$=18?(y-=18,e$+=1,this.words[e$]|=w>>>26):y+=8}this._strip()};function f$(x,m$,B,a$){for(var y=0,e$=0,w=Math.min(x.length,B),r$=m$;r$=49?e$=E-49+10:E>=17?e$=E-17+10:e$=E,G(E>=0&&e$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=c$}catch{U.prototype.inspect=c$}else U.prototype.inspect=c$;function c$(){return(this.red?""}var M=["","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],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(x,m$){x=x||10,m$=m$|0||1;var B;if(x===16||x==="hex"){B="";for(var a$=0,y=0,e$=0;e$>>24-a$&16777215,a$+=2,a$>=26&&(a$-=26,e$--),y!==0||e$!==this.length-1?B=M[6-r$.length]+r$+B:B=r$+B}for(y!==0&&(B=y.toString(16)+B);B.length%m$!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(x===(x|0)&&x>=2&&x<=36){var E=h$[x],i$=S[x];B="";var p=this.clone();for(p.negative=0;!p.isZero();){var $Q=p.modrn(i$).toString(x);p=p.idivn(i$),p.isZero()?B=$Q+B:B=M[E-$Q.length]+$Q+B}for(this.isZero()&&(B="0"+B);B.length%m$!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=this.words[1]*67108864:this.length===3&&this.words[2]===1?x+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},U.prototype.toJSON=function(){return this.toString(16,2)},Y&&(U.prototype.toBuffer=function(x,m$){return this.toArrayLike(Y,x,m$)}),U.prototype.toArray=function(x,m$){return this.toArrayLike(Array,x,m$)};var d$=function(x,m$){return x.allocUnsafe?x.allocUnsafe(m$):new x(m$)};U.prototype.toArrayLike=function(x,m$,B){this._strip();var a$=this.byteLength(),y=B||Math.max(1,a$);G(a$<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var e$=d$(x,y),w=m$==="le"?"LE":"BE";return this["_toArrayLike"+w](e$,a$),e$},U.prototype._toArrayLikeLE=function(x,m$){for(var B=0,a$=0,y=0,e$=0;y>8&255),B>16&255),e$===6?(B>24&255),a$=0,e$=0):(a$=w>>>24,e$+=2)}if(B=0&&(x[B--]=w>>8&255),B>=0&&(x[B--]=w>>16&255),e$===6?(B>=0&&(x[B--]=w>>24&255),a$=0,e$=0):(a$=w>>>24,e$+=2)}if(B>=0)for(x[B--]=a$;B>=0;)x[B--]=0},Math.clz32?U.prototype._countBits=function(x){return 32-Math.clz32(x)}:U.prototype._countBits=function(x){var m$=x,B=0;return m$>=4096&&(B+=13,m$>>>=13),m$>=64&&(B+=7,m$>>>=7),m$>=8&&(B+=4,m$>>>=4),m$>=2&&(B+=2,m$>>>=2),B+m$},U.prototype._zeroBits=function(x){if(x===0)return 26;var m$=x,B=0;return(m$&8191)===0&&(B+=13,m$>>>=13),(m$&127)===0&&(B+=7,m$>>>=7),(m$&15)===0&&(B+=4,m$>>>=4),(m$&3)===0&&(B+=2,m$>>>=2),(m$&1)===0&&B++,B},U.prototype.bitLength=function(){var x=this.words[this.length-1],m$=this._countBits(x);return(this.length-1)*26+m$};function v(x){for(var m$=new Array(x.bitLength()),B=0;B>>y&1}return m$}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,m$=0;m$x.length?this.clone().ior(x):x.clone().ior(this)},U.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},U.prototype.iuand=function(x){var m$;this.length>x.length?m$=x:m$=this;for(var B=0;Bx.length?this.clone().iand(x):x.clone().iand(this)},U.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},U.prototype.iuxor=function(x){var m$,B;this.length>x.length?(m$=this,B=x):(m$=x,B=this);for(var a$=0;a$x.length?this.clone().ixor(x):x.clone().ixor(this)},U.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},U.prototype.inotn=function(x){G(typeof x=="number"&&x>=0);var m$=Math.ceil(x/26)|0,B=x%26;this._expand(m$),B>0&&m$--;for(var a$=0;a$0&&(this.words[a$]=~this.words[a$]&67108863>>26-B),this._strip()},U.prototype.notn=function(x){return this.clone().inotn(x)},U.prototype.setn=function(x,m$){G(typeof x=="number"&&x>=0);var B=x/26|0,a$=x%26;return this._expand(B+1),m$?this.words[B]=this.words[B]|1<x.length?(B=this,a$=x):(B=x,a$=this);for(var y=0,e$=0;e$>>26;for(;y!==0&&e$>>26;if(this.length=B.length,y!==0)this.words[this.length]=y,this.length++;else if(B!==this)for(;e$x.length?this.clone().iadd(x):x.clone().iadd(this)},U.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var m$=this.iadd(x);return x.negative=1,m$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var B=this.cmp(x);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a$,y;B>0?(a$=this,y=x):(a$=x,y=this);for(var e$=0,w=0;w>26,this.words[w]=m$&67108863;for(;e$!==0&&w>26,this.words[w]=m$&67108863;if(e$===0&&w>>26,$Q=E&67108863,f=Math.min(i$,m$.length-1),QQ=Math.max(0,i$-x.length+1);QQ<=f;QQ++){var c=i$-QQ|0;y=x.words[c]|0,e$=m$.words[QQ]|0,w=y*e$+$Q,p+=w/67108864|0,$Q=w&67108863}B.words[i$]=$Q|0,E=p|0}return E!==0?B.words[i$]=E|0:B.length--,B._strip()}var q=function(x,m$,B){var a$=x.words,y=m$.words,e$=B.words,w=0,r$,E,i$,p=a$[0]|0,$Q=p&8191,f=p>>>13,QQ=a$[1]|0,c=QQ&8191,YQ=QQ>>>13,h=a$[2]|0,ZQ=h&8191,d=h>>>13,GQ=a$[3]|0,b=GQ&8191,VQ=GQ>>>13,l=a$[4]|0,UQ=l&8191,o=l>>>13,XQ=a$[5]|0,u=XQ&8191,KQ=XQ>>>13,n=a$[6]|0,IQ=n&8191,s=n>>>13,OQ=a$[7]|0,t=OQ&8191,JQ=OQ>>>13,m=a$[8]|0,FQ=m&8191,a=m>>>13,AQ=a$[9]|0,e=AQ&8191,HQ=AQ>>>13,r=y[0]|0,WQ=r&8191,i=r>>>13,EQ=y[1]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=y[2]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=y[3]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=y[4]|0,RQ=G0&8191,V0=G0>>>13,PQ=y[5]|0,U0=PQ&8191,zQ=PQ>>>13,X0=y[6]|0,MQ=X0&8191,K0=X0>>>13,SQ=y[7]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=y[8]|0,jQ=qQ&8191,kQ=qQ>>>13,gQ=y[9]|0,O0=gQ&8191,_Q=gQ>>>13;B.negative=x.negative^m$.negative,B.length=19,r$=Math.imul($Q,WQ),E=Math.imul($Q,i),E=E+Math.imul(f,WQ)|0,i$=Math.imul(f,i);var J0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(J0>>>26)|0,J0&=67108863,r$=Math.imul(c,WQ),E=Math.imul(c,i),E=E+Math.imul(YQ,WQ)|0,i$=Math.imul(YQ,i),r$=r$+Math.imul($Q,$0)|0,E=E+Math.imul($Q,TQ)|0,E=E+Math.imul(f,$0)|0,i$=i$+Math.imul(f,TQ)|0;var NQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,r$=Math.imul(ZQ,WQ),E=Math.imul(ZQ,i),E=E+Math.imul(d,WQ)|0,i$=Math.imul(d,i),r$=r$+Math.imul(c,$0)|0,E=E+Math.imul(c,TQ)|0,E=E+Math.imul(YQ,$0)|0,i$=i$+Math.imul(YQ,TQ)|0,r$=r$+Math.imul($Q,DQ)|0,E=E+Math.imul($Q,Y0)|0,E=E+Math.imul(f,DQ)|0,i$=i$+Math.imul(f,Y0)|0;var xQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,r$=Math.imul(b,WQ),E=Math.imul(b,i),E=E+Math.imul(VQ,WQ)|0,i$=Math.imul(VQ,i),r$=r$+Math.imul(ZQ,$0)|0,E=E+Math.imul(ZQ,TQ)|0,E=E+Math.imul(d,$0)|0,i$=i$+Math.imul(d,TQ)|0,r$=r$+Math.imul(c,DQ)|0,E=E+Math.imul(c,Y0)|0,E=E+Math.imul(YQ,DQ)|0,i$=i$+Math.imul(YQ,Y0)|0,r$=r$+Math.imul($Q,Z0)|0,E=E+Math.imul($Q,LQ)|0,E=E+Math.imul(f,Z0)|0,i$=i$+Math.imul(f,LQ)|0;var BQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,r$=Math.imul(UQ,WQ),E=Math.imul(UQ,i),E=E+Math.imul(o,WQ)|0,i$=Math.imul(o,i),r$=r$+Math.imul(b,$0)|0,E=E+Math.imul(b,TQ)|0,E=E+Math.imul(VQ,$0)|0,i$=i$+Math.imul(VQ,TQ)|0,r$=r$+Math.imul(ZQ,DQ)|0,E=E+Math.imul(ZQ,Y0)|0,E=E+Math.imul(d,DQ)|0,i$=i$+Math.imul(d,Y0)|0,r$=r$+Math.imul(c,Z0)|0,E=E+Math.imul(c,LQ)|0,E=E+Math.imul(YQ,Z0)|0,i$=i$+Math.imul(YQ,LQ)|0,r$=r$+Math.imul($Q,RQ)|0,E=E+Math.imul($Q,V0)|0,E=E+Math.imul(f,RQ)|0,i$=i$+Math.imul(f,V0)|0;var yQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,r$=Math.imul(u,WQ),E=Math.imul(u,i),E=E+Math.imul(KQ,WQ)|0,i$=Math.imul(KQ,i),r$=r$+Math.imul(UQ,$0)|0,E=E+Math.imul(UQ,TQ)|0,E=E+Math.imul(o,$0)|0,i$=i$+Math.imul(o,TQ)|0,r$=r$+Math.imul(b,DQ)|0,E=E+Math.imul(b,Y0)|0,E=E+Math.imul(VQ,DQ)|0,i$=i$+Math.imul(VQ,Y0)|0,r$=r$+Math.imul(ZQ,Z0)|0,E=E+Math.imul(ZQ,LQ)|0,E=E+Math.imul(d,Z0)|0,i$=i$+Math.imul(d,LQ)|0,r$=r$+Math.imul(c,RQ)|0,E=E+Math.imul(c,V0)|0,E=E+Math.imul(YQ,RQ)|0,i$=i$+Math.imul(YQ,V0)|0,r$=r$+Math.imul($Q,U0)|0,E=E+Math.imul($Q,zQ)|0,E=E+Math.imul(f,U0)|0,i$=i$+Math.imul(f,zQ)|0;var wQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,r$=Math.imul(IQ,WQ),E=Math.imul(IQ,i),E=E+Math.imul(s,WQ)|0,i$=Math.imul(s,i),r$=r$+Math.imul(u,$0)|0,E=E+Math.imul(u,TQ)|0,E=E+Math.imul(KQ,$0)|0,i$=i$+Math.imul(KQ,TQ)|0,r$=r$+Math.imul(UQ,DQ)|0,E=E+Math.imul(UQ,Y0)|0,E=E+Math.imul(o,DQ)|0,i$=i$+Math.imul(o,Y0)|0,r$=r$+Math.imul(b,Z0)|0,E=E+Math.imul(b,LQ)|0,E=E+Math.imul(VQ,Z0)|0,i$=i$+Math.imul(VQ,LQ)|0,r$=r$+Math.imul(ZQ,RQ)|0,E=E+Math.imul(ZQ,V0)|0,E=E+Math.imul(d,RQ)|0,i$=i$+Math.imul(d,V0)|0,r$=r$+Math.imul(c,U0)|0,E=E+Math.imul(c,zQ)|0,E=E+Math.imul(YQ,U0)|0,i$=i$+Math.imul(YQ,zQ)|0,r$=r$+Math.imul($Q,MQ)|0,E=E+Math.imul($Q,K0)|0,E=E+Math.imul(f,MQ)|0,i$=i$+Math.imul(f,K0)|0;var F0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(F0>>>26)|0,F0&=67108863,r$=Math.imul(t,WQ),E=Math.imul(t,i),E=E+Math.imul(JQ,WQ)|0,i$=Math.imul(JQ,i),r$=r$+Math.imul(IQ,$0)|0,E=E+Math.imul(IQ,TQ)|0,E=E+Math.imul(s,$0)|0,i$=i$+Math.imul(s,TQ)|0,r$=r$+Math.imul(u,DQ)|0,E=E+Math.imul(u,Y0)|0,E=E+Math.imul(KQ,DQ)|0,i$=i$+Math.imul(KQ,Y0)|0,r$=r$+Math.imul(UQ,Z0)|0,E=E+Math.imul(UQ,LQ)|0,E=E+Math.imul(o,Z0)|0,i$=i$+Math.imul(o,LQ)|0,r$=r$+Math.imul(b,RQ)|0,E=E+Math.imul(b,V0)|0,E=E+Math.imul(VQ,RQ)|0,i$=i$+Math.imul(VQ,V0)|0,r$=r$+Math.imul(ZQ,U0)|0,E=E+Math.imul(ZQ,zQ)|0,E=E+Math.imul(d,U0)|0,i$=i$+Math.imul(d,zQ)|0,r$=r$+Math.imul(c,MQ)|0,E=E+Math.imul(c,K0)|0,E=E+Math.imul(YQ,MQ)|0,i$=i$+Math.imul(YQ,K0)|0,r$=r$+Math.imul($Q,I0)|0,E=E+Math.imul($Q,vQ)|0,E=E+Math.imul(f,I0)|0,i$=i$+Math.imul(f,vQ)|0;var pQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,r$=Math.imul(FQ,WQ),E=Math.imul(FQ,i),E=E+Math.imul(a,WQ)|0,i$=Math.imul(a,i),r$=r$+Math.imul(t,$0)|0,E=E+Math.imul(t,TQ)|0,E=E+Math.imul(JQ,$0)|0,i$=i$+Math.imul(JQ,TQ)|0,r$=r$+Math.imul(IQ,DQ)|0,E=E+Math.imul(IQ,Y0)|0,E=E+Math.imul(s,DQ)|0,i$=i$+Math.imul(s,Y0)|0,r$=r$+Math.imul(u,Z0)|0,E=E+Math.imul(u,LQ)|0,E=E+Math.imul(KQ,Z0)|0,i$=i$+Math.imul(KQ,LQ)|0,r$=r$+Math.imul(UQ,RQ)|0,E=E+Math.imul(UQ,V0)|0,E=E+Math.imul(o,RQ)|0,i$=i$+Math.imul(o,V0)|0,r$=r$+Math.imul(b,U0)|0,E=E+Math.imul(b,zQ)|0,E=E+Math.imul(VQ,U0)|0,i$=i$+Math.imul(VQ,zQ)|0,r$=r$+Math.imul(ZQ,MQ)|0,E=E+Math.imul(ZQ,K0)|0,E=E+Math.imul(d,MQ)|0,i$=i$+Math.imul(d,K0)|0,r$=r$+Math.imul(c,I0)|0,E=E+Math.imul(c,vQ)|0,E=E+Math.imul(YQ,I0)|0,i$=i$+Math.imul(YQ,vQ)|0,r$=r$+Math.imul($Q,jQ)|0,E=E+Math.imul($Q,kQ)|0,E=E+Math.imul(f,jQ)|0,i$=i$+Math.imul(f,kQ)|0;var A0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(A0>>>26)|0,A0&=67108863,r$=Math.imul(e,WQ),E=Math.imul(e,i),E=E+Math.imul(HQ,WQ)|0,i$=Math.imul(HQ,i),r$=r$+Math.imul(FQ,$0)|0,E=E+Math.imul(FQ,TQ)|0,E=E+Math.imul(a,$0)|0,i$=i$+Math.imul(a,TQ)|0,r$=r$+Math.imul(t,DQ)|0,E=E+Math.imul(t,Y0)|0,E=E+Math.imul(JQ,DQ)|0,i$=i$+Math.imul(JQ,Y0)|0,r$=r$+Math.imul(IQ,Z0)|0,E=E+Math.imul(IQ,LQ)|0,E=E+Math.imul(s,Z0)|0,i$=i$+Math.imul(s,LQ)|0,r$=r$+Math.imul(u,RQ)|0,E=E+Math.imul(u,V0)|0,E=E+Math.imul(KQ,RQ)|0,i$=i$+Math.imul(KQ,V0)|0,r$=r$+Math.imul(UQ,U0)|0,E=E+Math.imul(UQ,zQ)|0,E=E+Math.imul(o,U0)|0,i$=i$+Math.imul(o,zQ)|0,r$=r$+Math.imul(b,MQ)|0,E=E+Math.imul(b,K0)|0,E=E+Math.imul(VQ,MQ)|0,i$=i$+Math.imul(VQ,K0)|0,r$=r$+Math.imul(ZQ,I0)|0,E=E+Math.imul(ZQ,vQ)|0,E=E+Math.imul(d,I0)|0,i$=i$+Math.imul(d,vQ)|0,r$=r$+Math.imul(c,jQ)|0,E=E+Math.imul(c,kQ)|0,E=E+Math.imul(YQ,jQ)|0,i$=i$+Math.imul(YQ,kQ)|0,r$=r$+Math.imul($Q,O0)|0,E=E+Math.imul($Q,_Q)|0,E=E+Math.imul(f,O0)|0,i$=i$+Math.imul(f,_Q)|0;var fQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,r$=Math.imul(e,$0),E=Math.imul(e,TQ),E=E+Math.imul(HQ,$0)|0,i$=Math.imul(HQ,TQ),r$=r$+Math.imul(FQ,DQ)|0,E=E+Math.imul(FQ,Y0)|0,E=E+Math.imul(a,DQ)|0,i$=i$+Math.imul(a,Y0)|0,r$=r$+Math.imul(t,Z0)|0,E=E+Math.imul(t,LQ)|0,E=E+Math.imul(JQ,Z0)|0,i$=i$+Math.imul(JQ,LQ)|0,r$=r$+Math.imul(IQ,RQ)|0,E=E+Math.imul(IQ,V0)|0,E=E+Math.imul(s,RQ)|0,i$=i$+Math.imul(s,V0)|0,r$=r$+Math.imul(u,U0)|0,E=E+Math.imul(u,zQ)|0,E=E+Math.imul(KQ,U0)|0,i$=i$+Math.imul(KQ,zQ)|0,r$=r$+Math.imul(UQ,MQ)|0,E=E+Math.imul(UQ,K0)|0,E=E+Math.imul(o,MQ)|0,i$=i$+Math.imul(o,K0)|0,r$=r$+Math.imul(b,I0)|0,E=E+Math.imul(b,vQ)|0,E=E+Math.imul(VQ,I0)|0,i$=i$+Math.imul(VQ,vQ)|0,r$=r$+Math.imul(ZQ,jQ)|0,E=E+Math.imul(ZQ,kQ)|0,E=E+Math.imul(d,jQ)|0,i$=i$+Math.imul(d,kQ)|0,r$=r$+Math.imul(c,O0)|0,E=E+Math.imul(c,_Q)|0,E=E+Math.imul(YQ,O0)|0,i$=i$+Math.imul(YQ,_Q)|0;var H0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(H0>>>26)|0,H0&=67108863,r$=Math.imul(e,DQ),E=Math.imul(e,Y0),E=E+Math.imul(HQ,DQ)|0,i$=Math.imul(HQ,Y0),r$=r$+Math.imul(FQ,Z0)|0,E=E+Math.imul(FQ,LQ)|0,E=E+Math.imul(a,Z0)|0,i$=i$+Math.imul(a,LQ)|0,r$=r$+Math.imul(t,RQ)|0,E=E+Math.imul(t,V0)|0,E=E+Math.imul(JQ,RQ)|0,i$=i$+Math.imul(JQ,V0)|0,r$=r$+Math.imul(IQ,U0)|0,E=E+Math.imul(IQ,zQ)|0,E=E+Math.imul(s,U0)|0,i$=i$+Math.imul(s,zQ)|0,r$=r$+Math.imul(u,MQ)|0,E=E+Math.imul(u,K0)|0,E=E+Math.imul(KQ,MQ)|0,i$=i$+Math.imul(KQ,K0)|0,r$=r$+Math.imul(UQ,I0)|0,E=E+Math.imul(UQ,vQ)|0,E=E+Math.imul(o,I0)|0,i$=i$+Math.imul(o,vQ)|0,r$=r$+Math.imul(b,jQ)|0,E=E+Math.imul(b,kQ)|0,E=E+Math.imul(VQ,jQ)|0,i$=i$+Math.imul(VQ,kQ)|0,r$=r$+Math.imul(ZQ,O0)|0,E=E+Math.imul(ZQ,_Q)|0,E=E+Math.imul(d,O0)|0,i$=i$+Math.imul(d,_Q)|0;var cQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,r$=Math.imul(e,Z0),E=Math.imul(e,LQ),E=E+Math.imul(HQ,Z0)|0,i$=Math.imul(HQ,LQ),r$=r$+Math.imul(FQ,RQ)|0,E=E+Math.imul(FQ,V0)|0,E=E+Math.imul(a,RQ)|0,i$=i$+Math.imul(a,V0)|0,r$=r$+Math.imul(t,U0)|0,E=E+Math.imul(t,zQ)|0,E=E+Math.imul(JQ,U0)|0,i$=i$+Math.imul(JQ,zQ)|0,r$=r$+Math.imul(IQ,MQ)|0,E=E+Math.imul(IQ,K0)|0,E=E+Math.imul(s,MQ)|0,i$=i$+Math.imul(s,K0)|0,r$=r$+Math.imul(u,I0)|0,E=E+Math.imul(u,vQ)|0,E=E+Math.imul(KQ,I0)|0,i$=i$+Math.imul(KQ,vQ)|0,r$=r$+Math.imul(UQ,jQ)|0,E=E+Math.imul(UQ,kQ)|0,E=E+Math.imul(o,jQ)|0,i$=i$+Math.imul(o,kQ)|0,r$=r$+Math.imul(b,O0)|0,E=E+Math.imul(b,_Q)|0,E=E+Math.imul(VQ,O0)|0,i$=i$+Math.imul(VQ,_Q)|0;var W0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(W0>>>26)|0,W0&=67108863,r$=Math.imul(e,RQ),E=Math.imul(e,V0),E=E+Math.imul(HQ,RQ)|0,i$=Math.imul(HQ,V0),r$=r$+Math.imul(FQ,U0)|0,E=E+Math.imul(FQ,zQ)|0,E=E+Math.imul(a,U0)|0,i$=i$+Math.imul(a,zQ)|0,r$=r$+Math.imul(t,MQ)|0,E=E+Math.imul(t,K0)|0,E=E+Math.imul(JQ,MQ)|0,i$=i$+Math.imul(JQ,K0)|0,r$=r$+Math.imul(IQ,I0)|0,E=E+Math.imul(IQ,vQ)|0,E=E+Math.imul(s,I0)|0,i$=i$+Math.imul(s,vQ)|0,r$=r$+Math.imul(u,jQ)|0,E=E+Math.imul(u,kQ)|0,E=E+Math.imul(KQ,jQ)|0,i$=i$+Math.imul(KQ,kQ)|0,r$=r$+Math.imul(UQ,O0)|0,E=E+Math.imul(UQ,_Q)|0,E=E+Math.imul(o,O0)|0,i$=i$+Math.imul(o,_Q)|0;var hQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,r$=Math.imul(e,U0),E=Math.imul(e,zQ),E=E+Math.imul(HQ,U0)|0,i$=Math.imul(HQ,zQ),r$=r$+Math.imul(FQ,MQ)|0,E=E+Math.imul(FQ,K0)|0,E=E+Math.imul(a,MQ)|0,i$=i$+Math.imul(a,K0)|0,r$=r$+Math.imul(t,I0)|0,E=E+Math.imul(t,vQ)|0,E=E+Math.imul(JQ,I0)|0,i$=i$+Math.imul(JQ,vQ)|0,r$=r$+Math.imul(IQ,jQ)|0,E=E+Math.imul(IQ,kQ)|0,E=E+Math.imul(s,jQ)|0,i$=i$+Math.imul(s,kQ)|0,r$=r$+Math.imul(u,O0)|0,E=E+Math.imul(u,_Q)|0,E=E+Math.imul(KQ,O0)|0,i$=i$+Math.imul(KQ,_Q)|0;var E0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(E0>>>26)|0,E0&=67108863,r$=Math.imul(e,MQ),E=Math.imul(e,K0),E=E+Math.imul(HQ,MQ)|0,i$=Math.imul(HQ,K0),r$=r$+Math.imul(FQ,I0)|0,E=E+Math.imul(FQ,vQ)|0,E=E+Math.imul(a,I0)|0,i$=i$+Math.imul(a,vQ)|0,r$=r$+Math.imul(t,jQ)|0,E=E+Math.imul(t,kQ)|0,E=E+Math.imul(JQ,jQ)|0,i$=i$+Math.imul(JQ,kQ)|0,r$=r$+Math.imul(IQ,O0)|0,E=E+Math.imul(IQ,_Q)|0,E=E+Math.imul(s,O0)|0,i$=i$+Math.imul(s,_Q)|0;var dQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,r$=Math.imul(e,I0),E=Math.imul(e,vQ),E=E+Math.imul(HQ,I0)|0,i$=Math.imul(HQ,vQ),r$=r$+Math.imul(FQ,jQ)|0,E=E+Math.imul(FQ,kQ)|0,E=E+Math.imul(a,jQ)|0,i$=i$+Math.imul(a,kQ)|0,r$=r$+Math.imul(t,O0)|0,E=E+Math.imul(t,_Q)|0,E=E+Math.imul(JQ,O0)|0,i$=i$+Math.imul(JQ,_Q)|0;var T0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(T0>>>26)|0,T0&=67108863,r$=Math.imul(e,jQ),E=Math.imul(e,kQ),E=E+Math.imul(HQ,jQ)|0,i$=Math.imul(HQ,kQ),r$=r$+Math.imul(FQ,O0)|0,E=E+Math.imul(FQ,_Q)|0,E=E+Math.imul(a,O0)|0,i$=i$+Math.imul(a,_Q)|0;var bQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(bQ>>>26)|0,bQ&=67108863,r$=Math.imul(e,O0),E=Math.imul(e,_Q),E=E+Math.imul(HQ,O0)|0,i$=Math.imul(HQ,_Q);var D0=(w+r$|0)+((E&8191)<<13)|0;return w=(i$+(E>>>13)|0)+(D0>>>26)|0,D0&=67108863,e$[0]=J0,e$[1]=NQ,e$[2]=xQ,e$[3]=BQ,e$[4]=yQ,e$[5]=wQ,e$[6]=F0,e$[7]=pQ,e$[8]=A0,e$[9]=fQ,e$[10]=H0,e$[11]=cQ,e$[12]=W0,e$[13]=hQ,e$[14]=E0,e$[15]=dQ,e$[16]=T0,e$[17]=bQ,e$[18]=D0,w!==0&&(e$[19]=w,B.length++),B};Math.imul||(q=b$);function l$(x,m$,B){B.negative=m$.negative^x.negative,B.length=x.length+m$.length;for(var a$=0,y=0,e$=0;e$>>26)|0,y+=w>>>26,w&=67108863}B.words[e$]=r$,a$=w,w=y}return a$!==0?B.words[e$]=a$:B.length--,B._strip()}function j(x,m$,B){return l$(x,m$,B)}U.prototype.mulTo=function(x,m$){var B,a$=this.length+x.length;return this.length===10&&x.length===10?B=q(this,x,m$):a$<63?B=b$(this,x,m$):a$<1024?B=l$(this,x,m$):B=j(this,x,m$),B};function o$(x,m$){this.x=x,this.y=m$}o$.prototype.makeRBT=function(x){for(var m$=new Array(x),B=U.prototype._countBits(x)-1,a$=0;a$>=1;return a$},o$.prototype.permute=function(x,m$,B,a$,y,e$){for(var w=0;w>>1)y++;return 1<>>13,B[2*e$+1]=y&8191,y=y>>>13;for(e$=2*m$;e$>=26,B+=y/67108864|0,B+=e$>>>26,this.words[a$]=e$&67108863}return B!==0&&(this.words[a$]=B,this.length++),m$?this.ineg():this},U.prototype.muln=function(x){return this.clone().imuln(x)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(x){var m$=v(x);if(m$.length===0)return new U(1);for(var B=this,a$=0;a$=0);var m$=x%26,B=(x-m$)/26,a$=67108863>>>26-m$<<26-m$,y;if(m$!==0){var e$=0;for(y=0;y>>26-m$}e$&&(this.words[y]=e$,this.length++)}if(B!==0){for(y=this.length-1;y>=0;y--)this.words[y+B]=this.words[y];for(y=0;y=0);var a$;m$?a$=(m$-m$%26)/26:a$=0;var y=x%26,e$=Math.min((x-y)/26,this.length),w=67108863^67108863>>>y<e$)for(this.length-=e$,E=0;E=0&&(i$!==0||E>=a$);E--){var p=this.words[E]|0;this.words[E]=i$<<26-y|p>>>y,i$=p&w}return r$&&i$!==0&&(r$.words[r$.length++]=i$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},U.prototype.ishrn=function(x,m$,B){return G(this.negative===0),this.iushrn(x,m$,B)},U.prototype.shln=function(x){return this.clone().ishln(x)},U.prototype.ushln=function(x){return this.clone().iushln(x)},U.prototype.shrn=function(x){return this.clone().ishrn(x)},U.prototype.ushrn=function(x){return this.clone().iushrn(x)},U.prototype.testn=function(x){G(typeof x=="number"&&x>=0);var m$=x%26,B=(x-m$)/26,a$=1<=0);var m$=x%26,B=(x-m$)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(m$!==0&&B++,this.length=Math.min(B,this.length),m$!==0){var a$=67108863^67108863>>>m$<=67108864;m$++)this.words[m$]-=67108864,m$===this.length-1?this.words[m$+1]=1:this.words[m$+1]++;return this.length=Math.max(this.length,m$+1),this},U.prototype.isubn=function(x){if(G(typeof x=="number"),G(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var m$=0;m$>26)-(r$/67108864|0),this.words[y+B]=e$&67108863}for(;y>26,this.words[y+B]=e$&67108863;if(w===0)return this._strip();for(G(w===-1),w=0,y=0;y>26,this.words[y]=e$&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(x,m$){var B=this.length-x.length,a$=this.clone(),y=x,e$=y.words[y.length-1]|0,w=this._countBits(e$);B=26-w,B!==0&&(y=y.ushln(B),a$.iushln(B),e$=y.words[y.length-1]|0);var r$=a$.length-y.length,E;if(m$!=="mod"){E=new U(null),E.length=r$+1,E.words=new Array(E.length);for(var i$=0;i$=0;$Q--){var f=(a$.words[y.length+$Q]|0)*67108864+(a$.words[y.length+$Q-1]|0);for(f=Math.min(f/e$|0,67108863),a$._ishlnsubmul(y,f,$Q);a$.negative!==0;)f--,a$.negative=0,a$._ishlnsubmul(y,1,$Q),a$.isZero()||(a$.negative^=1);E&&(E.words[$Q]=f)}return E&&E._strip(),a$._strip(),m$!=="div"&&B!==0&&a$.iushrn(B),{div:E||null,mod:a$}},U.prototype.divmod=function(x,m$,B){if(G(!x.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var a$,y,e$;return this.negative!==0&&x.negative===0?(e$=this.neg().divmod(x,m$),m$!=="mod"&&(a$=e$.div.neg()),m$!=="div"&&(y=e$.mod.neg(),B&&y.negative!==0&&y.iadd(x)),{div:a$,mod:y}):this.negative===0&&x.negative!==0?(e$=this.divmod(x.neg(),m$),m$!=="mod"&&(a$=e$.div.neg()),{div:a$,mod:e$.mod}):(this.negative&x.negative)!==0?(e$=this.neg().divmod(x.neg(),m$),m$!=="div"&&(y=e$.mod.neg(),B&&y.negative!==0&&y.isub(x)),{div:e$.div,mod:y}):x.length>this.length||this.cmp(x)<0?{div:new U(0),mod:this}:x.length===1?m$==="div"?{div:this.divn(x.words[0]),mod:null}:m$==="mod"?{div:null,mod:new U(this.modrn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new U(this.modrn(x.words[0]))}:this._wordDiv(x,m$)},U.prototype.div=function(x){return this.divmod(x,"div",!1).div},U.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},U.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},U.prototype.divRound=function(x){var m$=this.divmod(x);if(m$.mod.isZero())return m$.div;var B=m$.div.negative!==0?m$.mod.isub(x):m$.mod,a$=x.ushrn(1),y=x.andln(1),e$=B.cmp(a$);return e$<0||y===1&&e$===0?m$.div:m$.div.negative!==0?m$.div.isubn(1):m$.div.iaddn(1)},U.prototype.modrn=function(x){var m$=x<0;m$&&(x=-x),G(x<=67108863);for(var B=(1<<26)%x,a$=0,y=this.length-1;y>=0;y--)a$=(B*a$+(this.words[y]|0))%x;return m$?-a$:a$},U.prototype.modn=function(x){return this.modrn(x)},U.prototype.idivn=function(x){var m$=x<0;m$&&(x=-x),G(x<=67108863);for(var B=0,a$=this.length-1;a$>=0;a$--){var y=(this.words[a$]|0)+B*67108864;this.words[a$]=y/x|0,B=y%x}return this._strip(),m$?this.ineg():this},U.prototype.divn=function(x){return this.clone().idivn(x)},U.prototype.egcd=function(x){G(x.negative===0),G(!x.isZero());var m$=this,B=x.clone();m$.negative!==0?m$=m$.umod(x):m$=m$.clone();for(var a$=new U(1),y=new U(0),e$=new U(0),w=new U(1),r$=0;m$.isEven()&&B.isEven();)m$.iushrn(1),B.iushrn(1),++r$;for(var E=B.clone(),i$=m$.clone();!m$.isZero();){for(var p=0,$Q=1;(m$.words[0]&$Q)===0&&p<26;++p,$Q<<=1);if(p>0)for(m$.iushrn(p);p-- >0;)(a$.isOdd()||y.isOdd())&&(a$.iadd(E),y.isub(i$)),a$.iushrn(1),y.iushrn(1);for(var f=0,QQ=1;(B.words[0]&QQ)===0&&f<26;++f,QQ<<=1);if(f>0)for(B.iushrn(f);f-- >0;)(e$.isOdd()||w.isOdd())&&(e$.iadd(E),w.isub(i$)),e$.iushrn(1),w.iushrn(1);m$.cmp(B)>=0?(m$.isub(B),a$.isub(e$),y.isub(w)):(B.isub(m$),e$.isub(a$),w.isub(y))}return{a:e$,b:w,gcd:B.iushln(r$)}},U.prototype._invmp=function(x){G(x.negative===0),G(!x.isZero());var m$=this,B=x.clone();m$.negative!==0?m$=m$.umod(x):m$=m$.clone();for(var a$=new U(1),y=new U(0),e$=B.clone();m$.cmpn(1)>0&&B.cmpn(1)>0;){for(var w=0,r$=1;(m$.words[0]&r$)===0&&w<26;++w,r$<<=1);if(w>0)for(m$.iushrn(w);w-- >0;)a$.isOdd()&&a$.iadd(e$),a$.iushrn(1);for(var E=0,i$=1;(B.words[0]&i$)===0&&E<26;++E,i$<<=1);if(E>0)for(B.iushrn(E);E-- >0;)y.isOdd()&&y.iadd(e$),y.iushrn(1);m$.cmp(B)>=0?(m$.isub(B),a$.isub(y)):(B.isub(m$),y.isub(a$))}var p;return m$.cmpn(1)===0?p=a$:p=y,p.cmpn(0)<0&&p.iadd(x),p},U.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var m$=this.clone(),B=x.clone();m$.negative=0,B.negative=0;for(var a$=0;m$.isEven()&&B.isEven();a$++)m$.iushrn(1),B.iushrn(1);do{for(;m$.isEven();)m$.iushrn(1);for(;B.isEven();)B.iushrn(1);var y=m$.cmp(B);if(y<0){var e$=m$;m$=B,B=e$}else if(y===0||B.cmpn(1)===0)break;m$.isub(B)}while(!0);return B.iushln(a$)},U.prototype.invm=function(x){return this.egcd(x).a.umod(x)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(x){return this.words[0]&x},U.prototype.bincn=function(x){G(typeof x=="number");var m$=x%26,B=(x-m$)/26,a$=1<>>26,w&=67108863,this.words[e$]=w}return y!==0&&(this.words[e$]=y,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(x){var m$=x<0;if(this.negative!==0&&!m$)return-1;if(this.negative===0&&m$)return 1;this._strip();var B;if(this.length>1)B=1;else{m$&&(x=-x),G(x<=67108863,"Number is too big");var a$=this.words[0]|0;B=a$===x?0:a$x.length)return 1;if(this.length=0;B--){var a$=this.words[B]|0,y=x.words[B]|0;if(a$!==y){a$y&&(m$=1);break}}return m$},U.prototype.gtn=function(x){return this.cmpn(x)===1},U.prototype.gt=function(x){return this.cmp(x)===1},U.prototype.gten=function(x){return this.cmpn(x)>=0},U.prototype.gte=function(x){return this.cmp(x)>=0},U.prototype.ltn=function(x){return this.cmpn(x)===-1},U.prototype.lt=function(x){return this.cmp(x)===-1},U.prototype.lten=function(x){return this.cmpn(x)<=0},U.prototype.lte=function(x){return this.cmp(x)<=0},U.prototype.eqn=function(x){return this.cmpn(x)===0},U.prototype.eq=function(x){return this.cmp(x)===0},U.red=function(x){return new N(x)},U.prototype.toRed=function(x){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(x){return this.red=x,this},U.prototype.forceRed=function(x){return G(!this.red,"Already a number in reduction context"),this._forceRed(x)},U.prototype.redAdd=function(x){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},U.prototype.redIAdd=function(x){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},U.prototype.redSub=function(x){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},U.prototype.redISub=function(x){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},U.prototype.redShl=function(x){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},U.prototype.redMul=function(x){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},U.prototype.redIMul=function(x){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(x){return G(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var k={k256:null,p224:null,p192:null,p25519:null};function u$(x,m$){this.name=x,this.p=new U(m$,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}u$.prototype._tmp=function(){var x=new U(null);return x.words=new Array(Math.ceil(this.n/13)),x},u$.prototype.ireduce=function(x){var m$=x,B;do this.split(m$,this.tmp),m$=this.imulK(m$),m$=m$.iadd(this.tmp),B=m$.bitLength();while(B>this.n);var a$=B0?m$.isub(this.p):m$.strip!==void 0?m$.strip():m$._strip(),m$},u$.prototype.split=function(x,m$){x.iushrn(this.n,0,m$)},u$.prototype.imulK=function(x){return x.imul(this.k)};function g(){u$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(g,u$),g.prototype.split=function(x,m$){for(var B=4194303,a$=Math.min(x.length,9),y=0;y>>22,e$=w}e$>>>=22,x.words[y-10]=e$,e$===0&&x.length>10?x.length-=10:x.length-=9},g.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var m$=0,B=0;B>>=26,x.words[B]=y,m$=a$}return m$!==0&&(x.words[x.length++]=m$),x},U._prime=function(x){if(k[x])return k[x];var m$;if(x==="k256")m$=new g;else if(x==="p224")m$=new n$;else if(x==="p192")m$=new _;else if(x==="p25519")m$=new s$;else throw new Error("Unknown prime "+x);return k[x]=m$,m$};function N(x){if(typeof x=="string"){var m$=U._prime(x);this.m=m$.p,this.prime=m$}else G(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}N.prototype._verify1=function(x){G(x.negative===0,"red works only with positives"),G(x.red,"red works only with red numbers")},N.prototype._verify2=function(x,m$){G((x.negative|m$.negative)===0,"red works only with positives"),G(x.red&&x.red===m$.red,"red works only with red numbers")},N.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):(z(x,x.umod(this.m)._forceRed(this)),x)},N.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},N.prototype.add=function(x,m$){this._verify2(x,m$);var B=x.add(m$);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},N.prototype.iadd=function(x,m$){this._verify2(x,m$);var B=x.iadd(m$);return B.cmp(this.m)>=0&&B.isub(this.m),B},N.prototype.sub=function(x,m$){this._verify2(x,m$);var B=x.sub(m$);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},N.prototype.isub=function(x,m$){this._verify2(x,m$);var B=x.isub(m$);return B.cmpn(0)<0&&B.iadd(this.m),B},N.prototype.shl=function(x,m$){return this._verify1(x),this.imod(x.ushln(m$))},N.prototype.imul=function(x,m$){return this._verify2(x,m$),this.imod(x.imul(m$))},N.prototype.mul=function(x,m$){return this._verify2(x,m$),this.imod(x.mul(m$))},N.prototype.isqr=function(x){return this.imul(x,x.clone())},N.prototype.sqr=function(x){return this.mul(x,x)},N.prototype.sqrt=function(x){if(x.isZero())return x.clone();var m$=this.m.andln(3);if(G(m$%2===1),m$===3){var B=this.m.add(new U(1)).iushrn(2);return this.pow(x,B)}for(var a$=this.m.subn(1),y=0;!a$.isZero()&&a$.andln(1)===0;)y++,a$.iushrn(1);G(!a$.isZero());var e$=new U(1).toRed(this),w=e$.redNeg(),r$=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new U(2*E*E).toRed(this);this.pow(E,r$).cmp(w)!==0;)E.redIAdd(w);for(var i$=this.pow(E,a$),p=this.pow(x,a$.addn(1).iushrn(1)),$Q=this.pow(x,a$),f=y;$Q.cmp(e$)!==0;){for(var QQ=$Q,c=0;QQ.cmp(e$)!==0;c++)QQ=QQ.redSqr();G(c=0;y--){for(var i$=m$.words[y],p=E-1;p>=0;p--){var $Q=i$>>p&1;if(e$!==a$[0]&&(e$=this.sqr(e$)),$Q===0&&w===0){r$=0;continue}w<<=1,w|=$Q,r$++,!(r$!==B&&(y!==0||p!==0))&&(e$=this.mul(e$,a$[w]),r$=0,w=0)}E=26}return e$},N.prototype.convertTo=function(x){var m$=x.umod(this.m);return m$===x?m$.clone():m$},N.prototype.convertFrom=function(x){var m$=x.clone();return m$.red=null,m$},U.mont=function(x){return new t$(x)};function t$(x){N.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(t$,N),t$.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},t$.prototype.convertFrom=function(x){var m$=this.imod(x.mul(this.rinv));return m$.red=null,m$},t$.prototype.imul=function(x,m$){if(x.isZero()||m$.isZero())return x.words[0]=0,x.length=1,x;var B=x.imul(m$),a$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=B.isub(a$).iushrn(this.shift),e$=y;return y.cmp(this.m)>=0?e$=y.isub(this.m):y.cmpn(0)<0&&(e$=y.iadd(this.m)),e$._forceRed(this)},t$.prototype.mul=function(x,m$){if(x.isZero()||m$.isZero())return new U(0)._forceRed(this);var B=x.mul(m$),a$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=B.isub(a$).iushrn(this.shift),e$=y;return y.cmp(this.m)>=0?e$=y.isub(this.m):y.cmpn(0)<0&&(e$=y.iadd(this.m)),e$._forceRed(this)},t$.prototype.invm=function(x){var m$=this.imod(x._invmp(this.m).mul(this.r2));return m$._forceRed(this)}})(typeof W>"u"||W,H)}}),pY=GY({"node_modules/browserify-rsa/index.js"(H,W){var p$=J(),K=XY();function G(Y){var F=$(Y),O=F.toRed(p$.mont(Y.modulus)).redPow(new p$(Y.publicExponent)).fromRed();return{blinder:O,unblinder:F.invm(Y.modulus)}}function $(Y){var F=Y.modulus.byteLength(),O;do O=new p$(K(F));while(O.cmp(Y.modulus)>=0||!O.umod(Y.prime1)||!O.umod(Y.prime2));return O}function U(Y,F){var O=G(F),f$=F.modulus.byteLength(),z=new p$(Y).mul(O.blinder).umod(F.modulus),c$=z.toRed(p$.mont(F.prime1)),M=z.toRed(p$.mont(F.prime2)),h$=F.coefficient,S=F.prime1,d$=F.prime2,v=c$.redPow(F.exponent1).fromRed(),b$=M.redPow(F.exponent2).fromRed(),q=v.isub(b$).imul(h$).umod(S).imul(d$);return b$.iadd(q).imul(O.unblinder).umod(F.modulus).toArrayLike(lQ,"be",f$)}U.getr=$,W.exports=U}}),o0=GY({"node_modules/elliptic/package.json"(H,W){W.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),fY=GY({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),u0=GY({"node_modules/minimalistic-crypto-utils/lib/utils.js"(H){var W=H;function p$($,U){if(Array.isArray($))return $.slice();if(!$)return[];var Y=[];if(typeof $!="string"){for(var F=0;F<$.length;F++)Y[F]=$[F]|0;return Y}if(U==="hex"){$=$.replace(/[^a-z0-9]+/gi,""),$.length%2!==0&&($="0"+$);for(var F=0;F<$.length;F+=2)Y.push(parseInt($[F]+$[F+1],16))}else for(var F=0;F<$.length;F++){var O=$.charCodeAt(F),f$=O>>8,z=O&255;f$?Y.push(f$,z):Y.push(z)}return Y}W.toArray=p$;function K($){return $.length===1?"0"+$:$}W.zero2=K;function G($){for(var U="",Y=0;Y<$.length;Y++)U+=K($[Y].toString(16));return U}W.toHex=G,W.encode=function($,U){return U==="hex"?G($):$}}}),cY=GY({"node_modules/elliptic/lib/elliptic/utils.js"(H){var W=H,p$=fY(),K=l0(),G=u0();W.assert=K,W.toArray=G.toArray,W.zero2=G.zero2,W.toHex=G.toHex,W.encode=G.encode;function $(f$,z,c$){var M=new Array(Math.max(f$.bitLength(),c$)+1);M.fill(0);for(var h$=1<(h$>>1)-1?v=(h$>>1)-b$:v=b$,S.isubn(v)):v=0,M[d$]=v,S.iushrn(1)}return M}W.getNAF=$;function U(f$,z){var c$=[[],[]];f$=f$.clone(),z=z.clone();for(var M=0,h$=0,S;f$.cmpn(-M)>0||z.cmpn(-h$)>0;){var d$=f$.andln(3)+M&3,v=z.andln(3)+h$&3;d$===3&&(d$=-1),v===3&&(v=-1);var b$;(d$&1)===0?b$=0:(S=f$.andln(7)+M&7,(S===3||S===5)&&v===2?b$=-d$:b$=d$),c$[0].push(b$);var q;(v&1)===0?q=0:(S=z.andln(7)+h$&7,(S===3||S===5)&&d$===2?q=-v:q=v),c$[1].push(q),2*M===b$+1&&(M=1-M),2*h$===q+1&&(h$=1-h$),f$.iushrn(1),z.iushrn(1)}return c$}W.getJSF=U;function Y(f$,z,c$){var M="_"+z;f$.prototype[z]=function(){return this[M]!==void 0?this[M]:this[M]=c$.call(this)}}W.cachedProperty=Y;function F(f$){return typeof f$=="string"?W.toArray(f$,"hex"):f$}W.parseBytes=F;function O(f$){return new p$(f$,"hex","le")}W.intFromLE=O}}),n0=GY({"node_modules/elliptic/lib/elliptic/curve/base.js"(H,W){var p$=fY(),K=cY(),G=K.getNAF,$=K.getJSF,U=K.assert;function Y(O,f$){this.type=O,this.p=new p$(f$.p,16),this.red=f$.prime?p$.red(f$.prime):p$.mont(this.p),this.zero=new p$(0).toRed(this.red),this.one=new p$(1).toRed(this.red),this.two=new p$(2).toRed(this.red),this.n=f$.n&&new p$(f$.n,16),this.g=f$.g&&this.pointFromJSON(f$.g,f$.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 z=this.n&&this.p.div(this.n);!z||z.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}W.exports=Y,Y.prototype.point=function(){throw new Error("Not implemented")},Y.prototype.validate=function(){throw new Error("Not implemented")},Y.prototype._fixedNafMul=function(O,f$){U(O.precomputed);var z=O._getDoubles(),c$=G(f$,1,this._bitLength),M=(1<=S;v--)d$=(d$<<1)+c$[v];h$.push(d$)}for(var b$=this.jpoint(null,null,null),q=this.jpoint(null,null,null),l$=M;l$>0;l$--){for(S=0;S=0;d$--){for(var v=0;d$>=0&&h$[d$]===0;d$--)v++;if(d$>=0&&v++,S=S.dblp(v),d$<0)break;var b$=h$[d$];U(b$!==0),O.type==="affine"?b$>0?S=S.mixedAdd(M[b$-1>>1]):S=S.mixedAdd(M[-b$-1>>1].neg()):b$>0?S=S.add(M[b$-1>>1]):S=S.add(M[-b$-1>>1].neg())}return O.type==="affine"?S.toP():S},Y.prototype._wnafMulAdd=function(O,f$,z,c$,M){var h$=this._wnafT1,S=this._wnafT2,d$=this._wnafT3,v=0,b$,q,l$;for(b$=0;b$=1;b$-=2){var o$=b$-1,k=b$;if(h$[o$]!==1||h$[k]!==1){d$[o$]=G(z[o$],h$[o$],this._bitLength),d$[k]=G(z[k],h$[k],this._bitLength),v=Math.max(d$[o$].length,v),v=Math.max(d$[k].length,v);continue}var u$=[f$[o$],null,null,f$[k]];f$[o$].y.cmp(f$[k].y)===0?(u$[1]=f$[o$].add(f$[k]),u$[2]=f$[o$].toJ().mixedAdd(f$[k].neg())):f$[o$].y.cmp(f$[k].y.redNeg())===0?(u$[1]=f$[o$].toJ().mixedAdd(f$[k]),u$[2]=f$[o$].add(f$[k].neg())):(u$[1]=f$[o$].toJ().mixedAdd(f$[k]),u$[2]=f$[o$].toJ().mixedAdd(f$[k].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],n$=$(z[o$],z[k]);for(v=Math.max(n$[0].length,v),d$[o$]=new Array(v),d$[k]=new Array(v),q=0;q=0;b$--){for(var x=0;b$>=0;){var m$=!0;for(q=0;q=0&&x++,N=N.dblp(x),b$<0)break;for(q=0;q0?l$=S[q][B-1>>1]:B<0&&(l$=S[q][-B-1>>1].neg()),l$.type==="affine"?N=N.mixedAdd(l$):N=N.add(l$))}}for(b$=0;b$=Math.ceil((O.bitLength()+1)/f$.step):!1},F.prototype._getDoubles=function(O,f$){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var z=[this],c$=this,M=0;M=0&&(o$=b$,k=q),l$.negative&&(l$=l$.neg(),j=j.neg()),o$.negative&&(o$=o$.neg(),k=k.neg()),[{a:l$,b:j},{a:o$,b:k}]},Y.prototype._endoSplit=function(f$){var z=this.endo.basis,c$=z[0],M=z[1],h$=M.b.mul(f$).divRound(this.n),S=c$.b.neg().mul(f$).divRound(this.n),d$=h$.mul(c$.a),v=S.mul(M.a),b$=h$.mul(c$.b),q=S.mul(M.b),l$=f$.sub(d$).sub(v),j=b$.add(q).neg();return{k1:l$,k2:j}},Y.prototype.pointFromX=function(f$,z){f$=new K(f$,16),f$.red||(f$=f$.toRed(this.red));var c$=f$.redSqr().redMul(f$).redIAdd(f$.redMul(this.a)).redIAdd(this.b),M=c$.redSqrt();if(M.redSqr().redSub(c$).cmp(this.zero)!==0)throw new Error("invalid point");var h$=M.fromRed().isOdd();return(z&&!h$||!z&&h$)&&(M=M.redNeg()),this.point(f$,M)},Y.prototype.validate=function(f$){if(f$.inf)return!0;var{x:z,y:c$}=f$,M=this.a.redMul(z),h$=z.redSqr().redMul(z).redIAdd(M).redIAdd(this.b);return c$.redSqr().redISub(h$).cmpn(0)===0},Y.prototype._endoWnafMulAdd=function(f$,z,c$){for(var M=this._endoWnafT1,h$=this._endoWnafT2,S=0;S":""},F.prototype.isInfinity=function(){return this.inf},F.prototype.add=function(f$){if(this.inf)return f$;if(f$.inf)return this;if(this.eq(f$))return this.dbl();if(this.neg().eq(f$))return this.curve.point(null,null);if(this.x.cmp(f$.x)===0)return this.curve.point(null,null);var z=this.y.redSub(f$.y);z.cmpn(0)!==0&&(z=z.redMul(this.x.redSub(f$.x).redInvm()));var c$=z.redSqr().redISub(this.x).redISub(f$.x),M=z.redMul(this.x.redSub(c$)).redISub(this.y);return this.curve.point(c$,M)},F.prototype.dbl=function(){if(this.inf)return this;var f$=this.y.redAdd(this.y);if(f$.cmpn(0)===0)return this.curve.point(null,null);var z=this.curve.a,c$=this.x.redSqr(),M=f$.redInvm(),h$=c$.redAdd(c$).redIAdd(c$).redIAdd(z).redMul(M),S=h$.redSqr().redISub(this.x.redAdd(this.x)),d$=h$.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,d$)},F.prototype.getX=function(){return this.x.fromRed()},F.prototype.getY=function(){return this.y.fromRed()},F.prototype.mul=function(f$){return f$=new K(f$,16),this.isInfinity()?this:this._hasDoubles(f$)?this.curve._fixedNafMul(this,f$):this.curve.endo?this.curve._endoWnafMulAdd([this],[f$]):this.curve._wnafMul(this,f$)},F.prototype.mulAdd=function(f$,z,c$){var M=[this,z],h$=[f$,c$];return this.curve.endo?this.curve._endoWnafMulAdd(M,h$):this.curve._wnafMulAdd(1,M,h$,2)},F.prototype.jmulAdd=function(f$,z,c$){var M=[this,z],h$=[f$,c$];return this.curve.endo?this.curve._endoWnafMulAdd(M,h$,!0):this.curve._wnafMulAdd(1,M,h$,2,!0)},F.prototype.eq=function(f$){return this===f$||this.inf===f$.inf&&(this.inf||this.x.cmp(f$.x)===0&&this.y.cmp(f$.y)===0)},F.prototype.neg=function(f$){if(this.inf)return this;var z=this.curve.point(this.x,this.y.redNeg());if(f$&&this.precomputed){var c$=this.precomputed,M=function(h$){return h$.neg()};z.precomputed={naf:c$.naf&&{wnd:c$.naf.wnd,points:c$.naf.points.map(M)},doubles:c$.doubles&&{step:c$.doubles.step,points:c$.doubles.points.map(M)}}}return z},F.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var f$=this.curve.jpoint(this.x,this.y,this.curve.one);return f$};function O(f$,z,c$,M){$.BasePoint.call(this,f$,"jacobian"),z===null&&c$===null&&M===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new K(0)):(this.x=new K(z,16),this.y=new K(c$,16),this.z=new K(M,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}G(O,$.BasePoint),Y.prototype.jpoint=function(f$,z,c$){return new O(this,f$,z,c$)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f$=this.z.redInvm(),z=f$.redSqr(),c$=this.x.redMul(z),M=this.y.redMul(z).redMul(f$);return this.curve.point(c$,M)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(f$){if(this.isInfinity())return f$;if(f$.isInfinity())return this;var z=f$.z.redSqr(),c$=this.z.redSqr(),M=this.x.redMul(z),h$=f$.x.redMul(c$),S=this.y.redMul(z.redMul(f$.z)),d$=f$.y.redMul(c$.redMul(this.z)),v=M.redSub(h$),b$=S.redSub(d$);if(v.cmpn(0)===0)return b$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var q=v.redSqr(),l$=q.redMul(v),j=M.redMul(q),o$=b$.redSqr().redIAdd(l$).redISub(j).redISub(j),k=b$.redMul(j.redISub(o$)).redISub(S.redMul(l$)),u$=this.z.redMul(f$.z).redMul(v);return this.curve.jpoint(o$,k,u$)},O.prototype.mixedAdd=function(f$){if(this.isInfinity())return f$.toJ();if(f$.isInfinity())return this;var z=this.z.redSqr(),c$=this.x,M=f$.x.redMul(z),h$=this.y,S=f$.y.redMul(z).redMul(this.z),d$=c$.redSub(M),v=h$.redSub(S);if(d$.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b$=d$.redSqr(),q=b$.redMul(d$),l$=c$.redMul(b$),j=v.redSqr().redIAdd(q).redISub(l$).redISub(l$),o$=v.redMul(l$.redISub(j)).redISub(h$.redMul(q)),k=this.z.redMul(d$);return this.curve.jpoint(j,o$,k)},O.prototype.dblp=function(f$){if(f$===0)return this;if(this.isInfinity())return this;if(!f$)return this.dbl();var z;if(this.curve.zeroA||this.curve.threeA){var c$=this;for(z=0;z=0)return!1;if(c$.redIAdd(h$),this.x.cmp(c$)===0)return!0}},O.prototype.inspect=function(){return this.isInfinity()?"":""},O.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),s0=GY({"node_modules/elliptic/lib/elliptic/curve/mont.js"(H,W){var p$=fY(),K=C0(),G=n0(),$=cY();function U(F){G.call(this,"mont",F),this.a=new p$(F.a,16).toRed(this.red),this.b=new p$(F.b,16).toRed(this.red),this.i4=new p$(4).toRed(this.red).redInvm(),this.two=new p$(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}K(U,G),W.exports=U,U.prototype.validate=function(F){var O=F.normalize().x,f$=O.redSqr(),z=f$.redMul(O).redAdd(f$.redMul(this.a)).redAdd(O),c$=z.redSqrt();return c$.redSqr().cmp(z)===0};function Y(F,O,f$){G.BasePoint.call(this,F,"projective"),O===null&&f$===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new p$(O,16),this.z=new p$(f$,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}K(Y,G.BasePoint),U.prototype.decodePoint=function(F,O){return this.point($.toArray(F,O),1)},U.prototype.point=function(F,O){return new Y(this,F,O)},U.prototype.pointFromJSON=function(F){return Y.fromJSON(this,F)},Y.prototype.precompute=function(){},Y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Y.fromJSON=function(F,O){return new Y(F,O[0],O[1]||F.one)},Y.prototype.inspect=function(){return this.isInfinity()?"":""},Y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Y.prototype.dbl=function(){var F=this.x.redAdd(this.z),O=F.redSqr(),f$=this.x.redSub(this.z),z=f$.redSqr(),c$=O.redSub(z),M=O.redMul(z),h$=c$.redMul(z.redAdd(this.curve.a24.redMul(c$)));return this.curve.point(M,h$)},Y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.diffAdd=function(F,O){var f$=this.x.redAdd(this.z),z=this.x.redSub(this.z),c$=F.x.redAdd(F.z),M=F.x.redSub(F.z),h$=M.redMul(f$),S=c$.redMul(z),d$=O.z.redMul(h$.redAdd(S).redSqr()),v=O.x.redMul(h$.redISub(S).redSqr());return this.curve.point(d$,v)},Y.prototype.mul=function(F){for(var O=F.clone(),f$=this,z=this.curve.point(null,null),c$=this,M=[];O.cmpn(0)!==0;O.iushrn(1))M.push(O.andln(1));for(var h$=M.length-1;h$>=0;h$--)M[h$]===0?(f$=f$.diffAdd(z,c$),z=z.dbl()):(z=f$.diffAdd(z,c$),f$=f$.dbl());return z},Y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.eq=function(F){return this.getX().cmp(F.getX())===0},Y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),dY=GY({"node_modules/elliptic/lib/elliptic/curve/edwards.js"(H,W){var p$=cY(),K=fY(),G=C0(),$=n0(),U=p$.assert;function Y(O){this.twisted=(O.a|0)!==1,this.mOneA=this.twisted&&(O.a|0)===-1,this.extended=this.mOneA,$.call(this,"edwards",O),this.a=new K(O.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new K(O.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new K(O.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(O.c|0)===1}G(Y,$),W.exports=Y,Y.prototype._mulA=function(O){return this.mOneA?O.redNeg():this.a.redMul(O)},Y.prototype._mulC=function(O){return this.oneC?O:this.c.redMul(O)},Y.prototype.jpoint=function(O,f$,z,c$){return this.point(O,f$,z,c$)},Y.prototype.pointFromX=function(O,f$){O=new K(O,16),O.red||(O=O.toRed(this.red));var z=O.redSqr(),c$=this.c2.redSub(this.a.redMul(z)),M=this.one.redSub(this.c2.redMul(this.d).redMul(z)),h$=c$.redMul(M.redInvm()),S=h$.redSqrt();if(S.redSqr().redSub(h$).cmp(this.zero)!==0)throw new Error("invalid point");var d$=S.fromRed().isOdd();return(f$&&!d$||!f$&&d$)&&(S=S.redNeg()),this.point(O,S)},Y.prototype.pointFromY=function(O,f$){O=new K(O,16),O.red||(O=O.toRed(this.red));var z=O.redSqr(),c$=z.redSub(this.c2),M=z.redMul(this.d).redMul(this.c2).redSub(this.a),h$=c$.redMul(M.redInvm());if(h$.cmp(this.zero)===0){if(f$)throw new Error("invalid point");return this.point(this.zero,O)}var S=h$.redSqrt();if(S.redSqr().redSub(h$).cmp(this.zero)!==0)throw new Error("invalid point");return S.fromRed().isOdd()!==f$&&(S=S.redNeg()),this.point(S,O)},Y.prototype.validate=function(O){if(O.isInfinity())return!0;O.normalize();var f$=O.x.redSqr(),z=O.y.redSqr(),c$=f$.redMul(this.a).redAdd(z),M=this.c2.redMul(this.one.redAdd(this.d.redMul(f$).redMul(z)));return c$.cmp(M)===0};function F(O,f$,z,c$,M){$.BasePoint.call(this,O,"projective"),f$===null&&z===null&&c$===null?(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 K(f$,16),this.y=new K(z,16),this.z=c$?new K(c$,16):this.curve.one,this.t=M&&new K(M,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()))))}G(F,$.BasePoint),Y.prototype.pointFromJSON=function(O){return F.fromJSON(this,O)},Y.prototype.point=function(O,f$,z,c$){return new F(this,O,f$,z,c$)},F.fromJSON=function(O,f$){return new F(O,f$[0],f$[1],f$[2])},F.prototype.inspect=function(){return this.isInfinity()?"":""},F.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},F.prototype._extDbl=function(){var O=this.x.redSqr(),f$=this.y.redSqr(),z=this.z.redSqr();z=z.redIAdd(z);var c$=this.curve._mulA(O),M=this.x.redAdd(this.y).redSqr().redISub(O).redISub(f$),h$=c$.redAdd(f$),S=h$.redSub(z),d$=c$.redSub(f$),v=M.redMul(S),b$=h$.redMul(d$),q=M.redMul(d$),l$=S.redMul(h$);return this.curve.point(v,b$,l$,q)},F.prototype._projDbl=function(){var O=this.x.redAdd(this.y).redSqr(),f$=this.x.redSqr(),z=this.y.redSqr(),c$,M,h$,S,d$,v;if(this.curve.twisted){S=this.curve._mulA(f$);var b$=S.redAdd(z);this.zOne?(c$=O.redSub(f$).redSub(z).redMul(b$.redSub(this.curve.two)),M=b$.redMul(S.redSub(z)),h$=b$.redSqr().redSub(b$).redSub(b$)):(d$=this.z.redSqr(),v=b$.redSub(d$).redISub(d$),c$=O.redSub(f$).redISub(z).redMul(v),M=b$.redMul(S.redSub(z)),h$=b$.redMul(v))}else S=f$.redAdd(z),d$=this.curve._mulC(this.z).redSqr(),v=S.redSub(d$).redSub(d$),c$=this.curve._mulC(O.redISub(S)).redMul(v),M=this.curve._mulC(S).redMul(f$.redISub(z)),h$=S.redMul(v);return this.curve.point(c$,M,h$)},F.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},F.prototype._extAdd=function(O){var f$=this.y.redSub(this.x).redMul(O.y.redSub(O.x)),z=this.y.redAdd(this.x).redMul(O.y.redAdd(O.x)),c$=this.t.redMul(this.curve.dd).redMul(O.t),M=this.z.redMul(O.z.redAdd(O.z)),h$=z.redSub(f$),S=M.redSub(c$),d$=M.redAdd(c$),v=z.redAdd(f$),b$=h$.redMul(S),q=d$.redMul(v),l$=h$.redMul(v),j=S.redMul(d$);return this.curve.point(b$,q,j,l$)},F.prototype._projAdd=function(O){var f$=this.z.redMul(O.z),z=f$.redSqr(),c$=this.x.redMul(O.x),M=this.y.redMul(O.y),h$=this.curve.d.redMul(c$).redMul(M),S=z.redSub(h$),d$=z.redAdd(h$),v=this.x.redAdd(this.y).redMul(O.x.redAdd(O.y)).redISub(c$).redISub(M),b$=f$.redMul(S).redMul(v),q,l$;return this.curve.twisted?(q=f$.redMul(d$).redMul(M.redSub(this.curve._mulA(c$))),l$=S.redMul(d$)):(q=f$.redMul(d$).redMul(M.redSub(c$)),l$=this.curve._mulC(S).redMul(d$)),this.curve.point(b$,q,l$)},F.prototype.add=function(O){return this.isInfinity()?O:O.isInfinity()?this:this.curve.extended?this._extAdd(O):this._projAdd(O)},F.prototype.mul=function(O){return this._hasDoubles(O)?this.curve._fixedNafMul(this,O):this.curve._wnafMul(this,O)},F.prototype.mulAdd=function(O,f$,z){return this.curve._wnafMulAdd(1,[this,f$],[O,z],2,!1)},F.prototype.jmulAdd=function(O,f$,z){return this.curve._wnafMulAdd(1,[this,f$],[O,z],2,!0)},F.prototype.normalize=function(){if(this.zOne)return this;var O=this.z.redInvm();return this.x=this.x.redMul(O),this.y=this.y.redMul(O),this.t&&(this.t=this.t.redMul(O)),this.z=this.curve.one,this.zOne=!0,this},F.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},F.prototype.getX=function(){return this.normalize(),this.x.fromRed()},F.prototype.getY=function(){return this.normalize(),this.y.fromRed()},F.prototype.eq=function(O){return this===O||this.getX().cmp(O.getX())===0&&this.getY().cmp(O.getY())===0},F.prototype.eqXToP=function(O){var f$=O.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f$)===0)return!0;for(var z=O.clone(),c$=this.curve.redN.redMul(this.z);;){if(z.iadd(this.curve.n),z.cmp(this.curve.p)>=0)return!1;if(f$.redIAdd(c$),this.x.cmp(f$)===0)return!0}},F.prototype.toP=F.prototype.normalize,F.prototype.mixedAdd=F.prototype.add}}),t0=GY({"node_modules/elliptic/lib/elliptic/curve/index.js"(H){var W=H;W.base=n0(),W.short=hY(),W.mont=s0(),W.edwards=dY()}}),bY=GY({"node_modules/hash.js/lib/hash/utils.js"(H){var W=l0(),p$=C0();H.inherits=p$;function K(N,t$){return(N.charCodeAt(t$)&64512)!==55296||t$<0||t$+1>=N.length?!1:(N.charCodeAt(t$+1)&64512)===56320}function G(N,t$){if(Array.isArray(N))return N.slice();if(!N)return[];var x=[];if(typeof N=="string")if(t$){if(t$==="hex")for(N=N.replace(/[^a-z0-9]+/gi,""),N.length%2!==0&&(N="0"+N),B=0;B>6|192,x[m$++]=a$&63|128):K(N,B)?(a$=65536+((a$&1023)<<10)+(N.charCodeAt(++B)&1023),x[m$++]=a$>>18|240,x[m$++]=a$>>12&63|128,x[m$++]=a$>>6&63|128,x[m$++]=a$&63|128):(x[m$++]=a$>>12|224,x[m$++]=a$>>6&63|128,x[m$++]=a$&63|128)}else for(B=0;B>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24;return t$>>>0}H.htonl=U;function Y(N,t$){for(var x="",m$=0;m$>>0}return a$}H.join32=f$;function z(N,t$){for(var x=new Array(N.length*4),m$=0,B=0;m$>>24,x[B+1]=a$>>>16&255,x[B+2]=a$>>>8&255,x[B+3]=a$&255):(x[B+3]=a$>>>24,x[B+2]=a$>>>16&255,x[B+1]=a$>>>8&255,x[B]=a$&255)}return x}H.split32=z;function c$(N,t$){return N>>>t$|N<<32-t$}H.rotr32=c$;function M(N,t$){return N<>>32-t$}H.rotl32=M;function h$(N,t$){return N+t$>>>0}H.sum32=h$;function S(N,t$,x){return N+t$+x>>>0}H.sum32_3=S;function d$(N,t$,x,m$){return N+t$+x+m$>>>0}H.sum32_4=d$;function v(N,t$,x,m$,B){return N+t$+x+m$+B>>>0}H.sum32_5=v;function b$(N,t$,x,m$){var B=N[t$],a$=N[t$+1],y=m$+a$>>>0,e$=(y>>0,N[t$+1]=y}H.sum64=b$;function q(N,t$,x,m$){var B=t$+m$>>>0,a$=(B>>0}H.sum64_hi=q;function l$(N,t$,x,m$){var B=t$+m$;return B>>>0}H.sum64_lo=l$;function j(N,t$,x,m$,B,a$,y,e$){var w=0,r$=t$;r$=r$+m$>>>0,w+=r$>>0,w+=r$>>0,w+=r$>>0}H.sum64_4_hi=j;function o$(N,t$,x,m$,B,a$,y,e$){var w=t$+m$+a$+e$;return w>>>0}H.sum64_4_lo=o$;function k(N,t$,x,m$,B,a$,y,e$,w,r$){var E=0,i$=t$;i$=i$+m$>>>0,E+=i$>>0,E+=i$>>0,E+=i$>>0,E+=i$>>0}H.sum64_5_hi=k;function u$(N,t$,x,m$,B,a$,y,e$,w,r$){var E=t$+m$+a$+e$+r$;return E>>>0}H.sum64_5_lo=u$;function g(N,t$,x){var m$=t$<<32-x|N>>>x;return m$>>>0}H.rotr64_hi=g;function n$(N,t$,x){var m$=N<<32-x|t$>>>x;return m$>>>0}H.rotr64_lo=n$;function _(N,t$,x){return N>>>x}H.shr64_hi=_;function s$(N,t$,x){var m$=N<<32-x|t$>>>x;return m$>>>0}H.shr64_lo=s$}}),m0=GY({"node_modules/hash.js/lib/hash/common.js"(H){var W=bY(),p$=l0();function K(){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}H.BlockHash=K,K.prototype.update=function(G,$){if(G=W.toArray(G,$),this.pending?this.pending=this.pending.concat(G):this.pending=G,this.pendingTotal+=G.length,this.pending.length>=this._delta8){G=this.pending;var U=G.length%this._delta8;this.pending=G.slice(G.length-U,G.length),this.pending.length===0&&(this.pending=null),G=W.join32(G,0,G.length-U,this.endian);for(var Y=0;Y>>24&255,Y[F++]=G>>>16&255,Y[F++]=G>>>8&255,Y[F++]=G&255}else for(Y[F++]=G&255,Y[F++]=G>>>8&255,Y[F++]=G>>>16&255,Y[F++]=G>>>24&255,Y[F++]=0,Y[F++]=0,Y[F++]=0,Y[F++]=0,O=8;O>>3}H.g0_256=O;function f$(z){return p$(z,17)^p$(z,19)^z>>>10}H.g1_256=f$}}),a0=GY({"node_modules/hash.js/lib/hash/sha/1.js"(H,W){var p$=bY(),K=m0(),G=lY(),$=p$.rotl32,U=p$.sum32,Y=p$.sum32_5,F=G.ft_1,O=K.BlockHash,f$=[1518500249,1859775393,2400959708,3395469782];function z(){if(!(this instanceof z))return new z;O.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}p$.inherits(z,O),W.exports=z,z.blockSize=512,z.outSize=160,z.hmacStrength=80,z.padLength=64,z.prototype._update=function(c$,M){for(var h$=this.W,S=0;S<16;S++)h$[S]=c$[M+S];for(;Sthis.blockSize&&($=new this.Hash().update($).digest()),K($.length<=this.blockSize);for(var U=$.length;U=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Y,F,O)}W.exports=$,$.prototype._init=function(U,Y,F){var O=U.concat(Y).concat(F);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f$=0;f$=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(F||[])),this._reseed=1},$.prototype.generate=function(U,Y,F,O){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof Y!="string"&&(O=F,F=Y,Y=null),F&&(F=K.toArray(F,O||"hex"),this._update(F));for(var f$=[];f$.length"}}}),aY=GY({"node_modules/elliptic/lib/elliptic/ec/signature.js"(H,W){var p$=fY(),K=cY(),G=K.assert;function $(f$,z){if(f$ instanceof $)return f$;this._importDER(f$,z)||(G(f$.r&&f$.s,"Signature without r or s"),this.r=new p$(f$.r,16),this.s=new p$(f$.s,16),f$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f$.recoveryParam)}W.exports=$;function U(){this.place=0}function Y(f$,z){var c$=f$[z.place++];if(!(c$&128))return c$;var M=c$&15;if(M===0||M>4)return!1;for(var h$=0,S=0,d$=z.place;S>>=0;return h$<=127?!1:(z.place=d$,h$)}function F(f$){for(var z=0,c$=f$.length-1;!f$[z]&&!(f$[z+1]&128)&&z>>3);for(f$.push(c$|128);--c$;)f$.push(z>>>(c$<<3)&255);f$.push(z)}$.prototype.toDER=function(f$){var z=this.r.toArray(),c$=this.s.toArray();for(z[0]&128&&(z=[0].concat(z)),c$[0]&128&&(c$=[0].concat(c$)),z=F(z),c$=F(c$);!c$[0]&&!(c$[1]&128);)c$=c$.slice(1);var M=[2];O(M,z.length),M=M.concat(z),M.push(2),O(M,c$.length);var h$=M.concat(c$),S=[48];return O(S,h$.length),S=S.concat(h$),K.encode(S,f$)}}}),C=GY({"node_modules/elliptic/lib/elliptic/ec/index.js"(H,W){var p$=fY(),K=mY(),G=cY(),$=Q$(),U=I(),Y=G.assert,F=Y$(),O=aY();function f$(z){if(!(this instanceof f$))return new f$(z);typeof z=="string"&&(Y(Object.prototype.hasOwnProperty.call($,z),"Unknown curve "+z),z=$[z]),z instanceof $.PresetCurve&&(z={curve:z}),this.curve=z.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=z.curve.g,this.g.precompute(z.curve.n.bitLength()+1),this.hash=z.hash||z.curve.hash}W.exports=f$,f$.prototype.keyPair=function(z){return new F(this,z)},f$.prototype.keyFromPrivate=function(z,c$){return F.fromPrivate(this,z,c$)},f$.prototype.keyFromPublic=function(z,c$){return F.fromPublic(this,z,c$)},f$.prototype.genKeyPair=function(z){z||(z={});for(var c$=new K({hash:this.hash,pers:z.pers,persEnc:z.persEnc||"utf8",entropy:z.entropy||U(this.hash.hmacStrength),entropyEnc:z.entropy&&z.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),h$=this.n.sub(new p$(2));;){var S=new p$(c$.generate(M));if(!(S.cmp(h$)>0))return S.iaddn(1),this.keyFromPrivate(S)}},f$.prototype._truncateToN=function(z,c$){var M=z.byteLength()*8-this.n.bitLength();return M>0&&(z=z.ushrn(M)),!c$&&z.cmp(this.n)>=0?z.sub(this.n):z},f$.prototype.sign=function(z,c$,M,h$){typeof M=="object"&&(h$=M,M=null),h$||(h$={}),c$=this.keyFromPrivate(c$,M),z=this._truncateToN(new p$(z,16));for(var S=this.n.byteLength(),d$=c$.getPrivate().toArray("be",S),v=z.toArray("be",S),b$=new K({hash:this.hash,entropy:d$,nonce:v,pers:h$.pers,persEnc:h$.persEnc||"utf8"}),q=this.n.sub(new p$(1)),l$=0;;l$++){var j=h$.k?h$.k(l$):new p$(b$.generate(this.n.byteLength()));if(j=this._truncateToN(j,!0),!(j.cmpn(1)<=0||j.cmp(q)>=0)){var o$=this.g.mul(j);if(!o$.isInfinity()){var k=o$.getX(),u$=k.umod(this.n);if(u$.cmpn(0)!==0){var g=j.invm(this.n).mul(u$.mul(c$.getPrivate()).iadd(z));if(g=g.umod(this.n),g.cmpn(0)!==0){var n$=(o$.getY().isOdd()?1:0)|(k.cmp(u$)!==0?2:0);return h$.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),n$^=1),new O({r:u$,s:g,recoveryParam:n$})}}}}}},f$.prototype.verify=function(z,c$,M,h$){z=this._truncateToN(new p$(z,16)),M=this.keyFromPublic(M,h$),c$=new O(c$,"hex");var{r:S,s:d$}=c$;if(S.cmpn(1)<0||S.cmp(this.n)>=0||d$.cmpn(1)<0||d$.cmp(this.n)>=0)return!1;var v=d$.invm(this.n),b$=v.mul(z).umod(this.n),q=v.mul(S).umod(this.n),l$;return this.curve._maxwellTrick?(l$=this.g.jmulAdd(b$,M.getPublic(),q),l$.isInfinity()?!1:l$.eqXToP(S)):(l$=this.g.mulAdd(b$,M.getPublic(),q),l$.isInfinity()?!1:l$.getX().umod(this.n).cmp(S)===0)},f$.prototype.recoverPubKey=function(z,c$,M,h$){Y((3&M)===M,"The recovery param is more than two bits"),c$=new O(c$,h$);var S=this.n,d$=new p$(z),v=c$.r,b$=c$.s,q=M&1,l$=M>>1;if(v.cmp(this.curve.p.umod(this.curve.n))>=0&&l$)throw new Error("Unable to find sencond key candinate");l$?v=this.curve.pointFromX(v.add(this.curve.n),q):v=this.curve.pointFromX(v,q);var j=c$.r.invm(S),o$=S.sub(d$).mul(j).umod(S),k=b$.mul(j).umod(S);return this.g.mulAdd(o$,v,k)},f$.prototype.getKeyRecoveryParam=function(z,c$,M,h$){if(c$=new O(c$,h$),c$.recoveryParam!==null)return c$.recoveryParam;for(var S=0;S<4;S++){var d$;try{d$=this.recoverPubKey(z,c$,S)}catch{continue}if(d$.eq(M))return S}throw new Error("Unable to find valid recovery factor")}}}),eY=GY({"node_modules/elliptic/lib/elliptic/eddsa/key.js"(H,W){var p$=cY(),K=p$.assert,G=p$.parseBytes,$=p$.cachedProperty;function U(Y,F){this.eddsa=Y,this._secret=G(F.secret),Y.isPoint(F.pub)?this._pub=F.pub:this._pubBytes=G(F.pub)}U.fromPublic=function(Y,F){return F instanceof U?F:new U(Y,{pub:F})},U.fromSecret=function(Y,F){return F instanceof U?F:new U(Y,{secret:F})},U.prototype.secret=function(){return this._secret},$(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),$(U,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),$(U,"privBytes",function(){var Y=this.eddsa,F=this.hash(),O=Y.encodingLength-1,f$=F.slice(0,Y.encodingLength);return f$[0]&=248,f$[O]&=127,f$[O]|=64,f$}),$(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),$(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),$(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(Y){return K(this._secret,"KeyPair can only verify"),this.eddsa.sign(Y,this)},U.prototype.verify=function(Y,F){return this.eddsa.verify(Y,F,this)},U.prototype.getSecret=function(Y){return K(this._secret,"KeyPair is public only"),p$.encode(this.secret(),Y)},U.prototype.getPublic=function(Y){return p$.encode(this.pubBytes(),Y)},W.exports=U}}),rY=GY({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"(H,W){var p$=fY(),K=cY(),G=K.assert,$=K.cachedProperty,U=K.parseBytes;function Y(F,O){this.eddsa=F,typeof O!="object"&&(O=U(O)),Array.isArray(O)&&(O={R:O.slice(0,F.encodingLength),S:O.slice(F.encodingLength)}),G(O.R&&O.S,"Signature without R or S"),F.isPoint(O.R)&&(this._R=O.R),O.S instanceof p$&&(this._S=O.S),this._Rencoded=Array.isArray(O.R)?O.R:O.Rencoded,this._Sencoded=Array.isArray(O.S)?O.S:O.Sencoded}$(Y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),$(Y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),$(Y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),$(Y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Y.prototype.toHex=function(){return K.encode(this.toBytes(),"hex").toUpperCase()},W.exports=Y}}),iY=GY({"node_modules/elliptic/lib/elliptic/eddsa/index.js"(H,W){var p$=$$(),K=Q$(),G=cY(),$=G.assert,U=G.parseBytes,Y=eY(),F=rY();function O(f$){if($(f$==="ed25519","only tested with ed25519 so far"),!(this instanceof O))return new O(f$);f$=K[f$].curve,this.curve=f$,this.g=f$.g,this.g.precompute(f$.n.bitLength()+1),this.pointClass=f$.point().constructor,this.encodingLength=Math.ceil(f$.n.bitLength()/8),this.hash=p$.sha512}W.exports=O,O.prototype.sign=function(f$,z){f$=U(f$);var c$=this.keyFromSecret(z),M=this.hashInt(c$.messagePrefix(),f$),h$=this.g.mul(M),S=this.encodePoint(h$),d$=this.hashInt(S,c$.pubBytes(),f$).mul(c$.priv()),v=M.add(d$).umod(this.curve.n);return this.makeSignature({R:h$,S:v,Rencoded:S})},O.prototype.verify=function(f$,z,c$){f$=U(f$),z=this.makeSignature(z);var M=this.keyFromPublic(c$),h$=this.hashInt(z.Rencoded(),M.pubBytes(),f$),S=this.g.mul(z.S()),d$=z.R().add(M.pub().mul(h$));return d$.eq(S)},O.prototype.hashInt=function(){for(var f$=this.hash(),z=0;z0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),QZ=GY({"node_modules/safer-buffer/safer.js"(H,W){var p$=QY,K=lQ,G={},$;for($ in p$)!p$.hasOwnProperty($)||$==="SlowBuffer"||$==="Buffer"||(G[$]=p$[$]);var U=G.Buffer={};for($ in K)!K.hasOwnProperty($)||$==="allocUnsafe"||$==="allocUnsafeSlow"||(U[$]=K[$]);if(G.Buffer.prototype=K.prototype,(!U.from||U.from===Uint8Array.from)&&(U.from=function(Y,F,O){if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof Y);if(Y&&typeof Y.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);return K(Y,F,O)}),U.alloc||(U.alloc=function(Y,F,O){if(typeof Y!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof Y);if(Y<0||Y>=2*(1<<30))throw new RangeError('The value "'+Y+'" is invalid for option "size"');var f$=K(Y);return!F||F.length===0?f$.fill(0):typeof O=="string"?f$.fill(F,O):f$.fill(F),f$}),!G.kStringMaxLength)try{G.kStringMaxLength=YY}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),W.exports=G}}),YZ=GY({"node_modules/asn1.js/lib/asn1/base/reporter.js"(H){var W=C0();function p$(G){this._reporterState={obj:null,path:[],options:G||{},errors:[]}}H.Reporter=p$,p$.prototype.isError=function(G){return G instanceof K},p$.prototype.save=function(){let G=this._reporterState;return{obj:G.obj,pathLen:G.path.length}},p$.prototype.restore=function(G){let $=this._reporterState;$.obj=G.obj,$.path=$.path.slice(0,G.pathLen)},p$.prototype.enterKey=function(G){return this._reporterState.path.push(G)},p$.prototype.exitKey=function(G){let $=this._reporterState;$.path=$.path.slice(0,G-1)},p$.prototype.leaveKey=function(G,$,U){let Y=this._reporterState;this.exitKey(G),Y.obj!==null&&(Y.obj[$]=U)},p$.prototype.path=function(){return this._reporterState.path.join("/")},p$.prototype.enterObject=function(){let G=this._reporterState,$=G.obj;return G.obj={},$},p$.prototype.leaveObject=function(G){let $=this._reporterState,U=$.obj;return $.obj=G,U},p$.prototype.error=function(G){let $,U=this._reporterState,Y=G instanceof K;if(Y?$=G:$=new K(U.path.map(function(F){return"["+JSON.stringify(F)+"]"}).join(""),G.message||G,G.stack),!U.options.partial)throw $;return Y||U.errors.push($),$},p$.prototype.wrapResult=function(G){let $=this._reporterState;return $.options.partial?{result:this.isError(G)?null:G,errors:$.errors}:G};function K(G,$){this.path=G,this.rethrow($)}W(K,Error),K.prototype.rethrow=function(G){if(this.message=G+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,K),!this.stack)try{throw new Error(this.message)}catch($){this.stack=$.stack}return this}}}),sQ=GY({"node_modules/asn1.js/lib/asn1/base/buffer.js"(H){var W=C0(),p$=YZ().Reporter,K=QZ().Buffer;function G(U,Y){if(p$.call(this,Y),!K.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}W(G,p$),H.DecoderBuffer=G,G.isDecoderBuffer=function(U){return U instanceof G?!0:typeof U=="object"&&K.isBuffer(U.base)&&U.constructor.name==="DecoderBuffer"&&typeof U.offset=="number"&&typeof U.length=="number"&&typeof U.save=="function"&&typeof U.restore=="function"&&typeof U.isEmpty=="function"&&typeof U.readUInt8=="function"&&typeof U.skip=="function"&&typeof U.raw=="function"},G.prototype.save=function(){return{offset:this.offset,reporter:p$.prototype.save.call(this)}},G.prototype.restore=function(U){let Y=new G(this.base);return Y.offset=U.offset,Y.length=this.offset,this.offset=U.offset,p$.prototype.restore.call(this,U.reporter),Y},G.prototype.isEmpty=function(){return this.offset===this.length},G.prototype.readUInt8=function(U){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(U||"DecoderBuffer overrun")},G.prototype.skip=function(U,Y){if(!(this.offset+U<=this.length))return this.error(Y||"DecoderBuffer overrun");let F=new G(this.base);return F._reporterState=this._reporterState,F.offset=this.offset,F.length=this.offset+U,this.offset+=U,F},G.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function $(U,Y){if(Array.isArray(U))this.length=0,this.value=U.map(function(F){return $.isEncoderBuffer(F)||(F=new $(F,Y)),this.length+=F.length,F},this);else if(typeof U=="number"){if(!(0<=U&&U<=255))return Y.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U=="string")this.value=U,this.length=K.byteLength(U);else if(K.isBuffer(U))this.value=U,this.length=U.length;else return Y.error("Unsupported type: "+typeof U)}H.EncoderBuffer=$,$.isEncoderBuffer=function(U){return U instanceof $?!0:typeof U=="object"&&U.constructor.name==="EncoderBuffer"&&typeof U.length=="number"&&typeof U.join=="function"},$.prototype.join=function(U,Y){return U||(U=K.alloc(this.length)),Y||(Y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(F){F.join(U,Y),Y+=F.length}):(typeof this.value=="number"?U[Y]=this.value:typeof this.value=="string"?U.write(this.value,Y):K.isBuffer(this.value)&&this.value.copy(U,Y),Y+=this.length)),U}}}),G$=GY({"node_modules/asn1.js/lib/asn1/base/node.js"(H,W){var p$=YZ().Reporter,K=sQ().EncoderBuffer,G=sQ().DecoderBuffer,$=l0(),U=["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"],Y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),F=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function O(z,c$,M){let h$={};this._baseState=h$,h$.name=M,h$.enc=z,h$.parent=c$||null,h$.children=null,h$.tag=null,h$.args=null,h$.reverseArgs=null,h$.choice=null,h$.optional=!1,h$.any=!1,h$.obj=!1,h$.use=null,h$.useDecoder=null,h$.key=null,h$.default=null,h$.explicit=null,h$.implicit=null,h$.contains=null,h$.parent||(h$.children=[],this._wrap())}W.exports=O;var f$=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];O.prototype.clone=function(){let z=this._baseState,c$={};f$.forEach(function(h$){c$[h$]=z[h$]});let M=new this.constructor(c$.parent);return M._baseState=c$,M},O.prototype._wrap=function(){let z=this._baseState;Y.forEach(function(c$){this[c$]=function(){let M=new this.constructor(this);return z.children.push(M),M[c$].apply(M,arguments)}},this)},O.prototype._init=function(z){let c$=this._baseState;$(c$.parent===null),z.call(this),c$.children=c$.children.filter(function(M){return M._baseState.parent===this},this),$.equal(c$.children.length,1,"Root node can have only one child")},O.prototype._useArgs=function(z){let c$=this._baseState,M=z.filter(function(h$){return h$ instanceof this.constructor},this);z=z.filter(function(h$){return!(h$ instanceof this.constructor)},this),M.length!==0&&($(c$.children===null),c$.children=M,M.forEach(function(h$){h$._baseState.parent=this},this)),z.length!==0&&($(c$.args===null),c$.args=z,c$.reverseArgs=z.map(function(h$){if(typeof h$!="object"||h$.constructor!==Object)return h$;let S={};return Object.keys(h$).forEach(function(d$){d$==(d$|0)&&(d$|=0);let v=h$[d$];S[v]=d$}),S}))},F.forEach(function(z){O.prototype[z]=function(){let c$=this._baseState;throw new Error(z+" not implemented for encoding: "+c$.enc)}}),U.forEach(function(z){O.prototype[z]=function(){let c$=this._baseState,M=Array.prototype.slice.call(arguments);return $(c$.tag===null),c$.tag=z,this._useArgs(M),this}}),O.prototype.use=function(z){$(z);let c$=this._baseState;return $(c$.use===null),c$.use=z,this},O.prototype.optional=function(){let z=this._baseState;return z.optional=!0,this},O.prototype.def=function(z){let c$=this._baseState;return $(c$.default===null),c$.default=z,c$.optional=!0,this},O.prototype.explicit=function(z){let c$=this._baseState;return $(c$.explicit===null&&c$.implicit===null),c$.explicit=z,this},O.prototype.implicit=function(z){let c$=this._baseState;return $(c$.explicit===null&&c$.implicit===null),c$.implicit=z,this},O.prototype.obj=function(){let z=this._baseState,c$=Array.prototype.slice.call(arguments);return z.obj=!0,c$.length!==0&&this._useArgs(c$),this},O.prototype.key=function(z){let c$=this._baseState;return $(c$.key===null),c$.key=z,this},O.prototype.any=function(){let z=this._baseState;return z.any=!0,this},O.prototype.choice=function(z){let c$=this._baseState;return $(c$.choice===null),c$.choice=z,this._useArgs(Object.keys(z).map(function(M){return z[M]})),this},O.prototype.contains=function(z){let c$=this._baseState;return $(c$.use===null),c$.contains=z,this},O.prototype._decode=function(z,c$){let M=this._baseState;if(M.parent===null)return z.wrapResult(M.children[0]._decode(z,c$));let h$=M.default,S=!0,d$=null;if(M.key!==null&&(d$=z.enterKey(M.key)),M.optional){let b$=null;if(M.explicit!==null?b$=M.explicit:M.implicit!==null?b$=M.implicit:M.tag!==null&&(b$=M.tag),b$===null&&!M.any){let q=z.save();try{M.choice===null?this._decodeGeneric(M.tag,z,c$):this._decodeChoice(z,c$),S=!0}catch{S=!1}z.restore(q)}else if(S=this._peekTag(z,b$,M.any),z.isError(S))return S}let v;if(M.obj&&S&&(v=z.enterObject()),S){if(M.explicit!==null){let q=this._decodeTag(z,M.explicit);if(z.isError(q))return q;z=q}let b$=z.offset;if(M.use===null&&M.choice===null){let q;M.any&&(q=z.save());let l$=this._decodeTag(z,M.implicit!==null?M.implicit:M.tag,M.any);if(z.isError(l$))return l$;M.any?h$=z.raw(q):z=l$}if(c$&&c$.track&&M.tag!==null&&c$.track(z.path(),b$,z.length,"tagged"),c$&&c$.track&&M.tag!==null&&c$.track(z.path(),z.offset,z.length,"content"),M.any||(M.choice===null?h$=this._decodeGeneric(M.tag,z,c$):h$=this._decodeChoice(z,c$)),z.isError(h$))return h$;if(!M.any&&M.choice===null&&M.children!==null&&M.children.forEach(function(q){q._decode(z,c$)}),M.contains&&(M.tag==="octstr"||M.tag==="bitstr")){let q=new G(h$);h$=this._getUse(M.contains,z._reporterState.obj)._decode(q,c$)}}return M.obj&&S&&(h$=z.leaveObject(v)),M.key!==null&&(h$!==null||S===!0)?z.leaveKey(d$,M.key,h$):d$!==null&&z.exitKey(d$),h$},O.prototype._decodeGeneric=function(z,c$,M){let h$=this._baseState;return z==="seq"||z==="set"?null:z==="seqof"||z==="setof"?this._decodeList(c$,z,h$.args[0],M):/str$/.test(z)?this._decodeStr(c$,z,M):z==="objid"&&h$.args?this._decodeObjid(c$,h$.args[0],h$.args[1],M):z==="objid"?this._decodeObjid(c$,null,null,M):z==="gentime"||z==="utctime"?this._decodeTime(c$,z,M):z==="null_"?this._decodeNull(c$,M):z==="bool"?this._decodeBool(c$,M):z==="objDesc"?this._decodeStr(c$,z,M):z==="int"||z==="enum"?this._decodeInt(c$,h$.args&&h$.args[0],M):h$.use!==null?this._getUse(h$.use,c$._reporterState.obj)._decode(c$,M):c$.error("unknown tag: "+z)},O.prototype._getUse=function(z,c$){let M=this._baseState;return M.useDecoder=this._use(z,c$),$(M.useDecoder._baseState.parent===null),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},O.prototype._decodeChoice=function(z,c$){let M=this._baseState,h$=null,S=!1;return Object.keys(M.choice).some(function(d$){let v=z.save(),b$=M.choice[d$];try{let q=b$._decode(z,c$);if(z.isError(q))return!1;h$={type:d$,value:q},S=!0}catch{return z.restore(v),!1}return!0},this),S?h$:z.error("Choice not matched")},O.prototype._createEncoderBuffer=function(z){return new K(z,this.reporter)},O.prototype._encode=function(z,c$,M){let h$=this._baseState;if(h$.default!==null&&h$.default===z)return;let S=this._encodeValue(z,c$,M);if(S!==void 0&&!this._skipDefault(S,c$,M))return S},O.prototype._encodeValue=function(z,c$,M){let h$=this._baseState;if(h$.parent===null)return h$.children[0]._encode(z,c$||new p$);let S=null;if(this.reporter=c$,h$.optional&&z===void 0)if(h$.default!==null)z=h$.default;else return;let d$=null,v=!1;if(h$.any)S=this._createEncoderBuffer(z);else if(h$.choice)S=this._encodeChoice(z,c$);else if(h$.contains)d$=this._getUse(h$.contains,M)._encode(z,c$),v=!0;else if(h$.children)d$=h$.children.map(function(b$){if(b$._baseState.tag==="null_")return b$._encode(null,c$,z);if(b$._baseState.key===null)return c$.error("Child should have a key");let q=c$.enterKey(b$._baseState.key);if(typeof z!="object")return c$.error("Child expected, but input is not object");let l$=b$._encode(z[b$._baseState.key],c$,z);return c$.leaveKey(q),l$},this).filter(function(b$){return b$}),d$=this._createEncoderBuffer(d$);else if(h$.tag==="seqof"||h$.tag==="setof"){if(!(h$.args&&h$.args.length===1))return c$.error("Too many args for : "+h$.tag);if(!Array.isArray(z))return c$.error("seqof/setof, but data is not Array");let b$=this.clone();b$._baseState.implicit=null,d$=this._createEncoderBuffer(z.map(function(q){let l$=this._baseState;return this._getUse(l$.args[0],z)._encode(q,c$)},b$))}else h$.use!==null?S=this._getUse(h$.use,M)._encode(z,c$):(d$=this._encodePrimitive(h$.tag,z),v=!0);if(!h$.any&&h$.choice===null){let b$=h$.implicit!==null?h$.implicit:h$.tag,q=h$.implicit===null?"universal":"context";b$===null?h$.use===null&&c$.error("Tag could be omitted only for .use()"):h$.use===null&&(S=this._encodeComposite(b$,v,q,d$))}return h$.explicit!==null&&(S=this._encodeComposite(h$.explicit,!1,"context",S)),S},O.prototype._encodeChoice=function(z,c$){let M=this._baseState,h$=M.choice[z.type];return h$||$(!1,z.type+" not found in "+JSON.stringify(Object.keys(M.choice))),h$._encode(z.value,c$)},O.prototype._encodePrimitive=function(z,c$){let M=this._baseState;if(/str$/.test(z))return this._encodeStr(c$,z);if(z==="objid"&&M.args)return this._encodeObjid(c$,M.reverseArgs[0],M.args[1]);if(z==="objid")return this._encodeObjid(c$,null,null);if(z==="gentime"||z==="utctime")return this._encodeTime(c$,z);if(z==="null_")return this._encodeNull();if(z==="int"||z==="enum")return this._encodeInt(c$,M.args&&M.reverseArgs[0]);if(z==="bool")return this._encodeBool(c$);if(z==="objDesc")return this._encodeStr(c$,z);throw new Error("Unsupported tag: "+z)},O.prototype._isNumstr=function(z){return/^[0-9 ]*$/.test(z)},O.prototype._isPrintstr=function(z){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(z)}}}),ZZ=GY({"node_modules/asn1.js/lib/asn1/constants/der.js"(H){function W(p$){let K={};return Object.keys(p$).forEach(function(G){(G|0)==G&&(G=G|0);let $=p$[G];K[$]=G}),K}H.tagClass={0:"universal",1:"application",2:"context",3:"private"},H.tagClassByName=W(H.tagClass),H.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"},H.tagByName=W(H.tag)}}),V$=GY({"node_modules/asn1.js/lib/asn1/encoders/der.js"(H,W){var p$=C0(),K=QZ().Buffer,G=G$(),$=ZZ();function U(f$){this.enc="der",this.name=f$.name,this.entity=f$,this.tree=new Y,this.tree._init(f$.body)}W.exports=U,U.prototype.encode=function(f$,z){return this.tree._encode(f$,z).join()};function Y(f$){G.call(this,"der",f$)}p$(Y,G),Y.prototype._encodeComposite=function(f$,z,c$,M){let h$=O(f$,z,c$,this.reporter);if(M.length<128){let v=K.alloc(2);return v[0]=h$,v[1]=M.length,this._createEncoderBuffer([v,M])}let S=1;for(let v=M.length;v>=256;v>>=8)S++;let d$=K.alloc(2+S);d$[0]=h$,d$[1]=128|S;for(let v=1+S,b$=M.length;b$>0;v--,b$>>=8)d$[v]=b$&255;return this._createEncoderBuffer([d$,M])},Y.prototype._encodeStr=function(f$,z){if(z==="bitstr")return this._createEncoderBuffer([f$.unused|0,f$.data]);if(z==="bmpstr"){let c$=K.alloc(f$.length*2);for(let M=0;M=40)return this.reporter.error("Second objid identifier OOB");f$.splice(0,2,f$[0]*40+f$[1])}let M=0;for(let d$=0;d$=128;v>>=7)M++}let h$=K.alloc(M),S=h$.length-1;for(let d$=f$.length-1;d$>=0;d$--){let v=f$[d$];for(h$[S--]=v&127;(v>>=7)>0;)h$[S--]=128|v&127}return this._createEncoderBuffer(h$)};function F(f$){return f$<10?"0"+f$:f$}Y.prototype._encodeTime=function(f$,z){let c$,M=new Date(f$);return z==="gentime"?c$=[F(M.getUTCFullYear()),F(M.getUTCMonth()+1),F(M.getUTCDate()),F(M.getUTCHours()),F(M.getUTCMinutes()),F(M.getUTCSeconds()),"Z"].join(""):z==="utctime"?c$=[F(M.getUTCFullYear()%100),F(M.getUTCMonth()+1),F(M.getUTCDate()),F(M.getUTCHours()),F(M.getUTCMinutes()),F(M.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+z+" time is not supported yet"),this._encodeStr(c$,"octstr")},Y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Y.prototype._encodeInt=function(f$,z){if(typeof f$=="string"){if(!z)return this.reporter.error("String int or enum given, but no values map");if(!z.hasOwnProperty(f$))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f$));f$=z[f$]}if(typeof f$!="number"&&!K.isBuffer(f$)){let h$=f$.toArray();!f$.sign&&h$[0]&128&&h$.unshift(0),f$=K.from(h$)}if(K.isBuffer(f$)){let h$=f$.length;f$.length===0&&h$++;let S=K.alloc(h$);return f$.copy(S),f$.length===0&&(S[0]=0),this._createEncoderBuffer(S)}if(f$<128)return this._createEncoderBuffer(f$);if(f$<256)return this._createEncoderBuffer([0,f$]);let c$=1;for(let h$=f$;h$>=256;h$>>=8)c$++;let M=new Array(c$);for(let h$=M.length-1;h$>=0;h$--)M[h$]=f$&255,f$>>=8;return M[0]&128&&M.unshift(0),this._createEncoderBuffer(K.from(M))},Y.prototype._encodeBool=function(f$){return this._createEncoderBuffer(f$?255:0)},Y.prototype._use=function(f$,z){return typeof f$=="function"&&(f$=f$(z)),f$._getEncoder("der").tree},Y.prototype._skipDefault=function(f$,z,c$){let M=this._baseState,h$;if(M.default===null)return!1;let S=f$.join();if(M.defaultBuffer===void 0&&(M.defaultBuffer=this._encodeValue(M.default,z,c$).join()),S.length!==M.defaultBuffer.length)return!1;for(h$=0;h$=31?M.error("Multi-octet tag encoding unsupported"):(z||(h$|=32),h$|=$.tagClassByName[c$||"universal"]<<6,h$)}}}),GZ=GY({"node_modules/asn1.js/lib/asn1/encoders/pem.js"(H,W){var p$=C0(),K=V$();function G($){K.call(this,$),this.enc="pem"}p$(G,K),W.exports=G,G.prototype.encode=function($,U){let Y=K.prototype.encode.call(this,$).toString("base64"),F=["-----BEGIN "+U.label+"-----"];for(let O=0;O>6],S=(M&32)===0;if((M&31)===31){let v=M;for(M=0;(v&128)===128;){if(v=z.readUInt8(c$),z.isError(v))return v;M<<=7,M|=v&127}}else M&=31;let d$=U.tag[M];return{cls:h$,primitive:S,tag:M,tagStr:d$}}function f$(z,c$,M){let h$=z.readUInt8(M);if(z.isError(h$))return h$;if(!c$&&h$===128)return null;if((h$&128)===0)return h$;let S=h$&127;if(S>4)return z.error("length octect is too long");h$=0;for(let d$=0;d$0&&l$.ishrn(j),l$}function S(b$,q){b$=h$(b$,q),b$=b$.mod(q);var l$=p$.from(b$.toArray());if(l$.length=c$)throw new Error("invalid sig")}W.exports=Y}}),H$=GY({"node_modules/browserify-sign/browser/index.js"(H,W){var p$=UY().Buffer,K=N0(),G=C0(),$=A$(),U=FZ(),Y=w0();Object.keys(Y).forEach(function(c$){Y[c$].id=p$.from(Y[c$].id,"hex"),Y[c$.toLowerCase()]=Y[c$]});function F(c$){oQ.Writable.call(this);var M=Y[c$];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=K(M.hash),this._tag=M.id,this._signType=M.sign}G(F,oQ.Writable),F.prototype._write=function(c$,M,h$){this._hash.update(c$),h$()},F.prototype.update=function(c$,M){return typeof c$=="string"&&(c$=p$.from(c$,M)),this._hash.update(c$),this},F.prototype.sign=function(c$,M){this.end();var h$=this._hash.digest(),S=$(h$,c$,this._hashType,this._signType,this._tag);return M?S.toString(M):S};function O(c$){oQ.Writable.call(this);var M=Y[c$];if(!M)throw new Error("Unknown message digest");this._hash=K(M.hash),this._tag=M.id,this._signType=M.sign}G(O,oQ.Writable),O.prototype._write=function(c$,M,h$){this._hash.update(c$),h$()},O.prototype.update=function(c$,M){return typeof c$=="string"&&(c$=p$.from(c$,M)),this._hash.update(c$),this},O.prototype.verify=function(c$,M,h$){typeof M=="string"&&(M=p$.from(M,h$)),this.end();var S=this._hash.digest();return U(M,S,c$,this._signType,this._tag)};function f$(c$){return new F(c$)}function z(c$){return new O(c$)}W.exports={Sign:f$,Verify:z,createSign:f$,createVerify:z}}}),AZ=GY({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),W$=GY({"node_modules/create-ecdh/browser.js"(H,W){var p$=Z$(),K=AZ();W.exports=function(Y){return new $(Y)};var G={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}};G.p224=G.secp224r1,G.p256=G.secp256r1=G.prime256v1,G.p192=G.secp192r1=G.prime192v1,G.p384=G.secp384r1,G.p521=G.secp521r1;function $(Y){this.curveType=G[Y],this.curveType||(this.curveType={name:Y}),this.curve=new p$.ec(this.curveType.name),this.keys=void 0}$.prototype.generateKeys=function(Y,F){return this.keys=this.curve.genKeyPair(),this.getPublicKey(Y,F)},$.prototype.computeSecret=function(Y,F,O){F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F));var f$=this.curve.keyFromPublic(Y).getPublic(),z=f$.mul(this.keys.getPrivate()).getX();return U(z,O,this.curveType.byteLength)},$.prototype.getPublicKey=function(Y,F){var O=this.keys.getPublic(F==="compressed",!0);return F==="hybrid"&&(O[O.length-1]%2?O[0]=7:O[0]=6),U(O,Y)},$.prototype.getPrivateKey=function(Y){return U(this.keys.getPrivate(),Y)},$.prototype.setPublicKey=function(Y,F){return F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F)),this.keys._importPublic(Y),this},$.prototype.setPrivateKey=function(Y,F){F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F));var O=new K(Y);return O=O.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(O),this};function U(Y,F,O){Array.isArray(Y)||(Y=Y.toArray());var f$=new lQ(Y);if(O&&f$.length0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x=N;x-=2)a$=O(s$,N,x)<=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?""};var z=["","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"],c$=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;Ns$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;xs$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B>>26;for(;m$!==0&&B>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;Bs$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$>26,this.words[a$]=N&67108863;for(;B!==0&&a$>26,this.words[a$]=N&67108863;if(B===0&&a$>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$>>1)m$++;return 1<>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<B)for(this.length-=B,e$=0;e$=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:xs$.length)return 1;if(this.length=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){xm$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(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)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),{CryptoHasher:T$}=globalThis.Bun,EZ=GY({"node_modules/public-encrypt/withPublic.js"(H,W){var p$=WZ(),K=UY().Buffer;function G($,U){return K.from($.toRed(p$.mont(U.modulus)).redPow(new p$(U.publicExponent)).fromRed().toArray())}W.exports=G}}),D$=GY({"node_modules/public-encrypt/publicEncrypt.js"(H,W){var p$=F$(),K=XY(),G=N0(),$=HZ(),U=E$(),Y=WZ(),F=EZ(),O=pY(),f$=UY().Buffer;W.exports=function(h$,S,d$){var v;h$.padding?v=h$.padding:d$?v=1:v=4;var b$=p$(h$),q;if(v===4)q=z(b$,S);else if(v===1)q=c$(b$,S,d$);else if(v===3){if(q=new Y(S),q.cmp(b$.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return d$?O(q,b$):F(q,b$)};function z(h$,S){var d$=h$.modulus.byteLength(),v=S.length,b$=G("sha1").update(f$.alloc(0)).digest(),q=b$.length,l$=2*q;if(v>d$-l$-2)throw new Error("message too long");var j=f$.alloc(d$-v-l$-2),o$=d$-q-1,k=K(q),u$=U(f$.concat([b$,j,f$.alloc(1,1),S],o$),$(k,o$)),g=U(k,$(u$,q));return new Y(f$.concat([f$.alloc(1),g,u$],d$))}function c$(h$,S,d$){var v=S.length,b$=h$.modulus.byteLength();if(v>b$-11)throw new Error("message too long");var q;return d$?q=f$.alloc(b$-v-3,255):q=M(b$-v-3),new Y(f$.concat([f$.from([0,d$?1:2]),q,f$.alloc(1),S],b$))}function M(h$){for(var S=f$.allocUnsafe(h$),d$=0,v=K(h$*2),b$=0,q;d$b$||new $(h$).cmp(v.modulus)>=0)throw new Error("decryption error");var q;S?q=F(new $(h$),v):q=U(h$,v);var l$=O.alloc(b$-q.length);if(q=O.concat([l$,q],b$),d$===4)return f$(v,q);if(d$===1)return z(v,q,S);if(d$===3)return q;throw new Error("unknown padding")};function f$(M,h$){var S=M.modulus.byteLength(),d$=Y("sha1").update(O.alloc(0)).digest(),v=d$.length;if(h$[0]!==0)throw new Error("decryption error");var b$=h$.slice(1,v+1),q=h$.slice(v+1),l$=G(b$,K(q,v)),j=G(q,K(l$,S-v-1));if(c$(d$,j.slice(0,v)))throw new Error("decryption error");for(var o$=v;j[o$]===0;)o$++;if(j[o$++]!==1)throw new Error("decryption error");return j.slice(o$)}function z(M,h$,S){for(var d$=h$.slice(0,2),v=2,b$=0;h$[v++]!==0;)if(v>=h$.length){b$++;break}var q=h$.slice(2,v-1);if((d$.toString("hex")!=="0002"&&!S||d$.toString("hex")!=="0001"&&S)&&b$++,q.length<8&&b$++,b$)throw new Error("decryption error");return h$.slice(v)}function c$(M,h$){M=O.from(M),h$=O.from(h$);var S=0,d$=M.length;M.length!==h$.length&&(S++,d$=Math.min(M.length,h$.length));for(var v=-1;++v$||z<0)throw new TypeError("offset must be a uint32");if(z>G||z>c$)throw new RangeError("offset out of range")}function Y(z,c$,M){if(typeof z!="number"||z!==z)throw new TypeError("size must be a number");if(z>$||z<0)throw new TypeError("size must be a uint32");if(z+c$>M||z>G)throw new RangeError("buffer too small")}H.randomFill=F,H.randomFillSync=f$;function F(z,c$,M,h$){if(!K.isBuffer(z)&&!(z instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof c$=="function")h$=c$,c$=0,M=z.length;else if(typeof M=="function")h$=M,M=z.length-c$;else if(typeof h$!="function")throw new TypeError('"cb" argument must be a function');return U(c$,z.length),Y(M,c$,z.length),O(z,c$,M,h$)}function O(z,c$,M,h$){if(h$){p$(M,function(d$,v){if(d$)return h$(d$);v.copy(z,c$),h$(null,z)});return}var S=p$(M);return S.copy(z,c$),z}function f$(z,c$,M){if(typeof c$>"u"&&(c$=0),!K.isBuffer(z)&&!(z instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(c$,z.length),M===void 0&&(M=z.length-c$),Y(M,c$,z.length),O(z,c$,M)}}}),L$=GY({"node_modules/crypto-browserify/index.js"(H){H.randomBytes=H.rng=H.pseudoRandomBytes=H.prng=XY(),H.createHash=N0(),H.Hash=H.createHash.Hash,H.createHmac=H.Hmac=y0();var W=p0(),p$=Object.keys(W),K=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(p$);H.getHashes=function(){return K};var G=d0();H.pbkdf2=G.pbkdf2,H.pbkdf2Sync=G.pbkdf2Sync;var $=yY();H.Cipher=$.Cipher,H.createCipher=$.createCipher,H.Cipheriv=$.Cipheriv,H.createCipheriv=$.createCipheriv,H.Decipher=$.Decipher,H.createDecipher=$.createDecipher,H.Decipheriv=$.Decipheriv,H.createDecipheriv=$.createDecipheriv,H.getCiphers=$.getCiphers,H.listCiphers=$.listCiphers;var U=A();H.DiffieHellmanGroup=U.DiffieHellmanGroup,H.createDiffieHellmanGroup=U.createDiffieHellmanGroup,H.getDiffieHellman=U.getDiffieHellman,H.createDiffieHellman=U.createDiffieHellman,H.DiffieHellman=U.DiffieHellman;var Y=H$();H.createSign=Y.createSign,H.Sign=Y.Sign,H.createVerify=Y.createVerify,H.Verify=Y.Verify,H.createECDH=W$();var F=C$();H.publicEncrypt=F.publicEncrypt,H.privateEncrypt=F.privateEncrypt,H.publicDecrypt=F.publicDecrypt,H.privateDecrypt=F.privateDecrypt,H.getRandomValues=(f$)=>uQ.getRandomValues(f$);var O=DZ();H.randomFill=O.randomFill,H.randomFillSync=O.randomFillSync,H.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))},H.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),CZ={...L$(),[Symbol.for("CommonJS")]:0},tQ="buffer",R$=(H)=>uQ.getRandomValues(H),LZ=()=>uQ.randomUUID(),P$=(...H)=>uQ.randomInt(...H),mQ="timingSafeEqual"in uQ?(H,W)=>{let{byteLength:p$}=H,{byteLength:K}=W;if(typeof p$!="number"||typeof K!="number")throw new TypeError("Input must be an array buffer view");if(p$!==K)throw new RangeError("Input buffers must have the same length");return uQ.timingSafeEqual(H,W)}:void 0,RZ="scryptSync"in uQ?(H,W,p$,K)=>{let G=uQ.scryptSync(H,W,p$,K);return tQ!=="buffer"?new lQ(G).toString(tQ):new lQ(G)}:void 0,z$="scryptSync"in uQ?function(H,W,p$,K,G){if(typeof K=="function"&&(G=K,K=void 0),typeof G!="function"){var $=new TypeError("callback must be a function");throw $.code="ERR_INVALID_CALLBACK",$}try{let U=uQ.scryptSync(H,W,p$,K);process.nextTick(G,null,tQ!=="buffer"?new lQ(U).toString(tQ):new lQ(U))}catch(U){throw U}}:void 0;mQ&&(Object.defineProperty(mQ,"name",{value:"::bunternal::"}),Object.defineProperty(z$,"name",{value:"::bunternal::"}),Object.defineProperty(RZ,"name",{value:"::bunternal::"}));var aQ=uQ;VY(CZ,{DEFAULT_ENCODING:()=>tQ,getRandomValues:()=>R$,randomUUID:()=>LZ,randomInt:()=>P$,scrypt:()=>z$,scryptSync:()=>RZ,timingSafeEqual:()=>mQ,webcrypto:()=>aQ,subtle:()=>aQ.subtle});var{randomBytes:PZ,rng:M$,pseudoRandomBytes:zZ,prng:S$,Hash:MZ,createHash:v$,createHmac:SZ,Hmac:L,getHashes:vZ,pbkdf2:q$,pbkdf2Sync:qZ,Cipher:R,createCipher:jZ,Cipheriv:P,createCipheriv:kZ,Decipher:j$,createDecipher:gZ,Decipheriv:k$,createDecipheriv:_Z,getCiphers:NZ,listCiphers:xZ,DiffieHellmanGroup:BZ,createDiffieHellmanGroup:yZ,getDiffieHellman:g$,createDiffieHellman:wZ,DiffieHellman:_$,createSign:pZ,Sign:N$,createVerify:fZ,Verify:x$,createECDH:cZ,publicEncrypt:B$,privateEncrypt:hZ,publicDecrypt:y$,privateDecrypt:dZ,randomFill:w$,randomFillSync:bZ,createCredentials:lZ,constants:oZ}=CZ;var nZ=CZ;/*! safe-buffer. MIT License. Feross Aboukhadijeh */export{aQ as webcrypto,mQ as timingSafeEqual,RZ as scryptSync,z$ as scrypt,M$ as rng,LZ as randomUUID,P$ as randomInt,bZ as randomFillSync,w$ as randomFill,PZ as randomBytes,B$ as publicEncrypt,y$ as publicDecrypt,zZ as pseudoRandomBytes,S$ as prng,hZ as privateEncrypt,dZ as privateDecrypt,qZ as pbkdf2Sync,q$ as pbkdf2,xZ as listCiphers,R$ as getRandomValues,vZ as getHashes,g$ as getDiffieHellman,NZ as getCiphers,nZ as default,fZ as createVerify,pZ as createSign,SZ as createHmac,v$ as createHash,cZ as createECDH,yZ as createDiffieHellmanGroup,wZ as createDiffieHellman,_Z as createDecipheriv,gZ as createDecipher,lZ as createCredentials,kZ as createCipheriv,jZ as createCipher,oZ as constants,x$ as Verify,N$ as Sign,L as Hmac,MZ as Hash,BZ as DiffieHellmanGroup,_$ as DiffieHellman,k$ as Decipheriv,j$ as Decipher,tQ as DEFAULT_ENCODING,P as Cipheriv,R as Cipher}; -- cgit v1.2.3