@stacksjs/slug 0.70.56 → 0.70.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -18
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
var{defineProperty:fZ,getOwnPropertyNames:_Y,getOwnPropertyDescriptor:BY}=Object,xY=Object.prototype.hasOwnProperty;function NY(G){return this[G]}var l0=(G)=>{var $=(NX??=new WeakMap).get(G),W;if($)return $;if($=fZ({},"__esModule",{value:!0}),G&&typeof G==="object"||typeof G==="function"){for(var C of _Y(G))if(!xY.call($,C))fZ($,C,{get:NY.bind(G,C),enumerable:!(W=BY(G,C))||W.enumerable})}return NX.set(G,$),$},NX,gY=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports);var wY=(G)=>G;function yY(G,$){this[G]=wY.bind(null,$)}var OZ=(G,$)=>{for(var W in $)fZ(G,W,{get:$[W],enumerable:!0,configurable:!0,set:yY.bind($,W)})};var WZ=(G,$)=>()=>(G&&($=G(G=0)),$);var fY=((G)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(G,{get:($,W)=>(typeof require<"u"?require:$)[W]}):G)(function(G){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+G+'" is not supported')});var CU={};OZ(CU,{transcode:()=>MJ,resolveObjectURL:()=>zJ,kStringMaxLength:()=>bX,kMaxLength:()=>rU,isUtf8:()=>LJ,isAscii:()=>EJ,default:()=>RJ,constants:()=>mY,btoa:()=>dY,atob:()=>lY,INSPECT_MAX_BYTES:()=>uX,File:()=>oY,Buffer:()=>L0,Blob:()=>nY});function cY(G){var $=G.length;if($%4>0)throw Error("Invalid string. Length must be a multiple of 4");var W=G.indexOf("=");if(W===-1)W=$;var C=W===$?0:4-W%4;return[W,C]}function pY(G,$){return(G+$)*3/4-$}function hY(G){var $,W=cY(G),C=W[0],F=W[1],R=new Uint8Array(pY(C,F)),V=0,z=F>0?C-4:C,k;for(k=0;k<z;k+=4)$=kU[G.charCodeAt(k)]<<18|kU[G.charCodeAt(k+1)]<<12|kU[G.charCodeAt(k+2)]<<6|kU[G.charCodeAt(k+3)],R[V++]=$>>16&255,R[V++]=$>>8&255,R[V++]=$&255;if(F===2)$=kU[G.charCodeAt(k)]<<2|kU[G.charCodeAt(k+1)]>>4,R[V++]=$&255;if(F===1)$=kU[G.charCodeAt(k)]<<10|kU[G.charCodeAt(k+1)]<<4|kU[G.charCodeAt(k+2)]>>2,R[V++]=$>>8&255,R[V++]=$&255;return R}function uY(G){return vU[G>>18&63]+vU[G>>12&63]+vU[G>>6&63]+vU[G&63]}function bY(G,$,W){var C,F=[];for(var R=$;R<W;R+=3)C=(G[R]<<16&16711680)+(G[R+1]<<8&65280)+(G[R+2]&255),F.push(uY(C));return F.join("")}function wX(G){var $,W=G.length,C=W%3,F=[],R=16383;for(var V=0,z=W-C;V<z;V+=R)F.push(bY(G,V,V+R>z?z:V+R));if(C===1)$=G[W-1],F.push(vU[$>>2]+vU[$<<4&63]+"==");else if(C===2)$=(G[W-2]<<8)+G[W-1],F.push(vU[$>>10]+vU[$>>4&63]+vU[$<<2&63]+"=");return F.join("")}function HZ(G,$,W,C,F){var R,V,z=F*8-C-1,k=(1<<z)-1,L=k>>1,E=-7,A=W?F-1:0,D=W?-1:1,P=G[$+A];A+=D,R=P&(1<<-E)-1,P>>=-E,E+=z;for(;E>0;R=R*256+G[$+A],A+=D,E-=8);V=R&(1<<-E)-1,R>>=-E,E+=C;for(;E>0;V=V*256+G[$+A],A+=D,E-=8);if(R===0)R=1-L;else if(R===k)return V?NaN:(P?-1:1)*(1/0);else V=V+Math.pow(2,C),R=R-L;return(P?-1:1)*V*Math.pow(2,R-C)}function hX(G,$,W,C,F,R){var V,z,k,L=R*8-F-1,E=(1<<L)-1,A=E>>1,D=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=C?0:R-1,q=C?1:-1,_=$<0||$===0&&1/$<0?1:0;if($=Math.abs($),isNaN($)||$===1/0)z=isNaN($)?1:0,V=E;else{if(V=Math.floor(Math.log($)/Math.LN2),$*(k=Math.pow(2,-V))<1)V--,k*=2;if(V+A>=1)$+=D/k;else $+=D*Math.pow(2,1-A);if($*k>=2)V++,k/=2;if(V+A>=E)z=0,V=E;else if(V+A>=1)z=($*k-1)*Math.pow(2,F),V=V+A;else z=$*Math.pow(2,A-1)*Math.pow(2,F),V=0}for(;F>=8;G[W+P]=z&255,P+=q,z/=256,F-=8);V=V<<F|z,L+=F;for(;L>0;G[W+P]=V&255,P+=q,V/=256,L-=8);G[W+P-q]|=_*128}function xU(G){if(G>rU)throw RangeError('The value "'+G+'" is invalid for option "size"');let $=new Uint8Array(G);return Object.setPrototypeOf($,L0.prototype),$}function dZ(G,$,W){return class extends W{constructor(){super();Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${G}]`,this.stack,delete this.name}get code(){return G}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${G}]: ${this.message}`}}}function L0(G,$,W){if(typeof G==="number"){if(typeof $==="string")throw TypeError('The "string" argument must be of type string. Received type number');return lZ(G)}return dX(G,$,W)}function dX(G,$,W){if(typeof G==="string")return rY(G,$);if(ArrayBuffer.isView(G))return eY(G);if(G==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(_U(G,ArrayBuffer)||G&&_U(G.buffer,ArrayBuffer))return uZ(G,$,W);if(typeof SharedArrayBuffer<"u"&&(_U(G,SharedArrayBuffer)||G&&_U(G.buffer,SharedArrayBuffer)))return uZ(G,$,W);if(typeof G==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let C=G.valueOf&&G.valueOf();if(C!=null&&C!==G)return L0.from(C,$,W);let F=iY(G);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]==="function")return L0.from(G[Symbol.toPrimitive]("string"),$,W);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}function lX(G){if(typeof G!=="number")throw TypeError('"size" argument must be of type number');else if(G<0)throw RangeError('The value "'+G+'" is invalid for option "size"')}function aY(G,$,W){if(lX(G),G<=0)return xU(G);if($!==void 0)return typeof W==="string"?xU(G).fill($,W):xU(G).fill($);return xU(G)}function lZ(G){return lX(G),xU(G<0?0:oZ(G)|0)}function rY(G,$){if(typeof $!=="string"||$==="")$="utf8";if(!L0.isEncoding($))throw TypeError("Unknown encoding: "+$);let W=oX(G,$)|0,C=xU(W),F=C.write(G,$);if(F!==W)C=C.slice(0,F);return C}function hZ(G){let $=G.length<0?0:oZ(G.length)|0,W=xU($);for(let C=0;C<$;C+=1)W[C]=G[C]&255;return W}function eY(G){if(_U(G,Uint8Array)){let $=new Uint8Array(G);return uZ($.buffer,$.byteOffset,$.byteLength)}return hZ(G)}function uZ(G,$,W){if($<0||G.byteLength<$)throw RangeError('"offset" is outside of buffer bounds');if(G.byteLength<$+(W||0))throw RangeError('"length" is outside of buffer bounds');let C;if($===void 0&&W===void 0)C=new Uint8Array(G);else if(W===void 0)C=new Uint8Array(G,$);else C=new Uint8Array(G,$,W);return Object.setPrototypeOf(C,L0.prototype),C}function iY(G){if(L0.isBuffer(G)){let $=oZ(G.length)|0,W=xU($);if(W.length===0)return W;return G.copy(W,0,0,$),W}if(G.length!==void 0){if(typeof G.length!=="number"||Number.isNaN(G.length))return xU(0);return hZ(G)}if(G.type==="Buffer"&&Array.isArray(G.data))return hZ(G.data)}function oZ(G){if(G>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return G|0}function oX(G,$){if(L0.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||_U(G,ArrayBuffer))return G.byteLength;if(typeof G!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);let W=G.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&W===0)return 0;let F=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return bZ(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return UQ(G).length;default:if(F)return C?-1:bZ(G).length;$=(""+$).toLowerCase(),F=!0}}function UJ(G,$,W){let C=!1;if($===void 0||$<0)$=0;if($>this.length)return"";if(W===void 0||W>this.length)W=this.length;if(W<=0)return"";if(W>>>=0,$>>>=0,W<=$)return"";if(!G)G="utf8";while(!0)switch(G){case"hex":return KJ(this,$,W);case"utf8":case"utf-8":return mX(this,$,W);case"ascii":return IJ(this,$,W);case"latin1":case"binary":return $J(this,$,W);case"base64":return VJ(this,$,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return OJ(this,$,W);default:if(C)throw TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),C=!0}}function uU(G,$,W){let C=G[$];G[$]=G[W],G[W]=C}function nX(G,$,W,C,F){if(G.length===0)return-1;if(typeof W==="string")C=W,W=0;else if(W>2147483647)W=2147483647;else if(W<-2147483648)W=-2147483648;if(W=+W,Number.isNaN(W))W=F?0:G.length-1;if(W<0)W=G.length+W;if(W>=G.length)if(F)return-1;else W=G.length-1;else if(W<0)if(F)W=0;else return-1;if(typeof $==="string")$=L0.from($,C);if(L0.isBuffer($)){if($.length===0)return-1;return fX(G,$,W,C,F)}else if(typeof $==="number"){if($=$&255,typeof Uint8Array.prototype.indexOf==="function")if(F)return Uint8Array.prototype.indexOf.call(G,$,W);else return Uint8Array.prototype.lastIndexOf.call(G,$,W);return fX(G,[$],W,C,F)}throw TypeError("val must be string, number or Buffer")}function fX(G,$,W,C,F){let R=1,V=G.length,z=$.length;if(C!==void 0){if(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le"){if(G.length<2||$.length<2)return-1;R=2,V/=2,z/=2,W/=2}}function k(E,A){if(R===1)return E[A];else return E.readUInt16BE(A*R)}let L;if(F){let E=-1;for(L=W;L<V;L++)if(k(G,L)===k($,E===-1?0:L-E)){if(E===-1)E=L;if(L-E+1===z)return E*R}else{if(E!==-1)L-=L-E;E=-1}}else{if(W+z>V)W=V-z;for(L=W;L>=0;L--){let E=!0;for(let A=0;A<z;A++)if(k(G,L+A)!==k($,A)){E=!1;break}if(E)return L}}return-1}function ZJ(G,$,W,C){W=Number(W)||0;let F=G.length-W;if(!C)C=F;else if(C=Number(C),C>F)C=F;let R=$.length;if(C>R/2)C=R/2;let V;for(V=0;V<C;++V){let z=parseInt($.substr(V*2,2),16);if(Number.isNaN(z))return V;G[W+V]=z}return V}function XJ(G,$,W,C){return FZ(bZ($,G.length-W),G,W,C)}function QJ(G,$,W,C){return FZ(AJ($),G,W,C)}function YJ(G,$,W,C){return FZ(UQ($),G,W,C)}function JJ(G,$,W,C){return FZ(CJ($,G.length-W),G,W,C)}function VJ(G,$,W){if($===0&&W===G.length)return wX(G);else return wX(G.slice($,W))}function mX(G,$,W){W=Math.min(G.length,W);let C=[],F=$;while(F<W){let R=G[F],V=null,z=R>239?4:R>223?3:R>191?2:1;if(F+z<=W){let k,L,E,A;switch(z){case 1:if(R<128)V=R;break;case 2:if(k=G[F+1],(k&192)===128){if(A=(R&31)<<6|k&63,A>127)V=A}break;case 3:if(k=G[F+1],L=G[F+2],(k&192)===128&&(L&192)===128){if(A=(R&15)<<12|(k&63)<<6|L&63,A>2047&&(A<55296||A>57343))V=A}break;case 4:if(k=G[F+1],L=G[F+2],E=G[F+3],(k&192)===128&&(L&192)===128&&(E&192)===128){if(A=(R&15)<<18|(k&63)<<12|(L&63)<<6|E&63,A>65535&&A<1114112)V=A}}}if(V===null)V=65533,z=1;else if(V>65535)V-=65536,C.push(V>>>10&1023|55296),V=56320|V&1023;C.push(V),F+=z}return GJ(C)}function GJ(G){let $=G.length;if($<=cX)return String.fromCharCode.apply(String,G);let W="",C=0;while(C<$)W+=String.fromCharCode.apply(String,G.slice(C,C+=cX));return W}function IJ(G,$,W){let C="";W=Math.min(G.length,W);for(let F=$;F<W;++F)C+=String.fromCharCode(G[F]&127);return C}function $J(G,$,W){let C="";W=Math.min(G.length,W);for(let F=$;F<W;++F)C+=String.fromCharCode(G[F]);return C}function KJ(G,$,W){let C=G.length;if(!$||$<0)$=0;if(!W||W<0||W>C)W=C;let F="";for(let R=$;R<W;++R)F+=TJ[G[R]];return F}function OJ(G,$,W){let C=G.slice($,W),F="";for(let R=0;R<C.length-1;R+=2)F+=String.fromCharCode(C[R]+C[R+1]*256);return F}function AU(G,$,W){if(G%1!==0||G<0)throw RangeError("offset is not uint");if(G+$>W)throw RangeError("Trying to access beyond buffer length")}function MU(G,$,W,C,F,R){if(!L0.isBuffer(G))throw TypeError('"buffer" argument must be a Buffer instance');if($>F||$<R)throw RangeError('"value" argument is out of bounds');if(W+C>G.length)throw RangeError("Index out of range")}function sX(G,$,W,C,F){iX($,C,F,G,W,7);let R=Number($&BigInt(4294967295));G[W++]=R,R=R>>8,G[W++]=R,R=R>>8,G[W++]=R,R=R>>8,G[W++]=R;let V=Number($>>BigInt(32)&BigInt(4294967295));return G[W++]=V,V=V>>8,G[W++]=V,V=V>>8,G[W++]=V,V=V>>8,G[W++]=V,W}function tX(G,$,W,C,F){iX($,C,F,G,W,7);let R=Number($&BigInt(4294967295));G[W+7]=R,R=R>>8,G[W+6]=R,R=R>>8,G[W+5]=R,R=R>>8,G[W+4]=R;let V=Number($>>BigInt(32)&BigInt(4294967295));return G[W+3]=V,V=V>>8,G[W+2]=V,V=V>>8,G[W+1]=V,V=V>>8,G[W]=V,W+8}function aX(G,$,W,C,F,R){if(W+C>G.length)throw RangeError("Index out of range");if(W<0)throw RangeError("Index out of range")}function rX(G,$,W,C,F){if($=+$,W=W>>>0,!F)aX(G,$,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return hX(G,$,W,C,23,4),W+4}function eX(G,$,W,C,F){if($=+$,W=W>>>0,!F)aX(G,$,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return hX(G,$,W,C,52,8),W+8}function pX(G){let $="",W=G.length,C=G[0]==="-"?1:0;for(;W>=C+4;W-=3)$=`_${G.slice(W-3,W)}${$}`;return`${G.slice(0,W)}${$}`}function WJ(G,$,W){if(nU($,"offset"),G[$]===void 0||G[$+W]===void 0)eU($,G.length-(W+1))}function iX(G,$,W,C,F,R){if(G>W||G<$){let V=typeof $==="bigint"?"n":"",z;if(R>3)if($===0||$===BigInt(0))z=`>= 0${V} and < 2${V} ** ${(R+1)*8}${V}`;else z=`>= -(2${V} ** ${(R+1)*8-1}${V}) and < 2 ** ${(R+1)*8-1}${V}`;else z=`>= ${$}${V} and <= ${W}${V}`;throw new pZ("value",z,G)}WJ(C,F,R)}function nU(G,$){if(typeof G!=="number")throw new tY($,"number",G)}function eU(G,$,W){if(Math.floor(G)!==G)throw nU(G,W),new pZ(W||"offset","an integer",G);if($<0)throw new sY;throw new pZ(W||"offset",`>= ${W?1:0} and <= ${$}`,G)}function FJ(G){if(G=G.split("=")[0],G=G.trim().replace(HJ,""),G.length<2)return"";while(G.length%4!==0)G=G+"=";return G}function bZ(G,$){$=$||1/0;let W,C=G.length,F=null,R=[];for(let V=0;V<C;++V){if(W=G.charCodeAt(V),W>55295&&W<57344){if(!F){if(W>56319){if(($-=3)>-1)R.push(239,191,189);continue}else if(V+1===C){if(($-=3)>-1)R.push(239,191,189);continue}F=W;continue}if(W<56320){if(($-=3)>-1)R.push(239,191,189);F=W;continue}W=(F-55296<<10|W-56320)+65536}else if(F){if(($-=3)>-1)R.push(239,191,189)}if(F=null,W<128){if(($-=1)<0)break;R.push(W)}else if(W<2048){if(($-=2)<0)break;R.push(W>>6|192,W&63|128)}else if(W<65536){if(($-=3)<0)break;R.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if(($-=4)<0)break;R.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw Error("Invalid code point")}return R}function AJ(G){let $=[];for(let W=0;W<G.length;++W)$.push(G.charCodeAt(W)&255);return $}function CJ(G,$){let W,C,F,R=[];for(let V=0;V<G.length;++V){if(($-=2)<0)break;W=G.charCodeAt(V),C=W>>8,F=W%256,R.push(F),R.push(C)}return R}function UQ(G){return hY(FJ(G))}function FZ(G,$,W,C){let F;for(F=0;F<C;++F){if(F+W>=$.length||F>=G.length)break;$[F+W]=G[F]}return F}function _U(G,$){return G instanceof $||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===$.name}function yU(G){return typeof BigInt>"u"?DJ:G}function DJ(){throw Error("BigInt not supported")}function nZ(G){return()=>{throw Error(G+" is not implemented for node:buffer browser polyfill")}}var vU,kU,cZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hU,gX,yX,uX=50,rU=2147483647,bX=536870888,dY,lY,oY,nY,mY,sY,tY,pZ,cX=4096,HJ,TJ,zJ,LJ,EJ=(G)=>{for(let $ of G)if($.charCodeAt(0)>127)return!1;return!0},MJ,RJ;var TU=WZ(()=>{vU=[],kU=[];for(hU=0,gX=cZ.length;hU<gX;++hU)vU[hU]=cZ[hU],kU[cZ.charCodeAt(hU)]=hU;kU[45]=62;kU[95]=63;yX=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,dY=globalThis.btoa,lY=globalThis.atob,oY=globalThis.File,nY=globalThis.Blob,mY={MAX_LENGTH:rU,MAX_STRING_LENGTH:bX};sY=dZ("ERR_BUFFER_OUT_OF_BOUNDS",function(G){if(G)return`${G} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),tY=dZ("ERR_INVALID_ARG_TYPE",function(G,$){return`The "${G}" argument must be of type number. Received type ${typeof $}`},TypeError),pZ=dZ("ERR_OUT_OF_RANGE",function(G,$,W){let C=`The value of "${G}" is out of range.`,F=W;if(Number.isInteger(W)&&Math.abs(W)>4294967296)F=pX(String(W));else if(typeof W==="bigint"){if(F=String(W),W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))F=pX(F);F+="n"}return C+=` It must be ${$}. Received ${F}`,C},RangeError);Object.defineProperty(L0.prototype,"parent",{enumerable:!0,get:function(){if(!L0.isBuffer(this))return;return this.buffer}});Object.defineProperty(L0.prototype,"offset",{enumerable:!0,get:function(){if(!L0.isBuffer(this))return;return this.byteOffset}});L0.poolSize=8192;L0.from=function(G,$,W){return dX(G,$,W)};Object.setPrototypeOf(L0.prototype,Uint8Array.prototype);Object.setPrototypeOf(L0,Uint8Array);L0.alloc=function(G,$,W){return aY(G,$,W)};L0.allocUnsafe=function(G){return lZ(G)};L0.allocUnsafeSlow=function(G){return lZ(G)};L0.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==L0.prototype};L0.compare=function(G,$){if(_U(G,Uint8Array))G=L0.from(G,G.offset,G.byteLength);if(_U($,Uint8Array))$=L0.from($,$.offset,$.byteLength);if(!L0.isBuffer(G)||!L0.isBuffer($))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===$)return 0;let W=G.length,C=$.length;for(let F=0,R=Math.min(W,C);F<R;++F)if(G[F]!==$[F]){W=G[F],C=$[F];break}if(W<C)return-1;if(C<W)return 1;return 0};L0.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};L0.concat=function(G,$){if(!Array.isArray(G))throw TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return L0.alloc(0);let W;if($===void 0){$=0;for(W=0;W<G.length;++W)$+=G[W].length}let C=L0.allocUnsafe($),F=0;for(W=0;W<G.length;++W){let R=G[W];if(_U(R,Uint8Array))if(F+R.length>C.length){if(!L0.isBuffer(R))R=L0.from(R);R.copy(C,F)}else Uint8Array.prototype.set.call(C,R,F);else if(!L0.isBuffer(R))throw TypeError('"list" argument must be an Array of Buffers');else R.copy(C,F);F+=R.length}return C};L0.byteLength=oX;L0.prototype._isBuffer=!0;L0.prototype.swap16=function(){let G=this.length;if(G%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<G;$+=2)uU(this,$,$+1);return this};L0.prototype.swap32=function(){let G=this.length;if(G%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<G;$+=4)uU(this,$,$+3),uU(this,$+1,$+2);return this};L0.prototype.swap64=function(){let G=this.length;if(G%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<G;$+=8)uU(this,$,$+7),uU(this,$+1,$+6),uU(this,$+2,$+5),uU(this,$+3,$+4);return this};L0.prototype.toString=function(){let G=this.length;if(G===0)return"";if(arguments.length===0)return mX(this,0,G);return UJ.apply(this,arguments)};L0.prototype.toLocaleString=L0.prototype.toString;L0.prototype.equals=function(G){if(!L0.isBuffer(G))throw TypeError("Argument must be a Buffer");if(this===G)return!0;return L0.compare(this,G)===0};L0.prototype.inspect=function(){let G="",$=uX;if(G=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$)G+=" ... ";return"<Buffer "+G+">"};if(yX)L0.prototype[yX]=L0.prototype.inspect;L0.prototype.compare=function(G,$,W,C,F){if(_U(G,Uint8Array))G=L0.from(G,G.offset,G.byteLength);if(!L0.isBuffer(G))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if($===void 0)$=0;if(W===void 0)W=G?G.length:0;if(C===void 0)C=0;if(F===void 0)F=this.length;if($<0||W>G.length||C<0||F>this.length)throw RangeError("out of range index");if(C>=F&&$>=W)return 0;if(C>=F)return-1;if($>=W)return 1;if($>>>=0,W>>>=0,C>>>=0,F>>>=0,this===G)return 0;let R=F-C,V=W-$,z=Math.min(R,V),k=this.slice(C,F),L=G.slice($,W);for(let E=0;E<z;++E)if(k[E]!==L[E]){R=k[E],V=L[E];break}if(R<V)return-1;if(V<R)return 1;return 0};L0.prototype.includes=function(G,$,W){return this.indexOf(G,$,W)!==-1};L0.prototype.indexOf=function(G,$,W){return nX(this,G,$,W,!0)};L0.prototype.lastIndexOf=function(G,$,W){return nX(this,G,$,W,!1)};L0.prototype.write=function(G,$,W,C){if($===void 0)C="utf8",W=this.length,$=0;else if(W===void 0&&typeof $==="string")C=$,W=this.length,$=0;else if(isFinite($))if($=$>>>0,isFinite(W)){if(W=W>>>0,C===void 0)C="utf8"}else C=W,W=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let F=this.length-$;if(W===void 0||W>F)W=F;if(G.length>0&&(W<0||$<0)||$>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!C)C="utf8";let R=!1;for(;;)switch(C){case"hex":return ZJ(this,G,$,W);case"utf8":case"utf-8":return XJ(this,G,$,W);case"ascii":case"latin1":case"binary":return QJ(this,G,$,W);case"base64":return YJ(this,G,$,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JJ(this,G,$,W);default:if(R)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),R=!0}};L0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};L0.prototype.slice=function(G,$){let W=this.length;if(G=~~G,$=$===void 0?W:~~$,G<0){if(G+=W,G<0)G=0}else if(G>W)G=W;if($<0){if($+=W,$<0)$=0}else if($>W)$=W;if($<G)$=G;let C=this.subarray(G,$);return Object.setPrototypeOf(C,L0.prototype),C};L0.prototype.readUintLE=L0.prototype.readUIntLE=function(G,$,W){if(G=G>>>0,$=$>>>0,!W)AU(G,$,this.length);let C=this[G],F=1,R=0;while(++R<$&&(F*=256))C+=this[G+R]*F;return C};L0.prototype.readUintBE=L0.prototype.readUIntBE=function(G,$,W){if(G=G>>>0,$=$>>>0,!W)AU(G,$,this.length);let C=this[G+--$],F=1;while($>0&&(F*=256))C+=this[G+--$]*F;return C};L0.prototype.readUint8=L0.prototype.readUInt8=function(G,$){if(G=G>>>0,!$)AU(G,1,this.length);return this[G]};L0.prototype.readUint16LE=L0.prototype.readUInt16LE=function(G,$){if(G=G>>>0,!$)AU(G,2,this.length);return this[G]|this[G+1]<<8};L0.prototype.readUint16BE=L0.prototype.readUInt16BE=function(G,$){if(G=G>>>0,!$)AU(G,2,this.length);return this[G]<<8|this[G+1]};L0.prototype.readUint32LE=L0.prototype.readUInt32LE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216};L0.prototype.readUint32BE=L0.prototype.readUInt32BE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])};L0.prototype.readBigUInt64LE=yU(function(G){G=G>>>0,nU(G,"offset");let $=this[G],W=this[G+7];if($===void 0||W===void 0)eU(G,this.length-8);let C=$+this[++G]*256+this[++G]*65536+this[++G]*16777216,F=this[++G]+this[++G]*256+this[++G]*65536+W*16777216;return BigInt(C)+(BigInt(F)<<BigInt(32))});L0.prototype.readBigUInt64BE=yU(function(G){G=G>>>0,nU(G,"offset");let $=this[G],W=this[G+7];if($===void 0||W===void 0)eU(G,this.length-8);let C=$*16777216+this[++G]*65536+this[++G]*256+this[++G],F=this[++G]*16777216+this[++G]*65536+this[++G]*256+W;return(BigInt(C)<<BigInt(32))+BigInt(F)});L0.prototype.readIntLE=function(G,$,W){if(G=G>>>0,$=$>>>0,!W)AU(G,$,this.length);let C=this[G],F=1,R=0;while(++R<$&&(F*=256))C+=this[G+R]*F;if(F*=128,C>=F)C-=Math.pow(2,8*$);return C};L0.prototype.readIntBE=function(G,$,W){if(G=G>>>0,$=$>>>0,!W)AU(G,$,this.length);let C=$,F=1,R=this[G+--C];while(C>0&&(F*=256))R+=this[G+--C]*F;if(F*=128,R>=F)R-=Math.pow(2,8*$);return R};L0.prototype.readInt8=function(G,$){if(G=G>>>0,!$)AU(G,1,this.length);if(!(this[G]&128))return this[G];return(255-this[G]+1)*-1};L0.prototype.readInt16LE=function(G,$){if(G=G>>>0,!$)AU(G,2,this.length);let W=this[G]|this[G+1]<<8;return W&32768?W|4294901760:W};L0.prototype.readInt16BE=function(G,$){if(G=G>>>0,!$)AU(G,2,this.length);let W=this[G+1]|this[G]<<8;return W&32768?W|4294901760:W};L0.prototype.readInt32LE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24};L0.prototype.readInt32BE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]};L0.prototype.readBigInt64LE=yU(function(G){G=G>>>0,nU(G,"offset");let $=this[G],W=this[G+7];if($===void 0||W===void 0)eU(G,this.length-8);let C=this[G+4]+this[G+5]*256+this[G+6]*65536+(W<<24);return(BigInt(C)<<BigInt(32))+BigInt($+this[++G]*256+this[++G]*65536+this[++G]*16777216)});L0.prototype.readBigInt64BE=yU(function(G){G=G>>>0,nU(G,"offset");let $=this[G],W=this[G+7];if($===void 0||W===void 0)eU(G,this.length-8);let C=($<<24)+this[++G]*65536+this[++G]*256+this[++G];return(BigInt(C)<<BigInt(32))+BigInt(this[++G]*16777216+this[++G]*65536+this[++G]*256+W)});L0.prototype.readFloatLE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return HZ(this,G,!0,23,4)};L0.prototype.readFloatBE=function(G,$){if(G=G>>>0,!$)AU(G,4,this.length);return HZ(this,G,!1,23,4)};L0.prototype.readDoubleLE=function(G,$){if(G=G>>>0,!$)AU(G,8,this.length);return HZ(this,G,!0,52,8)};L0.prototype.readDoubleBE=function(G,$){if(G=G>>>0,!$)AU(G,8,this.length);return HZ(this,G,!1,52,8)};L0.prototype.writeUintLE=L0.prototype.writeUIntLE=function(G,$,W,C){if(G=+G,$=$>>>0,W=W>>>0,!C){let V=Math.pow(2,8*W)-1;MU(this,G,$,W,V,0)}let F=1,R=0;this[$]=G&255;while(++R<W&&(F*=256))this[$+R]=G/F&255;return $+W};L0.prototype.writeUintBE=L0.prototype.writeUIntBE=function(G,$,W,C){if(G=+G,$=$>>>0,W=W>>>0,!C){let V=Math.pow(2,8*W)-1;MU(this,G,$,W,V,0)}let F=W-1,R=1;this[$+F]=G&255;while(--F>=0&&(R*=256))this[$+F]=G/R&255;return $+W};L0.prototype.writeUint8=L0.prototype.writeUInt8=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,1,255,0);return this[$]=G&255,$+1};L0.prototype.writeUint16LE=L0.prototype.writeUInt16LE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,2,65535,0);return this[$]=G&255,this[$+1]=G>>>8,$+2};L0.prototype.writeUint16BE=L0.prototype.writeUInt16BE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,2,65535,0);return this[$]=G>>>8,this[$+1]=G&255,$+2};L0.prototype.writeUint32LE=L0.prototype.writeUInt32LE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,4,4294967295,0);return this[$+3]=G>>>24,this[$+2]=G>>>16,this[$+1]=G>>>8,this[$]=G&255,$+4};L0.prototype.writeUint32BE=L0.prototype.writeUInt32BE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,4,4294967295,0);return this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255,$+4};L0.prototype.writeBigUInt64LE=yU(function(G,$=0){return sX(this,G,$,BigInt(0),BigInt("0xffffffffffffffff"))});L0.prototype.writeBigUInt64BE=yU(function(G,$=0){return tX(this,G,$,BigInt(0),BigInt("0xffffffffffffffff"))});L0.prototype.writeIntLE=function(G,$,W,C){if(G=+G,$=$>>>0,!C){let z=Math.pow(2,8*W-1);MU(this,G,$,W,z-1,-z)}let F=0,R=1,V=0;this[$]=G&255;while(++F<W&&(R*=256)){if(G<0&&V===0&&this[$+F-1]!==0)V=1;this[$+F]=(G/R>>0)-V&255}return $+W};L0.prototype.writeIntBE=function(G,$,W,C){if(G=+G,$=$>>>0,!C){let z=Math.pow(2,8*W-1);MU(this,G,$,W,z-1,-z)}let F=W-1,R=1,V=0;this[$+F]=G&255;while(--F>=0&&(R*=256)){if(G<0&&V===0&&this[$+F+1]!==0)V=1;this[$+F]=(G/R>>0)-V&255}return $+W};L0.prototype.writeInt8=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,1,127,-128);if(G<0)G=255+G+1;return this[$]=G&255,$+1};L0.prototype.writeInt16LE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,2,32767,-32768);return this[$]=G&255,this[$+1]=G>>>8,$+2};L0.prototype.writeInt16BE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,2,32767,-32768);return this[$]=G>>>8,this[$+1]=G&255,$+2};L0.prototype.writeInt32LE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,4,2147483647,-2147483648);return this[$]=G&255,this[$+1]=G>>>8,this[$+2]=G>>>16,this[$+3]=G>>>24,$+4};L0.prototype.writeInt32BE=function(G,$,W){if(G=+G,$=$>>>0,!W)MU(this,G,$,4,2147483647,-2147483648);if(G<0)G=4294967295+G+1;return this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255,$+4};L0.prototype.writeBigInt64LE=yU(function(G,$=0){return sX(this,G,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});L0.prototype.writeBigInt64BE=yU(function(G,$=0){return tX(this,G,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});L0.prototype.writeFloatLE=function(G,$,W){return rX(this,G,$,!0,W)};L0.prototype.writeFloatBE=function(G,$,W){return rX(this,G,$,!1,W)};L0.prototype.writeDoubleLE=function(G,$,W){return eX(this,G,$,!0,W)};L0.prototype.writeDoubleBE=function(G,$,W){return eX(this,G,$,!1,W)};L0.prototype.copy=function(G,$,W,C){if(!L0.isBuffer(G))throw TypeError("argument should be a Buffer");if(!W)W=0;if(!C&&C!==0)C=this.length;if($>=G.length)$=G.length;if(!$)$=0;if(C>0&&C<W)C=W;if(C===W)return 0;if(G.length===0||this.length===0)return 0;if($<0)throw RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");if(C>this.length)C=this.length;if(G.length-$<C-W)C=G.length-$+W;let F=C-W;if(this===G&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin($,W,C);else Uint8Array.prototype.set.call(G,this.subarray(W,C),$);return F};L0.prototype.fill=function(G,$,W,C){if(typeof G==="string"){if(typeof $==="string")C=$,$=0,W=this.length;else if(typeof W==="string")C=W,W=this.length;if(C!==void 0&&typeof C!=="string")throw TypeError("encoding must be a string");if(typeof C==="string"&&!L0.isEncoding(C))throw TypeError("Unknown encoding: "+C);if(G.length===1){let R=G.charCodeAt(0);if(C==="utf8"&&R<128||C==="latin1")G=R}}else if(typeof G==="number")G=G&255;else if(typeof G==="boolean")G=Number(G);if($<0||this.length<$||this.length<W)throw RangeError("Out of range index");if(W<=$)return this;if($=$>>>0,W=W===void 0?this.length:W>>>0,!G)G=0;let F;if(typeof G==="number")for(F=$;F<W;++F)this[F]=G;else{let R=L0.isBuffer(G)?G:L0.from(G,C),V=R.length;if(V===0)throw TypeError('The value "'+G+'" is invalid for argument "value"');for(F=0;F<W-$;++F)this[F+$]=R[F%V]}return this};HJ=/[^+/0-9A-Za-z-_]/g;TJ=function(){let G=Array(256);for(let $=0;$<16;++$){let W=$*16;for(let C=0;C<16;++C)G[W+C]="0123456789abcdef"[$]+"0123456789abcdef"[C]}return G}();zJ=nZ("resolveObjectURL"),LJ=nZ("isUtf8"),MJ=nZ("transcode"),RJ=L0});var KQ={};OZ(KQ,{types:()=>NJ,promisify:()=>VQ,log:()=>QQ,isUndefined:()=>mU,isSymbol:()=>wJ,isString:()=>LZ,isRegExp:()=>AZ,isPrimitive:()=>yJ,isObject:()=>sU,isNumber:()=>XQ,isNullOrUndefined:()=>gJ,isNull:()=>zZ,isFunction:()=>TZ,isError:()=>CZ,isDate:()=>aZ,isBuffer:()=>fJ,isBoolean:()=>eZ,isArray:()=>ZQ,inspect:()=>bU,inherits:()=>YQ,format:()=>rZ,deprecate:()=>qJ,default:()=>hJ,debuglog:()=>PJ,callbackifyOnRejected:()=>ZX,callbackify:()=>GQ,_extend:()=>UX,TextEncoder:()=>IQ,TextDecoder:()=>$Q});function rZ(G,...$){if(!LZ(G)){var W=[G];for(var C=0;C<$.length;C++)W.push(bU($[C]));return W.join(" ")}var C=0,F=$.length,R=String(G).replace(SJ,function(z){if(z==="%%")return"%";if(C>=F)return z;switch(z){case"%s":return String($[C++]);case"%d":return Number($[C++]);case"%j":try{return JSON.stringify($[C++])}catch(k){return"[Circular]"}default:return z}});for(var V=$[C];C<F;V=$[++C])if(zZ(V)||!sU(V))R+=" "+V;else R+=" "+bU(V);return R}function qJ(G,$){if(typeof process>"u"||process?.noDeprecation===!0)return G;var W=!1;function C(...F){if(!W){if(process.throwDeprecation)throw Error($);else if(process.traceDeprecation)console.trace($);else console.error($);W=!0}return G.apply(this,...F)}return C}function kJ(G,$){var W=bU.styles[$];if(W)return"\x1B["+bU.colors[W][0]+"m"+G+"\x1B["+bU.colors[W][1]+"m";else return G}function jJ(G,$){return G}function vJ(G){var $={};return G.forEach(function(W,C){$[W]=!0}),$}function DZ(G,$,W){if(G.customInspect&&$&&TZ($.inspect)&&$.inspect!==bU&&!($.constructor&&$.constructor.prototype===$)){var C=$.inspect(W,G);if(!LZ(C))C=DZ(G,C,W);return C}var F=_J(G,$);if(F)return F;var R=Object.keys($),V=vJ(R);if(G.showHidden)R=Object.getOwnPropertyNames($);if(CZ($)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return mZ($);if(R.length===0){if(TZ($)){var z=$.name?": "+$.name:"";return G.stylize("[Function"+z+"]","special")}if(AZ($))return G.stylize(RegExp.prototype.toString.call($),"regexp");if(aZ($))return G.stylize(Date.prototype.toString.call($),"date");if(CZ($))return mZ($)}var k="",L=!1,E=["{","}"];if(ZQ($))L=!0,E=["[","]"];if(TZ($)){var A=$.name?": "+$.name:"";k=" [Function"+A+"]"}if(AZ($))k=" "+RegExp.prototype.toString.call($);if(aZ($))k=" "+Date.prototype.toUTCString.call($);if(CZ($))k=" "+mZ($);if(R.length===0&&(!L||$.length==0))return E[0]+k+E[1];if(W<0)if(AZ($))return G.stylize(RegExp.prototype.toString.call($),"regexp");else return G.stylize("[Object]","special");G.seen.push($);var D;if(L)D=BJ(G,$,W,V,R);else D=R.map(function(P){return tZ(G,$,W,V,P,L)});return G.seen.pop(),xJ(D,k,E)}function _J(G,$){if(mU($))return G.stylize("undefined","undefined");if(LZ($)){var W="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(W,"string")}if(XQ($))return G.stylize(""+$,"number");if(eZ($))return G.stylize(""+$,"boolean");if(zZ($))return G.stylize("null","null")}function mZ(G){return"["+Error.prototype.toString.call(G)+"]"}function BJ(G,$,W,C,F){var R=[];for(var V=0,z=$.length;V<z;++V)if(JQ($,String(V)))R.push(tZ(G,$,W,C,String(V),!0));else R.push("");return F.forEach(function(k){if(!k.match(/^\d+$/))R.push(tZ(G,$,W,C,k,!0))}),R}function tZ(G,$,W,C,F,R){var V,z,k;if(k=Object.getOwnPropertyDescriptor($,F)||{value:$[F]},k.get)if(k.set)z=G.stylize("[Getter/Setter]","special");else z=G.stylize("[Getter]","special");else if(k.set)z=G.stylize("[Setter]","special");if(!JQ(C,F))V="["+F+"]";if(!z)if(G.seen.indexOf(k.value)<0){if(zZ(W))z=DZ(G,k.value,null);else z=DZ(G,k.value,W-1);if(z.indexOf(`
|
|
2
|
-
`)>-1)if(R)z=z.split(`
|
|
3
|
-
`).map(function(L){return" "+L}).join(`
|
|
4
|
-
`).slice(2);else z=`
|
|
5
|
-
`+z.split(`
|
|
6
|
-
`).map(function(L){return" "+L}).join(`
|
|
7
|
-
`)}else z=G.stylize("[Circular]","special");if(mU(V)){if(R&&F.match(/^\d+$/))return z;if(V=JSON.stringify(""+F),V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))V=V.slice(1,-1),V=G.stylize(V,"name");else V=V.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),V=G.stylize(V,"string")}return V+": "+z}function xJ(G,$,W){var C=0,F=G.reduce(function(R,V){if(C++,V.indexOf(`
|
|
8
|
-
`)>=0)C++;return R+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(F>60)return W[0]+($===""?"":$+`
|
|
9
|
-
`)+" "+G.join(`,
|
|
10
|
-
`)+" "+W[1];return W[0]+$+" "+G.join(", ")+" "+W[1]}function ZQ(G){return Array.isArray(G)}function eZ(G){return typeof G==="boolean"}function zZ(G){return G===null}function gJ(G){return G==null}function XQ(G){return typeof G==="number"}function LZ(G){return typeof G==="string"}function wJ(G){return typeof G==="symbol"}function mU(G){return G===void 0}function AZ(G){return sU(G)&&iZ(G)==="[object RegExp]"}function sU(G){return typeof G==="object"&&G!==null}function aZ(G){return sU(G)&&iZ(G)==="[object Date]"}function CZ(G){return sU(G)&&(iZ(G)==="[object Error]"||G instanceof Error)}function TZ(G){return typeof G==="function"}function yJ(G){return G===null||typeof G==="boolean"||typeof G==="number"||typeof G==="string"||typeof G==="symbol"||typeof G>"u"}function fJ(G){return G instanceof Buffer}function iZ(G){return Object.prototype.toString.call(G)}function sZ(G){return G<10?"0"+G.toString(10):G.toString(10)}function pJ(){var G=new Date,$=[sZ(G.getHours()),sZ(G.getMinutes()),sZ(G.getSeconds())].join(":");return[G.getDate(),cJ[G.getMonth()],$].join(" ")}function QQ(...G){console.log("%s - %s",pJ(),rZ.apply(null,G))}function YQ(G,$){if($)G.super_=$,G.prototype=Object.create($.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})}function UX(G,$){if(!$||!sU($))return G;var W=Object.keys($),C=W.length;while(C--)G[W[C]]=$[W[C]];return G}function JQ(G,$){return Object.prototype.hasOwnProperty.call(G,$)}function ZX(G,$){if(!G){var W=Error("Promise was rejected with a falsy value");W.reason=G,G=W}return $(G)}function GQ(G){if(typeof G!=="function")throw TypeError('The "original" argument must be of type Function');function $(...W){var C=W.pop();if(typeof C!=="function")throw TypeError("The last argument must be of type Function");var F=this,R=function(...V){return C.apply(F,...V)};G.apply(this,W).then(function(V){process.nextTick(R.bind(null,null,V))},function(V){process.nextTick(ZX.bind(null,V,R))})}return Object.setPrototypeOf($,Object.getPrototypeOf(G)),Object.defineProperties($,Object.getOwnPropertyDescriptors(G)),$}var SJ,PJ,bU,NJ=()=>{},cJ,VQ,IQ,$Q,hJ;var OQ=WZ(()=>{SJ=/%[sdj%]/g;PJ=((G={},$={},W)=>((W=typeof process<"u"&&!1)&&(W=W.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),$=new RegExp("^"+W+"$","i"),(C)=>{if(C=C.toUpperCase(),!G[C])if($.test(C))G[C]=function(...F){console.error("%s: %s",C,pid,rZ.apply(null,...F))};else G[C]=function(){};return G[C]}))(),bU=((G)=>(G.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},G.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},G.custom=Symbol.for("nodejs.util.inspect.custom"),G))(function(G,$,...W){var C={seen:[],stylize:jJ};if(W.length>=1)C.depth=W[0];if(W.length>=2)C.colors=W[1];if(eZ($))C.showHidden=$;else if($)UX(C,$);if(mU(C.showHidden))C.showHidden=!1;if(mU(C.depth))C.depth=2;if(mU(C.colors))C.colors=!1;if(C.colors)C.stylize=kJ;return DZ(C,G,C.depth)});cJ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];VQ=((G)=>(G.custom=Symbol.for("nodejs.util.promisify.custom"),G))(function(G){if(typeof G!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&G[kCustomPromisifiedSymbol]){var $=G[kCustomPromisifiedSymbol];if(typeof $!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty($,kCustomPromisifiedSymbol,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(...W){var C,F,R=new Promise(function(V,z){C=V,F=z});W.push(function(V,z){if(V)F(V);else C(z)});try{G.apply(this,W)}catch(V){F(V)}return R}if(Object.setPrototypeOf($,Object.getPrototypeOf(G)),kCustomPromisifiedSymbol)Object.defineProperty($,kCustomPromisifiedSymbol,{value:$,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties($,Object.getOwnPropertyDescriptors(G))});({TextEncoder:IQ,TextDecoder:$Q}=globalThis),hJ={TextEncoder:IQ,TextDecoder:$Q,promisify:VQ,log:QQ,inherits:YQ,_extend:UX,callbackifyOnRejected:ZX,callbackify:GQ}});var UZ={};OZ(UZ,{setMaxListeners:()=>MQ,once:()=>LQ,listenerCount:()=>RQ,init:()=>fU,getMaxListeners:()=>qQ,getEventListeners:()=>EQ,default:()=>tJ,captureRejectionSymbol:()=>CQ,addAbortListener:()=>PQ,EventEmitter:()=>fU});function TQ(G,$){var{_events:W}=G;if($[0]??=Error("Unhandled error."),!W)throw $[0];var C=W[AQ];if(C)for(var F of HQ.call(C))F.apply(G,$);var R=W.error;if(!R)throw $[0];for(var F of HQ.call(R))F.apply(G,$);return!0}function dJ(G,$,W,C){$.then(void 0,function(F){queueMicrotask(()=>lJ(G,F,W,C))})}function lJ(G,$,W,C){if(typeof G[WQ]==="function")G[WQ]($,W,...C);else try{G[dU]=!1,G.emit("error",$)}finally{G[dU]=!0}}function DQ(G,$,W){W.warned=!0;let C=Error(`Possible EventEmitter memory leak detected. ${W.length} ${String($)} listeners added to [${G.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);C.name="MaxListenersExceededWarning",C.emitter=G,C.type=$,C.count=W.length,console.warn(C)}function zQ(G,$,...W){this.removeListener(G,$),$.apply(this,W)}function LQ(G,$,W){var C=W?.signal;if(SQ(C,"options.signal"),C?.aborted)throw new XX(void 0,{cause:C?.reason});let{resolve:F,reject:R,promise:V}=$newPromiseCapability(Promise),z=(E)=>{if(G.removeListener($,k),C!=null)EZ(C,"abort",L);R(E)},k=(...E)=>{if(typeof G.removeListener==="function")G.removeListener("error",z);if(C!=null)EZ(C,"abort",L);F(E)};if(FQ(G,$,k,{once:!0}),$!=="error"&&typeof G.once==="function")G.once("error",z);function L(){EZ(G,$,k),EZ(G,"error",z),R(new XX(void 0,{cause:C?.reason}))}if(C!=null)FQ(C,"abort",L,{once:!0});return V}function EQ(G,$){return G.listeners($)}function MQ(G,...$){YX(G,"setMaxListeners",0);var W;if($&&(W=$.length))for(let C=0;C<W;C++)$[C].setMaxListeners(G);else lU=G}function RQ(G,$){return G.listenerCount($)}function EZ(G,$,W,C){if(typeof G.removeListener==="function")G.removeListener($,W);else G.removeEventListener($,W,C)}function FQ(G,$,W,C){if(typeof G.on==="function")if(C.once)G.once($,W);else G.on($,W);else G.addEventListener($,W,C)}function tU(G,$,W){let C=TypeError(`The "${G}" argument must be of type ${$}. Received ${W}`);return C.code="ERR_INVALID_ARG_TYPE",C}function mJ(G,$,W){let C=RangeError(`The "${G}" argument is out of range. It must be ${$}. Received ${W}`);return C.code="ERR_OUT_OF_RANGE",C}function SQ(G,$){if(G!==void 0&&(G===null||typeof G!=="object"||!("aborted"in G)))throw tU($,"AbortSignal",G)}function YX(G,$,W,C){if(typeof G!=="number")throw tU($,"number",G);if(W!=null&&G<W||C!=null&&G>C||(W!=null||C!=null)&&Number.isNaN(G))throw mJ($,`${W!=null?`>= ${W}`:""}${W!=null&&C!=null?" && ":""}${C!=null?`<= ${C}`:""}`,G)}function iU(G){if(typeof G!=="function")throw TypeError("The listener must be a function")}function sJ(G,$){if(typeof G!=="boolean")throw tU($,"boolean",G)}function qQ(G){return G?._maxListeners??lU}function PQ(G,$){if(G===void 0)throw tU("signal","AbortSignal",G);if(SQ(G,"signal"),typeof $!=="function")throw tU("listener","function",$);let W;if(G.aborted)queueMicrotask(()=>$());else G.addEventListener("abort",$,{__proto__:null,once:!0}),W=()=>{G.removeEventListener("abort",$)};return{__proto__:null,[Symbol.dispose](){W?.()}}}var QX,dU,AQ,uJ,bJ,WQ,CQ,HQ,lU=10,fU=function(G){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[dU]=G?.captureRejections?Boolean(G?.captureRejections):s0[dU])this.emit=nJ},s0,oJ=function(G,...$){if(G==="error")return TQ(this,$);var{_events:W}=this;if(W===void 0)return!1;var C=W[G];if(C===void 0)return!1;let F=C.length>1?C.slice():C;for(let R=0,{length:V}=F;R<V;R++){let z=F[R];switch($.length){case 0:z.call(this);break;case 1:z.call(this,$[0]);break;case 2:z.call(this,$[0],$[1]);break;case 3:z.call(this,$[0],$[1],$[2]);break;default:z.apply(this,$);break}}return!0},nJ=function(G,...$){if(G==="error")return TQ(this,$);var{_events:W}=this;if(W===void 0)return!1;var C=W[G];if(C===void 0)return!1;let F=C.length>1?C.slice():C;for(let R=0,{length:V}=F;R<V;R++){let z=F[R],k;switch($.length){case 0:k=z.call(this);break;case 1:k=z.call(this,$[0]);break;case 2:k=z.call(this,$[0],$[1]);break;case 3:k=z.call(this,$[0],$[1],$[2]);break;default:k=z.apply(this,$);break}if(k!==void 0&&typeof k?.then==="function"&&k.then===Promise.prototype.then)dJ(this,k,G,$)}return!0},XX,tJ;var ZZ=WZ(()=>{QX=Symbol.for,dU=Symbol("kCapture"),AQ=QX("events.errorMonitor"),uJ=Symbol("events.maxEventTargetListeners"),bJ=Symbol("events.maxEventTargetListenersWarned"),WQ=QX("nodejs.rejection"),CQ=QX("nodejs.rejection"),HQ=Array.prototype.slice,s0=fU.prototype={};s0._events=void 0;s0._eventsCount=0;s0._maxListeners=void 0;s0.setMaxListeners=function(G){return YX(G,"setMaxListeners",0),this._maxListeners=G,this};s0.constructor=fU;s0.getMaxListeners=function(){return this?._maxListeners??lU};s0.emit=oJ;s0.addListener=function(G,$){iU($);var W=this._events;if(!W)W=this._events={__proto__:null},this._eventsCount=0;else if(W.newListener)this.emit("newListener",G,$.listener??$);var C=W[G];if(!C)W[G]=[$],this._eventsCount++;else{C.push($);var F=this._maxListeners??lU;if(F>0&&C.length>F&&!C.warned)DQ(this,G,C)}return this};s0.on=s0.addListener;s0.prependListener=function(G,$){iU($);var W=this._events;if(!W)W=this._events={__proto__:null},this._eventsCount=0;else if(W.newListener)this.emit("newListener",G,$.listener??$);var C=W[G];if(!C)W[G]=[$],this._eventsCount++;else{C.unshift($);var F=this._maxListeners??lU;if(F>0&&C.length>F&&!C.warned)DQ(this,G,C)}return this};s0.once=function(G,$){iU($);let W=zQ.bind(this,G,$);return W.listener=$,this.addListener(G,W),this};s0.prependOnceListener=function(G,$){iU($);let W=zQ.bind(this,G,$);return W.listener=$,this.prependListener(G,W),this};s0.removeListener=function(G,$){iU($);var{_events:W}=this;if(!W)return this;var C=W[G];if(!C)return this;var F=C.length;let R=-1;for(let V=F-1;V>=0;V--)if(C[V]===$||C[V].listener===$){R=V;break}if(R<0)return this;if(R===0)C.shift();else C.splice(R,1);if(C.length===0)delete W[G],this._eventsCount--;return this};s0.off=s0.removeListener;s0.removeAllListeners=function(G){var{_events:$}=this;if(G&&$){if($[G])delete $[G],this._eventsCount--}else this._events={__proto__:null};return this};s0.listeners=function(G){var{_events:$}=this;if(!$)return[];var W=$[G];if(!W)return[];return W.map((C)=>C.listener??C)};s0.rawListeners=function(G){var{_events:$}=this;if(!$)return[];var W=$[G];if(!W)return[];return W.slice()};s0.listenerCount=function(G){var{_events:$}=this;if(!$)return 0;return $[G]?.length??0};s0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};s0[dU]=!1;XX=class XX extends Error{constructor(G="The operation was aborted",$=void 0){if($!==void 0&&typeof $!=="object")throw tU("options","Object",$);super(G,$);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(fU,{captureRejections:{get(){return s0[dU]},set(G){sJ(G,"EventEmitter.captureRejections"),s0[dU]=G},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return lU},set:(G)=>{YX(G,"defaultMaxListeners",0),lU=G}},kMaxEventTargetListeners:{value:uJ,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:bJ,enumerable:!1,configurable:!1,writable:!1}});Object.assign(fU,{once:LQ,getEventListeners:EQ,getMaxListeners:qQ,setMaxListeners:MQ,EventEmitter:fU,usingDomains:!1,captureRejectionSymbol:CQ,errorMonitor:AQ,addAbortListener:PQ,init:fU,listenerCount:RQ});tJ=fU});var IX=gY((nI,gQ)=>{var o0=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports),a0=o0((G,$)=>{class W extends Error{constructor(C){if(!Array.isArray(C))throw TypeError(`Expected input to be an Array, got ${typeof C}`);let F="";for(let R=0;R<C.length;R++)F+=` ${C[R].stack}
|
|
11
|
-
`;super(F);this.name="AggregateError",this.errors=C}}$.exports={AggregateError:W,ArrayIsArray(C){return Array.isArray(C)},ArrayPrototypeIncludes(C,F){return C.includes(F)},ArrayPrototypeIndexOf(C,F){return C.indexOf(F)},ArrayPrototypeJoin(C,F){return C.join(F)},ArrayPrototypeMap(C,F){return C.map(F)},ArrayPrototypePop(C,F){return C.pop(F)},ArrayPrototypePush(C,F){return C.push(F)},ArrayPrototypeSlice(C,F,R){return C.slice(F,R)},Error,FunctionPrototypeCall(C,F,...R){return C.call(F,...R)},FunctionPrototypeSymbolHasInstance(C,F){return Function.prototype[Symbol.hasInstance].call(C,F)},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(C,F){return Object.defineProperties(C,F)},ObjectDefineProperty(C,F,R){return Object.defineProperty(C,F,R)},ObjectGetOwnPropertyDescriptor(C,F){return Object.getOwnPropertyDescriptor(C,F)},ObjectKeys(C){return Object.keys(C)},ObjectSetPrototypeOf(C,F){return Object.setPrototypeOf(C,F)},Promise,PromisePrototypeCatch(C,F){return C.catch(F)},PromisePrototypeThen(C,F,R){return C.then(F,R)},PromiseReject(C){return Promise.reject(C)},PromiseResolve(C){return Promise.resolve(C)},ReflectApply:Reflect.apply,RegExpPrototypeTest(C,F){return C.test(F)},SafeSet:Set,String,StringPrototypeSlice(C,F,R){return C.slice(F,R)},StringPrototypeToLowerCase(C){return C.toLowerCase()},StringPrototypeToUpperCase(C){return C.toUpperCase()},StringPrototypeTrim(C){return C.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(C,F,R){return C.set(F,R)},Boolean,Uint8Array}}),kQ=o0((G,$)=>{$.exports={format(W,...C){return W.replace(/%([sdifj])/g,function(...[F,R]){let V=C.shift();if(R==="f")return V.toFixed(6);else if(R==="j")return JSON.stringify(V);else if(R==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(W){switch(typeof W){case"string":if(W.includes("'")){if(!W.includes('"'))return`"${W}"`;else if(!W.includes("`")&&!W.includes("${"))return`\`${W}\``}return`'${W}'`;case"number":if(isNaN(W))return"NaN";else if(Object.is(W,-0))return String(W);return W;case"bigint":return`${String(W)}n`;case"boolean":case"undefined":return String(W);case"object":return"{}"}}}}),LU=o0((G,$)=>{var{format:W,inspect:C}=kQ(),{AggregateError:F}=a0(),R=globalThis.AggregateError||F,V=Symbol("kIsNodeError"),z=["string","function","number","object","Function","Object","boolean","bigint","symbol"],k=/^([A-Z][a-z0-9]*)+$/,L={};function E(N,x){if(!N)throw new L.ERR_INTERNAL_ASSERTION(x)}function A(N){let x="",g=N.length,f=N[0]==="-"?1:0;for(;g>=f+4;g-=3)x=`_${N.slice(g-3,g)}${x}`;return`${N.slice(0,g)}${x}`}function D(N,x,g){if(typeof x==="function")return E(x.length<=g.length,`Code: ${N}; The provided arguments length (${g.length}) does not match the required ones (${x.length}).`),x(...g);let f=(x.match(/%[dfijoOs]/g)||[]).length;if(E(f===g.length,`Code: ${N}; The provided arguments length (${g.length}) does not match the required ones (${f}).`),g.length===0)return x;return W(x,...g)}function P(N,x,g){if(!g)g=Error;class f extends g{constructor(...p){super(D(N,x,p))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(f.prototype,{name:{value:g.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),f.prototype.code=N,f.prototype[V]=!0,L[N]=f}function q(N){let x="__node_internal_"+N.name;return Object.defineProperty(N,"name",{value:x}),N}function _(N,x){if(N&&x&&N!==x){if(Array.isArray(x.errors))return x.errors.push(N),x;let g=new R([x,N],x.message);return g.code=x.code,g}return N||x}class j extends Error{constructor(N="The operation was aborted",x=void 0){if(x!==void 0&&typeof x!=="object")throw new L.ERR_INVALID_ARG_TYPE("options","Object",x);super(N,x);this.code="ABORT_ERR",this.name="AbortError"}}P("ERR_ASSERTION","%s",Error),P("ERR_INVALID_ARG_TYPE",(N,x,g)=>{if(E(typeof N==="string","'name' must be a string"),!Array.isArray(x))x=[x];let f="The ";if(N.endsWith(" argument"))f+=`${N} `;else f+=`"${N}" ${N.includes(".")?"property":"argument"} `;f+="must be ";let p=[],s=[],O0=[];for(let W0 of x)if(E(typeof W0==="string","All expected entries have to be of type string"),z.includes(W0))p.push(W0.toLowerCase());else if(k.test(W0))s.push(W0);else E(W0!=="object",'The value "object" should be written as "Object"'),O0.push(W0);if(s.length>0){let W0=p.indexOf("object");if(W0!==-1)p.splice(p,W0,1),s.push("Object")}if(p.length>0){switch(p.length){case 1:f+=`of type ${p[0]}`;break;case 2:f+=`one of type ${p[0]} or ${p[1]}`;break;default:{let W0=p.pop();f+=`one of type ${p.join(", ")}, or ${W0}`}}if(s.length>0||O0.length>0)f+=" or "}if(s.length>0){switch(s.length){case 1:f+=`an instance of ${s[0]}`;break;case 2:f+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let W0=s.pop();f+=`an instance of ${s.join(", ")}, or ${W0}`}}if(O0.length>0)f+=" or "}switch(O0.length){case 0:break;case 1:if(O0[0].toLowerCase()!==O0[0])f+="an ";f+=`${O0[0]}`;break;case 2:f+=`one of ${O0[0]} or ${O0[1]}`;break;default:{let W0=O0.pop();f+=`one of ${O0.join(", ")}, or ${W0}`}}if(g==null)f+=`. Received ${g}`;else if(typeof g==="function"&&g.name)f+=`. Received function ${g.name}`;else if(typeof g==="object"){var C0;if((C0=g.constructor)!==null&&C0!==void 0&&C0.name)f+=`. Received an instance of ${g.constructor.name}`;else{let W0=C(g,{depth:-1});f+=`. Received ${W0}`}}else{let W0=C(g,{colors:!1});if(W0.length>25)W0=`${W0.slice(0,25)}...`;f+=`. Received type ${typeof g} (${W0})`}return f},TypeError),P("ERR_INVALID_ARG_VALUE",(N,x,g="is invalid")=>{let f=C(x);if(f.length>128)f=f.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${g}. Received ${f}`},TypeError),P("ERR_INVALID_RETURN_VALUE",(N,x,g)=>{var f;let p=g!==null&&g!==void 0&&(f=g.constructor)!==null&&f!==void 0&&f.name?`instance of ${g.constructor.name}`:`type ${typeof g}`;return`Expected ${N} to be returned from the "${x}" function but got ${p}.`},TypeError),P("ERR_MISSING_ARGS",(...N)=>{E(N.length>0,"At least one arg needs to be specified");let x,g=N.length;switch(N=(Array.isArray(N)?N:[N]).map((f)=>`"${f}"`).join(" or "),g){case 1:x+=`The ${N[0]} argument`;break;case 2:x+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let f=N.pop();x+=`The ${N.join(", ")}, and ${f} arguments`}break}return`${x} must be specified`},TypeError),P("ERR_OUT_OF_RANGE",(N,x,g)=>{E(x,'Missing "range" argument');let f;if(Number.isInteger(g)&&Math.abs(g)>4294967296)f=A(String(g));else if(typeof g==="bigint"){f=String(g);let p=BigInt(2)**BigInt(32);if(g>p||g<-p)f=A(f);f+="n"}else f=C(g);return`The value of "${N}" is out of range. It must be ${x}. Received ${f}`},RangeError),P("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),P("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),P("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),P("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),P("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),P("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),P("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),P("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),P("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),P("ERR_STREAM_WRITE_AFTER_END","write after end",Error),P("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),$.exports={AbortError:j,aggregateTwoErrors:q(_),hideStackFrames:q,codes:L}}),aJ=o0((G,$)=>{Object.defineProperty(G,"__esModule",{value:!0});var W=new WeakMap,C=new WeakMap;function F(n){let I0=W.get(n);return console.assert(I0!=null,"'this' is expected an Event object, but got",n),I0}function R(n){if(n.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",n.passiveListener);return}if(!n.event.cancelable)return;if(n.canceled=!0,typeof n.event.preventDefault==="function")n.event.preventDefault()}function V(n,I0){W.set(this,{eventTarget:n,event:I0,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:I0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let U=Object.keys(I0);for(let Q=0;Q<U.length;++Q){let J=U[Q];if(!(J in this))Object.defineProperty(this,J,z(J))}}if(V.prototype={get type(){return F(this).event.type},get target(){return F(this).eventTarget},get currentTarget(){return F(this).currentTarget},composedPath(){let n=F(this).currentTarget;if(n==null)return[];return[n]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return F(this).eventPhase},stopPropagation(){let n=F(this);if(n.stopped=!0,typeof n.event.stopPropagation==="function")n.event.stopPropagation()},stopImmediatePropagation(){let n=F(this);if(n.stopped=!0,n.immediateStopped=!0,typeof n.event.stopImmediatePropagation==="function")n.event.stopImmediatePropagation()},get bubbles(){return Boolean(F(this).event.bubbles)},get cancelable(){return Boolean(F(this).event.cancelable)},preventDefault(){R(F(this))},get defaultPrevented(){return F(this).canceled},get composed(){return Boolean(F(this).event.composed)},get timeStamp(){return F(this).timeStamp},get srcElement(){return F(this).eventTarget},get cancelBubble(){return F(this).stopped},set cancelBubble(n){if(!n)return;let I0=F(this);if(I0.stopped=!0,typeof I0.event.cancelBubble==="boolean")I0.event.cancelBubble=!0},get returnValue(){return!F(this).canceled},set returnValue(n){if(!n)R(F(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),C.set(window.Event.prototype,V);function z(n){return{get(){return F(this).event[n]},set(I0){F(this).event[n]=I0},configurable:!0,enumerable:!0}}function k(n){return{value(){let I0=F(this).event;return I0[n].apply(I0,arguments)},configurable:!0,enumerable:!0}}function L(n,I0){let U=Object.keys(I0);if(U.length===0)return n;function Q(J,X){n.call(this,J,X)}Q.prototype=Object.create(n.prototype,{constructor:{value:Q,configurable:!0,writable:!0}});for(let J=0;J<U.length;++J){let X=U[J];if(!(X in n.prototype)){let Y=typeof Object.getOwnPropertyDescriptor(I0,X).value==="function";Object.defineProperty(Q.prototype,X,Y?k(X):z(X))}}return Q}function E(n){if(n==null||n===Object.prototype)return V;let I0=C.get(n);if(I0==null)I0=L(E(Object.getPrototypeOf(n)),n),C.set(n,I0);return I0}function A(n,I0){return new(E(Object.getPrototypeOf(I0)))(n,I0)}function D(n){return F(n).immediateStopped}function P(n,I0){F(n).eventPhase=I0}function q(n,I0){F(n).currentTarget=I0}function _(n,I0){F(n).passiveListener=I0}var j=new WeakMap,N=1,x=2,g=3;function f(n){return n!==null&&typeof n==="object"}function p(n){let I0=j.get(n);if(I0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return I0}function s(n){return{get(){let I0=p(this).get(n);while(I0!=null){if(I0.listenerType===g)return I0.listener;I0=I0.next}return null},set(I0){if(typeof I0!=="function"&&!f(I0))I0=null;let U=p(this),Q=null,J=U.get(n);while(J!=null){if(J.listenerType===g)if(Q!==null)Q.next=J.next;else if(J.next!==null)U.set(n,J.next);else U.delete(n);else Q=J;J=J.next}if(I0!==null){let X={listener:I0,listenerType:g,passive:!1,once:!1,next:null};if(Q===null)U.set(n,X);else Q.next=X}},configurable:!0,enumerable:!0}}function O0(n,I0){Object.defineProperty(n,`on${I0}`,s(I0))}function C0(n){function I0(){W0.call(this)}I0.prototype=Object.create(W0.prototype,{constructor:{value:I0,configurable:!0,writable:!0}});for(let U=0;U<n.length;++U)O0(I0.prototype,n[U]);return I0}function W0(){if(this instanceof W0){j.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return C0(arguments[0]);if(arguments.length>0){let n=Array(arguments.length);for(let I0=0;I0<arguments.length;++I0)n[I0]=arguments[I0];return C0(n)}throw TypeError("Cannot call a class as a function")}if(W0.prototype={addEventListener(n,I0,U){if(I0==null)return;if(typeof I0!=="function"&&!f(I0))throw TypeError("'listener' should be a function or an object.");let Q=p(this),J=f(U),X=(J?Boolean(U.capture):Boolean(U))?N:x,Y={listener:I0,listenerType:X,passive:J&&Boolean(U.passive),once:J&&Boolean(U.once),next:null},O=Q.get(n);if(O===void 0){Q.set(n,Y);return}let H=null;while(O!=null){if(O.listener===I0&&O.listenerType===X)return;H=O,O=O.next}H.next=Y},removeEventListener(n,I0,U){if(I0==null)return;let Q=p(this),J=(f(U)?Boolean(U.capture):Boolean(U))?N:x,X=null,Y=Q.get(n);while(Y!=null){if(Y.listener===I0&&Y.listenerType===J){if(X!==null)X.next=Y.next;else if(Y.next!==null)Q.set(n,Y.next);else Q.delete(n);return}X=Y,Y=Y.next}},dispatchEvent(n){if(n==null||typeof n.type!=="string")throw TypeError('"event.type" should be a string.');let I0=p(this),U=n.type,Q=I0.get(U);if(Q==null)return!0;let J=A(this,n),X=null;while(Q!=null){if(Q.once)if(X!==null)X.next=Q.next;else if(Q.next!==null)I0.set(U,Q.next);else I0.delete(U);else X=Q;if(_(J,Q.passive?Q.listener:null),typeof Q.listener==="function")try{Q.listener.call(this,J)}catch(Y){if(typeof console<"u"&&typeof console.error==="function")console.error(Y)}else if(Q.listenerType!==g&&typeof Q.listener.handleEvent==="function")Q.listener.handleEvent(J);if(D(J))break;Q=Q.next}return _(J,null),P(J,0),q(J,null),!J.defaultPrevented}},Object.defineProperty(W0.prototype,"constructor",{value:W0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(W0.prototype,window.EventTarget.prototype);G.defineEventAttribute=O0,G.EventTarget=W0,G.default=W0,$.exports=W0,$.exports.EventTarget=$.exports.default=W0,$.exports.defineEventAttribute=O0}),XZ=o0((G,$)=>{Object.defineProperty(G,"__esModule",{value:!0});var W=aJ();class C extends W.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let E=V.get(this);if(typeof E!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return E}}W.defineEventAttribute(C.prototype,"abort");function F(){let E=Object.create(C.prototype);return W.EventTarget.call(E),V.set(E,!1),E}function R(E){if(V.get(E)!==!1)return;V.set(E,!0),E.dispatchEvent({type:"abort"})}var V=new WeakMap;if(Object.defineProperties(C.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(C.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class z{constructor(){k.set(this,F())}get signal(){return L(this)}abort(){R(L(this))}}var k=new WeakMap;function L(E){let A=k.get(E);if(A==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${E===null?"null":typeof E}`);return A}if(Object.defineProperties(z.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(z.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});G.AbortController=z,G.AbortSignal=C,G.default=z,$.exports=z,$.exports.AbortController=$.exports.default=z,$.exports.AbortSignal=C}),RU=o0((G,$)=>{var W=(TU(),l0(CU)),{format:C,inspect:F}=kQ(),{codes:{ERR_INVALID_ARG_TYPE:R}}=LU(),{kResistStopPropagation:V,AggregateError:z,SymbolDispose:k}=a0(),L=globalThis.AbortSignal||XZ().AbortSignal,E=globalThis.AbortController||XZ().AbortController,A=Object.getPrototypeOf(async function(){}).constructor,D=globalThis.Blob||W.Blob,P=typeof D<"u"?function(j){return j instanceof D}:function(j){return!1},q=(j,N)=>{if(j!==void 0&&(j===null||typeof j!=="object"||!("aborted"in j)))throw new R(N,"AbortSignal",j)},_=(j,N)=>{if(typeof j!=="function")throw new R(N,"Function",j)};$.exports={AggregateError:z,kEmptyObject:Object.freeze({}),once(j){let N=!1;return function(...x){if(N)return;N=!0,j.apply(this,x)}},createDeferredPromise:function(){let j,N;return{promise:new Promise((x,g)=>{j=x,N=g}),resolve:j,reject:N}},promisify(j){return new Promise((N,x)=>{j((g,...f)=>{if(g)return x(g);return N(...f)})})},debuglog(){return function(){}},format:C,inspect:F,types:{isAsyncFunction(j){return j instanceof A},isArrayBufferView(j){return ArrayBuffer.isView(j)}},isBlob:P,deprecate(j,N){return j},addAbortListener:(ZZ(),l0(UZ)).addAbortListener||function(j,N){if(j===void 0)throw new R("signal","AbortSignal",j);q(j,"signal"),_(N,"listener");let x;if(j.aborted)queueMicrotask(()=>N());else j.addEventListener("abort",N,{__proto__:null,once:!0,[V]:!0}),x=()=>{j.removeEventListener("abort",N)};return{__proto__:null,[k](){var g;(g=x)===null||g===void 0||g()}}},AbortSignalAny:L.any||function(j){if(j.length===1)return j[0];let N=new E,x=()=>N.abort();return j.forEach((g)=>{q(g,"signals"),g.addEventListener("abort",x,{once:!0})}),N.signal.addEventListener("abort",()=>{j.forEach((g)=>g.removeEventListener("abort",x))},{once:!0}),N.signal}},$.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),QZ=o0((G,$)=>{var{ArrayIsArray:W,ArrayPrototypeIncludes:C,ArrayPrototypeJoin:F,ArrayPrototypeMap:R,NumberIsInteger:V,NumberIsNaN:z,NumberMAX_SAFE_INTEGER:k,NumberMIN_SAFE_INTEGER:L,NumberParseInt:E,ObjectPrototypeHasOwnProperty:A,RegExpPrototypeExec:D,String:P,StringPrototypeToUpperCase:q,StringPrototypeTrim:_}=a0(),{hideStackFrames:j,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:x,ERR_INVALID_ARG_VALUE:g,ERR_OUT_OF_RANGE:f,ERR_UNKNOWN_SIGNAL:p}}=LU(),{normalizeEncoding:s}=RU(),{isAsyncFunction:O0,isArrayBufferView:C0}=RU().types,W0={};function n(b){return b===(b|0)}function I0(b){return b===b>>>0}var U=/^[0-7]+$/,Q="must be a 32-bit unsigned integer or an octal string";function J(b,a,w0){if(typeof b>"u")b=w0;if(typeof b==="string"){if(D(U,b)===null)throw new g(a,b,Q);b=E(b,8)}return O(b,a),b}var X=j((b,a,w0=L,i=k)=>{if(typeof b!=="number")throw new x(a,"number",b);if(!V(b))throw new f(a,"an integer",b);if(b<w0||b>i)throw new f(a,`>= ${w0} && <= ${i}`,b)}),Y=j((b,a,w0=-2147483648,i=2147483647)=>{if(typeof b!=="number")throw new x(a,"number",b);if(!V(b))throw new f(a,"an integer",b);if(b<w0||b>i)throw new f(a,`>= ${w0} && <= ${i}`,b)}),O=j((b,a,w0=!1)=>{if(typeof b!=="number")throw new x(a,"number",b);if(!V(b))throw new f(a,"an integer",b);let i=w0?1:0,V0=4294967295;if(b<i||b>V0)throw new f(a,`>= ${i} && <= ${V0}`,b)});function H(b,a){if(typeof b!=="string")throw new x(a,"string",b)}function I(b,a,w0=void 0,i){if(typeof b!=="number")throw new x(a,"number",b);if(w0!=null&&b<w0||i!=null&&b>i||(w0!=null||i!=null)&&z(b))throw new f(a,`${w0!=null?`>= ${w0}`:""}${w0!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,b)}var Z=j((b,a,w0)=>{if(!C(w0,b)){let i="must be one of: "+F(R(w0,(V0)=>typeof V0==="string"?`'${V0}'`:P(V0)),", ");throw new g(a,b,i)}});function K(b,a){if(typeof b!=="boolean")throw new x(a,"boolean",b)}function S(b,a,w0){return b==null||!A(b,a)?w0:b[a]}var T=j((b,a,w0=null)=>{let i=S(w0,"allowArray",!1),V0=S(w0,"allowFunction",!1);if(!S(w0,"nullable",!1)&&b===null||!i&&W(b)||typeof b!=="object"&&(!V0||typeof b!=="function"))throw new x(a,"Object",b)}),B=j((b,a)=>{if(b!=null&&typeof b!=="object"&&typeof b!=="function")throw new x(a,"a dictionary",b)}),c=j((b,a,w0=0)=>{if(!W(b))throw new x(a,"Array",b);if(b.length<w0){let i=`must be longer than ${w0}`;throw new g(a,b,i)}});function d(b,a){c(b,a);for(let w0=0;w0<b.length;w0++)H(b[w0],`${a}[${w0}]`)}function r(b,a){c(b,a);for(let w0=0;w0<b.length;w0++)K(b[w0],`${a}[${w0}]`)}function z0(b,a){c(b,a);for(let w0=0;w0<b.length;w0++){let i=b[w0],V0=`${a}[${w0}]`;if(i==null)throw new x(V0,"AbortSignal",i);Y0(i,V0)}}function Z0(b,a="signal"){if(H(b,a),W0[b]===void 0){if(W0[q(b)]!==void 0)throw new p(b+" (signals must use all capital letters)");throw new p(b)}}var t=j((b,a="buffer")=>{if(!C0(b))throw new x(a,["Buffer","TypedArray","DataView"],b)});function $0(b,a){let w0=s(a),i=b.length;if(w0==="hex"&&i%2!==0)throw new g("encoding",a,`is invalid for data of length ${i}`)}function e(b,a="Port",w0=!0){if(typeof b!=="number"&&typeof b!=="string"||typeof b==="string"&&_(b).length===0||+b!==+b>>>0||b>65535||b===0&&!w0)throw new N(a,b,w0);return b|0}var Y0=j((b,a)=>{if(b!==void 0&&(b===null||typeof b!=="object"||!("aborted"in b)))throw new x(a,"AbortSignal",b)}),y0=j((b,a)=>{if(typeof b!=="function")throw new x(a,"Function",b)}),u=j((b,a)=>{if(typeof b!=="function"||O0(b))throw new x(a,"Function",b)}),l=j((b,a)=>{if(b!==void 0)throw new x(a,"undefined",b)});function K0(b,a,w0){if(!C(w0,b))throw new x(a,`('${F(w0,"|")}')`,b)}var U0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Q0(b,a){if(typeof b>"u"||!D(U0,b))throw new g(a,b,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function R0(b){if(typeof b==="string")return Q0(b,"hints"),b;else if(W(b)){let a=b.length,w0="";if(a===0)return w0;for(let i=0;i<a;i++){let V0=b[i];if(Q0(V0,"hints"),w0+=V0,i!==a-1)w0+=", "}return w0}throw new g("hints",b,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}$.exports={isInt32:n,isUint32:I0,parseFileMode:J,validateArray:c,validateStringArray:d,validateBooleanArray:r,validateAbortSignalArray:z0,validateBoolean:K,validateBuffer:t,validateDictionary:B,validateEncoding:$0,validateFunction:y0,validateInt32:Y,validateInteger:X,validateNumber:I,validateObject:T,validateOneOf:Z,validatePlainFunction:u,validatePort:e,validateSignalName:Z0,validateString:H,validateUint32:O,validateUndefined:l,validateUnion:K0,validateAbortSignal:Y0,validateLinkHeaderValue:R0}}),oU=o0((G,$)=>{$.exports=globalThis.process}),gU=o0((G,$)=>{var{SymbolAsyncIterator:W,SymbolIterator:C,SymbolFor:F}=a0(),R=F("nodejs.stream.destroyed"),V=F("nodejs.stream.errored"),z=F("nodejs.stream.readable"),k=F("nodejs.stream.writable"),L=F("nodejs.stream.disturbed"),E=F("nodejs.webstream.isClosedPromise"),A=F("nodejs.webstream.controllerErrorFunction");function D(S,T=!1){var B;return!!(S&&typeof S.pipe==="function"&&typeof S.on==="function"&&(!T||typeof S.pause==="function"&&typeof S.resume==="function")&&(!S._writableState||((B=S._readableState)===null||B===void 0?void 0:B.readable)!==!1)&&(!S._writableState||S._readableState))}function P(S){var T;return!!(S&&typeof S.write==="function"&&typeof S.on==="function"&&(!S._readableState||((T=S._writableState)===null||T===void 0?void 0:T.writable)!==!1))}function q(S){return!!(S&&typeof S.pipe==="function"&&S._readableState&&typeof S.on==="function"&&typeof S.write==="function")}function _(S){return S&&(S._readableState||S._writableState||typeof S.write==="function"&&typeof S.on==="function"||typeof S.pipe==="function"&&typeof S.on==="function")}function j(S){return!!(S&&!_(S)&&typeof S.pipeThrough==="function"&&typeof S.getReader==="function"&&typeof S.cancel==="function")}function N(S){return!!(S&&!_(S)&&typeof S.getWriter==="function"&&typeof S.abort==="function")}function x(S){return!!(S&&!_(S)&&typeof S.readable==="object"&&typeof S.writable==="object")}function g(S){return j(S)||N(S)||x(S)}function f(S,T){if(S==null)return!1;if(T===!0)return typeof S[W]==="function";if(T===!1)return typeof S[C]==="function";return typeof S[W]==="function"||typeof S[C]==="function"}function p(S){if(!_(S))return null;let{_writableState:T,_readableState:B}=S,c=T||B;return!!(S.destroyed||S[R]||c!==null&&c!==void 0&&c.destroyed)}function s(S){if(!P(S))return null;if(S.writableEnded===!0)return!0;let T=S._writableState;if(T!==null&&T!==void 0&&T.errored)return!1;if(typeof(T===null||T===void 0?void 0:T.ended)!=="boolean")return null;return T.ended}function O0(S,T){if(!P(S))return null;if(S.writableFinished===!0)return!0;let B=S._writableState;if(B!==null&&B!==void 0&&B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.finished)!=="boolean")return null;return!!(B.finished||T===!1&&B.ended===!0&&B.length===0)}function C0(S){if(!D(S))return null;if(S.readableEnded===!0)return!0;let T=S._readableState;if(!T||T.errored)return!1;if(typeof(T===null||T===void 0?void 0:T.ended)!=="boolean")return null;return T.ended}function W0(S,T){if(!D(S))return null;let B=S._readableState;if(B!==null&&B!==void 0&&B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.endEmitted)!=="boolean")return null;return!!(B.endEmitted||T===!1&&B.ended===!0&&B.length===0)}function n(S){if(S&&S[z]!=null)return S[z];if(typeof(S===null||S===void 0?void 0:S.readable)!=="boolean")return null;if(p(S))return!1;return D(S)&&S.readable&&!W0(S)}function I0(S){if(S&&S[k]!=null)return S[k];if(typeof(S===null||S===void 0?void 0:S.writable)!=="boolean")return null;if(p(S))return!1;return P(S)&&S.writable&&!s(S)}function U(S,T){if(!_(S))return null;if(p(S))return!0;if((T===null||T===void 0?void 0:T.readable)!==!1&&n(S))return!1;if((T===null||T===void 0?void 0:T.writable)!==!1&&I0(S))return!1;return!0}function Q(S){var T,B;if(!_(S))return null;if(S.writableErrored)return S.writableErrored;return(T=(B=S._writableState)===null||B===void 0?void 0:B.errored)!==null&&T!==void 0?T:null}function J(S){var T,B;if(!_(S))return null;if(S.readableErrored)return S.readableErrored;return(T=(B=S._readableState)===null||B===void 0?void 0:B.errored)!==null&&T!==void 0?T:null}function X(S){if(!_(S))return null;if(typeof S.closed==="boolean")return S.closed;let{_writableState:T,_readableState:B}=S;if(typeof(T===null||T===void 0?void 0:T.closed)==="boolean"||typeof(B===null||B===void 0?void 0:B.closed)==="boolean")return(T===null||T===void 0?void 0:T.closed)||(B===null||B===void 0?void 0:B.closed);if(typeof S._closed==="boolean"&&Y(S))return S._closed;return null}function Y(S){return typeof S._closed==="boolean"&&typeof S._defaultKeepAlive==="boolean"&&typeof S._removedConnection==="boolean"&&typeof S._removedContLen==="boolean"}function O(S){return typeof S._sent100==="boolean"&&Y(S)}function H(S){var T;return typeof S._consuming==="boolean"&&typeof S._dumped==="boolean"&&((T=S.req)===null||T===void 0?void 0:T.upgradeOrConnect)===void 0}function I(S){if(!_(S))return null;let{_writableState:T,_readableState:B}=S,c=T||B;return!c&&O(S)||!!(c&&c.autoDestroy&&c.emitClose&&c.closed===!1)}function Z(S){var T;return!!(S&&((T=S[L])!==null&&T!==void 0?T:S.readableDidRead||S.readableAborted))}function K(S){var T,B,c,d,r,z0,Z0,t,$0,e;return!!(S&&((T=(B=(c=(d=(r=(z0=S[V])!==null&&z0!==void 0?z0:S.readableErrored)!==null&&r!==void 0?r:S.writableErrored)!==null&&d!==void 0?d:(Z0=S._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&c!==void 0?c:(t=S._writableState)===null||t===void 0?void 0:t.errorEmitted)!==null&&B!==void 0?B:($0=S._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&T!==void 0?T:(e=S._writableState)===null||e===void 0?void 0:e.errored))}$.exports={isDestroyed:p,kIsDestroyed:R,isDisturbed:Z,kIsDisturbed:L,isErrored:K,kIsErrored:V,isReadable:n,kIsReadable:z,kIsClosedPromise:E,kControllerErrorFunction:A,kIsWritable:k,isClosed:X,isDuplexNodeStream:q,isFinished:U,isIterable:f,isReadableNodeStream:D,isReadableStream:j,isReadableEnded:C0,isReadableFinished:W0,isReadableErrored:J,isNodeStream:_,isWebStream:g,isWritable:I0,isWritableNodeStream:P,isWritableStream:N,isWritableEnded:s,isWritableFinished:O0,isWritableErrored:Q,isServerRequest:H,isServerResponse:O,willEmitClose:I,isTransformStream:x}}),cU=o0((G,$)=>{var W=oU(),{AbortError:C,codes:F}=LU(),{ERR_INVALID_ARG_TYPE:R,ERR_STREAM_PREMATURE_CLOSE:V}=F,{kEmptyObject:z,once:k}=RU(),{validateAbortSignal:L,validateFunction:E,validateObject:A,validateBoolean:D}=QZ(),{Promise:P,PromisePrototypeThen:q,SymbolDispose:_}=a0(),{isClosed:j,isReadable:N,isReadableNodeStream:x,isReadableStream:g,isReadableFinished:f,isReadableErrored:p,isWritable:s,isWritableNodeStream:O0,isWritableStream:C0,isWritableFinished:W0,isWritableErrored:n,isNodeStream:I0,willEmitClose:U,kIsClosedPromise:Q}=gU(),J;function X(Z){return Z.setHeader&&typeof Z.abort==="function"}var Y=()=>{};function O(Z,K,S){var T,B;if(arguments.length===2)S=K,K=z;else if(K==null)K=z;else A(K,"options");if(E(S,"callback"),L(K.signal,"options.signal"),S=k(S),g(Z)||C0(Z))return H(Z,K,S);if(!I0(Z))throw new R("stream",["ReadableStream","WritableStream","Stream"],Z);let c=(T=K.readable)!==null&&T!==void 0?T:x(Z),d=(B=K.writable)!==null&&B!==void 0?B:O0(Z),r=Z._writableState,z0=Z._readableState,Z0=()=>{if(!Z.writable)e()},t=U(Z)&&x(Z)===c&&O0(Z)===d,$0=W0(Z,!1),e=()=>{if($0=!0,Z.destroyed)t=!1;if(t&&(!Z.readable||c))return;if(!c||Y0)S.call(Z)},Y0=f(Z,!1),y0=()=>{if(Y0=!0,Z.destroyed)t=!1;if(t&&(!Z.writable||d))return;if(!d||$0)S.call(Z)},u=(b)=>{S.call(Z,b)},l=j(Z),K0=()=>{l=!0;let b=n(Z)||p(Z);if(b&&typeof b!=="boolean")return S.call(Z,b);if(c&&!Y0&&x(Z,!0)){if(!f(Z,!1))return S.call(Z,new V)}if(d&&!$0){if(!W0(Z,!1))return S.call(Z,new V)}S.call(Z)},U0=()=>{l=!0;let b=n(Z)||p(Z);if(b&&typeof b!=="boolean")return S.call(Z,b);S.call(Z)},Q0=()=>{Z.req.on("finish",e)};if(X(Z)){if(Z.on("complete",e),!t)Z.on("abort",K0);if(Z.req)Q0();else Z.on("request",Q0)}else if(d&&!r)Z.on("end",Z0),Z.on("close",Z0);if(!t&&typeof Z.aborted==="boolean")Z.on("aborted",K0);if(Z.on("end",y0),Z.on("finish",e),K.error!==!1)Z.on("error",u);if(Z.on("close",K0),l)W.nextTick(K0);else if(r!==null&&r!==void 0&&r.errorEmitted||z0!==null&&z0!==void 0&&z0.errorEmitted){if(!t)W.nextTick(U0)}else if(!c&&(!t||N(Z))&&($0||s(Z)===!1))W.nextTick(U0);else if(!d&&(!t||s(Z))&&(Y0||N(Z)===!1))W.nextTick(U0);else if(z0&&Z.req&&Z.aborted)W.nextTick(U0);let R0=()=>{if(S=Y,Z.removeListener("aborted",K0),Z.removeListener("complete",e),Z.removeListener("abort",K0),Z.removeListener("request",Q0),Z.req)Z.req.removeListener("finish",e);Z.removeListener("end",Z0),Z.removeListener("close",Z0),Z.removeListener("finish",e),Z.removeListener("end",y0),Z.removeListener("error",u),Z.removeListener("close",K0)};if(K.signal&&!l){let b=()=>{let a=S;R0(),a.call(Z,new C(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)W.nextTick(b);else{J=J||RU().addAbortListener;let a=J(K.signal,b),w0=S;S=k((...i)=>{a[_](),w0.apply(Z,i)})}}return R0}function H(Z,K,S){let T=!1,B=Y;if(K.signal)if(B=()=>{T=!0,S.call(Z,new C(void 0,{cause:K.signal.reason}))},K.signal.aborted)W.nextTick(B);else{J=J||RU().addAbortListener;let d=J(K.signal,B),r=S;S=k((...z0)=>{d[_](),r.apply(Z,z0)})}let c=(...d)=>{if(!T)W.nextTick(()=>S.apply(Z,d))};return q(Z[Q].promise,c,c),Y}function I(Z,K){var S;let T=!1;if(K===null)K=z;if((S=K)!==null&&S!==void 0&&S.cleanup)D(K.cleanup,"cleanup"),T=K.cleanup;return new P((B,c)=>{let d=O(Z,K,(r)=>{if(T)d();if(r)c(r);else B()})})}$.exports=O,$.exports.finished=I}),aU=o0((G,$)=>{var W=oU(),{aggregateTwoErrors:C,codes:{ERR_MULTIPLE_CALLBACK:F},AbortError:R}=LU(),{Symbol:V}=a0(),{kIsDestroyed:z,isDestroyed:k,isFinished:L,isServerRequest:E}=gU(),A=V("kDestroy"),D=V("kConstruct");function P(U,Q,J){if(U){if(U.stack,Q&&!Q.errored)Q.errored=U;if(J&&!J.errored)J.errored=U}}function q(U,Q){let J=this._readableState,X=this._writableState,Y=X||J;if(X!==null&&X!==void 0&&X.destroyed||J!==null&&J!==void 0&&J.destroyed){if(typeof Q==="function")Q();return this}if(P(U,X,J),X)X.destroyed=!0;if(J)J.destroyed=!0;if(!Y.constructed)this.once(A,function(O){_(this,C(O,U),Q)});else _(this,U,Q);return this}function _(U,Q,J){let X=!1;function Y(O){if(X)return;X=!0;let{_readableState:H,_writableState:I}=U;if(P(O,I,H),I)I.closed=!0;if(H)H.closed=!0;if(typeof J==="function")J(O);if(O)W.nextTick(j,U,O);else W.nextTick(N,U)}try{U._destroy(Q||null,Y)}catch(O){Y(O)}}function j(U,Q){x(U,Q),N(U)}function N(U){let{_readableState:Q,_writableState:J}=U;if(J)J.closeEmitted=!0;if(Q)Q.closeEmitted=!0;if(J!==null&&J!==void 0&&J.emitClose||Q!==null&&Q!==void 0&&Q.emitClose)U.emit("close")}function x(U,Q){let{_readableState:J,_writableState:X}=U;if(X!==null&&X!==void 0&&X.errorEmitted||J!==null&&J!==void 0&&J.errorEmitted)return;if(X)X.errorEmitted=!0;if(J)J.errorEmitted=!0;U.emit("error",Q)}function g(){let U=this._readableState,Q=this._writableState;if(U)U.constructed=!0,U.closed=!1,U.closeEmitted=!1,U.destroyed=!1,U.errored=null,U.errorEmitted=!1,U.reading=!1,U.ended=U.readable===!1,U.endEmitted=U.readable===!1;if(Q)Q.constructed=!0,Q.destroyed=!1,Q.closed=!1,Q.closeEmitted=!1,Q.errored=null,Q.errorEmitted=!1,Q.finalCalled=!1,Q.prefinished=!1,Q.ended=Q.writable===!1,Q.ending=Q.writable===!1,Q.finished=Q.writable===!1}function f(U,Q,J){let{_readableState:X,_writableState:Y}=U;if(Y!==null&&Y!==void 0&&Y.destroyed||X!==null&&X!==void 0&&X.destroyed)return this;if(X!==null&&X!==void 0&&X.autoDestroy||Y!==null&&Y!==void 0&&Y.autoDestroy)U.destroy(Q);else if(Q){if(Q.stack,Y&&!Y.errored)Y.errored=Q;if(X&&!X.errored)X.errored=Q;if(J)W.nextTick(x,U,Q);else x(U,Q)}}function p(U,Q){if(typeof U._construct!=="function")return;let{_readableState:J,_writableState:X}=U;if(J)J.constructed=!1;if(X)X.constructed=!1;if(U.once(D,Q),U.listenerCount(D)>1)return;W.nextTick(s,U)}function s(U){let Q=!1;function J(X){if(Q){f(U,X!==null&&X!==void 0?X:new F);return}Q=!0;let{_readableState:Y,_writableState:O}=U,H=O||Y;if(Y)Y.constructed=!0;if(O)O.constructed=!0;if(H.destroyed)U.emit(A,X);else if(X)f(U,X,!0);else W.nextTick(O0,U)}try{U._construct((X)=>{W.nextTick(J,X)})}catch(X){W.nextTick(J,X)}}function O0(U){U.emit(D)}function C0(U){return(U===null||U===void 0?void 0:U.setHeader)&&typeof U.abort==="function"}function W0(U){U.emit("close")}function n(U,Q){U.emit("error",Q),W.nextTick(W0,U)}function I0(U,Q){if(!U||k(U))return;if(!Q&&!L(U))Q=new R;if(E(U))U.socket=null,U.destroy(Q);else if(C0(U))U.abort();else if(C0(U.req))U.req.abort();else if(typeof U.destroy==="function")U.destroy(Q);else if(typeof U.close==="function")U.close();else if(Q)W.nextTick(n,U,Q);else W.nextTick(W0,U);if(!U.destroyed)U[z]=!0}$.exports={construct:p,destroyer:I0,destroy:q,undestroy:g,errorOrDestroy:f}}),JX=o0((G,$)=>{var{ArrayIsArray:W,ObjectSetPrototypeOf:C}=a0(),{EventEmitter:F}=(ZZ(),l0(UZ));function R(z){F.call(this,z)}C(R.prototype,F.prototype),C(R,F),R.prototype.pipe=function(z,k){let L=this;function E(N){if(z.writable&&z.write(N)===!1&&L.pause)L.pause()}L.on("data",E);function A(){if(L.readable&&L.resume)L.resume()}if(z.on("drain",A),!z._isStdio&&(!k||k.end!==!1))L.on("end",P),L.on("close",q);let D=!1;function P(){if(D)return;D=!0,z.end()}function q(){if(D)return;if(D=!0,typeof z.destroy==="function")z.destroy()}function _(N){if(j(),F.listenerCount(this,"error")===0)this.emit("error",N)}V(L,"error",_),V(z,"error",_);function j(){L.removeListener("data",E),z.removeListener("drain",A),L.removeListener("end",P),L.removeListener("close",q),L.removeListener("error",_),z.removeListener("error",_),L.removeListener("end",j),L.removeListener("close",j),z.removeListener("close",j)}return L.on("end",j),L.on("close",j),z.on("close",j),z.emit("pipe",L),z};function V(z,k,L){if(typeof z.prependListener==="function")return z.prependListener(k,L);if(!z._events||!z._events[k])z.on(k,L);else if(W(z._events[k]))z._events[k].unshift(L);else z._events[k]=[L,z._events[k]]}$.exports={Stream:R,prependListener:V}}),MZ=o0((G,$)=>{var{SymbolDispose:W}=a0(),{AbortError:C,codes:F}=LU(),{isNodeStream:R,isWebStream:V,kControllerErrorFunction:z}=gU(),k=cU(),{ERR_INVALID_ARG_TYPE:L}=F,E,A=(D,P)=>{if(typeof D!=="object"||!("aborted"in D))throw new L(P,"AbortSignal",D)};$.exports.addAbortSignal=function(D,P){if(A(D,"signal"),!R(P)&&!V(P))throw new L("stream",["ReadableStream","WritableStream","Stream"],P);return $.exports.addAbortSignalNoValidate(D,P)},$.exports.addAbortSignalNoValidate=function(D,P){if(typeof D!=="object"||!("aborted"in D))return P;let q=R(P)?()=>{P.destroy(new C(void 0,{cause:D.reason}))}:()=>{P[z](new C(void 0,{cause:D.reason}))};if(D.aborted)q();else{E=E||RU().addAbortListener;let _=E(D,q);k(P,_[W])}return P}}),rJ=o0((G,$)=>{var{StringPrototypeSlice:W,SymbolIterator:C,TypedArrayPrototypeSet:F,Uint8Array:R}=a0(),{Buffer:V}=(TU(),l0(CU)),{inspect:z}=RU();$.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(k){let L={data:k,next:null};if(this.length>0)this.tail.next=L;else this.head=L;this.tail=L,++this.length}unshift(k){let L={data:k,next:this.head};if(this.length===0)this.tail=L;this.head=L,++this.length}shift(){if(this.length===0)return;let k=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,k}clear(){this.head=this.tail=null,this.length=0}join(k){if(this.length===0)return"";let L=this.head,E=""+L.data;while((L=L.next)!==null)E+=k+L.data;return E}concat(k){if(this.length===0)return V.alloc(0);let L=V.allocUnsafe(k>>>0),E=this.head,A=0;while(E)F(L,E.data,A),A+=E.data.length,E=E.next;return L}consume(k,L){let E=this.head.data;if(k<E.length){let A=E.slice(0,k);return this.head.data=E.slice(k),A}if(k===E.length)return this.shift();return L?this._getString(k):this._getBuffer(k)}first(){return this.head.data}*[C](){for(let k=this.head;k;k=k.next)yield k.data}_getString(k){let L="",E=this.head,A=0;do{let D=E.data;if(k>D.length)L+=D,k-=D.length;else{if(k===D.length)if(L+=D,++A,E.next)this.head=E.next;else this.head=this.tail=null;else L+=W(D,0,k),this.head=E,E.data=W(D,k);break}++A}while((E=E.next)!==null);return this.length-=A,L}_getBuffer(k){let L=V.allocUnsafe(k),E=k,A=this.head,D=0;do{let P=A.data;if(k>P.length)F(L,P,E-k),k-=P.length;else{if(k===P.length)if(F(L,P,E-k),++D,A.next)this.head=A.next;else this.head=this.tail=null;else F(L,new R(P.buffer,P.byteOffset,k),E-k),this.head=A,A.data=P.slice(k);break}++D}while((A=A.next)!==null);return this.length-=D,L}[Symbol.for("nodejs.util.inspect.custom")](k,L){return z(this,{...L,depth:0,customInspect:!1})}}}),RZ=o0((G,$)=>{var{MathFloor:W,NumberIsInteger:C}=a0(),{validateInteger:F}=QZ(),{ERR_INVALID_ARG_VALUE:R}=LU().codes,V=16384,z=16;function k(D,P,q){return D.highWaterMark!=null?D.highWaterMark:P?D[q]:null}function L(D){return D?z:V}function E(D,P){if(F(P,"value",0),D)z=P;else V=P}function A(D,P,q,_){let j=k(P,_,q);if(j!=null){if(!C(j)||j<0){let N=_?`options.${q}`:"options.highWaterMark";throw new R(N,j)}return W(j)}return L(D.objectMode)}$.exports={getHighWaterMark:A,getDefaultHighWaterMark:L,setDefaultHighWaterMark:E}}),eJ=o0((G,$)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var W=(TU(),l0(CU)),C=W.Buffer;function F(V,z){for(var k in V)z[k]=V[k]}if(C.from&&C.alloc&&C.allocUnsafe&&C.allocUnsafeSlow)$.exports=W;else F(W,G),G.Buffer=R;function R(V,z,k){return C(V,z,k)}R.prototype=Object.create(C.prototype),F(C,R),R.from=function(V,z,k){if(typeof V==="number")throw TypeError("Argument must not be a number");return C(V,z,k)},R.alloc=function(V,z,k){if(typeof V!=="number")throw TypeError("Argument must be a number");var L=C(V);if(z!==void 0)if(typeof k==="string")L.fill(z,k);else L.fill(z);else L.fill(0);return L},R.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return C(V)},R.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return W.SlowBuffer(V)}}),iJ=o0((G)=>{var $=eJ().Buffer,W=$.isEncoding||function(x){switch(x=""+x,x&&x.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C(x){if(!x)return"utf8";var g;while(!0)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(g)return;x=(""+x).toLowerCase(),g=!0}}function F(x){var g=C(x);if(typeof g!=="string"&&($.isEncoding===W||!W(x)))throw Error("Unknown encoding: "+x);return g||x}G.StringDecoder=R;function R(x){this.encoding=F(x);var g;switch(this.encoding){case"utf16le":this.text=D,this.end=P,g=4;break;case"utf8":this.fillLast=L,g=4;break;case"base64":this.text=q,this.end=_,g=3;break;default:this.write=j,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$.allocUnsafe(g)}R.prototype.write=function(x){if(x.length===0)return"";var g,f;if(this.lastNeed){if(g=this.fillLast(x),g===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;if(f<x.length)return g?g+this.text(x,f):this.text(x,f);return g||""},R.prototype.end=A,R.prototype.text=E,R.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function V(x){if(x<=127)return 0;else if(x>>5===6)return 2;else if(x>>4===14)return 3;else if(x>>3===30)return 4;return x>>6===2?-1:-2}function z(x,g,f){var p=g.length-1;if(p<f)return 0;var s=V(g[p]);if(s>=0){if(s>0)x.lastNeed=s-1;return s}if(--p<f||s===-2)return 0;if(s=V(g[p]),s>=0){if(s>0)x.lastNeed=s-2;return s}if(--p<f||s===-2)return 0;if(s=V(g[p]),s>=0){if(s>0)if(s===2)s=0;else x.lastNeed=s-3;return s}return 0}function k(x,g,f){if((g[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&g.length>2){if((g[2]&192)!==128)return x.lastNeed=2,"�"}}}function L(x){var g=this.lastTotal-this.lastNeed,f=k(this,x,g);if(f!==void 0)return f;if(this.lastNeed<=x.length)return x.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,g,0,x.length),this.lastNeed-=x.length}function E(x,g){var f=z(this,x,g);if(!this.lastNeed)return x.toString("utf8",g);this.lastTotal=f;var p=x.length-(f-this.lastNeed);return x.copy(this.lastChar,0,p),x.toString("utf8",g,p)}function A(x){var g=x&&x.length?this.write(x):"";if(this.lastNeed)return g+"�";return g}function D(x,g){if((x.length-g)%2===0){var f=x.toString("utf16le",g);if(f){var p=f.charCodeAt(f.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",g,x.length-1)}function P(x){var g=x&&x.length?this.write(x):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,f)}return g}function q(x,g){var f=(x.length-g)%3;if(f===0)return x.toString("base64",g);if(this.lastNeed=3-f,this.lastTotal=3,f===1)this.lastChar[0]=x[x.length-1];else this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1];return x.toString("base64",g,x.length-f)}function _(x){var g=x&&x.length?this.write(x):"";if(this.lastNeed)return g+this.lastChar.toString("base64",0,3-this.lastNeed);return g}function j(x){return x.toString(this.encoding)}function N(x){return x&&x.length?this.write(x):""}}),jQ=o0((G,$)=>{var W=oU(),{PromisePrototypeThen:C,SymbolAsyncIterator:F,SymbolIterator:R}=a0(),{Buffer:V}=(TU(),l0(CU)),{ERR_INVALID_ARG_TYPE:z,ERR_STREAM_NULL_VALUES:k}=LU().codes;function L(E,A,D){let P;if(typeof A==="string"||A instanceof V)return new E({objectMode:!0,...D,read(){this.push(A),this.push(null)}});let q;if(A&&A[F])q=!0,P=A[F]();else if(A&&A[R])q=!1,P=A[R]();else throw new z("iterable",["Iterable"],A);let _=new E({objectMode:!0,highWaterMark:1,...D}),j=!1;_._read=function(){if(!j)j=!0,x()},_._destroy=function(g,f){C(N(g),()=>W.nextTick(f,g),(p)=>W.nextTick(f,p||g))};async function N(g){let f=g!==void 0&&g!==null,p=typeof P.throw==="function";if(f&&p){let{value:s,done:O0}=await P.throw(g);if(await s,O0)return}if(typeof P.return==="function"){let{value:s}=await P.return();await s}}async function x(){for(;;){try{let{value:g,done:f}=q?await P.next():P.next();if(f)_.push(null);else{let p=g&&typeof g.then==="function"?await g:g;if(p===null)throw j=!1,new k;else if(_.push(p))continue;else j=!1}}catch(g){_.destroy(g)}break}}return _}$.exports=L}),SZ=o0((G,$)=>{var W=oU(),{ArrayPrototypeIndexOf:C,NumberIsInteger:F,NumberIsNaN:R,NumberParseInt:V,ObjectDefineProperties:z,ObjectKeys:k,ObjectSetPrototypeOf:L,Promise:E,SafeSet:A,SymbolAsyncDispose:D,SymbolAsyncIterator:P,Symbol:q}=a0();$.exports=i,i.ReadableState=w0;var{EventEmitter:_}=(ZZ(),l0(UZ)),{Stream:j,prependListener:N}=JX(),{Buffer:x}=(TU(),l0(CU)),{addAbortSignal:g}=MZ(),f=cU(),p=RU().debuglog("stream",(y)=>{p=y}),s=rJ(),O0=aU(),{getHighWaterMark:C0,getDefaultHighWaterMark:W0}=RZ(),{aggregateTwoErrors:n,codes:{ERR_INVALID_ARG_TYPE:I0,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_OUT_OF_RANGE:Q,ERR_STREAM_PUSH_AFTER_EOF:J,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:X},AbortError:Y}=LU(),{validateObject:O}=QZ(),H=q("kPaused"),{StringDecoder:I}=iJ(),Z=jQ();L(i.prototype,j.prototype),L(i,j);var K=()=>{},{errorOrDestroy:S}=O0,T=1,B=2,c=4,d=8,r=16,z0=32,Z0=64,t=128,$0=256,e=512,Y0=1024,y0=2048,u=4096,l=8192,K0=16384,U0=32768,Q0=65536,R0=131072,b=262144;function a(y){return{enumerable:!1,get(){return(this.state&y)!==0},set(m){if(m)this.state|=y;else this.state&=~y}}}z(w0.prototype,{objectMode:a(T),ended:a(B),endEmitted:a(c),reading:a(d),constructed:a(r),sync:a(z0),needReadable:a(Z0),emittedReadable:a(t),readableListening:a($0),resumeScheduled:a(e),errorEmitted:a(Y0),emitClose:a(y0),autoDestroy:a(u),destroyed:a(l),closed:a(K0),closeEmitted:a(U0),multiAwaitDrain:a(Q0),readingMore:a(R0),dataEmitted:a(b)});function w0(y,m,J0){if(typeof J0!=="boolean")J0=m instanceof NU();if(this.state=y0|u|r|z0,y&&y.objectMode)this.state|=T;if(J0&&y&&y.readableObjectMode)this.state|=T;if(this.highWaterMark=y?C0(this,y,"readableHighWaterMark",J0):W0(!1),this.buffer=new s,this.length=0,this.pipes=[],this.flowing=null,this[H]=null,y&&y.emitClose===!1)this.state&=~y0;if(y&&y.autoDestroy===!1)this.state&=~u;if(this.errored=null,this.defaultEncoding=y&&y.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,y&&y.encoding)this.decoder=new I(y.encoding),this.encoding=y.encoding}function i(y){if(!(this instanceof i))return new i(y);let m=this instanceof NU();if(this._readableState=new w0(y,this,m),y){if(typeof y.read==="function")this._read=y.read;if(typeof y.destroy==="function")this._destroy=y.destroy;if(typeof y.construct==="function")this._construct=y.construct;if(y.signal&&!m)g(y.signal,this)}j.call(this,y),O0.construct(this,()=>{if(this._readableState.needReadable)X0(this,this._readableState)})}i.prototype.destroy=O0.destroy,i.prototype._undestroy=O0.undestroy,i.prototype._destroy=function(y,m){m(y)},i.prototype[_.captureRejectionSymbol]=function(y){this.destroy(y)},i.prototype[D]=function(){let y;if(!this.destroyed)y=this.readableEnded?null:new Y,this.destroy(y);return new E((m,J0)=>f(this,(G0)=>G0&&G0!==y?J0(G0):m(null)))},i.prototype.push=function(y,m){return V0(this,y,m,!1)},i.prototype.unshift=function(y,m){return V0(this,y,m,!0)};function V0(y,m,J0,G0){p("readableAddChunk",m);let f0=y._readableState,E0;if((f0.state&T)===0){if(typeof m==="string"){if(J0=J0||f0.defaultEncoding,f0.encoding!==J0)if(G0&&f0.encoding)m=x.from(m,J0).toString(f0.encoding);else m=x.from(m,J0),J0=""}else if(m instanceof x)J0="";else if(j._isUint8Array(m))m=j._uint8ArrayToBuffer(m),J0="";else if(m!=null)E0=new I0("chunk",["string","Buffer","Uint8Array"],m)}if(E0)S(y,E0);else if(m===null)f0.state&=~d,h(y,f0);else if((f0.state&T)!==0||m&&m.length>0)if(G0)if((f0.state&c)!==0)S(y,new X);else if(f0.destroyed||f0.errored)return!1;else c0(y,f0,m,!0);else if(f0.ended)S(y,new J);else if(f0.destroyed||f0.errored)return!1;else if(f0.state&=~d,f0.decoder&&!J0)if(m=f0.decoder.write(m),f0.objectMode||m.length!==0)c0(y,f0,m,!1);else X0(y,f0);else c0(y,f0,m,!1);else if(!G0)f0.state&=~d,X0(y,f0);return!f0.ended&&(f0.length<f0.highWaterMark||f0.length===0)}function c0(y,m,J0,G0){if(m.flowing&&m.length===0&&!m.sync&&y.listenerCount("data")>0){if((m.state&Q0)!==0)m.awaitDrainWriters.clear();else m.awaitDrainWriters=null;m.dataEmitted=!0,y.emit("data",J0)}else{if(m.length+=m.objectMode?1:J0.length,G0)m.buffer.unshift(J0);else m.buffer.push(J0);if((m.state&Z0)!==0)o(y)}X0(y,m)}i.prototype.isPaused=function(){let y=this._readableState;return y[H]===!0||y.flowing===!1},i.prototype.setEncoding=function(y){let m=new I(y);this._readableState.decoder=m,this._readableState.encoding=this._readableState.decoder.encoding;let J0=this._readableState.buffer,G0="";for(let f0 of J0)G0+=m.write(f0);if(J0.clear(),G0!=="")J0.push(G0);return this._readableState.length=G0.length,this};var M=1073741824;function v(y){if(y>M)throw new Q("size","<= 1GiB",y);else y--,y|=y>>>1,y|=y>>>2,y|=y>>>4,y|=y>>>8,y|=y>>>16,y++;return y}function w(y,m){if(y<=0||m.length===0&&m.ended)return 0;if((m.state&T)!==0)return 1;if(R(y)){if(m.flowing&&m.length)return m.buffer.first().length;return m.length}if(y<=m.length)return y;return m.ended?m.length:0}i.prototype.read=function(y){if(p("read",y),y===void 0)y=NaN;else if(!F(y))y=V(y,10);let m=this._readableState,J0=y;if(y>m.highWaterMark)m.highWaterMark=v(y);if(y!==0)m.state&=~t;if(y===0&&m.needReadable&&((m.highWaterMark!==0?m.length>=m.highWaterMark:m.length>0)||m.ended)){if(p("read: emitReadable",m.length,m.ended),m.length===0&&m.ended)HU(this);else o(this);return null}if(y=w(y,m),y===0&&m.ended){if(m.length===0)HU(this);return null}let G0=(m.state&Z0)!==0;if(p("need readable",G0),m.length===0||m.length-y<m.highWaterMark)G0=!0,p("length less than watermark",G0);if(m.ended||m.reading||m.destroyed||m.errored||!m.constructed)G0=!1,p("reading, ended or constructing",G0);else if(G0){if(p("do read"),m.state|=d|z0,m.length===0)m.state|=Z0;try{this._read(m.highWaterMark)}catch(E0){S(this,E0)}if(m.state&=~z0,!m.reading)y=w(J0,m)}let f0;if(y>0)f0=P0(y,m);else f0=null;if(f0===null)m.needReadable=m.length<=m.highWaterMark,y=0;else if(m.length-=y,m.multiAwaitDrain)m.awaitDrainWriters.clear();else m.awaitDrainWriters=null;if(m.length===0){if(!m.ended)m.needReadable=!0;if(J0!==y&&m.ended)HU(this)}if(f0!==null&&!m.errorEmitted&&!m.closeEmitted)m.dataEmitted=!0,this.emit("data",f0);return f0};function h(y,m){if(p("onEofChunk"),m.ended)return;if(m.decoder){let J0=m.decoder.end();if(J0&&J0.length)m.buffer.push(J0),m.length+=m.objectMode?1:J0.length}if(m.ended=!0,m.sync)o(y);else m.needReadable=!1,m.emittedReadable=!0,H0(y)}function o(y){let m=y._readableState;if(p("emitReadable",m.needReadable,m.emittedReadable),m.needReadable=!1,!m.emittedReadable)p("emitReadable",m.flowing),m.emittedReadable=!0,W.nextTick(H0,y)}function H0(y){let m=y._readableState;if(p("emitReadable_",m.destroyed,m.length,m.ended),!m.destroyed&&!m.errored&&(m.length||m.ended))y.emit("readable"),m.emittedReadable=!1;m.needReadable=!m.flowing&&!m.ended&&m.length<=m.highWaterMark,q0(y)}function X0(y,m){if(!m.readingMore&&m.constructed)m.readingMore=!0,W.nextTick(F0,y,m)}function F0(y,m){while(!m.reading&&!m.ended&&(m.length<m.highWaterMark||m.flowing&&m.length===0)){let J0=m.length;if(p("maybeReadMore read 0"),y.read(0),J0===m.length)break}m.readingMore=!1}i.prototype._read=function(y){throw new U("_read()")},i.prototype.pipe=function(y,m){let J0=this,G0=this._readableState;if(G0.pipes.length===1){if(!G0.multiAwaitDrain)G0.multiAwaitDrain=!0,G0.awaitDrainWriters=new A(G0.awaitDrainWriters?[G0.awaitDrainWriters]:[])}G0.pipes.push(y),p("pipe count=%d opts=%j",G0.pipes.length,m);let f0=(!m||m.end!==!1)&&y!==W.stdout&&y!==W.stderr?M0:p0;if(G0.endEmitted)W.nextTick(f0);else J0.once("end",f0);y.on("unpipe",E0);function E0(m0,n0){if(p("onunpipe"),m0===J0){if(n0&&n0.hasUnpiped===!1)n0.hasUnpiped=!0,g0()}}function M0(){p("onend"),y.end()}let r0,j0=!1;function g0(){if(p("cleanup"),y.removeListener("close",e0),y.removeListener("finish",h0),r0)y.removeListener("drain",r0);if(y.removeListener("error",S0),y.removeListener("unpipe",E0),J0.removeListener("end",M0),J0.removeListener("end",p0),J0.removeListener("data",v0),j0=!0,r0&&G0.awaitDrainWriters&&(!y._writableState||y._writableState.needDrain))r0()}function zU(){if(!j0){if(G0.pipes.length===1&&G0.pipes[0]===y)p("false write response, pause",0),G0.awaitDrainWriters=y,G0.multiAwaitDrain=!1;else if(G0.pipes.length>1&&G0.pipes.includes(y))p("false write response, pause",G0.awaitDrainWriters.size),G0.awaitDrainWriters.add(y);J0.pause()}if(!r0)r0=d0(J0,y),y.on("drain",r0)}J0.on("data",v0);function v0(m0){p("ondata");let n0=y.write(m0);if(p("dest.write",n0),n0===!1)zU()}function S0(m0){if(p("onerror",m0),p0(),y.removeListener("error",S0),y.listenerCount("error")===0){let n0=y._writableState||y._readableState;if(n0&&!n0.errorEmitted)S(y,m0);else y.emit("error",m0)}}N(y,"error",S0);function e0(){y.removeListener("finish",h0),p0()}y.once("close",e0);function h0(){p("onfinish"),y.removeListener("close",e0),p0()}y.once("finish",h0);function p0(){p("unpipe"),J0.unpipe(y)}if(y.emit("pipe",J0),y.writableNeedDrain===!0)zU();else if(!G0.flowing)p("pipe resume"),J0.resume();return y};function d0(y,m){return function(){let J0=y._readableState;if(J0.awaitDrainWriters===m)p("pipeOnDrain",1),J0.awaitDrainWriters=null;else if(J0.multiAwaitDrain)p("pipeOnDrain",J0.awaitDrainWriters.size),J0.awaitDrainWriters.delete(m);if((!J0.awaitDrainWriters||J0.awaitDrainWriters.size===0)&&y.listenerCount("data"))y.resume()}}i.prototype.unpipe=function(y){let m=this._readableState,J0={hasUnpiped:!1};if(m.pipes.length===0)return this;if(!y){let f0=m.pipes;m.pipes=[],this.pause();for(let E0=0;E0<f0.length;E0++)f0[E0].emit("unpipe",this,{hasUnpiped:!1});return this}let G0=C(m.pipes,y);if(G0===-1)return this;if(m.pipes.splice(G0,1),m.pipes.length===0)this.pause();return y.emit("unpipe",this,J0),this},i.prototype.on=function(y,m){let J0=j.prototype.on.call(this,y,m),G0=this._readableState;if(y==="data"){if(G0.readableListening=this.listenerCount("readable")>0,G0.flowing!==!1)this.resume()}else if(y==="readable"){if(!G0.endEmitted&&!G0.readableListening){if(G0.readableListening=G0.needReadable=!0,G0.flowing=!1,G0.emittedReadable=!1,p("on readable",G0.length,G0.reading),G0.length)o(this);else if(!G0.reading)W.nextTick(T0,this)}}return J0},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=function(y,m){let J0=j.prototype.removeListener.call(this,y,m);if(y==="readable")W.nextTick(D0,this);return J0},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(y){let m=j.prototype.removeAllListeners.apply(this,arguments);if(y==="readable"||y===void 0)W.nextTick(D0,this);return m};function D0(y){let m=y._readableState;if(m.readableListening=y.listenerCount("readable")>0,m.resumeScheduled&&m[H]===!1)m.flowing=!0;else if(y.listenerCount("data")>0)y.resume();else if(!m.readableListening)m.flowing=null}function T0(y){p("readable nexttick read 0"),y.read(0)}i.prototype.resume=function(){let y=this._readableState;if(!y.flowing)p("resume"),y.flowing=!y.readableListening,b0(this,y);return y[H]=!1,this};function b0(y,m){if(!m.resumeScheduled)m.resumeScheduled=!0,W.nextTick(_0,y,m)}function _0(y,m){if(p("resume",m.reading),!m.reading)y.read(0);if(m.resumeScheduled=!1,y.emit("resume"),q0(y),m.flowing&&!m.reading)y.read(0)}i.prototype.pause=function(){if(p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)p("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[H]=!0,this};function q0(y){let m=y._readableState;p("flow",m.flowing);while(m.flowing&&y.read()!==null);}i.prototype.wrap=function(y){let m=!1;y.on("data",(G0)=>{if(!this.push(G0)&&y.pause)m=!0,y.pause()}),y.on("end",()=>{this.push(null)}),y.on("error",(G0)=>{S(this,G0)}),y.on("close",()=>{this.destroy()}),y.on("destroy",()=>{this.destroy()}),this._read=()=>{if(m&&y.resume)m=!1,y.resume()};let J0=k(y);for(let G0=1;G0<J0.length;G0++){let f0=J0[G0];if(this[f0]===void 0&&typeof y[f0]==="function")this[f0]=y[f0].bind(y)}return this},i.prototype[P]=function(){return DU(this)},i.prototype.iterator=function(y){if(y!==void 0)O(y,"options");return DU(this,y)};function DU(y,m){if(typeof y.read!=="function")y=i.wrap(y,{objectMode:!0});let J0=B0(y,m);return J0.stream=y,J0}async function*B0(y,m){let J0=K;function G0(M0){if(this===y)J0(),J0=K;else J0=M0}y.on("readable",G0);let f0,E0=f(y,{writable:!1},(M0)=>{f0=M0?n(f0,M0):null,J0(),J0=K});try{while(!0){let M0=y.destroyed?null:y.read();if(M0!==null)yield M0;else if(f0)throw f0;else if(f0===null)return;else await new E(G0)}}catch(M0){throw f0=n(f0,M0),f0}finally{if((f0||(m===null||m===void 0?void 0:m.destroyOnReturn)!==!1)&&(f0===void 0||y._readableState.autoDestroy))O0.destroyer(y,null);else y.off("readable",G0),E0()}}z(i.prototype,{readable:{__proto__:null,get(){let y=this._readableState;return!!y&&y.readable!==!1&&!y.destroyed&&!y.errorEmitted&&!y.endEmitted},set(y){if(this._readableState)this._readableState.readable=!!y}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){if(this._readableState)this._readableState.flowing=y}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(y){if(!this._readableState)return;this._readableState.destroyed=y}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),z(w0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[H]!==!1},set(y){this[H]=!!y}}}),i._fromList=P0;function P0(y,m){if(m.length===0)return null;let J0;if(m.objectMode)J0=m.buffer.shift();else if(!y||y>=m.length){if(m.decoder)J0=m.buffer.join("");else if(m.buffer.length===1)J0=m.buffer.first();else J0=m.buffer.concat(m.length);m.buffer.clear()}else J0=m.buffer.consume(y,m.decoder);return J0}function HU(y){let m=y._readableState;if(p("endReadable",m.endEmitted),!m.endEmitted)m.ended=!0,W.nextTick(x0,m,y)}function x0(y,m){if(p("endReadableNT",y.endEmitted,y.length),!y.errored&&!y.closeEmitted&&!y.endEmitted&&y.length===0){if(y.endEmitted=!0,m.emit("end"),m.writable&&m.allowHalfOpen===!1)W.nextTick(N0,m);else if(y.autoDestroy){let J0=m._writableState;if(!J0||J0.autoDestroy&&(J0.finished||J0.writable===!1))m.destroy()}}}function N0(y){if(y.writable&&!y.writableEnded&&!y.destroyed)y.end()}i.from=function(y,m){return Z(i,y,m)};var FU;function k0(){if(FU===void 0)FU={};return FU}i.fromWeb=function(y,m){return k0().newStreamReadableFromReadableStream(y,m)},i.toWeb=function(y,m){return k0().newReadableStreamFromStreamReadable(y,m)},i.wrap=function(y,m){var J0,G0;return new i({objectMode:(J0=(G0=y.readableObjectMode)!==null&&G0!==void 0?G0:y.objectMode)!==null&&J0!==void 0?J0:!0,...m,destroy(f0,E0){O0.destroyer(y,f0),E0(f0)}}).wrap(y)}}),VX=o0((G,$)=>{var W=oU(),{ArrayPrototypeSlice:C,Error:F,FunctionPrototypeSymbolHasInstance:R,ObjectDefineProperty:V,ObjectDefineProperties:z,ObjectSetPrototypeOf:k,StringPrototypeToLowerCase:L,Symbol:E,SymbolHasInstance:A}=a0();$.exports=O,O.WritableState=X;var{EventEmitter:D}=(ZZ(),l0(UZ)),P=JX().Stream,{Buffer:q}=(TU(),l0(CU)),_=aU(),{addAbortSignal:j}=MZ(),{getHighWaterMark:N,getDefaultHighWaterMark:x}=RZ(),{ERR_INVALID_ARG_TYPE:g,ERR_METHOD_NOT_IMPLEMENTED:f,ERR_MULTIPLE_CALLBACK:p,ERR_STREAM_CANNOT_PIPE:s,ERR_STREAM_DESTROYED:O0,ERR_STREAM_ALREADY_FINISHED:C0,ERR_STREAM_NULL_VALUES:W0,ERR_STREAM_WRITE_AFTER_END:n,ERR_UNKNOWN_ENCODING:I0}=LU().codes,{errorOrDestroy:U}=_;k(O.prototype,P.prototype),k(O,P);function Q(){}var J=E("kOnFinished");function X(u,l,K0){if(typeof K0!=="boolean")K0=l instanceof NU();if(this.objectMode=!!(u&&u.objectMode),K0)this.objectMode=this.objectMode||!!(u&&u.writableObjectMode);this.highWaterMark=u?N(this,u,"writableHighWaterMark",K0):x(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let U0=!!(u&&u.decodeStrings===!1);this.decodeStrings=!U0,this.defaultEncoding=u&&u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=S.bind(void 0,l),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Y(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!u||u.emitClose!==!1,this.autoDestroy=!u||u.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[J]=[]}function Y(u){u.buffered=[],u.bufferedIndex=0,u.allBuffers=!0,u.allNoop=!0}X.prototype.getBuffer=function(){return C(this.buffered,this.bufferedIndex)},V(X.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function O(u){let l=this instanceof NU();if(!l&&!R(O,this))return new O(u);if(this._writableState=new X(u,this,l),u){if(typeof u.write==="function")this._write=u.write;if(typeof u.writev==="function")this._writev=u.writev;if(typeof u.destroy==="function")this._destroy=u.destroy;if(typeof u.final==="function")this._final=u.final;if(typeof u.construct==="function")this._construct=u.construct;if(u.signal)j(u.signal,this)}P.call(this,u),_.construct(this,()=>{let K0=this._writableState;if(!K0.writing)d(this,K0);t(this,K0)})}V(O,A,{__proto__:null,value:function(u){if(R(this,u))return!0;if(this!==O)return!1;return u&&u._writableState instanceof X}}),O.prototype.pipe=function(){U(this,new s)};function H(u,l,K0,U0){let Q0=u._writableState;if(typeof K0==="function")U0=K0,K0=Q0.defaultEncoding;else{if(!K0)K0=Q0.defaultEncoding;else if(K0!=="buffer"&&!q.isEncoding(K0))throw new I0(K0);if(typeof U0!=="function")U0=Q}if(l===null)throw new W0;else if(!Q0.objectMode)if(typeof l==="string"){if(Q0.decodeStrings!==!1)l=q.from(l,K0),K0="buffer"}else if(l instanceof q)K0="buffer";else if(P._isUint8Array(l))l=P._uint8ArrayToBuffer(l),K0="buffer";else throw new g("chunk",["string","Buffer","Uint8Array"],l);let R0;if(Q0.ending)R0=new n;else if(Q0.destroyed)R0=new O0("write");if(R0)return W.nextTick(U0,R0),U(u,R0,!0),R0;return Q0.pendingcb++,I(u,Q0,l,K0,U0)}O.prototype.write=function(u,l,K0){return H(this,u,l,K0)===!0},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){let u=this._writableState;if(u.corked){if(u.corked--,!u.writing)d(this,u)}},O.prototype.setDefaultEncoding=function(u){if(typeof u==="string")u=L(u);if(!q.isEncoding(u))throw new I0(u);return this._writableState.defaultEncoding=u,this};function I(u,l,K0,U0,Q0){let R0=l.objectMode?1:K0.length;l.length+=R0;let b=l.length<l.highWaterMark;if(!b)l.needDrain=!0;if(l.writing||l.corked||l.errored||!l.constructed){if(l.buffered.push({chunk:K0,encoding:U0,callback:Q0}),l.allBuffers&&U0!=="buffer")l.allBuffers=!1;if(l.allNoop&&Q0!==Q)l.allNoop=!1}else l.writelen=R0,l.writecb=Q0,l.writing=!0,l.sync=!0,u._write(K0,U0,l.onwrite),l.sync=!1;return b&&!l.errored&&!l.destroyed}function Z(u,l,K0,U0,Q0,R0,b){if(l.writelen=U0,l.writecb=b,l.writing=!0,l.sync=!0,l.destroyed)l.onwrite(new O0("write"));else if(K0)u._writev(Q0,l.onwrite);else u._write(Q0,R0,l.onwrite);l.sync=!1}function K(u,l,K0,U0){--l.pendingcb,U0(K0),c(l),U(u,K0)}function S(u,l){let K0=u._writableState,U0=K0.sync,Q0=K0.writecb;if(typeof Q0!=="function"){U(u,new p);return}if(K0.writing=!1,K0.writecb=null,K0.length-=K0.writelen,K0.writelen=0,l){if(l.stack,!K0.errored)K0.errored=l;if(u._readableState&&!u._readableState.errored)u._readableState.errored=l;if(U0)W.nextTick(K,u,K0,l,Q0);else K(u,K0,l,Q0)}else{if(K0.buffered.length>K0.bufferedIndex)d(u,K0);if(U0)if(K0.afterWriteTickInfo!==null&&K0.afterWriteTickInfo.cb===Q0)K0.afterWriteTickInfo.count++;else K0.afterWriteTickInfo={count:1,cb:Q0,stream:u,state:K0},W.nextTick(T,K0.afterWriteTickInfo);else B(u,K0,1,Q0)}}function T({stream:u,state:l,count:K0,cb:U0}){return l.afterWriteTickInfo=null,B(u,l,K0,U0)}function B(u,l,K0,U0){if(!l.ending&&!u.destroyed&&l.length===0&&l.needDrain)l.needDrain=!1,u.emit("drain");while(K0-- >0)l.pendingcb--,U0();if(l.destroyed)c(l);t(u,l)}function c(u){if(u.writing)return;for(let Q0=u.bufferedIndex;Q0<u.buffered.length;++Q0){var l;let{chunk:R0,callback:b}=u.buffered[Q0],a=u.objectMode?1:R0.length;u.length-=a,b((l=u.errored)!==null&&l!==void 0?l:new O0("write"))}let K0=u[J].splice(0);for(let Q0=0;Q0<K0.length;Q0++){var U0;K0[Q0]((U0=u.errored)!==null&&U0!==void 0?U0:new O0("end"))}Y(u)}function d(u,l){if(l.corked||l.bufferProcessing||l.destroyed||!l.constructed)return;let{buffered:K0,bufferedIndex:U0,objectMode:Q0}=l,R0=K0.length-U0;if(!R0)return;let b=U0;if(l.bufferProcessing=!0,R0>1&&u._writev){l.pendingcb-=R0-1;let a=l.allNoop?Q:(i)=>{for(let V0=b;V0<K0.length;++V0)K0[V0].callback(i)},w0=l.allNoop&&b===0?K0:C(K0,b);w0.allBuffers=l.allBuffers,Z(u,l,!0,l.length,w0,"",a),Y(l)}else{do{let{chunk:a,encoding:w0,callback:i}=K0[b];K0[b++]=null;let V0=Q0?1:a.length;Z(u,l,!1,V0,a,w0,i)}while(b<K0.length&&!l.writing);if(b===K0.length)Y(l);else if(b>256)K0.splice(0,b),l.bufferedIndex=0;else l.bufferedIndex=b}l.bufferProcessing=!1}O.prototype._write=function(u,l,K0){if(this._writev)this._writev([{chunk:u,encoding:l}],K0);else throw new f("_write()")},O.prototype._writev=null,O.prototype.end=function(u,l,K0){let U0=this._writableState;if(typeof u==="function")K0=u,u=null,l=null;else if(typeof l==="function")K0=l,l=null;let Q0;if(u!==null&&u!==void 0){let R0=H(this,u,l);if(R0 instanceof F)Q0=R0}if(U0.corked)U0.corked=1,this.uncork();if(Q0);else if(!U0.errored&&!U0.ending)U0.ending=!0,t(this,U0,!0),U0.ended=!0;else if(U0.finished)Q0=new C0("end");else if(U0.destroyed)Q0=new O0("end");if(typeof K0==="function")if(Q0||U0.finished)W.nextTick(K0,Q0);else U0[J].push(K0);return this};function r(u){return u.ending&&!u.destroyed&&u.constructed&&u.length===0&&!u.errored&&u.buffered.length===0&&!u.finished&&!u.writing&&!u.errorEmitted&&!u.closeEmitted}function z0(u,l){let K0=!1;function U0(Q0){if(K0){U(u,Q0!==null&&Q0!==void 0?Q0:p());return}if(K0=!0,l.pendingcb--,Q0){let R0=l[J].splice(0);for(let b=0;b<R0.length;b++)R0[b](Q0);U(u,Q0,l.sync)}else if(r(l))l.prefinished=!0,u.emit("prefinish"),l.pendingcb++,W.nextTick($0,u,l)}l.sync=!0,l.pendingcb++;try{u._final(U0)}catch(Q0){U0(Q0)}l.sync=!1}function Z0(u,l){if(!l.prefinished&&!l.finalCalled)if(typeof u._final==="function"&&!l.destroyed)l.finalCalled=!0,z0(u,l);else l.prefinished=!0,u.emit("prefinish")}function t(u,l,K0){if(r(l)){if(Z0(u,l),l.pendingcb===0){if(K0)l.pendingcb++,W.nextTick((U0,Q0)=>{if(r(Q0))$0(U0,Q0);else Q0.pendingcb--},u,l);else if(r(l))l.pendingcb++,$0(u,l)}}}function $0(u,l){l.pendingcb--,l.finished=!0;let K0=l[J].splice(0);for(let U0=0;U0<K0.length;U0++)K0[U0]();if(u.emit("finish"),l.autoDestroy){let U0=u._readableState;if(!U0||U0.autoDestroy&&(U0.endEmitted||U0.readable===!1))u.destroy()}}z(O.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(u){if(this._writableState)this._writableState.destroyed=u}},writable:{__proto__:null,get(){let u=this._writableState;return!!u&&u.writable!==!1&&!u.destroyed&&!u.errored&&!u.ending&&!u.ended},set(u){if(this._writableState)this._writableState.writable=!!u}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let u=this._writableState;if(!u)return!1;return!u.destroyed&&!u.ending&&u.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var e=_.destroy;O.prototype.destroy=function(u,l){let K0=this._writableState;if(!K0.destroyed&&(K0.bufferedIndex<K0.buffered.length||K0[J].length))W.nextTick(c,K0);return e.call(this,u,l),this},O.prototype._undestroy=_.undestroy,O.prototype._destroy=function(u,l){l(u)},O.prototype[D.captureRejectionSymbol]=function(u){this.destroy(u)};var Y0;function y0(){if(Y0===void 0)Y0={};return Y0}O.fromWeb=function(u,l){return y0().newStreamWritableFromWritableStream(u,l)},O.toWeb=function(u){return y0().newWritableStreamFromStreamWritable(u)}}),UV=o0((G,$)=>{var W=oU(),C=(TU(),l0(CU)),{isReadable:F,isWritable:R,isIterable:V,isNodeStream:z,isReadableNodeStream:k,isWritableNodeStream:L,isDuplexNodeStream:E,isReadableStream:A,isWritableStream:D}=gU(),P=cU(),{AbortError:q,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:j}}=LU(),{destroyer:N}=aU(),x=NU(),g=SZ(),f=VX(),{createDeferredPromise:p}=RU(),s=jQ(),O0=globalThis.Blob||C.Blob,C0=typeof O0<"u"?function(J){return J instanceof O0}:function(J){return!1},W0=globalThis.AbortController||XZ().AbortController,{FunctionPrototypeCall:n}=a0();class I0 extends x{constructor(J){super(J);if((J===null||J===void 0?void 0:J.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((J===null||J===void 0?void 0:J.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}$.exports=function J(X,Y){if(E(X))return X;if(k(X))return Q({readable:X});if(L(X))return Q({writable:X});if(z(X))return Q({writable:!1,readable:!1});if(A(X))return Q({readable:g.fromWeb(X)});if(D(X))return Q({writable:f.fromWeb(X)});if(typeof X==="function"){let{value:H,write:I,final:Z,destroy:K}=U(X);if(V(H))return s(I0,H,{objectMode:!0,write:I,final:Z,destroy:K});let S=H===null||H===void 0?void 0:H.then;if(typeof S==="function"){let T,B=n(S,H,(c)=>{if(c!=null)throw new j("nully","body",c)},(c)=>{N(T,c)});return T=new I0({objectMode:!0,readable:!1,write:I,final(c){Z(async()=>{try{await B,W.nextTick(c,null)}catch(d){W.nextTick(c,d)}})},destroy:K})}throw new j("Iterable, AsyncIterable or AsyncFunction",Y,H)}if(C0(X))return J(X.arrayBuffer());if(V(X))return s(I0,X,{objectMode:!0,writable:!1});if(A(X===null||X===void 0?void 0:X.readable)&&D(X===null||X===void 0?void 0:X.writable))return I0.fromWeb(X);if(typeof(X===null||X===void 0?void 0:X.writable)==="object"||typeof(X===null||X===void 0?void 0:X.readable)==="object"){let H=X!==null&&X!==void 0&&X.readable?k(X===null||X===void 0?void 0:X.readable)?X===null||X===void 0?void 0:X.readable:J(X.readable):void 0,I=X!==null&&X!==void 0&&X.writable?L(X===null||X===void 0?void 0:X.writable)?X===null||X===void 0?void 0:X.writable:J(X.writable):void 0;return Q({readable:H,writable:I})}let O=X===null||X===void 0?void 0:X.then;if(typeof O==="function"){let H;return n(O,X,(I)=>{if(I!=null)H.push(I);H.push(null)},(I)=>{N(H,I)}),H=new I0({objectMode:!0,writable:!1,read(){}})}throw new _(Y,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],X)};function U(J){let{promise:X,resolve:Y}=p(),O=new W0,H=O.signal;return{value:J(async function*(){while(!0){let I=X;X=null;let{chunk:Z,done:K,cb:S}=await I;if(W.nextTick(S),K)return;if(H.aborted)throw new q(void 0,{cause:H.reason});({promise:X,resolve:Y}=p()),yield Z}}(),{signal:H}),write(I,Z,K){let S=Y;Y=null,S({chunk:I,done:!1,cb:K})},final(I){let Z=Y;Y=null,Z({done:!0,cb:I})},destroy(I,Z){O.abort(),Z(I)}}}function Q(J){let X=J.readable&&typeof J.readable.read!=="function"?g.wrap(J.readable):J.readable,Y=J.writable,O=!!F(X),H=!!R(Y),I,Z,K,S,T;function B(c){let d=S;if(S=null,d)d(c);else if(c)T.destroy(c)}if(T=new I0({readableObjectMode:!!(X!==null&&X!==void 0&&X.readableObjectMode),writableObjectMode:!!(Y!==null&&Y!==void 0&&Y.writableObjectMode),readable:O,writable:H}),H)P(Y,(c)=>{if(H=!1,c)N(X,c);B(c)}),T._write=function(c,d,r){if(Y.write(c,d))r();else I=r},T._final=function(c){Y.end(),Z=c},Y.on("drain",function(){if(I){let c=I;I=null,c()}}),Y.on("finish",function(){if(Z){let c=Z;Z=null,c()}});if(O)P(X,(c)=>{if(O=!1,c)N(X,c);B(c)}),X.on("readable",function(){if(K){let c=K;K=null,c()}}),X.on("end",function(){T.push(null)}),T._read=function(){while(!0){let c=X.read();if(c===null){K=T._read;return}if(!T.push(c))return}};return T._destroy=function(c,d){if(!c&&S!==null)c=new q;if(K=null,I=null,Z=null,S===null)d(c);else S=d,N(Y,c),N(X,c)},T}}),NU=o0((G,$)=>{var{ObjectDefineProperties:W,ObjectGetOwnPropertyDescriptor:C,ObjectKeys:F,ObjectSetPrototypeOf:R}=a0();$.exports=k;var V=SZ(),z=VX();R(k.prototype,V.prototype),R(k,V);{let D=F(z.prototype);for(let P=0;P<D.length;P++){let q=D[P];if(!k.prototype[q])k.prototype[q]=z.prototype[q]}}function k(D){if(!(this instanceof k))return new k(D);if(V.call(this,D),z.call(this,D),D){if(this.allowHalfOpen=D.allowHalfOpen!==!1,D.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(D.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}W(k.prototype,{writable:{__proto__:null,...C(z.prototype,"writable")},writableHighWaterMark:{__proto__:null,...C(z.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...C(z.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...C(z.prototype,"writableBuffer")},writableLength:{__proto__:null,...C(z.prototype,"writableLength")},writableFinished:{__proto__:null,...C(z.prototype,"writableFinished")},writableCorked:{__proto__:null,...C(z.prototype,"writableCorked")},writableEnded:{__proto__:null,...C(z.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...C(z.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(D){if(this._readableState&&this._writableState)this._readableState.destroyed=D,this._writableState.destroyed=D}}});var L;function E(){if(L===void 0)L={};return L}k.fromWeb=function(D,P){return E().newStreamDuplexFromReadableWritablePair(D,P)},k.toWeb=function(D){return E().newReadableWritablePairFromDuplex(D)};var A;k.from=function(D){if(!A)A=UV();return A(D,"body")}}),vQ=o0((G,$)=>{var{ObjectSetPrototypeOf:W,Symbol:C}=a0();$.exports=k;var{ERR_METHOD_NOT_IMPLEMENTED:F}=LU().codes,R=NU(),{getHighWaterMark:V}=RZ();W(k.prototype,R.prototype),W(k,R);var z=C("kCallback");function k(A){if(!(this instanceof k))return new k(A);let D=A?V(this,A,"readableHighWaterMark",!0):null;if(D===0)A={...A,highWaterMark:null,readableHighWaterMark:D,writableHighWaterMark:A.writableHighWaterMark||0};if(R.call(this,A),this._readableState.sync=!1,this[z]=null,A){if(typeof A.transform==="function")this._transform=A.transform;if(typeof A.flush==="function")this._flush=A.flush}this.on("prefinish",E)}function L(A){if(typeof this._flush==="function"&&!this.destroyed)this._flush((D,P)=>{if(D){if(A)A(D);else this.destroy(D);return}if(P!=null)this.push(P);if(this.push(null),A)A()});else if(this.push(null),A)A()}function E(){if(this._final!==L)L.call(this)}k.prototype._final=L,k.prototype._transform=function(A,D,P){throw new F("_transform()")},k.prototype._write=function(A,D,P){let q=this._readableState,_=this._writableState,j=q.length;this._transform(A,D,(N,x)=>{if(N){P(N);return}if(x!=null)this.push(x);if(_.ended||j===q.length||q.length<q.highWaterMark)P();else this[z]=P})},k.prototype._read=function(){if(this[z]){let A=this[z];this[z]=null,A()}}}),_Q=o0((G,$)=>{var{ObjectSetPrototypeOf:W}=a0();$.exports=F;var C=vQ();W(F.prototype,C.prototype),W(F,C);function F(R){if(!(this instanceof F))return new F(R);C.call(this,R)}F.prototype._transform=function(R,V,z){z(null,R)}}),GX=o0((G,$)=>{var W=oU(),{ArrayIsArray:C,Promise:F,SymbolAsyncIterator:R,SymbolDispose:V}=a0(),z=cU(),{once:k}=RU(),L=aU(),E=NU(),{aggregateTwoErrors:A,codes:{ERR_INVALID_ARG_TYPE:D,ERR_INVALID_RETURN_VALUE:P,ERR_MISSING_ARGS:q,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:j},AbortError:N}=LU(),{validateFunction:x,validateAbortSignal:g}=QZ(),{isIterable:f,isReadable:p,isReadableNodeStream:s,isNodeStream:O0,isTransformStream:C0,isWebStream:W0,isReadableStream:n,isReadableFinished:I0}=gU(),U=globalThis.AbortController||XZ().AbortController,Q,J,X;function Y(c,d,r){let z0=!1;c.on("close",()=>{z0=!0});let Z0=z(c,{readable:d,writable:r},(t)=>{z0=!t});return{destroy:(t)=>{if(z0)return;z0=!0,L.destroyer(c,t||new _("pipe"))},cleanup:Z0}}function O(c){return x(c[c.length-1],"streams[stream.length - 1]"),c.pop()}function H(c){if(f(c))return c;else if(s(c))return I(c);throw new D("val",["Readable","Iterable","AsyncIterable"],c)}async function*I(c){if(!J)J=SZ();yield*J.prototype[R].call(c)}async function Z(c,d,r,{end:z0}){let Z0,t=null,$0=(y0)=>{if(y0)Z0=y0;if(t){let u=t;t=null,u()}},e=()=>new F((y0,u)=>{if(Z0)u(Z0);else t=()=>{if(Z0)u(Z0);else y0()}});d.on("drain",$0);let Y0=z(d,{readable:!1},$0);try{if(d.writableNeedDrain)await e();for await(let y0 of c)if(!d.write(y0))await e();if(z0)d.end(),await e();r()}catch(y0){r(Z0!==y0?A(Z0,y0):y0)}finally{Y0(),d.off("drain",$0)}}async function K(c,d,r,{end:z0}){if(C0(d))d=d.writable;let Z0=d.getWriter();try{for await(let t of c)await Z0.ready,Z0.write(t).catch(()=>{});if(await Z0.ready,z0)await Z0.close();r()}catch(t){try{await Z0.abort(t),r(t)}catch($0){r($0)}}}function S(...c){return T(c,k(O(c)))}function T(c,d,r){if(c.length===1&&C(c[0]))c=c[0];if(c.length<2)throw new q("streams");let z0=new U,Z0=z0.signal,t=r===null||r===void 0?void 0:r.signal,$0=[];g(t,"options.signal");function e(){Q0(new N)}X=X||RU().addAbortListener;let Y0;if(t)Y0=X(t,e);let y0,u,l=[],K0=0;function U0(i){Q0(i,--K0===0)}function Q0(i,V0){var c0;if(i&&(!y0||y0.code==="ERR_STREAM_PREMATURE_CLOSE"))y0=i;if(!y0&&!V0)return;while(l.length)l.shift()(y0);if((c0=Y0)===null||c0===void 0||c0[V](),z0.abort(),V0){if(!y0)$0.forEach((M)=>M());W.nextTick(d,y0,u)}}let R0;for(let i=0;i<c.length;i++){let V0=c[i],c0=i<c.length-1,M=i>0,v=c0||(r===null||r===void 0?void 0:r.end)!==!1,w=i===c.length-1;if(O0(V0)){let h=function(o){if(o&&o.name!=="AbortError"&&o.code!=="ERR_STREAM_PREMATURE_CLOSE")U0(o)};var b=h;if(v){let{destroy:o,cleanup:H0}=Y(V0,c0,M);if(l.push(o),p(V0)&&w)$0.push(H0)}if(V0.on("error",h),p(V0)&&w)$0.push(()=>{V0.removeListener("error",h)})}if(i===0)if(typeof V0==="function"){if(R0=V0({signal:Z0}),!f(R0))throw new P("Iterable, AsyncIterable or Stream","source",R0)}else if(f(V0)||s(V0)||C0(V0))R0=V0;else R0=E.from(V0);else if(typeof V0==="function"){if(C0(R0)){var a;R0=H((a=R0)===null||a===void 0?void 0:a.readable)}else R0=H(R0);if(R0=V0(R0,{signal:Z0}),c0){if(!f(R0,!0))throw new P("AsyncIterable",`transform[${i-1}]`,R0)}else{var w0;if(!Q)Q=_Q();let h=new Q({objectMode:!0}),o=(w0=R0)===null||w0===void 0?void 0:w0.then;if(typeof o==="function")K0++,o.call(R0,(F0)=>{if(u=F0,F0!=null)h.write(F0);if(v)h.end();W.nextTick(U0)},(F0)=>{h.destroy(F0),W.nextTick(U0,F0)});else if(f(R0,!0))K0++,Z(R0,h,U0,{end:v});else if(n(R0)||C0(R0)){let F0=R0.readable||R0;K0++,Z(F0,h,U0,{end:v})}else throw new P("AsyncIterable or Promise","destination",R0);R0=h;let{destroy:H0,cleanup:X0}=Y(R0,!1,!0);if(l.push(H0),w)$0.push(X0)}}else if(O0(V0)){if(s(R0)){K0+=2;let h=B(R0,V0,U0,{end:v});if(p(V0)&&w)$0.push(h)}else if(C0(R0)||n(R0)){let h=R0.readable||R0;K0++,Z(h,V0,U0,{end:v})}else if(f(R0))K0++,Z(R0,V0,U0,{end:v});else throw new D("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],R0);R0=V0}else if(W0(V0)){if(s(R0))K0++,K(H(R0),V0,U0,{end:v});else if(n(R0)||f(R0))K0++,K(R0,V0,U0,{end:v});else if(C0(R0))K0++,K(R0.readable,V0,U0,{end:v});else throw new D("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],R0);R0=V0}else R0=E.from(V0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||t!==null&&t!==void 0&&t.aborted)W.nextTick(e);return R0}function B(c,d,r,{end:z0}){let Z0=!1;if(d.on("close",()=>{if(!Z0)r(new j)}),c.pipe(d,{end:!1}),z0){let $0=function(){Z0=!0,d.end()};var t=$0;if(I0(c))W.nextTick($0);else c.once("end",$0)}else r();return z(c,{readable:!0,writable:!1},($0)=>{let e=c._readableState;if($0&&$0.code==="ERR_STREAM_PREMATURE_CLOSE"&&e&&e.ended&&!e.errored&&!e.errorEmitted)c.once("end",r).once("error",r);else r($0)}),z(d,{readable:!1,writable:!0},r)}$.exports={pipelineImpl:T,pipeline:S}}),BQ=o0((G,$)=>{var{pipeline:W}=GX(),C=NU(),{destroyer:F}=aU(),{isNodeStream:R,isReadable:V,isWritable:z,isWebStream:k,isTransformStream:L,isWritableStream:E,isReadableStream:A}=gU(),{AbortError:D,codes:{ERR_INVALID_ARG_VALUE:P,ERR_MISSING_ARGS:q}}=LU(),_=cU();$.exports=function(...j){if(j.length===0)throw new q("streams");if(j.length===1)return C.from(j[0]);let N=[...j];if(typeof j[0]==="function")j[0]=C.from(j[0]);if(typeof j[j.length-1]==="function"){let U=j.length-1;j[U]=C.from(j[U])}for(let U=0;U<j.length;++U){if(!R(j[U])&&!k(j[U]))continue;if(U<j.length-1&&!(V(j[U])||A(j[U])||L(j[U])))throw new P(`streams[${U}]`,N[U],"must be readable");if(U>0&&!(z(j[U])||E(j[U])||L(j[U])))throw new P(`streams[${U}]`,N[U],"must be writable")}let x,g,f,p,s;function O0(U){let Q=p;if(p=null,Q)Q(U);else if(U)s.destroy(U);else if(!I0&&!n)s.destroy()}let C0=j[0],W0=W(j,O0),n=!!(z(C0)||E(C0)||L(C0)),I0=!!(V(W0)||A(W0)||L(W0));if(s=new C({writableObjectMode:!!(C0!==null&&C0!==void 0&&C0.writableObjectMode),readableObjectMode:!!(W0!==null&&W0!==void 0&&W0.readableObjectMode),writable:n,readable:I0}),n){if(R(C0))s._write=function(Q,J,X){if(C0.write(Q,J))X();else x=X},s._final=function(Q){C0.end(),g=Q},C0.on("drain",function(){if(x){let Q=x;x=null,Q()}});else if(k(C0)){let Q=(L(C0)?C0.writable:C0).getWriter();s._write=async function(J,X,Y){try{await Q.ready,Q.write(J).catch(()=>{}),Y()}catch(O){Y(O)}},s._final=async function(J){try{await Q.ready,Q.close().catch(()=>{}),g=J}catch(X){J(X)}}}let U=L(W0)?W0.readable:W0;_(U,()=>{if(g){let Q=g;g=null,Q()}})}if(I0){if(R(W0))W0.on("readable",function(){if(f){let U=f;f=null,U()}}),W0.on("end",function(){s.push(null)}),s._read=function(){while(!0){let U=W0.read();if(U===null){f=s._read;return}if(!s.push(U))return}};else if(k(W0)){let U=(L(W0)?W0.readable:W0).getReader();s._read=async function(){while(!0)try{let{value:Q,done:J}=await U.read();if(!s.push(Q))return;if(J){s.push(null);return}}catch{return}}}}return s._destroy=function(U,Q){if(!U&&p!==null)U=new D;if(f=null,x=null,g=null,p===null)Q(U);else if(p=Q,R(W0))F(W0,U)},s}}),ZV=o0((G,$)=>{var W=globalThis.AbortController||XZ().AbortController,{codes:{ERR_INVALID_ARG_VALUE:C,ERR_INVALID_ARG_TYPE:F,ERR_MISSING_ARGS:R,ERR_OUT_OF_RANGE:V},AbortError:z}=LU(),{validateAbortSignal:k,validateInteger:L,validateObject:E}=QZ(),A=a0().Symbol("kWeak"),D=a0().Symbol("kResistStopPropagation"),{finished:P}=cU(),q=BQ(),{addAbortSignalNoValidate:_}=MZ(),{isWritable:j,isNodeStream:N}=gU(),{deprecate:x}=RU(),{ArrayPrototypePush:g,Boolean:f,MathFloor:p,Number:s,NumberIsNaN:O0,Promise:C0,PromiseReject:W0,PromiseResolve:n,PromisePrototypeThen:I0,Symbol:U}=a0(),Q=U("kEmpty"),J=U("kEof");function X(t,$0){if($0!=null)E($0,"options");if(($0===null||$0===void 0?void 0:$0.signal)!=null)k($0.signal,"options.signal");if(N(t)&&!j(t))throw new C("stream",t,"must be writable");let e=q(this,t);if($0!==null&&$0!==void 0&&$0.signal)_($0.signal,e);return e}function Y(t,$0){if(typeof t!=="function")throw new F("fn",["Function","AsyncFunction"],t);if($0!=null)E($0,"options");if(($0===null||$0===void 0?void 0:$0.signal)!=null)k($0.signal,"options.signal");let e=1;if(($0===null||$0===void 0?void 0:$0.concurrency)!=null)e=p($0.concurrency);let Y0=e-1;if(($0===null||$0===void 0?void 0:$0.highWaterMark)!=null)Y0=p($0.highWaterMark);return L(e,"options.concurrency",1),L(Y0,"options.highWaterMark",0),Y0+=e,async function*(){let y0=RU().AbortSignalAny([$0===null||$0===void 0?void 0:$0.signal].filter(f)),u=this,l=[],K0={signal:y0},U0,Q0,R0=!1,b=0;function a(){R0=!0,w0()}function w0(){b-=1,i()}function i(){if(Q0&&!R0&&b<e&&l.length<Y0)Q0(),Q0=null}async function V0(){try{for await(let c0 of u){if(R0)return;if(y0.aborted)throw new z;try{if(c0=t(c0,K0),c0===Q)continue;c0=n(c0)}catch(M){c0=W0(M)}if(b+=1,I0(c0,w0,a),l.push(c0),U0)U0(),U0=null;if(!R0&&(l.length>=Y0||b>=e))await new C0((M)=>{Q0=M})}l.push(J)}catch(c0){let M=W0(c0);I0(M,w0,a),l.push(M)}finally{if(R0=!0,U0)U0(),U0=null}}V0();try{while(!0){while(l.length>0){let c0=await l[0];if(c0===J)return;if(y0.aborted)throw new z;if(c0!==Q)yield c0;l.shift(),i()}await new C0((c0)=>{U0=c0})}}finally{if(R0=!0,Q0)Q0(),Q0=null}}.call(this)}function O(t=void 0){if(t!=null)E(t,"options");if((t===null||t===void 0?void 0:t.signal)!=null)k(t.signal,"options.signal");return async function*(){let $0=0;for await(let Y0 of this){var e;if(t!==null&&t!==void 0&&(e=t.signal)!==null&&e!==void 0&&e.aborted)throw new z({cause:t.signal.reason});yield[$0++,Y0]}}.call(this)}async function H(t,$0=void 0){for await(let e of S.call(this,t,$0))return!0;return!1}async function I(t,$0=void 0){if(typeof t!=="function")throw new F("fn",["Function","AsyncFunction"],t);return!await H.call(this,async(...e)=>{return!await t(...e)},$0)}async function Z(t,$0){for await(let e of S.call(this,t,$0))return e;return}async function K(t,$0){if(typeof t!=="function")throw new F("fn",["Function","AsyncFunction"],t);async function e(Y0,y0){return await t(Y0,y0),Q}for await(let Y0 of Y.call(this,e,$0));}function S(t,$0){if(typeof t!=="function")throw new F("fn",["Function","AsyncFunction"],t);async function e(Y0,y0){if(await t(Y0,y0))return Y0;return Q}return Y.call(this,e,$0)}class T extends R{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function B(t,$0,e){var Y0;if(typeof t!=="function")throw new F("reducer",["Function","AsyncFunction"],t);if(e!=null)E(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)k(e.signal,"options.signal");let y0=arguments.length>1;if(e!==null&&e!==void 0&&(Y0=e.signal)!==null&&Y0!==void 0&&Y0.aborted){let Q0=new z(void 0,{cause:e.signal.reason});throw this.once("error",()=>{}),await P(this.destroy(Q0)),Q0}let u=new W,l=u.signal;if(e!==null&&e!==void 0&&e.signal){let Q0={once:!0,[A]:this,[D]:!0};e.signal.addEventListener("abort",()=>u.abort(),Q0)}let K0=!1;try{for await(let Q0 of this){var U0;if(K0=!0,e!==null&&e!==void 0&&(U0=e.signal)!==null&&U0!==void 0&&U0.aborted)throw new z;if(!y0)$0=Q0,y0=!0;else $0=await t($0,Q0,{signal:l})}if(!K0&&!y0)throw new T}finally{u.abort()}return $0}async function c(t){if(t!=null)E(t,"options");if((t===null||t===void 0?void 0:t.signal)!=null)k(t.signal,"options.signal");let $0=[];for await(let Y0 of this){var e;if(t!==null&&t!==void 0&&(e=t.signal)!==null&&e!==void 0&&e.aborted)throw new z(void 0,{cause:t.signal.reason});g($0,Y0)}return $0}function d(t,$0){let e=Y.call(this,t,$0);return async function*(){for await(let Y0 of e)yield*Y0}.call(this)}function r(t){if(t=s(t),O0(t))return 0;if(t<0)throw new V("number",">= 0",t);return t}function z0(t,$0=void 0){if($0!=null)E($0,"options");if(($0===null||$0===void 0?void 0:$0.signal)!=null)k($0.signal,"options.signal");return t=r(t),async function*(){var e;if($0!==null&&$0!==void 0&&(e=$0.signal)!==null&&e!==void 0&&e.aborted)throw new z;for await(let y0 of this){var Y0;if($0!==null&&$0!==void 0&&(Y0=$0.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new z;if(t--<=0)yield y0}}.call(this)}function Z0(t,$0=void 0){if($0!=null)E($0,"options");if(($0===null||$0===void 0?void 0:$0.signal)!=null)k($0.signal,"options.signal");return t=r(t),async function*(){var e;if($0!==null&&$0!==void 0&&(e=$0.signal)!==null&&e!==void 0&&e.aborted)throw new z;for await(let y0 of this){var Y0;if($0!==null&&$0!==void 0&&(Y0=$0.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new z;if(t-- >0)yield y0;if(t<=0)return}}.call(this)}$.exports.streamReturningOperators={asIndexedPairs:x(O,"readable.asIndexedPairs will be removed in a future version."),drop:z0,filter:S,flatMap:d,map:Y,take:Z0,compose:X},$.exports.promiseReturningOperators={every:I,forEach:K,reduce:B,toArray:c,some:H,find:Z}}),xQ=o0((G,$)=>{var{ArrayPrototypePop:W,Promise:C}=a0(),{isIterable:F,isNodeStream:R,isWebStream:V}=gU(),{pipelineImpl:z}=GX(),{finished:k}=cU();NQ();function L(...E){return new C((A,D)=>{let P,q,_=E[E.length-1];if(_&&typeof _==="object"&&!R(_)&&!F(_)&&!V(_)){let j=W(E);P=j.signal,q=j.end}z(E,(j,N)=>{if(j)D(j);else A(N)},{signal:P,end:q})})}$.exports={finished:k,pipeline:L}}),NQ=o0((G,$)=>{var{Buffer:W}=(TU(),l0(CU)),{ObjectDefineProperty:C,ObjectKeys:F,ReflectApply:R}=a0(),{promisify:{custom:V}}=RU(),{streamReturningOperators:z,promiseReturningOperators:k}=ZV(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:L}}=LU(),E=BQ(),{setDefaultHighWaterMark:A,getDefaultHighWaterMark:D}=RZ(),{pipeline:P}=GX(),{destroyer:q}=aU(),_=cU(),j=xQ(),N=gU(),x=$.exports=JX().Stream;x.isDestroyed=N.isDestroyed,x.isDisturbed=N.isDisturbed,x.isErrored=N.isErrored,x.isReadable=N.isReadable,x.isWritable=N.isWritable,x.Readable=SZ();for(let f of F(z)){let p=function(...O0){if(new.target)throw L();return x.Readable.from(R(s,this,O0))},s=z[f];C(p,"name",{__proto__:null,value:s.name}),C(p,"length",{__proto__:null,value:s.length}),C(x.Readable.prototype,f,{__proto__:null,value:p,enumerable:!1,configurable:!0,writable:!0})}for(let f of F(k)){let p=function(...O0){if(new.target)throw L();return R(s,this,O0)},s=k[f];C(p,"name",{__proto__:null,value:s.name}),C(p,"length",{__proto__:null,value:s.length}),C(x.Readable.prototype,f,{__proto__:null,value:p,enumerable:!1,configurable:!0,writable:!0})}x.Writable=VX(),x.Duplex=NU(),x.Transform=vQ(),x.PassThrough=_Q(),x.pipeline=P;var{addAbortSignal:g}=MZ();x.addAbortSignal=g,x.finished=_,x.destroy=q,x.compose=E,x.setDefaultHighWaterMark=A,x.getDefaultHighWaterMark=D,C(x,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),C(P,V,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),C(_,V,{__proto__:null,enumerable:!0,get(){return j.finished}}),x.Stream=x,x._isUint8Array=function(f){return f instanceof Uint8Array},x._uint8ArrayToBuffer=function(f){return W.from(f.buffer,f.byteOffset,f.byteLength)}}),XV=o0((G,$)=>{var W=IX();{let C=NQ(),F=xQ(),R=C.Readable.destroy;$.exports=C.Readable,$.exports._uint8ArrayToBuffer=C._uint8ArrayToBuffer,$.exports._isUint8Array=C._isUint8Array,$.exports.isDisturbed=C.isDisturbed,$.exports.isErrored=C.isErrored,$.exports.isReadable=C.isReadable,$.exports.Readable=C.Readable,$.exports.Writable=C.Writable,$.exports.Duplex=C.Duplex,$.exports.Transform=C.Transform,$.exports.PassThrough=C.PassThrough,$.exports.addAbortSignal=C.addAbortSignal,$.exports.finished=C.finished,$.exports.destroy=C.destroy,$.exports.destroy=R,$.exports.pipeline=C.pipeline,$.exports.compose=C.compose,Object.defineProperty(C,"promises",{configurable:!0,enumerable:!0,get(){return F}}),$.exports.Stream=C.Stream}$.exports.default=$.exports});gQ.exports=XV()});var PU={};OZ(PU,{webcrypto:()=>BI,rng:()=>lG,randomUUID:()=>jI,randomFillSync:()=>RI,randomFill:()=>MI,randomBytes:()=>zX,publicEncrypt:()=>DI,publicDecrypt:()=>LI,pseudoRandomBytes:()=>dG,prng:()=>bG,privateEncrypt:()=>zI,privateDecrypt:()=>EI,pbkdf2Sync:()=>rG,pbkdf2:()=>aG,listCiphers:()=>GI,getRandomValues:()=>kI,getHashes:()=>tG,getDiffieHellman:()=>KI,getCurves:()=>_I,getCiphers:()=>VI,default:()=>xI,createVerify:()=>AI,createSign:()=>HI,createHmac:()=>sG,createHash:()=>nG,createECDH:()=>TI,createDiffieHellmanGroup:()=>$I,createDiffieHellman:()=>OI,createDecipheriv:()=>JI,createDecipher:()=>QI,createCredentials:()=>SI,createCipheriv:()=>ZI,createCipher:()=>iG,constants:()=>qI,Verify:()=>CI,Sign:()=>FI,Hmac:()=>mG,Hash:()=>oG,DiffieHellmanGroup:()=>II,DiffieHellman:()=>WI,Decipheriv:()=>YI,Decipher:()=>XI,DEFAULT_ENCODING:()=>PI,Cipheriv:()=>UI,Cipher:()=>eG});function GV(G){return this[G]}function _I(){return vI}var QV,YV,wQ,JV,VV,IV,$V,KV=(G,$,W)=>{var C=G!=null&&typeof G==="object";if(C){var F=$?IV??=new WeakMap:$V??=new WeakMap,R=F.get(G);if(R)return R}W=G!=null?QV(YV(G)):{};let V=$||!G||!G.__esModule?wQ(W,"default",{value:G,enumerable:!0}):W;for(let z of JV(G))if(!VV.call(V,z))wQ(V,z,{get:GV.bind(G,z),enumerable:!0});if(C)F.set(G,V);return V},A0=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports),qZ,PZ,fQ,OV,KX,OX,EU,WV,JZ,cQ,HV,FV,AV,CV,pQ,TV,DV,zV,LV,EV,MV,RV,SV,qV,PV,VZ,kZ,hQ,kV,uQ,bQ,jV,GZ,WX,HX,vV,dQ,FX,_V,lQ,BV,oQ,nQ,xV,NV,gV,wV,yV,fV,cV,pV,hV,uV,bV,dV,lV,oV,AX,mQ,nV,sQ,mV,sV,tV,aV,wU,pU,tQ,jU,aQ,jZ,rV,qU,eV,iV,UG,rQ,BU,IZ,eQ,ZG,iQ,XG,UY,QG,YG,JG,VG,CX,GG,TX,IG,$G,KG,OG,WG,HG,FG,AG,CG,TG,DG,zG,LG,EG,yQ,MG,YZ,RG,ZY,XY,SG,qG,QY,PG,kG,$Z,jG,vG,_G,BG,xG,NG,YY,gG,JY,VY,GY,DX,IY,wG,$Y,yG,fG,$X,cG,pG,hG,uG,u0,bG,dG,lG,zX,oG,nG,mG,sG,tG,aG,rG,eG,iG,UI,ZI,XI,QI,YI,JI,VI,GI,II,$I,KI,OI,WI,HI,FI,AI,CI,TI,DI,zI,LI,EI,MI,RI,SI,qI,PI="buffer",kI=(G)=>{return crypto.getRandomValues(G)},jI=()=>{return crypto.randomUUID()},vI,BI,xI;var SU=WZ(()=>{QV=Object.create,{getPrototypeOf:YV,defineProperty:wQ,getOwnPropertyNames:JV}=Object,VV=Object.prototype.hasOwnProperty;qZ=A0((G,$)=>{$.exports=(SU(),l0(PU)).randomBytes}),PZ=A0((G,$)=>{$.exports=(SU(),l0(PU)).createHash}),fQ=A0((G,$)=>{$.exports=(SU(),l0(PU)).createHmac}),OV=A0((G,$)=>{$.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"}}}),KX=A0((G,$)=>{var W=isFinite,C=Math.pow(2,30)-1;$.exports=function(F,R){if(typeof F!=="number")throw TypeError("Iterations not a number");if(F<0||!W(F))throw TypeError("Bad iterations");if(typeof R!=="number")throw TypeError("Key length not a number");if(R<0||R>C||R!==R)throw TypeError("Bad key length")}}),OX=A0((G,$)=>{var W;if(globalThis.process&&globalThis.process.browser)W="utf-8";else if(globalThis.process&&globalThis.process.version)C=parseInt(process.version.split(".")[0].slice(1),10),W=C>=6?"utf-8":"binary";else W="utf-8";var C;$.exports=W}),EU=A0((G,$)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var W=(TU(),l0(CU)),C=W.Buffer;function F(V,z){for(var k in V)z[k]=V[k]}if(C.from&&C.alloc&&C.allocUnsafe&&C.allocUnsafeSlow)$.exports=W;else F(W,G),G.Buffer=R;function R(V,z,k){return C(V,z,k)}R.prototype=Object.create(C.prototype),F(C,R),R.from=function(V,z,k){if(typeof V==="number")throw TypeError("Argument must not be a number");return C(V,z,k)},R.alloc=function(V,z,k){if(typeof V!=="number")throw TypeError("Argument must be a number");var L=C(V);if(z!==void 0)if(typeof k==="string")L.fill(z,k);else L.fill(z);else L.fill(0);return L},R.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return C(V)},R.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return W.SlowBuffer(V)}}),WV=A0((G,$)=>{var W={}.toString;$.exports=Array.isArray||function(C){return W.call(C)=="[object Array]"}}),JZ=A0((G,$)=>{$.exports=TypeError}),cQ=A0((G,$)=>{$.exports=Object}),HV=A0((G,$)=>{$.exports=Error}),FV=A0((G,$)=>{$.exports=EvalError}),AV=A0((G,$)=>{$.exports=RangeError}),CV=A0((G,$)=>{$.exports=ReferenceError}),pQ=A0((G,$)=>{$.exports=SyntaxError}),TV=A0((G,$)=>{$.exports=URIError}),DV=A0((G,$)=>{$.exports=Math.abs}),zV=A0((G,$)=>{$.exports=Math.floor}),LV=A0((G,$)=>{$.exports=Math.max}),EV=A0((G,$)=>{$.exports=Math.min}),MV=A0((G,$)=>{$.exports=Math.pow}),RV=A0((G,$)=>{$.exports=Math.round}),SV=A0((G,$)=>{$.exports=Number.isNaN||function(W){return W!==W}}),qV=A0((G,$)=>{var W=SV();$.exports=function(C){if(W(C)||C===0)return C;return C<0?-1:1}}),PV=A0((G,$)=>{$.exports=Object.getOwnPropertyDescriptor}),VZ=A0((G,$)=>{var W=PV();if(W)try{W([],"length")}catch(C){W=null}$.exports=W}),kZ=A0((G,$)=>{var W=Object.defineProperty||!1;if(W)try{W({},"a",{value:1})}catch(C){W=!1}$.exports=W}),hQ=A0((G,$)=>{$.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var W={},C=Symbol("test"),F=Object(C);if(typeof C==="string")return!1;if(Object.prototype.toString.call(C)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(F)!=="[object Symbol]")return!1;var R=42;W[C]=R;for(var V in W)return!1;if(typeof Object.keys==="function"&&Object.keys(W).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(W).length!==0)return!1;var z=Object.getOwnPropertySymbols(W);if(z.length!==1||z[0]!==C)return!1;if(!Object.prototype.propertyIsEnumerable.call(W,C))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var k=Object.getOwnPropertyDescriptor(W,C);if(k.value!==R||k.enumerable!==!0)return!1}return!0}}),kV=A0((G,$)=>{var W=typeof Symbol<"u"&&Symbol,C=hQ();$.exports=function(){if(typeof W!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof W("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return C()}}),uQ=A0((G,$)=>{$.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),bQ=A0((G,$)=>{var W=cQ();$.exports=W.getPrototypeOf||null}),jV=A0((G,$)=>{var W="Function.prototype.bind called on incompatible ",C=Object.prototype.toString,F=Math.max,R="[object Function]",V=function(L,E){var A=[];for(var D=0;D<L.length;D+=1)A[D]=L[D];for(var P=0;P<E.length;P+=1)A[P+L.length]=E[P];return A},z=function(L,E){var A=[];for(var D=E||0,P=0;D<L.length;D+=1,P+=1)A[P]=L[D];return A},k=function(L,E){var A="";for(var D=0;D<L.length;D+=1)if(A+=L[D],D+1<L.length)A+=E;return A};$.exports=function(L){var E=this;if(typeof E!=="function"||C.apply(E)!==R)throw TypeError(W+E);var A=z(arguments,1),D,P=function(){if(this instanceof D){var x=E.apply(this,V(A,arguments));if(Object(x)===x)return x;return this}return E.apply(L,V(A,arguments))},q=F(0,E.length-A.length),_=[];for(var j=0;j<q;j++)_[j]="$"+j;if(D=Function("binder","return function ("+k(_,",")+"){ return binder.apply(this,arguments); }")(P),E.prototype){var N=function(){};N.prototype=E.prototype,D.prototype=new N,N.prototype=null}return D}}),GZ=A0((G,$)=>{var W=jV();$.exports=Function.prototype.bind||W}),WX=A0((G,$)=>{$.exports=Function.prototype.call}),HX=A0((G,$)=>{$.exports=Function.prototype.apply}),vV=A0((G,$)=>{$.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),dQ=A0((G,$)=>{var W=GZ(),C=HX(),F=WX(),R=vV();$.exports=R||W.call(F,C)}),FX=A0((G,$)=>{var W=GZ(),C=JZ(),F=WX(),R=dQ();$.exports=function(V){if(V.length<1||typeof V[0]!=="function")throw new C("a function is required");return R(W,F,V)}}),_V=A0((G,$)=>{var W=FX(),C=VZ(),F;try{F=[].__proto__===Array.prototype}catch(k){if(!k||typeof k!=="object"||!("code"in k)||k.code!=="ERR_PROTO_ACCESS")throw k}var R=!!F&&C&&C(Object.prototype,"__proto__"),V=Object,z=V.getPrototypeOf;$.exports=R&&typeof R.get==="function"?W([R.get]):typeof z==="function"?function(k){return z(k==null?k:V(k))}:!1}),lQ=A0((G,$)=>{var W=uQ(),C=bQ(),F=_V();$.exports=W?function(R){return W(R)}:C?function(R){if(!R||typeof R!=="object"&&typeof R!=="function")throw TypeError("getProto: not an object");return C(R)}:F?function(R){return F(R)}:null}),BV=A0((G,$)=>{var W=Function.prototype.call,C=Object.prototype.hasOwnProperty,F=GZ();$.exports=F.call(W,C)}),oQ=A0((G,$)=>{var W,C=cQ(),F=HV(),R=FV(),V=AV(),z=CV(),k=pQ(),L=JZ(),E=TV(),A=DV(),D=zV(),P=LV(),q=EV(),_=MV(),j=RV(),N=qV(),x=Function,g=function($0){try{return x('"use strict"; return ('+$0+").constructor;")()}catch(e){}},f=VZ(),p=kZ(),s=function(){throw new L},O0=f?function(){try{return arguments.callee,s}catch($0){try{return f(arguments,"callee").get}catch(e){return s}}}():s,C0=kV()(),W0=lQ(),n=bQ(),I0=uQ(),U=HX(),Q=WX(),J={},X=typeof Uint8Array>"u"||!W0?W:W0(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":C0&&W0?W0([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":F,"%eval%":eval,"%EvalError%":R,"%Float16Array%":typeof Float16Array>"u"?W:Float16Array,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C0&&W0?W0(W0([][Symbol.iterator]())):W,"%JSON%":typeof JSON==="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C0||!W0?W:W0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":C,"%Object.getOwnPropertyDescriptor%":f,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":V,"%ReferenceError%":z,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C0||!W0?W:W0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C0&&W0?W0(""[Symbol.iterator]()):W,"%Symbol%":C0?Symbol:W,"%SyntaxError%":k,"%ThrowTypeError%":O0,"%TypedArray%":X,"%TypeError%":L,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":U,"%Object.defineProperty%":p,"%Object.getPrototypeOf%":n,"%Math.abs%":A,"%Math.floor%":D,"%Math.max%":P,"%Math.min%":q,"%Math.pow%":_,"%Math.round%":j,"%Math.sign%":N,"%Reflect.getPrototypeOf%":I0};if(W0)try{null.error}catch($0){O=W0(W0($0)),Y["%Error.prototype%"]=O}var O,H=function $0(e){var Y0;if(e==="%AsyncFunction%")Y0=g("async function () {}");else if(e==="%GeneratorFunction%")Y0=g("function* () {}");else if(e==="%AsyncGeneratorFunction%")Y0=g("async function* () {}");else if(e==="%AsyncGenerator%"){var y0=$0("%AsyncGeneratorFunction%");if(y0)Y0=y0.prototype}else if(e==="%AsyncIteratorPrototype%"){var u=$0("%AsyncGenerator%");if(u&&W0)Y0=W0(u.prototype)}return Y[e]=Y0,Y0},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Z=GZ(),K=BV(),S=Z.call(Q,Array.prototype.concat),T=Z.call(U,Array.prototype.splice),B=Z.call(Q,String.prototype.replace),c=Z.call(Q,String.prototype.slice),d=Z.call(Q,RegExp.prototype.exec),r=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z0=/\\(\\)?/g,Z0=function($0){var e=c($0,0,1),Y0=c($0,-1);if(e==="%"&&Y0!=="%")throw new k("invalid intrinsic syntax, expected closing `%`");else if(Y0==="%"&&e!=="%")throw new k("invalid intrinsic syntax, expected opening `%`");var y0=[];return B($0,r,function(u,l,K0,U0){y0[y0.length]=K0?B(U0,z0,"$1"):l||u}),y0},t=function($0,e){var Y0=$0,y0;if(K(I,Y0))y0=I[Y0],Y0="%"+y0[0]+"%";if(K(Y,Y0)){var u=Y[Y0];if(u===J)u=H(Y0);if(typeof u>"u"&&!e)throw new L("intrinsic "+$0+" exists, but is not available. Please file an issue!");return{alias:y0,name:Y0,value:u}}throw new k("intrinsic "+$0+" does not exist!")};$.exports=function($0,e){if(typeof $0!=="string"||$0.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!=="boolean")throw new L('"allowMissing" argument must be a boolean');if(d(/^%?[^%]*%?$/,$0)===null)throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y0=Z0($0),y0=Y0.length>0?Y0[0]:"",u=t("%"+y0+"%",e),l=u.name,K0=u.value,U0=!1,Q0=u.alias;if(Q0)y0=Q0[0],T(Y0,S([0,1],Q0));for(var R0=1,b=!0;R0<Y0.length;R0+=1){var a=Y0[R0],w0=c(a,0,1),i=c(a,-1);if((w0==='"'||w0==="'"||w0==="`"||(i==='"'||i==="'"||i==="`"))&&w0!==i)throw new k("property names with quotes must have matching quotes");if(a==="constructor"||!b)U0=!0;if(y0+="."+a,l="%"+y0+"%",K(Y,l))K0=Y[l];else if(K0!=null){if(!(a in K0)){if(!e)throw new L("base intrinsic for "+$0+" exists, but the property is not available.");return}if(f&&R0+1>=Y0.length){var V0=f(K0,a);if(b=!!V0,b&&"get"in V0&&!("originalValue"in V0.get))K0=V0.get;else K0=K0[a]}else b=K(K0,a),K0=K0[a];if(b&&!U0)Y[l]=K0}}return K0}}),nQ=A0((G,$)=>{var W=oQ(),C=FX(),F=C([W("%String.prototype.indexOf%")]);$.exports=function(R,V){var z=W(R,!!V);if(typeof z==="function"&&F(R,".prototype.")>-1)return C([z]);return z}}),xV=A0((G,$)=>{var W=Function.prototype.toString,C=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,F,R;if(typeof C==="function"&&typeof Object.defineProperty==="function")try{F=Object.defineProperty({},"length",{get:function(){throw R}}),R={},C(function(){throw 42},null,F)}catch(f){if(f!==R)C=null}else C=null;var V=/^\s*class\b/,z=function(f){try{var p=W.call(f);return V.test(p)}catch(s){return!1}},k=function(f){try{if(z(f))return!1;return W.call(f),!0}catch(p){return!1}},L=Object.prototype.toString,E="[object Object]",A="[object Function]",D="[object GeneratorFunction]",P="[object HTMLAllCollection]",q="[object HTML document.all class]",_="[object HTMLCollection]",j=typeof Symbol==="function"&&!!Symbol.toStringTag,N=!(0 in[,]),x=function(){return!1};if(typeof document==="object"){if(g=document.all,L.call(g)===L.call(document.all))x=function(f){if((N||!f)&&(typeof f>"u"||typeof f==="object"))try{var p=L.call(f);return(p===P||p===q||p===_||p===E)&&f("")==null}catch(s){}return!1}}var g;$.exports=C?function(f){if(x(f))return!0;if(!f)return!1;if(typeof f!=="function"&&typeof f!=="object")return!1;try{C(f,null,F)}catch(p){if(p!==R)return!1}return!z(f)&&k(f)}:function(f){if(x(f))return!0;if(!f)return!1;if(typeof f!=="function"&&typeof f!=="object")return!1;if(j)return k(f);if(z(f))return!1;var p=L.call(f);if(p!==A&&p!==D&&!/^\[object HTML/.test(p))return!1;return k(f)}}),NV=A0((G,$)=>{var W=xV(),C=Object.prototype.toString,F=Object.prototype.hasOwnProperty,R=function(L,E,A){for(var D=0,P=L.length;D<P;D++)if(F.call(L,D))if(A==null)E(L[D],D,L);else E.call(A,L[D],D,L)},V=function(L,E,A){for(var D=0,P=L.length;D<P;D++)if(A==null)E(L.charAt(D),D,L);else E.call(A,L.charAt(D),D,L)},z=function(L,E,A){for(var D in L)if(F.call(L,D))if(A==null)E(L[D],D,L);else E.call(A,L[D],D,L)};function k(L){return C.call(L)==="[object Array]"}$.exports=function(L,E,A){if(!W(E))throw TypeError("iterator must be a function");var D;if(arguments.length>=3)D=A;if(k(L))R(L,E,D);else if(typeof L==="string")V(L,E,D);else z(L,E,D)}}),gV=A0((G,$)=>{$.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),wV=A0((G,$)=>{var W=gV(),C=typeof globalThis>"u"?globalThis:globalThis;$.exports=function(){var F=[];for(var R=0;R<W.length;R++)if(typeof C[W[R]]==="function")F[F.length]=W[R];return F}}),yV=A0((G,$)=>{var W=kZ(),C=pQ(),F=JZ(),R=VZ();$.exports=function(V,z,k){if(!V||typeof V!=="object"&&typeof V!=="function")throw new F("`obj` must be an object or a function`");if(typeof z!=="string"&&typeof z!=="symbol")throw new F("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new F("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new F("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new F("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new F("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,D=arguments.length>6?arguments[6]:!1,P=!!R&&R(V,z);if(W)W(V,z,{configurable:A===null&&P?P.configurable:!A,enumerable:L===null&&P?P.enumerable:!L,value:k,writable:E===null&&P?P.writable:!E});else if(D||!L&&!E&&!A)V[z]=k;else throw new C("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),fV=A0((G,$)=>{var W=kZ(),C=function(){return!!W};C.hasArrayLengthDefineBug=function(){if(!W)return null;try{return W([],"length",{value:1}).length!==1}catch(F){return!0}},$.exports=C}),cV=A0((G,$)=>{var W=oQ(),C=yV(),F=fV()(),R=VZ(),V=JZ(),z=W("%Math.floor%");$.exports=function(k,L){if(typeof k!=="function")throw new V("`fn` is not a function");if(typeof L!=="number"||L<0||L>4294967295||z(L)!==L)throw new V("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],A=!0,D=!0;if("length"in k&&R){var P=R(k,"length");if(P&&!P.configurable)A=!1;if(P&&!P.writable)D=!1}if(A||D||!E)if(F)C(k,"length",L,!0,!0);else C(k,"length",L);return k}}),pV=A0((G,$)=>{var W=GZ(),C=HX(),F=dQ();$.exports=function(){return F(W,C,arguments)}}),hV=A0((G,$)=>{var W=cV(),C=kZ(),F=FX(),R=pV();if($.exports=function(V){var z=F(arguments),k=V.length-(arguments.length-1);return W(z,1+(k>0?k:0),!0)},C)C($.exports,"apply",{value:R});else $.exports.apply=R}),uV=A0((G,$)=>{var W=hQ();$.exports=function(){return W()&&!!Symbol.toStringTag}}),bV=A0((G,$)=>{var W=NV(),C=wV(),F=hV(),R=nQ(),V=VZ(),z=lQ(),k=R("Object.prototype.toString"),L=uV()(),E=typeof globalThis>"u"?globalThis:globalThis,A=C(),D=R("String.prototype.slice"),P=R("Array.prototype.indexOf",!0)||function(N,x){for(var g=0;g<N.length;g+=1)if(N[g]===x)return g;return-1},q={__proto__:null};if(L&&V&&z)W(A,function(N){var x=new E[N];if(Symbol.toStringTag in x&&z){var g=z(x),f=V(g,Symbol.toStringTag);if(!f&&g){var p=z(g);f=V(p,Symbol.toStringTag)}q["$"+N]=F(f.get)}});else W(A,function(N){var x=new E[N],g=x.slice||x.set;if(g)q["$"+N]=F(g)});var _=function(N){var x=!1;return W(q,function(g,f){if(!x)try{if("$"+g(N)===f)x=D(f,1)}catch(p){}}),x},j=function(N){var x=!1;return W(q,function(g,f){if(!x)try{g(N),x=D(f,1)}catch(p){}}),x};$.exports=function(N){if(!N||typeof N!=="object")return!1;if(!L){var x=D(k(N),8,-1);if(P(A,x)>-1)return x;if(x!=="Object")return!1;return j(N)}if(!V)return null;return _(N)}}),dV=A0((G,$)=>{var W=bV();$.exports=function(C){return!!W(C)}}),lV=A0((G,$)=>{var W=JZ(),C=nQ(),F=C("TypedArray.prototype.buffer",!0),R=dV();$.exports=F||function(V){if(!R(V))throw new W("Not a Typed Array");return V.buffer}}),oV=A0((G,$)=>{var W=EU().Buffer,C=WV(),F=lV(),R=ArrayBuffer.isView||function(L){try{return F(L),!0}catch(E){return!1}},V=typeof Uint8Array<"u",z=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",k=z&&(W.prototype instanceof Uint8Array||W.TYPED_ARRAY_SUPPORT);$.exports=function(L,E){if(W.isBuffer(L)){if(L.constructor&&!("isBuffer"in L))return W.from(L);return L}if(typeof L==="string")return W.from(L,E);if(z&&R(L)){if(L.byteLength===0)return W.alloc(0);if(k){var A=W.from(L.buffer,L.byteOffset,L.byteLength);if(A.byteLength===L.byteLength)return A}var D=L instanceof Uint8Array?L:new Uint8Array(L.buffer,L.byteOffset,L.byteLength),P=W.from(D);if(P.length===L.byteLength)return P}if(V&&L instanceof Uint8Array)return W.from(L);var q=C(L);if(q)for(var _=0;_<L.length;_+=1){var j=L[_];if(typeof j!=="number"||j<0||j>255||~~j!==j)throw RangeError("Array items must be numbers in the range 0-255.")}if(q||W.isBuffer(L)&&L.constructor&&typeof L.constructor.isBuffer==="function"&&L.constructor.isBuffer(L))return W.from(L);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),AX=A0((G,$)=>{var W=EU().Buffer,C=oV(),F=typeof Uint8Array<"u",R=F&&typeof ArrayBuffer<"u",V=R&&ArrayBuffer.isView;$.exports=function(z,k,L){if(typeof z==="string"||W.isBuffer(z)||F&&z instanceof Uint8Array||V&&V(z))return C(z,k);throw TypeError(L+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),mQ=A0((G,$)=>{var W={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},C={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},F=fQ(),R=EU().Buffer,V=KX(),z=OX(),k=AX();function L(E,A,D,P,q){V(D,P),E=k(E,z,"Password"),A=k(A,z,"Salt");var _=(q||"sha1").toLowerCase(),j=C[_]||_,N=W[j];if(typeof N!=="number"||!N)throw TypeError("Digest algorithm not supported: "+q);var x=R.allocUnsafe(P),g=R.allocUnsafe(A.length+4);A.copy(g,0,0,A.length);var f=0,p=N,s=Math.ceil(P/p);for(var O0=1;O0<=s;O0++){g.writeUInt32BE(O0,A.length);var C0=F(j,E).update(g).digest(),W0=C0;for(var n=1;n<D;n++){W0=F(j,E).update(W0).digest();for(var I0=0;I0<p;I0++)C0[I0]^=W0[I0]}C0.copy(x,f),f+=p}return x}$.exports=L}),nV=A0((G,$)=>{var W=EU().Buffer,C=KX(),F=OX(),R=mQ(),V=AX(),z,k=globalThis.crypto&&globalThis.crypto.subtle,L={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"},E=[],A;function D(){if(A)return A;if(globalThis.process&&globalThis.process.nextTick)A=globalThis.process.nextTick;else if(globalThis.queueMicrotask)A=globalThis.queueMicrotask;else if(globalThis.setImmediate)A=globalThis.setImmediate;else A=globalThis.setTimeout;return A}function P(j,N,x,g,f){return k.importKey("raw",j,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return k.deriveBits({name:"PBKDF2",salt:N,iterations:x,hash:{name:f}},p,g<<3)}).then(function(p){return W.from(p)})}function q(j){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!k||!k.importKey||!k.deriveBits)return Promise.resolve(!1);if(E[j]!==void 0)return E[j];z=z||W.alloc(8);var N=P(z,z,10,128,j).then(function(){return!0},function(){return!1});return E[j]=N,N}function _(j,N){j.then(function(x){D()(function(){N(null,x)})},function(x){D()(function(){N(x)})})}$.exports=function(j,N,x,g,f,p){if(typeof f==="function")p=f,f=void 0;if(C(x,g),j=V(j,F,"Password"),N=V(N,F,"Salt"),typeof p!=="function")throw Error("No callback provided to pbkdf2");f=f||"sha1";var s=L[f.toLowerCase()];if(!s||typeof globalThis.Promise!=="function"){D()(function(){var O0;try{O0=R(j,N,x,g,f)}catch(C0){p(C0);return}p(null,O0)});return}_(q(s).then(function(O0){if(O0)return P(j,N,x,g,s);return R(j,N,x,g,f)}),p)}}),sQ=A0((G)=>{var $=(SU(),l0(PU)),W=KX(),C=OX(),F=AX();function R(z,k,L,E,A,D){if(W(L,E),z=F(z,C,"Password"),k=F(k,C,"Salt"),typeof A==="function")D=A,A="sha1";if(typeof D!=="function")throw Error("No callback provided to pbkdf2");return $.pbkdf2(z,k,L,E,A,D)}function V(z,k,L,E,A){return W(L,E),z=F(z,C,"Password"),k=F(k,C,"Salt"),A=A||"sha1",$.pbkdf2Sync(z,k,L,E,A)}if(!$.pbkdf2Sync||$.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)G.pbkdf2Sync=mQ(),G.pbkdf2=nV();else G.pbkdf2Sync=V,G.pbkdf2=R}),mV=A0((G)=>{var $=(SU(),l0(PU));G.createCipher=G.Cipher=$.createCipher,G.createCipheriv=G.Cipheriv=$.createCipheriv,G.createDecipher=G.Decipher=$.createDecipher,G.createDecipheriv=G.Decipheriv=$.createDecipheriv,G.listCiphers=G.getCiphers=$.getCiphers}),sV=A0((G)=>{var $=(SU(),l0(PU));G.DiffieHellmanGroup=$.DiffieHellmanGroup,G.createDiffieHellmanGroup=$.createDiffieHellmanGroup,G.getDiffieHellman=$.getDiffieHellman,G.createDiffieHellman=$.createDiffieHellman,G.DiffieHellman=$.DiffieHellman}),tV=A0((G)=>{var $=(SU(),l0(PU));G.createSign=$.createSign,G.Sign=$.Sign,G.createVerify=$.createVerify,G.Verify=$.Verify}),aV=A0((G,$)=>{$.exports={name:"elliptic",version:"6.6.1",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"}}}),wU=A0((G,$)=>{(function(W,C){function F(U,Q){if(!U)throw Error(Q||"Assertion failed")}function R(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof W==="object")W.exports=V;else C.BN=V;V.BN=V,V.wordSize=26;var z;try{if(typeof window<"u"&&typeof window.Buffer<"u")z=window.Buffer;else z=(TU(),l0(CU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;F(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var X=0;if(U[0]==="-")X++,this.negative=1;if(X<U.length){if(Q===16)this._parseHex(U,X,J);else if(this._parseBase(U,Q,X),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else F(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(F(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y,O,H=0;if(J==="be"){for(X=U.length-1,Y=0;X>=0;X-=3)if(O=U[X]|U[X-1]<<8|U[X-2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}else if(J==="le"){for(X=0,Y=0;X<U.length;X+=3)if(O=U[X]|U[X+1]<<8|U[X+2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}return this.strip()};function k(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var X=k(U,J);if(J-1>=Q)X|=k(U,J-1)<<4;return X}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y=0,O=0,H;if(J==="be")for(X=U.length-1;X>=Q;X-=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8;else{var I=U.length-Q;for(X=I%2===0?Q+1:Q;X<U.length;X+=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8}this.strip()};function E(U,Q,J,X){var Y=0,O=Math.min(U.length,J);for(var H=Q;H<O;H++){var I=U.charCodeAt(H)-48;if(Y*=X,I>=49)Y+=I-49+10;else if(I>=17)Y+=I-17+10;else Y+=I}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var X=0,Y=1;Y<=67108863;Y*=Q)X++;X--,Y=Y/Q|0;var O=U.length-J,H=O%X,I=Math.min(O,O-H)+J,Z=0;for(var K=J;K<I;K+=X)if(Z=E(U,K,K+X,Q),this.imuln(Y),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(H!==0){var S=1;Z=E(U,K,U.length,Q);for(K=0;K<H;K++)S*=Q;if(this.imuln(S),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var X=0,Y=0;for(var O=0;O<this.length;O++){var H=this.words[O],I=((H<<X|Y)&16777215).toString(16);if(Y=H>>>24-X&16777215,X+=2,X>=26)X-=26,O--;if(Y!==0||O!==this.length-1)J=A[6-I.length]+I+J;else J=I+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var Z=D[U],K=P[U];J="";var S=this.clone();S.negative=0;while(!S.isZero()){var T=S.modn(K).toString(U);if(S=S.idivn(K),!S.isZero())J=A[Z-T.length]+T+J;else J=T+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}F(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)F(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return F(typeof z<"u"),this.toArrayLike(z,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var X=this.byteLength(),Y=J||Math.max(1,X);F(X<=Y,"byte array longer than desired length"),F(Y>0,"Requested array length <= 0"),this.strip();var O=Q==="le",H=new U(Y),I,Z,K=this.clone();if(!O){for(Z=0;Z<Y-X;Z++)H[Z]=0;for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Y-Z-1]=I}else{for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Z]=I;for(;Z<Y;Z++)H[Z]=0}return H},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function q(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var X=J/26|0,Y=J%26;Q[J]=(U.words[X]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return F((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return F((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var X=0;X<J.length;X++)this.words[X]=Q.words[X]^J.words[X];if(this!==Q)for(;X<Q.length;X++)this.words[X]=Q.words[X];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return F((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){F(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var X=0;X<Q;X++)this.words[X]=~this.words[X]&67108863;if(J>0)this.words[X]=~this.words[X]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){F(typeof U==="number"&&U>=0);var J=U/26|0,X=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<X;else this.words[J]=this.words[J]&~(1<<X);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,X;if(this.length>U.length)J=this,X=U;else J=U,X=this;var Y=0;for(var O=0;O<X.length;O++)Q=(J.words[O]|0)+(X.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;for(;Y!==0&&O<J.length;O++)Q=(J.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;O<J.length;O++)this.words[O]=J.words[O];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,Y;if(J>0)X=this,Y=U;else X=U,Y=this;var O=0;for(var H=0;H<Y.length;H++)Q=(X.words[H]|0)-(Y.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;for(;O!==0&&H<X.length;H++)Q=(X.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;if(O===0&&H<X.length&&X!==this)for(;H<X.length;H++)this.words[H]=X.words[H];if(this.length=Math.max(this.length,H),X!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function _(U,Q,J){J.negative=Q.negative^U.negative;var X=U.length+Q.length|0;J.length=X,X=X-1|0;var Y=U.words[0]|0,O=Q.words[0]|0,H=Y*O,I=H&67108863,Z=H/67108864|0;J.words[0]=I;for(var K=1;K<X;K++){var S=Z>>>26,T=Z&67108863,B=Math.min(K,Q.length-1);for(var c=Math.max(0,K-U.length+1);c<=B;c++){var d=K-c|0;Y=U.words[d]|0,O=Q.words[c]|0,H=Y*O+T,S+=H/67108864|0,T=H&67108863}J.words[K]=T|0,Z=S|0}if(Z!==0)J.words[K]=Z|0;else J.length--;return J.strip()}var j=function(U,Q,J){var X=U.words,Y=Q.words,O=J.words,H=0,I,Z,K,S=X[0]|0,T=S&8191,B=S>>>13,c=X[1]|0,d=c&8191,r=c>>>13,z0=X[2]|0,Z0=z0&8191,t=z0>>>13,$0=X[3]|0,e=$0&8191,Y0=$0>>>13,y0=X[4]|0,u=y0&8191,l=y0>>>13,K0=X[5]|0,U0=K0&8191,Q0=K0>>>13,R0=X[6]|0,b=R0&8191,a=R0>>>13,w0=X[7]|0,i=w0&8191,V0=w0>>>13,c0=X[8]|0,M=c0&8191,v=c0>>>13,w=X[9]|0,h=w&8191,o=w>>>13,H0=Y[0]|0,X0=H0&8191,F0=H0>>>13,d0=Y[1]|0,D0=d0&8191,T0=d0>>>13,b0=Y[2]|0,_0=b0&8191,q0=b0>>>13,DU=Y[3]|0,B0=DU&8191,P0=DU>>>13,HU=Y[4]|0,x0=HU&8191,N0=HU>>>13,FU=Y[5]|0,k0=FU&8191,y=FU>>>13,m=Y[6]|0,J0=m&8191,G0=m>>>13,f0=Y[7]|0,E0=f0&8191,M0=f0>>>13,r0=Y[8]|0,j0=r0&8191,g0=r0>>>13,zU=Y[9]|0,v0=zU&8191,S0=zU>>>13;J.negative=U.negative^Q.negative,J.length=19,I=Math.imul(T,X0),Z=Math.imul(T,F0),Z=Z+Math.imul(B,X0)|0,K=Math.imul(B,F0);var e0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(e0>>>26)|0,e0&=67108863,I=Math.imul(d,X0),Z=Math.imul(d,F0),Z=Z+Math.imul(r,X0)|0,K=Math.imul(r,F0),I=I+Math.imul(T,D0)|0,Z=Z+Math.imul(T,T0)|0,Z=Z+Math.imul(B,D0)|0,K=K+Math.imul(B,T0)|0;var h0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(h0>>>26)|0,h0&=67108863,I=Math.imul(Z0,X0),Z=Math.imul(Z0,F0),Z=Z+Math.imul(t,X0)|0,K=Math.imul(t,F0),I=I+Math.imul(d,D0)|0,Z=Z+Math.imul(d,T0)|0,Z=Z+Math.imul(r,D0)|0,K=K+Math.imul(r,T0)|0,I=I+Math.imul(T,_0)|0,Z=Z+Math.imul(T,q0)|0,Z=Z+Math.imul(B,_0)|0,K=K+Math.imul(B,q0)|0;var p0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(p0>>>26)|0,p0&=67108863,I=Math.imul(e,X0),Z=Math.imul(e,F0),Z=Z+Math.imul(Y0,X0)|0,K=Math.imul(Y0,F0),I=I+Math.imul(Z0,D0)|0,Z=Z+Math.imul(Z0,T0)|0,Z=Z+Math.imul(t,D0)|0,K=K+Math.imul(t,T0)|0,I=I+Math.imul(d,_0)|0,Z=Z+Math.imul(d,q0)|0,Z=Z+Math.imul(r,_0)|0,K=K+Math.imul(r,q0)|0,I=I+Math.imul(T,B0)|0,Z=Z+Math.imul(T,P0)|0,Z=Z+Math.imul(B,B0)|0,K=K+Math.imul(B,P0)|0;var m0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(m0>>>26)|0,m0&=67108863,I=Math.imul(u,X0),Z=Math.imul(u,F0),Z=Z+Math.imul(l,X0)|0,K=Math.imul(l,F0),I=I+Math.imul(e,D0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(Y0,D0)|0,K=K+Math.imul(Y0,T0)|0,I=I+Math.imul(Z0,_0)|0,Z=Z+Math.imul(Z0,q0)|0,Z=Z+Math.imul(t,_0)|0,K=K+Math.imul(t,q0)|0,I=I+Math.imul(d,B0)|0,Z=Z+Math.imul(d,P0)|0,Z=Z+Math.imul(r,B0)|0,K=K+Math.imul(r,P0)|0,I=I+Math.imul(T,x0)|0,Z=Z+Math.imul(T,N0)|0,Z=Z+Math.imul(B,x0)|0,K=K+Math.imul(B,N0)|0;var n0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(n0>>>26)|0,n0&=67108863,I=Math.imul(U0,X0),Z=Math.imul(U0,F0),Z=Z+Math.imul(Q0,X0)|0,K=Math.imul(Q0,F0),I=I+Math.imul(u,D0)|0,Z=Z+Math.imul(u,T0)|0,Z=Z+Math.imul(l,D0)|0,K=K+Math.imul(l,T0)|0,I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,q0)|0,Z=Z+Math.imul(Y0,_0)|0,K=K+Math.imul(Y0,q0)|0,I=I+Math.imul(Z0,B0)|0,Z=Z+Math.imul(Z0,P0)|0,Z=Z+Math.imul(t,B0)|0,K=K+Math.imul(t,P0)|0,I=I+Math.imul(d,x0)|0,Z=Z+Math.imul(d,N0)|0,Z=Z+Math.imul(r,x0)|0,K=K+Math.imul(r,N0)|0,I=I+Math.imul(T,k0)|0,Z=Z+Math.imul(T,y)|0,Z=Z+Math.imul(B,k0)|0,K=K+Math.imul(B,y)|0;var i0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(i0>>>26)|0,i0&=67108863,I=Math.imul(b,X0),Z=Math.imul(b,F0),Z=Z+Math.imul(a,X0)|0,K=Math.imul(a,F0),I=I+Math.imul(U0,D0)|0,Z=Z+Math.imul(U0,T0)|0,Z=Z+Math.imul(Q0,D0)|0,K=K+Math.imul(Q0,T0)|0,I=I+Math.imul(u,_0)|0,Z=Z+Math.imul(u,q0)|0,Z=Z+Math.imul(l,_0)|0,K=K+Math.imul(l,q0)|0,I=I+Math.imul(e,B0)|0,Z=Z+Math.imul(e,P0)|0,Z=Z+Math.imul(Y0,B0)|0,K=K+Math.imul(Y0,P0)|0,I=I+Math.imul(Z0,x0)|0,Z=Z+Math.imul(Z0,N0)|0,Z=Z+Math.imul(t,x0)|0,K=K+Math.imul(t,N0)|0,I=I+Math.imul(d,k0)|0,Z=Z+Math.imul(d,y)|0,Z=Z+Math.imul(r,k0)|0,K=K+Math.imul(r,y)|0,I=I+Math.imul(T,J0)|0,Z=Z+Math.imul(T,G0)|0,Z=Z+Math.imul(B,J0)|0,K=K+Math.imul(B,G0)|0;var UU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(UU>>>26)|0,UU&=67108863,I=Math.imul(i,X0),Z=Math.imul(i,F0),Z=Z+Math.imul(V0,X0)|0,K=Math.imul(V0,F0),I=I+Math.imul(b,D0)|0,Z=Z+Math.imul(b,T0)|0,Z=Z+Math.imul(a,D0)|0,K=K+Math.imul(a,T0)|0,I=I+Math.imul(U0,_0)|0,Z=Z+Math.imul(U0,q0)|0,Z=Z+Math.imul(Q0,_0)|0,K=K+Math.imul(Q0,q0)|0,I=I+Math.imul(u,B0)|0,Z=Z+Math.imul(u,P0)|0,Z=Z+Math.imul(l,B0)|0,K=K+Math.imul(l,P0)|0,I=I+Math.imul(e,x0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(Y0,x0)|0,K=K+Math.imul(Y0,N0)|0,I=I+Math.imul(Z0,k0)|0,Z=Z+Math.imul(Z0,y)|0,Z=Z+Math.imul(t,k0)|0,K=K+Math.imul(t,y)|0,I=I+Math.imul(d,J0)|0,Z=Z+Math.imul(d,G0)|0,Z=Z+Math.imul(r,J0)|0,K=K+Math.imul(r,G0)|0,I=I+Math.imul(T,E0)|0,Z=Z+Math.imul(T,M0)|0,Z=Z+Math.imul(B,E0)|0,K=K+Math.imul(B,M0)|0;var ZU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(M,X0),Z=Math.imul(M,F0),Z=Z+Math.imul(v,X0)|0,K=Math.imul(v,F0),I=I+Math.imul(i,D0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(V0,D0)|0,K=K+Math.imul(V0,T0)|0,I=I+Math.imul(b,_0)|0,Z=Z+Math.imul(b,q0)|0,Z=Z+Math.imul(a,_0)|0,K=K+Math.imul(a,q0)|0,I=I+Math.imul(U0,B0)|0,Z=Z+Math.imul(U0,P0)|0,Z=Z+Math.imul(Q0,B0)|0,K=K+Math.imul(Q0,P0)|0,I=I+Math.imul(u,x0)|0,Z=Z+Math.imul(u,N0)|0,Z=Z+Math.imul(l,x0)|0,K=K+Math.imul(l,N0)|0,I=I+Math.imul(e,k0)|0,Z=Z+Math.imul(e,y)|0,Z=Z+Math.imul(Y0,k0)|0,K=K+Math.imul(Y0,y)|0,I=I+Math.imul(Z0,J0)|0,Z=Z+Math.imul(Z0,G0)|0,Z=Z+Math.imul(t,J0)|0,K=K+Math.imul(t,G0)|0,I=I+Math.imul(d,E0)|0,Z=Z+Math.imul(d,M0)|0,Z=Z+Math.imul(r,E0)|0,K=K+Math.imul(r,M0)|0,I=I+Math.imul(T,j0)|0,Z=Z+Math.imul(T,g0)|0,Z=Z+Math.imul(B,j0)|0,K=K+Math.imul(B,g0)|0;var XU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,I=Math.imul(h,X0),Z=Math.imul(h,F0),Z=Z+Math.imul(o,X0)|0,K=Math.imul(o,F0),I=I+Math.imul(M,D0)|0,Z=Z+Math.imul(M,T0)|0,Z=Z+Math.imul(v,D0)|0,K=K+Math.imul(v,T0)|0,I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,q0)|0,Z=Z+Math.imul(V0,_0)|0,K=K+Math.imul(V0,q0)|0,I=I+Math.imul(b,B0)|0,Z=Z+Math.imul(b,P0)|0,Z=Z+Math.imul(a,B0)|0,K=K+Math.imul(a,P0)|0,I=I+Math.imul(U0,x0)|0,Z=Z+Math.imul(U0,N0)|0,Z=Z+Math.imul(Q0,x0)|0,K=K+Math.imul(Q0,N0)|0,I=I+Math.imul(u,k0)|0,Z=Z+Math.imul(u,y)|0,Z=Z+Math.imul(l,k0)|0,K=K+Math.imul(l,y)|0,I=I+Math.imul(e,J0)|0,Z=Z+Math.imul(e,G0)|0,Z=Z+Math.imul(Y0,J0)|0,K=K+Math.imul(Y0,G0)|0,I=I+Math.imul(Z0,E0)|0,Z=Z+Math.imul(Z0,M0)|0,Z=Z+Math.imul(t,E0)|0,K=K+Math.imul(t,M0)|0,I=I+Math.imul(d,j0)|0,Z=Z+Math.imul(d,g0)|0,Z=Z+Math.imul(r,j0)|0,K=K+Math.imul(r,g0)|0,I=I+Math.imul(T,v0)|0,Z=Z+Math.imul(T,S0)|0,Z=Z+Math.imul(B,v0)|0,K=K+Math.imul(B,S0)|0;var QU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(QU>>>26)|0,QU&=67108863,I=Math.imul(h,D0),Z=Math.imul(h,T0),Z=Z+Math.imul(o,D0)|0,K=Math.imul(o,T0),I=I+Math.imul(M,_0)|0,Z=Z+Math.imul(M,q0)|0,Z=Z+Math.imul(v,_0)|0,K=K+Math.imul(v,q0)|0,I=I+Math.imul(i,B0)|0,Z=Z+Math.imul(i,P0)|0,Z=Z+Math.imul(V0,B0)|0,K=K+Math.imul(V0,P0)|0,I=I+Math.imul(b,x0)|0,Z=Z+Math.imul(b,N0)|0,Z=Z+Math.imul(a,x0)|0,K=K+Math.imul(a,N0)|0,I=I+Math.imul(U0,k0)|0,Z=Z+Math.imul(U0,y)|0,Z=Z+Math.imul(Q0,k0)|0,K=K+Math.imul(Q0,y)|0,I=I+Math.imul(u,J0)|0,Z=Z+Math.imul(u,G0)|0,Z=Z+Math.imul(l,J0)|0,K=K+Math.imul(l,G0)|0,I=I+Math.imul(e,E0)|0,Z=Z+Math.imul(e,M0)|0,Z=Z+Math.imul(Y0,E0)|0,K=K+Math.imul(Y0,M0)|0,I=I+Math.imul(Z0,j0)|0,Z=Z+Math.imul(Z0,g0)|0,Z=Z+Math.imul(t,j0)|0,K=K+Math.imul(t,g0)|0,I=I+Math.imul(d,v0)|0,Z=Z+Math.imul(d,S0)|0,Z=Z+Math.imul(r,v0)|0,K=K+Math.imul(r,S0)|0;var YU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(h,_0),Z=Math.imul(h,q0),Z=Z+Math.imul(o,_0)|0,K=Math.imul(o,q0),I=I+Math.imul(M,B0)|0,Z=Z+Math.imul(M,P0)|0,Z=Z+Math.imul(v,B0)|0,K=K+Math.imul(v,P0)|0,I=I+Math.imul(i,x0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(V0,x0)|0,K=K+Math.imul(V0,N0)|0,I=I+Math.imul(b,k0)|0,Z=Z+Math.imul(b,y)|0,Z=Z+Math.imul(a,k0)|0,K=K+Math.imul(a,y)|0,I=I+Math.imul(U0,J0)|0,Z=Z+Math.imul(U0,G0)|0,Z=Z+Math.imul(Q0,J0)|0,K=K+Math.imul(Q0,G0)|0,I=I+Math.imul(u,E0)|0,Z=Z+Math.imul(u,M0)|0,Z=Z+Math.imul(l,E0)|0,K=K+Math.imul(l,M0)|0,I=I+Math.imul(e,j0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(Y0,j0)|0,K=K+Math.imul(Y0,g0)|0,I=I+Math.imul(Z0,v0)|0,Z=Z+Math.imul(Z0,S0)|0,Z=Z+Math.imul(t,v0)|0,K=K+Math.imul(t,S0)|0;var JU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(h,B0),Z=Math.imul(h,P0),Z=Z+Math.imul(o,B0)|0,K=Math.imul(o,P0),I=I+Math.imul(M,x0)|0,Z=Z+Math.imul(M,N0)|0,Z=Z+Math.imul(v,x0)|0,K=K+Math.imul(v,N0)|0,I=I+Math.imul(i,k0)|0,Z=Z+Math.imul(i,y)|0,Z=Z+Math.imul(V0,k0)|0,K=K+Math.imul(V0,y)|0,I=I+Math.imul(b,J0)|0,Z=Z+Math.imul(b,G0)|0,Z=Z+Math.imul(a,J0)|0,K=K+Math.imul(a,G0)|0,I=I+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,M0)|0,Z=Z+Math.imul(Q0,E0)|0,K=K+Math.imul(Q0,M0)|0,I=I+Math.imul(u,j0)|0,Z=Z+Math.imul(u,g0)|0,Z=Z+Math.imul(l,j0)|0,K=K+Math.imul(l,g0)|0,I=I+Math.imul(e,v0)|0,Z=Z+Math.imul(e,S0)|0,Z=Z+Math.imul(Y0,v0)|0,K=K+Math.imul(Y0,S0)|0;var VU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(VU>>>26)|0,VU&=67108863,I=Math.imul(h,x0),Z=Math.imul(h,N0),Z=Z+Math.imul(o,x0)|0,K=Math.imul(o,N0),I=I+Math.imul(M,k0)|0,Z=Z+Math.imul(M,y)|0,Z=Z+Math.imul(v,k0)|0,K=K+Math.imul(v,y)|0,I=I+Math.imul(i,J0)|0,Z=Z+Math.imul(i,G0)|0,Z=Z+Math.imul(V0,J0)|0,K=K+Math.imul(V0,G0)|0,I=I+Math.imul(b,E0)|0,Z=Z+Math.imul(b,M0)|0,Z=Z+Math.imul(a,E0)|0,K=K+Math.imul(a,M0)|0,I=I+Math.imul(U0,j0)|0,Z=Z+Math.imul(U0,g0)|0,Z=Z+Math.imul(Q0,j0)|0,K=K+Math.imul(Q0,g0)|0,I=I+Math.imul(u,v0)|0,Z=Z+Math.imul(u,S0)|0,Z=Z+Math.imul(l,v0)|0,K=K+Math.imul(l,S0)|0;var GU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(GU>>>26)|0,GU&=67108863,I=Math.imul(h,k0),Z=Math.imul(h,y),Z=Z+Math.imul(o,k0)|0,K=Math.imul(o,y),I=I+Math.imul(M,J0)|0,Z=Z+Math.imul(M,G0)|0,Z=Z+Math.imul(v,J0)|0,K=K+Math.imul(v,G0)|0,I=I+Math.imul(i,E0)|0,Z=Z+Math.imul(i,M0)|0,Z=Z+Math.imul(V0,E0)|0,K=K+Math.imul(V0,M0)|0,I=I+Math.imul(b,j0)|0,Z=Z+Math.imul(b,g0)|0,Z=Z+Math.imul(a,j0)|0,K=K+Math.imul(a,g0)|0,I=I+Math.imul(U0,v0)|0,Z=Z+Math.imul(U0,S0)|0,Z=Z+Math.imul(Q0,v0)|0,K=K+Math.imul(Q0,S0)|0;var IU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(IU>>>26)|0,IU&=67108863,I=Math.imul(h,J0),Z=Math.imul(h,G0),Z=Z+Math.imul(o,J0)|0,K=Math.imul(o,G0),I=I+Math.imul(M,E0)|0,Z=Z+Math.imul(M,M0)|0,Z=Z+Math.imul(v,E0)|0,K=K+Math.imul(v,M0)|0,I=I+Math.imul(i,j0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(V0,j0)|0,K=K+Math.imul(V0,g0)|0,I=I+Math.imul(b,v0)|0,Z=Z+Math.imul(b,S0)|0,Z=Z+Math.imul(a,v0)|0,K=K+Math.imul(a,S0)|0;var $U=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+($U>>>26)|0,$U&=67108863,I=Math.imul(h,E0),Z=Math.imul(h,M0),Z=Z+Math.imul(o,E0)|0,K=Math.imul(o,M0),I=I+Math.imul(M,j0)|0,Z=Z+Math.imul(M,g0)|0,Z=Z+Math.imul(v,j0)|0,K=K+Math.imul(v,g0)|0,I=I+Math.imul(i,v0)|0,Z=Z+Math.imul(i,S0)|0,Z=Z+Math.imul(V0,v0)|0,K=K+Math.imul(V0,S0)|0;var KU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(KU>>>26)|0,KU&=67108863,I=Math.imul(h,j0),Z=Math.imul(h,g0),Z=Z+Math.imul(o,j0)|0,K=Math.imul(o,g0),I=I+Math.imul(M,v0)|0,Z=Z+Math.imul(M,S0)|0,Z=Z+Math.imul(v,v0)|0,K=K+Math.imul(v,S0)|0;var OU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(h,v0),Z=Math.imul(h,S0),Z=Z+Math.imul(o,v0)|0,K=Math.imul(o,S0);var WU=(H+I|0)+((Z&8191)<<13)|0;if(H=(K+(Z>>>13)|0)+(WU>>>26)|0,WU&=67108863,O[0]=e0,O[1]=h0,O[2]=p0,O[3]=m0,O[4]=n0,O[5]=i0,O[6]=UU,O[7]=ZU,O[8]=XU,O[9]=QU,O[10]=YU,O[11]=JU,O[12]=VU,O[13]=GU,O[14]=IU,O[15]=$U,O[16]=KU,O[17]=OU,O[18]=WU,H!==0)O[19]=H,J.length++;return J};if(!Math.imul)j=_;function N(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var X=0,Y=0;for(var O=0;O<J.length-1;O++){var H=Y;Y=0;var I=X&67108863,Z=Math.min(O,Q.length-1);for(var K=Math.max(0,O-U.length+1);K<=Z;K++){var S=O-K,T=U.words[S]|0,B=Q.words[K]|0,c=T*B,d=c&67108863;H=H+(c/67108864|0)|0,d=d+I|0,I=d&67108863,H=H+(d>>>26)|0,Y+=H>>>26,H&=67108863}J.words[O]=I,X=H,H=Y}if(X!==0)J.words[O]=X;else J.length--;return J.strip()}function x(U,Q,J){var X=new g;return X.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,X=this.length+U.length;if(this.length===10&&U.length===10)J=j(this,U,Q);else if(X<63)J=_(this,U,Q);else if(X<1024)J=N(this,U,Q);else J=x(this,U,Q);return J};function g(U,Q){this.x=U,this.y=Q}g.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var X=0;X<U;X++)Q[X]=this.revBin(X,J,U);return Q},g.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var X=0;for(var Y=0;Y<Q;Y++)X|=(U&1)<<Q-Y-1,U>>=1;return X},g.prototype.permute=function(U,Q,J,X,Y,O){for(var H=0;H<O;H++)X[H]=Q[U[H]],Y[H]=J[U[H]]},g.prototype.transform=function(U,Q,J,X,Y,O){this.permute(O,U,Q,J,X,Y);for(var H=1;H<Y;H<<=1){var I=H<<1,Z=Math.cos(2*Math.PI/I),K=Math.sin(2*Math.PI/I);for(var S=0;S<Y;S+=I){var T=Z,B=K;for(var c=0;c<H;c++){var d=J[S+c],r=X[S+c],z0=J[S+c+H],Z0=X[S+c+H],t=T*z0-B*Z0;if(Z0=T*Z0+B*z0,z0=t,J[S+c]=d+z0,X[S+c]=r+Z0,J[S+c+H]=d-z0,X[S+c+H]=r-Z0,c!==I)t=Z*T-K*B,B=Z*B+K*T,T=t}}}},g.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,X=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+X},g.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var X=0;X<J/2;X++){var Y=U[X];U[X]=U[J-X-1],U[J-X-1]=Y,Y=Q[X],Q[X]=-Q[J-X-1],Q[J-X-1]=-Y}},g.prototype.normalize13b=function(U,Q){var J=0;for(var X=0;X<Q/2;X++){var Y=Math.round(U[2*X+1]/Q)*8192+Math.round(U[2*X]/Q)+J;if(U[X]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},g.prototype.convert13b=function(U,Q,J,X){var Y=0;for(var O=0;O<Q;O++)Y=Y+(U[O]|0),J[2*O]=Y&8191,Y=Y>>>13,J[2*O+1]=Y&8191,Y=Y>>>13;for(O=2*Q;O<X;++O)J[O]=0;F(Y===0),F((Y&-8192)===0)},g.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},g.prototype.mulp=function(U,Q,J){var X=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(X),O=this.stub(X),H=Array(X),I=Array(X),Z=Array(X),K=Array(X),S=Array(X),T=Array(X),B=J.words;B.length=X,this.convert13b(U.words,U.length,H,X),this.convert13b(Q.words,Q.length,K,X),this.transform(H,O,I,Z,X,Y),this.transform(K,O,S,T,X,Y);for(var c=0;c<X;c++){var d=I[c]*S[c]-Z[c]*T[c];Z[c]=I[c]*T[c]+Z[c]*S[c],I[c]=d}return this.conjugate(I,Z,X),this.transform(I,Z,B,O,X,Y),this.conjugate(B,O,X),this.normalize13b(B,X),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),x(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){F(typeof U==="number"),F(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var X=(this.words[J]|0)*U,Y=(X&67108863)+(Q&67108863);Q>>=26,Q+=X/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=q(U);if(Q.length===0)return new V(1);var J=this;for(var X=0;X<Q.length;X++,J=J.sqr())if(Q[X]!==0)break;if(++X<Q.length)for(var Y=J.sqr();X<Q.length;X++,Y=Y.sqr()){if(Q[X]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var O=0;for(Y=0;Y<this.length;Y++){var H=this.words[Y]&X,I=(this.words[Y]|0)-H<<Q;this.words[Y]=I|O,O=H>>>26-Q}if(O)this.words[Y]=O,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return F(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){F(typeof U==="number"&&U>=0);var X;if(Q)X=(Q-Q%26)/26;else X=0;var Y=U%26,O=Math.min((U-Y)/26,this.length),H=67108863^67108863>>>Y<<Y,I=J;if(X-=O,X=Math.max(0,X),I){for(var Z=0;Z<O;Z++)I.words[Z]=this.words[Z];I.length=O}if(O===0);else if(this.length>O){this.length-=O;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+O]}else this.words[0]=0,this.length=1;var K=0;for(Z=this.length-1;Z>=0&&(K!==0||Z>=X);Z--){var S=this.words[Z]|0;this.words[Z]=K<<26-Y|S>>>Y,K=S&H}if(I&&K!==0)I.words[I.length++]=K;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return F(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&X)},V.prototype.imaskn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var X=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=X}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var X=U.length+J,Y;this._expand(X);var O,H=0;for(Y=0;Y<U.length;Y++){O=(this.words[Y+J]|0)+H;var I=(U.words[Y]|0)*Q;O-=I&67108863,H=(O>>26)-(I/67108864|0),this.words[Y+J]=O&67108863}for(;Y<this.length-J;Y++)O=(this.words[Y+J]|0)+H,H=O>>26,this.words[Y+J]=O&67108863;if(H===0)return this.strip();F(H===-1),H=0;for(Y=0;Y<this.length;Y++)O=-(this.words[Y]|0)+H,H=O>>26,this.words[Y]=O&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,X=this.clone(),Y=U,O=Y.words[Y.length-1]|0,H=this._countBits(O);if(J=26-H,J!==0)Y=Y.ushln(J),X.iushln(J),O=Y.words[Y.length-1]|0;var I=X.length-Y.length,Z;if(Q!=="mod"){Z=new V(null),Z.length=I+1,Z.words=Array(Z.length);for(var K=0;K<Z.length;K++)Z.words[K]=0}var S=X.clone()._ishlnsubmul(Y,1,I);if(S.negative===0){if(X=S,Z)Z.words[I]=1}for(var T=I-1;T>=0;T--){var B=(X.words[Y.length+T]|0)*67108864+(X.words[Y.length+T-1]|0);B=Math.min(B/O|0,67108863),X._ishlnsubmul(Y,B,T);while(X.negative!==0)if(B--,X.negative=0,X._ishlnsubmul(Y,1,T),!X.isZero())X.negative^=1;if(Z)Z.words[T]=B}if(Z)Z.strip();if(X.strip(),Q!=="div"&&J!==0)X.iushrn(J);return{div:Z||null,mod:X}},V.prototype.divmod=function(U,Q,J){if(F(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var X,Y,O;if(this.negative!==0&&U.negative===0){if(O=this.neg().divmod(U,Q),Q!=="mod")X=O.div.neg();if(Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:X,mod:Y}}if(this.negative===0&&U.negative!==0){if(O=this.divmod(U.neg(),Q),Q!=="mod")X=O.div.neg();return{div:X,mod:O.mod}}if((this.negative&U.negative)!==0){if(O=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:O.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,X=U.ushrn(1),Y=U.andln(1),O=J.cmp(X);if(O<0||Y===1&&O===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){F(U<=67108863);var Q=67108864%U,J=0;for(var X=this.length-1;X>=0;X--)J=(Q*J+(this.words[X]|0))%U;return J},V.prototype.idivn=function(U){F(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var X=(this.words[J]|0)+Q*67108864;this.words[J]=X/U|0,Q=X%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=new V(0),H=new V(1),I=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++I;var Z=J.clone(),K=Q.clone();while(!Q.isZero()){for(var S=0,T=1;(Q.words[0]&T)===0&&S<26;++S,T<<=1);if(S>0){Q.iushrn(S);while(S-- >0){if(X.isOdd()||Y.isOdd())X.iadd(Z),Y.isub(K);X.iushrn(1),Y.iushrn(1)}}for(var B=0,c=1;(J.words[0]&c)===0&&B<26;++B,c<<=1);if(B>0){J.iushrn(B);while(B-- >0){if(O.isOdd()||H.isOdd())O.iadd(Z),H.isub(K);O.iushrn(1),H.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(O),Y.isub(H);else J.isub(Q),O.isub(X),H.isub(Y)}return{a:O,b:H,gcd:J.iushln(I)}},V.prototype._invmp=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var H=0,I=1;(Q.words[0]&I)===0&&H<26;++H,I<<=1);if(H>0){Q.iushrn(H);while(H-- >0){if(X.isOdd())X.iadd(O);X.iushrn(1)}}for(var Z=0,K=1;(J.words[0]&K)===0&&Z<26;++Z,K<<=1);if(Z>0){J.iushrn(Z);while(Z-- >0){if(Y.isOdd())Y.iadd(O);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(Y);else J.isub(Q),Y.isub(X)}var S;if(Q.cmpn(1)===0)S=X;else S=Y;if(S.cmpn(0)<0)S.iadd(U);return S},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var X=0;Q.isEven()&&J.isEven();X++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var O=Q;Q=J,J=O}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(X)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){F(typeof U==="number");var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=X,this;var Y=X;for(var O=J;Y!==0&&O<this.length;O++){var H=this.words[O]|0;H+=Y,Y=H>>>26,H&=67108863,this.words[O]=H}if(Y!==0)this.words[O]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;F(U<=67108863,"Number is too big");var X=this.words[0]|0;J=X===U?0:X<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var X=this.words[J]|0,Y=U.words[J]|0;if(X===Y)continue;if(X<Y)Q=-1;else if(X>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new n(U)},V.prototype.toRed=function(U){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return F(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return F(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var f={k256:null,p224:null,p192:null,p25519:null};function p(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},p.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var X=J<this.n?-1:Q.ucmp(this.p);if(X===0)Q.words[0]=0,Q.length=1;else if(X>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},p.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},p.prototype.imulK=function(U){return U.imul(this.k)};function s(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(s,p),s.prototype.split=function(U,Q){var J=4194303,X=Math.min(U.length,9);for(var Y=0;Y<X;Y++)Q.words[Y]=U.words[Y];if(Q.length=X,U.length<=9){U.words[0]=0,U.length=1;return}var O=U.words[9];Q.words[Q.length++]=O&J;for(Y=10;Y<U.length;Y++){var H=U.words[Y]|0;U.words[Y-10]=(H&J)<<4|O>>>22,O=H}if(O>>>=22,U.words[Y-10]=O,O===0&&U.length>10)U.length-=10;else U.length-=9},s.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var X=U.words[J]|0;Q+=X*977,U.words[J]=Q&67108863,Q=X*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function O0(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(O0,p);function C0(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(C0,p);function W0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(W0,p),W0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var X=(U.words[J]|0)*19+Q,Y=X&67108863;X>>>=26,U.words[J]=Y,Q=X}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(f[U])return f[U];var Q;if(U==="k256")Q=new s;else if(U==="p224")Q=new O0;else if(U==="p192")Q=new C0;else if(U==="p25519")Q=new W0;else throw Error("Unknown prime "+U);return f[U]=Q,Q};function n(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else F(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}n.prototype._verify1=function(U){F(U.negative===0,"red works only with positives"),F(U.red,"red works only with red numbers")},n.prototype._verify2=function(U,Q){F((U.negative|Q.negative)===0,"red works only with positives"),F(U.red&&U.red===Q.red,"red works only with red numbers")},n.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},n.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},n.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},n.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},n.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},n.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},n.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},n.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},n.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},n.prototype.isqr=function(U){return this.imul(U,U.clone())},n.prototype.sqr=function(U){return this.mul(U,U)},n.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var X=this.m.subn(1),Y=0;while(!X.isZero()&&X.andln(1)===0)Y++,X.iushrn(1);F(!X.isZero());var O=new V(1).toRed(this),H=O.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(H)!==0)Z.redIAdd(H);var K=this.pow(Z,X),S=this.pow(U,X.addn(1).iushrn(1)),T=this.pow(U,X),B=Y;while(T.cmp(O)!==0){var c=T;for(var d=0;c.cmp(O)!==0;d++)c=c.redSqr();F(d<B);var r=this.pow(K,new V(1).iushln(B-d-1));S=S.redMul(r),K=r.redSqr(),T=T.redMul(K),B=d}return S},n.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},n.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,X=Array(1<<J);X[0]=new V(1).toRed(this),X[1]=U;for(var Y=2;Y<X.length;Y++)X[Y]=this.mul(X[Y-1],U);var O=X[0],H=0,I=0,Z=Q.bitLength()%26;if(Z===0)Z=26;for(Y=Q.length-1;Y>=0;Y--){var K=Q.words[Y];for(var S=Z-1;S>=0;S--){var T=K>>S&1;if(O!==X[0])O=this.sqr(O);if(T===0&&H===0){I=0;continue}if(H<<=1,H|=T,I++,I!==J&&(Y!==0||S!==0))continue;O=this.mul(O,X[H]),I=0,H=0}Z=26}return O},n.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},n.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new I0(U)};function I0(U){if(n.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}R(I0,n),I0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},I0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},I0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof $>"u"||$,G)}),pU=A0((G,$)=>{$.exports=W;function W(C,F){if(!C)throw Error(F||"Assertion failed")}W.equal=function(C,F,R){if(C!=F)throw Error(R||"Assertion failed: "+C+" != "+F)}}),tQ=A0((G)=>{var $=G;function W(R,V){if(Array.isArray(R))return R.slice();if(!R)return[];var z=[];if(typeof R!=="string"){for(var k=0;k<R.length;k++)z[k]=R[k]|0;return z}if(V==="hex"){if(R=R.replace(/[^a-z0-9]+/ig,""),R.length%2!==0)R="0"+R;for(var k=0;k<R.length;k+=2)z.push(parseInt(R[k]+R[k+1],16))}else for(var k=0;k<R.length;k++){var L=R.charCodeAt(k),E=L>>8,A=L&255;if(E)z.push(E,A);else z.push(A)}return z}$.toArray=W;function C(R){if(R.length===1)return"0"+R;else return R}$.zero2=C;function F(R){var V="";for(var z=0;z<R.length;z++)V+=C(R[z].toString(16));return V}$.toHex=F,$.encode=function(R,V){if(V==="hex")return F(R);else return R}}),jU=A0((G)=>{var $=G,W=wU(),C=pU(),F=tQ();$.assert=C,$.toArray=F.toArray,$.zero2=F.zero2,$.toHex=F.toHex,$.encode=F.encode;function R(E,A,D){var P=Array(Math.max(E.bitLength(),D)+1),q;for(q=0;q<P.length;q+=1)P[q]=0;var _=1<<A+1,j=E.clone();for(q=0;q<P.length;q++){var N,x=j.andln(_-1);if(j.isOdd()){if(x>(_>>1)-1)N=(_>>1)-x;else N=x;j.isubn(N)}else N=0;P[q]=N,j.iushrn(1)}return P}$.getNAF=R;function V(E,A){var D=[[],[]];E=E.clone(),A=A.clone();var P=0,q=0,_;while(E.cmpn(-P)>0||A.cmpn(-q)>0){var j=E.andln(3)+P&3,N=A.andln(3)+q&3;if(j===3)j=-1;if(N===3)N=-1;var x;if((j&1)===0)x=0;else if(_=E.andln(7)+P&7,(_===3||_===5)&&N===2)x=-j;else x=j;D[0].push(x);var g;if((N&1)===0)g=0;else if(_=A.andln(7)+q&7,(_===3||_===5)&&j===2)g=-N;else g=N;if(D[1].push(g),2*P===x+1)P=1-P;if(2*q===g+1)q=1-q;E.iushrn(1),A.iushrn(1)}return D}$.getJSF=V;function z(E,A,D){var P="_"+A;E.prototype[A]=function(){return this[P]!==void 0?this[P]:this[P]=D.call(this)}}$.cachedProperty=z;function k(E){return typeof E==="string"?$.toArray(E,"hex"):E}$.parseBytes=k;function L(E){return new W(E,"hex","le")}$.intFromLE=L}),aQ=A0((G,$)=>{var W;$.exports=function(R){if(!W)W=new C(null);return W.generate(R)};function C(R){this.rand=R}if($.exports.Rand=C,C.prototype.generate=function(R){return this._rand(R)},C.prototype._rand=function(R){if(this.rand.getBytes)return this.rand.getBytes(R);var V=new Uint8Array(R);for(var z=0;z<V.length;z++)V[z]=this.rand.getByte();return V},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)C.prototype._rand=function(R){var V=new Uint8Array(R);return self.crypto.getRandomValues(V),V};else if(self.msCrypto&&self.msCrypto.getRandomValues)C.prototype._rand=function(R){var V=new Uint8Array(R);return self.msCrypto.getRandomValues(V),V};else if(typeof window==="object")C.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(F=(SU(),l0(PU)),typeof F.randomBytes!=="function")throw Error("Not supported");C.prototype._rand=function(R){return F.randomBytes(R)}}catch(R){}var F}),jZ=A0((G,$)=>{var W=wU(),C=jU(),F=C.getNAF,R=C.getJSF,V=C.assert;function z(L,E){this.type=L,this.p=new W(E.p,16),this.red=E.prime?W.red(E.prime):W.mont(this.p),this.zero=new W(0).toRed(this.red),this.one=new W(1).toRed(this.red),this.two=new W(2).toRed(this.red),this.n=E.n&&new W(E.n,16),this.g=E.g&&this.pointFromJSON(E.g,E.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var A=this.n&&this.p.div(this.n);if(!A||A.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}$.exports=z,z.prototype.point=function(){throw Error("Not implemented")},z.prototype.validate=function(){throw Error("Not implemented")},z.prototype._fixedNafMul=function(L,E){V(L.precomputed);var A=L._getDoubles(),D=F(E,1,this._bitLength),P=(1<<A.step+1)-(A.step%2===0?2:1);P/=3;var q=[],_,j;for(_=0;_<D.length;_+=A.step){j=0;for(var N=_+A.step-1;N>=_;N--)j=(j<<1)+D[N];q.push(j)}var x=this.jpoint(null,null,null),g=this.jpoint(null,null,null);for(var f=P;f>0;f--){for(_=0;_<q.length;_++)if(j=q[_],j===f)g=g.mixedAdd(A.points[_]);else if(j===-f)g=g.mixedAdd(A.points[_].neg());x=x.add(g)}return x.toP()},z.prototype._wnafMul=function(L,E){var A=4,D=L._getNAFPoints(A);A=D.wnd;var P=D.points,q=F(E,A,this._bitLength),_=this.jpoint(null,null,null);for(var j=q.length-1;j>=0;j--){for(var N=0;j>=0&&q[j]===0;j--)N++;if(j>=0)N++;if(_=_.dblp(N),j<0)break;var x=q[j];if(V(x!==0),L.type==="affine")if(x>0)_=_.mixedAdd(P[x-1>>1]);else _=_.mixedAdd(P[-x-1>>1].neg());else if(x>0)_=_.add(P[x-1>>1]);else _=_.add(P[-x-1>>1].neg())}return L.type==="affine"?_.toP():_},z.prototype._wnafMulAdd=function(L,E,A,D,P){var q=this._wnafT1,_=this._wnafT2,j=this._wnafT3,N=0,x,g,f;for(x=0;x<D;x++){f=E[x];var p=f._getNAFPoints(L);q[x]=p.wnd,_[x]=p.points}for(x=D-1;x>=1;x-=2){var s=x-1,O0=x;if(q[s]!==1||q[O0]!==1){j[s]=F(A[s],q[s],this._bitLength),j[O0]=F(A[O0],q[O0],this._bitLength),N=Math.max(j[s].length,N),N=Math.max(j[O0].length,N);continue}var C0=[E[s],null,null,E[O0]];if(E[s].y.cmp(E[O0].y)===0)C0[1]=E[s].add(E[O0]),C0[2]=E[s].toJ().mixedAdd(E[O0].neg());else if(E[s].y.cmp(E[O0].y.redNeg())===0)C0[1]=E[s].toJ().mixedAdd(E[O0]),C0[2]=E[s].add(E[O0].neg());else C0[1]=E[s].toJ().mixedAdd(E[O0]),C0[2]=E[s].toJ().mixedAdd(E[O0].neg());var W0=[-3,-1,-5,-7,0,7,5,1,3],n=R(A[s],A[O0]);N=Math.max(n[0].length,N),j[s]=Array(N),j[O0]=Array(N);for(g=0;g<N;g++){var I0=n[0][g]|0,U=n[1][g]|0;j[s][g]=W0[(I0+1)*3+(U+1)],j[O0][g]=0,_[s]=C0}}var Q=this.jpoint(null,null,null),J=this._wnafT4;for(x=N;x>=0;x--){var X=0;while(x>=0){var Y=!0;for(g=0;g<D;g++)if(J[g]=j[g][x]|0,J[g]!==0)Y=!1;if(!Y)break;X++,x--}if(x>=0)X++;if(Q=Q.dblp(X),x<0)break;for(g=0;g<D;g++){var O=J[g];if(O===0)continue;else if(O>0)f=_[g][O-1>>1];else if(O<0)f=_[g][-O-1>>1].neg();if(f.type==="affine")Q=Q.mixedAdd(f);else Q=Q.add(f)}}for(x=0;x<D;x++)_[x]=null;if(P)return Q;else return Q.toP()};function k(L,E){this.curve=L,this.type=E,this.precomputed=null}z.BasePoint=k,k.prototype.eq=function(){throw Error("Not implemented")},k.prototype.validate=function(){return this.curve.validate(this)},z.prototype.decodePoint=function(L,E){L=C.toArray(L,E);var A=this.p.byteLength();if((L[0]===4||L[0]===6||L[0]===7)&&L.length-1===2*A){if(L[0]===6)V(L[L.length-1]%2===0);else if(L[0]===7)V(L[L.length-1]%2===1);var D=this.point(L.slice(1,1+A),L.slice(1+A,1+2*A));return D}else if((L[0]===2||L[0]===3)&&L.length-1===A)return this.pointFromX(L.slice(1,1+A),L[0]===3);throw Error("Unknown point format")},k.prototype.encodeCompressed=function(L){return this.encode(L,!0)},k.prototype._encode=function(L){var E=this.curve.p.byteLength(),A=this.getX().toArray("be",E);if(L)return[this.getY().isEven()?2:3].concat(A);return[4].concat(A,this.getY().toArray("be",E))},k.prototype.encode=function(L,E){return C.encode(this._encode(E),L)},k.prototype.precompute=function(L){if(this.precomputed)return this;var E={doubles:null,naf:null,beta:null};return E.naf=this._getNAFPoints(8),E.doubles=this._getDoubles(4,L),E.beta=this._getBeta(),this.precomputed=E,this},k.prototype._hasDoubles=function(L){if(!this.precomputed)return!1;var E=this.precomputed.doubles;if(!E)return!1;return E.points.length>=Math.ceil((L.bitLength()+1)/E.step)},k.prototype._getDoubles=function(L,E){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var A=[this],D=this;for(var P=0;P<E;P+=L){for(var q=0;q<L;q++)D=D.dbl();A.push(D)}return{step:L,points:A}},k.prototype._getNAFPoints=function(L){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var E=[this],A=(1<<L)-1,D=A===1?null:this.dbl();for(var P=1;P<A;P++)E[P]=E[P-1].add(D);return{wnd:L,points:E}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(L){var E=this;for(var A=0;A<L;A++)E=E.dbl();return E}}),rV=A0((G,$)=>{if(typeof Object.create==="function")$.exports=function(W,C){if(C)W.super_=C,W.prototype=Object.create(C.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}})};else $.exports=function(W,C){if(C){W.super_=C;var F=function(){};F.prototype=C.prototype,W.prototype=new F,W.prototype.constructor=W}}}),qU=A0((G,$)=>{try{if(W=(OQ(),l0(KQ)),typeof W.inherits!=="function")throw"";$.exports=W.inherits}catch(C){$.exports=rV()}var W}),eV=A0((G,$)=>{var W=jU(),C=wU(),F=qU(),R=jZ(),V=W.assert;function z(E){R.call(this,"short",E),this.a=new C(E.a,16).toRed(this.red),this.b=new C(E.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(E),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}F(z,R),$.exports=z,z.prototype._getEndomorphism=function(E){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var A,D;if(E.beta)A=new C(E.beta,16).toRed(this.red);else{var P=this._getEndoRoots(this.p);A=P[0].cmp(P[1])<0?P[0]:P[1],A=A.toRed(this.red)}if(E.lambda)D=new C(E.lambda,16);else{var q=this._getEndoRoots(this.n);if(this.g.mul(q[0]).x.cmp(this.g.x.redMul(A))===0)D=q[0];else D=q[1],V(this.g.mul(D).x.cmp(this.g.x.redMul(A))===0)}var _;if(E.basis)_=E.basis.map(function(j){return{a:new C(j.a,16),b:new C(j.b,16)}});else _=this._getEndoBasis(D);return{beta:A,lambda:D,basis:_}},z.prototype._getEndoRoots=function(E){var A=E===this.p?this.red:C.mont(E),D=new C(2).toRed(A).redInvm(),P=D.redNeg(),q=new C(3).toRed(A).redNeg().redSqrt().redMul(D),_=P.redAdd(q).fromRed(),j=P.redSub(q).fromRed();return[_,j]},z.prototype._getEndoBasis=function(E){var A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=E,P=this.n.clone(),q=new C(1),_=new C(0),j=new C(0),N=new C(1),x,g,f,p,s,O0,C0,W0=0,n,I0;while(D.cmpn(0)!==0){var U=P.div(D);n=P.sub(U.mul(D)),I0=j.sub(U.mul(q));var Q=N.sub(U.mul(_));if(!f&&n.cmp(A)<0)x=C0.neg(),g=q,f=n.neg(),p=I0;else if(f&&++W0===2)break;C0=n,P=D,D=n,j=q,q=I0,N=_,_=Q}s=n.neg(),O0=I0;var J=f.sqr().add(p.sqr()),X=s.sqr().add(O0.sqr());if(X.cmp(J)>=0)s=x,O0=g;if(f.negative)f=f.neg(),p=p.neg();if(s.negative)s=s.neg(),O0=O0.neg();return[{a:f,b:p},{a:s,b:O0}]},z.prototype._endoSplit=function(E){var A=this.endo.basis,D=A[0],P=A[1],q=P.b.mul(E).divRound(this.n),_=D.b.neg().mul(E).divRound(this.n),j=q.mul(D.a),N=_.mul(P.a),x=q.mul(D.b),g=_.mul(P.b),f=E.sub(j).sub(N),p=x.add(g).neg();return{k1:f,k2:p}},z.prototype.pointFromX=function(E,A){if(E=new C(E,16),!E.red)E=E.toRed(this.red);var D=E.redSqr().redMul(E).redIAdd(E.redMul(this.a)).redIAdd(this.b),P=D.redSqrt();if(P.redSqr().redSub(D).cmp(this.zero)!==0)throw Error("invalid point");var q=P.fromRed().isOdd();if(A&&!q||!A&&q)P=P.redNeg();return this.point(E,P)},z.prototype.validate=function(E){if(E.inf)return!0;var{x:A,y:D}=E,P=this.a.redMul(A),q=A.redSqr().redMul(A).redIAdd(P).redIAdd(this.b);return D.redSqr().redISub(q).cmpn(0)===0},z.prototype._endoWnafMulAdd=function(E,A,D){var P=this._endoWnafT1,q=this._endoWnafT2;for(var _=0;_<E.length;_++){var j=this._endoSplit(A[_]),N=E[_],x=N._getBeta();if(j.k1.negative)j.k1.ineg(),N=N.neg(!0);if(j.k2.negative)j.k2.ineg(),x=x.neg(!0);P[_*2]=N,P[_*2+1]=x,q[_*2]=j.k1,q[_*2+1]=j.k2}var g=this._wnafMulAdd(1,P,q,_*2,D);for(var f=0;f<_*2;f++)P[f]=null,q[f]=null;return g};function k(E,A,D,P){if(R.BasePoint.call(this,E,"affine"),A===null&&D===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new C(A,16),this.y=new C(D,16),P)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}F(k,R.BasePoint),z.prototype.point=function(E,A,D){return new k(this,E,A,D)},z.prototype.pointFromJSON=function(E,A){return k.fromJSON(this,E,A)},k.prototype._getBeta=function(){if(!this.curve.endo)return;var E=this.precomputed;if(E&&E.beta)return E.beta;var A=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(E){var D=this.curve,P=function(q){return D.point(q.x.redMul(D.endo.beta),q.y)};E.beta=A,A.precomputed={beta:null,naf:E.naf&&{wnd:E.naf.wnd,points:E.naf.points.map(P)},doubles:E.doubles&&{step:E.doubles.step,points:E.doubles.points.map(P)}}}return A},k.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]},k.fromJSON=function(E,A,D){if(typeof A==="string")A=JSON.parse(A);var P=E.point(A[0],A[1],D);if(!A[2])return P;function q(j){return E.point(j[0],j[1],D)}var _=A[2];return P.precomputed={beta:null,doubles:_.doubles&&{step:_.doubles.step,points:[P].concat(_.doubles.points.map(q))},naf:_.naf&&{wnd:_.naf.wnd,points:[P].concat(_.naf.points.map(q))}},P},k.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<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(E){if(this.inf)return E;if(E.inf)return this;if(this.eq(E))return this.dbl();if(this.neg().eq(E))return this.curve.point(null,null);if(this.x.cmp(E.x)===0)return this.curve.point(null,null);var A=this.y.redSub(E.y);if(A.cmpn(0)!==0)A=A.redMul(this.x.redSub(E.x).redInvm());var D=A.redSqr().redISub(this.x).redISub(E.x),P=A.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,P)},k.prototype.dbl=function(){if(this.inf)return this;var E=this.y.redAdd(this.y);if(E.cmpn(0)===0)return this.curve.point(null,null);var A=this.curve.a,D=this.x.redSqr(),P=E.redInvm(),q=D.redAdd(D).redIAdd(D).redIAdd(A).redMul(P),_=q.redSqr().redISub(this.x.redAdd(this.x)),j=q.redMul(this.x.redSub(_)).redISub(this.y);return this.curve.point(_,j)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(E){if(E=new C(E,16),this.isInfinity())return this;else if(this._hasDoubles(E))return this.curve._fixedNafMul(this,E);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[E]);else return this.curve._wnafMul(this,E)},k.prototype.mulAdd=function(E,A,D){var P=[this,A],q=[E,D];if(this.curve.endo)return this.curve._endoWnafMulAdd(P,q);else return this.curve._wnafMulAdd(1,P,q,2)},k.prototype.jmulAdd=function(E,A,D){var P=[this,A],q=[E,D];if(this.curve.endo)return this.curve._endoWnafMulAdd(P,q,!0);else return this.curve._wnafMulAdd(1,P,q,2,!0)},k.prototype.eq=function(E){return this===E||this.inf===E.inf&&(this.inf||this.x.cmp(E.x)===0&&this.y.cmp(E.y)===0)},k.prototype.neg=function(E){if(this.inf)return this;var A=this.curve.point(this.x,this.y.redNeg());if(E&&this.precomputed){var D=this.precomputed,P=function(q){return q.neg()};A.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(P)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(P)}}}return A},k.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var E=this.curve.jpoint(this.x,this.y,this.curve.one);return E};function L(E,A,D,P){if(R.BasePoint.call(this,E,"jacobian"),A===null&&D===null&&P===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new C(0);else this.x=new C(A,16),this.y=new C(D,16),this.z=new C(P,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}F(L,R.BasePoint),z.prototype.jpoint=function(E,A,D){return new L(this,E,A,D)},L.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var E=this.z.redInvm(),A=E.redSqr(),D=this.x.redMul(A),P=this.y.redMul(A).redMul(E);return this.curve.point(D,P)},L.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},L.prototype.add=function(E){if(this.isInfinity())return E;if(E.isInfinity())return this;var A=E.z.redSqr(),D=this.z.redSqr(),P=this.x.redMul(A),q=E.x.redMul(D),_=this.y.redMul(A.redMul(E.z)),j=E.y.redMul(D.redMul(this.z)),N=P.redSub(q),x=_.redSub(j);if(N.cmpn(0)===0)if(x.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var g=N.redSqr(),f=g.redMul(N),p=P.redMul(g),s=x.redSqr().redIAdd(f).redISub(p).redISub(p),O0=x.redMul(p.redISub(s)).redISub(_.redMul(f)),C0=this.z.redMul(E.z).redMul(N);return this.curve.jpoint(s,O0,C0)},L.prototype.mixedAdd=function(E){if(this.isInfinity())return E.toJ();if(E.isInfinity())return this;var A=this.z.redSqr(),D=this.x,P=E.x.redMul(A),q=this.y,_=E.y.redMul(A).redMul(this.z),j=D.redSub(P),N=q.redSub(_);if(j.cmpn(0)===0)if(N.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var x=j.redSqr(),g=x.redMul(j),f=D.redMul(x),p=N.redSqr().redIAdd(g).redISub(f).redISub(f),s=N.redMul(f.redISub(p)).redISub(q.redMul(g)),O0=this.z.redMul(j);return this.curve.jpoint(p,s,O0)},L.prototype.dblp=function(E){if(E===0)return this;if(this.isInfinity())return this;if(!E)return this.dbl();var A;if(this.curve.zeroA||this.curve.threeA){var D=this;for(A=0;A<E;A++)D=D.dbl();return D}var P=this.curve.a,q=this.curve.tinv,_=this.x,j=this.y,N=this.z,x=N.redSqr().redSqr(),g=j.redAdd(j);for(A=0;A<E;A++){var f=_.redSqr(),p=g.redSqr(),s=p.redSqr(),O0=f.redAdd(f).redIAdd(f).redIAdd(P.redMul(x)),C0=_.redMul(p),W0=O0.redSqr().redISub(C0.redAdd(C0)),n=C0.redISub(W0),I0=O0.redMul(n);I0=I0.redIAdd(I0).redISub(s);var U=g.redMul(N);if(A+1<E)x=x.redMul(s);_=W0,N=U,g=I0}return this.curve.jpoint(_,g.redMul(q),N)},L.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},L.prototype._zeroDbl=function(){var E,A,D;if(this.zOne){var P=this.x.redSqr(),q=this.y.redSqr(),_=q.redSqr(),j=this.x.redAdd(q).redSqr().redISub(P).redISub(_);j=j.redIAdd(j);var N=P.redAdd(P).redIAdd(P),x=N.redSqr().redISub(j).redISub(j),g=_.redIAdd(_);g=g.redIAdd(g),g=g.redIAdd(g),E=x,A=N.redMul(j.redISub(x)).redISub(g),D=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),p=this.y.redSqr(),s=p.redSqr(),O0=this.x.redAdd(p).redSqr().redISub(f).redISub(s);O0=O0.redIAdd(O0);var C0=f.redAdd(f).redIAdd(f),W0=C0.redSqr(),n=s.redIAdd(s);n=n.redIAdd(n),n=n.redIAdd(n),E=W0.redISub(O0).redISub(O0),A=C0.redMul(O0.redISub(E)).redISub(n),D=this.y.redMul(this.z),D=D.redIAdd(D)}return this.curve.jpoint(E,A,D)},L.prototype._threeDbl=function(){var E,A,D;if(this.zOne){var P=this.x.redSqr(),q=this.y.redSqr(),_=q.redSqr(),j=this.x.redAdd(q).redSqr().redISub(P).redISub(_);j=j.redIAdd(j);var N=P.redAdd(P).redIAdd(P).redIAdd(this.curve.a),x=N.redSqr().redISub(j).redISub(j);E=x;var g=_.redIAdd(_);g=g.redIAdd(g),g=g.redIAdd(g),A=N.redMul(j.redISub(x)).redISub(g),D=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),p=this.y.redSqr(),s=this.x.redMul(p),O0=this.x.redSub(f).redMul(this.x.redAdd(f));O0=O0.redAdd(O0).redIAdd(O0);var C0=s.redIAdd(s);C0=C0.redIAdd(C0);var W0=C0.redAdd(C0);E=O0.redSqr().redISub(W0),D=this.y.redAdd(this.z).redSqr().redISub(p).redISub(f);var n=p.redSqr();n=n.redIAdd(n),n=n.redIAdd(n),n=n.redIAdd(n),A=O0.redMul(C0.redISub(E)).redISub(n)}return this.curve.jpoint(E,A,D)},L.prototype._dbl=function(){var E=this.curve.a,A=this.x,D=this.y,P=this.z,q=P.redSqr().redSqr(),_=A.redSqr(),j=D.redSqr(),N=_.redAdd(_).redIAdd(_).redIAdd(E.redMul(q)),x=A.redAdd(A);x=x.redIAdd(x);var g=x.redMul(j),f=N.redSqr().redISub(g.redAdd(g)),p=g.redISub(f),s=j.redSqr();s=s.redIAdd(s),s=s.redIAdd(s),s=s.redIAdd(s);var O0=N.redMul(p).redISub(s),C0=D.redAdd(D).redMul(P);return this.curve.jpoint(f,O0,C0)},L.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var E=this.x.redSqr(),A=this.y.redSqr(),D=this.z.redSqr(),P=A.redSqr(),q=E.redAdd(E).redIAdd(E),_=q.redSqr(),j=this.x.redAdd(A).redSqr().redISub(E).redISub(P);j=j.redIAdd(j),j=j.redAdd(j).redIAdd(j),j=j.redISub(_);var N=j.redSqr(),x=P.redIAdd(P);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var g=q.redIAdd(j).redSqr().redISub(_).redISub(N).redISub(x),f=A.redMul(g);f=f.redIAdd(f),f=f.redIAdd(f);var p=this.x.redMul(N).redISub(f);p=p.redIAdd(p),p=p.redIAdd(p);var s=this.y.redMul(g.redMul(x.redISub(g)).redISub(j.redMul(N)));s=s.redIAdd(s),s=s.redIAdd(s),s=s.redIAdd(s);var O0=this.z.redAdd(j).redSqr().redISub(D).redISub(N);return this.curve.jpoint(p,s,O0)},L.prototype.mul=function(E,A){return E=new C(E,A),this.curve._wnafMul(this,E)},L.prototype.eq=function(E){if(E.type==="affine")return this.eq(E.toJ());if(this===E)return!0;var A=this.z.redSqr(),D=E.z.redSqr();if(this.x.redMul(D).redISub(E.x.redMul(A)).cmpn(0)!==0)return!1;var P=A.redMul(this.z),q=D.redMul(E.z);return this.y.redMul(q).redISub(E.y.redMul(P)).cmpn(0)===0},L.prototype.eqXToP=function(E){var A=this.z.redSqr(),D=E.toRed(this.curve.red).redMul(A);if(this.x.cmp(D)===0)return!0;var P=E.clone(),q=this.curve.redN.redMul(A);for(;;){if(P.iadd(this.curve.n),P.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(q),this.x.cmp(D)===0)return!0}},L.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},L.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),iV=A0((G,$)=>{var W=wU(),C=qU(),F=jZ(),R=jU();function V(k){F.call(this,"mont",k),this.a=new W(k.a,16).toRed(this.red),this.b=new W(k.b,16).toRed(this.red),this.i4=new W(4).toRed(this.red).redInvm(),this.two=new W(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}C(V,F),$.exports=V,V.prototype.validate=function(k){var L=k.normalize().x,E=L.redSqr(),A=E.redMul(L).redAdd(E.redMul(this.a)).redAdd(L),D=A.redSqrt();return D.redSqr().cmp(A)===0};function z(k,L,E){if(F.BasePoint.call(this,k,"projective"),L===null&&E===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new W(L,16),this.z=new W(E,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}C(z,F.BasePoint),V.prototype.decodePoint=function(k,L){return this.point(R.toArray(k,L),1)},V.prototype.point=function(k,L){return new z(this,k,L)},V.prototype.pointFromJSON=function(k){return z.fromJSON(this,k)},z.prototype.precompute=function(){},z.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},z.fromJSON=function(k,L){return new z(k,L[0],L[1]||k.one)},z.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},z.prototype.isInfinity=function(){return this.z.cmpn(0)===0},z.prototype.dbl=function(){var k=this.x.redAdd(this.z),L=k.redSqr(),E=this.x.redSub(this.z),A=E.redSqr(),D=L.redSub(A),P=L.redMul(A),q=D.redMul(A.redAdd(this.curve.a24.redMul(D)));return this.curve.point(P,q)},z.prototype.add=function(){throw Error("Not supported on Montgomery curve")},z.prototype.diffAdd=function(k,L){var E=this.x.redAdd(this.z),A=this.x.redSub(this.z),D=k.x.redAdd(k.z),P=k.x.redSub(k.z),q=P.redMul(E),_=D.redMul(A),j=L.z.redMul(q.redAdd(_).redSqr()),N=L.x.redMul(q.redISub(_).redSqr());return this.curve.point(j,N)},z.prototype.mul=function(k){var L=k.clone(),E=this,A=this.curve.point(null,null),D=this;for(var P=[];L.cmpn(0)!==0;L.iushrn(1))P.push(L.andln(1));for(var q=P.length-1;q>=0;q--)if(P[q]===0)E=E.diffAdd(A,D),A=A.dbl();else A=E.diffAdd(A,D),E=E.dbl();return A},z.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},z.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},z.prototype.eq=function(k){return this.getX().cmp(k.getX())===0},z.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},z.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),UG=A0((G,$)=>{var W=jU(),C=wU(),F=qU(),R=jZ(),V=W.assert;function z(L){this.twisted=(L.a|0)!==1,this.mOneA=this.twisted&&(L.a|0)===-1,this.extended=this.mOneA,R.call(this,"edwards",L),this.a=new C(L.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new C(L.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new C(L.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),V(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(L.c|0)===1}F(z,R),$.exports=z,z.prototype._mulA=function(L){if(this.mOneA)return L.redNeg();else return this.a.redMul(L)},z.prototype._mulC=function(L){if(this.oneC)return L;else return this.c.redMul(L)},z.prototype.jpoint=function(L,E,A,D){return this.point(L,E,A,D)},z.prototype.pointFromX=function(L,E){if(L=new C(L,16),!L.red)L=L.toRed(this.red);var A=L.redSqr(),D=this.c2.redSub(this.a.redMul(A)),P=this.one.redSub(this.c2.redMul(this.d).redMul(A)),q=D.redMul(P.redInvm()),_=q.redSqrt();if(_.redSqr().redSub(q).cmp(this.zero)!==0)throw Error("invalid point");var j=_.fromRed().isOdd();if(E&&!j||!E&&j)_=_.redNeg();return this.point(L,_)},z.prototype.pointFromY=function(L,E){if(L=new C(L,16),!L.red)L=L.toRed(this.red);var A=L.redSqr(),D=A.redSub(this.c2),P=A.redMul(this.d).redMul(this.c2).redSub(this.a),q=D.redMul(P.redInvm());if(q.cmp(this.zero)===0)if(E)throw Error("invalid point");else return this.point(this.zero,L);var _=q.redSqrt();if(_.redSqr().redSub(q).cmp(this.zero)!==0)throw Error("invalid point");if(_.fromRed().isOdd()!==E)_=_.redNeg();return this.point(_,L)},z.prototype.validate=function(L){if(L.isInfinity())return!0;L.normalize();var E=L.x.redSqr(),A=L.y.redSqr(),D=E.redMul(this.a).redAdd(A),P=this.c2.redMul(this.one.redAdd(this.d.redMul(E).redMul(A)));return D.cmp(P)===0};function k(L,E,A,D,P){if(R.BasePoint.call(this,L,"projective"),E===null&&A===null&&D===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new C(E,16),this.y=new C(A,16),this.z=D?new C(D,16):this.curve.one,this.t=P&&new C(P,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}F(k,R.BasePoint),z.prototype.pointFromJSON=function(L){return k.fromJSON(this,L)},z.prototype.point=function(L,E,A,D){return new k(this,L,E,A,D)},k.fromJSON=function(L,E){return new k(L,E[0],E[1],E[2])},k.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<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 L=this.x.redSqr(),E=this.y.redSqr(),A=this.z.redSqr();A=A.redIAdd(A);var D=this.curve._mulA(L),P=this.x.redAdd(this.y).redSqr().redISub(L).redISub(E),q=D.redAdd(E),_=q.redSub(A),j=D.redSub(E),N=P.redMul(_),x=q.redMul(j),g=P.redMul(j),f=_.redMul(q);return this.curve.point(N,x,f,g)},k.prototype._projDbl=function(){var L=this.x.redAdd(this.y).redSqr(),E=this.x.redSqr(),A=this.y.redSqr(),D,P,q,_,j,N;if(this.curve.twisted){_=this.curve._mulA(E);var x=_.redAdd(A);if(this.zOne)D=L.redSub(E).redSub(A).redMul(x.redSub(this.curve.two)),P=x.redMul(_.redSub(A)),q=x.redSqr().redSub(x).redSub(x);else j=this.z.redSqr(),N=x.redSub(j).redISub(j),D=L.redSub(E).redISub(A).redMul(N),P=x.redMul(_.redSub(A)),q=x.redMul(N)}else _=E.redAdd(A),j=this.curve._mulC(this.z).redSqr(),N=_.redSub(j).redSub(j),D=this.curve._mulC(L.redISub(_)).redMul(N),P=this.curve._mulC(_).redMul(E.redISub(A)),q=_.redMul(N);return this.curve.point(D,P,q)},k.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},k.prototype._extAdd=function(L){var E=this.y.redSub(this.x).redMul(L.y.redSub(L.x)),A=this.y.redAdd(this.x).redMul(L.y.redAdd(L.x)),D=this.t.redMul(this.curve.dd).redMul(L.t),P=this.z.redMul(L.z.redAdd(L.z)),q=A.redSub(E),_=P.redSub(D),j=P.redAdd(D),N=A.redAdd(E),x=q.redMul(_),g=j.redMul(N),f=q.redMul(N),p=_.redMul(j);return this.curve.point(x,g,p,f)},k.prototype._projAdd=function(L){var E=this.z.redMul(L.z),A=E.redSqr(),D=this.x.redMul(L.x),P=this.y.redMul(L.y),q=this.curve.d.redMul(D).redMul(P),_=A.redSub(q),j=A.redAdd(q),N=this.x.redAdd(this.y).redMul(L.x.redAdd(L.y)).redISub(D).redISub(P),x=E.redMul(_).redMul(N),g,f;if(this.curve.twisted)g=E.redMul(j).redMul(P.redSub(this.curve._mulA(D))),f=_.redMul(j);else g=E.redMul(j).redMul(P.redSub(D)),f=this.curve._mulC(_).redMul(j);return this.curve.point(x,g,f)},k.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;if(this.curve.extended)return this._extAdd(L);else return this._projAdd(L)},k.prototype.mul=function(L){if(this._hasDoubles(L))return this.curve._fixedNafMul(this,L);else return this.curve._wnafMul(this,L)},k.prototype.mulAdd=function(L,E,A){return this.curve._wnafMulAdd(1,[this,E],[L,A],2,!1)},k.prototype.jmulAdd=function(L,E,A){return this.curve._wnafMulAdd(1,[this,E],[L,A],2,!0)},k.prototype.normalize=function(){if(this.zOne)return this;var L=this.z.redInvm();if(this.x=this.x.redMul(L),this.y=this.y.redMul(L),this.t)this.t=this.t.redMul(L);return 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(L){return this===L||this.getX().cmp(L.getX())===0&&this.getY().cmp(L.getY())===0},k.prototype.eqXToP=function(L){var E=L.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(E)===0)return!0;var A=L.clone(),D=this.curve.redN.redMul(this.z);for(;;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(E.redIAdd(D),this.x.cmp(E)===0)return!0}},k.prototype.toP=k.prototype.normalize,k.prototype.mixedAdd=k.prototype.add}),rQ=A0((G)=>{var $=G;$.base=jZ(),$.short=eV(),$.mont=iV(),$.edwards=UG()}),BU=A0((G)=>{var $=pU(),W=qU();G.inherits=W;function C(Q,J){if((Q.charCodeAt(J)&64512)!==55296)return!1;if(J<0||J+1>=Q.length)return!1;return(Q.charCodeAt(J+1)&64512)===56320}function F(Q,J){if(Array.isArray(Q))return Q.slice();if(!Q)return[];var X=[];if(typeof Q==="string"){if(!J){var Y=0;for(var O=0;O<Q.length;O++){var H=Q.charCodeAt(O);if(H<128)X[Y++]=H;else if(H<2048)X[Y++]=H>>6|192,X[Y++]=H&63|128;else if(C(Q,O))H=65536+((H&1023)<<10)+(Q.charCodeAt(++O)&1023),X[Y++]=H>>18|240,X[Y++]=H>>12&63|128,X[Y++]=H>>6&63|128,X[Y++]=H&63|128;else X[Y++]=H>>12|224,X[Y++]=H>>6&63|128,X[Y++]=H&63|128}}else if(J==="hex"){if(Q=Q.replace(/[^a-z0-9]+/ig,""),Q.length%2!==0)Q="0"+Q;for(O=0;O<Q.length;O+=2)X.push(parseInt(Q[O]+Q[O+1],16))}}else for(O=0;O<Q.length;O++)X[O]=Q[O]|0;return X}G.toArray=F;function R(Q){var J="";for(var X=0;X<Q.length;X++)J+=k(Q[X].toString(16));return J}G.toHex=R;function V(Q){var J=Q>>>24|Q>>>8&65280|Q<<8&16711680|(Q&255)<<24;return J>>>0}G.htonl=V;function z(Q,J){var X="";for(var Y=0;Y<Q.length;Y++){var O=Q[Y];if(J==="little")O=V(O);X+=L(O.toString(16))}return X}G.toHex32=z;function k(Q){if(Q.length===1)return"0"+Q;else return Q}G.zero2=k;function L(Q){if(Q.length===7)return"0"+Q;else if(Q.length===6)return"00"+Q;else if(Q.length===5)return"000"+Q;else if(Q.length===4)return"0000"+Q;else if(Q.length===3)return"00000"+Q;else if(Q.length===2)return"000000"+Q;else if(Q.length===1)return"0000000"+Q;else return Q}G.zero8=L;function E(Q,J,X,Y){var O=X-J;$(O%4===0);var H=Array(O/4);for(var I=0,Z=J;I<H.length;I++,Z+=4){var K;if(Y==="big")K=Q[Z]<<24|Q[Z+1]<<16|Q[Z+2]<<8|Q[Z+3];else K=Q[Z+3]<<24|Q[Z+2]<<16|Q[Z+1]<<8|Q[Z];H[I]=K>>>0}return H}G.join32=E;function A(Q,J){var X=Array(Q.length*4);for(var Y=0,O=0;Y<Q.length;Y++,O+=4){var H=Q[Y];if(J==="big")X[O]=H>>>24,X[O+1]=H>>>16&255,X[O+2]=H>>>8&255,X[O+3]=H&255;else X[O+3]=H>>>24,X[O+2]=H>>>16&255,X[O+1]=H>>>8&255,X[O]=H&255}return X}G.split32=A;function D(Q,J){return Q>>>J|Q<<32-J}G.rotr32=D;function P(Q,J){return Q<<J|Q>>>32-J}G.rotl32=P;function q(Q,J){return Q+J>>>0}G.sum32=q;function _(Q,J,X){return Q+J+X>>>0}G.sum32_3=_;function j(Q,J,X,Y){return Q+J+X+Y>>>0}G.sum32_4=j;function N(Q,J,X,Y,O){return Q+J+X+Y+O>>>0}G.sum32_5=N;function x(Q,J,X,Y){var O=Q[J],H=Q[J+1],I=Y+H>>>0,Z=(I<Y?1:0)+X+O;Q[J]=Z>>>0,Q[J+1]=I}G.sum64=x;function g(Q,J,X,Y){var O=J+Y>>>0,H=(O<J?1:0)+Q+X;return H>>>0}G.sum64_hi=g;function f(Q,J,X,Y){var O=J+Y;return O>>>0}G.sum64_lo=f;function p(Q,J,X,Y,O,H,I,Z){var K=0,S=J;S=S+Y>>>0,K+=S<J?1:0,S=S+H>>>0,K+=S<H?1:0,S=S+Z>>>0,K+=S<Z?1:0;var T=Q+X+O+I+K;return T>>>0}G.sum64_4_hi=p;function s(Q,J,X,Y,O,H,I,Z){var K=J+Y+H+Z;return K>>>0}G.sum64_4_lo=s;function O0(Q,J,X,Y,O,H,I,Z,K,S){var T=0,B=J;B=B+Y>>>0,T+=B<J?1:0,B=B+H>>>0,T+=B<H?1:0,B=B+Z>>>0,T+=B<Z?1:0,B=B+S>>>0,T+=B<S?1:0;var c=Q+X+O+I+K+T;return c>>>0}G.sum64_5_hi=O0;function C0(Q,J,X,Y,O,H,I,Z,K,S){var T=J+Y+H+Z+S;return T>>>0}G.sum64_5_lo=C0;function W0(Q,J,X){var Y=J<<32-X|Q>>>X;return Y>>>0}G.rotr64_hi=W0;function n(Q,J,X){var Y=Q<<32-X|J>>>X;return Y>>>0}G.rotr64_lo=n;function I0(Q,J,X){return Q>>>X}G.shr64_hi=I0;function U(Q,J,X){var Y=Q<<32-X|J>>>X;return Y>>>0}G.shr64_lo=U}),IZ=A0((G)=>{var $=BU(),W=pU();function C(){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}G.BlockHash=C,C.prototype.update=function(F,R){if(F=$.toArray(F,R),!this.pending)this.pending=F;else this.pending=this.pending.concat(F);if(this.pendingTotal+=F.length,this.pending.length>=this._delta8){F=this.pending;var V=F.length%this._delta8;if(this.pending=F.slice(F.length-V,F.length),this.pending.length===0)this.pending=null;F=$.join32(F,0,F.length-V,this.endian);for(var z=0;z<F.length;z+=this._delta32)this._update(F,z,z+this._delta32)}return this},C.prototype.digest=function(F){return this.update(this._pad()),W(this.pending===null),this._digest(F)},C.prototype._pad=function(){var F=this.pendingTotal,R=this._delta8,V=R-(F+this.padLength)%R,z=Array(V+this.padLength);z[0]=128;for(var k=1;k<V;k++)z[k]=0;if(F<<=3,this.endian==="big"){for(var L=8;L<this.padLength;L++)z[k++]=0;z[k++]=0,z[k++]=0,z[k++]=0,z[k++]=0,z[k++]=F>>>24&255,z[k++]=F>>>16&255,z[k++]=F>>>8&255,z[k++]=F&255}else{z[k++]=F&255,z[k++]=F>>>8&255,z[k++]=F>>>16&255,z[k++]=F>>>24&255,z[k++]=0,z[k++]=0,z[k++]=0,z[k++]=0;for(L=8;L<this.padLength;L++)z[k++]=0}return z}}),eQ=A0((G)=>{var $=BU(),W=$.rotr32;function C(A,D,P,q){if(A===0)return F(D,P,q);if(A===1||A===3)return V(D,P,q);if(A===2)return R(D,P,q)}G.ft_1=C;function F(A,D,P){return A&D^~A&P}G.ch32=F;function R(A,D,P){return A&D^A&P^D&P}G.maj32=R;function V(A,D,P){return A^D^P}G.p32=V;function z(A){return W(A,2)^W(A,13)^W(A,22)}G.s0_256=z;function k(A){return W(A,6)^W(A,11)^W(A,25)}G.s1_256=k;function L(A){return W(A,7)^W(A,18)^A>>>3}G.g0_256=L;function E(A){return W(A,17)^W(A,19)^A>>>10}G.g1_256=E}),ZG=A0((G,$)=>{var W=BU(),C=IZ(),F=eQ(),R=W.rotl32,V=W.sum32,z=W.sum32_5,k=F.ft_1,L=C.BlockHash,E=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;L.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}W.inherits(A,L),$.exports=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(D,P){var q=this.W;for(var _=0;_<16;_++)q[_]=D[P+_];for(;_<q.length;_++)q[_]=R(q[_-3]^q[_-8]^q[_-14]^q[_-16],1);var j=this.h[0],N=this.h[1],x=this.h[2],g=this.h[3],f=this.h[4];for(_=0;_<q.length;_++){var p=~~(_/20),s=z(R(j,5),k(p,N,x,g),f,q[_],E[p]);f=g,g=x,x=R(N,30),N=j,j=s}this.h[0]=V(this.h[0],j),this.h[1]=V(this.h[1],N),this.h[2]=V(this.h[2],x),this.h[3]=V(this.h[3],g),this.h[4]=V(this.h[4],f)},A.prototype._digest=function(D){if(D==="hex")return W.toHex32(this.h,"big");else return W.split32(this.h,"big")}}),iQ=A0((G,$)=>{var W=BU(),C=IZ(),F=eQ(),R=pU(),V=W.sum32,z=W.sum32_4,k=W.sum32_5,L=F.ch32,E=F.maj32,A=F.s0_256,D=F.s1_256,P=F.g0_256,q=F.g1_256,_=C.BlockHash,j=[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 N(){if(!(this instanceof N))return new N;_.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=j,this.W=Array(64)}W.inherits(N,_),$.exports=N,N.blockSize=512,N.outSize=256,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(x,g){var f=this.W;for(var p=0;p<16;p++)f[p]=x[g+p];for(;p<f.length;p++)f[p]=z(q(f[p-2]),f[p-7],P(f[p-15]),f[p-16]);var s=this.h[0],O0=this.h[1],C0=this.h[2],W0=this.h[3],n=this.h[4],I0=this.h[5],U=this.h[6],Q=this.h[7];R(this.k.length===f.length);for(p=0;p<f.length;p++){var J=k(Q,D(n),L(n,I0,U),this.k[p],f[p]),X=V(A(s),E(s,O0,C0));Q=U,U=I0,I0=n,n=V(W0,J),W0=C0,C0=O0,O0=s,s=V(J,X)}this.h[0]=V(this.h[0],s),this.h[1]=V(this.h[1],O0),this.h[2]=V(this.h[2],C0),this.h[3]=V(this.h[3],W0),this.h[4]=V(this.h[4],n),this.h[5]=V(this.h[5],I0),this.h[6]=V(this.h[6],U),this.h[7]=V(this.h[7],Q)},N.prototype._digest=function(x){if(x==="hex")return W.toHex32(this.h,"big");else return W.split32(this.h,"big")}}),XG=A0((G,$)=>{var W=BU(),C=iQ();function F(){if(!(this instanceof F))return new F;C.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}W.inherits(F,C),$.exports=F,F.blockSize=512,F.outSize=224,F.hmacStrength=192,F.padLength=64,F.prototype._digest=function(R){if(R==="hex")return W.toHex32(this.h.slice(0,7),"big");else return W.split32(this.h.slice(0,7),"big")}}),UY=A0((G,$)=>{var W=BU(),C=IZ(),F=pU(),R=W.rotr64_hi,V=W.rotr64_lo,z=W.shr64_hi,k=W.shr64_lo,L=W.sum64,E=W.sum64_hi,A=W.sum64_lo,D=W.sum64_4_hi,P=W.sum64_4_lo,q=W.sum64_5_hi,_=W.sum64_5_lo,j=C.BlockHash,N=[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 x(){if(!(this instanceof x))return new x;j.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=N,this.W=Array(160)}W.inherits(x,j),$.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(X,Y){var O=this.W;for(var H=0;H<32;H++)O[H]=X[Y+H];for(;H<O.length;H+=2){var I=Q(O[H-4],O[H-3]),Z=J(O[H-4],O[H-3]),K=O[H-14],S=O[H-13],T=I0(O[H-30],O[H-29]),B=U(O[H-30],O[H-29]),c=O[H-32],d=O[H-31];O[H]=D(I,Z,K,S,T,B,c,d),O[H+1]=P(I,Z,K,S,T,B,c,d)}},x.prototype._update=function(X,Y){this._prepareBlock(X,Y);var O=this.W,H=this.h[0],I=this.h[1],Z=this.h[2],K=this.h[3],S=this.h[4],T=this.h[5],B=this.h[6],c=this.h[7],d=this.h[8],r=this.h[9],z0=this.h[10],Z0=this.h[11],t=this.h[12],$0=this.h[13],e=this.h[14],Y0=this.h[15];F(this.k.length===O.length);for(var y0=0;y0<O.length;y0+=2){var u=e,l=Y0,K0=W0(d,r),U0=n(d,r),Q0=g(d,r,z0,Z0,t,$0),R0=f(d,r,z0,Z0,t,$0),b=this.k[y0],a=this.k[y0+1],w0=O[y0],i=O[y0+1],V0=q(u,l,K0,U0,Q0,R0,b,a,w0,i),c0=_(u,l,K0,U0,Q0,R0,b,a,w0,i);u=O0(H,I),l=C0(H,I),K0=p(H,I,Z,K,S,T),U0=s(H,I,Z,K,S,T);var M=E(u,l,K0,U0),v=A(u,l,K0,U0);e=t,Y0=$0,t=z0,$0=Z0,z0=d,Z0=r,d=E(B,c,V0,c0),r=A(c,c,V0,c0),B=S,c=T,S=Z,T=K,Z=H,K=I,H=E(V0,c0,M,v),I=A(V0,c0,M,v)}L(this.h,0,H,I),L(this.h,2,Z,K),L(this.h,4,S,T),L(this.h,6,B,c),L(this.h,8,d,r),L(this.h,10,z0,Z0),L(this.h,12,t,$0),L(this.h,14,e,Y0)},x.prototype._digest=function(X){if(X==="hex")return W.toHex32(this.h,"big");else return W.split32(this.h,"big")};function g(X,Y,O,H,I){var Z=X&O^~X&I;if(Z<0)Z+=4294967296;return Z}function f(X,Y,O,H,I,Z){var K=Y&H^~Y&Z;if(K<0)K+=4294967296;return K}function p(X,Y,O,H,I){var Z=X&O^X&I^O&I;if(Z<0)Z+=4294967296;return Z}function s(X,Y,O,H,I,Z){var K=Y&H^Y&Z^H&Z;if(K<0)K+=4294967296;return K}function O0(X,Y){var O=R(X,Y,28),H=R(Y,X,2),I=R(Y,X,7),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function C0(X,Y){var O=V(X,Y,28),H=V(Y,X,2),I=V(Y,X,7),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function W0(X,Y){var O=R(X,Y,14),H=R(X,Y,18),I=R(Y,X,9),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function n(X,Y){var O=V(X,Y,14),H=V(X,Y,18),I=V(Y,X,9),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function I0(X,Y){var O=R(X,Y,1),H=R(X,Y,8),I=z(X,Y,7),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function U(X,Y){var O=V(X,Y,1),H=V(X,Y,8),I=k(X,Y,7),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function Q(X,Y){var O=R(X,Y,19),H=R(Y,X,29),I=z(X,Y,6),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}function J(X,Y){var O=V(X,Y,19),H=V(Y,X,29),I=k(X,Y,6),Z=O^H^I;if(Z<0)Z+=4294967296;return Z}}),QG=A0((G,$)=>{var W=BU(),C=UY();function F(){if(!(this instanceof F))return new F;C.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}W.inherits(F,C),$.exports=F,F.blockSize=1024,F.outSize=384,F.hmacStrength=192,F.padLength=128,F.prototype._digest=function(R){if(R==="hex")return W.toHex32(this.h.slice(0,12),"big");else return W.split32(this.h.slice(0,12),"big")}}),YG=A0((G)=>{G.sha1=ZG(),G.sha224=XG(),G.sha256=iQ(),G.sha384=QG(),G.sha512=UY()}),JG=A0((G)=>{var $=BU(),W=IZ(),C=$.rotl32,F=$.sum32,R=$.sum32_3,V=$.sum32_4,z=W.BlockHash;function k(){if(!(this instanceof k))return new k;z.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}$.inherits(k,z),G.ripemd160=k,k.blockSize=512,k.outSize=160,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(j,N){var x=this.h[0],g=this.h[1],f=this.h[2],p=this.h[3],s=this.h[4],O0=x,C0=g,W0=f,n=p,I0=s;for(var U=0;U<80;U++){var Q=F(C(V(x,L(U,g,f,p),j[D[U]+N],E(U)),q[U]),s);x=s,s=p,p=C(f,10),f=g,g=Q,Q=F(C(V(O0,L(79-U,C0,W0,n),j[P[U]+N],A(U)),_[U]),I0),O0=I0,I0=n,n=C(W0,10),W0=C0,C0=Q}Q=R(this.h[1],f,n),this.h[1]=R(this.h[2],p,I0),this.h[2]=R(this.h[3],s,O0),this.h[3]=R(this.h[4],x,C0),this.h[4]=R(this.h[0],g,W0),this.h[0]=Q},k.prototype._digest=function(j){if(j==="hex")return $.toHex32(this.h,"little");else return $.split32(this.h,"little")};function L(j,N,x,g){if(j<=15)return N^x^g;else if(j<=31)return N&x|~N&g;else if(j<=47)return(N|~x)^g;else if(j<=63)return N&g|x&~g;else return N^(x|~g)}function E(j){if(j<=15)return 0;else if(j<=31)return 1518500249;else if(j<=47)return 1859775393;else if(j<=63)return 2400959708;else return 2840853838}function A(j){if(j<=15)return 1352829926;else if(j<=31)return 1548603684;else if(j<=47)return 1836072691;else if(j<=63)return 2053994217;else return 0}var D=[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],P=[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],q=[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],_=[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]}),VG=A0((G,$)=>{var W=BU(),C=pU();function F(R,V,z){if(!(this instanceof F))return new F(R,V,z);this.Hash=R,this.blockSize=R.blockSize/8,this.outSize=R.outSize/8,this.inner=null,this.outer=null,this._init(W.toArray(V,z))}$.exports=F,F.prototype._init=function(R){if(R.length>this.blockSize)R=new this.Hash().update(R).digest();C(R.length<=this.blockSize);for(var V=R.length;V<this.blockSize;V++)R.push(0);for(V=0;V<R.length;V++)R[V]^=54;this.inner=new this.Hash().update(R);for(V=0;V<R.length;V++)R[V]^=106;this.outer=new this.Hash().update(R)},F.prototype.update=function(R,V){return this.inner.update(R,V),this},F.prototype.digest=function(R){return this.outer.update(this.inner.digest()),this.outer.digest(R)}}),CX=A0((G)=>{var $=G;$.utils=BU(),$.common=IZ(),$.sha=YG(),$.ripemd=JG(),$.hmac=VG(),$.sha1=$.sha.sha1,$.sha256=$.sha.sha256,$.sha224=$.sha.sha224,$.sha384=$.sha.sha384,$.sha512=$.sha.sha512,$.ripemd160=$.ripemd.ripemd160}),GG=A0((G,$)=>{$.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"]]}}}),TX=A0((G)=>{var $=G,W=CX(),C=rQ(),F=jU(),R=F.assert;function V(L){if(L.type==="short")this.curve=new C.short(L);else if(L.type==="edwards")this.curve=new C.edwards(L);else this.curve=new C.mont(L);this.g=this.curve.g,this.n=this.curve.n,this.hash=L.hash,R(this.g.validate(),"Invalid curve"),R(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}$.PresetCurve=V;function z(L,E){Object.defineProperty($,L,{configurable:!0,enumerable:!0,get:function(){var A=new V(E);return Object.defineProperty($,L,{configurable:!0,enumerable:!0,value:A}),A}})}z("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:W.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),z("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:W.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),z("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:W.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),z("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:W.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"]}),z("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:W.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"]}),z("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:W.sha256,gRed:!1,g:["9"]}),z("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:W.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var k;try{k=GG()}catch(L){k=void 0}z("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:W.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})}),IG=A0((G,$)=>{var W=CX(),C=tQ(),F=pU();function R(V){if(!(this instanceof R))return new R(V);this.hash=V.hash,this.predResist=!!V.predResist,this.outLen=this.hash.outSize,this.minEntropy=V.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var z=C.toArray(V.entropy,V.entropyEnc||"hex"),k=C.toArray(V.nonce,V.nonceEnc||"hex"),L=C.toArray(V.pers,V.persEnc||"hex");F(z.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(z,k,L)}$.exports=R,R.prototype._init=function(V,z,k){var L=V.concat(z).concat(k);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var E=0;E<this.V.length;E++)this.K[E]=0,this.V[E]=1;this._update(L),this._reseed=1,this.reseedInterval=281474976710656},R.prototype._hmac=function(){return new W.hmac(this.hash,this.K)},R.prototype._update=function(V){var z=this._hmac().update(this.V).update([0]);if(V)z=z.update(V);if(this.K=z.digest(),this.V=this._hmac().update(this.V).digest(),!V)return;this.K=this._hmac().update(this.V).update([1]).update(V).digest(),this.V=this._hmac().update(this.V).digest()},R.prototype.reseed=function(V,z,k,L){if(typeof z!=="string")L=k,k=z,z=null;V=C.toArray(V,z),k=C.toArray(k,L),F(V.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(V.concat(k||[])),this._reseed=1},R.prototype.generate=function(V,z,k,L){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof z!=="string")L=k,k=z,z=null;if(k)k=C.toArray(k,L||"hex"),this._update(k);var E=[];while(E.length<V)this.V=this._hmac().update(this.V).digest(),E=E.concat(this.V);var A=E.slice(0,V);return this._update(k),this._reseed++,C.encode(A,z)}}),$G=A0((G,$)=>{var W=wU(),C=jU(),F=C.assert;function R(V,z){if(this.ec=V,this.priv=null,this.pub=null,z.priv)this._importPrivate(z.priv,z.privEnc);if(z.pub)this._importPublic(z.pub,z.pubEnc)}$.exports=R,R.fromPublic=function(V,z,k){if(z instanceof R)return z;return new R(V,{pub:z,pubEnc:k})},R.fromPrivate=function(V,z,k){if(z instanceof R)return z;return new R(V,{priv:z,privEnc:k})},R.prototype.validate=function(){var V=this.getPublic();if(V.isInfinity())return{result:!1,reason:"Invalid public key"};if(!V.validate())return{result:!1,reason:"Public key is not a point"};if(!V.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},R.prototype.getPublic=function(V,z){if(typeof V==="string")z=V,V=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!z)return this.pub;return this.pub.encode(z,V)},R.prototype.getPrivate=function(V){if(V==="hex")return this.priv.toString(16,2);else return this.priv},R.prototype._importPrivate=function(V,z){this.priv=new W(V,z||16),this.priv=this.priv.umod(this.ec.curve.n)},R.prototype._importPublic=function(V,z){if(V.x||V.y){if(this.ec.curve.type==="mont")F(V.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")F(V.x&&V.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(V.x,V.y);return}this.pub=this.ec.curve.decodePoint(V,z)},R.prototype.derive=function(V){if(!V.validate())F(V.validate(),"public point not validated");return V.mul(this.priv).getX()},R.prototype.sign=function(V,z,k){return this.ec.sign(V,this,z,k)},R.prototype.verify=function(V,z,k){return this.ec.verify(V,z,this,void 0,k)},R.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),KG=A0((G,$)=>{var W=wU(),C=jU(),F=C.assert;function R(E,A){if(E instanceof R)return E;if(this._importDER(E,A))return;if(F(E.r&&E.s,"Signature without r or s"),this.r=new W(E.r,16),this.s=new W(E.s,16),E.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=E.recoveryParam}$.exports=R;function V(){this.place=0}function z(E,A){var D=E[A.place++];if(!(D&128))return D;var P=D&15;if(P===0||P>4)return!1;if(E[A.place]===0)return!1;var q=0;for(var _=0,j=A.place;_<P;_++,j++)q<<=8,q|=E[j],q>>>=0;if(q<=127)return!1;return A.place=j,q}function k(E){var A=0,D=E.length-1;while(!E[A]&&!(E[A+1]&128)&&A<D)A++;if(A===0)return E;return E.slice(A)}R.prototype._importDER=function(E,A){E=C.toArray(E,A);var D=new V;if(E[D.place++]!==48)return!1;var P=z(E,D);if(P===!1)return!1;if(P+D.place!==E.length)return!1;if(E[D.place++]!==2)return!1;var q=z(E,D);if(q===!1)return!1;if((E[D.place]&128)!==0)return!1;var _=E.slice(D.place,q+D.place);if(D.place+=q,E[D.place++]!==2)return!1;var j=z(E,D);if(j===!1)return!1;if(E.length!==j+D.place)return!1;if((E[D.place]&128)!==0)return!1;var N=E.slice(D.place,j+D.place);if(_[0]===0)if(_[1]&128)_=_.slice(1);else return!1;if(N[0]===0)if(N[1]&128)N=N.slice(1);else return!1;return this.r=new W(_),this.s=new W(N),this.recoveryParam=null,!0};function L(E,A){if(A<128){E.push(A);return}var D=1+(Math.log(A)/Math.LN2>>>3);E.push(D|128);while(--D)E.push(A>>>(D<<3)&255);E.push(A)}R.prototype.toDER=function(E){var A=this.r.toArray(),D=this.s.toArray();if(A[0]&128)A=[0].concat(A);if(D[0]&128)D=[0].concat(D);A=k(A),D=k(D);while(!D[0]&&!(D[1]&128))D=D.slice(1);var P=[2];L(P,A.length),P=P.concat(A),P.push(2),L(P,D.length);var q=P.concat(D),_=[48];return L(_,q.length),_=_.concat(q),C.encode(_,E)}}),OG=A0((G,$)=>{var W=wU(),C=IG(),F=jU(),R=TX(),V=aQ(),z=F.assert,k=$G(),L=KG();function E(A){if(!(this instanceof E))return new E(A);if(typeof A==="string")z(Object.prototype.hasOwnProperty.call(R,A),"Unknown curve "+A),A=R[A];if(A instanceof R.PresetCurve)A={curve:A};this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}$.exports=E,E.prototype.keyPair=function(A){return new k(this,A)},E.prototype.keyFromPrivate=function(A,D){return k.fromPrivate(this,A,D)},E.prototype.keyFromPublic=function(A,D){return k.fromPublic(this,A,D)},E.prototype.genKeyPair=function(A){if(!A)A={};var D=new C({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||V(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),P=this.n.byteLength(),q=this.n.sub(new W(2));for(;;){var _=new W(D.generate(P));if(_.cmp(q)>0)continue;return _.iaddn(1),this.keyFromPrivate(_)}},E.prototype._truncateToN=function(A,D,P){var q;if(W.isBN(A)||typeof A==="number")A=new W(A,16),q=A.byteLength();else if(typeof A==="object")q=A.length,A=new W(A,16);else{var _=A.toString();q=_.length+1>>>1,A=new W(_,16)}if(typeof P!=="number")P=q*8;var j=P-this.n.bitLength();if(j>0)A=A.ushrn(j);if(!D&&A.cmp(this.n)>=0)return A.sub(this.n);else return A},E.prototype.sign=function(A,D,P,q){if(typeof P==="object")q=P,P=null;if(!q)q={};if(typeof A!=="string"&&typeof A!=="number"&&!W.isBN(A)){z(typeof A==="object"&&A&&typeof A.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),z(A.length>>>0===A.length);for(var _=0;_<A.length;_++)z((A[_]&255)===A[_])}D=this.keyFromPrivate(D,P),A=this._truncateToN(A,!1,q.msgBitLength),z(!A.isNeg(),"Can not sign a negative message");var j=this.n.byteLength(),N=D.getPrivate().toArray("be",j),x=A.toArray("be",j);z(new W(x).eq(A),"Can not sign message");var g=new C({hash:this.hash,entropy:N,nonce:x,pers:q.pers,persEnc:q.persEnc||"utf8"}),f=this.n.sub(new W(1));for(var p=0;;p++){var s=q.k?q.k(p):new W(g.generate(this.n.byteLength()));if(s=this._truncateToN(s,!0),s.cmpn(1)<=0||s.cmp(f)>=0)continue;var O0=this.g.mul(s);if(O0.isInfinity())continue;var C0=O0.getX(),W0=C0.umod(this.n);if(W0.cmpn(0)===0)continue;var n=s.invm(this.n).mul(W0.mul(D.getPrivate()).iadd(A));if(n=n.umod(this.n),n.cmpn(0)===0)continue;var I0=(O0.getY().isOdd()?1:0)|(C0.cmp(W0)!==0?2:0);if(q.canonical&&n.cmp(this.nh)>0)n=this.n.sub(n),I0^=1;return new L({r:W0,s:n,recoveryParam:I0})}},E.prototype.verify=function(A,D,P,q,_){if(!_)_={};A=this._truncateToN(A,!1,_.msgBitLength),P=this.keyFromPublic(P,q),D=new L(D,"hex");var{r:j,s:N}=D;if(j.cmpn(1)<0||j.cmp(this.n)>=0)return!1;if(N.cmpn(1)<0||N.cmp(this.n)>=0)return!1;var x=N.invm(this.n),g=x.mul(A).umod(this.n),f=x.mul(j).umod(this.n),p;if(!this.curve._maxwellTrick){if(p=this.g.mulAdd(g,P.getPublic(),f),p.isInfinity())return!1;return p.getX().umod(this.n).cmp(j)===0}if(p=this.g.jmulAdd(g,P.getPublic(),f),p.isInfinity())return!1;return p.eqXToP(j)},E.prototype.recoverPubKey=function(A,D,P,q){z((3&P)===P,"The recovery param is more than two bits"),D=new L(D,q);var _=this.n,j=new W(A),N=D.r,x=D.s,g=P&1,f=P>>1;if(N.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw Error("Unable to find sencond key candinate");if(f)N=this.curve.pointFromX(N.add(this.curve.n),g);else N=this.curve.pointFromX(N,g);var p=D.r.invm(_),s=_.sub(j).mul(p).umod(_),O0=x.mul(p).umod(_);return this.g.mulAdd(s,N,O0)},E.prototype.getKeyRecoveryParam=function(A,D,P,q){if(D=new L(D,q),D.recoveryParam!==null)return D.recoveryParam;for(var _=0;_<4;_++){var j;try{j=this.recoverPubKey(A,D,_)}catch(N){continue}if(j.eq(P))return _}throw Error("Unable to find valid recovery factor")}}),WG=A0((G,$)=>{var W=jU(),C=W.assert,F=W.parseBytes,R=W.cachedProperty;function V(z,k){if(this.eddsa=z,this._secret=F(k.secret),z.isPoint(k.pub))this._pub=k.pub;else this._pubBytes=F(k.pub)}V.fromPublic=function(z,k){if(k instanceof V)return k;return new V(z,{pub:k})},V.fromSecret=function(z,k){if(k instanceof V)return k;return new V(z,{secret:k})},V.prototype.secret=function(){return this._secret},R(V,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),R(V,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),R(V,"privBytes",function(){var z=this.eddsa,k=this.hash(),L=z.encodingLength-1,E=k.slice(0,z.encodingLength);return E[0]&=248,E[L]&=127,E[L]|=64,E}),R(V,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),R(V,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),R(V,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),V.prototype.sign=function(z){return C(this._secret,"KeyPair can only verify"),this.eddsa.sign(z,this)},V.prototype.verify=function(z,k){return this.eddsa.verify(z,k,this)},V.prototype.getSecret=function(z){return C(this._secret,"KeyPair is public only"),W.encode(this.secret(),z)},V.prototype.getPublic=function(z){return W.encode(this.pubBytes(),z)},$.exports=V}),HG=A0((G,$)=>{var W=wU(),C=jU(),F=C.assert,R=C.cachedProperty,V=C.parseBytes;function z(k,L){if(this.eddsa=k,typeof L!=="object")L=V(L);if(Array.isArray(L))F(L.length===k.encodingLength*2,"Signature has invalid size"),L={R:L.slice(0,k.encodingLength),S:L.slice(k.encodingLength)};if(F(L.R&&L.S,"Signature without R or S"),k.isPoint(L.R))this._R=L.R;if(L.S instanceof W)this._S=L.S;this._Rencoded=Array.isArray(L.R)?L.R:L.Rencoded,this._Sencoded=Array.isArray(L.S)?L.S:L.Sencoded}R(z,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),R(z,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),R(z,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),R(z,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),z.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},z.prototype.toHex=function(){return C.encode(this.toBytes(),"hex").toUpperCase()},$.exports=z}),FG=A0((G,$)=>{var W=CX(),C=TX(),F=jU(),R=F.assert,V=F.parseBytes,z=WG(),k=HG();function L(E){if(R(E==="ed25519","only tested with ed25519 so far"),!(this instanceof L))return new L(E);E=C[E].curve,this.curve=E,this.g=E.g,this.g.precompute(E.n.bitLength()+1),this.pointClass=E.point().constructor,this.encodingLength=Math.ceil(E.n.bitLength()/8),this.hash=W.sha512}$.exports=L,L.prototype.sign=function(E,A){E=V(E);var D=this.keyFromSecret(A),P=this.hashInt(D.messagePrefix(),E),q=this.g.mul(P),_=this.encodePoint(q),j=this.hashInt(_,D.pubBytes(),E).mul(D.priv()),N=P.add(j).umod(this.curve.n);return this.makeSignature({R:q,S:N,Rencoded:_})},L.prototype.verify=function(E,A,D){if(E=V(E),A=this.makeSignature(A),A.S().gte(A.eddsa.curve.n)||A.S().isNeg())return!1;var P=this.keyFromPublic(D),q=this.hashInt(A.Rencoded(),P.pubBytes(),E),_=this.g.mul(A.S()),j=A.R().add(P.pub().mul(q));return j.eq(_)},L.prototype.hashInt=function(){var E=this.hash();for(var A=0;A<arguments.length;A++)E.update(arguments[A]);return F.intFromLE(E.digest()).umod(this.curve.n)},L.prototype.keyFromPublic=function(E){return z.fromPublic(this,E)},L.prototype.keyFromSecret=function(E){return z.fromSecret(this,E)},L.prototype.makeSignature=function(E){if(E instanceof k)return E;return new k(this,E)},L.prototype.encodePoint=function(E){var A=E.getY().toArray("le",this.encodingLength);return A[this.encodingLength-1]|=E.getX().isOdd()?128:0,A},L.prototype.decodePoint=function(E){E=F.parseBytes(E);var A=E.length-1,D=E.slice(0,A).concat(E[A]&-129),P=(E[A]&128)!==0,q=F.intFromLE(D);return this.curve.pointFromY(q,P)},L.prototype.encodeInt=function(E){return E.toArray("le",this.encodingLength)},L.prototype.decodeInt=function(E){return F.intFromLE(E)},L.prototype.isPoint=function(E){return E instanceof this.pointClass}}),AG=A0((G)=>{var $=G;$.version=aV().version,$.utils=jU(),$.rand=aQ(),$.curve=rQ(),$.curves=TX(),$.ec=OG(),$.eddsa=FG()}),CG=A0((G,$)=>{(function(W,C){function F(U,Q){if(!U)throw Error(Q||"Assertion failed")}function R(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof W==="object")W.exports=V;else C.BN=V;V.BN=V,V.wordSize=26;var z;try{if(typeof window<"u"&&typeof window.Buffer<"u")z=window.Buffer;else z=(TU(),l0(CU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;F(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var X=0;if(U[0]==="-")X++,this.negative=1;if(X<U.length){if(Q===16)this._parseHex(U,X,J);else if(this._parseBase(U,Q,X),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else F(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(F(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y,O,H=0;if(J==="be"){for(X=U.length-1,Y=0;X>=0;X-=3)if(O=U[X]|U[X-1]<<8|U[X-2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}else if(J==="le"){for(X=0,Y=0;X<U.length;X+=3)if(O=U[X]|U[X+1]<<8|U[X+2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}return this.strip()};function k(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var X=k(U,J);if(J-1>=Q)X|=k(U,J-1)<<4;return X}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y=0,O=0,H;if(J==="be")for(X=U.length-1;X>=Q;X-=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8;else{var I=U.length-Q;for(X=I%2===0?Q+1:Q;X<U.length;X+=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8}this.strip()};function E(U,Q,J,X){var Y=0,O=Math.min(U.length,J);for(var H=Q;H<O;H++){var I=U.charCodeAt(H)-48;if(Y*=X,I>=49)Y+=I-49+10;else if(I>=17)Y+=I-17+10;else Y+=I}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var X=0,Y=1;Y<=67108863;Y*=Q)X++;X--,Y=Y/Q|0;var O=U.length-J,H=O%X,I=Math.min(O,O-H)+J,Z=0;for(var K=J;K<I;K+=X)if(Z=E(U,K,K+X,Q),this.imuln(Y),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(H!==0){var S=1;Z=E(U,K,U.length,Q);for(K=0;K<H;K++)S*=Q;if(this.imuln(S),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var X=0,Y=0;for(var O=0;O<this.length;O++){var H=this.words[O],I=((H<<X|Y)&16777215).toString(16);if(Y=H>>>24-X&16777215,X+=2,X>=26)X-=26,O--;if(Y!==0||O!==this.length-1)J=A[6-I.length]+I+J;else J=I+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var Z=D[U],K=P[U];J="";var S=this.clone();S.negative=0;while(!S.isZero()){var T=S.modn(K).toString(U);if(S=S.idivn(K),!S.isZero())J=A[Z-T.length]+T+J;else J=T+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}F(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)F(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return F(typeof z<"u"),this.toArrayLike(z,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var X=this.byteLength(),Y=J||Math.max(1,X);F(X<=Y,"byte array longer than desired length"),F(Y>0,"Requested array length <= 0"),this.strip();var O=Q==="le",H=new U(Y),I,Z,K=this.clone();if(!O){for(Z=0;Z<Y-X;Z++)H[Z]=0;for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Y-Z-1]=I}else{for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Z]=I;for(;Z<Y;Z++)H[Z]=0}return H},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function q(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var X=J/26|0,Y=J%26;Q[J]=(U.words[X]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return F((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return F((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var X=0;X<J.length;X++)this.words[X]=Q.words[X]^J.words[X];if(this!==Q)for(;X<Q.length;X++)this.words[X]=Q.words[X];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return F((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){F(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var X=0;X<Q;X++)this.words[X]=~this.words[X]&67108863;if(J>0)this.words[X]=~this.words[X]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){F(typeof U==="number"&&U>=0);var J=U/26|0,X=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<X;else this.words[J]=this.words[J]&~(1<<X);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,X;if(this.length>U.length)J=this,X=U;else J=U,X=this;var Y=0;for(var O=0;O<X.length;O++)Q=(J.words[O]|0)+(X.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;for(;Y!==0&&O<J.length;O++)Q=(J.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;O<J.length;O++)this.words[O]=J.words[O];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,Y;if(J>0)X=this,Y=U;else X=U,Y=this;var O=0;for(var H=0;H<Y.length;H++)Q=(X.words[H]|0)-(Y.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;for(;O!==0&&H<X.length;H++)Q=(X.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;if(O===0&&H<X.length&&X!==this)for(;H<X.length;H++)this.words[H]=X.words[H];if(this.length=Math.max(this.length,H),X!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function _(U,Q,J){J.negative=Q.negative^U.negative;var X=U.length+Q.length|0;J.length=X,X=X-1|0;var Y=U.words[0]|0,O=Q.words[0]|0,H=Y*O,I=H&67108863,Z=H/67108864|0;J.words[0]=I;for(var K=1;K<X;K++){var S=Z>>>26,T=Z&67108863,B=Math.min(K,Q.length-1);for(var c=Math.max(0,K-U.length+1);c<=B;c++){var d=K-c|0;Y=U.words[d]|0,O=Q.words[c]|0,H=Y*O+T,S+=H/67108864|0,T=H&67108863}J.words[K]=T|0,Z=S|0}if(Z!==0)J.words[K]=Z|0;else J.length--;return J.strip()}var j=function(U,Q,J){var X=U.words,Y=Q.words,O=J.words,H=0,I,Z,K,S=X[0]|0,T=S&8191,B=S>>>13,c=X[1]|0,d=c&8191,r=c>>>13,z0=X[2]|0,Z0=z0&8191,t=z0>>>13,$0=X[3]|0,e=$0&8191,Y0=$0>>>13,y0=X[4]|0,u=y0&8191,l=y0>>>13,K0=X[5]|0,U0=K0&8191,Q0=K0>>>13,R0=X[6]|0,b=R0&8191,a=R0>>>13,w0=X[7]|0,i=w0&8191,V0=w0>>>13,c0=X[8]|0,M=c0&8191,v=c0>>>13,w=X[9]|0,h=w&8191,o=w>>>13,H0=Y[0]|0,X0=H0&8191,F0=H0>>>13,d0=Y[1]|0,D0=d0&8191,T0=d0>>>13,b0=Y[2]|0,_0=b0&8191,q0=b0>>>13,DU=Y[3]|0,B0=DU&8191,P0=DU>>>13,HU=Y[4]|0,x0=HU&8191,N0=HU>>>13,FU=Y[5]|0,k0=FU&8191,y=FU>>>13,m=Y[6]|0,J0=m&8191,G0=m>>>13,f0=Y[7]|0,E0=f0&8191,M0=f0>>>13,r0=Y[8]|0,j0=r0&8191,g0=r0>>>13,zU=Y[9]|0,v0=zU&8191,S0=zU>>>13;J.negative=U.negative^Q.negative,J.length=19,I=Math.imul(T,X0),Z=Math.imul(T,F0),Z=Z+Math.imul(B,X0)|0,K=Math.imul(B,F0);var e0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(e0>>>26)|0,e0&=67108863,I=Math.imul(d,X0),Z=Math.imul(d,F0),Z=Z+Math.imul(r,X0)|0,K=Math.imul(r,F0),I=I+Math.imul(T,D0)|0,Z=Z+Math.imul(T,T0)|0,Z=Z+Math.imul(B,D0)|0,K=K+Math.imul(B,T0)|0;var h0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(h0>>>26)|0,h0&=67108863,I=Math.imul(Z0,X0),Z=Math.imul(Z0,F0),Z=Z+Math.imul(t,X0)|0,K=Math.imul(t,F0),I=I+Math.imul(d,D0)|0,Z=Z+Math.imul(d,T0)|0,Z=Z+Math.imul(r,D0)|0,K=K+Math.imul(r,T0)|0,I=I+Math.imul(T,_0)|0,Z=Z+Math.imul(T,q0)|0,Z=Z+Math.imul(B,_0)|0,K=K+Math.imul(B,q0)|0;var p0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(p0>>>26)|0,p0&=67108863,I=Math.imul(e,X0),Z=Math.imul(e,F0),Z=Z+Math.imul(Y0,X0)|0,K=Math.imul(Y0,F0),I=I+Math.imul(Z0,D0)|0,Z=Z+Math.imul(Z0,T0)|0,Z=Z+Math.imul(t,D0)|0,K=K+Math.imul(t,T0)|0,I=I+Math.imul(d,_0)|0,Z=Z+Math.imul(d,q0)|0,Z=Z+Math.imul(r,_0)|0,K=K+Math.imul(r,q0)|0,I=I+Math.imul(T,B0)|0,Z=Z+Math.imul(T,P0)|0,Z=Z+Math.imul(B,B0)|0,K=K+Math.imul(B,P0)|0;var m0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(m0>>>26)|0,m0&=67108863,I=Math.imul(u,X0),Z=Math.imul(u,F0),Z=Z+Math.imul(l,X0)|0,K=Math.imul(l,F0),I=I+Math.imul(e,D0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(Y0,D0)|0,K=K+Math.imul(Y0,T0)|0,I=I+Math.imul(Z0,_0)|0,Z=Z+Math.imul(Z0,q0)|0,Z=Z+Math.imul(t,_0)|0,K=K+Math.imul(t,q0)|0,I=I+Math.imul(d,B0)|0,Z=Z+Math.imul(d,P0)|0,Z=Z+Math.imul(r,B0)|0,K=K+Math.imul(r,P0)|0,I=I+Math.imul(T,x0)|0,Z=Z+Math.imul(T,N0)|0,Z=Z+Math.imul(B,x0)|0,K=K+Math.imul(B,N0)|0;var n0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(n0>>>26)|0,n0&=67108863,I=Math.imul(U0,X0),Z=Math.imul(U0,F0),Z=Z+Math.imul(Q0,X0)|0,K=Math.imul(Q0,F0),I=I+Math.imul(u,D0)|0,Z=Z+Math.imul(u,T0)|0,Z=Z+Math.imul(l,D0)|0,K=K+Math.imul(l,T0)|0,I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,q0)|0,Z=Z+Math.imul(Y0,_0)|0,K=K+Math.imul(Y0,q0)|0,I=I+Math.imul(Z0,B0)|0,Z=Z+Math.imul(Z0,P0)|0,Z=Z+Math.imul(t,B0)|0,K=K+Math.imul(t,P0)|0,I=I+Math.imul(d,x0)|0,Z=Z+Math.imul(d,N0)|0,Z=Z+Math.imul(r,x0)|0,K=K+Math.imul(r,N0)|0,I=I+Math.imul(T,k0)|0,Z=Z+Math.imul(T,y)|0,Z=Z+Math.imul(B,k0)|0,K=K+Math.imul(B,y)|0;var i0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(i0>>>26)|0,i0&=67108863,I=Math.imul(b,X0),Z=Math.imul(b,F0),Z=Z+Math.imul(a,X0)|0,K=Math.imul(a,F0),I=I+Math.imul(U0,D0)|0,Z=Z+Math.imul(U0,T0)|0,Z=Z+Math.imul(Q0,D0)|0,K=K+Math.imul(Q0,T0)|0,I=I+Math.imul(u,_0)|0,Z=Z+Math.imul(u,q0)|0,Z=Z+Math.imul(l,_0)|0,K=K+Math.imul(l,q0)|0,I=I+Math.imul(e,B0)|0,Z=Z+Math.imul(e,P0)|0,Z=Z+Math.imul(Y0,B0)|0,K=K+Math.imul(Y0,P0)|0,I=I+Math.imul(Z0,x0)|0,Z=Z+Math.imul(Z0,N0)|0,Z=Z+Math.imul(t,x0)|0,K=K+Math.imul(t,N0)|0,I=I+Math.imul(d,k0)|0,Z=Z+Math.imul(d,y)|0,Z=Z+Math.imul(r,k0)|0,K=K+Math.imul(r,y)|0,I=I+Math.imul(T,J0)|0,Z=Z+Math.imul(T,G0)|0,Z=Z+Math.imul(B,J0)|0,K=K+Math.imul(B,G0)|0;var UU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(UU>>>26)|0,UU&=67108863,I=Math.imul(i,X0),Z=Math.imul(i,F0),Z=Z+Math.imul(V0,X0)|0,K=Math.imul(V0,F0),I=I+Math.imul(b,D0)|0,Z=Z+Math.imul(b,T0)|0,Z=Z+Math.imul(a,D0)|0,K=K+Math.imul(a,T0)|0,I=I+Math.imul(U0,_0)|0,Z=Z+Math.imul(U0,q0)|0,Z=Z+Math.imul(Q0,_0)|0,K=K+Math.imul(Q0,q0)|0,I=I+Math.imul(u,B0)|0,Z=Z+Math.imul(u,P0)|0,Z=Z+Math.imul(l,B0)|0,K=K+Math.imul(l,P0)|0,I=I+Math.imul(e,x0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(Y0,x0)|0,K=K+Math.imul(Y0,N0)|0,I=I+Math.imul(Z0,k0)|0,Z=Z+Math.imul(Z0,y)|0,Z=Z+Math.imul(t,k0)|0,K=K+Math.imul(t,y)|0,I=I+Math.imul(d,J0)|0,Z=Z+Math.imul(d,G0)|0,Z=Z+Math.imul(r,J0)|0,K=K+Math.imul(r,G0)|0,I=I+Math.imul(T,E0)|0,Z=Z+Math.imul(T,M0)|0,Z=Z+Math.imul(B,E0)|0,K=K+Math.imul(B,M0)|0;var ZU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(M,X0),Z=Math.imul(M,F0),Z=Z+Math.imul(v,X0)|0,K=Math.imul(v,F0),I=I+Math.imul(i,D0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(V0,D0)|0,K=K+Math.imul(V0,T0)|0,I=I+Math.imul(b,_0)|0,Z=Z+Math.imul(b,q0)|0,Z=Z+Math.imul(a,_0)|0,K=K+Math.imul(a,q0)|0,I=I+Math.imul(U0,B0)|0,Z=Z+Math.imul(U0,P0)|0,Z=Z+Math.imul(Q0,B0)|0,K=K+Math.imul(Q0,P0)|0,I=I+Math.imul(u,x0)|0,Z=Z+Math.imul(u,N0)|0,Z=Z+Math.imul(l,x0)|0,K=K+Math.imul(l,N0)|0,I=I+Math.imul(e,k0)|0,Z=Z+Math.imul(e,y)|0,Z=Z+Math.imul(Y0,k0)|0,K=K+Math.imul(Y0,y)|0,I=I+Math.imul(Z0,J0)|0,Z=Z+Math.imul(Z0,G0)|0,Z=Z+Math.imul(t,J0)|0,K=K+Math.imul(t,G0)|0,I=I+Math.imul(d,E0)|0,Z=Z+Math.imul(d,M0)|0,Z=Z+Math.imul(r,E0)|0,K=K+Math.imul(r,M0)|0,I=I+Math.imul(T,j0)|0,Z=Z+Math.imul(T,g0)|0,Z=Z+Math.imul(B,j0)|0,K=K+Math.imul(B,g0)|0;var XU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,I=Math.imul(h,X0),Z=Math.imul(h,F0),Z=Z+Math.imul(o,X0)|0,K=Math.imul(o,F0),I=I+Math.imul(M,D0)|0,Z=Z+Math.imul(M,T0)|0,Z=Z+Math.imul(v,D0)|0,K=K+Math.imul(v,T0)|0,I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,q0)|0,Z=Z+Math.imul(V0,_0)|0,K=K+Math.imul(V0,q0)|0,I=I+Math.imul(b,B0)|0,Z=Z+Math.imul(b,P0)|0,Z=Z+Math.imul(a,B0)|0,K=K+Math.imul(a,P0)|0,I=I+Math.imul(U0,x0)|0,Z=Z+Math.imul(U0,N0)|0,Z=Z+Math.imul(Q0,x0)|0,K=K+Math.imul(Q0,N0)|0,I=I+Math.imul(u,k0)|0,Z=Z+Math.imul(u,y)|0,Z=Z+Math.imul(l,k0)|0,K=K+Math.imul(l,y)|0,I=I+Math.imul(e,J0)|0,Z=Z+Math.imul(e,G0)|0,Z=Z+Math.imul(Y0,J0)|0,K=K+Math.imul(Y0,G0)|0,I=I+Math.imul(Z0,E0)|0,Z=Z+Math.imul(Z0,M0)|0,Z=Z+Math.imul(t,E0)|0,K=K+Math.imul(t,M0)|0,I=I+Math.imul(d,j0)|0,Z=Z+Math.imul(d,g0)|0,Z=Z+Math.imul(r,j0)|0,K=K+Math.imul(r,g0)|0,I=I+Math.imul(T,v0)|0,Z=Z+Math.imul(T,S0)|0,Z=Z+Math.imul(B,v0)|0,K=K+Math.imul(B,S0)|0;var QU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(QU>>>26)|0,QU&=67108863,I=Math.imul(h,D0),Z=Math.imul(h,T0),Z=Z+Math.imul(o,D0)|0,K=Math.imul(o,T0),I=I+Math.imul(M,_0)|0,Z=Z+Math.imul(M,q0)|0,Z=Z+Math.imul(v,_0)|0,K=K+Math.imul(v,q0)|0,I=I+Math.imul(i,B0)|0,Z=Z+Math.imul(i,P0)|0,Z=Z+Math.imul(V0,B0)|0,K=K+Math.imul(V0,P0)|0,I=I+Math.imul(b,x0)|0,Z=Z+Math.imul(b,N0)|0,Z=Z+Math.imul(a,x0)|0,K=K+Math.imul(a,N0)|0,I=I+Math.imul(U0,k0)|0,Z=Z+Math.imul(U0,y)|0,Z=Z+Math.imul(Q0,k0)|0,K=K+Math.imul(Q0,y)|0,I=I+Math.imul(u,J0)|0,Z=Z+Math.imul(u,G0)|0,Z=Z+Math.imul(l,J0)|0,K=K+Math.imul(l,G0)|0,I=I+Math.imul(e,E0)|0,Z=Z+Math.imul(e,M0)|0,Z=Z+Math.imul(Y0,E0)|0,K=K+Math.imul(Y0,M0)|0,I=I+Math.imul(Z0,j0)|0,Z=Z+Math.imul(Z0,g0)|0,Z=Z+Math.imul(t,j0)|0,K=K+Math.imul(t,g0)|0,I=I+Math.imul(d,v0)|0,Z=Z+Math.imul(d,S0)|0,Z=Z+Math.imul(r,v0)|0,K=K+Math.imul(r,S0)|0;var YU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(h,_0),Z=Math.imul(h,q0),Z=Z+Math.imul(o,_0)|0,K=Math.imul(o,q0),I=I+Math.imul(M,B0)|0,Z=Z+Math.imul(M,P0)|0,Z=Z+Math.imul(v,B0)|0,K=K+Math.imul(v,P0)|0,I=I+Math.imul(i,x0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(V0,x0)|0,K=K+Math.imul(V0,N0)|0,I=I+Math.imul(b,k0)|0,Z=Z+Math.imul(b,y)|0,Z=Z+Math.imul(a,k0)|0,K=K+Math.imul(a,y)|0,I=I+Math.imul(U0,J0)|0,Z=Z+Math.imul(U0,G0)|0,Z=Z+Math.imul(Q0,J0)|0,K=K+Math.imul(Q0,G0)|0,I=I+Math.imul(u,E0)|0,Z=Z+Math.imul(u,M0)|0,Z=Z+Math.imul(l,E0)|0,K=K+Math.imul(l,M0)|0,I=I+Math.imul(e,j0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(Y0,j0)|0,K=K+Math.imul(Y0,g0)|0,I=I+Math.imul(Z0,v0)|0,Z=Z+Math.imul(Z0,S0)|0,Z=Z+Math.imul(t,v0)|0,K=K+Math.imul(t,S0)|0;var JU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(h,B0),Z=Math.imul(h,P0),Z=Z+Math.imul(o,B0)|0,K=Math.imul(o,P0),I=I+Math.imul(M,x0)|0,Z=Z+Math.imul(M,N0)|0,Z=Z+Math.imul(v,x0)|0,K=K+Math.imul(v,N0)|0,I=I+Math.imul(i,k0)|0,Z=Z+Math.imul(i,y)|0,Z=Z+Math.imul(V0,k0)|0,K=K+Math.imul(V0,y)|0,I=I+Math.imul(b,J0)|0,Z=Z+Math.imul(b,G0)|0,Z=Z+Math.imul(a,J0)|0,K=K+Math.imul(a,G0)|0,I=I+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,M0)|0,Z=Z+Math.imul(Q0,E0)|0,K=K+Math.imul(Q0,M0)|0,I=I+Math.imul(u,j0)|0,Z=Z+Math.imul(u,g0)|0,Z=Z+Math.imul(l,j0)|0,K=K+Math.imul(l,g0)|0,I=I+Math.imul(e,v0)|0,Z=Z+Math.imul(e,S0)|0,Z=Z+Math.imul(Y0,v0)|0,K=K+Math.imul(Y0,S0)|0;var VU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(VU>>>26)|0,VU&=67108863,I=Math.imul(h,x0),Z=Math.imul(h,N0),Z=Z+Math.imul(o,x0)|0,K=Math.imul(o,N0),I=I+Math.imul(M,k0)|0,Z=Z+Math.imul(M,y)|0,Z=Z+Math.imul(v,k0)|0,K=K+Math.imul(v,y)|0,I=I+Math.imul(i,J0)|0,Z=Z+Math.imul(i,G0)|0,Z=Z+Math.imul(V0,J0)|0,K=K+Math.imul(V0,G0)|0,I=I+Math.imul(b,E0)|0,Z=Z+Math.imul(b,M0)|0,Z=Z+Math.imul(a,E0)|0,K=K+Math.imul(a,M0)|0,I=I+Math.imul(U0,j0)|0,Z=Z+Math.imul(U0,g0)|0,Z=Z+Math.imul(Q0,j0)|0,K=K+Math.imul(Q0,g0)|0,I=I+Math.imul(u,v0)|0,Z=Z+Math.imul(u,S0)|0,Z=Z+Math.imul(l,v0)|0,K=K+Math.imul(l,S0)|0;var GU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(GU>>>26)|0,GU&=67108863,I=Math.imul(h,k0),Z=Math.imul(h,y),Z=Z+Math.imul(o,k0)|0,K=Math.imul(o,y),I=I+Math.imul(M,J0)|0,Z=Z+Math.imul(M,G0)|0,Z=Z+Math.imul(v,J0)|0,K=K+Math.imul(v,G0)|0,I=I+Math.imul(i,E0)|0,Z=Z+Math.imul(i,M0)|0,Z=Z+Math.imul(V0,E0)|0,K=K+Math.imul(V0,M0)|0,I=I+Math.imul(b,j0)|0,Z=Z+Math.imul(b,g0)|0,Z=Z+Math.imul(a,j0)|0,K=K+Math.imul(a,g0)|0,I=I+Math.imul(U0,v0)|0,Z=Z+Math.imul(U0,S0)|0,Z=Z+Math.imul(Q0,v0)|0,K=K+Math.imul(Q0,S0)|0;var IU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(IU>>>26)|0,IU&=67108863,I=Math.imul(h,J0),Z=Math.imul(h,G0),Z=Z+Math.imul(o,J0)|0,K=Math.imul(o,G0),I=I+Math.imul(M,E0)|0,Z=Z+Math.imul(M,M0)|0,Z=Z+Math.imul(v,E0)|0,K=K+Math.imul(v,M0)|0,I=I+Math.imul(i,j0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(V0,j0)|0,K=K+Math.imul(V0,g0)|0,I=I+Math.imul(b,v0)|0,Z=Z+Math.imul(b,S0)|0,Z=Z+Math.imul(a,v0)|0,K=K+Math.imul(a,S0)|0;var $U=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+($U>>>26)|0,$U&=67108863,I=Math.imul(h,E0),Z=Math.imul(h,M0),Z=Z+Math.imul(o,E0)|0,K=Math.imul(o,M0),I=I+Math.imul(M,j0)|0,Z=Z+Math.imul(M,g0)|0,Z=Z+Math.imul(v,j0)|0,K=K+Math.imul(v,g0)|0,I=I+Math.imul(i,v0)|0,Z=Z+Math.imul(i,S0)|0,Z=Z+Math.imul(V0,v0)|0,K=K+Math.imul(V0,S0)|0;var KU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(KU>>>26)|0,KU&=67108863,I=Math.imul(h,j0),Z=Math.imul(h,g0),Z=Z+Math.imul(o,j0)|0,K=Math.imul(o,g0),I=I+Math.imul(M,v0)|0,Z=Z+Math.imul(M,S0)|0,Z=Z+Math.imul(v,v0)|0,K=K+Math.imul(v,S0)|0;var OU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(h,v0),Z=Math.imul(h,S0),Z=Z+Math.imul(o,v0)|0,K=Math.imul(o,S0);var WU=(H+I|0)+((Z&8191)<<13)|0;if(H=(K+(Z>>>13)|0)+(WU>>>26)|0,WU&=67108863,O[0]=e0,O[1]=h0,O[2]=p0,O[3]=m0,O[4]=n0,O[5]=i0,O[6]=UU,O[7]=ZU,O[8]=XU,O[9]=QU,O[10]=YU,O[11]=JU,O[12]=VU,O[13]=GU,O[14]=IU,O[15]=$U,O[16]=KU,O[17]=OU,O[18]=WU,H!==0)O[19]=H,J.length++;return J};if(!Math.imul)j=_;function N(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var X=0,Y=0;for(var O=0;O<J.length-1;O++){var H=Y;Y=0;var I=X&67108863,Z=Math.min(O,Q.length-1);for(var K=Math.max(0,O-U.length+1);K<=Z;K++){var S=O-K,T=U.words[S]|0,B=Q.words[K]|0,c=T*B,d=c&67108863;H=H+(c/67108864|0)|0,d=d+I|0,I=d&67108863,H=H+(d>>>26)|0,Y+=H>>>26,H&=67108863}J.words[O]=I,X=H,H=Y}if(X!==0)J.words[O]=X;else J.length--;return J.strip()}function x(U,Q,J){var X=new g;return X.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,X=this.length+U.length;if(this.length===10&&U.length===10)J=j(this,U,Q);else if(X<63)J=_(this,U,Q);else if(X<1024)J=N(this,U,Q);else J=x(this,U,Q);return J};function g(U,Q){this.x=U,this.y=Q}g.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var X=0;X<U;X++)Q[X]=this.revBin(X,J,U);return Q},g.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var X=0;for(var Y=0;Y<Q;Y++)X|=(U&1)<<Q-Y-1,U>>=1;return X},g.prototype.permute=function(U,Q,J,X,Y,O){for(var H=0;H<O;H++)X[H]=Q[U[H]],Y[H]=J[U[H]]},g.prototype.transform=function(U,Q,J,X,Y,O){this.permute(O,U,Q,J,X,Y);for(var H=1;H<Y;H<<=1){var I=H<<1,Z=Math.cos(2*Math.PI/I),K=Math.sin(2*Math.PI/I);for(var S=0;S<Y;S+=I){var T=Z,B=K;for(var c=0;c<H;c++){var d=J[S+c],r=X[S+c],z0=J[S+c+H],Z0=X[S+c+H],t=T*z0-B*Z0;if(Z0=T*Z0+B*z0,z0=t,J[S+c]=d+z0,X[S+c]=r+Z0,J[S+c+H]=d-z0,X[S+c+H]=r-Z0,c!==I)t=Z*T-K*B,B=Z*B+K*T,T=t}}}},g.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,X=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+X},g.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var X=0;X<J/2;X++){var Y=U[X];U[X]=U[J-X-1],U[J-X-1]=Y,Y=Q[X],Q[X]=-Q[J-X-1],Q[J-X-1]=-Y}},g.prototype.normalize13b=function(U,Q){var J=0;for(var X=0;X<Q/2;X++){var Y=Math.round(U[2*X+1]/Q)*8192+Math.round(U[2*X]/Q)+J;if(U[X]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},g.prototype.convert13b=function(U,Q,J,X){var Y=0;for(var O=0;O<Q;O++)Y=Y+(U[O]|0),J[2*O]=Y&8191,Y=Y>>>13,J[2*O+1]=Y&8191,Y=Y>>>13;for(O=2*Q;O<X;++O)J[O]=0;F(Y===0),F((Y&-8192)===0)},g.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},g.prototype.mulp=function(U,Q,J){var X=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(X),O=this.stub(X),H=Array(X),I=Array(X),Z=Array(X),K=Array(X),S=Array(X),T=Array(X),B=J.words;B.length=X,this.convert13b(U.words,U.length,H,X),this.convert13b(Q.words,Q.length,K,X),this.transform(H,O,I,Z,X,Y),this.transform(K,O,S,T,X,Y);for(var c=0;c<X;c++){var d=I[c]*S[c]-Z[c]*T[c];Z[c]=I[c]*T[c]+Z[c]*S[c],I[c]=d}return this.conjugate(I,Z,X),this.transform(I,Z,B,O,X,Y),this.conjugate(B,O,X),this.normalize13b(B,X),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),x(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){F(typeof U==="number"),F(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var X=(this.words[J]|0)*U,Y=(X&67108863)+(Q&67108863);Q>>=26,Q+=X/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=q(U);if(Q.length===0)return new V(1);var J=this;for(var X=0;X<Q.length;X++,J=J.sqr())if(Q[X]!==0)break;if(++X<Q.length)for(var Y=J.sqr();X<Q.length;X++,Y=Y.sqr()){if(Q[X]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var O=0;for(Y=0;Y<this.length;Y++){var H=this.words[Y]&X,I=(this.words[Y]|0)-H<<Q;this.words[Y]=I|O,O=H>>>26-Q}if(O)this.words[Y]=O,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return F(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){F(typeof U==="number"&&U>=0);var X;if(Q)X=(Q-Q%26)/26;else X=0;var Y=U%26,O=Math.min((U-Y)/26,this.length),H=67108863^67108863>>>Y<<Y,I=J;if(X-=O,X=Math.max(0,X),I){for(var Z=0;Z<O;Z++)I.words[Z]=this.words[Z];I.length=O}if(O===0);else if(this.length>O){this.length-=O;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+O]}else this.words[0]=0,this.length=1;var K=0;for(Z=this.length-1;Z>=0&&(K!==0||Z>=X);Z--){var S=this.words[Z]|0;this.words[Z]=K<<26-Y|S>>>Y,K=S&H}if(I&&K!==0)I.words[I.length++]=K;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return F(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&X)},V.prototype.imaskn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var X=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=X}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var X=U.length+J,Y;this._expand(X);var O,H=0;for(Y=0;Y<U.length;Y++){O=(this.words[Y+J]|0)+H;var I=(U.words[Y]|0)*Q;O-=I&67108863,H=(O>>26)-(I/67108864|0),this.words[Y+J]=O&67108863}for(;Y<this.length-J;Y++)O=(this.words[Y+J]|0)+H,H=O>>26,this.words[Y+J]=O&67108863;if(H===0)return this.strip();F(H===-1),H=0;for(Y=0;Y<this.length;Y++)O=-(this.words[Y]|0)+H,H=O>>26,this.words[Y]=O&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,X=this.clone(),Y=U,O=Y.words[Y.length-1]|0,H=this._countBits(O);if(J=26-H,J!==0)Y=Y.ushln(J),X.iushln(J),O=Y.words[Y.length-1]|0;var I=X.length-Y.length,Z;if(Q!=="mod"){Z=new V(null),Z.length=I+1,Z.words=Array(Z.length);for(var K=0;K<Z.length;K++)Z.words[K]=0}var S=X.clone()._ishlnsubmul(Y,1,I);if(S.negative===0){if(X=S,Z)Z.words[I]=1}for(var T=I-1;T>=0;T--){var B=(X.words[Y.length+T]|0)*67108864+(X.words[Y.length+T-1]|0);B=Math.min(B/O|0,67108863),X._ishlnsubmul(Y,B,T);while(X.negative!==0)if(B--,X.negative=0,X._ishlnsubmul(Y,1,T),!X.isZero())X.negative^=1;if(Z)Z.words[T]=B}if(Z)Z.strip();if(X.strip(),Q!=="div"&&J!==0)X.iushrn(J);return{div:Z||null,mod:X}},V.prototype.divmod=function(U,Q,J){if(F(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var X,Y,O;if(this.negative!==0&&U.negative===0){if(O=this.neg().divmod(U,Q),Q!=="mod")X=O.div.neg();if(Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:X,mod:Y}}if(this.negative===0&&U.negative!==0){if(O=this.divmod(U.neg(),Q),Q!=="mod")X=O.div.neg();return{div:X,mod:O.mod}}if((this.negative&U.negative)!==0){if(O=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:O.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,X=U.ushrn(1),Y=U.andln(1),O=J.cmp(X);if(O<0||Y===1&&O===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){F(U<=67108863);var Q=67108864%U,J=0;for(var X=this.length-1;X>=0;X--)J=(Q*J+(this.words[X]|0))%U;return J},V.prototype.idivn=function(U){F(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var X=(this.words[J]|0)+Q*67108864;this.words[J]=X/U|0,Q=X%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=new V(0),H=new V(1),I=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++I;var Z=J.clone(),K=Q.clone();while(!Q.isZero()){for(var S=0,T=1;(Q.words[0]&T)===0&&S<26;++S,T<<=1);if(S>0){Q.iushrn(S);while(S-- >0){if(X.isOdd()||Y.isOdd())X.iadd(Z),Y.isub(K);X.iushrn(1),Y.iushrn(1)}}for(var B=0,c=1;(J.words[0]&c)===0&&B<26;++B,c<<=1);if(B>0){J.iushrn(B);while(B-- >0){if(O.isOdd()||H.isOdd())O.iadd(Z),H.isub(K);O.iushrn(1),H.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(O),Y.isub(H);else J.isub(Q),O.isub(X),H.isub(Y)}return{a:O,b:H,gcd:J.iushln(I)}},V.prototype._invmp=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var H=0,I=1;(Q.words[0]&I)===0&&H<26;++H,I<<=1);if(H>0){Q.iushrn(H);while(H-- >0){if(X.isOdd())X.iadd(O);X.iushrn(1)}}for(var Z=0,K=1;(J.words[0]&K)===0&&Z<26;++Z,K<<=1);if(Z>0){J.iushrn(Z);while(Z-- >0){if(Y.isOdd())Y.iadd(O);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(Y);else J.isub(Q),Y.isub(X)}var S;if(Q.cmpn(1)===0)S=X;else S=Y;if(S.cmpn(0)<0)S.iadd(U);return S},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var X=0;Q.isEven()&&J.isEven();X++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var O=Q;Q=J,J=O}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(X)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){F(typeof U==="number");var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=X,this;var Y=X;for(var O=J;Y!==0&&O<this.length;O++){var H=this.words[O]|0;H+=Y,Y=H>>>26,H&=67108863,this.words[O]=H}if(Y!==0)this.words[O]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;F(U<=67108863,"Number is too big");var X=this.words[0]|0;J=X===U?0:X<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var X=this.words[J]|0,Y=U.words[J]|0;if(X===Y)continue;if(X<Y)Q=-1;else if(X>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new n(U)},V.prototype.toRed=function(U){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return F(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return F(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var f={k256:null,p224:null,p192:null,p25519:null};function p(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},p.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var X=J<this.n?-1:Q.ucmp(this.p);if(X===0)Q.words[0]=0,Q.length=1;else if(X>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},p.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},p.prototype.imulK=function(U){return U.imul(this.k)};function s(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(s,p),s.prototype.split=function(U,Q){var J=4194303,X=Math.min(U.length,9);for(var Y=0;Y<X;Y++)Q.words[Y]=U.words[Y];if(Q.length=X,U.length<=9){U.words[0]=0,U.length=1;return}var O=U.words[9];Q.words[Q.length++]=O&J;for(Y=10;Y<U.length;Y++){var H=U.words[Y]|0;U.words[Y-10]=(H&J)<<4|O>>>22,O=H}if(O>>>=22,U.words[Y-10]=O,O===0&&U.length>10)U.length-=10;else U.length-=9},s.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var X=U.words[J]|0;Q+=X*977,U.words[J]=Q&67108863,Q=X*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function O0(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(O0,p);function C0(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(C0,p);function W0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(W0,p),W0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var X=(U.words[J]|0)*19+Q,Y=X&67108863;X>>>=26,U.words[J]=Y,Q=X}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(f[U])return f[U];var Q;if(U==="k256")Q=new s;else if(U==="p224")Q=new O0;else if(U==="p192")Q=new C0;else if(U==="p25519")Q=new W0;else throw Error("Unknown prime "+U);return f[U]=Q,Q};function n(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else F(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}n.prototype._verify1=function(U){F(U.negative===0,"red works only with positives"),F(U.red,"red works only with red numbers")},n.prototype._verify2=function(U,Q){F((U.negative|Q.negative)===0,"red works only with positives"),F(U.red&&U.red===Q.red,"red works only with red numbers")},n.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},n.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},n.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},n.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},n.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},n.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},n.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},n.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},n.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},n.prototype.isqr=function(U){return this.imul(U,U.clone())},n.prototype.sqr=function(U){return this.mul(U,U)},n.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var X=this.m.subn(1),Y=0;while(!X.isZero()&&X.andln(1)===0)Y++,X.iushrn(1);F(!X.isZero());var O=new V(1).toRed(this),H=O.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(H)!==0)Z.redIAdd(H);var K=this.pow(Z,X),S=this.pow(U,X.addn(1).iushrn(1)),T=this.pow(U,X),B=Y;while(T.cmp(O)!==0){var c=T;for(var d=0;c.cmp(O)!==0;d++)c=c.redSqr();F(d<B);var r=this.pow(K,new V(1).iushln(B-d-1));S=S.redMul(r),K=r.redSqr(),T=T.redMul(K),B=d}return S},n.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},n.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,X=Array(1<<J);X[0]=new V(1).toRed(this),X[1]=U;for(var Y=2;Y<X.length;Y++)X[Y]=this.mul(X[Y-1],U);var O=X[0],H=0,I=0,Z=Q.bitLength()%26;if(Z===0)Z=26;for(Y=Q.length-1;Y>=0;Y--){var K=Q.words[Y];for(var S=Z-1;S>=0;S--){var T=K>>S&1;if(O!==X[0])O=this.sqr(O);if(T===0&&H===0){I=0;continue}if(H<<=1,H|=T,I++,I!==J&&(Y!==0||S!==0))continue;O=this.mul(O,X[H]),I=0,H=0}Z=26}return O},n.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},n.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new I0(U)};function I0(U){if(n.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}R(I0,n),I0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},I0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},I0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof $>"u"||$,G)}),TG=A0((G,$)=>{var W=AG(),C=CG();$.exports=function(z){return new R(z)};var F={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}};F.p224=F.secp224r1,F.p256=F.secp256r1=F.prime256v1,F.p192=F.secp192r1=F.prime192v1,F.p384=F.secp384r1,F.p521=F.secp521r1;function R(z){if(this.curveType=F[z],!this.curveType)this.curveType={name:z};this.curve=new W.ec(this.curveType.name),this.keys=void 0}R.prototype.generateKeys=function(z,k){return this.keys=this.curve.genKeyPair(),this.getPublicKey(z,k)},R.prototype.computeSecret=function(z,k,L){if(k=k||"utf8",!Buffer.isBuffer(z))z=new Buffer(z,k);var E=this.curve.keyFromPublic(z).getPublic(),A=E.mul(this.keys.getPrivate()).getX();return V(A,L,this.curveType.byteLength)},R.prototype.getPublicKey=function(z,k){var L=this.keys.getPublic(k==="compressed",!0);if(k==="hybrid")if(L[L.length-1]%2)L[0]=7;else L[0]=6;return V(L,z)},R.prototype.getPrivateKey=function(z){return V(this.keys.getPrivate(),z)},R.prototype.setPublicKey=function(z,k){if(k=k||"utf8",!Buffer.isBuffer(z))z=new Buffer(z,k);return this.keys._importPublic(z),this},R.prototype.setPrivateKey=function(z,k){if(k=k||"utf8",!Buffer.isBuffer(z))z=new Buffer(z,k);var L=new C(z);return L=L.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(L),this};function V(z,k,L){if(!Array.isArray(z))z=z.toArray();var E=new Buffer(z);if(L&&E.length<L){var A=new Buffer(L-E.length);A.fill(0),E=Buffer.concat([A,E])}if(!k)return E;else return E.toString(k)}}),DG=A0((G,$)=>{var W=(SU(),l0(PU)).createECDH;$.exports=W||TG()}),zG=A0((G,$)=>{(function(W,C){function F(U,Q){if(!U)throw Error(Q||"Assertion failed")}function R(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof W==="object")W.exports=V;else C.BN=V;V.BN=V,V.wordSize=26;var z;try{if(typeof window<"u"&&typeof window.Buffer<"u")z=window.Buffer;else z=(TU(),l0(CU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;F(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var X=0;if(U[0]==="-")X++,this.negative=1;if(X<U.length){if(Q===16)this._parseHex(U,X,J);else if(this._parseBase(U,Q,X),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else F(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(F(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y,O,H=0;if(J==="be"){for(X=U.length-1,Y=0;X>=0;X-=3)if(O=U[X]|U[X-1]<<8|U[X-2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}else if(J==="le"){for(X=0,Y=0;X<U.length;X+=3)if(O=U[X]|U[X+1]<<8|U[X+2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}return this.strip()};function k(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var X=k(U,J);if(J-1>=Q)X|=k(U,J-1)<<4;return X}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y=0,O=0,H;if(J==="be")for(X=U.length-1;X>=Q;X-=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8;else{var I=U.length-Q;for(X=I%2===0?Q+1:Q;X<U.length;X+=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8}this.strip()};function E(U,Q,J,X){var Y=0,O=Math.min(U.length,J);for(var H=Q;H<O;H++){var I=U.charCodeAt(H)-48;if(Y*=X,I>=49)Y+=I-49+10;else if(I>=17)Y+=I-17+10;else Y+=I}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var X=0,Y=1;Y<=67108863;Y*=Q)X++;X--,Y=Y/Q|0;var O=U.length-J,H=O%X,I=Math.min(O,O-H)+J,Z=0;for(var K=J;K<I;K+=X)if(Z=E(U,K,K+X,Q),this.imuln(Y),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(H!==0){var S=1;Z=E(U,K,U.length,Q);for(K=0;K<H;K++)S*=Q;if(this.imuln(S),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var X=0,Y=0;for(var O=0;O<this.length;O++){var H=this.words[O],I=((H<<X|Y)&16777215).toString(16);if(Y=H>>>24-X&16777215,X+=2,X>=26)X-=26,O--;if(Y!==0||O!==this.length-1)J=A[6-I.length]+I+J;else J=I+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var Z=D[U],K=P[U];J="";var S=this.clone();S.negative=0;while(!S.isZero()){var T=S.modn(K).toString(U);if(S=S.idivn(K),!S.isZero())J=A[Z-T.length]+T+J;else J=T+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}F(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)F(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return F(typeof z<"u"),this.toArrayLike(z,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var X=this.byteLength(),Y=J||Math.max(1,X);F(X<=Y,"byte array longer than desired length"),F(Y>0,"Requested array length <= 0"),this.strip();var O=Q==="le",H=new U(Y),I,Z,K=this.clone();if(!O){for(Z=0;Z<Y-X;Z++)H[Z]=0;for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Y-Z-1]=I}else{for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Z]=I;for(;Z<Y;Z++)H[Z]=0}return H},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function q(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var X=J/26|0,Y=J%26;Q[J]=(U.words[X]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return F((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return F((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var X=0;X<J.length;X++)this.words[X]=Q.words[X]^J.words[X];if(this!==Q)for(;X<Q.length;X++)this.words[X]=Q.words[X];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return F((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){F(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var X=0;X<Q;X++)this.words[X]=~this.words[X]&67108863;if(J>0)this.words[X]=~this.words[X]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){F(typeof U==="number"&&U>=0);var J=U/26|0,X=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<X;else this.words[J]=this.words[J]&~(1<<X);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,X;if(this.length>U.length)J=this,X=U;else J=U,X=this;var Y=0;for(var O=0;O<X.length;O++)Q=(J.words[O]|0)+(X.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;for(;Y!==0&&O<J.length;O++)Q=(J.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;O<J.length;O++)this.words[O]=J.words[O];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,Y;if(J>0)X=this,Y=U;else X=U,Y=this;var O=0;for(var H=0;H<Y.length;H++)Q=(X.words[H]|0)-(Y.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;for(;O!==0&&H<X.length;H++)Q=(X.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;if(O===0&&H<X.length&&X!==this)for(;H<X.length;H++)this.words[H]=X.words[H];if(this.length=Math.max(this.length,H),X!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function _(U,Q,J){J.negative=Q.negative^U.negative;var X=U.length+Q.length|0;J.length=X,X=X-1|0;var Y=U.words[0]|0,O=Q.words[0]|0,H=Y*O,I=H&67108863,Z=H/67108864|0;J.words[0]=I;for(var K=1;K<X;K++){var S=Z>>>26,T=Z&67108863,B=Math.min(K,Q.length-1);for(var c=Math.max(0,K-U.length+1);c<=B;c++){var d=K-c|0;Y=U.words[d]|0,O=Q.words[c]|0,H=Y*O+T,S+=H/67108864|0,T=H&67108863}J.words[K]=T|0,Z=S|0}if(Z!==0)J.words[K]=Z|0;else J.length--;return J.strip()}var j=function(U,Q,J){var X=U.words,Y=Q.words,O=J.words,H=0,I,Z,K,S=X[0]|0,T=S&8191,B=S>>>13,c=X[1]|0,d=c&8191,r=c>>>13,z0=X[2]|0,Z0=z0&8191,t=z0>>>13,$0=X[3]|0,e=$0&8191,Y0=$0>>>13,y0=X[4]|0,u=y0&8191,l=y0>>>13,K0=X[5]|0,U0=K0&8191,Q0=K0>>>13,R0=X[6]|0,b=R0&8191,a=R0>>>13,w0=X[7]|0,i=w0&8191,V0=w0>>>13,c0=X[8]|0,M=c0&8191,v=c0>>>13,w=X[9]|0,h=w&8191,o=w>>>13,H0=Y[0]|0,X0=H0&8191,F0=H0>>>13,d0=Y[1]|0,D0=d0&8191,T0=d0>>>13,b0=Y[2]|0,_0=b0&8191,q0=b0>>>13,DU=Y[3]|0,B0=DU&8191,P0=DU>>>13,HU=Y[4]|0,x0=HU&8191,N0=HU>>>13,FU=Y[5]|0,k0=FU&8191,y=FU>>>13,m=Y[6]|0,J0=m&8191,G0=m>>>13,f0=Y[7]|0,E0=f0&8191,M0=f0>>>13,r0=Y[8]|0,j0=r0&8191,g0=r0>>>13,zU=Y[9]|0,v0=zU&8191,S0=zU>>>13;J.negative=U.negative^Q.negative,J.length=19,I=Math.imul(T,X0),Z=Math.imul(T,F0),Z=Z+Math.imul(B,X0)|0,K=Math.imul(B,F0);var e0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(e0>>>26)|0,e0&=67108863,I=Math.imul(d,X0),Z=Math.imul(d,F0),Z=Z+Math.imul(r,X0)|0,K=Math.imul(r,F0),I=I+Math.imul(T,D0)|0,Z=Z+Math.imul(T,T0)|0,Z=Z+Math.imul(B,D0)|0,K=K+Math.imul(B,T0)|0;var h0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(h0>>>26)|0,h0&=67108863,I=Math.imul(Z0,X0),Z=Math.imul(Z0,F0),Z=Z+Math.imul(t,X0)|0,K=Math.imul(t,F0),I=I+Math.imul(d,D0)|0,Z=Z+Math.imul(d,T0)|0,Z=Z+Math.imul(r,D0)|0,K=K+Math.imul(r,T0)|0,I=I+Math.imul(T,_0)|0,Z=Z+Math.imul(T,q0)|0,Z=Z+Math.imul(B,_0)|0,K=K+Math.imul(B,q0)|0;var p0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(p0>>>26)|0,p0&=67108863,I=Math.imul(e,X0),Z=Math.imul(e,F0),Z=Z+Math.imul(Y0,X0)|0,K=Math.imul(Y0,F0),I=I+Math.imul(Z0,D0)|0,Z=Z+Math.imul(Z0,T0)|0,Z=Z+Math.imul(t,D0)|0,K=K+Math.imul(t,T0)|0,I=I+Math.imul(d,_0)|0,Z=Z+Math.imul(d,q0)|0,Z=Z+Math.imul(r,_0)|0,K=K+Math.imul(r,q0)|0,I=I+Math.imul(T,B0)|0,Z=Z+Math.imul(T,P0)|0,Z=Z+Math.imul(B,B0)|0,K=K+Math.imul(B,P0)|0;var m0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(m0>>>26)|0,m0&=67108863,I=Math.imul(u,X0),Z=Math.imul(u,F0),Z=Z+Math.imul(l,X0)|0,K=Math.imul(l,F0),I=I+Math.imul(e,D0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(Y0,D0)|0,K=K+Math.imul(Y0,T0)|0,I=I+Math.imul(Z0,_0)|0,Z=Z+Math.imul(Z0,q0)|0,Z=Z+Math.imul(t,_0)|0,K=K+Math.imul(t,q0)|0,I=I+Math.imul(d,B0)|0,Z=Z+Math.imul(d,P0)|0,Z=Z+Math.imul(r,B0)|0,K=K+Math.imul(r,P0)|0,I=I+Math.imul(T,x0)|0,Z=Z+Math.imul(T,N0)|0,Z=Z+Math.imul(B,x0)|0,K=K+Math.imul(B,N0)|0;var n0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(n0>>>26)|0,n0&=67108863,I=Math.imul(U0,X0),Z=Math.imul(U0,F0),Z=Z+Math.imul(Q0,X0)|0,K=Math.imul(Q0,F0),I=I+Math.imul(u,D0)|0,Z=Z+Math.imul(u,T0)|0,Z=Z+Math.imul(l,D0)|0,K=K+Math.imul(l,T0)|0,I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,q0)|0,Z=Z+Math.imul(Y0,_0)|0,K=K+Math.imul(Y0,q0)|0,I=I+Math.imul(Z0,B0)|0,Z=Z+Math.imul(Z0,P0)|0,Z=Z+Math.imul(t,B0)|0,K=K+Math.imul(t,P0)|0,I=I+Math.imul(d,x0)|0,Z=Z+Math.imul(d,N0)|0,Z=Z+Math.imul(r,x0)|0,K=K+Math.imul(r,N0)|0,I=I+Math.imul(T,k0)|0,Z=Z+Math.imul(T,y)|0,Z=Z+Math.imul(B,k0)|0,K=K+Math.imul(B,y)|0;var i0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(i0>>>26)|0,i0&=67108863,I=Math.imul(b,X0),Z=Math.imul(b,F0),Z=Z+Math.imul(a,X0)|0,K=Math.imul(a,F0),I=I+Math.imul(U0,D0)|0,Z=Z+Math.imul(U0,T0)|0,Z=Z+Math.imul(Q0,D0)|0,K=K+Math.imul(Q0,T0)|0,I=I+Math.imul(u,_0)|0,Z=Z+Math.imul(u,q0)|0,Z=Z+Math.imul(l,_0)|0,K=K+Math.imul(l,q0)|0,I=I+Math.imul(e,B0)|0,Z=Z+Math.imul(e,P0)|0,Z=Z+Math.imul(Y0,B0)|0,K=K+Math.imul(Y0,P0)|0,I=I+Math.imul(Z0,x0)|0,Z=Z+Math.imul(Z0,N0)|0,Z=Z+Math.imul(t,x0)|0,K=K+Math.imul(t,N0)|0,I=I+Math.imul(d,k0)|0,Z=Z+Math.imul(d,y)|0,Z=Z+Math.imul(r,k0)|0,K=K+Math.imul(r,y)|0,I=I+Math.imul(T,J0)|0,Z=Z+Math.imul(T,G0)|0,Z=Z+Math.imul(B,J0)|0,K=K+Math.imul(B,G0)|0;var UU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(UU>>>26)|0,UU&=67108863,I=Math.imul(i,X0),Z=Math.imul(i,F0),Z=Z+Math.imul(V0,X0)|0,K=Math.imul(V0,F0),I=I+Math.imul(b,D0)|0,Z=Z+Math.imul(b,T0)|0,Z=Z+Math.imul(a,D0)|0,K=K+Math.imul(a,T0)|0,I=I+Math.imul(U0,_0)|0,Z=Z+Math.imul(U0,q0)|0,Z=Z+Math.imul(Q0,_0)|0,K=K+Math.imul(Q0,q0)|0,I=I+Math.imul(u,B0)|0,Z=Z+Math.imul(u,P0)|0,Z=Z+Math.imul(l,B0)|0,K=K+Math.imul(l,P0)|0,I=I+Math.imul(e,x0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(Y0,x0)|0,K=K+Math.imul(Y0,N0)|0,I=I+Math.imul(Z0,k0)|0,Z=Z+Math.imul(Z0,y)|0,Z=Z+Math.imul(t,k0)|0,K=K+Math.imul(t,y)|0,I=I+Math.imul(d,J0)|0,Z=Z+Math.imul(d,G0)|0,Z=Z+Math.imul(r,J0)|0,K=K+Math.imul(r,G0)|0,I=I+Math.imul(T,E0)|0,Z=Z+Math.imul(T,M0)|0,Z=Z+Math.imul(B,E0)|0,K=K+Math.imul(B,M0)|0;var ZU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(M,X0),Z=Math.imul(M,F0),Z=Z+Math.imul(v,X0)|0,K=Math.imul(v,F0),I=I+Math.imul(i,D0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(V0,D0)|0,K=K+Math.imul(V0,T0)|0,I=I+Math.imul(b,_0)|0,Z=Z+Math.imul(b,q0)|0,Z=Z+Math.imul(a,_0)|0,K=K+Math.imul(a,q0)|0,I=I+Math.imul(U0,B0)|0,Z=Z+Math.imul(U0,P0)|0,Z=Z+Math.imul(Q0,B0)|0,K=K+Math.imul(Q0,P0)|0,I=I+Math.imul(u,x0)|0,Z=Z+Math.imul(u,N0)|0,Z=Z+Math.imul(l,x0)|0,K=K+Math.imul(l,N0)|0,I=I+Math.imul(e,k0)|0,Z=Z+Math.imul(e,y)|0,Z=Z+Math.imul(Y0,k0)|0,K=K+Math.imul(Y0,y)|0,I=I+Math.imul(Z0,J0)|0,Z=Z+Math.imul(Z0,G0)|0,Z=Z+Math.imul(t,J0)|0,K=K+Math.imul(t,G0)|0,I=I+Math.imul(d,E0)|0,Z=Z+Math.imul(d,M0)|0,Z=Z+Math.imul(r,E0)|0,K=K+Math.imul(r,M0)|0,I=I+Math.imul(T,j0)|0,Z=Z+Math.imul(T,g0)|0,Z=Z+Math.imul(B,j0)|0,K=K+Math.imul(B,g0)|0;var XU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,I=Math.imul(h,X0),Z=Math.imul(h,F0),Z=Z+Math.imul(o,X0)|0,K=Math.imul(o,F0),I=I+Math.imul(M,D0)|0,Z=Z+Math.imul(M,T0)|0,Z=Z+Math.imul(v,D0)|0,K=K+Math.imul(v,T0)|0,I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,q0)|0,Z=Z+Math.imul(V0,_0)|0,K=K+Math.imul(V0,q0)|0,I=I+Math.imul(b,B0)|0,Z=Z+Math.imul(b,P0)|0,Z=Z+Math.imul(a,B0)|0,K=K+Math.imul(a,P0)|0,I=I+Math.imul(U0,x0)|0,Z=Z+Math.imul(U0,N0)|0,Z=Z+Math.imul(Q0,x0)|0,K=K+Math.imul(Q0,N0)|0,I=I+Math.imul(u,k0)|0,Z=Z+Math.imul(u,y)|0,Z=Z+Math.imul(l,k0)|0,K=K+Math.imul(l,y)|0,I=I+Math.imul(e,J0)|0,Z=Z+Math.imul(e,G0)|0,Z=Z+Math.imul(Y0,J0)|0,K=K+Math.imul(Y0,G0)|0,I=I+Math.imul(Z0,E0)|0,Z=Z+Math.imul(Z0,M0)|0,Z=Z+Math.imul(t,E0)|0,K=K+Math.imul(t,M0)|0,I=I+Math.imul(d,j0)|0,Z=Z+Math.imul(d,g0)|0,Z=Z+Math.imul(r,j0)|0,K=K+Math.imul(r,g0)|0,I=I+Math.imul(T,v0)|0,Z=Z+Math.imul(T,S0)|0,Z=Z+Math.imul(B,v0)|0,K=K+Math.imul(B,S0)|0;var QU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(QU>>>26)|0,QU&=67108863,I=Math.imul(h,D0),Z=Math.imul(h,T0),Z=Z+Math.imul(o,D0)|0,K=Math.imul(o,T0),I=I+Math.imul(M,_0)|0,Z=Z+Math.imul(M,q0)|0,Z=Z+Math.imul(v,_0)|0,K=K+Math.imul(v,q0)|0,I=I+Math.imul(i,B0)|0,Z=Z+Math.imul(i,P0)|0,Z=Z+Math.imul(V0,B0)|0,K=K+Math.imul(V0,P0)|0,I=I+Math.imul(b,x0)|0,Z=Z+Math.imul(b,N0)|0,Z=Z+Math.imul(a,x0)|0,K=K+Math.imul(a,N0)|0,I=I+Math.imul(U0,k0)|0,Z=Z+Math.imul(U0,y)|0,Z=Z+Math.imul(Q0,k0)|0,K=K+Math.imul(Q0,y)|0,I=I+Math.imul(u,J0)|0,Z=Z+Math.imul(u,G0)|0,Z=Z+Math.imul(l,J0)|0,K=K+Math.imul(l,G0)|0,I=I+Math.imul(e,E0)|0,Z=Z+Math.imul(e,M0)|0,Z=Z+Math.imul(Y0,E0)|0,K=K+Math.imul(Y0,M0)|0,I=I+Math.imul(Z0,j0)|0,Z=Z+Math.imul(Z0,g0)|0,Z=Z+Math.imul(t,j0)|0,K=K+Math.imul(t,g0)|0,I=I+Math.imul(d,v0)|0,Z=Z+Math.imul(d,S0)|0,Z=Z+Math.imul(r,v0)|0,K=K+Math.imul(r,S0)|0;var YU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(h,_0),Z=Math.imul(h,q0),Z=Z+Math.imul(o,_0)|0,K=Math.imul(o,q0),I=I+Math.imul(M,B0)|0,Z=Z+Math.imul(M,P0)|0,Z=Z+Math.imul(v,B0)|0,K=K+Math.imul(v,P0)|0,I=I+Math.imul(i,x0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(V0,x0)|0,K=K+Math.imul(V0,N0)|0,I=I+Math.imul(b,k0)|0,Z=Z+Math.imul(b,y)|0,Z=Z+Math.imul(a,k0)|0,K=K+Math.imul(a,y)|0,I=I+Math.imul(U0,J0)|0,Z=Z+Math.imul(U0,G0)|0,Z=Z+Math.imul(Q0,J0)|0,K=K+Math.imul(Q0,G0)|0,I=I+Math.imul(u,E0)|0,Z=Z+Math.imul(u,M0)|0,Z=Z+Math.imul(l,E0)|0,K=K+Math.imul(l,M0)|0,I=I+Math.imul(e,j0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(Y0,j0)|0,K=K+Math.imul(Y0,g0)|0,I=I+Math.imul(Z0,v0)|0,Z=Z+Math.imul(Z0,S0)|0,Z=Z+Math.imul(t,v0)|0,K=K+Math.imul(t,S0)|0;var JU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(h,B0),Z=Math.imul(h,P0),Z=Z+Math.imul(o,B0)|0,K=Math.imul(o,P0),I=I+Math.imul(M,x0)|0,Z=Z+Math.imul(M,N0)|0,Z=Z+Math.imul(v,x0)|0,K=K+Math.imul(v,N0)|0,I=I+Math.imul(i,k0)|0,Z=Z+Math.imul(i,y)|0,Z=Z+Math.imul(V0,k0)|0,K=K+Math.imul(V0,y)|0,I=I+Math.imul(b,J0)|0,Z=Z+Math.imul(b,G0)|0,Z=Z+Math.imul(a,J0)|0,K=K+Math.imul(a,G0)|0,I=I+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,M0)|0,Z=Z+Math.imul(Q0,E0)|0,K=K+Math.imul(Q0,M0)|0,I=I+Math.imul(u,j0)|0,Z=Z+Math.imul(u,g0)|0,Z=Z+Math.imul(l,j0)|0,K=K+Math.imul(l,g0)|0,I=I+Math.imul(e,v0)|0,Z=Z+Math.imul(e,S0)|0,Z=Z+Math.imul(Y0,v0)|0,K=K+Math.imul(Y0,S0)|0;var VU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(VU>>>26)|0,VU&=67108863,I=Math.imul(h,x0),Z=Math.imul(h,N0),Z=Z+Math.imul(o,x0)|0,K=Math.imul(o,N0),I=I+Math.imul(M,k0)|0,Z=Z+Math.imul(M,y)|0,Z=Z+Math.imul(v,k0)|0,K=K+Math.imul(v,y)|0,I=I+Math.imul(i,J0)|0,Z=Z+Math.imul(i,G0)|0,Z=Z+Math.imul(V0,J0)|0,K=K+Math.imul(V0,G0)|0,I=I+Math.imul(b,E0)|0,Z=Z+Math.imul(b,M0)|0,Z=Z+Math.imul(a,E0)|0,K=K+Math.imul(a,M0)|0,I=I+Math.imul(U0,j0)|0,Z=Z+Math.imul(U0,g0)|0,Z=Z+Math.imul(Q0,j0)|0,K=K+Math.imul(Q0,g0)|0,I=I+Math.imul(u,v0)|0,Z=Z+Math.imul(u,S0)|0,Z=Z+Math.imul(l,v0)|0,K=K+Math.imul(l,S0)|0;var GU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(GU>>>26)|0,GU&=67108863,I=Math.imul(h,k0),Z=Math.imul(h,y),Z=Z+Math.imul(o,k0)|0,K=Math.imul(o,y),I=I+Math.imul(M,J0)|0,Z=Z+Math.imul(M,G0)|0,Z=Z+Math.imul(v,J0)|0,K=K+Math.imul(v,G0)|0,I=I+Math.imul(i,E0)|0,Z=Z+Math.imul(i,M0)|0,Z=Z+Math.imul(V0,E0)|0,K=K+Math.imul(V0,M0)|0,I=I+Math.imul(b,j0)|0,Z=Z+Math.imul(b,g0)|0,Z=Z+Math.imul(a,j0)|0,K=K+Math.imul(a,g0)|0,I=I+Math.imul(U0,v0)|0,Z=Z+Math.imul(U0,S0)|0,Z=Z+Math.imul(Q0,v0)|0,K=K+Math.imul(Q0,S0)|0;var IU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(IU>>>26)|0,IU&=67108863,I=Math.imul(h,J0),Z=Math.imul(h,G0),Z=Z+Math.imul(o,J0)|0,K=Math.imul(o,G0),I=I+Math.imul(M,E0)|0,Z=Z+Math.imul(M,M0)|0,Z=Z+Math.imul(v,E0)|0,K=K+Math.imul(v,M0)|0,I=I+Math.imul(i,j0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(V0,j0)|0,K=K+Math.imul(V0,g0)|0,I=I+Math.imul(b,v0)|0,Z=Z+Math.imul(b,S0)|0,Z=Z+Math.imul(a,v0)|0,K=K+Math.imul(a,S0)|0;var $U=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+($U>>>26)|0,$U&=67108863,I=Math.imul(h,E0),Z=Math.imul(h,M0),Z=Z+Math.imul(o,E0)|0,K=Math.imul(o,M0),I=I+Math.imul(M,j0)|0,Z=Z+Math.imul(M,g0)|0,Z=Z+Math.imul(v,j0)|0,K=K+Math.imul(v,g0)|0,I=I+Math.imul(i,v0)|0,Z=Z+Math.imul(i,S0)|0,Z=Z+Math.imul(V0,v0)|0,K=K+Math.imul(V0,S0)|0;var KU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(KU>>>26)|0,KU&=67108863,I=Math.imul(h,j0),Z=Math.imul(h,g0),Z=Z+Math.imul(o,j0)|0,K=Math.imul(o,g0),I=I+Math.imul(M,v0)|0,Z=Z+Math.imul(M,S0)|0,Z=Z+Math.imul(v,v0)|0,K=K+Math.imul(v,S0)|0;var OU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(h,v0),Z=Math.imul(h,S0),Z=Z+Math.imul(o,v0)|0,K=Math.imul(o,S0);var WU=(H+I|0)+((Z&8191)<<13)|0;if(H=(K+(Z>>>13)|0)+(WU>>>26)|0,WU&=67108863,O[0]=e0,O[1]=h0,O[2]=p0,O[3]=m0,O[4]=n0,O[5]=i0,O[6]=UU,O[7]=ZU,O[8]=XU,O[9]=QU,O[10]=YU,O[11]=JU,O[12]=VU,O[13]=GU,O[14]=IU,O[15]=$U,O[16]=KU,O[17]=OU,O[18]=WU,H!==0)O[19]=H,J.length++;return J};if(!Math.imul)j=_;function N(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var X=0,Y=0;for(var O=0;O<J.length-1;O++){var H=Y;Y=0;var I=X&67108863,Z=Math.min(O,Q.length-1);for(var K=Math.max(0,O-U.length+1);K<=Z;K++){var S=O-K,T=U.words[S]|0,B=Q.words[K]|0,c=T*B,d=c&67108863;H=H+(c/67108864|0)|0,d=d+I|0,I=d&67108863,H=H+(d>>>26)|0,Y+=H>>>26,H&=67108863}J.words[O]=I,X=H,H=Y}if(X!==0)J.words[O]=X;else J.length--;return J.strip()}function x(U,Q,J){var X=new g;return X.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,X=this.length+U.length;if(this.length===10&&U.length===10)J=j(this,U,Q);else if(X<63)J=_(this,U,Q);else if(X<1024)J=N(this,U,Q);else J=x(this,U,Q);return J};function g(U,Q){this.x=U,this.y=Q}g.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var X=0;X<U;X++)Q[X]=this.revBin(X,J,U);return Q},g.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var X=0;for(var Y=0;Y<Q;Y++)X|=(U&1)<<Q-Y-1,U>>=1;return X},g.prototype.permute=function(U,Q,J,X,Y,O){for(var H=0;H<O;H++)X[H]=Q[U[H]],Y[H]=J[U[H]]},g.prototype.transform=function(U,Q,J,X,Y,O){this.permute(O,U,Q,J,X,Y);for(var H=1;H<Y;H<<=1){var I=H<<1,Z=Math.cos(2*Math.PI/I),K=Math.sin(2*Math.PI/I);for(var S=0;S<Y;S+=I){var T=Z,B=K;for(var c=0;c<H;c++){var d=J[S+c],r=X[S+c],z0=J[S+c+H],Z0=X[S+c+H],t=T*z0-B*Z0;if(Z0=T*Z0+B*z0,z0=t,J[S+c]=d+z0,X[S+c]=r+Z0,J[S+c+H]=d-z0,X[S+c+H]=r-Z0,c!==I)t=Z*T-K*B,B=Z*B+K*T,T=t}}}},g.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,X=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+X},g.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var X=0;X<J/2;X++){var Y=U[X];U[X]=U[J-X-1],U[J-X-1]=Y,Y=Q[X],Q[X]=-Q[J-X-1],Q[J-X-1]=-Y}},g.prototype.normalize13b=function(U,Q){var J=0;for(var X=0;X<Q/2;X++){var Y=Math.round(U[2*X+1]/Q)*8192+Math.round(U[2*X]/Q)+J;if(U[X]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},g.prototype.convert13b=function(U,Q,J,X){var Y=0;for(var O=0;O<Q;O++)Y=Y+(U[O]|0),J[2*O]=Y&8191,Y=Y>>>13,J[2*O+1]=Y&8191,Y=Y>>>13;for(O=2*Q;O<X;++O)J[O]=0;F(Y===0),F((Y&-8192)===0)},g.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},g.prototype.mulp=function(U,Q,J){var X=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(X),O=this.stub(X),H=Array(X),I=Array(X),Z=Array(X),K=Array(X),S=Array(X),T=Array(X),B=J.words;B.length=X,this.convert13b(U.words,U.length,H,X),this.convert13b(Q.words,Q.length,K,X),this.transform(H,O,I,Z,X,Y),this.transform(K,O,S,T,X,Y);for(var c=0;c<X;c++){var d=I[c]*S[c]-Z[c]*T[c];Z[c]=I[c]*T[c]+Z[c]*S[c],I[c]=d}return this.conjugate(I,Z,X),this.transform(I,Z,B,O,X,Y),this.conjugate(B,O,X),this.normalize13b(B,X),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),x(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){F(typeof U==="number"),F(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var X=(this.words[J]|0)*U,Y=(X&67108863)+(Q&67108863);Q>>=26,Q+=X/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=q(U);if(Q.length===0)return new V(1);var J=this;for(var X=0;X<Q.length;X++,J=J.sqr())if(Q[X]!==0)break;if(++X<Q.length)for(var Y=J.sqr();X<Q.length;X++,Y=Y.sqr()){if(Q[X]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var O=0;for(Y=0;Y<this.length;Y++){var H=this.words[Y]&X,I=(this.words[Y]|0)-H<<Q;this.words[Y]=I|O,O=H>>>26-Q}if(O)this.words[Y]=O,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return F(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){F(typeof U==="number"&&U>=0);var X;if(Q)X=(Q-Q%26)/26;else X=0;var Y=U%26,O=Math.min((U-Y)/26,this.length),H=67108863^67108863>>>Y<<Y,I=J;if(X-=O,X=Math.max(0,X),I){for(var Z=0;Z<O;Z++)I.words[Z]=this.words[Z];I.length=O}if(O===0);else if(this.length>O){this.length-=O;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+O]}else this.words[0]=0,this.length=1;var K=0;for(Z=this.length-1;Z>=0&&(K!==0||Z>=X);Z--){var S=this.words[Z]|0;this.words[Z]=K<<26-Y|S>>>Y,K=S&H}if(I&&K!==0)I.words[I.length++]=K;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return F(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&X)},V.prototype.imaskn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var X=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=X}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var X=U.length+J,Y;this._expand(X);var O,H=0;for(Y=0;Y<U.length;Y++){O=(this.words[Y+J]|0)+H;var I=(U.words[Y]|0)*Q;O-=I&67108863,H=(O>>26)-(I/67108864|0),this.words[Y+J]=O&67108863}for(;Y<this.length-J;Y++)O=(this.words[Y+J]|0)+H,H=O>>26,this.words[Y+J]=O&67108863;if(H===0)return this.strip();F(H===-1),H=0;for(Y=0;Y<this.length;Y++)O=-(this.words[Y]|0)+H,H=O>>26,this.words[Y]=O&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,X=this.clone(),Y=U,O=Y.words[Y.length-1]|0,H=this._countBits(O);if(J=26-H,J!==0)Y=Y.ushln(J),X.iushln(J),O=Y.words[Y.length-1]|0;var I=X.length-Y.length,Z;if(Q!=="mod"){Z=new V(null),Z.length=I+1,Z.words=Array(Z.length);for(var K=0;K<Z.length;K++)Z.words[K]=0}var S=X.clone()._ishlnsubmul(Y,1,I);if(S.negative===0){if(X=S,Z)Z.words[I]=1}for(var T=I-1;T>=0;T--){var B=(X.words[Y.length+T]|0)*67108864+(X.words[Y.length+T-1]|0);B=Math.min(B/O|0,67108863),X._ishlnsubmul(Y,B,T);while(X.negative!==0)if(B--,X.negative=0,X._ishlnsubmul(Y,1,T),!X.isZero())X.negative^=1;if(Z)Z.words[T]=B}if(Z)Z.strip();if(X.strip(),Q!=="div"&&J!==0)X.iushrn(J);return{div:Z||null,mod:X}},V.prototype.divmod=function(U,Q,J){if(F(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var X,Y,O;if(this.negative!==0&&U.negative===0){if(O=this.neg().divmod(U,Q),Q!=="mod")X=O.div.neg();if(Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:X,mod:Y}}if(this.negative===0&&U.negative!==0){if(O=this.divmod(U.neg(),Q),Q!=="mod")X=O.div.neg();return{div:X,mod:O.mod}}if((this.negative&U.negative)!==0){if(O=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:O.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,X=U.ushrn(1),Y=U.andln(1),O=J.cmp(X);if(O<0||Y===1&&O===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){F(U<=67108863);var Q=67108864%U,J=0;for(var X=this.length-1;X>=0;X--)J=(Q*J+(this.words[X]|0))%U;return J},V.prototype.idivn=function(U){F(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var X=(this.words[J]|0)+Q*67108864;this.words[J]=X/U|0,Q=X%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=new V(0),H=new V(1),I=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++I;var Z=J.clone(),K=Q.clone();while(!Q.isZero()){for(var S=0,T=1;(Q.words[0]&T)===0&&S<26;++S,T<<=1);if(S>0){Q.iushrn(S);while(S-- >0){if(X.isOdd()||Y.isOdd())X.iadd(Z),Y.isub(K);X.iushrn(1),Y.iushrn(1)}}for(var B=0,c=1;(J.words[0]&c)===0&&B<26;++B,c<<=1);if(B>0){J.iushrn(B);while(B-- >0){if(O.isOdd()||H.isOdd())O.iadd(Z),H.isub(K);O.iushrn(1),H.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(O),Y.isub(H);else J.isub(Q),O.isub(X),H.isub(Y)}return{a:O,b:H,gcd:J.iushln(I)}},V.prototype._invmp=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var H=0,I=1;(Q.words[0]&I)===0&&H<26;++H,I<<=1);if(H>0){Q.iushrn(H);while(H-- >0){if(X.isOdd())X.iadd(O);X.iushrn(1)}}for(var Z=0,K=1;(J.words[0]&K)===0&&Z<26;++Z,K<<=1);if(Z>0){J.iushrn(Z);while(Z-- >0){if(Y.isOdd())Y.iadd(O);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(Y);else J.isub(Q),Y.isub(X)}var S;if(Q.cmpn(1)===0)S=X;else S=Y;if(S.cmpn(0)<0)S.iadd(U);return S},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var X=0;Q.isEven()&&J.isEven();X++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var O=Q;Q=J,J=O}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(X)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){F(typeof U==="number");var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=X,this;var Y=X;for(var O=J;Y!==0&&O<this.length;O++){var H=this.words[O]|0;H+=Y,Y=H>>>26,H&=67108863,this.words[O]=H}if(Y!==0)this.words[O]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;F(U<=67108863,"Number is too big");var X=this.words[0]|0;J=X===U?0:X<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var X=this.words[J]|0,Y=U.words[J]|0;if(X===Y)continue;if(X<Y)Q=-1;else if(X>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new n(U)},V.prototype.toRed=function(U){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return F(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return F(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var f={k256:null,p224:null,p192:null,p25519:null};function p(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},p.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var X=J<this.n?-1:Q.ucmp(this.p);if(X===0)Q.words[0]=0,Q.length=1;else if(X>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},p.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},p.prototype.imulK=function(U){return U.imul(this.k)};function s(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(s,p),s.prototype.split=function(U,Q){var J=4194303,X=Math.min(U.length,9);for(var Y=0;Y<X;Y++)Q.words[Y]=U.words[Y];if(Q.length=X,U.length<=9){U.words[0]=0,U.length=1;return}var O=U.words[9];Q.words[Q.length++]=O&J;for(Y=10;Y<U.length;Y++){var H=U.words[Y]|0;U.words[Y-10]=(H&J)<<4|O>>>22,O=H}if(O>>>=22,U.words[Y-10]=O,O===0&&U.length>10)U.length-=10;else U.length-=9},s.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var X=U.words[J]|0;Q+=X*977,U.words[J]=Q&67108863,Q=X*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function O0(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(O0,p);function C0(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(C0,p);function W0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(W0,p),W0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var X=(U.words[J]|0)*19+Q,Y=X&67108863;X>>>=26,U.words[J]=Y,Q=X}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(f[U])return f[U];var Q;if(U==="k256")Q=new s;else if(U==="p224")Q=new O0;else if(U==="p192")Q=new C0;else if(U==="p25519")Q=new W0;else throw Error("Unknown prime "+U);return f[U]=Q,Q};function n(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else F(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}n.prototype._verify1=function(U){F(U.negative===0,"red works only with positives"),F(U.red,"red works only with red numbers")},n.prototype._verify2=function(U,Q){F((U.negative|Q.negative)===0,"red works only with positives"),F(U.red&&U.red===Q.red,"red works only with red numbers")},n.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},n.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},n.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},n.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},n.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},n.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},n.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},n.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},n.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},n.prototype.isqr=function(U){return this.imul(U,U.clone())},n.prototype.sqr=function(U){return this.mul(U,U)},n.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var X=this.m.subn(1),Y=0;while(!X.isZero()&&X.andln(1)===0)Y++,X.iushrn(1);F(!X.isZero());var O=new V(1).toRed(this),H=O.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(H)!==0)Z.redIAdd(H);var K=this.pow(Z,X),S=this.pow(U,X.addn(1).iushrn(1)),T=this.pow(U,X),B=Y;while(T.cmp(O)!==0){var c=T;for(var d=0;c.cmp(O)!==0;d++)c=c.redSqr();F(d<B);var r=this.pow(K,new V(1).iushln(B-d-1));S=S.redMul(r),K=r.redSqr(),T=T.redMul(K),B=d}return S},n.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},n.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,X=Array(1<<J);X[0]=new V(1).toRed(this),X[1]=U;for(var Y=2;Y<X.length;Y++)X[Y]=this.mul(X[Y-1],U);var O=X[0],H=0,I=0,Z=Q.bitLength()%26;if(Z===0)Z=26;for(Y=Q.length-1;Y>=0;Y--){var K=Q.words[Y];for(var S=Z-1;S>=0;S--){var T=K>>S&1;if(O!==X[0])O=this.sqr(O);if(T===0&&H===0){I=0;continue}if(H<<=1,H|=T,I++,I!==J&&(Y!==0||S!==0))continue;O=this.mul(O,X[H]),I=0,H=0}Z=26}return O},n.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},n.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new I0(U)};function I0(U){if(n.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}R(I0,n),I0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},I0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},I0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof $>"u"||$,G)}),LG=A0((G)=>{var $=$Z(),W=qU(),C=G;C.define=function(R,V){return new F(R,V)};function F(R,V){this.name=R,this.body=V,this.decoders={},this.encoders={}}F.prototype._createNamed=function(R){var V;try{V=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
|
|
12
|
-
this._initNamed(entity);
|
|
13
|
-
})`)}catch(z){V=function(k){this._initNamed(k)}}return W(V,R),V.prototype._initNamed=function(z){R.call(this,z)},new V(this)},F.prototype._getDecoder=function(R){if(R=R||"der",!this.decoders.hasOwnProperty(R))this.decoders[R]=this._createNamed($.decoders[R]);return this.decoders[R]},F.prototype.decode=function(R,V,z){return this._getDecoder(V).decode(R,z)},F.prototype._getEncoder=function(R){if(R=R||"der",!this.encoders.hasOwnProperty(R))this.encoders[R]=this._createNamed($.encoders[R]);return this.encoders[R]},F.prototype.encode=function(R,V,z){return this._getEncoder(V).encode(R,z)}}),EG=A0((G)=>{var $=qU();function W(F){this._reporterState={obj:null,path:[],options:F||{},errors:[]}}G.Reporter=W,W.prototype.isError=function(F){return F instanceof C},W.prototype.save=function(){var F=this._reporterState;return{obj:F.obj,pathLen:F.path.length}},W.prototype.restore=function(F){var R=this._reporterState;R.obj=F.obj,R.path=R.path.slice(0,F.pathLen)},W.prototype.enterKey=function(F){return this._reporterState.path.push(F)},W.prototype.exitKey=function(F){var R=this._reporterState;R.path=R.path.slice(0,F-1)},W.prototype.leaveKey=function(F,R,V){var z=this._reporterState;if(this.exitKey(F),z.obj!==null)z.obj[R]=V},W.prototype.path=function(){return this._reporterState.path.join("/")},W.prototype.enterObject=function(){var F=this._reporterState,R=F.obj;return F.obj={},R},W.prototype.leaveObject=function(F){var R=this._reporterState,V=R.obj;return R.obj=F,V},W.prototype.error=function(F){var R,V=this._reporterState,z=F instanceof C;if(z)R=F;else R=new C(V.path.map(function(k){return"["+JSON.stringify(k)+"]"}).join(""),F.message||F,F.stack);if(!V.options.partial)throw R;if(!z)V.errors.push(R);return R},W.prototype.wrapResult=function(F){var R=this._reporterState;if(!R.options.partial)return F;return{result:this.isError(F)?null:F,errors:R.errors}};function C(F,R){this.path=F,this.rethrow(R)}$(C,Error),C.prototype.rethrow=function(F){if(this.message=F+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,C);if(!this.stack)try{throw Error(this.message)}catch(R){this.stack=R.stack}return this}}),yQ=A0((G)=>{var $=qU(),W=YZ().Reporter,C=(TU(),l0(CU)).Buffer;function F(V,z){if(W.call(this,z),!C.isBuffer(V)){this.error("Input not Buffer");return}this.base=V,this.offset=0,this.length=V.length}$(F,W),G.DecoderBuffer=F,F.prototype.save=function(){return{offset:this.offset,reporter:W.prototype.save.call(this)}},F.prototype.restore=function(V){var z=new F(this.base);return z.offset=V.offset,z.length=this.offset,this.offset=V.offset,W.prototype.restore.call(this,V.reporter),z},F.prototype.isEmpty=function(){return this.offset===this.length},F.prototype.readUInt8=function(V){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(V||"DecoderBuffer overrun")},F.prototype.skip=function(V,z){if(!(this.offset+V<=this.length))return this.error(z||"DecoderBuffer overrun");var k=new F(this.base);return k._reporterState=this._reporterState,k.offset=this.offset,k.length=this.offset+V,this.offset+=V,k},F.prototype.raw=function(V){return this.base.slice(V?V.offset:this.offset,this.length)};function R(V,z){if(Array.isArray(V))this.length=0,this.value=V.map(function(k){if(!(k instanceof R))k=new R(k,z);return this.length+=k.length,k},this);else if(typeof V==="number"){if(!(0<=V&&V<=255))return z.error("non-byte EncoderBuffer value");this.value=V,this.length=1}else if(typeof V==="string")this.value=V,this.length=C.byteLength(V);else if(C.isBuffer(V))this.value=V,this.length=V.length;else return z.error("Unsupported type: "+typeof V)}G.EncoderBuffer=R,R.prototype.join=function(V,z){if(!V)V=new C(this.length);if(!z)z=0;if(this.length===0)return V;if(Array.isArray(this.value))this.value.forEach(function(k){k.join(V,z),z+=k.length});else{if(typeof this.value==="number")V[z]=this.value;else if(typeof this.value==="string")V.write(this.value,z);else if(C.isBuffer(this.value))this.value.copy(V,z);z+=this.length}return V}}),MG=A0((G,$)=>{var W=YZ().Reporter,C=YZ().EncoderBuffer,F=YZ().DecoderBuffer,R=pU(),V=["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"],z=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(V),k=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function L(A,D){var P={};if(this._baseState=P,P.enc=A,P.parent=D||null,P.children=null,P.tag=null,P.args=null,P.reverseArgs=null,P.choice=null,P.optional=!1,P.any=!1,P.obj=!1,P.use=null,P.useDecoder=null,P.key=null,P.default=null,P.explicit=null,P.implicit=null,P.contains=null,!P.parent)P.children=[],this._wrap()}$.exports=L;var E=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];L.prototype.clone=function(){var A=this._baseState,D={};E.forEach(function(q){D[q]=A[q]});var P=new this.constructor(D.parent);return P._baseState=D,P},L.prototype._wrap=function(){var A=this._baseState;z.forEach(function(D){this[D]=function(){var P=new this.constructor(this);return A.children.push(P),P[D].apply(P,arguments)}},this)},L.prototype._init=function(A){var D=this._baseState;R(D.parent===null),A.call(this),D.children=D.children.filter(function(P){return P._baseState.parent===this},this),R.equal(D.children.length,1,"Root node can have only one child")},L.prototype._useArgs=function(A){var D=this._baseState,P=A.filter(function(q){return q instanceof this.constructor},this);if(A=A.filter(function(q){return!(q instanceof this.constructor)},this),P.length!==0)R(D.children===null),D.children=P,P.forEach(function(q){q._baseState.parent=this},this);if(A.length!==0)R(D.args===null),D.args=A,D.reverseArgs=A.map(function(q){if(typeof q!=="object"||q.constructor!==Object)return q;var _={};return Object.keys(q).forEach(function(j){if(j==(j|0))j|=0;var N=q[j];_[N]=j}),_})},k.forEach(function(A){L.prototype[A]=function(){var D=this._baseState;throw Error(A+" not implemented for encoding: "+D.enc)}}),V.forEach(function(A){L.prototype[A]=function(){var D=this._baseState,P=Array.prototype.slice.call(arguments);return R(D.tag===null),D.tag=A,this._useArgs(P),this}}),L.prototype.use=function(A){R(A);var D=this._baseState;return R(D.use===null),D.use=A,this},L.prototype.optional=function(){var A=this._baseState;return A.optional=!0,this},L.prototype.def=function(A){var D=this._baseState;return R(D.default===null),D.default=A,D.optional=!0,this},L.prototype.explicit=function(A){var D=this._baseState;return R(D.explicit===null&&D.implicit===null),D.explicit=A,this},L.prototype.implicit=function(A){var D=this._baseState;return R(D.explicit===null&&D.implicit===null),D.implicit=A,this},L.prototype.obj=function(){var A=this._baseState,D=Array.prototype.slice.call(arguments);if(A.obj=!0,D.length!==0)this._useArgs(D);return this},L.prototype.key=function(A){var D=this._baseState;return R(D.key===null),D.key=A,this},L.prototype.any=function(){var A=this._baseState;return A.any=!0,this},L.prototype.choice=function(A){var D=this._baseState;return R(D.choice===null),D.choice=A,this._useArgs(Object.keys(A).map(function(P){return A[P]})),this},L.prototype.contains=function(A){var D=this._baseState;return R(D.use===null),D.contains=A,this},L.prototype._decode=function(A,D){var P=this._baseState;if(P.parent===null)return A.wrapResult(P.children[0]._decode(A,D));var q=P.default,_=!0,j=null;if(P.key!==null)j=A.enterKey(P.key);if(P.optional){var N=null;if(P.explicit!==null)N=P.explicit;else if(P.implicit!==null)N=P.implicit;else if(P.tag!==null)N=P.tag;if(N===null&&!P.any){var x=A.save();try{if(P.choice===null)this._decodeGeneric(P.tag,A,D);else this._decodeChoice(A,D);_=!0}catch(C0){_=!1}A.restore(x)}else if(_=this._peekTag(A,N,P.any),A.isError(_))return _}var g;if(P.obj&&_)g=A.enterObject();if(_){if(P.explicit!==null){var f=this._decodeTag(A,P.explicit);if(A.isError(f))return f;A=f}var p=A.offset;if(P.use===null&&P.choice===null){if(P.any)var x=A.save();var s=this._decodeTag(A,P.implicit!==null?P.implicit:P.tag,P.any);if(A.isError(s))return s;if(P.any)q=A.raw(x);else A=s}if(D&&D.track&&P.tag!==null)D.track(A.path(),p,A.length,"tagged");if(D&&D.track&&P.tag!==null)D.track(A.path(),A.offset,A.length,"content");if(P.any)q=q;else if(P.choice===null)q=this._decodeGeneric(P.tag,A,D);else q=this._decodeChoice(A,D);if(A.isError(q))return q;if(!P.any&&P.choice===null&&P.children!==null)P.children.forEach(function(C0){C0._decode(A,D)});if(P.contains&&(P.tag==="octstr"||P.tag==="bitstr")){var O0=new F(q);q=this._getUse(P.contains,A._reporterState.obj)._decode(O0,D)}}if(P.obj&&_)q=A.leaveObject(g);if(P.key!==null&&(q!==null||_===!0))A.leaveKey(j,P.key,q);else if(j!==null)A.exitKey(j);return q},L.prototype._decodeGeneric=function(A,D,P){var q=this._baseState;if(A==="seq"||A==="set")return null;if(A==="seqof"||A==="setof")return this._decodeList(D,A,q.args[0],P);else if(/str$/.test(A))return this._decodeStr(D,A,P);else if(A==="objid"&&q.args)return this._decodeObjid(D,q.args[0],q.args[1],P);else if(A==="objid")return this._decodeObjid(D,null,null,P);else if(A==="gentime"||A==="utctime")return this._decodeTime(D,A,P);else if(A==="null_")return this._decodeNull(D,P);else if(A==="bool")return this._decodeBool(D,P);else if(A==="objDesc")return this._decodeStr(D,A,P);else if(A==="int"||A==="enum")return this._decodeInt(D,q.args&&q.args[0],P);if(q.use!==null)return this._getUse(q.use,D._reporterState.obj)._decode(D,P);else return D.error("unknown tag: "+A)},L.prototype._getUse=function(A,D){var P=this._baseState;if(P.useDecoder=this._use(A,D),R(P.useDecoder._baseState.parent===null),P.useDecoder=P.useDecoder._baseState.children[0],P.implicit!==P.useDecoder._baseState.implicit)P.useDecoder=P.useDecoder.clone(),P.useDecoder._baseState.implicit=P.implicit;return P.useDecoder},L.prototype._decodeChoice=function(A,D){var P=this._baseState,q=null,_=!1;if(Object.keys(P.choice).some(function(j){var N=A.save(),x=P.choice[j];try{var g=x._decode(A,D);if(A.isError(g))return!1;q={type:j,value:g},_=!0}catch(f){return A.restore(N),!1}return!0},this),!_)return A.error("Choice not matched");return q},L.prototype._createEncoderBuffer=function(A){return new C(A,this.reporter)},L.prototype._encode=function(A,D,P){var q=this._baseState;if(q.default!==null&&q.default===A)return;var _=this._encodeValue(A,D,P);if(_===void 0)return;if(this._skipDefault(_,D,P))return;return _},L.prototype._encodeValue=function(A,D,P){var q=this._baseState;if(q.parent===null)return q.children[0]._encode(A,D||new W);var x=null;if(this.reporter=D,q.optional&&A===void 0)if(q.default!==null)A=q.default;else return;var _=null,j=!1;if(q.any)x=this._createEncoderBuffer(A);else if(q.choice)x=this._encodeChoice(A,D);else if(q.contains)_=this._getUse(q.contains,P)._encode(A,D),j=!0;else if(q.children)_=q.children.map(function(p){if(p._baseState.tag==="null_")return p._encode(null,D,A);if(p._baseState.key===null)return D.error("Child should have a key");var s=D.enterKey(p._baseState.key);if(typeof A!=="object")return D.error("Child expected, but input is not object");var O0=p._encode(A[p._baseState.key],D,A);return D.leaveKey(s),O0},this).filter(function(p){return p}),_=this._createEncoderBuffer(_);else if(q.tag==="seqof"||q.tag==="setof"){if(!(q.args&&q.args.length===1))return D.error("Too many args for : "+q.tag);if(!Array.isArray(A))return D.error("seqof/setof, but data is not Array");var N=this.clone();N._baseState.implicit=null,_=this._createEncoderBuffer(A.map(function(p){var s=this._baseState;return this._getUse(s.args[0],A)._encode(p,D)},N))}else if(q.use!==null)x=this._getUse(q.use,P)._encode(A,D);else _=this._encodePrimitive(q.tag,A),j=!0;var x;if(!q.any&&q.choice===null){var g=q.implicit!==null?q.implicit:q.tag,f=q.implicit===null?"universal":"context";if(g===null){if(q.use===null)D.error("Tag could be omitted only for .use()")}else if(q.use===null)x=this._encodeComposite(g,j,f,_)}if(q.explicit!==null)x=this._encodeComposite(q.explicit,!1,"context",x);return x},L.prototype._encodeChoice=function(A,D){var P=this._baseState,q=P.choice[A.type];if(!q)R(!1,A.type+" not found in "+JSON.stringify(Object.keys(P.choice)));return q._encode(A.value,D)},L.prototype._encodePrimitive=function(A,D){var P=this._baseState;if(/str$/.test(A))return this._encodeStr(D,A);else if(A==="objid"&&P.args)return this._encodeObjid(D,P.reverseArgs[0],P.args[1]);else if(A==="objid")return this._encodeObjid(D,null,null);else if(A==="gentime"||A==="utctime")return this._encodeTime(D,A);else if(A==="null_")return this._encodeNull();else if(A==="int"||A==="enum")return this._encodeInt(D,P.args&&P.reverseArgs[0]);else if(A==="bool")return this._encodeBool(D);else if(A==="objDesc")return this._encodeStr(D,A);else throw Error("Unsupported tag: "+A)},L.prototype._isNumstr=function(A){return/^[0-9 ]*$/.test(A)},L.prototype._isPrintstr=function(A){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(A)}}),YZ=A0((G)=>{var $=G;$.Reporter=EG().Reporter,$.DecoderBuffer=yQ().DecoderBuffer,$.EncoderBuffer=yQ().EncoderBuffer,$.Node=MG()}),RG=A0((G)=>{var $=ZY();G.tagClass={0:"universal",1:"application",2:"context",3:"private"},G.tagClassByName=$._reverse(G.tagClass),G.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"},G.tagByName=$._reverse(G.tag)}),ZY=A0((G)=>{var $=G;$._reverse=function(W){var C={};return Object.keys(W).forEach(function(F){if((F|0)==F)F=F|0;var R=W[F];C[R]=F}),C},$.der=RG()}),XY=A0((G,$)=>{var W=qU(),C=$Z(),F=C.base,R=C.bignum,V=C.constants.der;function z(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new k,this.tree._init(A.body)}$.exports=z,z.prototype.decode=function(A,D){if(!(A instanceof F.DecoderBuffer))A=new F.DecoderBuffer(A,D);return this.tree._decode(A,D)};function k(A){F.Node.call(this,"der",A)}W(k,F.Node),k.prototype._peekTag=function(A,D,P){if(A.isEmpty())return!1;var q=A.save(),_=L(A,'Failed to peek tag: "'+D+'"');if(A.isError(_))return _;return A.restore(q),_.tag===D||_.tagStr===D||_.tagStr+"of"===D||P},k.prototype._decodeTag=function(A,D,P){var q=L(A,'Failed to decode tag of "'+D+'"');if(A.isError(q))return q;var _=E(A,q.primitive,'Failed to get length of "'+D+'"');if(A.isError(_))return _;if(!P&&q.tag!==D&&q.tagStr!==D&&q.tagStr+"of"!==D)return A.error('Failed to match tag: "'+D+'"');if(q.primitive||_!==null)return A.skip(_,'Failed to match body of: "'+D+'"');var j=A.save(),N=this._skipUntilEnd(A,'Failed to skip indefinite length body: "'+this.tag+'"');if(A.isError(N))return N;return _=A.offset-j.offset,A.restore(j),A.skip(_,'Failed to match body of: "'+D+'"')},k.prototype._skipUntilEnd=function(A,D){while(!0){var P=L(A,D);if(A.isError(P))return P;var q=E(A,P.primitive,D);if(A.isError(q))return q;var _;if(P.primitive||q!==null)_=A.skip(q);else _=this._skipUntilEnd(A,D);if(A.isError(_))return _;if(P.tagStr==="end")break}},k.prototype._decodeList=function(A,D,P,q){var _=[];while(!A.isEmpty()){var j=this._peekTag(A,"end");if(A.isError(j))return j;var N=P.decode(A,"der",q);if(A.isError(N)&&j)break;_.push(N)}return _},k.prototype._decodeStr=function(A,D){if(D==="bitstr"){var P=A.readUInt8();if(A.isError(P))return P;return{unused:P,data:A.raw()}}else if(D==="bmpstr"){var q=A.raw();if(q.length%2===1)return A.error("Decoding of string type: bmpstr length mismatch");var _="";for(var j=0;j<q.length/2;j++)_+=String.fromCharCode(q.readUInt16BE(j*2));return _}else if(D==="numstr"){var N=A.raw().toString("ascii");if(!this._isNumstr(N))return A.error("Decoding of string type: numstr unsupported characters");return N}else if(D==="octstr")return A.raw();else if(D==="objDesc")return A.raw();else if(D==="printstr"){var x=A.raw().toString("ascii");if(!this._isPrintstr(x))return A.error("Decoding of string type: printstr unsupported characters");return x}else if(/str$/.test(D))return A.raw().toString();else return A.error("Decoding of string type: "+D+" unsupported")},k.prototype._decodeObjid=function(A,D,P){var q,_=[],j=0;while(!A.isEmpty()){var N=A.readUInt8();if(j<<=7,j|=N&127,(N&128)===0)_.push(j),j=0}if(N&128)_.push(j);var x=_[0]/40|0,g=_[0]%40;if(P)q=_;else q=[x,g].concat(_.slice(1));if(D){var f=D[q.join(" ")];if(f===void 0)f=D[q.join(".")];if(f!==void 0)q=f}return q},k.prototype._decodeTime=function(A,D){var P=A.raw().toString();if(D==="gentime")var q=P.slice(0,4)|0,_=P.slice(4,6)|0,j=P.slice(6,8)|0,N=P.slice(8,10)|0,x=P.slice(10,12)|0,g=P.slice(12,14)|0;else if(D==="utctime"){var q=P.slice(0,2)|0,_=P.slice(2,4)|0,j=P.slice(4,6)|0,N=P.slice(6,8)|0,x=P.slice(8,10)|0,g=P.slice(10,12)|0;if(q<70)q=2000+q;else q=1900+q}else return A.error("Decoding "+D+" time is not supported yet");return Date.UTC(q,_-1,j,N,x,g,0)},k.prototype._decodeNull=function(A){return null},k.prototype._decodeBool=function(A){var D=A.readUInt8();if(A.isError(D))return D;else return D!==0},k.prototype._decodeInt=function(A,D){var P=A.raw(),q=new R(P);if(D)q=D[q.toString(10)]||q;return q},k.prototype._use=function(A,D){if(typeof A==="function")A=A(D);return A._getDecoder("der").tree};function L(A,D){var P=A.readUInt8(D);if(A.isError(P))return P;var q=V.tagClass[P>>6],_=(P&32)===0;if((P&31)===31){var j=P;P=0;while((j&128)===128){if(j=A.readUInt8(D),A.isError(j))return j;P<<=7,P|=j&127}}else P&=31;var N=V.tag[P];return{cls:q,primitive:_,tag:P,tagStr:N}}function E(A,D,P){var q=A.readUInt8(P);if(A.isError(q))return q;if(!D&&q===128)return null;if((q&128)===0)return q;var _=q&127;if(_>4)return A.error("length octect is too long");q=0;for(var j=0;j<_;j++){q<<=8;var N=A.readUInt8(P);if(A.isError(N))return N;q|=N}return q}}),SG=A0((G,$)=>{var W=qU(),C=(TU(),l0(CU)).Buffer,F=XY();function R(V){F.call(this,V),this.enc="pem"}W(R,F),$.exports=R,R.prototype.decode=function(V,z){var k=V.toString().split(/[\r\n]+/g),L=z.label.toUpperCase(),E=/^-----(BEGIN|END) ([^-]+)-----$/,A=-1,D=-1;for(var P=0;P<k.length;P++){var q=k[P].match(E);if(q===null)continue;if(q[2]!==L)continue;if(A===-1){if(q[1]!=="BEGIN")break;A=P}else{if(q[1]!=="END")break;D=P;break}}if(A===-1||D===-1)throw Error("PEM section not found for: "+L);var _=k.slice(A+1,D).join("");_.replace(/[^a-z0-9\+\/=]+/gi,"");var j=new C(_,"base64");return F.prototype.decode.call(this,j,z)}}),qG=A0((G)=>{var $=G;$.der=XY(),$.pem=SG()}),QY=A0((G,$)=>{var W=qU(),C=(TU(),l0(CU)).Buffer,F=$Z(),R=F.base,V=F.constants.der;function z(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new k,this.tree._init(A.body)}$.exports=z,z.prototype.encode=function(A,D){return this.tree._encode(A,D).join()};function k(A){R.Node.call(this,"der",A)}W(k,R.Node),k.prototype._encodeComposite=function(A,D,P,q){var _=E(A,D,P,this.reporter);if(q.length<128){var x=new C(2);return x[0]=_,x[1]=q.length,this._createEncoderBuffer([x,q])}var j=1;for(var N=q.length;N>=256;N>>=8)j++;var x=new C(2+j);x[0]=_,x[1]=128|j;for(var N=1+j,g=q.length;g>0;N--,g>>=8)x[N]=g&255;return this._createEncoderBuffer([x,q])},k.prototype._encodeStr=function(A,D){if(D==="bitstr")return this._createEncoderBuffer([A.unused|0,A.data]);else if(D==="bmpstr"){var P=new C(A.length*2);for(var q=0;q<A.length;q++)P.writeUInt16BE(A.charCodeAt(q),q*2);return this._createEncoderBuffer(P)}else if(D==="numstr"){if(!this._isNumstr(A))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(A)}else if(D==="printstr"){if(!this._isPrintstr(A))return 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");return this._createEncoderBuffer(A)}else if(/str$/.test(D))return this._createEncoderBuffer(A);else if(D==="objDesc")return this._createEncoderBuffer(A);else return this.reporter.error("Encoding of string type: "+D+" unsupported")},k.prototype._encodeObjid=function(A,D,P){if(typeof A==="string"){if(!D)return this.reporter.error("string objid given, but no values map found");if(!D.hasOwnProperty(A))return this.reporter.error("objid not found in values map");A=D[A].split(/[\s\.]+/g);for(var q=0;q<A.length;q++)A[q]|=0}else if(Array.isArray(A)){A=A.slice();for(var q=0;q<A.length;q++)A[q]|=0}if(!Array.isArray(A))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(A));if(!P){if(A[1]>=40)return this.reporter.error("Second objid identifier OOB");A.splice(0,2,A[0]*40+A[1])}var _=0;for(var q=0;q<A.length;q++){var j=A[q];for(_++;j>=128;j>>=7)_++}var N=new C(_),x=N.length-1;for(var q=A.length-1;q>=0;q--){var j=A[q];N[x--]=j&127;while((j>>=7)>0)N[x--]=128|j&127}return this._createEncoderBuffer(N)};function L(A){if(A<10)return"0"+A;else return A}k.prototype._encodeTime=function(A,D){var P,q=new Date(A);if(D==="gentime")P=[L(q.getFullYear()),L(q.getUTCMonth()+1),L(q.getUTCDate()),L(q.getUTCHours()),L(q.getUTCMinutes()),L(q.getUTCSeconds()),"Z"].join("");else if(D==="utctime")P=[L(q.getFullYear()%100),L(q.getUTCMonth()+1),L(q.getUTCDate()),L(q.getUTCHours()),L(q.getUTCMinutes()),L(q.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+D+" time is not supported yet");return this._encodeStr(P,"octstr")},k.prototype._encodeNull=function(){return this._createEncoderBuffer("")},k.prototype._encodeInt=function(A,D){if(typeof A==="string"){if(!D)return this.reporter.error("String int or enum given, but no values map");if(!D.hasOwnProperty(A))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(A));A=D[A]}if(typeof A!=="number"&&!C.isBuffer(A)){var P=A.toArray();if(!A.sign&&P[0]&128)P.unshift(0);A=new C(P)}if(C.isBuffer(A)){var q=A.length;if(A.length===0)q++;var j=new C(q);if(A.copy(j),A.length===0)j[0]=0;return this._createEncoderBuffer(j)}if(A<128)return this._createEncoderBuffer(A);if(A<256)return this._createEncoderBuffer([0,A]);var q=1;for(var _=A;_>=256;_>>=8)q++;var j=Array(q);for(var _=j.length-1;_>=0;_--)j[_]=A&255,A>>=8;if(j[0]&128)j.unshift(0);return this._createEncoderBuffer(new C(j))},k.prototype._encodeBool=function(A){return this._createEncoderBuffer(A?255:0)},k.prototype._use=function(A,D){if(typeof A==="function")A=A(D);return A._getEncoder("der").tree},k.prototype._skipDefault=function(A,D,P){var q=this._baseState,_;if(q.default===null)return!1;var j=A.join();if(q.defaultBuffer===void 0)q.defaultBuffer=this._encodeValue(q.default,D,P).join();if(j.length!==q.defaultBuffer.length)return!1;for(_=0;_<j.length;_++)if(j[_]!==q.defaultBuffer[_])return!1;return!0};function E(A,D,P,q){var _;if(A==="seqof")A="seq";else if(A==="setof")A="set";if(V.tagByName.hasOwnProperty(A))_=V.tagByName[A];else if(typeof A==="number"&&(A|0)===A)_=A;else return q.error("Unknown tag: "+A);if(_>=31)return q.error("Multi-octet tag encoding unsupported");if(!D)_|=32;return _|=V.tagClassByName[P||"universal"]<<6,_}}),PG=A0((G,$)=>{var W=qU(),C=QY();function F(R){C.call(this,R),this.enc="pem"}W(F,C),$.exports=F,F.prototype.encode=function(R,V){var z=C.prototype.encode.call(this,R),k=z.toString("base64"),L=["-----BEGIN "+V.label+"-----"];for(var E=0;E<k.length;E+=64)L.push(k.slice(E,E+64));return L.push("-----END "+V.label+"-----"),L.join(`
|
|
14
|
-
`)}}),kG=A0((G)=>{var $=G;$.der=QY(),$.pem=PG()}),$Z=A0((G)=>{var $=G;$.bignum=zG(),$.define=LG().define,$.base=YZ(),$.constants=ZY(),$.decoders=qG(),$.encoders=kG()}),jG=A0((G,$)=>{var W=$Z(),C=W.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),F=W.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),R=W.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),V=W.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(R),this.key("subjectPublicKey").bitstr())}),z=W.define("RelativeDistinguishedName",function(){this.setof(F)}),k=W.define("RDNSequence",function(){this.seqof(z)}),L=W.define("Name",function(){this.choice({rdnSequence:this.use(k)})}),E=W.define("Validity",function(){this.seq().obj(this.key("notBefore").use(C),this.key("notAfter").use(C))}),A=W.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),D=W.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(R),this.key("issuer").use(L),this.key("validity").use(E),this.key("subject").use(L),this.key("subjectPublicKeyInfo").use(V),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(A).optional())}),P=W.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(D),this.key("signatureAlgorithm").use(R),this.key("signatureValue").bitstr())});$.exports=P}),vG=A0((G)=>{var $=$Z();G.certificate=jG();var W=$.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())});G.RSAPrivateKey=W;var C=$.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});G.RSAPublicKey=C;var F=$.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())}),R=$.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(F),this.key("subjectPublicKey").bitstr())});G.PublicKey=R;var V=$.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(F),this.key("subjectPrivateKey").octstr())});G.PrivateKey=V;var z=$.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())});G.EncryptedPrivateKey=z;var k=$.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())});G.DSAPrivateKey=k,G.DSAparam=$.define("DSAparam",function(){this.int()});var L=$.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),E=$.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});G.ECPrivateKey=E,G.signature=$.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),_G=A0((G,$)=>{$.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"}}),BG=A0((G,$)=>{var W=EU().Buffer,C=IX().Transform,F=qU();function R(L){C.call(this),this._block=W.allocUnsafe(L),this._blockSize=L,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}F(R,C),R.prototype._transform=function(L,E,A){var D=null;try{this.update(L,E)}catch(P){D=P}A(D)},R.prototype._flush=function(L){var E=null;try{this.push(this.digest())}catch(A){E=A}L(E)};var V=typeof Uint8Array<"u",z=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(W.prototype instanceof Uint8Array||W.TYPED_ARRAY_SUPPORT);function k(L,E){if(L instanceof W)return L;if(typeof L==="string")return W.from(L,E);if(z&&ArrayBuffer.isView(L)){if(L.byteLength===0)return W.alloc(0);var A=W.from(L.buffer,L.byteOffset,L.byteLength);if(A.byteLength===L.byteLength)return A}if(V&&L instanceof Uint8Array)return W.from(L);if(W.isBuffer(L)&&L.constructor&&typeof L.constructor.isBuffer==="function"&&L.constructor.isBuffer(L))return W.from(L);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}R.prototype.update=function(L,E){if(this._finalized)throw Error("Digest already called");L=k(L,E);var A=this._block,D=0;while(this._blockOffset+L.length-D>=this._blockSize){for(var P=this._blockOffset;P<this._blockSize;)A[P++]=L[D++];this._update(),this._blockOffset=0}while(D<L.length)A[this._blockOffset++]=L[D++];for(var q=0,_=L.length*8;_>0;++q)if(this._length[q]+=_,_=this._length[q]/4294967296|0,_>0)this._length[q]-=4294967296*_;return this},R.prototype._update=function(){throw Error("_update is not implemented")},R.prototype.digest=function(L){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var E=this._digest();if(L!==void 0)E=E.toString(L);this._block.fill(0),this._blockOffset=0;for(var A=0;A<4;++A)this._length[A]=0;return E},R.prototype._digest=function(){throw Error("_digest is not implemented")},$.exports=R}),xG=A0((G,$)=>{var W=qU(),C=BG(),F=EU().Buffer,R=Array(16);function V(){C.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}W(V,C),V.prototype._update=function(){var D=R;for(var P=0;P<16;++P)D[P]=this._block.readInt32LE(P*4);var q=this._a,_=this._b,j=this._c,N=this._d;q=k(q,_,j,N,D[0],3614090360,7),N=k(N,q,_,j,D[1],3905402710,12),j=k(j,N,q,_,D[2],606105819,17),_=k(_,j,N,q,D[3],3250441966,22),q=k(q,_,j,N,D[4],4118548399,7),N=k(N,q,_,j,D[5],1200080426,12),j=k(j,N,q,_,D[6],2821735955,17),_=k(_,j,N,q,D[7],4249261313,22),q=k(q,_,j,N,D[8],1770035416,7),N=k(N,q,_,j,D[9],2336552879,12),j=k(j,N,q,_,D[10],4294925233,17),_=k(_,j,N,q,D[11],2304563134,22),q=k(q,_,j,N,D[12],1804603682,7),N=k(N,q,_,j,D[13],4254626195,12),j=k(j,N,q,_,D[14],2792965006,17),_=k(_,j,N,q,D[15],1236535329,22),q=L(q,_,j,N,D[1],4129170786,5),N=L(N,q,_,j,D[6],3225465664,9),j=L(j,N,q,_,D[11],643717713,14),_=L(_,j,N,q,D[0],3921069994,20),q=L(q,_,j,N,D[5],3593408605,5),N=L(N,q,_,j,D[10],38016083,9),j=L(j,N,q,_,D[15],3634488961,14),_=L(_,j,N,q,D[4],3889429448,20),q=L(q,_,j,N,D[9],568446438,5),N=L(N,q,_,j,D[14],3275163606,9),j=L(j,N,q,_,D[3],4107603335,14),_=L(_,j,N,q,D[8],1163531501,20),q=L(q,_,j,N,D[13],2850285829,5),N=L(N,q,_,j,D[2],4243563512,9),j=L(j,N,q,_,D[7],1735328473,14),_=L(_,j,N,q,D[12],2368359562,20),q=E(q,_,j,N,D[5],4294588738,4),N=E(N,q,_,j,D[8],2272392833,11),j=E(j,N,q,_,D[11],1839030562,16),_=E(_,j,N,q,D[14],4259657740,23),q=E(q,_,j,N,D[1],2763975236,4),N=E(N,q,_,j,D[4],1272893353,11),j=E(j,N,q,_,D[7],4139469664,16),_=E(_,j,N,q,D[10],3200236656,23),q=E(q,_,j,N,D[13],681279174,4),N=E(N,q,_,j,D[0],3936430074,11),j=E(j,N,q,_,D[3],3572445317,16),_=E(_,j,N,q,D[6],76029189,23),q=E(q,_,j,N,D[9],3654602809,4),N=E(N,q,_,j,D[12],3873151461,11),j=E(j,N,q,_,D[15],530742520,16),_=E(_,j,N,q,D[2],3299628645,23),q=A(q,_,j,N,D[0],4096336452,6),N=A(N,q,_,j,D[7],1126891415,10),j=A(j,N,q,_,D[14],2878612391,15),_=A(_,j,N,q,D[5],4237533241,21),q=A(q,_,j,N,D[12],1700485571,6),N=A(N,q,_,j,D[3],2399980690,10),j=A(j,N,q,_,D[10],4293915773,15),_=A(_,j,N,q,D[1],2240044497,21),q=A(q,_,j,N,D[8],1873313359,6),N=A(N,q,_,j,D[15],4264355552,10),j=A(j,N,q,_,D[6],2734768916,15),_=A(_,j,N,q,D[13],1309151649,21),q=A(q,_,j,N,D[4],4149444226,6),N=A(N,q,_,j,D[11],3174756917,10),j=A(j,N,q,_,D[2],718787259,15),_=A(_,j,N,q,D[9],3951481745,21),this._a=this._a+q|0,this._b=this._b+_|0,this._c=this._c+j|0,this._d=this._d+N|0},V.prototype._digest=function(){if(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 D=F.allocUnsafe(16);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D};function z(D,P){return D<<P|D>>>32-P}function k(D,P,q,_,j,N,x){return z(D+(P&q|~P&_)+j+N|0,x)+P|0}function L(D,P,q,_,j,N,x){return z(D+(P&_|q&~_)+j+N|0,x)+P|0}function E(D,P,q,_,j,N,x){return z(D+(P^q^_)+j+N|0,x)+P|0}function A(D,P,q,_,j,N,x){return z(D+(q^(P|~_))+j+N|0,x)+P|0}$.exports=V}),NG=A0((G,$)=>{var W=EU().Buffer,C=xG();function F(R,V,z,k){if(!W.isBuffer(R))R=W.from(R,"binary");if(V){if(!W.isBuffer(V))V=W.from(V,"binary");if(V.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var L=z/8,E=W.alloc(L),A=W.alloc(k||0),D=W.alloc(0);while(L>0||k>0){var P=new C;if(P.update(D),P.update(R),V)P.update(V);D=P.digest();var q=0;if(L>0){var _=E.length-L;q=Math.min(L,D.length),D.copy(E,_,0,q),L-=q}if(q<D.length&&k>0){var j=A.length-k,N=Math.min(k,D.length-q);D.copy(A,j,q,q+N),k-=N}}return D.fill(0),{key:E,iv:A}}$.exports=F}),YY=A0((G)=>{var $=(SU(),l0(PU));G.createCipher=G.Cipher=$.createCipher,G.createCipheriv=G.Cipheriv=$.createCipheriv,G.createDecipher=G.Decipher=$.createDecipher,G.createDecipheriv=G.Decipheriv=$.createDecipheriv,G.listCiphers=G.getCiphers=$.getCiphers}),gG=A0((G,$)=>{var W=/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,C=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,F=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,R=NG(),V=YY(),z=EU().Buffer;$.exports=function(k,L){var E=k.toString(),A=E.match(W),D;if(!A){var P=E.match(F);D=z.from(P[2].replace(/[\r\n]/g,""),"base64")}else{var q="aes"+A[1],_=z.from(A[2],"hex"),j=z.from(A[3].replace(/[\r\n]/g,""),"base64"),N=R(L,_.slice(0,8),parseInt(A[1],10)).key,x=[],g=V.createDecipheriv(q,N,_);x.push(g.update(j)),x.push(g.final()),D=z.concat(x)}var f=E.match(C)[1];return{tag:f,data:D}}}),JY=A0((G,$)=>{var W=vG(),C=_G(),F=gG(),R=YY(),V=sQ().pbkdf2Sync,z=EU().Buffer;function k(E,A){var D=E.algorithm.decrypt.kde.kdeparams.salt,P=parseInt(E.algorithm.decrypt.kde.kdeparams.iters.toString(),10),q=C[E.algorithm.decrypt.cipher.algo.join(".")],_=E.algorithm.decrypt.cipher.iv,j=E.subjectPrivateKey,N=parseInt(q.split("-")[1],10)/8,x=V(A,D,P,N,"sha1"),g=R.createDecipheriv(q,x,_),f=[];return f.push(g.update(j)),f.push(g.final()),z.concat(f)}function L(E){var A;if(typeof E==="object"&&!z.isBuffer(E))A=E.passphrase,E=E.key;if(typeof E==="string")E=z.from(E);var D=F(E,A),P=D.tag,q=D.data,_,j;switch(P){case"CERTIFICATE":j=W.certificate.decode(q,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!j)j=W.PublicKey.decode(q,"der");switch(_=j.algorithm.algorithm.join("."),_){case"1.2.840.113549.1.1.1":return W.RSAPublicKey.decode(j.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return j.subjectPrivateKey=j.subjectPublicKey,{type:"ec",data:j};case"1.2.840.10040.4.1":return j.algorithm.params.pub_key=W.DSAparam.decode(j.subjectPublicKey.data,"der"),{type:"dsa",data:j.algorithm.params};default:throw Error("unknown key id "+_)}case"ENCRYPTED PRIVATE KEY":q=W.EncryptedPrivateKey.decode(q,"der"),q=k(q,A);case"PRIVATE KEY":switch(j=W.PrivateKey.decode(q,"der"),_=j.algorithm.algorithm.join("."),_){case"1.2.840.113549.1.1.1":return W.RSAPrivateKey.decode(j.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:j.algorithm.curve,privateKey:W.ECPrivateKey.decode(j.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return j.algorithm.params.priv_key=W.DSAparam.decode(j.subjectPrivateKey,"der"),{type:"dsa",params:j.algorithm.params};default:throw Error("unknown key id "+_)}case"RSA PUBLIC KEY":return W.RSAPublicKey.decode(q,"der");case"RSA PRIVATE KEY":return W.RSAPrivateKey.decode(q,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:W.DSAPrivateKey.decode(q,"der")};case"EC PRIVATE KEY":return q=W.ECPrivateKey.decode(q,"der"),{curve:q.parameters.value,privateKey:q.privateKey};default:throw Error("unknown key type "+P)}}L.signature=W.signature,$.exports=L}),VY=A0((G,$)=>{var W=PZ(),C=EU().Buffer;$.exports=function(R,V){var z=C.alloc(0),k=0,L;while(z.length<V)L=F(k++),z=C.concat([z,W("sha1").update(R).update(L).digest()]);return z.slice(0,V)};function F(R){var V=C.allocUnsafe(4);return V.writeUInt32BE(R,0),V}}),GY=A0((G,$)=>{$.exports=function(W,C){var F=W.length,R=-1;while(++R<F)W[R]^=C[R];return W}}),DX=A0((G,$)=>{(function(W,C){function F(U,Q){if(!U)throw Error(Q||"Assertion failed")}function R(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof W==="object")W.exports=V;else C.BN=V;V.BN=V,V.wordSize=26;var z;try{if(typeof window<"u"&&typeof window.Buffer<"u")z=window.Buffer;else z=(TU(),l0(CU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;F(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var X=0;if(U[0]==="-")X++,this.negative=1;if(X<U.length){if(Q===16)this._parseHex(U,X,J);else if(this._parseBase(U,Q,X),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else F(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(F(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y,O,H=0;if(J==="be"){for(X=U.length-1,Y=0;X>=0;X-=3)if(O=U[X]|U[X-1]<<8|U[X-2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}else if(J==="le"){for(X=0,Y=0;X<U.length;X+=3)if(O=U[X]|U[X+1]<<8|U[X+2]<<16,this.words[Y]|=O<<H&67108863,this.words[Y+1]=O>>>26-H&67108863,H+=24,H>=26)H-=26,Y++}return this.strip()};function k(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var X=k(U,J);if(J-1>=Q)X|=k(U,J-1)<<4;return X}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var X=0;X<this.length;X++)this.words[X]=0;var Y=0,O=0,H;if(J==="be")for(X=U.length-1;X>=Q;X-=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8;else{var I=U.length-Q;for(X=I%2===0?Q+1:Q;X<U.length;X+=2)if(H=L(U,Q,X)<<Y,this.words[O]|=H&67108863,Y>=18)Y-=18,O+=1,this.words[O]|=H>>>26;else Y+=8}this.strip()};function E(U,Q,J,X){var Y=0,O=Math.min(U.length,J);for(var H=Q;H<O;H++){var I=U.charCodeAt(H)-48;if(Y*=X,I>=49)Y+=I-49+10;else if(I>=17)Y+=I-17+10;else Y+=I}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var X=0,Y=1;Y<=67108863;Y*=Q)X++;X--,Y=Y/Q|0;var O=U.length-J,H=O%X,I=Math.min(O,O-H)+J,Z=0;for(var K=J;K<I;K+=X)if(Z=E(U,K,K+X,Q),this.imuln(Y),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(H!==0){var S=1;Z=E(U,K,U.length,Q);for(K=0;K<H;K++)S*=Q;if(this.imuln(S),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var X=0,Y=0;for(var O=0;O<this.length;O++){var H=this.words[O],I=((H<<X|Y)&16777215).toString(16);if(Y=H>>>24-X&16777215,X+=2,X>=26)X-=26,O--;if(Y!==0||O!==this.length-1)J=A[6-I.length]+I+J;else J=I+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var Z=D[U],K=P[U];J="";var S=this.clone();S.negative=0;while(!S.isZero()){var T=S.modn(K).toString(U);if(S=S.idivn(K),!S.isZero())J=A[Z-T.length]+T+J;else J=T+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}F(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)F(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return F(typeof z<"u"),this.toArrayLike(z,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var X=this.byteLength(),Y=J||Math.max(1,X);F(X<=Y,"byte array longer than desired length"),F(Y>0,"Requested array length <= 0"),this.strip();var O=Q==="le",H=new U(Y),I,Z,K=this.clone();if(!O){for(Z=0;Z<Y-X;Z++)H[Z]=0;for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Y-Z-1]=I}else{for(Z=0;!K.isZero();Z++)I=K.andln(255),K.iushrn(8),H[Z]=I;for(;Z<Y;Z++)H[Z]=0}return H},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function q(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var X=J/26|0,Y=J%26;Q[J]=(U.words[X]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return F((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return F((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var X=0;X<J.length;X++)this.words[X]=Q.words[X]^J.words[X];if(this!==Q)for(;X<Q.length;X++)this.words[X]=Q.words[X];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return F((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){F(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var X=0;X<Q;X++)this.words[X]=~this.words[X]&67108863;if(J>0)this.words[X]=~this.words[X]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){F(typeof U==="number"&&U>=0);var J=U/26|0,X=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<X;else this.words[J]=this.words[J]&~(1<<X);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,X;if(this.length>U.length)J=this,X=U;else J=U,X=this;var Y=0;for(var O=0;O<X.length;O++)Q=(J.words[O]|0)+(X.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;for(;Y!==0&&O<J.length;O++)Q=(J.words[O]|0)+Y,this.words[O]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;O<J.length;O++)this.words[O]=J.words[O];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,Y;if(J>0)X=this,Y=U;else X=U,Y=this;var O=0;for(var H=0;H<Y.length;H++)Q=(X.words[H]|0)-(Y.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;for(;O!==0&&H<X.length;H++)Q=(X.words[H]|0)+O,O=Q>>26,this.words[H]=Q&67108863;if(O===0&&H<X.length&&X!==this)for(;H<X.length;H++)this.words[H]=X.words[H];if(this.length=Math.max(this.length,H),X!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function _(U,Q,J){J.negative=Q.negative^U.negative;var X=U.length+Q.length|0;J.length=X,X=X-1|0;var Y=U.words[0]|0,O=Q.words[0]|0,H=Y*O,I=H&67108863,Z=H/67108864|0;J.words[0]=I;for(var K=1;K<X;K++){var S=Z>>>26,T=Z&67108863,B=Math.min(K,Q.length-1);for(var c=Math.max(0,K-U.length+1);c<=B;c++){var d=K-c|0;Y=U.words[d]|0,O=Q.words[c]|0,H=Y*O+T,S+=H/67108864|0,T=H&67108863}J.words[K]=T|0,Z=S|0}if(Z!==0)J.words[K]=Z|0;else J.length--;return J.strip()}var j=function(U,Q,J){var X=U.words,Y=Q.words,O=J.words,H=0,I,Z,K,S=X[0]|0,T=S&8191,B=S>>>13,c=X[1]|0,d=c&8191,r=c>>>13,z0=X[2]|0,Z0=z0&8191,t=z0>>>13,$0=X[3]|0,e=$0&8191,Y0=$0>>>13,y0=X[4]|0,u=y0&8191,l=y0>>>13,K0=X[5]|0,U0=K0&8191,Q0=K0>>>13,R0=X[6]|0,b=R0&8191,a=R0>>>13,w0=X[7]|0,i=w0&8191,V0=w0>>>13,c0=X[8]|0,M=c0&8191,v=c0>>>13,w=X[9]|0,h=w&8191,o=w>>>13,H0=Y[0]|0,X0=H0&8191,F0=H0>>>13,d0=Y[1]|0,D0=d0&8191,T0=d0>>>13,b0=Y[2]|0,_0=b0&8191,q0=b0>>>13,DU=Y[3]|0,B0=DU&8191,P0=DU>>>13,HU=Y[4]|0,x0=HU&8191,N0=HU>>>13,FU=Y[5]|0,k0=FU&8191,y=FU>>>13,m=Y[6]|0,J0=m&8191,G0=m>>>13,f0=Y[7]|0,E0=f0&8191,M0=f0>>>13,r0=Y[8]|0,j0=r0&8191,g0=r0>>>13,zU=Y[9]|0,v0=zU&8191,S0=zU>>>13;J.negative=U.negative^Q.negative,J.length=19,I=Math.imul(T,X0),Z=Math.imul(T,F0),Z=Z+Math.imul(B,X0)|0,K=Math.imul(B,F0);var e0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(e0>>>26)|0,e0&=67108863,I=Math.imul(d,X0),Z=Math.imul(d,F0),Z=Z+Math.imul(r,X0)|0,K=Math.imul(r,F0),I=I+Math.imul(T,D0)|0,Z=Z+Math.imul(T,T0)|0,Z=Z+Math.imul(B,D0)|0,K=K+Math.imul(B,T0)|0;var h0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(h0>>>26)|0,h0&=67108863,I=Math.imul(Z0,X0),Z=Math.imul(Z0,F0),Z=Z+Math.imul(t,X0)|0,K=Math.imul(t,F0),I=I+Math.imul(d,D0)|0,Z=Z+Math.imul(d,T0)|0,Z=Z+Math.imul(r,D0)|0,K=K+Math.imul(r,T0)|0,I=I+Math.imul(T,_0)|0,Z=Z+Math.imul(T,q0)|0,Z=Z+Math.imul(B,_0)|0,K=K+Math.imul(B,q0)|0;var p0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(p0>>>26)|0,p0&=67108863,I=Math.imul(e,X0),Z=Math.imul(e,F0),Z=Z+Math.imul(Y0,X0)|0,K=Math.imul(Y0,F0),I=I+Math.imul(Z0,D0)|0,Z=Z+Math.imul(Z0,T0)|0,Z=Z+Math.imul(t,D0)|0,K=K+Math.imul(t,T0)|0,I=I+Math.imul(d,_0)|0,Z=Z+Math.imul(d,q0)|0,Z=Z+Math.imul(r,_0)|0,K=K+Math.imul(r,q0)|0,I=I+Math.imul(T,B0)|0,Z=Z+Math.imul(T,P0)|0,Z=Z+Math.imul(B,B0)|0,K=K+Math.imul(B,P0)|0;var m0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(m0>>>26)|0,m0&=67108863,I=Math.imul(u,X0),Z=Math.imul(u,F0),Z=Z+Math.imul(l,X0)|0,K=Math.imul(l,F0),I=I+Math.imul(e,D0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(Y0,D0)|0,K=K+Math.imul(Y0,T0)|0,I=I+Math.imul(Z0,_0)|0,Z=Z+Math.imul(Z0,q0)|0,Z=Z+Math.imul(t,_0)|0,K=K+Math.imul(t,q0)|0,I=I+Math.imul(d,B0)|0,Z=Z+Math.imul(d,P0)|0,Z=Z+Math.imul(r,B0)|0,K=K+Math.imul(r,P0)|0,I=I+Math.imul(T,x0)|0,Z=Z+Math.imul(T,N0)|0,Z=Z+Math.imul(B,x0)|0,K=K+Math.imul(B,N0)|0;var n0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(n0>>>26)|0,n0&=67108863,I=Math.imul(U0,X0),Z=Math.imul(U0,F0),Z=Z+Math.imul(Q0,X0)|0,K=Math.imul(Q0,F0),I=I+Math.imul(u,D0)|0,Z=Z+Math.imul(u,T0)|0,Z=Z+Math.imul(l,D0)|0,K=K+Math.imul(l,T0)|0,I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,q0)|0,Z=Z+Math.imul(Y0,_0)|0,K=K+Math.imul(Y0,q0)|0,I=I+Math.imul(Z0,B0)|0,Z=Z+Math.imul(Z0,P0)|0,Z=Z+Math.imul(t,B0)|0,K=K+Math.imul(t,P0)|0,I=I+Math.imul(d,x0)|0,Z=Z+Math.imul(d,N0)|0,Z=Z+Math.imul(r,x0)|0,K=K+Math.imul(r,N0)|0,I=I+Math.imul(T,k0)|0,Z=Z+Math.imul(T,y)|0,Z=Z+Math.imul(B,k0)|0,K=K+Math.imul(B,y)|0;var i0=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(i0>>>26)|0,i0&=67108863,I=Math.imul(b,X0),Z=Math.imul(b,F0),Z=Z+Math.imul(a,X0)|0,K=Math.imul(a,F0),I=I+Math.imul(U0,D0)|0,Z=Z+Math.imul(U0,T0)|0,Z=Z+Math.imul(Q0,D0)|0,K=K+Math.imul(Q0,T0)|0,I=I+Math.imul(u,_0)|0,Z=Z+Math.imul(u,q0)|0,Z=Z+Math.imul(l,_0)|0,K=K+Math.imul(l,q0)|0,I=I+Math.imul(e,B0)|0,Z=Z+Math.imul(e,P0)|0,Z=Z+Math.imul(Y0,B0)|0,K=K+Math.imul(Y0,P0)|0,I=I+Math.imul(Z0,x0)|0,Z=Z+Math.imul(Z0,N0)|0,Z=Z+Math.imul(t,x0)|0,K=K+Math.imul(t,N0)|0,I=I+Math.imul(d,k0)|0,Z=Z+Math.imul(d,y)|0,Z=Z+Math.imul(r,k0)|0,K=K+Math.imul(r,y)|0,I=I+Math.imul(T,J0)|0,Z=Z+Math.imul(T,G0)|0,Z=Z+Math.imul(B,J0)|0,K=K+Math.imul(B,G0)|0;var UU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(UU>>>26)|0,UU&=67108863,I=Math.imul(i,X0),Z=Math.imul(i,F0),Z=Z+Math.imul(V0,X0)|0,K=Math.imul(V0,F0),I=I+Math.imul(b,D0)|0,Z=Z+Math.imul(b,T0)|0,Z=Z+Math.imul(a,D0)|0,K=K+Math.imul(a,T0)|0,I=I+Math.imul(U0,_0)|0,Z=Z+Math.imul(U0,q0)|0,Z=Z+Math.imul(Q0,_0)|0,K=K+Math.imul(Q0,q0)|0,I=I+Math.imul(u,B0)|0,Z=Z+Math.imul(u,P0)|0,Z=Z+Math.imul(l,B0)|0,K=K+Math.imul(l,P0)|0,I=I+Math.imul(e,x0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(Y0,x0)|0,K=K+Math.imul(Y0,N0)|0,I=I+Math.imul(Z0,k0)|0,Z=Z+Math.imul(Z0,y)|0,Z=Z+Math.imul(t,k0)|0,K=K+Math.imul(t,y)|0,I=I+Math.imul(d,J0)|0,Z=Z+Math.imul(d,G0)|0,Z=Z+Math.imul(r,J0)|0,K=K+Math.imul(r,G0)|0,I=I+Math.imul(T,E0)|0,Z=Z+Math.imul(T,M0)|0,Z=Z+Math.imul(B,E0)|0,K=K+Math.imul(B,M0)|0;var ZU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(M,X0),Z=Math.imul(M,F0),Z=Z+Math.imul(v,X0)|0,K=Math.imul(v,F0),I=I+Math.imul(i,D0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(V0,D0)|0,K=K+Math.imul(V0,T0)|0,I=I+Math.imul(b,_0)|0,Z=Z+Math.imul(b,q0)|0,Z=Z+Math.imul(a,_0)|0,K=K+Math.imul(a,q0)|0,I=I+Math.imul(U0,B0)|0,Z=Z+Math.imul(U0,P0)|0,Z=Z+Math.imul(Q0,B0)|0,K=K+Math.imul(Q0,P0)|0,I=I+Math.imul(u,x0)|0,Z=Z+Math.imul(u,N0)|0,Z=Z+Math.imul(l,x0)|0,K=K+Math.imul(l,N0)|0,I=I+Math.imul(e,k0)|0,Z=Z+Math.imul(e,y)|0,Z=Z+Math.imul(Y0,k0)|0,K=K+Math.imul(Y0,y)|0,I=I+Math.imul(Z0,J0)|0,Z=Z+Math.imul(Z0,G0)|0,Z=Z+Math.imul(t,J0)|0,K=K+Math.imul(t,G0)|0,I=I+Math.imul(d,E0)|0,Z=Z+Math.imul(d,M0)|0,Z=Z+Math.imul(r,E0)|0,K=K+Math.imul(r,M0)|0,I=I+Math.imul(T,j0)|0,Z=Z+Math.imul(T,g0)|0,Z=Z+Math.imul(B,j0)|0,K=K+Math.imul(B,g0)|0;var XU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,I=Math.imul(h,X0),Z=Math.imul(h,F0),Z=Z+Math.imul(o,X0)|0,K=Math.imul(o,F0),I=I+Math.imul(M,D0)|0,Z=Z+Math.imul(M,T0)|0,Z=Z+Math.imul(v,D0)|0,K=K+Math.imul(v,T0)|0,I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,q0)|0,Z=Z+Math.imul(V0,_0)|0,K=K+Math.imul(V0,q0)|0,I=I+Math.imul(b,B0)|0,Z=Z+Math.imul(b,P0)|0,Z=Z+Math.imul(a,B0)|0,K=K+Math.imul(a,P0)|0,I=I+Math.imul(U0,x0)|0,Z=Z+Math.imul(U0,N0)|0,Z=Z+Math.imul(Q0,x0)|0,K=K+Math.imul(Q0,N0)|0,I=I+Math.imul(u,k0)|0,Z=Z+Math.imul(u,y)|0,Z=Z+Math.imul(l,k0)|0,K=K+Math.imul(l,y)|0,I=I+Math.imul(e,J0)|0,Z=Z+Math.imul(e,G0)|0,Z=Z+Math.imul(Y0,J0)|0,K=K+Math.imul(Y0,G0)|0,I=I+Math.imul(Z0,E0)|0,Z=Z+Math.imul(Z0,M0)|0,Z=Z+Math.imul(t,E0)|0,K=K+Math.imul(t,M0)|0,I=I+Math.imul(d,j0)|0,Z=Z+Math.imul(d,g0)|0,Z=Z+Math.imul(r,j0)|0,K=K+Math.imul(r,g0)|0,I=I+Math.imul(T,v0)|0,Z=Z+Math.imul(T,S0)|0,Z=Z+Math.imul(B,v0)|0,K=K+Math.imul(B,S0)|0;var QU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(QU>>>26)|0,QU&=67108863,I=Math.imul(h,D0),Z=Math.imul(h,T0),Z=Z+Math.imul(o,D0)|0,K=Math.imul(o,T0),I=I+Math.imul(M,_0)|0,Z=Z+Math.imul(M,q0)|0,Z=Z+Math.imul(v,_0)|0,K=K+Math.imul(v,q0)|0,I=I+Math.imul(i,B0)|0,Z=Z+Math.imul(i,P0)|0,Z=Z+Math.imul(V0,B0)|0,K=K+Math.imul(V0,P0)|0,I=I+Math.imul(b,x0)|0,Z=Z+Math.imul(b,N0)|0,Z=Z+Math.imul(a,x0)|0,K=K+Math.imul(a,N0)|0,I=I+Math.imul(U0,k0)|0,Z=Z+Math.imul(U0,y)|0,Z=Z+Math.imul(Q0,k0)|0,K=K+Math.imul(Q0,y)|0,I=I+Math.imul(u,J0)|0,Z=Z+Math.imul(u,G0)|0,Z=Z+Math.imul(l,J0)|0,K=K+Math.imul(l,G0)|0,I=I+Math.imul(e,E0)|0,Z=Z+Math.imul(e,M0)|0,Z=Z+Math.imul(Y0,E0)|0,K=K+Math.imul(Y0,M0)|0,I=I+Math.imul(Z0,j0)|0,Z=Z+Math.imul(Z0,g0)|0,Z=Z+Math.imul(t,j0)|0,K=K+Math.imul(t,g0)|0,I=I+Math.imul(d,v0)|0,Z=Z+Math.imul(d,S0)|0,Z=Z+Math.imul(r,v0)|0,K=K+Math.imul(r,S0)|0;var YU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(h,_0),Z=Math.imul(h,q0),Z=Z+Math.imul(o,_0)|0,K=Math.imul(o,q0),I=I+Math.imul(M,B0)|0,Z=Z+Math.imul(M,P0)|0,Z=Z+Math.imul(v,B0)|0,K=K+Math.imul(v,P0)|0,I=I+Math.imul(i,x0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(V0,x0)|0,K=K+Math.imul(V0,N0)|0,I=I+Math.imul(b,k0)|0,Z=Z+Math.imul(b,y)|0,Z=Z+Math.imul(a,k0)|0,K=K+Math.imul(a,y)|0,I=I+Math.imul(U0,J0)|0,Z=Z+Math.imul(U0,G0)|0,Z=Z+Math.imul(Q0,J0)|0,K=K+Math.imul(Q0,G0)|0,I=I+Math.imul(u,E0)|0,Z=Z+Math.imul(u,M0)|0,Z=Z+Math.imul(l,E0)|0,K=K+Math.imul(l,M0)|0,I=I+Math.imul(e,j0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(Y0,j0)|0,K=K+Math.imul(Y0,g0)|0,I=I+Math.imul(Z0,v0)|0,Z=Z+Math.imul(Z0,S0)|0,Z=Z+Math.imul(t,v0)|0,K=K+Math.imul(t,S0)|0;var JU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(h,B0),Z=Math.imul(h,P0),Z=Z+Math.imul(o,B0)|0,K=Math.imul(o,P0),I=I+Math.imul(M,x0)|0,Z=Z+Math.imul(M,N0)|0,Z=Z+Math.imul(v,x0)|0,K=K+Math.imul(v,N0)|0,I=I+Math.imul(i,k0)|0,Z=Z+Math.imul(i,y)|0,Z=Z+Math.imul(V0,k0)|0,K=K+Math.imul(V0,y)|0,I=I+Math.imul(b,J0)|0,Z=Z+Math.imul(b,G0)|0,Z=Z+Math.imul(a,J0)|0,K=K+Math.imul(a,G0)|0,I=I+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,M0)|0,Z=Z+Math.imul(Q0,E0)|0,K=K+Math.imul(Q0,M0)|0,I=I+Math.imul(u,j0)|0,Z=Z+Math.imul(u,g0)|0,Z=Z+Math.imul(l,j0)|0,K=K+Math.imul(l,g0)|0,I=I+Math.imul(e,v0)|0,Z=Z+Math.imul(e,S0)|0,Z=Z+Math.imul(Y0,v0)|0,K=K+Math.imul(Y0,S0)|0;var VU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(VU>>>26)|0,VU&=67108863,I=Math.imul(h,x0),Z=Math.imul(h,N0),Z=Z+Math.imul(o,x0)|0,K=Math.imul(o,N0),I=I+Math.imul(M,k0)|0,Z=Z+Math.imul(M,y)|0,Z=Z+Math.imul(v,k0)|0,K=K+Math.imul(v,y)|0,I=I+Math.imul(i,J0)|0,Z=Z+Math.imul(i,G0)|0,Z=Z+Math.imul(V0,J0)|0,K=K+Math.imul(V0,G0)|0,I=I+Math.imul(b,E0)|0,Z=Z+Math.imul(b,M0)|0,Z=Z+Math.imul(a,E0)|0,K=K+Math.imul(a,M0)|0,I=I+Math.imul(U0,j0)|0,Z=Z+Math.imul(U0,g0)|0,Z=Z+Math.imul(Q0,j0)|0,K=K+Math.imul(Q0,g0)|0,I=I+Math.imul(u,v0)|0,Z=Z+Math.imul(u,S0)|0,Z=Z+Math.imul(l,v0)|0,K=K+Math.imul(l,S0)|0;var GU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(GU>>>26)|0,GU&=67108863,I=Math.imul(h,k0),Z=Math.imul(h,y),Z=Z+Math.imul(o,k0)|0,K=Math.imul(o,y),I=I+Math.imul(M,J0)|0,Z=Z+Math.imul(M,G0)|0,Z=Z+Math.imul(v,J0)|0,K=K+Math.imul(v,G0)|0,I=I+Math.imul(i,E0)|0,Z=Z+Math.imul(i,M0)|0,Z=Z+Math.imul(V0,E0)|0,K=K+Math.imul(V0,M0)|0,I=I+Math.imul(b,j0)|0,Z=Z+Math.imul(b,g0)|0,Z=Z+Math.imul(a,j0)|0,K=K+Math.imul(a,g0)|0,I=I+Math.imul(U0,v0)|0,Z=Z+Math.imul(U0,S0)|0,Z=Z+Math.imul(Q0,v0)|0,K=K+Math.imul(Q0,S0)|0;var IU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(IU>>>26)|0,IU&=67108863,I=Math.imul(h,J0),Z=Math.imul(h,G0),Z=Z+Math.imul(o,J0)|0,K=Math.imul(o,G0),I=I+Math.imul(M,E0)|0,Z=Z+Math.imul(M,M0)|0,Z=Z+Math.imul(v,E0)|0,K=K+Math.imul(v,M0)|0,I=I+Math.imul(i,j0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(V0,j0)|0,K=K+Math.imul(V0,g0)|0,I=I+Math.imul(b,v0)|0,Z=Z+Math.imul(b,S0)|0,Z=Z+Math.imul(a,v0)|0,K=K+Math.imul(a,S0)|0;var $U=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+($U>>>26)|0,$U&=67108863,I=Math.imul(h,E0),Z=Math.imul(h,M0),Z=Z+Math.imul(o,E0)|0,K=Math.imul(o,M0),I=I+Math.imul(M,j0)|0,Z=Z+Math.imul(M,g0)|0,Z=Z+Math.imul(v,j0)|0,K=K+Math.imul(v,g0)|0,I=I+Math.imul(i,v0)|0,Z=Z+Math.imul(i,S0)|0,Z=Z+Math.imul(V0,v0)|0,K=K+Math.imul(V0,S0)|0;var KU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(KU>>>26)|0,KU&=67108863,I=Math.imul(h,j0),Z=Math.imul(h,g0),Z=Z+Math.imul(o,j0)|0,K=Math.imul(o,g0),I=I+Math.imul(M,v0)|0,Z=Z+Math.imul(M,S0)|0,Z=Z+Math.imul(v,v0)|0,K=K+Math.imul(v,S0)|0;var OU=(H+I|0)+((Z&8191)<<13)|0;H=(K+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(h,v0),Z=Math.imul(h,S0),Z=Z+Math.imul(o,v0)|0,K=Math.imul(o,S0);var WU=(H+I|0)+((Z&8191)<<13)|0;if(H=(K+(Z>>>13)|0)+(WU>>>26)|0,WU&=67108863,O[0]=e0,O[1]=h0,O[2]=p0,O[3]=m0,O[4]=n0,O[5]=i0,O[6]=UU,O[7]=ZU,O[8]=XU,O[9]=QU,O[10]=YU,O[11]=JU,O[12]=VU,O[13]=GU,O[14]=IU,O[15]=$U,O[16]=KU,O[17]=OU,O[18]=WU,H!==0)O[19]=H,J.length++;return J};if(!Math.imul)j=_;function N(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var X=0,Y=0;for(var O=0;O<J.length-1;O++){var H=Y;Y=0;var I=X&67108863,Z=Math.min(O,Q.length-1);for(var K=Math.max(0,O-U.length+1);K<=Z;K++){var S=O-K,T=U.words[S]|0,B=Q.words[K]|0,c=T*B,d=c&67108863;H=H+(c/67108864|0)|0,d=d+I|0,I=d&67108863,H=H+(d>>>26)|0,Y+=H>>>26,H&=67108863}J.words[O]=I,X=H,H=Y}if(X!==0)J.words[O]=X;else J.length--;return J.strip()}function x(U,Q,J){var X=new g;return X.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,X=this.length+U.length;if(this.length===10&&U.length===10)J=j(this,U,Q);else if(X<63)J=_(this,U,Q);else if(X<1024)J=N(this,U,Q);else J=x(this,U,Q);return J};function g(U,Q){this.x=U,this.y=Q}g.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var X=0;X<U;X++)Q[X]=this.revBin(X,J,U);return Q},g.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var X=0;for(var Y=0;Y<Q;Y++)X|=(U&1)<<Q-Y-1,U>>=1;return X},g.prototype.permute=function(U,Q,J,X,Y,O){for(var H=0;H<O;H++)X[H]=Q[U[H]],Y[H]=J[U[H]]},g.prototype.transform=function(U,Q,J,X,Y,O){this.permute(O,U,Q,J,X,Y);for(var H=1;H<Y;H<<=1){var I=H<<1,Z=Math.cos(2*Math.PI/I),K=Math.sin(2*Math.PI/I);for(var S=0;S<Y;S+=I){var T=Z,B=K;for(var c=0;c<H;c++){var d=J[S+c],r=X[S+c],z0=J[S+c+H],Z0=X[S+c+H],t=T*z0-B*Z0;if(Z0=T*Z0+B*z0,z0=t,J[S+c]=d+z0,X[S+c]=r+Z0,J[S+c+H]=d-z0,X[S+c+H]=r-Z0,c!==I)t=Z*T-K*B,B=Z*B+K*T,T=t}}}},g.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,X=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+X},g.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var X=0;X<J/2;X++){var Y=U[X];U[X]=U[J-X-1],U[J-X-1]=Y,Y=Q[X],Q[X]=-Q[J-X-1],Q[J-X-1]=-Y}},g.prototype.normalize13b=function(U,Q){var J=0;for(var X=0;X<Q/2;X++){var Y=Math.round(U[2*X+1]/Q)*8192+Math.round(U[2*X]/Q)+J;if(U[X]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},g.prototype.convert13b=function(U,Q,J,X){var Y=0;for(var O=0;O<Q;O++)Y=Y+(U[O]|0),J[2*O]=Y&8191,Y=Y>>>13,J[2*O+1]=Y&8191,Y=Y>>>13;for(O=2*Q;O<X;++O)J[O]=0;F(Y===0),F((Y&-8192)===0)},g.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},g.prototype.mulp=function(U,Q,J){var X=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(X),O=this.stub(X),H=Array(X),I=Array(X),Z=Array(X),K=Array(X),S=Array(X),T=Array(X),B=J.words;B.length=X,this.convert13b(U.words,U.length,H,X),this.convert13b(Q.words,Q.length,K,X),this.transform(H,O,I,Z,X,Y),this.transform(K,O,S,T,X,Y);for(var c=0;c<X;c++){var d=I[c]*S[c]-Z[c]*T[c];Z[c]=I[c]*T[c]+Z[c]*S[c],I[c]=d}return this.conjugate(I,Z,X),this.transform(I,Z,B,O,X,Y),this.conjugate(B,O,X),this.normalize13b(B,X),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),x(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){F(typeof U==="number"),F(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var X=(this.words[J]|0)*U,Y=(X&67108863)+(Q&67108863);Q>>=26,Q+=X/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=q(U);if(Q.length===0)return new V(1);var J=this;for(var X=0;X<Q.length;X++,J=J.sqr())if(Q[X]!==0)break;if(++X<Q.length)for(var Y=J.sqr();X<Q.length;X++,Y=Y.sqr()){if(Q[X]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var O=0;for(Y=0;Y<this.length;Y++){var H=this.words[Y]&X,I=(this.words[Y]|0)-H<<Q;this.words[Y]=I|O,O=H>>>26-Q}if(O)this.words[Y]=O,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return F(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){F(typeof U==="number"&&U>=0);var X;if(Q)X=(Q-Q%26)/26;else X=0;var Y=U%26,O=Math.min((U-Y)/26,this.length),H=67108863^67108863>>>Y<<Y,I=J;if(X-=O,X=Math.max(0,X),I){for(var Z=0;Z<O;Z++)I.words[Z]=this.words[Z];I.length=O}if(O===0);else if(this.length>O){this.length-=O;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+O]}else this.words[0]=0,this.length=1;var K=0;for(Z=this.length-1;Z>=0&&(K!==0||Z>=X);Z--){var S=this.words[Z]|0;this.words[Z]=K<<26-Y|S>>>Y,K=S&H}if(I&&K!==0)I.words[I.length++]=K;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return F(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&X)},V.prototype.imaskn=function(U){F(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var X=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=X}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(F(typeof U==="number"),F(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var X=U.length+J,Y;this._expand(X);var O,H=0;for(Y=0;Y<U.length;Y++){O=(this.words[Y+J]|0)+H;var I=(U.words[Y]|0)*Q;O-=I&67108863,H=(O>>26)-(I/67108864|0),this.words[Y+J]=O&67108863}for(;Y<this.length-J;Y++)O=(this.words[Y+J]|0)+H,H=O>>26,this.words[Y+J]=O&67108863;if(H===0)return this.strip();F(H===-1),H=0;for(Y=0;Y<this.length;Y++)O=-(this.words[Y]|0)+H,H=O>>26,this.words[Y]=O&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,X=this.clone(),Y=U,O=Y.words[Y.length-1]|0,H=this._countBits(O);if(J=26-H,J!==0)Y=Y.ushln(J),X.iushln(J),O=Y.words[Y.length-1]|0;var I=X.length-Y.length,Z;if(Q!=="mod"){Z=new V(null),Z.length=I+1,Z.words=Array(Z.length);for(var K=0;K<Z.length;K++)Z.words[K]=0}var S=X.clone()._ishlnsubmul(Y,1,I);if(S.negative===0){if(X=S,Z)Z.words[I]=1}for(var T=I-1;T>=0;T--){var B=(X.words[Y.length+T]|0)*67108864+(X.words[Y.length+T-1]|0);B=Math.min(B/O|0,67108863),X._ishlnsubmul(Y,B,T);while(X.negative!==0)if(B--,X.negative=0,X._ishlnsubmul(Y,1,T),!X.isZero())X.negative^=1;if(Z)Z.words[T]=B}if(Z)Z.strip();if(X.strip(),Q!=="div"&&J!==0)X.iushrn(J);return{div:Z||null,mod:X}},V.prototype.divmod=function(U,Q,J){if(F(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var X,Y,O;if(this.negative!==0&&U.negative===0){if(O=this.neg().divmod(U,Q),Q!=="mod")X=O.div.neg();if(Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:X,mod:Y}}if(this.negative===0&&U.negative!==0){if(O=this.divmod(U.neg(),Q),Q!=="mod")X=O.div.neg();return{div:X,mod:O.mod}}if((this.negative&U.negative)!==0){if(O=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=O.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:O.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,X=U.ushrn(1),Y=U.andln(1),O=J.cmp(X);if(O<0||Y===1&&O===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){F(U<=67108863);var Q=67108864%U,J=0;for(var X=this.length-1;X>=0;X--)J=(Q*J+(this.words[X]|0))%U;return J},V.prototype.idivn=function(U){F(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var X=(this.words[J]|0)+Q*67108864;this.words[J]=X/U|0,Q=X%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=new V(0),H=new V(1),I=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++I;var Z=J.clone(),K=Q.clone();while(!Q.isZero()){for(var S=0,T=1;(Q.words[0]&T)===0&&S<26;++S,T<<=1);if(S>0){Q.iushrn(S);while(S-- >0){if(X.isOdd()||Y.isOdd())X.iadd(Z),Y.isub(K);X.iushrn(1),Y.iushrn(1)}}for(var B=0,c=1;(J.words[0]&c)===0&&B<26;++B,c<<=1);if(B>0){J.iushrn(B);while(B-- >0){if(O.isOdd()||H.isOdd())O.iadd(Z),H.isub(K);O.iushrn(1),H.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(O),Y.isub(H);else J.isub(Q),O.isub(X),H.isub(Y)}return{a:O,b:H,gcd:J.iushln(I)}},V.prototype._invmp=function(U){F(U.negative===0),F(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var X=new V(1),Y=new V(0),O=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var H=0,I=1;(Q.words[0]&I)===0&&H<26;++H,I<<=1);if(H>0){Q.iushrn(H);while(H-- >0){if(X.isOdd())X.iadd(O);X.iushrn(1)}}for(var Z=0,K=1;(J.words[0]&K)===0&&Z<26;++Z,K<<=1);if(Z>0){J.iushrn(Z);while(Z-- >0){if(Y.isOdd())Y.iadd(O);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),X.isub(Y);else J.isub(Q),Y.isub(X)}var S;if(Q.cmpn(1)===0)S=X;else S=Y;if(S.cmpn(0)<0)S.iadd(U);return S},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var X=0;Q.isEven()&&J.isEven();X++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var O=Q;Q=J,J=O}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(X)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){F(typeof U==="number");var Q=U%26,J=(U-Q)/26,X=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=X,this;var Y=X;for(var O=J;Y!==0&&O<this.length;O++){var H=this.words[O]|0;H+=Y,Y=H>>>26,H&=67108863,this.words[O]=H}if(Y!==0)this.words[O]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;F(U<=67108863,"Number is too big");var X=this.words[0]|0;J=X===U?0:X<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var X=this.words[J]|0,Y=U.words[J]|0;if(X===Y)continue;if(X<Y)Q=-1;else if(X>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new n(U)},V.prototype.toRed=function(U){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return F(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return F(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var f={k256:null,p224:null,p192:null,p25519:null};function p(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},p.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var X=J<this.n?-1:Q.ucmp(this.p);if(X===0)Q.words[0]=0,Q.length=1;else if(X>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},p.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},p.prototype.imulK=function(U){return U.imul(this.k)};function s(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(s,p),s.prototype.split=function(U,Q){var J=4194303,X=Math.min(U.length,9);for(var Y=0;Y<X;Y++)Q.words[Y]=U.words[Y];if(Q.length=X,U.length<=9){U.words[0]=0,U.length=1;return}var O=U.words[9];Q.words[Q.length++]=O&J;for(Y=10;Y<U.length;Y++){var H=U.words[Y]|0;U.words[Y-10]=(H&J)<<4|O>>>22,O=H}if(O>>>=22,U.words[Y-10]=O,O===0&&U.length>10)U.length-=10;else U.length-=9},s.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var X=U.words[J]|0;Q+=X*977,U.words[J]=Q&67108863,Q=X*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function O0(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(O0,p);function C0(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(C0,p);function W0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(W0,p),W0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var X=(U.words[J]|0)*19+Q,Y=X&67108863;X>>>=26,U.words[J]=Y,Q=X}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(f[U])return f[U];var Q;if(U==="k256")Q=new s;else if(U==="p224")Q=new O0;else if(U==="p192")Q=new C0;else if(U==="p25519")Q=new W0;else throw Error("Unknown prime "+U);return f[U]=Q,Q};function n(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else F(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}n.prototype._verify1=function(U){F(U.negative===0,"red works only with positives"),F(U.red,"red works only with red numbers")},n.prototype._verify2=function(U,Q){F((U.negative|Q.negative)===0,"red works only with positives"),F(U.red&&U.red===Q.red,"red works only with red numbers")},n.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},n.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},n.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},n.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},n.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},n.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},n.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},n.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},n.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},n.prototype.isqr=function(U){return this.imul(U,U.clone())},n.prototype.sqr=function(U){return this.mul(U,U)},n.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var X=this.m.subn(1),Y=0;while(!X.isZero()&&X.andln(1)===0)Y++,X.iushrn(1);F(!X.isZero());var O=new V(1).toRed(this),H=O.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(H)!==0)Z.redIAdd(H);var K=this.pow(Z,X),S=this.pow(U,X.addn(1).iushrn(1)),T=this.pow(U,X),B=Y;while(T.cmp(O)!==0){var c=T;for(var d=0;c.cmp(O)!==0;d++)c=c.redSqr();F(d<B);var r=this.pow(K,new V(1).iushln(B-d-1));S=S.redMul(r),K=r.redSqr(),T=T.redMul(K),B=d}return S},n.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},n.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,X=Array(1<<J);X[0]=new V(1).toRed(this),X[1]=U;for(var Y=2;Y<X.length;Y++)X[Y]=this.mul(X[Y-1],U);var O=X[0],H=0,I=0,Z=Q.bitLength()%26;if(Z===0)Z=26;for(Y=Q.length-1;Y>=0;Y--){var K=Q.words[Y];for(var S=Z-1;S>=0;S--){var T=K>>S&1;if(O!==X[0])O=this.sqr(O);if(T===0&&H===0){I=0;continue}if(H<<=1,H|=T,I++,I!==J&&(Y!==0||S!==0))continue;O=this.mul(O,X[H]),I=0,H=0}Z=26}return O},n.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},n.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new I0(U)};function I0(U){if(n.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}R(I0,n),I0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},I0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},I0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),X=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(X).iushrn(this.shift),O=Y;if(Y.cmp(this.m)>=0)O=Y.isub(this.m);else if(Y.cmpn(0)<0)O=Y.iadd(this.m);return O._forceRed(this)},I0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof $>"u"||$,G)}),IY=A0((G,$)=>{var W=DX(),C=EU().Buffer;function F(R,V){return C.from(R.toRed(W.mont(V.modulus)).redPow(new W(V.publicExponent)).fromRed().toArray())}$.exports=F}),wG=A0((G,$)=>{(function(W,C){function F(X,Y){if(!X)throw Error(Y||"Assertion failed")}function R(X,Y){X.super_=Y;var O=function(){};O.prototype=Y.prototype,X.prototype=new O,X.prototype.constructor=X}function V(X,Y,O){if(V.isBN(X))return X;if(this.negative=0,this.words=null,this.length=0,this.red=null,X!==null){if(Y==="le"||Y==="be")O=Y,Y=10;this._init(X||0,Y||10,O||"be")}}if(typeof W==="object")W.exports=V;else C.BN=V;V.BN=V,V.wordSize=26;var z;try{if(typeof window<"u"&&typeof window.Buffer<"u")z=window.Buffer;else z=(TU(),l0(CU)).Buffer}catch(X){}V.isBN=function(X){if(X instanceof V)return!0;return X!==null&&typeof X==="object"&&X.constructor.wordSize===V.wordSize&&Array.isArray(X.words)},V.max=function(X,Y){if(X.cmp(Y)>0)return X;return Y},V.min=function(X,Y){if(X.cmp(Y)<0)return X;return Y},V.prototype._init=function(X,Y,O){if(typeof X==="number")return this._initNumber(X,Y,O);if(typeof X==="object")return this._initArray(X,Y,O);if(Y==="hex")Y=16;F(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var H=0;if(X[0]==="-")H++,this.negative=1;if(H<X.length){if(Y===16)this._parseHex(X,H,O);else if(this._parseBase(X,Y,H),O==="le")this._initArray(this.toArray(),Y,O)}},V.prototype._initNumber=function(X,Y,O){if(X<0)this.negative=1,X=-X;if(X<67108864)this.words=[X&67108863],this.length=1;else if(X<4503599627370496)this.words=[X&67108863,X/67108864&67108863],this.length=2;else F(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3;if(O!=="le")return;this._initArray(this.toArray(),Y,O)},V.prototype._initArray=function(X,Y,O){if(F(typeof X.length==="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var I,Z,K=0;if(O==="be"){for(H=X.length-1,I=0;H>=0;H-=3)if(Z=X[H]|X[H-1]<<8|X[H-2]<<16,this.words[I]|=Z<<K&67108863,this.words[I+1]=Z>>>26-K&67108863,K+=24,K>=26)K-=26,I++}else if(O==="le"){for(H=0,I=0;H<X.length;H+=3)if(Z=X[H]|X[H+1]<<8|X[H+2]<<16,this.words[I]|=Z<<K&67108863,this.words[I+1]=Z>>>26-K&67108863,K+=24,K>=26)K-=26,I++}return this._strip()};function k(X,Y){var O=X.charCodeAt(Y);if(O>=48&&O<=57)return O-48;else if(O>=65&&O<=70)return O-55;else if(O>=97&&O<=102)return O-87;else F(!1,"Invalid character in "+X)}function L(X,Y,O){var H=k(X,O);if(O-1>=Y)H|=k(X,O-1)<<4;return H}V.prototype._parseHex=function(X,Y,O){this.length=Math.ceil((X.length-Y)/6),this.words=Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var I=0,Z=0,K;if(O==="be")for(H=X.length-1;H>=Y;H-=2)if(K=L(X,Y,H)<<I,this.words[Z]|=K&67108863,I>=18)I-=18,Z+=1,this.words[Z]|=K>>>26;else I+=8;else{var S=X.length-Y;for(H=S%2===0?Y+1:Y;H<X.length;H+=2)if(K=L(X,Y,H)<<I,this.words[Z]|=K&67108863,I>=18)I-=18,Z+=1,this.words[Z]|=K>>>26;else I+=8}this._strip()};function E(X,Y,O,H){var I=0,Z=0,K=Math.min(X.length,O);for(var S=Y;S<K;S++){var T=X.charCodeAt(S)-48;if(I*=H,T>=49)Z=T-49+10;else if(T>=17)Z=T-17+10;else Z=T;F(T>=0&&Z<H,"Invalid character"),I+=Z}return I}V.prototype._parseBase=function(X,Y,O){this.words=[0],this.length=1;for(var H=0,I=1;I<=67108863;I*=Y)H++;H--,I=I/Y|0;var Z=X.length-O,K=Z%H,S=Math.min(Z,Z-K)+O,T=0;for(var B=O;B<S;B+=H)if(T=E(X,B,B+H,Y),this.imuln(I),this.words[0]+T<67108864)this.words[0]+=T;else this._iaddn(T);if(K!==0){var c=1;T=E(X,B,X.length,Y);for(B=0;B<K;B++)c*=Y;if(this.imuln(c),this.words[0]+T<67108864)this.words[0]+=T;else this._iaddn(T)}this._strip()},V.prototype.copy=function(X){X.words=Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red};function A(X,Y){X.words=Y.words,X.length=Y.length,X.negative=Y.negative,X.red=Y.red}if(V.prototype._move=function(X){A(X,this)},V.prototype.clone=function(){var X=new V(null);return this.copy(X),X},V.prototype._expand=function(X){while(this.length<X)this.words[this.length++]=0;return this},V.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{V.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch(X){V.prototype.inspect=D}else V.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var P=["","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"],q=[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],_=[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];if(V.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var O;if(X===16||X==="hex"){O="";var H=0,I=0;for(var Z=0;Z<this.length;Z++){var K=this.words[Z],S=((K<<H|I)&16777215).toString(16);if(I=K>>>24-H&16777215,H+=2,H>=26)H-=26,Z--;if(I!==0||Z!==this.length-1)O=P[6-S.length]+S+O;else O=S+O}if(I!==0)O=I.toString(16)+O;while(O.length%Y!==0)O="0"+O;if(this.negative!==0)O="-"+O;return O}if(X===(X|0)&&X>=2&&X<=36){var T=q[X],B=_[X];O="";var c=this.clone();c.negative=0;while(!c.isZero()){var d=c.modrn(B).toString(X);if(c=c.idivn(B),!c.isZero())O=P[T-d.length]+d+O;else O=d+O}if(this.isZero())O="0"+O;while(O.length%Y!==0)O="0"+O;if(this.negative!==0)O="-"+O;return O}F(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var X=this.words[0];if(this.length===2)X+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)X+=4503599627370496+this.words[1]*67108864;else if(this.length>2)F(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-X:X},V.prototype.toJSON=function(){return this.toString(16,2)},z)V.prototype.toBuffer=function(X,Y){return this.toArrayLike(z,X,Y)};V.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)};var j=function(X,Y){if(X.allocUnsafe)return X.allocUnsafe(Y);return new X(Y)};if(V.prototype.toArrayLike=function(X,Y,O){this._strip();var H=this.byteLength(),I=O||Math.max(1,H);F(H<=I,"byte array longer than desired length"),F(I>0,"Requested array length <= 0");var Z=j(X,I),K=Y==="le"?"LE":"BE";return this["_toArrayLike"+K](Z,H),Z},V.prototype._toArrayLikeLE=function(X,Y){var O=0,H=0;for(var I=0,Z=0;I<this.length;I++){var K=this.words[I]<<Z|H;if(X[O++]=K&255,O<X.length)X[O++]=K>>8&255;if(O<X.length)X[O++]=K>>16&255;if(Z===6){if(O<X.length)X[O++]=K>>24&255;H=0,Z=0}else H=K>>>24,Z+=2}if(O<X.length){X[O++]=H;while(O<X.length)X[O++]=0}},V.prototype._toArrayLikeBE=function(X,Y){var O=X.length-1,H=0;for(var I=0,Z=0;I<this.length;I++){var K=this.words[I]<<Z|H;if(X[O--]=K&255,O>=0)X[O--]=K>>8&255;if(O>=0)X[O--]=K>>16&255;if(Z===6){if(O>=0)X[O--]=K>>24&255;H=0,Z=0}else H=K>>>24,Z+=2}if(O>=0){X[O--]=H;while(O>=0)X[O--]=0}},Math.clz32)V.prototype._countBits=function(X){return 32-Math.clz32(X)};else V.prototype._countBits=function(X){var Y=X,O=0;if(Y>=4096)O+=13,Y>>>=13;if(Y>=64)O+=7,Y>>>=7;if(Y>=8)O+=4,Y>>>=4;if(Y>=2)O+=2,Y>>>=2;return O+Y};V.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,O=0;if((Y&8191)===0)O+=13,Y>>>=13;if((Y&127)===0)O+=7,Y>>>=7;if((Y&15)===0)O+=4,Y>>>=4;if((Y&3)===0)O+=2,Y>>>=2;if((Y&1)===0)O++;return O},V.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function N(X){var Y=Array(X.bitLength());for(var O=0;O<Y.length;O++){var H=O/26|0,I=O%26;Y[O]=X.words[H]>>>I&1}return Y}V.prototype.zeroBits=function(){if(this.isZero())return 0;var X=0;for(var Y=0;Y<this.length;Y++){var O=this._zeroBits(this.words[Y]);if(X+=O,O!==26)break}return X},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(X){if(this.negative!==0)return this.abs().inotn(X).iaddn(1);return this.clone()},V.prototype.fromTwos=function(X){if(this.testn(X-1))return this.notn(X).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(X){while(this.length<X.length)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this._strip()},V.prototype.ior=function(X){return F((this.negative|X.negative)===0),this.iuor(X)},V.prototype.or=function(X){if(this.length>X.length)return this.clone().ior(X);return X.clone().ior(this)},V.prototype.uor=function(X){if(this.length>X.length)return this.clone().iuor(X);return X.clone().iuor(this)},V.prototype.iuand=function(X){var Y;if(this.length>X.length)Y=X;else Y=this;for(var O=0;O<Y.length;O++)this.words[O]=this.words[O]&X.words[O];return this.length=Y.length,this._strip()},V.prototype.iand=function(X){return F((this.negative|X.negative)===0),this.iuand(X)},V.prototype.and=function(X){if(this.length>X.length)return this.clone().iand(X);return X.clone().iand(this)},V.prototype.uand=function(X){if(this.length>X.length)return this.clone().iuand(X);return X.clone().iuand(this)},V.prototype.iuxor=function(X){var Y,O;if(this.length>X.length)Y=this,O=X;else Y=X,O=this;for(var H=0;H<O.length;H++)this.words[H]=Y.words[H]^O.words[H];if(this!==Y)for(;H<Y.length;H++)this.words[H]=Y.words[H];return this.length=Y.length,this._strip()},V.prototype.ixor=function(X){return F((this.negative|X.negative)===0),this.iuxor(X)},V.prototype.xor=function(X){if(this.length>X.length)return this.clone().ixor(X);return X.clone().ixor(this)},V.prototype.uxor=function(X){if(this.length>X.length)return this.clone().iuxor(X);return X.clone().iuxor(this)},V.prototype.inotn=function(X){F(typeof X==="number"&&X>=0);var Y=Math.ceil(X/26)|0,O=X%26;if(this._expand(Y),O>0)Y--;for(var H=0;H<Y;H++)this.words[H]=~this.words[H]&67108863;if(O>0)this.words[H]=~this.words[H]&67108863>>26-O;return this._strip()},V.prototype.notn=function(X){return this.clone().inotn(X)},V.prototype.setn=function(X,Y){F(typeof X==="number"&&X>=0);var O=X/26|0,H=X%26;if(this._expand(O+1),Y)this.words[O]=this.words[O]|1<<H;else this.words[O]=this.words[O]&~(1<<H);return this._strip()},V.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();else if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var O,H;if(this.length>X.length)O=this,H=X;else O=X,H=this;var I=0;for(var Z=0;Z<H.length;Z++)Y=(O.words[Z]|0)+(H.words[Z]|0)+I,this.words[Z]=Y&67108863,I=Y>>>26;for(;I!==0&&Z<O.length;Z++)Y=(O.words[Z]|0)+I,this.words[Z]=Y&67108863,I=Y>>>26;if(this.length=O.length,I!==0)this.words[this.length]=I,this.length++;else if(O!==this)for(;Z<O.length;Z++)this.words[Z]=O.words[Z];return this},V.prototype.add=function(X){var Y;if(X.negative!==0&&this.negative===0)return X.negative=0,Y=this.sub(X),X.negative^=1,Y;else if(X.negative===0&&this.negative!==0)return this.negative=0,Y=X.sub(this),this.negative=1,Y;if(this.length>X.length)return this.clone().iadd(X);return X.clone().iadd(this)},V.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var O=this.cmp(X);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,I;if(O>0)H=this,I=X;else H=X,I=this;var Z=0;for(var K=0;K<I.length;K++)Y=(H.words[K]|0)-(I.words[K]|0)+Z,Z=Y>>26,this.words[K]=Y&67108863;for(;Z!==0&&K<H.length;K++)Y=(H.words[K]|0)+Z,Z=Y>>26,this.words[K]=Y&67108863;if(Z===0&&K<H.length&&H!==this)for(;K<H.length;K++)this.words[K]=H.words[K];if(this.length=Math.max(this.length,K),H!==this)this.negative=1;return this._strip()},V.prototype.sub=function(X){return this.clone().isub(X)};function x(X,Y,O){O.negative=Y.negative^X.negative;var H=X.length+Y.length|0;O.length=H,H=H-1|0;var I=X.words[0]|0,Z=Y.words[0]|0,K=I*Z,S=K&67108863,T=K/67108864|0;O.words[0]=S;for(var B=1;B<H;B++){var c=T>>>26,d=T&67108863,r=Math.min(B,Y.length-1);for(var z0=Math.max(0,B-X.length+1);z0<=r;z0++){var Z0=B-z0|0;I=X.words[Z0]|0,Z=Y.words[z0]|0,K=I*Z+d,c+=K/67108864|0,d=K&67108863}O.words[B]=d|0,T=c|0}if(T!==0)O.words[B]=T|0;else O.length--;return O._strip()}var g=function(X,Y,O){var H=X.words,I=Y.words,Z=O.words,K=0,S,T,B,c=H[0]|0,d=c&8191,r=c>>>13,z0=H[1]|0,Z0=z0&8191,t=z0>>>13,$0=H[2]|0,e=$0&8191,Y0=$0>>>13,y0=H[3]|0,u=y0&8191,l=y0>>>13,K0=H[4]|0,U0=K0&8191,Q0=K0>>>13,R0=H[5]|0,b=R0&8191,a=R0>>>13,w0=H[6]|0,i=w0&8191,V0=w0>>>13,c0=H[7]|0,M=c0&8191,v=c0>>>13,w=H[8]|0,h=w&8191,o=w>>>13,H0=H[9]|0,X0=H0&8191,F0=H0>>>13,d0=I[0]|0,D0=d0&8191,T0=d0>>>13,b0=I[1]|0,_0=b0&8191,q0=b0>>>13,DU=I[2]|0,B0=DU&8191,P0=DU>>>13,HU=I[3]|0,x0=HU&8191,N0=HU>>>13,FU=I[4]|0,k0=FU&8191,y=FU>>>13,m=I[5]|0,J0=m&8191,G0=m>>>13,f0=I[6]|0,E0=f0&8191,M0=f0>>>13,r0=I[7]|0,j0=r0&8191,g0=r0>>>13,zU=I[8]|0,v0=zU&8191,S0=zU>>>13,e0=I[9]|0,h0=e0&8191,p0=e0>>>13;O.negative=X.negative^Y.negative,O.length=19,S=Math.imul(d,D0),T=Math.imul(d,T0),T=T+Math.imul(r,D0)|0,B=Math.imul(r,T0);var m0=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(m0>>>26)|0,m0&=67108863,S=Math.imul(Z0,D0),T=Math.imul(Z0,T0),T=T+Math.imul(t,D0)|0,B=Math.imul(t,T0),S=S+Math.imul(d,_0)|0,T=T+Math.imul(d,q0)|0,T=T+Math.imul(r,_0)|0,B=B+Math.imul(r,q0)|0;var n0=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(n0>>>26)|0,n0&=67108863,S=Math.imul(e,D0),T=Math.imul(e,T0),T=T+Math.imul(Y0,D0)|0,B=Math.imul(Y0,T0),S=S+Math.imul(Z0,_0)|0,T=T+Math.imul(Z0,q0)|0,T=T+Math.imul(t,_0)|0,B=B+Math.imul(t,q0)|0,S=S+Math.imul(d,B0)|0,T=T+Math.imul(d,P0)|0,T=T+Math.imul(r,B0)|0,B=B+Math.imul(r,P0)|0;var i0=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(i0>>>26)|0,i0&=67108863,S=Math.imul(u,D0),T=Math.imul(u,T0),T=T+Math.imul(l,D0)|0,B=Math.imul(l,T0),S=S+Math.imul(e,_0)|0,T=T+Math.imul(e,q0)|0,T=T+Math.imul(Y0,_0)|0,B=B+Math.imul(Y0,q0)|0,S=S+Math.imul(Z0,B0)|0,T=T+Math.imul(Z0,P0)|0,T=T+Math.imul(t,B0)|0,B=B+Math.imul(t,P0)|0,S=S+Math.imul(d,x0)|0,T=T+Math.imul(d,N0)|0,T=T+Math.imul(r,x0)|0,B=B+Math.imul(r,N0)|0;var UU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(UU>>>26)|0,UU&=67108863,S=Math.imul(U0,D0),T=Math.imul(U0,T0),T=T+Math.imul(Q0,D0)|0,B=Math.imul(Q0,T0),S=S+Math.imul(u,_0)|0,T=T+Math.imul(u,q0)|0,T=T+Math.imul(l,_0)|0,B=B+Math.imul(l,q0)|0,S=S+Math.imul(e,B0)|0,T=T+Math.imul(e,P0)|0,T=T+Math.imul(Y0,B0)|0,B=B+Math.imul(Y0,P0)|0,S=S+Math.imul(Z0,x0)|0,T=T+Math.imul(Z0,N0)|0,T=T+Math.imul(t,x0)|0,B=B+Math.imul(t,N0)|0,S=S+Math.imul(d,k0)|0,T=T+Math.imul(d,y)|0,T=T+Math.imul(r,k0)|0,B=B+Math.imul(r,y)|0;var ZU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,S=Math.imul(b,D0),T=Math.imul(b,T0),T=T+Math.imul(a,D0)|0,B=Math.imul(a,T0),S=S+Math.imul(U0,_0)|0,T=T+Math.imul(U0,q0)|0,T=T+Math.imul(Q0,_0)|0,B=B+Math.imul(Q0,q0)|0,S=S+Math.imul(u,B0)|0,T=T+Math.imul(u,P0)|0,T=T+Math.imul(l,B0)|0,B=B+Math.imul(l,P0)|0,S=S+Math.imul(e,x0)|0,T=T+Math.imul(e,N0)|0,T=T+Math.imul(Y0,x0)|0,B=B+Math.imul(Y0,N0)|0,S=S+Math.imul(Z0,k0)|0,T=T+Math.imul(Z0,y)|0,T=T+Math.imul(t,k0)|0,B=B+Math.imul(t,y)|0,S=S+Math.imul(d,J0)|0,T=T+Math.imul(d,G0)|0,T=T+Math.imul(r,J0)|0,B=B+Math.imul(r,G0)|0;var XU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(XU>>>26)|0,XU&=67108863,S=Math.imul(i,D0),T=Math.imul(i,T0),T=T+Math.imul(V0,D0)|0,B=Math.imul(V0,T0),S=S+Math.imul(b,_0)|0,T=T+Math.imul(b,q0)|0,T=T+Math.imul(a,_0)|0,B=B+Math.imul(a,q0)|0,S=S+Math.imul(U0,B0)|0,T=T+Math.imul(U0,P0)|0,T=T+Math.imul(Q0,B0)|0,B=B+Math.imul(Q0,P0)|0,S=S+Math.imul(u,x0)|0,T=T+Math.imul(u,N0)|0,T=T+Math.imul(l,x0)|0,B=B+Math.imul(l,N0)|0,S=S+Math.imul(e,k0)|0,T=T+Math.imul(e,y)|0,T=T+Math.imul(Y0,k0)|0,B=B+Math.imul(Y0,y)|0,S=S+Math.imul(Z0,J0)|0,T=T+Math.imul(Z0,G0)|0,T=T+Math.imul(t,J0)|0,B=B+Math.imul(t,G0)|0,S=S+Math.imul(d,E0)|0,T=T+Math.imul(d,M0)|0,T=T+Math.imul(r,E0)|0,B=B+Math.imul(r,M0)|0;var QU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(QU>>>26)|0,QU&=67108863,S=Math.imul(M,D0),T=Math.imul(M,T0),T=T+Math.imul(v,D0)|0,B=Math.imul(v,T0),S=S+Math.imul(i,_0)|0,T=T+Math.imul(i,q0)|0,T=T+Math.imul(V0,_0)|0,B=B+Math.imul(V0,q0)|0,S=S+Math.imul(b,B0)|0,T=T+Math.imul(b,P0)|0,T=T+Math.imul(a,B0)|0,B=B+Math.imul(a,P0)|0,S=S+Math.imul(U0,x0)|0,T=T+Math.imul(U0,N0)|0,T=T+Math.imul(Q0,x0)|0,B=B+Math.imul(Q0,N0)|0,S=S+Math.imul(u,k0)|0,T=T+Math.imul(u,y)|0,T=T+Math.imul(l,k0)|0,B=B+Math.imul(l,y)|0,S=S+Math.imul(e,J0)|0,T=T+Math.imul(e,G0)|0,T=T+Math.imul(Y0,J0)|0,B=B+Math.imul(Y0,G0)|0,S=S+Math.imul(Z0,E0)|0,T=T+Math.imul(Z0,M0)|0,T=T+Math.imul(t,E0)|0,B=B+Math.imul(t,M0)|0,S=S+Math.imul(d,j0)|0,T=T+Math.imul(d,g0)|0,T=T+Math.imul(r,j0)|0,B=B+Math.imul(r,g0)|0;var YU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(YU>>>26)|0,YU&=67108863,S=Math.imul(h,D0),T=Math.imul(h,T0),T=T+Math.imul(o,D0)|0,B=Math.imul(o,T0),S=S+Math.imul(M,_0)|0,T=T+Math.imul(M,q0)|0,T=T+Math.imul(v,_0)|0,B=B+Math.imul(v,q0)|0,S=S+Math.imul(i,B0)|0,T=T+Math.imul(i,P0)|0,T=T+Math.imul(V0,B0)|0,B=B+Math.imul(V0,P0)|0,S=S+Math.imul(b,x0)|0,T=T+Math.imul(b,N0)|0,T=T+Math.imul(a,x0)|0,B=B+Math.imul(a,N0)|0,S=S+Math.imul(U0,k0)|0,T=T+Math.imul(U0,y)|0,T=T+Math.imul(Q0,k0)|0,B=B+Math.imul(Q0,y)|0,S=S+Math.imul(u,J0)|0,T=T+Math.imul(u,G0)|0,T=T+Math.imul(l,J0)|0,B=B+Math.imul(l,G0)|0,S=S+Math.imul(e,E0)|0,T=T+Math.imul(e,M0)|0,T=T+Math.imul(Y0,E0)|0,B=B+Math.imul(Y0,M0)|0,S=S+Math.imul(Z0,j0)|0,T=T+Math.imul(Z0,g0)|0,T=T+Math.imul(t,j0)|0,B=B+Math.imul(t,g0)|0,S=S+Math.imul(d,v0)|0,T=T+Math.imul(d,S0)|0,T=T+Math.imul(r,v0)|0,B=B+Math.imul(r,S0)|0;var JU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(JU>>>26)|0,JU&=67108863,S=Math.imul(X0,D0),T=Math.imul(X0,T0),T=T+Math.imul(F0,D0)|0,B=Math.imul(F0,T0),S=S+Math.imul(h,_0)|0,T=T+Math.imul(h,q0)|0,T=T+Math.imul(o,_0)|0,B=B+Math.imul(o,q0)|0,S=S+Math.imul(M,B0)|0,T=T+Math.imul(M,P0)|0,T=T+Math.imul(v,B0)|0,B=B+Math.imul(v,P0)|0,S=S+Math.imul(i,x0)|0,T=T+Math.imul(i,N0)|0,T=T+Math.imul(V0,x0)|0,B=B+Math.imul(V0,N0)|0,S=S+Math.imul(b,k0)|0,T=T+Math.imul(b,y)|0,T=T+Math.imul(a,k0)|0,B=B+Math.imul(a,y)|0,S=S+Math.imul(U0,J0)|0,T=T+Math.imul(U0,G0)|0,T=T+Math.imul(Q0,J0)|0,B=B+Math.imul(Q0,G0)|0,S=S+Math.imul(u,E0)|0,T=T+Math.imul(u,M0)|0,T=T+Math.imul(l,E0)|0,B=B+Math.imul(l,M0)|0,S=S+Math.imul(e,j0)|0,T=T+Math.imul(e,g0)|0,T=T+Math.imul(Y0,j0)|0,B=B+Math.imul(Y0,g0)|0,S=S+Math.imul(Z0,v0)|0,T=T+Math.imul(Z0,S0)|0,T=T+Math.imul(t,v0)|0,B=B+Math.imul(t,S0)|0,S=S+Math.imul(d,h0)|0,T=T+Math.imul(d,p0)|0,T=T+Math.imul(r,h0)|0,B=B+Math.imul(r,p0)|0;var VU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(VU>>>26)|0,VU&=67108863,S=Math.imul(X0,_0),T=Math.imul(X0,q0),T=T+Math.imul(F0,_0)|0,B=Math.imul(F0,q0),S=S+Math.imul(h,B0)|0,T=T+Math.imul(h,P0)|0,T=T+Math.imul(o,B0)|0,B=B+Math.imul(o,P0)|0,S=S+Math.imul(M,x0)|0,T=T+Math.imul(M,N0)|0,T=T+Math.imul(v,x0)|0,B=B+Math.imul(v,N0)|0,S=S+Math.imul(i,k0)|0,T=T+Math.imul(i,y)|0,T=T+Math.imul(V0,k0)|0,B=B+Math.imul(V0,y)|0,S=S+Math.imul(b,J0)|0,T=T+Math.imul(b,G0)|0,T=T+Math.imul(a,J0)|0,B=B+Math.imul(a,G0)|0,S=S+Math.imul(U0,E0)|0,T=T+Math.imul(U0,M0)|0,T=T+Math.imul(Q0,E0)|0,B=B+Math.imul(Q0,M0)|0,S=S+Math.imul(u,j0)|0,T=T+Math.imul(u,g0)|0,T=T+Math.imul(l,j0)|0,B=B+Math.imul(l,g0)|0,S=S+Math.imul(e,v0)|0,T=T+Math.imul(e,S0)|0,T=T+Math.imul(Y0,v0)|0,B=B+Math.imul(Y0,S0)|0,S=S+Math.imul(Z0,h0)|0,T=T+Math.imul(Z0,p0)|0,T=T+Math.imul(t,h0)|0,B=B+Math.imul(t,p0)|0;var GU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(GU>>>26)|0,GU&=67108863,S=Math.imul(X0,B0),T=Math.imul(X0,P0),T=T+Math.imul(F0,B0)|0,B=Math.imul(F0,P0),S=S+Math.imul(h,x0)|0,T=T+Math.imul(h,N0)|0,T=T+Math.imul(o,x0)|0,B=B+Math.imul(o,N0)|0,S=S+Math.imul(M,k0)|0,T=T+Math.imul(M,y)|0,T=T+Math.imul(v,k0)|0,B=B+Math.imul(v,y)|0,S=S+Math.imul(i,J0)|0,T=T+Math.imul(i,G0)|0,T=T+Math.imul(V0,J0)|0,B=B+Math.imul(V0,G0)|0,S=S+Math.imul(b,E0)|0,T=T+Math.imul(b,M0)|0,T=T+Math.imul(a,E0)|0,B=B+Math.imul(a,M0)|0,S=S+Math.imul(U0,j0)|0,T=T+Math.imul(U0,g0)|0,T=T+Math.imul(Q0,j0)|0,B=B+Math.imul(Q0,g0)|0,S=S+Math.imul(u,v0)|0,T=T+Math.imul(u,S0)|0,T=T+Math.imul(l,v0)|0,B=B+Math.imul(l,S0)|0,S=S+Math.imul(e,h0)|0,T=T+Math.imul(e,p0)|0,T=T+Math.imul(Y0,h0)|0,B=B+Math.imul(Y0,p0)|0;var IU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(IU>>>26)|0,IU&=67108863,S=Math.imul(X0,x0),T=Math.imul(X0,N0),T=T+Math.imul(F0,x0)|0,B=Math.imul(F0,N0),S=S+Math.imul(h,k0)|0,T=T+Math.imul(h,y)|0,T=T+Math.imul(o,k0)|0,B=B+Math.imul(o,y)|0,S=S+Math.imul(M,J0)|0,T=T+Math.imul(M,G0)|0,T=T+Math.imul(v,J0)|0,B=B+Math.imul(v,G0)|0,S=S+Math.imul(i,E0)|0,T=T+Math.imul(i,M0)|0,T=T+Math.imul(V0,E0)|0,B=B+Math.imul(V0,M0)|0,S=S+Math.imul(b,j0)|0,T=T+Math.imul(b,g0)|0,T=T+Math.imul(a,j0)|0,B=B+Math.imul(a,g0)|0,S=S+Math.imul(U0,v0)|0,T=T+Math.imul(U0,S0)|0,T=T+Math.imul(Q0,v0)|0,B=B+Math.imul(Q0,S0)|0,S=S+Math.imul(u,h0)|0,T=T+Math.imul(u,p0)|0,T=T+Math.imul(l,h0)|0,B=B+Math.imul(l,p0)|0;var $U=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+($U>>>26)|0,$U&=67108863,S=Math.imul(X0,k0),T=Math.imul(X0,y),T=T+Math.imul(F0,k0)|0,B=Math.imul(F0,y),S=S+Math.imul(h,J0)|0,T=T+Math.imul(h,G0)|0,T=T+Math.imul(o,J0)|0,B=B+Math.imul(o,G0)|0,S=S+Math.imul(M,E0)|0,T=T+Math.imul(M,M0)|0,T=T+Math.imul(v,E0)|0,B=B+Math.imul(v,M0)|0,S=S+Math.imul(i,j0)|0,T=T+Math.imul(i,g0)|0,T=T+Math.imul(V0,j0)|0,B=B+Math.imul(V0,g0)|0,S=S+Math.imul(b,v0)|0,T=T+Math.imul(b,S0)|0,T=T+Math.imul(a,v0)|0,B=B+Math.imul(a,S0)|0,S=S+Math.imul(U0,h0)|0,T=T+Math.imul(U0,p0)|0,T=T+Math.imul(Q0,h0)|0,B=B+Math.imul(Q0,p0)|0;var KU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(KU>>>26)|0,KU&=67108863,S=Math.imul(X0,J0),T=Math.imul(X0,G0),T=T+Math.imul(F0,J0)|0,B=Math.imul(F0,G0),S=S+Math.imul(h,E0)|0,T=T+Math.imul(h,M0)|0,T=T+Math.imul(o,E0)|0,B=B+Math.imul(o,M0)|0,S=S+Math.imul(M,j0)|0,T=T+Math.imul(M,g0)|0,T=T+Math.imul(v,j0)|0,B=B+Math.imul(v,g0)|0,S=S+Math.imul(i,v0)|0,T=T+Math.imul(i,S0)|0,T=T+Math.imul(V0,v0)|0,B=B+Math.imul(V0,S0)|0,S=S+Math.imul(b,h0)|0,T=T+Math.imul(b,p0)|0,T=T+Math.imul(a,h0)|0,B=B+Math.imul(a,p0)|0;var OU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(OU>>>26)|0,OU&=67108863,S=Math.imul(X0,E0),T=Math.imul(X0,M0),T=T+Math.imul(F0,E0)|0,B=Math.imul(F0,M0),S=S+Math.imul(h,j0)|0,T=T+Math.imul(h,g0)|0,T=T+Math.imul(o,j0)|0,B=B+Math.imul(o,g0)|0,S=S+Math.imul(M,v0)|0,T=T+Math.imul(M,S0)|0,T=T+Math.imul(v,v0)|0,B=B+Math.imul(v,S0)|0,S=S+Math.imul(i,h0)|0,T=T+Math.imul(i,p0)|0,T=T+Math.imul(V0,h0)|0,B=B+Math.imul(V0,p0)|0;var WU=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(WU>>>26)|0,WU&=67108863,S=Math.imul(X0,j0),T=Math.imul(X0,g0),T=T+Math.imul(F0,j0)|0,B=Math.imul(F0,g0),S=S+Math.imul(h,v0)|0,T=T+Math.imul(h,S0)|0,T=T+Math.imul(o,v0)|0,B=B+Math.imul(o,S0)|0,S=S+Math.imul(M,h0)|0,T=T+Math.imul(M,p0)|0,T=T+Math.imul(v,h0)|0,B=B+Math.imul(v,p0)|0;var gZ=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(gZ>>>26)|0,gZ&=67108863,S=Math.imul(X0,v0),T=Math.imul(X0,S0),T=T+Math.imul(F0,v0)|0,B=Math.imul(F0,S0),S=S+Math.imul(h,h0)|0,T=T+Math.imul(h,p0)|0,T=T+Math.imul(o,h0)|0,B=B+Math.imul(o,p0)|0;var wZ=(K+S|0)+((T&8191)<<13)|0;K=(B+(T>>>13)|0)+(wZ>>>26)|0,wZ&=67108863,S=Math.imul(X0,h0),T=Math.imul(X0,p0),T=T+Math.imul(F0,h0)|0,B=Math.imul(F0,p0);var yZ=(K+S|0)+((T&8191)<<13)|0;if(K=(B+(T>>>13)|0)+(yZ>>>26)|0,yZ&=67108863,Z[0]=m0,Z[1]=n0,Z[2]=i0,Z[3]=UU,Z[4]=ZU,Z[5]=XU,Z[6]=QU,Z[7]=YU,Z[8]=JU,Z[9]=VU,Z[10]=GU,Z[11]=IU,Z[12]=$U,Z[13]=KU,Z[14]=OU,Z[15]=WU,Z[16]=gZ,Z[17]=wZ,Z[18]=yZ,K!==0)Z[19]=K,O.length++;return O};if(!Math.imul)g=x;function f(X,Y,O){O.negative=Y.negative^X.negative,O.length=X.length+Y.length;var H=0,I=0;for(var Z=0;Z<O.length-1;Z++){var K=I;I=0;var S=H&67108863,T=Math.min(Z,Y.length-1);for(var B=Math.max(0,Z-X.length+1);B<=T;B++){var c=Z-B,d=X.words[c]|0,r=Y.words[B]|0,z0=d*r,Z0=z0&67108863;K=K+(z0/67108864|0)|0,Z0=Z0+S|0,S=Z0&67108863,K=K+(Z0>>>26)|0,I+=K>>>26,K&=67108863}O.words[Z]=S,H=K,K=I}if(H!==0)O.words[Z]=H;else O.length--;return O._strip()}function p(X,Y,O){return f(X,Y,O)}V.prototype.mulTo=function(X,Y){var O,H=this.length+X.length;if(this.length===10&&X.length===10)O=g(this,X,Y);else if(H<63)O=x(this,X,Y);else if(H<1024)O=f(this,X,Y);else O=p(this,X,Y);return O};function s(X,Y){this.x=X,this.y=Y}s.prototype.makeRBT=function(X){var Y=Array(X),O=V.prototype._countBits(X)-1;for(var H=0;H<X;H++)Y[H]=this.revBin(H,O,X);return Y},s.prototype.revBin=function(X,Y,O){if(X===0||X===O-1)return X;var H=0;for(var I=0;I<Y;I++)H|=(X&1)<<Y-I-1,X>>=1;return H},s.prototype.permute=function(X,Y,O,H,I,Z){for(var K=0;K<Z;K++)H[K]=Y[X[K]],I[K]=O[X[K]]},s.prototype.transform=function(X,Y,O,H,I,Z){this.permute(Z,X,Y,O,H,I);for(var K=1;K<I;K<<=1){var S=K<<1,T=Math.cos(2*Math.PI/S),B=Math.sin(2*Math.PI/S);for(var c=0;c<I;c+=S){var d=T,r=B;for(var z0=0;z0<K;z0++){var Z0=O[c+z0],t=H[c+z0],$0=O[c+z0+K],e=H[c+z0+K],Y0=d*$0-r*e;if(e=d*e+r*$0,$0=Y0,O[c+z0]=Z0+$0,H[c+z0]=t+e,O[c+z0+K]=Z0-$0,H[c+z0+K]=t-e,z0!==S)Y0=T*d-B*r,r=T*r+B*d,d=Y0}}}},s.prototype.guessLen13b=function(X,Y){var O=Math.max(Y,X)|1,H=O&1,I=0;for(O=O/2|0;O;O=O>>>1)I++;return 1<<I+1+H},s.prototype.conjugate=function(X,Y,O){if(O<=1)return;for(var H=0;H<O/2;H++){var I=X[H];X[H]=X[O-H-1],X[O-H-1]=I,I=Y[H],Y[H]=-Y[O-H-1],Y[O-H-1]=-I}},s.prototype.normalize13b=function(X,Y){var O=0;for(var H=0;H<Y/2;H++){var I=Math.round(X[2*H+1]/Y)*8192+Math.round(X[2*H]/Y)+O;if(X[H]=I&67108863,I<67108864)O=0;else O=I/67108864|0}return X},s.prototype.convert13b=function(X,Y,O,H){var I=0;for(var Z=0;Z<Y;Z++)I=I+(X[Z]|0),O[2*Z]=I&8191,I=I>>>13,O[2*Z+1]=I&8191,I=I>>>13;for(Z=2*Y;Z<H;++Z)O[Z]=0;F(I===0),F((I&-8192)===0)},s.prototype.stub=function(X){var Y=Array(X);for(var O=0;O<X;O++)Y[O]=0;return Y},s.prototype.mulp=function(X,Y,O){var H=2*this.guessLen13b(X.length,Y.length),I=this.makeRBT(H),Z=this.stub(H),K=Array(H),S=Array(H),T=Array(H),B=Array(H),c=Array(H),d=Array(H),r=O.words;r.length=H,this.convert13b(X.words,X.length,K,H),this.convert13b(Y.words,Y.length,B,H),this.transform(K,Z,S,T,H,I),this.transform(B,Z,c,d,H,I);for(var z0=0;z0<H;z0++){var Z0=S[z0]*c[z0]-T[z0]*d[z0];T[z0]=S[z0]*d[z0]+T[z0]*c[z0],S[z0]=Z0}return this.conjugate(S,T,H),this.transform(S,T,r,Z,H,I),this.conjugate(r,Z,H),this.normalize13b(r,H),O.negative=X.negative^Y.negative,O.length=X.length+Y.length,O._strip()},V.prototype.mul=function(X){var Y=new V(null);return Y.words=Array(this.length+X.length),this.mulTo(X,Y)},V.prototype.mulf=function(X){var Y=new V(null);return Y.words=Array(this.length+X.length),p(this,X,Y)},V.prototype.imul=function(X){return this.clone().mulTo(X,this)},V.prototype.imuln=function(X){var Y=X<0;if(Y)X=-X;F(typeof X==="number"),F(X<67108864);var O=0;for(var H=0;H<this.length;H++){var I=(this.words[H]|0)*X,Z=(I&67108863)+(O&67108863);O>>=26,O+=I/67108864|0,O+=Z>>>26,this.words[H]=Z&67108863}if(O!==0)this.words[H]=O,this.length++;return this.length=X===0?1:this.length,Y?this.ineg():this},V.prototype.muln=function(X){return this.clone().imuln(X)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(X){var Y=N(X);if(Y.length===0)return new V(1);var O=this;for(var H=0;H<Y.length;H++,O=O.sqr())if(Y[H]!==0)break;if(++H<Y.length)for(var I=O.sqr();H<Y.length;H++,I=I.sqr()){if(Y[H]===0)continue;O=O.mul(I)}return O},V.prototype.iushln=function(X){F(typeof X==="number"&&X>=0);var Y=X%26,O=(X-Y)/26,H=67108863>>>26-Y<<26-Y,I;if(Y!==0){var Z=0;for(I=0;I<this.length;I++){var K=this.words[I]&H,S=(this.words[I]|0)-K<<Y;this.words[I]=S|Z,Z=K>>>26-Y}if(Z)this.words[I]=Z,this.length++}if(O!==0){for(I=this.length-1;I>=0;I--)this.words[I+O]=this.words[I];for(I=0;I<O;I++)this.words[I]=0;this.length+=O}return this._strip()},V.prototype.ishln=function(X){return F(this.negative===0),this.iushln(X)},V.prototype.iushrn=function(X,Y,O){F(typeof X==="number"&&X>=0);var H;if(Y)H=(Y-Y%26)/26;else H=0;var I=X%26,Z=Math.min((X-I)/26,this.length),K=67108863^67108863>>>I<<I,S=O;if(H-=Z,H=Math.max(0,H),S){for(var T=0;T<Z;T++)S.words[T]=this.words[T];S.length=Z}if(Z===0);else if(this.length>Z){this.length-=Z;for(T=0;T<this.length;T++)this.words[T]=this.words[T+Z]}else this.words[0]=0,this.length=1;var B=0;for(T=this.length-1;T>=0&&(B!==0||T>=H);T--){var c=this.words[T]|0;this.words[T]=B<<26-I|c>>>I,B=c&K}if(S&&B!==0)S.words[S.length++]=B;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},V.prototype.ishrn=function(X,Y,O){return F(this.negative===0),this.iushrn(X,Y,O)},V.prototype.shln=function(X){return this.clone().ishln(X)},V.prototype.ushln=function(X){return this.clone().iushln(X)},V.prototype.shrn=function(X){return this.clone().ishrn(X)},V.prototype.ushrn=function(X){return this.clone().iushrn(X)},V.prototype.testn=function(X){F(typeof X==="number"&&X>=0);var Y=X%26,O=(X-Y)/26,H=1<<Y;if(this.length<=O)return!1;var I=this.words[O];return!!(I&H)},V.prototype.imaskn=function(X){F(typeof X==="number"&&X>=0);var Y=X%26,O=(X-Y)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(Y!==0)O++;if(this.length=Math.min(O,this.length),Y!==0){var H=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=H}return this._strip()},V.prototype.maskn=function(X){return this.clone().imaskn(X)},V.prototype.iaddn=function(X){if(F(typeof X==="number"),F(X<67108864),X<0)return this.isubn(-X);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=X)return this.words[0]=X-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(X),this.negative=1,this}return this._iaddn(X)},V.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)if(this.words[Y]-=67108864,Y===this.length-1)this.words[Y+1]=1;else this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},V.prototype.isubn=function(X){if(F(typeof X==="number"),F(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this._strip()},V.prototype.addn=function(X){return this.clone().iaddn(X)},V.prototype.subn=function(X){return this.clone().isubn(X)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(X,Y,O){var H=X.length+O,I;this._expand(H);var Z,K=0;for(I=0;I<X.length;I++){Z=(this.words[I+O]|0)+K;var S=(X.words[I]|0)*Y;Z-=S&67108863,K=(Z>>26)-(S/67108864|0),this.words[I+O]=Z&67108863}for(;I<this.length-O;I++)Z=(this.words[I+O]|0)+K,K=Z>>26,this.words[I+O]=Z&67108863;if(K===0)return this._strip();F(K===-1),K=0;for(I=0;I<this.length;I++)Z=-(this.words[I]|0)+K,K=Z>>26,this.words[I]=Z&67108863;return this.negative=1,this._strip()},V.prototype._wordDiv=function(X,Y){var O=this.length-X.length,H=this.clone(),I=X,Z=I.words[I.length-1]|0,K=this._countBits(Z);if(O=26-K,O!==0)I=I.ushln(O),H.iushln(O),Z=I.words[I.length-1]|0;var S=H.length-I.length,T;if(Y!=="mod"){T=new V(null),T.length=S+1,T.words=Array(T.length);for(var B=0;B<T.length;B++)T.words[B]=0}var c=H.clone()._ishlnsubmul(I,1,S);if(c.negative===0){if(H=c,T)T.words[S]=1}for(var d=S-1;d>=0;d--){var r=(H.words[I.length+d]|0)*67108864+(H.words[I.length+d-1]|0);r=Math.min(r/Z|0,67108863),H._ishlnsubmul(I,r,d);while(H.negative!==0)if(r--,H.negative=0,H._ishlnsubmul(I,1,d),!H.isZero())H.negative^=1;if(T)T.words[d]=r}if(T)T._strip();if(H._strip(),Y!=="div"&&O!==0)H.iushrn(O);return{div:T||null,mod:H}},V.prototype.divmod=function(X,Y,O){if(F(!X.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var H,I,Z;if(this.negative!==0&&X.negative===0){if(Z=this.neg().divmod(X,Y),Y!=="mod")H=Z.div.neg();if(Y!=="div"){if(I=Z.mod.neg(),O&&I.negative!==0)I.iadd(X)}return{div:H,mod:I}}if(this.negative===0&&X.negative!==0){if(Z=this.divmod(X.neg(),Y),Y!=="mod")H=Z.div.neg();return{div:H,mod:Z.mod}}if((this.negative&X.negative)!==0){if(Z=this.neg().divmod(X.neg(),Y),Y!=="div"){if(I=Z.mod.neg(),O&&I.negative!==0)I.isub(X)}return{div:Z.div,mod:I}}if(X.length>this.length||this.cmp(X)<0)return{div:new V(0),mod:this};if(X.length===1){if(Y==="div")return{div:this.divn(X.words[0]),mod:null};if(Y==="mod")return{div:null,mod:new V(this.modrn(X.words[0]))};return{div:this.divn(X.words[0]),mod:new V(this.modrn(X.words[0]))}}return this._wordDiv(X,Y)},V.prototype.div=function(X){return this.divmod(X,"div",!1).div},V.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},V.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},V.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var O=Y.div.negative!==0?Y.mod.isub(X):Y.mod,H=X.ushrn(1),I=X.andln(1),Z=O.cmp(H);if(Z<0||I===1&&Z===0)return Y.div;return Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},V.prototype.modrn=function(X){var Y=X<0;if(Y)X=-X;F(X<=67108863);var O=67108864%X,H=0;for(var I=this.length-1;I>=0;I--)H=(O*H+(this.words[I]|0))%X;return Y?-H:H},V.prototype.modn=function(X){return this.modrn(X)},V.prototype.idivn=function(X){var Y=X<0;if(Y)X=-X;F(X<=67108863);var O=0;for(var H=this.length-1;H>=0;H--){var I=(this.words[H]|0)+O*67108864;this.words[H]=I/X|0,O=I%X}return this._strip(),Y?this.ineg():this},V.prototype.divn=function(X){return this.clone().idivn(X)},V.prototype.egcd=function(X){F(X.negative===0),F(!X.isZero());var Y=this,O=X.clone();if(Y.negative!==0)Y=Y.umod(X);else Y=Y.clone();var H=new V(1),I=new V(0),Z=new V(0),K=new V(1),S=0;while(Y.isEven()&&O.isEven())Y.iushrn(1),O.iushrn(1),++S;var T=O.clone(),B=Y.clone();while(!Y.isZero()){for(var c=0,d=1;(Y.words[0]&d)===0&&c<26;++c,d<<=1);if(c>0){Y.iushrn(c);while(c-- >0){if(H.isOdd()||I.isOdd())H.iadd(T),I.isub(B);H.iushrn(1),I.iushrn(1)}}for(var r=0,z0=1;(O.words[0]&z0)===0&&r<26;++r,z0<<=1);if(r>0){O.iushrn(r);while(r-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(T),K.isub(B);Z.iushrn(1),K.iushrn(1)}}if(Y.cmp(O)>=0)Y.isub(O),H.isub(Z),I.isub(K);else O.isub(Y),Z.isub(H),K.isub(I)}return{a:Z,b:K,gcd:O.iushln(S)}},V.prototype._invmp=function(X){F(X.negative===0),F(!X.isZero());var Y=this,O=X.clone();if(Y.negative!==0)Y=Y.umod(X);else Y=Y.clone();var H=new V(1),I=new V(0),Z=O.clone();while(Y.cmpn(1)>0&&O.cmpn(1)>0){for(var K=0,S=1;(Y.words[0]&S)===0&&K<26;++K,S<<=1);if(K>0){Y.iushrn(K);while(K-- >0){if(H.isOdd())H.iadd(Z);H.iushrn(1)}}for(var T=0,B=1;(O.words[0]&B)===0&&T<26;++T,B<<=1);if(T>0){O.iushrn(T);while(T-- >0){if(I.isOdd())I.iadd(Z);I.iushrn(1)}}if(Y.cmp(O)>=0)Y.isub(O),H.isub(I);else O.isub(Y),I.isub(H)}var c;if(Y.cmpn(1)===0)c=H;else c=I;if(c.cmpn(0)<0)c.iadd(X);return c},V.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),O=X.clone();Y.negative=0,O.negative=0;for(var H=0;Y.isEven()&&O.isEven();H++)Y.iushrn(1),O.iushrn(1);do{while(Y.isEven())Y.iushrn(1);while(O.isEven())O.iushrn(1);var I=Y.cmp(O);if(I<0){var Z=Y;Y=O,O=Z}else if(I===0||O.cmpn(1)===0)break;Y.isub(O)}while(!0);return O.iushln(H)},V.prototype.invm=function(X){return this.egcd(X).a.umod(X)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(X){return this.words[0]&X},V.prototype.bincn=function(X){F(typeof X==="number");var Y=X%26,O=(X-Y)/26,H=1<<Y;if(this.length<=O)return this._expand(O+1),this.words[O]|=H,this;var I=H;for(var Z=O;I!==0&&Z<this.length;Z++){var K=this.words[Z]|0;K+=I,I=K>>>26,K&=67108863,this.words[Z]=K}if(I!==0)this.words[Z]=I,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this._strip();var O;if(this.length>1)O=1;else{if(Y)X=-X;F(X<=67108863,"Number is too big");var H=this.words[0]|0;O=H===X?0:H<X?-1:1}if(this.negative!==0)return-O|0;return O},V.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);if(this.negative!==0)return-Y|0;return Y},V.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;var Y=0;for(var O=this.length-1;O>=0;O--){var H=this.words[O]|0,I=X.words[O]|0;if(H===I)continue;if(H<I)Y=-1;else if(H>I)Y=1;break}return Y},V.prototype.gtn=function(X){return this.cmpn(X)===1},V.prototype.gt=function(X){return this.cmp(X)===1},V.prototype.gten=function(X){return this.cmpn(X)>=0},V.prototype.gte=function(X){return this.cmp(X)>=0},V.prototype.ltn=function(X){return this.cmpn(X)===-1},V.prototype.lt=function(X){return this.cmp(X)===-1},V.prototype.lten=function(X){return this.cmpn(X)<=0},V.prototype.lte=function(X){return this.cmp(X)<=0},V.prototype.eqn=function(X){return this.cmpn(X)===0},V.prototype.eq=function(X){return this.cmp(X)===0},V.red=function(X){return new Q(X)},V.prototype.toRed=function(X){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},V.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(X){return this.red=X,this},V.prototype.forceRed=function(X){return F(!this.red,"Already a number in reduction context"),this._forceRed(X)},V.prototype.redAdd=function(X){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},V.prototype.redIAdd=function(X){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},V.prototype.redSub=function(X){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},V.prototype.redISub=function(X){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},V.prototype.redShl=function(X){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},V.prototype.redMul=function(X){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},V.prototype.redIMul=function(X){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},V.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(X){return F(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var O0={k256:null,p224:null,p192:null,p25519:null};function C0(X,Y){this.name=X,this.p=new V(Y,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C0.prototype._tmp=function(){var X=new V(null);return X.words=Array(Math.ceil(this.n/13)),X},C0.prototype.ireduce=function(X){var Y=X,O;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),O=Y.bitLength();while(O>this.n);var H=O<this.n?-1:Y.ucmp(this.p);if(H===0)Y.words[0]=0,Y.length=1;else if(H>0)Y.isub(this.p);else if(Y.strip!==void 0)Y.strip();else Y._strip();return Y},C0.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},C0.prototype.imulK=function(X){return X.imul(this.k)};function W0(){C0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(W0,C0),W0.prototype.split=function(X,Y){var O=4194303,H=Math.min(X.length,9);for(var I=0;I<H;I++)Y.words[I]=X.words[I];if(Y.length=H,X.length<=9){X.words[0]=0,X.length=1;return}var Z=X.words[9];Y.words[Y.length++]=Z&O;for(I=10;I<X.length;I++){var K=X.words[I]|0;X.words[I-10]=(K&O)<<4|Z>>>22,Z=K}if(Z>>>=22,X.words[I-10]=Z,Z===0&&X.length>10)X.length-=10;else X.length-=9},W0.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;var Y=0;for(var O=0;O<X.length;O++){var H=X.words[O]|0;Y+=H*977,X.words[O]=Y&67108863,Y=H*64+(Y/67108864|0)}if(X.words[X.length-1]===0){if(X.length--,X.words[X.length-1]===0)X.length--}return X};function n(){C0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(n,C0);function I0(){C0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(I0,C0);function U(){C0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(U,C0),U.prototype.imulK=function(X){var Y=0;for(var O=0;O<X.length;O++){var H=(X.words[O]|0)*19+Y,I=H&67108863;H>>>=26,X.words[O]=I,Y=H}if(Y!==0)X.words[X.length++]=Y;return X},V._prime=function(X){if(O0[X])return O0[X];var Y;if(X==="k256")Y=new W0;else if(X==="p224")Y=new n;else if(X==="p192")Y=new I0;else if(X==="p25519")Y=new U;else throw Error("Unknown prime "+X);return O0[X]=Y,Y};function Q(X){if(typeof X==="string"){var Y=V._prime(X);this.m=Y.p,this.prime=Y}else F(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}Q.prototype._verify1=function(X){F(X.negative===0,"red works only with positives"),F(X.red,"red works only with red numbers")},Q.prototype._verify2=function(X,Y){F((X.negative|Y.negative)===0,"red works only with positives"),F(X.red&&X.red===Y.red,"red works only with red numbers")},Q.prototype.imod=function(X){if(this.prime)return this.prime.ireduce(X)._forceRed(this);return A(X,X.umod(this.m)._forceRed(this)),X},Q.prototype.neg=function(X){if(X.isZero())return X.clone();return this.m.sub(X)._forceRed(this)},Q.prototype.add=function(X,Y){this._verify2(X,Y);var O=X.add(Y);if(O.cmp(this.m)>=0)O.isub(this.m);return O._forceRed(this)},Q.prototype.iadd=function(X,Y){this._verify2(X,Y);var O=X.iadd(Y);if(O.cmp(this.m)>=0)O.isub(this.m);return O},Q.prototype.sub=function(X,Y){this._verify2(X,Y);var O=X.sub(Y);if(O.cmpn(0)<0)O.iadd(this.m);return O._forceRed(this)},Q.prototype.isub=function(X,Y){this._verify2(X,Y);var O=X.isub(Y);if(O.cmpn(0)<0)O.iadd(this.m);return O},Q.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},Q.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},Q.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},Q.prototype.isqr=function(X){return this.imul(X,X.clone())},Q.prototype.sqr=function(X){return this.mul(X,X)},Q.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(F(Y%2===1),Y===3){var O=this.m.add(new V(1)).iushrn(2);return this.pow(X,O)}var H=this.m.subn(1),I=0;while(!H.isZero()&&H.andln(1)===0)I++,H.iushrn(1);F(!H.isZero());var Z=new V(1).toRed(this),K=Z.redNeg(),S=this.m.subn(1).iushrn(1),T=this.m.bitLength();T=new V(2*T*T).toRed(this);while(this.pow(T,S).cmp(K)!==0)T.redIAdd(K);var B=this.pow(T,H),c=this.pow(X,H.addn(1).iushrn(1)),d=this.pow(X,H),r=I;while(d.cmp(Z)!==0){var z0=d;for(var Z0=0;z0.cmp(Z)!==0;Z0++)z0=z0.redSqr();F(Z0<r);var t=this.pow(B,new V(1).iushln(r-Z0-1));c=c.redMul(t),B=t.redSqr(),d=d.redMul(B),r=Z0}return c},Q.prototype.invm=function(X){var Y=X._invmp(this.m);if(Y.negative!==0)return Y.negative=0,this.imod(Y).redNeg();else return this.imod(Y)},Q.prototype.pow=function(X,Y){if(Y.isZero())return new V(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var O=4,H=Array(1<<O);H[0]=new V(1).toRed(this),H[1]=X;for(var I=2;I<H.length;I++)H[I]=this.mul(H[I-1],X);var Z=H[0],K=0,S=0,T=Y.bitLength()%26;if(T===0)T=26;for(I=Y.length-1;I>=0;I--){var B=Y.words[I];for(var c=T-1;c>=0;c--){var d=B>>c&1;if(Z!==H[0])Z=this.sqr(Z);if(d===0&&K===0){S=0;continue}if(K<<=1,K|=d,S++,S!==O&&(I!==0||c!==0))continue;Z=this.mul(Z,H[K]),S=0,K=0}T=26}return Z},Q.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},Q.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},V.mont=function(X){return new J(X)};function J(X){if(Q.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}R(J,Q),J.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},J.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},J.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var O=X.imul(Y),H=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=O.isub(H).iushrn(this.shift),Z=I;if(I.cmp(this.m)>=0)Z=I.isub(this.m);else if(I.cmpn(0)<0)Z=I.iadd(this.m);return Z._forceRed(this)},J.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new V(0)._forceRed(this);var O=X.mul(Y),H=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=O.isub(H).iushrn(this.shift),Z=I;if(I.cmp(this.m)>=0)Z=I.isub(this.m);else if(I.cmpn(0)<0)Z=I.iadd(this.m);return Z._forceRed(this)},J.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof $>"u"||$,G)}),$Y=A0((G,$)=>{var W=wG(),C=qZ(),F=EU().Buffer;function R(k){var L=k.modulus.byteLength(),E;do E=new W(C(L));while(E.cmp(k.modulus)>=0||!E.umod(k.prime1)||!E.umod(k.prime2));return E}function V(k){var L=R(k),E=L.toRed(W.mont(k.modulus)).redPow(new W(k.publicExponent)).fromRed();return{blinder:E,unblinder:L.invm(k.modulus)}}function z(k,L){var E=V(L),A=L.modulus.byteLength(),D=new W(k).mul(E.blinder).umod(L.modulus),P=D.toRed(W.mont(L.prime1)),q=D.toRed(W.mont(L.prime2)),_=L.coefficient,j=L.prime1,N=L.prime2,x=P.redPow(L.exponent1).fromRed(),g=q.redPow(L.exponent2).fromRed(),f=x.isub(g).imul(_).umod(j).imul(N);return g.iadd(f).imul(E.unblinder).umod(L.modulus).toArrayLike(F,"be",A)}z.getr=R,$.exports=z}),yG=A0((G,$)=>{var W=JY(),C=qZ(),F=PZ(),R=VY(),V=GY(),z=DX(),k=IY(),L=$Y(),E=EU().Buffer;$.exports=function(q,_,j){var N;if(q.padding)N=q.padding;else if(j)N=1;else N=4;var x=W(q),g;if(N===4)g=A(x,_);else if(N===1)g=D(x,_,j);else if(N===3){if(g=new z(_),g.cmp(x.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(j)return L(g,x);else return k(g,x)};function A(q,_){var j=q.modulus.byteLength(),N=_.length,x=F("sha1").update(E.alloc(0)).digest(),g=x.length,f=2*g;if(N>j-f-2)throw Error("message too long");var p=E.alloc(j-N-f-2),s=j-g-1,O0=C(g),C0=V(E.concat([x,p,E.alloc(1,1),_],s),R(O0,s)),W0=V(O0,R(C0,g));return new z(E.concat([E.alloc(1),W0,C0],j))}function D(q,_,j){var N=_.length,x=q.modulus.byteLength();if(N>x-11)throw Error("message too long");var g;if(j)g=E.alloc(x-N-3,255);else g=P(x-N-3);return new z(E.concat([E.from([0,j?1:2]),g,E.alloc(1),_],x))}function P(q){var _=E.allocUnsafe(q),j=0,N=C(q*2),x=0,g;while(j<q){if(x===N.length)N=C(q*2),x=0;if(g=N[x++],g)_[j++]=g}return _}}),fG=A0((G,$)=>{var W=JY(),C=VY(),F=GY(),R=DX(),V=$Y(),z=PZ(),k=IY(),L=EU().Buffer;$.exports=function(P,q,_){var j;if(P.padding)j=P.padding;else if(_)j=1;else j=4;var N=W(P),x=N.modulus.byteLength();if(q.length>x||new R(q).cmp(N.modulus)>=0)throw Error("decryption error");var g;if(_)g=k(new R(q),N);else g=V(q,N);var f=L.alloc(x-g.length);if(g=L.concat([f,g],x),j===4)return E(N,g);else if(j===1)return A(N,g,_);else if(j===3)return g;else throw Error("unknown padding")};function E(P,q){var _=P.modulus.byteLength(),j=z("sha1").update(L.alloc(0)).digest(),N=j.length;if(q[0]!==0)throw Error("decryption error");var x=q.slice(1,N+1),g=q.slice(N+1),f=F(x,C(g,N)),p=F(g,C(f,_-N-1));if(D(j,p.slice(0,N)))throw Error("decryption error");var s=N;while(p[s]===0)s++;if(p[s++]!==1)throw Error("decryption error");return p.slice(s)}function A(P,q,_){var j=q.slice(0,2),N=2,x=0;while(q[N++]!==0)if(N>=q.length){x++;break}var g=q.slice(2,N-1);if(j.toString("hex")!=="0002"&&!_||j.toString("hex")!=="0001"&&_)x++;if(g.length<8)x++;if(x)throw Error("decryption error");return q.slice(N)}function D(P,q){P=L.from(P),q=L.from(q);var _=0,j=P.length;if(P.length!==q.length)_++,j=Math.min(P.length,q.length);var N=-1;while(++N<j)_+=P[N]^q[N];return _}}),$X=A0((G)=>{G.publicEncrypt=yG(),G.privateDecrypt=fG(),G.privateEncrypt=function($,W){return G.publicEncrypt($,W,!0)},G.publicDecrypt=function($,W){return G.privateDecrypt($,W,!0)}}),cG=A0((G)=>{var $=(SU(),l0(PU));if(typeof $.publicEncrypt!=="function")$=$X();if(G.publicEncrypt=$.publicEncrypt,G.privateDecrypt=$.privateDecrypt,typeof $.privateEncrypt!=="function")G.privateEncrypt=$X().privateEncrypt;else G.privateEncrypt=$.privateEncrypt;if(typeof $.publicDecrypt!=="function")G.publicDecrypt=$X().publicDecrypt;else G.publicDecrypt=$.publicDecrypt}),pG=A0((G)=>{var $=EU(),W=qZ(),C=$.Buffer,F=$.kMaxLength,R=globalThis.crypto||globalThis.msCrypto,V=Math.pow(2,32)-1;function z(D,P){if(typeof D!=="number"||D!==D)throw TypeError("offset must be a number");if(D>V||D<0)throw TypeError("offset must be a uint32");if(D>F||D>P)throw RangeError("offset out of range")}function k(D,P,q){if(typeof D!=="number"||D!==D)throw TypeError("size must be a number");if(D>V||D<0)throw TypeError("size must be a uint32");if(D+P>q||D>F)throw RangeError("buffer too small")}R&&R.getRandomValues,G.randomFill=L,G.randomFillSync=A;function L(D,P,q,_){if(!C.isBuffer(D)&&!(D instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof P==="function")_=P,P=0,q=D.length;else if(typeof q==="function")_=q,q=D.length-P;else if(typeof _!=="function")throw TypeError('"cb" argument must be a function');return z(P,D.length),k(q,P,D.length),E(D,P,q,_)}function E(D,P,q,_){if(!1)var j,N;if(_){W(q,function(g,f){if(g)return _(g);f.copy(D,P),_(null,D)});return}var x=W(q);return x.copy(D,P),D}function A(D,P,q){if(typeof P>"u")P=0;if(!C.isBuffer(D)&&!(D instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(z(P,D.length),q===void 0)q=D.length-P;return k(q,P,D.length),E(D,P,q)}}),hG=A0((G,$)=>{var W=(SU(),l0(PU));if(typeof W.randomFill==="function"&&typeof W.randomFillSync==="function")G.randomFill=W.randomFill,G.randomFillSync=W.randomFillSync;else $.exports=pG()}),uG=A0((G)=>{G.randomBytes=G.rng=G.pseudoRandomBytes=G.prng=qZ(),G.createHash=G.Hash=PZ(),G.createHmac=G.Hmac=fQ();var $=OV(),W=Object.keys($),C=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(W);G.getHashes=function(){return C};var F=sQ();G.pbkdf2=F.pbkdf2,G.pbkdf2Sync=F.pbkdf2Sync;var R=mV();G.Cipher=R.Cipher,G.createCipher=R.createCipher,G.Cipheriv=R.Cipheriv,G.createCipheriv=R.createCipheriv,G.Decipher=R.Decipher,G.createDecipher=R.createDecipher,G.Decipheriv=R.Decipheriv,G.createDecipheriv=R.createDecipheriv,G.getCiphers=R.getCiphers,G.listCiphers=R.listCiphers;var V=sV();G.DiffieHellmanGroup=V.DiffieHellmanGroup,G.createDiffieHellmanGroup=V.createDiffieHellmanGroup,G.getDiffieHellman=V.getDiffieHellman,G.createDiffieHellman=V.createDiffieHellman,G.DiffieHellman=V.DiffieHellman;var z=tV();G.createSign=z.createSign,G.Sign=z.Sign,G.createVerify=z.createVerify,G.Verify=z.Verify,G.createECDH=DG();var k=cG();G.publicEncrypt=k.publicEncrypt,G.privateEncrypt=k.privateEncrypt,G.publicDecrypt=k.publicDecrypt,G.privateDecrypt=k.privateDecrypt;var L=hG();G.randomFill=L.randomFill,G.randomFillSync=L.randomFillSync,G.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
15
|
-
we accept pull requests
|
|
16
|
-
https://github.com/browserify/crypto-browserify`)},G.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}}),u0=KV(uG(),1),bG=u0.prng,dG=u0.pseudoRandomBytes,lG=u0.rng,zX=u0.randomBytes,oG=u0.Hash,nG=u0.createHash,mG=u0.Hmac,sG=u0.createHmac,tG=u0.getHashes,aG=u0.pbkdf2,rG=u0.pbkdf2Sync,eG=u0.Cipher,iG=u0.createCipher,UI=u0.Cipheriv,ZI=u0.createCipheriv,XI=u0.Decipher,QI=u0.createDecipher,YI=u0.Decipheriv,JI=u0.createDecipheriv,VI=u0.getCiphers,GI=u0.listCiphers,II=u0.DiffieHellmanGroup,$I=u0.createDiffieHellmanGroup,KI=u0.getDiffieHellman,OI=u0.createDiffieHellman,WI=u0.DiffieHellman,HI=u0.createSign,FI=u0.Sign,AI=u0.createVerify,CI=u0.Verify,TI=u0.createECDH,DI=u0.publicEncrypt,zI=u0.privateEncrypt,LI=u0.publicDecrypt,EI=u0.privateDecrypt,MI=u0.randomFill,RI=u0.randomFillSync,SI=u0.createCredentials,qI=u0.constants,vI=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];BI=crypto,xI=crypto});SU();import{db as vY}from"@stacksjs/database";var{defineProperty:qX,getOwnPropertyNames:NI,getOwnPropertyDescriptor:gI}=Object,wI=Object.prototype.hasOwnProperty,KY=new WeakMap,yI=(G)=>{var $=KY.get(G),W;if($)return $;if($=qX({},"__esModule",{value:!0}),G&&typeof G==="object"||typeof G==="function")NI(G).map((C)=>!wI.call($,C)&&qX($,C,{get:()=>G[C],enumerable:!(W=gI(G,C))||W.enumerable}));return KY.set(G,$),$},fI=(G,$)=>{for(var W in $)qX(G,W,{get:$[W],enumerable:!0,configurable:!0,set:(C)=>$[W]=()=>C})},cI=(G,$)=>()=>(G&&($=G(G=0)),$),HY={};fI(HY,{transcode:()=>AY,resolveObjectURL:()=>FY,kStringMaxLength:()=>KZ,kMaxLength:()=>EY,isUtf8:()=>RY,isAscii:()=>MY,default:()=>qY,createObjectURL:()=>BX,constants:()=>xX,btoa:()=>_X,atob:()=>vX,File:()=>jX,Buffer:()=>SY,Blob:()=>kX});function FY(G){throw Error("Not implemented")}function AY(G,$,W){throw Error("Not implemented")}var CY,NZ,TY,DY,zY,LY,LX=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports),pI=(G,$)=>{for(var W in $)NZ(G,W,{get:$[W],enumerable:!0})},PX=(G,$,W,C)=>{if($&&typeof $=="object"||typeof $=="function")for(let F of DY($))!LY.call(G,F)&&F!==W&&NZ(G,F,{get:()=>$[F],enumerable:!(C=TY($,F))||C.enumerable});return G},hI=(G,$,W)=>(PX(G,$,"default"),W&&PX(W,$,"default")),EX=(G,$,W)=>(W=G!=null?CY(zY(G)):{},PX($||!G||!G.__esModule?NZ(W,"default",{value:G,enumerable:!0}):W,G)),OY,WY,vZ,MX,RX,SX,KZ,EY=9007199254740991,kX,jX,vX,_X,BX,MY=(G)=>ArrayBuffer.isView(G)?G.every(($)=>$<128):G.split("").every(($)=>$.charCodeAt(0)<128),RY=(G)=>{throw Error("Not implemented")},xX,SY,qY,uI=cI(()=>{CY=Object.create,NZ=Object.defineProperty,TY=Object.getOwnPropertyDescriptor,DY=Object.getOwnPropertyNames,zY=Object.getPrototypeOf,LY=Object.prototype.hasOwnProperty,OY=LX((G)=>{G.byteLength=k,G.toByteArray=E,G.fromByteArray=P;var $=[],W=[],C=typeof Uint8Array<"u"?Uint8Array:Array,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,V=F.length;R<V;++R)$[R]=F[R],W[F.charCodeAt(R)]=R;var R,V;W[45]=62,W[95]=63;function z(q){var _=q.length;if(_%4>0)throw Error("Invalid string. Length must be a multiple of 4");var j=q.indexOf("=");j===-1&&(j=_);var N=j===_?0:4-j%4;return[j,N]}function k(q){var _=z(q),j=_[0],N=_[1];return(j+N)*3/4-N}function L(q,_,j){return(_+j)*3/4-j}function E(q){var _,j=z(q),N=j[0],x=j[1],g=new C(L(q,N,x)),f=0,p=x>0?N-4:N,s;for(s=0;s<p;s+=4)_=W[q.charCodeAt(s)]<<18|W[q.charCodeAt(s+1)]<<12|W[q.charCodeAt(s+2)]<<6|W[q.charCodeAt(s+3)],g[f++]=_>>16&255,g[f++]=_>>8&255,g[f++]=_&255;return x===2&&(_=W[q.charCodeAt(s)]<<2|W[q.charCodeAt(s+1)]>>4,g[f++]=_&255),x===1&&(_=W[q.charCodeAt(s)]<<10|W[q.charCodeAt(s+1)]<<4|W[q.charCodeAt(s+2)]>>2,g[f++]=_>>8&255,g[f++]=_&255),g}function A(q){return $[q>>18&63]+$[q>>12&63]+$[q>>6&63]+$[q&63]}function D(q,_,j){for(var N,x=[],g=_;g<j;g+=3)N=(q[g]<<16&16711680)+(q[g+1]<<8&65280)+(q[g+2]&255),x.push(A(N));return x.join("")}function P(q){for(var _,j=q.length,N=j%3,x=[],g=16383,f=0,p=j-N;f<p;f+=g)x.push(D(q,f,f+g>p?p:f+g));return N===1?(_=q[j-1],x.push($[_>>2]+$[_<<4&63]+"==")):N===2&&(_=(q[j-2]<<8)+q[j-1],x.push($[_>>10]+$[_>>4&63]+$[_<<2&63]+"=")),x.join("")}}),WY=LX((G)=>{G.read=function($,W,C,F,R){var V,z,k=R*8-F-1,L=(1<<k)-1,E=L>>1,A=-7,D=C?R-1:0,P=C?-1:1,q=$[W+D];for(D+=P,V=q&(1<<-A)-1,q>>=-A,A+=k;A>0;V=V*256+$[W+D],D+=P,A-=8);for(z=V&(1<<-A)-1,V>>=-A,A+=F;A>0;z=z*256+$[W+D],D+=P,A-=8);if(V===0)V=1-E;else{if(V===L)return z?NaN:(q?-1:1)*(1/0);z=z+Math.pow(2,F),V=V-E}return(q?-1:1)*z*Math.pow(2,V-F)},G.write=function($,W,C,F,R,V){var z,k,L,E=V*8-R-1,A=(1<<E)-1,D=A>>1,P=R===23?Math.pow(2,-24)-Math.pow(2,-77):0,q=F?0:V-1,_=F?1:-1,j=W<0||W===0&&1/W<0?1:0;for(W=Math.abs(W),isNaN(W)||W===1/0?(k=isNaN(W)?1:0,z=A):(z=Math.floor(Math.log(W)/Math.LN2),W*(L=Math.pow(2,-z))<1&&(z--,L*=2),z+D>=1?W+=P/L:W+=P*Math.pow(2,1-D),W*L>=2&&(z++,L/=2),z+D>=A?(k=0,z=A):z+D>=1?(k=(W*L-1)*Math.pow(2,R),z=z+D):(k=W*Math.pow(2,D-1)*Math.pow(2,R),z=0));R>=8;$[C+q]=k&255,q+=_,k/=256,R-=8);for(z=z<<R|k,E+=R;E>0;$[C+q]=z&255,q+=_,z/=256,E-=8);$[C+q-_]|=j*128}}),vZ=LX((G)=>{var $=OY(),W=WY(),C=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=z,G.SlowBuffer=x,G.INSPECT_MAX_BYTES=50;var F=2147483647;G.kMaxLength=F,z.TYPED_ARRAY_SUPPORT=R(),!z.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function R(){try{let M=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(M,v),M.foo()===42}catch{return!1}}Object.defineProperty(z.prototype,"parent",{enumerable:!0,get:function(){if(z.isBuffer(this))return this.buffer}}),Object.defineProperty(z.prototype,"offset",{enumerable:!0,get:function(){if(z.isBuffer(this))return this.byteOffset}});function V(M){if(M>F)throw RangeError('The value "'+M+'" is invalid for option "size"');let v=new Uint8Array(M);return Object.setPrototypeOf(v,z.prototype),v}function z(M,v,w){if(typeof M=="number"){if(typeof v=="string")throw TypeError('The "string" argument must be of type string. Received type number');return A(M)}return k(M,v,w)}z.poolSize=8192;function k(M,v,w){if(typeof M=="string")return D(M,v);if(ArrayBuffer.isView(M))return q(M);if(M==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(a(M,ArrayBuffer)||M&&a(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(a(M,SharedArrayBuffer)||M&&a(M.buffer,SharedArrayBuffer)))return _(M,v,w);if(typeof M=="number")throw TypeError('The "value" argument must not be of type number. Received type number');let h=M.valueOf&&M.valueOf();if(h!=null&&h!==M)return z.from(h,v,w);let o=j(M);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return z.from(M[Symbol.toPrimitive]("string"),v,w);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}z.from=function(M,v,w){return k(M,v,w)},Object.setPrototypeOf(z.prototype,Uint8Array.prototype),Object.setPrototypeOf(z,Uint8Array);function L(M){if(typeof M!="number")throw TypeError('"size" argument must be of type number');if(M<0)throw RangeError('The value "'+M+'" is invalid for option "size"')}function E(M,v,w){return L(M),M<=0?V(M):v!==void 0?typeof w=="string"?V(M).fill(v,w):V(M).fill(v):V(M)}z.alloc=function(M,v,w){return E(M,v,w)};function A(M){return L(M),V(M<0?0:N(M)|0)}z.allocUnsafe=function(M){return A(M)},z.allocUnsafeSlow=function(M){return A(M)};function D(M,v){if((typeof v!="string"||v==="")&&(v="utf8"),!z.isEncoding(v))throw TypeError("Unknown encoding: "+v);let w=g(M,v)|0,h=V(w),o=h.write(M,v);return o!==w&&(h=h.slice(0,o)),h}function P(M){let v=M.length<0?0:N(M.length)|0,w=V(v);for(let h=0;h<v;h+=1)w[h]=M[h]&255;return w}function q(M){if(a(M,Uint8Array)){let v=new Uint8Array(M);return _(v.buffer,v.byteOffset,v.byteLength)}return P(M)}function _(M,v,w){if(v<0||M.byteLength<v)throw RangeError('"offset" is outside of buffer bounds');if(M.byteLength<v+(w||0))throw RangeError('"length" is outside of buffer bounds');let h;return v===void 0&&w===void 0?h=new Uint8Array(M):w===void 0?h=new Uint8Array(M,v):h=new Uint8Array(M,v,w),Object.setPrototypeOf(h,z.prototype),h}function j(M){if(z.isBuffer(M)){let v=N(M.length)|0,w=V(v);return w.length===0||M.copy(w,0,0,v),w}if(M.length!==void 0)return typeof M.length!="number"||w0(M.length)?V(0):P(M);if(M.type==="Buffer"&&Array.isArray(M.data))return P(M.data)}function N(M){if(M>=F)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return M|0}function x(M){return+M!=M&&(M=0),z.alloc(+M)}z.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==z.prototype},z.compare=function(M,v){if(a(M,Uint8Array)&&(M=z.from(M,M.offset,M.byteLength)),a(v,Uint8Array)&&(v=z.from(v,v.offset,v.byteLength)),!z.isBuffer(M)||!z.isBuffer(v))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===v)return 0;let w=M.length,h=v.length;for(let o=0,H0=Math.min(w,h);o<H0;++o)if(M[o]!==v[o]){w=M[o],h=v[o];break}return w<h?-1:h<w?1:0},z.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},z.concat=function(M,v){if(!Array.isArray(M))throw TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return z.alloc(0);let w;if(v===void 0)for(v=0,w=0;w<M.length;++w)v+=M[w].length;let h=z.allocUnsafe(v),o=0;for(w=0;w<M.length;++w){let H0=M[w];if(a(H0,Uint8Array))o+H0.length>h.length?(z.isBuffer(H0)||(H0=z.from(H0)),H0.copy(h,o)):Uint8Array.prototype.set.call(h,H0,o);else if(z.isBuffer(H0))H0.copy(h,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=H0.length}return h};function g(M,v){if(z.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||a(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);let w=M.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&w===0)return 0;let o=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return K0(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return R0(M).length;default:if(o)return h?-1:K0(M).length;v=(""+v).toLowerCase(),o=!0}}z.byteLength=g;function f(M,v,w){let h=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,v>>>=0,w<=v))return"";for(M||(M="utf8");;)switch(M){case"hex":return I(this,v,w);case"utf8":case"utf-8":return J(this,v,w);case"ascii":return O(this,v,w);case"latin1":case"binary":return H(this,v,w);case"base64":return Q(this,v,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,v,w);default:if(h)throw TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),h=!0}}z.prototype._isBuffer=!0;function p(M,v,w){let h=M[v];M[v]=M[w],M[w]=h}z.prototype.swap16=function(){let M=this.length;if(M%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<M;v+=2)p(this,v,v+1);return this},z.prototype.swap32=function(){let M=this.length;if(M%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<M;v+=4)p(this,v,v+3),p(this,v+1,v+2);return this},z.prototype.swap64=function(){let M=this.length;if(M%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<M;v+=8)p(this,v,v+7),p(this,v+1,v+6),p(this,v+2,v+5),p(this,v+3,v+4);return this},z.prototype.toString=function(){let M=this.length;return M===0?"":arguments.length===0?J(this,0,M):f.apply(this,arguments)},z.prototype.toLocaleString=z.prototype.toString,z.prototype.equals=function(M){if(!z.isBuffer(M))throw TypeError("Argument must be a Buffer");return this===M?!0:z.compare(this,M)===0},z.prototype.inspect=function(){let M="",v=G.INSPECT_MAX_BYTES;return M=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(M+=" ... "),"<Buffer "+M+">"},C&&(z.prototype[C]=z.prototype.inspect),z.prototype.compare=function(M,v,w,h,o){if(a(M,Uint8Array)&&(M=z.from(M,M.offset,M.byteLength)),!z.isBuffer(M))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(v===void 0&&(v=0),w===void 0&&(w=M?M.length:0),h===void 0&&(h=0),o===void 0&&(o=this.length),v<0||w>M.length||h<0||o>this.length)throw RangeError("out of range index");if(h>=o&&v>=w)return 0;if(h>=o)return-1;if(v>=w)return 1;if(v>>>=0,w>>>=0,h>>>=0,o>>>=0,this===M)return 0;let H0=o-h,X0=w-v,F0=Math.min(H0,X0),d0=this.slice(h,o),D0=M.slice(v,w);for(let T0=0;T0<F0;++T0)if(d0[T0]!==D0[T0]){H0=d0[T0],X0=D0[T0];break}return H0<X0?-1:X0<H0?1:0};function s(M,v,w,h,o){if(M.length===0)return-1;if(typeof w=="string"?(h=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,w0(w)&&(w=o?0:M.length-1),w<0&&(w=M.length+w),w>=M.length){if(o)return-1;w=M.length-1}else if(w<0)if(o)w=0;else return-1;if(typeof v=="string"&&(v=z.from(v,h)),z.isBuffer(v))return v.length===0?-1:O0(M,v,w,h,o);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(M,v,w):Uint8Array.prototype.lastIndexOf.call(M,v,w):O0(M,[v],w,h,o);throw TypeError("val must be string, number or Buffer")}function O0(M,v,w,h,o){let H0=1,X0=M.length,F0=v.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(M.length<2||v.length<2)return-1;H0=2,X0/=2,F0/=2,w/=2}function d0(T0,b0){return H0===1?T0[b0]:T0.readUInt16BE(b0*H0)}let D0;if(o){let T0=-1;for(D0=w;D0<X0;D0++)if(d0(M,D0)===d0(v,T0===-1?0:D0-T0)){if(T0===-1&&(T0=D0),D0-T0+1===F0)return T0*H0}else T0!==-1&&(D0-=D0-T0),T0=-1}else for(w+F0>X0&&(w=X0-F0),D0=w;D0>=0;D0--){let T0=!0;for(let b0=0;b0<F0;b0++)if(d0(M,D0+b0)!==d0(v,b0)){T0=!1;break}if(T0)return D0}return-1}z.prototype.includes=function(M,v,w){return this.indexOf(M,v,w)!==-1},z.prototype.indexOf=function(M,v,w){return s(this,M,v,w,!0)},z.prototype.lastIndexOf=function(M,v,w){return s(this,M,v,w,!1)};function C0(M,v,w,h){w=Number(w)||0;let o=M.length-w;h?(h=Number(h),h>o&&(h=o)):h=o;let H0=v.length;h>H0/2&&(h=H0/2);let X0;for(X0=0;X0<h;++X0){let F0=parseInt(v.substr(X0*2,2),16);if(w0(F0))return X0;M[w+X0]=F0}return X0}function W0(M,v,w,h){return b(K0(v,M.length-w),M,w,h)}function n(M,v,w,h){return b(U0(v),M,w,h)}function I0(M,v,w,h){return b(R0(v),M,w,h)}function U(M,v,w,h){return b(Q0(v,M.length-w),M,w,h)}z.prototype.write=function(M,v,w,h){if(v===void 0)h="utf8",w=this.length,v=0;else if(w===void 0&&typeof v=="string")h=v,w=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(w)?(w=w>>>0,h===void 0&&(h="utf8")):(h=w,w=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-v;if((w===void 0||w>o)&&(w=o),M.length>0&&(w<0||v<0)||v>this.length)throw RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let H0=!1;for(;;)switch(h){case"hex":return C0(this,M,v,w);case"utf8":case"utf-8":return W0(this,M,v,w);case"ascii":case"latin1":case"binary":return n(this,M,v,w);case"base64":return I0(this,M,v,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,M,v,w);default:if(H0)throw TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),H0=!0}},z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(M,v,w){return v===0&&w===M.length?$.fromByteArray(M):$.fromByteArray(M.slice(v,w))}function J(M,v,w){w=Math.min(M.length,w);let h=[],o=v;for(;o<w;){let H0=M[o],X0=null,F0=H0>239?4:H0>223?3:H0>191?2:1;if(o+F0<=w){let d0,D0,T0,b0;switch(F0){case 1:H0<128&&(X0=H0);break;case 2:d0=M[o+1],(d0&192)===128&&(b0=(H0&31)<<6|d0&63,b0>127&&(X0=b0));break;case 3:d0=M[o+1],D0=M[o+2],(d0&192)===128&&(D0&192)===128&&(b0=(H0&15)<<12|(d0&63)<<6|D0&63,b0>2047&&(b0<55296||b0>57343)&&(X0=b0));break;case 4:d0=M[o+1],D0=M[o+2],T0=M[o+3],(d0&192)===128&&(D0&192)===128&&(T0&192)===128&&(b0=(H0&15)<<18|(d0&63)<<12|(D0&63)<<6|T0&63,b0>65535&&b0<1114112&&(X0=b0))}}X0===null?(X0=65533,F0=1):X0>65535&&(X0-=65536,h.push(X0>>>10&1023|55296),X0=56320|X0&1023),h.push(X0),o+=F0}return Y(h)}var X=4096;function Y(M){let v=M.length;if(v<=X)return String.fromCharCode.apply(String,M);let w="",h=0;for(;h<v;)w+=String.fromCharCode.apply(String,M.slice(h,h+=X));return w}function O(M,v,w){let h="";w=Math.min(M.length,w);for(let o=v;o<w;++o)h+=String.fromCharCode(M[o]&127);return h}function H(M,v,w){let h="";w=Math.min(M.length,w);for(let o=v;o<w;++o)h+=String.fromCharCode(M[o]);return h}function I(M,v,w){let h=M.length;(!v||v<0)&&(v=0),(!w||w<0||w>h)&&(w=h);let o="";for(let H0=v;H0<w;++H0)o+=i[M[H0]];return o}function Z(M,v,w){let h=M.slice(v,w),o="";for(let H0=0;H0<h.length-1;H0+=2)o+=String.fromCharCode(h[H0]+h[H0+1]*256);return o}z.prototype.slice=function(M,v){let w=this.length;M=~~M,v=v===void 0?w:~~v,M<0?(M+=w,M<0&&(M=0)):M>w&&(M=w),v<0?(v+=w,v<0&&(v=0)):v>w&&(v=w),v<M&&(v=M);let h=this.subarray(M,v);return Object.setPrototypeOf(h,z.prototype),h};function K(M,v,w){if(M%1!==0||M<0)throw RangeError("offset is not uint");if(M+v>w)throw RangeError("Trying to access beyond buffer length")}z.prototype.readUintLE=z.prototype.readUIntLE=function(M,v,w){M=M>>>0,v=v>>>0,w||K(M,v,this.length);let h=this[M],o=1,H0=0;for(;++H0<v&&(o*=256);)h+=this[M+H0]*o;return h},z.prototype.readUintBE=z.prototype.readUIntBE=function(M,v,w){M=M>>>0,v=v>>>0,w||K(M,v,this.length);let h=this[M+--v],o=1;for(;v>0&&(o*=256);)h+=this[M+--v]*o;return h},z.prototype.readUint8=z.prototype.readUInt8=function(M,v){return M=M>>>0,v||K(M,1,this.length),this[M]},z.prototype.readUint16LE=z.prototype.readUInt16LE=function(M,v){return M=M>>>0,v||K(M,2,this.length),this[M]|this[M+1]<<8},z.prototype.readUint16BE=z.prototype.readUInt16BE=function(M,v){return M=M>>>0,v||K(M,2,this.length),this[M]<<8|this[M+1]},z.prototype.readUint32LE=z.prototype.readUInt32LE=function(M,v){return M=M>>>0,v||K(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},z.prototype.readUint32BE=z.prototype.readUInt32BE=function(M,v){return M=M>>>0,v||K(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},z.prototype.readBigUInt64LE=V0(function(M){M=M>>>0,Y0(M,"offset");let v=this[M],w=this[M+7];(v===void 0||w===void 0)&&y0(M,this.length-8);let h=v+this[++M]*256+this[++M]*65536+this[++M]*16777216,o=this[++M]+this[++M]*256+this[++M]*65536+w*16777216;return BigInt(h)+(BigInt(o)<<BigInt(32))}),z.prototype.readBigUInt64BE=V0(function(M){M=M>>>0,Y0(M,"offset");let v=this[M],w=this[M+7];(v===void 0||w===void 0)&&y0(M,this.length-8);let h=v*16777216+this[++M]*65536+this[++M]*256+this[++M],o=this[++M]*16777216+this[++M]*65536+this[++M]*256+w;return(BigInt(h)<<BigInt(32))+BigInt(o)}),z.prototype.readIntLE=function(M,v,w){M=M>>>0,v=v>>>0,w||K(M,v,this.length);let h=this[M],o=1,H0=0;for(;++H0<v&&(o*=256);)h+=this[M+H0]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*v)),h},z.prototype.readIntBE=function(M,v,w){M=M>>>0,v=v>>>0,w||K(M,v,this.length);let h=v,o=1,H0=this[M+--h];for(;h>0&&(o*=256);)H0+=this[M+--h]*o;return o*=128,H0>=o&&(H0-=Math.pow(2,8*v)),H0},z.prototype.readInt8=function(M,v){return M=M>>>0,v||K(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},z.prototype.readInt16LE=function(M,v){M=M>>>0,v||K(M,2,this.length);let w=this[M]|this[M+1]<<8;return w&32768?w|4294901760:w},z.prototype.readInt16BE=function(M,v){M=M>>>0,v||K(M,2,this.length);let w=this[M+1]|this[M]<<8;return w&32768?w|4294901760:w},z.prototype.readInt32LE=function(M,v){return M=M>>>0,v||K(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},z.prototype.readInt32BE=function(M,v){return M=M>>>0,v||K(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},z.prototype.readBigInt64LE=V0(function(M){M=M>>>0,Y0(M,"offset");let v=this[M],w=this[M+7];(v===void 0||w===void 0)&&y0(M,this.length-8);let h=this[M+4]+this[M+5]*256+this[M+6]*65536+(w<<24);return(BigInt(h)<<BigInt(32))+BigInt(v+this[++M]*256+this[++M]*65536+this[++M]*16777216)}),z.prototype.readBigInt64BE=V0(function(M){M=M>>>0,Y0(M,"offset");let v=this[M],w=this[M+7];(v===void 0||w===void 0)&&y0(M,this.length-8);let h=(v<<24)+this[++M]*65536+this[++M]*256+this[++M];return(BigInt(h)<<BigInt(32))+BigInt(this[++M]*16777216+this[++M]*65536+this[++M]*256+w)}),z.prototype.readFloatLE=function(M,v){return M=M>>>0,v||K(M,4,this.length),W.read(this,M,!0,23,4)},z.prototype.readFloatBE=function(M,v){return M=M>>>0,v||K(M,4,this.length),W.read(this,M,!1,23,4)},z.prototype.readDoubleLE=function(M,v){return M=M>>>0,v||K(M,8,this.length),W.read(this,M,!0,52,8)},z.prototype.readDoubleBE=function(M,v){return M=M>>>0,v||K(M,8,this.length),W.read(this,M,!1,52,8)};function S(M,v,w,h,o,H0){if(!z.isBuffer(M))throw TypeError('"buffer" argument must be a Buffer instance');if(v>o||v<H0)throw RangeError('"value" argument is out of bounds');if(w+h>M.length)throw RangeError("Index out of range")}z.prototype.writeUintLE=z.prototype.writeUIntLE=function(M,v,w,h){if(M=+M,v=v>>>0,w=w>>>0,!h){let X0=Math.pow(2,8*w)-1;S(this,M,v,w,X0,0)}let o=1,H0=0;for(this[v]=M&255;++H0<w&&(o*=256);)this[v+H0]=M/o&255;return v+w},z.prototype.writeUintBE=z.prototype.writeUIntBE=function(M,v,w,h){if(M=+M,v=v>>>0,w=w>>>0,!h){let X0=Math.pow(2,8*w)-1;S(this,M,v,w,X0,0)}let o=w-1,H0=1;for(this[v+o]=M&255;--o>=0&&(H0*=256);)this[v+o]=M/H0&255;return v+w},z.prototype.writeUint8=z.prototype.writeUInt8=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,1,255,0),this[v]=M&255,v+1},z.prototype.writeUint16LE=z.prototype.writeUInt16LE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,2,65535,0),this[v]=M&255,this[v+1]=M>>>8,v+2},z.prototype.writeUint16BE=z.prototype.writeUInt16BE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,2,65535,0),this[v]=M>>>8,this[v+1]=M&255,v+2},z.prototype.writeUint32LE=z.prototype.writeUInt32LE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,4,4294967295,0),this[v+3]=M>>>24,this[v+2]=M>>>16,this[v+1]=M>>>8,this[v]=M&255,v+4},z.prototype.writeUint32BE=z.prototype.writeUInt32BE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,4,4294967295,0),this[v]=M>>>24,this[v+1]=M>>>16,this[v+2]=M>>>8,this[v+3]=M&255,v+4};function T(M,v,w,h,o){e(v,h,o,M,w,7);let H0=Number(v&BigInt(4294967295));M[w++]=H0,H0=H0>>8,M[w++]=H0,H0=H0>>8,M[w++]=H0,H0=H0>>8,M[w++]=H0;let X0=Number(v>>BigInt(32)&BigInt(4294967295));return M[w++]=X0,X0=X0>>8,M[w++]=X0,X0=X0>>8,M[w++]=X0,X0=X0>>8,M[w++]=X0,w}function B(M,v,w,h,o){e(v,h,o,M,w,7);let H0=Number(v&BigInt(4294967295));M[w+7]=H0,H0=H0>>8,M[w+6]=H0,H0=H0>>8,M[w+5]=H0,H0=H0>>8,M[w+4]=H0;let X0=Number(v>>BigInt(32)&BigInt(4294967295));return M[w+3]=X0,X0=X0>>8,M[w+2]=X0,X0=X0>>8,M[w+1]=X0,X0=X0>>8,M[w]=X0,w+8}z.prototype.writeBigUInt64LE=V0(function(M,v=0){return T(this,M,v,BigInt(0),BigInt("0xffffffffffffffff"))}),z.prototype.writeBigUInt64BE=V0(function(M,v=0){return B(this,M,v,BigInt(0),BigInt("0xffffffffffffffff"))}),z.prototype.writeIntLE=function(M,v,w,h){if(M=+M,v=v>>>0,!h){let F0=Math.pow(2,8*w-1);S(this,M,v,w,F0-1,-F0)}let o=0,H0=1,X0=0;for(this[v]=M&255;++o<w&&(H0*=256);)M<0&&X0===0&&this[v+o-1]!==0&&(X0=1),this[v+o]=(M/H0>>0)-X0&255;return v+w},z.prototype.writeIntBE=function(M,v,w,h){if(M=+M,v=v>>>0,!h){let F0=Math.pow(2,8*w-1);S(this,M,v,w,F0-1,-F0)}let o=w-1,H0=1,X0=0;for(this[v+o]=M&255;--o>=0&&(H0*=256);)M<0&&X0===0&&this[v+o+1]!==0&&(X0=1),this[v+o]=(M/H0>>0)-X0&255;return v+w},z.prototype.writeInt8=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,1,127,-128),M<0&&(M=255+M+1),this[v]=M&255,v+1},z.prototype.writeInt16LE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,2,32767,-32768),this[v]=M&255,this[v+1]=M>>>8,v+2},z.prototype.writeInt16BE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,2,32767,-32768),this[v]=M>>>8,this[v+1]=M&255,v+2},z.prototype.writeInt32LE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,4,2147483647,-2147483648),this[v]=M&255,this[v+1]=M>>>8,this[v+2]=M>>>16,this[v+3]=M>>>24,v+4},z.prototype.writeInt32BE=function(M,v,w){return M=+M,v=v>>>0,w||S(this,M,v,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[v]=M>>>24,this[v+1]=M>>>16,this[v+2]=M>>>8,this[v+3]=M&255,v+4},z.prototype.writeBigInt64LE=V0(function(M,v=0){return T(this,M,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),z.prototype.writeBigInt64BE=V0(function(M,v=0){return B(this,M,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function c(M,v,w,h,o,H0){if(w+h>M.length)throw RangeError("Index out of range");if(w<0)throw RangeError("Index out of range")}function d(M,v,w,h,o){return v=+v,w=w>>>0,o||c(M,v,w,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),W.write(M,v,w,h,23,4),w+4}z.prototype.writeFloatLE=function(M,v,w){return d(this,M,v,!0,w)},z.prototype.writeFloatBE=function(M,v,w){return d(this,M,v,!1,w)};function r(M,v,w,h,o){return v=+v,w=w>>>0,o||c(M,v,w,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),W.write(M,v,w,h,52,8),w+8}z.prototype.writeDoubleLE=function(M,v,w){return r(this,M,v,!0,w)},z.prototype.writeDoubleBE=function(M,v,w){return r(this,M,v,!1,w)},z.prototype.copy=function(M,v,w,h){if(!z.isBuffer(M))throw TypeError("argument should be a Buffer");if(w||(w=0),!h&&h!==0&&(h=this.length),v>=M.length&&(v=M.length),v||(v=0),h>0&&h<w&&(h=w),h===w||M.length===0||this.length===0)return 0;if(v<0)throw RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw RangeError("Index out of range");if(h<0)throw RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),M.length-v<h-w&&(h=M.length-v+w);let o=h-w;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,w,h):Uint8Array.prototype.set.call(M,this.subarray(w,h),v),o},z.prototype.fill=function(M,v,w,h){if(typeof M=="string"){if(typeof v=="string"?(h=v,v=0,w=this.length):typeof w=="string"&&(h=w,w=this.length),h!==void 0&&typeof h!="string")throw TypeError("encoding must be a string");if(typeof h=="string"&&!z.isEncoding(h))throw TypeError("Unknown encoding: "+h);if(M.length===1){let H0=M.charCodeAt(0);(h==="utf8"&&H0<128||h==="latin1")&&(M=H0)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(v<0||this.length<v||this.length<w)throw RangeError("Out of range index");if(w<=v)return this;v=v>>>0,w=w===void 0?this.length:w>>>0,M||(M=0);let o;if(typeof M=="number")for(o=v;o<w;++o)this[o]=M;else{let H0=z.isBuffer(M)?M:z.from(M,h),X0=H0.length;if(X0===0)throw TypeError('The value "'+M+'" is invalid for argument "value"');for(o=0;o<w-v;++o)this[o+v]=H0[o%X0]}return this};var z0={};function Z0(M,v,w){z0[M]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,this.stack,delete this.name}get code(){return M}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}Z0("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z0("ERR_INVALID_ARG_TYPE",function(M,v){return`The "${M}" argument must be of type number. Received type ${typeof v}`},TypeError),Z0("ERR_OUT_OF_RANGE",function(M,v,w){let h=`The value of "${M}" is out of range.`,o=w;return Number.isInteger(w)&&Math.abs(w)>4294967296?o=t(String(w)):typeof w=="bigint"&&(o=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(o=t(o)),o+="n"),h+=` It must be ${v}. Received ${o}`,h},RangeError);function t(M){let v="",w=M.length,h=M[0]==="-"?1:0;for(;w>=h+4;w-=3)v=`_${M.slice(w-3,w)}${v}`;return`${M.slice(0,w)}${v}`}function $0(M,v,w){Y0(v,"offset"),(M[v]===void 0||M[v+w]===void 0)&&y0(v,M.length-(w+1))}function e(M,v,w,h,o,H0){if(M>w||M<v){let X0=typeof v=="bigint"?"n":"",F0;throw H0>3?v===0||v===BigInt(0)?F0=`>= 0${X0} and < 2${X0} ** ${(H0+1)*8}${X0}`:F0=`>= -(2${X0} ** ${(H0+1)*8-1}${X0}) and < 2 ** ${(H0+1)*8-1}${X0}`:F0=`>= ${v}${X0} and <= ${w}${X0}`,new z0.ERR_OUT_OF_RANGE("value",F0,M)}$0(h,o,H0)}function Y0(M,v){if(typeof M!="number")throw new z0.ERR_INVALID_ARG_TYPE(v,"number",M)}function y0(M,v,w){throw Math.floor(M)!==M?(Y0(M,w),new z0.ERR_OUT_OF_RANGE(w||"offset","an integer",M)):v<0?new z0.ERR_BUFFER_OUT_OF_BOUNDS:new z0.ERR_OUT_OF_RANGE(w||"offset",`>= ${w?1:0} and <= ${v}`,M)}var u=/[^+/0-9A-Za-z-_]/g;function l(M){if(M=M.split("=")[0],M=M.trim().replace(u,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function K0(M,v){v=v||1/0;let w,h=M.length,o=null,H0=[];for(let X0=0;X0<h;++X0){if(w=M.charCodeAt(X0),w>55295&&w<57344){if(!o){if(w>56319){(v-=3)>-1&&H0.push(239,191,189);continue}else if(X0+1===h){(v-=3)>-1&&H0.push(239,191,189);continue}o=w;continue}if(w<56320){(v-=3)>-1&&H0.push(239,191,189),o=w;continue}w=(o-55296<<10|w-56320)+65536}else o&&(v-=3)>-1&&H0.push(239,191,189);if(o=null,w<128){if((v-=1)<0)break;H0.push(w)}else if(w<2048){if((v-=2)<0)break;H0.push(w>>6|192,w&63|128)}else if(w<65536){if((v-=3)<0)break;H0.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((v-=4)<0)break;H0.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw Error("Invalid code point")}return H0}function U0(M){let v=[];for(let w=0;w<M.length;++w)v.push(M.charCodeAt(w)&255);return v}function Q0(M,v){let w,h,o,H0=[];for(let X0=0;X0<M.length&&!((v-=2)<0);++X0)w=M.charCodeAt(X0),h=w>>8,o=w%256,H0.push(o),H0.push(h);return H0}function R0(M){return $.toByteArray(l(M))}function b(M,v,w,h){let o;for(o=0;o<h&&!(o+w>=v.length||o>=M.length);++o)v[o+w]=M[o];return o}function a(M,v){return M instanceof v||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===v.name}function w0(M){return M!==M}var i=function(){let M="0123456789abcdef",v=Array(256);for(let w=0;w<16;++w){let h=w*16;for(let o=0;o<16;++o)v[h+o]=M[w]+M[o]}return v}();function V0(M){return typeof BigInt>"u"?c0:M}function c0(){throw Error("BigInt not supported")}}),MX={},pI(MX,{Blob:()=>kX,Buffer:()=>SX.Buffer,File:()=>jX,atob:()=>vX,btoa:()=>_X,constants:()=>xX,createObjectURL:()=>BX,default:()=>RX.Buffer,isAscii:()=>MY,isUtf8:()=>RY,kMaxLength:()=>EY,kStringMaxLength:()=>KZ,resolveObjectURL:()=>FY,transcode:()=>AY}),hI(MX,EX(vZ())),RX=EX(vZ()),SX=EX(vZ()),KZ=4294967295,{Blob:kX,File:jX,atob:vX,btoa:_X}=globalThis,{createObjectURL:BX}=URL,xX={__proto__:null,MAX_LENGTH:KZ,MAX_STRING_LENGTH:KZ,BYTES_PER_ELEMENT:1},SY=SX.Buffer,qY=RX.Buffer;/*!
|
|
1
|
+
// @bun
|
|
2
|
+
import{randomBytes as R1}from"crypto";import{db as a0}from"@stacksjs/database";var{defineProperty:G0,getOwnPropertyNames:W1,getOwnPropertyDescriptor:X1}=Object,Y1=Object.prototype.hasOwnProperty,L0=new WeakMap,$1=(Y)=>{var X=L0.get(Y),W;if(X)return X;if(X=G0({},"__esModule",{value:!0}),Y&&typeof Y==="object"||typeof Y==="function")W1(Y).map((V)=>!Y1.call(X,V)&&G0(X,V,{get:()=>Y[V],enumerable:!(W=X1(Y,V))||W.enumerable}));return L0.set(Y,X),X},D1=(Y,X)=>{for(var W in X)G0(Y,W,{get:X[W],enumerable:!0,configurable:!0,set:(V)=>X[W]=()=>V})},K1=(Y,X)=>()=>(Y&&(X=Y(Y=0)),X),S0={};D1(S0,{transcode:()=>A0,resolveObjectURL:()=>I0,kStringMaxLength:()=>p,kMaxLength:()=>k0,isUtf8:()=>y0,isAscii:()=>_0,default:()=>d0,createObjectURL:()=>$0,constants:()=>D0,btoa:()=>Y0,atob:()=>X0,File:()=>W0,Buffer:()=>m0,Blob:()=>J0});function I0(Y){throw Error("Not implemented")}function A0(Y,X,W){throw Error("Not implemented")}var B0,n,C0,M0,b0,x0,r=(Y,X)=>()=>(X||Y((X={exports:{}}).exports,X),X.exports),N1=(Y,X)=>{for(var W in X)n(Y,W,{get:X[W],enumerable:!0})},H0=(Y,X,W,V)=>{if(X&&typeof X=="object"||typeof X=="function")for(let D of M0(X))!x0.call(Y,D)&&D!==W&&n(Y,D,{get:()=>X[D],enumerable:!(V=C0(X,D))||V.enumerable});return Y},U1=(Y,X,W)=>(H0(Y,X,"default"),W&&H0(W,X,"default")),Q0=(Y,X,W)=>(W=Y!=null?B0(b0(Y)):{},H0(X||!Y||!Y.__esModule?n(W,"default",{value:Y,enumerable:!0}):W,Y)),P0,E0,h,Z0,q0,z0,p,k0=9007199254740991,J0,W0,X0,Y0,$0,_0=(Y)=>ArrayBuffer.isView(Y)?Y.every((X)=>X<128):Y.split("").every((X)=>X.charCodeAt(0)<128),y0=(Y)=>{throw Error("Not implemented")},D0,m0,d0,V1=K1(()=>{B0=Object.create,n=Object.defineProperty,C0=Object.getOwnPropertyDescriptor,M0=Object.getOwnPropertyNames,b0=Object.getPrototypeOf,x0=Object.prototype.hasOwnProperty,P0=r((Y)=>{Y.byteLength=R,Y.toByteArray=j,Y.fromByteArray=b;var X=[],W=[],V=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(v=0,N=D.length;v<N;++v)X[v]=D[v],W[D.charCodeAt(v)]=v;var v,N;W[45]=62,W[95]=63;function G(K){var O=K.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var L=K.indexOf("=");L===-1&&(L=O);var B=L===O?0:4-L%4;return[L,B]}function R(K){var O=G(K),L=O[0],B=O[1];return(L+B)*3/4-B}function U(K,O,L){return(O+L)*3/4-L}function j(K){var O,L=G(K),B=L[0],k=L[1],I=new V(U(K,B,k)),_=0,m=k>0?B-4:B,x;for(x=0;x<m;x+=4)O=W[K.charCodeAt(x)]<<18|W[K.charCodeAt(x+1)]<<12|W[K.charCodeAt(x+2)]<<6|W[K.charCodeAt(x+3)],I[_++]=O>>16&255,I[_++]=O>>8&255,I[_++]=O&255;return k===2&&(O=W[K.charCodeAt(x)]<<2|W[K.charCodeAt(x+1)]>>4,I[_++]=O&255),k===1&&(O=W[K.charCodeAt(x)]<<10|W[K.charCodeAt(x+1)]<<4|W[K.charCodeAt(x+2)]>>2,I[_++]=O>>8&255,I[_++]=O&255),I}function F(K){return X[K>>18&63]+X[K>>12&63]+X[K>>6&63]+X[K&63]}function S(K,O,L){for(var B,k=[],I=O;I<L;I+=3)B=(K[I]<<16&16711680)+(K[I+1]<<8&65280)+(K[I+2]&255),k.push(F(B));return k.join("")}function b(K){for(var O,L=K.length,B=L%3,k=[],I=16383,_=0,m=L-B;_<m;_+=I)k.push(S(K,_,_+I>m?m:_+I));return B===1?(O=K[L-1],k.push(X[O>>2]+X[O<<4&63]+"==")):B===2&&(O=(K[L-2]<<8)+K[L-1],k.push(X[O>>10]+X[O>>4&63]+X[O<<2&63]+"=")),k.join("")}}),E0=r((Y)=>{Y.read=function(X,W,V,D,v){var N,G,R=v*8-D-1,U=(1<<R)-1,j=U>>1,F=-7,S=V?v-1:0,b=V?-1:1,K=X[W+S];for(S+=b,N=K&(1<<-F)-1,K>>=-F,F+=R;F>0;N=N*256+X[W+S],S+=b,F-=8);for(G=N&(1<<-F)-1,N>>=-F,F+=D;F>0;G=G*256+X[W+S],S+=b,F-=8);if(N===0)N=1-j;else{if(N===U)return G?NaN:(K?-1:1)*(1/0);G=G+Math.pow(2,D),N=N-j}return(K?-1:1)*G*Math.pow(2,N-D)},Y.write=function(X,W,V,D,v,N){var G,R,U,j=N*8-v-1,F=(1<<j)-1,S=F>>1,b=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=D?0:N-1,O=D?1:-1,L=W<0||W===0&&1/W<0?1:0;for(W=Math.abs(W),isNaN(W)||W===1/0?(R=isNaN(W)?1:0,G=F):(G=Math.floor(Math.log(W)/Math.LN2),W*(U=Math.pow(2,-G))<1&&(G--,U*=2),G+S>=1?W+=b/U:W+=b*Math.pow(2,1-S),W*U>=2&&(G++,U/=2),G+S>=F?(R=0,G=F):G+S>=1?(R=(W*U-1)*Math.pow(2,v),G=G+S):(R=W*Math.pow(2,S-1)*Math.pow(2,v),G=0));v>=8;X[V+K]=R&255,K+=O,R/=256,v-=8);for(G=G<<v|R,j+=v;j>0;X[V+K]=G&255,K+=O,G/=256,j-=8);X[V+K-O]|=L*128}}),h=r((Y)=>{var X=P0(),W=E0(),V=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Y.Buffer=G,Y.SlowBuffer=k,Y.INSPECT_MAX_BYTES=50;var D=2147483647;Y.kMaxLength=D,G.TYPED_ARRAY_SUPPORT=v(),!G.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function v(){try{let Q=new Uint8Array(1),Z={foo:function(){return 42}};return Object.setPrototypeOf(Z,Uint8Array.prototype),Object.setPrototypeOf(Q,Z),Q.foo()===42}catch{return!1}}Object.defineProperty(G.prototype,"parent",{enumerable:!0,get:function(){if(G.isBuffer(this))return this.buffer}}),Object.defineProperty(G.prototype,"offset",{enumerable:!0,get:function(){if(G.isBuffer(this))return this.byteOffset}});function N(Q){if(Q>D)throw RangeError('The value "'+Q+'" is invalid for option "size"');let Z=new Uint8Array(Q);return Object.setPrototypeOf(Z,G.prototype),Z}function G(Q,Z,q){if(typeof Q=="number"){if(typeof Z=="string")throw TypeError('The "string" argument must be of type string. Received type number');return F(Q)}return R(Q,Z,q)}G.poolSize=8192;function R(Q,Z,q){if(typeof Q=="string")return S(Q,Z);if(ArrayBuffer.isView(Q))return K(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(d(Q,ArrayBuffer)||Q&&d(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(d(Q,SharedArrayBuffer)||Q&&d(Q.buffer,SharedArrayBuffer)))return O(Q,Z,q);if(typeof Q=="number")throw TypeError('The "value" argument must not be of type number. Received type number');let z=Q.valueOf&&Q.valueOf();if(z!=null&&z!==Q)return G.from(z,Z,q);let H=L(Q);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return G.from(Q[Symbol.toPrimitive]("string"),Z,q);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}G.from=function(Q,Z,q){return R(Q,Z,q)},Object.setPrototypeOf(G.prototype,Uint8Array.prototype),Object.setPrototypeOf(G,Uint8Array);function U(Q){if(typeof Q!="number")throw TypeError('"size" argument must be of type number');if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function j(Q,Z,q){return U(Q),Q<=0?N(Q):Z!==void 0?typeof q=="string"?N(Q).fill(Z,q):N(Q).fill(Z):N(Q)}G.alloc=function(Q,Z,q){return j(Q,Z,q)};function F(Q){return U(Q),N(Q<0?0:B(Q)|0)}G.allocUnsafe=function(Q){return F(Q)},G.allocUnsafeSlow=function(Q){return F(Q)};function S(Q,Z){if((typeof Z!="string"||Z==="")&&(Z="utf8"),!G.isEncoding(Z))throw TypeError("Unknown encoding: "+Z);let q=I(Q,Z)|0,z=N(q),H=z.write(Q,Z);return H!==q&&(z=z.slice(0,H)),z}function b(Q){let Z=Q.length<0?0:B(Q.length)|0,q=N(Z);for(let z=0;z<Z;z+=1)q[z]=Q[z]&255;return q}function K(Q){if(d(Q,Uint8Array)){let Z=new Uint8Array(Q);return O(Z.buffer,Z.byteOffset,Z.byteLength)}return b(Q)}function O(Q,Z,q){if(Z<0||Q.byteLength<Z)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<Z+(q||0))throw RangeError('"length" is outside of buffer bounds');let z;return Z===void 0&&q===void 0?z=new Uint8Array(Q):q===void 0?z=new Uint8Array(Q,Z):z=new Uint8Array(Q,Z,q),Object.setPrototypeOf(z,G.prototype),z}function L(Q){if(G.isBuffer(Q)){let Z=B(Q.length)|0,q=N(Z);return q.length===0||Q.copy(q,0,0,Z),q}if(Q.length!==void 0)return typeof Q.length!="number"||t(Q.length)?N(0):b(Q);if(Q.type==="Buffer"&&Array.isArray(Q.data))return b(Q.data)}function B(Q){if(Q>=D)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return Q|0}function k(Q){return+Q!=Q&&(Q=0),G.alloc(+Q)}G.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==G.prototype},G.compare=function(Q,Z){if(d(Q,Uint8Array)&&(Q=G.from(Q,Q.offset,Q.byteLength)),d(Z,Uint8Array)&&(Z=G.from(Z,Z.offset,Z.byteLength)),!G.isBuffer(Q)||!G.isBuffer(Z))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===Z)return 0;let q=Q.length,z=Z.length;for(let H=0,J=Math.min(q,z);H<J;++H)if(Q[H]!==Z[H]){q=Q[H],z=Z[H];break}return q<z?-1:z<q?1:0},G.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},G.concat=function(Q,Z){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return G.alloc(0);let q;if(Z===void 0)for(Z=0,q=0;q<Q.length;++q)Z+=Q[q].length;let z=G.allocUnsafe(Z),H=0;for(q=0;q<Q.length;++q){let J=Q[q];if(d(J,Uint8Array))H+J.length>z.length?(G.isBuffer(J)||(J=G.from(J)),J.copy(z,H)):Uint8Array.prototype.set.call(z,J,H);else if(G.isBuffer(J))J.copy(z,H);else throw TypeError('"list" argument must be an Array of Buffers');H+=J.length}return z};function I(Q,Z){if(G.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||d(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let q=Q.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&q===0)return 0;let H=!1;for(;;)switch(Z){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return i(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q*2;case"hex":return q>>>1;case"base64":return F0(Q).length;default:if(H)return z?-1:i(Q).length;Z=(""+Z).toLowerCase(),H=!0}}G.byteLength=I;function _(Q,Z,q){let z=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0,Z>>>=0,q<=Z))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return t0(this,Z,q);case"utf8":case"utf-8":return N0(this,Z,q);case"ascii":return e0(this,Z,q);case"latin1":case"binary":return i0(this,Z,q);case"base64":return o0(this,Z,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r0(this,Z,q);default:if(z)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),z=!0}}G.prototype._isBuffer=!0;function m(Q,Z,q){let z=Q[Z];Q[Z]=Q[q],Q[q]=z}G.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Z=0;Z<Q;Z+=2)m(this,Z,Z+1);return this},G.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let Z=0;Z<Q;Z+=4)m(this,Z,Z+3),m(this,Z+1,Z+2);return this},G.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let Z=0;Z<Q;Z+=8)m(this,Z,Z+7),m(this,Z+1,Z+6),m(this,Z+2,Z+5),m(this,Z+3,Z+4);return this},G.prototype.toString=function(){let Q=this.length;return Q===0?"":arguments.length===0?N0(this,0,Q):_.apply(this,arguments)},G.prototype.toLocaleString=G.prototype.toString,G.prototype.equals=function(Q){if(!G.isBuffer(Q))throw TypeError("Argument must be a Buffer");return this===Q?!0:G.compare(this,Q)===0},G.prototype.inspect=function(){let Q="",Z=Y.INSPECT_MAX_BYTES;return Q=this.toString("hex",0,Z).replace(/(.{2})/g,"$1 ").trim(),this.length>Z&&(Q+=" ... "),"<Buffer "+Q+">"},V&&(G.prototype[V]=G.prototype.inspect),G.prototype.compare=function(Q,Z,q,z,H){if(d(Q,Uint8Array)&&(Q=G.from(Q,Q.offset,Q.byteLength)),!G.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(Z===void 0&&(Z=0),q===void 0&&(q=Q?Q.length:0),z===void 0&&(z=0),H===void 0&&(H=this.length),Z<0||q>Q.length||z<0||H>this.length)throw RangeError("out of range index");if(z>=H&&Z>=q)return 0;if(z>=H)return-1;if(Z>=q)return 1;if(Z>>>=0,q>>>=0,z>>>=0,H>>>=0,this===Q)return 0;let J=H-z,$=q-Z,T=Math.min(J,$),M=this.slice(z,H),E=Q.slice(Z,q);for(let w=0;w<T;++w)if(M[w]!==E[w]){J=M[w],$=E[w];break}return J<$?-1:$<J?1:0};function x(Q,Z,q,z,H){if(Q.length===0)return-1;if(typeof q=="string"?(z=q,q=0):q>2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),q=+q,t(q)&&(q=H?0:Q.length-1),q<0&&(q=Q.length+q),q>=Q.length){if(H)return-1;q=Q.length-1}else if(q<0)if(H)q=0;else return-1;if(typeof Z=="string"&&(Z=G.from(Z,z)),G.isBuffer(Z))return Z.length===0?-1:K0(Q,Z,q,z,H);if(typeof Z=="number")return Z=Z&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(Q,Z,q):Uint8Array.prototype.lastIndexOf.call(Q,Z,q):K0(Q,[Z],q,z,H);throw TypeError("val must be string, number or Buffer")}function K0(Q,Z,q,z,H){let J=1,$=Q.length,T=Z.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(Q.length<2||Z.length<2)return-1;J=2,$/=2,T/=2,q/=2}function M(w,A){return J===1?w[A]:w.readUInt16BE(A*J)}let E;if(H){let w=-1;for(E=q;E<$;E++)if(M(Q,E)===M(Z,w===-1?0:E-w)){if(w===-1&&(w=E),E-w+1===T)return w*J}else w!==-1&&(E-=E-w),w=-1}else for(q+T>$&&(q=$-T),E=q;E>=0;E--){let w=!0;for(let A=0;A<T;A++)if(M(Q,E+A)!==M(Z,A)){w=!1;break}if(w)return E}return-1}G.prototype.includes=function(Q,Z,q){return this.indexOf(Q,Z,q)!==-1},G.prototype.indexOf=function(Q,Z,q){return x(this,Q,Z,q,!0)},G.prototype.lastIndexOf=function(Q,Z,q){return x(this,Q,Z,q,!1)};function p0(Q,Z,q,z){q=Number(q)||0;let H=Q.length-q;z?(z=Number(z),z>H&&(z=H)):z=H;let J=Z.length;z>J/2&&(z=J/2);let $;for($=0;$<z;++$){let T=parseInt(Z.substr($*2,2),16);if(t(T))return $;Q[q+$]=T}return $}function l0(Q,Z,q,z){return l(i(Z,Q.length-q),Q,q,z)}function h0(Q,Z,q,z){return l(z1(Z),Q,q,z)}function u0(Q,Z,q,z){return l(F0(Z),Q,q,z)}function s0(Q,Z,q,z){return l(G1(Z,Q.length-q),Q,q,z)}G.prototype.write=function(Q,Z,q,z){if(Z===void 0)z="utf8",q=this.length,Z=0;else if(q===void 0&&typeof Z=="string")z=Z,q=this.length,Z=0;else if(isFinite(Z))Z=Z>>>0,isFinite(q)?(q=q>>>0,z===void 0&&(z="utf8")):(z=q,q=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-Z;if((q===void 0||q>H)&&(q=H),Q.length>0&&(q<0||Z<0)||Z>this.length)throw RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let J=!1;for(;;)switch(z){case"hex":return p0(this,Q,Z,q);case"utf8":case"utf-8":return l0(this,Q,Z,q);case"ascii":case"latin1":case"binary":return h0(this,Q,Z,q);case"base64":return u0(this,Q,Z,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s0(this,Q,Z,q);default:if(J)throw TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),J=!0}},G.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function o0(Q,Z,q){return Z===0&&q===Q.length?X.fromByteArray(Q):X.fromByteArray(Q.slice(Z,q))}function N0(Q,Z,q){q=Math.min(Q.length,q);let z=[],H=Z;for(;H<q;){let J=Q[H],$=null,T=J>239?4:J>223?3:J>191?2:1;if(H+T<=q){let M,E,w,A;switch(T){case 1:J<128&&($=J);break;case 2:M=Q[H+1],(M&192)===128&&(A=(J&31)<<6|M&63,A>127&&($=A));break;case 3:M=Q[H+1],E=Q[H+2],(M&192)===128&&(E&192)===128&&(A=(J&15)<<12|(M&63)<<6|E&63,A>2047&&(A<55296||A>57343)&&($=A));break;case 4:M=Q[H+1],E=Q[H+2],w=Q[H+3],(M&192)===128&&(E&192)===128&&(w&192)===128&&(A=(J&15)<<18|(M&63)<<12|(E&63)<<6|w&63,A>65535&&A<1114112&&($=A))}}$===null?($=65533,T=1):$>65535&&($-=65536,z.push($>>>10&1023|55296),$=56320|$&1023),z.push($),H+=T}return n0(z)}var U0=4096;function n0(Q){let Z=Q.length;if(Z<=U0)return String.fromCharCode.apply(String,Q);let q="",z=0;for(;z<Z;)q+=String.fromCharCode.apply(String,Q.slice(z,z+=U0));return q}function e0(Q,Z,q){let z="";q=Math.min(Q.length,q);for(let H=Z;H<q;++H)z+=String.fromCharCode(Q[H]&127);return z}function i0(Q,Z,q){let z="";q=Math.min(Q.length,q);for(let H=Z;H<q;++H)z+=String.fromCharCode(Q[H]);return z}function t0(Q,Z,q){let z=Q.length;(!Z||Z<0)&&(Z=0),(!q||q<0||q>z)&&(q=z);let H="";for(let J=Z;J<q;++J)H+=H1[Q[J]];return H}function r0(Q,Z,q){let z=Q.slice(Z,q),H="";for(let J=0;J<z.length-1;J+=2)H+=String.fromCharCode(z[J]+z[J+1]*256);return H}G.prototype.slice=function(Q,Z){let q=this.length;Q=~~Q,Z=Z===void 0?q:~~Z,Q<0?(Q+=q,Q<0&&(Q=0)):Q>q&&(Q=q),Z<0?(Z+=q,Z<0&&(Z=0)):Z>q&&(Z=q),Z<Q&&(Z=Q);let z=this.subarray(Q,Z);return Object.setPrototypeOf(z,G.prototype),z};function C(Q,Z,q){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+Z>q)throw RangeError("Trying to access beyond buffer length")}G.prototype.readUintLE=G.prototype.readUIntLE=function(Q,Z,q){Q=Q>>>0,Z=Z>>>0,q||C(Q,Z,this.length);let z=this[Q],H=1,J=0;for(;++J<Z&&(H*=256);)z+=this[Q+J]*H;return z},G.prototype.readUintBE=G.prototype.readUIntBE=function(Q,Z,q){Q=Q>>>0,Z=Z>>>0,q||C(Q,Z,this.length);let z=this[Q+--Z],H=1;for(;Z>0&&(H*=256);)z+=this[Q+--Z]*H;return z},G.prototype.readUint8=G.prototype.readUInt8=function(Q,Z){return Q=Q>>>0,Z||C(Q,1,this.length),this[Q]},G.prototype.readUint16LE=G.prototype.readUInt16LE=function(Q,Z){return Q=Q>>>0,Z||C(Q,2,this.length),this[Q]|this[Q+1]<<8},G.prototype.readUint16BE=G.prototype.readUInt16BE=function(Q,Z){return Q=Q>>>0,Z||C(Q,2,this.length),this[Q]<<8|this[Q+1]},G.prototype.readUint32LE=G.prototype.readUInt32LE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},G.prototype.readUint32BE=G.prototype.readUInt32BE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},G.prototype.readBigUInt64LE=g(function(Q){Q=Q>>>0,c(Q,"offset");let Z=this[Q],q=this[Q+7];(Z===void 0||q===void 0)&&a(Q,this.length-8);let z=Z+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,H=this[++Q]+this[++Q]*256+this[++Q]*65536+q*16777216;return BigInt(z)+(BigInt(H)<<BigInt(32))}),G.prototype.readBigUInt64BE=g(function(Q){Q=Q>>>0,c(Q,"offset");let Z=this[Q],q=this[Q+7];(Z===void 0||q===void 0)&&a(Q,this.length-8);let z=Z*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],H=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+q;return(BigInt(z)<<BigInt(32))+BigInt(H)}),G.prototype.readIntLE=function(Q,Z,q){Q=Q>>>0,Z=Z>>>0,q||C(Q,Z,this.length);let z=this[Q],H=1,J=0;for(;++J<Z&&(H*=256);)z+=this[Q+J]*H;return H*=128,z>=H&&(z-=Math.pow(2,8*Z)),z},G.prototype.readIntBE=function(Q,Z,q){Q=Q>>>0,Z=Z>>>0,q||C(Q,Z,this.length);let z=Z,H=1,J=this[Q+--z];for(;z>0&&(H*=256);)J+=this[Q+--z]*H;return H*=128,J>=H&&(J-=Math.pow(2,8*Z)),J},G.prototype.readInt8=function(Q,Z){return Q=Q>>>0,Z||C(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},G.prototype.readInt16LE=function(Q,Z){Q=Q>>>0,Z||C(Q,2,this.length);let q=this[Q]|this[Q+1]<<8;return q&32768?q|4294901760:q},G.prototype.readInt16BE=function(Q,Z){Q=Q>>>0,Z||C(Q,2,this.length);let q=this[Q+1]|this[Q]<<8;return q&32768?q|4294901760:q},G.prototype.readInt32LE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},G.prototype.readInt32BE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},G.prototype.readBigInt64LE=g(function(Q){Q=Q>>>0,c(Q,"offset");let Z=this[Q],q=this[Q+7];(Z===void 0||q===void 0)&&a(Q,this.length-8);let z=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+(q<<24);return(BigInt(z)<<BigInt(32))+BigInt(Z+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)}),G.prototype.readBigInt64BE=g(function(Q){Q=Q>>>0,c(Q,"offset");let Z=this[Q],q=this[Q+7];(Z===void 0||q===void 0)&&a(Q,this.length-8);let z=(Z<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(z)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+q)}),G.prototype.readFloatLE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),W.read(this,Q,!0,23,4)},G.prototype.readFloatBE=function(Q,Z){return Q=Q>>>0,Z||C(Q,4,this.length),W.read(this,Q,!1,23,4)},G.prototype.readDoubleLE=function(Q,Z){return Q=Q>>>0,Z||C(Q,8,this.length),W.read(this,Q,!0,52,8)},G.prototype.readDoubleBE=function(Q,Z){return Q=Q>>>0,Z||C(Q,8,this.length),W.read(this,Q,!1,52,8)};function y(Q,Z,q,z,H,J){if(!G.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(Z>H||Z<J)throw RangeError('"value" argument is out of bounds');if(q+z>Q.length)throw RangeError("Index out of range")}G.prototype.writeUintLE=G.prototype.writeUIntLE=function(Q,Z,q,z){if(Q=+Q,Z=Z>>>0,q=q>>>0,!z){let $=Math.pow(2,8*q)-1;y(this,Q,Z,q,$,0)}let H=1,J=0;for(this[Z]=Q&255;++J<q&&(H*=256);)this[Z+J]=Q/H&255;return Z+q},G.prototype.writeUintBE=G.prototype.writeUIntBE=function(Q,Z,q,z){if(Q=+Q,Z=Z>>>0,q=q>>>0,!z){let $=Math.pow(2,8*q)-1;y(this,Q,Z,q,$,0)}let H=q-1,J=1;for(this[Z+H]=Q&255;--H>=0&&(J*=256);)this[Z+H]=Q/J&255;return Z+q},G.prototype.writeUint8=G.prototype.writeUInt8=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,1,255,0),this[Z]=Q&255,Z+1},G.prototype.writeUint16LE=G.prototype.writeUInt16LE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,2,65535,0),this[Z]=Q&255,this[Z+1]=Q>>>8,Z+2},G.prototype.writeUint16BE=G.prototype.writeUInt16BE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,2,65535,0),this[Z]=Q>>>8,this[Z+1]=Q&255,Z+2},G.prototype.writeUint32LE=G.prototype.writeUInt32LE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,4,4294967295,0),this[Z+3]=Q>>>24,this[Z+2]=Q>>>16,this[Z+1]=Q>>>8,this[Z]=Q&255,Z+4},G.prototype.writeUint32BE=G.prototype.writeUInt32BE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,4,4294967295,0),this[Z]=Q>>>24,this[Z+1]=Q>>>16,this[Z+2]=Q>>>8,this[Z+3]=Q&255,Z+4};function V0(Q,Z,q,z,H){w0(Z,z,H,Q,q,7);let J=Number(Z&BigInt(4294967295));Q[q++]=J,J=J>>8,Q[q++]=J,J=J>>8,Q[q++]=J,J=J>>8,Q[q++]=J;let $=Number(Z>>BigInt(32)&BigInt(4294967295));return Q[q++]=$,$=$>>8,Q[q++]=$,$=$>>8,Q[q++]=$,$=$>>8,Q[q++]=$,q}function O0(Q,Z,q,z,H){w0(Z,z,H,Q,q,7);let J=Number(Z&BigInt(4294967295));Q[q+7]=J,J=J>>8,Q[q+6]=J,J=J>>8,Q[q+5]=J,J=J>>8,Q[q+4]=J;let $=Number(Z>>BigInt(32)&BigInt(4294967295));return Q[q+3]=$,$=$>>8,Q[q+2]=$,$=$>>8,Q[q+1]=$,$=$>>8,Q[q]=$,q+8}G.prototype.writeBigUInt64LE=g(function(Q,Z=0){return V0(this,Q,Z,BigInt(0),BigInt("0xffffffffffffffff"))}),G.prototype.writeBigUInt64BE=g(function(Q,Z=0){return O0(this,Q,Z,BigInt(0),BigInt("0xffffffffffffffff"))}),G.prototype.writeIntLE=function(Q,Z,q,z){if(Q=+Q,Z=Z>>>0,!z){let T=Math.pow(2,8*q-1);y(this,Q,Z,q,T-1,-T)}let H=0,J=1,$=0;for(this[Z]=Q&255;++H<q&&(J*=256);)Q<0&&$===0&&this[Z+H-1]!==0&&($=1),this[Z+H]=(Q/J>>0)-$&255;return Z+q},G.prototype.writeIntBE=function(Q,Z,q,z){if(Q=+Q,Z=Z>>>0,!z){let T=Math.pow(2,8*q-1);y(this,Q,Z,q,T-1,-T)}let H=q-1,J=1,$=0;for(this[Z+H]=Q&255;--H>=0&&(J*=256);)Q<0&&$===0&&this[Z+H+1]!==0&&($=1),this[Z+H]=(Q/J>>0)-$&255;return Z+q},G.prototype.writeInt8=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,1,127,-128),Q<0&&(Q=255+Q+1),this[Z]=Q&255,Z+1},G.prototype.writeInt16LE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,2,32767,-32768),this[Z]=Q&255,this[Z+1]=Q>>>8,Z+2},G.prototype.writeInt16BE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,2,32767,-32768),this[Z]=Q>>>8,this[Z+1]=Q&255,Z+2},G.prototype.writeInt32LE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,4,2147483647,-2147483648),this[Z]=Q&255,this[Z+1]=Q>>>8,this[Z+2]=Q>>>16,this[Z+3]=Q>>>24,Z+4},G.prototype.writeInt32BE=function(Q,Z,q){return Q=+Q,Z=Z>>>0,q||y(this,Q,Z,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),this[Z]=Q>>>24,this[Z+1]=Q>>>16,this[Z+2]=Q>>>8,this[Z+3]=Q&255,Z+4},G.prototype.writeBigInt64LE=g(function(Q,Z=0){return V0(this,Q,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),G.prototype.writeBigInt64BE=g(function(Q,Z=0){return O0(this,Q,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function v0(Q,Z,q,z,H,J){if(q+z>Q.length)throw RangeError("Index out of range");if(q<0)throw RangeError("Index out of range")}function R0(Q,Z,q,z,H){return Z=+Z,q=q>>>0,H||v0(Q,Z,q,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),W.write(Q,Z,q,z,23,4),q+4}G.prototype.writeFloatLE=function(Q,Z,q){return R0(this,Q,Z,!0,q)},G.prototype.writeFloatBE=function(Q,Z,q){return R0(this,Q,Z,!1,q)};function j0(Q,Z,q,z,H){return Z=+Z,q=q>>>0,H||v0(Q,Z,q,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),W.write(Q,Z,q,z,52,8),q+8}G.prototype.writeDoubleLE=function(Q,Z,q){return j0(this,Q,Z,!0,q)},G.prototype.writeDoubleBE=function(Q,Z,q){return j0(this,Q,Z,!1,q)},G.prototype.copy=function(Q,Z,q,z){if(!G.isBuffer(Q))throw TypeError("argument should be a Buffer");if(q||(q=0),!z&&z!==0&&(z=this.length),Z>=Q.length&&(Z=Q.length),Z||(Z=0),z>0&&z<q&&(z=q),z===q||Q.length===0||this.length===0)return 0;if(Z<0)throw RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw RangeError("Index out of range");if(z<0)throw RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),Q.length-Z<z-q&&(z=Q.length-Z+q);let H=z-q;return this===Q&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Z,q,z):Uint8Array.prototype.set.call(Q,this.subarray(q,z),Z),H},G.prototype.fill=function(Q,Z,q,z){if(typeof Q=="string"){if(typeof Z=="string"?(z=Z,Z=0,q=this.length):typeof q=="string"&&(z=q,q=this.length),z!==void 0&&typeof z!="string")throw TypeError("encoding must be a string");if(typeof z=="string"&&!G.isEncoding(z))throw TypeError("Unknown encoding: "+z);if(Q.length===1){let J=Q.charCodeAt(0);(z==="utf8"&&J<128||z==="latin1")&&(Q=J)}}else typeof Q=="number"?Q=Q&255:typeof Q=="boolean"&&(Q=Number(Q));if(Z<0||this.length<Z||this.length<q)throw RangeError("Out of range index");if(q<=Z)return this;Z=Z>>>0,q=q===void 0?this.length:q>>>0,Q||(Q=0);let H;if(typeof Q=="number")for(H=Z;H<q;++H)this[H]=Q;else{let J=G.isBuffer(Q)?Q:G.from(Q,z),$=J.length;if($===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(H=0;H<q-Z;++H)this[H+Z]=J[H%$]}return this};var f={};function e(Q,Z,q){f[Q]=class extends q{constructor(){super(),Object.defineProperty(this,"message",{value:Z.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}e("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),e("ERR_INVALID_ARG_TYPE",function(Q,Z){return`The "${Q}" argument must be of type number. Received type ${typeof Z}`},TypeError),e("ERR_OUT_OF_RANGE",function(Q,Z,q){let z=`The value of "${Q}" is out of range.`,H=q;return Number.isInteger(q)&&Math.abs(q)>4294967296?H=T0(String(q)):typeof q=="bigint"&&(H=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(H=T0(H)),H+="n"),z+=` It must be ${Z}. Received ${H}`,z},RangeError);function T0(Q){let Z="",q=Q.length,z=Q[0]==="-"?1:0;for(;q>=z+4;q-=3)Z=`_${Q.slice(q-3,q)}${Z}`;return`${Q.slice(0,q)}${Z}`}function Q1(Q,Z,q){c(Z,"offset"),(Q[Z]===void 0||Q[Z+q]===void 0)&&a(Z,Q.length-(q+1))}function w0(Q,Z,q,z,H,J){if(Q>q||Q<Z){let $=typeof Z=="bigint"?"n":"",T;throw J>3?Z===0||Z===BigInt(0)?T=`>= 0${$} and < 2${$} ** ${(J+1)*8}${$}`:T=`>= -(2${$} ** ${(J+1)*8-1}${$}) and < 2 ** ${(J+1)*8-1}${$}`:T=`>= ${Z}${$} and <= ${q}${$}`,new f.ERR_OUT_OF_RANGE("value",T,Q)}Q1(z,H,J)}function c(Q,Z){if(typeof Q!="number")throw new f.ERR_INVALID_ARG_TYPE(Z,"number",Q)}function a(Q,Z,q){throw Math.floor(Q)!==Q?(c(Q,q),new f.ERR_OUT_OF_RANGE(q||"offset","an integer",Q)):Z<0?new f.ERR_BUFFER_OUT_OF_BOUNDS:new f.ERR_OUT_OF_RANGE(q||"offset",`>= ${q?1:0} and <= ${Z}`,Q)}var Z1=/[^+/0-9A-Za-z-_]/g;function q1(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(Z1,""),Q.length<2)return"";for(;Q.length%4!==0;)Q=Q+"=";return Q}function i(Q,Z){Z=Z||1/0;let q,z=Q.length,H=null,J=[];for(let $=0;$<z;++$){if(q=Q.charCodeAt($),q>55295&&q<57344){if(!H){if(q>56319){(Z-=3)>-1&&J.push(239,191,189);continue}else if($+1===z){(Z-=3)>-1&&J.push(239,191,189);continue}H=q;continue}if(q<56320){(Z-=3)>-1&&J.push(239,191,189),H=q;continue}q=(H-55296<<10|q-56320)+65536}else H&&(Z-=3)>-1&&J.push(239,191,189);if(H=null,q<128){if((Z-=1)<0)break;J.push(q)}else if(q<2048){if((Z-=2)<0)break;J.push(q>>6|192,q&63|128)}else if(q<65536){if((Z-=3)<0)break;J.push(q>>12|224,q>>6&63|128,q&63|128)}else if(q<1114112){if((Z-=4)<0)break;J.push(q>>18|240,q>>12&63|128,q>>6&63|128,q&63|128)}else throw Error("Invalid code point")}return J}function z1(Q){let Z=[];for(let q=0;q<Q.length;++q)Z.push(Q.charCodeAt(q)&255);return Z}function G1(Q,Z){let q,z,H,J=[];for(let $=0;$<Q.length&&!((Z-=2)<0);++$)q=Q.charCodeAt($),z=q>>8,H=q%256,J.push(H),J.push(z);return J}function F0(Q){return X.toByteArray(q1(Q))}function l(Q,Z,q,z){let H;for(H=0;H<z&&!(H+q>=Z.length||H>=Q.length);++H)Z[H+q]=Q[H];return H}function d(Q,Z){return Q instanceof Z||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===Z.name}function t(Q){return Q!==Q}var H1=function(){let Q="0123456789abcdef",Z=Array(256);for(let q=0;q<16;++q){let z=q*16;for(let H=0;H<16;++H)Z[z+H]=Q[q]+Q[H]}return Z}();function g(Q){return typeof BigInt>"u"?J1:Q}function J1(){throw Error("BigInt not supported")}}),Z0={},N1(Z0,{Blob:()=>J0,Buffer:()=>z0.Buffer,File:()=>W0,atob:()=>X0,btoa:()=>Y0,constants:()=>D0,createObjectURL:()=>$0,default:()=>q0.Buffer,isAscii:()=>_0,isUtf8:()=>y0,kMaxLength:()=>k0,kStringMaxLength:()=>p,resolveObjectURL:()=>I0,transcode:()=>A0}),U1(Z0,Q0(h())),q0=Q0(h()),z0=Q0(h()),p=4294967295,{Blob:J0,File:W0,atob:X0,btoa:Y0}=globalThis,{createObjectURL:$0}=URL,D0={__proto__:null,MAX_LENGTH:p,MAX_STRING_LENGTH:p,BYTES_PER_ELEMENT:1},m0=z0.Buffer,d0=q0.Buffer;/*!
|
|
17
3
|
* The buffer module from node.js, for the browser.
|
|
18
4
|
*
|
|
19
5
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
20
6
|
* @license MIT
|
|
21
|
-
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */});function
|
|
22
|
-
CODEPOINTS: ${JSON.stringify(R)}`}let W=xZ(G,$);if(($&&typeof $==="object"&&$.fallback!==void 0?$.fallback:t0.defaults.fallback)===!0&&W===""){let F="";for(let V=0;V<G.length;V++){let z=bI(G,V);V=z[1],F+=z[0]}let R=_Z(F);if(typeof R==="string")W=xZ(R,$)}return W}var PY={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}},BZ={};function xZ(G,$){if(typeof G!=="string")throw TypeError(`slug() requires a string argument, received ${typeof G}`);let W;if(typeof $==="string")W={replacement:$};else W=$?Object.assign({},$):{};W.mode=W.mode||t0.defaults.mode;let C=t0.defaults.modes[W.mode],F=["replacement","multicharmap","charmap","remove","lower","trim"];for(let L,E=0,A=F.length;E<A;E++)L=F[E],W[L]=L in W?W[L]:C[L];let R=W.locale?PY[W.locale]||BZ:BZ,V=[];if(W.multicharmap)for(let L in W.multicharmap){if(!Object.prototype.hasOwnProperty.call(W.multicharmap,L))continue;let E=L.length;if(!V.includes(E))V.push(E)}V=V.sort((L,E)=>E-L);let z=W.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Z0-9\s]/i,k="";for(let L,E=0,A=G.length;E<A;E++){L=G[E];let D=!1;for(let P=0;P<V.length;P++){let q=V[P],_=G.substr(E,q);if(W.multicharmap&&W.multicharmap[_]){E+=q-1,L=W.multicharmap[_],D=!0;break}}if(!D)if(R[L])L=R[L];else if(W.charmap&&W.charmap[L])L=W.charmap[L].replace(W.replacement," ");else if(W.replacement&&L.includes(W.replacement))L=L.replace(W.replacement," ");else L=L.replace(z,"");k+=L}if(W.remove)k=k.replace(W.remove,"");if(W.trim)k=k.trim();if(k=k.replace(/\s+/g,W.replacement),W.lower)k=k.toLowerCase();return k}var kY={फ़:"Fi",ग़:"Ghi",ख़:"Khi",क़:"Qi",ड़:"ugDha",ढ़:"ugDhha",य़:"Yi",ज़:"Za",בִי:"i",בֵ:"e",בֵי:"e",בֶ:"e",בַ:"a",בָ:"a",בֹ:"o",וֹ:"o",בֻ:"u",וּ:"u",בּ:"b",כּ:"k",ךּ:"k",פּ:"p",שׁ:"sh",שׂ:"s",בְ:"e",חֱ:"e",חֲ:"a",חֳ:"o",בִ:"i"},jY={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ő:"O",Ø:"O",Ō:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ő:"o",ø:"o",ō:"o",Œ:"OE",œ:"oe",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y",ẞ:"SS",α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"w",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"h",ώ:"w",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"H",Θ:"Th",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"3",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"W",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"H",Ώ:"W",Ϊ:"I",Ϋ:"Y",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"u",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"U",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"K",Ļ:"L",Ņ:"N",Ū:"U",أ:"a",إ:"i",ب:"b",ت:"t",ث:"th",ج:"g",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"d",ط:"t",ظ:"th",ع:"aa",غ:"gh",ف:"f",ق:"k",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"o",ي:"y",ء:"aa",ة:"a",آ:"a",ا:"a",پ:"p",ژ:"zh",گ:"g",چ:"ch",ک:"k",ی:"i",ė:"e",į:"i",ų:"u",Ė:"E",Į:"I",Ų:"U",ț:"t",Ț:"T",ţ:"t",Ţ:"T",ș:"s",Ș:"S",ă:"a",Ă:"A",Ạ:"A",Ả:"A",Ầ:"A",Ấ:"A",Ậ:"A",Ẩ:"A",Ẫ:"A",Ằ:"A",Ắ:"A",Ặ:"A",Ẳ:"A",Ẵ:"A",Ẹ:"E",Ẻ:"E",Ẽ:"E",Ề:"E",Ế:"E",Ệ:"E",Ể:"E",Ễ:"E",Ị:"I",Ỉ:"I",Ĩ:"I",Ọ:"O",Ỏ:"O",Ồ:"O",Ố:"O",Ộ:"O",Ổ:"O",Ỗ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ợ:"O",Ở:"O",Ỡ:"O",Ụ:"U",Ủ:"U",Ũ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ự:"U",Ử:"U",Ữ:"U",Ỳ:"Y",Ỵ:"Y",Ỷ:"Y",Ỹ:"Y",Đ:"D",ạ:"a",ả:"a",ầ:"a",ấ:"a",ậ:"a",ẩ:"a",ẫ:"a",ằ:"a",ắ:"a",ặ:"a",ẳ:"a",ẵ:"a",ẹ:"e",ẻ:"e",ẽ:"e",ề:"e",ế:"e",ệ:"e",ể:"e",ễ:"e",ị:"i",ỉ:"i",ĩ:"i",ọ:"o",ỏ:"o",ồ:"o",ố:"o",ộ:"o",ổ:"o",ỗ:"o",ơ:"o",ờ:"o",ớ:"o",ợ:"o",ở:"o",ỡ:"o",ụ:"u",ủ:"u",ũ:"u",ư:"u",ừ:"u",ứ:"u",ự:"u",ử:"u",ữ:"u",ỳ:"y",ỵ:"y",ỷ:"y",ỹ:"y",đ:"d",Ә:"AE",ә:"ae",Ғ:"GH",ғ:"gh",Қ:"KH",қ:"kh",Ң:"NG",ң:"ng",Ү:"UE",ү:"ue",Ұ:"U",ұ:"u",Һ:"H",һ:"h",Ө:"OE",ө:"oe",ђ:"dj",ј:"j",љ:"lj",њ:"nj",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Љ:"Lj",Њ:"Nj",Ћ:"C",Џ:"Dz",nj:"nj",lj:"lj",Nj:"NJ",Lj:"LJ",अ:"a",आ:"aa",ए:"e",ई:"ii",ऍ:"ei",ऎ:"ae",ऐ:"ai",इ:"i",ओ:"o",ऑ:"oi",ऒ:"oii",ऊ:"uu",औ:"ou",उ:"u",ब:"B",भ:"Bha",च:"Ca",छ:"Chha",ड:"Da",ढ:"Dha",फ:"Fa",ग:"Ga",घ:"Gha",ग़:"Ghi",ह:"Ha",ज:"Ja",झ:"Jha",क:"Ka",ख:"Kha",ख़:"Khi",ल:"L",ळ:"Li",ऌ:"Li",ऴ:"Lii",ॡ:"Lii",म:"Ma",न:"Na",ङ:"Na",ञ:"Nia",ण:"Nae",ऩ:"Ni",ॐ:"oms",प:"Pa",क़:"Qi",र:"Ra",ऋ:"Ri",ॠ:"Ri",ऱ:"Ri",स:"Sa",श:"Sha",ष:"Shha",ट:"Ta",त:"Ta",ठ:"Tha",द:"Tha",थ:"Tha",ध:"Thha",ड़:"ugDha",ढ़:"ugDhha",व:"Va",य:"Ya",य़:"Yi",ज़:"Za",ə:"e",Ə:"E",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",ב:"v",גּ:"g",ג:"g",ד:"d",דּ:"d",ה:"h",ו:"v",ז:"z",ח:"h",ט:"t",י:"y",כ:"kh",ך:"kh",ל:"l",מ:"m",ם:"m",נ:"n",ן:"n",ס:"s",פ:"f",ף:"f",ץ:"ts",צ:"ts",ק:"k",ר:"r",תּ:"t",ת:"t"};t0.charmap=Object.assign({},jY);t0.multicharmap=Object.assign({},kY);t0.defaults={charmap:t0.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:t0.charmap,multicharmap:t0.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:t0.charmap,multicharmap:t0.multicharmap,trim:!0}},multicharmap:t0.multicharmap,fallback:!0};t0.reset=function(){t0.defaults.modes.rfc3986.charmap=t0.defaults.modes.pretty.charmap=t0.charmap=t0.defaults.charmap=Object.assign({},jY),t0.defaults.modes.rfc3986.multicharmap=t0.defaults.modes.pretty.multicharmap=t0.multicharmap=t0.defaults.multicharmap=Object.assign({},kY),BZ={}};t0.extend=function(G){let $=Object.keys(G),W={},C={};for(let F=0;F<$.length;F++)if($[F].length>1)W[$[F]]=G[$[F]];else C[$[F]]=G[$[F]];Object.assign(t0.charmap,C),Object.assign(t0.multicharmap,W)};t0.setLocale=function(G){BZ=PY[G]||{}};async function iI(G,$){let W=xZ(G);if(!$?.table||!$?.column)return W;let C=W,F=1,R=1000;while(F<=R){if(!await vY.selectFrom($.table).select(["id"]).where($.column,"=",C).executeTakeFirst())return C;F++,C=`${W}-${F}`}let V=zX(6).toString("base64url").toLowerCase().replace(/[^a-z0-9]/g,"").slice(0,8);return`${W}-${V}`}export{iI as uniqueSlug,xZ as slugify};
|
|
7
|
+
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */});function O1(Y,X){let W=Y.charCodeAt(X);if(Number.isNaN(W))throw RangeError(`Index ${X} out of range for string "${Y}"; please open an issue at https://github.com/Trott/slug/issues/new`);if(W<55296||W>57343)return[Y.charAt(X),X];if(W>=55296&&W<=56319){if(Y.length<=X+1)return[" ",X];let D=Y.charCodeAt(X+1);if(D<56320||D>57343)return[" ",X];return[Y.charAt(X)+Y.charAt(X+1),X+1]}if(X===0)return[" ",X];let V=Y.charCodeAt(X-1);if(V<55296||V>56319)return[" ",X];throw Error(`String "${Y}" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new`)}var u;if(typeof window<"u")if(window.btoa)u=function(Y){return btoa(unescape(encodeURIComponent(Y)))};else u=function(Y){let X=unescape(encodeURIComponent(`${Y}`)),W="",V=0,D,v=0,N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";while(!0){let G=N;if(!X.charAt(v|0)){if(G="=",!(v%1))break}if(W+=G.charAt(63&V>>8-v%1*8),G==="="&&!(v%1))break;if(D=X.charCodeAt(v+=0.75),D>255)throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");V=V<<8|D}return W};else u=function(Y){return(V1(),$1(S0)).Buffer.from(Y).toString("base64")};var P=v1;function v1(Y,X){if(X&&typeof X==="object"&&X.debug===!0){let v=Y.split(" ").map((N)=>{return Array.from(N).map((G)=>G.codePointAt(0))});return`STRING: ${Y}
|
|
8
|
+
CODEPOINTS: ${JSON.stringify(v)}`}let W=o(Y,X);if((X&&typeof X==="object"&&X.fallback!==void 0?X.fallback:P.defaults.fallback)===!0&&W===""){let D="";for(let N=0;N<Y.length;N++){let G=O1(Y,N);N=G[1],D+=G[0]}let v=u(D);if(typeof v==="string")W=o(v,X)}return W}var g0={bg:{\u{419}:"Y",\u{439}:"y",X:"H",x:"h",\u{426}:"Ts",\u{446}:"ts",\u{429}:"Sht",\u{449}:"sht",\u{42a}:"A",\u{44a}:"a",\u{42c}:"Y",\u{44c}:"y"},de:{\u{c4}:"AE",\u{e4}:"ae",\u{d6}:"OE",\u{f6}:"oe",\u{dc}:"UE",\u{fc}:"ue"},sr:{\u{111}:"dj",\u{110}:"DJ"},uk:{\u{418}:"Y",\u{438}:"y",\u{419}:"Y",\u{439}:"y",\u{426}:"Ts",\u{446}:"ts",\u{425}:"Kh",\u{445}:"kh",\u{429}:"Shch",\u{449}:"shch",\u{413}:"H",\u{433}:"h"}},s={};function o(Y,X){if(typeof Y!=="string")throw TypeError(`slug() requires a string argument, received ${typeof Y}`);let W;if(typeof X==="string")W={replacement:X};else W=X?Object.assign({},X):{};W.mode=W.mode||P.defaults.mode;let V=P.defaults.modes[W.mode],D=["replacement","multicharmap","charmap","remove","lower","trim"];for(let U,j=0,F=D.length;j<F;j++)U=D[j],W[U]=U in W?W[U]:V[U];let v=W.locale?g0[W.locale]||s:s,N=[];if(W.multicharmap)for(let U in W.multicharmap){if(!Object.prototype.hasOwnProperty.call(W.multicharmap,U))continue;let j=U.length;if(!N.includes(j))N.push(j)}N=N.sort((U,j)=>j-U);let G=W.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Z0-9\s]/i,R="";for(let U,j=0,F=Y.length;j<F;j++){U=Y[j];let S=!1;for(let b=0;b<N.length;b++){let K=N[b],O=Y.substr(j,K);if(W.multicharmap&&W.multicharmap[O]){j+=K-1,U=W.multicharmap[O],S=!0;break}}if(!S)if(v[U])U=v[U];else if(W.charmap&&W.charmap[U])U=W.charmap[U].replace(W.replacement," ");else if(W.replacement&&U.includes(W.replacement))U=U.replace(W.replacement," ");else U=U.replace(G,"");R+=U}if(W.remove)R=R.replace(W.remove,"");if(W.trim)R=R.trim();if(R=R.replace(/\s+/g,W.replacement),W.lower)R=R.toLowerCase();return R}var f0={\u{92b}\u{93c}:"Fi",\u{917}\u{93c}:"Ghi",\u{916}\u{93c}:"Khi",\u{915}\u{93c}:"Qi",\u{921}\u{93c}:"ugDha",\u{922}\u{93c}:"ugDhha",\u{92f}\u{93c}:"Yi",\u{91c}\u{93c}:"Za",\u{5d1}\u{5b4}\u{5d9}:"i",\u{5d1}\u{5b5}:"e",\u{5d1}\u{5b5}\u{5d9}:"e",\u{5d1}\u{5b6}:"e",\u{5d1}\u{5b7}:"a",\u{5d1}\u{5b8}:"a",\u{5d1}\u{5b9}:"o",\u{5d5}\u{5b9}:"o",\u{5d1}\u{5bb}:"u",\u{5d5}\u{5bc}:"u",\u{5d1}\u{5bc}:"b",\u{5db}\u{5bc}:"k",\u{5da}\u{5bc}:"k",\u{5e4}\u{5bc}:"p",\u{5e9}\u{5c1}:"sh",\u{5e9}\u{5c2}:"s",\u{5d1}\u{5b0}:"e",\u{5d7}\u{5b1}:"e",\u{5d7}\u{5b2}:"a",\u{5d7}\u{5b3}:"o",\u{5d1}\u{5b4}:"i"},c0={\u{c0}:"A",\u{c1}:"A",\u{c2}:"A",\u{c3}:"A",\u{c4}:"A",\u{c5}:"A",\u{c6}:"AE",\u{c7}:"C",\u{c8}:"E",\u{c9}:"E",\u{ca}:"E",\u{cb}:"E",\u{cc}:"I",\u{cd}:"I",\u{ce}:"I",\u{cf}:"I",\u{d0}:"D",\u{d1}:"N",\u{d2}:"O",\u{d3}:"O",\u{d4}:"O",\u{d5}:"O",\u{d6}:"O",\u{150}:"O",\u{d8}:"O",\u{14c}:"O",\u{d9}:"U",\u{da}:"U",\u{db}:"U",\u{dc}:"U",\u{170}:"U",\u{dd}:"Y",\u{de}:"TH",\u{df}:"ss",\u{e0}:"a",\u{e1}:"a",\u{e2}:"a",\u{e3}:"a",\u{e4}:"a",\u{e5}:"a",\u{e6}:"ae",\u{e7}:"c",\u{e8}:"e",\u{e9}:"e",\u{ea}:"e",\u{eb}:"e",\u{ec}:"i",\u{ed}:"i",\u{ee}:"i",\u{ef}:"i",\u{f0}:"d",\u{f1}:"n",\u{f2}:"o",\u{f3}:"o",\u{f4}:"o",\u{f5}:"o",\u{f6}:"o",\u{151}:"o",\u{f8}:"o",\u{14d}:"o",\u{152}:"OE",\u{153}:"oe",\u{f9}:"u",\u{fa}:"u",\u{fb}:"u",\u{fc}:"u",\u{171}:"u",\u{fd}:"y",\u{fe}:"th",\u{ff}:"y",\u{1e9e}:"SS",\u{3b1}:"a",\u{3b2}:"b",\u{3b3}:"g",\u{3b4}:"d",\u{3b5}:"e",\u{3b6}:"z",\u{3b7}:"h",\u{3b8}:"th",\u{3b9}:"i",\u{3ba}:"k",\u{3bb}:"l",\u{3bc}:"m",\u{3bd}:"n",\u{3be}:"3",\u{3bf}:"o",\u{3c0}:"p",\u{3c1}:"r",\u{3c3}:"s",\u{3c4}:"t",\u{3c5}:"y",\u{3c6}:"f",\u{3c7}:"x",\u{3c8}:"ps",\u{3c9}:"w",\u{3ac}:"a",\u{3ad}:"e",\u{3af}:"i",\u{3cc}:"o",\u{3cd}:"y",\u{3ae}:"h",\u{3ce}:"w",\u{3c2}:"s",\u{3ca}:"i",\u{3b0}:"y",\u{3cb}:"y",\u{390}:"i",\u{391}:"A",\u{392}:"B",\u{393}:"G",\u{394}:"D",\u{395}:"E",\u{396}:"Z",\u{397}:"H",\u{398}:"Th",\u{399}:"I",\u{39a}:"K",\u{39b}:"L",\u{39c}:"M",\u{39d}:"N",\u{39e}:"3",\u{39f}:"O",\u{3a0}:"P",\u{3a1}:"R",\u{3a3}:"S",\u{3a4}:"T",\u{3a5}:"Y",\u{3a6}:"F",\u{3a7}:"X",\u{3a8}:"PS",\u{3a9}:"W",\u{386}:"A",\u{388}:"E",\u{38a}:"I",\u{38c}:"O",\u{38e}:"Y",\u{389}:"H",\u{38f}:"W",\u{3aa}:"I",\u{3ab}:"Y",\u{15f}:"s",\u{15e}:"S",\u{131}:"i",\u{130}:"I",\u{11f}:"g",\u{11e}:"G",\u{430}:"a",\u{431}:"b",\u{432}:"v",\u{433}:"g",\u{434}:"d",\u{435}:"e",\u{451}:"yo",\u{436}:"zh",\u{437}:"z",\u{438}:"i",\u{439}:"j",\u{43a}:"k",\u{43b}:"l",\u{43c}:"m",\u{43d}:"n",\u{43e}:"o",\u{43f}:"p",\u{440}:"r",\u{441}:"s",\u{442}:"t",\u{443}:"u",\u{444}:"f",\u{445}:"h",\u{446}:"c",\u{447}:"ch",\u{448}:"sh",\u{449}:"sh",\u{44a}:"u",\u{44b}:"y",\u{44c}:"",\u{44d}:"e",\u{44e}:"yu",\u{44f}:"ya",\u{410}:"A",\u{411}:"B",\u{412}:"V",\u{413}:"G",\u{414}:"D",\u{415}:"E",\u{401}:"Yo",\u{416}:"Zh",\u{417}:"Z",\u{418}:"I",\u{419}:"J",\u{41a}:"K",\u{41b}:"L",\u{41c}:"M",\u{41d}:"N",\u{41e}:"O",\u{41f}:"P",\u{420}:"R",\u{421}:"S",\u{422}:"T",\u{423}:"U",\u{424}:"F",\u{425}:"H",\u{426}:"C",\u{427}:"Ch",\u{428}:"Sh",\u{429}:"Sh",\u{42a}:"U",\u{42b}:"Y",\u{42c}:"",\u{42d}:"E",\u{42e}:"Yu",\u{42f}:"Ya",\u{404}:"Ye",\u{406}:"I",\u{407}:"Yi",\u{490}:"G",\u{454}:"ye",\u{456}:"i",\u{457}:"yi",\u{491}:"g",\u{10d}:"c",\u{10f}:"d",\u{11b}:"e",\u{148}:"n",\u{159}:"r",\u{161}:"s",\u{165}:"t",\u{16f}:"u",\u{17e}:"z",\u{10c}:"C",\u{10e}:"D",\u{11a}:"E",\u{147}:"N",\u{158}:"R",\u{160}:"S",\u{164}:"T",\u{16e}:"U",\u{17d}:"Z",\u{13e}:"l",\u{13a}:"l",\u{155}:"r",\u{13d}:"L",\u{139}:"L",\u{154}:"R",\u{105}:"a",\u{107}:"c",\u{119}:"e",\u{142}:"l",\u{144}:"n",\u{15b}:"s",\u{17a}:"z",\u{17c}:"z",\u{104}:"A",\u{106}:"C",\u{118}:"E",\u{141}:"L",\u{143}:"N",\u{15a}:"S",\u{179}:"Z",\u{17b}:"Z",\u{101}:"a",\u{113}:"e",\u{123}:"g",\u{12b}:"i",\u{137}:"k",\u{13c}:"l",\u{146}:"n",\u{16b}:"u",\u{100}:"A",\u{112}:"E",\u{122}:"G",\u{12a}:"I",\u{136}:"K",\u{13b}:"L",\u{145}:"N",\u{16a}:"U",\u{623}:"a",\u{625}:"i",\u{628}:"b",\u{62a}:"t",\u{62b}:"th",\u{62c}:"g",\u{62d}:"h",\u{62e}:"kh",\u{62f}:"d",\u{630}:"th",\u{631}:"r",\u{632}:"z",\u{633}:"s",\u{634}:"sh",\u{635}:"s",\u{636}:"d",\u{637}:"t",\u{638}:"th",\u{639}:"aa",\u{63a}:"gh",\u{641}:"f",\u{642}:"k",\u{643}:"k",\u{644}:"l",\u{645}:"m",\u{646}:"n",\u{647}:"h",\u{648}:"o",\u{64a}:"y",\u{621}:"aa",\u{629}:"a",\u{622}:"a",\u{627}:"a",\u{67e}:"p",\u{698}:"zh",\u{6af}:"g",\u{686}:"ch",\u{6a9}:"k",\u{6cc}:"i",\u{117}:"e",\u{12f}:"i",\u{173}:"u",\u{116}:"E",\u{12e}:"I",\u{172}:"U",\u{21b}:"t",\u{21a}:"T",\u{163}:"t",\u{162}:"T",\u{219}:"s",\u{218}:"S",\u{103}:"a",\u{102}:"A",\u{1ea0}:"A",\u{1ea2}:"A",\u{1ea6}:"A",\u{1ea4}:"A",\u{1eac}:"A",\u{1ea8}:"A",\u{1eaa}:"A",\u{1eb0}:"A",\u{1eae}:"A",\u{1eb6}:"A",\u{1eb2}:"A",\u{1eb4}:"A",\u{1eb8}:"E",\u{1eba}:"E",\u{1ebc}:"E",\u{1ec0}:"E",\u{1ebe}:"E",\u{1ec6}:"E",\u{1ec2}:"E",\u{1ec4}:"E",\u{1eca}:"I",\u{1ec8}:"I",\u{128}:"I",\u{1ecc}:"O",\u{1ece}:"O",\u{1ed2}:"O",\u{1ed0}:"O",\u{1ed8}:"O",\u{1ed4}:"O",\u{1ed6}:"O",\u{1a0}:"O",\u{1edc}:"O",\u{1eda}:"O",\u{1ee2}:"O",\u{1ede}:"O",\u{1ee0}:"O",\u{1ee4}:"U",\u{1ee6}:"U",\u{168}:"U",\u{1af}:"U",\u{1eea}:"U",\u{1ee8}:"U",\u{1ef0}:"U",\u{1eec}:"U",\u{1eee}:"U",\u{1ef2}:"Y",\u{1ef4}:"Y",\u{1ef6}:"Y",\u{1ef8}:"Y",\u{110}:"D",\u{1ea1}:"a",\u{1ea3}:"a",\u{1ea7}:"a",\u{1ea5}:"a",\u{1ead}:"a",\u{1ea9}:"a",\u{1eab}:"a",\u{1eb1}:"a",\u{1eaf}:"a",\u{1eb7}:"a",\u{1eb3}:"a",\u{1eb5}:"a",\u{1eb9}:"e",\u{1ebb}:"e",\u{1ebd}:"e",\u{1ec1}:"e",\u{1ebf}:"e",\u{1ec7}:"e",\u{1ec3}:"e",\u{1ec5}:"e",\u{1ecb}:"i",\u{1ec9}:"i",\u{129}:"i",\u{1ecd}:"o",\u{1ecf}:"o",\u{1ed3}:"o",\u{1ed1}:"o",\u{1ed9}:"o",\u{1ed5}:"o",\u{1ed7}:"o",\u{1a1}:"o",\u{1edd}:"o",\u{1edb}:"o",\u{1ee3}:"o",\u{1edf}:"o",\u{1ee1}:"o",\u{1ee5}:"u",\u{1ee7}:"u",\u{169}:"u",\u{1b0}:"u",\u{1eeb}:"u",\u{1ee9}:"u",\u{1ef1}:"u",\u{1eed}:"u",\u{1eef}:"u",\u{1ef3}:"y",\u{1ef5}:"y",\u{1ef7}:"y",\u{1ef9}:"y",\u{111}:"d",\u{4d8}:"AE",\u{4d9}:"ae",\u{492}:"GH",\u{493}:"gh",\u{49a}:"KH",\u{49b}:"kh",\u{4a2}:"NG",\u{4a3}:"ng",\u{4ae}:"UE",\u{4af}:"ue",\u{4b0}:"U",\u{4b1}:"u",\u{4ba}:"H",\u{4bb}:"h",\u{4e8}:"OE",\u{4e9}:"oe",\u{452}:"dj",\u{458}:"j",\u{459}:"lj",\u{45a}:"nj",\u{45b}:"c",\u{45f}:"dz",\u{402}:"Dj",\u{408}:"j",\u{409}:"Lj",\u{40a}:"Nj",\u{40b}:"C",\u{40f}:"Dz",\u{1cc}:"nj",\u{1c9}:"lj",\u{1cb}:"NJ",\u{1c8}:"LJ",\u{905}:"a",\u{906}:"aa",\u{90f}:"e",\u{908}:"ii",\u{90d}:"ei",\u{90e}:"ae",\u{910}:"ai",\u{907}:"i",\u{913}:"o",\u{911}:"oi",\u{912}:"oii",\u{90a}:"uu",\u{914}:"ou",\u{909}:"u",\u{92c}:"B",\u{92d}:"Bha",\u{91a}:"Ca",\u{91b}:"Chha",\u{921}:"Da",\u{922}:"Dha",\u{92b}:"Fa",\u{917}:"Ga",\u{918}:"Gha",\u{917}\u{93c}:"Ghi",\u{939}:"Ha",\u{91c}:"Ja",\u{91d}:"Jha",\u{915}:"Ka",\u{916}:"Kha",\u{916}\u{93c}:"Khi",\u{932}:"L",\u{933}:"Li",\u{90c}:"Li",\u{934}:"Lii",\u{961}:"Lii",\u{92e}:"Ma",\u{928}:"Na",\u{919}:"Na",\u{91e}:"Nia",\u{923}:"Nae",\u{929}:"Ni",\u{950}:"oms",\u{92a}:"Pa",\u{915}\u{93c}:"Qi",\u{930}:"Ra",\u{90b}:"Ri",\u{960}:"Ri",\u{931}:"Ri",\u{938}:"Sa",\u{936}:"Sha",\u{937}:"Shha",\u{91f}:"Ta",\u{924}:"Ta",\u{920}:"Tha",\u{926}:"Tha",\u{925}:"Tha",\u{927}:"Thha",\u{921}\u{93c}:"ugDha",\u{922}\u{93c}:"ugDhha",\u{935}:"Va",\u{92f}:"Ya",\u{92f}\u{93c}:"Yi",\u{91c}\u{93c}:"Za",\u{259}:"e",\u{18f}:"E",\u{10d0}:"a",\u{10d1}:"b",\u{10d2}:"g",\u{10d3}:"d",\u{10d4}:"e",\u{10d5}:"v",\u{10d6}:"z",\u{10d7}:"t",\u{10d8}:"i",\u{10d9}:"k",\u{10da}:"l",\u{10db}:"m",\u{10dc}:"n",\u{10dd}:"o",\u{10de}:"p",\u{10df}:"zh",\u{10e0}:"r",\u{10e1}:"s",\u{10e2}:"t",\u{10e3}:"u",\u{10e4}:"p",\u{10e5}:"k",\u{10e6}:"gh",\u{10e7}:"q",\u{10e8}:"sh",\u{10e9}:"ch",\u{10ea}:"ts",\u{10eb}:"dz",\u{10ec}:"ts",\u{10ed}:"ch",\u{10ee}:"kh",\u{10ef}:"j",\u{10f0}:"h",\u{5d1}:"v",\u{5d2}\u{5bc}:"g",\u{5d2}:"g",\u{5d3}:"d",\u{5d3}\u{5bc}:"d",\u{5d4}:"h",\u{5d5}:"v",\u{5d6}:"z",\u{5d7}:"h",\u{5d8}:"t",\u{5d9}:"y",\u{5db}:"kh",\u{5da}:"kh",\u{5dc}:"l",\u{5de}:"m",\u{5dd}:"m",\u{5e0}:"n",\u{5df}:"n",\u{5e1}:"s",\u{5e4}:"f",\u{5e3}:"f",\u{5e5}:"ts",\u{5e6}:"ts",\u{5e7}:"k",\u{5e8}:"r",\u{5ea}\u{5bc}:"t",\u{5ea}:"t"};P.charmap=Object.assign({},c0);P.multicharmap=Object.assign({},f0);P.defaults={charmap:P.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:P.charmap,multicharmap:P.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:P.charmap,multicharmap:P.multicharmap,trim:!0}},multicharmap:P.multicharmap,fallback:!0};P.reset=function(){P.defaults.modes.rfc3986.charmap=P.defaults.modes.pretty.charmap=P.charmap=P.defaults.charmap=Object.assign({},c0),P.defaults.modes.rfc3986.multicharmap=P.defaults.modes.pretty.multicharmap=P.multicharmap=P.defaults.multicharmap=Object.assign({},f0),s={}};P.extend=function(Y){let X=Object.keys(Y),W={},V={};for(let D=0;D<X.length;D++)if(X[D].length>1)W[X[D]]=Y[X[D]];else V[X[D]]=Y[X[D]];Object.assign(P.charmap,V),Object.assign(P.multicharmap,W)};P.setLocale=function(Y){s=g0[Y]||{}};async function P1(Y,X){let W=o(Y);if(!X?.table||!X?.column)return W;let V=W,D=1,v=1000;while(D<=v){if(!await a0.selectFrom(X.table).select(["id"]).where(X.column,"=",V).executeTakeFirst())return V;D++,V=`${W}-${D}`}let N=R1(6).toString("base64url").toLowerCase().replace(/[^a-z0-9]/g,"").slice(0,8);return`${W}-${N}`}export{P1 as uniqueSlug,o as slugify};
|