aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/out/modules/node')
-rw-r--r--src/js/out/modules/node/assert.js84
-rw-r--r--src/js/out/modules/node/assert.strict.js2
-rw-r--r--src/js/out/modules/node/async_hooks.js3
-rw-r--r--src/js/out/modules/node/child_process.js21
-rw-r--r--src/js/out/modules/node/cluster.js2
-rw-r--r--src/js/out/modules/node/crypto.js8
-rw-r--r--src/js/out/modules/node/dns.promises.js6
-rw-r--r--src/js/out/modules/node/events.js18
-rw-r--r--src/js/out/modules/node/fs.js110
-rw-r--r--src/js/out/modules/node/fs.promises.js2
-rw-r--r--src/js/out/modules/node/http.js295
-rw-r--r--src/js/out/modules/node/https.js55
-rw-r--r--src/js/out/modules/node/inspector.js2
-rw-r--r--src/js/out/modules/node/net.js125
-rw-r--r--src/js/out/modules/node/os.js14
-rw-r--r--src/js/out/modules/node/path.js2
-rw-r--r--src/js/out/modules/node/path.posix.js2
-rw-r--r--src/js/out/modules/node/path.win32.js2
-rw-r--r--src/js/out/modules/node/perf_hooks.js16
-rw-r--r--src/js/out/modules/node/readline.js6
-rw-r--r--src/js/out/modules/node/readline.promises.js10
-rw-r--r--src/js/out/modules/node/stream.consumers.js2
-rw-r--r--src/js/out/modules/node/stream.js4
-rw-r--r--src/js/out/modules/node/stream.promises.js2
-rw-r--r--src/js/out/modules/node/stream.web.js2
-rw-r--r--src/js/out/modules/node/timers.promises.js4
-rw-r--r--src/js/out/modules/node/tls.js238
-rw-r--r--src/js/out/modules/node/url.js237
-rw-r--r--src/js/out/modules/node/util.js128
-rw-r--r--src/js/out/modules/node/wasi.js4
-rw-r--r--src/js/out/modules/node/zlib.js2548
31 files changed, 792 insertions, 3162 deletions
diff --git a/src/js/out/modules/node/assert.js b/src/js/out/modules/node/assert.js
index 172a95445..eca1f9d97 100644
--- a/src/js/out/modules/node/assert.js
+++ b/src/js/out/modules/node/assert.js
@@ -1,53 +1,53 @@
-var V0=function(){throw new Error("CallTracker is not supported yet")},{Bun:$0}=import.meta.primordials,X0=$0.deepEquals;var U0=(H,Q)=>function(){return Q||(0,H[Object.keys(H)[0]])((Q={exports:{}}).exports,Q),Q.exports};var K0=(H)=>import.meta.require(H),W0=U0({"assert/build/internal/errors.js"(H,Q){function Z(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(T){return typeof T}:Z=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},Z(v)}function J(v,T){if(!(v instanceof T))throw new TypeError("Cannot call a class as a function")}function z(v,T){return T&&(Z(T)==="object"||typeof T=="function")?T:X(v)}function X(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function K(v){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},K(v)}function Y(v,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(T&&T.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),T&&$(v,T)}function $(v,T){return $=Object.setPrototypeOf||function(w,F){return w.__proto__=F,w},$(v,T)}var U={},W,B;function D(v,T,w){w||(w=Error);function F(N,A,I){return typeof T=="string"?T:T(N,A,I)}var O=function(N){Y(A,N);function A(I,P,S){var j;return J(this,A),j=z(this,K(A).call(this,F(I,P,S))),j.code=v,j}return A}(w);U[v]=O}function V(v,T){if(Array.isArray(v)){var w=v.length;return v=v.map(function(F){return String(F)}),w>2?"one of ".concat(T," ").concat(v.slice(0,w-1).join(", "),", or ")+v[w-1]:w===2?"one of ".concat(T," ").concat(v[0]," or ").concat(v[1]):"of ".concat(T," ").concat(v[0])}else return"of ".concat(T," ").concat(String(v))}function M(v,T,w){return v.substr(!w||w<0?0:+w,T.length)===T}function G(v,T,w){return(w===void 0||w>v.length)&&(w=v.length),v.substring(w-T.length,w)===T}function q(v,T,w){return typeof w!="number"&&(w=0),w+T.length>v.length?!1:v.indexOf(T,w)!==-1}D("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),D("ERR_INVALID_ARG_TYPE",function(v,T,w){W===void 0&&(W=Y0()),W(typeof v=="string","'name' must be a string");var F;typeof T=="string"&&M(T,"not ")?(F="must not be",T=T.replace(/^not /,"")):F="must be";var O;if(G(v," argument"))O="The ".concat(v," ").concat(F," ").concat(V(T,"type"));else{var N=q(v,".")?"property":"argument";O='The "'.concat(v,'" ').concat(N," ").concat(F," ").concat(V(T,"type"))}return O+=". Received type ".concat(Z(w)),O},TypeError),D("ERR_INVALID_ARG_VALUE",function(v,T){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";B===void 0&&(B=K0("util"));var F=B.inspect(T);return F.length>128&&(F="".concat(F.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(w,". Received ").concat(F)},TypeError,RangeError),D("ERR_INVALID_RETURN_VALUE",function(v,T,w){var F;return w&&w.constructor&&w.constructor.name?F="instance of ".concat(w.constructor.name):F="type ".concat(Z(w)),"Expected ".concat(v,' to be returned from the "').concat(T,'"')+" function but got ".concat(F,".")},TypeError),D("ERR_MISSING_ARGS",function(){for(var v=arguments.length,T=new Array(v),w=0;w<v;w++)T[w]=arguments[w];W===void 0&&(W=Y0()),W(T.length>0,"At least one arg needs to be specified");var F="The ",O=T.length;switch(T=T.map(function(N){return'"'.concat(N,'"')}),O){case 1:F+="".concat(T[0]," argument");break;case 2:F+="".concat(T[0]," and ").concat(T[1]," arguments");break;default:F+=T.slice(0,O-1).join(", "),F+=", and ".concat(T[O-1]," arguments");break}return"".concat(F," must be specified")},TypeError),Q.exports.codes=U}}),B0=U0({"assert/build/internal/assert/assertion_error.js"(H,Q){function Z(b){for(var h=1;h<arguments.length;h++){var k=arguments[h]!=null?arguments[h]:{},x=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(x=x.concat(Object.getOwnPropertySymbols(k).filter(function(y){return Object.getOwnPropertyDescriptor(k,y).enumerable}))),x.forEach(function(y){J(b,y,k[y])})}return b}function J(b,h,k){return(h in b)?Object.defineProperty(b,h,{value:k,enumerable:!0,configurable:!0,writable:!0}):b[h]=k,b}function z(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function X(b,h){for(var k=0;k<h.length;k++){var x=h[k];x.enumerable=x.enumerable||!1,x.configurable=!0,("value"in x)&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}function K(b,h,k){return h&&X(b.prototype,h),k&&X(b,k),b}function Y(b,h){return h&&(q(h)==="object"||typeof h=="function")?h:$(b)}function $(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function U(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),h&&M(b,h)}function W(b){var h=typeof Map=="function"?new Map:void 0;return W=function(k){if(k===null||!V(k))return k;if(typeof k!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(k))return h.get(k);h.set(k,x)}function x(){return D(k,arguments,G(this).constructor)}return x.prototype=Object.create(k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),M(x,k)},W(b)}function B(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(b,h,k){return B()?D=Reflect.construct:D=function(x,y,m){var g=[null];g.push.apply(g,y);var d=Function.bind.apply(x,g),_=new d;return m&&M(_,m.prototype),_},D.apply(null,arguments)}function V(b){return Function.toString.call(b).indexOf("[native code]")!==-1}function M(b,h){return M=Object.setPrototypeOf||function(k,x){return k.__proto__=x,k},M(b,h)}function G(b){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},G(b)}function q(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?q=function(h){return typeof h}:q=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},q(b)}var v=K0("util"),T=v.inspect,w=W0(),F=w.codes.ERR_INVALID_ARG_TYPE;function O(b,h,k){return(k===void 0||k>b.length)&&(k=b.length),b.substring(k-h.length,k)===h}function N(b,h){if(h=Math.floor(h),b.length==0||h==0)return"";var k=b.length*h;for(h=Math.floor(Math.log(h)/Math.log(2));h;)b+=b,h--;return b+=b.substring(0,k-b.length),b}var A="",I="",P="",S="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},R=10;function f(b){var h=Object.keys(b),k=Object.create(Object.getPrototypeOf(b));return h.forEach(function(x){k[x]=b[x]}),Object.defineProperty(k,"message",{value:b.message}),k}function C(b){return T(b,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:Infinity,showHidden:!1,breakLength:Infinity,showProxy:!1,sorted:!0,getters:!0})}function E(b,h,k){var x="",y="",m=0,g="",d=!1,_=C(b),u=_.split(`
-`),i=C(h).split(`
-`),p=0,n="";if(k==="strictEqual"&&q(b)==="object"&&q(h)==="object"&&b!==null&&h!==null&&(k="strictEqualObject"),u.length===1&&i.length===1&&u[0]!==i[0]){var l=u[0].length+i[0].length;if(l<=R){if((q(b)!=="object"||b===null)&&(q(h)!=="object"||h===null)&&(b!==0||h!==0))return"".concat(j[k],`
+import J1 from"node:util";var V1=function(){throw new Error("CallTracker is not supported yet")},{Bun:Y1}=globalThis[Symbol.for("Bun.lazy")]("primordials"),t=Y1.deepEquals,X1=(i,L)=>function(){return L||(0,i[Object.keys(i)[0]])((L={exports:{}}).exports,L),L.exports},W1=X1({"assert/build/internal/errors.js"(i,L){function P(Y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(X){return typeof X}:P=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},P(Y)}function p(Y,X){if(!(Y instanceof X))throw new TypeError("Cannot call a class as a function")}function l(Y,X){return X&&(P(X)==="object"||typeof X=="function")?X:b(Y)}function b(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function x(Y){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},x(Y)}function A(Y,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(X&&X.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),X&&m(Y,X)}function m(Y,X){return m=Object.setPrototypeOf||function(D,q){return D.__proto__=q,D},m(Y,X)}var u={},N,C;function j(Y,X,D){D||(D=Error);function q(T,G,f){return typeof X=="string"?X:X(T,G,f)}var M=function(T){A(G,T);function G(f,w,S){var y;return p(this,G),y=l(this,x(G).call(this,q(f,w,S))),y.code=Y,y}return G}(D);u[Y]=M}function n(Y,X){if(Array.isArray(Y)){var D=Y.length;return Y=Y.map(function(q){return String(q)}),D>2?"one of ".concat(X," ").concat(Y.slice(0,D-1).join(", "),", or ")+Y[D-1]:D===2?"one of ".concat(X," ").concat(Y[0]," or ").concat(Y[1]):"of ".concat(X," ").concat(Y[0])}else return"of ".concat(X," ").concat(String(Y))}function h(Y,X,D){return Y.substr(!D||D<0?0:+D,X.length)===X}function R(Y,X,D){return(D===void 0||D>Y.length)&&(D=Y.length),Y.substring(D-X.length,D)===X}function I(Y,X,D){return typeof D!="number"&&(D=0),D+X.length>Y.length?!1:Y.indexOf(X,D)!==-1}j("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),j("ERR_INVALID_ARG_TYPE",function(Y,X,D){N===void 0&&(N=z1()),N(typeof Y=="string","'name' must be a string");var q;typeof X=="string"&&h(X,"not ")?(q="must not be",X=X.replace(/^not /,"")):q="must be";var M;if(R(Y," argument"))M="The ".concat(Y," ").concat(q," ").concat(n(X,"type"));else{var T=I(Y,".")?"property":"argument";M='The "'.concat(Y,'" ').concat(T," ").concat(q," ").concat(n(X,"type"))}return M+=". Received type ".concat(P(D)),M},TypeError),j("ERR_INVALID_ARG_VALUE",function(Y,X){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid",q=C.inspect(X);return q.length>128&&(q="".concat(q.slice(0,128),"...")),"The argument '".concat(Y,"' ").concat(D,". Received ").concat(q)},TypeError,RangeError),j("ERR_INVALID_RETURN_VALUE",function(Y,X,D){var q;return D&&D.constructor&&D.constructor.name?q="instance of ".concat(D.constructor.name):q="type ".concat(P(D)),"Expected ".concat(Y,' to be returned from the "').concat(X,'"')+" function but got ".concat(q,".")},TypeError),j("ERR_MISSING_ARGS",function(){for(var Y=arguments.length,X=new Array(Y),D=0;D<Y;D++)X[D]=arguments[D];N===void 0&&(N=z1()),N(X.length>0,"At least one arg needs to be specified");var q="The ",M=X.length;switch(X=X.map(function(T){return'"'.concat(T,'"')}),M){case 1:q+="".concat(X[0]," argument");break;case 2:q+="".concat(X[0]," and ").concat(X[1]," arguments");break;default:q+=X.slice(0,M-1).join(", "),q+=", and ".concat(X[M-1]," arguments");break}return"".concat(q," must be specified")},TypeError),L.exports.codes=u}}),B1=X1({"assert/build/internal/assert/assertion_error.js"(i,L){function P(U){for(var J=1;J<arguments.length;J++){var W=arguments[J]!=null?arguments[J]:{},V=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(V=V.concat(Object.getOwnPropertySymbols(W).filter(function(v){return Object.getOwnPropertyDescriptor(W,v).enumerable}))),V.forEach(function(v){p(U,v,W[v])})}return U}function p(U,J,W){return(J in U)?Object.defineProperty(U,J,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[J]=W,U}function l(U,J){if(!(U instanceof J))throw new TypeError("Cannot call a class as a function")}function b(U,J){for(var W=0;W<J.length;W++){var V=J[W];V.enumerable=V.enumerable||!1,V.configurable=!0,("value"in V)&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function x(U,J,W){return J&&b(U.prototype,J),W&&b(U,W),U}function A(U,J){return J&&(I(J)==="object"||typeof J=="function")?J:m(U)}function m(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function u(U,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(J&&J.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),J&&h(U,J)}function N(U){var J=typeof Map=="function"?new Map:void 0;return N=function(W){if(W===null||!n(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof J!="undefined"){if(J.has(W))return J.get(W);J.set(W,V)}function V(){return j(W,arguments,R(this).constructor)}return V.prototype=Object.create(W.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),h(V,W)},N(U)}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function j(U,J,W){return C()?j=Reflect.construct:j=function(V,v,Z){var H=[null];H.push.apply(H,v);var Q=Function.bind.apply(V,H),z=new Q;return Z&&h(z,Z.prototype),z},j.apply(null,arguments)}function n(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function h(U,J){return h=Object.setPrototypeOf||function(W,V){return W.__proto__=V,W},h(U,J)}function R(U){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(J){return J.__proto__||Object.getPrototypeOf(J)},R(U)}function I(U){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(J){return typeof J}:I=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},I(U)}var Y=J1.inspect,X=W1(),D=X.codes.ERR_INVALID_ARG_TYPE;function q(U,J,W){return(W===void 0||W>U.length)&&(W=U.length),U.substring(W-J.length,W)===J}function M(U,J){if(J=Math.floor(J),U.length==0||J==0)return"";var W=U.length*J;for(J=Math.floor(Math.log(J)/Math.log(2));J;)U+=U,J--;return U+=U.substring(0,W-U.length),U}var T="",G="",f="",w="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},y=10;function c(U){var J=Object.keys(U),W=Object.create(Object.getPrototypeOf(U));return J.forEach(function(V){W[V]=U[V]}),Object.defineProperty(W,"message",{value:U.message}),W}function g(U){return Y(U,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:Infinity,showHidden:!1,breakLength:Infinity,showProxy:!1,sorted:!0,getters:!0})}function r(U,J,W){var V="",v="",Z=0,H="",Q=!1,z=g(U),$=z.split(`
+`),K=g(J).split(`
+`),B=0,O="";if(W==="strictEqual"&&I(U)==="object"&&I(J)==="object"&&U!==null&&J!==null&&(W="strictEqualObject"),$.length===1&&K.length===1&&$[0]!==K[0]){var F=$[0].length+K[0].length;if(F<=y){if((I(U)!=="object"||U===null)&&(I(J)!=="object"||J===null)&&(U!==0||J!==0))return"".concat(S[W],`
-`)+"".concat(u[0]," !== ").concat(i[0],`
-`)}else if(k!=="strictEqualObject"){var c=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(l<c){for(;u[0][p]===i[0][p];)p++;p>2&&(n=`
- `.concat(N(" ",p),"^"),p=0)}}}for(var o=u[u.length-1],a=i[i.length-1];o===a&&(p++<2?g=`
- `.concat(o).concat(g):x=o,u.pop(),i.pop(),!(u.length===0||i.length===0));)o=u[u.length-1],a=i[i.length-1];var t=Math.max(u.length,i.length);if(t===0){var s=_.split(`
-`);if(s.length>30)for(s[26]="".concat(A,"...").concat(S);s.length>27;)s.pop();return"".concat(j.notIdentical,`
+`)+"".concat($[0]," !== ").concat(K[0],`
+`)}else if(W!=="strictEqualObject"){var d=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(F<d){for(;$[0][B]===K[0][B];)B++;B>2&&(O=`
+ `.concat(M(" ",B),"^"),B=0)}}}for(var e=$[$.length-1],U1=K[K.length-1];e===U1&&(B++<2?H=`
+ `.concat(e).concat(H):V=e,$.pop(),K.pop(),!($.length===0||K.length===0));)e=$[$.length-1],U1=K[K.length-1];var Q1=Math.max($.length,K.length);if(Q1===0){var o=z.split(`
+`);if(o.length>30)for(o[26]="".concat(T,"...").concat(w);o.length>27;)o.pop();return"".concat(S.notIdentical,`
-`).concat(s.join(`
+`).concat(o.join(`
`),`
-`)}p>3&&(g=`
-`.concat(A,"...").concat(S).concat(g),d=!0),x!==""&&(g=`
- `.concat(x).concat(g),x="");var r=0,e=j[k]+`
-`.concat(I,"+ actual").concat(S," ").concat(P,"- expected").concat(S),H0=" ".concat(A,"...").concat(S," Lines skipped");for(p=0;p<t;p++){var Q0=p-m;if(u.length<p+1)Q0>1&&p>2&&(Q0>4?(y+=`
-`.concat(A,"...").concat(S),d=!0):Q0>3&&(y+=`
- `.concat(i[p-2]),r++),y+=`
- `.concat(i[p-1]),r++),m=p,x+=`
-`.concat(P,"-").concat(S," ").concat(i[p]),r++;else if(i.length<p+1)Q0>1&&p>2&&(Q0>4?(y+=`
-`.concat(A,"...").concat(S),d=!0):Q0>3&&(y+=`
- `.concat(u[p-2]),r++),y+=`
- `.concat(u[p-1]),r++),m=p,y+=`
-`.concat(I,"+").concat(S," ").concat(u[p]),r++;else{var Z0=i[p],J0=u[p],z0=J0!==Z0&&(!O(J0,",")||J0.slice(0,-1)!==Z0);z0&&O(Z0,",")&&Z0.slice(0,-1)===J0&&(z0=!1,J0+=","),z0?(Q0>1&&p>2&&(Q0>4?(y+=`
-`.concat(A,"...").concat(S),d=!0):Q0>3&&(y+=`
- `.concat(u[p-2]),r++),y+=`
- `.concat(u[p-1]),r++),m=p,y+=`
-`.concat(I,"+").concat(S," ").concat(J0),x+=`
-`.concat(P,"-").concat(S," ").concat(Z0),r+=2):(y+=x,x="",(Q0===1||p===0)&&(y+=`
- `.concat(J0),r++))}if(r>20&&p<t-2)return"".concat(e).concat(H0,`
-`).concat(y,`
-`).concat(A,"...").concat(S).concat(x,`
-`)+"".concat(A,"...").concat(S)}return"".concat(e).concat(d?H0:"",`
-`).concat(y).concat(x).concat(g).concat(n)}var L=function(b){U(h,b);function h(k){var x;if(z(this,h),q(k)!=="object"||k===null)throw new F("options","Object",k);var{message:y,operator:m,stackStartFn:g,actual:d,expected:_}=k,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,y!=null)x=Y(this,G(h).call(this,String(y)));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(A="",I="",S="",P=""):(A="",I="",S="",P="")),q(d)==="object"&&d!==null&&q(_)==="object"&&_!==null&&("stack"in d)&&d instanceof Error&&("stack"in _)&&_ instanceof Error&&(d=f(d),_=f(_)),m==="deepStrictEqual"||m==="strictEqual")x=Y(this,G(h).call(this,E(d,_,m)));else if(m==="notDeepStrictEqual"||m==="notStrictEqual"){var i=j[m],p=C(d).split(`
-`);if(m==="notStrictEqual"&&q(d)==="object"&&d!==null&&(i=j.notStrictEqualObject),p.length>30)for(p[26]="".concat(A,"...").concat(S);p.length>27;)p.pop();p.length===1?x=Y(this,G(h).call(this,"".concat(i," ").concat(p[0]))):x=Y(this,G(h).call(this,"".concat(i,`
+`)}B>3&&(H=`
+`.concat(T,"...").concat(w).concat(H),Q=!0),V!==""&&(H=`
+ `.concat(V).concat(H),V="");var E=0,$1=S[W]+`
+`.concat(G,"+ actual").concat(w," ").concat(f,"- expected").concat(w),K1=" ".concat(T,"...").concat(w," Lines skipped");for(B=0;B<Q1;B++){var k=B-Z;if($.length<B+1)k>1&&B>2&&(k>4?(v+=`
+`.concat(T,"...").concat(w),Q=!0):k>3&&(v+=`
+ `.concat(K[B-2]),E++),v+=`
+ `.concat(K[B-1]),E++),Z=B,V+=`
+`.concat(f,"-").concat(w," ").concat(K[B]),E++;else if(K.length<B+1)k>1&&B>2&&(k>4?(v+=`
+`.concat(T,"...").concat(w),Q=!0):k>3&&(v+=`
+ `.concat($[B-2]),E++),v+=`
+ `.concat($[B-1]),E++),Z=B,v+=`
+`.concat(G,"+").concat(w," ").concat($[B]),E++;else{var a=K[B],_=$[B],Z1=_!==a&&(!q(_,",")||_.slice(0,-1)!==a);Z1&&q(a,",")&&a.slice(0,-1)===_&&(Z1=!1,_+=","),Z1?(k>1&&B>2&&(k>4?(v+=`
+`.concat(T,"...").concat(w),Q=!0):k>3&&(v+=`
+ `.concat($[B-2]),E++),v+=`
+ `.concat($[B-1]),E++),Z=B,v+=`
+`.concat(G,"+").concat(w," ").concat(_),V+=`
+`.concat(f,"-").concat(w," ").concat(a),E+=2):(v+=V,V="",(k===1||B===0)&&(v+=`
+ `.concat(_),E++))}if(E>20&&B<Q1-2)return"".concat($1).concat(K1,`
+`).concat(v,`
+`).concat(T,"...").concat(w).concat(V,`
+`)+"".concat(T,"...").concat(w)}return"".concat($1).concat(Q?K1:"",`
+`).concat(v).concat(V).concat(H).concat(O)}var s=function(U){u(J,U);function J(W){var V;if(l(this,J),I(W)!=="object"||W===null)throw new D("options","Object",W);var{message:v,operator:Z,stackStartFn:H,actual:Q,expected:z}=W,$=Error.stackTraceLimit;if(Error.stackTraceLimit=0,v!=null)V=A(this,R(J).call(this,String(v)));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(T="",G="",w="",f=""):(T="",G="",w="",f="")),I(Q)==="object"&&Q!==null&&I(z)==="object"&&z!==null&&("stack"in Q)&&Q instanceof Error&&("stack"in z)&&z instanceof Error&&(Q=c(Q),z=c(z)),Z==="deepStrictEqual"||Z==="strictEqual")V=A(this,R(J).call(this,r(Q,z,Z)));else if(Z==="notDeepStrictEqual"||Z==="notStrictEqual"){var K=S[Z],B=g(Q).split(`
+`);if(Z==="notStrictEqual"&&I(Q)==="object"&&Q!==null&&(K=S.notStrictEqualObject),B.length>30)for(B[26]="".concat(T,"...").concat(w);B.length>27;)B.pop();B.length===1?V=A(this,R(J).call(this,"".concat(K," ").concat(B[0]))):V=A(this,R(J).call(this,"".concat(K,`
-`).concat(p.join(`
+`).concat(B.join(`
`),`
-`)))}else{var n=C(d),l="",c=j[m];m==="notDeepEqual"||m==="notEqual"?(n="".concat(j[m],`
+`)))}else{var O=g(Q),F="",d=S[Z];Z==="notDeepEqual"||Z==="notEqual"?(O="".concat(S[Z],`
-`).concat(n),n.length>1024&&(n="".concat(n.slice(0,1021),"..."))):(l="".concat(C(_)),n.length>512&&(n="".concat(n.slice(0,509),"...")),l.length>512&&(l="".concat(l.slice(0,509),"...")),m==="deepEqual"||m==="equal"?n="".concat(c,`
+`).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(F="".concat(g(z)),O.length>512&&(O="".concat(O.slice(0,509),"...")),F.length>512&&(F="".concat(F.slice(0,509),"...")),Z==="deepEqual"||Z==="equal"?O="".concat(d,`
-`).concat(n,`
+`).concat(O,`
should equal
-`):l=" ".concat(m," ").concat(l)),x=Y(this,G(h).call(this,"".concat(n).concat(l)))}return Error.stackTraceLimit=u,x.generatedMessage=!y,Object.defineProperty($(x),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),x.code="ERR_ASSERTION",x.actual=d,x.expected=_,x.operator=m,Error.captureStackTrace&&Error.captureStackTrace($(x),g),x.stack,x.name="AssertionError",Y(x)}return K(h,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:T.custom,value:function(k,x){return T(this,Z({},x,{customInspect:!1,depth:0}))}}]),h}(W(Error));Q.exports=L}}),Y0=U0({"assert/build/assert.js"(H,Q){function Z(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(m){return typeof m}:Z=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Z(y)}function J(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var z=W0(),X=z.codes,K=X.ERR_AMBIGUOUS_ARGUMENT,Y=X.ERR_INVALID_ARG_TYPE,$=X.ERR_INVALID_ARG_VALUE,U=X.ERR_INVALID_RETURN_VALUE,W=X.ERR_MISSING_ARGS,B=B0(),D=K0("util"),V=D.inspect,M=K0("util").types,G=M.isPromise,q=M.isRegExp,v=Object.assign,T=Object.is,w=new Map,F=!1,O=Q.exports=S,N={};function A(y){throw y.message instanceof Error?y.message:new B(y)}function I(y,m,g,d,_){var u=arguments.length,i;if(u===0)i="Failed";else if(u===1)g=y,y=void 0;else{if(F===!1){F=!0;var p=process.emitWarning?process.emitWarning:console.warn.bind(console);p("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}u===2&&(d="!=")}if(g instanceof Error)throw g;var n={actual:y,expected:m,operator:d===void 0?"fail":d,stackStartFn:_||I};g!==void 0&&(n.message=g);var l=new B(n);throw i&&(l.message=i,l.generatedMessage=!0),l}O.fail=I,O.AssertionError=B;function P(y,m,g,d){if(!g){var _=!1;if(m===0)_=!0,d="No value argument passed to `assert.ok()`";else if(d instanceof Error)throw d;var u=new B({actual:g,expected:!0,message:d,operator:"==",stackStartFn:y});throw u.generatedMessage=_,u}}function S(){for(var y=arguments.length,m=new Array(y),g=0;g<y;g++)m[g]=arguments[g];P.apply(void 0,[S,m.length].concat(m))}O.ok=S,O.equal=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");m!=g&&A({actual:m,expected:g,message:d,operator:"==",stackStartFn:y})},O.notEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");m==g&&A({actual:m,expected:g,message:d,operator:"!=",stackStartFn:y})},O.deepEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");X0(m,g,!1)||A({actual:m,expected:g,message:d,operator:"deepEqual",stackStartFn:y})},O.notDeepEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");X0(m,g,!1)&&A({actual:m,expected:g,message:d,operator:"notDeepEqual",stackStartFn:y})},O.deepStrictEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");X0(m,g,!0)||A({actual:m,expected:g,message:d,operator:"deepStrictEqual",stackStartFn:y})},O.notDeepStrictEqual=j;function j(y,m,g){if(arguments.length<2)throw new W("actual","expected");X0(y,m,!0)&&A({actual:y,expected:m,message:g,operator:"notDeepStrictEqual",stackStartFn:j})}O.strictEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");T(m,g)||A({actual:m,expected:g,message:d,operator:"strictEqual",stackStartFn:y})},O.notStrictEqual=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");T(m,g)&&A({actual:m,expected:g,message:d,operator:"notStrictEqual",stackStartFn:y})},O.match=function y(m,g,d){if(arguments.length<2)throw new W("actual","expected");if(!q(g))throw new Y("expected","RegExp",g);g.test(m)||A({actual:m,expected:g,message:d,operator:"match",stackStartFn:y})};var R=function y(m,g,d){var _=this;J(this,y),g.forEach(function(u){(u in m)&&(d!==void 0&&typeof d[u]=="string"&&q(m[u])&&m[u].test(d[u])?_[u]=d[u]:_[u]=m[u])})};function f(y,m,g,d,_,u){if(!(g in y)||!X0(y[g],m[g],!0)){if(!d){var i=new R(y,_),p=new R(m,_,y),n=new B({actual:i,expected:p,operator:"deepStrictEqual",stackStartFn:u});throw n.actual=y,n.expected=m,n.operator=u.name,n}A({actual:y,expected:m,message:d,operator:u.name,stackStartFn:u})}}function C(y,m,g,d){if(typeof m!="function"){if(q(m))return m.test(y);if(arguments.length===2)throw new Y("expected",["Function","RegExp"],m);if(Z(y)!=="object"||y===null){var _=new B({actual:y,expected:m,message:g,operator:"deepStrictEqual",stackStartFn:d});throw _.operator=d.name,_}var u=Object.keys(m);if(m instanceof Error)u.push("name","message");else if(u.length===0)throw new $("error",m,"may not be an empty object");return u.forEach(function(i){return typeof y[i]=="string"&&q(m[i])&&m[i].test(y[i])||f(y,m,i,g,u,d)}),!0}return m.prototype!==void 0&&y instanceof m?!0:Error.isPrototypeOf(m)?!1:m.call({},y)===!0}function E(y){if(typeof y!="function")throw new Y("fn","Function",y);try{y()}catch(m){return m}return N}function L(y){return G(y)||y!==null&&Z(y)==="object"&&typeof y.then=="function"&&typeof y.catch=="function"}function b(y){return Promise.resolve().then(function(){var m;if(typeof y=="function"){if(m=y(),!L(m))throw new U("instance of Promise","promiseFn",m)}else if(L(y))m=y;else throw new Y("promiseFn",["Function","Promise"],y);return Promise.resolve().then(function(){return m}).then(function(){return N}).catch(function(g){return g})})}function h(y,m,g,d){if(typeof g=="string"){if(arguments.length===4)throw new Y("error",["Object","Error","Function","RegExp"],g);if(Z(m)==="object"&&m!==null){if(m.message===g)throw new K("error/message",'The error message "'.concat(m.message,'" is identical to the message.'))}else if(m===g)throw new K("error/message",'The error "'.concat(m,'" is identical to the message.'));d=g,g=void 0}else if(g!=null&&Z(g)!=="object"&&typeof g!="function")throw new Y("error",["Object","Error","Function","RegExp"],g);if(m===N){var _="";g&&g.name&&(_+=" (".concat(g.name,")")),_+=d?": ".concat(d):".";var u=y.name==="rejects"?"rejection":"exception";A({actual:void 0,expected:g,operator:y.name,message:"Missing expected ".concat(u).concat(_),stackStartFn:y})}if(g&&!C(m,g,d,y))throw m}function k(y,m,g,d){if(m!==N){if(typeof g=="string"&&(d=g,g=void 0),!g||C(m,g)){var _=d?": ".concat(d):".",u=y.name==="doesNotReject"?"rejection":"exception";A({actual:m,expected:g,operator:y.name,message:"Got unwanted ".concat(u).concat(_,`
-`)+'Actual message: "'.concat(m&&m.message,'"'),stackStartFn:y})}throw m}}O.throws=function y(m){for(var g=arguments.length,d=new Array(g>1?g-1:0),_=1;_<g;_++)d[_-1]=arguments[_];h.apply(void 0,[y,E(m)].concat(d))},O.rejects=function y(m){for(var g=arguments.length,d=new Array(g>1?g-1:0),_=1;_<g;_++)d[_-1]=arguments[_];return b(m).then(function(u){return h.apply(void 0,[y,u].concat(d))})},O.doesNotThrow=function y(m){for(var g=arguments.length,d=new Array(g>1?g-1:0),_=1;_<g;_++)d[_-1]=arguments[_];k.apply(void 0,[y,E(m)].concat(d))},O.doesNotReject=function y(m){for(var g=arguments.length,d=new Array(g>1?g-1:0),_=1;_<g;_++)d[_-1]=arguments[_];return b(m).then(function(u){return k.apply(void 0,[y,u].concat(d))})},O.ifError=function y(m){if(m!=null){var g="ifError got unwanted exception: ";Z(m)==="object"&&typeof m.message=="string"?m.message.length===0&&m.constructor?g+=m.constructor.name:g+=m.message:g+=V(m);var d=new B({actual:m,expected:null,operator:"ifError",message:g,stackStartFn:y}),_=m.stack;if(typeof _=="string"){var u=_.split(`
-`);u.shift();for(var i=d.stack.split(`
-`),p=0;p<u.length;p++){var n=i.indexOf(u[p]);if(n!==-1){i=i.slice(0,n);break}}d.stack="".concat(i.join(`
+`):F=" ".concat(Z," ").concat(F)),V=A(this,R(J).call(this,"".concat(O).concat(F)))}return Error.stackTraceLimit=$,V.generatedMessage=!v,Object.defineProperty(m(V),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),V.code="ERR_ASSERTION",V.actual=Q,V.expected=z,V.operator=Z,Error.captureStackTrace&&Error.captureStackTrace(m(V),H),V.stack,V.name="AssertionError",A(V)}return x(J,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:Y.custom,value:function(W,V){return Y(this,P({},V,{customInspect:!1,depth:0}))}}]),J}(N(Error));L.exports=s}}),z1=X1({"assert/build/assert.js"(i,L){function P(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(H){return typeof H}:P=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},P(Z)}function p(Z,H){if(!(Z instanceof H))throw new TypeError("Cannot call a class as a function")}var l=W1(),b=l.codes,x=b.ERR_AMBIGUOUS_ARGUMENT,A=b.ERR_INVALID_ARG_TYPE,m=b.ERR_INVALID_ARG_VALUE,u=b.ERR_INVALID_RETURN_VALUE,N=b.ERR_MISSING_ARGS,C=B1(),j=J1,n=j.inspect,h=J1.types,R=h.isPromise,I=h.isRegExp,Y=Object.assign,X=Object.is,D=new Map,q=!1,M=L.exports=S,T={};function G(Z){throw Z.message instanceof Error?Z.message:new C(Z)}function f(Z,H,Q,z,$){var K=arguments.length,B;if(K===0)B="Failed";else if(K===1)Q=Z,Z=void 0;else{if(q===!1){q=!0;var O=process.emitWarning?process.emitWarning:console.warn.bind(console);O("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}K===2&&(z="!=")}if(Q instanceof Error)throw Q;var F={actual:Z,expected:H,operator:z===void 0?"fail":z,stackStartFn:$||f};Q!==void 0&&(F.message=Q);var d=new C(F);throw B&&(d.message=B,d.generatedMessage=!0),d}M.fail=f,M.AssertionError=C;function w(Z,H,Q,z){if(!Q){var $=!1;if(H===0)$=!0,z="No value argument passed to `assert.ok()`";else if(z instanceof Error)throw z;var K=new C({actual:Q,expected:!0,message:z,operator:"==",stackStartFn:Z});throw K.generatedMessage=$,K}}function S(){for(var Z=arguments.length,H=new Array(Z),Q=0;Q<Z;Q++)H[Q]=arguments[Q];w.apply(void 0,[S,H.length].concat(H))}M.ok=S,M.equal=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");H!=Q&&G({actual:H,expected:Q,message:z,operator:"==",stackStartFn:Z})},M.notEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");H==Q&&G({actual:H,expected:Q,message:z,operator:"!=",stackStartFn:Z})},M.deepEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");t(H,Q,!1)||G({actual:H,expected:Q,message:z,operator:"deepEqual",stackStartFn:Z})},M.notDeepEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");t(H,Q,!1)&&G({actual:H,expected:Q,message:z,operator:"notDeepEqual",stackStartFn:Z})},M.deepStrictEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");t(H,Q,!0)||G({actual:H,expected:Q,message:z,operator:"deepStrictEqual",stackStartFn:Z})},M.notDeepStrictEqual=y;function y(Z,H,Q){if(arguments.length<2)throw new N("actual","expected");t(Z,H,!0)&&G({actual:Z,expected:H,message:Q,operator:"notDeepStrictEqual",stackStartFn:y})}M.strictEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");X(H,Q)||G({actual:H,expected:Q,message:z,operator:"strictEqual",stackStartFn:Z})},M.notStrictEqual=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");X(H,Q)&&G({actual:H,expected:Q,message:z,operator:"notStrictEqual",stackStartFn:Z})},M.match=function Z(H,Q,z){if(arguments.length<2)throw new N("actual","expected");if(!I(Q))throw new A("expected","RegExp",Q);Q.test(H)||G({actual:H,expected:Q,message:z,operator:"match",stackStartFn:Z})};var c=function Z(H,Q,z){var $=this;p(this,Z),Q.forEach(function(K){(K in H)&&(z!==void 0&&typeof z[K]=="string"&&I(H[K])&&H[K].test(z[K])?$[K]=z[K]:$[K]=H[K])})};function g(Z,H,Q,z,$,K){if(!(Q in Z)||!t(Z[Q],H[Q],!0)){if(!z){var B=new c(Z,$),O=new c(H,$,Z),F=new C({actual:B,expected:O,operator:"deepStrictEqual",stackStartFn:K});throw F.actual=Z,F.expected=H,F.operator=K.name,F}G({actual:Z,expected:H,message:z,operator:K.name,stackStartFn:K})}}function r(Z,H,Q,z){if(typeof H!="function"){if(I(H))return H.test(Z);if(arguments.length===2)throw new A("expected",["Function","RegExp"],H);if(P(Z)!=="object"||Z===null){var $=new C({actual:Z,expected:H,message:Q,operator:"deepStrictEqual",stackStartFn:z});throw $.operator=z.name,$}var K=Object.keys(H);if(H instanceof Error)K.push("name","message");else if(K.length===0)throw new m("error",H,"may not be an empty object");return K.forEach(function(B){return typeof Z[B]=="string"&&I(H[B])&&H[B].test(Z[B])||g(Z,H,B,Q,K,z)}),!0}return H.prototype!==void 0&&Z instanceof H?!0:Error.isPrototypeOf(H)?!1:H.call({},Z)===!0}function s(Z){if(typeof Z!="function")throw new A("fn","Function",Z);try{Z()}catch(H){return H}return T}function U(Z){return R(Z)||Z!==null&&P(Z)==="object"&&typeof Z.then=="function"&&typeof Z.catch=="function"}function J(Z){return Promise.resolve().then(function(){var H;if(typeof Z=="function"){if(H=Z(),!U(H))throw new u("instance of Promise","promiseFn",H)}else if(U(Z))H=Z;else throw new A("promiseFn",["Function","Promise"],Z);return Promise.resolve().then(function(){return H}).then(function(){return T}).catch(function(Q){return Q})})}function W(Z,H,Q,z){if(typeof Q=="string"){if(arguments.length===4)throw new A("error",["Object","Error","Function","RegExp"],Q);if(P(H)==="object"&&H!==null){if(H.message===Q)throw new x("error/message",'The error message "'.concat(H.message,'" is identical to the message.'))}else if(H===Q)throw new x("error/message",'The error "'.concat(H,'" is identical to the message.'));z=Q,Q=void 0}else if(Q!=null&&P(Q)!=="object"&&typeof Q!="function")throw new A("error",["Object","Error","Function","RegExp"],Q);if(H===T){var $="";Q&&Q.name&&($+=" (".concat(Q.name,")")),$+=z?": ".concat(z):".";var K=Z.name==="rejects"?"rejection":"exception";G({actual:void 0,expected:Q,operator:Z.name,message:"Missing expected ".concat(K).concat($),stackStartFn:Z})}if(Q&&!r(H,Q,z,Z))throw H}function V(Z,H,Q,z){if(H!==T){if(typeof Q=="string"&&(z=Q,Q=void 0),!Q||r(H,Q)){var $=z?": ".concat(z):".",K=Z.name==="doesNotReject"?"rejection":"exception";G({actual:H,expected:Q,operator:Z.name,message:"Got unwanted ".concat(K).concat($,`
+`)+'Actual message: "'.concat(H&&H.message,'"'),stackStartFn:Z})}throw H}}M.throws=function Z(H){for(var Q=arguments.length,z=new Array(Q>1?Q-1:0),$=1;$<Q;$++)z[$-1]=arguments[$];W.apply(void 0,[Z,s(H)].concat(z))},M.rejects=function Z(H){for(var Q=arguments.length,z=new Array(Q>1?Q-1:0),$=1;$<Q;$++)z[$-1]=arguments[$];return J(H).then(function(K){return W.apply(void 0,[Z,K].concat(z))})},M.doesNotThrow=function Z(H){for(var Q=arguments.length,z=new Array(Q>1?Q-1:0),$=1;$<Q;$++)z[$-1]=arguments[$];V.apply(void 0,[Z,s(H)].concat(z))},M.doesNotReject=function Z(H){for(var Q=arguments.length,z=new Array(Q>1?Q-1:0),$=1;$<Q;$++)z[$-1]=arguments[$];return J(H).then(function(K){return V.apply(void 0,[Z,K].concat(z))})},M.ifError=function Z(H){if(H!=null){var Q="ifError got unwanted exception: ";P(H)==="object"&&typeof H.message=="string"?H.message.length===0&&H.constructor?Q+=H.constructor.name:Q+=H.message:Q+=n(H);var z=new C({actual:H,expected:null,operator:"ifError",message:Q,stackStartFn:Z}),$=H.stack;if(typeof $=="string"){var K=$.split(`
+`);K.shift();for(var B=z.stack.split(`
+`),O=0;O<K.length;O++){var F=B.indexOf(K[O]);if(F!==-1){B=B.slice(0,F);break}}z.stack="".concat(B.join(`
`),`
-`).concat(u.join(`
-`))}throw d}};function x(){for(var y=arguments.length,m=new Array(y),g=0;g<y;g++)m[g]=arguments[g];P.apply(void 0,[x,m.length].concat(m))}O.strict=v(x,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict}}),D0=Y0();D0[Symbol.for("CommonJS")]=0;D0["CallTracker"]=V0;var{AssertionError:M0,assert:G0,deepEqual:q0,deepStrictEqual:v0,doesNotReject:T0,doesNotThrow:w0,equal:F0,fail:O0,ifError:N0,notDeepEqual:A0,notDeepStrictEqual:I0,notEqual:P0,notStrictEqual:S0,ok:j0,rejects:R0,strict:f0,strictEqual:C0,throws:E0}=D0,b0=D0;export{E0 as throws,C0 as strictEqual,f0 as strict,R0 as rejects,j0 as ok,S0 as notStrictEqual,P0 as notEqual,I0 as notDeepStrictEqual,A0 as notDeepEqual,N0 as ifError,O0 as fail,F0 as equal,w0 as doesNotThrow,T0 as doesNotReject,b0 as default,v0 as deepStrictEqual,q0 as deepEqual,G0 as assert,M0 as AssertionError};
+`).concat(K.join(`
+`))}throw z}};function v(){for(var Z=arguments.length,H=new Array(Z),Q=0;Q<Z;Q++)H[Q]=arguments[Q];w.apply(void 0,[v,H.length].concat(H))}M.strict=Y(v,M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}),M.strict.strict=M.strict}}),H1=z1();H1[Symbol.for("CommonJS")]=0;H1.CallTracker=V1;var{AssertionError:M1,assert:q1,deepEqual:v1,deepStrictEqual:G1,doesNotReject:T1,doesNotThrow:w1,equal:O1,fail:F1,ifError:N1,notDeepEqual:I1,notDeepStrictEqual:P1,notEqual:A1,notStrictEqual:S1,ok:j1,rejects:R1,strict:f1,strictEqual:C1,throws:E1}=H1,b1=H1;export{E1 as throws,C1 as strictEqual,f1 as strict,R1 as rejects,j1 as ok,S1 as notStrictEqual,A1 as notEqual,P1 as notDeepStrictEqual,I1 as notDeepEqual,N1 as ifError,F1 as fail,O1 as equal,w1 as doesNotThrow,T1 as doesNotReject,b1 as default,G1 as deepStrictEqual,v1 as deepEqual,q1 as assert,M1 as AssertionError};
diff --git a/src/js/out/modules/node/assert.strict.js b/src/js/out/modules/node/assert.strict.js
index 02f3ef3e9..d08a8e009 100644
--- a/src/js/out/modules/node/assert.strict.js
+++ b/src/js/out/modules/node/assert.strict.js
@@ -1,4 +1,4 @@
-var {strict: strictBase } = import.meta.require("node:assert");
+import {strict as strictBase} from "node:assert";
var {
fail,
AssertionError,
diff --git a/src/js/out/modules/node/async_hooks.js b/src/js/out/modules/node/async_hooks.js
index c1fdf050f..60a1fa0a8 100644
--- a/src/js/out/modules/node/async_hooks.js
+++ b/src/js/out/modules/node/async_hooks.js
@@ -1,3 +1,4 @@
+import {drainMicrotasks} from "bun:jsc";
var createHook = function() {
return {
enable() {
@@ -13,8 +14,6 @@ var createHook = function() {
return 0;
}, executionAsyncResource = function() {
return null;
-}, drainMicrotasks = () => {
- ({ drainMicrotasks } = import.meta.require("bun:jsc")), drainMicrotasks();
}, notImplemented = () => {
console.warn("[bun] Warning: async_hooks has not been implemented yet. See https://github.com/oven-sh/bun/issues/1832"), notImplemented = () => {
};
diff --git a/src/js/out/modules/node/child_process.js b/src/js/out/modules/node/child_process.js
index ddc16e9e9..84bf59e83 100644
--- a/src/js/out/modules/node/child_process.js
+++ b/src/js/out/modules/node/child_process.js
@@ -1,3 +1,7 @@
+import {EventEmitter} from "node:events";
+import * as StreamModule from "node:stream";
+import {constants} from "node:os";
+import {promisify} from "node:util";
function spawn(file, args, options) {
options = normalizeSpawnArguments(file, args, options), validateTimeout(options.timeout), validateAbortSignal(options.signal, "options.signal");
const killSignal2 = sanitizeKillSignal(options.killSignal), child = new ChildProcess;
@@ -449,19 +453,14 @@ var validateFunction = function(value, name) {
return new TypeError(`The value "${value}" is invalid for option "${name}"`);
}, ERR_INVALID_ARG_VALUE = function(name, value, reason) {
return new Error(`The value "${value}" is invalid for argument '${name}'. Reason: ${reason}`);
-}, EventEmitter = import.meta.require("node:events"), {
- Readable: { fromWeb: ReadableFromWeb },
- NativeWritable
-} = import.meta.require("node:stream"), {
- constants: { signals }
-} = import.meta.require("node:os"), { promisify } = import.meta.require("node:util"), { ArrayBuffer, Uint8Array, String, Object, Buffer, Promise: Promise2 } = import.meta.primordials, ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectDefineProperty = Object.defineProperty, BufferConcat = Buffer.concat, BufferIsEncoding = Buffer.isEncoding, kEmptyObject = ObjectCreate(null), ArrayPrototypePush = Array.prototype.push, ArrayPrototypeReduce = Array.prototype.reduce, ArrayPrototypeFilter = Array.prototype.filter, ArrayPrototypeJoin = Array.prototype.join, ArrayPrototypeMap = Array.prototype.map, ArrayPrototypeIncludes = Array.prototype.includes, ArrayPrototypeSlice = Array.prototype.slice, ArrayPrototypeUnshift = Array.prototype.unshift, ArrayIsArray = Array.isArray, ArrayBufferIsView = ArrayBuffer.isView, NumberIsInteger = Number.isInteger;
+}, signals = constants.signals, { ArrayBuffer, Uint8Array, String, Object, Buffer, Promise: Promise2 } = globalThis[Symbol.for("Bun.lazy")]("primordials"), ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectDefineProperty = Object.defineProperty, BufferConcat = Buffer.concat, BufferIsEncoding = Buffer.isEncoding, kEmptyObject = ObjectCreate(null), ArrayPrototypePush = Array.prototype.push, ArrayPrototypeJoin = Array.prototype.join, ArrayPrototypeMap = Array.prototype.map, ArrayPrototypeIncludes = Array.prototype.includes, ArrayPrototypeSlice = Array.prototype.slice, ArrayPrototypeUnshift = Array.prototype.unshift, ArrayIsArray = Array.isArray, ArrayBufferIsView = ArrayBuffer.isView, NumberIsInteger = Number.isInteger;
var StringPrototypeToUpperCase = String.prototype.toUpperCase, StringPrototypeIncludes = String.prototype.includes, StringPrototypeSlice = String.prototype.slice, Uint8ArrayPrototypeIncludes = Uint8Array.prototype.includes, MAX_BUFFER = 1048576, __DEBUG__ = process.env.DEBUG || !1, __TRACK_STDIO__ = process.env.DEBUG_STDIO, debug = __DEBUG__ ? console.log : () => {
};
if (__TRACK_STDIO__)
debug("child_process: debug mode on"), globalThis.__lastId = null, globalThis.__getId = () => {
return globalThis.__lastId !== null ? globalThis.__lastId++ : 0;
};
-var customPromiseExecFunction = (orig) => {
+var NativeWritable2, ReadableFromWeb, customPromiseExecFunction = (orig) => {
return (...args) => {
let resolve, reject;
const promise = new Promise2((res, rej) => {
@@ -520,12 +519,13 @@ class ChildProcess extends EventEmitter {
debug("ChildProcess: getBunSpawnIo: this.#handle is null. This means the subprocess already exited");
else
debug("ChildProcess: getBunSpawnIo: this.#handle is undefined");
+ NativeWritable2 ||= StreamModule.NativeWritable, ReadableFromWeb ||= StreamModule.Readable.fromWeb;
const io = this.#stdioOptions[i];
switch (i) {
case 0:
switch (io) {
case "pipe":
- return new NativeWritable(this.#handle.stdin);
+ return new NativeWritable2(this.#handle.stdin);
case "inherit":
return process.stdin || null;
case "destroyed":
@@ -537,10 +537,7 @@ class ChildProcess extends EventEmitter {
case 1:
switch (io) {
case "pipe":
- return ReadableFromWeb(this.#handle[fdToStdioName(i)], __TRACK_STDIO__ ? {
- encoding,
- __id: `PARENT_${fdToStdioName(i).toUpperCase()}-${globalThis.__getId()}`
- } : { encoding });
+ return ReadableFromWeb(this.#handle[fdToStdioName(i)], { encoding });
case "inherit":
return process[fdToStdioName(i)] || null;
case "destroyed":
diff --git a/src/js/out/modules/node/cluster.js b/src/js/out/modules/node/cluster.js
index 871fe0338..036e80380 100644
--- a/src/js/out/modules/node/cluster.js
+++ b/src/js/out/modules/node/cluster.js
@@ -1,4 +1,4 @@
-var EventEmitter = import.meta.require("node:events");
+import EventEmitter from "node:events";
// src/js/shared.ts
function throwNotImplemented(feature, issue) {
diff --git a/src/js/out/modules/node/crypto.js b/src/js/out/modules/node/crypto.js
index 063336164..fe812ee61 100644
--- a/src/js/out/modules/node/crypto.js
+++ b/src/js/out/modules/node/crypto.js
@@ -1,4 +1,4 @@
-var D$=Object.defineProperty;var C$=Object.getOwnPropertyNames;var L$=536870888,R$=($)=>import.meta.require($),F$=globalThis.crypto,P$=F$;var z$=($,Q)=>function(){return Q||(0,$[C$($)[0]])((Q={exports:{}}).exports,Q),Q.exports},M$=($,Q)=>{for(var Y in Q)D$($,Y,{get:Q[Y],enumerable:!0})};var S$=z$({"node_modules/safe-buffer/index.js"($,Q){var Y=R$("buffer"),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)}}}),v$=z$({"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=S$().Buffer,U=P$;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 J=V.allocUnsafe(K);if(K>0)if(K>Y)for(var O=0;O<K;O+=Y)U.getRandomValues(J.slice(O,O+Y));else U.getRandomValues(J);return typeof I=="function"?process.nextTick(function(){I(null,J)}):J}}}),q$=z$({"node_modules/inherits/inherits_browser.js"($,Q){typeof Object.create=="function"?Q.exports=function(Y,Z){Z&&(Y.super_=Z,Y.prototype=Object.create(Z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}))}:Q.exports=function(Y,Z){if(Z){Y.super_=Z;var G=function(){};G.prototype=Z.prototype,Y.prototype=new G,Y.prototype.constructor=Y}}}}),j$=z$({"node_modules/hash-base/index.js"($,Q){var Y=S$().Buffer,Z=R$("readable-stream").Transform,G=q$();function V(X,K){if(!Y.isBuffer(X)&&typeof X!="string")throw new TypeError(K+" must be a string or a buffer")}function U(X){Z.call(this),this._block=Y.allocUnsafe(X),this._blockSize=X,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}G(U,Z),U.prototype._transform=function(X,K,I){var J=null;try{this.update(X,K)}catch(O){J=O}I(J)},U.prototype._flush=function(X){var K=null;try{this.push(this.digest())}catch(I){K=I}X(K)},U.prototype.update=function(X,K){if(V(X,"Data"),this._finalized)throw new Error("Digest already called");Y.isBuffer(X)||(X=Y.from(X,K));for(var I=this._block,J=0;this._blockOffset+X.length-J>=this._blockSize;){for(var O=this._blockOffset;O<this._blockSize;)I[O++]=X[J++];this._update(),this._blockOffset=0}for(;J<X.length;)I[this._blockOffset++]=X[J++];for(var F=0,A=X.length*8;A>0;++F)this._length[F]+=A,A=this._length[F]/4294967296|0,A>0&&(this._length[F]-=4294967296*A);return this},U.prototype._update=function(){throw new Error("_update is not implemented")},U.prototype.digest=function(X){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var K=this._digest();X!==void 0&&(K=K.toString(X)),this._block.fill(0),this._blockOffset=0;for(var I=0;I<4;++I)this._length[I]=0;return K},U.prototype._digest=function(){throw new Error("_digest is not implemented")},Q.exports=U}}),k$=z$({"node_modules/md5.js/index.js"($,Q){var Y=q$(),Z=j$(),G=S$().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 W=this._a,H=this._b,E=this._c,T=this._d;W=K(W,H,E,T,F[0],3614090360,7),T=K(T,W,H,E,F[1],3905402710,12),E=K(E,T,W,H,F[2],606105819,17),H=K(H,E,T,W,F[3],3250441966,22),W=K(W,H,E,T,F[4],4118548399,7),T=K(T,W,H,E,F[5],1200080426,12),E=K(E,T,W,H,F[6],2821735955,17),H=K(H,E,T,W,F[7],4249261313,22),W=K(W,H,E,T,F[8],1770035416,7),T=K(T,W,H,E,F[9],2336552879,12),E=K(E,T,W,H,F[10],4294925233,17),H=K(H,E,T,W,F[11],2304563134,22),W=K(W,H,E,T,F[12],1804603682,7),T=K(T,W,H,E,F[13],4254626195,12),E=K(E,T,W,H,F[14],2792965006,17),H=K(H,E,T,W,F[15],1236535329,22),W=I(W,H,E,T,F[1],4129170786,5),T=I(T,W,H,E,F[6],3225465664,9),E=I(E,T,W,H,F[11],643717713,14),H=I(H,E,T,W,F[0],3921069994,20),W=I(W,H,E,T,F[5],3593408605,5),T=I(T,W,H,E,F[10],38016083,9),E=I(E,T,W,H,F[15],3634488961,14),H=I(H,E,T,W,F[4],3889429448,20),W=I(W,H,E,T,F[9],568446438,5),T=I(T,W,H,E,F[14],3275163606,9),E=I(E,T,W,H,F[3],4107603335,14),H=I(H,E,T,W,F[8],1163531501,20),W=I(W,H,E,T,F[13],2850285829,5),T=I(T,W,H,E,F[2],4243563512,9),E=I(E,T,W,H,F[7],1735328473,14),H=I(H,E,T,W,F[12],2368359562,20),W=J(W,H,E,T,F[5],4294588738,4),T=J(T,W,H,E,F[8],2272392833,11),E=J(E,T,W,H,F[11],1839030562,16),H=J(H,E,T,W,F[14],4259657740,23),W=J(W,H,E,T,F[1],2763975236,4),T=J(T,W,H,E,F[4],1272893353,11),E=J(E,T,W,H,F[7],4139469664,16),H=J(H,E,T,W,F[10],3200236656,23),W=J(W,H,E,T,F[13],681279174,4),T=J(T,W,H,E,F[0],3936430074,11),E=J(E,T,W,H,F[3],3572445317,16),H=J(H,E,T,W,F[6],76029189,23),W=J(W,H,E,T,F[9],3654602809,4),T=J(T,W,H,E,F[12],3873151461,11),E=J(E,T,W,H,F[15],530742520,16),H=J(H,E,T,W,F[2],3299628645,23),W=O(W,H,E,T,F[0],4096336452,6),T=O(T,W,H,E,F[7],1126891415,10),E=O(E,T,W,H,F[14],2878612391,15),H=O(H,E,T,W,F[5],4237533241,21),W=O(W,H,E,T,F[12],1700485571,6),T=O(T,W,H,E,F[3],2399980690,10),E=O(E,T,W,H,F[10],4293915773,15),H=O(H,E,T,W,F[1],2240044497,21),W=O(W,H,E,T,F[8],1873313359,6),T=O(T,W,H,E,F[15],4264355552,10),E=O(E,T,W,H,F[6],2734768916,15),H=O(H,E,T,W,F[13],1309151649,21),W=O(W,H,E,T,F[4],4149444226,6),T=O(T,W,H,E,F[11],3174756917,10),E=O(E,T,W,H,F[2],718787259,15),H=O(H,E,T,W,F[9],3951481745,21),this._a=this._a+W|0,this._b=this._b+H|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<<A|F>>>32-A}function K(F,A,W,H,E,T,D){return X(F+(A&W|~A&H)+E+T|0,D)+A|0}function I(F,A,W,H,E,T,D){return X(F+(A&H|W&~H)+E+T|0,D)+A|0}function J(F,A,W,H,E,T,D){return X(F+(A^W^H)+E+T|0,D)+A|0}function O(F,A,W,H,E,T,D){return X(F+(W^(A|~H))+E+T|0,D)+A|0}Q.exports=U}}),g$=z$({"node_modules/ripemd160/index.js"($,Q){var Y=R$("buffer").Buffer,Z=q$(),G=j$(),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],J=[0,1518500249,1859775393,2400959708,2840853838],O=[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,N=0;N<80;N+=1){var x,_;N<16?(x=W(R,P,z,M,S,C[U[N]],J[0],K[N]),_=D(v,q,j,k,g,C[X[N]],O[0],I[N])):N<32?(x=H(R,P,z,M,S,C[U[N]],J[1],K[N]),_=T(v,q,j,k,g,C[X[N]],O[1],I[N])):N<48?(x=E(R,P,z,M,S,C[U[N]],J[2],K[N]),_=E(v,q,j,k,g,C[X[N]],O[2],I[N])):N<64?(x=T(R,P,z,M,S,C[U[N]],J[3],K[N]),_=H(v,q,j,k,g,C[X[N]],O[3],I[N])):(x=D(R,P,z,M,S,C[U[N]],J[4],K[N]),_=W(v,q,j,k,g,C[X[N]],O[4],I[N])),R=S,S=M,M=A(z,10),z=P,P=x,v=g,g=k,k=A(j,10),j=q,q=_}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<<L|C>>>32-L}function W(C,L,R,P,z,M,S,v){return A(C+(L^R^P)+M+S|0,v)+z|0}function H(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}}),N$=z$({"node_modules/sha.js/hash.js"($,Q){var Y=S$().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,J=0;J<K;){for(var O=I%X,F=Math.min(K-J,X-O),A=0;A<F;A++)U[O+A]=G[J+A];I+=F,J+=F,I%X===0&&this._update(U)}return this._len+=K,this},Z.prototype.digest=function(G){var V=this._len%this._blockSize;this._block[V]=128,this._block.fill(0,V+1),V>=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}}),x$=z$({"node_modules/sha.js/sha.js"($,Q){var Y=q$(),Z=N$(),G=S$().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(O){return O<<5|O>>>27}function I(O){return O<<30|O>>>2}function J(O,F,A,W){return O===0?F&A|~F&W:O===2?F&A|F&W|A&W:F^A^W}X.prototype._update=function(O){for(var F=this._w,A=this._a|0,W=this._b|0,H=this._c|0,E=this._d|0,T=this._e|0,D=0;D<16;++D)F[D]=O.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)+J(L,W,H,E)+T+F[C]+V[L]|0;T=E,E=H,H=I(W),W=A,A=R}this._a=A+this._a|0,this._b=W+this._b|0,this._c=H+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},X.prototype._hash=function(){var O=G.allocUnsafe(20);return O.writeInt32BE(this._a|0,0),O.writeInt32BE(this._b|0,4),O.writeInt32BE(this._c|0,8),O.writeInt32BE(this._d|0,12),O.writeInt32BE(this._e|0,16),O},Q.exports=X}}),_$=z$({"node_modules/sha.js/sha1.js"($,Q){var Y=q$(),Z=N$(),G=S$().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 J(F){return F<<30|F>>>2}function O(F,A,W,H){return F===0?A&W|~A&H:F===2?A&W|A&H|W&H:A^W^H}X.prototype._update=function(F){for(var A=this._w,W=this._a|0,H=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(W)+O(R,H,E,T)+D+A[L]+V[R]|0;D=T,T=E,E=J(H),H=W,W=P}this._a=W+this._a|0,this._b=H+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}}),B$=z$({"node_modules/sha.js/sha256.js"($,Q){var Y=q$(),Z=N$(),G=S$().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(W,H,E){return E^W&(H^E)}function I(W,H,E){return W&H|E&(W|H)}function J(W){return(W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10)}function O(W){return(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7)}function F(W){return(W>>>7|W<<25)^(W>>>18|W<<14)^W>>>3}function A(W){return(W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10}X.prototype._update=function(W){for(var H=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)H[M]=W.readInt32BE(M*4);for(;M<64;++M)H[M]=A(H[M-2])+H[M-7]+F(H[M-15])+H[M-16]|0;for(var S=0;S<64;++S){var v=z+O(L)+K(L,R,P)+V[S]+H[S]|0,q=J(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 W=G.allocUnsafe(32);return W.writeInt32BE(this._a,0),W.writeInt32BE(this._b,4),W.writeInt32BE(this._c,8),W.writeInt32BE(this._d,12),W.writeInt32BE(this._e,16),W.writeInt32BE(this._f,20),W.writeInt32BE(this._g,24),W.writeInt32BE(this._h,28),W},Q.exports=X}}),y$=z$({"node_modules/sha.js/sha224.js"($,Q){var Y=q$(),Z=B$(),G=N$(),V=S$().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}}),w$=z$({"node_modules/sha.js/sha512.js"($,Q){var Y=q$(),Z=N$(),G=S$().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 J(T,D){return(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)}function O(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 W(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^T>>>6}function H(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^(T>>>6|D<<26)}function E(T,D){return T>>>0<D>>>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,N=this._el|0,x=this._fl|0,_=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],f=D[y-30+1],p=F(w,f),c=A(f,w);w=D[y-4],f=D[y-4+1];var h=W(w,f),d=H(f,w),b=D[y-14],l=D[y-14+1],o=D[y-32],u=D[y-32+1],n=c+l|0,s=p+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),r=J(C,q),e=J(q,C),i=O(z,N),$0=O(N,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=e+a|0,K0=r+m+E(X0,e)|0;v=S,B=_,S=M,_=x,M=z,x=N,N=g+V0|0,z=P+U0+E(N,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+N|0,this._fl=this._fl+x|0,this._gl=this._gl+_|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,N)|0,this._fh=this._fh+M+E(this._fl,x)|0,this._gh=this._gh+S+E(this._gl,_)|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}}),f$=z$({"node_modules/sha.js/sha384.js"($,Q){var Y=q$(),Z=w$(),G=N$(),V=S$().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(J,O,F){K.writeInt32BE(J,F),K.writeInt32BE(O,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}}),p$=z$({"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=x$(),Y.sha1=_$(),Y.sha224=y$(),Y.sha256=B$(),Y.sha384=f$(),Y.sha512=w$()}}),c$=import.meta.require("node:stream"),h$=z$({"node_modules/cipher-base/index.js"($,Q){var Y=S$().Buffer,Z=c$.Transform,G=R$("string_decoder").StringDecoder,V=q$();function U(X){Z.call(this),this.hashMode=typeof X=="string",this.hashMode?this[X]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}V(U,Z),U.prototype.update=function(X,K,I){typeof X=="string"&&(X=Y.from(X,K));var J=this._update(X);return this.hashMode?this:(I&&(J=this._toString(J,I)),J)},U.prototype.setAutoPadding=function(){},U.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},U.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},U.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},U.prototype._transform=function(X,K,I){var J;try{this.hashMode?this._update(X):this.push(this._update(X))}catch(O){J=O}finally{I(J)}},U.prototype._flush=function(X){var K;try{this.push(this.__final())}catch(I){K=I}X(K)},U.prototype._finalOrDigest=function(X){var K=this.__final()||Y.alloc(0);return X&&(K=this._toString(K,X,!0)),K},U.prototype._toString=function(X,K,I){if(this._decoder||(this._decoder=new G(K),this._encoding=K),this._encoding!==K)throw new Error("can't switch encodings");var J=this._decoder.write(X);return I&&(J+=this._decoder.end()),J},Q.exports=U}}),d$=z$({"node_modules/create-hash/browser.js"($,Q){const{Transform:Y}=c$,Z=function U(X,K){this._options=K,this._hasher=new oY(X,K),this._finalized=!1};Z.prototype=Object.create(Y.prototype),Z.prototype.update=function U(X,K){return this._checkFinalized(),this._hasher.update(X,K),this},Z.prototype.digest=function U(X,K){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(X,K)},Z.prototype._checkFinalized=function U(){if(this._finalized){var X=new Error("Digest already called");throw X.code="ERR_CRYPTO_HASH_FINALIZED",X}},Z.prototype.copy=function U(){const X=Object.create(Z.prototype);return X._options=this._options,X._hasher=this._hasher.copy(),X._finalized=this._finalized,X};const G={__proto__:Y.prototype,...Z.prototype,_transform(U,X,K){this.update(U,X),K&&K()},_flush(U){this.push(this.digest()),U()}},V=["_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 U of V)Object.defineProperty(Z.prototype,U,{get(){return Object.setPrototypeOf(this,G),Y.call(this,this._options),this[U]},enumerable:!1,configurable:!0});Q.exports=function U(X){return new Z(X)},Q.exports.createHash=Q.exports,Q.exports.Hash=Z}}),b$=z$({"node_modules/create-hmac/legacy.js"($,Q){var Y=q$(),Z=S$().Buffer,G=h$(),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.length<U&&(I=Z.concat([I,V],U));for(var J=this._ipad=Z.allocUnsafe(U),O=this._opad=Z.allocUnsafe(U),F=0;F<U;F++)J[F]=I[F]^54,O[F]=I[F]^92;this._hash=[J]}Y(X,G),X.prototype._update=function(K){this._hash.push(K)},X.prototype._final=function(){var K=this._alg(Z.concat(this._hash));return this._alg(Z.concat([this._opad,K]))},Q.exports=X}}),l$=z$({"node_modules/create-hash/md5.js"($,Q){var Y=k$();Q.exports=function(Z){return new Y().update(Z).digest()}}}),o$=z$({"node_modules/create-hmac/browser.js"($,Q){var Y=q$(),Z=b$(),G=h$(),V=S$().Buffer,U=l$(),X=g$(),K=p$(),I=V.alloc(128);function J(O,F){G.call(this,"digest"),typeof F=="string"&&(F=V.from(F));var A=O==="sha512"||O==="sha384"?128:64;if(this._alg=O,this._key=F,F.length>A){var W=O==="rmd160"?new X:K(O);F=W.update(F).digest()}else F.length<A&&(F=V.concat([F,I],A));for(var H=this._ipad=V.allocUnsafe(A),E=this._opad=V.allocUnsafe(A),T=0;T<A;T++)H[T]=F[T]^54,E[T]=F[T]^92;this._hash=O==="rmd160"?new X:K(O),this._hash.update(H)}Y(J,G),J.prototype._update=function(O){this._hash.update(O)},J.prototype._final=function(){var O=this._hash.digest(),F=this._alg==="rmd160"?new X:K(this._alg);return F.update(this._opad).update(O).digest()},Q.exports=function(O,F){return O=O.toLowerCase(),O==="rmd160"||O==="ripemd160"?new J("rmd160",F):O==="md5"?new Z(U,F):new J(O,F)}}}),u$=z$({"node_modules/browserify-sign/browser/algorithms.json"($,Q){Q.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),n$=z$({"node_modules/browserify-sign/algos.js"($,Q){Q.exports=u$()}}),s$=z$({"node_modules/pbkdf2/lib/precondition.js"($,Q){var Y=Math.pow(2,30)-1;Q.exports=function(Z,G){if(typeof Z!="number")throw new TypeError("Iterations not a number");if(Z<0)throw new TypeError("Bad iterations");if(typeof G!="number")throw new TypeError("Key length not a number");if(G<0||G>Y||G!==G)throw new TypeError("Bad key length")}}}),t$=z$({"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}}),m$=z$({"node_modules/pbkdf2/lib/to-buffer.js"($,Q){var Y=S$().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")}}}),a$=z$({"node_modules/pbkdf2/lib/sync-browser.js"($,Q){var Y=l$(),Z=g$(),G=p$(),V=S$().Buffer,U=s$(),X=t$(),K=m$(),I=V.alloc(128),J={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function O(W,H,E){var T=F(W),D=W==="sha512"||W==="sha384"?128:64;H.length>D?H=T(H):H.length<D&&(H=V.concat([H,I],D));for(var C=V.allocUnsafe(D+J[W]),L=V.allocUnsafe(D+J[W]),R=0;R<D;R++)C[R]=H[R]^54,L[R]=H[R]^92;var P=V.allocUnsafe(D+E+4);C.copy(P,0,0,D),this.ipad1=P,this.ipad2=C,this.opad=L,this.alg=W,this.blocksize=D,this.hash=T,this.size=J[W]}O.prototype.run=function(W,H){W.copy(H,this.blocksize);var E=this.hash(H);return E.copy(this.opad,this.blocksize),this.hash(this.opad)};function F(W){function H(T){return G(W).update(T).digest()}function E(T){return new Z().update(T).digest()}return W==="rmd160"||W==="ripemd160"?E:W==="md5"?Y:H}function A(W,H,E,T,D){U(E,T),W=K(W,X,"Password"),H=K(H,X,"Salt"),D=D||"sha1";var C=new O(D,W,H.length),L=V.allocUnsafe(T),R=V.allocUnsafe(H.length+4);H.copy(R,0,0,H.length);for(var P=0,z=J[D],M=Math.ceil(T/z),S=1;S<=M;S++){R.writeUInt32BE(S,H.length);for(var v=C.run(R,C.ipad1),q=v,j=1;j<E;j++){q=C.run(q,C.ipad2);for(var k=0;k<z;k++)v[k]^=q[k]}v.copy(L,P),P+=z}return L}Q.exports=A}}),r$=z$({"node_modules/pbkdf2/lib/async.js"($,Q){var Y=S$().Buffer,Z=s$(),G=t$(),V=a$(),U=m$(),X,K=P$.subtle,I={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},J=[];function O(E){if(global.process&&!global.process.browser||!K||!K.importKey||!K.deriveBits)return Promise.resolve(!1);if(J[E]!==void 0)return J[E];X=X||Y.alloc(8);var T=W(X,X,10,128,E).then(function(){return!0}).catch(function(){return!1});return J[E]=T,T}var F;function A(){return F||(global.process&&global.process.nextTick?F=global.process.nextTick:global.queueMicrotask?F=global.queueMicrotask:global.setImmediate?F=global.setImmediate:F=global.setTimeout,F)}function W(E,T,D,C,L){return K.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return K.deriveBits({name:"PBKDF2",salt:T,iterations:D,hash:{name:L}},R,C<<3)}).then(function(R){return Y.from(R)})}function H(E,T){E.then(function(D){A()(function(){T(null,D)})},function(D){A()(function(){T(D)})})}Q.exports=function(E,T,D,C,L,R){typeof L=="function"&&(R=L,L=void 0),L=L||"sha1";var P=I[L.toLowerCase()];if(!P||typeof global.Promise!="function"){A()(function(){var z;try{z=V(E,T,D,C,L)}catch(M){return R(M)}R(null,z)});return}if(Z(D,C),E=U(E,G,"Password"),T=U(T,G,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");H(O(P).then(function(z){return z?W(E,T,D,C,P):V(E,T,D,C,L)}),R)}}}),e$=z$({"node_modules/pbkdf2/browser.js"($){$.pbkdf2=r$(),$.pbkdf2Sync=a$()}}),i$=z$({"node_modules/des.js/lib/des/utils.js"($){$.readUInt32BE=function(G,V){var U=G[0+V]<<24|G[1+V]<<16|G[2+V]<<8|G[3+V];return U>>>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,J=6;J>=0;J-=2){for(var O=0;O<=24;O+=8)K<<=1,K|=V>>>O+J&1;for(var O=0;O<=24;O+=8)K<<=1,K|=G>>>O+J&1}for(var J=6;J>=0;J-=2){for(var O=1;O<=25;O+=8)I<<=1,I|=V>>>O+J&1;for(var O=1;O<=25;O+=8)I<<=1,I|=G>>>O+J&1}U[X+0]=K>>>0,U[X+1]=I>>>0},$.rip=function(G,V,U,X){for(var K=0,I=0,J=0;J<4;J++)for(var O=24;O>=0;O-=8)K<<=1,K|=V>>>O+J&1,K<<=1,K|=G>>>O+J&1;for(var J=4;J<8;J++)for(var O=24;O>=0;O-=8)I<<=1,I|=V>>>O+J&1,I<<=1,I|=G>>>O+J&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.pc1=function(G,V,U,X){for(var K=0,I=0,J=7;J>=5;J--){for(var O=0;O<=24;O+=8)K<<=1,K|=V>>O+J&1;for(var O=0;O<=24;O+=8)K<<=1,K|=G>>O+J&1}for(var O=0;O<=24;O+=8)K<<=1,K|=V>>O+J&1;for(var J=1;J<=3;J++){for(var O=0;O<=24;O+=8)I<<=1,I|=V>>O+J&1;for(var O=0;O<=24;O+=8)I<<=1,I|=G>>O+J&1}for(var O=0;O<=24;O+=8)I<<=1,I|=G>>O+J&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.r28shl=function(G,V){return G<<V&268435455|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,J=Q.length>>>1,O=0;O<J;O++)K<<=1,K|=G>>>Q[O]&1;for(var O=J;O<Q.length;O++)I<<=1,I|=V>>>Q[O]&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.length;U++)V<<=1,V|=G>>>Z[U]&1;return V>>>0},$.padSplit=function(G,V,U){for(var X=G.toString(2);X.length<V;)X="0"+X;for(var K=[],I=0;I<V;I+=U)K.push(X.slice(I,I+U));return K.join(" ")}}}),$Q=z$({"node_modules/minimalistic-assert/index.js"($,Q){Q.exports=Y;function Y(Z,G){if(!Z)throw new Error(G||"Assertion failed")}Y.equal=function(Z,G,V){if(Z!=G)throw new Error(V||"Assertion failed: "+Z+" != "+G)}}}),QQ=z$({"node_modules/des.js/lib/des/cipher.js"($,Q){var Y=$Q();function Z(G){this.options=G,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Q.exports=Z,Z.prototype._init=function(){},Z.prototype.update=function(G){return G.length===0?[]:this.type==="decrypt"?this._updateDecrypt(G):this._updateEncrypt(G)},Z.prototype._buffer=function(G,V){for(var U=Math.min(this.buffer.length-this.bufferOff,G.length-V),X=0;X<U;X++)this.buffer[this.bufferOff+X]=G[V+X];return this.bufferOff+=U,U},Z.prototype._flushBuffer=function(G,V){return this._update(this.buffer,0,G,V),this.bufferOff=0,this.blockSize},Z.prototype._updateEncrypt=function(G){var V=0,U=0,X=(this.bufferOff+G.length)/this.blockSize|0,K=new Array(X*this.blockSize);this.bufferOff!==0&&(V+=this._buffer(G,V),this.bufferOff===this.buffer.length&&(U+=this._flushBuffer(K,U)));for(var I=G.length-(G.length-V)%this.blockSize;V<I;V+=this.blockSize)this._update(G,V,K,U),U+=this.blockSize;for(;V<G.length;V++,this.bufferOff++)this.buffer[this.bufferOff]=G[V];return K},Z.prototype._updateDecrypt=function(G){for(var V=0,U=0,X=Math.ceil((this.bufferOff+G.length)/this.blockSize)-1,K=new Array(X*this.blockSize);X>0;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<G.length;)G[V++]=0;return!0},Z.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var G=new Array(this.blockSize);return this._update(this.buffer,0,G,0),G},Z.prototype._unpad=function(G){return G},Z.prototype._finalDecrypt=function(){Y.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var G=new Array(this.blockSize);return this._flushBuffer(G,0),this._unpad(G)}}}),YQ=z$({"node_modules/des.js/lib/des/des.js"($,Q){var Y=$Q(),Z=q$(),G=i$(),V=QQ();function U(){this.tmp=new Array(2),this.keys=null}function X(I){V.call(this,I);var J=new U;this._desState=J,this.deriveKeys(J,I.key)}Z(X,V),Q.exports=X,X.create=function(I){return new X(I)};var K=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];X.prototype.deriveKeys=function(I,J){I.keys=new Array(32),Y.equal(J.length,this.blockSize,"Invalid key length");var O=G.readUInt32BE(J,0),F=G.readUInt32BE(J,4);G.pc1(O,F,I.tmp,0),O=I.tmp[0],F=I.tmp[1];for(var A=0;A<I.keys.length;A+=2){var W=K[A>>>1];O=G.r28shl(O,W),F=G.r28shl(F,W),G.pc2(O,F,I.keys,A)}},X.prototype._update=function(I,J,O,F){var A=this._desState,W=G.readUInt32BE(I,J),H=G.readUInt32BE(I,J+4);G.ip(W,H,A.tmp,0),W=A.tmp[0],H=A.tmp[1],this.type==="encrypt"?this._encrypt(A,W,H,A.tmp,0):this._decrypt(A,W,H,A.tmp,0),W=A.tmp[0],H=A.tmp[1],G.writeUInt32BE(O,W,F),G.writeUInt32BE(O,H,F+4)},X.prototype._pad=function(I,J){for(var O=I.length-J,F=J;F<I.length;F++)I[F]=O;return!0},X.prototype._unpad=function(I){for(var J=I[I.length-1],O=I.length-J;O<I.length;O++)Y.equal(I[O],J);return I.slice(0,I.length-J)},X.prototype._encrypt=function(I,J,O,F,A){for(var W=J,H=O,E=0;E<I.keys.length;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)},X.prototype._decrypt=function(I,J,O,F,A){for(var W=O,H=J,E=I.keys.length-2;E>=0;E-=2){var T=I.keys[E],D=I.keys[E+1];G.expand(W,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=W;W=(H^L)>>>0,H=R}G.rip(W,H,F,A)}}}),ZQ=z$({"node_modules/des.js/lib/des/cbc.js"($){var Q=$Q(),Y=q$(),Z={};function G(U){Q.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var X=0;X<this.iv.length;X++)this.iv[X]=U[X]}function V(U){function X(O){U.call(this,O),this._cbcInit()}Y(X,U);for(var K=Object.keys(Z),I=0;I<K.length;I++){var J=K[I];X.prototype[J]=Z[J]}return X.create=function(O){return new X(O)},X}$.instantiate=V,Z._cbcInit=function(){var U=new G(this.options.iv);this._cbcState=U},Z._update=function(U,X,K,I){var J=this._cbcState,O=this.constructor.super_.prototype,F=J.iv;if(this.type==="encrypt"){for(var A=0;A<this.blockSize;A++)F[A]^=U[X+A];O._update.call(this,F,0,K,I);for(var A=0;A<this.blockSize;A++)F[A]=K[I+A]}else{O._update.call(this,U,X,K,I);for(var A=0;A<this.blockSize;A++)K[I+A]^=F[A];for(var A=0;A<this.blockSize;A++)F[A]=U[X+A]}}}}),GQ=z$({"node_modules/des.js/lib/des/ede.js"($,Q){var Y=$Q(),Z=q$(),G=QQ(),V=YQ();function U(K,I){Y.equal(I.length,24,"Invalid key length");var J=I.slice(0,8),O=I.slice(8,16),F=I.slice(16,24);K==="encrypt"?this.ciphers=[V.create({type:"encrypt",key:J}),V.create({type:"decrypt",key:O}),V.create({type:"encrypt",key:F})]:this.ciphers=[V.create({type:"decrypt",key:F}),V.create({type:"encrypt",key:O}),V.create({type:"decrypt",key:J})]}function X(K){G.call(this,K);var I=new U(this.type,this.options.key);this._edeState=I}Z(X,G),Q.exports=X,X.create=function(K){return new X(K)},X.prototype._update=function(K,I,J,O){var F=this._edeState;F.ciphers[0]._update(K,I,J,O),F.ciphers[1]._update(J,O,J,O),F.ciphers[2]._update(J,O,J,O)},X.prototype._pad=V.prototype._pad,X.prototype._unpad=V.prototype._unpad}}),VQ=z$({"node_modules/des.js/lib/des.js"($){$.utils=i$(),$.Cipher=QQ(),$.DES=YQ(),$.CBC=ZQ(),$.EDE=GQ()}}),UQ=z$({"node_modules/browserify-des/index.js"($,Q){var Y=h$(),Z=VQ(),G=q$(),V=S$().Buffer,U={"des-ede3-cbc":Z.CBC.instantiate(Z.EDE),"des-ede3":Z.EDE,"des-ede-cbc":Z.CBC.instantiate(Z.EDE),"des-ede":Z.EDE,"des-cbc":Z.CBC.instantiate(Z.DES),"des-ecb":Z.DES};U.des=U["des-cbc"],U.des3=U["des-ede3-cbc"],Q.exports=X,G(X,Y);function X(K){Y.call(this);var I=K.mode.toLowerCase(),J=U[I],O;K.decrypt?O="decrypt":O="encrypt";var F=K.key;V.isBuffer(F)||(F=V.from(F)),(I==="des-ede"||I==="des-ede-cbc")&&(F=V.concat([F,F.slice(0,8)]));var A=K.iv;V.isBuffer(A)||(A=V.from(A)),this._des=J.create({key:F,iv:A,type:O})}X.prototype._update=function(K){return V.from(this._des.update(K))},X.prototype._final=function(){return V.from(this._des.final())}}}),XQ=z$({"node_modules/browserify-aes/modes/ecb.js"($){$.encrypt=function(Q,Y){return Q._cipher.encryptBlock(Y)},$.decrypt=function(Q,Y){return Q._cipher.decryptBlock(Y)}}}),KQ=z$({"node_modules/buffer-xor/index.js"($,Q){Q.exports=function(Y,Z){for(var G=Math.min(Y.length,Z.length),V=new Buffer(G),U=0;U<G;++U)V[U]=Y[U]^Z[U];return V}}}),IQ=z$({"node_modules/browserify-aes/modes/cbc.js"($){var Q=KQ();$.encrypt=function(Y,Z){var G=Q(Z,Y._prev);return Y._prev=Y._cipher.encryptBlock(G),Y._prev},$.decrypt=function(Y,Z){var G=Y._prev;Y._prev=Z;var V=Y._cipher.decryptBlock(Z);return Q(V,G)}}}),JQ=z$({"node_modules/browserify-aes/modes/cfb.js"($){var Q=S$().Buffer,Y=KQ();function Z(G,V,U){var X=V.length,K=Y(V,G._cache);return G._cache=G._cache.slice(X),G._prev=Q.concat([G._prev,U?V:K]),K}$.encrypt=function(G,V,U){for(var X=Q.allocUnsafe(0),K;V.length;)if(G._cache.length===0&&(G._cache=G._cipher.encryptBlock(G._prev),G._prev=Q.allocUnsafe(0)),G._cache.length<=V.length)K=G._cache.length,X=Q.concat([X,Z(G,V.slice(0,K),U)]),V=V.slice(K);else{X=Q.concat([X,Z(G,V,U)]);break}return X}}}),OQ=z$({"node_modules/browserify-aes/modes/cfb8.js"($){var Q=S$().Buffer;function Y(Z,G,V){var U=Z._cipher.encryptBlock(Z._prev),X=U[0]^G;return Z._prev=Q.concat([Z._prev.slice(1),Q.from([V?G:X])]),X}$.encrypt=function(Z,G,V){for(var U=G.length,X=Q.allocUnsafe(U),K=-1;++K<U;)X[K]=Y(Z,G[K],V);return X}}}),FQ=z$({"node_modules/browserify-aes/modes/cfb1.js"($){var Q=S$().Buffer;function Y(G,V,U){for(var X,K=-1,I=8,J=0,O,F;++K<I;)X=G._cipher.encryptBlock(G._prev),O=V&1<<7-K?128:0,F=X[0]^O,J+=(F&128)>>K%8,G._prev=Z(G._prev,U?O:F);return J}function Z(G,V){var U=G.length,X=-1,K=Q.allocUnsafe(G.length);for(G=Q.concat([G,Q.from([V])]);++X<U;)K[X]=G[X]<<1|G[X+1]>>7;return K}$.encrypt=function(G,V,U){for(var X=V.length,K=Q.allocUnsafe(X),I=-1;++I<X;)K[I]=Y(G,V[I],U);return K}}}),AQ=z$({"node_modules/browserify-aes/modes/ofb.js"($){var Q=KQ();function Y(Z){return Z._prev=Z._cipher.encryptBlock(Z._prev),Z._prev}$.encrypt=function(Z,G){for(;Z._cache.length<G.length;)Z._cache=Buffer.concat([Z._cache,Y(Z)]);var V=Z._cache.slice(0,G.length);return Z._cache=Z._cache.slice(G.length),Q(G,V)}}}),WQ=z$({"node_modules/browserify-aes/incr32.js"($,Q){function Y(Z){for(var G=Z.length,V;G--;)if(V=Z.readUInt8(G),V===255)Z.writeUInt8(0,G);else{V++,Z.writeUInt8(V,G);break}}Q.exports=Y}}),A$=z$({"node_modules/browserify-aes/modes/ctr.js"($){var Q=KQ(),Y=S$().Buffer,Z=WQ();function G(U){var X=U._cipher.encryptBlockRaw(U._prev);return Z(U._prev),X}var V=16;$.encrypt=function(U,X){var K=Math.ceil(X.length/V),I=U._cache.length;U._cache=Y.concat([U._cache,Y.allocUnsafe(K*V)]);for(var J=0;J<K;J++){var O=G(U),F=I+J*V;U._cache.writeUInt32BE(O[0],F+0),U._cache.writeUInt32BE(O[1],F+4),U._cache.writeUInt32BE(O[2],F+8),U._cache.writeUInt32BE(O[3],F+12)}var A=U._cache.slice(0,X.length);return U._cache=U._cache.slice(X.length),Q(X,A)}}}),HQ=z$({"node_modules/browserify-aes/modes/list.json"($,Q){Q.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),EQ=z$({"node_modules/browserify-aes/modes/index.js"($,Q){var Y={ECB:XQ(),CBC:IQ(),CFB:JQ(),CFB8:OQ(),CFB1:FQ(),OFB:AQ(),CTR:A$(),GCM:A$()},Z=HQ();for(G in Z)Z[G].module=Y[Z[G].mode];var G;Q.exports=Z}}),TQ=z$({"node_modules/browserify-aes/aes.js"($,Q){var Y=S$().Buffer;function Z(I){Y.isBuffer(I)||(I=Y.from(I));for(var J=I.length/4|0,O=new Array(J),F=0;F<J;F++)O[F]=I.readUInt32BE(F*4);return O}function G(I){for(var J=0;J<I.length;I++)I[J]=0}function V(I,J,O,F,A){for(var W=O[0],H=O[1],E=O[2],T=O[3],D=I[0]^J[0],C=I[1]^J[1],L=I[2]^J[2],R=I[3]^J[3],P,z,M,S,v=4,q=1;q<A;q++)P=W[D>>>24]^H[C>>>16&255]^E[L>>>8&255]^T[R&255]^J[v++],z=W[C>>>24]^H[L>>>16&255]^E[R>>>8&255]^T[D&255]^J[v++],M=W[L>>>24]^H[R>>>16&255]^E[D>>>8&255]^T[C&255]^J[v++],S=W[R>>>24]^H[D>>>16&255]^E[C>>>8&255]^T[L&255]^J[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])^J[v++],z=(F[C>>>24]<<24|F[L>>>16&255]<<16|F[R>>>8&255]<<8|F[D&255])^J[v++],M=(F[L>>>24]<<24|F[R>>>16&255]<<16|F[D>>>8&255]<<8|F[C&255])^J[v++],S=(F[R>>>24]<<24|F[D>>>16&255]<<16|F[C>>>8&255]<<8|F[L&255])^J[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),J=0;J<256;J++)J<128?I[J]=J<<1:I[J]=J<<1^283;for(var O=[],F=[],A=[[],[],[],[]],W=[[],[],[],[]],H=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,O[H]=D,F[D]=H;var C=I[H],L=I[C],R=I[L],P=I[D]*257^D*16843008;A[0][H]=P<<24|P>>>8,A[1][H]=P<<16|P>>>16,A[2][H]=P<<8|P>>>24,A[3][H]=P,P=R*16843009^L*65537^C*257^H*16843008,W[0][D]=P<<24|P>>>8,W[1][D]=P<<16|P>>>16,W[2][D]=P<<8|P>>>24,W[3][D]=P,H===0?H=E=1:(H=C^I[I[I[R^C]]],E^=I[I[E]])}return{SBOX:O,INV_SBOX:F,SUB_MIX:A,INV_SUB_MIX:W}}();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,J=I.length,O=J+6,F=(O+1)*4,A=[],W=0;W<J;W++)A[W]=I[W];for(W=J;W<F;W++){var H=A[W-1];W%J===0?(H=H<<8|H>>>24,H=X.SBOX[H>>>24]<<24|X.SBOX[H>>>16&255]<<16|X.SBOX[H>>>8&255]<<8|X.SBOX[H&255],H^=U[W/J|0]<<24):J>6&&W%J===4&&(H=X.SBOX[H>>>24]<<24|X.SBOX[H>>>16&255]<<16|X.SBOX[H>>>8&255]<<8|X.SBOX[H&255]),A[W]=A[W-J]^H}for(var E=[],T=0;T<F;T++){var D=F-T,C=A[D-(T%4?0:4)];T<4||D<=4?E[T]=C:E[T]=X.INV_SUB_MIX[0][X.SBOX[C>>>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=O,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 J=this.encryptBlockRaw(I),O=Y.allocUnsafe(16);return O.writeUInt32BE(J[0],0),O.writeUInt32BE(J[1],4),O.writeUInt32BE(J[2],8),O.writeUInt32BE(J[3],12),O},K.prototype.decryptBlock=function(I){I=Z(I);var J=I[1];I[1]=I[3],I[3]=J;var O=V(I,this._invKeySchedule,X.INV_SUB_MIX,X.INV_SBOX,this._nRounds),F=Y.allocUnsafe(16);return F.writeUInt32BE(O[0],0),F.writeUInt32BE(O[3],4),F.writeUInt32BE(O[2],8),F.writeUInt32BE(O[1],12),F},K.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},Q.exports.AES=K}}),DQ=z$({"node_modules/browserify-aes/ghash.js"($,Q){var Y=S$().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;++K<X.length;)this.state[K]^=X[K];this._multiply()},U.prototype._multiply=function(){for(var X=G(this.h),K=[0,0,0,0],I,J,O,F=-1;++F<128;){for(J=(this.state[~~(F/8)]&1<<7-F%8)!==0,J&&(K[0]^=X[0],K[1]^=X[1],K[2]^=X[2],K[3]^=X[3]),O=(X[3]&1)!==0,I=3;I>0;I--)X[I]=X[I]>>>1|(X[I-1]&1)<<31;X[0]=X[0]>>>1,O&&(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}}),CQ=z$({"node_modules/browserify-aes/authCipher.js"($,Q){var Y=TQ(),Z=S$().Buffer,G=h$(),V=q$(),U=DQ(),X=KQ(),K=WQ();function I(F,A){var W=0;F.length!==A.length&&W++;for(var H=Math.min(F.length,A.length),E=0;E<H;++E)W+=F[E]^A[E];return W}function J(F,A,W){if(A.length===12)return F._finID=Z.concat([A,Z.from([0,0,0,1])]),Z.concat([A,Z.from([0,0,0,2])]);var H=new U(W),E=A.length,T=E%16;H.update(A),T&&(T=16-T,H.update(Z.alloc(T,0))),H.update(Z.alloc(8,0));var D=E*8,C=Z.alloc(8);C.writeUIntBE(D,0,8),H.update(C),F._finID=H.state;var L=Z.from(F._finID);return K(L),L}function O(F,A,W,H){G.call(this);var E=Z.alloc(4,0);this._cipher=new Y.AES(A);var T=this._cipher.encryptBlock(E);this._ghash=new U(T),W=J(this,W,T),this._prev=Z.from(W),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=H,this._alen=0,this._len=0,this._mode=F,this._authTag=null,this._called=!1}V(O,G),O.prototype._update=function(F){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=Z.alloc(A,0),this._ghash.update(A))}this._called=!0;var W=this._mode.encrypt(this,F);return this._decrypt?this._ghash.update(F):this._ghash.update(W),this._len+=F.length,W},O.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var F=X(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&I(F,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=F,this._cipher.scrub()},O.prototype.getAuthTag=function(){if(this._decrypt||!Z.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},O.prototype.setAuthTag=function(F){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=F},O.prototype.setAAD=function(F){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(F),this._alen+=F.length},Q.exports=O}}),LQ=z$({"node_modules/browserify-aes/streamCipher.js"($,Q){var Y=TQ(),Z=S$().Buffer,G=h$(),V=q$();function U(X,K,I,J){G.call(this),this._cipher=new Y.AES(K),this._prev=Z.from(I),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=J,this._mode=X}V(U,G),U.prototype._update=function(X){return this._mode.encrypt(this,X,this._decrypt)},U.prototype._final=function(){this._cipher.scrub()},Q.exports=U}}),RQ=z$({"node_modules/evp_bytestokey/index.js"($,Q){var Y=S$().Buffer,Z=k$();function G(V,U,X,K){if(Y.isBuffer(V)||(V=Y.from(V,"binary")),U&&(Y.isBuffer(U)||(U=Y.from(U,"binary")),U.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var I=X/8,J=Y.alloc(I),O=Y.alloc(K||0),F=Y.alloc(0);I>0||K>0;){var A=new Z;A.update(F),A.update(V),U&&A.update(U),F=A.digest();var W=0;if(I>0){var H=J.length-I;W=Math.min(I,F.length),F.copy(J,H,0,W),I-=W}if(W<F.length&&K>0){var E=O.length-K,T=Math.min(K,F.length-W);F.copy(O,E,W,W+T),K-=T}}return F.fill(0),{key:J,iv:O}}Q.exports=G}}),PQ=z$({"node_modules/browserify-aes/encrypter.js"($){var Q=EQ(),Y=CQ(),Z=S$().Buffer,G=LQ(),V=h$(),U=TQ(),X=RQ(),K=q$();function I(W,H,E){V.call(this),this._cache=new O,this._cipher=new U.AES(H),this._prev=Z.from(E),this._mode=W,this._autopadding=!0}K(I,V),I.prototype._update=function(W){this._cache.add(W);for(var H,E,T=[];H=this._cache.get();)E=this._mode.encrypt(this,H),T.push(E);return Z.concat(T)};var J=Z.alloc(16,16);I.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return W=this._mode.encrypt(this,W),this._cipher.scrub(),W;if(!W.equals(J))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function O(){this.cache=Z.allocUnsafe(0)}O.prototype.add=function(W){this.cache=Z.concat([this.cache,W])},O.prototype.get=function(){if(this.cache.length>15){var W=this.cache.slice(0,16);return this.cache=this.cache.slice(16),W}return null},O.prototype.flush=function(){for(var W=16-this.cache.length,H=Z.allocUnsafe(W),E=-1;++E<W;)H.writeUInt8(W,E);return Z.concat([this.cache,H])};function F(W,H,E){var T=Q[W.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof H=="string"&&(H=Z.from(H)),H.length!==T.key/8)throw new TypeError("invalid key length "+H.length);if(typeof E=="string"&&(E=Z.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);return T.type==="stream"?new G(T.module,H,E):T.type==="auth"?new Y(T.module,H,E):new I(T.module,H,E)}function A(W,H){var E=Q[W.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(H,!1,E.key,E.iv);return F(W,T.key,T.iv)}$.createCipheriv=F,$.createCipher=A}}),zQ=z$({"node_modules/browserify-aes/decrypter.js"($){var Q=CQ(),Y=S$().Buffer,Z=EQ(),G=LQ(),V=h$(),U=TQ(),X=RQ(),K=q$();function I(W,H,E){V.call(this),this._cache=new J,this._last=void 0,this._cipher=new U.AES(H),this._prev=Y.from(E),this._mode=W,this._autopadding=!0}K(I,V),I.prototype._update=function(W){this._cache.add(W);for(var H,E,T=[];H=this._cache.get(this._autopadding);)E=this._mode.decrypt(this,H),T.push(E);return Y.concat(T)},I.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return O(this._mode.decrypt(this,W));if(W)throw new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function J(){this.cache=Y.allocUnsafe(0)}J.prototype.add=function(W){this.cache=Y.concat([this.cache,W])},J.prototype.get=function(W){var H;if(W){if(this.cache.length>16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H}else if(this.cache.length>=16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H;return null},J.prototype.flush=function(){if(this.cache.length)return this.cache};function O(W){var H=W[15];if(H<1||H>16)throw new Error("unable to decrypt data");for(var E=-1;++E<H;)if(W[E+(16-H)]!==H)throw new Error("unable to decrypt data");if(H!==16)return W.slice(0,16-H)}function F(W,H,E){var T=Z[W.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=Y.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);if(typeof H=="string"&&(H=Y.from(H)),H.length!==T.key/8)throw new TypeError("invalid key length "+H.length);return T.type==="stream"?new G(T.module,H,E,!0):T.type==="auth"?new Q(T.module,H,E,!0):new I(T.module,H,E)}function A(W,H){var E=Z[W.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(H,!1,E.key,E.iv);return F(W,T.key,T.iv)}$.createDecipher=A,$.createDecipheriv=F}}),MQ=z$({"node_modules/browserify-aes/browser.js"($){var Q=PQ(),Y=zQ(),Z=HQ();function G(){return Object.keys(Z)}$.createCipher=$.Cipher=Q.createCipher,$.createCipheriv=$.Cipheriv=Q.createCipheriv,$.createDecipher=$.Decipher=Y.createDecipher,$.createDecipheriv=$.Decipheriv=Y.createDecipheriv,$.listCiphers=$.getCiphers=G}}),SQ=z$({"node_modules/browserify-des/modes.js"($){$["des-ecb"]={key:8,iv:0},$["des-cbc"]=$.des={key:8,iv:8},$["des-ede3-cbc"]=$.des3={key:24,iv:8},$["des-ede3"]={key:24,iv:0},$["des-ede-cbc"]={key:16,iv:8},$["des-ede"]={key:16,iv:0}}}),vQ=z$({"node_modules/browserify-cipher/browser.js"($){var Q=UQ(),Y=MQ(),Z=EQ(),G=SQ(),V=RQ();function U(O,F){O=O.toLowerCase();var A,W;if(Z[O])A=Z[O].key,W=Z[O].iv;else if(G[O])A=G[O].key*8,W=G[O].iv;else throw new TypeError("invalid suite type");var H=V(F,!1,A,W);return K(O,H.key,H.iv)}function X(O,F){O=O.toLowerCase();var A,W;if(Z[O])A=Z[O].key,W=Z[O].iv;else if(G[O])A=G[O].key*8,W=G[O].iv;else throw new TypeError("invalid suite type");var H=V(F,!1,A,W);return I(O,H.key,H.iv)}function K(O,F,A){if(O=O.toLowerCase(),Z[O])return Y.createCipheriv(O,F,A);if(G[O])return new Q({key:F,iv:A,mode:O});throw new TypeError("invalid suite type")}function I(O,F,A){if(O=O.toLowerCase(),Z[O])return Y.createDecipheriv(O,F,A);if(G[O])return new Q({key:F,iv:A,mode:O,decrypt:!0});throw new TypeError("invalid suite type")}function J(){return Object.keys(G).concat(Y.getCiphers())}$.createCipher=$.Cipher=U,$.createCipheriv=$.Cipheriv=K,$.createDecipher=$.Decipher=X,$.createDecipheriv=$.Decipheriv=I,$.listCiphers=$.getCiphers=J}}),qQ=z$({"node_modules/diffie-hellman/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;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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,$)}}),jQ=z$({"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;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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,$)}}),kQ=z$({"(disabled):node_modules/crypto-browserify/index.js"(){}}),gQ=z$({"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 Buffer(G);return F$.getRandomValues(V),V}}}),NQ=z$({"node_modules/miller-rabin/lib/mr.js"($,Q){var Y=jQ(),Z=gQ();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),J=new Y(1).toRed(I);U||(U=Math.max(1,K/48|0));for(var O=V.subn(1),F=0;!O.testn(F);F++);for(var A=V.shrn(F),W=O.toRed(I),H=!0;U>0;U--){var E=this._randrange(new Y(2),O);X&&X(E);var T=E.toRed(I).redPow(A);if(!(T.cmp(J)===0||T.cmp(W)===0)){for(var D=1;D<F;D++){if(T=T.redSqr(),T.cmp(J)===0)return!1;if(T.cmp(W)===0)break}if(D===F)return!1}}return H},G.prototype.getDivisor=function(V,U){var X=V.bitLength(),K=Y.mont(V),I=new Y(1).toRed(K);U||(U=Math.max(1,X/48|0));for(var J=V.subn(1),O=0;!J.testn(O);O++);for(var F=V.shrn(O),A=J.toRed(K);U>0;U--){var W=this._randrange(new Y(2),J),H=V.gcd(W);if(H.cmpn(1)!==0)return H;var E=W.toRed(K).redPow(F);if(!(E.cmp(I)===0||E.cmp(A)===0)){for(var T=1;T<O;T++){if(E=E.redSqr(),E.cmp(I)===0)return E.fromRed().subn(1).gcd(V);if(E.cmp(A)===0)break}if(T===O)return E=E.redSqr(),E.fromRed().subn(1).gcd(V)}}return!1}}}),xQ=z$({"node_modules/diffie-hellman/lib/generatePrime.js"($,Q){var Y=v$();Q.exports=P,P.simpleSieve=L,P.fermatTest=R;var Z=qQ(),G=new Z(24),V=NQ(),U=new V,X=new Z(1),K=new Z(2),I=new Z(5),J=new Z(16),O=new Z(8),F=new Z(10),A=new Z(3),W=new Z(7),H=new Z(11),E=new Z(4),T=new Z(12),D=null;function C(){if(D!==null)return D;var z=1048576,M=[];M[0]=2;for(var S=1,v=3;v<z;v+=2){for(var q=Math.ceil(Math.sqrt(v)),j=0;j<S&&M[j]<=q&&v%M[j]!==0;j++);S!==j&&M[j]<=q||(M[S++]=v)}return D=M,M}function L(z){for(var M=C(),S=0;S<M.length;S++)if(z.modn(M[S])===0)return z.cmpn(M[S])===0;return!0}function R(z){var M=Z.mont(z);return K.toRed(M).redPow(z.subn(1)).fromRed().cmpn(1)===0}function P(z,M){if(z<16)return M===2||M===5?new Z([140,123]):new Z([140,39]);M=new Z(M);for(var S,v;;){for(S=new Z(Y(Math.ceil(z/8)));S.bitLength()>z;)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(H);)S.iadd(E);if(v=S.shrn(1),L(v)&&L(S)&&R(v)&&R(S)&&U.test(v)&&U.test(S))return S}}}}),_Q=z$({"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"}}}}),BQ=z$({"node_modules/diffie-hellman/lib/dh.js"($,Q){var Y=qQ(),Z=NQ(),G=new Z,V=new Y(24),U=new Y(11),X=new Y(10),K=new Y(3),I=new Y(7),J=xQ(),O=v$();Q.exports=E;function F(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this._pub=new Y(D),this}function A(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this._priv=new Y(D),this}var W={};function H(D,C){var L=C.toString("hex"),R=[L,D.toString(16)].join("_");if(R in W)return W[R];var P=0;if(D.isEven()||!J.simpleSieve||!J.fermatTest(D)||!G.test(D))return P+=1,L==="02"||L==="05"?P+=8:P+=4,W[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 W[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=H(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new Y(O(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 Buffer(C.toArray()),R=this.getPrime();if(L.length<R.length){var P=new Buffer(R.length-L.length);P.fill(0),L=Buffer.concat([P,L])}return L},E.prototype.getPublicKey=function(D){return T(this._pub,D)},E.prototype.getPrivateKey=function(D){return T(this._priv,D)},E.prototype.getPrime=function(D){return T(this.__prime,D)},E.prototype.getGenerator=function(D){return T(this._gen,D)},E.prototype.setGenerator=function(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this.__gen=D,this._gen=new Y(D),this};function T(D,C){var L=new Buffer(D.toArray());return C?L.toString(C):L}}}),yQ=z$({"node_modules/diffie-hellman/browser.js"($){var Q=xQ(),Y=_Q(),Z=BQ();function G(X){var K=new Buffer(Y[X].prime,"hex"),I=new Buffer(Y[X].gen,"hex");return new Z(K,I)}var V={binary:!0,hex:!0,base64:!0};function U(X,K,I,J){return Buffer.isBuffer(K)||V[K]===void 0?U(X,"binary",K,I):(K=K||"binary",J=J||"binary",I=I||new Buffer([2]),Buffer.isBuffer(I)||(I=new Buffer(I,J)),typeof X=="number"?new Z(Q(X,I),I,!0):(Buffer.isBuffer(X)||(X=new Buffer(X,K)),new Z(X,I,!0)))}$.DiffieHellmanGroup=$.createDiffieHellmanGroup=$.getDiffieHellman=G,$.createDiffieHellman=$.DiffieHellman=U}}),wQ=z$({"node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(N,x){if(!N)throw new Error(x||"Assertion failed")}function V(N,x){N.super_=x;var _=function(){};_.prototype=x.prototype,N.prototype=new _,N.prototype.constructor=N}function U(N,x,_){if(U.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((x==="le"||x==="be")&&(_=x,x=10),this._init(N||0,x||10,_||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(N){return N instanceof U?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===U.wordSize&&Array.isArray(N.words)},U.max=function(N,x){return N.cmp(x)>0?N:x},U.min=function(N,x){return N.cmp(x)<0?N:x},U.prototype._init=function(N,x,_){if(typeof N=="number")return this._initNumber(N,x,_);if(typeof N=="object")return this._initArray(N,x,_);x==="hex"&&(x=16),G(x===(x|0)&&x>=2&&x<=36),N=N.toString().replace(/\s+/g,"");var B=0;N[0]==="-"&&(B++,this.negative=1),B<N.length&&(x===16?this._parseHex(N,B,_):(this._parseBase(N,x,B),_==="le"&&this._initArray(this.toArray(),x,_)))},U.prototype._initNumber=function(N,x,_){N<0&&(this.negative=1,N=-N),N<67108864?(this.words=[N&67108863],this.length=1):N<4503599627370496?(this.words=[N&67108863,N/67108864&67108863],this.length=2):(G(N<9007199254740992),this.words=[N&67108863,N/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),x,_)},U.prototype._initArray=function(N,x,_){if(G(typeof N.length=="number"),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y,w,f=0;if(_==="be")for(B=N.length-1,y=0;B>=0;B-=3)w=N[B]|N[B-1]<<8|N[B-2]<<16,this.words[y]|=w<<f&67108863,this.words[y+1]=w>>>26-f&67108863,f+=24,f>=26&&(f-=26,y++);else if(_==="le")for(B=0,y=0;B<N.length;B+=3)w=N[B]|N[B+1]<<8|N[B+2]<<16,this.words[y]|=w<<f&67108863,this.words[y+1]=w>>>26-f&67108863,f+=24,f>=26&&(f-=26,y++);return this._strip()};function K(N,x){var _=N.charCodeAt(x);if(_>=48&&_<=57)return _-48;if(_>=65&&_<=70)return _-55;if(_>=97&&_<=102)return _-87;G(!1,"Invalid character in "+N)}function I(N,x,_){var B=K(N,_);return _-1>=x&&(B|=K(N,_-1)<<4),B}U.prototype._parseHex=function(N,x,_){this.length=Math.ceil((N.length-x)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y=0,w=0,f;if(_==="be")for(B=N.length-1;B>=x;B-=2)f=I(N,x,B)<<y,this.words[w]|=f&67108863,y>=18?(y-=18,w+=1,this.words[w]|=f>>>26):y+=8;else{var p=N.length-x;for(B=p%2===0?x+1:x;B<N.length;B+=2)f=I(N,x,B)<<y,this.words[w]|=f&67108863,y>=18?(y-=18,w+=1,this.words[w]|=f>>>26):y+=8}this._strip()};function J(N,x,_,B){for(var y=0,w=0,f=Math.min(N.length,_),p=x;p<f;p++){var c=N.charCodeAt(p)-48;y*=B,c>=49?w=c-49+10:c>=17?w=c-17+10:w=c,G(c>=0&&w<B,"Invalid character"),y+=w}return y}U.prototype._parseBase=function(N,x,_){this.words=[0],this.length=1;for(var B=0,y=1;y<=67108863;y*=x)B++;B--,y=y/x|0;for(var w=N.length-_,f=w%B,p=Math.min(w,w-f)+_,c=0,h=_;h<p;h+=B)c=J(N,h,h+B,x),this.imuln(y),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(f!==0){var d=1;for(c=J(N,h,N.length,x),h=0;h<f;h++)d*=x;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},U.prototype.copy=function(N){N.words=new Array(this.length);for(var x=0;x<this.length;x++)N.words[x]=this.words[x];N.length=this.length,N.negative=this.negative,N.red=this.red};function O(N,x){N.words=x.words,N.length=x.length,N.negative=x.negative,N.red=x.red}if(U.prototype._move=function(N){O(N,this)},U.prototype.clone=function(){var N=new U(null);return this.copy(N),N},U.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},U.prototype._strip=function(){for(;this.length>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")]=F}catch{U.prototype.inspect=F}else U.prototype.inspect=F;function F(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}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"],W=[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],H=[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,x){N=N||10,x=x|0||1;var _;if(N===16||N==="hex"){_="";for(var B=0,y=0,w=0;w<this.length;w++){var f=this.words[w],p=((f<<B|y)&16777215).toString(16);y=f>>>24-B&16777215,B+=2,B>=26&&(B-=26,w--),y!==0||w!==this.length-1?_=A[6-p.length]+p+_:_=p+_}for(y!==0&&(_=y.toString(16)+_);_.length%x!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(N===(N|0)&&N>=2&&N<=36){var c=W[N],h=H[N];_="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(h).toString(N);d=d.idivn(h),d.isZero()?_=b+_:_=A[c-b.length]+b+_}for(this.isZero()&&(_="0"+_);_.length%x!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},U.prototype.toJSON=function(){return this.toString(16,2)},X&&(U.prototype.toBuffer=function(N,x){return this.toArrayLike(X,N,x)}),U.prototype.toArray=function(N,x){return this.toArrayLike(Array,N,x)};var E=function(N,x){return N.allocUnsafe?N.allocUnsafe(x):new N(x)};U.prototype.toArrayLike=function(N,x,_){this._strip();var B=this.byteLength(),y=_||Math.max(1,B);G(B<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var w=E(N,y),f=x==="le"?"LE":"BE";return this["_toArrayLike"+f](w,B),w},U.prototype._toArrayLikeLE=function(N,x){for(var _=0,B=0,y=0,w=0;y<this.length;y++){var f=this.words[y]<<w|B;N[_++]=f&255,_<N.length&&(N[_++]=f>>8&255),_<N.length&&(N[_++]=f>>16&255),w===6?(_<N.length&&(N[_++]=f>>24&255),B=0,w=0):(B=f>>>24,w+=2)}if(_<N.length)for(N[_++]=B;_<N.length;)N[_++]=0},U.prototype._toArrayLikeBE=function(N,x){for(var _=N.length-1,B=0,y=0,w=0;y<this.length;y++){var f=this.words[y]<<w|B;N[_--]=f&255,_>=0&&(N[_--]=f>>8&255),_>=0&&(N[_--]=f>>16&255),w===6?(_>=0&&(N[_--]=f>>24&255),B=0,w=0):(B=f>>>24,w+=2)}if(_>=0)for(N[_--]=B;_>=0;)N[_--]=0},Math.clz32?U.prototype._countBits=function(N){return 32-Math.clz32(N)}:U.prototype._countBits=function(N){var x=N,_=0;return x>=4096&&(_+=13,x>>>=13),x>=64&&(_+=7,x>>>=7),x>=8&&(_+=4,x>>>=4),x>=2&&(_+=2,x>>>=2),_+x},U.prototype._zeroBits=function(N){if(N===0)return 26;var x=N,_=0;return(x&8191)===0&&(_+=13,x>>>=13),(x&127)===0&&(_+=7,x>>>=7),(x&15)===0&&(_+=4,x>>>=4),(x&3)===0&&(_+=2,x>>>=2),(x&1)===0&&_++,_},U.prototype.bitLength=function(){var N=this.words[this.length-1],x=this._countBits(N);return(this.length-1)*26+x};function T(N){for(var x=new Array(N.bitLength()),_=0;_<x.length;_++){var B=_/26|0,y=_%26;x[_]=N.words[B]>>>y&1}return x}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,x=0;x<this.length;x++){var _=this._zeroBits(this.words[x]);if(N+=_,_!==26)break}return N},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(N){return this.negative!==0?this.abs().inotn(N).iaddn(1):this.clone()},U.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var x=0;x<N.length;x++)this.words[x]=this.words[x]|N.words[x];return this._strip()},U.prototype.ior=function(N){return G((this.negative|N.negative)===0),this.iuor(N)},U.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},U.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},U.prototype.iuand=function(N){var x;this.length>N.length?x=N:x=this;for(var _=0;_<x.length;_++)this.words[_]=this.words[_]&N.words[_];return this.length=x.length,this._strip()},U.prototype.iand=function(N){return G((this.negative|N.negative)===0),this.iuand(N)},U.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},U.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},U.prototype.iuxor=function(N){var x,_;this.length>N.length?(x=this,_=N):(x=N,_=this);for(var B=0;B<_.length;B++)this.words[B]=x.words[B]^_.words[B];if(this!==x)for(;B<x.length;B++)this.words[B]=x.words[B];return this.length=x.length,this._strip()},U.prototype.ixor=function(N){return G((this.negative|N.negative)===0),this.iuxor(N)},U.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},U.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},U.prototype.inotn=function(N){G(typeof N=="number"&&N>=0);var x=Math.ceil(N/26)|0,_=N%26;this._expand(x),_>0&&x--;for(var B=0;B<x;B++)this.words[B]=~this.words[B]&67108863;return _>0&&(this.words[B]=~this.words[B]&67108863>>26-_),this._strip()},U.prototype.notn=function(N){return this.clone().inotn(N)},U.prototype.setn=function(N,x){G(typeof N=="number"&&N>=0);var _=N/26|0,B=N%26;return this._expand(_+1),x?this.words[_]=this.words[_]|1<<B:this.words[_]=this.words[_]&~(1<<B),this._strip()},U.prototype.iadd=function(N){var x;if(this.negative!==0&&N.negative===0)return this.negative=0,x=this.isub(N),this.negative^=1,this._normSign();if(this.negative===0&&N.negative!==0)return N.negative=0,x=this.isub(N),N.negative=1,x._normSign();var _,B;this.length>N.length?(_=this,B=N):(_=N,B=this);for(var y=0,w=0;w<B.length;w++)x=(_.words[w]|0)+(B.words[w]|0)+y,this.words[w]=x&67108863,y=x>>>26;for(;y!==0&&w<_.length;w++)x=(_.words[w]|0)+y,this.words[w]=x&67108863,y=x>>>26;if(this.length=_.length,y!==0)this.words[this.length]=y,this.length++;else if(_!==this)for(;w<_.length;w++)this.words[w]=_.words[w];return this},U.prototype.add=function(N){var x;return N.negative!==0&&this.negative===0?(N.negative=0,x=this.sub(N),N.negative^=1,x):N.negative===0&&this.negative!==0?(this.negative=0,x=N.sub(this),this.negative=1,x):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},U.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var x=this.iadd(N);return N.negative=1,x._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var _=this.cmp(N);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,y;_>0?(B=this,y=N):(B=N,y=this);for(var w=0,f=0;f<y.length;f++)x=(B.words[f]|0)-(y.words[f]|0)+w,w=x>>26,this.words[f]=x&67108863;for(;w!==0&&f<B.length;f++)x=(B.words[f]|0)+w,w=x>>26,this.words[f]=x&67108863;if(w===0&&f<B.length&&B!==this)for(;f<B.length;f++)this.words[f]=B.words[f];return this.length=Math.max(this.length,f),B!==this&&(this.negative=1),this._strip()},U.prototype.sub=function(N){return this.clone().isub(N)};function D(N,x,_){_.negative=x.negative^N.negative;var B=N.length+x.length|0;_.length=B,B=B-1|0;var y=N.words[0]|0,w=x.words[0]|0,f=y*w,p=f&67108863,c=f/67108864|0;_.words[0]=p;for(var h=1;h<B;h++){for(var d=c>>>26,b=c&67108863,l=Math.min(h,x.length-1),o=Math.max(0,h-N.length+1);o<=l;o++){var u=h-o|0;y=N.words[u]|0,w=x.words[o]|0,f=y*w+b,d+=f/67108864|0,b=f&67108863}_.words[h]=b|0,c=d|0}return c!==0?_.words[h]=c|0:_.length--,_._strip()}var C=function(N,x,_){var B=N.words,y=x.words,w=_.words,f=0,p,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,r=a&8191,e=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,J0=K0>>>13,O0=B[8]|0,F0=O0&8191,A0=O0>>>13,W0=B[9]|0,H0=W0&8191,E0=W0>>>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,N0=k0>>>13,x0=y[5]|0,_0=x0&8191,B0=x0>>>13,y0=y[6]|0,w0=y0&8191,f0=y0>>>13,p0=y[7]|0,c0=p0&8191,h0=p0>>>13,d0=y[8]|0,b0=d0&8191,l0=d0>>>13,o0=y[9]|0,u0=o0&8191,n0=o0>>>13;_.negative=N.negative^x.negative,_.length=19,p=Math.imul(b,D0),c=Math.imul(b,C0),c=c+Math.imul(l,D0)|0,h=Math.imul(l,C0);var s0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(s0>>>26)|0,s0&=67108863,p=Math.imul(u,D0),c=Math.imul(u,C0),c=c+Math.imul(n,D0)|0,h=Math.imul(n,C0),p=p+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=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(t0>>>26)|0,t0&=67108863,p=Math.imul(t,D0),c=Math.imul(t,C0),c=c+Math.imul(m,D0)|0,h=Math.imul(m,C0),p=p+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,p=p+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=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(m0>>>26)|0,m0&=67108863,p=Math.imul(r,D0),c=Math.imul(r,C0),c=c+Math.imul(e,D0)|0,h=Math.imul(e,C0),p=p+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,p=p+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,p=p+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=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(a0>>>26)|0,a0&=67108863,p=Math.imul($0,D0),c=Math.imul($0,C0),c=c+Math.imul(Q0,D0)|0,h=Math.imul(Q0,C0),p=p+Math.imul(r,R0)|0,c=c+Math.imul(r,P0)|0,c=c+Math.imul(e,R0)|0,h=h+Math.imul(e,P0)|0,p=p+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,p=p+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,p=p+Math.imul(b,g0)|0,c=c+Math.imul(b,N0)|0,c=c+Math.imul(l,g0)|0,h=h+Math.imul(l,N0)|0;var r0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(r0>>>26)|0,r0&=67108863,p=Math.imul(Z0,D0),c=Math.imul(Z0,C0),c=c+Math.imul(G0,D0)|0,h=Math.imul(G0,C0),p=p+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,p=p+Math.imul(r,M0)|0,c=c+Math.imul(r,S0)|0,c=c+Math.imul(e,M0)|0,h=h+Math.imul(e,S0)|0,p=p+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,p=p+Math.imul(u,g0)|0,c=c+Math.imul(u,N0)|0,c=c+Math.imul(n,g0)|0,h=h+Math.imul(n,N0)|0,p=p+Math.imul(b,_0)|0,c=c+Math.imul(b,B0)|0,c=c+Math.imul(l,_0)|0,h=h+Math.imul(l,B0)|0;var e0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(e0>>>26)|0,e0&=67108863,p=Math.imul(U0,D0),c=Math.imul(U0,C0),c=c+Math.imul(X0,D0)|0,h=Math.imul(X0,C0),p=p+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,p=p+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,p=p+Math.imul(r,q0)|0,c=c+Math.imul(r,j0)|0,c=c+Math.imul(e,q0)|0,h=h+Math.imul(e,j0)|0,p=p+Math.imul(t,g0)|0,c=c+Math.imul(t,N0)|0,c=c+Math.imul(m,g0)|0,h=h+Math.imul(m,N0)|0,p=p+Math.imul(u,_0)|0,c=c+Math.imul(u,B0)|0,c=c+Math.imul(n,_0)|0,h=h+Math.imul(n,B0)|0,p=p+Math.imul(b,w0)|0,c=c+Math.imul(b,f0)|0,c=c+Math.imul(l,w0)|0,h=h+Math.imul(l,f0)|0;var i0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(i0>>>26)|0,i0&=67108863,p=Math.imul(I0,D0),c=Math.imul(I0,C0),c=c+Math.imul(J0,D0)|0,h=Math.imul(J0,C0),p=p+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,p=p+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,p=p+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,p=p+Math.imul(r,g0)|0,c=c+Math.imul(r,N0)|0,c=c+Math.imul(e,g0)|0,h=h+Math.imul(e,N0)|0,p=p+Math.imul(t,_0)|0,c=c+Math.imul(t,B0)|0,c=c+Math.imul(m,_0)|0,h=h+Math.imul(m,B0)|0,p=p+Math.imul(u,w0)|0,c=c+Math.imul(u,f0)|0,c=c+Math.imul(n,w0)|0,h=h+Math.imul(n,f0)|0,p=p+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 $$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+($$>>>26)|0,$$&=67108863,p=Math.imul(F0,D0),c=Math.imul(F0,C0),c=c+Math.imul(A0,D0)|0,h=Math.imul(A0,C0),p=p+Math.imul(I0,R0)|0,c=c+Math.imul(I0,P0)|0,c=c+Math.imul(J0,R0)|0,h=h+Math.imul(J0,P0)|0,p=p+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,p=p+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,p=p+Math.imul($0,g0)|0,c=c+Math.imul($0,N0)|0,c=c+Math.imul(Q0,g0)|0,h=h+Math.imul(Q0,N0)|0,p=p+Math.imul(r,_0)|0,c=c+Math.imul(r,B0)|0,c=c+Math.imul(e,_0)|0,h=h+Math.imul(e,B0)|0,p=p+Math.imul(t,w0)|0,c=c+Math.imul(t,f0)|0,c=c+Math.imul(m,w0)|0,h=h+Math.imul(m,f0)|0,p=p+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,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,p=Math.imul(H0,D0),c=Math.imul(H0,C0),c=c+Math.imul(E0,D0)|0,h=Math.imul(E0,C0),p=p+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,p=p+Math.imul(I0,M0)|0,c=c+Math.imul(I0,S0)|0,c=c+Math.imul(J0,M0)|0,h=h+Math.imul(J0,S0)|0,p=p+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,p=p+Math.imul(Z0,g0)|0,c=c+Math.imul(Z0,N0)|0,c=c+Math.imul(G0,g0)|0,h=h+Math.imul(G0,N0)|0,p=p+Math.imul($0,_0)|0,c=c+Math.imul($0,B0)|0,c=c+Math.imul(Q0,_0)|0,h=h+Math.imul(Q0,B0)|0,p=p+Math.imul(r,w0)|0,c=c+Math.imul(r,f0)|0,c=c+Math.imul(e,w0)|0,h=h+Math.imul(e,f0)|0,p=p+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,p=p+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,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,p=Math.imul(H0,R0),c=Math.imul(H0,P0),c=c+Math.imul(E0,R0)|0,h=Math.imul(E0,P0),p=p+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,p=p+Math.imul(I0,q0)|0,c=c+Math.imul(I0,j0)|0,c=c+Math.imul(J0,q0)|0,h=h+Math.imul(J0,j0)|0,p=p+Math.imul(U0,g0)|0,c=c+Math.imul(U0,N0)|0,c=c+Math.imul(X0,g0)|0,h=h+Math.imul(X0,N0)|0,p=p+Math.imul(Z0,_0)|0,c=c+Math.imul(Z0,B0)|0,c=c+Math.imul(G0,_0)|0,h=h+Math.imul(G0,B0)|0,p=p+Math.imul($0,w0)|0,c=c+Math.imul($0,f0)|0,c=c+Math.imul(Q0,w0)|0,h=h+Math.imul(Q0,f0)|0,p=p+Math.imul(r,c0)|0,c=c+Math.imul(r,h0)|0,c=c+Math.imul(e,c0)|0,h=h+Math.imul(e,h0)|0,p=p+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,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,p=Math.imul(H0,M0),c=Math.imul(H0,S0),c=c+Math.imul(E0,M0)|0,h=Math.imul(E0,S0),p=p+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,p=p+Math.imul(I0,g0)|0,c=c+Math.imul(I0,N0)|0,c=c+Math.imul(J0,g0)|0,h=h+Math.imul(J0,N0)|0,p=p+Math.imul(U0,_0)|0,c=c+Math.imul(U0,B0)|0,c=c+Math.imul(X0,_0)|0,h=h+Math.imul(X0,B0)|0,p=p+Math.imul(Z0,w0)|0,c=c+Math.imul(Z0,f0)|0,c=c+Math.imul(G0,w0)|0,h=h+Math.imul(G0,f0)|0,p=p+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,p=p+Math.imul(r,b0)|0,c=c+Math.imul(r,l0)|0,c=c+Math.imul(e,b0)|0,h=h+Math.imul(e,l0)|0,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(G$>>>26)|0,G$&=67108863,p=Math.imul(H0,q0),c=Math.imul(H0,j0),c=c+Math.imul(E0,q0)|0,h=Math.imul(E0,j0),p=p+Math.imul(F0,g0)|0,c=c+Math.imul(F0,N0)|0,c=c+Math.imul(A0,g0)|0,h=h+Math.imul(A0,N0)|0,p=p+Math.imul(I0,_0)|0,c=c+Math.imul(I0,B0)|0,c=c+Math.imul(J0,_0)|0,h=h+Math.imul(J0,B0)|0,p=p+Math.imul(U0,w0)|0,c=c+Math.imul(U0,f0)|0,c=c+Math.imul(X0,w0)|0,h=h+Math.imul(X0,f0)|0,p=p+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,p=p+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,p=p+Math.imul(r,u0)|0,c=c+Math.imul(r,n0)|0,c=c+Math.imul(e,u0)|0,h=h+Math.imul(e,n0)|0;var V$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(V$>>>26)|0,V$&=67108863,p=Math.imul(H0,g0),c=Math.imul(H0,N0),c=c+Math.imul(E0,g0)|0,h=Math.imul(E0,N0),p=p+Math.imul(F0,_0)|0,c=c+Math.imul(F0,B0)|0,c=c+Math.imul(A0,_0)|0,h=h+Math.imul(A0,B0)|0,p=p+Math.imul(I0,w0)|0,c=c+Math.imul(I0,f0)|0,c=c+Math.imul(J0,w0)|0,h=h+Math.imul(J0,f0)|0,p=p+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,p=p+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,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(U$>>>26)|0,U$&=67108863,p=Math.imul(H0,_0),c=Math.imul(H0,B0),c=c+Math.imul(E0,_0)|0,h=Math.imul(E0,B0),p=p+Math.imul(F0,w0)|0,c=c+Math.imul(F0,f0)|0,c=c+Math.imul(A0,w0)|0,h=h+Math.imul(A0,f0)|0,p=p+Math.imul(I0,c0)|0,c=c+Math.imul(I0,h0)|0,c=c+Math.imul(J0,c0)|0,h=h+Math.imul(J0,h0)|0,p=p+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,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(X$>>>26)|0,X$&=67108863,p=Math.imul(H0,w0),c=Math.imul(H0,f0),c=c+Math.imul(E0,w0)|0,h=Math.imul(E0,f0),p=p+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,p=p+Math.imul(I0,b0)|0,c=c+Math.imul(I0,l0)|0,c=c+Math.imul(J0,b0)|0,h=h+Math.imul(J0,l0)|0,p=p+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$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(K$>>>26)|0,K$&=67108863,p=Math.imul(H0,c0),c=Math.imul(H0,h0),c=c+Math.imul(E0,c0)|0,h=Math.imul(E0,h0),p=p+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,p=p+Math.imul(I0,u0)|0,c=c+Math.imul(I0,n0)|0,c=c+Math.imul(J0,u0)|0,h=h+Math.imul(J0,n0)|0;var I$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(I$>>>26)|0,I$&=67108863,p=Math.imul(H0,b0),c=Math.imul(H0,l0),c=c+Math.imul(E0,b0)|0,h=Math.imul(E0,l0),p=p+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 J$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(J$>>>26)|0,J$&=67108863,p=Math.imul(H0,u0),c=Math.imul(H0,n0),c=c+Math.imul(E0,u0)|0,h=Math.imul(E0,n0);var O$=(f+p|0)+((c&8191)<<13)|0;return f=(h+(c>>>13)|0)+(O$>>>26)|0,O$&=67108863,w[0]=s0,w[1]=t0,w[2]=m0,w[3]=a0,w[4]=r0,w[5]=e0,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]=J$,w[18]=O$,f!==0&&(w[19]=f,_.length++),_};Math.imul||(C=D);function L(N,x,_){_.negative=x.negative^N.negative,_.length=N.length+x.length;for(var B=0,y=0,w=0;w<_.length-1;w++){var f=y;y=0;for(var p=B&67108863,c=Math.min(w,x.length-1),h=Math.max(0,w-N.length+1);h<=c;h++){var d=w-h,b=N.words[d]|0,l=x.words[h]|0,o=b*l,u=o&67108863;f=f+(o/67108864|0)|0,u=u+p|0,p=u&67108863,f=f+(u>>>26)|0,y+=f>>>26,f&=67108863}_.words[w]=p,B=f,f=y}return B!==0?_.words[w]=B:_.length--,_._strip()}function R(N,x,_){return L(N,x,_)}U.prototype.mulTo=function(N,x){var _,B=this.length+N.length;return this.length===10&&N.length===10?_=C(this,N,x):B<63?_=D(this,N,x):B<1024?_=L(this,N,x):_=R(this,N,x),_};function P(N,x){this.x=N,this.y=x}P.prototype.makeRBT=function(N){for(var x=new Array(N),_=U.prototype._countBits(N)-1,B=0;B<N;B++)x[B]=this.revBin(B,_,N);return x},P.prototype.revBin=function(N,x,_){if(N===0||N===_-1)return N;for(var B=0,y=0;y<x;y++)B|=(N&1)<<x-y-1,N>>=1;return B},P.prototype.permute=function(N,x,_,B,y,w){for(var f=0;f<w;f++)B[f]=x[N[f]],y[f]=_[N[f]]},P.prototype.transform=function(N,x,_,B,y,w){this.permute(w,N,x,_,B,y);for(var f=1;f<y;f<<=1)for(var p=f<<1,c=Math.cos(2*Math.PI/p),h=Math.sin(2*Math.PI/p),d=0;d<y;d+=p)for(var b=c,l=h,o=0;o<f;o++){var u=_[d+o],n=B[d+o],s=_[d+o+f],t=B[d+o+f],m=b*s-l*t;t=b*t+l*s,s=m,_[d+o]=u+s,B[d+o]=n+t,_[d+o+f]=u-s,B[d+o+f]=n-t,o!==p&&(m=c*b-h*l,l=c*l+h*b,b=m)}},P.prototype.guessLen13b=function(N,x){var _=Math.max(x,N)|1,B=_&1,y=0;for(_=_/2|0;_;_=_>>>1)y++;return 1<<y+1+B},P.prototype.conjugate=function(N,x,_){if(!(_<=1))for(var B=0;B<_/2;B++){var y=N[B];N[B]=N[_-B-1],N[_-B-1]=y,y=x[B],x[B]=-x[_-B-1],x[_-B-1]=-y}},P.prototype.normalize13b=function(N,x){for(var _=0,B=0;B<x/2;B++){var y=Math.round(N[2*B+1]/x)*8192+Math.round(N[2*B]/x)+_;N[B]=y&67108863,y<67108864?_=0:_=y/67108864|0}return N},P.prototype.convert13b=function(N,x,_,B){for(var y=0,w=0;w<x;w++)y=y+(N[w]|0),_[2*w]=y&8191,y=y>>>13,_[2*w+1]=y&8191,y=y>>>13;for(w=2*x;w<B;++w)_[w]=0;G(y===0),G((y&-8192)===0)},P.prototype.stub=function(N){for(var x=new Array(N),_=0;_<N;_++)x[_]=0;return x},P.prototype.mulp=function(N,x,_){var B=2*this.guessLen13b(N.length,x.length),y=this.makeRBT(B),w=this.stub(B),f=new Array(B),p=new Array(B),c=new Array(B),h=new Array(B),d=new Array(B),b=new Array(B),l=_.words;l.length=B,this.convert13b(N.words,N.length,f,B),this.convert13b(x.words,x.length,h,B),this.transform(f,w,p,c,B,y),this.transform(h,w,d,b,B,y);for(var o=0;o<B;o++){var u=p[o]*d[o]-c[o]*b[o];c[o]=p[o]*b[o]+c[o]*d[o],p[o]=u}return this.conjugate(p,c,B),this.transform(p,c,l,w,B,y),this.conjugate(l,w,B),this.normalize13b(l,B),_.negative=N.negative^x.negative,_.length=N.length+x.length,_._strip()},U.prototype.mul=function(N){var x=new U(null);return x.words=new Array(this.length+N.length),this.mulTo(N,x)},U.prototype.mulf=function(N){var x=new U(null);return x.words=new Array(this.length+N.length),R(this,N,x)},U.prototype.imul=function(N){return this.clone().mulTo(N,this)},U.prototype.imuln=function(N){var x=N<0;x&&(N=-N),G(typeof N=="number"),G(N<67108864);for(var _=0,B=0;B<this.length;B++){var y=(this.words[B]|0)*N,w=(y&67108863)+(_&67108863);_>>=26,_+=y/67108864|0,_+=w>>>26,this.words[B]=w&67108863}return _!==0&&(this.words[B]=_,this.length++),x?this.ineg():this},U.prototype.muln=function(N){return this.clone().imuln(N)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(N){var x=T(N);if(x.length===0)return new U(1);for(var _=this,B=0;B<x.length&&x[B]===0;B++,_=_.sqr());if(++B<x.length)for(var y=_.sqr();B<x.length;B++,y=y.sqr())x[B]!==0&&(_=_.mul(y));return _},U.prototype.iushln=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26,B=67108863>>>26-x<<26-x,y;if(x!==0){var w=0;for(y=0;y<this.length;y++){var f=this.words[y]&B,p=(this.words[y]|0)-f<<x;this.words[y]=p|w,w=f>>>26-x}w&&(this.words[y]=w,this.length++)}if(_!==0){for(y=this.length-1;y>=0;y--)this.words[y+_]=this.words[y];for(y=0;y<_;y++)this.words[y]=0;this.length+=_}return this._strip()},U.prototype.ishln=function(N){return G(this.negative===0),this.iushln(N)},U.prototype.iushrn=function(N,x,_){G(typeof N=="number"&&N>=0);var B;x?B=(x-x%26)/26:B=0;var y=N%26,w=Math.min((N-y)/26,this.length),f=67108863^67108863>>>y<<y,p=_;if(B-=w,B=Math.max(0,B),p){for(var c=0;c<w;c++)p.words[c]=this.words[c];p.length=w}if(w!==0)if(this.length>w)for(this.length-=w,c=0;c<this.length;c++)this.words[c]=this.words[c+w];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(h!==0||c>=B);c--){var d=this.words[c]|0;this.words[c]=h<<26-y|d>>>y,h=d&f}return p&&h!==0&&(p.words[p.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(N){return this.clone().ishln(N)},U.prototype.ushln=function(N){return this.clone().iushln(N)},U.prototype.shrn=function(N){return this.clone().ishrn(N)},U.prototype.ushrn=function(N){return this.clone().iushrn(N)},U.prototype.testn=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26,B=1<<x;if(this.length<=_)return!1;var y=this.words[_];return!!(y&B)},U.prototype.imaskn=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(x!==0&&_++,this.length=Math.min(_,this.length),x!==0){var B=67108863^67108863>>>x<<x;this.words[this.length-1]&=B}return this._strip()},U.prototype.maskn=function(N){return this.clone().imaskn(N)},U.prototype.iaddn=function(N){return G(typeof N=="number"),G(N<67108864),N<0?this.isubn(-N):this.negative!==0?this.length===1&&(this.words[0]|0)<=N?(this.words[0]=N-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(N),this.negative=1,this):this._iaddn(N)},U.prototype._iaddn=function(N){this.words[0]+=N;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},U.prototype.isubn=function(N){if(G(typeof N=="number"),G(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},U.prototype.addn=function(N){return this.clone().iaddn(N)},U.prototype.subn=function(N){return this.clone().isubn(N)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(N,x,_){var B=N.length+_,y;this._expand(B);var w,f=0;for(y=0;y<N.length;y++){w=(this.words[y+_]|0)+f;var p=(N.words[y]|0)*x;w-=p&67108863,f=(w>>26)-(p/67108864|0),this.words[y+_]=w&67108863}for(;y<this.length-_;y++)w=(this.words[y+_]|0)+f,f=w>>26,this.words[y+_]=w&67108863;if(f===0)return this._strip();for(G(f===-1),f=0,y=0;y<this.length;y++)w=-(this.words[y]|0)+f,f=w>>26,this.words[y]=w&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(N,x){var _=this.length-N.length,B=this.clone(),y=N,w=y.words[y.length-1]|0,f=this._countBits(w);_=26-f,_!==0&&(y=y.ushln(_),B.iushln(_),w=y.words[y.length-1]|0);var p=B.length-y.length,c;if(x!=="mod"){c=new U(null),c.length=p+1,c.words=new Array(c.length);for(var h=0;h<c.length;h++)c.words[h]=0}var d=B.clone()._ishlnsubmul(y,1,p);d.negative===0&&(B=d,c&&(c.words[p]=1));for(var b=p-1;b>=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(),x!=="div"&&_!==0&&B.iushrn(_),{div:c||null,mod:B}},U.prototype.divmod=function(N,x,_){if(G(!N.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var B,y,w;return this.negative!==0&&N.negative===0?(w=this.neg().divmod(N,x),x!=="mod"&&(B=w.div.neg()),x!=="div"&&(y=w.mod.neg(),_&&y.negative!==0&&y.iadd(N)),{div:B,mod:y}):this.negative===0&&N.negative!==0?(w=this.divmod(N.neg(),x),x!=="mod"&&(B=w.div.neg()),{div:B,mod:w.mod}):(this.negative&N.negative)!==0?(w=this.neg().divmod(N.neg(),x),x!=="div"&&(y=w.mod.neg(),_&&y.negative!==0&&y.isub(N)),{div:w.div,mod:y}):N.length>this.length||this.cmp(N)<0?{div:new U(0),mod:this}:N.length===1?x==="div"?{div:this.divn(N.words[0]),mod:null}:x==="mod"?{div:null,mod:new U(this.modrn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new U(this.modrn(N.words[0]))}:this._wordDiv(N,x)},U.prototype.div=function(N){return this.divmod(N,"div",!1).div},U.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},U.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},U.prototype.divRound=function(N){var x=this.divmod(N);if(x.mod.isZero())return x.div;var _=x.div.negative!==0?x.mod.isub(N):x.mod,B=N.ushrn(1),y=N.andln(1),w=_.cmp(B);return w<0||y===1&&w===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},U.prototype.modrn=function(N){var x=N<0;x&&(N=-N),G(N<=67108863);for(var _=(1<<26)%N,B=0,y=this.length-1;y>=0;y--)B=(_*B+(this.words[y]|0))%N;return x?-B:B},U.prototype.modn=function(N){return this.modrn(N)},U.prototype.idivn=function(N){var x=N<0;x&&(N=-N),G(N<=67108863);for(var _=0,B=this.length-1;B>=0;B--){var y=(this.words[B]|0)+_*67108864;this.words[B]=y/N|0,_=y%N}return this._strip(),x?this.ineg():this},U.prototype.divn=function(N){return this.clone().idivn(N)},U.prototype.egcd=function(N){G(N.negative===0),G(!N.isZero());var x=this,_=N.clone();x.negative!==0?x=x.umod(N):x=x.clone();for(var B=new U(1),y=new U(0),w=new U(0),f=new U(1),p=0;x.isEven()&&_.isEven();)x.iushrn(1),_.iushrn(1),++p;for(var c=_.clone(),h=x.clone();!x.isZero();){for(var d=0,b=1;(x.words[0]&b)===0&&d<26;++d,b<<=1);if(d>0)for(x.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;(_.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(_.iushrn(l);l-- >0;)(w.isOdd()||f.isOdd())&&(w.iadd(c),f.isub(h)),w.iushrn(1),f.iushrn(1);x.cmp(_)>=0?(x.isub(_),B.isub(w),y.isub(f)):(_.isub(x),w.isub(B),f.isub(y))}return{a:w,b:f,gcd:_.iushln(p)}},U.prototype._invmp=function(N){G(N.negative===0),G(!N.isZero());var x=this,_=N.clone();x.negative!==0?x=x.umod(N):x=x.clone();for(var B=new U(1),y=new U(0),w=_.clone();x.cmpn(1)>0&&_.cmpn(1)>0;){for(var f=0,p=1;(x.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(x.iushrn(f);f-- >0;)B.isOdd()&&B.iadd(w),B.iushrn(1);for(var c=0,h=1;(_.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(_.iushrn(c);c-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);x.cmp(_)>=0?(x.isub(_),B.isub(y)):(_.isub(x),y.isub(B))}var d;return x.cmpn(1)===0?d=B:d=y,d.cmpn(0)<0&&d.iadd(N),d},U.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var x=this.clone(),_=N.clone();x.negative=0,_.negative=0;for(var B=0;x.isEven()&&_.isEven();B++)x.iushrn(1),_.iushrn(1);do{for(;x.isEven();)x.iushrn(1);for(;_.isEven();)_.iushrn(1);var y=x.cmp(_);if(y<0){var w=x;x=_,_=w}else if(y===0||_.cmpn(1)===0)break;x.isub(_)}while(!0);return _.iushln(B)},U.prototype.invm=function(N){return this.egcd(N).a.umod(N)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(N){return this.words[0]&N},U.prototype.bincn=function(N){G(typeof N=="number");var x=N%26,_=(N-x)/26,B=1<<x;if(this.length<=_)return this._expand(_+1),this.words[_]|=B,this;for(var y=B,w=_;y!==0&&w<this.length;w++){var f=this.words[w]|0;f+=y,y=f>>>26,f&=67108863,this.words[w]=f}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(N){var x=N<0;if(this.negative!==0&&!x)return-1;if(this.negative===0&&x)return 1;this._strip();var _;if(this.length>1)_=1;else{x&&(N=-N),G(N<=67108863,"Number is too big");var B=this.words[0]|0;_=B===N?0:B<N?-1:1}return this.negative!==0?-_|0:_},U.prototype.cmp=function(N){if(this.negative!==0&&N.negative===0)return-1;if(this.negative===0&&N.negative!==0)return 1;var x=this.ucmp(N);return this.negative!==0?-x|0:x},U.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return-1;for(var x=0,_=this.length-1;_>=0;_--){var B=this.words[_]|0,y=N.words[_]|0;if(B!==y){B<y?x=-1:B>y&&(x=1);break}}return x},U.prototype.gtn=function(N){return this.cmpn(N)===1},U.prototype.gt=function(N){return this.cmp(N)===1},U.prototype.gten=function(N){return this.cmpn(N)>=0},U.prototype.gte=function(N){return this.cmp(N)>=0},U.prototype.ltn=function(N){return this.cmpn(N)===-1},U.prototype.lt=function(N){return this.cmp(N)===-1},U.prototype.lten=function(N){return this.cmpn(N)<=0},U.prototype.lte=function(N){return this.cmp(N)<=0},U.prototype.eqn=function(N){return this.cmpn(N)===0},U.prototype.eq=function(N){return this.cmp(N)===0},U.red=function(N){return new k(N)},U.prototype.toRed=function(N){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(N){return this.red=N,this},U.prototype.forceRed=function(N){return G(!this.red,"Already a number in reduction context"),this._forceRed(N)},U.prototype.redAdd=function(N){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},U.prototype.redIAdd=function(N){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},U.prototype.redSub=function(N){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},U.prototype.redISub=function(N){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},U.prototype.redShl=function(N){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},U.prototype.redMul=function(N){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},U.prototype.redIMul=function(N){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},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(N){return G(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var z={k256:null,p224:null,p192:null,p25519:null};function M(N,x){this.name=N,this.p=new U(x,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 N=new U(null);return N.words=new Array(Math.ceil(this.n/13)),N},M.prototype.ireduce=function(N){var x=N,_;do this.split(x,this.tmp),x=this.imulK(x),x=x.iadd(this.tmp),_=x.bitLength();while(_>this.n);var B=_<this.n?-1:x.ucmp(this.p);return B===0?(x.words[0]=0,x.length=1):B>0?x.isub(this.p):x.strip!==void 0?x.strip():x._strip(),x},M.prototype.split=function(N,x){N.iushrn(this.n,0,x)},M.prototype.imulK=function(N){return N.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,x){for(var _=4194303,B=Math.min(N.length,9),y=0;y<B;y++)x.words[y]=N.words[y];if(x.length=B,N.length<=9){N.words[0]=0,N.length=1;return}var w=N.words[9];for(x.words[x.length++]=w&_,y=10;y<N.length;y++){var f=N.words[y]|0;N.words[y-10]=(f&_)<<4|w>>>22,w=f}w>>>=22,N.words[y-10]=w,w===0&&N.length>10?N.length-=10:N.length-=9},S.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var x=0,_=0;_<N.length;_++){var B=N.words[_]|0;x+=B*977,N.words[_]=x&67108863,x=B*64+(x/67108864|0)}return N.words[N.length-1]===0&&(N.length--,N.words[N.length-1]===0&&N.length--),N};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(N){for(var x=0,_=0;_<N.length;_++){var B=(N.words[_]|0)*19+x,y=B&67108863;B>>>=26,N.words[_]=y,x=B}return x!==0&&(N.words[N.length++]=x),N},U._prime=function(N){if(z[N])return z[N];var x;if(N==="k256")x=new S;else if(N==="p224")x=new v;else if(N==="p192")x=new q;else if(N==="p25519")x=new j;else throw new Error("Unknown prime "+N);return z[N]=x,x};function k(N){if(typeof N=="string"){var x=U._prime(N);this.m=x.p,this.prime=x}else G(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}k.prototype._verify1=function(N){G(N.negative===0,"red works only with positives"),G(N.red,"red works only with red numbers")},k.prototype._verify2=function(N,x){G((N.negative|x.negative)===0,"red works only with positives"),G(N.red&&N.red===x.red,"red works only with red numbers")},k.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):(O(N,N.umod(this.m)._forceRed(this)),N)},k.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},k.prototype.add=function(N,x){this._verify2(N,x);var _=N.add(x);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},k.prototype.iadd=function(N,x){this._verify2(N,x);var _=N.iadd(x);return _.cmp(this.m)>=0&&_.isub(this.m),_},k.prototype.sub=function(N,x){this._verify2(N,x);var _=N.sub(x);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},k.prototype.isub=function(N,x){this._verify2(N,x);var _=N.isub(x);return _.cmpn(0)<0&&_.iadd(this.m),_},k.prototype.shl=function(N,x){return this._verify1(N),this.imod(N.ushln(x))},k.prototype.imul=function(N,x){return this._verify2(N,x),this.imod(N.imul(x))},k.prototype.mul=function(N,x){return this._verify2(N,x),this.imod(N.mul(x))},k.prototype.isqr=function(N){return this.imul(N,N.clone())},k.prototype.sqr=function(N){return this.mul(N,N)},k.prototype.sqrt=function(N){if(N.isZero())return N.clone();var x=this.m.andln(3);if(G(x%2===1),x===3){var _=this.m.add(new U(1)).iushrn(2);return this.pow(N,_)}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),f=w.redNeg(),p=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new U(2*c*c).toRed(this);this.pow(c,p).cmp(f)!==0;)c.redIAdd(f);for(var h=this.pow(c,B),d=this.pow(N,B.addn(1).iushrn(1)),b=this.pow(N,B),l=y;b.cmp(w)!==0;){for(var o=b,u=0;o.cmp(w)!==0;u++)o=o.redSqr();G(u<l);var n=this.pow(h,new U(1).iushln(l-u-1));d=d.redMul(n),h=n.redSqr(),b=b.redMul(h),l=u}return d},k.prototype.invm=function(N){var x=N._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},k.prototype.pow=function(N,x){if(x.isZero())return new U(1).toRed(this);if(x.cmpn(1)===0)return N.clone();var _=4,B=new Array(1<<_);B[0]=new U(1).toRed(this),B[1]=N;for(var y=2;y<B.length;y++)B[y]=this.mul(B[y-1],N);var w=B[0],f=0,p=0,c=x.bitLength()%26;for(c===0&&(c=26),y=x.length-1;y>=0;y--){for(var h=x.words[y],d=c-1;d>=0;d--){var b=h>>d&1;if(w!==B[0]&&(w=this.sqr(w)),b===0&&f===0){p=0;continue}f<<=1,f|=b,p++,!(p!==_&&(y!==0||d!==0))&&(w=this.mul(w,B[f]),p=0,f=0)}c=26}return w},k.prototype.convertTo=function(N){var x=N.umod(this.m);return x===N?x.clone():x},k.prototype.convertFrom=function(N){var x=N.clone();return x.red=null,x},U.mont=function(N){return new g(N)};function g(N){k.call(this,N),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(N){return this.imod(N.ushln(this.shift))},g.prototype.convertFrom=function(N){var x=this.imod(N.mul(this.rinv));return x.red=null,x},g.prototype.imul=function(N,x){if(N.isZero()||x.isZero())return N.words[0]=0,N.length=1,N;var _=N.imul(x),B=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=_.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,x){if(N.isZero()||x.isZero())return new U(0)._forceRed(this);var _=N.mul(x),B=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=_.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(N){var x=this.imod(N._invmp(this.m).mul(this.r2));return x._forceRed(this)}})(typeof Q>"u"||Q,$)}}),fQ=z$({"node_modules/browserify-rsa/index.js"($,Q){var Y=wQ(),Z=v$();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),J=K.modulus.byteLength(),O=new Y(X).mul(I.blinder).umod(K.modulus),F=O.toRed(Y.mont(K.prime1)),A=O.toRed(Y.mont(K.prime2)),W=K.coefficient,H=K.prime1,E=K.prime2,T=F.redPow(K.exponent1).fromRed(),D=A.redPow(K.exponent2).fromRed(),C=T.isub(D).imul(W).umod(H).imul(E);return D.iadd(C).imul(I.unblinder).umod(K.modulus).toArrayLike(Buffer,"be",J)}U.getr=V,Q.exports=U}}),pQ=z$({"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 <fedor@indutny.com>",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"}}}}),cQ=z$({"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;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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,$)}}),hQ=z$({"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<V.length;K++)X[K]=V[K]|0;return X}if(U==="hex"){V=V.replace(/[^a-z0-9]+/gi,""),V.length%2!==0&&(V="0"+V);for(var K=0;K<V.length;K+=2)X.push(parseInt(V[K]+V[K+1],16))}else for(var K=0;K<V.length;K++){var I=V.charCodeAt(K),J=I>>8,O=I&255;J?X.push(J,O):X.push(O)}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<V.length;X++)U+=Z(V[X].toString(16));return U}Q.toHex=G,Q.encode=function(V,U){return U==="hex"?G(V):V}}}),dQ=z$({"node_modules/elliptic/lib/elliptic/utils.js"($){var Q=$,Y=cQ(),Z=$Q(),G=hQ();Q.assert=Z,Q.toArray=G.toArray,Q.zero2=G.zero2,Q.toHex=G.toHex,Q.encode=G.encode;function V(J,O,F){var A=new Array(Math.max(J.bitLength(),F)+1);A.fill(0);for(var W=1<<O+1,H=J.clone(),E=0;E<A.length;E++){var T,D=H.andln(W-1);H.isOdd()?(D>(W>>1)-1?T=(W>>1)-D:T=D,H.isubn(T)):T=0,A[E]=T,H.iushrn(1)}return A}Q.getNAF=V;function U(J,O){var F=[[],[]];J=J.clone(),O=O.clone();for(var A=0,W=0,H;J.cmpn(-A)>0||O.cmpn(-W)>0;){var E=J.andln(3)+A&3,T=O.andln(3)+W&3;E===3&&(E=-1),T===3&&(T=-1);var D;(E&1)===0?D=0:(H=J.andln(7)+A&7,(H===3||H===5)&&T===2?D=-E:D=E),F[0].push(D);var C;(T&1)===0?C=0:(H=O.andln(7)+W&7,(H===3||H===5)&&E===2?C=-T:C=T),F[1].push(C),2*A===D+1&&(A=1-A),2*W===C+1&&(W=1-W),J.iushrn(1),O.iushrn(1)}return F}Q.getJSF=U;function X(J,O,F){var A="_"+O;J.prototype[O]=function(){return this[A]!==void 0?this[A]:this[A]=F.call(this)}}Q.cachedProperty=X;function K(J){return typeof J=="string"?Q.toArray(J,"hex"):J}Q.parseBytes=K;function I(J){return new Y(J,"hex","le")}Q.intFromLE=I}}),bQ=z$({"node_modules/elliptic/lib/elliptic/curve/base.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.getNAF,V=Z.getJSF,U=Z.assert;function X(I,J){this.type=I,this.p=new Y(J.p,16),this.red=J.prime?Y.red(J.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=J.n&&new Y(J.n,16),this.g=J.g&&this.pointFromJSON(J.g,J.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 O=this.n&&this.p.div(this.n);!O||O.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,J){U(I.precomputed);var O=I._getDoubles(),F=G(J,1,this._bitLength),A=(1<<O.step+1)-(O.step%2===0?2:1);A/=3;var W=[],H,E;for(H=0;H<F.length;H+=O.step){E=0;for(var T=H+O.step-1;T>=H;T--)E=(E<<1)+F[T];W.push(E)}for(var D=this.jpoint(null,null,null),C=this.jpoint(null,null,null),L=A;L>0;L--){for(H=0;H<W.length;H++)E=W[H],E===L?C=C.mixedAdd(O.points[H]):E===-L&&(C=C.mixedAdd(O.points[H].neg()));D=D.add(C)}return D.toP()},X.prototype._wnafMul=function(I,J){var O=4,F=I._getNAFPoints(O);O=F.wnd;for(var A=F.points,W=G(J,O,this._bitLength),H=this.jpoint(null,null,null),E=W.length-1;E>=0;E--){for(var T=0;E>=0&&W[E]===0;E--)T++;if(E>=0&&T++,H=H.dblp(T),E<0)break;var D=W[E];U(D!==0),I.type==="affine"?D>0?H=H.mixedAdd(A[D-1>>1]):H=H.mixedAdd(A[-D-1>>1].neg()):D>0?H=H.add(A[D-1>>1]):H=H.add(A[-D-1>>1].neg())}return I.type==="affine"?H.toP():H},X.prototype._wnafMulAdd=function(I,J,O,F,A){var W=this._wnafT1,H=this._wnafT2,E=this._wnafT3,T=0,D,C,L;for(D=0;D<F;D++){L=J[D];var R=L._getNAFPoints(I);W[D]=R.wnd,H[D]=R.points}for(D=F-1;D>=1;D-=2){var P=D-1,z=D;if(W[P]!==1||W[z]!==1){E[P]=G(O[P],W[P],this._bitLength),E[z]=G(O[z],W[z],this._bitLength),T=Math.max(E[P].length,T),T=Math.max(E[z].length,T);continue}var M=[J[P],null,null,J[z]];J[P].y.cmp(J[z].y)===0?(M[1]=J[P].add(J[z]),M[2]=J[P].toJ().mixedAdd(J[z].neg())):J[P].y.cmp(J[z].y.redNeg())===0?(M[1]=J[P].toJ().mixedAdd(J[z]),M[2]=J[P].add(J[z].neg())):(M[1]=J[P].toJ().mixedAdd(J[z]),M[2]=J[P].toJ().mixedAdd(J[z].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],v=V(O[P],O[z]);for(T=Math.max(v[0].length,T),E[P]=new Array(T),E[z]=new Array(T),C=0;C<T;C++){var q=v[0][C]|0,j=v[1][C]|0;E[P][C]=S[(q+1)*3+(j+1)],E[z][C]=0,H[P]=M}}var k=this.jpoint(null,null,null),g=this._wnafT4;for(D=T;D>=0;D--){for(var N=0;D>=0;){var x=!0;for(C=0;C<F;C++)g[C]=E[C][D]|0,g[C]!==0&&(x=!1);if(!x)break;N++,D--}if(D>=0&&N++,k=k.dblp(N),D<0)break;for(C=0;C<F;C++){var _=g[C];_!==0&&(_>0?L=H[C][_-1>>1]:_<0&&(L=H[C][-_-1>>1].neg()),L.type==="affine"?k=k.mixedAdd(L):k=k.add(L))}}for(D=0;D<F;D++)H[D]=null;return A?k:k.toP()};function K(I,J){this.curve=I,this.type=J,this.precomputed=null}X.BasePoint=K,K.prototype.eq=function(){throw new Error("Not implemented")},K.prototype.validate=function(){return this.curve.validate(this)},X.prototype.decodePoint=function(I,J){I=Z.toArray(I,J);var O=this.p.byteLength();if((I[0]===4||I[0]===6||I[0]===7)&&I.length-1===2*O){I[0]===6?U(I[I.length-1]%2===0):I[0]===7&&U(I[I.length-1]%2===1);var F=this.point(I.slice(1,1+O),I.slice(1+O,1+2*O));return F}else if((I[0]===2||I[0]===3)&&I.length-1===O)return this.pointFromX(I.slice(1,1+O),I[0]===3);throw new Error("Unknown point format")},K.prototype.encodeCompressed=function(I){return this.encode(I,!0)},K.prototype._encode=function(I){var J=this.curve.p.byteLength(),O=this.getX().toArray("be",J);return I?[this.getY().isEven()?2:3].concat(O):[4].concat(O,this.getY().toArray("be",J))},K.prototype.encode=function(I,J){return Z.encode(this._encode(J),I)},K.prototype.precompute=function(I){if(this.precomputed)return this;var J={doubles:null,naf:null,beta:null};return J.naf=this._getNAFPoints(8),J.doubles=this._getDoubles(4,I),J.beta=this._getBeta(),this.precomputed=J,this},K.prototype._hasDoubles=function(I){if(!this.precomputed)return!1;var J=this.precomputed.doubles;return J?J.points.length>=Math.ceil((I.bitLength()+1)/J.step):!1},K.prototype._getDoubles=function(I,J){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O=[this],F=this,A=0;A<J;A+=I){for(var W=0;W<I;W++)F=F.dbl();O.push(F)}return{step:I,points:O}},K.prototype._getNAFPoints=function(I){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var J=[this],O=(1<<I)-1,F=O===1?null:this.dbl(),A=1;A<O;A++)J[A]=J[A-1].add(F);return{wnd:I,points:J}},K.prototype._getBeta=function(){return null},K.prototype.dblp=function(I){for(var J=this,O=0;O<I;O++)J=J.dbl();return J}}}),lQ=z$({"node_modules/elliptic/lib/elliptic/curve/short.js"($,Q){var Y=dQ(),Z=cQ(),G=q$(),V=bQ(),U=Y.assert;function X(J){V.call(this,"short",J),this.a=new Z(J.a,16).toRed(this.red),this.b=new Z(J.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(J),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}G(X,V),Q.exports=X,X.prototype._getEndomorphism=function(J){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var O,F;if(J.beta)O=new Z(J.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);O=A[0].cmp(A[1])<0?A[0]:A[1],O=O.toRed(this.red)}if(J.lambda)F=new Z(J.lambda,16);else{var W=this._getEndoRoots(this.n);this.g.mul(W[0]).x.cmp(this.g.x.redMul(O))===0?F=W[0]:(F=W[1],U(this.g.mul(F).x.cmp(this.g.x.redMul(O))===0))}var H;return J.basis?H=J.basis.map(function(E){return{a:new Z(E.a,16),b:new Z(E.b,16)}}):H=this._getEndoBasis(F),{beta:O,lambda:F,basis:H}}},X.prototype._getEndoRoots=function(J){var O=J===this.p?this.red:Z.mont(J),F=new Z(2).toRed(O).redInvm(),A=F.redNeg(),W=new Z(3).toRed(O).redNeg().redSqrt().redMul(F),H=A.redAdd(W).fromRed(),E=A.redSub(W).fromRed();return[H,E]},X.prototype._getEndoBasis=function(J){for(var O=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=J,A=this.n.clone(),W=new Z(1),H=new Z(0),E=new Z(0),T=new Z(1),D,C,L,R,P,z,M,S=0,v,q;F.cmpn(0)!==0;){var j=A.div(F);v=A.sub(j.mul(F)),q=E.sub(j.mul(W));var k=T.sub(j.mul(H));if(!L&&v.cmp(O)<0)D=M.neg(),C=W,L=v.neg(),R=q;else if(L&&++S===2)break;M=v,A=F,F=v,E=W,W=q,T=H,H=k}P=v.neg(),z=q;var g=L.sqr().add(R.sqr()),N=P.sqr().add(z.sqr());return N.cmp(g)>=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(J){var O=this.endo.basis,F=O[0],A=O[1],W=A.b.mul(J).divRound(this.n),H=F.b.neg().mul(J).divRound(this.n),E=W.mul(F.a),T=H.mul(A.a),D=W.mul(F.b),C=H.mul(A.b),L=J.sub(E).sub(T),R=D.add(C).neg();return{k1:L,k2:R}},X.prototype.pointFromX=function(J,O){J=new Z(J,16),J.red||(J=J.toRed(this.red));var F=J.redSqr().redMul(J).redIAdd(J.redMul(this.a)).redIAdd(this.b),A=F.redSqrt();if(A.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");var W=A.fromRed().isOdd();return(O&&!W||!O&&W)&&(A=A.redNeg()),this.point(J,A)},X.prototype.validate=function(J){if(J.inf)return!0;var{x:O,y:F}=J,A=this.a.redMul(O),W=O.redSqr().redMul(O).redIAdd(A).redIAdd(this.b);return F.redSqr().redISub(W).cmpn(0)===0},X.prototype._endoWnafMulAdd=function(J,O,F){for(var A=this._endoWnafT1,W=this._endoWnafT2,H=0;H<J.length;H++){var E=this._endoSplit(O[H]),T=J[H],D=T._getBeta();E.k1.negative&&(E.k1.ineg(),T=T.neg(!0)),E.k2.negative&&(E.k2.ineg(),D=D.neg(!0)),A[H*2]=T,A[H*2+1]=D,W[H*2]=E.k1,W[H*2+1]=E.k2}for(var C=this._wnafMulAdd(1,A,W,H*2,F),L=0;L<H*2;L++)A[L]=null,W[L]=null;return C};function K(J,O,F,A){V.BasePoint.call(this,J,"affine"),O===null&&F===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Z(O,16),this.y=new Z(F,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}G(K,V.BasePoint),X.prototype.point=function(J,O,F){return new K(this,J,O,F)},X.prototype.pointFromJSON=function(J,O){return K.fromJSON(this,J,O)},K.prototype._getBeta=function(){if(this.curve.endo){var J=this.precomputed;if(J&&J.beta)return J.beta;var O=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(J){var F=this.curve,A=function(W){return F.point(W.x.redMul(F.endo.beta),W.y)};J.beta=O,O.precomputed={beta:null,naf:J.naf&&{wnd:J.naf.wnd,points:J.naf.points.map(A)},doubles:J.doubles&&{step:J.doubles.step,points:J.doubles.points.map(A)}}}return O}},K.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},K.fromJSON=function(J,O,F){typeof O=="string"&&(O=JSON.parse(O));var A=J.point(O[0],O[1],F);if(!O[2])return A;function W(E){return J.point(E[0],E[1],F)}var H=O[2];return A.precomputed={beta:null,doubles:H.doubles&&{step:H.doubles.step,points:[A].concat(H.doubles.points.map(W))},naf:H.naf&&{wnd:H.naf.wnd,points:[A].concat(H.naf.points.map(W))}},A},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},K.prototype.isInfinity=function(){return this.inf},K.prototype.add=function(J){if(this.inf)return J;if(J.inf)return this;if(this.eq(J))return this.dbl();if(this.neg().eq(J))return this.curve.point(null,null);if(this.x.cmp(J.x)===0)return this.curve.point(null,null);var O=this.y.redSub(J.y);O.cmpn(0)!==0&&(O=O.redMul(this.x.redSub(J.x).redInvm()));var F=O.redSqr().redISub(this.x).redISub(J.x),A=O.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,A)},K.prototype.dbl=function(){if(this.inf)return this;var J=this.y.redAdd(this.y);if(J.cmpn(0)===0)return this.curve.point(null,null);var O=this.curve.a,F=this.x.redSqr(),A=J.redInvm(),W=F.redAdd(F).redIAdd(F).redIAdd(O).redMul(A),H=W.redSqr().redISub(this.x.redAdd(this.x)),E=W.redMul(this.x.redSub(H)).redISub(this.y);return this.curve.point(H,E)},K.prototype.getX=function(){return this.x.fromRed()},K.prototype.getY=function(){return this.y.fromRed()},K.prototype.mul=function(J){return J=new Z(J,16),this.isInfinity()?this:this._hasDoubles(J)?this.curve._fixedNafMul(this,J):this.curve.endo?this.curve._endoWnafMulAdd([this],[J]):this.curve._wnafMul(this,J)},K.prototype.mulAdd=function(J,O,F){var A=[this,O],W=[J,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,W):this.curve._wnafMulAdd(1,A,W,2)},K.prototype.jmulAdd=function(J,O,F){var A=[this,O],W=[J,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,W,!0):this.curve._wnafMulAdd(1,A,W,2,!0)},K.prototype.eq=function(J){return this===J||this.inf===J.inf&&(this.inf||this.x.cmp(J.x)===0&&this.y.cmp(J.y)===0)},K.prototype.neg=function(J){if(this.inf)return this;var O=this.curve.point(this.x,this.y.redNeg());if(J&&this.precomputed){var F=this.precomputed,A=function(W){return W.neg()};O.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 O},K.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var J=this.curve.jpoint(this.x,this.y,this.curve.one);return J};function I(J,O,F,A){V.BasePoint.call(this,J,"jacobian"),O===null&&F===null&&A===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0)):(this.x=new Z(O,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(J,O,F){return new I(this,J,O,F)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var J=this.z.redInvm(),O=J.redSqr(),F=this.x.redMul(O),A=this.y.redMul(O).redMul(J);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(J){if(this.isInfinity())return J;if(J.isInfinity())return this;var O=J.z.redSqr(),F=this.z.redSqr(),A=this.x.redMul(O),W=J.x.redMul(F),H=this.y.redMul(O.redMul(J.z)),E=J.y.redMul(F.redMul(this.z)),T=A.redSub(W),D=H.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(H.redMul(L)),M=this.z.redMul(J.z).redMul(T);return this.curve.jpoint(P,z,M)},I.prototype.mixedAdd=function(J){if(this.isInfinity())return J.toJ();if(J.isInfinity())return this;var O=this.z.redSqr(),F=this.x,A=J.x.redMul(O),W=this.y,H=J.y.redMul(O).redMul(this.z),E=F.redSub(A),T=W.redSub(H);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(W.redMul(C)),z=this.z.redMul(E);return this.curve.jpoint(R,P,z)},I.prototype.dblp=function(J){if(J===0)return this;if(this.isInfinity())return this;if(!J)return this.dbl();var O;if(this.curve.zeroA||this.curve.threeA){var F=this;for(O=0;O<J;O++)F=F.dbl();return F}var A=this.curve.a,W=this.curve.tinv,H=this.x,E=this.y,T=this.z,D=T.redSqr().redSqr(),C=E.redAdd(E);for(O=0;O<J;O++){var L=H.redSqr(),R=C.redSqr(),P=R.redSqr(),z=L.redAdd(L).redIAdd(L).redIAdd(A.redMul(D)),M=H.redMul(R),S=z.redSqr().redISub(M.redAdd(M)),v=M.redISub(S),q=z.redMul(v);q=q.redIAdd(q).redISub(P);var j=C.redMul(T);O+1<J&&(D=D.redMul(P)),H=S,T=j,C=q}return this.curve.jpoint(H,C.redMul(W),T)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},I.prototype._zeroDbl=function(){var J,O,F;if(this.zOne){var A=this.x.redSqr(),W=this.y.redSqr(),H=W.redSqr(),E=this.x.redAdd(W).redSqr().redISub(A).redISub(H);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A),D=T.redSqr().redISub(E).redISub(E),C=H.redIAdd(H);C=C.redIAdd(C),C=C.redIAdd(C),J=D,O=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.x.redSqr(),R=this.y.redSqr(),P=R.redSqr(),z=this.x.redAdd(R).redSqr().redISub(L).redISub(P);z=z.redIAdd(z);var M=L.redAdd(L).redIAdd(L),S=M.redSqr(),v=P.redIAdd(P);v=v.redIAdd(v),v=v.redIAdd(v),J=S.redISub(z).redISub(z),O=M.redMul(z.redISub(J)).redISub(v),F=this.y.redMul(this.z),F=F.redIAdd(F)}return this.curve.jpoint(J,O,F)},I.prototype._threeDbl=function(){var J,O,F;if(this.zOne){var A=this.x.redSqr(),W=this.y.redSqr(),H=W.redSqr(),E=this.x.redAdd(W).redSqr().redISub(A).redISub(H);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A).redIAdd(this.curve.a),D=T.redSqr().redISub(E).redISub(E);J=D;var C=H.redIAdd(H);C=C.redIAdd(C),C=C.redIAdd(C),O=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.z.redSqr(),R=this.y.redSqr(),P=this.x.redMul(R),z=this.x.redSub(L).redMul(this.x.redAdd(L));z=z.redAdd(z).redIAdd(z);var M=P.redIAdd(P);M=M.redIAdd(M);var S=M.redAdd(M);J=z.redSqr().redISub(S),F=this.y.redAdd(this.z).redSqr().redISub(R).redISub(L);var v=R.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),O=z.redMul(M.redISub(J)).redISub(v)}return this.curve.jpoint(J,O,F)},I.prototype._dbl=function(){var J=this.curve.a,O=this.x,F=this.y,A=this.z,W=A.redSqr().redSqr(),H=O.redSqr(),E=F.redSqr(),T=H.redAdd(H).redIAdd(H).redIAdd(J.redMul(W)),D=O.redAdd(O);D=D.redIAdd(D);var C=D.redMul(E),L=T.redSqr().redISub(C.redAdd(C)),R=C.redISub(L),P=E.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=T.redMul(R).redISub(P),M=F.redAdd(F).redMul(A);return this.curve.jpoint(L,z,M)},I.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var J=this.x.redSqr(),O=this.y.redSqr(),F=this.z.redSqr(),A=O.redSqr(),W=J.redAdd(J).redIAdd(J),H=W.redSqr(),E=this.x.redAdd(O).redSqr().redISub(J).redISub(A);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(H);var T=E.redSqr(),D=A.redIAdd(A);D=D.redIAdd(D),D=D.redIAdd(D),D=D.redIAdd(D);var C=W.redIAdd(E).redSqr().redISub(H).redISub(T).redISub(D),L=O.redMul(C);L=L.redIAdd(L),L=L.redIAdd(L);var R=this.x.redMul(T).redISub(L);R=R.redIAdd(R),R=R.redIAdd(R);var P=this.y.redMul(C.redMul(D.redISub(C)).redISub(E.redMul(T)));P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=this.z.redAdd(E).redSqr().redISub(F).redISub(T);return this.curve.jpoint(R,P,z)},I.prototype.mul=function(J,O){return J=new Z(J,O),this.curve._wnafMul(this,J)},I.prototype.eq=function(J){if(J.type==="affine")return this.eq(J.toJ());if(this===J)return!0;var O=this.z.redSqr(),F=J.z.redSqr();if(this.x.redMul(F).redISub(J.x.redMul(O)).cmpn(0)!==0)return!1;var A=O.redMul(this.z),W=F.redMul(J.z);return this.y.redMul(W).redISub(J.y.redMul(A)).cmpn(0)===0},I.prototype.eqXToP=function(J){var O=this.z.redSqr(),F=J.toRed(this.curve.red).redMul(O);if(this.x.cmp(F)===0)return!0;for(var A=J.clone(),W=this.curve.redN.redMul(O);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(F.redIAdd(W),this.x.cmp(F)===0)return!0}},I.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},I.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),oQ=z$({"node_modules/elliptic/lib/elliptic/curve/mont.js"($,Q){var Y=cQ(),Z=q$(),G=bQ(),V=dQ();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,J=I.redSqr(),O=J.redMul(I).redAdd(J.redMul(this.a)).redAdd(I),F=O.redSqrt();return F.redSqr().cmp(O)===0};function X(K,I,J){G.BasePoint.call(this,K,"projective"),I===null&&J===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Y(I,16),this.z=new Y(J,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()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},X.prototype.isInfinity=function(){return this.z.cmpn(0)===0},X.prototype.dbl=function(){var K=this.x.redAdd(this.z),I=K.redSqr(),J=this.x.redSub(this.z),O=J.redSqr(),F=I.redSub(O),A=I.redMul(O),W=F.redMul(O.redAdd(this.curve.a24.redMul(F)));return this.curve.point(A,W)},X.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.diffAdd=function(K,I){var J=this.x.redAdd(this.z),O=this.x.redSub(this.z),F=K.x.redAdd(K.z),A=K.x.redSub(K.z),W=A.redMul(J),H=F.redMul(O),E=I.z.redMul(W.redAdd(H).redSqr()),T=I.x.redMul(W.redISub(H).redSqr());return this.curve.point(E,T)},X.prototype.mul=function(K){for(var I=K.clone(),J=this,O=this.curve.point(null,null),F=this,A=[];I.cmpn(0)!==0;I.iushrn(1))A.push(I.andln(1));for(var W=A.length-1;W>=0;W--)A[W]===0?(J=J.diffAdd(O,F),O=O.dbl()):(O=J.diffAdd(O,F),J=J.dbl());return O},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()}}}),uQ=z$({"node_modules/elliptic/lib/elliptic/curve/edwards.js"($,Q){var Y=dQ(),Z=cQ(),G=q$(),V=bQ(),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,J,O,F){return this.point(I,J,O,F)},X.prototype.pointFromX=function(I,J){I=new Z(I,16),I.red||(I=I.toRed(this.red));var O=I.redSqr(),F=this.c2.redSub(this.a.redMul(O)),A=this.one.redSub(this.c2.redMul(this.d).redMul(O)),W=F.redMul(A.redInvm()),H=W.redSqrt();if(H.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");var E=H.fromRed().isOdd();return(J&&!E||!J&&E)&&(H=H.redNeg()),this.point(I,H)},X.prototype.pointFromY=function(I,J){I=new Z(I,16),I.red||(I=I.toRed(this.red));var O=I.redSqr(),F=O.redSub(this.c2),A=O.redMul(this.d).redMul(this.c2).redSub(this.a),W=F.redMul(A.redInvm());if(W.cmp(this.zero)===0){if(J)throw new Error("invalid point");return this.point(this.zero,I)}var H=W.redSqrt();if(H.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");return H.fromRed().isOdd()!==J&&(H=H.redNeg()),this.point(H,I)},X.prototype.validate=function(I){if(I.isInfinity())return!0;I.normalize();var J=I.x.redSqr(),O=I.y.redSqr(),F=J.redMul(this.a).redAdd(O),A=this.c2.redMul(this.one.redAdd(this.d.redMul(J).redMul(O)));return F.cmp(A)===0};function K(I,J,O,F,A){V.BasePoint.call(this,I,"projective"),J===null&&O===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(J,16),this.y=new Z(O,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,J,O,F){return new K(this,I,J,O,F)},K.fromJSON=function(I,J){return new K(I,J[0],J[1],J[2])},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},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(),J=this.y.redSqr(),O=this.z.redSqr();O=O.redIAdd(O);var F=this.curve._mulA(I),A=this.x.redAdd(this.y).redSqr().redISub(I).redISub(J),W=F.redAdd(J),H=W.redSub(O),E=F.redSub(J),T=A.redMul(H),D=W.redMul(E),C=A.redMul(E),L=H.redMul(W);return this.curve.point(T,D,L,C)},K.prototype._projDbl=function(){var I=this.x.redAdd(this.y).redSqr(),J=this.x.redSqr(),O=this.y.redSqr(),F,A,W,H,E,T;if(this.curve.twisted){H=this.curve._mulA(J);var D=H.redAdd(O);this.zOne?(F=I.redSub(J).redSub(O).redMul(D.redSub(this.curve.two)),A=D.redMul(H.redSub(O)),W=D.redSqr().redSub(D).redSub(D)):(E=this.z.redSqr(),T=D.redSub(E).redISub(E),F=I.redSub(J).redISub(O).redMul(T),A=D.redMul(H.redSub(O)),W=D.redMul(T))}else H=J.redAdd(O),E=this.curve._mulC(this.z).redSqr(),T=H.redSub(E).redSub(E),F=this.curve._mulC(I.redISub(H)).redMul(T),A=this.curve._mulC(H).redMul(J.redISub(O)),W=H.redMul(T);return this.curve.point(F,A,W)},K.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},K.prototype._extAdd=function(I){var J=this.y.redSub(this.x).redMul(I.y.redSub(I.x)),O=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)),W=O.redSub(J),H=A.redSub(F),E=A.redAdd(F),T=O.redAdd(J),D=W.redMul(H),C=E.redMul(T),L=W.redMul(T),R=H.redMul(E);return this.curve.point(D,C,R,L)},K.prototype._projAdd=function(I){var J=this.z.redMul(I.z),O=J.redSqr(),F=this.x.redMul(I.x),A=this.y.redMul(I.y),W=this.curve.d.redMul(F).redMul(A),H=O.redSub(W),E=O.redAdd(W),T=this.x.redAdd(this.y).redMul(I.x.redAdd(I.y)).redISub(F).redISub(A),D=J.redMul(H).redMul(T),C,L;return this.curve.twisted?(C=J.redMul(E).redMul(A.redSub(this.curve._mulA(F))),L=H.redMul(E)):(C=J.redMul(E).redMul(A.redSub(F)),L=this.curve._mulC(H).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,J,O){return this.curve._wnafMulAdd(1,[this,J],[I,O],2,!1)},K.prototype.jmulAdd=function(I,J,O){return this.curve._wnafMulAdd(1,[this,J],[I,O],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 J=I.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(J)===0)return!0;for(var O=I.clone(),F=this.curve.redN.redMul(this.z);;){if(O.iadd(this.curve.n),O.cmp(this.curve.p)>=0)return!1;if(J.redIAdd(F),this.x.cmp(J)===0)return!0}},K.prototype.toP=K.prototype.normalize,K.prototype.mixedAdd=K.prototype.add}}),nQ=z$({"node_modules/elliptic/lib/elliptic/curve/index.js"($){var Q=$;Q.base=bQ(),Q.short=lQ(),Q.mont=oQ(),Q.edwards=uQ()}}),sQ=z$({"node_modules/hash.js/lib/hash/utils.js"($){var Q=$Q(),Y=q$();$.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 N=[];if(typeof k=="string")if(g){if(g==="hex")for(k=k.replace(/[^a-z0-9]+/gi,""),k.length%2!==0&&(k="0"+k),_=0;_<k.length;_+=2)N.push(parseInt(k[_]+k[_+1],16))}else for(var x=0,_=0;_<k.length;_++){var B=k.charCodeAt(_);B<128?N[x++]=B:B<2048?(N[x++]=B>>6|192,N[x++]=B&63|128):Z(k,_)?(B=65536+((B&1023)<<10)+(k.charCodeAt(++_)&1023),N[x++]=B>>18|240,N[x++]=B>>12&63|128,N[x++]=B>>6&63|128,N[x++]=B&63|128):(N[x++]=B>>12|224,N[x++]=B>>6&63|128,N[x++]=B&63|128)}else for(_=0;_<k.length;_++)N[_]=k[_]|0;return N}$.toArray=G;function V(k){for(var g="",N=0;N<k.length;N++)g+=K(k[N].toString(16));return g}$.toHex=V;function U(k){var g=k>>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return g>>>0}$.htonl=U;function X(k,g){for(var N="",x=0;x<k.length;x++){var _=k[x];g==="little"&&(_=U(_)),N+=I(_.toString(16))}return N}$.toHex32=X;function K(k){return k.length===1?"0"+k:k}$.zero2=K;function I(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}$.zero8=I;function J(k,g,N,x){var _=N-g;Q(_%4===0);for(var B=new Array(_/4),y=0,w=g;y<B.length;y++,w+=4){var f;x==="big"?f=k[w]<<24|k[w+1]<<16|k[w+2]<<8|k[w+3]:f=k[w+3]<<24|k[w+2]<<16|k[w+1]<<8|k[w],B[y]=f>>>0}return B}$.join32=J;function O(k,g){for(var N=new Array(k.length*4),x=0,_=0;x<k.length;x++,_+=4){var B=k[x];g==="big"?(N[_]=B>>>24,N[_+1]=B>>>16&255,N[_+2]=B>>>8&255,N[_+3]=B&255):(N[_+3]=B>>>24,N[_+2]=B>>>16&255,N[_+1]=B>>>8&255,N[_]=B&255)}return N}$.split32=O;function F(k,g){return k>>>g|k<<32-g}$.rotr32=F;function A(k,g){return k<<g|k>>>32-g}$.rotl32=A;function W(k,g){return k+g>>>0}$.sum32=W;function H(k,g,N){return k+g+N>>>0}$.sum32_3=H;function E(k,g,N,x){return k+g+N+x>>>0}$.sum32_4=E;function T(k,g,N,x,_){return k+g+N+x+_>>>0}$.sum32_5=T;function D(k,g,N,x){var _=k[g],B=k[g+1],y=x+B>>>0,w=(y<x?1:0)+N+_;k[g]=w>>>0,k[g+1]=y}$.sum64=D;function C(k,g,N,x){var _=g+x>>>0,B=(_<g?1:0)+k+N;return B>>>0}$.sum64_hi=C;function L(k,g,N,x){var _=g+x;return _>>>0}$.sum64_lo=L;function R(k,g,N,x,_,B,y,w){var f=0,p=g;p=p+x>>>0,f+=p<g?1:0,p=p+B>>>0,f+=p<B?1:0,p=p+w>>>0,f+=p<w?1:0;var c=k+N+_+y+f;return c>>>0}$.sum64_4_hi=R;function P(k,g,N,x,_,B,y,w){var f=g+x+B+w;return f>>>0}$.sum64_4_lo=P;function z(k,g,N,x,_,B,y,w,f,p){var c=0,h=g;h=h+x>>>0,c+=h<g?1:0,h=h+B>>>0,c+=h<B?1:0,h=h+w>>>0,c+=h<w?1:0,h=h+p>>>0,c+=h<p?1:0;var d=k+N+_+y+f+c;return d>>>0}$.sum64_5_hi=z;function M(k,g,N,x,_,B,y,w,f,p){var c=g+x+B+w+p;return c>>>0}$.sum64_5_lo=M;function S(k,g,N){var x=g<<32-N|k>>>N;return x>>>0}$.rotr64_hi=S;function v(k,g,N){var x=k<<32-N|g>>>N;return x>>>0}$.rotr64_lo=v;function q(k,g,N){return k>>>N}$.shr64_hi=q;function j(k,g,N){var x=k<<32-N|g>>>N;return x>>>0}$.shr64_lo=j}}),tQ=z$({"node_modules/hash.js/lib/hash/common.js"($){var Q=sQ(),Y=$Q();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<G.length;X+=this._delta32)this._update(G,X,X+this._delta32)}return this},Z.prototype.digest=function(G){return this.update(this._pad()),Y(this.pending===null),this._digest(G)},Z.prototype._pad=function(){var G=this.pendingTotal,V=this._delta8,U=V-(G+this.padLength)%V,X=new Array(U+this.padLength);X[0]=128;for(var K=1;K<U;K++)X[K]=0;if(G<<=3,this.endian==="big"){for(var I=8;I<this.padLength;I++)X[K++]=0;X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=G>>>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<this.padLength;I++)X[K++]=0;return X}}}),mQ=z$({"node_modules/hash.js/lib/hash/sha/common.js"($){var Q=sQ(),Y=Q.rotr32;function Z(O,F,A,W){if(O===0)return G(F,A,W);if(O===1||O===3)return U(F,A,W);if(O===2)return V(F,A,W)}$.ft_1=Z;function G(O,F,A){return O&F^~O&A}$.ch32=G;function V(O,F,A){return O&F^O&A^F&A}$.maj32=V;function U(O,F,A){return O^F^A}$.p32=U;function X(O){return Y(O,2)^Y(O,13)^Y(O,22)}$.s0_256=X;function K(O){return Y(O,6)^Y(O,11)^Y(O,25)}$.s1_256=K;function I(O){return Y(O,7)^Y(O,18)^O>>>3}$.g0_256=I;function J(O){return Y(O,17)^Y(O,19)^O>>>10}$.g1_256=J}}),aQ=z$({"node_modules/hash.js/lib/hash/sha/1.js"($,Q){var Y=sQ(),Z=tQ(),G=mQ(),V=Y.rotl32,U=Y.sum32,X=Y.sum32_5,K=G.ft_1,I=Z.BlockHash,J=[1518500249,1859775393,2400959708,3395469782];function O(){if(!(this instanceof O))return new O;I.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Y.inherits(O,I),Q.exports=O,O.blockSize=512,O.outSize=160,O.hmacStrength=80,O.padLength=64,O.prototype._update=function(F,A){for(var W=this.W,H=0;H<16;H++)W[H]=F[A+H];for(;H<W.length;H++)W[H]=V(W[H-3]^W[H-8]^W[H-14]^W[H-16],1);var E=this.h[0],T=this.h[1],D=this.h[2],C=this.h[3],L=this.h[4];for(H=0;H<W.length;H++){var R=~~(H/20),P=X(V(E,5),K(R,T,D,C),L,W[H],J[R]);L=C,C=D,D=V(T,30),T=E,E=P}this.h[0]=U(this.h[0],E),this.h[1]=U(this.h[1],T),this.h[2]=U(this.h[2],D),this.h[3]=U(this.h[3],C),this.h[4]=U(this.h[4],L)},O.prototype._digest=function(F){return F==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),rQ=z$({"node_modules/hash.js/lib/hash/sha/256.js"($,Q){var Y=sQ(),Z=tQ(),G=mQ(),V=$Q(),U=Y.sum32,X=Y.sum32_4,K=Y.sum32_5,I=G.ch32,J=G.maj32,O=G.s0_256,F=G.s1_256,A=G.g0_256,W=G.g1_256,H=Z.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function T(){if(!(this instanceof T))return new T;H.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}Y.inherits(T,H),Q.exports=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(D,C){for(var L=this.W,R=0;R<16;R++)L[R]=D[C+R];for(;R<L.length;R++)L[R]=X(W(L[R-2]),L[R-7],A(L[R-15]),L[R-16]);var P=this.h[0],z=this.h[1],M=this.h[2],S=this.h[3],v=this.h[4],q=this.h[5],j=this.h[6],k=this.h[7];for(V(this.k.length===L.length),R=0;R<L.length;R++){var g=K(k,F(v),I(v,q,j),this.k[R],L[R]),N=U(O(P),J(P,z,M));k=j,j=q,q=v,v=U(S,g),S=M,M=z,z=P,P=U(g,N)}this.h[0]=U(this.h[0],P),this.h[1]=U(this.h[1],z),this.h[2]=U(this.h[2],M),this.h[3]=U(this.h[3],S),this.h[4]=U(this.h[4],v),this.h[5]=U(this.h[5],q),this.h[6]=U(this.h[6],j),this.h[7]=U(this.h[7],k)},T.prototype._digest=function(D){return D==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),eQ=z$({"node_modules/hash.js/lib/hash/sha/224.js"($,Q){var Y=sQ(),Z=rQ();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=512,G.outSize=224,G.hmacStrength=192,G.padLength=64,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,7),"big"):Y.split32(this.h.slice(0,7),"big")}}}),iQ=z$({"node_modules/hash.js/lib/hash/sha/512.js"($,Q){var Y=sQ(),Z=tQ(),G=$Q(),V=Y.rotr64_hi,U=Y.rotr64_lo,X=Y.shr64_hi,K=Y.shr64_lo,I=Y.sum64,J=Y.sum64_hi,O=Y.sum64_lo,F=Y.sum64_4_hi,A=Y.sum64_4_lo,W=Y.sum64_5_hi,H=Y.sum64_5_lo,E=Z.BlockHash,T=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function D(){if(!(this instanceof D))return new D;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}Y.inherits(D,E),Q.exports=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(N,x){for(var _=this.W,B=0;B<32;B++)_[B]=N[x+B];for(;B<_.length;B+=2){var y=k(_[B-4],_[B-3]),w=g(_[B-4],_[B-3]),f=_[B-14],p=_[B-13],c=q(_[B-30],_[B-29]),h=j(_[B-30],_[B-29]),d=_[B-32],b=_[B-31];_[B]=F(y,w,f,p,c,h,d,b),_[B+1]=A(y,w,f,p,c,h,d,b)}},D.prototype._update=function(N,x){this._prepareBlock(N,x);var _=this.W,B=this.h[0],y=this.h[1],w=this.h[2],f=this.h[3],p=this.h[4],c=this.h[5],h=this.h[6],d=this.h[7],b=this.h[8],l=this.h[9],o=this.h[10],u=this.h[11],n=this.h[12],s=this.h[13],t=this.h[14],m=this.h[15];G(this.k.length===_.length);for(var a=0;a<_.length;a+=2){var r=t,e=m,i=S(b,l),$0=v(b,l),Q0=C(b,l,o,u,n,s),Y0=L(b,l,o,u,n,s),Z0=this.k[a],G0=this.k[a+1],V0=_[a],U0=_[a+1],X0=W(r,e,i,$0,Q0,Y0,Z0,G0,V0,U0),K0=H(r,e,i,$0,Q0,Y0,Z0,G0,V0,U0);r=z(B,y),e=M(B,y),i=R(B,y,w,f,p,c),$0=P(B,y,w,f,p,c);var I0=J(r,e,i,$0),J0=O(r,e,i,$0);t=n,m=s,n=o,s=u,o=b,u=l,b=J(h,d,X0,K0),l=O(d,d,X0,K0),h=p,d=c,p=w,c=f,w=B,f=y,B=J(X0,K0,I0,J0),y=O(X0,K0,I0,J0)}I(this.h,0,B,y),I(this.h,2,w,f),I(this.h,4,p,c),I(this.h,6,h,d),I(this.h,8,b,l),I(this.h,10,o,u),I(this.h,12,n,s),I(this.h,14,t,m)},D.prototype._digest=function(N){return N==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")};function C(N,x,_,B,y){var w=N&_^~N&y;return w<0&&(w+=4294967296),w}function L(N,x,_,B,y,w){var f=x&B^~x&w;return f<0&&(f+=4294967296),f}function R(N,x,_,B,y){var w=N&_^N&y^_&y;return w<0&&(w+=4294967296),w}function P(N,x,_,B,y,w){var f=x&B^x&w^B&w;return f<0&&(f+=4294967296),f}function z(N,x){var _=V(N,x,28),B=V(x,N,2),y=V(x,N,7),w=_^B^y;return w<0&&(w+=4294967296),w}function M(N,x){var _=U(N,x,28),B=U(x,N,2),y=U(x,N,7),w=_^B^y;return w<0&&(w+=4294967296),w}function S(N,x){var _=V(N,x,14),B=V(N,x,18),y=V(x,N,9),w=_^B^y;return w<0&&(w+=4294967296),w}function v(N,x){var _=U(N,x,14),B=U(N,x,18),y=U(x,N,9),w=_^B^y;return w<0&&(w+=4294967296),w}function q(N,x){var _=V(N,x,1),B=V(N,x,8),y=X(N,x,7),w=_^B^y;return w<0&&(w+=4294967296),w}function j(N,x){var _=U(N,x,1),B=U(N,x,8),y=K(N,x,7),w=_^B^y;return w<0&&(w+=4294967296),w}function k(N,x){var _=V(N,x,19),B=V(x,N,29),y=X(N,x,6),w=_^B^y;return w<0&&(w+=4294967296),w}function g(N,x){var _=U(N,x,19),B=U(x,N,29),y=K(N,x,6),w=_^B^y;return w<0&&(w+=4294967296),w}}}),$Y=z$({"node_modules/hash.js/lib/hash/sha/384.js"($,Q){var Y=sQ(),Z=iQ();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=1024,G.outSize=384,G.hmacStrength=192,G.padLength=128,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,12),"big"):Y.split32(this.h.slice(0,12),"big")}}}),QY=z$({"node_modules/hash.js/lib/hash/sha.js"($){$.sha1=aQ(),$.sha224=eQ(),$.sha256=rQ(),$.sha384=$Y(),$.sha512=iQ()}}),YY=z$({"node_modules/hash.js/lib/hash/ripemd.js"($){var Q=sQ(),Y=tQ(),Z=Q.rotl32,G=Q.sum32,V=Q.sum32_3,U=Q.sum32_4,X=Y.BlockHash;function K(){if(!(this instanceof K))return new K;X.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Q.inherits(K,X),$.ripemd160=K,K.blockSize=512,K.outSize=160,K.hmacStrength=192,K.padLength=64,K.prototype._update=function(E,T){for(var D=this.h[0],C=this.h[1],L=this.h[2],R=this.h[3],P=this.h[4],z=D,M=C,S=L,v=R,q=P,j=0;j<80;j++){var k=G(Z(U(D,I(j,C,L,R),E[F[j]+T],J(j)),W[j]),P);D=P,P=R,R=Z(L,10),L=C,C=k,k=G(Z(U(z,I(79-j,M,S,v),E[A[j]+T],O(j)),H[j]),q),z=q,q=v,v=Z(S,10),S=M,M=k}k=V(this.h[1],L,v),this.h[1]=V(this.h[2],R,q),this.h[2]=V(this.h[3],P,z),this.h[3]=V(this.h[4],D,M),this.h[4]=V(this.h[0],C,S),this.h[0]=k},K.prototype._digest=function(E){return E==="hex"?Q.toHex32(this.h,"little"):Q.split32(this.h,"little")};function I(E,T,D,C){return E<=15?T^D^C:E<=31?T&D|~T&C:E<=47?(T|~D)^C:E<=63?T&C|D&~C:T^(D|~C)}function J(E){return E<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838}function O(E){return E<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=63?2053994217:0}var F=[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],A=[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],W=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],H=[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]}}),ZY=z$({"node_modules/hash.js/lib/hash/hmac.js"($,Q){var Y=sQ(),Z=$Q();function G(V,U,X){if(!(this instanceof G))return new G(V,U,X);this.Hash=V,this.blockSize=V.blockSize/8,this.outSize=V.outSize/8,this.inner=null,this.outer=null,this._init(Y.toArray(U,X))}Q.exports=G,G.prototype._init=function(V){V.length>this.blockSize&&(V=new this.Hash().update(V).digest()),Z(V.length<=this.blockSize);for(var U=V.length;U<this.blockSize;U++)V.push(0);for(U=0;U<V.length;U++)V[U]^=54;for(this.inner=new this.Hash().update(V),U=0;U<V.length;U++)V[U]^=106;this.outer=new this.Hash().update(V)},G.prototype.update=function(V,U){return this.inner.update(V,U),this},G.prototype.digest=function(V){return this.outer.update(this.inner.digest()),this.outer.digest(V)}}}),GY=z$({"node_modules/hash.js/lib/hash.js"($){var Q=$;Q.utils=sQ(),Q.common=tQ(),Q.sha=QY(),Q.ripemd=YY(),Q.hmac=ZY(),Q.sha1=Q.sha.sha1,Q.sha256=Q.sha.sha256,Q.sha224=Q.sha.sha224,Q.sha384=Q.sha.sha384,Q.sha512=Q.sha.sha512,Q.ripemd160=Q.ripemd.ripemd160}}),VY=z$({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"($,Q){Q.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),UY=z$({"node_modules/elliptic/lib/elliptic/curves.js"($){var Q=$,Y=GY(),Z=nQ(),G=dQ(),V=G.assert;function U(I){I.type==="short"?this.curve=new Z.short(I):I.type==="edwards"?this.curve=new Z.edwards(I):this.curve=new Z.mont(I),this.g=this.curve.g,this.n=this.curve.n,this.hash=I.hash,V(this.g.validate(),"Invalid curve"),V(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Q.PresetCurve=U;function X(I,J){Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,get:function(){var O=new U(J);return Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,value:O}),O}})}X("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Y.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),X("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Y.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),X("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Y.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),X("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Y.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),X("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Y.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),X("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["9"]}),X("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var K;try{K=VY()}catch{K=void 0}X("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Y.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",K]})}}),XY=z$({"node_modules/hmac-drbg/lib/hmac-drbg.js"($,Q){var Y=GY(),Z=hQ(),G=$Q();function V(U){if(!(this instanceof V))return new V(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var X=Z.toArray(U.entropy,U.entropyEnc||"hex"),K=Z.toArray(U.nonce,U.nonceEnc||"hex"),I=Z.toArray(U.pers,U.persEnc||"hex");G(X.length>=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 J=0;J<this.V.length;J++)this.K[J]=0,this.V[J]=1;this._update(I),this._reseed=1,this.reseedInterval=281474976710656},V.prototype._hmac=function(){return new Y.hmac(this.hash,this.K)},V.prototype._update=function(U){var X=this._hmac().update(this.V).update([0]);U&&(X=X.update(U)),this.K=X.digest(),this.V=this._hmac().update(this.V).digest(),U&&(this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest())},V.prototype.reseed=function(U,X,K,I){typeof X!="string"&&(I=K,K=X,X=null),U=Z.toArray(U,X),K=Z.toArray(K,I),G(U.length>=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 J=[];J.length<U;)this.V=this._hmac().update(this.V).digest(),J=J.concat(this.V);var O=J.slice(0,U);return this._update(K),this._reseed++,Z.encode(O,X)}}}),KY=z$({"node_modules/elliptic/lib/elliptic/ec/key.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.assert;function V(U,X){this.ec=U,this.priv=null,this.pub=null,X.priv&&this._importPrivate(X.priv,X.privEnc),X.pub&&this._importPublic(X.pub,X.pubEnc)}Q.exports=V,V.fromPublic=function(U,X,K){return X instanceof V?X:new V(U,{pub:X,pubEnc:K})},V.fromPrivate=function(U,X,K){return X instanceof V?X:new V(U,{priv:X,privEnc:K})},V.prototype.validate=function(){var U=this.getPublic();return U.isInfinity()?{result:!1,reason:"Invalid public key"}:U.validate()?U.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},V.prototype.getPublic=function(U,X){return typeof U=="string"&&(X=U,U=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),X?this.pub.encode(X,U):this.pub},V.prototype.getPrivate=function(U){return U==="hex"?this.priv.toString(16,2):this.priv},V.prototype._importPrivate=function(U,X){this.priv=new Y(U,X||16),this.priv=this.priv.umod(this.ec.curve.n)},V.prototype._importPublic=function(U,X){if(U.x||U.y){this.ec.curve.type==="mont"?G(U.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&G(U.x&&U.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(U.x,U.y);return}this.pub=this.ec.curve.decodePoint(U,X)},V.prototype.derive=function(U){return U.validate()||G(U.validate(),"public point not validated"),U.mul(this.priv).getX()},V.prototype.sign=function(U,X,K){return this.ec.sign(U,this,X,K)},V.prototype.verify=function(U,X){return this.ec.verify(U,X,this)},V.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),IY=z$({"node_modules/elliptic/lib/elliptic/ec/signature.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.assert;function V(J,O){if(J instanceof V)return J;this._importDER(J,O)||(G(J.r&&J.s,"Signature without r or s"),this.r=new Y(J.r,16),this.s=new Y(J.s,16),J.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=J.recoveryParam)}Q.exports=V;function U(){this.place=0}function X(J,O){var F=J[O.place++];if(!(F&128))return F;var A=F&15;if(A===0||A>4)return!1;for(var W=0,H=0,E=O.place;H<A;H++,E++)W<<=8,W|=J[E],W>>>=0;return W<=127?!1:(O.place=E,W)}function K(J){for(var O=0,F=J.length-1;!J[O]&&!(J[O+1]&128)&&O<F;)O++;return O===0?J:J.slice(O)}V.prototype._importDER=function(J,O){J=Z.toArray(J,O);var F=new U;if(J[F.place++]!==48)return!1;var A=X(J,F);if(A===!1||A+F.place!==J.length||J[F.place++]!==2)return!1;var W=X(J,F);if(W===!1)return!1;var H=J.slice(F.place,W+F.place);if(F.place+=W,J[F.place++]!==2)return!1;var E=X(J,F);if(E===!1||J.length!==E+F.place)return!1;var T=J.slice(F.place,E+F.place);if(H[0]===0)if(H[1]&128)H=H.slice(1);else return!1;if(T[0]===0)if(T[1]&128)T=T.slice(1);else return!1;return this.r=new Y(H),this.s=new Y(T),this.recoveryParam=null,!0};function I(J,O){if(O<128){J.push(O);return}var F=1+(Math.log(O)/Math.LN2>>>3);for(J.push(F|128);--F;)J.push(O>>>(F<<3)&255);J.push(O)}V.prototype.toDER=function(J){var O=this.r.toArray(),F=this.s.toArray();for(O[0]&128&&(O=[0].concat(O)),F[0]&128&&(F=[0].concat(F)),O=K(O),F=K(F);!F[0]&&!(F[1]&128);)F=F.slice(1);var A=[2];I(A,O.length),A=A.concat(O),A.push(2),I(A,F.length);var W=A.concat(F),H=[48];return I(H,W.length),H=H.concat(W),Z.encode(H,J)}}}),JY=z$({"node_modules/elliptic/lib/elliptic/ec/index.js"($,Q){var Y=cQ(),Z=XY(),G=dQ(),V=UY(),U=gQ(),X=G.assert,K=KY(),I=IY();function J(O){if(!(this instanceof J))return new J(O);typeof O=="string"&&(X(Object.prototype.hasOwnProperty.call(V,O),"Unknown curve "+O),O=V[O]),O instanceof V.PresetCurve&&(O={curve:O}),this.curve=O.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=O.curve.g,this.g.precompute(O.curve.n.bitLength()+1),this.hash=O.hash||O.curve.hash}Q.exports=J,J.prototype.keyPair=function(O){return new K(this,O)},J.prototype.keyFromPrivate=function(O,F){return K.fromPrivate(this,O,F)},J.prototype.keyFromPublic=function(O,F){return K.fromPublic(this,O,F)},J.prototype.genKeyPair=function(O){O||(O={});for(var F=new Z({hash:this.hash,pers:O.pers,persEnc:O.persEnc||"utf8",entropy:O.entropy||U(this.hash.hmacStrength),entropyEnc:O.entropy&&O.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),W=this.n.sub(new Y(2));;){var H=new Y(F.generate(A));if(!(H.cmp(W)>0))return H.iaddn(1),this.keyFromPrivate(H)}},J.prototype._truncateToN=function(O,F){var A=O.byteLength()*8-this.n.bitLength();return A>0&&(O=O.ushrn(A)),!F&&O.cmp(this.n)>=0?O.sub(this.n):O},J.prototype.sign=function(O,F,A,W){typeof A=="object"&&(W=A,A=null),W||(W={}),F=this.keyFromPrivate(F,A),O=this._truncateToN(new Y(O,16));for(var H=this.n.byteLength(),E=F.getPrivate().toArray("be",H),T=O.toArray("be",H),D=new Z({hash:this.hash,entropy:E,nonce:T,pers:W.pers,persEnc:W.persEnc||"utf8"}),C=this.n.sub(new Y(1)),L=0;;L++){var R=W.k?W.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(O));if(S=S.umod(this.n),S.cmpn(0)!==0){var v=(P.getY().isOdd()?1:0)|(z.cmp(M)!==0?2:0);return W.canonical&&S.cmp(this.nh)>0&&(S=this.n.sub(S),v^=1),new I({r:M,s:S,recoveryParam:v})}}}}}},J.prototype.verify=function(O,F,A,W){O=this._truncateToN(new Y(O,16)),A=this.keyFromPublic(A,W),F=new I(F,"hex");var{r:H,s:E}=F;if(H.cmpn(1)<0||H.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var T=E.invm(this.n),D=T.mul(O).umod(this.n),C=T.mul(H).umod(this.n),L;return this.curve._maxwellTrick?(L=this.g.jmulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.eqXToP(H)):(L=this.g.mulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.getX().umod(this.n).cmp(H)===0)},J.prototype.recoverPubKey=function(O,F,A,W){X((3&A)===A,"The recovery param is more than two bits"),F=new I(F,W);var H=this.n,E=new Y(O),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(H),P=H.sub(E).mul(R).umod(H),z=D.mul(R).umod(H);return this.g.mulAdd(P,T,z)},J.prototype.getKeyRecoveryParam=function(O,F,A,W){if(F=new I(F,W),F.recoveryParam!==null)return F.recoveryParam;for(var H=0;H<4;H++){var E;try{E=this.recoverPubKey(O,F,H)}catch{continue}if(E.eq(A))return H}throw new Error("Unable to find valid recovery factor")}}}),OY=z$({"node_modules/elliptic/lib/elliptic/eddsa/key.js"($,Q){var Y=dQ(),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,J=K.slice(0,X.encodingLength);return J[0]&=248,J[I]&=127,J[I]|=64,J}),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}}),FY=z$({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"($,Q){var Y=cQ(),Z=dQ(),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}}),AY=z$({"node_modules/elliptic/lib/elliptic/eddsa/index.js"($,Q){var Y=GY(),Z=UY(),G=dQ(),V=G.assert,U=G.parseBytes,X=OY(),K=FY();function I(J){if(V(J==="ed25519","only tested with ed25519 so far"),!(this instanceof I))return new I(J);J=Z[J].curve,this.curve=J,this.g=J.g,this.g.precompute(J.n.bitLength()+1),this.pointClass=J.point().constructor,this.encodingLength=Math.ceil(J.n.bitLength()/8),this.hash=Y.sha512}Q.exports=I,I.prototype.sign=function(J,O){J=U(J);var F=this.keyFromSecret(O),A=this.hashInt(F.messagePrefix(),J),W=this.g.mul(A),H=this.encodePoint(W),E=this.hashInt(H,F.pubBytes(),J).mul(F.priv()),T=A.add(E).umod(this.curve.n);return this.makeSignature({R:W,S:T,Rencoded:H})},I.prototype.verify=function(J,O,F){J=U(J),O=this.makeSignature(O);var A=this.keyFromPublic(F),W=this.hashInt(O.Rencoded(),A.pubBytes(),J),H=this.g.mul(O.S()),E=O.R().add(A.pub().mul(W));return E.eq(H)},I.prototype.hashInt=function(){for(var J=this.hash(),O=0;O<arguments.length;O++)J.update(arguments[O]);return G.intFromLE(J.digest()).umod(this.curve.n)},I.prototype.keyFromPublic=function(J){return X.fromPublic(this,J)},I.prototype.keyFromSecret=function(J){return X.fromSecret(this,J)},I.prototype.makeSignature=function(J){return J instanceof K?J:new K(this,J)},I.prototype.encodePoint=function(J){var O=J.getY().toArray("le",this.encodingLength);return O[this.encodingLength-1]|=J.getX().isOdd()?128:0,O},I.prototype.decodePoint=function(J){J=G.parseBytes(J);var O=J.length-1,F=J.slice(0,O).concat(J[O]&-129),A=(J[O]&128)!==0,W=G.intFromLE(F);return this.curve.pointFromY(W,A)},I.prototype.encodeInt=function(J){return J.toArray("le",this.encodingLength)},I.prototype.decodeInt=function(J){return G.intFromLE(J)},I.prototype.isPoint=function(J){return J instanceof this.pointClass}}}),WY=z$({"node_modules/elliptic/lib/elliptic.js"($){var Q=$;Q.version=pQ().version,Q.utils=dQ(),Q.rand=gQ(),Q.curve=nQ(),Q.curves=UY(),Q.ec=JY(),Q.eddsa=AY()}}),HY=z$({"node_modules/asn1.js/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;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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,$)}}),EY=z$({"node_modules/safer-buffer/safer.js"($,Q){var Y=R$("buffer"),Z=Y.Buffer,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 J=Z(X);return!K||K.length===0?J.fill(0):typeof I=="string"?J.fill(K,I):J.fill(K),J}),!G.kStringMaxLength)try{G.kStringMaxLength=L$}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),Q.exports=G}}),TY=z$({"node_modules/asn1.js/lib/asn1/base/reporter.js"($){var Q=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}}}),W$=z$({"node_modules/asn1.js/lib/asn1/base/buffer.js"($){var Q=q$(),Y=TY().Reporter,Z=EY().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}}}),DY=z$({"node_modules/asn1.js/lib/asn1/base/node.js"($,Q){var Y=TY().Reporter,Z=W$().EncoderBuffer,G=W$().DecoderBuffer,V=$Q(),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(O,F,A){let W={};this._baseState=W,W.name=A,W.enc=O,W.parent=F||null,W.children=null,W.tag=null,W.args=null,W.reverseArgs=null,W.choice=null,W.optional=!1,W.any=!1,W.obj=!1,W.use=null,W.useDecoder=null,W.key=null,W.default=null,W.explicit=null,W.implicit=null,W.contains=null,W.parent||(W.children=[],this._wrap())}Q.exports=I;var J=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];I.prototype.clone=function(){let O=this._baseState,F={};J.forEach(function(W){F[W]=O[W]});let A=new this.constructor(F.parent);return A._baseState=F,A},I.prototype._wrap=function(){let O=this._baseState;X.forEach(function(F){this[F]=function(){let A=new this.constructor(this);return O.children.push(A),A[F].apply(A,arguments)}},this)},I.prototype._init=function(O){let F=this._baseState;V(F.parent===null),O.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(O){let F=this._baseState,A=O.filter(function(W){return W instanceof this.constructor},this);O=O.filter(function(W){return!(W instanceof this.constructor)},this),A.length!==0&&(V(F.children===null),F.children=A,A.forEach(function(W){W._baseState.parent=this},this)),O.length!==0&&(V(F.args===null),F.args=O,F.reverseArgs=O.map(function(W){if(typeof W!="object"||W.constructor!==Object)return W;let H={};return Object.keys(W).forEach(function(E){E==(E|0)&&(E|=0);let T=W[E];H[T]=E}),H}))},K.forEach(function(O){I.prototype[O]=function(){let F=this._baseState;throw new Error(O+" not implemented for encoding: "+F.enc)}}),U.forEach(function(O){I.prototype[O]=function(){let F=this._baseState,A=Array.prototype.slice.call(arguments);return V(F.tag===null),F.tag=O,this._useArgs(A),this}}),I.prototype.use=function(O){V(O);let F=this._baseState;return V(F.use===null),F.use=O,this},I.prototype.optional=function(){let O=this._baseState;return O.optional=!0,this},I.prototype.def=function(O){let F=this._baseState;return V(F.default===null),F.default=O,F.optional=!0,this},I.prototype.explicit=function(O){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.explicit=O,this},I.prototype.implicit=function(O){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.implicit=O,this},I.prototype.obj=function(){let O=this._baseState,F=Array.prototype.slice.call(arguments);return O.obj=!0,F.length!==0&&this._useArgs(F),this},I.prototype.key=function(O){let F=this._baseState;return V(F.key===null),F.key=O,this},I.prototype.any=function(){let O=this._baseState;return O.any=!0,this},I.prototype.choice=function(O){let F=this._baseState;return V(F.choice===null),F.choice=O,this._useArgs(Object.keys(O).map(function(A){return O[A]})),this},I.prototype.contains=function(O){let F=this._baseState;return V(F.use===null),F.contains=O,this},I.prototype._decode=function(O,F){let A=this._baseState;if(A.parent===null)return O.wrapResult(A.children[0]._decode(O,F));let W=A.default,H=!0,E=null;if(A.key!==null&&(E=O.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=O.save();try{A.choice===null?this._decodeGeneric(A.tag,O,F):this._decodeChoice(O,F),H=!0}catch{H=!1}O.restore(C)}else if(H=this._peekTag(O,D,A.any),O.isError(H))return H}let T;if(A.obj&&H&&(T=O.enterObject()),H){if(A.explicit!==null){let C=this._decodeTag(O,A.explicit);if(O.isError(C))return C;O=C}let D=O.offset;if(A.use===null&&A.choice===null){let C;A.any&&(C=O.save());let L=this._decodeTag(O,A.implicit!==null?A.implicit:A.tag,A.any);if(O.isError(L))return L;A.any?W=O.raw(C):O=L}if(F&&F.track&&A.tag!==null&&F.track(O.path(),D,O.length,"tagged"),F&&F.track&&A.tag!==null&&F.track(O.path(),O.offset,O.length,"content"),A.any||(A.choice===null?W=this._decodeGeneric(A.tag,O,F):W=this._decodeChoice(O,F)),O.isError(W))return W;if(!A.any&&A.choice===null&&A.children!==null&&A.children.forEach(function(C){C._decode(O,F)}),A.contains&&(A.tag==="octstr"||A.tag==="bitstr")){let C=new G(W);W=this._getUse(A.contains,O._reporterState.obj)._decode(C,F)}}return A.obj&&H&&(W=O.leaveObject(T)),A.key!==null&&(W!==null||H===!0)?O.leaveKey(E,A.key,W):E!==null&&O.exitKey(E),W},I.prototype._decodeGeneric=function(O,F,A){let W=this._baseState;return O==="seq"||O==="set"?null:O==="seqof"||O==="setof"?this._decodeList(F,O,W.args[0],A):/str$/.test(O)?this._decodeStr(F,O,A):O==="objid"&&W.args?this._decodeObjid(F,W.args[0],W.args[1],A):O==="objid"?this._decodeObjid(F,null,null,A):O==="gentime"||O==="utctime"?this._decodeTime(F,O,A):O==="null_"?this._decodeNull(F,A):O==="bool"?this._decodeBool(F,A):O==="objDesc"?this._decodeStr(F,O,A):O==="int"||O==="enum"?this._decodeInt(F,W.args&&W.args[0],A):W.use!==null?this._getUse(W.use,F._reporterState.obj)._decode(F,A):F.error("unknown tag: "+O)},I.prototype._getUse=function(O,F){let A=this._baseState;return A.useDecoder=this._use(O,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(O,F){let A=this._baseState,W=null,H=!1;return Object.keys(A.choice).some(function(E){let T=O.save(),D=A.choice[E];try{let C=D._decode(O,F);if(O.isError(C))return!1;W={type:E,value:C},H=!0}catch{return O.restore(T),!1}return!0},this),H?W:O.error("Choice not matched")},I.prototype._createEncoderBuffer=function(O){return new Z(O,this.reporter)},I.prototype._encode=function(O,F,A){let W=this._baseState;if(W.default!==null&&W.default===O)return;let H=this._encodeValue(O,F,A);if(H!==void 0&&!this._skipDefault(H,F,A))return H},I.prototype._encodeValue=function(O,F,A){let W=this._baseState;if(W.parent===null)return W.children[0]._encode(O,F||new Y);let H=null;if(this.reporter=F,W.optional&&O===void 0)if(W.default!==null)O=W.default;else return;let E=null,T=!1;if(W.any)H=this._createEncoderBuffer(O);else if(W.choice)H=this._encodeChoice(O,F);else if(W.contains)E=this._getUse(W.contains,A)._encode(O,F),T=!0;else if(W.children)E=W.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,F,O);if(D._baseState.key===null)return F.error("Child should have a key");let C=F.enterKey(D._baseState.key);if(typeof O!="object")return F.error("Child expected, but input is not object");let L=D._encode(O[D._baseState.key],F,O);return F.leaveKey(C),L},this).filter(function(D){return D}),E=this._createEncoderBuffer(E);else if(W.tag==="seqof"||W.tag==="setof"){if(!(W.args&&W.args.length===1))return F.error("Too many args for : "+W.tag);if(!Array.isArray(O))return F.error("seqof/setof, but data is not Array");let D=this.clone();D._baseState.implicit=null,E=this._createEncoderBuffer(O.map(function(C){let L=this._baseState;return this._getUse(L.args[0],O)._encode(C,F)},D))}else W.use!==null?H=this._getUse(W.use,A)._encode(O,F):(E=this._encodePrimitive(W.tag,O),T=!0);if(!W.any&&W.choice===null){let D=W.implicit!==null?W.implicit:W.tag,C=W.implicit===null?"universal":"context";D===null?W.use===null&&F.error("Tag could be omitted only for .use()"):W.use===null&&(H=this._encodeComposite(D,T,C,E))}return W.explicit!==null&&(H=this._encodeComposite(W.explicit,!1,"context",H)),H},I.prototype._encodeChoice=function(O,F){let A=this._baseState,W=A.choice[O.type];return W||V(!1,O.type+" not found in "+JSON.stringify(Object.keys(A.choice))),W._encode(O.value,F)},I.prototype._encodePrimitive=function(O,F){let A=this._baseState;if(/str$/.test(O))return this._encodeStr(F,O);if(O==="objid"&&A.args)return this._encodeObjid(F,A.reverseArgs[0],A.args[1]);if(O==="objid")return this._encodeObjid(F,null,null);if(O==="gentime"||O==="utctime")return this._encodeTime(F,O);if(O==="null_")return this._encodeNull();if(O==="int"||O==="enum")return this._encodeInt(F,A.args&&A.reverseArgs[0]);if(O==="bool")return this._encodeBool(F);if(O==="objDesc")return this._encodeStr(F,O);throw new Error("Unsupported tag: "+O)},I.prototype._isNumstr=function(O){return/^[0-9 ]*$/.test(O)},I.prototype._isPrintstr=function(O){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O)}}}),CY=z$({"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)}}),LY=z$({"node_modules/asn1.js/lib/asn1/encoders/der.js"($,Q){var Y=q$(),Z=EY().Buffer,G=DY(),V=CY();function U(J){this.enc="der",this.name=J.name,this.entity=J,this.tree=new X,this.tree._init(J.body)}Q.exports=U,U.prototype.encode=function(J,O){return this.tree._encode(J,O).join()};function X(J){G.call(this,"der",J)}Y(X,G),X.prototype._encodeComposite=function(J,O,F,A){let W=I(J,O,F,this.reporter);if(A.length<128){let T=Z.alloc(2);return T[0]=W,T[1]=A.length,this._createEncoderBuffer([T,A])}let H=1;for(let T=A.length;T>=256;T>>=8)H++;let E=Z.alloc(2+H);E[0]=W,E[1]=128|H;for(let T=1+H,D=A.length;D>0;T--,D>>=8)E[T]=D&255;return this._createEncoderBuffer([E,A])},X.prototype._encodeStr=function(J,O){if(O==="bitstr")return this._createEncoderBuffer([J.unused|0,J.data]);if(O==="bmpstr"){let F=Z.alloc(J.length*2);for(let A=0;A<J.length;A++)F.writeUInt16BE(J.charCodeAt(A),A*2);return this._createEncoderBuffer(F)}else return O==="numstr"?this._isNumstr(J)?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: numstr supports only digits and space"):O==="printstr"?this._isPrintstr(J)?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(O)?this._createEncoderBuffer(J):O==="objDesc"?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: "+O+" unsupported")},X.prototype._encodeObjid=function(J,O,F){if(typeof J=="string"){if(!O)return this.reporter.error("string objid given, but no values map found");if(!O.hasOwnProperty(J))return this.reporter.error("objid not found in values map");J=O[J].split(/[\s.]+/g);for(let E=0;E<J.length;E++)J[E]|=0}else if(Array.isArray(J)){J=J.slice();for(let E=0;E<J.length;E++)J[E]|=0}if(!Array.isArray(J))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(J));if(!F){if(J[1]>=40)return this.reporter.error("Second objid identifier OOB");J.splice(0,2,J[0]*40+J[1])}let A=0;for(let E=0;E<J.length;E++){let T=J[E];for(A++;T>=128;T>>=7)A++}let W=Z.alloc(A),H=W.length-1;for(let E=J.length-1;E>=0;E--){let T=J[E];for(W[H--]=T&127;(T>>=7)>0;)W[H--]=128|T&127}return this._createEncoderBuffer(W)};function K(J){return J<10?"0"+J:J}X.prototype._encodeTime=function(J,O){let F,A=new Date(J);return O==="gentime"?F=[K(A.getUTCFullYear()),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):O==="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 "+O+" time is not supported yet"),this._encodeStr(F,"octstr")},X.prototype._encodeNull=function(){return this._createEncoderBuffer("")},X.prototype._encodeInt=function(J,O){if(typeof J=="string"){if(!O)return this.reporter.error("String int or enum given, but no values map");if(!O.hasOwnProperty(J))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(J));J=O[J]}if(typeof J!="number"&&!Z.isBuffer(J)){let W=J.toArray();!J.sign&&W[0]&128&&W.unshift(0),J=Z.from(W)}if(Z.isBuffer(J)){let W=J.length;J.length===0&&W++;let H=Z.alloc(W);return J.copy(H),J.length===0&&(H[0]=0),this._createEncoderBuffer(H)}if(J<128)return this._createEncoderBuffer(J);if(J<256)return this._createEncoderBuffer([0,J]);let F=1;for(let W=J;W>=256;W>>=8)F++;let A=new Array(F);for(let W=A.length-1;W>=0;W--)A[W]=J&255,J>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(Z.from(A))},X.prototype._encodeBool=function(J){return this._createEncoderBuffer(J?255:0)},X.prototype._use=function(J,O){return typeof J=="function"&&(J=J(O)),J._getEncoder("der").tree},X.prototype._skipDefault=function(J,O,F){let A=this._baseState,W;if(A.default===null)return!1;let H=J.join();if(A.defaultBuffer===void 0&&(A.defaultBuffer=this._encodeValue(A.default,O,F).join()),H.length!==A.defaultBuffer.length)return!1;for(W=0;W<H.length;W++)if(H[W]!==A.defaultBuffer[W])return!1;return!0};function I(J,O,F,A){let W;if(J==="seqof"?J="seq":J==="setof"&&(J="set"),V.tagByName.hasOwnProperty(J))W=V.tagByName[J];else if(typeof J=="number"&&(J|0)===J)W=J;else return A.error("Unknown tag: "+J);return W>=31?A.error("Multi-octet tag encoding unsupported"):(O||(W|=32),W|=V.tagClassByName[F||"universal"]<<6,W)}}}),RY=z$({"node_modules/asn1.js/lib/asn1/encoders/pem.js"($,Q){var Y=q$(),Z=LY();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<X.length;I+=64)K.push(X.slice(I,I+64));return K.push("-----END "+U.label+"-----"),K.join(`
-`)}}}),PY=z$({"node_modules/asn1.js/lib/asn1/encoders/index.js"($){var Q=$;Q.der=LY(),Q.pem=RY()}}),zY=z$({"node_modules/asn1.js/lib/asn1/decoders/der.js"($,Q){var Y=q$(),Z=HY(),G=W$().DecoderBuffer,V=DY(),U=CY();function X(O){this.enc="der",this.name=O.name,this.entity=O,this.tree=new K,this.tree._init(O.body)}Q.exports=X,X.prototype.decode=function(O,F){return G.isDecoderBuffer(O)||(O=new G(O,F)),this.tree._decode(O,F)};function K(O){V.call(this,"der",O)}Y(K,V),K.prototype._peekTag=function(O,F,A){if(O.isEmpty())return!1;let W=O.save(),H=I(O,'Failed to peek tag: "'+F+'"');return O.isError(H)?H:(O.restore(W),H.tag===F||H.tagStr===F||H.tagStr+"of"===F||A)},K.prototype._decodeTag=function(O,F,A){let W=I(O,'Failed to decode tag of "'+F+'"');if(O.isError(W))return W;let H=J(O,W.primitive,'Failed to get length of "'+F+'"');if(O.isError(H))return H;if(!A&&W.tag!==F&&W.tagStr!==F&&W.tagStr+"of"!==F)return O.error('Failed to match tag: "'+F+'"');if(W.primitive||H!==null)return O.skip(H,'Failed to match body of: "'+F+'"');let E=O.save(),T=this._skipUntilEnd(O,'Failed to skip indefinite length body: "'+this.tag+'"');return O.isError(T)?T:(H=O.offset-E.offset,O.restore(E),O.skip(H,'Failed to match body of: "'+F+'"'))},K.prototype._skipUntilEnd=function(O,F){for(;;){let A=I(O,F);if(O.isError(A))return A;let W=J(O,A.primitive,F);if(O.isError(W))return W;let H;if(A.primitive||W!==null?H=O.skip(W):H=this._skipUntilEnd(O,F),O.isError(H))return H;if(A.tagStr==="end")break}},K.prototype._decodeList=function(O,F,A,W){let H=[];for(;!O.isEmpty();){let E=this._peekTag(O,"end");if(O.isError(E))return E;let T=A.decode(O,"der",W);if(O.isError(T)&&E)break;H.push(T)}return H},K.prototype._decodeStr=function(O,F){if(F==="bitstr"){let A=O.readUInt8();return O.isError(A)?A:{unused:A,data:O.raw()}}else if(F==="bmpstr"){let A=O.raw();if(A.length%2===1)return O.error("Decoding of string type: bmpstr length mismatch");let W="";for(let H=0;H<A.length/2;H++)W+=String.fromCharCode(A.readUInt16BE(H*2));return W}else if(F==="numstr"){let A=O.raw().toString("ascii");return this._isNumstr(A)?A:O.error("Decoding of string type: numstr unsupported characters")}else{if(F==="octstr")return O.raw();if(F==="objDesc")return O.raw();if(F==="printstr"){let A=O.raw().toString("ascii");return this._isPrintstr(A)?A:O.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(F)?O.raw().toString():O.error("Decoding of string type: "+F+" unsupported")}},K.prototype._decodeObjid=function(O,F,A){let W,H=[],E=0,T=0;for(;!O.isEmpty();)T=O.readUInt8(),E<<=7,E|=T&127,(T&128)===0&&(H.push(E),E=0);T&128&&H.push(E);let D=H[0]/40|0,C=H[0]%40;if(A?W=H:W=[D,C].concat(H.slice(1)),F){let L=F[W.join(" ")];L===void 0&&(L=F[W.join(".")]),L!==void 0&&(W=L)}return W},K.prototype._decodeTime=function(O,F){let A=O.raw().toString(),W,H,E,T,D,C;if(F==="gentime")W=A.slice(0,4)|0,H=A.slice(4,6)|0,E=A.slice(6,8)|0,T=A.slice(8,10)|0,D=A.slice(10,12)|0,C=A.slice(12,14)|0;else if(F==="utctime")W=A.slice(0,2)|0,H=A.slice(2,4)|0,E=A.slice(4,6)|0,T=A.slice(6,8)|0,D=A.slice(8,10)|0,C=A.slice(10,12)|0,W<70?W=2000+W:W=1900+W;else return O.error("Decoding "+F+" time is not supported yet");return Date.UTC(W,H-1,E,T,D,C,0)},K.prototype._decodeNull=function(){return null},K.prototype._decodeBool=function(O){let F=O.readUInt8();return O.isError(F)?F:F!==0},K.prototype._decodeInt=function(O,F){let A=O.raw(),W=new Z(A);return F&&(W=F[W.toString(10)]||W),W},K.prototype._use=function(O,F){return typeof O=="function"&&(O=O(F)),O._getDecoder("der").tree};function I(O,F){let A=O.readUInt8(F);if(O.isError(A))return A;let W=U.tagClass[A>>6],H=(A&32)===0;if((A&31)===31){let T=A;for(A=0;(T&128)===128;){if(T=O.readUInt8(F),O.isError(T))return T;A<<=7,A|=T&127}}else A&=31;let E=U.tag[A];return{cls:W,primitive:H,tag:A,tagStr:E}}function J(O,F,A){let W=O.readUInt8(A);if(O.isError(W))return W;if(!F&&W===128)return null;if((W&128)===0)return W;let H=W&127;if(H>4)return O.error("length octect is too long");W=0;for(let E=0;E<H;E++){W<<=8;let T=O.readUInt8(A);if(O.isError(T))return T;W|=T}return W}}}),MY=z$({"node_modules/asn1.js/lib/asn1/decoders/pem.js"($,Q){var Y=q$(),Z=EY().Buffer,G=zY();function V(U){G.call(this,U),this.enc="pem"}Y(V,G),Q.exports=V,V.prototype.decode=function(U,X){let K=U.toString().split(/[\r\n]+/g),I=X.label.toUpperCase(),J=/^-----(BEGIN|END) ([^-]+)-----$/,O=-1,F=-1;for(let H=0;H<K.length;H++){let E=K[H].match(J);if(E!==null&&E[2]===I)if(O===-1){if(E[1]!=="BEGIN")break;O=H}else{if(E[1]!=="END")break;F=H;break}}if(O===-1||F===-1)throw new Error("PEM section not found for: "+I);let A=K.slice(O+1,F).join("");A.replace(/[^a-z0-9+/=]+/gi,"");let W=Z.from(A,"base64");return G.prototype.decode.call(this,W,X)}}}),SY=z$({"node_modules/asn1.js/lib/asn1/decoders/index.js"($){var Q=$;Q.der=zY(),Q.pem=MY()}}),vY=z$({"node_modules/asn1.js/lib/asn1/api.js"($){var Q=PY(),Y=SY(),Z=q$(),G=$;G.define=function(U,X){return new V(U,X)};function V(U,X){this.name=U,this.body=X,this.decoders={},this.encoders={}}V.prototype._createNamed=function(U){let X=this.name;function K(I){this._initNamed(I,X)}return Z(K,U),K.prototype._initNamed=function(I,J){U.call(this,I,J)},new K(this)},V.prototype._getDecoder=function(U){return U=U||"der",this.decoders.hasOwnProperty(U)||(this.decoders[U]=this._createNamed(Y[U])),this.decoders[U]},V.prototype.decode=function(U,X,K){return this._getDecoder(X).decode(U,K)},V.prototype._getEncoder=function(U){return U=U||"der",this.encoders.hasOwnProperty(U)||(this.encoders[U]=this._createNamed(Q[U])),this.encoders[U]},V.prototype.encode=function(U,X,K){return this._getEncoder(X).encode(U,K)}}}),qY=z$({"node_modules/asn1.js/lib/asn1/base/index.js"($){var Q=$;Q.Reporter=TY().Reporter,Q.DecoderBuffer=W$().DecoderBuffer,Q.EncoderBuffer=W$().EncoderBuffer,Q.Node=DY()}}),jY=z$({"node_modules/asn1.js/lib/asn1/constants/index.js"($){var Q=$;Q._reverse=function(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z},Q.der=CY()}}),kY=z$({"node_modules/asn1.js/lib/asn1.js"($){var Q=$;Q.bignum=HY(),Q.define=vY().define,Q.base=qY(),Q.constants=jY(),Q.decoders=SY(),Q.encoders=PY()}}),gY=z$({"node_modules/parse-asn1/certificate.js"($,Q){var Y=kY(),Z=Y.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),G=Y.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),V=Y.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),U=Y.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())}),X=Y.define("RelativeDistinguishedName",function(){this.setof(G)}),K=Y.define("RDNSequence",function(){this.seqof(X)}),I=Y.define("Name",function(){this.choice({rdnSequence:this.use(K)})}),J=Y.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Z),this.key("notAfter").use(Z))}),O=Y.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),F=Y.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(V),this.key("issuer").use(I),this.key("validity").use(J),this.key("subject").use(I),this.key("subjectPublicKeyInfo").use(U),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(O).optional())}),A=Y.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(F),this.key("signatureAlgorithm").use(V),this.key("signatureValue").bitstr())});Q.exports=A}}),NY=z$({"node_modules/parse-asn1/asn1.js"($){var Q=kY();$.certificate=gY();var Y=Q.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});$.RSAPrivateKey=Y;var Z=Q.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=Z;var G=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())});$.PublicKey=G;var V=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),U=Q.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(V),this.key("subjectPrivateKey").octstr())});$.PrivateKey=U;var X=Q.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});$.EncryptedPrivateKey=X;var K=Q.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});$.DSAPrivateKey=K,$.DSAparam=Q.define("DSAparam",function(){this.int()});var I=Q.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(J),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=I;var J=Q.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});$.signature=Q.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),xY=z$({"node_modules/parse-asn1/aesid.json"($,Q){Q.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),_Y=z$({"node_modules/parse-asn1/fixProc.js"($,Q){var Y=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,G=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,V=RQ(),U=MQ(),X=S$().Buffer;Q.exports=function(K,I){var J=K.toString(),O=J.match(Y),F;if(O){var A="aes"+O[1],W=X.from(O[2],"hex"),H=X.from(O[3].replace(/[\r\n]/g,""),"base64"),E=V(I,W.slice(0,8),parseInt(O[1],10)).key,T=[],D=U.createDecipheriv(A,E,W);T.push(D.update(H)),T.push(D.final()),F=X.concat(T)}else{var C=J.match(G);F=X.from(C[2].replace(/[\r\n]/g,""),"base64")}var L=J.match(Z)[1];return{tag:L,data:F}}}}),BY=z$({"node_modules/parse-asn1/index.js"($,Q){var Y=NY(),Z=xY(),G=_Y(),V=MQ(),U=e$(),X=S$().Buffer;Q.exports=K;function K(J){var O;typeof J=="object"&&!X.isBuffer(J)&&(O=J.passphrase,J=J.key),typeof J=="string"&&(J=X.from(J));var F=G(J,O),A=F.tag,W=F.data,H,E;switch(A){case"CERTIFICATE":E=Y.certificate.decode(W,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=Y.PublicKey.decode(W,"der")),H=E.algorithm.algorithm.join("."),H){case"1.2.840.113549.1.1.1":return Y.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=Y.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+H)}case"ENCRYPTED PRIVATE KEY":W=Y.EncryptedPrivateKey.decode(W,"der"),W=I(W,O);case"PRIVATE KEY":switch(E=Y.PrivateKey.decode(W,"der"),H=E.algorithm.algorithm.join("."),H){case"1.2.840.113549.1.1.1":return Y.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:Y.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=Y.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+H)}case"RSA PUBLIC KEY":return Y.RSAPublicKey.decode(W,"der");case"RSA PRIVATE KEY":return Y.RSAPrivateKey.decode(W,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Y.DSAPrivateKey.decode(W,"der")};case"EC PRIVATE KEY":return W=Y.ECPrivateKey.decode(W,"der"),{curve:W.parameters.value,privateKey:W.privateKey};default:throw new Error("unknown key type "+A)}}K.signature=Y.signature;function I(J,O){var F=J.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(J.algorithm.decrypt.kde.kdeparams.iters.toString(),10),W=Z[J.algorithm.decrypt.cipher.algo.join(".")],H=J.algorithm.decrypt.cipher.iv,E=J.subjectPrivateKey,T=parseInt(W.split("-")[1],10)/8,D=U.pbkdf2Sync(O,F,A,T,"sha1"),C=V.createDecipheriv(W,D,H),L=[];return L.push(C.update(E)),L.push(C.final()),X.concat(L)}}}),yY=z$({"node_modules/browserify-sign/browser/curves.json"($,Q){Q.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),wY=z$({"node_modules/browserify-sign/browser/sign.js"($,Q){var Y=S$().Buffer,Z=o$(),G=fQ(),V=WY().ec,U=wQ(),X=BY(),K=yY();function I(D,C,L,R,P){var z=X(C);if(z.curve){if(R!=="ecdsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");return J(D,z)}else if(z.type==="dsa"){if(R!=="dsa")throw new Error("wrong private key type");return O(D,z,L)}else if(R!=="rsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");D=Y.concat([P,D]);for(var M=z.modulus.byteLength(),S=[0,1];D.length+S.length+1<M;)S.push(255);S.push(0);for(var v=-1;++v<D.length;)S.push(D[v]);var q=G(S,z);return q}function J(D,C){var L=K[C.curve.join(".")];if(!L)throw new Error("unknown curve "+C.curve.join("."));var R=new V(L),P=R.keyFromPrivate(C.privateKey),z=P.sign(D);return Y.from(z.toDER())}function O(D,C,L){for(var R=C.params.priv_key,P=C.params.p,z=C.params.q,M=C.params.g,S=new U(0),v,q=W(D,z).mod(z),j=!1,k=A(R,z,D,L);j===!1;)v=E(z,k,L),S=T(M,v,P,z),j=v.invm(z).imul(q.add(R.mul(S))).mod(z),j.cmpn(0)===0&&(j=!1,S=new U(0));return F(S,j)}function F(D,C){D=D.toArray(),C=C.toArray(),D[0]&128&&(D=[0].concat(D)),C[0]&128&&(C=[0].concat(C));var L=D.length+C.length+4,R=[48,L,2,D.length];return R=R.concat(D,[2,C.length],C),Y.from(R)}function A(D,C,L,R){if(D=Y.from(D.toArray()),D.length<C.byteLength()){var P=Y.alloc(C.byteLength()-D.length);D=Y.concat([P,D])}var z=L.length,M=H(L,C),S=Y.alloc(z);S.fill(1);var v=Y.alloc(z);return v=Z(R,v).update(S).update(Y.from([0])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),v=Z(R,v).update(S).update(Y.from([1])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),{k:v,v:S}}function W(D,C){var L=new U(D),R=(D.length<<3)-C.bitLength();return R>0&&L.ishrn(R),L}function H(D,C){D=W(D,C),D=D.mod(C);var L=Y.from(D.toArray());if(L.length<C.byteLength()){var R=Y.alloc(C.byteLength()-L.length);L=Y.concat([R,L])}return L}function E(D,C,L){var R,P;do{for(R=Y.alloc(0);R.length*8<D.bitLength();)C.v=Z(L,C.k).update(C.v).digest(),R=Y.concat([R,C.v]);P=W(R,D),C.k=Z(L,C.k).update(C.v).update(Y.from([0])).digest(),C.v=Z(L,C.k).update(C.v).digest()}while(P.cmp(D)!==-1);return P}function T(D,C,L,R){return D.toRed(U.mont(L)).redPow(C).fromRed().mod(R)}Q.exports=I,Q.exports.getKey=A,Q.exports.makeKey=E}}),fY=z$({"node_modules/browserify-sign/browser/verify.js"($,Q){var Y=S$().Buffer,Z=wQ(),G=WY().ec,V=BY(),U=yY();function X(O,F,A,W,H){var E=V(A);if(E.type==="ec"){if(W!=="ecdsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");return K(O,F,E)}else if(E.type==="dsa"){if(W!=="dsa")throw new Error("wrong public key type");return I(O,F,E)}else if(W!=="rsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");F=Y.concat([H,F]);for(var T=E.modulus.byteLength(),D=[1],C=0;F.length+D.length+2<T;)D.push(255),C++;D.push(0);for(var L=-1;++L<F.length;)D.push(F[L]);D=Y.from(D);var R=Z.mont(E.modulus);O=new Z(O).toRed(R),O=O.redPow(new Z(E.publicExponent)),O=Y.from(O.fromRed().toArray());var P=C<8?1:0;for(T=Math.min(O.length,D.length),O.length!==D.length&&(P=1),L=-1;++L<T;)P|=O[L]^D[L];return P===0}function K(O,F,A){var W=U[A.data.algorithm.curve.join(".")];if(!W)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));var H=new G(W),E=A.data.subjectPrivateKey.data;return H.verify(F,O,E)}function I(O,F,A){var W=A.data.p,H=A.data.q,E=A.data.g,T=A.data.pub_key,D=V.signature.decode(O,"der"),C=D.s,L=D.r;J(C,H),J(L,H);var R=Z.mont(W),P=C.invm(H),z=E.toRed(R).redPow(new Z(F).mul(P).mod(H)).fromRed().mul(T.toRed(R).redPow(L.mul(P).mod(H)).fromRed()).mod(W).mod(H);return z.cmp(L)===0}function J(O,F){if(O.cmpn(0)<=0)throw new Error("invalid sig");if(O.cmp(F)>=F)throw new Error("invalid sig")}Q.exports=X}}),pY=z$({"node_modules/browserify-sign/browser/index.js"($,Q){var Y=S$().Buffer,Z=d$(),G=R$("readable-stream"),V=q$(),U=wY(),X=fY(),K=u$();Object.keys(K).forEach(function(A){K[A].id=Y.from(K[A].id,"hex"),K[A.toLowerCase()]=K[A]});function I(A){G.Writable.call(this);var W=K[A];if(!W)throw new Error("Unknown message digest");this._hashType=W.hash,this._hash=Z(W.hash),this._tag=W.id,this._signType=W.sign}V(I,G.Writable),I.prototype._write=function(A,W,H){this._hash.update(A),H()},I.prototype.update=function(A,W){return typeof A=="string"&&(A=Y.from(A,W)),this._hash.update(A),this},I.prototype.sign=function(A,W){this.end();var H=this._hash.digest(),E=U(H,A,this._hashType,this._signType,this._tag);return W?E.toString(W):E};function J(A){G.Writable.call(this);var W=K[A];if(!W)throw new Error("Unknown message digest");this._hash=Z(W.hash),this._tag=W.id,this._signType=W.sign}V(J,G.Writable),J.prototype._write=function(A,W,H){this._hash.update(A),H()},J.prototype.update=function(A,W){return typeof A=="string"&&(A=Y.from(A,W)),this._hash.update(A),this},J.prototype.verify=function(A,W,H){typeof W=="string"&&(W=Y.from(W,H)),this.end();var E=this._hash.digest();return X(W,E,A,this._signType,this._tag)};function O(A){return new I(A)}function F(A){return new J(A)}Q.exports={Sign:O,Verify:F,createSign:O,createVerify:F}}}),cY=z$({"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;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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,$)}}),hY=z$({"node_modules/create-ecdh/browser.js"($,Q){var Y=WY(),Z=cY();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",Buffer.isBuffer(X)||(X=new Buffer(X,K));var J=this.curve.keyFromPublic(X).getPublic(),O=J.mul(this.keys.getPrivate()).getX();return U(O,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",Buffer.isBuffer(X)||(X=new Buffer(X,K)),this.keys._importPublic(X),this},V.prototype.setPrivateKey=function(X,K){K=K||"utf8",Buffer.isBuffer(X)||(X=new Buffer(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 J=new Buffer(X);if(I&&J.length<I){var O=new Buffer(I-J.length);O.fill(0),J=Buffer.concat([O,J])}return K?J.toString(K):J}}}),dY=z$({"node_modules/public-encrypt/mgf.js"($,Q){var Y=d$(),Z=S$().Buffer;Q.exports=function(V,U){for(var X=Z.alloc(0),K=0,I;X.length<U;)I=G(K++),X=Z.concat([X,Y("sha1").update(V).update(I).digest()]);return X.slice(0,U)};function G(V){var U=Z.allocUnsafe(4);return U.writeUInt32BE(V,0),U}}}),bY=z$({"node_modules/public-encrypt/xor.js"($,Q){Q.exports=function(Y,Z){for(var G=Y.length,V=-1;++V<G;)Y[V]^=Z[V];return Y}}}),lY=z$({"node_modules/public-encrypt/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=globalThis.Buffer;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 N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);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 N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>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},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","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 N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.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],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[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 N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=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 W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.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;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.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 N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>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 N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&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,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),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,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.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,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=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,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=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,f=f+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,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=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,f=f+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,f=f+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,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+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,f=f+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,f=f+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,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+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,f=f+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,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=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,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+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,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=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,f=f+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,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+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,f=f+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,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+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,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+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,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+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,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+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,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+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,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+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,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(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,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<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,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&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=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),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,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=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 N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[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<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},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?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):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,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===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,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%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 N=new U(1),x=new U(0),_=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(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.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;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,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 N=new U(1),x=new U(0),_=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;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},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 N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},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,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,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 N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(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 N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?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,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===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<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}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 N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.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 f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},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),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._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:oY}=globalThis.Bun,uY=z$({"node_modules/public-encrypt/withPublic.js"($,Q){var Y=lY(),Z=S$().Buffer;function G(V,U){return Z.from(V.toRed(Y.mont(U.modulus)).redPow(new Y(U.publicExponent)).fromRed().toArray())}Q.exports=G}}),nY=z$({"node_modules/public-encrypt/publicEncrypt.js"($,Q){var Y=BY(),Z=v$(),G=d$(),V=dY(),U=bY(),X=lY(),K=uY(),I=fQ(),J=S$().Buffer;Q.exports=function(W,H,E){var T;W.padding?T=W.padding:E?T=1:T=4;var D=Y(W),C;if(T===4)C=O(D,H);else if(T===1)C=F(D,H,E);else if(T===3){if(C=new X(H),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 O(W,H){var E=W.modulus.byteLength(),T=H.length,D=G("sha1").update(J.alloc(0)).digest(),C=D.length,L=2*C;if(T>E-L-2)throw new Error("message too long");var R=J.alloc(E-T-L-2),P=E-C-1,z=Z(C),M=U(J.concat([D,R,J.alloc(1,1),H],P),V(z,P)),S=U(z,V(M,C));return new X(J.concat([J.alloc(1),S,M],E))}function F(W,H,E){var T=H.length,D=W.modulus.byteLength();if(T>D-11)throw new Error("message too long");var C;return E?C=J.alloc(D-T-3,255):C=A(D-T-3),new X(J.concat([J.from([0,E?1:2]),C,J.alloc(1),H],D))}function A(W){for(var H=J.allocUnsafe(W),E=0,T=Z(W*2),D=0,C;E<W;)D===T.length&&(T=Z(W*2),D=0),C=T[D++],C&&(H[E++]=C);return H}}}),sY=z$({"node_modules/public-encrypt/privateDecrypt.js"($,Q){var Y=BY(),Z=dY(),G=bY(),V=lY(),U=fQ(),X=d$(),K=uY(),I=S$().Buffer;Q.exports=function(A,W,H){var E;A.padding?E=A.padding:H?E=1:E=4;var T=Y(A),D=T.modulus.byteLength();if(W.length>D||new V(W).cmp(T.modulus)>=0)throw new Error("decryption error");var C;H?C=K(new V(W),T):C=U(W,T);var L=I.alloc(D-C.length);if(C=I.concat([L,C],D),E===4)return J(T,C);if(E===1)return O(T,C,H);if(E===3)return C;throw new Error("unknown padding")};function J(A,W){var H=A.modulus.byteLength(),E=X("sha1").update(I.alloc(0)).digest(),T=E.length;if(W[0]!==0)throw new Error("decryption error");var D=W.slice(1,T+1),C=W.slice(T+1),L=G(D,Z(C,T)),R=G(C,Z(L,H-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 O(A,W,H){for(var E=W.slice(0,2),T=2,D=0;W[T++]!==0;)if(T>=W.length){D++;break}var C=W.slice(2,T-1);if((E.toString("hex")!=="0002"&&!H||E.toString("hex")!=="0001"&&H)&&D++,C.length<8&&D++,D)throw new Error("decryption error");return W.slice(T)}function F(A,W){A=I.from(A),W=I.from(W);var H=0,E=A.length;A.length!==W.length&&(H++,E=Math.min(A.length,W.length));for(var T=-1;++T<E;)H+=A[T]^W[T];return H}}}),tY=z$({"node_modules/public-encrypt/browser.js"($){$.publicEncrypt=nY(),$.privateDecrypt=sY(),$.privateEncrypt=function(Q,Y){return $.publicEncrypt(Q,Y,!0)},$.publicDecrypt=function(Q,Y){return $.privateDecrypt(Q,Y,!0)}}}),mY=z$({"node_modules/randomfill/browser.js"($){var Q=S$(),Y=v$(),Z=Q.Buffer,G=Q.kMaxLength,V=Math.pow(2,32)-1;function U(O,F){if(typeof O!="number"||O!==O)throw new TypeError("offset must be a number");if(O>V||O<0)throw new TypeError("offset must be a uint32");if(O>G||O>F)throw new RangeError("offset out of range")}function X(O,F,A){if(typeof O!="number"||O!==O)throw new TypeError("size must be a number");if(O>V||O<0)throw new TypeError("size must be a uint32");if(O+F>A||O>G)throw new RangeError("buffer too small")}$.randomFill=K,$.randomFillSync=J;function K(O,F,A,W){if(!Z.isBuffer(O)&&!(O instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")W=F,F=0,A=O.length;else if(typeof A=="function")W=A,A=O.length-F;else if(typeof W!="function")throw new TypeError('"cb" argument must be a function');return U(F,O.length),X(A,F,O.length),I(O,F,A,W)}function I(O,F,A,W){if(W){Y(A,function(E,T){if(E)return W(E);T.copy(O,F),W(null,O)});return}var H=Y(A);return H.copy(O,F),O}function J(O,F,A){if(typeof F>"u"&&(F=0),!Z.isBuffer(O)&&!(O instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(F,O.length),A===void 0&&(A=O.length-F),X(A,F,O.length),I(O,F,A)}}}),aY=z$({"node_modules/crypto-browserify/index.js"($){$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=v$(),$.createHash=d$(),$.Hash=$.createHash.Hash,$.createHmac=$.Hmac=o$();var Q=n$(),Y=Object.keys(Q),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Y);$.getHashes=function(){return Z};var G=e$();$.pbkdf2=G.pbkdf2,$.pbkdf2Sync=G.pbkdf2Sync;var V=vQ();$.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=yQ();$.DiffieHellmanGroup=U.DiffieHellmanGroup,$.createDiffieHellmanGroup=U.createDiffieHellmanGroup,$.getDiffieHellman=U.getDiffieHellman,$.createDiffieHellman=U.createDiffieHellman,$.DiffieHellman=U.DiffieHellman;var X=pY();$.createSign=X.createSign,$.Sign=X.Sign,$.createVerify=X.createVerify,$.Verify=X.Verify,$.createECDH=hY();var K=tY();$.publicEncrypt=K.publicEncrypt,$.privateEncrypt=K.privateEncrypt,$.publicDecrypt=K.publicDecrypt,$.privateDecrypt=K.privateDecrypt,$.getRandomValues=(J)=>F$.getRandomValues(J);var I=mY();$.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}}}),rY={...aY(),[Symbol.for("CommonJS")]:0},H$="buffer",eY=($)=>F$.getRandomValues($),iY=()=>F$.randomUUID(),E$="timingSafeEqual"in F$?($,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 F$.timingSafeEqual($,Q)}:void 0,$Z="scryptSync"in F$?($,Q,Y,Z)=>{let G=F$.scryptSync($,Q,Y,Z);return H$!=="buffer"?new Buffer(G).toString(H$):new Buffer(G)}:void 0,QZ="scryptSync"in F$?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=F$.scryptSync($,Q,Y,Z);process.nextTick(G,null,H$!=="buffer"?new Buffer(U).toString(H$):new Buffer(U))}catch(U){throw U}}:void 0;E$&&(Object.defineProperty(E$,"name",{value:"::bunternal::"}),Object.defineProperty(QZ,"name",{value:"::bunternal::"}),Object.defineProperty($Z,"name",{value:"::bunternal::"}));var T$=F$;M$(rY,{DEFAULT_ENCODING:()=>H$,getRandomValues:()=>eY,randomUUID:()=>iY,scrypt:()=>QZ,scryptSync:()=>$Z,timingSafeEqual:()=>E$,webcrypto:()=>T$,subtle:()=>T$.subtle});var{randomBytes:YZ,rng:ZZ,pseudoRandomBytes:GZ,prng:VZ,Hash:UZ,createHash:XZ,createHmac:KZ,Hmac:IZ,getHashes:JZ,pbkdf2:OZ,pbkdf2Sync:FZ,Cipher:AZ,createCipher:WZ,Cipheriv:HZ,createCipheriv:EZ,Decipher:TZ,createDecipher:DZ,Decipheriv:CZ,createDecipheriv:LZ,getCiphers:RZ,listCiphers:PZ,DiffieHellmanGroup:zZ,createDiffieHellmanGroup:MZ,getDiffieHellman:SZ,createDiffieHellman:vZ,DiffieHellman:qZ,createSign:jZ,Sign:kZ,createVerify:gZ,Verify:NZ,createECDH:xZ,publicEncrypt:_Z,privateEncrypt:BZ,publicDecrypt:yZ,privateDecrypt:wZ,randomFill:fZ,randomFillSync:pZ,createCredentials:cZ,constants:hZ}=rY;var bZ=rY;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{T$ as webcrypto,E$ as timingSafeEqual,$Z as scryptSync,QZ as scrypt,ZZ as rng,iY as randomUUID,pZ as randomFillSync,fZ as randomFill,YZ as randomBytes,_Z as publicEncrypt,yZ as publicDecrypt,GZ as pseudoRandomBytes,VZ as prng,BZ as privateEncrypt,wZ as privateDecrypt,FZ as pbkdf2Sync,OZ as pbkdf2,PZ as listCiphers,eY as getRandomValues,JZ as getHashes,SZ as getDiffieHellman,RZ as getCiphers,bZ as default,gZ as createVerify,jZ as createSign,KZ as createHmac,XZ as createHash,xZ as createECDH,MZ as createDiffieHellmanGroup,vZ as createDiffieHellman,LZ as createDecipheriv,DZ as createDecipher,cZ as createCredentials,EZ as createCipheriv,WZ as createCipher,hZ as constants,NZ as Verify,kZ as Sign,IZ as Hmac,UZ as Hash,zZ as DiffieHellmanGroup,qZ as DiffieHellman,CZ as Decipheriv,TZ as Decipher,H$ as DEFAULT_ENCODING,HZ as Cipheriv,AZ as Cipher};
+import{StringDecoder as BQ} from"node:string_decoder";import*as P0 from"node:buffer";import*as R0 from"node:stream";var PZ=function(){return RZ};var xQ=Object.defineProperty;var J=Object.getOwnPropertyNames;var yQ=536870888,G0=globalThis.Buffer,qQ=globalThis.crypto,wQ=qQ;var pQ=(t0,m0)=>function(){return m0||(0,t0[J(t0)[0]])((m0={exports:{}}).exports,m0),m0.exports},fQ=(t0,m0)=>{for(var a0 in m0)xQ(t0,a0,{get:m0[a0],enumerable:!0})};var cQ=pQ({"node_modules/safe-buffer/index.js"(t0,m0){var a0=P0,e0=a0.Buffer;function r0($$,Q$){for(var $ in $$)Q$[$]=$$[$]}e0.from&&e0.alloc&&e0.allocUnsafe&&e0.allocUnsafeSlow?m0.exports=a0:(r0(a0,t0),t0.Buffer=i0);function i0($$,Q$,$){return e0($$,Q$,$)}i0.prototype=Object.create(e0.prototype),r0(e0,i0),i0.from=function($$,Q$,$){if(typeof $$=="number")throw new TypeError("Argument must not be a number");return e0($$,Q$,$)},i0.alloc=function($$,Q$,$){if(typeof $$!="number")throw new TypeError("Argument must be a number");var N=e0($$);return Q$!==void 0?typeof $=="string"?N.fill(Q$,$):N.fill(Q$):N.fill(0),N},i0.allocUnsafe=function($$){if(typeof $$!="number")throw new TypeError("Argument must be a number");return e0($$)},i0.allocUnsafeSlow=function($$){if(typeof $$!="number")throw new TypeError("Argument must be a number");return a0.SlowBuffer($$)}}}),hQ=pQ({"node_modules/randombytes/browser.js"(t0,m0){var a0=65536,e0=4294967295;function r0(){throw new Error(`Secure random number generation is not supported by this browser.
+Use Chrome, Firefox or Internet Explorer 11`)}var i0=cQ().Buffer,$$=wQ;$$&&$$.getRandomValues?m0.exports=Q$:m0.exports=r0;function Q$($,N){if($>e0)throw new RangeError("requested too many random bytes");var Y$=i0.allocUnsafe($);if($>0)if($>a0)for(var O0=0;O0<$;O0+=a0)$$.getRandomValues(Y$.slice(O0,O0+a0));else $$.getRandomValues(Y$);return typeof N=="function"?process.nextTick(function(){N(null,Y$)}):Y$}}}),dQ=pQ({"node_modules/inherits/inherits_browser.js"(t0,m0){typeof Object.create=="function"?m0.exports=function(a0,e0){e0&&(a0.super_=e0,a0.prototype=Object.create(e0.prototype,{constructor:{value:a0,enumerable:!1,writable:!0,configurable:!0}}))}:m0.exports=function(a0,e0){if(e0){a0.super_=e0;var r0=function(){};r0.prototype=e0.prototype,a0.prototype=new r0,a0.prototype.constructor=a0}}}}),F=pQ({"node_modules/hash-base/index.js"(t0,m0){var a0=cQ().Buffer,e0=dQ();function r0($$,Q$){if(!a0.isBuffer($$)&&typeof $$!="string")throw new TypeError(Q$+" must be a string or a buffer")}function i0($$){R0.Transform.call(this),this._block=a0.allocUnsafe($$),this._blockSize=$$,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e0(i0,R0.Transform),i0.prototype._transform=function($$,Q$,$){var N=null;try{this.update($$,Q$)}catch(Y$){N=Y$}$(N)},i0.prototype._flush=function($$){var Q$=null;try{this.push(this.digest())}catch($){Q$=$}$$(Q$)},i0.prototype.update=function($$,Q$){if(r0($$,"Data"),this._finalized)throw new Error("Digest already called");a0.isBuffer($$)||($$=a0.from($$,Q$));for(var $=this._block,N=0;this._blockOffset+$$.length-N>=this._blockSize;){for(var Y$=this._blockOffset;Y$<this._blockSize;)$[Y$++]=$$[N++];this._update(),this._blockOffset=0}for(;N<$$.length;)$[this._blockOffset++]=$$[N++];for(var O0=0,Z$=$$.length*8;Z$>0;++O0)this._length[O0]+=Z$,Z$=this._length[O0]/4294967296|0,Z$>0&&(this._length[O0]-=4294967296*Z$);return this},i0.prototype._update=function(){throw new Error("_update is not implemented")},i0.prototype.digest=function($$){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Q$=this._digest();$$!==void 0&&(Q$=Q$.toString($$)),this._block.fill(0),this._blockOffset=0;for(var $=0;$<4;++$)this._length[$]=0;return Q$},i0.prototype._digest=function(){throw new Error("_digest is not implemented")},m0.exports=i0}}),_=pQ({"node_modules/md5.js/index.js"(t0,m0){var a0=dQ(),e0=F(),r0=cQ().Buffer,i0=new Array(16);function $$(){e0.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}a0($$,e0),$$.prototype._update=function(){for(var Z$=i0,G$=0;G$<16;++G$)Z$[G$]=this._block.readInt32LE(G$*4);var V$=this._a,U$=this._b,X$=this._c,K$=this._d;V$=$(V$,U$,X$,K$,Z$[0],3614090360,7),K$=$(K$,V$,U$,X$,Z$[1],3905402710,12),X$=$(X$,K$,V$,U$,Z$[2],606105819,17),U$=$(U$,X$,K$,V$,Z$[3],3250441966,22),V$=$(V$,U$,X$,K$,Z$[4],4118548399,7),K$=$(K$,V$,U$,X$,Z$[5],1200080426,12),X$=$(X$,K$,V$,U$,Z$[6],2821735955,17),U$=$(U$,X$,K$,V$,Z$[7],4249261313,22),V$=$(V$,U$,X$,K$,Z$[8],1770035416,7),K$=$(K$,V$,U$,X$,Z$[9],2336552879,12),X$=$(X$,K$,V$,U$,Z$[10],4294925233,17),U$=$(U$,X$,K$,V$,Z$[11],2304563134,22),V$=$(V$,U$,X$,K$,Z$[12],1804603682,7),K$=$(K$,V$,U$,X$,Z$[13],4254626195,12),X$=$(X$,K$,V$,U$,Z$[14],2792965006,17),U$=$(U$,X$,K$,V$,Z$[15],1236535329,22),V$=N(V$,U$,X$,K$,Z$[1],4129170786,5),K$=N(K$,V$,U$,X$,Z$[6],3225465664,9),X$=N(X$,K$,V$,U$,Z$[11],643717713,14),U$=N(U$,X$,K$,V$,Z$[0],3921069994,20),V$=N(V$,U$,X$,K$,Z$[5],3593408605,5),K$=N(K$,V$,U$,X$,Z$[10],38016083,9),X$=N(X$,K$,V$,U$,Z$[15],3634488961,14),U$=N(U$,X$,K$,V$,Z$[4],3889429448,20),V$=N(V$,U$,X$,K$,Z$[9],568446438,5),K$=N(K$,V$,U$,X$,Z$[14],3275163606,9),X$=N(X$,K$,V$,U$,Z$[3],4107603335,14),U$=N(U$,X$,K$,V$,Z$[8],1163531501,20),V$=N(V$,U$,X$,K$,Z$[13],2850285829,5),K$=N(K$,V$,U$,X$,Z$[2],4243563512,9),X$=N(X$,K$,V$,U$,Z$[7],1735328473,14),U$=N(U$,X$,K$,V$,Z$[12],2368359562,20),V$=Y$(V$,U$,X$,K$,Z$[5],4294588738,4),K$=Y$(K$,V$,U$,X$,Z$[8],2272392833,11),X$=Y$(X$,K$,V$,U$,Z$[11],1839030562,16),U$=Y$(U$,X$,K$,V$,Z$[14],4259657740,23),V$=Y$(V$,U$,X$,K$,Z$[1],2763975236,4),K$=Y$(K$,V$,U$,X$,Z$[4],1272893353,11),X$=Y$(X$,K$,V$,U$,Z$[7],4139469664,16),U$=Y$(U$,X$,K$,V$,Z$[10],3200236656,23),V$=Y$(V$,U$,X$,K$,Z$[13],681279174,4),K$=Y$(K$,V$,U$,X$,Z$[0],3936430074,11),X$=Y$(X$,K$,V$,U$,Z$[3],3572445317,16),U$=Y$(U$,X$,K$,V$,Z$[6],76029189,23),V$=Y$(V$,U$,X$,K$,Z$[9],3654602809,4),K$=Y$(K$,V$,U$,X$,Z$[12],3873151461,11),X$=Y$(X$,K$,V$,U$,Z$[15],530742520,16),U$=Y$(U$,X$,K$,V$,Z$[2],3299628645,23),V$=O0(V$,U$,X$,K$,Z$[0],4096336452,6),K$=O0(K$,V$,U$,X$,Z$[7],1126891415,10),X$=O0(X$,K$,V$,U$,Z$[14],2878612391,15),U$=O0(U$,X$,K$,V$,Z$[5],4237533241,21),V$=O0(V$,U$,X$,K$,Z$[12],1700485571,6),K$=O0(K$,V$,U$,X$,Z$[3],2399980690,10),X$=O0(X$,K$,V$,U$,Z$[10],4293915773,15),U$=O0(U$,X$,K$,V$,Z$[1],2240044497,21),V$=O0(V$,U$,X$,K$,Z$[8],1873313359,6),K$=O0(K$,V$,U$,X$,Z$[15],4264355552,10),X$=O0(X$,K$,V$,U$,Z$[6],2734768916,15),U$=O0(U$,X$,K$,V$,Z$[13],1309151649,21),V$=O0(V$,U$,X$,K$,Z$[4],4149444226,6),K$=O0(K$,V$,U$,X$,Z$[11],3174756917,10),X$=O0(X$,K$,V$,U$,Z$[2],718787259,15),U$=O0(U$,X$,K$,V$,Z$[9],3951481745,21),this._a=this._a+V$|0,this._b=this._b+U$|0,this._c=this._c+X$|0,this._d=this._d+K$|0},$$.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 Z$=r0.allocUnsafe(16);return Z$.writeInt32LE(this._a,0),Z$.writeInt32LE(this._b,4),Z$.writeInt32LE(this._c,8),Z$.writeInt32LE(this._d,12),Z$};function Q$(Z$,G$){return Z$<<G$|Z$>>>32-G$}function $(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$&V$|~G$&U$)+X$+K$|0,I$)+G$|0}function N(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$&U$|V$&~U$)+X$+K$|0,I$)+G$|0}function Y$(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$^V$^U$)+X$+K$|0,I$)+G$|0}function O0(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(V$^(G$|~U$))+X$+K$|0,I$)+G$|0}m0.exports=$$}}),V0=pQ({"node_modules/ripemd160/index.js"(t0,m0){var a0=G0,e0=dQ(),r0=F(),i0=new Array(16),$$=[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],Q$=[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],$=[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],N=[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],Y$=[0,1518500249,1859775393,2400959708,2840853838],O0=[1352829926,1548603684,1836072691,2053994217,0];function Z$(){r0.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}e0(Z$,r0),Z$.prototype._update=function(){for(var Q=i0,x=0;x<16;++x)Q[x]=this._block.readInt32LE(x*4);for(var O$=this._a|0,J0=this._b|0,J$=this._c|0,F$=this._d|0,A$=this._e|0,H$=this._a|0,W$=this._b|0,E$=this._c|0,T$=this._d|0,Y=this._e|0,f=0;f<80;f+=1){var D$,F0;f<16?(D$=V$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[0],$[f]),F0=I$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[0],N[f])):f<32?(D$=U$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[1],$[f]),F0=K$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[1],N[f])):f<48?(D$=X$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[2],$[f]),F0=X$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[2],N[f])):f<64?(D$=K$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[3],$[f]),F0=U$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[3],N[f])):(D$=I$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[4],$[f]),F0=V$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[4],N[f])),O$=A$,A$=F$,F$=G$(J$,10),J$=J0,J0=D$,H$=Y,Y=T$,T$=G$(E$,10),E$=W$,W$=F0}var C$=this._b+J$+T$|0;this._b=this._c+F$+Y|0,this._c=this._d+A$+H$|0,this._d=this._e+O$+W$|0,this._e=this._a+J0+E$|0,this._a=C$},Z$.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=a0.alloc?a0.alloc(20):new a0(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 G$(Q,x){return Q<<x|Q>>>32-x}function V$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x^O$^J0)+F$+A$|0,H$)+J$|0}function U$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x&O$|~x&J0)+F$+A$|0,H$)+J$|0}function X$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+((x|~O$)^J0)+F$+A$|0,H$)+J$|0}function K$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x&J0|O$&~J0)+F$+A$|0,H$)+J$|0}function I$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x^(O$|~J0))+F$+A$|0,H$)+J$|0}m0.exports=Z$}}),z0=pQ({"node_modules/sha.js/hash.js"(t0,m0){var a0=cQ().Buffer;function e0(r0,i0){this._block=a0.alloc(r0),this._finalSize=i0,this._blockSize=r0,this._len=0}e0.prototype.update=function(r0,i0){typeof r0=="string"&&(i0=i0||"utf8",r0=a0.from(r0,i0));for(var $$=this._block,Q$=this._blockSize,$=r0.length,N=this._len,Y$=0;Y$<$;){for(var O0=N%Q$,Z$=Math.min($-Y$,Q$-O0),G$=0;G$<Z$;G$++)$$[O0+G$]=r0[Y$+G$];N+=Z$,Y$+=Z$,N%Q$===0&&this._update($$)}return this._len+=$,this},e0.prototype.digest=function(r0){var i0=this._len%this._blockSize;this._block[i0]=128,this._block.fill(0,i0+1),i0>=this._finalSize&&(this._update(this._block),this._block.fill(0));var $$=this._len*8;if($$<=4294967295)this._block.writeUInt32BE($$,this._blockSize-4);else{var Q$=($$&4294967295)>>>0,$=($$-Q$)/4294967296;this._block.writeUInt32BE($,this._blockSize-8),this._block.writeUInt32BE(Q$,this._blockSize-4)}this._update(this._block);var N=this._hash();return r0?N.toString(r0):N},e0.prototype._update=function(){throw new Error("_update must be implemented by subclass")},m0.exports=e0}}),bQ=pQ({"node_modules/sha.js/sha.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[1518500249,1859775393,-1894007588,-899497514],$$=new Array(80);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $(O0){return O0<<5|O0>>>27}function N(O0){return O0<<30|O0>>>2}function Y$(O0,Z$,G$,V$){return O0===0?Z$&G$|~Z$&V$:O0===2?Z$&G$|Z$&V$|G$&V$:Z$^G$^V$}Q$.prototype._update=function(O0){for(var Z$=this._w,G$=this._a|0,V$=this._b|0,U$=this._c|0,X$=this._d|0,K$=this._e|0,I$=0;I$<16;++I$)Z$[I$]=O0.readInt32BE(I$*4);for(;I$<80;++I$)Z$[I$]=Z$[I$-3]^Z$[I$-8]^Z$[I$-14]^Z$[I$-16];for(var Q=0;Q<80;++Q){var x=~~(Q/20),O$=$(G$)+Y$(x,V$,U$,X$)+K$+Z$[Q]+i0[x]|0;K$=X$,X$=U$,U$=N(V$),V$=G$,G$=O$}this._a=G$+this._a|0,this._b=V$+this._b|0,this._c=U$+this._c|0,this._d=X$+this._d|0,this._e=K$+this._e|0},Q$.prototype._hash=function(){var O0=r0.allocUnsafe(20);return O0.writeInt32BE(this._a|0,0),O0.writeInt32BE(this._b|0,4),O0.writeInt32BE(this._c|0,8),O0.writeInt32BE(this._d|0,12),O0.writeInt32BE(this._e|0,16),O0},m0.exports=Q$}}),lQ=pQ({"node_modules/sha.js/sha1.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[1518500249,1859775393,-1894007588,-899497514],$$=new Array(80);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $(Z$){return Z$<<1|Z$>>>31}function N(Z$){return Z$<<5|Z$>>>27}function Y$(Z$){return Z$<<30|Z$>>>2}function O0(Z$,G$,V$,U$){return Z$===0?G$&V$|~G$&U$:Z$===2?G$&V$|G$&U$|V$&U$:G$^V$^U$}Q$.prototype._update=function(Z$){for(var G$=this._w,V$=this._a|0,U$=this._b|0,X$=this._c|0,K$=this._d|0,I$=this._e|0,Q=0;Q<16;++Q)G$[Q]=Z$.readInt32BE(Q*4);for(;Q<80;++Q)G$[Q]=$(G$[Q-3]^G$[Q-8]^G$[Q-14]^G$[Q-16]);for(var x=0;x<80;++x){var O$=~~(x/20),J0=N(V$)+O0(O$,U$,X$,K$)+I$+G$[x]+i0[O$]|0;I$=K$,K$=X$,X$=Y$(U$),U$=V$,V$=J0}this._a=V$+this._a|0,this._b=U$+this._b|0,this._c=X$+this._c|0,this._d=K$+this._d|0,this._e=I$+this._e|0},Q$.prototype._hash=function(){var Z$=r0.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$},m0.exports=Q$}}),oQ=pQ({"node_modules/sha.js/sha256.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[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],$$=new Array(64);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.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 $(V$,U$,X$){return X$^V$&(U$^X$)}function N(V$,U$,X$){return V$&U$|X$&(V$|U$)}function Y$(V$){return(V$>>>2|V$<<30)^(V$>>>13|V$<<19)^(V$>>>22|V$<<10)}function O0(V$){return(V$>>>6|V$<<26)^(V$>>>11|V$<<21)^(V$>>>25|V$<<7)}function Z$(V$){return(V$>>>7|V$<<25)^(V$>>>18|V$<<14)^V$>>>3}function G$(V$){return(V$>>>17|V$<<15)^(V$>>>19|V$<<13)^V$>>>10}Q$.prototype._update=function(V$){for(var U$=this._w,X$=this._a|0,K$=this._b|0,I$=this._c|0,Q=this._d|0,x=this._e|0,O$=this._f|0,J0=this._g|0,J$=this._h|0,F$=0;F$<16;++F$)U$[F$]=V$.readInt32BE(F$*4);for(;F$<64;++F$)U$[F$]=G$(U$[F$-2])+U$[F$-7]+Z$(U$[F$-15])+U$[F$-16]|0;for(var A$=0;A$<64;++A$){var H$=J$+O0(x)+$(x,O$,J0)+i0[A$]+U$[A$]|0,W$=Y$(X$)+N(X$,K$,I$)|0;J$=J0,J0=O$,O$=x,x=Q+H$|0,Q=I$,I$=K$,K$=X$,X$=H$+W$|0}this._a=X$+this._a|0,this._b=K$+this._b|0,this._c=I$+this._c|0,this._d=Q+this._d|0,this._e=x+this._e|0,this._f=O$+this._f|0,this._g=J0+this._g|0,this._h=J$+this._h|0},Q$.prototype._hash=function(){var V$=r0.allocUnsafe(32);return V$.writeInt32BE(this._a,0),V$.writeInt32BE(this._b,4),V$.writeInt32BE(this._c,8),V$.writeInt32BE(this._d,12),V$.writeInt32BE(this._e,16),V$.writeInt32BE(this._f,20),V$.writeInt32BE(this._g,24),V$.writeInt32BE(this._h,28),V$},m0.exports=Q$}}),uQ=pQ({"node_modules/sha.js/sha224.js"(t0,m0){var a0=dQ(),e0=oQ(),r0=z0(),i0=cQ().Buffer,$$=new Array(64);function Q$(){this.init(),this._w=$$,r0.call(this,64,56)}a0(Q$,e0),Q$.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},Q$.prototype._hash=function(){var $=i0.allocUnsafe(28);return $.writeInt32BE(this._a,0),$.writeInt32BE(this._b,4),$.writeInt32BE(this._c,8),$.writeInt32BE(this._d,12),$.writeInt32BE(this._e,16),$.writeInt32BE(this._f,20),$.writeInt32BE(this._g,24),$},m0.exports=Q$}}),nQ=pQ({"node_modules/sha.js/sha512.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[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],$$=new Array(160);function Q$(){this.init(),this._w=$$,e0.call(this,128,112)}a0(Q$,e0),Q$.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$,I$,Q){return Q^K$&(I$^Q)}function N(K$,I$,Q){return K$&I$|Q&(K$|I$)}function Y$(K$,I$){return(K$>>>28|I$<<4)^(I$>>>2|K$<<30)^(I$>>>7|K$<<25)}function O0(K$,I$){return(K$>>>14|I$<<18)^(K$>>>18|I$<<14)^(I$>>>9|K$<<23)}function Z$(K$,I$){return(K$>>>1|I$<<31)^(K$>>>8|I$<<24)^K$>>>7}function G$(K$,I$){return(K$>>>1|I$<<31)^(K$>>>8|I$<<24)^(K$>>>7|I$<<25)}function V$(K$,I$){return(K$>>>19|I$<<13)^(I$>>>29|K$<<3)^K$>>>6}function U$(K$,I$){return(K$>>>19|I$<<13)^(I$>>>29|K$<<3)^(K$>>>6|I$<<26)}function X$(K$,I$){return K$>>>0<I$>>>0?1:0}Q$.prototype._update=function(K$){for(var I$=this._w,Q=this._ah|0,x=this._bh|0,O$=this._ch|0,J0=this._dh|0,J$=this._eh|0,F$=this._fh|0,A$=this._gh|0,H$=this._hh|0,W$=this._al|0,E$=this._bl|0,T$=this._cl|0,Y=this._dl|0,f=this._el|0,D$=this._fl|0,F0=this._gl|0,C$=this._hl|0,L$=0;L$<32;L$+=2)I$[L$]=K$.readInt32BE(L$*4),I$[L$+1]=K$.readInt32BE(L$*4+4);for(;L$<160;L$+=2){var R$=I$[L$-30],P$=I$[L$-30+1],z$=Z$(R$,P$),M$=G$(P$,R$);R$=I$[L$-4],P$=I$[L$-4+1];var S$=V$(R$,P$),Z=U$(P$,R$),c=I$[L$-14],v$=I$[L$-14+1],A0=I$[L$-32],q$=I$[L$-32+1],j$=M$+v$|0,k$=z$+c+X$(j$,M$)|0;j$=j$+Z|0,k$=k$+S$+X$(j$,Z)|0,j$=j$+q$|0,k$=k$+A0+X$(j$,q$)|0,I$[L$]=k$,I$[L$+1]=j$}for(var g$=0;g$<160;g$+=2){k$=I$[g$],j$=I$[g$+1];var _$=N(Q,x,O$),N$=N(W$,E$,T$),x$=Y$(Q,W$),G=Y$(W$,Q),B=O0(J$,f),B$=O0(f,J$),H0=i0[g$],y$=i0[g$+1],w$=$(J$,F$,A$),p$=$(f,D$,F0),f$=C$+B$|0,c$=H$+B+X$(f$,C$)|0;f$=f$+p$|0,c$=c$+w$+X$(f$,p$)|0,f$=f$+y$|0,c$=c$+H0+X$(f$,y$)|0,f$=f$+j$|0,c$=c$+k$+X$(f$,j$)|0;var h$=G+N$|0,d$=x$+_$+X$(h$,G)|0;H$=A$,C$=F0,A$=F$,F0=D$,F$=J$,D$=f,f=Y+f$|0,J$=J0+c$+X$(f,Y)|0,J0=O$,Y=T$,O$=x,T$=E$,x=Q,E$=W$,W$=f$+h$|0,Q=c$+d$+X$(W$,f$)|0}this._al=this._al+W$|0,this._bl=this._bl+E$|0,this._cl=this._cl+T$|0,this._dl=this._dl+Y|0,this._el=this._el+f|0,this._fl=this._fl+D$|0,this._gl=this._gl+F0|0,this._hl=this._hl+C$|0,this._ah=this._ah+Q+X$(this._al,W$)|0,this._bh=this._bh+x+X$(this._bl,E$)|0,this._ch=this._ch+O$+X$(this._cl,T$)|0,this._dh=this._dh+J0+X$(this._dl,Y)|0,this._eh=this._eh+J$+X$(this._el,f)|0,this._fh=this._fh+F$+X$(this._fl,D$)|0,this._gh=this._gh+A$+X$(this._gl,F0)|0,this._hh=this._hh+H$+X$(this._hl,C$)|0},Q$.prototype._hash=function(){var K$=r0.allocUnsafe(64);function I$(Q,x,O$){K$.writeInt32BE(Q,O$),K$.writeInt32BE(x,O$+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),I$(this._gh,this._gl,48),I$(this._hh,this._hl,56),K$},m0.exports=Q$}}),sQ=pQ({"node_modules/sha.js/sha384.js"(t0,m0){var a0=dQ(),e0=nQ(),r0=z0(),i0=cQ().Buffer,$$=new Array(160);function Q$(){this.init(),this._w=$$,r0.call(this,128,112)}a0(Q$,e0),Q$.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},Q$.prototype._hash=function(){var $=i0.allocUnsafe(48);function N(Y$,O0,Z$){$.writeInt32BE(Y$,Z$),$.writeInt32BE(O0,Z$+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),$},m0.exports=Q$}}),tQ=pQ({"node_modules/sha.js/index.js"(a0,m0){var a0=m0.exports=function(e0){e0=e0.toLowerCase();var r0=a0[e0];if(!r0)throw new Error(e0+" is not supported (we accept pull requests)");return new r0};a0.sha=bQ(),a0.sha1=lQ(),a0.sha224=uQ(),a0.sha256=oQ(),a0.sha384=sQ(),a0.sha512=nQ()}}),A=pQ({"node_modules/cipher-base/index.js"(t0,m0){var a0=cQ().Buffer,e0=dQ();function r0(i0){R0.Transform.call(this),this.hashMode=typeof i0=="string",this.hashMode?this[i0]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e0(r0,R0.Transform),r0.prototype.update=function(i0,$$,Q$){typeof i0=="string"&&(i0=a0.from(i0,$$));var $=this._update(i0);return this.hashMode?this:(Q$&&($=this._toString($,Q$)),$)},r0.prototype.setAutoPadding=function(){},r0.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r0.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r0.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r0.prototype._transform=function(i0,$$,Q$){var $;try{this.hashMode?this._update(i0):this.push(this._update(i0))}catch(N){$=N}finally{Q$($)}},r0.prototype._flush=function(i0){var $$;try{this.push(this.__final())}catch(Q$){$$=Q$}i0($$)},r0.prototype._finalOrDigest=function(i0){var $$=this.__final()||a0.alloc(0);return i0&&($$=this._toString($$,i0,!0)),$$},r0.prototype._toString=function(i0,$$,Q$){if(this._decoder||(this._decoder=new BQ($$),this._encoding=$$),this._encoding!==$$)throw new Error("can't switch encodings");var $=this._decoder.write(i0);return Q$&&($+=this._decoder.end()),$},m0.exports=r0}}),w=pQ({"node_modules/create-hash/browser.js"(t0,m0){const a0=function i0($$,Q$){this._options=Q$,this._hasher=new AZ($$,Q$),this._finalized=!1};a0.prototype=Object.create(R0.Transform.prototype),a0.prototype.update=function i0($$,Q$){return this._checkFinalized(),this._hasher.update($$,Q$),this},a0.prototype.digest=function i0($$,Q$){return this._checkFinalized(),this._finalized=!0,this._hasher.digest($$,Q$)},a0.prototype._checkFinalized=function i0(){if(this._finalized){var $$=new Error("Digest already called");throw $$.code="ERR_CRYPTO_HASH_FINALIZED",$$}},a0.prototype.copy=function i0(){const $$=Object.create(a0.prototype);return $$._options=this._options,$$._hasher=this._hasher.copy(),$$._finalized=this._finalized,$$};const e0={__proto__:R0.Transform.prototype,...a0.prototype,_transform(i0,$$,Q$){this.update(i0,$$),Q$&&Q$()},_flush(i0){this.push(this.digest()),i0()}},r0=["_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 i0 of r0)Object.defineProperty(a0.prototype,i0,{get(){return Object.setPrototypeOf(this,e0),R0.Transform.call(this,this._options),this[i0]},enumerable:!1,configurable:!0});m0.exports=function i0($$){return new a0($$)},m0.exports.createHash=m0.exports,m0.exports.Hash=a0}}),mQ=pQ({"node_modules/create-hmac/legacy.js"(t0,m0){var a0=dQ(),e0=cQ().Buffer,r0=A(),i0=e0.alloc(128),$$=64;function Q$($,N){r0.call(this,"digest"),typeof N=="string"&&(N=e0.from(N)),this._alg=$,this._key=N,N.length>$$?N=$(N):N.length<$$&&(N=e0.concat([N,i0],$$));for(var Y$=this._ipad=e0.allocUnsafe($$),O0=this._opad=e0.allocUnsafe($$),Z$=0;Z$<$$;Z$++)Y$[Z$]=N[Z$]^54,O0[Z$]=N[Z$]^92;this._hash=[Y$]}a0(Q$,r0),Q$.prototype._update=function($){this._hash.push($)},Q$.prototype._final=function(){var $=this._alg(e0.concat(this._hash));return this._alg(e0.concat([this._opad,$]))},m0.exports=Q$}}),M0=pQ({"node_modules/create-hash/md5.js"(t0,m0){var a0=_();m0.exports=function(e0){return new a0().update(e0).digest()}}}),aQ=pQ({"node_modules/create-hmac/browser.js"(t0,m0){var a0=dQ(),e0=mQ(),r0=A(),i0=cQ().Buffer,$$=M0(),Q$=V0(),$=tQ(),N=i0.alloc(128);function Y$(O0,Z$){r0.call(this,"digest"),typeof Z$=="string"&&(Z$=i0.from(Z$));var G$=O0==="sha512"||O0==="sha384"?128:64;if(this._alg=O0,this._key=Z$,Z$.length>G$){var V$=O0==="rmd160"?new Q$:$(O0);Z$=V$.update(Z$).digest()}else Z$.length<G$&&(Z$=i0.concat([Z$,N],G$));for(var U$=this._ipad=i0.allocUnsafe(G$),X$=this._opad=i0.allocUnsafe(G$),K$=0;K$<G$;K$++)U$[K$]=Z$[K$]^54,X$[K$]=Z$[K$]^92;this._hash=O0==="rmd160"?new Q$:$(O0),this._hash.update(U$)}a0(Y$,r0),Y$.prototype._update=function(O0){this._hash.update(O0)},Y$.prototype._final=function(){var O0=this._hash.digest(),Z$=this._alg==="rmd160"?new Q$:$(this._alg);return Z$.update(this._opad).update(O0).digest()},m0.exports=function(O0,Z$){return O0=O0.toLowerCase(),O0==="rmd160"||O0==="ripemd160"?new Y$("rmd160",Z$):O0==="md5"?new e0($$,Z$):new Y$(O0,Z$)}}}),eQ=pQ({"node_modules/browserify-sign/browser/algorithms.json"(t0,m0){m0.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),rQ=pQ({"node_modules/browserify-sign/algos.js"(t0,m0){m0.exports=eQ()}}),iQ=pQ({"node_modules/pbkdf2/lib/precondition.js"(t0,m0){var a0=Math.pow(2,30)-1;m0.exports=function(e0,r0){if(typeof e0!="number")throw new TypeError("Iterations not a number");if(e0<0)throw new TypeError("Bad iterations");if(typeof r0!="number")throw new TypeError("Key length not a number");if(r0<0||r0>a0||r0!==r0)throw new TypeError("Bad key length")}}}),$Y=pQ({"node_modules/pbkdf2/lib/default-encoding.js"(t0,m0){var a0;global.process&&global.process.browser?a0="utf-8":global.process&&global.process.version?(e0=parseInt(process.version.split(".")[0].slice(1),10),a0=e0>=6?"utf-8":"binary"):a0="utf-8";var e0;m0.exports=a0}}),QY=pQ({"node_modules/pbkdf2/lib/to-buffer.js"(t0,m0){var a0=cQ().Buffer;m0.exports=function(e0,r0,i0){if(a0.isBuffer(e0))return e0;if(typeof e0=="string")return a0.from(e0,r0);if(ArrayBuffer.isView(e0))return a0.from(e0.buffer);throw new TypeError(i0+" must be a string, a Buffer, a typed array or a DataView")}}}),YY=pQ({"node_modules/pbkdf2/lib/sync-browser.js"(t0,m0){var a0=M0(),e0=V0(),r0=tQ(),i0=cQ().Buffer,$$=iQ(),Q$=$Y(),$=QY(),N=i0.alloc(128),Y$={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function O0(V$,U$,X$){var K$=Z$(V$),I$=V$==="sha512"||V$==="sha384"?128:64;U$.length>I$?U$=K$(U$):U$.length<I$&&(U$=i0.concat([U$,N],I$));for(var Q=i0.allocUnsafe(I$+Y$[V$]),x=i0.allocUnsafe(I$+Y$[V$]),O$=0;O$<I$;O$++)Q[O$]=U$[O$]^54,x[O$]=U$[O$]^92;var J0=i0.allocUnsafe(I$+X$+4);Q.copy(J0,0,0,I$),this.ipad1=J0,this.ipad2=Q,this.opad=x,this.alg=V$,this.blocksize=I$,this.hash=K$,this.size=Y$[V$]}O0.prototype.run=function(V$,U$){V$.copy(U$,this.blocksize);var X$=this.hash(U$);return X$.copy(this.opad,this.blocksize),this.hash(this.opad)};function Z$(V$){function U$(K$){return r0(V$).update(K$).digest()}function X$(K$){return new e0().update(K$).digest()}return V$==="rmd160"||V$==="ripemd160"?X$:V$==="md5"?a0:U$}function G$(V$,U$,X$,K$,I$){$$(X$,K$),V$=$(V$,Q$,"Password"),U$=$(U$,Q$,"Salt"),I$=I$||"sha1";var Q=new O0(I$,V$,U$.length),x=i0.allocUnsafe(K$),O$=i0.allocUnsafe(U$.length+4);U$.copy(O$,0,0,U$.length);for(var J0=0,J$=Y$[I$],F$=Math.ceil(K$/J$),A$=1;A$<=F$;A$++){O$.writeUInt32BE(A$,U$.length);for(var H$=Q.run(O$,Q.ipad1),W$=H$,E$=1;E$<X$;E$++){W$=Q.run(W$,Q.ipad2);for(var T$=0;T$<J$;T$++)H$[T$]^=W$[T$]}H$.copy(x,J0),J0+=J$}return x}m0.exports=G$}}),H=pQ({"node_modules/pbkdf2/lib/async.js"(t0,m0){var a0=cQ().Buffer,e0=iQ(),r0=$Y(),i0=YY(),$$=QY(),Q$,$=wQ.subtle,N={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Y$=[];function O0(X$){if(global.process&&!global.process.browser||!$||!$.importKey||!$.deriveBits)return Promise.resolve(!1);if(Y$[X$]!==void 0)return Y$[X$];Q$=Q$||a0.alloc(8);var K$=V$(Q$,Q$,10,128,X$).then(function(){return!0}).catch(function(){return!1});return Y$[X$]=K$,K$}var Z$;function G$(){return Z$||(global.process&&global.process.nextTick?Z$=global.process.nextTick:global.queueMicrotask?Z$=global.queueMicrotask:global.setImmediate?Z$=global.setImmediate:Z$=global.setTimeout,Z$)}function V$(X$,K$,I$,Q,x){return $.importKey("raw",X$,{name:"PBKDF2"},!1,["deriveBits"]).then(function(O$){return $.deriveBits({name:"PBKDF2",salt:K$,iterations:I$,hash:{name:x}},O$,Q<<3)}).then(function(O$){return a0.from(O$)})}function U$(X$,K$){X$.then(function(I$){G$()(function(){K$(null,I$)})},function(I$){G$()(function(){K$(I$)})})}m0.exports=function(X$,K$,I$,Q,x,O$){typeof x=="function"&&(O$=x,x=void 0),x=x||"sha1";var J0=N[x.toLowerCase()];if(!J0||typeof global.Promise!="function"){G$()(function(){var J$;try{J$=i0(X$,K$,I$,Q,x)}catch(F$){return O$(F$)}O$(null,J$)});return}if(e0(I$,Q),X$=$$(X$,r0,"Password"),K$=$$(K$,r0,"Salt"),typeof O$!="function")throw new Error("No callback provided to pbkdf2");U$(O0(J0).then(function(J$){return J$?V$(X$,K$,I$,Q,J0):i0(X$,K$,I$,Q,x)}),O$)}}}),u=pQ({"node_modules/pbkdf2/browser.js"(t0){t0.pbkdf2=H(),t0.pbkdf2Sync=YY()}}),S0=pQ({"node_modules/des.js/lib/des/utils.js"(t0){t0.readUInt32BE=function(r0,i0){var $$=r0[0+i0]<<24|r0[1+i0]<<16|r0[2+i0]<<8|r0[3+i0];return $$>>>0},t0.writeUInt32BE=function(r0,i0,$$){r0[0+$$]=i0>>>24,r0[1+$$]=i0>>>16&255,r0[2+$$]=i0>>>8&255,r0[3+$$]=i0&255},t0.ip=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=6;Y$>=0;Y$-=2){for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)$<<=1,$|=r0>>>O0+Y$&1}for(var Y$=6;Y$>=0;Y$-=2){for(var O0=1;O0<=25;O0+=8)N<<=1,N|=i0>>>O0+Y$&1;for(var O0=1;O0<=25;O0+=8)N<<=1,N|=r0>>>O0+Y$&1}$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.rip=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=0;Y$<4;Y$++)for(var O0=24;O0>=0;O0-=8)$<<=1,$|=i0>>>O0+Y$&1,$<<=1,$|=r0>>>O0+Y$&1;for(var Y$=4;Y$<8;Y$++)for(var O0=24;O0>=0;O0-=8)N<<=1,N|=i0>>>O0+Y$&1,N<<=1,N|=r0>>>O0+Y$&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.pc1=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=7;Y$>=5;Y$--){for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)$<<=1,$|=r0>>O0+Y$&1}for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>O0+Y$&1;for(var Y$=1;Y$<=3;Y$++){for(var O0=0;O0<=24;O0+=8)N<<=1,N|=i0>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)N<<=1,N|=r0>>O0+Y$&1}for(var O0=0;O0<=24;O0+=8)N<<=1,N|=r0>>O0+Y$&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.r28shl=function(r0,i0){return r0<<i0&268435455|r0>>>28-i0};var m0=[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];t0.pc2=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=m0.length>>>1,O0=0;O0<Y$;O0++)$<<=1,$|=r0>>>m0[O0]&1;for(var O0=Y$;O0<m0.length;O0++)N<<=1,N|=i0>>>m0[O0]&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.expand=function(r0,i0,$$){var Q$=0,$=0;Q$=(r0&1)<<5|r0>>>27;for(var N=23;N>=15;N-=4)Q$<<=6,Q$|=r0>>>N&63;for(var N=11;N>=3;N-=4)$|=r0>>>N&63,$<<=6;$|=(r0&31)<<1|r0>>>31,i0[$$+0]=Q$>>>0,i0[$$+1]=$>>>0};var a0=[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];t0.substitute=function(r0,i0){for(var $$=0,Q$=0;Q$<4;Q$++){var $=r0>>>18-Q$*6&63,N=a0[Q$*64+$];$$<<=4,$$|=N}for(var Q$=0;Q$<4;Q$++){var $=i0>>>18-Q$*6&63,N=a0[256+Q$*64+$];$$<<=4,$$|=N}return $$>>>0};var e0=[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];t0.permute=function(r0){for(var i0=0,$$=0;$$<e0.length;$$++)i0<<=1,i0|=r0>>>e0[$$]&1;return i0>>>0},t0.padSplit=function(r0,i0,$$){for(var Q$=r0.toString(2);Q$.length<i0;)Q$="0"+Q$;for(var $=[],N=0;N<i0;N+=$$)$.push(Q$.slice(N,N+$$));return $.join(" ")}}}),v0=pQ({"node_modules/minimalistic-assert/index.js"(t0,m0){m0.exports=a0;function a0(e0,r0){if(!e0)throw new Error(r0||"Assertion failed")}a0.equal=function(e0,r0,i0){if(e0!=r0)throw new Error(i0||"Assertion failed: "+e0+" != "+r0)}}}),ZY=pQ({"node_modules/des.js/lib/des/cipher.js"(t0,m0){var a0=v0();function e0(r0){this.options=r0,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}m0.exports=e0,e0.prototype._init=function(){},e0.prototype.update=function(r0){return r0.length===0?[]:this.type==="decrypt"?this._updateDecrypt(r0):this._updateEncrypt(r0)},e0.prototype._buffer=function(r0,i0){for(var $$=Math.min(this.buffer.length-this.bufferOff,r0.length-i0),Q$=0;Q$<$$;Q$++)this.buffer[this.bufferOff+Q$]=r0[i0+Q$];return this.bufferOff+=$$,$$},e0.prototype._flushBuffer=function(r0,i0){return this._update(this.buffer,0,r0,i0),this.bufferOff=0,this.blockSize},e0.prototype._updateEncrypt=function(r0){var i0=0,$$=0,Q$=(this.bufferOff+r0.length)/this.blockSize|0,$=new Array(Q$*this.blockSize);this.bufferOff!==0&&(i0+=this._buffer(r0,i0),this.bufferOff===this.buffer.length&&($$+=this._flushBuffer($,$$)));for(var N=r0.length-(r0.length-i0)%this.blockSize;i0<N;i0+=this.blockSize)this._update(r0,i0,$,$$),$$+=this.blockSize;for(;i0<r0.length;i0++,this.bufferOff++)this.buffer[this.bufferOff]=r0[i0];return $},e0.prototype._updateDecrypt=function(r0){for(var i0=0,$$=0,Q$=Math.ceil((this.bufferOff+r0.length)/this.blockSize)-1,$=new Array(Q$*this.blockSize);Q$>0;Q$--)i0+=this._buffer(r0,i0),$$+=this._flushBuffer($,$$);return i0+=this._buffer(r0,i0),$},e0.prototype.final=function(r0){var i0;r0&&(i0=this.update(r0));var $$;return this.type==="encrypt"?$$=this._finalEncrypt():$$=this._finalDecrypt(),i0?i0.concat($$):$$},e0.prototype._pad=function(r0,i0){if(i0===0)return!1;for(;i0<r0.length;)r0[i0++]=0;return!0},e0.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var r0=new Array(this.blockSize);return this._update(this.buffer,0,r0,0),r0},e0.prototype._unpad=function(r0){return r0},e0.prototype._finalDecrypt=function(){a0.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var r0=new Array(this.blockSize);return this._flushBuffer(r0,0),this._unpad(r0)}}}),GY=pQ({"node_modules/des.js/lib/des/des.js"(t0,m0){var a0=v0(),e0=dQ(),r0=S0(),i0=ZY();function $$(){this.tmp=new Array(2),this.keys=null}function Q$(N){i0.call(this,N);var Y$=new $$;this._desState=Y$,this.deriveKeys(Y$,N.key)}e0(Q$,i0),m0.exports=Q$,Q$.create=function(N){return new Q$(N)};var $=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Q$.prototype.deriveKeys=function(N,Y$){N.keys=new Array(32),a0.equal(Y$.length,this.blockSize,"Invalid key length");var O0=r0.readUInt32BE(Y$,0),Z$=r0.readUInt32BE(Y$,4);r0.pc1(O0,Z$,N.tmp,0),O0=N.tmp[0],Z$=N.tmp[1];for(var G$=0;G$<N.keys.length;G$+=2){var V$=$[G$>>>1];O0=r0.r28shl(O0,V$),Z$=r0.r28shl(Z$,V$),r0.pc2(O0,Z$,N.keys,G$)}},Q$.prototype._update=function(N,Y$,O0,Z$){var G$=this._desState,V$=r0.readUInt32BE(N,Y$),U$=r0.readUInt32BE(N,Y$+4);r0.ip(V$,U$,G$.tmp,0),V$=G$.tmp[0],U$=G$.tmp[1],this.type==="encrypt"?this._encrypt(G$,V$,U$,G$.tmp,0):this._decrypt(G$,V$,U$,G$.tmp,0),V$=G$.tmp[0],U$=G$.tmp[1],r0.writeUInt32BE(O0,V$,Z$),r0.writeUInt32BE(O0,U$,Z$+4)},Q$.prototype._pad=function(N,Y$){for(var O0=N.length-Y$,Z$=Y$;Z$<N.length;Z$++)N[Z$]=O0;return!0},Q$.prototype._unpad=function(N){for(var Y$=N[N.length-1],O0=N.length-Y$;O0<N.length;O0++)a0.equal(N[O0],Y$);return N.slice(0,N.length-Y$)},Q$.prototype._encrypt=function(N,Y$,O0,Z$,G$){for(var V$=Y$,U$=O0,X$=0;X$<N.keys.length;X$+=2){var K$=N.keys[X$],I$=N.keys[X$+1];r0.expand(U$,N.tmp,0),K$^=N.tmp[0],I$^=N.tmp[1];var Q=r0.substitute(K$,I$),x=r0.permute(Q),O$=U$;U$=(V$^x)>>>0,V$=O$}r0.rip(U$,V$,Z$,G$)},Q$.prototype._decrypt=function(N,Y$,O0,Z$,G$){for(var V$=O0,U$=Y$,X$=N.keys.length-2;X$>=0;X$-=2){var K$=N.keys[X$],I$=N.keys[X$+1];r0.expand(V$,N.tmp,0),K$^=N.tmp[0],I$^=N.tmp[1];var Q=r0.substitute(K$,I$),x=r0.permute(Q),O$=V$;V$=(U$^x)>>>0,U$=O$}r0.rip(V$,U$,Z$,G$)}}}),VY=pQ({"node_modules/des.js/lib/des/cbc.js"(t0){var m0=v0(),a0=dQ(),e0={};function r0($$){m0.equal($$.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Q$=0;Q$<this.iv.length;Q$++)this.iv[Q$]=$$[Q$]}function i0($$){function Q$(O0){$$.call(this,O0),this._cbcInit()}a0(Q$,$$);for(var $=Object.keys(e0),N=0;N<$.length;N++){var Y$=$[N];Q$.prototype[Y$]=e0[Y$]}return Q$.create=function(O0){return new Q$(O0)},Q$}t0.instantiate=i0,e0._cbcInit=function(){var $$=new r0(this.options.iv);this._cbcState=$$},e0._update=function($$,Q$,$,N){var Y$=this._cbcState,O0=this.constructor.super_.prototype,Z$=Y$.iv;if(this.type==="encrypt"){for(var G$=0;G$<this.blockSize;G$++)Z$[G$]^=$$[Q$+G$];O0._update.call(this,Z$,0,$,N);for(var G$=0;G$<this.blockSize;G$++)Z$[G$]=$[N+G$]}else{O0._update.call(this,$$,Q$,$,N);for(var G$=0;G$<this.blockSize;G$++)$[N+G$]^=Z$[G$];for(var G$=0;G$<this.blockSize;G$++)Z$[G$]=$$[Q$+G$]}}}}),UY=pQ({"node_modules/des.js/lib/des/ede.js"(t0,m0){var a0=v0(),e0=dQ(),r0=ZY(),i0=GY();function $$($,N){a0.equal(N.length,24,"Invalid key length");var Y$=N.slice(0,8),O0=N.slice(8,16),Z$=N.slice(16,24);$==="encrypt"?this.ciphers=[i0.create({type:"encrypt",key:Y$}),i0.create({type:"decrypt",key:O0}),i0.create({type:"encrypt",key:Z$})]:this.ciphers=[i0.create({type:"decrypt",key:Z$}),i0.create({type:"encrypt",key:O0}),i0.create({type:"decrypt",key:Y$})]}function Q$($){r0.call(this,$);var N=new $$(this.type,this.options.key);this._edeState=N}e0(Q$,r0),m0.exports=Q$,Q$.create=function($){return new Q$($)},Q$.prototype._update=function($,N,Y$,O0){var Z$=this._edeState;Z$.ciphers[0]._update($,N,Y$,O0),Z$.ciphers[1]._update(Y$,O0,Y$,O0),Z$.ciphers[2]._update(Y$,O0,Y$,O0)},Q$.prototype._pad=i0.prototype._pad,Q$.prototype._unpad=i0.prototype._unpad}}),XY=pQ({"node_modules/des.js/lib/des.js"(t0){t0.utils=S0(),t0.Cipher=ZY(),t0.DES=GY(),t0.CBC=VY(),t0.EDE=UY()}}),KY=pQ({"node_modules/browserify-des/index.js"(t0,m0){var a0=A(),e0=XY(),r0=dQ(),i0=cQ().Buffer,$$={"des-ede3-cbc":e0.CBC.instantiate(e0.EDE),"des-ede3":e0.EDE,"des-ede-cbc":e0.CBC.instantiate(e0.EDE),"des-ede":e0.EDE,"des-cbc":e0.CBC.instantiate(e0.DES),"des-ecb":e0.DES};$$.des=$$["des-cbc"],$$.des3=$$["des-ede3-cbc"],m0.exports=Q$,r0(Q$,a0);function Q$($){a0.call(this);var N=$.mode.toLowerCase(),Y$=$$[N],O0;$.decrypt?O0="decrypt":O0="encrypt";var Z$=$.key;i0.isBuffer(Z$)||(Z$=i0.from(Z$)),(N==="des-ede"||N==="des-ede-cbc")&&(Z$=i0.concat([Z$,Z$.slice(0,8)]));var G$=$.iv;i0.isBuffer(G$)||(G$=i0.from(G$)),this._des=Y$.create({key:Z$,iv:G$,type:O0})}Q$.prototype._update=function($){return i0.from(this._des.update($))},Q$.prototype._final=function(){return i0.from(this._des.final())}}}),IY=pQ({"node_modules/browserify-aes/modes/ecb.js"(t0){t0.encrypt=function(m0,a0){return m0._cipher.encryptBlock(a0)},t0.decrypt=function(m0,a0){return m0._cipher.decryptBlock(a0)}}}),W=pQ({"node_modules/buffer-xor/index.js"(t0,m0){m0.exports=function(a0,e0){for(var r0=Math.min(a0.length,e0.length),i0=new G0(r0),$$=0;$$<r0;++$$)i0[$$]=a0[$$]^e0[$$];return i0}}}),n=pQ({"node_modules/browserify-aes/modes/cbc.js"(t0){var m0=W();t0.encrypt=function(a0,e0){var r0=m0(e0,a0._prev);return a0._prev=a0._cipher.encryptBlock(r0),a0._prev},t0.decrypt=function(a0,e0){var r0=a0._prev;a0._prev=e0;var i0=a0._cipher.decryptBlock(e0);return m0(i0,r0)}}}),q0=pQ({"node_modules/browserify-aes/modes/cfb.js"(t0){var m0=cQ().Buffer,a0=W();function e0(r0,i0,$$){var Q$=i0.length,$=a0(i0,r0._cache);return r0._cache=r0._cache.slice(Q$),r0._prev=m0.concat([r0._prev,$$?i0:$]),$}t0.encrypt=function(r0,i0,$$){for(var Q$=m0.allocUnsafe(0),$;i0.length;)if(r0._cache.length===0&&(r0._cache=r0._cipher.encryptBlock(r0._prev),r0._prev=m0.allocUnsafe(0)),r0._cache.length<=i0.length)$=r0._cache.length,Q$=m0.concat([Q$,e0(r0,i0.slice(0,$),$$)]),i0=i0.slice($);else{Q$=m0.concat([Q$,e0(r0,i0,$$)]);break}return Q$}}}),j0=pQ({"node_modules/browserify-aes/modes/cfb8.js"(t0){var m0=cQ().Buffer;function a0(e0,r0,i0){var $$=e0._cipher.encryptBlock(e0._prev),Q$=$$[0]^r0;return e0._prev=m0.concat([e0._prev.slice(1),m0.from([i0?r0:Q$])]),Q$}t0.encrypt=function(e0,r0,i0){for(var $$=r0.length,Q$=m0.allocUnsafe($$),$=-1;++$<$$;)Q$[$]=a0(e0,r0[$],i0);return Q$}}}),OY=pQ({"node_modules/browserify-aes/modes/cfb1.js"(t0){var m0=cQ().Buffer;function a0(r0,i0,$$){for(var Q$,$=-1,N=8,Y$=0,O0,Z$;++$<N;)Q$=r0._cipher.encryptBlock(r0._prev),O0=i0&1<<7-$?128:0,Z$=Q$[0]^O0,Y$+=(Z$&128)>>$%8,r0._prev=e0(r0._prev,$$?O0:Z$);return Y$}function e0(r0,i0){var $$=r0.length,Q$=-1,$=m0.allocUnsafe(r0.length);for(r0=m0.concat([r0,m0.from([i0])]);++Q$<$$;)$[Q$]=r0[Q$]<<1|r0[Q$+1]>>7;return $}t0.encrypt=function(r0,i0,$$){for(var Q$=i0.length,$=m0.allocUnsafe(Q$),N=-1;++N<Q$;)$[N]=a0(r0,i0[N],$$);return $}}}),JY=pQ({"node_modules/browserify-aes/modes/ofb.js"(t0){var m0=W();function a0(e0){return e0._prev=e0._cipher.encryptBlock(e0._prev),e0._prev}t0.encrypt=function(e0,r0){for(;e0._cache.length<r0.length;)e0._cache=G0.concat([e0._cache,a0(e0)]);var i0=e0._cache.slice(0,r0.length);return e0._cache=e0._cache.slice(r0.length),m0(r0,i0)}}}),FY=pQ({"node_modules/browserify-aes/incr32.js"(t0,m0){function a0(e0){for(var r0=e0.length,i0;r0--;)if(i0=e0.readUInt8(r0),i0===255)e0.writeUInt8(0,r0);else{i0++,e0.writeUInt8(i0,r0);break}}m0.exports=a0}}),jQ=pQ({"node_modules/browserify-aes/modes/ctr.js"(t0){var m0=W(),a0=cQ().Buffer,e0=FY();function r0($$){var Q$=$$._cipher.encryptBlockRaw($$._prev);return e0($$._prev),Q$}var i0=16;t0.encrypt=function($$,Q$){var $=Math.ceil(Q$.length/i0),N=$$._cache.length;$$._cache=a0.concat([$$._cache,a0.allocUnsafe($*i0)]);for(var Y$=0;Y$<$;Y$++){var O0=r0($$),Z$=N+Y$*i0;$$._cache.writeUInt32BE(O0[0],Z$+0),$$._cache.writeUInt32BE(O0[1],Z$+4),$$._cache.writeUInt32BE(O0[2],Z$+8),$$._cache.writeUInt32BE(O0[3],Z$+12)}var G$=$$._cache.slice(0,Q$.length);return $$._cache=$$._cache.slice(Q$.length),m0(Q$,G$)}}}),AY=pQ({"node_modules/browserify-aes/modes/list.json"(t0,m0){m0.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),HY=pQ({"node_modules/browserify-aes/modes/index.js"(t0,m0){var a0={ECB:IY(),CBC:n(),CFB:q0(),CFB8:j0(),CFB1:OY(),OFB:JY(),CTR:jQ(),GCM:jQ()},e0=AY();for(r0 in e0)e0[r0].module=a0[e0[r0].mode];var r0;m0.exports=e0}}),WY=pQ({"node_modules/browserify-aes/aes.js"(t0,m0){var a0=cQ().Buffer;function e0(N){a0.isBuffer(N)||(N=a0.from(N));for(var Y$=N.length/4|0,O0=new Array(Y$),Z$=0;Z$<Y$;Z$++)O0[Z$]=N.readUInt32BE(Z$*4);return O0}function r0(N){for(var Y$=0;Y$<N.length;N++)N[Y$]=0}function i0(N,Y$,O0,Z$,G$){for(var V$=O0[0],U$=O0[1],X$=O0[2],K$=O0[3],I$=N[0]^Y$[0],Q=N[1]^Y$[1],x=N[2]^Y$[2],O$=N[3]^Y$[3],J0,J$,F$,A$,H$=4,W$=1;W$<G$;W$++)J0=V$[I$>>>24]^U$[Q>>>16&255]^X$[x>>>8&255]^K$[O$&255]^Y$[H$++],J$=V$[Q>>>24]^U$[x>>>16&255]^X$[O$>>>8&255]^K$[I$&255]^Y$[H$++],F$=V$[x>>>24]^U$[O$>>>16&255]^X$[I$>>>8&255]^K$[Q&255]^Y$[H$++],A$=V$[O$>>>24]^U$[I$>>>16&255]^X$[Q>>>8&255]^K$[x&255]^Y$[H$++],I$=J0,Q=J$,x=F$,O$=A$;return J0=(Z$[I$>>>24]<<24|Z$[Q>>>16&255]<<16|Z$[x>>>8&255]<<8|Z$[O$&255])^Y$[H$++],J$=(Z$[Q>>>24]<<24|Z$[x>>>16&255]<<16|Z$[O$>>>8&255]<<8|Z$[I$&255])^Y$[H$++],F$=(Z$[x>>>24]<<24|Z$[O$>>>16&255]<<16|Z$[I$>>>8&255]<<8|Z$[Q&255])^Y$[H$++],A$=(Z$[O$>>>24]<<24|Z$[I$>>>16&255]<<16|Z$[Q>>>8&255]<<8|Z$[x&255])^Y$[H$++],J0=J0>>>0,J$=J$>>>0,F$=F$>>>0,A$=A$>>>0,[J0,J$,F$,A$]}var $$=[0,1,2,4,8,16,32,64,128,27,54],Q$=function(){for(var N=new Array(256),Y$=0;Y$<256;Y$++)Y$<128?N[Y$]=Y$<<1:N[Y$]=Y$<<1^283;for(var O0=[],Z$=[],G$=[[],[],[],[]],V$=[[],[],[],[]],U$=0,X$=0,K$=0;K$<256;++K$){var I$=X$^X$<<1^X$<<2^X$<<3^X$<<4;I$=I$>>>8^I$&255^99,O0[U$]=I$,Z$[I$]=U$;var Q=N[U$],x=N[Q],O$=N[x],J0=N[I$]*257^I$*16843008;G$[0][U$]=J0<<24|J0>>>8,G$[1][U$]=J0<<16|J0>>>16,G$[2][U$]=J0<<8|J0>>>24,G$[3][U$]=J0,J0=O$*16843009^x*65537^Q*257^U$*16843008,V$[0][I$]=J0<<24|J0>>>8,V$[1][I$]=J0<<16|J0>>>16,V$[2][I$]=J0<<8|J0>>>24,V$[3][I$]=J0,U$===0?U$=X$=1:(U$=Q^N[N[N[O$^Q]]],X$^=N[N[X$]])}return{SBOX:O0,INV_SBOX:Z$,SUB_MIX:G$,INV_SUB_MIX:V$}}();function $(N){this._key=e0(N),this._reset()}$.blockSize=16,$.keySize=32,$.prototype.blockSize=$.blockSize,$.prototype.keySize=$.keySize,$.prototype._reset=function(){for(var N=this._key,Y$=N.length,O0=Y$+6,Z$=(O0+1)*4,G$=[],V$=0;V$<Y$;V$++)G$[V$]=N[V$];for(V$=Y$;V$<Z$;V$++){var U$=G$[V$-1];V$%Y$===0?(U$=U$<<8|U$>>>24,U$=Q$.SBOX[U$>>>24]<<24|Q$.SBOX[U$>>>16&255]<<16|Q$.SBOX[U$>>>8&255]<<8|Q$.SBOX[U$&255],U$^=$$[V$/Y$|0]<<24):Y$>6&&V$%Y$===4&&(U$=Q$.SBOX[U$>>>24]<<24|Q$.SBOX[U$>>>16&255]<<16|Q$.SBOX[U$>>>8&255]<<8|Q$.SBOX[U$&255]),G$[V$]=G$[V$-Y$]^U$}for(var X$=[],K$=0;K$<Z$;K$++){var I$=Z$-K$,Q=G$[I$-(K$%4?0:4)];K$<4||I$<=4?X$[K$]=Q:X$[K$]=Q$.INV_SUB_MIX[0][Q$.SBOX[Q>>>24]]^Q$.INV_SUB_MIX[1][Q$.SBOX[Q>>>16&255]]^Q$.INV_SUB_MIX[2][Q$.SBOX[Q>>>8&255]]^Q$.INV_SUB_MIX[3][Q$.SBOX[Q&255]]}this._nRounds=O0,this._keySchedule=G$,this._invKeySchedule=X$},$.prototype.encryptBlockRaw=function(N){return N=e0(N),i0(N,this._keySchedule,Q$.SUB_MIX,Q$.SBOX,this._nRounds)},$.prototype.encryptBlock=function(N){var Y$=this.encryptBlockRaw(N),O0=a0.allocUnsafe(16);return O0.writeUInt32BE(Y$[0],0),O0.writeUInt32BE(Y$[1],4),O0.writeUInt32BE(Y$[2],8),O0.writeUInt32BE(Y$[3],12),O0},$.prototype.decryptBlock=function(N){N=e0(N);var Y$=N[1];N[1]=N[3],N[3]=Y$;var O0=i0(N,this._invKeySchedule,Q$.INV_SUB_MIX,Q$.INV_SBOX,this._nRounds),Z$=a0.allocUnsafe(16);return Z$.writeUInt32BE(O0[0],0),Z$.writeUInt32BE(O0[3],4),Z$.writeUInt32BE(O0[2],8),Z$.writeUInt32BE(O0[1],12),Z$},$.prototype.scrub=function(){r0(this._keySchedule),r0(this._invKeySchedule),r0(this._key)},m0.exports.AES=$}}),EY=pQ({"node_modules/browserify-aes/ghash.js"(t0,m0){var a0=cQ().Buffer,e0=a0.alloc(16,0);function r0(Q$){return[Q$.readUInt32BE(0),Q$.readUInt32BE(4),Q$.readUInt32BE(8),Q$.readUInt32BE(12)]}function i0(Q$){var $=a0.allocUnsafe(16);return $.writeUInt32BE(Q$[0]>>>0,0),$.writeUInt32BE(Q$[1]>>>0,4),$.writeUInt32BE(Q$[2]>>>0,8),$.writeUInt32BE(Q$[3]>>>0,12),$}function $$(Q$){this.h=Q$,this.state=a0.alloc(16,0),this.cache=a0.allocUnsafe(0)}$$.prototype.ghash=function(Q$){for(var $=-1;++$<Q$.length;)this.state[$]^=Q$[$];this._multiply()},$$.prototype._multiply=function(){for(var Q$=r0(this.h),$=[0,0,0,0],N,Y$,O0,Z$=-1;++Z$<128;){for(Y$=(this.state[~~(Z$/8)]&1<<7-Z$%8)!==0,Y$&&($[0]^=Q$[0],$[1]^=Q$[1],$[2]^=Q$[2],$[3]^=Q$[3]),O0=(Q$[3]&1)!==0,N=3;N>0;N--)Q$[N]=Q$[N]>>>1|(Q$[N-1]&1)<<31;Q$[0]=Q$[0]>>>1,O0&&(Q$[0]=Q$[0]^225<<24)}this.state=i0($)},$$.prototype.update=function(Q$){this.cache=a0.concat([this.cache,Q$]);for(var $;this.cache.length>=16;)$=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash($)},$$.prototype.final=function(Q$,$){return this.cache.length&&this.ghash(a0.concat([this.cache,e0],16)),this.ghash(i0([0,Q$,0,$])),this.state},m0.exports=$$}}),E=pQ({"node_modules/browserify-aes/authCipher.js"(t0,m0){var a0=WY(),e0=cQ().Buffer,r0=A(),i0=dQ(),$$=EY(),Q$=W(),$=FY();function N(Z$,G$){var V$=0;Z$.length!==G$.length&&V$++;for(var U$=Math.min(Z$.length,G$.length),X$=0;X$<U$;++X$)V$+=Z$[X$]^G$[X$];return V$}function Y$(Z$,G$,V$){if(G$.length===12)return Z$._finID=e0.concat([G$,e0.from([0,0,0,1])]),e0.concat([G$,e0.from([0,0,0,2])]);var U$=new $$(V$),X$=G$.length,K$=X$%16;U$.update(G$),K$&&(K$=16-K$,U$.update(e0.alloc(K$,0))),U$.update(e0.alloc(8,0));var I$=X$*8,Q=e0.alloc(8);Q.writeUIntBE(I$,0,8),U$.update(Q),Z$._finID=U$.state;var x=e0.from(Z$._finID);return $(x),x}function O0(Z$,G$,V$,U$){r0.call(this);var X$=e0.alloc(4,0);this._cipher=new a0.AES(G$);var K$=this._cipher.encryptBlock(X$);this._ghash=new $$(K$),V$=Y$(this,V$,K$),this._prev=e0.from(V$),this._cache=e0.allocUnsafe(0),this._secCache=e0.allocUnsafe(0),this._decrypt=U$,this._alen=0,this._len=0,this._mode=Z$,this._authTag=null,this._called=!1}i0(O0,r0),O0.prototype._update=function(Z$){if(!this._called&&this._alen){var G$=16-this._alen%16;G$<16&&(G$=e0.alloc(G$,0),this._ghash.update(G$))}this._called=!0;var V$=this._mode.encrypt(this,Z$);return this._decrypt?this._ghash.update(Z$):this._ghash.update(V$),this._len+=Z$.length,V$},O0.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var Z$=Q$(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&N(Z$,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=Z$,this._cipher.scrub()},O0.prototype.getAuthTag=function(){if(this._decrypt||!e0.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},O0.prototype.setAuthTag=function(Z$){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=Z$},O0.prototype.setAAD=function(Z$){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(Z$),this._alen+=Z$.length},m0.exports=O0}}),s=pQ({"node_modules/browserify-aes/streamCipher.js"(t0,m0){var a0=WY(),e0=cQ().Buffer,r0=A(),i0=dQ();function $$(Q$,$,N,Y$){r0.call(this),this._cipher=new a0.AES($),this._prev=e0.from(N),this._cache=e0.allocUnsafe(0),this._secCache=e0.allocUnsafe(0),this._decrypt=Y$,this._mode=Q$}i0($$,r0),$$.prototype._update=function(Q$){return this._mode.encrypt(this,Q$,this._decrypt)},$$.prototype._final=function(){this._cipher.scrub()},m0.exports=$$}}),k0=pQ({"node_modules/evp_bytestokey/index.js"(t0,m0){var a0=cQ().Buffer,e0=_();function r0(i0,$$,Q$,$){if(a0.isBuffer(i0)||(i0=a0.from(i0,"binary")),$$&&(a0.isBuffer($$)||($$=a0.from($$,"binary")),$$.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=Q$/8,Y$=a0.alloc(N),O0=a0.alloc($||0),Z$=a0.alloc(0);N>0||$>0;){var G$=new e0;G$.update(Z$),G$.update(i0),$$&&G$.update($$),Z$=G$.digest();var V$=0;if(N>0){var U$=Y$.length-N;V$=Math.min(N,Z$.length),Z$.copy(Y$,U$,0,V$),N-=V$}if(V$<Z$.length&&$>0){var X$=O0.length-$,K$=Math.min($,Z$.length-V$);Z$.copy(O0,X$,V$,V$+K$),$-=K$}}return Z$.fill(0),{key:Y$,iv:O0}}m0.exports=r0}}),g0=pQ({"node_modules/browserify-aes/encrypter.js"(t0){var m0=HY(),a0=E(),e0=cQ().Buffer,r0=s(),i0=A(),$$=WY(),Q$=k0(),$=dQ();function N(V$,U$,X$){i0.call(this),this._cache=new O0,this._cipher=new $$.AES(U$),this._prev=e0.from(X$),this._mode=V$,this._autopadding=!0}$(N,i0),N.prototype._update=function(V$){this._cache.add(V$);for(var U$,X$,K$=[];U$=this._cache.get();)X$=this._mode.encrypt(this,U$),K$.push(X$);return e0.concat(K$)};var Y$=e0.alloc(16,16);N.prototype._final=function(){var V$=this._cache.flush();if(this._autopadding)return V$=this._mode.encrypt(this,V$),this._cipher.scrub(),V$;if(!V$.equals(Y$))throw this._cipher.scrub(),new Error("data not multiple of block length")},N.prototype.setAutoPadding=function(V$){return this._autopadding=!!V$,this};function O0(){this.cache=e0.allocUnsafe(0)}O0.prototype.add=function(V$){this.cache=e0.concat([this.cache,V$])},O0.prototype.get=function(){if(this.cache.length>15){var V$=this.cache.slice(0,16);return this.cache=this.cache.slice(16),V$}return null},O0.prototype.flush=function(){for(var V$=16-this.cache.length,U$=e0.allocUnsafe(V$),X$=-1;++X$<V$;)U$.writeUInt8(V$,X$);return e0.concat([this.cache,U$])};function Z$(V$,U$,X$){var K$=m0[V$.toLowerCase()];if(!K$)throw new TypeError("invalid suite type");if(typeof U$=="string"&&(U$=e0.from(U$)),U$.length!==K$.key/8)throw new TypeError("invalid key length "+U$.length);if(typeof X$=="string"&&(X$=e0.from(X$)),K$.mode!=="GCM"&&X$.length!==K$.iv)throw new TypeError("invalid iv length "+X$.length);return K$.type==="stream"?new r0(K$.module,U$,X$):K$.type==="auth"?new a0(K$.module,U$,X$):new N(K$.module,U$,X$)}function G$(V$,U$){var X$=m0[V$.toLowerCase()];if(!X$)throw new TypeError("invalid suite type");var K$=Q$(U$,!1,X$.key,X$.iv);return Z$(V$,K$.key,K$.iv)}t0.createCipheriv=Z$,t0.createCipher=G$}}),TY=pQ({"node_modules/browserify-aes/decrypter.js"(t0){var m0=E(),a0=cQ().Buffer,e0=HY(),r0=s(),i0=A(),$$=WY(),Q$=k0(),$=dQ();function N(V$,U$,X$){i0.call(this),this._cache=new Y$,this._last=void 0,this._cipher=new $$.AES(U$),this._prev=a0.from(X$),this._mode=V$,this._autopadding=!0}$(N,i0),N.prototype._update=function(V$){this._cache.add(V$);for(var U$,X$,K$=[];U$=this._cache.get(this._autopadding);)X$=this._mode.decrypt(this,U$),K$.push(X$);return a0.concat(K$)},N.prototype._final=function(){var V$=this._cache.flush();if(this._autopadding)return O0(this._mode.decrypt(this,V$));if(V$)throw new Error("data not multiple of block length")},N.prototype.setAutoPadding=function(V$){return this._autopadding=!!V$,this};function Y$(){this.cache=a0.allocUnsafe(0)}Y$.prototype.add=function(V$){this.cache=a0.concat([this.cache,V$])},Y$.prototype.get=function(V$){var U$;if(V$){if(this.cache.length>16)return U$=this.cache.slice(0,16),this.cache=this.cache.slice(16),U$}else if(this.cache.length>=16)return U$=this.cache.slice(0,16),this.cache=this.cache.slice(16),U$;return null},Y$.prototype.flush=function(){if(this.cache.length)return this.cache};function O0(V$){var U$=V$[15];if(U$<1||U$>16)throw new Error("unable to decrypt data");for(var X$=-1;++X$<U$;)if(V$[X$+(16-U$)]!==U$)throw new Error("unable to decrypt data");if(U$!==16)return V$.slice(0,16-U$)}function Z$(V$,U$,X$){var K$=e0[V$.toLowerCase()];if(!K$)throw new TypeError("invalid suite type");if(typeof X$=="string"&&(X$=a0.from(X$)),K$.mode!=="GCM"&&X$.length!==K$.iv)throw new TypeError("invalid iv length "+X$.length);if(typeof U$=="string"&&(U$=a0.from(U$)),U$.length!==K$.key/8)throw new TypeError("invalid key length "+U$.length);return K$.type==="stream"?new r0(K$.module,U$,X$,!0):K$.type==="auth"?new m0(K$.module,U$,X$,!0):new N(K$.module,U$,X$)}function G$(V$,U$){var X$=e0[V$.toLowerCase()];if(!X$)throw new TypeError("invalid suite type");var K$=Q$(U$,!1,X$.key,X$.iv);return Z$(V$,K$.key,K$.iv)}t0.createDecipher=G$,t0.createDecipheriv=Z$}}),DY=pQ({"node_modules/browserify-aes/browser.js"(t0){var m0=g0(),a0=TY(),e0=AY();function r0(){return Object.keys(e0)}t0.createCipher=t0.Cipher=m0.createCipher,t0.createCipheriv=t0.Cipheriv=m0.createCipheriv,t0.createDecipher=t0.Decipher=a0.createDecipher,t0.createDecipheriv=t0.Decipheriv=a0.createDecipheriv,t0.listCiphers=t0.getCiphers=r0}}),CY=pQ({"node_modules/browserify-des/modes.js"(t0){t0["des-ecb"]={key:8,iv:0},t0["des-cbc"]=t0.des={key:8,iv:8},t0["des-ede3-cbc"]=t0.des3={key:24,iv:8},t0["des-ede3"]={key:24,iv:0},t0["des-ede-cbc"]={key:16,iv:8},t0["des-ede"]={key:16,iv:0}}}),LY=pQ({"node_modules/browserify-cipher/browser.js"(t0){var m0=KY(),a0=DY(),e0=HY(),r0=CY(),i0=k0();function $$(O0,Z$){O0=O0.toLowerCase();var G$,V$;if(e0[O0])G$=e0[O0].key,V$=e0[O0].iv;else if(r0[O0])G$=r0[O0].key*8,V$=r0[O0].iv;else throw new TypeError("invalid suite type");var U$=i0(Z$,!1,G$,V$);return $(O0,U$.key,U$.iv)}function Q$(O0,Z$){O0=O0.toLowerCase();var G$,V$;if(e0[O0])G$=e0[O0].key,V$=e0[O0].iv;else if(r0[O0])G$=r0[O0].key*8,V$=r0[O0].iv;else throw new TypeError("invalid suite type");var U$=i0(Z$,!1,G$,V$);return N(O0,U$.key,U$.iv)}function $(O0,Z$,G$){if(O0=O0.toLowerCase(),e0[O0])return a0.createCipheriv(O0,Z$,G$);if(r0[O0])return new m0({key:Z$,iv:G$,mode:O0});throw new TypeError("invalid suite type")}function N(O0,Z$,G$){if(O0=O0.toLowerCase(),e0[O0])return a0.createDecipheriv(O0,Z$,G$);if(r0[O0])return new m0({key:Z$,iv:G$,mode:O0,decrypt:!0});throw new TypeError("invalid suite type")}function Y$(){return Object.keys(r0).concat(a0.getCiphers())}t0.createCipher=t0.Cipher=$$,t0.createCipheriv=t0.Cipheriv=$,t0.createDecipher=t0.Decipher=Q$,t0.createDecipheriv=t0.Decipheriv=N,t0.listCiphers=t0.getCiphers=Y$}}),RY=pQ({"node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),PY=pQ({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),zY=pQ({"(disabled):node_modules/crypto-browserify/index.js"(){}}),T=pQ({"node_modules/brorand/index.js"(t0,m0){var a0;m0.exports=function(r0){return a0||(a0=new e0(null)),a0.generate(r0)};function e0(r0){this.rand=r0}m0.exports.Rand=e0,e0.prototype.generate=function(r0){return this._rand(r0)},e0.prototype._rand=function(r0){var i0=new G0(r0);return qQ.getRandomValues(i0),i0}}}),t=pQ({"node_modules/miller-rabin/lib/mr.js"(t0,m0){var a0=PY(),e0=T();function r0(i0){this.rand=i0||new e0.Rand}m0.exports=r0,r0.create=function(i0){return new r0(i0)},r0.prototype._randbelow=function(i0){var $$=i0.bitLength(),Q$=Math.ceil($$/8);do var $=new a0(this.rand.generate(Q$));while($.cmp(i0)>=0);return $},r0.prototype._randrange=function(i0,$$){var Q$=$$.sub(i0);return i0.add(this._randbelow(Q$))},r0.prototype.test=function(i0,$$,Q$){var $=i0.bitLength(),N=a0.mont(i0),Y$=new a0(1).toRed(N);$$||($$=Math.max(1,$/48|0));for(var O0=i0.subn(1),Z$=0;!O0.testn(Z$);Z$++);for(var G$=i0.shrn(Z$),V$=O0.toRed(N),U$=!0;$$>0;$$--){var X$=this._randrange(new a0(2),O0);Q$&&Q$(X$);var K$=X$.toRed(N).redPow(G$);if(!(K$.cmp(Y$)===0||K$.cmp(V$)===0)){for(var I$=1;I$<Z$;I$++){if(K$=K$.redSqr(),K$.cmp(Y$)===0)return!1;if(K$.cmp(V$)===0)break}if(I$===Z$)return!1}}return U$},r0.prototype.getDivisor=function(i0,$$){var Q$=i0.bitLength(),$=a0.mont(i0),N=new a0(1).toRed($);$$||($$=Math.max(1,Q$/48|0));for(var Y$=i0.subn(1),O0=0;!Y$.testn(O0);O0++);for(var Z$=i0.shrn(O0),G$=Y$.toRed($);$$>0;$$--){var V$=this._randrange(new a0(2),Y$),U$=i0.gcd(V$);if(U$.cmpn(1)!==0)return U$;var X$=V$.toRed($).redPow(Z$);if(!(X$.cmp(N)===0||X$.cmp(G$)===0)){for(var K$=1;K$<O0;K$++){if(X$=X$.redSqr(),X$.cmp(N)===0)return X$.fromRed().subn(1).gcd(i0);if(X$.cmp(G$)===0)break}if(K$===O0)return X$=X$.redSqr(),X$.fromRed().subn(1).gcd(i0)}}return!1}}}),_0=pQ({"node_modules/diffie-hellman/lib/generatePrime.js"(t0,m0){var a0=hQ();m0.exports=J0,J0.simpleSieve=x,J0.fermatTest=O$;var e0=RY(),r0=new e0(24),i0=t(),$$=new i0,Q$=new e0(1),$=new e0(2),N=new e0(5),Y$=new e0(16),O0=new e0(8),Z$=new e0(10),G$=new e0(3),V$=new e0(7),U$=new e0(11),X$=new e0(4),K$=new e0(12),I$=null;function Q(){if(I$!==null)return I$;var J$=1048576,F$=[];F$[0]=2;for(var A$=1,H$=3;H$<J$;H$+=2){for(var W$=Math.ceil(Math.sqrt(H$)),E$=0;E$<A$&&F$[E$]<=W$&&H$%F$[E$]!==0;E$++);A$!==E$&&F$[E$]<=W$||(F$[A$++]=H$)}return I$=F$,F$}function x(J$){for(var F$=Q(),A$=0;A$<F$.length;A$++)if(J$.modn(F$[A$])===0)return J$.cmpn(F$[A$])===0;return!0}function O$(J$){var F$=e0.mont(J$);return $.toRed(F$).redPow(J$.subn(1)).fromRed().cmpn(1)===0}function J0(J$,F$){if(J$<16)return F$===2||F$===5?new e0([140,123]):new e0([140,39]);F$=new e0(F$);for(var A$,H$;;){for(A$=new e0(a0(Math.ceil(J$/8)));A$.bitLength()>J$;)A$.ishrn(1);if(A$.isEven()&&A$.iadd(Q$),A$.testn(1)||A$.iadd($),F$.cmp($)){if(!F$.cmp(N))for(;A$.mod(Z$).cmp(G$);)A$.iadd(X$)}else for(;A$.mod(r0).cmp(U$);)A$.iadd(X$);if(H$=A$.shrn(1),x(H$)&&x(A$)&&O$(H$)&&O$(A$)&&$$.test(H$)&&$$.test(A$))return A$}}}}),N0=pQ({"node_modules/diffie-hellman/lib/primes.json"(t0,m0){m0.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"}}}}),MY=pQ({"node_modules/diffie-hellman/lib/dh.js"(t0,m0){var a0=RY(),e0=t(),r0=new e0,i0=new a0(24),$$=new a0(11),Q$=new a0(10),$=new a0(3),N=new a0(7),Y$=_0(),O0=hQ();m0.exports=X$;function Z$(I$,Q){return Q=Q||"utf8",G0.isBuffer(I$)||(I$=new G0(I$,Q)),this._pub=new a0(I$),this}function G$(I$,Q){return Q=Q||"utf8",G0.isBuffer(I$)||(I$=new G0(I$,Q)),this._priv=new a0(I$),this}var V$={};function U$(I$,Q){var x=Q.toString("hex"),O$=[x,I$.toString(16)].join("_");if(O$ in V$)return V$[O$];var J0=0;if(I$.isEven()||!Y$.simpleSieve||!Y$.fermatTest(I$)||!r0.test(I$))return J0+=1,x==="02"||x==="05"?J0+=8:J0+=4,V$[O$]=J0,J0;r0.test(I$.shrn(1))||(J0+=2);var J$;switch(x){case"02":I$.mod(i0).cmp($$)&&(J0+=8);break;case"05":J$=I$.mod(Q$),J$.cmp($)&&J$.cmp(N)&&(J0+=8);break;default:J0+=4}return V$[O$]=J0,J0}function X$(I$,Q,x){this.setGenerator(Q),this.__prime=new a0(I$),this._prime=a0.mont(this.__prime),this._primeLen=I$.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,x?(this.setPublicKey=Z$,this.setPrivateKey=G$):this._primeCode=8}Object.defineProperty(X$.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=U$(this.__prime,this.__gen)),this._primeCode}}),X$.prototype.generateKeys=function(){return this._priv||(this._priv=new a0(O0(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},X$.prototype.computeSecret=function(I$){I$=new a0(I$),I$=I$.toRed(this._prime);var Q=I$.redPow(this._priv).fromRed(),x=new G0(Q.toArray()),O$=this.getPrime();if(x.length<O$.length){var J0=new G0(O$.length-x.length);J0.fill(0),x=G0.concat([J0,x])}return x},X$.prototype.getPublicKey=function(I$){return K$(this._pub,I$)},X$.prototype.getPrivateKey=function(I$){return K$(this._priv,I$)},X$.prototype.getPrime=function(I$){return K$(this.__prime,I$)},X$.prototype.getGenerator=function(I$){return K$(this._gen,I$)},X$.prototype.setGenerator=function(I$,Q){return Q=Q||"utf8",G0.isBuffer(I$)||(I$=new G0(I$,Q)),this.__gen=I$,this._gen=new a0(I$),this};function K$(I$,Q){var x=new G0(I$.toArray());return Q?x.toString(Q):x}}}),SY=pQ({"node_modules/diffie-hellman/browser.js"(t0){var m0=_0(),a0=N0(),e0=MY();function r0(Q$){var $=new G0(a0[Q$].prime,"hex"),N=new G0(a0[Q$].gen,"hex");return new e0($,N)}var i0={binary:!0,hex:!0,base64:!0};function $$(Q$,$,N,Y$){return G0.isBuffer($)||i0[$]===void 0?$$(Q$,"binary",$,N):($=$||"binary",Y$=Y$||"binary",N=N||new G0([2]),G0.isBuffer(N)||(N=new G0(N,Y$)),typeof Q$=="number"?new e0(m0(Q$,N),N,!0):(G0.isBuffer(Q$)||(Q$=new G0(Q$,$)),new e0(Q$,N,!0)))}t0.DiffieHellmanGroup=t0.createDiffieHellmanGroup=t0.getDiffieHellman=r0,t0.createDiffieHellman=t0.DiffieHellman=$$}}),vY=pQ({"node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(f,D$){if(!f)throw new Error(D$||"Assertion failed")}function i0(f,D$){f.super_=D$;var F0=function(){};F0.prototype=D$.prototype,f.prototype=new F0,f.prototype.constructor=f}function $$(f,D$,F0){if($$.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,f!==null&&((D$==="le"||D$==="be")&&(F0=D$,D$=10),this._init(f||0,D$||10,F0||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(f){return f instanceof $$?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===$$.wordSize&&Array.isArray(f.words)},$$.max=function(f,D$){return f.cmp(D$)>0?f:D$},$$.min=function(f,D$){return f.cmp(D$)<0?f:D$},$$.prototype._init=function(f,D$,F0){if(typeof f=="number")return this._initNumber(f,D$,F0);if(typeof f=="object")return this._initArray(f,D$,F0);D$==="hex"&&(D$=16),r0(D$===(D$|0)&&D$>=2&&D$<=36),f=f.toString().replace(/\s+/g,"");var C$=0;f[0]==="-"&&(C$++,this.negative=1),C$<f.length&&(D$===16?this._parseHex(f,C$,F0):(this._parseBase(f,D$,C$),F0==="le"&&this._initArray(this.toArray(),D$,F0)))},$$.prototype._initNumber=function(f,D$,F0){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r0(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),F0==="le"&&this._initArray(this.toArray(),D$,F0)},$$.prototype._initArray=function(f,D$,F0){if(r0(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var C$=0;C$<this.length;C$++)this.words[C$]=0;var L$,R$,P$=0;if(F0==="be")for(C$=f.length-1,L$=0;C$>=0;C$-=3)R$=f[C$]|f[C$-1]<<8|f[C$-2]<<16,this.words[L$]|=R$<<P$&67108863,this.words[L$+1]=R$>>>26-P$&67108863,P$+=24,P$>=26&&(P$-=26,L$++);else if(F0==="le")for(C$=0,L$=0;C$<f.length;C$+=3)R$=f[C$]|f[C$+1]<<8|f[C$+2]<<16,this.words[L$]|=R$<<P$&67108863,this.words[L$+1]=R$>>>26-P$&67108863,P$+=24,P$>=26&&(P$-=26,L$++);return this._strip()};function $(f,D$){var F0=f.charCodeAt(D$);if(F0>=48&&F0<=57)return F0-48;if(F0>=65&&F0<=70)return F0-55;if(F0>=97&&F0<=102)return F0-87;r0(!1,"Invalid character in "+f)}function N(f,D$,F0){var C$=$(f,F0);return F0-1>=D$&&(C$|=$(f,F0-1)<<4),C$}$$.prototype._parseHex=function(f,D$,F0){this.length=Math.ceil((f.length-D$)/6),this.words=new Array(this.length);for(var C$=0;C$<this.length;C$++)this.words[C$]=0;var L$=0,R$=0,P$;if(F0==="be")for(C$=f.length-1;C$>=D$;C$-=2)P$=N(f,D$,C$)<<L$,this.words[R$]|=P$&67108863,L$>=18?(L$-=18,R$+=1,this.words[R$]|=P$>>>26):L$+=8;else{var z$=f.length-D$;for(C$=z$%2===0?D$+1:D$;C$<f.length;C$+=2)P$=N(f,D$,C$)<<L$,this.words[R$]|=P$&67108863,L$>=18?(L$-=18,R$+=1,this.words[R$]|=P$>>>26):L$+=8}this._strip()};function Y$(f,D$,F0,C$){for(var L$=0,R$=0,P$=Math.min(f.length,F0),z$=D$;z$<P$;z$++){var M$=f.charCodeAt(z$)-48;L$*=C$,M$>=49?R$=M$-49+10:M$>=17?R$=M$-17+10:R$=M$,r0(M$>=0&&R$<C$,"Invalid character"),L$+=R$}return L$}$$.prototype._parseBase=function(f,D$,F0){this.words=[0],this.length=1;for(var C$=0,L$=1;L$<=67108863;L$*=D$)C$++;C$--,L$=L$/D$|0;for(var R$=f.length-F0,P$=R$%C$,z$=Math.min(R$,R$-P$)+F0,M$=0,S$=F0;S$<z$;S$+=C$)M$=Y$(f,S$,S$+C$,D$),this.imuln(L$),this.words[0]+M$<67108864?this.words[0]+=M$:this._iaddn(M$);if(P$!==0){var Z=1;for(M$=Y$(f,S$,f.length,D$),S$=0;S$<P$;S$++)Z*=D$;this.imuln(Z),this.words[0]+M$<67108864?this.words[0]+=M$:this._iaddn(M$)}this._strip()},$$.prototype.copy=function(f){f.words=new Array(this.length);for(var D$=0;D$<this.length;D$++)f.words[D$]=this.words[D$];f.length=this.length,f.negative=this.negative,f.red=this.red};function O0(f,D$){f.words=D$.words,f.length=D$.length,f.negative=D$.negative,f.red=D$.red}if($$.prototype._move=function(f){O0(f,this)},$$.prototype.clone=function(){var f=new $$(null);return this.copy(f),f},$$.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},$$.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{$$.prototype[Symbol.for("nodejs.util.inspect.custom")]=Z$}catch{$$.prototype.inspect=Z$}else $$.prototype.inspect=Z$;function Z$(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var G$=["","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"],V$=[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],U$=[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];$$.prototype.toString=function(f,D$){f=f||10,D$=D$|0||1;var F0;if(f===16||f==="hex"){F0="";for(var C$=0,L$=0,R$=0;R$<this.length;R$++){var P$=this.words[R$],z$=((P$<<C$|L$)&16777215).toString(16);L$=P$>>>24-C$&16777215,C$+=2,C$>=26&&(C$-=26,R$--),L$!==0||R$!==this.length-1?F0=G$[6-z$.length]+z$+F0:F0=z$+F0}for(L$!==0&&(F0=L$.toString(16)+F0);F0.length%D$!==0;)F0="0"+F0;return this.negative!==0&&(F0="-"+F0),F0}if(f===(f|0)&&f>=2&&f<=36){var M$=V$[f],S$=U$[f];F0="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var c=Z.modrn(S$).toString(f);Z=Z.idivn(S$),Z.isZero()?F0=c+F0:F0=G$[M$-c.length]+c+F0}for(this.isZero()&&(F0="0"+F0);F0.length%D$!==0;)F0="0"+F0;return this.negative!==0&&(F0="-"+F0),F0}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},$$.prototype.toJSON=function(){return this.toString(16,2)},Q$&&($$.prototype.toBuffer=function(f,D$){return this.toArrayLike(Q$,f,D$)}),$$.prototype.toArray=function(f,D$){return this.toArrayLike(Array,f,D$)};var X$=function(f,D$){return f.allocUnsafe?f.allocUnsafe(D$):new f(D$)};$$.prototype.toArrayLike=function(f,D$,F0){this._strip();var C$=this.byteLength(),L$=F0||Math.max(1,C$);r0(C$<=L$,"byte array longer than desired length"),r0(L$>0,"Requested array length <= 0");var R$=X$(f,L$),P$=D$==="le"?"LE":"BE";return this["_toArrayLike"+P$](R$,C$),R$},$$.prototype._toArrayLikeLE=function(f,D$){for(var F0=0,C$=0,L$=0,R$=0;L$<this.length;L$++){var P$=this.words[L$]<<R$|C$;f[F0++]=P$&255,F0<f.length&&(f[F0++]=P$>>8&255),F0<f.length&&(f[F0++]=P$>>16&255),R$===6?(F0<f.length&&(f[F0++]=P$>>24&255),C$=0,R$=0):(C$=P$>>>24,R$+=2)}if(F0<f.length)for(f[F0++]=C$;F0<f.length;)f[F0++]=0},$$.prototype._toArrayLikeBE=function(f,D$){for(var F0=f.length-1,C$=0,L$=0,R$=0;L$<this.length;L$++){var P$=this.words[L$]<<R$|C$;f[F0--]=P$&255,F0>=0&&(f[F0--]=P$>>8&255),F0>=0&&(f[F0--]=P$>>16&255),R$===6?(F0>=0&&(f[F0--]=P$>>24&255),C$=0,R$=0):(C$=P$>>>24,R$+=2)}if(F0>=0)for(f[F0--]=C$;F0>=0;)f[F0--]=0},Math.clz32?$$.prototype._countBits=function(f){return 32-Math.clz32(f)}:$$.prototype._countBits=function(f){var D$=f,F0=0;return D$>=4096&&(F0+=13,D$>>>=13),D$>=64&&(F0+=7,D$>>>=7),D$>=8&&(F0+=4,D$>>>=4),D$>=2&&(F0+=2,D$>>>=2),F0+D$},$$.prototype._zeroBits=function(f){if(f===0)return 26;var D$=f,F0=0;return(D$&8191)===0&&(F0+=13,D$>>>=13),(D$&127)===0&&(F0+=7,D$>>>=7),(D$&15)===0&&(F0+=4,D$>>>=4),(D$&3)===0&&(F0+=2,D$>>>=2),(D$&1)===0&&F0++,F0},$$.prototype.bitLength=function(){var f=this.words[this.length-1],D$=this._countBits(f);return(this.length-1)*26+D$};function K$(f){for(var D$=new Array(f.bitLength()),F0=0;F0<D$.length;F0++){var C$=F0/26|0,L$=F0%26;D$[F0]=f.words[C$]>>>L$&1}return D$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,D$=0;D$<this.length;D$++){var F0=this._zeroBits(this.words[D$]);if(f+=F0,F0!==26)break}return f},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},$$.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var D$=0;D$<f.length;D$++)this.words[D$]=this.words[D$]|f.words[D$];return this._strip()},$$.prototype.ior=function(f){return r0((this.negative|f.negative)===0),this.iuor(f)},$$.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},$$.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},$$.prototype.iuand=function(f){var D$;this.length>f.length?D$=f:D$=this;for(var F0=0;F0<D$.length;F0++)this.words[F0]=this.words[F0]&f.words[F0];return this.length=D$.length,this._strip()},$$.prototype.iand=function(f){return r0((this.negative|f.negative)===0),this.iuand(f)},$$.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},$$.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},$$.prototype.iuxor=function(f){var D$,F0;this.length>f.length?(D$=this,F0=f):(D$=f,F0=this);for(var C$=0;C$<F0.length;C$++)this.words[C$]=D$.words[C$]^F0.words[C$];if(this!==D$)for(;C$<D$.length;C$++)this.words[C$]=D$.words[C$];return this.length=D$.length,this._strip()},$$.prototype.ixor=function(f){return r0((this.negative|f.negative)===0),this.iuxor(f)},$$.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},$$.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},$$.prototype.inotn=function(f){r0(typeof f=="number"&&f>=0);var D$=Math.ceil(f/26)|0,F0=f%26;this._expand(D$),F0>0&&D$--;for(var C$=0;C$<D$;C$++)this.words[C$]=~this.words[C$]&67108863;return F0>0&&(this.words[C$]=~this.words[C$]&67108863>>26-F0),this._strip()},$$.prototype.notn=function(f){return this.clone().inotn(f)},$$.prototype.setn=function(f,D$){r0(typeof f=="number"&&f>=0);var F0=f/26|0,C$=f%26;return this._expand(F0+1),D$?this.words[F0]=this.words[F0]|1<<C$:this.words[F0]=this.words[F0]&~(1<<C$),this._strip()},$$.prototype.iadd=function(f){var D$;if(this.negative!==0&&f.negative===0)return this.negative=0,D$=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,D$=this.isub(f),f.negative=1,D$._normSign();var F0,C$;this.length>f.length?(F0=this,C$=f):(F0=f,C$=this);for(var L$=0,R$=0;R$<C$.length;R$++)D$=(F0.words[R$]|0)+(C$.words[R$]|0)+L$,this.words[R$]=D$&67108863,L$=D$>>>26;for(;L$!==0&&R$<F0.length;R$++)D$=(F0.words[R$]|0)+L$,this.words[R$]=D$&67108863,L$=D$>>>26;if(this.length=F0.length,L$!==0)this.words[this.length]=L$,this.length++;else if(F0!==this)for(;R$<F0.length;R$++)this.words[R$]=F0.words[R$];return this},$$.prototype.add=function(f){var D$;return f.negative!==0&&this.negative===0?(f.negative=0,D$=this.sub(f),f.negative^=1,D$):f.negative===0&&this.negative!==0?(this.negative=0,D$=f.sub(this),this.negative=1,D$):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},$$.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var D$=this.iadd(f);return f.negative=1,D$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var F0=this.cmp(f);if(F0===0)return this.negative=0,this.length=1,this.words[0]=0,this;var C$,L$;F0>0?(C$=this,L$=f):(C$=f,L$=this);for(var R$=0,P$=0;P$<L$.length;P$++)D$=(C$.words[P$]|0)-(L$.words[P$]|0)+R$,R$=D$>>26,this.words[P$]=D$&67108863;for(;R$!==0&&P$<C$.length;P$++)D$=(C$.words[P$]|0)+R$,R$=D$>>26,this.words[P$]=D$&67108863;if(R$===0&&P$<C$.length&&C$!==this)for(;P$<C$.length;P$++)this.words[P$]=C$.words[P$];return this.length=Math.max(this.length,P$),C$!==this&&(this.negative=1),this._strip()},$$.prototype.sub=function(f){return this.clone().isub(f)};function I$(f,D$,F0){F0.negative=D$.negative^f.negative;var C$=f.length+D$.length|0;F0.length=C$,C$=C$-1|0;var L$=f.words[0]|0,R$=D$.words[0]|0,P$=L$*R$,z$=P$&67108863,M$=P$/67108864|0;F0.words[0]=z$;for(var S$=1;S$<C$;S$++){for(var Z=M$>>>26,c=M$&67108863,v$=Math.min(S$,D$.length-1),A0=Math.max(0,S$-f.length+1);A0<=v$;A0++){var q$=S$-A0|0;L$=f.words[q$]|0,R$=D$.words[A0]|0,P$=L$*R$+c,Z+=P$/67108864|0,c=P$&67108863}F0.words[S$]=c|0,M$=Z|0}return M$!==0?F0.words[S$]=M$|0:F0.length--,F0._strip()}var Q=function(f,D$,F0){var C$=f.words,L$=D$.words,R$=F0.words,P$=0,z$,M$,S$,Z=C$[0]|0,c=Z&8191,v$=Z>>>13,A0=C$[1]|0,q$=A0&8191,j$=A0>>>13,k$=C$[2]|0,g$=k$&8191,_$=k$>>>13,N$=C$[3]|0,x$=N$&8191,G=N$>>>13,B=C$[4]|0,B$=B&8191,H0=B>>>13,y$=C$[5]|0,w$=y$&8191,p$=y$>>>13,f$=C$[6]|0,c$=f$&8191,h$=f$>>>13,d$=C$[7]|0,V=d$&8191,h=d$>>>13,W0=C$[8]|0,E0=W0&8191,b$=W0>>>13,l$=C$[9]|0,o$=l$&8191,u$=l$>>>13,n$=L$[0]|0,s$=n$&8191,t$=n$>>>13,U=L$[1]|0,d=U&8191,m$=U>>>13,T0=L$[2]|0,a$=T0&8191,e$=T0>>>13,r$=L$[3]|0,i$=r$&8191,$Q=r$>>>13,QQ=L$[4]|0,YQ=QQ&8191,X=QQ>>>13,b=L$[5]|0,ZQ=b&8191,D0=b>>>13,GQ=L$[6]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=L$[7]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=L$[8]|0,K=OQ&8191,l=OQ>>>13,JQ=L$[9]|0,C0=JQ&8191,FQ=JQ>>>13;F0.negative=f.negative^D$.negative,F0.length=19,z$=Math.imul(c,s$),M$=Math.imul(c,t$),M$=M$+Math.imul(v$,s$)|0,S$=Math.imul(v$,t$);var AQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z$=Math.imul(q$,s$),M$=Math.imul(q$,t$),M$=M$+Math.imul(j$,s$)|0,S$=Math.imul(j$,t$),z$=z$+Math.imul(c,d)|0,M$=M$+Math.imul(c,m$)|0,M$=M$+Math.imul(v$,d)|0,S$=S$+Math.imul(v$,m$)|0;var HQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,z$=Math.imul(g$,s$),M$=Math.imul(g$,t$),M$=M$+Math.imul(_$,s$)|0,S$=Math.imul(_$,t$),z$=z$+Math.imul(q$,d)|0,M$=M$+Math.imul(q$,m$)|0,M$=M$+Math.imul(j$,d)|0,S$=S$+Math.imul(j$,m$)|0,z$=z$+Math.imul(c,a$)|0,M$=M$+Math.imul(c,e$)|0,M$=M$+Math.imul(v$,a$)|0,S$=S$+Math.imul(v$,e$)|0;var WQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z$=Math.imul(x$,s$),M$=Math.imul(x$,t$),M$=M$+Math.imul(G,s$)|0,S$=Math.imul(G,t$),z$=z$+Math.imul(g$,d)|0,M$=M$+Math.imul(g$,m$)|0,M$=M$+Math.imul(_$,d)|0,S$=S$+Math.imul(_$,m$)|0,z$=z$+Math.imul(q$,a$)|0,M$=M$+Math.imul(q$,e$)|0,M$=M$+Math.imul(j$,a$)|0,S$=S$+Math.imul(j$,e$)|0,z$=z$+Math.imul(c,i$)|0,M$=M$+Math.imul(c,$Q)|0,M$=M$+Math.imul(v$,i$)|0,S$=S$+Math.imul(v$,$Q)|0;var EQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,z$=Math.imul(B$,s$),M$=Math.imul(B$,t$),M$=M$+Math.imul(H0,s$)|0,S$=Math.imul(H0,t$),z$=z$+Math.imul(x$,d)|0,M$=M$+Math.imul(x$,m$)|0,M$=M$+Math.imul(G,d)|0,S$=S$+Math.imul(G,m$)|0,z$=z$+Math.imul(g$,a$)|0,M$=M$+Math.imul(g$,e$)|0,M$=M$+Math.imul(_$,a$)|0,S$=S$+Math.imul(_$,e$)|0,z$=z$+Math.imul(q$,i$)|0,M$=M$+Math.imul(q$,$Q)|0,M$=M$+Math.imul(j$,i$)|0,S$=S$+Math.imul(j$,$Q)|0,z$=z$+Math.imul(c,YQ)|0,M$=M$+Math.imul(c,X)|0,M$=M$+Math.imul(v$,YQ)|0,S$=S$+Math.imul(v$,X)|0;var TQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z$=Math.imul(w$,s$),M$=Math.imul(w$,t$),M$=M$+Math.imul(p$,s$)|0,S$=Math.imul(p$,t$),z$=z$+Math.imul(B$,d)|0,M$=M$+Math.imul(B$,m$)|0,M$=M$+Math.imul(H0,d)|0,S$=S$+Math.imul(H0,m$)|0,z$=z$+Math.imul(x$,a$)|0,M$=M$+Math.imul(x$,e$)|0,M$=M$+Math.imul(G,a$)|0,S$=S$+Math.imul(G,e$)|0,z$=z$+Math.imul(g$,i$)|0,M$=M$+Math.imul(g$,$Q)|0,M$=M$+Math.imul(_$,i$)|0,S$=S$+Math.imul(_$,$Q)|0,z$=z$+Math.imul(q$,YQ)|0,M$=M$+Math.imul(q$,X)|0,M$=M$+Math.imul(j$,YQ)|0,S$=S$+Math.imul(j$,X)|0,z$=z$+Math.imul(c,ZQ)|0,M$=M$+Math.imul(c,D0)|0,M$=M$+Math.imul(v$,ZQ)|0,S$=S$+Math.imul(v$,D0)|0;var DQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z$=Math.imul(c$,s$),M$=Math.imul(c$,t$),M$=M$+Math.imul(h$,s$)|0,S$=Math.imul(h$,t$),z$=z$+Math.imul(w$,d)|0,M$=M$+Math.imul(w$,m$)|0,M$=M$+Math.imul(p$,d)|0,S$=S$+Math.imul(p$,m$)|0,z$=z$+Math.imul(B$,a$)|0,M$=M$+Math.imul(B$,e$)|0,M$=M$+Math.imul(H0,a$)|0,S$=S$+Math.imul(H0,e$)|0,z$=z$+Math.imul(x$,i$)|0,M$=M$+Math.imul(x$,$Q)|0,M$=M$+Math.imul(G,i$)|0,S$=S$+Math.imul(G,$Q)|0,z$=z$+Math.imul(g$,YQ)|0,M$=M$+Math.imul(g$,X)|0,M$=M$+Math.imul(_$,YQ)|0,S$=S$+Math.imul(_$,X)|0,z$=z$+Math.imul(q$,ZQ)|0,M$=M$+Math.imul(q$,D0)|0,M$=M$+Math.imul(j$,ZQ)|0,S$=S$+Math.imul(j$,D0)|0,z$=z$+Math.imul(c,VQ)|0,M$=M$+Math.imul(c,UQ)|0,M$=M$+Math.imul(v$,VQ)|0,S$=S$+Math.imul(v$,UQ)|0;var I=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(I>>>26)|0,I&=67108863,z$=Math.imul(V,s$),M$=Math.imul(V,t$),M$=M$+Math.imul(h,s$)|0,S$=Math.imul(h,t$),z$=z$+Math.imul(c$,d)|0,M$=M$+Math.imul(c$,m$)|0,M$=M$+Math.imul(h$,d)|0,S$=S$+Math.imul(h$,m$)|0,z$=z$+Math.imul(w$,a$)|0,M$=M$+Math.imul(w$,e$)|0,M$=M$+Math.imul(p$,a$)|0,S$=S$+Math.imul(p$,e$)|0,z$=z$+Math.imul(B$,i$)|0,M$=M$+Math.imul(B$,$Q)|0,M$=M$+Math.imul(H0,i$)|0,S$=S$+Math.imul(H0,$Q)|0,z$=z$+Math.imul(x$,YQ)|0,M$=M$+Math.imul(x$,X)|0,M$=M$+Math.imul(G,YQ)|0,S$=S$+Math.imul(G,X)|0,z$=z$+Math.imul(g$,ZQ)|0,M$=M$+Math.imul(g$,D0)|0,M$=M$+Math.imul(_$,ZQ)|0,S$=S$+Math.imul(_$,D0)|0,z$=z$+Math.imul(q$,VQ)|0,M$=M$+Math.imul(q$,UQ)|0,M$=M$+Math.imul(j$,VQ)|0,S$=S$+Math.imul(j$,UQ)|0,z$=z$+Math.imul(c,KQ)|0,M$=M$+Math.imul(c,IQ)|0,M$=M$+Math.imul(v$,KQ)|0,S$=S$+Math.imul(v$,IQ)|0;var o=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(o>>>26)|0,o&=67108863,z$=Math.imul(E0,s$),M$=Math.imul(E0,t$),M$=M$+Math.imul(b$,s$)|0,S$=Math.imul(b$,t$),z$=z$+Math.imul(V,d)|0,M$=M$+Math.imul(V,m$)|0,M$=M$+Math.imul(h,d)|0,S$=S$+Math.imul(h,m$)|0,z$=z$+Math.imul(c$,a$)|0,M$=M$+Math.imul(c$,e$)|0,M$=M$+Math.imul(h$,a$)|0,S$=S$+Math.imul(h$,e$)|0,z$=z$+Math.imul(w$,i$)|0,M$=M$+Math.imul(w$,$Q)|0,M$=M$+Math.imul(p$,i$)|0,S$=S$+Math.imul(p$,$Q)|0,z$=z$+Math.imul(B$,YQ)|0,M$=M$+Math.imul(B$,X)|0,M$=M$+Math.imul(H0,YQ)|0,S$=S$+Math.imul(H0,X)|0,z$=z$+Math.imul(x$,ZQ)|0,M$=M$+Math.imul(x$,D0)|0,M$=M$+Math.imul(G,ZQ)|0,S$=S$+Math.imul(G,D0)|0,z$=z$+Math.imul(g$,VQ)|0,M$=M$+Math.imul(g$,UQ)|0,M$=M$+Math.imul(_$,VQ)|0,S$=S$+Math.imul(_$,UQ)|0,z$=z$+Math.imul(q$,KQ)|0,M$=M$+Math.imul(q$,IQ)|0,M$=M$+Math.imul(j$,KQ)|0,S$=S$+Math.imul(j$,IQ)|0,z$=z$+Math.imul(c,K)|0,M$=M$+Math.imul(c,l)|0,M$=M$+Math.imul(v$,K)|0,S$=S$+Math.imul(v$,l)|0;var CQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z$=Math.imul(o$,s$),M$=Math.imul(o$,t$),M$=M$+Math.imul(u$,s$)|0,S$=Math.imul(u$,t$),z$=z$+Math.imul(E0,d)|0,M$=M$+Math.imul(E0,m$)|0,M$=M$+Math.imul(b$,d)|0,S$=S$+Math.imul(b$,m$)|0,z$=z$+Math.imul(V,a$)|0,M$=M$+Math.imul(V,e$)|0,M$=M$+Math.imul(h,a$)|0,S$=S$+Math.imul(h,e$)|0,z$=z$+Math.imul(c$,i$)|0,M$=M$+Math.imul(c$,$Q)|0,M$=M$+Math.imul(h$,i$)|0,S$=S$+Math.imul(h$,$Q)|0,z$=z$+Math.imul(w$,YQ)|0,M$=M$+Math.imul(w$,X)|0,M$=M$+Math.imul(p$,YQ)|0,S$=S$+Math.imul(p$,X)|0,z$=z$+Math.imul(B$,ZQ)|0,M$=M$+Math.imul(B$,D0)|0,M$=M$+Math.imul(H0,ZQ)|0,S$=S$+Math.imul(H0,D0)|0,z$=z$+Math.imul(x$,VQ)|0,M$=M$+Math.imul(x$,UQ)|0,M$=M$+Math.imul(G,VQ)|0,S$=S$+Math.imul(G,UQ)|0,z$=z$+Math.imul(g$,KQ)|0,M$=M$+Math.imul(g$,IQ)|0,M$=M$+Math.imul(_$,KQ)|0,S$=S$+Math.imul(_$,IQ)|0,z$=z$+Math.imul(q$,K)|0,M$=M$+Math.imul(q$,l)|0,M$=M$+Math.imul(j$,K)|0,S$=S$+Math.imul(j$,l)|0,z$=z$+Math.imul(c,C0)|0,M$=M$+Math.imul(c,FQ)|0,M$=M$+Math.imul(v$,C0)|0,S$=S$+Math.imul(v$,FQ)|0;var L0=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(L0>>>26)|0,L0&=67108863,z$=Math.imul(o$,d),M$=Math.imul(o$,m$),M$=M$+Math.imul(u$,d)|0,S$=Math.imul(u$,m$),z$=z$+Math.imul(E0,a$)|0,M$=M$+Math.imul(E0,e$)|0,M$=M$+Math.imul(b$,a$)|0,S$=S$+Math.imul(b$,e$)|0,z$=z$+Math.imul(V,i$)|0,M$=M$+Math.imul(V,$Q)|0,M$=M$+Math.imul(h,i$)|0,S$=S$+Math.imul(h,$Q)|0,z$=z$+Math.imul(c$,YQ)|0,M$=M$+Math.imul(c$,X)|0,M$=M$+Math.imul(h$,YQ)|0,S$=S$+Math.imul(h$,X)|0,z$=z$+Math.imul(w$,ZQ)|0,M$=M$+Math.imul(w$,D0)|0,M$=M$+Math.imul(p$,ZQ)|0,S$=S$+Math.imul(p$,D0)|0,z$=z$+Math.imul(B$,VQ)|0,M$=M$+Math.imul(B$,UQ)|0,M$=M$+Math.imul(H0,VQ)|0,S$=S$+Math.imul(H0,UQ)|0,z$=z$+Math.imul(x$,KQ)|0,M$=M$+Math.imul(x$,IQ)|0,M$=M$+Math.imul(G,KQ)|0,S$=S$+Math.imul(G,IQ)|0,z$=z$+Math.imul(g$,K)|0,M$=M$+Math.imul(g$,l)|0,M$=M$+Math.imul(_$,K)|0,S$=S$+Math.imul(_$,l)|0,z$=z$+Math.imul(q$,C0)|0,M$=M$+Math.imul(q$,FQ)|0,M$=M$+Math.imul(j$,C0)|0,S$=S$+Math.imul(j$,FQ)|0;var LQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z$=Math.imul(o$,a$),M$=Math.imul(o$,e$),M$=M$+Math.imul(u$,a$)|0,S$=Math.imul(u$,e$),z$=z$+Math.imul(E0,i$)|0,M$=M$+Math.imul(E0,$Q)|0,M$=M$+Math.imul(b$,i$)|0,S$=S$+Math.imul(b$,$Q)|0,z$=z$+Math.imul(V,YQ)|0,M$=M$+Math.imul(V,X)|0,M$=M$+Math.imul(h,YQ)|0,S$=S$+Math.imul(h,X)|0,z$=z$+Math.imul(c$,ZQ)|0,M$=M$+Math.imul(c$,D0)|0,M$=M$+Math.imul(h$,ZQ)|0,S$=S$+Math.imul(h$,D0)|0,z$=z$+Math.imul(w$,VQ)|0,M$=M$+Math.imul(w$,UQ)|0,M$=M$+Math.imul(p$,VQ)|0,S$=S$+Math.imul(p$,UQ)|0,z$=z$+Math.imul(B$,KQ)|0,M$=M$+Math.imul(B$,IQ)|0,M$=M$+Math.imul(H0,KQ)|0,S$=S$+Math.imul(H0,IQ)|0,z$=z$+Math.imul(x$,K)|0,M$=M$+Math.imul(x$,l)|0,M$=M$+Math.imul(G,K)|0,S$=S$+Math.imul(G,l)|0,z$=z$+Math.imul(g$,C0)|0,M$=M$+Math.imul(g$,FQ)|0,M$=M$+Math.imul(_$,C0)|0,S$=S$+Math.imul(_$,FQ)|0;var RQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z$=Math.imul(o$,i$),M$=Math.imul(o$,$Q),M$=M$+Math.imul(u$,i$)|0,S$=Math.imul(u$,$Q),z$=z$+Math.imul(E0,YQ)|0,M$=M$+Math.imul(E0,X)|0,M$=M$+Math.imul(b$,YQ)|0,S$=S$+Math.imul(b$,X)|0,z$=z$+Math.imul(V,ZQ)|0,M$=M$+Math.imul(V,D0)|0,M$=M$+Math.imul(h,ZQ)|0,S$=S$+Math.imul(h,D0)|0,z$=z$+Math.imul(c$,VQ)|0,M$=M$+Math.imul(c$,UQ)|0,M$=M$+Math.imul(h$,VQ)|0,S$=S$+Math.imul(h$,UQ)|0,z$=z$+Math.imul(w$,KQ)|0,M$=M$+Math.imul(w$,IQ)|0,M$=M$+Math.imul(p$,KQ)|0,S$=S$+Math.imul(p$,IQ)|0,z$=z$+Math.imul(B$,K)|0,M$=M$+Math.imul(B$,l)|0,M$=M$+Math.imul(H0,K)|0,S$=S$+Math.imul(H0,l)|0,z$=z$+Math.imul(x$,C0)|0,M$=M$+Math.imul(x$,FQ)|0,M$=M$+Math.imul(G,C0)|0,S$=S$+Math.imul(G,FQ)|0;var PQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z$=Math.imul(o$,YQ),M$=Math.imul(o$,X),M$=M$+Math.imul(u$,YQ)|0,S$=Math.imul(u$,X),z$=z$+Math.imul(E0,ZQ)|0,M$=M$+Math.imul(E0,D0)|0,M$=M$+Math.imul(b$,ZQ)|0,S$=S$+Math.imul(b$,D0)|0,z$=z$+Math.imul(V,VQ)|0,M$=M$+Math.imul(V,UQ)|0,M$=M$+Math.imul(h,VQ)|0,S$=S$+Math.imul(h,UQ)|0,z$=z$+Math.imul(c$,KQ)|0,M$=M$+Math.imul(c$,IQ)|0,M$=M$+Math.imul(h$,KQ)|0,S$=S$+Math.imul(h$,IQ)|0,z$=z$+Math.imul(w$,K)|0,M$=M$+Math.imul(w$,l)|0,M$=M$+Math.imul(p$,K)|0,S$=S$+Math.imul(p$,l)|0,z$=z$+Math.imul(B$,C0)|0,M$=M$+Math.imul(B$,FQ)|0,M$=M$+Math.imul(H0,C0)|0,S$=S$+Math.imul(H0,FQ)|0;var zQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z$=Math.imul(o$,ZQ),M$=Math.imul(o$,D0),M$=M$+Math.imul(u$,ZQ)|0,S$=Math.imul(u$,D0),z$=z$+Math.imul(E0,VQ)|0,M$=M$+Math.imul(E0,UQ)|0,M$=M$+Math.imul(b$,VQ)|0,S$=S$+Math.imul(b$,UQ)|0,z$=z$+Math.imul(V,KQ)|0,M$=M$+Math.imul(V,IQ)|0,M$=M$+Math.imul(h,KQ)|0,S$=S$+Math.imul(h,IQ)|0,z$=z$+Math.imul(c$,K)|0,M$=M$+Math.imul(c$,l)|0,M$=M$+Math.imul(h$,K)|0,S$=S$+Math.imul(h$,l)|0,z$=z$+Math.imul(w$,C0)|0,M$=M$+Math.imul(w$,FQ)|0,M$=M$+Math.imul(p$,C0)|0,S$=S$+Math.imul(p$,FQ)|0;var MQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z$=Math.imul(o$,VQ),M$=Math.imul(o$,UQ),M$=M$+Math.imul(u$,VQ)|0,S$=Math.imul(u$,UQ),z$=z$+Math.imul(E0,KQ)|0,M$=M$+Math.imul(E0,IQ)|0,M$=M$+Math.imul(b$,KQ)|0,S$=S$+Math.imul(b$,IQ)|0,z$=z$+Math.imul(V,K)|0,M$=M$+Math.imul(V,l)|0,M$=M$+Math.imul(h,K)|0,S$=S$+Math.imul(h,l)|0,z$=z$+Math.imul(c$,C0)|0,M$=M$+Math.imul(c$,FQ)|0,M$=M$+Math.imul(h$,C0)|0,S$=S$+Math.imul(h$,FQ)|0;var SQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,z$=Math.imul(o$,KQ),M$=Math.imul(o$,IQ),M$=M$+Math.imul(u$,KQ)|0,S$=Math.imul(u$,IQ),z$=z$+Math.imul(E0,K)|0,M$=M$+Math.imul(E0,l)|0,M$=M$+Math.imul(b$,K)|0,S$=S$+Math.imul(b$,l)|0,z$=z$+Math.imul(V,C0)|0,M$=M$+Math.imul(V,FQ)|0,M$=M$+Math.imul(h,C0)|0,S$=S$+Math.imul(h,FQ)|0;var vQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(vQ>>>26)|0,vQ&=67108863,z$=Math.imul(o$,K),M$=Math.imul(o$,l),M$=M$+Math.imul(u$,K)|0,S$=Math.imul(u$,l),z$=z$+Math.imul(E0,C0)|0,M$=M$+Math.imul(E0,FQ)|0,M$=M$+Math.imul(b$,C0)|0,S$=S$+Math.imul(b$,FQ)|0;var O=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(O>>>26)|0,O&=67108863,z$=Math.imul(o$,C0),M$=Math.imul(o$,FQ),M$=M$+Math.imul(u$,C0)|0,S$=Math.imul(u$,FQ);var g=(P$+z$|0)+((M$&8191)<<13)|0;return P$=(S$+(M$>>>13)|0)+(g>>>26)|0,g&=67108863,R$[0]=AQ,R$[1]=HQ,R$[2]=WQ,R$[3]=EQ,R$[4]=TQ,R$[5]=DQ,R$[6]=I,R$[7]=o,R$[8]=CQ,R$[9]=L0,R$[10]=LQ,R$[11]=RQ,R$[12]=PQ,R$[13]=zQ,R$[14]=MQ,R$[15]=SQ,R$[16]=vQ,R$[17]=O,R$[18]=g,P$!==0&&(R$[19]=P$,F0.length++),F0};Math.imul||(Q=I$);function x(f,D$,F0){F0.negative=D$.negative^f.negative,F0.length=f.length+D$.length;for(var C$=0,L$=0,R$=0;R$<F0.length-1;R$++){var P$=L$;L$=0;for(var z$=C$&67108863,M$=Math.min(R$,D$.length-1),S$=Math.max(0,R$-f.length+1);S$<=M$;S$++){var Z=R$-S$,c=f.words[Z]|0,v$=D$.words[S$]|0,A0=c*v$,q$=A0&67108863;P$=P$+(A0/67108864|0)|0,q$=q$+z$|0,z$=q$&67108863,P$=P$+(q$>>>26)|0,L$+=P$>>>26,P$&=67108863}F0.words[R$]=z$,C$=P$,P$=L$}return C$!==0?F0.words[R$]=C$:F0.length--,F0._strip()}function O$(f,D$,F0){return x(f,D$,F0)}$$.prototype.mulTo=function(f,D$){var F0,C$=this.length+f.length;return this.length===10&&f.length===10?F0=Q(this,f,D$):C$<63?F0=I$(this,f,D$):C$<1024?F0=x(this,f,D$):F0=O$(this,f,D$),F0};function J0(f,D$){this.x=f,this.y=D$}J0.prototype.makeRBT=function(f){for(var D$=new Array(f),F0=$$.prototype._countBits(f)-1,C$=0;C$<f;C$++)D$[C$]=this.revBin(C$,F0,f);return D$},J0.prototype.revBin=function(f,D$,F0){if(f===0||f===F0-1)return f;for(var C$=0,L$=0;L$<D$;L$++)C$|=(f&1)<<D$-L$-1,f>>=1;return C$},J0.prototype.permute=function(f,D$,F0,C$,L$,R$){for(var P$=0;P$<R$;P$++)C$[P$]=D$[f[P$]],L$[P$]=F0[f[P$]]},J0.prototype.transform=function(f,D$,F0,C$,L$,R$){this.permute(R$,f,D$,F0,C$,L$);for(var P$=1;P$<L$;P$<<=1)for(var z$=P$<<1,M$=Math.cos(2*Math.PI/z$),S$=Math.sin(2*Math.PI/z$),Z=0;Z<L$;Z+=z$)for(var c=M$,v$=S$,A0=0;A0<P$;A0++){var q$=F0[Z+A0],j$=C$[Z+A0],k$=F0[Z+A0+P$],g$=C$[Z+A0+P$],_$=c*k$-v$*g$;g$=c*g$+v$*k$,k$=_$,F0[Z+A0]=q$+k$,C$[Z+A0]=j$+g$,F0[Z+A0+P$]=q$-k$,C$[Z+A0+P$]=j$-g$,A0!==z$&&(_$=M$*c-S$*v$,v$=M$*v$+S$*c,c=_$)}},J0.prototype.guessLen13b=function(f,D$){var F0=Math.max(D$,f)|1,C$=F0&1,L$=0;for(F0=F0/2|0;F0;F0=F0>>>1)L$++;return 1<<L$+1+C$},J0.prototype.conjugate=function(f,D$,F0){if(!(F0<=1))for(var C$=0;C$<F0/2;C$++){var L$=f[C$];f[C$]=f[F0-C$-1],f[F0-C$-1]=L$,L$=D$[C$],D$[C$]=-D$[F0-C$-1],D$[F0-C$-1]=-L$}},J0.prototype.normalize13b=function(f,D$){for(var F0=0,C$=0;C$<D$/2;C$++){var L$=Math.round(f[2*C$+1]/D$)*8192+Math.round(f[2*C$]/D$)+F0;f[C$]=L$&67108863,L$<67108864?F0=0:F0=L$/67108864|0}return f},J0.prototype.convert13b=function(f,D$,F0,C$){for(var L$=0,R$=0;R$<D$;R$++)L$=L$+(f[R$]|0),F0[2*R$]=L$&8191,L$=L$>>>13,F0[2*R$+1]=L$&8191,L$=L$>>>13;for(R$=2*D$;R$<C$;++R$)F0[R$]=0;r0(L$===0),r0((L$&-8192)===0)},J0.prototype.stub=function(f){for(var D$=new Array(f),F0=0;F0<f;F0++)D$[F0]=0;return D$},J0.prototype.mulp=function(f,D$,F0){var C$=2*this.guessLen13b(f.length,D$.length),L$=this.makeRBT(C$),R$=this.stub(C$),P$=new Array(C$),z$=new Array(C$),M$=new Array(C$),S$=new Array(C$),Z=new Array(C$),c=new Array(C$),v$=F0.words;v$.length=C$,this.convert13b(f.words,f.length,P$,C$),this.convert13b(D$.words,D$.length,S$,C$),this.transform(P$,R$,z$,M$,C$,L$),this.transform(S$,R$,Z,c,C$,L$);for(var A0=0;A0<C$;A0++){var q$=z$[A0]*Z[A0]-M$[A0]*c[A0];M$[A0]=z$[A0]*c[A0]+M$[A0]*Z[A0],z$[A0]=q$}return this.conjugate(z$,M$,C$),this.transform(z$,M$,v$,R$,C$,L$),this.conjugate(v$,R$,C$),this.normalize13b(v$,C$),F0.negative=f.negative^D$.negative,F0.length=f.length+D$.length,F0._strip()},$$.prototype.mul=function(f){var D$=new $$(null);return D$.words=new Array(this.length+f.length),this.mulTo(f,D$)},$$.prototype.mulf=function(f){var D$=new $$(null);return D$.words=new Array(this.length+f.length),O$(this,f,D$)},$$.prototype.imul=function(f){return this.clone().mulTo(f,this)},$$.prototype.imuln=function(f){var D$=f<0;D$&&(f=-f),r0(typeof f=="number"),r0(f<67108864);for(var F0=0,C$=0;C$<this.length;C$++){var L$=(this.words[C$]|0)*f,R$=(L$&67108863)+(F0&67108863);F0>>=26,F0+=L$/67108864|0,F0+=R$>>>26,this.words[C$]=R$&67108863}return F0!==0&&(this.words[C$]=F0,this.length++),D$?this.ineg():this},$$.prototype.muln=function(f){return this.clone().imuln(f)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(f){var D$=K$(f);if(D$.length===0)return new $$(1);for(var F0=this,C$=0;C$<D$.length&&D$[C$]===0;C$++,F0=F0.sqr());if(++C$<D$.length)for(var L$=F0.sqr();C$<D$.length;C$++,L$=L$.sqr())D$[C$]!==0&&(F0=F0.mul(L$));return F0},$$.prototype.iushln=function(f){r0(typeof f=="number"&&f>=0);var D$=f%26,F0=(f-D$)/26,C$=67108863>>>26-D$<<26-D$,L$;if(D$!==0){var R$=0;for(L$=0;L$<this.length;L$++){var P$=this.words[L$]&C$,z$=(this.words[L$]|0)-P$<<D$;this.words[L$]=z$|R$,R$=P$>>>26-D$}R$&&(this.words[L$]=R$,this.length++)}if(F0!==0){for(L$=this.length-1;L$>=0;L$--)this.words[L$+F0]=this.words[L$];for(L$=0;L$<F0;L$++)this.words[L$]=0;this.length+=F0}return this._strip()},$$.prototype.ishln=function(f){return r0(this.negative===0),this.iushln(f)},$$.prototype.iushrn=function(f,D$,F0){r0(typeof f=="number"&&f>=0);var C$;D$?C$=(D$-D$%26)/26:C$=0;var L$=f%26,R$=Math.min((f-L$)/26,this.length),P$=67108863^67108863>>>L$<<L$,z$=F0;if(C$-=R$,C$=Math.max(0,C$),z$){for(var M$=0;M$<R$;M$++)z$.words[M$]=this.words[M$];z$.length=R$}if(R$!==0)if(this.length>R$)for(this.length-=R$,M$=0;M$<this.length;M$++)this.words[M$]=this.words[M$+R$];else this.words[0]=0,this.length=1;var S$=0;for(M$=this.length-1;M$>=0&&(S$!==0||M$>=C$);M$--){var Z=this.words[M$]|0;this.words[M$]=S$<<26-L$|Z>>>L$,S$=Z&P$}return z$&&S$!==0&&(z$.words[z$.length++]=S$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},$$.prototype.ishrn=function(f,D$,F0){return r0(this.negative===0),this.iushrn(f,D$,F0)},$$.prototype.shln=function(f){return this.clone().ishln(f)},$$.prototype.ushln=function(f){return this.clone().iushln(f)},$$.prototype.shrn=function(f){return this.clone().ishrn(f)},$$.prototype.ushrn=function(f){return this.clone().iushrn(f)},$$.prototype.testn=function(f){r0(typeof f=="number"&&f>=0);var D$=f%26,F0=(f-D$)/26,C$=1<<D$;if(this.length<=F0)return!1;var L$=this.words[F0];return!!(L$&C$)},$$.prototype.imaskn=function(f){r0(typeof f=="number"&&f>=0);var D$=f%26,F0=(f-D$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=F0)return this;if(D$!==0&&F0++,this.length=Math.min(F0,this.length),D$!==0){var C$=67108863^67108863>>>D$<<D$;this.words[this.length-1]&=C$}return this._strip()},$$.prototype.maskn=function(f){return this.clone().imaskn(f)},$$.prototype.iaddn=function(f){return r0(typeof f=="number"),r0(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},$$.prototype._iaddn=function(f){this.words[0]+=f;for(var D$=0;D$<this.length&&this.words[D$]>=67108864;D$++)this.words[D$]-=67108864,D$===this.length-1?this.words[D$+1]=1:this.words[D$+1]++;return this.length=Math.max(this.length,D$+1),this},$$.prototype.isubn=function(f){if(r0(typeof f=="number"),r0(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D$=0;D$<this.length&&this.words[D$]<0;D$++)this.words[D$]+=67108864,this.words[D$+1]-=1;return this._strip()},$$.prototype.addn=function(f){return this.clone().iaddn(f)},$$.prototype.subn=function(f){return this.clone().isubn(f)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(f,D$,F0){var C$=f.length+F0,L$;this._expand(C$);var R$,P$=0;for(L$=0;L$<f.length;L$++){R$=(this.words[L$+F0]|0)+P$;var z$=(f.words[L$]|0)*D$;R$-=z$&67108863,P$=(R$>>26)-(z$/67108864|0),this.words[L$+F0]=R$&67108863}for(;L$<this.length-F0;L$++)R$=(this.words[L$+F0]|0)+P$,P$=R$>>26,this.words[L$+F0]=R$&67108863;if(P$===0)return this._strip();for(r0(P$===-1),P$=0,L$=0;L$<this.length;L$++)R$=-(this.words[L$]|0)+P$,P$=R$>>26,this.words[L$]=R$&67108863;return this.negative=1,this._strip()},$$.prototype._wordDiv=function(f,D$){var F0=this.length-f.length,C$=this.clone(),L$=f,R$=L$.words[L$.length-1]|0,P$=this._countBits(R$);F0=26-P$,F0!==0&&(L$=L$.ushln(F0),C$.iushln(F0),R$=L$.words[L$.length-1]|0);var z$=C$.length-L$.length,M$;if(D$!=="mod"){M$=new $$(null),M$.length=z$+1,M$.words=new Array(M$.length);for(var S$=0;S$<M$.length;S$++)M$.words[S$]=0}var Z=C$.clone()._ishlnsubmul(L$,1,z$);Z.negative===0&&(C$=Z,M$&&(M$.words[z$]=1));for(var c=z$-1;c>=0;c--){var v$=(C$.words[L$.length+c]|0)*67108864+(C$.words[L$.length+c-1]|0);for(v$=Math.min(v$/R$|0,67108863),C$._ishlnsubmul(L$,v$,c);C$.negative!==0;)v$--,C$.negative=0,C$._ishlnsubmul(L$,1,c),C$.isZero()||(C$.negative^=1);M$&&(M$.words[c]=v$)}return M$&&M$._strip(),C$._strip(),D$!=="div"&&F0!==0&&C$.iushrn(F0),{div:M$||null,mod:C$}},$$.prototype.divmod=function(f,D$,F0){if(r0(!f.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var C$,L$,R$;return this.negative!==0&&f.negative===0?(R$=this.neg().divmod(f,D$),D$!=="mod"&&(C$=R$.div.neg()),D$!=="div"&&(L$=R$.mod.neg(),F0&&L$.negative!==0&&L$.iadd(f)),{div:C$,mod:L$}):this.negative===0&&f.negative!==0?(R$=this.divmod(f.neg(),D$),D$!=="mod"&&(C$=R$.div.neg()),{div:C$,mod:R$.mod}):(this.negative&f.negative)!==0?(R$=this.neg().divmod(f.neg(),D$),D$!=="div"&&(L$=R$.mod.neg(),F0&&L$.negative!==0&&L$.isub(f)),{div:R$.div,mod:L$}):f.length>this.length||this.cmp(f)<0?{div:new $$(0),mod:this}:f.length===1?D$==="div"?{div:this.divn(f.words[0]),mod:null}:D$==="mod"?{div:null,mod:new $$(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new $$(this.modrn(f.words[0]))}:this._wordDiv(f,D$)},$$.prototype.div=function(f){return this.divmod(f,"div",!1).div},$$.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},$$.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},$$.prototype.divRound=function(f){var D$=this.divmod(f);if(D$.mod.isZero())return D$.div;var F0=D$.div.negative!==0?D$.mod.isub(f):D$.mod,C$=f.ushrn(1),L$=f.andln(1),R$=F0.cmp(C$);return R$<0||L$===1&&R$===0?D$.div:D$.div.negative!==0?D$.div.isubn(1):D$.div.iaddn(1)},$$.prototype.modrn=function(f){var D$=f<0;D$&&(f=-f),r0(f<=67108863);for(var F0=(1<<26)%f,C$=0,L$=this.length-1;L$>=0;L$--)C$=(F0*C$+(this.words[L$]|0))%f;return D$?-C$:C$},$$.prototype.modn=function(f){return this.modrn(f)},$$.prototype.idivn=function(f){var D$=f<0;D$&&(f=-f),r0(f<=67108863);for(var F0=0,C$=this.length-1;C$>=0;C$--){var L$=(this.words[C$]|0)+F0*67108864;this.words[C$]=L$/f|0,F0=L$%f}return this._strip(),D$?this.ineg():this},$$.prototype.divn=function(f){return this.clone().idivn(f)},$$.prototype.egcd=function(f){r0(f.negative===0),r0(!f.isZero());var D$=this,F0=f.clone();D$.negative!==0?D$=D$.umod(f):D$=D$.clone();for(var C$=new $$(1),L$=new $$(0),R$=new $$(0),P$=new $$(1),z$=0;D$.isEven()&&F0.isEven();)D$.iushrn(1),F0.iushrn(1),++z$;for(var M$=F0.clone(),S$=D$.clone();!D$.isZero();){for(var Z=0,c=1;(D$.words[0]&c)===0&&Z<26;++Z,c<<=1);if(Z>0)for(D$.iushrn(Z);Z-- >0;)(C$.isOdd()||L$.isOdd())&&(C$.iadd(M$),L$.isub(S$)),C$.iushrn(1),L$.iushrn(1);for(var v$=0,A0=1;(F0.words[0]&A0)===0&&v$<26;++v$,A0<<=1);if(v$>0)for(F0.iushrn(v$);v$-- >0;)(R$.isOdd()||P$.isOdd())&&(R$.iadd(M$),P$.isub(S$)),R$.iushrn(1),P$.iushrn(1);D$.cmp(F0)>=0?(D$.isub(F0),C$.isub(R$),L$.isub(P$)):(F0.isub(D$),R$.isub(C$),P$.isub(L$))}return{a:R$,b:P$,gcd:F0.iushln(z$)}},$$.prototype._invmp=function(f){r0(f.negative===0),r0(!f.isZero());var D$=this,F0=f.clone();D$.negative!==0?D$=D$.umod(f):D$=D$.clone();for(var C$=new $$(1),L$=new $$(0),R$=F0.clone();D$.cmpn(1)>0&&F0.cmpn(1)>0;){for(var P$=0,z$=1;(D$.words[0]&z$)===0&&P$<26;++P$,z$<<=1);if(P$>0)for(D$.iushrn(P$);P$-- >0;)C$.isOdd()&&C$.iadd(R$),C$.iushrn(1);for(var M$=0,S$=1;(F0.words[0]&S$)===0&&M$<26;++M$,S$<<=1);if(M$>0)for(F0.iushrn(M$);M$-- >0;)L$.isOdd()&&L$.iadd(R$),L$.iushrn(1);D$.cmp(F0)>=0?(D$.isub(F0),C$.isub(L$)):(F0.isub(D$),L$.isub(C$))}var Z;return D$.cmpn(1)===0?Z=C$:Z=L$,Z.cmpn(0)<0&&Z.iadd(f),Z},$$.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var D$=this.clone(),F0=f.clone();D$.negative=0,F0.negative=0;for(var C$=0;D$.isEven()&&F0.isEven();C$++)D$.iushrn(1),F0.iushrn(1);do{for(;D$.isEven();)D$.iushrn(1);for(;F0.isEven();)F0.iushrn(1);var L$=D$.cmp(F0);if(L$<0){var R$=D$;D$=F0,F0=R$}else if(L$===0||F0.cmpn(1)===0)break;D$.isub(F0)}while(!0);return F0.iushln(C$)},$$.prototype.invm=function(f){return this.egcd(f).a.umod(f)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(f){return this.words[0]&f},$$.prototype.bincn=function(f){r0(typeof f=="number");var D$=f%26,F0=(f-D$)/26,C$=1<<D$;if(this.length<=F0)return this._expand(F0+1),this.words[F0]|=C$,this;for(var L$=C$,R$=F0;L$!==0&&R$<this.length;R$++){var P$=this.words[R$]|0;P$+=L$,L$=P$>>>26,P$&=67108863,this.words[R$]=P$}return L$!==0&&(this.words[R$]=L$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(f){var D$=f<0;if(this.negative!==0&&!D$)return-1;if(this.negative===0&&D$)return 1;this._strip();var F0;if(this.length>1)F0=1;else{D$&&(f=-f),r0(f<=67108863,"Number is too big");var C$=this.words[0]|0;F0=C$===f?0:C$<f?-1:1}return this.negative!==0?-F0|0:F0},$$.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var D$=this.ucmp(f);return this.negative!==0?-D$|0:D$},$$.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var D$=0,F0=this.length-1;F0>=0;F0--){var C$=this.words[F0]|0,L$=f.words[F0]|0;if(C$!==L$){C$<L$?D$=-1:C$>L$&&(D$=1);break}}return D$},$$.prototype.gtn=function(f){return this.cmpn(f)===1},$$.prototype.gt=function(f){return this.cmp(f)===1},$$.prototype.gten=function(f){return this.cmpn(f)>=0},$$.prototype.gte=function(f){return this.cmp(f)>=0},$$.prototype.ltn=function(f){return this.cmpn(f)===-1},$$.prototype.lt=function(f){return this.cmp(f)===-1},$$.prototype.lten=function(f){return this.cmpn(f)<=0},$$.prototype.lte=function(f){return this.cmp(f)<=0},$$.prototype.eqn=function(f){return this.cmpn(f)===0},$$.prototype.eq=function(f){return this.cmp(f)===0},$$.red=function(f){return new T$(f)},$$.prototype.toRed=function(f){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(f){return this.red=f,this},$$.prototype.forceRed=function(f){return r0(!this.red,"Already a number in reduction context"),this._forceRed(f)},$$.prototype.redAdd=function(f){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},$$.prototype.redIAdd=function(f){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},$$.prototype.redSub=function(f){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},$$.prototype.redISub=function(f){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},$$.prototype.redShl=function(f){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},$$.prototype.redMul=function(f){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},$$.prototype.redIMul=function(f){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(f){return r0(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var J$={k256:null,p224:null,p192:null,p25519:null};function F$(f,D$){this.name=f,this.p=new $$(D$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F$.prototype._tmp=function(){var f=new $$(null);return f.words=new Array(Math.ceil(this.n/13)),f},F$.prototype.ireduce=function(f){var D$=f,F0;do this.split(D$,this.tmp),D$=this.imulK(D$),D$=D$.iadd(this.tmp),F0=D$.bitLength();while(F0>this.n);var C$=F0<this.n?-1:D$.ucmp(this.p);return C$===0?(D$.words[0]=0,D$.length=1):C$>0?D$.isub(this.p):D$.strip!==void 0?D$.strip():D$._strip(),D$},F$.prototype.split=function(f,D$){f.iushrn(this.n,0,D$)},F$.prototype.imulK=function(f){return f.imul(this.k)};function A$(){F$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(A$,F$),A$.prototype.split=function(f,D$){for(var F0=4194303,C$=Math.min(f.length,9),L$=0;L$<C$;L$++)D$.words[L$]=f.words[L$];if(D$.length=C$,f.length<=9){f.words[0]=0,f.length=1;return}var R$=f.words[9];for(D$.words[D$.length++]=R$&F0,L$=10;L$<f.length;L$++){var P$=f.words[L$]|0;f.words[L$-10]=(P$&F0)<<4|R$>>>22,R$=P$}R$>>>=22,f.words[L$-10]=R$,R$===0&&f.length>10?f.length-=10:f.length-=9},A$.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var D$=0,F0=0;F0<f.length;F0++){var C$=f.words[F0]|0;D$+=C$*977,f.words[F0]=D$&67108863,D$=C$*64+(D$/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function H$(){F$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(H$,F$);function W$(){F$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(W$,F$);function E$(){F$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(E$,F$),E$.prototype.imulK=function(f){for(var D$=0,F0=0;F0<f.length;F0++){var C$=(f.words[F0]|0)*19+D$,L$=C$&67108863;C$>>>=26,f.words[F0]=L$,D$=C$}return D$!==0&&(f.words[f.length++]=D$),f},$$._prime=function(f){if(J$[f])return J$[f];var D$;if(f==="k256")D$=new A$;else if(f==="p224")D$=new H$;else if(f==="p192")D$=new W$;else if(f==="p25519")D$=new E$;else throw new Error("Unknown prime "+f);return J$[f]=D$,D$};function T$(f){if(typeof f=="string"){var D$=$$._prime(f);this.m=D$.p,this.prime=D$}else r0(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}T$.prototype._verify1=function(f){r0(f.negative===0,"red works only with positives"),r0(f.red,"red works only with red numbers")},T$.prototype._verify2=function(f,D$){r0((f.negative|D$.negative)===0,"red works only with positives"),r0(f.red&&f.red===D$.red,"red works only with red numbers")},T$.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(O0(f,f.umod(this.m)._forceRed(this)),f)},T$.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},T$.prototype.add=function(f,D$){this._verify2(f,D$);var F0=f.add(D$);return F0.cmp(this.m)>=0&&F0.isub(this.m),F0._forceRed(this)},T$.prototype.iadd=function(f,D$){this._verify2(f,D$);var F0=f.iadd(D$);return F0.cmp(this.m)>=0&&F0.isub(this.m),F0},T$.prototype.sub=function(f,D$){this._verify2(f,D$);var F0=f.sub(D$);return F0.cmpn(0)<0&&F0.iadd(this.m),F0._forceRed(this)},T$.prototype.isub=function(f,D$){this._verify2(f,D$);var F0=f.isub(D$);return F0.cmpn(0)<0&&F0.iadd(this.m),F0},T$.prototype.shl=function(f,D$){return this._verify1(f),this.imod(f.ushln(D$))},T$.prototype.imul=function(f,D$){return this._verify2(f,D$),this.imod(f.imul(D$))},T$.prototype.mul=function(f,D$){return this._verify2(f,D$),this.imod(f.mul(D$))},T$.prototype.isqr=function(f){return this.imul(f,f.clone())},T$.prototype.sqr=function(f){return this.mul(f,f)},T$.prototype.sqrt=function(f){if(f.isZero())return f.clone();var D$=this.m.andln(3);if(r0(D$%2===1),D$===3){var F0=this.m.add(new $$(1)).iushrn(2);return this.pow(f,F0)}for(var C$=this.m.subn(1),L$=0;!C$.isZero()&&C$.andln(1)===0;)L$++,C$.iushrn(1);r0(!C$.isZero());var R$=new $$(1).toRed(this),P$=R$.redNeg(),z$=this.m.subn(1).iushrn(1),M$=this.m.bitLength();for(M$=new $$(2*M$*M$).toRed(this);this.pow(M$,z$).cmp(P$)!==0;)M$.redIAdd(P$);for(var S$=this.pow(M$,C$),Z=this.pow(f,C$.addn(1).iushrn(1)),c=this.pow(f,C$),v$=L$;c.cmp(R$)!==0;){for(var A0=c,q$=0;A0.cmp(R$)!==0;q$++)A0=A0.redSqr();r0(q$<v$);var j$=this.pow(S$,new $$(1).iushln(v$-q$-1));Z=Z.redMul(j$),S$=j$.redSqr(),c=c.redMul(S$),v$=q$}return Z},T$.prototype.invm=function(f){var D$=f._invmp(this.m);return D$.negative!==0?(D$.negative=0,this.imod(D$).redNeg()):this.imod(D$)},T$.prototype.pow=function(f,D$){if(D$.isZero())return new $$(1).toRed(this);if(D$.cmpn(1)===0)return f.clone();var F0=4,C$=new Array(1<<F0);C$[0]=new $$(1).toRed(this),C$[1]=f;for(var L$=2;L$<C$.length;L$++)C$[L$]=this.mul(C$[L$-1],f);var R$=C$[0],P$=0,z$=0,M$=D$.bitLength()%26;for(M$===0&&(M$=26),L$=D$.length-1;L$>=0;L$--){for(var S$=D$.words[L$],Z=M$-1;Z>=0;Z--){var c=S$>>Z&1;if(R$!==C$[0]&&(R$=this.sqr(R$)),c===0&&P$===0){z$=0;continue}P$<<=1,P$|=c,z$++,!(z$!==F0&&(L$!==0||Z!==0))&&(R$=this.mul(R$,C$[P$]),z$=0,P$=0)}M$=26}return R$},T$.prototype.convertTo=function(f){var D$=f.umod(this.m);return D$===f?D$.clone():D$},T$.prototype.convertFrom=function(f){var D$=f.clone();return D$.red=null,D$},$$.mont=function(f){return new Y(f)};function Y(f){T$.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(Y,T$),Y.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Y.prototype.convertFrom=function(f){var D$=this.imod(f.mul(this.rinv));return D$.red=null,D$},Y.prototype.imul=function(f,D$){if(f.isZero()||D$.isZero())return f.words[0]=0,f.length=1,f;var F0=f.imul(D$),C$=F0.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L$=F0.isub(C$).iushrn(this.shift),R$=L$;return L$.cmp(this.m)>=0?R$=L$.isub(this.m):L$.cmpn(0)<0&&(R$=L$.iadd(this.m)),R$._forceRed(this)},Y.prototype.mul=function(f,D$){if(f.isZero()||D$.isZero())return new $$(0)._forceRed(this);var F0=f.mul(D$),C$=F0.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L$=F0.isub(C$).iushrn(this.shift),R$=L$;return L$.cmp(this.m)>=0?R$=L$.isub(this.m):L$.cmpn(0)<0&&(R$=L$.iadd(this.m)),R$._forceRed(this)},Y.prototype.invm=function(f){var D$=this.imod(f._invmp(this.m).mul(this.r2));return D$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),qY=pQ({"node_modules/browserify-rsa/index.js"(t0,m0){var a0=vY(),e0=hQ();function r0(Q$){var $=i0(Q$),N=$.toRed(a0.mont(Q$.modulus)).redPow(new a0(Q$.publicExponent)).fromRed();return{blinder:N,unblinder:$.invm(Q$.modulus)}}function i0(Q$){var $=Q$.modulus.byteLength(),N;do N=new a0(e0($));while(N.cmp(Q$.modulus)>=0||!N.umod(Q$.prime1)||!N.umod(Q$.prime2));return N}function $$(Q$,$){var N=r0($),Y$=$.modulus.byteLength(),O0=new a0(Q$).mul(N.blinder).umod($.modulus),Z$=O0.toRed(a0.mont($.prime1)),G$=O0.toRed(a0.mont($.prime2)),V$=$.coefficient,U$=$.prime1,X$=$.prime2,K$=Z$.redPow($.exponent1).fromRed(),I$=G$.redPow($.exponent2).fromRed(),Q=K$.isub(I$).imul(V$).umod(U$).imul(X$);return I$.iadd(Q).imul(N.unblinder).umod($.modulus).toArrayLike(G0,"be",Y$)}$$.getr=i0,m0.exports=$$}}),jY=pQ({"node_modules/elliptic/package.json"(t0,m0){m0.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 <fedor@indutny.com>",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"}}}}),kY=pQ({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),gY=pQ({"node_modules/minimalistic-crypto-utils/lib/utils.js"(t0){var m0=t0;function a0(i0,$$){if(Array.isArray(i0))return i0.slice();if(!i0)return[];var Q$=[];if(typeof i0!="string"){for(var $=0;$<i0.length;$++)Q$[$]=i0[$]|0;return Q$}if($$==="hex"){i0=i0.replace(/[^a-z0-9]+/gi,""),i0.length%2!==0&&(i0="0"+i0);for(var $=0;$<i0.length;$+=2)Q$.push(parseInt(i0[$]+i0[$+1],16))}else for(var $=0;$<i0.length;$++){var N=i0.charCodeAt($),Y$=N>>8,O0=N&255;Y$?Q$.push(Y$,O0):Q$.push(O0)}return Q$}m0.toArray=a0;function e0(i0){return i0.length===1?"0"+i0:i0}m0.zero2=e0;function r0(i0){for(var $$="",Q$=0;Q$<i0.length;Q$++)$$+=e0(i0[Q$].toString(16));return $$}m0.toHex=r0,m0.encode=function(i0,$$){return $$==="hex"?r0(i0):i0}}}),D=pQ({"node_modules/elliptic/lib/elliptic/utils.js"(t0){var m0=t0,a0=kY(),e0=v0(),r0=gY();m0.assert=e0,m0.toArray=r0.toArray,m0.zero2=r0.zero2,m0.toHex=r0.toHex,m0.encode=r0.encode;function i0(Y$,O0,Z$){var G$=new Array(Math.max(Y$.bitLength(),Z$)+1);G$.fill(0);for(var V$=1<<O0+1,U$=Y$.clone(),X$=0;X$<G$.length;X$++){var K$,I$=U$.andln(V$-1);U$.isOdd()?(I$>(V$>>1)-1?K$=(V$>>1)-I$:K$=I$,U$.isubn(K$)):K$=0,G$[X$]=K$,U$.iushrn(1)}return G$}m0.getNAF=i0;function $$(Y$,O0){var Z$=[[],[]];Y$=Y$.clone(),O0=O0.clone();for(var G$=0,V$=0,U$;Y$.cmpn(-G$)>0||O0.cmpn(-V$)>0;){var X$=Y$.andln(3)+G$&3,K$=O0.andln(3)+V$&3;X$===3&&(X$=-1),K$===3&&(K$=-1);var I$;(X$&1)===0?I$=0:(U$=Y$.andln(7)+G$&7,(U$===3||U$===5)&&K$===2?I$=-X$:I$=X$),Z$[0].push(I$);var Q;(K$&1)===0?Q=0:(U$=O0.andln(7)+V$&7,(U$===3||U$===5)&&X$===2?Q=-K$:Q=K$),Z$[1].push(Q),2*G$===I$+1&&(G$=1-G$),2*V$===Q+1&&(V$=1-V$),Y$.iushrn(1),O0.iushrn(1)}return Z$}m0.getJSF=$$;function Q$(Y$,O0,Z$){var G$="_"+O0;Y$.prototype[O0]=function(){return this[G$]!==void 0?this[G$]:this[G$]=Z$.call(this)}}m0.cachedProperty=Q$;function $(Y$){return typeof Y$=="string"?m0.toArray(Y$,"hex"):Y$}m0.parseBytes=$;function N(Y$){return new a0(Y$,"hex","le")}m0.intFromLE=N}}),m=pQ({"node_modules/elliptic/lib/elliptic/curve/base.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.getNAF,i0=e0.getJSF,$$=e0.assert;function Q$(N,Y$){this.type=N,this.p=new a0(Y$.p,16),this.red=Y$.prime?a0.red(Y$.prime):a0.mont(this.p),this.zero=new a0(0).toRed(this.red),this.one=new a0(1).toRed(this.red),this.two=new a0(2).toRed(this.red),this.n=Y$.n&&new a0(Y$.n,16),this.g=Y$.g&&this.pointFromJSON(Y$.g,Y$.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 O0=this.n&&this.p.div(this.n);!O0||O0.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}m0.exports=Q$,Q$.prototype.point=function(){throw new Error("Not implemented")},Q$.prototype.validate=function(){throw new Error("Not implemented")},Q$.prototype._fixedNafMul=function(N,Y$){$$(N.precomputed);var O0=N._getDoubles(),Z$=r0(Y$,1,this._bitLength),G$=(1<<O0.step+1)-(O0.step%2===0?2:1);G$/=3;var V$=[],U$,X$;for(U$=0;U$<Z$.length;U$+=O0.step){X$=0;for(var K$=U$+O0.step-1;K$>=U$;K$--)X$=(X$<<1)+Z$[K$];V$.push(X$)}for(var I$=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),x=G$;x>0;x--){for(U$=0;U$<V$.length;U$++)X$=V$[U$],X$===x?Q=Q.mixedAdd(O0.points[U$]):X$===-x&&(Q=Q.mixedAdd(O0.points[U$].neg()));I$=I$.add(Q)}return I$.toP()},Q$.prototype._wnafMul=function(N,Y$){var O0=4,Z$=N._getNAFPoints(O0);O0=Z$.wnd;for(var G$=Z$.points,V$=r0(Y$,O0,this._bitLength),U$=this.jpoint(null,null,null),X$=V$.length-1;X$>=0;X$--){for(var K$=0;X$>=0&&V$[X$]===0;X$--)K$++;if(X$>=0&&K$++,U$=U$.dblp(K$),X$<0)break;var I$=V$[X$];$$(I$!==0),N.type==="affine"?I$>0?U$=U$.mixedAdd(G$[I$-1>>1]):U$=U$.mixedAdd(G$[-I$-1>>1].neg()):I$>0?U$=U$.add(G$[I$-1>>1]):U$=U$.add(G$[-I$-1>>1].neg())}return N.type==="affine"?U$.toP():U$},Q$.prototype._wnafMulAdd=function(N,Y$,O0,Z$,G$){var V$=this._wnafT1,U$=this._wnafT2,X$=this._wnafT3,K$=0,I$,Q,x;for(I$=0;I$<Z$;I$++){x=Y$[I$];var O$=x._getNAFPoints(N);V$[I$]=O$.wnd,U$[I$]=O$.points}for(I$=Z$-1;I$>=1;I$-=2){var J0=I$-1,J$=I$;if(V$[J0]!==1||V$[J$]!==1){X$[J0]=r0(O0[J0],V$[J0],this._bitLength),X$[J$]=r0(O0[J$],V$[J$],this._bitLength),K$=Math.max(X$[J0].length,K$),K$=Math.max(X$[J$].length,K$);continue}var F$=[Y$[J0],null,null,Y$[J$]];Y$[J0].y.cmp(Y$[J$].y)===0?(F$[1]=Y$[J0].add(Y$[J$]),F$[2]=Y$[J0].toJ().mixedAdd(Y$[J$].neg())):Y$[J0].y.cmp(Y$[J$].y.redNeg())===0?(F$[1]=Y$[J0].toJ().mixedAdd(Y$[J$]),F$[2]=Y$[J0].add(Y$[J$].neg())):(F$[1]=Y$[J0].toJ().mixedAdd(Y$[J$]),F$[2]=Y$[J0].toJ().mixedAdd(Y$[J$].neg()));var A$=[-3,-1,-5,-7,0,7,5,1,3],H$=i0(O0[J0],O0[J$]);for(K$=Math.max(H$[0].length,K$),X$[J0]=new Array(K$),X$[J$]=new Array(K$),Q=0;Q<K$;Q++){var W$=H$[0][Q]|0,E$=H$[1][Q]|0;X$[J0][Q]=A$[(W$+1)*3+(E$+1)],X$[J$][Q]=0,U$[J0]=F$}}var T$=this.jpoint(null,null,null),Y=this._wnafT4;for(I$=K$;I$>=0;I$--){for(var f=0;I$>=0;){var D$=!0;for(Q=0;Q<Z$;Q++)Y[Q]=X$[Q][I$]|0,Y[Q]!==0&&(D$=!1);if(!D$)break;f++,I$--}if(I$>=0&&f++,T$=T$.dblp(f),I$<0)break;for(Q=0;Q<Z$;Q++){var F0=Y[Q];F0!==0&&(F0>0?x=U$[Q][F0-1>>1]:F0<0&&(x=U$[Q][-F0-1>>1].neg()),x.type==="affine"?T$=T$.mixedAdd(x):T$=T$.add(x))}}for(I$=0;I$<Z$;I$++)U$[I$]=null;return G$?T$:T$.toP()};function $(N,Y$){this.curve=N,this.type=Y$,this.precomputed=null}Q$.BasePoint=$,$.prototype.eq=function(){throw new Error("Not implemented")},$.prototype.validate=function(){return this.curve.validate(this)},Q$.prototype.decodePoint=function(N,Y$){N=e0.toArray(N,Y$);var O0=this.p.byteLength();if((N[0]===4||N[0]===6||N[0]===7)&&N.length-1===2*O0){N[0]===6?$$(N[N.length-1]%2===0):N[0]===7&&$$(N[N.length-1]%2===1);var Z$=this.point(N.slice(1,1+O0),N.slice(1+O0,1+2*O0));return Z$}else if((N[0]===2||N[0]===3)&&N.length-1===O0)return this.pointFromX(N.slice(1,1+O0),N[0]===3);throw new Error("Unknown point format")},$.prototype.encodeCompressed=function(N){return this.encode(N,!0)},$.prototype._encode=function(N){var Y$=this.curve.p.byteLength(),O0=this.getX().toArray("be",Y$);return N?[this.getY().isEven()?2:3].concat(O0):[4].concat(O0,this.getY().toArray("be",Y$))},$.prototype.encode=function(N,Y$){return e0.encode(this._encode(Y$),N)},$.prototype.precompute=function(N){if(this.precomputed)return this;var Y$={doubles:null,naf:null,beta:null};return Y$.naf=this._getNAFPoints(8),Y$.doubles=this._getDoubles(4,N),Y$.beta=this._getBeta(),this.precomputed=Y$,this},$.prototype._hasDoubles=function(N){if(!this.precomputed)return!1;var Y$=this.precomputed.doubles;return Y$?Y$.points.length>=Math.ceil((N.bitLength()+1)/Y$.step):!1},$.prototype._getDoubles=function(N,Y$){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O0=[this],Z$=this,G$=0;G$<Y$;G$+=N){for(var V$=0;V$<N;V$++)Z$=Z$.dbl();O0.push(Z$)}return{step:N,points:O0}},$.prototype._getNAFPoints=function(N){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var Y$=[this],O0=(1<<N)-1,Z$=O0===1?null:this.dbl(),G$=1;G$<O0;G$++)Y$[G$]=Y$[G$-1].add(Z$);return{wnd:N,points:Y$}},$.prototype._getBeta=function(){return null},$.prototype.dblp=function(N){for(var Y$=this,O0=0;O0<N;O0++)Y$=Y$.dbl();return Y$}}}),x0=pQ({"node_modules/elliptic/lib/elliptic/curve/short.js"(t0,m0){var a0=D(),e0=kY(),r0=dQ(),i0=m(),$$=a0.assert;function Q$(Y$){i0.call(this,"short",Y$),this.a=new e0(Y$.a,16).toRed(this.red),this.b=new e0(Y$.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(Y$),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r0(Q$,i0),m0.exports=Q$,Q$.prototype._getEndomorphism=function(Y$){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var O0,Z$;if(Y$.beta)O0=new e0(Y$.beta,16).toRed(this.red);else{var G$=this._getEndoRoots(this.p);O0=G$[0].cmp(G$[1])<0?G$[0]:G$[1],O0=O0.toRed(this.red)}if(Y$.lambda)Z$=new e0(Y$.lambda,16);else{var V$=this._getEndoRoots(this.n);this.g.mul(V$[0]).x.cmp(this.g.x.redMul(O0))===0?Z$=V$[0]:(Z$=V$[1],$$(this.g.mul(Z$).x.cmp(this.g.x.redMul(O0))===0))}var U$;return Y$.basis?U$=Y$.basis.map(function(X$){return{a:new e0(X$.a,16),b:new e0(X$.b,16)}}):U$=this._getEndoBasis(Z$),{beta:O0,lambda:Z$,basis:U$}}},Q$.prototype._getEndoRoots=function(Y$){var O0=Y$===this.p?this.red:e0.mont(Y$),Z$=new e0(2).toRed(O0).redInvm(),G$=Z$.redNeg(),V$=new e0(3).toRed(O0).redNeg().redSqrt().redMul(Z$),U$=G$.redAdd(V$).fromRed(),X$=G$.redSub(V$).fromRed();return[U$,X$]},Q$.prototype._getEndoBasis=function(Y$){for(var O0=this.n.ushrn(Math.floor(this.n.bitLength()/2)),Z$=Y$,G$=this.n.clone(),V$=new e0(1),U$=new e0(0),X$=new e0(0),K$=new e0(1),I$,Q,x,O$,J0,J$,F$,A$=0,H$,W$;Z$.cmpn(0)!==0;){var E$=G$.div(Z$);H$=G$.sub(E$.mul(Z$)),W$=X$.sub(E$.mul(V$));var T$=K$.sub(E$.mul(U$));if(!x&&H$.cmp(O0)<0)I$=F$.neg(),Q=V$,x=H$.neg(),O$=W$;else if(x&&++A$===2)break;F$=H$,G$=Z$,Z$=H$,X$=V$,V$=W$,K$=U$,U$=T$}J0=H$.neg(),J$=W$;var Y=x.sqr().add(O$.sqr()),f=J0.sqr().add(J$.sqr());return f.cmp(Y)>=0&&(J0=I$,J$=Q),x.negative&&(x=x.neg(),O$=O$.neg()),J0.negative&&(J0=J0.neg(),J$=J$.neg()),[{a:x,b:O$},{a:J0,b:J$}]},Q$.prototype._endoSplit=function(Y$){var O0=this.endo.basis,Z$=O0[0],G$=O0[1],V$=G$.b.mul(Y$).divRound(this.n),U$=Z$.b.neg().mul(Y$).divRound(this.n),X$=V$.mul(Z$.a),K$=U$.mul(G$.a),I$=V$.mul(Z$.b),Q=U$.mul(G$.b),x=Y$.sub(X$).sub(K$),O$=I$.add(Q).neg();return{k1:x,k2:O$}},Q$.prototype.pointFromX=function(Y$,O0){Y$=new e0(Y$,16),Y$.red||(Y$=Y$.toRed(this.red));var Z$=Y$.redSqr().redMul(Y$).redIAdd(Y$.redMul(this.a)).redIAdd(this.b),G$=Z$.redSqrt();if(G$.redSqr().redSub(Z$).cmp(this.zero)!==0)throw new Error("invalid point");var V$=G$.fromRed().isOdd();return(O0&&!V$||!O0&&V$)&&(G$=G$.redNeg()),this.point(Y$,G$)},Q$.prototype.validate=function(Y$){if(Y$.inf)return!0;var{x:O0,y:Z$}=Y$,G$=this.a.redMul(O0),V$=O0.redSqr().redMul(O0).redIAdd(G$).redIAdd(this.b);return Z$.redSqr().redISub(V$).cmpn(0)===0},Q$.prototype._endoWnafMulAdd=function(Y$,O0,Z$){for(var G$=this._endoWnafT1,V$=this._endoWnafT2,U$=0;U$<Y$.length;U$++){var X$=this._endoSplit(O0[U$]),K$=Y$[U$],I$=K$._getBeta();X$.k1.negative&&(X$.k1.ineg(),K$=K$.neg(!0)),X$.k2.negative&&(X$.k2.ineg(),I$=I$.neg(!0)),G$[U$*2]=K$,G$[U$*2+1]=I$,V$[U$*2]=X$.k1,V$[U$*2+1]=X$.k2}for(var Q=this._wnafMulAdd(1,G$,V$,U$*2,Z$),x=0;x<U$*2;x++)G$[x]=null,V$[x]=null;return Q};function $(Y$,O0,Z$,G$){i0.BasePoint.call(this,Y$,"affine"),O0===null&&Z$===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new e0(O0,16),this.y=new e0(Z$,16),G$&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r0($,i0.BasePoint),Q$.prototype.point=function(Y$,O0,Z$){return new $(this,Y$,O0,Z$)},Q$.prototype.pointFromJSON=function(Y$,O0){return $.fromJSON(this,Y$,O0)},$.prototype._getBeta=function(){if(this.curve.endo){var Y$=this.precomputed;if(Y$&&Y$.beta)return Y$.beta;var O0=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(Y$){var Z$=this.curve,G$=function(V$){return Z$.point(V$.x.redMul(Z$.endo.beta),V$.y)};Y$.beta=O0,O0.precomputed={beta:null,naf:Y$.naf&&{wnd:Y$.naf.wnd,points:Y$.naf.points.map(G$)},doubles:Y$.doubles&&{step:Y$.doubles.step,points:Y$.doubles.points.map(G$)}}}return O0}},$.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},$.fromJSON=function(Y$,O0,Z$){typeof O0=="string"&&(O0=JSON.parse(O0));var G$=Y$.point(O0[0],O0[1],Z$);if(!O0[2])return G$;function V$(X$){return Y$.point(X$[0],X$[1],Z$)}var U$=O0[2];return G$.precomputed={beta:null,doubles:U$.doubles&&{step:U$.doubles.step,points:[G$].concat(U$.doubles.points.map(V$))},naf:U$.naf&&{wnd:U$.naf.wnd,points:[G$].concat(U$.naf.points.map(V$))}},G$},$.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},$.prototype.isInfinity=function(){return this.inf},$.prototype.add=function(Y$){if(this.inf)return Y$;if(Y$.inf)return this;if(this.eq(Y$))return this.dbl();if(this.neg().eq(Y$))return this.curve.point(null,null);if(this.x.cmp(Y$.x)===0)return this.curve.point(null,null);var O0=this.y.redSub(Y$.y);O0.cmpn(0)!==0&&(O0=O0.redMul(this.x.redSub(Y$.x).redInvm()));var Z$=O0.redSqr().redISub(this.x).redISub(Y$.x),G$=O0.redMul(this.x.redSub(Z$)).redISub(this.y);return this.curve.point(Z$,G$)},$.prototype.dbl=function(){if(this.inf)return this;var Y$=this.y.redAdd(this.y);if(Y$.cmpn(0)===0)return this.curve.point(null,null);var O0=this.curve.a,Z$=this.x.redSqr(),G$=Y$.redInvm(),V$=Z$.redAdd(Z$).redIAdd(Z$).redIAdd(O0).redMul(G$),U$=V$.redSqr().redISub(this.x.redAdd(this.x)),X$=V$.redMul(this.x.redSub(U$)).redISub(this.y);return this.curve.point(U$,X$)},$.prototype.getX=function(){return this.x.fromRed()},$.prototype.getY=function(){return this.y.fromRed()},$.prototype.mul=function(Y$){return Y$=new e0(Y$,16),this.isInfinity()?this:this._hasDoubles(Y$)?this.curve._fixedNafMul(this,Y$):this.curve.endo?this.curve._endoWnafMulAdd([this],[Y$]):this.curve._wnafMul(this,Y$)},$.prototype.mulAdd=function(Y$,O0,Z$){var G$=[this,O0],V$=[Y$,Z$];return this.curve.endo?this.curve._endoWnafMulAdd(G$,V$):this.curve._wnafMulAdd(1,G$,V$,2)},$.prototype.jmulAdd=function(Y$,O0,Z$){var G$=[this,O0],V$=[Y$,Z$];return this.curve.endo?this.curve._endoWnafMulAdd(G$,V$,!0):this.curve._wnafMulAdd(1,G$,V$,2,!0)},$.prototype.eq=function(Y$){return this===Y$||this.inf===Y$.inf&&(this.inf||this.x.cmp(Y$.x)===0&&this.y.cmp(Y$.y)===0)},$.prototype.neg=function(Y$){if(this.inf)return this;var O0=this.curve.point(this.x,this.y.redNeg());if(Y$&&this.precomputed){var Z$=this.precomputed,G$=function(V$){return V$.neg()};O0.precomputed={naf:Z$.naf&&{wnd:Z$.naf.wnd,points:Z$.naf.points.map(G$)},doubles:Z$.doubles&&{step:Z$.doubles.step,points:Z$.doubles.points.map(G$)}}}return O0},$.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var Y$=this.curve.jpoint(this.x,this.y,this.curve.one);return Y$};function N(Y$,O0,Z$,G$){i0.BasePoint.call(this,Y$,"jacobian"),O0===null&&Z$===null&&G$===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e0(0)):(this.x=new e0(O0,16),this.y=new e0(Z$,16),this.z=new e0(G$,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}r0(N,i0.BasePoint),Q$.prototype.jpoint=function(Y$,O0,Z$){return new N(this,Y$,O0,Z$)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Y$=this.z.redInvm(),O0=Y$.redSqr(),Z$=this.x.redMul(O0),G$=this.y.redMul(O0).redMul(Y$);return this.curve.point(Z$,G$)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(Y$){if(this.isInfinity())return Y$;if(Y$.isInfinity())return this;var O0=Y$.z.redSqr(),Z$=this.z.redSqr(),G$=this.x.redMul(O0),V$=Y$.x.redMul(Z$),U$=this.y.redMul(O0.redMul(Y$.z)),X$=Y$.y.redMul(Z$.redMul(this.z)),K$=G$.redSub(V$),I$=U$.redSub(X$);if(K$.cmpn(0)===0)return I$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Q=K$.redSqr(),x=Q.redMul(K$),O$=G$.redMul(Q),J0=I$.redSqr().redIAdd(x).redISub(O$).redISub(O$),J$=I$.redMul(O$.redISub(J0)).redISub(U$.redMul(x)),F$=this.z.redMul(Y$.z).redMul(K$);return this.curve.jpoint(J0,J$,F$)},N.prototype.mixedAdd=function(Y$){if(this.isInfinity())return Y$.toJ();if(Y$.isInfinity())return this;var O0=this.z.redSqr(),Z$=this.x,G$=Y$.x.redMul(O0),V$=this.y,U$=Y$.y.redMul(O0).redMul(this.z),X$=Z$.redSub(G$),K$=V$.redSub(U$);if(X$.cmpn(0)===0)return K$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I$=X$.redSqr(),Q=I$.redMul(X$),x=Z$.redMul(I$),O$=K$.redSqr().redIAdd(Q).redISub(x).redISub(x),J0=K$.redMul(x.redISub(O$)).redISub(V$.redMul(Q)),J$=this.z.redMul(X$);return this.curve.jpoint(O$,J0,J$)},N.prototype.dblp=function(Y$){if(Y$===0)return this;if(this.isInfinity())return this;if(!Y$)return this.dbl();var O0;if(this.curve.zeroA||this.curve.threeA){var Z$=this;for(O0=0;O0<Y$;O0++)Z$=Z$.dbl();return Z$}var G$=this.curve.a,V$=this.curve.tinv,U$=this.x,X$=this.y,K$=this.z,I$=K$.redSqr().redSqr(),Q=X$.redAdd(X$);for(O0=0;O0<Y$;O0++){var x=U$.redSqr(),O$=Q.redSqr(),J0=O$.redSqr(),J$=x.redAdd(x).redIAdd(x).redIAdd(G$.redMul(I$)),F$=U$.redMul(O$),A$=J$.redSqr().redISub(F$.redAdd(F$)),H$=F$.redISub(A$),W$=J$.redMul(H$);W$=W$.redIAdd(W$).redISub(J0);var E$=Q.redMul(K$);O0+1<Y$&&(I$=I$.redMul(J0)),U$=A$,K$=E$,Q=W$}return this.curve.jpoint(U$,Q.redMul(V$),K$)},N.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},N.prototype._zeroDbl=function(){var Y$,O0,Z$;if(this.zOne){var G$=this.x.redSqr(),V$=this.y.redSqr(),U$=V$.redSqr(),X$=this.x.redAdd(V$).redSqr().redISub(G$).redISub(U$);X$=X$.redIAdd(X$);var K$=G$.redAdd(G$).redIAdd(G$),I$=K$.redSqr().redISub(X$).redISub(X$),Q=U$.redIAdd(U$);Q=Q.redIAdd(Q),Q=Q.redIAdd(Q),Y$=I$,O0=K$.redMul(X$.redISub(I$)).redISub(Q),Z$=this.y.redAdd(this.y)}else{var x=this.x.redSqr(),O$=this.y.redSqr(),J0=O$.redSqr(),J$=this.x.redAdd(O$).redSqr().redISub(x).redISub(J0);J$=J$.redIAdd(J$);var F$=x.redAdd(x).redIAdd(x),A$=F$.redSqr(),H$=J0.redIAdd(J0);H$=H$.redIAdd(H$),H$=H$.redIAdd(H$),Y$=A$.redISub(J$).redISub(J$),O0=F$.redMul(J$.redISub(Y$)).redISub(H$),Z$=this.y.redMul(this.z),Z$=Z$.redIAdd(Z$)}return this.curve.jpoint(Y$,O0,Z$)},N.prototype._threeDbl=function(){var Y$,O0,Z$;if(this.zOne){var G$=this.x.redSqr(),V$=this.y.redSqr(),U$=V$.redSqr(),X$=this.x.redAdd(V$).redSqr().redISub(G$).redISub(U$);X$=X$.redIAdd(X$);var K$=G$.redAdd(G$).redIAdd(G$).redIAdd(this.curve.a),I$=K$.redSqr().redISub(X$).redISub(X$);Y$=I$;var Q=U$.redIAdd(U$);Q=Q.redIAdd(Q),Q=Q.redIAdd(Q),O0=K$.redMul(X$.redISub(I$)).redISub(Q),Z$=this.y.redAdd(this.y)}else{var x=this.z.redSqr(),O$=this.y.redSqr(),J0=this.x.redMul(O$),J$=this.x.redSub(x).redMul(this.x.redAdd(x));J$=J$.redAdd(J$).redIAdd(J$);var F$=J0.redIAdd(J0);F$=F$.redIAdd(F$);var A$=F$.redAdd(F$);Y$=J$.redSqr().redISub(A$),Z$=this.y.redAdd(this.z).redSqr().redISub(O$).redISub(x);var H$=O$.redSqr();H$=H$.redIAdd(H$),H$=H$.redIAdd(H$),H$=H$.redIAdd(H$),O0=J$.redMul(F$.redISub(Y$)).redISub(H$)}return this.curve.jpoint(Y$,O0,Z$)},N.prototype._dbl=function(){var Y$=this.curve.a,O0=this.x,Z$=this.y,G$=this.z,V$=G$.redSqr().redSqr(),U$=O0.redSqr(),X$=Z$.redSqr(),K$=U$.redAdd(U$).redIAdd(U$).redIAdd(Y$.redMul(V$)),I$=O0.redAdd(O0);I$=I$.redIAdd(I$);var Q=I$.redMul(X$),x=K$.redSqr().redISub(Q.redAdd(Q)),O$=Q.redISub(x),J0=X$.redSqr();J0=J0.redIAdd(J0),J0=J0.redIAdd(J0),J0=J0.redIAdd(J0);var J$=K$.redMul(O$).redISub(J0),F$=Z$.redAdd(Z$).redMul(G$);return this.curve.jpoint(x,J$,F$)},N.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var Y$=this.x.redSqr(),O0=this.y.redSqr(),Z$=this.z.redSqr(),G$=O0.redSqr(),V$=Y$.redAdd(Y$).redIAdd(Y$),U$=V$.redSqr(),X$=this.x.redAdd(O0).redSqr().redISub(Y$).redISub(G$);X$=X$.redIAdd(X$),X$=X$.redAdd(X$).redIAdd(X$),X$=X$.redISub(U$);var K$=X$.redSqr(),I$=G$.redIAdd(G$);I$=I$.redIAdd(I$),I$=I$.redIAdd(I$),I$=I$.redIAdd(I$);var Q=V$.redIAdd(X$).redSqr().redISub(U$).redISub(K$).redISub(I$),x=O0.redMul(Q);x=x.redIAdd(x),x=x.redIAdd(x);var O$=this.x.redMul(K$).redISub(x);O$=O$.redIAdd(O$),O$=O$.redIAdd(O$);var J0=this.y.redMul(Q.redMul(I$.redISub(Q)).redISub(X$.redMul(K$)));J0=J0.redIAdd(J0),J0=J0.redIAdd(J0),J0=J0.redIAdd(J0);var J$=this.z.redAdd(X$).redSqr().redISub(Z$).redISub(K$);return this.curve.jpoint(O$,J0,J$)},N.prototype.mul=function(Y$,O0){return Y$=new e0(Y$,O0),this.curve._wnafMul(this,Y$)},N.prototype.eq=function(Y$){if(Y$.type==="affine")return this.eq(Y$.toJ());if(this===Y$)return!0;var O0=this.z.redSqr(),Z$=Y$.z.redSqr();if(this.x.redMul(Z$).redISub(Y$.x.redMul(O0)).cmpn(0)!==0)return!1;var G$=O0.redMul(this.z),V$=Z$.redMul(Y$.z);return this.y.redMul(V$).redISub(Y$.y.redMul(G$)).cmpn(0)===0},N.prototype.eqXToP=function(Y$){var O0=this.z.redSqr(),Z$=Y$.toRed(this.curve.red).redMul(O0);if(this.x.cmp(Z$)===0)return!0;for(var G$=Y$.clone(),V$=this.curve.redN.redMul(O0);;){if(G$.iadd(this.curve.n),G$.cmp(this.curve.p)>=0)return!1;if(Z$.redIAdd(V$),this.x.cmp(Z$)===0)return!0}},N.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},N.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),B0=pQ({"node_modules/elliptic/lib/elliptic/curve/mont.js"(t0,m0){var a0=kY(),e0=dQ(),r0=m(),i0=D();function $$($){r0.call(this,"mont",$),this.a=new a0($.a,16).toRed(this.red),this.b=new a0($.b,16).toRed(this.red),this.i4=new a0(4).toRed(this.red).redInvm(),this.two=new a0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}e0($$,r0),m0.exports=$$,$$.prototype.validate=function($){var N=$.normalize().x,Y$=N.redSqr(),O0=Y$.redMul(N).redAdd(Y$.redMul(this.a)).redAdd(N),Z$=O0.redSqrt();return Z$.redSqr().cmp(O0)===0};function Q$($,N,Y$){r0.BasePoint.call(this,$,"projective"),N===null&&Y$===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a0(N,16),this.z=new a0(Y$,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e0(Q$,r0.BasePoint),$$.prototype.decodePoint=function($,N){return this.point(i0.toArray($,N),1)},$$.prototype.point=function($,N){return new Q$(this,$,N)},$$.prototype.pointFromJSON=function($){return Q$.fromJSON(this,$)},Q$.prototype.precompute=function(){},Q$.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Q$.fromJSON=function($,N){return new Q$($,N[0],N[1]||$.one)},Q$.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Q$.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Q$.prototype.dbl=function(){var $=this.x.redAdd(this.z),N=$.redSqr(),Y$=this.x.redSub(this.z),O0=Y$.redSqr(),Z$=N.redSub(O0),G$=N.redMul(O0),V$=Z$.redMul(O0.redAdd(this.curve.a24.redMul(Z$)));return this.curve.point(G$,V$)},Q$.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.diffAdd=function($,N){var Y$=this.x.redAdd(this.z),O0=this.x.redSub(this.z),Z$=$.x.redAdd($.z),G$=$.x.redSub($.z),V$=G$.redMul(Y$),U$=Z$.redMul(O0),X$=N.z.redMul(V$.redAdd(U$).redSqr()),K$=N.x.redMul(V$.redISub(U$).redSqr());return this.curve.point(X$,K$)},Q$.prototype.mul=function($){for(var N=$.clone(),Y$=this,O0=this.curve.point(null,null),Z$=this,G$=[];N.cmpn(0)!==0;N.iushrn(1))G$.push(N.andln(1));for(var V$=G$.length-1;V$>=0;V$--)G$[V$]===0?(Y$=Y$.diffAdd(O0,Z$),O0=O0.dbl()):(O0=Y$.diffAdd(O0,Z$),Y$=Y$.dbl());return O0},Q$.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.eq=function($){return this.getX().cmp($.getX())===0},Q$.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Q$.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),_Y=pQ({"node_modules/elliptic/lib/elliptic/curve/edwards.js"(t0,m0){var a0=D(),e0=kY(),r0=dQ(),i0=m(),$$=a0.assert;function Q$(N){this.twisted=(N.a|0)!==1,this.mOneA=this.twisted&&(N.a|0)===-1,this.extended=this.mOneA,i0.call(this,"edwards",N),this.a=new e0(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e0(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e0(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),$$(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(N.c|0)===1}r0(Q$,i0),m0.exports=Q$,Q$.prototype._mulA=function(N){return this.mOneA?N.redNeg():this.a.redMul(N)},Q$.prototype._mulC=function(N){return this.oneC?N:this.c.redMul(N)},Q$.prototype.jpoint=function(N,Y$,O0,Z$){return this.point(N,Y$,O0,Z$)},Q$.prototype.pointFromX=function(N,Y$){N=new e0(N,16),N.red||(N=N.toRed(this.red));var O0=N.redSqr(),Z$=this.c2.redSub(this.a.redMul(O0)),G$=this.one.redSub(this.c2.redMul(this.d).redMul(O0)),V$=Z$.redMul(G$.redInvm()),U$=V$.redSqrt();if(U$.redSqr().redSub(V$).cmp(this.zero)!==0)throw new Error("invalid point");var X$=U$.fromRed().isOdd();return(Y$&&!X$||!Y$&&X$)&&(U$=U$.redNeg()),this.point(N,U$)},Q$.prototype.pointFromY=function(N,Y$){N=new e0(N,16),N.red||(N=N.toRed(this.red));var O0=N.redSqr(),Z$=O0.redSub(this.c2),G$=O0.redMul(this.d).redMul(this.c2).redSub(this.a),V$=Z$.redMul(G$.redInvm());if(V$.cmp(this.zero)===0){if(Y$)throw new Error("invalid point");return this.point(this.zero,N)}var U$=V$.redSqrt();if(U$.redSqr().redSub(V$).cmp(this.zero)!==0)throw new Error("invalid point");return U$.fromRed().isOdd()!==Y$&&(U$=U$.redNeg()),this.point(U$,N)},Q$.prototype.validate=function(N){if(N.isInfinity())return!0;N.normalize();var Y$=N.x.redSqr(),O0=N.y.redSqr(),Z$=Y$.redMul(this.a).redAdd(O0),G$=this.c2.redMul(this.one.redAdd(this.d.redMul(Y$).redMul(O0)));return Z$.cmp(G$)===0};function $(N,Y$,O0,Z$,G$){i0.BasePoint.call(this,N,"projective"),Y$===null&&O0===null&&Z$===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e0(Y$,16),this.y=new e0(O0,16),this.z=Z$?new e0(Z$,16):this.curve.one,this.t=G$&&new e0(G$,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()))))}r0($,i0.BasePoint),Q$.prototype.pointFromJSON=function(N){return $.fromJSON(this,N)},Q$.prototype.point=function(N,Y$,O0,Z$){return new $(this,N,Y$,O0,Z$)},$.fromJSON=function(N,Y$){return new $(N,Y$[0],Y$[1],Y$[2])},$.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},$.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},$.prototype._extDbl=function(){var N=this.x.redSqr(),Y$=this.y.redSqr(),O0=this.z.redSqr();O0=O0.redIAdd(O0);var Z$=this.curve._mulA(N),G$=this.x.redAdd(this.y).redSqr().redISub(N).redISub(Y$),V$=Z$.redAdd(Y$),U$=V$.redSub(O0),X$=Z$.redSub(Y$),K$=G$.redMul(U$),I$=V$.redMul(X$),Q=G$.redMul(X$),x=U$.redMul(V$);return this.curve.point(K$,I$,x,Q)},$.prototype._projDbl=function(){var N=this.x.redAdd(this.y).redSqr(),Y$=this.x.redSqr(),O0=this.y.redSqr(),Z$,G$,V$,U$,X$,K$;if(this.curve.twisted){U$=this.curve._mulA(Y$);var I$=U$.redAdd(O0);this.zOne?(Z$=N.redSub(Y$).redSub(O0).redMul(I$.redSub(this.curve.two)),G$=I$.redMul(U$.redSub(O0)),V$=I$.redSqr().redSub(I$).redSub(I$)):(X$=this.z.redSqr(),K$=I$.redSub(X$).redISub(X$),Z$=N.redSub(Y$).redISub(O0).redMul(K$),G$=I$.redMul(U$.redSub(O0)),V$=I$.redMul(K$))}else U$=Y$.redAdd(O0),X$=this.curve._mulC(this.z).redSqr(),K$=U$.redSub(X$).redSub(X$),Z$=this.curve._mulC(N.redISub(U$)).redMul(K$),G$=this.curve._mulC(U$).redMul(Y$.redISub(O0)),V$=U$.redMul(K$);return this.curve.point(Z$,G$,V$)},$.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},$.prototype._extAdd=function(N){var Y$=this.y.redSub(this.x).redMul(N.y.redSub(N.x)),O0=this.y.redAdd(this.x).redMul(N.y.redAdd(N.x)),Z$=this.t.redMul(this.curve.dd).redMul(N.t),G$=this.z.redMul(N.z.redAdd(N.z)),V$=O0.redSub(Y$),U$=G$.redSub(Z$),X$=G$.redAdd(Z$),K$=O0.redAdd(Y$),I$=V$.redMul(U$),Q=X$.redMul(K$),x=V$.redMul(K$),O$=U$.redMul(X$);return this.curve.point(I$,Q,O$,x)},$.prototype._projAdd=function(N){var Y$=this.z.redMul(N.z),O0=Y$.redSqr(),Z$=this.x.redMul(N.x),G$=this.y.redMul(N.y),V$=this.curve.d.redMul(Z$).redMul(G$),U$=O0.redSub(V$),X$=O0.redAdd(V$),K$=this.x.redAdd(this.y).redMul(N.x.redAdd(N.y)).redISub(Z$).redISub(G$),I$=Y$.redMul(U$).redMul(K$),Q,x;return this.curve.twisted?(Q=Y$.redMul(X$).redMul(G$.redSub(this.curve._mulA(Z$))),x=U$.redMul(X$)):(Q=Y$.redMul(X$).redMul(G$.redSub(Z$)),x=this.curve._mulC(U$).redMul(X$)),this.curve.point(I$,Q,x)},$.prototype.add=function(N){return this.isInfinity()?N:N.isInfinity()?this:this.curve.extended?this._extAdd(N):this._projAdd(N)},$.prototype.mul=function(N){return this._hasDoubles(N)?this.curve._fixedNafMul(this,N):this.curve._wnafMul(this,N)},$.prototype.mulAdd=function(N,Y$,O0){return this.curve._wnafMulAdd(1,[this,Y$],[N,O0],2,!1)},$.prototype.jmulAdd=function(N,Y$,O0){return this.curve._wnafMulAdd(1,[this,Y$],[N,O0],2,!0)},$.prototype.normalize=function(){if(this.zOne)return this;var N=this.z.redInvm();return this.x=this.x.redMul(N),this.y=this.y.redMul(N),this.t&&(this.t=this.t.redMul(N)),this.z=this.curve.one,this.zOne=!0,this},$.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},$.prototype.getX=function(){return this.normalize(),this.x.fromRed()},$.prototype.getY=function(){return this.normalize(),this.y.fromRed()},$.prototype.eq=function(N){return this===N||this.getX().cmp(N.getX())===0&&this.getY().cmp(N.getY())===0},$.prototype.eqXToP=function(N){var Y$=N.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(Y$)===0)return!0;for(var O0=N.clone(),Z$=this.curve.redN.redMul(this.z);;){if(O0.iadd(this.curve.n),O0.cmp(this.curve.p)>=0)return!1;if(Y$.redIAdd(Z$),this.x.cmp(Y$)===0)return!0}},$.prototype.toP=$.prototype.normalize,$.prototype.mixedAdd=$.prototype.add}}),NY=pQ({"node_modules/elliptic/lib/elliptic/curve/index.js"(t0){var m0=t0;m0.base=m(),m0.short=x0(),m0.mont=B0(),m0.edwards=_Y()}}),xY=pQ({"node_modules/hash.js/lib/hash/utils.js"(t0){var m0=v0(),a0=dQ();t0.inherits=a0;function e0(T$,Y){return(T$.charCodeAt(Y)&64512)!==55296||Y<0||Y+1>=T$.length?!1:(T$.charCodeAt(Y+1)&64512)===56320}function r0(T$,Y){if(Array.isArray(T$))return T$.slice();if(!T$)return[];var f=[];if(typeof T$=="string")if(Y){if(Y==="hex")for(T$=T$.replace(/[^a-z0-9]+/gi,""),T$.length%2!==0&&(T$="0"+T$),F0=0;F0<T$.length;F0+=2)f.push(parseInt(T$[F0]+T$[F0+1],16))}else for(var D$=0,F0=0;F0<T$.length;F0++){var C$=T$.charCodeAt(F0);C$<128?f[D$++]=C$:C$<2048?(f[D$++]=C$>>6|192,f[D$++]=C$&63|128):e0(T$,F0)?(C$=65536+((C$&1023)<<10)+(T$.charCodeAt(++F0)&1023),f[D$++]=C$>>18|240,f[D$++]=C$>>12&63|128,f[D$++]=C$>>6&63|128,f[D$++]=C$&63|128):(f[D$++]=C$>>12|224,f[D$++]=C$>>6&63|128,f[D$++]=C$&63|128)}else for(F0=0;F0<T$.length;F0++)f[F0]=T$[F0]|0;return f}t0.toArray=r0;function i0(T$){for(var Y="",f=0;f<T$.length;f++)Y+=$(T$[f].toString(16));return Y}t0.toHex=i0;function $$(T$){var Y=T$>>>24|T$>>>8&65280|T$<<8&16711680|(T$&255)<<24;return Y>>>0}t0.htonl=$$;function Q$(T$,Y){for(var f="",D$=0;D$<T$.length;D$++){var F0=T$[D$];Y==="little"&&(F0=$$(F0)),f+=N(F0.toString(16))}return f}t0.toHex32=Q$;function $(T$){return T$.length===1?"0"+T$:T$}t0.zero2=$;function N(T$){return T$.length===7?"0"+T$:T$.length===6?"00"+T$:T$.length===5?"000"+T$:T$.length===4?"0000"+T$:T$.length===3?"00000"+T$:T$.length===2?"000000"+T$:T$.length===1?"0000000"+T$:T$}t0.zero8=N;function Y$(T$,Y,f,D$){var F0=f-Y;m0(F0%4===0);for(var C$=new Array(F0/4),L$=0,R$=Y;L$<C$.length;L$++,R$+=4){var P$;D$==="big"?P$=T$[R$]<<24|T$[R$+1]<<16|T$[R$+2]<<8|T$[R$+3]:P$=T$[R$+3]<<24|T$[R$+2]<<16|T$[R$+1]<<8|T$[R$],C$[L$]=P$>>>0}return C$}t0.join32=Y$;function O0(T$,Y){for(var f=new Array(T$.length*4),D$=0,F0=0;D$<T$.length;D$++,F0+=4){var C$=T$[D$];Y==="big"?(f[F0]=C$>>>24,f[F0+1]=C$>>>16&255,f[F0+2]=C$>>>8&255,f[F0+3]=C$&255):(f[F0+3]=C$>>>24,f[F0+2]=C$>>>16&255,f[F0+1]=C$>>>8&255,f[F0]=C$&255)}return f}t0.split32=O0;function Z$(T$,Y){return T$>>>Y|T$<<32-Y}t0.rotr32=Z$;function G$(T$,Y){return T$<<Y|T$>>>32-Y}t0.rotl32=G$;function V$(T$,Y){return T$+Y>>>0}t0.sum32=V$;function U$(T$,Y,f){return T$+Y+f>>>0}t0.sum32_3=U$;function X$(T$,Y,f,D$){return T$+Y+f+D$>>>0}t0.sum32_4=X$;function K$(T$,Y,f,D$,F0){return T$+Y+f+D$+F0>>>0}t0.sum32_5=K$;function I$(T$,Y,f,D$){var F0=T$[Y],C$=T$[Y+1],L$=D$+C$>>>0,R$=(L$<D$?1:0)+f+F0;T$[Y]=R$>>>0,T$[Y+1]=L$}t0.sum64=I$;function Q(T$,Y,f,D$){var F0=Y+D$>>>0,C$=(F0<Y?1:0)+T$+f;return C$>>>0}t0.sum64_hi=Q;function x(T$,Y,f,D$){var F0=Y+D$;return F0>>>0}t0.sum64_lo=x;function O$(T$,Y,f,D$,F0,C$,L$,R$){var P$=0,z$=Y;z$=z$+D$>>>0,P$+=z$<Y?1:0,z$=z$+C$>>>0,P$+=z$<C$?1:0,z$=z$+R$>>>0,P$+=z$<R$?1:0;var M$=T$+f+F0+L$+P$;return M$>>>0}t0.sum64_4_hi=O$;function J0(T$,Y,f,D$,F0,C$,L$,R$){var P$=Y+D$+C$+R$;return P$>>>0}t0.sum64_4_lo=J0;function J$(T$,Y,f,D$,F0,C$,L$,R$,P$,z$){var M$=0,S$=Y;S$=S$+D$>>>0,M$+=S$<Y?1:0,S$=S$+C$>>>0,M$+=S$<C$?1:0,S$=S$+R$>>>0,M$+=S$<R$?1:0,S$=S$+z$>>>0,M$+=S$<z$?1:0;var Z=T$+f+F0+L$+P$+M$;return Z>>>0}t0.sum64_5_hi=J$;function F$(T$,Y,f,D$,F0,C$,L$,R$,P$,z$){var M$=Y+D$+C$+R$+z$;return M$>>>0}t0.sum64_5_lo=F$;function A$(T$,Y,f){var D$=Y<<32-f|T$>>>f;return D$>>>0}t0.rotr64_hi=A$;function H$(T$,Y,f){var D$=T$<<32-f|Y>>>f;return D$>>>0}t0.rotr64_lo=H$;function W$(T$,Y,f){return T$>>>f}t0.shr64_hi=W$;function E$(T$,Y,f){var D$=T$<<32-f|Y>>>f;return D$>>>0}t0.shr64_lo=E$}}),BY=pQ({"node_modules/hash.js/lib/hash/common.js"(t0){var m0=xY(),a0=v0();function e0(){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}t0.BlockHash=e0,e0.prototype.update=function(r0,i0){if(r0=m0.toArray(r0,i0),this.pending?this.pending=this.pending.concat(r0):this.pending=r0,this.pendingTotal+=r0.length,this.pending.length>=this._delta8){r0=this.pending;var $$=r0.length%this._delta8;this.pending=r0.slice(r0.length-$$,r0.length),this.pending.length===0&&(this.pending=null),r0=m0.join32(r0,0,r0.length-$$,this.endian);for(var Q$=0;Q$<r0.length;Q$+=this._delta32)this._update(r0,Q$,Q$+this._delta32)}return this},e0.prototype.digest=function(r0){return this.update(this._pad()),a0(this.pending===null),this._digest(r0)},e0.prototype._pad=function(){var r0=this.pendingTotal,i0=this._delta8,$$=i0-(r0+this.padLength)%i0,Q$=new Array($$+this.padLength);Q$[0]=128;for(var $=1;$<$$;$++)Q$[$]=0;if(r0<<=3,this.endian==="big"){for(var N=8;N<this.padLength;N++)Q$[$++]=0;Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,Q$[$++]=r0>>>24&255,Q$[$++]=r0>>>16&255,Q$[$++]=r0>>>8&255,Q$[$++]=r0&255}else for(Q$[$++]=r0&255,Q$[$++]=r0>>>8&255,Q$[$++]=r0>>>16&255,Q$[$++]=r0>>>24&255,Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,N=8;N<this.padLength;N++)Q$[$++]=0;return Q$}}}),yY=pQ({"node_modules/hash.js/lib/hash/sha/common.js"(t0){var m0=xY(),a0=m0.rotr32;function e0(O0,Z$,G$,V$){if(O0===0)return r0(Z$,G$,V$);if(O0===1||O0===3)return $$(Z$,G$,V$);if(O0===2)return i0(Z$,G$,V$)}t0.ft_1=e0;function r0(O0,Z$,G$){return O0&Z$^~O0&G$}t0.ch32=r0;function i0(O0,Z$,G$){return O0&Z$^O0&G$^Z$&G$}t0.maj32=i0;function $$(O0,Z$,G$){return O0^Z$^G$}t0.p32=$$;function Q$(O0){return a0(O0,2)^a0(O0,13)^a0(O0,22)}t0.s0_256=Q$;function $(O0){return a0(O0,6)^a0(O0,11)^a0(O0,25)}t0.s1_256=$;function N(O0){return a0(O0,7)^a0(O0,18)^O0>>>3}t0.g0_256=N;function Y$(O0){return a0(O0,17)^a0(O0,19)^O0>>>10}t0.g1_256=Y$}}),wY=pQ({"node_modules/hash.js/lib/hash/sha/1.js"(t0,m0){var a0=xY(),e0=BY(),r0=yY(),i0=a0.rotl32,$$=a0.sum32,Q$=a0.sum32_5,$=r0.ft_1,N=e0.BlockHash,Y$=[1518500249,1859775393,2400959708,3395469782];function O0(){if(!(this instanceof O0))return new O0;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a0.inherits(O0,N),m0.exports=O0,O0.blockSize=512,O0.outSize=160,O0.hmacStrength=80,O0.padLength=64,O0.prototype._update=function(Z$,G$){for(var V$=this.W,U$=0;U$<16;U$++)V$[U$]=Z$[G$+U$];for(;U$<V$.length;U$++)V$[U$]=i0(V$[U$-3]^V$[U$-8]^V$[U$-14]^V$[U$-16],1);var X$=this.h[0],K$=this.h[1],I$=this.h[2],Q=this.h[3],x=this.h[4];for(U$=0;U$<V$.length;U$++){var O$=~~(U$/20),J0=Q$(i0(X$,5),$(O$,K$,I$,Q),x,V$[U$],Y$[O$]);x=Q,Q=I$,I$=i0(K$,30),K$=X$,X$=J0}this.h[0]=$$(this.h[0],X$),this.h[1]=$$(this.h[1],K$),this.h[2]=$$(this.h[2],I$),this.h[3]=$$(this.h[3],Q),this.h[4]=$$(this.h[4],x)},O0.prototype._digest=function(Z$){return Z$==="hex"?a0.toHex32(this.h,"big"):a0.split32(this.h,"big")}}}),pY=pQ({"node_modules/hash.js/lib/hash/sha/256.js"(t0,m0){var a0=xY(),e0=BY(),r0=yY(),i0=v0(),$$=a0.sum32,Q$=a0.sum32_4,$=a0.sum32_5,N=r0.ch32,Y$=r0.maj32,O0=r0.s0_256,Z$=r0.s1_256,G$=r0.g0_256,V$=r0.g1_256,U$=e0.BlockHash,X$=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function K$(){if(!(this instanceof K$))return new K$;U$.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=X$,this.W=new Array(64)}a0.inherits(K$,U$),m0.exports=K$,K$.blockSize=512,K$.outSize=256,K$.hmacStrength=192,K$.padLength=64,K$.prototype._update=function(I$,Q){for(var x=this.W,O$=0;O$<16;O$++)x[O$]=I$[Q+O$];for(;O$<x.length;O$++)x[O$]=Q$(V$(x[O$-2]),x[O$-7],G$(x[O$-15]),x[O$-16]);var J0=this.h[0],J$=this.h[1],F$=this.h[2],A$=this.h[3],H$=this.h[4],W$=this.h[5],E$=this.h[6],T$=this.h[7];for(i0(this.k.length===x.length),O$=0;O$<x.length;O$++){var Y=$(T$,Z$(H$),N(H$,W$,E$),this.k[O$],x[O$]),f=$$(O0(J0),Y$(J0,J$,F$));T$=E$,E$=W$,W$=H$,H$=$$(A$,Y),A$=F$,F$=J$,J$=J0,J0=$$(Y,f)}this.h[0]=$$(this.h[0],J0),this.h[1]=$$(this.h[1],J$),this.h[2]=$$(this.h[2],F$),this.h[3]=$$(this.h[3],A$),this.h[4]=$$(this.h[4],H$),this.h[5]=$$(this.h[5],W$),this.h[6]=$$(this.h[6],E$),this.h[7]=$$(this.h[7],T$)},K$.prototype._digest=function(I$){return I$==="hex"?a0.toHex32(this.h,"big"):a0.split32(this.h,"big")}}}),C=pQ({"node_modules/hash.js/lib/hash/sha/224.js"(t0,m0){var a0=xY(),e0=pY();function r0(){if(!(this instanceof r0))return new r0;e0.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a0.inherits(r0,e0),m0.exports=r0,r0.blockSize=512,r0.outSize=224,r0.hmacStrength=192,r0.padLength=64,r0.prototype._digest=function(i0){return i0==="hex"?a0.toHex32(this.h.slice(0,7),"big"):a0.split32(this.h.slice(0,7),"big")}}}),a=pQ({"node_modules/hash.js/lib/hash/sha/512.js"(t0,m0){var a0=xY(),e0=BY(),r0=v0(),i0=a0.rotr64_hi,$$=a0.rotr64_lo,Q$=a0.shr64_hi,$=a0.shr64_lo,N=a0.sum64,Y$=a0.sum64_hi,O0=a0.sum64_lo,Z$=a0.sum64_4_hi,G$=a0.sum64_4_lo,V$=a0.sum64_5_hi,U$=a0.sum64_5_lo,X$=e0.BlockHash,K$=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I$(){if(!(this instanceof I$))return new I$;X$.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=K$,this.W=new Array(160)}a0.inherits(I$,X$),m0.exports=I$,I$.blockSize=1024,I$.outSize=512,I$.hmacStrength=192,I$.padLength=128,I$.prototype._prepareBlock=function(f,D$){for(var F0=this.W,C$=0;C$<32;C$++)F0[C$]=f[D$+C$];for(;C$<F0.length;C$+=2){var L$=T$(F0[C$-4],F0[C$-3]),R$=Y(F0[C$-4],F0[C$-3]),P$=F0[C$-14],z$=F0[C$-13],M$=W$(F0[C$-30],F0[C$-29]),S$=E$(F0[C$-30],F0[C$-29]),Z=F0[C$-32],c=F0[C$-31];F0[C$]=Z$(L$,R$,P$,z$,M$,S$,Z,c),F0[C$+1]=G$(L$,R$,P$,z$,M$,S$,Z,c)}},I$.prototype._update=function(f,D$){this._prepareBlock(f,D$);var F0=this.W,C$=this.h[0],L$=this.h[1],R$=this.h[2],P$=this.h[3],z$=this.h[4],M$=this.h[5],S$=this.h[6],Z=this.h[7],c=this.h[8],v$=this.h[9],A0=this.h[10],q$=this.h[11],j$=this.h[12],k$=this.h[13],g$=this.h[14],_$=this.h[15];r0(this.k.length===F0.length);for(var N$=0;N$<F0.length;N$+=2){var x$=g$,G=_$,B=A$(c,v$),B$=H$(c,v$),H0=Q(c,v$,A0,q$,j$,k$),y$=x(c,v$,A0,q$,j$,k$),w$=this.k[N$],p$=this.k[N$+1],f$=F0[N$],c$=F0[N$+1],h$=V$(x$,G,B,B$,H0,y$,w$,p$,f$,c$),d$=U$(x$,G,B,B$,H0,y$,w$,p$,f$,c$);x$=J$(C$,L$),G=F$(C$,L$),B=O$(C$,L$,R$,P$,z$,M$),B$=J0(C$,L$,R$,P$,z$,M$);var V=Y$(x$,G,B,B$),h=O0(x$,G,B,B$);g$=j$,_$=k$,j$=A0,k$=q$,A0=c,q$=v$,c=Y$(S$,Z,h$,d$),v$=O0(Z,Z,h$,d$),S$=z$,Z=M$,z$=R$,M$=P$,R$=C$,P$=L$,C$=Y$(h$,d$,V,h),L$=O0(h$,d$,V,h)}N(this.h,0,C$,L$),N(this.h,2,R$,P$),N(this.h,4,z$,M$),N(this.h,6,S$,Z),N(this.h,8,c,v$),N(this.h,10,A0,q$),N(this.h,12,j$,k$),N(this.h,14,g$,_$)},I$.prototype._digest=function(f){return f==="hex"?a0.toHex32(this.h,"big"):a0.split32(this.h,"big")};function Q(f,D$,F0,C$,L$){var R$=f&F0^~f&L$;return R$<0&&(R$+=4294967296),R$}function x(f,D$,F0,C$,L$,R$){var P$=D$&C$^~D$&R$;return P$<0&&(P$+=4294967296),P$}function O$(f,D$,F0,C$,L$){var R$=f&F0^f&L$^F0&L$;return R$<0&&(R$+=4294967296),R$}function J0(f,D$,F0,C$,L$,R$){var P$=D$&C$^D$&R$^C$&R$;return P$<0&&(P$+=4294967296),P$}function J$(f,D$){var F0=i0(f,D$,28),C$=i0(D$,f,2),L$=i0(D$,f,7),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function F$(f,D$){var F0=$$(f,D$,28),C$=$$(D$,f,2),L$=$$(D$,f,7),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function A$(f,D$){var F0=i0(f,D$,14),C$=i0(f,D$,18),L$=i0(D$,f,9),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function H$(f,D$){var F0=$$(f,D$,14),C$=$$(f,D$,18),L$=$$(D$,f,9),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function W$(f,D$){var F0=i0(f,D$,1),C$=i0(f,D$,8),L$=Q$(f,D$,7),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function E$(f,D$){var F0=$$(f,D$,1),C$=$$(f,D$,8),L$=$(f,D$,7),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function T$(f,D$){var F0=i0(f,D$,19),C$=i0(D$,f,29),L$=Q$(f,D$,6),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}function Y(f,D$){var F0=$$(f,D$,19),C$=$$(D$,f,29),L$=$(f,D$,6),R$=F0^C$^L$;return R$<0&&(R$+=4294967296),R$}}}),y0=pQ({"node_modules/hash.js/lib/hash/sha/384.js"(t0,m0){var a0=xY(),e0=a();function r0(){if(!(this instanceof r0))return new r0;e0.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a0.inherits(r0,e0),m0.exports=r0,r0.blockSize=1024,r0.outSize=384,r0.hmacStrength=192,r0.padLength=128,r0.prototype._digest=function(i0){return i0==="hex"?a0.toHex32(this.h.slice(0,12),"big"):a0.split32(this.h.slice(0,12),"big")}}}),w0=pQ({"node_modules/hash.js/lib/hash/sha.js"(t0){t0.sha1=wY(),t0.sha224=C(),t0.sha256=pY(),t0.sha384=y0(),t0.sha512=a()}}),fY=pQ({"node_modules/hash.js/lib/hash/ripemd.js"(t0){var m0=xY(),a0=BY(),e0=m0.rotl32,r0=m0.sum32,i0=m0.sum32_3,$$=m0.sum32_4,Q$=a0.BlockHash;function $(){if(!(this instanceof $))return new $;Q$.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}m0.inherits($,Q$),t0.ripemd160=$,$.blockSize=512,$.outSize=160,$.hmacStrength=192,$.padLength=64,$.prototype._update=function(X$,K$){for(var I$=this.h[0],Q=this.h[1],x=this.h[2],O$=this.h[3],J0=this.h[4],J$=I$,F$=Q,A$=x,H$=O$,W$=J0,E$=0;E$<80;E$++){var T$=r0(e0($$(I$,N(E$,Q,x,O$),X$[Z$[E$]+K$],Y$(E$)),V$[E$]),J0);I$=J0,J0=O$,O$=e0(x,10),x=Q,Q=T$,T$=r0(e0($$(J$,N(79-E$,F$,A$,H$),X$[G$[E$]+K$],O0(E$)),U$[E$]),W$),J$=W$,W$=H$,H$=e0(A$,10),A$=F$,F$=T$}T$=i0(this.h[1],x,H$),this.h[1]=i0(this.h[2],O$,W$),this.h[2]=i0(this.h[3],J0,J$),this.h[3]=i0(this.h[4],I$,F$),this.h[4]=i0(this.h[0],Q,A$),this.h[0]=T$},$.prototype._digest=function(X$){return X$==="hex"?m0.toHex32(this.h,"little"):m0.split32(this.h,"little")};function N(X$,K$,I$,Q){return X$<=15?K$^I$^Q:X$<=31?K$&I$|~K$&Q:X$<=47?(K$|~I$)^Q:X$<=63?K$&Q|I$&~Q:K$^(I$|~Q)}function Y$(X$){return X$<=15?0:X$<=31?1518500249:X$<=47?1859775393:X$<=63?2400959708:2840853838}function O0(X$){return X$<=15?1352829926:X$<=31?1548603684:X$<=47?1836072691:X$<=63?2053994217:0}var Z$=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],G$=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],V$=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],U$=[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]}}),cY=pQ({"node_modules/hash.js/lib/hash/hmac.js"(t0,m0){var a0=xY(),e0=v0();function r0(i0,$$,Q$){if(!(this instanceof r0))return new r0(i0,$$,Q$);this.Hash=i0,this.blockSize=i0.blockSize/8,this.outSize=i0.outSize/8,this.inner=null,this.outer=null,this._init(a0.toArray($$,Q$))}m0.exports=r0,r0.prototype._init=function(i0){i0.length>this.blockSize&&(i0=new this.Hash().update(i0).digest()),e0(i0.length<=this.blockSize);for(var $$=i0.length;$$<this.blockSize;$$++)i0.push(0);for($$=0;$$<i0.length;$$++)i0[$$]^=54;for(this.inner=new this.Hash().update(i0),$$=0;$$<i0.length;$$++)i0[$$]^=106;this.outer=new this.Hash().update(i0)},r0.prototype.update=function(i0,$$){return this.inner.update(i0,$$),this},r0.prototype.digest=function(i0){return this.outer.update(this.inner.digest()),this.outer.digest(i0)}}}),hY=pQ({"node_modules/hash.js/lib/hash.js"(t0){var m0=t0;m0.utils=xY(),m0.common=BY(),m0.sha=w0(),m0.ripemd=fY(),m0.hmac=cY(),m0.sha1=m0.sha.sha1,m0.sha256=m0.sha.sha256,m0.sha224=m0.sha.sha224,m0.sha384=m0.sha.sha384,m0.sha512=m0.sha.sha512,m0.ripemd160=m0.ripemd.ripemd160}}),dY=pQ({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"(t0,m0){m0.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),bY=pQ({"node_modules/elliptic/lib/elliptic/curves.js"(t0){var m0=t0,a0=hY(),e0=NY(),r0=D(),i0=r0.assert;function $$(N){N.type==="short"?this.curve=new e0.short(N):N.type==="edwards"?this.curve=new e0.edwards(N):this.curve=new e0.mont(N),this.g=this.curve.g,this.n=this.curve.n,this.hash=N.hash,i0(this.g.validate(),"Invalid curve"),i0(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}m0.PresetCurve=$$;function Q$(N,Y$){Object.defineProperty(m0,N,{configurable:!0,enumerable:!0,get:function(){var O0=new $$(Y$);return Object.defineProperty(m0,N,{configurable:!0,enumerable:!0,value:O0}),O0}})}Q$("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a0.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Q$("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a0.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Q$("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a0.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Q$("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a0.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),Q$("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a0.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),Q$("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a0.sha256,gRed:!1,g:["9"]}),Q$("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a0.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var $;try{$=dY()}catch{$=void 0}Q$("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a0.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",$]})}}),lY=pQ({"node_modules/hmac-drbg/lib/hmac-drbg.js"(t0,m0){var a0=hY(),e0=gY(),r0=v0();function i0($$){if(!(this instanceof i0))return new i0($$);this.hash=$$.hash,this.predResist=!!$$.predResist,this.outLen=this.hash.outSize,this.minEntropy=$$.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var Q$=e0.toArray($$.entropy,$$.entropyEnc||"hex"),$=e0.toArray($$.nonce,$$.nonceEnc||"hex"),N=e0.toArray($$.pers,$$.persEnc||"hex");r0(Q$.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Q$,$,N)}m0.exports=i0,i0.prototype._init=function($$,Q$,$){var N=$$.concat(Q$).concat($);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var Y$=0;Y$<this.V.length;Y$++)this.K[Y$]=0,this.V[Y$]=1;this._update(N),this._reseed=1,this.reseedInterval=281474976710656},i0.prototype._hmac=function(){return new a0.hmac(this.hash,this.K)},i0.prototype._update=function($$){var Q$=this._hmac().update(this.V).update([0]);$$&&(Q$=Q$.update($$)),this.K=Q$.digest(),this.V=this._hmac().update(this.V).digest(),$$&&(this.K=this._hmac().update(this.V).update([1]).update($$).digest(),this.V=this._hmac().update(this.V).digest())},i0.prototype.reseed=function($$,Q$,$,N){typeof Q$!="string"&&(N=$,$=Q$,Q$=null),$$=e0.toArray($$,Q$),$=e0.toArray($,N),r0($$.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update($$.concat($||[])),this._reseed=1},i0.prototype.generate=function($$,Q$,$,N){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof Q$!="string"&&(N=$,$=Q$,Q$=null),$&&($=e0.toArray($,N||"hex"),this._update($));for(var Y$=[];Y$.length<$$;)this.V=this._hmac().update(this.V).digest(),Y$=Y$.concat(this.V);var O0=Y$.slice(0,$$);return this._update($),this._reseed++,e0.encode(O0,Q$)}}}),oY=pQ({"node_modules/elliptic/lib/elliptic/ec/key.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert;function i0($$,Q$){this.ec=$$,this.priv=null,this.pub=null,Q$.priv&&this._importPrivate(Q$.priv,Q$.privEnc),Q$.pub&&this._importPublic(Q$.pub,Q$.pubEnc)}m0.exports=i0,i0.fromPublic=function($$,Q$,$){return Q$ instanceof i0?Q$:new i0($$,{pub:Q$,pubEnc:$})},i0.fromPrivate=function($$,Q$,$){return Q$ instanceof i0?Q$:new i0($$,{priv:Q$,privEnc:$})},i0.prototype.validate=function(){var $$=this.getPublic();return $$.isInfinity()?{result:!1,reason:"Invalid public key"}:$$.validate()?$$.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i0.prototype.getPublic=function($$,Q$){return typeof $$=="string"&&(Q$=$$,$$=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),Q$?this.pub.encode(Q$,$$):this.pub},i0.prototype.getPrivate=function($$){return $$==="hex"?this.priv.toString(16,2):this.priv},i0.prototype._importPrivate=function($$,Q$){this.priv=new a0($$,Q$||16),this.priv=this.priv.umod(this.ec.curve.n)},i0.prototype._importPublic=function($$,Q$){if($$.x||$$.y){this.ec.curve.type==="mont"?r0($$.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r0($$.x&&$$.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point($$.x,$$.y);return}this.pub=this.ec.curve.decodePoint($$,Q$)},i0.prototype.derive=function($$){return $$.validate()||r0($$.validate(),"public point not validated"),$$.mul(this.priv).getX()},i0.prototype.sign=function($$,Q$,$){return this.ec.sign($$,this,Q$,$)},i0.prototype.verify=function($$,Q$){return this.ec.verify($$,Q$,this)},i0.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),L=pQ({"node_modules/elliptic/lib/elliptic/ec/signature.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert;function i0(Y$,O0){if(Y$ instanceof i0)return Y$;this._importDER(Y$,O0)||(r0(Y$.r&&Y$.s,"Signature without r or s"),this.r=new a0(Y$.r,16),this.s=new a0(Y$.s,16),Y$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=Y$.recoveryParam)}m0.exports=i0;function $$(){this.place=0}function Q$(Y$,O0){var Z$=Y$[O0.place++];if(!(Z$&128))return Z$;var G$=Z$&15;if(G$===0||G$>4)return!1;for(var V$=0,U$=0,X$=O0.place;U$<G$;U$++,X$++)V$<<=8,V$|=Y$[X$],V$>>>=0;return V$<=127?!1:(O0.place=X$,V$)}function $(Y$){for(var O0=0,Z$=Y$.length-1;!Y$[O0]&&!(Y$[O0+1]&128)&&O0<Z$;)O0++;return O0===0?Y$:Y$.slice(O0)}i0.prototype._importDER=function(Y$,O0){Y$=e0.toArray(Y$,O0);var Z$=new $$;if(Y$[Z$.place++]!==48)return!1;var G$=Q$(Y$,Z$);if(G$===!1||G$+Z$.place!==Y$.length||Y$[Z$.place++]!==2)return!1;var V$=Q$(Y$,Z$);if(V$===!1)return!1;var U$=Y$.slice(Z$.place,V$+Z$.place);if(Z$.place+=V$,Y$[Z$.place++]!==2)return!1;var X$=Q$(Y$,Z$);if(X$===!1||Y$.length!==X$+Z$.place)return!1;var K$=Y$.slice(Z$.place,X$+Z$.place);if(U$[0]===0)if(U$[1]&128)U$=U$.slice(1);else return!1;if(K$[0]===0)if(K$[1]&128)K$=K$.slice(1);else return!1;return this.r=new a0(U$),this.s=new a0(K$),this.recoveryParam=null,!0};function N(Y$,O0){if(O0<128){Y$.push(O0);return}var Z$=1+(Math.log(O0)/Math.LN2>>>3);for(Y$.push(Z$|128);--Z$;)Y$.push(O0>>>(Z$<<3)&255);Y$.push(O0)}i0.prototype.toDER=function(Y$){var O0=this.r.toArray(),Z$=this.s.toArray();for(O0[0]&128&&(O0=[0].concat(O0)),Z$[0]&128&&(Z$=[0].concat(Z$)),O0=$(O0),Z$=$(Z$);!Z$[0]&&!(Z$[1]&128);)Z$=Z$.slice(1);var G$=[2];N(G$,O0.length),G$=G$.concat(O0),G$.push(2),N(G$,Z$.length);var V$=G$.concat(Z$),U$=[48];return N(U$,V$.length),U$=U$.concat(V$),e0.encode(U$,Y$)}}}),e=pQ({"node_modules/elliptic/lib/elliptic/ec/index.js"(t0,m0){var a0=kY(),e0=lY(),r0=D(),i0=bY(),$$=T(),Q$=r0.assert,$=oY(),N=L();function Y$(O0){if(!(this instanceof Y$))return new Y$(O0);typeof O0=="string"&&(Q$(Object.prototype.hasOwnProperty.call(i0,O0),"Unknown curve "+O0),O0=i0[O0]),O0 instanceof i0.PresetCurve&&(O0={curve:O0}),this.curve=O0.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=O0.curve.g,this.g.precompute(O0.curve.n.bitLength()+1),this.hash=O0.hash||O0.curve.hash}m0.exports=Y$,Y$.prototype.keyPair=function(O0){return new $(this,O0)},Y$.prototype.keyFromPrivate=function(O0,Z$){return $.fromPrivate(this,O0,Z$)},Y$.prototype.keyFromPublic=function(O0,Z$){return $.fromPublic(this,O0,Z$)},Y$.prototype.genKeyPair=function(O0){O0||(O0={});for(var Z$=new e0({hash:this.hash,pers:O0.pers,persEnc:O0.persEnc||"utf8",entropy:O0.entropy||$$(this.hash.hmacStrength),entropyEnc:O0.entropy&&O0.entropyEnc||"utf8",nonce:this.n.toArray()}),G$=this.n.byteLength(),V$=this.n.sub(new a0(2));;){var U$=new a0(Z$.generate(G$));if(!(U$.cmp(V$)>0))return U$.iaddn(1),this.keyFromPrivate(U$)}},Y$.prototype._truncateToN=function(O0,Z$){var G$=O0.byteLength()*8-this.n.bitLength();return G$>0&&(O0=O0.ushrn(G$)),!Z$&&O0.cmp(this.n)>=0?O0.sub(this.n):O0},Y$.prototype.sign=function(O0,Z$,G$,V$){typeof G$=="object"&&(V$=G$,G$=null),V$||(V$={}),Z$=this.keyFromPrivate(Z$,G$),O0=this._truncateToN(new a0(O0,16));for(var U$=this.n.byteLength(),X$=Z$.getPrivate().toArray("be",U$),K$=O0.toArray("be",U$),I$=new e0({hash:this.hash,entropy:X$,nonce:K$,pers:V$.pers,persEnc:V$.persEnc||"utf8"}),Q=this.n.sub(new a0(1)),x=0;;x++){var O$=V$.k?V$.k(x):new a0(I$.generate(this.n.byteLength()));if(O$=this._truncateToN(O$,!0),!(O$.cmpn(1)<=0||O$.cmp(Q)>=0)){var J0=this.g.mul(O$);if(!J0.isInfinity()){var J$=J0.getX(),F$=J$.umod(this.n);if(F$.cmpn(0)!==0){var A$=O$.invm(this.n).mul(F$.mul(Z$.getPrivate()).iadd(O0));if(A$=A$.umod(this.n),A$.cmpn(0)!==0){var H$=(J0.getY().isOdd()?1:0)|(J$.cmp(F$)!==0?2:0);return V$.canonical&&A$.cmp(this.nh)>0&&(A$=this.n.sub(A$),H$^=1),new N({r:F$,s:A$,recoveryParam:H$})}}}}}},Y$.prototype.verify=function(O0,Z$,G$,V$){O0=this._truncateToN(new a0(O0,16)),G$=this.keyFromPublic(G$,V$),Z$=new N(Z$,"hex");var{r:U$,s:X$}=Z$;if(U$.cmpn(1)<0||U$.cmp(this.n)>=0||X$.cmpn(1)<0||X$.cmp(this.n)>=0)return!1;var K$=X$.invm(this.n),I$=K$.mul(O0).umod(this.n),Q=K$.mul(U$).umod(this.n),x;return this.curve._maxwellTrick?(x=this.g.jmulAdd(I$,G$.getPublic(),Q),x.isInfinity()?!1:x.eqXToP(U$)):(x=this.g.mulAdd(I$,G$.getPublic(),Q),x.isInfinity()?!1:x.getX().umod(this.n).cmp(U$)===0)},Y$.prototype.recoverPubKey=function(O0,Z$,G$,V$){Q$((3&G$)===G$,"The recovery param is more than two bits"),Z$=new N(Z$,V$);var U$=this.n,X$=new a0(O0),K$=Z$.r,I$=Z$.s,Q=G$&1,x=G$>>1;if(K$.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");x?K$=this.curve.pointFromX(K$.add(this.curve.n),Q):K$=this.curve.pointFromX(K$,Q);var O$=Z$.r.invm(U$),J0=U$.sub(X$).mul(O$).umod(U$),J$=I$.mul(O$).umod(U$);return this.g.mulAdd(J0,K$,J$)},Y$.prototype.getKeyRecoveryParam=function(O0,Z$,G$,V$){if(Z$=new N(Z$,V$),Z$.recoveryParam!==null)return Z$.recoveryParam;for(var U$=0;U$<4;U$++){var X$;try{X$=this.recoverPubKey(O0,Z$,U$)}catch{continue}if(X$.eq(G$))return U$}throw new Error("Unable to find valid recovery factor")}}}),p0=pQ({"node_modules/elliptic/lib/elliptic/eddsa/key.js"(t0,m0){var a0=D(),e0=a0.assert,r0=a0.parseBytes,i0=a0.cachedProperty;function $$(Q$,$){this.eddsa=Q$,this._secret=r0($.secret),Q$.isPoint($.pub)?this._pub=$.pub:this._pubBytes=r0($.pub)}$$.fromPublic=function(Q$,$){return $ instanceof $$?$:new $$(Q$,{pub:$})},$$.fromSecret=function(Q$,$){return $ instanceof $$?$:new $$(Q$,{secret:$})},$$.prototype.secret=function(){return this._secret},i0($$,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i0($$,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i0($$,"privBytes",function(){var Q$=this.eddsa,$=this.hash(),N=Q$.encodingLength-1,Y$=$.slice(0,Q$.encodingLength);return Y$[0]&=248,Y$[N]&=127,Y$[N]|=64,Y$}),i0($$,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i0($$,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i0($$,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),$$.prototype.sign=function(Q$){return e0(this._secret,"KeyPair can only verify"),this.eddsa.sign(Q$,this)},$$.prototype.verify=function(Q$,$){return this.eddsa.verify(Q$,$,this)},$$.prototype.getSecret=function(Q$){return e0(this._secret,"KeyPair is public only"),a0.encode(this.secret(),Q$)},$$.prototype.getPublic=function(Q$){return a0.encode(this.pubBytes(),Q$)},m0.exports=$$}}),f0=pQ({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert,i0=e0.cachedProperty,$$=e0.parseBytes;function Q$($,N){this.eddsa=$,typeof N!="object"&&(N=$$(N)),Array.isArray(N)&&(N={R:N.slice(0,$.encodingLength),S:N.slice($.encodingLength)}),r0(N.R&&N.S,"Signature without R or S"),$.isPoint(N.R)&&(this._R=N.R),N.S instanceof a0&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}i0(Q$,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i0(Q$,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i0(Q$,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i0(Q$,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Q$.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Q$.prototype.toHex=function(){return e0.encode(this.toBytes(),"hex").toUpperCase()},m0.exports=Q$}}),uY=pQ({"node_modules/elliptic/lib/elliptic/eddsa/index.js"(t0,m0){var a0=hY(),e0=bY(),r0=D(),i0=r0.assert,$$=r0.parseBytes,Q$=p0(),$=f0();function N(Y$){if(i0(Y$==="ed25519","only tested with ed25519 so far"),!(this instanceof N))return new N(Y$);Y$=e0[Y$].curve,this.curve=Y$,this.g=Y$.g,this.g.precompute(Y$.n.bitLength()+1),this.pointClass=Y$.point().constructor,this.encodingLength=Math.ceil(Y$.n.bitLength()/8),this.hash=a0.sha512}m0.exports=N,N.prototype.sign=function(Y$,O0){Y$=$$(Y$);var Z$=this.keyFromSecret(O0),G$=this.hashInt(Z$.messagePrefix(),Y$),V$=this.g.mul(G$),U$=this.encodePoint(V$),X$=this.hashInt(U$,Z$.pubBytes(),Y$).mul(Z$.priv()),K$=G$.add(X$).umod(this.curve.n);return this.makeSignature({R:V$,S:K$,Rencoded:U$})},N.prototype.verify=function(Y$,O0,Z$){Y$=$$(Y$),O0=this.makeSignature(O0);var G$=this.keyFromPublic(Z$),V$=this.hashInt(O0.Rencoded(),G$.pubBytes(),Y$),U$=this.g.mul(O0.S()),X$=O0.R().add(G$.pub().mul(V$));return X$.eq(U$)},N.prototype.hashInt=function(){for(var Y$=this.hash(),O0=0;O0<arguments.length;O0++)Y$.update(arguments[O0]);return r0.intFromLE(Y$.digest()).umod(this.curve.n)},N.prototype.keyFromPublic=function(Y$){return Q$.fromPublic(this,Y$)},N.prototype.keyFromSecret=function(Y$){return Q$.fromSecret(this,Y$)},N.prototype.makeSignature=function(Y$){return Y$ instanceof $?Y$:new $(this,Y$)},N.prototype.encodePoint=function(Y$){var O0=Y$.getY().toArray("le",this.encodingLength);return O0[this.encodingLength-1]|=Y$.getX().isOdd()?128:0,O0},N.prototype.decodePoint=function(Y$){Y$=r0.parseBytes(Y$);var O0=Y$.length-1,Z$=Y$.slice(0,O0).concat(Y$[O0]&-129),G$=(Y$[O0]&128)!==0,V$=r0.intFromLE(Z$);return this.curve.pointFromY(V$,G$)},N.prototype.encodeInt=function(Y$){return Y$.toArray("le",this.encodingLength)},N.prototype.decodeInt=function(Y$){return r0.intFromLE(Y$)},N.prototype.isPoint=function(Y$){return Y$ instanceof this.pointClass}}}),nY=pQ({"node_modules/elliptic/lib/elliptic.js"(t0){var m0=t0;m0.version=jY().version,m0.utils=D(),m0.rand=T(),m0.curve=NY(),m0.curves=bY(),m0.ec=e(),m0.eddsa=uY()}}),sY=pQ({"node_modules/asn1.js/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),tY=pQ({"node_modules/safer-buffer/safer.js"(t0,m0){var a0=P0,e0=G0,r0={},i0;for(i0 in a0)!a0.hasOwnProperty(i0)||i0==="SlowBuffer"||i0==="Buffer"||(r0[i0]=a0[i0]);var $$=r0.Buffer={};for(i0 in e0)!e0.hasOwnProperty(i0)||i0==="allocUnsafe"||i0==="allocUnsafeSlow"||($$[i0]=e0[i0]);if(r0.Buffer.prototype=e0.prototype,(!$$.from||$$.from===Uint8Array.from)&&($$.from=function(Q$,$,N){if(typeof Q$=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof Q$);if(Q$&&typeof Q$.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q$);return e0(Q$,$,N)}),$$.alloc||($$.alloc=function(Q$,$,N){if(typeof Q$!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof Q$);if(Q$<0||Q$>=2*(1<<30))throw new RangeError('The value "'+Q$+'" is invalid for option "size"');var Y$=e0(Q$);return!$||$.length===0?Y$.fill(0):typeof N=="string"?Y$.fill($,N):Y$.fill($),Y$}),!r0.kStringMaxLength)try{r0.kStringMaxLength=yQ}catch{}r0.constants||(r0.constants={MAX_LENGTH:r0.kMaxLength},r0.kStringMaxLength&&(r0.constants.MAX_STRING_LENGTH=r0.kStringMaxLength)),m0.exports=r0}}),mY=pQ({"node_modules/asn1.js/lib/asn1/base/reporter.js"(t0){var m0=dQ();function a0(r0){this._reporterState={obj:null,path:[],options:r0||{},errors:[]}}t0.Reporter=a0,a0.prototype.isError=function(r0){return r0 instanceof e0},a0.prototype.save=function(){let r0=this._reporterState;return{obj:r0.obj,pathLen:r0.path.length}},a0.prototype.restore=function(r0){let i0=this._reporterState;i0.obj=r0.obj,i0.path=i0.path.slice(0,r0.pathLen)},a0.prototype.enterKey=function(r0){return this._reporterState.path.push(r0)},a0.prototype.exitKey=function(r0){let i0=this._reporterState;i0.path=i0.path.slice(0,r0-1)},a0.prototype.leaveKey=function(r0,i0,$$){let Q$=this._reporterState;this.exitKey(r0),Q$.obj!==null&&(Q$.obj[i0]=$$)},a0.prototype.path=function(){return this._reporterState.path.join("/")},a0.prototype.enterObject=function(){let r0=this._reporterState,i0=r0.obj;return r0.obj={},i0},a0.prototype.leaveObject=function(r0){let i0=this._reporterState,$$=i0.obj;return i0.obj=r0,$$},a0.prototype.error=function(r0){let i0,$$=this._reporterState,Q$=r0 instanceof e0;if(Q$?i0=r0:i0=new e0($$.path.map(function($){return"["+JSON.stringify($)+"]"}).join(""),r0.message||r0,r0.stack),!$$.options.partial)throw i0;return Q$||$$.errors.push(i0),i0},a0.prototype.wrapResult=function(r0){let i0=this._reporterState;return i0.options.partial?{result:this.isError(r0)?null:r0,errors:i0.errors}:r0};function e0(r0,i0){this.path=r0,this.rethrow(i0)}m0(e0,Error),e0.prototype.rethrow=function(r0){if(this.message=r0+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,e0),!this.stack)try{throw new Error(this.message)}catch(i0){this.stack=i0.stack}return this}}}),kQ=pQ({"node_modules/asn1.js/lib/asn1/base/buffer.js"(t0){var m0=dQ(),a0=mY().Reporter,e0=tY().Buffer;function r0($$,Q$){if(a0.call(this,Q$),!e0.isBuffer($$)){this.error("Input not Buffer");return}this.base=$$,this.offset=0,this.length=$$.length}m0(r0,a0),t0.DecoderBuffer=r0,r0.isDecoderBuffer=function($$){return $$ instanceof r0?!0:typeof $$=="object"&&e0.isBuffer($$.base)&&$$.constructor.name==="DecoderBuffer"&&typeof $$.offset=="number"&&typeof $$.length=="number"&&typeof $$.save=="function"&&typeof $$.restore=="function"&&typeof $$.isEmpty=="function"&&typeof $$.readUInt8=="function"&&typeof $$.skip=="function"&&typeof $$.raw=="function"},r0.prototype.save=function(){return{offset:this.offset,reporter:a0.prototype.save.call(this)}},r0.prototype.restore=function($$){let Q$=new r0(this.base);return Q$.offset=$$.offset,Q$.length=this.offset,this.offset=$$.offset,a0.prototype.restore.call(this,$$.reporter),Q$},r0.prototype.isEmpty=function(){return this.offset===this.length},r0.prototype.readUInt8=function($$){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error($$||"DecoderBuffer overrun")},r0.prototype.skip=function($$,Q$){if(!(this.offset+$$<=this.length))return this.error(Q$||"DecoderBuffer overrun");let $=new r0(this.base);return $._reporterState=this._reporterState,$.offset=this.offset,$.length=this.offset+$$,this.offset+=$$,$},r0.prototype.raw=function($$){return this.base.slice($$?$$.offset:this.offset,this.length)};function i0($$,Q$){if(Array.isArray($$))this.length=0,this.value=$$.map(function($){return i0.isEncoderBuffer($)||($=new i0($,Q$)),this.length+=$.length,$},this);else if(typeof $$=="number"){if(!(0<=$$&&$$<=255))return Q$.error("non-byte EncoderBuffer value");this.value=$$,this.length=1}else if(typeof $$=="string")this.value=$$,this.length=e0.byteLength($$);else if(e0.isBuffer($$))this.value=$$,this.length=$$.length;else return Q$.error("Unsupported type: "+typeof $$)}t0.EncoderBuffer=i0,i0.isEncoderBuffer=function($$){return $$ instanceof i0?!0:typeof $$=="object"&&$$.constructor.name==="EncoderBuffer"&&typeof $$.length=="number"&&typeof $$.join=="function"},i0.prototype.join=function($$,Q$){return $$||($$=e0.alloc(this.length)),Q$||(Q$=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function($){$.join($$,Q$),Q$+=$.length}):(typeof this.value=="number"?$$[Q$]=this.value:typeof this.value=="string"?$$.write(this.value,Q$):e0.isBuffer(this.value)&&this.value.copy($$,Q$),Q$+=this.length)),$$}}}),aY=pQ({"node_modules/asn1.js/lib/asn1/base/node.js"(t0,m0){var a0=mY().Reporter,e0=kQ().EncoderBuffer,r0=kQ().DecoderBuffer,i0=v0(),$$=["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"],Q$=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat($$),$=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function N(O0,Z$,G$){let V$={};this._baseState=V$,V$.name=G$,V$.enc=O0,V$.parent=Z$||null,V$.children=null,V$.tag=null,V$.args=null,V$.reverseArgs=null,V$.choice=null,V$.optional=!1,V$.any=!1,V$.obj=!1,V$.use=null,V$.useDecoder=null,V$.key=null,V$.default=null,V$.explicit=null,V$.implicit=null,V$.contains=null,V$.parent||(V$.children=[],this._wrap())}m0.exports=N;var Y$=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){let O0=this._baseState,Z$={};Y$.forEach(function(V$){Z$[V$]=O0[V$]});let G$=new this.constructor(Z$.parent);return G$._baseState=Z$,G$},N.prototype._wrap=function(){let O0=this._baseState;Q$.forEach(function(Z$){this[Z$]=function(){let G$=new this.constructor(this);return O0.children.push(G$),G$[Z$].apply(G$,arguments)}},this)},N.prototype._init=function(O0){let Z$=this._baseState;i0(Z$.parent===null),O0.call(this),Z$.children=Z$.children.filter(function(G$){return G$._baseState.parent===this},this),i0.equal(Z$.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(O0){let Z$=this._baseState,G$=O0.filter(function(V$){return V$ instanceof this.constructor},this);O0=O0.filter(function(V$){return!(V$ instanceof this.constructor)},this),G$.length!==0&&(i0(Z$.children===null),Z$.children=G$,G$.forEach(function(V$){V$._baseState.parent=this},this)),O0.length!==0&&(i0(Z$.args===null),Z$.args=O0,Z$.reverseArgs=O0.map(function(V$){if(typeof V$!="object"||V$.constructor!==Object)return V$;let U$={};return Object.keys(V$).forEach(function(X$){X$==(X$|0)&&(X$|=0);let K$=V$[X$];U$[K$]=X$}),U$}))},$.forEach(function(O0){N.prototype[O0]=function(){let Z$=this._baseState;throw new Error(O0+" not implemented for encoding: "+Z$.enc)}}),$$.forEach(function(O0){N.prototype[O0]=function(){let Z$=this._baseState,G$=Array.prototype.slice.call(arguments);return i0(Z$.tag===null),Z$.tag=O0,this._useArgs(G$),this}}),N.prototype.use=function(O0){i0(O0);let Z$=this._baseState;return i0(Z$.use===null),Z$.use=O0,this},N.prototype.optional=function(){let O0=this._baseState;return O0.optional=!0,this},N.prototype.def=function(O0){let Z$=this._baseState;return i0(Z$.default===null),Z$.default=O0,Z$.optional=!0,this},N.prototype.explicit=function(O0){let Z$=this._baseState;return i0(Z$.explicit===null&&Z$.implicit===null),Z$.explicit=O0,this},N.prototype.implicit=function(O0){let Z$=this._baseState;return i0(Z$.explicit===null&&Z$.implicit===null),Z$.implicit=O0,this},N.prototype.obj=function(){let O0=this._baseState,Z$=Array.prototype.slice.call(arguments);return O0.obj=!0,Z$.length!==0&&this._useArgs(Z$),this},N.prototype.key=function(O0){let Z$=this._baseState;return i0(Z$.key===null),Z$.key=O0,this},N.prototype.any=function(){let O0=this._baseState;return O0.any=!0,this},N.prototype.choice=function(O0){let Z$=this._baseState;return i0(Z$.choice===null),Z$.choice=O0,this._useArgs(Object.keys(O0).map(function(G$){return O0[G$]})),this},N.prototype.contains=function(O0){let Z$=this._baseState;return i0(Z$.use===null),Z$.contains=O0,this},N.prototype._decode=function(O0,Z$){let G$=this._baseState;if(G$.parent===null)return O0.wrapResult(G$.children[0]._decode(O0,Z$));let V$=G$.default,U$=!0,X$=null;if(G$.key!==null&&(X$=O0.enterKey(G$.key)),G$.optional){let I$=null;if(G$.explicit!==null?I$=G$.explicit:G$.implicit!==null?I$=G$.implicit:G$.tag!==null&&(I$=G$.tag),I$===null&&!G$.any){let Q=O0.save();try{G$.choice===null?this._decodeGeneric(G$.tag,O0,Z$):this._decodeChoice(O0,Z$),U$=!0}catch{U$=!1}O0.restore(Q)}else if(U$=this._peekTag(O0,I$,G$.any),O0.isError(U$))return U$}let K$;if(G$.obj&&U$&&(K$=O0.enterObject()),U$){if(G$.explicit!==null){let Q=this._decodeTag(O0,G$.explicit);if(O0.isError(Q))return Q;O0=Q}let I$=O0.offset;if(G$.use===null&&G$.choice===null){let Q;G$.any&&(Q=O0.save());let x=this._decodeTag(O0,G$.implicit!==null?G$.implicit:G$.tag,G$.any);if(O0.isError(x))return x;G$.any?V$=O0.raw(Q):O0=x}if(Z$&&Z$.track&&G$.tag!==null&&Z$.track(O0.path(),I$,O0.length,"tagged"),Z$&&Z$.track&&G$.tag!==null&&Z$.track(O0.path(),O0.offset,O0.length,"content"),G$.any||(G$.choice===null?V$=this._decodeGeneric(G$.tag,O0,Z$):V$=this._decodeChoice(O0,Z$)),O0.isError(V$))return V$;if(!G$.any&&G$.choice===null&&G$.children!==null&&G$.children.forEach(function(Q){Q._decode(O0,Z$)}),G$.contains&&(G$.tag==="octstr"||G$.tag==="bitstr")){let Q=new r0(V$);V$=this._getUse(G$.contains,O0._reporterState.obj)._decode(Q,Z$)}}return G$.obj&&U$&&(V$=O0.leaveObject(K$)),G$.key!==null&&(V$!==null||U$===!0)?O0.leaveKey(X$,G$.key,V$):X$!==null&&O0.exitKey(X$),V$},N.prototype._decodeGeneric=function(O0,Z$,G$){let V$=this._baseState;return O0==="seq"||O0==="set"?null:O0==="seqof"||O0==="setof"?this._decodeList(Z$,O0,V$.args[0],G$):/str$/.test(O0)?this._decodeStr(Z$,O0,G$):O0==="objid"&&V$.args?this._decodeObjid(Z$,V$.args[0],V$.args[1],G$):O0==="objid"?this._decodeObjid(Z$,null,null,G$):O0==="gentime"||O0==="utctime"?this._decodeTime(Z$,O0,G$):O0==="null_"?this._decodeNull(Z$,G$):O0==="bool"?this._decodeBool(Z$,G$):O0==="objDesc"?this._decodeStr(Z$,O0,G$):O0==="int"||O0==="enum"?this._decodeInt(Z$,V$.args&&V$.args[0],G$):V$.use!==null?this._getUse(V$.use,Z$._reporterState.obj)._decode(Z$,G$):Z$.error("unknown tag: "+O0)},N.prototype._getUse=function(O0,Z$){let G$=this._baseState;return G$.useDecoder=this._use(O0,Z$),i0(G$.useDecoder._baseState.parent===null),G$.useDecoder=G$.useDecoder._baseState.children[0],G$.implicit!==G$.useDecoder._baseState.implicit&&(G$.useDecoder=G$.useDecoder.clone(),G$.useDecoder._baseState.implicit=G$.implicit),G$.useDecoder},N.prototype._decodeChoice=function(O0,Z$){let G$=this._baseState,V$=null,U$=!1;return Object.keys(G$.choice).some(function(X$){let K$=O0.save(),I$=G$.choice[X$];try{let Q=I$._decode(O0,Z$);if(O0.isError(Q))return!1;V$={type:X$,value:Q},U$=!0}catch{return O0.restore(K$),!1}return!0},this),U$?V$:O0.error("Choice not matched")},N.prototype._createEncoderBuffer=function(O0){return new e0(O0,this.reporter)},N.prototype._encode=function(O0,Z$,G$){let V$=this._baseState;if(V$.default!==null&&V$.default===O0)return;let U$=this._encodeValue(O0,Z$,G$);if(U$!==void 0&&!this._skipDefault(U$,Z$,G$))return U$},N.prototype._encodeValue=function(O0,Z$,G$){let V$=this._baseState;if(V$.parent===null)return V$.children[0]._encode(O0,Z$||new a0);let U$=null;if(this.reporter=Z$,V$.optional&&O0===void 0)if(V$.default!==null)O0=V$.default;else return;let X$=null,K$=!1;if(V$.any)U$=this._createEncoderBuffer(O0);else if(V$.choice)U$=this._encodeChoice(O0,Z$);else if(V$.contains)X$=this._getUse(V$.contains,G$)._encode(O0,Z$),K$=!0;else if(V$.children)X$=V$.children.map(function(I$){if(I$._baseState.tag==="null_")return I$._encode(null,Z$,O0);if(I$._baseState.key===null)return Z$.error("Child should have a key");let Q=Z$.enterKey(I$._baseState.key);if(typeof O0!="object")return Z$.error("Child expected, but input is not object");let x=I$._encode(O0[I$._baseState.key],Z$,O0);return Z$.leaveKey(Q),x},this).filter(function(I$){return I$}),X$=this._createEncoderBuffer(X$);else if(V$.tag==="seqof"||V$.tag==="setof"){if(!(V$.args&&V$.args.length===1))return Z$.error("Too many args for : "+V$.tag);if(!Array.isArray(O0))return Z$.error("seqof/setof, but data is not Array");let I$=this.clone();I$._baseState.implicit=null,X$=this._createEncoderBuffer(O0.map(function(Q){let x=this._baseState;return this._getUse(x.args[0],O0)._encode(Q,Z$)},I$))}else V$.use!==null?U$=this._getUse(V$.use,G$)._encode(O0,Z$):(X$=this._encodePrimitive(V$.tag,O0),K$=!0);if(!V$.any&&V$.choice===null){let I$=V$.implicit!==null?V$.implicit:V$.tag,Q=V$.implicit===null?"universal":"context";I$===null?V$.use===null&&Z$.error("Tag could be omitted only for .use()"):V$.use===null&&(U$=this._encodeComposite(I$,K$,Q,X$))}return V$.explicit!==null&&(U$=this._encodeComposite(V$.explicit,!1,"context",U$)),U$},N.prototype._encodeChoice=function(O0,Z$){let G$=this._baseState,V$=G$.choice[O0.type];return V$||i0(!1,O0.type+" not found in "+JSON.stringify(Object.keys(G$.choice))),V$._encode(O0.value,Z$)},N.prototype._encodePrimitive=function(O0,Z$){let G$=this._baseState;if(/str$/.test(O0))return this._encodeStr(Z$,O0);if(O0==="objid"&&G$.args)return this._encodeObjid(Z$,G$.reverseArgs[0],G$.args[1]);if(O0==="objid")return this._encodeObjid(Z$,null,null);if(O0==="gentime"||O0==="utctime")return this._encodeTime(Z$,O0);if(O0==="null_")return this._encodeNull();if(O0==="int"||O0==="enum")return this._encodeInt(Z$,G$.args&&G$.reverseArgs[0]);if(O0==="bool")return this._encodeBool(Z$);if(O0==="objDesc")return this._encodeStr(Z$,O0);throw new Error("Unsupported tag: "+O0)},N.prototype._isNumstr=function(O0){return/^[0-9 ]*$/.test(O0)},N.prototype._isPrintstr=function(O0){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O0)}}}),eY=pQ({"node_modules/asn1.js/lib/asn1/constants/der.js"(t0){function m0(a0){let e0={};return Object.keys(a0).forEach(function(r0){(r0|0)==r0&&(r0=r0|0);let i0=a0[r0];e0[i0]=r0}),e0}t0.tagClass={0:"universal",1:"application",2:"context",3:"private"},t0.tagClassByName=m0(t0.tagClass),t0.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"},t0.tagByName=m0(t0.tag)}}),R=pQ({"node_modules/asn1.js/lib/asn1/encoders/der.js"(t0,m0){var a0=dQ(),e0=tY().Buffer,r0=aY(),i0=eY();function $$(Y$){this.enc="der",this.name=Y$.name,this.entity=Y$,this.tree=new Q$,this.tree._init(Y$.body)}m0.exports=$$,$$.prototype.encode=function(Y$,O0){return this.tree._encode(Y$,O0).join()};function Q$(Y$){r0.call(this,"der",Y$)}a0(Q$,r0),Q$.prototype._encodeComposite=function(Y$,O0,Z$,G$){let V$=N(Y$,O0,Z$,this.reporter);if(G$.length<128){let K$=e0.alloc(2);return K$[0]=V$,K$[1]=G$.length,this._createEncoderBuffer([K$,G$])}let U$=1;for(let K$=G$.length;K$>=256;K$>>=8)U$++;let X$=e0.alloc(2+U$);X$[0]=V$,X$[1]=128|U$;for(let K$=1+U$,I$=G$.length;I$>0;K$--,I$>>=8)X$[K$]=I$&255;return this._createEncoderBuffer([X$,G$])},Q$.prototype._encodeStr=function(Y$,O0){if(O0==="bitstr")return this._createEncoderBuffer([Y$.unused|0,Y$.data]);if(O0==="bmpstr"){let Z$=e0.alloc(Y$.length*2);for(let G$=0;G$<Y$.length;G$++)Z$.writeUInt16BE(Y$.charCodeAt(G$),G$*2);return this._createEncoderBuffer(Z$)}else return O0==="numstr"?this._isNumstr(Y$)?this._createEncoderBuffer(Y$):this.reporter.error("Encoding of string type: numstr supports only digits and space"):O0==="printstr"?this._isPrintstr(Y$)?this._createEncoderBuffer(Y$):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(O0)?this._createEncoderBuffer(Y$):O0==="objDesc"?this._createEncoderBuffer(Y$):this.reporter.error("Encoding of string type: "+O0+" unsupported")},Q$.prototype._encodeObjid=function(Y$,O0,Z$){if(typeof Y$=="string"){if(!O0)return this.reporter.error("string objid given, but no values map found");if(!O0.hasOwnProperty(Y$))return this.reporter.error("objid not found in values map");Y$=O0[Y$].split(/[\s.]+/g);for(let X$=0;X$<Y$.length;X$++)Y$[X$]|=0}else if(Array.isArray(Y$)){Y$=Y$.slice();for(let X$=0;X$<Y$.length;X$++)Y$[X$]|=0}if(!Array.isArray(Y$))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(Y$));if(!Z$){if(Y$[1]>=40)return this.reporter.error("Second objid identifier OOB");Y$.splice(0,2,Y$[0]*40+Y$[1])}let G$=0;for(let X$=0;X$<Y$.length;X$++){let K$=Y$[X$];for(G$++;K$>=128;K$>>=7)G$++}let V$=e0.alloc(G$),U$=V$.length-1;for(let X$=Y$.length-1;X$>=0;X$--){let K$=Y$[X$];for(V$[U$--]=K$&127;(K$>>=7)>0;)V$[U$--]=128|K$&127}return this._createEncoderBuffer(V$)};function $(Y$){return Y$<10?"0"+Y$:Y$}Q$.prototype._encodeTime=function(Y$,O0){let Z$,G$=new Date(Y$);return O0==="gentime"?Z$=[$(G$.getUTCFullYear()),$(G$.getUTCMonth()+1),$(G$.getUTCDate()),$(G$.getUTCHours()),$(G$.getUTCMinutes()),$(G$.getUTCSeconds()),"Z"].join(""):O0==="utctime"?Z$=[$(G$.getUTCFullYear()%100),$(G$.getUTCMonth()+1),$(G$.getUTCDate()),$(G$.getUTCHours()),$(G$.getUTCMinutes()),$(G$.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+O0+" time is not supported yet"),this._encodeStr(Z$,"octstr")},Q$.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Q$.prototype._encodeInt=function(Y$,O0){if(typeof Y$=="string"){if(!O0)return this.reporter.error("String int or enum given, but no values map");if(!O0.hasOwnProperty(Y$))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(Y$));Y$=O0[Y$]}if(typeof Y$!="number"&&!e0.isBuffer(Y$)){let V$=Y$.toArray();!Y$.sign&&V$[0]&128&&V$.unshift(0),Y$=e0.from(V$)}if(e0.isBuffer(Y$)){let V$=Y$.length;Y$.length===0&&V$++;let U$=e0.alloc(V$);return Y$.copy(U$),Y$.length===0&&(U$[0]=0),this._createEncoderBuffer(U$)}if(Y$<128)return this._createEncoderBuffer(Y$);if(Y$<256)return this._createEncoderBuffer([0,Y$]);let Z$=1;for(let V$=Y$;V$>=256;V$>>=8)Z$++;let G$=new Array(Z$);for(let V$=G$.length-1;V$>=0;V$--)G$[V$]=Y$&255,Y$>>=8;return G$[0]&128&&G$.unshift(0),this._createEncoderBuffer(e0.from(G$))},Q$.prototype._encodeBool=function(Y$){return this._createEncoderBuffer(Y$?255:0)},Q$.prototype._use=function(Y$,O0){return typeof Y$=="function"&&(Y$=Y$(O0)),Y$._getEncoder("der").tree},Q$.prototype._skipDefault=function(Y$,O0,Z$){let G$=this._baseState,V$;if(G$.default===null)return!1;let U$=Y$.join();if(G$.defaultBuffer===void 0&&(G$.defaultBuffer=this._encodeValue(G$.default,O0,Z$).join()),U$.length!==G$.defaultBuffer.length)return!1;for(V$=0;V$<U$.length;V$++)if(U$[V$]!==G$.defaultBuffer[V$])return!1;return!0};function N(Y$,O0,Z$,G$){let V$;if(Y$==="seqof"?Y$="seq":Y$==="setof"&&(Y$="set"),i0.tagByName.hasOwnProperty(Y$))V$=i0.tagByName[Y$];else if(typeof Y$=="number"&&(Y$|0)===Y$)V$=Y$;else return G$.error("Unknown tag: "+Y$);return V$>=31?G$.error("Multi-octet tag encoding unsupported"):(O0||(V$|=32),V$|=i0.tagClassByName[Z$||"universal"]<<6,V$)}}}),r=pQ({"node_modules/asn1.js/lib/asn1/encoders/pem.js"(t0,m0){var a0=dQ(),e0=R();function r0(i0){e0.call(this,i0),this.enc="pem"}a0(r0,e0),m0.exports=r0,r0.prototype.encode=function(i0,$$){let Q$=e0.prototype.encode.call(this,i0).toString("base64"),$=["-----BEGIN "+$$.label+"-----"];for(let N=0;N<Q$.length;N+=64)$.push(Q$.slice(N,N+64));return $.push("-----END "+$$.label+"-----"),$.join(`
+`)}}}),c0=pQ({"node_modules/asn1.js/lib/asn1/encoders/index.js"(t0){var m0=t0;m0.der=R(),m0.pem=r()}}),h0=pQ({"node_modules/asn1.js/lib/asn1/decoders/der.js"(t0,m0){var a0=dQ(),e0=sY(),r0=kQ().DecoderBuffer,i0=aY(),$$=eY();function Q$(O0){this.enc="der",this.name=O0.name,this.entity=O0,this.tree=new $,this.tree._init(O0.body)}m0.exports=Q$,Q$.prototype.decode=function(O0,Z$){return r0.isDecoderBuffer(O0)||(O0=new r0(O0,Z$)),this.tree._decode(O0,Z$)};function $(O0){i0.call(this,"der",O0)}a0($,i0),$.prototype._peekTag=function(O0,Z$,G$){if(O0.isEmpty())return!1;let V$=O0.save(),U$=N(O0,'Failed to peek tag: "'+Z$+'"');return O0.isError(U$)?U$:(O0.restore(V$),U$.tag===Z$||U$.tagStr===Z$||U$.tagStr+"of"===Z$||G$)},$.prototype._decodeTag=function(O0,Z$,G$){let V$=N(O0,'Failed to decode tag of "'+Z$+'"');if(O0.isError(V$))return V$;let U$=Y$(O0,V$.primitive,'Failed to get length of "'+Z$+'"');if(O0.isError(U$))return U$;if(!G$&&V$.tag!==Z$&&V$.tagStr!==Z$&&V$.tagStr+"of"!==Z$)return O0.error('Failed to match tag: "'+Z$+'"');if(V$.primitive||U$!==null)return O0.skip(U$,'Failed to match body of: "'+Z$+'"');let X$=O0.save(),K$=this._skipUntilEnd(O0,'Failed to skip indefinite length body: "'+this.tag+'"');return O0.isError(K$)?K$:(U$=O0.offset-X$.offset,O0.restore(X$),O0.skip(U$,'Failed to match body of: "'+Z$+'"'))},$.prototype._skipUntilEnd=function(O0,Z$){for(;;){let G$=N(O0,Z$);if(O0.isError(G$))return G$;let V$=Y$(O0,G$.primitive,Z$);if(O0.isError(V$))return V$;let U$;if(G$.primitive||V$!==null?U$=O0.skip(V$):U$=this._skipUntilEnd(O0,Z$),O0.isError(U$))return U$;if(G$.tagStr==="end")break}},$.prototype._decodeList=function(O0,Z$,G$,V$){let U$=[];for(;!O0.isEmpty();){let X$=this._peekTag(O0,"end");if(O0.isError(X$))return X$;let K$=G$.decode(O0,"der",V$);if(O0.isError(K$)&&X$)break;U$.push(K$)}return U$},$.prototype._decodeStr=function(O0,Z$){if(Z$==="bitstr"){let G$=O0.readUInt8();return O0.isError(G$)?G$:{unused:G$,data:O0.raw()}}else if(Z$==="bmpstr"){let G$=O0.raw();if(G$.length%2===1)return O0.error("Decoding of string type: bmpstr length mismatch");let V$="";for(let U$=0;U$<G$.length/2;U$++)V$+=String.fromCharCode(G$.readUInt16BE(U$*2));return V$}else if(Z$==="numstr"){let G$=O0.raw().toString("ascii");return this._isNumstr(G$)?G$:O0.error("Decoding of string type: numstr unsupported characters")}else{if(Z$==="octstr")return O0.raw();if(Z$==="objDesc")return O0.raw();if(Z$==="printstr"){let G$=O0.raw().toString("ascii");return this._isPrintstr(G$)?G$:O0.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(Z$)?O0.raw().toString():O0.error("Decoding of string type: "+Z$+" unsupported")}},$.prototype._decodeObjid=function(O0,Z$,G$){let V$,U$=[],X$=0,K$=0;for(;!O0.isEmpty();)K$=O0.readUInt8(),X$<<=7,X$|=K$&127,(K$&128)===0&&(U$.push(X$),X$=0);K$&128&&U$.push(X$);let I$=U$[0]/40|0,Q=U$[0]%40;if(G$?V$=U$:V$=[I$,Q].concat(U$.slice(1)),Z$){let x=Z$[V$.join(" ")];x===void 0&&(x=Z$[V$.join(".")]),x!==void 0&&(V$=x)}return V$},$.prototype._decodeTime=function(O0,Z$){let G$=O0.raw().toString(),V$,U$,X$,K$,I$,Q;if(Z$==="gentime")V$=G$.slice(0,4)|0,U$=G$.slice(4,6)|0,X$=G$.slice(6,8)|0,K$=G$.slice(8,10)|0,I$=G$.slice(10,12)|0,Q=G$.slice(12,14)|0;else if(Z$==="utctime")V$=G$.slice(0,2)|0,U$=G$.slice(2,4)|0,X$=G$.slice(4,6)|0,K$=G$.slice(6,8)|0,I$=G$.slice(8,10)|0,Q=G$.slice(10,12)|0,V$<70?V$=2000+V$:V$=1900+V$;else return O0.error("Decoding "+Z$+" time is not supported yet");return Date.UTC(V$,U$-1,X$,K$,I$,Q,0)},$.prototype._decodeNull=function(){return null},$.prototype._decodeBool=function(O0){let Z$=O0.readUInt8();return O0.isError(Z$)?Z$:Z$!==0},$.prototype._decodeInt=function(O0,Z$){let G$=O0.raw(),V$=new e0(G$);return Z$&&(V$=Z$[V$.toString(10)]||V$),V$},$.prototype._use=function(O0,Z$){return typeof O0=="function"&&(O0=O0(Z$)),O0._getDecoder("der").tree};function N(O0,Z$){let G$=O0.readUInt8(Z$);if(O0.isError(G$))return G$;let V$=$$.tagClass[G$>>6],U$=(G$&32)===0;if((G$&31)===31){let K$=G$;for(G$=0;(K$&128)===128;){if(K$=O0.readUInt8(Z$),O0.isError(K$))return K$;G$<<=7,G$|=K$&127}}else G$&=31;let X$=$$.tag[G$];return{cls:V$,primitive:U$,tag:G$,tagStr:X$}}function Y$(O0,Z$,G$){let V$=O0.readUInt8(G$);if(O0.isError(V$))return V$;if(!Z$&&V$===128)return null;if((V$&128)===0)return V$;let U$=V$&127;if(U$>4)return O0.error("length octect is too long");V$=0;for(let X$=0;X$<U$;X$++){V$<<=8;let K$=O0.readUInt8(G$);if(O0.isError(K$))return K$;V$|=K$}return V$}}}),rY=pQ({"node_modules/asn1.js/lib/asn1/decoders/pem.js"(t0,m0){var a0=dQ(),e0=tY().Buffer,r0=h0();function i0($$){r0.call(this,$$),this.enc="pem"}a0(i0,r0),m0.exports=i0,i0.prototype.decode=function($$,Q$){let $=$$.toString().split(/[\r\n]+/g),N=Q$.label.toUpperCase(),Y$=/^-----(BEGIN|END) ([^-]+)-----$/,O0=-1,Z$=-1;for(let U$=0;U$<$.length;U$++){let X$=$[U$].match(Y$);if(X$!==null&&X$[2]===N)if(O0===-1){if(X$[1]!=="BEGIN")break;O0=U$}else{if(X$[1]!=="END")break;Z$=U$;break}}if(O0===-1||Z$===-1)throw new Error("PEM section not found for: "+N);let G$=$.slice(O0+1,Z$).join("");G$.replace(/[^a-z0-9+/=]+/gi,"");let V$=e0.from(G$,"base64");return r0.prototype.decode.call(this,V$,Q$)}}}),iY=pQ({"node_modules/asn1.js/lib/asn1/decoders/index.js"(t0){var m0=t0;m0.der=h0(),m0.pem=rY()}}),$Z=pQ({"node_modules/asn1.js/lib/asn1/api.js"(t0){var m0=c0(),a0=iY(),e0=dQ(),r0=t0;r0.define=function($$,Q$){return new i0($$,Q$)};function i0($$,Q$){this.name=$$,this.body=Q$,this.decoders={},this.encoders={}}i0.prototype._createNamed=function($$){let Q$=this.name;function $(N){this._initNamed(N,Q$)}return e0($,$$),$.prototype._initNamed=function(N,Y$){$$.call(this,N,Y$)},new $(this)},i0.prototype._getDecoder=function($$){return $$=$$||"der",this.decoders.hasOwnProperty($$)||(this.decoders[$$]=this._createNamed(a0[$$])),this.decoders[$$]},i0.prototype.decode=function($$,Q$,$){return this._getDecoder(Q$).decode($$,$)},i0.prototype._getEncoder=function($$){return $$=$$||"der",this.encoders.hasOwnProperty($$)||(this.encoders[$$]=this._createNamed(m0[$$])),this.encoders[$$]},i0.prototype.encode=function($$,Q$,$){return this._getEncoder(Q$).encode($$,$)}}}),QZ=pQ({"node_modules/asn1.js/lib/asn1/base/index.js"(t0){var m0=t0;m0.Reporter=mY().Reporter,m0.DecoderBuffer=kQ().DecoderBuffer,m0.EncoderBuffer=kQ().EncoderBuffer,m0.Node=aY()}}),YZ=pQ({"node_modules/asn1.js/lib/asn1/constants/index.js"(t0){var m0=t0;m0._reverse=function(a0){let e0={};return Object.keys(a0).forEach(function(r0){(r0|0)==r0&&(r0=r0|0);let i0=a0[r0];e0[i0]=r0}),e0},m0.der=eY()}}),ZZ=pQ({"node_modules/asn1.js/lib/asn1.js"(t0){var m0=t0;m0.bignum=sY(),m0.define=$Z().define,m0.base=QZ(),m0.constants=YZ(),m0.decoders=iY(),m0.encoders=c0()}}),GZ=pQ({"node_modules/parse-asn1/certificate.js"(t0,m0){var a0=ZZ(),e0=a0.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),r0=a0.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),i0=a0.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),$$=a0.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i0),this.key("subjectPublicKey").bitstr())}),Q$=a0.define("RelativeDistinguishedName",function(){this.setof(r0)}),$=a0.define("RDNSequence",function(){this.seqof(Q$)}),N=a0.define("Name",function(){this.choice({rdnSequence:this.use($)})}),Y$=a0.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e0),this.key("notAfter").use(e0))}),O0=a0.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),Z$=a0.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i0),this.key("issuer").use(N),this.key("validity").use(Y$),this.key("subject").use(N),this.key("subjectPublicKeyInfo").use($$),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(O0).optional())}),G$=a0.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(Z$),this.key("signatureAlgorithm").use(i0),this.key("signatureValue").bitstr())});m0.exports=G$}}),P=pQ({"node_modules/parse-asn1/asn1.js"(t0){var m0=ZZ();t0.certificate=GZ();var a0=m0.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t0.RSAPrivateKey=a0;var e0=m0.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t0.RSAPublicKey=e0;var r0=m0.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i0),this.key("subjectPublicKey").bitstr())});t0.PublicKey=r0;var i0=m0.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),$$=m0.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i0),this.key("subjectPrivateKey").octstr())});t0.PrivateKey=$$;var Q$=m0.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t0.EncryptedPrivateKey=Q$;var $=m0.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t0.DSAPrivateKey=$,t0.DSAparam=m0.define("DSAparam",function(){this.int()});var N=m0.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Y$),this.key("publicKey").optional().explicit(1).bitstr())});t0.ECPrivateKey=N;var Y$=m0.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t0.signature=m0.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),i=pQ({"node_modules/parse-asn1/aesid.json"(t0,m0){m0.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),VZ=pQ({"node_modules/parse-asn1/fixProc.js"(t0,m0){var a0=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,e0=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,r0=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i0=k0(),$$=DY(),Q$=cQ().Buffer;m0.exports=function($,N){var Y$=$.toString(),O0=Y$.match(a0),Z$;if(O0){var G$="aes"+O0[1],V$=Q$.from(O0[2],"hex"),U$=Q$.from(O0[3].replace(/[\r\n]/g,""),"base64"),X$=i0(N,V$.slice(0,8),parseInt(O0[1],10)).key,K$=[],I$=$$.createDecipheriv(G$,X$,V$);K$.push(I$.update(U$)),K$.push(I$.final()),Z$=Q$.concat(K$)}else{var Q=Y$.match(r0);Z$=Q$.from(Q[2].replace(/[\r\n]/g,""),"base64")}var x=Y$.match(e0)[1];return{tag:x,data:Z$}}}}),d0=pQ({"node_modules/parse-asn1/index.js"(t0,m0){var a0=P(),e0=i(),r0=VZ(),i0=DY(),$$=u(),Q$=cQ().Buffer;m0.exports=$;function $(Y$){var O0;typeof Y$=="object"&&!Q$.isBuffer(Y$)&&(O0=Y$.passphrase,Y$=Y$.key),typeof Y$=="string"&&(Y$=Q$.from(Y$));var Z$=r0(Y$,O0),G$=Z$.tag,V$=Z$.data,U$,X$;switch(G$){case"CERTIFICATE":X$=a0.certificate.decode(V$,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(X$||(X$=a0.PublicKey.decode(V$,"der")),U$=X$.algorithm.algorithm.join("."),U$){case"1.2.840.113549.1.1.1":return a0.RSAPublicKey.decode(X$.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return X$.subjectPrivateKey=X$.subjectPublicKey,{type:"ec",data:X$};case"1.2.840.10040.4.1":return X$.algorithm.params.pub_key=a0.DSAparam.decode(X$.subjectPublicKey.data,"der"),{type:"dsa",data:X$.algorithm.params};default:throw new Error("unknown key id "+U$)}case"ENCRYPTED PRIVATE KEY":V$=a0.EncryptedPrivateKey.decode(V$,"der"),V$=N(V$,O0);case"PRIVATE KEY":switch(X$=a0.PrivateKey.decode(V$,"der"),U$=X$.algorithm.algorithm.join("."),U$){case"1.2.840.113549.1.1.1":return a0.RSAPrivateKey.decode(X$.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:X$.algorithm.curve,privateKey:a0.ECPrivateKey.decode(X$.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return X$.algorithm.params.priv_key=a0.DSAparam.decode(X$.subjectPrivateKey,"der"),{type:"dsa",params:X$.algorithm.params};default:throw new Error("unknown key id "+U$)}case"RSA PUBLIC KEY":return a0.RSAPublicKey.decode(V$,"der");case"RSA PRIVATE KEY":return a0.RSAPrivateKey.decode(V$,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a0.DSAPrivateKey.decode(V$,"der")};case"EC PRIVATE KEY":return V$=a0.ECPrivateKey.decode(V$,"der"),{curve:V$.parameters.value,privateKey:V$.privateKey};default:throw new Error("unknown key type "+G$)}}$.signature=a0.signature;function N(Y$,O0){var Z$=Y$.algorithm.decrypt.kde.kdeparams.salt,G$=parseInt(Y$.algorithm.decrypt.kde.kdeparams.iters.toString(),10),V$=e0[Y$.algorithm.decrypt.cipher.algo.join(".")],U$=Y$.algorithm.decrypt.cipher.iv,X$=Y$.subjectPrivateKey,K$=parseInt(V$.split("-")[1],10)/8,I$=$$.pbkdf2Sync(O0,Z$,G$,K$,"sha1"),Q=i0.createDecipheriv(V$,I$,U$),x=[];return x.push(Q.update(X$)),x.push(Q.final()),Q$.concat(x)}}}),UZ=pQ({"node_modules/browserify-sign/browser/curves.json"(t0,m0){m0.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),XZ=pQ({"node_modules/browserify-sign/browser/sign.js"(t0,m0){var a0=cQ().Buffer,e0=aQ(),r0=qY(),i0=nY().ec,$$=vY(),Q$=d0(),$=UZ();function N(I$,Q,x,O$,J0){var J$=Q$(Q);if(J$.curve){if(O$!=="ecdsa"&&O$!=="ecdsa/rsa")throw new Error("wrong private key type");return Y$(I$,J$)}else if(J$.type==="dsa"){if(O$!=="dsa")throw new Error("wrong private key type");return O0(I$,J$,x)}else if(O$!=="rsa"&&O$!=="ecdsa/rsa")throw new Error("wrong private key type");I$=a0.concat([J0,I$]);for(var F$=J$.modulus.byteLength(),A$=[0,1];I$.length+A$.length+1<F$;)A$.push(255);A$.push(0);for(var H$=-1;++H$<I$.length;)A$.push(I$[H$]);var W$=r0(A$,J$);return W$}function Y$(I$,Q){var x=$[Q.curve.join(".")];if(!x)throw new Error("unknown curve "+Q.curve.join("."));var O$=new i0(x),J0=O$.keyFromPrivate(Q.privateKey),J$=J0.sign(I$);return a0.from(J$.toDER())}function O0(I$,Q,x){for(var O$=Q.params.priv_key,J0=Q.params.p,J$=Q.params.q,F$=Q.params.g,A$=new $$(0),H$,W$=V$(I$,J$).mod(J$),E$=!1,T$=G$(O$,J$,I$,x);E$===!1;)H$=X$(J$,T$,x),A$=K$(F$,H$,J0,J$),E$=H$.invm(J$).imul(W$.add(O$.mul(A$))).mod(J$),E$.cmpn(0)===0&&(E$=!1,A$=new $$(0));return Z$(A$,E$)}function Z$(I$,Q){I$=I$.toArray(),Q=Q.toArray(),I$[0]&128&&(I$=[0].concat(I$)),Q[0]&128&&(Q=[0].concat(Q));var x=I$.length+Q.length+4,O$=[48,x,2,I$.length];return O$=O$.concat(I$,[2,Q.length],Q),a0.from(O$)}function G$(I$,Q,x,O$){if(I$=a0.from(I$.toArray()),I$.length<Q.byteLength()){var J0=a0.alloc(Q.byteLength()-I$.length);I$=a0.concat([J0,I$])}var J$=x.length,F$=U$(x,Q),A$=a0.alloc(J$);A$.fill(1);var H$=a0.alloc(J$);return H$=e0(O$,H$).update(A$).update(a0.from([0])).update(I$).update(F$).digest(),A$=e0(O$,H$).update(A$).digest(),H$=e0(O$,H$).update(A$).update(a0.from([1])).update(I$).update(F$).digest(),A$=e0(O$,H$).update(A$).digest(),{k:H$,v:A$}}function V$(I$,Q){var x=new $$(I$),O$=(I$.length<<3)-Q.bitLength();return O$>0&&x.ishrn(O$),x}function U$(I$,Q){I$=V$(I$,Q),I$=I$.mod(Q);var x=a0.from(I$.toArray());if(x.length<Q.byteLength()){var O$=a0.alloc(Q.byteLength()-x.length);x=a0.concat([O$,x])}return x}function X$(I$,Q,x){var O$,J0;do{for(O$=a0.alloc(0);O$.length*8<I$.bitLength();)Q.v=e0(x,Q.k).update(Q.v).digest(),O$=a0.concat([O$,Q.v]);J0=V$(O$,I$),Q.k=e0(x,Q.k).update(Q.v).update(a0.from([0])).digest(),Q.v=e0(x,Q.k).update(Q.v).digest()}while(J0.cmp(I$)!==-1);return J0}function K$(I$,Q,x,O$){return I$.toRed($$.mont(x)).redPow(Q).fromRed().mod(O$)}m0.exports=N,m0.exports.getKey=G$,m0.exports.makeKey=X$}}),KZ=pQ({"node_modules/browserify-sign/browser/verify.js"(t0,m0){var a0=cQ().Buffer,e0=vY(),r0=nY().ec,i0=d0(),$$=UZ();function Q$(O0,Z$,G$,V$,U$){var X$=i0(G$);if(X$.type==="ec"){if(V$!=="ecdsa"&&V$!=="ecdsa/rsa")throw new Error("wrong public key type");return $(O0,Z$,X$)}else if(X$.type==="dsa"){if(V$!=="dsa")throw new Error("wrong public key type");return N(O0,Z$,X$)}else if(V$!=="rsa"&&V$!=="ecdsa/rsa")throw new Error("wrong public key type");Z$=a0.concat([U$,Z$]);for(var K$=X$.modulus.byteLength(),I$=[1],Q=0;Z$.length+I$.length+2<K$;)I$.push(255),Q++;I$.push(0);for(var x=-1;++x<Z$.length;)I$.push(Z$[x]);I$=a0.from(I$);var O$=e0.mont(X$.modulus);O0=new e0(O0).toRed(O$),O0=O0.redPow(new e0(X$.publicExponent)),O0=a0.from(O0.fromRed().toArray());var J0=Q<8?1:0;for(K$=Math.min(O0.length,I$.length),O0.length!==I$.length&&(J0=1),x=-1;++x<K$;)J0|=O0[x]^I$[x];return J0===0}function $(O0,Z$,G$){var V$=$$[G$.data.algorithm.curve.join(".")];if(!V$)throw new Error("unknown curve "+G$.data.algorithm.curve.join("."));var U$=new r0(V$),X$=G$.data.subjectPrivateKey.data;return U$.verify(Z$,O0,X$)}function N(O0,Z$,G$){var V$=G$.data.p,U$=G$.data.q,X$=G$.data.g,K$=G$.data.pub_key,I$=i0.signature.decode(O0,"der"),Q=I$.s,x=I$.r;Y$(Q,U$),Y$(x,U$);var O$=e0.mont(V$),J0=Q.invm(U$),J$=X$.toRed(O$).redPow(new e0(Z$).mul(J0).mod(U$)).fromRed().mul(K$.toRed(O$).redPow(x.mul(J0).mod(U$)).fromRed()).mod(V$).mod(U$);return J$.cmp(x)===0}function Y$(O0,Z$){if(O0.cmpn(0)<=0)throw new Error("invalid sig");if(O0.cmp(Z$)>=Z$)throw new Error("invalid sig")}m0.exports=Q$}}),IZ=pQ({"node_modules/browserify-sign/browser/index.js"(t0,m0){var a0=cQ().Buffer,e0=w(),r0=dQ(),i0=XZ(),$$=KZ(),Q$=eQ();Object.keys(Q$).forEach(function(Z$){Q$[Z$].id=a0.from(Q$[Z$].id,"hex"),Q$[Z$.toLowerCase()]=Q$[Z$]});function $(Z$){R0.Writable.call(this);var G$=Q$[Z$];if(!G$)throw new Error("Unknown message digest");this._hashType=G$.hash,this._hash=e0(G$.hash),this._tag=G$.id,this._signType=G$.sign}r0($,R0.Writable),$.prototype._write=function(Z$,G$,V$){this._hash.update(Z$),V$()},$.prototype.update=function(Z$,G$){return typeof Z$=="string"&&(Z$=a0.from(Z$,G$)),this._hash.update(Z$),this},$.prototype.sign=function(Z$,G$){this.end();var V$=this._hash.digest(),U$=i0(V$,Z$,this._hashType,this._signType,this._tag);return G$?U$.toString(G$):U$};function N(Z$){R0.Writable.call(this);var G$=Q$[Z$];if(!G$)throw new Error("Unknown message digest");this._hash=e0(G$.hash),this._tag=G$.id,this._signType=G$.sign}r0(N,R0.Writable),N.prototype._write=function(Z$,G$,V$){this._hash.update(Z$),V$()},N.prototype.update=function(Z$,G$){return typeof Z$=="string"&&(Z$=a0.from(Z$,G$)),this._hash.update(Z$),this},N.prototype.verify=function(Z$,G$,V$){typeof G$=="string"&&(G$=a0.from(G$,V$)),this.end();var U$=this._hash.digest();return $$(G$,U$,Z$,this._signType,this._tag)};function Y$(Z$){return new $(Z$)}function O0(Z$){return new N(Z$)}m0.exports={Sign:Y$,Verify:O0,createSign:Y$,createVerify:O0}}}),OZ=pQ({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),JZ=pQ({"node_modules/create-ecdh/browser.js"(t0,m0){var a0=nY(),e0=OZ();m0.exports=function(Q$){return new i0(Q$)};var r0={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}};r0.p224=r0.secp224r1,r0.p256=r0.secp256r1=r0.prime256v1,r0.p192=r0.secp192r1=r0.prime192v1,r0.p384=r0.secp384r1,r0.p521=r0.secp521r1;function i0(Q$){this.curveType=r0[Q$],this.curveType||(this.curveType={name:Q$}),this.curve=new a0.ec(this.curveType.name),this.keys=void 0}i0.prototype.generateKeys=function(Q$,$){return this.keys=this.curve.genKeyPair(),this.getPublicKey(Q$,$)},i0.prototype.computeSecret=function(Q$,$,N){$=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$));var Y$=this.curve.keyFromPublic(Q$).getPublic(),O0=Y$.mul(this.keys.getPrivate()).getX();return $$(O0,N,this.curveType.byteLength)},i0.prototype.getPublicKey=function(Q$,$){var N=this.keys.getPublic($==="compressed",!0);return $==="hybrid"&&(N[N.length-1]%2?N[0]=7:N[0]=6),$$(N,Q$)},i0.prototype.getPrivateKey=function(Q$){return $$(this.keys.getPrivate(),Q$)},i0.prototype.setPublicKey=function(Q$,$){return $=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$)),this.keys._importPublic(Q$),this},i0.prototype.setPrivateKey=function(Q$,$){$=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$));var N=new e0(Q$);return N=N.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(N),this};function $$(Q$,$,N){Array.isArray(Q$)||(Q$=Q$.toArray());var Y$=new G0(Q$);if(N&&Y$.length<N){var O0=new G0(N-Y$.length);O0.fill(0),Y$=G0.concat([O0,Y$])}return $?Y$.toString($):Y$}}}),FZ=pQ({"node_modules/public-encrypt/mgf.js"(t0,m0){var a0=w(),e0=cQ().Buffer;m0.exports=function(i0,$$){for(var Q$=e0.alloc(0),$=0,N;Q$.length<$$;)N=r0($++),Q$=e0.concat([Q$,a0("sha1").update(i0).update(N).digest()]);return Q$.slice(0,$$)};function r0(i0){var $$=e0.allocUnsafe(4);return $$.writeUInt32BE(i0,0),$$}}}),z=pQ({"node_modules/public-encrypt/xor.js"(t0,m0){m0.exports=function(a0,e0){for(var r0=a0.length,i0=-1;++i0<r0;)a0[i0]^=e0[i0];return a0}}}),$0=pQ({"node_modules/public-encrypt/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=globalThis.Buffer;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f<E$.length&&(T$===16?this._parseHex(E$,f,Y):(this._parseBase(E$,T$,f),Y==="le"&&this._initArray(this.toArray(),T$,Y)))},$$.prototype._initNumber=function(E$,T$,Y){E$<0&&(this.negative=1,E$=-E$),E$<67108864?(this.words=[E$&67108863],this.length=1):E$<4503599627370496?(this.words=[E$&67108863,E$/67108864&67108863],this.length=2):(r0(E$<9007199254740992),this.words=[E$&67108863,E$/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),T$,Y)},$$.prototype._initArray=function(E$,T$,Y){if(r0(typeof E$.length=="number"),E$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E$.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$,F0,C$=0;if(Y==="be")for(f=E$.length-1,D$=0;f>=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f<E$.length;f+=3)F0=E$[f]|E$[f+1]<<8|E$[f+2]<<16,this.words[D$]|=F0<<C$&67108863,this.words[D$+1]=F0>>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var D$=0,F0=0,C$;if(Y==="be")for(f=E$.length-1;f>=T$;f-=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f<E$.length;f+=2)C$=N(E$,T$,f)<<D$,this.words[F0]|=C$&67108863,D$>=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$<F0;C$++){var L$=E$.charCodeAt(C$)-48;D$*=f,L$>=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$<L$;P$+=f)R$=Y$(E$,P$,P$+f,T$),this.imuln(D$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$);if(C$!==0){var z$=1;for(R$=Y$(E$,P$,E$.length,T$),P$=0;P$<C$;P$++)z$*=T$;this.imuln(z$),this.words[0]+R$<67108864?this.words[0]+=R$:this._iaddn(R$)}this.strip()},$$.prototype.copy=function(E$){E$.words=new Array(this.length);for(var T$=0;T$<this.length;T$++)E$.words[T$]=this.words[T$];E$.length=this.length,E$.negative=this.negative,E$.red=this.red},$$.prototype.clone=function(){var E$=new $$(null);return this.copy(E$),E$},$$.prototype._expand=function(E$){for(;this.length<E$;)this.words[this.length++]=0;return this},$$.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0<this.length;F0++){var C$=this.words[F0],L$=((C$<<f|D$)&16777215).toString(16);D$=C$>>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$<D$;R$++)C$[R$]=0}else{for(R$=0;R$<D$-f;R$++)C$[R$]=0;for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[D$-R$-1]=L$}return C$},Math.clz32?$$.prototype._countBits=function(E$){return 32-Math.clz32(E$)}:$$.prototype._countBits=function(E$){var T$=E$,Y=0;return T$>=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y<T$.length;Y++){var f=Y/26|0,D$=Y%26;T$[Y]=(E$.words[f]&1<<D$)>>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$<this.length;T$++){var Y=this._zeroBits(this.words[T$]);if(E$+=Y,Y!==26)break}return E$},$$.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},$$.prototype.toTwos=function(E$){return this.negative!==0?this.abs().inotn(E$).iaddn(1):this.clone()},$$.prototype.fromTwos=function(E$){return this.testn(E$-1)?this.notn(E$).iaddn(1).ineg():this.clone()},$$.prototype.isNeg=function(){return this.negative!==0},$$.prototype.neg=function(){return this.clone().ineg()},$$.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},$$.prototype.iuor=function(E$){for(;this.length<E$.length;)this.words[this.length++]=0;for(var T$=0;T$<E$.length;T$++)this.words[T$]=this.words[T$]|E$.words[T$];return this.strip()},$$.prototype.ior=function(E$){return r0((this.negative|E$.negative)===0),this.iuor(E$)},$$.prototype.or=function(E$){return this.length>E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;Y<T$.length;Y++)this.words[Y]=this.words[Y]&E$.words[Y];return this.length=T$.length,this.strip()},$$.prototype.iand=function(E$){return r0((this.negative|E$.negative)===0),this.iuand(E$)},$$.prototype.and=function(E$){return this.length>E$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;f<Y.length;f++)this.words[f]=T$.words[f]^Y.words[f];if(this!==T$)for(;f<T$.length;f++)this.words[f]=T$.words[f];return this.length=T$.length,this.strip()},$$.prototype.ixor=function(E$){return r0((this.negative|E$.negative)===0),this.iuxor(E$)},$$.prototype.xor=function(E$){return this.length>E$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f<T$;f++)this.words[f]=~this.words[f]&67108863;return Y>0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<<f:this.words[Y]=this.words[Y]&~(1<<f),this.strip()},$$.prototype.iadd=function(E$){var T$;if(this.negative!==0&&E$.negative===0)return this.negative=0,T$=this.isub(E$),this.negative^=1,this._normSign();if(this.negative===0&&E$.negative!==0)return E$.negative=0,T$=this.isub(E$),E$.negative=1,T$._normSign();var Y,f;this.length>E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0<f.length;F0++)T$=(Y.words[F0]|0)+(f.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;for(;D$!==0&&F0<Y.length;F0++)T$=(Y.words[F0]|0)+D$,this.words[F0]=T$&67108863,D$=T$>>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0<Y.length;F0++)this.words[F0]=Y.words[F0];return this},$$.prototype.add=function(E$){var T$;return E$.negative!==0&&this.negative===0?(E$.negative=0,T$=this.sub(E$),E$.negative^=1,T$):E$.negative===0&&this.negative!==0?(this.negative=0,T$=E$.sub(this),this.negative=1,T$):this.length>E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$<D$.length;C$++)T$=(f.words[C$]|0)-(D$.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$<f.length;C$++)T$=(f.words[C$]|0)+F0,F0=T$>>26,this.words[C$]=T$&67108863;if(F0===0&&C$<f.length&&f!==this)for(;C$<f.length;C$++)this.words[C$]=f.words[C$];return this.length=Math.max(this.length,C$),f!==this&&(this.negative=1),this.strip()},$$.prototype.sub=function(E$){return this.clone().isub(E$)};function U$(E$,T$,Y){Y.negative=T$.negative^E$.negative;var f=E$.length+T$.length|0;Y.length=f,f=f-1|0;var D$=E$.words[0]|0,F0=T$.words[0]|0,C$=D$*F0,L$=C$&67108863,R$=C$/67108864|0;Y.words[0]=L$;for(var P$=1;P$<f;P$++){for(var z$=R$>>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0<Y.length-1;F0++){var C$=D$;D$=0;for(var L$=f&67108863,R$=Math.min(F0,T$.length-1),P$=Math.max(0,F0-E$.length+1);P$<=R$;P$++){var z$=F0-P$,M$=E$.words[z$]|0,S$=T$.words[P$]|0,Z=M$*S$,c=Z&67108863;C$=C$+(Z/67108864|0)|0,c=c+L$|0,L$=c&67108863,C$=C$+(c>>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f<E$;f++)T$[f]=this.revBin(f,Y,E$);return T$},Q.prototype.revBin=function(E$,T$,Y){if(E$===0||E$===Y-1)return E$;for(var f=0,D$=0;D$<T$;D$++)f|=(E$&1)<<T$-D$-1,E$>>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$<F0;C$++)f[C$]=T$[E$[C$]],D$[C$]=Y[E$[C$]]},Q.prototype.transform=function(E$,T$,Y,f,D$,F0){this.permute(F0,E$,T$,Y,f,D$);for(var C$=1;C$<D$;C$<<=1)for(var L$=C$<<1,R$=Math.cos(2*Math.PI/L$),P$=Math.sin(2*Math.PI/L$),z$=0;z$<D$;z$+=L$)for(var M$=R$,S$=P$,Z=0;Z<C$;Z++){var c=Y[z$+Z],v$=f[z$+Z],A0=Y[z$+Z+C$],q$=f[z$+Z+C$],j$=M$*A0-S$*q$;q$=M$*q$+S$*A0,A0=j$,Y[z$+Z]=c+A0,f[z$+Z]=v$+q$,Y[z$+Z+C$]=c-A0,f[z$+Z+C$]=v$-q$,Z!==L$&&(j$=R$*M$-P$*S$,S$=R$*S$+P$*M$,M$=j$)}},Q.prototype.guessLen13b=function(E$,T$){var Y=Math.max(T$,E$)|1,f=Y&1,D$=0;for(Y=Y/2|0;Y;Y=Y>>>1)D$++;return 1<<D$+1+f},Q.prototype.conjugate=function(E$,T$,Y){if(!(Y<=1))for(var f=0;f<Y/2;f++){var D$=E$[f];E$[f]=E$[Y-f-1],E$[Y-f-1]=D$,D$=T$[f],T$[f]=-T$[Y-f-1],T$[Y-f-1]=-D$}},Q.prototype.normalize13b=function(E$,T$){for(var Y=0,f=0;f<T$/2;f++){var D$=Math.round(E$[2*f+1]/T$)*8192+Math.round(E$[2*f]/T$)+Y;E$[f]=D$&67108863,D$<67108864?Y=0:Y=D$/67108864|0}return E$},Q.prototype.convert13b=function(E$,T$,Y,f){for(var D$=0,F0=0;F0<T$;F0++)D$=D$+(E$[F0]|0),Y[2*F0]=D$&8191,D$=D$>>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0<f;++F0)Y[F0]=0;r0(D$===0),r0((D$&-8192)===0)},Q.prototype.stub=function(E$){for(var T$=new Array(E$),Y=0;Y<E$;Y++)T$[Y]=0;return T$},Q.prototype.mulp=function(E$,T$,Y){var f=2*this.guessLen13b(E$.length,T$.length),D$=this.makeRBT(f),F0=this.stub(f),C$=new Array(f),L$=new Array(f),R$=new Array(f),P$=new Array(f),z$=new Array(f),M$=new Array(f),S$=Y.words;S$.length=f,this.convert13b(E$.words,E$.length,C$,f),this.convert13b(T$.words,T$.length,P$,f),this.transform(C$,F0,L$,R$,f,D$),this.transform(P$,F0,z$,M$,f,D$);for(var Z=0;Z<f;Z++){var c=L$[Z]*z$[Z]-R$[Z]*M$[Z];R$[Z]=L$[Z]*M$[Z]+R$[Z]*z$[Z],L$[Z]=c}return this.conjugate(L$,R$,f),this.transform(L$,R$,S$,F0,f,D$),this.conjugate(S$,F0,f),this.normalize13b(S$,f),Y.negative=E$.negative^T$.negative,Y.length=E$.length+T$.length,Y.strip()},$$.prototype.mul=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),this.mulTo(E$,T$)},$$.prototype.mulf=function(E$){var T$=new $$(null);return T$.words=new Array(this.length+E$.length),I$(this,E$,T$)},$$.prototype.imul=function(E$){return this.clone().mulTo(E$,this)},$$.prototype.imuln=function(E$){r0(typeof E$=="number"),r0(E$<67108864);for(var T$=0,Y=0;Y<this.length;Y++){var f=(this.words[Y]|0)*E$,D$=(f&67108863)+(T$&67108863);T$>>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f<T$.length&&T$[f]===0;f++,Y=Y.sqr());if(++f<T$.length)for(var D$=Y.sqr();f<T$.length;f++,D$=D$.sqr())T$[f]!==0&&(Y=Y.mul(D$));return Y},$$.prototype.iushln=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$<this.length;D$++){var C$=this.words[D$]&f,L$=(this.words[D$]|0)-C$<<T$;this.words[D$]=L$|F0,F0=C$>>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$<Y;D$++)this.words[D$]=0;this.length+=Y}return this.strip()},$$.prototype.ishln=function(E$){return r0(this.negative===0),this.iushln(E$)},$$.prototype.iushrn=function(E$,T$,Y){r0(typeof E$=="number"&&E$>=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<<D$,L$=Y;if(f-=F0,f=Math.max(0,f),L$){for(var R$=0;R$<F0;R$++)L$.words[R$]=this.words[R$];L$.length=F0}if(F0!==0)if(this.length>F0)for(this.length-=F0,R$=0;R$<this.length;R$++)this.words[R$]=this.words[R$+F0];else this.words[0]=0,this.length=1;var P$=0;for(R$=this.length-1;R$>=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return!1;var D$=this.words[Y];return!!(D$&f)},$$.prototype.imaskn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<<T$;this.words[this.length-1]&=f}return this.strip()},$$.prototype.maskn=function(E$){return this.clone().imaskn(E$)},$$.prototype.iaddn=function(E$){return r0(typeof E$=="number"),r0(E$<67108864),E$<0?this.isubn(-E$):this.negative!==0?this.length===1&&(this.words[0]|0)<E$?(this.words[0]=E$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E$),this.negative=1,this):this._iaddn(E$)},$$.prototype._iaddn=function(E$){this.words[0]+=E$;for(var T$=0;T$<this.length&&this.words[T$]>=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$<this.length&&this.words[T$]<0;T$++)this.words[T$]+=67108864,this.words[T$+1]-=1;return this.strip()},$$.prototype.addn=function(E$){return this.clone().iaddn(E$)},$$.prototype.subn=function(E$){return this.clone().isubn(E$)},$$.prototype.iabs=function(){return this.negative=0,this},$$.prototype.abs=function(){return this.clone().iabs()},$$.prototype._ishlnsubmul=function(E$,T$,Y){var f=E$.length+Y,D$;this._expand(f);var F0,C$=0;for(D$=0;D$<E$.length;D$++){F0=(this.words[D$+Y]|0)+C$;var L$=(E$.words[D$]|0)*T$;F0-=L$&67108863,C$=(F0>>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$<this.length-Y;D$++)F0=(this.words[D$+Y]|0)+C$,C$=F0>>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$<this.length;D$++)F0=-(this.words[D$]|0)+C$,C$=F0>>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$<R$.length;P$++)R$.words[P$]=0}var z$=f.clone()._ishlnsubmul(D$,1,L$);z$.negative===0&&(f=z$,R$&&(R$.words[L$]=1));for(var M$=L$-1;M$>=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<<T$;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=f,this;for(var D$=f,F0=Y;D$!==0&&F0<this.length;F0++){var C$=this.words[F0]|0;C$+=D$,D$=C$>>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:f<E$?-1:1}return this.negative!==0?-Y|0:Y},$$.prototype.cmp=function(E$){if(this.negative!==0&&E$.negative===0)return-1;if(this.negative===0&&E$.negative!==0)return 1;var T$=this.ucmp(E$);return this.negative!==0?-T$|0:T$},$$.prototype.ucmp=function(E$){if(this.length>E$.length)return 1;if(this.length<E$.length)return-1;for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){f<D$?T$=-1:f>D$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y<this.n?-1:T$.ucmp(this.p);return f===0?(T$.words[0]=0,T$.length=1):f>0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$<f;D$++)T$.words[D$]=E$.words[D$];if(T$.length=f,E$.length<=9){E$.words[0]=0,E$.length=1;return}var F0=E$.words[9];for(T$.words[T$.length++]=F0&Y,D$=10;D$<E$.length;D$++){var C$=E$.words[D$]|0;E$.words[D$-10]=(C$&Y)<<4|F0>>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y<E$.length;Y++){var f=E$.words[Y]|0;T$+=f*977,E$.words[Y]=T$&67108863,T$=f*64+(T$/67108864|0)}return E$.words[E$.length-1]===0&&(E$.length--,E$.words[E$.length-1]===0&&E$.length--),E$};function J$(){O$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i0(J$,O$);function F$(){O$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i0(F$,O$);function A$(){O$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i0(A$,O$),A$.prototype.imulK=function(E$){for(var T$=0,Y=0;Y<E$.length;Y++){var f=(E$.words[Y]|0)*19+T$,D$=f&67108863;f>>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c<S$);var v$=this.pow(P$,new $$(1).iushln(S$-c-1));z$=z$.redMul(v$),P$=v$.redSqr(),M$=M$.redMul(P$),S$=c}return z$},H$.prototype.invm=function(E$){var T$=E$._invmp(this.m);return T$.negative!==0?(T$.negative=0,this.imod(T$).redNeg()):this.imod(T$)},H$.prototype.pow=function(E$,T$){if(T$.isZero())return new $$(1).toRed(this);if(T$.cmpn(1)===0)return E$.clone();var Y=4,f=new Array(1<<Y);f[0]=new $$(1).toRed(this),f[1]=E$;for(var D$=2;D$<f.length;D$++)f[D$]=this.mul(f[D$-1],E$);var F0=f[0],C$=0,L$=0,R$=T$.bitLength()%26;for(R$===0&&(R$=26),D$=T$.length-1;D$>=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),{CryptoHasher:AZ}=globalThis.Bun,b0=pQ({"node_modules/public-encrypt/withPublic.js"(t0,m0){var a0=$0(),e0=cQ().Buffer;function r0(i0,$$){return e0.from(i0.toRed(a0.mont($$.modulus)).redPow(new a0($$.publicExponent)).fromRed().toArray())}m0.exports=r0}}),HZ=pQ({"node_modules/public-encrypt/publicEncrypt.js"(t0,m0){var a0=d0(),e0=hQ(),r0=w(),i0=FZ(),$$=z(),Q$=$0(),$=b0(),N=qY(),Y$=cQ().Buffer;m0.exports=function(V$,U$,X$){var K$;V$.padding?K$=V$.padding:X$?K$=1:K$=4;var I$=a0(V$),Q;if(K$===4)Q=O0(I$,U$);else if(K$===1)Q=Z$(I$,U$,X$);else if(K$===3){if(Q=new Q$(U$),Q.cmp(I$.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return X$?N(Q,I$):$(Q,I$)};function O0(V$,U$){var X$=V$.modulus.byteLength(),K$=U$.length,I$=r0("sha1").update(Y$.alloc(0)).digest(),Q=I$.length,x=2*Q;if(K$>X$-x-2)throw new Error("message too long");var O$=Y$.alloc(X$-K$-x-2),J0=X$-Q-1,J$=e0(Q),F$=$$(Y$.concat([I$,O$,Y$.alloc(1,1),U$],J0),i0(J$,J0)),A$=$$(J$,i0(F$,Q));return new Q$(Y$.concat([Y$.alloc(1),A$,F$],X$))}function Z$(V$,U$,X$){var K$=U$.length,I$=V$.modulus.byteLength();if(K$>I$-11)throw new Error("message too long");var Q;return X$?Q=Y$.alloc(I$-K$-3,255):Q=G$(I$-K$-3),new Q$(Y$.concat([Y$.from([0,X$?1:2]),Q,Y$.alloc(1),U$],I$))}function G$(V$){for(var U$=Y$.allocUnsafe(V$),X$=0,K$=e0(V$*2),I$=0,Q;X$<V$;)I$===K$.length&&(K$=e0(V$*2),I$=0),Q=K$[I$++],Q&&(U$[X$++]=Q);return U$}}}),WZ=pQ({"node_modules/public-encrypt/privateDecrypt.js"(t0,m0){var a0=d0(),e0=FZ(),r0=z(),i0=$0(),$$=qY(),Q$=w(),$=b0(),N=cQ().Buffer;m0.exports=function(G$,V$,U$){var X$;G$.padding?X$=G$.padding:U$?X$=1:X$=4;var K$=a0(G$),I$=K$.modulus.byteLength();if(V$.length>I$||new i0(V$).cmp(K$.modulus)>=0)throw new Error("decryption error");var Q;U$?Q=$(new i0(V$),K$):Q=$$(V$,K$);var x=N.alloc(I$-Q.length);if(Q=N.concat([x,Q],I$),X$===4)return Y$(K$,Q);if(X$===1)return O0(K$,Q,U$);if(X$===3)return Q;throw new Error("unknown padding")};function Y$(G$,V$){var U$=G$.modulus.byteLength(),X$=Q$("sha1").update(N.alloc(0)).digest(),K$=X$.length;if(V$[0]!==0)throw new Error("decryption error");var I$=V$.slice(1,K$+1),Q=V$.slice(K$+1),x=r0(I$,e0(Q,K$)),O$=r0(Q,e0(x,U$-K$-1));if(Z$(X$,O$.slice(0,K$)))throw new Error("decryption error");for(var J0=K$;O$[J0]===0;)J0++;if(O$[J0++]!==1)throw new Error("decryption error");return O$.slice(J0)}function O0(G$,V$,U$){for(var X$=V$.slice(0,2),K$=2,I$=0;V$[K$++]!==0;)if(K$>=V$.length){I$++;break}var Q=V$.slice(2,K$-1);if((X$.toString("hex")!=="0002"&&!U$||X$.toString("hex")!=="0001"&&U$)&&I$++,Q.length<8&&I$++,I$)throw new Error("decryption error");return V$.slice(K$)}function Z$(G$,V$){G$=N.from(G$),V$=N.from(V$);var U$=0,X$=G$.length;G$.length!==V$.length&&(U$++,X$=Math.min(G$.length,V$.length));for(var K$=-1;++K$<X$;)U$+=G$[K$]^V$[K$];return U$}}}),EZ=pQ({"node_modules/public-encrypt/browser.js"(t0){t0.publicEncrypt=HZ(),t0.privateDecrypt=WZ(),t0.privateEncrypt=function(m0,a0){return t0.publicEncrypt(m0,a0,!0)},t0.publicDecrypt=function(m0,a0){return t0.privateDecrypt(m0,a0,!0)}}}),TZ=pQ({"node_modules/randomfill/browser.js"(t0){var m0=cQ(),a0=hQ(),e0=m0.Buffer,r0=m0.kMaxLength,i0=Math.pow(2,32)-1;function $$(O0,Z$){if(typeof O0!="number"||O0!==O0)throw new TypeError("offset must be a number");if(O0>i0||O0<0)throw new TypeError("offset must be a uint32");if(O0>r0||O0>Z$)throw new RangeError("offset out of range")}function Q$(O0,Z$,G$){if(typeof O0!="number"||O0!==O0)throw new TypeError("size must be a number");if(O0>i0||O0<0)throw new TypeError("size must be a uint32");if(O0+Z$>G$||O0>r0)throw new RangeError("buffer too small")}t0.randomFill=$,t0.randomFillSync=Y$;function $(O0,Z$,G$,V$){if(!e0.isBuffer(O0)&&!(O0 instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof Z$=="function")V$=Z$,Z$=0,G$=O0.length;else if(typeof G$=="function")V$=G$,G$=O0.length-Z$;else if(typeof V$!="function")throw new TypeError('"cb" argument must be a function');return $$(Z$,O0.length),Q$(G$,Z$,O0.length),N(O0,Z$,G$,V$)}function N(O0,Z$,G$,V$){if(V$){a0(G$,function(X$,K$){if(X$)return V$(X$);K$.copy(O0,Z$),V$(null,O0)});return}var U$=a0(G$);return U$.copy(O0,Z$),O0}function Y$(O0,Z$,G$){if(typeof Z$>"u"&&(Z$=0),!e0.isBuffer(O0)&&!(O0 instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return $$(Z$,O0.length),G$===void 0&&(G$=O0.length-Z$),Q$(G$,Z$,O0.length),N(O0,Z$,G$)}}}),DZ=pQ({"node_modules/crypto-browserify/index.js"(t0){t0.randomBytes=t0.rng=t0.pseudoRandomBytes=t0.prng=hQ(),t0.createHash=w(),t0.Hash=t0.createHash.Hash,t0.createHmac=t0.Hmac=aQ();var m0=rQ(),a0=Object.keys(m0),e0=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a0);t0.getHashes=function(){return e0};var r0=u();t0.pbkdf2=r0.pbkdf2,t0.pbkdf2Sync=r0.pbkdf2Sync;var i0=LY();t0.Cipher=i0.Cipher,t0.createCipher=i0.createCipher,t0.Cipheriv=i0.Cipheriv,t0.createCipheriv=i0.createCipheriv,t0.Decipher=i0.Decipher,t0.createDecipher=i0.createDecipher,t0.Decipheriv=i0.Decipheriv,t0.createDecipheriv=i0.createDecipheriv,t0.getCiphers=i0.getCiphers,t0.listCiphers=i0.listCiphers;var $$=SY();t0.DiffieHellmanGroup=$$.DiffieHellmanGroup,t0.createDiffieHellmanGroup=$$.createDiffieHellmanGroup,t0.getDiffieHellman=$$.getDiffieHellman,t0.createDiffieHellman=$$.createDiffieHellman,t0.DiffieHellman=$$.DiffieHellman;var Q$=IZ();t0.createSign=Q$.createSign,t0.Sign=Q$.Sign,t0.createVerify=Q$.createVerify,t0.Verify=Q$.Verify,t0.createECDH=JZ();var $=EZ();t0.publicEncrypt=$.publicEncrypt,t0.privateEncrypt=$.privateEncrypt,t0.publicDecrypt=$.publicDecrypt,t0.privateDecrypt=$.privateDecrypt,t0.getRandomValues=(Y$)=>qQ.getRandomValues(Y$);var N=TZ();t0.randomFill=N.randomFill,t0.randomFillSync=N.randomFillSync,t0.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
+`))},t0.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={...DZ(),[Symbol.for("CommonJS")]:0},gQ="buffer",LZ=(t0)=>qQ.getRandomValues(t0),M=()=>qQ.randomUUID(),p=(...t0)=>qQ.randomInt(...t0),_Q="timingSafeEqual"in qQ?(t0,m0)=>{let{byteLength:a0}=t0,{byteLength:e0}=m0;if(typeof a0!="number"||typeof e0!="number")throw new TypeError("Input must be an array buffer view");if(a0!==e0)throw new RangeError("Input buffers must have the same length");return qQ.timingSafeEqual(t0,m0)}:void 0,U0="scryptSync"in qQ?(t0,m0,a0,e0)=>{let r0=qQ.scryptSync(t0,m0,a0,e0);return gQ!=="buffer"?new G0(r0).toString(gQ):new G0(r0)}:void 0,X0="scryptSync"in qQ?function(t0,m0,a0,e0,r0){if(typeof e0=="function"&&(r0=e0,e0=void 0),typeof r0!="function"){var i0=new TypeError("callback must be a function");throw i0.code="ERR_INVALID_CALLBACK",i0}try{let $$=qQ.scryptSync(t0,m0,a0,e0);process.nextTick(r0,null,gQ!=="buffer"?new G0($$).toString(gQ):new G0($$))}catch($$){throw $$}}:void 0;_Q&&(Object.defineProperty(_Q,"name",{value:"::bunternal::"}),Object.defineProperty(X0,"name",{value:"::bunternal::"}),Object.defineProperty(U0,"name",{value:"::bunternal::"}));var RZ=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"],NQ=qQ;fQ(CZ,{DEFAULT_ENCODING:()=>gQ,getRandomValues:()=>LZ,randomUUID:()=>M,randomInt:()=>p,getCurves:()=>PZ,scrypt:()=>X0,scryptSync:()=>U0,timingSafeEqual:()=>_Q,webcrypto:()=>NQ,subtle:()=>NQ.subtle});var{randomBytes:zZ,rng:MZ,pseudoRandomBytes:SZ,prng:vZ,Hash:qZ,createHash:S,createHmac:k,Hmac:s0,getHashes:l0,pbkdf2:jZ,pbkdf2Sync:kZ,Cipher:gZ,createCipher:_Z,Cipheriv:NZ,createCipheriv:xZ,Decipher:BZ,createDecipher:v,Decipheriv:Q0,createDecipheriv:o0,getCiphers:u0,listCiphers:yZ,DiffieHellmanGroup:wZ,createDiffieHellmanGroup:pZ,getDiffieHellman:fZ,createDiffieHellman:cZ,DiffieHellman:hZ,createSign:dZ,Sign:q,createVerify:Y0,Verify:K0,createECDH:n0,publicEncrypt:bZ,privateEncrypt:lZ,publicDecrypt:oZ,privateDecrypt:uZ,randomFill:nZ,randomFillSync:sZ,createCredentials:tZ,constants:j}=CZ;var I0=CZ;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{NQ as webcrypto,_Q as timingSafeEqual,U0 as scryptSync,X0 as scrypt,MZ as rng,M as randomUUID,p as randomInt,sZ as randomFillSync,nZ as randomFill,zZ as randomBytes,bZ as publicEncrypt,oZ as publicDecrypt,SZ as pseudoRandomBytes,vZ as prng,lZ as privateEncrypt,uZ as privateDecrypt,kZ as pbkdf2Sync,jZ as pbkdf2,yZ as listCiphers,LZ as getRandomValues,l0 as getHashes,fZ as getDiffieHellman,PZ as getCurves,u0 as getCiphers,I0 as default,Y0 as createVerify,dZ as createSign,k as createHmac,S as createHash,n0 as createECDH,pZ as createDiffieHellmanGroup,cZ as createDiffieHellman,o0 as createDecipheriv,v as createDecipher,tZ as createCredentials,xZ as createCipheriv,_Z as createCipher,j as constants,K0 as Verify,q as Sign,s0 as Hmac,qZ as Hash,wZ as DiffieHellmanGroup,hZ as DiffieHellman,Q0 as Decipheriv,BZ as Decipher,gQ as DEFAULT_ENCODING,NZ as Cipheriv,gZ as Cipher};
diff --git a/src/js/out/modules/node/dns.promises.js b/src/js/out/modules/node/dns.promises.js
index f239935d5..dde4a1280 100644
--- a/src/js/out/modules/node/dns.promises.js
+++ b/src/js/out/modules/node/dns.promises.js
@@ -1,8 +1,10 @@
-var { promises } = import.meta.require("node:dns"), {
+import {promises} from "node:dns";
+var {
lookup,
lookupService,
resolve,
resolve4,
+ resolve6,
resolveAny,
resolveCname,
resolveCaa,
@@ -22,6 +24,7 @@ var { promises } = import.meta.require("node:dns"), {
lookupService,
resolve,
resolve4,
+ resolve6,
resolveAny,
resolveCname,
resolveCaa,
@@ -52,6 +55,7 @@ export {
resolveCname,
resolveCaa,
resolveAny,
+ resolve6,
resolve4,
resolve,
lookupService,
diff --git a/src/js/out/modules/node/events.js b/src/js/out/modules/node/events.js
index 5991aba52..23adee4cc 100644
--- a/src/js/out/modules/node/events.js
+++ b/src/js/out/modules/node/events.js
@@ -123,7 +123,7 @@ var EventEmitter = function(opts) {
}, checkListener = function(listener) {
if (typeof listener !== "function")
throw new TypeError("The listener must be a function");
-}, { isPromise, Array, Object: Object2 } = import.meta.primordials, SymbolFor = Symbol.for, ObjectDefineProperty = Object2.defineProperty, kCapture = Symbol("kCapture"), kErrorMonitor = SymbolFor("events.errorMonitor"), kMaxEventTargetListeners = Symbol("events.maxEventTargetListeners"), kMaxEventTargetListenersWarned = Symbol("events.maxEventTargetListenersWarned"), kWatermarkData = SymbolFor("nodejs.watermarkData"), kRejection = SymbolFor("nodejs.rejection"), captureRejectionSymbol = SymbolFor("nodejs.rejection"), ArrayPrototypeSlice = Array.prototype.slice, defaultMaxListeners = 10, EventEmitterPrototype = EventEmitter.prototype;
+}, { isPromise, Array, Object: Object2 } = globalThis[Symbol.for("Bun.lazy")]("primordials"), SymbolFor = Symbol.for, ObjectDefineProperty = Object2.defineProperty, kCapture = Symbol("kCapture"), kErrorMonitor = SymbolFor("events.errorMonitor"), kMaxEventTargetListeners = Symbol("events.maxEventTargetListeners"), kMaxEventTargetListenersWarned = Symbol("events.maxEventTargetListenersWarned"), kWatermarkData = SymbolFor("nodejs.watermarkData"), kRejection = SymbolFor("nodejs.rejection"), captureRejectionSymbol = SymbolFor("nodejs.rejection"), ArrayPrototypeSlice = Array.prototype.slice, defaultMaxListeners = 10, EventEmitterPrototype = EventEmitter.prototype;
EventEmitterPrototype._events = void 0;
EventEmitterPrototype._eventsCount = 0;
EventEmitterPrototype._maxListeners = void 0;
@@ -318,7 +318,6 @@ Object2.defineProperties(EventEmitter, {
});
EventEmitter.init = EventEmitter;
EventEmitter[Symbol.for("CommonJS")] = 0;
-var events_default = EventEmitter;
class AbortError extends Error {
constructor(message = "The operation was aborted", options = void 0) {
@@ -334,8 +333,19 @@ class EventEmitterAsyncResource extends EventEmitter {
throwNotImplemented("EventEmitterAsyncResource", 1832);
}
}
-EventEmitter.EventEmitterAsyncResource = EventEmitterAsyncResource;
+var usingDomains = !1;
+Object2.assign(EventEmitter, { once, on, getEventListeners, setMaxListeners, listenerCount, EventEmitterAsyncResource });
+var events_default = EventEmitter;
export {
+ usingDomains,
+ setMaxListeners,
+ once,
+ on,
+ listenerCount,
+ getEventListeners,
+ kErrorMonitor as errorMonitor,
events_default as default,
- EventEmitterAsyncResource
+ captureRejectionSymbol,
+ EventEmitterAsyncResource,
+ EventEmitter
};
diff --git a/src/js/out/modules/node/fs.js b/src/js/out/modules/node/fs.js
index cc1e14d2b..b7457f104 100644
--- a/src/js/out/modules/node/fs.js
+++ b/src/js/out/modules/node/fs.js
@@ -1,3 +1,7 @@
+import {EventEmitter} from "node:events";
+import promises2 from "node:fs/promises";
+import {default as default2} from "node:fs/promises";
+import * as Stream from "node:stream";
var callbackify = function(fsFunction, args) {
try {
const result = fsFunction.apply(fs, args.slice(0, args.length - 1)), callback = args[args.length - 1];
@@ -15,8 +19,49 @@ function createReadStream(path, options) {
function createWriteStream(path, options) {
return new WriteStream(path, options);
}
-var { direct, isPromise, isCallable } = import.meta.primordials, promises = import.meta.require("node:fs/promises"), { Readable, NativeWritable, _getNativeReadableStreamPrototype, eos: eos_ } = import.meta.require("node:stream"), NativeReadable = _getNativeReadableStreamPrototype(2, Readable), fs = Bun.fs(), debug = process.env.DEBUG ? console.log : () => {
-}, access = function access2(...args) {
+import {constants} from "node:fs/promises";
+var ReadStream, WriteStream, { direct, isPromise, isCallable } = globalThis[Symbol.for("Bun.lazy")]("primordials"), fs = Bun.fs(), debug = process.env.DEBUG ? console.log : () => {
+};
+
+class FSWatcher extends EventEmitter {
+ #watcher;
+ #listener;
+ constructor(path, options, listener) {
+ super();
+ if (typeof options === "function")
+ listener = options, options = {};
+ else if (typeof options === "string")
+ options = { encoding: options };
+ if (typeof listener !== "function")
+ listener = () => {
+ };
+ this.#listener = listener;
+ try {
+ this.#watcher = fs.watch(path, options || {}, this.#onEvent.bind(this));
+ } catch (e) {
+ if (!e.message?.startsWith("FileNotFound"))
+ throw e;
+ const notFound = new Error(`ENOENT: no such file or directory, watch '${path}'`);
+ throw notFound.code = "ENOENT", notFound.errno = -2, notFound.path = path, notFound.syscall = "watch", notFound.filename = path, notFound;
+ }
+ }
+ #onEvent(eventType, filenameOrError) {
+ if (eventType === "error" || eventType === "close")
+ this.emit(eventType, filenameOrError);
+ else
+ this.emit("change", eventType, filenameOrError), this.#listener(eventType, filenameOrError);
+ }
+ close() {
+ this.#watcher?.close(), this.#watcher = null;
+ }
+ ref() {
+ this.#watcher?.ref();
+ }
+ unref() {
+ this.#watcher?.unref();
+ }
+}
+var access = function access2(...args) {
callbackify(fs.accessSync, args);
}, appendFile = function appendFile2(...args) {
callbackify(fs.appendFileSync, args);
@@ -88,7 +133,31 @@ var { direct, isPromise, isCallable } = import.meta.primordials, promises = impo
callbackify(fs.utimesSync, args);
}, lutimes = function lutimes2(...args) {
callbackify(fs.lutimesSync, args);
-}, accessSync = fs.accessSync.bind(fs), appendFileSync = fs.appendFileSync.bind(fs), closeSync = fs.closeSync.bind(fs), copyFileSync = fs.copyFileSync.bind(fs), existsSync = fs.existsSync.bind(fs), chownSync = fs.chownSync.bind(fs), chmodSync = fs.chmodSync.bind(fs), fchmodSync = fs.fchmodSync.bind(fs), fchownSync = fs.fchownSync.bind(fs), fstatSync = fs.fstatSync.bind(fs), fsyncSync = fs.fsyncSync.bind(fs), ftruncateSync = fs.ftruncateSync.bind(fs), futimesSync = fs.futimesSync.bind(fs), lchmodSync = fs.lchmodSync.bind(fs), lchownSync = fs.lchownSync.bind(fs), linkSync = fs.linkSync.bind(fs), lstatSync = fs.lstatSync.bind(fs), mkdirSync = fs.mkdirSync.bind(fs), mkdtempSync = fs.mkdtempSync.bind(fs), openSync = fs.openSync.bind(fs), readSync = fs.readSync.bind(fs), writeSync = fs.writeSync.bind(fs), readdirSync = fs.readdirSync.bind(fs), readFileSync = fs.readFileSync.bind(fs), writeFileSync = fs.writeFileSync.bind(fs), readlinkSync = fs.readlinkSync.bind(fs), realpathSync = fs.realpathSync.bind(fs), renameSync = fs.renameSync.bind(fs), statSync = fs.statSync.bind(fs), symlinkSync = fs.symlinkSync.bind(fs), truncateSync = fs.truncateSync.bind(fs), unlinkSync = fs.unlinkSync.bind(fs), utimesSync = fs.utimesSync.bind(fs), lutimesSync = fs.lutimesSync.bind(fs), rmSync = fs.rmSync.bind(fs), rmdirSync = fs.rmdirSync.bind(fs), Dirent = fs.Dirent, Stats = fs.Stats, promises = import.meta.require("node:fs/promises"), readStreamPathFastPathSymbol = Symbol.for("Bun.Node.readStreamPathFastPath"), readStreamSymbol = Symbol.for("Bun.NodeReadStream"), readStreamPathOrFdSymbol = Symbol.for("Bun.NodeReadStreamPathOrFd"), writeStreamSymbol = Symbol.for("Bun.NodeWriteStream"), writeStreamPathFastPathSymbol = Symbol.for("Bun.NodeWriteStreamFastPath"), writeStreamPathFastPathCallSymbol = Symbol.for("Bun.NodeWriteStreamFastPathCall"), kIoDone = Symbol.for("kIoDone"), defaultReadStreamOptions = {
+}, accessSync = fs.accessSync.bind(fs), appendFileSync = fs.appendFileSync.bind(fs), closeSync = fs.closeSync.bind(fs), copyFileSync = fs.copyFileSync.bind(fs), existsSync = fs.existsSync.bind(fs), chownSync = fs.chownSync.bind(fs), chmodSync = fs.chmodSync.bind(fs), fchmodSync = fs.fchmodSync.bind(fs), fchownSync = fs.fchownSync.bind(fs), fstatSync = fs.fstatSync.bind(fs), fsyncSync = fs.fsyncSync.bind(fs), ftruncateSync = fs.ftruncateSync.bind(fs), futimesSync = fs.futimesSync.bind(fs), lchmodSync = fs.lchmodSync.bind(fs), lchownSync = fs.lchownSync.bind(fs), linkSync = fs.linkSync.bind(fs), lstatSync = fs.lstatSync.bind(fs), mkdirSync = fs.mkdirSync.bind(fs), mkdtempSync = fs.mkdtempSync.bind(fs), openSync = fs.openSync.bind(fs), readSync = fs.readSync.bind(fs), writeSync = fs.writeSync.bind(fs), readdirSync = fs.readdirSync.bind(fs), readFileSync = fs.readFileSync.bind(fs), writeFileSync = fs.writeFileSync.bind(fs), readlinkSync = fs.readlinkSync.bind(fs), realpathSync = fs.realpathSync.bind(fs), renameSync = fs.renameSync.bind(fs), statSync = fs.statSync.bind(fs), symlinkSync = fs.symlinkSync.bind(fs), truncateSync = fs.truncateSync.bind(fs), unlinkSync = fs.unlinkSync.bind(fs), utimesSync = fs.utimesSync.bind(fs), lutimesSync = fs.lutimesSync.bind(fs), rmSync = fs.rmSync.bind(fs), rmdirSync = fs.rmdirSync.bind(fs), writev = (fd, buffers, position, callback) => {
+ if (typeof position === "function")
+ callback = position, position = null;
+ queueMicrotask(() => {
+ try {
+ var written = fs.writevSync(fd, buffers, position);
+ } catch (e) {
+ callback(e);
+ }
+ callback(null, written, buffers);
+ });
+}, writevSync = fs.writevSync.bind(fs), readv = (fd, buffers, position, callback) => {
+ if (typeof position === "function")
+ callback = position, position = null;
+ queueMicrotask(() => {
+ try {
+ var written = fs.readvSync(fd, buffers, position);
+ } catch (e) {
+ callback(e);
+ }
+ callback(null, written, buffers);
+ });
+}, readvSync = fs.readvSync.bind(fs), Dirent = fs.Dirent, Stats = fs.Stats, watch = function watch2(path, options, listener) {
+ return new FSWatcher(path, options, listener);
+}, readStreamPathFastPathSymbol = Symbol.for("Bun.Node.readStreamPathFastPath"), readStreamSymbol = Symbol.for("Bun.NodeReadStream"), readStreamPathOrFdSymbol = Symbol.for("Bun.NodeReadStreamPathOrFd"), writeStreamSymbol = Symbol.for("Bun.NodeWriteStream"), writeStreamPathFastPathSymbol = Symbol.for("Bun.NodeWriteStreamFastPath"), writeStreamPathFastPathCallSymbol = Symbol.for("Bun.NodeWriteStreamFastPathCall"), kIoDone = Symbol.for("kIoDone"), defaultReadStreamOptions = {
file: void 0,
fd: void 0,
flags: "r",
@@ -115,7 +184,8 @@ var { direct, isPromise, isCallable } = import.meta.primordials, promises = impo
close
},
autoDestroy: !0
-}, ReadStreamClass, ReadStream = function(InternalReadStream) {
+}, ReadStreamClass;
+ReadStream = function(InternalReadStream) {
return ReadStreamClass = InternalReadStream, Object.defineProperty(ReadStreamClass.prototype, Symbol.toStringTag, {
value: "ReadStream",
enumerable: !1
@@ -126,7 +196,7 @@ var { direct, isPromise, isCallable } = import.meta.primordials, promises = impo
return instance instanceof InternalReadStream;
}
});
-}(class ReadStream2 extends NativeReadable {
+}(class ReadStream2 extends Stream._getNativeReadableStreamPrototype(2, Stream.Readable) {
constructor(pathOrFd, options = defaultReadStreamOptions) {
if (typeof options !== "object" || !options)
throw new TypeError("Expected options to be an object");
@@ -299,7 +369,8 @@ var { direct, isPromise, isCallable } = import.meta.primordials, promises = impo
}
return this[readStreamPathFastPathSymbol] = !1, super.pipe(dest, pipeOpts);
}
-}), defaultWriteStreamOptions = {
+});
+var defaultWriteStreamOptions = {
fd: null,
start: void 0,
pos: void 0,
@@ -312,18 +383,19 @@ var { direct, isPromise, isCallable } = import.meta.primordials, promises = impo
open,
openSync
}
-}, WriteStreamClass, WriteStream = function(InternalWriteStream) {
+}, WriteStreamClass;
+WriteStream = function(InternalWriteStream) {
return WriteStreamClass = InternalWriteStream, Object.defineProperty(WriteStreamClass.prototype, Symbol.toStringTag, {
value: "WritesStream",
enumerable: !1
- }), Object.defineProperty(function WriteStream(options) {
- return new InternalWriteStream(options);
+ }), Object.defineProperty(function WriteStream(path, options) {
+ return new InternalWriteStream(path, options);
}, Symbol.hasInstance, {
value(instance) {
return instance instanceof InternalWriteStream;
}
});
-}(class WriteStream2 extends NativeWritable {
+}(class WriteStream2 extends Stream.NativeWritable {
constructor(path, options = defaultWriteStreamOptions) {
if (!options)
throw new TypeError("Expected options to be an object");
@@ -520,7 +592,7 @@ var fs_default = {
chownSync,
close,
closeSync,
- constants: promises.constants,
+ constants: promises2.constants,
copyFile,
copyFileSync,
createReadStream,
@@ -556,7 +628,7 @@ var fs_default = {
mkdtempSync,
open,
openSync,
- promises,
+ promises: promises2,
read,
readFile,
readFileSync,
@@ -590,16 +662,25 @@ var fs_default = {
writeSync,
WriteStream,
ReadStream,
+ watch,
+ FSWatcher,
+ writev,
+ writevSync,
+ readv,
+ readvSync,
[Symbol.for("::bunternal::")]: {
ReadStreamClass,
WriteStreamClass
}
};
export {
+ writevSync,
+ writev,
writeSync,
writeFileSync,
writeFile,
write,
+ watch,
utimesSync,
utimes,
unlinkSync,
@@ -618,6 +699,8 @@ export {
rename,
realpathSync,
realpath,
+ readvSync,
+ readv,
readlinkSync,
readlink,
readdirSync,
@@ -626,7 +709,7 @@ export {
readFileSync,
readFile,
read,
- promises,
+ default2 as promises,
openSync,
open,
mkdtempSync,
@@ -662,6 +745,7 @@ export {
createReadStream,
copyFileSync,
copyFile,
+ constants,
closeSync,
close,
chownSync,
diff --git a/src/js/out/modules/node/fs.promises.js b/src/js/out/modules/node/fs.promises.js
index 2780ff166..90adbae88 100644
--- a/src/js/out/modules/node/fs.promises.js
+++ b/src/js/out/modules/node/fs.promises.js
@@ -1 +1 @@
-var D=Bun.fs(),B="::bunternal::",E={[B]:(S)=>{var b={[B]:function(C,J,q){var z;try{z=S.apply(D,q),q=void 0}catch(A){q=void 0,J(A);return}C(z)}}[B];return async function(...C){return await new Promise((J,q)=>{process.nextTick(b,J,q,C)})}}}[B],G=E(D.accessSync),H=E(D.appendFileSync),I=E(D.closeSync),K=E(D.copyFileSync),L=E(D.existsSync),M=E(D.chownSync),N=E(D.chmodSync),O=E(D.fchmodSync),P=E(D.fchownSync),Q=E(D.fstatSync),R=E(D.fsyncSync),T=E(D.ftruncateSync),U=E(D.futimesSync),V=E(D.lchmodSync),W=E(D.lchownSync),X=E(D.linkSync),Y=E(D.lstatSync),Z=E(D.mkdirSync),_=E(D.mkdtempSync),$=E(D.openSync),x=E(D.readSync),j=E(D.writeSync),v=E(D.readdirSync),w=E(D.readFileSync),k=E(D.writeFileSync),F=E(D.readlinkSync),h=E(D.realpathSync),g=E(D.renameSync),u=E(D.statSync),d=E(D.symlinkSync),n=E(D.truncateSync),l=E(D.unlinkSync),a=E(D.utimesSync),c=E(D.lutimesSync),t=E(D.rmSync),y=E(D.rmdirSync),p={access:G,appendFile:H,close:I,copyFile:K,exists:L,chown:M,chmod:N,fchmod:O,fchown:P,fstat:Q,fsync:R,ftruncate:T,futimes:U,lchmod:V,lchown:W,link:X,lstat:Y,mkdir:Z,mkdtemp:_,open:$,read:x,write:j,readdir:v,readFile:w,writeFile:k,readlink:F,realpath:h,rename:g,stat:u,symlink:d,truncate:n,unlink:l,utimes:a,lutimes:c,rm:t,rmdir:y,constants,[Symbol.for("CommonJS")]:0};export{k as writeFile,j as write,a as utimes,l as unlink,n as truncate,d as symlink,u as stat,y as rmdir,t as rm,g as rename,h as realpath,F as readlink,v as readdir,w as readFile,x as read,$ as open,_ as mkdtemp,Z as mkdir,c as lutimes,Y as lstat,X as link,W as lchown,V as lchmod,U as futimes,T as ftruncate,R as fsync,Q as fstat,P as fchown,O as fchmod,L as exists,p as default,K as copyFile,I as close,M as chown,N as chmod,H as appendFile,G as access};
+function J(B,C={}){const G=[];if(B instanceof URL)throw new TypeError("Watch URLs are not supported yet");else if(Buffer.isBuffer(B))B=B.toString();else if(typeof B!=="string")throw new TypeError("Expected path to be a string or Buffer");let D=null;if(typeof C==="string")C={encoding:C};return S.watch(B,C||{},(z,A)=>{if(G.push({eventType:z,filename:A}),D){const H=D;D=null,H()}}),{async*[Symbol.asyncIterator](){let z=!1;while(!z){while(G.length){let A=G.shift();if(A.eventType==="close"){z=!0;break}if(A.eventType==="error")throw z=!0,A.filename;yield A}await new Promise((A)=>D=A)}}}}var S=Bun.fs(),I="::bunternal::",q={[I]:(B)=>{var C={[I]:function(G,D,z){var A;try{A=B.apply(S,z),z=void 0}catch(H){z=void 0,D(H);return}G(A)}}[I];return async function(...G){return await new Promise((D,z)=>{process.nextTick(C,D,z,G)})}}}[I],K=q(S.accessSync),L=q(S.appendFileSync),M=q(S.closeSync),N=q(S.copyFileSync),O=q(S.existsSync),P=q(S.chownSync),Q=q(S.chmodSync),U=q(S.fchmodSync),V=q(S.fchownSync),X=q(S.fstatSync),Y=q(S.fsyncSync),Z=q(S.ftruncateSync),_=q(S.futimesSync),$=q(S.lchmodSync),T=q(S.lchownSync),W=q(S.linkSync),k=q(S.lstatSync),E=q(S.mkdirSync),x=q(S.mkdtempSync),F=q(S.openSync),R=q(S.readSync),g=q(S.writeSync),h=q(S.readdirSync),j=q(S.readFileSync),w=q(S.writeFileSync),b=q(S.readlinkSync),u=q(S.realpathSync),d=q(S.renameSync),c=q(S.statSync),v=q(S.symlinkSync),a=q(S.truncateSync),y=q(S.unlinkSync),l=q(S.utimesSync),p=q(S.lutimesSync),m=q(S.rmSync),n=q(S.rmdirSync),t=(B,C,G)=>{return new Promise((D,z)=>{try{var A=S.writevSync(B,C,G)}catch(H){z(H);return}D({bytesWritten:A,buffers:C})})},o=(B,C,G)=>{return new Promise((D,z)=>{try{var A=S.readvSync(B,C,G)}catch(H){z(H);return}D({bytesRead:A,buffers:C})})},r={access:K,appendFile:L,close:M,copyFile:N,exists:O,chown:P,chmod:Q,fchmod:U,fchown:V,fstat:X,fsync:Y,ftruncate:Z,futimes:_,lchmod:$,lchown:T,link:W,lstat:k,mkdir:E,mkdtemp:x,open:F,read:R,write:g,readdir:h,readFile:j,writeFile:w,readlink:b,realpath:u,rename:d,stat:c,symlink:v,truncate:a,unlink:y,utimes:l,lutimes:p,rm:m,rmdir:n,watch:J,writev:t,readv:o,constants,[Symbol.for("CommonJS")]:0};export{t as writev,w as writeFile,g as write,J as watch,l as utimes,y as unlink,a as truncate,v as symlink,c as stat,n as rmdir,m as rm,d as rename,u as realpath,o as readv,b as readlink,h as readdir,j as readFile,R as read,F as open,x as mkdtemp,E as mkdir,p as lutimes,k as lstat,W as link,T as lchown,$ as lchmod,_ as futimes,Z as ftruncate,Y as fsync,X as fstat,V as fchown,U as fchmod,O as exists,r as default,N as copyFile,M as close,P as chown,Q as chmod,L as appendFile,K as access};
diff --git a/src/js/out/modules/node/http.js b/src/js/out/modules/node/http.js
index dd007e740..cc9092518 100644
--- a/src/js/out/modules/node/http.js
+++ b/src/js/out/modules/node/http.js
@@ -1,4 +1,11 @@
-var isValidTLSArray = function(obj) {
+import {EventEmitter} from "node:events";
+import {Readable, Writable, Duplex} from "node:stream";
+import {isTypedArray} from "node:util/types";
+var checkInvalidHeaderChar = function(val) {
+ return RegExpPrototypeExec.call(headerCharRegex, val) !== null;
+}, isIPv6 = function(input) {
+ return new RegExp("^((?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(:(?:[0-9a-fA-F]{1,4})){0,1}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(:(?:[0-9a-fA-F]{1,4})){0,2}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(:(?:[0-9a-fA-F]{1,4})){0,3}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(:(?:[0-9a-fA-F]{1,4})){0,4}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::((?::(?:[0-9a-fA-F]{1,4})){0,5}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$").test(input);
+}, isValidTLSArray = function(obj) {
if (typeof obj === "string" || isTypedArray(obj) || obj instanceof ArrayBuffer || obj instanceof Blob)
return !0;
if (Array.isArray(obj)) {
@@ -7,6 +14,14 @@ var isValidTLSArray = function(obj) {
return !1;
return !0;
}
+}, validateMsecs = function(numberlike, field) {
+ if (typeof numberlike !== "number" || numberlike < 0)
+ throw new ERR_INVALID_ARG_TYPE(field, "number", numberlike);
+ return numberlike;
+}, validateFunction = function(callable, field) {
+ if (typeof callable !== "function")
+ throw new ERR_INVALID_ARG_TYPE(field, "Function", callable);
+ return callable;
}, getHeader = function(headers, name) {
if (!headers)
return;
@@ -84,6 +99,8 @@ var _writeHead = function(statusCode, reason, obj, response) {
response.setHeader(k, obj[k]);
}
}
+ if (statusCode === 204 || statusCode === 304 || statusCode >= 100 && statusCode <= 199)
+ response._hasBody = !1;
};
function request(url, options, cb) {
return new ClientRequest(url, options, cb);
@@ -92,13 +109,28 @@ function get(url, options, cb) {
const req = request(url, options, cb);
return req.end(), req;
}
-var { EventEmitter } = import.meta.require("node:events"), { isIPv6 } = import.meta.require("node:net"), { Readable, Writable, Duplex } = import.meta.require("node:stream"), { URL } = import.meta.require("node:url"), { newArrayWithSize, String, Object, Array } = import.meta.primordials, { isTypedArray } = import.meta.require("util/types"), globalReportError = globalThis.reportError, setTimeout = globalThis.setTimeout, fetch = Bun.fetch, nop = () => {
-}, __DEBUG__ = process.env.__DEBUG__, debug = __DEBUG__ ? (...args) => console.log("node:http", ...args) : nop, kEmptyObject = Object.freeze(Object.create(null)), kOutHeaders = Symbol.for("kOutHeaders"), kEndCalled = Symbol.for("kEndCalled"), kAbortController = Symbol.for("kAbortController"), kClearTimeout = Symbol("kClearTimeout"), kCorked = Symbol.for("kCorked"), searchParamsSymbol = Symbol.for("query"), StringPrototypeSlice = String.prototype.slice, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeToUpperCase = String.prototype.toUpperCase, StringPrototypeIncludes = String.prototype.includes, StringPrototypeCharCodeAt = String.prototype.charCodeAt, StringPrototypeIndexOf = String.prototype.indexOf, ArrayIsArray = Array.isArray, RegExpPrototypeExec = RegExp.prototype.exec, ObjectAssign = Object.assign, ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, INVALID_PATH_REGEX = /[^\u0021-\u00ff]/, NODE_HTTP_WARNING = "WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.", _globalAgent, _defaultHTTPSAgent, kInternalRequest = Symbol("kInternalRequest"), kInternalSocketData = Symbol.for("::bunternal::"), kEmptyBuffer = Buffer.alloc(0), FakeSocket = class Socket extends Duplex {
+var headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/, validateHeaderName = (name, label) => {
+ if (typeof name !== "string" || !name || !checkIsHttpToken(name))
+ throw new Error("ERR_INVALID_HTTP_TOKEN");
+}, validateHeaderValue = (name, value) => {
+ if (value === void 0)
+ throw new Error("ERR_HTTP_INVALID_HEADER_VALUE");
+ if (checkInvalidHeaderChar(value))
+ throw new Error("ERR_INVALID_CHAR");
+}, { URL } = globalThis, { newArrayWithSize, String, Object, Array } = globalThis[Symbol.for("Bun.lazy")]("primordials"), globalReportError = globalThis.reportError, setTimeout = globalThis.setTimeout, fetch = Bun.fetch, nop = () => {
+}, __DEBUG__ = process.env.__DEBUG__, debug = __DEBUG__ ? (...args) => console.log("node:http", ...args) : nop, kEmptyObject = Object.freeze(Object.create(null)), kOutHeaders = Symbol.for("kOutHeaders"), kEndCalled = Symbol.for("kEndCalled"), kAbortController = Symbol.for("kAbortController"), kClearTimeout = Symbol("kClearTimeout"), kCorked = Symbol.for("kCorked"), searchParamsSymbol = Symbol.for("query"), StringPrototypeSlice = String.prototype.slice, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeToUpperCase = String.prototype.toUpperCase, StringPrototypeIncludes = String.prototype.includes, StringPrototypeCharCodeAt = String.prototype.charCodeAt, StringPrototypeIndexOf = String.prototype.indexOf, ArrayIsArray = Array.isArray, RegExpPrototypeExec = RegExp.prototype.exec, ObjectAssign = Object.assign, ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, INVALID_PATH_REGEX = /[^\u0021-\u00ff]/, NODE_HTTP_WARNING = "WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.", _defaultHTTPSAgent, kInternalRequest = Symbol("kInternalRequest"), kInternalSocketData = Symbol.for("::bunternal::"), kEmptyBuffer = Buffer.alloc(0);
+
+class ERR_INVALID_ARG_TYPE extends TypeError {
+ constructor(name, expected, actual) {
+ super(`The ${name} argument must be of type ${expected}. Received type ${typeof actual}`);
+ this.code = "ERR_INVALID_ARG_TYPE";
+ }
+}
+var FakeSocket = class Socket extends Duplex {
bytesRead = 0;
bytesWritten = 0;
connecting = !1;
remoteAddress = null;
- localAddress = "127.0.0.1";
remotePort;
timeout = 0;
isServer = !1;
@@ -163,73 +195,34 @@ var { EventEmitter } = import.meta.require("node:events"), { isIPv6 } = import.m
};
class Agent extends EventEmitter {
- #defaultPort = 80;
- #protocol = "http:";
- #options;
- #requests;
- #sockets;
- #freeSockets;
- #keepAliveMsecs;
- #keepAlive;
- #maxSockets;
- #maxFreeSockets;
- #scheduling;
- #maxTotalSockets;
- #totalSocketCount;
+ defaultPort = 80;
+ protocol = "http:";
+ options;
+ requests;
+ sockets;
+ freeSockets;
+ keepAliveMsecs;
+ keepAlive;
+ maxSockets;
+ maxFreeSockets;
+ scheduling;
+ maxTotalSockets;
+ totalSocketCount;
#fakeSocket;
static get globalAgent() {
- return _globalAgent ??= new Agent;
+ return globalAgent;
}
static get defaultMaxSockets() {
return Infinity;
}
constructor(options = kEmptyObject) {
super();
- if (this.#options = options = { ...options, path: null }, options.noDelay === void 0)
+ if (this.options = options = { ...options, path: null }, options.noDelay === void 0)
options.noDelay = !0;
- this.#requests = kEmptyObject, this.#sockets = kEmptyObject, this.#freeSockets = kEmptyObject, this.#keepAliveMsecs = options.keepAliveMsecs || 1000, this.#keepAlive = options.keepAlive || !1, this.#maxSockets = options.maxSockets || Agent.defaultMaxSockets, this.#maxFreeSockets = options.maxFreeSockets || 256, this.#scheduling = options.scheduling || "lifo", this.#maxTotalSockets = options.maxTotalSockets, this.#totalSocketCount = 0, this.#defaultPort = options.defaultPort || 80, this.#protocol = options.protocol || "http:";
- }
- get defaultPort() {
- return this.#defaultPort;
- }
- get protocol() {
- return this.#protocol;
- }
- get requests() {
- return this.#requests;
- }
- get sockets() {
- return this.#sockets;
- }
- get freeSockets() {
- return this.#freeSockets;
- }
- get options() {
- return this.#options;
- }
- get keepAliveMsecs() {
- return this.#keepAliveMsecs;
- }
- get keepAlive() {
- return this.#keepAlive;
- }
- get maxSockets() {
- return this.#maxSockets;
- }
- get maxFreeSockets() {
- return this.#maxFreeSockets;
- }
- get scheduling() {
- return this.#scheduling;
- }
- get maxTotalSockets() {
- return this.#maxTotalSockets;
- }
- get totalSocketCount() {
- return this.#totalSocketCount;
+ this.requests = kEmptyObject, this.sockets = kEmptyObject, this.freeSockets = kEmptyObject, this.keepAliveMsecs = options.keepAliveMsecs || 1000, this.keepAlive = options.keepAlive || !1, this.maxSockets = options.maxSockets || Agent.defaultMaxSockets, this.maxFreeSockets = options.maxFreeSockets || 256, this.scheduling = options.scheduling || "lifo", this.maxTotalSockets = options.maxTotalSockets, this.totalSocketCount = 0, this.defaultPort = options.defaultPort || 80, this.protocol = options.protocol || "http:";
}
createConnection() {
- return debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.createConnection is a no-op, returns fake socket"), this.#fakeSocket ??= new FakeSocket;
+ return debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.createConnection is a no-op, returns fake socket"), this.#fakeSocket ??= new FakeSocket;
}
getName(options = kEmptyObject) {
let name = `http:${options.host || "localhost"}:`;
@@ -244,22 +237,22 @@ class Agent extends EventEmitter {
return name;
}
addRequest() {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.addRequest is a no-op");
+ debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.addRequest is a no-op");
}
createSocket(req, options, cb) {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.createSocket returns fake socket"), cb(null, this.#fakeSocket ??= new FakeSocket);
+ debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.createSocket returns fake socket"), cb(null, this.#fakeSocket ??= new FakeSocket);
}
removeSocket() {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.removeSocket is a no-op");
+ debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.removeSocket is a no-op");
}
keepSocketAlive() {
- return debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.keepSocketAlive is a no-op"), !0;
+ return debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.keepSocketAlive is a no-op"), !0;
}
reuseSocket() {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.reuseSocket is a no-op");
+ debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.reuseSocket is a no-op");
}
destroy() {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: Agent.destroy is a no-op");
+ debug(`${NODE_HTTP_WARNING}\n`, "WARN: Agent.destroy is a no-op");
}
}
@@ -269,6 +262,7 @@ class Server extends EventEmitter {
#tls;
#is_tls = !1;
listening = !1;
+ serverName;
constructor(options, callback) {
super();
if (typeof options === "function")
@@ -420,12 +414,14 @@ class Server extends EventEmitter {
}
}
class IncomingMessage extends Readable {
+ method;
+ complete;
constructor(req, defaultIncomingOpts) {
const method = req.method;
super();
const url = new URL(req.url);
var { type = "request", [kInternalRequest]: nodeReq } = defaultIncomingOpts || {};
- this.#noBody = type === "request" ? method === "GET" || method === "HEAD" || method === "TRACE" || method === "CONNECT" || method === "OPTIONS" || (parseInt(req.headers.get("Content-Length") || "") || 0) === 0 : !1, this.#req = req, this.method = method, this.#type = type, this.complete = !!this.#noBody, this.#bodyStream = null;
+ this.#noBody = type === "request" ? method === "GET" || method === "HEAD" || method === "TRACE" || method === "CONNECT" || method === "OPTIONS" || (parseInt(req.headers.get("Content-Length") || "") || 0) === 0 : !1, this.#req = req, this.method = method, this.#type = type, this.complete = !!this.#noBody, this.#bodyStream = void 0;
const socket = new FakeSocket;
socket.remoteAddress = url.hostname, socket.remotePort = url.port, this.#fakeSocket = socket, this.url = url.pathname + url.search, this.#nodeReq = nodeReq, assignHeaders(this, req);
}
@@ -433,8 +429,8 @@ class IncomingMessage extends Readable {
rawHeaders;
_consuming = !1;
_dumped = !1;
- #bodyStream = null;
- #fakeSocket = void 0;
+ #bodyStream;
+ #fakeSocket;
#noBody = !1;
#aborted = !1;
#req;
@@ -456,42 +452,42 @@ class IncomingMessage extends Readable {
}
callback();
}
- #closeBodyStream() {
- debug("closeBodyStream()");
- var bodyStream = this.#bodyStream;
- if (bodyStream == null)
- return;
- this.complete = !0, this.#bodyStream = void 0, this.push(null);
+ async#consumeStream(reader) {
+ while (!0) {
+ var { done, value } = await reader.readMany();
+ if (this.#aborted)
+ return;
+ if (done) {
+ this.push(null), this.destroy();
+ break;
+ }
+ for (var v of value)
+ this.push(v);
+ }
}
_read(size) {
if (this.#noBody)
this.push(null), this.complete = !0;
else if (this.#bodyStream == null) {
- const contentLength = this.#req.headers.get("content-length");
- let remaining = contentLength ? parseInt(contentLength, 10) : 0;
- if (this.#bodyStream = Readable.fromWeb(this.#req.body, {
- highWaterMark: Number.isFinite(remaining) ? Math.min(remaining, 16384) : 16384
- }), remaining > 0 && Number.isSafeInteger(remaining))
- this.#bodyStream.on("data", (chunk) => {
- if (debug("body size known", remaining), this.push(chunk), remaining -= chunk?.byteLength ?? 0, remaining <= 0)
- this.#closeBodyStream();
- });
- else
- this.#bodyStream.on("data", (chunk) => {
- this.push(chunk);
- });
- this.#bodyStream && this.#bodyStream.on("end", () => {
- this.#closeBodyStream();
- });
+ const reader = this.#req.body?.getReader();
+ if (!reader) {
+ this.push(null);
+ return;
+ }
+ this.#bodyStream = reader, this.#consumeStream(reader);
}
}
get aborted() {
return this.#aborted;
}
- abort() {
+ #abort() {
if (this.#aborted)
return;
- this.#aborted = !0, this.#closeBodyStream();
+ this.#aborted = !0;
+ var bodyStream = this.#bodyStream;
+ if (!bodyStream)
+ return;
+ bodyStream.cancel(), this.complete = !0, this.#bodyStream = void 0, this.push(null);
}
get connection() {
return this.#fakeSocket;
@@ -529,15 +525,21 @@ class IncomingMessage extends Readable {
}
class OutgoingMessage extends Writable {
+ constructor() {
+ super(...arguments);
+ }
#headers;
headersSent = !1;
sendDate = !0;
req;
+ timeout;
#finished = !1;
[kEndCalled] = !1;
#fakeSocket;
- #timeoutTimer = null;
+ #timeoutTimer;
[kAbortController] = null;
+ _implicitHeader() {
+ }
get headers() {
if (!this.#headers)
return kEmptyObject;
@@ -609,23 +611,30 @@ class OutgoingMessage extends Writable {
}
[kClearTimeout]() {
if (this.#timeoutTimer)
- clearTimeout(this.#timeoutTimer), this.#timeoutTimer = null;
+ clearTimeout(this.#timeoutTimer), this.removeAllListeners("timeout"), this.#timeoutTimer = void 0;
+ }
+ #onTimeout() {
+ this.#timeoutTimer = void 0, this[kAbortController]?.abort(), this.emit("timeout");
}
setTimeout(msecs, callback) {
- if (this.#timeoutTimer)
+ if (this.destroyed)
return this;
- if (callback)
- this.on("timeout", callback);
- return this.#timeoutTimer = setTimeout(async () => {
- this.#timeoutTimer = null, this[kAbortController]?.abort(), this.emit("timeout");
- }, msecs), this;
+ if (this.timeout = msecs = validateMsecs(msecs, "msecs"), clearTimeout(this.#timeoutTimer), msecs === 0) {
+ if (callback !== void 0)
+ validateFunction(callback, "callback"), this.removeListener("timeout", callback);
+ this.#timeoutTimer = void 0;
+ } else if (this.#timeoutTimer = setTimeout(this.#onTimeout.bind(this), msecs).unref(), callback !== void 0)
+ validateFunction(callback, "callback"), this.once("timeout", callback);
+ return this;
}
}
+var OriginalWriteHeadFn, OriginalImplicitHeadFn;
class ServerResponse extends Writable {
constructor({ req, reply }) {
super();
- this.req = req, this._reply = reply, this.sendDate = !0, this.statusCode = 200, this.headersSent = !1, this.statusMessage = void 0, this.#controller = void 0, this.#firstWrite = void 0, this._writableState.decodeStrings = !1, this.#deferred = void 0;
+ if (this.req = req, this._reply = reply, this.sendDate = !0, this.statusCode = 200, this.headersSent = !1, this.statusMessage = void 0, this.#controller = void 0, this.#firstWrite = void 0, this._writableState.decodeStrings = !1, this.#deferred = void 0, req.method === "HEAD")
+ this._hasBody = !1;
}
req;
_reply;
@@ -640,8 +649,12 @@ class ServerResponse extends Writable {
_defaultKeepAlive = !1;
_removedConnection = !1;
_removedContLen = !1;
+ _hasBody = !0;
#deferred = void 0;
#finished = !1;
+ _implicitHeader() {
+ this.writeHead(this.statusCode);
+ }
_write(chunk, encoding, callback) {
if (!this.#firstWrite && !this.headersSent) {
this.#firstWrite = chunk, callback();
@@ -684,10 +697,15 @@ class ServerResponse extends Writable {
statusText: this.statusMessage ?? STATUS_CODES[this.statusCode]
}));
}
+ #drainHeadersIfObservable() {
+ if (this._implicitHeader === OriginalImplicitHeadFn && this.writeHead === OriginalWriteHeadFn)
+ return;
+ this._implicitHeader();
+ }
_final(callback) {
if (!this.headersSent) {
var data = this.#firstWrite || "";
- this.#firstWrite = void 0, this.#finished = !0, this._reply(new Response(data, {
+ this.#firstWrite = void 0, this.#finished = !0, this.#drainHeadersIfObservable(), this._reply(new Response(data, {
headers: this.#headers,
status: this.statusCode,
statusText: this.statusMessage ?? STATUS_CODES[this.statusCode]
@@ -773,6 +791,8 @@ class ServerResponse extends Writable {
return _writeHead(statusCode, statusMessage, headers, this), this;
}
}
+OriginalWriteHeadFn = ServerResponse.prototype.writeHead;
+OriginalImplicitHeadFn = ServerResponse.prototype._implicitHeader;
class ClientRequest extends OutgoingMessage {
#timeout;
@@ -788,14 +808,14 @@ class ClientRequest extends OutgoingMessage {
#useDefaultPort;
#joinDuplicateHeaders;
#maxHeaderSize;
- #agent = _globalAgent;
+ #agent = globalAgent;
#path;
#socketPath;
#body = null;
#fetchRequest;
#signal = null;
[kAbortController] = null;
- #timeoutTimer = null;
+ #timeoutTimer = void 0;
#options;
#finished;
get path() {
@@ -842,7 +862,8 @@ class ClientRequest extends OutgoingMessage {
body: body && method !== "GET" && method !== "HEAD" && method !== "OPTIONS" ? body : void 0,
redirect: "manual",
verbose: Boolean(__DEBUG__),
- signal: this[kAbortController].signal
+ signal: this[kAbortController].signal,
+ timeout: !1
}).then((response) => {
var res = this.#res = new IncomingMessage(response, {
type: "response",
@@ -892,14 +913,12 @@ class ClientRequest extends OutgoingMessage {
options = ObjectAssign(input || {}, options);
var defaultAgent = options._defaultAgent || Agent.globalAgent;
let protocol = options.protocol;
- if (!protocol) {
+ if (!protocol)
if (options.port === 443)
protocol = "https:";
else
protocol = defaultAgent.protocol || "http:";
- this.#protocol = protocol;
- }
- switch (this.#agent?.protocol) {
+ switch (this.#protocol = protocol, this.#agent?.protocol) {
case void 0:
break;
case "http:":
@@ -927,8 +946,7 @@ class ClientRequest extends OutgoingMessage {
const defaultPort = protocol === "https:" ? 443 : 80;
this.#port = options.port || options.defaultPort || this.#agent?.defaultPort || defaultPort, this.#useDefaultPort = this.#port === defaultPort;
const host = this.#host = options.host = validateHost(options.hostname, "hostname") || validateHost(options.host, "host") || "localhost";
- if (this.#socketPath = options.socketPath, options.timeout !== void 0)
- this.setTimeout(options.timeout, null);
+ this.#socketPath = options.socketPath;
const signal = options.signal;
if (signal)
signal.addEventListener("abort", () => {
@@ -949,7 +967,11 @@ class ClientRequest extends OutgoingMessage {
var _joinDuplicateHeaders = options.joinDuplicateHeaders;
if (this.#joinDuplicateHeaders = _joinDuplicateHeaders, this.#path = options.path || "/", cb)
this.once("response", cb);
- if (__DEBUG__ && debug(`new ClientRequest: ${this.#method} ${this.#protocol}//${this.#host}:${this.#port}${this.#path}`), this.#finished = !1, this.#res = null, this.#upgradeOrConnect = !1, this.#parser = null, this.#maxHeadersCount = null, this.#reusedSocket = !1, this.#host = host, this.#protocol = protocol, this.#timeoutTimer = null, !ArrayIsArray(headers)) {
+ __DEBUG__ && debug(`new ClientRequest: ${this.#method} ${this.#protocol}//${this.#host}:${this.#port}${this.#path}`), this.#finished = !1, this.#res = null, this.#upgradeOrConnect = !1, this.#parser = null, this.#maxHeadersCount = null, this.#reusedSocket = !1, this.#host = host, this.#protocol = protocol;
+ var timeout = options.timeout;
+ if (timeout !== void 0 && timeout !== 0)
+ this.setTimeout(timeout, void 0);
+ if (!ArrayIsArray(headers)) {
var headers = options.headers;
if (headers)
for (let key in headers)
@@ -958,32 +980,32 @@ class ClientRequest extends OutgoingMessage {
if (auth && !this.getHeader("Authorization"))
this.setHeader("Authorization", "Basic " + Buffer.from(auth).toString("base64"));
}
- var optsWithoutSignal = options;
- if (optsWithoutSignal.signal)
- optsWithoutSignal = ObjectAssign({}, options), delete optsWithoutSignal.signal;
+ var { signal: _signal, ...optsWithoutSignal } = options;
this.#options = optsWithoutSignal;
- var timeout = options.timeout;
- if (timeout)
- this.setTimeout(timeout);
}
setSocketKeepAlive(enable = !0, initialDelay = 0) {
- __DEBUG__ && debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: ClientRequest.setSocketKeepAlive is a no-op");
+ __DEBUG__ && debug(`${NODE_HTTP_WARNING}\n`, "WARN: ClientRequest.setSocketKeepAlive is a no-op");
}
setNoDelay(noDelay = !0) {
- __DEBUG__ && debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "WARN: ClientRequest.setNoDelay is a no-op");
+ __DEBUG__ && debug(`${NODE_HTTP_WARNING}\n`, "WARN: ClientRequest.setNoDelay is a no-op");
}
[kClearTimeout]() {
if (this.#timeoutTimer)
- clearTimeout(this.#timeoutTimer), this.#timeoutTimer = null;
+ clearTimeout(this.#timeoutTimer), this.#timeoutTimer = void 0, this.removeAllListeners("timeout");
+ }
+ #onTimeout() {
+ this.#timeoutTimer = void 0, this[kAbortController]?.abort(), this.emit("timeout");
}
setTimeout(msecs, callback) {
- if (this.#timeoutTimer)
+ if (this.destroyed)
return this;
- if (callback)
- this.on("timeout", callback);
- return this.#timeoutTimer = setTimeout(async () => {
- this.#timeoutTimer = null, this[kAbortController]?.abort(), this.emit("timeout");
- }, msecs), this;
+ if (this.timeout = msecs = validateMsecs(msecs, "msecs"), clearTimeout(this.#timeoutTimer), msecs === 0) {
+ if (callback !== void 0)
+ validateFunction(callback, "callback"), this.removeListener("timeout", callback);
+ this.#timeoutTimer = void 0;
+ } else if (this.#timeoutTimer = setTimeout(this.#onTimeout.bind(this), msecs).unref(), callback !== void 0)
+ validateFunction(callback, "callback"), this.once("timeout", callback);
+ return this;
}
}
var tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/, METHODS = [
@@ -1085,7 +1107,7 @@ var tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/, METHODS = [
509: "Bandwidth Limit Exceeded",
510: "Not Extended",
511: "Network Authentication Required"
-}, defaultObject = {
+}, globalAgent = new Agent, defaultObject = {
Agent,
Server,
METHODS,
@@ -1096,18 +1118,21 @@ var tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/, METHODS = [
request,
get,
maxHeaderSize: 16384,
+ validateHeaderName,
+ validateHeaderValue,
setMaxIdleHTTPParsers(max) {
- debug("WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.\n", "setMaxIdleHTTPParsers() is a no-op");
- },
- get globalAgent() {
- return _globalAgent ??= new Agent;
- },
- set globalAgent(agent) {
+ debug(`${NODE_HTTP_WARNING}\n`, "setMaxIdleHTTPParsers() is a no-op");
},
+ globalAgent,
+ ClientRequest,
+ OutgoingMessage,
[Symbol.for("CommonJS")]: 0
}, http_default = defaultObject;
export {
+ validateHeaderValue,
+ validateHeaderName,
request,
+ globalAgent,
get,
http_default as default,
createServer,
diff --git a/src/js/out/modules/node/https.js b/src/js/out/modules/node/https.js
index 84d68c365..4fbf284d5 100644
--- a/src/js/out/modules/node/https.js
+++ b/src/js/out/modules/node/https.js
@@ -1,5 +1,54 @@
-export * from "node:http";
-var HTTP = import.meta.require("node:http"), https_default = HTTP;
+import * as http from "node:http";
+var request2 = function(input, options, cb) {
+ if (input && typeof input === "object" && !(input instanceof URL))
+ input.protocol ??= "https:";
+ else if (typeof options === "object")
+ options.protocol ??= "https:";
+ return http.request(input, options, cb);
+}, get = function(input, options, cb) {
+ const req = request2(input, options, cb);
+ return req.end(), req;
+}, {
+ Agent,
+ Server,
+ METHODS,
+ STATUS_CODES,
+ createServer,
+ ServerResponse,
+ IncomingMessage,
+ maxHeaderSize,
+ validateHeaderName,
+ validateHeaderValue,
+ globalAgent
+} = http, defaultExport = {
+ Agent,
+ Server,
+ METHODS,
+ STATUS_CODES,
+ createServer,
+ ServerResponse,
+ IncomingMessage,
+ request: request2,
+ get,
+ maxHeaderSize,
+ validateHeaderName,
+ validateHeaderValue,
+ globalAgent
+};
+var https_default = defaultExport;
export {
- https_default as default
+ validateHeaderValue,
+ validateHeaderName,
+ request2 as request,
+ maxHeaderSize,
+ globalAgent,
+ get,
+ https_default as default,
+ createServer,
+ ServerResponse,
+ Server,
+ STATUS_CODES,
+ METHODS,
+ IncomingMessage,
+ Agent
};
diff --git a/src/js/out/modules/node/inspector.js b/src/js/out/modules/node/inspector.js
index cc9e9c88c..3a5073efc 100644
--- a/src/js/out/modules/node/inspector.js
+++ b/src/js/out/modules/node/inspector.js
@@ -17,7 +17,7 @@ class NotImplementedError extends Error {
}
// src/js/node/inspector.ts
-var EventEmitter = import.meta.require("node:events");
+import EventEmitter from "node:events";
var open = function() {
throwNotImplemented("node:inspector open", 2445);
}, close = function() {
diff --git a/src/js/out/modules/node/net.js b/src/js/out/modules/node/net.js
index ddd799cf2..7f3102648 100644
--- a/src/js/out/modules/node/net.js
+++ b/src/js/out/modules/node/net.js
@@ -1,3 +1,5 @@
+import {Duplex} from "node:stream";
+import {EventEmitter} from "node:events";
var isIPv4 = function(s) {
return IPv4Reg.test(s);
}, isIPv6 = function(s) {
@@ -24,7 +26,7 @@ var isIPv4 = function(s) {
self.emit("listening");
}, createServer = function(options, connectionListener) {
return new Server(options, connectionListener);
-}, v4Seg = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", v4Str = "((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", IPv4Reg = new RegExp("^((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"), v6Seg = "(?:[0-9a-fA-F]{1,4})", IPv6Reg = new RegExp("^((?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(:(?:[0-9a-fA-F]{1,4})){0,1}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(:(?:[0-9a-fA-F]{1,4})){0,2}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(:(?:[0-9a-fA-F]{1,4})){0,3}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(:(?:[0-9a-fA-F]{1,4})){0,4}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::((?::(?:[0-9a-fA-F]{1,4})){0,5}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$"), { Bun, createFIFO, Object } = import.meta.primordials, { connect: bunConnect } = Bun, { Duplex } = import.meta.require("node:stream"), { EventEmitter } = import.meta.require("node:events"), { setTimeout } = globalThis, bunTlsSymbol = Symbol.for("::buntls::"), bunSocketServerHandlers = Symbol.for("::bunsocket_serverhandlers::"), bunSocketServerConnections = Symbol.for("::bunnetserverconnections::"), bunSocketServerOptions = Symbol.for("::bunnetserveroptions::"), SocketClass, Socket = function(InternalSocket) {
+}, v4Seg = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", v4Str = `(${v4Seg}[.]){3}${v4Seg}`, IPv4Reg = new RegExp(`^${v4Str}$`), v6Seg = "(?:[0-9a-fA-F]{1,4})", IPv6Reg = new RegExp("^(" + `(?:${v6Seg}:){7}(?:${v6Seg}|:)|` + `(?:${v6Seg}:){6}(?:${v4Str}|:${v6Seg}|:)|` + `(?:${v6Seg}:){5}(?::${v4Str}|(:${v6Seg}){1,2}|:)|` + `(?:${v6Seg}:){4}(?:(:${v6Seg}){0,1}:${v4Str}|(:${v6Seg}){1,3}|:)|` + `(?:${v6Seg}:){3}(?:(:${v6Seg}){0,2}:${v4Str}|(:${v6Seg}){1,4}|:)|` + `(?:${v6Seg}:){2}(?:(:${v6Seg}){0,3}:${v4Str}|(:${v6Seg}){1,5}|:)|` + `(?:${v6Seg}:){1}(?:(:${v6Seg}){0,4}:${v4Str}|(:${v6Seg}){1,6}|:)|` + `(?::((?::${v6Seg}){0,5}:${v4Str}|(?::${v6Seg}){1,7}|:))` + ")(%[0-9a-zA-Z-.:]{1,})?$"), { Bun, createFIFO, Object } = globalThis[Symbol.for("Bun.lazy")]("primordials"), { connect: bunConnect } = Bun, { setTimeout } = globalThis, bunTlsSymbol = Symbol.for("::buntls::"), bunSocketServerHandlers = Symbol.for("::bunsocket_serverhandlers::"), bunSocketServerConnections = Symbol.for("::bunnetserverconnections::"), bunSocketServerOptions = Symbol.for("::bunnetserveroptions::"), bunSocketInternal = Symbol.for("::bunnetsocketinternal::"), SocketClass, Socket = function(InternalSocket) {
return SocketClass = InternalSocket, Object.defineProperty(SocketClass.prototype, Symbol.toStringTag, {
value: "Socket",
enumerable: !1
@@ -60,7 +62,9 @@ var isIPv4 = function(s) {
},
open(socket) {
const self = socket.data;
- socket.timeout(self.timeout), socket.ref(), self.#socket = socket, self.connecting = !1, self.emit("connect", self), Socket2.#Drain(socket);
+ if (socket.timeout(self.timeout), socket.ref(), self[bunSocketInternal] = socket, self.connecting = !1, !self.#upgraded)
+ self.emit("connect", self);
+ Socket2.#Drain(socket);
},
handshake(socket, success, verifyError) {
const { data: self } = socket;
@@ -85,7 +89,7 @@ var isIPv4 = function(s) {
const self = socket.data;
if (self.#closed)
return;
- self.#closed = !0, self.#socket = null;
+ self.#closed = !0, self[bunSocketInternal] = null;
const queue = self.#readQueue;
if (queue.isEmpty()) {
if (self.push(null))
@@ -161,21 +165,28 @@ var isIPv4 = function(s) {
localAddress = "127.0.0.1";
#readQueue = createFIFO();
remotePort;
- #socket;
+ [bunSocketInternal] = null;
timeout = 0;
#writeCallback;
#writeChunk;
#pendingRead;
isServer = !1;
+ _handle;
+ _parent;
+ _parentWrap;
+ #socket;
+ #upgraded;
constructor(options) {
- const { signal, write, read, allowHalfOpen = !1, ...opts } = options || {};
+ const { socket, signal, write, read, allowHalfOpen = !1, ...opts } = options || {};
super({
...opts,
allowHalfOpen,
readable: !0,
writable: !0
});
- this.#pendingRead = void 0, signal?.once("abort", () => this.destroy()), this.once("connect", () => this.emit("ready"));
+ if (this._handle = this, this._parent = this, this._parentWrap = this, this.#pendingRead = void 0, this.#upgraded = !1, socket instanceof Socket2)
+ this.#socket = socket;
+ signal?.once("abort", () => this.destroy()), this.once("connect", () => this.emit("ready"));
}
address() {
return {
@@ -188,10 +199,10 @@ var isIPv4 = function(s) {
return this.writableLength;
}
#attach(port, socket) {
- this.remotePort = port, socket.data = this, socket.timeout(this.timeout), socket.ref(), this.#socket = socket, this.connecting = !1, this.emit("connect", this), Socket2.#Drain(socket);
+ this.remotePort = port, socket.data = this, socket.timeout(this.timeout), socket.ref(), this[bunSocketInternal] = socket, this.connecting = !1, this.emit("connect", this), Socket2.#Drain(socket);
}
connect(port, host, connectListener) {
- var path;
+ var path, connection = this.#socket;
if (typeof port === "string") {
if (path = port, port = void 0, typeof host === "function")
connectListener = host, host = void 0;
@@ -205,6 +216,7 @@ var isIPv4 = function(s) {
port,
host,
path,
+ socket,
localAddress,
localPort,
family,
@@ -218,7 +230,8 @@ var isIPv4 = function(s) {
pauseOnConnect,
servername
} = port;
- this.servername = servername;
+ if (this.servername = servername, socket)
+ connection = socket;
}
if (!pauseOnConnect)
this.resume();
@@ -226,36 +239,80 @@ var isIPv4 = function(s) {
const bunTLS = this[bunTlsSymbol];
var tls = void 0;
if (typeof bunTLS === "function") {
- if (tls = bunTLS.call(this, port, host, !0), this._requestCert = !0, this._rejectUnauthorized = rejectUnauthorized, tls)
+ if (tls = bunTLS.call(this, port, host, !0), this._requestCert = !0, this._rejectUnauthorized = rejectUnauthorized, tls) {
if (typeof tls !== "object")
tls = {
rejectUnauthorized,
requestCert: !0
};
- else
- tls.rejectUnauthorized = rejectUnauthorized, tls.requestCert = !0;
+ else if (tls.rejectUnauthorized = rejectUnauthorized, tls.requestCert = !0, !connection && tls.socket)
+ connection = tls.socket;
+ }
+ if (connection) {
+ if (typeof connection !== "object" || !(connection instanceof Socket2) || typeof connection[bunTlsSymbol] === "function")
+ throw new TypeError("socket must be an instance of net.Socket");
+ }
if (this.authorized = !1, this.secureConnecting = !0, this._secureEstablished = !1, this._securePending = !0, connectListener)
this.on("secureConnect", connectListener);
} else if (connectListener)
this.on("connect", connectListener);
- return bunConnect(path ? {
- data: this,
- unix: path,
- socket: Socket2.#Handlers,
- tls
- } : {
- data: this,
- hostname: host || "localhost",
- port,
- socket: Socket2.#Handlers,
- tls
- }), this;
+ if (connection) {
+ const socket2 = connection[bunSocketInternal];
+ if (socket2) {
+ this.connecting = !0, this.#upgraded = !0;
+ const result = socket2.upgradeTLS({
+ data: this,
+ tls,
+ socket: Socket2.#Handlers
+ });
+ if (result) {
+ const [raw, tls2] = result;
+ connection[bunSocketInternal] = raw, raw.timeout(raw.timeout), raw.connecting = !1, this[bunSocketInternal] = tls2;
+ } else
+ throw this[bunSocketInternal] = null, new Error("Invalid socket");
+ } else
+ connection.once("connect", () => {
+ const socket3 = connection[bunSocketInternal];
+ if (!socket3)
+ return;
+ this.connecting = !0, this.#upgraded = !0;
+ const result = socket3.upgradeTLS({
+ data: this,
+ tls,
+ socket: Socket2.#Handlers
+ });
+ if (result) {
+ const [raw, tls2] = result;
+ connection[bunSocketInternal] = raw, raw.timeout(raw.timeout), raw.connecting = !1, this[bunSocketInternal] = tls2;
+ } else
+ throw this[bunSocketInternal] = null, new Error("Invalid socket");
+ });
+ } else if (path)
+ bunConnect({
+ data: this,
+ unix: path,
+ socket: Socket2.#Handlers,
+ tls
+ }).catch((error) => {
+ this.emit("error", error);
+ });
+ else
+ bunConnect({
+ data: this,
+ hostname: host || "localhost",
+ port,
+ socket: Socket2.#Handlers,
+ tls
+ }).catch((error) => {
+ this.emit("error", error);
+ });
+ return this;
}
_destroy(err, callback) {
- this.#socket?.end(), callback(err);
+ this[bunSocketInternal]?.end(), callback(err);
}
_final(callback) {
- this.#socket?.end(), callback();
+ this[bunSocketInternal]?.end(), callback();
}
get localAddress() {
return "127.0.0.1";
@@ -264,7 +321,7 @@ var isIPv4 = function(s) {
return "IPv4";
}
get localPort() {
- return this.#socket?.localPort;
+ return this[bunSocketInternal]?.localPort;
}
get pending() {
return this.connecting;
@@ -287,16 +344,16 @@ var isIPv4 = function(s) {
return this.writable ? "writeOnly" : "closed";
}
ref() {
- this.#socket?.ref();
+ this[bunSocketInternal]?.ref();
}
get remoteAddress() {
- return this.#socket?.remoteAddress;
+ return this[bunSocketInternal]?.remoteAddress;
}
get remoteFamily() {
return "IPv4";
}
resetAndDestroy() {
- this.#socket?.end();
+ this[bunSocketInternal]?.end();
}
setKeepAlive(enable = !1, initialDelay = 0) {
return this;
@@ -305,17 +362,17 @@ var isIPv4 = function(s) {
return this;
}
setTimeout(timeout, callback) {
- if (this.#socket?.timeout(timeout), this.timeout = timeout, callback)
+ if (this[bunSocketInternal]?.timeout(timeout), this.timeout = timeout, callback)
this.once("timeout", callback);
return this;
}
unref() {
- this.#socket?.unref();
+ this[bunSocketInternal]?.unref();
}
_write(chunk, encoding, callback) {
- if (typeof chunk == "string" && encoding !== "utf8")
+ if (typeof chunk == "string" && encoding !== "ascii")
chunk = Buffer.from(chunk, encoding);
- var written = this.#socket?.write(chunk);
+ var written = this[bunSocketInternal]?.write(chunk);
if (written == chunk.length)
callback();
else if (this.#writeCallback)
diff --git a/src/js/out/modules/node/os.js b/src/js/out/modules/node/os.js
index e27464e15..9bcf1d733 100644
--- a/src/js/out/modules/node/os.js
+++ b/src/js/out/modules/node/os.js
@@ -12,7 +12,9 @@ var bound = function(obj) {
platform: obj.platform.bind(obj),
release: obj.release.bind(obj),
setPriority: obj.setPriority.bind(obj),
- tmpdir: obj.tmpdir.bind(obj),
+ get tmpdir() {
+ return tmpdir;
+ },
totalmem: obj.totalmem.bind(obj),
type: obj.type.bind(obj),
uptime: obj.uptime.bind(obj),
@@ -24,6 +26,15 @@ var bound = function(obj) {
constants: obj.constants,
[Symbol.for("CommonJS")]: 0
};
+}, tmpdir = function() {
+ var lazy = Symbol.for("Bun.lazy"), primordials = globalThis[lazy]("primordials"), { Bun: Bun2 } = primordials, env = Bun2.env;
+ return tmpdir = function() {
+ var path = env.TMPDIR || env.TMP || env.TEMP || "/tmp";
+ const length = path.length;
+ if (length > 1 && path[length - 1] === "/")
+ path = path.slice(0, -1);
+ return path;
+ }, tmpdir();
}, os = bound(Bun._Os()), {
arch,
cpus,
@@ -37,7 +48,6 @@ var bound = function(obj) {
platform,
release,
setPriority,
- tmpdir,
totalmem,
type,
uptime,
diff --git a/src/js/out/modules/node/path.js b/src/js/out/modules/node/path.js
index c089dd8d5..edc4f1d3c 100644
--- a/src/js/out/modules/node/path.js
+++ b/src/js/out/modules/node/path.js
@@ -1 +1 @@
-var k=function(f){var m=g({basename:f.basename.bind(f),dirname:f.dirname.bind(f),extname:f.extname.bind(f),format:f.format.bind(f),isAbsolute:f.isAbsolute.bind(f),join:f.join.bind(f),normalize:f.normalize.bind(f),parse:f.parse.bind(f),relative:f.relative.bind(f),resolve:f.resolve.bind(f),toNamespacedPath:f.toNamespacedPath.bind(f),sep:f.sep,delimiter:f.delimiter});return m.default=m,m},g=(f)=>Object.assign(Object.create(null),f),q=k(Bun._Path()),v=k(Bun._Path(!1)),y=k(Bun._Path(!0));q.win32=y;q.posix=v;var{basename:z,dirname:A,extname:B,format:C,isAbsolute:D,join:E,normalize:F,parse:G,relative:H,resolve:I,toNamespacedPath:J,sep:K,delimiter:L,__esModule:N}=q;q[Symbol.for("CommonJS")]=0;q.__esModule=!0;var P=q;export{y as win32,J as toNamespacedPath,K as sep,I as resolve,H as relative,v as posix,G as parse,F as normalize,E as join,D as isAbsolute,C as format,B as extname,A as dirname,L as delimiter,P as default,g as createModule,z as basename,N as __esModule};
+var g=function(i){var m=k({basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter});return m.default=m,m},k=(i)=>Object.assign(Object.create(null),i),f=g(Bun._Path()),q=g(Bun._Path(!1)),v=g(Bun._Path(!0));f.win32=v;f.posix=q;var{basename:y,dirname:z,extname:A,format:B,isAbsolute:C,join:D,normalize:E,parse:F,relative:G,resolve:H,toNamespacedPath:I,sep:J,delimiter:K,__esModule:L}=f;f[Symbol.for("CommonJS")]=0;f.__esModule=!0;var O=f;export{v as win32,I as toNamespacedPath,J as sep,H as resolve,G as relative,q as posix,F as parse,E as normalize,D as join,C as isAbsolute,B as format,A as extname,z as dirname,K as delimiter,O as default,k as createModule,y as basename,L as __esModule};
diff --git a/src/js/out/modules/node/path.posix.js b/src/js/out/modules/node/path.posix.js
index 64e8a62f5..179f2b9aa 100644
--- a/src/js/out/modules/node/path.posix.js
+++ b/src/js/out/modules/node/path.posix.js
@@ -1 +1 @@
-var i=function(e){return{basename:e.basename.bind(e),dirname:e.dirname.bind(e),extname:e.extname.bind(e),format:e.format.bind(e),isAbsolute:e.isAbsolute.bind(e),join:e.join.bind(e),normalize:e.normalize.bind(e),parse:e.parse.bind(e),relative:e.relative.bind(e),resolve:e.resolve.bind(e),toNamespacedPath:e.toNamespacedPath.bind(e),sep:e.sep,delimiter:e.delimiter}},r=i(Bun._Path(!1));r[Symbol.for("CommonJS")]=0;var{basename:d,dirname:l,extname:s,format:c,isAbsolute:f,join:g,normalize:k,parse:m,relative:q,resolve:t,toNamespacedPath:v,sep:w,delimiter:x}=r,z=r;export{v as toNamespacedPath,w as sep,t as resolve,q as relative,m as parse,k as normalize,g as join,f as isAbsolute,c as format,s as extname,l as dirname,x as delimiter,z as default,d as basename};
+var r=function(e){return{basename:e.basename.bind(e),dirname:e.dirname.bind(e),extname:e.extname.bind(e),format:e.format.bind(e),isAbsolute:e.isAbsolute.bind(e),join:e.join.bind(e),normalize:e.normalize.bind(e),parse:e.parse.bind(e),relative:e.relative.bind(e),resolve:e.resolve.bind(e),toNamespacedPath:e.toNamespacedPath.bind(e),sep:e.sep,delimiter:e.delimiter}},i=r(Bun._Path(!1));i[Symbol.for("CommonJS")]=0;var{basename:d,dirname:l,extname:s,format:c,isAbsolute:f,join:g,normalize:k,parse:m,relative:q,resolve:t,toNamespacedPath:v,sep:w,delimiter:x}=i,z=i;export{v as toNamespacedPath,w as sep,t as resolve,q as relative,m as parse,k as normalize,g as join,f as isAbsolute,c as format,s as extname,l as dirname,x as delimiter,z as default,d as basename};
diff --git a/src/js/out/modules/node/path.win32.js b/src/js/out/modules/node/path.win32.js
index 03d7b81c8..a1b929c52 100644
--- a/src/js/out/modules/node/path.win32.js
+++ b/src/js/out/modules/node/path.win32.js
@@ -1 +1 @@
-var e=function(i){return{basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter}},r=e(Bun._Path(!0)),{basename:s,dirname:t,extname:c,format:d,isAbsolute:f,join:g,normalize:k,parse:l,relative:m,resolve:n,toNamespacedPath:q,sep:v,delimiter:w}=r,y=r;export{q as toNamespacedPath,v as sep,n as resolve,m as relative,l as parse,k as normalize,g as join,f as isAbsolute,d as format,c as extname,t as dirname,w as delimiter,y as default,s as basename};
+var r=function(i){return{basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter}},e=r(Bun._Path(!0)),{basename:s,dirname:t,extname:c,format:d,isAbsolute:f,join:g,normalize:k,parse:l,relative:m,resolve:n,toNamespacedPath:q,sep:v,delimiter:w}=e,y=e;export{q as toNamespacedPath,v as sep,n as resolve,m as relative,l as parse,k as normalize,g as join,f as isAbsolute,d as format,c as extname,t as dirname,w as delimiter,y as default,s as basename};
diff --git a/src/js/out/modules/node/perf_hooks.js b/src/js/out/modules/node/perf_hooks.js
index 387fd00b7..af20677d7 100644
--- a/src/js/out/modules/node/perf_hooks.js
+++ b/src/js/out/modules/node/perf_hooks.js
@@ -17,7 +17,19 @@ class NotImplementedError extends Error {
}
// src/js/node/perf_hooks.js
-var performance = globalThis.performance;
+var constants = {
+ NODE_PERFORMANCE_GC_MAJOR: 4,
+ NODE_PERFORMANCE_GC_MINOR: 1,
+ NODE_PERFORMANCE_GC_INCREMENTAL: 8,
+ NODE_PERFORMANCE_GC_WEAKCB: 16,
+ NODE_PERFORMANCE_GC_FLAGS_NO: 0,
+ NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: 2,
+ NODE_PERFORMANCE_GC_FLAGS_FORCED: 4,
+ NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: 8,
+ NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: 16,
+ NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: 32,
+ NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: 64
+}, performance = globalThis.performance;
class PerformanceObserver {
constructor() {
@@ -38,6 +50,7 @@ class PerformanceNodeTiming {
}
var perf_hooks_default = {
performance,
+ constants,
PerformanceEntry,
PerformanceNodeTiming,
[Symbol.for("CommonJS")]: 0
@@ -45,6 +58,7 @@ var perf_hooks_default = {
export {
performance,
perf_hooks_default as default,
+ constants,
PerformanceObserver,
PerformanceNodeTiming,
PerformanceEntry
diff --git a/src/js/out/modules/node/readline.js b/src/js/out/modules/node/readline.js
index 06a7f3579..6cfac471d 100644
--- a/src/js/out/modules/node/readline.js
+++ b/src/js/out/modules/node/readline.js
@@ -1,3 +1,6 @@
+import {EventEmitter} from "node:events";
+import {clearTimeout, setTimeout} from "node:timers";
+import {StringDecoder} from "node:string_decoder";
var stripVTControlCharacters = function(str) {
return validateString(str, "str"), RegExpPrototypeSymbolReplace.call(ansi, str, "");
}, promisify = function(original) {
@@ -594,7 +597,7 @@ var commonPrefix = function(strings) {
}, createInterface = function(input, output, completer, terminal) {
return new Interface(input, output, completer, terminal);
};
-var { Array, RegExp, String, Bun } = import.meta.primordials, EventEmitter = import.meta.require("node:events"), { clearTimeout, setTimeout } = import.meta.require("timers"), { StringDecoder } = import.meta.require("string_decoder"), isWritable, { inspect } = Bun, debug = process.env.BUN_JS_DEBUG ? console.log : () => {
+var { Array, RegExp, String, Bun } = globalThis[Symbol.for("Bun.lazy")]("primordials"), isWritable, { inspect } = Bun, debug = process.env.BUN_JS_DEBUG ? console.log : () => {
}, SymbolAsyncIterator = Symbol.asyncIterator, SymbolIterator = Symbol.iterator, SymbolFor = Symbol.for, SymbolReplace = Symbol.replace, ArrayFrom = Array.from, ArrayIsArray = Array.isArray, ArrayPrototypeFilter = Array.prototype.filter, ArrayPrototypeSort = Array.prototype.sort, ArrayPrototypeIndexOf = Array.prototype.indexOf, ArrayPrototypeJoin = Array.prototype.join, ArrayPrototypeMap = Array.prototype.map, ArrayPrototypePop = Array.prototype.pop, ArrayPrototypePush = Array.prototype.push, ArrayPrototypeSlice = Array.prototype.slice, ArrayPrototypeSplice = Array.prototype.splice, ArrayPrototypeReverse = Array.prototype.reverse, ArrayPrototypeShift = Array.prototype.shift, ArrayPrototypeUnshift = Array.prototype.unshift, RegExpPrototypeExec = RegExp.prototype.exec, RegExpPrototypeSymbolReplace = RegExp.prototype[SymbolReplace], StringFromCharCode = String.fromCharCode, StringPrototypeCharCodeAt = String.prototype.charCodeAt, StringPrototypeCodePointAt = String.prototype.codePointAt, StringPrototypeSlice = String.prototype.slice, StringPrototypeToLowerCase = String.prototype.toLowerCase, StringPrototypeEndsWith = String.prototype.endsWith, StringPrototypeRepeat = String.prototype.repeat, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeTrim = String.prototype.trim, StringPrototypeNormalize = String.prototype.normalize, NumberIsNaN = Number.isNaN, NumberIsFinite = Number.isFinite, NumberIsInteger = Number.isInteger, NumberMAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER, NumberMIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER, MathCeil = Math.ceil, MathFloor = Math.floor, MathMax = Math.max, MathMaxApply = Math.max.apply, DateNow = Date.now, FunctionPrototype = Function.prototype, StringPrototype = String.prototype, StringPrototypeSymbolIterator = StringPrototype[SymbolIterator], StringIteratorPrototypeNext = StringPrototypeSymbolIterator.call("").next, ObjectSetPrototypeOf = Object.setPrototypeOf, ObjectDefineProperty = Object.defineProperty, ObjectDefineProperties = Object.defineProperties, ObjectFreeze = Object.freeze;
var { create: ObjectCreate, keys: ObjectKeys } = Object;
var createSafeIterator = (factory, next) => {
@@ -691,7 +694,6 @@ CSI.kClearToLineBeginning = kClearToLineBeginning = CSI`1K`;
CSI.kClearToLineEnd = kClearToLineEnd = CSI`0K`;
var KEYPRESS_DECODER = Symbol("keypress-decoder"), ESCAPE_DECODER = Symbol("escape-decoder"), ESCAPE_CODE_TIMEOUT = 500, kEmptyObject = ObjectFreeze(ObjectCreate(null)), kHistorySize = 30, kMaxUndoRedoStackSize = 2048, kMincrlfDelay = 100, lineEnding = /\r?\n|\r(?!\n)/g, kMaxLengthOfKillRing = 32, kLineObjectStream = Symbol("line object stream"), kQuestionCancel = Symbol("kQuestionCancel"), kQuestion = Symbol("kQuestion"), kAddHistory = Symbol("_addHistory"), kBeforeEdit = Symbol("_beforeEdit"), kDecoder = Symbol("_decoder"), kDeleteLeft = Symbol("_deleteLeft"), kDeleteLineLeft = Symbol("_deleteLineLeft"), kDeleteLineRight = Symbol("_deleteLineRight"), kDeleteRight = Symbol("_deleteRight"), kDeleteWordLeft = Symbol("_deleteWordLeft"), kDeleteWordRight = Symbol("_deleteWordRight"), kGetDisplayPos = Symbol("_getDisplayPos"), kHistoryNext = Symbol("_historyNext"), kHistoryPrev = Symbol("_historyPrev"), kInsertString = Symbol("_insertString"), kLine = Symbol("_line"), kLine_buffer = Symbol("_line_buffer"), kKillRing = Symbol("_killRing"), kKillRingCursor = Symbol("_killRingCursor"), kMoveCursor = Symbol("_moveCursor"), kNormalWrite = Symbol("_normalWrite"), kOldPrompt = Symbol("_oldPrompt"), kOnLine = Symbol("_onLine"), kPreviousKey = Symbol("_previousKey"), kPrompt = Symbol("_prompt"), kPushToKillRing = Symbol("_pushToKillRing"), kPushToUndoStack = Symbol("_pushToUndoStack"), kQuestionCallback = Symbol("_questionCallback"), kRedo = Symbol("_redo"), kRedoStack = Symbol("_redoStack"), kRefreshLine = Symbol("_refreshLine"), kSawKeyPress = Symbol("_sawKeyPress"), kSawReturnAt = Symbol("_sawReturnAt"), kSetRawMode = Symbol("_setRawMode"), kTabComplete = Symbol("_tabComplete"), kTabCompleter = Symbol("_tabCompleter"), kTtyWrite = Symbol("_ttyWrite"), kUndo = Symbol("_undo"), kUndoStack = Symbol("_undoStack"), kWordLeft = Symbol("_wordLeft"), kWordRight = Symbol("_wordRight"), kWriteToOutput = Symbol("_writeToOutput"), kYank = Symbol("_yank"), kYanking = Symbol("_yanking"), kYankPop = Symbol("_yankPop"), kFirstEventParam = Symbol("nodejs.kFirstEventParam"), kOnSelfCloseWithTerminal = Symbol("_onSelfCloseWithTerminal"), kOnSelfCloseWithoutTerminal = Symbol("_onSelfCloseWithoutTerminal"), kOnKeyPress = Symbol("_onKeyPress"), kOnError = Symbol("_onError"), kOnData = Symbol("_onData"), kOnEnd = Symbol("_onEnd"), kOnTermEnd = Symbol("_onTermEnd"), kOnResize = Symbol("_onResize");
ObjectSetPrototypeOf(InterfaceConstructor.prototype, EventEmitter.prototype);
-ObjectSetPrototypeOf(InterfaceConstructor, EventEmitter);
var _Interface = class Interface2 extends InterfaceConstructor {
constructor(input, output, completer, terminal) {
super(input, output, completer, terminal);
diff --git a/src/js/out/modules/node/readline.promises.js b/src/js/out/modules/node/readline.promises.js
index bfe5a7855..61a6d256f 100644
--- a/src/js/out/modules/node/readline.promises.js
+++ b/src/js/out/modules/node/readline.promises.js
@@ -1,11 +1,13 @@
-var {
- promises: { Readline, Interface, createInterface }
-} = import.meta.require("node:readline"), readline_promises_default = {
+import {promises} from "node:readline";
+var { Readline, Interface, createInterface } = promises, readline_promises_default = {
Readline,
Interface,
createInterface,
[Symbol.for("CommonJS")]: 0
};
export {
- readline_promises_default as default
+ readline_promises_default as default,
+ createInterface,
+ Readline,
+ Interface
};
diff --git a/src/js/out/modules/node/stream.consumers.js b/src/js/out/modules/node/stream.consumers.js
index 1c66aab55..a4a60e626 100644
--- a/src/js/out/modules/node/stream.consumers.js
+++ b/src/js/out/modules/node/stream.consumers.js
@@ -1 +1 @@
-var{Bun:T}=import.meta.primordials,c=T.readableStreamToArrayBuffer,g=T.readableStreamToText,h=(o)=>T.readableStreamToText(o).then(JSON.parse),i=async(o)=>{return new Buffer(await c(o))},k=T.readableStreamToBlob,p={[Symbol.for("CommonJS")]:0,arrayBuffer:c,text:g,json:h,buffer:i,blob:k};export{g as text,h as json,p as default,i as buffer,k as blob,c as arrayBuffer};
+var{Bun:h}=globalThis[Symbol.for("Bun.lazy")]("primordials"),p=h.readableStreamToArrayBuffer,c=h.readableStreamToText,g=(o)=>h.readableStreamToText(o).then(JSON.parse),i=async(o)=>{return new Buffer(await p(o))},k=h.readableStreamToBlob,q={[Symbol.for("CommonJS")]:0,arrayBuffer:p,text:c,json:g,buffer:i,blob:k};export{c as text,g as json,q as default,i as buffer,k as blob,p as arrayBuffer};
diff --git a/src/js/out/modules/node/stream.js b/src/js/out/modules/node/stream.js
index 533cf8a04..06727e66e 100644
--- a/src/js/out/modules/node/stream.js
+++ b/src/js/out/modules/node/stream.js
@@ -1,2 +1,2 @@
-var wq=function(q){if(!(this instanceof wq))return new wq(q);bq.call(this,q);const Q=q.__id;if(Q)fq(this,"__id",{value:Q,readable:!0,writable:!1,enumerable:!1})},dq=function(q){return typeof q==="object"&&q!==null&&q instanceof ReadableStream},lq=function(q,Q){if(typeof q!=="boolean")throw new nq(Q,"boolean",q)};var nq=function(q,Q,X){return new Error(`The argument '${q}' is invalid. Received '${X}' for type '${Q}'`)},oq=function(q,Q,X){return new Error(`The value '${Q}' is invalid for argument '${q}'. Reason: ${X}`)},jQ=function(q,Q){var[X,J,H,Z,K,B,Y]=globalThis[Symbol.for("Bun.lazy")](q),$=[!1],z=function(j,L,N,W){if(L>0){const P=N.subarray(0,L),I=N.subarray(L);if(P.byteLength>0)j.push(P);if(W)j.push(null);return I.byteLength>0?I:void 0}if(W)j.push(null);return N},V=function(j,L,N,W){if(L.byteLength>0)j.push(L);if(W)j.push(null);return N},G=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const U=new FinalizationRegistry((j)=>j&&K(j)),F=512;var M=class j extends Q{#q;#Q=1;#X=!1;#J=void 0;#H;#Z=!1;#K=!G;#B;constructor(L,N={}){super(N);if(typeof N.highWaterMark==="number")this.#H=N.highWaterMark;else this.#H=262144;this.#q=L,this.#X=!1,this.#J=void 0,this.#Z=!1,this.#B={},U.register(this,this.#q,this.#B)}_read(L){if(xq&&Iq("NativeReadable._read",this.__id),this.#Z){xq&&Iq("pendingRead is true",this.__id);return}var N=this.#q;if(xq&&Iq("ptr @ NativeReadable._read",N,this.__id),N===0){this.push(null);return}if(!this.#X)xq&&Iq("NativeReadable not constructed yet",this.__id),this.#Y(N);return this.#V(this.#$(L),N)}#Y(L){this.#X=!0;const N=J(L,this.#H);if(xq&&Iq("NativeReadable internal `start` result",N,this.__id),typeof N==="number"&&N>1)this.#K=!0,xq&&Iq("NativeReadable resized",this.__id),this.#H=Math.min(this.#H,N);if(Y){const W=Y(L);if(xq&&Iq("NativeReadable drain result",W,this.__id),(W?.byteLength??0)>0)this.push(W)}}#$(L=this.#H){var N=this.#J;if(xq&&Iq("chunk @ #getRemainingChunk",N,this.__id),N?.byteLength??0<F){var W=L>F?L:F;this.#J=N=new Buffer(W)}return N}push(L,N){return xq&&Iq("NativeReadable push -- result, encoding",L,N,this.__id),super.push(...arguments)}#z(L,N,W){if(xq&&Iq("result, isClosed @ #handleResult",L,W,this.__id),typeof L==="number"){if(L>=this.#H&&!this.#K&&!W)this.#H*=2,this.#K=!0;return z(this,L,N,W)}else if(typeof L==="boolean")return this.push(null),N?.byteLength??0>0?N:void 0;else if(ArrayBuffer.isView(L)){if(L.byteLength>=this.#H&&!this.#K&&!W)this.#H*=2,this.#K=!0,xq&&Iq("Resized",this.__id);return V(this,L,N,W)}else throw xq&&Iq("Unknown result type",L,this.__id),new Error("Invalid result from pull")}#V(L,N){xq&&Iq("#internalRead()",this.__id),$[0]=!1;var W=X(N,L,$);if(Cq(W))return this.#Z=!0,W.then((P)=>{this.#Z=!1,xq&&Iq("pending no longerrrrrrrr (result returned from pull)",this.__id),this.#J=this.#z(P,L,$[0])},(P)=>{xq&&Iq("error from pull",P,this.__id),errorOrDestroy(this,P)});else this.#J=this.#z(W,L,$[0])}_destroy(L,N){var W=this.#q;if(W===0){N(L);return}if(U.unregister(this.#B),this.#q=0,B)B(W,!1);xq&&Iq("NativeReadable destroyed",this.__id),H(W,L),N(L)}ref(){var L=this.#q;if(L===0)return;if(this.#Q++===0)B(L,!0)}unref(){var L=this.#q;if(L===0)return;if(this.#Q--===1)B(L,!1)}};if(!B)M.prototype.ref=void 0,M.prototype.unref=void 0;return M},NQ=function(q,Q){return LQ[q]||=jQ(q,Q)},WQ=function(q,Q,X){if(!(Q&&typeof Q==="object"&&Q instanceof ReadableStream))return;const J=gq(Q);if(!J){Iq("no native readable stream");return}const{stream:H,data:Z}=J;return new(NQ(Z,q))(H,X)},{isPromise:Cq,isCallable:Rq,direct:gq,Object:Oq}=import.meta.primordials;globalThis.__IDS_TO_TRACK=process.env.DEBUG_TRACK_EE?.length?process.env.DEBUG_TRACK_EE.split(","):process.env.DEBUG_STREAMS?.length?process.env.DEBUG_STREAMS.split(","):null;var Sq=!!process.env.DEBUG_TRACK_EE,xq=!!(process.env.DEBUG||process.env.DEBUG_STREAMS||Sq),Iq=xq?globalThis.__IDS_TO_TRACK?(...q)=>{const Q=q[q.length-1];if(!globalThis.__IDS_TO_TRACK.includes(Q))return;console.log(`ID: ${Q}`,...q.slice(0,-1))}:(...q)=>console.log(...q.slice(0,-1)):()=>{},kq=Oq.create,fq=Oq.defineProperty,yq=Oq.getOwnPropertyDescriptor,hq=Oq.getOwnPropertyNames,pq=Oq.getPrototypeOf,uq=Oq.prototype.hasOwnProperty,mq=Oq.setPrototypeOf,Eq=(q)=>import.meta.require(q),bq=Eq("bun:events_native");mq(wq.prototype,bq.prototype);mq(wq,bq);wq.prototype.emit=function(q,...Q){var X=this.__id;if(X)Iq("emit",q,...Q,X);else Iq("emit",q,...Q);return bq.prototype.emit.call(this,q,...Q)};wq.prototype.on=function(q,Q){var X=this.__id;if(X)Iq("on",q,"added",X);else Iq("on",q,"added");return bq.prototype.on.call(this,q,Q)};wq.prototype.addListener=function(q,Q){return this.on(q,Q)};var cq=(q,Q)=>function X(){return Q||(0,q[hq(q)[0]])((Q={exports:{}}).exports,Q),Q.exports};var Aq=process.nextTick;var iq=Array.isArray,Dq=cq({"node_modules/readable-stream/lib/ours/primordials.js"(q,Q){Q.exports={ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,J){return X.includes(J)},ArrayPrototypeIndexOf(X,J){return X.indexOf(J)},ArrayPrototypeJoin(X,J){return X.join(J)},ArrayPrototypeMap(X,J){return X.map(J)},ArrayPrototypePop(X,J){return X.pop(J)},ArrayPrototypePush(X,J){return X.push(J)},ArrayPrototypeSlice(X,J,H){return X.slice(J,H)},Error,FunctionPrototypeCall(X,J,...H){return X.call(J,...H)},FunctionPrototypeSymbolHasInstance(X,J){return Function.prototype[Symbol.hasInstance].call(X,J)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,J){return Oq.defineProperties(X,J)},ObjectDefineProperty(X,J,H){return Oq.defineProperty(X,J,H)},ObjectGetOwnPropertyDescriptor(X,J){return Oq.getOwnPropertyDescriptor(X,J)},ObjectKeys(X){return Oq.keys(X)},ObjectSetPrototypeOf(X,J){return Oq.setPrototypeOf(X,J)},Promise,PromisePrototypeCatch(X,J){return X.catch(J)},PromisePrototypeThen(X,J,H){return X.then(J,H)},PromiseReject(X){return Promise.reject(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,J){return X.test(J)},SafeSet:Set,String,StringPrototypeSlice(X,J,H){return X.slice(J,H)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(X,J,H){return X.set(J,H)},Uint8Array}}}),_q=cq({"node_modules/readable-stream/lib/ours/util.js"(q,Q){var X=Eq("buffer"),J=Oq.getPrototypeOf(async function(){}).constructor,H=globalThis.Blob||X.Blob,Z=typeof H!=="undefined"?function B(Y){return Y instanceof H}:function B(Y){return!1},K=class extends Error{constructor(B){if(!Array.isArray(B))throw new TypeError(`Expected input to be an Array, got ${typeof B}`);let Y="";for(let $=0;$<B.length;$++)Y+=` ${B[$].stack}
-`;super(Y);this.name="AggregateError",this.errors=B}};Q.exports={AggregateError:K,once(B){let Y=!1;return function(...$){if(Y)return;Y=!0,B.apply(this,$)}},createDeferredPromise:function(){let B,Y;return{promise:new Promise((z,V)=>{B=z,Y=V}),resolve:B,reject:Y}},promisify(B){return new Promise((Y,$)=>{B((z,...V)=>{if(z)return $(z);return Y(...V)})})},debuglog(){return function(){}},format(B,...Y){return B.replace(/%([sdifj])/g,function(...[$,z]){const V=Y.shift();if(z==="f")return V.toFixed(6);else if(z==="j")return JSON.stringify(V);else if(z==="s"&&typeof V==="object")return`${V.constructor!==Oq?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(B){switch(typeof B){case"string":if(B.includes("'")){if(!B.includes('"'))return`"${B}"`;else if(!B.includes("`")&&!B.includes("${"))return`\`${B}\``}return`'${B}'`;case"number":if(isNaN(B))return"NaN";else if(Oq.is(B,-0))return String(B);return B;case"bigint":return`${String(B)}n`;case"boolean":case"undefined":return String(B);case"object":return"{}"}},types:{isAsyncFunction(B){return B instanceof J},isArrayBufferView(B){return ArrayBuffer.isView(B)}},isBlob:Z},Q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),sq=cq({"node_modules/readable-stream/lib/ours/errors.js"(q,Q){var{format:X,inspect:J,AggregateError:H}=_q(),Z=globalThis.AggregateError||H,K=Symbol("kIsNodeError"),B=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Y=/^([A-Z][a-z0-9]*)+$/,$="__node_internal_",z={};function V(N,W){if(!N)throw new z.ERR_INTERNAL_ASSERTION(W)}function G(N){let W="",P=N.length;const I=N[0]==="-"?1:0;for(;P>=I+4;P-=3)W=`_${N.slice(P-3,P)}${W}`;return`${N.slice(0,P)}${W}`}function U(N,W,P){if(typeof W==="function")return V(W.length<=P.length,`Code: ${N}; The provided arguments length (${P.length}) does not match the required ones (${W.length}).`),W(...P);const I=(W.match(/%[dfijoOs]/g)||[]).length;if(V(I===P.length,`Code: ${N}; The provided arguments length (${P.length}) does not match the required ones (${I}).`),P.length===0)return W;return X(W,...P)}function F(N,W,P){if(!P)P=Error;class I extends P{constructor(...x){super(U(N,W,x))}toString(){return`${this.name} [${N}]: ${this.message}`}}Oq.defineProperties(I.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),I.prototype.code=N,I.prototype[K]=!0,z[N]=I}function M(N){const W=$+N.name;return Oq.defineProperty(N,"name",{value:W}),N}function j(N,W){if(N&&W&&N!==W){if(Array.isArray(W.errors))return W.errors.push(N),W;const P=new Z([W,N],W.message);return P.code=W.code,P}return N||W}var L=class extends Error{constructor(N="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",W);super(N,W);this.code="ABORT_ERR",this.name="AbortError"}};F("ERR_ASSERTION","%s",Error),F("ERR_INVALID_ARG_TYPE",(N,W,P)=>{if(V(typeof N==="string","'name' must be a string"),!Array.isArray(W))W=[W];let I="The ";if(N.endsWith(" argument"))I+=`${N} `;else I+=`"${N}" ${N.includes(".")?"property":"argument"} `;I+="must be ";const x=[],T=[],A=[];for(let C of W)if(V(typeof C==="string","All expected entries have to be of type string"),B.includes(C))x.push(C.toLowerCase());else if(Y.test(C))T.push(C);else V(C!=="object",'The value "object" should be written as "Object"'),A.push(C);if(T.length>0){const C=x.indexOf("object");if(C!==-1)x.splice(x,C,1),T.push("Object")}if(x.length>0){switch(x.length){case 1:I+=`of type ${x[0]}`;break;case 2:I+=`one of type ${x[0]} or ${x[1]}`;break;default:{const C=x.pop();I+=`one of type ${x.join(", ")}, or ${C}`}}if(T.length>0||A.length>0)I+=" or "}if(T.length>0){switch(T.length){case 1:I+=`an instance of ${T[0]}`;break;case 2:I+=`an instance of ${T[0]} or ${T[1]}`;break;default:{const C=T.pop();I+=`an instance of ${T.join(", ")}, or ${C}`}}if(A.length>0)I+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])I+="an ";I+=`${A[0]}`;break;case 2:I+=`one of ${A[0]} or ${A[1]}`;break;default:{const C=A.pop();I+=`one of ${A.join(", ")}, or ${C}`}}if(P==null)I+=`. Received ${P}`;else if(typeof P==="function"&&P.name)I+=`. Received function ${P.name}`;else if(typeof P==="object"){var O;if((O=P.constructor)!==null&&O!==void 0&&O.name)I+=`. Received an instance of ${P.constructor.name}`;else{const C=J(P,{depth:-1});I+=`. Received ${C}`}}else{let C=J(P,{colors:!1});if(C.length>25)C=`${C.slice(0,25)}...`;I+=`. Received type ${typeof P} (${C})`}return I},TypeError),F("ERR_INVALID_ARG_VALUE",(N,W,P="is invalid")=>{let I=J(W);if(I.length>128)I=I.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${P}. Received ${I}`},TypeError),F("ERR_INVALID_RETURN_VALUE",(N,W,P)=>{var I;const x=P!==null&&P!==void 0&&(I=P.constructor)!==null&&I!==void 0&&I.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${N} to be returned from the "${W}" function but got ${x}.`},TypeError),F("ERR_MISSING_ARGS",(...N)=>{V(N.length>0,"At least one arg needs to be specified");let W;const P=N.length;switch(N=(Array.isArray(N)?N:[N]).map((I)=>`"${I}"`).join(" or "),P){case 1:W+=`The ${N[0]} argument`;break;case 2:W+=`The ${N[0]} and ${N[1]} arguments`;break;default:{const I=N.pop();W+=`The ${N.join(", ")}, and ${I} arguments`}break}return`${W} must be specified`},TypeError),F("ERR_OUT_OF_RANGE",(N,W,P)=>{V(W,'Missing "range" argument');let I;if(Number.isInteger(P)&&Math.abs(P)>4294967296)I=G(String(P));else if(typeof P==="bigint"){if(I=String(P),P>2n**32n||P<-(2n**32n))I=G(I);I+="n"}else I=J(P);return`The value of "${N}" is out of range. It must be ${W}. Received ${I}`},RangeError),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),F("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),F("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),F("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),F("ERR_STREAM_WRITE_AFTER_END","write after end",Error),F("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Q.exports={AbortError:L,aggregateTwoErrors:M(j),hideStackFrames:M,codes:z}}}),aq=cq({"node_modules/readable-stream/lib/internal/validators.js"(q,Q){var{ArrayIsArray:X,ArrayPrototypeIncludes:J,ArrayPrototypeJoin:H,ArrayPrototypeMap:Z,NumberIsInteger:K,NumberMAX_SAFE_INTEGER:B,NumberMIN_SAFE_INTEGER:Y,NumberParseInt:$,RegExpPrototypeTest:z,String:V,StringPrototypeToUpperCase:G,StringPrototypeTrim:U}=Dq(),{hideStackFrames:F,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:j,ERR_INVALID_ARG_VALUE:L,ERR_OUT_OF_RANGE:N,ERR_UNKNOWN_SIGNAL:W}}=sq(),{normalizeEncoding:P}=_q(),{isAsyncFunction:I,isArrayBufferView:x}=_q().types,T={};function A(i){return i===(i|0)}function O(i){return i===i>>>0}var C=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function w(i,n,o){if(typeof i==="undefined")i=o;if(typeof i==="string"){if(!z(C,i))throw new L(n,i,E);i=$(i,8)}return _(i,n,0,4294967295),i}var D=F((i,n,o=Y,s=B)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!K(i))throw new N(n,"an integer",i);if(i<o||i>s)throw new N(n,`>= ${o} && <= ${s}`,i)}),_=F((i,n,o=-2147483648,s=2147483647)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!A(i)){if(!K(i))throw new N(n,"an integer",i);throw new N(n,`>= ${o} && <= ${s}`,i)}if(i<o||i>s)throw new N(n,`>= ${o} && <= ${s}`,i)}),v=F((i,n,o)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!O(i)){if(!K(i))throw new N(n,"an integer",i);throw new N(n,`>= ${o?1:0} && < 4294967296`,i)}if(o&&i===0)throw new N(n,">= 1 && < 4294967296",i)});function R(i,n){if(typeof i!=="string")throw new j(n,"string",i)}function g(i,n){if(typeof i!=="number")throw new j(n,"number",i)}var S=F((i,n,o)=>{if(!J(o,i)){const a="must be one of: "+H(Z(o,(r)=>typeof r==="string"?`'${r}'`:V(r)),", ");throw new L(n,i,a)}});function k(i,n){if(typeof i!=="boolean")throw new j(n,"boolean",i)}var f=F((i,n,o)=>{const s=o==null,a=s?!1:o.allowArray,r=s?!1:o.allowFunction;if(!(s?!1:o.nullable)&&i===null||!a&&X(i)||typeof i!=="object"&&(!r||typeof i!=="function"))throw new j(n,"Object",i)}),y=F((i,n,o=0)=>{if(!X(i))throw new j(n,"Array",i);if(i.length<o){const s=`must be longer than ${o}`;throw new L(n,i,s)}});function h(i,n="signal"){if(R(i,n),T[i]===void 0){if(T[G(i)]!==void 0)throw new W(i+" (signals must use all capital letters)");throw new W(i)}}var p=F((i,n="buffer")=>{if(!x(i))throw new j(n,["Buffer","TypedArray","DataView"],i)});function u(i,n){const o=P(n),s=i.length;if(o==="hex"&&s%2!==0)throw new L("encoding",n,`is invalid for data of length ${s}`)}function m(i,n="Port",o=!0){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&U(i).length===0||+i!==+i>>>0||i>65535||i===0&&!o)throw new M(n,i,o);return i|0}var b=F((i,n)=>{if(i!==void 0&&(i===null||typeof i!=="object"||!("aborted"in i)))throw new j(n,"AbortSignal",i)}),c=F((i,n)=>{if(typeof i!=="function")throw new j(n,"Function",i)}),d=F((i,n)=>{if(typeof i!=="function"||I(i))throw new j(n,"Function",i)}),l=F((i,n)=>{if(i!==void 0)throw new j(n,"undefined",i)});Q.exports={isInt32:A,isUint32:O,parseFileMode:w,validateArray:y,validateBoolean:k,validateBuffer:p,validateEncoding:u,validateFunction:c,validateInt32:_,validateInteger:D,validateNumber:g,validateObject:f,validateOneOf:S,validatePlainFunction:d,validatePort:m,validateSignalName:h,validateString:R,validateUint32:v,validateUndefined:l,validateAbortSignal:b}}}),rq=cq({"node_modules/readable-stream/lib/internal/streams/utils.js"(q,Q){var{Symbol:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),Z=X("kDestroyed"),K=X("kIsErrored"),B=X("kIsReadable"),Y=X("kIsDisturbed");function $(v,R=!1){var g;return!!(v&&typeof v.pipe==="function"&&typeof v.on==="function"&&(!R||typeof v.pause==="function"&&typeof v.resume==="function")&&(!v._writableState||((g=v._readableState)===null||g===void 0?void 0:g.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var R;return!!(v&&typeof v.write==="function"&&typeof v.on==="function"&&(!v._readableState||((R=v._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function V(v){return!!(v&&typeof v.pipe==="function"&&v._readableState&&typeof v.on==="function"&&typeof v.write==="function")}function G(v){return v&&(v._readableState||v._writableState||typeof v.write==="function"&&typeof v.on==="function"||typeof v.pipe==="function"&&typeof v.on==="function")}function U(v,R){if(v==null)return!1;if(R===!0)return typeof v[J]==="function";if(R===!1)return typeof v[H]==="function";return typeof v[J]==="function"||typeof v[H]==="function"}function F(v){if(!G(v))return null;const{_writableState:R,_readableState:g}=v,S=R||g;return!!(v.destroyed||v[Z]||S!==null&&S!==void 0&&S.destroyed)}function M(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;const R=v._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function j(v,R){if(!z(v))return null;if(v.writableFinished===!0)return!0;const g=v._writableState;if(g!==null&&g!==void 0&&g.errored)return!1;if(typeof(g===null||g===void 0?void 0:g.finished)!=="boolean")return null;return!!(g.finished||R===!1&&g.ended===!0&&g.length===0)}function L(v){if(!$(v))return null;if(v.readableEnded===!0)return!0;const R=v._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function N(v,R){if(!$(v))return null;const g=v._readableState;if(g!==null&&g!==void 0&&g.errored)return!1;if(typeof(g===null||g===void 0?void 0:g.endEmitted)!=="boolean")return null;return!!(g.endEmitted||R===!1&&g.ended===!0&&g.length===0)}function W(v){if(v&&v[B]!=null)return v[B];if(typeof(v===null||v===void 0?void 0:v.readable)!=="boolean")return null;if(F(v))return!1;return $(v)&&v.readable&&!N(v)}function P(v){if(typeof(v===null||v===void 0?void 0:v.writable)!=="boolean")return null;if(F(v))return!1;return z(v)&&v.writable&&!M(v)}function I(v,R){if(!G(v))return null;if(F(v))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&W(v))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&P(v))return!1;return!0}function x(v){var R,g;if(!G(v))return null;if(v.writableErrored)return v.writableErrored;return(R=(g=v._writableState)===null||g===void 0?void 0:g.errored)!==null&&R!==void 0?R:null}function T(v){var R,g;if(!G(v))return null;if(v.readableErrored)return v.readableErrored;return(R=(g=v._readableState)===null||g===void 0?void 0:g.errored)!==null&&R!==void 0?R:null}function A(v){if(!G(v))return null;if(typeof v.closed==="boolean")return v.closed;const{_writableState:R,_readableState:g}=v;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(g===null||g===void 0?void 0:g.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(g===null||g===void 0?void 0:g.closed);if(typeof v._closed==="boolean"&&O(v))return v._closed;return null}function O(v){return typeof v._closed==="boolean"&&typeof v._defaultKeepAlive==="boolean"&&typeof v._removedConnection==="boolean"&&typeof v._removedContLen==="boolean"}function C(v){return typeof v._sent100==="boolean"&&O(v)}function E(v){var R;return typeof v._consuming==="boolean"&&typeof v._dumped==="boolean"&&((R=v.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function w(v){if(!G(v))return null;const{_writableState:R,_readableState:g}=v,S=R||g;return!S&&C(v)||!!(S&&S.autoDestroy&&S.emitClose&&S.closed===!1)}function D(v){var R;return!!(v&&((R=v[Y])!==null&&R!==void 0?R:v.readableDidRead||v.readableAborted))}function _(v){var R,g,S,k,f,y,h,p,u,m;return!!(v&&((R=(g=(S=(k=(f=(y=v[K])!==null&&y!==void 0?y:v.readableErrored)!==null&&f!==void 0?f:v.writableErrored)!==null&&k!==void 0?k:(h=v._readableState)===null||h===void 0?void 0:h.errorEmitted)!==null&&S!==void 0?S:(p=v._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&g!==void 0?g:(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&R!==void 0?R:(m=v._writableState)===null||m===void 0?void 0:m.errored))}Q.exports={kDestroyed:Z,isDisturbed:D,kIsDisturbed:Y,isErrored:_,kIsErrored:K,isReadable:W,kIsReadable:B,isClosed:A,isDestroyed:F,isDuplexNodeStream:V,isFinished:I,isIterable:U,isReadableNodeStream:$,isReadableEnded:L,isReadableFinished:N,isReadableErrored:T,isNodeStream:G,isWritable:P,isWritableNodeStream:z,isWritableEnded:M,isWritableFinished:j,isWritableErrored:x,isServerRequest:E,isServerResponse:C,willEmitClose:w}}}),tq=cq({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(q,Q){var{AbortError:X,codes:J}=sq(),{ERR_INVALID_ARG_TYPE:H,ERR_STREAM_PREMATURE_CLOSE:Z}=J,{once:K}=_q(),{validateAbortSignal:B,validateFunction:Y,validateObject:$}=aq(),{Promise:z}=Dq(),{isClosed:V,isReadable:G,isReadableNodeStream:U,isReadableFinished:F,isReadableErrored:M,isWritable:j,isWritableNodeStream:L,isWritableFinished:N,isWritableErrored:W,isNodeStream:P,willEmitClose:I}=rq();function x(C){return C.setHeader&&typeof C.abort==="function"}var T=()=>{};function A(C,E,w){var D,_;if(arguments.length===2)w=E,E={};else if(E==null)E={};else $(E,"options");Y(w,"callback"),B(E.signal,"options.signal"),w=K(w);const v=(D=E.readable)!==null&&D!==void 0?D:U(C),R=(_=E.writable)!==null&&_!==void 0?_:L(C);if(!P(C))throw new H("stream","Stream",C);const{_writableState:g,_readableState:S}=C,k=()=>{if(!C.writable)h()};let f=I(C)&&U(C)===v&&L(C)===R,y=N(C,!1);const h=()=>{if(y=!0,C.destroyed)f=!1;if(f&&(!C.readable||v))return;if(!v||p)w.call(C)};let p=F(C,!1);const u=()=>{if(p=!0,C.destroyed)f=!1;if(f&&(!C.writable||R))return;if(!R||y)w.call(C)},m=(i)=>{w.call(C,i)};let b=V(C);const c=()=>{b=!0;const i=W(C)||M(C);if(i&&typeof i!=="boolean")return w.call(C,i);if(v&&!p&&U(C,!0)){if(!F(C,!1))return w.call(C,new Z)}if(R&&!y){if(!N(C,!1))return w.call(C,new Z)}w.call(C)},d=()=>{C.req.on("finish",h)};if(x(C)){if(C.on("complete",h),!f)C.on("abort",c);if(C.req)d();else C.on("request",d)}else if(R&&!g)C.on("end",k),C.on("close",k);if(!f&&typeof C.aborted==="boolean")C.on("aborted",c);if(C.on("end",u),C.on("finish",h),E.error!==!1)C.on("error",m);if(C.on("close",c),b)Aq(c);else if(g!==null&&g!==void 0&&g.errorEmitted||S!==null&&S!==void 0&&S.errorEmitted){if(!f)Aq(c)}else if(!v&&(!f||G(C))&&(y||j(C)===!1))Aq(c);else if(!R&&(!f||j(C))&&(p||G(C)===!1))Aq(c);else if(S&&C.req&&C.aborted)Aq(c);const l=()=>{if(w=T,C.removeListener("aborted",c),C.removeListener("complete",h),C.removeListener("abort",c),C.removeListener("request",d),C.req)C.req.removeListener("finish",h);C.removeListener("end",k),C.removeListener("close",k),C.removeListener("finish",h),C.removeListener("end",u),C.removeListener("error",m),C.removeListener("close",c)};if(E.signal&&!b){const i=()=>{const n=w;l(),n.call(C,new X(void 0,{cause:E.signal.reason}))};if(E.signal.aborted)Aq(i);else{const n=w;w=K((...o)=>{E.signal.removeEventListener("abort",i),n.apply(C,o)}),E.signal.addEventListener("abort",i)}}return l}function O(C,E){return new z((w,D)=>{A(C,E,(_)=>{if(_)D(_);else w()})})}Q.exports=A,Q.exports.finished=O}}),eq=cq({"node_modules/readable-stream/lib/internal/streams/operators.js"(q,Q){var X=globalThis.AbortController||Eq("abort-controller").AbortController,{codes:{ERR_INVALID_ARG_TYPE:J,ERR_MISSING_ARGS:H,ERR_OUT_OF_RANGE:Z},AbortError:K}=sq(),{validateAbortSignal:B,validateInteger:Y,validateObject:$}=aq(),z=Dq().Symbol("kWeak"),{finished:V}=tq(),{ArrayPrototypePush:G,MathFloor:U,Number:F,NumberIsNaN:M,Promise:j,PromiseReject:L,PromisePrototypeCatch:N,Symbol:W}=Dq(),P=W("kEmpty"),I=W("kEof");function x(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");let h=1;if((y===null||y===void 0?void 0:y.concurrency)!=null)h=U(y.concurrency);return Y(h,"concurrency",1),async function*p(){var u,m;const b=new X,c=this,d=[],l=b.signal,i={signal:l},n=()=>b.abort();if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)n();y===null||y===void 0||(m=y.signal)===null||m===void 0||m.addEventListener("abort",n);let o,s,a=!1;function r(){a=!0}async function t(){try{for await(let Qq of c){var e;if(a)return;if(l.aborted)throw new K;try{Qq=f(Qq,i)}catch(Xq){Qq=L(Xq)}if(Qq===P)continue;if(typeof((e=Qq)===null||e===void 0?void 0:e.catch)==="function")Qq.catch(r);if(d.push(Qq),o)o(),o=null;if(!a&&d.length&&d.length>=h)await new j((Xq)=>{s=Xq})}d.push(I)}catch(Qq){const Xq=L(Qq);N(Xq,r),d.push(Xq)}finally{var qq;if(a=!0,o)o(),o=null;y===null||y===void 0||(qq=y.signal)===null||qq===void 0||qq.removeEventListener("abort",n)}}t();try{while(!0){while(d.length>0){const e=await d[0];if(e===I)return;if(l.aborted)throw new K;if(e!==P)yield e;if(d.shift(),s)s(),s=null}await new j((e)=>{o=e})}}finally{if(b.abort(),a=!0,s)s(),s=null}}.call(this)}function T(f=void 0){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)B(f.signal,"options.signal");return async function*y(){let h=0;for await(let u of this){var p;if(f!==null&&f!==void 0&&(p=f.signal)!==null&&p!==void 0&&p.aborted)throw new K({cause:f.signal.reason});yield[h++,u]}}.call(this)}async function A(f,y=void 0){for await(let h of w.call(this,f,y))return!0;return!1}async function O(f,y=void 0){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);return!await A.call(this,async(...h)=>{return!await f(...h)},y)}async function C(f,y){for await(let h of w.call(this,f,y))return h;return}async function E(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){return await f(p,u),P}for await(let p of x.call(this,h,y));}function w(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){if(await f(p,u))return p;return P}return x.call(this,h,y)}var D=class extends H{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function _(f,y,h){var p;if(typeof f!=="function")throw new J("reducer",["Function","AsyncFunction"],f);if(h!=null)$(h,"options");if((h===null||h===void 0?void 0:h.signal)!=null)B(h.signal,"options.signal");let u=arguments.length>1;if(h!==null&&h!==void 0&&(p=h.signal)!==null&&p!==void 0&&p.aborted){const l=new K(void 0,{cause:h.signal.reason});throw this.once("error",()=>{}),await V(this.destroy(l)),l}const m=new X,b=m.signal;if(h!==null&&h!==void 0&&h.signal){const l={once:!0,[z]:this};h.signal.addEventListener("abort",()=>m.abort(),l)}let c=!1;try{for await(let l of this){var d;if(c=!0,h!==null&&h!==void 0&&(d=h.signal)!==null&&d!==void 0&&d.aborted)throw new K;if(!u)y=l,u=!0;else y=await f(y,l,{signal:b})}if(!c&&!u)throw new D}finally{m.abort()}return y}async function v(f){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)B(f.signal,"options.signal");const y=[];for await(let p of this){var h;if(f!==null&&f!==void 0&&(h=f.signal)!==null&&h!==void 0&&h.aborted)throw new K(void 0,{cause:f.signal.reason});G(y,p)}return y}function R(f,y){const h=x.call(this,f,y);return async function*p(){for await(let u of h)yield*u}.call(this)}function g(f){if(f=F(f),M(f))return 0;if(f<0)throw new Z("number",">= 0",f);return f}function S(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");return f=g(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new K;for await(let m of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new K;if(f--<=0)yield m}}.call(this)}function k(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");return f=g(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new K;for await(let m of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new K;if(f-- >0)yield m;else return}}.call(this)}Q.exports.streamReturningOperators={asIndexedPairs:T,drop:S,filter:w,flatMap:R,map:x,take:k},Q.exports.promiseReturningOperators={every:O,forEach:E,reduce:_,toArray:v,some:A,find:C}}}),qQ=cq({"node_modules/readable-stream/lib/internal/streams/destroy.js"(q,Q){var{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:J},AbortError:H}=sq(),{Symbol:Z}=Dq(),{kDestroyed:K,isDestroyed:B,isFinished:Y,isServerRequest:$}=rq(),z="#kDestroy",V="#kConstruct";function G(E,w,D){if(E){if(E.stack,w&&!w.errored)w.errored=E;if(D&&!D.errored)D.errored=E}}function U(E,w){const D=this._readableState,_=this._writableState,v=_||D;if(_&&_.destroyed||D&&D.destroyed){if(typeof w==="function")w();return this}if(G(E,_,D),_)_.destroyed=!0;if(D)D.destroyed=!0;if(!v.constructed)this.once(z,(R)=>{F(this,X(R,E),w)});else F(this,E,w);return this}function F(E,w,D){let _=!1;function v(R){if(_)return;_=!0;const{_readableState:g,_writableState:S}=E;if(G(R,S,g),S)S.closed=!0;if(g)g.closed=!0;if(typeof D==="function")D(R);if(R)Aq(M,E,R);else Aq(j,E)}try{E._destroy(w||null,v)}catch(R){v(R)}}function M(E,w){L(E,w),j(E)}function j(E){const{_readableState:w,_writableState:D}=E;if(D)D.closeEmitted=!0;if(w)w.closeEmitted=!0;if(D&&D.emitClose||w&&w.emitClose)E.emit("close")}function L(E,w){const D=E?._readableState,_=E?._writableState;if(_?.errorEmitted||D?.errorEmitted)return;if(_)_.errorEmitted=!0;if(D)D.errorEmitted=!0;E?.emit?.("error",w)}function N(){const E=this._readableState,w=this._writableState;if(E)E.constructed=!0,E.closed=!1,E.closeEmitted=!1,E.destroyed=!1,E.errored=null,E.errorEmitted=!1,E.reading=!1,E.ended=E.readable===!1,E.endEmitted=E.readable===!1;if(w)w.constructed=!0,w.destroyed=!1,w.closed=!1,w.closeEmitted=!1,w.errored=null,w.errorEmitted=!1,w.finalCalled=!1,w.prefinished=!1,w.ended=w.writable===!1,w.ending=w.writable===!1,w.finished=w.writable===!1}function W(E,w,D){const _=E?._readableState,v=E?._writableState;if(v&&v.destroyed||_&&_.destroyed)return this;if(_&&_.autoDestroy||v&&v.autoDestroy)E.destroy(w);else if(w){if(Error.captureStackTrace(w),v&&!v.errored)v.errored=w;if(_&&!_.errored)_.errored=w;if(D)Aq(L,E,w);else L(E,w)}}function P(E,w){if(typeof E._construct!=="function")return;const{_readableState:D,_writableState:_}=E;if(D)D.constructed=!1;if(_)_.constructed=!1;if(E.once(V,w),E.listenerCount(V)>1)return;Aq(I,E)}function I(E){let w=!1;function D(_){if(w){W(E,_!==null&&_!==void 0?_:new J);return}w=!0;const{_readableState:v,_writableState:R}=E,g=R||v;if(v)v.constructed=!0;if(R)R.constructed=!0;if(g.destroyed)E.emit(z,_);else if(_)W(E,_,!0);else Aq(x,E)}try{E._construct(D)}catch(_){D(_)}}function x(E){E.emit(V)}function T(E){return E&&E.setHeader&&typeof E.abort==="function"}function A(E){E.emit("close")}function O(E,w){E.emit("error",w),Aq(A,E)}function C(E,w){if(!E||B(E))return;if(!w&&!Y(E))w=new H;if($(E))E.socket=null,E.destroy(w);else if(T(E))E.abort();else if(T(E.req))E.req.abort();else if(typeof E.destroy==="function")E.destroy(w);else if(typeof E.close==="function")E.close();else if(w)Aq(O,E);else Aq(A,E);if(!E.destroyed)E[K]=!0}Q.exports={construct:P,destroyer:C,destroy:U,undestroy:N,errorOrDestroy:W}}}),QQ=cq({"node_modules/readable-stream/lib/internal/streams/legacy.js"(q,Q){var{ArrayIsArray:X,ObjectSetPrototypeOf:J}=Dq(),{EventEmitter:H}=Eq("bun:events_native"),Z;if(Sq)Z=wq;else Z=H;function K(Y){if(!(this instanceof K))return new K(Y);Z.call(this,Y)}J(K.prototype,Z.prototype),J(K,Z),K.prototype.pipe=function(Y,$){const z=this;function V(N){if(Y.writable&&Y.write(N)===!1&&z.pause)z.pause()}z.on("data",V);function G(){if(z.readable&&z.resume)z.resume()}if(Y.on("drain",G),!Y._isStdio&&(!$||$.end!==!1))z.on("end",F),z.on("close",M);let U=!1;function F(){if(U)return;U=!0,Y.end()}function M(){if(U)return;if(U=!0,typeof Y.destroy==="function")Y.destroy()}function j(N){if(L(),Z.listenerCount(this,"error")===0)this.emit("error",N)}B(z,"error",j),B(Y,"error",j);function L(){z.removeListener("data",V),Y.removeListener("drain",G),z.removeListener("end",F),z.removeListener("close",M),z.removeListener("error",j),Y.removeListener("error",j),z.removeListener("end",L),z.removeListener("close",L),Y.removeListener("close",L)}return z.on("end",L),z.on("close",L),Y.on("close",L),Y.emit("pipe",z),Y};function B(Y,$,z){if(typeof Y.prependListener==="function")return Y.prependListener($,z);if(!Y._events||!Y._events[$])Y.on($,z);else if(X(Y._events[$]))Y._events[$].unshift(z);else Y._events[$]=[z,Y._events[$]]}Q.exports={Stream:K,prependListener:B}}}),XQ=cq({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(q,Q){var{AbortError:X,codes:J}=sq(),H=tq(),{ERR_INVALID_ARG_TYPE:Z}=J,K=(Y,$)=>{if(typeof Y!=="object"||!("aborted"in Y))throw new Z($,"AbortSignal",Y)};function B(Y){return!!(Y&&typeof Y.pipe==="function")}Q.exports.addAbortSignal=function Y($,z){if(K($,"signal"),!B(z))throw new Z("stream","stream.Stream",z);return Q.exports.addAbortSignalNoValidate($,z)},Q.exports.addAbortSignalNoValidate=function(Y,$){if(typeof Y!=="object"||!("aborted"in Y))return $;const z=()=>{$.destroy(new X(void 0,{cause:Y.reason}))};if(Y.aborted)z();else Y.addEventListener("abort",z),H($,()=>Y.removeEventListener("abort",z));return $}}}),JQ=cq({"node_modules/readable-stream/lib/internal/streams/state.js"(q,Q){var{MathFloor:X,NumberIsInteger:J}=Dq(),{ERR_INVALID_ARG_VALUE:H}=sq().codes;function Z(Y,$,z){return Y.highWaterMark!=null?Y.highWaterMark:$?Y[z]:null}function K(Y){return Y?16:16384}function B(Y,$,z,V){const G=Z($,V,z);if(G!=null){if(!J(G)||G<0){const U=V?`options.${z}`:"options.highWaterMark";throw new H(U,G)}return X(G)}return K(Y.objectMode)}Q.exports={getHighWaterMark:B,getDefaultHighWaterMark:K}}}),HQ=cq({"node_modules/readable-stream/lib/internal/streams/from.js"(q,Q){var{PromisePrototypeThen:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),{ERR_INVALID_ARG_TYPE:Z,ERR_STREAM_NULL_VALUES:K}=sq().codes;function B(Y,$,z){let V;if(typeof $==="string"||$ instanceof Buffer)return new Y({objectMode:!0,...z,read(){this.push($),this.push(null)}});let G;if($&&$[J])G=!0,V=$[J]();else if($&&$[H])G=!1,V=$[H]();else throw new Z("iterable",["Iterable"],$);const U=new Y({objectMode:!0,highWaterMark:1,...z});let F=!1;U._read=function(){if(!F)F=!0,j()},U._destroy=function(L,N){X(M(L),()=>Aq(N,L),(W)=>Aq(N,W||L))};async function M(L){const N=L!==void 0&&L!==null,W=typeof V.throw==="function";if(N&&W){const{value:P,done:I}=await V.throw(L);if(await P,I)return}if(typeof V.return==="function"){const{value:P}=await V.return();await P}}async function j(){for(;;){try{const{value:L,done:N}=G?await V.next():V.next();if(N)U.push(null);else{const W=L&&typeof L.then==="function"?await L:L;if(W===null)throw F=!1,new K;else if(U.push(W))continue;else F=!1}}catch(L){U.destroy(L)}break}}return U}Q.exports=B}}),ZQ,KQ=cq({"node_modules/readable-stream/lib/internal/streams/readable.js"(q,Q){var{ArrayPrototypeIndexOf:X,NumberIsInteger:J,NumberIsNaN:H,NumberParseInt:Z,ObjectDefineProperties:K,ObjectKeys:B,ObjectSetPrototypeOf:Y,Promise:$,SafeSet:z,SymbolAsyncIterator:V,Symbol:G}=Dq(),U=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{EventEmitter:F}=Eq("bun:events_native"),{Stream:M,prependListener:j}=QQ();function L(Xq){if(!(this instanceof L))return new L(Xq);const Jq=this instanceof vq();if(this._readableState=new U(Xq,this,Jq),Xq){const{read:Hq,destroy:Zq,construct:Kq,signal:Bq}=Xq;if(typeof Hq==="function")this._read=Hq;if(typeof Zq==="function")this._destroy=Zq;if(typeof Kq==="function")this._construct=Kq;if(Bq&&!Jq)P(Bq,this)}M.call(this,Xq),w.construct(this,()=>{if(this._readableState.needReadable)C(this,this._readableState)})}Y(L.prototype,M.prototype),Y(L,M),L.prototype.on=function(Xq,Jq){const Hq=M.prototype.on.call(this,Xq,Jq),Zq=this._readableState;if(Xq==="data")if(Zq.readableListening=this.listenerCount("readable")>0,Zq.flowing!==!1)xq&&Iq("in flowing mode!",this.__id),this.resume();else xq&&Iq("in readable mode!",this.__id);else if(Xq==="readable"){if(xq&&Iq("readable listener added!",this.__id),!Zq.endEmitted&&!Zq.readableListening){if(Zq.readableListening=Zq.needReadable=!0,Zq.flowing=!1,Zq.emittedReadable=!1,xq&&Iq("on readable - state.length, reading, emittedReadable",Zq.length,Zq.reading,Zq.emittedReadable,this.__id),Zq.length)E(this,Zq);else if(!Zq.reading)Aq(n,this)}else if(Zq.endEmitted)xq&&Iq("end already emitted...",this.__id)}return Hq};class N extends L{#q;#Q;#X;#J;constructor(Xq,Jq){const{objectMode:Hq,highWaterMark:Zq,encoding:Kq,signal:Bq}=Xq;super({objectMode:Hq,highWaterMark:Zq,encoding:Kq,signal:Bq});this.#X=[],this.#q=void 0,this.#J=Jq,this.#Q=!1}#H(){var Xq=this.#X,Jq=0,Hq=Xq.length;for(;Jq<Hq;Jq++){const Zq=Xq[Jq];if(Xq[Jq]=void 0,!this.push(Zq,void 0))return this.#X=Xq.slice(Jq+1),!0}if(Hq>0)this.#X=[];return!1}#Z(Xq){Xq.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){xq&&Iq("ReadableFromWeb _read()",this.__id);var Xq=this.#J,Jq=this.#q;if(Xq)Jq=this.#q=Xq.getReader(),this.#J=void 0;else if(this.#H())return;var Hq;try{do{var Zq=!1,Kq;const Bq=Jq.readMany();if(Cq(Bq)){if({done:Zq,value:Kq}=await Bq,this.#Q){this.#X.push(...Kq);return}}else({done:Zq,value:Kq}=Bq);if(Zq){this.#Z(Jq);return}if(!this.push(Kq[0])){this.#X=Kq.slice(1);return}for(let Yq=1,$q=Kq.length;Yq<$q;Yq++)if(!this.push(Kq[Yq])){this.#X=Kq.slice(Yq+1);return}}while(!this.#Q)}catch(Bq){Hq=Bq}finally{if(Hq)throw Hq}}_destroy(Xq,Jq){if(!this.#Q){var Hq=this.#q;if(Hq)this.#q=void 0,Hq.cancel(Xq).finally(()=>{this.#Q=!0,Jq(Xq)});return}try{Jq(Xq)}catch(Zq){globalThis.reportError(Zq)}}}function W(Xq,Jq={}){if(!dq(Xq))throw new _("readableStream","ReadableStream",Xq);k(Jq,"options");const{highWaterMark:Hq,encoding:Zq,objectMode:Kq=!1,signal:Bq}=Jq;if(Zq!==void 0&&!Buffer.isEncoding(Zq))throw new oq(Zq,"options.encoding");return lq(Kq,"options.objectMode"),WQ(L,Xq,Jq)||new N({highWaterMark:Hq,encoding:Zq,objectMode:Kq,signal:Bq},Xq)}Q.exports=L,ZQ=N;var{addAbortSignal:P}=XQ(),I=tq();const{maybeReadMore:x,resume:T,emitReadable:A,onEofChunk:O}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function C(Xq,Jq){process.nextTick(x,Xq,Jq)}function E(Xq,Jq){xq&&Iq("NativeReadable - emitReadable",Xq.__id),A(Xq,Jq)}var w=qQ(),{aggregateTwoErrors:D,codes:{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:g,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:S}}=sq(),{validateObject:k}=aq(),{StringDecoder:f}=Eq("string_decoder"),y=HQ(),h=()=>{},{errorOrDestroy:p}=w;L.prototype.destroy=w.destroy,L.prototype._undestroy=w.undestroy,L.prototype._destroy=function(Xq,Jq){Jq(Xq)},L.prototype[F.captureRejectionSymbol]=function(Xq){this.destroy(Xq)},L.prototype.push=function(Xq,Jq){return u(this,Xq,Jq,!1)},L.prototype.unshift=function(Xq,Jq){return u(this,Xq,Jq,!0)};function u(Xq,Jq,Hq,Zq){xq&&Iq("readableAddChunk",Jq,Xq.__id);const Kq=Xq._readableState;let Bq;if(!Kq.objectMode){if(typeof Jq==="string"){if(Hq=Hq||Kq.defaultEncoding,Kq.encoding!==Hq)if(Zq&&Kq.encoding)Jq=Buffer.from(Jq,Hq).toString(Kq.encoding);else Jq=Buffer.from(Jq,Hq),Hq=""}else if(Jq instanceof Buffer)Hq="";else if(M._isUint8Array(Jq)){if(Zq||!Kq.decoder)Jq=M._uint8ArrayToBuffer(Jq);Hq=""}else if(Jq!=null)Bq=new _("chunk",["string","Buffer","Uint8Array"],Jq)}if(Bq)p(Xq,Bq);else if(Jq===null)Kq.reading=!1,O(Xq,Kq);else if(Kq.objectMode||Jq&&Jq.length>0)if(Zq)if(Kq.endEmitted)p(Xq,new S);else if(Kq.destroyed||Kq.errored)return!1;else m(Xq,Kq,Jq,!0);else if(Kq.ended)p(Xq,new g);else if(Kq.destroyed||Kq.errored)return!1;else if(Kq.reading=!1,Kq.decoder&&!Hq)if(Jq=Kq.decoder.write(Jq),Kq.objectMode||Jq.length!==0)m(Xq,Kq,Jq,!1);else C(Xq,Kq);else m(Xq,Kq,Jq,!1);else if(!Zq)Kq.reading=!1,C(Xq,Kq);return!Kq.ended&&(Kq.length<Kq.highWaterMark||Kq.length===0)}function m(Xq,Jq,Hq,Zq){if(xq&&Iq("adding chunk",Xq.__id),xq&&Iq("chunk",Hq.toString(),Xq.__id),Jq.flowing&&Jq.length===0&&!Jq.sync&&Xq.listenerCount("data")>0){if(Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;Jq.dataEmitted=!0,Xq.emit("data",Hq)}else{if(Jq.length+=Jq.objectMode?1:Hq.length,Zq)Jq.buffer.unshift(Hq);else Jq.buffer.push(Hq);if(xq&&Iq("needReadable @ addChunk",Jq.needReadable,Xq.__id),Jq.needReadable)E(Xq,Jq)}C(Xq,Jq)}L.prototype.isPaused=function(){const Xq=this._readableState;return Xq.paused===!0||Xq.flowing===!1},L.prototype.setEncoding=function(Xq){const Jq=new f(Xq);this._readableState.decoder=Jq,this._readableState.encoding=this._readableState.decoder.encoding;const Hq=this._readableState.buffer;let Zq="";for(let Kq=Hq.length;Kq>0;Kq--)Zq+=Jq.write(Hq.shift());if(Zq!=="")Hq.push(Zq);return this._readableState.length=Zq.length,this};var b=1073741824;function c(Xq){if(Xq>b)throw new R("size","<= 1GiB",Xq);else Xq--,Xq|=Xq>>>1,Xq|=Xq>>>2,Xq|=Xq>>>4,Xq|=Xq>>>8,Xq|=Xq>>>16,Xq++;return Xq}function d(Xq,Jq){if(Xq<=0||Jq.length===0&&Jq.ended)return 0;if(Jq.objectMode)return 1;if(H(Xq)){if(Jq.flowing&&Jq.length)return Jq.buffer.first().length;return Jq.length}if(Xq<=Jq.length)return Xq;return Jq.ended?Jq.length:0}L.prototype.read=function(Xq){if(xq&&Iq("read - n =",Xq,this.__id),!J(Xq))Xq=Z(Xq,10);const Jq=this._readableState,Hq=Xq;if(Xq>Jq.highWaterMark)Jq.highWaterMark=c(Xq);if(Xq!==0)Jq.emittedReadable=!1;if(Xq===0&&Jq.needReadable&&((Jq.highWaterMark!==0?Jq.length>=Jq.highWaterMark:Jq.length>0)||Jq.ended)){if(xq&&Iq("read: emitReadable or endReadable",Jq.length,Jq.ended,this.__id),Jq.length===0&&Jq.ended)r(this);else E(this,Jq);return null}if(Xq=d(Xq,Jq),Xq===0&&Jq.ended){if(xq&&Iq("read: calling endReadable if length 0 -- length, state.ended",Jq.length,Jq.ended,this.__id),Jq.length===0)r(this);return null}let Zq=Jq.needReadable;if(xq&&Iq("need readable",Zq,this.__id),Jq.length===0||Jq.length-Xq<Jq.highWaterMark)Zq=!0,xq&&Iq("length less than watermark",Zq,this.__id);if(Jq.ended||Jq.reading||Jq.destroyed||Jq.errored||!Jq.constructed)xq&&Iq("state.constructed?",Jq.constructed,this.__id),Zq=!1,xq&&Iq("reading, ended or constructing",Zq,this.__id);else if(Zq){if(xq&&Iq("do read",this.__id),Jq.reading=!0,Jq.sync=!0,Jq.length===0)Jq.needReadable=!0;try{var Kq=this._read(Jq.highWaterMark);if(Cq(Kq)){xq&&Iq("async _read",this.__id);const Yq=Bun.peek(Kq);if(xq&&Iq("peeked promise",Yq,this.__id),Yq!==Kq)Kq=Yq}if(Cq(Kq)&&Kq?.then&&Rq(Kq.then))xq&&Iq("async _read result.then setup",this.__id),Kq.then(h,function(Yq){p(this,Yq)})}catch(Yq){p(this,Yq)}if(Jq.sync=!1,!Jq.reading)Xq=d(Hq,Jq)}xq&&Iq("n @ fromList",Xq,this.__id);let Bq;if(Xq>0)Bq=a(Xq,Jq);else Bq=null;if(xq&&Iq("ret @ read",Bq,this.__id),Bq===null)Jq.needReadable=Jq.length<=Jq.highWaterMark,xq&&Iq("state.length while ret = null",Jq.length,this.__id),Xq=0;else if(Jq.length-=Xq,Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;if(Jq.length===0){if(!Jq.ended)Jq.needReadable=!0;if(Hq!==Xq&&Jq.ended)r(this)}if(Bq!==null&&!Jq.errorEmitted&&!Jq.closeEmitted)Jq.dataEmitted=!0,this.emit("data",Bq);return Bq},L.prototype._read=function(Xq){throw new v("_read()")},L.prototype.pipe=function(Xq,Jq){const Hq=this,Zq=this._readableState;if(Zq.pipes.length===1){if(!Zq.multiAwaitDrain)Zq.multiAwaitDrain=!0,Zq.awaitDrainWriters=new z(Zq.awaitDrainWriters?[Zq.awaitDrainWriters]:[])}Zq.pipes.push(Xq),xq&&Iq("pipe count=%d opts=%j",Zq.pipes.length,Jq,Hq.__id);const Bq=(!Jq||Jq.end!==!1)&&Xq!==process.stdout&&Xq!==process.stderr?$q:Nq;if(Zq.endEmitted)Aq(Bq);else Hq.once("end",Bq);Xq.on("unpipe",Yq);function Yq(Wq,Pq){if(xq&&Iq("onunpipe",Hq.__id),Wq===Hq){if(Pq&&Pq.hasUnpiped===!1)Pq.hasUnpiped=!0,Gq()}}function $q(){xq&&Iq("onend",Hq.__id),Xq.end()}let zq,Vq=!1;function Gq(){if(xq&&Iq("cleanup",Hq.__id),Xq.removeListener("close",jq),Xq.removeListener("finish",Lq),zq)Xq.removeListener("drain",zq);if(Xq.removeListener("error",Mq),Xq.removeListener("unpipe",Yq),Hq.removeListener("end",$q),Hq.removeListener("end",Nq),Hq.removeListener("data",Fq),Vq=!0,zq&&Zq.awaitDrainWriters&&(!Xq._writableState||Xq._writableState.needDrain))zq()}function Uq(){if(!Vq){if(Zq.pipes.length===1&&Zq.pipes[0]===Xq)xq&&Iq("false write response, pause",0,Hq.__id),Zq.awaitDrainWriters=Xq,Zq.multiAwaitDrain=!1;else if(Zq.pipes.length>1&&Zq.pipes.includes(Xq))xq&&Iq("false write response, pause",Zq.awaitDrainWriters.size,Hq.__id),Zq.awaitDrainWriters.add(Xq);Hq.pause()}if(!zq)zq=l(Hq,Xq),Xq.on("drain",zq)}Hq.on("data",Fq);function Fq(Wq){xq&&Iq("ondata",Hq.__id);const Pq=Xq.write(Wq);if(xq&&Iq("dest.write",Pq,Hq.__id),Pq===!1)Uq()}function Mq(Wq){if(Iq("onerror",Wq),Nq(),Xq.removeListener("error",Mq),Xq.listenerCount("error")===0){const Pq=Xq._writableState||Xq._readableState;if(Pq&&!Pq.errorEmitted)p(Xq,Wq);else Xq.emit("error",Wq)}}j(Xq,"error",Mq);function jq(){Xq.removeListener("finish",Lq),Nq()}Xq.once("close",jq);function Lq(){Iq("onfinish"),Xq.removeListener("close",jq),Nq()}Xq.once("finish",Lq);function Nq(){Iq("unpipe"),Hq.unpipe(Xq)}if(Xq.emit("pipe",Hq),Xq.writableNeedDrain===!0){if(Zq.flowing)Uq()}else if(!Zq.flowing)Iq("pipe resume"),Hq.resume();return Xq};function l(Xq,Jq){return function Hq(){const Zq=Xq._readableState;if(Zq.awaitDrainWriters===Jq)Iq("pipeOnDrain",1),Zq.awaitDrainWriters=null;else if(Zq.multiAwaitDrain)Iq("pipeOnDrain",Zq.awaitDrainWriters.size),Zq.awaitDrainWriters.delete(Jq);if((!Zq.awaitDrainWriters||Zq.awaitDrainWriters.size===0)&&Xq.listenerCount("data"))Xq.resume()}}L.prototype.unpipe=function(Xq){const Jq=this._readableState,Hq={hasUnpiped:!1};if(Jq.pipes.length===0)return this;if(!Xq){const Kq=Jq.pipes;Jq.pipes=[],this.pause();for(let Bq=0;Bq<Kq.length;Bq++)Kq[Bq].emit("unpipe",this,{hasUnpiped:!1});return this}const Zq=X(Jq.pipes,Xq);if(Zq===-1)return this;if(Jq.pipes.splice(Zq,1),Jq.pipes.length===0)this.pause();return Xq.emit("unpipe",this,Hq),this},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(Xq,Jq){const Hq=M.prototype.removeListener.call(this,Xq,Jq);if(Xq==="readable")Aq(i,this);return Hq},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(Xq){const Jq=M.prototype.removeAllListeners.apply(this,arguments);if(Xq==="readable"||Xq===void 0)Aq(i,this);return Jq};function i(Xq){const Jq=Xq._readableState;if(Jq.readableListening=Xq.listenerCount("readable")>0,Jq.resumeScheduled&&Jq.paused===!1)Jq.flowing=!0;else if(Xq.listenerCount("data")>0)Xq.resume();else if(!Jq.readableListening)Jq.flowing=null}function n(Xq){xq&&Iq("on readable nextTick, calling read(0)",Xq.__id),Xq.read(0)}L.prototype.resume=function(){const Xq=this._readableState;if(!Xq.flowing)xq&&Iq("resume",this.__id),Xq.flowing=!Xq.readableListening,T(this,Xq);return Xq.paused=!1,this},L.prototype.pause=function(){if(xq&&Iq("call pause flowing=%j",this._readableState.flowing,this.__id),this._readableState.flowing!==!1)xq&&Iq("pause",this.__id),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},L.prototype.wrap=function(Xq){let Jq=!1;Xq.on("data",(Zq)=>{if(!this.push(Zq)&&Xq.pause)Jq=!0,Xq.pause()}),Xq.on("end",()=>{this.push(null)}),Xq.on("error",(Zq)=>{p(this,Zq)}),Xq.on("close",()=>{this.destroy()}),Xq.on("destroy",()=>{this.destroy()}),this._read=()=>{if(Jq&&Xq.resume)Jq=!1,Xq.resume()};const Hq=B(Xq);for(let Zq=1;Zq<Hq.length;Zq++){const Kq=Hq[Zq];if(this[Kq]===void 0&&typeof Xq[Kq]==="function")this[Kq]=Xq[Kq].bind(Xq)}return this},L.prototype[V]=function(){return o(this)},L.prototype.iterator=function(Xq){if(Xq!==void 0)k(Xq,"options");return o(this,Xq)};function o(Xq,Jq){if(typeof Xq.read!=="function")Xq=L.wrap(Xq,{objectMode:!0});const Hq=s(Xq,Jq);return Hq.stream=Xq,Hq}async function*s(Xq,Jq){let Hq=h;function Zq(Yq){if(this===Xq)Hq(),Hq=h;else Hq=Yq}Xq.on("readable",Zq);let Kq;const Bq=I(Xq,{writable:!1},(Yq)=>{Kq=Yq?D(Kq,Yq):null,Hq(),Hq=h});try{while(!0){const Yq=Xq.destroyed?null:Xq.read();if(Yq!==null)yield Yq;else if(Kq)throw Kq;else if(Kq===null)return;else await new $(Zq)}}catch(Yq){throw Kq=D(Kq,Yq),Kq}finally{if((Kq||(Jq===null||Jq===void 0?void 0:Jq.destroyOnReturn)!==!1)&&(Kq===void 0||Xq._readableState.autoDestroy))w.destroyer(Xq,null);else Xq.off("readable",Zq),Bq()}}K(L.prototype,{readable:{get(){const Xq=this._readableState;return!!Xq&&Xq.readable!==!1&&!Xq.destroyed&&!Xq.errorEmitted&&!Xq.endEmitted},set(Xq){if(this._readableState)this._readableState.readable=!!Xq}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Xq){if(this._readableState)this._readableState.flowing=Xq}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Xq){if(!this._readableState)return;this._readableState.destroyed=Xq}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),L._fromList=a;function a(Xq,Jq){if(Jq.length===0)return null;let Hq;if(Jq.objectMode)Hq=Jq.buffer.shift();else if(!Xq||Xq>=Jq.length){if(Jq.decoder)Hq=Jq.buffer.join("");else if(Jq.buffer.length===1)Hq=Jq.buffer.first();else Hq=Jq.buffer.concat(Jq.length);Jq.buffer.clear()}else Hq=Jq.buffer.consume(Xq,Jq.decoder);return Hq}function r(Xq){const Jq=Xq._readableState;if(xq&&Iq("endEmitted @ endReadable",Jq.endEmitted,Xq.__id),!Jq.endEmitted)Jq.ended=!0,Aq(t,Jq,Xq)}function t(Xq,Jq){if(xq&&Iq("endReadableNT -- endEmitted, state.length",Xq.endEmitted,Xq.length,Jq.__id),!Xq.errored&&!Xq.closeEmitted&&!Xq.endEmitted&&Xq.length===0){if(Xq.endEmitted=!0,Jq.emit("end"),xq&&Iq("end emitted @ endReadableNT",Jq.__id),Jq.writable&&Jq.allowHalfOpen===!1)Aq(e,Jq);else if(Xq.autoDestroy){const Hq=Jq._writableState;if(!Hq||Hq.autoDestroy&&(Hq.finished||Hq.writable===!1))Jq.destroy()}}}function e(Xq){if(Xq.writable&&!Xq.writableEnded&&!Xq.destroyed)Xq.end()}L.from=function(Xq,Jq){return y(L,Xq,Jq)};var qq={newStreamReadableFromReadableStream:W};function Qq(){if(qq===void 0)qq={};return qq}L.fromWeb=function(Xq,Jq){return Qq().newStreamReadableFromReadableStream(Xq,Jq)},L.toWeb=function(Xq){return Qq().newReadableStreamFromStreamReadable(Xq)},L.wrap=function(Xq,Jq){var Hq,Zq;return new L({objectMode:(Hq=(Zq=Xq.readableObjectMode)!==null&&Zq!==void 0?Zq:Xq.objectMode)!==null&&Hq!==void 0?Hq:!0,...Jq,destroy(Kq,Bq){w.destroyer(Xq,Kq),Bq(Kq)}}).wrap(Xq)}}}),BQ=cq({"node_modules/readable-stream/lib/internal/streams/writable.js"(q,Q){var{ArrayPrototypeSlice:X,Error:J,FunctionPrototypeSymbolHasInstance:H,ObjectDefineProperty:Z,ObjectDefineProperties:K,ObjectSetPrototypeOf:B,StringPrototypeToLowerCase:Y,Symbol:$,SymbolHasInstance:z}=Dq(),{EventEmitter:V}=Eq("bun:events_native"),G=QQ().Stream,U=qQ(),{addAbortSignal:F}=XQ(),{getHighWaterMark:M,getDefaultHighWaterMark:j}=JQ(),{ERR_INVALID_ARG_TYPE:L,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:P,ERR_STREAM_DESTROYED:I,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:A,ERR_UNKNOWN_ENCODING:O}=sq().codes,{errorOrDestroy:C}=U;function E(s={}){const a=this instanceof vq();if(!a&&!H(E,this))return new E(s);if(this._writableState=new _(s,this,a),s){if(typeof s.write==="function")this._write=s.write;if(typeof s.writev==="function")this._writev=s.writev;if(typeof s.destroy==="function")this._destroy=s.destroy;if(typeof s.final==="function")this._final=s.final;if(typeof s.construct==="function")this._construct=s.construct;if(s.signal)F(s.signal,this)}G.call(this,s),U.construct(this,()=>{const r=this._writableState;if(!r.writing)u(this,r);d(this,r)})}B(E.prototype,G.prototype),B(E,G),Q.exports=E;function w(){}var D=$("kOnFinished");function _(s,a,r){if(typeof r!=="boolean")r=a instanceof vq();if(this.objectMode=!!(s&&s.objectMode),r)this.objectMode=this.objectMode||!!(s&&s.writableObjectMode);this.highWaterMark=s?M(this,s,"writableHighWaterMark",r):j(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const t=!!(s&&s.decodeStrings===!1);this.decodeStrings=!t,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=f.bind(void 0,a),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,v(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!s||s.emitClose!==!1,this.autoDestroy=!s||s.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function v(s){s.buffered=[],s.bufferedIndex=0,s.allBuffers=!0,s.allNoop=!0}_.prototype.getBuffer=function s(){return X(this.buffered,this.bufferedIndex)},Z(_.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),Z(E,z,{value:function(s){if(H(this,s))return!0;if(this!==E)return!1;return s&&s._writableState instanceof _}}),E.prototype.pipe=function(){C(this,new P)};function R(s,a,r,t){const e=s._writableState;if(typeof r==="function")t=r,r=e.defaultEncoding;else{if(!r)r=e.defaultEncoding;else if(r!=="buffer"&&!Buffer.isEncoding(r))throw new O(r);if(typeof t!=="function")t=w}if(a===null)throw new T;else if(!e.objectMode)if(typeof a==="string"){if(e.decodeStrings!==!1)a=Buffer.from(a,r),r="buffer"}else if(a instanceof Buffer)r="buffer";else if(G._isUint8Array(a))a=G._uint8ArrayToBuffer(a),r="buffer";else throw new L("chunk",["string","Buffer","Uint8Array"],a);let qq;if(e.ending)qq=new A;else if(e.destroyed)qq=new I("write");if(qq)return Aq(t,qq),C(s,qq,!0),qq;return e.pendingcb++,g(s,e,a,r,t)}E.prototype.write=function(s,a,r){return R(this,s,a,r)===!0},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){const s=this._writableState;if(s.corked){if(s.corked--,!s.writing)u(this,s)}},E.prototype.setDefaultEncoding=function s(a){if(typeof a==="string")a=Y(a);if(!Buffer.isEncoding(a))throw new O(a);return this._writableState.defaultEncoding=a,this};function g(s,a,r,t,e){const qq=a.objectMode?1:r.length;a.length+=qq;const Qq=a.length<a.highWaterMark;if(!Qq)a.needDrain=!0;if(a.writing||a.corked||a.errored||!a.constructed){if(a.buffered.push({chunk:r,encoding:t,callback:e}),a.allBuffers&&t!=="buffer")a.allBuffers=!1;if(a.allNoop&&e!==w)a.allNoop=!1}else a.writelen=qq,a.writecb=e,a.writing=!0,a.sync=!0,s._write(r,t,a.onwrite),a.sync=!1;return Qq&&!a.errored&&!a.destroyed}function S(s,a,r,t,e,qq,Qq){if(a.writelen=t,a.writecb=Qq,a.writing=!0,a.sync=!0,a.destroyed)a.onwrite(new I("write"));else if(r)s._writev(e,a.onwrite);else s._write(e,qq,a.onwrite);a.sync=!1}function k(s,a,r,t){--a.pendingcb,t(r),p(a),C(s,r)}function f(s,a){const r=s._writableState,t=r.sync,e=r.writecb;if(typeof e!=="function"){C(s,new W);return}if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,a){if(Error.captureStackTrace(a),!r.errored)r.errored=a;if(s._readableState&&!s._readableState.errored)s._readableState.errored=a;if(t)Aq(k,s,r,a,e);else k(s,r,a,e)}else{if(r.buffered.length>r.bufferedIndex)u(s,r);if(t)if(r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===e)r.afterWriteTickInfo.count++;else r.afterWriteTickInfo={count:1,cb:e,stream:s,state:r},Aq(y,r.afterWriteTickInfo);else h(s,r,1,e)}}function y({stream:s,state:a,count:r,cb:t}){return a.afterWriteTickInfo=null,h(s,a,r,t)}function h(s,a,r,t){if(!a.ending&&!s.destroyed&&a.length===0&&a.needDrain)a.needDrain=!1,s.emit("drain");while(r-- >0)a.pendingcb--,t();if(a.destroyed)p(a);d(s,a)}function p(s){if(s.writing)return;for(let e=s.bufferedIndex;e<s.buffered.length;++e){var a;const{chunk:qq,callback:Qq}=s.buffered[e],Xq=s.objectMode?1:qq.length;s.length-=Xq,Qq((a=s.errored)!==null&&a!==void 0?a:new I("write"))}const r=s[D].splice(0);for(let e=0;e<r.length;e++){var t;r[e]((t=s.errored)!==null&&t!==void 0?t:new I("end"))}v(s)}function u(s,a){if(a.corked||a.bufferProcessing||a.destroyed||!a.constructed)return;const{buffered:r,bufferedIndex:t,objectMode:e}=a,qq=r.length-t;if(!qq)return;let Qq=t;if(a.bufferProcessing=!0,qq>1&&s._writev){a.pendingcb-=qq-1;const Xq=a.allNoop?w:(Hq)=>{for(let Zq=Qq;Zq<r.length;++Zq)r[Zq].callback(Hq)},Jq=a.allNoop&&Qq===0?r:X(r,Qq);Jq.allBuffers=a.allBuffers,S(s,a,!0,a.length,Jq,"",Xq),v(a)}else{do{const{chunk:Xq,encoding:Jq,callback:Hq}=r[Qq];r[Qq++]=null;const Zq=e?1:Xq.length;S(s,a,!1,Zq,Xq,Jq,Hq)}while(Qq<r.length&&!a.writing);if(Qq===r.length)v(a);else if(Qq>256)r.splice(0,Qq),a.bufferedIndex=0;else a.bufferedIndex=Qq}a.bufferProcessing=!1}E.prototype._write=function(s,a,r){if(this._writev)this._writev([{chunk:s,encoding:a}],r);else throw new N("_write()")},E.prototype._writev=null,E.prototype.end=function(s,a,r,t=!1){const e=this._writableState;if(xq&&Iq("end",e,this.__id),typeof s==="function")r=s,s=null,a=null;else if(typeof a==="function")r=a,a=null;let qq;if(s!==null&&s!==void 0){let Qq;if(!t)Qq=R(this,s,a);else Qq=this.write(s,a);if(Qq instanceof J)qq=Qq}if(e.corked)e.corked=1,this.uncork();if(qq)this.emit("error",qq);else if(!e.errored&&!e.ending)e.ending=!0,d(this,e,!0),e.ended=!0;else if(e.finished)qq=new x("end");else if(e.destroyed)qq=new I("end");if(typeof r==="function")if(qq||e.finished)Aq(r,qq);else e[D].push(r);return this};function m(s,a){var r=s.ending&&!s.destroyed&&s.constructed&&s.length===0&&!s.errored&&s.buffered.length===0&&!s.finished&&!s.writing&&!s.errorEmitted&&!s.closeEmitted;return Iq("needFinish",r,a),r}function b(s,a){let r=!1;function t(e){if(r){C(s,e!==null&&e!==void 0?e:W());return}if(r=!0,a.pendingcb--,e){const qq=a[D].splice(0);for(let Qq=0;Qq<qq.length;Qq++)qq[Qq](e);C(s,e,a.sync)}else if(m(a))a.prefinished=!0,s.emit("prefinish"),a.pendingcb++,Aq(l,s,a)}a.sync=!0,a.pendingcb++;try{s._final(t)}catch(e){t(e)}a.sync=!1}function c(s,a){if(!a.prefinished&&!a.finalCalled)if(typeof s._final==="function"&&!a.destroyed)a.finalCalled=!0,b(s,a);else a.prefinished=!0,s.emit("prefinish")}function d(s,a,r){if(xq&&Iq("finishMaybe -- state, sync",a,r,s.__id),!m(a,s.__id))return;if(c(s,a),a.pendingcb===0){if(r)a.pendingcb++,Aq((t,e)=>{if(m(e))l(t,e);else e.pendingcb--},s,a);else if(m(a))a.pendingcb++,l(s,a)}}function l(s,a){a.pendingcb--,a.finished=!0;const r=a[D].splice(0);for(let t=0;t<r.length;t++)r[t]();if(s.emit("finish"),a.autoDestroy){const t=s._readableState;if(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))s.destroy()}}K(E.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(s){if(this._writableState)this._writableState.destroyed=s}},writable:{get(){const s=this._writableState;return!!s&&s.writable!==!1&&!s.destroyed&&!s.errored&&!s.ending&&!s.ended},set(s){if(this._writableState)this._writableState.writable=!!s}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const s=this._writableState;if(!s)return!1;return!s.destroyed&&!s.ending&&s.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var i=U.destroy;E.prototype.destroy=function(s,a){const r=this._writableState;if(!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length))Aq(p,r);return i.call(this,s,a),this},E.prototype._undestroy=U.undestroy,E.prototype._destroy=function(s,a){a(s)},E.prototype[V.captureRejectionSymbol]=function(s){this.destroy(s)};var n;function o(){if(n===void 0)n={};return n}E.fromWeb=function(s,a){return o().newStreamWritableFromWritableStream(s,a)},E.toWeb=function(s){return o().newWritableStreamFromStreamWritable(s)}}}),YQ=cq({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(q,Q){var X=Eq("buffer"),{isReadable:J,isWritable:H,isIterable:Z,isNodeStream:K,isReadableNodeStream:B,isWritableNodeStream:Y,isDuplexNodeStream:$}=rq(),z=tq(),{AbortError:V,codes:{ERR_INVALID_ARG_TYPE:G,ERR_INVALID_RETURN_VALUE:U}}=sq(),{destroyer:F}=qQ(),M=vq(),j=KQ(),{createDeferredPromise:L}=_q(),N=HQ(),W=globalThis.Blob||X.Blob,P=typeof W!=="undefined"?function C(E){return E instanceof W}:function C(E){return!1},I=globalThis.AbortController||Eq("abort-controller").AbortController,{FunctionPrototypeCall:x}=Dq();class T extends M{constructor(C){super(C);if((C===null||C===void 0?void 0:C.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((C===null||C===void 0?void 0:C.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}Q.exports=function C(E,w){if($(E))return E;if(B(E))return O({readable:E});if(Y(E))return O({writable:E});if(K(E))return O({writable:!1,readable:!1});if(typeof E==="function"){const{value:_,write:v,final:R,destroy:g}=A(E);if(Z(_))return N(T,_,{objectMode:!0,write:v,final:R,destroy:g});const S=_===null||_===void 0?void 0:_.then;if(typeof S==="function"){let k;const f=x(S,_,(y)=>{if(y!=null)throw new U("nully","body",y)},(y)=>{F(k,y)});return k=new T({objectMode:!0,readable:!1,write:v,final(y){R(async()=>{try{await f,Aq(y,null)}catch(h){Aq(y,h)}})},destroy:g})}throw new U("Iterable, AsyncIterable or AsyncFunction",w,_)}if(P(E))return C(E.arrayBuffer());if(Z(E))return N(T,E,{objectMode:!0,writable:!1});if(typeof(E===null||E===void 0?void 0:E.writable)==="object"||typeof(E===null||E===void 0?void 0:E.readable)==="object"){const _=E!==null&&E!==void 0&&E.readable?B(E===null||E===void 0?void 0:E.readable)?E===null||E===void 0?void 0:E.readable:C(E.readable):void 0,v=E!==null&&E!==void 0&&E.writable?Y(E===null||E===void 0?void 0:E.writable)?E===null||E===void 0?void 0:E.writable:C(E.writable):void 0;return O({readable:_,writable:v})}const D=E===null||E===void 0?void 0:E.then;if(typeof D==="function"){let _;return x(D,E,(v)=>{if(v!=null)_.push(v);_.push(null)},(v)=>{F(_,v)}),_=new T({objectMode:!0,writable:!1,read(){}})}throw new G(w,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function A(C){let{promise:E,resolve:w}=L();const D=new I,_=D.signal;return{value:C(async function*(){while(!0){const R=E;E=null;const{chunk:g,done:S,cb:k}=await R;if(Aq(k),S)return;if(_.aborted)throw new V(void 0,{cause:_.reason});({promise:E,resolve:w}=L()),yield g}}(),{signal:_}),write(R,g,S){const k=w;w=null,k({chunk:R,done:!1,cb:S})},final(R){const g=w;w=null,g({done:!0,cb:R})},destroy(R,g){D.abort(),g(R)}}}function O(C){const E=C.readable&&typeof C.readable.read!=="function"?j.wrap(C.readable):C.readable,w=C.writable;let D=!!J(E),_=!!H(w),v,R,g,S,k;function f(y){const h=S;if(S=null,h)h(y);else if(y)k.destroy(y);else if(!D&&!_)k.destroy()}if(k=new T({readableObjectMode:!!(E!==null&&E!==void 0&&E.readableObjectMode),writableObjectMode:!!(w!==null&&w!==void 0&&w.writableObjectMode),readable:D,writable:_}),_)z(w,(y)=>{if(_=!1,y)F(E,y);f(y)}),k._write=function(y,h,p){if(w.write(y,h))p();else v=p},k._final=function(y){w.end(),R=y},w.on("drain",function(){if(v){const y=v;v=null,y()}}),w.on("finish",function(){if(R){const y=R;R=null,y()}});if(D)z(E,(y)=>{if(D=!1,y)F(E,y);f(y)}),E.on("readable",function(){if(g){const y=g;g=null,y()}}),E.on("end",function(){k.push(null)}),k._read=function(){while(!0){const y=E.read();if(y===null){g=k._read;return}if(!k.push(y))return}};return k._destroy=function(y,h){if(!y&&S!==null)y=new V;if(g=null,v=null,R=null,S===null)h(y);else S=h,F(w,y),F(E,y)},k}}}),vq=cq({"node_modules/readable-stream/lib/internal/streams/duplex.js"(q,Q){var{ObjectDefineProperties:X,ObjectGetOwnPropertyDescriptor:J,ObjectKeys:H,ObjectSetPrototypeOf:Z}=Dq(),K=KQ();function B(G){if(!(this instanceof B))return new B(G);if(K.call(this,G),Tq.call(this,G),G){if(this.allowHalfOpen=G.allowHalfOpen!==!1,G.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(G.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Q.exports=B,Z(B.prototype,K.prototype),Z(B,K);for(var Y in Tq.prototype)if(!B.prototype[Y])B.prototype[Y]=Tq.prototype[Y];X(B.prototype,{writable:J(Tq.prototype,"writable"),writableHighWaterMark:J(Tq.prototype,"writableHighWaterMark"),writableObjectMode:J(Tq.prototype,"writableObjectMode"),writableBuffer:J(Tq.prototype,"writableBuffer"),writableLength:J(Tq.prototype,"writableLength"),writableFinished:J(Tq.prototype,"writableFinished"),writableCorked:J(Tq.prototype,"writableCorked"),writableEnded:J(Tq.prototype,"writableEnded"),writableNeedDrain:J(Tq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(G){if(this._readableState&&this._writableState)this._readableState.destroyed=G,this._writableState.destroyed=G}}});var $;function z(){if($===void 0)$={};return $}B.fromWeb=function(G,U){return z().newStreamDuplexFromReadableWritablePair(G,U)},B.toWeb=function(G){return z().newReadableWritablePairFromDuplex(G)};var V;B.from=function(G){if(!V)V=YQ();return V(G,"body")}}}),$Q=cq({"node_modules/readable-stream/lib/internal/streams/transform.js"(q,Q){var{ObjectSetPrototypeOf:X,Symbol:J}=Dq(),{ERR_METHOD_NOT_IMPLEMENTED:H}=sq().codes,Z=vq();function K(z){if(!(this instanceof K))return new K(z);if(Z.call(this,z),this._readableState.sync=!1,this[B]=null,z){if(typeof z.transform==="function")this._transform=z.transform;if(typeof z.flush==="function")this._flush=z.flush}this.on("prefinish",$.bind(this))}X(K.prototype,Z.prototype),X(K,Z),Q.exports=K;var B=J("kCallback");function Y(z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((V,G)=>{if(V){if(z)z(V);else this.destroy(V);return}if(G!=null)this.push(G);if(this.push(null),z)z()});else if(this.push(null),z)z()}function $(){if(this._final!==Y)Y.call(this)}K.prototype._final=Y,K.prototype._transform=function(z,V,G){throw new H("_transform()")},K.prototype._write=function(z,V,G){const U=this._readableState,F=this._writableState,M=U.length;this._transform(z,V,(j,L)=>{if(j){G(j);return}if(L!=null)this.push(L);if(F.ended||M===U.length||U.length<U.highWaterMark||U.highWaterMark===0||U.length===0)G();else this[B]=G})},K.prototype._read=function(){if(this[B]){const z=this[B];this[B]=null,z()}}}}),zQ=cq({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(q,Q){var{ObjectSetPrototypeOf:X}=Dq(),J=$Q();function H(Z){if(!(this instanceof H))return new H(Z);J.call(this,Z)}X(H.prototype,J.prototype),X(H,J),H.prototype._transform=function(Z,K,B){B(null,Z)},Q.exports=H}}),VQ=cq({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(q,Q){var{ArrayIsArray:X,Promise:J,SymbolAsyncIterator:H}=Dq(),Z=tq(),{once:K}=_q(),B=qQ(),Y=vq(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:z,ERR_INVALID_RETURN_VALUE:V,ERR_MISSING_ARGS:G,ERR_STREAM_DESTROYED:U},AbortError:F}=sq(),{validateFunction:M,validateAbortSignal:j}=aq(),{isIterable:L,isReadable:N,isReadableNodeStream:W,isNodeStream:P}=rq(),I=globalThis.AbortController||Eq("abort-controller").AbortController,x,T;function A(R,g,S){let k=!1;R.on("close",()=>{k=!0});const f=Z(R,{readable:g,writable:S},(y)=>{k=!y});return{destroy:(y)=>{if(k)return;k=!0,B.destroyer(R,y||new U("pipe"))},cleanup:f}}function O(R){return M(R[R.length-1],"streams[stream.length - 1]"),R.pop()}function C(R){if(L(R))return R;else if(W(R))return E(R);throw new z("val",["Readable","Iterable","AsyncIterable"],R)}async function*E(R){if(!T)T=KQ();yield*T.prototype[H].call(R)}async function w(R,g,S,{end:k}){let f,y=null;const h=(m)=>{if(m)f=m;if(y){const b=y;y=null,b()}},p=()=>new J((m,b)=>{if(f)b(f);else y=()=>{if(f)b(f);else m()}});g.on("drain",h);const u=Z(g,{readable:!1},h);try{if(g.writableNeedDrain)await p();for await(let m of R)if(!g.write(m))await p();if(k)g.end();await p(),S()}catch(m){S(f!==m?$(f,m):m)}finally{u(),g.off("drain",h)}}function D(...R){return _(R,K(O(R)))}function _(R,g,S){if(R.length===1&&X(R[0]))R=R[0];if(R.length<2)throw new G("streams");const k=new I,f=k.signal,y=S===null||S===void 0?void 0:S.signal,h=[];j(y,"options.signal");function p(){l(new F)}y===null||y===void 0||y.addEventListener("abort",p);let u,m;const b=[];let c=0;function d(o){l(o,--c===0)}function l(o,s){if(o&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE"))u=o;if(!u&&!s)return;while(b.length)b.shift()(u);if(y===null||y===void 0||y.removeEventListener("abort",p),k.abort(),s){if(!u)h.forEach((a)=>a());Aq(g,u,m)}}let i;for(let o=0;o<R.length;o++){const s=R[o],a=o<R.length-1,r=o>0,t=a||(S===null||S===void 0?void 0:S.end)!==!1,e=o===R.length-1;if(P(s)){let qq=function(Qq){if(Qq&&Qq.name!=="AbortError"&&Qq.code!=="ERR_STREAM_PREMATURE_CLOSE")d(Qq)};if(t){const{destroy:Qq,cleanup:Xq}=A(s,a,r);if(b.push(Qq),N(s)&&e)h.push(Xq)}if(s.on("error",qq),N(s)&&e)h.push(()=>{s.removeListener("error",qq)})}if(o===0)if(typeof s==="function"){if(i=s({signal:f}),!L(i))throw new V("Iterable, AsyncIterable or Stream","source",i)}else if(L(s)||W(s))i=s;else i=Y.from(s);else if(typeof s==="function")if(i=C(i),i=s(i,{signal:f}),a){if(!L(i,!0))throw new V("AsyncIterable",`transform[${o-1}]`,i)}else{var n;if(!x)x=zQ();const qq=new x({objectMode:!0}),Qq=(n=i)===null||n===void 0?void 0:n.then;if(typeof Qq==="function")c++,Qq.call(i,(Hq)=>{if(m=Hq,Hq!=null)qq.write(Hq);if(t)qq.end();Aq(d)},(Hq)=>{qq.destroy(Hq),Aq(d,Hq)});else if(L(i,!0))c++,w(i,qq,d,{end:t});else throw new V("AsyncIterable or Promise","destination",i);i=qq;const{destroy:Xq,cleanup:Jq}=A(i,!1,!0);if(b.push(Xq),e)h.push(Jq)}else if(P(s)){if(W(i)){c+=2;const qq=v(i,s,d,{end:t});if(N(s)&&e)h.push(qq)}else if(L(i))c++,w(i,s,d,{end:t});else throw new z("val",["Readable","Iterable","AsyncIterable"],i);i=s}else i=Y.from(s)}if(f!==null&&f!==void 0&&f.aborted||y!==null&&y!==void 0&&y.aborted)Aq(p);return i}function v(R,g,S,{end:k}){if(R.pipe(g,{end:k}),k)R.once("end",()=>g.end());else S();return Z(R,{readable:!0,writable:!1},(f)=>{const y=R._readableState;if(f&&f.code==="ERR_STREAM_PREMATURE_CLOSE"&&y&&y.ended&&!y.errored&&!y.errorEmitted)R.once("end",S).once("error",S);else S(f)}),Z(g,{readable:!1,writable:!0},S)}Q.exports={pipelineImpl:_,pipeline:D}}}),GQ=cq({"node_modules/readable-stream/lib/internal/streams/compose.js"(q,Q){var{pipeline:X}=VQ(),J=vq(),{destroyer:H}=qQ(),{isNodeStream:Z,isReadable:K,isWritable:B}=rq(),{AbortError:Y,codes:{ERR_INVALID_ARG_VALUE:$,ERR_MISSING_ARGS:z}}=sq();Q.exports=function V(...G){if(G.length===0)throw new z("streams");if(G.length===1)return J.from(G[0]);const U=[...G];if(typeof G[0]==="function")G[0]=J.from(G[0]);if(typeof G[G.length-1]==="function"){const A=G.length-1;G[A]=J.from(G[A])}for(let A=0;A<G.length;++A){if(!Z(G[A]))continue;if(A<G.length-1&&!K(G[A]))throw new $(`streams[${A}]`,U[A],"must be readable");if(A>0&&!B(G[A]))throw new $(`streams[${A}]`,U[A],"must be writable")}let F,M,j,L,N;function W(A){const O=L;if(L=null,O)O(A);else if(A)N.destroy(A);else if(!T&&!x)N.destroy()}const P=G[0],I=X(G,W),x=!!B(P),T=!!K(I);if(N=new J({writableObjectMode:!!(P!==null&&P!==void 0&&P.writableObjectMode),readableObjectMode:!!(I!==null&&I!==void 0&&I.writableObjectMode),writable:x,readable:T}),x)N._write=function(A,O,C){if(P.write(A,O))C();else F=C},N._final=function(A){P.end(),M=A},P.on("drain",function(){if(F){const A=F;F=null,A()}}),I.on("finish",function(){if(M){const A=M;M=null,A()}});if(T)I.on("readable",function(){if(j){const A=j;j=null,A()}}),I.on("end",function(){N.push(null)}),N._read=function(){while(!0){const A=I.read();if(A===null){j=N._read;return}if(!N.push(A))return}};return N._destroy=function(A,O){if(!A&&L!==null)A=new Y;if(j=null,F=null,M=null,L===null)O(A);else L=O,H(I,A)},N}}}),UQ=cq({"node_modules/readable-stream/lib/stream/promises.js"(q,Q){var{ArrayPrototypePop:X,Promise:J}=Dq(),{isIterable:H,isNodeStream:Z}=rq(),{pipelineImpl:K}=VQ(),{finished:B}=tq();function Y(...$){return new J((z,V)=>{let G,U;const F=$[$.length-1];if(F&&typeof F==="object"&&!Z(F)&&!H(F)){const M=X($);G=M.signal,U=M.end}K($,(M,j)=>{if(M)V(M);else z(j)},{signal:G,end:U})})}Q.exports={finished:B,pipeline:Y}}}),FQ=cq({"node_modules/readable-stream/lib/stream.js"(q,Q){var{ObjectDefineProperty:X,ObjectKeys:J,ReflectApply:H}=Dq(),{promisify:{custom:Z}}=_q(),{streamReturningOperators:K,promiseReturningOperators:B}=eq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Y}}=sq(),$=GQ(),{pipeline:z}=VQ(),{destroyer:V}=qQ(),G=tq(),U=UQ(),F=rq(),M=Q.exports=QQ().Stream;M.isDisturbed=F.isDisturbed,M.isErrored=F.isErrored,M.isWritable=F.isWritable,M.isReadable=F.isReadable,M.Readable=KQ();for(let L of J(K)){let N=function(...P){if(new.target)throw Y();return M.Readable.from(H(W,this,P))};const W=K[L];X(N,"name",{value:W.name}),X(N,"length",{value:W.length}),X(M.Readable.prototype,L,{value:N,enumerable:!1,configurable:!0,writable:!0})}for(let L of J(B)){let N=function(...P){if(new.target)throw Y();return H(W,this,P)};const W=B[L];X(N,"name",{value:W.name}),X(N,"length",{value:W.length}),X(M.Readable.prototype,L,{value:N,enumerable:!1,configurable:!0,writable:!0})}M.Writable=BQ(),M.Duplex=vq(),M.Transform=$Q(),M.PassThrough=zQ(),M.pipeline=z;var{addAbortSignal:j}=XQ();M.addAbortSignal=j,M.finished=G,M.destroy=V,M.compose=$,X(M,"promises",{configurable:!0,enumerable:!0,get(){return U}}),X(z,Z,{enumerable:!0,get(){return U.pipeline}}),X(G,Z,{enumerable:!0,get(){return U.finished}}),M.Stream=M,M._isUint8Array=function L(N){return N instanceof Uint8Array},M._uint8ArrayToBuffer=function L(N){return new Buffer(N.buffer,N.byteOffset,N.byteLength)}}}),MQ=cq({"node_modules/readable-stream/lib/ours/index.js"(q,Q){const X=FQ(),J=UQ(),H=X.Readable.destroy;Q.exports=X,Q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,Q.exports._isUint8Array=X._isUint8Array,Q.exports.isDisturbed=X.isDisturbed,Q.exports.isErrored=X.isErrored,Q.exports.isWritable=X.isWritable,Q.exports.isReadable=X.isReadable,Q.exports.Readable=X.Readable,Q.exports.Writable=X.Writable,Q.exports.Duplex=X.Duplex,Q.exports.Transform=X.Transform,Q.exports.PassThrough=X.PassThrough,Q.exports.addAbortSignal=X.addAbortSignal,Q.exports.finished=X.finished,Q.exports.destroy=X.destroy,Q.exports.destroy=H,Q.exports.pipeline=X.pipeline,Q.exports.compose=X.compose,Q.exports._getNativeReadableStreamPrototype=NQ,Q.exports.NativeWritable=pQ,Oq.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return J}}),Q.exports.Stream=X.Stream,Q.exports.default=Q.exports}}),LQ={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Tq=BQ(),pQ=class q extends Tq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(Q,X={}){super(X);this._construct=this.#J,this._destroy=this.#Z,this._final=this.#K,this.#q=Q}#J(Q){this._writableState.constructed=!0,this.constructed=!0,Q()}#H(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(Q,X,J,H=this.#X){if(!H)return this.#X=!1,super.write(Q,X,J);if(!this.#Q)this.#H();var Z=this.#Q,K=Z.write(Q);if(Cq(K))return K.then(()=>{this.emit("drain"),Z.flush(!0)}),!1;if(Z.flush(!0),J)J(null,Q.byteLength);return!0}end(Q,X,J,H=this.#X){return super.end(Q,X,J,H)}#Z(Q,X){if(this._writableState.destroyed=!0,X)X(Q)}#K(Q){if(this.#Q)this.#Q.end();if(Q)Q()}ref(){if(!this.#Q)this.#H();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},PQ=MQ();PQ[Symbol.for("CommonJS")]=0;PQ[Symbol.for("::bunternal::")]={_ReadableFromWeb:ZQ};var lQ=PQ,IQ=PQ._uint8ArrayToBuffer,xQ=PQ._isUint8Array,TQ=PQ.isDisturbed,AQ=PQ.isErrored,OQ=PQ.isWritable,CQ=PQ.isReadable,EQ=PQ.Readable,Tq=PQ.Writable,wQ=PQ.Duplex,DQ=PQ.Transform,_Q=PQ.PassThrough,vQ=PQ.addAbortSignal,RQ=PQ.finished,gQ=PQ.destroy,SQ=PQ.pipeline,kQ=PQ.compose,fQ=PQ.Stream,yQ=PQ["eos"]=tq,hQ=PQ._getNativeReadableStreamPrototype,pQ=PQ.NativeWritable,uQ=fQ.promise;export{uQ as promises,SQ as pipeline,OQ as isWritable,CQ as isReadable,AQ as isErrored,TQ as isDisturbed,RQ as finished,yQ as eos,gQ as destroy,lQ as default,kQ as compose,vQ as addAbortSignal,IQ as _uint8ArrayToBuffer,xQ as _isUint8Array,hQ as _getNativeReadableStreamPrototype,Tq as Writable,DQ as Transform,fQ as Stream,EQ as Readable,_Q as PassThrough,pQ as NativeWritable,wQ as Duplex};
+import{EventEmitter as Iq} from"bun:events_native";import{StringDecoder as aq} from"node:string_decoder";var tq=function(a){return typeof a==="object"&&a!==null&&a instanceof ReadableStream},eq=function(a,j){if(typeof a!=="boolean")throw new qQ(j,"boolean",a)};var qQ=function(a,j,B){return new Error(`The argument '${a}' is invalid. Received '${B}' for type '${j}'`)},QQ=function(a,j,B){return new Error(`The value '${j}' is invalid for argument '${a}'. Reason: ${B}`)},YQ=function(a,j){var[B,G,y,A,M,R,T]=globalThis[Symbol.for("Bun.lazy")](a),g=[!1],k=function(E,P,Z,U){if(P>0){const I=Z.subarray(0,P),_=Z.subarray(P);if(I.byteLength>0)E.push(I);if(U)E.push(null);return _.byteLength>0?_:void 0}if(U)E.push(null);return Z},c=function(E,P,Z,U){if(P.byteLength>0)E.push(P);if(U)E.push(null);return Z},O=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const l=new FinalizationRegistry((E)=>E&&M(E)),D=512;var p=class E extends j{#q;#Q=1;#X=!1;#H=void 0;#J;#K=!1;#Z=!O;#B;constructor(P,Z={}){super(Z);if(typeof Z.highWaterMark==="number")this.#J=Z.highWaterMark;else this.#J=262144;this.#q=P,this.#X=!1,this.#H=void 0,this.#K=!1,this.#B={},l.register(this,this.#q,this.#B)}_read(P){if(this.#K)return;var Z=this.#q;if(Z===0){this.push(null);return}if(!this.#X)this.#$(Z);return this.#V(this.#z(P),Z)}#$(P){this.#X=!0;const Z=G(P,this.#J);if(typeof Z==="number"&&Z>1)this.#Z=!0,this.#J=Math.min(this.#J,Z);if(T){const U=T(P);if((U?.byteLength??0)>0)this.push(U)}}#z(P=this.#J){var Z=this.#H;if(Z?.byteLength??0<D){var U=P>D?P:D;this.#H=Z=new Buffer(U)}return Z}#Y(P,Z,U){if(typeof P==="number"){if(P>=this.#J&&!this.#Z&&!U)this.#J*=2,this.#Z=!0;return k(this,P,Z,U)}else if(typeof P==="boolean")return process.nextTick(()=>{this.push(null)}),Z?.byteLength??0>0?Z:void 0;else if(ArrayBuffer.isView(P)){if(P.byteLength>=this.#J&&!this.#Z&&!U)this.#J*=2,this.#Z=!0;return c(this,P,Z,U)}else throw new Error("Invalid result from pull")}#V(P,Z){g[0]=!1;var U=B(Z,P,g);if(xq(U))return this.#K=!0,U.then((I)=>{this.#K=!1,this.#H=this.#Y(I,P,g[0])},(I)=>{errorOrDestroy(this,I)});else this.#H=this.#Y(U,P,g[0])}_destroy(P,Z){var U=this.#q;if(U===0){Z(P);return}if(l.unregister(this.#B),this.#q=0,R)R(U,!1);y(U,P),Z(P)}ref(){var P=this.#q;if(P===0)return;if(this.#Q++===0)R(P,!0)}unref(){var P=this.#q;if(P===0)return;if(this.#Q--===1)R(P,!1)}};if(!R)p.prototype.ref=void 0,p.prototype.unref=void 0;return p},lq=function(a,j){return $Q[a]||=YQ(a,j)},zQ=function(a,j,B){if(!(j&&typeof j==="object"&&j instanceof ReadableStream))return;const G=sq(j);if(!G){Gq("no native readable stream");return}const{stream:y,data:A}=G;return new(lq(A,a))(y,B)};var Gq=()=>{},{isPromise:xq,isCallable:oq,direct:sq,Object:zq}=globalThis[Symbol.for("Bun.lazy")]("primordials"),GQ=zq.create,MQ=zq.defineProperty,FQ=zq.getOwnPropertyDescriptor,rq=zq.getOwnPropertyNames,LQ=zq.getPrototypeOf,jQ=zq.prototype.hasOwnProperty,NQ=zq.setPrototypeOf,Bq=(a,j)=>function B(){return j||(0,a[rq(a)[0]])((j={exports:{}}).exports,j),j.exports};var Xq=process.nextTick;var AQ=Array.isArray,Vq=Bq({"node_modules/readable-stream/lib/ours/primordials.js"(a,j){j.exports={ArrayIsArray(B){return Array.isArray(B)},ArrayPrototypeIncludes(B,G){return B.includes(G)},ArrayPrototypeIndexOf(B,G){return B.indexOf(G)},ArrayPrototypeJoin(B,G){return B.join(G)},ArrayPrototypeMap(B,G){return B.map(G)},ArrayPrototypePop(B,G){return B.pop(G)},ArrayPrototypePush(B,G){return B.push(G)},ArrayPrototypeSlice(B,G,y){return B.slice(G,y)},Error,FunctionPrototypeCall(B,G,...y){return B.call(G,...y)},FunctionPrototypeSymbolHasInstance(B,G){return Function.prototype[Symbol.hasInstance].call(B,G)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(B,G){return zq.defineProperties(B,G)},ObjectDefineProperty(B,G,y){return zq.defineProperty(B,G,y)},ObjectGetOwnPropertyDescriptor(B,G){return zq.getOwnPropertyDescriptor(B,G)},ObjectKeys(B){return zq.keys(B)},ObjectSetPrototypeOf(B,G){return zq.setPrototypeOf(B,G)},Promise,PromisePrototypeCatch(B,G){return B.catch(G)},PromisePrototypeThen(B,G,y){return B.then(G,y)},PromiseReject(B){return Promise.reject(B)},ReflectApply:Reflect.apply,RegExpPrototypeTest(B,G){return B.test(G)},SafeSet:Set,String,StringPrototypeSlice(B,G,y){return B.slice(G,y)},StringPrototypeToLowerCase(B){return B.toLowerCase()},StringPrototypeToUpperCase(B){return B.toUpperCase()},StringPrototypeTrim(B){return B.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(B,G,y){return B.set(G,y)},Uint8Array}}}),Aq=Bq({"node_modules/readable-stream/lib/ours/util.js"(a,j){var B=zq.getPrototypeOf(async function(){}).constructor,G=typeof Blob!=="undefined"?function A(M){return M instanceof Blob}:function A(M){return!1},y=class extends Error{constructor(A){if(!Array.isArray(A))throw new TypeError(`Expected input to be an Array, got ${typeof A}`);let M="";for(let R=0;R<A.length;R++)M+=` ${A[R].stack}
+`;super(M);this.name="AggregateError",this.errors=A}};j.exports={AggregateError:y,once(A){let M=!1;return function(...R){if(M)return;M=!0,A.apply(this,R)}},createDeferredPromise:function(){let A,M;return{promise:new Promise((T,g)=>{A=T,M=g}),resolve:A,reject:M}},promisify(A){return new Promise((M,R)=>{A((T,...g)=>{if(T)return R(T);return M(...g)})})},debuglog(){return function(){}},format(A,...M){return A.replace(/%([sdifj])/g,function(...[R,T]){const g=M.shift();if(T==="f")return g.toFixed(6);else if(T==="j")return JSON.stringify(g);else if(T==="s"&&typeof g==="object")return`${g.constructor!==zq?g.constructor.name:""} {}`.trim();else return g.toString()})},inspect(A){switch(typeof A){case"string":if(A.includes("'")){if(!A.includes('"'))return`"${A}"`;else if(!A.includes("`")&&!A.includes("${"))return`\`${A}\``}return`'${A}'`;case"number":if(isNaN(A))return"NaN";else if(zq.is(A,-0))return String(A);return A;case"bigint":return`${String(A)}n`;case"boolean":case"undefined":return String(A);case"object":return"{}"}},types:{isAsyncFunction(A){return A instanceof B},isArrayBufferView(A){return ArrayBuffer.isView(A)}},isBlob:G},j.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),Wq=Bq({"node_modules/readable-stream/lib/ours/errors.js"(a,j){var{format:B,inspect:G,AggregateError:y}=Aq(),A=globalThis.AggregateError||y,M=Symbol("kIsNodeError"),R=["string","function","number","object","Function","Object","boolean","bigint","symbol"],T=/^([A-Z][a-z0-9]*)+$/,g="__node_internal_",k={};function c(Z,U){if(!Z)throw new k.ERR_INTERNAL_ASSERTION(U)}function O(Z){let U="",I=Z.length;const _=Z[0]==="-"?1:0;for(;I>=_+4;I-=3)U=`_${Z.slice(I-3,I)}${U}`;return`${Z.slice(0,I)}${U}`}function l(Z,U,I){if(typeof U==="function")return c(U.length<=I.length,`Code: ${Z}; The provided arguments length (${I.length}) does not match the required ones (${U.length}).`),U(...I);const _=(U.match(/%[dfijoOs]/g)||[]).length;if(c(_===I.length,`Code: ${Z}; The provided arguments length (${I.length}) does not match the required ones (${_}).`),I.length===0)return U;return B(U,...I)}function D(Z,U,I){if(!I)I=Error;class _ extends I{constructor(...t){super(l(Z,U,t))}toString(){return`${this.name} [${Z}]: ${this.message}`}}zq.defineProperties(_.prototype,{name:{value:I.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${Z}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),_.prototype.code=Z,_.prototype[M]=!0,k[Z]=_}function p(Z){const U=g+Z.name;return zq.defineProperty(Z,"name",{value:U}),Z}function E(Z,U){if(Z&&U&&Z!==U){if(Array.isArray(U.errors))return U.errors.push(Z),U;const I=new A([U,Z],U.message);return I.code=U.code,I}return Z||U}var P=class extends Error{constructor(Z="The operation was aborted",U=void 0){if(U!==void 0&&typeof U!=="object")throw new k.ERR_INVALID_ARG_TYPE("options","Object",U);super(Z,U);this.code="ABORT_ERR",this.name="AbortError"}};D("ERR_ASSERTION","%s",Error),D("ERR_INVALID_ARG_TYPE",(Z,U,I)=>{if(c(typeof Z==="string","'name' must be a string"),!Array.isArray(U))U=[U];let _="The ";if(Z.endsWith(" argument"))_+=`${Z} `;else _+=`"${Z}" ${Z.includes(".")?"property":"argument"} `;_+="must be ";const t=[],i=[],$=[];for(let Y of U)if(c(typeof Y==="string","All expected entries have to be of type string"),R.includes(Y))t.push(Y.toLowerCase());else if(T.test(Y))i.push(Y);else c(Y!=="object",'The value "object" should be written as "Object"'),$.push(Y);if(i.length>0){const Y=t.indexOf("object");if(Y!==-1)t.splice(t,Y,1),i.push("Object")}if(t.length>0){switch(t.length){case 1:_+=`of type ${t[0]}`;break;case 2:_+=`one of type ${t[0]} or ${t[1]}`;break;default:{const Y=t.pop();_+=`one of type ${t.join(", ")}, or ${Y}`}}if(i.length>0||$.length>0)_+=" or "}if(i.length>0){switch(i.length){case 1:_+=`an instance of ${i[0]}`;break;case 2:_+=`an instance of ${i[0]} or ${i[1]}`;break;default:{const Y=i.pop();_+=`an instance of ${i.join(", ")}, or ${Y}`}}if($.length>0)_+=" or "}switch($.length){case 0:break;case 1:if($[0].toLowerCase()!==$[0])_+="an ";_+=`${$[0]}`;break;case 2:_+=`one of ${$[0]} or ${$[1]}`;break;default:{const Y=$.pop();_+=`one of ${$.join(", ")}, or ${Y}`}}if(I==null)_+=`. Received ${I}`;else if(typeof I==="function"&&I.name)_+=`. Received function ${I.name}`;else if(typeof I==="object"){var n;if((n=I.constructor)!==null&&n!==void 0&&n.name)_+=`. Received an instance of ${I.constructor.name}`;else{const Y=G(I,{depth:-1});_+=`. Received ${Y}`}}else{let Y=G(I,{colors:!1});if(Y.length>25)Y=`${Y.slice(0,25)}...`;_+=`. Received type ${typeof I} (${Y})`}return _},TypeError),D("ERR_INVALID_ARG_VALUE",(Z,U,I="is invalid")=>{let _=G(U);if(_.length>128)_=_.slice(0,128)+"...";return`The ${Z.includes(".")?"property":"argument"} '${Z}' ${I}. Received ${_}`},TypeError),D("ERR_INVALID_RETURN_VALUE",(Z,U,I)=>{var _;const t=I!==null&&I!==void 0&&(_=I.constructor)!==null&&_!==void 0&&_.name?`instance of ${I.constructor.name}`:`type ${typeof I}`;return`Expected ${Z} to be returned from the "${U}" function but got ${t}.`},TypeError),D("ERR_MISSING_ARGS",(...Z)=>{c(Z.length>0,"At least one arg needs to be specified");let U;const I=Z.length;switch(Z=(Array.isArray(Z)?Z:[Z]).map((_)=>`"${_}"`).join(" or "),I){case 1:U+=`The ${Z[0]} argument`;break;case 2:U+=`The ${Z[0]} and ${Z[1]} arguments`;break;default:{const _=Z.pop();U+=`The ${Z.join(", ")}, and ${_} arguments`}break}return`${U} must be specified`},TypeError),D("ERR_OUT_OF_RANGE",(Z,U,I)=>{c(U,'Missing "range" argument');let _;if(Number.isInteger(I)&&Math.abs(I)>4294967296)_=O(String(I));else if(typeof I==="bigint"){if(_=String(I),I>2n**32n||I<-(2n**32n))_=O(_);_+="n"}else _=G(I);return`The value of "${Z}" is out of range. It must be ${U}. Received ${_}`},RangeError),D("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),D("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),D("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),D("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),D("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),D("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),D("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),D("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),D("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),D("ERR_STREAM_WRITE_AFTER_END","write after end",Error),D("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),j.exports={AbortError:P,aggregateTwoErrors:p(E),hideStackFrames:p,codes:k}}}),Cq=Bq({"node_modules/readable-stream/lib/internal/validators.js"(a,j){var{ArrayIsArray:B,ArrayPrototypeIncludes:G,ArrayPrototypeJoin:y,ArrayPrototypeMap:A,NumberIsInteger:M,NumberMAX_SAFE_INTEGER:R,NumberMIN_SAFE_INTEGER:T,NumberParseInt:g,RegExpPrototypeTest:k,String:c,StringPrototypeToUpperCase:O,StringPrototypeTrim:l}=Vq(),{hideStackFrames:D,codes:{ERR_SOCKET_BAD_PORT:p,ERR_INVALID_ARG_TYPE:E,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:Z,ERR_UNKNOWN_SIGNAL:U}}=Wq(),{normalizeEncoding:I}=Aq(),{isAsyncFunction:_,isArrayBufferView:t}=Aq().types,i={};function $(V){return V===(V|0)}function n(V){return V===V>>>0}var Y=/^[0-7]+$/,K="must be a 32-bit unsigned integer or an octal string";function F(V,h,Q){if(typeof V==="undefined")V=Q;if(typeof V==="string"){if(!k(Y,V))throw new P(h,V,K);V=g(V,8)}return u(V,h,0,4294967295),V}var m=D((V,h,Q=T,H=R)=>{if(typeof V!=="number")throw new E(h,"number",V);if(!M(V))throw new Z(h,"an integer",V);if(V<Q||V>H)throw new Z(h,`>= ${Q} && <= ${H}`,V)}),u=D((V,h,Q=-2147483648,H=2147483647)=>{if(typeof V!=="number")throw new E(h,"number",V);if(!$(V)){if(!M(V))throw new Z(h,"an integer",V);throw new Z(h,`>= ${Q} && <= ${H}`,V)}if(V<Q||V>H)throw new Z(h,`>= ${Q} && <= ${H}`,V)}),J=D((V,h,Q)=>{if(typeof V!=="number")throw new E(h,"number",V);if(!n(V)){if(!M(V))throw new Z(h,"an integer",V);throw new Z(h,`>= ${Q?1:0} && < 4294967296`,V)}if(Q&&V===0)throw new Z(h,">= 1 && < 4294967296",V)});function z(V,h){if(typeof V!=="string")throw new E(h,"string",V)}function w(V,h){if(typeof V!=="number")throw new E(h,"number",V)}var S=D((V,h,Q)=>{if(!G(Q,V)){const L="must be one of: "+y(A(Q,(d)=>typeof d==="string"?`'${d}'`:c(d)),", ");throw new P(h,V,L)}});function N(V,h){if(typeof V!=="boolean")throw new E(h,"boolean",V)}var W=D((V,h,Q)=>{const H=Q==null,L=H?!1:Q.allowArray,d=H?!1:Q.allowFunction;if(!(H?!1:Q.nullable)&&V===null||!L&&B(V)||typeof V!=="object"&&(!d||typeof V!=="function"))throw new E(h,"Object",V)}),b=D((V,h,Q=0)=>{if(!B(V))throw new E(h,"Array",V);if(V.length<Q){const H=`must be longer than ${Q}`;throw new P(h,V,H)}});function o(V,h="signal"){if(z(V,h),i[V]===void 0){if(i[O(V)]!==void 0)throw new U(V+" (signals must use all capital letters)");throw new U(V)}}var s=D((V,h="buffer")=>{if(!t(V))throw new E(h,["Buffer","TypedArray","DataView"],V)});function e(V,h){const Q=I(h),H=V.length;if(Q==="hex"&&H%2!==0)throw new P("encoding",h,`is invalid for data of length ${H}`)}function Hq(V,h="Port",Q=!0){if(typeof V!=="number"&&typeof V!=="string"||typeof V==="string"&&l(V).length===0||+V!==+V>>>0||V>65535||V===0&&!Q)throw new p(h,V,Q);return V|0}var $q=D((V,h)=>{if(V!==void 0&&(V===null||typeof V!=="object"||!("aborted"in V)))throw new E(h,"AbortSignal",V)}),qq=D((V,h)=>{if(typeof V!=="function")throw new E(h,"Function",V)}),Kq=D((V,h)=>{if(typeof V!=="function"||_(V))throw new E(h,"Function",V)}),Qq=D((V,h)=>{if(V!==void 0)throw new E(h,"undefined",V)});j.exports={isInt32:$,isUint32:n,parseFileMode:F,validateArray:b,validateBoolean:N,validateBuffer:s,validateEncoding:e,validateFunction:qq,validateInt32:u,validateInteger:m,validateNumber:w,validateObject:W,validateOneOf:S,validatePlainFunction:Kq,validatePort:Hq,validateSignalName:o,validateString:z,validateUint32:J,validateUndefined:Qq,validateAbortSignal:$q}}}),Eq=Bq({"node_modules/readable-stream/lib/internal/streams/utils.js"(a,j){var{Symbol:B,SymbolAsyncIterator:G,SymbolIterator:y}=Vq(),A=B("kDestroyed"),M=B("kIsErrored"),R=B("kIsReadable"),T=B("kIsDisturbed");function g(J,z=!1){var w;return!!(J&&typeof J.pipe==="function"&&typeof J.on==="function"&&(!z||typeof J.pause==="function"&&typeof J.resume==="function")&&(!J._writableState||((w=J._readableState)===null||w===void 0?void 0:w.readable)!==!1)&&(!J._writableState||J._readableState))}function k(J){var z;return!!(J&&typeof J.write==="function"&&typeof J.on==="function"&&(!J._readableState||((z=J._writableState)===null||z===void 0?void 0:z.writable)!==!1))}function c(J){return!!(J&&typeof J.pipe==="function"&&J._readableState&&typeof J.on==="function"&&typeof J.write==="function")}function O(J){return J&&(J._readableState||J._writableState||typeof J.write==="function"&&typeof J.on==="function"||typeof J.pipe==="function"&&typeof J.on==="function")}function l(J,z){if(J==null)return!1;if(z===!0)return typeof J[G]==="function";if(z===!1)return typeof J[y]==="function";return typeof J[G]==="function"||typeof J[y]==="function"}function D(J){if(!O(J))return null;const{_writableState:z,_readableState:w}=J,S=z||w;return!!(J.destroyed||J[A]||S!==null&&S!==void 0&&S.destroyed)}function p(J){if(!k(J))return null;if(J.writableEnded===!0)return!0;const z=J._writableState;if(z!==null&&z!==void 0&&z.errored)return!1;if(typeof(z===null||z===void 0?void 0:z.ended)!=="boolean")return null;return z.ended}function E(J,z){if(!k(J))return null;if(J.writableFinished===!0)return!0;const w=J._writableState;if(w!==null&&w!==void 0&&w.errored)return!1;if(typeof(w===null||w===void 0?void 0:w.finished)!=="boolean")return null;return!!(w.finished||z===!1&&w.ended===!0&&w.length===0)}function P(J){if(!g(J))return null;if(J.readableEnded===!0)return!0;const z=J._readableState;if(!z||z.errored)return!1;if(typeof(z===null||z===void 0?void 0:z.ended)!=="boolean")return null;return z.ended}function Z(J,z){if(!g(J))return null;const w=J._readableState;if(w!==null&&w!==void 0&&w.errored)return!1;if(typeof(w===null||w===void 0?void 0:w.endEmitted)!=="boolean")return null;return!!(w.endEmitted||z===!1&&w.ended===!0&&w.length===0)}function U(J){if(J&&J[R]!=null)return J[R];if(typeof(J===null||J===void 0?void 0:J.readable)!=="boolean")return null;if(D(J))return!1;return g(J)&&J.readable&&!Z(J)}function I(J){if(typeof(J===null||J===void 0?void 0:J.writable)!=="boolean")return null;if(D(J))return!1;return k(J)&&J.writable&&!p(J)}function _(J,z){if(!O(J))return null;if(D(J))return!0;if((z===null||z===void 0?void 0:z.readable)!==!1&&U(J))return!1;if((z===null||z===void 0?void 0:z.writable)!==!1&&I(J))return!1;return!0}function t(J){var z,w;if(!O(J))return null;if(J.writableErrored)return J.writableErrored;return(z=(w=J._writableState)===null||w===void 0?void 0:w.errored)!==null&&z!==void 0?z:null}function i(J){var z,w;if(!O(J))return null;if(J.readableErrored)return J.readableErrored;return(z=(w=J._readableState)===null||w===void 0?void 0:w.errored)!==null&&z!==void 0?z:null}function $(J){if(!O(J))return null;if(typeof J.closed==="boolean")return J.closed;const{_writableState:z,_readableState:w}=J;if(typeof(z===null||z===void 0?void 0:z.closed)==="boolean"||typeof(w===null||w===void 0?void 0:w.closed)==="boolean")return(z===null||z===void 0?void 0:z.closed)||(w===null||w===void 0?void 0:w.closed);if(typeof J._closed==="boolean"&&n(J))return J._closed;return null}function n(J){return typeof J._closed==="boolean"&&typeof J._defaultKeepAlive==="boolean"&&typeof J._removedConnection==="boolean"&&typeof J._removedContLen==="boolean"}function Y(J){return typeof J._sent100==="boolean"&&n(J)}function K(J){var z;return typeof J._consuming==="boolean"&&typeof J._dumped==="boolean"&&((z=J.req)===null||z===void 0?void 0:z.upgradeOrConnect)===void 0}function F(J){if(!O(J))return null;const{_writableState:z,_readableState:w}=J,S=z||w;return!S&&Y(J)||!!(S&&S.autoDestroy&&S.emitClose&&S.closed===!1)}function m(J){var z;return!!(J&&((z=J[T])!==null&&z!==void 0?z:J.readableDidRead||J.readableAborted))}function u(J){var z,w,S,N,W,b,o,s,e,Hq;return!!(J&&((z=(w=(S=(N=(W=(b=J[M])!==null&&b!==void 0?b:J.readableErrored)!==null&&W!==void 0?W:J.writableErrored)!==null&&N!==void 0?N:(o=J._readableState)===null||o===void 0?void 0:o.errorEmitted)!==null&&S!==void 0?S:(s=J._writableState)===null||s===void 0?void 0:s.errorEmitted)!==null&&w!==void 0?w:(e=J._readableState)===null||e===void 0?void 0:e.errored)!==null&&z!==void 0?z:(Hq=J._writableState)===null||Hq===void 0?void 0:Hq.errored))}j.exports={kDestroyed:A,isDisturbed:m,kIsDisturbed:T,isErrored:u,kIsErrored:M,isReadable:U,kIsReadable:R,isClosed:$,isDestroyed:D,isDuplexNodeStream:c,isFinished:_,isIterable:l,isReadableNodeStream:g,isReadableEnded:P,isReadableFinished:Z,isReadableErrored:i,isNodeStream:O,isWritable:I,isWritableNodeStream:k,isWritableEnded:p,isWritableFinished:E,isWritableErrored:t,isServerRequest:K,isServerResponse:Y,willEmitClose:F}}}),Fq=Bq({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(a,j){var{AbortError:B,codes:G}=Wq(),{ERR_INVALID_ARG_TYPE:y,ERR_STREAM_PREMATURE_CLOSE:A}=G,{once:M}=Aq(),{validateAbortSignal:R,validateFunction:T,validateObject:g}=Cq(),{Promise:k}=Vq(),{isClosed:c,isReadable:O,isReadableNodeStream:l,isReadableFinished:D,isReadableErrored:p,isWritable:E,isWritableNodeStream:P,isWritableFinished:Z,isWritableErrored:U,isNodeStream:I,willEmitClose:_}=Eq();function t(Y){return Y.setHeader&&typeof Y.abort==="function"}var i=()=>{};function $(Y,K,F){var m,u;if(arguments.length===2)F=K,K={};else if(K==null)K={};else g(K,"options");T(F,"callback"),R(K.signal,"options.signal"),F=M(F);const J=(m=K.readable)!==null&&m!==void 0?m:l(Y),z=(u=K.writable)!==null&&u!==void 0?u:P(Y);if(!I(Y))throw new y("stream","Stream",Y);const{_writableState:w,_readableState:S}=Y,N=()=>{if(!Y.writable)o()};let W=_(Y)&&l(Y)===J&&P(Y)===z,b=Z(Y,!1);const o=()=>{if(b=!0,Y.destroyed)W=!1;if(W&&(!Y.readable||J))return;if(!J||s)F.call(Y)};let s=D(Y,!1);const e=()=>{if(s=!0,Y.destroyed)W=!1;if(W&&(!Y.writable||z))return;if(!z||b)F.call(Y)},Hq=(V)=>{F.call(Y,V)};let $q=c(Y);const qq=()=>{$q=!0;const V=U(Y)||p(Y);if(V&&typeof V!=="boolean")return F.call(Y,V);if(J&&!s&&l(Y,!0)){if(!D(Y,!1))return F.call(Y,new A)}if(z&&!b){if(!Z(Y,!1))return F.call(Y,new A)}F.call(Y)},Kq=()=>{Y.req.on("finish",o)};if(t(Y)){if(Y.on("complete",o),!W)Y.on("abort",qq);if(Y.req)Kq();else Y.on("request",Kq)}else if(z&&!w)Y.on("end",N),Y.on("close",N);if(!W&&typeof Y.aborted==="boolean")Y.on("aborted",qq);if(Y.on("end",e),Y.on("finish",o),K.error!==!1)Y.on("error",Hq);if(Y.on("close",qq),$q)Xq(qq);else if(w!==null&&w!==void 0&&w.errorEmitted||S!==null&&S!==void 0&&S.errorEmitted){if(!W)Xq(qq)}else if(!J&&(!W||O(Y))&&(b||E(Y)===!1))Xq(qq);else if(!z&&(!W||E(Y))&&(s||O(Y)===!1))Xq(qq);else if(S&&Y.req&&Y.aborted)Xq(qq);const Qq=()=>{if(F=i,Y.removeListener("aborted",qq),Y.removeListener("complete",o),Y.removeListener("abort",qq),Y.removeListener("request",Kq),Y.req)Y.req.removeListener("finish",o);Y.removeListener("end",N),Y.removeListener("close",N),Y.removeListener("finish",o),Y.removeListener("end",e),Y.removeListener("error",Hq),Y.removeListener("close",qq)};if(K.signal&&!$q){const V=()=>{const h=F;Qq(),h.call(Y,new B(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)Xq(V);else{const h=F;F=M((...Q)=>{K.signal.removeEventListener("abort",V),h.apply(Y,Q)}),K.signal.addEventListener("abort",V)}}return Qq}function n(Y,K){return new k((F,m)=>{$(Y,K,(u)=>{if(u)m(u);else F()})})}j.exports=$,j.exports.finished=n}}),XQ=Bq({"node_modules/readable-stream/lib/internal/streams/operators.js"(a,j){var{codes:{ERR_INVALID_ARG_TYPE:B,ERR_MISSING_ARGS:G,ERR_OUT_OF_RANGE:y},AbortError:A}=Wq(),{validateAbortSignal:M,validateInteger:R,validateObject:T}=Cq(),g=Vq().Symbol("kWeak"),{finished:k}=Fq(),{ArrayPrototypePush:c,MathFloor:O,Number:l,NumberIsNaN:D,Promise:p,PromiseReject:E,PromisePrototypeCatch:P,Symbol:Z}=Vq(),U=Z("kEmpty"),I=Z("kEof");function _(N,W){if(typeof N!=="function")throw new B("fn",["Function","AsyncFunction"],N);if(W!=null)T(W,"options");if((W===null||W===void 0?void 0:W.signal)!=null)M(W.signal,"options.signal");let b=1;if((W===null||W===void 0?void 0:W.concurrency)!=null)b=O(W.concurrency);return R(b,"concurrency",1),async function*o(){var s,e;const Hq=new AbortController,$q=this,qq=[],Kq=Hq.signal,Qq={signal:Kq},V=()=>Hq.abort();if(W!==null&&W!==void 0&&(s=W.signal)!==null&&s!==void 0&&s.aborted)V();W===null||W===void 0||(e=W.signal)===null||e===void 0||e.addEventListener("abort",V);let h,Q,H=!1;function L(){H=!0}async function d(){try{for await(let q of $q){var f;if(H)return;if(Kq.aborted)throw new A;try{q=N(q,Qq)}catch(X){q=E(X)}if(q===U)continue;if(typeof((f=q)===null||f===void 0?void 0:f.catch)==="function")q.catch(L);if(qq.push(q),h)h(),h=null;if(!H&&qq.length&&qq.length>=b)await new p((X)=>{Q=X})}qq.push(I)}catch(q){const X=E(q);P(X,L),qq.push(X)}finally{var r;if(H=!0,h)h(),h=null;W===null||W===void 0||(r=W.signal)===null||r===void 0||r.removeEventListener("abort",V)}}d();try{while(!0){while(qq.length>0){const f=await qq[0];if(f===I)return;if(Kq.aborted)throw new A;if(f!==U)yield f;if(qq.shift(),Q)Q(),Q=null}await new p((f)=>{h=f})}}finally{if(Hq.abort(),H=!0,Q)Q(),Q=null}}.call(this)}function t(N=void 0){if(N!=null)T(N,"options");if((N===null||N===void 0?void 0:N.signal)!=null)M(N.signal,"options.signal");return async function*W(){let b=0;for await(let s of this){var o;if(N!==null&&N!==void 0&&(o=N.signal)!==null&&o!==void 0&&o.aborted)throw new A({cause:N.signal.reason});yield[b++,s]}}.call(this)}async function i(N,W=void 0){for await(let b of K.call(this,N,W))return!0;return!1}async function $(N,W=void 0){if(typeof N!=="function")throw new B("fn",["Function","AsyncFunction"],N);return!await i.call(this,async(...b)=>{return!await N(...b)},W)}async function n(N,W){for await(let b of K.call(this,N,W))return b;return}async function Y(N,W){if(typeof N!=="function")throw new B("fn",["Function","AsyncFunction"],N);async function b(o,s){return await N(o,s),U}for await(let o of _.call(this,b,W));}function K(N,W){if(typeof N!=="function")throw new B("fn",["Function","AsyncFunction"],N);async function b(o,s){if(await N(o,s))return o;return U}return _.call(this,b,W)}var F=class extends G{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function m(N,W,b){var o;if(typeof N!=="function")throw new B("reducer",["Function","AsyncFunction"],N);if(b!=null)T(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)M(b.signal,"options.signal");let s=arguments.length>1;if(b!==null&&b!==void 0&&(o=b.signal)!==null&&o!==void 0&&o.aborted){const Kq=new A(void 0,{cause:b.signal.reason});throw this.once("error",()=>{}),await k(this.destroy(Kq)),Kq}const e=new AbortController,Hq=e.signal;if(b!==null&&b!==void 0&&b.signal){const Kq={once:!0,[g]:this};b.signal.addEventListener("abort",()=>e.abort(),Kq)}let $q=!1;try{for await(let Kq of this){var qq;if($q=!0,b!==null&&b!==void 0&&(qq=b.signal)!==null&&qq!==void 0&&qq.aborted)throw new A;if(!s)W=Kq,s=!0;else W=await N(W,Kq,{signal:Hq})}if(!$q&&!s)throw new F}finally{e.abort()}return W}async function u(N){if(N!=null)T(N,"options");if((N===null||N===void 0?void 0:N.signal)!=null)M(N.signal,"options.signal");const W=[];for await(let o of this){var b;if(N!==null&&N!==void 0&&(b=N.signal)!==null&&b!==void 0&&b.aborted)throw new A(void 0,{cause:N.signal.reason});c(W,o)}return W}function J(N,W){const b=_.call(this,N,W);return async function*o(){for await(let s of b)yield*s}.call(this)}function z(N){if(N=l(N),D(N))return 0;if(N<0)throw new y("number",">= 0",N);return N}function w(N,W=void 0){if(W!=null)T(W,"options");if((W===null||W===void 0?void 0:W.signal)!=null)M(W.signal,"options.signal");return N=z(N),async function*b(){var o;if(W!==null&&W!==void 0&&(o=W.signal)!==null&&o!==void 0&&o.aborted)throw new A;for await(let e of this){var s;if(W!==null&&W!==void 0&&(s=W.signal)!==null&&s!==void 0&&s.aborted)throw new A;if(N--<=0)yield e}}.call(this)}function S(N,W=void 0){if(W!=null)T(W,"options");if((W===null||W===void 0?void 0:W.signal)!=null)M(W.signal,"options.signal");return N=z(N),async function*b(){var o;if(W!==null&&W!==void 0&&(o=W.signal)!==null&&o!==void 0&&o.aborted)throw new A;for await(let e of this){var s;if(W!==null&&W!==void 0&&(s=W.signal)!==null&&s!==void 0&&s.aborted)throw new A;if(N-- >0)yield e;else return}}.call(this)}j.exports.streamReturningOperators={asIndexedPairs:t,drop:w,filter:K,flatMap:J,map:_,take:S},j.exports.promiseReturningOperators={every:$,forEach:Y,reduce:m,toArray:u,some:i,find:n}}}),Tq=Bq({"node_modules/readable-stream/lib/internal/streams/destroy.js"(a,j){var{aggregateTwoErrors:B,codes:{ERR_MULTIPLE_CALLBACK:G},AbortError:y}=Wq(),{Symbol:A}=Vq(),{kDestroyed:M,isDestroyed:R,isFinished:T,isServerRequest:g}=Eq(),k="#kDestroy",c="#kConstruct";function O(K,F,m){if(K){if(K.stack,F&&!F.errored)F.errored=K;if(m&&!m.errored)m.errored=K}}function l(K,F){const m=this._readableState,u=this._writableState,J=u||m;if(u&&u.destroyed||m&&m.destroyed){if(typeof F==="function")F();return this}if(O(K,u,m),u)u.destroyed=!0;if(m)m.destroyed=!0;if(!J.constructed)this.once(k,(z)=>{D(this,B(z,K),F)});else D(this,K,F);return this}function D(K,F,m){let u=!1;function J(z){if(u)return;u=!0;const{_readableState:w,_writableState:S}=K;if(O(z,S,w),S)S.closed=!0;if(w)w.closed=!0;if(typeof m==="function")m(z);if(z)Xq(p,K,z);else Xq(E,K)}try{K._destroy(F||null,J)}catch(z){J(z)}}function p(K,F){P(K,F),E(K)}function E(K){const{_readableState:F,_writableState:m}=K;if(m)m.closeEmitted=!0;if(F)F.closeEmitted=!0;if(m&&m.emitClose||F&&F.emitClose)K.emit("close")}function P(K,F){const m=K?._readableState,u=K?._writableState;if(u?.errorEmitted||m?.errorEmitted)return;if(u)u.errorEmitted=!0;if(m)m.errorEmitted=!0;K?.emit?.("error",F)}function Z(){const K=this._readableState,F=this._writableState;if(K)K.constructed=!0,K.closed=!1,K.closeEmitted=!1,K.destroyed=!1,K.errored=null,K.errorEmitted=!1,K.reading=!1,K.ended=K.readable===!1,K.endEmitted=K.readable===!1;if(F)F.constructed=!0,F.destroyed=!1,F.closed=!1,F.closeEmitted=!1,F.errored=null,F.errorEmitted=!1,F.finalCalled=!1,F.prefinished=!1,F.ended=F.writable===!1,F.ending=F.writable===!1,F.finished=F.writable===!1}function U(K,F,m){const u=K?._readableState,J=K?._writableState;if(J&&J.destroyed||u&&u.destroyed)return this;if(u&&u.autoDestroy||J&&J.autoDestroy)K.destroy(F);else if(F){if(Error.captureStackTrace(F),J&&!J.errored)J.errored=F;if(u&&!u.errored)u.errored=F;if(m)Xq(P,K,F);else P(K,F)}}function I(K,F){if(typeof K._construct!=="function")return;const{_readableState:m,_writableState:u}=K;if(m)m.constructed=!1;if(u)u.constructed=!1;if(K.once(c,F),K.listenerCount(c)>1)return;Xq(_,K)}function _(K){let F=!1;function m(u){if(F){U(K,u!==null&&u!==void 0?u:new G);return}F=!0;const{_readableState:J,_writableState:z}=K,w=z||J;if(J)J.constructed=!0;if(z)z.constructed=!0;if(w.destroyed)K.emit(k,u);else if(u)U(K,u,!0);else Xq(t,K)}try{K._construct(m)}catch(u){m(u)}}function t(K){K.emit(c)}function i(K){return K&&K.setHeader&&typeof K.abort==="function"}function $(K){K.emit("close")}function n(K,F){K.emit("error",F),Xq($,K)}function Y(K,F){if(!K||R(K))return;if(!F&&!T(K))F=new y;if(g(K))K.socket=null,K.destroy(F);else if(i(K))K.abort();else if(i(K.req))K.req.abort();else if(typeof K.destroy==="function")K.destroy(F);else if(typeof K.close==="function")K.close();else if(F)Xq(n,K);else Xq($,K);if(!K.destroyed)K[M]=!0}j.exports={construct:I,destroyer:Y,destroy:l,undestroy:Z,errorOrDestroy:U}}}),Rq=Bq({"node_modules/readable-stream/lib/internal/streams/legacy.js"(a,j){var{ArrayIsArray:B,ObjectSetPrototypeOf:G}=Vq();function y(M){if(!(this instanceof y))return new y(M);Iq.call(this,M)}G(y.prototype,Iq.prototype),G(y,Iq),y.prototype.pipe=function(M,R){const T=this;function g(E){if(M.writable&&M.write(E)===!1&&T.pause)T.pause()}T.on("data",g);function k(){if(T.readable&&T.resume)T.resume()}if(M.on("drain",k),!M._isStdio&&(!R||R.end!==!1))T.on("end",O),T.on("close",l);let c=!1;function O(){if(c)return;c=!0,M.end()}function l(){if(c)return;if(c=!0,typeof M.destroy==="function")M.destroy()}function D(E){if(p(),Iq.listenerCount(this,"error")===0)this.emit("error",E)}A(T,"error",D),A(M,"error",D);function p(){T.removeListener("data",g),M.removeListener("drain",k),T.removeListener("end",O),T.removeListener("close",l),T.removeListener("error",D),M.removeListener("error",D),T.removeListener("end",p),T.removeListener("close",p),M.removeListener("close",p)}return T.on("end",p),T.on("close",p),M.on("close",p),M.emit("pipe",T),M};function A(M,R,T){if(typeof M.prependListener==="function")return M.prependListener(R,T);if(!M._events||!M._events[R])M.on(R,T);else if(B(M._events[R]))M._events[R].unshift(T);else M._events[R]=[T,M._events[R]]}j.exports={Stream:y,prependListener:A}}}),Sq=Bq({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(a,j){var{AbortError:B,codes:G}=Wq(),y=Fq(),{ERR_INVALID_ARG_TYPE:A}=G,M=(T,g)=>{if(typeof T!=="object"||!("aborted"in T))throw new A(g,"AbortSignal",T)};function R(T){return!!(T&&typeof T.pipe==="function")}j.exports.addAbortSignal=function T(g,k){if(M(g,"signal"),!R(k))throw new A("stream","stream.Stream",k);return j.exports.addAbortSignalNoValidate(g,k)},j.exports.addAbortSignalNoValidate=function(T,g){if(typeof T!=="object"||!("aborted"in T))return g;const k=()=>{g.destroy(new B(void 0,{cause:T.reason}))};if(T.aborted)k();else T.addEventListener("abort",k),y(g,()=>T.removeEventListener("abort",k));return g}}}),JQ=Bq({"node_modules/readable-stream/lib/internal/streams/state.js"(a,j){var{MathFloor:B,NumberIsInteger:G}=Vq(),{ERR_INVALID_ARG_VALUE:y}=Wq().codes;function A(T,g,k){return T.highWaterMark!=null?T.highWaterMark:g?T[k]:null}function M(T){return T?16:16384}function R(T,g,k,c){const O=A(g,c,k);if(O!=null){if(!G(O)||O<0){const l=c?`options.${k}`:"options.highWaterMark";throw new y(l,O)}return B(O)}return M(T.objectMode)}j.exports={getHighWaterMark:R,getDefaultHighWaterMark:M}}}),hq=Bq({"node_modules/readable-stream/lib/internal/streams/from.js"(a,j){var{PromisePrototypeThen:B,SymbolAsyncIterator:G,SymbolIterator:y}=Vq(),{ERR_INVALID_ARG_TYPE:A,ERR_STREAM_NULL_VALUES:M}=Wq().codes;function R(T,g,k){let c;if(typeof g==="string"||g instanceof Buffer)return new T({objectMode:!0,...k,read(){this.push(g),this.push(null)}});let O;if(g&&g[G])O=!0,c=g[G]();else if(g&&g[y])O=!1,c=g[y]();else throw new A("iterable",["Iterable"],g);const l=new T({objectMode:!0,highWaterMark:1,...k});let D=!1;l._read=function(){if(!D)D=!0,E()},l._destroy=function(P,Z){B(p(P),()=>Xq(Z,P),(U)=>Xq(Z,U||P))};async function p(P){const Z=P!==void 0&&P!==null,U=typeof c.throw==="function";if(Z&&U){const{value:I,done:_}=await c.throw(P);if(await I,_)return}if(typeof c.return==="function"){const{value:I}=await c.return();await I}}async function E(){for(;;){try{const{value:P,done:Z}=O?await c.next():c.next();if(Z)l.push(null);else{const U=P&&typeof P.then==="function"?await P:P;if(U===null)throw D=!1,new M;else if(l.push(U))continue;else D=!1}}catch(P){l.destroy(P)}break}}return l}j.exports=R}}),pq,uq,_q=Bq({"node_modules/readable-stream/lib/internal/streams/readable.js"(a,j){var{ArrayPrototypeIndexOf:B,NumberIsInteger:G,NumberIsNaN:y,NumberParseInt:A,ObjectDefineProperties:M,ObjectKeys:R,ObjectSetPrototypeOf:T,Promise:g,SafeSet:k,SymbolAsyncIterator:c,Symbol:O}=Vq(),l=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{Stream:D,prependListener:p}=Rq();function E(q){if(!(this instanceof E))return new E(q);const X=this instanceof Mq();if(this._readableState=new l(q,this,X),q){const{read:C,destroy:x,construct:v,signal:Jq}=q;if(typeof C==="function")this._read=C;if(typeof x==="function")this._destroy=x;if(typeof v==="function")this._construct=v;if(Jq&&!X)U(Jq,this)}D.call(this,q),K.construct(this,()=>{if(this._readableState.needReadable)n(this,this._readableState)})}T(E.prototype,D.prototype),T(E,D),E.prototype.on=function(q,X){const C=D.prototype.on.call(this,q,X),x=this._readableState;if(q==="data"){if(x.readableListening=this.listenerCount("readable")>0,x.flowing!==!1)this.resume()}else if(q==="readable"){if(!x.endEmitted&&!x.readableListening){if(x.readableListening=x.needReadable=!0,x.flowing=!1,x.emittedReadable=!1,x.length)Y(this,x);else if(!x.reading)Xq(Qq,this)}else if(x.endEmitted);}return C};class P extends E{#q;#Q;#X;#H;constructor(q,X){const{objectMode:C,highWaterMark:x,encoding:v,signal:Jq}=q;super({objectMode:C,highWaterMark:x,encoding:v,signal:Jq});this.#X=[],this.#q=void 0,this.#H=X,this.#Q=!1}#J(){var q=this.#X,X=0,C=q.length;for(;X<C;X++){const x=q[X];if(q[X]=void 0,!this.push(x,void 0))return this.#X=q.slice(X+1),!0}if(C>0)this.#X=[];return!1}#K(q){q.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){var q=this.#H,X=this.#q;if(q)X=this.#q=q.getReader(),this.#H=void 0;else if(this.#J())return;var C;try{do{var x=!1,v;const Jq=X.readMany();if(xq(Jq)){if({done:x,value:v}=await Jq,this.#Q){this.#X.push(...v);return}}else({done:x,value:v}=Jq);if(x){this.#K(X);return}if(!this.push(v[0])){this.#X=v.slice(1);return}for(let Zq=1,Oq=v.length;Zq<Oq;Zq++)if(!this.push(v[Zq])){this.#X=v.slice(Zq+1);return}}while(!this.#Q)}catch(Jq){C=Jq}finally{if(C)throw C}}_destroy(q,X){if(!this.#Q){var C=this.#q;if(C)this.#q=void 0,C.cancel(q).finally(()=>{this.#Q=!0,X(q)});return}try{X(q)}catch(x){globalThis.reportError(x)}}}uq=P;function Z(q,X={}){if(!tq(q))throw new m("readableStream","ReadableStream",q);S(X,"options");const{highWaterMark:C,encoding:x,objectMode:v=!1,signal:Jq}=X;if(x!==void 0&&!Buffer.isEncoding(x))throw new QQ(x,"options.encoding");return eq(v,"options.objectMode"),zQ(E,q,X)||new P({highWaterMark:C,encoding:x,objectMode:v,signal:Jq},q)}j.exports=E,pq=Z;var{addAbortSignal:U}=Sq(),I=Fq();const{maybeReadMore:_,resume:t,emitReadable:i,onEofChunk:$}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function n(q,X){process.nextTick(_,q,X)}function Y(q,X){i(q,X)}var K=Tq(),{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:m,ERR_METHOD_NOT_IMPLEMENTED:u,ERR_OUT_OF_RANGE:J,ERR_STREAM_PUSH_AFTER_EOF:z,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:w}}=Wq(),{validateObject:S}=Cq(),N=hq(),W=()=>{},{errorOrDestroy:b}=K;E.prototype.destroy=K.destroy,E.prototype._undestroy=K.undestroy,E.prototype._destroy=function(q,X){X(q)},E.prototype[Iq.captureRejectionSymbol]=function(q){this.destroy(q)},E.prototype.push=function(q,X){return o(this,q,X,!1)},E.prototype.unshift=function(q,X){return o(this,q,X,!0)};function o(q,X,C,x){const v=q._readableState;let Jq;if(!v.objectMode){if(typeof X==="string"){if(C=C||v.defaultEncoding,v.encoding!==C)if(x&&v.encoding)X=Buffer.from(X,C).toString(v.encoding);else X=Buffer.from(X,C),C=""}else if(X instanceof Buffer)C="";else if(D._isUint8Array(X)){if(x||!v.decoder)X=D._uint8ArrayToBuffer(X);C=""}else if(X!=null)Jq=new m("chunk",["string","Buffer","Uint8Array"],X)}if(Jq)b(q,Jq);else if(X===null)v.reading=!1,$(q,v);else if(v.objectMode||X&&X.length>0)if(x)if(v.endEmitted)b(q,new w);else if(v.destroyed||v.errored)return!1;else s(q,v,X,!0);else if(v.ended)b(q,new z);else if(v.destroyed||v.errored)return!1;else if(v.reading=!1,v.decoder&&!C)if(X=v.decoder.write(X),v.objectMode||X.length!==0)s(q,v,X,!1);else n(q,v);else s(q,v,X,!1);else if(!x)v.reading=!1,n(q,v);return!v.ended&&(v.length<v.highWaterMark||v.length===0)}function s(q,X,C,x){if(X.flowing&&X.length===0&&!X.sync&&q.listenerCount("data")>0){if(X.multiAwaitDrain)X.awaitDrainWriters.clear();else X.awaitDrainWriters=null;X.dataEmitted=!0,q.emit("data",C)}else{if(X.length+=X.objectMode?1:C.length,x)X.buffer.unshift(C);else X.buffer.push(C);if(X.needReadable)Y(q,X)}n(q,X)}E.prototype.isPaused=function(){const q=this._readableState;return q.paused===!0||q.flowing===!1},E.prototype.setEncoding=function(q){const X=new aq(q);this._readableState.decoder=X,this._readableState.encoding=this._readableState.decoder.encoding;const C=this._readableState.buffer;let x="";for(let v=C.length;v>0;v--)x+=X.write(C.shift());if(x!=="")C.push(x);return this._readableState.length=x.length,this};var e=1073741824;function Hq(q){if(q>e)throw new J("size","<= 1GiB",q);else q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++;return q}function $q(q,X){if(q<=0||X.length===0&&X.ended)return 0;if(X.objectMode)return 1;if(y(q)){if(X.flowing&&X.length)return X.buffer.first().length;return X.length}if(q<=X.length)return q;return X.ended?X.length:0}E.prototype.read=function(q){if(!G(q))q=A(q,10);const X=this._readableState,C=q;if(q>X.highWaterMark)X.highWaterMark=Hq(q);if(q!==0)X.emittedReadable=!1;if(q===0&&X.needReadable&&((X.highWaterMark!==0?X.length>=X.highWaterMark:X.length>0)||X.ended)){if(X.length===0&&X.ended)H(this);else Y(this,X);return null}if(q=$q(q,X),q===0&&X.ended){if(X.length===0)H(this);return null}let x=X.needReadable;if(X.length===0||X.length-q<X.highWaterMark)x=!0;if(X.ended||X.reading||X.destroyed||X.errored||!X.constructed)x=!1;else if(x){if(X.reading=!0,X.sync=!0,X.length===0)X.needReadable=!0;try{var v=this._read(X.highWaterMark);if(xq(v)){const Zq=Bun.peek(v);if(Zq!==v)v=Zq}if(xq(v)&&v?.then&&oq(v.then))v.then(W,function(Zq){b(this,Zq)})}catch(Zq){b(this,Zq)}if(X.sync=!1,!X.reading)q=$q(C,X)}let Jq;if(q>0)Jq=Q(q,X);else Jq=null;if(Jq===null)X.needReadable=X.length<=X.highWaterMark,q=0;else if(X.length-=q,X.multiAwaitDrain)X.awaitDrainWriters.clear();else X.awaitDrainWriters=null;if(X.length===0){if(!X.ended)X.needReadable=!0;if(C!==q&&X.ended)H(this)}if(Jq!==null&&!X.errorEmitted&&!X.closeEmitted)X.dataEmitted=!0,this.emit("data",Jq);return Jq},E.prototype._read=function(q){throw new u("_read()")},E.prototype.pipe=function(q,X){const C=this,x=this._readableState;if(x.pipes.length===1){if(!x.multiAwaitDrain)x.multiAwaitDrain=!0,x.awaitDrainWriters=new k(x.awaitDrainWriters?[x.awaitDrainWriters]:[])}x.pipes.push(q);const Jq=(!X||X.end!==!1)&&q!==process.stdout&&q!==process.stderr?Oq:Pq;if(x.endEmitted)Xq(Jq);else C.once("end",Jq);q.on("unpipe",Zq);function Zq(jq,Nq){if(jq===C){if(Nq&&Nq.hasUnpiped===!1)Nq.hasUnpiped=!0,nq()}}function Oq(){q.end()}let Lq,kq=!1;function nq(){if(q.removeListener("close",wq),q.removeListener("finish",vq),Lq)q.removeListener("drain",Lq);if(q.removeListener("error",Dq),q.removeListener("unpipe",Zq),C.removeListener("end",Oq),C.removeListener("end",Pq),C.removeListener("data",yq),kq=!0,Lq&&x.awaitDrainWriters&&(!q._writableState||q._writableState.needDrain))Lq()}function fq(){if(!kq){if(x.pipes.length===1&&x.pipes[0]===q)x.awaitDrainWriters=q,x.multiAwaitDrain=!1;else if(x.pipes.length>1&&x.pipes.includes(q))x.awaitDrainWriters.add(q);C.pause()}if(!Lq)Lq=qq(C,q),q.on("drain",Lq)}C.on("data",yq);function yq(jq){if(q.write(jq)===!1)fq()}function Dq(jq){if(Gq("onerror",jq),Pq(),q.removeListener("error",Dq),q.listenerCount("error")===0){const Nq=q._writableState||q._readableState;if(Nq&&!Nq.errorEmitted)b(q,jq);else q.emit("error",jq)}}p(q,"error",Dq);function wq(){q.removeListener("finish",vq),Pq()}q.once("close",wq);function vq(){Gq("onfinish"),q.removeListener("close",wq),Pq()}q.once("finish",vq);function Pq(){Gq("unpipe"),C.unpipe(q)}if(q.emit("pipe",C),q.writableNeedDrain===!0){if(x.flowing)fq()}else if(!x.flowing)Gq("pipe resume"),C.resume();return q};function qq(q,X){return function C(){const x=q._readableState;if(x.awaitDrainWriters===X)Gq("pipeOnDrain",1),x.awaitDrainWriters=null;else if(x.multiAwaitDrain)Gq("pipeOnDrain",x.awaitDrainWriters.size),x.awaitDrainWriters.delete(X);if((!x.awaitDrainWriters||x.awaitDrainWriters.size===0)&&q.listenerCount("data"))q.resume()}}E.prototype.unpipe=function(q){const X=this._readableState,C={hasUnpiped:!1};if(X.pipes.length===0)return this;if(!q){const v=X.pipes;X.pipes=[],this.pause();for(let Jq=0;Jq<v.length;Jq++)v[Jq].emit("unpipe",this,{hasUnpiped:!1});return this}const x=B(X.pipes,q);if(x===-1)return this;if(X.pipes.splice(x,1),X.pipes.length===0)this.pause();return q.emit("unpipe",this,C),this},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(q,X){const C=D.prototype.removeListener.call(this,q,X);if(q==="readable")Xq(Kq,this);return C},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(q){const X=D.prototype.removeAllListeners.apply(this,arguments);if(q==="readable"||q===void 0)Xq(Kq,this);return X};function Kq(q){const X=q._readableState;if(X.readableListening=q.listenerCount("readable")>0,X.resumeScheduled&&X.paused===!1)X.flowing=!0;else if(q.listenerCount("data")>0)q.resume();else if(!X.readableListening)X.flowing=null}function Qq(q){q.read(0)}E.prototype.resume=function(){const q=this._readableState;if(!q.flowing)q.flowing=!q.readableListening,t(this,q);return q.paused=!1,this},E.prototype.pause=function(){if(this._readableState.flowing!==!1)this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},E.prototype.wrap=function(q){let X=!1;q.on("data",(x)=>{if(!this.push(x)&&q.pause)X=!0,q.pause()}),q.on("end",()=>{this.push(null)}),q.on("error",(x)=>{b(this,x)}),q.on("close",()=>{this.destroy()}),q.on("destroy",()=>{this.destroy()}),this._read=()=>{if(X&&q.resume)X=!1,q.resume()};const C=R(q);for(let x=1;x<C.length;x++){const v=C[x];if(this[v]===void 0&&typeof q[v]==="function")this[v]=q[v].bind(q)}return this},E.prototype[c]=function(){return V(this)},E.prototype.iterator=function(q){if(q!==void 0)S(q,"options");return V(this,q)};function V(q,X){if(typeof q.read!=="function")q=E.wrap(q,{objectMode:!0});const C=h(q,X);return C.stream=q,C}async function*h(q,X){let C=W;function x(Zq){if(this===q)C(),C=W;else C=Zq}q.on("readable",x);let v;const Jq=I(q,{writable:!1},(Zq)=>{v=Zq?F(v,Zq):null,C(),C=W});try{while(!0){const Zq=q.destroyed?null:q.read();if(Zq!==null)yield Zq;else if(v)throw v;else if(v===null)return;else await new g(x)}}catch(Zq){throw v=F(v,Zq),v}finally{if((v||(X===null||X===void 0?void 0:X.destroyOnReturn)!==!1)&&(v===void 0||q._readableState.autoDestroy))K.destroyer(q,null);else q.off("readable",x),Jq()}}M(E.prototype,{readable:{get(){const q=this._readableState;return!!q&&q.readable!==!1&&!q.destroyed&&!q.errorEmitted&&!q.endEmitted},set(q){if(this._readableState)this._readableState.readable=!!q}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(q){if(this._readableState)this._readableState.flowing=q}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(q){if(!this._readableState)return;this._readableState.destroyed=q}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),E._fromList=Q;function Q(q,X){if(X.length===0)return null;let C;if(X.objectMode)C=X.buffer.shift();else if(!q||q>=X.length){if(X.decoder)C=X.buffer.join("");else if(X.buffer.length===1)C=X.buffer.first();else C=X.buffer.concat(X.length);X.buffer.clear()}else C=X.buffer.consume(q,X.decoder);return C}function H(q){const X=q._readableState;if(!X.endEmitted)X.ended=!0,Xq(L,X,q)}function L(q,X){if(!q.errored&&!q.closeEmitted&&!q.endEmitted&&q.length===0){if(q.endEmitted=!0,X.emit("end"),X.writable&&X.allowHalfOpen===!1)Xq(d,X);else if(q.autoDestroy){const C=X._writableState;if(!C||C.autoDestroy&&(C.finished||C.writable===!1))X.destroy()}}}function d(q){if(q.writable&&!q.writableEnded&&!q.destroyed)q.end()}E.from=function(q,X){return N(E,q,X)};var f={newStreamReadableFromReadableStream:Z};function r(){if(f===void 0)f={};return f}E.fromWeb=function(q,X){return r().newStreamReadableFromReadableStream(q,X)},E.toWeb=function(q){return r().newReadableStreamFromStreamReadable(q)},E.wrap=function(q,X){var C,x;return new E({objectMode:(C=(x=q.readableObjectMode)!==null&&x!==void 0?x:q.objectMode)!==null&&C!==void 0?C:!0,...X,destroy(v,Jq){K.destroyer(q,v),Jq(v)}}).wrap(q)}}}),bq=Bq({"node_modules/readable-stream/lib/internal/streams/writable.js"(a,j){var{ArrayPrototypeSlice:B,Error:G,FunctionPrototypeSymbolHasInstance:y,ObjectDefineProperty:A,ObjectDefineProperties:M,ObjectSetPrototypeOf:R,StringPrototypeToLowerCase:T,Symbol:g,SymbolHasInstance:k}=Vq(),c=Rq().Stream,O=Tq(),{addAbortSignal:l}=Sq(),{getHighWaterMark:D,getDefaultHighWaterMark:p}=JQ(),{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_MULTIPLE_CALLBACK:Z,ERR_STREAM_CANNOT_PIPE:U,ERR_STREAM_DESTROYED:I,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:t,ERR_STREAM_WRITE_AFTER_END:i,ERR_UNKNOWN_ENCODING:$}=Wq().codes,{errorOrDestroy:n}=O;function Y(Q={}){const H=this instanceof Mq();if(!H&&!y(Y,this))return new Y(Q);if(this._writableState=new m(Q,this,H),Q){if(typeof Q.write==="function")this._write=Q.write;if(typeof Q.writev==="function")this._writev=Q.writev;if(typeof Q.destroy==="function")this._destroy=Q.destroy;if(typeof Q.final==="function")this._final=Q.final;if(typeof Q.construct==="function")this._construct=Q.construct;if(Q.signal)l(Q.signal,this)}c.call(this,Q),O.construct(this,()=>{const L=this._writableState;if(!L.writing)s(this,L);qq(this,L)})}R(Y.prototype,c.prototype),R(Y,c),j.exports=Y;function K(){}var F=g("kOnFinished");function m(Q,H,L){if(typeof L!=="boolean")L=H instanceof Mq();if(this.objectMode=!!(Q&&Q.objectMode),L)this.objectMode=this.objectMode||!!(Q&&Q.writableObjectMode);this.highWaterMark=Q?D(this,Q,"writableHighWaterMark",L):p(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const d=!!(Q&&Q.decodeStrings===!1);this.decodeStrings=!d,this.defaultEncoding=Q&&Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=N.bind(void 0,H),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,u(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!Q||Q.emitClose!==!1,this.autoDestroy=!Q||Q.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[F]=[]}function u(Q){Q.buffered=[],Q.bufferedIndex=0,Q.allBuffers=!0,Q.allNoop=!0}m.prototype.getBuffer=function Q(){return B(this.buffered,this.bufferedIndex)},A(m.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),A(Y,k,{value:function(Q){if(y(this,Q))return!0;if(this!==Y)return!1;return Q&&Q._writableState instanceof m}}),Y.prototype.pipe=function(){n(this,new U)};function J(Q,H,L,d){const f=Q._writableState;if(typeof L==="function")d=L,L=f.defaultEncoding;else{if(!L)L=f.defaultEncoding;else if(L!=="buffer"&&!Buffer.isEncoding(L))throw new $(L);if(typeof d!=="function")d=K}if(H===null)throw new t;else if(!f.objectMode)if(typeof H==="string"){if(f.decodeStrings!==!1)H=Buffer.from(H,L),L="buffer"}else if(H instanceof Buffer)L="buffer";else if(c._isUint8Array(H))H=c._uint8ArrayToBuffer(H),L="buffer";else throw new E("chunk",["string","Buffer","Uint8Array"],H);let r;if(f.ending)r=new i;else if(f.destroyed)r=new I("write");if(r)return Xq(d,r),n(Q,r,!0),r;return f.pendingcb++,z(Q,f,H,L,d)}Y.prototype.write=function(Q,H,L){return J(this,Q,H,L)===!0},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){const Q=this._writableState;if(Q.corked){if(Q.corked--,!Q.writing)s(this,Q)}},Y.prototype.setDefaultEncoding=function Q(H){if(typeof H==="string")H=T(H);if(!Buffer.isEncoding(H))throw new $(H);return this._writableState.defaultEncoding=H,this};function z(Q,H,L,d,f){const r=H.objectMode?1:L.length;H.length+=r;const q=H.length<H.highWaterMark;if(!q)H.needDrain=!0;if(H.writing||H.corked||H.errored||!H.constructed){if(H.buffered.push({chunk:L,encoding:d,callback:f}),H.allBuffers&&d!=="buffer")H.allBuffers=!1;if(H.allNoop&&f!==K)H.allNoop=!1}else H.writelen=r,H.writecb=f,H.writing=!0,H.sync=!0,Q._write(L,d,H.onwrite),H.sync=!1;return q&&!H.errored&&!H.destroyed}function w(Q,H,L,d,f,r,q){if(H.writelen=d,H.writecb=q,H.writing=!0,H.sync=!0,H.destroyed)H.onwrite(new I("write"));else if(L)Q._writev(f,H.onwrite);else Q._write(f,r,H.onwrite);H.sync=!1}function S(Q,H,L,d){--H.pendingcb,d(L),o(H),n(Q,L)}function N(Q,H){const L=Q._writableState,d=L.sync,f=L.writecb;if(typeof f!=="function"){n(Q,new Z);return}if(L.writing=!1,L.writecb=null,L.length-=L.writelen,L.writelen=0,H){if(Error.captureStackTrace(H),!L.errored)L.errored=H;if(Q._readableState&&!Q._readableState.errored)Q._readableState.errored=H;if(d)Xq(S,Q,L,H,f);else S(Q,L,H,f)}else{if(L.buffered.length>L.bufferedIndex)s(Q,L);if(d)if(L.afterWriteTickInfo!==null&&L.afterWriteTickInfo.cb===f)L.afterWriteTickInfo.count++;else L.afterWriteTickInfo={count:1,cb:f,stream:Q,state:L},Xq(W,L.afterWriteTickInfo);else b(Q,L,1,f)}}function W({stream:Q,state:H,count:L,cb:d}){return H.afterWriteTickInfo=null,b(Q,H,L,d)}function b(Q,H,L,d){if(!H.ending&&!Q.destroyed&&H.length===0&&H.needDrain)H.needDrain=!1,Q.emit("drain");while(L-- >0)H.pendingcb--,d();if(H.destroyed)o(H);qq(Q,H)}function o(Q){if(Q.writing)return;for(let f=Q.bufferedIndex;f<Q.buffered.length;++f){var H;const{chunk:r,callback:q}=Q.buffered[f],X=Q.objectMode?1:r.length;Q.length-=X,q((H=Q.errored)!==null&&H!==void 0?H:new I("write"))}const L=Q[F].splice(0);for(let f=0;f<L.length;f++){var d;L[f]((d=Q.errored)!==null&&d!==void 0?d:new I("end"))}u(Q)}function s(Q,H){if(H.corked||H.bufferProcessing||H.destroyed||!H.constructed)return;const{buffered:L,bufferedIndex:d,objectMode:f}=H,r=L.length-d;if(!r)return;let q=d;if(H.bufferProcessing=!0,r>1&&Q._writev){H.pendingcb-=r-1;const X=H.allNoop?K:(x)=>{for(let v=q;v<L.length;++v)L[v].callback(x)},C=H.allNoop&&q===0?L:B(L,q);C.allBuffers=H.allBuffers,w(Q,H,!0,H.length,C,"",X),u(H)}else{do{const{chunk:X,encoding:C,callback:x}=L[q];L[q++]=null;const v=f?1:X.length;w(Q,H,!1,v,X,C,x)}while(q<L.length&&!H.writing);if(q===L.length)u(H);else if(q>256)L.splice(0,q),H.bufferedIndex=0;else H.bufferedIndex=q}H.bufferProcessing=!1}Y.prototype._write=function(Q,H,L){if(this._writev)this._writev([{chunk:Q,encoding:H}],L);else throw new P("_write()")},Y.prototype._writev=null,Y.prototype.end=function(Q,H,L,d=!1){const f=this._writableState;if(typeof Q==="function")L=Q,Q=null,H=null;else if(typeof H==="function")L=H,H=null;let r;if(Q!==null&&Q!==void 0){let q;if(!d)q=J(this,Q,H);else q=this.write(Q,H);if(q instanceof G)r=q}if(f.corked)f.corked=1,this.uncork();if(r)this.emit("error",r);else if(!f.errored&&!f.ending)f.ending=!0,qq(this,f,!0),f.ended=!0;else if(f.finished)r=new _("end");else if(f.destroyed)r=new I("end");if(typeof L==="function")if(r||f.finished)Xq(L,r);else f[F].push(L);return this};function e(Q,H){var L=Q.ending&&!Q.destroyed&&Q.constructed&&Q.length===0&&!Q.errored&&Q.buffered.length===0&&!Q.finished&&!Q.writing&&!Q.errorEmitted&&!Q.closeEmitted;return Gq("needFinish",L,H),L}function Hq(Q,H){let L=!1;function d(f){if(L){n(Q,f!==null&&f!==void 0?f:Z());return}if(L=!0,H.pendingcb--,f){const r=H[F].splice(0);for(let q=0;q<r.length;q++)r[q](f);n(Q,f,H.sync)}else if(e(H))H.prefinished=!0,Q.emit("prefinish"),H.pendingcb++,Xq(Kq,Q,H)}H.sync=!0,H.pendingcb++;try{Q._final(d)}catch(f){d(f)}H.sync=!1}function $q(Q,H){if(!H.prefinished&&!H.finalCalled)if(typeof Q._final==="function"&&!H.destroyed)H.finalCalled=!0,Hq(Q,H);else H.prefinished=!0,Q.emit("prefinish")}function qq(Q,H,L){if(!e(H,Q.__id))return;if($q(Q,H),H.pendingcb===0){if(L)H.pendingcb++,Xq((d,f)=>{if(e(f))Kq(d,f);else f.pendingcb--},Q,H);else if(e(H))H.pendingcb++,Kq(Q,H)}}function Kq(Q,H){H.pendingcb--,H.finished=!0;const L=H[F].splice(0);for(let d=0;d<L.length;d++)L[d]();if(Q.emit("finish"),H.autoDestroy){const d=Q._readableState;if(!d||d.autoDestroy&&(d.endEmitted||d.readable===!1))Q.destroy()}}M(Y.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(Q){if(this._writableState)this._writableState.destroyed=Q}},writable:{get(){const Q=this._writableState;return!!Q&&Q.writable!==!1&&!Q.destroyed&&!Q.errored&&!Q.ending&&!Q.ended},set(Q){if(this._writableState)this._writableState.writable=!!Q}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const Q=this._writableState;if(!Q)return!1;return!Q.destroyed&&!Q.ending&&Q.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Qq=O.destroy;Y.prototype.destroy=function(Q,H){const L=this._writableState;if(!L.destroyed&&(L.bufferedIndex<L.buffered.length||L[F].length))Xq(o,L);return Qq.call(this,Q,H),this},Y.prototype._undestroy=O.undestroy,Y.prototype._destroy=function(Q,H){H(Q)},Y.prototype[Iq.captureRejectionSymbol]=function(Q){this.destroy(Q)};var V;function h(){if(V===void 0)V={};return V}Y.fromWeb=function(Q,H){return h().newStreamWritableFromWritableStream(Q,H)},Y.toWeb=function(Q){return h().newWritableStreamFromStreamWritable(Q)}}}),HQ=Bq({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(a,j){var{isReadable:B,isWritable:G,isIterable:y,isNodeStream:A,isReadableNodeStream:M,isWritableNodeStream:R,isDuplexNodeStream:T}=Eq(),g=Fq(),{AbortError:k,codes:{ERR_INVALID_ARG_TYPE:c,ERR_INVALID_RETURN_VALUE:O}}=Wq(),{destroyer:l}=Tq(),D=Mq(),p=_q(),{createDeferredPromise:E}=Aq(),P=hq(),Z=typeof Blob!=="undefined"?function i($){return $ instanceof Blob}:function i($){return!1},{FunctionPrototypeCall:U}=Vq();class I extends D{constructor(i){super(i);if((i===null||i===void 0?void 0:i.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((i===null||i===void 0?void 0:i.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}j.exports=function i($,n){if(T($))return $;if(M($))return t({readable:$});if(R($))return t({writable:$});if(A($))return t({writable:!1,readable:!1});if(typeof $==="function"){const{value:K,write:F,final:m,destroy:u}=_($);if(y(K))return P(I,K,{objectMode:!0,write:F,final:m,destroy:u});const J=K===null||K===void 0?void 0:K.then;if(typeof J==="function"){let z;const w=U(J,K,(S)=>{if(S!=null)throw new O("nully","body",S)},(S)=>{l(z,S)});return z=new I({objectMode:!0,readable:!1,write:F,final(S){m(async()=>{try{await w,Xq(S,null)}catch(N){Xq(S,N)}})},destroy:u})}throw new O("Iterable, AsyncIterable or AsyncFunction",n,K)}if(Z($))return i($.arrayBuffer());if(y($))return P(I,$,{objectMode:!0,writable:!1});if(typeof($===null||$===void 0?void 0:$.writable)==="object"||typeof($===null||$===void 0?void 0:$.readable)==="object"){const K=$!==null&&$!==void 0&&$.readable?M($===null||$===void 0?void 0:$.readable)?$===null||$===void 0?void 0:$.readable:i($.readable):void 0,F=$!==null&&$!==void 0&&$.writable?R($===null||$===void 0?void 0:$.writable)?$===null||$===void 0?void 0:$.writable:i($.writable):void 0;return t({readable:K,writable:F})}const Y=$===null||$===void 0?void 0:$.then;if(typeof Y==="function"){let K;return U(Y,$,(F)=>{if(F!=null)K.push(F);K.push(null)},(F)=>{l(K,F)}),K=new I({objectMode:!0,writable:!1,read(){}})}throw new c(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],$)};function _(i){let{promise:$,resolve:n}=E();const Y=new AbortController,K=Y.signal;return{value:i(async function*(){while(!0){const m=$;$=null;const{chunk:u,done:J,cb:z}=await m;if(Xq(z),J)return;if(K.aborted)throw new k(void 0,{cause:K.reason});({promise:$,resolve:n}=E()),yield u}}(),{signal:K}),write(m,u,J){const z=n;n=null,z({chunk:m,done:!1,cb:J})},final(m){const u=n;n=null,u({done:!0,cb:m})},destroy(m,u){Y.abort(),u(m)}}}function t(i){const $=i.readable&&typeof i.readable.read!=="function"?p.wrap(i.readable):i.readable,n=i.writable;let Y=!!B($),K=!!G(n),F,m,u,J,z;function w(S){const N=J;if(J=null,N)N(S);else if(S)z.destroy(S);else if(!Y&&!K)z.destroy()}if(z=new I({readableObjectMode:!!($!==null&&$!==void 0&&$.readableObjectMode),writableObjectMode:!!(n!==null&&n!==void 0&&n.writableObjectMode),readable:Y,writable:K}),K)g(n,(S)=>{if(K=!1,S)l($,S);w(S)}),z._write=function(S,N,W){if(n.write(S,N))W();else F=W},z._final=function(S){n.end(),m=S},n.on("drain",function(){if(F){const S=F;F=null,S()}}),n.on("finish",function(){if(m){const S=m;m=null,S()}});if(Y)g($,(S)=>{if(Y=!1,S)l($,S);w(S)}),$.on("readable",function(){if(u){const S=u;u=null,S()}}),$.on("end",function(){z.push(null)}),z._read=function(){while(!0){const S=$.read();if(S===null){u=z._read;return}if(!z.push(S))return}};return z._destroy=function(S,N){if(!S&&J!==null)S=new k;if(u=null,F=null,m=null,J===null)N(S);else J=N,l(n,S),l($,S)},z}}}),Mq=Bq({"node_modules/readable-stream/lib/internal/streams/duplex.js"(a,j){var{ObjectDefineProperties:B,ObjectGetOwnPropertyDescriptor:G,ObjectKeys:y,ObjectSetPrototypeOf:A}=Vq(),M=_q();function R(O){if(!(this instanceof R))return new R(O);if(M.call(this,O),Uq.call(this,O),O){if(this.allowHalfOpen=O.allowHalfOpen!==!1,O.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(O.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}j.exports=R,A(R.prototype,M.prototype),A(R,M);for(var T in Uq.prototype)if(!R.prototype[T])R.prototype[T]=Uq.prototype[T];B(R.prototype,{writable:G(Uq.prototype,"writable"),writableHighWaterMark:G(Uq.prototype,"writableHighWaterMark"),writableObjectMode:G(Uq.prototype,"writableObjectMode"),writableBuffer:G(Uq.prototype,"writableBuffer"),writableLength:G(Uq.prototype,"writableLength"),writableFinished:G(Uq.prototype,"writableFinished"),writableCorked:G(Uq.prototype,"writableCorked"),writableEnded:G(Uq.prototype,"writableEnded"),writableNeedDrain:G(Uq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(O){if(this._readableState&&this._writableState)this._readableState.destroyed=O,this._writableState.destroyed=O}}});var g;function k(){if(g===void 0)g={};return g}R.fromWeb=function(O,l){return k().newStreamDuplexFromReadableWritablePair(O,l)},R.toWeb=function(O){return k().newReadableWritablePairFromDuplex(O)};var c;R.from=function(O){if(!c)c=HQ();return c(O,"body")}}}),mq=Bq({"node_modules/readable-stream/lib/internal/streams/transform.js"(a,j){var{ObjectSetPrototypeOf:B,Symbol:G}=Vq(),{ERR_METHOD_NOT_IMPLEMENTED:y}=Wq().codes,A=Mq();function M(k){if(!(this instanceof M))return new M(k);if(A.call(this,k),this._readableState.sync=!1,this[R]=null,k){if(typeof k.transform==="function")this._transform=k.transform;if(typeof k.flush==="function")this._flush=k.flush}this.on("prefinish",g.bind(this))}B(M.prototype,A.prototype),B(M,A),j.exports=M;var R=G("kCallback");function T(k){if(typeof this._flush==="function"&&!this.destroyed)this._flush((c,O)=>{if(c){if(k)k(c);else this.destroy(c);return}if(O!=null)this.push(O);if(this.push(null),k)k()});else if(this.push(null),k)k()}function g(){if(this._final!==T)T.call(this)}M.prototype._final=T,M.prototype._transform=function(k,c,O){throw new y("_transform()")},M.prototype._write=function(k,c,O){const l=this._readableState,D=this._writableState,p=l.length;this._transform(k,c,(E,P)=>{if(E){O(E);return}if(P!=null)this.push(P);if(D.ended||p===l.length||l.length<l.highWaterMark||l.highWaterMark===0||l.length===0)O();else this[R]=O})},M.prototype._read=function(){if(this[R]){const k=this[R];this[R]=null,k()}}}}),cq=Bq({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(a,j){var{ObjectSetPrototypeOf:B}=Vq(),G=mq();function y(A){if(!(this instanceof y))return new y(A);G.call(this,A)}B(y.prototype,G.prototype),B(y,G),y.prototype._transform=function(A,M,R){R(null,A)},j.exports=y}}),gq=Bq({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(a,j){var{ArrayIsArray:B,Promise:G,SymbolAsyncIterator:y}=Vq(),A=Fq(),{once:M}=Aq(),R=Tq(),T=Mq(),{aggregateTwoErrors:g,codes:{ERR_INVALID_ARG_TYPE:k,ERR_INVALID_RETURN_VALUE:c,ERR_MISSING_ARGS:O,ERR_STREAM_DESTROYED:l},AbortError:D}=Wq(),{validateFunction:p,validateAbortSignal:E}=Cq(),{isIterable:P,isReadable:Z,isReadableNodeStream:U,isNodeStream:I}=Eq(),_,t;function i(J,z,w){let S=!1;J.on("close",()=>{S=!0});const N=A(J,{readable:z,writable:w},(W)=>{S=!W});return{destroy:(W)=>{if(S)return;S=!0,R.destroyer(J,W||new l("pipe"))},cleanup:N}}function $(J){return p(J[J.length-1],"streams[stream.length - 1]"),J.pop()}function n(J){if(P(J))return J;else if(U(J))return Y(J);throw new k("val",["Readable","Iterable","AsyncIterable"],J)}async function*Y(J){if(!t)t=_q();yield*t.prototype[y].call(J)}async function K(J,z,w,{end:S}){let N,W=null;const b=(e)=>{if(e)N=e;if(W){const Hq=W;W=null,Hq()}},o=()=>new G((e,Hq)=>{if(N)Hq(N);else W=()=>{if(N)Hq(N);else e()}});z.on("drain",b);const s=A(z,{readable:!1},b);try{if(z.writableNeedDrain)await o();for await(let e of J)if(!z.write(e))await o();if(S)z.end();await o(),w()}catch(e){w(N!==e?g(N,e):e)}finally{s(),z.off("drain",b)}}function F(...J){return m(J,M($(J)))}function m(J,z,w){if(J.length===1&&B(J[0]))J=J[0];if(J.length<2)throw new O("streams");const S=new AbortController,N=S.signal,W=w===null||w===void 0?void 0:w.signal,b=[];E(W,"options.signal");function o(){Kq(new D)}W===null||W===void 0||W.addEventListener("abort",o);let s,e;const Hq=[];let $q=0;function qq(h){Kq(h,--$q===0)}function Kq(h,Q){if(h&&(!s||s.code==="ERR_STREAM_PREMATURE_CLOSE"))s=h;if(!s&&!Q)return;while(Hq.length)Hq.shift()(s);if(W===null||W===void 0||W.removeEventListener("abort",o),S.abort(),Q){if(!s)b.forEach((H)=>H());Xq(z,s,e)}}let Qq;for(let h=0;h<J.length;h++){const Q=J[h],H=h<J.length-1,L=h>0,d=H||(w===null||w===void 0?void 0:w.end)!==!1,f=h===J.length-1;if(I(Q)){let r=function(q){if(q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE")qq(q)};if(d){const{destroy:q,cleanup:X}=i(Q,H,L);if(Hq.push(q),Z(Q)&&f)b.push(X)}if(Q.on("error",r),Z(Q)&&f)b.push(()=>{Q.removeListener("error",r)})}if(h===0)if(typeof Q==="function"){if(Qq=Q({signal:N}),!P(Qq))throw new c("Iterable, AsyncIterable or Stream","source",Qq)}else if(P(Q)||U(Q))Qq=Q;else Qq=T.from(Q);else if(typeof Q==="function")if(Qq=n(Qq),Qq=Q(Qq,{signal:N}),H){if(!P(Qq,!0))throw new c("AsyncIterable",`transform[${h-1}]`,Qq)}else{var V;if(!_)_=cq();const r=new _({objectMode:!0}),q=(V=Qq)===null||V===void 0?void 0:V.then;if(typeof q==="function")$q++,q.call(Qq,(x)=>{if(e=x,x!=null)r.write(x);if(d)r.end();Xq(qq)},(x)=>{r.destroy(x),Xq(qq,x)});else if(P(Qq,!0))$q++,K(Qq,r,qq,{end:d});else throw new c("AsyncIterable or Promise","destination",Qq);Qq=r;const{destroy:X,cleanup:C}=i(Qq,!1,!0);if(Hq.push(X),f)b.push(C)}else if(I(Q)){if(U(Qq)){$q+=2;const r=u(Qq,Q,qq,{end:d});if(Z(Q)&&f)b.push(r)}else if(P(Qq))$q++,K(Qq,Q,qq,{end:d});else throw new k("val",["Readable","Iterable","AsyncIterable"],Qq);Qq=Q}else Qq=T.from(Q)}if(N!==null&&N!==void 0&&N.aborted||W!==null&&W!==void 0&&W.aborted)Xq(o);return Qq}function u(J,z,w,{end:S}){if(J.pipe(z,{end:S}),S)J.once("end",()=>z.end());else w();return A(J,{readable:!0,writable:!1},(N)=>{const W=J._readableState;if(N&&N.code==="ERR_STREAM_PREMATURE_CLOSE"&&W&&W.ended&&!W.errored&&!W.errorEmitted)J.once("end",w).once("error",w);else w(N)}),A(z,{readable:!1,writable:!0},w)}j.exports={pipelineImpl:m,pipeline:F}}}),KQ=Bq({"node_modules/readable-stream/lib/internal/streams/compose.js"(a,j){var{pipeline:B}=gq(),G=Mq(),{destroyer:y}=Tq(),{isNodeStream:A,isReadable:M,isWritable:R}=Eq(),{AbortError:T,codes:{ERR_INVALID_ARG_VALUE:g,ERR_MISSING_ARGS:k}}=Wq();j.exports=function c(...O){if(O.length===0)throw new k("streams");if(O.length===1)return G.from(O[0]);const l=[...O];if(typeof O[0]==="function")O[0]=G.from(O[0]);if(typeof O[O.length-1]==="function"){const $=O.length-1;O[$]=G.from(O[$])}for(let $=0;$<O.length;++$){if(!A(O[$]))continue;if($<O.length-1&&!M(O[$]))throw new g(`streams[${$}]`,l[$],"must be readable");if($>0&&!R(O[$]))throw new g(`streams[${$}]`,l[$],"must be writable")}let D,p,E,P,Z;function U($){const n=P;if(P=null,n)n($);else if($)Z.destroy($);else if(!i&&!t)Z.destroy()}const I=O[0],_=B(O,U),t=!!R(I),i=!!M(_);if(Z=new G({writableObjectMode:!!(I!==null&&I!==void 0&&I.writableObjectMode),readableObjectMode:!!(_!==null&&_!==void 0&&_.writableObjectMode),writable:t,readable:i}),t)Z._write=function($,n,Y){if(I.write($,n))Y();else D=Y},Z._final=function($){I.end(),p=$},I.on("drain",function(){if(D){const $=D;D=null,$()}}),_.on("finish",function(){if(p){const $=p;p=null,$()}});if(i)_.on("readable",function(){if(E){const $=E;E=null,$()}}),_.on("end",function(){Z.push(null)}),Z._read=function(){while(!0){const $=_.read();if($===null){E=Z._read;return}if(!Z.push($))return}};return Z._destroy=function($,n){if(!$&&P!==null)$=new T;if(E=null,D=null,p=null,P===null)n($);else P=n,y(_,$)},Z}}}),dq=Bq({"node_modules/readable-stream/lib/stream/promises.js"(a,j){var{ArrayPrototypePop:B,Promise:G}=Vq(),{isIterable:y,isNodeStream:A}=Eq(),{pipelineImpl:M}=gq(),{finished:R}=Fq();function T(...g){return new G((k,c)=>{let O,l;const D=g[g.length-1];if(D&&typeof D==="object"&&!A(D)&&!y(D)){const p=B(g);O=p.signal,l=p.end}M(g,(p,E)=>{if(p)c(p);else k(E)},{signal:O,end:l})})}j.exports={finished:R,pipeline:T}}}),ZQ=Bq({"node_modules/readable-stream/lib/stream.js"(a,j){var{ObjectDefineProperty:B,ObjectKeys:G,ReflectApply:y}=Vq(),{promisify:{custom:A}}=Aq(),{streamReturningOperators:M,promiseReturningOperators:R}=XQ(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:T}}=Wq(),g=KQ(),{pipeline:k}=gq(),{destroyer:c}=Tq(),O=Fq(),l=dq(),D=Eq(),p=j.exports=Rq().Stream;p.isDisturbed=D.isDisturbed,p.isErrored=D.isErrored,p.isWritable=D.isWritable,p.isReadable=D.isReadable,p.Readable=_q();for(let P of G(M)){let Z=function(...I){if(new.target)throw T();return p.Readable.from(y(U,this,I))};const U=M[P];B(Z,"name",{value:U.name}),B(Z,"length",{value:U.length}),B(p.Readable.prototype,P,{value:Z,enumerable:!1,configurable:!0,writable:!0})}for(let P of G(R)){let Z=function(...I){if(new.target)throw T();return y(U,this,I)};const U=R[P];B(Z,"name",{value:U.name}),B(Z,"length",{value:U.length}),B(p.Readable.prototype,P,{value:Z,enumerable:!1,configurable:!0,writable:!0})}p.Writable=bq(),p.Duplex=Mq(),p.Transform=mq(),p.PassThrough=cq(),p.pipeline=k;var{addAbortSignal:E}=Sq();p.addAbortSignal=E,p.finished=O,p.destroy=c,p.compose=g,B(p,"promises",{configurable:!0,enumerable:!0,get(){return l}}),B(k,A,{enumerable:!0,get(){return l.pipeline}}),B(O,A,{enumerable:!0,get(){return l.finished}}),p.Stream=p,p._isUint8Array=function P(Z){return Z instanceof Uint8Array},p._uint8ArrayToBuffer=function P(Z){return new Buffer(Z.buffer,Z.byteOffset,Z.byteLength)}}}),BQ=Bq({"node_modules/readable-stream/lib/ours/index.js"(a,j){const B=ZQ(),G=dq(),y=B.Readable.destroy;j.exports=B,j.exports._uint8ArrayToBuffer=B._uint8ArrayToBuffer,j.exports._isUint8Array=B._isUint8Array,j.exports.isDisturbed=B.isDisturbed,j.exports.isErrored=B.isErrored,j.exports.isWritable=B.isWritable,j.exports.isReadable=B.isReadable,j.exports.Readable=B.Readable,j.exports.Writable=B.Writable,j.exports.Duplex=B.Duplex,j.exports.Transform=B.Transform,j.exports.PassThrough=B.PassThrough,j.exports.addAbortSignal=B.addAbortSignal,j.exports.finished=B.finished,j.exports.destroy=B.destroy,j.exports.destroy=y,j.exports.pipeline=B.pipeline,j.exports.compose=B.compose,j.exports._getNativeReadableStreamPrototype=lq,j.exports.NativeWritable=iq,zq.defineProperty(B,"promises",{configurable:!0,enumerable:!0,get(){return G}}),j.exports.Stream=B.Stream,j.exports.default=j.exports}}),$Q={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Uq=bq(),iq=class a extends Uq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(j,B={}){super(B);this._construct=this.#H,this._destroy=this.#K,this._final=this.#Z,this.#q=j}#H(j){this._writableState.constructed=!0,this.constructed=!0,j()}#J(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(j,B,G,y=this.#X){if(!y)return this.#X=!1,super.write(j,B,G);if(!this.#Q)this.#J();var A=this.#Q,M=A.write(j);if(xq(M))return M.then(()=>{this.emit("drain"),A.flush(!0)}),!1;if(A.flush(!0),G)G(null,j.byteLength);return!0}end(j,B,G,y=this.#X){return super.end(j,B,G,y)}#K(j,B){if(this._writableState.destroyed=!0,B)B(j)}#Z(j){if(this.#Q)this.#Q.end();if(j)j()}ref(){if(!this.#Q)this.#J();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},Yq=BQ();Yq[Symbol.for("CommonJS")]=0;Yq[Symbol.for("::bunternal::")]={_ReadableFromWeb:pq,_ReadableFromWebForUndici:uq};var cQ=Yq,EQ=Yq._uint8ArrayToBuffer,IQ=Yq._isUint8Array,TQ=Yq.isDisturbed,PQ=Yq.isErrored,xQ=Yq.isWritable,OQ=Yq.isReadable,CQ=Yq.Readable,Uq=Yq.Writable,_Q=Yq.Duplex,DQ=Yq.Transform,wQ=Yq.PassThrough,vQ=Yq.addAbortSignal,RQ=Yq.finished,SQ=Yq.destroy,gQ=Yq.pipeline,kQ=Yq.compose,VQ=Yq.Stream,fQ=Yq.eos=Fq,yQ=Yq._getNativeReadableStreamPrototype,iq=Yq.NativeWritable,hQ=VQ.promises;export{hQ as promises,gQ as pipeline,xQ as isWritable,OQ as isReadable,PQ as isErrored,TQ as isDisturbed,RQ as finished,fQ as eos,SQ as destroy,cQ as default,kQ as compose,vQ as addAbortSignal,EQ as _uint8ArrayToBuffer,IQ as _isUint8Array,yQ as _getNativeReadableStreamPrototype,Uq as Writable,DQ as Transform,VQ as Stream,CQ as Readable,wQ as PassThrough,iq as NativeWritable,_Q as Duplex};
diff --git a/src/js/out/modules/node/stream.promises.js b/src/js/out/modules/node/stream.promises.js
index b25dc7b50..838d40efa 100644
--- a/src/js/out/modules/node/stream.promises.js
+++ b/src/js/out/modules/node/stream.promises.js
@@ -1 +1 @@
-var{promises:o}=import.meta.require("node:stream"),{pipeline:m,finished:C}=o,J={pipeline:m,finished:C,[Symbol.for("CommonJS")]:0};export{m as pipeline,C as finished,J as default};
+import{promises as J} from"node:stream";var{pipeline:S,finished:b}=J,g={pipeline:S,finished:b,[Symbol.for("CommonJS")]:0};export{S as pipeline,b as finished,g as default};
diff --git a/src/js/out/modules/node/stream.web.js b/src/js/out/modules/node/stream.web.js
index 7eca1802a..bb906418c 100644
--- a/src/js/out/modules/node/stream.web.js
+++ b/src/js/out/modules/node/stream.web.js
@@ -1 +1 @@
-var{ReadableStream:b,ReadableStreamDefaultController:c,WritableStream:d,WritableStreamDefaultController:f,WritableStreamDefaultWriter:h,TransformStream:j,TransformStreamDefaultController:k,ByteLengthQueuingStrategy:l,CountQueuingStrategy:m,ReadableStreamBYOBReader:p,ReadableStreamBYOBRequest:q,ReadableStreamDefaultReader:s}=globalThis,v={ReadableStream:b,ReadableStreamDefaultController:c,WritableStream:d,WritableStreamDefaultController:f,WritableStreamDefaultWriter:h,TransformStream:j,TransformStreamDefaultController:k,ByteLengthQueuingStrategy:l,CountQueuingStrategy:m,ReadableStreamBYOBReader:p,ReadableStreamBYOBRequest:q,ReadableStreamDefaultReader:s,[Symbol.for("CommonJS")]:0};export{v as default,h as WritableStreamDefaultWriter,f as WritableStreamDefaultController,d as WritableStream,k as TransformStreamDefaultController,j as TransformStream,s as ReadableStreamDefaultReader,c as ReadableStreamDefaultController,q as ReadableStreamBYOBRequest,p as ReadableStreamBYOBReader,b as ReadableStream,m as CountQueuingStrategy,l as ByteLengthQueuingStrategy};
+var{ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G}=globalThis,H={ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G,[Symbol.for("CommonJS")]:0};export{H as default,v as WritableStreamDefaultWriter,p as WritableStreamDefaultController,k as WritableStream,x as TransformStreamDefaultController,w as TransformStream,G as ReadableStreamDefaultReader,j as ReadableStreamDefaultController,F as ReadableStreamBYOBRequest,E as ReadableStreamBYOBReader,c as ReadableStream,A as CountQueuingStrategy,z as ByteLengthQueuingStrategy};
diff --git a/src/js/out/modules/node/timers.promises.js b/src/js/out/modules/node/timers.promises.js
index ff4640cf2..d76e46f3c 100644
--- a/src/js/out/modules/node/timers.promises.js
+++ b/src/js/out/modules/node/timers.promises.js
@@ -173,8 +173,10 @@ class AbortError extends Error {
this.code = "ABORT_ERR";
}
}
+var timers_promises_default = { setTimeout: setTimeoutPromise, setImmediate: setImmediatePromise, setInterval: setIntervalPromise };
export {
setTimeoutPromise as setTimeout,
setIntervalPromise as setInterval,
- setImmediatePromise as setImmediate
+ setImmediatePromise as setImmediate,
+ timers_promises_default as default
};
diff --git a/src/js/out/modules/node/tls.js b/src/js/out/modules/node/tls.js
index 1e436a85f..ca8a13270 100644
--- a/src/js/out/modules/node/tls.js
+++ b/src/js/out/modules/node/tls.js
@@ -1,4 +1,5 @@
-var {isTypedArray } = import.meta.require("node:util/types");
+import {isArrayBufferView, isTypedArray} from "node:util/types";
+import net, {Server as NetServer} from "node:net";
var parseCertString = function() {
throwNotImplemented("Not implemented");
}, isValidTLSArray = function(obj) {
@@ -10,13 +11,127 @@ var parseCertString = function() {
return !1;
return !0;
}
+}, unfqdn = function(host2) {
+ return RegExpPrototypeSymbolReplace(/[.]$/, host2, "");
+}, splitHost = function(host2) {
+ return StringPrototypeSplit.call(RegExpPrototypeSymbolReplace(/[A-Z]/g, unfqdn(host2), toLowerCase), ".");
+}, check = function(hostParts, pattern, wildcards) {
+ if (!pattern)
+ return !1;
+ const patternParts = splitHost(pattern);
+ if (hostParts.length !== patternParts.length)
+ return !1;
+ if (ArrayPrototypeIncludes.call(patternParts, ""))
+ return !1;
+ const isBad = (s) => RegExpPrototypeExec.call(/[^\u0021-\u007F]/u, s) !== null;
+ if (ArrayPrototypeSome.call(patternParts, isBad))
+ return !1;
+ for (let i = hostParts.length - 1;i > 0; i -= 1)
+ if (hostParts[i] !== patternParts[i])
+ return !1;
+ const hostSubdomain = hostParts[0], patternSubdomain = patternParts[0], patternSubdomainParts = StringPrototypeSplit.call(patternSubdomain, "*");
+ if (patternSubdomainParts.length === 1 || StringPrototypeIncludes.call(patternSubdomain, "xn--"))
+ return hostSubdomain === patternSubdomain;
+ if (!wildcards)
+ return !1;
+ if (patternSubdomainParts.length > 2)
+ return !1;
+ if (patternParts.length <= 2)
+ return !1;
+ const { 0: prefix, 1: suffix } = patternSubdomainParts;
+ if (prefix.length + suffix.length > hostSubdomain.length)
+ return !1;
+ if (!StringPrototypeStartsWith.call(hostSubdomain, prefix))
+ return !1;
+ if (!StringPrototypeEndsWith.call(hostSubdomain, suffix))
+ return !1;
+ return !0;
+}, splitEscapedAltNames = function(altNames) {
+ const result = [];
+ let currentToken = "", offset = 0;
+ while (offset !== altNames.length) {
+ const nextSep = StringPrototypeIndexOf.call(altNames, ", ", offset), nextQuote = StringPrototypeIndexOf.call(altNames, '"', offset);
+ if (nextQuote !== -1 && (nextSep === -1 || nextQuote < nextSep)) {
+ currentToken += StringPrototypeSubstring.call(altNames, offset, nextQuote);
+ const match = RegExpPrototypeExec.call(jsonStringPattern, StringPrototypeSubstring.call(altNames, nextQuote));
+ if (!match) {
+ let error = new SyntaxError("ERR_TLS_CERT_ALTNAME_FORMAT: Invalid subject alternative name string");
+ throw error.name = ERR_TLS_CERT_ALTNAME_FORMAT, error;
+ }
+ currentToken += JSON.parse(match[0]), offset = nextQuote + match[0].length;
+ } else if (nextSep !== -1)
+ currentToken += StringPrototypeSubstring.call(altNames, offset, nextSep), ArrayPrototypePush.call(result, currentToken), currentToken = "", offset = nextSep + 2;
+ else
+ currentToken += StringPrototypeSubstring.call(altNames, offset), offset = altNames.length;
+ }
+ return ArrayPrototypePush.call(result, currentToken), result;
+}, checkServerIdentity = function(hostname, cert) {
+ const { subject, subjectaltname: altNames } = cert, dnsNames = [], ips = [];
+ if (hostname = "" + hostname, altNames) {
+ const splitAltNames = StringPrototypeIncludes.call(altNames, '"') ? splitEscapedAltNames(altNames) : StringPrototypeSplit.call(altNames, ", ");
+ ArrayPrototypeForEach.call(splitAltNames, (name) => {
+ if (StringPrototypeStartsWith.call(name, "DNS:"))
+ ArrayPrototypePush.call(dnsNames, StringPrototypeSlice.call(name, 4));
+ else if (StringPrototypeStartsWith.call(name, "IP Address:"))
+ ArrayPrototypePush.call(ips, canonicalizeIP(StringPrototypeSlice.call(name, 11)));
+ });
+ }
+ let valid = !1, reason = "Unknown reason";
+ if (hostname = unfqdn(hostname), net.isIP(hostname)) {
+ if (valid = ArrayPrototypeIncludes.call(ips, canonicalizeIP(hostname)), !valid)
+ reason = `IP: ${hostname} is not in the cert's list: ` + ArrayPrototypeJoin.call(ips, ", ");
+ } else if (dnsNames.length > 0 || subject?.CN) {
+ const hostParts = splitHost(hostname), wildcard = (pattern) => check(hostParts, pattern, !0);
+ if (dnsNames.length > 0) {
+ if (valid = ArrayPrototypeSome.call(dnsNames, wildcard), !valid)
+ reason = `Host: ${hostname}. is not in the cert's altnames: ${altNames}`;
+ } else {
+ const cn = subject.CN;
+ if (ArrayIsArray(cn))
+ valid = ArrayPrototypeSome.call(cn, wildcard);
+ else if (cn)
+ valid = wildcard(cn);
+ if (!valid)
+ reason = `Host: ${hostname}. is not cert's CN: ${cn}`;
+ }
+ } else
+ reason = "Cert does not contain a DNS name";
+ if (!valid) {
+ let error = new Error(`ERR_TLS_CERT_ALTNAME_INVALID: Hostname/IP does not match certificate's altnames: ${reason}`);
+ return error.name = "ERR_TLS_CERT_ALTNAME_INVALID", error.reason = reason, error.host = host, error.cert = cert, error;
+ }
}, SecureContext = function(options) {
return new InternalSecureContext(options);
}, createSecureContext = function(options) {
return new SecureContext(options);
-}, createServer = function(options, connectionListener) {
+};
+var createServer = function(options, connectionListener) {
return new Server(options, connectionListener);
-}, InternalSecureContext = class SecureContext2 {
+}, getCiphers = function() {
+ return DEFAULT_CIPHERS.split(":");
+}, getCurves = function() {
+ return;
+}, convertProtocols = function(protocols) {
+ const lens = new Array(protocols.length), buff = Buffer.allocUnsafe(ArrayPrototypeReduce.call(protocols, (p, c, i) => {
+ const len = Buffer.byteLength(c);
+ if (len > 255)
+ throw new RangeError("The byte length of the protocol at index " + `${i} exceeds the maximum length.`, "<= 255", len, !0);
+ return lens[i] = len, p + 1 + len;
+ }, 0));
+ let offset = 0;
+ for (let i = 0, c = protocols.length;i < c; i++)
+ buff[offset++] = lens[i], buff.write(protocols[i], offset), offset += lens[i];
+ return buff;
+}, convertALPNProtocols = function(protocols, out) {
+ if (Array.isArray(protocols))
+ out.ALPNProtocols = convertProtocols(protocols);
+ else if (isTypedArray(protocols))
+ out.ALPNProtocols = Buffer.from(protocols);
+ else if (isArrayBufferView(protocols))
+ out.ALPNProtocols = Buffer.from(protocols.buffer.slice(protocols.byteOffset, protocols.byteOffset + protocols.byteLength));
+ else if (Buffer.isBuffer(protocols))
+ out.ALPNProtocols = protocols;
+}, InternalTCPSocket = net[Symbol.for("::bunternal::")], bunSocketInternal = Symbol.for("::bunnetsocketinternal::"), { RegExp, Array, String } = globalThis[Symbol.for("Bun.lazy")]("primordials"), SymbolReplace = Symbol.replace, RegExpPrototypeSymbolReplace = RegExp.prototype[SymbolReplace], RegExpPrototypeExec = RegExp.prototype.exec, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeSlice = String.prototype.slice, StringPrototypeIncludes = String.prototype.includes, StringPrototypeSplit = String.prototype.split, StringPrototypeIndexOf = String.prototype.indexOf, StringPrototypeSubstring = String.prototype.substring, StringPrototypeEndsWith = String.prototype.endsWith, ArrayPrototypeIncludes = Array.prototype.includes, ArrayPrototypeJoin = Array.prototype.join, ArrayPrototypeForEach = Array.prototype.forEach, ArrayPrototypePush = Array.prototype.push, ArrayPrototypeSome = Array.prototype.some, ArrayPrototypeReduce = Array.prototype.reduce, jsonStringPattern = /^"(?:[^"\\\u0000-\u001f]|\\(?:["\\/bfnrt]|u[0-9a-fA-F]{4}))*"/, InternalSecureContext = class SecureContext2 {
context;
constructor(options) {
const context = {};
@@ -54,7 +169,7 @@ var parseCertString = function() {
}
this.context = context;
}
-}, { [Symbol.for("::bunternal::")]: InternalTCPSocket, Server: NetServer } = import.meta.require("net"), buntls = Symbol.for("::buntls::"), SocketClass, TLSSocket = function(InternalTLSSocket) {
+}, buntls = Symbol.for("::buntls::"), SocketClass, TLSSocket = function(InternalTLSSocket) {
return SocketClass = InternalTLSSocket, Object.defineProperty(SocketClass.prototype, Symbol.toStringTag, {
value: "TLSSocket",
enumerable: !1
@@ -67,8 +182,17 @@ var parseCertString = function() {
});
}(class TLSSocket2 extends InternalTCPSocket {
#secureContext;
- constructor(options) {
- super(options);
+ ALPNProtocols;
+ #socket;
+ constructor(socket, options) {
+ super(socket instanceof InternalTCPSocket ? options : options || socket);
+ if (options = options || socket || {}, typeof options === "object") {
+ const { ALPNProtocols } = options;
+ if (ALPNProtocols)
+ convertALPNProtocols(ALPNProtocols, this);
+ if (socket instanceof InternalTCPSocket)
+ this.#socket = socket;
+ }
this.#secureContext = options.secureContext || createSecureContext(options), this.authorized = !1, this.secureConnecting = !0, this._secureEstablished = !1, this._securePending = !0;
}
_secureEstablished = !1;
@@ -78,19 +202,24 @@ var parseCertString = function() {
secureConnecting = !1;
_SNICallback;
servername;
- alpnProtocol;
authorized = !1;
authorizationError;
encrypted = !0;
- exportKeyingMaterial() {
- throw Error("Not implented in Bun yet");
+ _start() {
}
- setMaxSendFragment() {
+ exportKeyingMaterial(length, label, context) {
throw Error("Not implented in Bun yet");
}
- setServername() {
+ setMaxSendFragment(size) {
throw Error("Not implented in Bun yet");
}
+ setServername(name) {
+ if (this.isServer) {
+ let error = new Error("ERR_TLS_SNI_FROM_SERVER: Cannot issue SNI from a TLS server-side socket");
+ throw error.name = "ERR_TLS_SNI_FROM_SERVER", error;
+ }
+ this.servername = name, this[bunSocketInternal]?.setServername(name);
+ }
setSession() {
throw Error("Not implented in Bun yet");
}
@@ -106,14 +235,16 @@ var parseCertString = function() {
getX509Certificate() {
throw Error("Not implented in Bun yet");
}
- [buntls](port, host) {
- var { servername } = this;
- if (servername)
- return {
- serverName: typeof servername === "string" ? servername : host,
- ...this.#secureContext
- };
- return !0;
+ get alpnProtocol() {
+ return this[bunSocketInternal]?.alpnProtocol;
+ }
+ [buntls](port, host2) {
+ return {
+ socket: this.#socket,
+ ALPNProtocols: this.ALPNProtocols,
+ serverName: this.servername || host2 || "localhost",
+ ...this.#secureContext
+ };
}
});
@@ -126,9 +257,11 @@ class Server extends NetServer {
_rejectUnauthorized;
_requestCert;
servername;
+ ALPNProtocols;
+ #checkServerIdentity;
constructor(options, secureConnectionListener) {
super(options, secureConnectionListener);
- this.setSecureContext(options);
+ this.#checkServerIdentity = options?.checkServerIdentity || checkServerIdentity, this.setSecureContext(options);
}
emit(event, args) {
if (super.emit(event, args), event === "connection")
@@ -140,6 +273,9 @@ class Server extends NetServer {
if (options instanceof InternalSecureContext)
options = options.context;
if (options) {
+ const { ALPNProtocols } = options;
+ if (ALPNProtocols)
+ convertALPNProtocols(ALPNProtocols, this);
let key = options.key;
if (key) {
if (!isValidTLSArray(key))
@@ -188,58 +324,66 @@ class Server extends NetServer {
setTicketKeys() {
throw Error("Not implented in Bun yet");
}
- [buntls](port, host, isClient) {
+ [buntls](port, host2, isClient) {
return [
{
- serverName: this.servername || host || "localhost",
+ serverName: this.servername || host2 || "localhost",
key: this.key,
cert: this.cert,
ca: this.ca,
passphrase: this.passphrase,
secureOptions: this.secureOptions,
rejectUnauthorized: isClient ? !1 : this._rejectUnauthorized,
- requestCert: isClient ? !1 : this._requestCert
+ requestCert: isClient ? !1 : this._requestCert,
+ ALPNProtocols: this.ALPNProtocols,
+ checkServerIdentity: this.#checkServerIdentity
},
SocketClass
];
}
}
-var CLIENT_RENEG_LIMIT = 3, CLIENT_RENEG_WINDOW = 600, DEFAULT_ECDH_CURVE = "auto", DEFAULT_CIPHERS = "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256", DEFAULT_MIN_VERSION = "TLSv1.2", DEFAULT_MAX_VERSION = "TLSv1.3", createConnection = (port, host, connectListener) => {
- if (typeof port === "object")
- return new TLSSocket(port).connect(port, host, connectListener);
- return new TLSSocket().connect(port, host, connectListener);
+var CLIENT_RENEG_LIMIT = 3, CLIENT_RENEG_WINDOW = 600, DEFAULT_ECDH_CURVE = "auto", DEFAULT_CIPHERS = "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256", DEFAULT_MIN_VERSION = "TLSv1.2", DEFAULT_MAX_VERSION = "TLSv1.3", createConnection = (port, host2, connectListener) => {
+ if (typeof port === "object") {
+ port.checkServerIdentity;
+ const { ALPNProtocols } = port;
+ if (ALPNProtocols)
+ convertALPNProtocols(ALPNProtocols, port);
+ return new TLSSocket(port).connect(port, host2, connectListener);
+ }
+ return new TLSSocket().connect(port, host2, connectListener);
}, connect = createConnection, exports = {
- createSecureContext,
- parseCertString,
- getCiphers() {
- return DEFAULT_CIPHERS.split(":");
- },
- getCurves() {
- return;
- },
- convertALPNProtocols(protocols, out) {
- },
- TLSSocket,
- SecureContext,
+ [Symbol.for("CommonJS")]: 0,
CLIENT_RENEG_LIMIT,
CLIENT_RENEG_WINDOW,
- DEFAULT_ECDH_CURVE,
- DEFAULT_CIPHERS,
- DEFAULT_MIN_VERSION,
- DEFAULT_MAX_VERSION,
- [Symbol.for("CommonJS")]: 0,
connect,
+ convertALPNProtocols,
createConnection,
+ createSecureContext,
+ createServer,
+ DEFAULT_CIPHERS,
+ DEFAULT_ECDH_CURVE,
+ DEFAULT_MAX_VERSION,
+ DEFAULT_MIN_VERSION,
+ getCiphers,
+ getCurves,
+ parseCertString,
+ SecureContext,
Server,
- createServer
-}, tls_default = exports;
+ TLSSocket
+};
export {
parseCertString,
- tls_default as default,
+ getCurves,
+ getCiphers,
+ exports as default,
+ createServer,
createSecureContext,
createConnection,
+ convertALPNProtocols,
connect,
+ checkServerIdentity,
TLSSocket,
+ Server,
SecureContext,
DEFAULT_MIN_VERSION,
DEFAULT_MAX_VERSION,
diff --git a/src/js/out/modules/node/url.js b/src/js/out/modules/node/url.js
index cfc70e725..adff460cf 100644
--- a/src/js/out/modules/node/url.js
+++ b/src/js/out/modules/node/url.js
@@ -1,236 +1 @@
-var it = function(s) {
- return typeof s == "string";
-}, D = function(s) {
- return typeof s == "object" && s !== null;
-}, I = function(s) {
- return s === null;
-}, E = function(s) {
- return s == null;
-};
-var m = function() {
- this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
-}, A = function(s, r, t) {
- if (s && D(s) && s instanceof m)
- return s;
- var o = new m;
- return o.parse(s, r, t), o;
-}, V = function(s) {
- return it(s) && (s = A(s)), s instanceof m ? s.format() : m.prototype.format.call(s);
-}, W = function(s, r) {
- return A(s, !1, !0).resolve(r);
-}, X = function(s, r) {
- return s ? A(s, !1, !0).resolveObject(r) : r;
-}, { URL: F, URLSearchParams: M, [Symbol.for("Bun.lazy")]: S } = globalThis, tt = /^([a-z0-9.+-]+:)/i, st = /:[0-9]*$/, ht = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, et = [
- "<",
- ">",
- '"',
- "`",
- " ",
- "\r",
- `
-`,
- " "
-], rt = ["{", "}", "|", "\\", "^", "`"].concat(et), B = ["'"].concat(rt), G = ["%", "/", "?", ";", "#"].concat(B), J = ["/", "?", "#"], ot = 255, K = /^[+a-z0-9A-Z_-]{0,63}$/, at = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, nt = { javascript: !0, "javascript:": !0 }, N = { javascript: !0, "javascript:": !0 }, R = {
- http: !0,
- https: !0,
- ftp: !0,
- gopher: !0,
- file: !0,
- "http:": !0,
- "https:": !0,
- "ftp:": !0,
- "gopher:": !0,
- "file:": !0
-}, Z = {
- parse(s) {
- var r = decodeURIComponent;
- return (s + "").replace(/\+/g, " ").split("&").filter(Boolean).reduce(function(t, o, a) {
- var l = o.split("="), f = r(l[0] || ""), h = r(l[1] || ""), g = t[f];
- return t[f] = g === void 0 ? h : [].concat(g, h), t;
- }, {});
- },
- stringify(s) {
- var r = encodeURIComponent;
- return Object.keys(s || {}).reduce(function(t, o) {
- return [].concat(s[o]).forEach(function(a) {
- t.push(r(o) + "=" + r(a));
- }), t;
- }, []).join("&").replace(/\s/g, "+");
- }
-};
-m.prototype.parse = function(s, r, t) {
- if (!it(s))
- throw new TypeError("Parameter 'url' must be a string, not " + typeof s);
- var o = s.indexOf("?"), a = o !== -1 && o < s.indexOf("#") ? "?" : "#", l = s.split(a), f = /\\/g;
- l[0] = l[0].replace(f, "/"), s = l.join(a);
- var h = s;
- if (h = h.trim(), !t && s.split("#").length === 1) {
- var g = ht.exec(h);
- if (g)
- return this.path = h, this.href = h, this.pathname = g[1], g[2] ? (this.search = g[2], r ? this.query = Z.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : r && (this.search = "", this.query = {}), this;
- }
- var c = tt.exec(h);
- if (c) {
- c = c[0];
- var v = c.toLowerCase();
- this.protocol = v, h = h.substr(c.length);
- }
- if (t || c || h.match(/^\/\/[^@\/]+@[^@\/]+/)) {
- var j = h.substr(0, 2) === "//";
- j && !(c && N[c]) && (h = h.substr(2), this.slashes = !0);
- }
- if (!N[c] && (j || c && !R[c])) {
- for (var u = -1, n = 0;n < J.length; n++) {
- var b = h.indexOf(J[n]);
- b !== -1 && (u === -1 || b < u) && (u = b);
- }
- var P, p;
- u === -1 ? p = h.lastIndexOf("@") : p = h.lastIndexOf("@", u), p !== -1 && (P = h.slice(0, p), h = h.slice(p + 1), this.auth = decodeURIComponent(P)), u = -1;
- for (var n = 0;n < G.length; n++) {
- var b = h.indexOf(G[n]);
- b !== -1 && (u === -1 || b < u) && (u = b);
- }
- u === -1 && (u = h.length), this.host = h.slice(0, u), h = h.slice(u), this.parseHost(), this.hostname = this.hostname || "";
- var C = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
- if (!C)
- for (var e = this.hostname.split(/\./), n = 0, i = e.length;n < i; n++) {
- var d = e[n];
- if (!!d && !d.match(K)) {
- for (var y = "", x = 0, _ = d.length;x < _; x++)
- d.charCodeAt(x) > 127 ? y += "x" : y += d[x];
- if (!y.match(K)) {
- var q = e.slice(0, n), O = e.slice(n + 1), U = d.match(at);
- U && (q.push(U[1]), O.unshift(U[2])), O.length && (h = "/" + O.join(".") + h), this.hostname = q.join(".");
- break;
- }
- }
- }
- this.hostname.length > ot ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), C || (this.hostname = new F(`https://${this.hostname}`).hostname);
- var w = this.port ? ":" + this.port : "", H = this.hostname || "";
- this.host = H + w, this.href += this.host, C && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), h[0] !== "/" && (h = "/" + h));
- }
- if (!nt[v])
- for (var n = 0, i = B.length;n < i; n++) {
- var L = B[n];
- if (h.indexOf(L) !== -1) {
- var z = encodeURIComponent(L);
- z === L && (z = escape(L)), h = h.split(L).join(z);
- }
- }
- var $ = h.indexOf("#");
- $ !== -1 && (this.hash = h.substr($), h = h.slice(0, $));
- var T = h.indexOf("?");
- if (T !== -1 ? (this.search = h.substr(T), this.query = h.substr(T + 1), r && (this.query = Z.parse(this.query)), h = h.slice(0, T)) : r && (this.search = "", this.query = {}), h && (this.pathname = h), R[v] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
- var w = this.pathname || "", Q = this.search || "";
- this.path = w + Q;
- }
- return this.href = this.format(), this;
-};
-m.prototype.format = function() {
- var s = this.auth || "";
- s && (s = encodeURIComponent(s), s = s.replace(/%3A/i, ":"), s += "@");
- var r = this.protocol || "", t = this.pathname || "", o = this.hash || "", a = !1, l = "";
- this.host ? a = s + this.host : this.hostname && (a = s + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (a += ":" + this.port)), this.query && D(this.query) && Object.keys(this.query).length && (l = Z.stringify(this.query));
- var f = this.search || l && "?" + l || "";
- return r && r.substr(-1) !== ":" && (r += ":"), this.slashes || (!r || R[r]) && a !== !1 ? (a = "//" + (a || ""), t && t.charAt(0) !== "/" && (t = "/" + t)) : a || (a = ""), o && o.charAt(0) !== "#" && (o = "#" + o), f && f.charAt(0) !== "?" && (f = "?" + f), t = t.replace(/[?#]/g, function(h) {
- return encodeURIComponent(h);
- }), f = f.replace("#", "%23"), r + a + t + f + o;
-};
-m.prototype.resolve = function(s) {
- return this.resolveObject(A(s, !1, !0)).format();
-};
-m.prototype.resolveObject = function(s) {
- if (it(s)) {
- var r = new m;
- r.parse(s, !1, !0), s = r;
- }
- for (var t = new m, o = Object.keys(this), a = 0;a < o.length; a++) {
- var l = o[a];
- t[l] = this[l];
- }
- if (t.hash = s.hash, s.href === "")
- return t.href = t.format(), t;
- if (s.slashes && !s.protocol) {
- for (var f = Object.keys(s), h = 0;h < f.length; h++) {
- var g = f[h];
- g !== "protocol" && (t[g] = s[g]);
- }
- return R[t.protocol] && t.hostname && !t.pathname && (t.path = t.pathname = "/"), t.href = t.format(), t;
- }
- if (s.protocol && s.protocol !== t.protocol) {
- if (!R[s.protocol]) {
- for (var c = Object.keys(s), v = 0;v < c.length; v++) {
- var j = c[v];
- t[j] = s[j];
- }
- return t.href = t.format(), t;
- }
- if (t.protocol = s.protocol, !s.host && !N[s.protocol]) {
- for (var i = (s.pathname || "").split("/");i.length && !(s.host = i.shift()); )
- ;
- s.host || (s.host = ""), s.hostname || (s.hostname = ""), i[0] !== "" && i.unshift(""), i.length < 2 && i.unshift(""), t.pathname = i.join("/");
- } else
- t.pathname = s.pathname;
- if (t.search = s.search, t.query = s.query, t.host = s.host || "", t.auth = s.auth, t.hostname = s.hostname || s.host, t.port = s.port, t.pathname || t.search) {
- var u = t.pathname || "", n = t.search || "";
- t.path = u + n;
- }
- return t.slashes = t.slashes || s.slashes, t.href = t.format(), t;
- }
- var b = t.pathname && t.pathname.charAt(0) === "/", P = s.host || s.pathname && s.pathname.charAt(0) === "/", p = P || b || t.host && s.pathname, C = p, e = t.pathname && t.pathname.split("/") || [], i = s.pathname && s.pathname.split("/") || [], d = t.protocol && !R[t.protocol];
- if (d && (t.hostname = "", t.port = null, t.host && (e[0] === "" ? e[0] = t.host : e.unshift(t.host)), t.host = "", s.protocol && (s.hostname = null, s.port = null, s.host && (i[0] === "" ? i[0] = s.host : i.unshift(s.host)), s.host = null), p = p && (i[0] === "" || e[0] === "")), P)
- t.host = s.host || s.host === "" ? s.host : t.host, t.hostname = s.hostname || s.hostname === "" ? s.hostname : t.hostname, t.search = s.search, t.query = s.query, e = i;
- else if (i.length)
- e || (e = []), e.pop(), e = e.concat(i), t.search = s.search, t.query = s.query;
- else if (!E(s.search)) {
- if (d) {
- t.hostname = t.host = e.shift();
- var y = t.host && t.host.indexOf("@") > 0 ? t.host.split("@") : !1;
- y && (t.auth = y.shift(), t.host = t.hostname = y.shift());
- }
- return t.search = s.search, t.query = s.query, (!I(t.pathname) || !I(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.href = t.format(), t;
- }
- if (!e.length)
- return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
- for (var x = e.slice(-1)[0], _ = (t.host || s.host || e.length > 1) && (x === "." || x === "..") || x === "", q = 0, O = e.length;O >= 0; O--)
- x = e[O], x === "." ? e.splice(O, 1) : x === ".." ? (e.splice(O, 1), q++) : q && (e.splice(O, 1), q--);
- if (!p && !C)
- for (;q--; q)
- e.unshift("..");
- p && e[0] !== "" && (!e[0] || e[0].charAt(0) !== "/") && e.unshift(""), _ && e.join("/").substr(-1) !== "/" && e.push("");
- var U = e[0] === "" || e[0] && e[0].charAt(0) === "/";
- if (d) {
- t.hostname = t.host = U ? "" : e.length ? e.shift() : "";
- var y = t.host && t.host.indexOf("@") > 0 ? t.host.split("@") : !1;
- y && (t.auth = y.shift(), t.host = t.hostname = y.shift());
- }
- return p = p || t.host && e.length, p && !U && e.unshift(""), e.length ? t.pathname = e.join("/") : (t.pathname = null, t.path = null), (!I(t.pathname) || !I(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = s.auth || t.auth, t.slashes = t.slashes || s.slashes, t.href = t.format(), t;
-}, m.prototype.parseHost = function() {
- var s = this.host, r = st.exec(s);
- r && (r = r[0], r !== ":" && (this.port = r.substr(1)), s = s.substr(0, s.length - r.length)), s && (this.hostname = s);
-};
-var Y, k;
-S && (Y = S("pathToFileURL"), k = S("fileURLToPath"));
-var ut = {
- parse: A,
- resolve: W,
- resolveObject: X,
- format: V,
- Url: m,
- pathToFileURL: Y,
- fileURLToPath: k,
- URL: F,
- URLSearchParams: M
-};
-export {
- X as resolveObject,
- W as resolve,
- Y as pathToFileURL,
- A as parse,
- V as format,
- k as fileURLToPath,
- ut as default,
- m as Url,
- M as URLSearchParams,
- F as URL
-};
+var $=function(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null},g=function(N,J,f){if(N&&typeof N==="object"&&N instanceof $)return N;var X=new $;return X.parse(N,J,f),X},t=function(N){if(typeof N==="string")N=g(N);if(!(N instanceof $))return $.prototype.format.call(N);return N.format()},ff=function(N,J){return g(N,!1,!0).resolve(J)},Nf=function(N,J){if(!N)return J;return g(N,!1,!0).resolveObject(J)},Bf=function(N){const J={protocol:N.protocol,hostname:typeof N.hostname==="string"&&N.hostname.startsWith("[")?N.hostname.slice(1,-1):N.hostname,hash:N.hash,search:N.search,pathname:N.pathname,path:`${N.pathname||""}${N.search||""}`,href:N.href};if(N.port!=="")J.port=Number(N.port);if(N.username||N.password)J.auth=`${decodeURIComponent(N.username)}:${decodeURIComponent(N.password)}`;return J},{URL:n,URLSearchParams:S}=globalThis,i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(a),E=["'"].concat(l),m=["%","/","?",";","#"].concat(E),c=["/","?","#"],s=255,P=/^[+a-z0-9A-Z_-]{0,63}$/,r=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,e={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},Q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};$.prototype.parse=function(N,J,f){if(typeof N!=="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof N);var X=N.indexOf("?"),V=X!==-1&&X<N.indexOf("#")?"?":"#",x=N.split(V),_=/\\/g;x[0]=x[0].replace(_,"/"),N=x.join(V);var B=N;if(B=B.trim(),!f&&N.split("#").length===1){var T=u.exec(B);if(T){if(this.path=B,this.href=B,this.pathname=T[1],T[2])if(this.search=T[2],J)this.query=new S(this.search.substr(1)).toJSON();else this.query=this.search.substr(1);else if(J)this.search="",this.query={};return this}}var Y=i.exec(B);if(Y){Y=Y[0];var I=Y.toLowerCase();this.protocol=I,B=B.substr(Y.length)}if(f||Y||B.match(/^\/\/[^@/]+@[^@/]+/)){var w=B.substr(0,2)==="//";if(w&&!(Y&&d[Y]))B=B.substr(2),this.slashes=!0}if(!d[Y]&&(w||Y&&!Q[Y])){var W=-1;for(var K=0;K<c.length;K++){var D=B.indexOf(c[K]);if(D!==-1&&(W===-1||D<W))W=D}var A,Z;if(W===-1)Z=B.lastIndexOf("@");else Z=B.lastIndexOf("@",W);if(Z!==-1)A=B.slice(0,Z),B=B.slice(Z+1),this.auth=decodeURIComponent(A);W=-1;for(var K=0;K<m.length;K++){var D=B.indexOf(m[K]);if(D!==-1&&(W===-1||D<W))W=D}if(W===-1)W=B.length;this.host=B.slice(0,W),B=B.slice(W),this.parseHost(),this.hostname=this.hostname||"";var R=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!R){var G=this.hostname.split(/\./);for(var K=0,M=G.length;K<M;K++){var F=G[K];if(!F)continue;if(!F.match(P)){var z="";for(var C=0,H=F.length;C<H;C++)if(F.charCodeAt(C)>127)z+="x";else z+=F[C];if(!z.match(P)){var q=G.slice(0,K),O=G.slice(K+1),L=F.match(r);if(L)q.push(L[1]),O.unshift(L[2]);if(O.length)B="/"+O.join(".")+B;this.hostname=q.join(".");break}}}}if(this.hostname.length>s)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!R)this.hostname=new n("http://"+this.hostname).hostname;var b=this.port?":"+this.port:"",v=this.hostname||"";if(this.host=v+b,this.href+=this.host,R){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),B[0]!=="/")B="/"+B}}if(!e[I])for(var K=0,M=E.length;K<M;K++){var j=E[K];if(B.indexOf(j)===-1)continue;var y=encodeURIComponent(j);if(y===j)y=escape(j);B=B.split(j).join(y)}var k=B.indexOf("#");if(k!==-1)this.hash=B.substr(k),B=B.slice(0,k);var U=B.indexOf("?");if(U!==-1){if(this.search=B.substr(U),this.query=B.substr(U+1),J)this.query=new S(this.query);B=B.slice(0,U)}else if(J)this.search="",this.query={};if(B)this.pathname=B;if(Q[I]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var b=this.pathname||"",h=this.search||"";this.path=b+h}return this.href=this.format(),this};$.prototype.format=function(){var N=this.auth||"";if(N)N=encodeURIComponent(N),N=N.replace(/%3A/i,":"),N+="@";var J=this.protocol||"",f=this.pathname||"",X=this.hash||"",V=!1,x="";if(this.host)V=N+this.host;else if(this.hostname){if(V=N+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)V+=":"+this.port}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length)x=new S(this.query).toString();var _=this.search||x&&"?"+x||"";if(J&&J.substr(-1)!==":")J+=":";if(this.slashes||(!J||Q[J])&&V!==!1){if(V="//"+(V||""),f&&f.charAt(0)!=="/")f="/"+f}else if(!V)V="";if(X&&X.charAt(0)!=="#")X="#"+X;if(_&&_.charAt(0)!=="?")_="?"+_;return f=f.replace(/[?#]/g,function(B){return encodeURIComponent(B)}),_=_.replace("#","%23"),J+V+f+_+X};$.prototype.resolve=function(N){return this.resolveObject(g(N,!1,!0)).format()};$.prototype.resolveObject=function(N){if(typeof N==="string"){var J=new $;J.parse(N,!1,!0),N=J}var f=new $,X=Object.keys(this);for(var V=0;V<X.length;V++){var x=X[V];f[x]=this[x]}if(f.hash=N.hash,N.href==="")return f.href=f.format(),f;if(N.slashes&&!N.protocol){var _=Object.keys(N);for(var B=0;B<_.length;B++){var T=_[B];if(T!=="protocol")f[T]=N[T]}if(Q[f.protocol]&&f.hostname&&!f.pathname)f.pathname="/",f.path=f.pathname;return f.href=f.format(),f}if(N.protocol&&N.protocol!==f.protocol){if(!Q[N.protocol]){var Y=Object.keys(N);for(var I=0;I<Y.length;I++){var w=Y[I];f[w]=N[w]}return f.href=f.format(),f}if(f.protocol=N.protocol,!N.host&&!d[N.protocol]){var M=(N.pathname||"").split("/");while(M.length&&!(N.host=M.shift()));if(!N.host)N.host="";if(!N.hostname)N.hostname="";if(M[0]!=="")M.unshift("");if(M.length<2)M.unshift("");f.pathname=M.join("/")}else f.pathname=N.pathname;if(f.search=N.search,f.query=N.query,f.host=N.host||"",f.auth=N.auth,f.hostname=N.hostname||N.host,f.port=N.port,f.pathname||f.search){var W=f.pathname||"",K=f.search||"";f.path=W+K}return f.slashes=f.slashes||N.slashes,f.href=f.format(),f}var D=f.pathname&&f.pathname.charAt(0)==="/",A=N.host||N.pathname&&N.pathname.charAt(0)==="/",Z=A||D||f.host&&N.pathname,R=Z,G=f.pathname&&f.pathname.split("/")||[],M=N.pathname&&N.pathname.split("/")||[],F=f.protocol&&!Q[f.protocol];if(F){if(f.hostname="",f.port=null,f.host)if(G[0]==="")G[0]=f.host;else G.unshift(f.host);if(f.host="",N.protocol){if(N.hostname=null,N.port=null,N.host)if(M[0]==="")M[0]=N.host;else M.unshift(N.host);N.host=null}Z=Z&&(M[0]===""||G[0]==="")}if(A)f.host=N.host||N.host===""?N.host:f.host,f.hostname=N.hostname||N.hostname===""?N.hostname:f.hostname,f.search=N.search,f.query=N.query,G=M;else if(M.length){if(!G)G=[];G.pop(),G=G.concat(M),f.search=N.search,f.query=N.query}else if(N.search!=null){if(F){f.host=G.shift(),f.hostname=f.host;var z=f.host&&f.host.indexOf("@")>0?f.host.split("@"):!1;if(z)f.auth=z.shift(),f.hostname=z.shift(),f.host=f.hostname}if(f.search=N.search,f.query=N.query,f.pathname!==null||f.search!==null)f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"");return f.href=f.format(),f}if(!G.length){if(f.pathname=null,f.search)f.path="/"+f.search;else f.path=null;return f.href=f.format(),f}var C=G.slice(-1)[0],H=(f.host||N.host||G.length>1)&&(C==="."||C==="..")||C==="",q=0;for(var O=G.length;O>=0;O--)if(C=G[O],C===".")G.splice(O,1);else if(C==="..")G.splice(O,1),q++;else if(q)G.splice(O,1),q--;if(!Z&&!R)for(;q--;q)G.unshift("..");if(Z&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/"))G.unshift("");if(H&&G.join("/").substr(-1)!=="/")G.push("");var L=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(F){f.hostname=L?"":G.length?G.shift():"",f.host=f.hostname;var z=f.host&&f.host.indexOf("@")>0?f.host.split("@"):!1;if(z)f.auth=z.shift(),f.hostname=z.shift(),f.host=f.hostname}if(Z=Z||f.host&&G.length,Z&&!L)G.unshift("");if(G.length>0)f.pathname=G.join("/");else f.pathname=null,f.path=null;if(f.pathname!==null||f.search!==null)f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"");return f.auth=N.auth||f.auth,f.slashes=f.slashes||N.slashes,f.href=f.format(),f};$.prototype.parseHost=function(){var N=this.host,J=o.exec(N);if(J){if(J=J[0],J!==":")this.port=J.substr(1);N=N.substr(0,N.length-J.length)}if(N)this.hostname=N};var p=globalThis[Symbol.for("Bun.lazy")],Gf=p("pathToFileURL"),Jf=p("fileURLToPath"),Kf={parse:g,resolve:ff,resolveObject:Nf,format:t,Url:$,URLSearchParams:S,URL:n,pathToFileURL:Gf,fileURLToPath:Jf,urlToHttpOptions:Bf,[Symbol.for("CommonJS")]:0};export{Bf as urlToHttpOptions,Nf as resolveObject,ff as resolve,Gf as pathToFileURL,g as parse,t as format,Jf as fileURLToPath,Kf as default,$ as Url,S as URLSearchParams,n as URL};
diff --git a/src/js/out/modules/node/util.js b/src/js/out/modules/node/util.js
index bb439a3fa..eade9e0d9 100644
--- a/src/js/out/modules/node/util.js
+++ b/src/js/out/modules/node/util.js
@@ -1,10 +1,14 @@
+import * as types from "node:util/types";
+import {default as default2} from "node:util/types";
var isBufferInterface = function({ copy, fill, readUint8 }) {
return typeof copy === "function" && typeof fill === "function" && typeof readUint8 === "function";
};
function isBuffer(value) {
return Buffer.isBuffer(value) || typeof value === "object" && isBufferInterface(value || {});
}
-var format = function(f) {
+var isFunction = function(value) {
+ return typeof value === "function";
+}, format = function(f) {
if (!isString(f)) {
var objects = [];
for (var i = 0;i < arguments.length; i++)
@@ -37,19 +41,18 @@ var format = function(f) {
else
str += " " + inspect(x);
return str;
-}, deprecate = function(fn, msg) {
- if (typeof process !== "undefined" && process.noDeprecation === !0)
+}, deprecate = function(fn, msg, code) {
+ if (process.noDeprecation === !0)
return fn;
- if (typeof process === "undefined")
- return function() {
- return exports.deprecate(fn, msg).apply(this, arguments);
- };
var warned = !1;
function deprecated() {
if (!warned) {
- if (process.throwDeprecation)
- throw new Error(msg);
- else if (process.traceDeprecation)
+ if (process.throwDeprecation) {
+ var err = new Error(msg);
+ if (code)
+ err.code = code;
+ throw err;
+ } else if (process.traceDeprecation)
console.trace(msg);
else
console.error(msg);
@@ -63,7 +66,7 @@ var format = function(f) {
if (debugEnvRegex.test(set)) {
var pid = process.pid;
debugs[set] = function() {
- var msg = exports.format.apply(exports, arguments);
+ var msg = format.apply(cjs_exports, arguments);
console.error("%s %d: %s", set, pid, msg);
};
} else
@@ -82,7 +85,7 @@ var format = function(f) {
if (isBoolean(opts))
ctx.showHidden = opts;
else if (opts)
- exports._extend(ctx, opts);
+ _extend(ctx, opts);
if (isUndefined(ctx.showHidden))
ctx.showHidden = !1;
if (isUndefined(ctx.depth))
@@ -108,7 +111,7 @@ var format = function(f) {
hash[val] = !0;
}), hash;
}, formatValue = function(ctx, value, recurseTimes) {
- if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && !(value.constructor && value.constructor.prototype === value)) {
+ if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== inspect && !(value.constructor && value.constructor.prototype === value)) {
var ret = value.inspect(recurseTimes, ctx);
if (!isString(ret))
ret = formatValue(ctx, ret, recurseTimes);
@@ -127,9 +130,9 @@ var format = function(f) {
var name = value.name ? ": " + value.name : "";
return ctx.stylize("[Function" + name + "]", "special");
}
- if (isRegExp(value))
+ if (isRegExp2(value))
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
- if (isDate(value))
+ if (isDate2(value))
return ctx.stylize(Date.prototype.toString.call(value), "date");
if (isError(value))
return formatError(value);
@@ -141,16 +144,16 @@ var format = function(f) {
var n = value.name ? ": " + value.name : "";
base = " [Function" + n + "]";
}
- if (isRegExp(value))
+ if (isRegExp2(value))
base = " " + RegExp.prototype.toString.call(value);
- if (isDate(value))
+ if (isDate2(value))
base = " " + Date.prototype.toUTCString.call(value);
if (isError(value))
base = " " + formatError(value);
if (keys.length === 0 && (!array || value.length == 0))
return braces[0] + base + braces[1];
if (recurseTimes < 0)
- if (isRegExp(value))
+ if (isRegExp2(value))
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
else
return ctx.stylize("[Object]", "special");
@@ -255,8 +258,6 @@ var format = function(f) {
return arg === void 0;
}, isObject = function(arg) {
return typeof arg === "object" && arg !== null;
-}, isFunction = function(arg) {
- return typeof arg === "function";
}, isPrimitive = function(arg) {
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
}, pad = function(n) {
@@ -269,7 +270,7 @@ var format = function(f) {
}, callbackifyOnRejected = function(reason, cb) {
if (!reason) {
var newReason = new Error("Promise was rejected with a falsy value");
- newReason.reason = reason, reason = newReason;
+ newReason.reason = reason, newReason.code = "ERR_FALSY_VALUE_REJECTION", reason = newReason;
}
return cb(reason);
}, callbackify = function(original) {
@@ -283,13 +284,13 @@ var format = function(f) {
return maybeCb.apply(self, arguments);
};
original.apply(this, args).then(function(ret) {
- process.nextTick(cb, null, null, ret);
+ process.nextTick(cb, null, ret);
}, function(rej) {
- process.nextTick(callbackifyOnRejected, null, rej, cb);
+ process.nextTick(callbackifyOnRejected, rej, cb);
});
}
return Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)), Object.defineProperties(callbackified, getOwnPropertyDescriptors(original)), callbackified;
-}, __getOwnPropNames = Object.getOwnPropertyNames, __commonJS = (cb, mod) => function __require() {
+}, cjs_exports = {}, util_default = cjs_exports, __getOwnPropNames = Object.getOwnPropertyNames, __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
}, require_inherits_browser = __commonJS({
"node_modules/inherits/inherits_browser.js"(exports, module2) {
@@ -304,17 +305,10 @@ var format = function(f) {
});
};
}
-}), deepEquals = Bun.deepEquals, isDeepStrictEqual = (a, b) => deepEquals(a, b, !0), exports = {
- isDeepStrictEqual
-}, getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors, formatRegExp = /%[sdj%]/g;
-exports.format = format;
-exports.deprecate = deprecate;
-var debugs = {}, debugEnvRegex = /^$/;
+}), deepEquals = Bun.deepEquals, isDeepStrictEqual = (a, b) => deepEquals(a, b, !0), getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors, formatRegExp = /%[sdj%]/g, debugs = {}, debugEnvRegex = /^$/;
if (process.env.NODE_DEBUG)
debugEnv = process.env.NODE_DEBUG, debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
var debugEnv;
-exports.debuglog = debuglog;
-exports.inspect = inspect;
inspect.colors = {
bold: [1, 22],
italic: [3, 23],
@@ -340,31 +334,16 @@ inspect.styles = {
date: "magenta",
regexp: "red"
};
-var types = import.meta.require("node:util/types");
-exports.types = types;
-exports.isArray = isArray;
-exports.isBoolean = isBoolean;
-exports.isNull = isNull;
-exports.isNullOrUndefined = isNullOrUndefined;
-exports.isNumber = isNumber;
-exports.isString = isString;
-exports.isSymbol = isSymbol;
-exports.isUndefined = isUndefined;
-var isRegExp = exports.isRegExp = exports.types.isRegExp;
-exports.isObject = isObject;
-var isDate = exports.isDate = exports.types.isDate, isError = exports.isError = exports.types.isNativeError, isFunction = exports.isFunction = isFunction;
-exports.isPrimitive = isPrimitive;
-exports.isBuffer = isBuffer;
-var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], log = exports.log = function() {
- console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments));
-}, inherits = exports.inherits = require_inherits_browser(), _extend = exports._extend = function(origin, add) {
+var isRegExp2 = types.isRegExp, isDate2 = types.isDate, isError = types.isNativeError, months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], log = function log2() {
+ console.log("%s - %s", timestamp(), format.apply(cjs_exports, arguments));
+}, inherits = inherits = require_inherits_browser(), _extend = function(origin, add) {
if (!add || !isObject(add))
return origin;
var keys = Object.keys(add), i = keys.length;
while (i--)
origin[keys[i]] = add[keys[i]];
return origin;
-}, kCustomPromisifiedSymbol = Symbol.for("util.promisify.custom"), promisify = exports.promisify = function promisify2(original) {
+}, kCustomPromisifiedSymbol = Symbol.for("util.promisify.custom"), promisify = function promisify2(original) {
if (typeof original !== "function")
throw new TypeError('The "original" argument must be of type Function');
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
@@ -406,18 +385,51 @@ var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oc
});
return Object.defineProperties(fn, getOwnPropertyDescriptors(original));
};
-exports.promisify.custom = kCustomPromisifiedSymbol;
-exports.callbackify = callbackify;
-var TextDecoder = exports.TextDecoder = globalThis.TextDecoder, TextEncoder = exports.TextEncoder = globalThis.TextEncoder;
-exports[Symbol.for("CommonJS")] = 0;
-var util_default = exports;
+promisify.custom = kCustomPromisifiedSymbol;
+var { TextDecoder, TextEncoder } = globalThis, toUSVString = (input) => {
+ return (input + "").toWellFormed();
+};
+Object.assign(cjs_exports, {
+ format,
+ deprecate,
+ debuglog,
+ _extend,
+ inspect,
+ types,
+ isArray,
+ isBoolean,
+ isNull,
+ isNullOrUndefined,
+ isNumber,
+ isString,
+ isSymbol,
+ isUndefined,
+ isRegExp: isRegExp2,
+ isObject,
+ isDate: isDate2,
+ isFunction,
+ isError,
+ isPrimitive,
+ isBuffer,
+ log,
+ inherits,
+ toUSVString,
+ promisify,
+ callbackify,
+ isDeepStrictEqual,
+ TextDecoder,
+ TextEncoder,
+ [Symbol.for("CommonJS")]: 0
+});
export {
+ default2 as types,
+ toUSVString,
promisify,
log,
isUndefined,
isSymbol,
isString,
- isRegExp,
+ isRegExp2 as isRegExp,
isPrimitive,
isObject,
isNumber,
@@ -426,7 +438,7 @@ export {
isFunction,
isError,
isDeepStrictEqual,
- isDate,
+ isDate2 as isDate,
isBuffer,
isBoolean,
isArray,
diff --git a/src/js/out/modules/node/wasi.js b/src/js/out/modules/node/wasi.js
index f449f1e46..ab6cf6abf 100644
--- a/src/js/out/modules/node/wasi.js
+++ b/src/js/out/modules/node/wasi.js
@@ -1062,8 +1062,8 @@ var nodeFsConstants = constants, __getOwnPropNames = Object.getOwnPropertyNames,
}
}
initWasiFdInfo() {
- if (this.env["WASI_FD_INFO"] != null) {
- const fdInfo = JSON.parse(this.env["WASI_FD_INFO"]);
+ if (this.env.WASI_FD_INFO != null) {
+ const fdInfo = JSON.parse(this.env.WASI_FD_INFO);
for (let wasi_fd in fdInfo) {
console.log(wasi_fd);
const fd = parseInt(wasi_fd);
diff --git a/src/js/out/modules/node/zlib.js b/src/js/out/modules/node/zlib.js
index afc7652e5..3558e2548 100644
--- a/src/js/out/modules/node/zlib.js
+++ b/src/js/out/modules/node/zlib.js
@@ -1,2547 +1 @@
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __commonJS = (cb, mod) => function __require() {
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
-};
-var require2 = (id) => import.meta.require(id), require_zstream = __commonJS({
- "node_modules/pako/lib/zlib/zstream.js"(exports, module2) {
- function ZStream() {
- this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
- }
- module2.exports = ZStream;
- }
-}), require_common = __commonJS({
- "node_modules/pako/lib/utils/common.js"(exports) {
- var TYPED_OK = typeof Uint8Array !== "undefined" && typeof Uint16Array !== "undefined" && typeof Int32Array !== "undefined";
- function _has(obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
- }
- exports.assign = function(obj) {
- var sources = Array.prototype.slice.call(arguments, 1);
- while (sources.length) {
- var source = sources.shift();
- if (!source)
- continue;
- if (typeof source !== "object")
- throw new TypeError(source + "must be non-object");
- for (var p in source)
- if (_has(source, p))
- obj[p] = source[p];
- }
- return obj;
- }, exports.shrinkBuf = function(buf, size) {
- if (buf.length === size)
- return buf;
- if (buf.subarray)
- return buf.subarray(0, size);
- return buf.length = size, buf;
- };
- var fnTyped = {
- arraySet: function(dest, src, src_offs, len, dest_offs) {
- if (src.subarray && dest.subarray) {
- dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
- return;
- }
- for (var i = 0;i < len; i++)
- dest[dest_offs + i] = src[src_offs + i];
- },
- flattenChunks: function(chunks) {
- var i, l, len, pos, chunk, result;
- len = 0;
- for (i = 0, l = chunks.length;i < l; i++)
- len += chunks[i].length;
- result = new Uint8Array(len), pos = 0;
- for (i = 0, l = chunks.length;i < l; i++)
- chunk = chunks[i], result.set(chunk, pos), pos += chunk.length;
- return result;
- }
- }, fnUntyped = {
- arraySet: function(dest, src, src_offs, len, dest_offs) {
- for (var i = 0;i < len; i++)
- dest[dest_offs + i] = src[src_offs + i];
- },
- flattenChunks: function(chunks) {
- return [].concat.apply([], chunks);
- }
- };
- exports.setTyped = function(on) {
- if (on)
- exports.Buf8 = Uint8Array, exports.Buf16 = Uint16Array, exports.Buf32 = Int32Array, exports.assign(exports, fnTyped);
- else
- exports.Buf8 = Array, exports.Buf16 = Array, exports.Buf32 = Array, exports.assign(exports, fnUntyped);
- }, exports.setTyped(TYPED_OK);
- }
-}), require_trees = __commonJS({
- "node_modules/pako/lib/zlib/trees.js"(exports) {
- var utils = require_common(), Z_FIXED = 4, Z_BINARY = 0, Z_TEXT = 1, Z_UNKNOWN = 2;
- function zero(buf) {
- var len = buf.length;
- while (--len >= 0)
- buf[len] = 0;
- }
- var STORED_BLOCK = 0, STATIC_TREES = 1, DYN_TREES = 2, MIN_MATCH = 3, MAX_MATCH = 258, LENGTH_CODES = 29, LITERALS = 256, L_CODES = LITERALS + 1 + LENGTH_CODES, D_CODES = 30, BL_CODES = 19, HEAP_SIZE = 2 * L_CODES + 1, MAX_BITS = 15, Buf_size = 16, MAX_BL_BITS = 7, END_BLOCK = 256, REP_3_6 = 16, REPZ_3_10 = 17, REPZ_11_138 = 18, extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], extra_dbits = [
- 0,
- 0,
- 0,
- 0,
- 1,
- 1,
- 2,
- 2,
- 3,
- 3,
- 4,
- 4,
- 5,
- 5,
- 6,
- 6,
- 7,
- 7,
- 8,
- 8,
- 9,
- 9,
- 10,
- 10,
- 11,
- 11,
- 12,
- 12,
- 13,
- 13
- ], extra_blbits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], DIST_CODE_LEN = 512, static_ltree = new Array((L_CODES + 2) * 2);
- zero(static_ltree);
- var static_dtree = new Array(D_CODES * 2);
- zero(static_dtree);
- var _dist_code = new Array(DIST_CODE_LEN);
- zero(_dist_code);
- var _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);
- zero(_length_code);
- var base_length = new Array(LENGTH_CODES);
- zero(base_length);
- var base_dist = new Array(D_CODES);
- zero(base_dist);
- function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
- this.static_tree = static_tree, this.extra_bits = extra_bits, this.extra_base = extra_base, this.elems = elems, this.max_length = max_length, this.has_stree = static_tree && static_tree.length;
- }
- var static_l_desc, static_d_desc, static_bl_desc;
- function TreeDesc(dyn_tree, stat_desc) {
- this.dyn_tree = dyn_tree, this.max_code = 0, this.stat_desc = stat_desc;
- }
- function d_code(dist) {
- return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
- }
- function put_short(s, w) {
- s.pending_buf[s.pending++] = w & 255, s.pending_buf[s.pending++] = w >>> 8 & 255;
- }
- function send_bits(s, value, length) {
- if (s.bi_valid > Buf_size - length)
- s.bi_buf |= value << s.bi_valid & 65535, put_short(s, s.bi_buf), s.bi_buf = value >> Buf_size - s.bi_valid, s.bi_valid += length - Buf_size;
- else
- s.bi_buf |= value << s.bi_valid & 65535, s.bi_valid += length;
- }
- function send_code(s, c, tree) {
- send_bits(s, tree[c * 2], tree[c * 2 + 1]);
- }
- function bi_reverse(code, len) {
- var res = 0;
- do
- res |= code & 1, code >>>= 1, res <<= 1;
- while (--len > 0);
- return res >>> 1;
- }
- function bi_flush(s) {
- if (s.bi_valid === 16)
- put_short(s, s.bi_buf), s.bi_buf = 0, s.bi_valid = 0;
- else if (s.bi_valid >= 8)
- s.pending_buf[s.pending++] = s.bi_buf & 255, s.bi_buf >>= 8, s.bi_valid -= 8;
- }
- function gen_bitlen(s, desc) {
- var { dyn_tree: tree, max_code } = desc, stree = desc.stat_desc.static_tree, has_stree = desc.stat_desc.has_stree, extra = desc.stat_desc.extra_bits, base = desc.stat_desc.extra_base, max_length = desc.stat_desc.max_length, h, n, m, bits, xbits, f, overflow = 0;
- for (bits = 0;bits <= MAX_BITS; bits++)
- s.bl_count[bits] = 0;
- tree[s.heap[s.heap_max] * 2 + 1] = 0;
- for (h = s.heap_max + 1;h < HEAP_SIZE; h++) {
- if (n = s.heap[h], bits = tree[tree[n * 2 + 1] * 2 + 1] + 1, bits > max_length)
- bits = max_length, overflow++;
- if (tree[n * 2 + 1] = bits, n > max_code)
- continue;
- if (s.bl_count[bits]++, xbits = 0, n >= base)
- xbits = extra[n - base];
- if (f = tree[n * 2], s.opt_len += f * (bits + xbits), has_stree)
- s.static_len += f * (stree[n * 2 + 1] + xbits);
- }
- if (overflow === 0)
- return;
- do {
- bits = max_length - 1;
- while (s.bl_count[bits] === 0)
- bits--;
- s.bl_count[bits]--, s.bl_count[bits + 1] += 2, s.bl_count[max_length]--, overflow -= 2;
- } while (overflow > 0);
- for (bits = max_length;bits !== 0; bits--) {
- n = s.bl_count[bits];
- while (n !== 0) {
- if (m = s.heap[--h], m > max_code)
- continue;
- if (tree[m * 2 + 1] !== bits)
- s.opt_len += (bits - tree[m * 2 + 1]) * tree[m * 2], tree[m * 2 + 1] = bits;
- n--;
- }
- }
- }
- function gen_codes(tree, max_code, bl_count) {
- var next_code = new Array(MAX_BITS + 1), code = 0, bits, n;
- for (bits = 1;bits <= MAX_BITS; bits++)
- next_code[bits] = code = code + bl_count[bits - 1] << 1;
- for (n = 0;n <= max_code; n++) {
- var len = tree[n * 2 + 1];
- if (len === 0)
- continue;
- tree[n * 2] = bi_reverse(next_code[len]++, len);
- }
- }
- function tr_static_init() {
- var n, bits, length, code, dist, bl_count = new Array(MAX_BITS + 1);
- length = 0;
- for (code = 0;code < LENGTH_CODES - 1; code++) {
- base_length[code] = length;
- for (n = 0;n < 1 << extra_lbits[code]; n++)
- _length_code[length++] = code;
- }
- _length_code[length - 1] = code, dist = 0;
- for (code = 0;code < 16; code++) {
- base_dist[code] = dist;
- for (n = 0;n < 1 << extra_dbits[code]; n++)
- _dist_code[dist++] = code;
- }
- dist >>= 7;
- for (;code < D_CODES; code++) {
- base_dist[code] = dist << 7;
- for (n = 0;n < 1 << extra_dbits[code] - 7; n++)
- _dist_code[256 + dist++] = code;
- }
- for (bits = 0;bits <= MAX_BITS; bits++)
- bl_count[bits] = 0;
- n = 0;
- while (n <= 143)
- static_ltree[n * 2 + 1] = 8, n++, bl_count[8]++;
- while (n <= 255)
- static_ltree[n * 2 + 1] = 9, n++, bl_count[9]++;
- while (n <= 279)
- static_ltree[n * 2 + 1] = 7, n++, bl_count[7]++;
- while (n <= 287)
- static_ltree[n * 2 + 1] = 8, n++, bl_count[8]++;
- gen_codes(static_ltree, L_CODES + 1, bl_count);
- for (n = 0;n < D_CODES; n++)
- static_dtree[n * 2 + 1] = 5, static_dtree[n * 2] = bi_reverse(n, 5);
- static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS), static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS), static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);
- }
- function init_block(s) {
- var n;
- for (n = 0;n < L_CODES; n++)
- s.dyn_ltree[n * 2] = 0;
- for (n = 0;n < D_CODES; n++)
- s.dyn_dtree[n * 2] = 0;
- for (n = 0;n < BL_CODES; n++)
- s.bl_tree[n * 2] = 0;
- s.dyn_ltree[END_BLOCK * 2] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
- }
- function bi_windup(s) {
- if (s.bi_valid > 8)
- put_short(s, s.bi_buf);
- else if (s.bi_valid > 0)
- s.pending_buf[s.pending++] = s.bi_buf;
- s.bi_buf = 0, s.bi_valid = 0;
- }
- function copy_block(s, buf, len, header) {
- if (bi_windup(s), header)
- put_short(s, len), put_short(s, ~len);
- utils.arraySet(s.pending_buf, s.window, buf, len, s.pending), s.pending += len;
- }
- function smaller(tree, n, m, depth) {
- var _n2 = n * 2, _m2 = m * 2;
- return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[m];
- }
- function pqdownheap(s, tree, k) {
- var v = s.heap[k], j = k << 1;
- while (j <= s.heap_len) {
- if (j < s.heap_len && smaller(tree, s.heap[j + 1], s.heap[j], s.depth))
- j++;
- if (smaller(tree, v, s.heap[j], s.depth))
- break;
- s.heap[k] = s.heap[j], k = j, j <<= 1;
- }
- s.heap[k] = v;
- }
- function compress_block(s, ltree, dtree) {
- var dist, lc, lx = 0, code, extra;
- if (s.last_lit !== 0)
- do
- if (dist = s.pending_buf[s.d_buf + lx * 2] << 8 | s.pending_buf[s.d_buf + lx * 2 + 1], lc = s.pending_buf[s.l_buf + lx], lx++, dist === 0)
- send_code(s, lc, ltree);
- else {
- if (code = _length_code[lc], send_code(s, code + LITERALS + 1, ltree), extra = extra_lbits[code], extra !== 0)
- lc -= base_length[code], send_bits(s, lc, extra);
- if (dist--, code = d_code(dist), send_code(s, code, dtree), extra = extra_dbits[code], extra !== 0)
- dist -= base_dist[code], send_bits(s, dist, extra);
- }
- while (lx < s.last_lit);
- send_code(s, END_BLOCK, ltree);
- }
- function build_tree(s, desc) {
- var tree = desc.dyn_tree, stree = desc.stat_desc.static_tree, has_stree = desc.stat_desc.has_stree, elems = desc.stat_desc.elems, n, m, max_code = -1, node;
- s.heap_len = 0, s.heap_max = HEAP_SIZE;
- for (n = 0;n < elems; n++)
- if (tree[n * 2] !== 0)
- s.heap[++s.heap_len] = max_code = n, s.depth[n] = 0;
- else
- tree[n * 2 + 1] = 0;
- while (s.heap_len < 2)
- if (node = s.heap[++s.heap_len] = max_code < 2 ? ++max_code : 0, tree[node * 2] = 1, s.depth[node] = 0, s.opt_len--, has_stree)
- s.static_len -= stree[node * 2 + 1];
- desc.max_code = max_code;
- for (n = s.heap_len >> 1;n >= 1; n--)
- pqdownheap(s, tree, n);
- node = elems;
- do
- n = s.heap[1], s.heap[1] = s.heap[s.heap_len--], pqdownheap(s, tree, 1), m = s.heap[1], s.heap[--s.heap_max] = n, s.heap[--s.heap_max] = m, tree[node * 2] = tree[n * 2] + tree[m * 2], s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1, tree[n * 2 + 1] = tree[m * 2 + 1] = node, s.heap[1] = node++, pqdownheap(s, tree, 1);
- while (s.heap_len >= 2);
- s.heap[--s.heap_max] = s.heap[1], gen_bitlen(s, desc), gen_codes(tree, max_code, s.bl_count);
- }
- function scan_tree(s, tree, max_code) {
- var n, prevlen = -1, curlen, nextlen = tree[1], count = 0, max_count = 7, min_count = 4;
- if (nextlen === 0)
- max_count = 138, min_count = 3;
- tree[(max_code + 1) * 2 + 1] = 65535;
- for (n = 0;n <= max_code; n++) {
- if (curlen = nextlen, nextlen = tree[(n + 1) * 2 + 1], ++count < max_count && curlen === nextlen)
- continue;
- else if (count < min_count)
- s.bl_tree[curlen * 2] += count;
- else if (curlen !== 0) {
- if (curlen !== prevlen)
- s.bl_tree[curlen * 2]++;
- s.bl_tree[REP_3_6 * 2]++;
- } else if (count <= 10)
- s.bl_tree[REPZ_3_10 * 2]++;
- else
- s.bl_tree[REPZ_11_138 * 2]++;
- if (count = 0, prevlen = curlen, nextlen === 0)
- max_count = 138, min_count = 3;
- else if (curlen === nextlen)
- max_count = 6, min_count = 3;
- else
- max_count = 7, min_count = 4;
- }
- }
- function send_tree(s, tree, max_code) {
- var n, prevlen = -1, curlen, nextlen = tree[1], count = 0, max_count = 7, min_count = 4;
- if (nextlen === 0)
- max_count = 138, min_count = 3;
- for (n = 0;n <= max_code; n++) {
- if (curlen = nextlen, nextlen = tree[(n + 1) * 2 + 1], ++count < max_count && curlen === nextlen)
- continue;
- else if (count < min_count)
- do
- send_code(s, curlen, s.bl_tree);
- while (--count !== 0);
- else if (curlen !== 0) {
- if (curlen !== prevlen)
- send_code(s, curlen, s.bl_tree), count--;
- send_code(s, REP_3_6, s.bl_tree), send_bits(s, count - 3, 2);
- } else if (count <= 10)
- send_code(s, REPZ_3_10, s.bl_tree), send_bits(s, count - 3, 3);
- else
- send_code(s, REPZ_11_138, s.bl_tree), send_bits(s, count - 11, 7);
- if (count = 0, prevlen = curlen, nextlen === 0)
- max_count = 138, min_count = 3;
- else if (curlen === nextlen)
- max_count = 6, min_count = 3;
- else
- max_count = 7, min_count = 4;
- }
- }
- function build_bl_tree(s) {
- var max_blindex;
- scan_tree(s, s.dyn_ltree, s.l_desc.max_code), scan_tree(s, s.dyn_dtree, s.d_desc.max_code), build_tree(s, s.bl_desc);
- for (max_blindex = BL_CODES - 1;max_blindex >= 3; max_blindex--)
- if (s.bl_tree[bl_order[max_blindex] * 2 + 1] !== 0)
- break;
- return s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4, max_blindex;
- }
- function send_all_trees(s, lcodes, dcodes, blcodes) {
- var rank;
- send_bits(s, lcodes - 257, 5), send_bits(s, dcodes - 1, 5), send_bits(s, blcodes - 4, 4);
- for (rank = 0;rank < blcodes; rank++)
- send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1], 3);
- send_tree(s, s.dyn_ltree, lcodes - 1), send_tree(s, s.dyn_dtree, dcodes - 1);
- }
- function detect_data_type(s) {
- var black_mask = 4093624447, n;
- for (n = 0;n <= 31; n++, black_mask >>>= 1)
- if (black_mask & 1 && s.dyn_ltree[n * 2] !== 0)
- return Z_BINARY;
- if (s.dyn_ltree[18] !== 0 || s.dyn_ltree[20] !== 0 || s.dyn_ltree[26] !== 0)
- return Z_TEXT;
- for (n = 32;n < LITERALS; n++)
- if (s.dyn_ltree[n * 2] !== 0)
- return Z_TEXT;
- return Z_BINARY;
- }
- var static_init_done = !1;
- function _tr_init(s) {
- if (!static_init_done)
- tr_static_init(), static_init_done = !0;
- s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc), s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc), s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc), s.bi_buf = 0, s.bi_valid = 0, init_block(s);
- }
- function _tr_stored_block(s, buf, stored_len, last) {
- send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3), copy_block(s, buf, stored_len, !0);
- }
- function _tr_align(s) {
- send_bits(s, STATIC_TREES << 1, 3), send_code(s, END_BLOCK, static_ltree), bi_flush(s);
- }
- function _tr_flush_block(s, buf, stored_len, last) {
- var opt_lenb, static_lenb, max_blindex = 0;
- if (s.level > 0) {
- if (s.strm.data_type === Z_UNKNOWN)
- s.strm.data_type = detect_data_type(s);
- if (build_tree(s, s.l_desc), build_tree(s, s.d_desc), max_blindex = build_bl_tree(s), opt_lenb = s.opt_len + 3 + 7 >>> 3, static_lenb = s.static_len + 3 + 7 >>> 3, static_lenb <= opt_lenb)
- opt_lenb = static_lenb;
- } else
- opt_lenb = static_lenb = stored_len + 5;
- if (stored_len + 4 <= opt_lenb && buf !== -1)
- _tr_stored_block(s, buf, stored_len, last);
- else if (s.strategy === Z_FIXED || static_lenb === opt_lenb)
- send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3), compress_block(s, static_ltree, static_dtree);
- else
- send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3), send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1), compress_block(s, s.dyn_ltree, s.dyn_dtree);
- if (init_block(s), last)
- bi_windup(s);
- }
- function _tr_tally(s, dist, lc) {
- if (s.pending_buf[s.d_buf + s.last_lit * 2] = dist >>> 8 & 255, s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 255, s.pending_buf[s.l_buf + s.last_lit] = lc & 255, s.last_lit++, dist === 0)
- s.dyn_ltree[lc * 2]++;
- else
- s.matches++, dist--, s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]++, s.dyn_dtree[d_code(dist) * 2]++;
- return s.last_lit === s.lit_bufsize - 1;
- }
- exports._tr_init = _tr_init, exports._tr_stored_block = _tr_stored_block, exports._tr_flush_block = _tr_flush_block, exports._tr_tally = _tr_tally, exports._tr_align = _tr_align;
- }
-}), require_adler32 = __commonJS({
- "node_modules/pako/lib/zlib/adler32.js"(exports, module2) {
- function adler32(adler, buf, len, pos) {
- var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0;
- while (len !== 0) {
- n = len > 2000 ? 2000 : len, len -= n;
- do
- s1 = s1 + buf[pos++] | 0, s2 = s2 + s1 | 0;
- while (--n);
- s1 %= 65521, s2 %= 65521;
- }
- return s1 | s2 << 16 | 0;
- }
- module2.exports = adler32;
- }
-}), require_crc32 = __commonJS({
- "node_modules/pako/lib/zlib/crc32.js"(exports, module2) {
- function makeTable() {
- var c, table = [];
- for (var n = 0;n < 256; n++) {
- c = n;
- for (var k = 0;k < 8; k++)
- c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
- table[n] = c;
- }
- return table;
- }
- var crcTable = makeTable();
- function crc32(crc, buf, len, pos) {
- var t = crcTable, end = pos + len;
- crc ^= -1;
- for (var i = pos;i < end; i++)
- crc = crc >>> 8 ^ t[(crc ^ buf[i]) & 255];
- return crc ^ -1;
- }
- module2.exports = crc32;
- }
-}), require_messages = __commonJS({
- "node_modules/pako/lib/zlib/messages.js"(exports, module2) {
- module2.exports = {
- 2: "need dictionary",
- 1: "stream end",
- 0: "",
- "-1": "file error",
- "-2": "stream error",
- "-3": "data error",
- "-4": "insufficient memory",
- "-5": "buffer error",
- "-6": "incompatible version"
- };
- }
-}), require_deflate = __commonJS({
- "node_modules/pako/lib/zlib/deflate.js"(exports) {
- var utils = require_common(), trees = require_trees(), adler32 = require_adler32(), crc32 = require_crc32(), msg = require_messages(), Z_NO_FLUSH = 0, Z_PARTIAL_FLUSH = 1, Z_FULL_FLUSH = 3, Z_FINISH = 4, Z_BLOCK = 5, Z_OK = 0, Z_STREAM_END = 1, Z_STREAM_ERROR = -2, Z_DATA_ERROR = -3, Z_BUF_ERROR = -5, Z_DEFAULT_COMPRESSION = -1, Z_FILTERED = 1, Z_HUFFMAN_ONLY = 2, Z_RLE = 3, Z_FIXED = 4, Z_DEFAULT_STRATEGY = 0, Z_UNKNOWN = 2, Z_DEFLATED = 8, MAX_MEM_LEVEL = 9, MAX_WBITS = 15, DEF_MEM_LEVEL = 8, LENGTH_CODES = 29, LITERALS = 256, L_CODES = LITERALS + 1 + LENGTH_CODES, D_CODES = 30, BL_CODES = 19, HEAP_SIZE = 2 * L_CODES + 1, MAX_BITS = 15, MIN_MATCH = 3, MAX_MATCH = 258, MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1, PRESET_DICT = 32, INIT_STATE = 42, EXTRA_STATE = 69, NAME_STATE = 73, COMMENT_STATE = 91, HCRC_STATE = 103, BUSY_STATE = 113, FINISH_STATE = 666, BS_NEED_MORE = 1, BS_BLOCK_DONE = 2, BS_FINISH_STARTED = 3, BS_FINISH_DONE = 4, OS_CODE = 3;
- function err(strm, errorCode) {
- return strm.msg = msg[errorCode], errorCode;
- }
- function rank(f) {
- return (f << 1) - (f > 4 ? 9 : 0);
- }
- function zero(buf) {
- var len = buf.length;
- while (--len >= 0)
- buf[len] = 0;
- }
- function flush_pending(strm) {
- var s = strm.state, len = s.pending;
- if (len > strm.avail_out)
- len = strm.avail_out;
- if (len === 0)
- return;
- if (utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out), strm.next_out += len, s.pending_out += len, strm.total_out += len, strm.avail_out -= len, s.pending -= len, s.pending === 0)
- s.pending_out = 0;
- }
- function flush_block_only(s, last) {
- trees._tr_flush_block(s, s.block_start >= 0 ? s.block_start : -1, s.strstart - s.block_start, last), s.block_start = s.strstart, flush_pending(s.strm);
- }
- function put_byte(s, b) {
- s.pending_buf[s.pending++] = b;
- }
- function putShortMSB(s, b) {
- s.pending_buf[s.pending++] = b >>> 8 & 255, s.pending_buf[s.pending++] = b & 255;
- }
- function read_buf(strm, buf, start, size) {
- var len = strm.avail_in;
- if (len > size)
- len = size;
- if (len === 0)
- return 0;
- if (strm.avail_in -= len, utils.arraySet(buf, strm.input, strm.next_in, len, start), strm.state.wrap === 1)
- strm.adler = adler32(strm.adler, buf, len, start);
- else if (strm.state.wrap === 2)
- strm.adler = crc32(strm.adler, buf, len, start);
- return strm.next_in += len, strm.total_in += len, len;
- }
- function longest_match(s, cur_match) {
- var { max_chain_length: chain_length, strstart: scan } = s, match, len, best_len = s.prev_length, nice_match = s.nice_match, limit = s.strstart > s.w_size - MIN_LOOKAHEAD ? s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0, _win = s.window, wmask = s.w_mask, prev = s.prev, strend = s.strstart + MAX_MATCH, scan_end1 = _win[scan + best_len - 1], scan_end = _win[scan + best_len];
- if (s.prev_length >= s.good_match)
- chain_length >>= 2;
- if (nice_match > s.lookahead)
- nice_match = s.lookahead;
- do {
- if (match = cur_match, _win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1])
- continue;
- scan += 2, match++;
- do
- ;
- while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
- if (len = MAX_MATCH - (strend - scan), scan = strend - MAX_MATCH, len > best_len) {
- if (s.match_start = cur_match, best_len = len, len >= nice_match)
- break;
- scan_end1 = _win[scan + best_len - 1], scan_end = _win[scan + best_len];
- }
- } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
- if (best_len <= s.lookahead)
- return best_len;
- return s.lookahead;
- }
- function fill_window(s) {
- var _w_size = s.w_size, p, n, m, more, str;
- do {
- if (more = s.window_size - s.lookahead - s.strstart, s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
- utils.arraySet(s.window, s.window, _w_size, _w_size, 0), s.match_start -= _w_size, s.strstart -= _w_size, s.block_start -= _w_size, n = s.hash_size, p = n;
- do
- m = s.head[--p], s.head[p] = m >= _w_size ? m - _w_size : 0;
- while (--n);
- n = _w_size, p = n;
- do
- m = s.prev[--p], s.prev[p] = m >= _w_size ? m - _w_size : 0;
- while (--n);
- more += _w_size;
- }
- if (s.strm.avail_in === 0)
- break;
- if (n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more), s.lookahead += n, s.lookahead + s.insert >= MIN_MATCH) {
- str = s.strstart - s.insert, s.ins_h = s.window[str], s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + 1]) & s.hash_mask;
- while (s.insert)
- if (s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask, s.prev[str & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = str, str++, s.insert--, s.lookahead + s.insert < MIN_MATCH)
- break;
- }
- } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
- }
- function deflate_stored(s, flush) {
- var max_block_size = 65535;
- if (max_block_size > s.pending_buf_size - 5)
- max_block_size = s.pending_buf_size - 5;
- for (;; ) {
- if (s.lookahead <= 1) {
- if (fill_window(s), s.lookahead === 0 && flush === Z_NO_FLUSH)
- return BS_NEED_MORE;
- if (s.lookahead === 0)
- break;
- }
- s.strstart += s.lookahead, s.lookahead = 0;
- var max_start = s.block_start + max_block_size;
- if (s.strstart === 0 || s.strstart >= max_start) {
- if (s.lookahead = s.strstart - max_start, s.strstart = max_start, flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- if (s.strstart - s.block_start >= s.w_size - MIN_LOOKAHEAD) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- }
- if (s.insert = 0, flush === Z_FINISH) {
- if (flush_block_only(s, !0), s.strm.avail_out === 0)
- return BS_FINISH_STARTED;
- return BS_FINISH_DONE;
- }
- if (s.strstart > s.block_start) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- return BS_NEED_MORE;
- }
- function deflate_fast(s, flush) {
- var hash_head, bflush;
- for (;; ) {
- if (s.lookahead < MIN_LOOKAHEAD) {
- if (fill_window(s), s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH)
- return BS_NEED_MORE;
- if (s.lookahead === 0)
- break;
- }
- if (hash_head = 0, s.lookahead >= MIN_MATCH)
- s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask, hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart;
- if (hash_head !== 0 && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD)
- s.match_length = longest_match(s, hash_head);
- if (s.match_length >= MIN_MATCH)
- if (bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH), s.lookahead -= s.match_length, s.match_length <= s.max_lazy_match && s.lookahead >= MIN_MATCH) {
- s.match_length--;
- do
- s.strstart++, s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask, hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart;
- while (--s.match_length !== 0);
- s.strstart++;
- } else
- s.strstart += s.match_length, s.match_length = 0, s.ins_h = s.window[s.strstart], s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + 1]) & s.hash_mask;
- else
- bflush = trees._tr_tally(s, 0, s.window[s.strstart]), s.lookahead--, s.strstart++;
- if (bflush) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- }
- if (s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1, flush === Z_FINISH) {
- if (flush_block_only(s, !0), s.strm.avail_out === 0)
- return BS_FINISH_STARTED;
- return BS_FINISH_DONE;
- }
- if (s.last_lit) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- return BS_BLOCK_DONE;
- }
- function deflate_slow(s, flush) {
- var hash_head, bflush, max_insert;
- for (;; ) {
- if (s.lookahead < MIN_LOOKAHEAD) {
- if (fill_window(s), s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH)
- return BS_NEED_MORE;
- if (s.lookahead === 0)
- break;
- }
- if (hash_head = 0, s.lookahead >= MIN_MATCH)
- s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask, hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart;
- if (s.prev_length = s.match_length, s.prev_match = s.match_start, s.match_length = MIN_MATCH - 1, hash_head !== 0 && s.prev_length < s.max_lazy_match && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD) {
- if (s.match_length = longest_match(s, hash_head), s.match_length <= 5 && (s.strategy === Z_FILTERED || s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096))
- s.match_length = MIN_MATCH - 1;
- }
- if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
- max_insert = s.strstart + s.lookahead - MIN_MATCH, bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH), s.lookahead -= s.prev_length - 1, s.prev_length -= 2;
- do
- if (++s.strstart <= max_insert)
- s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask, hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart;
- while (--s.prev_length !== 0);
- if (s.match_available = 0, s.match_length = MIN_MATCH - 1, s.strstart++, bflush) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- } else if (s.match_available) {
- if (bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]), bflush)
- flush_block_only(s, !1);
- if (s.strstart++, s.lookahead--, s.strm.avail_out === 0)
- return BS_NEED_MORE;
- } else
- s.match_available = 1, s.strstart++, s.lookahead--;
- }
- if (s.match_available)
- bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]), s.match_available = 0;
- if (s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1, flush === Z_FINISH) {
- if (flush_block_only(s, !0), s.strm.avail_out === 0)
- return BS_FINISH_STARTED;
- return BS_FINISH_DONE;
- }
- if (s.last_lit) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- return BS_BLOCK_DONE;
- }
- function deflate_rle(s, flush) {
- var bflush, prev, scan, strend, _win = s.window;
- for (;; ) {
- if (s.lookahead <= MAX_MATCH) {
- if (fill_window(s), s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH)
- return BS_NEED_MORE;
- if (s.lookahead === 0)
- break;
- }
- if (s.match_length = 0, s.lookahead >= MIN_MATCH && s.strstart > 0) {
- if (scan = s.strstart - 1, prev = _win[scan], prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
- strend = s.strstart + MAX_MATCH;
- do
- ;
- while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
- if (s.match_length = MAX_MATCH - (strend - scan), s.match_length > s.lookahead)
- s.match_length = s.lookahead;
- }
- }
- if (s.match_length >= MIN_MATCH)
- bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH), s.lookahead -= s.match_length, s.strstart += s.match_length, s.match_length = 0;
- else
- bflush = trees._tr_tally(s, 0, s.window[s.strstart]), s.lookahead--, s.strstart++;
- if (bflush) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- }
- if (s.insert = 0, flush === Z_FINISH) {
- if (flush_block_only(s, !0), s.strm.avail_out === 0)
- return BS_FINISH_STARTED;
- return BS_FINISH_DONE;
- }
- if (s.last_lit) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- return BS_BLOCK_DONE;
- }
- function deflate_huff(s, flush) {
- var bflush;
- for (;; ) {
- if (s.lookahead === 0) {
- if (fill_window(s), s.lookahead === 0) {
- if (flush === Z_NO_FLUSH)
- return BS_NEED_MORE;
- break;
- }
- }
- if (s.match_length = 0, bflush = trees._tr_tally(s, 0, s.window[s.strstart]), s.lookahead--, s.strstart++, bflush) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- }
- if (s.insert = 0, flush === Z_FINISH) {
- if (flush_block_only(s, !0), s.strm.avail_out === 0)
- return BS_FINISH_STARTED;
- return BS_FINISH_DONE;
- }
- if (s.last_lit) {
- if (flush_block_only(s, !1), s.strm.avail_out === 0)
- return BS_NEED_MORE;
- }
- return BS_BLOCK_DONE;
- }
- function Config(good_length, max_lazy, nice_length, max_chain, func) {
- this.good_length = good_length, this.max_lazy = max_lazy, this.nice_length = nice_length, this.max_chain = max_chain, this.func = func;
- }
- var configuration_table = [
- new Config(0, 0, 0, 0, deflate_stored),
- new Config(4, 4, 8, 4, deflate_fast),
- new Config(4, 5, 16, 8, deflate_fast),
- new Config(4, 6, 32, 32, deflate_fast),
- new Config(4, 4, 16, 16, deflate_slow),
- new Config(8, 16, 32, 32, deflate_slow),
- new Config(8, 16, 128, 128, deflate_slow),
- new Config(8, 32, 128, 256, deflate_slow),
- new Config(32, 128, 258, 1024, deflate_slow),
- new Config(32, 258, 258, 4096, deflate_slow)
- ];
- function lm_init(s) {
- s.window_size = 2 * s.w_size, zero(s.head), s.max_lazy_match = configuration_table[s.level].max_lazy, s.good_match = configuration_table[s.level].good_length, s.nice_match = configuration_table[s.level].nice_length, s.max_chain_length = configuration_table[s.level].max_chain, s.strstart = 0, s.block_start = 0, s.lookahead = 0, s.insert = 0, s.match_length = s.prev_length = MIN_MATCH - 1, s.match_available = 0, s.ins_h = 0;
- }
- function DeflateState() {
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Z_DEFLATED, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2), this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2), this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2), zero(this.dyn_ltree), zero(this.dyn_dtree), zero(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new utils.Buf16(MAX_BITS + 1), this.heap = new utils.Buf16(2 * L_CODES + 1), zero(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new utils.Buf16(2 * L_CODES + 1), zero(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
- }
- function deflateResetKeep(strm) {
- var s;
- if (!strm || !strm.state)
- return err(strm, Z_STREAM_ERROR);
- if (strm.total_in = strm.total_out = 0, strm.data_type = Z_UNKNOWN, s = strm.state, s.pending = 0, s.pending_out = 0, s.wrap < 0)
- s.wrap = -s.wrap;
- return s.status = s.wrap ? INIT_STATE : BUSY_STATE, strm.adler = s.wrap === 2 ? 0 : 1, s.last_flush = Z_NO_FLUSH, trees._tr_init(s), Z_OK;
- }
- function deflateReset(strm) {
- var ret = deflateResetKeep(strm);
- if (ret === Z_OK)
- lm_init(strm.state);
- return ret;
- }
- function deflateSetHeader(strm, head) {
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (strm.state.wrap !== 2)
- return Z_STREAM_ERROR;
- return strm.state.gzhead = head, Z_OK;
- }
- function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
- if (!strm)
- return Z_STREAM_ERROR;
- var wrap = 1;
- if (level === Z_DEFAULT_COMPRESSION)
- level = 6;
- if (windowBits < 0)
- wrap = 0, windowBits = -windowBits;
- else if (windowBits > 15)
- wrap = 2, windowBits -= 16;
- if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED || windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED)
- return err(strm, Z_STREAM_ERROR);
- if (windowBits === 8)
- windowBits = 9;
- var s = new DeflateState;
- return strm.state = s, s.strm = strm, s.wrap = wrap, s.gzhead = null, s.w_bits = windowBits, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = memLevel + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH), s.window = new utils.Buf8(s.w_size * 2), s.head = new utils.Buf16(s.hash_size), s.prev = new utils.Buf16(s.w_size), s.lit_bufsize = 1 << memLevel + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new utils.Buf8(s.pending_buf_size), s.d_buf = 1 * s.lit_bufsize, s.l_buf = 3 * s.lit_bufsize, s.level = level, s.strategy = strategy, s.method = method, deflateReset(strm);
- }
- function deflateInit(strm, level) {
- return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
- }
- function deflate(strm, flush) {
- var old_flush, s, beg, val;
- if (!strm || !strm.state || flush > Z_BLOCK || flush < 0)
- return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
- if (s = strm.state, !strm.output || !strm.input && strm.avail_in !== 0 || s.status === FINISH_STATE && flush !== Z_FINISH)
- return err(strm, strm.avail_out === 0 ? Z_BUF_ERROR : Z_STREAM_ERROR);
- if (s.strm = strm, old_flush = s.last_flush, s.last_flush = flush, s.status === INIT_STATE)
- if (s.wrap === 2)
- if (strm.adler = 0, put_byte(s, 31), put_byte(s, 139), put_byte(s, 8), !s.gzhead)
- put_byte(s, 0), put_byte(s, 0), put_byte(s, 0), put_byte(s, 0), put_byte(s, 0), put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0), put_byte(s, OS_CODE), s.status = BUSY_STATE;
- else {
- if (put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (!s.gzhead.extra ? 0 : 4) + (!s.gzhead.name ? 0 : 8) + (!s.gzhead.comment ? 0 : 16)), put_byte(s, s.gzhead.time & 255), put_byte(s, s.gzhead.time >> 8 & 255), put_byte(s, s.gzhead.time >> 16 & 255), put_byte(s, s.gzhead.time >> 24 & 255), put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0), put_byte(s, s.gzhead.os & 255), s.gzhead.extra && s.gzhead.extra.length)
- put_byte(s, s.gzhead.extra.length & 255), put_byte(s, s.gzhead.extra.length >> 8 & 255);
- if (s.gzhead.hcrc)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
- s.gzindex = 0, s.status = EXTRA_STATE;
- }
- else {
- var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8, level_flags = -1;
- if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2)
- level_flags = 0;
- else if (s.level < 6)
- level_flags = 1;
- else if (s.level === 6)
- level_flags = 2;
- else
- level_flags = 3;
- if (header |= level_flags << 6, s.strstart !== 0)
- header |= PRESET_DICT;
- if (header += 31 - header % 31, s.status = BUSY_STATE, putShortMSB(s, header), s.strstart !== 0)
- putShortMSB(s, strm.adler >>> 16), putShortMSB(s, strm.adler & 65535);
- strm.adler = 1;
- }
- if (s.status === EXTRA_STATE)
- if (s.gzhead.extra) {
- beg = s.pending;
- while (s.gzindex < (s.gzhead.extra.length & 65535)) {
- if (s.pending === s.pending_buf_size) {
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (flush_pending(strm), beg = s.pending, s.pending === s.pending_buf_size)
- break;
- }
- put_byte(s, s.gzhead.extra[s.gzindex] & 255), s.gzindex++;
- }
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (s.gzindex === s.gzhead.extra.length)
- s.gzindex = 0, s.status = NAME_STATE;
- } else
- s.status = NAME_STATE;
- if (s.status === NAME_STATE)
- if (s.gzhead.name) {
- beg = s.pending;
- do {
- if (s.pending === s.pending_buf_size) {
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (flush_pending(strm), beg = s.pending, s.pending === s.pending_buf_size) {
- val = 1;
- break;
- }
- }
- if (s.gzindex < s.gzhead.name.length)
- val = s.gzhead.name.charCodeAt(s.gzindex++) & 255;
- else
- val = 0;
- put_byte(s, val);
- } while (val !== 0);
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (val === 0)
- s.gzindex = 0, s.status = COMMENT_STATE;
- } else
- s.status = COMMENT_STATE;
- if (s.status === COMMENT_STATE)
- if (s.gzhead.comment) {
- beg = s.pending;
- do {
- if (s.pending === s.pending_buf_size) {
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (flush_pending(strm), beg = s.pending, s.pending === s.pending_buf_size) {
- val = 1;
- break;
- }
- }
- if (s.gzindex < s.gzhead.comment.length)
- val = s.gzhead.comment.charCodeAt(s.gzindex++) & 255;
- else
- val = 0;
- put_byte(s, val);
- } while (val !== 0);
- if (s.gzhead.hcrc && s.pending > beg)
- strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
- if (val === 0)
- s.status = HCRC_STATE;
- } else
- s.status = HCRC_STATE;
- if (s.status === HCRC_STATE)
- if (s.gzhead.hcrc) {
- if (s.pending + 2 > s.pending_buf_size)
- flush_pending(strm);
- if (s.pending + 2 <= s.pending_buf_size)
- put_byte(s, strm.adler & 255), put_byte(s, strm.adler >> 8 & 255), strm.adler = 0, s.status = BUSY_STATE;
- } else
- s.status = BUSY_STATE;
- if (s.pending !== 0) {
- if (flush_pending(strm), strm.avail_out === 0)
- return s.last_flush = -1, Z_OK;
- } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) && flush !== Z_FINISH)
- return err(strm, Z_BUF_ERROR);
- if (s.status === FINISH_STATE && strm.avail_in !== 0)
- return err(strm, Z_BUF_ERROR);
- if (strm.avail_in !== 0 || s.lookahead !== 0 || flush !== Z_NO_FLUSH && s.status !== FINISH_STATE) {
- var bstate = s.strategy === Z_HUFFMAN_ONLY ? deflate_huff(s, flush) : s.strategy === Z_RLE ? deflate_rle(s, flush) : configuration_table[s.level].func(s, flush);
- if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE)
- s.status = FINISH_STATE;
- if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
- if (strm.avail_out === 0)
- s.last_flush = -1;
- return Z_OK;
- }
- if (bstate === BS_BLOCK_DONE) {
- if (flush === Z_PARTIAL_FLUSH)
- trees._tr_align(s);
- else if (flush !== Z_BLOCK) {
- if (trees._tr_stored_block(s, 0, 0, !1), flush === Z_FULL_FLUSH) {
- if (zero(s.head), s.lookahead === 0)
- s.strstart = 0, s.block_start = 0, s.insert = 0;
- }
- }
- if (flush_pending(strm), strm.avail_out === 0)
- return s.last_flush = -1, Z_OK;
- }
- }
- if (flush !== Z_FINISH)
- return Z_OK;
- if (s.wrap <= 0)
- return Z_STREAM_END;
- if (s.wrap === 2)
- put_byte(s, strm.adler & 255), put_byte(s, strm.adler >> 8 & 255), put_byte(s, strm.adler >> 16 & 255), put_byte(s, strm.adler >> 24 & 255), put_byte(s, strm.total_in & 255), put_byte(s, strm.total_in >> 8 & 255), put_byte(s, strm.total_in >> 16 & 255), put_byte(s, strm.total_in >> 24 & 255);
- else
- putShortMSB(s, strm.adler >>> 16), putShortMSB(s, strm.adler & 65535);
- if (flush_pending(strm), s.wrap > 0)
- s.wrap = -s.wrap;
- return s.pending !== 0 ? Z_OK : Z_STREAM_END;
- }
- function deflateEnd(strm) {
- var status;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (status = strm.state.status, status !== INIT_STATE && status !== EXTRA_STATE && status !== NAME_STATE && status !== COMMENT_STATE && status !== HCRC_STATE && status !== BUSY_STATE && status !== FINISH_STATE)
- return err(strm, Z_STREAM_ERROR);
- return strm.state = null, status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
- }
- function deflateSetDictionary(strm, dictionary) {
- var dictLength = dictionary.length, s, str, n, wrap, avail, next, input, tmpDict;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (s = strm.state, wrap = s.wrap, wrap === 2 || wrap === 1 && s.status !== INIT_STATE || s.lookahead)
- return Z_STREAM_ERROR;
- if (wrap === 1)
- strm.adler = adler32(strm.adler, dictionary, dictLength, 0);
- if (s.wrap = 0, dictLength >= s.w_size) {
- if (wrap === 0)
- zero(s.head), s.strstart = 0, s.block_start = 0, s.insert = 0;
- tmpDict = new utils.Buf8(s.w_size), utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0), dictionary = tmpDict, dictLength = s.w_size;
- }
- avail = strm.avail_in, next = strm.next_in, input = strm.input, strm.avail_in = dictLength, strm.next_in = 0, strm.input = dictionary, fill_window(s);
- while (s.lookahead >= MIN_MATCH) {
- str = s.strstart, n = s.lookahead - (MIN_MATCH - 1);
- do
- s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask, s.prev[str & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = str, str++;
- while (--n);
- s.strstart = str, s.lookahead = MIN_MATCH - 1, fill_window(s);
- }
- return s.strstart += s.lookahead, s.block_start = s.strstart, s.insert = s.lookahead, s.lookahead = 0, s.match_length = s.prev_length = MIN_MATCH - 1, s.match_available = 0, strm.next_in = next, strm.input = input, strm.avail_in = avail, s.wrap = wrap, Z_OK;
- }
- exports.deflateInit = deflateInit, exports.deflateInit2 = deflateInit2, exports.deflateReset = deflateReset, exports.deflateResetKeep = deflateResetKeep, exports.deflateSetHeader = deflateSetHeader, exports.deflate = deflate, exports.deflateEnd = deflateEnd, exports.deflateSetDictionary = deflateSetDictionary, exports.deflateInfo = "pako deflate (from Nodeca project)";
- }
-}), require_inffast = __commonJS({
- "node_modules/pako/lib/zlib/inffast.js"(exports, module2) {
- var BAD = 30, TYPE = 12;
- module2.exports = function inflate_fast(strm, start) {
- var state, _in, last, _out, beg, end, dmax, wsize, whave, wnext, s_window, hold, bits, lcode, dcode, lmask, dmask, here, op, len, dist, from, from_source, input, output;
- state = strm.state, _in = strm.next_in, input = strm.input, last = _in + (strm.avail_in - 5), _out = strm.next_out, output = strm.output, beg = _out - (start - strm.avail_out), end = _out + (strm.avail_out - 257), dmax = state.dmax, wsize = state.wsize, whave = state.whave, wnext = state.wnext, s_window = state.window, hold = state.hold, bits = state.bits, lcode = state.lencode, dcode = state.distcode, lmask = (1 << state.lenbits) - 1, dmask = (1 << state.distbits) - 1;
- top:
- do {
- if (bits < 15)
- hold += input[_in++] << bits, bits += 8, hold += input[_in++] << bits, bits += 8;
- here = lcode[hold & lmask];
- dolen:
- for (;; ) {
- if (op = here >>> 24, hold >>>= op, bits -= op, op = here >>> 16 & 255, op === 0)
- output[_out++] = here & 65535;
- else if (op & 16) {
- if (len = here & 65535, op &= 15, op) {
- if (bits < op)
- hold += input[_in++] << bits, bits += 8;
- len += hold & (1 << op) - 1, hold >>>= op, bits -= op;
- }
- if (bits < 15)
- hold += input[_in++] << bits, bits += 8, hold += input[_in++] << bits, bits += 8;
- here = dcode[hold & dmask];
- dodist:
- for (;; ) {
- if (op = here >>> 24, hold >>>= op, bits -= op, op = here >>> 16 & 255, op & 16) {
- if (dist = here & 65535, op &= 15, bits < op) {
- if (hold += input[_in++] << bits, bits += 8, bits < op)
- hold += input[_in++] << bits, bits += 8;
- }
- if (dist += hold & (1 << op) - 1, dist > dmax) {
- strm.msg = "invalid distance too far back", state.mode = BAD;
- break top;
- }
- if (hold >>>= op, bits -= op, op = _out - beg, dist > op) {
- if (op = dist - op, op > whave) {
- if (state.sane) {
- strm.msg = "invalid distance too far back", state.mode = BAD;
- break top;
- }
- }
- if (from = 0, from_source = s_window, wnext === 0) {
- if (from += wsize - op, op < len) {
- len -= op;
- do
- output[_out++] = s_window[from++];
- while (--op);
- from = _out - dist, from_source = output;
- }
- } else if (wnext < op) {
- if (from += wsize + wnext - op, op -= wnext, op < len) {
- len -= op;
- do
- output[_out++] = s_window[from++];
- while (--op);
- if (from = 0, wnext < len) {
- op = wnext, len -= op;
- do
- output[_out++] = s_window[from++];
- while (--op);
- from = _out - dist, from_source = output;
- }
- }
- } else if (from += wnext - op, op < len) {
- len -= op;
- do
- output[_out++] = s_window[from++];
- while (--op);
- from = _out - dist, from_source = output;
- }
- while (len > 2)
- output[_out++] = from_source[from++], output[_out++] = from_source[from++], output[_out++] = from_source[from++], len -= 3;
- if (len) {
- if (output[_out++] = from_source[from++], len > 1)
- output[_out++] = from_source[from++];
- }
- } else {
- from = _out - dist;
- do
- output[_out++] = output[from++], output[_out++] = output[from++], output[_out++] = output[from++], len -= 3;
- while (len > 2);
- if (len) {
- if (output[_out++] = output[from++], len > 1)
- output[_out++] = output[from++];
- }
- }
- } else if ((op & 64) === 0) {
- here = dcode[(here & 65535) + (hold & (1 << op) - 1)];
- continue dodist;
- } else {
- strm.msg = "invalid distance code", state.mode = BAD;
- break top;
- }
- break;
- }
- } else if ((op & 64) === 0) {
- here = lcode[(here & 65535) + (hold & (1 << op) - 1)];
- continue dolen;
- } else if (op & 32) {
- state.mode = TYPE;
- break top;
- } else {
- strm.msg = "invalid literal/length code", state.mode = BAD;
- break top;
- }
- break;
- }
- } while (_in < last && _out < end);
- len = bits >> 3, _in -= len, bits -= len << 3, hold &= (1 << bits) - 1, strm.next_in = _in, strm.next_out = _out, strm.avail_in = _in < last ? 5 + (last - _in) : 5 - (_in - last), strm.avail_out = _out < end ? 257 + (end - _out) : 257 - (_out - end), state.hold = hold, state.bits = bits;
- return;
- };
- }
-}), require_inftrees = __commonJS({
- "node_modules/pako/lib/zlib/inftrees.js"(exports, module2) {
- var utils = require_common(), MAXBITS = 15, ENOUGH_LENS = 852, ENOUGH_DISTS = 592, CODES = 0, LENS = 1, DISTS = 2, lbase = [
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 13,
- 15,
- 17,
- 19,
- 23,
- 27,
- 31,
- 35,
- 43,
- 51,
- 59,
- 67,
- 83,
- 99,
- 115,
- 131,
- 163,
- 195,
- 227,
- 258,
- 0,
- 0
- ], lext = [
- 16,
- 16,
- 16,
- 16,
- 16,
- 16,
- 16,
- 16,
- 17,
- 17,
- 17,
- 17,
- 18,
- 18,
- 18,
- 18,
- 19,
- 19,
- 19,
- 19,
- 20,
- 20,
- 20,
- 20,
- 21,
- 21,
- 21,
- 21,
- 16,
- 72,
- 78
- ], dbase = [
- 1,
- 2,
- 3,
- 4,
- 5,
- 7,
- 9,
- 13,
- 17,
- 25,
- 33,
- 49,
- 65,
- 97,
- 129,
- 193,
- 257,
- 385,
- 513,
- 769,
- 1025,
- 1537,
- 2049,
- 3073,
- 4097,
- 6145,
- 8193,
- 12289,
- 16385,
- 24577,
- 0,
- 0
- ], dext = [
- 16,
- 16,
- 16,
- 16,
- 17,
- 17,
- 18,
- 18,
- 19,
- 19,
- 20,
- 20,
- 21,
- 21,
- 22,
- 22,
- 23,
- 23,
- 24,
- 24,
- 25,
- 25,
- 26,
- 26,
- 27,
- 27,
- 28,
- 28,
- 29,
- 29,
- 64,
- 64
- ];
- module2.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts) {
- var bits = opts.bits, len = 0, sym = 0, min = 0, max = 0, root = 0, curr = 0, drop = 0, left = 0, used = 0, huff = 0, incr, fill, low, mask, next, base = null, base_index = 0, end, count = new utils.Buf16(MAXBITS + 1), offs = new utils.Buf16(MAXBITS + 1), extra = null, extra_index = 0, here_bits, here_op, here_val;
- for (len = 0;len <= MAXBITS; len++)
- count[len] = 0;
- for (sym = 0;sym < codes; sym++)
- count[lens[lens_index + sym]]++;
- root = bits;
- for (max = MAXBITS;max >= 1; max--)
- if (count[max] !== 0)
- break;
- if (root > max)
- root = max;
- if (max === 0)
- return table[table_index++] = 1 << 24 | 64 << 16 | 0, table[table_index++] = 1 << 24 | 64 << 16 | 0, opts.bits = 1, 0;
- for (min = 1;min < max; min++)
- if (count[min] !== 0)
- break;
- if (root < min)
- root = min;
- left = 1;
- for (len = 1;len <= MAXBITS; len++)
- if (left <<= 1, left -= count[len], left < 0)
- return -1;
- if (left > 0 && (type === CODES || max !== 1))
- return -1;
- offs[1] = 0;
- for (len = 1;len < MAXBITS; len++)
- offs[len + 1] = offs[len] + count[len];
- for (sym = 0;sym < codes; sym++)
- if (lens[lens_index + sym] !== 0)
- work[offs[lens[lens_index + sym]]++] = sym;
- if (type === CODES)
- base = extra = work, end = 19;
- else if (type === LENS)
- base = lbase, base_index -= 257, extra = lext, extra_index -= 257, end = 256;
- else
- base = dbase, extra = dext, end = -1;
- if (huff = 0, sym = 0, len = min, next = table_index, curr = root, drop = 0, low = -1, used = 1 << root, mask = used - 1, type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS)
- return 1;
- for (;; ) {
- if (here_bits = len - drop, work[sym] < end)
- here_op = 0, here_val = work[sym];
- else if (work[sym] > end)
- here_op = extra[extra_index + work[sym]], here_val = base[base_index + work[sym]];
- else
- here_op = 96, here_val = 0;
- incr = 1 << len - drop, fill = 1 << curr, min = fill;
- do
- fill -= incr, table[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val | 0;
- while (fill !== 0);
- incr = 1 << len - 1;
- while (huff & incr)
- incr >>= 1;
- if (incr !== 0)
- huff &= incr - 1, huff += incr;
- else
- huff = 0;
- if (sym++, --count[len] === 0) {
- if (len === max)
- break;
- len = lens[lens_index + work[sym]];
- }
- if (len > root && (huff & mask) !== low) {
- if (drop === 0)
- drop = root;
- next += min, curr = len - drop, left = 1 << curr;
- while (curr + drop < max) {
- if (left -= count[curr + drop], left <= 0)
- break;
- curr++, left <<= 1;
- }
- if (used += 1 << curr, type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS)
- return 1;
- low = huff & mask, table[low] = root << 24 | curr << 16 | next - table_index | 0;
- }
- }
- if (huff !== 0)
- table[next + huff] = len - drop << 24 | 64 << 16 | 0;
- return opts.bits = root, 0;
- };
- }
-}), require_inflate = __commonJS({
- "node_modules/pako/lib/zlib/inflate.js"(exports) {
- var utils = require_common(), adler32 = require_adler32(), crc32 = require_crc32(), inflate_fast = require_inffast(), inflate_table = require_inftrees(), CODES = 0, LENS = 1, DISTS = 2, Z_FINISH = 4, Z_BLOCK = 5, Z_TREES = 6, Z_OK = 0, Z_STREAM_END = 1, Z_NEED_DICT = 2, Z_STREAM_ERROR = -2, Z_DATA_ERROR = -3, Z_MEM_ERROR = -4, Z_BUF_ERROR = -5, Z_DEFLATED = 8, HEAD = 1, FLAGS = 2, TIME = 3, OS = 4, EXLEN = 5, EXTRA = 6, NAME = 7, COMMENT = 8, HCRC = 9, DICTID = 10, DICT = 11, TYPE = 12, TYPEDO = 13, STORED = 14, COPY_ = 15, COPY = 16, TABLE = 17, LENLENS = 18, CODELENS = 19, LEN_ = 20, LEN = 21, LENEXT = 22, DIST = 23, DISTEXT = 24, MATCH = 25, LIT = 26, CHECK = 27, LENGTH = 28, DONE = 29, BAD = 30, MEM = 31, SYNC = 32, ENOUGH_LENS = 852, ENOUGH_DISTS = 592, MAX_WBITS = 15, DEF_WBITS = MAX_WBITS;
- function zswap32(q) {
- return (q >>> 24 & 255) + (q >>> 8 & 65280) + ((q & 65280) << 8) + ((q & 255) << 24);
- }
- function InflateState() {
- this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new utils.Buf16(320), this.work = new utils.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
- }
- function inflateResetKeep(strm) {
- var state;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (state = strm.state, strm.total_in = strm.total_out = state.total = 0, strm.msg = "", state.wrap)
- strm.adler = state.wrap & 1;
- return state.mode = HEAD, state.last = 0, state.havedict = 0, state.dmax = 32768, state.head = null, state.hold = 0, state.bits = 0, state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS), state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS), state.sane = 1, state.back = -1, Z_OK;
- }
- function inflateReset(strm) {
- var state;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- return state = strm.state, state.wsize = 0, state.whave = 0, state.wnext = 0, inflateResetKeep(strm);
- }
- function inflateReset2(strm, windowBits) {
- var wrap, state;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (state = strm.state, windowBits < 0)
- wrap = 0, windowBits = -windowBits;
- else if (wrap = (windowBits >> 4) + 1, windowBits < 48)
- windowBits &= 15;
- if (windowBits && (windowBits < 8 || windowBits > 15))
- return Z_STREAM_ERROR;
- if (state.window !== null && state.wbits !== windowBits)
- state.window = null;
- return state.wrap = wrap, state.wbits = windowBits, inflateReset(strm);
- }
- function inflateInit2(strm, windowBits) {
- var ret, state;
- if (!strm)
- return Z_STREAM_ERROR;
- if (state = new InflateState, strm.state = state, state.window = null, ret = inflateReset2(strm, windowBits), ret !== Z_OK)
- strm.state = null;
- return ret;
- }
- function inflateInit(strm) {
- return inflateInit2(strm, DEF_WBITS);
- }
- var virgin = !0, lenfix, distfix;
- function fixedtables(state) {
- if (virgin) {
- var sym;
- lenfix = new utils.Buf32(512), distfix = new utils.Buf32(32), sym = 0;
- while (sym < 144)
- state.lens[sym++] = 8;
- while (sym < 256)
- state.lens[sym++] = 9;
- while (sym < 280)
- state.lens[sym++] = 7;
- while (sym < 288)
- state.lens[sym++] = 8;
- inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {
- bits: 9
- }), sym = 0;
- while (sym < 32)
- state.lens[sym++] = 5;
- inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {
- bits: 5
- }), virgin = !1;
- }
- state.lencode = lenfix, state.lenbits = 9, state.distcode = distfix, state.distbits = 5;
- }
- function updatewindow(strm, src, end, copy) {
- var dist, state = strm.state;
- if (state.window === null)
- state.wsize = 1 << state.wbits, state.wnext = 0, state.whave = 0, state.window = new utils.Buf8(state.wsize);
- if (copy >= state.wsize)
- utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0), state.wnext = 0, state.whave = state.wsize;
- else {
- if (dist = state.wsize - state.wnext, dist > copy)
- dist = copy;
- if (utils.arraySet(state.window, src, end - copy, dist, state.wnext), copy -= dist, copy)
- utils.arraySet(state.window, src, end - copy, copy, 0), state.wnext = copy, state.whave = state.wsize;
- else {
- if (state.wnext += dist, state.wnext === state.wsize)
- state.wnext = 0;
- if (state.whave < state.wsize)
- state.whave += dist;
- }
- }
- return 0;
- }
- function inflate(strm, flush) {
- var state, input, output, next, put, have, left, hold, bits, _in, _out, copy, from, from_source, here = 0, here_bits, here_op, here_val, last_bits, last_op, last_val, len, ret, hbuf = new utils.Buf8(4), opts, n, order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- if (!strm || !strm.state || !strm.output || !strm.input && strm.avail_in !== 0)
- return Z_STREAM_ERROR;
- if (state = strm.state, state.mode === TYPE)
- state.mode = TYPEDO;
- put = strm.next_out, output = strm.output, left = strm.avail_out, next = strm.next_in, input = strm.input, have = strm.avail_in, hold = state.hold, bits = state.bits, _in = have, _out = left, ret = Z_OK;
- inf_leave:
- for (;; )
- switch (state.mode) {
- case HEAD:
- if (state.wrap === 0) {
- state.mode = TYPEDO;
- break;
- }
- while (bits < 16) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.wrap & 2 && hold === 35615) {
- state.check = 0, hbuf[0] = hold & 255, hbuf[1] = hold >>> 8 & 255, state.check = crc32(state.check, hbuf, 2, 0), hold = 0, bits = 0, state.mode = FLAGS;
- break;
- }
- if (state.flags = 0, state.head)
- state.head.done = !1;
- if (!(state.wrap & 1) || (((hold & 255) << 8) + (hold >> 8)) % 31) {
- strm.msg = "incorrect header check", state.mode = BAD;
- break;
- }
- if ((hold & 15) !== Z_DEFLATED) {
- strm.msg = "unknown compression method", state.mode = BAD;
- break;
- }
- if (hold >>>= 4, bits -= 4, len = (hold & 15) + 8, state.wbits === 0)
- state.wbits = len;
- else if (len > state.wbits) {
- strm.msg = "invalid window size", state.mode = BAD;
- break;
- }
- state.dmax = 1 << len, strm.adler = state.check = 1, state.mode = hold & 512 ? DICTID : TYPE, hold = 0, bits = 0;
- break;
- case FLAGS:
- while (bits < 16) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.flags = hold, (state.flags & 255) !== Z_DEFLATED) {
- strm.msg = "unknown compression method", state.mode = BAD;
- break;
- }
- if (state.flags & 57344) {
- strm.msg = "unknown header flags set", state.mode = BAD;
- break;
- }
- if (state.head)
- state.head.text = hold >> 8 & 1;
- if (state.flags & 512)
- hbuf[0] = hold & 255, hbuf[1] = hold >>> 8 & 255, state.check = crc32(state.check, hbuf, 2, 0);
- hold = 0, bits = 0, state.mode = TIME;
- case TIME:
- while (bits < 32) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.head)
- state.head.time = hold;
- if (state.flags & 512)
- hbuf[0] = hold & 255, hbuf[1] = hold >>> 8 & 255, hbuf[2] = hold >>> 16 & 255, hbuf[3] = hold >>> 24 & 255, state.check = crc32(state.check, hbuf, 4, 0);
- hold = 0, bits = 0, state.mode = OS;
- case OS:
- while (bits < 16) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.head)
- state.head.xflags = hold & 255, state.head.os = hold >> 8;
- if (state.flags & 512)
- hbuf[0] = hold & 255, hbuf[1] = hold >>> 8 & 255, state.check = crc32(state.check, hbuf, 2, 0);
- hold = 0, bits = 0, state.mode = EXLEN;
- case EXLEN:
- if (state.flags & 1024) {
- while (bits < 16) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.length = hold, state.head)
- state.head.extra_len = hold;
- if (state.flags & 512)
- hbuf[0] = hold & 255, hbuf[1] = hold >>> 8 & 255, state.check = crc32(state.check, hbuf, 2, 0);
- hold = 0, bits = 0;
- } else if (state.head)
- state.head.extra = null;
- state.mode = EXTRA;
- case EXTRA:
- if (state.flags & 1024) {
- if (copy = state.length, copy > have)
- copy = have;
- if (copy) {
- if (state.head) {
- if (len = state.head.extra_len - state.length, !state.head.extra)
- state.head.extra = new Array(state.head.extra_len);
- utils.arraySet(state.head.extra, input, next, copy, len);
- }
- if (state.flags & 512)
- state.check = crc32(state.check, input, copy, next);
- have -= copy, next += copy, state.length -= copy;
- }
- if (state.length)
- break inf_leave;
- }
- state.length = 0, state.mode = NAME;
- case NAME:
- if (state.flags & 2048) {
- if (have === 0)
- break inf_leave;
- copy = 0;
- do
- if (len = input[next + copy++], state.head && len && state.length < 65536)
- state.head.name += String.fromCharCode(len);
- while (len && copy < have);
- if (state.flags & 512)
- state.check = crc32(state.check, input, copy, next);
- if (have -= copy, next += copy, len)
- break inf_leave;
- } else if (state.head)
- state.head.name = null;
- state.length = 0, state.mode = COMMENT;
- case COMMENT:
- if (state.flags & 4096) {
- if (have === 0)
- break inf_leave;
- copy = 0;
- do
- if (len = input[next + copy++], state.head && len && state.length < 65536)
- state.head.comment += String.fromCharCode(len);
- while (len && copy < have);
- if (state.flags & 512)
- state.check = crc32(state.check, input, copy, next);
- if (have -= copy, next += copy, len)
- break inf_leave;
- } else if (state.head)
- state.head.comment = null;
- state.mode = HCRC;
- case HCRC:
- if (state.flags & 512) {
- while (bits < 16) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (hold !== (state.check & 65535)) {
- strm.msg = "header crc mismatch", state.mode = BAD;
- break;
- }
- hold = 0, bits = 0;
- }
- if (state.head)
- state.head.hcrc = state.flags >> 9 & 1, state.head.done = !0;
- strm.adler = state.check = 0, state.mode = TYPE;
- break;
- case DICTID:
- while (bits < 32) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- strm.adler = state.check = zswap32(hold), hold = 0, bits = 0, state.mode = DICT;
- case DICT:
- if (state.havedict === 0)
- return strm.next_out = put, strm.avail_out = left, strm.next_in = next, strm.avail_in = have, state.hold = hold, state.bits = bits, Z_NEED_DICT;
- strm.adler = state.check = 1, state.mode = TYPE;
- case TYPE:
- if (flush === Z_BLOCK || flush === Z_TREES)
- break inf_leave;
- case TYPEDO:
- if (state.last) {
- hold >>>= bits & 7, bits -= bits & 7, state.mode = CHECK;
- break;
- }
- while (bits < 3) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- switch (state.last = hold & 1, hold >>>= 1, bits -= 1, hold & 3) {
- case 0:
- state.mode = STORED;
- break;
- case 1:
- if (fixedtables(state), state.mode = LEN_, flush === Z_TREES) {
- hold >>>= 2, bits -= 2;
- break inf_leave;
- }
- break;
- case 2:
- state.mode = TABLE;
- break;
- case 3:
- strm.msg = "invalid block type", state.mode = BAD;
- }
- hold >>>= 2, bits -= 2;
- break;
- case STORED:
- hold >>>= bits & 7, bits -= bits & 7;
- while (bits < 32) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if ((hold & 65535) !== (hold >>> 16 ^ 65535)) {
- strm.msg = "invalid stored block lengths", state.mode = BAD;
- break;
- }
- if (state.length = hold & 65535, hold = 0, bits = 0, state.mode = COPY_, flush === Z_TREES)
- break inf_leave;
- case COPY_:
- state.mode = COPY;
- case COPY:
- if (copy = state.length, copy) {
- if (copy > have)
- copy = have;
- if (copy > left)
- copy = left;
- if (copy === 0)
- break inf_leave;
- utils.arraySet(output, input, next, copy, put), have -= copy, next += copy, left -= copy, put += copy, state.length -= copy;
- break;
- }
- state.mode = TYPE;
- break;
- case TABLE:
- while (bits < 14) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (state.nlen = (hold & 31) + 257, hold >>>= 5, bits -= 5, state.ndist = (hold & 31) + 1, hold >>>= 5, bits -= 5, state.ncode = (hold & 15) + 4, hold >>>= 4, bits -= 4, state.nlen > 286 || state.ndist > 30) {
- strm.msg = "too many length or distance symbols", state.mode = BAD;
- break;
- }
- state.have = 0, state.mode = LENLENS;
- case LENLENS:
- while (state.have < state.ncode) {
- while (bits < 3) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- state.lens[order[state.have++]] = hold & 7, hold >>>= 3, bits -= 3;
- }
- while (state.have < 19)
- state.lens[order[state.have++]] = 0;
- if (state.lencode = state.lendyn, state.lenbits = 7, opts = { bits: state.lenbits }, ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts), state.lenbits = opts.bits, ret) {
- strm.msg = "invalid code lengths set", state.mode = BAD;
- break;
- }
- state.have = 0, state.mode = CODELENS;
- case CODELENS:
- while (state.have < state.nlen + state.ndist) {
- for (;; ) {
- if (here = state.lencode[hold & (1 << state.lenbits) - 1], here_bits = here >>> 24, here_op = here >>> 16 & 255, here_val = here & 65535, here_bits <= bits)
- break;
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (here_val < 16)
- hold >>>= here_bits, bits -= here_bits, state.lens[state.have++] = here_val;
- else {
- if (here_val === 16) {
- n = here_bits + 2;
- while (bits < n) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (hold >>>= here_bits, bits -= here_bits, state.have === 0) {
- strm.msg = "invalid bit length repeat", state.mode = BAD;
- break;
- }
- len = state.lens[state.have - 1], copy = 3 + (hold & 3), hold >>>= 2, bits -= 2;
- } else if (here_val === 17) {
- n = here_bits + 3;
- while (bits < n) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- hold >>>= here_bits, bits -= here_bits, len = 0, copy = 3 + (hold & 7), hold >>>= 3, bits -= 3;
- } else {
- n = here_bits + 7;
- while (bits < n) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- hold >>>= here_bits, bits -= here_bits, len = 0, copy = 11 + (hold & 127), hold >>>= 7, bits -= 7;
- }
- if (state.have + copy > state.nlen + state.ndist) {
- strm.msg = "invalid bit length repeat", state.mode = BAD;
- break;
- }
- while (copy--)
- state.lens[state.have++] = len;
- }
- }
- if (state.mode === BAD)
- break;
- if (state.lens[256] === 0) {
- strm.msg = "invalid code -- missing end-of-block", state.mode = BAD;
- break;
- }
- if (state.lenbits = 9, opts = { bits: state.lenbits }, ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts), state.lenbits = opts.bits, ret) {
- strm.msg = "invalid literal/lengths set", state.mode = BAD;
- break;
- }
- if (state.distbits = 6, state.distcode = state.distdyn, opts = { bits: state.distbits }, ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts), state.distbits = opts.bits, ret) {
- strm.msg = "invalid distances set", state.mode = BAD;
- break;
- }
- if (state.mode = LEN_, flush === Z_TREES)
- break inf_leave;
- case LEN_:
- state.mode = LEN;
- case LEN:
- if (have >= 6 && left >= 258) {
- if (strm.next_out = put, strm.avail_out = left, strm.next_in = next, strm.avail_in = have, state.hold = hold, state.bits = bits, inflate_fast(strm, _out), put = strm.next_out, output = strm.output, left = strm.avail_out, next = strm.next_in, input = strm.input, have = strm.avail_in, hold = state.hold, bits = state.bits, state.mode === TYPE)
- state.back = -1;
- break;
- }
- state.back = 0;
- for (;; ) {
- if (here = state.lencode[hold & (1 << state.lenbits) - 1], here_bits = here >>> 24, here_op = here >>> 16 & 255, here_val = here & 65535, here_bits <= bits)
- break;
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (here_op && (here_op & 240) === 0) {
- last_bits = here_bits, last_op = here_op, last_val = here_val;
- for (;; ) {
- if (here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)], here_bits = here >>> 24, here_op = here >>> 16 & 255, here_val = here & 65535, last_bits + here_bits <= bits)
- break;
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- hold >>>= last_bits, bits -= last_bits, state.back += last_bits;
- }
- if (hold >>>= here_bits, bits -= here_bits, state.back += here_bits, state.length = here_val, here_op === 0) {
- state.mode = LIT;
- break;
- }
- if (here_op & 32) {
- state.back = -1, state.mode = TYPE;
- break;
- }
- if (here_op & 64) {
- strm.msg = "invalid literal/length code", state.mode = BAD;
- break;
- }
- state.extra = here_op & 15, state.mode = LENEXT;
- case LENEXT:
- if (state.extra) {
- n = state.extra;
- while (bits < n) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- state.length += hold & (1 << state.extra) - 1, hold >>>= state.extra, bits -= state.extra, state.back += state.extra;
- }
- state.was = state.length, state.mode = DIST;
- case DIST:
- for (;; ) {
- if (here = state.distcode[hold & (1 << state.distbits) - 1], here_bits = here >>> 24, here_op = here >>> 16 & 255, here_val = here & 65535, here_bits <= bits)
- break;
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if ((here_op & 240) === 0) {
- last_bits = here_bits, last_op = here_op, last_val = here_val;
- for (;; ) {
- if (here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)], here_bits = here >>> 24, here_op = here >>> 16 & 255, here_val = here & 65535, last_bits + here_bits <= bits)
- break;
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- hold >>>= last_bits, bits -= last_bits, state.back += last_bits;
- }
- if (hold >>>= here_bits, bits -= here_bits, state.back += here_bits, here_op & 64) {
- strm.msg = "invalid distance code", state.mode = BAD;
- break;
- }
- state.offset = here_val, state.extra = here_op & 15, state.mode = DISTEXT;
- case DISTEXT:
- if (state.extra) {
- n = state.extra;
- while (bits < n) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- state.offset += hold & (1 << state.extra) - 1, hold >>>= state.extra, bits -= state.extra, state.back += state.extra;
- }
- if (state.offset > state.dmax) {
- strm.msg = "invalid distance too far back", state.mode = BAD;
- break;
- }
- state.mode = MATCH;
- case MATCH:
- if (left === 0)
- break inf_leave;
- if (copy = _out - left, state.offset > copy) {
- if (copy = state.offset - copy, copy > state.whave) {
- if (state.sane) {
- strm.msg = "invalid distance too far back", state.mode = BAD;
- break;
- }
- }
- if (copy > state.wnext)
- copy -= state.wnext, from = state.wsize - copy;
- else
- from = state.wnext - copy;
- if (copy > state.length)
- copy = state.length;
- from_source = state.window;
- } else
- from_source = output, from = put - state.offset, copy = state.length;
- if (copy > left)
- copy = left;
- left -= copy, state.length -= copy;
- do
- output[put++] = from_source[from++];
- while (--copy);
- if (state.length === 0)
- state.mode = LEN;
- break;
- case LIT:
- if (left === 0)
- break inf_leave;
- output[put++] = state.length, left--, state.mode = LEN;
- break;
- case CHECK:
- if (state.wrap) {
- while (bits < 32) {
- if (have === 0)
- break inf_leave;
- have--, hold |= input[next++] << bits, bits += 8;
- }
- if (_out -= left, strm.total_out += _out, state.total += _out, _out)
- strm.adler = state.check = state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out);
- if (_out = left, (state.flags ? hold : zswap32(hold)) !== state.check) {
- strm.msg = "incorrect data check", state.mode = BAD;
- break;
- }
- hold = 0, bits = 0;
- }
- state.mode = LENGTH;
- case LENGTH:
- if (state.wrap && state.flags) {
- while (bits < 32) {
- if (have === 0)
- break inf_leave;
- have--, hold += input[next++] << bits, bits += 8;
- }
- if (hold !== (state.total & 4294967295)) {
- strm.msg = "incorrect length check", state.mode = BAD;
- break;
- }
- hold = 0, bits = 0;
- }
- state.mode = DONE;
- case DONE:
- ret = Z_STREAM_END;
- break inf_leave;
- case BAD:
- ret = Z_DATA_ERROR;
- break inf_leave;
- case MEM:
- return Z_MEM_ERROR;
- case SYNC:
- default:
- return Z_STREAM_ERROR;
- }
- if (strm.next_out = put, strm.avail_out = left, strm.next_in = next, strm.avail_in = have, state.hold = hold, state.bits = bits, state.wsize || _out !== strm.avail_out && state.mode < BAD && (state.mode < CHECK || flush !== Z_FINISH)) {
- if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out))
- return state.mode = MEM, Z_MEM_ERROR;
- }
- if (_in -= strm.avail_in, _out -= strm.avail_out, strm.total_in += _in, strm.total_out += _out, state.total += _out, state.wrap && _out)
- strm.adler = state.check = state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out);
- if (strm.data_type = state.bits + (state.last ? 64 : 0) + (state.mode === TYPE ? 128 : 0) + (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0), (_in === 0 && _out === 0 || flush === Z_FINISH) && ret === Z_OK)
- ret = Z_BUF_ERROR;
- return ret;
- }
- function inflateEnd(strm) {
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- var state = strm.state;
- if (state.window)
- state.window = null;
- return strm.state = null, Z_OK;
- }
- function inflateGetHeader(strm, head) {
- var state;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (state = strm.state, (state.wrap & 2) === 0)
- return Z_STREAM_ERROR;
- return state.head = head, head.done = !1, Z_OK;
- }
- function inflateSetDictionary(strm, dictionary) {
- var dictLength = dictionary.length, state, dictid, ret;
- if (!strm || !strm.state)
- return Z_STREAM_ERROR;
- if (state = strm.state, state.wrap !== 0 && state.mode !== DICT)
- return Z_STREAM_ERROR;
- if (state.mode === DICT) {
- if (dictid = 1, dictid = adler32(dictid, dictionary, dictLength, 0), dictid !== state.check)
- return Z_DATA_ERROR;
- }
- if (ret = updatewindow(strm, dictionary, dictLength, dictLength), ret)
- return state.mode = MEM, Z_MEM_ERROR;
- return state.havedict = 1, Z_OK;
- }
- exports.inflateReset = inflateReset, exports.inflateReset2 = inflateReset2, exports.inflateResetKeep = inflateResetKeep, exports.inflateInit = inflateInit, exports.inflateInit2 = inflateInit2, exports.inflate = inflate, exports.inflateEnd = inflateEnd, exports.inflateGetHeader = inflateGetHeader, exports.inflateSetDictionary = inflateSetDictionary, exports.inflateInfo = "pako inflate (from Nodeca project)";
- }
-}), require_constants = __commonJS({
- "node_modules/pako/lib/zlib/constants.js"(exports, module2) {
- module2.exports = {
- Z_NO_FLUSH: 0,
- Z_PARTIAL_FLUSH: 1,
- Z_SYNC_FLUSH: 2,
- Z_FULL_FLUSH: 3,
- Z_FINISH: 4,
- Z_BLOCK: 5,
- Z_TREES: 6,
- Z_OK: 0,
- Z_STREAM_END: 1,
- Z_NEED_DICT: 2,
- Z_ERRNO: -1,
- Z_STREAM_ERROR: -2,
- Z_DATA_ERROR: -3,
- Z_BUF_ERROR: -5,
- Z_NO_COMPRESSION: 0,
- Z_BEST_SPEED: 1,
- Z_BEST_COMPRESSION: 9,
- Z_DEFAULT_COMPRESSION: -1,
- Z_FILTERED: 1,
- Z_HUFFMAN_ONLY: 2,
- Z_RLE: 3,
- Z_FIXED: 4,
- Z_DEFAULT_STRATEGY: 0,
- Z_BINARY: 0,
- Z_TEXT: 1,
- Z_UNKNOWN: 2,
- Z_DEFLATED: 8
- };
- }
-}), require_binding = __commonJS({
- "node_modules/browserify-zlib/lib/binding.js"(exports) {
- var assert = require2("assert"), Zstream = require_zstream(), zlib_deflate = require_deflate(), zlib_inflate = require_inflate(), constants = require_constants();
- for (key in constants)
- exports[key] = constants[key];
- var key;
- exports.NONE = 0, exports.DEFLATE = 1, exports.INFLATE = 2, exports.GZIP = 3, exports.GUNZIP = 4, exports.DEFLATERAW = 5, exports.INFLATERAW = 6, exports.UNZIP = 7;
- var GZIP_HEADER_ID1 = 31, GZIP_HEADER_ID2 = 139;
- function Zlib(mode) {
- if (typeof mode !== "number" || mode < exports.DEFLATE || mode > exports.UNZIP)
- throw new TypeError("Bad argument");
- this.dictionary = null, this.err = 0, this.flush = 0, this.init_done = !1, this.level = 0, this.memLevel = 0, this.mode = mode, this.strategy = 0, this.windowBits = 0, this.write_in_progress = !1, this.pending_close = !1, this.gzip_id_bytes_read = 0;
- }
- Zlib.prototype.close = function() {
- if (this.write_in_progress) {
- this.pending_close = !0;
- return;
- }
- if (this.pending_close = !1, assert(this.init_done, "close before init"), assert(this.mode <= exports.UNZIP), this.mode === exports.DEFLATE || this.mode === exports.GZIP || this.mode === exports.DEFLATERAW)
- zlib_deflate.deflateEnd(this.strm);
- else if (this.mode === exports.INFLATE || this.mode === exports.GUNZIP || this.mode === exports.INFLATERAW || this.mode === exports.UNZIP)
- zlib_inflate.inflateEnd(this.strm);
- this.mode = exports.NONE, this.dictionary = null;
- }, Zlib.prototype.write = function(flush, input, in_off, in_len, out, out_off, out_len) {
- return this._write(!0, flush, input, in_off, in_len, out, out_off, out_len);
- }, Zlib.prototype.writeSync = function(flush, input, in_off, in_len, out, out_off, out_len) {
- return this._write(!1, flush, input, in_off, in_len, out, out_off, out_len);
- }, Zlib.prototype._write = function(async, flush, input, in_off, in_len, out, out_off, out_len) {
- if (assert.equal(arguments.length, 8), assert(this.init_done, "write before init"), assert(this.mode !== exports.NONE, "already finalized"), assert.equal(!1, this.write_in_progress, "write already in progress"), assert.equal(!1, this.pending_close, "close is pending"), this.write_in_progress = !0, assert.equal(!1, flush === void 0, "must provide flush value"), this.write_in_progress = !0, flush !== exports.Z_NO_FLUSH && flush !== exports.Z_PARTIAL_FLUSH && flush !== exports.Z_SYNC_FLUSH && flush !== exports.Z_FULL_FLUSH && flush !== exports.Z_FINISH && flush !== exports.Z_BLOCK)
- throw new Error("Invalid flush value");
- if (input == null)
- input = Buffer.alloc(0), in_len = 0, in_off = 0;
- if (this.strm.avail_in = in_len, this.strm.input = input, this.strm.next_in = in_off, this.strm.avail_out = out_len, this.strm.output = out, this.strm.next_out = out_off, this.flush = flush, !async) {
- if (this._process(), this._checkError())
- return this._afterSync();
- return;
- }
- var self = this;
- return process.nextTick(function() {
- self._process(), self._after();
- }), this;
- }, Zlib.prototype._afterSync = function() {
- var avail_out = this.strm.avail_out, avail_in = this.strm.avail_in;
- return this.write_in_progress = !1, [avail_in, avail_out];
- }, Zlib.prototype._process = function() {
- var next_expected_header_byte = null;
- switch (this.mode) {
- case exports.DEFLATE:
- case exports.GZIP:
- case exports.DEFLATERAW:
- this.err = zlib_deflate.deflate(this.strm, this.flush);
- break;
- case exports.UNZIP:
- if (this.strm.avail_in > 0)
- next_expected_header_byte = this.strm.next_in;
- switch (this.gzip_id_bytes_read) {
- case 0:
- if (next_expected_header_byte === null)
- break;
- if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID1) {
- if (this.gzip_id_bytes_read = 1, next_expected_header_byte++, this.strm.avail_in === 1)
- break;
- } else {
- this.mode = exports.INFLATE;
- break;
- }
- case 1:
- if (next_expected_header_byte === null)
- break;
- if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID2)
- this.gzip_id_bytes_read = 2, this.mode = exports.GUNZIP;
- else
- this.mode = exports.INFLATE;
- break;
- default:
- throw new Error("invalid number of gzip magic number bytes read");
- }
- case exports.INFLATE:
- case exports.GUNZIP:
- case exports.INFLATERAW:
- if (this.err = zlib_inflate.inflate(this.strm, this.flush), this.err === exports.Z_NEED_DICT && this.dictionary) {
- if (this.err = zlib_inflate.inflateSetDictionary(this.strm, this.dictionary), this.err === exports.Z_OK)
- this.err = zlib_inflate.inflate(this.strm, this.flush);
- else if (this.err === exports.Z_DATA_ERROR)
- this.err = exports.Z_NEED_DICT;
- }
- while (this.strm.avail_in > 0 && this.mode === exports.GUNZIP && this.err === exports.Z_STREAM_END && this.strm.next_in[0] !== 0)
- this.reset(), this.err = zlib_inflate.inflate(this.strm, this.flush);
- break;
- default:
- throw new Error("Unknown mode " + this.mode);
- }
- }, Zlib.prototype._checkError = function() {
- switch (this.err) {
- case exports.Z_OK:
- case exports.Z_BUF_ERROR:
- if (this.strm.avail_out !== 0 && this.flush === exports.Z_FINISH)
- return this._error("unexpected end of file"), !1;
- break;
- case exports.Z_STREAM_END:
- break;
- case exports.Z_NEED_DICT:
- if (this.dictionary == null)
- this._error("Missing dictionary");
- else
- this._error("Bad dictionary");
- return !1;
- default:
- return this._error("Zlib error"), !1;
- }
- return !0;
- }, Zlib.prototype._after = function() {
- if (!this._checkError())
- return;
- var avail_out = this.strm.avail_out, avail_in = this.strm.avail_in;
- if (this.write_in_progress = !1, this.callback(avail_in, avail_out), this.pending_close)
- this.close();
- }, Zlib.prototype._error = function(message) {
- if (this.strm.msg)
- message = this.strm.msg;
- if (this.onerror(message, this.err), this.write_in_progress = !1, this.pending_close)
- this.close();
- }, Zlib.prototype.init = function(windowBits, level, memLevel, strategy, dictionary) {
- assert(arguments.length === 4 || arguments.length === 5, "init(windowBits, level, memLevel, strategy, [dictionary])"), assert(windowBits >= 8 && windowBits <= 15, "invalid windowBits"), assert(level >= -1 && level <= 9, "invalid compression level"), assert(memLevel >= 1 && memLevel <= 9, "invalid memlevel"), assert(strategy === exports.Z_FILTERED || strategy === exports.Z_HUFFMAN_ONLY || strategy === exports.Z_RLE || strategy === exports.Z_FIXED || strategy === exports.Z_DEFAULT_STRATEGY, "invalid strategy"), this._init(level, windowBits, memLevel, strategy, dictionary), this._setDictionary();
- }, Zlib.prototype.params = function() {
- throw new Error("deflateParams Not supported");
- }, Zlib.prototype.reset = function() {
- this._reset(), this._setDictionary();
- }, Zlib.prototype._init = function(level, windowBits, memLevel, strategy, dictionary) {
- if (this.level = level, this.windowBits = windowBits, this.memLevel = memLevel, this.strategy = strategy, this.flush = exports.Z_NO_FLUSH, this.err = exports.Z_OK, this.mode === exports.GZIP || this.mode === exports.GUNZIP)
- this.windowBits += 16;
- if (this.mode === exports.UNZIP)
- this.windowBits += 32;
- if (this.mode === exports.DEFLATERAW || this.mode === exports.INFLATERAW)
- this.windowBits = -1 * this.windowBits;
- switch (this.strm = new Zstream, this.mode) {
- case exports.DEFLATE:
- case exports.GZIP:
- case exports.DEFLATERAW:
- this.err = zlib_deflate.deflateInit2(this.strm, this.level, exports.Z_DEFLATED, this.windowBits, this.memLevel, this.strategy);
- break;
- case exports.INFLATE:
- case exports.GUNZIP:
- case exports.INFLATERAW:
- case exports.UNZIP:
- this.err = zlib_inflate.inflateInit2(this.strm, this.windowBits);
- break;
- default:
- throw new Error("Unknown mode " + this.mode);
- }
- if (this.err !== exports.Z_OK)
- this._error("Init error");
- this.dictionary = dictionary, this.write_in_progress = !1, this.init_done = !0;
- }, Zlib.prototype._setDictionary = function() {
- if (this.dictionary == null)
- return;
- switch (this.err = exports.Z_OK, this.mode) {
- case exports.DEFLATE:
- case exports.DEFLATERAW:
- this.err = zlib_deflate.deflateSetDictionary(this.strm, this.dictionary);
- break;
- default:
- break;
- }
- if (this.err !== exports.Z_OK)
- this._error("Failed to set dictionary");
- }, Zlib.prototype._reset = function() {
- switch (this.err = exports.Z_OK, this.mode) {
- case exports.DEFLATE:
- case exports.DEFLATERAW:
- case exports.GZIP:
- this.err = zlib_deflate.deflateReset(this.strm);
- break;
- case exports.INFLATE:
- case exports.INFLATERAW:
- case exports.GUNZIP:
- this.err = zlib_inflate.inflateReset(this.strm);
- break;
- default:
- break;
- }
- if (this.err !== exports.Z_OK)
- this._error("Failed to reset stream");
- }, exports.Zlib = Zlib;
- }
-}), require_lib = __commonJS({
- "node_modules/browserify-zlib/lib/index.js"(exports) {
- var Buffer2 = require2("buffer").Buffer, Transform = require2("stream").Transform, binding = require_binding(), util = require2("util"), assert = require2("assert").ok, kMaxLength = require2("buffer").kMaxLength, kRangeErrorMessage = "Cannot create final Buffer. It would be larger than 0x" + kMaxLength.toString(16) + " bytes";
- binding.Z_MIN_WINDOWBITS = 8, binding.Z_MAX_WINDOWBITS = 15, binding.Z_DEFAULT_WINDOWBITS = 15, binding.Z_MIN_CHUNK = 64, binding.Z_MAX_CHUNK = Infinity, binding.Z_DEFAULT_CHUNK = 16384, binding.Z_MIN_MEMLEVEL = 1, binding.Z_MAX_MEMLEVEL = 9, binding.Z_DEFAULT_MEMLEVEL = 8, binding.Z_MIN_LEVEL = -1, binding.Z_MAX_LEVEL = 9, binding.Z_DEFAULT_LEVEL = binding.Z_DEFAULT_COMPRESSION;
- var bkeys = Object.keys(binding);
- for (bk = 0;bk < bkeys.length; bk++)
- if (bkey = bkeys[bk], bkey.match(/^Z/))
- Object.defineProperty(exports, bkey, {
- enumerable: !0,
- value: binding[bkey],
- writable: !1
- });
- var bkey, bk, codes = {
- Z_OK: binding.Z_OK,
- Z_STREAM_END: binding.Z_STREAM_END,
- Z_NEED_DICT: binding.Z_NEED_DICT,
- Z_ERRNO: binding.Z_ERRNO,
- Z_STREAM_ERROR: binding.Z_STREAM_ERROR,
- Z_DATA_ERROR: binding.Z_DATA_ERROR,
- Z_MEM_ERROR: binding.Z_MEM_ERROR,
- Z_BUF_ERROR: binding.Z_BUF_ERROR,
- Z_VERSION_ERROR: binding.Z_VERSION_ERROR
- }, ckeys = Object.keys(codes);
- for (ck = 0;ck < ckeys.length; ck++)
- ckey = ckeys[ck], codes[codes[ckey]] = ckey;
- var ckey, ck;
- Object.defineProperty(exports, "codes", {
- enumerable: !0,
- value: Object.freeze(codes),
- writable: !1
- }), exports.constants = require_constants(), exports.Deflate = Deflate, exports.Inflate = Inflate, exports.Gzip = Gzip, exports.Gunzip = Gunzip, exports.DeflateRaw = DeflateRaw, exports.InflateRaw = InflateRaw, exports.Unzip = Unzip, exports.createDeflate = function(o) {
- return new Deflate(o);
- }, exports.createInflate = function(o) {
- return new Inflate(o);
- }, exports.createDeflateRaw = function(o) {
- return new DeflateRaw(o);
- }, exports.createInflateRaw = function(o) {
- return new InflateRaw(o);
- }, exports.createGzip = function(o) {
- return new Gzip(o);
- }, exports.createGunzip = function(o) {
- return new Gunzip(o);
- }, exports.createUnzip = function(o) {
- return new Unzip(o);
- }, exports.deflate = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new Deflate(opts), buffer, callback);
- }, exports.deflateSync = function(buffer, opts) {
- return zlibBufferSync(new Deflate(opts), buffer);
- }, exports.gzip = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new Gzip(opts), buffer, callback);
- }, exports.gzipSync = function(buffer, opts) {
- return zlibBufferSync(new Gzip(opts), buffer);
- }, exports.deflateRaw = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new DeflateRaw(opts), buffer, callback);
- }, exports.deflateRawSync = function(buffer, opts) {
- return zlibBufferSync(new DeflateRaw(opts), buffer);
- }, exports.unzip = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new Unzip(opts), buffer, callback);
- }, exports.unzipSync = function(buffer, opts) {
- return zlibBufferSync(new Unzip(opts), buffer);
- }, exports.inflate = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new Inflate(opts), buffer, callback);
- }, exports.inflateSync = function(buffer, opts) {
- return zlibBufferSync(new Inflate(opts), buffer);
- }, exports.gunzip = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new Gunzip(opts), buffer, callback);
- }, exports.gunzipSync = function(buffer, opts) {
- return zlibBufferSync(new Gunzip(opts), buffer);
- }, exports.inflateRaw = function(buffer, opts, callback) {
- if (typeof opts === "function")
- callback = opts, opts = {};
- return zlibBuffer(new InflateRaw(opts), buffer, callback);
- }, exports.inflateRawSync = function(buffer, opts) {
- return zlibBufferSync(new InflateRaw(opts), buffer);
- };
- function zlibBuffer(engine, buffer, callback) {
- var buffers = [], nread = 0;
- engine.on("error", onError), engine.on("end", onEnd), engine.end(buffer), flow();
- function flow() {
- var chunk;
- while ((chunk = engine.read()) !== null)
- buffers.push(chunk), nread += chunk.length;
- engine.once("readable", flow);
- }
- function onError(err) {
- engine.removeListener("end", onEnd), engine.removeListener("readable", flow), callback(err);
- }
- function onEnd() {
- var buf, err = null;
- if (nread >= kMaxLength)
- err = new RangeError(kRangeErrorMessage);
- else
- buf = Buffer2.concat(buffers, nread);
- buffers = [], engine.close(), callback(err, buf);
- }
- }
- function zlibBufferSync(engine, buffer) {
- if (typeof buffer === "string")
- buffer = Buffer2.from(buffer);
- if (!Buffer2.isBuffer(buffer))
- throw new TypeError("Not a string or buffer");
- var flushFlag = engine._finishFlushFlag;
- return engine._processChunk(buffer, flushFlag);
- }
- function Deflate(opts) {
- if (!(this instanceof Deflate))
- return new Deflate(opts);
- Zlib.call(this, opts, binding.DEFLATE);
- }
- function Inflate(opts) {
- if (!(this instanceof Inflate))
- return new Inflate(opts);
- Zlib.call(this, opts, binding.INFLATE);
- }
- function Gzip(opts) {
- if (!(this instanceof Gzip))
- return new Gzip(opts);
- Zlib.call(this, opts, binding.GZIP);
- }
- function Gunzip(opts) {
- if (!(this instanceof Gunzip))
- return new Gunzip(opts);
- Zlib.call(this, opts, binding.GUNZIP);
- }
- function DeflateRaw(opts) {
- if (!(this instanceof DeflateRaw))
- return new DeflateRaw(opts);
- Zlib.call(this, opts, binding.DEFLATERAW);
- }
- function InflateRaw(opts) {
- if (!(this instanceof InflateRaw))
- return new InflateRaw(opts);
- Zlib.call(this, opts, binding.INFLATERAW);
- }
- function Unzip(opts) {
- if (!(this instanceof Unzip))
- return new Unzip(opts);
- Zlib.call(this, opts, binding.UNZIP);
- }
- function isValidFlushFlag(flag) {
- return flag === binding.Z_NO_FLUSH || flag === binding.Z_PARTIAL_FLUSH || flag === binding.Z_SYNC_FLUSH || flag === binding.Z_FULL_FLUSH || flag === binding.Z_FINISH || flag === binding.Z_BLOCK;
- }
- function Zlib(opts, mode) {
- var _this = this;
- if (this._opts = opts = opts || {}, this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK, Transform.call(this, opts), opts.flush && !isValidFlushFlag(opts.flush))
- throw new Error("Invalid flush flag: " + opts.flush);
- if (opts.finishFlush && !isValidFlushFlag(opts.finishFlush))
- throw new Error("Invalid flush flag: " + opts.finishFlush);
- if (this._flushFlag = opts.flush || binding.Z_NO_FLUSH, this._finishFlushFlag = typeof opts.finishFlush !== "undefined" ? opts.finishFlush : binding.Z_FINISH, opts.chunkSize) {
- if (opts.chunkSize < exports.Z_MIN_CHUNK || opts.chunkSize > exports.Z_MAX_CHUNK)
- throw new Error("Invalid chunk size: " + opts.chunkSize);
- }
- if (opts.windowBits) {
- if (opts.windowBits < exports.Z_MIN_WINDOWBITS || opts.windowBits > exports.Z_MAX_WINDOWBITS)
- throw new Error("Invalid windowBits: " + opts.windowBits);
- }
- if (opts.level) {
- if (opts.level < exports.Z_MIN_LEVEL || opts.level > exports.Z_MAX_LEVEL)
- throw new Error("Invalid compression level: " + opts.level);
- }
- if (opts.memLevel) {
- if (opts.memLevel < exports.Z_MIN_MEMLEVEL || opts.memLevel > exports.Z_MAX_MEMLEVEL)
- throw new Error("Invalid memLevel: " + opts.memLevel);
- }
- if (opts.strategy) {
- if (opts.strategy != exports.Z_FILTERED && opts.strategy != exports.Z_HUFFMAN_ONLY && opts.strategy != exports.Z_RLE && opts.strategy != exports.Z_FIXED && opts.strategy != exports.Z_DEFAULT_STRATEGY)
- throw new Error("Invalid strategy: " + opts.strategy);
- }
- if (opts.dictionary) {
- if (!Buffer2.isBuffer(opts.dictionary))
- throw new Error("Invalid dictionary: it should be a Buffer instance");
- }
- this._handle = new binding.Zlib(mode);
- var self = this;
- this._hadError = !1, this._handle.onerror = function(message, errno) {
- _close(self), self._hadError = !0;
- var error = new Error(message);
- error.errno = errno, error.code = exports.codes[errno], self.emit("error", error);
- };
- var level = exports.Z_DEFAULT_COMPRESSION;
- if (typeof opts.level === "number")
- level = opts.level;
- var strategy = exports.Z_DEFAULT_STRATEGY;
- if (typeof opts.strategy === "number")
- strategy = opts.strategy;
- this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary), this._buffer = Buffer2.allocUnsafe(this._chunkSize), this._offset = 0, this._level = level, this._strategy = strategy, this.once("end", this.close), Object.defineProperty(this, "_closed", {
- get: function() {
- return !_this._handle;
- },
- configurable: !0,
- enumerable: !0
- });
- }
- util.inherits(Zlib, Transform), Zlib.prototype.params = function(level, strategy, callback) {
- if (level < exports.Z_MIN_LEVEL || level > exports.Z_MAX_LEVEL)
- throw new RangeError("Invalid compression level: " + level);
- if (strategy != exports.Z_FILTERED && strategy != exports.Z_HUFFMAN_ONLY && strategy != exports.Z_RLE && strategy != exports.Z_FIXED && strategy != exports.Z_DEFAULT_STRATEGY)
- throw new TypeError("Invalid strategy: " + strategy);
- if (this._level !== level || this._strategy !== strategy) {
- var self = this;
- this.flush(binding.Z_SYNC_FLUSH, function() {
- if (assert(self._handle, "zlib binding closed"), self._handle.params(level, strategy), !self._hadError) {
- if (self._level = level, self._strategy = strategy, callback)
- callback();
- }
- });
- } else
- process.nextTick(callback);
- }, Zlib.prototype.reset = function() {
- return assert(this._handle, "zlib binding closed"), this._handle.reset();
- }, Zlib.prototype._flush = function(callback) {
- this._transform(Buffer2.alloc(0), "", callback);
- }, Zlib.prototype.flush = function(kind, callback) {
- var _this2 = this, ws = this._writableState;
- if (typeof kind === "function" || kind === void 0 && !callback)
- callback = kind, kind = binding.Z_FULL_FLUSH;
- if (ws.ended) {
- if (callback)
- process.nextTick(callback);
- } else if (ws.ending) {
- if (callback)
- this.once("end", callback);
- } else if (ws.needDrain) {
- if (callback)
- this.once("drain", function() {
- return _this2.flush(kind, callback);
- });
- } else
- this._flushFlag = kind, this.write(Buffer2.alloc(0), "", callback);
- }, Zlib.prototype.close = function(callback) {
- _close(this, callback), process.nextTick(emitCloseNT, this);
- };
- function _close(engine, callback) {
- if (callback)
- process.nextTick(callback);
- if (!engine._handle)
- return;
- engine._handle.close(), engine._handle = null;
- }
- function emitCloseNT(self) {
- self.emit("close");
- }
- Zlib.prototype._transform = function(chunk, encoding, cb) {
- var flushFlag, ws = this._writableState, ending = ws.ending || ws.ended, last = ending && (!chunk || ws.length === chunk.length);
- if (chunk !== null && !Buffer2.isBuffer(chunk))
- return cb(new Error("invalid input"));
- if (!this._handle)
- return cb(new Error("zlib binding closed"));
- if (last)
- flushFlag = this._finishFlushFlag;
- else if (flushFlag = this._flushFlag, chunk.length >= ws.length)
- this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
- this._processChunk(chunk, flushFlag, cb);
- }, Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
- var availInBefore = chunk && chunk.length, availOutBefore = this._chunkSize - this._offset, inOff = 0, self = this, async = typeof cb === "function";
- if (!async) {
- var buffers = [], nread = 0, error;
- this.on("error", function(er) {
- error = er;
- }), assert(this._handle, "zlib binding closed");
- do
- var res = this._handle.writeSync(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
- while (!this._hadError && callback(res[0], res[1]));
- if (this._hadError)
- throw error;
- if (nread >= kMaxLength)
- throw _close(this), new RangeError(kRangeErrorMessage);
- var buf = Buffer2.concat(buffers, nread);
- return _close(this), buf;
- }
- assert(this._handle, "zlib binding closed");
- var req = this._handle.write(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
- req.buffer = chunk, req.callback = callback;
- function callback(availInAfter, availOutAfter) {
- if (this)
- this.buffer = null, this.callback = null;
- if (self._hadError)
- return;
- var have = availOutBefore - availOutAfter;
- if (assert(have >= 0, "have should not go down"), have > 0) {
- var out = self._buffer.slice(self._offset, self._offset + have);
- if (self._offset += have, async)
- self.push(out);
- else
- buffers.push(out), nread += out.length;
- }
- if (availOutAfter === 0 || self._offset >= self._chunkSize)
- availOutBefore = self._chunkSize, self._offset = 0, self._buffer = Buffer2.allocUnsafe(self._chunkSize);
- if (availOutAfter === 0) {
- if (inOff += availInBefore - availInAfter, availInBefore = availInAfter, !async)
- return !0;
- var newReq = self._handle.write(flushFlag, chunk, inOff, availInBefore, self._buffer, self._offset, self._chunkSize);
- newReq.callback = callback, newReq.buffer = chunk;
- return;
- }
- if (!async)
- return !1;
- cb();
- }
- }, util.inherits(Deflate, Zlib), util.inherits(Inflate, Zlib), util.inherits(Gzip, Zlib), util.inherits(Gunzip, Zlib), util.inherits(DeflateRaw, Zlib), util.inherits(InflateRaw, Zlib), util.inherits(Unzip, Zlib);
- }
-}), zlib_exports = require_lib();
-zlib_exports[Symbol.for("CommonJS")] = 0;
-var zlib_default = zlib_exports, {
- Deflate,
- Inflate,
- Gzip,
- Gunzip,
- DeflateRaw,
- InflateRaw,
- Unzip,
- createDeflate,
- createInflate,
- createDeflateRaw,
- createInflateRaw,
- createGzip,
- createGunzip,
- createUnzip,
- deflate,
- deflateSync,
- gzip,
- gzipSync,
- deflateRaw,
- deflateRawSync,
- unzip,
- unzipSync,
- inflate,
- inflateSync,
- gunzip,
- gunzipSync,
- inflateRaw,
- inflateRawSync,
- constants
-} = zlib_exports;
-export {
- unzipSync,
- unzip,
- inflateSync,
- inflateRawSync,
- inflateRaw,
- inflate,
- gzipSync,
- gzip,
- gunzipSync,
- gunzip,
- deflateSync,
- deflateRawSync,
- deflateRaw,
- deflate,
- zlib_default as default,
- createUnzip,
- createInflateRaw,
- createInflate,
- createGzip,
- createGunzip,
- createDeflateRaw,
- createDeflate,
- constants,
- Unzip,
- InflateRaw,
- Inflate,
- Gzip,
- Gunzip,
- DeflateRaw,
- Deflate
-};
+import{default as R0} from"node:assert";import*as t0 from"node:assert";import*as o0 from"node:buffer";import*as s0 from"node:stream";import*as W1 from"node:util";var j1,J1,Y1,G1,q1,X1,U1,P1,K1,F1,H1,z1,Z1,L1,C1,N1,I1,O1,B1,D1,M1,k1,v1,R1,A1,g1,w1,T1,S1;var y1=Object.getOwnPropertyNames;var A0=(Y,g)=>function b(){return g||(0,Y[y1(Y)[0]])((g={exports:{}}).exports,g),g.exports};var E1=A0({"node_modules/pako/lib/zlib/zstream.js"(Y,g){function b(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}g.exports=b}}),r0=A0({"node_modules/pako/lib/utils/common.js"(Y){var g=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function b(C,w){return Object.prototype.hasOwnProperty.call(C,w)}Y.assign=function(C){var w=Array.prototype.slice.call(arguments,1);while(w.length){var v=w.shift();if(!v)continue;if(typeof v!=="object")throw new TypeError(v+"must be non-object");for(var k in v)if(b(v,k))C[k]=v[k]}return C},Y.shrinkBuf=function(C,w){if(C.length===w)return C;if(C.subarray)return C.subarray(0,w);return C.length=w,C};var L={arraySet:function(C,w,v,k,B){if(w.subarray&&C.subarray){C.set(w.subarray(v,v+k),B);return}for(var N=0;N<k;N++)C[B+N]=w[v+N]},flattenChunks:function(C){var w,v,k,B,N,y;k=0;for(w=0,v=C.length;w<v;w++)k+=C[w].length;y=new Uint8Array(k),B=0;for(w=0,v=C.length;w<v;w++)N=C[w],y.set(N,B),B+=N.length;return y}},n={arraySet:function(C,w,v,k,B){for(var N=0;N<k;N++)C[B+N]=w[v+N]},flattenChunks:function(C){return[].concat.apply([],C)}};Y.setTyped=function(C){if(C)Y.Buf8=Uint8Array,Y.Buf16=Uint16Array,Y.Buf32=Int32Array,Y.assign(Y,L);else Y.Buf8=Array,Y.Buf16=Array,Y.Buf32=Array,Y.assign(Y,n)},Y.setTyped(g)}}),x1=A0({"node_modules/pako/lib/zlib/trees.js"(Y){var g=r0(),b=4,L=0,n=1,C=2;function w(W){var F=W.length;while(--F>=0)W[F]=0}var v=0,k=1,B=2,N=3,y=258,m=29,p=256,t=p+1+m,u=30,s=19,W0=2*t+1,E=15,S=16,J0=7,G0=256,F0=16,f=17,d=18,z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],h=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],V0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=512,O=new Array((t+2)*2);w(O);var I=new Array(u*2);w(I);var c=new Array(K);w(c);var l=new Array(y-N+1);w(l);var D=new Array(m);w(D);var Q0=new Array(u);w(Q0);function i(W,F,Z,R,G){this.static_tree=W,this.extra_bits=F,this.extra_base=Z,this.elems=R,this.max_length=G,this.has_stree=W&&W.length}var H0,N0,I0;function K0(W,F){this.dyn_tree=W,this.max_code=0,this.stat_desc=F}function X0(W){return W<256?c[W]:c[256+(W>>>7)]}function U0(W,F){W.pending_buf[W.pending++]=F&255,W.pending_buf[W.pending++]=F>>>8&255}function a(W,F,Z){if(W.bi_valid>S-Z)W.bi_buf|=F<<W.bi_valid&65535,U0(W,W.bi_buf),W.bi_buf=F>>S-W.bi_valid,W.bi_valid+=Z-S;else W.bi_buf|=F<<W.bi_valid&65535,W.bi_valid+=Z}function Y0(W,F,Z){a(W,Z[F*2],Z[F*2+1])}function r(W,F){var Z=0;do Z|=W&1,W>>>=1,Z<<=1;while(--F>0);return Z>>>1}function z0(W){if(W.bi_valid===16)U0(W,W.bi_buf),W.bi_buf=0,W.bi_valid=0;else if(W.bi_valid>=8)W.pending_buf[W.pending++]=W.bi_buf&255,W.bi_buf>>=8,W.bi_valid-=8}function Z0(W,F){var{dyn_tree:Z,max_code:R}=F,G=F.stat_desc.static_tree,P=F.stat_desc.has_stree,$=F.stat_desc.extra_bits,H=F.stat_desc.extra_base,x=F.stat_desc.max_length,Q,X,U,V,J,q,T=0;for(V=0;V<=E;V++)W.bl_count[V]=0;Z[W.heap[W.heap_max]*2+1]=0;for(Q=W.heap_max+1;Q<W0;Q++){if(X=W.heap[Q],V=Z[Z[X*2+1]*2+1]+1,V>x)V=x,T++;if(Z[X*2+1]=V,X>R)continue;if(W.bl_count[V]++,J=0,X>=H)J=$[X-H];if(q=Z[X*2],W.opt_len+=q*(V+J),P)W.static_len+=q*(G[X*2+1]+J)}if(T===0)return;do{V=x-1;while(W.bl_count[V]===0)V--;W.bl_count[V]--,W.bl_count[V+1]+=2,W.bl_count[x]--,T-=2}while(T>0);for(V=x;V!==0;V--){X=W.bl_count[V];while(X!==0){if(U=W.heap[--Q],U>R)continue;if(Z[U*2+1]!==V)W.opt_len+=(V-Z[U*2+1])*Z[U*2],Z[U*2+1]=V;X--}}}function g0(W,F,Z){var R=new Array(E+1),G=0,P,$;for(P=1;P<=E;P++)R[P]=G=G+Z[P-1]<<1;for($=0;$<=F;$++){var H=W[$*2+1];if(H===0)continue;W[$*2]=r(R[H]++,H)}}function j0(){var W,F,Z,R,G,P=new Array(E+1);Z=0;for(R=0;R<m-1;R++){D[R]=Z;for(W=0;W<1<<z[R];W++)l[Z++]=R}l[Z-1]=R,G=0;for(R=0;R<16;R++){Q0[R]=G;for(W=0;W<1<<h[R];W++)c[G++]=R}G>>=7;for(;R<u;R++){Q0[R]=G<<7;for(W=0;W<1<<h[R]-7;W++)c[256+G++]=R}for(F=0;F<=E;F++)P[F]=0;W=0;while(W<=143)O[W*2+1]=8,W++,P[8]++;while(W<=255)O[W*2+1]=9,W++,P[9]++;while(W<=279)O[W*2+1]=7,W++,P[7]++;while(W<=287)O[W*2+1]=8,W++,P[8]++;g0(O,t+1,P);for(W=0;W<u;W++)I[W*2+1]=5,I[W*2]=r(W,5);H0=new i(O,z,p+1,t,E),N0=new i(I,h,0,u,E),I0=new i(new Array(0),V0,0,s,J0)}function M0(W){var F;for(F=0;F<t;F++)W.dyn_ltree[F*2]=0;for(F=0;F<u;F++)W.dyn_dtree[F*2]=0;for(F=0;F<s;F++)W.bl_tree[F*2]=0;W.dyn_ltree[G0*2]=1,W.opt_len=W.static_len=0,W.last_lit=W.matches=0}function c0(W){if(W.bi_valid>8)U0(W,W.bi_buf);else if(W.bi_valid>0)W.pending_buf[W.pending++]=W.bi_buf;W.bi_buf=0,W.bi_valid=0}function w0(W,F,Z,R){if(c0(W),R)U0(W,Z),U0(W,~Z);g.arraySet(W.pending_buf,W.window,F,Z,W.pending),W.pending+=Z}function v0(W,F,Z,R){var G=F*2,P=Z*2;return W[G]<W[P]||W[G]===W[P]&&R[F]<=R[Z]}function q0(W,F,Z){var R=W.heap[Z],G=Z<<1;while(G<=W.heap_len){if(G<W.heap_len&&v0(F,W.heap[G+1],W.heap[G],W.depth))G++;if(v0(F,R,W.heap[G],W.depth))break;W.heap[Z]=W.heap[G],Z=G,G<<=1}W.heap[Z]=R}function _(W,F,Z){var R,G,P=0,$,H;if(W.last_lit!==0)do if(R=W.pending_buf[W.d_buf+P*2]<<8|W.pending_buf[W.d_buf+P*2+1],G=W.pending_buf[W.l_buf+P],P++,R===0)Y0(W,G,F);else{if($=l[G],Y0(W,$+p+1,F),H=z[$],H!==0)G-=D[$],a(W,G,H);if(R--,$=X0(R),Y0(W,$,Z),H=h[$],H!==0)R-=Q0[$],a(W,R,H)}while(P<W.last_lit);Y0(W,G0,F)}function T0(W,F){var Z=F.dyn_tree,R=F.stat_desc.static_tree,G=F.stat_desc.has_stree,P=F.stat_desc.elems,$,H,x=-1,Q;W.heap_len=0,W.heap_max=W0;for($=0;$<P;$++)if(Z[$*2]!==0)W.heap[++W.heap_len]=x=$,W.depth[$]=0;else Z[$*2+1]=0;while(W.heap_len<2)if(Q=W.heap[++W.heap_len]=x<2?++x:0,Z[Q*2]=1,W.depth[Q]=0,W.opt_len--,G)W.static_len-=R[Q*2+1];F.max_code=x;for($=W.heap_len>>1;$>=1;$--)q0(W,Z,$);Q=P;do $=W.heap[1],W.heap[1]=W.heap[W.heap_len--],q0(W,Z,1),H=W.heap[1],W.heap[--W.heap_max]=$,W.heap[--W.heap_max]=H,Z[Q*2]=Z[$*2]+Z[H*2],W.depth[Q]=(W.depth[$]>=W.depth[H]?W.depth[$]:W.depth[H])+1,Z[$*2+1]=Z[H*2+1]=Q,W.heap[1]=Q++,q0(W,Z,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1],Z0(W,F),g0(Z,x,W.bl_count)}function p0(W,F,Z){var R,G=-1,P,$=F[1],H=0,x=7,Q=4;if($===0)x=138,Q=3;F[(Z+1)*2+1]=65535;for(R=0;R<=Z;R++){if(P=$,$=F[(R+1)*2+1],++H<x&&P===$)continue;else if(H<Q)W.bl_tree[P*2]+=H;else if(P!==0){if(P!==G)W.bl_tree[P*2]++;W.bl_tree[F0*2]++}else if(H<=10)W.bl_tree[f*2]++;else W.bl_tree[d*2]++;if(H=0,G=P,$===0)x=138,Q=3;else if(P===$)x=6,Q=3;else x=7,Q=4}}function b0(W,F,Z){var R,G=-1,P,$=F[1],H=0,x=7,Q=4;if($===0)x=138,Q=3;for(R=0;R<=Z;R++){if(P=$,$=F[(R+1)*2+1],++H<x&&P===$)continue;else if(H<Q)do Y0(W,P,W.bl_tree);while(--H!==0);else if(P!==0){if(P!==G)Y0(W,P,W.bl_tree),H--;Y0(W,F0,W.bl_tree),a(W,H-3,2)}else if(H<=10)Y0(W,f,W.bl_tree),a(W,H-3,3);else Y0(W,d,W.bl_tree),a(W,H-11,7);if(H=0,G=P,$===0)x=138,Q=3;else if(P===$)x=6,Q=3;else x=7,Q=4}}function S0(W){var F;p0(W,W.dyn_ltree,W.l_desc.max_code),p0(W,W.dyn_dtree,W.d_desc.max_code),T0(W,W.bl_desc);for(F=s-1;F>=3;F--)if(W.bl_tree[j[F]*2+1]!==0)break;return W.opt_len+=3*(F+1)+5+5+4,F}function i0(W,F,Z,R){var G;a(W,F-257,5),a(W,Z-1,5),a(W,R-4,4);for(G=0;G<R;G++)a(W,W.bl_tree[j[G]*2+1],3);b0(W,W.dyn_ltree,F-1),b0(W,W.dyn_dtree,Z-1)}function d0(W){var F=4093624447,Z;for(Z=0;Z<=31;Z++,F>>>=1)if(F&1&&W.dyn_ltree[Z*2]!==0)return L;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return n;for(Z=32;Z<p;Z++)if(W.dyn_ltree[Z*2]!==0)return n;return L}var E0=!1;function _0(W){if(!E0)j0(),E0=!0;W.l_desc=new K0(W.dyn_ltree,H0),W.d_desc=new K0(W.dyn_dtree,N0),W.bl_desc=new K0(W.bl_tree,I0),W.bi_buf=0,W.bi_valid=0,M0(W)}function m0(W,F,Z,R){a(W,(v<<1)+(R?1:0),3),w0(W,F,Z,!0)}function B0(W){a(W,k<<1,3),Y0(W,G0,O),z0(W)}function h0(W,F,Z,R){var G,P,$=0;if(W.level>0){if(W.strm.data_type===C)W.strm.data_type=d0(W);if(T0(W,W.l_desc),T0(W,W.d_desc),$=S0(W),G=W.opt_len+3+7>>>3,P=W.static_len+3+7>>>3,P<=G)G=P}else G=P=Z+5;if(Z+4<=G&&F!==-1)m0(W,F,Z,R);else if(W.strategy===b||P===G)a(W,(k<<1)+(R?1:0),3),_(W,O,I);else a(W,(B<<1)+(R?1:0),3),i0(W,W.l_desc.max_code+1,W.d_desc.max_code+1,$+1),_(W,W.dyn_ltree,W.dyn_dtree);if(M0(W),R)c0(W)}function n0(W,F,Z){if(W.pending_buf[W.d_buf+W.last_lit*2]=F>>>8&255,W.pending_buf[W.d_buf+W.last_lit*2+1]=F&255,W.pending_buf[W.l_buf+W.last_lit]=Z&255,W.last_lit++,F===0)W.dyn_ltree[Z*2]++;else W.matches++,F--,W.dyn_ltree[(l[Z]+p+1)*2]++,W.dyn_dtree[X0(F)*2]++;return W.last_lit===W.lit_bufsize-1}Y._tr_init=_0,Y._tr_stored_block=m0,Y._tr_flush_block=h0,Y._tr_tally=n0,Y._tr_align=B0}}),Q1=A0({"node_modules/pako/lib/zlib/adler32.js"(Y,g){function b(L,n,C,w){var v=L&65535|0,k=L>>>16&65535|0,B=0;while(C!==0){B=C>2000?2000:C,C-=B;do v=v+n[w++]|0,k=k+v|0;while(--B);v%=65521,k%=65521}return v|k<<16|0}g.exports=b}}),$1=A0({"node_modules/pako/lib/zlib/crc32.js"(Y,g){function b(){var C,w=[];for(var v=0;v<256;v++){C=v;for(var k=0;k<8;k++)C=C&1?3988292384^C>>>1:C>>>1;w[v]=C}return w}var L=b();function n(C,w,v,k){var B=L,N=k+v;C^=-1;for(var y=k;y<N;y++)C=C>>>8^B[(C^w[y])&255];return C^-1}g.exports=n}}),h1=A0({"node_modules/pako/lib/zlib/messages.js"(Y,g){g.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}}),f1=A0({"node_modules/pako/lib/zlib/deflate.js"(Y){var g=r0(),b=x1(),L=Q1(),n=$1(),C=h1(),w=0,v=1,k=3,B=4,N=5,y=0,m=1,p=-2,t=-3,u=-5,s=-1,W0=1,E=2,S=3,J0=4,G0=0,F0=2,f=8,d=9,z=15,h=8,V0=29,j=256,K=j+1+V0,O=30,I=19,c=2*K+1,l=15,D=3,Q0=258,i=Q0+D+1,H0=32,N0=42,I0=69,K0=73,X0=91,U0=103,a=113,Y0=666,r=1,z0=2,Z0=3,g0=4,j0=3;function M0(Q,X){return Q.msg=C[X],X}function c0(Q){return(Q<<1)-(Q>4?9:0)}function w0(Q){var X=Q.length;while(--X>=0)Q[X]=0}function v0(Q){var X=Q.state,U=X.pending;if(U>Q.avail_out)U=Q.avail_out;if(U===0)return;if(g.arraySet(Q.output,X.pending_buf,X.pending_out,U,Q.next_out),Q.next_out+=U,X.pending_out+=U,Q.total_out+=U,Q.avail_out-=U,X.pending-=U,X.pending===0)X.pending_out=0}function q0(Q,X){b._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,X),Q.block_start=Q.strstart,v0(Q.strm)}function _(Q,X){Q.pending_buf[Q.pending++]=X}function T0(Q,X){Q.pending_buf[Q.pending++]=X>>>8&255,Q.pending_buf[Q.pending++]=X&255}function p0(Q,X,U,V){var J=Q.avail_in;if(J>V)J=V;if(J===0)return 0;if(Q.avail_in-=J,g.arraySet(X,Q.input,Q.next_in,J,U),Q.state.wrap===1)Q.adler=L(Q.adler,X,J,U);else if(Q.state.wrap===2)Q.adler=n(Q.adler,X,J,U);return Q.next_in+=J,Q.total_in+=J,J}function b0(Q,X){var{max_chain_length:U,strstart:V}=Q,J,q,T=Q.prev_length,M=Q.nice_match,A=Q.strstart>Q.w_size-i?Q.strstart-(Q.w_size-i):0,o=Q.window,f0=Q.w_mask,P0=Q.prev,e=Q.strstart+Q0,C0=o[V+T-1],D0=o[V+T];if(Q.prev_length>=Q.good_match)U>>=2;if(M>Q.lookahead)M=Q.lookahead;do{if(J=X,o[J+T]!==D0||o[J+T-1]!==C0||o[J]!==o[V]||o[++J]!==o[V+1])continue;V+=2,J++;do;while(o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&o[++V]===o[++J]&&V<e);if(q=Q0-(e-V),V=e-Q0,q>T){if(Q.match_start=X,T=q,q>=M)break;C0=o[V+T-1],D0=o[V+T]}}while((X=P0[X&f0])>A&&--U!==0);if(T<=Q.lookahead)return T;return Q.lookahead}function S0(Q){var X=Q.w_size,U,V,J,q,T;do{if(q=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=X+(X-i)){g.arraySet(Q.window,Q.window,X,X,0),Q.match_start-=X,Q.strstart-=X,Q.block_start-=X,V=Q.hash_size,U=V;do J=Q.head[--U],Q.head[U]=J>=X?J-X:0;while(--V);V=X,U=V;do J=Q.prev[--U],Q.prev[U]=J>=X?J-X:0;while(--V);q+=X}if(Q.strm.avail_in===0)break;if(V=p0(Q.strm,Q.window,Q.strstart+Q.lookahead,q),Q.lookahead+=V,Q.lookahead+Q.insert>=D){T=Q.strstart-Q.insert,Q.ins_h=Q.window[T],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[T+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[T+D-1])&Q.hash_mask,Q.prev[T&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=T,T++,Q.insert--,Q.lookahead+Q.insert<D)break}}while(Q.lookahead<i&&Q.strm.avail_in!==0)}function i0(Q,X){var U=65535;if(U>Q.pending_buf_size-5)U=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(S0(Q),Q.lookahead===0&&X===w)return r;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var V=Q.block_start+U;if(Q.strstart===0||Q.strstart>=V){if(Q.lookahead=Q.strstart-V,Q.strstart=V,q0(Q,!1),Q.strm.avail_out===0)return r}if(Q.strstart-Q.block_start>=Q.w_size-i){if(q0(Q,!1),Q.strm.avail_out===0)return r}}if(Q.insert=0,X===B){if(q0(Q,!0),Q.strm.avail_out===0)return Z0;return g0}if(Q.strstart>Q.block_start){if(q0(Q,!1),Q.strm.avail_out===0)return r}return r}function d0(Q,X){var U,V;for(;;){if(Q.lookahead<i){if(S0(Q),Q.lookahead<i&&X===w)return r;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=D)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(U!==0&&Q.strstart-U<=Q.w_size-i)Q.match_length=b0(Q,U);if(Q.match_length>=D)if(V=b._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-D),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=D){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else V=b._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(V){if(q0(Q,!1),Q.strm.avail_out===0)return r}}if(Q.insert=Q.strstart<D-1?Q.strstart:D-1,X===B){if(q0(Q,!0),Q.strm.avail_out===0)return Z0;return g0}if(Q.last_lit){if(q0(Q,!1),Q.strm.avail_out===0)return r}return z0}function E0(Q,X){var U,V,J;for(;;){if(Q.lookahead<i){if(S0(Q),Q.lookahead<i&&X===w)return r;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=D)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=D-1,U!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-U<=Q.w_size-i){if(Q.match_length=b0(Q,U),Q.match_length<=5&&(Q.strategy===W0||Q.match_length===D&&Q.strstart-Q.match_start>4096))Q.match_length=D-1}if(Q.prev_length>=D&&Q.match_length<=Q.prev_length){J=Q.strstart+Q.lookahead-D,V=b._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-D),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=J)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=D-1,Q.strstart++,V){if(q0(Q,!1),Q.strm.avail_out===0)return r}}else if(Q.match_available){if(V=b._tr_tally(Q,0,Q.window[Q.strstart-1]),V)q0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return r}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)V=b._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<D-1?Q.strstart:D-1,X===B){if(q0(Q,!0),Q.strm.avail_out===0)return Z0;return g0}if(Q.last_lit){if(q0(Q,!1),Q.strm.avail_out===0)return r}return z0}function _0(Q,X){var U,V,J,q,T=Q.window;for(;;){if(Q.lookahead<=Q0){if(S0(Q),Q.lookahead<=Q0&&X===w)return r;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=D&&Q.strstart>0){if(J=Q.strstart-1,V=T[J],V===T[++J]&&V===T[++J]&&V===T[++J]){q=Q.strstart+Q0;do;while(V===T[++J]&&V===T[++J]&&V===T[++J]&&V===T[++J]&&V===T[++J]&&V===T[++J]&&V===T[++J]&&V===T[++J]&&J<q);if(Q.match_length=Q0-(q-J),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=D)U=b._tr_tally(Q,1,Q.match_length-D),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else U=b._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(U){if(q0(Q,!1),Q.strm.avail_out===0)return r}}if(Q.insert=0,X===B){if(q0(Q,!0),Q.strm.avail_out===0)return Z0;return g0}if(Q.last_lit){if(q0(Q,!1),Q.strm.avail_out===0)return r}return z0}function m0(Q,X){var U;for(;;){if(Q.lookahead===0){if(S0(Q),Q.lookahead===0){if(X===w)return r;break}}if(Q.match_length=0,U=b._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,U){if(q0(Q,!1),Q.strm.avail_out===0)return r}}if(Q.insert=0,X===B){if(q0(Q,!0),Q.strm.avail_out===0)return Z0;return g0}if(Q.last_lit){if(q0(Q,!1),Q.strm.avail_out===0)return r}return z0}function B0(Q,X,U,V,J){this.good_length=Q,this.max_lazy=X,this.nice_length=U,this.max_chain=V,this.func=J}var h0=[new B0(0,0,0,0,i0),new B0(4,4,8,4,d0),new B0(4,5,16,8,d0),new B0(4,6,32,32,d0),new B0(4,4,16,16,E0),new B0(8,16,32,32,E0),new B0(8,16,128,128,E0),new B0(8,32,128,256,E0),new B0(32,128,258,1024,E0),new B0(32,258,258,4096,E0)];function n0(Q){Q.window_size=2*Q.w_size,w0(Q.head),Q.max_lazy_match=h0[Q.level].max_lazy,Q.good_match=h0[Q.level].good_length,Q.nice_match=h0[Q.level].nice_length,Q.max_chain_length=h0[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=D-1,Q.match_available=0,Q.ins_h=0}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=f,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new g.Buf16(c*2),this.dyn_dtree=new g.Buf16((2*O+1)*2),this.bl_tree=new g.Buf16((2*I+1)*2),w0(this.dyn_ltree),w0(this.dyn_dtree),w0(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new g.Buf16(l+1),this.heap=new g.Buf16(2*K+1),w0(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new g.Buf16(2*K+1),w0(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F(Q){var X;if(!Q||!Q.state)return M0(Q,p);if(Q.total_in=Q.total_out=0,Q.data_type=F0,X=Q.state,X.pending=0,X.pending_out=0,X.wrap<0)X.wrap=-X.wrap;return X.status=X.wrap?N0:a,Q.adler=X.wrap===2?0:1,X.last_flush=w,b._tr_init(X),y}function Z(Q){var X=F(Q);if(X===y)n0(Q.state);return X}function R(Q,X){if(!Q||!Q.state)return p;if(Q.state.wrap!==2)return p;return Q.state.gzhead=X,y}function G(Q,X,U,V,J,q){if(!Q)return p;var T=1;if(X===s)X=6;if(V<0)T=0,V=-V;else if(V>15)T=2,V-=16;if(J<1||J>d||U!==f||V<8||V>15||X<0||X>9||q<0||q>J0)return M0(Q,p);if(V===8)V=9;var M=new W;return Q.state=M,M.strm=Q,M.wrap=T,M.gzhead=null,M.w_bits=V,M.w_size=1<<M.w_bits,M.w_mask=M.w_size-1,M.hash_bits=J+7,M.hash_size=1<<M.hash_bits,M.hash_mask=M.hash_size-1,M.hash_shift=~~((M.hash_bits+D-1)/D),M.window=new g.Buf8(M.w_size*2),M.head=new g.Buf16(M.hash_size),M.prev=new g.Buf16(M.w_size),M.lit_bufsize=1<<J+6,M.pending_buf_size=M.lit_bufsize*4,M.pending_buf=new g.Buf8(M.pending_buf_size),M.d_buf=1*M.lit_bufsize,M.l_buf=3*M.lit_bufsize,M.level=X,M.strategy=q,M.method=U,Z(Q)}function P(Q,X){return G(Q,X,f,z,h,G0)}function $(Q,X){var U,V,J,q;if(!Q||!Q.state||X>N||X<0)return Q?M0(Q,p):p;if(V=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||V.status===Y0&&X!==B)return M0(Q,Q.avail_out===0?u:p);if(V.strm=Q,U=V.last_flush,V.last_flush=X,V.status===N0)if(V.wrap===2)if(Q.adler=0,_(V,31),_(V,139),_(V,8),!V.gzhead)_(V,0),_(V,0),_(V,0),_(V,0),_(V,0),_(V,V.level===9?2:V.strategy>=E||V.level<2?4:0),_(V,j0),V.status=a;else{if(_(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(!V.gzhead.extra?0:4)+(!V.gzhead.name?0:8)+(!V.gzhead.comment?0:16)),_(V,V.gzhead.time&255),_(V,V.gzhead.time>>8&255),_(V,V.gzhead.time>>16&255),_(V,V.gzhead.time>>24&255),_(V,V.level===9?2:V.strategy>=E||V.level<2?4:0),_(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length)_(V,V.gzhead.extra.length&255),_(V,V.gzhead.extra.length>>8&255);if(V.gzhead.hcrc)Q.adler=n(Q.adler,V.pending_buf,V.pending,0);V.gzindex=0,V.status=I0}else{var T=f+(V.w_bits-8<<4)<<8,M=-1;if(V.strategy>=E||V.level<2)M=0;else if(V.level<6)M=1;else if(V.level===6)M=2;else M=3;if(T|=M<<6,V.strstart!==0)T|=H0;if(T+=31-T%31,V.status=a,T0(V,T),V.strstart!==0)T0(V,Q.adler>>>16),T0(V,Q.adler&65535);Q.adler=1}if(V.status===I0)if(V.gzhead.extra){J=V.pending;while(V.gzindex<(V.gzhead.extra.length&65535)){if(V.pending===V.pending_buf_size){if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(v0(Q),J=V.pending,V.pending===V.pending_buf_size)break}_(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++}if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(V.gzindex===V.gzhead.extra.length)V.gzindex=0,V.status=K0}else V.status=K0;if(V.status===K0)if(V.gzhead.name){J=V.pending;do{if(V.pending===V.pending_buf_size){if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(v0(Q),J=V.pending,V.pending===V.pending_buf_size){q=1;break}}if(V.gzindex<V.gzhead.name.length)q=V.gzhead.name.charCodeAt(V.gzindex++)&255;else q=0;_(V,q)}while(q!==0);if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(q===0)V.gzindex=0,V.status=X0}else V.status=X0;if(V.status===X0)if(V.gzhead.comment){J=V.pending;do{if(V.pending===V.pending_buf_size){if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(v0(Q),J=V.pending,V.pending===V.pending_buf_size){q=1;break}}if(V.gzindex<V.gzhead.comment.length)q=V.gzhead.comment.charCodeAt(V.gzindex++)&255;else q=0;_(V,q)}while(q!==0);if(V.gzhead.hcrc&&V.pending>J)Q.adler=n(Q.adler,V.pending_buf,V.pending-J,J);if(q===0)V.status=U0}else V.status=U0;if(V.status===U0)if(V.gzhead.hcrc){if(V.pending+2>V.pending_buf_size)v0(Q);if(V.pending+2<=V.pending_buf_size)_(V,Q.adler&255),_(V,Q.adler>>8&255),Q.adler=0,V.status=a}else V.status=a;if(V.pending!==0){if(v0(Q),Q.avail_out===0)return V.last_flush=-1,y}else if(Q.avail_in===0&&c0(X)<=c0(U)&&X!==B)return M0(Q,u);if(V.status===Y0&&Q.avail_in!==0)return M0(Q,u);if(Q.avail_in!==0||V.lookahead!==0||X!==w&&V.status!==Y0){var A=V.strategy===E?m0(V,X):V.strategy===S?_0(V,X):h0[V.level].func(V,X);if(A===Z0||A===g0)V.status=Y0;if(A===r||A===Z0){if(Q.avail_out===0)V.last_flush=-1;return y}if(A===z0){if(X===v)b._tr_align(V);else if(X!==N){if(b._tr_stored_block(V,0,0,!1),X===k){if(w0(V.head),V.lookahead===0)V.strstart=0,V.block_start=0,V.insert=0}}if(v0(Q),Q.avail_out===0)return V.last_flush=-1,y}}if(X!==B)return y;if(V.wrap<=0)return m;if(V.wrap===2)_(V,Q.adler&255),_(V,Q.adler>>8&255),_(V,Q.adler>>16&255),_(V,Q.adler>>24&255),_(V,Q.total_in&255),_(V,Q.total_in>>8&255),_(V,Q.total_in>>16&255),_(V,Q.total_in>>24&255);else T0(V,Q.adler>>>16),T0(V,Q.adler&65535);if(v0(Q),V.wrap>0)V.wrap=-V.wrap;return V.pending!==0?y:m}function H(Q){var X;if(!Q||!Q.state)return p;if(X=Q.state.status,X!==N0&&X!==I0&&X!==K0&&X!==X0&&X!==U0&&X!==a&&X!==Y0)return M0(Q,p);return Q.state=null,X===a?M0(Q,t):y}function x(Q,X){var U=X.length,V,J,q,T,M,A,o,f0;if(!Q||!Q.state)return p;if(V=Q.state,T=V.wrap,T===2||T===1&&V.status!==N0||V.lookahead)return p;if(T===1)Q.adler=L(Q.adler,X,U,0);if(V.wrap=0,U>=V.w_size){if(T===0)w0(V.head),V.strstart=0,V.block_start=0,V.insert=0;f0=new g.Buf8(V.w_size),g.arraySet(f0,X,U-V.w_size,V.w_size,0),X=f0,U=V.w_size}M=Q.avail_in,A=Q.next_in,o=Q.input,Q.avail_in=U,Q.next_in=0,Q.input=X,S0(V);while(V.lookahead>=D){J=V.strstart,q=V.lookahead-(D-1);do V.ins_h=(V.ins_h<<V.hash_shift^V.window[J+D-1])&V.hash_mask,V.prev[J&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=J,J++;while(--q);V.strstart=J,V.lookahead=D-1,S0(V)}return V.strstart+=V.lookahead,V.block_start=V.strstart,V.insert=V.lookahead,V.lookahead=0,V.match_length=V.prev_length=D-1,V.match_available=0,Q.next_in=A,Q.input=o,Q.avail_in=M,V.wrap=T,y}Y.deflateInit=P,Y.deflateInit2=G,Y.deflateReset=Z,Y.deflateResetKeep=F,Y.deflateSetHeader=R,Y.deflate=$,Y.deflateEnd=H,Y.deflateSetDictionary=x,Y.deflateInfo="pako deflate (from Nodeca project)"}}),u1=A0({"node_modules/pako/lib/zlib/inffast.js"(Y,g){var b=30,L=12;g.exports=function n(C,w){var v,k,B,N,y,m,p,t,u,s,W0,E,S,J0,G0,F0,f,d,z,h,V0,j,K,O,I;v=C.state,k=C.next_in,O=C.input,B=k+(C.avail_in-5),N=C.next_out,I=C.output,y=N-(w-C.avail_out),m=N+(C.avail_out-257),p=v.dmax,t=v.wsize,u=v.whave,s=v.wnext,W0=v.window,E=v.hold,S=v.bits,J0=v.lencode,G0=v.distcode,F0=(1<<v.lenbits)-1,f=(1<<v.distbits)-1;Q:do{if(S<15)E+=O[k++]<<S,S+=8,E+=O[k++]<<S,S+=8;d=J0[E&F0];$:for(;;){if(z=d>>>24,E>>>=z,S-=z,z=d>>>16&255,z===0)I[N++]=d&65535;else if(z&16){if(h=d&65535,z&=15,z){if(S<z)E+=O[k++]<<S,S+=8;h+=E&(1<<z)-1,E>>>=z,S-=z}if(S<15)E+=O[k++]<<S,S+=8,E+=O[k++]<<S,S+=8;d=G0[E&f];V:for(;;){if(z=d>>>24,E>>>=z,S-=z,z=d>>>16&255,z&16){if(V0=d&65535,z&=15,S<z){if(E+=O[k++]<<S,S+=8,S<z)E+=O[k++]<<S,S+=8}if(V0+=E&(1<<z)-1,V0>p){C.msg="invalid distance too far back",v.mode=b;break Q}if(E>>>=z,S-=z,z=N-y,V0>z){if(z=V0-z,z>u){if(v.sane){C.msg="invalid distance too far back",v.mode=b;break Q}}if(j=0,K=W0,s===0){if(j+=t-z,z<h){h-=z;do I[N++]=W0[j++];while(--z);j=N-V0,K=I}}else if(s<z){if(j+=t+s-z,z-=s,z<h){h-=z;do I[N++]=W0[j++];while(--z);if(j=0,s<h){z=s,h-=z;do I[N++]=W0[j++];while(--z);j=N-V0,K=I}}}else if(j+=s-z,z<h){h-=z;do I[N++]=W0[j++];while(--z);j=N-V0,K=I}while(h>2)I[N++]=K[j++],I[N++]=K[j++],I[N++]=K[j++],h-=3;if(h){if(I[N++]=K[j++],h>1)I[N++]=K[j++]}}else{j=N-V0;do I[N++]=I[j++],I[N++]=I[j++],I[N++]=I[j++],h-=3;while(h>2);if(h){if(I[N++]=I[j++],h>1)I[N++]=I[j++]}}}else if((z&64)===0){d=G0[(d&65535)+(E&(1<<z)-1)];continue V}else{C.msg="invalid distance code",v.mode=b;break Q}break}}else if((z&64)===0){d=J0[(d&65535)+(E&(1<<z)-1)];continue $}else if(z&32){v.mode=L;break Q}else{C.msg="invalid literal/length code",v.mode=b;break Q}break}}while(k<B&&N<m);h=S>>3,k-=h,S-=h<<3,E&=(1<<S)-1,C.next_in=k,C.next_out=N,C.avail_in=k<B?5+(B-k):5-(k-B),C.avail_out=N<m?257+(m-N):257-(N-m),v.hold=E,v.bits=S;return}}}),b1=A0({"node_modules/pako/lib/zlib/inftrees.js"(Y,g){var b=r0(),L=15,n=852,C=592,w=0,v=1,k=2,B=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],N=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];g.exports=function p(t,u,s,W0,E,S,J0,G0){var F0=G0.bits,f=0,d=0,z=0,h=0,V0=0,j=0,K=0,O=0,I=0,c=0,l,D,Q0,i,H0,N0=null,I0=0,K0,X0=new b.Buf16(L+1),U0=new b.Buf16(L+1),a=null,Y0=0,r,z0,Z0;for(f=0;f<=L;f++)X0[f]=0;for(d=0;d<W0;d++)X0[u[s+d]]++;V0=F0;for(h=L;h>=1;h--)if(X0[h]!==0)break;if(V0>h)V0=h;if(h===0)return E[S++]=1<<24|64<<16|0,E[S++]=1<<24|64<<16|0,G0.bits=1,0;for(z=1;z<h;z++)if(X0[z]!==0)break;if(V0<z)V0=z;O=1;for(f=1;f<=L;f++)if(O<<=1,O-=X0[f],O<0)return-1;if(O>0&&(t===w||h!==1))return-1;U0[1]=0;for(f=1;f<L;f++)U0[f+1]=U0[f]+X0[f];for(d=0;d<W0;d++)if(u[s+d]!==0)J0[U0[u[s+d]]++]=d;if(t===w)N0=a=J0,K0=19;else if(t===v)N0=B,I0-=257,a=N,Y0-=257,K0=256;else N0=y,a=m,K0=-1;if(c=0,d=0,f=z,H0=S,j=V0,K=0,Q0=-1,I=1<<V0,i=I-1,t===v&&I>n||t===k&&I>C)return 1;for(;;){if(r=f-K,J0[d]<K0)z0=0,Z0=J0[d];else if(J0[d]>K0)z0=a[Y0+J0[d]],Z0=N0[I0+J0[d]];else z0=96,Z0=0;l=1<<f-K,D=1<<j,z=D;do D-=l,E[H0+(c>>K)+D]=r<<24|z0<<16|Z0|0;while(D!==0);l=1<<f-1;while(c&l)l>>=1;if(l!==0)c&=l-1,c+=l;else c=0;if(d++,--X0[f]===0){if(f===h)break;f=u[s+J0[d]]}if(f>V0&&(c&i)!==Q0){if(K===0)K=V0;H0+=z,j=f-K,O=1<<j;while(j+K<h){if(O-=X0[j+K],O<=0)break;j++,O<<=1}if(I+=1<<j,t===v&&I>n||t===k&&I>C)return 1;Q0=c&i,E[Q0]=V0<<24|j<<16|H0-S|0}}if(c!==0)E[H0+c]=f-K<<24|64<<16|0;return G0.bits=V0,0}}}),d1=A0({"node_modules/pako/lib/zlib/inflate.js"(Y){var g=r0(),b=Q1(),L=$1(),n=u1(),C=b1(),w=0,v=1,k=2,B=4,N=5,y=6,m=0,p=1,t=2,u=-2,s=-3,W0=-4,E=-5,S=8,J0=1,G0=2,F0=3,f=4,d=5,z=6,h=7,V0=8,j=9,K=10,O=11,I=12,c=13,l=14,D=15,Q0=16,i=17,H0=18,N0=19,I0=20,K0=21,X0=22,U0=23,a=24,Y0=25,r=26,z0=27,Z0=28,g0=29,j0=30,M0=31,c0=32,w0=852,v0=592,q0=15,_=q0;function T0(G){return(G>>>24&255)+(G>>>8&65280)+((G&65280)<<8)+((G&255)<<24)}function p0(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b0(G){var P;if(!G||!G.state)return u;if(P=G.state,G.total_in=G.total_out=P.total=0,G.msg="",P.wrap)G.adler=P.wrap&1;return P.mode=J0,P.last=0,P.havedict=0,P.dmax=32768,P.head=null,P.hold=0,P.bits=0,P.lencode=P.lendyn=new g.Buf32(w0),P.distcode=P.distdyn=new g.Buf32(v0),P.sane=1,P.back=-1,m}function S0(G){var P;if(!G||!G.state)return u;return P=G.state,P.wsize=0,P.whave=0,P.wnext=0,b0(G)}function i0(G,P){var $,H;if(!G||!G.state)return u;if(H=G.state,P<0)$=0,P=-P;else if($=(P>>4)+1,P<48)P&=15;if(P&&(P<8||P>15))return u;if(H.window!==null&&H.wbits!==P)H.window=null;return H.wrap=$,H.wbits=P,S0(G)}function d0(G,P){var $,H;if(!G)return u;if(H=new p0,G.state=H,H.window=null,$=i0(G,P),$!==m)G.state=null;return $}function E0(G){return d0(G,_)}var _0=!0,m0,B0;function h0(G){if(_0){var P;m0=new g.Buf32(512),B0=new g.Buf32(32),P=0;while(P<144)G.lens[P++]=8;while(P<256)G.lens[P++]=9;while(P<280)G.lens[P++]=7;while(P<288)G.lens[P++]=8;C(v,G.lens,0,288,m0,0,G.work,{bits:9}),P=0;while(P<32)G.lens[P++]=5;C(k,G.lens,0,32,B0,0,G.work,{bits:5}),_0=!1}G.lencode=m0,G.lenbits=9,G.distcode=B0,G.distbits=5}function n0(G,P,$,H){var x,Q=G.state;if(Q.window===null)Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new g.Buf8(Q.wsize);if(H>=Q.wsize)g.arraySet(Q.window,P,$-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize;else{if(x=Q.wsize-Q.wnext,x>H)x=H;if(g.arraySet(Q.window,P,$-H,x,Q.wnext),H-=x,H)g.arraySet(Q.window,P,$-H,H,0),Q.wnext=H,Q.whave=Q.wsize;else{if(Q.wnext+=x,Q.wnext===Q.wsize)Q.wnext=0;if(Q.whave<Q.wsize)Q.whave+=x}}return 0}function W(G,P){var $,H,x,Q,X,U,V,J,q,T,M,A,o,f0,P0=0,e,C0,D0,k0,a0,l0,L0,y0,O0=new g.Buf8(4),u0,x0,e0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&G.avail_in!==0)return u;if($=G.state,$.mode===I)$.mode=c;X=G.next_out,x=G.output,V=G.avail_out,Q=G.next_in,H=G.input,U=G.avail_in,J=$.hold,q=$.bits,T=U,M=V,y0=m;Q:for(;;)switch($.mode){case J0:if($.wrap===0){$.mode=c;break}while(q<16){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.wrap&2&&J===35615){$.check=0,O0[0]=J&255,O0[1]=J>>>8&255,$.check=L($.check,O0,2,0),J=0,q=0,$.mode=G0;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((J&255)<<8)+(J>>8))%31){G.msg="incorrect header check",$.mode=j0;break}if((J&15)!==S){G.msg="unknown compression method",$.mode=j0;break}if(J>>>=4,q-=4,L0=(J&15)+8,$.wbits===0)$.wbits=L0;else if(L0>$.wbits){G.msg="invalid window size",$.mode=j0;break}$.dmax=1<<L0,G.adler=$.check=1,$.mode=J&512?K:I,J=0,q=0;break;case G0:while(q<16){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.flags=J,($.flags&255)!==S){G.msg="unknown compression method",$.mode=j0;break}if($.flags&57344){G.msg="unknown header flags set",$.mode=j0;break}if($.head)$.head.text=J>>8&1;if($.flags&512)O0[0]=J&255,O0[1]=J>>>8&255,$.check=L($.check,O0,2,0);J=0,q=0,$.mode=F0;case F0:while(q<32){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.head)$.head.time=J;if($.flags&512)O0[0]=J&255,O0[1]=J>>>8&255,O0[2]=J>>>16&255,O0[3]=J>>>24&255,$.check=L($.check,O0,4,0);J=0,q=0,$.mode=f;case f:while(q<16){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.head)$.head.xflags=J&255,$.head.os=J>>8;if($.flags&512)O0[0]=J&255,O0[1]=J>>>8&255,$.check=L($.check,O0,2,0);J=0,q=0,$.mode=d;case d:if($.flags&1024){while(q<16){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.length=J,$.head)$.head.extra_len=J;if($.flags&512)O0[0]=J&255,O0[1]=J>>>8&255,$.check=L($.check,O0,2,0);J=0,q=0}else if($.head)$.head.extra=null;$.mode=z;case z:if($.flags&1024){if(A=$.length,A>U)A=U;if(A){if($.head){if(L0=$.head.extra_len-$.length,!$.head.extra)$.head.extra=new Array($.head.extra_len);g.arraySet($.head.extra,H,Q,A,L0)}if($.flags&512)$.check=L($.check,H,A,Q);U-=A,Q+=A,$.length-=A}if($.length)break Q}$.length=0,$.mode=h;case h:if($.flags&2048){if(U===0)break Q;A=0;do if(L0=H[Q+A++],$.head&&L0&&$.length<65536)$.head.name+=String.fromCharCode(L0);while(L0&&A<U);if($.flags&512)$.check=L($.check,H,A,Q);if(U-=A,Q+=A,L0)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=V0;case V0:if($.flags&4096){if(U===0)break Q;A=0;do if(L0=H[Q+A++],$.head&&L0&&$.length<65536)$.head.comment+=String.fromCharCode(L0);while(L0&&A<U);if($.flags&512)$.check=L($.check,H,A,Q);if(U-=A,Q+=A,L0)break Q}else if($.head)$.head.comment=null;$.mode=j;case j:if($.flags&512){while(q<16){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if(J!==($.check&65535)){G.msg="header crc mismatch",$.mode=j0;break}J=0,q=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;G.adler=$.check=0,$.mode=I;break;case K:while(q<32){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}G.adler=$.check=T0(J),J=0,q=0,$.mode=O;case O:if($.havedict===0)return G.next_out=X,G.avail_out=V,G.next_in=Q,G.avail_in=U,$.hold=J,$.bits=q,t;G.adler=$.check=1,$.mode=I;case I:if(P===N||P===y)break Q;case c:if($.last){J>>>=q&7,q-=q&7,$.mode=z0;break}while(q<3){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}switch($.last=J&1,J>>>=1,q-=1,J&3){case 0:$.mode=l;break;case 1:if(h0($),$.mode=I0,P===y){J>>>=2,q-=2;break Q}break;case 2:$.mode=i;break;case 3:G.msg="invalid block type",$.mode=j0}J>>>=2,q-=2;break;case l:J>>>=q&7,q-=q&7;while(q<32){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if((J&65535)!==(J>>>16^65535)){G.msg="invalid stored block lengths",$.mode=j0;break}if($.length=J&65535,J=0,q=0,$.mode=D,P===y)break Q;case D:$.mode=Q0;case Q0:if(A=$.length,A){if(A>U)A=U;if(A>V)A=V;if(A===0)break Q;g.arraySet(x,H,Q,A,X),U-=A,Q+=A,V-=A,X+=A,$.length-=A;break}$.mode=I;break;case i:while(q<14){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if($.nlen=(J&31)+257,J>>>=5,q-=5,$.ndist=(J&31)+1,J>>>=5,q-=5,$.ncode=(J&15)+4,J>>>=4,q-=4,$.nlen>286||$.ndist>30){G.msg="too many length or distance symbols",$.mode=j0;break}$.have=0,$.mode=H0;case H0:while($.have<$.ncode){while(q<3){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}$.lens[e0[$.have++]]=J&7,J>>>=3,q-=3}while($.have<19)$.lens[e0[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,u0={bits:$.lenbits},y0=C(w,$.lens,0,19,$.lencode,0,$.work,u0),$.lenbits=u0.bits,y0){G.msg="invalid code lengths set",$.mode=j0;break}$.have=0,$.mode=N0;case N0:while($.have<$.nlen+$.ndist){for(;;){if(P0=$.lencode[J&(1<<$.lenbits)-1],e=P0>>>24,C0=P0>>>16&255,D0=P0&65535,e<=q)break;if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if(D0<16)J>>>=e,q-=e,$.lens[$.have++]=D0;else{if(D0===16){x0=e+2;while(q<x0){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if(J>>>=e,q-=e,$.have===0){G.msg="invalid bit length repeat",$.mode=j0;break}L0=$.lens[$.have-1],A=3+(J&3),J>>>=2,q-=2}else if(D0===17){x0=e+3;while(q<x0){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}J>>>=e,q-=e,L0=0,A=3+(J&7),J>>>=3,q-=3}else{x0=e+7;while(q<x0){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}J>>>=e,q-=e,L0=0,A=11+(J&127),J>>>=7,q-=7}if($.have+A>$.nlen+$.ndist){G.msg="invalid bit length repeat",$.mode=j0;break}while(A--)$.lens[$.have++]=L0}}if($.mode===j0)break;if($.lens[256]===0){G.msg="invalid code -- missing end-of-block",$.mode=j0;break}if($.lenbits=9,u0={bits:$.lenbits},y0=C(v,$.lens,0,$.nlen,$.lencode,0,$.work,u0),$.lenbits=u0.bits,y0){G.msg="invalid literal/lengths set",$.mode=j0;break}if($.distbits=6,$.distcode=$.distdyn,u0={bits:$.distbits},y0=C(k,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,u0),$.distbits=u0.bits,y0){G.msg="invalid distances set",$.mode=j0;break}if($.mode=I0,P===y)break Q;case I0:$.mode=K0;case K0:if(U>=6&&V>=258){if(G.next_out=X,G.avail_out=V,G.next_in=Q,G.avail_in=U,$.hold=J,$.bits=q,n(G,M),X=G.next_out,x=G.output,V=G.avail_out,Q=G.next_in,H=G.input,U=G.avail_in,J=$.hold,q=$.bits,$.mode===I)$.back=-1;break}$.back=0;for(;;){if(P0=$.lencode[J&(1<<$.lenbits)-1],e=P0>>>24,C0=P0>>>16&255,D0=P0&65535,e<=q)break;if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if(C0&&(C0&240)===0){k0=e,a0=C0,l0=D0;for(;;){if(P0=$.lencode[l0+((J&(1<<k0+a0)-1)>>k0)],e=P0>>>24,C0=P0>>>16&255,D0=P0&65535,k0+e<=q)break;if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}J>>>=k0,q-=k0,$.back+=k0}if(J>>>=e,q-=e,$.back+=e,$.length=D0,C0===0){$.mode=r;break}if(C0&32){$.back=-1,$.mode=I;break}if(C0&64){G.msg="invalid literal/length code",$.mode=j0;break}$.extra=C0&15,$.mode=X0;case X0:if($.extra){x0=$.extra;while(q<x0){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}$.length+=J&(1<<$.extra)-1,J>>>=$.extra,q-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=U0;case U0:for(;;){if(P0=$.distcode[J&(1<<$.distbits)-1],e=P0>>>24,C0=P0>>>16&255,D0=P0&65535,e<=q)break;if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if((C0&240)===0){k0=e,a0=C0,l0=D0;for(;;){if(P0=$.distcode[l0+((J&(1<<k0+a0)-1)>>k0)],e=P0>>>24,C0=P0>>>16&255,D0=P0&65535,k0+e<=q)break;if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}J>>>=k0,q-=k0,$.back+=k0}if(J>>>=e,q-=e,$.back+=e,C0&64){G.msg="invalid distance code",$.mode=j0;break}$.offset=D0,$.extra=C0&15,$.mode=a;case a:if($.extra){x0=$.extra;while(q<x0){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}$.offset+=J&(1<<$.extra)-1,J>>>=$.extra,q-=$.extra,$.back+=$.extra}if($.offset>$.dmax){G.msg="invalid distance too far back",$.mode=j0;break}$.mode=Y0;case Y0:if(V===0)break Q;if(A=M-V,$.offset>A){if(A=$.offset-A,A>$.whave){if($.sane){G.msg="invalid distance too far back",$.mode=j0;break}}if(A>$.wnext)A-=$.wnext,o=$.wsize-A;else o=$.wnext-A;if(A>$.length)A=$.length;f0=$.window}else f0=x,o=X-$.offset,A=$.length;if(A>V)A=V;V-=A,$.length-=A;do x[X++]=f0[o++];while(--A);if($.length===0)$.mode=K0;break;case r:if(V===0)break Q;x[X++]=$.length,V--,$.mode=K0;break;case z0:if($.wrap){while(q<32){if(U===0)break Q;U--,J|=H[Q++]<<q,q+=8}if(M-=V,G.total_out+=M,$.total+=M,M)G.adler=$.check=$.flags?L($.check,x,M,X-M):b($.check,x,M,X-M);if(M=V,($.flags?J:T0(J))!==$.check){G.msg="incorrect data check",$.mode=j0;break}J=0,q=0}$.mode=Z0;case Z0:if($.wrap&&$.flags){while(q<32){if(U===0)break Q;U--,J+=H[Q++]<<q,q+=8}if(J!==($.total&4294967295)){G.msg="incorrect length check",$.mode=j0;break}J=0,q=0}$.mode=g0;case g0:y0=p;break Q;case j0:y0=s;break Q;case M0:return W0;case c0:default:return u}if(G.next_out=X,G.avail_out=V,G.next_in=Q,G.avail_in=U,$.hold=J,$.bits=q,$.wsize||M!==G.avail_out&&$.mode<j0&&($.mode<z0||P!==B)){if(n0(G,G.output,G.next_out,M-G.avail_out))return $.mode=M0,W0}if(T-=G.avail_in,M-=G.avail_out,G.total_in+=T,G.total_out+=M,$.total+=M,$.wrap&&M)G.adler=$.check=$.flags?L($.check,x,M,G.next_out-M):b($.check,x,M,G.next_out-M);if(G.data_type=$.bits+($.last?64:0)+($.mode===I?128:0)+($.mode===I0||$.mode===D?256:0),(T===0&&M===0||P===B)&&y0===m)y0=E;return y0}function F(G){if(!G||!G.state)return u;var P=G.state;if(P.window)P.window=null;return G.state=null,m}function Z(G,P){var $;if(!G||!G.state)return u;if($=G.state,($.wrap&2)===0)return u;return $.head=P,P.done=!1,m}function R(G,P){var $=P.length,H,x,Q;if(!G||!G.state)return u;if(H=G.state,H.wrap!==0&&H.mode!==O)return u;if(H.mode===O){if(x=1,x=b(x,P,$,0),x!==H.check)return s}if(Q=n0(G,P,$,$),Q)return H.mode=M0,W0;return H.havedict=1,m}Y.inflateReset=S0,Y.inflateReset2=i0,Y.inflateResetKeep=b0,Y.inflateInit=E0,Y.inflateInit2=d0,Y.inflate=W,Y.inflateEnd=F,Y.inflateGetHeader=Z,Y.inflateSetDictionary=R,Y.inflateInfo="pako inflate (from Nodeca project)"}}),V1=A0({"node_modules/pako/lib/zlib/constants.js"(Y,g){g.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}}),m1=A0({"node_modules/browserify-zlib/lib/binding.js"(Y){var g=E1(),b=f1(),L=d1(),n=V1();for(C in n)Y[C]=n[C];var C;Y.NONE=0,Y.DEFLATE=1,Y.INFLATE=2,Y.GZIP=3,Y.GUNZIP=4,Y.DEFLATERAW=5,Y.INFLATERAW=6,Y.UNZIP=7;var w=31,v=139;function k(B){if(typeof B!=="number"||B<Y.DEFLATE||B>Y.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=B,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}k.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}if(this.pending_close=!1,R0(this.init_done,"close before init"),R0(this.mode<=Y.UNZIP),this.mode===Y.DEFLATE||this.mode===Y.GZIP||this.mode===Y.DEFLATERAW)b.deflateEnd(this.strm);else if(this.mode===Y.INFLATE||this.mode===Y.GUNZIP||this.mode===Y.INFLATERAW||this.mode===Y.UNZIP)L.inflateEnd(this.strm);this.mode=Y.NONE,this.dictionary=null},k.prototype.write=function(B,N,y,m,p,t,u){return this._write(!0,B,N,y,m,p,t,u)},k.prototype.writeSync=function(B,N,y,m,p,t,u){return this._write(!1,B,N,y,m,p,t,u)},k.prototype._write=function(B,N,y,m,p,t,u,s){if(R0.equal(arguments.length,8),R0(this.init_done,"write before init"),R0(this.mode!==Y.NONE,"already finalized"),R0.equal(!1,this.write_in_progress,"write already in progress"),R0.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,R0.equal(!1,N===void 0,"must provide flush value"),this.write_in_progress=!0,N!==Y.Z_NO_FLUSH&&N!==Y.Z_PARTIAL_FLUSH&&N!==Y.Z_SYNC_FLUSH&&N!==Y.Z_FULL_FLUSH&&N!==Y.Z_FINISH&&N!==Y.Z_BLOCK)throw new Error("Invalid flush value");if(y==null)y=Buffer.alloc(0),p=0,m=0;if(this.strm.avail_in=p,this.strm.input=y,this.strm.next_in=m,this.strm.avail_out=s,this.strm.output=t,this.strm.next_out=u,this.flush=N,!B){if(this._process(),this._checkError())return this._afterSync();return}var W0=this;return process.nextTick(function(){W0._process(),W0._after()}),this},k.prototype._afterSync=function(){var B=this.strm.avail_out,N=this.strm.avail_in;return this.write_in_progress=!1,[N,B]},k.prototype._process=function(){var B=null;switch(this.mode){case Y.DEFLATE:case Y.GZIP:case Y.DEFLATERAW:this.err=b.deflate(this.strm,this.flush);break;case Y.UNZIP:if(this.strm.avail_in>0)B=this.strm.next_in;switch(this.gzip_id_bytes_read){case 0:if(B===null)break;if(this.strm.input[B]===w){if(this.gzip_id_bytes_read=1,B++,this.strm.avail_in===1)break}else{this.mode=Y.INFLATE;break}case 1:if(B===null)break;if(this.strm.input[B]===v)this.gzip_id_bytes_read=2,this.mode=Y.GUNZIP;else this.mode=Y.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case Y.INFLATE:case Y.GUNZIP:case Y.INFLATERAW:if(this.err=L.inflate(this.strm,this.flush),this.err===Y.Z_NEED_DICT&&this.dictionary){if(this.err=L.inflateSetDictionary(this.strm,this.dictionary),this.err===Y.Z_OK)this.err=L.inflate(this.strm,this.flush);else if(this.err===Y.Z_DATA_ERROR)this.err=Y.Z_NEED_DICT}while(this.strm.avail_in>0&&this.mode===Y.GUNZIP&&this.err===Y.Z_STREAM_END&&this.strm.next_in[0]!==0)this.reset(),this.err=L.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},k.prototype._checkError=function(){switch(this.err){case Y.Z_OK:case Y.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===Y.Z_FINISH)return this._error("unexpected end of file"),!1;break;case Y.Z_STREAM_END:break;case Y.Z_NEED_DICT:if(this.dictionary==null)this._error("Missing dictionary");else this._error("Bad dictionary");return!1;default:return this._error("Zlib error"),!1}return!0},k.prototype._after=function(){if(!this._checkError())return;var B=this.strm.avail_out,N=this.strm.avail_in;if(this.write_in_progress=!1,this.callback(N,B),this.pending_close)this.close()},k.prototype._error=function(B){if(this.strm.msg)B=this.strm.msg;if(this.onerror(B,this.err),this.write_in_progress=!1,this.pending_close)this.close()},k.prototype.init=function(B,N,y,m,p){R0(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),R0(B>=8&&B<=15,"invalid windowBits"),R0(N>=-1&&N<=9,"invalid compression level"),R0(y>=1&&y<=9,"invalid memlevel"),R0(m===Y.Z_FILTERED||m===Y.Z_HUFFMAN_ONLY||m===Y.Z_RLE||m===Y.Z_FIXED||m===Y.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(N,B,y,m,p),this._setDictionary()},k.prototype.params=function(){throw new Error("deflateParams Not supported")},k.prototype.reset=function(){this._reset(),this._setDictionary()},k.prototype._init=function(B,N,y,m,p){if(this.level=B,this.windowBits=N,this.memLevel=y,this.strategy=m,this.flush=Y.Z_NO_FLUSH,this.err=Y.Z_OK,this.mode===Y.GZIP||this.mode===Y.GUNZIP)this.windowBits+=16;if(this.mode===Y.UNZIP)this.windowBits+=32;if(this.mode===Y.DEFLATERAW||this.mode===Y.INFLATERAW)this.windowBits=-1*this.windowBits;switch(this.strm=new g,this.mode){case Y.DEFLATE:case Y.GZIP:case Y.DEFLATERAW:this.err=b.deflateInit2(this.strm,this.level,Y.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case Y.INFLATE:case Y.GUNZIP:case Y.INFLATERAW:case Y.UNZIP:this.err=L.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}if(this.err!==Y.Z_OK)this._error("Init error");this.dictionary=p,this.write_in_progress=!1,this.init_done=!0},k.prototype._setDictionary=function(){if(this.dictionary==null)return;switch(this.err=Y.Z_OK,this.mode){case Y.DEFLATE:case Y.DEFLATERAW:this.err=b.deflateSetDictionary(this.strm,this.dictionary);break;default:break}if(this.err!==Y.Z_OK)this._error("Failed to set dictionary")},k.prototype._reset=function(){switch(this.err=Y.Z_OK,this.mode){case Y.DEFLATE:case Y.DEFLATERAW:case Y.GZIP:this.err=b.deflateReset(this.strm);break;case Y.INFLATE:case Y.INFLATERAW:case Y.GUNZIP:this.err=L.inflateReset(this.strm);break;default:break}if(this.err!==Y.Z_OK)this._error("Failed to reset stream")},Y.Zlib=k}}),c1=A0({"node_modules/browserify-zlib/lib/index.js"(Y){var g=o0.Buffer,b=s0.Transform,L=m1(),n=W1,C=t0.ok,w=o0.kMaxLength,v="Cannot create final Buffer. It would be larger than 0x"+w.toString(16)+" bytes";L.Z_MIN_WINDOWBITS=8,L.Z_MAX_WINDOWBITS=15,L.Z_DEFAULT_WINDOWBITS=15,L.Z_MIN_CHUNK=64,L.Z_MAX_CHUNK=Infinity,L.Z_DEFAULT_CHUNK=16384,L.Z_MIN_MEMLEVEL=1,L.Z_MAX_MEMLEVEL=9,L.Z_DEFAULT_MEMLEVEL=8,L.Z_MIN_LEVEL=-1,L.Z_MAX_LEVEL=9,L.Z_DEFAULT_LEVEL=L.Z_DEFAULT_COMPRESSION;var k=Object.keys(L);for(N=0;N<k.length;N++)if(B=k[N],B.match(/^Z/))Object.defineProperty(Y,B,{enumerable:!0,value:L[B],writable:!1});var B,N,y={Z_OK:L.Z_OK,Z_STREAM_END:L.Z_STREAM_END,Z_NEED_DICT:L.Z_NEED_DICT,Z_ERRNO:L.Z_ERRNO,Z_STREAM_ERROR:L.Z_STREAM_ERROR,Z_DATA_ERROR:L.Z_DATA_ERROR,Z_MEM_ERROR:L.Z_MEM_ERROR,Z_BUF_ERROR:L.Z_BUF_ERROR,Z_VERSION_ERROR:L.Z_VERSION_ERROR},m=Object.keys(y);for(t=0;t<m.length;t++)p=m[t],y[y[p]]=p;var p,t;Object.defineProperty(Y,"codes",{enumerable:!0,value:Object.freeze(y),writable:!1}),Y.constants=V1(),Y.Deflate=W0,Y.Inflate=E,Y.Gzip=S,Y.Gunzip=J0,Y.DeflateRaw=G0,Y.InflateRaw=F0,Y.Unzip=f,Y.createDeflate=function(j){return new W0(j)},Y.createInflate=function(j){return new E(j)},Y.createDeflateRaw=function(j){return new G0(j)},Y.createInflateRaw=function(j){return new F0(j)},Y.createGzip=function(j){return new S(j)},Y.createGunzip=function(j){return new J0(j)},Y.createUnzip=function(j){return new f(j)},Y.deflate=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new W0(K),j,O)},Y.deflateSync=function(j,K){return s(new W0(K),j)},Y.gzip=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new S(K),j,O)},Y.gzipSync=function(j,K){return s(new S(K),j)},Y.deflateRaw=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new G0(K),j,O)},Y.deflateRawSync=function(j,K){return s(new G0(K),j)},Y.unzip=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new f(K),j,O)},Y.unzipSync=function(j,K){return s(new f(K),j)},Y.inflate=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new E(K),j,O)},Y.inflateSync=function(j,K){return s(new E(K),j)},Y.gunzip=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new J0(K),j,O)},Y.gunzipSync=function(j,K){return s(new J0(K),j)},Y.inflateRaw=function(j,K,O){if(typeof K==="function")O=K,K={};return u(new F0(K),j,O)},Y.inflateRawSync=function(j,K){return s(new F0(K),j)};function u(j,K,O){var I=[],c=0;j.on("error",D),j.on("end",Q0),j.end(K),l();function l(){var i;while((i=j.read())!==null)I.push(i),c+=i.length;j.once("readable",l)}function D(i){j.removeListener("end",Q0),j.removeListener("readable",l),O(i)}function Q0(){var i,H0=null;if(c>=w)H0=new RangeError(v);else i=g.concat(I,c);I=[],j.close(),O(H0,i)}}function s(j,K){if(typeof K==="string")K=g.from(K);if(!g.isBuffer(K))throw new TypeError("Not a string or buffer");var O=j._finishFlushFlag;return j._processChunk(K,O)}function W0(j){if(!(this instanceof W0))return new W0(j);z.call(this,j,L.DEFLATE)}function E(j){if(!(this instanceof E))return new E(j);z.call(this,j,L.INFLATE)}function S(j){if(!(this instanceof S))return new S(j);z.call(this,j,L.GZIP)}function J0(j){if(!(this instanceof J0))return new J0(j);z.call(this,j,L.GUNZIP)}function G0(j){if(!(this instanceof G0))return new G0(j);z.call(this,j,L.DEFLATERAW)}function F0(j){if(!(this instanceof F0))return new F0(j);z.call(this,j,L.INFLATERAW)}function f(j){if(!(this instanceof f))return new f(j);z.call(this,j,L.UNZIP)}function d(j){return j===L.Z_NO_FLUSH||j===L.Z_PARTIAL_FLUSH||j===L.Z_SYNC_FLUSH||j===L.Z_FULL_FLUSH||j===L.Z_FINISH||j===L.Z_BLOCK}function z(j,K){var O=this;if(this._opts=j=j||{},this._chunkSize=j.chunkSize||Y.Z_DEFAULT_CHUNK,b.call(this,j),j.flush&&!d(j.flush))throw new Error("Invalid flush flag: "+j.flush);if(j.finishFlush&&!d(j.finishFlush))throw new Error("Invalid flush flag: "+j.finishFlush);if(this._flushFlag=j.flush||L.Z_NO_FLUSH,this._finishFlushFlag=typeof j.finishFlush!=="undefined"?j.finishFlush:L.Z_FINISH,j.chunkSize){if(j.chunkSize<Y.Z_MIN_CHUNK||j.chunkSize>Y.Z_MAX_CHUNK)throw new Error("Invalid chunk size: "+j.chunkSize)}if(j.windowBits){if(j.windowBits<Y.Z_MIN_WINDOWBITS||j.windowBits>Y.Z_MAX_WINDOWBITS)throw new Error("Invalid windowBits: "+j.windowBits)}if(j.level){if(j.level<Y.Z_MIN_LEVEL||j.level>Y.Z_MAX_LEVEL)throw new Error("Invalid compression level: "+j.level)}if(j.memLevel){if(j.memLevel<Y.Z_MIN_MEMLEVEL||j.memLevel>Y.Z_MAX_MEMLEVEL)throw new Error("Invalid memLevel: "+j.memLevel)}if(j.strategy){if(j.strategy!=Y.Z_FILTERED&&j.strategy!=Y.Z_HUFFMAN_ONLY&&j.strategy!=Y.Z_RLE&&j.strategy!=Y.Z_FIXED&&j.strategy!=Y.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+j.strategy)}if(j.dictionary){if(!g.isBuffer(j.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance")}this._handle=new L.Zlib(K);var I=this;this._hadError=!1,this._handle.onerror=function(D,Q0){h(I),I._hadError=!0;var i=new Error(D);i.errno=Q0,i.code=Y.codes[Q0],I.emit("error",i)};var c=Y.Z_DEFAULT_COMPRESSION;if(typeof j.level==="number")c=j.level;var l=Y.Z_DEFAULT_STRATEGY;if(typeof j.strategy==="number")l=j.strategy;this._handle.init(j.windowBits||Y.Z_DEFAULT_WINDOWBITS,c,j.memLevel||Y.Z_DEFAULT_MEMLEVEL,l,j.dictionary),this._buffer=g.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!O._handle},configurable:!0,enumerable:!0})}n.inherits(z,b),z.prototype.params=function(j,K,O){if(j<Y.Z_MIN_LEVEL||j>Y.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+j);if(K!=Y.Z_FILTERED&&K!=Y.Z_HUFFMAN_ONLY&&K!=Y.Z_RLE&&K!=Y.Z_FIXED&&K!=Y.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+K);if(this._level!==j||this._strategy!==K){var I=this;this.flush(L.Z_SYNC_FLUSH,function(){if(C(I._handle,"zlib binding closed"),I._handle.params(j,K),!I._hadError){if(I._level=j,I._strategy=K,O)O()}})}else process.nextTick(O)},z.prototype.reset=function(){return C(this._handle,"zlib binding closed"),this._handle.reset()},z.prototype._flush=function(j){this._transform(g.alloc(0),"",j)},z.prototype.flush=function(j,K){var O=this,I=this._writableState;if(typeof j==="function"||j===void 0&&!K)K=j,j=L.Z_FULL_FLUSH;if(I.ended){if(K)process.nextTick(K)}else if(I.ending){if(K)this.once("end",K)}else if(I.needDrain){if(K)this.once("drain",function(){return O.flush(j,K)})}else this._flushFlag=j,this.write(g.alloc(0),"",K)},z.prototype.close=function(j){h(this,j),process.nextTick(V0,this)};function h(j,K){if(K)process.nextTick(K);if(!j._handle)return;j._handle.close(),j._handle=null}function V0(j){j.emit("close")}z.prototype._transform=function(j,K,O){var I,c=this._writableState,l=c.ending||c.ended,D=l&&(!j||c.length===j.length);if(j!==null&&!g.isBuffer(j))return O(new Error("invalid input"));if(!this._handle)return O(new Error("zlib binding closed"));if(D)I=this._finishFlushFlag;else if(I=this._flushFlag,j.length>=c.length)this._flushFlag=this._opts.flush||L.Z_NO_FLUSH;this._processChunk(j,I,O)},z.prototype._processChunk=function(j,K,O){var I=j&&j.length,c=this._chunkSize-this._offset,l=0,D=this,Q0=typeof O==="function";if(!Q0){var i=[],H0=0,N0;this.on("error",function(a){N0=a}),C(this._handle,"zlib binding closed");do var I0=this._handle.writeSync(K,j,l,I,this._buffer,this._offset,c);while(!this._hadError&&U0(I0[0],I0[1]));if(this._hadError)throw N0;if(H0>=w)throw h(this),new RangeError(v);var K0=g.concat(i,H0);return h(this),K0}C(this._handle,"zlib binding closed");var X0=this._handle.write(K,j,l,I,this._buffer,this._offset,c);X0.buffer=j,X0.callback=U0;function U0(a,Y0){if(this)this.buffer=null,this.callback=null;if(D._hadError)return;var r=c-Y0;if(C(r>=0,"have should not go down"),r>0){var z0=D._buffer.slice(D._offset,D._offset+r);if(D._offset+=r,Q0)D.push(z0);else i.push(z0),H0+=z0.length}if(Y0===0||D._offset>=D._chunkSize)c=D._chunkSize,D._offset=0,D._buffer=g.allocUnsafe(D._chunkSize);if(Y0===0){if(l+=I-a,I=a,!Q0)return!0;var Z0=D._handle.write(K,j,l,I,D._buffer,D._offset,D._chunkSize);Z0.callback=U0,Z0.buffer=j;return}if(!Q0)return!1;O()}},n.inherits(W0,z),n.inherits(E,z),n.inherits(S,z),n.inherits(J0,z),n.inherits(G0,z),n.inherits(F0,z),n.inherits(f,z)}}),$0=c1();$0[Symbol.for("CommonJS")]=0;var _1=$0;j1=$0.Deflate;J1=$0.Inflate;Y1=$0.Gzip;G1=$0.Gunzip;q1=$0.DeflateRaw;X1=$0.InflateRaw;U1=$0.Unzip;P1=$0.createDeflate;K1=$0.createInflate;F1=$0.createDeflateRaw;H1=$0.createInflateRaw;z1=$0.createGzip;Z1=$0.createGunzip;L1=$0.createUnzip;C1=$0.deflate;N1=$0.deflateSync;I1=$0.gzip;O1=$0.gzipSync;B1=$0.deflateRaw;D1=$0.deflateRawSync;M1=$0.unzip;k1=$0.unzipSync;v1=$0.inflate;R1=$0.inflateSync;A1=$0.gunzip;g1=$0.gunzipSync;w1=$0.inflateRaw;T1=$0.inflateRawSync;S1=$0.constants;export{k1 as unzipSync,M1 as unzip,R1 as inflateSync,T1 as inflateRawSync,w1 as inflateRaw,v1 as inflate,O1 as gzipSync,I1 as gzip,g1 as gunzipSync,A1 as gunzip,N1 as deflateSync,D1 as deflateRawSync,B1 as deflateRaw,C1 as deflate,_1 as default,L1 as createUnzip,H1 as createInflateRaw,K1 as createInflate,z1 as createGzip,Z1 as createGunzip,F1 as createDeflateRaw,P1 as createDeflate,S1 as constants,U1 as Unzip,X1 as InflateRaw,J1 as Inflate,Y1 as Gzip,G1 as Gunzip,q1 as DeflateRaw,j1 as Deflate};