@timeback/sdk 0.1.15-beta.20260312005805 → 0.2.0
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/README.md +5 -3
- package/dist/chunk-1s709w5e.js +2 -0
- package/dist/{chunk-2bqg0gqv.js → chunk-25502p3e.js} +1 -1
- package/dist/{chunk-gqzeagk6.js → chunk-3pf3cpfk.js} +2 -2
- package/dist/chunk-6nybr8hs.js +2 -0
- package/dist/{chunk-x79fk5sn.js → chunk-bh0ewh45.js} +1 -1
- package/dist/{chunk-1yn5w82n.js → chunk-dbcsf5tk.js} +1 -1
- package/dist/chunk-etcswj6j.js +1 -0
- package/dist/{chunk-4pa6jpyx.js → chunk-kkajswjx.js} +1 -1
- package/dist/{chunk-mnj8k0pt.js → chunk-nw6brg34.js} +2 -2
- package/dist/chunk-zpbvsyr1.js +10 -0
- package/dist/chunk-zy9f17gs.js +17 -0
- package/dist/identity.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/adapters/express.js +1 -1
- package/dist/server/adapters/native.js +2 -2
- package/dist/server/adapters/nextjs.js +1 -1
- package/dist/server/adapters/nuxt.js +1 -1
- package/dist/server/adapters/solid-start.js +1 -1
- package/dist/server/adapters/svelte-kit.js +1 -1
- package/dist/server/adapters/tanstack-start.js +1 -1
- package/dist/server/timeback-identity.d.ts +0 -2
- package/dist/server/timeback-identity.d.ts.map +1 -1
- package/package.json +7 -8
- package/dist/chunk-0skdg1yp.js +0 -11
- package/dist/chunk-gqjmjeta.js +0 -2
- package/dist/chunk-hhh88wcq.js +0 -2
- package/dist/chunk-k51p29gg.js +0 -108
package/dist/chunk-k51p29gg.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import{a as Z1,b as Q1}from"./chunk-0skdg1yp.js";import{f as LV}from"./chunk-2bqg0gqv.js";import{T as FW,U as WU,V as MZ,W as OZ,X as FZ,Y as KQ}from"./chunk-hhh88wcq.js";var JY={};OZ(JY,{sep:()=>ZY,resolve:()=>cZ,relative:()=>ZX,posix:()=>XY,parse:()=>UY,normalize:()=>oX,join:()=>UX,isAbsolute:()=>aJ,format:()=>eJ,extname:()=>TQ,dirname:()=>iJ,delimiter:()=>QY,default:()=>PK,basename:()=>qQ,_makeLong:()=>tJ});function GZ(Y){if(typeof Y!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Y))}function rJ(Y,W){var V="",z=0,O=-1,A=0,G;for(var v=0;v<=Y.length;++v){if(v<Y.length)G=Y.charCodeAt(v);else if(G===47)break;else G=47;if(G===47){if(O===v-1||A===1);else if(O!==v-1&&A===2){if(V.length<2||z!==2||V.charCodeAt(V.length-1)!==46||V.charCodeAt(V.length-2)!==46){if(V.length>2){var j=V.lastIndexOf("/");if(j!==V.length-1){if(j===-1)V="",z=0;else V=V.slice(0,j),z=V.length-1-V.lastIndexOf("/");O=v,A=0;continue}}else if(V.length===2||V.length===1){V="",z=0,O=v,A=0;continue}}if(W){if(V.length>0)V+="/..";else V="..";z=2}}else{if(V.length>0)V+="/"+Y.slice(O+1,v);else V=Y.slice(O+1,v);z=v-O-1}O=v,A=0}else if(G===46&&A!==-1)++A;else A=-1}return V}function EK(Y,W){var V=W.dir||W.root,z=W.base||(W.name||"")+(W.ext||"");if(!V)return z;if(V===W.root)return V+z;return V+Y+z}function cZ(){var Y="",W=!1,V;for(var z=arguments.length-1;z>=-1&&!W;z--){var O;if(z>=0)O=arguments[z];else{if(V===void 0)V=process.cwd();O=V}if(GZ(O),O.length===0)continue;Y=O+"/"+Y,W=O.charCodeAt(0)===47}if(Y=rJ(Y,!W),W)if(Y.length>0)return"/"+Y;else return"/";else if(Y.length>0)return Y;else return"."}function oX(Y){if(GZ(Y),Y.length===0)return".";var W=Y.charCodeAt(0)===47,V=Y.charCodeAt(Y.length-1)===47;if(Y=rJ(Y,!W),Y.length===0&&!W)Y=".";if(Y.length>0&&V)Y+="/";if(W)return"/"+Y;return Y}function aJ(Y){return GZ(Y),Y.length>0&&Y.charCodeAt(0)===47}function UX(){if(arguments.length===0)return".";var Y;for(var W=0;W<arguments.length;++W){var V=arguments[W];if(GZ(V),V.length>0)if(Y===void 0)Y=V;else Y+="/"+V}if(Y===void 0)return".";return oX(Y)}function ZX(Y,W){if(GZ(Y),GZ(W),Y===W)return"";if(Y=cZ(Y),W=cZ(W),Y===W)return"";var V=1;for(;V<Y.length;++V)if(Y.charCodeAt(V)!==47)break;var z=Y.length,O=z-V,A=1;for(;A<W.length;++A)if(W.charCodeAt(A)!==47)break;var G=W.length,v=G-A,j=O<v?O:v,E=-1,q=0;for(;q<=j;++q){if(q===j){if(v>j){if(W.charCodeAt(A+q)===47)return W.slice(A+q+1);else if(q===0)return W.slice(A+q)}else if(O>j){if(Y.charCodeAt(V+q)===47)E=q;else if(q===0)E=0}break}var C=Y.charCodeAt(V+q),M=W.charCodeAt(A+q);if(C!==M)break;else if(C===47)E=q}var F="";for(q=V+E+1;q<=z;++q)if(q===z||Y.charCodeAt(q)===47)if(F.length===0)F+="..";else F+="/..";if(F.length>0)return F+W.slice(A+E);else{if(A+=E,W.charCodeAt(A)===47)++A;return W.slice(A)}}function tJ(Y){return Y}function iJ(Y){if(GZ(Y),Y.length===0)return".";var W=Y.charCodeAt(0),V=W===47,z=-1,O=!0;for(var A=Y.length-1;A>=1;--A)if(W=Y.charCodeAt(A),W===47){if(!O){z=A;break}}else O=!1;if(z===-1)return V?"/":".";if(V&&z===1)return"//";return Y.slice(0,z)}function qQ(Y,W){if(W!==void 0&&typeof W!=="string")throw TypeError('"ext" argument must be a string');GZ(Y);var V=0,z=-1,O=!0,A;if(W!==void 0&&W.length>0&&W.length<=Y.length){if(W.length===Y.length&&W===Y)return"";var G=W.length-1,v=-1;for(A=Y.length-1;A>=0;--A){var j=Y.charCodeAt(A);if(j===47){if(!O){V=A+1;break}}else{if(v===-1)O=!1,v=A+1;if(G>=0)if(j===W.charCodeAt(G)){if(--G===-1)z=A}else G=-1,z=v}}if(V===z)z=v;else if(z===-1)z=Y.length;return Y.slice(V,z)}else{for(A=Y.length-1;A>=0;--A)if(Y.charCodeAt(A)===47){if(!O){V=A+1;break}}else if(z===-1)O=!1,z=A+1;if(z===-1)return"";return Y.slice(V,z)}}function TQ(Y){GZ(Y);var W=-1,V=0,z=-1,O=!0,A=0;for(var G=Y.length-1;G>=0;--G){var v=Y.charCodeAt(G);if(v===47){if(!O){V=G+1;break}continue}if(z===-1)O=!1,z=G+1;if(v===46){if(W===-1)W=G;else if(A!==1)A=1}else if(W!==-1)A=-1}if(W===-1||z===-1||A===0||A===1&&W===z-1&&W===V+1)return"";return Y.slice(W,z)}function eJ(Y){if(Y===null||typeof Y!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Y);return EK("/",Y)}function UY(Y){GZ(Y);var W={root:"",dir:"",base:"",ext:"",name:""};if(Y.length===0)return W;var V=Y.charCodeAt(0),z=V===47,O;if(z)W.root="/",O=1;else O=0;var A=-1,G=0,v=-1,j=!0,E=Y.length-1,q=0;for(;E>=O;--E){if(V=Y.charCodeAt(E),V===47){if(!j){G=E+1;break}continue}if(v===-1)j=!1,v=E+1;if(V===46){if(A===-1)A=E;else if(q!==1)q=1}else if(A!==-1)q=-1}if(A===-1||v===-1||q===0||q===1&&A===v-1&&A===G+1){if(v!==-1)if(G===0&&z)W.base=W.name=Y.slice(1,v);else W.base=W.name=Y.slice(G,v)}else{if(G===0&&z)W.name=Y.slice(1,A),W.base=Y.slice(1,v);else W.name=Y.slice(G,A),W.base=Y.slice(G,v);W.ext=Y.slice(A,v)}if(G>0)W.dir=Y.slice(0,G-1);else if(z)W.dir="/";return W}var ZY="/",QY=":",XY,PK;var nX=FZ(()=>{XY=((Y)=>(Y.posix=Y,Y))({resolve:cZ,normalize:oX,isAbsolute:aJ,join:UX,relative:ZX,_makeLong:tJ,dirname:iJ,basename:qQ,extname:TQ,format:eJ,parse:UY,sep:ZY,delimiter:QY,win32:null,posix:null}),PK=XY});var QX={};OZ(QX,{isatty:()=>RQ,default:()=>jK,WriteStream:()=>YY,ReadStream:()=>GY});function YY(){throw Error("tty.WriteStream is not implemented for browsers")}function GY(){throw Error("tty.ReadStream is not implemented for browsers")}var RQ=()=>!1,jK;var sX=FZ(()=>{jK={ReadStream:GY,WriteStream:YY,isatty:RQ}});var FY={};OZ(FY,{uptime:()=>bK,type:()=>mK,totalmem:()=>dK,tmpdir:()=>OY,tmpDir:()=>aK,release:()=>oK,platform:()=>rK,networkInterfaces:()=>nK,loadavg:()=>cK,hostname:()=>pK,homedir:()=>iK,getNetworkInterfaces:()=>IY,freemem:()=>uK,endianness:()=>hK,cpus:()=>lK,arch:()=>sK,EOL:()=>tK});var hK=function(){return"LE"},pK=function(){if(typeof location<"u")return location.hostname;else return""},cK=function(){return[]},bK=function(){return 0},uK=function(){return Number.MAX_VALUE},dK=function(){return Number.MAX_VALUE},lK=function(){return[]},mK=function(){return"Browser"},oK=function(){if(typeof navigator<"u")return navigator.appVersion;return""},IY=function(){return{}},nK,sK=function(){return"javascript"},rK=function(){return"browser"},OY=function(){return"/tmp"},aK,tK=`
|
|
2
|
-
`,iK=function(){return"/"};var zY=FZ(()=>{nK=IY,aK=OY});var SY={};OZ(SY,{resolveObject:()=>RY,resolve:()=>TY,parse:()=>QQ,format:()=>qY,default:()=>V$,Url:()=>eU,URLSearchParams:()=>MY,URL:()=>iX});function eX(Y){return typeof Y==="string"}function AY(Y){return typeof Y==="object"&&Y!==null}function XX(Y){return Y===null}function eK(Y){return Y==null}function eU(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function QQ(Y,W,V){if(Y&&AY(Y)&&Y instanceof eU)return Y;var z=new eU;return z.parse(Y,W,V),z}function qY(Y){if(eX(Y))Y=QQ(Y);if(!(Y instanceof eU))return eU.prototype.format.call(Y);return Y.format()}function TY(Y,W){return QQ(Y,!1,!0).resolve(W)}function RY(Y,W){if(!Y)return W;return QQ(Y,!1,!0).resolveObject(W)}var iX,MY,U$,Z$,Q$,X$,J$,rX,CY,DY,Y$=255,LY,G$,W$,aX,ZQ,tX,V$;var EY=FZ(()=>{({URL:iX,URLSearchParams:MY}=globalThis);U$=/^([a-z0-9.+-]+:)/i,Z$=/:[0-9]*$/,Q$=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,X$=["<",">",'"',"`"," ","\r",`
|
|
3
|
-
`,"\t"],J$=["{","}","|","\\","^","`"].concat(X$),rX=["'"].concat(J$),CY=["%","/","?",";","#"].concat(rX),DY=["/","?","#"],LY=/^[+a-z0-9A-Z_-]{0,63}$/,G$=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,W$={javascript:!0,"javascript:":!0},aX={javascript:!0,"javascript:":!0},ZQ={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},tX={parse(Y){var W=decodeURIComponent;return(Y+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(V,z,O){var A=z.split("="),G=W(A[0]||""),v=W(A[1]||""),j=V[G];return V[G]=j===void 0?v:[].concat(j,v),V},{})},stringify(Y){var W=encodeURIComponent;return Object.keys(Y||{}).reduce(function(V,z){return[].concat(Y[z]).forEach(function(O){V.push(W(z)+"="+W(O))}),V},[]).join("&").replace(/\s/g,"+")}};eU.prototype.parse=function(Y,W,V){if(!eX(Y))throw TypeError("Parameter 'url' must be a string, not "+typeof Y);var z=Y.indexOf("?"),O=z!==-1&&z<Y.indexOf("#")?"?":"#",A=Y.split(O),G=/\\/g;A[0]=A[0].replace(G,"/"),Y=A.join(O);var v=Y;if(v=v.trim(),!V&&Y.split("#").length===1){var j=Q$.exec(v);if(j){if(this.path=v,this.href=v,this.pathname=j[1],j[2])if(this.search=j[2],W)this.query=tX.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(W)this.search="",this.query={};return this}}var E=U$.exec(v);if(E){E=E[0];var q=E.toLowerCase();this.protocol=q,v=v.substr(E.length)}if(V||E||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var C=v.substr(0,2)==="//";if(C&&!(E&&aX[E]))v=v.substr(2),this.slashes=!0}if(!aX[E]&&(C||E&&!ZQ[E])){var M=-1;for(var F=0;F<DY.length;F++){var D=v.indexOf(DY[F]);if(D!==-1&&(M===-1||D<M))M=D}var S,P;if(M===-1)P=v.lastIndexOf("@");else P=v.lastIndexOf("@",M);if(P!==-1)S=v.slice(0,P),v=v.slice(P+1),this.auth=decodeURIComponent(S);M=-1;for(var F=0;F<CY.length;F++){var D=v.indexOf(CY[F]);if(D!==-1&&(M===-1||D<M))M=D}if(M===-1)M=v.length;this.host=v.slice(0,M),v=v.slice(M),this.parseHost(),this.hostname=this.hostname||"";var k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){var x=this.hostname.split(/\./);for(var F=0,f=x.length;F<f;F++){var h=x[F];if(!h)continue;if(!h.match(LY)){var c="";for(var m=0,g=h.length;m<g;m++)if(h.charCodeAt(m)>127)c+="x";else c+=h[m];if(!c.match(LY)){var Q0=x.slice(0,F),J0=x.slice(F+1),r=h.match(G$);if(r)Q0.push(r[1]),J0.unshift(r[2]);if(J0.length)v="/"+J0.join(".")+v;this.hostname=Q0.join(".");break}}}}if(this.hostname.length>Y$)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!k)this.hostname=new iX(`https://${this.hostname}`).hostname;var O0=this.port?":"+this.port:"",U=this.hostname||"";if(this.host=U+O0,this.href+=this.host,k){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),v[0]!=="/")v="/"+v}}if(!W$[q])for(var F=0,f=rX.length;F<f;F++){var X=rX[F];if(v.indexOf(X)===-1)continue;var $=encodeURIComponent(X);if($===X)$=escape(X);v=v.split(X).join($)}var Q=v.indexOf("#");if(Q!==-1)this.hash=v.substr(Q),v=v.slice(0,Q);var K=v.indexOf("?");if(K!==-1){if(this.search=v.substr(K),this.query=v.substr(K+1),W)this.query=tX.parse(this.query);v=v.slice(0,K)}else if(W)this.search="",this.query={};if(v)this.pathname=v;if(ZQ[q]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var O0=this.pathname||"",L=this.search||"";this.path=O0+L}return this.href=this.format(),this};eU.prototype.format=function(){var Y=this.auth||"";if(Y)Y=encodeURIComponent(Y),Y=Y.replace(/%3A/i,":"),Y+="@";var W=this.protocol||"",V=this.pathname||"",z=this.hash||"",O=!1,A="";if(this.host)O=Y+this.host;else if(this.hostname){if(O=Y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)O+=":"+this.port}if(this.query&&AY(this.query)&&Object.keys(this.query).length)A=tX.stringify(this.query);var G=this.search||A&&"?"+A||"";if(W&&W.substr(-1)!==":")W+=":";if(this.slashes||(!W||ZQ[W])&&O!==!1){if(O="//"+(O||""),V&&V.charAt(0)!=="/")V="/"+V}else if(!O)O="";if(z&&z.charAt(0)!=="#")z="#"+z;if(G&&G.charAt(0)!=="?")G="?"+G;return V=V.replace(/[?#]/g,function(v){return encodeURIComponent(v)}),G=G.replace("#","%23"),W+O+V+G+z};eU.prototype.resolve=function(Y){return this.resolveObject(QQ(Y,!1,!0)).format()};eU.prototype.resolveObject=function(Y){if(eX(Y)){var W=new eU;W.parse(Y,!1,!0),Y=W}var V=new eU,z=Object.keys(this);for(var O=0;O<z.length;O++){var A=z[O];V[A]=this[A]}if(V.hash=Y.hash,Y.href==="")return V.href=V.format(),V;if(Y.slashes&&!Y.protocol){var G=Object.keys(Y);for(var v=0;v<G.length;v++){var j=G[v];if(j!=="protocol")V[j]=Y[j]}if(ZQ[V.protocol]&&V.hostname&&!V.pathname)V.path=V.pathname="/";return V.href=V.format(),V}if(Y.protocol&&Y.protocol!==V.protocol){if(!ZQ[Y.protocol]){var E=Object.keys(Y);for(var q=0;q<E.length;q++){var C=E[q];V[C]=Y[C]}return V.href=V.format(),V}if(V.protocol=Y.protocol,!Y.host&&!aX[Y.protocol]){var f=(Y.pathname||"").split("/");while(f.length&&!(Y.host=f.shift()));if(!Y.host)Y.host="";if(!Y.hostname)Y.hostname="";if(f[0]!=="")f.unshift("");if(f.length<2)f.unshift("");V.pathname=f.join("/")}else V.pathname=Y.pathname;if(V.search=Y.search,V.query=Y.query,V.host=Y.host||"",V.auth=Y.auth,V.hostname=Y.hostname||Y.host,V.port=Y.port,V.pathname||V.search){var M=V.pathname||"",F=V.search||"";V.path=M+F}return V.slashes=V.slashes||Y.slashes,V.href=V.format(),V}var D=V.pathname&&V.pathname.charAt(0)==="/",S=Y.host||Y.pathname&&Y.pathname.charAt(0)==="/",P=S||D||V.host&&Y.pathname,k=P,x=V.pathname&&V.pathname.split("/")||[],f=Y.pathname&&Y.pathname.split("/")||[],h=V.protocol&&!ZQ[V.protocol];if(h){if(V.hostname="",V.port=null,V.host)if(x[0]==="")x[0]=V.host;else x.unshift(V.host);if(V.host="",Y.protocol){if(Y.hostname=null,Y.port=null,Y.host)if(f[0]==="")f[0]=Y.host;else f.unshift(Y.host);Y.host=null}P=P&&(f[0]===""||x[0]==="")}if(S)V.host=Y.host||Y.host===""?Y.host:V.host,V.hostname=Y.hostname||Y.hostname===""?Y.hostname:V.hostname,V.search=Y.search,V.query=Y.query,x=f;else if(f.length){if(!x)x=[];x.pop(),x=x.concat(f),V.search=Y.search,V.query=Y.query}else if(!eK(Y.search)){if(h){V.hostname=V.host=x.shift();var c=V.host&&V.host.indexOf("@")>0?V.host.split("@"):!1;if(c)V.auth=c.shift(),V.host=V.hostname=c.shift()}if(V.search=Y.search,V.query=Y.query,!XX(V.pathname)||!XX(V.search))V.path=(V.pathname?V.pathname:"")+(V.search?V.search:"");return V.href=V.format(),V}if(!x.length){if(V.pathname=null,V.search)V.path="/"+V.search;else V.path=null;return V.href=V.format(),V}var m=x.slice(-1)[0],g=(V.host||Y.host||x.length>1)&&(m==="."||m==="..")||m==="",Q0=0;for(var J0=x.length;J0>=0;J0--)if(m=x[J0],m===".")x.splice(J0,1);else if(m==="..")x.splice(J0,1),Q0++;else if(Q0)x.splice(J0,1),Q0--;if(!P&&!k)for(;Q0--;Q0)x.unshift("..");if(P&&x[0]!==""&&(!x[0]||x[0].charAt(0)!=="/"))x.unshift("");if(g&&x.join("/").substr(-1)!=="/")x.push("");var r=x[0]===""||x[0]&&x[0].charAt(0)==="/";if(h){V.hostname=V.host=r?"":x.length?x.shift():"";var c=V.host&&V.host.indexOf("@")>0?V.host.split("@"):!1;if(c)V.auth=c.shift(),V.host=V.hostname=c.shift()}if(P=P||V.host&&x.length,P&&!r)x.unshift("");if(!x.length)V.pathname=null,V.path=null;else V.pathname=x.join("/");if(!XX(V.pathname)||!XX(V.search))V.path=(V.pathname?V.pathname:"")+(V.search?V.search:"");return V.auth=Y.auth||V.auth,V.slashes=V.slashes||Y.slashes,V.href=V.format(),V};eU.prototype.parseHost=function(){var Y=this.host,W=Z$.exec(Y);if(W){if(W=W[0],W!==":")this.port=W.substr(1);Y=Y.substr(0,Y.length-W.length)}if(Y)this.hostname=Y};V$={parse:QQ,resolve:TY,resolveObject:RY,format:qY,Url:eU,URL:iX,URLSearchParams:MY}});var uY={};OZ(uY,{throws:()=>RH,strictEqual:()=>TH,strict:()=>qH,rejects:()=>AH,ok:()=>MH,notStrictEqual:()=>LH,notEqual:()=>DH,notDeepStrictEqual:()=>CH,notDeepEqual:()=>zH,match:()=>FH,ifError:()=>OH,fail:()=>IH,equal:()=>HH,doesNotThrow:()=>$H,doesNotReject:()=>KH,doesNotMatch:()=>VH,default:()=>SH,deepStrictEqual:()=>WH,deepEqual:()=>GH,CallTracker:()=>YH,AssertionError:()=>JH});var K$,$$,PY,H$,I$,O$=(Y,W,V)=>{V=Y!=null?K$($$(Y)):{};let z=W||!Y||!Y.__esModule?PY(V,"default",{value:Y,enumerable:!0}):V;for(let O of H$(Y))if(!I$.call(z,O))PY(z,O,{get:()=>Y[O],enumerable:!0});return z},t0=(Y,W)=>()=>(W||Y((W={exports:{}}).exports,W),W.exports),X1,JX,J1,F$,z$,C$,D$,jY,EQ,L$,M$,A$,q$,T$,R$,S$,E$,P$,j$,XQ,YX,B$,BY,NY,N$,PQ,Y1,G1,v$,vY,W1,k$,V1,kY,K1,JQ,x$,_$,w$,g$,f$,y$,h$,p$,c$,xY,_Y,b$,u$,GX,wY,d$,l$,m$,o$,n$,SQ,gY,s$,fY,r$,yY,a$,t$,hY,$1,i$,WX,e$,UH,pY,cY,ZH,QH,XH,U1,bY,JH,YH,GH,WH,VH,KH,$H,HH,IH,OH,FH,zH,CH,DH,LH,MH,AH,qH,TH,RH,SH;var dY=FZ(()=>{K$=Object.create,{getPrototypeOf:$$,defineProperty:PY,getOwnPropertyNames:H$}=Object,I$=Object.prototype.hasOwnProperty,X1=t0((Y,W)=>{W.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var V={},z=Symbol("test"),O=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(O)!=="[object Symbol]")return!1;var A=42;V[z]=A;for(var G in V)return!1;if(typeof Object.keys==="function"&&Object.keys(V).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(V).length!==0)return!1;var v=Object.getOwnPropertySymbols(V);if(v.length!==1||v[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(V,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var j=Object.getOwnPropertyDescriptor(V,z);if(j.value!==A||j.enumerable!==!0)return!1}return!0}}),JX=t0((Y,W)=>{var V=X1();W.exports=function(){return V()&&!!Symbol.toStringTag}}),J1=t0((Y,W)=>{W.exports=Object}),F$=t0((Y,W)=>{W.exports=Error}),z$=t0((Y,W)=>{W.exports=EvalError}),C$=t0((Y,W)=>{W.exports=RangeError}),D$=t0((Y,W)=>{W.exports=ReferenceError}),jY=t0((Y,W)=>{W.exports=SyntaxError}),EQ=t0((Y,W)=>{W.exports=TypeError}),L$=t0((Y,W)=>{W.exports=URIError}),M$=t0((Y,W)=>{W.exports=Math.abs}),A$=t0((Y,W)=>{W.exports=Math.floor}),q$=t0((Y,W)=>{W.exports=Math.max}),T$=t0((Y,W)=>{W.exports=Math.min}),R$=t0((Y,W)=>{W.exports=Math.pow}),S$=t0((Y,W)=>{W.exports=Math.round}),E$=t0((Y,W)=>{W.exports=Number.isNaN||function(V){return V!==V}}),P$=t0((Y,W)=>{var V=E$();W.exports=function(z){if(V(z)||z===0)return z;return z<0?-1:1}}),j$=t0((Y,W)=>{W.exports=Object.getOwnPropertyDescriptor}),XQ=t0((Y,W)=>{var V=j$();if(V)try{V([],"length")}catch(z){V=null}W.exports=V}),YX=t0((Y,W)=>{var V=Object.defineProperty||!1;if(V)try{V({},"a",{value:1})}catch(z){V=!1}W.exports=V}),B$=t0((Y,W)=>{var V=typeof Symbol<"u"&&Symbol,z=X1();W.exports=function(){if(typeof V!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof V("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return z()}}),BY=t0((Y,W)=>{W.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),NY=t0((Y,W)=>{var V=J1();W.exports=V.getPrototypeOf||null}),N$=t0((Y,W)=>{var V="Function.prototype.bind called on incompatible ",z=Object.prototype.toString,O=Math.max,A="[object Function]",G=function(E,q){var C=[];for(var M=0;M<E.length;M+=1)C[M]=E[M];for(var F=0;F<q.length;F+=1)C[F+E.length]=q[F];return C},v=function(E,q){var C=[];for(var M=q||0,F=0;M<E.length;M+=1,F+=1)C[F]=E[M];return C},j=function(E,q){var C="";for(var M=0;M<E.length;M+=1)if(C+=E[M],M+1<E.length)C+=q;return C};W.exports=function(E){var q=this;if(typeof q!=="function"||z.apply(q)!==A)throw TypeError(V+q);var C=v(arguments,1),M,F=function(){if(this instanceof M){var x=q.apply(this,G(C,arguments));if(Object(x)===x)return x;return this}return q.apply(E,G(C,arguments))},D=O(0,q.length-C.length),S=[];for(var P=0;P<D;P++)S[P]="$"+P;if(M=Function("binder","return function ("+j(S,",")+"){ return binder.apply(this,arguments); }")(F),q.prototype){var k=function(){};k.prototype=q.prototype,M.prototype=new k,k.prototype=null}return M}}),PQ=t0((Y,W)=>{var V=N$();W.exports=Function.prototype.bind||V}),Y1=t0((Y,W)=>{W.exports=Function.prototype.call}),G1=t0((Y,W)=>{W.exports=Function.prototype.apply}),v$=t0((Y,W)=>{W.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),vY=t0((Y,W)=>{var V=PQ(),z=G1(),O=Y1(),A=v$();W.exports=A||V.call(O,z)}),W1=t0((Y,W)=>{var V=PQ(),z=EQ(),O=Y1(),A=vY();W.exports=function(G){if(G.length<1||typeof G[0]!=="function")throw new z("a function is required");return A(V,O,G)}}),k$=t0((Y,W)=>{var V=W1(),z=XQ(),O;try{O=[].__proto__===Array.prototype}catch(j){if(!j||typeof j!=="object"||!("code"in j)||j.code!=="ERR_PROTO_ACCESS")throw j}var A=!!O&&z&&z(Object.prototype,"__proto__"),G=Object,v=G.getPrototypeOf;W.exports=A&&typeof A.get==="function"?V([A.get]):typeof v==="function"?function(j){return v(j==null?j:G(j))}:!1}),V1=t0((Y,W)=>{var V=BY(),z=NY(),O=k$();W.exports=V?function(A){return V(A)}:z?function(A){if(!A||typeof A!=="object"&&typeof A!=="function")throw TypeError("getProto: not an object");return z(A)}:O?function(A){return O(A)}:null}),kY=t0((Y,W)=>{var V=Function.prototype.call,z=Object.prototype.hasOwnProperty,O=PQ();W.exports=O.call(V,z)}),K1=t0((Y,W)=>{var V,z=J1(),O=F$(),A=z$(),G=C$(),v=D$(),j=jY(),E=EQ(),q=L$(),C=M$(),M=A$(),F=q$(),D=T$(),S=R$(),P=S$(),k=P$(),x=Function,f=function(a){try{return x('"use strict"; return ('+a+").constructor;")()}catch(l){}},h=XQ(),c=YX(),m=function(){throw new E},g=h?function(){try{return arguments.callee,m}catch(a){try{return h(arguments,"callee").get}catch(l){return m}}}():m,Q0=B$()(),J0=V1(),r=NY(),O0=BY(),U=G1(),X=Y1(),$={},Q=typeof Uint8Array>"u"||!J0?V:J0(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":Q0&&J0?J0([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":O,"%eval%":eval,"%EvalError%":A,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q0&&J0?J0(J0([][Symbol.iterator]())):V,"%JSON%":typeof JSON==="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Q0||!J0?V:J0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":z,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":G,"%ReferenceError%":v,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Q0||!J0?V:J0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q0&&J0?J0(""[Symbol.iterator]()):V,"%Symbol%":Q0?Symbol:V,"%SyntaxError%":j,"%ThrowTypeError%":g,"%TypedArray%":Q,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":q,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":U,"%Object.defineProperty%":c,"%Object.getPrototypeOf%":r,"%Math.abs%":C,"%Math.floor%":M,"%Math.max%":F,"%Math.min%":D,"%Math.pow%":S,"%Math.round%":P,"%Math.sign%":k,"%Reflect.getPrototypeOf%":O0};if(J0)try{null.error}catch(a){L=J0(J0(a)),K["%Error.prototype%"]=L}var L,T=function a(l){var G0;if(l==="%AsyncFunction%")G0=f("async function () {}");else if(l==="%GeneratorFunction%")G0=f("function* () {}");else if(l==="%AsyncGeneratorFunction%")G0=f("async function* () {}");else if(l==="%AsyncGenerator%"){var A0=a("%AsyncGeneratorFunction%");if(A0)G0=A0.prototype}else if(l==="%AsyncIteratorPrototype%"){var o=a("%AsyncGenerator%");if(o&&J0)G0=J0(o.prototype)}return K[l]=G0,G0},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=PQ(),H=kY(),N=Z.call(X,Array.prototype.concat),B=Z.call(U,Array.prototype.splice),w=Z.call(X,String.prototype.replace),u=Z.call(X,String.prototype.slice),s=Z.call(X,RegExp.prototype.exec),Y0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M0=/\\(\\)?/g,n=function(a){var l=u(a,0,1),G0=u(a,-1);if(l==="%"&&G0!=="%")throw new j("invalid intrinsic syntax, expected closing `%`");else if(G0==="%"&&l!=="%")throw new j("invalid intrinsic syntax, expected opening `%`");var A0=[];return w(a,Y0,function(o,t,V0,z0){A0[A0.length]=V0?w(z0,M0,"$1"):t||o}),A0},b=function(a,l){var G0=a,A0;if(H(I,G0))A0=I[G0],G0="%"+A0[0]+"%";if(H(K,G0)){var o=K[G0];if(o===$)o=T(G0);if(typeof o>"u"&&!l)throw new E("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:A0,name:G0,value:o}}throw new j("intrinsic "+a+" does not exist!")};W.exports=function(a,l){if(typeof a!=="string"||a.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof l!=="boolean")throw new E('"allowMissing" argument must be a boolean');if(s(/^%?[^%]*%?$/,a)===null)throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G0=n(a),A0=G0.length>0?G0[0]:"",o=b("%"+A0+"%",l),t=o.name,V0=o.value,z0=!1,U0=o.alias;if(U0)A0=U0[0],B(G0,N([0,1],U0));for(var x0=1,e=!0;x0<G0.length;x0+=1){var H0=G0[x0],p0=u(H0,0,1),F0=u(H0,-1);if((p0==='"'||p0==="'"||p0==="`"||(F0==='"'||F0==="'"||F0==="`"))&&p0!==F0)throw new j("property names with quotes must have matching quotes");if(H0==="constructor"||!e)z0=!0;if(A0+="."+H0,t="%"+A0+"%",H(K,t))V0=K[t];else if(V0!=null){if(!(H0 in V0)){if(!l)throw new E("base intrinsic for "+a+" exists, but the property is not available.");return}if(h&&x0+1>=G0.length){var D0=h(V0,H0);if(e=!!D0,e&&"get"in D0&&!("originalValue"in D0.get))V0=D0.get;else V0=V0[H0]}else e=H(V0,H0),V0=V0[H0];if(e&&!z0)K[t]=V0}}return V0}}),JQ=t0((Y,W)=>{var V=K1(),z=W1(),O=z([V("%String.prototype.indexOf%")]);W.exports=function(A,G){var v=V(A,!!G);if(typeof v==="function"&&O(A,".prototype.")>-1)return z([v]);return v}}),x$=t0((Y,W)=>{var V=JX()(),z=JQ(),O=z("Object.prototype.toString"),A=function(j){if(V&&j&&typeof j==="object"&&Symbol.toStringTag in j)return!1;return O(j)==="[object Arguments]"},G=function(j){if(A(j))return!0;return j!==null&&typeof j==="object"&&"length"in j&&typeof j.length==="number"&&j.length>=0&&O(j)!=="[object Array]"&&"callee"in j&&O(j.callee)==="[object Function]"},v=function(){return A(arguments)}();A.isLegacyArguments=G,W.exports=v?A:G}),_$=t0((Y,W)=>{var V=JQ(),z=JX()(),O=kY(),A=XQ(),G;if(z){if(v=V("RegExp.prototype.exec"),j={},E=function(){throw j},q={toString:E,valueOf:E},typeof Symbol.toPrimitive==="symbol")q[Symbol.toPrimitive]=E;G=function(F){if(!F||typeof F!=="object")return!1;var D=A(F,"lastIndex"),S=D&&O(D,"value");if(!S)return!1;try{v(F,q)}catch(P){return P===j}}}else C=V("Object.prototype.toString"),M="[object RegExp]",G=function(F){if(!F||typeof F!=="object"&&typeof F!=="function")return!1;return C(F)===M};var v,j,E,q,C,M;W.exports=G}),w$=t0((Y,W)=>{var V=JQ(),z=_$(),O=V("RegExp.prototype.exec"),A=EQ();W.exports=function(G){if(!z(G))throw new A("`regex` must be a RegExp");return function(v){return O(G,v)!==null}}}),g$=t0((Y,W)=>{var V=function*(){}.constructor;W.exports=()=>V}),f$=t0((Y,W)=>{var V=JQ(),z=w$(),O=z(/^\s*(?:function)?\*/),A=JX()(),G=V1(),v=V("Object.prototype.toString"),j=V("Function.prototype.toString"),E=g$();W.exports=function(q){if(typeof q!=="function")return!1;if(O(j(q)))return!0;if(!A){var C=v(q);return C==="[object GeneratorFunction]"}if(!G)return!1;var M=E();return M&&G(q)===M.prototype}}),y$=t0((Y,W)=>{var V=Function.prototype.toString,z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,O,A;if(typeof z==="function"&&typeof Object.defineProperty==="function")try{O=Object.defineProperty({},"length",{get:function(){throw A}}),A={},z(function(){throw 42},null,O)}catch(h){if(h!==A)z=null}else z=null;var G=/^\s*class\b/,v=function(h){try{var c=V.call(h);return G.test(c)}catch(m){return!1}},j=function(h){try{if(v(h))return!1;return V.call(h),!0}catch(c){return!1}},E=Object.prototype.toString,q="[object Object]",C="[object Function]",M="[object GeneratorFunction]",F="[object HTMLAllCollection]",D="[object HTML document.all class]",S="[object HTMLCollection]",P=typeof Symbol==="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document==="object"){if(f=document.all,E.call(f)===E.call(document.all))x=function(h){if((k||!h)&&(typeof h>"u"||typeof h==="object"))try{var c=E.call(h);return(c===F||c===D||c===S||c===q)&&h("")==null}catch(m){}return!1}}var f;W.exports=z?function(h){if(x(h))return!0;if(!h)return!1;if(typeof h!=="function"&&typeof h!=="object")return!1;try{z(h,null,O)}catch(c){if(c!==A)return!1}return!v(h)&&j(h)}:function(h){if(x(h))return!0;if(!h)return!1;if(typeof h!=="function"&&typeof h!=="object")return!1;if(P)return j(h);if(v(h))return!1;var c=E.call(h);if(c!==C&&c!==M&&!/^\[object HTML/.test(c))return!1;return j(h)}}),h$=t0((Y,W)=>{var V=y$(),z=Object.prototype.toString,O=Object.prototype.hasOwnProperty,A=function(E,q,C){for(var M=0,F=E.length;M<F;M++)if(O.call(E,M))if(C==null)q(E[M],M,E);else q.call(C,E[M],M,E)},G=function(E,q,C){for(var M=0,F=E.length;M<F;M++)if(C==null)q(E.charAt(M),M,E);else q.call(C,E.charAt(M),M,E)},v=function(E,q,C){for(var M in E)if(O.call(E,M))if(C==null)q(E[M],M,E);else q.call(C,E[M],M,E)};function j(E){return z.call(E)==="[object Array]"}W.exports=function(E,q,C){if(!V(q))throw TypeError("iterator must be a function");var M;if(arguments.length>=3)M=C;if(j(E))A(E,q,M);else if(typeof E==="string")G(E,q,M);else v(E,q,M)}}),p$=t0((Y,W)=>{W.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),c$=t0((Y,W)=>{var V=p$(),z=typeof globalThis>"u"?globalThis:globalThis;W.exports=function(){var O=[];for(var A=0;A<V.length;A++)if(typeof z[V[A]]==="function")O[O.length]=V[A];return O}}),xY=t0((Y,W)=>{var V=YX(),z=jY(),O=EQ(),A=XQ();W.exports=function(G,v,j){if(!G||typeof G!=="object"&&typeof G!=="function")throw new O("`obj` must be an object or a function`");if(typeof v!=="string"&&typeof v!=="symbol")throw new O("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new O("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new O("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new O("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new O("`loose`, if provided, must be a boolean");var E=arguments.length>3?arguments[3]:null,q=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,M=arguments.length>6?arguments[6]:!1,F=!!A&&A(G,v);if(V)V(G,v,{configurable:C===null&&F?F.configurable:!C,enumerable:E===null&&F?F.enumerable:!E,value:j,writable:q===null&&F?F.writable:!q});else if(M||!E&&!q&&!C)G[v]=j;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),_Y=t0((Y,W)=>{var V=YX(),z=function(){return!!V};z.hasArrayLengthDefineBug=function(){if(!V)return null;try{return V([],"length",{value:1}).length!==1}catch(O){return!0}},W.exports=z}),b$=t0((Y,W)=>{var V=K1(),z=xY(),O=_Y()(),A=XQ(),G=EQ(),v=V("%Math.floor%");W.exports=function(j,E){if(typeof j!=="function")throw new G("`fn` is not a function");if(typeof E!=="number"||E<0||E>4294967295||v(E)!==E)throw new G("`length` must be a positive 32-bit integer");var q=arguments.length>2&&!!arguments[2],C=!0,M=!0;if("length"in j&&A){var F=A(j,"length");if(F&&!F.configurable)C=!1;if(F&&!F.writable)M=!1}if(C||M||!q)if(O)z(j,"length",E,!0,!0);else z(j,"length",E);return j}}),u$=t0((Y,W)=>{var V=PQ(),z=G1(),O=vY();W.exports=function(){return O(V,z,arguments)}}),GX=t0((Y,W)=>{var V=b$(),z=YX(),O=W1(),A=u$();if(W.exports=function(G){var v=O(arguments),j=G.length-(arguments.length-1);return V(v,1+(j>0?j:0),!0)},z)z(W.exports,"apply",{value:A});else W.exports.apply=A}),wY=t0((Y,W)=>{var V=h$(),z=c$(),O=GX(),A=JQ(),G=XQ(),v=V1(),j=A("Object.prototype.toString"),E=JX()(),q=typeof globalThis>"u"?globalThis:globalThis,C=z(),M=A("String.prototype.slice"),F=A("Array.prototype.indexOf",!0)||function(k,x){for(var f=0;f<k.length;f+=1)if(k[f]===x)return f;return-1},D={__proto__:null};if(E&&G&&v)V(C,function(k){var x=new q[k];if(Symbol.toStringTag in x&&v){var f=v(x),h=G(f,Symbol.toStringTag);if(!h&&f){var c=v(f);h=G(c,Symbol.toStringTag)}D["$"+k]=O(h.get)}});else V(C,function(k){var x=new q[k],f=x.slice||x.set;if(f)D["$"+k]=O(f)});var S=function(k){var x=!1;return V(D,function(f,h){if(!x)try{if("$"+f(k)===h)x=M(h,1)}catch(c){}}),x},P=function(k){var x=!1;return V(D,function(f,h){if(!x)try{f(k),x=M(h,1)}catch(c){}}),x};W.exports=function(k){if(!k||typeof k!=="object")return!1;if(!E){var x=M(j(k),8,-1);if(F(C,x)>-1)return x;if(x!=="Object")return!1;return P(k)}if(!G)return null;return S(k)}}),d$=t0((Y,W)=>{var V=wY();W.exports=function(z){return!!V(z)}}),l$=t0((Y)=>{var W=x$(),V=f$(),z=wY(),O=d$();function A(U0){return U0.call.bind(U0)}var G=typeof BigInt<"u",v=typeof Symbol<"u",j=A(Object.prototype.toString),E=A(Number.prototype.valueOf),q=A(String.prototype.valueOf),C=A(Boolean.prototype.valueOf);if(G)M=A(BigInt.prototype.valueOf);var M;if(v)F=A(Symbol.prototype.valueOf);var F;function D(U0,x0){if(typeof U0!=="object")return!1;try{return x0(U0),!0}catch(e){return!1}}Y.isArgumentsObject=W,Y.isGeneratorFunction=V,Y.isTypedArray=O;function S(U0){return typeof Promise<"u"&&U0 instanceof Promise||U0!==null&&typeof U0==="object"&&typeof U0.then==="function"&&typeof U0.catch==="function"}Y.isPromise=S;function P(U0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(U0);return O(U0)||B(U0)}Y.isArrayBufferView=P;function k(U0){return z(U0)==="Uint8Array"}Y.isUint8Array=k;function x(U0){return z(U0)==="Uint8ClampedArray"}Y.isUint8ClampedArray=x;function f(U0){return z(U0)==="Uint16Array"}Y.isUint16Array=f;function h(U0){return z(U0)==="Uint32Array"}Y.isUint32Array=h;function c(U0){return z(U0)==="Int8Array"}Y.isInt8Array=c;function m(U0){return z(U0)==="Int16Array"}Y.isInt16Array=m;function g(U0){return z(U0)==="Int32Array"}Y.isInt32Array=g;function Q0(U0){return z(U0)==="Float32Array"}Y.isFloat32Array=Q0;function J0(U0){return z(U0)==="Float64Array"}Y.isFloat64Array=J0;function r(U0){return z(U0)==="BigInt64Array"}Y.isBigInt64Array=r;function O0(U0){return z(U0)==="BigUint64Array"}Y.isBigUint64Array=O0;function U(U0){return j(U0)==="[object Map]"}U.working=typeof Map<"u"&&U(new Map);function X(U0){if(typeof Map>"u")return!1;return U.working?U(U0):U0 instanceof Map}Y.isMap=X;function $(U0){return j(U0)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function Q(U0){if(typeof Set>"u")return!1;return $.working?$(U0):U0 instanceof Set}Y.isSet=Q;function K(U0){return j(U0)==="[object WeakMap]"}K.working=typeof WeakMap<"u"&&K(new WeakMap);function L(U0){if(typeof WeakMap>"u")return!1;return K.working?K(U0):U0 instanceof WeakMap}Y.isWeakMap=L;function T(U0){return j(U0)==="[object WeakSet]"}T.working=typeof WeakSet<"u"&&T(new WeakSet);function I(U0){return T(U0)}Y.isWeakSet=I;function Z(U0){return j(U0)==="[object ArrayBuffer]"}Z.working=typeof ArrayBuffer<"u"&&Z(new ArrayBuffer);function H(U0){if(typeof ArrayBuffer>"u")return!1;return Z.working?Z(U0):U0 instanceof ArrayBuffer}Y.isArrayBuffer=H;function N(U0){return j(U0)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function B(U0){if(typeof DataView>"u")return!1;return N.working?N(U0):U0 instanceof DataView}Y.isDataView=B;var w=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function u(U0){return j(U0)==="[object SharedArrayBuffer]"}function s(U0){if(typeof w>"u")return!1;if(typeof u.working>"u")u.working=u(new w);return u.working?u(U0):U0 instanceof w}Y.isSharedArrayBuffer=s;function Y0(U0){return j(U0)==="[object AsyncFunction]"}Y.isAsyncFunction=Y0;function M0(U0){return j(U0)==="[object Map Iterator]"}Y.isMapIterator=M0;function n(U0){return j(U0)==="[object Set Iterator]"}Y.isSetIterator=n;function b(U0){return j(U0)==="[object Generator]"}Y.isGeneratorObject=b;function a(U0){return j(U0)==="[object WebAssembly.Module]"}Y.isWebAssemblyCompiledModule=a;function l(U0){return D(U0,E)}Y.isNumberObject=l;function G0(U0){return D(U0,q)}Y.isStringObject=G0;function A0(U0){return D(U0,C)}Y.isBooleanObject=A0;function o(U0){return G&&D(U0,M)}Y.isBigIntObject=o;function t(U0){return v&&D(U0,F)}Y.isSymbolObject=t;function V0(U0){return l(U0)||G0(U0)||A0(U0)||o(U0)||t(U0)}Y.isBoxedPrimitive=V0;function z0(U0){return typeof Uint8Array<"u"&&(H(U0)||s(U0))}Y.isAnyArrayBuffer=z0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(U0){Object.defineProperty(Y,U0,{enumerable:!1,value:function(){throw Error(U0+" is not supported in userland")}})})}),m$=t0((Y,W)=>{W.exports=function(V){return V instanceof Buffer}}),o$=t0((Y,W)=>{if(typeof Object.create==="function")W.exports=function(V,z){if(z)V.super_=z,V.prototype=Object.create(z.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}})};else W.exports=function(V,z){if(z){V.super_=z;var O=function(){};O.prototype=z.prototype,V.prototype=new O,V.prototype.constructor=V}}}),n$=t0((Y,W)=>{try{if(V=(Q1(),WU(Z1)),typeof V.inherits!=="function")throw"";W.exports=V.inherits}catch(z){W.exports=o$()}var V}),SQ=t0((Y)=>{var W=Object.getOwnPropertyDescriptors||function(H){var N=Object.keys(H),B={};for(var w=0;w<N.length;w++)B[N[w]]=Object.getOwnPropertyDescriptor(H,N[w]);return B},V=/%[sdj%]/g;Y.format=function(H){if(!h(H)){var N=[];for(var B=0;B<arguments.length;B++)N.push(A(arguments[B]));return N.join(" ")}var B=1,w=arguments,u=w.length,s=String(H).replace(V,function(M0){if(M0==="%%")return"%";if(B>=u)return M0;switch(M0){case"%s":return String(w[B++]);case"%d":return Number(w[B++]);case"%j":try{return JSON.stringify(w[B++])}catch(n){return"[Circular]"}default:return M0}});for(var Y0=w[B];B<u;Y0=w[++B])if(k(Y0)||!Q0(Y0))s+=" "+Y0;else s+=" "+A(Y0);return s},Y.deprecate=function(H,N){if(typeof process<"u"&&process.noDeprecation===!0)return H;if(typeof process>"u")return function(){return Y.deprecate(H,N).apply(this,arguments)};var B=!1;function w(){if(!B){if(process.throwDeprecation)throw Error(N);else if(process.traceDeprecation)console.trace(N);else console.error(N);B=!0}return H.apply(this,arguments)}return w};var z={},O=/^$/;Y.debuglog=function(H){if(H=H.toUpperCase(),!z[H])if(O.test(H)){var N=process.pid;z[H]=function(){var B=Y.format.apply(Y,arguments);console.error("%s %d: %s",H,N,B)}}else z[H]=function(){};return z[H]};function A(H,N){var B={seen:[],stylize:v};if(arguments.length>=3)B.depth=arguments[2];if(arguments.length>=4)B.colors=arguments[3];if(P(N))B.showHidden=N;else if(N)Y._extend(B,N);if(m(B.showHidden))B.showHidden=!1;if(m(B.depth))B.depth=2;if(m(B.colors))B.colors=!1;if(m(B.customInspect))B.customInspect=!0;if(B.colors)B.stylize=G;return E(B,H,B.depth)}Y.inspect=A,A.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},A.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function G(H,N){var B=A.styles[N];if(B)return"\x1B["+A.colors[B][0]+"m"+H+"\x1B["+A.colors[B][1]+"m";else return H}function v(H,N){return H}function j(H){var N={};return H.forEach(function(B,w){N[B]=!0}),N}function E(H,N,B){if(H.customInspect&&N&&O0(N.inspect)&&N.inspect!==Y.inspect&&!(N.constructor&&N.constructor.prototype===N)){var w=N.inspect(B,H);if(!h(w))w=E(H,w,B);return w}var u=q(H,N);if(u)return u;var s=Object.keys(N),Y0=j(s);if(H.showHidden)s=Object.getOwnPropertyNames(N);if(r(N)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return C(N);if(s.length===0){if(O0(N)){var M0=N.name?": "+N.name:"";return H.stylize("[Function"+M0+"]","special")}if(g(N))return H.stylize(RegExp.prototype.toString.call(N),"regexp");if(J0(N))return H.stylize(Date.prototype.toString.call(N),"date");if(r(N))return C(N)}var n="",b=!1,a=["{","}"];if(S(N))b=!0,a=["[","]"];if(O0(N)){var l=N.name?": "+N.name:"";n=" [Function"+l+"]"}if(g(N))n=" "+RegExp.prototype.toString.call(N);if(J0(N))n=" "+Date.prototype.toUTCString.call(N);if(r(N))n=" "+C(N);if(s.length===0&&(!b||N.length==0))return a[0]+n+a[1];if(B<0)if(g(N))return H.stylize(RegExp.prototype.toString.call(N),"regexp");else return H.stylize("[Object]","special");H.seen.push(N);var G0;if(b)G0=M(H,N,B,Y0,s);else G0=s.map(function(A0){return F(H,N,B,Y0,A0,b)});return H.seen.pop(),D(G0,n,a)}function q(H,N){if(m(N))return H.stylize("undefined","undefined");if(h(N)){var B="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return H.stylize(B,"string")}if(f(N))return H.stylize(""+N,"number");if(P(N))return H.stylize(""+N,"boolean");if(k(N))return H.stylize("null","null")}function C(H){return"["+Error.prototype.toString.call(H)+"]"}function M(H,N,B,w,u){var s=[];for(var Y0=0,M0=N.length;Y0<M0;++Y0)if(L(N,String(Y0)))s.push(F(H,N,B,w,String(Y0),!0));else s.push("");return u.forEach(function(n){if(!n.match(/^\d+$/))s.push(F(H,N,B,w,n,!0))}),s}function F(H,N,B,w,u,s){var Y0,M0,n;if(n=Object.getOwnPropertyDescriptor(N,u)||{value:N[u]},n.get)if(n.set)M0=H.stylize("[Getter/Setter]","special");else M0=H.stylize("[Getter]","special");else if(n.set)M0=H.stylize("[Setter]","special");if(!L(w,u))Y0="["+u+"]";if(!M0)if(H.seen.indexOf(n.value)<0){if(k(B))M0=E(H,n.value,null);else M0=E(H,n.value,B-1);if(M0.indexOf(`
|
|
4
|
-
`)>-1)if(s)M0=M0.split(`
|
|
5
|
-
`).map(function(b){return" "+b}).join(`
|
|
6
|
-
`).slice(2);else M0=`
|
|
7
|
-
`+M0.split(`
|
|
8
|
-
`).map(function(b){return" "+b}).join(`
|
|
9
|
-
`)}else M0=H.stylize("[Circular]","special");if(m(Y0)){if(s&&u.match(/^\d+$/))return M0;if(Y0=JSON.stringify(""+u),Y0.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))Y0=Y0.slice(1,-1),Y0=H.stylize(Y0,"name");else Y0=Y0.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y0=H.stylize(Y0,"string")}return Y0+": "+M0}function D(H,N,B){var w=0,u=H.reduce(function(s,Y0){if(w++,Y0.indexOf(`
|
|
10
|
-
`)>=0)w++;return s+Y0.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(u>60)return B[0]+(N===""?"":N+`
|
|
11
|
-
`)+" "+H.join(`,
|
|
12
|
-
`)+" "+B[1];return B[0]+N+" "+H.join(", ")+" "+B[1]}Y.types=l$();function S(H){return Array.isArray(H)}Y.isArray=S;function P(H){return typeof H==="boolean"}Y.isBoolean=P;function k(H){return H===null}Y.isNull=k;function x(H){return H==null}Y.isNullOrUndefined=x;function f(H){return typeof H==="number"}Y.isNumber=f;function h(H){return typeof H==="string"}Y.isString=h;function c(H){return typeof H==="symbol"}Y.isSymbol=c;function m(H){return H===void 0}Y.isUndefined=m;function g(H){return Q0(H)&&X(H)==="[object RegExp]"}Y.isRegExp=g,Y.types.isRegExp=g;function Q0(H){return typeof H==="object"&&H!==null}Y.isObject=Q0;function J0(H){return Q0(H)&&X(H)==="[object Date]"}Y.isDate=J0,Y.types.isDate=J0;function r(H){return Q0(H)&&(X(H)==="[object Error]"||H instanceof Error)}Y.isError=r,Y.types.isNativeError=r;function O0(H){return typeof H==="function"}Y.isFunction=O0;function U(H){return H===null||typeof H==="boolean"||typeof H==="number"||typeof H==="string"||typeof H==="symbol"||typeof H>"u"}Y.isPrimitive=U,Y.isBuffer=m$();function X(H){return Object.prototype.toString.call(H)}function $(H){return H<10?"0"+H.toString(10):H.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(){var H=new Date,N=[$(H.getHours()),$(H.getMinutes()),$(H.getSeconds())].join(":");return[H.getDate(),Q[H.getMonth()],N].join(" ")}Y.log=function(){console.log("%s - %s",K(),Y.format.apply(Y,arguments))},Y.inherits=n$(),Y._extend=function(H,N){if(!N||!Q0(N))return H;var B=Object.keys(N),w=B.length;while(w--)H[B[w]]=N[B[w]];return H};function L(H,N){return Object.prototype.hasOwnProperty.call(H,N)}var T=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(H){if(typeof H!=="function")throw TypeError('The "original" argument must be of type Function');if(T&&H[T]){var N=H[T];if(typeof N!=="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,T,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){var B,w,u=new Promise(function(M0,n){B=M0,w=n}),s=[];for(var Y0=0;Y0<arguments.length;Y0++)s.push(arguments[Y0]);s.push(function(M0,n){if(M0)w(M0);else B(n)});try{H.apply(this,s)}catch(M0){w(M0)}return u}if(Object.setPrototypeOf(N,Object.getPrototypeOf(H)),T)Object.defineProperty(N,T,{value:N,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(N,W(H))},Y.promisify.custom=T;function I(H,N){if(!H){var B=Error("Promise was rejected with a falsy value");B.reason=H,H=B}return N(H)}function Z(H){if(typeof H!=="function")throw TypeError('The "original" argument must be of type Function');function N(){var B=[];for(var w=0;w<arguments.length;w++)B.push(arguments[w]);var u=B.pop();if(typeof u!=="function")throw TypeError("The last argument must be of type Function");var s=this,Y0=function(){return u.apply(s,arguments)};H.apply(this,B).then(function(M0){process.nextTick(Y0.bind(null,null,M0))},function(M0){process.nextTick(I.bind(null,M0,Y0))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(H)),Object.defineProperties(N,W(H)),N}Y.callbackify=Z}),gY=t0((Y,W)=>{function V(g){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q0){return typeof Q0}:function(Q0){return Q0&&typeof Symbol=="function"&&Q0.constructor===Symbol&&Q0!==Symbol.prototype?"symbol":typeof Q0},V(g)}function z(g,Q0){for(var J0=0;J0<Q0.length;J0++){var r=Q0[J0];if(r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r)r.writable=!0;Object.defineProperty(g,A(r.key),r)}}function O(g,Q0,J0){if(Q0)z(g.prototype,Q0);if(J0)z(g,J0);return Object.defineProperty(g,"prototype",{writable:!1}),g}function A(g){var Q0=G(g,"string");return V(Q0)==="symbol"?Q0:String(Q0)}function G(g,Q0){if(V(g)!=="object"||g===null)return g;var J0=g[Symbol.toPrimitive];if(J0!==void 0){var r=J0.call(g,Q0||"default");if(V(r)!=="object")return r;throw TypeError("@@toPrimitive must return a primitive value.")}return(Q0==="string"?String:Number)(g)}function v(g,Q0){if(!(g instanceof Q0))throw TypeError("Cannot call a class as a function")}function j(g,Q0){if(typeof Q0!=="function"&&Q0!==null)throw TypeError("Super expression must either be null or a function");if(g.prototype=Object.create(Q0&&Q0.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),Q0)E(g,Q0)}function E(g,Q0){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J0,r){return J0.__proto__=r,J0},E(g,Q0)}function q(g){var Q0=F();return function(){var J0=D(g),r;if(Q0){var O0=D(this).constructor;r=Reflect.construct(J0,arguments,O0)}else r=J0.apply(this,arguments);return C(this,r)}}function C(g,Q0){if(Q0&&(V(Q0)==="object"||typeof Q0==="function"))return Q0;else if(Q0!==void 0)throw TypeError("Derived constructors may only return object or undefined");return M(g)}function M(g){if(g===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function F(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(g){return!1}}function D(g){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Q0){return Q0.__proto__||Object.getPrototypeOf(Q0)},D(g)}var S={},P,k;function x(g,Q0,J0){if(!J0)J0=Error;function r(U,X,$){if(typeof Q0==="string")return Q0;else return Q0(U,X,$)}var O0=function(U){j($,U);var X=q($);function $(Q,K,L){var T;return v(this,$),T=X.call(this,r(Q,K,L)),T.code=g,T}return O($)}(J0);S[g]=O0}function f(g,Q0){if(Array.isArray(g)){var J0=g.length;if(g=g.map(function(r){return String(r)}),J0>2)return"one of ".concat(Q0," ").concat(g.slice(0,J0-1).join(", "),", or ")+g[J0-1];else if(J0===2)return"one of ".concat(Q0," ").concat(g[0]," or ").concat(g[1]);else return"of ".concat(Q0," ").concat(g[0])}else return"of ".concat(Q0," ").concat(String(g))}function h(g,Q0,J0){return g.substr(!J0||J0<0?0:+J0,Q0.length)===Q0}function c(g,Q0,J0){if(J0===void 0||J0>g.length)J0=g.length;return g.substring(J0-Q0.length,J0)===Q0}function m(g,Q0,J0){if(typeof J0!=="number")J0=0;if(J0+Q0.length>g.length)return!1;else return g.indexOf(Q0,J0)!==-1}x("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),x("ERR_INVALID_ARG_TYPE",function(g,Q0,J0){if(P===void 0)P=U1();P(typeof g==="string","'name' must be a string");var r;if(typeof Q0==="string"&&h(Q0,"not "))r="must not be",Q0=Q0.replace(/^not /,"");else r="must be";var O0;if(c(g," argument"))O0="The ".concat(g," ").concat(r," ").concat(f(Q0,"type"));else{var U=m(g,".")?"property":"argument";O0='The "'.concat(g,'" ').concat(U," ").concat(r," ").concat(f(Q0,"type"))}return O0+=". Received type ".concat(V(J0)),O0},TypeError),x("ERR_INVALID_ARG_VALUE",function(g,Q0){var J0=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";if(k===void 0)k=SQ();var r=k.inspect(Q0);if(r.length>128)r="".concat(r.slice(0,128),"...");return"The argument '".concat(g,"' ").concat(J0,". Received ").concat(r)},TypeError,RangeError),x("ERR_INVALID_RETURN_VALUE",function(g,Q0,J0){var r;if(J0&&J0.constructor&&J0.constructor.name)r="instance of ".concat(J0.constructor.name);else r="type ".concat(V(J0));return"Expected ".concat(g,' to be returned from the "').concat(Q0,'"')+" function but got ".concat(r,".")},TypeError),x("ERR_MISSING_ARGS",function(){for(var g=arguments.length,Q0=Array(g),J0=0;J0<g;J0++)Q0[J0]=arguments[J0];if(P===void 0)P=U1();P(Q0.length>0,"At least one arg needs to be specified");var r="The ",O0=Q0.length;switch(Q0=Q0.map(function(U){return'"'.concat(U,'"')}),O0){case 1:r+="".concat(Q0[0]," argument");break;case 2:r+="".concat(Q0[0]," and ").concat(Q0[1]," arguments");break;default:r+=Q0.slice(0,O0-1).join(", "),r+=", and ".concat(Q0[O0-1]," arguments");break}return"".concat(r," must be specified")},TypeError),Y.codes=S}),s$=t0((Y,W)=>{function V(H,N){var B=Object.keys(H);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(H);N&&(w=w.filter(function(u){return Object.getOwnPropertyDescriptor(H,u).enumerable})),B.push.apply(B,w)}return B}function z(H){for(var N=1;N<arguments.length;N++){var B=arguments[N]!=null?arguments[N]:{};N%2?V(Object(B),!0).forEach(function(w){O(H,w,B[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(B)):V(Object(B)).forEach(function(w){Object.defineProperty(H,w,Object.getOwnPropertyDescriptor(B,w))})}return H}function O(H,N,B){if(N=j(N),N in H)Object.defineProperty(H,N,{value:B,enumerable:!0,configurable:!0,writable:!0});else H[N]=B;return H}function A(H,N){if(!(H instanceof N))throw TypeError("Cannot call a class as a function")}function G(H,N){for(var B=0;B<N.length;B++){var w=N[B];if(w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w)w.writable=!0;Object.defineProperty(H,j(w.key),w)}}function v(H,N,B){if(N)G(H.prototype,N);if(B)G(H,B);return Object.defineProperty(H,"prototype",{writable:!1}),H}function j(H){var N=E(H,"string");return h(N)==="symbol"?N:String(N)}function E(H,N){if(h(H)!=="object"||H===null)return H;var B=H[Symbol.toPrimitive];if(B!==void 0){var w=B.call(H,N||"default");if(h(w)!=="object")return w;throw TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(H)}function q(H,N){if(typeof N!=="function"&&N!==null)throw TypeError("Super expression must either be null or a function");if(H.prototype=Object.create(N&&N.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),N)x(H,N)}function C(H){var N=P();return function(){var B=f(H),w;if(N){var u=f(this).constructor;w=Reflect.construct(B,arguments,u)}else w=B.apply(this,arguments);return M(this,w)}}function M(H,N){if(N&&(h(N)==="object"||typeof N==="function"))return N;else if(N!==void 0)throw TypeError("Derived constructors may only return object or undefined");return F(H)}function F(H){if(H===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function D(H){var N=typeof Map==="function"?new Map:void 0;return D=function(B){if(B===null||!k(B))return B;if(typeof B!=="function")throw TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(B))return N.get(B);N.set(B,w)}function w(){return S(B,arguments,f(this).constructor)}return w.prototype=Object.create(B.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x(w,B)},D(H)}function S(H,N,B){if(P())S=Reflect.construct.bind();else S=function(w,u,s){var Y0=[null];Y0.push.apply(Y0,u);var M0=Function.bind.apply(w,Y0),n=new M0;if(s)x(n,s.prototype);return n};return S.apply(null,arguments)}function P(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function k(H){return Function.toString.call(H).indexOf("[native code]")!==-1}function x(H,N){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,w){return B.__proto__=w,B},x(H,N)}function f(H){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},f(H)}function h(H){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},h(H)}var c=SQ(),m=c.inspect,g=gY(),Q0=g.codes.ERR_INVALID_ARG_TYPE;function J0(H,N,B){if(B===void 0||B>H.length)B=H.length;return H.substring(B-N.length,B)===N}function r(H,N){if(N=Math.floor(N),H.length==0||N==0)return"";var B=H.length*N;N=Math.floor(Math.log(N)/Math.log(2));while(N)H+=H,N--;return H+=H.substring(0,B-H.length),H}var O0="",U="",X="",$="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},K=10;function L(H){var N=Object.keys(H),B=Object.create(Object.getPrototypeOf(H));return N.forEach(function(w){B[w]=H[w]}),Object.defineProperty(B,"message",{value:H.message}),B}function T(H){return m(H,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function I(H,N,B){var w="",u="",s=0,Y0="",M0=!1,n=T(H),b=n.split(`
|
|
13
|
-
`),a=T(N).split(`
|
|
14
|
-
`),l=0,G0="";if(B==="strictEqual"&&h(H)==="object"&&h(N)==="object"&&H!==null&&N!==null)B="strictEqualObject";if(b.length===1&&a.length===1&&b[0]!==a[0]){var A0=b[0].length+a[0].length;if(A0<=K){if((h(H)!=="object"||H===null)&&(h(N)!=="object"||N===null)&&(H!==0||N!==0))return"".concat(Q[B],`
|
|
15
|
-
|
|
16
|
-
`)+"".concat(b[0]," !== ").concat(a[0],`
|
|
17
|
-
`)}else if(B!=="strictEqualObject"){var o=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(A0<o){while(b[0][l]===a[0][l])l++;if(l>2)G0=`
|
|
18
|
-
`.concat(r(" ",l),"^"),l=0}}}var t=b[b.length-1],V0=a[a.length-1];while(t===V0){if(l++<2)Y0=`
|
|
19
|
-
`.concat(t).concat(Y0);else w=t;if(b.pop(),a.pop(),b.length===0||a.length===0)break;t=b[b.length-1],V0=a[a.length-1]}var z0=Math.max(b.length,a.length);if(z0===0){var U0=n.split(`
|
|
20
|
-
`);if(U0.length>30){U0[26]="".concat(O0,"...").concat($);while(U0.length>27)U0.pop()}return"".concat(Q.notIdentical,`
|
|
21
|
-
|
|
22
|
-
`).concat(U0.join(`
|
|
23
|
-
`),`
|
|
24
|
-
`)}if(l>3)Y0=`
|
|
25
|
-
`.concat(O0,"...").concat($).concat(Y0),M0=!0;if(w!=="")Y0=`
|
|
26
|
-
`.concat(w).concat(Y0),w="";var x0=0,e=Q[B]+`
|
|
27
|
-
`.concat(U,"+ actual").concat($," ").concat(X,"- expected").concat($),H0=" ".concat(O0,"...").concat($," Lines skipped");for(l=0;l<z0;l++){var p0=l-s;if(b.length<l+1){if(p0>1&&l>2){if(p0>4)u+=`
|
|
28
|
-
`.concat(O0,"...").concat($),M0=!0;else if(p0>3)u+=`
|
|
29
|
-
`.concat(a[l-2]),x0++;u+=`
|
|
30
|
-
`.concat(a[l-1]),x0++}s=l,w+=`
|
|
31
|
-
`.concat(X,"-").concat($," ").concat(a[l]),x0++}else if(a.length<l+1){if(p0>1&&l>2){if(p0>4)u+=`
|
|
32
|
-
`.concat(O0,"...").concat($),M0=!0;else if(p0>3)u+=`
|
|
33
|
-
`.concat(b[l-2]),x0++;u+=`
|
|
34
|
-
`.concat(b[l-1]),x0++}s=l,u+=`
|
|
35
|
-
`.concat(U,"+").concat($," ").concat(b[l]),x0++}else{var F0=a[l],D0=b[l],i0=D0!==F0&&(!J0(D0,",")||D0.slice(0,-1)!==F0);if(i0&&J0(F0,",")&&F0.slice(0,-1)===D0)i0=!1,D0+=",";if(i0){if(p0>1&&l>2){if(p0>4)u+=`
|
|
36
|
-
`.concat(O0,"...").concat($),M0=!0;else if(p0>3)u+=`
|
|
37
|
-
`.concat(b[l-2]),x0++;u+=`
|
|
38
|
-
`.concat(b[l-1]),x0++}s=l,u+=`
|
|
39
|
-
`.concat(U,"+").concat($," ").concat(D0),w+=`
|
|
40
|
-
`.concat(X,"-").concat($," ").concat(F0),x0+=2}else if(u+=w,w="",p0===1||l===0)u+=`
|
|
41
|
-
`.concat(D0),x0++}if(x0>20&&l<z0-2)return"".concat(e).concat(H0,`
|
|
42
|
-
`).concat(u,`
|
|
43
|
-
`).concat(O0,"...").concat($).concat(w,`
|
|
44
|
-
`)+"".concat(O0,"...").concat($)}return"".concat(e).concat(M0?H0:"",`
|
|
45
|
-
`).concat(u).concat(w).concat(Y0).concat(G0)}var Z=function(H,N){q(w,H);var B=C(w);function w(u){var s;if(A(this,w),h(u)!=="object"||u===null)throw new Q0("options","Object",u);var{message:Y0,operator:M0,stackStartFn:n,actual:b,expected:a}=u,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,Y0!=null)s=B.call(this,String(Y0));else{if(process.stderr&&process.stderr.isTTY)if(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1)O0="\x1B[34m",U="\x1B[32m",$="\x1B[39m",X="\x1B[31m";else O0="",U="",$="",X="";if(h(b)==="object"&&b!==null&&h(a)==="object"&&a!==null&&"stack"in b&&b instanceof Error&&"stack"in a&&a instanceof Error)b=L(b),a=L(a);if(M0==="deepStrictEqual"||M0==="strictEqual")s=B.call(this,I(b,a,M0));else if(M0==="notDeepStrictEqual"||M0==="notStrictEqual"){var G0=Q[M0],A0=T(b).split(`
|
|
46
|
-
`);if(M0==="notStrictEqual"&&h(b)==="object"&&b!==null)G0=Q.notStrictEqualObject;if(A0.length>30){A0[26]="".concat(O0,"...").concat($);while(A0.length>27)A0.pop()}if(A0.length===1)s=B.call(this,"".concat(G0," ").concat(A0[0]));else s=B.call(this,"".concat(G0,`
|
|
47
|
-
|
|
48
|
-
`).concat(A0.join(`
|
|
49
|
-
`),`
|
|
50
|
-
`))}else{var o=T(b),t="",V0=Q[M0];if(M0==="notDeepEqual"||M0==="notEqual"){if(o="".concat(Q[M0],`
|
|
51
|
-
|
|
52
|
-
`).concat(o),o.length>1024)o="".concat(o.slice(0,1021),"...")}else{if(t="".concat(T(a)),o.length>512)o="".concat(o.slice(0,509),"...");if(t.length>512)t="".concat(t.slice(0,509),"...");if(M0==="deepEqual"||M0==="equal")o="".concat(V0,`
|
|
53
|
-
|
|
54
|
-
`).concat(o,`
|
|
55
|
-
|
|
56
|
-
should equal
|
|
57
|
-
|
|
58
|
-
`);else t=" ".concat(M0," ").concat(t)}s=B.call(this,"".concat(o).concat(t))}}if(Error.stackTraceLimit=l,s.generatedMessage=!Y0,Object.defineProperty(F(s),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),s.code="ERR_ASSERTION",s.actual=b,s.expected=a,s.operator=M0,Error.captureStackTrace)Error.captureStackTrace(F(s),n);return s.stack,s.name="AssertionError",M(s)}return v(w,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N,value:function(u,s){return m(this,z(z({},s),{},{customInspect:!1,depth:0}))}}]),w}(D(Error),m.custom);W.exports=Z}),fY=t0((Y,W)=>{var V=Object.prototype.toString;W.exports=function(z){var O=V.call(z),A=O==="[object Arguments]";if(!A)A=O!=="[object Array]"&&z!==null&&typeof z==="object"&&typeof z.length==="number"&&z.length>=0&&V.call(z.callee)==="[object Function]";return A}}),r$=t0((Y,W)=>{var V;if(!Object.keys)z=Object.prototype.hasOwnProperty,O=Object.prototype.toString,A=fY(),G=Object.prototype.propertyIsEnumerable,v=!G.call({toString:null},"toString"),j=G.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],q=function(D){var S=D.constructor;return S&&S.prototype===D},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},M=function(){if(typeof window>"u")return!1;for(var D in window)try{if(!C["$"+D]&&z.call(window,D)&&window[D]!==null&&typeof window[D]==="object")try{q(window[D])}catch(S){return!0}}catch(S){return!0}return!1}(),F=function(D){if(typeof window>"u"||!M)return q(D);try{return q(D)}catch(S){return!1}},V=function(D){var S=D!==null&&typeof D==="object",P=O.call(D)==="[object Function]",k=A(D),x=S&&O.call(D)==="[object String]",f=[];if(!S&&!P&&!k)throw TypeError("Object.keys called on a non-object");var h=j&&P;if(x&&D.length>0&&!z.call(D,0))for(var c=0;c<D.length;++c)f.push(String(c));if(k&&D.length>0)for(var m=0;m<D.length;++m)f.push(String(m));else for(var g in D)if(!(h&&g==="prototype")&&z.call(D,g))f.push(String(g));if(v){var Q0=F(D);for(var J0=0;J0<E.length;++J0)if(!(Q0&&E[J0]==="constructor")&&z.call(D,E[J0]))f.push(E[J0])}return f};var z,O,A,G,v,j,E,q,C,M,F;W.exports=V}),yY=t0((Y,W)=>{var V=Array.prototype.slice,z=fY(),O=Object.keys,A=O?function(v){return O(v)}:r$(),G=Object.keys;A.shim=function(){if(Object.keys){var v=function(){var j=Object.keys(arguments);return j&&j.length===arguments.length}(1,2);if(!v)Object.keys=function(j){if(z(j))return G(V.call(j));return G(j)}}else Object.keys=A;return Object.keys||A},W.exports=A}),a$=t0((Y,W)=>{var V=yY(),z=X1()(),O=JQ(),A=J1(),G=O("Array.prototype.push"),v=O("Object.prototype.propertyIsEnumerable"),j=z?A.getOwnPropertySymbols:null;W.exports=function(E,q){if(E==null)throw TypeError("target must be an object");var C=A(E);if(arguments.length===1)return C;for(var M=1;M<arguments.length;++M){var F=A(arguments[M]),D=V(F),S=z&&(A.getOwnPropertySymbols||j);if(S){var P=S(F);for(var k=0;k<P.length;++k){var x=P[k];if(v(F,x))G(D,x)}}for(var f=0;f<D.length;++f){var h=D[f];if(v(F,h)){var c=F[h];C[h]=c}}}return C}}),t$=t0((Y,W)=>{var V=a$(),z=function(){if(!Object.assign)return!1;var A="abcdefghijklmnopqrst",G=A.split(""),v={};for(var j=0;j<G.length;++j)v[G[j]]=G[j];var E=Object.assign({},v),q="";for(var C in E)q+=C;return A!==q},O=function(){if(!Object.assign||!Object.preventExtensions)return!1;var A=Object.preventExtensions({1:2});try{Object.assign(A,"xy")}catch(G){return A[1]==="y"}return!1};W.exports=function(){if(!Object.assign)return V;if(z())return V;if(O())return V;return Object.assign}}),hY=t0((Y,W)=>{var V=function(z){return z!==z};W.exports=function(z,O){if(z===0&&O===0)return 1/z===1/O;if(z===O)return!0;if(V(z)&&V(O))return!0;return!1}}),$1=t0((Y,W)=>{var V=hY();W.exports=function(){return typeof Object.is==="function"?Object.is:V}}),i$=t0((Y,W)=>{var V=K1(),z=GX(),O=z(V("String.prototype.indexOf"));W.exports=function(A,G){var v=V(A,!!G);if(typeof v==="function"&&O(A,".prototype.")>-1)return z(v);return v}}),WX=t0((Y,W)=>{var V=yY(),z=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol",O=Object.prototype.toString,A=Array.prototype.concat,G=xY(),v=function(C){return typeof C==="function"&&O.call(C)==="[object Function]"},j=_Y()(),E=function(C,M,F,D){if(M in C){if(D===!0){if(C[M]===F)return}else if(!v(D)||!D())return}if(j)G(C,M,F,!0);else G(C,M,F)},q=function(C,M){var F=arguments.length>2?arguments[2]:{},D=V(M);if(z)D=A.call(D,Object.getOwnPropertySymbols(M));for(var S=0;S<D.length;S+=1)E(C,D[S],M[D[S]],F[D[S]])};q.supportsDescriptors=!!j,W.exports=q}),e$=t0((Y,W)=>{var V=$1(),z=WX();W.exports=function(){var O=V();return z(Object,{is:O},{is:function(){return Object.is!==O}}),O}}),UH=t0((Y,W)=>{var V=WX(),z=GX(),O=hY(),A=$1(),G=e$(),v=z(A(),Object);V(v,{getPolyfill:A,implementation:O,shim:G}),W.exports=v}),pY=t0((Y,W)=>{W.exports=function(V){return V!==V}}),cY=t0((Y,W)=>{var V=pY();W.exports=function(){if(Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a"))return Number.isNaN;return V}}),ZH=t0((Y,W)=>{var V=WX(),z=cY();W.exports=function(){var O=z();return V(Number,{isNaN:O},{isNaN:function(){return Number.isNaN!==O}}),O}}),QH=t0((Y,W)=>{var V=GX(),z=WX(),O=pY(),A=cY(),G=ZH(),v=V(A(),Number);z(v,{getPolyfill:A,implementation:O,shim:G}),W.exports=v}),XH=t0((Y,W)=>{function V(i,W0){return v(i)||G(i,W0)||O(i,W0)||z()}function z(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(i,W0){if(!i)return;if(typeof i==="string")return A(i,W0);var v0=Object.prototype.toString.call(i).slice(8,-1);if(v0==="Object"&&i.constructor)v0=i.constructor.name;if(v0==="Map"||v0==="Set")return Array.from(i);if(v0==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v0))return A(i,W0)}function A(i,W0){if(W0==null||W0>i.length)W0=i.length;for(var v0=0,q0=Array(W0);v0<W0;v0++)q0[v0]=i[v0];return q0}function G(i,W0){var v0=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(v0!=null){var q0,S0,e0,j0,B0=[],XU=!0,_0=!1;try{if(e0=(v0=v0.call(i)).next,W0===0){if(Object(v0)!==v0)return;XU=!1}else for(;!(XU=(q0=e0.call(v0)).done)&&(B0.push(q0.value),B0.length!==W0);XU=!0);}catch(g0){_0=!0,S0=g0}finally{try{if(!XU&&v0.return!=null&&(j0=v0.return(),Object(j0)!==j0))return}finally{if(_0)throw S0}}return B0}}function v(i){if(Array.isArray(i))return i}function j(i){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W0){return typeof W0}:function(W0){return W0&&typeof Symbol=="function"&&W0.constructor===Symbol&&W0!==Symbol.prototype?"symbol":typeof W0},j(i)}var E=/a/g.flags!==void 0,q=function(i){var W0=[];return i.forEach(function(v0){return W0.push(v0)}),W0},C=function(i){var W0=[];return i.forEach(function(v0,q0){return W0.push([q0,v0])}),W0},M=Object.is?Object.is:UH(),F=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},D=Number.isNaN?Number.isNaN:QH();function S(i){return i.call.bind(i)}var P=S(Object.prototype.hasOwnProperty),k=S(Object.prototype.propertyIsEnumerable),x=S(Object.prototype.toString),f=SQ().types,h=f.isAnyArrayBuffer,c=f.isArrayBufferView,m=f.isDate,g=f.isMap,Q0=f.isRegExp,J0=f.isSet,r=f.isNativeError,O0=f.isBoxedPrimitive,U=f.isNumberObject,X=f.isStringObject,$=f.isBooleanObject,Q=f.isBigIntObject,K=f.isSymbolObject,L=f.isFloat32Array,T=f.isFloat64Array;function I(i){if(i.length===0||i.length>10)return!0;for(var W0=0;W0<i.length;W0++){var v0=i.charCodeAt(W0);if(v0<48||v0>57)return!0}return i.length===10&&i>=Math.pow(2,32)}function Z(i){return Object.keys(i).filter(I).concat(F(i).filter(Object.prototype.propertyIsEnumerable.bind(i)))}/*!
|
|
60
|
-
* The buffer module from node.js, for the browser.
|
|
61
|
-
*
|
|
62
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
63
|
-
* @license MIT
|
|
64
|
-
*/function H(i,W0){if(i===W0)return 0;var v0=i.length,q0=W0.length;for(var S0=0,e0=Math.min(v0,q0);S0<e0;++S0)if(i[S0]!==W0[S0]){v0=i[S0],q0=W0[S0];break}if(v0<q0)return-1;if(q0<v0)return 1;return 0}var N=void 0,B=!0,w=!1,u=0,s=1,Y0=2,M0=3;function n(i,W0){return E?i.source===W0.source&&i.flags===W0.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(W0)}function b(i,W0){if(i.byteLength!==W0.byteLength)return!1;for(var v0=0;v0<i.byteLength;v0++)if(i[v0]!==W0[v0])return!1;return!0}function a(i,W0){if(i.byteLength!==W0.byteLength)return!1;return H(new Uint8Array(i.buffer,i.byteOffset,i.byteLength),new Uint8Array(W0.buffer,W0.byteOffset,W0.byteLength))===0}function l(i,W0){return i.byteLength===W0.byteLength&&H(new Uint8Array(i),new Uint8Array(W0))===0}function G0(i,W0){if(U(i))return U(W0)&&M(Number.prototype.valueOf.call(i),Number.prototype.valueOf.call(W0));if(X(i))return X(W0)&&String.prototype.valueOf.call(i)===String.prototype.valueOf.call(W0);if($(i))return $(W0)&&Boolean.prototype.valueOf.call(i)===Boolean.prototype.valueOf.call(W0);if(Q(i))return Q(W0)&&BigInt.prototype.valueOf.call(i)===BigInt.prototype.valueOf.call(W0);return K(W0)&&Symbol.prototype.valueOf.call(i)===Symbol.prototype.valueOf.call(W0)}function A0(i,W0,v0,q0){if(i===W0){if(i!==0)return!0;return v0?M(i,W0):!0}if(v0){if(j(i)!=="object")return typeof i==="number"&&D(i)&&D(W0);if(j(W0)!=="object"||i===null||W0===null)return!1;if(Object.getPrototypeOf(i)!==Object.getPrototypeOf(W0))return!1}else{if(i===null||j(i)!=="object"){if(W0===null||j(W0)!=="object")return i==W0;return!1}if(W0===null||j(W0)!=="object")return!1}var S0=x(i),e0=x(W0);if(S0!==e0)return!1;if(Array.isArray(i)){if(i.length!==W0.length)return!1;var j0=Z(i,N),B0=Z(W0,N);if(j0.length!==B0.length)return!1;return t(i,W0,v0,q0,s,j0)}if(S0==="[object Object]"){if(!g(i)&&g(W0)||!J0(i)&&J0(W0))return!1}if(m(i)){if(!m(W0)||Date.prototype.getTime.call(i)!==Date.prototype.getTime.call(W0))return!1}else if(Q0(i)){if(!Q0(W0)||!n(i,W0))return!1}else if(r(i)||i instanceof Error){if(i.message!==W0.message||i.name!==W0.name)return!1}else if(c(i)){if(!v0&&(L(i)||T(i))){if(!b(i,W0))return!1}else if(!a(i,W0))return!1;var XU=Z(i,N),_0=Z(W0,N);if(XU.length!==_0.length)return!1;return t(i,W0,v0,q0,u,XU)}else if(J0(i)){if(!J0(W0)||i.size!==W0.size)return!1;return t(i,W0,v0,q0,Y0)}else if(g(i)){if(!g(W0)||i.size!==W0.size)return!1;return t(i,W0,v0,q0,M0)}else if(h(i)){if(!l(i,W0))return!1}else if(O0(i)&&!G0(i,W0))return!1;return t(i,W0,v0,q0,u)}function o(i,W0){return W0.filter(function(v0){return k(i,v0)})}function t(i,W0,v0,q0,S0,e0){if(arguments.length===5){e0=Object.keys(i);var j0=Object.keys(W0);if(e0.length!==j0.length)return!1}var B0=0;for(;B0<e0.length;B0++)if(!P(W0,e0[B0]))return!1;if(v0&&arguments.length===5){var XU=F(i);if(XU.length!==0){var _0=0;for(B0=0;B0<XU.length;B0++){var g0=XU[B0];if(k(i,g0)){if(!k(W0,g0))return!1;e0.push(g0),_0++}else if(k(W0,g0))return!1}var MU=F(W0);if(XU.length!==MU.length&&o(W0,MU).length!==_0)return!1}else{var c0=F(W0);if(c0.length!==0&&o(W0,c0).length!==0)return!1}}if(e0.length===0&&(S0===u||S0===s&&i.length===0||i.size===0))return!0;if(q0===void 0)q0={val1:new Map,val2:new Map,position:0};else{var K0=q0.val1.get(i);if(K0!==void 0){var E0=q0.val2.get(W0);if(E0!==void 0)return K0===E0}q0.position++}q0.val1.set(i,q0.position),q0.val2.set(W0,q0.position);var C0=F0(i,W0,v0,e0,q0,S0);return q0.val1.delete(i),q0.val2.delete(W0),C0}function V0(i,W0,v0,q0){var S0=q(i);for(var e0=0;e0<S0.length;e0++){var j0=S0[e0];if(A0(W0,j0,v0,q0))return i.delete(j0),!0}return!1}function z0(i){switch(j(i)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":i=+i;case"number":if(D(i))return!1}return!0}function U0(i,W0,v0){var q0=z0(v0);if(q0!=null)return q0;return W0.has(q0)&&!i.has(q0)}function x0(i,W0,v0,q0,S0){var e0=z0(v0);if(e0!=null)return e0;var j0=W0.get(e0);if(j0===void 0&&!W0.has(e0)||!A0(q0,j0,!1,S0))return!1;return!i.has(e0)&&A0(q0,j0,!1,S0)}function e(i,W0,v0,q0){var S0=null,e0=q(i);for(var j0=0;j0<e0.length;j0++){var B0=e0[j0];if(j(B0)==="object"&&B0!==null){if(S0===null)S0=new Set;S0.add(B0)}else if(!W0.has(B0)){if(v0)return!1;if(!U0(i,W0,B0))return!1;if(S0===null)S0=new Set;S0.add(B0)}}if(S0!==null){var XU=q(W0);for(var _0=0;_0<XU.length;_0++){var g0=XU[_0];if(j(g0)==="object"&&g0!==null){if(!V0(S0,g0,v0,q0))return!1}else if(!v0&&!i.has(g0)&&!V0(S0,g0,v0,q0))return!1}return S0.size===0}return!0}function H0(i,W0,v0,q0,S0,e0){var j0=q(i);for(var B0=0;B0<j0.length;B0++){var XU=j0[B0];if(A0(v0,XU,S0,e0)&&A0(q0,W0.get(XU),S0,e0))return i.delete(XU),!0}return!1}function p0(i,W0,v0,q0){var S0=null,e0=C(i);for(var j0=0;j0<e0.length;j0++){var B0=V(e0[j0],2),XU=B0[0],_0=B0[1];if(j(XU)==="object"&&XU!==null){if(S0===null)S0=new Set;S0.add(XU)}else{var g0=W0.get(XU);if(g0===void 0&&!W0.has(XU)||!A0(_0,g0,v0,q0)){if(v0)return!1;if(!x0(i,W0,XU,_0,q0))return!1;if(S0===null)S0=new Set;S0.add(XU)}}}if(S0!==null){var MU=C(W0);for(var c0=0;c0<MU.length;c0++){var K0=V(MU[c0],2),E0=K0[0],C0=K0[1];if(j(E0)==="object"&&E0!==null){if(!H0(S0,i,E0,C0,v0,q0))return!1}else if(!v0&&(!i.has(E0)||!A0(i.get(E0),C0,!1,q0))&&!H0(S0,i,E0,C0,!1,q0))return!1}return S0.size===0}return!0}function F0(i,W0,v0,q0,S0,e0){var j0=0;if(e0===Y0){if(!e(i,W0,v0,S0))return!1}else if(e0===M0){if(!p0(i,W0,v0,S0))return!1}else if(e0===s)for(;j0<i.length;j0++)if(P(i,j0)){if(!P(W0,j0)||!A0(i[j0],W0[j0],v0,S0))return!1}else if(P(W0,j0))return!1;else{var B0=Object.keys(i);for(;j0<B0.length;j0++){var XU=B0[j0];if(!P(W0,XU)||!A0(i[XU],W0[XU],v0,S0))return!1}if(B0.length!==Object.keys(W0).length)return!1;return!0}for(j0=0;j0<q0.length;j0++){var _0=q0[j0];if(!A0(i[_0],W0[_0],v0,S0))return!1}return!0}function D0(i,W0){return A0(i,W0,w)}function i0(i,W0){return A0(i,W0,B)}W.exports={isDeepEqual:D0,isDeepStrictEqual:i0}}),U1=t0((Y,W)=>{function V(n){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},V(n)}function z(n,b){for(var a=0;a<b.length;a++){var l=b[a];if(l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l)l.writable=!0;Object.defineProperty(n,A(l.key),l)}}function O(n,b,a){if(b)z(n.prototype,b);if(a)z(n,a);return Object.defineProperty(n,"prototype",{writable:!1}),n}function A(n){var b=G(n,"string");return V(b)==="symbol"?b:String(b)}function G(n,b){if(V(n)!=="object"||n===null)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var l=a.call(n,b||"default");if(V(l)!=="object")return l;throw TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(n)}function v(n,b){if(!(n instanceof b))throw TypeError("Cannot call a class as a function")}var j=gY(),E=j.codes,q=E.ERR_AMBIGUOUS_ARGUMENT,C=E.ERR_INVALID_ARG_TYPE,M=E.ERR_INVALID_ARG_VALUE,F=E.ERR_INVALID_RETURN_VALUE,D=E.ERR_MISSING_ARGS,S=s$(),P=SQ(),k=P.inspect,x=SQ().types,f=x.isPromise,h=x.isRegExp,c=t$()(),m=$1()(),g=i$()("RegExp.prototype.test"),Q0,J0;function r(){var n=XH();Q0=n.isDeepEqual,J0=n.isDeepStrictEqual}var O0=!1,U=W.exports=L,X={};function $(n){if(n.message instanceof Error)throw n.message;throw new S(n)}function Q(n,b,a,l,G0){var A0=arguments.length,o;if(A0===0)o="Failed";else if(A0===1)a=n,n=void 0;else{if(O0===!1){O0=!0;var t=process.emitWarning?process.emitWarning:console.warn.bind(console);t("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}if(A0===2)l="!="}if(a instanceof Error)throw a;var V0={actual:n,expected:b,operator:l===void 0?"fail":l,stackStartFn:G0||Q};if(a!==void 0)V0.message=a;var z0=new S(V0);if(o)z0.message=o,z0.generatedMessage=!0;throw z0}U.fail=Q,U.AssertionError=S;function K(n,b,a,l){if(!a){var G0=!1;if(b===0)G0=!0,l="No value argument passed to `assert.ok()`";else if(l instanceof Error)throw l;var A0=new S({actual:a,expected:!0,message:l,operator:"==",stackStartFn:n});throw A0.generatedMessage=G0,A0}}function L(){for(var n=arguments.length,b=Array(n),a=0;a<n;a++)b[a]=arguments[a];K.apply(void 0,[L,b.length].concat(b))}U.ok=L,U.equal=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(b!=a)$({actual:b,expected:a,message:l,operator:"==",stackStartFn:n})},U.notEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(b==a)$({actual:b,expected:a,message:l,operator:"!=",stackStartFn:n})},U.deepEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(Q0===void 0)r();if(!Q0(b,a))$({actual:b,expected:a,message:l,operator:"deepEqual",stackStartFn:n})},U.notDeepEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(Q0===void 0)r();if(Q0(b,a))$({actual:b,expected:a,message:l,operator:"notDeepEqual",stackStartFn:n})},U.deepStrictEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(Q0===void 0)r();if(!J0(b,a))$({actual:b,expected:a,message:l,operator:"deepStrictEqual",stackStartFn:n})},U.notDeepStrictEqual=T;function T(n,b,a){if(arguments.length<2)throw new D("actual","expected");if(Q0===void 0)r();if(J0(n,b))$({actual:n,expected:b,message:a,operator:"notDeepStrictEqual",stackStartFn:T})}U.strictEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(!m(b,a))$({actual:b,expected:a,message:l,operator:"strictEqual",stackStartFn:n})},U.notStrictEqual=function n(b,a,l){if(arguments.length<2)throw new D("actual","expected");if(m(b,a))$({actual:b,expected:a,message:l,operator:"notStrictEqual",stackStartFn:n})};var I=O(function n(b,a,l){var G0=this;v(this,n),a.forEach(function(A0){if(A0 in b)if(l!==void 0&&typeof l[A0]==="string"&&h(b[A0])&&g(b[A0],l[A0]))G0[A0]=l[A0];else G0[A0]=b[A0]})});function Z(n,b,a,l,G0,A0){if(!(a in n)||!J0(n[a],b[a])){if(!l){var o=new I(n,G0),t=new I(b,G0,n),V0=new S({actual:o,expected:t,operator:"deepStrictEqual",stackStartFn:A0});throw V0.actual=n,V0.expected=b,V0.operator=A0.name,V0}$({actual:n,expected:b,message:l,operator:A0.name,stackStartFn:A0})}}function H(n,b,a,l){if(typeof b!=="function"){if(h(b))return g(b,n);if(arguments.length===2)throw new C("expected",["Function","RegExp"],b);if(V(n)!=="object"||n===null){var G0=new S({actual:n,expected:b,message:a,operator:"deepStrictEqual",stackStartFn:l});throw G0.operator=l.name,G0}var A0=Object.keys(b);if(b instanceof Error)A0.push("name","message");else if(A0.length===0)throw new M("error",b,"may not be an empty object");if(Q0===void 0)r();return A0.forEach(function(o){if(typeof n[o]==="string"&&h(b[o])&&g(b[o],n[o]))return;Z(n,b,o,a,A0,l)}),!0}if(b.prototype!==void 0&&n instanceof b)return!0;if(Error.isPrototypeOf(b))return!1;return b.call({},n)===!0}function N(n){if(typeof n!=="function")throw new C("fn","Function",n);try{n()}catch(b){return b}return X}function B(n){return f(n)||n!==null&&V(n)==="object"&&typeof n.then==="function"&&typeof n.catch==="function"}function w(n){return Promise.resolve().then(function(){var b;if(typeof n==="function"){if(b=n(),!B(b))throw new F("instance of Promise","promiseFn",b)}else if(B(n))b=n;else throw new C("promiseFn",["Function","Promise"],n);return Promise.resolve().then(function(){return b}).then(function(){return X}).catch(function(a){return a})})}function u(n,b,a,l){if(typeof a==="string"){if(arguments.length===4)throw new C("error",["Object","Error","Function","RegExp"],a);if(V(b)==="object"&&b!==null){if(b.message===a)throw new q("error/message",'The error message "'.concat(b.message,'" is identical to the message.'))}else if(b===a)throw new q("error/message",'The error "'.concat(b,'" is identical to the message.'));l=a,a=void 0}else if(a!=null&&V(a)!=="object"&&typeof a!=="function")throw new C("error",["Object","Error","Function","RegExp"],a);if(b===X){var G0="";if(a&&a.name)G0+=" (".concat(a.name,")");G0+=l?": ".concat(l):".";var A0=n.name==="rejects"?"rejection":"exception";$({actual:void 0,expected:a,operator:n.name,message:"Missing expected ".concat(A0).concat(G0),stackStartFn:n})}if(a&&!H(b,a,l,n))throw b}function s(n,b,a,l){if(b===X)return;if(typeof a==="string")l=a,a=void 0;if(!a||H(b,a)){var G0=l?": ".concat(l):".",A0=n.name==="doesNotReject"?"rejection":"exception";$({actual:b,expected:a,operator:n.name,message:"Got unwanted ".concat(A0).concat(G0,`
|
|
65
|
-
`)+'Actual message: "'.concat(b&&b.message,'"'),stackStartFn:n})}throw b}U.throws=function n(b){for(var a=arguments.length,l=Array(a>1?a-1:0),G0=1;G0<a;G0++)l[G0-1]=arguments[G0];u.apply(void 0,[n,N(b)].concat(l))},U.rejects=function n(b){for(var a=arguments.length,l=Array(a>1?a-1:0),G0=1;G0<a;G0++)l[G0-1]=arguments[G0];return w(b).then(function(A0){return u.apply(void 0,[n,A0].concat(l))})},U.doesNotThrow=function n(b){for(var a=arguments.length,l=Array(a>1?a-1:0),G0=1;G0<a;G0++)l[G0-1]=arguments[G0];s.apply(void 0,[n,N(b)].concat(l))},U.doesNotReject=function n(b){for(var a=arguments.length,l=Array(a>1?a-1:0),G0=1;G0<a;G0++)l[G0-1]=arguments[G0];return w(b).then(function(A0){return s.apply(void 0,[n,A0].concat(l))})},U.ifError=function n(b){if(b!==null&&b!==void 0){var a="ifError got unwanted exception: ";if(V(b)==="object"&&typeof b.message==="string")if(b.message.length===0&&b.constructor)a+=b.constructor.name;else a+=b.message;else a+=k(b);var l=new S({actual:b,expected:null,operator:"ifError",message:a,stackStartFn:n}),G0=b.stack;if(typeof G0==="string"){var A0=G0.split(`
|
|
66
|
-
`);A0.shift();var o=l.stack.split(`
|
|
67
|
-
`);for(var t=0;t<A0.length;t++){var V0=o.indexOf(A0[t]);if(V0!==-1){o=o.slice(0,V0);break}}l.stack="".concat(o.join(`
|
|
68
|
-
`),`
|
|
69
|
-
`).concat(A0.join(`
|
|
70
|
-
`))}throw l}};function Y0(n,b,a,l,G0){if(!h(b))throw new C("regexp","RegExp",b);var A0=G0==="match";if(typeof n!=="string"||g(b,n)!==A0){if(a instanceof Error)throw a;var o=!a;a=a||(typeof n!=="string"?'The "string" argument must be of type string. Received type '+"".concat(V(n)," (").concat(k(n),")"):(A0?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(k(b),`. Input:
|
|
71
|
-
|
|
72
|
-
`).concat(k(n),`
|
|
73
|
-
`));var t=new S({actual:n,expected:b,message:a,operator:G0,stackStartFn:l});throw t.generatedMessage=o,t}}U.match=function n(b,a,l){Y0(b,a,l,n,"match")},U.doesNotMatch=function n(b,a,l){Y0(b,a,l,n,"doesNotMatch")};function M0(){for(var n=arguments.length,b=Array(n),a=0;a<n;a++)b[a]=arguments[a];K.apply(void 0,[M0,b.length].concat(b))}U.strict=c(M0,U,{equal:U.strictEqual,deepEqual:U.deepStrictEqual,notEqual:U.notStrictEqual,notDeepEqual:U.notDeepStrictEqual}),U.strict.strict=U.strict}),bY=O$(U1(),1),{AssertionError:JH,CallTracker:YH,deepEqual:GH,deepStrictEqual:WH,doesNotMatch:VH,doesNotReject:KH,doesNotThrow:$H,equal:HH,fail:IH,ifError:OH,match:FH,notDeepEqual:zH,notDeepStrictEqual:CH,notEqual:DH,notStrictEqual:LH,ok:MH,rejects:AH,strict:qH,strictEqual:TH,throws:RH}=bY,SH=bY});var mY={};OZ(mY,{versions:()=>xH,version:()=>kH,umask:()=>oH,title:()=>jH,removeListener:()=>yH,removeAllListeners:()=>hH,prependOnceListener:()=>bH,prependListener:()=>cH,once:()=>gH,on:()=>_H,off:()=>fH,nextTick:()=>PH,listeners:()=>uH,env:()=>NH,emit:()=>pH,cwd:()=>lH,chdir:()=>mH,browser:()=>BH,binding:()=>dH,argv:()=>vH,addListener:()=>wH});function EH(){if(!YQ||!bZ)return;if(YQ=!1,bZ.length)zZ=bZ.concat(zZ);else VX=-1;if(zZ.length)lY()}function lY(){if(YQ)return;var Y=setTimeout(EH,0);YQ=!0;var W=zZ.length;while(W){bZ=zZ,zZ=[];while(++VX<W)if(bZ){var V=bZ[VX];V.fun.apply(null,V.array)}VX=-1,W=zZ.length}bZ=null,YQ=!1,clearTimeout(Y,0)}function PH(Y){var W=Array(arguments.length-1);if(arguments.length>1)for(var V=1;V<arguments.length;V++)W[V-1]=arguments[V];if(zZ.push({fun:Y,args:W}),zZ.length===1&&!YQ)setTimeout(lY,0)}function CZ(){}var zZ,YQ=!1,bZ,VX=-1,jH="browser",BH=!0,NH,vH,kH="",xH,_H,wH,gH,fH,yH,hH,pH,cH,bH,uH=function(Y){return[]},dH=function(Y){throw Error("process.binding is not supported in browser polyfill")},lH=function(){return"/"},mH=function(Y){throw Error("process.chdir is not supported in browser polyfill")},oH=function(){return 0};var oY=FZ(()=>{zZ=[];NH={},vH=[],xH={};_H=CZ,wH=CZ,gH=CZ,fH=CZ,yH=CZ,hH=CZ,pH=CZ,cH=CZ,bH=CZ});var dU={};OZ(dU,{transcode:()=>k8,resolveObjectURL:()=>B8,kStringMaxLength:()=>ZG,kMaxLength:()=>jQ,isUtf8:()=>N8,isAscii:()=>v8,default:()=>x8,constants:()=>Q8,btoa:()=>iH,atob:()=>eH,INSPECT_MAX_BYTES:()=>UG,File:()=>U8,Buffer:()=>f0,Blob:()=>Z8});function nH(Y){var W=Y.length;if(W%4>0)throw Error("Invalid string. Length must be a multiple of 4");var V=Y.indexOf("=");if(V===-1)V=W;var z=V===W?0:4-V%4;return[V,z]}function sH(Y,W){return(Y+W)*3/4-W}function rH(Y){var W,V=nH(Y),z=V[0],O=V[1],A=new Uint8Array(sH(z,O)),G=0,v=O>0?z-4:z,j;for(j=0;j<v;j+=4)W=XZ[Y.charCodeAt(j)]<<18|XZ[Y.charCodeAt(j+1)]<<12|XZ[Y.charCodeAt(j+2)]<<6|XZ[Y.charCodeAt(j+3)],A[G++]=W>>16&255,A[G++]=W>>8&255,A[G++]=W&255;if(O===2)W=XZ[Y.charCodeAt(j)]<<2|XZ[Y.charCodeAt(j+1)]>>4,A[G++]=W&255;if(O===1)W=XZ[Y.charCodeAt(j)]<<10|XZ[Y.charCodeAt(j+1)]<<4|XZ[Y.charCodeAt(j+2)]>>2,A[G++]=W>>8&255,A[G++]=W&255;return A}function aH(Y){return WZ[Y>>18&63]+WZ[Y>>12&63]+WZ[Y>>6&63]+WZ[Y&63]}function tH(Y,W,V){var z,O=[];for(var A=W;A<V;A+=3)z=(Y[A]<<16&16711680)+(Y[A+1]<<8&65280)+(Y[A+2]&255),O.push(aH(z));return O.join("")}function sY(Y){var W,V=Y.length,z=V%3,O=[],A=16383;for(var G=0,v=V-z;G<v;G+=A)O.push(tH(Y,G,G+A>v?v:G+A));if(z===1)W=Y[V-1],O.push(WZ[W>>2]+WZ[W<<4&63]+"==");else if(z===2)W=(Y[V-2]<<8)+Y[V-1],O.push(WZ[W>>10]+WZ[W>>4&63]+WZ[W<<2&63]+"=");return O.join("")}function KX(Y,W,V,z,O){var A,G,v=O*8-z-1,j=(1<<v)-1,E=j>>1,q=-7,C=V?O-1:0,M=V?-1:1,F=Y[W+C];C+=M,A=F&(1<<-q)-1,F>>=-q,q+=v;for(;q>0;A=A*256+Y[W+C],C+=M,q-=8);G=A&(1<<-q)-1,A>>=-q,q+=z;for(;q>0;G=G*256+Y[W+C],C+=M,q-=8);if(A===0)A=1-E;else if(A===j)return G?NaN:(F?-1:1)*(1/0);else G=G+Math.pow(2,z),A=A-E;return(F?-1:1)*G*Math.pow(2,A-z)}function eY(Y,W,V,z,O,A){var G,v,j,E=A*8-O-1,q=(1<<E)-1,C=q>>1,M=O===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=z?0:A-1,D=z?1:-1,S=W<0||W===0&&1/W<0?1:0;if(W=Math.abs(W),isNaN(W)||W===1/0)v=isNaN(W)?1:0,G=q;else{if(G=Math.floor(Math.log(W)/Math.LN2),W*(j=Math.pow(2,-G))<1)G--,j*=2;if(G+C>=1)W+=M/j;else W+=M*Math.pow(2,1-C);if(W*j>=2)G++,j/=2;if(G+C>=q)v=0,G=q;else if(G+C>=1)v=(W*j-1)*Math.pow(2,O),G=G+C;else v=W*Math.pow(2,C-1)*Math.pow(2,O),G=0}for(;O>=8;Y[V+F]=v&255,F+=D,v/=256,O-=8);G=G<<O|v,E+=O;for(;E>0;Y[V+F]=G&255,F+=D,G/=256,E-=8);Y[V+F-D]|=S*128}function DZ(Y){if(Y>jQ)throw RangeError('The value "'+Y+'" is invalid for option "size"');let W=new Uint8Array(Y);return Object.setPrototypeOf(W,f0.prototype),W}function C1(Y,W,V){return class extends V{constructor(){super();Object.defineProperty(this,"message",{value:W.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Y}]`,this.stack,delete this.name}get code(){return Y}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${Y}]: ${this.message}`}}}function f0(Y,W,V){if(typeof Y==="number"){if(typeof W==="string")throw TypeError('The "string" argument must be of type string. Received type number');return D1(Y)}return QG(Y,W,V)}function QG(Y,W,V){if(typeof Y==="string")return G8(Y,W);if(ArrayBuffer.isView(Y))return W8(Y);if(Y==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(VZ(Y,ArrayBuffer)||Y&&VZ(Y.buffer,ArrayBuffer))return F1(Y,W,V);if(typeof SharedArrayBuffer<"u"&&(VZ(Y,SharedArrayBuffer)||Y&&VZ(Y.buffer,SharedArrayBuffer)))return F1(Y,W,V);if(typeof Y==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let z=Y.valueOf&&Y.valueOf();if(z!=null&&z!==Y)return f0.from(z,W,V);let O=V8(Y);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]==="function")return f0.from(Y[Symbol.toPrimitive]("string"),W,V);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}function XG(Y){if(typeof Y!=="number")throw TypeError('"size" argument must be of type number');else if(Y<0)throw RangeError('The value "'+Y+'" is invalid for option "size"')}function Y8(Y,W,V){if(XG(Y),Y<=0)return DZ(Y);if(W!==void 0)return typeof V==="string"?DZ(Y).fill(W,V):DZ(Y).fill(W);return DZ(Y)}function D1(Y){return XG(Y),DZ(Y<0?0:L1(Y)|0)}function G8(Y,W){if(typeof W!=="string"||W==="")W="utf8";if(!f0.isEncoding(W))throw TypeError("Unknown encoding: "+W);let V=JG(Y,W)|0,z=DZ(V),O=z.write(Y,W);if(O!==V)z=z.slice(0,O);return z}function O1(Y){let W=Y.length<0?0:L1(Y.length)|0,V=DZ(W);for(let z=0;z<W;z+=1)V[z]=Y[z]&255;return V}function W8(Y){if(VZ(Y,Uint8Array)){let W=new Uint8Array(Y);return F1(W.buffer,W.byteOffset,W.byteLength)}return O1(Y)}function F1(Y,W,V){if(W<0||Y.byteLength<W)throw RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<W+(V||0))throw RangeError('"length" is outside of buffer bounds');let z;if(W===void 0&&V===void 0)z=new Uint8Array(Y);else if(V===void 0)z=new Uint8Array(Y,W);else z=new Uint8Array(Y,W,V);return Object.setPrototypeOf(z,f0.prototype),z}function V8(Y){if(f0.isBuffer(Y)){let W=L1(Y.length)|0,V=DZ(W);if(V.length===0)return V;return Y.copy(V,0,0,W),V}if(Y.length!==void 0){if(typeof Y.length!=="number"||Number.isNaN(Y.length))return DZ(0);return O1(Y)}if(Y.type==="Buffer"&&Array.isArray(Y.data))return O1(Y.data)}function L1(Y){if(Y>=jQ)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jQ.toString(16)+" bytes");return Y|0}function JG(Y,W){if(f0.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||VZ(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);let V=Y.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&V===0)return 0;let O=!1;for(;;)switch(W){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return z1(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V*2;case"hex":return V>>>1;case"base64":return OG(Y).length;default:if(O)return z?-1:z1(Y).length;W=(""+W).toLowerCase(),O=!0}}function K8(Y,W,V){let z=!1;if(W===void 0||W<0)W=0;if(W>this.length)return"";if(V===void 0||V>this.length)V=this.length;if(V<=0)return"";if(V>>>=0,W>>>=0,V<=W)return"";if(!Y)Y="utf8";while(!0)switch(Y){case"hex":return M8(this,W,V);case"utf8":case"utf-8":return GG(this,W,V);case"ascii":return D8(this,W,V);case"latin1":case"binary":return L8(this,W,V);case"base64":return z8(this,W,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A8(this,W,V);default:if(z)throw TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),z=!0}}function dZ(Y,W,V){let z=Y[W];Y[W]=Y[V],Y[V]=z}function YG(Y,W,V,z,O){if(Y.length===0)return-1;if(typeof V==="string")z=V,V=0;else if(V>2147483647)V=2147483647;else if(V<-2147483648)V=-2147483648;if(V=+V,Number.isNaN(V))V=O?0:Y.length-1;if(V<0)V=Y.length+V;if(V>=Y.length)if(O)return-1;else V=Y.length-1;else if(V<0)if(O)V=0;else return-1;if(typeof W==="string")W=f0.from(W,z);if(f0.isBuffer(W)){if(W.length===0)return-1;return aY(Y,W,V,z,O)}else if(typeof W==="number"){if(W=W&255,typeof Uint8Array.prototype.indexOf==="function")if(O)return Uint8Array.prototype.indexOf.call(Y,W,V);else return Uint8Array.prototype.lastIndexOf.call(Y,W,V);return aY(Y,[W],V,z,O)}throw TypeError("val must be string, number or Buffer")}function aY(Y,W,V,z,O){let A=1,G=Y.length,v=W.length;if(z!==void 0){if(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le"){if(Y.length<2||W.length<2)return-1;A=2,G/=2,v/=2,V/=2}}function j(q,C){if(A===1)return q[C];else return q.readUInt16BE(C*A)}let E;if(O){let q=-1;for(E=V;E<G;E++)if(j(Y,E)===j(W,q===-1?0:E-q)){if(q===-1)q=E;if(E-q+1===v)return q*A}else{if(q!==-1)E-=E-q;q=-1}}else{if(V+v>G)V=G-v;for(E=V;E>=0;E--){let q=!0;for(let C=0;C<v;C++)if(j(Y,E+C)!==j(W,C)){q=!1;break}if(q)return E}}return-1}function $8(Y,W,V,z){V=Number(V)||0;let O=Y.length-V;if(!z)z=O;else if(z=Number(z),z>O)z=O;let A=W.length;if(z>A/2)z=A/2;let G;for(G=0;G<z;++G){let v=parseInt(W.substr(G*2,2),16);if(Number.isNaN(v))return G;Y[V+G]=v}return G}function H8(Y,W,V,z){return $X(z1(W,Y.length-V),Y,V,z)}function I8(Y,W,V,z){return $X(S8(W),Y,V,z)}function O8(Y,W,V,z){return $X(OG(W),Y,V,z)}function F8(Y,W,V,z){return $X(E8(W,Y.length-V),Y,V,z)}function z8(Y,W,V){if(W===0&&V===Y.length)return sY(Y);else return sY(Y.slice(W,V))}function GG(Y,W,V){V=Math.min(Y.length,V);let z=[],O=W;while(O<V){let A=Y[O],G=null,v=A>239?4:A>223?3:A>191?2:1;if(O+v<=V){let j,E,q,C;switch(v){case 1:if(A<128)G=A;break;case 2:if(j=Y[O+1],(j&192)===128){if(C=(A&31)<<6|j&63,C>127)G=C}break;case 3:if(j=Y[O+1],E=Y[O+2],(j&192)===128&&(E&192)===128){if(C=(A&15)<<12|(j&63)<<6|E&63,C>2047&&(C<55296||C>57343))G=C}break;case 4:if(j=Y[O+1],E=Y[O+2],q=Y[O+3],(j&192)===128&&(E&192)===128&&(q&192)===128){if(C=(A&15)<<18|(j&63)<<12|(E&63)<<6|q&63,C>65535&&C<1114112)G=C}}}if(G===null)G=65533,v=1;else if(G>65535)G-=65536,z.push(G>>>10&1023|55296),G=56320|G&1023;z.push(G),O+=v}return C8(z)}function C8(Y){let W=Y.length;if(W<=tY)return String.fromCharCode.apply(String,Y);let V="",z=0;while(z<W)V+=String.fromCharCode.apply(String,Y.slice(z,z+=tY));return V}function D8(Y,W,V){let z="";V=Math.min(Y.length,V);for(let O=W;O<V;++O)z+=String.fromCharCode(Y[O]&127);return z}function L8(Y,W,V){let z="";V=Math.min(Y.length,V);for(let O=W;O<V;++O)z+=String.fromCharCode(Y[O]);return z}function M8(Y,W,V){let z=Y.length;if(!W||W<0)W=0;if(!V||V<0||V>z)V=z;let O="";for(let A=W;A<V;++A)O+=P8[Y[A]];return O}function A8(Y,W,V){let z=Y.slice(W,V),O="";for(let A=0;A<z.length-1;A+=2)O+=String.fromCharCode(z[A]+z[A+1]*256);return O}function uU(Y,W,V){if(Y%1!==0||Y<0)throw RangeError("offset is not uint");if(Y+W>V)throw RangeError("Trying to access beyond buffer length")}function sU(Y,W,V,z,O,A){if(!f0.isBuffer(Y))throw TypeError('"buffer" argument must be a Buffer instance');if(W>O||W<A)throw RangeError('"value" argument is out of bounds');if(V+z>Y.length)throw RangeError("Index out of range")}function WG(Y,W,V,z,O){IG(W,z,O,Y,V,7);let A=Number(W&BigInt(4294967295));Y[V++]=A,A=A>>8,Y[V++]=A,A=A>>8,Y[V++]=A,A=A>>8,Y[V++]=A;let G=Number(W>>BigInt(32)&BigInt(4294967295));return Y[V++]=G,G=G>>8,Y[V++]=G,G=G>>8,Y[V++]=G,G=G>>8,Y[V++]=G,V}function VG(Y,W,V,z,O){IG(W,z,O,Y,V,7);let A=Number(W&BigInt(4294967295));Y[V+7]=A,A=A>>8,Y[V+6]=A,A=A>>8,Y[V+5]=A,A=A>>8,Y[V+4]=A;let G=Number(W>>BigInt(32)&BigInt(4294967295));return Y[V+3]=G,G=G>>8,Y[V+2]=G,G=G>>8,Y[V+1]=G,G=G>>8,Y[V]=G,V+8}function KG(Y,W,V,z,O,A){if(V+z>Y.length)throw RangeError("Index out of range");if(V<0)throw RangeError("Index out of range")}function $G(Y,W,V,z,O){if(W=+W,V=V>>>0,!O)KG(Y,W,V,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return eY(Y,W,V,z,23,4),V+4}function HG(Y,W,V,z,O){if(W=+W,V=V>>>0,!O)KG(Y,W,V,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return eY(Y,W,V,z,52,8),V+8}function iY(Y){let W="",V=Y.length,z=Y[0]==="-"?1:0;for(;V>=z+4;V-=3)W=`_${Y.slice(V-3,V)}${W}`;return`${Y.slice(0,V)}${W}`}function q8(Y,W,V){if(GQ(W,"offset"),Y[W]===void 0||Y[W+V]===void 0)BQ(W,Y.length-(V+1))}function IG(Y,W,V,z,O,A){if(Y>V||Y<W){let G=typeof W==="bigint"?"n":"",v;if(A>3)if(W===0||W===BigInt(0))v=`>= 0${G} and < 2${G} ** ${(A+1)*8}${G}`;else v=`>= -(2${G} ** ${(A+1)*8-1}${G}) and < 2 ** ${(A+1)*8-1}${G}`;else v=`>= ${W}${G} and <= ${V}${G}`;throw new I1("value",v,Y)}q8(z,O,A)}function GQ(Y,W){if(typeof Y!=="number")throw new J8(W,"number",Y)}function BQ(Y,W,V){if(Math.floor(Y)!==Y)throw GQ(Y,V),new I1(V||"offset","an integer",Y);if(W<0)throw new X8;throw new I1(V||"offset",`>= ${V?1:0} and <= ${W}`,Y)}function R8(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(T8,""),Y.length<2)return"";while(Y.length%4!==0)Y=Y+"=";return Y}function z1(Y,W){W=W||1/0;let V,z=Y.length,O=null,A=[];for(let G=0;G<z;++G){if(V=Y.charCodeAt(G),V>55295&&V<57344){if(!O){if(V>56319){if((W-=3)>-1)A.push(239,191,189);continue}else if(G+1===z){if((W-=3)>-1)A.push(239,191,189);continue}O=V;continue}if(V<56320){if((W-=3)>-1)A.push(239,191,189);O=V;continue}V=(O-55296<<10|V-56320)+65536}else if(O){if((W-=3)>-1)A.push(239,191,189)}if(O=null,V<128){if((W-=1)<0)break;A.push(V)}else if(V<2048){if((W-=2)<0)break;A.push(V>>6|192,V&63|128)}else if(V<65536){if((W-=3)<0)break;A.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((W-=4)<0)break;A.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw Error("Invalid code point")}return A}function S8(Y){let W=[];for(let V=0;V<Y.length;++V)W.push(Y.charCodeAt(V)&255);return W}function E8(Y,W){let V,z,O,A=[];for(let G=0;G<Y.length;++G){if((W-=2)<0)break;V=Y.charCodeAt(G),z=V>>8,O=V%256,A.push(O),A.push(z)}return A}function OG(Y){return rH(R8(Y))}function $X(Y,W,V,z){let O;for(O=0;O<z;++O){if(O+V>=W.length||O>=Y.length)break;W[O+V]=Y[O]}return O}function VZ(Y,W){return Y instanceof W||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===W.name}function BZ(Y){return typeof BigInt>"u"?j8:Y}function j8(){throw Error("BigInt not supported")}function M1(Y){return()=>{throw Error(Y+" is not implemented for node:buffer browser polyfill")}}var WZ,XZ,H1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uZ,nY,rY,UG=50,jQ=2147483647,ZG=536870888,iH,eH,U8,Z8,Q8,X8,J8,I1,tY=4096,T8,P8,B8,N8,v8=(Y)=>{for(let W of Y)if(W.charCodeAt(0)>127)return!1;return!0},k8,x8;var lU=FZ(()=>{WZ=[],XZ=[];for(uZ=0,nY=H1.length;uZ<nY;++uZ)WZ[uZ]=H1[uZ],XZ[H1.charCodeAt(uZ)]=uZ;XZ[45]=62;XZ[95]=63;rY=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,iH=globalThis.btoa,eH=globalThis.atob,U8=globalThis.File,Z8=globalThis.Blob,Q8={MAX_LENGTH:jQ,MAX_STRING_LENGTH:ZG};X8=C1("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){if(Y)return`${Y} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),J8=C1("ERR_INVALID_ARG_TYPE",function(Y,W){return`The "${Y}" argument must be of type number. Received type ${typeof W}`},TypeError),I1=C1("ERR_OUT_OF_RANGE",function(Y,W,V){let z=`The value of "${Y}" is out of range.`,O=V;if(Number.isInteger(V)&&Math.abs(V)>4294967296)O=iY(String(V));else if(typeof V==="bigint"){if(O=String(V),V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))O=iY(O);O+="n"}return z+=` It must be ${W}. Received ${O}`,z},RangeError);Object.defineProperty(f0.prototype,"parent",{enumerable:!0,get:function(){if(!f0.isBuffer(this))return;return this.buffer}});Object.defineProperty(f0.prototype,"offset",{enumerable:!0,get:function(){if(!f0.isBuffer(this))return;return this.byteOffset}});f0.poolSize=8192;f0.from=function(Y,W,V){return QG(Y,W,V)};Object.setPrototypeOf(f0.prototype,Uint8Array.prototype);Object.setPrototypeOf(f0,Uint8Array);f0.alloc=function(Y,W,V){return Y8(Y,W,V)};f0.allocUnsafe=function(Y){return D1(Y)};f0.allocUnsafeSlow=function(Y){return D1(Y)};f0.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==f0.prototype};f0.compare=function(Y,W){if(VZ(Y,Uint8Array))Y=f0.from(Y,Y.offset,Y.byteLength);if(VZ(W,Uint8Array))W=f0.from(W,W.offset,W.byteLength);if(!f0.isBuffer(Y)||!f0.isBuffer(W))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===W)return 0;let V=Y.length,z=W.length;for(let O=0,A=Math.min(V,z);O<A;++O)if(Y[O]!==W[O]){V=Y[O],z=W[O];break}if(V<z)return-1;if(z<V)return 1;return 0};f0.isEncoding=function(Y){switch(String(Y).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}};f0.concat=function(Y,W){if(!Array.isArray(Y))throw TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return f0.alloc(0);let V;if(W===void 0){W=0;for(V=0;V<Y.length;++V)W+=Y[V].length}let z=f0.allocUnsafe(W),O=0;for(V=0;V<Y.length;++V){let A=Y[V];if(VZ(A,Uint8Array))if(O+A.length>z.length){if(!f0.isBuffer(A))A=f0.from(A);A.copy(z,O)}else Uint8Array.prototype.set.call(z,A,O);else if(!f0.isBuffer(A))throw TypeError('"list" argument must be an Array of Buffers');else A.copy(z,O);O+=A.length}return z};f0.byteLength=JG;f0.prototype._isBuffer=!0;f0.prototype.swap16=function(){let Y=this.length;if(Y%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let W=0;W<Y;W+=2)dZ(this,W,W+1);return this};f0.prototype.swap32=function(){let Y=this.length;if(Y%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let W=0;W<Y;W+=4)dZ(this,W,W+3),dZ(this,W+1,W+2);return this};f0.prototype.swap64=function(){let Y=this.length;if(Y%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let W=0;W<Y;W+=8)dZ(this,W,W+7),dZ(this,W+1,W+6),dZ(this,W+2,W+5),dZ(this,W+3,W+4);return this};f0.prototype.toString=function(){let Y=this.length;if(Y===0)return"";if(arguments.length===0)return GG(this,0,Y);return K8.apply(this,arguments)};f0.prototype.toLocaleString=f0.prototype.toString;f0.prototype.equals=function(Y){if(!f0.isBuffer(Y))throw TypeError("Argument must be a Buffer");if(this===Y)return!0;return f0.compare(this,Y)===0};f0.prototype.inspect=function(){let Y="",W=UG;if(Y=this.toString("hex",0,W).replace(/(.{2})/g,"$1 ").trim(),this.length>W)Y+=" ... ";return"<Buffer "+Y+">"};if(rY)f0.prototype[rY]=f0.prototype.inspect;f0.prototype.compare=function(Y,W,V,z,O){if(VZ(Y,Uint8Array))Y=f0.from(Y,Y.offset,Y.byteLength);if(!f0.isBuffer(Y))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(W===void 0)W=0;if(V===void 0)V=Y?Y.length:0;if(z===void 0)z=0;if(O===void 0)O=this.length;if(W<0||V>Y.length||z<0||O>this.length)throw RangeError("out of range index");if(z>=O&&W>=V)return 0;if(z>=O)return-1;if(W>=V)return 1;if(W>>>=0,V>>>=0,z>>>=0,O>>>=0,this===Y)return 0;let A=O-z,G=V-W,v=Math.min(A,G),j=this.slice(z,O),E=Y.slice(W,V);for(let q=0;q<v;++q)if(j[q]!==E[q]){A=j[q],G=E[q];break}if(A<G)return-1;if(G<A)return 1;return 0};f0.prototype.includes=function(Y,W,V){return this.indexOf(Y,W,V)!==-1};f0.prototype.indexOf=function(Y,W,V){return YG(this,Y,W,V,!0)};f0.prototype.lastIndexOf=function(Y,W,V){return YG(this,Y,W,V,!1)};f0.prototype.write=function(Y,W,V,z){if(W===void 0)z="utf8",V=this.length,W=0;else if(V===void 0&&typeof W==="string")z=W,V=this.length,W=0;else if(isFinite(W))if(W=W>>>0,isFinite(V)){if(V=V>>>0,z===void 0)z="utf8"}else z=V,V=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let O=this.length-W;if(V===void 0||V>O)V=O;if(Y.length>0&&(V<0||W<0)||W>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!z)z="utf8";let A=!1;for(;;)switch(z){case"hex":return $8(this,Y,W,V);case"utf8":case"utf-8":return H8(this,Y,W,V);case"ascii":case"latin1":case"binary":return I8(this,Y,W,V);case"base64":return O8(this,Y,W,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F8(this,Y,W,V);default:if(A)throw TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),A=!0}};f0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};f0.prototype.slice=function(Y,W){let V=this.length;if(Y=~~Y,W=W===void 0?V:~~W,Y<0){if(Y+=V,Y<0)Y=0}else if(Y>V)Y=V;if(W<0){if(W+=V,W<0)W=0}else if(W>V)W=V;if(W<Y)W=Y;let z=this.subarray(Y,W);return Object.setPrototypeOf(z,f0.prototype),z};f0.prototype.readUintLE=f0.prototype.readUIntLE=function(Y,W,V){if(Y=Y>>>0,W=W>>>0,!V)uU(Y,W,this.length);let z=this[Y],O=1,A=0;while(++A<W&&(O*=256))z+=this[Y+A]*O;return z};f0.prototype.readUintBE=f0.prototype.readUIntBE=function(Y,W,V){if(Y=Y>>>0,W=W>>>0,!V)uU(Y,W,this.length);let z=this[Y+--W],O=1;while(W>0&&(O*=256))z+=this[Y+--W]*O;return z};f0.prototype.readUint8=f0.prototype.readUInt8=function(Y,W){if(Y=Y>>>0,!W)uU(Y,1,this.length);return this[Y]};f0.prototype.readUint16LE=f0.prototype.readUInt16LE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,2,this.length);return this[Y]|this[Y+1]<<8};f0.prototype.readUint16BE=f0.prototype.readUInt16BE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,2,this.length);return this[Y]<<8|this[Y+1]};f0.prototype.readUint32LE=f0.prototype.readUInt32LE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216};f0.prototype.readUint32BE=f0.prototype.readUInt32BE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])};f0.prototype.readBigUInt64LE=BZ(function(Y){Y=Y>>>0,GQ(Y,"offset");let W=this[Y],V=this[Y+7];if(W===void 0||V===void 0)BQ(Y,this.length-8);let z=W+this[++Y]*256+this[++Y]*65536+this[++Y]*16777216,O=this[++Y]+this[++Y]*256+this[++Y]*65536+V*16777216;return BigInt(z)+(BigInt(O)<<BigInt(32))});f0.prototype.readBigUInt64BE=BZ(function(Y){Y=Y>>>0,GQ(Y,"offset");let W=this[Y],V=this[Y+7];if(W===void 0||V===void 0)BQ(Y,this.length-8);let z=W*16777216+this[++Y]*65536+this[++Y]*256+this[++Y],O=this[++Y]*16777216+this[++Y]*65536+this[++Y]*256+V;return(BigInt(z)<<BigInt(32))+BigInt(O)});f0.prototype.readIntLE=function(Y,W,V){if(Y=Y>>>0,W=W>>>0,!V)uU(Y,W,this.length);let z=this[Y],O=1,A=0;while(++A<W&&(O*=256))z+=this[Y+A]*O;if(O*=128,z>=O)z-=Math.pow(2,8*W);return z};f0.prototype.readIntBE=function(Y,W,V){if(Y=Y>>>0,W=W>>>0,!V)uU(Y,W,this.length);let z=W,O=1,A=this[Y+--z];while(z>0&&(O*=256))A+=this[Y+--z]*O;if(O*=128,A>=O)A-=Math.pow(2,8*W);return A};f0.prototype.readInt8=function(Y,W){if(Y=Y>>>0,!W)uU(Y,1,this.length);if(!(this[Y]&128))return this[Y];return(255-this[Y]+1)*-1};f0.prototype.readInt16LE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,2,this.length);let V=this[Y]|this[Y+1]<<8;return V&32768?V|4294901760:V};f0.prototype.readInt16BE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,2,this.length);let V=this[Y+1]|this[Y]<<8;return V&32768?V|4294901760:V};f0.prototype.readInt32LE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24};f0.prototype.readInt32BE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]};f0.prototype.readBigInt64LE=BZ(function(Y){Y=Y>>>0,GQ(Y,"offset");let W=this[Y],V=this[Y+7];if(W===void 0||V===void 0)BQ(Y,this.length-8);let z=this[Y+4]+this[Y+5]*256+this[Y+6]*65536+(V<<24);return(BigInt(z)<<BigInt(32))+BigInt(W+this[++Y]*256+this[++Y]*65536+this[++Y]*16777216)});f0.prototype.readBigInt64BE=BZ(function(Y){Y=Y>>>0,GQ(Y,"offset");let W=this[Y],V=this[Y+7];if(W===void 0||V===void 0)BQ(Y,this.length-8);let z=(W<<24)+this[++Y]*65536+this[++Y]*256+this[++Y];return(BigInt(z)<<BigInt(32))+BigInt(this[++Y]*16777216+this[++Y]*65536+this[++Y]*256+V)});f0.prototype.readFloatLE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return KX(this,Y,!0,23,4)};f0.prototype.readFloatBE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,4,this.length);return KX(this,Y,!1,23,4)};f0.prototype.readDoubleLE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,8,this.length);return KX(this,Y,!0,52,8)};f0.prototype.readDoubleBE=function(Y,W){if(Y=Y>>>0,!W)uU(Y,8,this.length);return KX(this,Y,!1,52,8)};f0.prototype.writeUintLE=f0.prototype.writeUIntLE=function(Y,W,V,z){if(Y=+Y,W=W>>>0,V=V>>>0,!z){let G=Math.pow(2,8*V)-1;sU(this,Y,W,V,G,0)}let O=1,A=0;this[W]=Y&255;while(++A<V&&(O*=256))this[W+A]=Y/O&255;return W+V};f0.prototype.writeUintBE=f0.prototype.writeUIntBE=function(Y,W,V,z){if(Y=+Y,W=W>>>0,V=V>>>0,!z){let G=Math.pow(2,8*V)-1;sU(this,Y,W,V,G,0)}let O=V-1,A=1;this[W+O]=Y&255;while(--O>=0&&(A*=256))this[W+O]=Y/A&255;return W+V};f0.prototype.writeUint8=f0.prototype.writeUInt8=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,1,255,0);return this[W]=Y&255,W+1};f0.prototype.writeUint16LE=f0.prototype.writeUInt16LE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,2,65535,0);return this[W]=Y&255,this[W+1]=Y>>>8,W+2};f0.prototype.writeUint16BE=f0.prototype.writeUInt16BE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,2,65535,0);return this[W]=Y>>>8,this[W+1]=Y&255,W+2};f0.prototype.writeUint32LE=f0.prototype.writeUInt32LE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,4,4294967295,0);return this[W+3]=Y>>>24,this[W+2]=Y>>>16,this[W+1]=Y>>>8,this[W]=Y&255,W+4};f0.prototype.writeUint32BE=f0.prototype.writeUInt32BE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,4,4294967295,0);return this[W]=Y>>>24,this[W+1]=Y>>>16,this[W+2]=Y>>>8,this[W+3]=Y&255,W+4};f0.prototype.writeBigUInt64LE=BZ(function(Y,W=0){return WG(this,Y,W,BigInt(0),BigInt("0xffffffffffffffff"))});f0.prototype.writeBigUInt64BE=BZ(function(Y,W=0){return VG(this,Y,W,BigInt(0),BigInt("0xffffffffffffffff"))});f0.prototype.writeIntLE=function(Y,W,V,z){if(Y=+Y,W=W>>>0,!z){let v=Math.pow(2,8*V-1);sU(this,Y,W,V,v-1,-v)}let O=0,A=1,G=0;this[W]=Y&255;while(++O<V&&(A*=256)){if(Y<0&&G===0&&this[W+O-1]!==0)G=1;this[W+O]=(Y/A>>0)-G&255}return W+V};f0.prototype.writeIntBE=function(Y,W,V,z){if(Y=+Y,W=W>>>0,!z){let v=Math.pow(2,8*V-1);sU(this,Y,W,V,v-1,-v)}let O=V-1,A=1,G=0;this[W+O]=Y&255;while(--O>=0&&(A*=256)){if(Y<0&&G===0&&this[W+O+1]!==0)G=1;this[W+O]=(Y/A>>0)-G&255}return W+V};f0.prototype.writeInt8=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,1,127,-128);if(Y<0)Y=255+Y+1;return this[W]=Y&255,W+1};f0.prototype.writeInt16LE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,2,32767,-32768);return this[W]=Y&255,this[W+1]=Y>>>8,W+2};f0.prototype.writeInt16BE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,2,32767,-32768);return this[W]=Y>>>8,this[W+1]=Y&255,W+2};f0.prototype.writeInt32LE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,4,2147483647,-2147483648);return this[W]=Y&255,this[W+1]=Y>>>8,this[W+2]=Y>>>16,this[W+3]=Y>>>24,W+4};f0.prototype.writeInt32BE=function(Y,W,V){if(Y=+Y,W=W>>>0,!V)sU(this,Y,W,4,2147483647,-2147483648);if(Y<0)Y=4294967295+Y+1;return this[W]=Y>>>24,this[W+1]=Y>>>16,this[W+2]=Y>>>8,this[W+3]=Y&255,W+4};f0.prototype.writeBigInt64LE=BZ(function(Y,W=0){return WG(this,Y,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});f0.prototype.writeBigInt64BE=BZ(function(Y,W=0){return VG(this,Y,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});f0.prototype.writeFloatLE=function(Y,W,V){return $G(this,Y,W,!0,V)};f0.prototype.writeFloatBE=function(Y,W,V){return $G(this,Y,W,!1,V)};f0.prototype.writeDoubleLE=function(Y,W,V){return HG(this,Y,W,!0,V)};f0.prototype.writeDoubleBE=function(Y,W,V){return HG(this,Y,W,!1,V)};f0.prototype.copy=function(Y,W,V,z){if(!f0.isBuffer(Y))throw TypeError("argument should be a Buffer");if(!V)V=0;if(!z&&z!==0)z=this.length;if(W>=Y.length)W=Y.length;if(!W)W=0;if(z>0&&z<V)z=V;if(z===V)return 0;if(Y.length===0||this.length===0)return 0;if(W<0)throw RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw RangeError("Index out of range");if(z<0)throw RangeError("sourceEnd out of bounds");if(z>this.length)z=this.length;if(Y.length-W<z-V)z=Y.length-W+V;let O=z-V;if(this===Y&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(W,V,z);else Uint8Array.prototype.set.call(Y,this.subarray(V,z),W);return O};f0.prototype.fill=function(Y,W,V,z){if(typeof Y==="string"){if(typeof W==="string")z=W,W=0,V=this.length;else if(typeof V==="string")z=V,V=this.length;if(z!==void 0&&typeof z!=="string")throw TypeError("encoding must be a string");if(typeof z==="string"&&!f0.isEncoding(z))throw TypeError("Unknown encoding: "+z);if(Y.length===1){let A=Y.charCodeAt(0);if(z==="utf8"&&A<128||z==="latin1")Y=A}}else if(typeof Y==="number")Y=Y&255;else if(typeof Y==="boolean")Y=Number(Y);if(W<0||this.length<W||this.length<V)throw RangeError("Out of range index");if(V<=W)return this;if(W=W>>>0,V=V===void 0?this.length:V>>>0,!Y)Y=0;let O;if(typeof Y==="number")for(O=W;O<V;++O)this[O]=Y;else{let A=f0.isBuffer(Y)?Y:f0.from(Y,z),G=A.length;if(G===0)throw TypeError('The value "'+Y+'" is invalid for argument "value"');for(O=0;O<V-W;++O)this[O+W]=A[O%G]}return this};T8=/[^+/0-9A-Za-z-_]/g;P8=function(){let Y=Array(256);for(let W=0;W<16;++W){let V=W*16;for(let z=0;z<16;++z)Y[V+z]="0123456789abcdef"[W]+"0123456789abcdef"[z]}return Y}();B8=M1("resolveObjectURL"),N8=M1("isUtf8"),k8=M1("transcode"),x8=f0});var vQ={};OZ(vQ,{setMaxListeners:()=>SG,once:()=>TG,listenerCount:()=>EG,init:()=>NZ,getMaxListeners:()=>jG,getEventListeners:()=>RG,default:()=>b8,captureRejectionSymbol:()=>LG,addAbortListener:()=>BG,EventEmitter:()=>NZ});function MG(Y,W){var{_events:V}=Y;if(W[0]??=Error("Unhandled error."),!V)throw W[0];var z=V[DG];if(z)for(var O of zG.call(z))O.apply(Y,W);var A=V.error;if(!A)throw W[0];for(var O of zG.call(A))O.apply(Y,W);return!0}function g8(Y,W,V,z){W.then(void 0,function(O){queueMicrotask(()=>f8(Y,O,V,z))})}function f8(Y,W,V,z){if(typeof Y[FG]==="function")Y[FG](W,V,...z);else try{Y[lZ]=!1,Y.emit("error",W)}finally{Y[lZ]=!0}}function AG(Y,W,V){V.warned=!0;let z=Error(`Possible EventEmitter memory leak detected. ${V.length} ${String(W)} listeners added to [${Y.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);z.name="MaxListenersExceededWarning",z.emitter=Y,z.type=W,z.count=V.length,console.warn(z)}function qG(Y,W,...V){this.removeListener(Y,W),W.apply(this,V)}function TG(Y,W,V){var z=V?.signal;if(PG(z,"options.signal"),z?.aborted)throw new A1(void 0,{cause:z?.reason});let{resolve:O,reject:A,promise:G}=$newPromiseCapability(Promise),v=(q)=>{if(Y.removeListener(W,j),z!=null)HX(z,"abort",E);A(q)},j=(...q)=>{if(typeof Y.removeListener==="function")Y.removeListener("error",v);if(z!=null)HX(z,"abort",E);O(q)};if(CG(Y,W,j,{once:!0}),W!=="error"&&typeof Y.once==="function")Y.once("error",v);function E(){HX(Y,W,j),HX(Y,"error",v),A(new A1(void 0,{cause:z?.reason}))}if(z!=null)CG(z,"abort",E,{once:!0});return G}function RG(Y,W){return Y.listeners(W)}function SG(Y,...W){T1(Y,"setMaxListeners",0);var V;if(W&&(V=W.length))for(let z=0;z<V;z++)W[z].setMaxListeners(Y);else mZ=Y}function EG(Y,W){return Y.listenerCount(W)}function HX(Y,W,V,z){if(typeof Y.removeListener==="function")Y.removeListener(W,V);else Y.removeEventListener(W,V,z)}function CG(Y,W,V,z){if(typeof Y.on==="function")if(z.once)Y.once(W,V);else Y.on(W,V);else Y.addEventListener(W,V,z)}function WQ(Y,W,V){let z=TypeError(`The "${Y}" argument must be of type ${W}. Received ${V}`);return z.code="ERR_INVALID_ARG_TYPE",z}function p8(Y,W,V){let z=RangeError(`The "${Y}" argument is out of range. It must be ${W}. Received ${V}`);return z.code="ERR_OUT_OF_RANGE",z}function PG(Y,W){if(Y!==void 0&&(Y===null||typeof Y!=="object"||!("aborted"in Y)))throw WQ(W,"AbortSignal",Y)}function T1(Y,W,V,z){if(typeof Y!=="number")throw WQ(W,"number",Y);if(V!=null&&Y<V||z!=null&&Y>z||(V!=null||z!=null)&&Number.isNaN(Y))throw p8(W,`${V!=null?`>= ${V}`:""}${V!=null&&z!=null?" && ":""}${z!=null?`<= ${z}`:""}`,Y)}function NQ(Y){if(typeof Y!=="function")throw TypeError("The listener must be a function")}function c8(Y,W){if(typeof Y!=="boolean")throw WQ(W,"boolean",Y)}function jG(Y){return Y?._maxListeners??mZ}function BG(Y,W){if(Y===void 0)throw WQ("signal","AbortSignal",Y);if(PG(Y,"signal"),typeof W!=="function")throw WQ("listener","function",W);let V;if(Y.aborted)queueMicrotask(()=>W());else Y.addEventListener("abort",W,{__proto__:null,once:!0}),V=()=>{Y.removeEventListener("abort",W)};return{__proto__:null,[Symbol.dispose](){V?.()}}}var q1,lZ,DG,_8,w8,FG,LG,zG,mZ=10,NZ=function(Y){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[lZ]=Y?.captureRejections?Boolean(Y?.captureRejections):EU[lZ])this.emit=h8},EU,y8=function(Y,...W){if(Y==="error")return MG(this,W);var{_events:V}=this;if(V===void 0)return!1;var z=V[Y];if(z===void 0)return!1;let O=z.length>1?z.slice():z;for(let A=0,{length:G}=O;A<G;A++){let v=O[A];switch(W.length){case 0:v.call(this);break;case 1:v.call(this,W[0]);break;case 2:v.call(this,W[0],W[1]);break;case 3:v.call(this,W[0],W[1],W[2]);break;default:v.apply(this,W);break}}return!0},h8=function(Y,...W){if(Y==="error")return MG(this,W);var{_events:V}=this;if(V===void 0)return!1;var z=V[Y];if(z===void 0)return!1;let O=z.length>1?z.slice():z;for(let A=0,{length:G}=O;A<G;A++){let v=O[A],j;switch(W.length){case 0:j=v.call(this);break;case 1:j=v.call(this,W[0]);break;case 2:j=v.call(this,W[0],W[1]);break;case 3:j=v.call(this,W[0],W[1],W[2]);break;default:j=v.apply(this,W);break}if(j!==void 0&&typeof j?.then==="function"&&j.then===Promise.prototype.then)g8(this,j,Y,W)}return!0},A1,b8;var kQ=FZ(()=>{q1=Symbol.for,lZ=Symbol("kCapture"),DG=q1("events.errorMonitor"),_8=Symbol("events.maxEventTargetListeners"),w8=Symbol("events.maxEventTargetListenersWarned"),FG=q1("nodejs.rejection"),LG=q1("nodejs.rejection"),zG=Array.prototype.slice,EU=NZ.prototype={};EU._events=void 0;EU._eventsCount=0;EU._maxListeners=void 0;EU.setMaxListeners=function(Y){return T1(Y,"setMaxListeners",0),this._maxListeners=Y,this};EU.constructor=NZ;EU.getMaxListeners=function(){return this?._maxListeners??mZ};EU.emit=y8;EU.addListener=function(Y,W){NQ(W);var V=this._events;if(!V)V=this._events={__proto__:null},this._eventsCount=0;else if(V.newListener)this.emit("newListener",Y,W.listener??W);var z=V[Y];if(!z)V[Y]=[W],this._eventsCount++;else{z.push(W);var O=this._maxListeners??mZ;if(O>0&&z.length>O&&!z.warned)AG(this,Y,z)}return this};EU.on=EU.addListener;EU.prependListener=function(Y,W){NQ(W);var V=this._events;if(!V)V=this._events={__proto__:null},this._eventsCount=0;else if(V.newListener)this.emit("newListener",Y,W.listener??W);var z=V[Y];if(!z)V[Y]=[W],this._eventsCount++;else{z.unshift(W);var O=this._maxListeners??mZ;if(O>0&&z.length>O&&!z.warned)AG(this,Y,z)}return this};EU.once=function(Y,W){NQ(W);let V=qG.bind(this,Y,W);return V.listener=W,this.addListener(Y,V),this};EU.prependOnceListener=function(Y,W){NQ(W);let V=qG.bind(this,Y,W);return V.listener=W,this.prependListener(Y,V),this};EU.removeListener=function(Y,W){NQ(W);var{_events:V}=this;if(!V)return this;var z=V[Y];if(!z)return this;var O=z.length;let A=-1;for(let G=O-1;G>=0;G--)if(z[G]===W||z[G].listener===W){A=G;break}if(A<0)return this;if(A===0)z.shift();else z.splice(A,1);if(z.length===0)delete V[Y],this._eventsCount--;return this};EU.off=EU.removeListener;EU.removeAllListeners=function(Y){var{_events:W}=this;if(Y&&W){if(W[Y])delete W[Y],this._eventsCount--}else this._events={__proto__:null};return this};EU.listeners=function(Y){var{_events:W}=this;if(!W)return[];var V=W[Y];if(!V)return[];return V.map((z)=>z.listener??z)};EU.rawListeners=function(Y){var{_events:W}=this;if(!W)return[];var V=W[Y];if(!V)return[];return V.slice()};EU.listenerCount=function(Y){var{_events:W}=this;if(!W)return 0;return W[Y]?.length??0};EU.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};EU[lZ]=!1;A1=class A1 extends Error{constructor(Y="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw WQ("options","Object",W);super(Y,W);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(NZ,{captureRejections:{get(){return EU[lZ]},set(Y){c8(Y,"EventEmitter.captureRejections"),EU[lZ]=Y},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return mZ},set:(Y)=>{T1(Y,"defaultMaxListeners",0),mZ=Y}},kMaxEventTargetListeners:{value:_8,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:w8,enumerable:!1,configurable:!1,writable:!1}});Object.assign(NZ,{once:TG,getEventListeners:RG,getMaxListeners:jG,setMaxListeners:SG,EventEmitter:NZ,usingDomains:!1,captureRejectionSymbol:LG,errorMonitor:DG,addAbortListener:BG,init:NZ,listenerCount:EG});b8=NZ});var P1=MZ((cz,fG)=>{var CU=(Y,W)=>()=>(W||Y((W={exports:{}}).exports,W),W.exports),BU=CU((Y,W)=>{class V extends Error{constructor(z){if(!Array.isArray(z))throw TypeError(`Expected input to be an Array, got ${typeof z}`);let O="";for(let A=0;A<z.length;A++)O+=` ${z[A].stack}
|
|
74
|
-
`;super(O);this.name="AggregateError",this.errors=z}}W.exports={AggregateError:V,ArrayIsArray(z){return Array.isArray(z)},ArrayPrototypeIncludes(z,O){return z.includes(O)},ArrayPrototypeIndexOf(z,O){return z.indexOf(O)},ArrayPrototypeJoin(z,O){return z.join(O)},ArrayPrototypeMap(z,O){return z.map(O)},ArrayPrototypePop(z,O){return z.pop(O)},ArrayPrototypePush(z,O){return z.push(O)},ArrayPrototypeSlice(z,O,A){return z.slice(O,A)},Error,FunctionPrototypeCall(z,O,...A){return z.call(O,...A)},FunctionPrototypeSymbolHasInstance(z,O){return Function.prototype[Symbol.hasInstance].call(z,O)},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(z,O){return Object.defineProperties(z,O)},ObjectDefineProperty(z,O,A){return Object.defineProperty(z,O,A)},ObjectGetOwnPropertyDescriptor(z,O){return Object.getOwnPropertyDescriptor(z,O)},ObjectKeys(z){return Object.keys(z)},ObjectSetPrototypeOf(z,O){return Object.setPrototypeOf(z,O)},Promise,PromisePrototypeCatch(z,O){return z.catch(O)},PromisePrototypeThen(z,O,A){return z.then(O,A)},PromiseReject(z){return Promise.reject(z)},PromiseResolve(z){return Promise.resolve(z)},ReflectApply:Reflect.apply,RegExpPrototypeTest(z,O){return z.test(O)},SafeSet:Set,String,StringPrototypeSlice(z,O,A){return z.slice(O,A)},StringPrototypeToLowerCase(z){return z.toLowerCase()},StringPrototypeToUpperCase(z){return z.toUpperCase()},StringPrototypeTrim(z){return z.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(z,O,A){return z.set(O,A)},Boolean,Uint8Array}}),NG=CU((Y,W)=>{W.exports={format(V,...z){return V.replace(/%([sdifj])/g,function(...[O,A]){let G=z.shift();if(A==="f")return G.toFixed(6);else if(A==="j")return JSON.stringify(G);else if(A==="s"&&typeof G==="object")return`${G.constructor!==Object?G.constructor.name:""} {}`.trim();else return G.toString()})},inspect(V){switch(typeof V){case"string":if(V.includes("'")){if(!V.includes('"'))return`"${V}"`;else if(!V.includes("`")&&!V.includes("${"))return`\`${V}\``}return`'${V}'`;case"number":if(isNaN(V))return"NaN";else if(Object.is(V,-0))return String(V);return V;case"bigint":return`${String(V)}n`;case"boolean":case"undefined":return String(V);case"object":return"{}"}}}}),oU=CU((Y,W)=>{var{format:V,inspect:z}=NG(),{AggregateError:O}=BU(),A=globalThis.AggregateError||O,G=Symbol("kIsNodeError"),v=["string","function","number","object","Function","Object","boolean","bigint","symbol"],j=/^([A-Z][a-z0-9]*)+$/,E={};function q(k,x){if(!k)throw new E.ERR_INTERNAL_ASSERTION(x)}function C(k){let x="",f=k.length,h=k[0]==="-"?1:0;for(;f>=h+4;f-=3)x=`_${k.slice(f-3,f)}${x}`;return`${k.slice(0,f)}${x}`}function M(k,x,f){if(typeof x==="function")return q(x.length<=f.length,`Code: ${k}; The provided arguments length (${f.length}) does not match the required ones (${x.length}).`),x(...f);let h=(x.match(/%[dfijoOs]/g)||[]).length;if(q(h===f.length,`Code: ${k}; The provided arguments length (${f.length}) does not match the required ones (${h}).`),f.length===0)return x;return V(x,...f)}function F(k,x,f){if(!f)f=Error;class h extends f{constructor(...c){super(M(k,x,c))}toString(){return`${this.name} [${k}]: ${this.message}`}}Object.defineProperties(h.prototype,{name:{value:f.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${k}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),h.prototype.code=k,h.prototype[G]=!0,E[k]=h}function D(k){let x="__node_internal_"+k.name;return Object.defineProperty(k,"name",{value:x}),k}function S(k,x){if(k&&x&&k!==x){if(Array.isArray(x.errors))return x.errors.push(k),x;let f=new A([x,k],x.message);return f.code=x.code,f}return k||x}class P extends Error{constructor(k="The operation was aborted",x=void 0){if(x!==void 0&&typeof x!=="object")throw new E.ERR_INVALID_ARG_TYPE("options","Object",x);super(k,x);this.code="ABORT_ERR",this.name="AbortError"}}F("ERR_ASSERTION","%s",Error),F("ERR_INVALID_ARG_TYPE",(k,x,f)=>{if(q(typeof k==="string","'name' must be a string"),!Array.isArray(x))x=[x];let h="The ";if(k.endsWith(" argument"))h+=`${k} `;else h+=`"${k}" ${k.includes(".")?"property":"argument"} `;h+="must be ";let c=[],m=[],g=[];for(let J0 of x)if(q(typeof J0==="string","All expected entries have to be of type string"),v.includes(J0))c.push(J0.toLowerCase());else if(j.test(J0))m.push(J0);else q(J0!=="object",'The value "object" should be written as "Object"'),g.push(J0);if(m.length>0){let J0=c.indexOf("object");if(J0!==-1)c.splice(c,J0,1),m.push("Object")}if(c.length>0){switch(c.length){case 1:h+=`of type ${c[0]}`;break;case 2:h+=`one of type ${c[0]} or ${c[1]}`;break;default:{let J0=c.pop();h+=`one of type ${c.join(", ")}, or ${J0}`}}if(m.length>0||g.length>0)h+=" or "}if(m.length>0){switch(m.length){case 1:h+=`an instance of ${m[0]}`;break;case 2:h+=`an instance of ${m[0]} or ${m[1]}`;break;default:{let J0=m.pop();h+=`an instance of ${m.join(", ")}, or ${J0}`}}if(g.length>0)h+=" or "}switch(g.length){case 0:break;case 1:if(g[0].toLowerCase()!==g[0])h+="an ";h+=`${g[0]}`;break;case 2:h+=`one of ${g[0]} or ${g[1]}`;break;default:{let J0=g.pop();h+=`one of ${g.join(", ")}, or ${J0}`}}if(f==null)h+=`. Received ${f}`;else if(typeof f==="function"&&f.name)h+=`. Received function ${f.name}`;else if(typeof f==="object"){var Q0;if((Q0=f.constructor)!==null&&Q0!==void 0&&Q0.name)h+=`. Received an instance of ${f.constructor.name}`;else{let J0=z(f,{depth:-1});h+=`. Received ${J0}`}}else{let J0=z(f,{colors:!1});if(J0.length>25)J0=`${J0.slice(0,25)}...`;h+=`. Received type ${typeof f} (${J0})`}return h},TypeError),F("ERR_INVALID_ARG_VALUE",(k,x,f="is invalid")=>{let h=z(x);if(h.length>128)h=h.slice(0,128)+"...";return`The ${k.includes(".")?"property":"argument"} '${k}' ${f}. Received ${h}`},TypeError),F("ERR_INVALID_RETURN_VALUE",(k,x,f)=>{var h;let c=f!==null&&f!==void 0&&(h=f.constructor)!==null&&h!==void 0&&h.name?`instance of ${f.constructor.name}`:`type ${typeof f}`;return`Expected ${k} to be returned from the "${x}" function but got ${c}.`},TypeError),F("ERR_MISSING_ARGS",(...k)=>{q(k.length>0,"At least one arg needs to be specified");let x,f=k.length;switch(k=(Array.isArray(k)?k:[k]).map((h)=>`"${h}"`).join(" or "),f){case 1:x+=`The ${k[0]} argument`;break;case 2:x+=`The ${k[0]} and ${k[1]} arguments`;break;default:{let h=k.pop();x+=`The ${k.join(", ")}, and ${h} arguments`}break}return`${x} must be specified`},TypeError),F("ERR_OUT_OF_RANGE",(k,x,f)=>{q(x,'Missing "range" argument');let h;if(Number.isInteger(f)&&Math.abs(f)>4294967296)h=C(String(f));else if(typeof f==="bigint"){h=String(f);let c=BigInt(2)**BigInt(32);if(f>c||f<-c)h=C(h);h+="n"}else h=z(f);return`The value of "${k}" is out of range. It must be ${x}. Received ${h}`},RangeError),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),F("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),F("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),F("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),F("ERR_STREAM_WRITE_AFTER_END","write after end",Error),F("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),W.exports={AbortError:P,aggregateTwoErrors:D(S),hideStackFrames:D,codes:E}}),u8=CU((Y,W)=>{Object.defineProperty(Y,"__esModule",{value:!0});var V=new WeakMap,z=new WeakMap;function O(r){let O0=V.get(r);return console.assert(O0!=null,"'this' is expected an Event object, but got",r),O0}function A(r){if(r.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener);return}if(!r.event.cancelable)return;if(r.canceled=!0,typeof r.event.preventDefault==="function")r.event.preventDefault()}function G(r,O0){V.set(this,{eventTarget:r,event:O0,eventPhase:2,currentTarget:r,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:O0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let U=Object.keys(O0);for(let X=0;X<U.length;++X){let $=U[X];if(!($ in this))Object.defineProperty(this,$,v($))}}if(G.prototype={get type(){return O(this).event.type},get target(){return O(this).eventTarget},get currentTarget(){return O(this).currentTarget},composedPath(){let r=O(this).currentTarget;if(r==null)return[];return[r]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return O(this).eventPhase},stopPropagation(){let r=O(this);if(r.stopped=!0,typeof r.event.stopPropagation==="function")r.event.stopPropagation()},stopImmediatePropagation(){let r=O(this);if(r.stopped=!0,r.immediateStopped=!0,typeof r.event.stopImmediatePropagation==="function")r.event.stopImmediatePropagation()},get bubbles(){return Boolean(O(this).event.bubbles)},get cancelable(){return Boolean(O(this).event.cancelable)},preventDefault(){A(O(this))},get defaultPrevented(){return O(this).canceled},get composed(){return Boolean(O(this).event.composed)},get timeStamp(){return O(this).timeStamp},get srcElement(){return O(this).eventTarget},get cancelBubble(){return O(this).stopped},set cancelBubble(r){if(!r)return;let O0=O(this);if(O0.stopped=!0,typeof O0.event.cancelBubble==="boolean")O0.event.cancelBubble=!0},get returnValue(){return!O(this).canceled},set returnValue(r){if(!r)A(O(this))},initEvent(){}},Object.defineProperty(G.prototype,"constructor",{value:G,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(G.prototype,window.Event.prototype),z.set(window.Event.prototype,G);function v(r){return{get(){return O(this).event[r]},set(O0){O(this).event[r]=O0},configurable:!0,enumerable:!0}}function j(r){return{value(){let O0=O(this).event;return O0[r].apply(O0,arguments)},configurable:!0,enumerable:!0}}function E(r,O0){let U=Object.keys(O0);if(U.length===0)return r;function X($,Q){r.call(this,$,Q)}X.prototype=Object.create(r.prototype,{constructor:{value:X,configurable:!0,writable:!0}});for(let $=0;$<U.length;++$){let Q=U[$];if(!(Q in r.prototype)){let K=typeof Object.getOwnPropertyDescriptor(O0,Q).value==="function";Object.defineProperty(X.prototype,Q,K?j(Q):v(Q))}}return X}function q(r){if(r==null||r===Object.prototype)return G;let O0=z.get(r);if(O0==null)O0=E(q(Object.getPrototypeOf(r)),r),z.set(r,O0);return O0}function C(r,O0){return new(q(Object.getPrototypeOf(O0)))(r,O0)}function M(r){return O(r).immediateStopped}function F(r,O0){O(r).eventPhase=O0}function D(r,O0){O(r).currentTarget=O0}function S(r,O0){O(r).passiveListener=O0}var P=new WeakMap,k=1,x=2,f=3;function h(r){return r!==null&&typeof r==="object"}function c(r){let O0=P.get(r);if(O0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return O0}function m(r){return{get(){let O0=c(this).get(r);while(O0!=null){if(O0.listenerType===f)return O0.listener;O0=O0.next}return null},set(O0){if(typeof O0!=="function"&&!h(O0))O0=null;let U=c(this),X=null,$=U.get(r);while($!=null){if($.listenerType===f)if(X!==null)X.next=$.next;else if($.next!==null)U.set(r,$.next);else U.delete(r);else X=$;$=$.next}if(O0!==null){let Q={listener:O0,listenerType:f,passive:!1,once:!1,next:null};if(X===null)U.set(r,Q);else X.next=Q}},configurable:!0,enumerable:!0}}function g(r,O0){Object.defineProperty(r,`on${O0}`,m(O0))}function Q0(r){function O0(){J0.call(this)}O0.prototype=Object.create(J0.prototype,{constructor:{value:O0,configurable:!0,writable:!0}});for(let U=0;U<r.length;++U)g(O0.prototype,r[U]);return O0}function J0(){if(this instanceof J0){P.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Q0(arguments[0]);if(arguments.length>0){let r=Array(arguments.length);for(let O0=0;O0<arguments.length;++O0)r[O0]=arguments[O0];return Q0(r)}throw TypeError("Cannot call a class as a function")}if(J0.prototype={addEventListener(r,O0,U){if(O0==null)return;if(typeof O0!=="function"&&!h(O0))throw TypeError("'listener' should be a function or an object.");let X=c(this),$=h(U),Q=($?Boolean(U.capture):Boolean(U))?k:x,K={listener:O0,listenerType:Q,passive:$&&Boolean(U.passive),once:$&&Boolean(U.once),next:null},L=X.get(r);if(L===void 0){X.set(r,K);return}let T=null;while(L!=null){if(L.listener===O0&&L.listenerType===Q)return;T=L,L=L.next}T.next=K},removeEventListener(r,O0,U){if(O0==null)return;let X=c(this),$=(h(U)?Boolean(U.capture):Boolean(U))?k:x,Q=null,K=X.get(r);while(K!=null){if(K.listener===O0&&K.listenerType===$){if(Q!==null)Q.next=K.next;else if(K.next!==null)X.set(r,K.next);else X.delete(r);return}Q=K,K=K.next}},dispatchEvent(r){if(r==null||typeof r.type!=="string")throw TypeError('"event.type" should be a string.');let O0=c(this),U=r.type,X=O0.get(U);if(X==null)return!0;let $=C(this,r),Q=null;while(X!=null){if(X.once)if(Q!==null)Q.next=X.next;else if(X.next!==null)O0.set(U,X.next);else O0.delete(U);else Q=X;if(S($,X.passive?X.listener:null),typeof X.listener==="function")try{X.listener.call(this,$)}catch(K){if(typeof console<"u"&&typeof console.error==="function")console.error(K)}else if(X.listenerType!==f&&typeof X.listener.handleEvent==="function")X.listener.handleEvent($);if(M($))break;X=X.next}return S($,null),F($,0),D($,null),!$.defaultPrevented}},Object.defineProperty(J0.prototype,"constructor",{value:J0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(J0.prototype,window.EventTarget.prototype);Y.defineEventAttribute=g,Y.EventTarget=J0,Y.default=J0,W.exports=J0,W.exports.EventTarget=W.exports.default=J0,W.exports.defineEventAttribute=g}),xQ=CU((Y,W)=>{Object.defineProperty(Y,"__esModule",{value:!0});var V=u8();class z extends V.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let q=G.get(this);if(typeof q!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return q}}V.defineEventAttribute(z.prototype,"abort");function O(){let q=Object.create(z.prototype);return V.EventTarget.call(q),G.set(q,!1),q}function A(q){if(G.get(q)!==!1)return;G.set(q,!0),q.dispatchEvent({type:"abort"})}var G=new WeakMap;if(Object.defineProperties(z.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(z.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class v{constructor(){j.set(this,O())}get signal(){return E(this)}abort(){A(E(this))}}var j=new WeakMap;function E(q){let C=j.get(q);if(C==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${q===null?"null":typeof q}`);return C}if(Object.defineProperties(v.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(v.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Y.AbortController=v,Y.AbortSignal=z,Y.default=v,W.exports=v,W.exports.AbortController=W.exports.default=v,W.exports.AbortSignal=z}),rU=CU((Y,W)=>{var V=(lU(),WU(dU)),{format:z,inspect:O}=NG(),{codes:{ERR_INVALID_ARG_TYPE:A}}=oU(),{kResistStopPropagation:G,AggregateError:v,SymbolDispose:j}=BU(),E=globalThis.AbortSignal||xQ().AbortSignal,q=globalThis.AbortController||xQ().AbortController,C=Object.getPrototypeOf(async function(){}).constructor,M=globalThis.Blob||V.Blob,F=typeof M<"u"?function(P){return P instanceof M}:function(P){return!1},D=(P,k)=>{if(P!==void 0&&(P===null||typeof P!=="object"||!("aborted"in P)))throw new A(k,"AbortSignal",P)},S=(P,k)=>{if(typeof P!=="function")throw new A(k,"Function",P)};W.exports={AggregateError:v,kEmptyObject:Object.freeze({}),once(P){let k=!1;return function(...x){if(k)return;k=!0,P.apply(this,x)}},createDeferredPromise:function(){let P,k;return{promise:new Promise((x,f)=>{P=x,k=f}),resolve:P,reject:k}},promisify(P){return new Promise((k,x)=>{P((f,...h)=>{if(f)return x(f);return k(...h)})})},debuglog(){return function(){}},format:z,inspect:O,types:{isAsyncFunction(P){return P instanceof C},isArrayBufferView(P){return ArrayBuffer.isView(P)}},isBlob:F,deprecate(P,k){return P},addAbortListener:(kQ(),WU(vQ)).addAbortListener||function(P,k){if(P===void 0)throw new A("signal","AbortSignal",P);D(P,"signal"),S(k,"listener");let x;if(P.aborted)queueMicrotask(()=>k());else P.addEventListener("abort",k,{__proto__:null,once:!0,[G]:!0}),x=()=>{P.removeEventListener("abort",k)};return{__proto__:null,[j](){var f;(f=x)===null||f===void 0||f()}}},AbortSignalAny:E.any||function(P){if(P.length===1)return P[0];let k=new q,x=()=>k.abort();return P.forEach((f)=>{D(f,"signals"),f.addEventListener("abort",x,{once:!0})}),k.signal.addEventListener("abort",()=>{P.forEach((f)=>f.removeEventListener("abort",x))},{once:!0}),k.signal}},W.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),_Q=CU((Y,W)=>{var{ArrayIsArray:V,ArrayPrototypeIncludes:z,ArrayPrototypeJoin:O,ArrayPrototypeMap:A,NumberIsInteger:G,NumberIsNaN:v,NumberMAX_SAFE_INTEGER:j,NumberMIN_SAFE_INTEGER:E,NumberParseInt:q,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:M,String:F,StringPrototypeToUpperCase:D,StringPrototypeTrim:S}=BU(),{hideStackFrames:P,codes:{ERR_SOCKET_BAD_PORT:k,ERR_INVALID_ARG_TYPE:x,ERR_INVALID_ARG_VALUE:f,ERR_OUT_OF_RANGE:h,ERR_UNKNOWN_SIGNAL:c}}=oU(),{normalizeEncoding:m}=rU(),{isAsyncFunction:g,isArrayBufferView:Q0}=rU().types,J0={};function r(e){return e===(e|0)}function O0(e){return e===e>>>0}var U=/^[0-7]+$/,X="must be a 32-bit unsigned integer or an octal string";function $(e,H0,p0){if(typeof e>"u")e=p0;if(typeof e==="string"){if(M(U,e)===null)throw new f(H0,e,X);e=q(e,8)}return L(e,H0),e}var Q=P((e,H0,p0=E,F0=j)=>{if(typeof e!=="number")throw new x(H0,"number",e);if(!G(e))throw new h(H0,"an integer",e);if(e<p0||e>F0)throw new h(H0,`>= ${p0} && <= ${F0}`,e)}),K=P((e,H0,p0=-2147483648,F0=2147483647)=>{if(typeof e!=="number")throw new x(H0,"number",e);if(!G(e))throw new h(H0,"an integer",e);if(e<p0||e>F0)throw new h(H0,`>= ${p0} && <= ${F0}`,e)}),L=P((e,H0,p0=!1)=>{if(typeof e!=="number")throw new x(H0,"number",e);if(!G(e))throw new h(H0,"an integer",e);let F0=p0?1:0,D0=4294967295;if(e<F0||e>D0)throw new h(H0,`>= ${F0} && <= ${D0}`,e)});function T(e,H0){if(typeof e!=="string")throw new x(H0,"string",e)}function I(e,H0,p0=void 0,F0){if(typeof e!=="number")throw new x(H0,"number",e);if(p0!=null&&e<p0||F0!=null&&e>F0||(p0!=null||F0!=null)&&v(e))throw new h(H0,`${p0!=null?`>= ${p0}`:""}${p0!=null&&F0!=null?" && ":""}${F0!=null?`<= ${F0}`:""}`,e)}var Z=P((e,H0,p0)=>{if(!z(p0,e)){let F0="must be one of: "+O(A(p0,(D0)=>typeof D0==="string"?`'${D0}'`:F(D0)),", ");throw new f(H0,e,F0)}});function H(e,H0){if(typeof e!=="boolean")throw new x(H0,"boolean",e)}function N(e,H0,p0){return e==null||!C(e,H0)?p0:e[H0]}var B=P((e,H0,p0=null)=>{let F0=N(p0,"allowArray",!1),D0=N(p0,"allowFunction",!1);if(!N(p0,"nullable",!1)&&e===null||!F0&&V(e)||typeof e!=="object"&&(!D0||typeof e!=="function"))throw new x(H0,"Object",e)}),w=P((e,H0)=>{if(e!=null&&typeof e!=="object"&&typeof e!=="function")throw new x(H0,"a dictionary",e)}),u=P((e,H0,p0=0)=>{if(!V(e))throw new x(H0,"Array",e);if(e.length<p0){let F0=`must be longer than ${p0}`;throw new f(H0,e,F0)}});function s(e,H0){u(e,H0);for(let p0=0;p0<e.length;p0++)T(e[p0],`${H0}[${p0}]`)}function Y0(e,H0){u(e,H0);for(let p0=0;p0<e.length;p0++)H(e[p0],`${H0}[${p0}]`)}function M0(e,H0){u(e,H0);for(let p0=0;p0<e.length;p0++){let F0=e[p0],D0=`${H0}[${p0}]`;if(F0==null)throw new x(D0,"AbortSignal",F0);G0(F0,D0)}}function n(e,H0="signal"){if(T(e,H0),J0[e]===void 0){if(J0[D(e)]!==void 0)throw new c(e+" (signals must use all capital letters)");throw new c(e)}}var b=P((e,H0="buffer")=>{if(!Q0(e))throw new x(H0,["Buffer","TypedArray","DataView"],e)});function a(e,H0){let p0=m(H0),F0=e.length;if(p0==="hex"&&F0%2!==0)throw new f("encoding",H0,`is invalid for data of length ${F0}`)}function l(e,H0="Port",p0=!0){if(typeof e!=="number"&&typeof e!=="string"||typeof e==="string"&&S(e).length===0||+e!==+e>>>0||e>65535||e===0&&!p0)throw new k(H0,e,p0);return e|0}var G0=P((e,H0)=>{if(e!==void 0&&(e===null||typeof e!=="object"||!("aborted"in e)))throw new x(H0,"AbortSignal",e)}),A0=P((e,H0)=>{if(typeof e!=="function")throw new x(H0,"Function",e)}),o=P((e,H0)=>{if(typeof e!=="function"||g(e))throw new x(H0,"Function",e)}),t=P((e,H0)=>{if(e!==void 0)throw new x(H0,"undefined",e)});function V0(e,H0,p0){if(!z(p0,e))throw new x(H0,`('${O(p0,"|")}')`,e)}var z0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U0(e,H0){if(typeof e>"u"||!M(z0,e))throw new f(H0,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function x0(e){if(typeof e==="string")return U0(e,"hints"),e;else if(V(e)){let H0=e.length,p0="";if(H0===0)return p0;for(let F0=0;F0<H0;F0++){let D0=e[F0];if(U0(D0,"hints"),p0+=D0,F0!==H0-1)p0+=", "}return p0}throw new f("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}W.exports={isInt32:r,isUint32:O0,parseFileMode:$,validateArray:u,validateStringArray:s,validateBooleanArray:Y0,validateAbortSignalArray:M0,validateBoolean:H,validateBuffer:b,validateDictionary:w,validateEncoding:a,validateFunction:A0,validateInt32:K,validateInteger:Q,validateNumber:I,validateObject:B,validateOneOf:Z,validatePlainFunction:o,validatePort:l,validateSignalName:n,validateString:T,validateUint32:L,validateUndefined:t,validateUnion:V0,validateAbortSignal:G0,validateLinkHeaderValue:x0}}),oZ=CU((Y,W)=>{W.exports=globalThis.process}),AZ=CU((Y,W)=>{var{SymbolAsyncIterator:V,SymbolIterator:z,SymbolFor:O}=BU(),A=O("nodejs.stream.destroyed"),G=O("nodejs.stream.errored"),v=O("nodejs.stream.readable"),j=O("nodejs.stream.writable"),E=O("nodejs.stream.disturbed"),q=O("nodejs.webstream.isClosedPromise"),C=O("nodejs.webstream.controllerErrorFunction");function M(N,B=!1){var w;return!!(N&&typeof N.pipe==="function"&&typeof N.on==="function"&&(!B||typeof N.pause==="function"&&typeof N.resume==="function")&&(!N._writableState||((w=N._readableState)===null||w===void 0?void 0:w.readable)!==!1)&&(!N._writableState||N._readableState))}function F(N){var B;return!!(N&&typeof N.write==="function"&&typeof N.on==="function"&&(!N._readableState||((B=N._writableState)===null||B===void 0?void 0:B.writable)!==!1))}function D(N){return!!(N&&typeof N.pipe==="function"&&N._readableState&&typeof N.on==="function"&&typeof N.write==="function")}function S(N){return N&&(N._readableState||N._writableState||typeof N.write==="function"&&typeof N.on==="function"||typeof N.pipe==="function"&&typeof N.on==="function")}function P(N){return!!(N&&!S(N)&&typeof N.pipeThrough==="function"&&typeof N.getReader==="function"&&typeof N.cancel==="function")}function k(N){return!!(N&&!S(N)&&typeof N.getWriter==="function"&&typeof N.abort==="function")}function x(N){return!!(N&&!S(N)&&typeof N.readable==="object"&&typeof N.writable==="object")}function f(N){return P(N)||k(N)||x(N)}function h(N,B){if(N==null)return!1;if(B===!0)return typeof N[V]==="function";if(B===!1)return typeof N[z]==="function";return typeof N[V]==="function"||typeof N[z]==="function"}function c(N){if(!S(N))return null;let{_writableState:B,_readableState:w}=N,u=B||w;return!!(N.destroyed||N[A]||u!==null&&u!==void 0&&u.destroyed)}function m(N){if(!F(N))return null;if(N.writableEnded===!0)return!0;let B=N._writableState;if(B!==null&&B!==void 0&&B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.ended)!=="boolean")return null;return B.ended}function g(N,B){if(!F(N))return null;if(N.writableFinished===!0)return!0;let w=N._writableState;if(w!==null&&w!==void 0&&w.errored)return!1;if(typeof(w===null||w===void 0?void 0:w.finished)!=="boolean")return null;return!!(w.finished||B===!1&&w.ended===!0&&w.length===0)}function Q0(N){if(!M(N))return null;if(N.readableEnded===!0)return!0;let B=N._readableState;if(!B||B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.ended)!=="boolean")return null;return B.ended}function J0(N,B){if(!M(N))return null;let w=N._readableState;if(w!==null&&w!==void 0&&w.errored)return!1;if(typeof(w===null||w===void 0?void 0:w.endEmitted)!=="boolean")return null;return!!(w.endEmitted||B===!1&&w.ended===!0&&w.length===0)}function r(N){if(N&&N[v]!=null)return N[v];if(typeof(N===null||N===void 0?void 0:N.readable)!=="boolean")return null;if(c(N))return!1;return M(N)&&N.readable&&!J0(N)}function O0(N){if(N&&N[j]!=null)return N[j];if(typeof(N===null||N===void 0?void 0:N.writable)!=="boolean")return null;if(c(N))return!1;return F(N)&&N.writable&&!m(N)}function U(N,B){if(!S(N))return null;if(c(N))return!0;if((B===null||B===void 0?void 0:B.readable)!==!1&&r(N))return!1;if((B===null||B===void 0?void 0:B.writable)!==!1&&O0(N))return!1;return!0}function X(N){var B,w;if(!S(N))return null;if(N.writableErrored)return N.writableErrored;return(B=(w=N._writableState)===null||w===void 0?void 0:w.errored)!==null&&B!==void 0?B:null}function $(N){var B,w;if(!S(N))return null;if(N.readableErrored)return N.readableErrored;return(B=(w=N._readableState)===null||w===void 0?void 0:w.errored)!==null&&B!==void 0?B:null}function Q(N){if(!S(N))return null;if(typeof N.closed==="boolean")return N.closed;let{_writableState:B,_readableState:w}=N;if(typeof(B===null||B===void 0?void 0:B.closed)==="boolean"||typeof(w===null||w===void 0?void 0:w.closed)==="boolean")return(B===null||B===void 0?void 0:B.closed)||(w===null||w===void 0?void 0:w.closed);if(typeof N._closed==="boolean"&&K(N))return N._closed;return null}function K(N){return typeof N._closed==="boolean"&&typeof N._defaultKeepAlive==="boolean"&&typeof N._removedConnection==="boolean"&&typeof N._removedContLen==="boolean"}function L(N){return typeof N._sent100==="boolean"&&K(N)}function T(N){var B;return typeof N._consuming==="boolean"&&typeof N._dumped==="boolean"&&((B=N.req)===null||B===void 0?void 0:B.upgradeOrConnect)===void 0}function I(N){if(!S(N))return null;let{_writableState:B,_readableState:w}=N,u=B||w;return!u&&L(N)||!!(u&&u.autoDestroy&&u.emitClose&&u.closed===!1)}function Z(N){var B;return!!(N&&((B=N[E])!==null&&B!==void 0?B:N.readableDidRead||N.readableAborted))}function H(N){var B,w,u,s,Y0,M0,n,b,a,l;return!!(N&&((B=(w=(u=(s=(Y0=(M0=N[G])!==null&&M0!==void 0?M0:N.readableErrored)!==null&&Y0!==void 0?Y0:N.writableErrored)!==null&&s!==void 0?s:(n=N._readableState)===null||n===void 0?void 0:n.errorEmitted)!==null&&u!==void 0?u:(b=N._writableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&w!==void 0?w:(a=N._readableState)===null||a===void 0?void 0:a.errored)!==null&&B!==void 0?B:(l=N._writableState)===null||l===void 0?void 0:l.errored))}W.exports={isDestroyed:c,kIsDestroyed:A,isDisturbed:Z,kIsDisturbed:E,isErrored:H,kIsErrored:G,isReadable:r,kIsReadable:v,kIsClosedPromise:q,kControllerErrorFunction:C,kIsWritable:j,isClosed:Q,isDuplexNodeStream:D,isFinished:U,isIterable:h,isReadableNodeStream:M,isReadableStream:P,isReadableEnded:Q0,isReadableFinished:J0,isReadableErrored:$,isNodeStream:S,isWebStream:f,isWritable:O0,isWritableNodeStream:F,isWritableStream:k,isWritableEnded:m,isWritableFinished:g,isWritableErrored:X,isServerRequest:T,isServerResponse:L,willEmitClose:I,isTransformStream:x}}),vZ=CU((Y,W)=>{var V=oZ(),{AbortError:z,codes:O}=oU(),{ERR_INVALID_ARG_TYPE:A,ERR_STREAM_PREMATURE_CLOSE:G}=O,{kEmptyObject:v,once:j}=rU(),{validateAbortSignal:E,validateFunction:q,validateObject:C,validateBoolean:M}=_Q(),{Promise:F,PromisePrototypeThen:D,SymbolDispose:S}=BU(),{isClosed:P,isReadable:k,isReadableNodeStream:x,isReadableStream:f,isReadableFinished:h,isReadableErrored:c,isWritable:m,isWritableNodeStream:g,isWritableStream:Q0,isWritableFinished:J0,isWritableErrored:r,isNodeStream:O0,willEmitClose:U,kIsClosedPromise:X}=AZ(),$;function Q(Z){return Z.setHeader&&typeof Z.abort==="function"}var K=()=>{};function L(Z,H,N){var B,w;if(arguments.length===2)N=H,H=v;else if(H==null)H=v;else C(H,"options");if(q(N,"callback"),E(H.signal,"options.signal"),N=j(N),f(Z)||Q0(Z))return T(Z,H,N);if(!O0(Z))throw new A("stream",["ReadableStream","WritableStream","Stream"],Z);let u=(B=H.readable)!==null&&B!==void 0?B:x(Z),s=(w=H.writable)!==null&&w!==void 0?w:g(Z),Y0=Z._writableState,M0=Z._readableState,n=()=>{if(!Z.writable)l()},b=U(Z)&&x(Z)===u&&g(Z)===s,a=J0(Z,!1),l=()=>{if(a=!0,Z.destroyed)b=!1;if(b&&(!Z.readable||u))return;if(!u||G0)N.call(Z)},G0=h(Z,!1),A0=()=>{if(G0=!0,Z.destroyed)b=!1;if(b&&(!Z.writable||s))return;if(!s||a)N.call(Z)},o=(e)=>{N.call(Z,e)},t=P(Z),V0=()=>{t=!0;let e=r(Z)||c(Z);if(e&&typeof e!=="boolean")return N.call(Z,e);if(u&&!G0&&x(Z,!0)){if(!h(Z,!1))return N.call(Z,new G)}if(s&&!a){if(!J0(Z,!1))return N.call(Z,new G)}N.call(Z)},z0=()=>{t=!0;let e=r(Z)||c(Z);if(e&&typeof e!=="boolean")return N.call(Z,e);N.call(Z)},U0=()=>{Z.req.on("finish",l)};if(Q(Z)){if(Z.on("complete",l),!b)Z.on("abort",V0);if(Z.req)U0();else Z.on("request",U0)}else if(s&&!Y0)Z.on("end",n),Z.on("close",n);if(!b&&typeof Z.aborted==="boolean")Z.on("aborted",V0);if(Z.on("end",A0),Z.on("finish",l),H.error!==!1)Z.on("error",o);if(Z.on("close",V0),t)V.nextTick(V0);else if(Y0!==null&&Y0!==void 0&&Y0.errorEmitted||M0!==null&&M0!==void 0&&M0.errorEmitted){if(!b)V.nextTick(z0)}else if(!u&&(!b||k(Z))&&(a||m(Z)===!1))V.nextTick(z0);else if(!s&&(!b||m(Z))&&(G0||k(Z)===!1))V.nextTick(z0);else if(M0&&Z.req&&Z.aborted)V.nextTick(z0);let x0=()=>{if(N=K,Z.removeListener("aborted",V0),Z.removeListener("complete",l),Z.removeListener("abort",V0),Z.removeListener("request",U0),Z.req)Z.req.removeListener("finish",l);Z.removeListener("end",n),Z.removeListener("close",n),Z.removeListener("finish",l),Z.removeListener("end",A0),Z.removeListener("error",o),Z.removeListener("close",V0)};if(H.signal&&!t){let e=()=>{let H0=N;x0(),H0.call(Z,new z(void 0,{cause:H.signal.reason}))};if(H.signal.aborted)V.nextTick(e);else{$=$||rU().addAbortListener;let H0=$(H.signal,e),p0=N;N=j((...F0)=>{H0[S](),p0.apply(Z,F0)})}}return x0}function T(Z,H,N){let B=!1,w=K;if(H.signal)if(w=()=>{B=!0,N.call(Z,new z(void 0,{cause:H.signal.reason}))},H.signal.aborted)V.nextTick(w);else{$=$||rU().addAbortListener;let s=$(H.signal,w),Y0=N;N=j((...M0)=>{s[S](),Y0.apply(Z,M0)})}let u=(...s)=>{if(!B)V.nextTick(()=>N.apply(Z,s))};return D(Z[X].promise,u,u),K}function I(Z,H){var N;let B=!1;if(H===null)H=v;if((N=H)!==null&&N!==void 0&&N.cleanup)M(H.cleanup,"cleanup"),B=H.cleanup;return new F((w,u)=>{let s=L(Z,H,(Y0)=>{if(B)s();if(Y0)u(Y0);else w()})})}W.exports=L,W.exports.finished=I}),VQ=CU((Y,W)=>{var V=oZ(),{aggregateTwoErrors:z,codes:{ERR_MULTIPLE_CALLBACK:O},AbortError:A}=oU(),{Symbol:G}=BU(),{kIsDestroyed:v,isDestroyed:j,isFinished:E,isServerRequest:q}=AZ(),C=G("kDestroy"),M=G("kConstruct");function F(U,X,$){if(U){if(U.stack,X&&!X.errored)X.errored=U;if($&&!$.errored)$.errored=U}}function D(U,X){let $=this._readableState,Q=this._writableState,K=Q||$;if(Q!==null&&Q!==void 0&&Q.destroyed||$!==null&&$!==void 0&&$.destroyed){if(typeof X==="function")X();return this}if(F(U,Q,$),Q)Q.destroyed=!0;if($)$.destroyed=!0;if(!K.constructed)this.once(C,function(L){S(this,z(L,U),X)});else S(this,U,X);return this}function S(U,X,$){let Q=!1;function K(L){if(Q)return;Q=!0;let{_readableState:T,_writableState:I}=U;if(F(L,I,T),I)I.closed=!0;if(T)T.closed=!0;if(typeof $==="function")$(L);if(L)V.nextTick(P,U,L);else V.nextTick(k,U)}try{U._destroy(X||null,K)}catch(L){K(L)}}function P(U,X){x(U,X),k(U)}function k(U){let{_readableState:X,_writableState:$}=U;if($)$.closeEmitted=!0;if(X)X.closeEmitted=!0;if($!==null&&$!==void 0&&$.emitClose||X!==null&&X!==void 0&&X.emitClose)U.emit("close")}function x(U,X){let{_readableState:$,_writableState:Q}=U;if(Q!==null&&Q!==void 0&&Q.errorEmitted||$!==null&&$!==void 0&&$.errorEmitted)return;if(Q)Q.errorEmitted=!0;if($)$.errorEmitted=!0;U.emit("error",X)}function f(){let U=this._readableState,X=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(X)X.constructed=!0,X.destroyed=!1,X.closed=!1,X.closeEmitted=!1,X.errored=null,X.errorEmitted=!1,X.finalCalled=!1,X.prefinished=!1,X.ended=X.writable===!1,X.ending=X.writable===!1,X.finished=X.writable===!1}function h(U,X,$){let{_readableState:Q,_writableState:K}=U;if(K!==null&&K!==void 0&&K.destroyed||Q!==null&&Q!==void 0&&Q.destroyed)return this;if(Q!==null&&Q!==void 0&&Q.autoDestroy||K!==null&&K!==void 0&&K.autoDestroy)U.destroy(X);else if(X){if(X.stack,K&&!K.errored)K.errored=X;if(Q&&!Q.errored)Q.errored=X;if($)V.nextTick(x,U,X);else x(U,X)}}function c(U,X){if(typeof U._construct!=="function")return;let{_readableState:$,_writableState:Q}=U;if($)$.constructed=!1;if(Q)Q.constructed=!1;if(U.once(M,X),U.listenerCount(M)>1)return;V.nextTick(m,U)}function m(U){let X=!1;function $(Q){if(X){h(U,Q!==null&&Q!==void 0?Q:new O);return}X=!0;let{_readableState:K,_writableState:L}=U,T=L||K;if(K)K.constructed=!0;if(L)L.constructed=!0;if(T.destroyed)U.emit(C,Q);else if(Q)h(U,Q,!0);else V.nextTick(g,U)}try{U._construct((Q)=>{V.nextTick($,Q)})}catch(Q){V.nextTick($,Q)}}function g(U){U.emit(M)}function Q0(U){return(U===null||U===void 0?void 0:U.setHeader)&&typeof U.abort==="function"}function J0(U){U.emit("close")}function r(U,X){U.emit("error",X),V.nextTick(J0,U)}function O0(U,X){if(!U||j(U))return;if(!X&&!E(U))X=new A;if(q(U))U.socket=null,U.destroy(X);else if(Q0(U))U.abort();else if(Q0(U.req))U.req.abort();else if(typeof U.destroy==="function")U.destroy(X);else if(typeof U.close==="function")U.close();else if(X)V.nextTick(r,U,X);else V.nextTick(J0,U);if(!U.destroyed)U[v]=!0}W.exports={construct:c,destroyer:O0,destroy:D,undestroy:f,errorOrDestroy:h}}),R1=CU((Y,W)=>{var{ArrayIsArray:V,ObjectSetPrototypeOf:z}=BU(),{EventEmitter:O}=(kQ(),WU(vQ));function A(v){O.call(this,v)}z(A.prototype,O.prototype),z(A,O),A.prototype.pipe=function(v,j){let E=this;function q(k){if(v.writable&&v.write(k)===!1&&E.pause)E.pause()}E.on("data",q);function C(){if(E.readable&&E.resume)E.resume()}if(v.on("drain",C),!v._isStdio&&(!j||j.end!==!1))E.on("end",F),E.on("close",D);let M=!1;function F(){if(M)return;M=!0,v.end()}function D(){if(M)return;if(M=!0,typeof v.destroy==="function")v.destroy()}function S(k){if(P(),O.listenerCount(this,"error")===0)this.emit("error",k)}G(E,"error",S),G(v,"error",S);function P(){E.removeListener("data",q),v.removeListener("drain",C),E.removeListener("end",F),E.removeListener("close",D),E.removeListener("error",S),v.removeListener("error",S),E.removeListener("end",P),E.removeListener("close",P),v.removeListener("close",P)}return E.on("end",P),E.on("close",P),v.on("close",P),v.emit("pipe",E),v};function G(v,j,E){if(typeof v.prependListener==="function")return v.prependListener(j,E);if(!v._events||!v._events[j])v.on(j,E);else if(V(v._events[j]))v._events[j].unshift(E);else v._events[j]=[E,v._events[j]]}W.exports={Stream:A,prependListener:G}}),IX=CU((Y,W)=>{var{SymbolDispose:V}=BU(),{AbortError:z,codes:O}=oU(),{isNodeStream:A,isWebStream:G,kControllerErrorFunction:v}=AZ(),j=vZ(),{ERR_INVALID_ARG_TYPE:E}=O,q,C=(M,F)=>{if(typeof M!=="object"||!("aborted"in M))throw new E(F,"AbortSignal",M)};W.exports.addAbortSignal=function(M,F){if(C(M,"signal"),!A(F)&&!G(F))throw new E("stream",["ReadableStream","WritableStream","Stream"],F);return W.exports.addAbortSignalNoValidate(M,F)},W.exports.addAbortSignalNoValidate=function(M,F){if(typeof M!=="object"||!("aborted"in M))return F;let D=A(F)?()=>{F.destroy(new z(void 0,{cause:M.reason}))}:()=>{F[v](new z(void 0,{cause:M.reason}))};if(M.aborted)D();else{q=q||rU().addAbortListener;let S=q(M,D);j(F,S[V])}return F}}),d8=CU((Y,W)=>{var{StringPrototypeSlice:V,SymbolIterator:z,TypedArrayPrototypeSet:O,Uint8Array:A}=BU(),{Buffer:G}=(lU(),WU(dU)),{inspect:v}=rU();W.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(j){let E={data:j,next:null};if(this.length>0)this.tail.next=E;else this.head=E;this.tail=E,++this.length}unshift(j){let E={data:j,next:this.head};if(this.length===0)this.tail=E;this.head=E,++this.length}shift(){if(this.length===0)return;let j=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,j}clear(){this.head=this.tail=null,this.length=0}join(j){if(this.length===0)return"";let E=this.head,q=""+E.data;while((E=E.next)!==null)q+=j+E.data;return q}concat(j){if(this.length===0)return G.alloc(0);let E=G.allocUnsafe(j>>>0),q=this.head,C=0;while(q)O(E,q.data,C),C+=q.data.length,q=q.next;return E}consume(j,E){let q=this.head.data;if(j<q.length){let C=q.slice(0,j);return this.head.data=q.slice(j),C}if(j===q.length)return this.shift();return E?this._getString(j):this._getBuffer(j)}first(){return this.head.data}*[z](){for(let j=this.head;j;j=j.next)yield j.data}_getString(j){let E="",q=this.head,C=0;do{let M=q.data;if(j>M.length)E+=M,j-=M.length;else{if(j===M.length)if(E+=M,++C,q.next)this.head=q.next;else this.head=this.tail=null;else E+=V(M,0,j),this.head=q,q.data=V(M,j);break}++C}while((q=q.next)!==null);return this.length-=C,E}_getBuffer(j){let E=G.allocUnsafe(j),q=j,C=this.head,M=0;do{let F=C.data;if(j>F.length)O(E,F,q-j),j-=F.length;else{if(j===F.length)if(O(E,F,q-j),++M,C.next)this.head=C.next;else this.head=this.tail=null;else O(E,new A(F.buffer,F.byteOffset,j),q-j),this.head=C,C.data=F.slice(j);break}++M}while((C=C.next)!==null);return this.length-=M,E}[Symbol.for("nodejs.util.inspect.custom")](j,E){return v(this,{...E,depth:0,customInspect:!1})}}}),OX=CU((Y,W)=>{var{MathFloor:V,NumberIsInteger:z}=BU(),{validateInteger:O}=_Q(),{ERR_INVALID_ARG_VALUE:A}=oU().codes,G=16384,v=16;function j(M,F,D){return M.highWaterMark!=null?M.highWaterMark:F?M[D]:null}function E(M){return M?v:G}function q(M,F){if(O(F,"value",0),M)v=F;else G=F}function C(M,F,D,S){let P=j(F,S,D);if(P!=null){if(!z(P)||P<0){let k=S?`options.${D}`:"options.highWaterMark";throw new A(k,P)}return V(P)}return E(M.objectMode)}W.exports={getHighWaterMark:C,getDefaultHighWaterMark:E,setDefaultHighWaterMark:q}}),l8=CU((Y,W)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var V=(lU(),WU(dU)),z=V.Buffer;function O(G,v){for(var j in G)v[j]=G[j]}if(z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow)W.exports=V;else O(V,Y),Y.Buffer=A;function A(G,v,j){return z(G,v,j)}A.prototype=Object.create(z.prototype),O(z,A),A.from=function(G,v,j){if(typeof G==="number")throw TypeError("Argument must not be a number");return z(G,v,j)},A.alloc=function(G,v,j){if(typeof G!=="number")throw TypeError("Argument must be a number");var E=z(G);if(v!==void 0)if(typeof j==="string")E.fill(v,j);else E.fill(v);else E.fill(0);return E},A.allocUnsafe=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return z(G)},A.allocUnsafeSlow=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return V.SlowBuffer(G)}}),m8=CU((Y)=>{var W=l8().Buffer,V=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 z(x){if(!x)return"utf8";var f;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(f)return;x=(""+x).toLowerCase(),f=!0}}function O(x){var f=z(x);if(typeof f!=="string"&&(W.isEncoding===V||!V(x)))throw Error("Unknown encoding: "+x);return f||x}Y.StringDecoder=A;function A(x){this.encoding=O(x);var f;switch(this.encoding){case"utf16le":this.text=M,this.end=F,f=4;break;case"utf8":this.fillLast=E,f=4;break;case"base64":this.text=D,this.end=S,f=3;break;default:this.write=P,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=W.allocUnsafe(f)}A.prototype.write=function(x){if(x.length===0)return"";var f,h;if(this.lastNeed){if(f=this.fillLast(x),f===void 0)return"";h=this.lastNeed,this.lastNeed=0}else h=0;if(h<x.length)return f?f+this.text(x,h):this.text(x,h);return f||""},A.prototype.end=C,A.prototype.text=q,A.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 G(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 v(x,f,h){var c=f.length-1;if(c<h)return 0;var m=G(f[c]);if(m>=0){if(m>0)x.lastNeed=m-1;return m}if(--c<h||m===-2)return 0;if(m=G(f[c]),m>=0){if(m>0)x.lastNeed=m-2;return m}if(--c<h||m===-2)return 0;if(m=G(f[c]),m>=0){if(m>0)if(m===2)m=0;else x.lastNeed=m-3;return m}return 0}function j(x,f,h){if((f[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&f.length>2){if((f[2]&192)!==128)return x.lastNeed=2,"�"}}}function E(x){var f=this.lastTotal-this.lastNeed,h=j(this,x,f);if(h!==void 0)return h;if(this.lastNeed<=x.length)return x.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,f,0,x.length),this.lastNeed-=x.length}function q(x,f){var h=v(this,x,f);if(!this.lastNeed)return x.toString("utf8",f);this.lastTotal=h;var c=x.length-(h-this.lastNeed);return x.copy(this.lastChar,0,c),x.toString("utf8",f,c)}function C(x){var f=x&&x.length?this.write(x):"";if(this.lastNeed)return f+"�";return f}function M(x,f){if((x.length-f)%2===0){var h=x.toString("utf16le",f);if(h){var c=h.charCodeAt(h.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],h.slice(0,-1)}return h}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",f,x.length-1)}function F(x){var f=x&&x.length?this.write(x):"";if(this.lastNeed){var h=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,h)}return f}function D(x,f){var h=(x.length-f)%3;if(h===0)return x.toString("base64",f);if(this.lastNeed=3-h,this.lastTotal=3,h===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",f,x.length-h)}function S(x){var f=x&&x.length?this.write(x):"";if(this.lastNeed)return f+this.lastChar.toString("base64",0,3-this.lastNeed);return f}function P(x){return x.toString(this.encoding)}function k(x){return x&&x.length?this.write(x):""}}),vG=CU((Y,W)=>{var V=oZ(),{PromisePrototypeThen:z,SymbolAsyncIterator:O,SymbolIterator:A}=BU(),{Buffer:G}=(lU(),WU(dU)),{ERR_INVALID_ARG_TYPE:v,ERR_STREAM_NULL_VALUES:j}=oU().codes;function E(q,C,M){let F;if(typeof C==="string"||C instanceof G)return new q({objectMode:!0,...M,read(){this.push(C),this.push(null)}});let D;if(C&&C[O])D=!0,F=C[O]();else if(C&&C[A])D=!1,F=C[A]();else throw new v("iterable",["Iterable"],C);let S=new q({objectMode:!0,highWaterMark:1,...M}),P=!1;S._read=function(){if(!P)P=!0,x()},S._destroy=function(f,h){z(k(f),()=>V.nextTick(h,f),(c)=>V.nextTick(h,c||f))};async function k(f){let h=f!==void 0&&f!==null,c=typeof F.throw==="function";if(h&&c){let{value:m,done:g}=await F.throw(f);if(await m,g)return}if(typeof F.return==="function"){let{value:m}=await F.return();await m}}async function x(){for(;;){try{let{value:f,done:h}=D?await F.next():F.next();if(h)S.push(null);else{let c=f&&typeof f.then==="function"?await f:f;if(c===null)throw P=!1,new j;else if(S.push(c))continue;else P=!1}}catch(f){S.destroy(f)}break}}return S}W.exports=E}),FX=CU((Y,W)=>{var V=oZ(),{ArrayPrototypeIndexOf:z,NumberIsInteger:O,NumberIsNaN:A,NumberParseInt:G,ObjectDefineProperties:v,ObjectKeys:j,ObjectSetPrototypeOf:E,Promise:q,SafeSet:C,SymbolAsyncDispose:M,SymbolAsyncIterator:F,Symbol:D}=BU();W.exports=F0,F0.ReadableState=p0;var{EventEmitter:S}=(kQ(),WU(vQ)),{Stream:P,prependListener:k}=R1(),{Buffer:x}=(lU(),WU(dU)),{addAbortSignal:f}=IX(),h=vZ(),c=rU().debuglog("stream",(d)=>{c=d}),m=d8(),g=VQ(),{getHighWaterMark:Q0,getDefaultHighWaterMark:J0}=OX(),{aggregateTwoErrors:r,codes:{ERR_INVALID_ARG_TYPE:O0,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_OUT_OF_RANGE:X,ERR_STREAM_PUSH_AFTER_EOF:$,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Q},AbortError:K}=oU(),{validateObject:L}=_Q(),T=D("kPaused"),{StringDecoder:I}=m8(),Z=vG();E(F0.prototype,P.prototype),E(F0,P);var H=()=>{},{errorOrDestroy:N}=g,B=1,w=2,u=4,s=8,Y0=16,M0=32,n=64,b=128,a=256,l=512,G0=1024,A0=2048,o=4096,t=8192,V0=16384,z0=32768,U0=65536,x0=131072,e=262144;function H0(d){return{enumerable:!1,get(){return(this.state&d)!==0},set($0){if($0)this.state|=d;else this.state&=~d}}}v(p0.prototype,{objectMode:H0(B),ended:H0(w),endEmitted:H0(u),reading:H0(s),constructed:H0(Y0),sync:H0(M0),needReadable:H0(n),emittedReadable:H0(b),readableListening:H0(a),resumeScheduled:H0(l),errorEmitted:H0(G0),emitClose:H0(A0),autoDestroy:H0(o),destroyed:H0(t),closed:H0(V0),closeEmitted:H0(z0),multiAwaitDrain:H0(U0),readingMore:H0(x0),dataEmitted:H0(e)});function p0(d,$0,L0){if(typeof L0!=="boolean")L0=$0 instanceof LZ();if(this.state=A0|o|Y0|M0,d&&d.objectMode)this.state|=B;if(L0&&d&&d.readableObjectMode)this.state|=B;if(this.highWaterMark=d?Q0(this,d,"readableHighWaterMark",L0):J0(!1),this.buffer=new m,this.length=0,this.pipes=[],this.flowing=null,this[T]=null,d&&d.emitClose===!1)this.state&=~A0;if(d&&d.autoDestroy===!1)this.state&=~o;if(this.errored=null,this.defaultEncoding=d&&d.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,d&&d.encoding)this.decoder=new I(d.encoding),this.encoding=d.encoding}function F0(d){if(!(this instanceof F0))return new F0(d);let $0=this instanceof LZ();if(this._readableState=new p0(d,this,$0),d){if(typeof d.read==="function")this._read=d.read;if(typeof d.destroy==="function")this._destroy=d.destroy;if(typeof d.construct==="function")this._construct=d.construct;if(d.signal&&!$0)f(d.signal,this)}P.call(this,d),g.construct(this,()=>{if(this._readableState.needReadable)j0(this,this._readableState)})}F0.prototype.destroy=g.destroy,F0.prototype._undestroy=g.undestroy,F0.prototype._destroy=function(d,$0){$0(d)},F0.prototype[S.captureRejectionSymbol]=function(d){this.destroy(d)},F0.prototype[M]=function(){let d;if(!this.destroyed)d=this.readableEnded?null:new K,this.destroy(d);return new q(($0,L0)=>h(this,(R0)=>R0&&R0!==d?L0(R0):$0(null)))},F0.prototype.push=function(d,$0){return D0(this,d,$0,!1)},F0.prototype.unshift=function(d,$0){return D0(this,d,$0,!0)};function D0(d,$0,L0,R0){c("readableAddChunk",$0);let r0=d._readableState,y0;if((r0.state&B)===0){if(typeof $0==="string"){if(L0=L0||r0.defaultEncoding,r0.encoding!==L0)if(R0&&r0.encoding)$0=x.from($0,L0).toString(r0.encoding);else $0=x.from($0,L0),L0=""}else if($0 instanceof x)L0="";else if(P._isUint8Array($0))$0=P._uint8ArrayToBuffer($0),L0="";else if($0!=null)y0=new O0("chunk",["string","Buffer","Uint8Array"],$0)}if(y0)N(d,y0);else if($0===null)r0.state&=~s,q0(d,r0);else if((r0.state&B)!==0||$0&&$0.length>0)if(R0)if((r0.state&u)!==0)N(d,new Q);else if(r0.destroyed||r0.errored)return!1;else i0(d,r0,$0,!0);else if(r0.ended)N(d,new $);else if(r0.destroyed||r0.errored)return!1;else if(r0.state&=~s,r0.decoder&&!L0)if($0=r0.decoder.write($0),r0.objectMode||$0.length!==0)i0(d,r0,$0,!1);else j0(d,r0);else i0(d,r0,$0,!1);else if(!R0)r0.state&=~s,j0(d,r0);return!r0.ended&&(r0.length<r0.highWaterMark||r0.length===0)}function i0(d,$0,L0,R0){if($0.flowing&&$0.length===0&&!$0.sync&&d.listenerCount("data")>0){if(($0.state&U0)!==0)$0.awaitDrainWriters.clear();else $0.awaitDrainWriters=null;$0.dataEmitted=!0,d.emit("data",L0)}else{if($0.length+=$0.objectMode?1:L0.length,R0)$0.buffer.unshift(L0);else $0.buffer.push(L0);if(($0.state&n)!==0)S0(d)}j0(d,$0)}F0.prototype.isPaused=function(){let d=this._readableState;return d[T]===!0||d.flowing===!1},F0.prototype.setEncoding=function(d){let $0=new I(d);this._readableState.decoder=$0,this._readableState.encoding=this._readableState.decoder.encoding;let L0=this._readableState.buffer,R0="";for(let r0 of L0)R0+=$0.write(r0);if(L0.clear(),R0!=="")L0.push(R0);return this._readableState.length=R0.length,this};var i=1073741824;function W0(d){if(d>i)throw new X("size","<= 1GiB",d);else d--,d|=d>>>1,d|=d>>>2,d|=d>>>4,d|=d>>>8,d|=d>>>16,d++;return d}function v0(d,$0){if(d<=0||$0.length===0&&$0.ended)return 0;if(($0.state&B)!==0)return 1;if(A(d)){if($0.flowing&&$0.length)return $0.buffer.first().length;return $0.length}if(d<=$0.length)return d;return $0.ended?$0.length:0}F0.prototype.read=function(d){if(c("read",d),d===void 0)d=NaN;else if(!O(d))d=G(d,10);let $0=this._readableState,L0=d;if(d>$0.highWaterMark)$0.highWaterMark=W0(d);if(d!==0)$0.state&=~b;if(d===0&&$0.needReadable&&(($0.highWaterMark!==0?$0.length>=$0.highWaterMark:$0.length>0)||$0.ended)){if(c("read: emitReadable",$0.length,$0.ended),$0.length===0&&$0.ended)IU(this);else S0(this);return null}if(d=v0(d,$0),d===0&&$0.ended){if($0.length===0)IU(this);return null}let R0=($0.state&n)!==0;if(c("need readable",R0),$0.length===0||$0.length-d<$0.highWaterMark)R0=!0,c("length less than watermark",R0);if($0.ended||$0.reading||$0.destroyed||$0.errored||!$0.constructed)R0=!1,c("reading, ended or constructing",R0);else if(R0){if(c("do read"),$0.state|=s|M0,$0.length===0)$0.state|=n;try{this._read($0.highWaterMark)}catch(y0){N(this,y0)}if($0.state&=~M0,!$0.reading)d=v0(L0,$0)}let r0;if(d>0)r0=N0(d,$0);else r0=null;if(r0===null)$0.needReadable=$0.length<=$0.highWaterMark,d=0;else if($0.length-=d,$0.multiAwaitDrain)$0.awaitDrainWriters.clear();else $0.awaitDrainWriters=null;if($0.length===0){if(!$0.ended)$0.needReadable=!0;if(L0!==d&&$0.ended)IU(this)}if(r0!==null&&!$0.errorEmitted&&!$0.closeEmitted)$0.dataEmitted=!0,this.emit("data",r0);return r0};function q0(d,$0){if(c("onEofChunk"),$0.ended)return;if($0.decoder){let L0=$0.decoder.end();if(L0&&L0.length)$0.buffer.push(L0),$0.length+=$0.objectMode?1:L0.length}if($0.ended=!0,$0.sync)S0(d);else $0.needReadable=!1,$0.emittedReadable=!0,e0(d)}function S0(d){let $0=d._readableState;if(c("emitReadable",$0.needReadable,$0.emittedReadable),$0.needReadable=!1,!$0.emittedReadable)c("emitReadable",$0.flowing),$0.emittedReadable=!0,V.nextTick(e0,d)}function e0(d){let $0=d._readableState;if(c("emitReadable_",$0.destroyed,$0.length,$0.ended),!$0.destroyed&&!$0.errored&&($0.length||$0.ended))d.emit("readable"),$0.emittedReadable=!1;$0.needReadable=!$0.flowing&&!$0.ended&&$0.length<=$0.highWaterMark,K0(d)}function j0(d,$0){if(!$0.readingMore&&$0.constructed)$0.readingMore=!0,V.nextTick(B0,d,$0)}function B0(d,$0){while(!$0.reading&&!$0.ended&&($0.length<$0.highWaterMark||$0.flowing&&$0.length===0)){let L0=$0.length;if(c("maybeReadMore read 0"),d.read(0),L0===$0.length)break}$0.readingMore=!1}F0.prototype._read=function(d){throw new U("_read()")},F0.prototype.pipe=function(d,$0){let L0=this,R0=this._readableState;if(R0.pipes.length===1){if(!R0.multiAwaitDrain)R0.multiAwaitDrain=!0,R0.awaitDrainWriters=new C(R0.awaitDrainWriters?[R0.awaitDrainWriters]:[])}R0.pipes.push(d),c("pipe count=%d opts=%j",R0.pipes.length,$0);let r0=(!$0||$0.end!==!1)&&d!==V.stdout&&d!==V.stderr?T0:YU;if(R0.endEmitted)V.nextTick(r0);else L0.once("end",r0);d.on("unpipe",y0);function y0(zU,FU){if(c("onunpipe"),zU===L0){if(FU&&FU.hasUnpiped===!1)FU.hasUnpiped=!0,n0()}}function T0(){c("onend"),d.end()}let AU,b0=!1;function n0(){if(c("cleanup"),d.removeListener("close",PU),d.removeListener("finish",JU),AU)d.removeListener("drain",AU);if(d.removeListener("error",l0),d.removeListener("unpipe",y0),L0.removeListener("end",T0),L0.removeListener("end",YU),L0.removeListener("data",o0),b0=!0,AU&&R0.awaitDrainWriters&&(!d._writableState||d._writableState.needDrain))AU()}function pU(){if(!b0){if(R0.pipes.length===1&&R0.pipes[0]===d)c("false write response, pause",0),R0.awaitDrainWriters=d,R0.multiAwaitDrain=!1;else if(R0.pipes.length>1&&R0.pipes.includes(d))c("false write response, pause",R0.awaitDrainWriters.size),R0.awaitDrainWriters.add(d);L0.pause()}if(!AU)AU=XU(L0,d),d.on("drain",AU)}L0.on("data",o0);function o0(zU){c("ondata");let FU=d.write(zU);if(c("dest.write",FU),FU===!1)pU()}function l0(zU){if(c("onerror",zU),YU(),d.removeListener("error",l0),d.listenerCount("error")===0){let FU=d._writableState||d._readableState;if(FU&&!FU.errorEmitted)N(d,zU);else d.emit("error",zU)}}k(d,"error",l0);function PU(){d.removeListener("finish",JU),YU()}d.once("close",PU);function JU(){c("onfinish"),d.removeListener("close",PU),YU()}d.once("finish",JU);function YU(){c("unpipe"),L0.unpipe(d)}if(d.emit("pipe",L0),d.writableNeedDrain===!0)pU();else if(!R0.flowing)c("pipe resume"),L0.resume();return d};function XU(d,$0){return function(){let L0=d._readableState;if(L0.awaitDrainWriters===$0)c("pipeOnDrain",1),L0.awaitDrainWriters=null;else if(L0.multiAwaitDrain)c("pipeOnDrain",L0.awaitDrainWriters.size),L0.awaitDrainWriters.delete($0);if((!L0.awaitDrainWriters||L0.awaitDrainWriters.size===0)&&d.listenerCount("data"))d.resume()}}F0.prototype.unpipe=function(d){let $0=this._readableState,L0={hasUnpiped:!1};if($0.pipes.length===0)return this;if(!d){let r0=$0.pipes;$0.pipes=[],this.pause();for(let y0=0;y0<r0.length;y0++)r0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let R0=z($0.pipes,d);if(R0===-1)return this;if($0.pipes.splice(R0,1),$0.pipes.length===0)this.pause();return d.emit("unpipe",this,L0),this},F0.prototype.on=function(d,$0){let L0=P.prototype.on.call(this,d,$0),R0=this._readableState;if(d==="data"){if(R0.readableListening=this.listenerCount("readable")>0,R0.flowing!==!1)this.resume()}else if(d==="readable"){if(!R0.endEmitted&&!R0.readableListening){if(R0.readableListening=R0.needReadable=!0,R0.flowing=!1,R0.emittedReadable=!1,c("on readable",R0.length,R0.reading),R0.length)S0(this);else if(!R0.reading)V.nextTick(g0,this)}}return L0},F0.prototype.addListener=F0.prototype.on,F0.prototype.removeListener=function(d,$0){let L0=P.prototype.removeListener.call(this,d,$0);if(d==="readable")V.nextTick(_0,this);return L0},F0.prototype.off=F0.prototype.removeListener,F0.prototype.removeAllListeners=function(d){let $0=P.prototype.removeAllListeners.apply(this,arguments);if(d==="readable"||d===void 0)V.nextTick(_0,this);return $0};function _0(d){let $0=d._readableState;if($0.readableListening=d.listenerCount("readable")>0,$0.resumeScheduled&&$0[T]===!1)$0.flowing=!0;else if(d.listenerCount("data")>0)d.resume();else if(!$0.readableListening)$0.flowing=null}function g0(d){c("readable nexttick read 0"),d.read(0)}F0.prototype.resume=function(){let d=this._readableState;if(!d.flowing)c("resume"),d.flowing=!d.readableListening,MU(this,d);return d[T]=!1,this};function MU(d,$0){if(!$0.resumeScheduled)$0.resumeScheduled=!0,V.nextTick(c0,d,$0)}function c0(d,$0){if(c("resume",$0.reading),!$0.reading)d.read(0);if($0.resumeScheduled=!1,d.emit("resume"),K0(d),$0.flowing&&!$0.reading)d.read(0)}F0.prototype.pause=function(){if(c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)c("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[T]=!0,this};function K0(d){let $0=d._readableState;c("flow",$0.flowing);while($0.flowing&&d.read()!==null);}F0.prototype.wrap=function(d){let $0=!1;d.on("data",(R0)=>{if(!this.push(R0)&&d.pause)$0=!0,d.pause()}),d.on("end",()=>{this.push(null)}),d.on("error",(R0)=>{N(this,R0)}),d.on("close",()=>{this.destroy()}),d.on("destroy",()=>{this.destroy()}),this._read=()=>{if($0&&d.resume)$0=!1,d.resume()};let L0=j(d);for(let R0=1;R0<L0.length;R0++){let r0=L0[R0];if(this[r0]===void 0&&typeof d[r0]==="function")this[r0]=d[r0].bind(d)}return this},F0.prototype[F]=function(){return E0(this)},F0.prototype.iterator=function(d){if(d!==void 0)L(d,"options");return E0(this,d)};function E0(d,$0){if(typeof d.read!=="function")d=F0.wrap(d,{objectMode:!0});let L0=C0(d,$0);return L0.stream=d,L0}async function*C0(d,$0){let L0=H;function R0(T0){if(this===d)L0(),L0=H;else L0=T0}d.on("readable",R0);let r0,y0=h(d,{writable:!1},(T0)=>{r0=T0?r(r0,T0):null,L0(),L0=H});try{while(!0){let T0=d.destroyed?null:d.read();if(T0!==null)yield T0;else if(r0)throw r0;else if(r0===null)return;else await new q(R0)}}catch(T0){throw r0=r(r0,T0),r0}finally{if((r0||($0===null||$0===void 0?void 0:$0.destroyOnReturn)!==!1)&&(r0===void 0||d._readableState.autoDestroy))g.destroyer(d,null);else d.off("readable",R0),y0()}}v(F0.prototype,{readable:{__proto__:null,get(){let d=this._readableState;return!!d&&d.readable!==!1&&!d.destroyed&&!d.errorEmitted&&!d.endEmitted},set(d){if(this._readableState)this._readableState.readable=!!d}},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(d){if(this._readableState)this._readableState.flowing=d}},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(d){if(!this._readableState)return;this._readableState.destroyed=d}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),v(p0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[T]!==!1},set(d){this[T]=!!d}}}),F0._fromList=N0;function N0(d,$0){if($0.length===0)return null;let L0;if($0.objectMode)L0=$0.buffer.shift();else if(!d||d>=$0.length){if($0.decoder)L0=$0.buffer.join("");else if($0.buffer.length===1)L0=$0.buffer.first();else L0=$0.buffer.concat($0.length);$0.buffer.clear()}else L0=$0.buffer.consume(d,$0.decoder);return L0}function IU(d){let $0=d._readableState;if(c("endReadable",$0.endEmitted),!$0.endEmitted)$0.ended=!0,V.nextTick(u0,$0,d)}function u0(d,$0){if(c("endReadableNT",d.endEmitted,d.length),!d.errored&&!d.closeEmitted&&!d.endEmitted&&d.length===0){if(d.endEmitted=!0,$0.emit("end"),$0.writable&&$0.allowHalfOpen===!1)V.nextTick(d0,$0);else if(d.autoDestroy){let L0=$0._writableState;if(!L0||L0.autoDestroy&&(L0.finished||L0.writable===!1))$0.destroy()}}}function d0(d){if(d.writable&&!d.writableEnded&&!d.destroyed)d.end()}F0.from=function(d,$0){return Z(F0,d,$0)};var xU;function m0(){if(xU===void 0)xU={};return xU}F0.fromWeb=function(d,$0){return m0().newStreamReadableFromReadableStream(d,$0)},F0.toWeb=function(d,$0){return m0().newReadableStreamFromStreamReadable(d,$0)},F0.wrap=function(d,$0){var L0,R0;return new F0({objectMode:(L0=(R0=d.readableObjectMode)!==null&&R0!==void 0?R0:d.objectMode)!==null&&L0!==void 0?L0:!0,...$0,destroy(r0,y0){g.destroyer(d,r0),y0(r0)}}).wrap(d)}}),S1=CU((Y,W)=>{var V=oZ(),{ArrayPrototypeSlice:z,Error:O,FunctionPrototypeSymbolHasInstance:A,ObjectDefineProperty:G,ObjectDefineProperties:v,ObjectSetPrototypeOf:j,StringPrototypeToLowerCase:E,Symbol:q,SymbolHasInstance:C}=BU();W.exports=L,L.WritableState=Q;var{EventEmitter:M}=(kQ(),WU(vQ)),F=R1().Stream,{Buffer:D}=(lU(),WU(dU)),S=VQ(),{addAbortSignal:P}=IX(),{getHighWaterMark:k,getDefaultHighWaterMark:x}=OX(),{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:h,ERR_MULTIPLE_CALLBACK:c,ERR_STREAM_CANNOT_PIPE:m,ERR_STREAM_DESTROYED:g,ERR_STREAM_ALREADY_FINISHED:Q0,ERR_STREAM_NULL_VALUES:J0,ERR_STREAM_WRITE_AFTER_END:r,ERR_UNKNOWN_ENCODING:O0}=oU().codes,{errorOrDestroy:U}=S;j(L.prototype,F.prototype),j(L,F);function X(){}var $=q("kOnFinished");function Q(o,t,V0){if(typeof V0!=="boolean")V0=t instanceof LZ();if(this.objectMode=!!(o&&o.objectMode),V0)this.objectMode=this.objectMode||!!(o&&o.writableObjectMode);this.highWaterMark=o?k(this,o,"writableHighWaterMark",V0):x(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let z0=!!(o&&o.decodeStrings===!1);this.decodeStrings=!z0,this.defaultEncoding=o&&o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=N.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,K(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!o||o.emitClose!==!1,this.autoDestroy=!o||o.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$]=[]}function K(o){o.buffered=[],o.bufferedIndex=0,o.allBuffers=!0,o.allNoop=!0}Q.prototype.getBuffer=function(){return z(this.buffered,this.bufferedIndex)},G(Q.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function L(o){let t=this instanceof LZ();if(!t&&!A(L,this))return new L(o);if(this._writableState=new Q(o,this,t),o){if(typeof o.write==="function")this._write=o.write;if(typeof o.writev==="function")this._writev=o.writev;if(typeof o.destroy==="function")this._destroy=o.destroy;if(typeof o.final==="function")this._final=o.final;if(typeof o.construct==="function")this._construct=o.construct;if(o.signal)P(o.signal,this)}F.call(this,o),S.construct(this,()=>{let V0=this._writableState;if(!V0.writing)s(this,V0);b(this,V0)})}G(L,C,{__proto__:null,value:function(o){if(A(this,o))return!0;if(this!==L)return!1;return o&&o._writableState instanceof Q}}),L.prototype.pipe=function(){U(this,new m)};function T(o,t,V0,z0){let U0=o._writableState;if(typeof V0==="function")z0=V0,V0=U0.defaultEncoding;else{if(!V0)V0=U0.defaultEncoding;else if(V0!=="buffer"&&!D.isEncoding(V0))throw new O0(V0);if(typeof z0!=="function")z0=X}if(t===null)throw new J0;else if(!U0.objectMode)if(typeof t==="string"){if(U0.decodeStrings!==!1)t=D.from(t,V0),V0="buffer"}else if(t instanceof D)V0="buffer";else if(F._isUint8Array(t))t=F._uint8ArrayToBuffer(t),V0="buffer";else throw new f("chunk",["string","Buffer","Uint8Array"],t);let x0;if(U0.ending)x0=new r;else if(U0.destroyed)x0=new g("write");if(x0)return V.nextTick(z0,x0),U(o,x0,!0),x0;return U0.pendingcb++,I(o,U0,t,V0,z0)}L.prototype.write=function(o,t,V0){return T(this,o,t,V0)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){let o=this._writableState;if(o.corked){if(o.corked--,!o.writing)s(this,o)}},L.prototype.setDefaultEncoding=function(o){if(typeof o==="string")o=E(o);if(!D.isEncoding(o))throw new O0(o);return this._writableState.defaultEncoding=o,this};function I(o,t,V0,z0,U0){let x0=t.objectMode?1:V0.length;t.length+=x0;let e=t.length<t.highWaterMark;if(!e)t.needDrain=!0;if(t.writing||t.corked||t.errored||!t.constructed){if(t.buffered.push({chunk:V0,encoding:z0,callback:U0}),t.allBuffers&&z0!=="buffer")t.allBuffers=!1;if(t.allNoop&&U0!==X)t.allNoop=!1}else t.writelen=x0,t.writecb=U0,t.writing=!0,t.sync=!0,o._write(V0,z0,t.onwrite),t.sync=!1;return e&&!t.errored&&!t.destroyed}function Z(o,t,V0,z0,U0,x0,e){if(t.writelen=z0,t.writecb=e,t.writing=!0,t.sync=!0,t.destroyed)t.onwrite(new g("write"));else if(V0)o._writev(U0,t.onwrite);else o._write(U0,x0,t.onwrite);t.sync=!1}function H(o,t,V0,z0){--t.pendingcb,z0(V0),u(t),U(o,V0)}function N(o,t){let V0=o._writableState,z0=V0.sync,U0=V0.writecb;if(typeof U0!=="function"){U(o,new c);return}if(V0.writing=!1,V0.writecb=null,V0.length-=V0.writelen,V0.writelen=0,t){if(t.stack,!V0.errored)V0.errored=t;if(o._readableState&&!o._readableState.errored)o._readableState.errored=t;if(z0)V.nextTick(H,o,V0,t,U0);else H(o,V0,t,U0)}else{if(V0.buffered.length>V0.bufferedIndex)s(o,V0);if(z0)if(V0.afterWriteTickInfo!==null&&V0.afterWriteTickInfo.cb===U0)V0.afterWriteTickInfo.count++;else V0.afterWriteTickInfo={count:1,cb:U0,stream:o,state:V0},V.nextTick(B,V0.afterWriteTickInfo);else w(o,V0,1,U0)}}function B({stream:o,state:t,count:V0,cb:z0}){return t.afterWriteTickInfo=null,w(o,t,V0,z0)}function w(o,t,V0,z0){if(!t.ending&&!o.destroyed&&t.length===0&&t.needDrain)t.needDrain=!1,o.emit("drain");while(V0-- >0)t.pendingcb--,z0();if(t.destroyed)u(t);b(o,t)}function u(o){if(o.writing)return;for(let U0=o.bufferedIndex;U0<o.buffered.length;++U0){var t;let{chunk:x0,callback:e}=o.buffered[U0],H0=o.objectMode?1:x0.length;o.length-=H0,e((t=o.errored)!==null&&t!==void 0?t:new g("write"))}let V0=o[$].splice(0);for(let U0=0;U0<V0.length;U0++){var z0;V0[U0]((z0=o.errored)!==null&&z0!==void 0?z0:new g("end"))}K(o)}function s(o,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:V0,bufferedIndex:z0,objectMode:U0}=t,x0=V0.length-z0;if(!x0)return;let e=z0;if(t.bufferProcessing=!0,x0>1&&o._writev){t.pendingcb-=x0-1;let H0=t.allNoop?X:(F0)=>{for(let D0=e;D0<V0.length;++D0)V0[D0].callback(F0)},p0=t.allNoop&&e===0?V0:z(V0,e);p0.allBuffers=t.allBuffers,Z(o,t,!0,t.length,p0,"",H0),K(t)}else{do{let{chunk:H0,encoding:p0,callback:F0}=V0[e];V0[e++]=null;let D0=U0?1:H0.length;Z(o,t,!1,D0,H0,p0,F0)}while(e<V0.length&&!t.writing);if(e===V0.length)K(t);else if(e>256)V0.splice(0,e),t.bufferedIndex=0;else t.bufferedIndex=e}t.bufferProcessing=!1}L.prototype._write=function(o,t,V0){if(this._writev)this._writev([{chunk:o,encoding:t}],V0);else throw new h("_write()")},L.prototype._writev=null,L.prototype.end=function(o,t,V0){let z0=this._writableState;if(typeof o==="function")V0=o,o=null,t=null;else if(typeof t==="function")V0=t,t=null;let U0;if(o!==null&&o!==void 0){let x0=T(this,o,t);if(x0 instanceof O)U0=x0}if(z0.corked)z0.corked=1,this.uncork();if(U0);else if(!z0.errored&&!z0.ending)z0.ending=!0,b(this,z0,!0),z0.ended=!0;else if(z0.finished)U0=new Q0("end");else if(z0.destroyed)U0=new g("end");if(typeof V0==="function")if(U0||z0.finished)V.nextTick(V0,U0);else z0[$].push(V0);return this};function Y0(o){return o.ending&&!o.destroyed&&o.constructed&&o.length===0&&!o.errored&&o.buffered.length===0&&!o.finished&&!o.writing&&!o.errorEmitted&&!o.closeEmitted}function M0(o,t){let V0=!1;function z0(U0){if(V0){U(o,U0!==null&&U0!==void 0?U0:c());return}if(V0=!0,t.pendingcb--,U0){let x0=t[$].splice(0);for(let e=0;e<x0.length;e++)x0[e](U0);U(o,U0,t.sync)}else if(Y0(t))t.prefinished=!0,o.emit("prefinish"),t.pendingcb++,V.nextTick(a,o,t)}t.sync=!0,t.pendingcb++;try{o._final(z0)}catch(U0){z0(U0)}t.sync=!1}function n(o,t){if(!t.prefinished&&!t.finalCalled)if(typeof o._final==="function"&&!t.destroyed)t.finalCalled=!0,M0(o,t);else t.prefinished=!0,o.emit("prefinish")}function b(o,t,V0){if(Y0(t)){if(n(o,t),t.pendingcb===0){if(V0)t.pendingcb++,V.nextTick((z0,U0)=>{if(Y0(U0))a(z0,U0);else U0.pendingcb--},o,t);else if(Y0(t))t.pendingcb++,a(o,t)}}}function a(o,t){t.pendingcb--,t.finished=!0;let V0=t[$].splice(0);for(let z0=0;z0<V0.length;z0++)V0[z0]();if(o.emit("finish"),t.autoDestroy){let z0=o._readableState;if(!z0||z0.autoDestroy&&(z0.endEmitted||z0.readable===!1))o.destroy()}}v(L.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(o){if(this._writableState)this._writableState.destroyed=o}},writable:{__proto__:null,get(){let o=this._writableState;return!!o&&o.writable!==!1&&!o.destroyed&&!o.errored&&!o.ending&&!o.ended},set(o){if(this._writableState)this._writableState.writable=!!o}},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 o=this._writableState;if(!o)return!1;return!o.destroyed&&!o.ending&&o.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 l=S.destroy;L.prototype.destroy=function(o,t){let V0=this._writableState;if(!V0.destroyed&&(V0.bufferedIndex<V0.buffered.length||V0[$].length))V.nextTick(u,V0);return l.call(this,o,t),this},L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(o,t){t(o)},L.prototype[M.captureRejectionSymbol]=function(o){this.destroy(o)};var G0;function A0(){if(G0===void 0)G0={};return G0}L.fromWeb=function(o,t){return A0().newStreamWritableFromWritableStream(o,t)},L.toWeb=function(o){return A0().newWritableStreamFromStreamWritable(o)}}),o8=CU((Y,W)=>{var V=oZ(),z=(lU(),WU(dU)),{isReadable:O,isWritable:A,isIterable:G,isNodeStream:v,isReadableNodeStream:j,isWritableNodeStream:E,isDuplexNodeStream:q,isReadableStream:C,isWritableStream:M}=AZ(),F=vZ(),{AbortError:D,codes:{ERR_INVALID_ARG_TYPE:S,ERR_INVALID_RETURN_VALUE:P}}=oU(),{destroyer:k}=VQ(),x=LZ(),f=FX(),h=S1(),{createDeferredPromise:c}=rU(),m=vG(),g=globalThis.Blob||z.Blob,Q0=typeof g<"u"?function($){return $ instanceof g}:function($){return!1},J0=globalThis.AbortController||xQ().AbortController,{FunctionPrototypeCall:r}=BU();class O0 extends x{constructor($){super($);if(($===null||$===void 0?void 0:$.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(($===null||$===void 0?void 0:$.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}W.exports=function $(Q,K){if(q(Q))return Q;if(j(Q))return X({readable:Q});if(E(Q))return X({writable:Q});if(v(Q))return X({writable:!1,readable:!1});if(C(Q))return X({readable:f.fromWeb(Q)});if(M(Q))return X({writable:h.fromWeb(Q)});if(typeof Q==="function"){let{value:T,write:I,final:Z,destroy:H}=U(Q);if(G(T))return m(O0,T,{objectMode:!0,write:I,final:Z,destroy:H});let N=T===null||T===void 0?void 0:T.then;if(typeof N==="function"){let B,w=r(N,T,(u)=>{if(u!=null)throw new P("nully","body",u)},(u)=>{k(B,u)});return B=new O0({objectMode:!0,readable:!1,write:I,final(u){Z(async()=>{try{await w,V.nextTick(u,null)}catch(s){V.nextTick(u,s)}})},destroy:H})}throw new P("Iterable, AsyncIterable or AsyncFunction",K,T)}if(Q0(Q))return $(Q.arrayBuffer());if(G(Q))return m(O0,Q,{objectMode:!0,writable:!1});if(C(Q===null||Q===void 0?void 0:Q.readable)&&M(Q===null||Q===void 0?void 0:Q.writable))return O0.fromWeb(Q);if(typeof(Q===null||Q===void 0?void 0:Q.writable)==="object"||typeof(Q===null||Q===void 0?void 0:Q.readable)==="object"){let T=Q!==null&&Q!==void 0&&Q.readable?j(Q===null||Q===void 0?void 0:Q.readable)?Q===null||Q===void 0?void 0:Q.readable:$(Q.readable):void 0,I=Q!==null&&Q!==void 0&&Q.writable?E(Q===null||Q===void 0?void 0:Q.writable)?Q===null||Q===void 0?void 0:Q.writable:$(Q.writable):void 0;return X({readable:T,writable:I})}let L=Q===null||Q===void 0?void 0:Q.then;if(typeof L==="function"){let T;return r(L,Q,(I)=>{if(I!=null)T.push(I);T.push(null)},(I)=>{k(T,I)}),T=new O0({objectMode:!0,writable:!1,read(){}})}throw new S(K,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],Q)};function U($){let{promise:Q,resolve:K}=c(),L=new J0,T=L.signal;return{value:$(async function*(){while(!0){let I=Q;Q=null;let{chunk:Z,done:H,cb:N}=await I;if(V.nextTick(N),H)return;if(T.aborted)throw new D(void 0,{cause:T.reason});({promise:Q,resolve:K}=c()),yield Z}}(),{signal:T}),write(I,Z,H){let N=K;K=null,N({chunk:I,done:!1,cb:H})},final(I){let Z=K;K=null,Z({done:!0,cb:I})},destroy(I,Z){L.abort(),Z(I)}}}function X($){let Q=$.readable&&typeof $.readable.read!=="function"?f.wrap($.readable):$.readable,K=$.writable,L=!!O(Q),T=!!A(K),I,Z,H,N,B;function w(u){let s=N;if(N=null,s)s(u);else if(u)B.destroy(u)}if(B=new O0({readableObjectMode:!!(Q!==null&&Q!==void 0&&Q.readableObjectMode),writableObjectMode:!!(K!==null&&K!==void 0&&K.writableObjectMode),readable:L,writable:T}),T)F(K,(u)=>{if(T=!1,u)k(Q,u);w(u)}),B._write=function(u,s,Y0){if(K.write(u,s))Y0();else I=Y0},B._final=function(u){K.end(),Z=u},K.on("drain",function(){if(I){let u=I;I=null,u()}}),K.on("finish",function(){if(Z){let u=Z;Z=null,u()}});if(L)F(Q,(u)=>{if(L=!1,u)k(Q,u);w(u)}),Q.on("readable",function(){if(H){let u=H;H=null,u()}}),Q.on("end",function(){B.push(null)}),B._read=function(){while(!0){let u=Q.read();if(u===null){H=B._read;return}if(!B.push(u))return}};return B._destroy=function(u,s){if(!u&&N!==null)u=new D;if(H=null,I=null,Z=null,N===null)s(u);else N=s,k(K,u),k(Q,u)},B}}),LZ=CU((Y,W)=>{var{ObjectDefineProperties:V,ObjectGetOwnPropertyDescriptor:z,ObjectKeys:O,ObjectSetPrototypeOf:A}=BU();W.exports=j;var G=FX(),v=S1();A(j.prototype,G.prototype),A(j,G);{let M=O(v.prototype);for(let F=0;F<M.length;F++){let D=M[F];if(!j.prototype[D])j.prototype[D]=v.prototype[D]}}function j(M){if(!(this instanceof j))return new j(M);if(G.call(this,M),v.call(this,M),M){if(this.allowHalfOpen=M.allowHalfOpen!==!1,M.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(M.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}V(j.prototype,{writable:{__proto__:null,...z(v.prototype,"writable")},writableHighWaterMark:{__proto__:null,...z(v.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...z(v.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...z(v.prototype,"writableBuffer")},writableLength:{__proto__:null,...z(v.prototype,"writableLength")},writableFinished:{__proto__:null,...z(v.prototype,"writableFinished")},writableCorked:{__proto__:null,...z(v.prototype,"writableCorked")},writableEnded:{__proto__:null,...z(v.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...z(v.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(M){if(this._readableState&&this._writableState)this._readableState.destroyed=M,this._writableState.destroyed=M}}});var E;function q(){if(E===void 0)E={};return E}j.fromWeb=function(M,F){return q().newStreamDuplexFromReadableWritablePair(M,F)},j.toWeb=function(M){return q().newReadableWritablePairFromDuplex(M)};var C;j.from=function(M){if(!C)C=o8();return C(M,"body")}}),kG=CU((Y,W)=>{var{ObjectSetPrototypeOf:V,Symbol:z}=BU();W.exports=j;var{ERR_METHOD_NOT_IMPLEMENTED:O}=oU().codes,A=LZ(),{getHighWaterMark:G}=OX();V(j.prototype,A.prototype),V(j,A);var v=z("kCallback");function j(C){if(!(this instanceof j))return new j(C);let M=C?G(this,C,"readableHighWaterMark",!0):null;if(M===0)C={...C,highWaterMark:null,readableHighWaterMark:M,writableHighWaterMark:C.writableHighWaterMark||0};if(A.call(this,C),this._readableState.sync=!1,this[v]=null,C){if(typeof C.transform==="function")this._transform=C.transform;if(typeof C.flush==="function")this._flush=C.flush}this.on("prefinish",q)}function E(C){if(typeof this._flush==="function"&&!this.destroyed)this._flush((M,F)=>{if(M){if(C)C(M);else this.destroy(M);return}if(F!=null)this.push(F);if(this.push(null),C)C()});else if(this.push(null),C)C()}function q(){if(this._final!==E)E.call(this)}j.prototype._final=E,j.prototype._transform=function(C,M,F){throw new O("_transform()")},j.prototype._write=function(C,M,F){let D=this._readableState,S=this._writableState,P=D.length;this._transform(C,M,(k,x)=>{if(k){F(k);return}if(x!=null)this.push(x);if(S.ended||P===D.length||D.length<D.highWaterMark)F();else this[v]=F})},j.prototype._read=function(){if(this[v]){let C=this[v];this[v]=null,C()}}}),xG=CU((Y,W)=>{var{ObjectSetPrototypeOf:V}=BU();W.exports=O;var z=kG();V(O.prototype,z.prototype),V(O,z);function O(A){if(!(this instanceof O))return new O(A);z.call(this,A)}O.prototype._transform=function(A,G,v){v(null,A)}}),E1=CU((Y,W)=>{var V=oZ(),{ArrayIsArray:z,Promise:O,SymbolAsyncIterator:A,SymbolDispose:G}=BU(),v=vZ(),{once:j}=rU(),E=VQ(),q=LZ(),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:M,ERR_INVALID_RETURN_VALUE:F,ERR_MISSING_ARGS:D,ERR_STREAM_DESTROYED:S,ERR_STREAM_PREMATURE_CLOSE:P},AbortError:k}=oU(),{validateFunction:x,validateAbortSignal:f}=_Q(),{isIterable:h,isReadable:c,isReadableNodeStream:m,isNodeStream:g,isTransformStream:Q0,isWebStream:J0,isReadableStream:r,isReadableFinished:O0}=AZ(),U=globalThis.AbortController||xQ().AbortController,X,$,Q;function K(u,s,Y0){let M0=!1;u.on("close",()=>{M0=!0});let n=v(u,{readable:s,writable:Y0},(b)=>{M0=!b});return{destroy:(b)=>{if(M0)return;M0=!0,E.destroyer(u,b||new S("pipe"))},cleanup:n}}function L(u){return x(u[u.length-1],"streams[stream.length - 1]"),u.pop()}function T(u){if(h(u))return u;else if(m(u))return I(u);throw new M("val",["Readable","Iterable","AsyncIterable"],u)}async function*I(u){if(!$)$=FX();yield*$.prototype[A].call(u)}async function Z(u,s,Y0,{end:M0}){let n,b=null,a=(A0)=>{if(A0)n=A0;if(b){let o=b;b=null,o()}},l=()=>new O((A0,o)=>{if(n)o(n);else b=()=>{if(n)o(n);else A0()}});s.on("drain",a);let G0=v(s,{readable:!1},a);try{if(s.writableNeedDrain)await l();for await(let A0 of u)if(!s.write(A0))await l();if(M0)s.end(),await l();Y0()}catch(A0){Y0(n!==A0?C(n,A0):A0)}finally{G0(),s.off("drain",a)}}async function H(u,s,Y0,{end:M0}){if(Q0(s))s=s.writable;let n=s.getWriter();try{for await(let b of u)await n.ready,n.write(b).catch(()=>{});if(await n.ready,M0)await n.close();Y0()}catch(b){try{await n.abort(b),Y0(b)}catch(a){Y0(a)}}}function N(...u){return B(u,j(L(u)))}function B(u,s,Y0){if(u.length===1&&z(u[0]))u=u[0];if(u.length<2)throw new D("streams");let M0=new U,n=M0.signal,b=Y0===null||Y0===void 0?void 0:Y0.signal,a=[];f(b,"options.signal");function l(){U0(new k)}Q=Q||rU().addAbortListener;let G0;if(b)G0=Q(b,l);let A0,o,t=[],V0=0;function z0(F0){U0(F0,--V0===0)}function U0(F0,D0){var i0;if(F0&&(!A0||A0.code==="ERR_STREAM_PREMATURE_CLOSE"))A0=F0;if(!A0&&!D0)return;while(t.length)t.shift()(A0);if((i0=G0)===null||i0===void 0||i0[G](),M0.abort(),D0){if(!A0)a.forEach((i)=>i());V.nextTick(s,A0,o)}}let x0;for(let F0=0;F0<u.length;F0++){let D0=u[F0],i0=F0<u.length-1,i=F0>0,W0=i0||(Y0===null||Y0===void 0?void 0:Y0.end)!==!1,v0=F0===u.length-1;if(g(D0)){let q0=function(S0){if(S0&&S0.name!=="AbortError"&&S0.code!=="ERR_STREAM_PREMATURE_CLOSE")z0(S0)};var e=q0;if(W0){let{destroy:S0,cleanup:e0}=K(D0,i0,i);if(t.push(S0),c(D0)&&v0)a.push(e0)}if(D0.on("error",q0),c(D0)&&v0)a.push(()=>{D0.removeListener("error",q0)})}if(F0===0)if(typeof D0==="function"){if(x0=D0({signal:n}),!h(x0))throw new F("Iterable, AsyncIterable or Stream","source",x0)}else if(h(D0)||m(D0)||Q0(D0))x0=D0;else x0=q.from(D0);else if(typeof D0==="function"){if(Q0(x0)){var H0;x0=T((H0=x0)===null||H0===void 0?void 0:H0.readable)}else x0=T(x0);if(x0=D0(x0,{signal:n}),i0){if(!h(x0,!0))throw new F("AsyncIterable",`transform[${F0-1}]`,x0)}else{var p0;if(!X)X=xG();let q0=new X({objectMode:!0}),S0=(p0=x0)===null||p0===void 0?void 0:p0.then;if(typeof S0==="function")V0++,S0.call(x0,(B0)=>{if(o=B0,B0!=null)q0.write(B0);if(W0)q0.end();V.nextTick(z0)},(B0)=>{q0.destroy(B0),V.nextTick(z0,B0)});else if(h(x0,!0))V0++,Z(x0,q0,z0,{end:W0});else if(r(x0)||Q0(x0)){let B0=x0.readable||x0;V0++,Z(B0,q0,z0,{end:W0})}else throw new F("AsyncIterable or Promise","destination",x0);x0=q0;let{destroy:e0,cleanup:j0}=K(x0,!1,!0);if(t.push(e0),v0)a.push(j0)}}else if(g(D0)){if(m(x0)){V0+=2;let q0=w(x0,D0,z0,{end:W0});if(c(D0)&&v0)a.push(q0)}else if(Q0(x0)||r(x0)){let q0=x0.readable||x0;V0++,Z(q0,D0,z0,{end:W0})}else if(h(x0))V0++,Z(x0,D0,z0,{end:W0});else throw new M("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],x0);x0=D0}else if(J0(D0)){if(m(x0))V0++,H(T(x0),D0,z0,{end:W0});else if(r(x0)||h(x0))V0++,H(x0,D0,z0,{end:W0});else if(Q0(x0))V0++,H(x0.readable,D0,z0,{end:W0});else throw new M("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],x0);x0=D0}else x0=q.from(D0)}if(n!==null&&n!==void 0&&n.aborted||b!==null&&b!==void 0&&b.aborted)V.nextTick(l);return x0}function w(u,s,Y0,{end:M0}){let n=!1;if(s.on("close",()=>{if(!n)Y0(new P)}),u.pipe(s,{end:!1}),M0){let a=function(){n=!0,s.end()};var b=a;if(O0(u))V.nextTick(a);else u.once("end",a)}else Y0();return v(u,{readable:!0,writable:!1},(a)=>{let l=u._readableState;if(a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&l&&l.ended&&!l.errored&&!l.errorEmitted)u.once("end",Y0).once("error",Y0);else Y0(a)}),v(s,{readable:!1,writable:!0},Y0)}W.exports={pipelineImpl:B,pipeline:N}}),_G=CU((Y,W)=>{var{pipeline:V}=E1(),z=LZ(),{destroyer:O}=VQ(),{isNodeStream:A,isReadable:G,isWritable:v,isWebStream:j,isTransformStream:E,isWritableStream:q,isReadableStream:C}=AZ(),{AbortError:M,codes:{ERR_INVALID_ARG_VALUE:F,ERR_MISSING_ARGS:D}}=oU(),S=vZ();W.exports=function(...P){if(P.length===0)throw new D("streams");if(P.length===1)return z.from(P[0]);let k=[...P];if(typeof P[0]==="function")P[0]=z.from(P[0]);if(typeof P[P.length-1]==="function"){let U=P.length-1;P[U]=z.from(P[U])}for(let U=0;U<P.length;++U){if(!A(P[U])&&!j(P[U]))continue;if(U<P.length-1&&!(G(P[U])||C(P[U])||E(P[U])))throw new F(`streams[${U}]`,k[U],"must be readable");if(U>0&&!(v(P[U])||q(P[U])||E(P[U])))throw new F(`streams[${U}]`,k[U],"must be writable")}let x,f,h,c,m;function g(U){let X=c;if(c=null,X)X(U);else if(U)m.destroy(U);else if(!O0&&!r)m.destroy()}let Q0=P[0],J0=V(P,g),r=!!(v(Q0)||q(Q0)||E(Q0)),O0=!!(G(J0)||C(J0)||E(J0));if(m=new z({writableObjectMode:!!(Q0!==null&&Q0!==void 0&&Q0.writableObjectMode),readableObjectMode:!!(J0!==null&&J0!==void 0&&J0.readableObjectMode),writable:r,readable:O0}),r){if(A(Q0))m._write=function(X,$,Q){if(Q0.write(X,$))Q();else x=Q},m._final=function(X){Q0.end(),f=X},Q0.on("drain",function(){if(x){let X=x;x=null,X()}});else if(j(Q0)){let X=(E(Q0)?Q0.writable:Q0).getWriter();m._write=async function($,Q,K){try{await X.ready,X.write($).catch(()=>{}),K()}catch(L){K(L)}},m._final=async function($){try{await X.ready,X.close().catch(()=>{}),f=$}catch(Q){$(Q)}}}let U=E(J0)?J0.readable:J0;S(U,()=>{if(f){let X=f;f=null,X()}})}if(O0){if(A(J0))J0.on("readable",function(){if(h){let U=h;h=null,U()}}),J0.on("end",function(){m.push(null)}),m._read=function(){while(!0){let U=J0.read();if(U===null){h=m._read;return}if(!m.push(U))return}};else if(j(J0)){let U=(E(J0)?J0.readable:J0).getReader();m._read=async function(){while(!0)try{let{value:X,done:$}=await U.read();if(!m.push(X))return;if($){m.push(null);return}}catch{return}}}}return m._destroy=function(U,X){if(!U&&c!==null)U=new M;if(h=null,x=null,f=null,c===null)X(U);else if(c=X,A(J0))O(J0,U)},m}}),n8=CU((Y,W)=>{var V=globalThis.AbortController||xQ().AbortController,{codes:{ERR_INVALID_ARG_VALUE:z,ERR_INVALID_ARG_TYPE:O,ERR_MISSING_ARGS:A,ERR_OUT_OF_RANGE:G},AbortError:v}=oU(),{validateAbortSignal:j,validateInteger:E,validateObject:q}=_Q(),C=BU().Symbol("kWeak"),M=BU().Symbol("kResistStopPropagation"),{finished:F}=vZ(),D=_G(),{addAbortSignalNoValidate:S}=IX(),{isWritable:P,isNodeStream:k}=AZ(),{deprecate:x}=rU(),{ArrayPrototypePush:f,Boolean:h,MathFloor:c,Number:m,NumberIsNaN:g,Promise:Q0,PromiseReject:J0,PromiseResolve:r,PromisePrototypeThen:O0,Symbol:U}=BU(),X=U("kEmpty"),$=U("kEof");function Q(b,a){if(a!=null)q(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)j(a.signal,"options.signal");if(k(b)&&!P(b))throw new z("stream",b,"must be writable");let l=D(this,b);if(a!==null&&a!==void 0&&a.signal)S(a.signal,l);return l}function K(b,a){if(typeof b!=="function")throw new O("fn",["Function","AsyncFunction"],b);if(a!=null)q(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)j(a.signal,"options.signal");let l=1;if((a===null||a===void 0?void 0:a.concurrency)!=null)l=c(a.concurrency);let G0=l-1;if((a===null||a===void 0?void 0:a.highWaterMark)!=null)G0=c(a.highWaterMark);return E(l,"options.concurrency",1),E(G0,"options.highWaterMark",0),G0+=l,async function*(){let A0=rU().AbortSignalAny([a===null||a===void 0?void 0:a.signal].filter(h)),o=this,t=[],V0={signal:A0},z0,U0,x0=!1,e=0;function H0(){x0=!0,p0()}function p0(){e-=1,F0()}function F0(){if(U0&&!x0&&e<l&&t.length<G0)U0(),U0=null}async function D0(){try{for await(let i0 of o){if(x0)return;if(A0.aborted)throw new v;try{if(i0=b(i0,V0),i0===X)continue;i0=r(i0)}catch(i){i0=J0(i)}if(e+=1,O0(i0,p0,H0),t.push(i0),z0)z0(),z0=null;if(!x0&&(t.length>=G0||e>=l))await new Q0((i)=>{U0=i})}t.push($)}catch(i0){let i=J0(i0);O0(i,p0,H0),t.push(i)}finally{if(x0=!0,z0)z0(),z0=null}}D0();try{while(!0){while(t.length>0){let i0=await t[0];if(i0===$)return;if(A0.aborted)throw new v;if(i0!==X)yield i0;t.shift(),F0()}await new Q0((i0)=>{z0=i0})}}finally{if(x0=!0,U0)U0(),U0=null}}.call(this)}function L(b=void 0){if(b!=null)q(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)j(b.signal,"options.signal");return async function*(){let a=0;for await(let G0 of this){var l;if(b!==null&&b!==void 0&&(l=b.signal)!==null&&l!==void 0&&l.aborted)throw new v({cause:b.signal.reason});yield[a++,G0]}}.call(this)}async function T(b,a=void 0){for await(let l of N.call(this,b,a))return!0;return!1}async function I(b,a=void 0){if(typeof b!=="function")throw new O("fn",["Function","AsyncFunction"],b);return!await T.call(this,async(...l)=>{return!await b(...l)},a)}async function Z(b,a){for await(let l of N.call(this,b,a))return l;return}async function H(b,a){if(typeof b!=="function")throw new O("fn",["Function","AsyncFunction"],b);async function l(G0,A0){return await b(G0,A0),X}for await(let G0 of K.call(this,l,a));}function N(b,a){if(typeof b!=="function")throw new O("fn",["Function","AsyncFunction"],b);async function l(G0,A0){if(await b(G0,A0))return G0;return X}return K.call(this,l,a)}class B extends A{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function w(b,a,l){var G0;if(typeof b!=="function")throw new O("reducer",["Function","AsyncFunction"],b);if(l!=null)q(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)j(l.signal,"options.signal");let A0=arguments.length>1;if(l!==null&&l!==void 0&&(G0=l.signal)!==null&&G0!==void 0&&G0.aborted){let U0=new v(void 0,{cause:l.signal.reason});throw this.once("error",()=>{}),await F(this.destroy(U0)),U0}let o=new V,t=o.signal;if(l!==null&&l!==void 0&&l.signal){let U0={once:!0,[C]:this,[M]:!0};l.signal.addEventListener("abort",()=>o.abort(),U0)}let V0=!1;try{for await(let U0 of this){var z0;if(V0=!0,l!==null&&l!==void 0&&(z0=l.signal)!==null&&z0!==void 0&&z0.aborted)throw new v;if(!A0)a=U0,A0=!0;else a=await b(a,U0,{signal:t})}if(!V0&&!A0)throw new B}finally{o.abort()}return a}async function u(b){if(b!=null)q(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)j(b.signal,"options.signal");let a=[];for await(let G0 of this){var l;if(b!==null&&b!==void 0&&(l=b.signal)!==null&&l!==void 0&&l.aborted)throw new v(void 0,{cause:b.signal.reason});f(a,G0)}return a}function s(b,a){let l=K.call(this,b,a);return async function*(){for await(let G0 of l)yield*G0}.call(this)}function Y0(b){if(b=m(b),g(b))return 0;if(b<0)throw new G("number",">= 0",b);return b}function M0(b,a=void 0){if(a!=null)q(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)j(a.signal,"options.signal");return b=Y0(b),async function*(){var l;if(a!==null&&a!==void 0&&(l=a.signal)!==null&&l!==void 0&&l.aborted)throw new v;for await(let A0 of this){var G0;if(a!==null&&a!==void 0&&(G0=a.signal)!==null&&G0!==void 0&&G0.aborted)throw new v;if(b--<=0)yield A0}}.call(this)}function n(b,a=void 0){if(a!=null)q(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)j(a.signal,"options.signal");return b=Y0(b),async function*(){var l;if(a!==null&&a!==void 0&&(l=a.signal)!==null&&l!==void 0&&l.aborted)throw new v;for await(let A0 of this){var G0;if(a!==null&&a!==void 0&&(G0=a.signal)!==null&&G0!==void 0&&G0.aborted)throw new v;if(b-- >0)yield A0;if(b<=0)return}}.call(this)}W.exports.streamReturningOperators={asIndexedPairs:x(L,"readable.asIndexedPairs will be removed in a future version."),drop:M0,filter:N,flatMap:s,map:K,take:n,compose:Q},W.exports.promiseReturningOperators={every:I,forEach:H,reduce:w,toArray:u,some:T,find:Z}}),wG=CU((Y,W)=>{var{ArrayPrototypePop:V,Promise:z}=BU(),{isIterable:O,isNodeStream:A,isWebStream:G}=AZ(),{pipelineImpl:v}=E1(),{finished:j}=vZ();gG();function E(...q){return new z((C,M)=>{let F,D,S=q[q.length-1];if(S&&typeof S==="object"&&!A(S)&&!O(S)&&!G(S)){let P=V(q);F=P.signal,D=P.end}v(q,(P,k)=>{if(P)M(P);else C(k)},{signal:F,end:D})})}W.exports={finished:j,pipeline:E}}),gG=CU((Y,W)=>{var{Buffer:V}=(lU(),WU(dU)),{ObjectDefineProperty:z,ObjectKeys:O,ReflectApply:A}=BU(),{promisify:{custom:G}}=rU(),{streamReturningOperators:v,promiseReturningOperators:j}=n8(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:E}}=oU(),q=_G(),{setDefaultHighWaterMark:C,getDefaultHighWaterMark:M}=OX(),{pipeline:F}=E1(),{destroyer:D}=VQ(),S=vZ(),P=wG(),k=AZ(),x=W.exports=R1().Stream;x.isDestroyed=k.isDestroyed,x.isDisturbed=k.isDisturbed,x.isErrored=k.isErrored,x.isReadable=k.isReadable,x.isWritable=k.isWritable,x.Readable=FX();for(let h of O(v)){let c=function(...g){if(new.target)throw E();return x.Readable.from(A(m,this,g))},m=v[h];z(c,"name",{__proto__:null,value:m.name}),z(c,"length",{__proto__:null,value:m.length}),z(x.Readable.prototype,h,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}for(let h of O(j)){let c=function(...g){if(new.target)throw E();return A(m,this,g)},m=j[h];z(c,"name",{__proto__:null,value:m.name}),z(c,"length",{__proto__:null,value:m.length}),z(x.Readable.prototype,h,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}x.Writable=S1(),x.Duplex=LZ(),x.Transform=kG(),x.PassThrough=xG(),x.pipeline=F;var{addAbortSignal:f}=IX();x.addAbortSignal=f,x.finished=S,x.destroy=D,x.compose=q,x.setDefaultHighWaterMark=C,x.getDefaultHighWaterMark=M,z(x,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return P}}),z(F,G,{__proto__:null,enumerable:!0,get(){return P.pipeline}}),z(S,G,{__proto__:null,enumerable:!0,get(){return P.finished}}),x.Stream=x,x._isUint8Array=function(h){return h instanceof Uint8Array},x._uint8ArrayToBuffer=function(h){return V.from(h.buffer,h.byteOffset,h.byteLength)}}),s8=CU((Y,W)=>{var V=P1();{let z=gG(),O=wG(),A=z.Readable.destroy;W.exports=z.Readable,W.exports._uint8ArrayToBuffer=z._uint8ArrayToBuffer,W.exports._isUint8Array=z._isUint8Array,W.exports.isDisturbed=z.isDisturbed,W.exports.isErrored=z.isErrored,W.exports.isReadable=z.isReadable,W.exports.Readable=z.Readable,W.exports.Writable=z.Writable,W.exports.Duplex=z.Duplex,W.exports.Transform=z.Transform,W.exports.PassThrough=z.PassThrough,W.exports.addAbortSignal=z.addAbortSignal,W.exports.finished=z.finished,W.exports.destroy=z.destroy,W.exports.destroy=A,W.exports.pipeline=z.pipeline,W.exports.compose=z.compose,Object.defineProperty(z,"promises",{configurable:!0,enumerable:!0,get(){return O}}),W.exports.Stream=z.Stream}W.exports.default=W.exports});fG.exports=s8()});var aU={};OZ(aU,{webcrypto:()=>qF,rng:()=>_O,randomUUID:()=>LF,randomFillSync:()=>OF,randomFill:()=>IF,randomBytes:()=>wO,publicEncrypt:()=>VF,publicDecrypt:()=>$F,pseudoRandomBytes:()=>xO,prng:()=>kO,privateEncrypt:()=>KF,privateDecrypt:()=>HF,pbkdf2Sync:()=>bO,pbkdf2:()=>cO,listCiphers:()=>tO,getRandomValues:()=>DF,getHashes:()=>pO,getDiffieHellman:()=>UF,getCurves:()=>AF,getCiphers:()=>aO,default:()=>TF,createVerify:()=>YF,createSign:()=>XF,createHmac:()=>hO,createHash:()=>fO,createECDH:()=>WF,createDiffieHellmanGroup:()=>eO,createDiffieHellman:()=>ZF,createDecipheriv:()=>rO,createDecipher:()=>nO,createCredentials:()=>FF,createCipheriv:()=>mO,createCipher:()=>dO,constants:()=>zF,Verify:()=>GF,Sign:()=>JF,Hmac:()=>yO,Hash:()=>gO,DiffieHellmanGroup:()=>iO,DiffieHellman:()=>QF,Decipheriv:()=>sO,Decipher:()=>oO,DEFAULT_ENCODING:()=>CF,Cipheriv:()=>lO,Cipher:()=>uO});function AF(){return MF}var r8,a8,yG,t8,i8,e8=(Y,W,V)=>{V=Y!=null?r8(a8(Y)):{};let z=W||!Y||!Y.__esModule?yG(V,"default",{value:Y,enumerable:!0}):V;for(let O of t8(Y))if(!i8.call(z,O))yG(z,O,{get:()=>Y[O],enumerable:!0});return z},k0=(Y,W)=>()=>(W||Y((W={exports:{}}).exports,W),W.exports),zX,CX,pG,UI,B1,N1,nU,ZI,gQ,cG,QI,XI,JI,YI,bG,GI,WI,VI,KI,$I,HI,II,OI,FI,zI,fQ,DX,uG,CI,dG,lG,DI,yQ,v1,k1,LI,mG,x1,MI,oG,AI,nG,sG,qI,TI,RI,SI,EI,PI,jI,BI,NI,vI,kI,xI,_I,wI,_1,rG,gI,aG,fI,yI,hI,pI,qZ,kZ,tG,JZ,iG,LX,cI,UZ,bI,uI,dI,eG,KZ,hQ,UW,lI,ZW,mI,QW,oI,nI,sI,rI,w1,aI,g1,tI,iI,eI,UO,ZO,QO,XO,JO,YO,GO,WO,VO,KO,$O,hG,HO,wQ,IO,XW,JW,OO,FO,YW,zO,CO,pQ,DO,LO,MO,AO,qO,TO,GW,RO,WW,VW,KW,f1,$W,SO,HW,EO,PO,j1,jO,BO,NO,vO,HU,kO,xO,_O,wO,gO,fO,yO,hO,pO,cO,bO,uO,dO,lO,mO,oO,nO,sO,rO,aO,tO,iO,eO,UF,ZF,QF,XF,JF,YF,GF,WF,VF,KF,$F,HF,IF,OF,FF,zF,CF="buffer",DF=(Y)=>{return crypto.getRandomValues(Y)},LF=()=>{return crypto.randomUUID()},MF,qF,TF;var tU=FZ(()=>{r8=Object.create,{getPrototypeOf:a8,defineProperty:yG,getOwnPropertyNames:t8}=Object,i8=Object.prototype.hasOwnProperty,zX=k0((Y,W)=>{W.exports=(tU(),WU(aU)).randomBytes}),CX=k0((Y,W)=>{W.exports=(tU(),WU(aU)).createHash}),pG=k0((Y,W)=>{W.exports=(tU(),WU(aU)).createHmac}),UI=k0((Y,W)=>{W.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"}}}),B1=k0((Y,W)=>{var V=isFinite,z=Math.pow(2,30)-1;W.exports=function(O,A){if(typeof O!=="number")throw TypeError("Iterations not a number");if(O<0||!V(O))throw TypeError("Bad iterations");if(typeof A!=="number")throw TypeError("Key length not a number");if(A<0||A>z||A!==A)throw TypeError("Bad key length")}}),N1=k0((Y,W)=>{var V;if(globalThis.process&&globalThis.process.browser)V="utf-8";else if(globalThis.process&&globalThis.process.version)z=parseInt(process.version.split(".")[0].slice(1),10),V=z>=6?"utf-8":"binary";else V="utf-8";var z;W.exports=V}),nU=k0((Y,W)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var V=(lU(),WU(dU)),z=V.Buffer;function O(G,v){for(var j in G)v[j]=G[j]}if(z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow)W.exports=V;else O(V,Y),Y.Buffer=A;function A(G,v,j){return z(G,v,j)}A.prototype=Object.create(z.prototype),O(z,A),A.from=function(G,v,j){if(typeof G==="number")throw TypeError("Argument must not be a number");return z(G,v,j)},A.alloc=function(G,v,j){if(typeof G!=="number")throw TypeError("Argument must be a number");var E=z(G);if(v!==void 0)if(typeof j==="string")E.fill(v,j);else E.fill(v);else E.fill(0);return E},A.allocUnsafe=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return z(G)},A.allocUnsafeSlow=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return V.SlowBuffer(G)}}),ZI=k0((Y,W)=>{var V={}.toString;W.exports=Array.isArray||function(z){return V.call(z)=="[object Array]"}}),gQ=k0((Y,W)=>{W.exports=TypeError}),cG=k0((Y,W)=>{W.exports=Object}),QI=k0((Y,W)=>{W.exports=Error}),XI=k0((Y,W)=>{W.exports=EvalError}),JI=k0((Y,W)=>{W.exports=RangeError}),YI=k0((Y,W)=>{W.exports=ReferenceError}),bG=k0((Y,W)=>{W.exports=SyntaxError}),GI=k0((Y,W)=>{W.exports=URIError}),WI=k0((Y,W)=>{W.exports=Math.abs}),VI=k0((Y,W)=>{W.exports=Math.floor}),KI=k0((Y,W)=>{W.exports=Math.max}),$I=k0((Y,W)=>{W.exports=Math.min}),HI=k0((Y,W)=>{W.exports=Math.pow}),II=k0((Y,W)=>{W.exports=Math.round}),OI=k0((Y,W)=>{W.exports=Number.isNaN||function(V){return V!==V}}),FI=k0((Y,W)=>{var V=OI();W.exports=function(z){if(V(z)||z===0)return z;return z<0?-1:1}}),zI=k0((Y,W)=>{W.exports=Object.getOwnPropertyDescriptor}),fQ=k0((Y,W)=>{var V=zI();if(V)try{V([],"length")}catch(z){V=null}W.exports=V}),DX=k0((Y,W)=>{var V=Object.defineProperty||!1;if(V)try{V({},"a",{value:1})}catch(z){V=!1}W.exports=V}),uG=k0((Y,W)=>{W.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var V={},z=Symbol("test"),O=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(O)!=="[object Symbol]")return!1;var A=42;V[z]=A;for(var G in V)return!1;if(typeof Object.keys==="function"&&Object.keys(V).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(V).length!==0)return!1;var v=Object.getOwnPropertySymbols(V);if(v.length!==1||v[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(V,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var j=Object.getOwnPropertyDescriptor(V,z);if(j.value!==A||j.enumerable!==!0)return!1}return!0}}),CI=k0((Y,W)=>{var V=typeof Symbol<"u"&&Symbol,z=uG();W.exports=function(){if(typeof V!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof V("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return z()}}),dG=k0((Y,W)=>{W.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),lG=k0((Y,W)=>{var V=cG();W.exports=V.getPrototypeOf||null}),DI=k0((Y,W)=>{var V="Function.prototype.bind called on incompatible ",z=Object.prototype.toString,O=Math.max,A="[object Function]",G=function(E,q){var C=[];for(var M=0;M<E.length;M+=1)C[M]=E[M];for(var F=0;F<q.length;F+=1)C[F+E.length]=q[F];return C},v=function(E,q){var C=[];for(var M=q||0,F=0;M<E.length;M+=1,F+=1)C[F]=E[M];return C},j=function(E,q){var C="";for(var M=0;M<E.length;M+=1)if(C+=E[M],M+1<E.length)C+=q;return C};W.exports=function(E){var q=this;if(typeof q!=="function"||z.apply(q)!==A)throw TypeError(V+q);var C=v(arguments,1),M,F=function(){if(this instanceof M){var x=q.apply(this,G(C,arguments));if(Object(x)===x)return x;return this}return q.apply(E,G(C,arguments))},D=O(0,q.length-C.length),S=[];for(var P=0;P<D;P++)S[P]="$"+P;if(M=Function("binder","return function ("+j(S,",")+"){ return binder.apply(this,arguments); }")(F),q.prototype){var k=function(){};k.prototype=q.prototype,M.prototype=new k,k.prototype=null}return M}}),yQ=k0((Y,W)=>{var V=DI();W.exports=Function.prototype.bind||V}),v1=k0((Y,W)=>{W.exports=Function.prototype.call}),k1=k0((Y,W)=>{W.exports=Function.prototype.apply}),LI=k0((Y,W)=>{W.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),mG=k0((Y,W)=>{var V=yQ(),z=k1(),O=v1(),A=LI();W.exports=A||V.call(O,z)}),x1=k0((Y,W)=>{var V=yQ(),z=gQ(),O=v1(),A=mG();W.exports=function(G){if(G.length<1||typeof G[0]!=="function")throw new z("a function is required");return A(V,O,G)}}),MI=k0((Y,W)=>{var V=x1(),z=fQ(),O;try{O=[].__proto__===Array.prototype}catch(j){if(!j||typeof j!=="object"||!("code"in j)||j.code!=="ERR_PROTO_ACCESS")throw j}var A=!!O&&z&&z(Object.prototype,"__proto__"),G=Object,v=G.getPrototypeOf;W.exports=A&&typeof A.get==="function"?V([A.get]):typeof v==="function"?function(j){return v(j==null?j:G(j))}:!1}),oG=k0((Y,W)=>{var V=dG(),z=lG(),O=MI();W.exports=V?function(A){return V(A)}:z?function(A){if(!A||typeof A!=="object"&&typeof A!=="function")throw TypeError("getProto: not an object");return z(A)}:O?function(A){return O(A)}:null}),AI=k0((Y,W)=>{var V=Function.prototype.call,z=Object.prototype.hasOwnProperty,O=yQ();W.exports=O.call(V,z)}),nG=k0((Y,W)=>{var V,z=cG(),O=QI(),A=XI(),G=JI(),v=YI(),j=bG(),E=gQ(),q=GI(),C=WI(),M=VI(),F=KI(),D=$I(),S=HI(),P=II(),k=FI(),x=Function,f=function(a){try{return x('"use strict"; return ('+a+").constructor;")()}catch(l){}},h=fQ(),c=DX(),m=function(){throw new E},g=h?function(){try{return arguments.callee,m}catch(a){try{return h(arguments,"callee").get}catch(l){return m}}}():m,Q0=CI()(),J0=oG(),r=lG(),O0=dG(),U=k1(),X=v1(),$={},Q=typeof Uint8Array>"u"||!J0?V:J0(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":Q0&&J0?J0([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":O,"%eval%":eval,"%EvalError%":A,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q0&&J0?J0(J0([][Symbol.iterator]())):V,"%JSON%":typeof JSON==="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Q0||!J0?V:J0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":z,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":G,"%ReferenceError%":v,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Q0||!J0?V:J0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q0&&J0?J0(""[Symbol.iterator]()):V,"%Symbol%":Q0?Symbol:V,"%SyntaxError%":j,"%ThrowTypeError%":g,"%TypedArray%":Q,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":q,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":U,"%Object.defineProperty%":c,"%Object.getPrototypeOf%":r,"%Math.abs%":C,"%Math.floor%":M,"%Math.max%":F,"%Math.min%":D,"%Math.pow%":S,"%Math.round%":P,"%Math.sign%":k,"%Reflect.getPrototypeOf%":O0};if(J0)try{null.error}catch(a){L=J0(J0(a)),K["%Error.prototype%"]=L}var L,T=function a(l){var G0;if(l==="%AsyncFunction%")G0=f("async function () {}");else if(l==="%GeneratorFunction%")G0=f("function* () {}");else if(l==="%AsyncGeneratorFunction%")G0=f("async function* () {}");else if(l==="%AsyncGenerator%"){var A0=a("%AsyncGeneratorFunction%");if(A0)G0=A0.prototype}else if(l==="%AsyncIteratorPrototype%"){var o=a("%AsyncGenerator%");if(o&&J0)G0=J0(o.prototype)}return K[l]=G0,G0},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=yQ(),H=AI(),N=Z.call(X,Array.prototype.concat),B=Z.call(U,Array.prototype.splice),w=Z.call(X,String.prototype.replace),u=Z.call(X,String.prototype.slice),s=Z.call(X,RegExp.prototype.exec),Y0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M0=/\\(\\)?/g,n=function(a){var l=u(a,0,1),G0=u(a,-1);if(l==="%"&&G0!=="%")throw new j("invalid intrinsic syntax, expected closing `%`");else if(G0==="%"&&l!=="%")throw new j("invalid intrinsic syntax, expected opening `%`");var A0=[];return w(a,Y0,function(o,t,V0,z0){A0[A0.length]=V0?w(z0,M0,"$1"):t||o}),A0},b=function(a,l){var G0=a,A0;if(H(I,G0))A0=I[G0],G0="%"+A0[0]+"%";if(H(K,G0)){var o=K[G0];if(o===$)o=T(G0);if(typeof o>"u"&&!l)throw new E("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:A0,name:G0,value:o}}throw new j("intrinsic "+a+" does not exist!")};W.exports=function(a,l){if(typeof a!=="string"||a.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof l!=="boolean")throw new E('"allowMissing" argument must be a boolean');if(s(/^%?[^%]*%?$/,a)===null)throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G0=n(a),A0=G0.length>0?G0[0]:"",o=b("%"+A0+"%",l),t=o.name,V0=o.value,z0=!1,U0=o.alias;if(U0)A0=U0[0],B(G0,N([0,1],U0));for(var x0=1,e=!0;x0<G0.length;x0+=1){var H0=G0[x0],p0=u(H0,0,1),F0=u(H0,-1);if((p0==='"'||p0==="'"||p0==="`"||(F0==='"'||F0==="'"||F0==="`"))&&p0!==F0)throw new j("property names with quotes must have matching quotes");if(H0==="constructor"||!e)z0=!0;if(A0+="."+H0,t="%"+A0+"%",H(K,t))V0=K[t];else if(V0!=null){if(!(H0 in V0)){if(!l)throw new E("base intrinsic for "+a+" exists, but the property is not available.");return}if(h&&x0+1>=G0.length){var D0=h(V0,H0);if(e=!!D0,e&&"get"in D0&&!("originalValue"in D0.get))V0=D0.get;else V0=V0[H0]}else e=H(V0,H0),V0=V0[H0];if(e&&!z0)K[t]=V0}}return V0}}),sG=k0((Y,W)=>{var V=nG(),z=x1(),O=z([V("%String.prototype.indexOf%")]);W.exports=function(A,G){var v=V(A,!!G);if(typeof v==="function"&&O(A,".prototype.")>-1)return z([v]);return v}}),qI=k0((Y,W)=>{var V=Function.prototype.toString,z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,O,A;if(typeof z==="function"&&typeof Object.defineProperty==="function")try{O=Object.defineProperty({},"length",{get:function(){throw A}}),A={},z(function(){throw 42},null,O)}catch(h){if(h!==A)z=null}else z=null;var G=/^\s*class\b/,v=function(h){try{var c=V.call(h);return G.test(c)}catch(m){return!1}},j=function(h){try{if(v(h))return!1;return V.call(h),!0}catch(c){return!1}},E=Object.prototype.toString,q="[object Object]",C="[object Function]",M="[object GeneratorFunction]",F="[object HTMLAllCollection]",D="[object HTML document.all class]",S="[object HTMLCollection]",P=typeof Symbol==="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document==="object"){if(f=document.all,E.call(f)===E.call(document.all))x=function(h){if((k||!h)&&(typeof h>"u"||typeof h==="object"))try{var c=E.call(h);return(c===F||c===D||c===S||c===q)&&h("")==null}catch(m){}return!1}}var f;W.exports=z?function(h){if(x(h))return!0;if(!h)return!1;if(typeof h!=="function"&&typeof h!=="object")return!1;try{z(h,null,O)}catch(c){if(c!==A)return!1}return!v(h)&&j(h)}:function(h){if(x(h))return!0;if(!h)return!1;if(typeof h!=="function"&&typeof h!=="object")return!1;if(P)return j(h);if(v(h))return!1;var c=E.call(h);if(c!==C&&c!==M&&!/^\[object HTML/.test(c))return!1;return j(h)}}),TI=k0((Y,W)=>{var V=qI(),z=Object.prototype.toString,O=Object.prototype.hasOwnProperty,A=function(E,q,C){for(var M=0,F=E.length;M<F;M++)if(O.call(E,M))if(C==null)q(E[M],M,E);else q.call(C,E[M],M,E)},G=function(E,q,C){for(var M=0,F=E.length;M<F;M++)if(C==null)q(E.charAt(M),M,E);else q.call(C,E.charAt(M),M,E)},v=function(E,q,C){for(var M in E)if(O.call(E,M))if(C==null)q(E[M],M,E);else q.call(C,E[M],M,E)};function j(E){return z.call(E)==="[object Array]"}W.exports=function(E,q,C){if(!V(q))throw TypeError("iterator must be a function");var M;if(arguments.length>=3)M=C;if(j(E))A(E,q,M);else if(typeof E==="string")G(E,q,M);else v(E,q,M)}}),RI=k0((Y,W)=>{W.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),SI=k0((Y,W)=>{var V=RI(),z=typeof globalThis>"u"?globalThis:globalThis;W.exports=function(){var O=[];for(var A=0;A<V.length;A++)if(typeof z[V[A]]==="function")O[O.length]=V[A];return O}}),EI=k0((Y,W)=>{var V=DX(),z=bG(),O=gQ(),A=fQ();W.exports=function(G,v,j){if(!G||typeof G!=="object"&&typeof G!=="function")throw new O("`obj` must be an object or a function`");if(typeof v!=="string"&&typeof v!=="symbol")throw new O("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new O("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new O("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new O("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new O("`loose`, if provided, must be a boolean");var E=arguments.length>3?arguments[3]:null,q=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,M=arguments.length>6?arguments[6]:!1,F=!!A&&A(G,v);if(V)V(G,v,{configurable:C===null&&F?F.configurable:!C,enumerable:E===null&&F?F.enumerable:!E,value:j,writable:q===null&&F?F.writable:!q});else if(M||!E&&!q&&!C)G[v]=j;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),PI=k0((Y,W)=>{var V=DX(),z=function(){return!!V};z.hasArrayLengthDefineBug=function(){if(!V)return null;try{return V([],"length",{value:1}).length!==1}catch(O){return!0}},W.exports=z}),jI=k0((Y,W)=>{var V=nG(),z=EI(),O=PI()(),A=fQ(),G=gQ(),v=V("%Math.floor%");W.exports=function(j,E){if(typeof j!=="function")throw new G("`fn` is not a function");if(typeof E!=="number"||E<0||E>4294967295||v(E)!==E)throw new G("`length` must be a positive 32-bit integer");var q=arguments.length>2&&!!arguments[2],C=!0,M=!0;if("length"in j&&A){var F=A(j,"length");if(F&&!F.configurable)C=!1;if(F&&!F.writable)M=!1}if(C||M||!q)if(O)z(j,"length",E,!0,!0);else z(j,"length",E);return j}}),BI=k0((Y,W)=>{var V=yQ(),z=k1(),O=mG();W.exports=function(){return O(V,z,arguments)}}),NI=k0((Y,W)=>{var V=jI(),z=DX(),O=x1(),A=BI();if(W.exports=function(G){var v=O(arguments),j=G.length-(arguments.length-1);return V(v,1+(j>0?j:0),!0)},z)z(W.exports,"apply",{value:A});else W.exports.apply=A}),vI=k0((Y,W)=>{var V=uG();W.exports=function(){return V()&&!!Symbol.toStringTag}}),kI=k0((Y,W)=>{var V=TI(),z=SI(),O=NI(),A=sG(),G=fQ(),v=oG(),j=A("Object.prototype.toString"),E=vI()(),q=typeof globalThis>"u"?globalThis:globalThis,C=z(),M=A("String.prototype.slice"),F=A("Array.prototype.indexOf",!0)||function(k,x){for(var f=0;f<k.length;f+=1)if(k[f]===x)return f;return-1},D={__proto__:null};if(E&&G&&v)V(C,function(k){var x=new q[k];if(Symbol.toStringTag in x&&v){var f=v(x),h=G(f,Symbol.toStringTag);if(!h&&f){var c=v(f);h=G(c,Symbol.toStringTag)}D["$"+k]=O(h.get)}});else V(C,function(k){var x=new q[k],f=x.slice||x.set;if(f)D["$"+k]=O(f)});var S=function(k){var x=!1;return V(D,function(f,h){if(!x)try{if("$"+f(k)===h)x=M(h,1)}catch(c){}}),x},P=function(k){var x=!1;return V(D,function(f,h){if(!x)try{f(k),x=M(h,1)}catch(c){}}),x};W.exports=function(k){if(!k||typeof k!=="object")return!1;if(!E){var x=M(j(k),8,-1);if(F(C,x)>-1)return x;if(x!=="Object")return!1;return P(k)}if(!G)return null;return S(k)}}),xI=k0((Y,W)=>{var V=kI();W.exports=function(z){return!!V(z)}}),_I=k0((Y,W)=>{var V=gQ(),z=sG(),O=z("TypedArray.prototype.buffer",!0),A=xI();W.exports=O||function(G){if(!A(G))throw new V("Not a Typed Array");return G.buffer}}),wI=k0((Y,W)=>{var V=nU().Buffer,z=ZI(),O=_I(),A=ArrayBuffer.isView||function(E){try{return O(E),!0}catch(q){return!1}},G=typeof Uint8Array<"u",v=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",j=v&&(V.prototype instanceof Uint8Array||V.TYPED_ARRAY_SUPPORT);W.exports=function(E,q){if(V.isBuffer(E)){if(E.constructor&&!("isBuffer"in E))return V.from(E);return E}if(typeof E==="string")return V.from(E,q);if(v&&A(E)){if(E.byteLength===0)return V.alloc(0);if(j){var C=V.from(E.buffer,E.byteOffset,E.byteLength);if(C.byteLength===E.byteLength)return C}var M=E instanceof Uint8Array?E:new Uint8Array(E.buffer,E.byteOffset,E.byteLength),F=V.from(M);if(F.length===E.byteLength)return F}if(G&&E instanceof Uint8Array)return V.from(E);var D=z(E);if(D)for(var S=0;S<E.length;S+=1){var P=E[S];if(typeof P!=="number"||P<0||P>255||~~P!==P)throw RangeError("Array items must be numbers in the range 0-255.")}if(D||V.isBuffer(E)&&E.constructor&&typeof E.constructor.isBuffer==="function"&&E.constructor.isBuffer(E))return V.from(E);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),_1=k0((Y,W)=>{var V=nU().Buffer,z=wI(),O=typeof Uint8Array<"u",A=O&&typeof ArrayBuffer<"u",G=A&&ArrayBuffer.isView;W.exports=function(v,j,E){if(typeof v==="string"||V.isBuffer(v)||O&&v instanceof Uint8Array||G&&G(v))return z(v,j);throw TypeError(E+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),rG=k0((Y,W)=>{var V={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},z={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},O=pG(),A=nU().Buffer,G=B1(),v=N1(),j=_1();function E(q,C,M,F,D){G(M,F),q=j(q,v,"Password"),C=j(C,v,"Salt");var S=(D||"sha1").toLowerCase(),P=z[S]||S,k=V[P];if(typeof k!=="number"||!k)throw TypeError("Digest algorithm not supported: "+D);var x=A.allocUnsafe(F),f=A.allocUnsafe(C.length+4);C.copy(f,0,0,C.length);var h=0,c=k,m=Math.ceil(F/c);for(var g=1;g<=m;g++){f.writeUInt32BE(g,C.length);var Q0=O(P,q).update(f).digest(),J0=Q0;for(var r=1;r<M;r++){J0=O(P,q).update(J0).digest();for(var O0=0;O0<c;O0++)Q0[O0]^=J0[O0]}Q0.copy(x,h),h+=c}return x}W.exports=E}),gI=k0((Y,W)=>{var V=nU().Buffer,z=B1(),O=N1(),A=rG(),G=_1(),v,j=globalThis.crypto&&globalThis.crypto.subtle,E={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"},q=[],C;function M(){if(C)return C;if(globalThis.process&&globalThis.process.nextTick)C=globalThis.process.nextTick;else if(globalThis.queueMicrotask)C=globalThis.queueMicrotask;else if(globalThis.setImmediate)C=globalThis.setImmediate;else C=globalThis.setTimeout;return C}function F(P,k,x,f,h){return j.importKey("raw",P,{name:"PBKDF2"},!1,["deriveBits"]).then(function(c){return j.deriveBits({name:"PBKDF2",salt:k,iterations:x,hash:{name:h}},c,f<<3)}).then(function(c){return V.from(c)})}function D(P){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!j||!j.importKey||!j.deriveBits)return Promise.resolve(!1);if(q[P]!==void 0)return q[P];v=v||V.alloc(8);var k=F(v,v,10,128,P).then(function(){return!0},function(){return!1});return q[P]=k,k}function S(P,k){P.then(function(x){M()(function(){k(null,x)})},function(x){M()(function(){k(x)})})}W.exports=function(P,k,x,f,h,c){if(typeof h==="function")c=h,h=void 0;if(z(x,f),P=G(P,O,"Password"),k=G(k,O,"Salt"),typeof c!=="function")throw Error("No callback provided to pbkdf2");h=h||"sha1";var m=E[h.toLowerCase()];if(!m||typeof globalThis.Promise!=="function"){M()(function(){var g;try{g=A(P,k,x,f,h)}catch(Q0){c(Q0);return}c(null,g)});return}S(D(m).then(function(g){if(g)return F(P,k,x,f,m);return A(P,k,x,f,h)}),c)}}),aG=k0((Y)=>{var W=(tU(),WU(aU)),V=B1(),z=N1(),O=_1();function A(v,j,E,q,C,M){if(V(E,q),v=O(v,z,"Password"),j=O(j,z,"Salt"),typeof C==="function")M=C,C="sha1";if(typeof M!=="function")throw Error("No callback provided to pbkdf2");return W.pbkdf2(v,j,E,q,C,M)}function G(v,j,E,q,C){return V(E,q),v=O(v,z,"Password"),j=O(j,z,"Salt"),C=C||"sha1",W.pbkdf2Sync(v,j,E,q,C)}if(!W.pbkdf2Sync||W.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)Y.pbkdf2Sync=rG(),Y.pbkdf2=gI();else Y.pbkdf2Sync=G,Y.pbkdf2=A}),fI=k0((Y)=>{var W=(tU(),WU(aU));Y.createCipher=Y.Cipher=W.createCipher,Y.createCipheriv=Y.Cipheriv=W.createCipheriv,Y.createDecipher=Y.Decipher=W.createDecipher,Y.createDecipheriv=Y.Decipheriv=W.createDecipheriv,Y.listCiphers=Y.getCiphers=W.getCiphers}),yI=k0((Y)=>{var W=(tU(),WU(aU));Y.DiffieHellmanGroup=W.DiffieHellmanGroup,Y.createDiffieHellmanGroup=W.createDiffieHellmanGroup,Y.getDiffieHellman=W.getDiffieHellman,Y.createDiffieHellman=W.createDiffieHellman,Y.DiffieHellman=W.DiffieHellman}),hI=k0((Y)=>{var W=(tU(),WU(aU));Y.createSign=W.createSign,Y.Sign=W.Sign,Y.createVerify=W.createVerify,Y.Verify=W.Verify}),pI=k0((Y,W)=>{W.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"}}}),qZ=k0((Y,W)=>{(function(V,z){function O(U,X){if(!U)throw Error(X||"Assertion failed")}function A(U,X){U.super_=X;var $=function(){};$.prototype=X.prototype,U.prototype=new $,U.prototype.constructor=U}function G(U,X,$){if(G.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(X==="le"||X==="be")$=X,X=10;this._init(U||0,X||10,$||"be")}}if(typeof V==="object")V.exports=G;else z.BN=G;G.BN=G,G.wordSize=26;var v;try{if(typeof window<"u"&&typeof window.Buffer<"u")v=window.Buffer;else v=(lU(),WU(dU)).Buffer}catch(U){}G.isBN=function(U){if(U instanceof G)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===G.wordSize&&Array.isArray(U.words)},G.max=function(U,X){if(U.cmp(X)>0)return U;return X},G.min=function(U,X){if(U.cmp(X)<0)return U;return X},G.prototype._init=function(U,X,$){if(typeof U==="number")return this._initNumber(U,X,$);if(typeof U==="object")return this._initArray(U,X,$);if(X==="hex")X=16;O(X===(X|0)&&X>=2&&X<=36),U=U.toString().replace(/\s+/g,"");var Q=0;if(U[0]==="-")Q++,this.negative=1;if(Q<U.length){if(X===16)this._parseHex(U,Q,$);else if(this._parseBase(U,X,Q),$==="le")this._initArray(this.toArray(),X,$)}},G.prototype._initNumber=function(U,X,$){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 O(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if($!=="le")return;this._initArray(this.toArray(),X,$)},G.prototype._initArray=function(U,X,$){if(O(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 Q=0;Q<this.length;Q++)this.words[Q]=0;var K,L,T=0;if($==="be"){for(Q=U.length-1,K=0;Q>=0;Q-=3)if(L=U[Q]|U[Q-1]<<8|U[Q-2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}else if($==="le"){for(Q=0,K=0;Q<U.length;Q+=3)if(L=U[Q]|U[Q+1]<<8|U[Q+2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}return this.strip()};function j(U,X){var $=U.charCodeAt(X);if($>=65&&$<=70)return $-55;else if($>=97&&$<=102)return $-87;else return $-48&15}function E(U,X,$){var Q=j(U,$);if($-1>=X)Q|=j(U,$-1)<<4;return Q}G.prototype._parseHex=function(U,X,$){this.length=Math.ceil((U.length-X)/6),this.words=Array(this.length);for(var Q=0;Q<this.length;Q++)this.words[Q]=0;var K=0,L=0,T;if($==="be")for(Q=U.length-1;Q>=X;Q-=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8;else{var I=U.length-X;for(Q=I%2===0?X+1:X;Q<U.length;Q+=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8}this.strip()};function q(U,X,$,Q){var K=0,L=Math.min(U.length,$);for(var T=X;T<L;T++){var I=U.charCodeAt(T)-48;if(K*=Q,I>=49)K+=I-49+10;else if(I>=17)K+=I-17+10;else K+=I}return K}G.prototype._parseBase=function(U,X,$){this.words=[0],this.length=1;for(var Q=0,K=1;K<=67108863;K*=X)Q++;Q--,K=K/X|0;var L=U.length-$,T=L%Q,I=Math.min(L,L-T)+$,Z=0;for(var H=$;H<I;H+=Q)if(Z=q(U,H,H+Q,X),this.imuln(K),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(T!==0){var N=1;Z=q(U,H,U.length,X);for(H=0;H<T;H++)N*=X;if(this.imuln(N),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},G.prototype.copy=function(U){U.words=Array(this.length);for(var X=0;X<this.length;X++)U.words[X]=this.words[X];U.length=this.length,U.negative=this.negative,U.red=this.red},G.prototype.clone=function(){var U=new G(null);return this.copy(U),U},G.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},G.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},G.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(G.prototype.toString=function(U,X){U=U||10,X=X|0||1;var $;if(U===16||U==="hex"){$="";var Q=0,K=0;for(var L=0;L<this.length;L++){var T=this.words[L],I=((T<<Q|K)&16777215).toString(16);if(K=T>>>24-Q&16777215,Q+=2,Q>=26)Q-=26,L--;if(K!==0||L!==this.length-1)$=C[6-I.length]+I+$;else $=I+$}if(K!==0)$=K.toString(16)+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}if(U===(U|0)&&U>=2&&U<=36){var Z=M[U],H=F[U];$="";var N=this.clone();N.negative=0;while(!N.isZero()){var B=N.modn(H).toString(U);if(N=N.idivn(H),!N.isZero())$=C[Z-B.length]+B+$;else $=B+$}if(this.isZero())$="0"+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}O(!1,"Base should be between 2 and 36")},G.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)O(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(U,X){return O(typeof v<"u"),this.toArrayLike(v,U,X)},G.prototype.toArray=function(U,X){return this.toArrayLike(Array,U,X)},G.prototype.toArrayLike=function(U,X,$){var Q=this.byteLength(),K=$||Math.max(1,Q);O(Q<=K,"byte array longer than desired length"),O(K>0,"Requested array length <= 0"),this.strip();var L=X==="le",T=new U(K),I,Z,H=this.clone();if(!L){for(Z=0;Z<K-Q;Z++)T[Z]=0;for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[K-Z-1]=I}else{for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[Z]=I;for(;Z<K;Z++)T[Z]=0}return T},Math.clz32)G.prototype._countBits=function(U){return 32-Math.clz32(U)};else G.prototype._countBits=function(U){var X=U,$=0;if(X>=4096)$+=13,X>>>=13;if(X>=64)$+=7,X>>>=7;if(X>=8)$+=4,X>>>=4;if(X>=2)$+=2,X>>>=2;return $+X};G.prototype._zeroBits=function(U){if(U===0)return 26;var X=U,$=0;if((X&8191)===0)$+=13,X>>>=13;if((X&127)===0)$+=7,X>>>=7;if((X&15)===0)$+=4,X>>>=4;if((X&3)===0)$+=2,X>>>=2;if((X&1)===0)$++;return $},G.prototype.bitLength=function(){var U=this.words[this.length-1],X=this._countBits(U);return(this.length-1)*26+X};function D(U){var X=Array(U.bitLength());for(var $=0;$<X.length;$++){var Q=$/26|0,K=$%26;X[$]=(U.words[Q]&1<<K)>>>K}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var X=0;X<this.length;X++){var $=this._zeroBits(this.words[X]);if(U+=$,$!==26)break}return U},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},G.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},G.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var X=0;X<U.length;X++)this.words[X]=this.words[X]|U.words[X];return this.strip()},G.prototype.ior=function(U){return O((this.negative|U.negative)===0),this.iuor(U)},G.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},G.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},G.prototype.iuand=function(U){var X;if(this.length>U.length)X=U;else X=this;for(var $=0;$<X.length;$++)this.words[$]=this.words[$]&U.words[$];return this.length=X.length,this.strip()},G.prototype.iand=function(U){return O((this.negative|U.negative)===0),this.iuand(U)},G.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},G.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},G.prototype.iuxor=function(U){var X,$;if(this.length>U.length)X=this,$=U;else X=U,$=this;for(var Q=0;Q<$.length;Q++)this.words[Q]=X.words[Q]^$.words[Q];if(this!==X)for(;Q<X.length;Q++)this.words[Q]=X.words[Q];return this.length=X.length,this.strip()},G.prototype.ixor=function(U){return O((this.negative|U.negative)===0),this.iuxor(U)},G.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},G.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},G.prototype.inotn=function(U){O(typeof U==="number"&&U>=0);var X=Math.ceil(U/26)|0,$=U%26;if(this._expand(X),$>0)X--;for(var Q=0;Q<X;Q++)this.words[Q]=~this.words[Q]&67108863;if($>0)this.words[Q]=~this.words[Q]&67108863>>26-$;return this.strip()},G.prototype.notn=function(U){return this.clone().inotn(U)},G.prototype.setn=function(U,X){O(typeof U==="number"&&U>=0);var $=U/26|0,Q=U%26;if(this._expand($+1),X)this.words[$]=this.words[$]|1<<Q;else this.words[$]=this.words[$]&~(1<<Q);return this.strip()},G.prototype.iadd=function(U){var X;if(this.negative!==0&&U.negative===0)return this.negative=0,X=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,X=this.isub(U),U.negative=1,X._normSign();var $,Q;if(this.length>U.length)$=this,Q=U;else $=U,Q=this;var K=0;for(var L=0;L<Q.length;L++)X=($.words[L]|0)+(Q.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;for(;K!==0&&L<$.length;L++)X=($.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;if(this.length=$.length,K!==0)this.words[this.length]=K,this.length++;else if($!==this)for(;L<$.length;L++)this.words[L]=$.words[L];return this},G.prototype.add=function(U){var X;if(U.negative!==0&&this.negative===0)return U.negative=0,X=this.sub(U),U.negative^=1,X;else if(U.negative===0&&this.negative!==0)return this.negative=0,X=U.sub(this),this.negative=1,X;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},G.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var X=this.iadd(U);return U.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var $=this.cmp(U);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Q,K;if($>0)Q=this,K=U;else Q=U,K=this;var L=0;for(var T=0;T<K.length;T++)X=(Q.words[T]|0)-(K.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;for(;L!==0&&T<Q.length;T++)X=(Q.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;if(L===0&&T<Q.length&&Q!==this)for(;T<Q.length;T++)this.words[T]=Q.words[T];if(this.length=Math.max(this.length,T),Q!==this)this.negative=1;return this.strip()},G.prototype.sub=function(U){return this.clone().isub(U)};function S(U,X,$){$.negative=X.negative^U.negative;var Q=U.length+X.length|0;$.length=Q,Q=Q-1|0;var K=U.words[0]|0,L=X.words[0]|0,T=K*L,I=T&67108863,Z=T/67108864|0;$.words[0]=I;for(var H=1;H<Q;H++){var N=Z>>>26,B=Z&67108863,w=Math.min(H,X.length-1);for(var u=Math.max(0,H-U.length+1);u<=w;u++){var s=H-u|0;K=U.words[s]|0,L=X.words[u]|0,T=K*L+B,N+=T/67108864|0,B=T&67108863}$.words[H]=B|0,Z=N|0}if(Z!==0)$.words[H]=Z|0;else $.length--;return $.strip()}var P=function(U,X,$){var Q=U.words,K=X.words,L=$.words,T=0,I,Z,H,N=Q[0]|0,B=N&8191,w=N>>>13,u=Q[1]|0,s=u&8191,Y0=u>>>13,M0=Q[2]|0,n=M0&8191,b=M0>>>13,a=Q[3]|0,l=a&8191,G0=a>>>13,A0=Q[4]|0,o=A0&8191,t=A0>>>13,V0=Q[5]|0,z0=V0&8191,U0=V0>>>13,x0=Q[6]|0,e=x0&8191,H0=x0>>>13,p0=Q[7]|0,F0=p0&8191,D0=p0>>>13,i0=Q[8]|0,i=i0&8191,W0=i0>>>13,v0=Q[9]|0,q0=v0&8191,S0=v0>>>13,e0=K[0]|0,j0=e0&8191,B0=e0>>>13,XU=K[1]|0,_0=XU&8191,g0=XU>>>13,MU=K[2]|0,c0=MU&8191,K0=MU>>>13,E0=K[3]|0,C0=E0&8191,N0=E0>>>13,IU=K[4]|0,u0=IU&8191,d0=IU>>>13,xU=K[5]|0,m0=xU&8191,d=xU>>>13,$0=K[6]|0,L0=$0&8191,R0=$0>>>13,r0=K[7]|0,y0=r0&8191,T0=r0>>>13,AU=K[8]|0,b0=AU&8191,n0=AU>>>13,pU=K[9]|0,o0=pU&8191,l0=pU>>>13;$.negative=U.negative^X.negative,$.length=19,I=Math.imul(B,j0),Z=Math.imul(B,B0),Z=Z+Math.imul(w,j0)|0,H=Math.imul(w,B0);var PU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(PU>>>26)|0,PU&=67108863,I=Math.imul(s,j0),Z=Math.imul(s,B0),Z=Z+Math.imul(Y0,j0)|0,H=Math.imul(Y0,B0),I=I+Math.imul(B,_0)|0,Z=Z+Math.imul(B,g0)|0,Z=Z+Math.imul(w,_0)|0,H=H+Math.imul(w,g0)|0;var JU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(n,j0),Z=Math.imul(n,B0),Z=Z+Math.imul(b,j0)|0,H=Math.imul(b,B0),I=I+Math.imul(s,_0)|0,Z=Z+Math.imul(s,g0)|0,Z=Z+Math.imul(Y0,_0)|0,H=H+Math.imul(Y0,g0)|0,I=I+Math.imul(B,c0)|0,Z=Z+Math.imul(B,K0)|0,Z=Z+Math.imul(w,c0)|0,H=H+Math.imul(w,K0)|0;var YU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(l,j0),Z=Math.imul(l,B0),Z=Z+Math.imul(G0,j0)|0,H=Math.imul(G0,B0),I=I+Math.imul(n,_0)|0,Z=Z+Math.imul(n,g0)|0,Z=Z+Math.imul(b,_0)|0,H=H+Math.imul(b,g0)|0,I=I+Math.imul(s,c0)|0,Z=Z+Math.imul(s,K0)|0,Z=Z+Math.imul(Y0,c0)|0,H=H+Math.imul(Y0,K0)|0,I=I+Math.imul(B,C0)|0,Z=Z+Math.imul(B,N0)|0,Z=Z+Math.imul(w,C0)|0,H=H+Math.imul(w,N0)|0;var zU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(zU>>>26)|0,zU&=67108863,I=Math.imul(o,j0),Z=Math.imul(o,B0),Z=Z+Math.imul(t,j0)|0,H=Math.imul(t,B0),I=I+Math.imul(l,_0)|0,Z=Z+Math.imul(l,g0)|0,Z=Z+Math.imul(G0,_0)|0,H=H+Math.imul(G0,g0)|0,I=I+Math.imul(n,c0)|0,Z=Z+Math.imul(n,K0)|0,Z=Z+Math.imul(b,c0)|0,H=H+Math.imul(b,K0)|0,I=I+Math.imul(s,C0)|0,Z=Z+Math.imul(s,N0)|0,Z=Z+Math.imul(Y0,C0)|0,H=H+Math.imul(Y0,N0)|0,I=I+Math.imul(B,u0)|0,Z=Z+Math.imul(B,d0)|0,Z=Z+Math.imul(w,u0)|0,H=H+Math.imul(w,d0)|0;var FU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,I=Math.imul(z0,j0),Z=Math.imul(z0,B0),Z=Z+Math.imul(U0,j0)|0,H=Math.imul(U0,B0),I=I+Math.imul(o,_0)|0,Z=Z+Math.imul(o,g0)|0,Z=Z+Math.imul(t,_0)|0,H=H+Math.imul(t,g0)|0,I=I+Math.imul(l,c0)|0,Z=Z+Math.imul(l,K0)|0,Z=Z+Math.imul(G0,c0)|0,H=H+Math.imul(G0,K0)|0,I=I+Math.imul(n,C0)|0,Z=Z+Math.imul(n,N0)|0,Z=Z+Math.imul(b,C0)|0,H=H+Math.imul(b,N0)|0,I=I+Math.imul(s,u0)|0,Z=Z+Math.imul(s,d0)|0,Z=Z+Math.imul(Y0,u0)|0,H=H+Math.imul(Y0,d0)|0,I=I+Math.imul(B,m0)|0,Z=Z+Math.imul(B,d)|0,Z=Z+Math.imul(w,m0)|0,H=H+Math.imul(w,d)|0;var jU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,I=Math.imul(e,j0),Z=Math.imul(e,B0),Z=Z+Math.imul(H0,j0)|0,H=Math.imul(H0,B0),I=I+Math.imul(z0,_0)|0,Z=Z+Math.imul(z0,g0)|0,Z=Z+Math.imul(U0,_0)|0,H=H+Math.imul(U0,g0)|0,I=I+Math.imul(o,c0)|0,Z=Z+Math.imul(o,K0)|0,Z=Z+Math.imul(t,c0)|0,H=H+Math.imul(t,K0)|0,I=I+Math.imul(l,C0)|0,Z=Z+Math.imul(l,N0)|0,Z=Z+Math.imul(G0,C0)|0,H=H+Math.imul(G0,N0)|0,I=I+Math.imul(n,u0)|0,Z=Z+Math.imul(n,d0)|0,Z=Z+Math.imul(b,u0)|0,H=H+Math.imul(b,d0)|0,I=I+Math.imul(s,m0)|0,Z=Z+Math.imul(s,d)|0,Z=Z+Math.imul(Y0,m0)|0,H=H+Math.imul(Y0,d)|0,I=I+Math.imul(B,L0)|0,Z=Z+Math.imul(B,R0)|0,Z=Z+Math.imul(w,L0)|0,H=H+Math.imul(w,R0)|0;var ZU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(F0,j0),Z=Math.imul(F0,B0),Z=Z+Math.imul(D0,j0)|0,H=Math.imul(D0,B0),I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(H0,_0)|0,H=H+Math.imul(H0,g0)|0,I=I+Math.imul(z0,c0)|0,Z=Z+Math.imul(z0,K0)|0,Z=Z+Math.imul(U0,c0)|0,H=H+Math.imul(U0,K0)|0,I=I+Math.imul(o,C0)|0,Z=Z+Math.imul(o,N0)|0,Z=Z+Math.imul(t,C0)|0,H=H+Math.imul(t,N0)|0,I=I+Math.imul(l,u0)|0,Z=Z+Math.imul(l,d0)|0,Z=Z+Math.imul(G0,u0)|0,H=H+Math.imul(G0,d0)|0,I=I+Math.imul(n,m0)|0,Z=Z+Math.imul(n,d)|0,Z=Z+Math.imul(b,m0)|0,H=H+Math.imul(b,d)|0,I=I+Math.imul(s,L0)|0,Z=Z+Math.imul(s,R0)|0,Z=Z+Math.imul(Y0,L0)|0,H=H+Math.imul(Y0,R0)|0,I=I+Math.imul(B,y0)|0,Z=Z+Math.imul(B,T0)|0,Z=Z+Math.imul(w,y0)|0,H=H+Math.imul(w,T0)|0;var NU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(NU>>>26)|0,NU&=67108863,I=Math.imul(i,j0),Z=Math.imul(i,B0),Z=Z+Math.imul(W0,j0)|0,H=Math.imul(W0,B0),I=I+Math.imul(F0,_0)|0,Z=Z+Math.imul(F0,g0)|0,Z=Z+Math.imul(D0,_0)|0,H=H+Math.imul(D0,g0)|0,I=I+Math.imul(e,c0)|0,Z=Z+Math.imul(e,K0)|0,Z=Z+Math.imul(H0,c0)|0,H=H+Math.imul(H0,K0)|0,I=I+Math.imul(z0,C0)|0,Z=Z+Math.imul(z0,N0)|0,Z=Z+Math.imul(U0,C0)|0,H=H+Math.imul(U0,N0)|0,I=I+Math.imul(o,u0)|0,Z=Z+Math.imul(o,d0)|0,Z=Z+Math.imul(t,u0)|0,H=H+Math.imul(t,d0)|0,I=I+Math.imul(l,m0)|0,Z=Z+Math.imul(l,d)|0,Z=Z+Math.imul(G0,m0)|0,H=H+Math.imul(G0,d)|0,I=I+Math.imul(n,L0)|0,Z=Z+Math.imul(n,R0)|0,Z=Z+Math.imul(b,L0)|0,H=H+Math.imul(b,R0)|0,I=I+Math.imul(s,y0)|0,Z=Z+Math.imul(s,T0)|0,Z=Z+Math.imul(Y0,y0)|0,H=H+Math.imul(Y0,T0)|0,I=I+Math.imul(B,b0)|0,Z=Z+Math.imul(B,n0)|0,Z=Z+Math.imul(w,b0)|0,H=H+Math.imul(w,n0)|0;var vU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(vU>>>26)|0,vU&=67108863,I=Math.imul(q0,j0),Z=Math.imul(q0,B0),Z=Z+Math.imul(S0,j0)|0,H=Math.imul(S0,B0),I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(W0,_0)|0,H=H+Math.imul(W0,g0)|0,I=I+Math.imul(F0,c0)|0,Z=Z+Math.imul(F0,K0)|0,Z=Z+Math.imul(D0,c0)|0,H=H+Math.imul(D0,K0)|0,I=I+Math.imul(e,C0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(H0,C0)|0,H=H+Math.imul(H0,N0)|0,I=I+Math.imul(z0,u0)|0,Z=Z+Math.imul(z0,d0)|0,Z=Z+Math.imul(U0,u0)|0,H=H+Math.imul(U0,d0)|0,I=I+Math.imul(o,m0)|0,Z=Z+Math.imul(o,d)|0,Z=Z+Math.imul(t,m0)|0,H=H+Math.imul(t,d)|0,I=I+Math.imul(l,L0)|0,Z=Z+Math.imul(l,R0)|0,Z=Z+Math.imul(G0,L0)|0,H=H+Math.imul(G0,R0)|0,I=I+Math.imul(n,y0)|0,Z=Z+Math.imul(n,T0)|0,Z=Z+Math.imul(b,y0)|0,H=H+Math.imul(b,T0)|0,I=I+Math.imul(s,b0)|0,Z=Z+Math.imul(s,n0)|0,Z=Z+Math.imul(Y0,b0)|0,H=H+Math.imul(Y0,n0)|0,I=I+Math.imul(B,o0)|0,Z=Z+Math.imul(B,l0)|0,Z=Z+Math.imul(w,o0)|0,H=H+Math.imul(w,l0)|0;var qU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,I=Math.imul(q0,_0),Z=Math.imul(q0,g0),Z=Z+Math.imul(S0,_0)|0,H=Math.imul(S0,g0),I=I+Math.imul(i,c0)|0,Z=Z+Math.imul(i,K0)|0,Z=Z+Math.imul(W0,c0)|0,H=H+Math.imul(W0,K0)|0,I=I+Math.imul(F0,C0)|0,Z=Z+Math.imul(F0,N0)|0,Z=Z+Math.imul(D0,C0)|0,H=H+Math.imul(D0,N0)|0,I=I+Math.imul(e,u0)|0,Z=Z+Math.imul(e,d0)|0,Z=Z+Math.imul(H0,u0)|0,H=H+Math.imul(H0,d0)|0,I=I+Math.imul(z0,m0)|0,Z=Z+Math.imul(z0,d)|0,Z=Z+Math.imul(U0,m0)|0,H=H+Math.imul(U0,d)|0,I=I+Math.imul(o,L0)|0,Z=Z+Math.imul(o,R0)|0,Z=Z+Math.imul(t,L0)|0,H=H+Math.imul(t,R0)|0,I=I+Math.imul(l,y0)|0,Z=Z+Math.imul(l,T0)|0,Z=Z+Math.imul(G0,y0)|0,H=H+Math.imul(G0,T0)|0,I=I+Math.imul(n,b0)|0,Z=Z+Math.imul(n,n0)|0,Z=Z+Math.imul(b,b0)|0,H=H+Math.imul(b,n0)|0,I=I+Math.imul(s,o0)|0,Z=Z+Math.imul(s,l0)|0,Z=Z+Math.imul(Y0,o0)|0,H=H+Math.imul(Y0,l0)|0;var OU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(q0,c0),Z=Math.imul(q0,K0),Z=Z+Math.imul(S0,c0)|0,H=Math.imul(S0,K0),I=I+Math.imul(i,C0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(W0,C0)|0,H=H+Math.imul(W0,N0)|0,I=I+Math.imul(F0,u0)|0,Z=Z+Math.imul(F0,d0)|0,Z=Z+Math.imul(D0,u0)|0,H=H+Math.imul(D0,d0)|0,I=I+Math.imul(e,m0)|0,Z=Z+Math.imul(e,d)|0,Z=Z+Math.imul(H0,m0)|0,H=H+Math.imul(H0,d)|0,I=I+Math.imul(z0,L0)|0,Z=Z+Math.imul(z0,R0)|0,Z=Z+Math.imul(U0,L0)|0,H=H+Math.imul(U0,R0)|0,I=I+Math.imul(o,y0)|0,Z=Z+Math.imul(o,T0)|0,Z=Z+Math.imul(t,y0)|0,H=H+Math.imul(t,T0)|0,I=I+Math.imul(l,b0)|0,Z=Z+Math.imul(l,n0)|0,Z=Z+Math.imul(G0,b0)|0,H=H+Math.imul(G0,n0)|0,I=I+Math.imul(n,o0)|0,Z=Z+Math.imul(n,l0)|0,Z=Z+Math.imul(b,o0)|0,H=H+Math.imul(b,l0)|0;var _U=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,I=Math.imul(q0,C0),Z=Math.imul(q0,N0),Z=Z+Math.imul(S0,C0)|0,H=Math.imul(S0,N0),I=I+Math.imul(i,u0)|0,Z=Z+Math.imul(i,d0)|0,Z=Z+Math.imul(W0,u0)|0,H=H+Math.imul(W0,d0)|0,I=I+Math.imul(F0,m0)|0,Z=Z+Math.imul(F0,d)|0,Z=Z+Math.imul(D0,m0)|0,H=H+Math.imul(D0,d)|0,I=I+Math.imul(e,L0)|0,Z=Z+Math.imul(e,R0)|0,Z=Z+Math.imul(H0,L0)|0,H=H+Math.imul(H0,R0)|0,I=I+Math.imul(z0,y0)|0,Z=Z+Math.imul(z0,T0)|0,Z=Z+Math.imul(U0,y0)|0,H=H+Math.imul(U0,T0)|0,I=I+Math.imul(o,b0)|0,Z=Z+Math.imul(o,n0)|0,Z=Z+Math.imul(t,b0)|0,H=H+Math.imul(t,n0)|0,I=I+Math.imul(l,o0)|0,Z=Z+Math.imul(l,l0)|0,Z=Z+Math.imul(G0,o0)|0,H=H+Math.imul(G0,l0)|0;var wU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(wU>>>26)|0,wU&=67108863,I=Math.imul(q0,u0),Z=Math.imul(q0,d0),Z=Z+Math.imul(S0,u0)|0,H=Math.imul(S0,d0),I=I+Math.imul(i,m0)|0,Z=Z+Math.imul(i,d)|0,Z=Z+Math.imul(W0,m0)|0,H=H+Math.imul(W0,d)|0,I=I+Math.imul(F0,L0)|0,Z=Z+Math.imul(F0,R0)|0,Z=Z+Math.imul(D0,L0)|0,H=H+Math.imul(D0,R0)|0,I=I+Math.imul(e,y0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(H0,y0)|0,H=H+Math.imul(H0,T0)|0,I=I+Math.imul(z0,b0)|0,Z=Z+Math.imul(z0,n0)|0,Z=Z+Math.imul(U0,b0)|0,H=H+Math.imul(U0,n0)|0,I=I+Math.imul(o,o0)|0,Z=Z+Math.imul(o,l0)|0,Z=Z+Math.imul(t,o0)|0,H=H+Math.imul(t,l0)|0;var gU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,I=Math.imul(q0,m0),Z=Math.imul(q0,d),Z=Z+Math.imul(S0,m0)|0,H=Math.imul(S0,d),I=I+Math.imul(i,L0)|0,Z=Z+Math.imul(i,R0)|0,Z=Z+Math.imul(W0,L0)|0,H=H+Math.imul(W0,R0)|0,I=I+Math.imul(F0,y0)|0,Z=Z+Math.imul(F0,T0)|0,Z=Z+Math.imul(D0,y0)|0,H=H+Math.imul(D0,T0)|0,I=I+Math.imul(e,b0)|0,Z=Z+Math.imul(e,n0)|0,Z=Z+Math.imul(H0,b0)|0,H=H+Math.imul(H0,n0)|0,I=I+Math.imul(z0,o0)|0,Z=Z+Math.imul(z0,l0)|0,Z=Z+Math.imul(U0,o0)|0,H=H+Math.imul(U0,l0)|0;var fU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,I=Math.imul(q0,L0),Z=Math.imul(q0,R0),Z=Z+Math.imul(S0,L0)|0,H=Math.imul(S0,R0),I=I+Math.imul(i,y0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(W0,y0)|0,H=H+Math.imul(W0,T0)|0,I=I+Math.imul(F0,b0)|0,Z=Z+Math.imul(F0,n0)|0,Z=Z+Math.imul(D0,b0)|0,H=H+Math.imul(D0,n0)|0,I=I+Math.imul(e,o0)|0,Z=Z+Math.imul(e,l0)|0,Z=Z+Math.imul(H0,o0)|0,H=H+Math.imul(H0,l0)|0;var yU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(yU>>>26)|0,yU&=67108863,I=Math.imul(q0,y0),Z=Math.imul(q0,T0),Z=Z+Math.imul(S0,y0)|0,H=Math.imul(S0,T0),I=I+Math.imul(i,b0)|0,Z=Z+Math.imul(i,n0)|0,Z=Z+Math.imul(W0,b0)|0,H=H+Math.imul(W0,n0)|0,I=I+Math.imul(F0,o0)|0,Z=Z+Math.imul(F0,l0)|0,Z=Z+Math.imul(D0,o0)|0,H=H+Math.imul(D0,l0)|0;var kU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(kU>>>26)|0,kU&=67108863,I=Math.imul(q0,b0),Z=Math.imul(q0,n0),Z=Z+Math.imul(S0,b0)|0,H=Math.imul(S0,n0),I=I+Math.imul(i,o0)|0,Z=Z+Math.imul(i,l0)|0,Z=Z+Math.imul(W0,o0)|0,H=H+Math.imul(W0,l0)|0;var hU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(hU>>>26)|0,hU&=67108863,I=Math.imul(q0,o0),Z=Math.imul(q0,l0),Z=Z+Math.imul(S0,o0)|0,H=Math.imul(S0,l0);var TU=(T+I|0)+((Z&8191)<<13)|0;if(T=(H+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,L[0]=PU,L[1]=JU,L[2]=YU,L[3]=zU,L[4]=FU,L[5]=jU,L[6]=ZU,L[7]=NU,L[8]=vU,L[9]=qU,L[10]=OU,L[11]=_U,L[12]=wU,L[13]=gU,L[14]=fU,L[15]=yU,L[16]=kU,L[17]=hU,L[18]=TU,T!==0)L[19]=T,$.length++;return $};if(!Math.imul)P=S;function k(U,X,$){$.negative=X.negative^U.negative,$.length=U.length+X.length;var Q=0,K=0;for(var L=0;L<$.length-1;L++){var T=K;K=0;var I=Q&67108863,Z=Math.min(L,X.length-1);for(var H=Math.max(0,L-U.length+1);H<=Z;H++){var N=L-H,B=U.words[N]|0,w=X.words[H]|0,u=B*w,s=u&67108863;T=T+(u/67108864|0)|0,s=s+I|0,I=s&67108863,T=T+(s>>>26)|0,K+=T>>>26,T&=67108863}$.words[L]=I,Q=T,T=K}if(Q!==0)$.words[L]=Q;else $.length--;return $.strip()}function x(U,X,$){var Q=new f;return Q.mulp(U,X,$)}G.prototype.mulTo=function(U,X){var $,Q=this.length+U.length;if(this.length===10&&U.length===10)$=P(this,U,X);else if(Q<63)$=S(this,U,X);else if(Q<1024)$=k(this,U,X);else $=x(this,U,X);return $};function f(U,X){this.x=U,this.y=X}f.prototype.makeRBT=function(U){var X=Array(U),$=G.prototype._countBits(U)-1;for(var Q=0;Q<U;Q++)X[Q]=this.revBin(Q,$,U);return X},f.prototype.revBin=function(U,X,$){if(U===0||U===$-1)return U;var Q=0;for(var K=0;K<X;K++)Q|=(U&1)<<X-K-1,U>>=1;return Q},f.prototype.permute=function(U,X,$,Q,K,L){for(var T=0;T<L;T++)Q[T]=X[U[T]],K[T]=$[U[T]]},f.prototype.transform=function(U,X,$,Q,K,L){this.permute(L,U,X,$,Q,K);for(var T=1;T<K;T<<=1){var I=T<<1,Z=Math.cos(2*Math.PI/I),H=Math.sin(2*Math.PI/I);for(var N=0;N<K;N+=I){var B=Z,w=H;for(var u=0;u<T;u++){var s=$[N+u],Y0=Q[N+u],M0=$[N+u+T],n=Q[N+u+T],b=B*M0-w*n;if(n=B*n+w*M0,M0=b,$[N+u]=s+M0,Q[N+u]=Y0+n,$[N+u+T]=s-M0,Q[N+u+T]=Y0-n,u!==I)b=Z*B-H*w,w=Z*w+H*B,B=b}}}},f.prototype.guessLen13b=function(U,X){var $=Math.max(X,U)|1,Q=$&1,K=0;for($=$/2|0;$;$=$>>>1)K++;return 1<<K+1+Q},f.prototype.conjugate=function(U,X,$){if($<=1)return;for(var Q=0;Q<$/2;Q++){var K=U[Q];U[Q]=U[$-Q-1],U[$-Q-1]=K,K=X[Q],X[Q]=-X[$-Q-1],X[$-Q-1]=-K}},f.prototype.normalize13b=function(U,X){var $=0;for(var Q=0;Q<X/2;Q++){var K=Math.round(U[2*Q+1]/X)*8192+Math.round(U[2*Q]/X)+$;if(U[Q]=K&67108863,K<67108864)$=0;else $=K/67108864|0}return U},f.prototype.convert13b=function(U,X,$,Q){var K=0;for(var L=0;L<X;L++)K=K+(U[L]|0),$[2*L]=K&8191,K=K>>>13,$[2*L+1]=K&8191,K=K>>>13;for(L=2*X;L<Q;++L)$[L]=0;O(K===0),O((K&-8192)===0)},f.prototype.stub=function(U){var X=Array(U);for(var $=0;$<U;$++)X[$]=0;return X},f.prototype.mulp=function(U,X,$){var Q=2*this.guessLen13b(U.length,X.length),K=this.makeRBT(Q),L=this.stub(Q),T=Array(Q),I=Array(Q),Z=Array(Q),H=Array(Q),N=Array(Q),B=Array(Q),w=$.words;w.length=Q,this.convert13b(U.words,U.length,T,Q),this.convert13b(X.words,X.length,H,Q),this.transform(T,L,I,Z,Q,K),this.transform(H,L,N,B,Q,K);for(var u=0;u<Q;u++){var s=I[u]*N[u]-Z[u]*B[u];Z[u]=I[u]*B[u]+Z[u]*N[u],I[u]=s}return this.conjugate(I,Z,Q),this.transform(I,Z,w,L,Q,K),this.conjugate(w,L,Q),this.normalize13b(w,Q),$.negative=U.negative^X.negative,$.length=U.length+X.length,$.strip()},G.prototype.mul=function(U){var X=new G(null);return X.words=Array(this.length+U.length),this.mulTo(U,X)},G.prototype.mulf=function(U){var X=new G(null);return X.words=Array(this.length+U.length),x(this,U,X)},G.prototype.imul=function(U){return this.clone().mulTo(U,this)},G.prototype.imuln=function(U){O(typeof U==="number"),O(U<67108864);var X=0;for(var $=0;$<this.length;$++){var Q=(this.words[$]|0)*U,K=(Q&67108863)+(X&67108863);X>>=26,X+=Q/67108864|0,X+=K>>>26,this.words[$]=K&67108863}if(X!==0)this.words[$]=X,this.length++;return this.length=U===0?1:this.length,this},G.prototype.muln=function(U){return this.clone().imuln(U)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(U){var X=D(U);if(X.length===0)return new G(1);var $=this;for(var Q=0;Q<X.length;Q++,$=$.sqr())if(X[Q]!==0)break;if(++Q<X.length)for(var K=$.sqr();Q<X.length;Q++,K=K.sqr()){if(X[Q]===0)continue;$=$.mul(K)}return $},G.prototype.iushln=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=67108863>>>26-X<<26-X,K;if(X!==0){var L=0;for(K=0;K<this.length;K++){var T=this.words[K]&Q,I=(this.words[K]|0)-T<<X;this.words[K]=I|L,L=T>>>26-X}if(L)this.words[K]=L,this.length++}if($!==0){for(K=this.length-1;K>=0;K--)this.words[K+$]=this.words[K];for(K=0;K<$;K++)this.words[K]=0;this.length+=$}return this.strip()},G.prototype.ishln=function(U){return O(this.negative===0),this.iushln(U)},G.prototype.iushrn=function(U,X,$){O(typeof U==="number"&&U>=0);var Q;if(X)Q=(X-X%26)/26;else Q=0;var K=U%26,L=Math.min((U-K)/26,this.length),T=67108863^67108863>>>K<<K,I=$;if(Q-=L,Q=Math.max(0,Q),I){for(var Z=0;Z<L;Z++)I.words[Z]=this.words[Z];I.length=L}if(L===0);else if(this.length>L){this.length-=L;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+L]}else this.words[0]=0,this.length=1;var H=0;for(Z=this.length-1;Z>=0&&(H!==0||Z>=Q);Z--){var N=this.words[Z]|0;this.words[Z]=H<<26-K|N>>>K,H=N&T}if(I&&H!==0)I.words[I.length++]=H;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},G.prototype.ishrn=function(U,X,$){return O(this.negative===0),this.iushrn(U,X,$)},G.prototype.shln=function(U){return this.clone().ishln(U)},G.prototype.ushln=function(U){return this.clone().iushln(U)},G.prototype.shrn=function(U){return this.clone().ishrn(U)},G.prototype.ushrn=function(U){return this.clone().iushrn(U)},G.prototype.testn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return!1;var K=this.words[$];return!!(K&Q)},G.prototype.imaskn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26;if(O(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(X!==0)$++;if(this.length=Math.min($,this.length),X!==0){var Q=67108863^67108863>>>X<<X;this.words[this.length-1]&=Q}return this.strip()},G.prototype.maskn=function(U){return this.clone().imaskn(U)},G.prototype.iaddn=function(U){if(O(typeof U==="number"),O(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)},G.prototype._iaddn=function(U){this.words[0]+=U;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)if(this.words[X]-=67108864,X===this.length-1)this.words[X+1]=1;else this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(U){if(O(typeof U==="number"),O(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(U){return this.clone().iaddn(U)},G.prototype.subn=function(U){return this.clone().isubn(U)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(U,X,$){var Q=U.length+$,K;this._expand(Q);var L,T=0;for(K=0;K<U.length;K++){L=(this.words[K+$]|0)+T;var I=(U.words[K]|0)*X;L-=I&67108863,T=(L>>26)-(I/67108864|0),this.words[K+$]=L&67108863}for(;K<this.length-$;K++)L=(this.words[K+$]|0)+T,T=L>>26,this.words[K+$]=L&67108863;if(T===0)return this.strip();O(T===-1),T=0;for(K=0;K<this.length;K++)L=-(this.words[K]|0)+T,T=L>>26,this.words[K]=L&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(U,X){var $=this.length-U.length,Q=this.clone(),K=U,L=K.words[K.length-1]|0,T=this._countBits(L);if($=26-T,$!==0)K=K.ushln($),Q.iushln($),L=K.words[K.length-1]|0;var I=Q.length-K.length,Z;if(X!=="mod"){Z=new G(null),Z.length=I+1,Z.words=Array(Z.length);for(var H=0;H<Z.length;H++)Z.words[H]=0}var N=Q.clone()._ishlnsubmul(K,1,I);if(N.negative===0){if(Q=N,Z)Z.words[I]=1}for(var B=I-1;B>=0;B--){var w=(Q.words[K.length+B]|0)*67108864+(Q.words[K.length+B-1]|0);w=Math.min(w/L|0,67108863),Q._ishlnsubmul(K,w,B);while(Q.negative!==0)if(w--,Q.negative=0,Q._ishlnsubmul(K,1,B),!Q.isZero())Q.negative^=1;if(Z)Z.words[B]=w}if(Z)Z.strip();if(Q.strip(),X!=="div"&&$!==0)Q.iushrn($);return{div:Z||null,mod:Q}},G.prototype.divmod=function(U,X,$){if(O(!U.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var Q,K,L;if(this.negative!==0&&U.negative===0){if(L=this.neg().divmod(U,X),X!=="mod")Q=L.div.neg();if(X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.iadd(U)}return{div:Q,mod:K}}if(this.negative===0&&U.negative!==0){if(L=this.divmod(U.neg(),X),X!=="mod")Q=L.div.neg();return{div:Q,mod:L.mod}}if((this.negative&U.negative)!==0){if(L=this.neg().divmod(U.neg(),X),X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.isub(U)}return{div:L.div,mod:K}}if(U.length>this.length||this.cmp(U)<0)return{div:new G(0),mod:this};if(U.length===1){if(X==="div")return{div:this.divn(U.words[0]),mod:null};if(X==="mod")return{div:null,mod:new G(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new G(this.modn(U.words[0]))}}return this._wordDiv(U,X)},G.prototype.div=function(U){return this.divmod(U,"div",!1).div},G.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},G.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},G.prototype.divRound=function(U){var X=this.divmod(U);if(X.mod.isZero())return X.div;var $=X.div.negative!==0?X.mod.isub(U):X.mod,Q=U.ushrn(1),K=U.andln(1),L=$.cmp(Q);if(L<0||K===1&&L===0)return X.div;return X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(U){O(U<=67108863);var X=67108864%U,$=0;for(var Q=this.length-1;Q>=0;Q--)$=(X*$+(this.words[Q]|0))%U;return $},G.prototype.idivn=function(U){O(U<=67108863);var X=0;for(var $=this.length-1;$>=0;$--){var Q=(this.words[$]|0)+X*67108864;this.words[$]=Q/U|0,X=Q%U}return this.strip()},G.prototype.divn=function(U){return this.clone().idivn(U)},G.prototype.egcd=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=new G(0),T=new G(1),I=0;while(X.isEven()&&$.isEven())X.iushrn(1),$.iushrn(1),++I;var Z=$.clone(),H=X.clone();while(!X.isZero()){for(var N=0,B=1;(X.words[0]&B)===0&&N<26;++N,B<<=1);if(N>0){X.iushrn(N);while(N-- >0){if(Q.isOdd()||K.isOdd())Q.iadd(Z),K.isub(H);Q.iushrn(1),K.iushrn(1)}}for(var w=0,u=1;($.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0){$.iushrn(w);while(w-- >0){if(L.isOdd()||T.isOdd())L.iadd(Z),T.isub(H);L.iushrn(1),T.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(L),K.isub(T);else $.isub(X),L.isub(Q),T.isub(K)}return{a:L,b:T,gcd:$.iushln(I)}},G.prototype._invmp=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=$.clone();while(X.cmpn(1)>0&&$.cmpn(1)>0){for(var T=0,I=1;(X.words[0]&I)===0&&T<26;++T,I<<=1);if(T>0){X.iushrn(T);while(T-- >0){if(Q.isOdd())Q.iadd(L);Q.iushrn(1)}}for(var Z=0,H=1;($.words[0]&H)===0&&Z<26;++Z,H<<=1);if(Z>0){$.iushrn(Z);while(Z-- >0){if(K.isOdd())K.iadd(L);K.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(K);else $.isub(X),K.isub(Q)}var N;if(X.cmpn(1)===0)N=Q;else N=K;if(N.cmpn(0)<0)N.iadd(U);return N},G.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var X=this.clone(),$=U.clone();X.negative=0,$.negative=0;for(var Q=0;X.isEven()&&$.isEven();Q++)X.iushrn(1),$.iushrn(1);do{while(X.isEven())X.iushrn(1);while($.isEven())$.iushrn(1);var K=X.cmp($);if(K<0){var L=X;X=$,$=L}else if(K===0||$.cmpn(1)===0)break;X.isub($)}while(!0);return $.iushln(Q)},G.prototype.invm=function(U){return this.egcd(U).a.umod(U)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(U){return this.words[0]&U},G.prototype.bincn=function(U){O(typeof U==="number");var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return this._expand($+1),this.words[$]|=Q,this;var K=Q;for(var L=$;K!==0&&L<this.length;L++){var T=this.words[L]|0;T+=K,K=T>>>26,T&=67108863,this.words[L]=T}if(K!==0)this.words[L]=K,this.length++;return this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(U){var X=U<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var $;if(this.length>1)$=1;else{if(X)U=-U;O(U<=67108863,"Number is too big");var Q=this.words[0]|0;$=Q===U?0:Q<U?-1:1}if(this.negative!==0)return-$|0;return $},G.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var X=this.ucmp(U);if(this.negative!==0)return-X|0;return X},G.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var X=0;for(var $=this.length-1;$>=0;$--){var Q=this.words[$]|0,K=U.words[$]|0;if(Q===K)continue;if(Q<K)X=-1;else if(Q>K)X=1;break}return X},G.prototype.gtn=function(U){return this.cmpn(U)===1},G.prototype.gt=function(U){return this.cmp(U)===1},G.prototype.gten=function(U){return this.cmpn(U)>=0},G.prototype.gte=function(U){return this.cmp(U)>=0},G.prototype.ltn=function(U){return this.cmpn(U)===-1},G.prototype.lt=function(U){return this.cmp(U)===-1},G.prototype.lten=function(U){return this.cmpn(U)<=0},G.prototype.lte=function(U){return this.cmp(U)<=0},G.prototype.eqn=function(U){return this.cmpn(U)===0},G.prototype.eq=function(U){return this.cmp(U)===0},G.red=function(U){return new r(U)},G.prototype.toRed=function(U){return O(!this.red,"Already a number in reduction context"),O(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},G.prototype.fromRed=function(){return O(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(U){return this.red=U,this},G.prototype.forceRed=function(U){return O(!this.red,"Already a number in reduction context"),this._forceRed(U)},G.prototype.redAdd=function(U){return O(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},G.prototype.redIAdd=function(U){return O(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},G.prototype.redSub=function(U){return O(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},G.prototype.redISub=function(U){return O(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},G.prototype.redShl=function(U){return O(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},G.prototype.redMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},G.prototype.redIMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},G.prototype.redSqr=function(){return O(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return O(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return O(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return O(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return O(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(U){return O(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var h={k256:null,p224:null,p192:null,p25519:null};function c(U,X){this.name=U,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}c.prototype._tmp=function(){var U=new G(null);return U.words=Array(Math.ceil(this.n/13)),U},c.prototype.ireduce=function(U){var X=U,$;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),$=X.bitLength();while($>this.n);var Q=$<this.n?-1:X.ucmp(this.p);if(Q===0)X.words[0]=0,X.length=1;else if(Q>0)X.isub(this.p);else if(X.strip!==void 0)X.strip();else X._strip();return X},c.prototype.split=function(U,X){U.iushrn(this.n,0,X)},c.prototype.imulK=function(U){return U.imul(this.k)};function m(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(m,c),m.prototype.split=function(U,X){var $=4194303,Q=Math.min(U.length,9);for(var K=0;K<Q;K++)X.words[K]=U.words[K];if(X.length=Q,U.length<=9){U.words[0]=0,U.length=1;return}var L=U.words[9];X.words[X.length++]=L&$;for(K=10;K<U.length;K++){var T=U.words[K]|0;U.words[K-10]=(T&$)<<4|L>>>22,L=T}if(L>>>=22,U.words[K-10]=L,L===0&&U.length>10)U.length-=10;else U.length-=9},m.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var X=0;for(var $=0;$<U.length;$++){var Q=U.words[$]|0;X+=Q*977,U.words[$]=X&67108863,X=Q*64+(X/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function g(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(g,c);function Q0(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Q0,c);function J0(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(J0,c),J0.prototype.imulK=function(U){var X=0;for(var $=0;$<U.length;$++){var Q=(U.words[$]|0)*19+X,K=Q&67108863;Q>>>=26,U.words[$]=K,X=Q}if(X!==0)U.words[U.length++]=X;return U},G._prime=function(U){if(h[U])return h[U];var X;if(U==="k256")X=new m;else if(U==="p224")X=new g;else if(U==="p192")X=new Q0;else if(U==="p25519")X=new J0;else throw Error("Unknown prime "+U);return h[U]=X,X};function r(U){if(typeof U==="string"){var X=G._prime(U);this.m=X.p,this.prime=X}else O(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}r.prototype._verify1=function(U){O(U.negative===0,"red works only with positives"),O(U.red,"red works only with red numbers")},r.prototype._verify2=function(U,X){O((U.negative|X.negative)===0,"red works only with positives"),O(U.red&&U.red===X.red,"red works only with red numbers")},r.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},r.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},r.prototype.add=function(U,X){this._verify2(U,X);var $=U.add(X);if($.cmp(this.m)>=0)$.isub(this.m);return $._forceRed(this)},r.prototype.iadd=function(U,X){this._verify2(U,X);var $=U.iadd(X);if($.cmp(this.m)>=0)$.isub(this.m);return $},r.prototype.sub=function(U,X){this._verify2(U,X);var $=U.sub(X);if($.cmpn(0)<0)$.iadd(this.m);return $._forceRed(this)},r.prototype.isub=function(U,X){this._verify2(U,X);var $=U.isub(X);if($.cmpn(0)<0)$.iadd(this.m);return $},r.prototype.shl=function(U,X){return this._verify1(U),this.imod(U.ushln(X))},r.prototype.imul=function(U,X){return this._verify2(U,X),this.imod(U.imul(X))},r.prototype.mul=function(U,X){return this._verify2(U,X),this.imod(U.mul(X))},r.prototype.isqr=function(U){return this.imul(U,U.clone())},r.prototype.sqr=function(U){return this.mul(U,U)},r.prototype.sqrt=function(U){if(U.isZero())return U.clone();var X=this.m.andln(3);if(O(X%2===1),X===3){var $=this.m.add(new G(1)).iushrn(2);return this.pow(U,$)}var Q=this.m.subn(1),K=0;while(!Q.isZero()&&Q.andln(1)===0)K++,Q.iushrn(1);O(!Q.isZero());var L=new G(1).toRed(this),T=L.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new G(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(T)!==0)Z.redIAdd(T);var H=this.pow(Z,Q),N=this.pow(U,Q.addn(1).iushrn(1)),B=this.pow(U,Q),w=K;while(B.cmp(L)!==0){var u=B;for(var s=0;u.cmp(L)!==0;s++)u=u.redSqr();O(s<w);var Y0=this.pow(H,new G(1).iushln(w-s-1));N=N.redMul(Y0),H=Y0.redSqr(),B=B.redMul(H),w=s}return N},r.prototype.invm=function(U){var X=U._invmp(this.m);if(X.negative!==0)return X.negative=0,this.imod(X).redNeg();else return this.imod(X)},r.prototype.pow=function(U,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return U.clone();var $=4,Q=Array(1<<$);Q[0]=new G(1).toRed(this),Q[1]=U;for(var K=2;K<Q.length;K++)Q[K]=this.mul(Q[K-1],U);var L=Q[0],T=0,I=0,Z=X.bitLength()%26;if(Z===0)Z=26;for(K=X.length-1;K>=0;K--){var H=X.words[K];for(var N=Z-1;N>=0;N--){var B=H>>N&1;if(L!==Q[0])L=this.sqr(L);if(B===0&&T===0){I=0;continue}if(T<<=1,T|=B,I++,I!==$&&(K!==0||N!==0))continue;L=this.mul(L,Q[T]),I=0,T=0}Z=26}return L},r.prototype.convertTo=function(U){var X=U.umod(this.m);return X===U?X.clone():X},r.prototype.convertFrom=function(U){var X=U.clone();return X.red=null,X},G.mont=function(U){return new O0(U)};function O0(U){if(r.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new G(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A(O0,r),O0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},O0.prototype.convertFrom=function(U){var X=this.imod(U.mul(this.rinv));return X.red=null,X},O0.prototype.imul=function(U,X){if(U.isZero()||X.isZero())return U.words[0]=0,U.length=1,U;var $=U.imul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.mul=function(U,X){if(U.isZero()||X.isZero())return new G(0)._forceRed(this);var $=U.mul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.invm=function(U){var X=this.imod(U._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof W>"u"||W,Y)}),kZ=k0((Y,W)=>{W.exports=V;function V(z,O){if(!z)throw Error(O||"Assertion failed")}V.equal=function(z,O,A){if(z!=O)throw Error(A||"Assertion failed: "+z+" != "+O)}}),tG=k0((Y)=>{var W=Y;function V(A,G){if(Array.isArray(A))return A.slice();if(!A)return[];var v=[];if(typeof A!=="string"){for(var j=0;j<A.length;j++)v[j]=A[j]|0;return v}if(G==="hex"){if(A=A.replace(/[^a-z0-9]+/ig,""),A.length%2!==0)A="0"+A;for(var j=0;j<A.length;j+=2)v.push(parseInt(A[j]+A[j+1],16))}else for(var j=0;j<A.length;j++){var E=A.charCodeAt(j),q=E>>8,C=E&255;if(q)v.push(q,C);else v.push(C)}return v}W.toArray=V;function z(A){if(A.length===1)return"0"+A;else return A}W.zero2=z;function O(A){var G="";for(var v=0;v<A.length;v++)G+=z(A[v].toString(16));return G}W.toHex=O,W.encode=function(A,G){if(G==="hex")return O(A);else return A}}),JZ=k0((Y)=>{var W=Y,V=qZ(),z=kZ(),O=tG();W.assert=z,W.toArray=O.toArray,W.zero2=O.zero2,W.toHex=O.toHex,W.encode=O.encode;function A(q,C,M){var F=Array(Math.max(q.bitLength(),M)+1),D;for(D=0;D<F.length;D+=1)F[D]=0;var S=1<<C+1,P=q.clone();for(D=0;D<F.length;D++){var k,x=P.andln(S-1);if(P.isOdd()){if(x>(S>>1)-1)k=(S>>1)-x;else k=x;P.isubn(k)}else k=0;F[D]=k,P.iushrn(1)}return F}W.getNAF=A;function G(q,C){var M=[[],[]];q=q.clone(),C=C.clone();var F=0,D=0,S;while(q.cmpn(-F)>0||C.cmpn(-D)>0){var P=q.andln(3)+F&3,k=C.andln(3)+D&3;if(P===3)P=-1;if(k===3)k=-1;var x;if((P&1)===0)x=0;else if(S=q.andln(7)+F&7,(S===3||S===5)&&k===2)x=-P;else x=P;M[0].push(x);var f;if((k&1)===0)f=0;else if(S=C.andln(7)+D&7,(S===3||S===5)&&P===2)f=-k;else f=k;if(M[1].push(f),2*F===x+1)F=1-F;if(2*D===f+1)D=1-D;q.iushrn(1),C.iushrn(1)}return M}W.getJSF=G;function v(q,C,M){var F="_"+C;q.prototype[C]=function(){return this[F]!==void 0?this[F]:this[F]=M.call(this)}}W.cachedProperty=v;function j(q){return typeof q==="string"?W.toArray(q,"hex"):q}W.parseBytes=j;function E(q){return new V(q,"hex","le")}W.intFromLE=E}),iG=k0((Y,W)=>{var V;W.exports=function(A){if(!V)V=new z(null);return V.generate(A)};function z(A){this.rand=A}if(W.exports.Rand=z,z.prototype.generate=function(A){return this._rand(A)},z.prototype._rand=function(A){if(this.rand.getBytes)return this.rand.getBytes(A);var G=new Uint8Array(A);for(var v=0;v<G.length;v++)G[v]=this.rand.getByte();return G},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)z.prototype._rand=function(A){var G=new Uint8Array(A);return self.crypto.getRandomValues(G),G};else if(self.msCrypto&&self.msCrypto.getRandomValues)z.prototype._rand=function(A){var G=new Uint8Array(A);return self.msCrypto.getRandomValues(G),G};else if(typeof window==="object")z.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(O=(tU(),WU(aU)),typeof O.randomBytes!=="function")throw Error("Not supported");z.prototype._rand=function(A){return O.randomBytes(A)}}catch(A){}var O}),LX=k0((Y,W)=>{var V=qZ(),z=JZ(),O=z.getNAF,A=z.getJSF,G=z.assert;function v(E,q){this.type=E,this.p=new V(q.p,16),this.red=q.prime?V.red(q.prime):V.mont(this.p),this.zero=new V(0).toRed(this.red),this.one=new V(1).toRed(this.red),this.two=new V(2).toRed(this.red),this.n=q.n&&new V(q.n,16),this.g=q.g&&this.pointFromJSON(q.g,q.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var C=this.n&&this.p.div(this.n);if(!C||C.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}W.exports=v,v.prototype.point=function(){throw Error("Not implemented")},v.prototype.validate=function(){throw Error("Not implemented")},v.prototype._fixedNafMul=function(E,q){G(E.precomputed);var C=E._getDoubles(),M=O(q,1,this._bitLength),F=(1<<C.step+1)-(C.step%2===0?2:1);F/=3;var D=[],S,P;for(S=0;S<M.length;S+=C.step){P=0;for(var k=S+C.step-1;k>=S;k--)P=(P<<1)+M[k];D.push(P)}var x=this.jpoint(null,null,null),f=this.jpoint(null,null,null);for(var h=F;h>0;h--){for(S=0;S<D.length;S++)if(P=D[S],P===h)f=f.mixedAdd(C.points[S]);else if(P===-h)f=f.mixedAdd(C.points[S].neg());x=x.add(f)}return x.toP()},v.prototype._wnafMul=function(E,q){var C=4,M=E._getNAFPoints(C);C=M.wnd;var F=M.points,D=O(q,C,this._bitLength),S=this.jpoint(null,null,null);for(var P=D.length-1;P>=0;P--){for(var k=0;P>=0&&D[P]===0;P--)k++;if(P>=0)k++;if(S=S.dblp(k),P<0)break;var x=D[P];if(G(x!==0),E.type==="affine")if(x>0)S=S.mixedAdd(F[x-1>>1]);else S=S.mixedAdd(F[-x-1>>1].neg());else if(x>0)S=S.add(F[x-1>>1]);else S=S.add(F[-x-1>>1].neg())}return E.type==="affine"?S.toP():S},v.prototype._wnafMulAdd=function(E,q,C,M,F){var D=this._wnafT1,S=this._wnafT2,P=this._wnafT3,k=0,x,f,h;for(x=0;x<M;x++){h=q[x];var c=h._getNAFPoints(E);D[x]=c.wnd,S[x]=c.points}for(x=M-1;x>=1;x-=2){var m=x-1,g=x;if(D[m]!==1||D[g]!==1){P[m]=O(C[m],D[m],this._bitLength),P[g]=O(C[g],D[g],this._bitLength),k=Math.max(P[m].length,k),k=Math.max(P[g].length,k);continue}var Q0=[q[m],null,null,q[g]];if(q[m].y.cmp(q[g].y)===0)Q0[1]=q[m].add(q[g]),Q0[2]=q[m].toJ().mixedAdd(q[g].neg());else if(q[m].y.cmp(q[g].y.redNeg())===0)Q0[1]=q[m].toJ().mixedAdd(q[g]),Q0[2]=q[m].add(q[g].neg());else Q0[1]=q[m].toJ().mixedAdd(q[g]),Q0[2]=q[m].toJ().mixedAdd(q[g].neg());var J0=[-3,-1,-5,-7,0,7,5,1,3],r=A(C[m],C[g]);k=Math.max(r[0].length,k),P[m]=Array(k),P[g]=Array(k);for(f=0;f<k;f++){var O0=r[0][f]|0,U=r[1][f]|0;P[m][f]=J0[(O0+1)*3+(U+1)],P[g][f]=0,S[m]=Q0}}var X=this.jpoint(null,null,null),$=this._wnafT4;for(x=k;x>=0;x--){var Q=0;while(x>=0){var K=!0;for(f=0;f<M;f++)if($[f]=P[f][x]|0,$[f]!==0)K=!1;if(!K)break;Q++,x--}if(x>=0)Q++;if(X=X.dblp(Q),x<0)break;for(f=0;f<M;f++){var L=$[f];if(L===0)continue;else if(L>0)h=S[f][L-1>>1];else if(L<0)h=S[f][-L-1>>1].neg();if(h.type==="affine")X=X.mixedAdd(h);else X=X.add(h)}}for(x=0;x<M;x++)S[x]=null;if(F)return X;else return X.toP()};function j(E,q){this.curve=E,this.type=q,this.precomputed=null}v.BasePoint=j,j.prototype.eq=function(){throw Error("Not implemented")},j.prototype.validate=function(){return this.curve.validate(this)},v.prototype.decodePoint=function(E,q){E=z.toArray(E,q);var C=this.p.byteLength();if((E[0]===4||E[0]===6||E[0]===7)&&E.length-1===2*C){if(E[0]===6)G(E[E.length-1]%2===0);else if(E[0]===7)G(E[E.length-1]%2===1);var M=this.point(E.slice(1,1+C),E.slice(1+C,1+2*C));return M}else if((E[0]===2||E[0]===3)&&E.length-1===C)return this.pointFromX(E.slice(1,1+C),E[0]===3);throw Error("Unknown point format")},j.prototype.encodeCompressed=function(E){return this.encode(E,!0)},j.prototype._encode=function(E){var q=this.curve.p.byteLength(),C=this.getX().toArray("be",q);if(E)return[this.getY().isEven()?2:3].concat(C);return[4].concat(C,this.getY().toArray("be",q))},j.prototype.encode=function(E,q){return z.encode(this._encode(q),E)},j.prototype.precompute=function(E){if(this.precomputed)return this;var q={doubles:null,naf:null,beta:null};return q.naf=this._getNAFPoints(8),q.doubles=this._getDoubles(4,E),q.beta=this._getBeta(),this.precomputed=q,this},j.prototype._hasDoubles=function(E){if(!this.precomputed)return!1;var q=this.precomputed.doubles;if(!q)return!1;return q.points.length>=Math.ceil((E.bitLength()+1)/q.step)},j.prototype._getDoubles=function(E,q){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var C=[this],M=this;for(var F=0;F<q;F+=E){for(var D=0;D<E;D++)M=M.dbl();C.push(M)}return{step:E,points:C}},j.prototype._getNAFPoints=function(E){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var q=[this],C=(1<<E)-1,M=C===1?null:this.dbl();for(var F=1;F<C;F++)q[F]=q[F-1].add(M);return{wnd:E,points:q}},j.prototype._getBeta=function(){return null},j.prototype.dblp=function(E){var q=this;for(var C=0;C<E;C++)q=q.dbl();return q}}),cI=k0((Y,W)=>{if(typeof Object.create==="function")W.exports=function(V,z){if(z)V.super_=z,V.prototype=Object.create(z.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}})};else W.exports=function(V,z){if(z){V.super_=z;var O=function(){};O.prototype=z.prototype,V.prototype=new O,V.prototype.constructor=V}}}),UZ=k0((Y,W)=>{try{if(V=(Q1(),WU(Z1)),typeof V.inherits!=="function")throw"";W.exports=V.inherits}catch(z){W.exports=cI()}var V}),bI=k0((Y,W)=>{var V=JZ(),z=qZ(),O=UZ(),A=LX(),G=V.assert;function v(q){A.call(this,"short",q),this.a=new z(q.a,16).toRed(this.red),this.b=new z(q.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(q),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}O(v,A),W.exports=v,v.prototype._getEndomorphism=function(q){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var C,M;if(q.beta)C=new z(q.beta,16).toRed(this.red);else{var F=this._getEndoRoots(this.p);C=F[0].cmp(F[1])<0?F[0]:F[1],C=C.toRed(this.red)}if(q.lambda)M=new z(q.lambda,16);else{var D=this._getEndoRoots(this.n);if(this.g.mul(D[0]).x.cmp(this.g.x.redMul(C))===0)M=D[0];else M=D[1],G(this.g.mul(M).x.cmp(this.g.x.redMul(C))===0)}var S;if(q.basis)S=q.basis.map(function(P){return{a:new z(P.a,16),b:new z(P.b,16)}});else S=this._getEndoBasis(M);return{beta:C,lambda:M,basis:S}},v.prototype._getEndoRoots=function(q){var C=q===this.p?this.red:z.mont(q),M=new z(2).toRed(C).redInvm(),F=M.redNeg(),D=new z(3).toRed(C).redNeg().redSqrt().redMul(M),S=F.redAdd(D).fromRed(),P=F.redSub(D).fromRed();return[S,P]},v.prototype._getEndoBasis=function(q){var C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),M=q,F=this.n.clone(),D=new z(1),S=new z(0),P=new z(0),k=new z(1),x,f,h,c,m,g,Q0,J0=0,r,O0;while(M.cmpn(0)!==0){var U=F.div(M);r=F.sub(U.mul(M)),O0=P.sub(U.mul(D));var X=k.sub(U.mul(S));if(!h&&r.cmp(C)<0)x=Q0.neg(),f=D,h=r.neg(),c=O0;else if(h&&++J0===2)break;Q0=r,F=M,M=r,P=D,D=O0,k=S,S=X}m=r.neg(),g=O0;var $=h.sqr().add(c.sqr()),Q=m.sqr().add(g.sqr());if(Q.cmp($)>=0)m=x,g=f;if(h.negative)h=h.neg(),c=c.neg();if(m.negative)m=m.neg(),g=g.neg();return[{a:h,b:c},{a:m,b:g}]},v.prototype._endoSplit=function(q){var C=this.endo.basis,M=C[0],F=C[1],D=F.b.mul(q).divRound(this.n),S=M.b.neg().mul(q).divRound(this.n),P=D.mul(M.a),k=S.mul(F.a),x=D.mul(M.b),f=S.mul(F.b),h=q.sub(P).sub(k),c=x.add(f).neg();return{k1:h,k2:c}},v.prototype.pointFromX=function(q,C){if(q=new z(q,16),!q.red)q=q.toRed(this.red);var M=q.redSqr().redMul(q).redIAdd(q.redMul(this.a)).redIAdd(this.b),F=M.redSqrt();if(F.redSqr().redSub(M).cmp(this.zero)!==0)throw Error("invalid point");var D=F.fromRed().isOdd();if(C&&!D||!C&&D)F=F.redNeg();return this.point(q,F)},v.prototype.validate=function(q){if(q.inf)return!0;var{x:C,y:M}=q,F=this.a.redMul(C),D=C.redSqr().redMul(C).redIAdd(F).redIAdd(this.b);return M.redSqr().redISub(D).cmpn(0)===0},v.prototype._endoWnafMulAdd=function(q,C,M){var F=this._endoWnafT1,D=this._endoWnafT2;for(var S=0;S<q.length;S++){var P=this._endoSplit(C[S]),k=q[S],x=k._getBeta();if(P.k1.negative)P.k1.ineg(),k=k.neg(!0);if(P.k2.negative)P.k2.ineg(),x=x.neg(!0);F[S*2]=k,F[S*2+1]=x,D[S*2]=P.k1,D[S*2+1]=P.k2}var f=this._wnafMulAdd(1,F,D,S*2,M);for(var h=0;h<S*2;h++)F[h]=null,D[h]=null;return f};function j(q,C,M,F){if(A.BasePoint.call(this,q,"affine"),C===null&&M===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new z(C,16),this.y=new z(M,16),F)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}}O(j,A.BasePoint),v.prototype.point=function(q,C,M){return new j(this,q,C,M)},v.prototype.pointFromJSON=function(q,C){return j.fromJSON(this,q,C)},j.prototype._getBeta=function(){if(!this.curve.endo)return;var q=this.precomputed;if(q&&q.beta)return q.beta;var C=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(q){var M=this.curve,F=function(D){return M.point(D.x.redMul(M.endo.beta),D.y)};q.beta=C,C.precomputed={beta:null,naf:q.naf&&{wnd:q.naf.wnd,points:q.naf.points.map(F)},doubles:q.doubles&&{step:q.doubles.step,points:q.doubles.points.map(F)}}}return C},j.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)}}]},j.fromJSON=function(q,C,M){if(typeof C==="string")C=JSON.parse(C);var F=q.point(C[0],C[1],M);if(!C[2])return F;function D(P){return q.point(P[0],P[1],M)}var S=C[2];return F.precomputed={beta:null,doubles:S.doubles&&{step:S.doubles.step,points:[F].concat(S.doubles.points.map(D))},naf:S.naf&&{wnd:S.naf.wnd,points:[F].concat(S.naf.points.map(D))}},F},j.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)+">"},j.prototype.isInfinity=function(){return this.inf},j.prototype.add=function(q){if(this.inf)return q;if(q.inf)return this;if(this.eq(q))return this.dbl();if(this.neg().eq(q))return this.curve.point(null,null);if(this.x.cmp(q.x)===0)return this.curve.point(null,null);var C=this.y.redSub(q.y);if(C.cmpn(0)!==0)C=C.redMul(this.x.redSub(q.x).redInvm());var M=C.redSqr().redISub(this.x).redISub(q.x),F=C.redMul(this.x.redSub(M)).redISub(this.y);return this.curve.point(M,F)},j.prototype.dbl=function(){if(this.inf)return this;var q=this.y.redAdd(this.y);if(q.cmpn(0)===0)return this.curve.point(null,null);var C=this.curve.a,M=this.x.redSqr(),F=q.redInvm(),D=M.redAdd(M).redIAdd(M).redIAdd(C).redMul(F),S=D.redSqr().redISub(this.x.redAdd(this.x)),P=D.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,P)},j.prototype.getX=function(){return this.x.fromRed()},j.prototype.getY=function(){return this.y.fromRed()},j.prototype.mul=function(q){if(q=new z(q,16),this.isInfinity())return this;else if(this._hasDoubles(q))return this.curve._fixedNafMul(this,q);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[q]);else return this.curve._wnafMul(this,q)},j.prototype.mulAdd=function(q,C,M){var F=[this,C],D=[q,M];if(this.curve.endo)return this.curve._endoWnafMulAdd(F,D);else return this.curve._wnafMulAdd(1,F,D,2)},j.prototype.jmulAdd=function(q,C,M){var F=[this,C],D=[q,M];if(this.curve.endo)return this.curve._endoWnafMulAdd(F,D,!0);else return this.curve._wnafMulAdd(1,F,D,2,!0)},j.prototype.eq=function(q){return this===q||this.inf===q.inf&&(this.inf||this.x.cmp(q.x)===0&&this.y.cmp(q.y)===0)},j.prototype.neg=function(q){if(this.inf)return this;var C=this.curve.point(this.x,this.y.redNeg());if(q&&this.precomputed){var M=this.precomputed,F=function(D){return D.neg()};C.precomputed={naf:M.naf&&{wnd:M.naf.wnd,points:M.naf.points.map(F)},doubles:M.doubles&&{step:M.doubles.step,points:M.doubles.points.map(F)}}}return C},j.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var q=this.curve.jpoint(this.x,this.y,this.curve.one);return q};function E(q,C,M,F){if(A.BasePoint.call(this,q,"jacobian"),C===null&&M===null&&F===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new z(0);else this.x=new z(C,16),this.y=new z(M,16),this.z=new z(F,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}O(E,A.BasePoint),v.prototype.jpoint=function(q,C,M){return new E(this,q,C,M)},E.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var q=this.z.redInvm(),C=q.redSqr(),M=this.x.redMul(C),F=this.y.redMul(C).redMul(q);return this.curve.point(M,F)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(q){if(this.isInfinity())return q;if(q.isInfinity())return this;var C=q.z.redSqr(),M=this.z.redSqr(),F=this.x.redMul(C),D=q.x.redMul(M),S=this.y.redMul(C.redMul(q.z)),P=q.y.redMul(M.redMul(this.z)),k=F.redSub(D),x=S.redSub(P);if(k.cmpn(0)===0)if(x.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var f=k.redSqr(),h=f.redMul(k),c=F.redMul(f),m=x.redSqr().redIAdd(h).redISub(c).redISub(c),g=x.redMul(c.redISub(m)).redISub(S.redMul(h)),Q0=this.z.redMul(q.z).redMul(k);return this.curve.jpoint(m,g,Q0)},E.prototype.mixedAdd=function(q){if(this.isInfinity())return q.toJ();if(q.isInfinity())return this;var C=this.z.redSqr(),M=this.x,F=q.x.redMul(C),D=this.y,S=q.y.redMul(C).redMul(this.z),P=M.redSub(F),k=D.redSub(S);if(P.cmpn(0)===0)if(k.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var x=P.redSqr(),f=x.redMul(P),h=M.redMul(x),c=k.redSqr().redIAdd(f).redISub(h).redISub(h),m=k.redMul(h.redISub(c)).redISub(D.redMul(f)),g=this.z.redMul(P);return this.curve.jpoint(c,m,g)},E.prototype.dblp=function(q){if(q===0)return this;if(this.isInfinity())return this;if(!q)return this.dbl();var C;if(this.curve.zeroA||this.curve.threeA){var M=this;for(C=0;C<q;C++)M=M.dbl();return M}var F=this.curve.a,D=this.curve.tinv,S=this.x,P=this.y,k=this.z,x=k.redSqr().redSqr(),f=P.redAdd(P);for(C=0;C<q;C++){var h=S.redSqr(),c=f.redSqr(),m=c.redSqr(),g=h.redAdd(h).redIAdd(h).redIAdd(F.redMul(x)),Q0=S.redMul(c),J0=g.redSqr().redISub(Q0.redAdd(Q0)),r=Q0.redISub(J0),O0=g.redMul(r);O0=O0.redIAdd(O0).redISub(m);var U=f.redMul(k);if(C+1<q)x=x.redMul(m);S=J0,k=U,f=O0}return this.curve.jpoint(S,f.redMul(D),k)},E.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()},E.prototype._zeroDbl=function(){var q,C,M;if(this.zOne){var F=this.x.redSqr(),D=this.y.redSqr(),S=D.redSqr(),P=this.x.redAdd(D).redSqr().redISub(F).redISub(S);P=P.redIAdd(P);var k=F.redAdd(F).redIAdd(F),x=k.redSqr().redISub(P).redISub(P),f=S.redIAdd(S);f=f.redIAdd(f),f=f.redIAdd(f),q=x,C=k.redMul(P.redISub(x)).redISub(f),M=this.y.redAdd(this.y)}else{var h=this.x.redSqr(),c=this.y.redSqr(),m=c.redSqr(),g=this.x.redAdd(c).redSqr().redISub(h).redISub(m);g=g.redIAdd(g);var Q0=h.redAdd(h).redIAdd(h),J0=Q0.redSqr(),r=m.redIAdd(m);r=r.redIAdd(r),r=r.redIAdd(r),q=J0.redISub(g).redISub(g),C=Q0.redMul(g.redISub(q)).redISub(r),M=this.y.redMul(this.z),M=M.redIAdd(M)}return this.curve.jpoint(q,C,M)},E.prototype._threeDbl=function(){var q,C,M;if(this.zOne){var F=this.x.redSqr(),D=this.y.redSqr(),S=D.redSqr(),P=this.x.redAdd(D).redSqr().redISub(F).redISub(S);P=P.redIAdd(P);var k=F.redAdd(F).redIAdd(F).redIAdd(this.curve.a),x=k.redSqr().redISub(P).redISub(P);q=x;var f=S.redIAdd(S);f=f.redIAdd(f),f=f.redIAdd(f),C=k.redMul(P.redISub(x)).redISub(f),M=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),c=this.y.redSqr(),m=this.x.redMul(c),g=this.x.redSub(h).redMul(this.x.redAdd(h));g=g.redAdd(g).redIAdd(g);var Q0=m.redIAdd(m);Q0=Q0.redIAdd(Q0);var J0=Q0.redAdd(Q0);q=g.redSqr().redISub(J0),M=this.y.redAdd(this.z).redSqr().redISub(c).redISub(h);var r=c.redSqr();r=r.redIAdd(r),r=r.redIAdd(r),r=r.redIAdd(r),C=g.redMul(Q0.redISub(q)).redISub(r)}return this.curve.jpoint(q,C,M)},E.prototype._dbl=function(){var q=this.curve.a,C=this.x,M=this.y,F=this.z,D=F.redSqr().redSqr(),S=C.redSqr(),P=M.redSqr(),k=S.redAdd(S).redIAdd(S).redIAdd(q.redMul(D)),x=C.redAdd(C);x=x.redIAdd(x);var f=x.redMul(P),h=k.redSqr().redISub(f.redAdd(f)),c=f.redISub(h),m=P.redSqr();m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m);var g=k.redMul(c).redISub(m),Q0=M.redAdd(M).redMul(F);return this.curve.jpoint(h,g,Q0)},E.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var q=this.x.redSqr(),C=this.y.redSqr(),M=this.z.redSqr(),F=C.redSqr(),D=q.redAdd(q).redIAdd(q),S=D.redSqr(),P=this.x.redAdd(C).redSqr().redISub(q).redISub(F);P=P.redIAdd(P),P=P.redAdd(P).redIAdd(P),P=P.redISub(S);var k=P.redSqr(),x=F.redIAdd(F);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var f=D.redIAdd(P).redSqr().redISub(S).redISub(k).redISub(x),h=C.redMul(f);h=h.redIAdd(h),h=h.redIAdd(h);var c=this.x.redMul(k).redISub(h);c=c.redIAdd(c),c=c.redIAdd(c);var m=this.y.redMul(f.redMul(x.redISub(f)).redISub(P.redMul(k)));m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m);var g=this.z.redAdd(P).redSqr().redISub(M).redISub(k);return this.curve.jpoint(c,m,g)},E.prototype.mul=function(q,C){return q=new z(q,C),this.curve._wnafMul(this,q)},E.prototype.eq=function(q){if(q.type==="affine")return this.eq(q.toJ());if(this===q)return!0;var C=this.z.redSqr(),M=q.z.redSqr();if(this.x.redMul(M).redISub(q.x.redMul(C)).cmpn(0)!==0)return!1;var F=C.redMul(this.z),D=M.redMul(q.z);return this.y.redMul(D).redISub(q.y.redMul(F)).cmpn(0)===0},E.prototype.eqXToP=function(q){var C=this.z.redSqr(),M=q.toRed(this.curve.red).redMul(C);if(this.x.cmp(M)===0)return!0;var F=q.clone(),D=this.curve.redN.redMul(C);for(;;){if(F.iadd(this.curve.n),F.cmp(this.curve.p)>=0)return!1;if(M.redIAdd(D),this.x.cmp(M)===0)return!0}},E.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)+">"},E.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),uI=k0((Y,W)=>{var V=qZ(),z=UZ(),O=LX(),A=JZ();function G(j){O.call(this,"mont",j),this.a=new V(j.a,16).toRed(this.red),this.b=new V(j.b,16).toRed(this.red),this.i4=new V(4).toRed(this.red).redInvm(),this.two=new V(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}z(G,O),W.exports=G,G.prototype.validate=function(j){var E=j.normalize().x,q=E.redSqr(),C=q.redMul(E).redAdd(q.redMul(this.a)).redAdd(E),M=C.redSqrt();return M.redSqr().cmp(C)===0};function v(j,E,q){if(O.BasePoint.call(this,j,"projective"),E===null&&q===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new V(E,16),this.z=new V(q,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}z(v,O.BasePoint),G.prototype.decodePoint=function(j,E){return this.point(A.toArray(j,E),1)},G.prototype.point=function(j,E){return new v(this,j,E)},G.prototype.pointFromJSON=function(j){return v.fromJSON(this,j)},v.prototype.precompute=function(){},v.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},v.fromJSON=function(j,E){return new v(j,E[0],E[1]||j.one)},v.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)+">"},v.prototype.isInfinity=function(){return this.z.cmpn(0)===0},v.prototype.dbl=function(){var j=this.x.redAdd(this.z),E=j.redSqr(),q=this.x.redSub(this.z),C=q.redSqr(),M=E.redSub(C),F=E.redMul(C),D=M.redMul(C.redAdd(this.curve.a24.redMul(M)));return this.curve.point(F,D)},v.prototype.add=function(){throw Error("Not supported on Montgomery curve")},v.prototype.diffAdd=function(j,E){var q=this.x.redAdd(this.z),C=this.x.redSub(this.z),M=j.x.redAdd(j.z),F=j.x.redSub(j.z),D=F.redMul(q),S=M.redMul(C),P=E.z.redMul(D.redAdd(S).redSqr()),k=E.x.redMul(D.redISub(S).redSqr());return this.curve.point(P,k)},v.prototype.mul=function(j){var E=j.clone(),q=this,C=this.curve.point(null,null),M=this;for(var F=[];E.cmpn(0)!==0;E.iushrn(1))F.push(E.andln(1));for(var D=F.length-1;D>=0;D--)if(F[D]===0)q=q.diffAdd(C,M),C=C.dbl();else C=q.diffAdd(C,M),q=q.dbl();return C},v.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},v.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},v.prototype.eq=function(j){return this.getX().cmp(j.getX())===0},v.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},v.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),dI=k0((Y,W)=>{var V=JZ(),z=qZ(),O=UZ(),A=LX(),G=V.assert;function v(E){this.twisted=(E.a|0)!==1,this.mOneA=this.twisted&&(E.a|0)===-1,this.extended=this.mOneA,A.call(this,"edwards",E),this.a=new z(E.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new z(E.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new z(E.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),G(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(E.c|0)===1}O(v,A),W.exports=v,v.prototype._mulA=function(E){if(this.mOneA)return E.redNeg();else return this.a.redMul(E)},v.prototype._mulC=function(E){if(this.oneC)return E;else return this.c.redMul(E)},v.prototype.jpoint=function(E,q,C,M){return this.point(E,q,C,M)},v.prototype.pointFromX=function(E,q){if(E=new z(E,16),!E.red)E=E.toRed(this.red);var C=E.redSqr(),M=this.c2.redSub(this.a.redMul(C)),F=this.one.redSub(this.c2.redMul(this.d).redMul(C)),D=M.redMul(F.redInvm()),S=D.redSqrt();if(S.redSqr().redSub(D).cmp(this.zero)!==0)throw Error("invalid point");var P=S.fromRed().isOdd();if(q&&!P||!q&&P)S=S.redNeg();return this.point(E,S)},v.prototype.pointFromY=function(E,q){if(E=new z(E,16),!E.red)E=E.toRed(this.red);var C=E.redSqr(),M=C.redSub(this.c2),F=C.redMul(this.d).redMul(this.c2).redSub(this.a),D=M.redMul(F.redInvm());if(D.cmp(this.zero)===0)if(q)throw Error("invalid point");else return this.point(this.zero,E);var S=D.redSqrt();if(S.redSqr().redSub(D).cmp(this.zero)!==0)throw Error("invalid point");if(S.fromRed().isOdd()!==q)S=S.redNeg();return this.point(S,E)},v.prototype.validate=function(E){if(E.isInfinity())return!0;E.normalize();var q=E.x.redSqr(),C=E.y.redSqr(),M=q.redMul(this.a).redAdd(C),F=this.c2.redMul(this.one.redAdd(this.d.redMul(q).redMul(C)));return M.cmp(F)===0};function j(E,q,C,M,F){if(A.BasePoint.call(this,E,"projective"),q===null&&C===null&&M===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 z(q,16),this.y=new z(C,16),this.z=M?new z(M,16):this.curve.one,this.t=F&&new z(F,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())}}}O(j,A.BasePoint),v.prototype.pointFromJSON=function(E){return j.fromJSON(this,E)},v.prototype.point=function(E,q,C,M){return new j(this,E,q,C,M)},j.fromJSON=function(E,q){return new j(E,q[0],q[1],q[2])},j.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)+">"},j.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},j.prototype._extDbl=function(){var E=this.x.redSqr(),q=this.y.redSqr(),C=this.z.redSqr();C=C.redIAdd(C);var M=this.curve._mulA(E),F=this.x.redAdd(this.y).redSqr().redISub(E).redISub(q),D=M.redAdd(q),S=D.redSub(C),P=M.redSub(q),k=F.redMul(S),x=D.redMul(P),f=F.redMul(P),h=S.redMul(D);return this.curve.point(k,x,h,f)},j.prototype._projDbl=function(){var E=this.x.redAdd(this.y).redSqr(),q=this.x.redSqr(),C=this.y.redSqr(),M,F,D,S,P,k;if(this.curve.twisted){S=this.curve._mulA(q);var x=S.redAdd(C);if(this.zOne)M=E.redSub(q).redSub(C).redMul(x.redSub(this.curve.two)),F=x.redMul(S.redSub(C)),D=x.redSqr().redSub(x).redSub(x);else P=this.z.redSqr(),k=x.redSub(P).redISub(P),M=E.redSub(q).redISub(C).redMul(k),F=x.redMul(S.redSub(C)),D=x.redMul(k)}else S=q.redAdd(C),P=this.curve._mulC(this.z).redSqr(),k=S.redSub(P).redSub(P),M=this.curve._mulC(E.redISub(S)).redMul(k),F=this.curve._mulC(S).redMul(q.redISub(C)),D=S.redMul(k);return this.curve.point(M,F,D)},j.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},j.prototype._extAdd=function(E){var q=this.y.redSub(this.x).redMul(E.y.redSub(E.x)),C=this.y.redAdd(this.x).redMul(E.y.redAdd(E.x)),M=this.t.redMul(this.curve.dd).redMul(E.t),F=this.z.redMul(E.z.redAdd(E.z)),D=C.redSub(q),S=F.redSub(M),P=F.redAdd(M),k=C.redAdd(q),x=D.redMul(S),f=P.redMul(k),h=D.redMul(k),c=S.redMul(P);return this.curve.point(x,f,c,h)},j.prototype._projAdd=function(E){var q=this.z.redMul(E.z),C=q.redSqr(),M=this.x.redMul(E.x),F=this.y.redMul(E.y),D=this.curve.d.redMul(M).redMul(F),S=C.redSub(D),P=C.redAdd(D),k=this.x.redAdd(this.y).redMul(E.x.redAdd(E.y)).redISub(M).redISub(F),x=q.redMul(S).redMul(k),f,h;if(this.curve.twisted)f=q.redMul(P).redMul(F.redSub(this.curve._mulA(M))),h=S.redMul(P);else f=q.redMul(P).redMul(F.redSub(M)),h=this.curve._mulC(S).redMul(P);return this.curve.point(x,f,h)},j.prototype.add=function(E){if(this.isInfinity())return E;if(E.isInfinity())return this;if(this.curve.extended)return this._extAdd(E);else return this._projAdd(E)},j.prototype.mul=function(E){if(this._hasDoubles(E))return this.curve._fixedNafMul(this,E);else return this.curve._wnafMul(this,E)},j.prototype.mulAdd=function(E,q,C){return this.curve._wnafMulAdd(1,[this,q],[E,C],2,!1)},j.prototype.jmulAdd=function(E,q,C){return this.curve._wnafMulAdd(1,[this,q],[E,C],2,!0)},j.prototype.normalize=function(){if(this.zOne)return this;var E=this.z.redInvm();if(this.x=this.x.redMul(E),this.y=this.y.redMul(E),this.t)this.t=this.t.redMul(E);return this.z=this.curve.one,this.zOne=!0,this},j.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},j.prototype.getX=function(){return this.normalize(),this.x.fromRed()},j.prototype.getY=function(){return this.normalize(),this.y.fromRed()},j.prototype.eq=function(E){return this===E||this.getX().cmp(E.getX())===0&&this.getY().cmp(E.getY())===0},j.prototype.eqXToP=function(E){var q=E.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(q)===0)return!0;var C=E.clone(),M=this.curve.redN.redMul(this.z);for(;;){if(C.iadd(this.curve.n),C.cmp(this.curve.p)>=0)return!1;if(q.redIAdd(M),this.x.cmp(q)===0)return!0}},j.prototype.toP=j.prototype.normalize,j.prototype.mixedAdd=j.prototype.add}),eG=k0((Y)=>{var W=Y;W.base=LX(),W.short=bI(),W.mont=uI(),W.edwards=dI()}),KZ=k0((Y)=>{var W=kZ(),V=UZ();Y.inherits=V;function z(X,$){if((X.charCodeAt($)&64512)!==55296)return!1;if($<0||$+1>=X.length)return!1;return(X.charCodeAt($+1)&64512)===56320}function O(X,$){if(Array.isArray(X))return X.slice();if(!X)return[];var Q=[];if(typeof X==="string"){if(!$){var K=0;for(var L=0;L<X.length;L++){var T=X.charCodeAt(L);if(T<128)Q[K++]=T;else if(T<2048)Q[K++]=T>>6|192,Q[K++]=T&63|128;else if(z(X,L))T=65536+((T&1023)<<10)+(X.charCodeAt(++L)&1023),Q[K++]=T>>18|240,Q[K++]=T>>12&63|128,Q[K++]=T>>6&63|128,Q[K++]=T&63|128;else Q[K++]=T>>12|224,Q[K++]=T>>6&63|128,Q[K++]=T&63|128}}else if($==="hex"){if(X=X.replace(/[^a-z0-9]+/ig,""),X.length%2!==0)X="0"+X;for(L=0;L<X.length;L+=2)Q.push(parseInt(X[L]+X[L+1],16))}}else for(L=0;L<X.length;L++)Q[L]=X[L]|0;return Q}Y.toArray=O;function A(X){var $="";for(var Q=0;Q<X.length;Q++)$+=j(X[Q].toString(16));return $}Y.toHex=A;function G(X){var $=X>>>24|X>>>8&65280|X<<8&16711680|(X&255)<<24;return $>>>0}Y.htonl=G;function v(X,$){var Q="";for(var K=0;K<X.length;K++){var L=X[K];if($==="little")L=G(L);Q+=E(L.toString(16))}return Q}Y.toHex32=v;function j(X){if(X.length===1)return"0"+X;else return X}Y.zero2=j;function E(X){if(X.length===7)return"0"+X;else if(X.length===6)return"00"+X;else if(X.length===5)return"000"+X;else if(X.length===4)return"0000"+X;else if(X.length===3)return"00000"+X;else if(X.length===2)return"000000"+X;else if(X.length===1)return"0000000"+X;else return X}Y.zero8=E;function q(X,$,Q,K){var L=Q-$;W(L%4===0);var T=Array(L/4);for(var I=0,Z=$;I<T.length;I++,Z+=4){var H;if(K==="big")H=X[Z]<<24|X[Z+1]<<16|X[Z+2]<<8|X[Z+3];else H=X[Z+3]<<24|X[Z+2]<<16|X[Z+1]<<8|X[Z];T[I]=H>>>0}return T}Y.join32=q;function C(X,$){var Q=Array(X.length*4);for(var K=0,L=0;K<X.length;K++,L+=4){var T=X[K];if($==="big")Q[L]=T>>>24,Q[L+1]=T>>>16&255,Q[L+2]=T>>>8&255,Q[L+3]=T&255;else Q[L+3]=T>>>24,Q[L+2]=T>>>16&255,Q[L+1]=T>>>8&255,Q[L]=T&255}return Q}Y.split32=C;function M(X,$){return X>>>$|X<<32-$}Y.rotr32=M;function F(X,$){return X<<$|X>>>32-$}Y.rotl32=F;function D(X,$){return X+$>>>0}Y.sum32=D;function S(X,$,Q){return X+$+Q>>>0}Y.sum32_3=S;function P(X,$,Q,K){return X+$+Q+K>>>0}Y.sum32_4=P;function k(X,$,Q,K,L){return X+$+Q+K+L>>>0}Y.sum32_5=k;function x(X,$,Q,K){var L=X[$],T=X[$+1],I=K+T>>>0,Z=(I<K?1:0)+Q+L;X[$]=Z>>>0,X[$+1]=I}Y.sum64=x;function f(X,$,Q,K){var L=$+K>>>0,T=(L<$?1:0)+X+Q;return T>>>0}Y.sum64_hi=f;function h(X,$,Q,K){var L=$+K;return L>>>0}Y.sum64_lo=h;function c(X,$,Q,K,L,T,I,Z){var H=0,N=$;N=N+K>>>0,H+=N<$?1:0,N=N+T>>>0,H+=N<T?1:0,N=N+Z>>>0,H+=N<Z?1:0;var B=X+Q+L+I+H;return B>>>0}Y.sum64_4_hi=c;function m(X,$,Q,K,L,T,I,Z){var H=$+K+T+Z;return H>>>0}Y.sum64_4_lo=m;function g(X,$,Q,K,L,T,I,Z,H,N){var B=0,w=$;w=w+K>>>0,B+=w<$?1:0,w=w+T>>>0,B+=w<T?1:0,w=w+Z>>>0,B+=w<Z?1:0,w=w+N>>>0,B+=w<N?1:0;var u=X+Q+L+I+H+B;return u>>>0}Y.sum64_5_hi=g;function Q0(X,$,Q,K,L,T,I,Z,H,N){var B=$+K+T+Z+N;return B>>>0}Y.sum64_5_lo=Q0;function J0(X,$,Q){var K=$<<32-Q|X>>>Q;return K>>>0}Y.rotr64_hi=J0;function r(X,$,Q){var K=X<<32-Q|$>>>Q;return K>>>0}Y.rotr64_lo=r;function O0(X,$,Q){return X>>>Q}Y.shr64_hi=O0;function U(X,$,Q){var K=X<<32-Q|$>>>Q;return K>>>0}Y.shr64_lo=U}),hQ=k0((Y)=>{var W=KZ(),V=kZ();function z(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Y.BlockHash=z,z.prototype.update=function(O,A){if(O=W.toArray(O,A),!this.pending)this.pending=O;else this.pending=this.pending.concat(O);if(this.pendingTotal+=O.length,this.pending.length>=this._delta8){O=this.pending;var G=O.length%this._delta8;if(this.pending=O.slice(O.length-G,O.length),this.pending.length===0)this.pending=null;O=W.join32(O,0,O.length-G,this.endian);for(var v=0;v<O.length;v+=this._delta32)this._update(O,v,v+this._delta32)}return this},z.prototype.digest=function(O){return this.update(this._pad()),V(this.pending===null),this._digest(O)},z.prototype._pad=function(){var O=this.pendingTotal,A=this._delta8,G=A-(O+this.padLength)%A,v=Array(G+this.padLength);v[0]=128;for(var j=1;j<G;j++)v[j]=0;if(O<<=3,this.endian==="big"){for(var E=8;E<this.padLength;E++)v[j++]=0;v[j++]=0,v[j++]=0,v[j++]=0,v[j++]=0,v[j++]=O>>>24&255,v[j++]=O>>>16&255,v[j++]=O>>>8&255,v[j++]=O&255}else{v[j++]=O&255,v[j++]=O>>>8&255,v[j++]=O>>>16&255,v[j++]=O>>>24&255,v[j++]=0,v[j++]=0,v[j++]=0,v[j++]=0;for(E=8;E<this.padLength;E++)v[j++]=0}return v}}),UW=k0((Y)=>{var W=KZ(),V=W.rotr32;function z(C,M,F,D){if(C===0)return O(M,F,D);if(C===1||C===3)return G(M,F,D);if(C===2)return A(M,F,D)}Y.ft_1=z;function O(C,M,F){return C&M^~C&F}Y.ch32=O;function A(C,M,F){return C&M^C&F^M&F}Y.maj32=A;function G(C,M,F){return C^M^F}Y.p32=G;function v(C){return V(C,2)^V(C,13)^V(C,22)}Y.s0_256=v;function j(C){return V(C,6)^V(C,11)^V(C,25)}Y.s1_256=j;function E(C){return V(C,7)^V(C,18)^C>>>3}Y.g0_256=E;function q(C){return V(C,17)^V(C,19)^C>>>10}Y.g1_256=q}),lI=k0((Y,W)=>{var V=KZ(),z=hQ(),O=UW(),A=V.rotl32,G=V.sum32,v=V.sum32_5,j=O.ft_1,E=z.BlockHash,q=[1518500249,1859775393,2400959708,3395469782];function C(){if(!(this instanceof C))return new C;E.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}V.inherits(C,E),W.exports=C,C.blockSize=512,C.outSize=160,C.hmacStrength=80,C.padLength=64,C.prototype._update=function(M,F){var D=this.W;for(var S=0;S<16;S++)D[S]=M[F+S];for(;S<D.length;S++)D[S]=A(D[S-3]^D[S-8]^D[S-14]^D[S-16],1);var P=this.h[0],k=this.h[1],x=this.h[2],f=this.h[3],h=this.h[4];for(S=0;S<D.length;S++){var c=~~(S/20),m=v(A(P,5),j(c,k,x,f),h,D[S],q[c]);h=f,f=x,x=A(k,30),k=P,P=m}this.h[0]=G(this.h[0],P),this.h[1]=G(this.h[1],k),this.h[2]=G(this.h[2],x),this.h[3]=G(this.h[3],f),this.h[4]=G(this.h[4],h)},C.prototype._digest=function(M){if(M==="hex")return V.toHex32(this.h,"big");else return V.split32(this.h,"big")}}),ZW=k0((Y,W)=>{var V=KZ(),z=hQ(),O=UW(),A=kZ(),G=V.sum32,v=V.sum32_4,j=V.sum32_5,E=O.ch32,q=O.maj32,C=O.s0_256,M=O.s1_256,F=O.g0_256,D=O.g1_256,S=z.BlockHash,P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=P,this.W=Array(64)}V.inherits(k,S),W.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(x,f){var h=this.W;for(var c=0;c<16;c++)h[c]=x[f+c];for(;c<h.length;c++)h[c]=v(D(h[c-2]),h[c-7],F(h[c-15]),h[c-16]);var m=this.h[0],g=this.h[1],Q0=this.h[2],J0=this.h[3],r=this.h[4],O0=this.h[5],U=this.h[6],X=this.h[7];A(this.k.length===h.length);for(c=0;c<h.length;c++){var $=j(X,M(r),E(r,O0,U),this.k[c],h[c]),Q=G(C(m),q(m,g,Q0));X=U,U=O0,O0=r,r=G(J0,$),J0=Q0,Q0=g,g=m,m=G($,Q)}this.h[0]=G(this.h[0],m),this.h[1]=G(this.h[1],g),this.h[2]=G(this.h[2],Q0),this.h[3]=G(this.h[3],J0),this.h[4]=G(this.h[4],r),this.h[5]=G(this.h[5],O0),this.h[6]=G(this.h[6],U),this.h[7]=G(this.h[7],X)},k.prototype._digest=function(x){if(x==="hex")return V.toHex32(this.h,"big");else return V.split32(this.h,"big")}}),mI=k0((Y,W)=>{var V=KZ(),z=ZW();function O(){if(!(this instanceof O))return new O;z.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}V.inherits(O,z),W.exports=O,O.blockSize=512,O.outSize=224,O.hmacStrength=192,O.padLength=64,O.prototype._digest=function(A){if(A==="hex")return V.toHex32(this.h.slice(0,7),"big");else return V.split32(this.h.slice(0,7),"big")}}),QW=k0((Y,W)=>{var V=KZ(),z=hQ(),O=kZ(),A=V.rotr64_hi,G=V.rotr64_lo,v=V.shr64_hi,j=V.shr64_lo,E=V.sum64,q=V.sum64_hi,C=V.sum64_lo,M=V.sum64_4_hi,F=V.sum64_4_lo,D=V.sum64_5_hi,S=V.sum64_5_lo,P=z.BlockHash,k=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function x(){if(!(this instanceof x))return new x;P.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=Array(160)}V.inherits(x,P),W.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(Q,K){var L=this.W;for(var T=0;T<32;T++)L[T]=Q[K+T];for(;T<L.length;T+=2){var I=X(L[T-4],L[T-3]),Z=$(L[T-4],L[T-3]),H=L[T-14],N=L[T-13],B=O0(L[T-30],L[T-29]),w=U(L[T-30],L[T-29]),u=L[T-32],s=L[T-31];L[T]=M(I,Z,H,N,B,w,u,s),L[T+1]=F(I,Z,H,N,B,w,u,s)}},x.prototype._update=function(Q,K){this._prepareBlock(Q,K);var L=this.W,T=this.h[0],I=this.h[1],Z=this.h[2],H=this.h[3],N=this.h[4],B=this.h[5],w=this.h[6],u=this.h[7],s=this.h[8],Y0=this.h[9],M0=this.h[10],n=this.h[11],b=this.h[12],a=this.h[13],l=this.h[14],G0=this.h[15];O(this.k.length===L.length);for(var A0=0;A0<L.length;A0+=2){var o=l,t=G0,V0=J0(s,Y0),z0=r(s,Y0),U0=f(s,Y0,M0,n,b,a),x0=h(s,Y0,M0,n,b,a),e=this.k[A0],H0=this.k[A0+1],p0=L[A0],F0=L[A0+1],D0=D(o,t,V0,z0,U0,x0,e,H0,p0,F0),i0=S(o,t,V0,z0,U0,x0,e,H0,p0,F0);o=g(T,I),t=Q0(T,I),V0=c(T,I,Z,H,N,B),z0=m(T,I,Z,H,N,B);var i=q(o,t,V0,z0),W0=C(o,t,V0,z0);l=b,G0=a,b=M0,a=n,M0=s,n=Y0,s=q(w,u,D0,i0),Y0=C(u,u,D0,i0),w=N,u=B,N=Z,B=H,Z=T,H=I,T=q(D0,i0,i,W0),I=C(D0,i0,i,W0)}E(this.h,0,T,I),E(this.h,2,Z,H),E(this.h,4,N,B),E(this.h,6,w,u),E(this.h,8,s,Y0),E(this.h,10,M0,n),E(this.h,12,b,a),E(this.h,14,l,G0)},x.prototype._digest=function(Q){if(Q==="hex")return V.toHex32(this.h,"big");else return V.split32(this.h,"big")};function f(Q,K,L,T,I){var Z=Q&L^~Q&I;if(Z<0)Z+=4294967296;return Z}function h(Q,K,L,T,I,Z){var H=K&T^~K&Z;if(H<0)H+=4294967296;return H}function c(Q,K,L,T,I){var Z=Q&L^Q&I^L&I;if(Z<0)Z+=4294967296;return Z}function m(Q,K,L,T,I,Z){var H=K&T^K&Z^T&Z;if(H<0)H+=4294967296;return H}function g(Q,K){var L=A(Q,K,28),T=A(K,Q,2),I=A(K,Q,7),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function Q0(Q,K){var L=G(Q,K,28),T=G(K,Q,2),I=G(K,Q,7),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function J0(Q,K){var L=A(Q,K,14),T=A(Q,K,18),I=A(K,Q,9),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function r(Q,K){var L=G(Q,K,14),T=G(Q,K,18),I=G(K,Q,9),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function O0(Q,K){var L=A(Q,K,1),T=A(Q,K,8),I=v(Q,K,7),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function U(Q,K){var L=G(Q,K,1),T=G(Q,K,8),I=j(Q,K,7),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function X(Q,K){var L=A(Q,K,19),T=A(K,Q,29),I=v(Q,K,6),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}function $(Q,K){var L=G(Q,K,19),T=G(K,Q,29),I=j(Q,K,6),Z=L^T^I;if(Z<0)Z+=4294967296;return Z}}),oI=k0((Y,W)=>{var V=KZ(),z=QW();function O(){if(!(this instanceof O))return new O;z.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}V.inherits(O,z),W.exports=O,O.blockSize=1024,O.outSize=384,O.hmacStrength=192,O.padLength=128,O.prototype._digest=function(A){if(A==="hex")return V.toHex32(this.h.slice(0,12),"big");else return V.split32(this.h.slice(0,12),"big")}}),nI=k0((Y)=>{Y.sha1=lI(),Y.sha224=mI(),Y.sha256=ZW(),Y.sha384=oI(),Y.sha512=QW()}),sI=k0((Y)=>{var W=KZ(),V=hQ(),z=W.rotl32,O=W.sum32,A=W.sum32_3,G=W.sum32_4,v=V.BlockHash;function j(){if(!(this instanceof j))return new j;v.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}W.inherits(j,v),Y.ripemd160=j,j.blockSize=512,j.outSize=160,j.hmacStrength=192,j.padLength=64,j.prototype._update=function(P,k){var x=this.h[0],f=this.h[1],h=this.h[2],c=this.h[3],m=this.h[4],g=x,Q0=f,J0=h,r=c,O0=m;for(var U=0;U<80;U++){var X=O(z(G(x,E(U,f,h,c),P[M[U]+k],q(U)),D[U]),m);x=m,m=c,c=z(h,10),h=f,f=X,X=O(z(G(g,E(79-U,Q0,J0,r),P[F[U]+k],C(U)),S[U]),O0),g=O0,O0=r,r=z(J0,10),J0=Q0,Q0=X}X=A(this.h[1],h,r),this.h[1]=A(this.h[2],c,O0),this.h[2]=A(this.h[3],m,g),this.h[3]=A(this.h[4],x,Q0),this.h[4]=A(this.h[0],f,J0),this.h[0]=X},j.prototype._digest=function(P){if(P==="hex")return W.toHex32(this.h,"little");else return W.split32(this.h,"little")};function E(P,k,x,f){if(P<=15)return k^x^f;else if(P<=31)return k&x|~k&f;else if(P<=47)return(k|~x)^f;else if(P<=63)return k&f|x&~f;else return k^(x|~f)}function q(P){if(P<=15)return 0;else if(P<=31)return 1518500249;else if(P<=47)return 1859775393;else if(P<=63)return 2400959708;else return 2840853838}function C(P){if(P<=15)return 1352829926;else if(P<=31)return 1548603684;else if(P<=47)return 1836072691;else if(P<=63)return 2053994217;else return 0}var M=[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],F=[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],D=[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],S=[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]}),rI=k0((Y,W)=>{var V=KZ(),z=kZ();function O(A,G,v){if(!(this instanceof O))return new O(A,G,v);this.Hash=A,this.blockSize=A.blockSize/8,this.outSize=A.outSize/8,this.inner=null,this.outer=null,this._init(V.toArray(G,v))}W.exports=O,O.prototype._init=function(A){if(A.length>this.blockSize)A=new this.Hash().update(A).digest();z(A.length<=this.blockSize);for(var G=A.length;G<this.blockSize;G++)A.push(0);for(G=0;G<A.length;G++)A[G]^=54;this.inner=new this.Hash().update(A);for(G=0;G<A.length;G++)A[G]^=106;this.outer=new this.Hash().update(A)},O.prototype.update=function(A,G){return this.inner.update(A,G),this},O.prototype.digest=function(A){return this.outer.update(this.inner.digest()),this.outer.digest(A)}}),w1=k0((Y)=>{var W=Y;W.utils=KZ(),W.common=hQ(),W.sha=nI(),W.ripemd=sI(),W.hmac=rI(),W.sha1=W.sha.sha1,W.sha256=W.sha.sha256,W.sha224=W.sha.sha224,W.sha384=W.sha.sha384,W.sha512=W.sha.sha512,W.ripemd160=W.ripemd.ripemd160}),aI=k0((Y,W)=>{W.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"]]}}}),g1=k0((Y)=>{var W=Y,V=w1(),z=eG(),O=JZ(),A=O.assert;function G(E){if(E.type==="short")this.curve=new z.short(E);else if(E.type==="edwards")this.curve=new z.edwards(E);else this.curve=new z.mont(E);this.g=this.curve.g,this.n=this.curve.n,this.hash=E.hash,A(this.g.validate(),"Invalid curve"),A(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}W.PresetCurve=G;function v(E,q){Object.defineProperty(W,E,{configurable:!0,enumerable:!0,get:function(){var C=new G(q);return Object.defineProperty(W,E,{configurable:!0,enumerable:!0,value:C}),C}})}v("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:V.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),v("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:V.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),v("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:V.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),v("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:V.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"]}),v("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:V.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"]}),v("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:V.sha256,gRed:!1,g:["9"]}),v("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:V.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var j;try{j=aI()}catch(E){j=void 0}v("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:V.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",j]})}),tI=k0((Y,W)=>{var V=w1(),z=tG(),O=kZ();function A(G){if(!(this instanceof A))return new A(G);this.hash=G.hash,this.predResist=!!G.predResist,this.outLen=this.hash.outSize,this.minEntropy=G.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var v=z.toArray(G.entropy,G.entropyEnc||"hex"),j=z.toArray(G.nonce,G.nonceEnc||"hex"),E=z.toArray(G.pers,G.persEnc||"hex");O(v.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(v,j,E)}W.exports=A,A.prototype._init=function(G,v,j){var E=G.concat(v).concat(j);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var q=0;q<this.V.length;q++)this.K[q]=0,this.V[q]=1;this._update(E),this._reseed=1,this.reseedInterval=281474976710656},A.prototype._hmac=function(){return new V.hmac(this.hash,this.K)},A.prototype._update=function(G){var v=this._hmac().update(this.V).update([0]);if(G)v=v.update(G);if(this.K=v.digest(),this.V=this._hmac().update(this.V).digest(),!G)return;this.K=this._hmac().update(this.V).update([1]).update(G).digest(),this.V=this._hmac().update(this.V).digest()},A.prototype.reseed=function(G,v,j,E){if(typeof v!=="string")E=j,j=v,v=null;G=z.toArray(G,v),j=z.toArray(j,E),O(G.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(G.concat(j||[])),this._reseed=1},A.prototype.generate=function(G,v,j,E){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof v!=="string")E=j,j=v,v=null;if(j)j=z.toArray(j,E||"hex"),this._update(j);var q=[];while(q.length<G)this.V=this._hmac().update(this.V).digest(),q=q.concat(this.V);var C=q.slice(0,G);return this._update(j),this._reseed++,z.encode(C,v)}}),iI=k0((Y,W)=>{var V=qZ(),z=JZ(),O=z.assert;function A(G,v){if(this.ec=G,this.priv=null,this.pub=null,v.priv)this._importPrivate(v.priv,v.privEnc);if(v.pub)this._importPublic(v.pub,v.pubEnc)}W.exports=A,A.fromPublic=function(G,v,j){if(v instanceof A)return v;return new A(G,{pub:v,pubEnc:j})},A.fromPrivate=function(G,v,j){if(v instanceof A)return v;return new A(G,{priv:v,privEnc:j})},A.prototype.validate=function(){var G=this.getPublic();if(G.isInfinity())return{result:!1,reason:"Invalid public key"};if(!G.validate())return{result:!1,reason:"Public key is not a point"};if(!G.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},A.prototype.getPublic=function(G,v){if(typeof G==="string")v=G,G=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!v)return this.pub;return this.pub.encode(v,G)},A.prototype.getPrivate=function(G){if(G==="hex")return this.priv.toString(16,2);else return this.priv},A.prototype._importPrivate=function(G,v){this.priv=new V(G,v||16),this.priv=this.priv.umod(this.ec.curve.n)},A.prototype._importPublic=function(G,v){if(G.x||G.y){if(this.ec.curve.type==="mont")O(G.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")O(G.x&&G.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(G.x,G.y);return}this.pub=this.ec.curve.decodePoint(G,v)},A.prototype.derive=function(G){if(!G.validate())O(G.validate(),"public point not validated");return G.mul(this.priv).getX()},A.prototype.sign=function(G,v,j){return this.ec.sign(G,this,v,j)},A.prototype.verify=function(G,v,j){return this.ec.verify(G,v,this,void 0,j)},A.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),eI=k0((Y,W)=>{var V=qZ(),z=JZ(),O=z.assert;function A(q,C){if(q instanceof A)return q;if(this._importDER(q,C))return;if(O(q.r&&q.s,"Signature without r or s"),this.r=new V(q.r,16),this.s=new V(q.s,16),q.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=q.recoveryParam}W.exports=A;function G(){this.place=0}function v(q,C){var M=q[C.place++];if(!(M&128))return M;var F=M&15;if(F===0||F>4)return!1;if(q[C.place]===0)return!1;var D=0;for(var S=0,P=C.place;S<F;S++,P++)D<<=8,D|=q[P],D>>>=0;if(D<=127)return!1;return C.place=P,D}function j(q){var C=0,M=q.length-1;while(!q[C]&&!(q[C+1]&128)&&C<M)C++;if(C===0)return q;return q.slice(C)}A.prototype._importDER=function(q,C){q=z.toArray(q,C);var M=new G;if(q[M.place++]!==48)return!1;var F=v(q,M);if(F===!1)return!1;if(F+M.place!==q.length)return!1;if(q[M.place++]!==2)return!1;var D=v(q,M);if(D===!1)return!1;if((q[M.place]&128)!==0)return!1;var S=q.slice(M.place,D+M.place);if(M.place+=D,q[M.place++]!==2)return!1;var P=v(q,M);if(P===!1)return!1;if(q.length!==P+M.place)return!1;if((q[M.place]&128)!==0)return!1;var k=q.slice(M.place,P+M.place);if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;if(k[0]===0)if(k[1]&128)k=k.slice(1);else return!1;return this.r=new V(S),this.s=new V(k),this.recoveryParam=null,!0};function E(q,C){if(C<128){q.push(C);return}var M=1+(Math.log(C)/Math.LN2>>>3);q.push(M|128);while(--M)q.push(C>>>(M<<3)&255);q.push(C)}A.prototype.toDER=function(q){var C=this.r.toArray(),M=this.s.toArray();if(C[0]&128)C=[0].concat(C);if(M[0]&128)M=[0].concat(M);C=j(C),M=j(M);while(!M[0]&&!(M[1]&128))M=M.slice(1);var F=[2];E(F,C.length),F=F.concat(C),F.push(2),E(F,M.length);var D=F.concat(M),S=[48];return E(S,D.length),S=S.concat(D),z.encode(S,q)}}),UO=k0((Y,W)=>{var V=qZ(),z=tI(),O=JZ(),A=g1(),G=iG(),v=O.assert,j=iI(),E=eI();function q(C){if(!(this instanceof q))return new q(C);if(typeof C==="string")v(Object.prototype.hasOwnProperty.call(A,C),"Unknown curve "+C),C=A[C];if(C instanceof A.PresetCurve)C={curve:C};this.curve=C.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=C.curve.g,this.g.precompute(C.curve.n.bitLength()+1),this.hash=C.hash||C.curve.hash}W.exports=q,q.prototype.keyPair=function(C){return new j(this,C)},q.prototype.keyFromPrivate=function(C,M){return j.fromPrivate(this,C,M)},q.prototype.keyFromPublic=function(C,M){return j.fromPublic(this,C,M)},q.prototype.genKeyPair=function(C){if(!C)C={};var M=new z({hash:this.hash,pers:C.pers,persEnc:C.persEnc||"utf8",entropy:C.entropy||G(this.hash.hmacStrength),entropyEnc:C.entropy&&C.entropyEnc||"utf8",nonce:this.n.toArray()}),F=this.n.byteLength(),D=this.n.sub(new V(2));for(;;){var S=new V(M.generate(F));if(S.cmp(D)>0)continue;return S.iaddn(1),this.keyFromPrivate(S)}},q.prototype._truncateToN=function(C,M,F){var D;if(V.isBN(C)||typeof C==="number")C=new V(C,16),D=C.byteLength();else if(typeof C==="object")D=C.length,C=new V(C,16);else{var S=C.toString();D=S.length+1>>>1,C=new V(S,16)}if(typeof F!=="number")F=D*8;var P=F-this.n.bitLength();if(P>0)C=C.ushrn(P);if(!M&&C.cmp(this.n)>=0)return C.sub(this.n);else return C},q.prototype.sign=function(C,M,F,D){if(typeof F==="object")D=F,F=null;if(!D)D={};if(typeof C!=="string"&&typeof C!=="number"&&!V.isBN(C)){v(typeof C==="object"&&C&&typeof C.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),v(C.length>>>0===C.length);for(var S=0;S<C.length;S++)v((C[S]&255)===C[S])}M=this.keyFromPrivate(M,F),C=this._truncateToN(C,!1,D.msgBitLength),v(!C.isNeg(),"Can not sign a negative message");var P=this.n.byteLength(),k=M.getPrivate().toArray("be",P),x=C.toArray("be",P);v(new V(x).eq(C),"Can not sign message");var f=new z({hash:this.hash,entropy:k,nonce:x,pers:D.pers,persEnc:D.persEnc||"utf8"}),h=this.n.sub(new V(1));for(var c=0;;c++){var m=D.k?D.k(c):new V(f.generate(this.n.byteLength()));if(m=this._truncateToN(m,!0),m.cmpn(1)<=0||m.cmp(h)>=0)continue;var g=this.g.mul(m);if(g.isInfinity())continue;var Q0=g.getX(),J0=Q0.umod(this.n);if(J0.cmpn(0)===0)continue;var r=m.invm(this.n).mul(J0.mul(M.getPrivate()).iadd(C));if(r=r.umod(this.n),r.cmpn(0)===0)continue;var O0=(g.getY().isOdd()?1:0)|(Q0.cmp(J0)!==0?2:0);if(D.canonical&&r.cmp(this.nh)>0)r=this.n.sub(r),O0^=1;return new E({r:J0,s:r,recoveryParam:O0})}},q.prototype.verify=function(C,M,F,D,S){if(!S)S={};C=this._truncateToN(C,!1,S.msgBitLength),F=this.keyFromPublic(F,D),M=new E(M,"hex");var{r:P,s:k}=M;if(P.cmpn(1)<0||P.cmp(this.n)>=0)return!1;if(k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var x=k.invm(this.n),f=x.mul(C).umod(this.n),h=x.mul(P).umod(this.n),c;if(!this.curve._maxwellTrick){if(c=this.g.mulAdd(f,F.getPublic(),h),c.isInfinity())return!1;return c.getX().umod(this.n).cmp(P)===0}if(c=this.g.jmulAdd(f,F.getPublic(),h),c.isInfinity())return!1;return c.eqXToP(P)},q.prototype.recoverPubKey=function(C,M,F,D){v((3&F)===F,"The recovery param is more than two bits"),M=new E(M,D);var S=this.n,P=new V(C),k=M.r,x=M.s,f=F&1,h=F>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");if(h)k=this.curve.pointFromX(k.add(this.curve.n),f);else k=this.curve.pointFromX(k,f);var c=M.r.invm(S),m=S.sub(P).mul(c).umod(S),g=x.mul(c).umod(S);return this.g.mulAdd(m,k,g)},q.prototype.getKeyRecoveryParam=function(C,M,F,D){if(M=new E(M,D),M.recoveryParam!==null)return M.recoveryParam;for(var S=0;S<4;S++){var P;try{P=this.recoverPubKey(C,M,S)}catch(k){continue}if(P.eq(F))return S}throw Error("Unable to find valid recovery factor")}}),ZO=k0((Y,W)=>{var V=JZ(),z=V.assert,O=V.parseBytes,A=V.cachedProperty;function G(v,j){if(this.eddsa=v,this._secret=O(j.secret),v.isPoint(j.pub))this._pub=j.pub;else this._pubBytes=O(j.pub)}G.fromPublic=function(v,j){if(j instanceof G)return j;return new G(v,{pub:j})},G.fromSecret=function(v,j){if(j instanceof G)return j;return new G(v,{secret:j})},G.prototype.secret=function(){return this._secret},A(G,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),A(G,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),A(G,"privBytes",function(){var v=this.eddsa,j=this.hash(),E=v.encodingLength-1,q=j.slice(0,v.encodingLength);return q[0]&=248,q[E]&=127,q[E]|=64,q}),A(G,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),A(G,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),A(G,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),G.prototype.sign=function(v){return z(this._secret,"KeyPair can only verify"),this.eddsa.sign(v,this)},G.prototype.verify=function(v,j){return this.eddsa.verify(v,j,this)},G.prototype.getSecret=function(v){return z(this._secret,"KeyPair is public only"),V.encode(this.secret(),v)},G.prototype.getPublic=function(v){return V.encode(this.pubBytes(),v)},W.exports=G}),QO=k0((Y,W)=>{var V=qZ(),z=JZ(),O=z.assert,A=z.cachedProperty,G=z.parseBytes;function v(j,E){if(this.eddsa=j,typeof E!=="object")E=G(E);if(Array.isArray(E))O(E.length===j.encodingLength*2,"Signature has invalid size"),E={R:E.slice(0,j.encodingLength),S:E.slice(j.encodingLength)};if(O(E.R&&E.S,"Signature without R or S"),j.isPoint(E.R))this._R=E.R;if(E.S instanceof V)this._S=E.S;this._Rencoded=Array.isArray(E.R)?E.R:E.Rencoded,this._Sencoded=Array.isArray(E.S)?E.S:E.Sencoded}A(v,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),A(v,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),A(v,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),A(v,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),v.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},v.prototype.toHex=function(){return z.encode(this.toBytes(),"hex").toUpperCase()},W.exports=v}),XO=k0((Y,W)=>{var V=w1(),z=g1(),O=JZ(),A=O.assert,G=O.parseBytes,v=ZO(),j=QO();function E(q){if(A(q==="ed25519","only tested with ed25519 so far"),!(this instanceof E))return new E(q);q=z[q].curve,this.curve=q,this.g=q.g,this.g.precompute(q.n.bitLength()+1),this.pointClass=q.point().constructor,this.encodingLength=Math.ceil(q.n.bitLength()/8),this.hash=V.sha512}W.exports=E,E.prototype.sign=function(q,C){q=G(q);var M=this.keyFromSecret(C),F=this.hashInt(M.messagePrefix(),q),D=this.g.mul(F),S=this.encodePoint(D),P=this.hashInt(S,M.pubBytes(),q).mul(M.priv()),k=F.add(P).umod(this.curve.n);return this.makeSignature({R:D,S:k,Rencoded:S})},E.prototype.verify=function(q,C,M){if(q=G(q),C=this.makeSignature(C),C.S().gte(C.eddsa.curve.n)||C.S().isNeg())return!1;var F=this.keyFromPublic(M),D=this.hashInt(C.Rencoded(),F.pubBytes(),q),S=this.g.mul(C.S()),P=C.R().add(F.pub().mul(D));return P.eq(S)},E.prototype.hashInt=function(){var q=this.hash();for(var C=0;C<arguments.length;C++)q.update(arguments[C]);return O.intFromLE(q.digest()).umod(this.curve.n)},E.prototype.keyFromPublic=function(q){return v.fromPublic(this,q)},E.prototype.keyFromSecret=function(q){return v.fromSecret(this,q)},E.prototype.makeSignature=function(q){if(q instanceof j)return q;return new j(this,q)},E.prototype.encodePoint=function(q){var C=q.getY().toArray("le",this.encodingLength);return C[this.encodingLength-1]|=q.getX().isOdd()?128:0,C},E.prototype.decodePoint=function(q){q=O.parseBytes(q);var C=q.length-1,M=q.slice(0,C).concat(q[C]&-129),F=(q[C]&128)!==0,D=O.intFromLE(M);return this.curve.pointFromY(D,F)},E.prototype.encodeInt=function(q){return q.toArray("le",this.encodingLength)},E.prototype.decodeInt=function(q){return O.intFromLE(q)},E.prototype.isPoint=function(q){return q instanceof this.pointClass}}),JO=k0((Y)=>{var W=Y;W.version=pI().version,W.utils=JZ(),W.rand=iG(),W.curve=eG(),W.curves=g1(),W.ec=UO(),W.eddsa=XO()}),YO=k0((Y,W)=>{(function(V,z){function O(U,X){if(!U)throw Error(X||"Assertion failed")}function A(U,X){U.super_=X;var $=function(){};$.prototype=X.prototype,U.prototype=new $,U.prototype.constructor=U}function G(U,X,$){if(G.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(X==="le"||X==="be")$=X,X=10;this._init(U||0,X||10,$||"be")}}if(typeof V==="object")V.exports=G;else z.BN=G;G.BN=G,G.wordSize=26;var v;try{if(typeof window<"u"&&typeof window.Buffer<"u")v=window.Buffer;else v=(lU(),WU(dU)).Buffer}catch(U){}G.isBN=function(U){if(U instanceof G)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===G.wordSize&&Array.isArray(U.words)},G.max=function(U,X){if(U.cmp(X)>0)return U;return X},G.min=function(U,X){if(U.cmp(X)<0)return U;return X},G.prototype._init=function(U,X,$){if(typeof U==="number")return this._initNumber(U,X,$);if(typeof U==="object")return this._initArray(U,X,$);if(X==="hex")X=16;O(X===(X|0)&&X>=2&&X<=36),U=U.toString().replace(/\s+/g,"");var Q=0;if(U[0]==="-")Q++,this.negative=1;if(Q<U.length){if(X===16)this._parseHex(U,Q,$);else if(this._parseBase(U,X,Q),$==="le")this._initArray(this.toArray(),X,$)}},G.prototype._initNumber=function(U,X,$){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 O(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if($!=="le")return;this._initArray(this.toArray(),X,$)},G.prototype._initArray=function(U,X,$){if(O(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 Q=0;Q<this.length;Q++)this.words[Q]=0;var K,L,T=0;if($==="be"){for(Q=U.length-1,K=0;Q>=0;Q-=3)if(L=U[Q]|U[Q-1]<<8|U[Q-2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}else if($==="le"){for(Q=0,K=0;Q<U.length;Q+=3)if(L=U[Q]|U[Q+1]<<8|U[Q+2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}return this.strip()};function j(U,X){var $=U.charCodeAt(X);if($>=65&&$<=70)return $-55;else if($>=97&&$<=102)return $-87;else return $-48&15}function E(U,X,$){var Q=j(U,$);if($-1>=X)Q|=j(U,$-1)<<4;return Q}G.prototype._parseHex=function(U,X,$){this.length=Math.ceil((U.length-X)/6),this.words=Array(this.length);for(var Q=0;Q<this.length;Q++)this.words[Q]=0;var K=0,L=0,T;if($==="be")for(Q=U.length-1;Q>=X;Q-=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8;else{var I=U.length-X;for(Q=I%2===0?X+1:X;Q<U.length;Q+=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8}this.strip()};function q(U,X,$,Q){var K=0,L=Math.min(U.length,$);for(var T=X;T<L;T++){var I=U.charCodeAt(T)-48;if(K*=Q,I>=49)K+=I-49+10;else if(I>=17)K+=I-17+10;else K+=I}return K}G.prototype._parseBase=function(U,X,$){this.words=[0],this.length=1;for(var Q=0,K=1;K<=67108863;K*=X)Q++;Q--,K=K/X|0;var L=U.length-$,T=L%Q,I=Math.min(L,L-T)+$,Z=0;for(var H=$;H<I;H+=Q)if(Z=q(U,H,H+Q,X),this.imuln(K),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(T!==0){var N=1;Z=q(U,H,U.length,X);for(H=0;H<T;H++)N*=X;if(this.imuln(N),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},G.prototype.copy=function(U){U.words=Array(this.length);for(var X=0;X<this.length;X++)U.words[X]=this.words[X];U.length=this.length,U.negative=this.negative,U.red=this.red},G.prototype.clone=function(){var U=new G(null);return this.copy(U),U},G.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},G.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},G.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(G.prototype.toString=function(U,X){U=U||10,X=X|0||1;var $;if(U===16||U==="hex"){$="";var Q=0,K=0;for(var L=0;L<this.length;L++){var T=this.words[L],I=((T<<Q|K)&16777215).toString(16);if(K=T>>>24-Q&16777215,Q+=2,Q>=26)Q-=26,L--;if(K!==0||L!==this.length-1)$=C[6-I.length]+I+$;else $=I+$}if(K!==0)$=K.toString(16)+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}if(U===(U|0)&&U>=2&&U<=36){var Z=M[U],H=F[U];$="";var N=this.clone();N.negative=0;while(!N.isZero()){var B=N.modn(H).toString(U);if(N=N.idivn(H),!N.isZero())$=C[Z-B.length]+B+$;else $=B+$}if(this.isZero())$="0"+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}O(!1,"Base should be between 2 and 36")},G.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)O(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(U,X){return O(typeof v<"u"),this.toArrayLike(v,U,X)},G.prototype.toArray=function(U,X){return this.toArrayLike(Array,U,X)},G.prototype.toArrayLike=function(U,X,$){var Q=this.byteLength(),K=$||Math.max(1,Q);O(Q<=K,"byte array longer than desired length"),O(K>0,"Requested array length <= 0"),this.strip();var L=X==="le",T=new U(K),I,Z,H=this.clone();if(!L){for(Z=0;Z<K-Q;Z++)T[Z]=0;for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[K-Z-1]=I}else{for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[Z]=I;for(;Z<K;Z++)T[Z]=0}return T},Math.clz32)G.prototype._countBits=function(U){return 32-Math.clz32(U)};else G.prototype._countBits=function(U){var X=U,$=0;if(X>=4096)$+=13,X>>>=13;if(X>=64)$+=7,X>>>=7;if(X>=8)$+=4,X>>>=4;if(X>=2)$+=2,X>>>=2;return $+X};G.prototype._zeroBits=function(U){if(U===0)return 26;var X=U,$=0;if((X&8191)===0)$+=13,X>>>=13;if((X&127)===0)$+=7,X>>>=7;if((X&15)===0)$+=4,X>>>=4;if((X&3)===0)$+=2,X>>>=2;if((X&1)===0)$++;return $},G.prototype.bitLength=function(){var U=this.words[this.length-1],X=this._countBits(U);return(this.length-1)*26+X};function D(U){var X=Array(U.bitLength());for(var $=0;$<X.length;$++){var Q=$/26|0,K=$%26;X[$]=(U.words[Q]&1<<K)>>>K}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var X=0;X<this.length;X++){var $=this._zeroBits(this.words[X]);if(U+=$,$!==26)break}return U},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},G.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},G.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var X=0;X<U.length;X++)this.words[X]=this.words[X]|U.words[X];return this.strip()},G.prototype.ior=function(U){return O((this.negative|U.negative)===0),this.iuor(U)},G.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},G.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},G.prototype.iuand=function(U){var X;if(this.length>U.length)X=U;else X=this;for(var $=0;$<X.length;$++)this.words[$]=this.words[$]&U.words[$];return this.length=X.length,this.strip()},G.prototype.iand=function(U){return O((this.negative|U.negative)===0),this.iuand(U)},G.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},G.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},G.prototype.iuxor=function(U){var X,$;if(this.length>U.length)X=this,$=U;else X=U,$=this;for(var Q=0;Q<$.length;Q++)this.words[Q]=X.words[Q]^$.words[Q];if(this!==X)for(;Q<X.length;Q++)this.words[Q]=X.words[Q];return this.length=X.length,this.strip()},G.prototype.ixor=function(U){return O((this.negative|U.negative)===0),this.iuxor(U)},G.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},G.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},G.prototype.inotn=function(U){O(typeof U==="number"&&U>=0);var X=Math.ceil(U/26)|0,$=U%26;if(this._expand(X),$>0)X--;for(var Q=0;Q<X;Q++)this.words[Q]=~this.words[Q]&67108863;if($>0)this.words[Q]=~this.words[Q]&67108863>>26-$;return this.strip()},G.prototype.notn=function(U){return this.clone().inotn(U)},G.prototype.setn=function(U,X){O(typeof U==="number"&&U>=0);var $=U/26|0,Q=U%26;if(this._expand($+1),X)this.words[$]=this.words[$]|1<<Q;else this.words[$]=this.words[$]&~(1<<Q);return this.strip()},G.prototype.iadd=function(U){var X;if(this.negative!==0&&U.negative===0)return this.negative=0,X=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,X=this.isub(U),U.negative=1,X._normSign();var $,Q;if(this.length>U.length)$=this,Q=U;else $=U,Q=this;var K=0;for(var L=0;L<Q.length;L++)X=($.words[L]|0)+(Q.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;for(;K!==0&&L<$.length;L++)X=($.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;if(this.length=$.length,K!==0)this.words[this.length]=K,this.length++;else if($!==this)for(;L<$.length;L++)this.words[L]=$.words[L];return this},G.prototype.add=function(U){var X;if(U.negative!==0&&this.negative===0)return U.negative=0,X=this.sub(U),U.negative^=1,X;else if(U.negative===0&&this.negative!==0)return this.negative=0,X=U.sub(this),this.negative=1,X;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},G.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var X=this.iadd(U);return U.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var $=this.cmp(U);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Q,K;if($>0)Q=this,K=U;else Q=U,K=this;var L=0;for(var T=0;T<K.length;T++)X=(Q.words[T]|0)-(K.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;for(;L!==0&&T<Q.length;T++)X=(Q.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;if(L===0&&T<Q.length&&Q!==this)for(;T<Q.length;T++)this.words[T]=Q.words[T];if(this.length=Math.max(this.length,T),Q!==this)this.negative=1;return this.strip()},G.prototype.sub=function(U){return this.clone().isub(U)};function S(U,X,$){$.negative=X.negative^U.negative;var Q=U.length+X.length|0;$.length=Q,Q=Q-1|0;var K=U.words[0]|0,L=X.words[0]|0,T=K*L,I=T&67108863,Z=T/67108864|0;$.words[0]=I;for(var H=1;H<Q;H++){var N=Z>>>26,B=Z&67108863,w=Math.min(H,X.length-1);for(var u=Math.max(0,H-U.length+1);u<=w;u++){var s=H-u|0;K=U.words[s]|0,L=X.words[u]|0,T=K*L+B,N+=T/67108864|0,B=T&67108863}$.words[H]=B|0,Z=N|0}if(Z!==0)$.words[H]=Z|0;else $.length--;return $.strip()}var P=function(U,X,$){var Q=U.words,K=X.words,L=$.words,T=0,I,Z,H,N=Q[0]|0,B=N&8191,w=N>>>13,u=Q[1]|0,s=u&8191,Y0=u>>>13,M0=Q[2]|0,n=M0&8191,b=M0>>>13,a=Q[3]|0,l=a&8191,G0=a>>>13,A0=Q[4]|0,o=A0&8191,t=A0>>>13,V0=Q[5]|0,z0=V0&8191,U0=V0>>>13,x0=Q[6]|0,e=x0&8191,H0=x0>>>13,p0=Q[7]|0,F0=p0&8191,D0=p0>>>13,i0=Q[8]|0,i=i0&8191,W0=i0>>>13,v0=Q[9]|0,q0=v0&8191,S0=v0>>>13,e0=K[0]|0,j0=e0&8191,B0=e0>>>13,XU=K[1]|0,_0=XU&8191,g0=XU>>>13,MU=K[2]|0,c0=MU&8191,K0=MU>>>13,E0=K[3]|0,C0=E0&8191,N0=E0>>>13,IU=K[4]|0,u0=IU&8191,d0=IU>>>13,xU=K[5]|0,m0=xU&8191,d=xU>>>13,$0=K[6]|0,L0=$0&8191,R0=$0>>>13,r0=K[7]|0,y0=r0&8191,T0=r0>>>13,AU=K[8]|0,b0=AU&8191,n0=AU>>>13,pU=K[9]|0,o0=pU&8191,l0=pU>>>13;$.negative=U.negative^X.negative,$.length=19,I=Math.imul(B,j0),Z=Math.imul(B,B0),Z=Z+Math.imul(w,j0)|0,H=Math.imul(w,B0);var PU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(PU>>>26)|0,PU&=67108863,I=Math.imul(s,j0),Z=Math.imul(s,B0),Z=Z+Math.imul(Y0,j0)|0,H=Math.imul(Y0,B0),I=I+Math.imul(B,_0)|0,Z=Z+Math.imul(B,g0)|0,Z=Z+Math.imul(w,_0)|0,H=H+Math.imul(w,g0)|0;var JU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(n,j0),Z=Math.imul(n,B0),Z=Z+Math.imul(b,j0)|0,H=Math.imul(b,B0),I=I+Math.imul(s,_0)|0,Z=Z+Math.imul(s,g0)|0,Z=Z+Math.imul(Y0,_0)|0,H=H+Math.imul(Y0,g0)|0,I=I+Math.imul(B,c0)|0,Z=Z+Math.imul(B,K0)|0,Z=Z+Math.imul(w,c0)|0,H=H+Math.imul(w,K0)|0;var YU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(l,j0),Z=Math.imul(l,B0),Z=Z+Math.imul(G0,j0)|0,H=Math.imul(G0,B0),I=I+Math.imul(n,_0)|0,Z=Z+Math.imul(n,g0)|0,Z=Z+Math.imul(b,_0)|0,H=H+Math.imul(b,g0)|0,I=I+Math.imul(s,c0)|0,Z=Z+Math.imul(s,K0)|0,Z=Z+Math.imul(Y0,c0)|0,H=H+Math.imul(Y0,K0)|0,I=I+Math.imul(B,C0)|0,Z=Z+Math.imul(B,N0)|0,Z=Z+Math.imul(w,C0)|0,H=H+Math.imul(w,N0)|0;var zU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(zU>>>26)|0,zU&=67108863,I=Math.imul(o,j0),Z=Math.imul(o,B0),Z=Z+Math.imul(t,j0)|0,H=Math.imul(t,B0),I=I+Math.imul(l,_0)|0,Z=Z+Math.imul(l,g0)|0,Z=Z+Math.imul(G0,_0)|0,H=H+Math.imul(G0,g0)|0,I=I+Math.imul(n,c0)|0,Z=Z+Math.imul(n,K0)|0,Z=Z+Math.imul(b,c0)|0,H=H+Math.imul(b,K0)|0,I=I+Math.imul(s,C0)|0,Z=Z+Math.imul(s,N0)|0,Z=Z+Math.imul(Y0,C0)|0,H=H+Math.imul(Y0,N0)|0,I=I+Math.imul(B,u0)|0,Z=Z+Math.imul(B,d0)|0,Z=Z+Math.imul(w,u0)|0,H=H+Math.imul(w,d0)|0;var FU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,I=Math.imul(z0,j0),Z=Math.imul(z0,B0),Z=Z+Math.imul(U0,j0)|0,H=Math.imul(U0,B0),I=I+Math.imul(o,_0)|0,Z=Z+Math.imul(o,g0)|0,Z=Z+Math.imul(t,_0)|0,H=H+Math.imul(t,g0)|0,I=I+Math.imul(l,c0)|0,Z=Z+Math.imul(l,K0)|0,Z=Z+Math.imul(G0,c0)|0,H=H+Math.imul(G0,K0)|0,I=I+Math.imul(n,C0)|0,Z=Z+Math.imul(n,N0)|0,Z=Z+Math.imul(b,C0)|0,H=H+Math.imul(b,N0)|0,I=I+Math.imul(s,u0)|0,Z=Z+Math.imul(s,d0)|0,Z=Z+Math.imul(Y0,u0)|0,H=H+Math.imul(Y0,d0)|0,I=I+Math.imul(B,m0)|0,Z=Z+Math.imul(B,d)|0,Z=Z+Math.imul(w,m0)|0,H=H+Math.imul(w,d)|0;var jU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,I=Math.imul(e,j0),Z=Math.imul(e,B0),Z=Z+Math.imul(H0,j0)|0,H=Math.imul(H0,B0),I=I+Math.imul(z0,_0)|0,Z=Z+Math.imul(z0,g0)|0,Z=Z+Math.imul(U0,_0)|0,H=H+Math.imul(U0,g0)|0,I=I+Math.imul(o,c0)|0,Z=Z+Math.imul(o,K0)|0,Z=Z+Math.imul(t,c0)|0,H=H+Math.imul(t,K0)|0,I=I+Math.imul(l,C0)|0,Z=Z+Math.imul(l,N0)|0,Z=Z+Math.imul(G0,C0)|0,H=H+Math.imul(G0,N0)|0,I=I+Math.imul(n,u0)|0,Z=Z+Math.imul(n,d0)|0,Z=Z+Math.imul(b,u0)|0,H=H+Math.imul(b,d0)|0,I=I+Math.imul(s,m0)|0,Z=Z+Math.imul(s,d)|0,Z=Z+Math.imul(Y0,m0)|0,H=H+Math.imul(Y0,d)|0,I=I+Math.imul(B,L0)|0,Z=Z+Math.imul(B,R0)|0,Z=Z+Math.imul(w,L0)|0,H=H+Math.imul(w,R0)|0;var ZU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(F0,j0),Z=Math.imul(F0,B0),Z=Z+Math.imul(D0,j0)|0,H=Math.imul(D0,B0),I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(H0,_0)|0,H=H+Math.imul(H0,g0)|0,I=I+Math.imul(z0,c0)|0,Z=Z+Math.imul(z0,K0)|0,Z=Z+Math.imul(U0,c0)|0,H=H+Math.imul(U0,K0)|0,I=I+Math.imul(o,C0)|0,Z=Z+Math.imul(o,N0)|0,Z=Z+Math.imul(t,C0)|0,H=H+Math.imul(t,N0)|0,I=I+Math.imul(l,u0)|0,Z=Z+Math.imul(l,d0)|0,Z=Z+Math.imul(G0,u0)|0,H=H+Math.imul(G0,d0)|0,I=I+Math.imul(n,m0)|0,Z=Z+Math.imul(n,d)|0,Z=Z+Math.imul(b,m0)|0,H=H+Math.imul(b,d)|0,I=I+Math.imul(s,L0)|0,Z=Z+Math.imul(s,R0)|0,Z=Z+Math.imul(Y0,L0)|0,H=H+Math.imul(Y0,R0)|0,I=I+Math.imul(B,y0)|0,Z=Z+Math.imul(B,T0)|0,Z=Z+Math.imul(w,y0)|0,H=H+Math.imul(w,T0)|0;var NU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(NU>>>26)|0,NU&=67108863,I=Math.imul(i,j0),Z=Math.imul(i,B0),Z=Z+Math.imul(W0,j0)|0,H=Math.imul(W0,B0),I=I+Math.imul(F0,_0)|0,Z=Z+Math.imul(F0,g0)|0,Z=Z+Math.imul(D0,_0)|0,H=H+Math.imul(D0,g0)|0,I=I+Math.imul(e,c0)|0,Z=Z+Math.imul(e,K0)|0,Z=Z+Math.imul(H0,c0)|0,H=H+Math.imul(H0,K0)|0,I=I+Math.imul(z0,C0)|0,Z=Z+Math.imul(z0,N0)|0,Z=Z+Math.imul(U0,C0)|0,H=H+Math.imul(U0,N0)|0,I=I+Math.imul(o,u0)|0,Z=Z+Math.imul(o,d0)|0,Z=Z+Math.imul(t,u0)|0,H=H+Math.imul(t,d0)|0,I=I+Math.imul(l,m0)|0,Z=Z+Math.imul(l,d)|0,Z=Z+Math.imul(G0,m0)|0,H=H+Math.imul(G0,d)|0,I=I+Math.imul(n,L0)|0,Z=Z+Math.imul(n,R0)|0,Z=Z+Math.imul(b,L0)|0,H=H+Math.imul(b,R0)|0,I=I+Math.imul(s,y0)|0,Z=Z+Math.imul(s,T0)|0,Z=Z+Math.imul(Y0,y0)|0,H=H+Math.imul(Y0,T0)|0,I=I+Math.imul(B,b0)|0,Z=Z+Math.imul(B,n0)|0,Z=Z+Math.imul(w,b0)|0,H=H+Math.imul(w,n0)|0;var vU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(vU>>>26)|0,vU&=67108863,I=Math.imul(q0,j0),Z=Math.imul(q0,B0),Z=Z+Math.imul(S0,j0)|0,H=Math.imul(S0,B0),I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(W0,_0)|0,H=H+Math.imul(W0,g0)|0,I=I+Math.imul(F0,c0)|0,Z=Z+Math.imul(F0,K0)|0,Z=Z+Math.imul(D0,c0)|0,H=H+Math.imul(D0,K0)|0,I=I+Math.imul(e,C0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(H0,C0)|0,H=H+Math.imul(H0,N0)|0,I=I+Math.imul(z0,u0)|0,Z=Z+Math.imul(z0,d0)|0,Z=Z+Math.imul(U0,u0)|0,H=H+Math.imul(U0,d0)|0,I=I+Math.imul(o,m0)|0,Z=Z+Math.imul(o,d)|0,Z=Z+Math.imul(t,m0)|0,H=H+Math.imul(t,d)|0,I=I+Math.imul(l,L0)|0,Z=Z+Math.imul(l,R0)|0,Z=Z+Math.imul(G0,L0)|0,H=H+Math.imul(G0,R0)|0,I=I+Math.imul(n,y0)|0,Z=Z+Math.imul(n,T0)|0,Z=Z+Math.imul(b,y0)|0,H=H+Math.imul(b,T0)|0,I=I+Math.imul(s,b0)|0,Z=Z+Math.imul(s,n0)|0,Z=Z+Math.imul(Y0,b0)|0,H=H+Math.imul(Y0,n0)|0,I=I+Math.imul(B,o0)|0,Z=Z+Math.imul(B,l0)|0,Z=Z+Math.imul(w,o0)|0,H=H+Math.imul(w,l0)|0;var qU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,I=Math.imul(q0,_0),Z=Math.imul(q0,g0),Z=Z+Math.imul(S0,_0)|0,H=Math.imul(S0,g0),I=I+Math.imul(i,c0)|0,Z=Z+Math.imul(i,K0)|0,Z=Z+Math.imul(W0,c0)|0,H=H+Math.imul(W0,K0)|0,I=I+Math.imul(F0,C0)|0,Z=Z+Math.imul(F0,N0)|0,Z=Z+Math.imul(D0,C0)|0,H=H+Math.imul(D0,N0)|0,I=I+Math.imul(e,u0)|0,Z=Z+Math.imul(e,d0)|0,Z=Z+Math.imul(H0,u0)|0,H=H+Math.imul(H0,d0)|0,I=I+Math.imul(z0,m0)|0,Z=Z+Math.imul(z0,d)|0,Z=Z+Math.imul(U0,m0)|0,H=H+Math.imul(U0,d)|0,I=I+Math.imul(o,L0)|0,Z=Z+Math.imul(o,R0)|0,Z=Z+Math.imul(t,L0)|0,H=H+Math.imul(t,R0)|0,I=I+Math.imul(l,y0)|0,Z=Z+Math.imul(l,T0)|0,Z=Z+Math.imul(G0,y0)|0,H=H+Math.imul(G0,T0)|0,I=I+Math.imul(n,b0)|0,Z=Z+Math.imul(n,n0)|0,Z=Z+Math.imul(b,b0)|0,H=H+Math.imul(b,n0)|0,I=I+Math.imul(s,o0)|0,Z=Z+Math.imul(s,l0)|0,Z=Z+Math.imul(Y0,o0)|0,H=H+Math.imul(Y0,l0)|0;var OU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(q0,c0),Z=Math.imul(q0,K0),Z=Z+Math.imul(S0,c0)|0,H=Math.imul(S0,K0),I=I+Math.imul(i,C0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(W0,C0)|0,H=H+Math.imul(W0,N0)|0,I=I+Math.imul(F0,u0)|0,Z=Z+Math.imul(F0,d0)|0,Z=Z+Math.imul(D0,u0)|0,H=H+Math.imul(D0,d0)|0,I=I+Math.imul(e,m0)|0,Z=Z+Math.imul(e,d)|0,Z=Z+Math.imul(H0,m0)|0,H=H+Math.imul(H0,d)|0,I=I+Math.imul(z0,L0)|0,Z=Z+Math.imul(z0,R0)|0,Z=Z+Math.imul(U0,L0)|0,H=H+Math.imul(U0,R0)|0,I=I+Math.imul(o,y0)|0,Z=Z+Math.imul(o,T0)|0,Z=Z+Math.imul(t,y0)|0,H=H+Math.imul(t,T0)|0,I=I+Math.imul(l,b0)|0,Z=Z+Math.imul(l,n0)|0,Z=Z+Math.imul(G0,b0)|0,H=H+Math.imul(G0,n0)|0,I=I+Math.imul(n,o0)|0,Z=Z+Math.imul(n,l0)|0,Z=Z+Math.imul(b,o0)|0,H=H+Math.imul(b,l0)|0;var _U=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,I=Math.imul(q0,C0),Z=Math.imul(q0,N0),Z=Z+Math.imul(S0,C0)|0,H=Math.imul(S0,N0),I=I+Math.imul(i,u0)|0,Z=Z+Math.imul(i,d0)|0,Z=Z+Math.imul(W0,u0)|0,H=H+Math.imul(W0,d0)|0,I=I+Math.imul(F0,m0)|0,Z=Z+Math.imul(F0,d)|0,Z=Z+Math.imul(D0,m0)|0,H=H+Math.imul(D0,d)|0,I=I+Math.imul(e,L0)|0,Z=Z+Math.imul(e,R0)|0,Z=Z+Math.imul(H0,L0)|0,H=H+Math.imul(H0,R0)|0,I=I+Math.imul(z0,y0)|0,Z=Z+Math.imul(z0,T0)|0,Z=Z+Math.imul(U0,y0)|0,H=H+Math.imul(U0,T0)|0,I=I+Math.imul(o,b0)|0,Z=Z+Math.imul(o,n0)|0,Z=Z+Math.imul(t,b0)|0,H=H+Math.imul(t,n0)|0,I=I+Math.imul(l,o0)|0,Z=Z+Math.imul(l,l0)|0,Z=Z+Math.imul(G0,o0)|0,H=H+Math.imul(G0,l0)|0;var wU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(wU>>>26)|0,wU&=67108863,I=Math.imul(q0,u0),Z=Math.imul(q0,d0),Z=Z+Math.imul(S0,u0)|0,H=Math.imul(S0,d0),I=I+Math.imul(i,m0)|0,Z=Z+Math.imul(i,d)|0,Z=Z+Math.imul(W0,m0)|0,H=H+Math.imul(W0,d)|0,I=I+Math.imul(F0,L0)|0,Z=Z+Math.imul(F0,R0)|0,Z=Z+Math.imul(D0,L0)|0,H=H+Math.imul(D0,R0)|0,I=I+Math.imul(e,y0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(H0,y0)|0,H=H+Math.imul(H0,T0)|0,I=I+Math.imul(z0,b0)|0,Z=Z+Math.imul(z0,n0)|0,Z=Z+Math.imul(U0,b0)|0,H=H+Math.imul(U0,n0)|0,I=I+Math.imul(o,o0)|0,Z=Z+Math.imul(o,l0)|0,Z=Z+Math.imul(t,o0)|0,H=H+Math.imul(t,l0)|0;var gU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,I=Math.imul(q0,m0),Z=Math.imul(q0,d),Z=Z+Math.imul(S0,m0)|0,H=Math.imul(S0,d),I=I+Math.imul(i,L0)|0,Z=Z+Math.imul(i,R0)|0,Z=Z+Math.imul(W0,L0)|0,H=H+Math.imul(W0,R0)|0,I=I+Math.imul(F0,y0)|0,Z=Z+Math.imul(F0,T0)|0,Z=Z+Math.imul(D0,y0)|0,H=H+Math.imul(D0,T0)|0,I=I+Math.imul(e,b0)|0,Z=Z+Math.imul(e,n0)|0,Z=Z+Math.imul(H0,b0)|0,H=H+Math.imul(H0,n0)|0,I=I+Math.imul(z0,o0)|0,Z=Z+Math.imul(z0,l0)|0,Z=Z+Math.imul(U0,o0)|0,H=H+Math.imul(U0,l0)|0;var fU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,I=Math.imul(q0,L0),Z=Math.imul(q0,R0),Z=Z+Math.imul(S0,L0)|0,H=Math.imul(S0,R0),I=I+Math.imul(i,y0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(W0,y0)|0,H=H+Math.imul(W0,T0)|0,I=I+Math.imul(F0,b0)|0,Z=Z+Math.imul(F0,n0)|0,Z=Z+Math.imul(D0,b0)|0,H=H+Math.imul(D0,n0)|0,I=I+Math.imul(e,o0)|0,Z=Z+Math.imul(e,l0)|0,Z=Z+Math.imul(H0,o0)|0,H=H+Math.imul(H0,l0)|0;var yU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(yU>>>26)|0,yU&=67108863,I=Math.imul(q0,y0),Z=Math.imul(q0,T0),Z=Z+Math.imul(S0,y0)|0,H=Math.imul(S0,T0),I=I+Math.imul(i,b0)|0,Z=Z+Math.imul(i,n0)|0,Z=Z+Math.imul(W0,b0)|0,H=H+Math.imul(W0,n0)|0,I=I+Math.imul(F0,o0)|0,Z=Z+Math.imul(F0,l0)|0,Z=Z+Math.imul(D0,o0)|0,H=H+Math.imul(D0,l0)|0;var kU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(kU>>>26)|0,kU&=67108863,I=Math.imul(q0,b0),Z=Math.imul(q0,n0),Z=Z+Math.imul(S0,b0)|0,H=Math.imul(S0,n0),I=I+Math.imul(i,o0)|0,Z=Z+Math.imul(i,l0)|0,Z=Z+Math.imul(W0,o0)|0,H=H+Math.imul(W0,l0)|0;var hU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(hU>>>26)|0,hU&=67108863,I=Math.imul(q0,o0),Z=Math.imul(q0,l0),Z=Z+Math.imul(S0,o0)|0,H=Math.imul(S0,l0);var TU=(T+I|0)+((Z&8191)<<13)|0;if(T=(H+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,L[0]=PU,L[1]=JU,L[2]=YU,L[3]=zU,L[4]=FU,L[5]=jU,L[6]=ZU,L[7]=NU,L[8]=vU,L[9]=qU,L[10]=OU,L[11]=_U,L[12]=wU,L[13]=gU,L[14]=fU,L[15]=yU,L[16]=kU,L[17]=hU,L[18]=TU,T!==0)L[19]=T,$.length++;return $};if(!Math.imul)P=S;function k(U,X,$){$.negative=X.negative^U.negative,$.length=U.length+X.length;var Q=0,K=0;for(var L=0;L<$.length-1;L++){var T=K;K=0;var I=Q&67108863,Z=Math.min(L,X.length-1);for(var H=Math.max(0,L-U.length+1);H<=Z;H++){var N=L-H,B=U.words[N]|0,w=X.words[H]|0,u=B*w,s=u&67108863;T=T+(u/67108864|0)|0,s=s+I|0,I=s&67108863,T=T+(s>>>26)|0,K+=T>>>26,T&=67108863}$.words[L]=I,Q=T,T=K}if(Q!==0)$.words[L]=Q;else $.length--;return $.strip()}function x(U,X,$){var Q=new f;return Q.mulp(U,X,$)}G.prototype.mulTo=function(U,X){var $,Q=this.length+U.length;if(this.length===10&&U.length===10)$=P(this,U,X);else if(Q<63)$=S(this,U,X);else if(Q<1024)$=k(this,U,X);else $=x(this,U,X);return $};function f(U,X){this.x=U,this.y=X}f.prototype.makeRBT=function(U){var X=Array(U),$=G.prototype._countBits(U)-1;for(var Q=0;Q<U;Q++)X[Q]=this.revBin(Q,$,U);return X},f.prototype.revBin=function(U,X,$){if(U===0||U===$-1)return U;var Q=0;for(var K=0;K<X;K++)Q|=(U&1)<<X-K-1,U>>=1;return Q},f.prototype.permute=function(U,X,$,Q,K,L){for(var T=0;T<L;T++)Q[T]=X[U[T]],K[T]=$[U[T]]},f.prototype.transform=function(U,X,$,Q,K,L){this.permute(L,U,X,$,Q,K);for(var T=1;T<K;T<<=1){var I=T<<1,Z=Math.cos(2*Math.PI/I),H=Math.sin(2*Math.PI/I);for(var N=0;N<K;N+=I){var B=Z,w=H;for(var u=0;u<T;u++){var s=$[N+u],Y0=Q[N+u],M0=$[N+u+T],n=Q[N+u+T],b=B*M0-w*n;if(n=B*n+w*M0,M0=b,$[N+u]=s+M0,Q[N+u]=Y0+n,$[N+u+T]=s-M0,Q[N+u+T]=Y0-n,u!==I)b=Z*B-H*w,w=Z*w+H*B,B=b}}}},f.prototype.guessLen13b=function(U,X){var $=Math.max(X,U)|1,Q=$&1,K=0;for($=$/2|0;$;$=$>>>1)K++;return 1<<K+1+Q},f.prototype.conjugate=function(U,X,$){if($<=1)return;for(var Q=0;Q<$/2;Q++){var K=U[Q];U[Q]=U[$-Q-1],U[$-Q-1]=K,K=X[Q],X[Q]=-X[$-Q-1],X[$-Q-1]=-K}},f.prototype.normalize13b=function(U,X){var $=0;for(var Q=0;Q<X/2;Q++){var K=Math.round(U[2*Q+1]/X)*8192+Math.round(U[2*Q]/X)+$;if(U[Q]=K&67108863,K<67108864)$=0;else $=K/67108864|0}return U},f.prototype.convert13b=function(U,X,$,Q){var K=0;for(var L=0;L<X;L++)K=K+(U[L]|0),$[2*L]=K&8191,K=K>>>13,$[2*L+1]=K&8191,K=K>>>13;for(L=2*X;L<Q;++L)$[L]=0;O(K===0),O((K&-8192)===0)},f.prototype.stub=function(U){var X=Array(U);for(var $=0;$<U;$++)X[$]=0;return X},f.prototype.mulp=function(U,X,$){var Q=2*this.guessLen13b(U.length,X.length),K=this.makeRBT(Q),L=this.stub(Q),T=Array(Q),I=Array(Q),Z=Array(Q),H=Array(Q),N=Array(Q),B=Array(Q),w=$.words;w.length=Q,this.convert13b(U.words,U.length,T,Q),this.convert13b(X.words,X.length,H,Q),this.transform(T,L,I,Z,Q,K),this.transform(H,L,N,B,Q,K);for(var u=0;u<Q;u++){var s=I[u]*N[u]-Z[u]*B[u];Z[u]=I[u]*B[u]+Z[u]*N[u],I[u]=s}return this.conjugate(I,Z,Q),this.transform(I,Z,w,L,Q,K),this.conjugate(w,L,Q),this.normalize13b(w,Q),$.negative=U.negative^X.negative,$.length=U.length+X.length,$.strip()},G.prototype.mul=function(U){var X=new G(null);return X.words=Array(this.length+U.length),this.mulTo(U,X)},G.prototype.mulf=function(U){var X=new G(null);return X.words=Array(this.length+U.length),x(this,U,X)},G.prototype.imul=function(U){return this.clone().mulTo(U,this)},G.prototype.imuln=function(U){O(typeof U==="number"),O(U<67108864);var X=0;for(var $=0;$<this.length;$++){var Q=(this.words[$]|0)*U,K=(Q&67108863)+(X&67108863);X>>=26,X+=Q/67108864|0,X+=K>>>26,this.words[$]=K&67108863}if(X!==0)this.words[$]=X,this.length++;return this.length=U===0?1:this.length,this},G.prototype.muln=function(U){return this.clone().imuln(U)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(U){var X=D(U);if(X.length===0)return new G(1);var $=this;for(var Q=0;Q<X.length;Q++,$=$.sqr())if(X[Q]!==0)break;if(++Q<X.length)for(var K=$.sqr();Q<X.length;Q++,K=K.sqr()){if(X[Q]===0)continue;$=$.mul(K)}return $},G.prototype.iushln=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=67108863>>>26-X<<26-X,K;if(X!==0){var L=0;for(K=0;K<this.length;K++){var T=this.words[K]&Q,I=(this.words[K]|0)-T<<X;this.words[K]=I|L,L=T>>>26-X}if(L)this.words[K]=L,this.length++}if($!==0){for(K=this.length-1;K>=0;K--)this.words[K+$]=this.words[K];for(K=0;K<$;K++)this.words[K]=0;this.length+=$}return this.strip()},G.prototype.ishln=function(U){return O(this.negative===0),this.iushln(U)},G.prototype.iushrn=function(U,X,$){O(typeof U==="number"&&U>=0);var Q;if(X)Q=(X-X%26)/26;else Q=0;var K=U%26,L=Math.min((U-K)/26,this.length),T=67108863^67108863>>>K<<K,I=$;if(Q-=L,Q=Math.max(0,Q),I){for(var Z=0;Z<L;Z++)I.words[Z]=this.words[Z];I.length=L}if(L===0);else if(this.length>L){this.length-=L;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+L]}else this.words[0]=0,this.length=1;var H=0;for(Z=this.length-1;Z>=0&&(H!==0||Z>=Q);Z--){var N=this.words[Z]|0;this.words[Z]=H<<26-K|N>>>K,H=N&T}if(I&&H!==0)I.words[I.length++]=H;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},G.prototype.ishrn=function(U,X,$){return O(this.negative===0),this.iushrn(U,X,$)},G.prototype.shln=function(U){return this.clone().ishln(U)},G.prototype.ushln=function(U){return this.clone().iushln(U)},G.prototype.shrn=function(U){return this.clone().ishrn(U)},G.prototype.ushrn=function(U){return this.clone().iushrn(U)},G.prototype.testn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return!1;var K=this.words[$];return!!(K&Q)},G.prototype.imaskn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26;if(O(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(X!==0)$++;if(this.length=Math.min($,this.length),X!==0){var Q=67108863^67108863>>>X<<X;this.words[this.length-1]&=Q}return this.strip()},G.prototype.maskn=function(U){return this.clone().imaskn(U)},G.prototype.iaddn=function(U){if(O(typeof U==="number"),O(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)},G.prototype._iaddn=function(U){this.words[0]+=U;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)if(this.words[X]-=67108864,X===this.length-1)this.words[X+1]=1;else this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(U){if(O(typeof U==="number"),O(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(U){return this.clone().iaddn(U)},G.prototype.subn=function(U){return this.clone().isubn(U)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(U,X,$){var Q=U.length+$,K;this._expand(Q);var L,T=0;for(K=0;K<U.length;K++){L=(this.words[K+$]|0)+T;var I=(U.words[K]|0)*X;L-=I&67108863,T=(L>>26)-(I/67108864|0),this.words[K+$]=L&67108863}for(;K<this.length-$;K++)L=(this.words[K+$]|0)+T,T=L>>26,this.words[K+$]=L&67108863;if(T===0)return this.strip();O(T===-1),T=0;for(K=0;K<this.length;K++)L=-(this.words[K]|0)+T,T=L>>26,this.words[K]=L&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(U,X){var $=this.length-U.length,Q=this.clone(),K=U,L=K.words[K.length-1]|0,T=this._countBits(L);if($=26-T,$!==0)K=K.ushln($),Q.iushln($),L=K.words[K.length-1]|0;var I=Q.length-K.length,Z;if(X!=="mod"){Z=new G(null),Z.length=I+1,Z.words=Array(Z.length);for(var H=0;H<Z.length;H++)Z.words[H]=0}var N=Q.clone()._ishlnsubmul(K,1,I);if(N.negative===0){if(Q=N,Z)Z.words[I]=1}for(var B=I-1;B>=0;B--){var w=(Q.words[K.length+B]|0)*67108864+(Q.words[K.length+B-1]|0);w=Math.min(w/L|0,67108863),Q._ishlnsubmul(K,w,B);while(Q.negative!==0)if(w--,Q.negative=0,Q._ishlnsubmul(K,1,B),!Q.isZero())Q.negative^=1;if(Z)Z.words[B]=w}if(Z)Z.strip();if(Q.strip(),X!=="div"&&$!==0)Q.iushrn($);return{div:Z||null,mod:Q}},G.prototype.divmod=function(U,X,$){if(O(!U.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var Q,K,L;if(this.negative!==0&&U.negative===0){if(L=this.neg().divmod(U,X),X!=="mod")Q=L.div.neg();if(X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.iadd(U)}return{div:Q,mod:K}}if(this.negative===0&&U.negative!==0){if(L=this.divmod(U.neg(),X),X!=="mod")Q=L.div.neg();return{div:Q,mod:L.mod}}if((this.negative&U.negative)!==0){if(L=this.neg().divmod(U.neg(),X),X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.isub(U)}return{div:L.div,mod:K}}if(U.length>this.length||this.cmp(U)<0)return{div:new G(0),mod:this};if(U.length===1){if(X==="div")return{div:this.divn(U.words[0]),mod:null};if(X==="mod")return{div:null,mod:new G(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new G(this.modn(U.words[0]))}}return this._wordDiv(U,X)},G.prototype.div=function(U){return this.divmod(U,"div",!1).div},G.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},G.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},G.prototype.divRound=function(U){var X=this.divmod(U);if(X.mod.isZero())return X.div;var $=X.div.negative!==0?X.mod.isub(U):X.mod,Q=U.ushrn(1),K=U.andln(1),L=$.cmp(Q);if(L<0||K===1&&L===0)return X.div;return X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(U){O(U<=67108863);var X=67108864%U,$=0;for(var Q=this.length-1;Q>=0;Q--)$=(X*$+(this.words[Q]|0))%U;return $},G.prototype.idivn=function(U){O(U<=67108863);var X=0;for(var $=this.length-1;$>=0;$--){var Q=(this.words[$]|0)+X*67108864;this.words[$]=Q/U|0,X=Q%U}return this.strip()},G.prototype.divn=function(U){return this.clone().idivn(U)},G.prototype.egcd=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=new G(0),T=new G(1),I=0;while(X.isEven()&&$.isEven())X.iushrn(1),$.iushrn(1),++I;var Z=$.clone(),H=X.clone();while(!X.isZero()){for(var N=0,B=1;(X.words[0]&B)===0&&N<26;++N,B<<=1);if(N>0){X.iushrn(N);while(N-- >0){if(Q.isOdd()||K.isOdd())Q.iadd(Z),K.isub(H);Q.iushrn(1),K.iushrn(1)}}for(var w=0,u=1;($.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0){$.iushrn(w);while(w-- >0){if(L.isOdd()||T.isOdd())L.iadd(Z),T.isub(H);L.iushrn(1),T.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(L),K.isub(T);else $.isub(X),L.isub(Q),T.isub(K)}return{a:L,b:T,gcd:$.iushln(I)}},G.prototype._invmp=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=$.clone();while(X.cmpn(1)>0&&$.cmpn(1)>0){for(var T=0,I=1;(X.words[0]&I)===0&&T<26;++T,I<<=1);if(T>0){X.iushrn(T);while(T-- >0){if(Q.isOdd())Q.iadd(L);Q.iushrn(1)}}for(var Z=0,H=1;($.words[0]&H)===0&&Z<26;++Z,H<<=1);if(Z>0){$.iushrn(Z);while(Z-- >0){if(K.isOdd())K.iadd(L);K.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(K);else $.isub(X),K.isub(Q)}var N;if(X.cmpn(1)===0)N=Q;else N=K;if(N.cmpn(0)<0)N.iadd(U);return N},G.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var X=this.clone(),$=U.clone();X.negative=0,$.negative=0;for(var Q=0;X.isEven()&&$.isEven();Q++)X.iushrn(1),$.iushrn(1);do{while(X.isEven())X.iushrn(1);while($.isEven())$.iushrn(1);var K=X.cmp($);if(K<0){var L=X;X=$,$=L}else if(K===0||$.cmpn(1)===0)break;X.isub($)}while(!0);return $.iushln(Q)},G.prototype.invm=function(U){return this.egcd(U).a.umod(U)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(U){return this.words[0]&U},G.prototype.bincn=function(U){O(typeof U==="number");var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return this._expand($+1),this.words[$]|=Q,this;var K=Q;for(var L=$;K!==0&&L<this.length;L++){var T=this.words[L]|0;T+=K,K=T>>>26,T&=67108863,this.words[L]=T}if(K!==0)this.words[L]=K,this.length++;return this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(U){var X=U<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var $;if(this.length>1)$=1;else{if(X)U=-U;O(U<=67108863,"Number is too big");var Q=this.words[0]|0;$=Q===U?0:Q<U?-1:1}if(this.negative!==0)return-$|0;return $},G.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var X=this.ucmp(U);if(this.negative!==0)return-X|0;return X},G.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var X=0;for(var $=this.length-1;$>=0;$--){var Q=this.words[$]|0,K=U.words[$]|0;if(Q===K)continue;if(Q<K)X=-1;else if(Q>K)X=1;break}return X},G.prototype.gtn=function(U){return this.cmpn(U)===1},G.prototype.gt=function(U){return this.cmp(U)===1},G.prototype.gten=function(U){return this.cmpn(U)>=0},G.prototype.gte=function(U){return this.cmp(U)>=0},G.prototype.ltn=function(U){return this.cmpn(U)===-1},G.prototype.lt=function(U){return this.cmp(U)===-1},G.prototype.lten=function(U){return this.cmpn(U)<=0},G.prototype.lte=function(U){return this.cmp(U)<=0},G.prototype.eqn=function(U){return this.cmpn(U)===0},G.prototype.eq=function(U){return this.cmp(U)===0},G.red=function(U){return new r(U)},G.prototype.toRed=function(U){return O(!this.red,"Already a number in reduction context"),O(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},G.prototype.fromRed=function(){return O(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(U){return this.red=U,this},G.prototype.forceRed=function(U){return O(!this.red,"Already a number in reduction context"),this._forceRed(U)},G.prototype.redAdd=function(U){return O(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},G.prototype.redIAdd=function(U){return O(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},G.prototype.redSub=function(U){return O(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},G.prototype.redISub=function(U){return O(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},G.prototype.redShl=function(U){return O(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},G.prototype.redMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},G.prototype.redIMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},G.prototype.redSqr=function(){return O(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return O(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return O(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return O(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return O(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(U){return O(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var h={k256:null,p224:null,p192:null,p25519:null};function c(U,X){this.name=U,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}c.prototype._tmp=function(){var U=new G(null);return U.words=Array(Math.ceil(this.n/13)),U},c.prototype.ireduce=function(U){var X=U,$;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),$=X.bitLength();while($>this.n);var Q=$<this.n?-1:X.ucmp(this.p);if(Q===0)X.words[0]=0,X.length=1;else if(Q>0)X.isub(this.p);else if(X.strip!==void 0)X.strip();else X._strip();return X},c.prototype.split=function(U,X){U.iushrn(this.n,0,X)},c.prototype.imulK=function(U){return U.imul(this.k)};function m(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(m,c),m.prototype.split=function(U,X){var $=4194303,Q=Math.min(U.length,9);for(var K=0;K<Q;K++)X.words[K]=U.words[K];if(X.length=Q,U.length<=9){U.words[0]=0,U.length=1;return}var L=U.words[9];X.words[X.length++]=L&$;for(K=10;K<U.length;K++){var T=U.words[K]|0;U.words[K-10]=(T&$)<<4|L>>>22,L=T}if(L>>>=22,U.words[K-10]=L,L===0&&U.length>10)U.length-=10;else U.length-=9},m.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var X=0;for(var $=0;$<U.length;$++){var Q=U.words[$]|0;X+=Q*977,U.words[$]=X&67108863,X=Q*64+(X/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function g(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(g,c);function Q0(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Q0,c);function J0(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(J0,c),J0.prototype.imulK=function(U){var X=0;for(var $=0;$<U.length;$++){var Q=(U.words[$]|0)*19+X,K=Q&67108863;Q>>>=26,U.words[$]=K,X=Q}if(X!==0)U.words[U.length++]=X;return U},G._prime=function(U){if(h[U])return h[U];var X;if(U==="k256")X=new m;else if(U==="p224")X=new g;else if(U==="p192")X=new Q0;else if(U==="p25519")X=new J0;else throw Error("Unknown prime "+U);return h[U]=X,X};function r(U){if(typeof U==="string"){var X=G._prime(U);this.m=X.p,this.prime=X}else O(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}r.prototype._verify1=function(U){O(U.negative===0,"red works only with positives"),O(U.red,"red works only with red numbers")},r.prototype._verify2=function(U,X){O((U.negative|X.negative)===0,"red works only with positives"),O(U.red&&U.red===X.red,"red works only with red numbers")},r.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},r.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},r.prototype.add=function(U,X){this._verify2(U,X);var $=U.add(X);if($.cmp(this.m)>=0)$.isub(this.m);return $._forceRed(this)},r.prototype.iadd=function(U,X){this._verify2(U,X);var $=U.iadd(X);if($.cmp(this.m)>=0)$.isub(this.m);return $},r.prototype.sub=function(U,X){this._verify2(U,X);var $=U.sub(X);if($.cmpn(0)<0)$.iadd(this.m);return $._forceRed(this)},r.prototype.isub=function(U,X){this._verify2(U,X);var $=U.isub(X);if($.cmpn(0)<0)$.iadd(this.m);return $},r.prototype.shl=function(U,X){return this._verify1(U),this.imod(U.ushln(X))},r.prototype.imul=function(U,X){return this._verify2(U,X),this.imod(U.imul(X))},r.prototype.mul=function(U,X){return this._verify2(U,X),this.imod(U.mul(X))},r.prototype.isqr=function(U){return this.imul(U,U.clone())},r.prototype.sqr=function(U){return this.mul(U,U)},r.prototype.sqrt=function(U){if(U.isZero())return U.clone();var X=this.m.andln(3);if(O(X%2===1),X===3){var $=this.m.add(new G(1)).iushrn(2);return this.pow(U,$)}var Q=this.m.subn(1),K=0;while(!Q.isZero()&&Q.andln(1)===0)K++,Q.iushrn(1);O(!Q.isZero());var L=new G(1).toRed(this),T=L.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new G(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(T)!==0)Z.redIAdd(T);var H=this.pow(Z,Q),N=this.pow(U,Q.addn(1).iushrn(1)),B=this.pow(U,Q),w=K;while(B.cmp(L)!==0){var u=B;for(var s=0;u.cmp(L)!==0;s++)u=u.redSqr();O(s<w);var Y0=this.pow(H,new G(1).iushln(w-s-1));N=N.redMul(Y0),H=Y0.redSqr(),B=B.redMul(H),w=s}return N},r.prototype.invm=function(U){var X=U._invmp(this.m);if(X.negative!==0)return X.negative=0,this.imod(X).redNeg();else return this.imod(X)},r.prototype.pow=function(U,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return U.clone();var $=4,Q=Array(1<<$);Q[0]=new G(1).toRed(this),Q[1]=U;for(var K=2;K<Q.length;K++)Q[K]=this.mul(Q[K-1],U);var L=Q[0],T=0,I=0,Z=X.bitLength()%26;if(Z===0)Z=26;for(K=X.length-1;K>=0;K--){var H=X.words[K];for(var N=Z-1;N>=0;N--){var B=H>>N&1;if(L!==Q[0])L=this.sqr(L);if(B===0&&T===0){I=0;continue}if(T<<=1,T|=B,I++,I!==$&&(K!==0||N!==0))continue;L=this.mul(L,Q[T]),I=0,T=0}Z=26}return L},r.prototype.convertTo=function(U){var X=U.umod(this.m);return X===U?X.clone():X},r.prototype.convertFrom=function(U){var X=U.clone();return X.red=null,X},G.mont=function(U){return new O0(U)};function O0(U){if(r.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new G(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A(O0,r),O0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},O0.prototype.convertFrom=function(U){var X=this.imod(U.mul(this.rinv));return X.red=null,X},O0.prototype.imul=function(U,X){if(U.isZero()||X.isZero())return U.words[0]=0,U.length=1,U;var $=U.imul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.mul=function(U,X){if(U.isZero()||X.isZero())return new G(0)._forceRed(this);var $=U.mul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.invm=function(U){var X=this.imod(U._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof W>"u"||W,Y)}),GO=k0((Y,W)=>{var V=JO(),z=YO();W.exports=function(v){return new A(v)};var O={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};O.p224=O.secp224r1,O.p256=O.secp256r1=O.prime256v1,O.p192=O.secp192r1=O.prime192v1,O.p384=O.secp384r1,O.p521=O.secp521r1;function A(v){if(this.curveType=O[v],!this.curveType)this.curveType={name:v};this.curve=new V.ec(this.curveType.name),this.keys=void 0}A.prototype.generateKeys=function(v,j){return this.keys=this.curve.genKeyPair(),this.getPublicKey(v,j)},A.prototype.computeSecret=function(v,j,E){if(j=j||"utf8",!Buffer.isBuffer(v))v=new Buffer(v,j);var q=this.curve.keyFromPublic(v).getPublic(),C=q.mul(this.keys.getPrivate()).getX();return G(C,E,this.curveType.byteLength)},A.prototype.getPublicKey=function(v,j){var E=this.keys.getPublic(j==="compressed",!0);if(j==="hybrid")if(E[E.length-1]%2)E[0]=7;else E[0]=6;return G(E,v)},A.prototype.getPrivateKey=function(v){return G(this.keys.getPrivate(),v)},A.prototype.setPublicKey=function(v,j){if(j=j||"utf8",!Buffer.isBuffer(v))v=new Buffer(v,j);return this.keys._importPublic(v),this},A.prototype.setPrivateKey=function(v,j){if(j=j||"utf8",!Buffer.isBuffer(v))v=new Buffer(v,j);var E=new z(v);return E=E.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(E),this};function G(v,j,E){if(!Array.isArray(v))v=v.toArray();var q=new Buffer(v);if(E&&q.length<E){var C=new Buffer(E-q.length);C.fill(0),q=Buffer.concat([C,q])}if(!j)return q;else return q.toString(j)}}),WO=k0((Y,W)=>{var V=(tU(),WU(aU)).createECDH;W.exports=V||GO()}),VO=k0((Y,W)=>{(function(V,z){function O(U,X){if(!U)throw Error(X||"Assertion failed")}function A(U,X){U.super_=X;var $=function(){};$.prototype=X.prototype,U.prototype=new $,U.prototype.constructor=U}function G(U,X,$){if(G.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(X==="le"||X==="be")$=X,X=10;this._init(U||0,X||10,$||"be")}}if(typeof V==="object")V.exports=G;else z.BN=G;G.BN=G,G.wordSize=26;var v;try{if(typeof window<"u"&&typeof window.Buffer<"u")v=window.Buffer;else v=(lU(),WU(dU)).Buffer}catch(U){}G.isBN=function(U){if(U instanceof G)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===G.wordSize&&Array.isArray(U.words)},G.max=function(U,X){if(U.cmp(X)>0)return U;return X},G.min=function(U,X){if(U.cmp(X)<0)return U;return X},G.prototype._init=function(U,X,$){if(typeof U==="number")return this._initNumber(U,X,$);if(typeof U==="object")return this._initArray(U,X,$);if(X==="hex")X=16;O(X===(X|0)&&X>=2&&X<=36),U=U.toString().replace(/\s+/g,"");var Q=0;if(U[0]==="-")Q++,this.negative=1;if(Q<U.length){if(X===16)this._parseHex(U,Q,$);else if(this._parseBase(U,X,Q),$==="le")this._initArray(this.toArray(),X,$)}},G.prototype._initNumber=function(U,X,$){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 O(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if($!=="le")return;this._initArray(this.toArray(),X,$)},G.prototype._initArray=function(U,X,$){if(O(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 Q=0;Q<this.length;Q++)this.words[Q]=0;var K,L,T=0;if($==="be"){for(Q=U.length-1,K=0;Q>=0;Q-=3)if(L=U[Q]|U[Q-1]<<8|U[Q-2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}else if($==="le"){for(Q=0,K=0;Q<U.length;Q+=3)if(L=U[Q]|U[Q+1]<<8|U[Q+2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}return this.strip()};function j(U,X){var $=U.charCodeAt(X);if($>=65&&$<=70)return $-55;else if($>=97&&$<=102)return $-87;else return $-48&15}function E(U,X,$){var Q=j(U,$);if($-1>=X)Q|=j(U,$-1)<<4;return Q}G.prototype._parseHex=function(U,X,$){this.length=Math.ceil((U.length-X)/6),this.words=Array(this.length);for(var Q=0;Q<this.length;Q++)this.words[Q]=0;var K=0,L=0,T;if($==="be")for(Q=U.length-1;Q>=X;Q-=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8;else{var I=U.length-X;for(Q=I%2===0?X+1:X;Q<U.length;Q+=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8}this.strip()};function q(U,X,$,Q){var K=0,L=Math.min(U.length,$);for(var T=X;T<L;T++){var I=U.charCodeAt(T)-48;if(K*=Q,I>=49)K+=I-49+10;else if(I>=17)K+=I-17+10;else K+=I}return K}G.prototype._parseBase=function(U,X,$){this.words=[0],this.length=1;for(var Q=0,K=1;K<=67108863;K*=X)Q++;Q--,K=K/X|0;var L=U.length-$,T=L%Q,I=Math.min(L,L-T)+$,Z=0;for(var H=$;H<I;H+=Q)if(Z=q(U,H,H+Q,X),this.imuln(K),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(T!==0){var N=1;Z=q(U,H,U.length,X);for(H=0;H<T;H++)N*=X;if(this.imuln(N),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},G.prototype.copy=function(U){U.words=Array(this.length);for(var X=0;X<this.length;X++)U.words[X]=this.words[X];U.length=this.length,U.negative=this.negative,U.red=this.red},G.prototype.clone=function(){var U=new G(null);return this.copy(U),U},G.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},G.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},G.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(G.prototype.toString=function(U,X){U=U||10,X=X|0||1;var $;if(U===16||U==="hex"){$="";var Q=0,K=0;for(var L=0;L<this.length;L++){var T=this.words[L],I=((T<<Q|K)&16777215).toString(16);if(K=T>>>24-Q&16777215,Q+=2,Q>=26)Q-=26,L--;if(K!==0||L!==this.length-1)$=C[6-I.length]+I+$;else $=I+$}if(K!==0)$=K.toString(16)+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}if(U===(U|0)&&U>=2&&U<=36){var Z=M[U],H=F[U];$="";var N=this.clone();N.negative=0;while(!N.isZero()){var B=N.modn(H).toString(U);if(N=N.idivn(H),!N.isZero())$=C[Z-B.length]+B+$;else $=B+$}if(this.isZero())$="0"+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}O(!1,"Base should be between 2 and 36")},G.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)O(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(U,X){return O(typeof v<"u"),this.toArrayLike(v,U,X)},G.prototype.toArray=function(U,X){return this.toArrayLike(Array,U,X)},G.prototype.toArrayLike=function(U,X,$){var Q=this.byteLength(),K=$||Math.max(1,Q);O(Q<=K,"byte array longer than desired length"),O(K>0,"Requested array length <= 0"),this.strip();var L=X==="le",T=new U(K),I,Z,H=this.clone();if(!L){for(Z=0;Z<K-Q;Z++)T[Z]=0;for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[K-Z-1]=I}else{for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[Z]=I;for(;Z<K;Z++)T[Z]=0}return T},Math.clz32)G.prototype._countBits=function(U){return 32-Math.clz32(U)};else G.prototype._countBits=function(U){var X=U,$=0;if(X>=4096)$+=13,X>>>=13;if(X>=64)$+=7,X>>>=7;if(X>=8)$+=4,X>>>=4;if(X>=2)$+=2,X>>>=2;return $+X};G.prototype._zeroBits=function(U){if(U===0)return 26;var X=U,$=0;if((X&8191)===0)$+=13,X>>>=13;if((X&127)===0)$+=7,X>>>=7;if((X&15)===0)$+=4,X>>>=4;if((X&3)===0)$+=2,X>>>=2;if((X&1)===0)$++;return $},G.prototype.bitLength=function(){var U=this.words[this.length-1],X=this._countBits(U);return(this.length-1)*26+X};function D(U){var X=Array(U.bitLength());for(var $=0;$<X.length;$++){var Q=$/26|0,K=$%26;X[$]=(U.words[Q]&1<<K)>>>K}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var X=0;X<this.length;X++){var $=this._zeroBits(this.words[X]);if(U+=$,$!==26)break}return U},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},G.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},G.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var X=0;X<U.length;X++)this.words[X]=this.words[X]|U.words[X];return this.strip()},G.prototype.ior=function(U){return O((this.negative|U.negative)===0),this.iuor(U)},G.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},G.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},G.prototype.iuand=function(U){var X;if(this.length>U.length)X=U;else X=this;for(var $=0;$<X.length;$++)this.words[$]=this.words[$]&U.words[$];return this.length=X.length,this.strip()},G.prototype.iand=function(U){return O((this.negative|U.negative)===0),this.iuand(U)},G.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},G.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},G.prototype.iuxor=function(U){var X,$;if(this.length>U.length)X=this,$=U;else X=U,$=this;for(var Q=0;Q<$.length;Q++)this.words[Q]=X.words[Q]^$.words[Q];if(this!==X)for(;Q<X.length;Q++)this.words[Q]=X.words[Q];return this.length=X.length,this.strip()},G.prototype.ixor=function(U){return O((this.negative|U.negative)===0),this.iuxor(U)},G.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},G.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},G.prototype.inotn=function(U){O(typeof U==="number"&&U>=0);var X=Math.ceil(U/26)|0,$=U%26;if(this._expand(X),$>0)X--;for(var Q=0;Q<X;Q++)this.words[Q]=~this.words[Q]&67108863;if($>0)this.words[Q]=~this.words[Q]&67108863>>26-$;return this.strip()},G.prototype.notn=function(U){return this.clone().inotn(U)},G.prototype.setn=function(U,X){O(typeof U==="number"&&U>=0);var $=U/26|0,Q=U%26;if(this._expand($+1),X)this.words[$]=this.words[$]|1<<Q;else this.words[$]=this.words[$]&~(1<<Q);return this.strip()},G.prototype.iadd=function(U){var X;if(this.negative!==0&&U.negative===0)return this.negative=0,X=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,X=this.isub(U),U.negative=1,X._normSign();var $,Q;if(this.length>U.length)$=this,Q=U;else $=U,Q=this;var K=0;for(var L=0;L<Q.length;L++)X=($.words[L]|0)+(Q.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;for(;K!==0&&L<$.length;L++)X=($.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;if(this.length=$.length,K!==0)this.words[this.length]=K,this.length++;else if($!==this)for(;L<$.length;L++)this.words[L]=$.words[L];return this},G.prototype.add=function(U){var X;if(U.negative!==0&&this.negative===0)return U.negative=0,X=this.sub(U),U.negative^=1,X;else if(U.negative===0&&this.negative!==0)return this.negative=0,X=U.sub(this),this.negative=1,X;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},G.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var X=this.iadd(U);return U.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var $=this.cmp(U);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Q,K;if($>0)Q=this,K=U;else Q=U,K=this;var L=0;for(var T=0;T<K.length;T++)X=(Q.words[T]|0)-(K.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;for(;L!==0&&T<Q.length;T++)X=(Q.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;if(L===0&&T<Q.length&&Q!==this)for(;T<Q.length;T++)this.words[T]=Q.words[T];if(this.length=Math.max(this.length,T),Q!==this)this.negative=1;return this.strip()},G.prototype.sub=function(U){return this.clone().isub(U)};function S(U,X,$){$.negative=X.negative^U.negative;var Q=U.length+X.length|0;$.length=Q,Q=Q-1|0;var K=U.words[0]|0,L=X.words[0]|0,T=K*L,I=T&67108863,Z=T/67108864|0;$.words[0]=I;for(var H=1;H<Q;H++){var N=Z>>>26,B=Z&67108863,w=Math.min(H,X.length-1);for(var u=Math.max(0,H-U.length+1);u<=w;u++){var s=H-u|0;K=U.words[s]|0,L=X.words[u]|0,T=K*L+B,N+=T/67108864|0,B=T&67108863}$.words[H]=B|0,Z=N|0}if(Z!==0)$.words[H]=Z|0;else $.length--;return $.strip()}var P=function(U,X,$){var Q=U.words,K=X.words,L=$.words,T=0,I,Z,H,N=Q[0]|0,B=N&8191,w=N>>>13,u=Q[1]|0,s=u&8191,Y0=u>>>13,M0=Q[2]|0,n=M0&8191,b=M0>>>13,a=Q[3]|0,l=a&8191,G0=a>>>13,A0=Q[4]|0,o=A0&8191,t=A0>>>13,V0=Q[5]|0,z0=V0&8191,U0=V0>>>13,x0=Q[6]|0,e=x0&8191,H0=x0>>>13,p0=Q[7]|0,F0=p0&8191,D0=p0>>>13,i0=Q[8]|0,i=i0&8191,W0=i0>>>13,v0=Q[9]|0,q0=v0&8191,S0=v0>>>13,e0=K[0]|0,j0=e0&8191,B0=e0>>>13,XU=K[1]|0,_0=XU&8191,g0=XU>>>13,MU=K[2]|0,c0=MU&8191,K0=MU>>>13,E0=K[3]|0,C0=E0&8191,N0=E0>>>13,IU=K[4]|0,u0=IU&8191,d0=IU>>>13,xU=K[5]|0,m0=xU&8191,d=xU>>>13,$0=K[6]|0,L0=$0&8191,R0=$0>>>13,r0=K[7]|0,y0=r0&8191,T0=r0>>>13,AU=K[8]|0,b0=AU&8191,n0=AU>>>13,pU=K[9]|0,o0=pU&8191,l0=pU>>>13;$.negative=U.negative^X.negative,$.length=19,I=Math.imul(B,j0),Z=Math.imul(B,B0),Z=Z+Math.imul(w,j0)|0,H=Math.imul(w,B0);var PU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(PU>>>26)|0,PU&=67108863,I=Math.imul(s,j0),Z=Math.imul(s,B0),Z=Z+Math.imul(Y0,j0)|0,H=Math.imul(Y0,B0),I=I+Math.imul(B,_0)|0,Z=Z+Math.imul(B,g0)|0,Z=Z+Math.imul(w,_0)|0,H=H+Math.imul(w,g0)|0;var JU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(n,j0),Z=Math.imul(n,B0),Z=Z+Math.imul(b,j0)|0,H=Math.imul(b,B0),I=I+Math.imul(s,_0)|0,Z=Z+Math.imul(s,g0)|0,Z=Z+Math.imul(Y0,_0)|0,H=H+Math.imul(Y0,g0)|0,I=I+Math.imul(B,c0)|0,Z=Z+Math.imul(B,K0)|0,Z=Z+Math.imul(w,c0)|0,H=H+Math.imul(w,K0)|0;var YU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(l,j0),Z=Math.imul(l,B0),Z=Z+Math.imul(G0,j0)|0,H=Math.imul(G0,B0),I=I+Math.imul(n,_0)|0,Z=Z+Math.imul(n,g0)|0,Z=Z+Math.imul(b,_0)|0,H=H+Math.imul(b,g0)|0,I=I+Math.imul(s,c0)|0,Z=Z+Math.imul(s,K0)|0,Z=Z+Math.imul(Y0,c0)|0,H=H+Math.imul(Y0,K0)|0,I=I+Math.imul(B,C0)|0,Z=Z+Math.imul(B,N0)|0,Z=Z+Math.imul(w,C0)|0,H=H+Math.imul(w,N0)|0;var zU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(zU>>>26)|0,zU&=67108863,I=Math.imul(o,j0),Z=Math.imul(o,B0),Z=Z+Math.imul(t,j0)|0,H=Math.imul(t,B0),I=I+Math.imul(l,_0)|0,Z=Z+Math.imul(l,g0)|0,Z=Z+Math.imul(G0,_0)|0,H=H+Math.imul(G0,g0)|0,I=I+Math.imul(n,c0)|0,Z=Z+Math.imul(n,K0)|0,Z=Z+Math.imul(b,c0)|0,H=H+Math.imul(b,K0)|0,I=I+Math.imul(s,C0)|0,Z=Z+Math.imul(s,N0)|0,Z=Z+Math.imul(Y0,C0)|0,H=H+Math.imul(Y0,N0)|0,I=I+Math.imul(B,u0)|0,Z=Z+Math.imul(B,d0)|0,Z=Z+Math.imul(w,u0)|0,H=H+Math.imul(w,d0)|0;var FU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,I=Math.imul(z0,j0),Z=Math.imul(z0,B0),Z=Z+Math.imul(U0,j0)|0,H=Math.imul(U0,B0),I=I+Math.imul(o,_0)|0,Z=Z+Math.imul(o,g0)|0,Z=Z+Math.imul(t,_0)|0,H=H+Math.imul(t,g0)|0,I=I+Math.imul(l,c0)|0,Z=Z+Math.imul(l,K0)|0,Z=Z+Math.imul(G0,c0)|0,H=H+Math.imul(G0,K0)|0,I=I+Math.imul(n,C0)|0,Z=Z+Math.imul(n,N0)|0,Z=Z+Math.imul(b,C0)|0,H=H+Math.imul(b,N0)|0,I=I+Math.imul(s,u0)|0,Z=Z+Math.imul(s,d0)|0,Z=Z+Math.imul(Y0,u0)|0,H=H+Math.imul(Y0,d0)|0,I=I+Math.imul(B,m0)|0,Z=Z+Math.imul(B,d)|0,Z=Z+Math.imul(w,m0)|0,H=H+Math.imul(w,d)|0;var jU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,I=Math.imul(e,j0),Z=Math.imul(e,B0),Z=Z+Math.imul(H0,j0)|0,H=Math.imul(H0,B0),I=I+Math.imul(z0,_0)|0,Z=Z+Math.imul(z0,g0)|0,Z=Z+Math.imul(U0,_0)|0,H=H+Math.imul(U0,g0)|0,I=I+Math.imul(o,c0)|0,Z=Z+Math.imul(o,K0)|0,Z=Z+Math.imul(t,c0)|0,H=H+Math.imul(t,K0)|0,I=I+Math.imul(l,C0)|0,Z=Z+Math.imul(l,N0)|0,Z=Z+Math.imul(G0,C0)|0,H=H+Math.imul(G0,N0)|0,I=I+Math.imul(n,u0)|0,Z=Z+Math.imul(n,d0)|0,Z=Z+Math.imul(b,u0)|0,H=H+Math.imul(b,d0)|0,I=I+Math.imul(s,m0)|0,Z=Z+Math.imul(s,d)|0,Z=Z+Math.imul(Y0,m0)|0,H=H+Math.imul(Y0,d)|0,I=I+Math.imul(B,L0)|0,Z=Z+Math.imul(B,R0)|0,Z=Z+Math.imul(w,L0)|0,H=H+Math.imul(w,R0)|0;var ZU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(F0,j0),Z=Math.imul(F0,B0),Z=Z+Math.imul(D0,j0)|0,H=Math.imul(D0,B0),I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(H0,_0)|0,H=H+Math.imul(H0,g0)|0,I=I+Math.imul(z0,c0)|0,Z=Z+Math.imul(z0,K0)|0,Z=Z+Math.imul(U0,c0)|0,H=H+Math.imul(U0,K0)|0,I=I+Math.imul(o,C0)|0,Z=Z+Math.imul(o,N0)|0,Z=Z+Math.imul(t,C0)|0,H=H+Math.imul(t,N0)|0,I=I+Math.imul(l,u0)|0,Z=Z+Math.imul(l,d0)|0,Z=Z+Math.imul(G0,u0)|0,H=H+Math.imul(G0,d0)|0,I=I+Math.imul(n,m0)|0,Z=Z+Math.imul(n,d)|0,Z=Z+Math.imul(b,m0)|0,H=H+Math.imul(b,d)|0,I=I+Math.imul(s,L0)|0,Z=Z+Math.imul(s,R0)|0,Z=Z+Math.imul(Y0,L0)|0,H=H+Math.imul(Y0,R0)|0,I=I+Math.imul(B,y0)|0,Z=Z+Math.imul(B,T0)|0,Z=Z+Math.imul(w,y0)|0,H=H+Math.imul(w,T0)|0;var NU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(NU>>>26)|0,NU&=67108863,I=Math.imul(i,j0),Z=Math.imul(i,B0),Z=Z+Math.imul(W0,j0)|0,H=Math.imul(W0,B0),I=I+Math.imul(F0,_0)|0,Z=Z+Math.imul(F0,g0)|0,Z=Z+Math.imul(D0,_0)|0,H=H+Math.imul(D0,g0)|0,I=I+Math.imul(e,c0)|0,Z=Z+Math.imul(e,K0)|0,Z=Z+Math.imul(H0,c0)|0,H=H+Math.imul(H0,K0)|0,I=I+Math.imul(z0,C0)|0,Z=Z+Math.imul(z0,N0)|0,Z=Z+Math.imul(U0,C0)|0,H=H+Math.imul(U0,N0)|0,I=I+Math.imul(o,u0)|0,Z=Z+Math.imul(o,d0)|0,Z=Z+Math.imul(t,u0)|0,H=H+Math.imul(t,d0)|0,I=I+Math.imul(l,m0)|0,Z=Z+Math.imul(l,d)|0,Z=Z+Math.imul(G0,m0)|0,H=H+Math.imul(G0,d)|0,I=I+Math.imul(n,L0)|0,Z=Z+Math.imul(n,R0)|0,Z=Z+Math.imul(b,L0)|0,H=H+Math.imul(b,R0)|0,I=I+Math.imul(s,y0)|0,Z=Z+Math.imul(s,T0)|0,Z=Z+Math.imul(Y0,y0)|0,H=H+Math.imul(Y0,T0)|0,I=I+Math.imul(B,b0)|0,Z=Z+Math.imul(B,n0)|0,Z=Z+Math.imul(w,b0)|0,H=H+Math.imul(w,n0)|0;var vU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(vU>>>26)|0,vU&=67108863,I=Math.imul(q0,j0),Z=Math.imul(q0,B0),Z=Z+Math.imul(S0,j0)|0,H=Math.imul(S0,B0),I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(W0,_0)|0,H=H+Math.imul(W0,g0)|0,I=I+Math.imul(F0,c0)|0,Z=Z+Math.imul(F0,K0)|0,Z=Z+Math.imul(D0,c0)|0,H=H+Math.imul(D0,K0)|0,I=I+Math.imul(e,C0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(H0,C0)|0,H=H+Math.imul(H0,N0)|0,I=I+Math.imul(z0,u0)|0,Z=Z+Math.imul(z0,d0)|0,Z=Z+Math.imul(U0,u0)|0,H=H+Math.imul(U0,d0)|0,I=I+Math.imul(o,m0)|0,Z=Z+Math.imul(o,d)|0,Z=Z+Math.imul(t,m0)|0,H=H+Math.imul(t,d)|0,I=I+Math.imul(l,L0)|0,Z=Z+Math.imul(l,R0)|0,Z=Z+Math.imul(G0,L0)|0,H=H+Math.imul(G0,R0)|0,I=I+Math.imul(n,y0)|0,Z=Z+Math.imul(n,T0)|0,Z=Z+Math.imul(b,y0)|0,H=H+Math.imul(b,T0)|0,I=I+Math.imul(s,b0)|0,Z=Z+Math.imul(s,n0)|0,Z=Z+Math.imul(Y0,b0)|0,H=H+Math.imul(Y0,n0)|0,I=I+Math.imul(B,o0)|0,Z=Z+Math.imul(B,l0)|0,Z=Z+Math.imul(w,o0)|0,H=H+Math.imul(w,l0)|0;var qU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,I=Math.imul(q0,_0),Z=Math.imul(q0,g0),Z=Z+Math.imul(S0,_0)|0,H=Math.imul(S0,g0),I=I+Math.imul(i,c0)|0,Z=Z+Math.imul(i,K0)|0,Z=Z+Math.imul(W0,c0)|0,H=H+Math.imul(W0,K0)|0,I=I+Math.imul(F0,C0)|0,Z=Z+Math.imul(F0,N0)|0,Z=Z+Math.imul(D0,C0)|0,H=H+Math.imul(D0,N0)|0,I=I+Math.imul(e,u0)|0,Z=Z+Math.imul(e,d0)|0,Z=Z+Math.imul(H0,u0)|0,H=H+Math.imul(H0,d0)|0,I=I+Math.imul(z0,m0)|0,Z=Z+Math.imul(z0,d)|0,Z=Z+Math.imul(U0,m0)|0,H=H+Math.imul(U0,d)|0,I=I+Math.imul(o,L0)|0,Z=Z+Math.imul(o,R0)|0,Z=Z+Math.imul(t,L0)|0,H=H+Math.imul(t,R0)|0,I=I+Math.imul(l,y0)|0,Z=Z+Math.imul(l,T0)|0,Z=Z+Math.imul(G0,y0)|0,H=H+Math.imul(G0,T0)|0,I=I+Math.imul(n,b0)|0,Z=Z+Math.imul(n,n0)|0,Z=Z+Math.imul(b,b0)|0,H=H+Math.imul(b,n0)|0,I=I+Math.imul(s,o0)|0,Z=Z+Math.imul(s,l0)|0,Z=Z+Math.imul(Y0,o0)|0,H=H+Math.imul(Y0,l0)|0;var OU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(q0,c0),Z=Math.imul(q0,K0),Z=Z+Math.imul(S0,c0)|0,H=Math.imul(S0,K0),I=I+Math.imul(i,C0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(W0,C0)|0,H=H+Math.imul(W0,N0)|0,I=I+Math.imul(F0,u0)|0,Z=Z+Math.imul(F0,d0)|0,Z=Z+Math.imul(D0,u0)|0,H=H+Math.imul(D0,d0)|0,I=I+Math.imul(e,m0)|0,Z=Z+Math.imul(e,d)|0,Z=Z+Math.imul(H0,m0)|0,H=H+Math.imul(H0,d)|0,I=I+Math.imul(z0,L0)|0,Z=Z+Math.imul(z0,R0)|0,Z=Z+Math.imul(U0,L0)|0,H=H+Math.imul(U0,R0)|0,I=I+Math.imul(o,y0)|0,Z=Z+Math.imul(o,T0)|0,Z=Z+Math.imul(t,y0)|0,H=H+Math.imul(t,T0)|0,I=I+Math.imul(l,b0)|0,Z=Z+Math.imul(l,n0)|0,Z=Z+Math.imul(G0,b0)|0,H=H+Math.imul(G0,n0)|0,I=I+Math.imul(n,o0)|0,Z=Z+Math.imul(n,l0)|0,Z=Z+Math.imul(b,o0)|0,H=H+Math.imul(b,l0)|0;var _U=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,I=Math.imul(q0,C0),Z=Math.imul(q0,N0),Z=Z+Math.imul(S0,C0)|0,H=Math.imul(S0,N0),I=I+Math.imul(i,u0)|0,Z=Z+Math.imul(i,d0)|0,Z=Z+Math.imul(W0,u0)|0,H=H+Math.imul(W0,d0)|0,I=I+Math.imul(F0,m0)|0,Z=Z+Math.imul(F0,d)|0,Z=Z+Math.imul(D0,m0)|0,H=H+Math.imul(D0,d)|0,I=I+Math.imul(e,L0)|0,Z=Z+Math.imul(e,R0)|0,Z=Z+Math.imul(H0,L0)|0,H=H+Math.imul(H0,R0)|0,I=I+Math.imul(z0,y0)|0,Z=Z+Math.imul(z0,T0)|0,Z=Z+Math.imul(U0,y0)|0,H=H+Math.imul(U0,T0)|0,I=I+Math.imul(o,b0)|0,Z=Z+Math.imul(o,n0)|0,Z=Z+Math.imul(t,b0)|0,H=H+Math.imul(t,n0)|0,I=I+Math.imul(l,o0)|0,Z=Z+Math.imul(l,l0)|0,Z=Z+Math.imul(G0,o0)|0,H=H+Math.imul(G0,l0)|0;var wU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(wU>>>26)|0,wU&=67108863,I=Math.imul(q0,u0),Z=Math.imul(q0,d0),Z=Z+Math.imul(S0,u0)|0,H=Math.imul(S0,d0),I=I+Math.imul(i,m0)|0,Z=Z+Math.imul(i,d)|0,Z=Z+Math.imul(W0,m0)|0,H=H+Math.imul(W0,d)|0,I=I+Math.imul(F0,L0)|0,Z=Z+Math.imul(F0,R0)|0,Z=Z+Math.imul(D0,L0)|0,H=H+Math.imul(D0,R0)|0,I=I+Math.imul(e,y0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(H0,y0)|0,H=H+Math.imul(H0,T0)|0,I=I+Math.imul(z0,b0)|0,Z=Z+Math.imul(z0,n0)|0,Z=Z+Math.imul(U0,b0)|0,H=H+Math.imul(U0,n0)|0,I=I+Math.imul(o,o0)|0,Z=Z+Math.imul(o,l0)|0,Z=Z+Math.imul(t,o0)|0,H=H+Math.imul(t,l0)|0;var gU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,I=Math.imul(q0,m0),Z=Math.imul(q0,d),Z=Z+Math.imul(S0,m0)|0,H=Math.imul(S0,d),I=I+Math.imul(i,L0)|0,Z=Z+Math.imul(i,R0)|0,Z=Z+Math.imul(W0,L0)|0,H=H+Math.imul(W0,R0)|0,I=I+Math.imul(F0,y0)|0,Z=Z+Math.imul(F0,T0)|0,Z=Z+Math.imul(D0,y0)|0,H=H+Math.imul(D0,T0)|0,I=I+Math.imul(e,b0)|0,Z=Z+Math.imul(e,n0)|0,Z=Z+Math.imul(H0,b0)|0,H=H+Math.imul(H0,n0)|0,I=I+Math.imul(z0,o0)|0,Z=Z+Math.imul(z0,l0)|0,Z=Z+Math.imul(U0,o0)|0,H=H+Math.imul(U0,l0)|0;var fU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,I=Math.imul(q0,L0),Z=Math.imul(q0,R0),Z=Z+Math.imul(S0,L0)|0,H=Math.imul(S0,R0),I=I+Math.imul(i,y0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(W0,y0)|0,H=H+Math.imul(W0,T0)|0,I=I+Math.imul(F0,b0)|0,Z=Z+Math.imul(F0,n0)|0,Z=Z+Math.imul(D0,b0)|0,H=H+Math.imul(D0,n0)|0,I=I+Math.imul(e,o0)|0,Z=Z+Math.imul(e,l0)|0,Z=Z+Math.imul(H0,o0)|0,H=H+Math.imul(H0,l0)|0;var yU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(yU>>>26)|0,yU&=67108863,I=Math.imul(q0,y0),Z=Math.imul(q0,T0),Z=Z+Math.imul(S0,y0)|0,H=Math.imul(S0,T0),I=I+Math.imul(i,b0)|0,Z=Z+Math.imul(i,n0)|0,Z=Z+Math.imul(W0,b0)|0,H=H+Math.imul(W0,n0)|0,I=I+Math.imul(F0,o0)|0,Z=Z+Math.imul(F0,l0)|0,Z=Z+Math.imul(D0,o0)|0,H=H+Math.imul(D0,l0)|0;var kU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(kU>>>26)|0,kU&=67108863,I=Math.imul(q0,b0),Z=Math.imul(q0,n0),Z=Z+Math.imul(S0,b0)|0,H=Math.imul(S0,n0),I=I+Math.imul(i,o0)|0,Z=Z+Math.imul(i,l0)|0,Z=Z+Math.imul(W0,o0)|0,H=H+Math.imul(W0,l0)|0;var hU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(hU>>>26)|0,hU&=67108863,I=Math.imul(q0,o0),Z=Math.imul(q0,l0),Z=Z+Math.imul(S0,o0)|0,H=Math.imul(S0,l0);var TU=(T+I|0)+((Z&8191)<<13)|0;if(T=(H+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,L[0]=PU,L[1]=JU,L[2]=YU,L[3]=zU,L[4]=FU,L[5]=jU,L[6]=ZU,L[7]=NU,L[8]=vU,L[9]=qU,L[10]=OU,L[11]=_U,L[12]=wU,L[13]=gU,L[14]=fU,L[15]=yU,L[16]=kU,L[17]=hU,L[18]=TU,T!==0)L[19]=T,$.length++;return $};if(!Math.imul)P=S;function k(U,X,$){$.negative=X.negative^U.negative,$.length=U.length+X.length;var Q=0,K=0;for(var L=0;L<$.length-1;L++){var T=K;K=0;var I=Q&67108863,Z=Math.min(L,X.length-1);for(var H=Math.max(0,L-U.length+1);H<=Z;H++){var N=L-H,B=U.words[N]|0,w=X.words[H]|0,u=B*w,s=u&67108863;T=T+(u/67108864|0)|0,s=s+I|0,I=s&67108863,T=T+(s>>>26)|0,K+=T>>>26,T&=67108863}$.words[L]=I,Q=T,T=K}if(Q!==0)$.words[L]=Q;else $.length--;return $.strip()}function x(U,X,$){var Q=new f;return Q.mulp(U,X,$)}G.prototype.mulTo=function(U,X){var $,Q=this.length+U.length;if(this.length===10&&U.length===10)$=P(this,U,X);else if(Q<63)$=S(this,U,X);else if(Q<1024)$=k(this,U,X);else $=x(this,U,X);return $};function f(U,X){this.x=U,this.y=X}f.prototype.makeRBT=function(U){var X=Array(U),$=G.prototype._countBits(U)-1;for(var Q=0;Q<U;Q++)X[Q]=this.revBin(Q,$,U);return X},f.prototype.revBin=function(U,X,$){if(U===0||U===$-1)return U;var Q=0;for(var K=0;K<X;K++)Q|=(U&1)<<X-K-1,U>>=1;return Q},f.prototype.permute=function(U,X,$,Q,K,L){for(var T=0;T<L;T++)Q[T]=X[U[T]],K[T]=$[U[T]]},f.prototype.transform=function(U,X,$,Q,K,L){this.permute(L,U,X,$,Q,K);for(var T=1;T<K;T<<=1){var I=T<<1,Z=Math.cos(2*Math.PI/I),H=Math.sin(2*Math.PI/I);for(var N=0;N<K;N+=I){var B=Z,w=H;for(var u=0;u<T;u++){var s=$[N+u],Y0=Q[N+u],M0=$[N+u+T],n=Q[N+u+T],b=B*M0-w*n;if(n=B*n+w*M0,M0=b,$[N+u]=s+M0,Q[N+u]=Y0+n,$[N+u+T]=s-M0,Q[N+u+T]=Y0-n,u!==I)b=Z*B-H*w,w=Z*w+H*B,B=b}}}},f.prototype.guessLen13b=function(U,X){var $=Math.max(X,U)|1,Q=$&1,K=0;for($=$/2|0;$;$=$>>>1)K++;return 1<<K+1+Q},f.prototype.conjugate=function(U,X,$){if($<=1)return;for(var Q=0;Q<$/2;Q++){var K=U[Q];U[Q]=U[$-Q-1],U[$-Q-1]=K,K=X[Q],X[Q]=-X[$-Q-1],X[$-Q-1]=-K}},f.prototype.normalize13b=function(U,X){var $=0;for(var Q=0;Q<X/2;Q++){var K=Math.round(U[2*Q+1]/X)*8192+Math.round(U[2*Q]/X)+$;if(U[Q]=K&67108863,K<67108864)$=0;else $=K/67108864|0}return U},f.prototype.convert13b=function(U,X,$,Q){var K=0;for(var L=0;L<X;L++)K=K+(U[L]|0),$[2*L]=K&8191,K=K>>>13,$[2*L+1]=K&8191,K=K>>>13;for(L=2*X;L<Q;++L)$[L]=0;O(K===0),O((K&-8192)===0)},f.prototype.stub=function(U){var X=Array(U);for(var $=0;$<U;$++)X[$]=0;return X},f.prototype.mulp=function(U,X,$){var Q=2*this.guessLen13b(U.length,X.length),K=this.makeRBT(Q),L=this.stub(Q),T=Array(Q),I=Array(Q),Z=Array(Q),H=Array(Q),N=Array(Q),B=Array(Q),w=$.words;w.length=Q,this.convert13b(U.words,U.length,T,Q),this.convert13b(X.words,X.length,H,Q),this.transform(T,L,I,Z,Q,K),this.transform(H,L,N,B,Q,K);for(var u=0;u<Q;u++){var s=I[u]*N[u]-Z[u]*B[u];Z[u]=I[u]*B[u]+Z[u]*N[u],I[u]=s}return this.conjugate(I,Z,Q),this.transform(I,Z,w,L,Q,K),this.conjugate(w,L,Q),this.normalize13b(w,Q),$.negative=U.negative^X.negative,$.length=U.length+X.length,$.strip()},G.prototype.mul=function(U){var X=new G(null);return X.words=Array(this.length+U.length),this.mulTo(U,X)},G.prototype.mulf=function(U){var X=new G(null);return X.words=Array(this.length+U.length),x(this,U,X)},G.prototype.imul=function(U){return this.clone().mulTo(U,this)},G.prototype.imuln=function(U){O(typeof U==="number"),O(U<67108864);var X=0;for(var $=0;$<this.length;$++){var Q=(this.words[$]|0)*U,K=(Q&67108863)+(X&67108863);X>>=26,X+=Q/67108864|0,X+=K>>>26,this.words[$]=K&67108863}if(X!==0)this.words[$]=X,this.length++;return this.length=U===0?1:this.length,this},G.prototype.muln=function(U){return this.clone().imuln(U)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(U){var X=D(U);if(X.length===0)return new G(1);var $=this;for(var Q=0;Q<X.length;Q++,$=$.sqr())if(X[Q]!==0)break;if(++Q<X.length)for(var K=$.sqr();Q<X.length;Q++,K=K.sqr()){if(X[Q]===0)continue;$=$.mul(K)}return $},G.prototype.iushln=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=67108863>>>26-X<<26-X,K;if(X!==0){var L=0;for(K=0;K<this.length;K++){var T=this.words[K]&Q,I=(this.words[K]|0)-T<<X;this.words[K]=I|L,L=T>>>26-X}if(L)this.words[K]=L,this.length++}if($!==0){for(K=this.length-1;K>=0;K--)this.words[K+$]=this.words[K];for(K=0;K<$;K++)this.words[K]=0;this.length+=$}return this.strip()},G.prototype.ishln=function(U){return O(this.negative===0),this.iushln(U)},G.prototype.iushrn=function(U,X,$){O(typeof U==="number"&&U>=0);var Q;if(X)Q=(X-X%26)/26;else Q=0;var K=U%26,L=Math.min((U-K)/26,this.length),T=67108863^67108863>>>K<<K,I=$;if(Q-=L,Q=Math.max(0,Q),I){for(var Z=0;Z<L;Z++)I.words[Z]=this.words[Z];I.length=L}if(L===0);else if(this.length>L){this.length-=L;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+L]}else this.words[0]=0,this.length=1;var H=0;for(Z=this.length-1;Z>=0&&(H!==0||Z>=Q);Z--){var N=this.words[Z]|0;this.words[Z]=H<<26-K|N>>>K,H=N&T}if(I&&H!==0)I.words[I.length++]=H;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},G.prototype.ishrn=function(U,X,$){return O(this.negative===0),this.iushrn(U,X,$)},G.prototype.shln=function(U){return this.clone().ishln(U)},G.prototype.ushln=function(U){return this.clone().iushln(U)},G.prototype.shrn=function(U){return this.clone().ishrn(U)},G.prototype.ushrn=function(U){return this.clone().iushrn(U)},G.prototype.testn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return!1;var K=this.words[$];return!!(K&Q)},G.prototype.imaskn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26;if(O(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(X!==0)$++;if(this.length=Math.min($,this.length),X!==0){var Q=67108863^67108863>>>X<<X;this.words[this.length-1]&=Q}return this.strip()},G.prototype.maskn=function(U){return this.clone().imaskn(U)},G.prototype.iaddn=function(U){if(O(typeof U==="number"),O(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)},G.prototype._iaddn=function(U){this.words[0]+=U;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)if(this.words[X]-=67108864,X===this.length-1)this.words[X+1]=1;else this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(U){if(O(typeof U==="number"),O(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(U){return this.clone().iaddn(U)},G.prototype.subn=function(U){return this.clone().isubn(U)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(U,X,$){var Q=U.length+$,K;this._expand(Q);var L,T=0;for(K=0;K<U.length;K++){L=(this.words[K+$]|0)+T;var I=(U.words[K]|0)*X;L-=I&67108863,T=(L>>26)-(I/67108864|0),this.words[K+$]=L&67108863}for(;K<this.length-$;K++)L=(this.words[K+$]|0)+T,T=L>>26,this.words[K+$]=L&67108863;if(T===0)return this.strip();O(T===-1),T=0;for(K=0;K<this.length;K++)L=-(this.words[K]|0)+T,T=L>>26,this.words[K]=L&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(U,X){var $=this.length-U.length,Q=this.clone(),K=U,L=K.words[K.length-1]|0,T=this._countBits(L);if($=26-T,$!==0)K=K.ushln($),Q.iushln($),L=K.words[K.length-1]|0;var I=Q.length-K.length,Z;if(X!=="mod"){Z=new G(null),Z.length=I+1,Z.words=Array(Z.length);for(var H=0;H<Z.length;H++)Z.words[H]=0}var N=Q.clone()._ishlnsubmul(K,1,I);if(N.negative===0){if(Q=N,Z)Z.words[I]=1}for(var B=I-1;B>=0;B--){var w=(Q.words[K.length+B]|0)*67108864+(Q.words[K.length+B-1]|0);w=Math.min(w/L|0,67108863),Q._ishlnsubmul(K,w,B);while(Q.negative!==0)if(w--,Q.negative=0,Q._ishlnsubmul(K,1,B),!Q.isZero())Q.negative^=1;if(Z)Z.words[B]=w}if(Z)Z.strip();if(Q.strip(),X!=="div"&&$!==0)Q.iushrn($);return{div:Z||null,mod:Q}},G.prototype.divmod=function(U,X,$){if(O(!U.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var Q,K,L;if(this.negative!==0&&U.negative===0){if(L=this.neg().divmod(U,X),X!=="mod")Q=L.div.neg();if(X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.iadd(U)}return{div:Q,mod:K}}if(this.negative===0&&U.negative!==0){if(L=this.divmod(U.neg(),X),X!=="mod")Q=L.div.neg();return{div:Q,mod:L.mod}}if((this.negative&U.negative)!==0){if(L=this.neg().divmod(U.neg(),X),X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.isub(U)}return{div:L.div,mod:K}}if(U.length>this.length||this.cmp(U)<0)return{div:new G(0),mod:this};if(U.length===1){if(X==="div")return{div:this.divn(U.words[0]),mod:null};if(X==="mod")return{div:null,mod:new G(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new G(this.modn(U.words[0]))}}return this._wordDiv(U,X)},G.prototype.div=function(U){return this.divmod(U,"div",!1).div},G.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},G.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},G.prototype.divRound=function(U){var X=this.divmod(U);if(X.mod.isZero())return X.div;var $=X.div.negative!==0?X.mod.isub(U):X.mod,Q=U.ushrn(1),K=U.andln(1),L=$.cmp(Q);if(L<0||K===1&&L===0)return X.div;return X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(U){O(U<=67108863);var X=67108864%U,$=0;for(var Q=this.length-1;Q>=0;Q--)$=(X*$+(this.words[Q]|0))%U;return $},G.prototype.idivn=function(U){O(U<=67108863);var X=0;for(var $=this.length-1;$>=0;$--){var Q=(this.words[$]|0)+X*67108864;this.words[$]=Q/U|0,X=Q%U}return this.strip()},G.prototype.divn=function(U){return this.clone().idivn(U)},G.prototype.egcd=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=new G(0),T=new G(1),I=0;while(X.isEven()&&$.isEven())X.iushrn(1),$.iushrn(1),++I;var Z=$.clone(),H=X.clone();while(!X.isZero()){for(var N=0,B=1;(X.words[0]&B)===0&&N<26;++N,B<<=1);if(N>0){X.iushrn(N);while(N-- >0){if(Q.isOdd()||K.isOdd())Q.iadd(Z),K.isub(H);Q.iushrn(1),K.iushrn(1)}}for(var w=0,u=1;($.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0){$.iushrn(w);while(w-- >0){if(L.isOdd()||T.isOdd())L.iadd(Z),T.isub(H);L.iushrn(1),T.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(L),K.isub(T);else $.isub(X),L.isub(Q),T.isub(K)}return{a:L,b:T,gcd:$.iushln(I)}},G.prototype._invmp=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=$.clone();while(X.cmpn(1)>0&&$.cmpn(1)>0){for(var T=0,I=1;(X.words[0]&I)===0&&T<26;++T,I<<=1);if(T>0){X.iushrn(T);while(T-- >0){if(Q.isOdd())Q.iadd(L);Q.iushrn(1)}}for(var Z=0,H=1;($.words[0]&H)===0&&Z<26;++Z,H<<=1);if(Z>0){$.iushrn(Z);while(Z-- >0){if(K.isOdd())K.iadd(L);K.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(K);else $.isub(X),K.isub(Q)}var N;if(X.cmpn(1)===0)N=Q;else N=K;if(N.cmpn(0)<0)N.iadd(U);return N},G.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var X=this.clone(),$=U.clone();X.negative=0,$.negative=0;for(var Q=0;X.isEven()&&$.isEven();Q++)X.iushrn(1),$.iushrn(1);do{while(X.isEven())X.iushrn(1);while($.isEven())$.iushrn(1);var K=X.cmp($);if(K<0){var L=X;X=$,$=L}else if(K===0||$.cmpn(1)===0)break;X.isub($)}while(!0);return $.iushln(Q)},G.prototype.invm=function(U){return this.egcd(U).a.umod(U)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(U){return this.words[0]&U},G.prototype.bincn=function(U){O(typeof U==="number");var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return this._expand($+1),this.words[$]|=Q,this;var K=Q;for(var L=$;K!==0&&L<this.length;L++){var T=this.words[L]|0;T+=K,K=T>>>26,T&=67108863,this.words[L]=T}if(K!==0)this.words[L]=K,this.length++;return this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(U){var X=U<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var $;if(this.length>1)$=1;else{if(X)U=-U;O(U<=67108863,"Number is too big");var Q=this.words[0]|0;$=Q===U?0:Q<U?-1:1}if(this.negative!==0)return-$|0;return $},G.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var X=this.ucmp(U);if(this.negative!==0)return-X|0;return X},G.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var X=0;for(var $=this.length-1;$>=0;$--){var Q=this.words[$]|0,K=U.words[$]|0;if(Q===K)continue;if(Q<K)X=-1;else if(Q>K)X=1;break}return X},G.prototype.gtn=function(U){return this.cmpn(U)===1},G.prototype.gt=function(U){return this.cmp(U)===1},G.prototype.gten=function(U){return this.cmpn(U)>=0},G.prototype.gte=function(U){return this.cmp(U)>=0},G.prototype.ltn=function(U){return this.cmpn(U)===-1},G.prototype.lt=function(U){return this.cmp(U)===-1},G.prototype.lten=function(U){return this.cmpn(U)<=0},G.prototype.lte=function(U){return this.cmp(U)<=0},G.prototype.eqn=function(U){return this.cmpn(U)===0},G.prototype.eq=function(U){return this.cmp(U)===0},G.red=function(U){return new r(U)},G.prototype.toRed=function(U){return O(!this.red,"Already a number in reduction context"),O(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},G.prototype.fromRed=function(){return O(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(U){return this.red=U,this},G.prototype.forceRed=function(U){return O(!this.red,"Already a number in reduction context"),this._forceRed(U)},G.prototype.redAdd=function(U){return O(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},G.prototype.redIAdd=function(U){return O(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},G.prototype.redSub=function(U){return O(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},G.prototype.redISub=function(U){return O(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},G.prototype.redShl=function(U){return O(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},G.prototype.redMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},G.prototype.redIMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},G.prototype.redSqr=function(){return O(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return O(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return O(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return O(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return O(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(U){return O(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var h={k256:null,p224:null,p192:null,p25519:null};function c(U,X){this.name=U,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}c.prototype._tmp=function(){var U=new G(null);return U.words=Array(Math.ceil(this.n/13)),U},c.prototype.ireduce=function(U){var X=U,$;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),$=X.bitLength();while($>this.n);var Q=$<this.n?-1:X.ucmp(this.p);if(Q===0)X.words[0]=0,X.length=1;else if(Q>0)X.isub(this.p);else if(X.strip!==void 0)X.strip();else X._strip();return X},c.prototype.split=function(U,X){U.iushrn(this.n,0,X)},c.prototype.imulK=function(U){return U.imul(this.k)};function m(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(m,c),m.prototype.split=function(U,X){var $=4194303,Q=Math.min(U.length,9);for(var K=0;K<Q;K++)X.words[K]=U.words[K];if(X.length=Q,U.length<=9){U.words[0]=0,U.length=1;return}var L=U.words[9];X.words[X.length++]=L&$;for(K=10;K<U.length;K++){var T=U.words[K]|0;U.words[K-10]=(T&$)<<4|L>>>22,L=T}if(L>>>=22,U.words[K-10]=L,L===0&&U.length>10)U.length-=10;else U.length-=9},m.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var X=0;for(var $=0;$<U.length;$++){var Q=U.words[$]|0;X+=Q*977,U.words[$]=X&67108863,X=Q*64+(X/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function g(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(g,c);function Q0(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Q0,c);function J0(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(J0,c),J0.prototype.imulK=function(U){var X=0;for(var $=0;$<U.length;$++){var Q=(U.words[$]|0)*19+X,K=Q&67108863;Q>>>=26,U.words[$]=K,X=Q}if(X!==0)U.words[U.length++]=X;return U},G._prime=function(U){if(h[U])return h[U];var X;if(U==="k256")X=new m;else if(U==="p224")X=new g;else if(U==="p192")X=new Q0;else if(U==="p25519")X=new J0;else throw Error("Unknown prime "+U);return h[U]=X,X};function r(U){if(typeof U==="string"){var X=G._prime(U);this.m=X.p,this.prime=X}else O(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}r.prototype._verify1=function(U){O(U.negative===0,"red works only with positives"),O(U.red,"red works only with red numbers")},r.prototype._verify2=function(U,X){O((U.negative|X.negative)===0,"red works only with positives"),O(U.red&&U.red===X.red,"red works only with red numbers")},r.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},r.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},r.prototype.add=function(U,X){this._verify2(U,X);var $=U.add(X);if($.cmp(this.m)>=0)$.isub(this.m);return $._forceRed(this)},r.prototype.iadd=function(U,X){this._verify2(U,X);var $=U.iadd(X);if($.cmp(this.m)>=0)$.isub(this.m);return $},r.prototype.sub=function(U,X){this._verify2(U,X);var $=U.sub(X);if($.cmpn(0)<0)$.iadd(this.m);return $._forceRed(this)},r.prototype.isub=function(U,X){this._verify2(U,X);var $=U.isub(X);if($.cmpn(0)<0)$.iadd(this.m);return $},r.prototype.shl=function(U,X){return this._verify1(U),this.imod(U.ushln(X))},r.prototype.imul=function(U,X){return this._verify2(U,X),this.imod(U.imul(X))},r.prototype.mul=function(U,X){return this._verify2(U,X),this.imod(U.mul(X))},r.prototype.isqr=function(U){return this.imul(U,U.clone())},r.prototype.sqr=function(U){return this.mul(U,U)},r.prototype.sqrt=function(U){if(U.isZero())return U.clone();var X=this.m.andln(3);if(O(X%2===1),X===3){var $=this.m.add(new G(1)).iushrn(2);return this.pow(U,$)}var Q=this.m.subn(1),K=0;while(!Q.isZero()&&Q.andln(1)===0)K++,Q.iushrn(1);O(!Q.isZero());var L=new G(1).toRed(this),T=L.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new G(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(T)!==0)Z.redIAdd(T);var H=this.pow(Z,Q),N=this.pow(U,Q.addn(1).iushrn(1)),B=this.pow(U,Q),w=K;while(B.cmp(L)!==0){var u=B;for(var s=0;u.cmp(L)!==0;s++)u=u.redSqr();O(s<w);var Y0=this.pow(H,new G(1).iushln(w-s-1));N=N.redMul(Y0),H=Y0.redSqr(),B=B.redMul(H),w=s}return N},r.prototype.invm=function(U){var X=U._invmp(this.m);if(X.negative!==0)return X.negative=0,this.imod(X).redNeg();else return this.imod(X)},r.prototype.pow=function(U,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return U.clone();var $=4,Q=Array(1<<$);Q[0]=new G(1).toRed(this),Q[1]=U;for(var K=2;K<Q.length;K++)Q[K]=this.mul(Q[K-1],U);var L=Q[0],T=0,I=0,Z=X.bitLength()%26;if(Z===0)Z=26;for(K=X.length-1;K>=0;K--){var H=X.words[K];for(var N=Z-1;N>=0;N--){var B=H>>N&1;if(L!==Q[0])L=this.sqr(L);if(B===0&&T===0){I=0;continue}if(T<<=1,T|=B,I++,I!==$&&(K!==0||N!==0))continue;L=this.mul(L,Q[T]),I=0,T=0}Z=26}return L},r.prototype.convertTo=function(U){var X=U.umod(this.m);return X===U?X.clone():X},r.prototype.convertFrom=function(U){var X=U.clone();return X.red=null,X},G.mont=function(U){return new O0(U)};function O0(U){if(r.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new G(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A(O0,r),O0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},O0.prototype.convertFrom=function(U){var X=this.imod(U.mul(this.rinv));return X.red=null,X},O0.prototype.imul=function(U,X){if(U.isZero()||X.isZero())return U.words[0]=0,U.length=1,U;var $=U.imul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.mul=function(U,X){if(U.isZero()||X.isZero())return new G(0)._forceRed(this);var $=U.mul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.invm=function(U){var X=this.imod(U._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof W>"u"||W,Y)}),KO=k0((Y)=>{var W=pQ(),V=UZ(),z=Y;z.define=function(A,G){return new O(A,G)};function O(A,G){this.name=A,this.body=G,this.decoders={},this.encoders={}}O.prototype._createNamed=function(A){var G;try{G=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
|
|
75
|
-
this._initNamed(entity);
|
|
76
|
-
})`)}catch(v){G=function(j){this._initNamed(j)}}return V(G,A),G.prototype._initNamed=function(v){A.call(this,v)},new G(this)},O.prototype._getDecoder=function(A){if(A=A||"der",!this.decoders.hasOwnProperty(A))this.decoders[A]=this._createNamed(W.decoders[A]);return this.decoders[A]},O.prototype.decode=function(A,G,v){return this._getDecoder(G).decode(A,v)},O.prototype._getEncoder=function(A){if(A=A||"der",!this.encoders.hasOwnProperty(A))this.encoders[A]=this._createNamed(W.encoders[A]);return this.encoders[A]},O.prototype.encode=function(A,G,v){return this._getEncoder(G).encode(A,v)}}),$O=k0((Y)=>{var W=UZ();function V(O){this._reporterState={obj:null,path:[],options:O||{},errors:[]}}Y.Reporter=V,V.prototype.isError=function(O){return O instanceof z},V.prototype.save=function(){var O=this._reporterState;return{obj:O.obj,pathLen:O.path.length}},V.prototype.restore=function(O){var A=this._reporterState;A.obj=O.obj,A.path=A.path.slice(0,O.pathLen)},V.prototype.enterKey=function(O){return this._reporterState.path.push(O)},V.prototype.exitKey=function(O){var A=this._reporterState;A.path=A.path.slice(0,O-1)},V.prototype.leaveKey=function(O,A,G){var v=this._reporterState;if(this.exitKey(O),v.obj!==null)v.obj[A]=G},V.prototype.path=function(){return this._reporterState.path.join("/")},V.prototype.enterObject=function(){var O=this._reporterState,A=O.obj;return O.obj={},A},V.prototype.leaveObject=function(O){var A=this._reporterState,G=A.obj;return A.obj=O,G},V.prototype.error=function(O){var A,G=this._reporterState,v=O instanceof z;if(v)A=O;else A=new z(G.path.map(function(j){return"["+JSON.stringify(j)+"]"}).join(""),O.message||O,O.stack);if(!G.options.partial)throw A;if(!v)G.errors.push(A);return A},V.prototype.wrapResult=function(O){var A=this._reporterState;if(!A.options.partial)return O;return{result:this.isError(O)?null:O,errors:A.errors}};function z(O,A){this.path=O,this.rethrow(A)}W(z,Error),z.prototype.rethrow=function(O){if(this.message=O+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,z);if(!this.stack)try{throw Error(this.message)}catch(A){this.stack=A.stack}return this}}),hG=k0((Y)=>{var W=UZ(),V=wQ().Reporter,z=(lU(),WU(dU)).Buffer;function O(G,v){if(V.call(this,v),!z.isBuffer(G)){this.error("Input not Buffer");return}this.base=G,this.offset=0,this.length=G.length}W(O,V),Y.DecoderBuffer=O,O.prototype.save=function(){return{offset:this.offset,reporter:V.prototype.save.call(this)}},O.prototype.restore=function(G){var v=new O(this.base);return v.offset=G.offset,v.length=this.offset,this.offset=G.offset,V.prototype.restore.call(this,G.reporter),v},O.prototype.isEmpty=function(){return this.offset===this.length},O.prototype.readUInt8=function(G){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(G||"DecoderBuffer overrun")},O.prototype.skip=function(G,v){if(!(this.offset+G<=this.length))return this.error(v||"DecoderBuffer overrun");var j=new O(this.base);return j._reporterState=this._reporterState,j.offset=this.offset,j.length=this.offset+G,this.offset+=G,j},O.prototype.raw=function(G){return this.base.slice(G?G.offset:this.offset,this.length)};function A(G,v){if(Array.isArray(G))this.length=0,this.value=G.map(function(j){if(!(j instanceof A))j=new A(j,v);return this.length+=j.length,j},this);else if(typeof G==="number"){if(!(0<=G&&G<=255))return v.error("non-byte EncoderBuffer value");this.value=G,this.length=1}else if(typeof G==="string")this.value=G,this.length=z.byteLength(G);else if(z.isBuffer(G))this.value=G,this.length=G.length;else return v.error("Unsupported type: "+typeof G)}Y.EncoderBuffer=A,A.prototype.join=function(G,v){if(!G)G=new z(this.length);if(!v)v=0;if(this.length===0)return G;if(Array.isArray(this.value))this.value.forEach(function(j){j.join(G,v),v+=j.length});else{if(typeof this.value==="number")G[v]=this.value;else if(typeof this.value==="string")G.write(this.value,v);else if(z.isBuffer(this.value))this.value.copy(G,v);v+=this.length}return G}}),HO=k0((Y,W)=>{var V=wQ().Reporter,z=wQ().EncoderBuffer,O=wQ().DecoderBuffer,A=kZ(),G=["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"],v=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(G),j=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function E(C,M){var F={};if(this._baseState=F,F.enc=C,F.parent=M||null,F.children=null,F.tag=null,F.args=null,F.reverseArgs=null,F.choice=null,F.optional=!1,F.any=!1,F.obj=!1,F.use=null,F.useDecoder=null,F.key=null,F.default=null,F.explicit=null,F.implicit=null,F.contains=null,!F.parent)F.children=[],this._wrap()}W.exports=E;var q=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];E.prototype.clone=function(){var C=this._baseState,M={};q.forEach(function(D){M[D]=C[D]});var F=new this.constructor(M.parent);return F._baseState=M,F},E.prototype._wrap=function(){var C=this._baseState;v.forEach(function(M){this[M]=function(){var F=new this.constructor(this);return C.children.push(F),F[M].apply(F,arguments)}},this)},E.prototype._init=function(C){var M=this._baseState;A(M.parent===null),C.call(this),M.children=M.children.filter(function(F){return F._baseState.parent===this},this),A.equal(M.children.length,1,"Root node can have only one child")},E.prototype._useArgs=function(C){var M=this._baseState,F=C.filter(function(D){return D instanceof this.constructor},this);if(C=C.filter(function(D){return!(D instanceof this.constructor)},this),F.length!==0)A(M.children===null),M.children=F,F.forEach(function(D){D._baseState.parent=this},this);if(C.length!==0)A(M.args===null),M.args=C,M.reverseArgs=C.map(function(D){if(typeof D!=="object"||D.constructor!==Object)return D;var S={};return Object.keys(D).forEach(function(P){if(P==(P|0))P|=0;var k=D[P];S[k]=P}),S})},j.forEach(function(C){E.prototype[C]=function(){var M=this._baseState;throw Error(C+" not implemented for encoding: "+M.enc)}}),G.forEach(function(C){E.prototype[C]=function(){var M=this._baseState,F=Array.prototype.slice.call(arguments);return A(M.tag===null),M.tag=C,this._useArgs(F),this}}),E.prototype.use=function(C){A(C);var M=this._baseState;return A(M.use===null),M.use=C,this},E.prototype.optional=function(){var C=this._baseState;return C.optional=!0,this},E.prototype.def=function(C){var M=this._baseState;return A(M.default===null),M.default=C,M.optional=!0,this},E.prototype.explicit=function(C){var M=this._baseState;return A(M.explicit===null&&M.implicit===null),M.explicit=C,this},E.prototype.implicit=function(C){var M=this._baseState;return A(M.explicit===null&&M.implicit===null),M.implicit=C,this},E.prototype.obj=function(){var C=this._baseState,M=Array.prototype.slice.call(arguments);if(C.obj=!0,M.length!==0)this._useArgs(M);return this},E.prototype.key=function(C){var M=this._baseState;return A(M.key===null),M.key=C,this},E.prototype.any=function(){var C=this._baseState;return C.any=!0,this},E.prototype.choice=function(C){var M=this._baseState;return A(M.choice===null),M.choice=C,this._useArgs(Object.keys(C).map(function(F){return C[F]})),this},E.prototype.contains=function(C){var M=this._baseState;return A(M.use===null),M.contains=C,this},E.prototype._decode=function(C,M){var F=this._baseState;if(F.parent===null)return C.wrapResult(F.children[0]._decode(C,M));var D=F.default,S=!0,P=null;if(F.key!==null)P=C.enterKey(F.key);if(F.optional){var k=null;if(F.explicit!==null)k=F.explicit;else if(F.implicit!==null)k=F.implicit;else if(F.tag!==null)k=F.tag;if(k===null&&!F.any){var x=C.save();try{if(F.choice===null)this._decodeGeneric(F.tag,C,M);else this._decodeChoice(C,M);S=!0}catch(Q0){S=!1}C.restore(x)}else if(S=this._peekTag(C,k,F.any),C.isError(S))return S}var f;if(F.obj&&S)f=C.enterObject();if(S){if(F.explicit!==null){var h=this._decodeTag(C,F.explicit);if(C.isError(h))return h;C=h}var c=C.offset;if(F.use===null&&F.choice===null){if(F.any)var x=C.save();var m=this._decodeTag(C,F.implicit!==null?F.implicit:F.tag,F.any);if(C.isError(m))return m;if(F.any)D=C.raw(x);else C=m}if(M&&M.track&&F.tag!==null)M.track(C.path(),c,C.length,"tagged");if(M&&M.track&&F.tag!==null)M.track(C.path(),C.offset,C.length,"content");if(F.any)D=D;else if(F.choice===null)D=this._decodeGeneric(F.tag,C,M);else D=this._decodeChoice(C,M);if(C.isError(D))return D;if(!F.any&&F.choice===null&&F.children!==null)F.children.forEach(function(Q0){Q0._decode(C,M)});if(F.contains&&(F.tag==="octstr"||F.tag==="bitstr")){var g=new O(D);D=this._getUse(F.contains,C._reporterState.obj)._decode(g,M)}}if(F.obj&&S)D=C.leaveObject(f);if(F.key!==null&&(D!==null||S===!0))C.leaveKey(P,F.key,D);else if(P!==null)C.exitKey(P);return D},E.prototype._decodeGeneric=function(C,M,F){var D=this._baseState;if(C==="seq"||C==="set")return null;if(C==="seqof"||C==="setof")return this._decodeList(M,C,D.args[0],F);else if(/str$/.test(C))return this._decodeStr(M,C,F);else if(C==="objid"&&D.args)return this._decodeObjid(M,D.args[0],D.args[1],F);else if(C==="objid")return this._decodeObjid(M,null,null,F);else if(C==="gentime"||C==="utctime")return this._decodeTime(M,C,F);else if(C==="null_")return this._decodeNull(M,F);else if(C==="bool")return this._decodeBool(M,F);else if(C==="objDesc")return this._decodeStr(M,C,F);else if(C==="int"||C==="enum")return this._decodeInt(M,D.args&&D.args[0],F);if(D.use!==null)return this._getUse(D.use,M._reporterState.obj)._decode(M,F);else return M.error("unknown tag: "+C)},E.prototype._getUse=function(C,M){var F=this._baseState;if(F.useDecoder=this._use(C,M),A(F.useDecoder._baseState.parent===null),F.useDecoder=F.useDecoder._baseState.children[0],F.implicit!==F.useDecoder._baseState.implicit)F.useDecoder=F.useDecoder.clone(),F.useDecoder._baseState.implicit=F.implicit;return F.useDecoder},E.prototype._decodeChoice=function(C,M){var F=this._baseState,D=null,S=!1;if(Object.keys(F.choice).some(function(P){var k=C.save(),x=F.choice[P];try{var f=x._decode(C,M);if(C.isError(f))return!1;D={type:P,value:f},S=!0}catch(h){return C.restore(k),!1}return!0},this),!S)return C.error("Choice not matched");return D},E.prototype._createEncoderBuffer=function(C){return new z(C,this.reporter)},E.prototype._encode=function(C,M,F){var D=this._baseState;if(D.default!==null&&D.default===C)return;var S=this._encodeValue(C,M,F);if(S===void 0)return;if(this._skipDefault(S,M,F))return;return S},E.prototype._encodeValue=function(C,M,F){var D=this._baseState;if(D.parent===null)return D.children[0]._encode(C,M||new V);var x=null;if(this.reporter=M,D.optional&&C===void 0)if(D.default!==null)C=D.default;else return;var S=null,P=!1;if(D.any)x=this._createEncoderBuffer(C);else if(D.choice)x=this._encodeChoice(C,M);else if(D.contains)S=this._getUse(D.contains,F)._encode(C,M),P=!0;else if(D.children)S=D.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,M,C);if(c._baseState.key===null)return M.error("Child should have a key");var m=M.enterKey(c._baseState.key);if(typeof C!=="object")return M.error("Child expected, but input is not object");var g=c._encode(C[c._baseState.key],M,C);return M.leaveKey(m),g},this).filter(function(c){return c}),S=this._createEncoderBuffer(S);else if(D.tag==="seqof"||D.tag==="setof"){if(!(D.args&&D.args.length===1))return M.error("Too many args for : "+D.tag);if(!Array.isArray(C))return M.error("seqof/setof, but data is not Array");var k=this.clone();k._baseState.implicit=null,S=this._createEncoderBuffer(C.map(function(c){var m=this._baseState;return this._getUse(m.args[0],C)._encode(c,M)},k))}else if(D.use!==null)x=this._getUse(D.use,F)._encode(C,M);else S=this._encodePrimitive(D.tag,C),P=!0;var x;if(!D.any&&D.choice===null){var f=D.implicit!==null?D.implicit:D.tag,h=D.implicit===null?"universal":"context";if(f===null){if(D.use===null)M.error("Tag could be omitted only for .use()")}else if(D.use===null)x=this._encodeComposite(f,P,h,S)}if(D.explicit!==null)x=this._encodeComposite(D.explicit,!1,"context",x);return x},E.prototype._encodeChoice=function(C,M){var F=this._baseState,D=F.choice[C.type];if(!D)A(!1,C.type+" not found in "+JSON.stringify(Object.keys(F.choice)));return D._encode(C.value,M)},E.prototype._encodePrimitive=function(C,M){var F=this._baseState;if(/str$/.test(C))return this._encodeStr(M,C);else if(C==="objid"&&F.args)return this._encodeObjid(M,F.reverseArgs[0],F.args[1]);else if(C==="objid")return this._encodeObjid(M,null,null);else if(C==="gentime"||C==="utctime")return this._encodeTime(M,C);else if(C==="null_")return this._encodeNull();else if(C==="int"||C==="enum")return this._encodeInt(M,F.args&&F.reverseArgs[0]);else if(C==="bool")return this._encodeBool(M);else if(C==="objDesc")return this._encodeStr(M,C);else throw Error("Unsupported tag: "+C)},E.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},E.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(C)}}),wQ=k0((Y)=>{var W=Y;W.Reporter=$O().Reporter,W.DecoderBuffer=hG().DecoderBuffer,W.EncoderBuffer=hG().EncoderBuffer,W.Node=HO()}),IO=k0((Y)=>{var W=XW();Y.tagClass={0:"universal",1:"application",2:"context",3:"private"},Y.tagClassByName=W._reverse(Y.tagClass),Y.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"},Y.tagByName=W._reverse(Y.tag)}),XW=k0((Y)=>{var W=Y;W._reverse=function(V){var z={};return Object.keys(V).forEach(function(O){if((O|0)==O)O=O|0;var A=V[O];z[A]=O}),z},W.der=IO()}),JW=k0((Y,W)=>{var V=UZ(),z=pQ(),O=z.base,A=z.bignum,G=z.constants.der;function v(C){this.enc="der",this.name=C.name,this.entity=C,this.tree=new j,this.tree._init(C.body)}W.exports=v,v.prototype.decode=function(C,M){if(!(C instanceof O.DecoderBuffer))C=new O.DecoderBuffer(C,M);return this.tree._decode(C,M)};function j(C){O.Node.call(this,"der",C)}V(j,O.Node),j.prototype._peekTag=function(C,M,F){if(C.isEmpty())return!1;var D=C.save(),S=E(C,'Failed to peek tag: "'+M+'"');if(C.isError(S))return S;return C.restore(D),S.tag===M||S.tagStr===M||S.tagStr+"of"===M||F},j.prototype._decodeTag=function(C,M,F){var D=E(C,'Failed to decode tag of "'+M+'"');if(C.isError(D))return D;var S=q(C,D.primitive,'Failed to get length of "'+M+'"');if(C.isError(S))return S;if(!F&&D.tag!==M&&D.tagStr!==M&&D.tagStr+"of"!==M)return C.error('Failed to match tag: "'+M+'"');if(D.primitive||S!==null)return C.skip(S,'Failed to match body of: "'+M+'"');var P=C.save(),k=this._skipUntilEnd(C,'Failed to skip indefinite length body: "'+this.tag+'"');if(C.isError(k))return k;return S=C.offset-P.offset,C.restore(P),C.skip(S,'Failed to match body of: "'+M+'"')},j.prototype._skipUntilEnd=function(C,M){while(!0){var F=E(C,M);if(C.isError(F))return F;var D=q(C,F.primitive,M);if(C.isError(D))return D;var S;if(F.primitive||D!==null)S=C.skip(D);else S=this._skipUntilEnd(C,M);if(C.isError(S))return S;if(F.tagStr==="end")break}},j.prototype._decodeList=function(C,M,F,D){var S=[];while(!C.isEmpty()){var P=this._peekTag(C,"end");if(C.isError(P))return P;var k=F.decode(C,"der",D);if(C.isError(k)&&P)break;S.push(k)}return S},j.prototype._decodeStr=function(C,M){if(M==="bitstr"){var F=C.readUInt8();if(C.isError(F))return F;return{unused:F,data:C.raw()}}else if(M==="bmpstr"){var D=C.raw();if(D.length%2===1)return C.error("Decoding of string type: bmpstr length mismatch");var S="";for(var P=0;P<D.length/2;P++)S+=String.fromCharCode(D.readUInt16BE(P*2));return S}else if(M==="numstr"){var k=C.raw().toString("ascii");if(!this._isNumstr(k))return C.error("Decoding of string type: numstr unsupported characters");return k}else if(M==="octstr")return C.raw();else if(M==="objDesc")return C.raw();else if(M==="printstr"){var x=C.raw().toString("ascii");if(!this._isPrintstr(x))return C.error("Decoding of string type: printstr unsupported characters");return x}else if(/str$/.test(M))return C.raw().toString();else return C.error("Decoding of string type: "+M+" unsupported")},j.prototype._decodeObjid=function(C,M,F){var D,S=[],P=0;while(!C.isEmpty()){var k=C.readUInt8();if(P<<=7,P|=k&127,(k&128)===0)S.push(P),P=0}if(k&128)S.push(P);var x=S[0]/40|0,f=S[0]%40;if(F)D=S;else D=[x,f].concat(S.slice(1));if(M){var h=M[D.join(" ")];if(h===void 0)h=M[D.join(".")];if(h!==void 0)D=h}return D},j.prototype._decodeTime=function(C,M){var F=C.raw().toString();if(M==="gentime")var D=F.slice(0,4)|0,S=F.slice(4,6)|0,P=F.slice(6,8)|0,k=F.slice(8,10)|0,x=F.slice(10,12)|0,f=F.slice(12,14)|0;else if(M==="utctime"){var D=F.slice(0,2)|0,S=F.slice(2,4)|0,P=F.slice(4,6)|0,k=F.slice(6,8)|0,x=F.slice(8,10)|0,f=F.slice(10,12)|0;if(D<70)D=2000+D;else D=1900+D}else return C.error("Decoding "+M+" time is not supported yet");return Date.UTC(D,S-1,P,k,x,f,0)},j.prototype._decodeNull=function(C){return null},j.prototype._decodeBool=function(C){var M=C.readUInt8();if(C.isError(M))return M;else return M!==0},j.prototype._decodeInt=function(C,M){var F=C.raw(),D=new A(F);if(M)D=M[D.toString(10)]||D;return D},j.prototype._use=function(C,M){if(typeof C==="function")C=C(M);return C._getDecoder("der").tree};function E(C,M){var F=C.readUInt8(M);if(C.isError(F))return F;var D=G.tagClass[F>>6],S=(F&32)===0;if((F&31)===31){var P=F;F=0;while((P&128)===128){if(P=C.readUInt8(M),C.isError(P))return P;F<<=7,F|=P&127}}else F&=31;var k=G.tag[F];return{cls:D,primitive:S,tag:F,tagStr:k}}function q(C,M,F){var D=C.readUInt8(F);if(C.isError(D))return D;if(!M&&D===128)return null;if((D&128)===0)return D;var S=D&127;if(S>4)return C.error("length octect is too long");D=0;for(var P=0;P<S;P++){D<<=8;var k=C.readUInt8(F);if(C.isError(k))return k;D|=k}return D}}),OO=k0((Y,W)=>{var V=UZ(),z=(lU(),WU(dU)).Buffer,O=JW();function A(G){O.call(this,G),this.enc="pem"}V(A,O),W.exports=A,A.prototype.decode=function(G,v){var j=G.toString().split(/[\r\n]+/g),E=v.label.toUpperCase(),q=/^-----(BEGIN|END) ([^-]+)-----$/,C=-1,M=-1;for(var F=0;F<j.length;F++){var D=j[F].match(q);if(D===null)continue;if(D[2]!==E)continue;if(C===-1){if(D[1]!=="BEGIN")break;C=F}else{if(D[1]!=="END")break;M=F;break}}if(C===-1||M===-1)throw Error("PEM section not found for: "+E);var S=j.slice(C+1,M).join("");S.replace(/[^a-z0-9\+\/=]+/gi,"");var P=new z(S,"base64");return O.prototype.decode.call(this,P,v)}}),FO=k0((Y)=>{var W=Y;W.der=JW(),W.pem=OO()}),YW=k0((Y,W)=>{var V=UZ(),z=(lU(),WU(dU)).Buffer,O=pQ(),A=O.base,G=O.constants.der;function v(C){this.enc="der",this.name=C.name,this.entity=C,this.tree=new j,this.tree._init(C.body)}W.exports=v,v.prototype.encode=function(C,M){return this.tree._encode(C,M).join()};function j(C){A.Node.call(this,"der",C)}V(j,A.Node),j.prototype._encodeComposite=function(C,M,F,D){var S=q(C,M,F,this.reporter);if(D.length<128){var x=new z(2);return x[0]=S,x[1]=D.length,this._createEncoderBuffer([x,D])}var P=1;for(var k=D.length;k>=256;k>>=8)P++;var x=new z(2+P);x[0]=S,x[1]=128|P;for(var k=1+P,f=D.length;f>0;k--,f>>=8)x[k]=f&255;return this._createEncoderBuffer([x,D])},j.prototype._encodeStr=function(C,M){if(M==="bitstr")return this._createEncoderBuffer([C.unused|0,C.data]);else if(M==="bmpstr"){var F=new z(C.length*2);for(var D=0;D<C.length;D++)F.writeUInt16BE(C.charCodeAt(D),D*2);return this._createEncoderBuffer(F)}else if(M==="numstr"){if(!this._isNumstr(C))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(C)}else if(M==="printstr"){if(!this._isPrintstr(C))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(C)}else if(/str$/.test(M))return this._createEncoderBuffer(C);else if(M==="objDesc")return this._createEncoderBuffer(C);else return this.reporter.error("Encoding of string type: "+M+" unsupported")},j.prototype._encodeObjid=function(C,M,F){if(typeof C==="string"){if(!M)return this.reporter.error("string objid given, but no values map found");if(!M.hasOwnProperty(C))return this.reporter.error("objid not found in values map");C=M[C].split(/[\s\.]+/g);for(var D=0;D<C.length;D++)C[D]|=0}else if(Array.isArray(C)){C=C.slice();for(var D=0;D<C.length;D++)C[D]|=0}if(!Array.isArray(C))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(C));if(!F){if(C[1]>=40)return this.reporter.error("Second objid identifier OOB");C.splice(0,2,C[0]*40+C[1])}var S=0;for(var D=0;D<C.length;D++){var P=C[D];for(S++;P>=128;P>>=7)S++}var k=new z(S),x=k.length-1;for(var D=C.length-1;D>=0;D--){var P=C[D];k[x--]=P&127;while((P>>=7)>0)k[x--]=128|P&127}return this._createEncoderBuffer(k)};function E(C){if(C<10)return"0"+C;else return C}j.prototype._encodeTime=function(C,M){var F,D=new Date(C);if(M==="gentime")F=[E(D.getFullYear()),E(D.getUTCMonth()+1),E(D.getUTCDate()),E(D.getUTCHours()),E(D.getUTCMinutes()),E(D.getUTCSeconds()),"Z"].join("");else if(M==="utctime")F=[E(D.getFullYear()%100),E(D.getUTCMonth()+1),E(D.getUTCDate()),E(D.getUTCHours()),E(D.getUTCMinutes()),E(D.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+M+" time is not supported yet");return this._encodeStr(F,"octstr")},j.prototype._encodeNull=function(){return this._createEncoderBuffer("")},j.prototype._encodeInt=function(C,M){if(typeof C==="string"){if(!M)return this.reporter.error("String int or enum given, but no values map");if(!M.hasOwnProperty(C))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(C));C=M[C]}if(typeof C!=="number"&&!z.isBuffer(C)){var F=C.toArray();if(!C.sign&&F[0]&128)F.unshift(0);C=new z(F)}if(z.isBuffer(C)){var D=C.length;if(C.length===0)D++;var P=new z(D);if(C.copy(P),C.length===0)P[0]=0;return this._createEncoderBuffer(P)}if(C<128)return this._createEncoderBuffer(C);if(C<256)return this._createEncoderBuffer([0,C]);var D=1;for(var S=C;S>=256;S>>=8)D++;var P=Array(D);for(var S=P.length-1;S>=0;S--)P[S]=C&255,C>>=8;if(P[0]&128)P.unshift(0);return this._createEncoderBuffer(new z(P))},j.prototype._encodeBool=function(C){return this._createEncoderBuffer(C?255:0)},j.prototype._use=function(C,M){if(typeof C==="function")C=C(M);return C._getEncoder("der").tree},j.prototype._skipDefault=function(C,M,F){var D=this._baseState,S;if(D.default===null)return!1;var P=C.join();if(D.defaultBuffer===void 0)D.defaultBuffer=this._encodeValue(D.default,M,F).join();if(P.length!==D.defaultBuffer.length)return!1;for(S=0;S<P.length;S++)if(P[S]!==D.defaultBuffer[S])return!1;return!0};function q(C,M,F,D){var S;if(C==="seqof")C="seq";else if(C==="setof")C="set";if(G.tagByName.hasOwnProperty(C))S=G.tagByName[C];else if(typeof C==="number"&&(C|0)===C)S=C;else return D.error("Unknown tag: "+C);if(S>=31)return D.error("Multi-octet tag encoding unsupported");if(!M)S|=32;return S|=G.tagClassByName[F||"universal"]<<6,S}}),zO=k0((Y,W)=>{var V=UZ(),z=YW();function O(A){z.call(this,A),this.enc="pem"}V(O,z),W.exports=O,O.prototype.encode=function(A,G){var v=z.prototype.encode.call(this,A),j=v.toString("base64"),E=["-----BEGIN "+G.label+"-----"];for(var q=0;q<j.length;q+=64)E.push(j.slice(q,q+64));return E.push("-----END "+G.label+"-----"),E.join(`
|
|
77
|
-
`)}}),CO=k0((Y)=>{var W=Y;W.der=YW(),W.pem=zO()}),pQ=k0((Y)=>{var W=Y;W.bignum=VO(),W.define=KO().define,W.base=wQ(),W.constants=XW(),W.decoders=FO(),W.encoders=CO()}),DO=k0((Y,W)=>{var V=pQ(),z=V.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),O=V.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),A=V.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),G=V.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(A),this.key("subjectPublicKey").bitstr())}),v=V.define("RelativeDistinguishedName",function(){this.setof(O)}),j=V.define("RDNSequence",function(){this.seqof(v)}),E=V.define("Name",function(){this.choice({rdnSequence:this.use(j)})}),q=V.define("Validity",function(){this.seq().obj(this.key("notBefore").use(z),this.key("notAfter").use(z))}),C=V.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),M=V.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(A),this.key("issuer").use(E),this.key("validity").use(q),this.key("subject").use(E),this.key("subjectPublicKeyInfo").use(G),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(C).optional())}),F=V.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(M),this.key("signatureAlgorithm").use(A),this.key("signatureValue").bitstr())});W.exports=F}),LO=k0((Y)=>{var W=pQ();Y.certificate=DO();var V=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())});Y.RSAPrivateKey=V;var z=W.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Y.RSAPublicKey=z;var O=W.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())}),A=W.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(O),this.key("subjectPublicKey").bitstr())});Y.PublicKey=A;var G=W.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(O),this.key("subjectPrivateKey").octstr())});Y.PrivateKey=G;var v=W.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())});Y.EncryptedPrivateKey=v;var j=W.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())});Y.DSAPrivateKey=j,Y.DSAparam=W.define("DSAparam",function(){this.int()});var E=W.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),q=W.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(E),this.key("publicKey").optional().explicit(1).bitstr())});Y.ECPrivateKey=q,Y.signature=W.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),MO=k0((Y,W)=>{W.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"}}),AO=k0((Y,W)=>{var V=nU().Buffer,z=P1().Transform,O=UZ();function A(E){z.call(this),this._block=V.allocUnsafe(E),this._blockSize=E,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}O(A,z),A.prototype._transform=function(E,q,C){var M=null;try{this.update(E,q)}catch(F){M=F}C(M)},A.prototype._flush=function(E){var q=null;try{this.push(this.digest())}catch(C){q=C}E(q)};var G=typeof Uint8Array<"u",v=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(V.prototype instanceof Uint8Array||V.TYPED_ARRAY_SUPPORT);function j(E,q){if(E instanceof V)return E;if(typeof E==="string")return V.from(E,q);if(v&&ArrayBuffer.isView(E)){if(E.byteLength===0)return V.alloc(0);var C=V.from(E.buffer,E.byteOffset,E.byteLength);if(C.byteLength===E.byteLength)return C}if(G&&E instanceof Uint8Array)return V.from(E);if(V.isBuffer(E)&&E.constructor&&typeof E.constructor.isBuffer==="function"&&E.constructor.isBuffer(E))return V.from(E);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}A.prototype.update=function(E,q){if(this._finalized)throw Error("Digest already called");E=j(E,q);var C=this._block,M=0;while(this._blockOffset+E.length-M>=this._blockSize){for(var F=this._blockOffset;F<this._blockSize;)C[F++]=E[M++];this._update(),this._blockOffset=0}while(M<E.length)C[this._blockOffset++]=E[M++];for(var D=0,S=E.length*8;S>0;++D)if(this._length[D]+=S,S=this._length[D]/4294967296|0,S>0)this._length[D]-=4294967296*S;return this},A.prototype._update=function(){throw Error("_update is not implemented")},A.prototype.digest=function(E){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var q=this._digest();if(E!==void 0)q=q.toString(E);this._block.fill(0),this._blockOffset=0;for(var C=0;C<4;++C)this._length[C]=0;return q},A.prototype._digest=function(){throw Error("_digest is not implemented")},W.exports=A}),qO=k0((Y,W)=>{var V=UZ(),z=AO(),O=nU().Buffer,A=Array(16);function G(){z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}V(G,z),G.prototype._update=function(){var M=A;for(var F=0;F<16;++F)M[F]=this._block.readInt32LE(F*4);var D=this._a,S=this._b,P=this._c,k=this._d;D=j(D,S,P,k,M[0],3614090360,7),k=j(k,D,S,P,M[1],3905402710,12),P=j(P,k,D,S,M[2],606105819,17),S=j(S,P,k,D,M[3],3250441966,22),D=j(D,S,P,k,M[4],4118548399,7),k=j(k,D,S,P,M[5],1200080426,12),P=j(P,k,D,S,M[6],2821735955,17),S=j(S,P,k,D,M[7],4249261313,22),D=j(D,S,P,k,M[8],1770035416,7),k=j(k,D,S,P,M[9],2336552879,12),P=j(P,k,D,S,M[10],4294925233,17),S=j(S,P,k,D,M[11],2304563134,22),D=j(D,S,P,k,M[12],1804603682,7),k=j(k,D,S,P,M[13],4254626195,12),P=j(P,k,D,S,M[14],2792965006,17),S=j(S,P,k,D,M[15],1236535329,22),D=E(D,S,P,k,M[1],4129170786,5),k=E(k,D,S,P,M[6],3225465664,9),P=E(P,k,D,S,M[11],643717713,14),S=E(S,P,k,D,M[0],3921069994,20),D=E(D,S,P,k,M[5],3593408605,5),k=E(k,D,S,P,M[10],38016083,9),P=E(P,k,D,S,M[15],3634488961,14),S=E(S,P,k,D,M[4],3889429448,20),D=E(D,S,P,k,M[9],568446438,5),k=E(k,D,S,P,M[14],3275163606,9),P=E(P,k,D,S,M[3],4107603335,14),S=E(S,P,k,D,M[8],1163531501,20),D=E(D,S,P,k,M[13],2850285829,5),k=E(k,D,S,P,M[2],4243563512,9),P=E(P,k,D,S,M[7],1735328473,14),S=E(S,P,k,D,M[12],2368359562,20),D=q(D,S,P,k,M[5],4294588738,4),k=q(k,D,S,P,M[8],2272392833,11),P=q(P,k,D,S,M[11],1839030562,16),S=q(S,P,k,D,M[14],4259657740,23),D=q(D,S,P,k,M[1],2763975236,4),k=q(k,D,S,P,M[4],1272893353,11),P=q(P,k,D,S,M[7],4139469664,16),S=q(S,P,k,D,M[10],3200236656,23),D=q(D,S,P,k,M[13],681279174,4),k=q(k,D,S,P,M[0],3936430074,11),P=q(P,k,D,S,M[3],3572445317,16),S=q(S,P,k,D,M[6],76029189,23),D=q(D,S,P,k,M[9],3654602809,4),k=q(k,D,S,P,M[12],3873151461,11),P=q(P,k,D,S,M[15],530742520,16),S=q(S,P,k,D,M[2],3299628645,23),D=C(D,S,P,k,M[0],4096336452,6),k=C(k,D,S,P,M[7],1126891415,10),P=C(P,k,D,S,M[14],2878612391,15),S=C(S,P,k,D,M[5],4237533241,21),D=C(D,S,P,k,M[12],1700485571,6),k=C(k,D,S,P,M[3],2399980690,10),P=C(P,k,D,S,M[10],4293915773,15),S=C(S,P,k,D,M[1],2240044497,21),D=C(D,S,P,k,M[8],1873313359,6),k=C(k,D,S,P,M[15],4264355552,10),P=C(P,k,D,S,M[6],2734768916,15),S=C(S,P,k,D,M[13],1309151649,21),D=C(D,S,P,k,M[4],4149444226,6),k=C(k,D,S,P,M[11],3174756917,10),P=C(P,k,D,S,M[2],718787259,15),S=C(S,P,k,D,M[9],3951481745,21),this._a=this._a+D|0,this._b=this._b+S|0,this._c=this._c+P|0,this._d=this._d+k|0},G.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 M=O.allocUnsafe(16);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M};function v(M,F){return M<<F|M>>>32-F}function j(M,F,D,S,P,k,x){return v(M+(F&D|~F&S)+P+k|0,x)+F|0}function E(M,F,D,S,P,k,x){return v(M+(F&S|D&~S)+P+k|0,x)+F|0}function q(M,F,D,S,P,k,x){return v(M+(F^D^S)+P+k|0,x)+F|0}function C(M,F,D,S,P,k,x){return v(M+(D^(F|~S))+P+k|0,x)+F|0}W.exports=G}),TO=k0((Y,W)=>{var V=nU().Buffer,z=qO();function O(A,G,v,j){if(!V.isBuffer(A))A=V.from(A,"binary");if(G){if(!V.isBuffer(G))G=V.from(G,"binary");if(G.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var E=v/8,q=V.alloc(E),C=V.alloc(j||0),M=V.alloc(0);while(E>0||j>0){var F=new z;if(F.update(M),F.update(A),G)F.update(G);M=F.digest();var D=0;if(E>0){var S=q.length-E;D=Math.min(E,M.length),M.copy(q,S,0,D),E-=D}if(D<M.length&&j>0){var P=C.length-j,k=Math.min(j,M.length-D);M.copy(C,P,D,D+k),j-=k}}return M.fill(0),{key:q,iv:C}}W.exports=O}),GW=k0((Y)=>{var W=(tU(),WU(aU));Y.createCipher=Y.Cipher=W.createCipher,Y.createCipheriv=Y.Cipheriv=W.createCipheriv,Y.createDecipher=Y.Decipher=W.createDecipher,Y.createDecipheriv=Y.Decipheriv=W.createDecipheriv,Y.listCiphers=Y.getCiphers=W.getCiphers}),RO=k0((Y,W)=>{var V=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,O=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,A=TO(),G=GW(),v=nU().Buffer;W.exports=function(j,E){var q=j.toString(),C=q.match(V),M;if(!C){var F=q.match(O);M=v.from(F[2].replace(/[\r\n]/g,""),"base64")}else{var D="aes"+C[1],S=v.from(C[2],"hex"),P=v.from(C[3].replace(/[\r\n]/g,""),"base64"),k=A(E,S.slice(0,8),parseInt(C[1],10)).key,x=[],f=G.createDecipheriv(D,k,S);x.push(f.update(P)),x.push(f.final()),M=v.concat(x)}var h=q.match(z)[1];return{tag:h,data:M}}}),WW=k0((Y,W)=>{var V=LO(),z=MO(),O=RO(),A=GW(),G=aG().pbkdf2Sync,v=nU().Buffer;function j(q,C){var M=q.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(q.algorithm.decrypt.kde.kdeparams.iters.toString(),10),D=z[q.algorithm.decrypt.cipher.algo.join(".")],S=q.algorithm.decrypt.cipher.iv,P=q.subjectPrivateKey,k=parseInt(D.split("-")[1],10)/8,x=G(C,M,F,k,"sha1"),f=A.createDecipheriv(D,x,S),h=[];return h.push(f.update(P)),h.push(f.final()),v.concat(h)}function E(q){var C;if(typeof q==="object"&&!v.isBuffer(q))C=q.passphrase,q=q.key;if(typeof q==="string")q=v.from(q);var M=O(q,C),F=M.tag,D=M.data,S,P;switch(F){case"CERTIFICATE":P=V.certificate.decode(D,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!P)P=V.PublicKey.decode(D,"der");switch(S=P.algorithm.algorithm.join("."),S){case"1.2.840.113549.1.1.1":return V.RSAPublicKey.decode(P.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return P.subjectPrivateKey=P.subjectPublicKey,{type:"ec",data:P};case"1.2.840.10040.4.1":return P.algorithm.params.pub_key=V.DSAparam.decode(P.subjectPublicKey.data,"der"),{type:"dsa",data:P.algorithm.params};default:throw Error("unknown key id "+S)}case"ENCRYPTED PRIVATE KEY":D=V.EncryptedPrivateKey.decode(D,"der"),D=j(D,C);case"PRIVATE KEY":switch(P=V.PrivateKey.decode(D,"der"),S=P.algorithm.algorithm.join("."),S){case"1.2.840.113549.1.1.1":return V.RSAPrivateKey.decode(P.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:P.algorithm.curve,privateKey:V.ECPrivateKey.decode(P.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return P.algorithm.params.priv_key=V.DSAparam.decode(P.subjectPrivateKey,"der"),{type:"dsa",params:P.algorithm.params};default:throw Error("unknown key id "+S)}case"RSA PUBLIC KEY":return V.RSAPublicKey.decode(D,"der");case"RSA PRIVATE KEY":return V.RSAPrivateKey.decode(D,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:V.DSAPrivateKey.decode(D,"der")};case"EC PRIVATE KEY":return D=V.ECPrivateKey.decode(D,"der"),{curve:D.parameters.value,privateKey:D.privateKey};default:throw Error("unknown key type "+F)}}E.signature=V.signature,W.exports=E}),VW=k0((Y,W)=>{var V=CX(),z=nU().Buffer;W.exports=function(A,G){var v=z.alloc(0),j=0,E;while(v.length<G)E=O(j++),v=z.concat([v,V("sha1").update(A).update(E).digest()]);return v.slice(0,G)};function O(A){var G=z.allocUnsafe(4);return G.writeUInt32BE(A,0),G}}),KW=k0((Y,W)=>{W.exports=function(V,z){var O=V.length,A=-1;while(++A<O)V[A]^=z[A];return V}}),f1=k0((Y,W)=>{(function(V,z){function O(U,X){if(!U)throw Error(X||"Assertion failed")}function A(U,X){U.super_=X;var $=function(){};$.prototype=X.prototype,U.prototype=new $,U.prototype.constructor=U}function G(U,X,$){if(G.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(X==="le"||X==="be")$=X,X=10;this._init(U||0,X||10,$||"be")}}if(typeof V==="object")V.exports=G;else z.BN=G;G.BN=G,G.wordSize=26;var v;try{if(typeof window<"u"&&typeof window.Buffer<"u")v=window.Buffer;else v=(lU(),WU(dU)).Buffer}catch(U){}G.isBN=function(U){if(U instanceof G)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===G.wordSize&&Array.isArray(U.words)},G.max=function(U,X){if(U.cmp(X)>0)return U;return X},G.min=function(U,X){if(U.cmp(X)<0)return U;return X},G.prototype._init=function(U,X,$){if(typeof U==="number")return this._initNumber(U,X,$);if(typeof U==="object")return this._initArray(U,X,$);if(X==="hex")X=16;O(X===(X|0)&&X>=2&&X<=36),U=U.toString().replace(/\s+/g,"");var Q=0;if(U[0]==="-")Q++,this.negative=1;if(Q<U.length){if(X===16)this._parseHex(U,Q,$);else if(this._parseBase(U,X,Q),$==="le")this._initArray(this.toArray(),X,$)}},G.prototype._initNumber=function(U,X,$){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 O(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if($!=="le")return;this._initArray(this.toArray(),X,$)},G.prototype._initArray=function(U,X,$){if(O(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 Q=0;Q<this.length;Q++)this.words[Q]=0;var K,L,T=0;if($==="be"){for(Q=U.length-1,K=0;Q>=0;Q-=3)if(L=U[Q]|U[Q-1]<<8|U[Q-2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}else if($==="le"){for(Q=0,K=0;Q<U.length;Q+=3)if(L=U[Q]|U[Q+1]<<8|U[Q+2]<<16,this.words[K]|=L<<T&67108863,this.words[K+1]=L>>>26-T&67108863,T+=24,T>=26)T-=26,K++}return this.strip()};function j(U,X){var $=U.charCodeAt(X);if($>=65&&$<=70)return $-55;else if($>=97&&$<=102)return $-87;else return $-48&15}function E(U,X,$){var Q=j(U,$);if($-1>=X)Q|=j(U,$-1)<<4;return Q}G.prototype._parseHex=function(U,X,$){this.length=Math.ceil((U.length-X)/6),this.words=Array(this.length);for(var Q=0;Q<this.length;Q++)this.words[Q]=0;var K=0,L=0,T;if($==="be")for(Q=U.length-1;Q>=X;Q-=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8;else{var I=U.length-X;for(Q=I%2===0?X+1:X;Q<U.length;Q+=2)if(T=E(U,X,Q)<<K,this.words[L]|=T&67108863,K>=18)K-=18,L+=1,this.words[L]|=T>>>26;else K+=8}this.strip()};function q(U,X,$,Q){var K=0,L=Math.min(U.length,$);for(var T=X;T<L;T++){var I=U.charCodeAt(T)-48;if(K*=Q,I>=49)K+=I-49+10;else if(I>=17)K+=I-17+10;else K+=I}return K}G.prototype._parseBase=function(U,X,$){this.words=[0],this.length=1;for(var Q=0,K=1;K<=67108863;K*=X)Q++;Q--,K=K/X|0;var L=U.length-$,T=L%Q,I=Math.min(L,L-T)+$,Z=0;for(var H=$;H<I;H+=Q)if(Z=q(U,H,H+Q,X),this.imuln(K),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(T!==0){var N=1;Z=q(U,H,U.length,X);for(H=0;H<T;H++)N*=X;if(this.imuln(N),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},G.prototype.copy=function(U){U.words=Array(this.length);for(var X=0;X<this.length;X++)U.words[X]=this.words[X];U.length=this.length,U.negative=this.negative,U.red=this.red},G.prototype.clone=function(){var U=new G(null);return this.copy(U),U},G.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},G.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},G.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(G.prototype.toString=function(U,X){U=U||10,X=X|0||1;var $;if(U===16||U==="hex"){$="";var Q=0,K=0;for(var L=0;L<this.length;L++){var T=this.words[L],I=((T<<Q|K)&16777215).toString(16);if(K=T>>>24-Q&16777215,Q+=2,Q>=26)Q-=26,L--;if(K!==0||L!==this.length-1)$=C[6-I.length]+I+$;else $=I+$}if(K!==0)$=K.toString(16)+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}if(U===(U|0)&&U>=2&&U<=36){var Z=M[U],H=F[U];$="";var N=this.clone();N.negative=0;while(!N.isZero()){var B=N.modn(H).toString(U);if(N=N.idivn(H),!N.isZero())$=C[Z-B.length]+B+$;else $=B+$}if(this.isZero())$="0"+$;while($.length%X!==0)$="0"+$;if(this.negative!==0)$="-"+$;return $}O(!1,"Base should be between 2 and 36")},G.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)O(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(U,X){return O(typeof v<"u"),this.toArrayLike(v,U,X)},G.prototype.toArray=function(U,X){return this.toArrayLike(Array,U,X)},G.prototype.toArrayLike=function(U,X,$){var Q=this.byteLength(),K=$||Math.max(1,Q);O(Q<=K,"byte array longer than desired length"),O(K>0,"Requested array length <= 0"),this.strip();var L=X==="le",T=new U(K),I,Z,H=this.clone();if(!L){for(Z=0;Z<K-Q;Z++)T[Z]=0;for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[K-Z-1]=I}else{for(Z=0;!H.isZero();Z++)I=H.andln(255),H.iushrn(8),T[Z]=I;for(;Z<K;Z++)T[Z]=0}return T},Math.clz32)G.prototype._countBits=function(U){return 32-Math.clz32(U)};else G.prototype._countBits=function(U){var X=U,$=0;if(X>=4096)$+=13,X>>>=13;if(X>=64)$+=7,X>>>=7;if(X>=8)$+=4,X>>>=4;if(X>=2)$+=2,X>>>=2;return $+X};G.prototype._zeroBits=function(U){if(U===0)return 26;var X=U,$=0;if((X&8191)===0)$+=13,X>>>=13;if((X&127)===0)$+=7,X>>>=7;if((X&15)===0)$+=4,X>>>=4;if((X&3)===0)$+=2,X>>>=2;if((X&1)===0)$++;return $},G.prototype.bitLength=function(){var U=this.words[this.length-1],X=this._countBits(U);return(this.length-1)*26+X};function D(U){var X=Array(U.bitLength());for(var $=0;$<X.length;$++){var Q=$/26|0,K=$%26;X[$]=(U.words[Q]&1<<K)>>>K}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var X=0;X<this.length;X++){var $=this._zeroBits(this.words[X]);if(U+=$,$!==26)break}return U},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},G.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},G.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var X=0;X<U.length;X++)this.words[X]=this.words[X]|U.words[X];return this.strip()},G.prototype.ior=function(U){return O((this.negative|U.negative)===0),this.iuor(U)},G.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},G.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},G.prototype.iuand=function(U){var X;if(this.length>U.length)X=U;else X=this;for(var $=0;$<X.length;$++)this.words[$]=this.words[$]&U.words[$];return this.length=X.length,this.strip()},G.prototype.iand=function(U){return O((this.negative|U.negative)===0),this.iuand(U)},G.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},G.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},G.prototype.iuxor=function(U){var X,$;if(this.length>U.length)X=this,$=U;else X=U,$=this;for(var Q=0;Q<$.length;Q++)this.words[Q]=X.words[Q]^$.words[Q];if(this!==X)for(;Q<X.length;Q++)this.words[Q]=X.words[Q];return this.length=X.length,this.strip()},G.prototype.ixor=function(U){return O((this.negative|U.negative)===0),this.iuxor(U)},G.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},G.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},G.prototype.inotn=function(U){O(typeof U==="number"&&U>=0);var X=Math.ceil(U/26)|0,$=U%26;if(this._expand(X),$>0)X--;for(var Q=0;Q<X;Q++)this.words[Q]=~this.words[Q]&67108863;if($>0)this.words[Q]=~this.words[Q]&67108863>>26-$;return this.strip()},G.prototype.notn=function(U){return this.clone().inotn(U)},G.prototype.setn=function(U,X){O(typeof U==="number"&&U>=0);var $=U/26|0,Q=U%26;if(this._expand($+1),X)this.words[$]=this.words[$]|1<<Q;else this.words[$]=this.words[$]&~(1<<Q);return this.strip()},G.prototype.iadd=function(U){var X;if(this.negative!==0&&U.negative===0)return this.negative=0,X=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,X=this.isub(U),U.negative=1,X._normSign();var $,Q;if(this.length>U.length)$=this,Q=U;else $=U,Q=this;var K=0;for(var L=0;L<Q.length;L++)X=($.words[L]|0)+(Q.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;for(;K!==0&&L<$.length;L++)X=($.words[L]|0)+K,this.words[L]=X&67108863,K=X>>>26;if(this.length=$.length,K!==0)this.words[this.length]=K,this.length++;else if($!==this)for(;L<$.length;L++)this.words[L]=$.words[L];return this},G.prototype.add=function(U){var X;if(U.negative!==0&&this.negative===0)return U.negative=0,X=this.sub(U),U.negative^=1,X;else if(U.negative===0&&this.negative!==0)return this.negative=0,X=U.sub(this),this.negative=1,X;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},G.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var X=this.iadd(U);return U.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var $=this.cmp(U);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Q,K;if($>0)Q=this,K=U;else Q=U,K=this;var L=0;for(var T=0;T<K.length;T++)X=(Q.words[T]|0)-(K.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;for(;L!==0&&T<Q.length;T++)X=(Q.words[T]|0)+L,L=X>>26,this.words[T]=X&67108863;if(L===0&&T<Q.length&&Q!==this)for(;T<Q.length;T++)this.words[T]=Q.words[T];if(this.length=Math.max(this.length,T),Q!==this)this.negative=1;return this.strip()},G.prototype.sub=function(U){return this.clone().isub(U)};function S(U,X,$){$.negative=X.negative^U.negative;var Q=U.length+X.length|0;$.length=Q,Q=Q-1|0;var K=U.words[0]|0,L=X.words[0]|0,T=K*L,I=T&67108863,Z=T/67108864|0;$.words[0]=I;for(var H=1;H<Q;H++){var N=Z>>>26,B=Z&67108863,w=Math.min(H,X.length-1);for(var u=Math.max(0,H-U.length+1);u<=w;u++){var s=H-u|0;K=U.words[s]|0,L=X.words[u]|0,T=K*L+B,N+=T/67108864|0,B=T&67108863}$.words[H]=B|0,Z=N|0}if(Z!==0)$.words[H]=Z|0;else $.length--;return $.strip()}var P=function(U,X,$){var Q=U.words,K=X.words,L=$.words,T=0,I,Z,H,N=Q[0]|0,B=N&8191,w=N>>>13,u=Q[1]|0,s=u&8191,Y0=u>>>13,M0=Q[2]|0,n=M0&8191,b=M0>>>13,a=Q[3]|0,l=a&8191,G0=a>>>13,A0=Q[4]|0,o=A0&8191,t=A0>>>13,V0=Q[5]|0,z0=V0&8191,U0=V0>>>13,x0=Q[6]|0,e=x0&8191,H0=x0>>>13,p0=Q[7]|0,F0=p0&8191,D0=p0>>>13,i0=Q[8]|0,i=i0&8191,W0=i0>>>13,v0=Q[9]|0,q0=v0&8191,S0=v0>>>13,e0=K[0]|0,j0=e0&8191,B0=e0>>>13,XU=K[1]|0,_0=XU&8191,g0=XU>>>13,MU=K[2]|0,c0=MU&8191,K0=MU>>>13,E0=K[3]|0,C0=E0&8191,N0=E0>>>13,IU=K[4]|0,u0=IU&8191,d0=IU>>>13,xU=K[5]|0,m0=xU&8191,d=xU>>>13,$0=K[6]|0,L0=$0&8191,R0=$0>>>13,r0=K[7]|0,y0=r0&8191,T0=r0>>>13,AU=K[8]|0,b0=AU&8191,n0=AU>>>13,pU=K[9]|0,o0=pU&8191,l0=pU>>>13;$.negative=U.negative^X.negative,$.length=19,I=Math.imul(B,j0),Z=Math.imul(B,B0),Z=Z+Math.imul(w,j0)|0,H=Math.imul(w,B0);var PU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(PU>>>26)|0,PU&=67108863,I=Math.imul(s,j0),Z=Math.imul(s,B0),Z=Z+Math.imul(Y0,j0)|0,H=Math.imul(Y0,B0),I=I+Math.imul(B,_0)|0,Z=Z+Math.imul(B,g0)|0,Z=Z+Math.imul(w,_0)|0,H=H+Math.imul(w,g0)|0;var JU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(JU>>>26)|0,JU&=67108863,I=Math.imul(n,j0),Z=Math.imul(n,B0),Z=Z+Math.imul(b,j0)|0,H=Math.imul(b,B0),I=I+Math.imul(s,_0)|0,Z=Z+Math.imul(s,g0)|0,Z=Z+Math.imul(Y0,_0)|0,H=H+Math.imul(Y0,g0)|0,I=I+Math.imul(B,c0)|0,Z=Z+Math.imul(B,K0)|0,Z=Z+Math.imul(w,c0)|0,H=H+Math.imul(w,K0)|0;var YU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(YU>>>26)|0,YU&=67108863,I=Math.imul(l,j0),Z=Math.imul(l,B0),Z=Z+Math.imul(G0,j0)|0,H=Math.imul(G0,B0),I=I+Math.imul(n,_0)|0,Z=Z+Math.imul(n,g0)|0,Z=Z+Math.imul(b,_0)|0,H=H+Math.imul(b,g0)|0,I=I+Math.imul(s,c0)|0,Z=Z+Math.imul(s,K0)|0,Z=Z+Math.imul(Y0,c0)|0,H=H+Math.imul(Y0,K0)|0,I=I+Math.imul(B,C0)|0,Z=Z+Math.imul(B,N0)|0,Z=Z+Math.imul(w,C0)|0,H=H+Math.imul(w,N0)|0;var zU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(zU>>>26)|0,zU&=67108863,I=Math.imul(o,j0),Z=Math.imul(o,B0),Z=Z+Math.imul(t,j0)|0,H=Math.imul(t,B0),I=I+Math.imul(l,_0)|0,Z=Z+Math.imul(l,g0)|0,Z=Z+Math.imul(G0,_0)|0,H=H+Math.imul(G0,g0)|0,I=I+Math.imul(n,c0)|0,Z=Z+Math.imul(n,K0)|0,Z=Z+Math.imul(b,c0)|0,H=H+Math.imul(b,K0)|0,I=I+Math.imul(s,C0)|0,Z=Z+Math.imul(s,N0)|0,Z=Z+Math.imul(Y0,C0)|0,H=H+Math.imul(Y0,N0)|0,I=I+Math.imul(B,u0)|0,Z=Z+Math.imul(B,d0)|0,Z=Z+Math.imul(w,u0)|0,H=H+Math.imul(w,d0)|0;var FU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,I=Math.imul(z0,j0),Z=Math.imul(z0,B0),Z=Z+Math.imul(U0,j0)|0,H=Math.imul(U0,B0),I=I+Math.imul(o,_0)|0,Z=Z+Math.imul(o,g0)|0,Z=Z+Math.imul(t,_0)|0,H=H+Math.imul(t,g0)|0,I=I+Math.imul(l,c0)|0,Z=Z+Math.imul(l,K0)|0,Z=Z+Math.imul(G0,c0)|0,H=H+Math.imul(G0,K0)|0,I=I+Math.imul(n,C0)|0,Z=Z+Math.imul(n,N0)|0,Z=Z+Math.imul(b,C0)|0,H=H+Math.imul(b,N0)|0,I=I+Math.imul(s,u0)|0,Z=Z+Math.imul(s,d0)|0,Z=Z+Math.imul(Y0,u0)|0,H=H+Math.imul(Y0,d0)|0,I=I+Math.imul(B,m0)|0,Z=Z+Math.imul(B,d)|0,Z=Z+Math.imul(w,m0)|0,H=H+Math.imul(w,d)|0;var jU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,I=Math.imul(e,j0),Z=Math.imul(e,B0),Z=Z+Math.imul(H0,j0)|0,H=Math.imul(H0,B0),I=I+Math.imul(z0,_0)|0,Z=Z+Math.imul(z0,g0)|0,Z=Z+Math.imul(U0,_0)|0,H=H+Math.imul(U0,g0)|0,I=I+Math.imul(o,c0)|0,Z=Z+Math.imul(o,K0)|0,Z=Z+Math.imul(t,c0)|0,H=H+Math.imul(t,K0)|0,I=I+Math.imul(l,C0)|0,Z=Z+Math.imul(l,N0)|0,Z=Z+Math.imul(G0,C0)|0,H=H+Math.imul(G0,N0)|0,I=I+Math.imul(n,u0)|0,Z=Z+Math.imul(n,d0)|0,Z=Z+Math.imul(b,u0)|0,H=H+Math.imul(b,d0)|0,I=I+Math.imul(s,m0)|0,Z=Z+Math.imul(s,d)|0,Z=Z+Math.imul(Y0,m0)|0,H=H+Math.imul(Y0,d)|0,I=I+Math.imul(B,L0)|0,Z=Z+Math.imul(B,R0)|0,Z=Z+Math.imul(w,L0)|0,H=H+Math.imul(w,R0)|0;var ZU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,I=Math.imul(F0,j0),Z=Math.imul(F0,B0),Z=Z+Math.imul(D0,j0)|0,H=Math.imul(D0,B0),I=I+Math.imul(e,_0)|0,Z=Z+Math.imul(e,g0)|0,Z=Z+Math.imul(H0,_0)|0,H=H+Math.imul(H0,g0)|0,I=I+Math.imul(z0,c0)|0,Z=Z+Math.imul(z0,K0)|0,Z=Z+Math.imul(U0,c0)|0,H=H+Math.imul(U0,K0)|0,I=I+Math.imul(o,C0)|0,Z=Z+Math.imul(o,N0)|0,Z=Z+Math.imul(t,C0)|0,H=H+Math.imul(t,N0)|0,I=I+Math.imul(l,u0)|0,Z=Z+Math.imul(l,d0)|0,Z=Z+Math.imul(G0,u0)|0,H=H+Math.imul(G0,d0)|0,I=I+Math.imul(n,m0)|0,Z=Z+Math.imul(n,d)|0,Z=Z+Math.imul(b,m0)|0,H=H+Math.imul(b,d)|0,I=I+Math.imul(s,L0)|0,Z=Z+Math.imul(s,R0)|0,Z=Z+Math.imul(Y0,L0)|0,H=H+Math.imul(Y0,R0)|0,I=I+Math.imul(B,y0)|0,Z=Z+Math.imul(B,T0)|0,Z=Z+Math.imul(w,y0)|0,H=H+Math.imul(w,T0)|0;var NU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(NU>>>26)|0,NU&=67108863,I=Math.imul(i,j0),Z=Math.imul(i,B0),Z=Z+Math.imul(W0,j0)|0,H=Math.imul(W0,B0),I=I+Math.imul(F0,_0)|0,Z=Z+Math.imul(F0,g0)|0,Z=Z+Math.imul(D0,_0)|0,H=H+Math.imul(D0,g0)|0,I=I+Math.imul(e,c0)|0,Z=Z+Math.imul(e,K0)|0,Z=Z+Math.imul(H0,c0)|0,H=H+Math.imul(H0,K0)|0,I=I+Math.imul(z0,C0)|0,Z=Z+Math.imul(z0,N0)|0,Z=Z+Math.imul(U0,C0)|0,H=H+Math.imul(U0,N0)|0,I=I+Math.imul(o,u0)|0,Z=Z+Math.imul(o,d0)|0,Z=Z+Math.imul(t,u0)|0,H=H+Math.imul(t,d0)|0,I=I+Math.imul(l,m0)|0,Z=Z+Math.imul(l,d)|0,Z=Z+Math.imul(G0,m0)|0,H=H+Math.imul(G0,d)|0,I=I+Math.imul(n,L0)|0,Z=Z+Math.imul(n,R0)|0,Z=Z+Math.imul(b,L0)|0,H=H+Math.imul(b,R0)|0,I=I+Math.imul(s,y0)|0,Z=Z+Math.imul(s,T0)|0,Z=Z+Math.imul(Y0,y0)|0,H=H+Math.imul(Y0,T0)|0,I=I+Math.imul(B,b0)|0,Z=Z+Math.imul(B,n0)|0,Z=Z+Math.imul(w,b0)|0,H=H+Math.imul(w,n0)|0;var vU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(vU>>>26)|0,vU&=67108863,I=Math.imul(q0,j0),Z=Math.imul(q0,B0),Z=Z+Math.imul(S0,j0)|0,H=Math.imul(S0,B0),I=I+Math.imul(i,_0)|0,Z=Z+Math.imul(i,g0)|0,Z=Z+Math.imul(W0,_0)|0,H=H+Math.imul(W0,g0)|0,I=I+Math.imul(F0,c0)|0,Z=Z+Math.imul(F0,K0)|0,Z=Z+Math.imul(D0,c0)|0,H=H+Math.imul(D0,K0)|0,I=I+Math.imul(e,C0)|0,Z=Z+Math.imul(e,N0)|0,Z=Z+Math.imul(H0,C0)|0,H=H+Math.imul(H0,N0)|0,I=I+Math.imul(z0,u0)|0,Z=Z+Math.imul(z0,d0)|0,Z=Z+Math.imul(U0,u0)|0,H=H+Math.imul(U0,d0)|0,I=I+Math.imul(o,m0)|0,Z=Z+Math.imul(o,d)|0,Z=Z+Math.imul(t,m0)|0,H=H+Math.imul(t,d)|0,I=I+Math.imul(l,L0)|0,Z=Z+Math.imul(l,R0)|0,Z=Z+Math.imul(G0,L0)|0,H=H+Math.imul(G0,R0)|0,I=I+Math.imul(n,y0)|0,Z=Z+Math.imul(n,T0)|0,Z=Z+Math.imul(b,y0)|0,H=H+Math.imul(b,T0)|0,I=I+Math.imul(s,b0)|0,Z=Z+Math.imul(s,n0)|0,Z=Z+Math.imul(Y0,b0)|0,H=H+Math.imul(Y0,n0)|0,I=I+Math.imul(B,o0)|0,Z=Z+Math.imul(B,l0)|0,Z=Z+Math.imul(w,o0)|0,H=H+Math.imul(w,l0)|0;var qU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,I=Math.imul(q0,_0),Z=Math.imul(q0,g0),Z=Z+Math.imul(S0,_0)|0,H=Math.imul(S0,g0),I=I+Math.imul(i,c0)|0,Z=Z+Math.imul(i,K0)|0,Z=Z+Math.imul(W0,c0)|0,H=H+Math.imul(W0,K0)|0,I=I+Math.imul(F0,C0)|0,Z=Z+Math.imul(F0,N0)|0,Z=Z+Math.imul(D0,C0)|0,H=H+Math.imul(D0,N0)|0,I=I+Math.imul(e,u0)|0,Z=Z+Math.imul(e,d0)|0,Z=Z+Math.imul(H0,u0)|0,H=H+Math.imul(H0,d0)|0,I=I+Math.imul(z0,m0)|0,Z=Z+Math.imul(z0,d)|0,Z=Z+Math.imul(U0,m0)|0,H=H+Math.imul(U0,d)|0,I=I+Math.imul(o,L0)|0,Z=Z+Math.imul(o,R0)|0,Z=Z+Math.imul(t,L0)|0,H=H+Math.imul(t,R0)|0,I=I+Math.imul(l,y0)|0,Z=Z+Math.imul(l,T0)|0,Z=Z+Math.imul(G0,y0)|0,H=H+Math.imul(G0,T0)|0,I=I+Math.imul(n,b0)|0,Z=Z+Math.imul(n,n0)|0,Z=Z+Math.imul(b,b0)|0,H=H+Math.imul(b,n0)|0,I=I+Math.imul(s,o0)|0,Z=Z+Math.imul(s,l0)|0,Z=Z+Math.imul(Y0,o0)|0,H=H+Math.imul(Y0,l0)|0;var OU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(OU>>>26)|0,OU&=67108863,I=Math.imul(q0,c0),Z=Math.imul(q0,K0),Z=Z+Math.imul(S0,c0)|0,H=Math.imul(S0,K0),I=I+Math.imul(i,C0)|0,Z=Z+Math.imul(i,N0)|0,Z=Z+Math.imul(W0,C0)|0,H=H+Math.imul(W0,N0)|0,I=I+Math.imul(F0,u0)|0,Z=Z+Math.imul(F0,d0)|0,Z=Z+Math.imul(D0,u0)|0,H=H+Math.imul(D0,d0)|0,I=I+Math.imul(e,m0)|0,Z=Z+Math.imul(e,d)|0,Z=Z+Math.imul(H0,m0)|0,H=H+Math.imul(H0,d)|0,I=I+Math.imul(z0,L0)|0,Z=Z+Math.imul(z0,R0)|0,Z=Z+Math.imul(U0,L0)|0,H=H+Math.imul(U0,R0)|0,I=I+Math.imul(o,y0)|0,Z=Z+Math.imul(o,T0)|0,Z=Z+Math.imul(t,y0)|0,H=H+Math.imul(t,T0)|0,I=I+Math.imul(l,b0)|0,Z=Z+Math.imul(l,n0)|0,Z=Z+Math.imul(G0,b0)|0,H=H+Math.imul(G0,n0)|0,I=I+Math.imul(n,o0)|0,Z=Z+Math.imul(n,l0)|0,Z=Z+Math.imul(b,o0)|0,H=H+Math.imul(b,l0)|0;var _U=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,I=Math.imul(q0,C0),Z=Math.imul(q0,N0),Z=Z+Math.imul(S0,C0)|0,H=Math.imul(S0,N0),I=I+Math.imul(i,u0)|0,Z=Z+Math.imul(i,d0)|0,Z=Z+Math.imul(W0,u0)|0,H=H+Math.imul(W0,d0)|0,I=I+Math.imul(F0,m0)|0,Z=Z+Math.imul(F0,d)|0,Z=Z+Math.imul(D0,m0)|0,H=H+Math.imul(D0,d)|0,I=I+Math.imul(e,L0)|0,Z=Z+Math.imul(e,R0)|0,Z=Z+Math.imul(H0,L0)|0,H=H+Math.imul(H0,R0)|0,I=I+Math.imul(z0,y0)|0,Z=Z+Math.imul(z0,T0)|0,Z=Z+Math.imul(U0,y0)|0,H=H+Math.imul(U0,T0)|0,I=I+Math.imul(o,b0)|0,Z=Z+Math.imul(o,n0)|0,Z=Z+Math.imul(t,b0)|0,H=H+Math.imul(t,n0)|0,I=I+Math.imul(l,o0)|0,Z=Z+Math.imul(l,l0)|0,Z=Z+Math.imul(G0,o0)|0,H=H+Math.imul(G0,l0)|0;var wU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(wU>>>26)|0,wU&=67108863,I=Math.imul(q0,u0),Z=Math.imul(q0,d0),Z=Z+Math.imul(S0,u0)|0,H=Math.imul(S0,d0),I=I+Math.imul(i,m0)|0,Z=Z+Math.imul(i,d)|0,Z=Z+Math.imul(W0,m0)|0,H=H+Math.imul(W0,d)|0,I=I+Math.imul(F0,L0)|0,Z=Z+Math.imul(F0,R0)|0,Z=Z+Math.imul(D0,L0)|0,H=H+Math.imul(D0,R0)|0,I=I+Math.imul(e,y0)|0,Z=Z+Math.imul(e,T0)|0,Z=Z+Math.imul(H0,y0)|0,H=H+Math.imul(H0,T0)|0,I=I+Math.imul(z0,b0)|0,Z=Z+Math.imul(z0,n0)|0,Z=Z+Math.imul(U0,b0)|0,H=H+Math.imul(U0,n0)|0,I=I+Math.imul(o,o0)|0,Z=Z+Math.imul(o,l0)|0,Z=Z+Math.imul(t,o0)|0,H=H+Math.imul(t,l0)|0;var gU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,I=Math.imul(q0,m0),Z=Math.imul(q0,d),Z=Z+Math.imul(S0,m0)|0,H=Math.imul(S0,d),I=I+Math.imul(i,L0)|0,Z=Z+Math.imul(i,R0)|0,Z=Z+Math.imul(W0,L0)|0,H=H+Math.imul(W0,R0)|0,I=I+Math.imul(F0,y0)|0,Z=Z+Math.imul(F0,T0)|0,Z=Z+Math.imul(D0,y0)|0,H=H+Math.imul(D0,T0)|0,I=I+Math.imul(e,b0)|0,Z=Z+Math.imul(e,n0)|0,Z=Z+Math.imul(H0,b0)|0,H=H+Math.imul(H0,n0)|0,I=I+Math.imul(z0,o0)|0,Z=Z+Math.imul(z0,l0)|0,Z=Z+Math.imul(U0,o0)|0,H=H+Math.imul(U0,l0)|0;var fU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,I=Math.imul(q0,L0),Z=Math.imul(q0,R0),Z=Z+Math.imul(S0,L0)|0,H=Math.imul(S0,R0),I=I+Math.imul(i,y0)|0,Z=Z+Math.imul(i,T0)|0,Z=Z+Math.imul(W0,y0)|0,H=H+Math.imul(W0,T0)|0,I=I+Math.imul(F0,b0)|0,Z=Z+Math.imul(F0,n0)|0,Z=Z+Math.imul(D0,b0)|0,H=H+Math.imul(D0,n0)|0,I=I+Math.imul(e,o0)|0,Z=Z+Math.imul(e,l0)|0,Z=Z+Math.imul(H0,o0)|0,H=H+Math.imul(H0,l0)|0;var yU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(yU>>>26)|0,yU&=67108863,I=Math.imul(q0,y0),Z=Math.imul(q0,T0),Z=Z+Math.imul(S0,y0)|0,H=Math.imul(S0,T0),I=I+Math.imul(i,b0)|0,Z=Z+Math.imul(i,n0)|0,Z=Z+Math.imul(W0,b0)|0,H=H+Math.imul(W0,n0)|0,I=I+Math.imul(F0,o0)|0,Z=Z+Math.imul(F0,l0)|0,Z=Z+Math.imul(D0,o0)|0,H=H+Math.imul(D0,l0)|0;var kU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(kU>>>26)|0,kU&=67108863,I=Math.imul(q0,b0),Z=Math.imul(q0,n0),Z=Z+Math.imul(S0,b0)|0,H=Math.imul(S0,n0),I=I+Math.imul(i,o0)|0,Z=Z+Math.imul(i,l0)|0,Z=Z+Math.imul(W0,o0)|0,H=H+Math.imul(W0,l0)|0;var hU=(T+I|0)+((Z&8191)<<13)|0;T=(H+(Z>>>13)|0)+(hU>>>26)|0,hU&=67108863,I=Math.imul(q0,o0),Z=Math.imul(q0,l0),Z=Z+Math.imul(S0,o0)|0,H=Math.imul(S0,l0);var TU=(T+I|0)+((Z&8191)<<13)|0;if(T=(H+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,L[0]=PU,L[1]=JU,L[2]=YU,L[3]=zU,L[4]=FU,L[5]=jU,L[6]=ZU,L[7]=NU,L[8]=vU,L[9]=qU,L[10]=OU,L[11]=_U,L[12]=wU,L[13]=gU,L[14]=fU,L[15]=yU,L[16]=kU,L[17]=hU,L[18]=TU,T!==0)L[19]=T,$.length++;return $};if(!Math.imul)P=S;function k(U,X,$){$.negative=X.negative^U.negative,$.length=U.length+X.length;var Q=0,K=0;for(var L=0;L<$.length-1;L++){var T=K;K=0;var I=Q&67108863,Z=Math.min(L,X.length-1);for(var H=Math.max(0,L-U.length+1);H<=Z;H++){var N=L-H,B=U.words[N]|0,w=X.words[H]|0,u=B*w,s=u&67108863;T=T+(u/67108864|0)|0,s=s+I|0,I=s&67108863,T=T+(s>>>26)|0,K+=T>>>26,T&=67108863}$.words[L]=I,Q=T,T=K}if(Q!==0)$.words[L]=Q;else $.length--;return $.strip()}function x(U,X,$){var Q=new f;return Q.mulp(U,X,$)}G.prototype.mulTo=function(U,X){var $,Q=this.length+U.length;if(this.length===10&&U.length===10)$=P(this,U,X);else if(Q<63)$=S(this,U,X);else if(Q<1024)$=k(this,U,X);else $=x(this,U,X);return $};function f(U,X){this.x=U,this.y=X}f.prototype.makeRBT=function(U){var X=Array(U),$=G.prototype._countBits(U)-1;for(var Q=0;Q<U;Q++)X[Q]=this.revBin(Q,$,U);return X},f.prototype.revBin=function(U,X,$){if(U===0||U===$-1)return U;var Q=0;for(var K=0;K<X;K++)Q|=(U&1)<<X-K-1,U>>=1;return Q},f.prototype.permute=function(U,X,$,Q,K,L){for(var T=0;T<L;T++)Q[T]=X[U[T]],K[T]=$[U[T]]},f.prototype.transform=function(U,X,$,Q,K,L){this.permute(L,U,X,$,Q,K);for(var T=1;T<K;T<<=1){var I=T<<1,Z=Math.cos(2*Math.PI/I),H=Math.sin(2*Math.PI/I);for(var N=0;N<K;N+=I){var B=Z,w=H;for(var u=0;u<T;u++){var s=$[N+u],Y0=Q[N+u],M0=$[N+u+T],n=Q[N+u+T],b=B*M0-w*n;if(n=B*n+w*M0,M0=b,$[N+u]=s+M0,Q[N+u]=Y0+n,$[N+u+T]=s-M0,Q[N+u+T]=Y0-n,u!==I)b=Z*B-H*w,w=Z*w+H*B,B=b}}}},f.prototype.guessLen13b=function(U,X){var $=Math.max(X,U)|1,Q=$&1,K=0;for($=$/2|0;$;$=$>>>1)K++;return 1<<K+1+Q},f.prototype.conjugate=function(U,X,$){if($<=1)return;for(var Q=0;Q<$/2;Q++){var K=U[Q];U[Q]=U[$-Q-1],U[$-Q-1]=K,K=X[Q],X[Q]=-X[$-Q-1],X[$-Q-1]=-K}},f.prototype.normalize13b=function(U,X){var $=0;for(var Q=0;Q<X/2;Q++){var K=Math.round(U[2*Q+1]/X)*8192+Math.round(U[2*Q]/X)+$;if(U[Q]=K&67108863,K<67108864)$=0;else $=K/67108864|0}return U},f.prototype.convert13b=function(U,X,$,Q){var K=0;for(var L=0;L<X;L++)K=K+(U[L]|0),$[2*L]=K&8191,K=K>>>13,$[2*L+1]=K&8191,K=K>>>13;for(L=2*X;L<Q;++L)$[L]=0;O(K===0),O((K&-8192)===0)},f.prototype.stub=function(U){var X=Array(U);for(var $=0;$<U;$++)X[$]=0;return X},f.prototype.mulp=function(U,X,$){var Q=2*this.guessLen13b(U.length,X.length),K=this.makeRBT(Q),L=this.stub(Q),T=Array(Q),I=Array(Q),Z=Array(Q),H=Array(Q),N=Array(Q),B=Array(Q),w=$.words;w.length=Q,this.convert13b(U.words,U.length,T,Q),this.convert13b(X.words,X.length,H,Q),this.transform(T,L,I,Z,Q,K),this.transform(H,L,N,B,Q,K);for(var u=0;u<Q;u++){var s=I[u]*N[u]-Z[u]*B[u];Z[u]=I[u]*B[u]+Z[u]*N[u],I[u]=s}return this.conjugate(I,Z,Q),this.transform(I,Z,w,L,Q,K),this.conjugate(w,L,Q),this.normalize13b(w,Q),$.negative=U.negative^X.negative,$.length=U.length+X.length,$.strip()},G.prototype.mul=function(U){var X=new G(null);return X.words=Array(this.length+U.length),this.mulTo(U,X)},G.prototype.mulf=function(U){var X=new G(null);return X.words=Array(this.length+U.length),x(this,U,X)},G.prototype.imul=function(U){return this.clone().mulTo(U,this)},G.prototype.imuln=function(U){O(typeof U==="number"),O(U<67108864);var X=0;for(var $=0;$<this.length;$++){var Q=(this.words[$]|0)*U,K=(Q&67108863)+(X&67108863);X>>=26,X+=Q/67108864|0,X+=K>>>26,this.words[$]=K&67108863}if(X!==0)this.words[$]=X,this.length++;return this.length=U===0?1:this.length,this},G.prototype.muln=function(U){return this.clone().imuln(U)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(U){var X=D(U);if(X.length===0)return new G(1);var $=this;for(var Q=0;Q<X.length;Q++,$=$.sqr())if(X[Q]!==0)break;if(++Q<X.length)for(var K=$.sqr();Q<X.length;Q++,K=K.sqr()){if(X[Q]===0)continue;$=$.mul(K)}return $},G.prototype.iushln=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=67108863>>>26-X<<26-X,K;if(X!==0){var L=0;for(K=0;K<this.length;K++){var T=this.words[K]&Q,I=(this.words[K]|0)-T<<X;this.words[K]=I|L,L=T>>>26-X}if(L)this.words[K]=L,this.length++}if($!==0){for(K=this.length-1;K>=0;K--)this.words[K+$]=this.words[K];for(K=0;K<$;K++)this.words[K]=0;this.length+=$}return this.strip()},G.prototype.ishln=function(U){return O(this.negative===0),this.iushln(U)},G.prototype.iushrn=function(U,X,$){O(typeof U==="number"&&U>=0);var Q;if(X)Q=(X-X%26)/26;else Q=0;var K=U%26,L=Math.min((U-K)/26,this.length),T=67108863^67108863>>>K<<K,I=$;if(Q-=L,Q=Math.max(0,Q),I){for(var Z=0;Z<L;Z++)I.words[Z]=this.words[Z];I.length=L}if(L===0);else if(this.length>L){this.length-=L;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+L]}else this.words[0]=0,this.length=1;var H=0;for(Z=this.length-1;Z>=0&&(H!==0||Z>=Q);Z--){var N=this.words[Z]|0;this.words[Z]=H<<26-K|N>>>K,H=N&T}if(I&&H!==0)I.words[I.length++]=H;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},G.prototype.ishrn=function(U,X,$){return O(this.negative===0),this.iushrn(U,X,$)},G.prototype.shln=function(U){return this.clone().ishln(U)},G.prototype.ushln=function(U){return this.clone().iushln(U)},G.prototype.shrn=function(U){return this.clone().ishrn(U)},G.prototype.ushrn=function(U){return this.clone().iushrn(U)},G.prototype.testn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return!1;var K=this.words[$];return!!(K&Q)},G.prototype.imaskn=function(U){O(typeof U==="number"&&U>=0);var X=U%26,$=(U-X)/26;if(O(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(X!==0)$++;if(this.length=Math.min($,this.length),X!==0){var Q=67108863^67108863>>>X<<X;this.words[this.length-1]&=Q}return this.strip()},G.prototype.maskn=function(U){return this.clone().imaskn(U)},G.prototype.iaddn=function(U){if(O(typeof U==="number"),O(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)},G.prototype._iaddn=function(U){this.words[0]+=U;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)if(this.words[X]-=67108864,X===this.length-1)this.words[X+1]=1;else this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(U){if(O(typeof U==="number"),O(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(U){return this.clone().iaddn(U)},G.prototype.subn=function(U){return this.clone().isubn(U)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(U,X,$){var Q=U.length+$,K;this._expand(Q);var L,T=0;for(K=0;K<U.length;K++){L=(this.words[K+$]|0)+T;var I=(U.words[K]|0)*X;L-=I&67108863,T=(L>>26)-(I/67108864|0),this.words[K+$]=L&67108863}for(;K<this.length-$;K++)L=(this.words[K+$]|0)+T,T=L>>26,this.words[K+$]=L&67108863;if(T===0)return this.strip();O(T===-1),T=0;for(K=0;K<this.length;K++)L=-(this.words[K]|0)+T,T=L>>26,this.words[K]=L&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(U,X){var $=this.length-U.length,Q=this.clone(),K=U,L=K.words[K.length-1]|0,T=this._countBits(L);if($=26-T,$!==0)K=K.ushln($),Q.iushln($),L=K.words[K.length-1]|0;var I=Q.length-K.length,Z;if(X!=="mod"){Z=new G(null),Z.length=I+1,Z.words=Array(Z.length);for(var H=0;H<Z.length;H++)Z.words[H]=0}var N=Q.clone()._ishlnsubmul(K,1,I);if(N.negative===0){if(Q=N,Z)Z.words[I]=1}for(var B=I-1;B>=0;B--){var w=(Q.words[K.length+B]|0)*67108864+(Q.words[K.length+B-1]|0);w=Math.min(w/L|0,67108863),Q._ishlnsubmul(K,w,B);while(Q.negative!==0)if(w--,Q.negative=0,Q._ishlnsubmul(K,1,B),!Q.isZero())Q.negative^=1;if(Z)Z.words[B]=w}if(Z)Z.strip();if(Q.strip(),X!=="div"&&$!==0)Q.iushrn($);return{div:Z||null,mod:Q}},G.prototype.divmod=function(U,X,$){if(O(!U.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var Q,K,L;if(this.negative!==0&&U.negative===0){if(L=this.neg().divmod(U,X),X!=="mod")Q=L.div.neg();if(X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.iadd(U)}return{div:Q,mod:K}}if(this.negative===0&&U.negative!==0){if(L=this.divmod(U.neg(),X),X!=="mod")Q=L.div.neg();return{div:Q,mod:L.mod}}if((this.negative&U.negative)!==0){if(L=this.neg().divmod(U.neg(),X),X!=="div"){if(K=L.mod.neg(),$&&K.negative!==0)K.isub(U)}return{div:L.div,mod:K}}if(U.length>this.length||this.cmp(U)<0)return{div:new G(0),mod:this};if(U.length===1){if(X==="div")return{div:this.divn(U.words[0]),mod:null};if(X==="mod")return{div:null,mod:new G(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new G(this.modn(U.words[0]))}}return this._wordDiv(U,X)},G.prototype.div=function(U){return this.divmod(U,"div",!1).div},G.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},G.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},G.prototype.divRound=function(U){var X=this.divmod(U);if(X.mod.isZero())return X.div;var $=X.div.negative!==0?X.mod.isub(U):X.mod,Q=U.ushrn(1),K=U.andln(1),L=$.cmp(Q);if(L<0||K===1&&L===0)return X.div;return X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(U){O(U<=67108863);var X=67108864%U,$=0;for(var Q=this.length-1;Q>=0;Q--)$=(X*$+(this.words[Q]|0))%U;return $},G.prototype.idivn=function(U){O(U<=67108863);var X=0;for(var $=this.length-1;$>=0;$--){var Q=(this.words[$]|0)+X*67108864;this.words[$]=Q/U|0,X=Q%U}return this.strip()},G.prototype.divn=function(U){return this.clone().idivn(U)},G.prototype.egcd=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=new G(0),T=new G(1),I=0;while(X.isEven()&&$.isEven())X.iushrn(1),$.iushrn(1),++I;var Z=$.clone(),H=X.clone();while(!X.isZero()){for(var N=0,B=1;(X.words[0]&B)===0&&N<26;++N,B<<=1);if(N>0){X.iushrn(N);while(N-- >0){if(Q.isOdd()||K.isOdd())Q.iadd(Z),K.isub(H);Q.iushrn(1),K.iushrn(1)}}for(var w=0,u=1;($.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0){$.iushrn(w);while(w-- >0){if(L.isOdd()||T.isOdd())L.iadd(Z),T.isub(H);L.iushrn(1),T.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(L),K.isub(T);else $.isub(X),L.isub(Q),T.isub(K)}return{a:L,b:T,gcd:$.iushln(I)}},G.prototype._invmp=function(U){O(U.negative===0),O(!U.isZero());var X=this,$=U.clone();if(X.negative!==0)X=X.umod(U);else X=X.clone();var Q=new G(1),K=new G(0),L=$.clone();while(X.cmpn(1)>0&&$.cmpn(1)>0){for(var T=0,I=1;(X.words[0]&I)===0&&T<26;++T,I<<=1);if(T>0){X.iushrn(T);while(T-- >0){if(Q.isOdd())Q.iadd(L);Q.iushrn(1)}}for(var Z=0,H=1;($.words[0]&H)===0&&Z<26;++Z,H<<=1);if(Z>0){$.iushrn(Z);while(Z-- >0){if(K.isOdd())K.iadd(L);K.iushrn(1)}}if(X.cmp($)>=0)X.isub($),Q.isub(K);else $.isub(X),K.isub(Q)}var N;if(X.cmpn(1)===0)N=Q;else N=K;if(N.cmpn(0)<0)N.iadd(U);return N},G.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var X=this.clone(),$=U.clone();X.negative=0,$.negative=0;for(var Q=0;X.isEven()&&$.isEven();Q++)X.iushrn(1),$.iushrn(1);do{while(X.isEven())X.iushrn(1);while($.isEven())$.iushrn(1);var K=X.cmp($);if(K<0){var L=X;X=$,$=L}else if(K===0||$.cmpn(1)===0)break;X.isub($)}while(!0);return $.iushln(Q)},G.prototype.invm=function(U){return this.egcd(U).a.umod(U)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(U){return this.words[0]&U},G.prototype.bincn=function(U){O(typeof U==="number");var X=U%26,$=(U-X)/26,Q=1<<X;if(this.length<=$)return this._expand($+1),this.words[$]|=Q,this;var K=Q;for(var L=$;K!==0&&L<this.length;L++){var T=this.words[L]|0;T+=K,K=T>>>26,T&=67108863,this.words[L]=T}if(K!==0)this.words[L]=K,this.length++;return this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(U){var X=U<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var $;if(this.length>1)$=1;else{if(X)U=-U;O(U<=67108863,"Number is too big");var Q=this.words[0]|0;$=Q===U?0:Q<U?-1:1}if(this.negative!==0)return-$|0;return $},G.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var X=this.ucmp(U);if(this.negative!==0)return-X|0;return X},G.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var X=0;for(var $=this.length-1;$>=0;$--){var Q=this.words[$]|0,K=U.words[$]|0;if(Q===K)continue;if(Q<K)X=-1;else if(Q>K)X=1;break}return X},G.prototype.gtn=function(U){return this.cmpn(U)===1},G.prototype.gt=function(U){return this.cmp(U)===1},G.prototype.gten=function(U){return this.cmpn(U)>=0},G.prototype.gte=function(U){return this.cmp(U)>=0},G.prototype.ltn=function(U){return this.cmpn(U)===-1},G.prototype.lt=function(U){return this.cmp(U)===-1},G.prototype.lten=function(U){return this.cmpn(U)<=0},G.prototype.lte=function(U){return this.cmp(U)<=0},G.prototype.eqn=function(U){return this.cmpn(U)===0},G.prototype.eq=function(U){return this.cmp(U)===0},G.red=function(U){return new r(U)},G.prototype.toRed=function(U){return O(!this.red,"Already a number in reduction context"),O(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},G.prototype.fromRed=function(){return O(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(U){return this.red=U,this},G.prototype.forceRed=function(U){return O(!this.red,"Already a number in reduction context"),this._forceRed(U)},G.prototype.redAdd=function(U){return O(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},G.prototype.redIAdd=function(U){return O(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},G.prototype.redSub=function(U){return O(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},G.prototype.redISub=function(U){return O(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},G.prototype.redShl=function(U){return O(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},G.prototype.redMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},G.prototype.redIMul=function(U){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},G.prototype.redSqr=function(){return O(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return O(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return O(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return O(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return O(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(U){return O(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var h={k256:null,p224:null,p192:null,p25519:null};function c(U,X){this.name=U,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}c.prototype._tmp=function(){var U=new G(null);return U.words=Array(Math.ceil(this.n/13)),U},c.prototype.ireduce=function(U){var X=U,$;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),$=X.bitLength();while($>this.n);var Q=$<this.n?-1:X.ucmp(this.p);if(Q===0)X.words[0]=0,X.length=1;else if(Q>0)X.isub(this.p);else if(X.strip!==void 0)X.strip();else X._strip();return X},c.prototype.split=function(U,X){U.iushrn(this.n,0,X)},c.prototype.imulK=function(U){return U.imul(this.k)};function m(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(m,c),m.prototype.split=function(U,X){var $=4194303,Q=Math.min(U.length,9);for(var K=0;K<Q;K++)X.words[K]=U.words[K];if(X.length=Q,U.length<=9){U.words[0]=0,U.length=1;return}var L=U.words[9];X.words[X.length++]=L&$;for(K=10;K<U.length;K++){var T=U.words[K]|0;U.words[K-10]=(T&$)<<4|L>>>22,L=T}if(L>>>=22,U.words[K-10]=L,L===0&&U.length>10)U.length-=10;else U.length-=9},m.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var X=0;for(var $=0;$<U.length;$++){var Q=U.words[$]|0;X+=Q*977,U.words[$]=X&67108863,X=Q*64+(X/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function g(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(g,c);function Q0(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Q0,c);function J0(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(J0,c),J0.prototype.imulK=function(U){var X=0;for(var $=0;$<U.length;$++){var Q=(U.words[$]|0)*19+X,K=Q&67108863;Q>>>=26,U.words[$]=K,X=Q}if(X!==0)U.words[U.length++]=X;return U},G._prime=function(U){if(h[U])return h[U];var X;if(U==="k256")X=new m;else if(U==="p224")X=new g;else if(U==="p192")X=new Q0;else if(U==="p25519")X=new J0;else throw Error("Unknown prime "+U);return h[U]=X,X};function r(U){if(typeof U==="string"){var X=G._prime(U);this.m=X.p,this.prime=X}else O(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}r.prototype._verify1=function(U){O(U.negative===0,"red works only with positives"),O(U.red,"red works only with red numbers")},r.prototype._verify2=function(U,X){O((U.negative|X.negative)===0,"red works only with positives"),O(U.red&&U.red===X.red,"red works only with red numbers")},r.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},r.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},r.prototype.add=function(U,X){this._verify2(U,X);var $=U.add(X);if($.cmp(this.m)>=0)$.isub(this.m);return $._forceRed(this)},r.prototype.iadd=function(U,X){this._verify2(U,X);var $=U.iadd(X);if($.cmp(this.m)>=0)$.isub(this.m);return $},r.prototype.sub=function(U,X){this._verify2(U,X);var $=U.sub(X);if($.cmpn(0)<0)$.iadd(this.m);return $._forceRed(this)},r.prototype.isub=function(U,X){this._verify2(U,X);var $=U.isub(X);if($.cmpn(0)<0)$.iadd(this.m);return $},r.prototype.shl=function(U,X){return this._verify1(U),this.imod(U.ushln(X))},r.prototype.imul=function(U,X){return this._verify2(U,X),this.imod(U.imul(X))},r.prototype.mul=function(U,X){return this._verify2(U,X),this.imod(U.mul(X))},r.prototype.isqr=function(U){return this.imul(U,U.clone())},r.prototype.sqr=function(U){return this.mul(U,U)},r.prototype.sqrt=function(U){if(U.isZero())return U.clone();var X=this.m.andln(3);if(O(X%2===1),X===3){var $=this.m.add(new G(1)).iushrn(2);return this.pow(U,$)}var Q=this.m.subn(1),K=0;while(!Q.isZero()&&Q.andln(1)===0)K++,Q.iushrn(1);O(!Q.isZero());var L=new G(1).toRed(this),T=L.redNeg(),I=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new G(2*Z*Z).toRed(this);while(this.pow(Z,I).cmp(T)!==0)Z.redIAdd(T);var H=this.pow(Z,Q),N=this.pow(U,Q.addn(1).iushrn(1)),B=this.pow(U,Q),w=K;while(B.cmp(L)!==0){var u=B;for(var s=0;u.cmp(L)!==0;s++)u=u.redSqr();O(s<w);var Y0=this.pow(H,new G(1).iushln(w-s-1));N=N.redMul(Y0),H=Y0.redSqr(),B=B.redMul(H),w=s}return N},r.prototype.invm=function(U){var X=U._invmp(this.m);if(X.negative!==0)return X.negative=0,this.imod(X).redNeg();else return this.imod(X)},r.prototype.pow=function(U,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return U.clone();var $=4,Q=Array(1<<$);Q[0]=new G(1).toRed(this),Q[1]=U;for(var K=2;K<Q.length;K++)Q[K]=this.mul(Q[K-1],U);var L=Q[0],T=0,I=0,Z=X.bitLength()%26;if(Z===0)Z=26;for(K=X.length-1;K>=0;K--){var H=X.words[K];for(var N=Z-1;N>=0;N--){var B=H>>N&1;if(L!==Q[0])L=this.sqr(L);if(B===0&&T===0){I=0;continue}if(T<<=1,T|=B,I++,I!==$&&(K!==0||N!==0))continue;L=this.mul(L,Q[T]),I=0,T=0}Z=26}return L},r.prototype.convertTo=function(U){var X=U.umod(this.m);return X===U?X.clone():X},r.prototype.convertFrom=function(U){var X=U.clone();return X.red=null,X},G.mont=function(U){return new O0(U)};function O0(U){if(r.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new G(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A(O0,r),O0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},O0.prototype.convertFrom=function(U){var X=this.imod(U.mul(this.rinv));return X.red=null,X},O0.prototype.imul=function(U,X){if(U.isZero()||X.isZero())return U.words[0]=0,U.length=1,U;var $=U.imul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.mul=function(U,X){if(U.isZero()||X.isZero())return new G(0)._forceRed(this);var $=U.mul(X),Q=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=$.isub(Q).iushrn(this.shift),L=K;if(K.cmp(this.m)>=0)L=K.isub(this.m);else if(K.cmpn(0)<0)L=K.iadd(this.m);return L._forceRed(this)},O0.prototype.invm=function(U){var X=this.imod(U._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof W>"u"||W,Y)}),$W=k0((Y,W)=>{var V=f1(),z=nU().Buffer;function O(A,G){return z.from(A.toRed(V.mont(G.modulus)).redPow(new V(G.publicExponent)).fromRed().toArray())}W.exports=O}),SO=k0((Y,W)=>{(function(V,z){function O(Q,K){if(!Q)throw Error(K||"Assertion failed")}function A(Q,K){Q.super_=K;var L=function(){};L.prototype=K.prototype,Q.prototype=new L,Q.prototype.constructor=Q}function G(Q,K,L){if(G.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(K==="le"||K==="be")L=K,K=10;this._init(Q||0,K||10,L||"be")}}if(typeof V==="object")V.exports=G;else z.BN=G;G.BN=G,G.wordSize=26;var v;try{if(typeof window<"u"&&typeof window.Buffer<"u")v=window.Buffer;else v=(lU(),WU(dU)).Buffer}catch(Q){}G.isBN=function(Q){if(Q instanceof G)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===G.wordSize&&Array.isArray(Q.words)},G.max=function(Q,K){if(Q.cmp(K)>0)return Q;return K},G.min=function(Q,K){if(Q.cmp(K)<0)return Q;return K},G.prototype._init=function(Q,K,L){if(typeof Q==="number")return this._initNumber(Q,K,L);if(typeof Q==="object")return this._initArray(Q,K,L);if(K==="hex")K=16;O(K===(K|0)&&K>=2&&K<=36),Q=Q.toString().replace(/\s+/g,"");var T=0;if(Q[0]==="-")T++,this.negative=1;if(T<Q.length){if(K===16)this._parseHex(Q,T,L);else if(this._parseBase(Q,K,T),L==="le")this._initArray(this.toArray(),K,L)}},G.prototype._initNumber=function(Q,K,L){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else O(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(L!=="le")return;this._initArray(this.toArray(),K,L)},G.prototype._initArray=function(Q,K,L){if(O(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var I,Z,H=0;if(L==="be"){for(T=Q.length-1,I=0;T>=0;T-=3)if(Z=Q[T]|Q[T-1]<<8|Q[T-2]<<16,this.words[I]|=Z<<H&67108863,this.words[I+1]=Z>>>26-H&67108863,H+=24,H>=26)H-=26,I++}else if(L==="le"){for(T=0,I=0;T<Q.length;T+=3)if(Z=Q[T]|Q[T+1]<<8|Q[T+2]<<16,this.words[I]|=Z<<H&67108863,this.words[I+1]=Z>>>26-H&67108863,H+=24,H>=26)H-=26,I++}return this._strip()};function j(Q,K){var L=Q.charCodeAt(K);if(L>=48&&L<=57)return L-48;else if(L>=65&&L<=70)return L-55;else if(L>=97&&L<=102)return L-87;else O(!1,"Invalid character in "+Q)}function E(Q,K,L){var T=j(Q,L);if(L-1>=K)T|=j(Q,L-1)<<4;return T}G.prototype._parseHex=function(Q,K,L){this.length=Math.ceil((Q.length-K)/6),this.words=Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var I=0,Z=0,H;if(L==="be")for(T=Q.length-1;T>=K;T-=2)if(H=E(Q,K,T)<<I,this.words[Z]|=H&67108863,I>=18)I-=18,Z+=1,this.words[Z]|=H>>>26;else I+=8;else{var N=Q.length-K;for(T=N%2===0?K+1:K;T<Q.length;T+=2)if(H=E(Q,K,T)<<I,this.words[Z]|=H&67108863,I>=18)I-=18,Z+=1,this.words[Z]|=H>>>26;else I+=8}this._strip()};function q(Q,K,L,T){var I=0,Z=0,H=Math.min(Q.length,L);for(var N=K;N<H;N++){var B=Q.charCodeAt(N)-48;if(I*=T,B>=49)Z=B-49+10;else if(B>=17)Z=B-17+10;else Z=B;O(B>=0&&Z<T,"Invalid character"),I+=Z}return I}G.prototype._parseBase=function(Q,K,L){this.words=[0],this.length=1;for(var T=0,I=1;I<=67108863;I*=K)T++;T--,I=I/K|0;var Z=Q.length-L,H=Z%T,N=Math.min(Z,Z-H)+L,B=0;for(var w=L;w<N;w+=T)if(B=q(Q,w,w+T,K),this.imuln(I),this.words[0]+B<67108864)this.words[0]+=B;else this._iaddn(B);if(H!==0){var u=1;B=q(Q,w,Q.length,K);for(w=0;w<H;w++)u*=K;if(this.imuln(u),this.words[0]+B<67108864)this.words[0]+=B;else this._iaddn(B)}this._strip()},G.prototype.copy=function(Q){Q.words=Array(this.length);for(var K=0;K<this.length;K++)Q.words[K]=this.words[K];Q.length=this.length,Q.negative=this.negative,Q.red=this.red};function C(Q,K){Q.words=K.words,Q.length=K.length,Q.negative=K.negative,Q.red=K.red}if(G.prototype._move=function(Q){C(Q,this)},G.prototype.clone=function(){var Q=new G(null);return this.copy(Q),Q},G.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},G.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},G.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{G.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch(Q){G.prototype.inspect=M}else G.prototype.inspect=M;function M(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(G.prototype.toString=function(Q,K){Q=Q||10,K=K|0||1;var L;if(Q===16||Q==="hex"){L="";var T=0,I=0;for(var Z=0;Z<this.length;Z++){var H=this.words[Z],N=((H<<T|I)&16777215).toString(16);if(I=H>>>24-T&16777215,T+=2,T>=26)T-=26,Z--;if(I!==0||Z!==this.length-1)L=F[6-N.length]+N+L;else L=N+L}if(I!==0)L=I.toString(16)+L;while(L.length%K!==0)L="0"+L;if(this.negative!==0)L="-"+L;return L}if(Q===(Q|0)&&Q>=2&&Q<=36){var B=D[Q],w=S[Q];L="";var u=this.clone();u.negative=0;while(!u.isZero()){var s=u.modrn(w).toString(Q);if(u=u.idivn(w),!u.isZero())L=F[B-s.length]+s+L;else L=s+L}if(this.isZero())L="0"+L;while(L.length%K!==0)L="0"+L;if(this.negative!==0)L="-"+L;return L}O(!1,"Base should be between 2 and 36")},G.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)O(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},G.prototype.toJSON=function(){return this.toString(16,2)},v)G.prototype.toBuffer=function(Q,K){return this.toArrayLike(v,Q,K)};G.prototype.toArray=function(Q,K){return this.toArrayLike(Array,Q,K)};var P=function(Q,K){if(Q.allocUnsafe)return Q.allocUnsafe(K);return new Q(K)};if(G.prototype.toArrayLike=function(Q,K,L){this._strip();var T=this.byteLength(),I=L||Math.max(1,T);O(T<=I,"byte array longer than desired length"),O(I>0,"Requested array length <= 0");var Z=P(Q,I),H=K==="le"?"LE":"BE";return this["_toArrayLike"+H](Z,T),Z},G.prototype._toArrayLikeLE=function(Q,K){var L=0,T=0;for(var I=0,Z=0;I<this.length;I++){var H=this.words[I]<<Z|T;if(Q[L++]=H&255,L<Q.length)Q[L++]=H>>8&255;if(L<Q.length)Q[L++]=H>>16&255;if(Z===6){if(L<Q.length)Q[L++]=H>>24&255;T=0,Z=0}else T=H>>>24,Z+=2}if(L<Q.length){Q[L++]=T;while(L<Q.length)Q[L++]=0}},G.prototype._toArrayLikeBE=function(Q,K){var L=Q.length-1,T=0;for(var I=0,Z=0;I<this.length;I++){var H=this.words[I]<<Z|T;if(Q[L--]=H&255,L>=0)Q[L--]=H>>8&255;if(L>=0)Q[L--]=H>>16&255;if(Z===6){if(L>=0)Q[L--]=H>>24&255;T=0,Z=0}else T=H>>>24,Z+=2}if(L>=0){Q[L--]=T;while(L>=0)Q[L--]=0}},Math.clz32)G.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else G.prototype._countBits=function(Q){var K=Q,L=0;if(K>=4096)L+=13,K>>>=13;if(K>=64)L+=7,K>>>=7;if(K>=8)L+=4,K>>>=4;if(K>=2)L+=2,K>>>=2;return L+K};G.prototype._zeroBits=function(Q){if(Q===0)return 26;var K=Q,L=0;if((K&8191)===0)L+=13,K>>>=13;if((K&127)===0)L+=7,K>>>=7;if((K&15)===0)L+=4,K>>>=4;if((K&3)===0)L+=2,K>>>=2;if((K&1)===0)L++;return L},G.prototype.bitLength=function(){var Q=this.words[this.length-1],K=this._countBits(Q);return(this.length-1)*26+K};function k(Q){var K=Array(Q.bitLength());for(var L=0;L<K.length;L++){var T=L/26|0,I=L%26;K[L]=Q.words[T]>>>I&1}return K}G.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var K=0;K<this.length;K++){var L=this._zeroBits(this.words[K]);if(Q+=L,L!==26)break}return Q},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},G.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},G.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var K=0;K<Q.length;K++)this.words[K]=this.words[K]|Q.words[K];return this._strip()},G.prototype.ior=function(Q){return O((this.negative|Q.negative)===0),this.iuor(Q)},G.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},G.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},G.prototype.iuand=function(Q){var K;if(this.length>Q.length)K=Q;else K=this;for(var L=0;L<K.length;L++)this.words[L]=this.words[L]&Q.words[L];return this.length=K.length,this._strip()},G.prototype.iand=function(Q){return O((this.negative|Q.negative)===0),this.iuand(Q)},G.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},G.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},G.prototype.iuxor=function(Q){var K,L;if(this.length>Q.length)K=this,L=Q;else K=Q,L=this;for(var T=0;T<L.length;T++)this.words[T]=K.words[T]^L.words[T];if(this!==K)for(;T<K.length;T++)this.words[T]=K.words[T];return this.length=K.length,this._strip()},G.prototype.ixor=function(Q){return O((this.negative|Q.negative)===0),this.iuxor(Q)},G.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},G.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},G.prototype.inotn=function(Q){O(typeof Q==="number"&&Q>=0);var K=Math.ceil(Q/26)|0,L=Q%26;if(this._expand(K),L>0)K--;for(var T=0;T<K;T++)this.words[T]=~this.words[T]&67108863;if(L>0)this.words[T]=~this.words[T]&67108863>>26-L;return this._strip()},G.prototype.notn=function(Q){return this.clone().inotn(Q)},G.prototype.setn=function(Q,K){O(typeof Q==="number"&&Q>=0);var L=Q/26|0,T=Q%26;if(this._expand(L+1),K)this.words[L]=this.words[L]|1<<T;else this.words[L]=this.words[L]&~(1<<T);return this._strip()},G.prototype.iadd=function(Q){var K;if(this.negative!==0&&Q.negative===0)return this.negative=0,K=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,K=this.isub(Q),Q.negative=1,K._normSign();var L,T;if(this.length>Q.length)L=this,T=Q;else L=Q,T=this;var I=0;for(var Z=0;Z<T.length;Z++)K=(L.words[Z]|0)+(T.words[Z]|0)+I,this.words[Z]=K&67108863,I=K>>>26;for(;I!==0&&Z<L.length;Z++)K=(L.words[Z]|0)+I,this.words[Z]=K&67108863,I=K>>>26;if(this.length=L.length,I!==0)this.words[this.length]=I,this.length++;else if(L!==this)for(;Z<L.length;Z++)this.words[Z]=L.words[Z];return this},G.prototype.add=function(Q){var K;if(Q.negative!==0&&this.negative===0)return Q.negative=0,K=this.sub(Q),Q.negative^=1,K;else if(Q.negative===0&&this.negative!==0)return this.negative=0,K=Q.sub(this),this.negative=1,K;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},G.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var K=this.iadd(Q);return Q.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var L=this.cmp(Q);if(L===0)return this.negative=0,this.length=1,this.words[0]=0,this;var T,I;if(L>0)T=this,I=Q;else T=Q,I=this;var Z=0;for(var H=0;H<I.length;H++)K=(T.words[H]|0)-(I.words[H]|0)+Z,Z=K>>26,this.words[H]=K&67108863;for(;Z!==0&&H<T.length;H++)K=(T.words[H]|0)+Z,Z=K>>26,this.words[H]=K&67108863;if(Z===0&&H<T.length&&T!==this)for(;H<T.length;H++)this.words[H]=T.words[H];if(this.length=Math.max(this.length,H),T!==this)this.negative=1;return this._strip()},G.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,K,L){L.negative=K.negative^Q.negative;var T=Q.length+K.length|0;L.length=T,T=T-1|0;var I=Q.words[0]|0,Z=K.words[0]|0,H=I*Z,N=H&67108863,B=H/67108864|0;L.words[0]=N;for(var w=1;w<T;w++){var u=B>>>26,s=B&67108863,Y0=Math.min(w,K.length-1);for(var M0=Math.max(0,w-Q.length+1);M0<=Y0;M0++){var n=w-M0|0;I=Q.words[n]|0,Z=K.words[M0]|0,H=I*Z+s,u+=H/67108864|0,s=H&67108863}L.words[w]=s|0,B=u|0}if(B!==0)L.words[w]=B|0;else L.length--;return L._strip()}var f=function(Q,K,L){var T=Q.words,I=K.words,Z=L.words,H=0,N,B,w,u=T[0]|0,s=u&8191,Y0=u>>>13,M0=T[1]|0,n=M0&8191,b=M0>>>13,a=T[2]|0,l=a&8191,G0=a>>>13,A0=T[3]|0,o=A0&8191,t=A0>>>13,V0=T[4]|0,z0=V0&8191,U0=V0>>>13,x0=T[5]|0,e=x0&8191,H0=x0>>>13,p0=T[6]|0,F0=p0&8191,D0=p0>>>13,i0=T[7]|0,i=i0&8191,W0=i0>>>13,v0=T[8]|0,q0=v0&8191,S0=v0>>>13,e0=T[9]|0,j0=e0&8191,B0=e0>>>13,XU=I[0]|0,_0=XU&8191,g0=XU>>>13,MU=I[1]|0,c0=MU&8191,K0=MU>>>13,E0=I[2]|0,C0=E0&8191,N0=E0>>>13,IU=I[3]|0,u0=IU&8191,d0=IU>>>13,xU=I[4]|0,m0=xU&8191,d=xU>>>13,$0=I[5]|0,L0=$0&8191,R0=$0>>>13,r0=I[6]|0,y0=r0&8191,T0=r0>>>13,AU=I[7]|0,b0=AU&8191,n0=AU>>>13,pU=I[8]|0,o0=pU&8191,l0=pU>>>13,PU=I[9]|0,JU=PU&8191,YU=PU>>>13;L.negative=Q.negative^K.negative,L.length=19,N=Math.imul(s,_0),B=Math.imul(s,g0),B=B+Math.imul(Y0,_0)|0,w=Math.imul(Y0,g0);var zU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(zU>>>26)|0,zU&=67108863,N=Math.imul(n,_0),B=Math.imul(n,g0),B=B+Math.imul(b,_0)|0,w=Math.imul(b,g0),N=N+Math.imul(s,c0)|0,B=B+Math.imul(s,K0)|0,B=B+Math.imul(Y0,c0)|0,w=w+Math.imul(Y0,K0)|0;var FU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(FU>>>26)|0,FU&=67108863,N=Math.imul(l,_0),B=Math.imul(l,g0),B=B+Math.imul(G0,_0)|0,w=Math.imul(G0,g0),N=N+Math.imul(n,c0)|0,B=B+Math.imul(n,K0)|0,B=B+Math.imul(b,c0)|0,w=w+Math.imul(b,K0)|0,N=N+Math.imul(s,C0)|0,B=B+Math.imul(s,N0)|0,B=B+Math.imul(Y0,C0)|0,w=w+Math.imul(Y0,N0)|0;var jU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(jU>>>26)|0,jU&=67108863,N=Math.imul(o,_0),B=Math.imul(o,g0),B=B+Math.imul(t,_0)|0,w=Math.imul(t,g0),N=N+Math.imul(l,c0)|0,B=B+Math.imul(l,K0)|0,B=B+Math.imul(G0,c0)|0,w=w+Math.imul(G0,K0)|0,N=N+Math.imul(n,C0)|0,B=B+Math.imul(n,N0)|0,B=B+Math.imul(b,C0)|0,w=w+Math.imul(b,N0)|0,N=N+Math.imul(s,u0)|0,B=B+Math.imul(s,d0)|0,B=B+Math.imul(Y0,u0)|0,w=w+Math.imul(Y0,d0)|0;var ZU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,N=Math.imul(z0,_0),B=Math.imul(z0,g0),B=B+Math.imul(U0,_0)|0,w=Math.imul(U0,g0),N=N+Math.imul(o,c0)|0,B=B+Math.imul(o,K0)|0,B=B+Math.imul(t,c0)|0,w=w+Math.imul(t,K0)|0,N=N+Math.imul(l,C0)|0,B=B+Math.imul(l,N0)|0,B=B+Math.imul(G0,C0)|0,w=w+Math.imul(G0,N0)|0,N=N+Math.imul(n,u0)|0,B=B+Math.imul(n,d0)|0,B=B+Math.imul(b,u0)|0,w=w+Math.imul(b,d0)|0,N=N+Math.imul(s,m0)|0,B=B+Math.imul(s,d)|0,B=B+Math.imul(Y0,m0)|0,w=w+Math.imul(Y0,d)|0;var NU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(NU>>>26)|0,NU&=67108863,N=Math.imul(e,_0),B=Math.imul(e,g0),B=B+Math.imul(H0,_0)|0,w=Math.imul(H0,g0),N=N+Math.imul(z0,c0)|0,B=B+Math.imul(z0,K0)|0,B=B+Math.imul(U0,c0)|0,w=w+Math.imul(U0,K0)|0,N=N+Math.imul(o,C0)|0,B=B+Math.imul(o,N0)|0,B=B+Math.imul(t,C0)|0,w=w+Math.imul(t,N0)|0,N=N+Math.imul(l,u0)|0,B=B+Math.imul(l,d0)|0,B=B+Math.imul(G0,u0)|0,w=w+Math.imul(G0,d0)|0,N=N+Math.imul(n,m0)|0,B=B+Math.imul(n,d)|0,B=B+Math.imul(b,m0)|0,w=w+Math.imul(b,d)|0,N=N+Math.imul(s,L0)|0,B=B+Math.imul(s,R0)|0,B=B+Math.imul(Y0,L0)|0,w=w+Math.imul(Y0,R0)|0;var vU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(vU>>>26)|0,vU&=67108863,N=Math.imul(F0,_0),B=Math.imul(F0,g0),B=B+Math.imul(D0,_0)|0,w=Math.imul(D0,g0),N=N+Math.imul(e,c0)|0,B=B+Math.imul(e,K0)|0,B=B+Math.imul(H0,c0)|0,w=w+Math.imul(H0,K0)|0,N=N+Math.imul(z0,C0)|0,B=B+Math.imul(z0,N0)|0,B=B+Math.imul(U0,C0)|0,w=w+Math.imul(U0,N0)|0,N=N+Math.imul(o,u0)|0,B=B+Math.imul(o,d0)|0,B=B+Math.imul(t,u0)|0,w=w+Math.imul(t,d0)|0,N=N+Math.imul(l,m0)|0,B=B+Math.imul(l,d)|0,B=B+Math.imul(G0,m0)|0,w=w+Math.imul(G0,d)|0,N=N+Math.imul(n,L0)|0,B=B+Math.imul(n,R0)|0,B=B+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,N=N+Math.imul(s,y0)|0,B=B+Math.imul(s,T0)|0,B=B+Math.imul(Y0,y0)|0,w=w+Math.imul(Y0,T0)|0;var qU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(qU>>>26)|0,qU&=67108863,N=Math.imul(i,_0),B=Math.imul(i,g0),B=B+Math.imul(W0,_0)|0,w=Math.imul(W0,g0),N=N+Math.imul(F0,c0)|0,B=B+Math.imul(F0,K0)|0,B=B+Math.imul(D0,c0)|0,w=w+Math.imul(D0,K0)|0,N=N+Math.imul(e,C0)|0,B=B+Math.imul(e,N0)|0,B=B+Math.imul(H0,C0)|0,w=w+Math.imul(H0,N0)|0,N=N+Math.imul(z0,u0)|0,B=B+Math.imul(z0,d0)|0,B=B+Math.imul(U0,u0)|0,w=w+Math.imul(U0,d0)|0,N=N+Math.imul(o,m0)|0,B=B+Math.imul(o,d)|0,B=B+Math.imul(t,m0)|0,w=w+Math.imul(t,d)|0,N=N+Math.imul(l,L0)|0,B=B+Math.imul(l,R0)|0,B=B+Math.imul(G0,L0)|0,w=w+Math.imul(G0,R0)|0,N=N+Math.imul(n,y0)|0,B=B+Math.imul(n,T0)|0,B=B+Math.imul(b,y0)|0,w=w+Math.imul(b,T0)|0,N=N+Math.imul(s,b0)|0,B=B+Math.imul(s,n0)|0,B=B+Math.imul(Y0,b0)|0,w=w+Math.imul(Y0,n0)|0;var OU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(OU>>>26)|0,OU&=67108863,N=Math.imul(q0,_0),B=Math.imul(q0,g0),B=B+Math.imul(S0,_0)|0,w=Math.imul(S0,g0),N=N+Math.imul(i,c0)|0,B=B+Math.imul(i,K0)|0,B=B+Math.imul(W0,c0)|0,w=w+Math.imul(W0,K0)|0,N=N+Math.imul(F0,C0)|0,B=B+Math.imul(F0,N0)|0,B=B+Math.imul(D0,C0)|0,w=w+Math.imul(D0,N0)|0,N=N+Math.imul(e,u0)|0,B=B+Math.imul(e,d0)|0,B=B+Math.imul(H0,u0)|0,w=w+Math.imul(H0,d0)|0,N=N+Math.imul(z0,m0)|0,B=B+Math.imul(z0,d)|0,B=B+Math.imul(U0,m0)|0,w=w+Math.imul(U0,d)|0,N=N+Math.imul(o,L0)|0,B=B+Math.imul(o,R0)|0,B=B+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,N=N+Math.imul(l,y0)|0,B=B+Math.imul(l,T0)|0,B=B+Math.imul(G0,y0)|0,w=w+Math.imul(G0,T0)|0,N=N+Math.imul(n,b0)|0,B=B+Math.imul(n,n0)|0,B=B+Math.imul(b,b0)|0,w=w+Math.imul(b,n0)|0,N=N+Math.imul(s,o0)|0,B=B+Math.imul(s,l0)|0,B=B+Math.imul(Y0,o0)|0,w=w+Math.imul(Y0,l0)|0;var _U=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(_U>>>26)|0,_U&=67108863,N=Math.imul(j0,_0),B=Math.imul(j0,g0),B=B+Math.imul(B0,_0)|0,w=Math.imul(B0,g0),N=N+Math.imul(q0,c0)|0,B=B+Math.imul(q0,K0)|0,B=B+Math.imul(S0,c0)|0,w=w+Math.imul(S0,K0)|0,N=N+Math.imul(i,C0)|0,B=B+Math.imul(i,N0)|0,B=B+Math.imul(W0,C0)|0,w=w+Math.imul(W0,N0)|0,N=N+Math.imul(F0,u0)|0,B=B+Math.imul(F0,d0)|0,B=B+Math.imul(D0,u0)|0,w=w+Math.imul(D0,d0)|0,N=N+Math.imul(e,m0)|0,B=B+Math.imul(e,d)|0,B=B+Math.imul(H0,m0)|0,w=w+Math.imul(H0,d)|0,N=N+Math.imul(z0,L0)|0,B=B+Math.imul(z0,R0)|0,B=B+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,N=N+Math.imul(o,y0)|0,B=B+Math.imul(o,T0)|0,B=B+Math.imul(t,y0)|0,w=w+Math.imul(t,T0)|0,N=N+Math.imul(l,b0)|0,B=B+Math.imul(l,n0)|0,B=B+Math.imul(G0,b0)|0,w=w+Math.imul(G0,n0)|0,N=N+Math.imul(n,o0)|0,B=B+Math.imul(n,l0)|0,B=B+Math.imul(b,o0)|0,w=w+Math.imul(b,l0)|0,N=N+Math.imul(s,JU)|0,B=B+Math.imul(s,YU)|0,B=B+Math.imul(Y0,JU)|0,w=w+Math.imul(Y0,YU)|0;var wU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(wU>>>26)|0,wU&=67108863,N=Math.imul(j0,c0),B=Math.imul(j0,K0),B=B+Math.imul(B0,c0)|0,w=Math.imul(B0,K0),N=N+Math.imul(q0,C0)|0,B=B+Math.imul(q0,N0)|0,B=B+Math.imul(S0,C0)|0,w=w+Math.imul(S0,N0)|0,N=N+Math.imul(i,u0)|0,B=B+Math.imul(i,d0)|0,B=B+Math.imul(W0,u0)|0,w=w+Math.imul(W0,d0)|0,N=N+Math.imul(F0,m0)|0,B=B+Math.imul(F0,d)|0,B=B+Math.imul(D0,m0)|0,w=w+Math.imul(D0,d)|0,N=N+Math.imul(e,L0)|0,B=B+Math.imul(e,R0)|0,B=B+Math.imul(H0,L0)|0,w=w+Math.imul(H0,R0)|0,N=N+Math.imul(z0,y0)|0,B=B+Math.imul(z0,T0)|0,B=B+Math.imul(U0,y0)|0,w=w+Math.imul(U0,T0)|0,N=N+Math.imul(o,b0)|0,B=B+Math.imul(o,n0)|0,B=B+Math.imul(t,b0)|0,w=w+Math.imul(t,n0)|0,N=N+Math.imul(l,o0)|0,B=B+Math.imul(l,l0)|0,B=B+Math.imul(G0,o0)|0,w=w+Math.imul(G0,l0)|0,N=N+Math.imul(n,JU)|0,B=B+Math.imul(n,YU)|0,B=B+Math.imul(b,JU)|0,w=w+Math.imul(b,YU)|0;var gU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(gU>>>26)|0,gU&=67108863,N=Math.imul(j0,C0),B=Math.imul(j0,N0),B=B+Math.imul(B0,C0)|0,w=Math.imul(B0,N0),N=N+Math.imul(q0,u0)|0,B=B+Math.imul(q0,d0)|0,B=B+Math.imul(S0,u0)|0,w=w+Math.imul(S0,d0)|0,N=N+Math.imul(i,m0)|0,B=B+Math.imul(i,d)|0,B=B+Math.imul(W0,m0)|0,w=w+Math.imul(W0,d)|0,N=N+Math.imul(F0,L0)|0,B=B+Math.imul(F0,R0)|0,B=B+Math.imul(D0,L0)|0,w=w+Math.imul(D0,R0)|0,N=N+Math.imul(e,y0)|0,B=B+Math.imul(e,T0)|0,B=B+Math.imul(H0,y0)|0,w=w+Math.imul(H0,T0)|0,N=N+Math.imul(z0,b0)|0,B=B+Math.imul(z0,n0)|0,B=B+Math.imul(U0,b0)|0,w=w+Math.imul(U0,n0)|0,N=N+Math.imul(o,o0)|0,B=B+Math.imul(o,l0)|0,B=B+Math.imul(t,o0)|0,w=w+Math.imul(t,l0)|0,N=N+Math.imul(l,JU)|0,B=B+Math.imul(l,YU)|0,B=B+Math.imul(G0,JU)|0,w=w+Math.imul(G0,YU)|0;var fU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(fU>>>26)|0,fU&=67108863,N=Math.imul(j0,u0),B=Math.imul(j0,d0),B=B+Math.imul(B0,u0)|0,w=Math.imul(B0,d0),N=N+Math.imul(q0,m0)|0,B=B+Math.imul(q0,d)|0,B=B+Math.imul(S0,m0)|0,w=w+Math.imul(S0,d)|0,N=N+Math.imul(i,L0)|0,B=B+Math.imul(i,R0)|0,B=B+Math.imul(W0,L0)|0,w=w+Math.imul(W0,R0)|0,N=N+Math.imul(F0,y0)|0,B=B+Math.imul(F0,T0)|0,B=B+Math.imul(D0,y0)|0,w=w+Math.imul(D0,T0)|0,N=N+Math.imul(e,b0)|0,B=B+Math.imul(e,n0)|0,B=B+Math.imul(H0,b0)|0,w=w+Math.imul(H0,n0)|0,N=N+Math.imul(z0,o0)|0,B=B+Math.imul(z0,l0)|0,B=B+Math.imul(U0,o0)|0,w=w+Math.imul(U0,l0)|0,N=N+Math.imul(o,JU)|0,B=B+Math.imul(o,YU)|0,B=B+Math.imul(t,JU)|0,w=w+Math.imul(t,YU)|0;var yU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(yU>>>26)|0,yU&=67108863,N=Math.imul(j0,m0),B=Math.imul(j0,d),B=B+Math.imul(B0,m0)|0,w=Math.imul(B0,d),N=N+Math.imul(q0,L0)|0,B=B+Math.imul(q0,R0)|0,B=B+Math.imul(S0,L0)|0,w=w+Math.imul(S0,R0)|0,N=N+Math.imul(i,y0)|0,B=B+Math.imul(i,T0)|0,B=B+Math.imul(W0,y0)|0,w=w+Math.imul(W0,T0)|0,N=N+Math.imul(F0,b0)|0,B=B+Math.imul(F0,n0)|0,B=B+Math.imul(D0,b0)|0,w=w+Math.imul(D0,n0)|0,N=N+Math.imul(e,o0)|0,B=B+Math.imul(e,l0)|0,B=B+Math.imul(H0,o0)|0,w=w+Math.imul(H0,l0)|0,N=N+Math.imul(z0,JU)|0,B=B+Math.imul(z0,YU)|0,B=B+Math.imul(U0,JU)|0,w=w+Math.imul(U0,YU)|0;var kU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(kU>>>26)|0,kU&=67108863,N=Math.imul(j0,L0),B=Math.imul(j0,R0),B=B+Math.imul(B0,L0)|0,w=Math.imul(B0,R0),N=N+Math.imul(q0,y0)|0,B=B+Math.imul(q0,T0)|0,B=B+Math.imul(S0,y0)|0,w=w+Math.imul(S0,T0)|0,N=N+Math.imul(i,b0)|0,B=B+Math.imul(i,n0)|0,B=B+Math.imul(W0,b0)|0,w=w+Math.imul(W0,n0)|0,N=N+Math.imul(F0,o0)|0,B=B+Math.imul(F0,l0)|0,B=B+Math.imul(D0,o0)|0,w=w+Math.imul(D0,l0)|0,N=N+Math.imul(e,JU)|0,B=B+Math.imul(e,YU)|0,B=B+Math.imul(H0,JU)|0,w=w+Math.imul(H0,YU)|0;var hU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(hU>>>26)|0,hU&=67108863,N=Math.imul(j0,y0),B=Math.imul(j0,T0),B=B+Math.imul(B0,y0)|0,w=Math.imul(B0,T0),N=N+Math.imul(q0,b0)|0,B=B+Math.imul(q0,n0)|0,B=B+Math.imul(S0,b0)|0,w=w+Math.imul(S0,n0)|0,N=N+Math.imul(i,o0)|0,B=B+Math.imul(i,l0)|0,B=B+Math.imul(W0,o0)|0,w=w+Math.imul(W0,l0)|0,N=N+Math.imul(F0,JU)|0,B=B+Math.imul(F0,YU)|0,B=B+Math.imul(D0,JU)|0,w=w+Math.imul(D0,YU)|0;var TU=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(TU>>>26)|0,TU&=67108863,N=Math.imul(j0,b0),B=Math.imul(j0,n0),B=B+Math.imul(B0,b0)|0,w=Math.imul(B0,n0),N=N+Math.imul(q0,o0)|0,B=B+Math.imul(q0,l0)|0,B=B+Math.imul(S0,o0)|0,w=w+Math.imul(S0,l0)|0,N=N+Math.imul(i,JU)|0,B=B+Math.imul(i,YU)|0,B=B+Math.imul(W0,JU)|0,w=w+Math.imul(W0,YU)|0;var FQ=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,N=Math.imul(j0,o0),B=Math.imul(j0,l0),B=B+Math.imul(B0,o0)|0,w=Math.imul(B0,l0),N=N+Math.imul(q0,JU)|0,B=B+Math.imul(q0,YU)|0,B=B+Math.imul(S0,JU)|0,w=w+Math.imul(S0,YU)|0;var zQ=(H+N|0)+((B&8191)<<13)|0;H=(w+(B>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,N=Math.imul(j0,JU),B=Math.imul(j0,YU),B=B+Math.imul(B0,JU)|0,w=Math.imul(B0,YU);var rZ=(H+N|0)+((B&8191)<<13)|0;if(H=(w+(B>>>13)|0)+(rZ>>>26)|0,rZ&=67108863,Z[0]=zU,Z[1]=FU,Z[2]=jU,Z[3]=ZU,Z[4]=NU,Z[5]=vU,Z[6]=qU,Z[7]=OU,Z[8]=_U,Z[9]=wU,Z[10]=gU,Z[11]=fU,Z[12]=yU,Z[13]=kU,Z[14]=hU,Z[15]=TU,Z[16]=FQ,Z[17]=zQ,Z[18]=rZ,H!==0)Z[19]=H,L.length++;return L};if(!Math.imul)f=x;function h(Q,K,L){L.negative=K.negative^Q.negative,L.length=Q.length+K.length;var T=0,I=0;for(var Z=0;Z<L.length-1;Z++){var H=I;I=0;var N=T&67108863,B=Math.min(Z,K.length-1);for(var w=Math.max(0,Z-Q.length+1);w<=B;w++){var u=Z-w,s=Q.words[u]|0,Y0=K.words[w]|0,M0=s*Y0,n=M0&67108863;H=H+(M0/67108864|0)|0,n=n+N|0,N=n&67108863,H=H+(n>>>26)|0,I+=H>>>26,H&=67108863}L.words[Z]=N,T=H,H=I}if(T!==0)L.words[Z]=T;else L.length--;return L._strip()}function c(Q,K,L){return h(Q,K,L)}G.prototype.mulTo=function(Q,K){var L,T=this.length+Q.length;if(this.length===10&&Q.length===10)L=f(this,Q,K);else if(T<63)L=x(this,Q,K);else if(T<1024)L=h(this,Q,K);else L=c(this,Q,K);return L};function m(Q,K){this.x=Q,this.y=K}m.prototype.makeRBT=function(Q){var K=Array(Q),L=G.prototype._countBits(Q)-1;for(var T=0;T<Q;T++)K[T]=this.revBin(T,L,Q);return K},m.prototype.revBin=function(Q,K,L){if(Q===0||Q===L-1)return Q;var T=0;for(var I=0;I<K;I++)T|=(Q&1)<<K-I-1,Q>>=1;return T},m.prototype.permute=function(Q,K,L,T,I,Z){for(var H=0;H<Z;H++)T[H]=K[Q[H]],I[H]=L[Q[H]]},m.prototype.transform=function(Q,K,L,T,I,Z){this.permute(Z,Q,K,L,T,I);for(var H=1;H<I;H<<=1){var N=H<<1,B=Math.cos(2*Math.PI/N),w=Math.sin(2*Math.PI/N);for(var u=0;u<I;u+=N){var s=B,Y0=w;for(var M0=0;M0<H;M0++){var n=L[u+M0],b=T[u+M0],a=L[u+M0+H],l=T[u+M0+H],G0=s*a-Y0*l;if(l=s*l+Y0*a,a=G0,L[u+M0]=n+a,T[u+M0]=b+l,L[u+M0+H]=n-a,T[u+M0+H]=b-l,M0!==N)G0=B*s-w*Y0,Y0=B*Y0+w*s,s=G0}}}},m.prototype.guessLen13b=function(Q,K){var L=Math.max(K,Q)|1,T=L&1,I=0;for(L=L/2|0;L;L=L>>>1)I++;return 1<<I+1+T},m.prototype.conjugate=function(Q,K,L){if(L<=1)return;for(var T=0;T<L/2;T++){var I=Q[T];Q[T]=Q[L-T-1],Q[L-T-1]=I,I=K[T],K[T]=-K[L-T-1],K[L-T-1]=-I}},m.prototype.normalize13b=function(Q,K){var L=0;for(var T=0;T<K/2;T++){var I=Math.round(Q[2*T+1]/K)*8192+Math.round(Q[2*T]/K)+L;if(Q[T]=I&67108863,I<67108864)L=0;else L=I/67108864|0}return Q},m.prototype.convert13b=function(Q,K,L,T){var I=0;for(var Z=0;Z<K;Z++)I=I+(Q[Z]|0),L[2*Z]=I&8191,I=I>>>13,L[2*Z+1]=I&8191,I=I>>>13;for(Z=2*K;Z<T;++Z)L[Z]=0;O(I===0),O((I&-8192)===0)},m.prototype.stub=function(Q){var K=Array(Q);for(var L=0;L<Q;L++)K[L]=0;return K},m.prototype.mulp=function(Q,K,L){var T=2*this.guessLen13b(Q.length,K.length),I=this.makeRBT(T),Z=this.stub(T),H=Array(T),N=Array(T),B=Array(T),w=Array(T),u=Array(T),s=Array(T),Y0=L.words;Y0.length=T,this.convert13b(Q.words,Q.length,H,T),this.convert13b(K.words,K.length,w,T),this.transform(H,Z,N,B,T,I),this.transform(w,Z,u,s,T,I);for(var M0=0;M0<T;M0++){var n=N[M0]*u[M0]-B[M0]*s[M0];B[M0]=N[M0]*s[M0]+B[M0]*u[M0],N[M0]=n}return this.conjugate(N,B,T),this.transform(N,B,Y0,Z,T,I),this.conjugate(Y0,Z,T),this.normalize13b(Y0,T),L.negative=Q.negative^K.negative,L.length=Q.length+K.length,L._strip()},G.prototype.mul=function(Q){var K=new G(null);return K.words=Array(this.length+Q.length),this.mulTo(Q,K)},G.prototype.mulf=function(Q){var K=new G(null);return K.words=Array(this.length+Q.length),c(this,Q,K)},G.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},G.prototype.imuln=function(Q){var K=Q<0;if(K)Q=-Q;O(typeof Q==="number"),O(Q<67108864);var L=0;for(var T=0;T<this.length;T++){var I=(this.words[T]|0)*Q,Z=(I&67108863)+(L&67108863);L>>=26,L+=I/67108864|0,L+=Z>>>26,this.words[T]=Z&67108863}if(L!==0)this.words[T]=L,this.length++;return this.length=Q===0?1:this.length,K?this.ineg():this},G.prototype.muln=function(Q){return this.clone().imuln(Q)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(Q){var K=k(Q);if(K.length===0)return new G(1);var L=this;for(var T=0;T<K.length;T++,L=L.sqr())if(K[T]!==0)break;if(++T<K.length)for(var I=L.sqr();T<K.length;T++,I=I.sqr()){if(K[T]===0)continue;L=L.mul(I)}return L},G.prototype.iushln=function(Q){O(typeof Q==="number"&&Q>=0);var K=Q%26,L=(Q-K)/26,T=67108863>>>26-K<<26-K,I;if(K!==0){var Z=0;for(I=0;I<this.length;I++){var H=this.words[I]&T,N=(this.words[I]|0)-H<<K;this.words[I]=N|Z,Z=H>>>26-K}if(Z)this.words[I]=Z,this.length++}if(L!==0){for(I=this.length-1;I>=0;I--)this.words[I+L]=this.words[I];for(I=0;I<L;I++)this.words[I]=0;this.length+=L}return this._strip()},G.prototype.ishln=function(Q){return O(this.negative===0),this.iushln(Q)},G.prototype.iushrn=function(Q,K,L){O(typeof Q==="number"&&Q>=0);var T;if(K)T=(K-K%26)/26;else T=0;var I=Q%26,Z=Math.min((Q-I)/26,this.length),H=67108863^67108863>>>I<<I,N=L;if(T-=Z,T=Math.max(0,T),N){for(var B=0;B<Z;B++)N.words[B]=this.words[B];N.length=Z}if(Z===0);else if(this.length>Z){this.length-=Z;for(B=0;B<this.length;B++)this.words[B]=this.words[B+Z]}else this.words[0]=0,this.length=1;var w=0;for(B=this.length-1;B>=0&&(w!==0||B>=T);B--){var u=this.words[B]|0;this.words[B]=w<<26-I|u>>>I,w=u&H}if(N&&w!==0)N.words[N.length++]=w;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},G.prototype.ishrn=function(Q,K,L){return O(this.negative===0),this.iushrn(Q,K,L)},G.prototype.shln=function(Q){return this.clone().ishln(Q)},G.prototype.ushln=function(Q){return this.clone().iushln(Q)},G.prototype.shrn=function(Q){return this.clone().ishrn(Q)},G.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},G.prototype.testn=function(Q){O(typeof Q==="number"&&Q>=0);var K=Q%26,L=(Q-K)/26,T=1<<K;if(this.length<=L)return!1;var I=this.words[L];return!!(I&T)},G.prototype.imaskn=function(Q){O(typeof Q==="number"&&Q>=0);var K=Q%26,L=(Q-K)/26;if(O(this.negative===0,"imaskn works only with positive numbers"),this.length<=L)return this;if(K!==0)L++;if(this.length=Math.min(L,this.length),K!==0){var T=67108863^67108863>>>K<<K;this.words[this.length-1]&=T}return this._strip()},G.prototype.maskn=function(Q){return this.clone().imaskn(Q)},G.prototype.iaddn=function(Q){if(O(typeof Q==="number"),O(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},G.prototype._iaddn=function(Q){this.words[0]+=Q;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},G.prototype.isubn=function(Q){if(O(typeof Q==="number"),O(Q<67108864),Q<0)return this.iaddn(-Q);if(this.negative!==0)return this.negative=0,this.iaddn(Q),this.negative=1,this;if(this.words[0]-=Q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this._strip()},G.prototype.addn=function(Q){return this.clone().iaddn(Q)},G.prototype.subn=function(Q){return this.clone().isubn(Q)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(Q,K,L){var T=Q.length+L,I;this._expand(T);var Z,H=0;for(I=0;I<Q.length;I++){Z=(this.words[I+L]|0)+H;var N=(Q.words[I]|0)*K;Z-=N&67108863,H=(Z>>26)-(N/67108864|0),this.words[I+L]=Z&67108863}for(;I<this.length-L;I++)Z=(this.words[I+L]|0)+H,H=Z>>26,this.words[I+L]=Z&67108863;if(H===0)return this._strip();O(H===-1),H=0;for(I=0;I<this.length;I++)Z=-(this.words[I]|0)+H,H=Z>>26,this.words[I]=Z&67108863;return this.negative=1,this._strip()},G.prototype._wordDiv=function(Q,K){var L=this.length-Q.length,T=this.clone(),I=Q,Z=I.words[I.length-1]|0,H=this._countBits(Z);if(L=26-H,L!==0)I=I.ushln(L),T.iushln(L),Z=I.words[I.length-1]|0;var N=T.length-I.length,B;if(K!=="mod"){B=new G(null),B.length=N+1,B.words=Array(B.length);for(var w=0;w<B.length;w++)B.words[w]=0}var u=T.clone()._ishlnsubmul(I,1,N);if(u.negative===0){if(T=u,B)B.words[N]=1}for(var s=N-1;s>=0;s--){var Y0=(T.words[I.length+s]|0)*67108864+(T.words[I.length+s-1]|0);Y0=Math.min(Y0/Z|0,67108863),T._ishlnsubmul(I,Y0,s);while(T.negative!==0)if(Y0--,T.negative=0,T._ishlnsubmul(I,1,s),!T.isZero())T.negative^=1;if(B)B.words[s]=Y0}if(B)B._strip();if(T._strip(),K!=="div"&&L!==0)T.iushrn(L);return{div:B||null,mod:T}},G.prototype.divmod=function(Q,K,L){if(O(!Q.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var T,I,Z;if(this.negative!==0&&Q.negative===0){if(Z=this.neg().divmod(Q,K),K!=="mod")T=Z.div.neg();if(K!=="div"){if(I=Z.mod.neg(),L&&I.negative!==0)I.iadd(Q)}return{div:T,mod:I}}if(this.negative===0&&Q.negative!==0){if(Z=this.divmod(Q.neg(),K),K!=="mod")T=Z.div.neg();return{div:T,mod:Z.mod}}if((this.negative&Q.negative)!==0){if(Z=this.neg().divmod(Q.neg(),K),K!=="div"){if(I=Z.mod.neg(),L&&I.negative!==0)I.isub(Q)}return{div:Z.div,mod:I}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new G(0),mod:this};if(Q.length===1){if(K==="div")return{div:this.divn(Q.words[0]),mod:null};if(K==="mod")return{div:null,mod:new G(this.modrn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new G(this.modrn(Q.words[0]))}}return this._wordDiv(Q,K)},G.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},G.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},G.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},G.prototype.divRound=function(Q){var K=this.divmod(Q);if(K.mod.isZero())return K.div;var L=K.div.negative!==0?K.mod.isub(Q):K.mod,T=Q.ushrn(1),I=Q.andln(1),Z=L.cmp(T);if(Z<0||I===1&&Z===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},G.prototype.modrn=function(Q){var K=Q<0;if(K)Q=-Q;O(Q<=67108863);var L=67108864%Q,T=0;for(var I=this.length-1;I>=0;I--)T=(L*T+(this.words[I]|0))%Q;return K?-T:T},G.prototype.modn=function(Q){return this.modrn(Q)},G.prototype.idivn=function(Q){var K=Q<0;if(K)Q=-Q;O(Q<=67108863);var L=0;for(var T=this.length-1;T>=0;T--){var I=(this.words[T]|0)+L*67108864;this.words[T]=I/Q|0,L=I%Q}return this._strip(),K?this.ineg():this},G.prototype.divn=function(Q){return this.clone().idivn(Q)},G.prototype.egcd=function(Q){O(Q.negative===0),O(!Q.isZero());var K=this,L=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var T=new G(1),I=new G(0),Z=new G(0),H=new G(1),N=0;while(K.isEven()&&L.isEven())K.iushrn(1),L.iushrn(1),++N;var B=L.clone(),w=K.clone();while(!K.isZero()){for(var u=0,s=1;(K.words[0]&s)===0&&u<26;++u,s<<=1);if(u>0){K.iushrn(u);while(u-- >0){if(T.isOdd()||I.isOdd())T.iadd(B),I.isub(w);T.iushrn(1),I.iushrn(1)}}for(var Y0=0,M0=1;(L.words[0]&M0)===0&&Y0<26;++Y0,M0<<=1);if(Y0>0){L.iushrn(Y0);while(Y0-- >0){if(Z.isOdd()||H.isOdd())Z.iadd(B),H.isub(w);Z.iushrn(1),H.iushrn(1)}}if(K.cmp(L)>=0)K.isub(L),T.isub(Z),I.isub(H);else L.isub(K),Z.isub(T),H.isub(I)}return{a:Z,b:H,gcd:L.iushln(N)}},G.prototype._invmp=function(Q){O(Q.negative===0),O(!Q.isZero());var K=this,L=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var T=new G(1),I=new G(0),Z=L.clone();while(K.cmpn(1)>0&&L.cmpn(1)>0){for(var H=0,N=1;(K.words[0]&N)===0&&H<26;++H,N<<=1);if(H>0){K.iushrn(H);while(H-- >0){if(T.isOdd())T.iadd(Z);T.iushrn(1)}}for(var B=0,w=1;(L.words[0]&w)===0&&B<26;++B,w<<=1);if(B>0){L.iushrn(B);while(B-- >0){if(I.isOdd())I.iadd(Z);I.iushrn(1)}}if(K.cmp(L)>=0)K.isub(L),T.isub(I);else L.isub(K),I.isub(T)}var u;if(K.cmpn(1)===0)u=T;else u=I;if(u.cmpn(0)<0)u.iadd(Q);return u},G.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var K=this.clone(),L=Q.clone();K.negative=0,L.negative=0;for(var T=0;K.isEven()&&L.isEven();T++)K.iushrn(1),L.iushrn(1);do{while(K.isEven())K.iushrn(1);while(L.isEven())L.iushrn(1);var I=K.cmp(L);if(I<0){var Z=K;K=L,L=Z}else if(I===0||L.cmpn(1)===0)break;K.isub(L)}while(!0);return L.iushln(T)},G.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(Q){return this.words[0]&Q},G.prototype.bincn=function(Q){O(typeof Q==="number");var K=Q%26,L=(Q-K)/26,T=1<<K;if(this.length<=L)return this._expand(L+1),this.words[L]|=T,this;var I=T;for(var Z=L;I!==0&&Z<this.length;Z++){var H=this.words[Z]|0;H+=I,I=H>>>26,H&=67108863,this.words[Z]=H}if(I!==0)this.words[Z]=I,this.length++;return this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(Q){var K=Q<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this._strip();var L;if(this.length>1)L=1;else{if(K)Q=-Q;O(Q<=67108863,"Number is too big");var T=this.words[0]|0;L=T===Q?0:T<Q?-1:1}if(this.negative!==0)return-L|0;return L},G.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var K=this.ucmp(Q);if(this.negative!==0)return-K|0;return K},G.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var K=0;for(var L=this.length-1;L>=0;L--){var T=this.words[L]|0,I=Q.words[L]|0;if(T===I)continue;if(T<I)K=-1;else if(T>I)K=1;break}return K},G.prototype.gtn=function(Q){return this.cmpn(Q)===1},G.prototype.gt=function(Q){return this.cmp(Q)===1},G.prototype.gten=function(Q){return this.cmpn(Q)>=0},G.prototype.gte=function(Q){return this.cmp(Q)>=0},G.prototype.ltn=function(Q){return this.cmpn(Q)===-1},G.prototype.lt=function(Q){return this.cmp(Q)===-1},G.prototype.lten=function(Q){return this.cmpn(Q)<=0},G.prototype.lte=function(Q){return this.cmp(Q)<=0},G.prototype.eqn=function(Q){return this.cmpn(Q)===0},G.prototype.eq=function(Q){return this.cmp(Q)===0},G.red=function(Q){return new X(Q)},G.prototype.toRed=function(Q){return O(!this.red,"Already a number in reduction context"),O(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},G.prototype.fromRed=function(){return O(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(Q){return this.red=Q,this},G.prototype.forceRed=function(Q){return O(!this.red,"Already a number in reduction context"),this._forceRed(Q)},G.prototype.redAdd=function(Q){return O(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},G.prototype.redIAdd=function(Q){return O(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},G.prototype.redSub=function(Q){return O(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},G.prototype.redISub=function(Q){return O(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},G.prototype.redShl=function(Q){return O(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},G.prototype.redMul=function(Q){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},G.prototype.redIMul=function(Q){return O(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},G.prototype.redSqr=function(){return O(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return O(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return O(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return O(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return O(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(Q){return O(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var g={k256:null,p224:null,p192:null,p25519:null};function Q0(Q,K){this.name=Q,this.p=new G(K,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q0.prototype._tmp=function(){var Q=new G(null);return Q.words=Array(Math.ceil(this.n/13)),Q},Q0.prototype.ireduce=function(Q){var K=Q,L;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),L=K.bitLength();while(L>this.n);var T=L<this.n?-1:K.ucmp(this.p);if(T===0)K.words[0]=0,K.length=1;else if(T>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},Q0.prototype.split=function(Q,K){Q.iushrn(this.n,0,K)},Q0.prototype.imulK=function(Q){return Q.imul(this.k)};function J0(){Q0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(J0,Q0),J0.prototype.split=function(Q,K){var L=4194303,T=Math.min(Q.length,9);for(var I=0;I<T;I++)K.words[I]=Q.words[I];if(K.length=T,Q.length<=9){Q.words[0]=0,Q.length=1;return}var Z=Q.words[9];K.words[K.length++]=Z&L;for(I=10;I<Q.length;I++){var H=Q.words[I]|0;Q.words[I-10]=(H&L)<<4|Z>>>22,Z=H}if(Z>>>=22,Q.words[I-10]=Z,Z===0&&Q.length>10)Q.length-=10;else Q.length-=9},J0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var K=0;for(var L=0;L<Q.length;L++){var T=Q.words[L]|0;K+=T*977,Q.words[L]=K&67108863,K=T*64+(K/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function r(){Q0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(r,Q0);function O0(){Q0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(O0,Q0);function U(){Q0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(U,Q0),U.prototype.imulK=function(Q){var K=0;for(var L=0;L<Q.length;L++){var T=(Q.words[L]|0)*19+K,I=T&67108863;T>>>=26,Q.words[L]=I,K=T}if(K!==0)Q.words[Q.length++]=K;return Q},G._prime=function(Q){if(g[Q])return g[Q];var K;if(Q==="k256")K=new J0;else if(Q==="p224")K=new r;else if(Q==="p192")K=new O0;else if(Q==="p25519")K=new U;else throw Error("Unknown prime "+Q);return g[Q]=K,K};function X(Q){if(typeof Q==="string"){var K=G._prime(Q);this.m=K.p,this.prime=K}else O(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}X.prototype._verify1=function(Q){O(Q.negative===0,"red works only with positives"),O(Q.red,"red works only with red numbers")},X.prototype._verify2=function(Q,K){O((Q.negative|K.negative)===0,"red works only with positives"),O(Q.red&&Q.red===K.red,"red works only with red numbers")},X.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return C(Q,Q.umod(this.m)._forceRed(this)),Q},X.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},X.prototype.add=function(Q,K){this._verify2(Q,K);var L=Q.add(K);if(L.cmp(this.m)>=0)L.isub(this.m);return L._forceRed(this)},X.prototype.iadd=function(Q,K){this._verify2(Q,K);var L=Q.iadd(K);if(L.cmp(this.m)>=0)L.isub(this.m);return L},X.prototype.sub=function(Q,K){this._verify2(Q,K);var L=Q.sub(K);if(L.cmpn(0)<0)L.iadd(this.m);return L._forceRed(this)},X.prototype.isub=function(Q,K){this._verify2(Q,K);var L=Q.isub(K);if(L.cmpn(0)<0)L.iadd(this.m);return L},X.prototype.shl=function(Q,K){return this._verify1(Q),this.imod(Q.ushln(K))},X.prototype.imul=function(Q,K){return this._verify2(Q,K),this.imod(Q.imul(K))},X.prototype.mul=function(Q,K){return this._verify2(Q,K),this.imod(Q.mul(K))},X.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},X.prototype.sqr=function(Q){return this.mul(Q,Q)},X.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var K=this.m.andln(3);if(O(K%2===1),K===3){var L=this.m.add(new G(1)).iushrn(2);return this.pow(Q,L)}var T=this.m.subn(1),I=0;while(!T.isZero()&&T.andln(1)===0)I++,T.iushrn(1);O(!T.isZero());var Z=new G(1).toRed(this),H=Z.redNeg(),N=this.m.subn(1).iushrn(1),B=this.m.bitLength();B=new G(2*B*B).toRed(this);while(this.pow(B,N).cmp(H)!==0)B.redIAdd(H);var w=this.pow(B,T),u=this.pow(Q,T.addn(1).iushrn(1)),s=this.pow(Q,T),Y0=I;while(s.cmp(Z)!==0){var M0=s;for(var n=0;M0.cmp(Z)!==0;n++)M0=M0.redSqr();O(n<Y0);var b=this.pow(w,new G(1).iushln(Y0-n-1));u=u.redMul(b),w=b.redSqr(),s=s.redMul(w),Y0=n}return u},X.prototype.invm=function(Q){var K=Q._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},X.prototype.pow=function(Q,K){if(K.isZero())return new G(1).toRed(this);if(K.cmpn(1)===0)return Q.clone();var L=4,T=Array(1<<L);T[0]=new G(1).toRed(this),T[1]=Q;for(var I=2;I<T.length;I++)T[I]=this.mul(T[I-1],Q);var Z=T[0],H=0,N=0,B=K.bitLength()%26;if(B===0)B=26;for(I=K.length-1;I>=0;I--){var w=K.words[I];for(var u=B-1;u>=0;u--){var s=w>>u&1;if(Z!==T[0])Z=this.sqr(Z);if(s===0&&H===0){N=0;continue}if(H<<=1,H|=s,N++,N!==L&&(I!==0||u!==0))continue;Z=this.mul(Z,T[H]),N=0,H=0}B=26}return Z},X.prototype.convertTo=function(Q){var K=Q.umod(this.m);return K===Q?K.clone():K},X.prototype.convertFrom=function(Q){var K=Q.clone();return K.red=null,K},G.mont=function(Q){return new $(Q)};function $(Q){if(X.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new G(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A($,X),$.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},$.prototype.convertFrom=function(Q){var K=this.imod(Q.mul(this.rinv));return K.red=null,K},$.prototype.imul=function(Q,K){if(Q.isZero()||K.isZero())return Q.words[0]=0,Q.length=1,Q;var L=Q.imul(K),T=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=L.isub(T).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)},$.prototype.mul=function(Q,K){if(Q.isZero()||K.isZero())return new G(0)._forceRed(this);var L=Q.mul(K),T=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=L.isub(T).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)},$.prototype.invm=function(Q){var K=this.imod(Q._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof W>"u"||W,Y)}),HW=k0((Y,W)=>{var V=SO(),z=zX(),O=nU().Buffer;function A(j){var E=j.modulus.byteLength(),q;do q=new V(z(E));while(q.cmp(j.modulus)>=0||!q.umod(j.prime1)||!q.umod(j.prime2));return q}function G(j){var E=A(j),q=E.toRed(V.mont(j.modulus)).redPow(new V(j.publicExponent)).fromRed();return{blinder:q,unblinder:E.invm(j.modulus)}}function v(j,E){var q=G(E),C=E.modulus.byteLength(),M=new V(j).mul(q.blinder).umod(E.modulus),F=M.toRed(V.mont(E.prime1)),D=M.toRed(V.mont(E.prime2)),S=E.coefficient,P=E.prime1,k=E.prime2,x=F.redPow(E.exponent1).fromRed(),f=D.redPow(E.exponent2).fromRed(),h=x.isub(f).imul(S).umod(P).imul(k);return f.iadd(h).imul(q.unblinder).umod(E.modulus).toArrayLike(O,"be",C)}v.getr=A,W.exports=v}),EO=k0((Y,W)=>{var V=WW(),z=zX(),O=CX(),A=VW(),G=KW(),v=f1(),j=$W(),E=HW(),q=nU().Buffer;W.exports=function(D,S,P){var k;if(D.padding)k=D.padding;else if(P)k=1;else k=4;var x=V(D),f;if(k===4)f=C(x,S);else if(k===1)f=M(x,S,P);else if(k===3){if(f=new v(S),f.cmp(x.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(P)return E(f,x);else return j(f,x)};function C(D,S){var P=D.modulus.byteLength(),k=S.length,x=O("sha1").update(q.alloc(0)).digest(),f=x.length,h=2*f;if(k>P-h-2)throw Error("message too long");var c=q.alloc(P-k-h-2),m=P-f-1,g=z(f),Q0=G(q.concat([x,c,q.alloc(1,1),S],m),A(g,m)),J0=G(g,A(Q0,f));return new v(q.concat([q.alloc(1),J0,Q0],P))}function M(D,S,P){var k=S.length,x=D.modulus.byteLength();if(k>x-11)throw Error("message too long");var f;if(P)f=q.alloc(x-k-3,255);else f=F(x-k-3);return new v(q.concat([q.from([0,P?1:2]),f,q.alloc(1),S],x))}function F(D){var S=q.allocUnsafe(D),P=0,k=z(D*2),x=0,f;while(P<D){if(x===k.length)k=z(D*2),x=0;if(f=k[x++],f)S[P++]=f}return S}}),PO=k0((Y,W)=>{var V=WW(),z=VW(),O=KW(),A=f1(),G=HW(),v=CX(),j=$W(),E=nU().Buffer;W.exports=function(F,D,S){var P;if(F.padding)P=F.padding;else if(S)P=1;else P=4;var k=V(F),x=k.modulus.byteLength();if(D.length>x||new A(D).cmp(k.modulus)>=0)throw Error("decryption error");var f;if(S)f=j(new A(D),k);else f=G(D,k);var h=E.alloc(x-f.length);if(f=E.concat([h,f],x),P===4)return q(k,f);else if(P===1)return C(k,f,S);else if(P===3)return f;else throw Error("unknown padding")};function q(F,D){var S=F.modulus.byteLength(),P=v("sha1").update(E.alloc(0)).digest(),k=P.length;if(D[0]!==0)throw Error("decryption error");var x=D.slice(1,k+1),f=D.slice(k+1),h=O(x,z(f,k)),c=O(f,z(h,S-k-1));if(M(P,c.slice(0,k)))throw Error("decryption error");var m=k;while(c[m]===0)m++;if(c[m++]!==1)throw Error("decryption error");return c.slice(m)}function C(F,D,S){var P=D.slice(0,2),k=2,x=0;while(D[k++]!==0)if(k>=D.length){x++;break}var f=D.slice(2,k-1);if(P.toString("hex")!=="0002"&&!S||P.toString("hex")!=="0001"&&S)x++;if(f.length<8)x++;if(x)throw Error("decryption error");return D.slice(k)}function M(F,D){F=E.from(F),D=E.from(D);var S=0,P=F.length;if(F.length!==D.length)S++,P=Math.min(F.length,D.length);var k=-1;while(++k<P)S+=F[k]^D[k];return S}}),j1=k0((Y)=>{Y.publicEncrypt=EO(),Y.privateDecrypt=PO(),Y.privateEncrypt=function(W,V){return Y.publicEncrypt(W,V,!0)},Y.publicDecrypt=function(W,V){return Y.privateDecrypt(W,V,!0)}}),jO=k0((Y)=>{var W=(tU(),WU(aU));if(typeof W.publicEncrypt!=="function")W=j1();if(Y.publicEncrypt=W.publicEncrypt,Y.privateDecrypt=W.privateDecrypt,typeof W.privateEncrypt!=="function")Y.privateEncrypt=j1().privateEncrypt;else Y.privateEncrypt=W.privateEncrypt;if(typeof W.publicDecrypt!=="function")Y.publicDecrypt=j1().publicDecrypt;else Y.publicDecrypt=W.publicDecrypt}),BO=k0((Y)=>{var W=nU(),V=zX(),z=W.Buffer,O=W.kMaxLength,A=globalThis.crypto||globalThis.msCrypto,G=Math.pow(2,32)-1;function v(M,F){if(typeof M!=="number"||M!==M)throw TypeError("offset must be a number");if(M>G||M<0)throw TypeError("offset must be a uint32");if(M>O||M>F)throw RangeError("offset out of range")}function j(M,F,D){if(typeof M!=="number"||M!==M)throw TypeError("size must be a number");if(M>G||M<0)throw TypeError("size must be a uint32");if(M+F>D||M>O)throw RangeError("buffer too small")}A&&A.getRandomValues,Y.randomFill=E,Y.randomFillSync=C;function E(M,F,D,S){if(!z.isBuffer(M)&&!(M instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F==="function")S=F,F=0,D=M.length;else if(typeof D==="function")S=D,D=M.length-F;else if(typeof S!=="function")throw TypeError('"cb" argument must be a function');return v(F,M.length),j(D,F,M.length),q(M,F,D,S)}function q(M,F,D,S){if(!1)var P,k;if(S){V(D,function(f,h){if(f)return S(f);h.copy(M,F),S(null,M)});return}var x=V(D);return x.copy(M,F),M}function C(M,F,D){if(typeof F>"u")F=0;if(!z.isBuffer(M)&&!(M instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(v(F,M.length),D===void 0)D=M.length-F;return j(D,F,M.length),q(M,F,D)}}),NO=k0((Y,W)=>{var V=(tU(),WU(aU));if(typeof V.randomFill==="function"&&typeof V.randomFillSync==="function")Y.randomFill=V.randomFill,Y.randomFillSync=V.randomFillSync;else W.exports=BO()}),vO=k0((Y)=>{Y.randomBytes=Y.rng=Y.pseudoRandomBytes=Y.prng=zX(),Y.createHash=Y.Hash=CX(),Y.createHmac=Y.Hmac=pG();var W=UI(),V=Object.keys(W),z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(V);Y.getHashes=function(){return z};var O=aG();Y.pbkdf2=O.pbkdf2,Y.pbkdf2Sync=O.pbkdf2Sync;var A=fI();Y.Cipher=A.Cipher,Y.createCipher=A.createCipher,Y.Cipheriv=A.Cipheriv,Y.createCipheriv=A.createCipheriv,Y.Decipher=A.Decipher,Y.createDecipher=A.createDecipher,Y.Decipheriv=A.Decipheriv,Y.createDecipheriv=A.createDecipheriv,Y.getCiphers=A.getCiphers,Y.listCiphers=A.listCiphers;var G=yI();Y.DiffieHellmanGroup=G.DiffieHellmanGroup,Y.createDiffieHellmanGroup=G.createDiffieHellmanGroup,Y.getDiffieHellman=G.getDiffieHellman,Y.createDiffieHellman=G.createDiffieHellman,Y.DiffieHellman=G.DiffieHellman;var v=hI();Y.createSign=v.createSign,Y.Sign=v.Sign,Y.createVerify=v.createVerify,Y.Verify=v.Verify,Y.createECDH=WO();var j=jO();Y.publicEncrypt=j.publicEncrypt,Y.privateEncrypt=j.privateEncrypt,Y.publicDecrypt=j.publicDecrypt,Y.privateDecrypt=j.privateDecrypt;var E=NO();Y.randomFill=E.randomFill,Y.randomFillSync=E.randomFillSync,Y.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
78
|
-
we accept pull requests
|
|
79
|
-
https://github.com/browserify/crypto-browserify`)},Y.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}}),HU=e8(vO(),1),kO=HU.prng,xO=HU.pseudoRandomBytes,_O=HU.rng,wO=HU.randomBytes,gO=HU.Hash,fO=HU.createHash,yO=HU.Hmac,hO=HU.createHmac,pO=HU.getHashes,cO=HU.pbkdf2,bO=HU.pbkdf2Sync,uO=HU.Cipher,dO=HU.createCipher,lO=HU.Cipheriv,mO=HU.createCipheriv,oO=HU.Decipher,nO=HU.createDecipher,sO=HU.Decipheriv,rO=HU.createDecipheriv,aO=HU.getCiphers,tO=HU.listCiphers,iO=HU.DiffieHellmanGroup,eO=HU.createDiffieHellmanGroup,UF=HU.getDiffieHellman,ZF=HU.createDiffieHellman,QF=HU.DiffieHellman,XF=HU.createSign,JF=HU.Sign,YF=HU.createVerify,GF=HU.Verify,WF=HU.createECDH,VF=HU.publicEncrypt,KF=HU.privateEncrypt,$F=HU.publicDecrypt,HF=HU.privateDecrypt,IF=HU.randomFill,OF=HU.randomFillSync,FF=HU.createCredentials,zF=HU.constants,MF=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];qF=crypto,TF=crypto});var OW=MZ((uz,IW)=>{(()=>{var Y={"./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive":function(O){function A(G){return Promise.resolve().then(function(){var v=Error("Cannot find module '"+G+"'");throw v.code="MODULE_NOT_FOUND",v})}A.keys=()=>[],A.resolve=A,A.id="./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive",O.exports=A}},W={};function V(O){var A=W[O];if(A!==void 0)return A.exports;var G=W[O]={exports:{}};return Y[O](G,G.exports,V),G.exports}V.n=(O)=>{var A=O&&O.__esModule?()=>O.default:()=>O;return V.d(A,{a:A}),A},V.d=(O,A)=>{for(var G in A)V.o(A,G)&&!V.o(O,G)&&Object.defineProperty(O,G,{enumerable:!0,get:A[G]})},V.o=(O,A)=>Object.prototype.hasOwnProperty.call(O,A);var z={};(()=>{V.d(z,{default:()=>sJ});let O=(zY(),WU(FY));var A=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],G=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],v="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",j={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},E="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",q={5:E,"5module":E+" export import",6:E+" const class extends export import super"},C=/^in(stanceof)?$/,M=new RegExp("["+v+"]"),F=new RegExp("["+v+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function D(J,R){for(var _=65536,y=0;y<R.length;y+=2){if((_+=R[y])>J)return!1;if((_+=R[y+1])>=J)return!0}return!1}function S(J,R){return J<65?J===36:J<91||(J<97?J===95:J<123||(J<=65535?J>=170&&M.test(String.fromCharCode(J)):R!==!1&&D(J,G)))}function P(J,R){return J<48?J===36:J<58||!(J<65)&&(J<91||(J<97?J===95:J<123||(J<=65535?J>=170&&F.test(String.fromCharCode(J)):R!==!1&&(D(J,G)||D(J,A)))))}var k=function(J,R){R===void 0&&(R={}),this.label=J,this.keyword=R.keyword,this.beforeExpr=!!R.beforeExpr,this.startsExpr=!!R.startsExpr,this.isLoop=!!R.isLoop,this.isAssign=!!R.isAssign,this.prefix=!!R.prefix,this.postfix=!!R.postfix,this.binop=R.binop||null,this.updateContext=null};function x(J,R){return new k(J,{beforeExpr:!0,binop:R})}var f={beforeExpr:!0},h={startsExpr:!0},c={};function m(J,R){return R===void 0&&(R={}),R.keyword=J,c[J]=new k(J,R)}var g={num:new k("num",h),regexp:new k("regexp",h),string:new k("string",h),name:new k("name",h),privateId:new k("privateId",h),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",f),semi:new k(";",f),colon:new k(":",f),dot:new k("."),question:new k("?",f),questionDot:new k("?."),arrow:new k("=>",f),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",f),backQuote:new k("`",h),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:x("||",1),logicalAND:x("&&",2),bitwiseOR:x("|",3),bitwiseXOR:x("^",4),bitwiseAND:x("&",5),equality:x("==/!=/===/!==",6),relational:x("</>/<=/>=",7),bitShift:x("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:x("%",10),star:x("*",10),slash:x("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:x("??",1),_break:m("break"),_case:m("case",f),_catch:m("catch"),_continue:m("continue"),_debugger:m("debugger"),_default:m("default",f),_do:m("do",{isLoop:!0,beforeExpr:!0}),_else:m("else",f),_finally:m("finally"),_for:m("for",{isLoop:!0}),_function:m("function",h),_if:m("if"),_return:m("return",f),_switch:m("switch"),_throw:m("throw",f),_try:m("try"),_var:m("var"),_const:m("const"),_while:m("while",{isLoop:!0}),_with:m("with"),_new:m("new",{beforeExpr:!0,startsExpr:!0}),_this:m("this",h),_super:m("super",h),_class:m("class",h),_extends:m("extends",f),_export:m("export"),_import:m("import",h),_null:m("null",h),_true:m("true",h),_false:m("false",h),_in:m("in",{beforeExpr:!0,binop:7}),_instanceof:m("instanceof",{beforeExpr:!0,binop:7}),_typeof:m("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:m("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:m("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Q0=/\r\n?|\n|\u2028|\u2029/,J0=new RegExp(Q0.source,"g");function r(J){return J===10||J===13||J===8232||J===8233}function O0(J,R,_){_===void 0&&(_=J.length);for(var y=R;y<_;y++){var p=J.charCodeAt(y);if(r(p))return y<_-1&&p===13&&J.charCodeAt(y+1)===10?y+2:y+1}return-1}var U=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,X=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$=Object.prototype,Q=$.hasOwnProperty,K=$.toString,L=Object.hasOwn||function(J,R){return Q.call(J,R)},T=Array.isArray||function(J){return K.call(J)==="[object Array]"},I=Object.create(null);function Z(J){return I[J]||(I[J]=new RegExp("^(?:"+J.replace(/ /g,"|")+")$"))}function H(J){return J<=65535?String.fromCharCode(J):(J-=65536,String.fromCharCode(55296+(J>>10),56320+(1023&J)))}var N=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(J,R){this.line=J,this.column=R};B.prototype.offset=function(J){return new B(this.line,this.column+J)};var w=function(J,R,_){this.start=R,this.end=_,J.sourceFile!==null&&(this.source=J.sourceFile)};function u(J,R){for(var _=1,y=0;;){var p=O0(J,y,R);if(p<0)return new B(_,R-y);++_,y=p}}var s={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Y0=!1;function M0(J){var R={};for(var _ in s)R[_]=J&&L(J,_)?J[_]:s[_];if(R.ecmaVersion==="latest"?R.ecmaVersion=1e8:R.ecmaVersion==null?(!Y0&&typeof console=="object"&&console.warn&&(Y0=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
80
|
-
Defaulting to 2020, but this will stop working in the future.`)),R.ecmaVersion=11):R.ecmaVersion>=2015&&(R.ecmaVersion-=2009),R.allowReserved==null&&(R.allowReserved=R.ecmaVersion<5),J&&J.allowHashBang!=null||(R.allowHashBang=R.ecmaVersion>=14),T(R.onToken)){var y=R.onToken;R.onToken=function(p){return y.push(p)}}return T(R.onComment)&&(R.onComment=function(p,Z0){return function(X0,I0,P0,h0,w0,a0){var s0={type:X0?"Block":"Line",value:I0,start:P0,end:h0};p.locations&&(s0.loc=new w(this,w0,a0)),p.ranges&&(s0.range=[P0,h0]),Z0.push(s0)}}(R,R.onComment)),R}var n=256,b=259;function a(J,R){return 2|(J?4:0)|(R?8:0)}var l=function(J,R,_){this.options=J=M0(J),this.sourceFile=J.sourceFile,this.keywords=Z(q[J.ecmaVersion>=6?6:J.sourceType==="module"?"5module":5]);var y="";J.allowReserved!==!0&&(y=j[J.ecmaVersion>=6?6:J.ecmaVersion===5?5:3],J.sourceType==="module"&&(y+=" await")),this.reservedWords=Z(y);var p=(y?y+" ":"")+j.strict;this.reservedWordsStrict=Z(p),this.reservedWordsStrictBind=Z(p+" "+j.strictBind),this.input=String(R),this.containsEsc=!1,_?(this.pos=_,this.lineStart=this.input.lastIndexOf(`
|
|
81
|
-
`,_-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Q0).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=J.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&J.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},G0={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};l.prototype.parse=function(){var J=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(J)},G0.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},G0.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},G0.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},G0.canAwait.get=function(){for(var J=this.scopeStack.length-1;J>=0;J--){var R=this.scopeStack[J].flags;if(768&R)return!1;if(2&R)return(4&R)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},G0.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},G0.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},G0.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},G0.allowNewDotTarget.get=function(){for(var J=this.scopeStack.length-1;J>=0;J--){var R=this.scopeStack[J].flags;if(768&R||2&R&&!(16&R))return!0}return!1},G0.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&n)>0},l.extend=function(){for(var J=[],R=arguments.length;R--;)J[R]=arguments[R];for(var _=this,y=0;y<J.length;y++)_=J[y](_);return _},l.parse=function(J,R){return new this(R,J).parse()},l.parseExpressionAt=function(J,R,_){var y=new this(_,J,R);return y.nextToken(),y.parseExpression()},l.tokenizer=function(J,R){return new this(R,J)},Object.defineProperties(l.prototype,G0);var A0=l.prototype,o=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;A0.strictDirective=function(J){if(this.options.ecmaVersion<5)return!1;for(;;){X.lastIndex=J,J+=X.exec(this.input)[0].length;var R=o.exec(this.input.slice(J));if(!R)return!1;if((R[1]||R[2])==="use strict"){X.lastIndex=J+R[0].length;var _=X.exec(this.input),y=_.index+_[0].length,p=this.input.charAt(y);return p===";"||p==="}"||Q0.test(_[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(p)||p==="!"&&this.input.charAt(y+1)==="=")}J+=R[0].length,X.lastIndex=J,J+=X.exec(this.input)[0].length,this.input[J]===";"&&J++}},A0.eat=function(J){return this.type===J&&(this.next(),!0)},A0.isContextual=function(J){return this.type===g.name&&this.value===J&&!this.containsEsc},A0.eatContextual=function(J){return!!this.isContextual(J)&&(this.next(),!0)},A0.expectContextual=function(J){this.eatContextual(J)||this.unexpected()},A0.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||Q0.test(this.input.slice(this.lastTokEnd,this.start))},A0.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},A0.semicolon=function(){this.eat(g.semi)||this.insertSemicolon()||this.unexpected()},A0.afterTrailingComma=function(J,R){if(this.type===J)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),R||this.next(),!0},A0.expect=function(J){this.eat(J)||this.unexpected()},A0.unexpected=function(J){this.raise(J!=null?J:this.start,"Unexpected token")};var t=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};A0.checkPatternErrors=function(J,R){if(J){J.trailingComma>-1&&this.raiseRecoverable(J.trailingComma,"Comma is not permitted after the rest element");var _=R?J.parenthesizedAssign:J.parenthesizedBind;_>-1&&this.raiseRecoverable(_,R?"Assigning to rvalue":"Parenthesized pattern")}},A0.checkExpressionErrors=function(J,R){if(!J)return!1;var{shorthandAssign:_,doubleProto:y}=J;if(!R)return _>=0||y>=0;_>=0&&this.raise(_,"Shorthand property assignments are valid only in destructuring patterns"),y>=0&&this.raiseRecoverable(y,"Redefinition of __proto__ property")},A0.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},A0.isSimpleAssignTarget=function(J){return J.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(J.expression):J.type==="Identifier"||J.type==="MemberExpression"};var V0=l.prototype;V0.parseTopLevel=function(J){var R=Object.create(null);for(J.body||(J.body=[]);this.type!==g.eof;){var _=this.parseStatement(null,!0,R);J.body.push(_)}if(this.inModule)for(var y=0,p=Object.keys(this.undefinedExports);y<p.length;y+=1){var Z0=p[y];this.raiseRecoverable(this.undefinedExports[Z0].start,"Export '"+Z0+"' is not defined")}return this.adaptDirectivePrologue(J.body),this.next(),J.sourceType=this.options.sourceType,this.finishNode(J,"Program")};var z0={kind:"loop"},U0={kind:"switch"};V0.isLet=function(J){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;X.lastIndex=this.pos;var R=X.exec(this.input),_=this.pos+R[0].length,y=this.input.charCodeAt(_);if(y===91||y===92)return!0;if(J)return!1;if(y===123||y>55295&&y<56320)return!0;if(S(y,!0)){for(var p=_+1;P(y=this.input.charCodeAt(p),!0);)++p;if(y===92||y>55295&&y<56320)return!0;var Z0=this.input.slice(_,p);if(!C.test(Z0))return!0}return!1},V0.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var J,R=X.exec(this.input),_=this.pos+R[0].length;return!(Q0.test(this.input.slice(this.pos,_))||this.input.slice(_,_+8)!=="function"||_+8!==this.input.length&&(P(J=this.input.charCodeAt(_+8))||J>55295&&J<56320))},V0.isUsingKeyword=function(J,R){if(this.options.ecmaVersion<17||!this.isContextual(J?"await":"using"))return!1;X.lastIndex=this.pos;var _=X.exec(this.input),y=this.pos+_[0].length;if(Q0.test(this.input.slice(this.pos,y)))return!1;if(J){var p,Z0=y+5;if(this.input.slice(y,Z0)!=="using"||Z0===this.input.length||P(p=this.input.charCodeAt(Z0))||p>55295&&p<56320)return!1;X.lastIndex=Z0;var X0=X.exec(this.input);if(X0&&Q0.test(this.input.slice(Z0,Z0+X0[0].length)))return!1}if(R){var I0,P0=y+2;if(!(this.input.slice(y,P0)!=="of"||P0!==this.input.length&&(P(I0=this.input.charCodeAt(P0))||I0>55295&&I0<56320)))return!1}var h0=this.input.charCodeAt(y);return S(h0,!0)||h0===92},V0.isAwaitUsing=function(J){return this.isUsingKeyword(!0,J)},V0.isUsing=function(J){return this.isUsingKeyword(!1,J)},V0.parseStatement=function(J,R,_){var y,p=this.type,Z0=this.startNode();switch(this.isLet(J)&&(p=g._var,y="let"),p){case g._break:case g._continue:return this.parseBreakContinueStatement(Z0,p.keyword);case g._debugger:return this.parseDebuggerStatement(Z0);case g._do:return this.parseDoStatement(Z0);case g._for:return this.parseForStatement(Z0);case g._function:return J&&(this.strict||J!=="if"&&J!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(Z0,!1,!J);case g._class:return J&&this.unexpected(),this.parseClass(Z0,!0);case g._if:return this.parseIfStatement(Z0);case g._return:return this.parseReturnStatement(Z0);case g._switch:return this.parseSwitchStatement(Z0);case g._throw:return this.parseThrowStatement(Z0);case g._try:return this.parseTryStatement(Z0);case g._const:case g._var:return y=y||this.value,J&&y!=="var"&&this.unexpected(),this.parseVarStatement(Z0,y);case g._while:return this.parseWhileStatement(Z0);case g._with:return this.parseWithStatement(Z0);case g.braceL:return this.parseBlock(!0,Z0);case g.semi:return this.parseEmptyStatement(Z0);case g._export:case g._import:if(this.options.ecmaVersion>10&&p===g._import){X.lastIndex=this.pos;var X0=X.exec(this.input),I0=this.pos+X0[0].length,P0=this.input.charCodeAt(I0);if(P0===40||P0===46)return this.parseExpressionStatement(Z0,this.parseExpression())}return this.options.allowImportExportEverywhere||(R||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),p===g._import?this.parseImport(Z0):this.parseExport(Z0,_);default:if(this.isAsyncFunction())return J&&this.unexpected(),this.next(),this.parseFunctionStatement(Z0,!0,!J);var h0=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h0)return R&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),h0==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(Z0,!1,h0),this.semicolon(),this.finishNode(Z0,"VariableDeclaration");var w0=this.value,a0=this.parseExpression();return p===g.name&&a0.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(Z0,w0,a0,J):this.parseExpressionStatement(Z0,a0)}},V0.parseBreakContinueStatement=function(J,R){var _=R==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?J.label=null:this.type!==g.name?this.unexpected():(J.label=this.parseIdent(),this.semicolon());for(var y=0;y<this.labels.length;++y){var p=this.labels[y];if(J.label==null||p.name===J.label.name){if(p.kind!=null&&(_||p.kind==="loop"))break;if(J.label&&_)break}}return y===this.labels.length&&this.raise(J.start,"Unsyntactic "+R),this.finishNode(J,_?"BreakStatement":"ContinueStatement")},V0.parseDebuggerStatement=function(J){return this.next(),this.semicolon(),this.finishNode(J,"DebuggerStatement")},V0.parseDoStatement=function(J){return this.next(),this.labels.push(z0),J.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),J.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(J,"DoWhileStatement")},V0.parseForStatement=function(J){this.next();var R=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(z0),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return R>-1&&this.unexpected(R),this.parseFor(J,null);var _=this.isLet();if(this.type===g._var||this.type===g._const||_){var y=this.startNode(),p=_?"let":this.value;return this.next(),this.parseVar(y,!0,p),this.finishNode(y,"VariableDeclaration"),this.parseForAfterInit(J,y,R)}var Z0=this.isContextual("let"),X0=!1,I0=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(I0){var P0=this.startNode();return this.next(),I0==="await using"&&this.next(),this.parseVar(P0,!0,I0),this.finishNode(P0,"VariableDeclaration"),this.parseForAfterInit(J,P0,R)}var h0=this.containsEsc,w0=new t,a0=this.start,s0=R>-1?this.parseExprSubscripts(w0,"await"):this.parseExpression(!0,w0);return this.type===g._in||(X0=this.options.ecmaVersion>=6&&this.isContextual("of"))?(R>-1?(this.type===g._in&&this.unexpected(R),J.await=!0):X0&&this.options.ecmaVersion>=8&&(s0.start!==a0||h0||s0.type!=="Identifier"||s0.name!=="async"?this.options.ecmaVersion>=9&&(J.await=!1):this.unexpected()),Z0&&X0&&this.raise(s0.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(s0,!1,w0),this.checkLValPattern(s0),this.parseForIn(J,s0)):(this.checkExpressionErrors(w0,!0),R>-1&&this.unexpected(R),this.parseFor(J,s0))},V0.parseForAfterInit=function(J,R,_){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&R.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?_>-1&&this.unexpected(_):J.await=_>-1),this.parseForIn(J,R)):(_>-1&&this.unexpected(_),this.parseFor(J,R))},V0.parseFunctionStatement=function(J,R,_){return this.next(),this.parseFunction(J,e|(_?0:H0),!1,R)},V0.parseIfStatement=function(J){return this.next(),J.test=this.parseParenExpression(),J.consequent=this.parseStatement("if"),J.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(J,"IfStatement")},V0.parseReturnStatement=function(J){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?J.argument=null:(J.argument=this.parseExpression(),this.semicolon()),this.finishNode(J,"ReturnStatement")},V0.parseSwitchStatement=function(J){var R;this.next(),J.discriminant=this.parseParenExpression(),J.cases=[],this.expect(g.braceL),this.labels.push(U0),this.enterScope(0);for(var _=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var y=this.type===g._case;R&&this.finishNode(R,"SwitchCase"),J.cases.push(R=this.startNode()),R.consequent=[],this.next(),y?R.test=this.parseExpression():(_&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),_=!0,R.test=null),this.expect(g.colon)}else R||this.unexpected(),R.consequent.push(this.parseStatement(null));return this.exitScope(),R&&this.finishNode(R,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(J,"SwitchStatement")},V0.parseThrowStatement=function(J){return this.next(),Q0.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),J.argument=this.parseExpression(),this.semicolon(),this.finishNode(J,"ThrowStatement")};var x0=[];V0.parseCatchClauseParam=function(){var J=this.parseBindingAtom(),R=J.type==="Identifier";return this.enterScope(R?32:0),this.checkLValPattern(J,R?4:2),this.expect(g.parenR),J},V0.parseTryStatement=function(J){if(this.next(),J.block=this.parseBlock(),J.handler=null,this.type===g._catch){var R=this.startNode();this.next(),this.eat(g.parenL)?R.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),R.param=null,this.enterScope(0)),R.body=this.parseBlock(!1),this.exitScope(),J.handler=this.finishNode(R,"CatchClause")}return J.finalizer=this.eat(g._finally)?this.parseBlock():null,J.handler||J.finalizer||this.raise(J.start,"Missing catch or finally clause"),this.finishNode(J,"TryStatement")},V0.parseVarStatement=function(J,R,_){return this.next(),this.parseVar(J,!1,R,_),this.semicolon(),this.finishNode(J,"VariableDeclaration")},V0.parseWhileStatement=function(J){return this.next(),J.test=this.parseParenExpression(),this.labels.push(z0),J.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(J,"WhileStatement")},V0.parseWithStatement=function(J){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),J.object=this.parseParenExpression(),J.body=this.parseStatement("with"),this.finishNode(J,"WithStatement")},V0.parseEmptyStatement=function(J){return this.next(),this.finishNode(J,"EmptyStatement")},V0.parseLabeledStatement=function(J,R,_,y){for(var p=0,Z0=this.labels;p<Z0.length;p+=1)Z0[p].name===R&&this.raise(_.start,"Label '"+R+"' is already declared");for(var X0=this.type.isLoop?"loop":this.type===g._switch?"switch":null,I0=this.labels.length-1;I0>=0;I0--){var P0=this.labels[I0];if(P0.statementStart!==J.start)break;P0.statementStart=this.start,P0.kind=X0}return this.labels.push({name:R,kind:X0,statementStart:this.start}),J.body=this.parseStatement(y?y.indexOf("label")===-1?y+"label":y:"label"),this.labels.pop(),J.label=_,this.finishNode(J,"LabeledStatement")},V0.parseExpressionStatement=function(J,R){return J.expression=R,this.semicolon(),this.finishNode(J,"ExpressionStatement")},V0.parseBlock=function(J,R,_){for(J===void 0&&(J=!0),R===void 0&&(R=this.startNode()),R.body=[],this.expect(g.braceL),J&&this.enterScope(0);this.type!==g.braceR;){var y=this.parseStatement(null);R.body.push(y)}return _&&(this.strict=!1),this.next(),J&&this.exitScope(),this.finishNode(R,"BlockStatement")},V0.parseFor=function(J,R){return J.init=R,this.expect(g.semi),J.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),J.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),J.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(J,"ForStatement")},V0.parseForIn=function(J,R){var _=this.type===g._in;return this.next(),R.type==="VariableDeclaration"&&R.declarations[0].init!=null&&(!_||this.options.ecmaVersion<8||this.strict||R.kind!=="var"||R.declarations[0].id.type!=="Identifier")&&this.raise(R.start,(_?"for-in":"for-of")+" loop variable declaration may not have an initializer"),J.left=R,J.right=_?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),J.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(J,_?"ForInStatement":"ForOfStatement")},V0.parseVar=function(J,R,_,y){for(J.declarations=[],J.kind=_;;){var p=this.startNode();if(this.parseVarId(p,_),this.eat(g.eq)?p.init=this.parseMaybeAssign(R):y||_!=="const"||this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?y||_!=="using"&&_!=="await using"||!(this.options.ecmaVersion>=17)||this.type===g._in||this.isContextual("of")?y||p.id.type==="Identifier"||R&&(this.type===g._in||this.isContextual("of"))?p.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+_+" declaration"):this.unexpected(),J.declarations.push(this.finishNode(p,"VariableDeclarator")),!this.eat(g.comma))break}return J},V0.parseVarId=function(J,R){J.id=R==="using"||R==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(J.id,R==="var"?1:2,!1)};var e=1,H0=2;function p0(J,R){var _=R.key.name,y=J[_],p="true";return R.type!=="MethodDefinition"||R.kind!=="get"&&R.kind!=="set"||(p=(R.static?"s":"i")+R.kind),y==="iget"&&p==="iset"||y==="iset"&&p==="iget"||y==="sget"&&p==="sset"||y==="sset"&&p==="sget"?(J[_]="true",!1):!!y||(J[_]=p,!1)}function F0(J,R){var{computed:_,key:y}=J;return!_&&(y.type==="Identifier"&&y.name===R||y.type==="Literal"&&y.value===R)}V0.parseFunction=function(J,R,_,y,p){this.initFunction(J),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!y)&&(this.type===g.star&&R&H0&&this.unexpected(),J.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(J.async=!!y),R&e&&(J.id=4&R&&this.type!==g.name?null:this.parseIdent(),!J.id||R&H0||this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?1:2:3));var Z0=this.yieldPos,X0=this.awaitPos,I0=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(a(J.async,J.generator)),R&e||(J.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(J),this.parseFunctionBody(J,_,!1,p),this.yieldPos=Z0,this.awaitPos=X0,this.awaitIdentPos=I0,this.finishNode(J,R&e?"FunctionDeclaration":"FunctionExpression")},V0.parseFunctionParams=function(J){this.expect(g.parenL),J.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},V0.parseClass=function(J,R){this.next();var _=this.strict;this.strict=!0,this.parseClassId(J,R),this.parseClassSuper(J);var y=this.enterClassBody(),p=this.startNode(),Z0=!1;for(p.body=[],this.expect(g.braceL);this.type!==g.braceR;){var X0=this.parseClassElement(J.superClass!==null);X0&&(p.body.push(X0),X0.type==="MethodDefinition"&&X0.kind==="constructor"?(Z0&&this.raiseRecoverable(X0.start,"Duplicate constructor in the same class"),Z0=!0):X0.key&&X0.key.type==="PrivateIdentifier"&&p0(y,X0)&&this.raiseRecoverable(X0.key.start,"Identifier '#"+X0.key.name+"' has already been declared"))}return this.strict=_,this.next(),J.body=this.finishNode(p,"ClassBody"),this.exitClassBody(),this.finishNode(J,R?"ClassDeclaration":"ClassExpression")},V0.parseClassElement=function(J){if(this.eat(g.semi))return null;var R=this.options.ecmaVersion,_=this.startNode(),y="",p=!1,Z0=!1,X0="method",I0=!1;if(this.eatContextual("static")){if(R>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(_),_;this.isClassElementNameStart()||this.type===g.star?I0=!0:y="static"}if(_.static=I0,!y&&R>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==g.star||this.canInsertSemicolon()?y="async":Z0=!0),!y&&(R>=9||!Z0)&&this.eat(g.star)&&(p=!0),!y&&!Z0&&!p){var P0=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?X0=P0:y=P0)}if(y?(_.computed=!1,_.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),_.key.name=y,this.finishNode(_.key,"Identifier")):this.parseClassElementName(_),R<13||this.type===g.parenL||X0!=="method"||p||Z0){var h0=!_.static&&F0(_,"constructor"),w0=h0&&J;h0&&X0!=="method"&&this.raise(_.key.start,"Constructor can't have get/set modifier"),_.kind=h0?"constructor":X0,this.parseClassMethod(_,p,Z0,w0)}else this.parseClassField(_);return _},V0.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},V0.parseClassElementName=function(J){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),J.computed=!1,J.key=this.parsePrivateIdent()):this.parsePropertyName(J)},V0.parseClassMethod=function(J,R,_,y){var p=J.key;J.kind==="constructor"?(R&&this.raise(p.start,"Constructor can't be a generator"),_&&this.raise(p.start,"Constructor can't be an async method")):J.static&&F0(J,"prototype")&&this.raise(p.start,"Classes may not have a static property named prototype");var Z0=J.value=this.parseMethod(R,_,y);return J.kind==="get"&&Z0.params.length!==0&&this.raiseRecoverable(Z0.start,"getter should have no params"),J.kind==="set"&&Z0.params.length!==1&&this.raiseRecoverable(Z0.start,"setter should have exactly one param"),J.kind==="set"&&Z0.params[0].type==="RestElement"&&this.raiseRecoverable(Z0.params[0].start,"Setter cannot use rest params"),this.finishNode(J,"MethodDefinition")},V0.parseClassField=function(J){return F0(J,"constructor")?this.raise(J.key.start,"Classes can't have a field named 'constructor'"):J.static&&F0(J,"prototype")&&this.raise(J.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(576),J.value=this.parseMaybeAssign(),this.exitScope()):J.value=null,this.semicolon(),this.finishNode(J,"PropertyDefinition")},V0.parseClassStaticBlock=function(J){J.body=[];var R=this.labels;for(this.labels=[],this.enterScope(320);this.type!==g.braceR;){var _=this.parseStatement(null);J.body.push(_)}return this.next(),this.exitScope(),this.labels=R,this.finishNode(J,"StaticBlock")},V0.parseClassId=function(J,R){this.type===g.name?(J.id=this.parseIdent(),R&&this.checkLValSimple(J.id,2,!1)):(R===!0&&this.unexpected(),J.id=null)},V0.parseClassSuper=function(J){J.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},V0.enterClassBody=function(){var J={declared:Object.create(null),used:[]};return this.privateNameStack.push(J),J.declared},V0.exitClassBody=function(){var J=this.privateNameStack.pop(),R=J.declared,_=J.used;if(this.options.checkPrivateFields)for(var y=this.privateNameStack.length,p=y===0?null:this.privateNameStack[y-1],Z0=0;Z0<_.length;++Z0){var X0=_[Z0];L(R,X0.name)||(p?p.used.push(X0):this.raiseRecoverable(X0.start,"Private field '#"+X0.name+"' must be declared in an enclosing class"))}},V0.parseExportAllDeclaration=function(J,R){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(J.exported=this.parseModuleExportName(),this.checkExport(R,J.exported,this.lastTokStart)):J.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),J.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(J.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(J,"ExportAllDeclaration")},V0.parseExport=function(J,R){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(J,R);if(this.eat(g._default))return this.checkExport(R,"default",this.lastTokStart),J.declaration=this.parseExportDefaultDeclaration(),this.finishNode(J,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())J.declaration=this.parseExportDeclaration(J),J.declaration.type==="VariableDeclaration"?this.checkVariableExport(R,J.declaration.declarations):this.checkExport(R,J.declaration.id,J.declaration.id.start),J.specifiers=[],J.source=null,this.options.ecmaVersion>=16&&(J.attributes=[]);else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(R),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),J.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(J.attributes=this.parseWithClause());else{for(var _=0,y=J.specifiers;_<y.length;_+=1){var p=y[_];this.checkUnreserved(p.local),this.checkLocalExport(p.local),p.local.type==="Literal"&&this.raise(p.local.start,"A string literal cannot be used as an exported binding without `from`.")}J.source=null,this.options.ecmaVersion>=16&&(J.attributes=[])}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")},V0.parseExportDeclaration=function(J){return this.parseStatement(null)},V0.parseExportDefaultDeclaration=function(){var J;if(this.type===g._function||(J=this.isAsyncFunction())){var R=this.startNode();return this.next(),J&&this.next(),this.parseFunction(R,4|e,!1,J)}if(this.type===g._class){var _=this.startNode();return this.parseClass(_,"nullableID")}var y=this.parseMaybeAssign();return this.semicolon(),y},V0.checkExport=function(J,R,_){J&&(typeof R!="string"&&(R=R.type==="Identifier"?R.name:R.value),L(J,R)&&this.raiseRecoverable(_,"Duplicate export '"+R+"'"),J[R]=!0)},V0.checkPatternExport=function(J,R){var _=R.type;if(_==="Identifier")this.checkExport(J,R,R.start);else if(_==="ObjectPattern")for(var y=0,p=R.properties;y<p.length;y+=1){var Z0=p[y];this.checkPatternExport(J,Z0)}else if(_==="ArrayPattern")for(var X0=0,I0=R.elements;X0<I0.length;X0+=1){var P0=I0[X0];P0&&this.checkPatternExport(J,P0)}else _==="Property"?this.checkPatternExport(J,R.value):_==="AssignmentPattern"?this.checkPatternExport(J,R.left):_==="RestElement"&&this.checkPatternExport(J,R.argument)},V0.checkVariableExport=function(J,R){if(J)for(var _=0,y=R;_<y.length;_+=1){var p=y[_];this.checkPatternExport(J,p.id)}},V0.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},V0.parseExportSpecifier=function(J){var R=this.startNode();return R.local=this.parseModuleExportName(),R.exported=this.eatContextual("as")?this.parseModuleExportName():R.local,this.checkExport(J,R.exported,R.exported.start),this.finishNode(R,"ExportSpecifier")},V0.parseExportSpecifiers=function(J){var R=[],_=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(_)_=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;R.push(this.parseExportSpecifier(J))}return R},V0.parseImport=function(J){return this.next(),this.type===g.string?(J.specifiers=x0,J.source=this.parseExprAtom()):(J.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),J.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(J.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(J,"ImportDeclaration")},V0.parseImportSpecifier=function(){var J=this.startNode();return J.imported=this.parseModuleExportName(),this.eatContextual("as")?J.local=this.parseIdent():(this.checkUnreserved(J.imported),J.local=J.imported),this.checkLValSimple(J.local,2),this.finishNode(J,"ImportSpecifier")},V0.parseImportDefaultSpecifier=function(){var J=this.startNode();return J.local=this.parseIdent(),this.checkLValSimple(J.local,2),this.finishNode(J,"ImportDefaultSpecifier")},V0.parseImportNamespaceSpecifier=function(){var J=this.startNode();return this.next(),this.expectContextual("as"),J.local=this.parseIdent(),this.checkLValSimple(J.local,2),this.finishNode(J,"ImportNamespaceSpecifier")},V0.parseImportSpecifiers=function(){var J=[],R=!0;if(this.type===g.name&&(J.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return J;if(this.type===g.star)return J.push(this.parseImportNamespaceSpecifier()),J;for(this.expect(g.braceL);!this.eat(g.braceR);){if(R)R=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;J.push(this.parseImportSpecifier())}return J},V0.parseWithClause=function(){var J=[];if(!this.eat(g._with))return J;this.expect(g.braceL);for(var R={},_=!0;!this.eat(g.braceR);){if(_)_=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var y=this.parseImportAttribute(),p=y.key.type==="Identifier"?y.key.name:y.key.value;L(R,p)&&this.raiseRecoverable(y.key.start,"Duplicate attribute key '"+p+"'"),R[p]=!0,J.push(y)}return J},V0.parseImportAttribute=function(){var J=this.startNode();return J.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),J.value=this.parseExprAtom(),this.finishNode(J,"ImportAttribute")},V0.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var J=this.parseLiteral(this.value);return N.test(J.value)&&this.raise(J.start,"An export name cannot include a lone surrogate."),J}return this.parseIdent(!0)},V0.adaptDirectivePrologue=function(J){for(var R=0;R<J.length&&this.isDirectiveCandidate(J[R]);++R)J[R].directive=J[R].expression.raw.slice(1,-1)},V0.isDirectiveCandidate=function(J){return this.options.ecmaVersion>=5&&J.type==="ExpressionStatement"&&J.expression.type==="Literal"&&typeof J.expression.value=="string"&&(this.input[J.start]==='"'||this.input[J.start]==="'")};var D0=l.prototype;D0.toAssignable=function(J,R,_){if(this.options.ecmaVersion>=6&&J)switch(J.type){case"Identifier":this.inAsync&&J.name==="await"&&this.raise(J.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":J.type="ObjectPattern",_&&this.checkPatternErrors(_,!0);for(var y=0,p=J.properties;y<p.length;y+=1){var Z0=p[y];this.toAssignable(Z0,R),Z0.type!=="RestElement"||Z0.argument.type!=="ArrayPattern"&&Z0.argument.type!=="ObjectPattern"||this.raise(Z0.argument.start,"Unexpected token")}break;case"Property":J.kind!=="init"&&this.raise(J.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(J.value,R);break;case"ArrayExpression":J.type="ArrayPattern",_&&this.checkPatternErrors(_,!0),this.toAssignableList(J.elements,R);break;case"SpreadElement":J.type="RestElement",this.toAssignable(J.argument,R),J.argument.type==="AssignmentPattern"&&this.raise(J.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":J.operator!=="="&&this.raise(J.left.end,"Only '=' operator can be used for specifying default value."),J.type="AssignmentPattern",delete J.operator,this.toAssignable(J.left,R);break;case"ParenthesizedExpression":this.toAssignable(J.expression,R,_);break;case"ChainExpression":this.raiseRecoverable(J.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!R)break;default:this.raise(J.start,"Assigning to rvalue")}else _&&this.checkPatternErrors(_,!0);return J},D0.toAssignableList=function(J,R){for(var _=J.length,y=0;y<_;y++){var p=J[y];p&&this.toAssignable(p,R)}if(_){var Z0=J[_-1];this.options.ecmaVersion===6&&R&&Z0&&Z0.type==="RestElement"&&Z0.argument.type!=="Identifier"&&this.unexpected(Z0.argument.start)}return J},D0.parseSpread=function(J){var R=this.startNode();return this.next(),R.argument=this.parseMaybeAssign(!1,J),this.finishNode(R,"SpreadElement")},D0.parseRestBinding=function(){var J=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),J.argument=this.parseBindingAtom(),this.finishNode(J,"RestElement")},D0.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var J=this.startNode();return this.next(),J.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(J,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},D0.parseBindingList=function(J,R,_,y){for(var p=[],Z0=!0;!this.eat(J);)if(Z0?Z0=!1:this.expect(g.comma),R&&this.type===g.comma)p.push(null);else{if(_&&this.afterTrailingComma(J))break;if(this.type===g.ellipsis){var X0=this.parseRestBinding();this.parseBindingListItem(X0),p.push(X0),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(J);break}p.push(this.parseAssignableListItem(y))}return p},D0.parseAssignableListItem=function(J){var R=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(R),R},D0.parseBindingListItem=function(J){return J},D0.parseMaybeDefault=function(J,R,_){if(_=_||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return _;var y=this.startNodeAt(J,R);return y.left=_,y.right=this.parseMaybeAssign(),this.finishNode(y,"AssignmentPattern")},D0.checkLValSimple=function(J,R,_){R===void 0&&(R=0);var y=R!==0;switch(J.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(J.name)&&this.raiseRecoverable(J.start,(y?"Binding ":"Assigning to ")+J.name+" in strict mode"),y&&(R===2&&J.name==="let"&&this.raiseRecoverable(J.start,"let is disallowed as a lexically bound name"),_&&(L(_,J.name)&&this.raiseRecoverable(J.start,"Argument name clash"),_[J.name]=!0),R!==5&&this.declareName(J.name,R,J.start));break;case"ChainExpression":this.raiseRecoverable(J.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":y&&this.raiseRecoverable(J.start,"Binding member expression");break;case"ParenthesizedExpression":return y&&this.raiseRecoverable(J.start,"Binding parenthesized expression"),this.checkLValSimple(J.expression,R,_);default:this.raise(J.start,(y?"Binding":"Assigning to")+" rvalue")}},D0.checkLValPattern=function(J,R,_){switch(R===void 0&&(R=0),J.type){case"ObjectPattern":for(var y=0,p=J.properties;y<p.length;y+=1){var Z0=p[y];this.checkLValInnerPattern(Z0,R,_)}break;case"ArrayPattern":for(var X0=0,I0=J.elements;X0<I0.length;X0+=1){var P0=I0[X0];P0&&this.checkLValInnerPattern(P0,R,_)}break;default:this.checkLValSimple(J,R,_)}},D0.checkLValInnerPattern=function(J,R,_){switch(R===void 0&&(R=0),J.type){case"Property":this.checkLValInnerPattern(J.value,R,_);break;case"AssignmentPattern":this.checkLValPattern(J.left,R,_);break;case"RestElement":this.checkLValPattern(J.argument,R,_);break;default:this.checkLValPattern(J,R,_)}};var i0=function(J,R,_,y,p){this.token=J,this.isExpr=!!R,this.preserveSpace=!!_,this.override=y,this.generator=!!p},i={b_stat:new i0("{",!1),b_expr:new i0("{",!0),b_tmpl:new i0("${",!1),p_stat:new i0("(",!1),p_expr:new i0("(",!0),q_tmpl:new i0("`",!0,!0,function(J){return J.tryReadTemplateToken()}),f_stat:new i0("function",!1),f_expr:new i0("function",!0),f_expr_gen:new i0("function",!0,!1,null,!0),f_gen:new i0("function",!1,!1,null,!0)},W0=l.prototype;W0.initialContext=function(){return[i.b_stat]},W0.curContext=function(){return this.context[this.context.length-1]},W0.braceIsBlock=function(J){var R=this.curContext();return R===i.f_expr||R===i.f_stat||(J!==g.colon||R!==i.b_stat&&R!==i.b_expr?J===g._return||J===g.name&&this.exprAllowed?Q0.test(this.input.slice(this.lastTokEnd,this.start)):J===g._else||J===g.semi||J===g.eof||J===g.parenR||J===g.arrow||(J===g.braceL?R===i.b_stat:J!==g._var&&J!==g._const&&J!==g.name&&!this.exprAllowed):!R.isExpr)},W0.inGeneratorContext=function(){for(var J=this.context.length-1;J>=1;J--){var R=this.context[J];if(R.token==="function")return R.generator}return!1},W0.updateContext=function(J){var R,_=this.type;_.keyword&&J===g.dot?this.exprAllowed=!1:(R=_.updateContext)?R.call(this,J):this.exprAllowed=_.beforeExpr},W0.overrideContext=function(J){this.curContext()!==J&&(this.context[this.context.length-1]=J)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length!==1){var J=this.context.pop();J===i.b_stat&&this.curContext().token==="function"&&(J=this.context.pop()),this.exprAllowed=!J.isExpr}else this.exprAllowed=!0},g.braceL.updateContext=function(J){this.context.push(this.braceIsBlock(J)?i.b_stat:i.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(i.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(J){var R=J===g._if||J===g._for||J===g._with||J===g._while;this.context.push(R?i.p_stat:i.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(J){!J.beforeExpr||J===g._else||J===g.semi&&this.curContext()!==i.p_stat||J===g._return&&Q0.test(this.input.slice(this.lastTokEnd,this.start))||(J===g.colon||J===g.braceL)&&this.curContext()===i.b_stat?this.context.push(i.f_stat):this.context.push(i.f_expr),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===i.q_tmpl?this.context.pop():this.context.push(i.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(J){if(J===g._function){var R=this.context.length-1;this.context[R]===i.f_expr?this.context[R]=i.f_expr_gen:this.context[R]=i.f_gen}this.exprAllowed=!0},g.name.updateContext=function(J){var R=!1;this.options.ecmaVersion>=6&&J!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(R=!0),this.exprAllowed=R};var v0=l.prototype;function q0(J){return J.type==="Identifier"||J.type==="ParenthesizedExpression"&&q0(J.expression)}function S0(J){return J.type==="MemberExpression"&&J.property.type==="PrivateIdentifier"||J.type==="ChainExpression"&&S0(J.expression)||J.type==="ParenthesizedExpression"&&S0(J.expression)}v0.checkPropClash=function(J,R,_){if(!(this.options.ecmaVersion>=9&&J.type==="SpreadElement"||this.options.ecmaVersion>=6&&(J.computed||J.method||J.shorthand))){var y,p=J.key;switch(p.type){case"Identifier":y=p.name;break;case"Literal":y=String(p.value);break;default:return}var Z0=J.kind;if(this.options.ecmaVersion>=6)y==="__proto__"&&Z0==="init"&&(R.proto&&(_?_.doubleProto<0&&(_.doubleProto=p.start):this.raiseRecoverable(p.start,"Redefinition of __proto__ property")),R.proto=!0);else{var X0=R[y="$"+y];if(X0)(Z0==="init"?this.strict&&X0.init||X0.get||X0.set:X0.init||X0[Z0])&&this.raiseRecoverable(p.start,"Redefinition of property");else X0=R[y]={init:!1,get:!1,set:!1};X0[Z0]=!0}}},v0.parseExpression=function(J,R){var _=this.start,y=this.startLoc,p=this.parseMaybeAssign(J,R);if(this.type===g.comma){var Z0=this.startNodeAt(_,y);for(Z0.expressions=[p];this.eat(g.comma);)Z0.expressions.push(this.parseMaybeAssign(J,R));return this.finishNode(Z0,"SequenceExpression")}return p},v0.parseMaybeAssign=function(J,R,_){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(J);this.exprAllowed=!1}var y=!1,p=-1,Z0=-1,X0=-1;R?(p=R.parenthesizedAssign,Z0=R.trailingComma,X0=R.doubleProto,R.parenthesizedAssign=R.trailingComma=-1):(R=new t,y=!0);var I0=this.start,P0=this.startLoc;this.type!==g.parenL&&this.type!==g.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await");var h0=this.parseMaybeConditional(J,R);if(_&&(h0=_.call(this,h0,I0,P0)),this.type.isAssign){var w0=this.startNodeAt(I0,P0);return w0.operator=this.value,this.type===g.eq&&(h0=this.toAssignable(h0,!1,R)),y||(R.parenthesizedAssign=R.trailingComma=R.doubleProto=-1),R.shorthandAssign>=h0.start&&(R.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(h0):this.checkLValSimple(h0),w0.left=h0,this.next(),w0.right=this.parseMaybeAssign(J),X0>-1&&(R.doubleProto=X0),this.finishNode(w0,"AssignmentExpression")}return y&&this.checkExpressionErrors(R,!0),p>-1&&(R.parenthesizedAssign=p),Z0>-1&&(R.trailingComma=Z0),h0},v0.parseMaybeConditional=function(J,R){var _=this.start,y=this.startLoc,p=this.parseExprOps(J,R);if(this.checkExpressionErrors(R))return p;if(this.eat(g.question)){var Z0=this.startNodeAt(_,y);return Z0.test=p,Z0.consequent=this.parseMaybeAssign(),this.expect(g.colon),Z0.alternate=this.parseMaybeAssign(J),this.finishNode(Z0,"ConditionalExpression")}return p},v0.parseExprOps=function(J,R){var _=this.start,y=this.startLoc,p=this.parseMaybeUnary(R,!1,!1,J);return this.checkExpressionErrors(R)||p.start===_&&p.type==="ArrowFunctionExpression"?p:this.parseExprOp(p,_,y,-1,J)},v0.parseExprOp=function(J,R,_,y,p){var Z0=this.type.binop;if(Z0!=null&&(!p||this.type!==g._in)&&Z0>y){var X0=this.type===g.logicalOR||this.type===g.logicalAND,I0=this.type===g.coalesce;I0&&(Z0=g.logicalAND.binop);var P0=this.value;this.next();var h0=this.start,w0=this.startLoc,a0=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,p),h0,w0,Z0,p),s0=this.buildBinary(R,_,J,a0,P0,X0||I0);return(X0&&this.type===g.coalesce||I0&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(s0,R,_,y,p)}return J},v0.buildBinary=function(J,R,_,y,p,Z0){y.type==="PrivateIdentifier"&&this.raise(y.start,"Private identifier can only be left side of binary expression");var X0=this.startNodeAt(J,R);return X0.left=_,X0.operator=p,X0.right=y,this.finishNode(X0,Z0?"LogicalExpression":"BinaryExpression")},v0.parseMaybeUnary=function(J,R,_,y){var p,Z0=this.start,X0=this.startLoc;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(y),R=!0;else if(this.type.prefix){var I0=this.startNode(),P0=this.type===g.incDec;I0.operator=this.value,I0.prefix=!0,this.next(),I0.argument=this.parseMaybeUnary(null,!0,P0,y),this.checkExpressionErrors(J,!0),P0?this.checkLValSimple(I0.argument):this.strict&&I0.operator==="delete"&&q0(I0.argument)?this.raiseRecoverable(I0.start,"Deleting local variable in strict mode"):I0.operator==="delete"&&S0(I0.argument)?this.raiseRecoverable(I0.start,"Private fields can not be deleted"):R=!0,p=this.finishNode(I0,P0?"UpdateExpression":"UnaryExpression")}else if(R||this.type!==g.privateId){if(p=this.parseExprSubscripts(J,y),this.checkExpressionErrors(J))return p;for(;this.type.postfix&&!this.canInsertSemicolon();){var h0=this.startNodeAt(Z0,X0);h0.operator=this.value,h0.prefix=!1,h0.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(h0,"UpdateExpression")}}else(y||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),p=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();return _||!this.eat(g.starstar)?p:R?void this.unexpected(this.lastTokStart):this.buildBinary(Z0,X0,p,this.parseMaybeUnary(null,!1,!1,y),"**",!1)},v0.parseExprSubscripts=function(J,R){var _=this.start,y=this.startLoc,p=this.parseExprAtom(J,R);if(p.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return p;var Z0=this.parseSubscripts(p,_,y,!1,R);return J&&Z0.type==="MemberExpression"&&(J.parenthesizedAssign>=Z0.start&&(J.parenthesizedAssign=-1),J.parenthesizedBind>=Z0.start&&(J.parenthesizedBind=-1),J.trailingComma>=Z0.start&&(J.trailingComma=-1)),Z0},v0.parseSubscripts=function(J,R,_,y,p){for(var Z0=this.options.ecmaVersion>=8&&J.type==="Identifier"&&J.name==="async"&&this.lastTokEnd===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&this.potentialArrowAt===J.start,X0=!1;;){var I0=this.parseSubscript(J,R,_,y,Z0,X0,p);if(I0.optional&&(X0=!0),I0===J||I0.type==="ArrowFunctionExpression"){if(X0){var P0=this.startNodeAt(R,_);P0.expression=I0,I0=this.finishNode(P0,"ChainExpression")}return I0}J=I0}},v0.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},v0.parseSubscriptAsyncArrow=function(J,R,_,y){return this.parseArrowExpression(this.startNodeAt(J,R),_,!0,y)},v0.parseSubscript=function(J,R,_,y,p,Z0,X0){var I0=this.options.ecmaVersion>=11,P0=I0&&this.eat(g.questionDot);y&&P0&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h0=this.eat(g.bracketL);if(h0||P0&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var w0=this.startNodeAt(R,_);w0.object=J,h0?(w0.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&J.type!=="Super"?w0.property=this.parsePrivateIdent():w0.property=this.parseIdent(this.options.allowReserved!=="never"),w0.computed=!!h0,I0&&(w0.optional=P0),J=this.finishNode(w0,"MemberExpression")}else if(!y&&this.eat(g.parenL)){var a0=new t,s0=this.yieldPos,GU=this.awaitPos,SU=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var VU=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,a0);if(p&&!P0&&this.shouldParseAsyncArrow())return this.checkPatternErrors(a0,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=s0,this.awaitPos=GU,this.awaitIdentPos=SU,this.parseSubscriptAsyncArrow(R,_,VU,X0);this.checkExpressionErrors(a0,!0),this.yieldPos=s0||this.yieldPos,this.awaitPos=GU||this.awaitPos,this.awaitIdentPos=SU||this.awaitIdentPos;var LU=this.startNodeAt(R,_);LU.callee=J,LU.arguments=VU,I0&&(LU.optional=P0),J=this.finishNode(LU,"CallExpression")}else if(this.type===g.backQuote){(P0||Z0)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var DU=this.startNodeAt(R,_);DU.tag=J,DU.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(DU,"TaggedTemplateExpression")}return J},v0.parseExprAtom=function(J,R,_){this.type===g.slash&&this.readRegexp();var y,p=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),y=this.startNode(),this.next(),this.type!==g.parenL||this.allowDirectSuper||this.raise(y.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(y,"Super");case g._this:return y=this.startNode(),this.next(),this.finishNode(y,"ThisExpression");case g.name:var Z0=this.start,X0=this.startLoc,I0=this.containsEsc,P0=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!I0&&P0.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(i.f_expr),this.parseFunction(this.startNodeAt(Z0,X0),0,!1,!0,R);if(p&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(Z0,X0),[P0],!1,R);if(this.options.ecmaVersion>=8&&P0.name==="async"&&this.type===g.name&&!I0&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return P0=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(g.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(Z0,X0),[P0],!0,R)}return P0;case g.regexp:var h0=this.value;return(y=this.parseLiteral(h0.value)).regex={pattern:h0.pattern,flags:h0.flags},y;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return(y=this.startNode()).value=this.type===g._null?null:this.type===g._true,y.raw=this.type.keyword,this.next(),this.finishNode(y,"Literal");case g.parenL:var w0=this.start,a0=this.parseParenAndDistinguishExpression(p,R);return J&&(J.parenthesizedAssign<0&&!this.isSimpleAssignTarget(a0)&&(J.parenthesizedAssign=w0),J.parenthesizedBind<0&&(J.parenthesizedBind=w0)),a0;case g.bracketL:return y=this.startNode(),this.next(),y.elements=this.parseExprList(g.bracketR,!0,!0,J),this.finishNode(y,"ArrayExpression");case g.braceL:return this.overrideContext(i.b_expr),this.parseObj(!1,J);case g._function:return y=this.startNode(),this.next(),this.parseFunction(y,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(_):this.unexpected();default:return this.parseExprAtomDefault()}},v0.parseExprAtomDefault=function(){this.unexpected()},v0.parseExprImport=function(J){var R=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!J)return this.parseDynamicImport(R);if(this.type===g.dot){var _=this.startNodeAt(R.start,R.loc&&R.loc.start);return _.name="import",R.meta=this.finishNode(_,"Identifier"),this.parseImportMeta(R)}this.unexpected()},v0.parseDynamicImport=function(J){if(this.next(),J.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?J.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?J.options=null:(J.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var R=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(R,"Trailing comma is not allowed in import()"):this.unexpected(R)}return this.finishNode(J,"ImportExpression")},v0.parseImportMeta=function(J){this.next();var R=this.containsEsc;return J.property=this.parseIdent(!0),J.property.name!=="meta"&&this.raiseRecoverable(J.property.start,"The only valid meta property for import is 'import.meta'"),R&&this.raiseRecoverable(J.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(J.start,"Cannot use 'import.meta' outside a module"),this.finishNode(J,"MetaProperty")},v0.parseLiteral=function(J){var R=this.startNode();return R.value=J,R.raw=this.input.slice(this.start,this.end),R.raw.charCodeAt(R.raw.length-1)===110&&(R.bigint=R.value!=null?R.value.toString():R.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(R,"Literal")},v0.parseParenExpression=function(){this.expect(g.parenL);var J=this.parseExpression();return this.expect(g.parenR),J},v0.shouldParseArrow=function(J){return!this.canInsertSemicolon()},v0.parseParenAndDistinguishExpression=function(J,R){var _,y=this.start,p=this.startLoc,Z0=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X0,I0=this.start,P0=this.startLoc,h0=[],w0=!0,a0=!1,s0=new t,GU=this.yieldPos,SU=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;){if(w0?w0=!1:this.expect(g.comma),Z0&&this.afterTrailingComma(g.parenR,!0)){a0=!0;break}if(this.type===g.ellipsis){X0=this.start,h0.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h0.push(this.parseMaybeAssign(!1,s0,this.parseParenItem))}var VU=this.lastTokEnd,LU=this.lastTokEndLoc;if(this.expect(g.parenR),J&&this.shouldParseArrow(h0)&&this.eat(g.arrow))return this.checkPatternErrors(s0,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=GU,this.awaitPos=SU,this.parseParenArrowList(y,p,h0,R);h0.length&&!a0||this.unexpected(this.lastTokStart),X0&&this.unexpected(X0),this.checkExpressionErrors(s0,!0),this.yieldPos=GU||this.yieldPos,this.awaitPos=SU||this.awaitPos,h0.length>1?((_=this.startNodeAt(I0,P0)).expressions=h0,this.finishNodeAt(_,"SequenceExpression",VU,LU)):_=h0[0]}else _=this.parseParenExpression();if(this.options.preserveParens){var DU=this.startNodeAt(y,p);return DU.expression=_,this.finishNode(DU,"ParenthesizedExpression")}return _},v0.parseParenItem=function(J){return J},v0.parseParenArrowList=function(J,R,_,y){return this.parseArrowExpression(this.startNodeAt(J,R),_,!1,y)};var e0=[];v0.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var J=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var R=this.startNodeAt(J.start,J.loc&&J.loc.start);R.name="new",J.meta=this.finishNode(R,"Identifier"),this.next();var _=this.containsEsc;return J.property=this.parseIdent(!0),J.property.name!=="target"&&this.raiseRecoverable(J.property.start,"The only valid meta property for new is 'new.target'"),_&&this.raiseRecoverable(J.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(J.start,"'new.target' can only be used in functions and class static block"),this.finishNode(J,"MetaProperty")}var y=this.start,p=this.startLoc;return J.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),y,p,!0,!1),this.eat(g.parenL)?J.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):J.arguments=e0,this.finishNode(J,"NewExpression")},v0.parseTemplateElement=function(J){var R=J.isTagged,_=this.startNode();return this.type===g.invalidTemplate?(R||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),_.value={raw:this.value.replace(/\r\n?/g,`
|
|
82
|
-
`),cooked:null}):_.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
83
|
-
`),cooked:this.value},this.next(),_.tail=this.type===g.backQuote,this.finishNode(_,"TemplateElement")},v0.parseTemplate=function(J){J===void 0&&(J={});var R=J.isTagged;R===void 0&&(R=!1);var _=this.startNode();this.next(),_.expressions=[];var y=this.parseTemplateElement({isTagged:R});for(_.quasis=[y];!y.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),_.expressions.push(this.parseExpression()),this.expect(g.braceR),_.quasis.push(y=this.parseTemplateElement({isTagged:R}));return this.next(),this.finishNode(_,"TemplateLiteral")},v0.isAsyncProp=function(J){return!J.computed&&J.key.type==="Identifier"&&J.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!Q0.test(this.input.slice(this.lastTokEnd,this.start))},v0.parseObj=function(J,R){var _=this.startNode(),y=!0,p={};for(_.properties=[],this.next();!this.eat(g.braceR);){if(y)y=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var Z0=this.parseProperty(J,R);J||this.checkPropClash(Z0,p,R),_.properties.push(Z0)}return this.finishNode(_,J?"ObjectPattern":"ObjectExpression")},v0.parseProperty=function(J,R){var _,y,p,Z0,X0=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return J?(X0.argument=this.parseIdent(!1),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(X0,"RestElement")):(X0.argument=this.parseMaybeAssign(!1,R),this.type===g.comma&&R&&R.trailingComma<0&&(R.trailingComma=this.start),this.finishNode(X0,"SpreadElement"));this.options.ecmaVersion>=6&&(X0.method=!1,X0.shorthand=!1,(J||R)&&(p=this.start,Z0=this.startLoc),J||(_=this.eat(g.star)));var I0=this.containsEsc;return this.parsePropertyName(X0),!J&&!I0&&this.options.ecmaVersion>=8&&!_&&this.isAsyncProp(X0)?(y=!0,_=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(X0)):y=!1,this.parsePropertyValue(X0,J,_,y,p,Z0,R,I0),this.finishNode(X0,"Property")},v0.parseGetterSetter=function(J){var R=J.key.name;this.parsePropertyName(J),J.value=this.parseMethod(!1),J.kind=R;var _=J.kind==="get"?0:1;if(J.value.params.length!==_){var y=J.value.start;J.kind==="get"?this.raiseRecoverable(y,"getter should have no params"):this.raiseRecoverable(y,"setter should have exactly one param")}else J.kind==="set"&&J.value.params[0].type==="RestElement"&&this.raiseRecoverable(J.value.params[0].start,"Setter cannot use rest params")},v0.parsePropertyValue=function(J,R,_,y,p,Z0,X0,I0){(_||y)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon)?(J.value=R?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X0),J.kind="init"):this.options.ecmaVersion>=6&&this.type===g.parenL?(R&&this.unexpected(),J.method=!0,J.value=this.parseMethod(_,y),J.kind="init"):R||I0||!(this.options.ecmaVersion>=5)||J.computed||J.key.type!=="Identifier"||J.key.name!=="get"&&J.key.name!=="set"||this.type===g.comma||this.type===g.braceR||this.type===g.eq?this.options.ecmaVersion>=6&&!J.computed&&J.key.type==="Identifier"?((_||y)&&this.unexpected(),this.checkUnreserved(J.key),J.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=p),R?J.value=this.parseMaybeDefault(p,Z0,this.copyNode(J.key)):this.type===g.eq&&X0?(X0.shorthandAssign<0&&(X0.shorthandAssign=this.start),J.value=this.parseMaybeDefault(p,Z0,this.copyNode(J.key))):J.value=this.copyNode(J.key),J.kind="init",J.shorthand=!0):this.unexpected():((_||y)&&this.unexpected(),this.parseGetterSetter(J))},v0.parsePropertyName=function(J){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return J.computed=!0,J.key=this.parseMaybeAssign(),this.expect(g.bracketR),J.key;J.computed=!1}return J.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},v0.initFunction=function(J){J.id=null,this.options.ecmaVersion>=6&&(J.generator=J.expression=!1),this.options.ecmaVersion>=8&&(J.async=!1)},v0.parseMethod=function(J,R,_){var y=this.startNode(),p=this.yieldPos,Z0=this.awaitPos,X0=this.awaitIdentPos;return this.initFunction(y),this.options.ecmaVersion>=6&&(y.generator=J),this.options.ecmaVersion>=8&&(y.async=!!R),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|a(R,y.generator)|(_?128:0)),this.expect(g.parenL),y.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(y,!1,!0,!1),this.yieldPos=p,this.awaitPos=Z0,this.awaitIdentPos=X0,this.finishNode(y,"FunctionExpression")},v0.parseArrowExpression=function(J,R,_,y){var p=this.yieldPos,Z0=this.awaitPos,X0=this.awaitIdentPos;return this.enterScope(16|a(_,!1)),this.initFunction(J),this.options.ecmaVersion>=8&&(J.async=!!_),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,J.params=this.toAssignableList(R,!0),this.parseFunctionBody(J,!0,!1,y),this.yieldPos=p,this.awaitPos=Z0,this.awaitIdentPos=X0,this.finishNode(J,"ArrowFunctionExpression")},v0.parseFunctionBody=function(J,R,_,y){var p=R&&this.type!==g.braceL,Z0=this.strict,X0=!1;if(p)J.body=this.parseMaybeAssign(y),J.expression=!0,this.checkParams(J,!1);else{var I0=this.options.ecmaVersion>=7&&!this.isSimpleParamList(J.params);Z0&&!I0||(X0=this.strictDirective(this.end))&&I0&&this.raiseRecoverable(J.start,"Illegal 'use strict' directive in function with non-simple parameter list");var P0=this.labels;this.labels=[],X0&&(this.strict=!0),this.checkParams(J,!Z0&&!X0&&!R&&!_&&this.isSimpleParamList(J.params)),this.strict&&J.id&&this.checkLValSimple(J.id,5),J.body=this.parseBlock(!1,void 0,X0&&!Z0),J.expression=!1,this.adaptDirectivePrologue(J.body.body),this.labels=P0}this.exitScope()},v0.isSimpleParamList=function(J){for(var R=0,_=J;R<_.length;R+=1)if(_[R].type!=="Identifier")return!1;return!0},v0.checkParams=function(J,R){for(var _=Object.create(null),y=0,p=J.params;y<p.length;y+=1){var Z0=p[y];this.checkLValInnerPattern(Z0,1,R?null:_)}},v0.parseExprList=function(J,R,_,y){for(var p=[],Z0=!0;!this.eat(J);){if(Z0)Z0=!1;else if(this.expect(g.comma),R&&this.afterTrailingComma(J))break;var X0=void 0;_&&this.type===g.comma?X0=null:this.type===g.ellipsis?(X0=this.parseSpread(y),y&&this.type===g.comma&&y.trailingComma<0&&(y.trailingComma=this.start)):X0=this.parseMaybeAssign(!1,y),p.push(X0)}return p},v0.checkUnreserved=function(J){var{start:R,end:_,name:y}=J;(this.inGenerator&&y==="yield"&&this.raiseRecoverable(R,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&y==="await"&&this.raiseRecoverable(R,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&b||y!=="arguments"||this.raiseRecoverable(R,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||y!=="arguments"&&y!=="await"||this.raise(R,"Cannot use "+y+" in class static initialization block"),this.keywords.test(y)&&this.raise(R,"Unexpected keyword '"+y+"'"),this.options.ecmaVersion<6&&this.input.slice(R,_).indexOf("\\")!==-1)||(this.strict?this.reservedWordsStrict:this.reservedWords).test(y)&&(this.inAsync||y!=="await"||this.raiseRecoverable(R,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(R,"The keyword '"+y+"' is reserved"))},v0.parseIdent=function(J){var R=this.parseIdentNode();return this.next(!!J),this.finishNode(R,"Identifier"),J||(this.checkUnreserved(R),R.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=R.start)),R},v0.parseIdentNode=function(){var J=this.startNode();return this.type===g.name?J.name=this.value:this.type.keyword?(J.name=this.type.keyword,J.name!=="class"&&J.name!=="function"||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=g.name):this.unexpected(),J},v0.parsePrivateIdent=function(){var J=this.startNode();return this.type===g.privateId?J.name=this.value:this.unexpected(),this.next(),this.finishNode(J,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(J.start,"Private field '#"+J.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(J)),J},v0.parseYield=function(J){this.yieldPos||(this.yieldPos=this.start);var R=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(R.delegate=!1,R.argument=null):(R.delegate=this.eat(g.star),R.argument=this.parseMaybeAssign(J)),this.finishNode(R,"YieldExpression")},v0.parseAwait=function(J){this.awaitPos||(this.awaitPos=this.start);var R=this.startNode();return this.next(),R.argument=this.parseMaybeUnary(null,!0,!1,J),this.finishNode(R,"AwaitExpression")};var j0=l.prototype;j0.raise=function(J,R){var _=u(this.input,J);R+=" ("+_.line+":"+_.column+")",this.sourceFile&&(R+=" in "+this.sourceFile);var y=SyntaxError(R);throw y.pos=J,y.loc=_,y.raisedAt=this.pos,y},j0.raiseRecoverable=j0.raise,j0.curPosition=function(){if(this.options.locations)return new B(this.curLine,this.pos-this.lineStart)};var B0=l.prototype,XU=function(J){this.flags=J,this.var=[],this.lexical=[],this.functions=[]};B0.enterScope=function(J){this.scopeStack.push(new XU(J))},B0.exitScope=function(){this.scopeStack.pop()},B0.treatFunctionsAsVarInScope=function(J){return 2&J.flags||!this.inModule&&1&J.flags},B0.declareName=function(J,R,_){var y=!1;if(R===2){var p=this.currentScope();y=p.lexical.indexOf(J)>-1||p.functions.indexOf(J)>-1||p.var.indexOf(J)>-1,p.lexical.push(J),this.inModule&&1&p.flags&&delete this.undefinedExports[J]}else if(R===4)this.currentScope().lexical.push(J);else if(R===3){var Z0=this.currentScope();y=this.treatFunctionsAsVar?Z0.lexical.indexOf(J)>-1:Z0.lexical.indexOf(J)>-1||Z0.var.indexOf(J)>-1,Z0.functions.push(J)}else for(var X0=this.scopeStack.length-1;X0>=0;--X0){var I0=this.scopeStack[X0];if(I0.lexical.indexOf(J)>-1&&!(32&I0.flags&&I0.lexical[0]===J)||!this.treatFunctionsAsVarInScope(I0)&&I0.functions.indexOf(J)>-1){y=!0;break}if(I0.var.push(J),this.inModule&&1&I0.flags&&delete this.undefinedExports[J],I0.flags&b)break}y&&this.raiseRecoverable(_,"Identifier '"+J+"' has already been declared")},B0.checkLocalExport=function(J){this.scopeStack[0].lexical.indexOf(J.name)===-1&&this.scopeStack[0].var.indexOf(J.name)===-1&&(this.undefinedExports[J.name]=J)},B0.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},B0.currentVarScope=function(){for(var J=this.scopeStack.length-1;;J--){var R=this.scopeStack[J];if(771&R.flags)return R}},B0.currentThisScope=function(){for(var J=this.scopeStack.length-1;;J--){var R=this.scopeStack[J];if(771&R.flags&&!(16&R.flags))return R}};var _0=function(J,R,_){this.type="",this.start=R,this.end=0,J.options.locations&&(this.loc=new w(J,_)),J.options.directSourceFile&&(this.sourceFile=J.options.directSourceFile),J.options.ranges&&(this.range=[R,0])},g0=l.prototype;function MU(J,R,_,y){return J.type=R,J.end=_,this.options.locations&&(J.loc.end=y),this.options.ranges&&(J.range[1]=_),J}g0.startNode=function(){return new _0(this,this.start,this.startLoc)},g0.startNodeAt=function(J,R){return new _0(this,J,R)},g0.finishNode=function(J,R){return MU.call(this,J,R,this.lastTokEnd,this.lastTokEndLoc)},g0.finishNodeAt=function(J,R,_,y){return MU.call(this,J,R,_,y)},g0.copyNode=function(J){var R=new _0(this,J.start,this.startLoc);for(var _ in J)R[_]=J[_];return R};var c0="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",K0=c0+" Extended_Pictographic",E0=K0+" EBase EComp EMod EPres ExtPict",C0={9:c0,10:K0,11:K0,12:E0,13:E0,14:E0},N0={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},IU="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",u0="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",d0=u0+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",xU=d0+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",m0=xU+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",d=m0+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",$0={9:u0,10:d0,11:xU,12:m0,13:d,14:d+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},L0={};function R0(J){var R=L0[J]={binary:Z(C0[J]+" "+IU),binaryOfStrings:Z(N0[J]),nonBinary:{General_Category:Z(IU),Script:Z($0[J])}};R.nonBinary.Script_Extensions=R.nonBinary.Script,R.nonBinary.gc=R.nonBinary.General_Category,R.nonBinary.sc=R.nonBinary.Script,R.nonBinary.scx=R.nonBinary.Script_Extensions}for(var r0=0,y0=[9,10,11,12,13,14];r0<y0.length;r0+=1)R0(y0[r0]);var T0=l.prototype,AU=function(J,R){this.parent=J,this.base=R||this};AU.prototype.separatedFrom=function(J){for(var R=this;R;R=R.parent)for(var _=J;_;_=_.parent)if(R.base===_.base&&R!==_)return!0;return!1},AU.prototype.sibling=function(){return new AU(this.parent,this.base)};var b0=function(J){this.parser=J,this.validFlags="gim"+(J.options.ecmaVersion>=6?"uy":"")+(J.options.ecmaVersion>=9?"s":"")+(J.options.ecmaVersion>=13?"d":"")+(J.options.ecmaVersion>=15?"v":""),this.unicodeProperties=L0[J.options.ecmaVersion>=14?14:J.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function n0(J){return J===105||J===109||J===115}function pU(J){return J===36||J>=40&&J<=43||J===46||J===63||J>=91&&J<=94||J>=123&&J<=125}function o0(J){return J>=65&&J<=90||J>=97&&J<=122}b0.prototype.reset=function(J,R,_){var y=_.indexOf("v")!==-1,p=_.indexOf("u")!==-1;this.start=0|J,this.source=R+"",this.flags=_,y&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=p&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=p&&this.parser.options.ecmaVersion>=9)},b0.prototype.raise=function(J){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+J)},b0.prototype.at=function(J,R){R===void 0&&(R=!1);var _=this.source,y=_.length;if(J>=y)return-1;var p=_.charCodeAt(J);if(!R&&!this.switchU||p<=55295||p>=57344||J+1>=y)return p;var Z0=_.charCodeAt(J+1);return Z0>=56320&&Z0<=57343?(p<<10)+Z0-56613888:p},b0.prototype.nextIndex=function(J,R){R===void 0&&(R=!1);var _=this.source,y=_.length;if(J>=y)return y;var p,Z0=_.charCodeAt(J);return!R&&!this.switchU||Z0<=55295||Z0>=57344||J+1>=y||(p=_.charCodeAt(J+1))<56320||p>57343?J+1:J+2},b0.prototype.current=function(J){return J===void 0&&(J=!1),this.at(this.pos,J)},b0.prototype.lookahead=function(J){return J===void 0&&(J=!1),this.at(this.nextIndex(this.pos,J),J)},b0.prototype.advance=function(J){J===void 0&&(J=!1),this.pos=this.nextIndex(this.pos,J)},b0.prototype.eat=function(J,R){return R===void 0&&(R=!1),this.current(R)===J&&(this.advance(R),!0)},b0.prototype.eatChars=function(J,R){R===void 0&&(R=!1);for(var _=this.pos,y=0,p=J;y<p.length;y+=1){var Z0=p[y],X0=this.at(_,R);if(X0===-1||X0!==Z0)return!1;_=this.nextIndex(_,R)}return this.pos=_,!0},T0.validateRegExpFlags=function(J){for(var{validFlags:R,flags:_}=J,y=!1,p=!1,Z0=0;Z0<_.length;Z0++){var X0=_.charAt(Z0);R.indexOf(X0)===-1&&this.raise(J.start,"Invalid regular expression flag"),_.indexOf(X0,Z0+1)>-1&&this.raise(J.start,"Duplicate regular expression flag"),X0==="u"&&(y=!0),X0==="v"&&(p=!0)}this.options.ecmaVersion>=15&&y&&p&&this.raise(J.start,"Invalid regular expression flag")},T0.validateRegExpPattern=function(J){this.regexp_pattern(J),!J.switchN&&this.options.ecmaVersion>=9&&function(R){for(var _ in R)return!0;return!1}(J.groupNames)&&(J.switchN=!0,this.regexp_pattern(J))},T0.regexp_pattern=function(J){J.pos=0,J.lastIntValue=0,J.lastStringValue="",J.lastAssertionIsQuantifiable=!1,J.numCapturingParens=0,J.maxBackReference=0,J.groupNames=Object.create(null),J.backReferenceNames.length=0,J.branchID=null,this.regexp_disjunction(J),J.pos!==J.source.length&&(J.eat(41)&&J.raise("Unmatched ')'"),(J.eat(93)||J.eat(125))&&J.raise("Lone quantifier brackets")),J.maxBackReference>J.numCapturingParens&&J.raise("Invalid escape");for(var R=0,_=J.backReferenceNames;R<_.length;R+=1){var y=_[R];J.groupNames[y]||J.raise("Invalid named capture referenced")}},T0.regexp_disjunction=function(J){var R=this.options.ecmaVersion>=16;for(R&&(J.branchID=new AU(J.branchID,null)),this.regexp_alternative(J);J.eat(124);)R&&(J.branchID=J.branchID.sibling()),this.regexp_alternative(J);R&&(J.branchID=J.branchID.parent),this.regexp_eatQuantifier(J,!0)&&J.raise("Nothing to repeat"),J.eat(123)&&J.raise("Lone quantifier brackets")},T0.regexp_alternative=function(J){for(;J.pos<J.source.length&&this.regexp_eatTerm(J););},T0.regexp_eatTerm=function(J){return this.regexp_eatAssertion(J)?(J.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(J)&&J.switchU&&J.raise("Invalid quantifier"),!0):!!(J.switchU?this.regexp_eatAtom(J):this.regexp_eatExtendedAtom(J))&&(this.regexp_eatQuantifier(J),!0)},T0.regexp_eatAssertion=function(J){var R=J.pos;if(J.lastAssertionIsQuantifiable=!1,J.eat(94)||J.eat(36))return!0;if(J.eat(92)){if(J.eat(66)||J.eat(98))return!0;J.pos=R}if(J.eat(40)&&J.eat(63)){var _=!1;if(this.options.ecmaVersion>=9&&(_=J.eat(60)),J.eat(61)||J.eat(33))return this.regexp_disjunction(J),J.eat(41)||J.raise("Unterminated group"),J.lastAssertionIsQuantifiable=!_,!0}return J.pos=R,!1},T0.regexp_eatQuantifier=function(J,R){return R===void 0&&(R=!1),!!this.regexp_eatQuantifierPrefix(J,R)&&(J.eat(63),!0)},T0.regexp_eatQuantifierPrefix=function(J,R){return J.eat(42)||J.eat(43)||J.eat(63)||this.regexp_eatBracedQuantifier(J,R)},T0.regexp_eatBracedQuantifier=function(J,R){var _=J.pos;if(J.eat(123)){var y=0,p=-1;if(this.regexp_eatDecimalDigits(J)&&(y=J.lastIntValue,J.eat(44)&&this.regexp_eatDecimalDigits(J)&&(p=J.lastIntValue),J.eat(125)))return p!==-1&&p<y&&!R&&J.raise("numbers out of order in {} quantifier"),!0;J.switchU&&!R&&J.raise("Incomplete quantifier"),J.pos=_}return!1},T0.regexp_eatAtom=function(J){return this.regexp_eatPatternCharacters(J)||J.eat(46)||this.regexp_eatReverseSolidusAtomEscape(J)||this.regexp_eatCharacterClass(J)||this.regexp_eatUncapturingGroup(J)||this.regexp_eatCapturingGroup(J)},T0.regexp_eatReverseSolidusAtomEscape=function(J){var R=J.pos;if(J.eat(92)){if(this.regexp_eatAtomEscape(J))return!0;J.pos=R}return!1},T0.regexp_eatUncapturingGroup=function(J){var R=J.pos;if(J.eat(40)){if(J.eat(63)){if(this.options.ecmaVersion>=16){var _=this.regexp_eatModifiers(J),y=J.eat(45);if(_||y){for(var p=0;p<_.length;p++){var Z0=_.charAt(p);_.indexOf(Z0,p+1)>-1&&J.raise("Duplicate regular expression modifiers")}if(y){var X0=this.regexp_eatModifiers(J);_||X0||J.current()!==58||J.raise("Invalid regular expression modifiers");for(var I0=0;I0<X0.length;I0++){var P0=X0.charAt(I0);(X0.indexOf(P0,I0+1)>-1||_.indexOf(P0)>-1)&&J.raise("Duplicate regular expression modifiers")}}}}if(J.eat(58)){if(this.regexp_disjunction(J),J.eat(41))return!0;J.raise("Unterminated group")}}J.pos=R}return!1},T0.regexp_eatCapturingGroup=function(J){if(J.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(J):J.current()===63&&J.raise("Invalid group"),this.regexp_disjunction(J),J.eat(41))return J.numCapturingParens+=1,!0;J.raise("Unterminated group")}return!1},T0.regexp_eatModifiers=function(J){for(var R="",_=0;(_=J.current())!==-1&&n0(_);)R+=H(_),J.advance();return R},T0.regexp_eatExtendedAtom=function(J){return J.eat(46)||this.regexp_eatReverseSolidusAtomEscape(J)||this.regexp_eatCharacterClass(J)||this.regexp_eatUncapturingGroup(J)||this.regexp_eatCapturingGroup(J)||this.regexp_eatInvalidBracedQuantifier(J)||this.regexp_eatExtendedPatternCharacter(J)},T0.regexp_eatInvalidBracedQuantifier=function(J){return this.regexp_eatBracedQuantifier(J,!0)&&J.raise("Nothing to repeat"),!1},T0.regexp_eatSyntaxCharacter=function(J){var R=J.current();return!!pU(R)&&(J.lastIntValue=R,J.advance(),!0)},T0.regexp_eatPatternCharacters=function(J){for(var R=J.pos,_=0;(_=J.current())!==-1&&!pU(_);)J.advance();return J.pos!==R},T0.regexp_eatExtendedPatternCharacter=function(J){var R=J.current();return!(R===-1||R===36||R>=40&&R<=43||R===46||R===63||R===91||R===94||R===124)&&(J.advance(),!0)},T0.regexp_groupSpecifier=function(J){if(J.eat(63)){this.regexp_eatGroupName(J)||J.raise("Invalid group");var R=this.options.ecmaVersion>=16,_=J.groupNames[J.lastStringValue];if(_)if(R)for(var y=0,p=_;y<p.length;y+=1)p[y].separatedFrom(J.branchID)||J.raise("Duplicate capture group name");else J.raise("Duplicate capture group name");R?(_||(J.groupNames[J.lastStringValue]=[])).push(J.branchID):J.groupNames[J.lastStringValue]=!0}},T0.regexp_eatGroupName=function(J){if(J.lastStringValue="",J.eat(60)){if(this.regexp_eatRegExpIdentifierName(J)&&J.eat(62))return!0;J.raise("Invalid capture group name")}return!1},T0.regexp_eatRegExpIdentifierName=function(J){if(J.lastStringValue="",this.regexp_eatRegExpIdentifierStart(J)){for(J.lastStringValue+=H(J.lastIntValue);this.regexp_eatRegExpIdentifierPart(J);)J.lastStringValue+=H(J.lastIntValue);return!0}return!1},T0.regexp_eatRegExpIdentifierStart=function(J){var R=J.pos,_=this.options.ecmaVersion>=11,y=J.current(_);return J.advance(_),y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(J,_)&&(y=J.lastIntValue),function(p){return S(p,!0)||p===36||p===95}(y)?(J.lastIntValue=y,!0):(J.pos=R,!1)},T0.regexp_eatRegExpIdentifierPart=function(J){var R=J.pos,_=this.options.ecmaVersion>=11,y=J.current(_);return J.advance(_),y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(J,_)&&(y=J.lastIntValue),function(p){return P(p,!0)||p===36||p===95||p===8204||p===8205}(y)?(J.lastIntValue=y,!0):(J.pos=R,!1)},T0.regexp_eatAtomEscape=function(J){return!!(this.regexp_eatBackReference(J)||this.regexp_eatCharacterClassEscape(J)||this.regexp_eatCharacterEscape(J)||J.switchN&&this.regexp_eatKGroupName(J))||(J.switchU&&(J.current()===99&&J.raise("Invalid unicode escape"),J.raise("Invalid escape")),!1)},T0.regexp_eatBackReference=function(J){var R=J.pos;if(this.regexp_eatDecimalEscape(J)){var _=J.lastIntValue;if(J.switchU)return _>J.maxBackReference&&(J.maxBackReference=_),!0;if(_<=J.numCapturingParens)return!0;J.pos=R}return!1},T0.regexp_eatKGroupName=function(J){if(J.eat(107)){if(this.regexp_eatGroupName(J))return J.backReferenceNames.push(J.lastStringValue),!0;J.raise("Invalid named reference")}return!1},T0.regexp_eatCharacterEscape=function(J){return this.regexp_eatControlEscape(J)||this.regexp_eatCControlLetter(J)||this.regexp_eatZero(J)||this.regexp_eatHexEscapeSequence(J)||this.regexp_eatRegExpUnicodeEscapeSequence(J,!1)||!J.switchU&&this.regexp_eatLegacyOctalEscapeSequence(J)||this.regexp_eatIdentityEscape(J)},T0.regexp_eatCControlLetter=function(J){var R=J.pos;if(J.eat(99)){if(this.regexp_eatControlLetter(J))return!0;J.pos=R}return!1},T0.regexp_eatZero=function(J){return J.current()===48&&!JU(J.lookahead())&&(J.lastIntValue=0,J.advance(),!0)},T0.regexp_eatControlEscape=function(J){var R=J.current();return R===116?(J.lastIntValue=9,J.advance(),!0):R===110?(J.lastIntValue=10,J.advance(),!0):R===118?(J.lastIntValue=11,J.advance(),!0):R===102?(J.lastIntValue=12,J.advance(),!0):R===114&&(J.lastIntValue=13,J.advance(),!0)},T0.regexp_eatControlLetter=function(J){var R=J.current();return!!o0(R)&&(J.lastIntValue=R%32,J.advance(),!0)},T0.regexp_eatRegExpUnicodeEscapeSequence=function(J,R){R===void 0&&(R=!1);var _,y=J.pos,p=R||J.switchU;if(J.eat(117)){if(this.regexp_eatFixedHexDigits(J,4)){var Z0=J.lastIntValue;if(p&&Z0>=55296&&Z0<=56319){var X0=J.pos;if(J.eat(92)&&J.eat(117)&&this.regexp_eatFixedHexDigits(J,4)){var I0=J.lastIntValue;if(I0>=56320&&I0<=57343)return J.lastIntValue=1024*(Z0-55296)+(I0-56320)+65536,!0}J.pos=X0,J.lastIntValue=Z0}return!0}if(p&&J.eat(123)&&this.regexp_eatHexDigits(J)&&J.eat(125)&&((_=J.lastIntValue)>=0&&_<=1114111))return!0;p&&J.raise("Invalid unicode escape"),J.pos=y}return!1},T0.regexp_eatIdentityEscape=function(J){if(J.switchU)return!!this.regexp_eatSyntaxCharacter(J)||!!J.eat(47)&&(J.lastIntValue=47,!0);var R=J.current();return!(R===99||J.switchN&&R===107)&&(J.lastIntValue=R,J.advance(),!0)},T0.regexp_eatDecimalEscape=function(J){J.lastIntValue=0;var R=J.current();if(R>=49&&R<=57){do J.lastIntValue=10*J.lastIntValue+(R-48),J.advance();while((R=J.current())>=48&&R<=57);return!0}return!1};function l0(J){return o0(J)||J===95}function PU(J){return l0(J)||JU(J)}function JU(J){return J>=48&&J<=57}function YU(J){return J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102}function zU(J){return J>=65&&J<=70?J-65+10:J>=97&&J<=102?J-97+10:J-48}function FU(J){return J>=48&&J<=55}T0.regexp_eatCharacterClassEscape=function(J){var R=J.current();if(function(p){return p===100||p===68||p===115||p===83||p===119||p===87}(R))return J.lastIntValue=-1,J.advance(),1;var _=!1;if(J.switchU&&this.options.ecmaVersion>=9&&((_=R===80)||R===112)){var y;if(J.lastIntValue=-1,J.advance(),J.eat(123)&&(y=this.regexp_eatUnicodePropertyValueExpression(J))&&J.eat(125))return _&&y===2&&J.raise("Invalid property name"),y;J.raise("Invalid property name")}return 0},T0.regexp_eatUnicodePropertyValueExpression=function(J){var R=J.pos;if(this.regexp_eatUnicodePropertyName(J)&&J.eat(61)){var _=J.lastStringValue;if(this.regexp_eatUnicodePropertyValue(J)){var y=J.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(J,_,y),1}}if(J.pos=R,this.regexp_eatLoneUnicodePropertyNameOrValue(J)){var p=J.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(J,p)}return 0},T0.regexp_validateUnicodePropertyNameAndValue=function(J,R,_){L(J.unicodeProperties.nonBinary,R)||J.raise("Invalid property name"),J.unicodeProperties.nonBinary[R].test(_)||J.raise("Invalid property value")},T0.regexp_validateUnicodePropertyNameOrValue=function(J,R){return J.unicodeProperties.binary.test(R)?1:J.switchV&&J.unicodeProperties.binaryOfStrings.test(R)?2:void J.raise("Invalid property name")},T0.regexp_eatUnicodePropertyName=function(J){var R=0;for(J.lastStringValue="";l0(R=J.current());)J.lastStringValue+=H(R),J.advance();return J.lastStringValue!==""},T0.regexp_eatUnicodePropertyValue=function(J){var R=0;for(J.lastStringValue="";PU(R=J.current());)J.lastStringValue+=H(R),J.advance();return J.lastStringValue!==""},T0.regexp_eatLoneUnicodePropertyNameOrValue=function(J){return this.regexp_eatUnicodePropertyValue(J)},T0.regexp_eatCharacterClass=function(J){if(J.eat(91)){var R=J.eat(94),_=this.regexp_classContents(J);return J.eat(93)||J.raise("Unterminated character class"),R&&_===2&&J.raise("Negated character class may contain strings"),!0}return!1},T0.regexp_classContents=function(J){return J.current()===93?1:J.switchV?this.regexp_classSetExpression(J):(this.regexp_nonEmptyClassRanges(J),1)},T0.regexp_nonEmptyClassRanges=function(J){for(;this.regexp_eatClassAtom(J);){var R=J.lastIntValue;if(J.eat(45)&&this.regexp_eatClassAtom(J)){var _=J.lastIntValue;!J.switchU||R!==-1&&_!==-1||J.raise("Invalid character class"),R!==-1&&_!==-1&&R>_&&J.raise("Range out of order in character class")}}},T0.regexp_eatClassAtom=function(J){var R=J.pos;if(J.eat(92)){if(this.regexp_eatClassEscape(J))return!0;if(J.switchU){var _=J.current();(_===99||FU(_))&&J.raise("Invalid class escape"),J.raise("Invalid escape")}J.pos=R}var y=J.current();return y!==93&&(J.lastIntValue=y,J.advance(),!0)},T0.regexp_eatClassEscape=function(J){var R=J.pos;if(J.eat(98))return J.lastIntValue=8,!0;if(J.switchU&&J.eat(45))return J.lastIntValue=45,!0;if(!J.switchU&&J.eat(99)){if(this.regexp_eatClassControlLetter(J))return!0;J.pos=R}return this.regexp_eatCharacterClassEscape(J)||this.regexp_eatCharacterEscape(J)},T0.regexp_classSetExpression=function(J){var R,_=1;if(this.regexp_eatClassSetRange(J));else if(R=this.regexp_eatClassSetOperand(J)){R===2&&(_=2);for(var y=J.pos;J.eatChars([38,38]);)J.current()!==38&&(R=this.regexp_eatClassSetOperand(J))?R!==2&&(_=1):J.raise("Invalid character in character class");if(y!==J.pos)return _;for(;J.eatChars([45,45]);)this.regexp_eatClassSetOperand(J)||J.raise("Invalid character in character class");if(y!==J.pos)return _}else J.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(J)){if(!(R=this.regexp_eatClassSetOperand(J)))return _;R===2&&(_=2)}},T0.regexp_eatClassSetRange=function(J){var R=J.pos;if(this.regexp_eatClassSetCharacter(J)){var _=J.lastIntValue;if(J.eat(45)&&this.regexp_eatClassSetCharacter(J)){var y=J.lastIntValue;return _!==-1&&y!==-1&&_>y&&J.raise("Range out of order in character class"),!0}J.pos=R}return!1},T0.regexp_eatClassSetOperand=function(J){return this.regexp_eatClassSetCharacter(J)?1:this.regexp_eatClassStringDisjunction(J)||this.regexp_eatNestedClass(J)},T0.regexp_eatNestedClass=function(J){var R=J.pos;if(J.eat(91)){var _=J.eat(94),y=this.regexp_classContents(J);if(J.eat(93))return _&&y===2&&J.raise("Negated character class may contain strings"),y;J.pos=R}if(J.eat(92)){var p=this.regexp_eatCharacterClassEscape(J);if(p)return p;J.pos=R}return null},T0.regexp_eatClassStringDisjunction=function(J){var R=J.pos;if(J.eatChars([92,113])){if(J.eat(123)){var _=this.regexp_classStringDisjunctionContents(J);if(J.eat(125))return _}else J.raise("Invalid escape");J.pos=R}return null},T0.regexp_classStringDisjunctionContents=function(J){for(var R=this.regexp_classString(J);J.eat(124);)this.regexp_classString(J)===2&&(R=2);return R},T0.regexp_classString=function(J){for(var R=0;this.regexp_eatClassSetCharacter(J);)R++;return R===1?1:2},T0.regexp_eatClassSetCharacter=function(J){var R=J.pos;if(J.eat(92))return!(!this.regexp_eatCharacterEscape(J)&&!this.regexp_eatClassSetReservedPunctuator(J))||(J.eat(98)?(J.lastIntValue=8,!0):(J.pos=R,!1));var _=J.current();return!(_<0||_===J.lookahead()&&function(y){return y===33||y>=35&&y<=38||y>=42&&y<=44||y===46||y>=58&&y<=64||y===94||y===96||y===126}(_))&&(!function(y){return y===40||y===41||y===45||y===47||y>=91&&y<=93||y>=123&&y<=125}(_)&&(J.advance(),J.lastIntValue=_,!0))},T0.regexp_eatClassSetReservedPunctuator=function(J){var R=J.current();return!!function(_){return _===33||_===35||_===37||_===38||_===44||_===45||_>=58&&_<=62||_===64||_===96||_===126}(R)&&(J.lastIntValue=R,J.advance(),!0)},T0.regexp_eatClassControlLetter=function(J){var R=J.current();return!(!JU(R)&&R!==95)&&(J.lastIntValue=R%32,J.advance(),!0)},T0.regexp_eatHexEscapeSequence=function(J){var R=J.pos;if(J.eat(120)){if(this.regexp_eatFixedHexDigits(J,2))return!0;J.switchU&&J.raise("Invalid escape"),J.pos=R}return!1},T0.regexp_eatDecimalDigits=function(J){var R=J.pos,_=0;for(J.lastIntValue=0;JU(_=J.current());)J.lastIntValue=10*J.lastIntValue+(_-48),J.advance();return J.pos!==R},T0.regexp_eatHexDigits=function(J){var R=J.pos,_=0;for(J.lastIntValue=0;YU(_=J.current());)J.lastIntValue=16*J.lastIntValue+zU(_),J.advance();return J.pos!==R},T0.regexp_eatLegacyOctalEscapeSequence=function(J){if(this.regexp_eatOctalDigit(J)){var R=J.lastIntValue;if(this.regexp_eatOctalDigit(J)){var _=J.lastIntValue;R<=3&&this.regexp_eatOctalDigit(J)?J.lastIntValue=64*R+8*_+J.lastIntValue:J.lastIntValue=8*R+_}else J.lastIntValue=R;return!0}return!1},T0.regexp_eatOctalDigit=function(J){var R=J.current();return FU(R)?(J.lastIntValue=R-48,J.advance(),!0):(J.lastIntValue=0,!1)},T0.regexp_eatFixedHexDigits=function(J,R){var _=J.pos;J.lastIntValue=0;for(var y=0;y<R;++y){var p=J.current();if(!YU(p))return J.pos=_,!1;J.lastIntValue=16*J.lastIntValue+zU(p),J.advance()}return!0};var jU=function(J){this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,J.options.locations&&(this.loc=new w(J,J.startLoc,J.endLoc)),J.options.ranges&&(this.range=[J.start,J.end])},ZU=l.prototype;function NU(J){return typeof BigInt!="function"?null:BigInt(J.replace(/_/g,""))}ZU.next=function(J){!J&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new jU(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ZU.getToken=function(){return this.next(),new jU(this)},typeof Symbol<"u"&&(ZU[Symbol.iterator]=function(){var J=this;return{next:function(){var R=J.getToken();return{done:R.type===g.eof,value:R}}}}),ZU.nextToken=function(){var J=this.curContext();return J&&J.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(g.eof):J.override?J.override(this):void this.readToken(this.fullCharCodeAtPos())},ZU.readToken=function(J){return S(J,this.options.ecmaVersion>=6)||J===92?this.readWord():this.getTokenFromCode(J)},ZU.fullCharCodeAtPos=function(){var J=this.input.charCodeAt(this.pos);if(J<=55295||J>=56320)return J;var R=this.input.charCodeAt(this.pos+1);return R<=56319||R>=57344?J:(J<<10)+R-56613888},ZU.skipBlockComment=function(){var J=this.options.onComment&&this.curPosition(),R=this.pos,_=this.input.indexOf("*/",this.pos+=2);if(_===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=_+2,this.options.locations)for(var y=void 0,p=R;(y=O0(this.input,p,this.pos))>-1;)++this.curLine,p=this.lineStart=y;this.options.onComment&&this.options.onComment(!0,this.input.slice(R+2,_),R,this.pos,J,this.curPosition())},ZU.skipLineComment=function(J){for(var R=this.pos,_=this.options.onComment&&this.curPosition(),y=this.input.charCodeAt(this.pos+=J);this.pos<this.input.length&&!r(y);)y=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(R+J,this.pos),R,this.pos,_,this.curPosition())},ZU.skipSpace=function(){U:for(;this.pos<this.input.length;){var J=this.input.charCodeAt(this.pos);switch(J){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break U}break;default:if(!(J>8&&J<14||J>=5760&&U.test(String.fromCharCode(J))))break U;++this.pos}}},ZU.finishToken=function(J,R){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var _=this.type;this.type=J,this.value=R,this.updateContext(_)},ZU.readToken_dot=function(){var J=this.input.charCodeAt(this.pos+1);if(J>=48&&J<=57)return this.readNumber(!0);var R=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&J===46&&R===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},ZU.readToken_slash=function(){var J=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):J===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},ZU.readToken_mult_modulo_exp=function(J){var R=this.input.charCodeAt(this.pos+1),_=1,y=J===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&J===42&&R===42&&(++_,y=g.starstar,R=this.input.charCodeAt(this.pos+2)),R===61?this.finishOp(g.assign,_+1):this.finishOp(y,_)},ZU.readToken_pipe_amp=function(J){var R=this.input.charCodeAt(this.pos+1);if(R===J){if(this.options.ecmaVersion>=12){if(this.input.charCodeAt(this.pos+2)===61)return this.finishOp(g.assign,3)}return this.finishOp(J===124?g.logicalOR:g.logicalAND,2)}return R===61?this.finishOp(g.assign,2):this.finishOp(J===124?g.bitwiseOR:g.bitwiseAND,1)},ZU.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},ZU.readToken_plus_min=function(J){var R=this.input.charCodeAt(this.pos+1);return R===J?R!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!Q0.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(g.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):R===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},ZU.readToken_lt_gt=function(J){var R=this.input.charCodeAt(this.pos+1),_=1;return R===J?(_=J===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+_)===61?this.finishOp(g.assign,_+1):this.finishOp(g.bitShift,_)):R!==33||J!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(R===61&&(_=2),this.finishOp(g.relational,_)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ZU.readToken_eq_excl=function(J){var R=this.input.charCodeAt(this.pos+1);return R===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):J===61&&R===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(J===61?g.eq:g.prefix,1)},ZU.readToken_question=function(){var J=this.options.ecmaVersion;if(J>=11){var R=this.input.charCodeAt(this.pos+1);if(R===46){var _=this.input.charCodeAt(this.pos+2);if(_<48||_>57)return this.finishOp(g.questionDot,2)}if(R===63){if(J>=12){if(this.input.charCodeAt(this.pos+2)===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)},ZU.readToken_numberSign=function(){var J=35;if(this.options.ecmaVersion>=13&&(++this.pos,S(J=this.fullCharCodeAtPos(),!0)||J===92))return this.finishToken(g.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+H(J)+"'")},ZU.getTokenFromCode=function(J){switch(J){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var R=this.input.charCodeAt(this.pos+1);if(R===120||R===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(R===111||R===79)return this.readRadixNumber(8);if(R===98||R===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(J);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(J);case 124:case 38:return this.readToken_pipe_amp(J);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(J);case 60:case 62:return this.readToken_lt_gt(J);case 61:case 33:return this.readToken_eq_excl(J);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+H(J)+"'")},ZU.finishOp=function(J,R){var _=this.input.slice(this.pos,this.pos+R);return this.pos+=R,this.finishToken(J,_)},ZU.readRegexp=function(){for(var J,R,_=this.pos;;){this.pos>=this.input.length&&this.raise(_,"Unterminated regular expression");var y=this.input.charAt(this.pos);if(Q0.test(y)&&this.raise(_,"Unterminated regular expression"),J)J=!1;else{if(y==="[")R=!0;else if(y==="]"&&R)R=!1;else if(y==="/"&&!R)break;J=y==="\\"}++this.pos}var p=this.input.slice(_,this.pos);++this.pos;var Z0=this.pos,X0=this.readWord1();this.containsEsc&&this.unexpected(Z0);var I0=this.regexpState||(this.regexpState=new b0(this));I0.reset(_,p,X0),this.validateRegExpFlags(I0),this.validateRegExpPattern(I0);var P0=null;try{P0=new RegExp(p,X0)}catch(h0){}return this.finishToken(g.regexp,{pattern:p,flags:X0,value:P0})},ZU.readInt=function(J,R,_){for(var y=this.options.ecmaVersion>=12&&R===void 0,p=_&&this.input.charCodeAt(this.pos)===48,Z0=this.pos,X0=0,I0=0,P0=0,h0=R==null?1/0:R;P0<h0;++P0,++this.pos){var w0=this.input.charCodeAt(this.pos),a0=void 0;if(y&&w0===95)p&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),I0===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),P0===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),I0=w0;else{if((a0=w0>=97?w0-97+10:w0>=65?w0-65+10:w0>=48&&w0<=57?w0-48:1/0)>=J)break;I0=w0,X0=X0*J+a0}}return y&&I0===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Z0||R!=null&&this.pos-Z0!==R?null:X0},ZU.readRadixNumber=function(J){var R=this.pos;this.pos+=2;var _=this.readInt(J);return _==null&&this.raise(this.start+2,"Expected number in radix "+J),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(_=NU(this.input.slice(R,this.pos)),++this.pos):S(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,_)},ZU.readNumber=function(J){var R=this.pos;J||this.readInt(10,void 0,!0)!==null||this.raise(R,"Invalid number");var _=this.pos-R>=2&&this.input.charCodeAt(R)===48;_&&this.strict&&this.raise(R,"Invalid number");var y=this.input.charCodeAt(this.pos);if(!_&&!J&&this.options.ecmaVersion>=11&&y===110){var p=NU(this.input.slice(R,this.pos));return++this.pos,S(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,p)}_&&/[89]/.test(this.input.slice(R,this.pos))&&(_=!1),y!==46||_||(++this.pos,this.readInt(10),y=this.input.charCodeAt(this.pos)),y!==69&&y!==101||_||((y=this.input.charCodeAt(++this.pos))!==43&&y!==45||++this.pos,this.readInt(10)===null&&this.raise(R,"Invalid number")),S(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Z0,X0=(Z0=this.input.slice(R,this.pos),_?parseInt(Z0,8):parseFloat(Z0.replace(/_/g,"")));return this.finishToken(g.num,X0)},ZU.readCodePoint=function(){var J;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var R=++this.pos;J=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,J>1114111&&this.invalidStringToken(R,"Code point out of bounds")}else J=this.readHexChar(4);return J},ZU.readString=function(J){for(var R="",_=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var y=this.input.charCodeAt(this.pos);if(y===J)break;y===92?(R+=this.input.slice(_,this.pos),R+=this.readEscapedChar(!1),_=this.pos):y===8232||y===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(r(y)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return R+=this.input.slice(_,this.pos++),this.finishToken(g.string,R)};var vU={};ZU.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(J){if(J!==vU)throw J;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ZU.invalidStringToken=function(J,R){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw vU;this.raise(J,R)},ZU.readTmplToken=function(){for(var J="",R=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var _=this.input.charCodeAt(this.pos);if(_===96||_===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==g.template&&this.type!==g.invalidTemplate?(J+=this.input.slice(R,this.pos),this.finishToken(g.template,J)):_===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote));if(_===92)J+=this.input.slice(R,this.pos),J+=this.readEscapedChar(!0),R=this.pos;else if(r(_)){switch(J+=this.input.slice(R,this.pos),++this.pos,_){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:J+=`
|
|
84
|
-
`;break;default:J+=String.fromCharCode(_)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),R=this.pos}else++this.pos}},ZU.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(g.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
85
|
-
`&&++this.pos;case`
|
|
86
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},ZU.readEscapedChar=function(J){var R=this.input.charCodeAt(++this.pos);switch(++this.pos,R){case 110:return`
|
|
87
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return H(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),J){var _=this.pos-1;this.invalidStringToken(_,"Invalid escape sequence in template string")}default:if(R>=48&&R<=55){var y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],p=parseInt(y,8);return p>255&&(y=y.slice(0,-1),p=parseInt(y,8)),this.pos+=y.length-1,R=this.input.charCodeAt(this.pos),y==="0"&&R!==56&&R!==57||!this.strict&&!J||this.invalidStringToken(this.pos-1-y.length,J?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(p)}return r(R)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(R)}},ZU.readHexChar=function(J){var R=this.pos,_=this.readInt(16,J);return _===null&&this.invalidStringToken(R,"Bad character escape sequence"),_},ZU.readWord1=function(){this.containsEsc=!1;for(var J="",R=!0,_=this.pos,y=this.options.ecmaVersion>=6;this.pos<this.input.length;){var p=this.fullCharCodeAtPos();if(P(p,y))this.pos+=p<=65535?1:2;else{if(p!==92)break;this.containsEsc=!0,J+=this.input.slice(_,this.pos);var Z0=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var X0=this.readCodePoint();(R?S:P)(X0,y)||this.invalidStringToken(Z0,"Invalid Unicode escape"),J+=H(X0),_=this.pos}R=!1}return J+this.input.slice(_,this.pos)},ZU.readWord=function(){var J=this.readWord1(),R=g.name;return this.keywords.test(J)&&(R=c[J]),this.finishToken(R,J)},l.acorn={Parser:l,version:"8.15.0",defaultOptions:s,Position:B,SourceLocation:w,getLineInfo:u,Node:_0,TokenType:k,tokTypes:g,keywordTypes:c,TokContext:i0,tokContexts:i,isIdentifierChar:P,isIdentifierStart:S,Token:jU,isNewLine:r,lineBreak:Q0,lineBreakG:J0,nonASCIIwhitespace:U};let qU=(()=>({})),OU=(()=>({}));String.fromCharCode;let _U=/\/$|\/\?|\/#/,wU=/^\.?\//;function gU(J="",R){return R?_U.test(J):J.endsWith("/")}function fU(J="",R){if(!R)return J.endsWith("/")?J:J+"/";if(gU(J,!0))return J||"/";let _=J,y="",p=J.indexOf("#");if(p!==-1&&(_=J.slice(0,p),y=J.slice(p),!_))return y;let[Z0,...X0]=_.split("?");return Z0+"/"+(X0.length>0?`?${X0.join("?")}`:"")+y}function yU(J){return J&&J!=="/"}function kU(J,...R){let _=J||"";for(let y of R.filter((p)=>yU(p)))if(_){let p=y.replace(wU,"");_=fU(_)+p}else _=y;return _}let hU=/^[A-Za-z]:\//;function TU(J=""){return J?J.replace(/\\/g,"/").replace(hU,(R)=>R.toUpperCase()):J}let FQ=/^[/\\]{2}/,zQ=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,rZ=/^[A-Za-z]:$/,AV=/.(\.[^./]+|\.)$/,qV=function(J){if(J.length===0)return".";let R=(J=TU(J)).match(FQ),_=wZ(J),y=J[J.length-1]==="/";return(J=KJ(J,!_)).length===0?_?"/":y?"./":".":(y&&(J+="/"),rZ.test(J)&&(J+="/"),R?_?`//${J}`:`//./${J}`:_&&!wZ(J)?`/${J}`:J)},SZ=function(...J){let R="";for(let _ of J)if(_)if(R.length>0){let y=R[R.length-1]==="/",p=_[0]==="/";R+=y&&p?_.slice(1):y||p?_:`/${_}`}else R+=_;return qV(R)};function TV(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let RV=function(...J){let R="",_=!1;for(let y=(J=J.map((p)=>TU(p))).length-1;y>=-1&&!_;y--){let p=y>=0?J[y]:TV();p&&p.length!==0&&(R=`${p}/${R}`,_=wZ(p))}return R=KJ(R,!_),_&&!wZ(R)?`/${R}`:R.length>0?R:"."};function KJ(J,R){let _="",y=0,p=-1,Z0=0,X0=null;for(let I0=0;I0<=J.length;++I0){if(I0<J.length)X0=J[I0];else{if(X0==="/")break;X0="/"}if(X0==="/"){if(p===I0-1||Z0===1);else if(Z0===2){if(_.length<2||y!==2||_[_.length-1]!=="."||_[_.length-2]!=="."){if(_.length>2){let P0=_.lastIndexOf("/");P0===-1?(_="",y=0):(_=_.slice(0,P0),y=_.length-1-_.lastIndexOf("/")),p=I0,Z0=0;continue}if(_.length>0){_="",y=0,p=I0,Z0=0;continue}}R&&(_+=_.length>0?"/..":"..",y=2)}else _.length>0?_+=`/${J.slice(p+1,I0)}`:_=J.slice(p+1,I0),y=I0-p-1;p=I0,Z0=0}else X0==="."&&Z0!==-1?++Z0:Z0=-1}return _}let wZ=function(J){return zQ.test(J)},$J=function(J){if(J==="..")return"";let R=AV.exec(TU(J));return R&&R[1]||""},oQ=function(J){let R=TU(J).replace(/\/$/,"").split("/").slice(0,-1);return R.length===1&&rZ.test(R[0])&&(R[0]+="/"),R.join("/")||(wZ(J)?"/":".")},HJ=function(J,R){let _=TU(J).split("/"),y="";for(let p=_.length-1;p>=0;p--){let Z0=_[p];if(Z0){y=Z0;break}}return R&&y.endsWith(R)?y.slice(0,-R.length):y},UU=(EY(),WU(SY)),EZ=(dY(),WU(uY)),gZ=(oY(),WU(mY)),NX=(nX(),WU(JY)),SV=(()=>({})),nQ=(Q1(),WU(Z1)),IJ=new Set(qU.builtinModules);function vX(J){return J.replace(/\\/g,"/")}let EV={}.hasOwnProperty,PV=/^([A-Z][a-z\d]*)+$/,jV=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),mU={};function kX(J,R="and"){return J.length<3?J.join(` ${R} `):`${J.slice(0,-1).join(", ")}, ${R} ${J[J.length-1]}`}let OJ=new Map,FJ;function QZ(J,R,_){return OJ.set(J,R),function(y,p){return Z0;function Z0(...X0){let I0=Error.stackTraceLimit;xX()&&(Error.stackTraceLimit=0);let P0=new y;xX()&&(Error.stackTraceLimit=I0);let h0=function(w0,a0,s0){let GU=OJ.get(w0);if(EZ(GU!==void 0,"expected `message` to be found"),typeof GU=="function")return EZ(GU.length<=a0.length,`Code: ${w0}; The provided arguments length (${a0.length}) does not match the required ones (${GU.length}).`),Reflect.apply(GU,s0,a0);let SU=/%[dfijoOs]/g,VU=0;for(;SU.exec(GU)!==null;)VU++;return EZ(VU===a0.length,`Code: ${w0}; The provided arguments length (${a0.length}) does not match the required ones (${VU}).`),a0.length===0?GU:(a0.unshift(GU),Reflect.apply(nQ.format,null,a0))}(p,X0,P0);return Object.defineProperties(P0,{message:{value:h0,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${p}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),BV(P0),P0.code=p,P0}}(_,J)}function xX(){try{if(SV.startupSnapshot.isBuildingSnapshot())return!1}catch{}let J=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return J===void 0?Object.isExtensible(Error):EV.call(J,"writable")&&J.writable!==void 0?J.writable:J.set!==void 0}mU.ERR_INVALID_ARG_TYPE=QZ("ERR_INVALID_ARG_TYPE",(J,R,_)=>{EZ(typeof J=="string","'name' must be a string"),Array.isArray(R)||(R=[R]);let y="The ";if(J.endsWith(" argument"))y+=`${J} `;else{let I0=J.includes(".")?"property":"argument";y+=`"${J}" ${I0} `}y+="must be ";let p=[],Z0=[],X0=[];for(let I0 of R)EZ(typeof I0=="string","All expected entries have to be of type string"),jV.has(I0)?p.push(I0.toLowerCase()):PV.exec(I0)===null?(EZ(I0!=="object",'The value "object" should be written as "Object"'),X0.push(I0)):Z0.push(I0);if(Z0.length>0){let I0=p.indexOf("object");I0!==-1&&(p.slice(I0,1),Z0.push("Object"))}return p.length>0&&(y+=`${p.length>1?"one of type":"of type"} ${kX(p,"or")}`,(Z0.length>0||X0.length>0)&&(y+=" or ")),Z0.length>0&&(y+=`an instance of ${kX(Z0,"or")}`,X0.length>0&&(y+=" or ")),X0.length>0&&(X0.length>1?y+=`one of ${kX(X0,"or")}`:(X0[0].toLowerCase()!==X0[0]&&(y+="an "),y+=`${X0[0]}`)),y+=`. Received ${function(I0){if(I0==null)return String(I0);if(typeof I0=="function"&&I0.name)return`function ${I0.name}`;if(typeof I0=="object")return I0.constructor&&I0.constructor.name?`an instance of ${I0.constructor.name}`:`${(0,nQ.inspect)(I0,{depth:-1})}`;let P0=(0,nQ.inspect)(I0,{colors:!1});return P0.length>28&&(P0=`${P0.slice(0,25)}...`),`type ${typeof I0} (${P0})`}(_)}`,y},TypeError),mU.ERR_INVALID_MODULE_SPECIFIER=QZ("ERR_INVALID_MODULE_SPECIFIER",(J,R,_=void 0)=>`Invalid module "${J}" ${R}${_?` imported from ${_}`:""}`,TypeError),mU.ERR_INVALID_PACKAGE_CONFIG=QZ("ERR_INVALID_PACKAGE_CONFIG",(J,R,_)=>`Invalid package config ${J}${R?` while importing ${R}`:""}${_?`. ${_}`:""}`,Error),mU.ERR_INVALID_PACKAGE_TARGET=QZ("ERR_INVALID_PACKAGE_TARGET",(J,R,_,y=!1,p=void 0)=>{let Z0=typeof _=="string"&&!y&&_.length>0&&!_.startsWith("./");return R==="."?(EZ(y===!1),`Invalid "exports" main target ${JSON.stringify(_)} defined in the package config ${J}package.json${p?` imported from ${p}`:""}${Z0?'; targets must start with "./"':""}`):`Invalid "${y?"imports":"exports"}" target ${JSON.stringify(_)} defined for '${R}' in the package config ${J}package.json${p?` imported from ${p}`:""}${Z0?'; targets must start with "./"':""}`},Error),mU.ERR_MODULE_NOT_FOUND=QZ("ERR_MODULE_NOT_FOUND",(J,R,_=!1)=>`Cannot find ${_?"module":"package"} '${J}' imported from ${R}`,Error),mU.ERR_NETWORK_IMPORT_DISALLOWED=QZ("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),mU.ERR_PACKAGE_IMPORT_NOT_DEFINED=QZ("ERR_PACKAGE_IMPORT_NOT_DEFINED",(J,R,_)=>`Package import specifier "${J}" is not defined${R?` in package ${R}package.json`:""} imported from ${_}`,TypeError),mU.ERR_PACKAGE_PATH_NOT_EXPORTED=QZ("ERR_PACKAGE_PATH_NOT_EXPORTED",(J,R,_=void 0)=>R==="."?`No "exports" main defined in ${J}package.json${_?` imported from ${_}`:""}`:`Package subpath '${R}' is not defined by "exports" in ${J}package.json${_?` imported from ${_}`:""}`,Error),mU.ERR_UNSUPPORTED_DIR_IMPORT=QZ("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),mU.ERR_UNSUPPORTED_RESOLVE_REQUEST=QZ("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),mU.ERR_UNKNOWN_FILE_EXTENSION=QZ("ERR_UNKNOWN_FILE_EXTENSION",(J,R)=>`Unknown file extension "${J}" for ${R}`,TypeError),mU.ERR_INVALID_ARG_VALUE=QZ("ERR_INVALID_ARG_VALUE",(J,R,_="is invalid")=>{let y=(0,nQ.inspect)(R);return y.length>128&&(y=`${y.slice(0,128)}...`),`The ${J.includes(".")?"property":"argument"} '${J}' ${_}. Received ${y}`},TypeError);let BV=function(J){let R="__node_internal_"+J.name;return Object.defineProperty(J,"name",{value:R}),J}(function(J){let R=xX();return R&&(FJ=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(J),R&&(Error.stackTraceLimit=FJ),J}),CQ={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:NV}=mU,zJ=new Map;function CJ(J,{base:R,specifier:_}){let y=zJ.get(J);if(y)return y;let p;try{p=OU.readFileSync(NX.toNamespacedPath(J),"utf8")}catch(X0){let I0=X0;if(I0.code!=="ENOENT")throw I0}let Z0={exists:!1,pjsonPath:J,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(p!==void 0){let X0;try{X0=JSON.parse(p)}catch(I0){let P0=I0,h0=new NV(J,(R?`"${_}" from `:"")+(0,UU.fileURLToPath)(R||_),P0.message);throw h0.cause=P0,h0}Z0.exists=!0,CQ.call(X0,"name")&&typeof X0.name=="string"&&(Z0.name=X0.name),CQ.call(X0,"main")&&typeof X0.main=="string"&&(Z0.main=X0.main),CQ.call(X0,"exports")&&(Z0.exports=X0.exports),CQ.call(X0,"imports")&&(Z0.imports=X0.imports),!CQ.call(X0,"type")||X0.type!=="commonjs"&&X0.type!=="module"||(Z0.type=X0.type)}return zJ.set(J,Z0),Z0}function _X(J){let R=new URL("package.json",J);for(;;){if(R.pathname.endsWith("node_modules/package.json"))break;let _=CJ((0,UU.fileURLToPath)(R),{specifier:J});if(_.exists)return _;let y=R;if(R=new URL("../package.json",R),R.pathname===y.pathname)break}return{pjsonPath:(0,UU.fileURLToPath)(R),exists:!1,type:"none"}}function DJ(J){return _X(J).type}let{ERR_UNKNOWN_FILE_EXTENSION:vV}=mU,kV={}.hasOwnProperty,xV={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},LJ={__proto__:null,"data:":function(J){let{1:R}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(J.pathname)||[null,null,null];return function(_){return _&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(_)?"module":_==="application/json"?"json":null}(R)},"file:":function(J,R,_){let y=function(X0){let I0=X0.pathname,P0=I0.length;for(;P0--;){let h0=I0.codePointAt(P0);if(h0===47)return"";if(h0===46)return I0.codePointAt(P0-1)===47?"":I0.slice(P0)}return""}(J);if(y===".js"){let X0=DJ(J);return X0!=="none"?X0:"commonjs"}if(y===""){let X0=DJ(J);return X0==="none"||X0==="commonjs"?"commonjs":"module"}let p=xV[y];if(p)return p;if(_)return;let Z0=(0,UU.fileURLToPath)(J);throw new vV(y,Z0)},"http:":MJ,"https:":MJ,"node:":()=>"builtin"};function MJ(){}let sQ=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:rQ,ERR_INVALID_PACKAGE_CONFIG:AJ,ERR_INVALID_PACKAGE_TARGET:_V,ERR_MODULE_NOT_FOUND:wX,ERR_PACKAGE_IMPORT_NOT_DEFINED:wV,ERR_PACKAGE_PATH_NOT_EXPORTED:gV,ERR_UNSUPPORTED_DIR_IMPORT:fV,ERR_UNSUPPORTED_RESOLVE_REQUEST:qJ}=mU,TJ={}.hasOwnProperty,RJ=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,SJ=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,yV=/^\.|%|\\/,aQ=/\*/g,hV=/%2f|%5c/i,EJ=new Set,pV=/[/\\]{2}/;function PJ(J,R,_,y,p,Z0,X0){if(gZ.noDeprecation)return;let I0=(0,UU.fileURLToPath)(y),P0=pV.exec(X0?J:R)!==null;gZ.emitWarning(`Use of deprecated ${P0?"double slash":"leading or trailing slash matching"} resolving "${J}" for module request "${R}" ${R===_?"":`matched to "${_}" `}in the "${p?"imports":"exports"}" field module resolution of the package at ${I0}${Z0?` imported from ${(0,UU.fileURLToPath)(Z0)}`:""}.`,"DeprecationWarning","DEP0166")}function jJ(J,R,_,y){if(gZ.noDeprecation)return;if(function(P0,h0){let w0=P0.protocol;return kV.call(LJ,w0)&&LJ[w0](P0,h0,!0)||null}(J,{parentURL:_.href})!=="module")return;let Z0=(0,UU.fileURLToPath)(J.href),X0=(0,UU.fileURLToPath)(new UU.URL(".",R)),I0=(0,UU.fileURLToPath)(_);y?NX.resolve(X0,y)!==Z0&&gZ.emitWarning(`Package ${X0} has a "main" field set to "${y}", excluding the full filename and extension to the resolved file at "${Z0.slice(X0.length)}", imported from ${I0}.
|
|
88
|
-
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):gZ.emitWarning(`No "main" or "exports" field defined in the package.json for ${X0} resolving the main entry point "${Z0.slice(X0.length)}", imported from ${I0}.
|
|
89
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function BJ(J){try{return(0,OU.statSync)(J)}catch{}}function gX(J){let R=(0,OU.statSync)(J,{throwIfNoEntry:!1}),_=R?R.isFile():void 0;return _!=null&&_}function cV(J,R,_){let y;if(R.main!==void 0){if(y=new UU.URL(R.main,J),gX(y))return y;let X0=[`./${R.main}.js`,`./${R.main}.json`,`./${R.main}.node`,`./${R.main}/index.js`,`./${R.main}/index.json`,`./${R.main}/index.node`],I0=-1;for(;++I0<X0.length&&(y=new UU.URL(X0[I0],J),!gX(y));)y=void 0;if(y)return jJ(y,J,_,R.main),y}let p=["./index.js","./index.json","./index.node"],Z0=-1;for(;++Z0<p.length&&(y=new UU.URL(p[Z0],J),!gX(y));)y=void 0;if(y)return jJ(y,J,_,R.main),y;throw new wX((0,UU.fileURLToPath)(new UU.URL(".",J)),(0,UU.fileURLToPath)(_))}function fX(J,R,_){return new gV((0,UU.fileURLToPath)(new UU.URL(".",R)),J,_&&(0,UU.fileURLToPath)(_))}function DQ(J,R,_,y,p){return R=typeof R=="object"&&R!==null?JSON.stringify(R,null,""):`${R}`,new _V((0,UU.fileURLToPath)(new UU.URL(".",_)),J,R,y,p&&(0,UU.fileURLToPath)(p))}function bV(J,R,_,y,p,Z0,X0,I0,P0){if(R!==""&&!Z0&&J[J.length-1]!=="/")throw DQ(_,J,y,X0,p);if(!J.startsWith("./")){if(X0&&!J.startsWith("../")&&!J.startsWith("/")){let s0=!1;try{new UU.URL(J),s0=!0}catch{}if(!s0)return kJ(Z0?sQ.call(aQ,J,()=>R):J+R,y,P0)}throw DQ(_,J,y,X0,p)}if(RJ.exec(J.slice(2))!==null){if(SJ.exec(J.slice(2))!==null)throw DQ(_,J,y,X0,p);if(!I0){let s0=Z0?_.replace("*",()=>R):_+R;PJ(Z0?sQ.call(aQ,J,()=>R):J,s0,_,y,X0,p,!0)}}let h0=new UU.URL(J,y),w0=h0.pathname,a0=new UU.URL(".",y).pathname;if(!w0.startsWith(a0))throw DQ(_,J,y,X0,p);if(R==="")return h0;if(RJ.exec(R)!==null){let s0=Z0?_.replace("*",()=>R):_+R;if(SJ.exec(R)===null){if(!I0)PJ(Z0?sQ.call(aQ,J,()=>R):J,s0,_,y,X0,p,!1)}else(function(GU,SU,VU,LU,DU){let RU=`request is not a valid match in pattern "${SU}" for the "${LU?"imports":"exports"}" resolution of ${(0,UU.fileURLToPath)(VU)}`;throw new rQ(GU,RU,DU&&(0,UU.fileURLToPath)(DU))})(s0,_,y,X0,p)}return Z0?new UU.URL(sQ.call(aQ,h0.href,()=>R)):new UU.URL(R,h0)}function uV(J){let R=Number(J);return`${R}`===J&&(R>=0&&R<4294967295)}function aZ(J,R,_,y,p,Z0,X0,I0,P0){if(typeof R=="string")return bV(R,_,y,J,p,Z0,X0,I0,P0);if(Array.isArray(R)){let h0=R;if(h0.length===0)return null;let w0,a0=-1;for(;++a0<h0.length;){let s0=h0[a0],GU;try{GU=aZ(J,s0,_,y,p,Z0,X0,I0,P0)}catch(SU){if(w0=SU,SU.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw SU}if(GU!==void 0){if(GU!==null)return GU;w0=null}}if(w0==null)return null;throw w0}if(typeof R=="object"&&R!==null){let h0=Object.getOwnPropertyNames(R),w0=-1;for(;++w0<h0.length;)if(uV(h0[w0]))throw new AJ((0,UU.fileURLToPath)(J),p,'"exports" cannot contain numeric property keys.');for(w0=-1;++w0<h0.length;){let a0=h0[w0];if(a0==="default"||P0&&P0.has(a0)){let s0=aZ(J,R[a0],_,y,p,Z0,X0,I0,P0);if(s0===void 0)continue;return s0}}return null}if(R===null)return null;throw DQ(y,R,J,X0,p)}function dV(J,R,_){if(gZ.noDeprecation)return;let y=(0,UU.fileURLToPath)(R);EJ.has(y+"|"+J)||(EJ.add(y+"|"+J),gZ.emitWarning(`Use of deprecated trailing slash pattern mapping "${J}" in the "exports" field module resolution of the package at ${y}${_?` imported from ${(0,UU.fileURLToPath)(_)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function NJ(J,R,_,y,p){let Z0=_.exports;if(function(w0,a0,s0){if(typeof w0=="string"||Array.isArray(w0))return!0;if(typeof w0!="object"||w0===null)return!1;let GU=Object.getOwnPropertyNames(w0),SU=!1,VU=0,LU=-1;for(;++LU<GU.length;){let DU=GU[LU],RU=DU===""||DU[0]!==".";if(VU++===0)SU=RU;else if(SU!==RU)throw new AJ((0,UU.fileURLToPath)(a0),s0,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return SU}(Z0,J,y)&&(Z0={".":Z0}),TJ.call(Z0,R)&&!R.includes("*")&&!R.endsWith("/")){let w0=aZ(J,Z0[R],"",R,y,!1,!1,!1,p);if(w0==null)throw fX(R,J,y);return w0}let X0="",I0="",P0=Object.getOwnPropertyNames(Z0),h0=-1;for(;++h0<P0.length;){let w0=P0[h0],a0=w0.indexOf("*");if(a0!==-1&&R.startsWith(w0.slice(0,a0))){R.endsWith("/")&&dV(R,J,y);let s0=w0.slice(a0+1);R.length>=w0.length&&R.endsWith(s0)&&vJ(X0,w0)===1&&w0.lastIndexOf("*")===a0&&(X0=w0,I0=R.slice(a0,R.length-s0.length))}}if(X0){let w0=aZ(J,Z0[X0],I0,X0,y,!0,!1,R.endsWith("/"),p);if(w0==null)throw fX(R,J,y);return w0}throw fX(R,J,y)}function vJ(J,R){let _=J.indexOf("*"),y=R.indexOf("*"),p=_===-1?J.length:_+1,Z0=y===-1?R.length:y+1;return p>Z0?-1:Z0>p||_===-1?1:y===-1||J.length>R.length?-1:R.length>J.length?1:0}function lV(J,R,_){if(J==="#"||J.startsWith("#/")||J.endsWith("/"))throw new rQ(J,"is not a valid internal imports specifier name",(0,UU.fileURLToPath)(R));let y,p=_X(R);if(p.exists){y=(0,UU.pathToFileURL)(p.pjsonPath);let Z0=p.imports;if(Z0)if(TJ.call(Z0,J)&&!J.includes("*")){let X0=aZ(y,Z0[J],"",J,R,!1,!0,!1,_);if(X0!=null)return X0}else{let X0="",I0="",P0=Object.getOwnPropertyNames(Z0),h0=-1;for(;++h0<P0.length;){let w0=P0[h0],a0=w0.indexOf("*");if(a0!==-1&&J.startsWith(w0.slice(0,-1))){let s0=w0.slice(a0+1);J.length>=w0.length&&J.endsWith(s0)&&vJ(X0,w0)===1&&w0.lastIndexOf("*")===a0&&(X0=w0,I0=J.slice(a0,J.length-s0.length))}}if(X0){let w0=aZ(y,Z0[X0],I0,X0,R,!0,!0,!1,_);if(w0!=null)return w0}}}throw function(Z0,X0,I0){return new wV(Z0,X0&&(0,UU.fileURLToPath)(new UU.URL(".",X0)),(0,UU.fileURLToPath)(I0))}(J,y,R)}function kJ(J,R,_){if(qU.builtinModules.includes(J))return new UU.URL("node:"+J);let{packageName:y,packageSubpath:p,isScoped:Z0}=function(w0,a0){let s0=w0.indexOf("/"),GU=!0,SU=!1;w0[0]==="@"&&(SU=!0,s0===-1||w0.length===0?GU=!1:s0=w0.indexOf("/",s0+1));let VU=s0===-1?w0:w0.slice(0,s0);if(yV.exec(VU)!==null&&(GU=!1),!GU)throw new rQ(w0,"is not a valid package name",(0,UU.fileURLToPath)(a0));return{packageName:VU,packageSubpath:"."+(s0===-1?"":w0.slice(s0)),isScoped:SU}}(J,R),X0=_X(R);if(X0.exists){let w0=(0,UU.pathToFileURL)(X0.pjsonPath);if(X0.name===y&&X0.exports!==void 0&&X0.exports!==null)return NJ(w0,p,X0,R,_)}let I0,P0=new UU.URL("./node_modules/"+y+"/package.json",R),h0=(0,UU.fileURLToPath)(P0);do{let w0=BJ(h0.slice(0,-13));if(!w0||!w0.isDirectory()){I0=h0,P0=new UU.URL((Z0?"../../../../node_modules/":"../../../node_modules/")+y+"/package.json",P0),h0=(0,UU.fileURLToPath)(P0);continue}let a0=CJ(h0,{base:R,specifier:J});return a0.exports!==void 0&&a0.exports!==null?NJ(P0,p,a0,R,_):p==="."?cV(P0,a0,R):new UU.URL(p,P0)}while(h0.length!==I0.length);throw new wX(y,(0,UU.fileURLToPath)(R),!1)}function mV(J,R,_,y){let p=R.protocol,Z0=p==="data:"||p==="http:"||p==="https:",X0;if(function(I0){return I0!==""&&(I0[0]==="/"||function(P0){if(P0[0]==="."){if(P0.length===1||P0[1]==="/")return!0;if(P0[1]==="."&&(P0.length===2||P0[2]==="/"))return!0}return!1}(I0))}(J))try{X0=new UU.URL(J,R)}catch(I0){let P0=new qJ(J,R);throw P0.cause=I0,P0}else if(p==="file:"&&J[0]==="#")X0=lV(J,R,_);else try{X0=new UU.URL(J)}catch(I0){if(Z0&&!qU.builtinModules.includes(J)){let P0=new qJ(J,R);throw P0.cause=I0,P0}X0=kJ(J,R,_)}return EZ(X0!==void 0,"expected to be defined"),X0.protocol!=="file:"?X0:function(I0,P0){if(hV.exec(I0.pathname)!==null)throw new rQ(I0.pathname,'must not include encoded "/" or "\\" characters',(0,UU.fileURLToPath)(P0));let h0;try{h0=(0,UU.fileURLToPath)(I0)}catch(a0){let s0=a0;throw Object.defineProperty(s0,"input",{value:String(I0)}),Object.defineProperty(s0,"module",{value:String(P0)}),s0}let w0=BJ(h0.endsWith("/")?h0.slice(-1):h0);if(w0&&w0.isDirectory()){let a0=new fV(h0,(0,UU.fileURLToPath)(P0));throw a0.url=String(I0),a0}if(!w0||!w0.isFile()){let a0=new wX(h0||I0.pathname,P0&&(0,UU.fileURLToPath)(P0),!0);throw a0.url=String(I0),a0}{let a0=(0,OU.realpathSync)(h0),{search:s0,hash:GU}=I0;(I0=(0,UU.pathToFileURL)(a0+(h0.endsWith(NX.sep)?"/":""))).search=s0,I0.hash=GU}return I0}(X0,R)}function LQ(J){return typeof J!="string"||J.startsWith("file://")?vX((0,UU.fileURLToPath)(J)):vX(J)}function tZ(J){return(0,UU.pathToFileURL)(LQ(J)).toString()}let oV=new Set(["node","import"]),nV=[".mjs",".cjs",".js",".json"],sV=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function xJ(J,R,_){try{return mV(J,R,_)}catch(y){if(!sV.has(y?.code))throw y}}function rV(J,R={}){if(typeof J!="string"){if(!(J instanceof URL))throw TypeError("input must be a `string` or `URL`");J=LQ(J)}if(/(?:node|data|http|https):/.test(J))return J;if(IJ.has(J))return"node:"+J;if(J.startsWith("file://")&&(J=LQ(J)),wZ(J))try{if((0,OU.statSync)(J).isFile())return tZ(J)}catch(X0){if(X0?.code!=="ENOENT")throw X0}let _=R.conditions?new Set(R.conditions):oV,y=(Array.isArray(R.url)?R.url:[R.url]).filter(Boolean).map((X0)=>new URL(function(I0){return typeof I0!="string"&&(I0=I0.toString()),/(?:node|data|http|https|file):/.test(I0)?I0:IJ.has(I0)?"node:"+I0:"file://"+encodeURI(vX(I0))}(X0.toString())));y.length===0&&y.push(new URL(tZ(process.cwd())));let p=[...y];for(let X0 of y)X0.protocol==="file:"&&p.push(new URL("./",X0),new URL(kU(X0.pathname,"_index.js"),X0),new URL("node_modules",X0));let Z0;for(let X0 of p){if(Z0=xJ(J,X0,_),Z0)break;for(let I0 of["","/index"]){for(let P0 of R.extensions||nV)if(Z0=xJ(kU(J,I0)+P0,X0,_),Z0)break;if(Z0)break}if(Z0)break}if(!Z0){let X0=Error(`Cannot find module ${J} imported from ${p.join(", ")}`);throw X0.code="ERR_MODULE_NOT_FOUND",X0}return tZ(Z0)}function aV(J,R){return rV(J,R)}function tV(J,R){return LQ(aV(J,R))}let iV=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,eV=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function UK(J,R={}){return R.stripComments&&(J=J.replace(eV,"")),iV.test(J)}function _J(J){if(typeof J!="string")throw TypeError("Expected a string");return J.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let ZK=new Set(["/","\\",void 0]),wJ=Symbol.for("pathe:normalizedAlias"),QK=/[/\\]/;function gJ(J){if(J[wJ])return J;let R=Object.fromEntries(Object.entries(J).sort(([_],[y])=>function(p,Z0){return Z0.split("/").length-p.split("/").length}(_,y)));for(let _ in R)for(let y in R)y===_||_.startsWith(y)||R[_]?.startsWith(y)&&ZK.has(R[_][y.length])&&(R[_]=R[y]+R[_].slice(y.length));return Object.defineProperty(R,wJ,{value:!0,enumerable:!1}),R}function fJ(J="/"){let R=J[J.length-1];return R==="/"||R==="\\"}var XK={rE:"2.6.1"};let JK=(tU(),WU(aU));var yX=V.n(JK);let tQ=Object.create(null),MQ=(J)=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(J?tQ:globalThis),PZ=new Proxy(tQ,{get:(J,R)=>MQ()[R]??tQ[R],has:(J,R)=>(R in MQ())||(R in tQ),set:(J,R,_)=>(MQ(!0)[R]=_,!0),deleteProperty(J,R){if(!R)return!1;return delete MQ(!0)[R],!0},ownKeys(){let J=MQ(!0);return Object.keys(J)}}),YK=typeof process<"u"&&process.env&&"development"||"",GK=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]],yJ=function(){if(globalThis.process?.env)for(let J of GK){let R=J[1]||J[0];if(globalThis.process?.env[R])return{name:J[0].toLowerCase(),...J[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}();yJ.name;function fZ(J){return!!J&&J!=="false"}let hX=globalThis.process?.platform||"",a6=fZ(PZ.CI)||yJ.ci!==!1,WK=fZ(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),t6=(fZ(PZ.DEBUG),YK==="test"||fZ(PZ.TEST)),hJ=(fZ(PZ.MINIMAL),/^win/i.test(hX)),VK=(/^linux/i.test(hX),/^darwin/i.test(hX),!fZ(PZ.NO_COLOR)&&(fZ(PZ.FORCE_COLOR)||(WK||hJ)&&PZ.TERM),(globalThis.process?.versions?.node||"").replace(/^v/,"")||null),KK=(Number(VK?.split(".")[0]),globalThis.process||Object.create(null)),pJ={versions:{}},$K=(new Proxy(KK,{get:(J,R)=>R==="env"?PZ:(R in J)?J[R]:(R in pJ)?pJ[R]:void 0}),globalThis.process?.release?.name==="node"),HK=!!globalThis.Bun||!!globalThis.process?.versions?.bun,IK=!!globalThis.Deno,OK=!!globalThis.fastly,FK=[[!!globalThis.Netlify,"netlify"],[!!globalThis.EdgeRuntime,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[OK,"fastly"],[IK,"deno"],[HK,"bun"],[$K,"node"]];(function(){let J=FK.find((R)=>R[0]);if(J)J[1]})();let zK=(sX(),WU(QX)),CK=zK?.WriteStream?.prototype?.hasColors?.()??!1,KU=(J,R)=>{if(!CK)return(p)=>p;let _=`\x1B[${J}m`,y=`\x1B[${R}m`;return(p)=>{let Z0=p+"",X0=Z0.indexOf(y);if(X0===-1)return _+Z0+y;let I0=_,P0=0,h0=(R===22?y:"")+_;for(;X0!==-1;)I0+=Z0.slice(P0,X0)+h0,P0=X0+y.length,X0=Z0.indexOf(y,P0);return I0+=Z0.slice(P0)+y,I0}},cJ=(KU(0,0),KU(1,22),KU(2,22),KU(3,23),KU(4,24),KU(53,55),KU(7,27),KU(8,28),KU(9,29),KU(30,39),KU(31,39)),iZ=KU(32,39),iQ=KU(33,39),bJ=KU(34,39),DK=(KU(35,39),KU(36,39)),LK=(KU(37,39),KU(90,39));KU(40,49),KU(41,49),KU(42,49),KU(43,49),KU(44,49),KU(45,49),KU(46,49),KU(47,49),KU(100,49),KU(91,39),KU(92,39),KU(93,39),KU(94,39),KU(95,39),KU(96,39),KU(97,39),KU(101,49),KU(102,49),KU(103,49),KU(104,49),KU(105,49),KU(106,49),KU(107,49);function uJ(J){if(typeof J!="string"||J.startsWith("file://"))return!1;try{return(0,OU.lstatSync)(J).isDirectory()}catch{return!1}}function dJ(J,R=8){return(function(){if(eZ!==void 0)return eZ;try{return eZ=!!yX().getFips?.(),eZ}catch{return eZ=!1,eZ}}()?yX().createHash("sha256"):yX().createHash("md5")).update(J).digest("hex").slice(0,R)}let lJ={true:iZ("true"),false:iQ("false"),"[rebuild]":iQ("[rebuild]"),"[esm]":bJ("[esm]"),"[cjs]":iZ("[cjs]"),"[import]":bJ("[import]"),"[require]":iZ("[require]"),"[native]":DK("[native]"),"[transpile]":iQ("[transpile]"),"[fallback]":cJ("[fallback]"),"[unknown]":cJ("[unknown]"),"[hit]":iZ("[hit]"),"[miss]":iQ("[miss]"),"[json]":iZ("[json]"),"[data]":iZ("[data]")};function cU(J,...R){if(!J.opts.debug)return;let _=process.cwd();console.log(LK(["[jiti]",...R.map((y)=>(y in lJ)?lJ[y]:typeof y!="string"?JSON.stringify(y):y.replace(_,"."))].join(" ")))}function yZ(J,R){return J.opts.interopDefault?function(_){let y=typeof _;if(_===null||y!=="object"&&y!=="function")return _;let p=_.default,Z0=typeof p,X0=p==null,I0=Z0==="object"||Z0==="function";if(X0&&_ instanceof Promise)return _;return new Proxy(_,{get(P0,h0,w0){if(h0==="__esModule")return!0;if(h0==="default")return X0?_:typeof p?.default=="function"&&_.__esModule?p.default:p;if(Reflect.has(P0,h0))return Reflect.get(P0,h0,w0);if(I0&&!(p instanceof Promise)){let a0=Reflect.get(p,h0,w0);return typeof a0=="function"&&(a0=a0.bind(p)),a0}},apply:(P0,h0,w0)=>typeof P0=="function"?Reflect.apply(P0,h0,w0):Z0==="function"?Reflect.apply(p,h0,w0):void 0})}(R):R}let eZ;function IZ(J,R){let _=UQ(J,R);return Boolean(_)}function UQ(J,R){let _=process.env[J];if(!(J in process.env))return R;try{return JSON.parse(_)}catch{return R}}let mJ=/\.(c|m)?j(sx?)$/,oJ=/\.(c|m)?t(sx?)$/;function AQ(J,R,_){let y,p;if(J.isNativeRe.test(R))return R;J.alias&&(R=function(I0,P0){let h0=TU(I0);P0=gJ(P0);for(let[w0,a0]of Object.entries(P0)){if(!h0.startsWith(w0))continue;let s0=fJ(w0)?w0.slice(0,-1):w0;if(fJ(h0[s0.length]))return SZ(a0,h0.slice(w0.length))}return h0}(R,J.alias));let Z0=_?.parentURL||J.url;uJ(Z0)&&(Z0=SZ(Z0,"_index.js"));let X0=((_?.async)?[_?.conditions,["node","import"],["node","require"]]:[_?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let I0 of X0){try{y=tV(R,{url:Z0,conditions:I0,extensions:J.opts.extensions})}catch(P0){p=P0}if(y)return y}try{return J.nativeRequire.resolve(R,{paths:_.paths})}catch(I0){p=I0}for(let I0 of J.additionalExts){if(y=pX(J,R+I0,Z0,_)||pX(J,R+"/index"+I0,Z0,_),y)return y;if((oJ.test(J.filename)||oJ.test(J.parentModule?.filename||"")||mJ.test(R))&&(y=pX(J,R.replace(mJ,".$1t$2"),Z0,_),y))return y}if(!_?.try)throw p}function pX(J,R,_,y){try{return J.nativeRequire.resolve(R,{...y,paths:[oQ(LQ(_)),...y?.paths||[]]})}catch{}}let nJ=(()=>({})),MK=(()=>({}));var AK=V.n(MK);function cX(J,R,_){let y=J.parentCache||{};if(R.startsWith("node:"))return hZ(J,R,_.async);if(R.startsWith("file:"))R=(0,UU.fileURLToPath)(R);else if(R.startsWith("data:")){if(!_.async)throw Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return cU(J,"[native]","[data]","[import]",R),hZ(J,R,!0)}if(qU.builtinModules.includes(R)||R===".pnp.js")return hZ(J,R,_.async);if(J.opts.tryNative&&!J.opts.transformOptions)try{if(!(R=AQ(J,R,_))&&_.try)return;if(cU(J,"[try-native]",_.async&&J.nativeImport?"[import]":"[require]",R),_.async&&J.nativeImport)return J.nativeImport(R).then((I0)=>(J.opts.moduleCache===!1&&delete J.nativeRequire.cache[R],yZ(J,I0)));{let I0=J.nativeRequire(R);return J.opts.moduleCache===!1&&delete J.nativeRequire.cache[R],yZ(J,I0)}}catch(I0){cU(J,`[try-native] Using fallback for ${R} because of an error:`,I0)}let p=AQ(J,R,_);if(!p&&_.try)return;let Z0=$J(p);if(Z0===".json"){cU(J,"[json]",p);let I0=J.nativeRequire(p);return I0&&!("default"in I0)&&Object.defineProperty(I0,"default",{value:I0,enumerable:!1}),I0}if(Z0&&!J.opts.extensions.includes(Z0))return cU(J,"[native]","[unknown]",_.async?"[import]":"[require]",p),hZ(J,p,_.async);if(J.isNativeRe.test(p))return cU(J,"[native]",_.async?"[import]":"[require]",p),hZ(J,p,_.async);if(y[p])return yZ(J,y[p]?.exports);if(J.opts.moduleCache){let I0=J.nativeRequire.cache[p];if(I0?.loaded)return yZ(J,I0.exports)}let X0=(0,OU.readFileSync)(p,"utf8");return uX(J,X0,{id:R,filename:p,ext:Z0,cache:y,async:_.async})}function hZ(J,R,_){return _&&J.nativeImport?J.nativeImport(function(y){return hJ&&wZ(y)?tZ(y):y}(R)).then((y)=>yZ(J,y)):yZ(J,J.nativeRequire(R))}let qK="9";function TK(J,R,_){if(!J.opts.fsCache||!R.filename)return _();let y=` /* v${qK}-${dJ(R.source,16)} */
|
|
90
|
-
`,p=`${HJ(oQ(R.filename))}-${function(P0){let h0=P0.split(QK).pop();if(!h0)return;let w0=h0.lastIndexOf(".");return w0<=0?h0:h0.slice(0,w0)}(R.filename)}`+(J.opts.sourceMaps?"+map":"")+(R.interopDefault?".i":"")+`.${dJ(R.filename)}`+(R.async?".mjs":".cjs");R.jsx&&R.filename.endsWith("x")&&(p+="x");let Z0=J.opts.fsCache,X0=SZ(Z0,p);if(!J.opts.rebuildFsCache&&(0,OU.existsSync)(X0)){let P0=(0,OU.readFileSync)(X0,"utf8");if(P0.endsWith(y))return cU(J,"[cache]","[hit]",R.filename,"~>",X0),P0}cU(J,"[cache]","[miss]",R.filename);let I0=_();return I0.includes("__JITI_ERROR__")||((0,OU.writeFileSync)(X0,I0+y,"utf8"),cU(J,"[cache]","[store]",R.filename,"~>",X0)),I0}function RK(J){if(J.opts.fsCache===!0&&(J.opts.fsCache=function(R){let _=R.filename&&RV(R.filename,"../node_modules");if(_&&(0,OU.existsSync)(_))return SZ(_,".cache/jiti");let y=(0,O.tmpdir)();if(process.env.TMPDIR&&y===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let p=process.env.TMPDIR;delete process.env.TMPDIR,y=(0,O.tmpdir)(),process.env.TMPDIR=p}return SZ(y,"jiti")}(J)),J.opts.fsCache)try{if((0,OU.mkdirSync)(J.opts.fsCache,{recursive:!0}),!function(R){try{return(0,OU.accessSync)(R,OU.constants.W_OK),!0}catch{return!1}}(J.opts.fsCache))throw Error("directory is not writable!")}catch(R){cU(J,"Error creating cache directory at ",J.opts.fsCache,R),J.opts.fsCache=!1}}function bX(J,R){let _=TK(J,R,()=>{let y=J.opts.transform({...J.opts.transformOptions,babel:{...J.opts.sourceMaps?{sourceFileName:R.filename,sourceMaps:"inline"}:{},...J.opts.transformOptions?.babel},interopDefault:J.opts.interopDefault,...R});return y.error&&J.opts.debug&&cU(J,y.error),y.code});return _.startsWith("#!")&&(_="// "+_),_}function uX(J,R,_={}){let y=_.id||(_.filename?HJ(_.filename):`_jitiEval.${_.ext||(_.async?"mjs":"js")}`),p=_.filename||AQ(J,y,{async:_.async}),Z0=_.ext||$J(p),X0=_.cache||J.parentCache||{},I0=/\.[cm]?tsx?$/.test(Z0),P0=Z0===".mjs"||Z0===".js"&&function(RU){for(;RU&&RU!=="."&&RU!=="/";){RU=SZ(RU,"..");try{let pZ=(0,OU.readFileSync)(SZ(RU,"package.json"),"utf8");try{return JSON.parse(pZ)}catch{}break}catch{}}}(p)?.type==="module",h0=Z0===".cjs",w0=_.forceTranspile??(!h0&&!(P0&&_.async)&&(I0||P0||J.isTransformRe.test(p)||UK(R))),a0=nJ.performance.now();if(w0){R=bX(J,{filename:p,source:R,ts:I0,async:_.async??!1,jsx:J.opts.jsx});let RU=Math.round(1000*(nJ.performance.now()-a0))/1000;cU(J,"[transpile]",_.async?"[esm]":"[cjs]",p,`(${RU}ms)`)}else{if(cU(J,"[native]",_.async?"[import]":"[require]",p),_.async)return Promise.resolve(hZ(J,p,_.async)).catch((RU)=>(cU(J,"Native import error:",RU),cU(J,"[fallback]",p),uX(J,R,{..._,forceTranspile:!0})));try{return hZ(J,p,_.async)}catch(RU){cU(J,"Native require error:",RU),cU(J,"[fallback]",p),R=bX(J,{filename:p,source:R,ts:I0,async:_.async??!1,jsx:J.opts.jsx})}}let s0=new qU.Module(p);s0.filename=p,J.parentModule&&(s0.parent=J.parentModule,Array.isArray(J.parentModule.children)&&!J.parentModule.children.includes(s0)&&J.parentModule.children.push(s0));let GU=sJ(p,J.opts,{parentModule:s0,parentCache:X0,nativeImport:J.nativeImport,onError:J.onError,createRequire:J.createRequire},!0),SU;s0.require=GU,s0.path=oQ(p),s0.paths=qU.Module._nodeModulePaths(s0.path),X0[p]=s0,J.opts.moduleCache&&(J.nativeRequire.cache[p]=s0);let VU=function(RU,pZ){return`(${pZ?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${RU}
|
|
91
|
-
});`}(R,{async:_.async});try{SU=AK().runInThisContext(VU,{filename:p,lineOffset:0,displayErrors:!1})}catch(RU){RU.name==="SyntaxError"&&_.async&&J.nativeImport?(cU(J,"[esm]","[import]","[fallback]",p),SU=function(pZ,dX){let lX=`data:text/javascript;base64,${Buffer.from(`export default ${pZ}`).toString("base64")}`;return(...mX)=>dX(lX).then((eQ)=>eQ.default(...mX))}(VU,J.nativeImport)):(J.opts.moduleCache&&delete J.nativeRequire.cache[p],J.onError(RU))}let LU;try{LU=SU(s0.exports,s0.require,s0,s0.filename,oQ(s0.filename),GU.import,GU.esmResolve)}catch(RU){J.opts.moduleCache&&delete J.nativeRequire.cache[p],J.onError(RU)}function DU(){if(s0.exports&&s0.exports.__JITI_ERROR__){let{filename:RU,line:pZ,column:dX,code:lX,message:mX}=s0.exports.__JITI_ERROR__,eQ=Error(`${lX}: ${mX}
|
|
92
|
-
${`${RU}:${pZ}:${dX}`}`);Error.captureStackTrace(eQ,cX),J.onError(eQ)}return s0.loaded=!0,yZ(J,s0.exports)}return _.async?Promise.resolve(LU).then(DU):DU()}let SK=(0,O.platform)()==="win32";function sJ(J,R={},_,y=!1){let p=y?R:function(VU){let LU={fsCache:IZ("JITI_FS_CACHE",IZ("JITI_CACHE",!0)),rebuildFsCache:IZ("JITI_REBUILD_FS_CACHE",!1),moduleCache:IZ("JITI_MODULE_CACHE",IZ("JITI_REQUIRE_CACHE",!0)),debug:IZ("JITI_DEBUG",!1),sourceMaps:IZ("JITI_SOURCE_MAPS",!1),interopDefault:IZ("JITI_INTEROP_DEFAULT",!0),extensions:UQ("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:UQ("JITI_ALIAS",{}),nativeModules:UQ("JITI_NATIVE_MODULES",[]),transformModules:UQ("JITI_TRANSFORM_MODULES",[]),tryNative:UQ("JITI_TRY_NATIVE","Bun"in globalThis),jsx:IZ("JITI_JSX",!1)};LU.jsx&&LU.extensions.push(".jsx",".tsx");let DU={};return VU.cache!==void 0&&(DU.fsCache=VU.cache),VU.requireCache!==void 0&&(DU.moduleCache=VU.requireCache),{...LU,...DU,...VU}}(R),Z0=p.alias&&Object.keys(p.alias).length>0?gJ(p.alias||{}):void 0,X0=["typescript","jiti",...p.nativeModules||[]],I0=new RegExp(`node_modules/(${X0.map((VU)=>_J(VU)).join("|")})/`),P0=[...p.transformModules||[]],h0=new RegExp(`node_modules/(${P0.map((VU)=>_J(VU)).join("|")})/`);J||(J=process.cwd()),!y&&uJ(J)&&(J=SZ(J,"_index.js"));let w0=tZ(J),a0=[...p.extensions].filter((VU)=>VU!==".js"),s0=_.createRequire(SK?J.replace(/\//g,"\\"):J),GU={filename:J,url:w0,opts:p,alias:Z0,nativeModules:X0,transformModules:P0,isNativeRe:I0,isTransformRe:h0,additionalExts:a0,nativeRequire:s0,onError:_.onError,parentModule:_.parentModule,parentCache:_.parentCache,nativeImport:_.nativeImport,createRequire:_.createRequire};return y||cU(GU,"[init]",...[["version:",XK.rE],["module-cache:",p.moduleCache],["fs-cache:",p.fsCache],["rebuild-fs-cache:",p.rebuildFsCache],["interop-defaults:",p.interopDefault]].flat()),y||RK(GU),Object.assign(function(VU){return cX(GU,VU,{async:!1})},{cache:p.moduleCache?s0.cache:Object.create(null),extensions:s0.extensions,main:s0.main,options:p,resolve:Object.assign(function(VU){return AQ(GU,VU,{async:!1})},{paths:s0.resolve.paths}),transform:(VU)=>bX(GU,VU),evalModule:(VU,LU)=>uX(GU,VU,LU),async import(VU,LU){let DU=await cX(GU,VU,{...LU,async:!0});return LU?.default?DU?.default??DU:DU},esmResolve(VU,LU){typeof LU=="string"&&(LU={parentURL:LU});let DU=AQ(GU,VU,{parentURL:w0,...LU,async:!0});return!DU||typeof DU!="string"||DU.startsWith("file://")?DU:tZ(DU)}})}})(),IW.exports=z.default})()});var LW=MZ((cQ,c1)=>{(function(W,V){if(typeof cQ==="object"&&typeof c1==="object")c1.exports=V();else if(typeof define==="function"&&define.amd)define([],V);else if(typeof cQ==="object")cQ.esprima=V();else W.esprima=V()})(cQ,function(){return function(Y){var W={};function V(z){if(W[z])return W[z].exports;var O=W[z]={exports:{},id:z,loaded:!1};return Y[z].call(O.exports,O,O.exports,V),O.loaded=!0,O.exports}return V.m=Y,V.c=W,V.p="",V(0)}([function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(1),O=V(3),A=V(8),G=V(15);function v(M,F,D){var S=null,P=function(Q0,J0){if(D)D(Q0,J0);if(S)S.visit(Q0,J0)},k=typeof D==="function"?P:null,x=!1;if(F){x=typeof F.comment==="boolean"&&F.comment;var f=typeof F.attachComment==="boolean"&&F.attachComment;if(x||f)S=new z.CommentHandler,S.attach=f,F.comment=!0,k=P}var h=!1;if(F&&typeof F.sourceType==="string")h=F.sourceType==="module";var c;if(F&&typeof F.jsx==="boolean"&&F.jsx)c=new O.JSXParser(M,F,k);else c=new A.Parser(M,F,k);var m=h?c.parseModule():c.parseScript(),g=m;if(x&&S)g.comments=S.comments;if(c.config.tokens)g.tokens=c.tokens;if(c.config.tolerant)g.errors=c.errorHandler.errors;return g}W.parse=v;function j(M,F,D){var S=F||{};return S.sourceType="module",v(M,S,D)}W.parseModule=j;function E(M,F,D){var S=F||{};return S.sourceType="script",v(M,S,D)}W.parseScript=E;function q(M,F,D){var S=new G.Tokenizer(M,F),P;P=[];try{while(!0){var k=S.getNextToken();if(!k)break;if(D)k=D(k);P.push(k)}}catch(x){S.errorHandler.tolerate(x)}if(S.errorHandler.tolerant)P.errors=S.errors();return P}W.tokenize=q;var C=V(2);W.Syntax=C.Syntax,W.version="4.0.1"},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(2),O=function(){function A(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return A.prototype.insertInnerComments=function(G,v){if(G.type===z.Syntax.BlockStatement&&G.body.length===0){var j=[];for(var E=this.leading.length-1;E>=0;--E){var q=this.leading[E];if(v.end.offset>=q.start)j.unshift(q.comment),this.leading.splice(E,1),this.trailing.splice(E,1)}if(j.length)G.innerComments=j}},A.prototype.findTrailingComments=function(G){var v=[];if(this.trailing.length>0){for(var j=this.trailing.length-1;j>=0;--j){var E=this.trailing[j];if(E.start>=G.end.offset)v.unshift(E.comment)}return this.trailing.length=0,v}var q=this.stack[this.stack.length-1];if(q&&q.node.trailingComments){var C=q.node.trailingComments[0];if(C&&C.range[0]>=G.end.offset)v=q.node.trailingComments,delete q.node.trailingComments}return v},A.prototype.findLeadingComments=function(G){var v=[],j;while(this.stack.length>0){var E=this.stack[this.stack.length-1];if(E&&E.start>=G.start.offset)j=E.node,this.stack.pop();else break}if(j){var q=j.leadingComments?j.leadingComments.length:0;for(var C=q-1;C>=0;--C){var M=j.leadingComments[C];if(M.range[1]<=G.start.offset)v.unshift(M),j.leadingComments.splice(C,1)}if(j.leadingComments&&j.leadingComments.length===0)delete j.leadingComments;return v}for(var C=this.leading.length-1;C>=0;--C){var E=this.leading[C];if(E.start<=G.start.offset)v.unshift(E.comment),this.leading.splice(C,1)}return v},A.prototype.visitNode=function(G,v){if(G.type===z.Syntax.Program&&G.body.length>0)return;this.insertInnerComments(G,v);var j=this.findTrailingComments(v),E=this.findLeadingComments(v);if(E.length>0)G.leadingComments=E;if(j.length>0)G.trailingComments=j;this.stack.push({node:G,start:v.start.offset})},A.prototype.visitComment=function(G,v){var j=G.type[0]==="L"?"Line":"Block",E={type:j,value:G.value};if(G.range)E.range=G.range;if(G.loc)E.loc=G.loc;if(this.comments.push(E),this.attach){var q={comment:{type:j,value:G.value,range:[v.start.offset,v.end.offset]},start:v.start.offset};if(G.loc)q.comment.loc=G.loc;G.type=j,this.leading.push(q),this.trailing.push(q)}},A.prototype.visit=function(G,v){if(G.type==="LineComment")this.visitComment(G,v);else if(G.type==="BlockComment")this.visitComment(G,v);else if(this.attach)this.visitNode(G,v)},A}();W.CommentHandler=O},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0}),W.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Y,W,V){var z=this&&this.__extends||function(){var F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,S){D.__proto__=S}||function(D,S){for(var P in S)if(S.hasOwnProperty(P))D[P]=S[P]};return function(D,S){F(D,S);function P(){this.constructor=D}D.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}}();Object.defineProperty(W,"__esModule",{value:!0});var O=V(4),A=V(5),G=V(6),v=V(7),j=V(8),E=V(13),q=V(14);E.TokenName[100]="JSXIdentifier",E.TokenName[101]="JSXText";function C(F){var D;switch(F.type){case G.JSXSyntax.JSXIdentifier:var S=F;D=S.name;break;case G.JSXSyntax.JSXNamespacedName:var P=F;D=C(P.namespace)+":"+C(P.name);break;case G.JSXSyntax.JSXMemberExpression:var k=F;D=C(k.object)+"."+C(k.property);break;default:break}return D}var M=function(F){z(D,F);function D(S,P,k){return F.call(this,S,P,k)||this}return D.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():F.prototype.parsePrimaryExpression.call(this)},D.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},D.prototype.finishJSX=function(){this.nextToken()},D.prototype.reenterJSX=function(){if(this.startJSX(),this.expectJSX("}"),this.config.tokens)this.tokens.pop()},D.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},D.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},D.prototype.scanXHTMLEntity=function(S){var P="&",k=!0,x=!1,f=!1,h=!1;while(!this.scanner.eof()&&k&&!x){var c=this.scanner.source[this.scanner.index];if(c===S)break;if(x=c===";",P+=c,++this.scanner.index,!x)switch(P.length){case 2:f=c==="#";break;case 3:if(f)h=c==="x",k=h||O.Character.isDecimalDigit(c.charCodeAt(0)),f=f&&!h;break;default:k=k&&!(f&&!O.Character.isDecimalDigit(c.charCodeAt(0))),k=k&&!(h&&!O.Character.isHexDigit(c.charCodeAt(0)));break}}if(k&&x&&P.length>2){var m=P.substr(1,P.length-2);if(f&&m.length>1)P=String.fromCharCode(parseInt(m.substr(1),10));else if(h&&m.length>2)P=String.fromCharCode(parseInt("0"+m.substr(1),16));else if(!f&&!h&&q.XHTMLEntities[m])P=q.XHTMLEntities[m]}return P},D.prototype.lexJSX=function(){var S=this.scanner.source.charCodeAt(this.scanner.index);if(S===60||S===62||S===47||S===58||S===61||S===123||S===125){var P=this.scanner.source[this.scanner.index++];return{type:7,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(S===34||S===39){var k=this.scanner.index,x=this.scanner.source[this.scanner.index++],f="";while(!this.scanner.eof()){var h=this.scanner.source[this.scanner.index++];if(h===x)break;else if(h==="&")f+=this.scanXHTMLEntity(x);else f+=h}return{type:8,value:f,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:k,end:this.scanner.index}}if(S===46){var c=this.scanner.source.charCodeAt(this.scanner.index+1),m=this.scanner.source.charCodeAt(this.scanner.index+2),P=c===46&&m===46?"...":".",k=this.scanner.index;return this.scanner.index+=P.length,{type:7,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:k,end:this.scanner.index}}if(S===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(O.Character.isIdentifierStart(S)&&S!==92){var k=this.scanner.index;++this.scanner.index;while(!this.scanner.eof()){var h=this.scanner.source.charCodeAt(this.scanner.index);if(O.Character.isIdentifierPart(h)&&h!==92)++this.scanner.index;else if(h===45)++this.scanner.index;else break}var g=this.scanner.source.slice(k,this.scanner.index);return{type:100,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:k,end:this.scanner.index}}return this.scanner.lex()},D.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var S=this.lexJSX();if(this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens)this.tokens.push(this.convertToken(S));return S},D.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var S=this.scanner.index,P="";while(!this.scanner.eof()){var k=this.scanner.source[this.scanner.index];if(k==="{"||k==="<")break;if(++this.scanner.index,P+=k,O.Character.isLineTerminator(k.charCodeAt(0))){if(++this.scanner.lineNumber,k==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
93
|
-
`)++this.scanner.index;this.scanner.lineStart=this.scanner.index}}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var x={type:101,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:S,end:this.scanner.index};if(P.length>0&&this.config.tokens)this.tokens.push(this.convertToken(x));return x},D.prototype.peekJSXToken=function(){var S=this.scanner.saveState();this.scanner.scanComments();var P=this.lexJSX();return this.scanner.restoreState(S),P},D.prototype.expectJSX=function(S){var P=this.nextJSXToken();if(P.type!==7||P.value!==S)this.throwUnexpectedToken(P)},D.prototype.matchJSX=function(S){var P=this.peekJSXToken();return P.type===7&&P.value===S},D.prototype.parseJSXIdentifier=function(){var S=this.createJSXNode(),P=this.nextJSXToken();if(P.type!==100)this.throwUnexpectedToken(P);return this.finalize(S,new A.JSXIdentifier(P.value))},D.prototype.parseJSXElementName=function(){var S=this.createJSXNode(),P=this.parseJSXIdentifier();if(this.matchJSX(":")){var k=P;this.expectJSX(":");var x=this.parseJSXIdentifier();P=this.finalize(S,new A.JSXNamespacedName(k,x))}else if(this.matchJSX("."))while(this.matchJSX(".")){var f=P;this.expectJSX(".");var h=this.parseJSXIdentifier();P=this.finalize(S,new A.JSXMemberExpression(f,h))}return P},D.prototype.parseJSXAttributeName=function(){var S=this.createJSXNode(),P,k=this.parseJSXIdentifier();if(this.matchJSX(":")){var x=k;this.expectJSX(":");var f=this.parseJSXIdentifier();P=this.finalize(S,new A.JSXNamespacedName(x,f))}else P=k;return P},D.prototype.parseJSXStringLiteralAttribute=function(){var S=this.createJSXNode(),P=this.nextJSXToken();if(P.type!==8)this.throwUnexpectedToken(P);var k=this.getTokenRaw(P);return this.finalize(S,new v.Literal(P.value,k))},D.prototype.parseJSXExpressionAttribute=function(){var S=this.createJSXNode();if(this.expectJSX("{"),this.finishJSX(),this.match("}"))this.tolerateError("JSX attributes must only be assigned a non-empty expression");var P=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(S,new A.JSXExpressionContainer(P))},D.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},D.prototype.parseJSXNameValueAttribute=function(){var S=this.createJSXNode(),P=this.parseJSXAttributeName(),k=null;if(this.matchJSX("="))this.expectJSX("="),k=this.parseJSXAttributeValue();return this.finalize(S,new A.JSXAttribute(P,k))},D.prototype.parseJSXSpreadAttribute=function(){var S=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var P=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(S,new A.JSXSpreadAttribute(P))},D.prototype.parseJSXAttributes=function(){var S=[];while(!this.matchJSX("/")&&!this.matchJSX(">")){var P=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();S.push(P)}return S},D.prototype.parseJSXOpeningElement=function(){var S=this.createJSXNode();this.expectJSX("<");var P=this.parseJSXElementName(),k=this.parseJSXAttributes(),x=this.matchJSX("/");if(x)this.expectJSX("/");return this.expectJSX(">"),this.finalize(S,new A.JSXOpeningElement(P,x,k))},D.prototype.parseJSXBoundaryElement=function(){var S=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var P=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(S,new A.JSXClosingElement(P))}var k=this.parseJSXElementName(),x=this.parseJSXAttributes(),f=this.matchJSX("/");if(f)this.expectJSX("/");return this.expectJSX(">"),this.finalize(S,new A.JSXOpeningElement(k,f,x))},D.prototype.parseJSXEmptyExpression=function(){var S=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(S,new A.JSXEmptyExpression)},D.prototype.parseJSXExpressionContainer=function(){var S=this.createJSXNode();this.expectJSX("{");var P;if(this.matchJSX("}"))P=this.parseJSXEmptyExpression(),this.expectJSX("}");else this.finishJSX(),P=this.parseAssignmentExpression(),this.reenterJSX();return this.finalize(S,new A.JSXExpressionContainer(P))},D.prototype.parseJSXChildren=function(){var S=[];while(!this.scanner.eof()){var P=this.createJSXChildNode(),k=this.nextJSXText();if(k.start<k.end){var x=this.getTokenRaw(k),f=this.finalize(P,new A.JSXText(k.value,x));S.push(f)}if(this.scanner.source[this.scanner.index]==="{"){var h=this.parseJSXExpressionContainer();S.push(h)}else break}return S},D.prototype.parseComplexJSXElement=function(S){var P=[];while(!this.scanner.eof()){S.children=S.children.concat(this.parseJSXChildren());var k=this.createJSXChildNode(),x=this.parseJSXBoundaryElement();if(x.type===G.JSXSyntax.JSXOpeningElement){var f=x;if(f.selfClosing){var h=this.finalize(k,new A.JSXElement(f,[],null));S.children.push(h)}else P.push(S),S={node:k,opening:f,closing:null,children:[]}}if(x.type===G.JSXSyntax.JSXClosingElement){S.closing=x;var c=C(S.opening.name),m=C(S.closing.name);if(c!==m)this.tolerateError("Expected corresponding JSX closing tag for %0",c);if(P.length>0){var h=this.finalize(S.node,new A.JSXElement(S.opening,S.children,S.closing));S=P[P.length-1],S.children.push(h),P.pop()}else break}}return S},D.prototype.parseJSXElement=function(){var S=this.createJSXNode(),P=this.parseJSXOpeningElement(),k=[],x=null;if(!P.selfClosing){var f=this.parseComplexJSXElement({node:S,opening:P,closing:x,children:k});k=f.children,x=f.closing}return this.finalize(S,new A.JSXElement(P,k,x))},D.prototype.parseJSXRoot=function(){if(this.config.tokens)this.tokens.pop();this.startJSX();var S=this.parseJSXElement();return this.finishJSX(),S},D.prototype.isStartOfExpression=function(){return F.prototype.isStartOfExpression.call(this)||this.match("<")},D}(j.Parser);W.JSXParser=M},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0});var V={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};W.Character={fromCodePoint:function(z){return z<65536?String.fromCharCode(z):String.fromCharCode(55296+(z-65536>>10))+String.fromCharCode(56320+(z-65536&1023))},isWhiteSpace:function(z){return z===32||z===9||z===11||z===12||z===160||z>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(z)>=0},isLineTerminator:function(z){return z===10||z===13||z===8232||z===8233},isIdentifierStart:function(z){return z===36||z===95||z>=65&&z<=90||z>=97&&z<=122||z===92||z>=128&&V.NonAsciiIdentifierStart.test(W.Character.fromCodePoint(z))},isIdentifierPart:function(z){return z===36||z===95||z>=65&&z<=90||z>=97&&z<=122||z>=48&&z<=57||z===92||z>=128&&V.NonAsciiIdentifierPart.test(W.Character.fromCodePoint(z))},isDecimalDigit:function(z){return z>=48&&z<=57},isHexDigit:function(z){return z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102},isOctalDigit:function(z){return z>=48&&z<=55}}},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(6),O=function(){function S(P){this.type=z.JSXSyntax.JSXClosingElement,this.name=P}return S}();W.JSXClosingElement=O;var A=function(){function S(P,k,x){this.type=z.JSXSyntax.JSXElement,this.openingElement=P,this.children=k,this.closingElement=x}return S}();W.JSXElement=A;var G=function(){function S(){this.type=z.JSXSyntax.JSXEmptyExpression}return S}();W.JSXEmptyExpression=G;var v=function(){function S(P){this.type=z.JSXSyntax.JSXExpressionContainer,this.expression=P}return S}();W.JSXExpressionContainer=v;var j=function(){function S(P){this.type=z.JSXSyntax.JSXIdentifier,this.name=P}return S}();W.JSXIdentifier=j;var E=function(){function S(P,k){this.type=z.JSXSyntax.JSXMemberExpression,this.object=P,this.property=k}return S}();W.JSXMemberExpression=E;var q=function(){function S(P,k){this.type=z.JSXSyntax.JSXAttribute,this.name=P,this.value=k}return S}();W.JSXAttribute=q;var C=function(){function S(P,k){this.type=z.JSXSyntax.JSXNamespacedName,this.namespace=P,this.name=k}return S}();W.JSXNamespacedName=C;var M=function(){function S(P,k,x){this.type=z.JSXSyntax.JSXOpeningElement,this.name=P,this.selfClosing=k,this.attributes=x}return S}();W.JSXOpeningElement=M;var F=function(){function S(P){this.type=z.JSXSyntax.JSXSpreadAttribute,this.argument=P}return S}();W.JSXSpreadAttribute=F;var D=function(){function S(P,k){this.type=z.JSXSyntax.JSXText,this.value=P,this.raw=k}return S}();W.JSXText=D},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0}),W.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(2),O=function(){function K0(E0){this.type=z.Syntax.ArrayExpression,this.elements=E0}return K0}();W.ArrayExpression=O;var A=function(){function K0(E0){this.type=z.Syntax.ArrayPattern,this.elements=E0}return K0}();W.ArrayPattern=A;var G=function(){function K0(E0,C0,N0){this.type=z.Syntax.ArrowFunctionExpression,this.id=null,this.params=E0,this.body=C0,this.generator=!1,this.expression=N0,this.async=!1}return K0}();W.ArrowFunctionExpression=G;var v=function(){function K0(E0,C0,N0){this.type=z.Syntax.AssignmentExpression,this.operator=E0,this.left=C0,this.right=N0}return K0}();W.AssignmentExpression=v;var j=function(){function K0(E0,C0){this.type=z.Syntax.AssignmentPattern,this.left=E0,this.right=C0}return K0}();W.AssignmentPattern=j;var E=function(){function K0(E0,C0,N0){this.type=z.Syntax.ArrowFunctionExpression,this.id=null,this.params=E0,this.body=C0,this.generator=!1,this.expression=N0,this.async=!0}return K0}();W.AsyncArrowFunctionExpression=E;var q=function(){function K0(E0,C0,N0){this.type=z.Syntax.FunctionDeclaration,this.id=E0,this.params=C0,this.body=N0,this.generator=!1,this.expression=!1,this.async=!0}return K0}();W.AsyncFunctionDeclaration=q;var C=function(){function K0(E0,C0,N0){this.type=z.Syntax.FunctionExpression,this.id=E0,this.params=C0,this.body=N0,this.generator=!1,this.expression=!1,this.async=!0}return K0}();W.AsyncFunctionExpression=C;var M=function(){function K0(E0){this.type=z.Syntax.AwaitExpression,this.argument=E0}return K0}();W.AwaitExpression=M;var F=function(){function K0(E0,C0,N0){var IU=E0==="||"||E0==="&&";this.type=IU?z.Syntax.LogicalExpression:z.Syntax.BinaryExpression,this.operator=E0,this.left=C0,this.right=N0}return K0}();W.BinaryExpression=F;var D=function(){function K0(E0){this.type=z.Syntax.BlockStatement,this.body=E0}return K0}();W.BlockStatement=D;var S=function(){function K0(E0){this.type=z.Syntax.BreakStatement,this.label=E0}return K0}();W.BreakStatement=S;var P=function(){function K0(E0,C0){this.type=z.Syntax.CallExpression,this.callee=E0,this.arguments=C0}return K0}();W.CallExpression=P;var k=function(){function K0(E0,C0){this.type=z.Syntax.CatchClause,this.param=E0,this.body=C0}return K0}();W.CatchClause=k;var x=function(){function K0(E0){this.type=z.Syntax.ClassBody,this.body=E0}return K0}();W.ClassBody=x;var f=function(){function K0(E0,C0,N0){this.type=z.Syntax.ClassDeclaration,this.id=E0,this.superClass=C0,this.body=N0}return K0}();W.ClassDeclaration=f;var h=function(){function K0(E0,C0,N0){this.type=z.Syntax.ClassExpression,this.id=E0,this.superClass=C0,this.body=N0}return K0}();W.ClassExpression=h;var c=function(){function K0(E0,C0){this.type=z.Syntax.MemberExpression,this.computed=!0,this.object=E0,this.property=C0}return K0}();W.ComputedMemberExpression=c;var m=function(){function K0(E0,C0,N0){this.type=z.Syntax.ConditionalExpression,this.test=E0,this.consequent=C0,this.alternate=N0}return K0}();W.ConditionalExpression=m;var g=function(){function K0(E0){this.type=z.Syntax.ContinueStatement,this.label=E0}return K0}();W.ContinueStatement=g;var Q0=function(){function K0(){this.type=z.Syntax.DebuggerStatement}return K0}();W.DebuggerStatement=Q0;var J0=function(){function K0(E0,C0){this.type=z.Syntax.ExpressionStatement,this.expression=E0,this.directive=C0}return K0}();W.Directive=J0;var r=function(){function K0(E0,C0){this.type=z.Syntax.DoWhileStatement,this.body=E0,this.test=C0}return K0}();W.DoWhileStatement=r;var O0=function(){function K0(){this.type=z.Syntax.EmptyStatement}return K0}();W.EmptyStatement=O0;var U=function(){function K0(E0){this.type=z.Syntax.ExportAllDeclaration,this.source=E0}return K0}();W.ExportAllDeclaration=U;var X=function(){function K0(E0){this.type=z.Syntax.ExportDefaultDeclaration,this.declaration=E0}return K0}();W.ExportDefaultDeclaration=X;var $=function(){function K0(E0,C0,N0){this.type=z.Syntax.ExportNamedDeclaration,this.declaration=E0,this.specifiers=C0,this.source=N0}return K0}();W.ExportNamedDeclaration=$;var Q=function(){function K0(E0,C0){this.type=z.Syntax.ExportSpecifier,this.exported=C0,this.local=E0}return K0}();W.ExportSpecifier=Q;var K=function(){function K0(E0){this.type=z.Syntax.ExpressionStatement,this.expression=E0}return K0}();W.ExpressionStatement=K;var L=function(){function K0(E0,C0,N0){this.type=z.Syntax.ForInStatement,this.left=E0,this.right=C0,this.body=N0,this.each=!1}return K0}();W.ForInStatement=L;var T=function(){function K0(E0,C0,N0){this.type=z.Syntax.ForOfStatement,this.left=E0,this.right=C0,this.body=N0}return K0}();W.ForOfStatement=T;var I=function(){function K0(E0,C0,N0,IU){this.type=z.Syntax.ForStatement,this.init=E0,this.test=C0,this.update=N0,this.body=IU}return K0}();W.ForStatement=I;var Z=function(){function K0(E0,C0,N0,IU){this.type=z.Syntax.FunctionDeclaration,this.id=E0,this.params=C0,this.body=N0,this.generator=IU,this.expression=!1,this.async=!1}return K0}();W.FunctionDeclaration=Z;var H=function(){function K0(E0,C0,N0,IU){this.type=z.Syntax.FunctionExpression,this.id=E0,this.params=C0,this.body=N0,this.generator=IU,this.expression=!1,this.async=!1}return K0}();W.FunctionExpression=H;var N=function(){function K0(E0){this.type=z.Syntax.Identifier,this.name=E0}return K0}();W.Identifier=N;var B=function(){function K0(E0,C0,N0){this.type=z.Syntax.IfStatement,this.test=E0,this.consequent=C0,this.alternate=N0}return K0}();W.IfStatement=B;var w=function(){function K0(E0,C0){this.type=z.Syntax.ImportDeclaration,this.specifiers=E0,this.source=C0}return K0}();W.ImportDeclaration=w;var u=function(){function K0(E0){this.type=z.Syntax.ImportDefaultSpecifier,this.local=E0}return K0}();W.ImportDefaultSpecifier=u;var s=function(){function K0(E0){this.type=z.Syntax.ImportNamespaceSpecifier,this.local=E0}return K0}();W.ImportNamespaceSpecifier=s;var Y0=function(){function K0(E0,C0){this.type=z.Syntax.ImportSpecifier,this.local=E0,this.imported=C0}return K0}();W.ImportSpecifier=Y0;var M0=function(){function K0(E0,C0){this.type=z.Syntax.LabeledStatement,this.label=E0,this.body=C0}return K0}();W.LabeledStatement=M0;var n=function(){function K0(E0,C0){this.type=z.Syntax.Literal,this.value=E0,this.raw=C0}return K0}();W.Literal=n;var b=function(){function K0(E0,C0){this.type=z.Syntax.MetaProperty,this.meta=E0,this.property=C0}return K0}();W.MetaProperty=b;var a=function(){function K0(E0,C0,N0,IU,u0){this.type=z.Syntax.MethodDefinition,this.key=E0,this.computed=C0,this.value=N0,this.kind=IU,this.static=u0}return K0}();W.MethodDefinition=a;var l=function(){function K0(E0){this.type=z.Syntax.Program,this.body=E0,this.sourceType="module"}return K0}();W.Module=l;var G0=function(){function K0(E0,C0){this.type=z.Syntax.NewExpression,this.callee=E0,this.arguments=C0}return K0}();W.NewExpression=G0;var A0=function(){function K0(E0){this.type=z.Syntax.ObjectExpression,this.properties=E0}return K0}();W.ObjectExpression=A0;var o=function(){function K0(E0){this.type=z.Syntax.ObjectPattern,this.properties=E0}return K0}();W.ObjectPattern=o;var t=function(){function K0(E0,C0,N0,IU,u0,d0){this.type=z.Syntax.Property,this.key=C0,this.computed=N0,this.value=IU,this.kind=E0,this.method=u0,this.shorthand=d0}return K0}();W.Property=t;var V0=function(){function K0(E0,C0,N0,IU){this.type=z.Syntax.Literal,this.value=E0,this.raw=C0,this.regex={pattern:N0,flags:IU}}return K0}();W.RegexLiteral=V0;var z0=function(){function K0(E0){this.type=z.Syntax.RestElement,this.argument=E0}return K0}();W.RestElement=z0;var U0=function(){function K0(E0){this.type=z.Syntax.ReturnStatement,this.argument=E0}return K0}();W.ReturnStatement=U0;var x0=function(){function K0(E0){this.type=z.Syntax.Program,this.body=E0,this.sourceType="script"}return K0}();W.Script=x0;var e=function(){function K0(E0){this.type=z.Syntax.SequenceExpression,this.expressions=E0}return K0}();W.SequenceExpression=e;var H0=function(){function K0(E0){this.type=z.Syntax.SpreadElement,this.argument=E0}return K0}();W.SpreadElement=H0;var p0=function(){function K0(E0,C0){this.type=z.Syntax.MemberExpression,this.computed=!1,this.object=E0,this.property=C0}return K0}();W.StaticMemberExpression=p0;var F0=function(){function K0(){this.type=z.Syntax.Super}return K0}();W.Super=F0;var D0=function(){function K0(E0,C0){this.type=z.Syntax.SwitchCase,this.test=E0,this.consequent=C0}return K0}();W.SwitchCase=D0;var i0=function(){function K0(E0,C0){this.type=z.Syntax.SwitchStatement,this.discriminant=E0,this.cases=C0}return K0}();W.SwitchStatement=i0;var i=function(){function K0(E0,C0){this.type=z.Syntax.TaggedTemplateExpression,this.tag=E0,this.quasi=C0}return K0}();W.TaggedTemplateExpression=i;var W0=function(){function K0(E0,C0){this.type=z.Syntax.TemplateElement,this.value=E0,this.tail=C0}return K0}();W.TemplateElement=W0;var v0=function(){function K0(E0,C0){this.type=z.Syntax.TemplateLiteral,this.quasis=E0,this.expressions=C0}return K0}();W.TemplateLiteral=v0;var q0=function(){function K0(){this.type=z.Syntax.ThisExpression}return K0}();W.ThisExpression=q0;var S0=function(){function K0(E0){this.type=z.Syntax.ThrowStatement,this.argument=E0}return K0}();W.ThrowStatement=S0;var e0=function(){function K0(E0,C0,N0){this.type=z.Syntax.TryStatement,this.block=E0,this.handler=C0,this.finalizer=N0}return K0}();W.TryStatement=e0;var j0=function(){function K0(E0,C0){this.type=z.Syntax.UnaryExpression,this.operator=E0,this.argument=C0,this.prefix=!0}return K0}();W.UnaryExpression=j0;var B0=function(){function K0(E0,C0,N0){this.type=z.Syntax.UpdateExpression,this.operator=E0,this.argument=C0,this.prefix=N0}return K0}();W.UpdateExpression=B0;var XU=function(){function K0(E0,C0){this.type=z.Syntax.VariableDeclaration,this.declarations=E0,this.kind=C0}return K0}();W.VariableDeclaration=XU;var _0=function(){function K0(E0,C0){this.type=z.Syntax.VariableDeclarator,this.id=E0,this.init=C0}return K0}();W.VariableDeclarator=_0;var g0=function(){function K0(E0,C0){this.type=z.Syntax.WhileStatement,this.test=E0,this.body=C0}return K0}();W.WhileStatement=g0;var MU=function(){function K0(E0,C0){this.type=z.Syntax.WithStatement,this.object=E0,this.body=C0}return K0}();W.WithStatement=MU;var c0=function(){function K0(E0,C0){this.type=z.Syntax.YieldExpression,this.argument=E0,this.delegate=C0}return K0}();W.YieldExpression=c0},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(9),O=V(10),A=V(11),G=V(7),v=V(12),j=V(2),E=V(13),q="ArrowParameterPlaceHolder",C=function(){function M(F,D,S){if(D===void 0)D={};if(this.config={range:typeof D.range==="boolean"&&D.range,loc:typeof D.loc==="boolean"&&D.loc,source:null,tokens:typeof D.tokens==="boolean"&&D.tokens,comment:typeof D.comment==="boolean"&&D.comment,tolerant:typeof D.tolerant==="boolean"&&D.tolerant},this.config.loc&&D.source&&D.source!==null)this.config.source=String(D.source);this.delegate=S,this.errorHandler=new O.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new v.Scanner(F,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return M.prototype.throwError=function(F){var D=[];for(var S=1;S<arguments.length;S++)D[S-1]=arguments[S];var P=Array.prototype.slice.call(arguments,1),k=F.replace(/%(\d)/g,function(c,m){return z.assert(m<P.length,"Message reference must be in range"),P[m]}),x=this.lastMarker.index,f=this.lastMarker.line,h=this.lastMarker.column+1;throw this.errorHandler.createError(x,f,h,k)},M.prototype.tolerateError=function(F){var D=[];for(var S=1;S<arguments.length;S++)D[S-1]=arguments[S];var P=Array.prototype.slice.call(arguments,1),k=F.replace(/%(\d)/g,function(c,m){return z.assert(m<P.length,"Message reference must be in range"),P[m]}),x=this.lastMarker.index,f=this.scanner.lineNumber,h=this.lastMarker.column+1;this.errorHandler.tolerateError(x,f,h,k)},M.prototype.unexpectedTokenError=function(F,D){var S=D||A.Messages.UnexpectedToken,P;if(F){if(!D){if(S=F.type===2?A.Messages.UnexpectedEOS:F.type===3?A.Messages.UnexpectedIdentifier:F.type===6?A.Messages.UnexpectedNumber:F.type===8?A.Messages.UnexpectedString:F.type===10?A.Messages.UnexpectedTemplate:A.Messages.UnexpectedToken,F.type===4){if(this.scanner.isFutureReservedWord(F.value))S=A.Messages.UnexpectedReserved;else if(this.context.strict&&this.scanner.isStrictModeReservedWord(F.value))S=A.Messages.StrictReservedWord}}P=F.value}else P="ILLEGAL";if(S=S.replace("%0",P),F&&typeof F.lineNumber==="number"){var{start:k,lineNumber:x}=F,f=this.lastMarker.index-this.lastMarker.column,h=F.start-f+1;return this.errorHandler.createError(k,x,h,S)}else{var k=this.lastMarker.index,x=this.lastMarker.line,h=this.lastMarker.column+1;return this.errorHandler.createError(k,x,h,S)}},M.prototype.throwUnexpectedToken=function(F,D){throw this.unexpectedTokenError(F,D)},M.prototype.tolerateUnexpectedToken=function(F,D){this.errorHandler.tolerate(this.unexpectedTokenError(F,D))},M.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var F=this.scanner.scanComments();if(F.length>0&&this.delegate)for(var D=0;D<F.length;++D){var S=F[D],P=void 0;if(P={type:S.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(S.slice[0],S.slice[1])},this.config.range)P.range=S.range;if(this.config.loc)P.loc=S.loc;var k={start:{line:S.loc.start.line,column:S.loc.start.column,offset:S.range[0]},end:{line:S.loc.end.line,column:S.loc.end.column,offset:S.range[1]}};this.delegate(P,k)}}},M.prototype.getTokenRaw=function(F){return this.scanner.source.slice(F.start,F.end)},M.prototype.convertToken=function(F){var D={type:E.TokenName[F.type],value:this.getTokenRaw(F)};if(this.config.range)D.range=[F.start,F.end];if(this.config.loc)D.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}};if(F.type===9){var{pattern:S,flags:P}=F;D.regex={pattern:S,flags:P}}return D},M.prototype.nextToken=function(){var F=this.lookahead;if(this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index)this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var D=this.scanner.lex();if(this.hasLineTerminator=F.lineNumber!==D.lineNumber,D&&this.context.strict&&D.type===3){if(this.scanner.isStrictModeReservedWord(D.value))D.type=4}if(this.lookahead=D,this.config.tokens&&D.type!==2)this.tokens.push(this.convertToken(D));return F},M.prototype.nextRegexToken=function(){this.collectComments();var F=this.scanner.scanRegExp();if(this.config.tokens)this.tokens.pop(),this.tokens.push(this.convertToken(F));return this.lookahead=F,this.nextToken(),F},M.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},M.prototype.startNode=function(F,D){if(D===void 0)D=0;var S=F.start-F.lineStart,P=F.lineNumber;if(S<0)S+=D,P--;return{index:F.start,line:P,column:S}},M.prototype.finalize=function(F,D){if(this.config.range)D.range=[F.index,this.lastMarker.index];if(this.config.loc){if(D.loc={start:{line:F.line,column:F.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source)D.loc.source=this.config.source}if(this.delegate){var S={start:{line:F.line,column:F.column,offset:F.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(D,S)}return D},M.prototype.expect=function(F){var D=this.nextToken();if(D.type!==7||D.value!==F)this.throwUnexpectedToken(D)},M.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var F=this.lookahead;if(F.type===7&&F.value===",")this.nextToken();else if(F.type===7&&F.value===";")this.nextToken(),this.tolerateUnexpectedToken(F);else this.tolerateUnexpectedToken(F,A.Messages.UnexpectedToken)}else this.expect(",")},M.prototype.expectKeyword=function(F){var D=this.nextToken();if(D.type!==4||D.value!==F)this.throwUnexpectedToken(D)},M.prototype.match=function(F){return this.lookahead.type===7&&this.lookahead.value===F},M.prototype.matchKeyword=function(F){return this.lookahead.type===4&&this.lookahead.value===F},M.prototype.matchContextualKeyword=function(F){return this.lookahead.type===3&&this.lookahead.value===F},M.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var F=this.lookahead.value;return F==="="||F==="*="||F==="**="||F==="/="||F==="%="||F==="+="||F==="-="||F==="<<="||F===">>="||F===">>>="||F==="&="||F==="^="||F==="|="},M.prototype.isolateCoverGrammar=function(F){var D=this.context.isBindingElement,S=this.context.isAssignmentTarget,P=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var k=F.call(this);if(this.context.firstCoverInitializedNameError!==null)this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);return this.context.isBindingElement=D,this.context.isAssignmentTarget=S,this.context.firstCoverInitializedNameError=P,k},M.prototype.inheritCoverGrammar=function(F){var D=this.context.isBindingElement,S=this.context.isAssignmentTarget,P=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var k=F.call(this);return this.context.isBindingElement=this.context.isBindingElement&&D,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&S,this.context.firstCoverInitializedNameError=P||this.context.firstCoverInitializedNameError,k},M.prototype.consumeSemicolon=function(){if(this.match(";"))this.nextToken();else if(!this.hasLineTerminator){if(this.lookahead.type!==2&&!this.match("}"))this.throwUnexpectedToken(this.lookahead);this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column}},M.prototype.parsePrimaryExpression=function(){var F=this.createNode(),D,S,P;switch(this.lookahead.type){case 3:if((this.context.isModule||this.context.await)&&this.lookahead.value==="await")this.tolerateUnexpectedToken(this.lookahead);D=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(F,new G.Identifier(this.nextToken().value));break;case 6:case 8:if(this.context.strict&&this.lookahead.octal)this.tolerateUnexpectedToken(this.lookahead,A.Messages.StrictOctalLiteral);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,S=this.nextToken(),P=this.getTokenRaw(S),D=this.finalize(F,new G.Literal(S.value,P));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,S=this.nextToken(),P=this.getTokenRaw(S),D=this.finalize(F,new G.Literal(S.value==="true",P));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,S=this.nextToken(),P=this.getTokenRaw(S),D=this.finalize(F,new G.Literal(null,P));break;case 10:D=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,D=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":D=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":D=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,S=this.nextRegexToken(),P=this.getTokenRaw(S),D=this.finalize(F,new G.RegexLiteral(S.regex,P,S.pattern,S.flags));break;default:D=this.throwUnexpectedToken(this.nextToken())}break;case 4:if(!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield"))D=this.parseIdentifierName();else if(!this.context.strict&&this.matchKeyword("let"))D=this.finalize(F,new G.Identifier(this.nextToken().value));else if(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function"))D=this.parseFunctionExpression();else if(this.matchKeyword("this"))this.nextToken(),D=this.finalize(F,new G.ThisExpression);else if(this.matchKeyword("class"))D=this.parseClassExpression();else D=this.throwUnexpectedToken(this.nextToken());break;default:D=this.throwUnexpectedToken(this.nextToken())}return D},M.prototype.parseSpreadElement=function(){var F=this.createNode();this.expect("...");var D=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(F,new G.SpreadElement(D))},M.prototype.parseArrayInitializer=function(){var F=this.createNode(),D=[];this.expect("[");while(!this.match("]"))if(this.match(","))this.nextToken(),D.push(null);else if(this.match("...")){var S=this.parseSpreadElement();if(!this.match("]"))this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",");D.push(S)}else if(D.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),!this.match("]"))this.expect(",");return this.expect("]"),this.finalize(F,new G.ArrayExpression(D))},M.prototype.parsePropertyMethod=function(F){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var D=this.context.strict,S=this.context.allowStrictDirective;this.context.allowStrictDirective=F.simple;var P=this.isolateCoverGrammar(this.parseFunctionSourceElements);if(this.context.strict&&F.firstRestricted)this.tolerateUnexpectedToken(F.firstRestricted,F.message);if(this.context.strict&&F.stricted)this.tolerateUnexpectedToken(F.stricted,F.message);return this.context.strict=D,this.context.allowStrictDirective=S,P},M.prototype.parsePropertyMethodFunction=function(){var F=!1,D=this.createNode(),S=this.context.allowYield;this.context.allowYield=!0;var P=this.parseFormalParameters(),k=this.parsePropertyMethod(P);return this.context.allowYield=S,this.finalize(D,new G.FunctionExpression(null,P.params,k,F))},M.prototype.parsePropertyMethodAsyncFunction=function(){var F=this.createNode(),D=this.context.allowYield,S=this.context.await;this.context.allowYield=!1,this.context.await=!0;var P=this.parseFormalParameters(),k=this.parsePropertyMethod(P);return this.context.allowYield=D,this.context.await=S,this.finalize(F,new G.AsyncFunctionExpression(null,P.params,k))},M.prototype.parseObjectPropertyKey=function(){var F=this.createNode(),D=this.nextToken(),S;switch(D.type){case 8:case 6:if(this.context.strict&&D.octal)this.tolerateUnexpectedToken(D,A.Messages.StrictOctalLiteral);var P=this.getTokenRaw(D);S=this.finalize(F,new G.Literal(D.value,P));break;case 3:case 1:case 5:case 4:S=this.finalize(F,new G.Identifier(D.value));break;case 7:if(D.value==="[")S=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]");else S=this.throwUnexpectedToken(D);break;default:S=this.throwUnexpectedToken(D)}return S},M.prototype.isPropertyKey=function(F,D){return F.type===j.Syntax.Identifier&&F.name===D||F.type===j.Syntax.Literal&&F.value===D},M.prototype.parseObjectProperty=function(F){var D=this.createNode(),S=this.lookahead,P,k=null,x=null,f=!1,h=!1,c=!1,m=!1;if(S.type===3){var g=S.value;this.nextToken(),f=this.match("["),m=!this.hasLineTerminator&&g==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),k=m?this.parseObjectPropertyKey():this.finalize(D,new G.Identifier(g))}else if(this.match("*"))this.nextToken();else f=this.match("["),k=this.parseObjectPropertyKey();var Q0=this.qualifiedPropertyName(this.lookahead);if(S.type===3&&!m&&S.value==="get"&&Q0)P="get",f=this.match("["),k=this.parseObjectPropertyKey(),this.context.allowYield=!1,x=this.parseGetterMethod();else if(S.type===3&&!m&&S.value==="set"&&Q0)P="set",f=this.match("["),k=this.parseObjectPropertyKey(),x=this.parseSetterMethod();else if(S.type===7&&S.value==="*"&&Q0)P="init",f=this.match("["),k=this.parseObjectPropertyKey(),x=this.parseGeneratorMethod(),h=!0;else{if(!k)this.throwUnexpectedToken(this.lookahead);if(P="init",this.match(":")&&!m){if(!f&&this.isPropertyKey(k,"__proto__")){if(F.value)this.tolerateError(A.Messages.DuplicateProtoProperty);F.value=!0}this.nextToken(),x=this.inheritCoverGrammar(this.parseAssignmentExpression)}else if(this.match("("))x=m?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),h=!0;else if(S.type===3){var g=this.finalize(D,new G.Identifier(S.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var J0=this.isolateCoverGrammar(this.parseAssignmentExpression);x=this.finalize(D,new G.AssignmentPattern(g,J0))}else c=!0,x=g}else this.throwUnexpectedToken(this.nextToken())}return this.finalize(D,new G.Property(P,k,f,x,h,c))},M.prototype.parseObjectInitializer=function(){var F=this.createNode();this.expect("{");var D=[],S={value:!1};while(!this.match("}"))if(D.push(this.parseObjectProperty(S)),!this.match("}"))this.expectCommaSeparator();return this.expect("}"),this.finalize(F,new G.ObjectExpression(D))},M.prototype.parseTemplateHead=function(){z.assert(this.lookahead.head,"Template literal must start with a template head");var F=this.createNode(),D=this.nextToken(),S=D.value,P=D.cooked;return this.finalize(F,new G.TemplateElement({raw:S,cooked:P},D.tail))},M.prototype.parseTemplateElement=function(){if(this.lookahead.type!==10)this.throwUnexpectedToken();var F=this.createNode(),D=this.nextToken(),S=D.value,P=D.cooked;return this.finalize(F,new G.TemplateElement({raw:S,cooked:P},D.tail))},M.prototype.parseTemplateLiteral=function(){var F=this.createNode(),D=[],S=[],P=this.parseTemplateHead();S.push(P);while(!P.tail)D.push(this.parseExpression()),P=this.parseTemplateElement(),S.push(P);return this.finalize(F,new G.TemplateLiteral(S,D))},M.prototype.reinterpretExpressionAsPattern=function(F){switch(F.type){case j.Syntax.Identifier:case j.Syntax.MemberExpression:case j.Syntax.RestElement:case j.Syntax.AssignmentPattern:break;case j.Syntax.SpreadElement:F.type=j.Syntax.RestElement,this.reinterpretExpressionAsPattern(F.argument);break;case j.Syntax.ArrayExpression:F.type=j.Syntax.ArrayPattern;for(var D=0;D<F.elements.length;D++)if(F.elements[D]!==null)this.reinterpretExpressionAsPattern(F.elements[D]);break;case j.Syntax.ObjectExpression:F.type=j.Syntax.ObjectPattern;for(var D=0;D<F.properties.length;D++)this.reinterpretExpressionAsPattern(F.properties[D].value);break;case j.Syntax.AssignmentExpression:F.type=j.Syntax.AssignmentPattern,delete F.operator,this.reinterpretExpressionAsPattern(F.left);break;default:break}},M.prototype.parseGroupExpression=function(){var F;if(this.expect("("),this.match(")")){if(this.nextToken(),!this.match("=>"))this.expect("=>");F={type:q,params:[],async:!1}}else{var D=this.lookahead,S=[];if(this.match("...")){if(F=this.parseRestElement(S),this.expect(")"),!this.match("=>"))this.expect("=>");F={type:q,params:[F],async:!1}}else{var P=!1;if(this.context.isBindingElement=!0,F=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var k=[];this.context.isAssignmentTarget=!1,k.push(F);while(this.lookahead.type!==2){if(!this.match(","))break;if(this.nextToken(),this.match(")")){this.nextToken();for(var x=0;x<k.length;x++)this.reinterpretExpressionAsPattern(k[x]);P=!0,F={type:q,params:k,async:!1}}else if(this.match("...")){if(!this.context.isBindingElement)this.throwUnexpectedToken(this.lookahead);if(k.push(this.parseRestElement(S)),this.expect(")"),!this.match("=>"))this.expect("=>");this.context.isBindingElement=!1;for(var x=0;x<k.length;x++)this.reinterpretExpressionAsPattern(k[x]);P=!0,F={type:q,params:k,async:!1}}else k.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(P)break}if(!P)F=this.finalize(this.startNode(D),new G.SequenceExpression(k))}if(!P){if(this.expect(")"),this.match("=>")){if(F.type===j.Syntax.Identifier&&F.name==="yield")P=!0,F={type:q,params:[F],async:!1};if(!P){if(!this.context.isBindingElement)this.throwUnexpectedToken(this.lookahead);if(F.type===j.Syntax.SequenceExpression)for(var x=0;x<F.expressions.length;x++)this.reinterpretExpressionAsPattern(F.expressions[x]);else this.reinterpretExpressionAsPattern(F);var f=F.type===j.Syntax.SequenceExpression?F.expressions:[F];F={type:q,params:f,async:!1}}}this.context.isBindingElement=!1}}}return F},M.prototype.parseArguments=function(){this.expect("(");var F=[];if(!this.match(")"))while(!0){var D=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(F.push(D),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),F},M.prototype.isIdentifierName=function(F){return F.type===3||F.type===4||F.type===1||F.type===5},M.prototype.parseIdentifierName=function(){var F=this.createNode(),D=this.nextToken();if(!this.isIdentifierName(D))this.throwUnexpectedToken(D);return this.finalize(F,new G.Identifier(D.value))},M.prototype.parseNewExpression=function(){var F=this.createNode(),D=this.parseIdentifierName();z.assert(D.name==="new","New expression must start with `new`");var S;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var P=this.parseIdentifierName();S=new G.MetaProperty(D,P)}else this.throwUnexpectedToken(this.lookahead);else{var k=this.isolateCoverGrammar(this.parseLeftHandSideExpression),x=this.match("(")?this.parseArguments():[];S=new G.NewExpression(k,x),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(F,S)},M.prototype.parseAsyncArgument=function(){var F=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,F},M.prototype.parseAsyncArguments=function(){this.expect("(");var F=[];if(!this.match(")"))while(!0){var D=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(F.push(D),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),F},M.prototype.parseLeftHandSideExpressionAllowCall=function(){var F=this.lookahead,D=this.matchContextualKeyword("async"),S=this.context.allowIn;this.context.allowIn=!0;var P;if(this.matchKeyword("super")&&this.context.inFunctionBody){if(P=this.createNode(),this.nextToken(),P=this.finalize(P,new G.Super),!this.match("(")&&!this.match(".")&&!this.match("["))this.throwUnexpectedToken(this.lookahead)}else P=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);while(!0)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var k=this.parseIdentifierName();P=this.finalize(this.startNode(F),new G.StaticMemberExpression(P,k))}else if(this.match("(")){var x=D&&F.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var f=x?this.parseAsyncArguments():this.parseArguments();if(P=this.finalize(this.startNode(F),new G.CallExpression(P,f)),x&&this.match("=>")){for(var h=0;h<f.length;++h)this.reinterpretExpressionAsPattern(f[h]);P={type:q,params:f,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var k=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),P=this.finalize(this.startNode(F),new G.ComputedMemberExpression(P,k))}else if(this.lookahead.type===10&&this.lookahead.head){var c=this.parseTemplateLiteral();P=this.finalize(this.startNode(F),new G.TaggedTemplateExpression(P,c))}else break;return this.context.allowIn=S,P},M.prototype.parseSuper=function(){var F=this.createNode();if(this.expectKeyword("super"),!this.match("[")&&!this.match("."))this.throwUnexpectedToken(this.lookahead);return this.finalize(F,new G.Super)},M.prototype.parseLeftHandSideExpression=function(){z.assert(this.context.allowIn,"callee of new expression always allow in keyword.");var F=this.startNode(this.lookahead),D=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);while(!0)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var S=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),D=this.finalize(F,new G.ComputedMemberExpression(D,S))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var S=this.parseIdentifierName();D=this.finalize(F,new G.StaticMemberExpression(D,S))}else if(this.lookahead.type===10&&this.lookahead.head){var P=this.parseTemplateLiteral();D=this.finalize(F,new G.TaggedTemplateExpression(D,P))}else break;return D},M.prototype.parseUpdateExpression=function(){var F,D=this.lookahead;if(this.match("++")||this.match("--")){var S=this.startNode(D),P=this.nextToken();if(F=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&F.type===j.Syntax.Identifier&&this.scanner.isRestrictedWord(F.name))this.tolerateError(A.Messages.StrictLHSPrefix);if(!this.context.isAssignmentTarget)this.tolerateError(A.Messages.InvalidLHSInAssignment);var k=!0;F=this.finalize(S,new G.UpdateExpression(P.value,F,k)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(F=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7){if(this.match("++")||this.match("--")){if(this.context.strict&&F.type===j.Syntax.Identifier&&this.scanner.isRestrictedWord(F.name))this.tolerateError(A.Messages.StrictLHSPostfix);if(!this.context.isAssignmentTarget)this.tolerateError(A.Messages.InvalidLHSInAssignment);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var x=this.nextToken().value,k=!1;F=this.finalize(this.startNode(D),new G.UpdateExpression(x,F,k))}}return F},M.prototype.parseAwaitExpression=function(){var F=this.createNode();this.nextToken();var D=this.parseUnaryExpression();return this.finalize(F,new G.AwaitExpression(D))},M.prototype.parseUnaryExpression=function(){var F;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var D=this.startNode(this.lookahead),S=this.nextToken();if(F=this.inheritCoverGrammar(this.parseUnaryExpression),F=this.finalize(D,new G.UnaryExpression(S.value,F)),this.context.strict&&F.operator==="delete"&&F.argument.type===j.Syntax.Identifier)this.tolerateError(A.Messages.StrictDelete);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(this.context.await&&this.matchContextualKeyword("await"))F=this.parseAwaitExpression();else F=this.parseUpdateExpression();return F},M.prototype.parseExponentiationExpression=function(){var F=this.lookahead,D=this.inheritCoverGrammar(this.parseUnaryExpression);if(D.type!==j.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var S=D,P=this.isolateCoverGrammar(this.parseExponentiationExpression);D=this.finalize(this.startNode(F),new G.BinaryExpression("**",S,P))}return D},M.prototype.binaryPrecedence=function(F){var D=F.value,S;if(F.type===7)S=this.operatorPrecedence[D]||0;else if(F.type===4)S=D==="instanceof"||this.context.allowIn&&D==="in"?7:0;else S=0;return S},M.prototype.parseBinaryExpression=function(){var F=this.lookahead,D=this.inheritCoverGrammar(this.parseExponentiationExpression),S=this.lookahead,P=this.binaryPrecedence(S);if(P>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var k=[F,this.lookahead],x=D,f=this.isolateCoverGrammar(this.parseExponentiationExpression),h=[x,S.value,f],c=[P];while(!0){if(P=this.binaryPrecedence(this.lookahead),P<=0)break;while(h.length>2&&P<=c[c.length-1]){f=h.pop();var m=h.pop();c.pop(),x=h.pop(),k.pop();var g=this.startNode(k[k.length-1]);h.push(this.finalize(g,new G.BinaryExpression(m,x,f)))}h.push(this.nextToken().value),c.push(P),k.push(this.lookahead),h.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Q0=h.length-1;D=h[Q0];var J0=k.pop();while(Q0>1){var r=k.pop(),O0=J0&&J0.lineStart,g=this.startNode(r,O0),m=h[Q0-1];D=this.finalize(g,new G.BinaryExpression(m,h[Q0-2],D)),Q0-=2,J0=r}}return D},M.prototype.parseConditionalExpression=function(){var F=this.lookahead,D=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var S=this.context.allowIn;this.context.allowIn=!0;var P=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=S,this.expect(":");var k=this.isolateCoverGrammar(this.parseAssignmentExpression);D=this.finalize(this.startNode(F),new G.ConditionalExpression(D,P,k)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return D},M.prototype.checkPatternParam=function(F,D){switch(D.type){case j.Syntax.Identifier:this.validateParam(F,D,D.name);break;case j.Syntax.RestElement:this.checkPatternParam(F,D.argument);break;case j.Syntax.AssignmentPattern:this.checkPatternParam(F,D.left);break;case j.Syntax.ArrayPattern:for(var S=0;S<D.elements.length;S++)if(D.elements[S]!==null)this.checkPatternParam(F,D.elements[S]);break;case j.Syntax.ObjectPattern:for(var S=0;S<D.properties.length;S++)this.checkPatternParam(F,D.properties[S].value);break;default:break}F.simple=F.simple&&D instanceof G.Identifier},M.prototype.reinterpretAsCoverFormalsList=function(F){var D=[F],S,P=!1;switch(F.type){case j.Syntax.Identifier:break;case q:D=F.params,P=F.async;break;default:return null}S={simple:!0,paramSet:{}};for(var k=0;k<D.length;++k){var x=D[k];if(x.type===j.Syntax.AssignmentPattern){if(x.right.type===j.Syntax.YieldExpression){if(x.right.argument)this.throwUnexpectedToken(this.lookahead);x.right.type=j.Syntax.Identifier,x.right.name="yield",delete x.right.argument,delete x.right.delegate}}else if(P&&x.type===j.Syntax.Identifier&&x.name==="await")this.throwUnexpectedToken(this.lookahead);this.checkPatternParam(S,x),D[k]=x}if(this.context.strict||!this.context.allowYield)for(var k=0;k<D.length;++k){var x=D[k];if(x.type===j.Syntax.YieldExpression)this.throwUnexpectedToken(this.lookahead)}if(S.message===A.Messages.StrictParamDupe){var f=this.context.strict?S.stricted:S.firstRestricted;this.throwUnexpectedToken(f,S.message)}return{simple:S.simple,params:D,stricted:S.stricted,firstRestricted:S.firstRestricted,message:S.message}},M.prototype.parseAssignmentExpression=function(){var F;if(!this.context.allowYield&&this.matchKeyword("yield"))F=this.parseYieldExpression();else{var D=this.lookahead,S=D;if(F=this.parseConditionalExpression(),S.type===3&&S.lineNumber===this.lookahead.lineNumber&&S.value==="async"){if(this.lookahead.type===3||this.matchKeyword("yield")){var P=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(P),F={type:q,params:[P],async:!0}}}if(F.type===q||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var k=F.async,x=this.reinterpretAsCoverFormalsList(F);if(x){if(this.hasLineTerminator)this.tolerateUnexpectedToken(this.lookahead);this.context.firstCoverInitializedNameError=null;var f=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=x.simple;var c=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=k;var g=this.startNode(D);this.expect("=>");var Q0=void 0;if(this.match("{")){var J0=this.context.allowIn;this.context.allowIn=!0,Q0=this.parseFunctionSourceElements(),this.context.allowIn=J0}else Q0=this.isolateCoverGrammar(this.parseAssignmentExpression);var r=Q0.type!==j.Syntax.BlockStatement;if(this.context.strict&&x.firstRestricted)this.throwUnexpectedToken(x.firstRestricted,x.message);if(this.context.strict&&x.stricted)this.tolerateUnexpectedToken(x.stricted,x.message);F=k?this.finalize(g,new G.AsyncArrowFunctionExpression(x.params,Q0,r)):this.finalize(g,new G.ArrowFunctionExpression(x.params,Q0,r)),this.context.strict=f,this.context.allowStrictDirective=h,this.context.allowYield=c,this.context.await=m}}else if(this.matchAssign()){if(!this.context.isAssignmentTarget)this.tolerateError(A.Messages.InvalidLHSInAssignment);if(this.context.strict&&F.type===j.Syntax.Identifier){var O0=F;if(this.scanner.isRestrictedWord(O0.name))this.tolerateUnexpectedToken(S,A.Messages.StrictLHSAssignment);if(this.scanner.isStrictModeReservedWord(O0.name))this.tolerateUnexpectedToken(S,A.Messages.StrictReservedWord)}if(!this.match("="))this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;else this.reinterpretExpressionAsPattern(F);S=this.nextToken();var U=S.value,X=this.isolateCoverGrammar(this.parseAssignmentExpression);F=this.finalize(this.startNode(D),new G.AssignmentExpression(U,F,X)),this.context.firstCoverInitializedNameError=null}}return F},M.prototype.parseExpression=function(){var F=this.lookahead,D=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var S=[];S.push(D);while(this.lookahead.type!==2){if(!this.match(","))break;this.nextToken(),S.push(this.isolateCoverGrammar(this.parseAssignmentExpression))}D=this.finalize(this.startNode(F),new G.SequenceExpression(S))}return D},M.prototype.parseStatementListItem=function(){var F;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":if(!this.context.isModule)this.tolerateUnexpectedToken(this.lookahead,A.Messages.IllegalExportDeclaration);F=this.parseExportDeclaration();break;case"import":if(!this.context.isModule)this.tolerateUnexpectedToken(this.lookahead,A.Messages.IllegalImportDeclaration);F=this.parseImportDeclaration();break;case"const":F=this.parseLexicalDeclaration({inFor:!1});break;case"function":F=this.parseFunctionDeclaration();break;case"class":F=this.parseClassDeclaration();break;case"let":F=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:F=this.parseStatement();break}else F=this.parseStatement();return F},M.prototype.parseBlock=function(){var F=this.createNode();this.expect("{");var D=[];while(!0){if(this.match("}"))break;D.push(this.parseStatementListItem())}return this.expect("}"),this.finalize(F,new G.BlockStatement(D))},M.prototype.parseLexicalBinding=function(F,D){var S=this.createNode(),P=[],k=this.parsePattern(P,F);if(this.context.strict&&k.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(k.name))this.tolerateError(A.Messages.StrictVarName)}var x=null;if(F==="const"){if(!this.matchKeyword("in")&&!this.matchContextualKeyword("of"))if(this.match("="))this.nextToken(),x=this.isolateCoverGrammar(this.parseAssignmentExpression);else this.throwError(A.Messages.DeclarationMissingInitializer,"const")}else if(!D.inFor&&k.type!==j.Syntax.Identifier||this.match("="))this.expect("="),x=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finalize(S,new G.VariableDeclarator(k,x))},M.prototype.parseBindingList=function(F,D){var S=[this.parseLexicalBinding(F,D)];while(this.match(","))this.nextToken(),S.push(this.parseLexicalBinding(F,D));return S},M.prototype.isLexicalDeclaration=function(){var F=this.scanner.saveState();this.scanner.scanComments();var D=this.scanner.lex();return this.scanner.restoreState(F),D.type===3||D.type===7&&D.value==="["||D.type===7&&D.value==="{"||D.type===4&&D.value==="let"||D.type===4&&D.value==="yield"},M.prototype.parseLexicalDeclaration=function(F){var D=this.createNode(),S=this.nextToken().value;z.assert(S==="let"||S==="const","Lexical declaration must be either let or const");var P=this.parseBindingList(S,F);return this.consumeSemicolon(),this.finalize(D,new G.VariableDeclaration(P,S))},M.prototype.parseBindingRestElement=function(F,D){var S=this.createNode();this.expect("...");var P=this.parsePattern(F,D);return this.finalize(S,new G.RestElement(P))},M.prototype.parseArrayPattern=function(F,D){var S=this.createNode();this.expect("[");var P=[];while(!this.match("]"))if(this.match(","))this.nextToken(),P.push(null);else{if(this.match("...")){P.push(this.parseBindingRestElement(F,D));break}else P.push(this.parsePatternWithDefault(F,D));if(!this.match("]"))this.expect(",")}return this.expect("]"),this.finalize(S,new G.ArrayPattern(P))},M.prototype.parsePropertyPattern=function(F,D){var S=this.createNode(),P=!1,k=!1,x=!1,f,h;if(this.lookahead.type===3){var c=this.lookahead;f=this.parseVariableIdentifier();var m=this.finalize(S,new G.Identifier(c.value));if(this.match("=")){F.push(c),k=!0,this.nextToken();var g=this.parseAssignmentExpression();h=this.finalize(this.startNode(c),new G.AssignmentPattern(m,g))}else if(!this.match(":"))F.push(c),k=!0,h=m;else this.expect(":"),h=this.parsePatternWithDefault(F,D)}else P=this.match("["),f=this.parseObjectPropertyKey(),this.expect(":"),h=this.parsePatternWithDefault(F,D);return this.finalize(S,new G.Property("init",f,P,h,x,k))},M.prototype.parseObjectPattern=function(F,D){var S=this.createNode(),P=[];this.expect("{");while(!this.match("}"))if(P.push(this.parsePropertyPattern(F,D)),!this.match("}"))this.expect(",");return this.expect("}"),this.finalize(S,new G.ObjectPattern(P))},M.prototype.parsePattern=function(F,D){var S;if(this.match("["))S=this.parseArrayPattern(F,D);else if(this.match("{"))S=this.parseObjectPattern(F,D);else{if(this.matchKeyword("let")&&(D==="const"||D==="let"))this.tolerateUnexpectedToken(this.lookahead,A.Messages.LetInLexicalBinding);F.push(this.lookahead),S=this.parseVariableIdentifier(D)}return S},M.prototype.parsePatternWithDefault=function(F,D){var S=this.lookahead,P=this.parsePattern(F,D);if(this.match("=")){this.nextToken();var k=this.context.allowYield;this.context.allowYield=!0;var x=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=k,P=this.finalize(this.startNode(S),new G.AssignmentPattern(P,x))}return P},M.prototype.parseVariableIdentifier=function(F){var D=this.createNode(),S=this.nextToken();if(S.type===4&&S.value==="yield"){if(this.context.strict)this.tolerateUnexpectedToken(S,A.Messages.StrictReservedWord);else if(!this.context.allowYield)this.throwUnexpectedToken(S)}else if(S.type!==3){if(this.context.strict&&S.type===4&&this.scanner.isStrictModeReservedWord(S.value))this.tolerateUnexpectedToken(S,A.Messages.StrictReservedWord);else if(this.context.strict||S.value!=="let"||F!=="var")this.throwUnexpectedToken(S)}else if((this.context.isModule||this.context.await)&&S.type===3&&S.value==="await")this.tolerateUnexpectedToken(S);return this.finalize(D,new G.Identifier(S.value))},M.prototype.parseVariableDeclaration=function(F){var D=this.createNode(),S=[],P=this.parsePattern(S,"var");if(this.context.strict&&P.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(P.name))this.tolerateError(A.Messages.StrictVarName)}var k=null;if(this.match("="))this.nextToken(),k=this.isolateCoverGrammar(this.parseAssignmentExpression);else if(P.type!==j.Syntax.Identifier&&!F.inFor)this.expect("=");return this.finalize(D,new G.VariableDeclarator(P,k))},M.prototype.parseVariableDeclarationList=function(F){var D={inFor:F.inFor},S=[];S.push(this.parseVariableDeclaration(D));while(this.match(","))this.nextToken(),S.push(this.parseVariableDeclaration(D));return S},M.prototype.parseVariableStatement=function(){var F=this.createNode();this.expectKeyword("var");var D=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(F,new G.VariableDeclaration(D,"var"))},M.prototype.parseEmptyStatement=function(){var F=this.createNode();return this.expect(";"),this.finalize(F,new G.EmptyStatement)},M.prototype.parseExpressionStatement=function(){var F=this.createNode(),D=this.parseExpression();return this.consumeSemicolon(),this.finalize(F,new G.ExpressionStatement(D))},M.prototype.parseIfClause=function(){if(this.context.strict&&this.matchKeyword("function"))this.tolerateError(A.Messages.StrictFunction);return this.parseStatement()},M.prototype.parseIfStatement=function(){var F=this.createNode(),D,S=null;this.expectKeyword("if"),this.expect("(");var P=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),D=this.finalize(this.createNode(),new G.EmptyStatement);else if(this.expect(")"),D=this.parseIfClause(),this.matchKeyword("else"))this.nextToken(),S=this.parseIfClause();return this.finalize(F,new G.IfStatement(P,D,S))},M.prototype.parseDoWhileStatement=function(){var F=this.createNode();this.expectKeyword("do");var D=this.context.inIteration;this.context.inIteration=!0;var S=this.parseStatement();this.context.inIteration=D,this.expectKeyword("while"),this.expect("(");var P=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken());else if(this.expect(")"),this.match(";"))this.nextToken();return this.finalize(F,new G.DoWhileStatement(S,P))},M.prototype.parseWhileStatement=function(){var F=this.createNode(),D;this.expectKeyword("while"),this.expect("(");var S=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),D=this.finalize(this.createNode(),new G.EmptyStatement);else{this.expect(")");var P=this.context.inIteration;this.context.inIteration=!0,D=this.parseStatement(),this.context.inIteration=P}return this.finalize(F,new G.WhileStatement(S,D))},M.prototype.parseForStatement=function(){var F=null,D=null,S=null,P=!0,k,x,f=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){F=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var c=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,c.length===1&&this.matchKeyword("in")){var m=c[0];if(m.init&&(m.id.type===j.Syntax.ArrayPattern||m.id.type===j.Syntax.ObjectPattern||this.context.strict))this.tolerateError(A.Messages.ForInOfLoopInitializer,"for-in");F=this.finalize(F,new G.VariableDeclaration(c,"var")),this.nextToken(),k=F,x=this.parseExpression(),F=null}else if(c.length===1&&c[0].init===null&&this.matchContextualKeyword("of"))F=this.finalize(F,new G.VariableDeclaration(c,"var")),this.nextToken(),k=F,x=this.parseAssignmentExpression(),F=null,P=!1;else F=this.finalize(F,new G.VariableDeclaration(c,"var")),this.expect(";")}else if(this.matchKeyword("const")||this.matchKeyword("let")){F=this.createNode();var g=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")F=this.finalize(F,new G.Identifier(g)),this.nextToken(),k=F,x=this.parseExpression(),F=null;else{var h=this.context.allowIn;this.context.allowIn=!1;var c=this.parseBindingList(g,{inFor:!0});if(this.context.allowIn=h,c.length===1&&c[0].init===null&&this.matchKeyword("in"))F=this.finalize(F,new G.VariableDeclaration(c,g)),this.nextToken(),k=F,x=this.parseExpression(),F=null;else if(c.length===1&&c[0].init===null&&this.matchContextualKeyword("of"))F=this.finalize(F,new G.VariableDeclaration(c,g)),this.nextToken(),k=F,x=this.parseAssignmentExpression(),F=null,P=!1;else this.consumeSemicolon(),F=this.finalize(F,new G.VariableDeclaration(c,g))}}else{var Q0=this.lookahead,h=this.context.allowIn;if(this.context.allowIn=!1,F=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in")){if(!this.context.isAssignmentTarget||F.type===j.Syntax.AssignmentExpression)this.tolerateError(A.Messages.InvalidLHSInForIn);this.nextToken(),this.reinterpretExpressionAsPattern(F),k=F,x=this.parseExpression(),F=null}else if(this.matchContextualKeyword("of")){if(!this.context.isAssignmentTarget||F.type===j.Syntax.AssignmentExpression)this.tolerateError(A.Messages.InvalidLHSInForLoop);this.nextToken(),this.reinterpretExpressionAsPattern(F),k=F,x=this.parseAssignmentExpression(),F=null,P=!1}else{if(this.match(",")){var J0=[F];while(this.match(","))this.nextToken(),J0.push(this.isolateCoverGrammar(this.parseAssignmentExpression));F=this.finalize(this.startNode(Q0),new G.SequenceExpression(J0))}this.expect(";")}}if(typeof k>"u"){if(!this.match(";"))D=this.parseExpression();if(this.expect(";"),!this.match(")"))S=this.parseExpression()}var r;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new G.EmptyStatement);else{this.expect(")");var O0=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=O0}return typeof k>"u"?this.finalize(f,new G.ForStatement(F,D,S,r)):P?this.finalize(f,new G.ForInStatement(k,x,r)):this.finalize(f,new G.ForOfStatement(k,x,r))},M.prototype.parseContinueStatement=function(){var F=this.createNode();this.expectKeyword("continue");var D=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var S=this.parseVariableIdentifier();D=S;var P="$"+S.name;if(!Object.prototype.hasOwnProperty.call(this.context.labelSet,P))this.throwError(A.Messages.UnknownLabel,S.name)}if(this.consumeSemicolon(),D===null&&!this.context.inIteration)this.throwError(A.Messages.IllegalContinue);return this.finalize(F,new G.ContinueStatement(D))},M.prototype.parseBreakStatement=function(){var F=this.createNode();this.expectKeyword("break");var D=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var S=this.parseVariableIdentifier(),P="$"+S.name;if(!Object.prototype.hasOwnProperty.call(this.context.labelSet,P))this.throwError(A.Messages.UnknownLabel,S.name);D=S}if(this.consumeSemicolon(),D===null&&!this.context.inIteration&&!this.context.inSwitch)this.throwError(A.Messages.IllegalBreak);return this.finalize(F,new G.BreakStatement(D))},M.prototype.parseReturnStatement=function(){if(!this.context.inFunctionBody)this.tolerateError(A.Messages.IllegalReturn);var F=this.createNode();this.expectKeyword("return");var D=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,S=D?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(F,new G.ReturnStatement(S))},M.prototype.parseWithStatement=function(){if(this.context.strict)this.tolerateError(A.Messages.StrictModeWith);var F=this.createNode(),D;this.expectKeyword("with"),this.expect("(");var S=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),D=this.finalize(this.createNode(),new G.EmptyStatement);else this.expect(")"),D=this.parseStatement();return this.finalize(F,new G.WithStatement(S,D))},M.prototype.parseSwitchCase=function(){var F=this.createNode(),D;if(this.matchKeyword("default"))this.nextToken(),D=null;else this.expectKeyword("case"),D=this.parseExpression();this.expect(":");var S=[];while(!0){if(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"))break;S.push(this.parseStatementListItem())}return this.finalize(F,new G.SwitchCase(D,S))},M.prototype.parseSwitchStatement=function(){var F=this.createNode();this.expectKeyword("switch"),this.expect("(");var D=this.parseExpression();this.expect(")");var S=this.context.inSwitch;this.context.inSwitch=!0;var P=[],k=!1;this.expect("{");while(!0){if(this.match("}"))break;var x=this.parseSwitchCase();if(x.test===null){if(k)this.throwError(A.Messages.MultipleDefaultsInSwitch);k=!0}P.push(x)}return this.expect("}"),this.context.inSwitch=S,this.finalize(F,new G.SwitchStatement(D,P))},M.prototype.parseLabelledStatement=function(){var F=this.createNode(),D=this.parseExpression(),S;if(D.type===j.Syntax.Identifier&&this.match(":")){this.nextToken();var P=D,k="$"+P.name;if(Object.prototype.hasOwnProperty.call(this.context.labelSet,k))this.throwError(A.Messages.Redeclaration,"Label",P.name);this.context.labelSet[k]=!0;var x=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),x=this.parseClassDeclaration();else if(this.matchKeyword("function")){var f=this.lookahead,h=this.parseFunctionDeclaration();if(this.context.strict)this.tolerateUnexpectedToken(f,A.Messages.StrictFunction);else if(h.generator)this.tolerateUnexpectedToken(f,A.Messages.GeneratorInLegacyContext);x=h}else x=this.parseStatement();delete this.context.labelSet[k],S=new G.LabeledStatement(P,x)}else this.consumeSemicolon(),S=new G.ExpressionStatement(D);return this.finalize(F,S)},M.prototype.parseThrowStatement=function(){var F=this.createNode();if(this.expectKeyword("throw"),this.hasLineTerminator)this.throwError(A.Messages.NewlineAfterThrow);var D=this.parseExpression();return this.consumeSemicolon(),this.finalize(F,new G.ThrowStatement(D))},M.prototype.parseCatchClause=function(){var F=this.createNode();if(this.expectKeyword("catch"),this.expect("("),this.match(")"))this.throwUnexpectedToken(this.lookahead);var D=[],S=this.parsePattern(D),P={};for(var k=0;k<D.length;k++){var x="$"+D[k].value;if(Object.prototype.hasOwnProperty.call(P,x))this.tolerateError(A.Messages.DuplicateBinding,D[k].value);P[x]=!0}if(this.context.strict&&S.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(S.name))this.tolerateError(A.Messages.StrictCatchVariable)}this.expect(")");var f=this.parseBlock();return this.finalize(F,new G.CatchClause(S,f))},M.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},M.prototype.parseTryStatement=function(){var F=this.createNode();this.expectKeyword("try");var D=this.parseBlock(),S=this.matchKeyword("catch")?this.parseCatchClause():null,P=this.matchKeyword("finally")?this.parseFinallyClause():null;if(!S&&!P)this.throwError(A.Messages.NoCatchOrFinally);return this.finalize(F,new G.TryStatement(D,S,P))},M.prototype.parseDebuggerStatement=function(){var F=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(F,new G.DebuggerStatement)},M.prototype.parseStatement=function(){var F;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:F=this.parseExpressionStatement();break;case 7:var D=this.lookahead.value;if(D==="{")F=this.parseBlock();else if(D==="(")F=this.parseExpressionStatement();else if(D===";")F=this.parseEmptyStatement();else F=this.parseExpressionStatement();break;case 3:F=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":F=this.parseBreakStatement();break;case"continue":F=this.parseContinueStatement();break;case"debugger":F=this.parseDebuggerStatement();break;case"do":F=this.parseDoWhileStatement();break;case"for":F=this.parseForStatement();break;case"function":F=this.parseFunctionDeclaration();break;case"if":F=this.parseIfStatement();break;case"return":F=this.parseReturnStatement();break;case"switch":F=this.parseSwitchStatement();break;case"throw":F=this.parseThrowStatement();break;case"try":F=this.parseTryStatement();break;case"var":F=this.parseVariableStatement();break;case"while":F=this.parseWhileStatement();break;case"with":F=this.parseWithStatement();break;default:F=this.parseExpressionStatement();break}break;default:F=this.throwUnexpectedToken(this.lookahead)}return F},M.prototype.parseFunctionSourceElements=function(){var F=this.createNode();this.expect("{");var D=this.parseDirectivePrologues(),S=this.context.labelSet,P=this.context.inIteration,k=this.context.inSwitch,x=this.context.inFunctionBody;this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;while(this.lookahead.type!==2){if(this.match("}"))break;D.push(this.parseStatementListItem())}return this.expect("}"),this.context.labelSet=S,this.context.inIteration=P,this.context.inSwitch=k,this.context.inFunctionBody=x,this.finalize(F,new G.BlockStatement(D))},M.prototype.validateParam=function(F,D,S){var P="$"+S;if(this.context.strict){if(this.scanner.isRestrictedWord(S))F.stricted=D,F.message=A.Messages.StrictParamName;if(Object.prototype.hasOwnProperty.call(F.paramSet,P))F.stricted=D,F.message=A.Messages.StrictParamDupe}else if(!F.firstRestricted){if(this.scanner.isRestrictedWord(S))F.firstRestricted=D,F.message=A.Messages.StrictParamName;else if(this.scanner.isStrictModeReservedWord(S))F.firstRestricted=D,F.message=A.Messages.StrictReservedWord;else if(Object.prototype.hasOwnProperty.call(F.paramSet,P))F.stricted=D,F.message=A.Messages.StrictParamDupe}if(typeof Object.defineProperty==="function")Object.defineProperty(F.paramSet,P,{value:!0,enumerable:!0,writable:!0,configurable:!0});else F.paramSet[P]=!0},M.prototype.parseRestElement=function(F){var D=this.createNode();this.expect("...");var S=this.parsePattern(F);if(this.match("="))this.throwError(A.Messages.DefaultRestParameter);if(!this.match(")"))this.throwError(A.Messages.ParameterAfterRestParameter);return this.finalize(D,new G.RestElement(S))},M.prototype.parseFormalParameter=function(F){var D=[],S=this.match("...")?this.parseRestElement(D):this.parsePatternWithDefault(D);for(var P=0;P<D.length;P++)this.validateParam(F,D[P],D[P].value);F.simple=F.simple&&S instanceof G.Identifier,F.params.push(S)},M.prototype.parseFormalParameters=function(F){var D={simple:!0,params:[],firstRestricted:F};if(this.expect("("),!this.match(")")){D.paramSet={};while(this.lookahead.type!==2){if(this.parseFormalParameter(D),this.match(")"))break;if(this.expect(","),this.match(")"))break}}return this.expect(")"),{simple:D.simple,params:D.params,stricted:D.stricted,firstRestricted:D.firstRestricted,message:D.message}},M.prototype.matchAsyncFunction=function(){var F=this.matchContextualKeyword("async");if(F){var D=this.scanner.saveState();this.scanner.scanComments();var S=this.scanner.lex();this.scanner.restoreState(D),F=D.lineNumber===S.lineNumber&&S.type===4&&S.value==="function"}return F},M.prototype.parseFunctionDeclaration=function(F){var D=this.createNode(),S=this.matchContextualKeyword("async");if(S)this.nextToken();this.expectKeyword("function");var P=S?!1:this.match("*");if(P)this.nextToken();var k,x=null,f=null;if(!F||!this.match("(")){var h=this.lookahead;if(x=this.parseVariableIdentifier(),this.context.strict){if(this.scanner.isRestrictedWord(h.value))this.tolerateUnexpectedToken(h,A.Messages.StrictFunctionName)}else if(this.scanner.isRestrictedWord(h.value))f=h,k=A.Messages.StrictFunctionName;else if(this.scanner.isStrictModeReservedWord(h.value))f=h,k=A.Messages.StrictReservedWord}var c=this.context.await,m=this.context.allowYield;this.context.await=S,this.context.allowYield=!P;var g=this.parseFormalParameters(f),Q0=g.params,J0=g.stricted;if(f=g.firstRestricted,g.message)k=g.message;var r=this.context.strict,O0=this.context.allowStrictDirective;this.context.allowStrictDirective=g.simple;var U=this.parseFunctionSourceElements();if(this.context.strict&&f)this.throwUnexpectedToken(f,k);if(this.context.strict&&J0)this.tolerateUnexpectedToken(J0,k);return this.context.strict=r,this.context.allowStrictDirective=O0,this.context.await=c,this.context.allowYield=m,S?this.finalize(D,new G.AsyncFunctionDeclaration(x,Q0,U)):this.finalize(D,new G.FunctionDeclaration(x,Q0,U,P))},M.prototype.parseFunctionExpression=function(){var F=this.createNode(),D=this.matchContextualKeyword("async");if(D)this.nextToken();this.expectKeyword("function");var S=D?!1:this.match("*");if(S)this.nextToken();var P,k=null,x,f=this.context.await,h=this.context.allowYield;if(this.context.await=D,this.context.allowYield=!S,!this.match("(")){var c=this.lookahead;if(k=!this.context.strict&&!S&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict){if(this.scanner.isRestrictedWord(c.value))this.tolerateUnexpectedToken(c,A.Messages.StrictFunctionName)}else if(this.scanner.isRestrictedWord(c.value))x=c,P=A.Messages.StrictFunctionName;else if(this.scanner.isStrictModeReservedWord(c.value))x=c,P=A.Messages.StrictReservedWord}var m=this.parseFormalParameters(x),g=m.params,Q0=m.stricted;if(x=m.firstRestricted,m.message)P=m.message;var J0=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=m.simple;var O0=this.parseFunctionSourceElements();if(this.context.strict&&x)this.throwUnexpectedToken(x,P);if(this.context.strict&&Q0)this.tolerateUnexpectedToken(Q0,P);return this.context.strict=J0,this.context.allowStrictDirective=r,this.context.await=f,this.context.allowYield=h,D?this.finalize(F,new G.AsyncFunctionExpression(k,g,O0)):this.finalize(F,new G.FunctionExpression(k,g,O0,S))},M.prototype.parseDirective=function(){var F=this.lookahead,D=this.createNode(),S=this.parseExpression(),P=S.type===j.Syntax.Literal?this.getTokenRaw(F).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(D,P?new G.Directive(S,P):new G.ExpressionStatement(S))},M.prototype.parseDirectivePrologues=function(){var F=null,D=[];while(!0){var S=this.lookahead;if(S.type!==8)break;var P=this.parseDirective();D.push(P);var k=P.directive;if(typeof k!=="string")break;if(k==="use strict"){if(this.context.strict=!0,F)this.tolerateUnexpectedToken(F,A.Messages.StrictOctalLiteral);if(!this.context.allowStrictDirective)this.tolerateUnexpectedToken(S,A.Messages.IllegalLanguageModeDirective)}else if(!F&&S.octal)F=S}return D},M.prototype.qualifiedPropertyName=function(F){switch(F.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return F.value==="[";default:break}return!1},M.prototype.parseGetterMethod=function(){var F=this.createNode(),D=!1,S=this.context.allowYield;this.context.allowYield=!D;var P=this.parseFormalParameters();if(P.params.length>0)this.tolerateError(A.Messages.BadGetterArity);var k=this.parsePropertyMethod(P);return this.context.allowYield=S,this.finalize(F,new G.FunctionExpression(null,P.params,k,D))},M.prototype.parseSetterMethod=function(){var F=this.createNode(),D=!1,S=this.context.allowYield;this.context.allowYield=!D;var P=this.parseFormalParameters();if(P.params.length!==1)this.tolerateError(A.Messages.BadSetterArity);else if(P.params[0]instanceof G.RestElement)this.tolerateError(A.Messages.BadSetterRestParameter);var k=this.parsePropertyMethod(P);return this.context.allowYield=S,this.finalize(F,new G.FunctionExpression(null,P.params,k,D))},M.prototype.parseGeneratorMethod=function(){var F=this.createNode(),D=!0,S=this.context.allowYield;this.context.allowYield=!0;var P=this.parseFormalParameters();this.context.allowYield=!1;var k=this.parsePropertyMethod(P);return this.context.allowYield=S,this.finalize(F,new G.FunctionExpression(null,P.params,k,D))},M.prototype.isStartOfExpression=function(){var F=!0,D=this.lookahead.value;switch(this.lookahead.type){case 7:F=D==="["||D==="("||D==="{"||D==="+"||D==="-"||D==="!"||D==="~"||D==="++"||D==="--"||D==="/"||D==="/=";break;case 4:F=D==="class"||D==="delete"||D==="function"||D==="let"||D==="new"||D==="super"||D==="this"||D==="typeof"||D==="void"||D==="yield";break;default:break}return F},M.prototype.parseYieldExpression=function(){var F=this.createNode();this.expectKeyword("yield");var D=null,S=!1;if(!this.hasLineTerminator){var P=this.context.allowYield;if(this.context.allowYield=!1,S=this.match("*"),S)this.nextToken(),D=this.parseAssignmentExpression();else if(this.isStartOfExpression())D=this.parseAssignmentExpression();this.context.allowYield=P}return this.finalize(F,new G.YieldExpression(D,S))},M.prototype.parseClassElement=function(F){var D=this.lookahead,S=this.createNode(),P="",k=null,x=null,f=!1,h=!1,c=!1,m=!1;if(this.match("*"))this.nextToken();else{f=this.match("["),k=this.parseObjectPropertyKey();var g=k;if(g.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*")))if(D=this.lookahead,c=!0,f=this.match("["),this.match("*"))this.nextToken();else k=this.parseObjectPropertyKey();if(D.type===3&&!this.hasLineTerminator&&D.value==="async"){var Q0=this.lookahead.value;if(Q0!==":"&&Q0!=="("&&Q0!=="*"){if(m=!0,D=this.lookahead,k=this.parseObjectPropertyKey(),D.type===3&&D.value==="constructor")this.tolerateUnexpectedToken(D,A.Messages.ConstructorIsAsync)}}}var J0=this.qualifiedPropertyName(this.lookahead);if(D.type===3){if(D.value==="get"&&J0)P="get",f=this.match("["),k=this.parseObjectPropertyKey(),this.context.allowYield=!1,x=this.parseGetterMethod();else if(D.value==="set"&&J0)P="set",f=this.match("["),k=this.parseObjectPropertyKey(),x=this.parseSetterMethod()}else if(D.type===7&&D.value==="*"&&J0)P="init",f=this.match("["),k=this.parseObjectPropertyKey(),x=this.parseGeneratorMethod(),h=!0;if(!P&&k&&this.match("("))P="init",x=m?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),h=!0;if(!P)this.throwUnexpectedToken(this.lookahead);if(P==="init")P="method";if(!f){if(c&&this.isPropertyKey(k,"prototype"))this.throwUnexpectedToken(D,A.Messages.StaticPrototype);if(!c&&this.isPropertyKey(k,"constructor")){if(P!=="method"||!h||x&&x.generator)this.throwUnexpectedToken(D,A.Messages.ConstructorSpecialMethod);if(F.value)this.throwUnexpectedToken(D,A.Messages.DuplicateConstructor);else F.value=!0;P="constructor"}}return this.finalize(S,new G.MethodDefinition(k,f,x,P,c))},M.prototype.parseClassElementList=function(){var F=[],D={value:!1};this.expect("{");while(!this.match("}"))if(this.match(";"))this.nextToken();else F.push(this.parseClassElement(D));return this.expect("}"),F},M.prototype.parseClassBody=function(){var F=this.createNode(),D=this.parseClassElementList();return this.finalize(F,new G.ClassBody(D))},M.prototype.parseClassDeclaration=function(F){var D=this.createNode(),S=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var P=F&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),k=null;if(this.matchKeyword("extends"))this.nextToken(),k=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);var x=this.parseClassBody();return this.context.strict=S,this.finalize(D,new G.ClassDeclaration(P,k,x))},M.prototype.parseClassExpression=function(){var F=this.createNode(),D=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var S=this.lookahead.type===3?this.parseVariableIdentifier():null,P=null;if(this.matchKeyword("extends"))this.nextToken(),P=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);var k=this.parseClassBody();return this.context.strict=D,this.finalize(F,new G.ClassExpression(S,P,k))},M.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;var F=this.createNode(),D=this.parseDirectivePrologues();while(this.lookahead.type!==2)D.push(this.parseStatementListItem());return this.finalize(F,new G.Module(D))},M.prototype.parseScript=function(){var F=this.createNode(),D=this.parseDirectivePrologues();while(this.lookahead.type!==2)D.push(this.parseStatementListItem());return this.finalize(F,new G.Script(D))},M.prototype.parseModuleSpecifier=function(){var F=this.createNode();if(this.lookahead.type!==8)this.throwError(A.Messages.InvalidModuleSpecifier);var D=this.nextToken(),S=this.getTokenRaw(D);return this.finalize(F,new G.Literal(D.value,S))},M.prototype.parseImportSpecifier=function(){var F=this.createNode(),D,S;if(this.lookahead.type===3){if(D=this.parseVariableIdentifier(),S=D,this.matchContextualKeyword("as"))this.nextToken(),S=this.parseVariableIdentifier()}else if(D=this.parseIdentifierName(),S=D,this.matchContextualKeyword("as"))this.nextToken(),S=this.parseVariableIdentifier();else this.throwUnexpectedToken(this.nextToken());return this.finalize(F,new G.ImportSpecifier(S,D))},M.prototype.parseNamedImports=function(){this.expect("{");var F=[];while(!this.match("}"))if(F.push(this.parseImportSpecifier()),!this.match("}"))this.expect(",");return this.expect("}"),F},M.prototype.parseImportDefaultSpecifier=function(){var F=this.createNode(),D=this.parseIdentifierName();return this.finalize(F,new G.ImportDefaultSpecifier(D))},M.prototype.parseImportNamespaceSpecifier=function(){var F=this.createNode();if(this.expect("*"),!this.matchContextualKeyword("as"))this.throwError(A.Messages.NoAsAfterImportNamespace);this.nextToken();var D=this.parseIdentifierName();return this.finalize(F,new G.ImportNamespaceSpecifier(D))},M.prototype.parseImportDeclaration=function(){if(this.context.inFunctionBody)this.throwError(A.Messages.IllegalImportDeclaration);var F=this.createNode();this.expectKeyword("import");var D,S=[];if(this.lookahead.type===8)D=this.parseModuleSpecifier();else{if(this.match("{"))S=S.concat(this.parseNamedImports());else if(this.match("*"))S.push(this.parseImportNamespaceSpecifier());else if(this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")){if(S.push(this.parseImportDefaultSpecifier()),this.match(","))if(this.nextToken(),this.match("*"))S.push(this.parseImportNamespaceSpecifier());else if(this.match("{"))S=S.concat(this.parseNamedImports());else this.throwUnexpectedToken(this.lookahead)}else this.throwUnexpectedToken(this.nextToken());if(!this.matchContextualKeyword("from")){var P=this.lookahead.value?A.Messages.UnexpectedToken:A.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}this.nextToken(),D=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(F,new G.ImportDeclaration(S,D))},M.prototype.parseExportSpecifier=function(){var F=this.createNode(),D=this.parseIdentifierName(),S=D;if(this.matchContextualKeyword("as"))this.nextToken(),S=this.parseIdentifierName();return this.finalize(F,new G.ExportSpecifier(D,S))},M.prototype.parseExportDeclaration=function(){if(this.context.inFunctionBody)this.throwError(A.Messages.IllegalExportDeclaration);var F=this.createNode();this.expectKeyword("export");var D;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var S=this.parseFunctionDeclaration(!0);D=this.finalize(F,new G.ExportDefaultDeclaration(S))}else if(this.matchKeyword("class")){var S=this.parseClassDeclaration(!0);D=this.finalize(F,new G.ExportDefaultDeclaration(S))}else if(this.matchContextualKeyword("async")){var S=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();D=this.finalize(F,new G.ExportDefaultDeclaration(S))}else{if(this.matchContextualKeyword("from"))this.throwError(A.Messages.UnexpectedToken,this.lookahead.value);var S=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),D=this.finalize(F,new G.ExportDefaultDeclaration(S))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var P=this.lookahead.value?A.Messages.UnexpectedToken:A.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}this.nextToken();var k=this.parseModuleSpecifier();this.consumeSemicolon(),D=this.finalize(F,new G.ExportAllDeclaration(k))}else if(this.lookahead.type===4){var S=void 0;switch(this.lookahead.value){case"let":case"const":S=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":S=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}D=this.finalize(F,new G.ExportNamedDeclaration(S,[],null))}else if(this.matchAsyncFunction()){var S=this.parseFunctionDeclaration();D=this.finalize(F,new G.ExportNamedDeclaration(S,[],null))}else{var x=[],f=null,h=!1;this.expect("{");while(!this.match("}"))if(h=h||this.matchKeyword("default"),x.push(this.parseExportSpecifier()),!this.match("}"))this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),f=this.parseModuleSpecifier(),this.consumeSemicolon();else if(h){var P=this.lookahead.value?A.Messages.UnexpectedToken:A.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}else this.consumeSemicolon();D=this.finalize(F,new G.ExportNamedDeclaration(null,x,f))}return D},M}();W.Parser=C},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0});function V(z,O){if(!z)throw Error("ASSERT: "+O)}W.assert=V},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0});var V=function(){function z(){this.errors=[],this.tolerant=!1}return z.prototype.recordError=function(O){this.errors.push(O)},z.prototype.tolerate=function(O){if(this.tolerant)this.recordError(O);else throw O},z.prototype.constructError=function(O,A){var G=Error(O);try{throw G}catch(v){if(Object.create&&Object.defineProperty)G=Object.create(v),Object.defineProperty(G,"column",{value:A})}return G},z.prototype.createError=function(O,A,G,v){var j="Line "+A+": "+v,E=this.constructError(j,G);return E.index=O,E.lineNumber=A,E.description=v,E},z.prototype.throwError=function(O,A,G,v){throw this.createError(O,A,G,v)},z.prototype.tolerateError=function(O,A,G,v){var j=this.createError(O,A,G,v);if(this.tolerant)this.recordError(j);else throw j},z}();W.ErrorHandler=V},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0}),W.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(9),O=V(4),A=V(11);function G(E){return"0123456789abcdef".indexOf(E.toLowerCase())}function v(E){return"01234567".indexOf(E)}var j=function(){function E(q,C){this.source=q,this.errorHandler=C,this.trackComment=!1,this.isModule=!1,this.length=q.length,this.index=0,this.lineNumber=q.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return E.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},E.prototype.restoreState=function(q){this.index=q.index,this.lineNumber=q.lineNumber,this.lineStart=q.lineStart},E.prototype.eof=function(){return this.index>=this.length},E.prototype.throwUnexpectedToken=function(q){if(q===void 0)q=A.Messages.UnexpectedTokenIllegal;return this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,q)},E.prototype.tolerateUnexpectedToken=function(q){if(q===void 0)q=A.Messages.UnexpectedTokenIllegal;this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,q)},E.prototype.skipSingleLineComment=function(q){var C=[],M,F;if(this.trackComment)C=[],M=this.index-q,F={start:{line:this.lineNumber,column:this.index-this.lineStart-q},end:{}};while(!this.eof()){var D=this.source.charCodeAt(this.index);if(++this.index,O.Character.isLineTerminator(D)){if(this.trackComment){F.end={line:this.lineNumber,column:this.index-this.lineStart-1};var S={multiLine:!1,slice:[M+q,this.index-1],range:[M,this.index-1],loc:F};C.push(S)}if(D===13&&this.source.charCodeAt(this.index)===10)++this.index;return++this.lineNumber,this.lineStart=this.index,C}}if(this.trackComment){F.end={line:this.lineNumber,column:this.index-this.lineStart};var S={multiLine:!1,slice:[M+q,this.index],range:[M,this.index],loc:F};C.push(S)}return C},E.prototype.skipMultiLineComment=function(){var q=[],C,M;if(this.trackComment)q=[],C=this.index-2,M={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}};while(!this.eof()){var F=this.source.charCodeAt(this.index);if(O.Character.isLineTerminator(F)){if(F===13&&this.source.charCodeAt(this.index+1)===10)++this.index;++this.lineNumber,++this.index,this.lineStart=this.index}else if(F===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){M.end={line:this.lineNumber,column:this.index-this.lineStart};var D={multiLine:!0,slice:[C+2,this.index-2],range:[C,this.index],loc:M};q.push(D)}return q}++this.index}else++this.index}if(this.trackComment){M.end={line:this.lineNumber,column:this.index-this.lineStart};var D={multiLine:!0,slice:[C+2,this.index],range:[C,this.index],loc:M};q.push(D)}return this.tolerateUnexpectedToken(),q},E.prototype.scanComments=function(){var q;if(this.trackComment)q=[];var C=this.index===0;while(!this.eof()){var M=this.source.charCodeAt(this.index);if(O.Character.isWhiteSpace(M))++this.index;else if(O.Character.isLineTerminator(M)){if(++this.index,M===13&&this.source.charCodeAt(this.index)===10)++this.index;++this.lineNumber,this.lineStart=this.index,C=!0}else if(M===47)if(M=this.source.charCodeAt(this.index+1),M===47){this.index+=2;var F=this.skipSingleLineComment(2);if(this.trackComment)q=q.concat(F);C=!0}else if(M===42){this.index+=2;var F=this.skipMultiLineComment();if(this.trackComment)q=q.concat(F)}else break;else if(C&&M===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var F=this.skipSingleLineComment(3);if(this.trackComment)q=q.concat(F)}else break;else if(M===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var F=this.skipSingleLineComment(4);if(this.trackComment)q=q.concat(F)}else break;else break}return q},E.prototype.isFutureReservedWord=function(q){switch(q){case"enum":case"export":case"import":case"super":return!0;default:return!1}},E.prototype.isStrictModeReservedWord=function(q){switch(q){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},E.prototype.isRestrictedWord=function(q){return q==="eval"||q==="arguments"},E.prototype.isKeyword=function(q){switch(q.length){case 2:return q==="if"||q==="in"||q==="do";case 3:return q==="var"||q==="for"||q==="new"||q==="try"||q==="let";case 4:return q==="this"||q==="else"||q==="case"||q==="void"||q==="with"||q==="enum";case 5:return q==="while"||q==="break"||q==="catch"||q==="throw"||q==="const"||q==="yield"||q==="class"||q==="super";case 6:return q==="return"||q==="typeof"||q==="delete"||q==="switch"||q==="export"||q==="import";case 7:return q==="default"||q==="finally"||q==="extends";case 8:return q==="function"||q==="continue"||q==="debugger";case 10:return q==="instanceof";default:return!1}},E.prototype.codePointAt=function(q){var C=this.source.charCodeAt(q);if(C>=55296&&C<=56319){var M=this.source.charCodeAt(q+1);if(M>=56320&&M<=57343){var F=C;C=(F-55296)*1024+M-56320+65536}}return C},E.prototype.scanHexEscape=function(q){var C=q==="u"?4:2,M=0;for(var F=0;F<C;++F)if(!this.eof()&&O.Character.isHexDigit(this.source.charCodeAt(this.index)))M=M*16+G(this.source[this.index++]);else return null;return String.fromCharCode(M)},E.prototype.scanUnicodeCodePointEscape=function(){var q=this.source[this.index],C=0;if(q==="}")this.throwUnexpectedToken();while(!this.eof()){if(q=this.source[this.index++],!O.Character.isHexDigit(q.charCodeAt(0)))break;C=C*16+G(q)}if(C>1114111||q!=="}")this.throwUnexpectedToken();return O.Character.fromCodePoint(C)},E.prototype.getIdentifier=function(){var q=this.index++;while(!this.eof()){var C=this.source.charCodeAt(this.index);if(C===92)return this.index=q,this.getComplexIdentifier();else if(C>=55296&&C<57343)return this.index=q,this.getComplexIdentifier();if(O.Character.isIdentifierPart(C))++this.index;else break}return this.source.slice(q,this.index)},E.prototype.getComplexIdentifier=function(){var q=this.codePointAt(this.index),C=O.Character.fromCodePoint(q);this.index+=C.length;var M;if(q===92){if(this.source.charCodeAt(this.index)!==117)this.throwUnexpectedToken();if(++this.index,this.source[this.index]==="{")++this.index,M=this.scanUnicodeCodePointEscape();else if(M=this.scanHexEscape("u"),M===null||M==="\\"||!O.Character.isIdentifierStart(M.charCodeAt(0)))this.throwUnexpectedToken();C=M}while(!this.eof()){if(q=this.codePointAt(this.index),!O.Character.isIdentifierPart(q))break;if(M=O.Character.fromCodePoint(q),C+=M,this.index+=M.length,q===92){if(C=C.substr(0,C.length-1),this.source.charCodeAt(this.index)!==117)this.throwUnexpectedToken();if(++this.index,this.source[this.index]==="{")++this.index,M=this.scanUnicodeCodePointEscape();else if(M=this.scanHexEscape("u"),M===null||M==="\\"||!O.Character.isIdentifierPart(M.charCodeAt(0)))this.throwUnexpectedToken();C+=M}}return C},E.prototype.octalToDecimal=function(q){var C=q!=="0",M=v(q);if(!this.eof()&&O.Character.isOctalDigit(this.source.charCodeAt(this.index))){if(C=!0,M=M*8+v(this.source[this.index++]),"0123".indexOf(q)>=0&&!this.eof()&&O.Character.isOctalDigit(this.source.charCodeAt(this.index)))M=M*8+v(this.source[this.index++])}return{code:M,octal:C}},E.prototype.scanIdentifier=function(){var q,C=this.index,M=this.source.charCodeAt(C)===92?this.getComplexIdentifier():this.getIdentifier();if(M.length===1)q=3;else if(this.isKeyword(M))q=4;else if(M==="null")q=5;else if(M==="true"||M==="false")q=1;else q=3;if(q!==3&&C+M.length!==this.index){var F=this.index;this.index=C,this.tolerateUnexpectedToken(A.Messages.InvalidEscapedReservedWord),this.index=F}return{type:q,value:M,lineNumber:this.lineNumber,lineStart:this.lineStart,start:C,end:this.index}},E.prototype.scanPunctuator=function(){var q=this.index,C=this.source[this.index];switch(C){case"(":case"{":if(C==="{")this.curlyStack.push("{");++this.index;break;case".":if(++this.index,this.source[this.index]==="."&&this.source[this.index+1]===".")this.index+=2,C="...";break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:if(C=this.source.substr(this.index,4),C===">>>=")this.index+=4;else if(C=C.substr(0,3),C==="==="||C==="!=="||C===">>>"||C==="<<="||C===">>="||C==="**=")this.index+=3;else if(C=C.substr(0,2),C==="&&"||C==="||"||C==="=="||C==="!="||C==="+="||C==="-="||C==="*="||C==="/="||C==="++"||C==="--"||C==="<<"||C===">>"||C==="&="||C==="|="||C==="^="||C==="%="||C==="<="||C===">="||C==="=>"||C==="**")this.index+=2;else if(C=this.source[this.index],"<>=!+-*%&|^/".indexOf(C)>=0)++this.index}if(this.index===q)this.throwUnexpectedToken();return{type:7,value:C,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanHexLiteral=function(q){var C="";while(!this.eof()){if(!O.Character.isHexDigit(this.source.charCodeAt(this.index)))break;C+=this.source[this.index++]}if(C.length===0)this.throwUnexpectedToken();if(O.Character.isIdentifierStart(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseInt("0x"+C,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanBinaryLiteral=function(q){var C="",M;while(!this.eof()){if(M=this.source[this.index],M!=="0"&&M!=="1")break;C+=this.source[this.index++]}if(C.length===0)this.throwUnexpectedToken();if(!this.eof()){if(M=this.source.charCodeAt(this.index),O.Character.isIdentifierStart(M)||O.Character.isDecimalDigit(M))this.throwUnexpectedToken()}return{type:6,value:parseInt(C,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanOctalLiteral=function(q,C){var M="",F=!1;if(O.Character.isOctalDigit(q.charCodeAt(0)))F=!0,M="0"+this.source[this.index++];else++this.index;while(!this.eof()){if(!O.Character.isOctalDigit(this.source.charCodeAt(this.index)))break;M+=this.source[this.index++]}if(!F&&M.length===0)this.throwUnexpectedToken();if(O.Character.isIdentifierStart(this.source.charCodeAt(this.index))||O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseInt(M,8),octal:F,lineNumber:this.lineNumber,lineStart:this.lineStart,start:C,end:this.index}},E.prototype.isImplicitOctalLiteral=function(){for(var q=this.index+1;q<this.length;++q){var C=this.source[q];if(C==="8"||C==="9")return!1;if(!O.Character.isOctalDigit(C.charCodeAt(0)))return!0}return!0},E.prototype.scanNumericLiteral=function(){var q=this.index,C=this.source[q];z.assert(O.Character.isDecimalDigit(C.charCodeAt(0))||C===".","Numeric literal must start with a decimal digit or a decimal point");var M="";if(C!=="."){if(M=this.source[this.index++],C=this.source[this.index],M==="0"){if(C==="x"||C==="X")return++this.index,this.scanHexLiteral(q);if(C==="b"||C==="B")return++this.index,this.scanBinaryLiteral(q);if(C==="o"||C==="O")return this.scanOctalLiteral(C,q);if(C&&O.Character.isOctalDigit(C.charCodeAt(0))){if(this.isImplicitOctalLiteral())return this.scanOctalLiteral(C,q)}}while(O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))M+=this.source[this.index++];C=this.source[this.index]}if(C==="."){M+=this.source[this.index++];while(O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))M+=this.source[this.index++];C=this.source[this.index]}if(C==="e"||C==="E"){if(M+=this.source[this.index++],C=this.source[this.index],C==="+"||C==="-")M+=this.source[this.index++];if(O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))while(O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))M+=this.source[this.index++];else this.throwUnexpectedToken()}if(O.Character.isIdentifierStart(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseFloat(M),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanStringLiteral=function(){var q=this.index,C=this.source[q];z.assert(C==="'"||C==='"',"String literal must starts with a quote"),++this.index;var M=!1,F="";while(!this.eof()){var D=this.source[this.index++];if(D===C){C="";break}else if(D==="\\")if(D=this.source[this.index++],!D||!O.Character.isLineTerminator(D.charCodeAt(0)))switch(D){case"u":if(this.source[this.index]==="{")++this.index,F+=this.scanUnicodeCodePointEscape();else{var S=this.scanHexEscape(D);if(S===null)this.throwUnexpectedToken();F+=S}break;case"x":var P=this.scanHexEscape(D);if(P===null)this.throwUnexpectedToken(A.Messages.InvalidHexEscapeSequence);F+=P;break;case"n":F+=`
|
|
94
|
-
`;break;case"r":F+="\r";break;case"t":F+="\t";break;case"b":F+="\b";break;case"f":F+="\f";break;case"v":F+="\v";break;case"8":case"9":F+=D,this.tolerateUnexpectedToken();break;default:if(D&&O.Character.isOctalDigit(D.charCodeAt(0))){var k=this.octalToDecimal(D);M=k.octal||M,F+=String.fromCharCode(k.code)}else F+=D;break}else{if(++this.lineNumber,D==="\r"&&this.source[this.index]===`
|
|
95
|
-
`)++this.index;this.lineStart=this.index}else if(O.Character.isLineTerminator(D.charCodeAt(0)))break;else F+=D}if(C!=="")this.index=q,this.throwUnexpectedToken();return{type:8,value:F,octal:M,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanTemplate=function(){var q="",C=!1,M=this.index,F=this.source[M]==="`",D=!1,S=2;++this.index;while(!this.eof()){var P=this.source[this.index++];if(P==="`"){S=1,D=!0,C=!0;break}else if(P==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,C=!0;break}q+=P}else if(P==="\\")if(P=this.source[this.index++],!O.Character.isLineTerminator(P.charCodeAt(0)))switch(P){case"n":q+=`
|
|
96
|
-
`;break;case"r":q+="\r";break;case"t":q+="\t";break;case"u":if(this.source[this.index]==="{")++this.index,q+=this.scanUnicodeCodePointEscape();else{var k=this.index,x=this.scanHexEscape(P);if(x!==null)q+=x;else this.index=k,q+=P}break;case"x":var f=this.scanHexEscape(P);if(f===null)this.throwUnexpectedToken(A.Messages.InvalidHexEscapeSequence);q+=f;break;case"b":q+="\b";break;case"f":q+="\f";break;case"v":q+="\v";break;default:if(P==="0"){if(O.Character.isDecimalDigit(this.source.charCodeAt(this.index)))this.throwUnexpectedToken(A.Messages.TemplateOctalLiteral);q+="\x00"}else if(O.Character.isOctalDigit(P.charCodeAt(0)))this.throwUnexpectedToken(A.Messages.TemplateOctalLiteral);else q+=P;break}else{if(++this.lineNumber,P==="\r"&&this.source[this.index]===`
|
|
97
|
-
`)++this.index;this.lineStart=this.index}else if(O.Character.isLineTerminator(P.charCodeAt(0))){if(++this.lineNumber,P==="\r"&&this.source[this.index]===`
|
|
98
|
-
`)++this.index;this.lineStart=this.index,q+=`
|
|
99
|
-
`}else q+=P}if(!C)this.throwUnexpectedToken();if(!F)this.curlyStack.pop();return{type:10,value:this.source.slice(M+1,this.index-S),cooked:q,head:F,tail:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:M,end:this.index}},E.prototype.testRegExp=function(q,C){var M="",F=q,D=this;if(C.indexOf("u")>=0)F=F.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(S,P,k){var x=parseInt(P||k,16);if(x>1114111)D.throwUnexpectedToken(A.Messages.InvalidRegExp);if(x<=65535)return String.fromCharCode(x);return M}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M);try{RegExp(F)}catch(S){this.throwUnexpectedToken(A.Messages.InvalidRegExp)}try{return new RegExp(q,C)}catch(S){return null}},E.prototype.scanRegExpBody=function(){var q=this.source[this.index];z.assert(q==="/","Regular expression literal must start with a slash");var C=this.source[this.index++],M=!1,F=!1;while(!this.eof())if(q=this.source[this.index++],C+=q,q==="\\"){if(q=this.source[this.index++],O.Character.isLineTerminator(q.charCodeAt(0)))this.throwUnexpectedToken(A.Messages.UnterminatedRegExp);C+=q}else if(O.Character.isLineTerminator(q.charCodeAt(0)))this.throwUnexpectedToken(A.Messages.UnterminatedRegExp);else if(M){if(q==="]")M=!1}else if(q==="/"){F=!0;break}else if(q==="[")M=!0;if(!F)this.throwUnexpectedToken(A.Messages.UnterminatedRegExp);return C.substr(1,C.length-2)},E.prototype.scanRegExpFlags=function(){var q="",C="";while(!this.eof()){var M=this.source[this.index];if(!O.Character.isIdentifierPart(M.charCodeAt(0)))break;if(++this.index,M==="\\"&&!this.eof())if(M=this.source[this.index],M==="u"){++this.index;var F=this.index,D=this.scanHexEscape("u");if(D!==null){C+=D;for(q+="\\u";F<this.index;++F)q+=this.source[F]}else this.index=F,C+="u",q+="\\u";this.tolerateUnexpectedToken()}else q+="\\",this.tolerateUnexpectedToken();else C+=M,q+=M}return C},E.prototype.scanRegExp=function(){var q=this.index,C=this.scanRegExpBody(),M=this.scanRegExpFlags(),F=this.testRegExp(C,M);return{type:9,value:"",pattern:C,flags:M,regex:F,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var q=this.source.charCodeAt(this.index);if(O.Character.isIdentifierStart(q))return this.scanIdentifier();if(q===40||q===41||q===59)return this.scanPunctuator();if(q===39||q===34)return this.scanStringLiteral();if(q===46){if(O.Character.isDecimalDigit(this.source.charCodeAt(this.index+1)))return this.scanNumericLiteral();return this.scanPunctuator()}if(O.Character.isDecimalDigit(q))return this.scanNumericLiteral();if(q===96||q===125&&this.curlyStack[this.curlyStack.length-1]==="${")return this.scanTemplate();if(q>=55296&&q<57343){if(O.Character.isIdentifierStart(this.codePointAt(this.index)))return this.scanIdentifier()}return this.scanPunctuator()},E}();W.Scanner=j},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0}),W.TokenName={},W.TokenName[1]="Boolean",W.TokenName[2]="<end>",W.TokenName[3]="Identifier",W.TokenName[4]="Keyword",W.TokenName[5]="Null",W.TokenName[6]="Numeric",W.TokenName[7]="Punctuator",W.TokenName[8]="String",W.TokenName[9]="RegularExpression",W.TokenName[10]="Template"},function(Y,W){Object.defineProperty(W,"__esModule",{value:!0}),W.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(Y,W,V){Object.defineProperty(W,"__esModule",{value:!0});var z=V(10),O=V(12),A=V(13),G=function(){function j(){this.values=[],this.curly=this.paren=-1}return j.prototype.beforeFunctionExpression=function(E){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(E)>=0},j.prototype.isRegexStart=function(){var E=this.values[this.values.length-1],q=E!==null;switch(E){case"this":case"]":q=!1;break;case")":var C=this.values[this.paren-1];q=C==="if"||C==="while"||C==="for"||C==="with";break;case"}":if(q=!1,this.values[this.curly-3]==="function"){var M=this.values[this.curly-4];q=M?!this.beforeFunctionExpression(M):!1}else if(this.values[this.curly-4]==="function"){var M=this.values[this.curly-5];q=M?!this.beforeFunctionExpression(M):!0}break;default:break}return q},j.prototype.push=function(E){if(E.type===7||E.type===4){if(E.value==="{")this.curly=this.values.length;else if(E.value==="(")this.paren=this.values.length;this.values.push(E.value)}else this.values.push(null)},j}(),v=function(){function j(E,q){this.errorHandler=new z.ErrorHandler,this.errorHandler.tolerant=q?typeof q.tolerant==="boolean"&&q.tolerant:!1,this.scanner=new O.Scanner(E,this.errorHandler),this.scanner.trackComment=q?typeof q.comment==="boolean"&&q.comment:!1,this.trackRange=q?typeof q.range==="boolean"&&q.range:!1,this.trackLoc=q?typeof q.loc==="boolean"&&q.loc:!1,this.buffer=[],this.reader=new G}return j.prototype.errors=function(){return this.errorHandler.errors},j.prototype.getNextToken=function(){if(this.buffer.length===0){var E=this.scanner.scanComments();if(this.scanner.trackComment)for(var q=0;q<E.length;++q){var C=E[q],M=this.scanner.source.slice(C.slice[0],C.slice[1]),F={type:C.multiLine?"BlockComment":"LineComment",value:M};if(this.trackRange)F.range=C.range;if(this.trackLoc)F.loc=C.loc;this.buffer.push(F)}if(!this.scanner.eof()){var D=void 0;if(this.trackLoc)D={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}};var S=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),P=S?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(P);var k={type:A.TokenName[P.type],value:this.scanner.source.slice(P.start,P.end)};if(this.trackRange)k.range=[P.start,P.end];if(this.trackLoc)D.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},k.loc=D;if(P.type===9){var{pattern:x,flags:f}=P;k.regex={pattern:x,flags:f}}this.buffer.push(k)}}return this.buffer.shift()},j}();W.Tokenizer=v}])})});var jW=MZ((oz,PW)=>{var MW=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9],QU,AW=(Y)=>Y<1e5?Y<100?Y<10?0:1:Y<1e4?Y<1000?2:3:4:Y<1e7?Y<1e6?5:6:Y<1e9?Y<1e8?7:8:9;function qW(Y,W){if(Y===W)return 0;if(~~Y===Y&&~~W===W){if(Y===0||W===0)return Y<W?-1:1;if(Y<0||W<0){if(W>=0)return-1;if(Y>=0)return 1;Y=-Y,W=-W}let O=AW(Y),A=AW(W),G=0;if(O<A)Y*=MW[A-O-1],W/=10,G=-1;else if(O>A)W*=MW[O-A-1],Y/=10,G=1;if(Y===W)return G;return Y<W?-1:1}let V=String(Y),z=String(W);if(V===z)return 0;return V<z?-1:1}function PF(Y){let W=0;while(Y>=32)W|=Y&1,Y>>=1;return Y+W}function TW(Y,W,V,z){let O=W+1;if(O===V)return 1;if(z(Y[O++],Y[W])<0){while(O<V&&z(Y[O],Y[O-1])<0)O++;RW(Y,W,O),RW(QU,W,O)}else while(O<V&&z(Y[O],Y[O-1])>=0)O++;return O-W}function RW(Y,W,V){V--;while(W<V){let z=Y[W];Y[W++]=Y[V],Y[V--]=z}}function SW(Y,W,V,z,O){if(z===W)z++;for(;z<V;z++){let A=Y[z],G=QU[z],v=W,j=z;while(v<j){let q=v+j>>>1;if(O(A,Y[q])<0)j=q;else v=q+1}let E=z-v;switch(E){case 3:Y[v+3]=Y[v+2],QU[v+3]=QU[v+2];case 2:Y[v+2]=Y[v+1],QU[v+2]=QU[v+1];case 1:Y[v+1]=Y[v],QU[v+1]=QU[v];break;default:while(E>0)Y[v+E]=Y[v+E-1],QU[v+E]=QU[v+E-1],E--}Y[v]=A,QU[v]=G}}function b1(Y,W,V,z,O,A){let G=0,v=0,j=1;if(A(Y,W[V+O])>0){v=z-O;while(j<v&&A(Y,W[V+O+j])>0)if(G=j,j=(j<<1)+1,j<=0)j=v;if(j>v)j=v;G+=O,j+=O}else{v=O+1;while(j<v&&A(Y,W[V+O-j])<=0)if(G=j,j=(j<<1)+1,j<=0)j=v;if(j>v)j=v;let E=G;G=O-j,j=O-E}G++;while(G<j){let E=G+(j-G>>>1);if(A(Y,W[V+E])>0)G=E+1;else j=E}return j}function u1(Y,W,V,z,O,A){let G=0,v=0,j=1;if(A(Y,W[V+O])<0){v=O+1;while(j<v&&A(Y,W[V+O-j])<0)if(G=j,j=(j<<1)+1,j<=0)j=v;if(j>v)j=v;let E=G;G=O-j,j=O-E}else{v=z-O;while(j<v&&A(Y,W[V+O+j])>=0)if(G=j,j=(j<<1)+1,j<=0)j=v;if(j>v)j=v;G+=O,j+=O}G++;while(G<j){let E=G+(j-G>>>1);if(A(Y,W[V+E])<0)j=E;else G=E+1}return j}class EW{constructor(Y,W){this.array=Y,this.compare=W;let{length:V}=Y;this.length=V,this.minGallop=7,this.tmpStorageLength=V<512?V>>>1:256,this.tmp=Array(this.tmpStorageLength),this.tmpIndex=Array(this.tmpStorageLength),this.stackLength=V<120?5:V<1542?10:V<119151?19:40,this.runStart=Array(this.stackLength),this.runLength=Array(this.stackLength),this.stackSize=0}pushRun(Y,W){this.runStart[this.stackSize]=Y,this.runLength[this.stackSize]=W,this.stackSize+=1}mergeRuns(){while(this.stackSize>1){let Y=this.stackSize-2;if(Y>=1&&this.runLength[Y-1]<=this.runLength[Y]+this.runLength[Y+1]||Y>=2&&this.runLength[Y-2]<=this.runLength[Y]+this.runLength[Y-1]){if(this.runLength[Y-1]<this.runLength[Y+1])Y--}else if(this.runLength[Y]>this.runLength[Y+1])break;this.mergeAt(Y)}}forceMergeRuns(){while(this.stackSize>1){let Y=this.stackSize-2;if(Y>0&&this.runLength[Y-1]<this.runLength[Y+1])Y--;this.mergeAt(Y)}}mergeAt(Y){let{compare:W}=this,{array:V}=this,z=this.runStart[Y],O=this.runLength[Y],A=this.runStart[Y+1],G=this.runLength[Y+1];if(this.runLength[Y]=O+G,Y===this.stackSize-3)this.runStart[Y+1]=this.runStart[Y+2],this.runLength[Y+1]=this.runLength[Y+2];this.stackSize--;let v=u1(V[A],V,z,O,0,W);if(z+=v,O-=v,O===0)return;if(G=b1(V[z+O-1],V,A,G,G-1,W),G===0)return;if(O<=G)this.mergeLow(z,O,A,G);else this.mergeHigh(z,O,A,G)}mergeLow(Y,W,V,z){let{compare:O}=this,{array:A}=this,{tmp:G}=this,{tmpIndex:v}=this,j=0;for(j=0;j<W;j++)G[j]=A[Y+j],v[j]=QU[Y+j];let E=0,q=V,C=Y;if(A[C]=A[q],QU[C]=QU[q],C++,q++,--z===0){for(j=0;j<W;j++)A[C+j]=G[E+j],QU[C+j]=v[E+j];return}if(W===1){for(j=0;j<z;j++)A[C+j]=A[q+j],QU[C+j]=QU[q+j];A[C+z]=G[E],QU[C+z]=v[E];return}let{minGallop:M}=this;while(!0){let F=0,D=0,S=!1;do if(O(A[q],G[E])<0){if(A[C]=A[q],QU[C]=QU[q],C++,q++,D++,F=0,--z===0){S=!0;break}}else if(A[C]=G[E],QU[C]=v[E],C++,E++,F++,D=0,--W===1){S=!0;break}while((F|D)<M);if(S)break;do{if(F=u1(A[q],G,E,W,0,O),F!==0){for(j=0;j<F;j++)A[C+j]=G[E+j],QU[C+j]=v[E+j];if(C+=F,E+=F,W-=F,W<=1){S=!0;break}}if(A[C]=A[q],QU[C]=QU[q],C++,q++,--z===0){S=!0;break}if(D=b1(G[E],A,q,z,0,O),D!==0){for(j=0;j<D;j++)A[C+j]=A[q+j],QU[C+j]=QU[q+j];if(C+=D,q+=D,z-=D,z===0){S=!0;break}}if(A[C]=G[E],QU[C]=v[E],C++,E++,--W===1){S=!0;break}M--}while(F>=7||D>=7);if(S)break;if(M<0)M=0;M+=2}if(this.minGallop=M,M<1)this.minGallop=1;if(W===1){for(j=0;j<z;j++)A[C+j]=A[q+j],QU[C+j]=QU[q+j];A[C+z]=G[E],QU[C+z]=v[E]}else if(W===0)throw Error("mergeLow preconditions were not respected");else for(j=0;j<W;j++)A[C+j]=G[E+j],QU[C+j]=v[E+j]}mergeHigh(Y,W,V,z){let{compare:O}=this,{array:A}=this,{tmp:G}=this,{tmpIndex:v}=this,j=0;for(j=0;j<z;j++)G[j]=A[V+j],v[j]=QU[V+j];let E=Y+W-1,q=z-1,C=V+z-1,M=0,F=0;if(A[C]=A[E],QU[C]=QU[E],C--,E--,--W===0){M=C-(z-1);for(j=0;j<z;j++)A[M+j]=G[j],QU[M+j]=v[j];return}if(z===1){C-=W,E-=W,F=C+1,M=E+1;for(j=W-1;j>=0;j--)A[F+j]=A[M+j],QU[F+j]=QU[M+j];A[C]=G[q],QU[C]=v[q];return}let{minGallop:D}=this;while(!0){let S=0,P=0,k=!1;do if(O(G[q],A[E])<0){if(A[C]=A[E],QU[C]=QU[E],C--,E--,S++,P=0,--W===0){k=!0;break}}else if(A[C]=G[q],QU[C]=v[q],C--,q--,P++,S=0,--z===1){k=!0;break}while((S|P)<D);if(k)break;do{if(S=W-u1(G[q],A,Y,W,W-1,O),S!==0){C-=S,E-=S,W-=S,F=C+1,M=E+1;for(j=S-1;j>=0;j--)A[F+j]=A[M+j],QU[F+j]=QU[M+j];if(W===0){k=!0;break}}if(A[C]=G[q],QU[C]=v[q],C--,q--,--z===1){k=!0;break}if(P=z-b1(A[E],G,0,z,z-1,O),P!==0){C-=P,q-=P,z-=P,F=C+1,M=q+1;for(j=0;j<P;j++)A[F+j]=G[M+j],QU[F+j]=v[M+j];if(z<=1){k=!0;break}}if(A[C]=A[E],QU[C]=QU[E],C--,E--,--W===0){k=!0;break}D--}while(S>=7||P>=7);if(k)break;if(D<0)D=0;D+=2}if(this.minGallop=D,D<1)this.minGallop=1;if(z===1){C-=W,E-=W,F=C+1,M=E+1;for(j=W-1;j>=0;j--)A[F+j]=A[M+j],QU[F+j]=QU[M+j];A[C]=G[q],QU[C]=v[q]}else if(z===0)throw Error("mergeHigh preconditions were not respected");else{M=C-(z-1);for(j=0;j<z;j++)A[M+j]=G[j],QU[M+j]=v[j]}}}function jF(Y,W,V,z){if(!Array.isArray(Y))throw TypeError(`The "array" argument must be an array. Received ${Y}`);QU=[];let{length:O}=Y,A=0;while(A<O)QU[A]=A++;if(!W)W=qW;else if(typeof W!=="function")z=V,V=W,W=qW;if(!V)V=0;if(!z)z=O;let G=z-V;if(G<2)return QU;let v=0;if(G<32)return v=TW(Y,V,z,W),SW(Y,V,z,V+v,W),QU;let j=new EW(Y,W),E=PF(G);do{if(v=TW(Y,V,z,W),v<E){let q=G;if(q>E)q=E;SW(Y,V,V+q,V+v,W),v=q}j.pushRun(V,v),j.mergeRuns(),G-=v,V+=v}while(G!==0);return j.forceMergeRuns(),QU}PW.exports={sort:jF}});var uQ=MZ((nz,_W)=>{var AX=["before","after-prop","after-colon","after-value","after"],BW=["before","after","before-all","after-all"],BF=BW.map(Symbol.for),NW=new WeakMap,vW=new WeakMap,m1=new WeakMap,n1=(Y)=>typeof Y==="string",MX=(Y)=>typeof Y==="number",xZ=(Y)=>typeof Y==="object"&&Y!==null,kW=(Y)=>n1(Y)||MX(Y)?String(Y):null,NF=(Y,W,V)=>{if(!xZ(Y)||!n1(V))return;let z=kW(W);if(z===null)return;let O=m1.get(Y);if(!O)O=new Map,m1.set(Y,O);O.set(z,V)},vF=(Y,W)=>{if(!xZ(Y))return;let V=kW(W);if(V===null)return;let z=m1.get(Y);return z?z.get(V):void 0},$Q=(Y,W)=>Symbol.for(Y+":"+W),d1=(Y,W)=>{if(W){if(AX.includes(Y))return $Q(Y,W);throw RangeError(`Unsupported comment position ${Y} with key ${W}`)}if(BW.includes(Y))return Symbol.for(Y);throw RangeError(`Unsupported comment position ${Y}`)},bQ=(Y,W,V)=>Object.defineProperty(Y,W,{value:V,writable:!0,configurable:!0}),o1=(Y,W,V,z,O,A)=>{let G=$Q(O,z);if(!Object.hasOwn(W,G))return;let v=V===z?G:$Q(O,V);if(bQ(Y,v,W[G]),A)delete W[G]},xW=(Y,W,V,z,O)=>{AX.forEach((A)=>{o1(Y,W,V,z,A,O)})},kF=(Y,W,V)=>{if(W===V)return;AX.forEach((z)=>{let O=$Q(z,V);if(!Object.hasOwn(Y,O)){o1(Y,Y,V,W,z,!0);return}let A=Y[O];delete Y[O],o1(Y,Y,V,W,z,!0),bQ(Y,$Q(z,W),A)})},l1=(Y,W)=>{BF.forEach((V)=>{let z=W[V];if(z)bQ(Y,V,z)})},xF=(Y,W,V)=>{return V.forEach((z)=>{if(typeof z!=="string"&&typeof z!=="number")return;if(!Object.hasOwn(W,z))return;Y[z]=W[z],xW(Y,W,z,z)}),Y},_F=typeof JSON.isRawJSON==="function"?JSON.isRawJSON:()=>!1,wF=(Y,W,V)=>{if(MX(W)&&W>=0)NW.set(Y,W);if(MX(V)&&V>=0)vW.set(Y,V)},gF=(Y)=>NW.get(Y),fF=(Y)=>vW.get(Y);_W.exports={PROP_SYMBOL_PREFIXES:AX,PREFIX_BEFORE:"before",PREFIX_AFTER_PROP:"after-prop",PREFIX_AFTER_COLON:"after-colon",PREFIX_AFTER_VALUE:"after-value",PREFIX_AFTER:"after",PREFIX_BEFORE_ALL:"before-all",PREFIX_AFTER_ALL:"after-all",BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:void 0,symbol:$Q,define:bQ,copy_comments:xW,swap_comments:kF,assign_non_prop_comments:l1,is_string:n1,is_number:MX,is_object:xZ,is_raw_json:_F,set_raw_string_literal:NF,get_raw_string_literal:vF,set_comment_line_breaks:wF,get_comment_line_breaks_before:gF,get_comment_line_breaks_after:fF,assign(Y,W,V){if(!xZ(Y))throw TypeError("Cannot convert undefined or null to object");if(!xZ(W))return Y;if(V===void 0)V=Object.keys(W),l1(Y,W);else if(!Array.isArray(V))throw TypeError("keys must be array or undefined");else if(V.length===0)l1(Y,W);return xF(Y,W,V)},moveComments(Y,W,{where:V,key:z},{where:O,key:A},G=!1){if(!xZ(Y))throw TypeError("source must be an object");if(!W)W=Y;if(!xZ(W))return;let v=d1(V,z),j=d1(O,A);if(!Object.hasOwn(Y,v))return;let E=Y[v];if(delete Y[v],G||!Object.hasOwn(W,j)){bQ(W,j,E);return}let q=W[j];if(q)q.push(...E)},removeComments(Y,{where:W,key:V}){if(!xZ(Y))throw TypeError("target must be an object");let z=d1(W,V);if(!Object.hasOwn(Y,z))return;delete Y[z]}}});var s1=MZ((sz,hW)=>{var{sort:yF}=jW(),{PROP_SYMBOL_PREFIXES:hF,UNDEFINED:wW,symbol:pF,copy_comments:cF,swap_comments:yW}=uQ(),bF=(Y)=>{let{length:W}=Y,V=0,z=W/2;for(;V<z;V++)yW(Y,V,W-V-1)},gW=(Y,W,V,z,O)=>{cF(Y,W,V+z,V,O)},HQ=(Y,W,V,z,O,A)=>{if(O>0){let v=z;while(v-- >0)gW(Y,W,V+v,O,A);return}let G=0;while(G<z){let v=G++;gW(Y,W,V+v,O,A)}},fW=(Y,W)=>{hF.forEach((V)=>{let z=pF(V,W);delete Y[z]})},uF=(Y,W)=>{let V=W;while(V in Y)V=Y[V];return V};class qX extends Array{splice(...Y){let{length:W}=this,V=super.splice(...Y),[z,O,...A]=Y;if(z<0)z+=W;if(arguments.length===1)O=W-z;else O=Math.min(W-z,O);let{length:G}=A,v=G-O,j=z+O,E=W-j;return HQ(this,this,j,E,v,!0),V}slice(...Y){let{length:W}=this,V=super.slice(...Y);if(!V.length)return new qX;let[z,O]=Y;if(O===wW)O=W;else if(O<0)O+=W;if(z<0)z+=W;else if(z===wW)z=0;return HQ(V,this,z,O-z,-z),V}unshift(...Y){let{length:W}=this,V=super.unshift(...Y),{length:z}=Y;if(z>0)HQ(this,this,0,W,z,!0);return V}shift(){let Y=super.shift(),{length:W}=this;return fW(this,0),HQ(this,this,1,W,-1,!0),Y}reverse(){return super.reverse(),bF(this),this}pop(){let Y=super.pop();return fW(this,this.length),Y}concat(...Y){let{length:W}=this,V=super.concat(...Y);if(!Y.length)return V;return HQ(V,this,0,this.length,0),Y.forEach((z)=>{let O=W;if(W+=Array.isArray(z)?z.length:1,!(z instanceof qX))return;HQ(V,z,0,z.length,O)}),V}sort(...Y){let W=yF(this,...Y.slice(0,1)),V=Object.create(null);return W.forEach((z,O)=>{if(z===O)return;let A=uF(V,z);if(A===O)return;V[O]=A,yW(this,O,A)}),this}}hW.exports={CommentArray:qX}});var QV=MZ((rz,ZV)=>{var dF=LW(),{CommentArray:lF}=s1(),{PREFIX_BEFORE:RX,PREFIX_AFTER_PROP:mF,PREFIX_AFTER_COLON:oF,PREFIX_AFTER_VALUE:dW,PREFIX_AFTER:a1,PREFIX_BEFORE_ALL:nF,PREFIX_AFTER_ALL:sF,BRACKET_OPEN:rF,BRACKET_CLOSE:pW,CURLY_BRACKET_OPEN:aF,CURLY_BRACKET_CLOSE:cW,COLON:lW,COMMA:mW,MINUS:bW,EMPTY:tF,UNDEFINED:IQ,is_object:iF,define:t1,set_raw_string_literal:eF,set_comment_line_breaks:uW,assign_non_prop_comments:U6}=uQ(),oW=(Y)=>dF.tokenize(Y,{comment:!0,loc:!0}),PX,i1=[],TZ=null,$Z=null,e1=[],RZ,nW=!1,sW=!1,dQ=null,nZ=null,bU=null,rW,SX=null,aW=()=>{PX=IQ,e1.length=i1.length=0,nZ=null,RZ=IQ},UJ=()=>{aW(),dQ.length=0,$Z=TZ=dQ=nZ=bU=SX=null,PX=IQ},ZJ=(Y)=>Symbol.for(RZ!==IQ?Y+lW+RZ:Y),QJ=(Y,{value:W,context:V={}})=>SX?SX(Y,W,V):W,tW=()=>{let Y=SyntaxError(`Unexpected token '${bU.value.slice(0,1)}', "${PX}" is not valid JSON`);throw Object.assign(Y,bU.loc.start),UJ(),Y},iW=()=>{let Y=SyntaxError("Unexpected end of JSON input");throw Object.assign(Y,nZ?nZ.loc.end:{line:1,column:0}),UJ(),Y},YZ=()=>{let Y=dQ[++rW];sW=bU&&Y&&bU.loc.end.line===Y.loc.start.line||!1,nZ=bU,bU=Y},r1=()=>{if(!bU)iW();return bU.type==="Punctuator"?bU.value:bU.type},sZ=(Y)=>r1()===Y,TX=(Y)=>{if(!sZ(Y))tW()},XJ=(Y)=>{i1.push(TZ),TZ=Y},JJ=()=>{TZ=i1.pop()},eW=()=>{if(!$Z)return;let Y=[];for(let V of $Z)if(V.inline)Y.push(V);else break;let{length:W}=Y;if(!W)return;if(W===$Z.length)$Z=null;else $Z.splice(0,W);t1(TZ,ZJ(a1),Y)},_Z=(Y)=>{if(!$Z)return;t1(TZ,ZJ(Y),$Z),$Z=null},HZ=(Y)=>{let W=[];while(bU&&(sZ("LineComment")||sZ("BlockComment"))){let z={...bU,inline:sW},O=nZ?nZ.loc.end.line:1;uW(z,Math.max(0,z.loc.start.line-O)),W.push(z),YZ()}let{length:V}=W;if(V){let z=W[V-1],O=bU?bU.loc.start.line:z.loc.end.line;uW(z,void 0,Math.max(0,O-z.loc.end.line))}if(nW)return;if(!V)return;if(Y){t1(TZ,ZJ(Y),W);return}$Z=W},EX=(Y,W)=>{if(W)e1.push(RZ);RZ=Y},UV=()=>{RZ=e1.pop()},Z6=()=>{let Y={};XJ(Y),EX(IQ,!0);let W=!1,V;HZ();while(!sZ(cW)){if(W){if(_Z(dW),TX(mW),YZ(),HZ(),eW(),sZ(cW))break}W=!0,TX("String"),V=JSON.parse(bU.value),EX(V),_Z(RX),YZ(),HZ(mF),TX(lW),YZ(),HZ(oF),Y[V]=QJ(V,YJ()),HZ()}if(W)_Z(a1);if(YZ(),RZ=void 0,!W)_Z(RX);return JJ(),UV(),Y},Q6=()=>{let Y=new lF;XJ(Y),EX(IQ,!0);let W=!1,V=0;HZ();while(!sZ(pW)){if(W){if(_Z(dW),TX(mW),YZ(),HZ(),eW(),sZ(pW))break}W=!0,EX(V),_Z(RX),Y[V]=QJ(V,YJ()),V++,HZ()}if(W)_Z(a1);if(YZ(),RZ=void 0,!W)_Z(RX);return JJ(),UV(),Y};function YJ(){let Y=r1();if(Y===aF)return YZ(),{value:Z6()};if(Y===rF)return YZ(),{value:Q6()};let W=tF;if(Y===bW)YZ(),Y=r1(),W=bW;let V,z;switch(Y){case"String":eF(TZ,RZ,bU.value);case"Boolean":case"Null":case"Numeric":return V=bU.value,YZ(),z=W+V,{value:JSON.parse(z),context:{source:z}};default:return{}}}var X6=(Y,W,V)=>{if(aW(),PX=Y,dQ=oW(Y),SX=W,nW=V,!dQ.length)iW();rW=-1,YZ(),XJ({}),HZ(nF);let z=YJ();if(HZ(sF),bU)tW();let O=QJ("",z);if(!V&&O!==null){if(!iF(O))O=Object(O);U6(O,TZ)}return JJ(),UJ(),O};ZV.exports={parse:X6,tokenize:oW}});var FV=MZ((az,OV)=>{var{PREFIX_BEFORE_ALL:J6,PREFIX_BEFORE:YV,PREFIX_AFTER_PROP:Y6,PREFIX_AFTER_COLON:G6,PREFIX_AFTER_VALUE:W6,PREFIX_AFTER:WJ,PREFIX_AFTER_ALL:V6,BRACKET_OPEN:K6,BRACKET_CLOSE:$6,CURLY_BRACKET_OPEN:H6,CURLY_BRACKET_CLOSE:I6,COLON:O6,COMMA:GV,EMPTY:iU,UNDEFINED:F6,is_string:z6,is_number:GJ,is_object:WV,get_raw_string_literal:C6,get_comment_line_breaks_before:D6,get_comment_line_breaks_after:L6,is_raw_json:M6}=uQ(),VV=(Y)=>`${YV}:${Y}`,A6=(Y)=>`${Y6}:${Y}`,q6=(Y)=>`${G6}:${Y}`,KV=(Y)=>`${W6}:${Y}`,$V=(Y)=>`${WJ}:${Y}`,HV=JSON.stringify,T6=(Y,W)=>W?`//${Y}`:`/*${Y}*/`,jX=(Y,W)=>(`
|
|
100
|
-
`+W).repeat(Y),XV=(Y)=>GJ(Y)&&Y>=0?Y:null,R6=(Y,W)=>{if(!Y||!Y.loc||!W.loc)return null;let{end:V}=Y.loc,{start:z}=W.loc;if(!V||!z||!GJ(V.line)||!GJ(z.line))return null;let O=z.line-V.line;return O>=0?O:null},JV=(Y,W)=>{let V=`
|
|
101
|
-
`+W,{length:z}=V,O=Y.length,A=0;while(O>=z&&Y.slice(O-z,O)===V)O-=z,A++;return A},ZZ=(Y,W,V,z)=>{let O=Y[Symbol.for(W)];if(!O||!O.length)return iU;let A=iU,G=null;O.forEach((E,q)=>{let{inline:C,type:M,value:F}=E,D=XV(D6(E));if(D===null)D=R6(G,E);if(D===null)D=C?0:1;let S=D>0?jX(D,V):C?" ":q===0?iU:`
|
|
102
|
-
`+V;A+=S+T6(F,M==="LineComment"),G=E});let v=z||G.type==="LineComment"?1:0,j=Math.max(v,XV(L6(G))||0);return A+jX(j,V)},OQ=null,mQ=iU,S6=()=>{OQ=null,mQ=iU},lQ=(Y,W,V)=>Y?W?Y+W.trim()+`
|
|
103
|
-
`+V:Y.trimRight()+jX(Math.max(1,JV(Y,V)),V):W?W.trimRight()+jX(Math.max(1,JV(W,V)),V):iU,IV=(Y,W,V)=>{let z=ZZ(W,YV,V+mQ,!0);return lQ(z,Y,V)},E6=(Y,W,V)=>{let z=C6(Y,W);if(z6(z))try{if(JSON.parse(z)===V)return z}catch(O){}return HV(V)},P6=(Y,W)=>{let V=W+mQ,{length:z}=Y,O=iU,A=iU;for(let G=0;G<z;G++){if(G!==0)O+=GV;let v=lQ(A,ZZ(Y,VV(G),V),V);O+=v||`
|
|
104
|
-
`+V,O+=VJ(G,Y,V)||"null",O+=ZZ(Y,KV(G),V),A=ZZ(Y,$V(G),V)}return O+=lQ(A,ZZ(Y,WJ,V),V),K6+IV(O,Y,W)+$6},j6=(Y,W)=>{if(!Y)return"null";let V=W+mQ,z=iU,O=iU,A=!0,G=Array.isArray(OQ)?OQ:Object.keys(Y),v=(j)=>{let E=VJ(j,Y,V);if(E===F6)return;if(!A)z+=GV;A=!1;let q=lQ(O,ZZ(Y,VV(j),V),V);z+=q||`
|
|
105
|
-
`+V,z+=HV(j)+ZZ(Y,A6(j),V)+O6+ZZ(Y,q6(j),V)+" "+E+ZZ(Y,KV(j),V),O=ZZ(Y,$V(j),V)};return G.forEach(v),z+=lQ(O,ZZ(Y,WJ,V),V),H6+IV(z,Y,W)+I6};function VJ(Y,W,V){let z=W[Y];if(WV(z)&&typeof z.toJSON==="function")z=z.toJSON(Y);if(typeof OQ==="function")z=OQ.call(W,Y,z);switch(typeof z){case"string":return E6(W,Y,z);case"number":return Number.isFinite(z)?String(z):"null";case"boolean":case"null":return String(z);case"object":if(M6(z))return z.rawJSON;return Array.isArray(z)?P6(z,V):j6(z,V);default:}}var B6=(Y)=>typeof Y==="string"?Y:typeof Y==="number"?" ".repeat(Y):iU,{toString:N6}=Object.prototype,v6=["[object Number]","[object String]","[object Boolean]"],k6=(Y)=>{if(typeof Y!=="object")return!1;let W=N6.call(Y);return v6.includes(W)};OV.exports=(Y,W,V)=>{let z=B6(V);if(!z)return JSON.stringify(Y,W);if(typeof W!=="function"&&!Array.isArray(W))W=null;OQ=W,mQ=z;let O=k6(Y)?JSON.stringify(Y):VJ("",{"":Y},iU);return S6(),WV(Y)?ZZ(Y,J6,iU,!0).trimLeft()+O+ZZ(Y,V6,iU).trimRight():O}});var CV=MZ((tz,zV)=>{var{parse:x6,tokenize:_6}=QV(),w6=FV(),{CommentArray:g6}=s1(),{PREFIX_BEFORE:f6,PREFIX_AFTER_PROP:y6,PREFIX_AFTER_COLON:h6,PREFIX_AFTER_VALUE:p6,PREFIX_AFTER:c6,PREFIX_BEFORE_ALL:b6,PREFIX_AFTER_ALL:u6,assign:d6,moveComments:l6,removeComments:m6}=uQ();zV.exports={PREFIX_BEFORE:f6,PREFIX_AFTER_PROP:y6,PREFIX_AFTER_COLON:h6,PREFIX_AFTER_VALUE:p6,PREFIX_AFTER:c6,PREFIX_BEFORE_ALL:b6,PREFIX_AFTER_ALL:u6,parse:x6,stringify:w6,tokenize:_6,CommentArray:g6,assign:d6,moveComments:l6,removeComments:m6}});nX();var{existsSync:o6}=(()=>({}));var{readFile:n6}=(()=>({}));import{loadConfig as s6}from"c12";sX();var{env:jZ={},argv:VY=[],platform:BK=""}=typeof process>"u"?{}:process,NK="NO_COLOR"in jZ||VY.includes("--no-color"),vK="FORCE_COLOR"in jZ||VY.includes("--color"),kK=BK==="win32",KY=jZ.TERM==="dumb",xK=QX&&RQ&&RQ(1)&&jZ.TERM&&!KY,_K="CI"in jZ&&(("GITHUB_ACTIONS"in jZ)||("GITLAB_CI"in jZ)||("CIRCLECI"in jZ)),wK=!NK&&(vK||kK&&!KY||xK||_K),$Y=(Y,W,V,z,O=W.substring(0,Y)+z,A=W.substring(Y+V.length),G=A.indexOf(V))=>O+(G<0?A:$Y(G,A,V,z)),gK=(Y,W,V,z,O)=>Y<0?V+W+z:V+$Y(Y,W,z,O)+z,fK=(Y,W,V=Y,z=Y.length+1)=>(O)=>O||!(O===""||O===void 0)?gK((""+O).indexOf(W,z),O,Y,W,V):"",$U=(Y,W,V)=>fK(`\x1B[${Y}m`,`\x1B[${W}m`,V),WY={reset:$U(0,0),bold:$U(1,22,"\x1B[22m\x1B[1m"),dim:$U(2,22,"\x1B[22m\x1B[2m"),italic:$U(3,23),underline:$U(4,24),inverse:$U(7,27),hidden:$U(8,28),strikethrough:$U(9,29),black:$U(30,39),red:$U(31,39),green:$U(32,39),yellow:$U(33,39),blue:$U(34,39),magenta:$U(35,39),cyan:$U(36,39),white:$U(37,39),gray:$U(90,39),bgBlack:$U(40,49),bgRed:$U(41,49),bgGreen:$U(42,49),bgYellow:$U(43,49),bgBlue:$U(44,49),bgMagenta:$U(45,49),bgCyan:$U(46,49),bgWhite:$U(47,49),blackBright:$U(90,39),redBright:$U(91,39),greenBright:$U(92,39),yellowBright:$U(93,39),blueBright:$U(94,39),magentaBright:$U(95,39),cyanBright:$U(96,39),whiteBright:$U(97,39),bgBlackBright:$U(100,49),bgRedBright:$U(101,49),bgGreenBright:$U(102,49),bgYellowBright:$U(103,49),bgBlueBright:$U(104,49),bgMagentaBright:$U(105,49),bgCyanBright:$U(106,49),bgWhiteBright:$U(107,49)},yK=({useColor:Y=wK}={})=>Y?WY:Object.keys(WY).reduce((W,V)=>({...W,[V]:String}),{}),{reset:i6,bold:e6,dim:Uz,italic:Zz,underline:Qz,inverse:Xz,hidden:Jz,strikethrough:Yz,black:Gz,red:Wz,green:Vz,yellow:Kz,blue:$z,magenta:Hz,cyan:Iz,white:Oz,gray:Fz,bgBlack:zz,bgRed:Cz,bgGreen:Dz,bgYellow:Lz,bgBlue:Mz,bgMagenta:Az,bgCyan:qz,bgWhite:Tz,blackBright:Rz,redBright:Sz,greenBright:HY,yellowBright:Ez,blueBright:Pz,magentaBright:jz,cyanBright:Bz,whiteBright:Nz,bgBlackBright:vz,bgRedBright:kz,bgGreenBright:xz,bgYellowBright:_z,bgBlueBright:wz,bgMagentaBright:gz,bgCyanBright:fz,bgWhiteBright:yz}=yK();var CW=FW(OW(),1);var{createRequire:zW}=(()=>({}));function RF(Y){throw Y}var SF=(Y)=>import(Y),y1;function EF(...Y){if(!y1)y1=zW(import.meta.url)("../dist/babel.cjs");return y1(...Y)}function DW(Y,W={}){if(!W.transform)W={...W,transform:EF};return CW.default(Y,W,{onError:RF,nativeImport:SF,createRequire:zW})}var h1="timeback.config",p1="timeback.config.json";var BX=FW(CV(),1);function DV(Y){return BX.parse(Y,void 0,!0)}function MV(Y){let W=TQ(Y).toLowerCase();return W===".json"||W===".jsonc"}async function r6(Y,W){if(W&&!MV(W))throw Error(`Config file must be JSON (.json or .jsonc): ${W}`);let V=DW(UX(Y,h1),{interopDefault:!0,moduleCache:!1}),z=V.import.bind(V),O=(E,q)=>{if(TQ(E).toLowerCase()===".json")return n6(E,"utf8").then((C)=>DV(C));return z(E,q)};V.import=O;let A=await s6({cwd:Y,name:"timeback",configFile:W?.replace(/\.(jsonc|json)$/i,"")??h1,jiti:V,rcFile:!1,packageJson:!1,dotenv:!1,envName:!1,extend:!1,omit$Keys:!0,defaults:{},overrides:{}});if(!A.config||Object.keys(A.config).length===0)return null;let G=A.config;if("extends"in G)throw Error("The 'extends' feature is not supported in timeback.config.json. Please inline all configuration.");let{$schema:v,...j}=G;return{config:j,configFile:A.configFile??cZ(Y,W??p1)}}async function $C(Y={}){let W=process.cwd();try{if(Y.configPath&&!MV(Y.configPath))return{success:!1,error:`Config file must be JSON (.json or .jsonc): ${Y.configPath}`};if(Y.configPath){let O=cZ(W,Y.configPath);if(!o6(O))return{success:!1,error:`Config file not found: ${Y.configPath}`}}let V=await r6(W,Y.configPath);if(!V)return{success:!1,error:`No timeback config found. Run ${HY("timeback init")} to create one.`};let z=LV.safeParse(V.config);if(!z.success){let O=z.error.issues.map((A)=>` - ${A.path.join(".")}: ${A.message}`).join(`
|
|
106
|
-
`);return{success:!1,error:`Invalid config in ${qQ(V.configFile)}:
|
|
107
|
-
${O}`}}return{success:!0,config:z.data,configPath:V.configFile}}catch(V){return{success:!1,error:`Failed to load ${Y.configPath?qQ(Y.configPath):p1}:
|
|
108
|
-
${V instanceof Error?V.message:String(V)}`}}}function HC(Y){return ZX(process.cwd(),Y)}export{r6 as loadWithC12,$C as loadConfig,HC as getRelativeConfigPath};
|