@oomol-lab/open-flow 0.1.0-beta.76 → 0.1.0-beta.78
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 +3 -0
- package/dist/browser/{ContentIcon-Cm1hbVzW.js → ContentIcon-CMn0c-kl.js} +99 -6
- package/dist/browser/{FlowCanvas-NzKtla_c.js → FlowCanvas-BQGBcfoL.js} +1709 -613
- package/dist/browser/{createResourceDialog-BgdedQqu.js → createResourceDialog-DCGxfKFM.js} +63 -57
- package/dist/browser/{dialog-aSElFFw2.js → dialog-WzR4CRFH.js} +76 -77
- package/dist/browser/{exportSvg-Dcz4HTo_.js → exportSvg-CYwyYiuH.js} +2 -2
- package/dist/browser/{flowChanges-NZyS7HSp.js → flowChanges-Bz4dbDN_.js} +6875 -11091
- package/dist/browser/{flowWorkspace-Bl0SDehy.js → flowWorkspace-BI6L6a4r.js} +1415 -3037
- package/dist/browser/licenses.md +1 -1
- package/dist/browser/preview.css +619 -462
- package/dist/browser/preview.js +9016 -14956
- package/dist/browser/theme.css +4 -2
- package/dist/browser/{tooltip-3XMK9jkr.js → tooltip-BDcVTNpu.js} +65 -2
- package/dist/browser/{typeScriptSession-C9sBGOKZ.js → typeScriptSession-CRoezJPN.js} +1 -1
- package/dist/browser/ui.css +112 -24
- package/dist/browser/ui.js +3 -2
- package/dist/browser/workbench.css +10020 -9842
- package/dist/browser/workbench.d.ts +5 -2
- package/dist/browser/workbench.js +2382 -2668
- package/dist/browser/{workbenchSelect-DBGP7Y4Z.js → workbenchSelect-DtAd0zc4.js} +2 -2
- package/dist/command/index.js +48 -48
- package/dist/common/authoring.d.ts +4 -4
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringSchema.d.ts +15 -4
- package/dist/common/control-api-conformance.js +155 -15
- package/dist/common/control-api-errors.d.ts +12 -0
- package/dist/common/control-api.d.ts +39 -2
- package/dist/common/control-api.js +180 -37
- package/dist/common/control-requests.d.ts +23 -3
- package/dist/common/control-requests.js +141 -14
- package/dist/common/engine-contract.d.ts +3 -2
- package/dist/common/flow-authoring.js +47 -7
- package/dist/common/flow-change-schema.d.ts +1 -1
- package/dist/common/flow-change.d.ts +2 -2
- package/dist/common/flow-change.js +48 -8
- package/dist/common/flow-encoding.js +47 -7
- package/dist/common/flow-semantics.js +86 -8
- package/dist/common/flow-state.d.ts +100 -0
- package/dist/common/flow-state.js +5794 -0
- package/dist/common/mcp.d.ts +96 -3
- package/dist/common/mcp.js +158 -13
- package/dist/common/run-events.js +19 -8
- package/dist/common/runtime-contract.d.ts +14 -0
- package/dist/common/runtime-contract.js +124 -17
- package/dist/common/runtime-nodejs-compat.js +11 -12
- package/dist/common/scheduler-node-execution.d.ts +1 -0
- package/dist/common/scheduler.d.ts +2 -1
- package/dist/common/scheduler.js +95 -40
- package/dist/common/state-conformance.d.ts +16 -0
- package/dist/common/tags.d.ts +4 -0
- package/dist/index.d.ts +11 -0
- package/package.json +5 -1
- package/src/control/common/api.ts +101 -11
- package/src/control/common/authoring.ts +7 -1
- package/src/control/common/authoringExamples.ts +9 -0
- package/src/control/common/authoringSchema.ts +18 -12
- package/src/control/common/errors.ts +6 -0
- package/src/control/common/flowDecoders.ts +1 -0
- package/src/control/common/mcp.ts +16 -0
- package/src/control/common/requests.ts +16 -2
- package/src/control/common/tags.ts +20 -0
- package/src/execution/common/events.ts +22 -7
- package/src/execution/common/node-execution.ts +3 -0
- package/src/execution/common/scheduler.ts +29 -13
- package/src/flow/common/change.ts +2 -1
- package/src/flow/common/changeSchema.ts +11 -1
- package/src/flow/common/errorHandling.ts +1 -1
- package/src/flow/common/semantics.ts +27 -1
- package/src/runtime/common/engineContract.ts +6 -3
- package/src/runtime/common/nodejsGuest.generated.json +11 -12
- package/src/runtime/common/runtime.ts +122 -7
- package/src/state/common/conformance.ts +81 -0
- package/src/state/common/state.ts +141 -0
- package/src/types/index.ts +11 -0
|
@@ -5494,41 +5494,40 @@ var nodejsGuestModules = {
|
|
|
5494
5494
|
"engine/builtin/buffer.mjs": "import{h as e,j as t,o}from\"../chunks/chunk-IQ3JZKJB.mjs\";o();t();var x=e,f=e.Buffer;var p=e.SlowBuffer;var a=e.INSPECT_MAX_BYTES;var s=e.kMaxLength;export{f as Buffer,a as INSPECT_MAX_BYTES,p as SlowBuffer,x as default,s as kMaxLength};\n",
|
|
5495
5495
|
"engine/builtin/console.mjs": "import{o as r}from\"../chunks/chunk-IQ3JZKJB.mjs\";r();var o=Object.fromEntries([\"assert\",\"debug\",\"error\",\"info\",\"log\",\"warn\"].map(e=>[e,(...t)=>globalThis.console[e](...t)])),s=o,a=o.assert;var n=o.debug;var p=o.error;var x=o.info;var d=o.log;var c=o.warn;export{a as assert,n as debug,s as default,p as error,x as info,d as log,c as warn};\n",
|
|
5496
5496
|
"engine/builtin/constants.mjs": "import{o as S}from\"../chunks/chunk-IQ3JZKJB.mjs\";S();var E={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,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,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,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4};var t=E,O=E.O_RDONLY;var N=E.O_WRONLY;var I=E.O_RDWR;var r=E.S_IFMT;var p=E.S_IFREG;var x=E.S_IFDIR;var s=E.S_IFCHR;var T=E.S_IFBLK;var P=E.S_IFIFO;var R=E.S_IFLNK;var L=E.S_IFSOCK;var G=E.O_CREAT;var C=E.O_EXCL;var D=E.O_NOCTTY;var A=E.O_TRUNC;var a=E.O_APPEND;var d=E.O_DIRECTORY;var c=E.O_NOFOLLOW;var n=E.O_SYNC;var U=E.O_SYMLINK;var H=E.O_NONBLOCK;var M=E.S_IRWXU;var F=E.S_IRUSR;var B=E.S_IWUSR;var K=E.S_IXUSR;var Y=E.S_IRWXG;var X=E.S_IRGRP;var V=E.S_IWGRP;var W=E.S_IXGRP;var v=E.S_IRWXO;var Q=E.S_IROTH;var Z=E.S_IWOTH;var f=E.S_IXOTH;var l=E.E2BIG;var m=E.EACCES;var u=E.EADDRINUSE;var i=E.EADDRNOTAVAIL;var b=E.EAFNOSUPPORT;var g=E.EAGAIN;var h=E.EALREADY;var j=E.EBADF;var k=E.EBADMSG;var q=E.EBUSY;var w=E.ECANCELED;var y=E.ECHILD;var z=E.ECONNABORTED;var J=E.ECONNREFUSED;var $=E.ECONNRESET;var EE=E.EDEADLK;var SE=E.EDESTADDRREQ;var _E=E.EDOM;var eE=E.EDQUOT;var oE=E.EEXIST;var tE=E.EFAULT;var OE=E.EFBIG;var NE=E.EHOSTUNREACH;var IE=E.EIDRM;var rE=E.EILSEQ;var pE=E.EINPROGRESS;var xE=E.EINTR;var sE=E.EINVAL;var TE=E.EIO;var PE=E.EISCONN;var RE=E.EISDIR;var LE=E.ELOOP;var GE=E.EMFILE;var CE=E.EMLINK;var DE=E.EMSGSIZE;var AE=E.EMULTIHOP;var aE=E.ENAMETOOLONG;var dE=E.ENETDOWN;var cE=E.ENETRESET;var nE=E.ENETUNREACH;var UE=E.ENFILE;var HE=E.ENOBUFS;var ME=E.ENODATA;var FE=E.ENODEV;var BE=E.ENOENT;var KE=E.ENOEXEC;var YE=E.ENOLCK;var XE=E.ENOLINK;var VE=E.ENOMEM;var WE=E.ENOMSG;var vE=E.ENOPROTOOPT;var QE=E.ENOSPC;var ZE=E.ENOSR;var fE=E.ENOSTR;var lE=E.ENOSYS;var mE=E.ENOTCONN;var uE=E.ENOTDIR;var iE=E.ENOTEMPTY;var bE=E.ENOTSOCK;var gE=E.ENOTSUP;var hE=E.ENOTTY;var jE=E.ENXIO;var kE=E.EOPNOTSUPP;var qE=E.EOVERFLOW;var wE=E.EPERM;var yE=E.EPIPE;var zE=E.EPROTO;var JE=E.EPROTONOSUPPORT;var $E=E.EPROTOTYPE;var ES=E.ERANGE;var SS=E.EROFS;var _S=E.ESPIPE;var eS=E.ESRCH;var oS=E.ESTALE;var tS=E.ETIME;var OS=E.ETIMEDOUT;var NS=E.ETXTBSY;var IS=E.EWOULDBLOCK;var rS=E.EXDEV;var pS=E.SIGHUP;var xS=E.SIGINT;var sS=E.SIGQUIT;var TS=E.SIGILL;var PS=E.SIGTRAP;var RS=E.SIGABRT;var LS=E.SIGIOT;var GS=E.SIGBUS;var CS=E.SIGFPE;var DS=E.SIGKILL;var AS=E.SIGUSR1;var aS=E.SIGSEGV;var dS=E.SIGUSR2;var cS=E.SIGPIPE;var nS=E.SIGALRM;var US=E.SIGTERM;var HS=E.SIGCHLD;var MS=E.SIGCONT;var FS=E.SIGSTOP;var BS=E.SIGTSTP;var KS=E.SIGTTIN;var YS=E.SIGTTOU;var XS=E.SIGURG;var VS=E.SIGXCPU;var WS=E.SIGXFSZ;var vS=E.SIGVTALRM;var QS=E.SIGPROF;var ZS=E.SIGWINCH;var fS=E.SIGIO;var lS=E.SIGSYS;var mS=E.SSL_OP_ALL;var uS=E.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION;var iS=E.SSL_OP_CIPHER_SERVER_PREFERENCE;var bS=E.SSL_OP_CISCO_ANYCONNECT;var gS=E.SSL_OP_COOKIE_EXCHANGE;var hS=E.SSL_OP_CRYPTOPRO_TLSEXT_BUG;var jS=E.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;var kS=E.SSL_OP_EPHEMERAL_RSA;var qS=E.SSL_OP_LEGACY_SERVER_CONNECT;var wS=E.SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER;var yS=E.SSL_OP_MICROSOFT_SESS_ID_BUG;var zS=E.SSL_OP_MSIE_SSLV2_RSA_PADDING;var JS=E.SSL_OP_NETSCAPE_CA_DN_BUG;var $S=E.SSL_OP_NETSCAPE_CHALLENGE_BUG;var E_=E.SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG;var S_=E.SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG;var __=E.SSL_OP_NO_COMPRESSION;var e_=E.SSL_OP_NO_QUERY_MTU;var o_=E.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION;var t_=E.SSL_OP_NO_SSLv2;var O_=E.SSL_OP_NO_SSLv3;var N_=E.SSL_OP_NO_TICKET;var I_=E.SSL_OP_NO_TLSv1;var r_=E.SSL_OP_NO_TLSv1_1;var p_=E.SSL_OP_NO_TLSv1_2;var x_=E.SSL_OP_PKCS1_CHECK_1;var s_=E.SSL_OP_PKCS1_CHECK_2;var T_=E.SSL_OP_SINGLE_DH_USE;var P_=E.SSL_OP_SINGLE_ECDH_USE;var R_=E.SSL_OP_SSLEAY_080_CLIENT_DH_BUG;var L_=E.SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG;var G_=E.SSL_OP_TLS_BLOCK_PADDING_BUG;var C_=E.SSL_OP_TLS_D5_BUG;var D_=E.SSL_OP_TLS_ROLLBACK_BUG;var A_=E.ENGINE_METHOD_DSA;var a_=E.ENGINE_METHOD_DH;var d_=E.ENGINE_METHOD_RAND;var c_=E.ENGINE_METHOD_ECDH;var n_=E.ENGINE_METHOD_ECDSA;var U_=E.ENGINE_METHOD_CIPHERS;var H_=E.ENGINE_METHOD_DIGESTS;var M_=E.ENGINE_METHOD_STORE;var F_=E.ENGINE_METHOD_PKEY_METHS;var B_=E.ENGINE_METHOD_PKEY_ASN1_METHS;var K_=E.ENGINE_METHOD_ALL;var Y_=E.ENGINE_METHOD_NONE;var X_=E.DH_CHECK_P_NOT_SAFE_PRIME;var V_=E.DH_CHECK_P_NOT_PRIME;var W_=E.DH_UNABLE_TO_CHECK_GENERATOR;var v_=E.DH_NOT_SUITABLE_GENERATOR;var Q_=E.NPN_ENABLED;var Z_=E.RSA_PKCS1_PADDING;var f_=E.RSA_SSLV23_PADDING;var l_=E.RSA_NO_PADDING;var m_=E.RSA_PKCS1_OAEP_PADDING;var u_=E.RSA_X931_PADDING;var i_=E.RSA_PKCS1_PSS_PADDING;var b_=E.POINT_CONVERSION_COMPRESSED;var g_=E.POINT_CONVERSION_UNCOMPRESSED;var h_=E.POINT_CONVERSION_HYBRID;var j_=E.F_OK;var k_=E.R_OK;var q_=E.W_OK;var w_=E.X_OK;var y_=E.UV_UDP_REUSEADDR;export{V_ as DH_CHECK_P_NOT_PRIME,X_ as DH_CHECK_P_NOT_SAFE_PRIME,v_ as DH_NOT_SUITABLE_GENERATOR,W_ as DH_UNABLE_TO_CHECK_GENERATOR,l as E2BIG,m as EACCES,u as EADDRINUSE,i as EADDRNOTAVAIL,b as EAFNOSUPPORT,g as EAGAIN,h as EALREADY,j as EBADF,k as EBADMSG,q as EBUSY,w as ECANCELED,y as ECHILD,z as ECONNABORTED,J as ECONNREFUSED,$ as ECONNRESET,EE as EDEADLK,SE as EDESTADDRREQ,_E as EDOM,eE as EDQUOT,oE as EEXIST,tE as EFAULT,OE as EFBIG,NE as EHOSTUNREACH,IE as EIDRM,rE as EILSEQ,pE as EINPROGRESS,xE as EINTR,sE as EINVAL,TE as EIO,PE as EISCONN,RE as EISDIR,LE as ELOOP,GE as EMFILE,CE as EMLINK,DE as EMSGSIZE,AE as EMULTIHOP,aE as ENAMETOOLONG,dE as ENETDOWN,cE as ENETRESET,nE as ENETUNREACH,UE as ENFILE,K_ as ENGINE_METHOD_ALL,U_ as ENGINE_METHOD_CIPHERS,a_ as ENGINE_METHOD_DH,H_ as ENGINE_METHOD_DIGESTS,A_ as ENGINE_METHOD_DSA,c_ as ENGINE_METHOD_ECDH,n_ as ENGINE_METHOD_ECDSA,Y_ as ENGINE_METHOD_NONE,B_ as ENGINE_METHOD_PKEY_ASN1_METHS,F_ as ENGINE_METHOD_PKEY_METHS,d_ as ENGINE_METHOD_RAND,M_ as ENGINE_METHOD_STORE,HE as ENOBUFS,ME as ENODATA,FE as ENODEV,BE as ENOENT,KE as ENOEXEC,YE as ENOLCK,XE as ENOLINK,VE as ENOMEM,WE as ENOMSG,vE as ENOPROTOOPT,QE as ENOSPC,ZE as ENOSR,fE as ENOSTR,lE as ENOSYS,mE as ENOTCONN,uE as ENOTDIR,iE as ENOTEMPTY,bE as ENOTSOCK,gE as ENOTSUP,hE as ENOTTY,jE as ENXIO,kE as EOPNOTSUPP,qE as EOVERFLOW,wE as EPERM,yE as EPIPE,zE as EPROTO,JE as EPROTONOSUPPORT,$E as EPROTOTYPE,ES as ERANGE,SS as EROFS,_S as ESPIPE,eS as ESRCH,oS as ESTALE,tS as ETIME,OS as ETIMEDOUT,NS as ETXTBSY,IS as EWOULDBLOCK,rS as EXDEV,j_ as F_OK,Q_ as NPN_ENABLED,a as O_APPEND,G as O_CREAT,d as O_DIRECTORY,C as O_EXCL,D as O_NOCTTY,c as O_NOFOLLOW,H as O_NONBLOCK,O as O_RDONLY,I as O_RDWR,U as O_SYMLINK,n as O_SYNC,A as O_TRUNC,N as O_WRONLY,b_ as POINT_CONVERSION_COMPRESSED,h_ as POINT_CONVERSION_HYBRID,g_ as POINT_CONVERSION_UNCOMPRESSED,l_ as RSA_NO_PADDING,m_ as RSA_PKCS1_OAEP_PADDING,Z_ as RSA_PKCS1_PADDING,i_ as RSA_PKCS1_PSS_PADDING,f_ as RSA_SSLV23_PADDING,u_ as RSA_X931_PADDING,k_ as R_OK,RS as SIGABRT,nS as SIGALRM,GS as SIGBUS,HS as SIGCHLD,MS as SIGCONT,CS as SIGFPE,pS as SIGHUP,TS as SIGILL,xS as SIGINT,fS as SIGIO,LS as SIGIOT,DS as SIGKILL,cS as SIGPIPE,QS as SIGPROF,sS as SIGQUIT,aS as SIGSEGV,FS as SIGSTOP,lS as SIGSYS,US as SIGTERM,PS as SIGTRAP,BS as SIGTSTP,KS as SIGTTIN,YS as SIGTTOU,XS as SIGURG,AS as SIGUSR1,dS as SIGUSR2,vS as SIGVTALRM,ZS as SIGWINCH,VS as SIGXCPU,WS as SIGXFSZ,mS as SSL_OP_ALL,uS as SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION,iS as SSL_OP_CIPHER_SERVER_PREFERENCE,bS as SSL_OP_CISCO_ANYCONNECT,gS as SSL_OP_COOKIE_EXCHANGE,hS as SSL_OP_CRYPTOPRO_TLSEXT_BUG,jS as SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,kS as SSL_OP_EPHEMERAL_RSA,qS as SSL_OP_LEGACY_SERVER_CONNECT,wS as SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER,yS as SSL_OP_MICROSOFT_SESS_ID_BUG,zS as SSL_OP_MSIE_SSLV2_RSA_PADDING,JS as SSL_OP_NETSCAPE_CA_DN_BUG,$S as SSL_OP_NETSCAPE_CHALLENGE_BUG,E_ as SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG,S_ as SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG,__ as SSL_OP_NO_COMPRESSION,e_ as SSL_OP_NO_QUERY_MTU,o_ as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION,t_ as SSL_OP_NO_SSLv2,O_ as SSL_OP_NO_SSLv3,N_ as SSL_OP_NO_TICKET,I_ as SSL_OP_NO_TLSv1,r_ as SSL_OP_NO_TLSv1_1,p_ as SSL_OP_NO_TLSv1_2,x_ as SSL_OP_PKCS1_CHECK_1,s_ as SSL_OP_PKCS1_CHECK_2,T_ as SSL_OP_SINGLE_DH_USE,P_ as SSL_OP_SINGLE_ECDH_USE,R_ as SSL_OP_SSLEAY_080_CLIENT_DH_BUG,L_ as SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG,G_ as SSL_OP_TLS_BLOCK_PADDING_BUG,C_ as SSL_OP_TLS_D5_BUG,D_ as SSL_OP_TLS_ROLLBACK_BUG,T as S_IFBLK,s as S_IFCHR,x as S_IFDIR,P as S_IFIFO,R as S_IFLNK,r as S_IFMT,p as S_IFREG,L as S_IFSOCK,X as S_IRGRP,Q as S_IROTH,F as S_IRUSR,Y as S_IRWXG,v as S_IRWXO,M as S_IRWXU,V as S_IWGRP,Z as S_IWOTH,B as S_IWUSR,W as S_IXGRP,f as S_IXOTH,K as S_IXUSR,y_ as UV_UDP_REUSEADDR,q_ as W_OK,w_ as X_OK,t as default};\n",
|
|
5497
|
-
"engine/builtin/crypto.mjs": "import{a as K}from\"../chunks/chunk-
|
|
5497
|
+
"engine/builtin/crypto.mjs": "import{a as K}from\"../chunks/chunk-MDRNMNJQ.mjs\";import\"../chunks/chunk-4Y6DVSR7.mjs\";import\"../chunks/chunk-2PJDHVIE.mjs\";import\"../chunks/chunk-QMKSQR7V.mjs\";import{a as r,e as w,g as Buffer,j as L,o as l}from\"../chunks/chunk-IQ3JZKJB.mjs\";l();import{loadBuiltin as a}from\"../web.mjs\";l();L();var E=w(K(),1);import{binary as P,primitive as s,loadBuiltin as O}from\"../web.mjs\";var f=class extends E.Transform{static{r(this,\"NativeHash\")}#e;#t;constructor(n,p,i){super(),this.#t=i;let o=P(typeof p==\"string\"?Buffer.from(p):p);this.#e=s(\"hash.create\",{algorithm:n,hmac:i,offset:o.offset,length:o.length},o.buffer)}update(n,p){if(this.#e===void 0)throw new Error(\"Digest already called or hash destroyed.\");let i=P(typeof n==\"string\"?Buffer.from(n,p):n);return s(\"hash.update\",{id:this.#e,offset:i.offset,length:i.length},i.buffer),this}digest(n){if(this.#e===void 0&&this.#t)return n?\"\":Buffer.alloc(0);if(this.#e===void 0)throw new Error(\"Digest already called or hash destroyed.\");let p=this.#e;this.#e=void 0;let i=Buffer.from(s(\"hash.digest\",{id:p}));return n?i.toString(n):i}_transform(n,p,i){try{this.update(n,p)}catch(o){i(o);return}i()}_flush(n){try{this.push(this.digest())}catch(p){n(p);return}n()}_destroy(n,p){if(this.#e!==void 0){let i=this.#e;this.#e=void 0;try{s(\"hash.dispose\",{id:i})}catch(o){p(n??o);return}}p(n)}};function d(t){return typeof t==\"string\"&&[\"ripemd160\",\"rmd160\"].includes(t.toLowerCase())?O(\"crypto\").default.createHash(t):new f(t,new ArrayBuffer(0),!1)}r(d,\"createHash\");function h(t,n){return typeof t==\"string\"&&[\"ripemd160\",\"rmd160\"].includes(t.toLowerCase())?O(\"crypto\").default.createHmac(t,n):new f(t,n,!0)}r(h,\"createHmac\");var e={};function c(...t){return Reflect.apply(a(\"crypto\").default.prng,this,t)}r(c,\"lazy0\");Object.defineProperties(c,{name:{value:\"randomBytes\"},length:{value:2}});e.prng=c;e.pseudoRandomBytes=c;e.rng=c;e.randomBytes=c;function y(...t){return Reflect.apply(a(\"crypto\").default.Hash,this,t)}r(y,\"lazy1\");Object.defineProperties(y,{name:{value:\"createHash\"},length:{value:1}});e.Hash=y;e.createHash=y;function m(...t){return Reflect.apply(a(\"crypto\").default.Hmac,this,t)}r(m,\"lazy2\");Object.defineProperties(m,{name:{value:\"createHmac\"},length:{value:2}});e.Hmac=m;e.createHmac=m;function _(...t){return Reflect.apply(a(\"crypto\").default.getHashes,this,t)}r(_,\"lazy3\");Object.defineProperties(_,{name:{value:\"\"},length:{value:0}});e.getHashes=_;function S(...t){return Reflect.apply(a(\"crypto\").default.pbkdf2,this,t)}r(S,\"lazy4\");Object.defineProperties(S,{name:{value:\"\"},length:{value:6}});e.pbkdf2=S;function N(...t){return Reflect.apply(a(\"crypto\").default.pbkdf2Sync,this,t)}r(N,\"lazy5\");Object.defineProperties(N,{name:{value:\"pbkdf2\"},length:{value:5}});e.pbkdf2Sync=N;function x(...t){return Reflect.apply(a(\"crypto\").default.Cipher,this,t)}r(x,\"lazy6\");Object.defineProperties(x,{name:{value:\"createCipher\"},length:{value:2}});e.Cipher=x;e.createCipher=x;function D(...t){return Reflect.apply(a(\"crypto\").default.Cipheriv,this,t)}r(D,\"lazy7\");Object.defineProperties(D,{name:{value:\"createCipheriv\"},length:{value:3}});e.Cipheriv=D;e.createCipheriv=D;function v(...t){return Reflect.apply(a(\"crypto\").default.Decipher,this,t)}r(v,\"lazy8\");Object.defineProperties(v,{name:{value:\"createDecipher\"},length:{value:2}});e.Decipher=v;e.createDecipher=v;function g(...t){return Reflect.apply(a(\"crypto\").default.Decipheriv,this,t)}r(g,\"lazy9\");Object.defineProperties(g,{name:{value:\"createDecipheriv\"},length:{value:3}});e.Decipheriv=g;e.createDecipheriv=g;function H(...t){return Reflect.apply(a(\"crypto\").default.getCiphers,this,t)}r(H,\"lazy10\");Object.defineProperties(H,{name:{value:\"getCiphers\"},length:{value:0}});e.getCiphers=H;e.listCiphers=H;function u(...t){return Reflect.apply(a(\"crypto\").default.DiffieHellmanGroup,this,t)}r(u,\"lazy11\");Object.defineProperties(u,{name:{value:\"getDiffieHellman\"},length:{value:1}});e.DiffieHellmanGroup=u;e.createDiffieHellmanGroup=u;e.getDiffieHellman=u;function R(...t){return Reflect.apply(a(\"crypto\").default.createDiffieHellman,this,t)}r(R,\"lazy12\");Object.defineProperties(R,{name:{value:\"createDiffieHellman\"},length:{value:4}});e.createDiffieHellman=R;e.DiffieHellman=R;function C(...t){return Reflect.apply(a(\"crypto\").default.createSign,this,t)}r(C,\"lazy13\");Object.defineProperties(C,{name:{value:\"createSign\"},length:{value:1}});e.createSign=C;e.Sign=C;function b(...t){return Reflect.apply(a(\"crypto\").default.createVerify,this,t)}r(b,\"lazy14\");Object.defineProperties(b,{name:{value:\"createVerify\"},length:{value:1}});e.createVerify=b;e.Verify=b;function j(...t){return Reflect.apply(a(\"crypto\").default.createECDH,this,t)}r(j,\"lazy15\");Object.defineProperties(j,{name:{value:\"createECDH\"},length:{value:1}});e.createECDH=j;function z(...t){return Reflect.apply(a(\"crypto\").default.publicEncrypt,this,t)}r(z,\"lazy16\");Object.defineProperties(z,{name:{value:\"publicEncrypt\"},length:{value:3}});e.publicEncrypt=z;function I(...t){return Reflect.apply(a(\"crypto\").default.privateEncrypt,this,t)}r(I,\"lazy17\");Object.defineProperties(I,{name:{value:\"privateEncrypt\"},length:{value:2}});e.privateEncrypt=I;function A(...t){return Reflect.apply(a(\"crypto\").default.publicDecrypt,this,t)}r(A,\"lazy18\");Object.defineProperties(A,{name:{value:\"publicDecrypt\"},length:{value:2}});e.publicDecrypt=A;function V(...t){return Reflect.apply(a(\"crypto\").default.privateDecrypt,this,t)}r(V,\"lazy19\");Object.defineProperties(V,{name:{value:\"privateDecrypt\"},length:{value:3}});e.privateDecrypt=V;function U(...t){return Reflect.apply(a(\"crypto\").default.randomFill,this,t)}r(U,\"lazy20\");Object.defineProperties(U,{name:{value:\"randomFill\"},length:{value:4}});e.randomFill=U;function B(...t){return Reflect.apply(a(\"crypto\").default.randomFillSync,this,t)}r(B,\"lazy21\");Object.defineProperties(B,{name:{value:\"randomFillSync\"},length:{value:3}});e.randomFillSync=B;function G(...t){return Reflect.apply(a(\"crypto\").default.createCredentials,this,t)}r(G,\"lazy22\");Object.defineProperties(G,{name:{value:\"\"},length:{value:0}});e.createCredentials=G;e.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};function T(...t){return Reflect.apply(a(\"crypto\").default.randomUUID,this,t)}r(T,\"lazy23\");Object.defineProperties(T,{name:{value:\"randomUUID\"},length:{value:0}});e.randomUUID=T;function F(...t){return Reflect.apply(a(\"crypto\").default.getRandomValues,this,t)}r(F,\"lazy24\");Object.defineProperties(F,{name:{value:\"getRandomValues\"},length:{value:1}});e.getRandomValues=F;Object.assign(e,{createHash:d,createHmac:h,Hash:d,Hmac:h,randomUUID:globalThis.crypto.randomUUID,getRandomValues:globalThis.crypto.getRandomValues});var W=e,Z=e.prng;var $=e.pseudoRandomBytes;var ee=e.rng;var te=e.randomBytes;var re=e.Hash;var ae=e.createHash;var ne=e.Hmac;var pe=e.createHmac;var ie=e.getHashes;var oe=e.pbkdf2;var ce=e.pbkdf2Sync;var le=e.Cipher;var se=e.createCipher;var fe=e.Cipheriv;var ue=e.createCipheriv;var de=e.Decipher;var he=e.createDecipher;var ye=e.Decipheriv;var me=e.createDecipheriv;var xe=e.getCiphers;var De=e.listCiphers;var ve=e.DiffieHellmanGroup;var ge=e.createDiffieHellmanGroup;var He=e.getDiffieHellman;var Re=e.createDiffieHellman;var Ce=e.DiffieHellman;var be=e.createSign;var Pe=e.Sign;var Oe=e.createVerify;var Ee=e.Verify;var _e=e.createECDH;var Se=e.publicEncrypt;var Ne=e.privateEncrypt;var je=e.publicDecrypt;var ze=e.privateDecrypt;var Ie=e.randomFill;var Ae=e.randomFillSync;var Ve=e.createCredentials;var Ue=e.constants;var Be=e.randomUUID;var Ge=e.getRandomValues;export{le as Cipher,fe as Cipheriv,de as Decipher,ye as Decipheriv,Ce as DiffieHellman,ve as DiffieHellmanGroup,re as Hash,ne as Hmac,Pe as Sign,Ee as Verify,Ue as constants,se as createCipher,ue as createCipheriv,Ve as createCredentials,he as createDecipher,me as createDecipheriv,Re as createDiffieHellman,ge as createDiffieHellmanGroup,_e as createECDH,ae as createHash,pe as createHmac,be as createSign,Oe as createVerify,W as default,xe as getCiphers,He as getDiffieHellman,ie as getHashes,Ge as getRandomValues,De as listCiphers,oe as pbkdf2,ce as pbkdf2Sync,ze as privateDecrypt,Ne as privateEncrypt,Z as prng,$ as pseudoRandomBytes,je as publicDecrypt,Se as publicEncrypt,te as randomBytes,Ie as randomFill,Ae as randomFillSync,Be as randomUUID,ee as rng};\n",
|
|
5498
5498
|
"engine/builtin/events.mjs": "import{a as r}from\"../chunks/chunk-QMKSQR7V.mjs\";import{e as o,o as t}from\"../chunks/chunk-IQ3JZKJB.mjs\";t();var e=o(r()),n=e.default,s=e.default.once;var x=e.default.EventEmitter;var p=e.default.defaultMaxListeners;var a=e.default.init;var i=e.default.listenerCount;export{x as EventEmitter,n as default,p as defaultMaxListeners,a as init,i as listenerCount,s as once};\n",
|
|
5499
|
-
"engine/builtin/fs.mjs": "import{a as e}from\"../chunks/chunk-
|
|
5500
|
-
"engine/builtin/fs/promises.mjs": "import{a as o}from\"../../chunks/chunk-
|
|
5499
|
+
"engine/builtin/fs.mjs": "import{a as e}from\"../chunks/chunk-Z7G3SFE2.mjs\";import\"../chunks/chunk-P4O57R5Z.mjs\";import\"../chunks/chunk-MDRNMNJQ.mjs\";import\"../chunks/chunk-4Y6DVSR7.mjs\";import\"../chunks/chunk-2PJDHVIE.mjs\";import\"../chunks/chunk-QMKSQR7V.mjs\";import{o as t}from\"../chunks/chunk-IQ3JZKJB.mjs\";t();var r=e,s=e.F_OK;var c=e.R_OK;var n=e.W_OK;var p=e.X_OK;var x=e.constants;var a=e.Stats;var d=e.Dirent;var y=e.accessSync;var S=e.appendFileSync;var i=e.chmodSync;var l=e.chownSync;var m=e.closeSync;var h=e.copyFileSync;var f=e.cpSync;var w=e.existsSync;var u=e.fchmodSync;var k=e.fchownSync;var F=e.fdatasyncSync;var _=e.fstatSync;var v=e.fsyncSync;var W=e.ftruncateSync;var K=e.futimesSync;var O=e.globSync;var b=e.lchmodSync;var R=e.lchownSync;var g=e.linkSync;var A=e.lstatSync;var B=e.mkdirSync;var D=e.mkdtempSync;var T=e.openSync;var U=e.opendirSync;var X=e.readdirSync;var j=e.readFileSync;var q=e.readlinkSync;var z=e.readSync;var C=e.readvSync;var E=e.realpathSync;var G=e.renameSync;var H=e.rmdirSync;var I=e.rmSync;var J=e.statfsSync;var L=e.statSync;var M=e.symlinkSync;var N=e.truncateSync;var P=e.unlinkSync;var Q=e.utimesSync;var V=e.lutimesSync;var Y=e.writeFileSync;var Z=e.writeSync;var $=e.writevSync;var ee=e.access;var te=e.appendFile;var oe=e.chmod;var re=e.chown;var se=e.close;var ce=e.copyFile;var ne=e.cp;var pe=e.createReadStream;var xe=e.createWriteStream;var ae=e.exists;var de=e.fchmod;var ye=e.fchown;var Se=e.fdatasync;var ie=e.fstat;var le=e.fsync;var me=e.ftruncate;var he=e.futimes;var fe=e.glob;var we=e.lchmod;var ue=e.lchown;var ke=e.link;var Fe=e.lstat;var _e=e.mkdir;var ve=e.mkdtemp;var We=e.open;var Ke=e.openAsBlob;var Oe=e.opendir;var be=e.read;var Re=e.readv;var ge=e.readdir;var Ae=e.readFile;var Be=e.readlink;var De=e.realpath;var Te=e.rename;var Ue=e.rm;var Xe=e.rmdir;var je=e.stat;var qe=e.statfs;var ze=e.symlink;var Ce=e.truncate;var Ee=e.unlink;var Ge=e.unwatchFile;var He=e.utimes;var Ie=e.lutimes;var Je=e.watch;var Le=e.watchFile;var Me=e.write;var Ne=e.writev;var Pe=e.writeFile;var Qe=e.StatWatcher;var Ve=e.FSWatcher;var Ye=e.WriteStream;var Ze=e.ReadStream;var $e=e.promises;var et=e._toUnixTimestamp;var tt=e.__vol;export{d as Dirent,Ve as FSWatcher,s as F_OK,c as R_OK,Ze as ReadStream,Qe as StatWatcher,a as Stats,n as W_OK,Ye as WriteStream,p as X_OK,tt as __vol,et as _toUnixTimestamp,ee as access,y as accessSync,te as appendFile,S as appendFileSync,oe as chmod,i as chmodSync,re as chown,l as chownSync,se as close,m as closeSync,x as constants,ce as copyFile,h as copyFileSync,ne as cp,f as cpSync,pe as createReadStream,xe as createWriteStream,r as default,ae as exists,w as existsSync,de as fchmod,u as fchmodSync,ye as fchown,k as fchownSync,Se as fdatasync,F as fdatasyncSync,ie as fstat,_ as fstatSync,le as fsync,v as fsyncSync,me as ftruncate,W as ftruncateSync,he as futimes,K as futimesSync,fe as glob,O as globSync,we as lchmod,b as lchmodSync,ue as lchown,R as lchownSync,ke as link,g as linkSync,Fe as lstat,A as lstatSync,Ie as lutimes,V as lutimesSync,_e as mkdir,B as mkdirSync,ve as mkdtemp,D as mkdtempSync,We as open,Ke as openAsBlob,T as openSync,Oe as opendir,U as opendirSync,$e as promises,be as read,Ae as readFile,j as readFileSync,z as readSync,ge as readdir,X as readdirSync,Be as readlink,q as readlinkSync,Re as readv,C as readvSync,De as realpath,E as realpathSync,Te as rename,G as renameSync,Ue as rm,I as rmSync,Xe as rmdir,H as rmdirSync,je as stat,L as statSync,qe as statfs,J as statfsSync,ze as symlink,M as symlinkSync,Ce as truncate,N as truncateSync,Ee as unlink,P as unlinkSync,Ge as unwatchFile,He as utimes,Q as utimesSync,Je as watch,Le as watchFile,Me as write,Pe as writeFile,Y as writeFileSync,Z as writeSync,Ne as writev,$ as writevSync};\n",
|
|
5500
|
+
"engine/builtin/fs/promises.mjs": "import{a as o}from\"../../chunks/chunk-Z7G3SFE2.mjs\";import\"../../chunks/chunk-P4O57R5Z.mjs\";import\"../../chunks/chunk-MDRNMNJQ.mjs\";import\"../../chunks/chunk-4Y6DVSR7.mjs\";import\"../../chunks/chunk-2PJDHVIE.mjs\";import\"../../chunks/chunk-QMKSQR7V.mjs\";import{o as t}from\"../../chunks/chunk-IQ3JZKJB.mjs\";t();var e=o.promises,s=e,p=e.fs;var x=e.FileHandle;var a=e.constants;var n=e.cp;var d=e.opendir;var c=e.statfs;var i=e.lutimes;var l=e.glob;var m=e.access;var h=e.chmod;var k=e.chown;var u=e.copyFile;var F=e.lchmod;var w=e.lchown;var f=e.link;var y=e.lstat;var b=e.mkdir;var g=e.mkdtemp;var H=e.readdir;var v=e.readlink;var j=e.realpath;var q=e.rename;var z=e.rmdir;var A=e.rm;var B=e.stat;var C=e.symlink;var D=e.truncate;var E=e.unlink;var G=e.utimes;var I=e.readFile;var J=e.appendFile;var K=e.open;var L=e.writeFile;var M=e.watch;export{x as FileHandle,m as access,J as appendFile,h as chmod,k as chown,a as constants,u as copyFile,n as cp,s as default,p as fs,l as glob,F as lchmod,w as lchown,f as link,y as lstat,i as lutimes,b as mkdir,g as mkdtemp,K as open,d as opendir,I as readFile,H as readdir,v as readlink,j as realpath,q as rename,A as rm,z as rmdir,B as stat,c as statfs,C as symlink,D as truncate,E as unlink,G as utimes,M as watch,L as writeFile};\n",
|
|
5501
5501
|
"engine/builtin/os.mjs": "import{c as n,e as s,o as r}from\"../chunks/chunk-IQ3JZKJB.mjs\";var o=n(t=>{r();t.endianness=function(){return\"LE\"};t.hostname=function(){return typeof location<\"u\"?location.hostname:\"\"};t.loadavg=function(){return[]};t.uptime=function(){return 0};t.freemem=function(){return Number.MAX_VALUE};t.totalmem=function(){return Number.MAX_VALUE};t.cpus=function(){return[]};t.type=function(){return\"Browser\"};t.release=function(){return typeof navigator<\"u\"?navigator.appVersion:\"\"};t.networkInterfaces=t.getNetworkInterfaces=function(){return{}};t.arch=function(){return\"javascript\"};t.platform=function(){return\"browser\"};t.tmpdir=t.tmpDir=function(){return\"/tmp\"};t.EOL=`\n`;t.homedir=function(){return\"/\"}});r();var e=s(o()),c=e.default,u=e.default.endianness;var i=e.default.hostname;var m=e.default.loadavg;var x=e.default.uptime;var d=e.default.freemem;var f=e.default.totalmem;var l=e.default.cpus;var h=e.default.type;var g=e.default.release;var w=e.default.getNetworkInterfaces;var v=e.default.networkInterfaces;var k=e.default.arch;var E=e.default.platform;var I=e.default.tmpDir;var L=e.default.tmpdir;var y=e.default.EOL;var N=e.default.homedir;export{y as EOL,k as arch,l as cpus,c as default,u as endianness,d as freemem,w as getNetworkInterfaces,N as homedir,i as hostname,m as loadavg,v as networkInterfaces,E as platform,g as release,I as tmpDir,L as tmpdir,f as totalmem,h as type,x as uptime};\n",
|
|
5502
5502
|
"engine/builtin/path.mjs": "import{a as r}from\"../chunks/chunk-P4O57R5Z.mjs\";import{e as t,o}from\"../chunks/chunk-IQ3JZKJB.mjs\";o();var e=t(r()),s=e.default,p=e.default.resolve;var a=e.default.normalize;var x=e.default.isAbsolute;var n=e.default.join;var d=e.default.relative;var i=e.default._makeLong;var m=e.default.dirname;var c=e.default.basename;var l=e.default.extname;var v=e.default.format;var b=e.default.parse;var f=e.default.sep;var u=e.default.delimiter;var g=e.default.win32;var j=e.default.posix;export{i as _makeLong,c as basename,s as default,u as delimiter,m as dirname,l as extname,v as format,x as isAbsolute,n as join,a as normalize,b as parse,j as posix,d as relative,p as resolve,f as sep,g as win32};\n",
|
|
5503
5503
|
"engine/builtin/path/posix.mjs": "import{a as s}from\"../../chunks/chunk-P4O57R5Z.mjs\";import{e as r,o}from\"../../chunks/chunk-IQ3JZKJB.mjs\";o();var t=r(s()),e=t.default.posix,p=e,a=e.resolve;var x=e.normalize;var n=e.isAbsolute;var d=e.join;var i=e.relative;var c=e._makeLong;var m=e.dirname;var l=e.basename;var v=e.extname;var b=e.format;var f=e.parse;var u=e.sep;var g=e.delimiter;var j=e.win32;var k=e.posix;export{c as _makeLong,l as basename,p as default,g as delimiter,m as dirname,v as extname,b as format,n as isAbsolute,d as join,x as normalize,f as parse,k as posix,i as relative,a as resolve,u as sep,j as win32};\n",
|
|
5504
5504
|
"engine/builtin/process.mjs": "import{m as process,n as t,o as e}from\"../chunks/chunk-IQ3JZKJB.mjs\";e();t();var r=process,s=process.nextTick;var p=process.title;var x=process.browser;var n=process.env;var a=process.argv;var d=process.version;var c=process.versions;var i=process.on;var m=process.addListener;var l=process.once;var v=process.off;var u=process.removeListener;var f=process.removeAllListeners;var g=process.emit;var L=process.emitWarning;var h=process.prependListener;var k=process.prependOnceListener;var b=process.listeners;var w=process.binding;var A=process.cwd;var y=process.chdir;var C=process.umask;var O=process.exit;var P=process.pid;var T=process.features;var U=process.kill;var W=process.dlopen;var j=process.uptime;var q=process.memoryUsage;var z=process.uvCounters;var B=process.platform;var D=process.arch;var E=process.execPath;var F=process.execArgv;export{m as addListener,D as arch,a as argv,w as binding,x as browser,y as chdir,A as cwd,r as default,W as dlopen,g as emit,L as emitWarning,n as env,F as execArgv,E as execPath,O as exit,T as features,U as kill,b as listeners,q as memoryUsage,s as nextTick,v as off,i as on,l as once,P as pid,B as platform,h as prependListener,k as prependOnceListener,f as removeAllListeners,u as removeListener,p as title,C as umask,j as uptime,z as uvCounters,d as version,c as versions};\n",
|
|
5505
5505
|
"engine/builtin/punycode.mjs": "import{a as r}from\"../chunks/chunk-3CZWHKXF.mjs\";import{e as t,o}from\"../chunks/chunk-IQ3JZKJB.mjs\";o();var e=t(r()),s=e.default,d=e.default.version;var c=e.default.ucs2;var p=e.default.decode;var x=e.default.encode;var n=e.default.toASCII;var a=e.default.toUnicode;export{p as decode,s as default,x as encode,n as toASCII,a as toUnicode,c as ucs2,d as version};\n",
|
|
5506
5506
|
"engine/builtin/querystring.mjs": "import{a as c,c as I,e as R,o as a}from\"../chunks/chunk-IQ3JZKJB.mjs\";var b=I((D,A)=>{\"use strict\";a();function P(e,r){return Object.prototype.hasOwnProperty.call(e,r)}c(P,\"hasOwnProperty\");A.exports=function(e,r,t,o){r=r||\"&\",t=t||\"=\";var n={};if(typeof e!=\"string\"||e.length===0)return n;var y=/\\+/g;e=e.split(r);var u=1e3;o&&typeof o.maxKeys==\"number\"&&(u=o.maxKeys);var x=e.length;u>0&&x>u&&(x=u);for(var h=0;h<x;++h){var l=e[h].replace(y,\"%20\"),U=l.indexOf(t),v,C,i,m;U>=0?(v=l.substr(0,U),C=l.substr(U+1)):(v=l,C=\"\"),i=decodeURIComponent(v),m=decodeURIComponent(C),P(n,i)?S(n[i])?n[i].push(m):n[i]=[n[i],m]:n[i]=m}return n};var S=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"}});var K=I((J,w)=>{\"use strict\";a();var f=c(function(e){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"true\":\"false\";case\"number\":return isFinite(e)?e:\"\";default:return\"\"}},\"stringifyPrimitive\");w.exports=function(e,r,t,o){return r=r||\"&\",t=t||\"=\",e===null&&(e=void 0),typeof e==\"object\"?j(F(e),function(n){var y=encodeURIComponent(f(n))+t;return E(e[n])?j(e[n],function(u){return y+encodeURIComponent(f(u))}).join(r):y+encodeURIComponent(f(e[n]))}).join(r):o?encodeURIComponent(f(o))+t+encodeURIComponent(f(e)):\"\"};var E=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"};function j(e,r){if(e.map)return e.map(r);for(var t=[],o=0;o<e.length;o++)t.push(r(e[o],o));return t}c(j,\"map\");var F=Object.keys||function(e){var r=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}});var O=I(d=>{\"use strict\";a();d.decode=d.parse=b();d.encode=d.stringify=K()});a();a();var s=R(O(),1),g=R(O(),1);function z(e){return encodeURIComponent(e)}c(z,\"qsEscape\");function B(e){return decodeURIComponent(e)}c(B,\"qsUnescape\");var p={decode:s.decode,encode:s.encode,parse:s.parse,stringify:s.stringify,escape:z,unescape:B};var Y=p,Z=p.decode;var _=p.encode;var $=p.parse;var q=p.stringify;var k=p.escape;var ee=p.unescape;export{Z as decode,Y as default,_ as encode,k as escape,$ as parse,q as stringify,ee as unescape};\n",
|
|
5507
|
-
"engine/builtin/stream.mjs": "import{a as p}from\"../chunks/chunk-
|
|
5508
|
-
"engine/builtin/stream/promises.mjs": "import{a as o}from\"../../chunks/chunk-
|
|
5507
|
+
"engine/builtin/stream.mjs": "import{a as p}from\"../chunks/chunk-MDRNMNJQ.mjs\";import{a as s}from\"../chunks/chunk-4Y6DVSR7.mjs\";import\"../chunks/chunk-2PJDHVIE.mjs\";import\"../chunks/chunk-QMKSQR7V.mjs\";import{e as o,o as r}from\"../chunks/chunk-IQ3JZKJB.mjs\";r();var e=o(p()),t=o(s());Object.defineProperty(e.default,\"promises\",{value:t.default,enumerable:!0,configurable:!0,writable:!0});var a=e.default,x=e.default.ReadableState;var d=e.default._fromList;var n=e.default.from;var i=e.default.fromWeb;var c=e.default.toWeb;var m=e.default.wrap;var b=e.default._uint8ArrayToBuffer;var l=e.default._isUint8Array;var f=e.default.isDisturbed;var u=e.default.isErrored;var y=e.default.isReadable;var h=e.default.Readable;var A=e.default.Writable;var R=e.default.Duplex;var S=e.default.Transform;var T=e.default.PassThrough;var W=e.default.addAbortSignal;var _=e.default.finished;var g=e.default.destroy;var D=e.default.pipeline;var w=e.default.compose;var P=e.default.Stream;var v=e.default.promises;export{R as Duplex,T as PassThrough,h as Readable,x as ReadableState,P as Stream,S as Transform,A as Writable,d as _fromList,l as _isUint8Array,b as _uint8ArrayToBuffer,W as addAbortSignal,w as compose,a as default,g as destroy,_ as finished,n as from,i as fromWeb,f as isDisturbed,u as isErrored,y as isReadable,D as pipeline,v as promises,c as toWeb,m as wrap};\n",
|
|
5508
|
+
"engine/builtin/stream/promises.mjs": "import{a as o}from\"../../chunks/chunk-4Y6DVSR7.mjs\";import\"../../chunks/chunk-2PJDHVIE.mjs\";import\"../../chunks/chunk-QMKSQR7V.mjs\";import{e as i,o as p}from\"../../chunks/chunk-IQ3JZKJB.mjs\";p();var e=i(o()),t=e.default,r=e.default.finished;var n=e.default.pipeline;export{t as default,r as finished,n as pipeline};\n",
|
|
5509
5509
|
"engine/builtin/stream/web.mjs": "import{a as t,b as a,c as r,d as o,e as l,f as u,g as n,h as s,i as d,j as m,k as p,l as x,m as S,n as b}from\"../../chunks/chunk-PHIOMQ3T.mjs\";import{o as e}from\"../../chunks/chunk-IQ3JZKJB.mjs\";e();var R=b,f=m;var v=p;var c=r;var i=d;var B=o;var g=a;var C=s;var D=t;var y=x;var W=S;var O=l;var Q=n;var T=u;export{f as ByteLengthQueuingStrategy,v as CountQueuingStrategy,c as ReadableByteStreamController,i as ReadableStream,B as ReadableStreamBYOBReader,g as ReadableStreamBYOBRequest,C as ReadableStreamDefaultController,D as ReadableStreamDefaultReader,y as TransformStream,W as TransformStreamDefaultController,O as WritableStream,Q as WritableStreamDefaultController,T as WritableStreamDefaultWriter,R as default};\n",
|
|
5510
5510
|
"engine/builtin/string_decoder.mjs": "import{b as t}from\"../chunks/chunk-2PJDHVIE.mjs\";import{e as o,o as r}from\"../chunks/chunk-IQ3JZKJB.mjs\";r();var e=o(t()),d=e.default,p=e.default.StringDecoder;export{p as StringDecoder,d as default};\n",
|
|
5511
5511
|
"engine/builtin/timers.mjs": "import{a as i,c as y,e as j,m as process,o as f}from\"../chunks/chunk-IQ3JZKJB.mjs\";var x=y(h=>{f();(function(e,s){\"use strict\";if(e.setImmediate)return;var d=1,v={},I=!1,p=e.document,c;function k(t){typeof t!=\"function\"&&(t=new Function(\"\"+t));for(var a=new Array(arguments.length-1),n=0;n<a.length;n++)a[n]=arguments[n+1];var S={callback:t,args:a};return v[d]=S,c(d),d++}i(k,\"setImmediate\");function g(t){delete v[t]}i(g,\"clearImmediate\");function w(t){var a=t.callback,n=t.args;switch(n.length){case 0:a();break;case 1:a(n[0]);break;case 2:a(n[0],n[1]);break;case 3:a(n[0],n[1],n[2]);break;default:a.apply(s,n);break}}i(w,\"run\");function l(t){if(I)setTimeout(l,0,t);else{var a=v[t];if(a){I=!0;try{w(a)}finally{g(t),I=!1}}}}i(l,\"runIfPresent\");function C(){c=i(function(t){process.nextTick(function(){l(t)})},\"registerImmediate\")}i(C,\"installNextTickImplementation\");function E(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(\"\",\"*\"),e.onmessage=a,t}}i(E,\"canUsePostMessage\");function P(){var t=\"setImmediate$\"+Math.random()+\"$\",a=i(function(n){n.source===e&&typeof n.data==\"string\"&&n.data.indexOf(t)===0&&l(+n.data.slice(t.length))},\"onGlobalMessage\");e.addEventListener?e.addEventListener(\"message\",a,!1):e.attachEvent(\"onmessage\",a),c=i(function(n){e.postMessage(t+n,\"*\")},\"registerImmediate\")}i(P,\"installPostMessageImplementation\");function O(){var t=new MessageChannel;t.port1.onmessage=function(a){var n=a.data;l(n)},c=i(function(a){t.port2.postMessage(a)},\"registerImmediate\")}i(O,\"installMessageChannelImplementation\");function A(){var t=p.documentElement;c=i(function(a){var n=p.createElement(\"script\");n.onreadystatechange=function(){l(a),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)},\"registerImmediate\")}i(A,\"installReadyStateChangeImplementation\");function F(){c=i(function(t){setTimeout(l,0,t)},\"registerImmediate\")}i(F,\"installSetTimeoutImplementation\");var u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,{}.toString.call(e.process)===\"[object process]\"?C():E()?P():e.MessageChannel?O():p&&\"onreadystatechange\"in p.createElement(\"script\")?A():F(),u.setImmediate=k,u.clearImmediate=g})(typeof self>\"u\"?typeof globalThis>\"u\"?h:globalThis:self)});var M=y(o=>{f();var T=typeof globalThis<\"u\"&&globalThis||typeof self<\"u\"&&self||window,_=Function.prototype.apply;o.setTimeout=function(){return new m(_.call(setTimeout,T,arguments),clearTimeout)};o.setInterval=function(){return new m(_.call(setInterval,T,arguments),clearInterval)};o.clearTimeout=o.clearInterval=function(e){e&&e.close()};function m(e,s){this._id=e,this._clearFn=s}i(m,\"Timeout\");m.prototype.unref=m.prototype.ref=function(){};m.prototype.close=function(){this._clearFn.call(T,this._id)};o.enroll=function(e,s){clearTimeout(e._idleTimeoutId),e._idleTimeout=s};o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1};o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var s=e._idleTimeout;s>=0&&(e._idleTimeoutId=setTimeout(i(function(){e._onTimeout&&e._onTimeout()},\"onTimeout\"),s))};x();o.setImmediate=typeof self<\"u\"&&self.setImmediate||typeof globalThis<\"u\"&&globalThis.setImmediate||o&&o.setImmediate;o.clearImmediate=typeof self<\"u\"&&self.clearImmediate||typeof globalThis<\"u\"&&globalThis.clearImmediate||o&&o.clearImmediate});f();var r=j(M()),B=r.default,G=r.default.setTimeout;var N=r.default.setInterval;var U=r.default.clearInterval;var z=r.default.clearTimeout;var D=r.default.enroll;var J=r.default.unenroll;var K=r.default.active;var Q=r.default._unrefActive;var V=r.default.setImmediate;var W=r.default.clearImmediate;export{Q as _unrefActive,K as active,W as clearImmediate,U as clearInterval,z as clearTimeout,B as default,D as enroll,V as setImmediate,N as setInterval,G as setTimeout,J as unenroll};\n",
|
|
5512
5512
|
"engine/builtin/timers/promises.mjs": "import{a as n,o as c}from\"../../chunks/chunk-IQ3JZKJB.mjs\";c();c();var s=class extends Error{static{n(this,\"AbortError\")}constructor(e){super(\"The operation was aborted\",e===void 0?void 0:{cause:e}),this.name=\"AbortError\",this.code=\"ABORT_ERR\"}};function b(t,e,o){let r=new TypeError(`The \"${t}\" argument must be ${e}. Received ${typeof o}`);return r.code=\"ERR_INVALID_ARG_TYPE\",r}n(b,\"invalid\");function m(t){if(t===null||typeof t!=\"object\")throw b(\"options\",\"of type object\",t);let{signal:e,ref:o=!0}=t;if(e!==void 0&&(e===null||typeof e!=\"object\"||!(\"aborted\"in e)))throw b(\"options.signal\",\"an instance of AbortSignal\",e);if(typeof o!=\"boolean\")throw b(\"options.ref\",\"of type boolean\",o);return e}n(m,\"validate\");function p(t,e,o,r){let i;try{i=m(r)}catch(a){return Promise.reject(a)}return i?.aborted?Promise.reject(new s(i.reason)):new Promise((a,u)=>{let l=n(()=>{e(f),u(new s(i.reason))},\"abort\"),f=t(()=>{i?.removeEventListener(\"abort\",l),a(o)});i?.addEventListener(\"abort\",l,{once:!0})})}n(p,\"schedule\");function h(t=1,e=void 0,o={}){return p(r=>globalThis.setTimeout(r,t),r=>globalThis.clearTimeout(r),e,o)}n(h,\"setTimeout\");function w(t=void 0,e={}){return p(o=>globalThis.setImmediate(o),o=>globalThis.clearImmediate(o),t,e)}n(w,\"setImmediate\");async function*T(t=1,e=void 0,o={}){let r=m(o);if(r?.aborted)throw new s(r.reason);let i=0,a,u=globalThis.setInterval(()=>{i++,a?.()},t),l=n(()=>a?.(),\"abort\");r?.addEventListener(\"abort\",l,{once:!0});try{for(;;){if(i===0&&!r?.aborted&&await new Promise(f=>a=f),a=void 0,r?.aborted)throw new s(r.reason);for(;i>0;i--)yield e}}finally{globalThis.clearInterval(u),r?.removeEventListener(\"abort\",l)}}n(T,\"setInterval\");var v=Object.freeze({wait:n((t,e={})=>h(t,void 0,e),\"wait\"),yield:n(()=>w(),\"yield\")}),d={scheduler:v,setImmediate:w,setInterval:T,setTimeout:h};var E=d,R=d.scheduler;var j=d.setImmediate;var L=d.setInterval;var P=d.setTimeout;export{E as default,R as scheduler,j as setImmediate,L as setInterval,P as setTimeout};\n",
|
|
5513
5513
|
"engine/builtin/url.mjs": "import{a as ht}from\"../chunks/chunk-3CZWHKXF.mjs\";import{a as ye,e as ct,m as ar,n as ir}from\"../chunks/chunk-WHKCMYPO.mjs\";import{a as i,c as W,e as nr,o as x}from\"../chunks/chunk-IQ3JZKJB.mjs\";var or=W(()=>{x()});var le=W((Wa,Ar)=>{x();var He=typeof Map==\"function\"&&Map.prototype,Pe=Object.getOwnPropertyDescriptor&&He?Object.getOwnPropertyDescriptor(Map.prototype,\"size\"):null,ve=He&&Pe&&typeof Pe.get==\"function\"?Pe.get:null,fr=He&&Map.prototype.forEach,ze=typeof Set==\"function\"&&Set.prototype,qe=Object.getOwnPropertyDescriptor&&ze?Object.getOwnPropertyDescriptor(Set.prototype,\"size\"):null,ge=ze&&qe&&typeof qe.get==\"function\"?qe.get:null,lr=ze&&Set.prototype.forEach,pt=typeof WeakMap==\"function\"&&WeakMap.prototype,ie=pt?WeakMap.prototype.has:null,dt=typeof WeakSet==\"function\"&&WeakSet.prototype,oe=dt?WeakSet.prototype.has:null,yt=typeof WeakRef==\"function\"&&WeakRef.prototype,ur=yt?WeakRef.prototype.deref:null,mt=Boolean.prototype.valueOf,vt=Object.prototype.toString,gt=Function.prototype.toString,wt=String.prototype.match,Ke=String.prototype.slice,V=String.prototype.replace,St=String.prototype.toUpperCase,sr=String.prototype.toLowerCase,wr=RegExp.prototype.test,cr=Array.prototype.concat,N=Array.prototype.join,Ot=Array.prototype.slice,hr=Math.floor,$e=typeof BigInt==\"function\"?BigInt.prototype.valueOf:null,Fe=Object.getOwnPropertySymbols,Ue=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?Symbol.prototype.toString:null,re=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"object\",fe=typeof Symbol==\"function\"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,Sr=Object.prototype.propertyIsEnumerable,pr=(typeof Reflect==\"function\"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function dr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||wr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r==\"number\"){var n=r<0?-hr(-r):hr(r);if(n!==r){var a=String(n),o=Ke.call(e,a.length+1);return V.call(a,t,\"$&_\")+\".\"+V.call(V.call(o,/([0-9]{3})/g,\"$&_\"),/_$/,\"\")}}return V.call(e,t,\"$&_\")}i(dr,\"addNumericSeparator\");var We=or(),yr=We.custom,mr=br(yr)?yr:null,Or={__proto__:null,double:'\"',single:\"'\"},xt={__proto__:null,double:/([\"\\\\])/g,single:/(['\\\\])/g};Ar.exports=i(function r(e,t,n,a){var o=t||{};if(Q(o,\"quoteStyle\")&&!Q(Or,o.quoteStyle))throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');if(Q(o,\"maxStringLength\")&&(typeof o.maxStringLength==\"number\"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');var l=Q(o,\"customInspect\")?o.customInspect:!0;if(typeof l!=\"boolean\"&&l!==\"symbol\")throw new TypeError(\"option \\\"customInspect\\\", if provided, must be `true`, `false`, or `'symbol'`\");if(Q(o,\"indent\")&&o.indent!==null&&o.indent!==\" \"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');if(Q(o,\"numericSeparator\")&&typeof o.numericSeparator!=\"boolean\")throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');var f=o.numericSeparator;if(typeof e>\"u\")return\"undefined\";if(e===null)return\"null\";if(typeof e==\"boolean\")return e?\"true\":\"false\";if(typeof e==\"string\")return Lr(e,o);if(typeof e==\"number\"){if(e===0)return 1/0/e>0?\"0\":\"-0\";var u=String(e);return f?dr(e,u):u}if(typeof e==\"bigint\"){var s=String(e)+\"n\";return f?dr(e,s):s}var h=typeof o.depth>\"u\"?5:o.depth;if(typeof n>\"u\"&&(n=0),n>=h&&h>0&&typeof e==\"object\")return Ne(e)?\"[Array]\":\"[Object]\";var y=Nt(o,n);if(typeof a>\"u\")a=[];else if(Er(a,e)>=0)return\"[Circular]\";function p(R,M,$){if(M&&(a=Ot.call(a),a.push(M)),$){var U={depth:o.depth};return Q(o,\"quoteStyle\")&&(U.quoteStyle=o.quoteStyle),r(R,U,n+1,a)}return r(R,o,n+1,a)}if(i(p,\"inspect\"),typeof e==\"function\"&&!vr(e)){var c=_t(e),d=me(e,p);return\"[Function\"+(c?\": \"+c:\" (anonymous)\")+\"]\"+(d.length>0?\" { \"+N.call(d,\", \")+\" }\":\"\")}if(br(e)){var m=re?V.call(String(e),/^(Symbol\\(.*\\))_[^)]*$/,\"$1\"):Ue.call(e);return typeof e==\"object\"&&!re?ae(m):m}if($t(e)){for(var w=\"<\"+sr.call(String(e.nodeName)),S=e.attributes||[],v=0;v<S.length;v++)w+=\" \"+S[v].name+\"=\"+xr(bt(S[v].value),\"double\",o);return w+=\">\",e.childNodes&&e.childNodes.length&&(w+=\"...\"),w+=\"</\"+sr.call(String(e.nodeName))+\">\",w}if(Ne(e)){if(e.length===0)return\"[]\";var O=me(e,p);return y&&!Wt(O)?\"[\"+Be(O,y)+\"]\":\"[ \"+N.call(O,\", \")+\" ]\"}if(Lt(e)){var A=me(e,p);return!(\"cause\"in Error.prototype)&&\"cause\"in e&&!Sr.call(e,\"cause\")?\"{ [\"+String(e)+\"] \"+N.call(cr.call(\"[cause]: \"+p(e.cause),A),\", \")+\" }\":A.length===0?\"[\"+String(e)+\"]\":\"{ [\"+String(e)+\"] \"+N.call(A,\", \")+\" }\"}if(typeof e==\"object\"&&l){if(mr&&typeof e[mr]==\"function\"&&We)return We(e,{depth:h-n});if(l!==\"symbol\"&&typeof e.inspect==\"function\")return e.inspect()}if(Dt(e)){var g=[];return fr&&fr.call(e,function(R,M){g.push(p(M,e,!0)+\" => \"+p(R,e))}),gr(\"Map\",ve.call(e),g,y)}if(Ft(e)){var L=[];return lr&&lr.call(e,function(R){L.push(p(R,e))}),gr(\"Set\",ge.call(e),L,y)}if(Pt(e))return Me(\"WeakMap\");if(Mt(e))return Me(\"WeakSet\");if(qt(e))return Me(\"WeakRef\");if(Tt(e))return ae(p(Number(e)));if(Ct(e))return ae(p($e.call(e)));if(Rt(e))return ae(mt.call(e));if(At(e))return ae(p(String(e)));if(typeof window<\"u\"&&e===window)return\"{ [object Window] }\";if(typeof globalThis<\"u\"&&e===globalThis||typeof globalThis<\"u\"&&e===globalThis)return\"{ [object globalThis] }\";if(!Et(e)&&!vr(e)){var D=me(e,p),C=pr?pr(e)===Object.prototype:e instanceof Object||e.constructor===Object,T=e instanceof Object?\"\":\"null prototype\",q=!C&&fe&&Object(e)===e&&fe in e?Ke.call(J(e),8,-1):T?\"Object\":\"\",K=C||typeof e.constructor!=\"function\"?\"\":e.constructor.name?e.constructor.name+\" \":\"\",F=K+(q||T?\"[\"+N.call(cr.call([],q||[],T||[]),\": \")+\"] \":\"\");return D.length===0?F+\"{}\":y?F+\"{\"+Be(D,y)+\"}\":F+\"{ \"+N.call(D,\", \")+\" }\"}return String(e)},\"inspect_\");function xr(r,e,t){var n=t.quoteStyle||e,a=Or[n];return a+r+a}i(xr,\"wrapQuotes\");function bt(r){return V.call(String(r),/\"/g,\""\")}i(bt,\"quote\");function Y(r){return!fe||!(typeof r==\"object\"&&(fe in r||typeof r[fe]<\"u\"))}i(Y,\"canTrustToString\");function Ne(r){return J(r)===\"[object Array]\"&&Y(r)}i(Ne,\"isArray\");function Et(r){return J(r)===\"[object Date]\"&&Y(r)}i(Et,\"isDate\");function vr(r){return J(r)===\"[object RegExp]\"&&Y(r)}i(vr,\"isRegExp\");function Lt(r){return J(r)===\"[object Error]\"&&Y(r)}i(Lt,\"isError\");function At(r){return J(r)===\"[object String]\"&&Y(r)}i(At,\"isString\");function Tt(r){return J(r)===\"[object Number]\"&&Y(r)}i(Tt,\"isNumber\");function Rt(r){return J(r)===\"[object Boolean]\"&&Y(r)}i(Rt,\"isBoolean\");function br(r){if(re)return r&&typeof r==\"object\"&&r instanceof Symbol;if(typeof r==\"symbol\")return!0;if(!r||typeof r!=\"object\"||!Ue)return!1;try{return Ue.call(r),!0}catch{}return!1}i(br,\"isSymbol\");function Ct(r){if(!r||typeof r!=\"object\"||!$e)return!1;try{return $e.call(r),!0}catch{}return!1}i(Ct,\"isBigInt\");var It=Object.prototype.hasOwnProperty||function(r){return r in this};function Q(r,e){return It.call(r,e)}i(Q,\"has\");function J(r){return vt.call(r)}i(J,\"toStr\");function _t(r){if(r.name)return r.name;var e=wt.call(gt.call(r),/^function\\s*([\\w$]+)/);return e?e[1]:null}i(_t,\"nameOf\");function Er(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}i(Er,\"indexOf\");function Dt(r){if(!ve||!r||typeof r!=\"object\")return!1;try{ve.call(r);try{ge.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}i(Dt,\"isMap\");function Pt(r){if(!ie||!r||typeof r!=\"object\")return!1;try{ie.call(r,ie);try{oe.call(r,oe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}i(Pt,\"isWeakMap\");function qt(r){if(!ur||!r||typeof r!=\"object\")return!1;try{return ur.call(r),!0}catch{}return!1}i(qt,\"isWeakRef\");function Ft(r){if(!ge||!r||typeof r!=\"object\")return!1;try{ge.call(r);try{ve.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}i(Ft,\"isSet\");function Mt(r){if(!oe||!r||typeof r!=\"object\")return!1;try{oe.call(r,oe);try{ie.call(r,ie)}catch{return!0}return r instanceof WeakSet}catch{}return!1}i(Mt,\"isWeakSet\");function $t(r){return!r||typeof r!=\"object\"?!1:typeof HTMLElement<\"u\"&&r instanceof HTMLElement?!0:typeof r.nodeName==\"string\"&&typeof r.getAttribute==\"function\"}i($t,\"isElement\");function Lr(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n=\"... \"+t+\" more character\"+(t>1?\"s\":\"\");return Lr(Ke.call(r,0,e.maxStringLength),e)+n}var a=xt[e.quoteStyle||\"single\"];a.lastIndex=0;var o=V.call(V.call(r,a,\"\\\\$1\"),/[\\x00-\\x1f]/g,Ut);return xr(o,\"single\",e)}i(Lr,\"inspectString\");function Ut(r){var e=r.charCodeAt(0),t={8:\"b\",9:\"t\",10:\"n\",12:\"f\",13:\"r\"}[e];return t?\"\\\\\"+t:\"\\\\x\"+(e<16?\"0\":\"\")+St.call(e.toString(16))}i(Ut,\"lowbyte\");function ae(r){return\"Object(\"+r+\")\"}i(ae,\"markBoxed\");function Me(r){return r+\" { ? }\"}i(Me,\"weakCollectionOf\");function gr(r,e,t,n){var a=n?Be(t,n):N.call(t,\", \");return r+\" (\"+e+\") {\"+a+\"}\"}i(gr,\"collectionOf\");function Wt(r){for(var e=0;e<r.length;e++)if(Er(r[e],`\n`)>=0)return!1;return!0}i(Wt,\"singleLineValues\");function Nt(r,e){var t;if(r.indent===\" \")t=\" \";else if(typeof r.indent==\"number\"&&r.indent>0)t=N.call(Array(r.indent+1),\" \");else return null;return{base:t,prev:N.call(Array(e+1),t)}}i(Nt,\"getIndent\");function Be(r,e){if(r.length===0)return\"\";var t=`\n`+e.prev+e.base;return t+N.call(r,\",\"+t)+`\n`+e.prev}i(Be,\"indentedJoin\");function me(r,e){var t=Ne(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=Q(r,a)?e(r[a],r):\"\"}var o=typeof Fe==\"function\"?Fe(r):[],l;if(re){l={};for(var f=0;f<o.length;f++)l[\"$\"+o[f]]=o[f]}for(var u in r)Q(r,u)&&(t&&String(Number(u))===u&&u<r.length||re&&l[\"$\"+u]instanceof Symbol||(wr.call(/[^\\w$]/,u)?n.push(e(u,r)+\": \"+e(r[u],r)):n.push(u+\": \"+e(r[u],r))));if(typeof Fe==\"function\")for(var s=0;s<o.length;s++)Sr.call(r,o[s])&&n.push(\"[\"+e(o[s])+\"]: \"+e(r[o[s]],r));return n}i(me,\"arrObjKeys\")});var Rr=W((Ha,Tr)=>{\"use strict\";x();var Bt=le(),Ht=ye(),we=i(function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},\"listGetNode\"),zt=i(function(r,e){if(r){var t=we(r,e);return t&&t.value}},\"listGet\"),Kt=i(function(r,e,t){var n=we(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},\"listSet\"),Gt=i(function(r,e){return r?!!we(r,e):!1},\"listHas\"),Qt=i(function(r,e){if(r)return we(r,e,!0)},\"listDelete\");Tr.exports=i(function(){var e,t={assert:i(function(n){if(!t.has(n))throw new Ht(\"Side channel does not contain \"+Bt(n))},\"assert\"),delete:i(function(n){var a=Qt(e,n);return a&&e&&!e.next&&(e=void 0),!!a},\"delete\"),get:i(function(n){return zt(e,n)},\"get\"),has:i(function(n){return Gt(e,n)},\"has\"),set:i(function(n,a){e||(e={next:void 0}),Kt(e,n,a)},\"set\")};return t},\"getSideChannelList\")});var Ge=W((Ga,Ir)=>{\"use strict\";x();var Vt=ar(),ue=ir(),Jt=le(),Zt=ye(),Cr=Vt(\"%Map%\",!0),Xt=ue(\"Map.prototype.get\",!0),Yt=ue(\"Map.prototype.set\",!0),kt=ue(\"Map.prototype.has\",!0),jt=ue(\"Map.prototype.delete\",!0),en=ue(\"Map.prototype.size\",!0);Ir.exports=!!Cr&&i(function(){var e,t={assert:i(function(n){if(!t.has(n))throw new Zt(\"Side channel does not contain \"+Jt(n))},\"assert\"),delete:i(function(n){if(e){var a=jt(e,n);return en(e)===0&&(e=void 0),a}return!1},\"delete\"),get:i(function(n){if(e)return Xt(e,n)},\"get\"),has:i(function(n){return e?kt(e,n):!1},\"has\"),set:i(function(n,a){e||(e=new Cr),Yt(e,n,a)},\"set\")};return t},\"getSideChannelMap\")});var Dr=W((Ja,_r)=>{\"use strict\";x();var rn=ar(),Oe=ir(),tn=le(),Se=Ge(),nn=ye(),te=rn(\"%WeakMap%\",!0),an=Oe(\"WeakMap.prototype.get\",!0),on=Oe(\"WeakMap.prototype.set\",!0),fn=Oe(\"WeakMap.prototype.has\",!0),ln=Oe(\"WeakMap.prototype.delete\",!0);_r.exports=te?i(function(){var e,t,n={assert:i(function(a){if(!n.has(a))throw new nn(\"Side channel does not contain \"+tn(a))},\"assert\"),delete:i(function(a){if(te&&a&&(typeof a==\"object\"||typeof a==\"function\")){if(e)return ln(e,a)}else if(Se&&t)return t.delete(a);return!1},\"delete\"),get:i(function(a){return te&&a&&(typeof a==\"object\"||typeof a==\"function\")&&e?an(e,a):t&&t.get(a)},\"get\"),has:i(function(a){return te&&a&&(typeof a==\"object\"||typeof a==\"function\")&&e?fn(e,a):!!t&&t.has(a)},\"has\"),set:i(function(a,o){te&&a&&(typeof a==\"object\"||typeof a==\"function\")?(e||(e=new te),on(e,a,o)):Se&&(t||(t=Se()),t.set(a,o))},\"set\")};return n},\"getSideChannelWeakMap\"):Se});var xe=W((Ya,Pr)=>{\"use strict\";x();var un=ye(),sn=le(),cn=Rr(),hn=Ge(),pn=Dr(),dn=pn||hn||cn;Pr.exports=i(function(){var e,t={assert:i(function(n){if(!t.has(n)){var a=n&&Object(n)===n?\"the given object key\":sn(n);throw new un(\"Side channel does not contain \"+a)}},\"assert\"),delete:i(function(n){return!!e&&e.delete(n)},\"delete\"),get:i(function(n){return e&&e.get(n)},\"get\"),has:i(function(n){return!!e&&e.has(n)},\"has\"),set:i(function(n,a){e||(e=dn()),e.set(n,a)},\"set\")};return t},\"getSideChannel\")});var Ee=W((ei,Mr)=>{\"use strict\";x();var qr=String.prototype.replace,Fr=/%20/g,be={RFC1738:\"RFC1738\",RFC3986:\"RFC3986\",WHATWG:\"WHATWG\"};Mr.exports={default:be.RFC3986,formatters:{RFC1738:i(function(r){return qr.call(r,Fr,\"+\")},\"RFC1738\"),RFC3986:i(function(r){return String(r)},\"RFC3986\"),WHATWG:i(function(r){return qr.call(r,Fr,\"+\")},\"WHATWG\")},RFC1738:be.RFC1738,RFC3986:be.RFC3986,WHATWG:be.WHATWG}});var Xe=W((ni,Hr)=>{\"use strict\";x();var Qe=Ee(),Ce=xe(),$r=ct(),Te=Object.prototype.hasOwnProperty,H=Array.isArray,Ie=Ce(),Z=i(function(e,t){return Ie.set(e,t),e},\"markOverflow\"),k=i(function(e){return Ie.has(e)},\"isOverflow\"),se=i(function(e){return Ie.get(e)},\"getMaxIndex\"),Je=i(function(e,t){Ie.set(e,t)},\"setMaxIndex\"),Ze=Ce(),Le=i(function(e,t){return Ze.set(e,t),e},\"markConflict\"),Ve=i(function(e){return Ze.has(e)},\"isConflict\"),Ur=i(function(e){return Ze.get(e)},\"getConflictIndex\"),B=(function(){for(var r=[],e=0;e<256;++e)r[r.length]=\"%\"+((e<16?\"0\":\"\")+e.toString(16)).toUpperCase();return r})(),yn=i(function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(H(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<\"u\"&&(a[a.length]=n[o]);t.obj[t.prop]=a}}},\"compactQueue\"),j=i(function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<\"u\"&&(n[a]=e[a]);return n},\"arrayToObject\"),Re=i(function(e,t,n){t===\"__proto__\"&&$r?$r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},\"setProperty\"),mn=i(function(e,t){for(var n=t,a=Object.keys(e),o=0;o<a.length;++o){var l=parseInt(a[o],10);String(l)===a[o]&&l>n&&(n=l)}return n},\"maxNumericIndex\"),Wr=i(function(e){for(var t=0,n=0;n<e.length;++n)Te.call(e,n)&&(t+=1);return t},\"countElements\"),Nr=i(function(e,t,n){var a=[e,t];if(n&&typeof n.arrayLimit==\"number\"&&a.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError(\"Array limit exceeded. Only \"+n.arrayLimit+\" element\"+(n.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");return Z(j(a,n),1)}return a},\"limitedPair\"),vn=i(function r(e,t,n){if(!t)return e;if(typeof t!=\"object\"&&typeof t!=\"function\"){if(H(e)){var a=e.length;if(n&&typeof n.arrayLimit==\"number\"&&Wr(e)>=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError(\"Array limit exceeded. Only \"+n.arrayLimit+\" element\"+(n.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");return Z(j(e.concat(t),n),a)}e[a]=t}else if(e&&typeof e==\"object\")if(k(e)){var o=se(e)+1;e[o]=t,Je(e,o)}else if(n&&n.strictMerge&&Ve(e)){var l=Ur(e)+1;if(n.throwOnLimitExceeded&&typeof n.arrayLimit==\"number\"&&l>=n.arrayLimit)throw new RangeError(\"Array limit exceeded. Only \"+n.arrayLimit+\" element\"+(n.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");e[l]=t,Le(e,l)}else if(n&&n.strictMerge){var f=Nr(e,t,n);return H(f)?Le(f,1):f}else(n&&(n.plainObjects||n.allowPrototypes)||!Te.call(Object.prototype,t))&&(e[t]=!0);else return Nr(e,t,n);return e}if(!e||typeof e!=\"object\"){if(k(t)){for(var u=Object.keys(t),s=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},h=0;h<u.length;h++){var y=parseInt(u[h],10);s[y+1]=t[u[h]]}return Z(s,se(t)+1)}var p=[e].concat(t);if(n&&typeof n.arrayLimit==\"number\"&&p.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError(\"Array limit exceeded. Only \"+n.arrayLimit+\" element\"+(n.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");return Z(j(p,n),p.length-1)}return p}var c=e;if(H(e)&&!H(t)&&(c=j(e,n),Ve(e)&&Le(c,e.length-1)),H(e)&&H(t)){if(t.forEach(function(d,m){if(Te.call(e,m)){var w=e[m];w&&typeof w==\"object\"&&d&&typeof d==\"object\"?e[m]=r(w,d,n):e[e.length]=d}else e[m]=d}),n&&typeof n.arrayLimit==\"number\"&&Wr(e)>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError(\"Array limit exceeded. Only \"+n.arrayLimit+\" element\"+(n.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");return Z(j(e,n),e.length-1)}return e}return Object.keys(t).reduce(function(d,m){var w=t[m];if(Te.call(d,m)?Re(d,m,r(d[m],w,n)):Re(d,m,w),k(t)&&!k(d)&&Z(d,mn(d,se(t))),k(d)){var S=parseInt(m,10);String(S)===m&&S>=0&&S>se(d)&&Je(d,S)}if(Ve(d)){var v=parseInt(m,10);String(v)===m&&v>Ur(d)&&Le(d,v)}return d},c)},\"merge\"),gn=i(function(e,t){return Object.keys(t).reduce(function(n,a){return Re(n,a,t[a]),n},e)},\"assignSingleSource\"),wn=i(function(r,e,t){if(typeof r==\"string\"&&r.indexOf(\"%\")===-1)return r.indexOf(\"+\")===-1?r:r.replace(/\\+/g,\" \");var n=r.replace(/\\+/g,\" \");if(t===\"iso-8859-1\")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},\"decode\"),Sn=typeof Symbol==\"function\"&&typeof Symbol.toPrimitive==\"symbol\",On=Array.prototype.join,xn=Array.prototype.toString,bn=Object.prototype.toString,Br=i(function r(e,t){if(!e||typeof e!=\"object\"&&typeof e!=\"function\"||Sn&&e[Symbol.toPrimitive]!=null)return e;if(H(e)&&e.toString===xn&&e.join===On){var n=t||Ce();if(n.has(e))return\"\";n.set(e,!0);for(var a,o=0;o<e.length;o+=1){var l=e[o],f=r(l,n);if(!a&&f!==l){a=[];for(var u=0;u<o;u+=1)a[u]=e[u]}a&&(a[o]=f)}return n.delete(e),a||e}if(typeof e.toString==\"function\")return e;var s=e.valueOf;if(typeof s==\"function\"){var h=s.call(e);if(!h||typeof h!=\"object\"&&typeof h!=\"function\")return String(h)}return bn.call(e)},\"toCoercible\"),Ae=1024,En=i(function(e,t,n,a,o){if(e.length===0)return e;var l=e;if(typeof e==\"symbol\"?l=Symbol.prototype.toString.call(e):typeof e!=\"string\"&&(l=String(Br(e))),n===\"iso-8859-1\")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(m){return\"%26%23\"+parseInt(m.slice(2),16)+\"%3B\"}).replace(/\\+/g,\"%2B\");for(var f=\"\",u=0;u<l.length;u+=Ae){var s=l.length>=Ae?l.slice(u,u+Ae):l;if(u+Ae<l.length){var h=s.charCodeAt(s.length-1);h>=55296&&h<=56319&&(s=s.slice(0,-1),u-=1)}for(var y=[],p=0;p<s.length;++p){var c=s.charCodeAt(p);if(c===45||c===46||c===95||c===126&&o!==Qe.WHATWG||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Qe.RFC1738&&(c===40||c===41)||o===Qe.WHATWG&&c===42){y[y.length]=s.charAt(p);continue}if(c<128){y[y.length]=B[c];continue}if(c<2048){y[y.length]=B[192|c>>6]+B[128|c&63];continue}if(c<55296||c>=57344){y[y.length]=B[224|c>>12]+B[128|c>>6&63]+B[128|c&63];continue}var d=s.charCodeAt(p+1);c<=56319&&d>=56320&&d<=57343?(p+=1,c=65536+((c&1023)<<10|d&1023),y[y.length]=B[240|c>>18]+B[128|c>>12&63]+B[128|c>>6&63]+B[128|c&63]):y[y.length]=\"%EF%BF%BD\"}f+=y.join(\"\")}return f},\"encode\"),Ln=i(function(e){for(var t=[{obj:{o:e},prop:\"o\"}],n=Ce(),a=0;a<t.length;++a)for(var o=t[a],l=o.obj[o.prop],f=Object.keys(l),u=0;u<f.length;++u){var s=f[u],h=l[s];typeof h==\"object\"&&h!==null&&!n.has(h)&&(t[t.length]={obj:l,prop:s},n.set(h,!0))}return yn(t),e},\"compact\"),An=i(function(e){return Object.prototype.toString.call(e)===\"[object RegExp]\"},\"isRegExp\"),Tn=i(function(e){return!e||typeof e!=\"object\"?!1:!!(e.constructor&&typeof e.constructor.isBuffer==\"function\"&&e.constructor.isBuffer(e))},\"isBuffer\"),Rn=i(function(e,t,n,a,o){if(k(e)){if(o)throw new RangeError(\"Array limit exceeded. Only \"+n+\" element\"+(n===1?\"\":\"s\")+\" allowed in an array.\");for(var l=H(t)?t:[t],f=se(e),u=0;u<l.length;++u)f+=1,e[f]=l[u];return Je(e,f),e}var s=[].concat(e,t);if(s.length>n){if(o)throw new RangeError(\"Array limit exceeded. Only \"+n+\" element\"+(n===1?\"\":\"s\")+\" allowed in an array.\");return Z(j(s,{plainObjects:a}),s.length-1)}return s},\"combine\"),Cn=i(function(e,t){if(H(e)){for(var n=[],a=0;a<e.length;a+=1)n[n.length]=t(e[a]);return n}return t(e)},\"maybeMap\");Hr.exports={arrayToObject:j,assign:gn,combine:Rn,compact:Ln,decode:wn,encode:En,isBuffer:Tn,isOverflow:k,isRegExp:An,markOverflow:Z,maybeMap:Cn,merge:vn,setProperty:Re,toCoercible:Br}});var Zr=W((oi,Jr)=>{\"use strict\";x();var Gr=xe(),ce=Xe(),he=Ee(),zr=Object.prototype.hasOwnProperty,Qr={brackets:i(function(e){return e+\"[]\"},\"brackets\"),comma:\"comma\",indices:i(function(e,t){return e+\"[\"+t+\"]\"},\"indices\"),repeat:i(function(e){return e},\"repeat\")},z=Array.isArray,In=Array.prototype.push,Vr=i(function(r,e){In.apply(r,z(e)?e:[e])},\"pushToArray\"),_n=Date.prototype.toISOString,Kr=he.default,E={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:\"indices\",charset:\"utf-8\",charsetSentinel:!1,commaRoundTrip:!1,delimiter:\"&\",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:ce.encode,encodeValuesOnly:!1,filter:void 0,format:Kr,formatter:he.formatters[Kr],indices:!1,serializeDate:i(function(e){return _n.call(e)},\"serializeDate\"),skipNulls:!1,strictNullHandling:!1},Dn=i(function(e){return typeof e==\"string\"||typeof e==\"number\"||typeof e==\"boolean\"||typeof e==\"symbol\"||typeof e==\"bigint\"},\"isNonNullishPrimitive\"),Ye={},Pn=i(function r(e,t,n,a,o,l,f,u,s,h,y,p,c,d,m,w,S,v,O,A){var g=e;if(A>O)throw new RangeError(\"Input depth exceeded depth option of \"+O);for(var L=v,D=0,C=!1;(L=L.get(Ye))!==void 0&&!C;){var T=L.get(e);if(D+=1,typeof T<\"u\"){if(T===D)throw new RangeError(\"Cyclic object value\");C=!0}typeof L.get(Ye)>\"u\"&&(D=0)}if(g=typeof h==\"function\"?h(t,g):g,g instanceof Date?g=c(g):n===\"comma\"&&z(g)&&(g=ce.maybeMap(g,function(X){return X instanceof Date?c(X):X})),g===null){if(l)return m(s&&!w?s(t,E.encoder,S,\"key\",d):t);g=\"\"}if(Dn(g)||ce.isBuffer(g)){if(s){var q=w?t:s(t,E.encoder,S,\"key\",d);return[m(q)+\"=\"+m(s(g,E.encoder,S,\"value\",d))]}return[m(t)+\"=\"+m(String(g))]}var K=[];if(typeof g>\"u\")return K;var F;if(n===\"comma\"&&z(g))w&&s&&(g=ce.maybeMap(g,function(X){return X==null?X:s(X,E.encoder,S,\"value\",d)})),F=[{value:g.length>0?ce.toCoercible(g).join(\",\")||null:void 0}];else if(z(h))F=h;else{var R=Object.keys(g);F=y?R.sort(y):R}var M=String(t),$=a&&z(g)&&g.length===1?M+\"[]\":M;if(o&&z(g)&&g.length===0&&Object.keys(g).length===0)return m(s&&!w?s($,E.encoder,S,\"key\",d):$)+\"[]\";for(var U=0;U<F.length;++U){var G=F[U],rr=typeof G==\"object\"&&G&&typeof G.value<\"u\"?G.value:g[G];if(!(f&&rr===null)){var De=p&&u?String(G).replace(/\\./g,\"%2E\"):String(G),st=z(g)?typeof n==\"function\"?n($,De):$:$+(p?\".\"+De:\"[\"+De+\"]\");v.set(e,D);var tr=Gr();tr.set(Ye,v),Vr(K,r(rr,st,n,a,o,l,f,u,n===\"comma\"&&w&&z(g)?null:s,h,y,p,c,d,m,w,S,tr,O,A+1))}}return K},\"stringify\"),qn=i(function(e){if(!e)return E;if(typeof e.allowEmptyArrays<\"u\"&&typeof e.allowEmptyArrays!=\"boolean\")throw new TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(typeof e.encodeDotInKeys<\"u\"&&typeof e.encodeDotInKeys!=\"boolean\")throw new TypeError(\"`encodeDotInKeys` option can only be `true` or `false`, when provided\");if(e.encoder!==null&&typeof e.encoder<\"u\"&&typeof e.encoder!=\"function\")throw new TypeError(\"Encoder has to be a function.\");var t=e.charset||E.charset;if(typeof e.charset<\"u\"&&e.charset!==\"utf-8\"&&e.charset!==\"iso-8859-1\")throw new TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var n=he.default;if(typeof e.format<\"u\"){if(!zr.call(he.formatters,e.format))throw new TypeError(\"Unknown format option provided.\");n=e.format}var a=he.formatters[n],o=E.filter;(typeof e.filter==\"function\"||z(e.filter))&&(o=e.filter);var l;if(zr.call(Qr,e.arrayFormat)?l=e.arrayFormat:\"indices\"in e?l=e.indices?\"indices\":\"repeat\":l=E.arrayFormat,\"commaRoundTrip\"in e&&typeof e.commaRoundTrip!=\"boolean\")throw new TypeError(\"`commaRoundTrip` must be a boolean, or absent\");var f=typeof e.allowDots>\"u\"?e.encodeDotInKeys===!0?!0:E.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==\"boolean\"?e.addQueryPrefix:E.addQueryPrefix,allowDots:f,allowEmptyArrays:typeof e.allowEmptyArrays==\"boolean\"?!!e.allowEmptyArrays:E.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==\"boolean\"?e.charsetSentinel:E.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>\"u\"?E.delimiter:e.delimiter,depth:typeof e.depth==\"number\"?e.depth:E.depth,encode:typeof e.encode==\"boolean\"?e.encode:E.encode,encodeDotInKeys:typeof e.encodeDotInKeys==\"boolean\"?e.encodeDotInKeys:E.encodeDotInKeys,encoder:typeof e.encoder==\"function\"?e.encoder:E.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==\"boolean\"?e.encodeValuesOnly:E.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate==\"function\"?e.serializeDate:E.serializeDate,skipNulls:typeof e.skipNulls==\"boolean\"?e.skipNulls:E.skipNulls,sort:typeof e.sort==\"function\"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==\"boolean\"?e.strictNullHandling:E.strictNullHandling}},\"normalizeStringifyOptions\");Jr.exports=function(r,e){var t=r,n=qn(e),a,o;typeof n.filter==\"function\"?(o=n.filter,t=o(\"\",t)):z(n.filter)&&(o=n.filter.slice(),a=o);var l=[];if(typeof t!=\"object\"||t===null)return\"\";var f=Qr[n.arrayFormat],u=f===\"comma\"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var s=Gr(),h=0;h<a.length;++h){var y=a[h];if(!(typeof y>\"u\"||y===null)){var p=t[y];if(!(n.skipNulls&&p===null)){var c=n.encodeDotInKeys?String(y).replace(/\\./g,\"%2E\"):String(y);Vr(l,Pn(p,c,f,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,o,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s,n.depth,0))}}}var d=l.join(n.delimiter),m=n.addQueryPrefix===!0?\"?\":\"\";return n.charsetSentinel&&(n.charset===\"iso-8859-1\"?m+=\"utf8=%26%2310003%3B\"+n.delimiter:m+=\"utf8=%E2%9C%93\"+n.delimiter),d.length>0?m+d:\"\"}});var rt=W((ui,et)=>{\"use strict\";x();var Fn=xe(),_=Xe(),_e=Object.prototype.hasOwnProperty,pe=Array.isArray,Yr=Object.getPrototypeOf,Xr=String.fromCharCode,Mn=i(function(e){if(!e||typeof e!=\"object\")return!1;if(pe(e))return!0;var t=Yr(e);return t===Object.prototype||t===null},\"isPlainContainer\"),$n=i(function(e){if(pe(e)){var t=[];return t.length=e.length,t}return Yr(e)===null?{__proto__:null}:{}},\"emptyCopyOf\"),Un=i(function(e){for(var t=Fn(),n={},a=[{source:e,target:n}],o=0;o<a.length;++o)for(var l=a[o].source,f=a[o].target,u=Object.keys(l),s=0;s<u.length;++s){var h=l[u[s]];if(Mn(h)){if(!t.has(h)){var y=$n(h);t.set(h,y),a[a.length]={source:h,target:y}}_.setProperty(f,u[s],t.get(h))}else _.setProperty(f,u[s],h)}return n},\"copyInput\"),b={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:\"utf-8\",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:_.decode,delimiter:\"&\",depth:5,duplicates:\"combine\",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Wn=i(function(r){return r.replace(/&#(\\d+);/g,function(e,t){var n=parseInt(t,10);return n>65535&&n<=1114111?(n-=65536,Xr(55296|n>>10,56320|n&1023)):Xr(n)})},\"interpretNumericEntities\"),kr=i(function(r,e,t){if(r&&typeof r==\"string\"&&e.comma&&r.indexOf(\",\")>-1){if(e.throwOnLimitExceeded)for(var n=0,a=r.indexOf(\",\");a>-1;){if(n+=1,n>=e.arrayLimit)throw new RangeError(\"Array limit exceeded. Only \"+e.arrayLimit+\" element\"+(e.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");a=r.indexOf(\",\",a+1)}return r.split(\",\")}if(e.throwOnLimitExceeded&&t>=e.arrayLimit&&t>0)throw new RangeError(\"Array limit exceeded. Only \"+e.arrayLimit+\" element\"+(e.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");return r},\"parseArrayValue\"),Nn=\"utf8=%26%2310003%3B\",Bn=\"utf8=%E2%9C%93\",Hn=i(function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\\?/,\"\"):e;a=a.replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,l=a.split(t.delimiter,t.throwOnLimitExceeded&&typeof o<\"u\"?o+1:o);if(t.throwOnLimitExceeded&&typeof o<\"u\"&&l.length>o)throw new RangeError(\"Parameter limit exceeded. Only \"+o+\" parameter\"+(o===1?\"\":\"s\")+\" allowed.\");var f=-1,u,s=t.charset;if(t.charsetSentinel)for(u=0;u<l.length;++u)l[u].indexOf(\"utf8=\")===0&&(l[u]===Bn?s=\"utf-8\":l[u]===Nn&&(s=\"iso-8859-1\"),f=u,u=l.length);for(u=0;u<l.length;++u)if(u!==f){var h=l[u],y=h.indexOf(\"]=\"),p=y===-1?h.indexOf(\"=\"):y+1,c=p>1&&h.slice(p-2,p)===\"[]\",d,m;if(p===-1?(d=t.decoder(h,b.decoder,s,\"key\"),m=t.strictNullHandling?null:\"\"):(d=t.decoder(h.slice(0,p),b.decoder,s,\"key\"),d!==null&&(m=_.maybeMap(kr(h.slice(p+1),t,pe(n[d])&&(t.duplicates===\"combine\"||c)?n[d].length:0),function(S){return t.decoder(S,b.decoder,s,\"value\")}))),m&&t.interpretNumericEntities&&s===\"iso-8859-1\"&&(m=_.maybeMap(m,function(S){return S&&Wn(String(S))})),c&&(m=pe(m)?[m]:m),t.comma&&pe(m)&&m.length>t.arrayLimit&&(m=_.combine([],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),d!==null){var w=_e.call(n,d);w&&(t.duplicates===\"combine\"||c)?n[d]=_.combine(n[d],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!w||t.duplicates===\"last\")&&(n[d]=m)}}return n},\"parseQueryStringValues\"),jr=i(function(e){return e.charAt(0)===\"[\"&&e.charAt(e.length-1)===\"]\"?e.slice(1,-1):e},\"stripWrappingBrackets\"),zn=i(function(r,e,t,n){var a=0;if(r.length>0&&r[r.length-1]===\"[]\"){var o=r.slice(0,-1).join(\"\");a=Array.isArray(e)&&e[o]?e[o].length:0}for(var l=n?e:kr(e,t,a),f=r.length-1;f>=0;--f){var u,s=r[f];if(s===\"[]\"&&t.parseArrays)_.isOverflow(l)?u=l:u=t.allowEmptyArrays&&(l===\"\"||t.strictNullHandling&&l===null)?[]:_.combine([],l,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded);else{u=t.plainObjects?{__proto__:null}:{};var h=jr(s),y=t.decodeDotInKeys?h.replace(/%2E/gi,\".\"):h,p=parseInt(y,10),c=!isNaN(p)&&s!==y&&String(p)===y&&p>=0&&t.parseArrays;if(!t.parseArrays&&y===\"\")u[0]=l;else if(c&&p<t.arrayLimit)u=[],u[p]=l;else{if(c&&t.throwOnLimitExceeded)throw new RangeError(\"Array limit exceeded. Only \"+t.arrayLimit+\" element\"+(t.arrayLimit===1?\"\":\"s\")+\" allowed in an array.\");c?(u[p]=l,_.markOverflow(u,p)):y!==\"__proto__\"&&(u[y]=l)}}l=u}return l},\"parseObject\"),Kn=i(function(e){for(var t=\"\",n=0,a=0;a<e.length;a+=1){var o=e.charCodeAt(a);if(o===91)n+=1,t+=\"[\";else if(o===93)n>0&&(n-=1),t+=\"]\";else if(o===46&&n===0&&a+1<e.length&&e.charCodeAt(a+1)!==46&&e.charCodeAt(a+1)!==91){for(var l=a+1,f=l;f<e.length&&e.charCodeAt(f)!==46&&e.charCodeAt(f)!==91;)f+=1;t+=\"[\"+e.slice(l,f)+\"]\",a=f-1}else t+=e.charAt(a)}return t},\"topLevelDotsToBrackets\"),Gn=i(function(e,t){var n=t.allowDots?Kn(e):e;if(t.depth<=0)return!t.plainObjects&&_e.call(Object.prototype,jr(n))&&!t.allowPrototypes?void 0:[n];var a=[],o=n.indexOf(\"[\"),l=o>=0?n.slice(0,o):n;if(l){if(!t.plainObjects&&_e.call(Object.prototype,l)&&!t.allowPrototypes)return;a[a.length]=l}for(var f=n.length,u=o,s=0;u>=0&&s<t.depth;){for(var h=1,y=u+1,p=-1;y<f&&p<0;){var c=n.charCodeAt(y);c===91?h+=1:c===93&&(h-=1,h===0&&(p=y)),y+=1}if(p<0)return a[a.length]=\"[\"+n.slice(u)+\"]\",a;var d=n.slice(u,p+1),m=d.slice(1,-1);if(!t.plainObjects&&_e.call(Object.prototype,m)&&!t.allowPrototypes)return;a[a.length]=d,s+=1,u=n.indexOf(\"[\",p+1)}if(u>=0){if(t.strictDepth===!0)throw new RangeError(\"Input depth exceeded depth option of \"+t.depth+\" and strictDepth is true\");a[a.length]=\"[\"+n.slice(u)+\"]\"}return a},\"splitKeyIntoSegments\"),Qn=i(function(e,t,n,a){if(e){var o=Gn(e,n);if(o)return zn(o,t,n,a)}},\"parseQueryStringKeys\"),Vn=i(function(e){if(!e)return b;if(typeof e.allowEmptyArrays<\"u\"&&typeof e.allowEmptyArrays!=\"boolean\")throw new TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(typeof e.decodeDotInKeys<\"u\"&&typeof e.decodeDotInKeys!=\"boolean\")throw new TypeError(\"`decodeDotInKeys` option can only be `true` or `false`, when provided\");if(e.decoder!==null&&typeof e.decoder<\"u\"&&typeof e.decoder!=\"function\")throw new TypeError(\"Decoder has to be a function.\");if(typeof e.charset<\"u\"&&e.charset!==\"utf-8\"&&e.charset!==\"iso-8859-1\")throw new TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");if(typeof e.throwOnLimitExceeded<\"u\"&&typeof e.throwOnLimitExceeded!=\"boolean\")throw new TypeError(\"`throwOnLimitExceeded` option must be a boolean\");var t=typeof e.charset>\"u\"?b.charset:e.charset,n=typeof e.duplicates>\"u\"?b.duplicates:e.duplicates;if(n!==\"combine\"&&n!==\"first\"&&n!==\"last\")throw new TypeError(\"The duplicates option must be either combine, first, or last\");var a=typeof e.allowDots>\"u\"?e.decodeDotInKeys===!0?!0:b.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays==\"boolean\"?!!e.allowEmptyArrays:b.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==\"boolean\"?e.allowPrototypes:b.allowPrototypes,allowSparse:typeof e.allowSparse==\"boolean\"?e.allowSparse:b.allowSparse,arrayLimit:typeof e.arrayLimit==\"number\"?e.arrayLimit:b.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==\"boolean\"?e.charsetSentinel:b.charsetSentinel,comma:typeof e.comma==\"boolean\"?e.comma:b.comma,decodeDotInKeys:typeof e.decodeDotInKeys==\"boolean\"?e.decodeDotInKeys:b.decodeDotInKeys,decoder:typeof e.decoder==\"function\"?e.decoder:b.decoder,delimiter:typeof e.delimiter==\"string\"||_.isRegExp(e.delimiter)?e.delimiter:b.delimiter,depth:typeof e.depth==\"number\"||e.depth===!1?+e.depth:b.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==\"boolean\"?e.interpretNumericEntities:b.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==\"number\"?e.parameterLimit:b.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==\"boolean\"?e.plainObjects:b.plainObjects,strictDepth:typeof e.strictDepth==\"boolean\"?!!e.strictDepth:b.strictDepth,strictMerge:typeof e.strictMerge==\"boolean\"?!!e.strictMerge:b.strictMerge,strictNullHandling:typeof e.strictNullHandling==\"boolean\"?e.strictNullHandling:b.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==\"boolean\"?e.throwOnLimitExceeded:!1}},\"normalizeParseOptions\");et.exports=function(r,e){var t=Vn(e);if(r===\"\"||r===null||typeof r>\"u\")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r==\"string\"?Hn(r,t):Un(r),a=t.plainObjects?{__proto__:null}:{},o=Object.keys(n),l=0;l<o.length;++l){var f=o[l],u=Qn(f,n[f],t,typeof r==\"string\");a=_.merge(a,u,t)}return t.allowSparse===!0?a:_.compact(a)}});var nt=W((hi,tt)=>{\"use strict\";x();var Jn=Zr(),Zn=rt(),Xn=Ee();tt.exports={formats:Xn,parse:Zn,stringify:Jn}});x();x();var ft=nr(ht(),1),lt=nr(nt(),1);var Yn=ft.default;function P(){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}i(P,\"Url\");var kn=/^([a-z0-9.+-]+:)/i,jn=/:[0-9]*$/,ea=/^(\\/\\/?(?!\\/)[^?\\s]*)(\\?[^\\s]*)?$/,ra=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`\n`,\" \"],ta=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(ra),ke=[\"'\"].concat(ta),at=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(ke),it=[\"/\",\"?\",\"#\"],na=255,ot=/^[+a-z0-9A-Z_-]{0,63}$/,aa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ia={javascript:!0,\"javascript:\":!0},je={javascript:!0,\"javascript:\":!0},ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},er=lt.default;function de(r,e,t){if(r&&typeof r==\"object\"&&r instanceof P)return r;var n=new P;return n.parse(r,e,t),n}i(de,\"urlParse\");P.prototype.parse=function(r,e,t){if(typeof r!=\"string\")throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof r);var n=r.indexOf(\"?\"),a=n!==-1&&n<r.indexOf(\"#\")?\"?\":\"#\",o=r.split(a),l=/\\\\/g;o[0]=o[0].replace(l,\"/\"),r=o.join(a);var f=r;if(f=f.trim(),!t&&r.split(\"#\").length===1){var u=ea.exec(f);if(u)return this.path=f,this.href=f,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=er.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search=\"\",this.query={}),this}var s=kn.exec(f);if(s){s=s[0];var h=s.toLowerCase();this.protocol=h,f=f.substr(s.length)}if(t||s||f.match(/^\\/\\/[^@/]+@[^@/]+/)){var y=f.substr(0,2)===\"//\";y&&!(s&&je[s])&&(f=f.substr(2),this.slashes=!0)}if(!je[s]&&(y||s&&!ne[s])){for(var p=-1,c=0;c<it.length;c++){var d=f.indexOf(it[c]);d!==-1&&(p===-1||d<p)&&(p=d)}var m,w;p===-1?w=f.lastIndexOf(\"@\"):w=f.lastIndexOf(\"@\",p),w!==-1&&(m=f.slice(0,w),f=f.slice(w+1),this.auth=decodeURIComponent(m)),p=-1;for(var c=0;c<at.length;c++){var d=f.indexOf(at[c]);d!==-1&&(p===-1||d<p)&&(p=d)}p===-1&&(p=f.length),this.host=f.slice(0,p),f=f.slice(p),this.parseHost(),this.hostname=this.hostname||\"\";var S=this.hostname[0]===\"[\"&&this.hostname[this.hostname.length-1]===\"]\";if(!S)for(var v=this.hostname.split(/\\./),c=0,O=v.length;c<O;c++){var A=v[c];if(A&&!A.match(ot)){for(var g=\"\",L=0,D=A.length;L<D;L++)A.charCodeAt(L)>127?g+=\"x\":g+=A[L];if(!g.match(ot)){var C=v.slice(0,c),T=v.slice(c+1),q=A.match(aa);q&&(C.push(q[1]),T.unshift(q[2])),T.length&&(f=\"/\"+T.join(\".\")+f),this.hostname=C.join(\".\");break}}}this.hostname.length>na?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=Yn.toASCII(this.hostname));var K=this.port?\":\"+this.port:\"\",F=this.hostname||\"\";this.host=F+K,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),f[0]!==\"/\"&&(f=\"/\"+f))}if(!ia[h])for(var c=0,O=ke.length;c<O;c++){var R=ke[c];if(f.indexOf(R)!==-1){var M=encodeURIComponent(R);M===R&&(M=escape(R)),f=f.split(R).join(M)}}var $=f.indexOf(\"#\");$!==-1&&(this.hash=f.substr($),f=f.slice(0,$));var U=f.indexOf(\"?\");if(U!==-1?(this.search=f.substr(U),this.query=f.substr(U+1),e&&(this.query=er.parse(this.query)),f=f.slice(0,U)):e&&(this.search=\"\",this.query={}),f&&(this.pathname=f),ne[h]&&this.hostname&&!this.pathname&&(this.pathname=\"/\"),this.pathname||this.search){var K=this.pathname||\"\",G=this.search||\"\";this.path=K+G}return this.href=this.format(),this};function oa(r){return typeof r==\"string\"&&(r=de(r)),r instanceof P?r.format():P.prototype.format.call(r)}i(oa,\"urlFormat\");P.prototype.format=function(){var r=this.auth||\"\";r&&(r=encodeURIComponent(r),r=r.replace(/%3A/i,\":\"),r+=\"@\");var e=this.protocol||\"\",t=this.pathname||\"\",n=this.hash||\"\",a=!1,o=\"\";this.host?a=r+this.host:this.hostname&&(a=r+(this.hostname.indexOf(\":\")===-1?this.hostname:\"[\"+this.hostname+\"]\"),this.port&&(a+=\":\"+this.port)),this.query&&typeof this.query==\"object\"&&Object.keys(this.query).length&&(o=er.stringify(this.query,{arrayFormat:\"repeat\",addQueryPrefix:!1}));var l=this.search||o&&\"?\"+o||\"\";return e&&e.substr(-1)!==\":\"&&(e+=\":\"),this.slashes||(!e||ne[e])&&a!==!1?(a=\"//\"+(a||\"\"),t&&t.charAt(0)!==\"/\"&&(t=\"/\"+t)):a||(a=\"\"),n&&n.charAt(0)!==\"#\"&&(n=\"#\"+n),l&&l.charAt(0)!==\"?\"&&(l=\"?\"+l),t=t.replace(/[?#]/g,function(f){return encodeURIComponent(f)}),l=l.replace(\"#\",\"%23\"),e+a+t+l+n};function fa(r,e){return de(r,!1,!0).resolve(e)}i(fa,\"urlResolve\");P.prototype.resolve=function(r){return this.resolveObject(de(r,!1,!0)).format()};function la(r,e){return r?de(r,!1,!0).resolveObject(e):e}i(la,\"urlResolveObject\");P.prototype.resolveObject=function(r){if(typeof r==\"string\"){var e=new P;e.parse(r,!1,!0),r=e}for(var t=new P,n=Object.keys(this),a=0;a<n.length;a++){var o=n[a];t[o]=this[o]}if(t.hash=r.hash,r.href===\"\")return t.href=t.format(),t;if(r.slashes&&!r.protocol){for(var l=Object.keys(r),f=0;f<l.length;f++){var u=l[f];u!==\"protocol\"&&(t[u]=r[u])}return ne[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname=\"/\",t.path=t.pathname),t.href=t.format(),t}if(r.protocol&&r.protocol!==t.protocol){if(!ne[r.protocol]){for(var s=Object.keys(r),h=0;h<s.length;h++){var y=s[h];t[y]=r[y]}return t.href=t.format(),t}if(t.protocol=r.protocol,!r.host&&!je[r.protocol]){for(var O=(r.pathname||\"\").split(\"/\");O.length&&!(r.host=O.shift()););r.host||(r.host=\"\"),r.hostname||(r.hostname=\"\"),O[0]!==\"\"&&O.unshift(\"\"),O.length<2&&O.unshift(\"\"),t.pathname=O.join(\"/\")}else t.pathname=r.pathname;if(t.search=r.search,t.query=r.query,t.host=r.host||\"\",t.auth=r.auth,t.hostname=r.hostname||r.host,t.port=r.port,t.pathname||t.search){var p=t.pathname||\"\",c=t.search||\"\";t.path=p+c}return t.slashes=t.slashes||r.slashes,t.href=t.format(),t}var d=t.pathname&&t.pathname.charAt(0)===\"/\",m=r.host||r.pathname&&r.pathname.charAt(0)===\"/\",w=m||d||t.host&&r.pathname,S=w,v=t.pathname&&t.pathname.split(\"/\")||[],O=r.pathname&&r.pathname.split(\"/\")||[],A=t.protocol&&!ne[t.protocol];if(A&&(t.hostname=\"\",t.port=null,t.host&&(v[0]===\"\"?v[0]=t.host:v.unshift(t.host)),t.host=\"\",r.protocol&&(r.hostname=null,r.port=null,r.host&&(O[0]===\"\"?O[0]=r.host:O.unshift(r.host)),r.host=null),w=w&&(O[0]===\"\"||v[0]===\"\")),m)t.host=r.host||r.host===\"\"?r.host:t.host,t.hostname=r.hostname||r.hostname===\"\"?r.hostname:t.hostname,t.search=r.search,t.query=r.query,v=O;else if(O.length)v||(v=[]),v.pop(),v=v.concat(O),t.search=r.search,t.query=r.query;else if(r.search!=null){if(A){t.host=v.shift(),t.hostname=t.host;var g=t.host&&t.host.indexOf(\"@\")>0?t.host.split(\"@\"):!1;g&&(t.auth=g.shift(),t.hostname=g.shift(),t.host=t.hostname)}return t.search=r.search,t.query=r.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:\"\")+(t.search?t.search:\"\")),t.href=t.format(),t}if(!v.length)return t.pathname=null,t.search?t.path=\"/\"+t.search:t.path=null,t.href=t.format(),t;for(var L=v.slice(-1)[0],D=(t.host||r.host||v.length>1)&&(L===\".\"||L===\"..\")||L===\"\",C=0,T=v.length;T>=0;T--)L=v[T],L===\".\"?v.splice(T,1):L===\"..\"?(v.splice(T,1),C++):C&&(v.splice(T,1),C--);if(!w&&!S)for(;C--;C)v.unshift(\"..\");w&&v[0]!==\"\"&&(!v[0]||v[0].charAt(0)!==\"/\")&&v.unshift(\"\"),D&&v.join(\"/\").substr(-1)!==\"/\"&&v.push(\"\");var q=v[0]===\"\"||v[0]&&v[0].charAt(0)===\"/\";if(A){t.hostname=q?\"\":v.length?v.shift():\"\",t.host=t.hostname;var g=t.host&&t.host.indexOf(\"@\")>0?t.host.split(\"@\"):!1;g&&(t.auth=g.shift(),t.hostname=g.shift(),t.host=t.hostname)}return w=w||t.host&&v.length,w&&!q&&v.unshift(\"\"),v.length>0?t.pathname=v.join(\"/\"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:\"\")+(t.search?t.search:\"\")),t.auth=r.auth||t.auth,t.slashes=t.slashes||r.slashes,t.href=t.format(),t};P.prototype.parseHost=function(){var r=this.host,e=jn.exec(r);e&&(e=e[0],e!==\":\"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};var ua=de,sa=fa,ca=la,ha=oa,pa=P;function da(r,e){for(var t=0,n=r.length-1;n>=0;n--){var a=r[n];a===\".\"?r.splice(n,1):a===\"..\"?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift(\"..\");return r}i(da,\"normalizeArray\");function ya(){for(var r=\"\",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:\"/\";if(typeof n!=\"string\")throw new TypeError(\"Arguments to path.resolve must be strings\");if(!n)continue;r=n+\"/\"+r,e=n.charAt(0)===\"/\"}return r=da(ma(r.split(\"/\"),function(a){return!!a}),!e).join(\"/\"),(e?\"/\":\"\")+r||\".\"}i(ya,\"resolve\");function ma(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n<r.length;n++)e(r[n],n,r)&&t.push(r[n]);return t}i(ma,\"filter\");var ut=(function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(i(e,\"get\"),typeof globalThis==\"object\")return globalThis;if(this)return e();r.defineProperty(r.prototype,\"__magic__\",{configurable:!0,get:e});var t=__magic__;return t})(Object),va=ha,ga=ua,wa=sa,Sa=pa,ee=ut.URL,Oa=ut.URLSearchParams,xa=/%/g,ba=/\\\\/g,Ea=/\\n/g,La=/\\r/g,Aa=/\\t/g,Ta=47;function Ra(r){var e=r??null;return!!(e!==null&&e?.href&&e?.origin)}i(Ra,\"isURLInstance\");function Ca(r){if(r.hostname!==\"\")throw new TypeError('File URL host must be \"localhost\" or empty on browser');for(var e=r.pathname,t=0;t<e.length;t++)if(e[t]===\"%\"){var n=e.codePointAt(t+2)|32;if(e[t+1]===\"2\"&&n===102)throw new TypeError(\"File URL path must not include encoded / characters\")}return decodeURIComponent(e)}i(Ca,\"getPathFromURLPosix\");function Ia(r){return r.includes(\"%\")&&(r=r.replace(xa,\"%25\")),r.includes(\"\\\\\")&&(r=r.replace(ba,\"%5C\")),r.includes(`\n`)&&(r=r.replace(Ea,\"%0A\")),r.includes(\"\\r\")&&(r=r.replace(La,\"%0D\")),r.includes(\" \")&&(r=r.replace(Aa,\"%09\")),r}i(Ia,\"encodePathChars\");var _a=i(function(e){if(typeof e>\"u\")throw new TypeError('The \"domain\" argument must be specified');return new ee(\"http://\"+e).hostname},\"domainToASCII\"),Da=i(function(e){if(typeof e>\"u\")throw new TypeError('The \"domain\" argument must be specified');return new ee(\"http://\"+e).hostname},\"domainToUnicode\"),Pa=i(function(e){var t=new ee(\"file://\"),n=ya(e),a=e.charCodeAt(e.length-1);return a===Ta&&n[n.length-1]!==\"/\"&&(n+=\"/\"),t.pathname=Ia(n),t},\"pathToFileURL\"),qa=i(function(e){if(!Ra(e)&&typeof e!=\"string\")throw new TypeError('The \"path\" argument must be of type string or an instance of URL. Received type '+typeof e+\" (\"+e+\")\");var t=new ee(e);if(t.protocol!==\"file:\")throw new TypeError(\"The URL must be of scheme file\");return Ca(t)},\"fileURLToPath\"),Fa=i(function(e,t){var n,a,o,l;if(t===void 0&&(t={}),!(e instanceof ee))return va(e);if(typeof t!=\"object\"||t===null)throw new TypeError('The \"options\" argument must be of type object.');var f=(n=t.auth)!=null?n:!0,u=(a=t.fragment)!=null?a:!0,s=(o=t.search)!=null?o:!0;(l=t.unicode)!=null;var h=new ee(e.toString());return f||(h.username=\"\",h.password=\"\"),u||(h.hash=\"\"),s||(h.search=\"\"),h.toString()},\"formatImportWithOverloads\"),I={format:Fa,parse:ga,resolve:wa,resolveObject:ca,Url:Sa,URL:ee,URLSearchParams:Oa,domainToASCII:_a,domainToUnicode:Da,pathToFileURL:Pa,fileURLToPath:qa};Object.assign(I,{URL:globalThis.URL,URLSearchParams:globalThis.URLSearchParams});var gi=I,wi=I.format;var Si=I.parse;var Oi=I.resolve;var xi=I.resolveObject;var bi=I.Url;var Ei=I.URL;var Li=I.URLSearchParams;var Ai=I.domainToASCII;var Ti=I.domainToUnicode;var Ri=I.pathToFileURL;var Ci=I.fileURLToPath;export{Ei as URL,Li as URLSearchParams,bi as Url,gi as default,Ai as domainToASCII,Ti as domainToUnicode,Ci as fileURLToPath,wi as format,Si as parse,Ri as pathToFileURL,Oi as resolve,xi as resolveObject};\n",
|
|
5514
5514
|
"engine/builtin/util.mjs": "import{f as s}from\"../chunks/chunk-RAKQLW7K.mjs\";import\"../chunks/chunk-WHKCMYPO.mjs\";import{e as o,o as t}from\"../chunks/chunk-IQ3JZKJB.mjs\";t();var e=o(s());Object.assign(e.default,{TextEncoder:globalThis.TextEncoder,TextDecoder:globalThis.TextDecoder});var r=e.default,x=e.default.format;var p=e.default.deprecate;var i=e.default.debuglog;var n=e.default.inspect;var d=e.default.types;var c=e.default.isArray;var a=e.default.isBoolean;var l=e.default.isNull;var f=e.default.isNullOrUndefined;var u=e.default.isNumber;var b=e.default.isString;var g=e.default.isSymbol;var m=e.default.isUndefined;var y=e.default.isRegExp;var T=e.default.isObject;var E=e.default.isDate;var D=e.default.isError;var N=e.default.isFunction;var O=e.default.isPrimitive;var h=e.default.isBuffer;var B=e.default.log;var S=e.default.inherits;var U=e.default._extend;var j=e.default.promisify;var v=e.default.callbackify;var k=e.default.TextEncoder;var A=e.default.TextDecoder;export{A as TextDecoder,k as TextEncoder,U as _extend,v as callbackify,i as debuglog,r as default,p as deprecate,x as format,S as inherits,n as inspect,c as isArray,a as isBoolean,h as isBuffer,E as isDate,D as isError,N as isFunction,l as isNull,f as isNullOrUndefined,u as isNumber,T as isObject,O as isPrimitive,y as isRegExp,b as isString,g as isSymbol,m as isUndefined,B as log,j as promisify,d as types};\n",
|
|
5515
|
-
"engine/builtin/zlib.mjs": "import{a as Ci}from\"../chunks/chunk-OISVBTZK.mjs\";import\"../chunks/chunk-5VZ4VCVQ.mjs\";import\"../chunks/chunk-2PJDHVIE.mjs\";import\"../chunks/chunk-QMKSQR7V.mjs\";import\"../chunks/chunk-47XFURCP.mjs\";import{a as Qt}from\"../chunks/chunk-PHIKFVJN.mjs\";import{f as Bi}from\"../chunks/chunk-RAKQLW7K.mjs\";import\"../chunks/chunk-WHKCMYPO.mjs\";import{a as h,c as K,e as Ui,f as jt,g as Buffer,i as Jt,j as bt,m as process,o as z}from\"../chunks/chunk-IQ3JZKJB.mjs\";var ea=K((Sn,$t)=>{\"use strict\";z();function Hi(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}h(Hi,\"ZStream\");$t.exports=Hi});var Me=K(H=>{\"use strict\";z();var Pi=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Int32Array<\"u\";function Gi(e,i){return Object.prototype.hasOwnProperty.call(e,i)}h(Gi,\"_has\");H.assign=function(e){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var t=i.shift();if(t){if(typeof t!=\"object\")throw new TypeError(t+\"must be non-object\");for(var a in t)Gi(t,a)&&(e[a]=t[a])}}return e};H.shrinkBuf=function(e,i){return e.length===i?e:e.subarray?e.subarray(0,i):(e.length=i,e)};var Ki={arraySet:h(function(e,i,t,a,r){if(i.subarray&&e.subarray){e.set(i.subarray(t,t+a),r);return}for(var n=0;n<a;n++)e[r+n]=i[t+n]},\"arraySet\"),flattenChunks:h(function(e){var i,t,a,r,n,f;for(a=0,i=0,t=e.length;i<t;i++)a+=e[i].length;for(f=new Uint8Array(a),r=0,i=0,t=e.length;i<t;i++)n=e[i],f.set(n,r),r+=n.length;return f},\"flattenChunks\")},Wi={arraySet:h(function(e,i,t,a,r){for(var n=0;n<a;n++)e[r+n]=i[t+n]},\"arraySet\"),flattenChunks:h(function(e){return[].concat.apply([],e)},\"flattenChunks\")};H.setTyped=function(e){e?(H.Buf8=Uint8Array,H.Buf16=Uint16Array,H.Buf32=Int32Array,H.assign(H,Ki)):(H.Buf8=Array,H.Buf16=Array,H.Buf32=Array,H.assign(H,Wi))};H.setTyped(Pi)});var ka=K(ye=>{\"use strict\";z();var Xi=Me(),Yi=4,ta=0,aa=1,Vi=2;function me(e){for(var i=e.length;--i>=0;)e[i]=0}h(me,\"zero\");var qi=0,la=1,ji=2,Ji=3,Qi=258,Lt=29,Ge=256,Be=Ge+1+Lt,Ne=30,Rt=19,oa=2*Be+1,ce=15,xt=16,$i=7,It=256,ha=16,da=17,sa=18,St=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],et=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],er=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ua=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tr=512,ne=new Array((Be+2)*2);me(ne);var Ue=new Array(Ne*2);me(Ue);var Ce=new Array(tr);me(Ce);var He=new Array(Qi-Ji+1);me(He);var At=new Array(Lt);me(At);var tt=new Array(Ne);me(tt);function gt(e,i,t,a,r){this.static_tree=e,this.extra_bits=i,this.extra_base=t,this.elems=a,this.max_length=r,this.has_stree=e&&e.length}h(gt,\"StaticTreeDesc\");var ca,va,pa;function Zt(e,i){this.dyn_tree=e,this.max_code=0,this.stat_desc=i}h(Zt,\"TreeDesc\");function wa(e){return e<256?Ce[e]:Ce[256+(e>>>7)]}h(wa,\"d_code\");function Pe(e,i){e.pending_buf[e.pending++]=i&255,e.pending_buf[e.pending++]=i>>>8&255}h(Pe,\"put_short\");function G(e,i,t){e.bi_valid>xt-t?(e.bi_buf|=i<<e.bi_valid&65535,Pe(e,e.bi_buf),e.bi_buf=i>>xt-e.bi_valid,e.bi_valid+=t-xt):(e.bi_buf|=i<<e.bi_valid&65535,e.bi_valid+=t)}h(G,\"send_bits\");function $(e,i,t){G(e,t[i*2],t[i*2+1])}h($,\"send_code\");function Ea(e,i){var t=0;do t|=e&1,e>>>=1,t<<=1;while(--i>0);return t>>>1}h(Ea,\"bi_reverse\");function ar(e){e.bi_valid===16?(Pe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}h(ar,\"bi_flush\");function ir(e,i){var t=i.dyn_tree,a=i.max_code,r=i.stat_desc.static_tree,n=i.stat_desc.has_stree,f=i.stat_desc.extra_bits,l=i.stat_desc.extra_base,d=i.stat_desc.max_length,_,o,T,c,s,b,E=0;for(c=0;c<=ce;c++)e.bl_count[c]=0;for(t[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_<oa;_++)o=e.heap[_],c=t[t[o*2+1]*2+1]+1,c>d&&(c=d,E++),t[o*2+1]=c,!(o>a)&&(e.bl_count[c]++,s=0,o>=l&&(s=f[o-l]),b=t[o*2],e.opt_len+=b*(c+s),n&&(e.static_len+=b*(r[o*2+1]+s)));if(E!==0){do{for(c=d-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[d]--,E-=2}while(E>0);for(c=d;c!==0;c--)for(o=e.bl_count[c];o!==0;)T=e.heap[--_],!(T>a)&&(t[T*2+1]!==c&&(e.opt_len+=(c-t[T*2+1])*t[T*2],t[T*2+1]=c),o--)}}h(ir,\"gen_bitlen\");function ba(e,i,t){var a=new Array(ce+1),r=0,n,f;for(n=1;n<=ce;n++)a[n]=r=r+t[n-1]<<1;for(f=0;f<=i;f++){var l=e[f*2+1];l!==0&&(e[f*2]=Ea(a[l]++,l))}}h(ba,\"gen_codes\");function rr(){var e,i,t,a,r,n=new Array(ce+1);for(t=0,a=0;a<Lt-1;a++)for(At[a]=t,e=0;e<1<<St[a];e++)He[t++]=a;for(He[t-1]=a,r=0,a=0;a<16;a++)for(tt[a]=r,e=0;e<1<<et[a];e++)Ce[r++]=a;for(r>>=7;a<Ne;a++)for(tt[a]=r<<7,e=0;e<1<<et[a]-7;e++)Ce[256+r++]=a;for(i=0;i<=ce;i++)n[i]=0;for(e=0;e<=143;)ne[e*2+1]=8,e++,n[8]++;for(;e<=255;)ne[e*2+1]=9,e++,n[9]++;for(;e<=279;)ne[e*2+1]=7,e++,n[7]++;for(;e<=287;)ne[e*2+1]=8,e++,n[8]++;for(ba(ne,Be+1,n),e=0;e<Ne;e++)Ue[e*2+1]=5,Ue[e*2]=Ea(e,5);ca=new gt(ne,St,Ge+1,Be,ce),va=new gt(Ue,et,0,Ne,ce),pa=new gt(new Array(0),er,0,Rt,$i)}h(rr,\"tr_static_init\");function xa(e){var i;for(i=0;i<Be;i++)e.dyn_ltree[i*2]=0;for(i=0;i<Ne;i++)e.dyn_dtree[i*2]=0;for(i=0;i<Rt;i++)e.bl_tree[i*2]=0;e.dyn_ltree[It*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}h(xa,\"init_block\");function ga(e){e.bi_valid>8?Pe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}h(ga,\"bi_windup\");function nr(e,i,t,a){ga(e),a&&(Pe(e,t),Pe(e,~t)),Xi.arraySet(e.pending_buf,e.window,i,t,e.pending),e.pending+=t}h(nr,\"copy_block\");function ia(e,i,t,a){var r=i*2,n=t*2;return e[r]<e[n]||e[r]===e[n]&&a[i]<=a[t]}h(ia,\"smaller\");function kt(e,i,t){for(var a=e.heap[t],r=t<<1;r<=e.heap_len&&(r<e.heap_len&&ia(i,e.heap[r+1],e.heap[r],e.depth)&&r++,!ia(i,a,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=a}h(kt,\"pqdownheap\");function ra(e,i,t){var a,r,n=0,f,l;if(e.last_lit!==0)do a=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],r=e.pending_buf[e.l_buf+n],n++,a===0?$(e,r,i):(f=He[r],$(e,f+Ge+1,i),l=St[f],l!==0&&(r-=At[f],G(e,r,l)),a--,f=wa(a),$(e,f,t),l=et[f],l!==0&&(a-=tt[f],G(e,a,l)));while(n<e.last_lit);$(e,It,i)}h(ra,\"compress_block\");function Tt(e,i){var t=i.dyn_tree,a=i.stat_desc.static_tree,r=i.stat_desc.has_stree,n=i.stat_desc.elems,f,l,d=-1,_;for(e.heap_len=0,e.heap_max=oa,f=0;f<n;f++)t[f*2]!==0?(e.heap[++e.heap_len]=d=f,e.depth[f]=0):t[f*2+1]=0;for(;e.heap_len<2;)_=e.heap[++e.heap_len]=d<2?++d:0,t[_*2]=1,e.depth[_]=0,e.opt_len--,r&&(e.static_len-=a[_*2+1]);for(i.max_code=d,f=e.heap_len>>1;f>=1;f--)kt(e,t,f);_=n;do f=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kt(e,t,1),l=e.heap[1],e.heap[--e.heap_max]=f,e.heap[--e.heap_max]=l,t[_*2]=t[f*2]+t[l*2],e.depth[_]=(e.depth[f]>=e.depth[l]?e.depth[f]:e.depth[l])+1,t[f*2+1]=t[l*2+1]=_,e.heap[1]=_++,kt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ir(e,i),ba(t,d,e.bl_count)}h(Tt,\"build_tree\");function na(e,i,t){var a,r=-1,n,f=i[1],l=0,d=7,_=4;for(f===0&&(d=138,_=3),i[(t+1)*2+1]=65535,a=0;a<=t;a++)n=f,f=i[(a+1)*2+1],!(++l<d&&n===f)&&(l<_?e.bl_tree[n*2]+=l:n!==0?(n!==r&&e.bl_tree[n*2]++,e.bl_tree[ha*2]++):l<=10?e.bl_tree[da*2]++:e.bl_tree[sa*2]++,l=0,r=n,f===0?(d=138,_=3):n===f?(d=6,_=3):(d=7,_=4))}h(na,\"scan_tree\");function fa(e,i,t){var a,r=-1,n,f=i[1],l=0,d=7,_=4;for(f===0&&(d=138,_=3),a=0;a<=t;a++)if(n=f,f=i[(a+1)*2+1],!(++l<d&&n===f)){if(l<_)do $(e,n,e.bl_tree);while(--l!==0);else n!==0?(n!==r&&($(e,n,e.bl_tree),l--),$(e,ha,e.bl_tree),G(e,l-3,2)):l<=10?($(e,da,e.bl_tree),G(e,l-3,3)):($(e,sa,e.bl_tree),G(e,l-11,7));l=0,r=n,f===0?(d=138,_=3):n===f?(d=6,_=3):(d=7,_=4)}}h(fa,\"send_tree\");function fr(e){var i;for(na(e,e.dyn_ltree,e.l_desc.max_code),na(e,e.dyn_dtree,e.d_desc.max_code),Tt(e,e.bl_desc),i=Rt-1;i>=3&&e.bl_tree[ua[i]*2+1]===0;i--);return e.opt_len+=3*(i+1)+5+5+4,i}h(fr,\"build_bl_tree\");function _r(e,i,t,a){var r;for(G(e,i-257,5),G(e,t-1,5),G(e,a-4,4),r=0;r<a;r++)G(e,e.bl_tree[ua[r]*2+1],3);fa(e,e.dyn_ltree,i-1),fa(e,e.dyn_dtree,t-1)}h(_r,\"send_all_trees\");function lr(e){var i=4093624447,t;for(t=0;t<=31;t++,i>>>=1)if(i&1&&e.dyn_ltree[t*2]!==0)return ta;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return aa;for(t=32;t<Ge;t++)if(e.dyn_ltree[t*2]!==0)return aa;return ta}h(lr,\"detect_data_type\");var _a=!1;function or(e){_a||(rr(),_a=!0),e.l_desc=new Zt(e.dyn_ltree,ca),e.d_desc=new Zt(e.dyn_dtree,va),e.bl_desc=new Zt(e.bl_tree,pa),e.bi_buf=0,e.bi_valid=0,xa(e)}h(or,\"_tr_init\");function Za(e,i,t,a){G(e,(qi<<1)+(a?1:0),3),nr(e,i,t,!0)}h(Za,\"_tr_stored_block\");function hr(e){G(e,la<<1,3),$(e,It,ne),ar(e)}h(hr,\"_tr_align\");function dr(e,i,t,a){var r,n,f=0;e.level>0?(e.strm.data_type===Vi&&(e.strm.data_type=lr(e)),Tt(e,e.l_desc),Tt(e,e.d_desc),f=fr(e),r=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=r&&(r=n)):r=n=t+5,t+4<=r&&i!==-1?Za(e,i,t,a):e.strategy===Yi||n===r?(G(e,(la<<1)+(a?1:0),3),ra(e,ne,Ue)):(G(e,(ji<<1)+(a?1:0),3),_r(e,e.l_desc.max_code+1,e.d_desc.max_code+1,f+1),ra(e,e.dyn_ltree,e.dyn_dtree)),xa(e),a&&ga(e)}h(dr,\"_tr_flush_block\");function sr(e,i,t){return e.pending_buf[e.d_buf+e.last_lit*2]=i>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=i&255,e.pending_buf[e.l_buf+e.last_lit]=t&255,e.last_lit++,i===0?e.dyn_ltree[t*2]++:(e.matches++,i--,e.dyn_ltree[(He[t]+Ge+1)*2]++,e.dyn_dtree[wa(i)*2]++),e.last_lit===e.lit_bufsize-1}h(sr,\"_tr_tally\");ye._tr_init=or;ye._tr_stored_block=Za;ye._tr_flush_block=dr;ye._tr_tally=sr;ye._tr_align=hr});var Nt=K((Dn,Sa)=>{\"use strict\";z();function ur(e,i,t,a){for(var r=e&65535|0,n=e>>>16&65535|0,f=0;t!==0;){f=t>2e3?2e3:t,t-=f;do r=r+i[a++]|0,n=n+r|0;while(--f);r%=65521,n%=65521}return r|n<<16|0}h(ur,\"adler32\");Sa.exports=ur});var mt=K((On,Ta)=>{\"use strict\";z();function cr(){for(var e,i=[],t=0;t<256;t++){e=t;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;i[t]=e}return i}h(cr,\"makeTable\");var vr=cr();function pr(e,i,t,a){var r=vr,n=a+t;e^=-1;for(var f=a;f<n;f++)e=e>>>8^r[(e^i[f])&255];return e^-1}h(pr,\"crc32\");Ta.exports=pr});var Ra=K((Bn,La)=>{\"use strict\";z();La.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}});var Oa=K(ae=>{\"use strict\";z();var P=Me(),Y=ka(),ma=Nt(),_e=mt(),wr=Ra(),Ee=0,Er=1,br=3,se=4,Ia=5,te=0,Aa=1,V=-2,xr=-3,yt=-5,gr=-1,Zr=1,at=2,kr=3,Sr=4,Tr=0,Lr=2,ft=8,Rr=9,Ir=15,Ar=8,Nr=29,mr=256,zt=mr+1+Nr,yr=30,Dr=19,zr=2*zt+1,Fr=15,R=3,he=258,J=he+R+1,Or=32,_t=42,Ft=69,it=73,rt=91,nt=103,ve=113,We=666,U=1,Xe=2,pe=3,Fe=4,Mr=3;function de(e,i){return e.msg=wr[i],i}h(de,\"err\");function Na(e){return(e<<1)-(e>4?9:0)}h(Na,\"rank\");function oe(e){for(var i=e.length;--i>=0;)e[i]=0}h(oe,\"zero\");function le(e){var i=e.state,t=i.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(P.arraySet(e.output,i.pending_buf,i.pending_out,t,e.next_out),e.next_out+=t,i.pending_out+=t,e.total_out+=t,e.avail_out-=t,i.pending-=t,i.pending===0&&(i.pending_out=0))}h(le,\"flush_pending\");function B(e,i){Y._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,i),e.block_start=e.strstart,le(e.strm)}h(B,\"flush_block_only\");function N(e,i){e.pending_buf[e.pending++]=i}h(N,\"put_byte\");function Ke(e,i){e.pending_buf[e.pending++]=i>>>8&255,e.pending_buf[e.pending++]=i&255}h(Ke,\"putShortMSB\");function Ur(e,i,t,a){var r=e.avail_in;return r>a&&(r=a),r===0?0:(e.avail_in-=r,P.arraySet(i,e.input,e.next_in,r,t),e.state.wrap===1?e.adler=ma(e.adler,i,r,t):e.state.wrap===2&&(e.adler=_e(e.adler,i,r,t)),e.next_in+=r,e.total_in+=r,r)}h(Ur,\"read_buf\");function ya(e,i){var t=e.max_chain_length,a=e.strstart,r,n,f=e.prev_length,l=e.nice_match,d=e.strstart>e.w_size-J?e.strstart-(e.w_size-J):0,_=e.window,o=e.w_mask,T=e.prev,c=e.strstart+he,s=_[a+f-1],b=_[a+f];e.prev_length>=e.good_match&&(t>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=i,!(_[r+f]!==b||_[r+f-1]!==s||_[r]!==_[a]||_[++r]!==_[a+1])){a+=2,r++;do;while(_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&a<c);if(n=he-(c-a),a=c-he,n>f){if(e.match_start=i,f=n,n>=l)break;s=_[a+f-1],b=_[a+f]}}while((i=T[i&o])>d&&--t!==0);return f<=e.lookahead?f:e.lookahead}h(ya,\"longest_match\");function we(e){var i=e.w_size,t,a,r,n,f;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-J)){P.arraySet(e.window,e.window,i,i,0),e.match_start-=i,e.strstart-=i,e.block_start-=i,a=e.hash_size,t=a;do r=e.head[--t],e.head[t]=r>=i?r-i:0;while(--a);a=i,t=a;do r=e.prev[--t],e.prev[t]=r>=i?r-i:0;while(--a);n+=i}if(e.strm.avail_in===0)break;if(a=Ur(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=a,e.lookahead+e.insert>=R)for(f=e.strstart-e.insert,e.ins_h=e.window[f],e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+R-1])&e.hash_mask,e.prev[f&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=f,f++,e.insert--,!(e.lookahead+e.insert<R)););}while(e.lookahead<J&&e.strm.avail_in!==0)}h(we,\"fill_window\");function Br(e,i){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(we(e),e.lookahead===0&&i===Ee)return U;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+t;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,B(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-J&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out===0),U)}h(Br,\"deflate_stored\");function Dt(e,i){for(var t,a;;){if(e.lookahead<J){if(we(e),e.lookahead<J&&i===Ee)return U;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-J&&(e.match_length=ya(e,t)),e.match_length>=R)if(a=Y._tr_tally(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else a=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=e.strstart<R-1?e.strstart:R-1,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Dt,\"deflate_fast\");function De(e,i){for(var t,a,r;;){if(e.lookahead<J){if(we(e),e.lookahead<J&&i===Ee)return U;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-J&&(e.match_length=ya(e,t),e.match_length<=5&&(e.strategy===Zr||e.match_length===R&&e.strstart-e.match_start>4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-R,a=Y._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=R-1,e.strstart++,a&&(B(e,!1),e.strm.avail_out===0))return U}else if(e.match_available){if(a=Y._tr_tally(e,0,e.window[e.strstart-1]),a&&B(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return U}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=Y._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(De,\"deflate_slow\");function Cr(e,i){for(var t,a,r,n,f=e.window;;){if(e.lookahead<=he){if(we(e),e.lookahead<=he&&i===Ee)return U;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(r=e.strstart-1,a=f[r],a===f[++r]&&a===f[++r]&&a===f[++r])){n=e.strstart+he;do;while(a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&r<n);e.match_length=he-(n-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(t=Y._tr_tally(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Cr,\"deflate_rle\");function Hr(e,i){for(var t;;){if(e.lookahead===0&&(we(e),e.lookahead===0)){if(i===Ee)return U;break}if(e.match_length=0,t=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Hr,\"deflate_huff\");function ee(e,i,t,a,r){this.good_length=e,this.max_lazy=i,this.nice_length=t,this.max_chain=a,this.func=r}h(ee,\"Config\");var ze;ze=[new ee(0,0,0,0,Br),new ee(4,4,8,4,Dt),new ee(4,5,16,8,Dt),new ee(4,6,32,32,Dt),new ee(4,4,16,16,De),new ee(8,16,32,32,De),new ee(8,16,128,128,De),new ee(8,32,128,256,De),new ee(32,128,258,1024,De),new ee(32,258,258,4096,De)];function Pr(e){e.window_size=2*e.w_size,oe(e.head),e.max_lazy_match=ze[e.level].max_lazy,e.good_match=ze[e.level].good_length,e.nice_match=ze[e.level].nice_length,e.max_chain_length=ze[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=R-1,e.match_available=0,e.ins_h=0}h(Pr,\"lm_init\");function Gr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ft,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new P.Buf16(zr*2),this.dyn_dtree=new P.Buf16((2*yr+1)*2),this.bl_tree=new P.Buf16((2*Dr+1)*2),oe(this.dyn_ltree),oe(this.dyn_dtree),oe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new P.Buf16(Fr+1),this.heap=new P.Buf16(2*zt+1),oe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new P.Buf16(2*zt+1),oe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}h(Gr,\"DeflateState\");function Da(e){var i;return!e||!e.state?de(e,V):(e.total_in=e.total_out=0,e.data_type=Lr,i=e.state,i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?_t:ve,e.adler=i.wrap===2?0:1,i.last_flush=Ee,Y._tr_init(i),te)}h(Da,\"deflateResetKeep\");function za(e){var i=Da(e);return i===te&&Pr(e.state),i}h(za,\"deflateReset\");function Kr(e,i){return!e||!e.state||e.state.wrap!==2?V:(e.state.gzhead=i,te)}h(Kr,\"deflateSetHeader\");function Fa(e,i,t,a,r,n){if(!e)return V;var f=1;if(i===gr&&(i=6),a<0?(f=0,a=-a):a>15&&(f=2,a-=16),r<1||r>Rr||t!==ft||a<8||a>15||i<0||i>9||n<0||n>Sr)return de(e,V);a===8&&(a=9);var l=new Gr;return e.state=l,l.strm=e,l.wrap=f,l.gzhead=null,l.w_bits=a,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+R-1)/R),l.window=new P.Buf8(l.w_size*2),l.head=new P.Buf16(l.hash_size),l.prev=new P.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new P.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=i,l.strategy=n,l.method=t,za(e)}h(Fa,\"deflateInit2\");function Wr(e,i){return Fa(e,i,ft,Ir,Ar,Tr)}h(Wr,\"deflateInit\");function Xr(e,i){var t,a,r,n;if(!e||!e.state||i>Ia||i<0)return e?de(e,V):V;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===We&&i!==se)return de(e,e.avail_out===0?yt:V);if(a.strm=e,t=a.last_flush,a.last_flush=i,a.status===_t)if(a.wrap===2)e.adler=0,N(a,31),N(a,139),N(a,8),a.gzhead?(N(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),N(a,a.gzhead.time&255),N(a,a.gzhead.time>>8&255),N(a,a.gzhead.time>>16&255),N(a,a.gzhead.time>>24&255),N(a,a.level===9?2:a.strategy>=at||a.level<2?4:0),N(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(N(a,a.gzhead.extra.length&255),N(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=_e(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=Ft):(N(a,0),N(a,0),N(a,0),N(a,0),N(a,0),N(a,a.level===9?2:a.strategy>=at||a.level<2?4:0),N(a,Mr),a.status=ve);else{var f=ft+(a.w_bits-8<<4)<<8,l=-1;a.strategy>=at||a.level<2?l=0:a.level<6?l=1:a.level===6?l=2:l=3,f|=l<<6,a.strstart!==0&&(f|=Or),f+=31-f%31,a.status=ve,Ke(a,f),a.strstart!==0&&(Ke(a,e.adler>>>16),Ke(a,e.adler&65535)),e.adler=1}if(a.status===Ft)if(a.gzhead.extra){for(r=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size));)N(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=it)}else a.status=it;if(a.status===it)if(a.gzhead.name){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.name.length?n=a.gzhead.name.charCodeAt(a.gzindex++)&255:n=0,N(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),n===0&&(a.gzindex=0,a.status=rt)}else a.status=rt;if(a.status===rt)if(a.gzhead.comment){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.comment.length?n=a.gzhead.comment.charCodeAt(a.gzindex++)&255:n=0,N(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),n===0&&(a.status=nt)}else a.status=nt;if(a.status===nt&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&le(e),a.pending+2<=a.pending_buf_size&&(N(a,e.adler&255),N(a,e.adler>>8&255),e.adler=0,a.status=ve)):a.status=ve),a.pending!==0){if(le(e),e.avail_out===0)return a.last_flush=-1,te}else if(e.avail_in===0&&Na(i)<=Na(t)&&i!==se)return de(e,yt);if(a.status===We&&e.avail_in!==0)return de(e,yt);if(e.avail_in!==0||a.lookahead!==0||i!==Ee&&a.status!==We){var d=a.strategy===at?Hr(a,i):a.strategy===kr?Cr(a,i):ze[a.level].func(a,i);if((d===pe||d===Fe)&&(a.status=We),d===U||d===pe)return e.avail_out===0&&(a.last_flush=-1),te;if(d===Xe&&(i===Er?Y._tr_align(a):i!==Ia&&(Y._tr_stored_block(a,0,0,!1),i===br&&(oe(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),le(e),e.avail_out===0))return a.last_flush=-1,te}return i!==se?te:a.wrap<=0?Aa:(a.wrap===2?(N(a,e.adler&255),N(a,e.adler>>8&255),N(a,e.adler>>16&255),N(a,e.adler>>24&255),N(a,e.total_in&255),N(a,e.total_in>>8&255),N(a,e.total_in>>16&255),N(a,e.total_in>>24&255)):(Ke(a,e.adler>>>16),Ke(a,e.adler&65535)),le(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?te:Aa)}h(Xr,\"deflate\");function Yr(e){var i;return!e||!e.state?V:(i=e.state.status,i!==_t&&i!==Ft&&i!==it&&i!==rt&&i!==nt&&i!==ve&&i!==We?de(e,V):(e.state=null,i===ve?de(e,xr):te))}h(Yr,\"deflateEnd\");function Vr(e,i){var t=i.length,a,r,n,f,l,d,_,o;if(!e||!e.state||(a=e.state,f=a.wrap,f===2||f===1&&a.status!==_t||a.lookahead))return V;for(f===1&&(e.adler=ma(e.adler,i,t,0)),a.wrap=0,t>=a.w_size&&(f===0&&(oe(a.head),a.strstart=0,a.block_start=0,a.insert=0),o=new P.Buf8(a.w_size),P.arraySet(o,i,t-a.w_size,a.w_size,0),i=o,t=a.w_size),l=e.avail_in,d=e.next_in,_=e.input,e.avail_in=t,e.next_in=0,e.input=i,we(a);a.lookahead>=R;){r=a.strstart,n=a.lookahead-(R-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[r+R-1])&a.hash_mask,a.prev[r&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=r,r++;while(--n);a.strstart=r,a.lookahead=R-1,we(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=R-1,a.match_available=0,e.next_in=d,e.input=_,e.avail_in=l,a.wrap=f,te}h(Vr,\"deflateSetDictionary\");ae.deflateInit=Wr;ae.deflateInit2=Fa;ae.deflateReset=za;ae.deflateResetKeep=Da;ae.deflateSetHeader=Kr;ae.deflate=Xr;ae.deflateEnd=Yr;ae.deflateSetDictionary=Vr;ae.deflateInfo=\"pako deflate (from Nodeca project)\"});var Ua=K((Kn,Ma)=>{\"use strict\";z();var lt=30,qr=12;Ma.exports=h(function(i,t){var a,r,n,f,l,d,_,o,T,c,s,b,E,S,x,m,D,L,p,y,I,Z,A,M,k;a=i.state,r=i.next_in,M=i.input,n=r+(i.avail_in-5),f=i.next_out,k=i.output,l=f-(t-i.avail_out),d=f+(i.avail_out-257),_=a.dmax,o=a.wsize,T=a.whave,c=a.wnext,s=a.window,b=a.hold,E=a.bits,S=a.lencode,x=a.distcode,m=(1<<a.lenbits)-1,D=(1<<a.distbits)-1;e:do{E<15&&(b+=M[r++]<<E,E+=8,b+=M[r++]<<E,E+=8),L=S[b&m];t:for(;;){if(p=L>>>24,b>>>=p,E-=p,p=L>>>16&255,p===0)k[f++]=L&65535;else if(p&16){y=L&65535,p&=15,p&&(E<p&&(b+=M[r++]<<E,E+=8),y+=b&(1<<p)-1,b>>>=p,E-=p),E<15&&(b+=M[r++]<<E,E+=8,b+=M[r++]<<E,E+=8),L=x[b&D];a:for(;;){if(p=L>>>24,b>>>=p,E-=p,p=L>>>16&255,p&16){if(I=L&65535,p&=15,E<p&&(b+=M[r++]<<E,E+=8,E<p&&(b+=M[r++]<<E,E+=8)),I+=b&(1<<p)-1,I>_){i.msg=\"invalid distance too far back\",a.mode=lt;break e}if(b>>>=p,E-=p,p=f-l,I>p){if(p=I-p,p>T&&a.sane){i.msg=\"invalid distance too far back\",a.mode=lt;break e}if(Z=0,A=s,c===0){if(Z+=o-p,p<y){y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}}else if(c<p){if(Z+=o+c-p,p-=c,p<y){y-=p;do k[f++]=s[Z++];while(--p);if(Z=0,c<y){p=c,y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}}}else if(Z+=c-p,p<y){y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}for(;y>2;)k[f++]=A[Z++],k[f++]=A[Z++],k[f++]=A[Z++],y-=3;y&&(k[f++]=A[Z++],y>1&&(k[f++]=A[Z++]))}else{Z=f-I;do k[f++]=k[Z++],k[f++]=k[Z++],k[f++]=k[Z++],y-=3;while(y>2);y&&(k[f++]=k[Z++],y>1&&(k[f++]=k[Z++]))}}else if((p&64)===0){L=x[(L&65535)+(b&(1<<p)-1)];continue a}else{i.msg=\"invalid distance code\",a.mode=lt;break e}break}}else if((p&64)===0){L=S[(L&65535)+(b&(1<<p)-1)];continue t}else if(p&32){a.mode=qr;break e}else{i.msg=\"invalid literal/length code\",a.mode=lt;break e}break}}while(r<n&&f<d);y=E>>3,r-=y,E-=y<<3,b&=(1<<E)-1,i.next_in=r,i.next_out=f,i.avail_in=r<n?5+(n-r):5-(r-n),i.avail_out=f<d?257+(d-f):257-(f-d),a.hold=b,a.bits=E},\"inflate_fast\")});var Wa=K((Yn,Ka)=>{\"use strict\";z();var Ba=Me(),Oe=15,Ca=852,Ha=592,Pa=0,Ot=1,Ga=2,jr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Jr=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Qr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],$r=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Ka.exports=h(function(i,t,a,r,n,f,l,d){var _=d.bits,o=0,T=0,c=0,s=0,b=0,E=0,S=0,x=0,m=0,D=0,L,p,y,I,Z,A=null,M=0,k,j=new Ba.Buf16(Oe+1),je=new Ba.Buf16(Oe+1),Je=null,Vt=0,qt,Qe,$e;for(o=0;o<=Oe;o++)j[o]=0;for(T=0;T<r;T++)j[t[a+T]]++;for(b=_,s=Oe;s>=1&&j[s]===0;s--);if(b>s&&(b=s),s===0)return n[f++]=1<<24|64<<16|0,n[f++]=1<<24|64<<16|0,d.bits=1,0;for(c=1;c<s&&j[c]===0;c++);for(b<c&&(b=c),x=1,o=1;o<=Oe;o++)if(x<<=1,x-=j[o],x<0)return-1;if(x>0&&(i===Pa||s!==1))return-1;for(je[1]=0,o=1;o<Oe;o++)je[o+1]=je[o]+j[o];for(T=0;T<r;T++)t[a+T]!==0&&(l[je[t[a+T]]++]=T);if(i===Pa?(A=Je=l,k=19):i===Ot?(A=jr,M-=257,Je=Jr,Vt-=257,k=256):(A=Qr,Je=$r,k=-1),D=0,T=0,o=c,Z=f,E=b,S=0,y=-1,m=1<<b,I=m-1,i===Ot&&m>Ca||i===Ga&&m>Ha)return 1;for(;;){qt=o-S,l[T]<k?(Qe=0,$e=l[T]):l[T]>k?(Qe=Je[Vt+l[T]],$e=A[M+l[T]]):(Qe=96,$e=0),L=1<<o-S,p=1<<E,c=p;do p-=L,n[Z+(D>>S)+p]=qt<<24|Qe<<16|$e|0;while(p!==0);for(L=1<<o-1;D&L;)L>>=1;if(L!==0?(D&=L-1,D+=L):D=0,T++,--j[o]===0){if(o===s)break;o=t[a+l[T]]}if(o>b&&(D&I)!==y){for(S===0&&(S=b),Z+=c,E=o-S,x=1<<E;E+S<s&&(x-=j[E+S],!(x<=0));)E++,x<<=1;if(m+=1<<E,i===Ot&&m>Ca||i===Ga&&m>Ha)return 1;y=D&I,n[y]=b<<24|E<<16|Z-f|0}}return D!==0&&(n[Z+D]=o-S<<24|64<<16|0),d.bits=b,0},\"inflate_table\")});var Li=K(Q=>{\"use strict\";z();var W=Me(),Pt=Nt(),ie=mt(),en=Ua(),Ye=Wa(),tn=0,wi=1,Ei=2,Xa=4,an=5,ot=6,be=0,rn=1,nn=2,q=-2,bi=-3,Gt=-4,fn=-5,Ya=8,xi=1,Va=2,qa=3,ja=4,Ja=5,Qa=6,$a=7,ei=8,ti=9,ai=10,st=11,fe=12,Mt=13,ii=14,Ut=15,ri=16,ni=17,fi=18,_i=19,ht=20,dt=21,li=22,oi=23,hi=24,di=25,si=26,Bt=27,ui=28,ci=29,F=30,Kt=31,_n=32,ln=852,on=592,hn=15,dn=hn;function vi(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}h(vi,\"zswap32\");function sn(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new W.Buf16(320),this.work=new W.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}h(sn,\"InflateState\");function gi(e){var i;return!e||!e.state?q:(i=e.state,e.total_in=e.total_out=i.total=0,e.msg=\"\",i.wrap&&(e.adler=i.wrap&1),i.mode=xi,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new W.Buf32(ln),i.distcode=i.distdyn=new W.Buf32(on),i.sane=1,i.back=-1,be)}h(gi,\"inflateResetKeep\");function Zi(e){var i;return!e||!e.state?q:(i=e.state,i.wsize=0,i.whave=0,i.wnext=0,gi(e))}h(Zi,\"inflateReset\");function ki(e,i){var t,a;return!e||!e.state||(a=e.state,i<0?(t=0,i=-i):(t=(i>>4)+1,i<48&&(i&=15)),i&&(i<8||i>15))?q:(a.window!==null&&a.wbits!==i&&(a.window=null),a.wrap=t,a.wbits=i,Zi(e))}h(ki,\"inflateReset2\");function Si(e,i){var t,a;return e?(a=new sn,e.state=a,a.window=null,t=ki(e,i),t!==be&&(e.state=null),t):q}h(Si,\"inflateInit2\");function un(e){return Si(e,dn)}h(un,\"inflateInit\");var pi=!0,Ct,Ht;function cn(e){if(pi){var i;for(Ct=new W.Buf32(512),Ht=new W.Buf32(32),i=0;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(Ye(wi,e.lens,0,288,Ct,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;Ye(Ei,e.lens,0,32,Ht,0,e.work,{bits:5}),pi=!1}e.lencode=Ct,e.lenbits=9,e.distcode=Ht,e.distbits=5}h(cn,\"fixedtables\");function Ti(e,i,t,a){var r,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new W.Buf8(n.wsize)),a>=n.wsize?(W.arraySet(n.window,i,t-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(r=n.wsize-n.wnext,r>a&&(r=a),W.arraySet(n.window,i,t-a,r,n.wnext),a-=r,a?(W.arraySet(n.window,i,t-a,a,0),n.wnext=a,n.whave=n.wsize):(n.wnext+=r,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=r))),0}h(Ti,\"updatewindow\");function vn(e,i){var t,a,r,n,f,l,d,_,o,T,c,s,b,E,S=0,x,m,D,L,p,y,I,Z,A=new W.Buf8(4),M,k,j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return q;t=e.state,t.mode===fe&&(t.mode=Mt),f=e.next_out,r=e.output,d=e.avail_out,n=e.next_in,a=e.input,l=e.avail_in,_=t.hold,o=t.bits,T=l,c=d,Z=be;e:for(;;)switch(t.mode){case xi:if(t.wrap===0){t.mode=Mt;break}for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.wrap&2&&_===35615){t.check=0,A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0),_=0,o=0,t.mode=Va;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg=\"incorrect header check\",t.mode=F;break}if((_&15)!==Ya){e.msg=\"unknown compression method\",t.mode=F;break}if(_>>>=4,o-=4,I=(_&15)+8,t.wbits===0)t.wbits=I;else if(I>t.wbits){e.msg=\"invalid window size\",t.mode=F;break}t.dmax=1<<I,e.adler=t.check=1,t.mode=_&512?ai:fe,_=0,o=0;break;case Va:for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.flags=_,(t.flags&255)!==Ya){e.msg=\"unknown compression method\",t.mode=F;break}if(t.flags&57344){e.msg=\"unknown header flags set\",t.mode=F;break}t.head&&(t.head.text=_>>8&1),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0,t.mode=qa;case qa:for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.head&&(t.head.time=_),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,A[2]=_>>>16&255,A[3]=_>>>24&255,t.check=ie(t.check,A,4,0)),_=0,o=0,t.mode=ja;case ja:for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.head&&(t.head.xflags=_&255,t.head.os=_>>8),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0,t.mode=Ja;case Ja:if(t.flags&1024){for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.length=_,t.head&&(t.head.extra_len=_),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0}else t.head&&(t.head.extra=null);t.mode=Qa;case Qa:if(t.flags&1024&&(s=t.length,s>l&&(s=l),s&&(t.head&&(I=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),W.arraySet(t.head.extra,a,n,s,I)),t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,t.length-=s),t.length))break e;t.length=0,t.mode=$a;case $a:if(t.flags&2048){if(l===0)break e;s=0;do I=a[n+s++],t.head&&I&&t.length<65536&&(t.head.name+=String.fromCharCode(I));while(I&&s<l);if(t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,I)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=ei;case ei:if(t.flags&4096){if(l===0)break e;s=0;do I=a[n+s++],t.head&&I&&t.length<65536&&(t.head.comment+=String.fromCharCode(I));while(I&&s<l);if(t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,I)break e}else t.head&&(t.head.comment=null);t.mode=ti;case ti:if(t.flags&512){for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_!==(t.check&65535)){e.msg=\"header crc mismatch\",t.mode=F;break}_=0,o=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=fe;break;case ai:for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}e.adler=t.check=vi(_),_=0,o=0,t.mode=st;case st:if(t.havedict===0)return e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,nn;e.adler=t.check=1,t.mode=fe;case fe:if(i===an||i===ot)break e;case Mt:if(t.last){_>>>=o&7,o-=o&7,t.mode=Bt;break}for(;o<3;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}switch(t.last=_&1,_>>>=1,o-=1,_&3){case 0:t.mode=ii;break;case 1:if(cn(t),t.mode=ht,i===ot){_>>>=2,o-=2;break e}break;case 2:t.mode=ni;break;case 3:e.msg=\"invalid block type\",t.mode=F}_>>>=2,o-=2;break;case ii:for(_>>>=o&7,o-=o&7;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if((_&65535)!==(_>>>16^65535)){e.msg=\"invalid stored block lengths\",t.mode=F;break}if(t.length=_&65535,_=0,o=0,t.mode=Ut,i===ot)break e;case Ut:t.mode=ri;case ri:if(s=t.length,s){if(s>l&&(s=l),s>d&&(s=d),s===0)break e;W.arraySet(r,a,n,s,f),l-=s,n+=s,d-=s,f+=s,t.length-=s;break}t.mode=fe;break;case ni:for(;o<14;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.nlen=(_&31)+257,_>>>=5,o-=5,t.ndist=(_&31)+1,_>>>=5,o-=5,t.ncode=(_&15)+4,_>>>=4,o-=4,t.nlen>286||t.ndist>30){e.msg=\"too many length or distance symbols\",t.mode=F;break}t.have=0,t.mode=fi;case fi:for(;t.have<t.ncode;){for(;o<3;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.lens[j[t.have++]]=_&7,_>>>=3,o-=3}for(;t.have<19;)t.lens[j[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,M={bits:t.lenbits},Z=Ye(tn,t.lens,0,19,t.lencode,0,t.work,M),t.lenbits=M.bits,Z){e.msg=\"invalid code lengths set\",t.mode=F;break}t.have=0,t.mode=_i;case _i:for(;t.have<t.nlen+t.ndist;){for(;S=t.lencode[_&(1<<t.lenbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(D<16)_>>>=x,o-=x,t.lens[t.have++]=D;else{if(D===16){for(k=x+2;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_>>>=x,o-=x,t.have===0){e.msg=\"invalid bit length repeat\",t.mode=F;break}I=t.lens[t.have-1],s=3+(_&3),_>>>=2,o-=2}else if(D===17){for(k=x+3;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=x,o-=x,I=0,s=3+(_&7),_>>>=3,o-=3}else{for(k=x+7;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=x,o-=x,I=0,s=11+(_&127),_>>>=7,o-=7}if(t.have+s>t.nlen+t.ndist){e.msg=\"invalid bit length repeat\",t.mode=F;break}for(;s--;)t.lens[t.have++]=I}}if(t.mode===F)break;if(t.lens[256]===0){e.msg=\"invalid code -- missing end-of-block\",t.mode=F;break}if(t.lenbits=9,M={bits:t.lenbits},Z=Ye(wi,t.lens,0,t.nlen,t.lencode,0,t.work,M),t.lenbits=M.bits,Z){e.msg=\"invalid literal/lengths set\",t.mode=F;break}if(t.distbits=6,t.distcode=t.distdyn,M={bits:t.distbits},Z=Ye(Ei,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,M),t.distbits=M.bits,Z){e.msg=\"invalid distances set\",t.mode=F;break}if(t.mode=ht,i===ot)break e;case ht:t.mode=dt;case dt:if(l>=6&&d>=258){e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,en(e,c),f=e.next_out,r=e.output,d=e.avail_out,n=e.next_in,a=e.input,l=e.avail_in,_=t.hold,o=t.bits,t.mode===fe&&(t.back=-1);break}for(t.back=0;S=t.lencode[_&(1<<t.lenbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(m&&(m&240)===0){for(L=x,p=m,y=D;S=t.lencode[y+((_&(1<<L+p)-1)>>L)],x=S>>>24,m=S>>>16&255,D=S&65535,!(L+x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=L,o-=L,t.back+=L}if(_>>>=x,o-=x,t.back+=x,t.length=D,m===0){t.mode=si;break}if(m&32){t.back=-1,t.mode=fe;break}if(m&64){e.msg=\"invalid literal/length code\",t.mode=F;break}t.extra=m&15,t.mode=li;case li:if(t.extra){for(k=t.extra;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.length+=_&(1<<t.extra)-1,_>>>=t.extra,o-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=oi;case oi:for(;S=t.distcode[_&(1<<t.distbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if((m&240)===0){for(L=x,p=m,y=D;S=t.distcode[y+((_&(1<<L+p)-1)>>L)],x=S>>>24,m=S>>>16&255,D=S&65535,!(L+x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=L,o-=L,t.back+=L}if(_>>>=x,o-=x,t.back+=x,m&64){e.msg=\"invalid distance code\",t.mode=F;break}t.offset=D,t.extra=m&15,t.mode=hi;case hi:if(t.extra){for(k=t.extra;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.offset+=_&(1<<t.extra)-1,_>>>=t.extra,o-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg=\"invalid distance too far back\",t.mode=F;break}t.mode=di;case di:if(d===0)break e;if(s=c-d,t.offset>s){if(s=t.offset-s,s>t.whave&&t.sane){e.msg=\"invalid distance too far back\",t.mode=F;break}s>t.wnext?(s-=t.wnext,b=t.wsize-s):b=t.wnext-s,s>t.length&&(s=t.length),E=t.window}else E=r,b=f-t.offset,s=t.length;s>d&&(s=d),d-=s,t.length-=s;do r[f++]=E[b++];while(--s);t.length===0&&(t.mode=dt);break;case si:if(d===0)break e;r[f++]=t.length,d--,t.mode=dt;break;case Bt:if(t.wrap){for(;o<32;){if(l===0)break e;l--,_|=a[n++]<<o,o+=8}if(c-=d,e.total_out+=c,t.total+=c,c&&(e.adler=t.check=t.flags?ie(t.check,r,c,f-c):Pt(t.check,r,c,f-c)),c=d,(t.flags?_:vi(_))!==t.check){e.msg=\"incorrect data check\",t.mode=F;break}_=0,o=0}t.mode=ui;case ui:if(t.wrap&&t.flags){for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_!==(t.total&4294967295)){e.msg=\"incorrect length check\",t.mode=F;break}_=0,o=0}t.mode=ci;case ci:Z=rn;break e;case F:Z=bi;break e;case Kt:return Gt;case _n:default:return q}return e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,(t.wsize||c!==e.avail_out&&t.mode<F&&(t.mode<Bt||i!==Xa))&&Ti(e,e.output,e.next_out,c-e.avail_out)?(t.mode=Kt,Gt):(T-=e.avail_in,c-=e.avail_out,e.total_in+=T,e.total_out+=c,t.total+=c,t.wrap&&c&&(e.adler=t.check=t.flags?ie(t.check,r,c,e.next_out-c):Pt(t.check,r,c,e.next_out-c)),e.data_type=t.bits+(t.last?64:0)+(t.mode===fe?128:0)+(t.mode===ht||t.mode===Ut?256:0),(T===0&&c===0||i===Xa)&&Z===be&&(Z=fn),Z)}h(vn,\"inflate\");function pn(e){if(!e||!e.state)return q;var i=e.state;return i.window&&(i.window=null),e.state=null,be}h(pn,\"inflateEnd\");function wn(e,i){var t;return!e||!e.state||(t=e.state,(t.wrap&2)===0)?q:(t.head=i,i.done=!1,be)}h(wn,\"inflateGetHeader\");function En(e,i){var t=i.length,a,r,n;return!e||!e.state||(a=e.state,a.wrap!==0&&a.mode!==st)?q:a.mode===st&&(r=1,r=Pt(r,i,t,0),r!==a.check)?bi:(n=Ti(e,i,t,t),n?(a.mode=Kt,Gt):(a.havedict=1,be))}h(En,\"inflateSetDictionary\");Q.inflateReset=Zi;Q.inflateReset2=ki;Q.inflateResetKeep=gi;Q.inflateInit=un;Q.inflateInit2=Si;Q.inflate=vn;Q.inflateEnd=pn;Q.inflateGetHeader=wn;Q.inflateSetDictionary=En;Q.inflateInfo=\"pako inflate (from Nodeca project)\"});var Ii=K(($n,Ri)=>{\"use strict\";z();Ri.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var Ni=K(u=>{\"use strict\";z();var X=Qt(),bn=ea(),Ve=Oa(),xe=Li(),Ai=Ii();for(Wt in Ai)u[Wt]=Ai[Wt];var Wt;u.NONE=0;u.DEFLATE=1;u.INFLATE=2;u.GZIP=3;u.GUNZIP=4;u.DEFLATERAW=5;u.INFLATERAW=6;u.UNZIP=7;var xn=31,gn=139;function C(e){if(typeof e!=\"number\"||e<u.DEFLATE||e>u.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}h(C,\"Zlib\");C.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,X(this.init_done,\"close before init\"),X(this.mode<=u.UNZIP),this.mode===u.DEFLATE||this.mode===u.GZIP||this.mode===u.DEFLATERAW?Ve.deflateEnd(this.strm):(this.mode===u.INFLATE||this.mode===u.GUNZIP||this.mode===u.INFLATERAW||this.mode===u.UNZIP)&&xe.inflateEnd(this.strm),this.mode=u.NONE,this.dictionary=null};C.prototype.write=function(e,i,t,a,r,n,f){return this._write(!0,e,i,t,a,r,n,f)};C.prototype.writeSync=function(e,i,t,a,r,n,f){return this._write(!1,e,i,t,a,r,n,f)};C.prototype._write=function(e,i,t,a,r,n,f,l){if(X.equal(arguments.length,8),X(this.init_done,\"write before init\"),X(this.mode!==u.NONE,\"already finalized\"),X.equal(!1,this.write_in_progress,\"write already in progress\"),X.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,X.equal(!1,i===void 0,\"must provide flush value\"),this.write_in_progress=!0,i!==u.Z_NO_FLUSH&&i!==u.Z_PARTIAL_FLUSH&&i!==u.Z_SYNC_FLUSH&&i!==u.Z_FULL_FLUSH&&i!==u.Z_FINISH&&i!==u.Z_BLOCK)throw new Error(\"Invalid flush value\");if(t==null&&(t=Buffer.alloc(0),r=0,a=0),this.strm.avail_in=r,this.strm.input=t,this.strm.next_in=a,this.strm.avail_out=l,this.strm.output=n,this.strm.next_out=f,this.flush=i,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return process.nextTick(function(){d._process(),d._after()}),this};C.prototype._afterSync=function(){var e=this.strm.avail_out,i=this.strm.avail_in;return this.write_in_progress=!1,[i,e]};C.prototype._process=function(){var e=null;switch(this.mode){case u.DEFLATE:case u.GZIP:case u.DEFLATERAW:this.err=Ve.deflate(this.strm,this.flush);break;case u.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===xn){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=u.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===gn?(this.gzip_id_bytes_read=2,this.mode=u.GUNZIP):this.mode=u.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case u.INFLATE:case u.GUNZIP:case u.INFLATERAW:for(this.err=xe.inflate(this.strm,this.flush),this.err===u.Z_NEED_DICT&&this.dictionary&&(this.err=xe.inflateSetDictionary(this.strm,this.dictionary),this.err===u.Z_OK?this.err=xe.inflate(this.strm,this.flush):this.err===u.Z_DATA_ERROR&&(this.err=u.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===u.GUNZIP&&this.err===u.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=xe.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}};C.prototype._checkError=function(){switch(this.err){case u.Z_OK:case u.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===u.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case u.Z_STREAM_END:break;case u.Z_NEED_DICT:return this.dictionary==null?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0};C.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,i=this.strm.avail_in;this.write_in_progress=!1,this.callback(i,e),this.pending_close&&this.close()}};C.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};C.prototype.init=function(e,i,t,a,r){X(arguments.length===4||arguments.length===5,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),X(e>=8&&e<=15,\"invalid windowBits\"),X(i>=-1&&i<=9,\"invalid compression level\"),X(t>=1&&t<=9,\"invalid memlevel\"),X(a===u.Z_FILTERED||a===u.Z_HUFFMAN_ONLY||a===u.Z_RLE||a===u.Z_FIXED||a===u.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(i,e,t,a,r),this._setDictionary()};C.prototype.params=function(){throw new Error(\"deflateParams Not supported\")};C.prototype.reset=function(){this._reset(),this._setDictionary()};C.prototype._init=function(e,i,t,a,r){switch(this.level=e,this.windowBits=i,this.memLevel=t,this.strategy=a,this.flush=u.Z_NO_FLUSH,this.err=u.Z_OK,(this.mode===u.GZIP||this.mode===u.GUNZIP)&&(this.windowBits+=16),this.mode===u.UNZIP&&(this.windowBits+=32),(this.mode===u.DEFLATERAW||this.mode===u.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new bn,this.mode){case u.DEFLATE:case u.GZIP:case u.DEFLATERAW:this.err=Ve.deflateInit2(this.strm,this.level,u.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case u.INFLATE:case u.GUNZIP:case u.INFLATERAW:case u.UNZIP:this.err=xe.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==u.Z_OK&&this._error(\"Init error\"),this.dictionary=r,this.write_in_progress=!1,this.init_done=!0};C.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=u.Z_OK,this.mode){case u.DEFLATE:case u.DEFLATERAW:this.err=Ve.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==u.Z_OK&&this._error(\"Failed to set dictionary\")}};C.prototype._reset=function(){switch(this.err=u.Z_OK,this.mode){case u.DEFLATE:case u.DEFLATERAW:case u.GZIP:this.err=Ve.deflateReset(this.strm);break;case u.INFLATE:case u.INFLATERAW:case u.GUNZIP:this.err=xe.inflateReset(this.strm);break;default:break}this.err!==u.Z_OK&&this._error(\"Failed to reset stream\")};u.Zlib=C});var Oi=K(w=>{\"use strict\";z();var re=(bt(),jt(Jt)).Buffer,zi=Ci().Transform,g=Ni(),ue=Bi(),qe=Qt().ok,Yt=(bt(),jt(Jt)).kMaxLength,Fi=\"Cannot create final Buffer. It would be larger than 0x\"+Yt.toString(16)+\" bytes\";g.Z_MIN_WINDOWBITS=8;g.Z_MAX_WINDOWBITS=15;g.Z_DEFAULT_WINDOWBITS=15;g.Z_MIN_CHUNK=64;g.Z_MAX_CHUNK=1/0;g.Z_DEFAULT_CHUNK=16*1024;g.Z_MIN_MEMLEVEL=1;g.Z_MAX_MEMLEVEL=9;g.Z_DEFAULT_MEMLEVEL=8;g.Z_MIN_LEVEL=-1;g.Z_MAX_LEVEL=9;g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION;var mi=Object.keys(g);for(ut=0;ut<mi.length;ut++)ct=mi[ut],ct.match(/^Z/)&&Object.defineProperty(w,ct,{enumerable:!0,value:g[ct],writable:!1});var ct,ut,pt={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ERROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},yi=Object.keys(pt);for(vt=0;vt<yi.length;vt++)Xt=yi[vt],pt[pt[Xt]]=Xt;var Xt,vt;Object.defineProperty(w,\"codes\",{enumerable:!0,value:Object.freeze(pt),writable:!1});w.Deflate=ge;w.Inflate=Ze;w.Gzip=ke;w.Gunzip=Se;w.DeflateRaw=Te;w.InflateRaw=Le;w.Unzip=Re;w.createDeflate=function(e){return new ge(e)};w.createInflate=function(e){return new Ze(e)};w.createDeflateRaw=function(e){return new Te(e)};w.createInflateRaw=function(e){return new Le(e)};w.createGzip=function(e){return new ke(e)};w.createGunzip=function(e){return new Se(e)};w.createUnzip=function(e){return new Re(e)};w.deflate=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new ge(i),e,t)};w.deflateSync=function(e,i){return Ae(new ge(i),e)};w.gzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new ke(i),e,t)};w.gzipSync=function(e,i){return Ae(new ke(i),e)};w.deflateRaw=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Te(i),e,t)};w.deflateRawSync=function(e,i){return Ae(new Te(i),e)};w.unzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Re(i),e,t)};w.unzipSync=function(e,i){return Ae(new Re(i),e)};w.inflate=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Ze(i),e,t)};w.inflateSync=function(e,i){return Ae(new Ze(i),e)};w.gunzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Se(i),e,t)};w.gunzipSync=function(e,i){return Ae(new Se(i),e)};w.inflateRaw=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Le(i),e,t)};w.inflateRawSync=function(e,i){return Ae(new Le(i),e)};function Ie(e,i,t){var a=[],r=0;e.on(\"error\",f),e.on(\"end\",l),e.end(i),n();function n(){for(var d;(d=e.read())!==null;)a.push(d),r+=d.length;e.once(\"readable\",n)}h(n,\"flow\");function f(d){e.removeListener(\"end\",l),e.removeListener(\"readable\",n),t(d)}h(f,\"onError\");function l(){var d,_=null;r>=Yt?_=new RangeError(Fi):d=re.concat(a,r),a=[],e.close(),t(_,d)}h(l,\"onEnd\")}h(Ie,\"zlibBuffer\");function Ae(e,i){if(typeof i==\"string\"&&(i=re.from(i)),!re.isBuffer(i))throw new TypeError(\"Not a string or buffer\");var t=e._finishFlushFlag;return e._processChunk(i,t)}h(Ae,\"zlibBufferSync\");function ge(e){if(!(this instanceof ge))return new ge(e);O.call(this,e,g.DEFLATE)}h(ge,\"Deflate\");function Ze(e){if(!(this instanceof Ze))return new Ze(e);O.call(this,e,g.INFLATE)}h(Ze,\"Inflate\");function ke(e){if(!(this instanceof ke))return new ke(e);O.call(this,e,g.GZIP)}h(ke,\"Gzip\");function Se(e){if(!(this instanceof Se))return new Se(e);O.call(this,e,g.GUNZIP)}h(Se,\"Gunzip\");function Te(e){if(!(this instanceof Te))return new Te(e);O.call(this,e,g.DEFLATERAW)}h(Te,\"DeflateRaw\");function Le(e){if(!(this instanceof Le))return new Le(e);O.call(this,e,g.INFLATERAW)}h(Le,\"InflateRaw\");function Re(e){if(!(this instanceof Re))return new Re(e);O.call(this,e,g.UNZIP)}h(Re,\"Unzip\");function Di(e){return e===g.Z_NO_FLUSH||e===g.Z_PARTIAL_FLUSH||e===g.Z_SYNC_FLUSH||e===g.Z_FULL_FLUSH||e===g.Z_FINISH||e===g.Z_BLOCK}h(Di,\"isValidFlushFlag\");function O(e,i){var t=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||w.Z_DEFAULT_CHUNK,zi.call(this,e),e.flush&&!Di(e.flush))throw new Error(\"Invalid flush flag: \"+e.flush);if(e.finishFlush&&!Di(e.finishFlush))throw new Error(\"Invalid flush flag: \"+e.finishFlush);if(this._flushFlag=e.flush||g.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<\"u\"?e.finishFlush:g.Z_FINISH,e.chunkSize&&(e.chunkSize<w.Z_MIN_CHUNK||e.chunkSize>w.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+e.chunkSize);if(e.windowBits&&(e.windowBits<w.Z_MIN_WINDOWBITS||e.windowBits>w.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+e.windowBits);if(e.level&&(e.level<w.Z_MIN_LEVEL||e.level>w.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+e.level);if(e.memLevel&&(e.memLevel<w.Z_MIN_MEMLEVEL||e.memLevel>w.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+e.memLevel);if(e.strategy&&e.strategy!=w.Z_FILTERED&&e.strategy!=w.Z_HUFFMAN_ONLY&&e.strategy!=w.Z_RLE&&e.strategy!=w.Z_FIXED&&e.strategy!=w.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+e.strategy);if(e.dictionary&&!re.isBuffer(e.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new g.Zlib(i);var a=this;this._hadError=!1,this._handle.onerror=function(f,l){wt(a),a._hadError=!0;var d=new Error(f);d.errno=l,d.code=w.codes[l],a.emit(\"error\",d)};var r=w.Z_DEFAULT_COMPRESSION;typeof e.level==\"number\"&&(r=e.level);var n=w.Z_DEFAULT_STRATEGY;typeof e.strategy==\"number\"&&(n=e.strategy),this._handle.init(e.windowBits||w.Z_DEFAULT_WINDOWBITS,r,e.memLevel||w.Z_DEFAULT_MEMLEVEL,n,e.dictionary),this._buffer=re.allocUnsafe(this._chunkSize),this._offset=0,this._level=r,this._strategy=n,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:h(function(){return!t._handle},\"get\"),configurable:!0,enumerable:!0})}h(O,\"Zlib\");ue.inherits(O,zi);O.prototype.params=function(e,i,t){if(e<w.Z_MIN_LEVEL||e>w.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+e);if(i!=w.Z_FILTERED&&i!=w.Z_HUFFMAN_ONLY&&i!=w.Z_RLE&&i!=w.Z_FIXED&&i!=w.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+i);if(this._level!==e||this._strategy!==i){var a=this;this.flush(g.Z_SYNC_FLUSH,function(){qe(a._handle,\"zlib binding closed\"),a._handle.params(e,i),a._hadError||(a._level=e,a._strategy=i,t&&t())})}else process.nextTick(t)};O.prototype.reset=function(){return qe(this._handle,\"zlib binding closed\"),this._handle.reset()};O.prototype._flush=function(e){this._transform(re.alloc(0),\"\",e)};O.prototype.flush=function(e,i){var t=this,a=this._writableState;(typeof e==\"function\"||e===void 0&&!i)&&(i=e,e=g.Z_FULL_FLUSH),a.ended?i&&process.nextTick(i):a.ending?i&&this.once(\"end\",i):a.needDrain?i&&this.once(\"drain\",function(){return t.flush(e,i)}):(this._flushFlag=e,this.write(re.alloc(0),\"\",i))};O.prototype.close=function(e){wt(this,e),process.nextTick(Zn,this)};function wt(e,i){i&&process.nextTick(i),e._handle&&(e._handle.close(),e._handle=null)}h(wt,\"_close\");function Zn(e){e.emit(\"close\")}h(Zn,\"emitCloseNT\");O.prototype._transform=function(e,i,t){var a,r=this._writableState,n=r.ending||r.ended,f=n&&(!e||r.length===e.length);if(e!==null&&!re.isBuffer(e))return t(new Error(\"invalid input\"));if(!this._handle)return t(new Error(\"zlib binding closed\"));f?a=this._finishFlushFlag:(a=this._flushFlag,e.length>=r.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH)),this._processChunk(e,a,t)};O.prototype._processChunk=function(e,i,t){var a=e&&e.length,r=this._chunkSize-this._offset,n=0,f=this,l=typeof t==\"function\";if(!l){var d=[],_=0,o;this.on(\"error\",function(E){o=E}),qe(this._handle,\"zlib binding closed\");do var T=this._handle.writeSync(i,e,n,a,this._buffer,this._offset,r);while(!this._hadError&&b(T[0],T[1]));if(this._hadError)throw o;if(_>=Yt)throw wt(this),new RangeError(Fi);var c=re.concat(d,_);return wt(this),c}qe(this._handle,\"zlib binding closed\");var s=this._handle.write(i,e,n,a,this._buffer,this._offset,r);s.buffer=e,s.callback=b;function b(E,S){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var x=r-S;if(qe(x>=0,\"have should not go down\"),x>0){var m=f._buffer.slice(f._offset,f._offset+x);f._offset+=x,l?f.push(m):(d.push(m),_+=m.length)}if((S===0||f._offset>=f._chunkSize)&&(r=f._chunkSize,f._offset=0,f._buffer=re.allocUnsafe(f._chunkSize)),S===0){if(n+=a-E,a=E,!l)return!0;var D=f._handle.write(i,e,n,a,f._buffer,f._offset,f._chunkSize);D.callback=b,D.buffer=e;return}if(!l)return!1;t()}}h(b,\"callback\")};ue.inherits(ge,O);ue.inherits(Ze,O);ue.inherits(ke,O);ue.inherits(Se,O);ue.inherits(Te,O);ue.inherits(Le,O);ue.inherits(Re,O)});z();z();bt();var Et=Ui(Oi(),1);import{binary as Mi,primitive as kn}from\"../web.mjs\";for(let e of[\"gzip\",\"gunzip\",\"deflate\",\"inflate\",\"deflateRaw\",\"inflateRaw\",\"unzip\"]){let i=e+\"Sync\",t=h((a,r={})=>{let n=Mi(typeof a==\"string\"?Buffer.from(a):a);r??={};let f=Mi(r.dictionary??new ArrayBuffer(0)),l={};for(let d of[\"level\",\"windowBits\",\"memLevel\",\"strategy\",\"chunkSize\",\"flush\",\"finishFlush\",\"maxOutputLength\"])r[d]!==void 0&&(l[d]=r[d]);return Buffer.from(kn(\"zlib\",{method:i,offset:n.offset,length:n.length,options:l,dictionary:r.dictionary===void 0?void 0:{offset:f.offset,length:f.length}},n.buffer,f.buffer))},\"compress\");Et.default[i]=t,Et.default[e]=(a,r,n)=>{if(typeof r==\"function\"&&(n=r,r=void 0),typeof n!=\"function\")throw new TypeError(\"Expected a callback.\");queueMicrotask(()=>{let f;try{f=t(a,r)}catch(l){n(l);return}n(null,f)})}}var v=Et.default;var cf=v,vf=v.Z_NO_FLUSH;var pf=v.Z_PARTIAL_FLUSH;var wf=v.Z_SYNC_FLUSH;var Ef=v.Z_FULL_FLUSH;var bf=v.Z_FINISH;var xf=v.Z_BLOCK;var gf=v.Z_TREES;var Zf=v.Z_OK;var kf=v.Z_STREAM_END;var Sf=v.Z_NEED_DICT;var Tf=v.Z_ERRNO;var Lf=v.Z_STREAM_ERROR;var Rf=v.Z_DATA_ERROR;var If=v.Z_BUF_ERROR;var Af=v.Z_NO_COMPRESSION;var Nf=v.Z_BEST_SPEED;var mf=v.Z_BEST_COMPRESSION;var yf=v.Z_DEFAULT_COMPRESSION;var Df=v.Z_FILTERED;var zf=v.Z_HUFFMAN_ONLY;var Ff=v.Z_RLE;var Of=v.Z_FIXED;var Mf=v.Z_DEFAULT_STRATEGY;var Uf=v.Z_BINARY;var Bf=v.Z_TEXT;var Cf=v.Z_UNKNOWN;var Hf=v.Z_DEFLATED;var Pf=v.Zlib;var Gf=v.Z_MIN_WINDOWBITS;var Kf=v.Z_MAX_WINDOWBITS;var Wf=v.Z_DEFAULT_WINDOWBITS;var Xf=v.Z_MIN_CHUNK;var Yf=v.Z_MAX_CHUNK;var Vf=v.Z_DEFAULT_CHUNK;var qf=v.Z_MIN_MEMLEVEL;var jf=v.Z_MAX_MEMLEVEL;var Jf=v.Z_DEFAULT_MEMLEVEL;var Qf=v.Z_MIN_LEVEL;var $f=v.Z_MAX_LEVEL;var e_=v.Z_DEFAULT_LEVEL;var t_=v.codes;var a_=v.Deflate;var i_=v.Inflate;var r_=v.Gzip;var n_=v.Gunzip;var f_=v.DeflateRaw;var __=v.InflateRaw;var l_=v.Unzip;var o_=v.createDeflate;var h_=v.createInflate;var d_=v.createDeflateRaw;var s_=v.createInflateRaw;var u_=v.createGzip;var c_=v.createGunzip;var v_=v.createUnzip;var p_=v.deflate;var w_=v.deflateSync;var E_=v.gzip;var b_=v.gzipSync;var x_=v.deflateRaw;var g_=v.deflateRawSync;var Z_=v.unzip;var k_=v.unzipSync;var S_=v.inflate;var T_=v.inflateSync;var L_=v.gunzip;var R_=v.gunzipSync;var I_=v.inflateRaw;var A_=v.inflateRawSync;export{a_ as Deflate,f_ as DeflateRaw,n_ as Gunzip,r_ as Gzip,i_ as Inflate,__ as InflateRaw,l_ as Unzip,mf as Z_BEST_COMPRESSION,Nf as Z_BEST_SPEED,Uf as Z_BINARY,xf as Z_BLOCK,If as Z_BUF_ERROR,Rf as Z_DATA_ERROR,Vf as Z_DEFAULT_CHUNK,yf as Z_DEFAULT_COMPRESSION,e_ as Z_DEFAULT_LEVEL,Jf as Z_DEFAULT_MEMLEVEL,Mf as Z_DEFAULT_STRATEGY,Wf as Z_DEFAULT_WINDOWBITS,Hf as Z_DEFLATED,Tf as Z_ERRNO,Df as Z_FILTERED,bf as Z_FINISH,Of as Z_FIXED,Ef as Z_FULL_FLUSH,zf as Z_HUFFMAN_ONLY,Yf as Z_MAX_CHUNK,$f as Z_MAX_LEVEL,jf as Z_MAX_MEMLEVEL,Kf as Z_MAX_WINDOWBITS,Xf as Z_MIN_CHUNK,Qf as Z_MIN_LEVEL,qf as Z_MIN_MEMLEVEL,Gf as Z_MIN_WINDOWBITS,Sf as Z_NEED_DICT,Af as Z_NO_COMPRESSION,vf as Z_NO_FLUSH,Zf as Z_OK,pf as Z_PARTIAL_FLUSH,Ff as Z_RLE,kf as Z_STREAM_END,Lf as Z_STREAM_ERROR,wf as Z_SYNC_FLUSH,Bf as Z_TEXT,gf as Z_TREES,Cf as Z_UNKNOWN,Pf as Zlib,t_ as codes,o_ as createDeflate,d_ as createDeflateRaw,c_ as createGunzip,u_ as createGzip,h_ as createInflate,s_ as createInflateRaw,v_ as createUnzip,cf as default,p_ as deflate,x_ as deflateRaw,g_ as deflateRawSync,w_ as deflateSync,L_ as gunzip,R_ as gunzipSync,E_ as gzip,b_ as gzipSync,S_ as inflate,I_ as inflateRaw,A_ as inflateRawSync,T_ as inflateSync,Z_ as unzip,k_ as unzipSync};\n",
|
|
5515
|
+
"engine/builtin/zlib.mjs": "import{a as Ci}from\"../chunks/chunk-MDRNMNJQ.mjs\";import\"../chunks/chunk-4Y6DVSR7.mjs\";import\"../chunks/chunk-2PJDHVIE.mjs\";import\"../chunks/chunk-QMKSQR7V.mjs\";import{a as Qt}from\"../chunks/chunk-PHIKFVJN.mjs\";import{f as Bi}from\"../chunks/chunk-RAKQLW7K.mjs\";import\"../chunks/chunk-WHKCMYPO.mjs\";import{a as h,c as K,e as Ui,f as jt,g as Buffer,i as Jt,j as bt,m as process,o as z}from\"../chunks/chunk-IQ3JZKJB.mjs\";var ea=K((Sn,$t)=>{\"use strict\";z();function Hi(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}h(Hi,\"ZStream\");$t.exports=Hi});var Me=K(H=>{\"use strict\";z();var Pi=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Int32Array<\"u\";function Gi(e,i){return Object.prototype.hasOwnProperty.call(e,i)}h(Gi,\"_has\");H.assign=function(e){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var t=i.shift();if(t){if(typeof t!=\"object\")throw new TypeError(t+\"must be non-object\");for(var a in t)Gi(t,a)&&(e[a]=t[a])}}return e};H.shrinkBuf=function(e,i){return e.length===i?e:e.subarray?e.subarray(0,i):(e.length=i,e)};var Ki={arraySet:h(function(e,i,t,a,r){if(i.subarray&&e.subarray){e.set(i.subarray(t,t+a),r);return}for(var n=0;n<a;n++)e[r+n]=i[t+n]},\"arraySet\"),flattenChunks:h(function(e){var i,t,a,r,n,f;for(a=0,i=0,t=e.length;i<t;i++)a+=e[i].length;for(f=new Uint8Array(a),r=0,i=0,t=e.length;i<t;i++)n=e[i],f.set(n,r),r+=n.length;return f},\"flattenChunks\")},Wi={arraySet:h(function(e,i,t,a,r){for(var n=0;n<a;n++)e[r+n]=i[t+n]},\"arraySet\"),flattenChunks:h(function(e){return[].concat.apply([],e)},\"flattenChunks\")};H.setTyped=function(e){e?(H.Buf8=Uint8Array,H.Buf16=Uint16Array,H.Buf32=Int32Array,H.assign(H,Ki)):(H.Buf8=Array,H.Buf16=Array,H.Buf32=Array,H.assign(H,Wi))};H.setTyped(Pi)});var ka=K(ye=>{\"use strict\";z();var Xi=Me(),Yi=4,ta=0,aa=1,Vi=2;function me(e){for(var i=e.length;--i>=0;)e[i]=0}h(me,\"zero\");var qi=0,la=1,ji=2,Ji=3,Qi=258,Lt=29,Ge=256,Be=Ge+1+Lt,Ne=30,Rt=19,oa=2*Be+1,ce=15,xt=16,$i=7,It=256,ha=16,da=17,sa=18,St=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],et=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],er=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ua=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tr=512,ne=new Array((Be+2)*2);me(ne);var Ue=new Array(Ne*2);me(Ue);var Ce=new Array(tr);me(Ce);var He=new Array(Qi-Ji+1);me(He);var At=new Array(Lt);me(At);var tt=new Array(Ne);me(tt);function gt(e,i,t,a,r){this.static_tree=e,this.extra_bits=i,this.extra_base=t,this.elems=a,this.max_length=r,this.has_stree=e&&e.length}h(gt,\"StaticTreeDesc\");var ca,va,pa;function Zt(e,i){this.dyn_tree=e,this.max_code=0,this.stat_desc=i}h(Zt,\"TreeDesc\");function wa(e){return e<256?Ce[e]:Ce[256+(e>>>7)]}h(wa,\"d_code\");function Pe(e,i){e.pending_buf[e.pending++]=i&255,e.pending_buf[e.pending++]=i>>>8&255}h(Pe,\"put_short\");function G(e,i,t){e.bi_valid>xt-t?(e.bi_buf|=i<<e.bi_valid&65535,Pe(e,e.bi_buf),e.bi_buf=i>>xt-e.bi_valid,e.bi_valid+=t-xt):(e.bi_buf|=i<<e.bi_valid&65535,e.bi_valid+=t)}h(G,\"send_bits\");function $(e,i,t){G(e,t[i*2],t[i*2+1])}h($,\"send_code\");function Ea(e,i){var t=0;do t|=e&1,e>>>=1,t<<=1;while(--i>0);return t>>>1}h(Ea,\"bi_reverse\");function ar(e){e.bi_valid===16?(Pe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}h(ar,\"bi_flush\");function ir(e,i){var t=i.dyn_tree,a=i.max_code,r=i.stat_desc.static_tree,n=i.stat_desc.has_stree,f=i.stat_desc.extra_bits,l=i.stat_desc.extra_base,d=i.stat_desc.max_length,_,o,T,c,s,b,E=0;for(c=0;c<=ce;c++)e.bl_count[c]=0;for(t[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_<oa;_++)o=e.heap[_],c=t[t[o*2+1]*2+1]+1,c>d&&(c=d,E++),t[o*2+1]=c,!(o>a)&&(e.bl_count[c]++,s=0,o>=l&&(s=f[o-l]),b=t[o*2],e.opt_len+=b*(c+s),n&&(e.static_len+=b*(r[o*2+1]+s)));if(E!==0){do{for(c=d-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[d]--,E-=2}while(E>0);for(c=d;c!==0;c--)for(o=e.bl_count[c];o!==0;)T=e.heap[--_],!(T>a)&&(t[T*2+1]!==c&&(e.opt_len+=(c-t[T*2+1])*t[T*2],t[T*2+1]=c),o--)}}h(ir,\"gen_bitlen\");function ba(e,i,t){var a=new Array(ce+1),r=0,n,f;for(n=1;n<=ce;n++)a[n]=r=r+t[n-1]<<1;for(f=0;f<=i;f++){var l=e[f*2+1];l!==0&&(e[f*2]=Ea(a[l]++,l))}}h(ba,\"gen_codes\");function rr(){var e,i,t,a,r,n=new Array(ce+1);for(t=0,a=0;a<Lt-1;a++)for(At[a]=t,e=0;e<1<<St[a];e++)He[t++]=a;for(He[t-1]=a,r=0,a=0;a<16;a++)for(tt[a]=r,e=0;e<1<<et[a];e++)Ce[r++]=a;for(r>>=7;a<Ne;a++)for(tt[a]=r<<7,e=0;e<1<<et[a]-7;e++)Ce[256+r++]=a;for(i=0;i<=ce;i++)n[i]=0;for(e=0;e<=143;)ne[e*2+1]=8,e++,n[8]++;for(;e<=255;)ne[e*2+1]=9,e++,n[9]++;for(;e<=279;)ne[e*2+1]=7,e++,n[7]++;for(;e<=287;)ne[e*2+1]=8,e++,n[8]++;for(ba(ne,Be+1,n),e=0;e<Ne;e++)Ue[e*2+1]=5,Ue[e*2]=Ea(e,5);ca=new gt(ne,St,Ge+1,Be,ce),va=new gt(Ue,et,0,Ne,ce),pa=new gt(new Array(0),er,0,Rt,$i)}h(rr,\"tr_static_init\");function xa(e){var i;for(i=0;i<Be;i++)e.dyn_ltree[i*2]=0;for(i=0;i<Ne;i++)e.dyn_dtree[i*2]=0;for(i=0;i<Rt;i++)e.bl_tree[i*2]=0;e.dyn_ltree[It*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}h(xa,\"init_block\");function ga(e){e.bi_valid>8?Pe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}h(ga,\"bi_windup\");function nr(e,i,t,a){ga(e),a&&(Pe(e,t),Pe(e,~t)),Xi.arraySet(e.pending_buf,e.window,i,t,e.pending),e.pending+=t}h(nr,\"copy_block\");function ia(e,i,t,a){var r=i*2,n=t*2;return e[r]<e[n]||e[r]===e[n]&&a[i]<=a[t]}h(ia,\"smaller\");function kt(e,i,t){for(var a=e.heap[t],r=t<<1;r<=e.heap_len&&(r<e.heap_len&&ia(i,e.heap[r+1],e.heap[r],e.depth)&&r++,!ia(i,a,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=a}h(kt,\"pqdownheap\");function ra(e,i,t){var a,r,n=0,f,l;if(e.last_lit!==0)do a=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],r=e.pending_buf[e.l_buf+n],n++,a===0?$(e,r,i):(f=He[r],$(e,f+Ge+1,i),l=St[f],l!==0&&(r-=At[f],G(e,r,l)),a--,f=wa(a),$(e,f,t),l=et[f],l!==0&&(a-=tt[f],G(e,a,l)));while(n<e.last_lit);$(e,It,i)}h(ra,\"compress_block\");function Tt(e,i){var t=i.dyn_tree,a=i.stat_desc.static_tree,r=i.stat_desc.has_stree,n=i.stat_desc.elems,f,l,d=-1,_;for(e.heap_len=0,e.heap_max=oa,f=0;f<n;f++)t[f*2]!==0?(e.heap[++e.heap_len]=d=f,e.depth[f]=0):t[f*2+1]=0;for(;e.heap_len<2;)_=e.heap[++e.heap_len]=d<2?++d:0,t[_*2]=1,e.depth[_]=0,e.opt_len--,r&&(e.static_len-=a[_*2+1]);for(i.max_code=d,f=e.heap_len>>1;f>=1;f--)kt(e,t,f);_=n;do f=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kt(e,t,1),l=e.heap[1],e.heap[--e.heap_max]=f,e.heap[--e.heap_max]=l,t[_*2]=t[f*2]+t[l*2],e.depth[_]=(e.depth[f]>=e.depth[l]?e.depth[f]:e.depth[l])+1,t[f*2+1]=t[l*2+1]=_,e.heap[1]=_++,kt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ir(e,i),ba(t,d,e.bl_count)}h(Tt,\"build_tree\");function na(e,i,t){var a,r=-1,n,f=i[1],l=0,d=7,_=4;for(f===0&&(d=138,_=3),i[(t+1)*2+1]=65535,a=0;a<=t;a++)n=f,f=i[(a+1)*2+1],!(++l<d&&n===f)&&(l<_?e.bl_tree[n*2]+=l:n!==0?(n!==r&&e.bl_tree[n*2]++,e.bl_tree[ha*2]++):l<=10?e.bl_tree[da*2]++:e.bl_tree[sa*2]++,l=0,r=n,f===0?(d=138,_=3):n===f?(d=6,_=3):(d=7,_=4))}h(na,\"scan_tree\");function fa(e,i,t){var a,r=-1,n,f=i[1],l=0,d=7,_=4;for(f===0&&(d=138,_=3),a=0;a<=t;a++)if(n=f,f=i[(a+1)*2+1],!(++l<d&&n===f)){if(l<_)do $(e,n,e.bl_tree);while(--l!==0);else n!==0?(n!==r&&($(e,n,e.bl_tree),l--),$(e,ha,e.bl_tree),G(e,l-3,2)):l<=10?($(e,da,e.bl_tree),G(e,l-3,3)):($(e,sa,e.bl_tree),G(e,l-11,7));l=0,r=n,f===0?(d=138,_=3):n===f?(d=6,_=3):(d=7,_=4)}}h(fa,\"send_tree\");function fr(e){var i;for(na(e,e.dyn_ltree,e.l_desc.max_code),na(e,e.dyn_dtree,e.d_desc.max_code),Tt(e,e.bl_desc),i=Rt-1;i>=3&&e.bl_tree[ua[i]*2+1]===0;i--);return e.opt_len+=3*(i+1)+5+5+4,i}h(fr,\"build_bl_tree\");function _r(e,i,t,a){var r;for(G(e,i-257,5),G(e,t-1,5),G(e,a-4,4),r=0;r<a;r++)G(e,e.bl_tree[ua[r]*2+1],3);fa(e,e.dyn_ltree,i-1),fa(e,e.dyn_dtree,t-1)}h(_r,\"send_all_trees\");function lr(e){var i=4093624447,t;for(t=0;t<=31;t++,i>>>=1)if(i&1&&e.dyn_ltree[t*2]!==0)return ta;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return aa;for(t=32;t<Ge;t++)if(e.dyn_ltree[t*2]!==0)return aa;return ta}h(lr,\"detect_data_type\");var _a=!1;function or(e){_a||(rr(),_a=!0),e.l_desc=new Zt(e.dyn_ltree,ca),e.d_desc=new Zt(e.dyn_dtree,va),e.bl_desc=new Zt(e.bl_tree,pa),e.bi_buf=0,e.bi_valid=0,xa(e)}h(or,\"_tr_init\");function Za(e,i,t,a){G(e,(qi<<1)+(a?1:0),3),nr(e,i,t,!0)}h(Za,\"_tr_stored_block\");function hr(e){G(e,la<<1,3),$(e,It,ne),ar(e)}h(hr,\"_tr_align\");function dr(e,i,t,a){var r,n,f=0;e.level>0?(e.strm.data_type===Vi&&(e.strm.data_type=lr(e)),Tt(e,e.l_desc),Tt(e,e.d_desc),f=fr(e),r=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=r&&(r=n)):r=n=t+5,t+4<=r&&i!==-1?Za(e,i,t,a):e.strategy===Yi||n===r?(G(e,(la<<1)+(a?1:0),3),ra(e,ne,Ue)):(G(e,(ji<<1)+(a?1:0),3),_r(e,e.l_desc.max_code+1,e.d_desc.max_code+1,f+1),ra(e,e.dyn_ltree,e.dyn_dtree)),xa(e),a&&ga(e)}h(dr,\"_tr_flush_block\");function sr(e,i,t){return e.pending_buf[e.d_buf+e.last_lit*2]=i>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=i&255,e.pending_buf[e.l_buf+e.last_lit]=t&255,e.last_lit++,i===0?e.dyn_ltree[t*2]++:(e.matches++,i--,e.dyn_ltree[(He[t]+Ge+1)*2]++,e.dyn_dtree[wa(i)*2]++),e.last_lit===e.lit_bufsize-1}h(sr,\"_tr_tally\");ye._tr_init=or;ye._tr_stored_block=Za;ye._tr_flush_block=dr;ye._tr_tally=sr;ye._tr_align=hr});var Nt=K((Dn,Sa)=>{\"use strict\";z();function ur(e,i,t,a){for(var r=e&65535|0,n=e>>>16&65535|0,f=0;t!==0;){f=t>2e3?2e3:t,t-=f;do r=r+i[a++]|0,n=n+r|0;while(--f);r%=65521,n%=65521}return r|n<<16|0}h(ur,\"adler32\");Sa.exports=ur});var mt=K((On,Ta)=>{\"use strict\";z();function cr(){for(var e,i=[],t=0;t<256;t++){e=t;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;i[t]=e}return i}h(cr,\"makeTable\");var vr=cr();function pr(e,i,t,a){var r=vr,n=a+t;e^=-1;for(var f=a;f<n;f++)e=e>>>8^r[(e^i[f])&255];return e^-1}h(pr,\"crc32\");Ta.exports=pr});var Ra=K((Bn,La)=>{\"use strict\";z();La.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}});var Oa=K(ae=>{\"use strict\";z();var P=Me(),Y=ka(),ma=Nt(),_e=mt(),wr=Ra(),Ee=0,Er=1,br=3,se=4,Ia=5,te=0,Aa=1,V=-2,xr=-3,yt=-5,gr=-1,Zr=1,at=2,kr=3,Sr=4,Tr=0,Lr=2,ft=8,Rr=9,Ir=15,Ar=8,Nr=29,mr=256,zt=mr+1+Nr,yr=30,Dr=19,zr=2*zt+1,Fr=15,R=3,he=258,J=he+R+1,Or=32,_t=42,Ft=69,it=73,rt=91,nt=103,ve=113,We=666,U=1,Xe=2,pe=3,Fe=4,Mr=3;function de(e,i){return e.msg=wr[i],i}h(de,\"err\");function Na(e){return(e<<1)-(e>4?9:0)}h(Na,\"rank\");function oe(e){for(var i=e.length;--i>=0;)e[i]=0}h(oe,\"zero\");function le(e){var i=e.state,t=i.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(P.arraySet(e.output,i.pending_buf,i.pending_out,t,e.next_out),e.next_out+=t,i.pending_out+=t,e.total_out+=t,e.avail_out-=t,i.pending-=t,i.pending===0&&(i.pending_out=0))}h(le,\"flush_pending\");function B(e,i){Y._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,i),e.block_start=e.strstart,le(e.strm)}h(B,\"flush_block_only\");function N(e,i){e.pending_buf[e.pending++]=i}h(N,\"put_byte\");function Ke(e,i){e.pending_buf[e.pending++]=i>>>8&255,e.pending_buf[e.pending++]=i&255}h(Ke,\"putShortMSB\");function Ur(e,i,t,a){var r=e.avail_in;return r>a&&(r=a),r===0?0:(e.avail_in-=r,P.arraySet(i,e.input,e.next_in,r,t),e.state.wrap===1?e.adler=ma(e.adler,i,r,t):e.state.wrap===2&&(e.adler=_e(e.adler,i,r,t)),e.next_in+=r,e.total_in+=r,r)}h(Ur,\"read_buf\");function ya(e,i){var t=e.max_chain_length,a=e.strstart,r,n,f=e.prev_length,l=e.nice_match,d=e.strstart>e.w_size-J?e.strstart-(e.w_size-J):0,_=e.window,o=e.w_mask,T=e.prev,c=e.strstart+he,s=_[a+f-1],b=_[a+f];e.prev_length>=e.good_match&&(t>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=i,!(_[r+f]!==b||_[r+f-1]!==s||_[r]!==_[a]||_[++r]!==_[a+1])){a+=2,r++;do;while(_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&_[++a]===_[++r]&&a<c);if(n=he-(c-a),a=c-he,n>f){if(e.match_start=i,f=n,n>=l)break;s=_[a+f-1],b=_[a+f]}}while((i=T[i&o])>d&&--t!==0);return f<=e.lookahead?f:e.lookahead}h(ya,\"longest_match\");function we(e){var i=e.w_size,t,a,r,n,f;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-J)){P.arraySet(e.window,e.window,i,i,0),e.match_start-=i,e.strstart-=i,e.block_start-=i,a=e.hash_size,t=a;do r=e.head[--t],e.head[t]=r>=i?r-i:0;while(--a);a=i,t=a;do r=e.prev[--t],e.prev[t]=r>=i?r-i:0;while(--a);n+=i}if(e.strm.avail_in===0)break;if(a=Ur(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=a,e.lookahead+e.insert>=R)for(f=e.strstart-e.insert,e.ins_h=e.window[f],e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+R-1])&e.hash_mask,e.prev[f&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=f,f++,e.insert--,!(e.lookahead+e.insert<R)););}while(e.lookahead<J&&e.strm.avail_in!==0)}h(we,\"fill_window\");function Br(e,i){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(we(e),e.lookahead===0&&i===Ee)return U;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+t;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,B(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-J&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out===0),U)}h(Br,\"deflate_stored\");function Dt(e,i){for(var t,a;;){if(e.lookahead<J){if(we(e),e.lookahead<J&&i===Ee)return U;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-J&&(e.match_length=ya(e,t)),e.match_length>=R)if(a=Y._tr_tally(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else a=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=e.strstart<R-1?e.strstart:R-1,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Dt,\"deflate_fast\");function De(e,i){for(var t,a,r;;){if(e.lookahead<J){if(we(e),e.lookahead<J&&i===Ee)return U;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-J&&(e.match_length=ya(e,t),e.match_length<=5&&(e.strategy===Zr||e.match_length===R&&e.strstart-e.match_start>4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-R,a=Y._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=R-1,e.strstart++,a&&(B(e,!1),e.strm.avail_out===0))return U}else if(e.match_available){if(a=Y._tr_tally(e,0,e.window[e.strstart-1]),a&&B(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return U}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=Y._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(De,\"deflate_slow\");function Cr(e,i){for(var t,a,r,n,f=e.window;;){if(e.lookahead<=he){if(we(e),e.lookahead<=he&&i===Ee)return U;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(r=e.strstart-1,a=f[r],a===f[++r]&&a===f[++r]&&a===f[++r])){n=e.strstart+he;do;while(a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&a===f[++r]&&r<n);e.match_length=he-(n-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(t=Y._tr_tally(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Cr,\"deflate_rle\");function Hr(e,i){for(var t;;){if(e.lookahead===0&&(we(e),e.lookahead===0)){if(i===Ee)return U;break}if(e.match_length=0,t=Y._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(B(e,!1),e.strm.avail_out===0))return U}return e.insert=0,i===se?(B(e,!0),e.strm.avail_out===0?pe:Fe):e.last_lit&&(B(e,!1),e.strm.avail_out===0)?U:Xe}h(Hr,\"deflate_huff\");function ee(e,i,t,a,r){this.good_length=e,this.max_lazy=i,this.nice_length=t,this.max_chain=a,this.func=r}h(ee,\"Config\");var ze;ze=[new ee(0,0,0,0,Br),new ee(4,4,8,4,Dt),new ee(4,5,16,8,Dt),new ee(4,6,32,32,Dt),new ee(4,4,16,16,De),new ee(8,16,32,32,De),new ee(8,16,128,128,De),new ee(8,32,128,256,De),new ee(32,128,258,1024,De),new ee(32,258,258,4096,De)];function Pr(e){e.window_size=2*e.w_size,oe(e.head),e.max_lazy_match=ze[e.level].max_lazy,e.good_match=ze[e.level].good_length,e.nice_match=ze[e.level].nice_length,e.max_chain_length=ze[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=R-1,e.match_available=0,e.ins_h=0}h(Pr,\"lm_init\");function Gr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ft,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new P.Buf16(zr*2),this.dyn_dtree=new P.Buf16((2*yr+1)*2),this.bl_tree=new P.Buf16((2*Dr+1)*2),oe(this.dyn_ltree),oe(this.dyn_dtree),oe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new P.Buf16(Fr+1),this.heap=new P.Buf16(2*zt+1),oe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new P.Buf16(2*zt+1),oe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}h(Gr,\"DeflateState\");function Da(e){var i;return!e||!e.state?de(e,V):(e.total_in=e.total_out=0,e.data_type=Lr,i=e.state,i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?_t:ve,e.adler=i.wrap===2?0:1,i.last_flush=Ee,Y._tr_init(i),te)}h(Da,\"deflateResetKeep\");function za(e){var i=Da(e);return i===te&&Pr(e.state),i}h(za,\"deflateReset\");function Kr(e,i){return!e||!e.state||e.state.wrap!==2?V:(e.state.gzhead=i,te)}h(Kr,\"deflateSetHeader\");function Fa(e,i,t,a,r,n){if(!e)return V;var f=1;if(i===gr&&(i=6),a<0?(f=0,a=-a):a>15&&(f=2,a-=16),r<1||r>Rr||t!==ft||a<8||a>15||i<0||i>9||n<0||n>Sr)return de(e,V);a===8&&(a=9);var l=new Gr;return e.state=l,l.strm=e,l.wrap=f,l.gzhead=null,l.w_bits=a,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+R-1)/R),l.window=new P.Buf8(l.w_size*2),l.head=new P.Buf16(l.hash_size),l.prev=new P.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new P.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=i,l.strategy=n,l.method=t,za(e)}h(Fa,\"deflateInit2\");function Wr(e,i){return Fa(e,i,ft,Ir,Ar,Tr)}h(Wr,\"deflateInit\");function Xr(e,i){var t,a,r,n;if(!e||!e.state||i>Ia||i<0)return e?de(e,V):V;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===We&&i!==se)return de(e,e.avail_out===0?yt:V);if(a.strm=e,t=a.last_flush,a.last_flush=i,a.status===_t)if(a.wrap===2)e.adler=0,N(a,31),N(a,139),N(a,8),a.gzhead?(N(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),N(a,a.gzhead.time&255),N(a,a.gzhead.time>>8&255),N(a,a.gzhead.time>>16&255),N(a,a.gzhead.time>>24&255),N(a,a.level===9?2:a.strategy>=at||a.level<2?4:0),N(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(N(a,a.gzhead.extra.length&255),N(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=_e(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=Ft):(N(a,0),N(a,0),N(a,0),N(a,0),N(a,0),N(a,a.level===9?2:a.strategy>=at||a.level<2?4:0),N(a,Mr),a.status=ve);else{var f=ft+(a.w_bits-8<<4)<<8,l=-1;a.strategy>=at||a.level<2?l=0:a.level<6?l=1:a.level===6?l=2:l=3,f|=l<<6,a.strstart!==0&&(f|=Or),f+=31-f%31,a.status=ve,Ke(a,f),a.strstart!==0&&(Ke(a,e.adler>>>16),Ke(a,e.adler&65535)),e.adler=1}if(a.status===Ft)if(a.gzhead.extra){for(r=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size));)N(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=it)}else a.status=it;if(a.status===it)if(a.gzhead.name){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.name.length?n=a.gzhead.name.charCodeAt(a.gzindex++)&255:n=0,N(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),n===0&&(a.gzindex=0,a.status=rt)}else a.status=rt;if(a.status===rt)if(a.gzhead.comment){r=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),le(e),r=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.comment.length?n=a.gzhead.comment.charCodeAt(a.gzindex++)&255:n=0,N(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>r&&(e.adler=_e(e.adler,a.pending_buf,a.pending-r,r)),n===0&&(a.status=nt)}else a.status=nt;if(a.status===nt&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&le(e),a.pending+2<=a.pending_buf_size&&(N(a,e.adler&255),N(a,e.adler>>8&255),e.adler=0,a.status=ve)):a.status=ve),a.pending!==0){if(le(e),e.avail_out===0)return a.last_flush=-1,te}else if(e.avail_in===0&&Na(i)<=Na(t)&&i!==se)return de(e,yt);if(a.status===We&&e.avail_in!==0)return de(e,yt);if(e.avail_in!==0||a.lookahead!==0||i!==Ee&&a.status!==We){var d=a.strategy===at?Hr(a,i):a.strategy===kr?Cr(a,i):ze[a.level].func(a,i);if((d===pe||d===Fe)&&(a.status=We),d===U||d===pe)return e.avail_out===0&&(a.last_flush=-1),te;if(d===Xe&&(i===Er?Y._tr_align(a):i!==Ia&&(Y._tr_stored_block(a,0,0,!1),i===br&&(oe(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),le(e),e.avail_out===0))return a.last_flush=-1,te}return i!==se?te:a.wrap<=0?Aa:(a.wrap===2?(N(a,e.adler&255),N(a,e.adler>>8&255),N(a,e.adler>>16&255),N(a,e.adler>>24&255),N(a,e.total_in&255),N(a,e.total_in>>8&255),N(a,e.total_in>>16&255),N(a,e.total_in>>24&255)):(Ke(a,e.adler>>>16),Ke(a,e.adler&65535)),le(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?te:Aa)}h(Xr,\"deflate\");function Yr(e){var i;return!e||!e.state?V:(i=e.state.status,i!==_t&&i!==Ft&&i!==it&&i!==rt&&i!==nt&&i!==ve&&i!==We?de(e,V):(e.state=null,i===ve?de(e,xr):te))}h(Yr,\"deflateEnd\");function Vr(e,i){var t=i.length,a,r,n,f,l,d,_,o;if(!e||!e.state||(a=e.state,f=a.wrap,f===2||f===1&&a.status!==_t||a.lookahead))return V;for(f===1&&(e.adler=ma(e.adler,i,t,0)),a.wrap=0,t>=a.w_size&&(f===0&&(oe(a.head),a.strstart=0,a.block_start=0,a.insert=0),o=new P.Buf8(a.w_size),P.arraySet(o,i,t-a.w_size,a.w_size,0),i=o,t=a.w_size),l=e.avail_in,d=e.next_in,_=e.input,e.avail_in=t,e.next_in=0,e.input=i,we(a);a.lookahead>=R;){r=a.strstart,n=a.lookahead-(R-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[r+R-1])&a.hash_mask,a.prev[r&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=r,r++;while(--n);a.strstart=r,a.lookahead=R-1,we(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=R-1,a.match_available=0,e.next_in=d,e.input=_,e.avail_in=l,a.wrap=f,te}h(Vr,\"deflateSetDictionary\");ae.deflateInit=Wr;ae.deflateInit2=Fa;ae.deflateReset=za;ae.deflateResetKeep=Da;ae.deflateSetHeader=Kr;ae.deflate=Xr;ae.deflateEnd=Yr;ae.deflateSetDictionary=Vr;ae.deflateInfo=\"pako deflate (from Nodeca project)\"});var Ua=K((Kn,Ma)=>{\"use strict\";z();var lt=30,qr=12;Ma.exports=h(function(i,t){var a,r,n,f,l,d,_,o,T,c,s,b,E,S,x,m,D,L,p,y,I,Z,A,M,k;a=i.state,r=i.next_in,M=i.input,n=r+(i.avail_in-5),f=i.next_out,k=i.output,l=f-(t-i.avail_out),d=f+(i.avail_out-257),_=a.dmax,o=a.wsize,T=a.whave,c=a.wnext,s=a.window,b=a.hold,E=a.bits,S=a.lencode,x=a.distcode,m=(1<<a.lenbits)-1,D=(1<<a.distbits)-1;e:do{E<15&&(b+=M[r++]<<E,E+=8,b+=M[r++]<<E,E+=8),L=S[b&m];t:for(;;){if(p=L>>>24,b>>>=p,E-=p,p=L>>>16&255,p===0)k[f++]=L&65535;else if(p&16){y=L&65535,p&=15,p&&(E<p&&(b+=M[r++]<<E,E+=8),y+=b&(1<<p)-1,b>>>=p,E-=p),E<15&&(b+=M[r++]<<E,E+=8,b+=M[r++]<<E,E+=8),L=x[b&D];a:for(;;){if(p=L>>>24,b>>>=p,E-=p,p=L>>>16&255,p&16){if(I=L&65535,p&=15,E<p&&(b+=M[r++]<<E,E+=8,E<p&&(b+=M[r++]<<E,E+=8)),I+=b&(1<<p)-1,I>_){i.msg=\"invalid distance too far back\",a.mode=lt;break e}if(b>>>=p,E-=p,p=f-l,I>p){if(p=I-p,p>T&&a.sane){i.msg=\"invalid distance too far back\",a.mode=lt;break e}if(Z=0,A=s,c===0){if(Z+=o-p,p<y){y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}}else if(c<p){if(Z+=o+c-p,p-=c,p<y){y-=p;do k[f++]=s[Z++];while(--p);if(Z=0,c<y){p=c,y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}}}else if(Z+=c-p,p<y){y-=p;do k[f++]=s[Z++];while(--p);Z=f-I,A=k}for(;y>2;)k[f++]=A[Z++],k[f++]=A[Z++],k[f++]=A[Z++],y-=3;y&&(k[f++]=A[Z++],y>1&&(k[f++]=A[Z++]))}else{Z=f-I;do k[f++]=k[Z++],k[f++]=k[Z++],k[f++]=k[Z++],y-=3;while(y>2);y&&(k[f++]=k[Z++],y>1&&(k[f++]=k[Z++]))}}else if((p&64)===0){L=x[(L&65535)+(b&(1<<p)-1)];continue a}else{i.msg=\"invalid distance code\",a.mode=lt;break e}break}}else if((p&64)===0){L=S[(L&65535)+(b&(1<<p)-1)];continue t}else if(p&32){a.mode=qr;break e}else{i.msg=\"invalid literal/length code\",a.mode=lt;break e}break}}while(r<n&&f<d);y=E>>3,r-=y,E-=y<<3,b&=(1<<E)-1,i.next_in=r,i.next_out=f,i.avail_in=r<n?5+(n-r):5-(r-n),i.avail_out=f<d?257+(d-f):257-(f-d),a.hold=b,a.bits=E},\"inflate_fast\")});var Wa=K((Yn,Ka)=>{\"use strict\";z();var Ba=Me(),Oe=15,Ca=852,Ha=592,Pa=0,Ot=1,Ga=2,jr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Jr=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Qr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],$r=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Ka.exports=h(function(i,t,a,r,n,f,l,d){var _=d.bits,o=0,T=0,c=0,s=0,b=0,E=0,S=0,x=0,m=0,D=0,L,p,y,I,Z,A=null,M=0,k,j=new Ba.Buf16(Oe+1),je=new Ba.Buf16(Oe+1),Je=null,Vt=0,qt,Qe,$e;for(o=0;o<=Oe;o++)j[o]=0;for(T=0;T<r;T++)j[t[a+T]]++;for(b=_,s=Oe;s>=1&&j[s]===0;s--);if(b>s&&(b=s),s===0)return n[f++]=1<<24|64<<16|0,n[f++]=1<<24|64<<16|0,d.bits=1,0;for(c=1;c<s&&j[c]===0;c++);for(b<c&&(b=c),x=1,o=1;o<=Oe;o++)if(x<<=1,x-=j[o],x<0)return-1;if(x>0&&(i===Pa||s!==1))return-1;for(je[1]=0,o=1;o<Oe;o++)je[o+1]=je[o]+j[o];for(T=0;T<r;T++)t[a+T]!==0&&(l[je[t[a+T]]++]=T);if(i===Pa?(A=Je=l,k=19):i===Ot?(A=jr,M-=257,Je=Jr,Vt-=257,k=256):(A=Qr,Je=$r,k=-1),D=0,T=0,o=c,Z=f,E=b,S=0,y=-1,m=1<<b,I=m-1,i===Ot&&m>Ca||i===Ga&&m>Ha)return 1;for(;;){qt=o-S,l[T]<k?(Qe=0,$e=l[T]):l[T]>k?(Qe=Je[Vt+l[T]],$e=A[M+l[T]]):(Qe=96,$e=0),L=1<<o-S,p=1<<E,c=p;do p-=L,n[Z+(D>>S)+p]=qt<<24|Qe<<16|$e|0;while(p!==0);for(L=1<<o-1;D&L;)L>>=1;if(L!==0?(D&=L-1,D+=L):D=0,T++,--j[o]===0){if(o===s)break;o=t[a+l[T]]}if(o>b&&(D&I)!==y){for(S===0&&(S=b),Z+=c,E=o-S,x=1<<E;E+S<s&&(x-=j[E+S],!(x<=0));)E++,x<<=1;if(m+=1<<E,i===Ot&&m>Ca||i===Ga&&m>Ha)return 1;y=D&I,n[y]=b<<24|E<<16|Z-f|0}}return D!==0&&(n[Z+D]=o-S<<24|64<<16|0),d.bits=b,0},\"inflate_table\")});var Li=K(Q=>{\"use strict\";z();var W=Me(),Pt=Nt(),ie=mt(),en=Ua(),Ye=Wa(),tn=0,wi=1,Ei=2,Xa=4,an=5,ot=6,be=0,rn=1,nn=2,q=-2,bi=-3,Gt=-4,fn=-5,Ya=8,xi=1,Va=2,qa=3,ja=4,Ja=5,Qa=6,$a=7,ei=8,ti=9,ai=10,st=11,fe=12,Mt=13,ii=14,Ut=15,ri=16,ni=17,fi=18,_i=19,ht=20,dt=21,li=22,oi=23,hi=24,di=25,si=26,Bt=27,ui=28,ci=29,F=30,Kt=31,_n=32,ln=852,on=592,hn=15,dn=hn;function vi(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}h(vi,\"zswap32\");function sn(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new W.Buf16(320),this.work=new W.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}h(sn,\"InflateState\");function gi(e){var i;return!e||!e.state?q:(i=e.state,e.total_in=e.total_out=i.total=0,e.msg=\"\",i.wrap&&(e.adler=i.wrap&1),i.mode=xi,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new W.Buf32(ln),i.distcode=i.distdyn=new W.Buf32(on),i.sane=1,i.back=-1,be)}h(gi,\"inflateResetKeep\");function Zi(e){var i;return!e||!e.state?q:(i=e.state,i.wsize=0,i.whave=0,i.wnext=0,gi(e))}h(Zi,\"inflateReset\");function ki(e,i){var t,a;return!e||!e.state||(a=e.state,i<0?(t=0,i=-i):(t=(i>>4)+1,i<48&&(i&=15)),i&&(i<8||i>15))?q:(a.window!==null&&a.wbits!==i&&(a.window=null),a.wrap=t,a.wbits=i,Zi(e))}h(ki,\"inflateReset2\");function Si(e,i){var t,a;return e?(a=new sn,e.state=a,a.window=null,t=ki(e,i),t!==be&&(e.state=null),t):q}h(Si,\"inflateInit2\");function un(e){return Si(e,dn)}h(un,\"inflateInit\");var pi=!0,Ct,Ht;function cn(e){if(pi){var i;for(Ct=new W.Buf32(512),Ht=new W.Buf32(32),i=0;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(Ye(wi,e.lens,0,288,Ct,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;Ye(Ei,e.lens,0,32,Ht,0,e.work,{bits:5}),pi=!1}e.lencode=Ct,e.lenbits=9,e.distcode=Ht,e.distbits=5}h(cn,\"fixedtables\");function Ti(e,i,t,a){var r,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new W.Buf8(n.wsize)),a>=n.wsize?(W.arraySet(n.window,i,t-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(r=n.wsize-n.wnext,r>a&&(r=a),W.arraySet(n.window,i,t-a,r,n.wnext),a-=r,a?(W.arraySet(n.window,i,t-a,a,0),n.wnext=a,n.whave=n.wsize):(n.wnext+=r,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=r))),0}h(Ti,\"updatewindow\");function vn(e,i){var t,a,r,n,f,l,d,_,o,T,c,s,b,E,S=0,x,m,D,L,p,y,I,Z,A=new W.Buf8(4),M,k,j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return q;t=e.state,t.mode===fe&&(t.mode=Mt),f=e.next_out,r=e.output,d=e.avail_out,n=e.next_in,a=e.input,l=e.avail_in,_=t.hold,o=t.bits,T=l,c=d,Z=be;e:for(;;)switch(t.mode){case xi:if(t.wrap===0){t.mode=Mt;break}for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.wrap&2&&_===35615){t.check=0,A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0),_=0,o=0,t.mode=Va;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg=\"incorrect header check\",t.mode=F;break}if((_&15)!==Ya){e.msg=\"unknown compression method\",t.mode=F;break}if(_>>>=4,o-=4,I=(_&15)+8,t.wbits===0)t.wbits=I;else if(I>t.wbits){e.msg=\"invalid window size\",t.mode=F;break}t.dmax=1<<I,e.adler=t.check=1,t.mode=_&512?ai:fe,_=0,o=0;break;case Va:for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.flags=_,(t.flags&255)!==Ya){e.msg=\"unknown compression method\",t.mode=F;break}if(t.flags&57344){e.msg=\"unknown header flags set\",t.mode=F;break}t.head&&(t.head.text=_>>8&1),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0,t.mode=qa;case qa:for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.head&&(t.head.time=_),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,A[2]=_>>>16&255,A[3]=_>>>24&255,t.check=ie(t.check,A,4,0)),_=0,o=0,t.mode=ja;case ja:for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.head&&(t.head.xflags=_&255,t.head.os=_>>8),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0,t.mode=Ja;case Ja:if(t.flags&1024){for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.length=_,t.head&&(t.head.extra_len=_),t.flags&512&&(A[0]=_&255,A[1]=_>>>8&255,t.check=ie(t.check,A,2,0)),_=0,o=0}else t.head&&(t.head.extra=null);t.mode=Qa;case Qa:if(t.flags&1024&&(s=t.length,s>l&&(s=l),s&&(t.head&&(I=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),W.arraySet(t.head.extra,a,n,s,I)),t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,t.length-=s),t.length))break e;t.length=0,t.mode=$a;case $a:if(t.flags&2048){if(l===0)break e;s=0;do I=a[n+s++],t.head&&I&&t.length<65536&&(t.head.name+=String.fromCharCode(I));while(I&&s<l);if(t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,I)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=ei;case ei:if(t.flags&4096){if(l===0)break e;s=0;do I=a[n+s++],t.head&&I&&t.length<65536&&(t.head.comment+=String.fromCharCode(I));while(I&&s<l);if(t.flags&512&&(t.check=ie(t.check,a,s,n)),l-=s,n+=s,I)break e}else t.head&&(t.head.comment=null);t.mode=ti;case ti:if(t.flags&512){for(;o<16;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_!==(t.check&65535)){e.msg=\"header crc mismatch\",t.mode=F;break}_=0,o=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=fe;break;case ai:for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}e.adler=t.check=vi(_),_=0,o=0,t.mode=st;case st:if(t.havedict===0)return e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,nn;e.adler=t.check=1,t.mode=fe;case fe:if(i===an||i===ot)break e;case Mt:if(t.last){_>>>=o&7,o-=o&7,t.mode=Bt;break}for(;o<3;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}switch(t.last=_&1,_>>>=1,o-=1,_&3){case 0:t.mode=ii;break;case 1:if(cn(t),t.mode=ht,i===ot){_>>>=2,o-=2;break e}break;case 2:t.mode=ni;break;case 3:e.msg=\"invalid block type\",t.mode=F}_>>>=2,o-=2;break;case ii:for(_>>>=o&7,o-=o&7;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if((_&65535)!==(_>>>16^65535)){e.msg=\"invalid stored block lengths\",t.mode=F;break}if(t.length=_&65535,_=0,o=0,t.mode=Ut,i===ot)break e;case Ut:t.mode=ri;case ri:if(s=t.length,s){if(s>l&&(s=l),s>d&&(s=d),s===0)break e;W.arraySet(r,a,n,s,f),l-=s,n+=s,d-=s,f+=s,t.length-=s;break}t.mode=fe;break;case ni:for(;o<14;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(t.nlen=(_&31)+257,_>>>=5,o-=5,t.ndist=(_&31)+1,_>>>=5,o-=5,t.ncode=(_&15)+4,_>>>=4,o-=4,t.nlen>286||t.ndist>30){e.msg=\"too many length or distance symbols\",t.mode=F;break}t.have=0,t.mode=fi;case fi:for(;t.have<t.ncode;){for(;o<3;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.lens[j[t.have++]]=_&7,_>>>=3,o-=3}for(;t.have<19;)t.lens[j[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,M={bits:t.lenbits},Z=Ye(tn,t.lens,0,19,t.lencode,0,t.work,M),t.lenbits=M.bits,Z){e.msg=\"invalid code lengths set\",t.mode=F;break}t.have=0,t.mode=_i;case _i:for(;t.have<t.nlen+t.ndist;){for(;S=t.lencode[_&(1<<t.lenbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(D<16)_>>>=x,o-=x,t.lens[t.have++]=D;else{if(D===16){for(k=x+2;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_>>>=x,o-=x,t.have===0){e.msg=\"invalid bit length repeat\",t.mode=F;break}I=t.lens[t.have-1],s=3+(_&3),_>>>=2,o-=2}else if(D===17){for(k=x+3;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=x,o-=x,I=0,s=3+(_&7),_>>>=3,o-=3}else{for(k=x+7;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=x,o-=x,I=0,s=11+(_&127),_>>>=7,o-=7}if(t.have+s>t.nlen+t.ndist){e.msg=\"invalid bit length repeat\",t.mode=F;break}for(;s--;)t.lens[t.have++]=I}}if(t.mode===F)break;if(t.lens[256]===0){e.msg=\"invalid code -- missing end-of-block\",t.mode=F;break}if(t.lenbits=9,M={bits:t.lenbits},Z=Ye(wi,t.lens,0,t.nlen,t.lencode,0,t.work,M),t.lenbits=M.bits,Z){e.msg=\"invalid literal/lengths set\",t.mode=F;break}if(t.distbits=6,t.distcode=t.distdyn,M={bits:t.distbits},Z=Ye(Ei,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,M),t.distbits=M.bits,Z){e.msg=\"invalid distances set\",t.mode=F;break}if(t.mode=ht,i===ot)break e;case ht:t.mode=dt;case dt:if(l>=6&&d>=258){e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,en(e,c),f=e.next_out,r=e.output,d=e.avail_out,n=e.next_in,a=e.input,l=e.avail_in,_=t.hold,o=t.bits,t.mode===fe&&(t.back=-1);break}for(t.back=0;S=t.lencode[_&(1<<t.lenbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(m&&(m&240)===0){for(L=x,p=m,y=D;S=t.lencode[y+((_&(1<<L+p)-1)>>L)],x=S>>>24,m=S>>>16&255,D=S&65535,!(L+x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=L,o-=L,t.back+=L}if(_>>>=x,o-=x,t.back+=x,t.length=D,m===0){t.mode=si;break}if(m&32){t.back=-1,t.mode=fe;break}if(m&64){e.msg=\"invalid literal/length code\",t.mode=F;break}t.extra=m&15,t.mode=li;case li:if(t.extra){for(k=t.extra;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.length+=_&(1<<t.extra)-1,_>>>=t.extra,o-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=oi;case oi:for(;S=t.distcode[_&(1<<t.distbits)-1],x=S>>>24,m=S>>>16&255,D=S&65535,!(x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if((m&240)===0){for(L=x,p=m,y=D;S=t.distcode[y+((_&(1<<L+p)-1)>>L)],x=S>>>24,m=S>>>16&255,D=S&65535,!(L+x<=o);){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}_>>>=L,o-=L,t.back+=L}if(_>>>=x,o-=x,t.back+=x,m&64){e.msg=\"invalid distance code\",t.mode=F;break}t.offset=D,t.extra=m&15,t.mode=hi;case hi:if(t.extra){for(k=t.extra;o<k;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}t.offset+=_&(1<<t.extra)-1,_>>>=t.extra,o-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg=\"invalid distance too far back\",t.mode=F;break}t.mode=di;case di:if(d===0)break e;if(s=c-d,t.offset>s){if(s=t.offset-s,s>t.whave&&t.sane){e.msg=\"invalid distance too far back\",t.mode=F;break}s>t.wnext?(s-=t.wnext,b=t.wsize-s):b=t.wnext-s,s>t.length&&(s=t.length),E=t.window}else E=r,b=f-t.offset,s=t.length;s>d&&(s=d),d-=s,t.length-=s;do r[f++]=E[b++];while(--s);t.length===0&&(t.mode=dt);break;case si:if(d===0)break e;r[f++]=t.length,d--,t.mode=dt;break;case Bt:if(t.wrap){for(;o<32;){if(l===0)break e;l--,_|=a[n++]<<o,o+=8}if(c-=d,e.total_out+=c,t.total+=c,c&&(e.adler=t.check=t.flags?ie(t.check,r,c,f-c):Pt(t.check,r,c,f-c)),c=d,(t.flags?_:vi(_))!==t.check){e.msg=\"incorrect data check\",t.mode=F;break}_=0,o=0}t.mode=ui;case ui:if(t.wrap&&t.flags){for(;o<32;){if(l===0)break e;l--,_+=a[n++]<<o,o+=8}if(_!==(t.total&4294967295)){e.msg=\"incorrect length check\",t.mode=F;break}_=0,o=0}t.mode=ci;case ci:Z=rn;break e;case F:Z=bi;break e;case Kt:return Gt;case _n:default:return q}return e.next_out=f,e.avail_out=d,e.next_in=n,e.avail_in=l,t.hold=_,t.bits=o,(t.wsize||c!==e.avail_out&&t.mode<F&&(t.mode<Bt||i!==Xa))&&Ti(e,e.output,e.next_out,c-e.avail_out)?(t.mode=Kt,Gt):(T-=e.avail_in,c-=e.avail_out,e.total_in+=T,e.total_out+=c,t.total+=c,t.wrap&&c&&(e.adler=t.check=t.flags?ie(t.check,r,c,e.next_out-c):Pt(t.check,r,c,e.next_out-c)),e.data_type=t.bits+(t.last?64:0)+(t.mode===fe?128:0)+(t.mode===ht||t.mode===Ut?256:0),(T===0&&c===0||i===Xa)&&Z===be&&(Z=fn),Z)}h(vn,\"inflate\");function pn(e){if(!e||!e.state)return q;var i=e.state;return i.window&&(i.window=null),e.state=null,be}h(pn,\"inflateEnd\");function wn(e,i){var t;return!e||!e.state||(t=e.state,(t.wrap&2)===0)?q:(t.head=i,i.done=!1,be)}h(wn,\"inflateGetHeader\");function En(e,i){var t=i.length,a,r,n;return!e||!e.state||(a=e.state,a.wrap!==0&&a.mode!==st)?q:a.mode===st&&(r=1,r=Pt(r,i,t,0),r!==a.check)?bi:(n=Ti(e,i,t,t),n?(a.mode=Kt,Gt):(a.havedict=1,be))}h(En,\"inflateSetDictionary\");Q.inflateReset=Zi;Q.inflateReset2=ki;Q.inflateResetKeep=gi;Q.inflateInit=un;Q.inflateInit2=Si;Q.inflate=vn;Q.inflateEnd=pn;Q.inflateGetHeader=wn;Q.inflateSetDictionary=En;Q.inflateInfo=\"pako inflate (from Nodeca project)\"});var Ii=K(($n,Ri)=>{\"use strict\";z();Ri.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var Ni=K(u=>{\"use strict\";z();var X=Qt(),bn=ea(),Ve=Oa(),xe=Li(),Ai=Ii();for(Wt in Ai)u[Wt]=Ai[Wt];var Wt;u.NONE=0;u.DEFLATE=1;u.INFLATE=2;u.GZIP=3;u.GUNZIP=4;u.DEFLATERAW=5;u.INFLATERAW=6;u.UNZIP=7;var xn=31,gn=139;function C(e){if(typeof e!=\"number\"||e<u.DEFLATE||e>u.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}h(C,\"Zlib\");C.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,X(this.init_done,\"close before init\"),X(this.mode<=u.UNZIP),this.mode===u.DEFLATE||this.mode===u.GZIP||this.mode===u.DEFLATERAW?Ve.deflateEnd(this.strm):(this.mode===u.INFLATE||this.mode===u.GUNZIP||this.mode===u.INFLATERAW||this.mode===u.UNZIP)&&xe.inflateEnd(this.strm),this.mode=u.NONE,this.dictionary=null};C.prototype.write=function(e,i,t,a,r,n,f){return this._write(!0,e,i,t,a,r,n,f)};C.prototype.writeSync=function(e,i,t,a,r,n,f){return this._write(!1,e,i,t,a,r,n,f)};C.prototype._write=function(e,i,t,a,r,n,f,l){if(X.equal(arguments.length,8),X(this.init_done,\"write before init\"),X(this.mode!==u.NONE,\"already finalized\"),X.equal(!1,this.write_in_progress,\"write already in progress\"),X.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,X.equal(!1,i===void 0,\"must provide flush value\"),this.write_in_progress=!0,i!==u.Z_NO_FLUSH&&i!==u.Z_PARTIAL_FLUSH&&i!==u.Z_SYNC_FLUSH&&i!==u.Z_FULL_FLUSH&&i!==u.Z_FINISH&&i!==u.Z_BLOCK)throw new Error(\"Invalid flush value\");if(t==null&&(t=Buffer.alloc(0),r=0,a=0),this.strm.avail_in=r,this.strm.input=t,this.strm.next_in=a,this.strm.avail_out=l,this.strm.output=n,this.strm.next_out=f,this.flush=i,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return process.nextTick(function(){d._process(),d._after()}),this};C.prototype._afterSync=function(){var e=this.strm.avail_out,i=this.strm.avail_in;return this.write_in_progress=!1,[i,e]};C.prototype._process=function(){var e=null;switch(this.mode){case u.DEFLATE:case u.GZIP:case u.DEFLATERAW:this.err=Ve.deflate(this.strm,this.flush);break;case u.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===xn){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=u.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===gn?(this.gzip_id_bytes_read=2,this.mode=u.GUNZIP):this.mode=u.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case u.INFLATE:case u.GUNZIP:case u.INFLATERAW:for(this.err=xe.inflate(this.strm,this.flush),this.err===u.Z_NEED_DICT&&this.dictionary&&(this.err=xe.inflateSetDictionary(this.strm,this.dictionary),this.err===u.Z_OK?this.err=xe.inflate(this.strm,this.flush):this.err===u.Z_DATA_ERROR&&(this.err=u.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===u.GUNZIP&&this.err===u.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=xe.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}};C.prototype._checkError=function(){switch(this.err){case u.Z_OK:case u.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===u.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case u.Z_STREAM_END:break;case u.Z_NEED_DICT:return this.dictionary==null?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0};C.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,i=this.strm.avail_in;this.write_in_progress=!1,this.callback(i,e),this.pending_close&&this.close()}};C.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};C.prototype.init=function(e,i,t,a,r){X(arguments.length===4||arguments.length===5,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),X(e>=8&&e<=15,\"invalid windowBits\"),X(i>=-1&&i<=9,\"invalid compression level\"),X(t>=1&&t<=9,\"invalid memlevel\"),X(a===u.Z_FILTERED||a===u.Z_HUFFMAN_ONLY||a===u.Z_RLE||a===u.Z_FIXED||a===u.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(i,e,t,a,r),this._setDictionary()};C.prototype.params=function(){throw new Error(\"deflateParams Not supported\")};C.prototype.reset=function(){this._reset(),this._setDictionary()};C.prototype._init=function(e,i,t,a,r){switch(this.level=e,this.windowBits=i,this.memLevel=t,this.strategy=a,this.flush=u.Z_NO_FLUSH,this.err=u.Z_OK,(this.mode===u.GZIP||this.mode===u.GUNZIP)&&(this.windowBits+=16),this.mode===u.UNZIP&&(this.windowBits+=32),(this.mode===u.DEFLATERAW||this.mode===u.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new bn,this.mode){case u.DEFLATE:case u.GZIP:case u.DEFLATERAW:this.err=Ve.deflateInit2(this.strm,this.level,u.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case u.INFLATE:case u.GUNZIP:case u.INFLATERAW:case u.UNZIP:this.err=xe.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==u.Z_OK&&this._error(\"Init error\"),this.dictionary=r,this.write_in_progress=!1,this.init_done=!0};C.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=u.Z_OK,this.mode){case u.DEFLATE:case u.DEFLATERAW:this.err=Ve.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==u.Z_OK&&this._error(\"Failed to set dictionary\")}};C.prototype._reset=function(){switch(this.err=u.Z_OK,this.mode){case u.DEFLATE:case u.DEFLATERAW:case u.GZIP:this.err=Ve.deflateReset(this.strm);break;case u.INFLATE:case u.INFLATERAW:case u.GUNZIP:this.err=xe.inflateReset(this.strm);break;default:break}this.err!==u.Z_OK&&this._error(\"Failed to reset stream\")};u.Zlib=C});var Oi=K(w=>{\"use strict\";z();var re=(bt(),jt(Jt)).Buffer,zi=Ci().Transform,g=Ni(),ue=Bi(),qe=Qt().ok,Yt=(bt(),jt(Jt)).kMaxLength,Fi=\"Cannot create final Buffer. It would be larger than 0x\"+Yt.toString(16)+\" bytes\";g.Z_MIN_WINDOWBITS=8;g.Z_MAX_WINDOWBITS=15;g.Z_DEFAULT_WINDOWBITS=15;g.Z_MIN_CHUNK=64;g.Z_MAX_CHUNK=1/0;g.Z_DEFAULT_CHUNK=16*1024;g.Z_MIN_MEMLEVEL=1;g.Z_MAX_MEMLEVEL=9;g.Z_DEFAULT_MEMLEVEL=8;g.Z_MIN_LEVEL=-1;g.Z_MAX_LEVEL=9;g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION;var mi=Object.keys(g);for(ut=0;ut<mi.length;ut++)ct=mi[ut],ct.match(/^Z/)&&Object.defineProperty(w,ct,{enumerable:!0,value:g[ct],writable:!1});var ct,ut,pt={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ERROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},yi=Object.keys(pt);for(vt=0;vt<yi.length;vt++)Xt=yi[vt],pt[pt[Xt]]=Xt;var Xt,vt;Object.defineProperty(w,\"codes\",{enumerable:!0,value:Object.freeze(pt),writable:!1});w.Deflate=ge;w.Inflate=Ze;w.Gzip=ke;w.Gunzip=Se;w.DeflateRaw=Te;w.InflateRaw=Le;w.Unzip=Re;w.createDeflate=function(e){return new ge(e)};w.createInflate=function(e){return new Ze(e)};w.createDeflateRaw=function(e){return new Te(e)};w.createInflateRaw=function(e){return new Le(e)};w.createGzip=function(e){return new ke(e)};w.createGunzip=function(e){return new Se(e)};w.createUnzip=function(e){return new Re(e)};w.deflate=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new ge(i),e,t)};w.deflateSync=function(e,i){return Ae(new ge(i),e)};w.gzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new ke(i),e,t)};w.gzipSync=function(e,i){return Ae(new ke(i),e)};w.deflateRaw=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Te(i),e,t)};w.deflateRawSync=function(e,i){return Ae(new Te(i),e)};w.unzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Re(i),e,t)};w.unzipSync=function(e,i){return Ae(new Re(i),e)};w.inflate=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Ze(i),e,t)};w.inflateSync=function(e,i){return Ae(new Ze(i),e)};w.gunzip=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Se(i),e,t)};w.gunzipSync=function(e,i){return Ae(new Se(i),e)};w.inflateRaw=function(e,i,t){return typeof i==\"function\"&&(t=i,i={}),Ie(new Le(i),e,t)};w.inflateRawSync=function(e,i){return Ae(new Le(i),e)};function Ie(e,i,t){var a=[],r=0;e.on(\"error\",f),e.on(\"end\",l),e.end(i),n();function n(){for(var d;(d=e.read())!==null;)a.push(d),r+=d.length;e.once(\"readable\",n)}h(n,\"flow\");function f(d){e.removeListener(\"end\",l),e.removeListener(\"readable\",n),t(d)}h(f,\"onError\");function l(){var d,_=null;r>=Yt?_=new RangeError(Fi):d=re.concat(a,r),a=[],e.close(),t(_,d)}h(l,\"onEnd\")}h(Ie,\"zlibBuffer\");function Ae(e,i){if(typeof i==\"string\"&&(i=re.from(i)),!re.isBuffer(i))throw new TypeError(\"Not a string or buffer\");var t=e._finishFlushFlag;return e._processChunk(i,t)}h(Ae,\"zlibBufferSync\");function ge(e){if(!(this instanceof ge))return new ge(e);O.call(this,e,g.DEFLATE)}h(ge,\"Deflate\");function Ze(e){if(!(this instanceof Ze))return new Ze(e);O.call(this,e,g.INFLATE)}h(Ze,\"Inflate\");function ke(e){if(!(this instanceof ke))return new ke(e);O.call(this,e,g.GZIP)}h(ke,\"Gzip\");function Se(e){if(!(this instanceof Se))return new Se(e);O.call(this,e,g.GUNZIP)}h(Se,\"Gunzip\");function Te(e){if(!(this instanceof Te))return new Te(e);O.call(this,e,g.DEFLATERAW)}h(Te,\"DeflateRaw\");function Le(e){if(!(this instanceof Le))return new Le(e);O.call(this,e,g.INFLATERAW)}h(Le,\"InflateRaw\");function Re(e){if(!(this instanceof Re))return new Re(e);O.call(this,e,g.UNZIP)}h(Re,\"Unzip\");function Di(e){return e===g.Z_NO_FLUSH||e===g.Z_PARTIAL_FLUSH||e===g.Z_SYNC_FLUSH||e===g.Z_FULL_FLUSH||e===g.Z_FINISH||e===g.Z_BLOCK}h(Di,\"isValidFlushFlag\");function O(e,i){var t=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||w.Z_DEFAULT_CHUNK,zi.call(this,e),e.flush&&!Di(e.flush))throw new Error(\"Invalid flush flag: \"+e.flush);if(e.finishFlush&&!Di(e.finishFlush))throw new Error(\"Invalid flush flag: \"+e.finishFlush);if(this._flushFlag=e.flush||g.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<\"u\"?e.finishFlush:g.Z_FINISH,e.chunkSize&&(e.chunkSize<w.Z_MIN_CHUNK||e.chunkSize>w.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+e.chunkSize);if(e.windowBits&&(e.windowBits<w.Z_MIN_WINDOWBITS||e.windowBits>w.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+e.windowBits);if(e.level&&(e.level<w.Z_MIN_LEVEL||e.level>w.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+e.level);if(e.memLevel&&(e.memLevel<w.Z_MIN_MEMLEVEL||e.memLevel>w.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+e.memLevel);if(e.strategy&&e.strategy!=w.Z_FILTERED&&e.strategy!=w.Z_HUFFMAN_ONLY&&e.strategy!=w.Z_RLE&&e.strategy!=w.Z_FIXED&&e.strategy!=w.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+e.strategy);if(e.dictionary&&!re.isBuffer(e.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new g.Zlib(i);var a=this;this._hadError=!1,this._handle.onerror=function(f,l){wt(a),a._hadError=!0;var d=new Error(f);d.errno=l,d.code=w.codes[l],a.emit(\"error\",d)};var r=w.Z_DEFAULT_COMPRESSION;typeof e.level==\"number\"&&(r=e.level);var n=w.Z_DEFAULT_STRATEGY;typeof e.strategy==\"number\"&&(n=e.strategy),this._handle.init(e.windowBits||w.Z_DEFAULT_WINDOWBITS,r,e.memLevel||w.Z_DEFAULT_MEMLEVEL,n,e.dictionary),this._buffer=re.allocUnsafe(this._chunkSize),this._offset=0,this._level=r,this._strategy=n,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:h(function(){return!t._handle},\"get\"),configurable:!0,enumerable:!0})}h(O,\"Zlib\");ue.inherits(O,zi);O.prototype.params=function(e,i,t){if(e<w.Z_MIN_LEVEL||e>w.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+e);if(i!=w.Z_FILTERED&&i!=w.Z_HUFFMAN_ONLY&&i!=w.Z_RLE&&i!=w.Z_FIXED&&i!=w.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+i);if(this._level!==e||this._strategy!==i){var a=this;this.flush(g.Z_SYNC_FLUSH,function(){qe(a._handle,\"zlib binding closed\"),a._handle.params(e,i),a._hadError||(a._level=e,a._strategy=i,t&&t())})}else process.nextTick(t)};O.prototype.reset=function(){return qe(this._handle,\"zlib binding closed\"),this._handle.reset()};O.prototype._flush=function(e){this._transform(re.alloc(0),\"\",e)};O.prototype.flush=function(e,i){var t=this,a=this._writableState;(typeof e==\"function\"||e===void 0&&!i)&&(i=e,e=g.Z_FULL_FLUSH),a.ended?i&&process.nextTick(i):a.ending?i&&this.once(\"end\",i):a.needDrain?i&&this.once(\"drain\",function(){return t.flush(e,i)}):(this._flushFlag=e,this.write(re.alloc(0),\"\",i))};O.prototype.close=function(e){wt(this,e),process.nextTick(Zn,this)};function wt(e,i){i&&process.nextTick(i),e._handle&&(e._handle.close(),e._handle=null)}h(wt,\"_close\");function Zn(e){e.emit(\"close\")}h(Zn,\"emitCloseNT\");O.prototype._transform=function(e,i,t){var a,r=this._writableState,n=r.ending||r.ended,f=n&&(!e||r.length===e.length);if(e!==null&&!re.isBuffer(e))return t(new Error(\"invalid input\"));if(!this._handle)return t(new Error(\"zlib binding closed\"));f?a=this._finishFlushFlag:(a=this._flushFlag,e.length>=r.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH)),this._processChunk(e,a,t)};O.prototype._processChunk=function(e,i,t){var a=e&&e.length,r=this._chunkSize-this._offset,n=0,f=this,l=typeof t==\"function\";if(!l){var d=[],_=0,o;this.on(\"error\",function(E){o=E}),qe(this._handle,\"zlib binding closed\");do var T=this._handle.writeSync(i,e,n,a,this._buffer,this._offset,r);while(!this._hadError&&b(T[0],T[1]));if(this._hadError)throw o;if(_>=Yt)throw wt(this),new RangeError(Fi);var c=re.concat(d,_);return wt(this),c}qe(this._handle,\"zlib binding closed\");var s=this._handle.write(i,e,n,a,this._buffer,this._offset,r);s.buffer=e,s.callback=b;function b(E,S){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var x=r-S;if(qe(x>=0,\"have should not go down\"),x>0){var m=f._buffer.slice(f._offset,f._offset+x);f._offset+=x,l?f.push(m):(d.push(m),_+=m.length)}if((S===0||f._offset>=f._chunkSize)&&(r=f._chunkSize,f._offset=0,f._buffer=re.allocUnsafe(f._chunkSize)),S===0){if(n+=a-E,a=E,!l)return!0;var D=f._handle.write(i,e,n,a,f._buffer,f._offset,f._chunkSize);D.callback=b,D.buffer=e;return}if(!l)return!1;t()}}h(b,\"callback\")};ue.inherits(ge,O);ue.inherits(Ze,O);ue.inherits(ke,O);ue.inherits(Se,O);ue.inherits(Te,O);ue.inherits(Le,O);ue.inherits(Re,O)});z();z();bt();var Et=Ui(Oi(),1);import{binary as Mi,primitive as kn}from\"../web.mjs\";for(let e of[\"gzip\",\"gunzip\",\"deflate\",\"inflate\",\"deflateRaw\",\"inflateRaw\",\"unzip\"]){let i=e+\"Sync\",t=h((a,r={})=>{let n=Mi(typeof a==\"string\"?Buffer.from(a):a);r??={};let f=Mi(r.dictionary??new ArrayBuffer(0)),l={};for(let d of[\"level\",\"windowBits\",\"memLevel\",\"strategy\",\"chunkSize\",\"flush\",\"finishFlush\",\"maxOutputLength\"])r[d]!==void 0&&(l[d]=r[d]);return Buffer.from(kn(\"zlib\",{method:i,offset:n.offset,length:n.length,options:l,dictionary:r.dictionary===void 0?void 0:{offset:f.offset,length:f.length}},n.buffer,f.buffer))},\"compress\");Et.default[i]=t,Et.default[e]=(a,r,n)=>{if(typeof r==\"function\"&&(n=r,r=void 0),typeof n!=\"function\")throw new TypeError(\"Expected a callback.\");queueMicrotask(()=>{let f;try{f=t(a,r)}catch(l){n(l);return}n(null,f)})}}var v=Et.default;var cf=v,vf=v.Z_NO_FLUSH;var pf=v.Z_PARTIAL_FLUSH;var wf=v.Z_SYNC_FLUSH;var Ef=v.Z_FULL_FLUSH;var bf=v.Z_FINISH;var xf=v.Z_BLOCK;var gf=v.Z_TREES;var Zf=v.Z_OK;var kf=v.Z_STREAM_END;var Sf=v.Z_NEED_DICT;var Tf=v.Z_ERRNO;var Lf=v.Z_STREAM_ERROR;var Rf=v.Z_DATA_ERROR;var If=v.Z_BUF_ERROR;var Af=v.Z_NO_COMPRESSION;var Nf=v.Z_BEST_SPEED;var mf=v.Z_BEST_COMPRESSION;var yf=v.Z_DEFAULT_COMPRESSION;var Df=v.Z_FILTERED;var zf=v.Z_HUFFMAN_ONLY;var Ff=v.Z_RLE;var Of=v.Z_FIXED;var Mf=v.Z_DEFAULT_STRATEGY;var Uf=v.Z_BINARY;var Bf=v.Z_TEXT;var Cf=v.Z_UNKNOWN;var Hf=v.Z_DEFLATED;var Pf=v.Zlib;var Gf=v.Z_MIN_WINDOWBITS;var Kf=v.Z_MAX_WINDOWBITS;var Wf=v.Z_DEFAULT_WINDOWBITS;var Xf=v.Z_MIN_CHUNK;var Yf=v.Z_MAX_CHUNK;var Vf=v.Z_DEFAULT_CHUNK;var qf=v.Z_MIN_MEMLEVEL;var jf=v.Z_MAX_MEMLEVEL;var Jf=v.Z_DEFAULT_MEMLEVEL;var Qf=v.Z_MIN_LEVEL;var $f=v.Z_MAX_LEVEL;var e_=v.Z_DEFAULT_LEVEL;var t_=v.codes;var a_=v.Deflate;var i_=v.Inflate;var r_=v.Gzip;var n_=v.Gunzip;var f_=v.DeflateRaw;var __=v.InflateRaw;var l_=v.Unzip;var o_=v.createDeflate;var h_=v.createInflate;var d_=v.createDeflateRaw;var s_=v.createInflateRaw;var u_=v.createGzip;var c_=v.createGunzip;var v_=v.createUnzip;var p_=v.deflate;var w_=v.deflateSync;var E_=v.gzip;var b_=v.gzipSync;var x_=v.deflateRaw;var g_=v.deflateRawSync;var Z_=v.unzip;var k_=v.unzipSync;var S_=v.inflate;var T_=v.inflateSync;var L_=v.gunzip;var R_=v.gunzipSync;var I_=v.inflateRaw;var A_=v.inflateRawSync;export{a_ as Deflate,f_ as DeflateRaw,n_ as Gunzip,r_ as Gzip,i_ as Inflate,__ as InflateRaw,l_ as Unzip,mf as Z_BEST_COMPRESSION,Nf as Z_BEST_SPEED,Uf as Z_BINARY,xf as Z_BLOCK,If as Z_BUF_ERROR,Rf as Z_DATA_ERROR,Vf as Z_DEFAULT_CHUNK,yf as Z_DEFAULT_COMPRESSION,e_ as Z_DEFAULT_LEVEL,Jf as Z_DEFAULT_MEMLEVEL,Mf as Z_DEFAULT_STRATEGY,Wf as Z_DEFAULT_WINDOWBITS,Hf as Z_DEFLATED,Tf as Z_ERRNO,Df as Z_FILTERED,bf as Z_FINISH,Of as Z_FIXED,Ef as Z_FULL_FLUSH,zf as Z_HUFFMAN_ONLY,Yf as Z_MAX_CHUNK,$f as Z_MAX_LEVEL,jf as Z_MAX_MEMLEVEL,Kf as Z_MAX_WINDOWBITS,Xf as Z_MIN_CHUNK,Qf as Z_MIN_LEVEL,qf as Z_MIN_MEMLEVEL,Gf as Z_MIN_WINDOWBITS,Sf as Z_NEED_DICT,Af as Z_NO_COMPRESSION,vf as Z_NO_FLUSH,Zf as Z_OK,pf as Z_PARTIAL_FLUSH,Ff as Z_RLE,kf as Z_STREAM_END,Lf as Z_STREAM_ERROR,wf as Z_SYNC_FLUSH,Bf as Z_TEXT,gf as Z_TREES,Cf as Z_UNKNOWN,Pf as Zlib,t_ as codes,o_ as createDeflate,d_ as createDeflateRaw,c_ as createGunzip,u_ as createGzip,h_ as createInflate,s_ as createInflateRaw,v_ as createUnzip,cf as default,p_ as deflate,x_ as deflateRaw,g_ as deflateRawSync,w_ as deflateSync,L_ as gunzip,R_ as gunzipSync,E_ as gzip,b_ as gzipSync,S_ as inflate,I_ as inflateRaw,A_ as inflateRawSync,T_ as inflateSync,Z_ as unzip,k_ as unzipSync};\n",
|
|
5516
5516
|
"engine/chunks/chunk-2PJDHVIE.mjs": "import{a as n,c as g,f as v,i as m,j as y,o}from\"./chunk-IQ3JZKJB.mjs\";var w=g((f,N)=>{o();/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var u=(y(),v(m)),a=u.Buffer;function p(t,e){for(var r in t)e[r]=t[r]}n(p,\"copyProps\");a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?N.exports=u:(p(u,f),f.Buffer=l);function l(t,e,r){return a(t,e,r)}n(l,\"SafeBuffer\");l.prototype=Object.create(a.prototype);p(a,l);l.from=function(t,e,r){if(typeof t==\"number\")throw new TypeError(\"Argument must not be a number\");return a(t,e,r)};l.alloc=function(t,e,r){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");var i=a(t);return e!==void 0?typeof r==\"string\"?i.fill(e,r):i.fill(e):i.fill(0),i};l.allocUnsafe=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return a(t)};l.allocUnsafeSlow=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return u.SlowBuffer(t)}});var O=g(C=>{\"use strict\";o();var d=w().Buffer,x=d.isEncoding||function(t){switch(t=\"\"+t,t&&t.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 T(t){if(!t)return\"utf8\";for(var e;;)switch(t){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 t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}n(T,\"_normalizeEncoding\");function E(t){var e=T(t);if(typeof e!=\"string\"&&(d.isEncoding===x||!x(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}n(E,\"normalizeEncoding\");C.StringDecoder=h;function h(t){this.encoding=E(t);var e;switch(this.encoding){case\"utf16le\":this.text=A,this.end=D,e=4;break;case\"utf8\":this.fillLast=k,e=4;break;case\"base64\":this.text=F,this.end=j,e=3;break;default:this.write=q,this.end=I;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(e)}n(h,\"StringDecoder\");h.prototype.write=function(t){if(t.length===0)return\"\";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"};h.prototype.end=U;h.prototype.text=L;h.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function c(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}n(c,\"utf8CheckByte\");function S(t,e,r){var i=e.length-1;if(i<r)return 0;var s=c(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=c(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=c(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}n(S,\"utf8CheckIncomplete\");function B(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,\"\\uFFFD\";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,\"\\uFFFD\";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,\"\\uFFFD\"}}n(B,\"utf8CheckExtraBytes\");function k(t){var e=this.lastTotal-this.lastNeed,r=B(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}n(k,\"utf8FillLast\");function L(t,e){var r=S(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString(\"utf8\",e,i)}n(L,\"utf8Text\");function U(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"\\uFFFD\":e}n(U,\"utf8End\");function A(t,e){if((t.length-e)%2===0){var r=t.toString(\"utf16le\",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}n(A,\"utf16Text\");function D(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}n(D,\"utf16End\");function F(t,e){var r=(t.length-e)%3;return r===0?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}n(F,\"base64Text\");function j(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}n(j,\"base64End\");function q(t){return t.toString(this.encoding)}n(q,\"simpleWrite\");function I(t){return t&&t.length?this.write(t):\"\"}n(I,\"simpleEnd\")});export{w as a,O as b};\n",
|
|
5517
5517
|
"engine/chunks/chunk-3CZWHKXF.mjs": "import{a as c,c as oe,o as K}from\"./chunk-IQ3JZKJB.mjs\";var ne=oe((m,I)=>{K();/*! https://mths.be/punycode v1.4.1 by @mathias */(function(S){var T=typeof m==\"object\"&&m&&!m.nodeType&&m,L=typeof I==\"object\"&&I&&!I.nodeType&&I,C=typeof globalThis==\"object\"&&globalThis;(C.global===C||C.window===C||C.self===C)&&(S=C);var F,y=2147483647,h=36,k=1,j=26,P=38,Q=700,O=72,B=128,q=\"-\",W=/^xn--/,X=/[^\\x20-\\x7E]/,Y=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,Z={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},D=h-k,p=Math.floor,M=String.fromCharCode,A;function w(e){throw new RangeError(Z[e])}c(w,\"error\");function N(e,o){for(var n=e.length,r=[];n--;)r[n]=o(e[n]);return r}c(N,\"map\");function U(e,o){var n=e.split(\"@\"),r=\"\";n.length>1&&(r=n[0]+\"@\",e=n[1]),e=e.replace(Y,\".\");var t=e.split(\".\"),u=N(t,o).join(\".\");return r+u}c(U,\"mapDomain\");function G(e){for(var o=[],n=0,r=e.length,t,u;n<r;)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<r?(u=e.charCodeAt(n++),(u&64512)==56320?o.push(((t&1023)<<10)+(u&1023)+65536):(o.push(t),n--)):o.push(t);return o}c(G,\"ucs2decode\");function R(e){return N(e,function(o){var n=\"\";return o>65535&&(o-=65536,n+=M(o>>>10&1023|55296),o=56320|o&1023),n+=M(o),n}).join(\"\")}c(R,\"ucs2encode\");function _(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h}c(_,\"basicToDigit\");function V(e,o){return e+22+75*(e<26)-((o!=0)<<5)}c(V,\"digitToBasic\");function z(e,o,n){var r=0;for(e=n?p(e/Q):e>>1,e+=p(e/o);e>D*j>>1;r+=h)e=p(e/D);return p(r+(D+1)*e/(e+P))}c(z,\"adapt\");function H(e){var o=[],n=e.length,r,t=0,u=B,i=O,a,l,x,b,f,s,d,v,g;for(a=e.lastIndexOf(q),a<0&&(a=0),l=0;l<a;++l)e.charCodeAt(l)>=128&&w(\"not-basic\"),o.push(e.charCodeAt(l));for(x=a>0?a+1:0;x<n;){for(b=t,f=1,s=h;x>=n&&w(\"invalid-input\"),d=_(e.charCodeAt(x++)),(d>=h||d>p((y-t)/f))&&w(\"overflow\"),t+=d*f,v=s<=i?k:s>=i+j?j:s-i,!(d<v);s+=h)g=h-v,f>p(y/g)&&w(\"overflow\"),f*=g;r=o.length+1,i=z(t-b,r,b==0),p(t/r)>y-u&&w(\"overflow\"),u+=p(t/r),t%=r,o.splice(t++,0,u)}return R(o)}c(H,\"decode\");function J(e){var o,n,r,t,u,i,a,l,x,b,f,s=[],d,v,g,E;for(e=G(e),d=e.length,o=B,n=0,u=O,i=0;i<d;++i)f=e[i],f<128&&s.push(M(f));for(r=t=s.length,t&&s.push(q);r<d;){for(a=y,i=0;i<d;++i)f=e[i],f>=o&&f<a&&(a=f);for(v=r+1,a-o>p((y-n)/v)&&w(\"overflow\"),n+=(a-o)*v,o=a,i=0;i<d;++i)if(f=e[i],f<o&&++n>y&&w(\"overflow\"),f==o){for(l=n,x=h;b=x<=u?k:x>=u+j?j:x-u,!(l<b);x+=h)E=l-b,g=h-b,s.push(M(V(b+E%g,0))),l=p(E/g);s.push(M(V(l,0))),u=z(n,v,r==t),n=0,++r}++n,++o}return s.join(\"\")}c(J,\"encode\");function $(e){return U(e,function(o){return W.test(o)?H(o.slice(4).toLowerCase()):o})}c($,\"toUnicode\");function ee(e){return U(e,function(o){return X.test(o)?\"xn--\"+J(o):o})}if(c(ee,\"toASCII\"),F={version:\"1.4.1\",ucs2:{decode:G,encode:R},decode:H,encode:J,toASCII:ee,toUnicode:$},typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd)define(\"punycode\",function(){return F});else if(T&&L)if(I.exports==T)L.exports=F;else for(A in F)F.hasOwnProperty(A)&&(T[A]=F[A]);else S.punycode=F})(m)});export{ne as a};\n",
|
|
5518
|
-
"engine/chunks/chunk-47XFURCP.mjs": "import{a as l,b as j,d as O,o as w}from\"./chunk-IQ3JZKJB.mjs\";var P={};O(P,{AbortController:()=>h,AbortSignal:()=>b,default:()=>x});function u(r,e){let t=r.get(e);if(!t)throw new TypeError(\"Illegal invocation\");return t}function g(){let r=Object.create(b.prototype);return c.set(r,{reason:void 0,listeners:[],handler:null,sources:void 0,dependents:new Set}),r}function y(r,e){e.removed=!0,r.listeners.splice(r.listeners.indexOf(e),1)}function E(r,e){let t=u(c,r),n=e?.type;if(e===null||typeof e!=\"object\"||typeof n!=\"string\")throw new TypeError(\"Expected an event with a string type\");let s=!!e.cancelable,o=!0,a=!1,i=!1,p=!!e.defaultPrevented,d={type:n,get target(){return r},get currentTarget(){return o?r:null},get eventPhase(){return o?2:0},get defaultPrevented(){return p},bubbles:!!e.bubbles,cancelable:s,isTrusted:!1,timeStamp:e.timeStamp??Date.now(),preventDefault(){s&&!i&&(p=!0)},stopPropagation(){},stopImmediatePropagation(){a=!0},composedPath(){return o?[r]:[]}};Object.setPrototypeOf(d,e);try{for(let f of t.listeners.slice())if(!(f.removed||f.type!==n)){f.once&&y(t,f),i=f.passive;try{typeof f.callback==\"function\"?f.callback.call(r,d):typeof f.callback.handleEvent==\"function\"&&f.callback.handleEvent(d)}catch(T){console.error(T)}if(a)break}}finally{o=!1,i=!1}return!p}function m(r,e){let t=c.get(r);if(t.reason!==void 0)return;e===void 0&&(e=Object.assign(new Error(\"The operation was aborted.\"),{name:\"AbortError\"}));let n=[r,...t.dependents];for(let s of n){let o=c.get(s);if(o.reason=e,o.dependents.clear(),o.sources){for(let a of o.sources)c.get(a).dependents.delete(s);o.sources.clear()}}for(let s of n)E(s,{type:\"abort\"})}var c,v,b,h,x,S=j(()=>{\"use strict\";w();c=new WeakMap,v=new WeakMap;l(u,\"stateOf\");l(g,\"createSignal\");l(y,\"removeListener\");l(E,\"dispatch\");l(m,\"abort\");b=class{static{l(this,\"AbortSignal\")}constructor(){throw new TypeError(\"AbortSignal cannot be constructed directly\")}get aborted(){return u(c,this).reason!==void 0}get reason(){return u(c,this).reason}throwIfAborted(){let e=u(c,this).reason;if(e!==void 0)throw e}get onabort(){return u(c,this).handler?.callback??null}set onabort(e){let t=u(c,this);typeof e!=\"function\"&&(e=null),t.handler?e?t.handler.callback=e:(y(t,t.handler),t.handler=null):e&&(t.handler={type:\"abort\",callback:e,capture:!1,once:!1,passive:!1,removed:!1,attribute:!0},t.listeners.push(t.handler))}addEventListener(e,t,n){let s=u(c,this);if(e=`${e}`,t==null)return;if(typeof t!=\"function\"&&typeof t!=\"object\")throw new TypeError(\"Expected a function or listener object\");let o=typeof n==\"boolean\"?n:!!n?.capture;s.listeners.some(a=>a.type===e&&a.callback===t&&a.capture===o&&!a.attribute)||s.listeners.push({type:e,callback:t,capture:o,once:!!n?.once,passive:!!n?.passive,removed:!1,attribute:!1})}removeEventListener(e,t,n){let s=u(c,this);e=`${e}`;let o=typeof n==\"boolean\"?n:!!n?.capture,a=s.listeners.find(i=>i.type===e&&i.callback===t&&i.capture===o&&!i.attribute);a&&y(s,a)}dispatchEvent(e){return E(this,e)}static abort(e){let t=g();return m(t,e),t}static timeout(e){if(!Number.isSafeInteger(e)||e<0||e>2147483647)throw new RangeError(\"Invalid timeout.\");let t=g();return setTimeout(()=>m(t,Object.assign(new Error(\"The operation timed out.\"),{name:\"TimeoutError\"})),e),t}static any(e){let t=Array.from(e),n=t.map(i=>u(c,i)),s=g(),o=c.get(s),a=n.find(i=>i.reason!==void 0);if(a)return o.reason=a.reason,s;o.sources=new Set;for(let[i,p]of n.entries())for(let d of p.sources??[t[i]])o.sources.add(d),c.get(d).dependents.add(s);return s}},h=class{static{l(this,\"AbortController\")}constructor(){v.set(this,g())}get signal(){return u(v,this)}abort(e){m(u(v,this),e)}};for(let[r,e]of Object.entries({AbortController:h,AbortSignal:b}))Object.defineProperty(e.prototype,Symbol.toStringTag,{value:r,configurable:!0});x=h});export{b as a,h as b,P as c,S as d};\n",
|
|
5519
|
-
"engine/chunks/chunk-5VZ4VCVQ.mjs": "import{b as So}from\"./chunk-2PJDHVIE.mjs\";import{a as Ue}from\"./chunk-QMKSQR7V.mjs\";import{c as qe,d as De}from\"./chunk-47XFURCP.mjs\";import{a as o,c as T,f as q,i as re,j as ie,k as oe,l as le,o as p}from\"./chunk-IQ3JZKJB.mjs\";var I=T((Ts,kn)=>{\"use strict\";p();var St=class extends Error{static{o(this,\"AggregateError\")}constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let n=\"\";for(let r=0;r<t.length;r++)n+=` ${t[r].stack}\n`;super(n),this.name=\"AggregateError\",this.errors=t}};kn.exports={AggregateError:St,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},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(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.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(e,t,n){return e.set(t,n)},Boolean,Uint8Array}});var U=T((ks,Un)=>{\"use strict\";p();var{SymbolAsyncIterator:Nn,SymbolIterator:qn,SymbolFor:ae}=I(),Dn=ae(\"nodejs.stream.destroyed\"),Ln=ae(\"nodejs.stream.errored\"),Et=ae(\"nodejs.stream.readable\"),Rt=ae(\"nodejs.stream.writable\"),Pn=ae(\"nodejs.stream.disturbed\"),Eo=ae(\"nodejs.webstream.isClosedPromise\"),Ro=ae(\"nodejs.webstream.controllerErrorFunction\");function He(e,t=!1){var n;return!!(e&&typeof e.pipe==\"function\"&&typeof e.on==\"function\"&&(!t||typeof e.pause==\"function\"&&typeof e.resume==\"function\")&&(!e._writableState||((n=e._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!e._writableState||e._readableState))}o(He,\"isReadableNodeStream\");function Ge(e){var t;return!!(e&&typeof e.write==\"function\"&&typeof e.on==\"function\"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}o(Ge,\"isWritableNodeStream\");function Ao(e){return!!(e&&typeof e.pipe==\"function\"&&e._readableState&&typeof e.on==\"function\"&&typeof e.write==\"function\")}o(Ao,\"isDuplexNodeStream\");function B(e){return e&&(e._readableState||e._writableState||typeof e.write==\"function\"&&typeof e.on==\"function\"||typeof e.pipe==\"function\"&&typeof e.on==\"function\")}o(B,\"isNodeStream\");function On(e){return!!(e&&!B(e)&&typeof e.pipeThrough==\"function\"&&typeof e.getReader==\"function\"&&typeof e.cancel==\"function\")}o(On,\"isReadableStream\");function Wn(e){return!!(e&&!B(e)&&typeof e.getWriter==\"function\"&&typeof e.abort==\"function\")}o(Wn,\"isWritableStream\");function xn(e){return!!(e&&!B(e)&&typeof e.readable==\"object\"&&typeof e.writable==\"object\")}o(xn,\"isTransformStream\");function mo(e){return On(e)||Wn(e)||xn(e)}o(mo,\"isWebStream\");function To(e,t){return e==null?!1:t===!0?typeof e[Nn]==\"function\":t===!1?typeof e[qn]==\"function\":typeof e[Nn]==\"function\"||typeof e[qn]==\"function\"}o(To,\"isIterable\");function Ve(e){if(!B(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[Dn]||r!=null&&r.destroyed)}o(Ve,\"isDestroyed\");function Cn(e){if(!Ge(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended!=\"boolean\"?null:t.ended}o(Cn,\"isWritableEnded\");function Io(e,t){if(!Ge(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished!=\"boolean\"?null:!!(n.finished||t===!1&&n.ended===!0&&n.length===0)}o(Io,\"isWritableFinished\");function Mo(e){if(!He(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended!=\"boolean\"?null:t.ended}o(Mo,\"isReadableEnded\");function $n(e,t){if(!He(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!=\"boolean\"?null:!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0)}o($n,\"isReadableFinished\");function jn(e){return e&&e[Et]!=null?e[Et]:typeof e?.readable!=\"boolean\"?null:Ve(e)?!1:He(e)&&e.readable&&!$n(e)}o(jn,\"isReadable\");function Fn(e){return e&&e[Rt]!=null?e[Rt]:typeof e?.writable!=\"boolean\"?null:Ve(e)?!1:Ge(e)&&e.writable&&!Cn(e)}o(Fn,\"isWritable\");function ko(e,t){return B(e)?Ve(e)?!0:!(t?.readable!==!1&&jn(e)||t?.writable!==!1&&Fn(e)):null}o(ko,\"isFinished\");function No(e){var t,n;return B(e)?e.writableErrored?e.writableErrored:(t=(n=e._writableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}o(No,\"isWritableErrored\");function qo(e){var t,n;return B(e)?e.readableErrored?e.readableErrored:(t=(n=e._readableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}o(qo,\"isReadableErrored\");function Do(e){if(!B(e))return null;if(typeof e.closed==\"boolean\")return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==\"boolean\"||typeof n?.closed==\"boolean\"?t?.closed||n?.closed:typeof e._closed==\"boolean\"&&vn(e)?e._closed:null}o(Do,\"isClosed\");function vn(e){return typeof e._closed==\"boolean\"&&typeof e._defaultKeepAlive==\"boolean\"&&typeof e._removedConnection==\"boolean\"&&typeof e._removedContLen==\"boolean\"}o(vn,\"isOutgoingMessage\");function Bn(e){return typeof e._sent100==\"boolean\"&&vn(e)}o(Bn,\"isServerResponse\");function Lo(e){var t;return typeof e._consuming==\"boolean\"&&typeof e._dumped==\"boolean\"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}o(Lo,\"isServerRequest\");function Po(e){if(!B(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&Bn(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}o(Po,\"willEmitClose\");function Oo(e){var t;return!!(e&&((t=e[Pn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}o(Oo,\"isDisturbed\");function Wo(e){var t,n,r,i,l,a,u,s,f,d;return!!(e&&((t=(n=(r=(i=(l=(a=e[Ln])!==null&&a!==void 0?a:e.readableErrored)!==null&&l!==void 0?l:e.writableErrored)!==null&&i!==void 0?i:(u=e._readableState)===null||u===void 0?void 0:u.errorEmitted)!==null&&r!==void 0?r:(s=e._writableState)===null||s===void 0?void 0:s.errorEmitted)!==null&&n!==void 0?n:(f=e._readableState)===null||f===void 0?void 0:f.errored)!==null&&t!==void 0?t:!((d=e._writableState)===null||d===void 0)&&d.errored))}o(Wo,\"isErrored\");Un.exports={isDestroyed:Ve,kIsDestroyed:Dn,isDisturbed:Oo,kIsDisturbed:Pn,isErrored:Wo,kIsErrored:Ln,isReadable:jn,kIsReadable:Et,kIsClosedPromise:Eo,kControllerErrorFunction:Ro,kIsWritable:Rt,isClosed:Do,isDuplexNodeStream:Ao,isFinished:ko,isIterable:To,isReadableNodeStream:He,isReadableStream:On,isReadableEnded:Mo,isReadableFinished:$n,isReadableErrored:qo,isNodeStream:B,isWebStream:mo,isWritable:Fn,isWritableNodeStream:Ge,isWritableStream:Wn,isWritableEnded:Cn,isWritableFinished:Io,isWritableErrored:No,isServerRequest:Lo,isServerResponse:Bn,willEmitClose:Po,isTransformStream:xn}});var At=T((Ds,Hn)=>{\"use strict\";p();Hn.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[n,r]){let i=t.shift();return r===\"f\"?i.toFixed(6):r===\"j\"?JSON.stringify(i):r===\"s\"&&typeof i==\"object\"?`${i.constructor!==Object?i.constructor.name:\"\"} {}`.trim():i.toString()})},inspect(e){switch(typeof e){case\"string\":if(e.includes(\"'\"))if(e.includes('\"')){if(!e.includes(\"`\")&&!e.includes(\"${\"))return`\\`${e}\\``}else return`\"${e}\"`;return`'${e}'`;case\"number\":return isNaN(e)?\"NaN\":Object.is(e,-0)?String(e):e;case\"bigint\":return`${String(e)}n`;case\"boolean\":case\"undefined\":return String(e);case\"object\":return\"{}\"}}}});var P=T((Ps,Yn)=>{\"use strict\";p();var{format:xo,inspect:Ye}=At(),{AggregateError:Co}=I(),$o=globalThis.AggregateError||Co,jo=Symbol(\"kIsNodeError\"),Fo=[\"string\",\"function\",\"number\",\"object\",\"Function\",\"Object\",\"boolean\",\"bigint\",\"symbol\"],vo=/^([A-Z][a-z0-9]*)+$/,Bo=\"__node_internal_\",Ke={};function fe(e,t){if(!e)throw new Ke.ERR_INTERNAL_ASSERTION(t)}o(fe,\"assert\");function Gn(e){let t=\"\",n=e.length,r=e[0]===\"-\"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}o(Gn,\"addNumericalSeparator\");function Uo(e,t,n){if(typeof t==\"function\")return fe(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);let r=(t.match(/%[dfijoOs]/g)||[]).length;return fe(r===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?t:xo(t,...n)}o(Uo,\"getMessage\");function L(e,t,n){n||(n=Error);class r extends n{static{o(this,\"NodeError\")}constructor(...l){super(Uo(e,t,l))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[jo]=!0,Ke[e]=r}o(L,\"E\");function Vn(e){let t=Bo+e.name;return Object.defineProperty(e,\"name\",{value:t}),e}o(Vn,\"hideStackFrames\");function Ho(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new $o([t,e],t.message);return n.code=t.code,n}return e||t}o(Ho,\"aggregateTwoErrors\");var mt=class extends Error{static{o(this,\"AbortError\")}constructor(t=\"The operation was aborted\",n=void 0){if(n!==void 0&&typeof n!=\"object\")throw new Ke.ERR_INVALID_ARG_TYPE(\"options\",\"Object\",n);super(t,n),this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};L(\"ERR_ASSERTION\",\"%s\",Error);L(\"ERR_INVALID_ARG_TYPE\",(e,t,n)=>{fe(typeof e==\"string\",\"'name' must be a string\"),Array.isArray(t)||(t=[t]);let r=\"The \";e.endsWith(\" argument\")?r+=`${e} `:r+=`\"${e}\" ${e.includes(\".\")?\"property\":\"argument\"} `,r+=\"must be \";let i=[],l=[],a=[];for(let s of t)fe(typeof s==\"string\",\"All expected entries have to be of type string\"),Fo.includes(s)?i.push(s.toLowerCase()):vo.test(s)?l.push(s):(fe(s!==\"object\",'The value \"object\" should be written as \"Object\"'),a.push(s));if(l.length>0){let s=i.indexOf(\"object\");s!==-1&&(i.splice(i,s,1),l.push(\"Object\"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let s=i.pop();r+=`one of type ${i.join(\", \")}, or ${s}`}}(l.length>0||a.length>0)&&(r+=\" or \")}if(l.length>0){switch(l.length){case 1:r+=`an instance of ${l[0]}`;break;case 2:r+=`an instance of ${l[0]} or ${l[1]}`;break;default:{let s=l.pop();r+=`an instance of ${l.join(\", \")}, or ${s}`}}a.length>0&&(r+=\" or \")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(r+=\"an \"),r+=`${a[0]}`;break;case 2:r+=`one of ${a[0]} or ${a[1]}`;break;default:{let s=a.pop();r+=`one of ${a.join(\", \")}, or ${s}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n==\"function\"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n==\"object\"){var u;if((u=n.constructor)!==null&&u!==void 0&&u.name)r+=`. Received an instance of ${n.constructor.name}`;else{let s=Ye(n,{depth:-1});r+=`. Received ${s}`}}else{let s=Ye(n,{colors:!1});s.length>25&&(s=`${s.slice(0,25)}...`),r+=`. Received type ${typeof n} (${s})`}return r},TypeError);L(\"ERR_INVALID_ARG_VALUE\",(e,t,n=\"is invalid\")=>{let r=Ye(t);return r.length>128&&(r=r.slice(0,128)+\"...\"),`The ${e.includes(\".\")?\"property\":\"argument\"} '${e}' ${n}. Received ${r}`},TypeError);L(\"ERR_INVALID_RETURN_VALUE\",(e,t,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${e} to be returned from the \"${t}\" function but got ${i}.`},TypeError);L(\"ERR_MISSING_ARGS\",(...e)=>{fe(e.length>0,\"At least one arg needs to be specified\");let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(r=>`\"${r}\"`).join(\" or \"),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(\", \")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError);L(\"ERR_OUT_OF_RANGE\",(e,t,n)=>{fe(t,'Missing \"range\" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=Gn(String(n));else if(typeof n==\"bigint\"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=Gn(r)),r+=\"n\"}else r=Ye(n);return`The value of \"${e}\" is out of range. It must be ${t}. Received ${r}`},RangeError);L(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\",Error);L(\"ERR_METHOD_NOT_IMPLEMENTED\",\"The %s method is not implemented\",Error);L(\"ERR_STREAM_ALREADY_FINISHED\",\"Cannot call %s after a stream was finished\",Error);L(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\",Error);L(\"ERR_STREAM_DESTROYED\",\"Cannot call %s after a stream was destroyed\",Error);L(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);L(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\",Error);L(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\",Error);L(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\",Error);L(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\",Error);L(\"ERR_UNKNOWN_ENCODING\",\"Unknown encoding: %s\",TypeError);Yn.exports={AbortError:mt,aggregateTwoErrors:Vn(Ho),hideStackFrames:Vn,codes:Ke}});var W=T((xs,It)=>{\"use strict\";p();var Go=(ie(),q(re)),{format:Vo,inspect:Yo}=At(),{codes:{ERR_INVALID_ARG_TYPE:Tt}}=P(),{kResistStopPropagation:Ko,AggregateError:zo,SymbolDispose:Xo}=I(),Jo=globalThis.AbortSignal||(De(),q(qe)).AbortSignal,Qo=globalThis.AbortController||(De(),q(qe)).AbortController,Zo=Object.getPrototypeOf(async function(){}).constructor,Kn=globalThis.Blob||Go.Blob,el=o(typeof Kn<\"u\"?function(t){return t instanceof Kn}:function(t){return!1},\"isBlob\"),zn=o((e,t)=>{if(e!==void 0&&(e===null||typeof e!=\"object\"||!(\"aborted\"in e)))throw new Tt(t,\"AbortSignal\",e)},\"validateAbortSignal\"),tl=o((e,t)=>{if(typeof e!=\"function\")throw new Tt(t,\"Function\",e)},\"validateFunction\");It.exports={AggregateError:zo,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:o(function(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}},\"createDeferredPromise\"),promisify(e){return new Promise((t,n)=>{e((r,...i)=>r?n(r):t(...i))})},debuglog(){return function(){}},format:Vo,inspect:Yo,types:{isAsyncFunction(e){return e instanceof Zo},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:el,deprecate(e,t){return e},addAbortListener:Ue().addAbortListener||o(function(t,n){if(t===void 0)throw new Tt(\"signal\",\"AbortSignal\",t);zn(t,\"signal\"),tl(n,\"listener\");let r;return t.aborted?queueMicrotask(()=>n()):(t.addEventListener(\"abort\",n,{__proto__:null,once:!0,[Ko]:!0}),r=o(()=>{t.removeEventListener(\"abort\",n)},\"removeEventListener\")),{__proto__:null,[Xo](){var i;(i=r)===null||i===void 0||i()}}},\"addAbortListener\"),AbortSignalAny:Jo.any||o(function(t){if(t.length===1)return t[0];let n=new Qo,r=o(()=>n.abort(),\"abort\");return t.forEach(i=>{zn(i,\"signals\"),i.addEventListener(\"abort\",r,{once:!0})}),n.signal.addEventListener(\"abort\",()=>{t.forEach(i=>i.removeEventListener(\"abort\",r))},{once:!0}),n.signal},\"AbortSignalAny\")};It.exports.promisify.custom=Symbol.for(\"nodejs.util.promisify.custom\")});var ge=T((js,or)=>{\"use strict\";p();var{ArrayIsArray:kt,ArrayPrototypeIncludes:Zn,ArrayPrototypeJoin:er,ArrayPrototypeMap:nl,NumberIsInteger:Nt,NumberIsNaN:rl,NumberMAX_SAFE_INTEGER:il,NumberMIN_SAFE_INTEGER:ol,NumberParseInt:ll,ObjectPrototypeHasOwnProperty:al,RegExpPrototypeExec:tr,String:fl,StringPrototypeToUpperCase:ul,StringPrototypeTrim:sl}=I(),{hideStackFrames:$,codes:{ERR_SOCKET_BAD_PORT:dl,ERR_INVALID_ARG_TYPE:O,ERR_INVALID_ARG_VALUE:we,ERR_OUT_OF_RANGE:ue,ERR_UNKNOWN_SIGNAL:Xn}}=P(),{normalizeEncoding:cl}=W(),{isAsyncFunction:hl,isArrayBufferView:bl}=W().types,Jn={};function pl(e){return e===(e|0)}o(pl,\"isInt32\");function _l(e){return e===e>>>0}o(_l,\"isUint32\");var yl=/^[0-7]+$/,wl=\"must be a 32-bit unsigned integer or an octal string\";function gl(e,t,n){if(typeof e>\"u\"&&(e=n),typeof e==\"string\"){if(tr(yl,e)===null)throw new we(t,e,wl);e=ll(e,8)}return nr(e,t),e}o(gl,\"parseFileMode\");var Sl=$((e,t,n=ol,r=il)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);if(e<n||e>r)throw new ue(t,`>= ${n} && <= ${r}`,e)}),El=$((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);if(e<n||e>r)throw new ue(t,`>= ${n} && <= ${r}`,e)}),nr=$((e,t,n=!1)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);let r=n?1:0,i=4294967295;if(e<r||e>i)throw new ue(t,`>= ${r} && <= ${i}`,e)});function qt(e,t){if(typeof e!=\"string\")throw new O(t,\"string\",e)}o(qt,\"validateString\");function Rl(e,t,n=void 0,r){if(typeof e!=\"number\")throw new O(t,\"number\",e);if(n!=null&&e<n||r!=null&&e>r||(n!=null||r!=null)&&rl(e))throw new ue(t,`${n!=null?`>= ${n}`:\"\"}${n!=null&&r!=null?\" && \":\"\"}${r!=null?`<= ${r}`:\"\"}`,e)}o(Rl,\"validateNumber\");var Al=$((e,t,n)=>{if(!Zn(n,e)){let i=\"must be one of: \"+er(nl(n,l=>typeof l==\"string\"?`'${l}'`:fl(l)),\", \");throw new we(t,e,i)}});function rr(e,t){if(typeof e!=\"boolean\")throw new O(t,\"boolean\",e)}o(rr,\"validateBoolean\");function Mt(e,t,n){return e==null||!al(e,t)?n:e[t]}o(Mt,\"getOwnPropertyValueOrDefault\");var ml=$((e,t,n=null)=>{let r=Mt(n,\"allowArray\",!1),i=Mt(n,\"allowFunction\",!1);if(!Mt(n,\"nullable\",!1)&&e===null||!r&&kt(e)||typeof e!=\"object\"&&(!i||typeof e!=\"function\"))throw new O(t,\"Object\",e)}),Tl=$((e,t)=>{if(e!=null&&typeof e!=\"object\"&&typeof e!=\"function\")throw new O(t,\"a dictionary\",e)}),ze=$((e,t,n=0)=>{if(!kt(e))throw new O(t,\"Array\",e);if(e.length<n){let r=`must be longer than ${n}`;throw new we(t,e,r)}});function Il(e,t){ze(e,t);for(let n=0;n<e.length;n++)qt(e[n],`${t}[${n}]`)}o(Il,\"validateStringArray\");function Ml(e,t){ze(e,t);for(let n=0;n<e.length;n++)rr(e[n],`${t}[${n}]`)}o(Ml,\"validateBooleanArray\");function kl(e,t){ze(e,t);for(let n=0;n<e.length;n++){let r=e[n],i=`${t}[${n}]`;if(r==null)throw new O(i,\"AbortSignal\",r);ir(r,i)}}o(kl,\"validateAbortSignalArray\");function Nl(e,t=\"signal\"){if(qt(e,t),Jn[e]===void 0)throw Jn[ul(e)]!==void 0?new Xn(e+\" (signals must use all capital letters)\"):new Xn(e)}o(Nl,\"validateSignalName\");var ql=$((e,t=\"buffer\")=>{if(!bl(e))throw new O(t,[\"Buffer\",\"TypedArray\",\"DataView\"],e)});function Dl(e,t){let n=cl(t),r=e.length;if(n===\"hex\"&&r%2!==0)throw new we(\"encoding\",t,`is invalid for data of length ${r}`)}o(Dl,\"validateEncoding\");function Ll(e,t=\"Port\",n=!0){if(typeof e!=\"number\"&&typeof e!=\"string\"||typeof e==\"string\"&&sl(e).length===0||+e!==+e>>>0||e>65535||e===0&&!n)throw new dl(t,e,n);return e|0}o(Ll,\"validatePort\");var ir=$((e,t)=>{if(e!==void 0&&(e===null||typeof e!=\"object\"||!(\"aborted\"in e)))throw new O(t,\"AbortSignal\",e)}),Pl=$((e,t)=>{if(typeof e!=\"function\")throw new O(t,\"Function\",e)}),Ol=$((e,t)=>{if(typeof e!=\"function\"||hl(e))throw new O(t,\"Function\",e)}),Wl=$((e,t)=>{if(e!==void 0)throw new O(t,\"undefined\",e)});function xl(e,t,n){if(!Zn(n,e))throw new O(t,`('${er(n,\"|\")}')`,e)}o(xl,\"validateUnion\");var Cl=/^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/;function Qn(e,t){if(typeof e>\"u\"||!tr(Cl,e))throw new we(t,e,'must be an array or string of format \"</styles.css>; rel=preload; as=style\"')}o(Qn,\"validateLinkHeaderFormat\");function $l(e){if(typeof e==\"string\")return Qn(e,\"hints\"),e;if(kt(e)){let t=e.length,n=\"\";if(t===0)return n;for(let r=0;r<t;r++){let i=e[r];Qn(i,\"hints\"),n+=i,r!==t-1&&(n+=\", \")}return n}throw new we(\"hints\",e,'must be an array or string of format \"</styles.css>; rel=preload; as=style\"')}o($l,\"validateLinkHeaderValue\");or.exports={isInt32:pl,isUint32:_l,parseFileMode:gl,validateArray:ze,validateStringArray:Il,validateBooleanArray:Ml,validateAbortSignalArray:kl,validateBoolean:rr,validateBuffer:ql,validateDictionary:Tl,validateEncoding:Dl,validateFunction:Pl,validateInt32:El,validateInteger:Sl,validateNumber:Rl,validateObject:ml,validateOneOf:Al,validatePlainFunction:Ol,validatePort:Ll,validateSignalName:Nl,validateString:qt,validateUint32:nr,validateUndefined:Wl,validateUnion:xl,validateAbortSignal:ir,validateLinkHeaderValue:$l}});var K=T((Bs,Wt)=>{\"use strict\";p();var Z=(le(),q(oe)),{AbortError:br,codes:jl}=P(),{ERR_INVALID_ARG_TYPE:Fl,ERR_STREAM_PREMATURE_CLOSE:lr}=jl,{kEmptyObject:Lt,once:Pt}=W(),{validateAbortSignal:vl,validateFunction:Bl,validateObject:Ul,validateBoolean:Hl}=ge(),{Promise:Gl,PromisePrototypeThen:Vl,SymbolDispose:pr}=I(),{isClosed:Yl,isReadable:ar,isReadableNodeStream:Dt,isReadableStream:Kl,isReadableFinished:fr,isReadableErrored:ur,isWritable:sr,isWritableNodeStream:dr,isWritableStream:zl,isWritableFinished:cr,isWritableErrored:hr,isNodeStream:Xl,willEmitClose:Jl,kIsClosedPromise:Ql}=U(),Se;function Zl(e){return e.setHeader&&typeof e.abort==\"function\"}o(Zl,\"isRequest\");var Ot=o(()=>{},\"nop\");function _r(e,t,n){var r,i;if(arguments.length===2?(n=t,t=Lt):t==null?t=Lt:Ul(t,\"options\"),Bl(n,\"callback\"),vl(t.signal,\"options.signal\"),n=Pt(n),Kl(e)||zl(e))return ea(e,t,n);if(!Xl(e))throw new Fl(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],e);let l=(r=t.readable)!==null&&r!==void 0?r:Dt(e),a=(i=t.writable)!==null&&i!==void 0?i:dr(e),u=e._writableState,s=e._readableState,f=o(()=>{e.writable||_()},\"onlegacyfinish\"),d=Jl(e)&&Dt(e)===l&&dr(e)===a,c=cr(e,!1),_=o(()=>{c=!0,e.destroyed&&(d=!1),!(d&&(!e.readable||l))&&(!l||h)&&n.call(e)},\"onfinish\"),h=fr(e,!1),E=o(()=>{h=!0,e.destroyed&&(d=!1),!(d&&(!e.writable||a))&&(!a||c)&&n.call(e)},\"onend\"),b=o(k=>{n.call(e,k)},\"onerror\"),R=Yl(e),w=o(()=>{R=!0;let k=hr(e)||ur(e);if(k&&typeof k!=\"boolean\")return n.call(e,k);if(l&&!h&&Dt(e,!0)&&!fr(e,!1))return n.call(e,new lr);if(a&&!c&&!cr(e,!1))return n.call(e,new lr);n.call(e)},\"onclose\"),A=o(()=>{R=!0;let k=hr(e)||ur(e);if(k&&typeof k!=\"boolean\")return n.call(e,k);n.call(e)},\"onclosed\"),N=o(()=>{e.req.on(\"finish\",_)},\"onrequest\");Zl(e)?(e.on(\"complete\",_),d||e.on(\"abort\",w),e.req?N():e.on(\"request\",N)):a&&!u&&(e.on(\"end\",f),e.on(\"close\",f)),!d&&typeof e.aborted==\"boolean\"&&e.on(\"aborted\",w),e.on(\"end\",E),e.on(\"finish\",_),t.error!==!1&&e.on(\"error\",b),e.on(\"close\",w),R?Z.nextTick(w):u!=null&&u.errorEmitted||s!=null&&s.errorEmitted?d||Z.nextTick(A):(!l&&(!d||ar(e))&&(c||sr(e)===!1)||!a&&(!d||sr(e))&&(h||ar(e)===!1)||s&&e.req&&e.aborted)&&Z.nextTick(A);let S=o(()=>{n=Ot,e.removeListener(\"aborted\",w),e.removeListener(\"complete\",_),e.removeListener(\"abort\",w),e.removeListener(\"request\",N),e.req&&e.req.removeListener(\"finish\",_),e.removeListener(\"end\",f),e.removeListener(\"close\",f),e.removeListener(\"finish\",_),e.removeListener(\"end\",E),e.removeListener(\"error\",b),e.removeListener(\"close\",w)},\"cleanup\");if(t.signal&&!R){let k=o(()=>{let ne=n;S(),ne.call(e,new br(void 0,{cause:t.signal.reason}))},\"abort\");if(t.signal.aborted)Z.nextTick(k);else{Se=Se||W().addAbortListener;let ne=Se(t.signal,k),C=n;n=Pt((...ye)=>{ne[pr](),C.apply(e,ye)})}}return S}o(_r,\"eos\");function ea(e,t,n){let r=!1,i=Ot;if(t.signal)if(i=o(()=>{r=!0,n.call(e,new br(void 0,{cause:t.signal.reason}))},\"abort\"),t.signal.aborted)Z.nextTick(i);else{Se=Se||W().addAbortListener;let a=Se(t.signal,i),u=n;n=Pt((...s)=>{a[pr](),u.apply(e,s)})}let l=o((...a)=>{r||Z.nextTick(()=>n.apply(e,a))},\"resolverFn\");return Vl(e[Ql].promise,l,l),Ot}o(ea,\"eosWeb\");function ta(e,t){var n;let r=!1;return t===null&&(t=Lt),(n=t)!==null&&n!==void 0&&n.cleanup&&(Hl(t.cleanup,\"cleanup\"),r=t.cleanup),new Gl((i,l)=>{let a=_r(e,t,u=>{r&&a(),u?l(u):i()})})}o(ta,\"finished\");Wt.exports=_r;Wt.exports.finished=ta});var se=T((Gs,mr)=>{\"use strict\";p();var H=(le(),q(oe)),{aggregateTwoErrors:na,codes:{ERR_MULTIPLE_CALLBACK:ra},AbortError:ia}=P(),{Symbol:gr}=I(),{kIsDestroyed:oa,isDestroyed:la,isFinished:aa,isServerRequest:fa}=U(),Sr=gr(\"kDestroy\"),xt=gr(\"kConstruct\");function Er(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}o(Er,\"checkError\");function ua(e,t){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof t==\"function\"&&t(),this):(Er(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?yr(this,e,t):this.once(Sr,function(l){yr(this,na(l,e),t)}),this)}o(ua,\"destroy\");function yr(e,t,n){let r=!1;function i(l){if(r)return;r=!0;let a=e._readableState,u=e._writableState;Er(l,u,a),u&&(u.closed=!0),a&&(a.closed=!0),typeof n==\"function\"&&n(l),l?H.nextTick(sa,e,l):H.nextTick(Rr,e)}o(i,\"onDestroy\");try{e._destroy(t||null,i)}catch(l){i(l)}}o(yr,\"_destroy\");function sa(e,t){Ct(e,t),Rr(e)}o(sa,\"emitErrorCloseNT\");function Rr(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit(\"close\")}o(Rr,\"emitCloseNT\");function Ct(e,t){let n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(\"error\",t))}o(Ct,\"emitErrorNT\");function da(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}o(da,\"undestroy\");function $t(e,t,n){let r=e._readableState,i=e._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),r&&!r.errored&&(r.errored=t),n?H.nextTick(Ct,e,t):Ct(e,t))}o($t,\"errorOrDestroy\");function ca(e,t){if(typeof e._construct!=\"function\")return;let n=e._readableState,r=e._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),e.once(xt,t),!(e.listenerCount(xt)>1)&&H.nextTick(ha,e)}o(ca,\"construct\");function ha(e){let t=!1;function n(r){if(t){$t(e,r??new ra);return}t=!0;let i=e._readableState,l=e._writableState,a=l||i;i&&(i.constructed=!0),l&&(l.constructed=!0),a.destroyed?e.emit(Sr,r):r?$t(e,r,!0):H.nextTick(ba,e)}o(n,\"onConstruct\");try{e._construct(r=>{H.nextTick(n,r)})}catch(r){H.nextTick(n,r)}}o(ha,\"constructNT\");function ba(e){e.emit(xt)}o(ba,\"emitConstructNT\");function wr(e){return e?.setHeader&&typeof e.abort==\"function\"}o(wr,\"isRequest\");function Ar(e){e.emit(\"close\")}o(Ar,\"emitCloseLegacy\");function pa(e,t){e.emit(\"error\",t),H.nextTick(Ar,e)}o(pa,\"emitErrorCloseLegacy\");function _a(e,t){!e||la(e)||(!t&&!aa(e)&&(t=new ia),fa(e)?(e.socket=null,e.destroy(t)):wr(e)?e.abort():wr(e.req)?e.req.abort():typeof e.destroy==\"function\"?e.destroy(t):typeof e.close==\"function\"?e.close():t?H.nextTick(pa,e,t):H.nextTick(Ar,e),e.destroyed||(e[oa]=!0))}o(_a,\"destroyer\");mr.exports={construct:ca,destroyer:_a,destroy:ua,undestroy:da,errorOrDestroy:$t}});var Qe=T((Ks,Ir)=>{\"use strict\";p();var{ArrayIsArray:ya,ObjectSetPrototypeOf:Tr}=I(),{EventEmitter:Xe}=Ue();function Je(e){Xe.call(this,e)}o(Je,\"Stream\");Tr(Je.prototype,Xe.prototype);Tr(Je,Xe);Je.prototype.pipe=function(e,t){let n=this;function r(d){e.writable&&e.write(d)===!1&&n.pause&&n.pause()}o(r,\"ondata\"),n.on(\"data\",r);function i(){n.readable&&n.resume&&n.resume()}o(i,\"ondrain\"),e.on(\"drain\",i),!e._isStdio&&(!t||t.end!==!1)&&(n.on(\"end\",a),n.on(\"close\",u));let l=!1;function a(){l||(l=!0,e.end())}o(a,\"onend\");function u(){l||(l=!0,typeof e.destroy==\"function\"&&e.destroy())}o(u,\"onclose\");function s(d){f(),Xe.listenerCount(this,\"error\")===0&&this.emit(\"error\",d)}o(s,\"onerror\"),jt(n,\"error\",s),jt(e,\"error\",s);function f(){n.removeListener(\"data\",r),e.removeListener(\"drain\",i),n.removeListener(\"end\",a),n.removeListener(\"close\",u),n.removeListener(\"error\",s),e.removeListener(\"error\",s),n.removeListener(\"end\",f),n.removeListener(\"close\",f),e.removeListener(\"close\",f)}return o(f,\"cleanup\"),n.on(\"end\",f),n.on(\"close\",f),e.on(\"close\",f),e.emit(\"pipe\",n),e};function jt(e,t,n){if(typeof e.prependListener==\"function\")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):ya(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}o(jt,\"prependListener\");Ir.exports={Stream:Je,prependListener:jt}});var Le=T((Js,Ze)=>{\"use strict\";p();var{SymbolDispose:wa}=I(),{AbortError:Mr,codes:ga}=P(),{isNodeStream:kr,isWebStream:Sa,kControllerErrorFunction:Ea}=U(),Ra=K(),{ERR_INVALID_ARG_TYPE:Nr}=ga,Ft,Aa=o((e,t)=>{if(typeof e!=\"object\"||!(\"aborted\"in e))throw new Nr(t,\"AbortSignal\",e)},\"validateAbortSignal\");Ze.exports.addAbortSignal=o(function(t,n){if(Aa(t,\"signal\"),!kr(n)&&!Sa(n))throw new Nr(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],n);return Ze.exports.addAbortSignalNoValidate(t,n)},\"addAbortSignal\");Ze.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=\"object\"||!(\"aborted\"in e))return t;let n=kr(t)?()=>{t.destroy(new Mr(void 0,{cause:e.reason}))}:()=>{t[Ea](new Mr(void 0,{cause:e.reason}))};if(e.aborted)n();else{Ft=Ft||W().addAbortListener;let r=Ft(e,n);Ra(t,r[wa])}return t}});var Lr=T((td,Dr)=>{\"use strict\";p();var{StringPrototypeSlice:qr,SymbolIterator:ma,TypedArrayPrototypeSet:et,Uint8Array:Ta}=I(),{Buffer:vt}=(ie(),q(re)),{inspect:Ia}=W();Dr.exports=class{static{o(this,\"BufferList\")}constructor(){this.head=null,this.tail=null,this.length=0}push(t){let n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(t){let n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return\"\";let n=this.head,r=\"\"+n.data;for(;(n=n.next)!==null;)r+=t+n.data;return r}concat(t){if(this.length===0)return vt.alloc(0);let n=vt.allocUnsafe(t>>>0),r=this.head,i=0;for(;r;)et(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(t,n){let r=this.head.data;if(t<r.length){let i=r.slice(0,t);return this.head.data=r.slice(t),i}return t===r.length?this.shift():n?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[ma](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let n=\"\",r=this.head,i=0;do{let l=r.data;if(t>l.length)n+=l,t-=l.length;else{t===l.length?(n+=l,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=qr(l,0,t),this.head=r,r.data=qr(l,t));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(t){let n=vt.allocUnsafe(t),r=t,i=this.head,l=0;do{let a=i.data;if(t>a.length)et(n,a,r-t),t-=a.length;else{t===a.length?(et(n,a,r-t),++l,i.next?this.head=i.next:this.head=this.tail=null):(et(n,new Ta(a.buffer,a.byteOffset,t),r-t),this.head=i,i.data=a.slice(t));break}++l}while((i=i.next)!==null);return this.length-=l,n}[Symbol.for(\"nodejs.util.inspect.custom\")](t,n){return Ia(this,{...n,depth:0,customInspect:!1})}}});var Pe=T((id,xr)=>{\"use strict\";p();var{MathFloor:Ma,NumberIsInteger:ka}=I(),{validateInteger:Na}=ge(),{ERR_INVALID_ARG_VALUE:qa}=P().codes,Pr=16*1024,Or=16;function Da(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}o(Da,\"highWaterMarkFrom\");function Wr(e){return e?Or:Pr}o(Wr,\"getDefaultHighWaterMark\");function La(e,t){Na(t,\"value\",0),e?Or=t:Pr=t}o(La,\"setDefaultHighWaterMark\");function Pa(e,t,n,r){let i=Da(t,r,n);if(i!=null){if(!ka(i)||i<0){let l=r?`options.${n}`:\"options.highWaterMark\";throw new qa(l,i)}return Ma(i)}return Wr(e.objectMode)}o(Pa,\"getHighWaterMark\");xr.exports={getHighWaterMark:Pa,getDefaultHighWaterMark:Wr,setDefaultHighWaterMark:La}});var Bt=T((ad,Fr)=>{\"use strict\";p();var Cr=(le(),q(oe)),{PromisePrototypeThen:Oa,SymbolAsyncIterator:$r,SymbolIterator:jr}=I(),{Buffer:Wa}=(ie(),q(re)),{ERR_INVALID_ARG_TYPE:xa,ERR_STREAM_NULL_VALUES:Ca}=P().codes;function $a(e,t,n){let r;if(typeof t==\"string\"||t instanceof Wa)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let i;if(t&&t[$r])i=!0,r=t[$r]();else if(t&&t[jr])i=!1,r=t[jr]();else throw new xa(\"iterable\",[\"Iterable\"],t);let l=new e({objectMode:!0,highWaterMark:1,...n}),a=!1;l._read=function(){a||(a=!0,s())},l._destroy=function(f,d){Oa(u(f),()=>Cr.nextTick(d,f),c=>Cr.nextTick(d,c||f))};async function u(f){let d=f!=null,c=typeof r.throw==\"function\";if(d&&c){let{value:_,done:h}=await r.throw(f);if(await _,h)return}if(typeof r.return==\"function\"){let{value:_}=await r.return();await _}}o(u,\"close\");async function s(){for(;;){try{let{value:f,done:d}=i?await r.next():r.next();if(d)l.push(null);else{let c=f&&typeof f.then==\"function\"?await f:f;if(c===null)throw a=!1,new Ca;if(l.push(c))continue;a=!1}}catch(f){l.destroy(f)}break}}return o(s,\"next\"),l}o($a,\"from\");Fr.exports=$a});var We=T((sd,ii)=>{\"use strict\";p();var F=(le(),q(oe)),{ArrayPrototypeIndexOf:ja,NumberIsInteger:Fa,NumberIsNaN:va,NumberParseInt:Ba,ObjectDefineProperties:Xt,ObjectKeys:Ua,ObjectSetPrototypeOf:Ur,Promise:Hr,SafeSet:Ha,SymbolAsyncDispose:Ga,SymbolAsyncIterator:Va,Symbol:Ya}=I();ii.exports=y;y.ReadableState=it;var{EventEmitter:Ka}=Ue(),{Stream:ee,prependListener:za}=Qe(),{Buffer:Ut}=(ie(),q(re)),{addAbortSignal:Xa}=Le(),Gr=K(),g=W().debuglog(\"stream\",e=>{g=e}),Ja=Lr(),Ae=se(),{getHighWaterMark:Qa,getDefaultHighWaterMark:Za}=Pe(),{aggregateTwoErrors:vr,codes:{ERR_INVALID_ARG_TYPE:ef,ERR_METHOD_NOT_IMPLEMENTED:tf,ERR_OUT_OF_RANGE:nf,ERR_STREAM_PUSH_AFTER_EOF:rf,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:of},AbortError:lf}=P(),{validateObject:af}=ge(),de=Ya(\"kPaused\"),{StringDecoder:Vr}=So(),ff=Bt();Ur(y.prototype,ee.prototype);Ur(y,ee);var Ht=o(()=>{},\"nop\"),{errorOrDestroy:Ee}=Ae,Re=1,uf=2,Yr=4,Oe=8,Kr=16,tt=32,nt=64,zr=128,sf=256,df=512,cf=1024,Kt=2048,zt=4096,hf=8192,bf=16384,pf=32768,Xr=65536,_f=1<<17,yf=1<<18;function D(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}o(D,\"makeBitMapDescriptor\");Xt(it.prototype,{objectMode:D(Re),ended:D(uf),endEmitted:D(Yr),reading:D(Oe),constructed:D(Kr),sync:D(tt),needReadable:D(nt),emittedReadable:D(zr),readableListening:D(sf),resumeScheduled:D(df),errorEmitted:D(cf),emitClose:D(Kt),autoDestroy:D(zt),destroyed:D(hf),closed:D(bf),closeEmitted:D(pf),multiAwaitDrain:D(Xr),readingMore:D(_f),dataEmitted:D(yf)});function it(e,t,n){typeof n!=\"boolean\"&&(n=t instanceof G()),this.state=Kt|zt|Kr|tt,e&&e.objectMode&&(this.state|=Re),n&&e&&e.readableObjectMode&&(this.state|=Re),this.highWaterMark=e?Qa(this,e,\"readableHighWaterMark\",n):Za(!1),this.buffer=new Ja,this.length=0,this.pipes=[],this.flowing=null,this[de]=null,e&&e.emitClose===!1&&(this.state&=~Kt),e&&e.autoDestroy===!1&&(this.state&=~zt),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||\"utf8\",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new Vr(e.encoding),this.encoding=e.encoding)}o(it,\"ReadableState\");function y(e){if(!(this instanceof y))return new y(e);let t=this instanceof G();this._readableState=new it(e,this,t),e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.construct==\"function\"&&(this._construct=e.construct),e.signal&&!t&&Xa(e.signal,this)),ee.call(this,e),Ae.construct(this,()=>{this._readableState.needReadable&&rt(this,this._readableState)})}o(y,\"Readable\");y.prototype.destroy=Ae.destroy;y.prototype._undestroy=Ae.undestroy;y.prototype._destroy=function(e,t){t(e)};y.prototype[Ka.captureRejectionSymbol]=function(e){this.destroy(e)};y.prototype[Ga]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new lf,this.destroy(e)),new Hr((t,n)=>Gr(this,r=>r&&r!==e?n(r):t(null)))};y.prototype.push=function(e,t){return Jr(this,e,t,!1)};y.prototype.unshift=function(e,t){return Jr(this,e,t,!0)};function Jr(e,t,n,r){g(\"readableAddChunk\",t);let i=e._readableState,l;if((i.state&Re)===0&&(typeof t==\"string\"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=Ut.from(t,n).toString(i.encoding):(t=Ut.from(t,n),n=\"\"))):t instanceof Ut?n=\"\":ee._isUint8Array(t)?(t=ee._uint8ArrayToBuffer(t),n=\"\"):t!=null&&(l=new ef(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t))),l)Ee(e,l);else if(t===null)i.state&=~Oe,Sf(e,i);else if((i.state&Re)!==0||t&&t.length>0)if(r)if((i.state&Yr)!==0)Ee(e,new of);else{if(i.destroyed||i.errored)return!1;Gt(e,i,t,!0)}else if(i.ended)Ee(e,new rf);else{if(i.destroyed||i.errored)return!1;i.state&=~Oe,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?Gt(e,i,t,!1):rt(e,i)):Gt(e,i,t,!1)}else r||(i.state&=~Oe,rt(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}o(Jr,\"readableAddChunk\");function Gt(e,t,n,r){t.flowing&&t.length===0&&!t.sync&&e.listenerCount(\"data\")>0?((t.state&Xr)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(\"data\",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),(t.state&nt)!==0&&ot(e)),rt(e,t)}o(Gt,\"addChunk\");y.prototype.isPaused=function(){let e=this._readableState;return e[de]===!0||e.flowing===!1};y.prototype.setEncoding=function(e){let t=new Vr(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=\"\";for(let i of n)r+=t.write(i);return n.clear(),r!==\"\"&&n.push(r),this._readableState.length=r.length,this};var wf=1073741824;function gf(e){if(e>wf)throw new nf(\"size\",\"<= 1GiB\",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}o(gf,\"computeNewHighWaterMark\");function Br(e,t){return e<=0||t.length===0&&t.ended?0:(t.state&Re)!==0?1:va(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}o(Br,\"howMuchToRead\");y.prototype.read=function(e){g(\"read\",e),e===void 0?e=NaN:Fa(e)||(e=Ba(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=gf(e)),e!==0&&(t.state&=~zr),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return g(\"read: emitReadable\",t.length,t.ended),t.length===0&&t.ended?Vt(this):ot(this),null;if(e=Br(e,t),e===0&&t.ended)return t.length===0&&Vt(this),null;let r=(t.state&nt)!==0;if(g(\"need readable\",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,g(\"length less than watermark\",r)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)r=!1,g(\"reading, ended or constructing\",r);else if(r){g(\"do read\"),t.state|=Oe|tt,t.length===0&&(t.state|=nt);try{this._read(t.highWaterMark)}catch(l){Ee(this,l)}t.state&=~tt,t.reading||(e=Br(n,t))}let i;return e>0?i=ni(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Vt(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(\"data\",i)),i};function Sf(e,t){if(g(\"onEofChunk\"),!t.ended){if(t.decoder){let n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?ot(e):(t.needReadable=!1,t.emittedReadable=!0,Qr(e))}}o(Sf,\"onEofChunk\");function ot(e){let t=e._readableState;g(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(g(\"emitReadable\",t.flowing),t.emittedReadable=!0,F.nextTick(Qr,e))}o(ot,\"emitReadable\");function Qr(e){let t=e._readableState;g(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ei(e)}o(Qr,\"emitReadable_\");function rt(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,F.nextTick(Ef,e,t))}o(rt,\"maybeReadMore\");function Ef(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let n=t.length;if(g(\"maybeReadMore read 0\"),e.read(0),n===t.length)break}t.readingMore=!1}o(Ef,\"maybeReadMore_\");y.prototype._read=function(e){throw new tf(\"_read()\")};y.prototype.pipe=function(e,t){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new Ha(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(e),g(\"pipe count=%d opts=%j\",r.pipes.length,t);let l=(!t||t.end!==!1)&&e!==F.stdout&&e!==F.stderr?u:R;r.endEmitted?F.nextTick(l):n.once(\"end\",l),e.on(\"unpipe\",a);function a(w,A){g(\"onunpipe\"),w===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,d())}o(a,\"onunpipe\");function u(){g(\"onend\"),e.end()}o(u,\"onend\");let s,f=!1;function d(){g(\"cleanup\"),e.removeListener(\"close\",E),e.removeListener(\"finish\",b),s&&e.removeListener(\"drain\",s),e.removeListener(\"error\",h),e.removeListener(\"unpipe\",a),n.removeListener(\"end\",u),n.removeListener(\"end\",R),n.removeListener(\"data\",_),f=!0,s&&r.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&s()}o(d,\"cleanup\");function c(){f||(r.pipes.length===1&&r.pipes[0]===e?(g(\"false write response, pause\",0),r.awaitDrainWriters=e,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(e)&&(g(\"false write response, pause\",r.awaitDrainWriters.size),r.awaitDrainWriters.add(e)),n.pause()),s||(s=Rf(n,e),e.on(\"drain\",s))}o(c,\"pause\"),n.on(\"data\",_);function _(w){g(\"ondata\");let A=e.write(w);g(\"dest.write\",A),A===!1&&c()}o(_,\"ondata\");function h(w){if(g(\"onerror\",w),R(),e.removeListener(\"error\",h),e.listenerCount(\"error\")===0){let A=e._writableState||e._readableState;A&&!A.errorEmitted?Ee(e,w):e.emit(\"error\",w)}}o(h,\"onerror\"),za(e,\"error\",h);function E(){e.removeListener(\"finish\",b),R()}o(E,\"onclose\"),e.once(\"close\",E);function b(){g(\"onfinish\"),e.removeListener(\"close\",E),R()}o(b,\"onfinish\"),e.once(\"finish\",b);function R(){g(\"unpipe\"),n.unpipe(e)}return o(R,\"unpipe\"),e.emit(\"pipe\",n),e.writableNeedDrain===!0?c():r.flowing||(g(\"pipe resume\"),n.resume()),e};function Rf(e,t){return o(function(){let r=e._readableState;r.awaitDrainWriters===t?(g(\"pipeOnDrain\",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(g(\"pipeOnDrain\",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount(\"data\")&&e.resume()},\"pipeOnDrainFunctionResult\")}o(Rf,\"pipeOnDrain\");y.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let i=t.pipes;t.pipes=[],this.pause();for(let l=0;l<i.length;l++)i[l].emit(\"unpipe\",this,{hasUnpiped:!1});return this}let r=ja(t.pipes,e);return r===-1?this:(t.pipes.splice(r,1),t.pipes.length===0&&this.pause(),e.emit(\"unpipe\",this,n),this)};y.prototype.on=function(e,t){let n=ee.prototype.on.call(this,e,t),r=this._readableState;return e===\"data\"?(r.readableListening=this.listenerCount(\"readable\")>0,r.flowing!==!1&&this.resume()):e===\"readable\"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,g(\"on readable\",r.length,r.reading),r.length?ot(this):r.reading||F.nextTick(Af,this)),n};y.prototype.addListener=y.prototype.on;y.prototype.removeListener=function(e,t){let n=ee.prototype.removeListener.call(this,e,t);return e===\"readable\"&&F.nextTick(Zr,this),n};y.prototype.off=y.prototype.removeListener;y.prototype.removeAllListeners=function(e){let t=ee.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&F.nextTick(Zr,this),t};function Zr(e){let t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&t[de]===!1?t.flowing=!0:e.listenerCount(\"data\")>0?e.resume():t.readableListening||(t.flowing=null)}o(Zr,\"updateReadableListening\");function Af(e){g(\"readable nexttick read 0\"),e.read(0)}o(Af,\"nReadingNextTick\");y.prototype.resume=function(){let e=this._readableState;return e.flowing||(g(\"resume\"),e.flowing=!e.readableListening,mf(this,e)),e[de]=!1,this};function mf(e,t){t.resumeScheduled||(t.resumeScheduled=!0,F.nextTick(Tf,e,t))}o(mf,\"resume\");function Tf(e,t){g(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),ei(e),t.flowing&&!t.reading&&e.read(0)}o(Tf,\"resume_\");y.prototype.pause=function(){return g(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(g(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState[de]=!0,this};function ei(e){let t=e._readableState;for(g(\"flow\",t.flowing);t.flowing&&e.read()!==null;);}o(ei,\"flow\");y.prototype.wrap=function(e){let t=!1;e.on(\"data\",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on(\"end\",()=>{this.push(null)}),e.on(\"error\",r=>{Ee(this,r)}),e.on(\"close\",()=>{this.destroy()}),e.on(\"destroy\",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=Ua(e);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof e[i]==\"function\"&&(this[i]=e[i].bind(e))}return this};y.prototype[Va]=function(){return ti(this)};y.prototype.iterator=function(e){return e!==void 0&&af(e,\"options\"),ti(this,e)};function ti(e,t){typeof e.read!=\"function\"&&(e=y.wrap(e,{objectMode:!0}));let n=If(e,t);return n.stream=e,n}o(ti,\"streamToAsyncIterator\");async function*If(e,t){let n=Ht;function r(a){this===e?(n(),n=Ht):n=a}o(r,\"next\"),e.on(\"readable\",r);let i,l=Gr(e,{writable:!1},a=>{i=a?vr(i,a):null,n(),n=Ht});try{for(;;){let a=e.destroyed?null:e.read();if(a!==null)yield a;else{if(i)throw i;if(i===null)return;await new Hr(r)}}}catch(a){throw i=vr(i,a),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?Ae.destroyer(e,null):(e.off(\"readable\",r),l())}}o(If,\"createAsyncIterator\");Xt(y.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.dataEmitted},\"get\")},readableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)},\"get\")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.highWaterMark},\"get\")},readableBuffer:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState&&this._readableState.buffer},\"get\")},readableFlowing:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.flowing},\"get\"),set:o(function(e){this._readableState&&(this._readableState.flowing=e)},\"set\")},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(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Xt(it.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[de]!==!1},set(e){this[de]=!!e}}});y._fromList=ni;function ni(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(\"\"):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}o(ni,\"fromList\");function Vt(e){let t=e._readableState;g(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,F.nextTick(Mf,t,e))}o(Vt,\"endReadable\");function Mf(e,t){if(g(\"endReadableNT\",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(\"end\"),t.writable&&t.allowHalfOpen===!1)F.nextTick(kf,t);else if(e.autoDestroy){let n=t._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&t.destroy()}}}o(Mf,\"endReadableNT\");function kf(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}o(kf,\"endWritableNT\");y.from=function(e,t){return ff(y,e,t)};var Yt;function ri(){return Yt===void 0&&(Yt={}),Yt}o(ri,\"lazyWebStreams\");y.fromWeb=function(e,t){return ri().newStreamReadableFromReadableStream(e,t)};y.toWeb=function(e,t){return ri().newReadableStreamFromStreamReadable(e,t)};y.wrap=function(e,t){var n,r;return new y({objectMode:(n=(r=e.readableObjectMode)!==null&&r!==void 0?r:e.objectMode)!==null&&n!==void 0?n:!0,...t,destroy(i,l){Ae.destroyer(e,i),l(i)}}).wrap(e)}});var st=T((hd,_i)=>{\"use strict\";p();var ce=(le(),q(oe)),{ArrayPrototypeSlice:ai,Error:Nf,FunctionPrototypeSymbolHasInstance:fi,ObjectDefineProperty:ui,ObjectDefineProperties:qf,ObjectSetPrototypeOf:si,StringPrototypeToLowerCase:Df,Symbol:Lf,SymbolHasInstance:Pf}=I();_i.exports=M;M.WritableState=$e;var{EventEmitter:Of}=Ue(),xe=Qe().Stream,{Buffer:lt}=(ie(),q(re)),ut=se(),{addAbortSignal:Wf}=Le(),{getHighWaterMark:xf,getDefaultHighWaterMark:Cf}=Pe(),{ERR_INVALID_ARG_TYPE:$f,ERR_METHOD_NOT_IMPLEMENTED:jf,ERR_MULTIPLE_CALLBACK:di,ERR_STREAM_CANNOT_PIPE:Ff,ERR_STREAM_DESTROYED:Ce,ERR_STREAM_ALREADY_FINISHED:vf,ERR_STREAM_NULL_VALUES:Bf,ERR_STREAM_WRITE_AFTER_END:Uf,ERR_UNKNOWN_ENCODING:ci}=P().codes,{errorOrDestroy:me}=ut;si(M.prototype,xe.prototype);si(M,xe);function Zt(){}o(Zt,\"nop\");var Te=Lf(\"kOnFinished\");function $e(e,t,n){typeof n!=\"boolean\"&&(n=t instanceof G()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?xf(this,e,\"writableHighWaterMark\",n):Cf(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Gf.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ft(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Te]=[]}o($e,\"WritableState\");function ft(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}o(ft,\"resetBuffer\");$e.prototype.getBuffer=o(function(){return ai(this.buffered,this.bufferedIndex)},\"getBuffer\");ui($e.prototype,\"bufferedRequestCount\",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function M(e){let t=this instanceof G();if(!t&&!fi(M,this))return new M(e);this._writableState=new $e(e,this,t),e&&(typeof e.write==\"function\"&&(this._write=e.write),typeof e.writev==\"function\"&&(this._writev=e.writev),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.final==\"function\"&&(this._final=e.final),typeof e.construct==\"function\"&&(this._construct=e.construct),e.signal&&Wf(e.signal,this)),xe.call(this,e),ut.construct(this,()=>{let n=this._writableState;n.writing||tn(this,n),nn(this,n)})}o(M,\"Writable\");ui(M,Pf,{__proto__:null,value:o(function(e){return fi(this,e)?!0:this!==M?!1:e&&e._writableState instanceof $e},\"value\")});M.prototype.pipe=function(){me(this,new Ff)};function hi(e,t,n,r){let i=e._writableState;if(typeof n==\"function\")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!==\"buffer\"&&!lt.isEncoding(n))throw new ci(n);typeof r!=\"function\"&&(r=Zt)}if(t===null)throw new Bf;if(!i.objectMode)if(typeof t==\"string\")i.decodeStrings!==!1&&(t=lt.from(t,n),n=\"buffer\");else if(t instanceof lt)n=\"buffer\";else if(xe._isUint8Array(t))t=xe._uint8ArrayToBuffer(t),n=\"buffer\";else throw new $f(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t);let l;return i.ending?l=new Uf:i.destroyed&&(l=new Ce(\"write\")),l?(ce.nextTick(r,l),me(e,l,!0),l):(i.pendingcb++,Hf(e,i,t,n,r))}o(hi,\"_write\");M.prototype.write=function(e,t,n){return hi(this,e,t,n)===!0};M.prototype.cork=function(){this._writableState.corked++};M.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||tn(this,e))};M.prototype.setDefaultEncoding=o(function(t){if(typeof t==\"string\"&&(t=Df(t)),!lt.isEncoding(t))throw new ci(t);return this._writableState.defaultEncoding=t,this},\"setDefaultEncoding\");function Hf(e,t,n,r,i){let l=t.objectMode?1:n.length;t.length+=l;let a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&r!==\"buffer\"&&(t.allBuffers=!1),t.allNoop&&i!==Zt&&(t.allNoop=!1)):(t.writelen=l,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),a&&!t.errored&&!t.destroyed}o(Hf,\"writeOrBuffer\");function oi(e,t,n,r,i,l,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Ce(\"write\")):n?e._writev(i,t.onwrite):e._write(i,l,t.onwrite),t.sync=!1}o(oi,\"doWrite\");function li(e,t,n,r){--t.pendingcb,r(n),en(t),me(e,n)}o(li,\"onwriteError\");function Gf(e,t){let n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=\"function\"){me(e,new di);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),r?ce.nextTick(li,e,n,t,i):li(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&tn(e,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},ce.nextTick(Vf,n.afterWriteTickInfo)):bi(e,n,1,i))}o(Gf,\"onwrite\");function Vf({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,bi(e,t,n,r)}o(Vf,\"afterWriteTick\");function bi(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"));n-- >0;)t.pendingcb--,r();t.destroyed&&en(t),nn(e,t)}o(bi,\"afterWrite\");function en(e){if(e.writing)return;for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;let{chunk:l,callback:a}=e.buffered[i],u=e.objectMode?1:l.length;e.length-=u,a((t=e.errored)!==null&&t!==void 0?t:new Ce(\"write\"))}let n=e[Te].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=e.errored)!==null&&r!==void 0?r:new Ce(\"end\"))}ft(e)}o(en,\"errorBuffer\");function tn(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=t,l=n.length-r;if(!l)return;let a=r;if(t.bufferProcessing=!0,l>1&&e._writev){t.pendingcb-=l-1;let u=t.allNoop?Zt:f=>{for(let d=a;d<n.length;++d)n[d].callback(f)},s=t.allNoop&&a===0?n:ai(n,a);s.allBuffers=t.allBuffers,oi(e,t,!0,t.length,s,\"\",u),ft(t)}else{do{let{chunk:u,encoding:s,callback:f}=n[a];n[a++]=null;let d=i?1:u.length;oi(e,t,!1,d,u,s,f)}while(a<n.length&&!t.writing);a===n.length?ft(t):a>256?(n.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}o(tn,\"clearBuffer\");M.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new jf(\"_write()\")};M.prototype._writev=null;M.prototype.end=function(e,t,n){let r=this._writableState;typeof e==\"function\"?(n=e,e=null,t=null):typeof t==\"function\"&&(n=t,t=null);let i;if(e!=null){let l=hi(this,e,t);l instanceof Nf&&(i=l)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,nn(this,r,!0),r.ended=!0):r.finished?i=new vf(\"end\"):r.destroyed&&(i=new Ce(\"end\"))),typeof n==\"function\"&&(i||r.finished?ce.nextTick(n,i):r[Te].push(n)),this};function at(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}o(at,\"needFinish\");function Yf(e,t){let n=!1;function r(i){if(n){me(e,i??di());return}if(n=!0,t.pendingcb--,i){let l=t[Te].splice(0);for(let a=0;a<l.length;a++)l[a](i);me(e,i,t.sync)}else at(t)&&(t.prefinished=!0,e.emit(\"prefinish\"),t.pendingcb++,ce.nextTick(Qt,e,t))}o(r,\"onFinish\"),t.sync=!0,t.pendingcb++;try{e._final(r)}catch(i){r(i)}t.sync=!1}o(Yf,\"callFinal\");function Kf(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.finalCalled=!0,Yf(e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}o(Kf,\"prefinish\");function nn(e,t,n){at(t)&&(Kf(e,t),t.pendingcb===0&&(n?(t.pendingcb++,ce.nextTick((r,i)=>{at(i)?Qt(r,i):i.pendingcb--},e,t)):at(t)&&(t.pendingcb++,Qt(e,t))))}o(nn,\"finishMaybe\");function Qt(e,t){t.pendingcb--,t.finished=!0;let n=t[Te].splice(0);for(let r=0;r<n.length;r++)n[r]();if(e.emit(\"finish\"),t.autoDestroy){let r=e._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&e.destroy()}}o(Qt,\"finish\");qf(M.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},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 e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},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:o(function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)},\"get\")}});var zf=ut.destroy;M.prototype.destroy=function(e,t){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[Te].length)&&ce.nextTick(en,n),zf.call(this,e,t),this};M.prototype._undestroy=ut.undestroy;M.prototype._destroy=function(e,t){t(e)};M.prototype[Of.captureRejectionSymbol]=function(e){this.destroy(e)};var Jt;function pi(){return Jt===void 0&&(Jt={}),Jt}o(pi,\"lazyWebStreams\");M.fromWeb=function(e,t){return pi().newStreamWritableFromWritableStream(e,t)};M.toWeb=function(e){return pi().newWritableStreamFromStreamWritable(e)}});var Di=T((_d,qi)=>{p();var rn=(le(),q(oe)),Xf=(ie(),q(re)),{isReadable:Jf,isWritable:Qf,isIterable:yi,isNodeStream:Zf,isReadableNodeStream:wi,isWritableNodeStream:gi,isDuplexNodeStream:eu,isReadableStream:Si,isWritableStream:Ei}=U(),Ri=K(),{AbortError:ki,codes:{ERR_INVALID_ARG_TYPE:tu,ERR_INVALID_RETURN_VALUE:Ai}}=P(),{destroyer:Me}=se(),nu=G(),Ni=We(),ru=st(),{createDeferredPromise:mi}=W(),Ti=Bt(),Ii=globalThis.Blob||Xf.Blob,iu=o(typeof Ii<\"u\"?function(t){return t instanceof Ii}:function(t){return!1},\"isBlob\"),ou=globalThis.AbortController||(De(),q(qe)).AbortController,{FunctionPrototypeCall:Mi}=I(),te=class extends nu{static{o(this,\"Duplexify\")}constructor(t){super(t),t?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};qi.exports=o(function e(t,n){if(eu(t))return t;if(wi(t))return Ie({readable:t});if(gi(t))return Ie({writable:t});if(Zf(t))return Ie({writable:!1,readable:!1});if(Si(t))return Ie({readable:Ni.fromWeb(t)});if(Ei(t))return Ie({writable:ru.fromWeb(t)});if(typeof t==\"function\"){let{value:i,write:l,final:a,destroy:u}=lu(t);if(yi(i))return Ti(te,i,{objectMode:!0,write:l,final:a,destroy:u});let s=i?.then;if(typeof s==\"function\"){let f,d=Mi(s,i,c=>{if(c!=null)throw new Ai(\"nully\",\"body\",c)},c=>{Me(f,c)});return f=new te({objectMode:!0,readable:!1,write:l,final(c){a(async()=>{try{await d,rn.nextTick(c,null)}catch(_){rn.nextTick(c,_)}})},destroy:u})}throw new Ai(\"Iterable, AsyncIterable or AsyncFunction\",n,i)}if(iu(t))return e(t.arrayBuffer());if(yi(t))return Ti(te,t,{objectMode:!0,writable:!1});if(Si(t?.readable)&&Ei(t?.writable))return te.fromWeb(t);if(typeof t?.writable==\"object\"||typeof t?.readable==\"object\"){let i=t!=null&&t.readable?wi(t?.readable)?t?.readable:e(t.readable):void 0,l=t!=null&&t.writable?gi(t?.writable)?t?.writable:e(t.writable):void 0;return Ie({readable:i,writable:l})}let r=t?.then;if(typeof r==\"function\"){let i;return Mi(r,t,l=>{l!=null&&i.push(l),i.push(null)},l=>{Me(i,l)}),i=new te({objectMode:!0,writable:!1,read(){}})}throw new tu(n,[\"Blob\",\"ReadableStream\",\"WritableStream\",\"Stream\",\"Iterable\",\"AsyncIterable\",\"Function\",\"{ readable, writable } pair\",\"Promise\"],t)},\"duplexify\");function lu(e){let{promise:t,resolve:n}=mi(),r=new ou,i=r.signal;return{value:e((async function*(){for(;;){let a=t;t=null;let{chunk:u,done:s,cb:f}=await a;if(rn.nextTick(f),s)return;if(i.aborted)throw new ki(void 0,{cause:i.reason});({promise:t,resolve:n}=mi()),yield u}})(),{signal:i}),write(a,u,s){let f=n;n=null,f({chunk:a,done:!1,cb:s})},final(a){let u=n;n=null,u({done:!0,cb:a})},destroy(a,u){r.abort(),u(a)}}}o(lu,\"fromAsyncGen\");function Ie(e){let t=e.readable&&typeof e.readable.read!=\"function\"?Ni.wrap(e.readable):e.readable,n=e.writable,r=!!Jf(t),i=!!Qf(n),l,a,u,s,f;function d(c){let _=s;s=null,_?_(c):c&&f.destroy(c)}return o(d,\"onfinished\"),f=new te({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(Ri(n,c=>{i=!1,c&&Me(t,c),d(c)}),f._write=function(c,_,h){n.write(c,_)?h():l=h},f._final=function(c){n.end(),a=c},n.on(\"drain\",function(){if(l){let c=l;l=null,c()}}),n.on(\"finish\",function(){if(a){let c=a;a=null,c()}})),r&&(Ri(t,c=>{r=!1,c&&Me(t,c),d(c)}),t.on(\"readable\",function(){if(u){let c=u;u=null,c()}}),t.on(\"end\",function(){f.push(null)}),f._read=function(){for(;;){let c=t.read();if(c===null){u=f._read;return}if(!f.push(c))return}}),f._destroy=function(c,_){!c&&s!==null&&(c=new ki),u=null,l=null,a=null,s===null?_(c):(s=_,Me(n,c),Me(t,c))},f}o(Ie,\"_duplexify\")});var G=T((gd,Oi)=>{\"use strict\";p();var{ObjectDefineProperties:au,ObjectGetOwnPropertyDescriptor:z,ObjectKeys:fu,ObjectSetPrototypeOf:Li}=I();Oi.exports=v;var an=We(),j=st();Li(v.prototype,an.prototype);Li(v,an);{let e=fu(j.prototype);for(let t=0;t<e.length;t++){let n=e[t];v.prototype[n]||(v.prototype[n]=j.prototype[n])}}function v(e){if(!(this instanceof v))return new v(e);an.call(this,e),j.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}o(v,\"Duplex\");au(v.prototype,{writable:{__proto__:null,...z(j.prototype,\"writable\")},writableHighWaterMark:{__proto__:null,...z(j.prototype,\"writableHighWaterMark\")},writableObjectMode:{__proto__:null,...z(j.prototype,\"writableObjectMode\")},writableBuffer:{__proto__:null,...z(j.prototype,\"writableBuffer\")},writableLength:{__proto__:null,...z(j.prototype,\"writableLength\")},writableFinished:{__proto__:null,...z(j.prototype,\"writableFinished\")},writableCorked:{__proto__:null,...z(j.prototype,\"writableCorked\")},writableEnded:{__proto__:null,...z(j.prototype,\"writableEnded\")},writableNeedDrain:{__proto__:null,...z(j.prototype,\"writableNeedDrain\")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var on;function Pi(){return on===void 0&&(on={}),on}o(Pi,\"lazyWebStreams\");v.fromWeb=function(e,t){return Pi().newStreamDuplexFromReadableWritablePair(e,t)};v.toWeb=function(e){return Pi().newReadableWritablePairFromDuplex(e)};var ln;v.from=function(e){return ln||(ln=Di()),ln(e,\"body\")}});var sn=T((Rd,xi)=>{\"use strict\";p();var{ObjectSetPrototypeOf:Wi,Symbol:uu}=I();xi.exports=X;var{ERR_METHOD_NOT_IMPLEMENTED:su}=P().codes,un=G(),{getHighWaterMark:du}=Pe();Wi(X.prototype,un.prototype);Wi(X,un);var je=uu(\"kCallback\");function X(e){if(!(this instanceof X))return new X(e);let t=e?du(this,e,\"readableHighWaterMark\",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),un.call(this,e),this._readableState.sync=!1,this[je]=null,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",cu)}o(X,\"Transform\");function fn(e){typeof this._flush==\"function\"&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}o(fn,\"final\");function cu(){this._final!==fn&&fn.call(this)}o(cu,\"prefinish\");X.prototype._final=fn;X.prototype._transform=function(e,t,n){throw new su(\"_transform()\")};X.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,l=r.length;this._transform(e,t,(a,u)=>{if(a){n(a);return}u!=null&&this.push(u),i.ended||l===r.length||r.length<r.highWaterMark?n():this[je]=n})};X.prototype._read=function(){if(this[je]){let e=this[je];this[je]=null,e()}}});var cn=T((Td,$i)=>{\"use strict\";p();var{ObjectSetPrototypeOf:Ci}=I();$i.exports=ke;var dn=sn();Ci(ke.prototype,dn.prototype);Ci(ke,dn);function ke(e){if(!(this instanceof ke))return new ke(e);dn.call(this,e)}o(ke,\"PassThrough\");ke.prototype._transform=function(e,t,n){n(null,e)}});var bt=T((kd,Ui)=>{p();var Fe=(le(),q(oe)),{ArrayIsArray:hu,Promise:bu,SymbolAsyncIterator:pu,SymbolDispose:_u}=I(),ht=K(),{once:yu}=W(),wu=se(),ji=G(),{aggregateTwoErrors:gu,codes:{ERR_INVALID_ARG_TYPE:En,ERR_INVALID_RETURN_VALUE:hn,ERR_MISSING_ARGS:Su,ERR_STREAM_DESTROYED:Eu,ERR_STREAM_PREMATURE_CLOSE:Ru},AbortError:Au}=P(),{validateFunction:mu,validateAbortSignal:Tu}=ge(),{isIterable:he,isReadable:bn,isReadableNodeStream:ct,isNodeStream:Fi,isTransformStream:Ne,isWebStream:Iu,isReadableStream:pn,isReadableFinished:Mu}=U(),ku=globalThis.AbortController||(De(),q(qe)).AbortController,_n,yn,wn;function vi(e,t,n){let r=!1;e.on(\"close\",()=>{r=!0});let i=ht(e,{readable:t,writable:n},l=>{r=!l});return{destroy:o(l=>{r||(r=!0,wu.destroyer(e,l||new Eu(\"pipe\")))},\"destroy\"),cleanup:i}}o(vi,\"destroyer\");function Nu(e){return mu(e[e.length-1],\"streams[stream.length - 1]\"),e.pop()}o(Nu,\"popCallback\");function gn(e){if(he(e))return e;if(ct(e))return qu(e);throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\"],e)}o(gn,\"makeAsyncIterable\");async function*qu(e){yn||(yn=We()),yield*yn.prototype[pu].call(e)}o(qu,\"fromReadable\");async function dt(e,t,n,{end:r}){let i,l=null,a=o(f=>{if(f&&(i=f),l){let d=l;l=null,d()}},\"resume\"),u=o(()=>new bu((f,d)=>{i?d(i):l=o(()=>{i?d(i):f()},\"onresolve\")}),\"wait\");t.on(\"drain\",a);let s=ht(t,{readable:!1},a);try{t.writableNeedDrain&&await u();for await(let f of e)t.write(f)||await u();r&&(t.end(),await u()),n()}catch(f){n(i!==f?gu(i,f):f)}finally{s(),t.off(\"drain\",a)}}o(dt,\"pumpToNode\");async function Sn(e,t,n,{end:r}){Ne(t)&&(t=t.writable);let i=t.getWriter();try{for await(let l of e)await i.ready,i.write(l).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(l){try{await i.abort(l),n(l)}catch(a){n(a)}}}o(Sn,\"pumpToWeb\");function Du(...e){return Bi(e,yu(Nu(e)))}o(Du,\"pipeline\");function Bi(e,t,n){if(e.length===1&&hu(e[0])&&(e=e[0]),e.length<2)throw new Su(\"streams\");let r=new ku,i=r.signal,l=n?.signal,a=[];Tu(l,\"options.signal\");function u(){E(new Au)}o(u,\"abort\"),wn=wn||W().addAbortListener;let s;l&&(s=wn(l,u));let f,d,c=[],_=0;function h(N){E(N,--_===0)}o(h,\"finish\");function E(N,S){var k;if(N&&(!f||f.code===\"ERR_STREAM_PREMATURE_CLOSE\")&&(f=N),!(!f&&!S)){for(;c.length;)c.shift()(f);(k=s)===null||k===void 0||k[_u](),r.abort(),S&&(f||a.forEach(ne=>ne()),Fe.nextTick(t,f,d))}}o(E,\"finishImpl\");let b;for(let N=0;N<e.length;N++){let S=e[N],k=N<e.length-1,ne=N>0,C=k||n?.end!==!1,ye=N===e.length-1;if(Fi(S)){let x=function(Y){Y&&Y.name!==\"AbortError\"&&Y.code!==\"ERR_STREAM_PREMATURE_CLOSE\"&&h(Y)};var A=x;if(o(x,\"onError\"),C){let{destroy:Y,cleanup:gt}=vi(S,k,ne);c.push(Y),bn(S)&&ye&&a.push(gt)}S.on(\"error\",x),bn(S)&&ye&&a.push(()=>{S.removeListener(\"error\",x)})}if(N===0)if(typeof S==\"function\"){if(b=S({signal:i}),!he(b))throw new hn(\"Iterable, AsyncIterable or Stream\",\"source\",b)}else he(S)||ct(S)||Ne(S)?b=S:b=ji.from(S);else if(typeof S==\"function\"){if(Ne(b)){var R;b=gn((R=b)===null||R===void 0?void 0:R.readable)}else b=gn(b);if(b=S(b,{signal:i}),k){if(!he(b,!0))throw new hn(\"AsyncIterable\",`transform[${N-1}]`,b)}else{var w;_n||(_n=cn());let x=new _n({objectMode:!0}),Y=(w=b)===null||w===void 0?void 0:w.then;if(typeof Y==\"function\")_++,Y.call(b,Q=>{d=Q,Q!=null&&x.write(Q),C&&x.end(),Fe.nextTick(h)},Q=>{x.destroy(Q),Fe.nextTick(h,Q)});else if(he(b,!0))_++,dt(b,x,h,{end:C});else if(pn(b)||Ne(b)){let Q=b.readable||b;_++,dt(Q,x,h,{end:C})}else throw new hn(\"AsyncIterable or Promise\",\"destination\",b);b=x;let{destroy:gt,cleanup:go}=vi(b,!1,!0);c.push(gt),ye&&a.push(go)}}else if(Fi(S)){if(ct(b)){_+=2;let x=Lu(b,S,h,{end:C});bn(S)&&ye&&a.push(x)}else if(Ne(b)||pn(b)){let x=b.readable||b;_++,dt(x,S,h,{end:C})}else if(he(b))_++,dt(b,S,h,{end:C});else throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],b);b=S}else if(Iu(S)){if(ct(b))_++,Sn(gn(b),S,h,{end:C});else if(pn(b)||he(b))_++,Sn(b,S,h,{end:C});else if(Ne(b))_++,Sn(b.readable,S,h,{end:C});else throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],b);b=S}else b=ji.from(S)}return(i!=null&&i.aborted||l!=null&&l.aborted)&&Fe.nextTick(u),b}o(Bi,\"pipelineImpl\");function Lu(e,t,n,{end:r}){let i=!1;if(t.on(\"close\",()=>{i||n(new Ru)}),e.pipe(t,{end:!1}),r){let a=function(){i=!0,t.end()};var l=a;o(a,\"endFn\"),Mu(e)?Fe.nextTick(a):e.once(\"end\",a)}else n();return ht(e,{readable:!0,writable:!1},a=>{let u=e._readableState;a&&a.code===\"ERR_STREAM_PREMATURE_CLOSE\"&&u&&u.ended&&!u.errored&&!u.errorEmitted?e.once(\"end\",n).once(\"error\",n):n(a)}),ht(t,{readable:!1,writable:!0},n)}o(Lu,\"pipe\");Ui.exports={pipelineImpl:Bi,pipeline:Du}});var An=T((Dd,zi)=>{\"use strict\";p();var{pipeline:Pu}=bt(),pt=G(),{destroyer:Ou}=se(),{isNodeStream:_t,isReadable:Hi,isWritable:Gi,isWebStream:Rn,isTransformStream:be,isWritableStream:Vi,isReadableStream:Yi}=U(),{AbortError:Wu,codes:{ERR_INVALID_ARG_VALUE:Ki,ERR_MISSING_ARGS:xu}}=P(),Cu=K();zi.exports=o(function(...t){if(t.length===0)throw new xu(\"streams\");if(t.length===1)return pt.from(t[0]);let n=[...t];if(typeof t[0]==\"function\"&&(t[0]=pt.from(t[0])),typeof t[t.length-1]==\"function\"){let h=t.length-1;t[h]=pt.from(t[h])}for(let h=0;h<t.length;++h)if(!(!_t(t[h])&&!Rn(t[h]))){if(h<t.length-1&&!(Hi(t[h])||Yi(t[h])||be(t[h])))throw new Ki(`streams[${h}]`,n[h],\"must be readable\");if(h>0&&!(Gi(t[h])||Vi(t[h])||be(t[h])))throw new Ki(`streams[${h}]`,n[h],\"must be writable\")}let r,i,l,a,u;function s(h){let E=a;a=null,E?E(h):h?u.destroy(h):!_&&!c&&u.destroy()}o(s,\"onfinished\");let f=t[0],d=Pu(t,s),c=!!(Gi(f)||Vi(f)||be(f)),_=!!(Hi(d)||Yi(d)||be(d));if(u=new pt({writableObjectMode:!!(f!=null&&f.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:c,readable:_}),c){if(_t(f))u._write=function(E,b,R){f.write(E,b)?R():r=R},u._final=function(E){f.end(),i=E},f.on(\"drain\",function(){if(r){let E=r;r=null,E()}});else if(Rn(f)){let b=(be(f)?f.writable:f).getWriter();u._write=async function(R,w,A){try{await b.ready,b.write(R).catch(()=>{}),A()}catch(N){A(N)}},u._final=async function(R){try{await b.ready,b.close().catch(()=>{}),i=R}catch(w){R(w)}}}let h=be(d)?d.readable:d;Cu(h,()=>{if(i){let E=i;i=null,E()}})}if(_){if(_t(d))d.on(\"readable\",function(){if(l){let h=l;l=null,h()}}),d.on(\"end\",function(){u.push(null)}),u._read=function(){for(;;){let h=d.read();if(h===null){l=u._read;return}if(!u.push(h))return}};else if(Rn(d)){let E=(be(d)?d.readable:d).getReader();u._read=async function(){for(;;)try{let{value:b,done:R}=await E.read();if(!u.push(b))return;if(R){u.push(null);return}}catch{return}}}}return u._destroy=function(h,E){!h&&a!==null&&(h=new Wu),l=null,r=null,i=null,a===null?E(h):(a=E,_t(d)&&Ou(d,h))},u},\"compose\")});var oo=T((Od,In)=>{\"use strict\";p();var $u=globalThis.AbortController||(De(),q(qe)).AbortController,{codes:{ERR_INVALID_ARG_VALUE:ju,ERR_INVALID_ARG_TYPE:ve,ERR_MISSING_ARGS:Fu,ERR_OUT_OF_RANGE:vu},AbortError:V}=P(),{validateAbortSignal:pe,validateInteger:Xi,validateObject:_e}=ge(),Bu=I().Symbol(\"kWeak\"),Uu=I().Symbol(\"kResistStopPropagation\"),{finished:Hu}=K(),Gu=An(),{addAbortSignalNoValidate:Vu}=Le(),{isWritable:Yu,isNodeStream:Ku}=U(),{deprecate:zu}=W(),{ArrayPrototypePush:Xu,Boolean:Ju,MathFloor:Ji,Number:Qu,NumberIsNaN:Zu,Promise:Qi,PromiseReject:Zi,PromiseResolve:es,PromisePrototypeThen:eo,Symbol:no}=I(),yt=no(\"kEmpty\"),to=no(\"kEof\");function ts(e,t){if(t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),Ku(e)&&!Yu(e))throw new ju(\"stream\",e,\"must be writable\");let n=Gu(this,e);return t!=null&&t.signal&&Vu(t.signal,n),n}o(ts,\"compose\");function wt(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\");let n=1;t?.concurrency!=null&&(n=Ji(t.concurrency));let r=n-1;return t?.highWaterMark!=null&&(r=Ji(t.highWaterMark)),Xi(n,\"options.concurrency\",1),Xi(r,\"options.highWaterMark\",0),r+=n,o(async function*(){let l=W().AbortSignalAny([t?.signal].filter(Ju)),a=this,u=[],s={signal:l},f,d,c=!1,_=0;function h(){c=!0,E()}o(h,\"onCatch\");function E(){_-=1,b()}o(E,\"afterItemProcessed\");function b(){d&&!c&&_<n&&u.length<r&&(d(),d=null)}o(b,\"maybeResume\");async function R(){try{for await(let w of a){if(c)return;if(l.aborted)throw new V;try{if(w=e(w,s),w===yt)continue;w=es(w)}catch(A){w=Zi(A)}_+=1,eo(w,E,h),u.push(w),f&&(f(),f=null),!c&&(u.length>=r||_>=n)&&await new Qi(A=>{d=A})}u.push(to)}catch(w){let A=Zi(w);eo(A,E,h),u.push(A)}finally{c=!0,f&&(f(),f=null)}}o(R,\"pump\"),R();try{for(;;){for(;u.length>0;){let w=await u[0];if(w===to)return;if(l.aborted)throw new V;w!==yt&&(yield w),u.shift(),b()}await new Qi(w=>{f=w})}}finally{c=!0,d&&(d(),d=null)}},\"map\").call(this)}o(wt,\"map\");function ns(e=void 0){return e!=null&&_e(e,\"options\"),e?.signal!=null&&pe(e.signal,\"options.signal\"),o(async function*(){let n=0;for await(let i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new V({cause:e.signal.reason});yield[n++,i]}},\"asIndexedPairs\").call(this)}o(ns,\"asIndexedPairs\");async function ro(e,t=void 0){for await(let n of Tn.call(this,e,t))return!0;return!1}o(ro,\"some\");async function rs(e,t=void 0){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);return!await ro.call(this,async(...n)=>!await e(...n),t)}o(rs,\"every\");async function is(e,t){for await(let n of Tn.call(this,e,t))return n}o(is,\"find\");async function os(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);async function n(r,i){return await e(r,i),yt}o(n,\"forEachFn\");for await(let r of wt.call(this,n,t));}o(os,\"forEach\");function Tn(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);async function n(r,i){return await e(r,i)?r:yt}return o(n,\"filterFn\"),wt.call(this,n,t)}o(Tn,\"filter\");var mn=class extends Fu{static{o(this,\"ReduceAwareErrMissingArgs\")}constructor(){super(\"reduce\"),this.message=\"Reduce of an empty stream requires an initial value\"}};async function ls(e,t,n){var r;if(typeof e!=\"function\")throw new ve(\"reducer\",[\"Function\",\"AsyncFunction\"],e);n!=null&&_e(n,\"options\"),n?.signal!=null&&pe(n.signal,\"options.signal\");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let f=new V(void 0,{cause:n.signal.reason});throw this.once(\"error\",()=>{}),await Hu(this.destroy(f)),f}let l=new $u,a=l.signal;if(n!=null&&n.signal){let f={once:!0,[Bu]:this,[Uu]:!0};n.signal.addEventListener(\"abort\",()=>l.abort(),f)}let u=!1;try{for await(let f of this){var s;if(u=!0,n!=null&&(s=n.signal)!==null&&s!==void 0&&s.aborted)throw new V;i?t=await e(t,f,{signal:a}):(t=f,i=!0)}if(!u&&!i)throw new mn}finally{l.abort()}return t}o(ls,\"reduce\");async function as(e){e!=null&&_e(e,\"options\"),e?.signal!=null&&pe(e.signal,\"options.signal\");let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new V(void 0,{cause:e.signal.reason});Xu(t,r)}return t}o(as,\"toArray\");function fs(e,t){let n=wt.call(this,e,t);return o(async function*(){for await(let i of n)yield*i},\"flatMap\").call(this)}o(fs,\"flatMap\");function io(e){if(e=Qu(e),Zu(e))return 0;if(e<0)throw new vu(\"number\",\">= 0\",e);return e}o(io,\"toIntegerOrInfinity\");function us(e,t=void 0){return t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),e=io(e),o(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new V;for await(let l of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new V;e--<=0&&(yield l)}},\"drop\").call(this)}o(us,\"drop\");function ss(e,t=void 0){return t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),e=io(e),o(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new V;for await(let l of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new V;if(e-- >0&&(yield l),e<=0)return}},\"take\").call(this)}o(ss,\"take\");In.exports.streamReturningOperators={asIndexedPairs:zu(ns,\"readable.asIndexedPairs will be removed in a future version.\"),drop:us,filter:Tn,flatMap:fs,map:wt,take:ss,compose:ts};In.exports.promiseReturningOperators={every:rs,forEach:os,reduce:ls,toArray:as,some:ro,find:is}});var yo=T((Cd,_o)=>{\"use strict\";p();var{Buffer:ds}=(ie(),q(re)),{ObjectDefineProperty:J,ObjectKeys:uo,ReflectApply:so}=I(),{promisify:{custom:co}}=W(),{streamReturningOperators:lo,promiseReturningOperators:ao}=oo(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:ho}}=P(),cs=An(),{setDefaultHighWaterMark:hs,getDefaultHighWaterMark:bs}=Pe(),{pipeline:bo}=bt(),{destroyer:ps}=se(),po=K(),Mn=fo(),Be=U(),m=_o.exports=Qe().Stream;m.isDestroyed=Be.isDestroyed;m.isDisturbed=Be.isDisturbed;m.isErrored=Be.isErrored;m.isReadable=Be.isReadable;m.isWritable=Be.isWritable;m.Readable=We();for(let e of uo(lo)){let n=function(...r){if(new.target)throw ho();return m.Readable.from(so(t,this,r))};o(n,\"fn\");let t=lo[e];J(n,\"name\",{__proto__:null,value:t.name}),J(n,\"length\",{__proto__:null,value:t.length}),J(m.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of uo(ao)){let n=function(...r){if(new.target)throw ho();return so(t,this,r)};o(n,\"fn\");let t=ao[e];J(n,\"name\",{__proto__:null,value:t.name}),J(n,\"length\",{__proto__:null,value:t.length}),J(m.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}m.Writable=st();m.Duplex=G();m.Transform=sn();m.PassThrough=cn();m.pipeline=bo;var{addAbortSignal:_s}=Le();m.addAbortSignal=_s;m.finished=po;m.destroy=ps;m.compose=cs;m.setDefaultHighWaterMark=hs;m.getDefaultHighWaterMark=bs;J(m,\"promises\",{__proto__:null,configurable:!0,enumerable:!0,get(){return Mn}});J(bo,co,{__proto__:null,enumerable:!0,get(){return Mn.pipeline}});J(po,co,{__proto__:null,enumerable:!0,get(){return Mn.finished}});m.Stream=m;m._isUint8Array=o(function(t){return t instanceof Uint8Array},\"isUint8Array\");m._uint8ArrayToBuffer=o(function(t){return ds.from(t.buffer,t.byteOffset,t.byteLength)},\"_uint8ArrayToBuffer\")});var fo=T((Fd,wo)=>{\"use strict\";p();var{ArrayPrototypePop:ys,Promise:ws}=I(),{isIterable:gs,isNodeStream:Ss,isWebStream:Es}=U(),{pipelineImpl:Rs}=bt(),{finished:As}=K();yo();function ms(...e){return new ws((t,n)=>{let r,i,l=e[e.length-1];if(l&&typeof l==\"object\"&&!Ss(l)&&!gs(l)&&!Es(l)){let a=ys(e);r=a.signal,i=a.end}Rs(e,(a,u)=>{a?n(a):t(u)},{signal:r,end:i})})}o(ms,\"pipeline\");wo.exports={finished:As,pipeline:ms}});export{fo as a,yo as b};\n",
|
|
5520
|
-
"engine/chunks/chunk-5XTLYRSD.mjs": "import{a as fc}from\"./chunk-P4O57R5Z.mjs\";import{a as hc}from\"./chunk-OISVBTZK.mjs\";import{a as uc}from\"./chunk-QMKSQR7V.mjs\";import{a as h,b as rc,c as g,d as ic,e as sc,f as ie,g as Buffer,i as nc,j as oc,k as cc,l as ac,m as process,o as p}from\"./chunk-IQ3JZKJB.mjs\";var ue={};ic(ue,{__addDisposableResource:()=>Bs,__assign:()=>Et,__asyncDelegator:()=>Rs,__asyncGenerator:()=>Ns,__asyncValues:()=>Fs,__await:()=>Ve,__awaiter:()=>Es,__classPrivateFieldGet:()=>Ps,__classPrivateFieldIn:()=>Ds,__classPrivateFieldSet:()=>js,__createBinding:()=>xt,__decorate:()=>ms,__disposeResources:()=>Ms,__esDecorate:()=>ws,__exportStar:()=>xs,__extends:()=>ds,__generator:()=>Os,__importDefault:()=>Is,__importStar:()=>Cs,__makeTemplateObject:()=>As,__metadata:()=>Ss,__param:()=>ys,__propKey:()=>bs,__read:()=>Jr,__rest:()=>ps,__rewriteRelativeImportExtension:()=>Ls,__runInitializers:()=>_s,__setFunctionName:()=>gs,__spread:()=>vs,__spreadArray:()=>Ts,__spreadArrays:()=>ks,__values:()=>Ot,default:()=>pc});function ds(i,e){if(typeof e!=\"function\"&&e!==null)throw new TypeError(\"Class extends value \"+String(e)+\" is not a constructor or null\");Ur(i,e);function t(){this.constructor=i}h(t,\"__\"),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ps(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(t[r[s]]=i[r[s]]);return t}function ms(i,e,t,r){var s=arguments.length,n=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,c;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")n=Reflect.decorate(i,e,t,r);else for(var f=i.length-1;f>=0;f--)(c=i[f])&&(n=(s<3?c(n):s>3?c(e,t,n):c(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n}function ys(i,e){return function(t,r){e(t,r,i)}}function ws(i,e,t,r,s,n){function c(v){if(v!==void 0&&typeof v!=\"function\")throw new TypeError(\"Function expected\");return v}h(c,\"accept\");for(var f=r.kind,o=f===\"getter\"?\"get\":f===\"setter\"?\"set\":\"value\",a=!e&&i?r.static?i:i.prototype:null,u=e||(a?Object.getOwnPropertyDescriptor(a,r.name):{}),l,d=!1,m=t.length-1;m>=0;m--){var y={};for(var b in r)y[b]=b===\"access\"?{}:r[b];for(var b in r.access)y.access[b]=r.access[b];y.addInitializer=function(v){if(d)throw new TypeError(\"Cannot add initializers after decoration has completed\");n.push(c(v||null))};var S=(0,t[m])(f===\"accessor\"?{get:u.get,set:u.set}:u[o],y);if(f===\"accessor\"){if(S===void 0)continue;if(S===null||typeof S!=\"object\")throw new TypeError(\"Object expected\");(l=c(S.get))&&(u.get=l),(l=c(S.set))&&(u.set=l),(l=c(S.init))&&s.unshift(l)}else(l=c(S))&&(f===\"field\"?s.unshift(l):u[o]=l)}a&&Object.defineProperty(a,r.name,u),d=!0}function _s(i,e,t){for(var r=arguments.length>2,s=0;s<e.length;s++)t=r?e[s].call(i,t):e[s].call(i);return r?t:void 0}function bs(i){return typeof i==\"symbol\"?i:\"\".concat(i)}function gs(i,e,t){return typeof e==\"symbol\"&&(e=e.description?\"[\".concat(e.description,\"]\"):\"\"),Object.defineProperty(i,\"name\",{configurable:!0,value:t?\"\".concat(t,\" \",e):e})}function Ss(i,e){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(i,e)}function Es(i,e,t,r){function s(n){return n instanceof t?n:new t(function(c){c(n)})}return h(s,\"adopt\"),new(t||(t=Promise))(function(n,c){function f(u){try{a(r.next(u))}catch(l){c(l)}}h(f,\"fulfilled\");function o(u){try{a(r.throw(u))}catch(l){c(l)}}h(o,\"rejected\");function a(u){u.done?n(u.value):s(u.value).then(f,o)}h(a,\"step\"),a((r=r.apply(i,e||[])).next())})}function Os(i,e){var t={label:0,sent:h(function(){if(n[0]&1)throw n[1];return n[1]},\"sent\"),trys:[],ops:[]},r,s,n,c=Object.create((typeof Iterator==\"function\"?Iterator:Object).prototype);return c.next=f(0),c.throw=f(1),c.return=f(2),typeof Symbol==\"function\"&&(c[Symbol.iterator]=function(){return this}),c;function f(a){return function(u){return o([a,u])}}function o(a){if(r)throw new TypeError(\"Generator is already executing.\");for(;c&&(c=0,a[0]&&(t=0)),t;)try{if(r=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(i,t)}catch(u){a=[6,u],s=0}finally{r=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function xs(i,e){for(var t in i)t!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,t)&&xt(e,i,t)}function Ot(i){var e=typeof Symbol==\"function\"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length==\"number\")return{next:h(function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}},\"next\")};throw new TypeError(e?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function Jr(i,e){var t=typeof Symbol==\"function\"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),s,n=[],c;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)n.push(s.value)}catch(f){c={error:f}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return n}function vs(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Jr(arguments[e]));return i}function ks(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var r=Array(i),s=0,e=0;e<t;e++)for(var n=arguments[e],c=0,f=n.length;c<f;c++,s++)r[s]=n[c];return r}function Ts(i,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,n;r<s;r++)(n||!(r in e))&&(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return i.concat(n||Array.prototype.slice.call(e))}function Ve(i){return this instanceof Ve?(this.v=i,this):new Ve(i)}function Ns(i,e,t){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=t.apply(i,e||[]),s,n=[];return s=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),f(\"next\"),f(\"throw\"),f(\"return\",c),s[Symbol.asyncIterator]=function(){return this},s;function c(m){return function(y){return Promise.resolve(y).then(m,l)}}function f(m,y){r[m]&&(s[m]=function(b){return new Promise(function(S,v){n.push([m,b,S,v])>1||o(m,b)})},y&&(s[m]=y(s[m])))}function o(m,y){try{a(r[m](y))}catch(b){d(n[0][3],b)}}function a(m){m.value instanceof Ve?Promise.resolve(m.value.v).then(u,l):d(n[0][2],m)}function u(m){o(\"next\",m)}function l(m){o(\"throw\",m)}function d(m,y){m(y),n.shift(),n.length&&o(n[0][0],n[0][1])}}function Rs(i){var e,t;return e={},r(\"next\"),r(\"throw\",function(s){throw s}),r(\"return\"),e[Symbol.iterator]=function(){return this},e;function r(s,n){e[s]=i[s]?function(c){return(t=!t)?{value:Ve(i[s](c)),done:!1}:n?n(c):c}:n}}function Fs(i){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof Ot==\"function\"?Ot(i):i[Symbol.iterator](),t={},r(\"next\"),r(\"throw\"),r(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=i[n]&&function(c){return new Promise(function(f,o){c=i[n](c),s(f,o,c.done,c.value)})}}function s(n,c,f,o){Promise.resolve(o).then(function(a){n({value:a,done:f})},c)}}function As(i,e){return Object.defineProperty?Object.defineProperty(i,\"raw\",{value:e}):i.raw=e,i}function Cs(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t=Wr(i),r=0;r<t.length;r++)t[r]!==\"default\"&&xt(e,i,t[r]);return lc(e,i),e}function Is(i){return i&&i.__esModule?i:{default:i}}function Ps(i,e,t,r){if(t===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof e==\"function\"?i!==e||!r:!e.has(i))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return t===\"m\"?r:t===\"a\"?r.call(i):r?r.value:e.get(i)}function js(i,e,t,r,s){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!s)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof e==\"function\"?i!==e||!s:!e.has(i))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?s.call(i,t):s?s.value=t:e.set(i,t),t}function Ds(i,e){if(e===null||typeof e!=\"object\"&&typeof e!=\"function\")throw new TypeError(\"Cannot use 'in' operator on non-object\");return typeof i==\"function\"?e===i:i.has(e)}function Bs(i,e,t){if(e!=null){if(typeof e!=\"object\"&&typeof e!=\"function\")throw new TypeError(\"Object expected.\");var r,s;if(t){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");r=e[Symbol.dispose],t&&(s=r)}if(typeof r!=\"function\")throw new TypeError(\"Object not disposable.\");s&&(r=h(function(){try{s.call(this)}catch(n){return Promise.reject(n)}},\"dispose\")),i.stack.push({value:e,dispose:r,async:t})}else t&&i.stack.push({async:!0});return e}function Ms(i){function e(n){i.error=i.hasError?new dc(n,i.error,\"An error was suppressed during disposal.\"):n,i.hasError=!0}h(e,\"fail\");var t,r=0;function s(){for(;t=i.stack.pop();)try{if(!t.async&&r===1)return r=0,i.stack.push(t),Promise.resolve().then(s);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(s,function(c){return e(c),s()})}else r|=1}catch(c){e(c)}if(r===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return h(s,\"next\"),s()}function Ls(i,e){return typeof i==\"string\"&&/^\\.\\.?\\//.test(i)?i.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i,function(t,r,s,n,c){return r?e?\".jsx\":\".js\":s&&(!n||!c)?t:s+n+\".\"+c.toLowerCase()+\"js\"}):i}var Ur,Et,xt,lc,Wr,dc,pc,he=rc(()=>{p();Ur=h(function(i,e){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},Ur(i,e)},\"extendStatics\");h(ds,\"__extends\");Et=h(function(){return Et=Object.assign||h(function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},\"__assign\"),Et.apply(this,arguments)},\"__assign\");h(ps,\"__rest\");h(ms,\"__decorate\");h(ys,\"__param\");h(ws,\"__esDecorate\");h(_s,\"__runInitializers\");h(bs,\"__propKey\");h(gs,\"__setFunctionName\");h(Ss,\"__metadata\");h(Es,\"__awaiter\");h(Os,\"__generator\");xt=Object.create?(function(i,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||(\"get\"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:h(function(){return e[t]},\"get\")}),Object.defineProperty(i,r,s)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]});h(xs,\"__exportStar\");h(Ot,\"__values\");h(Jr,\"__read\");h(vs,\"__spread\");h(ks,\"__spreadArrays\");h(Ts,\"__spreadArray\");h(Ve,\"__await\");h(Ns,\"__asyncGenerator\");h(Rs,\"__asyncDelegator\");h(Fs,\"__asyncValues\");h(As,\"__makeTemplateObject\");lc=Object.create?(function(i,e){Object.defineProperty(i,\"default\",{enumerable:!0,value:e})}):function(i,e){i.default=e},Wr=h(function(i){return Wr=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},Wr(i)},\"ownKeys\");h(Cs,\"__importStar\");h(Is,\"__importDefault\");h(Ps,\"__classPrivateFieldGet\");h(js,\"__classPrivateFieldSet\");h(Ds,\"__classPrivateFieldIn\");h(Bs,\"__addDisposableResource\");dc=typeof SuppressedError==\"function\"?SuppressedError:function(i,e,t){var r=new Error(t);return r.name=\"SuppressedError\",r.error=i,r.suppressed=e,r};h(Ms,\"__disposeResources\");h(Ls,\"__rewriteRelativeImportExtension\");pc={__extends:ds,__assign:Et,__rest:ps,__decorate:ms,__param:ys,__esDecorate:ws,__runInitializers:_s,__propKey:bs,__setFunctionName:gs,__metadata:Ss,__awaiter:Es,__generator:Os,__createBinding:xt,__exportStar:xs,__values:Ot,__read:Jr,__spread:vs,__spreadArrays:ks,__spreadArray:Ts,__await:Ve,__asyncGenerator:Ns,__asyncDelegator:Rs,__asyncValues:Fs,__makeTemplateObject:As,__importStar:Cs,__importDefault:Is,__classPrivateFieldGet:Ps,__classPrivateFieldSet:js,__classPrivateFieldIn:Ds,__addDisposableResource:Bs,__disposeResources:Ms,__rewriteRelativeImportExtension:Ls}});var ze=g(D=>{\"use strict\";p();Object.defineProperty(D,\"__esModule\",{value:!0});D.basename=D.isAbsolute=D.normalize=D.dirname=D.relative=D.join=D.posix=D.sep=D.resolve=void 0;var we=fc();Object.defineProperty(D,\"resolve\",{enumerable:!0,get:h(function(){return we.resolve},\"get\")});Object.defineProperty(D,\"sep\",{enumerable:!0,get:h(function(){return we.sep},\"get\")});Object.defineProperty(D,\"posix\",{enumerable:!0,get:h(function(){return we.posix},\"get\")});Object.defineProperty(D,\"join\",{enumerable:!0,get:h(function(){return we.join},\"get\")});Object.defineProperty(D,\"relative\",{enumerable:!0,get:h(function(){return we.relative},\"get\")});Object.defineProperty(D,\"dirname\",{enumerable:!0,get:h(function(){return we.dirname},\"get\")});Object.defineProperty(D,\"normalize\",{enumerable:!0,get:h(function(){return we.normalize},\"get\")});Object.defineProperty(D,\"isAbsolute\",{enumerable:!0,get:h(function(){return we.isAbsolute},\"get\")});Object.defineProperty(D,\"basename\",{enumerable:!0,get:h(function(){return we.basename},\"get\")})});var Us=g(qs=>{\"use strict\";p();Object.defineProperty(qs,\"__esModule\",{value:!0})});var Ws=g(vt=>{\"use strict\";p();Object.defineProperty(vt,\"__esModule\",{value:!0});vt.Buffer=void 0;var mc=(oc(),ie(nc));Object.defineProperty(vt,\"Buffer\",{enumerable:!0,get:h(function(){return mc.Buffer},\"get\")})});var Oe=g(Ee=>{\"use strict\";p();Object.defineProperty(Ee,\"__esModule\",{value:!0});Ee.bufferFrom=Ee.bufferAllocUnsafe=Ee.Buffer=void 0;var kt=Ws();Object.defineProperty(Ee,\"Buffer\",{enumerable:!0,get:h(function(){return kt.Buffer},\"get\")});function Js(i,...e){return new kt.Buffer(i,...e)}h(Js,\"bufferV0P12Ponyfill\");var yc=kt.Buffer.allocUnsafe||Js;Ee.bufferAllocUnsafe=yc;var wc=kt.Buffer.from||Js;Ee.bufferFrom=wc});var zs=g(Vs=>{\"use strict\";p();Object.defineProperty(Vs,\"__esModule\",{value:!0})});var Qs=g(se=>{\"use strict\";p();Object.defineProperty(se,\"__esModule\",{value:!0});se.FLAGS=se.ERRSTR=se.constants=se.SEP=void 0;se.SEP=\"/\";se.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4};se.ERRSTR={PATH_STR:\"path must be a string, Buffer, or Uint8Array\",FD:\"fd must be a file descriptor\",MODE_INT:\"mode must be an int\",CB:\"callback must be a function\",UID:\"uid must be an unsigned int\",GID:\"gid must be an unsigned int\",LEN:\"len must be an integer\",ATIME:\"atime must be an integer\",MTIME:\"mtime must be an integer\",PREFIX:\"filename prefix is required\",BUFFER:\"buffer must be an instance of Buffer or StaticBuffer\",OFFSET:\"offset must be an integer\",LENGTH:\"length must be an integer\",POSITION:\"position must be an integer\"};var{O_RDONLY:Hs,O_WRONLY:Tt,O_RDWR:He,O_CREAT:xe,O_EXCL:Nt,O_TRUNC:Rt,O_APPEND:Ft,O_SYNC:Ys}=se.constants,Ks;(function(i){i[i.r=Hs]=\"r\",i[i[\"r+\"]=He]=\"r+\",i[i.rs=Hs|Ys]=\"rs\",i[i.sr=i.rs]=\"sr\",i[i[\"rs+\"]=He|Ys]=\"rs+\",i[i[\"sr+\"]=i[\"rs+\"]]=\"sr+\",i[i.w=Tt|xe|Rt]=\"w\",i[i.wx=Tt|xe|Rt|Nt]=\"wx\",i[i.xw=i.wx]=\"xw\",i[i[\"w+\"]=He|xe|Rt]=\"w+\",i[i[\"wx+\"]=He|xe|Rt|Nt]=\"wx+\",i[i[\"xw+\"]=i[\"wx+\"]]=\"xw+\",i[i.a=Tt|Ft|xe]=\"a\",i[i.ax=Tt|Ft|xe|Nt]=\"ax\",i[i.xa=i.ax]=\"xa\",i[i[\"a+\"]=He|Ft|xe]=\"a+\",i[i[\"ax+\"]=He|Ft|xe|Nt]=\"ax+\",i[i[\"xa+\"]=i[\"ax+\"]]=\"xa+\"})(Ks||(se.FLAGS=Ks={}))});var Xs=g($s=>{\"use strict\";p();Object.defineProperty($s,\"__esModule\",{value:!0})});var Gs=g(At=>{\"use strict\";p();Object.defineProperty(At,\"__esModule\",{value:!0});At.FLAG=void 0;var Zs;(function(i){i[i.O_RDONLY=0]=\"O_RDONLY\",i[i.O_WRONLY=1]=\"O_WRONLY\",i[i.O_RDWR=2]=\"O_RDWR\",i[i.O_ACCMODE=3]=\"O_ACCMODE\",i[i.O_CREAT=64]=\"O_CREAT\",i[i.O_EXCL=128]=\"O_EXCL\",i[i.O_NOCTTY=256]=\"O_NOCTTY\",i[i.O_TRUNC=512]=\"O_TRUNC\",i[i.O_APPEND=1024]=\"O_APPEND\",i[i.O_NONBLOCK=2048]=\"O_NONBLOCK\",i[i.O_DSYNC=4096]=\"O_DSYNC\",i[i.FASYNC=8192]=\"FASYNC\",i[i.O_DIRECT=16384]=\"O_DIRECT\",i[i.O_LARGEFILE=0]=\"O_LARGEFILE\",i[i.O_DIRECTORY=65536]=\"O_DIRECTORY\",i[i.O_NOFOLLOW=131072]=\"O_NOFOLLOW\",i[i.O_NOATIME=262144]=\"O_NOATIME\",i[i.O_CLOEXEC=524288]=\"O_CLOEXEC\",i[i.O_SYNC=1052672]=\"O_SYNC\",i[i.O_NDELAY=2048]=\"O_NDELAY\"})(Zs||(At.FLAG=Zs={}))});var en=g(z=>{\"use strict\";p();Object.defineProperty(z,\"__esModule\",{value:!0});z.basename=z.pathNormalize=z.pathDirname=z.pathRelative=z.pathJoin=z.pathSep=void 0;var J=ze();z.pathSep=J.posix?J.posix.sep:J.sep;z.pathJoin=J.posix?J.posix.join:J.join;z.pathRelative=J.posix?J.posix.relative:J.relative;z.pathDirname=J.posix?J.posix.dirname:J.dirname;z.pathNormalize=J.posix?J.posix.normalize:J.normalize;var _c=h((i,e)=>{i[i.length-1]===e&&(i=i.slice(0,-1));let t=i.lastIndexOf(e);return t===-1?i:i.slice(t+1)},\"basename\");z.basename=_c});var zr=g(Ye=>{\"use strict\";p();Object.defineProperty(Ye,\"__esModule\",{value:!0});Ye.inherits=bc;Ye.promisify=gc;Ye.inspect=Vr;Ye.format=Sc;function bc(i,e){if(i==null)throw new TypeError(\"The constructor to inherit from is not defined\");if(e==null)throw new TypeError(\"The super constructor to inherit from is not defined\");i.super_=e,i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}})}h(bc,\"inherits\");function gc(i){if(typeof i!=\"function\")throw new TypeError('The \"original\" argument must be of type function');return function(...e){return new Promise((t,r)=>{i.call(this,...e,(s,n)=>{s?r(s):t(n)})})}}h(gc,\"promisify\");function Vr(i){return i===null?\"null\":i===void 0?\"undefined\":typeof i==\"string\"?`'${i}'`:typeof i==\"number\"||typeof i==\"boolean\"?String(i):Array.isArray(i)?`[ ${i.map(t=>Vr(t)).join(\", \")} ]`:typeof i==\"object\"?`{ ${Object.entries(i).map(([t,r])=>`${t}: ${Vr(r)}`).join(\", \")} }`:String(i)}h(Vr,\"inspect\");function Sc(i,...e){if(e.length===0)return i;let t=i,r=0;for(t=t.replace(/%[sdj%]/g,s=>{if(r>=e.length)return s;let n=e[r++];switch(s){case\"%s\":return String(n);case\"%d\":return Number(n).toString();case\"%j\":try{return JSON.stringify(n)}catch{return\"[Circular]\"}case\"%%\":return\"%\";default:return s}});r<e.length;)t+=\" \"+String(e[r++]);return t}h(Sc,\"format\")});var Ke=g(L=>{\"use strict\";p();Object.defineProperty(L,\"__esModule\",{value:!0});L.AssertionError=L.RangeError=L.TypeError=L.Error=void 0;L.message=rn;L.E=_e;var Hr=zr(),Ec=typeof Symbol>\"u\"?\"_kCode\":Symbol(\"code\"),tn={};function Kr(i){return class extends i{static{h(this,\"NodeError\")}constructor(t,...r){super(rn(t,r)),this.code=t,this[Ec]=t,Object.defineProperty(this,\"name\",{value:`${super.name} [${t}]`,enumerable:!1,writable:!0,configurable:!0})}}}h(Kr,\"makeNodeError\");var Ct=globalThis,Yr=class extends Ct.Error{static{h(this,\"AssertionError\")}constructor(e){if(typeof e!=\"object\"||e===null)throw new L.TypeError(\"ERR_INVALID_ARG_TYPE\",\"options\",\"object\");e.message?super(e.message):super(`${(0,Hr.inspect)(e.actual).slice(0,128)} ${e.operator} ${(0,Hr.inspect)(e.expected).slice(0,128)}`),this.generatedMessage=!e.message,this.name=\"AssertionError [ERR_ASSERTION]\",this.code=\"ERR_ASSERTION\",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,L.Error.captureStackTrace(this,e.stackStartFunction)}};L.AssertionError=Yr;function rn(i,e){if(typeof i!=\"string\")throw new L.Error(\"Error message key must be a string\");let t=tn[i];if(!t)throw new L.Error(`An invalid error message key was used: ${i}.`);let r;if(typeof t==\"function\")r=t;else{if(r=Hr.format,e===void 0||e.length===0)return t;e.unshift(t)}return String(r.apply(null,e))}h(rn,\"message\");function _e(i,e){tn[i]=typeof e==\"function\"?e:String(e)}h(_e,\"E\");L.Error=Kr(Ct.Error);L.TypeError=Kr(Ct.TypeError);L.RangeError=Kr(Ct.RangeError);_e(\"ERR_DIR_CLOSED\",\"Directory handle was closed\");_e(\"ERR_DIR_CONCURRENT_OPERATION\",\"Cannot do synchronous work on directory handle with concurrent asynchronous operations\");_e(\"ERR_INVALID_FILE_URL_HOST\",'File URL host must be \"localhost\" or empty on %s');_e(\"ERR_INVALID_FILE_URL_PATH\",\"File URL path %s\");_e(\"ERR_INVALID_OPT_VALUE\",(i,e)=>`The value \"${String(e)}\" is invalid for option \"${i}\"`);_e(\"ERR_INVALID_OPT_VALUE_ENCODING\",i=>`The value \"${String(i)}\" is invalid for option \"encoding\"`);_e(\"ERR_INVALID_ARG_VALUE\",\"Unable to open file as blob\");_e(\"ERR_OUT_OF_RANGE\",(i,e,t)=>`The value of \"${i}\" is out of range. It must be ${e}. Received ${t}`)});var sn=g(je=>{\"use strict\";p();Object.defineProperty(je,\"__esModule\",{value:!0});je.ENCODING_UTF8=void 0;je.assertEncoding=xc;je.strToEncoding=vc;var Qr=Oe(),Oc=Ke();je.ENCODING_UTF8=\"utf8\";function xc(i){if(i&&!Qr.Buffer.isEncoding(i))throw new Oc.TypeError(\"ERR_INVALID_OPT_VALUE_ENCODING\",i)}h(xc,\"assertEncoding\");function vc(i,e){return!e||e===je.ENCODING_UTF8?i:e===\"buffer\"?new Qr.Buffer(i):new Qr.Buffer(i).toString(e)}h(vc,\"strToEncoding\")});var Zr=g(Z=>{\"use strict\";p();Object.defineProperty(Z,\"__esModule\",{value:!0});Z.toMatcher=Z.toRegex=Z.expandBraces=void 0;var an=\"(?!\\\\.)\",un=\"[^/]*\",nn=\"[^/]*(?:/(?!\\\\.)[^/]*)*\",hn=h((i,e,t)=>{switch(t){case 36:case 42:case 63:case 91:case 40:case 41:case 43:case 46:case 92:case 93:case 94:case 123:case 124:case 125:return\"\\\\\"+i[e];default:return i[e]}},\"literal\"),kc=h(i=>{switch(i){case\"alnum\":return\"0-9A-Za-z\";case\"alpha\":return\"A-Za-z\";case\"ascii\":return\"\\\\x00-\\\\x7f\";case\"blank\":return\" \\\\t\";case\"cntrl\":return\"\\\\x00-\\\\x1f\\\\x7f\";case\"digit\":return\"0-9\";case\"graph\":return\"\\\\x21-\\\\x7e\";case\"lower\":return\"a-z\";case\"print\":return\"\\\\x20-\\\\x7e\";case\"punct\":return\"\\\\x21-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\x7e\";case\"space\":return\" \\\\t\\\\r\\\\n\\\\v\\\\f\";case\"upper\":return\"A-Z\";case\"word\":return\"0-9A-Za-z_\";case\"xdigit\":return\"0-9A-Fa-f\"}},\"posixClass\"),Xr=h((i,e)=>{let t=i.length,r=e+1,s=i.charCodeAt(r);for((s===33||s===94)&&r++,i.charCodeAt(r)===93&&r++;r<t;r++){let n=i.charCodeAt(r);if(n===93)return r+1;if(n===91&&i.charCodeAt(r+1)===58){let c=i.indexOf(\":]\",r+2);c>0&&(r=c+1)}}return-1},\"classEnd\"),$r=h((i,e)=>{let t=i.charCodeAt(e);return(t===93||t===92||t===91||t===94||t===45?\"\\\\\":\"\")+i[e]},\"member\"),Tc=h((i,e,t)=>{let r=t-1,s=e+1,n=\"\",c=0,f=i.charCodeAt(s),o=f===33||f===94;for(o&&s++;s<r;){if(i.charCodeAt(s)===91&&i.charCodeAt(s+1)===58){let a=i.indexOf(\":]\",s+2),u=a>0?kc(i.slice(s+2,a)):void 0;if(u!==void 0){n+=u,c+=2,s=a+2;continue}}if(i.charCodeAt(s+1)===45&&s+2<r){i.charCodeAt(s+2)>=i.charCodeAt(s)&&(n+=$r(i,s)+\"-\"+$r(i,s+2),c+=2),s+=3;continue}n+=$r(i,s),c++,s++}return!o&&c===1?hn(i,r-1,i.charCodeAt(r-1)):c?(o?\"[^\":\"[\")+n+\"]\":o?\"[^/]\":\"[]\"},\"classSource\"),Nc=h((i,e)=>{let t=i.length,r=1;for(;e<t;e++){let s=i.charCodeAt(e);if(s===91){let n=Xr(i,e);n>0&&(e=n-1)}else if(s===40)r++;else if(s===41&&!--r)return e+1}return-1},\"groupEnd\"),Rc=h(i=>{let e=i.length,t=[],r=0,s=0;for(let n=0;n<e;n++){let c=i.charCodeAt(n);if(c===91){let f=Xr(i,n);f>0&&(n=f-1)}else c===40?r++:c===41?r--:c===124&&!r&&(t.push(i.slice(s,n)),s=n+1)}return t.push(i.slice(s)),t},\"splitAlts\"),Fc=h(i=>i===63||i===42||i===43||i===64||i===33,\"isExtglobPrefix\"),on=h((i,e,t,r,s)=>{let n=\"\";for(let c=0;c<i.length;c++)n+=(c?\"|\":\"\")+ct(i[c],e,t,r,s);return n},\"altsSource\"),Ac=h((i,e,t,r,s,n)=>{let c=r&&n?an:\"\",f=on(e,t,r,s,n);switch(i){case 63:return\"(?:\"+f+\")?\";case 64:return\"(?:\"+f+\")\";case 33:return e.length===1&&!e[0]?c+\"[^/]+\":\"(?!(?:\"+f+\")\"+s+\"$)\"+c+un}let o=c?on(e,t,r,s,!1):f;if(o===f)return\"(?:\"+f+\")\"+(i===42?\"*\":\"+\");let a=\"(?:\"+f+\")(?:\"+o+\")*\";return i===42?\"(?:\"+a+\")?\":a},\"extglobSource\"),ct=h((i,e,t,r,s)=>{let n=i.length,c=\"\",f=0,o=s;for(;f<n;){let a=i.charCodeAt(f);if(e&&i.charCodeAt(f+1)===40&&Fc(a)){let d=Nc(i,f+2);if(d>0){let m=ct(i.slice(d),e,t,r,!1),y=Rc(i.slice(f+2,d-1));return c+Ac(a,y,e,t,m+r,o)+m}}let u=o,l=t&&u?an:\"\";switch(o=!1,a){case 42:{let d=f+1;for(;i.charCodeAt(d)===42;)d++;if(d===f+1){let y=u&&(d===n||i.charCodeAt(d)===47);c+=l+(y?\"[^/]+\":un),f=d;break}let m=i.charCodeAt(d)===47;for(;m;){let y=d+1;if(i.charCodeAt(y)!==42||i.charCodeAt(y+1)!==42)break;for(y+=2;i.charCodeAt(y)===42;)y++;if(y===n)d=y,m=!1;else if(i.charCodeAt(y)===47)d=y;else break}m?(c+=t?\"(?:\"+l+nn+\"/)?\":\"(?:.*/)?\",d++,o=!0):c+=t?l+nn:\".*\",f=d;break}case 63:c+=l+\"[^/]\",f++;break;case 91:{let d=Xr(i,f);if(d<0){c+=\"\\\\[\",f++;break}let m=Tc(i,f,d);c+=(m.charCodeAt(0)===91?l:\"\")+m,f=d;break}case 47:c+=\"/\",f++,o=!0;break;default:c+=hn(i,f,a),f++}}return c},\"compile\"),Cc=h((i,e)=>{let t=i.length,r=0;for(let s=e;s<t;s++){let n=i.charCodeAt(s);if(n===123)r++;else if(n===125&&!--r)return s}return-1},\"closingBrace\"),Ic=h(i=>{let e=i.length,t=[],r=0,s=0;for(let n=0;n<e;n++){let c=i.charCodeAt(n);c===123?r++:c===125?r--:c===44&&!r&&(t.push(i.slice(s,n)),s=n+1)}if(t.length)return t.push(i.slice(s)),t},\"commaSplit\"),Pc=/^(-?\\d+)\\.\\.(-?\\d+)(?:\\.\\.(-?\\d+))?$/,jc=/^([a-zA-Z])\\.\\.([a-zA-Z])(?:\\.\\.(-?\\d+))?$/,cn=/^-?0\\d/,Dc=h((i,e)=>{let t=Pc.exec(i),r=!t;if(r&&(t=jc.exec(i)),!t)return;let s=r?t[1].charCodeAt(0):+t[1],n=r?t[2].charCodeAt(0):+t[2],c=t[3]===void 0?1:Math.abs(+t[3])||1,f=!r&&(cn.test(t[1])||cn.test(t[2]))?Math.max(t[1].length,t[2].length):0,o=[],a=s<=n?c:-c;for(let u=s;(a>0?u<=n:u>=n)&&o.length<e;u+=a){if(r){o.push(String.fromCharCode(u));continue}let l=String(u),d=f-l.length;if(d>0){let m=\"\";for(let y=0;y<d;y++)m+=\"0\";l=u<0?\"-\"+m+l.slice(1):m+l}o.push(l)}return o},\"rangeOf\"),Bc=h((i,e,t)=>{for(let r=i.indexOf(\"{\");r>=0;r=i.indexOf(\"{\",r+1)){let s=Cc(i,r);if(s<0)continue;let n=i.slice(r+1,s),c=Ic(n)||Dc(n,t);if(!c)continue;let f=i.slice(0,r),o=(0,Z.expandBraces)(i.slice(s+1),t);for(let a=0;a<c.length;a++){let u=(0,Z.expandBraces)(c[a],t);for(let l=0;l<u.length;l++){let d=f+u[l];for(let m=0;m<o.length;m++){if(e.length>=t)return;e.push(d+o[m])}}}return}e.push(i)},\"expandInto\"),Mc=h((i,e=1e5)=>{let t=[];return Bc(i,t,e),t},\"expandBraces\");Z.expandBraces=Mc;var Lc=h((i,e)=>{let t=!!e?.extglob,r=e?.dot===!1,s;if(i.indexOf(\"{\")<0)s=ct(i,t,r,\"\",!0);else{let n=(0,Z.expandBraces)(i),c=n.length;if(c===1)s=ct(n[0],t,r,\"\",!0);else{let f=new Set;s=\"(?:\";for(let o=0;o<c;o++){let a=n[o];f.has(a)||(f.size&&(s+=\"|\"),f.add(a),s+=ct(a,t,r,\"\",!0))}s+=\")\"}}return new RegExp(\"^\"+s+\"$\",e?.nocase?\"i\":\"\")},\"toRegex\");Z.toRegex=Lc;var qc=/^\\/(.{1,4096})\\/([gimsuy]{0,6})$/,Uc=h((i,e)=>{let t=[],r=Array.isArray(i)?i:[i];for(let s of r)if(typeof s==\"string\"){let n=qc.exec(s);if(n){let[,c,f]=n;t.push(new RegExp(c,f))}else t.push((0,Z.toRegex)(s,e))}else t.push(s);return t.length?new Function(\"p\",\"return \"+t.map(s=>s+\".test(p)\").join(\"||\")):()=>!1},\"toMatcher\");Z.toMatcher=Uc});var fn=g(ve=>{\"use strict\";p();Object.defineProperty(ve,\"__esModule\",{value:!0});ve.watchIgnoreToMatcher=ve.watchIgnorePatternToMatcher=void 0;var Wc=Zr(),Jc=h(i=>{if(typeof i==\"function\")return i;if(i instanceof RegExp)return e=>i.test(e);if(typeof i==\"string\"){let e=(0,Wc.toRegex)(i);return t=>e.test(t)}throw new TypeError(`The \"options.ignore\" property must be of type string, RegExp, function, or an array thereof. Received ${typeof i}`)},\"watchIgnorePatternToMatcher\");ve.watchIgnorePatternToMatcher=Jc;var Vc=h(i=>{if(Array.isArray(i)){let e=i.map(ve.watchIgnorePatternToMatcher);return t=>e.some(r=>r(t))}return(0,ve.watchIgnorePatternToMatcher)(i)},\"watchIgnoreToMatcher\");ve.watchIgnoreToMatcher=Vc});var ln=g(It=>{\"use strict\";p();Object.defineProperty(It,\"__esModule\",{value:!0});It.fsCallbackApiList=void 0;It.fsCallbackApiList=[\"access\",\"appendFile\",\"chmod\",\"chown\",\"close\",\"copyFile\",\"cp\",\"createReadStream\",\"createWriteStream\",\"exists\",\"fchmod\",\"fchown\",\"fdatasync\",\"fstat\",\"fsync\",\"ftruncate\",\"futimes\",\"glob\",\"lchmod\",\"lchown\",\"link\",\"lstat\",\"mkdir\",\"mkdtemp\",\"open\",\"openAsBlob\",\"opendir\",\"read\",\"readv\",\"readdir\",\"readFile\",\"readlink\",\"realpath\",\"rename\",\"rm\",\"rmdir\",\"stat\",\"statfs\",\"symlink\",\"truncate\",\"unlink\",\"unwatchFile\",\"utimes\",\"lutimes\",\"watch\",\"watchFile\",\"write\",\"writev\",\"writeFile\"]});var dn=g(Pt=>{\"use strict\";p();Object.defineProperty(Pt,\"__esModule\",{value:!0});Pt.fsSynchronousApiList=void 0;Pt.fsSynchronousApiList=[\"accessSync\",\"appendFileSync\",\"chmodSync\",\"chownSync\",\"closeSync\",\"copyFileSync\",\"cpSync\",\"existsSync\",\"fchmodSync\",\"fchownSync\",\"fdatasyncSync\",\"fstatSync\",\"fsyncSync\",\"ftruncateSync\",\"futimesSync\",\"globSync\",\"lchmodSync\",\"lchownSync\",\"linkSync\",\"lstatSync\",\"mkdirSync\",\"mkdtempSync\",\"openSync\",\"opendirSync\",\"readdirSync\",\"readFileSync\",\"readlinkSync\",\"readSync\",\"readvSync\",\"realpathSync\",\"renameSync\",\"rmdirSync\",\"rmSync\",\"statfsSync\",\"statSync\",\"symlinkSync\",\"truncateSync\",\"unlinkSync\",\"utimesSync\",\"lutimesSync\",\"writeFileSync\",\"writeSync\",\"writevSync\"]});var pn=g(jt=>{\"use strict\";p();Object.defineProperty(jt,\"__esModule\",{value:!0});jt.fsCommonObjectsList=void 0;jt.fsCommonObjectsList=[\"F_OK\",\"R_OK\",\"W_OK\",\"X_OK\",\"constants\",\"Stats\",\"StatFs\",\"Dir\",\"Dirent\",\"StatWatcher\",\"FSWatcher\",\"ReadStream\",\"WriteStream\"]});var B=g(V=>{\"use strict\";p();Object.defineProperty(V,\"__esModule\",{value:!0});V.fsCommonObjectsList=V.fsSynchronousApiList=V.fsCallbackApiList=void 0;var De=(he(),ie(ue));De.__exportStar(zs(),V);De.__exportStar(Qs(),V);De.__exportStar(Xs(),V);De.__exportStar(Gs(),V);De.__exportStar(en(),V);De.__exportStar(sn(),V);De.__exportStar(fn(),V);var zc=ln();Object.defineProperty(V,\"fsCallbackApiList\",{enumerable:!0,get:h(function(){return zc.fsCallbackApiList},\"get\")});var Hc=dn();Object.defineProperty(V,\"fsSynchronousApiList\",{enumerable:!0,get:h(function(){return Hc.fsSynchronousApiList},\"get\")});var Yc=pn();Object.defineProperty(V,\"fsCommonObjectsList\",{enumerable:!0,get:h(function(){return Yc.fsCommonObjectsList},\"get\")})});var Gr=g(Dt=>{\"use strict\";p();Object.defineProperty(Dt,\"__esModule\",{value:!0});Dt.flattenJSON=void 0;var mn=Oe(),Kc=B(),Qc=h(i=>{let e={};function t(r,s){for(let n in s){let c=s[n],f=(0,Kc.pathJoin)(r,n);typeof c==\"string\"||c instanceof mn.Buffer?e[f]=c:typeof c==\"object\"&&c!==null&&!(c instanceof mn.Buffer)&&Object.keys(c).length>0?t(f,c):e[f]=null}}return h(t,\"flatten\"),t(\"\",i),e},\"flattenJSON\");Dt.flattenJSON=Qc});var wn=g(yn=>{\"use strict\";p();Object.defineProperty(yn,\"__esModule\",{value:!0})});var ei=g(Bt=>{\"use strict\";p();Object.defineProperty(Bt,\"__esModule\",{value:!0});Bt.Ok=$c;Bt.Err=Xc;function $c(i){return{ok:!0,value:i}}h($c,\"Ok\");function Xc(i){return{ok:!1,err:i}}h(Xc,\"Err\")});var at=g(Mt=>{\"use strict\";p();Object.defineProperty(Mt,\"__esModule\",{value:!0});Mt.FanOut=void 0;var ti=class{static{h(this,\"FanOut\")}constructor(){this.listeners=new Set}emit(e){this.listeners.forEach(t=>t(e))}listen(e){let t=this.listeners;return t.add(e),()=>t.delete(e)}};Mt.FanOut=ti});var qt=g(Lt=>{\"use strict\";p();Object.defineProperty(Lt,\"__esModule\",{value:!0});Lt.createProcess=_n;var Zc=h(()=>{if(typeof process<\"u\")return process;try{return ac(),ie(cc)}catch{return}},\"maybeReturnProcess\");function _n(){let i=Zc()||{};return i.cwd||(i.cwd=()=>\"/\"),i.emitWarning||(i.emitWarning=(e,t)=>{console.warn(`${t}${t?\": \":\"\"}${e}`)}),i.env||(i.env={}),i}h(_n,\"createProcess\");Lt.default=_n()});var ii=g(Ut=>{\"use strict\";p();Object.defineProperty(Ut,\"__esModule\",{value:!0});Ut.Node=void 0;var Gc=at(),Sn=qt(),ge=Oe(),ea=B(),{S_IFMT:be,S_IFDIR:ta,S_IFREG:ra,S_IFLNK:bn,S_IFCHR:ia}=ea.constants,ut=h(()=>Sn.default.getuid?.()??0,\"getuid\"),ht=h(()=>Sn.default.getgid?.()??0,\"getgid\"),gn=(0,ge.bufferAllocUnsafe)(0),ri=class{static{h(this,\"Node\")}constructor(e,t=438,r=ut(),s=ht()){this.changes=new Gc.FanOut,this._uid=ut(),this._gid=ht(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this._btime=new Date,this.buf=gn,this.capacity=0,this.size=0,this.rdev=0,this._nlink=1,this.mode=t,this.ino=e,this._uid=r,this._gid=s}set ctime(e){this._ctime=e}get ctime(){return this._ctime}set btime(e){this._btime=e}get btime(){return this._btime}set uid(e){this._uid=e,this.ctime=new Date}get uid(){return this._uid}set gid(e){this._gid=e,this.ctime=new Date}get gid(){return this._gid}set atime(e){this._atime=e}get atime(){return this._atime}set mtime(e){this._mtime=e,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~be}set perm(e){this.mode=this.mode&be|e&~be,this.ctime=new Date}set nlink(e){this._nlink=e,this.ctime=new Date}get nlink(){return this._nlink}getString(e=\"utf8\"){return this.atime=new Date,this.getBuffer().toString(e)}setString(e){this._setBuf((0,ge.bufferFrom)(e,\"utf8\"))}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,ge.bufferAllocUnsafe)(0)),(0,ge.bufferFrom)(this.buf.subarray(0,this.size))}setBuffer(e){let t=(0,ge.bufferFrom)(e);this._setBuf(t)}_setBuf(e){let t=e.length;this.buf=e,this.capacity=t,this.size=t,this.touch()}getSize(){return this.size}setModeProperty(e){this.mode=e}isFile(){return(this.mode&be)===ra}isDirectory(){return(this.mode&be)===ta}isSymlink(){return(this.mode&be)===bn}isCharacterDevice(){return(this.mode&be)===ia}makeSymlink(e){this.mode=bn|438,this.symlink=e}write(e,t=0,r=e.length,s=0){let n=e.length;if(t+r>n&&(r=n-t),r<=0)return 0;let c=s+r;if(c>this.capacity){let f=Math.max(this.capacity*2,64);for(;f<c;)f*=2;let o=(0,ge.bufferAllocUnsafe)(f);this.size>0&&this.buf.copy(o,0,0,this.size),this.buf=o,this.capacity=f}return s>this.size&&this.buf.fill(0,this.size,s),e.copy(this.buf,s,t,t+r),c>this.size&&(this.size=c),this.touch(),r}read(e,t=0,r=e.byteLength,s=0){if(this.atime=new Date,s>=this.size)return 0;let n=r;if(n>e.byteLength&&(n=e.byteLength),n+s>this.size&&(n=this.size-s),n<=0)return 0;let c=e instanceof ge.Buffer?e:ge.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return this.buf.copy(c,t,s,s+n),n}truncate(e=0){if(e<=0){this.buf=gn,this.capacity=0,this.size=0,this.touch();return}if(e<=this.size)this.size=e;else{if(e>this.capacity){let t=Math.max(this.capacity*2,64);for(;t<e;)t*=2;let r=(0,ge.bufferAllocUnsafe)(t);this.size>0&&this.buf.copy(r,0,0,this.size),r.fill(0,this.size,e),this.buf=r,this.capacity=t}else this.buf.fill(0,this.size,e);this.size=e}this.touch()}chmod(e){this.mode=this.mode&be|e&~be,this.touch()}chown(e,t){this.uid=e,this.gid=t,this.touch()}touch(){this.mtime=new Date,this.changes.emit([\"modify\"])}canRead(e=ut(),t=ht()){return!!(this.perm&4||t===this.gid&&this.perm&32||e===this.uid&&this.perm&256)}canWrite(e=ut(),t=ht()){return!!(this.perm&2||t===this.gid&&this.perm&16||e===this.uid&&this.perm&128)}canExecute(e=ut(),t=ht()){return!!(this.perm&1||t===this.gid&&this.perm&8||e===this.uid&&this.perm&64)}del(){this.changes.emit([\"delete\"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),btime:this.btime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}};Ut.Node=ri});var ni=g(Wt=>{\"use strict\";p();Object.defineProperty(Wt,\"__esModule\",{value:!0});Wt.Link=void 0;var sa=B(),na=at(),{S_IFREG:oa}=sa.constants,si=class i{static{h(this,\"Link\")}get steps(){return this._steps}set steps(e){this._steps=e;for(let[t,r]of this.children.entries())t===\".\"||t===\"..\"||r?.syncSteps()}constructor(e,t,r){this.changes=new na.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=e,this.parent=t,this.name=r,this.syncSteps()}setNode(e){this.node=e,this.ino=e.ino}getNode(){return this.node}createChild(e,t=this.vol.createNode(oa|438)){let r=new i(this.vol,this,e);return r.setNode(t),t.isDirectory()&&(r.children.set(\".\",r),r.getNode().nlink++),this.setChild(e,r),r}setChild(e,t=new i(this.vol,this,e)){return this.children.set(e,t),t.parent=this,this.length++,t.getNode().isDirectory()&&(t.children.set(\"..\",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit([\"child:add\",t,this]),t}deleteChild(e){e.getNode().isDirectory()&&(e.children.delete(\"..\"),this.getNode().nlink--),this.children.delete(e.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit([\"child:del\",e,this])}getChild(e){return this.getNode().atime=new Date,this.children.get(e)}getPath(){return this.steps.join(\"/\")}getParentPath(){let e=this.steps.slice(0,-1).join(\"/\");return e||\"/\"}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}};Wt.Link=si});var ci=g(Jt=>{\"use strict\";p();Object.defineProperty(Jt,\"__esModule\",{value:!0});Jt.File=void 0;var ca=B(),{O_APPEND:aa}=ca.constants,oi=class{static{h(this,\"File\")}constructor(e,t,r,s){this.link=e,this.node=t,this.flags=r,this.fd=s,this.position=0}getString(e=\"utf8\"){return this.node.getString()}setString(e){this.node.setString(e)}getBuffer(){return this.node.getBuffer()}setBuffer(e){this.node.setBuffer(e)}getSize(){return this.node.getSize()}truncate(e){this.node.truncate(e)}seekTo(e){this.position=e}write(e,t=0,r=e.length,s){this.flags&aa?s=this.node.getSize():typeof s!=\"number\"&&(s=this.position);let n=this.node.write(e,t,r,s);return this.position=s+n,n}read(e,t=0,r=e.byteLength,s){typeof s!=\"number\"&&(s=this.position);let n=this.node.read(e,t,r,s);return this.position=s+n,n}chmod(e){this.node.chmod(e)}chown(e,t){this.node.chown(e,t)}};Jt.File=oi});var ui=g(P=>{\"use strict\";p();Object.defineProperty(P,\"__esModule\",{value:!0});P.filenameToSteps=P.resolve=P.unixify=P.isWin=void 0;P.isFd=ya;P.validateFd=Oa;P.dataToBuffer=xa;P.nullCheck=va;P.pathToFilename=Na;var ua=ze(),Be=Oe(),ai=qt(),xn=B();P.isWin=ai.default.platform===\"win32\";var ha=ua.resolve,fa=h((i,e)=>{let t=i[e];return e>0&&(t===\"/\"||P.isWin&&t===\"\\\\\")},\"isSeparator\"),la=h(i=>{let e=i.length-1;if(e<2)return i;for(;fa(i,e);)e--;return i.substr(0,e+1)},\"removeTrailingSeparator\"),da=h((i,e)=>{if(typeof i!=\"string\")throw new TypeError(\"expected a string\");return i=i.replace(/[\\\\\\/]+/g,\"/\"),e!==!1&&(i=la(i)),i},\"normalizePath\"),pa=h((i,e=!0)=>P.isWin?(i=da(i,e),i.replace(/^([a-zA-Z]+:|\\.\\/)/,\"\")):i,\"unixify\");P.unixify=pa;var Vt=h((i,e=ai.default.cwd())=>ha(e,i),\"resolve\");P.resolve=Vt;if(P.isWin){let i=Vt;P.resolve=Vt=h((e,t)=>(0,P.unixify)(i(e,t)),\"resolve\")}var ma=h((i,e)=>{let r=Vt(i,e).substring(1);return r?r.split(xn.pathSep):[]},\"filenameToSteps\");P.filenameToSteps=ma;function ya(i){return i>>>0===i}h(ya,\"isFd\");var En=2147483647,Qe=h((i,e)=>(i.code=e,i),\"withCode\"),wa=h(i=>{if(i===null)return\"null\";if(i===void 0)return\"undefined\";let e=typeof i;switch(e){case\"bigint\":return\"type bigint (\"+i+\"n)\";case\"number\":return\"type number (\"+(Object.is(i,-0)?\"-0\":String(i))+\")\";case\"boolean\":case\"symbol\":return\"type \"+e+\" (\"+String(i)+\")\";case\"function\":return\"function \"+i.name;case\"string\":{let t=i.length>28?i.slice(0,25)+\"...\":i;return t.indexOf(\"'\")===-1?\"type string ('\"+t+\"')\":\"type string (\"+JSON.stringify(t)+\")\"}default:{let t=i.constructor;return t&&\"name\"in t?\"an instance of \"+t.name:\"[Object: null prototype]\"+(Object.keys(i).length?\"\":\" {}\")}}},\"describeType\"),_a={8:\"\\\\b\",9:\"\\\\t\",10:\"\\\\n\",12:\"\\\\f\",13:\"\\\\r\"},ba=h((i,e)=>{let t=i.length,r=\"\";for(let s=0;s<t;s++){let n=i[s];if(n===e||n===\"\\\\\"){r+=\"\\\\\"+n;continue}let c=i.charCodeAt(s);if(c>31&&c<127||c>159){r+=n;continue}r+=_a[c]??\"\\\\x\"+c.toString(16).toUpperCase().padStart(2,\"0\")}return r},\"escapeString\"),ga=h(i=>{let e=i.indexOf(\"'\")===-1?\"'\":i.indexOf('\"')===-1?'\"':i.indexOf(\"`\")===-1?\"`\":\"'\";return e+ba(i,e)+e},\"quoteString\"),Sa=h(i=>{let e=i.length;if(Be.Buffer.isBuffer(i)){let s=e>50?50:e,n=\"<Buffer\";for(let c=0;c<s;c++)n+=\" \"+i[c].toString(16).padStart(2,\"0\");return n+(e>s?\" ... \"+(e-s)+\" more bytes>\":\">\")}let t=e>100?100:e,r=\"Uint8Array(\"+e+\") [\";for(let s=0;s<t;s++)r+=(s?\", \":\" \")+i[s];return e>t?r+\", ... \"+(e-t)+\" more items ]\":r+(t?\" ]\":\"]\")},\"inspectBytes\"),Ea=h(i=>{if(typeof i==\"string\")return ga(i);if(i instanceof Uint8Array)return Sa(i);if(typeof i==\"bigint\")return i+\"n\";if(i===null||typeof i!=\"object\")return String(i);let e=i.constructor;return e&&\"name\"in e?\"[\"+(e.name||\"Object\")+\"]\":\"[Object: null prototype]\"},\"inspectValue\"),vn=h((i,e,t)=>Qe(new TypeError('The \"'+i+'\" argument must be '+e+\". Received \"+wa(t)),\"ERR_INVALID_ARG_TYPE\"),\"invalidArgType\"),kn=h((i,e,t)=>{let r=Ea(e),s=r.length>128?r.slice(0,128)+\"...\":r,n=i.indexOf(\".\")===-1?\"argument\":\"property\";return Qe(new TypeError(\"The \"+n+\" '\"+i+\"' \"+t+\". Received \"+s),\"ERR_INVALID_ARG_VALUE\")},\"invalidArgValue\"),On=h((i,e,t)=>Qe(new RangeError('The value of \"'+i+'\" is out of range. It must be '+e+\". Received \"+t),\"ERR_OUT_OF_RANGE\"),\"outOfRange\");function Oa(i){if(typeof i!=\"number\")throw vn(\"fd\",\"of type number\",i);if(!Number.isInteger(i))throw On(\"fd\",\"an integer\",i);if(i<0||i>En)throw On(\"fd\",\">= 0 && <= \"+En,i)}h(Oa,\"validateFd\");function xa(i,e=xn.ENCODING_UTF8){return Be.Buffer.isBuffer(i)?i:i instanceof Uint8Array?(0,Be.bufferFrom)(i):e===\"buffer\"?(0,Be.bufferFrom)(String(i),\"utf8\"):(0,Be.bufferFrom)(String(i),e)}h(xa,\"dataToBuffer\");var Tn=\"must be a string, Uint8Array, or URL without null bytes\",Nn=h((i,e,t)=>{if(i.indexOf(\"\\0\")!==-1)throw kn(e,t,Tn)},\"checkNullByte\");function va(i,e=\"path\"){if(i instanceof Uint8Array){for(let r=0;r<i.length;r++)if(!i[r])throw kn(e,i,Tn);return!0}let t=\"\"+i;return Nn(t,e,t),!0}h(va,\"nullCheck\");var ka=h(i=>!!i&&!!i.href&&!!i.protocol&&i.auth===void 0&&i.path===void 0,\"isURL\"),Ta=h(i=>{if(i.protocol!==\"file:\")throw Qe(new TypeError(\"The URL must be of scheme file\"),\"ERR_INVALID_URL_SCHEME\");if(i.hostname!==\"\")throw Qe(new TypeError('File URL host must be \"localhost\" or empty on '+ai.default.platform),\"ERR_INVALID_FILE_URL_HOST\");let e=i.pathname;for(let r=0;r<e.length;r++)if(e[r]===\"%\"){let s=e.codePointAt(r+2)|32;if(e[r+1]===\"2\"&&s===102)throw Qe(new TypeError(\"File URL path must not include encoded / characters\"),\"ERR_INVALID_FILE_URL_PATH\")}let t=decodeURIComponent(e);return P.isWin?t.replace(/^\\/([a-zA-Z]:)/,\"$1\"):t},\"getPathFromURL\");function Na(i,e=\"path\"){let t=i;if(i instanceof Uint8Array&&(i=(0,Be.bufferFrom)(i)),typeof i!=\"string\"&&!Be.Buffer.isBuffer(i)){if(!ka(i))throw vn(e,\"of type string or an instance of Buffer or URL\",i);i=Ta(i)}let r=String(i);return Nn(r,e,t instanceof Uint8Array?t:r),r}h(Na,\"pathToFilename\")});var hi=g(Ht=>{\"use strict\";p();Object.defineProperty(Ht,\"__esModule\",{value:!0});Ht.SystemError=void 0;var zt=class extends Error{static{h(this,\"SystemError\")}constructor(e,t,r){let s=r.path,n=r.dest,c=t+\": \"+r.syscall+\" returned \"+r.code+\" (\"+r.message+\")\";s!==void 0&&(c+=\" \"+s),n!==void 0&&(c+=\" => \"+n),super(c),this.code=e,this.info=r,this.errno=r.errno,this.syscall=r.syscall,s!==void 0&&(this.path=s),n!==void 0&&(this.dest=n)}toString(){return this.name+\" [\"+this.code+\"]: \"+this.message}};Ht.SystemError=zt;zt.prototype.name=\"SystemError\"});var li=g(ne=>{\"use strict\";p();Object.defineProperty(ne,\"__esModule\",{value:!0});ne.createEisdirError=ne.createWatchError=ne.createStatError=ne.createError=void 0;var Ra=hi(),Yt={EPERM:[-1,\"operation not permitted\"],ENOENT:[-2,\"no such file or directory\"],EIO:[-5,\"i/o error\"],EBADF:[-9,\"bad file descriptor\"],EAGAIN:[-11,\"resource temporarily unavailable\"],EACCES:[-13,\"permission denied\"],EBUSY:[-16,\"resource busy or locked\"],EEXIST:[-17,\"file already exists\"],EXDEV:[-18,\"cross-device link not permitted\"],ENOTDIR:[-20,\"not a directory\"],EISDIR:[-21,\"illegal operation on a directory\"],EINVAL:[-22,\"invalid argument\"],ENFILE:[-23,\"file table overflow\"],EMFILE:[-24,\"too many open files\"],ETXTBSY:[-26,\"text file is busy\"],EFBIG:[-27,\"file too large\"],ENOSPC:[-28,\"no space left on device\"],ESPIPE:[-29,\"invalid seek\"],EROFS:[-30,\"read-only file system\"],EMLINK:[-31,\"too many links\"],ERANGE:[-34,\"result too large\"],ENAMETOOLONG:[-36,\"name too long\"],ENOSYS:[-38,\"function not implemented\"],ENOTEMPTY:[-39,\"directory not empty\"],ELOOP:[-40,\"too many symbolic links encountered\"],EPROTO:[-71,\"protocol error\"],EOVERFLOW:[-75,\"value too large for defined data type\"],ENOTSUP:[-95,\"operation not supported on socket\"]},fi=h((i,e,t,r,s)=>{let n=i+\": \"+(e?e[1]:\"unknown error\")+\", \"+t;return r&&(n+=\" '\"+r+\"'\"),s&&(n+=\" -> '\"+s+\"'\"),n},\"formatMessage\"),Fa=h((i,e=\"\",t=\"\",r=\"\",s=Error)=>{let n=Yt[i],c=new s(fi(i,n,e,t,r));return n&&(c.errno=n[0]),c.code=i,c.syscall=e,t&&(c.path=t),r&&(c.dest=r),c},\"createError\");ne.createError=Fa;var Aa=h((i,e=\"\",t=\"\",r=\"\")=>{let s=Yt[i];return{errno:s?s[0]:void 0,code:i,syscall:e,path:t,dest:r,message:fi(i,s,e,t,r),toError:h(()=>(0,ne.createError)(i,e,t,r),\"toError\")}},\"createStatError\");ne.createStatError=Aa;var Ca=h((i,e)=>{let t=Yt[i],r=new Error(fi(i,t,\"watch\",e,\"\"));return t&&(r.errno=t[0]),r.syscall=\"watch\",r.code=i,r.path=e,r.filename=e,r},\"createWatchError\");ne.createWatchError=Ca;var Ia=h((i,e)=>new Ra.SystemError(\"ERR_FS_EISDIR\",\"Path is a directory\",{code:\"EISDIR\",message:\"is a directory\",path:e,syscall:i,errno:-Yt.EISDIR[0]}),\"createEisdirError\");ne.createEisdirError=Ia});var pi=g(Kt=>{\"use strict\";p();Object.defineProperty(Kt,\"__esModule\",{value:!0});Kt.FsEvent=void 0;var di=class{static{h(this,\"FsEvent\")}constructor(e,t,r,s,n=void 0){this.type=e,this.steps=t,this.node=r,this.link=s,this.oldSteps=n}};Kt.FsEvent=di});var Pn=g(Xt=>{\"use strict\";p();Object.defineProperty(Xt,\"__esModule\",{value:!0});Xt.Superblock=void 0;var fe=ze(),Pa=ii(),Rn=ni(),ja=ci(),Da=Oe(),Ba=qt(),le=B(),H=B(),Y=ui(),O=li(),mi=Ke(),Ma=Gr(),ke=ei(),La=at(),M=pi(),{O_RDONLY:yi,O_WRONLY:Qt,O_RDWR:wi,O_CREAT:Te,O_EXCL:Fn,O_TRUNC:qa,O_DIRECTORY:_i,O_NOFOLLOW:An}=le.constants,Cn=40,In=h((i,e)=>{let t=i.length-1;if(t<1)return!1;let r=i.charCodeAt(t);return r===46&&(r=i.charCodeAt(--t)),r===47||e&&r===92},\"endsWithSep\"),$t=class i{static{h(this,\"Superblock\")}static fromJSON(e,t,r){let s=new i(r);return s.fromJSON(e,t),s}static fromNestedJSON(e,t,r){let s=new i(r);return s.fromNestedJSON(e,t),s}constructor(e={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.changes=new La.FanOut,this.open=(r,s,n,c=!0)=>{let f=this.openFile(r,s,n,c);if(!f)throw(0,O.createError)(\"ENOENT\",\"open\",r);return f.fd},this.writeFile=(r,s,n,c)=>{let f=typeof r==\"number\",o;f?o=r:o=this.open((0,Y.pathToFilename)(r),n,c);let a=0,u=s.length;try{for(;u>0;){let l=this.write(o,s,a,u,null);a+=l,u-=l}}finally{f||this.close(o)}},this.read=(r,s,n,c,f)=>{if(n<0)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"offset\",\">= 0 && <= 9007199254740991\",n);if(c===0)return 0;if(c<0)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"length\",\">= 0\",c);if(n+c>s.byteLength)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"length\",\"<= \"+(s.byteLength-n),c);let o=this.getFileByFdOrThrow(r,\"read\");if(o.node.isSymlink())throw(0,O.createError)(\"EPERM\",\"read\",o.link.getPath());return o.read(s,Number(n),Number(c),f===-1||typeof f!=\"number\"?void 0:f)},this.readv=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"read\"),f=n??void 0;f===-1&&(f=void 0);let o=0;for(let a of s){let u=c.read(a,0,a.byteLength,f);if(f=void 0,o+=u,u<a.byteLength)break}return o},this.link=(r,s)=>{let n;try{n=this.getLinkOrThrow(r,\"link\")}catch(l){throw l.code&&(l=(0,O.createError)(l.code,\"link\",r,s)),l}let c=(0,fe.dirname)(s),f;try{f=this.getLinkOrThrow(c,\"link\")}catch(l){throw l.code&&(l=(0,O.createError)(l.code,\"link\",r,s)),l}let o=(0,fe.basename)(s);if(f.getChild(o))throw(0,O.createError)(\"EEXIST\",\"link\",r,s);let a=n.getNode();a.nlink++;let u=f.createChild(o,a);this.emit(new M.FsEvent(0,u.steps,a,u))},this.unlink=r=>{let s=this.getLinkOrThrow(r,\"unlink\");if(s.getNode().isDirectory())throw(0,O.createError)(\"EPERM\",\"unlink\",r);this._emitDeleteRecursive(s),this.deleteLink(s);let n=s.getNode();n.nlink--,n.nlink<=0&&this.deleteNode(n)},this.symlink=(r,s)=>{if(!r)throw(0,O.createError)(\"ENOENT\",\"symlink\",r,s);let n=(0,Y.filenameToSteps)(s),c;try{c=this.getLinkParentAsDirOrThrow(n)}catch(u){throw u.code&&(u=(0,O.createError)(u.code,\"symlink\",r,s)),u}let f=n[n.length-1];if(c.getChild(f))throw(0,O.createError)(\"EEXIST\",\"symlink\",r,s);let o=c.getNode();if(!o.canExecute()||!o.canWrite())throw(0,O.createError)(\"EACCES\",\"symlink\",r,s);let a=c.createChild(f);return a.getNode().makeSymlink(r),this.emit(new M.FsEvent(0,a.steps,a.getNode(),a)),a},this.rename=(r,s)=>{let n;try{n=this.getResolvedLinkOrThrow(r)}catch(d){throw d.code&&(d=(0,O.createError)(d.code,\"rename\",r,s)),d}let c;try{c=this.getLinkParentAsDirOrThrow(s)}catch(d){throw d.code&&(d=(0,O.createError)(d.code,\"rename\",r,s)),d}let f=n.parent;if(!f)throw(0,O.createError)(\"EINVAL\",\"rename\",r,s);let o=f.getNode(),a=c.getNode();if(!o.canExecute()||!o.canWrite()||!a.canExecute()||!a.canWrite())throw(0,O.createError)(\"EACCES\",\"rename\",r,s);f.deleteChild(n);let u=(0,fe.basename)(s),l=n.steps;n.name=u,n.steps=[...c.steps,u],c.setChild(n.getName(),n),this.emit(new M.FsEvent(4,n.steps,n.getNode(),n,l))},this.mkdir=(r,s)=>{let n=(0,Y.filenameToSteps)(r);if(!n.length)throw(0,O.createError)(\"EEXIST\",\"mkdir\",r);let c=this.getLinkParentAsDirOrThrow(r,\"mkdir\"),f=n[n.length-1];if(c.getChild(f))throw(0,O.createError)(\"EEXIST\",\"mkdir\",r);let o=c.getNode();if(!o.canWrite()||!o.canExecute())throw(0,O.createError)(\"EACCES\",\"mkdir\",r);let a=c.createChild(f,this.createNode(le.constants.S_IFDIR|s));this.emit(new M.FsEvent(0,a.steps,a.getNode(),a))},this.mkdirp=(r,s)=>{let n=!1,c=(0,Y.filenameToSteps)(r),f=null,o=c.length;for(o=c.length;o>=0&&(f=this.getResolvedLink(c.slice(0,o)),!f);o--);for(f||(f=this.root,o=0),f=this.getResolvedLinkOrThrow(H.pathSep+c.slice(0,o).join(H.pathSep),\"mkdir\"),o;o<c.length;o++){let a=f.getNode();if(a.isDirectory()){if(!a.canExecute()||!a.canWrite())throw(0,O.createError)(\"EACCES\",\"mkdir\",r)}else throw(0,O.createError)(\"ENOTDIR\",\"mkdir\",r);n=!0,f=f.createChild(c[o],this.createNode(le.constants.S_IFDIR|s)),this.emit(new M.FsEvent(0,f.steps,f.getNode(),f))}return n?r:void 0},this.rmdir=(r,s=!1)=>{let n=this.getLinkAsDirOrThrow(r,\"rmdir\");if(n.length&&!s)throw(0,O.createError)(\"ENOTEMPTY\",\"rmdir\",r);this._emitDeleteRecursive(n),this.deleteLink(n)},this.rm=(r,s=!1,n=!1)=>{let c;try{c=this.getResolvedLinkOrThrow(r,\"lstat\")}catch(f){if(f.code===\"ENOENT\"&&s)return;throw f}if(c.getNode().isDirectory()&&!n)throw(0,O.createEisdirError)(\"rm\",r);if(!c.parent?.getNode().canWrite())throw(0,O.createError)(\"EACCES\",\"rm\",r);this._emitDeleteRecursive(c),this.deleteLink(c)},this.close=r=>{(0,Y.validateFd)(r);let s=this.getFileByFdOrThrow(r,\"close\");this.closeFile(s)},this.ftruncate=(r,s)=>{let n=this.getFileByFdOrThrow(r,\"ftruncate\");n.truncate(s),this.emit(new M.FsEvent(2,n.link.steps,n.node,n.link))},this.fchmod=(r,s)=>{let n=this.getFileByFdOrThrow(r,\"fchmod\");n.chmod(s),this.emit(new M.FsEvent(3,n.link.steps,n.node,n.link))},this.chmod=(r,s)=>{let n=this.getResolvedLinkOrThrow(r,\"chmod\");n.getNode().chmod(s),this.emit(new M.FsEvent(3,n.steps,n.getNode(),n))},this.lchmod=(r,s)=>{let n=this.getLinkOrThrow(r,\"lchmod\");n.getNode().chmod(s),this.emit(new M.FsEvent(3,n.steps,n.getNode(),n))},this.fchown=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"fchown\");c.chown(s,n),this.emit(new M.FsEvent(3,c.link.steps,c.node,c.link))},this.chown=(r,s,n)=>{let c=this.getResolvedLinkOrThrow(r,\"chown\");c.getNode().chown(s,n),this.emit(new M.FsEvent(3,c.steps,c.getNode(),c))},this.lchown=(r,s,n)=>{let c=this.getLinkOrThrow(r,\"lchown\");c.getNode().chown(s,n),this.emit(new M.FsEvent(3,c.steps,c.getNode(),c))},this.futimes=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"futime\"),f=c.node;f.atime=new Date(s*1e3),f.mtime=new Date(n*1e3),this.emit(new M.FsEvent(3,c.link.steps,c.node,c.link))},this.utimes=(r,s,n,c=!0)=>{let f=c?this.getResolvedLinkOrThrow(r,\"utime\"):this.getLinkOrThrow(r,\"lutime\"),o=f.getNode();o.atime=new Date(s*1e3),o.mtime=new Date(n*1e3),this.emit(new M.FsEvent(3,f.steps,o,f))},this.process=e.process??Ba.default;let t=this.createLink();t.setNode(this.createNode(le.constants.S_IFDIR|511)),t.setChild(\".\",t),t.getNode().nlink++,t.setChild(\"..\",t),t.getNode().nlink++,this.root=t}emit(e){this.changes.emit(e)}createLink(e,t,r=!1,s){if(!e)return new Rn.Link(this,void 0,\"\");if(!t)throw new Error(\"createLink: name cannot be empty\");let n=s??(r?511:438),f=s&&s&le.constants.S_IFMT?s&le.constants.S_IFMT:r?le.constants.S_IFDIR:le.constants.S_IFREG,o=n&~le.constants.S_IFMT|f;return e.createChild(t,this.createNode(o))}deleteLink(e){let t=e.parent;return t?(t.deleteChild(e),!0):!1}_emitDeleteRecursive(e){if(e.getNode().isDirectory())for(let[t,r]of e.children.entries())r&&t!==\".\"&&t!==\"..\"&&this._emitDeleteRecursive(r);this.emit(new M.FsEvent(1,e.steps,e.getNode(),e))}newInoNumber(){let e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%4294967295,this.ino)}newFdNumber(){let e=this.releasedFds.pop();return typeof e==\"number\"?e:i.fd--}createNode(e){let t=this.process.getuid?.()??0,r=this.process.getgid?.()??0,s=new Pa.Node(this.newInoNumber(),e,t,r);return this.inodes[s.ino]=s,s}deleteNode(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)}walk(e,t=!1,r=!1,s=!1,n,c){let f,o;e instanceof Rn.Link?(f=e.steps,o=H.pathSep+f.join(H.pathSep)):typeof e==\"string\"?(f=(0,Y.filenameToSteps)(e),o=e):(f=e,o=H.pathSep+f.join(H.pathSep));let a=this.root,u=0,l=c?c.hops:0,d=this.process.getuid?.()??0,m=this.process.getgid?.()??0;for(;u<f.length;){let y=a.getNode();if(y.isDirectory()){if(s&&!y.canExecute(d,m))return(0,ke.Err)((0,O.createStatError)(\"EACCES\",n,o))}else if(u<f.length-1)return(0,ke.Err)((0,O.createStatError)(\"ENOTDIR\",n,o));if(a=a.getChild(f[u])??null,!a)return r?(0,ke.Err)((0,O.createStatError)(\"ENOENT\",n,o)):(0,ke.Ok)(null);if(y=a?.getNode(),y.isSymlink()&&(t||u<f.length-1)){if(++l>Cn)return(0,ke.Err)((0,O.createStatError)(\"ELOOP\",n,o));c&&(c.hops=l);let b=(0,fe.isAbsolute)(y.symlink)?y.symlink:(0,H.pathJoin)((0,fe.dirname)(a.getPath()),y.symlink);f=(0,Y.filenameToSteps)(b).concat(f.slice(u+1)),a=this.root,u=0;continue}if(r&&!y.isDirectory()&&u<f.length-1){let b=this.process.platform===\"win32\"?\"ENOENT\":\"ENOTDIR\";return(0,ke.Err)((0,O.createStatError)(b,n,o))}u++}return(0,ke.Ok)(a)}getLink(e){let t=this.walk(e,!1,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getLinkOrThrow(e,t){let r=this.walk(e,!1,!0,!0,t);if(r.ok)return r.value;throw r.err.toError()}getResolvedLink(e){let t=this.walk(e,!0,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getResolvedLinkOrThrow(e,t){let r=this.walk(e,!0,!0,!0,t);if(r.ok)return r.value;throw r.err.toError()}getResolvedLinkResult(e,t){let r=this.walk(e,!0,!0,!0,t);return r.ok?(0,ke.Ok)(r.value):r}resolveSymlinks(e){return this.getResolvedLink(e.steps.slice(1))}getLinkAsDirOrThrow(e,t){let r=this.getLinkOrThrow(e,t);if(!r.getNode().isDirectory())throw(0,O.createError)(\"ENOTDIR\",t,e);return r}getLinkParent(e){return this.getLink(e.slice(0,-1))}getLinkParentAsDirOrThrow(e,t){let r=(e instanceof Array?e:(0,Y.filenameToSteps)(e)).slice(0,-1),s=H.pathSep+r.join(H.pathSep),n=this.getLinkOrThrow(s,t);if(!n.getNode().isDirectory())throw(0,O.createError)(\"ENOTDIR\",t,s);return n}getFileByFd(e){return this.fds[String(e)]}getFileByFdOrThrow(e,t){(0,Y.validateFd)(e);let r=this.getFileByFd(e);if(!r)throw(0,O.createError)(\"EBADF\",t);return r}_toJSON(e=this.root,t={},r,s){let n=!0,c=e.children;e.getNode().isFile()&&(c=new Map([[e.getName(),e.parent.getChild(e.getName())]]),e=e.parent);for(let o of c.keys()){if(o===\".\"||o===\"..\")continue;n=!1;let a=e.getChild(o);if(!a)throw new Error(\"_toJSON: unexpected undefined\");let u=a.getNode();if(u.isFile()){let l=a.getPath();r&&(l=(0,H.pathRelative)(r,l)),t[l]=s?u.getBuffer():u.getString()}else u.isDirectory()&&this._toJSON(a,t,r,s)}let f=e.getPath();return r&&(f=(0,H.pathRelative)(r,f)),f&&n&&(t[f]=null),t}toJSON(e,t={},r=!1,s=!1){let n=[];if(e){Array.isArray(e)||(e=[e]);for(let c of e){let f=(0,Y.pathToFilename)(c),o=this.getResolvedLink(f);o&&n.push(o)}}else n.push(this.root);if(!n.length)return t;for(let c of n)this._toJSON(c,t,r?c.getPath():\"\",s);return t}fromJSON(e,t=this.process.cwd()){for(let r in e){let s=e[r];if(r=(0,Y.resolve)(r,t),typeof s==\"string\"||s instanceof Da.Buffer){let n=(0,fe.dirname)(r);this.mkdirp(n,511);let c=(0,Y.dataToBuffer)(s);this.writeFile(r,c,H.FLAGS.w,438)}else this.mkdirp(r,511)}}fromNestedJSON(e,t){this.fromJSON((0,Ma.flattenJSON)(e),t)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(le.constants.S_IFDIR|511))}mountSync(e,t){this.fromJSON(t,e)}openLink(e,t,r=!0,s=e.getPath()){if(this.openFiles>=this.maxFiles)throw(0,O.createError)(\"EMFILE\",\"open\",s);let n=e;r&&(n=this.getResolvedLinkOrThrow(e.getPath(),\"open\"));let c=n.getNode();if(c.isDirectory()){if((t&(yi|wi|Qt))!==yi)throw(0,O.createError)(\"EISDIR\",\"open\",s)}else if(t&_i)throw(0,O.createError)(\"ENOTDIR\",\"open\",s);if(c.isSymlink()&&t&An)throw(0,O.createError)(\"ELOOP\",\"open\",s);if((t&(yi|wi|Qt))!==Qt&&!c.canRead()||t&(Qt|wi)&&!c.canWrite())throw(0,O.createError)(\"EACCES\",\"open\",s);let f=new ja.File(e,c,t,this.newFdNumber());if(this.fds[f.fd]=f,this.openFiles++,t&qa){let o=f.node.getSize()>0;f.truncate(),o&&this.emit(new M.FsEvent(2,f.link.steps,f.node,f.link))}return f}throwCreatDir(e,t,r){let s=this.walk((0,fe.dirname)(e),!0,!0,!0,\"open\",r);if(!s.ok)throw(0,O.createError)(s.err.code,\"open\",t);let n=s.value.getNode();throw n.isDirectory()?n.canExecute()?(0,O.createError)(\"EISDIR\",\"open\",t):(0,O.createError)(\"EACCES\",\"open\",t):(0,O.createError)(\"ENOTDIR\",\"open\",t)}openFile(e,t,r,s=!0){if(this.openFiles>=this.maxFiles)throw(0,O.createError)(\"EMFILE\",\"open\",e);if((t&(Te|_i))===(Te|_i))throw(0,O.createError)(\"EINVAL\",\"open\",e);let n=this.process.platform===\"win32\",c={hops:0},f=In(e,n);f&&t&Te&&this.throwCreatDir(e,e,c);let o=(t&(Te|Fn))===(Te|Fn),a=f||s&&!(t&An)&&!o,u=e,l=null;for(;;){let S=c.hops,v=this.walk(u,!1,!0,!0,\"open\",c);if(!v.ok){let j=v.err.code;if(j!==\"ENOENT\"||!(t&Te))throw(0,O.createError)(j,\"open\",e);c.hops=S,l=null;break}l=v.value;let R=l.getNode();if(!a||!R.isSymlink())break;if(++c.hops>Cn)throw(0,O.createError)(\"ELOOP\",\"open\",e);u=(0,fe.isAbsolute)(R.symlink)?R.symlink:(0,H.pathJoin)((0,fe.dirname)(l.getPath()),R.symlink),In(u,n)&&(t&Te&&this.throwCreatDir(u,e,c),f=!0)}if(l){let S=l.getNode();if(o)throw(0,O.createError)(\"EEXIST\",\"open\",e);if(f&&!S.isDirectory())throw(0,O.createError)(\"ENOTDIR\",\"open\",e);if(t&Te&&S.isDirectory())throw(0,O.createError)(\"EISDIR\",\"open\",e);return this.openLink(l,t,!1,e)}let d=this.walk((0,fe.dirname)(u),!0,!0,!0,\"open\",c);if(!d.ok)throw(0,O.createError)(d.err.code,\"open\",e);let m=d.value,y=m.getNode();if(!y.isDirectory())throw(0,O.createError)(\"ENOTDIR\",\"open\",e);if(!y.canExecute()||!y.canWrite())throw(0,O.createError)(\"EACCES\",\"open\",e);r??(r=438);let b=(0,Y.filenameToSteps)(u);return l=this.createLink(m,b[b.length-1],!1,r),this.emit(new M.FsEvent(0,l.steps,l.getNode(),l)),this.openLink(l,t,!1,e)}closeFile(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))}write(e,t,r,s,n){let c=this.getFileByFdOrThrow(e,\"write\");if(c.node.isSymlink())throw(0,O.createError)(\"EBADF\",\"write\",c.link.getPath());let f=c.write(t,r,s,n===-1||typeof n!=\"number\"?void 0:n);return f>0&&this.emit(new M.FsEvent(2,c.link.steps,c.node,c.link)),f}};Xt.Superblock=$t;$t.fd=2147483647});var jn=g($e=>{\"use strict\";p();Object.defineProperty($e,\"__esModule\",{value:!0});$e.CoreWatcher=$e.CoreWatchEvent=void 0;var Ua=at(),Ne=class{static{h(this,\"CoreWatchEvent\")}constructor(e,t,r,s,n=void 0){this.type=e,this.steps=t,this.node=r,this.link=s,this.oldSteps=n}};$e.CoreWatchEvent=Ne;var bi=class{static{h(this,\"CoreWatcher\")}constructor(e,t,r={}){this.changes=new Ua.FanOut,this.link=r.follow??!0?e.getResolvedLinkOrThrow(t,\"watch\"):e.getLinkOrThrow(t,\"watch\"),this.node=this.link.getNode(),this.recursive=!!r.recursive,this.unsub=e.changes.listen(s=>this.onEvent(s))}get closed(){return!this.unsub}onEvent(e){let t=this.link.steps.length;if(e.link===this.link||e.node===this.node&&(e.type===2||e.type===3)){this.changes.emit(new Ne(e.type,[],e.node,this.link)),e.type===1&&this.close();return}if(e.type===4){let s=e.oldSteps&&this.inScope(e.oldSteps)?e.oldSteps.slice(t):void 0,n=this.inScope(e.steps)?e.steps.slice(t):void 0;s&&n?this.changes.emit(new Ne(4,n,e.node,e.link,s)):s?this.changes.emit(new Ne(1,s,e.node,e.link)):n&&this.changes.emit(new Ne(0,n,e.node,e.link));return}this.inScope(e.steps)&&this.changes.emit(new Ne(e.type,e.steps.slice(t),e.node,e.link))}inScope(e){let t=this.link.steps;if(e.length<=t.length||!this.recursive&&e.length!==t.length+1)return!1;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}close(){this.unsub?.(),this.unsub=void 0}};$e.CoreWatcher=bi});var Gt=g(x=>{\"use strict\";p();Object.defineProperty(x,\"__esModule\",{value:!0});x.SystemError=x.createWatchError=x.createEisdirError=x.createStatError=x.createError=x.resolve=x.pathToFilename=x.nullCheck=x.validateFd=x.isWin=x.isFd=x.filenameToSteps=x.dataToBuffer=x.Superblock=x.File=x.Link=x.Node=void 0;var Xe=(he(),ie(ue));Xe.__exportStar(Us(),x);Xe.__exportStar(Gr(),x);Xe.__exportStar(wn(),x);Xe.__exportStar(ei(),x);var Wa=ii();Object.defineProperty(x,\"Node\",{enumerable:!0,get:h(function(){return Wa.Node},\"get\")});var Ja=ni();Object.defineProperty(x,\"Link\",{enumerable:!0,get:h(function(){return Ja.Link},\"get\")});var Va=ci();Object.defineProperty(x,\"File\",{enumerable:!0,get:h(function(){return Va.File},\"get\")});var za=Pn();Object.defineProperty(x,\"Superblock\",{enumerable:!0,get:h(function(){return za.Superblock},\"get\")});Xe.__exportStar(pi(),x);Xe.__exportStar(jn(),x);var Re=ui();Object.defineProperty(x,\"dataToBuffer\",{enumerable:!0,get:h(function(){return Re.dataToBuffer},\"get\")});Object.defineProperty(x,\"filenameToSteps\",{enumerable:!0,get:h(function(){return Re.filenameToSteps},\"get\")});Object.defineProperty(x,\"isFd\",{enumerable:!0,get:h(function(){return Re.isFd},\"get\")});Object.defineProperty(x,\"isWin\",{enumerable:!0,get:h(function(){return Re.isWin},\"get\")});Object.defineProperty(x,\"validateFd\",{enumerable:!0,get:h(function(){return Re.validateFd},\"get\")});Object.defineProperty(x,\"nullCheck\",{enumerable:!0,get:h(function(){return Re.nullCheck},\"get\")});Object.defineProperty(x,\"pathToFilename\",{enumerable:!0,get:h(function(){return Re.pathToFilename},\"get\")});Object.defineProperty(x,\"resolve\",{enumerable:!0,get:h(function(){return Re.resolve},\"get\")});var Zt=li();Object.defineProperty(x,\"createError\",{enumerable:!0,get:h(function(){return Zt.createError},\"get\")});Object.defineProperty(x,\"createStatError\",{enumerable:!0,get:h(function(){return Zt.createStatError},\"get\")});Object.defineProperty(x,\"createEisdirError\",{enumerable:!0,get:h(function(){return Zt.createEisdirError},\"get\")});Object.defineProperty(x,\"createWatchError\",{enumerable:!0,get:h(function(){return Zt.createWatchError},\"get\")});var Ha=hi();Object.defineProperty(x,\"SystemError\",{enumerable:!0,get:h(function(){return Ha.SystemError},\"get\")})});var gi=g(ft=>{\"use strict\";p();Object.defineProperty(ft,\"__esModule\",{value:!0});ft.Stats=void 0;var Ya=B(),{S_IFMT:Ka,S_IFDIR:Qa,S_IFREG:$a,S_IFBLK:Xa,S_IFCHR:Za,S_IFLNK:Ga,S_IFIFO:eu,S_IFSOCK:tu}=Ya.constants,er=class i{static{h(this,\"Stats\")}static build(e,t=!1){let r=new i,{uid:s,gid:n,atime:c,mtime:f,ctime:o,btime:a}=e,u=t?l=>BigInt(l):l=>l;return r.uid=u(s),r.gid=u(n),r.rdev=u(e.rdev),r.blksize=u(4096),r.ino=u(e.ino),r.size=u(e.getSize()),r.blocks=u(1),r.atime=new Date(c.getTime()),r.mtime=new Date(f.getTime()),r.ctime=new Date(o.getTime()),r.birthtime=new Date(a.getTime()),r.atimeMs=u(c.getTime()),r.mtimeMs=u(f.getTime()),r.ctimeMs=u(o.getTime()),r.birthtimeMs=u(a.getTime()),t&&(r.atimeNs=BigInt(c.getTime())*BigInt(1e6),r.mtimeNs=BigInt(f.getTime())*BigInt(1e6),r.ctimeNs=BigInt(o.getTime())*BigInt(1e6),r.birthtimeNs=BigInt(a.getTime())*BigInt(1e6)),r.dev=u(0),r.mode=u(e.mode),r.nlink=u(e.nlink),r}_checkModeProperty(e){return(Number(this.mode)&Ka)===e}isDirectory(){return this._checkModeProperty(Qa)}isFile(){return this._checkModeProperty($a)}isBlockDevice(){return this._checkModeProperty(Xa)}isCharacterDevice(){return this._checkModeProperty(Za)}isSymbolicLink(){return this._checkModeProperty(Ga)}isFIFO(){return this._checkModeProperty(eu)}isSocket(){return this._checkModeProperty(tu)}};ft.Stats=er;ft.default=er});var rr=g(lt=>{\"use strict\";p();Object.defineProperty(lt,\"__esModule\",{value:!0});lt.Dirent=void 0;var Dn=B(),{S_IFMT:ru,S_IFDIR:iu,S_IFREG:su,S_IFBLK:nu,S_IFCHR:ou,S_IFLNK:cu,S_IFIFO:au,S_IFSOCK:uu}=Dn.constants,tr=class i{static{h(this,\"Dirent\")}constructor(){this.name=\"\",this.parentPath=\"\",this.mode=0,this.path=\"\"}static build(e,t){let r=new i,{mode:s}=e.getNode();return r.name=(0,Dn.strToEncoding)(e.getName(),t),r.mode=s,r.parentPath=e.getParentPath(),r.path=r.parentPath,r}_checkModeProperty(e){return(this.mode&ru)===e}isDirectory(){return this._checkModeProperty(iu)}isFile(){return this._checkModeProperty(su)}isBlockDevice(){return this._checkModeProperty(nu)}isCharacterDevice(){return this._checkModeProperty(ou)}isSymbolicLink(){return this._checkModeProperty(cu)}isFIFO(){return this._checkModeProperty(au)}isSocket(){return this._checkModeProperty(uu)}};lt.Dirent=tr;lt.default=tr});var Si=g(dt=>{\"use strict\";p();Object.defineProperty(dt,\"__esModule\",{value:!0});dt.StatFs=void 0;var ir=class i{static{h(this,\"StatFs\")}static build(e,t=!1){let r=new i,s=t?u=>BigInt(u):u=>u;r.type=s(2240043254),r.bsize=s(4096);let n=Object.keys(e.inodes).length,c=1e6,f=Math.min(n*2,c),o=c-f;r.blocks=s(c),r.bfree=s(o),r.bavail=s(o);let a=1e6;return r.files=s(a),r.ffree=s(a-n),r}};dt.StatFs=ir;dt.default=ir});var Bn=g(Ei=>{\"use strict\";p();Object.defineProperty(Ei,\"__esModule\",{value:!0});function hu(i,e,t){let r=setTimeout.apply(globalThis,arguments);return r&&typeof r==\"object\"&&typeof r.unref==\"function\"&&r.unref(),r}h(hu,\"setTimeoutUnref\");Ei.default=hu});var Ln=g(Ze=>{\"use strict\";p();Object.defineProperty(Ze,\"__esModule\",{value:!0});Ze.Writable=Ze.Readable=void 0;var Mn=hc();Object.defineProperty(Ze,\"Readable\",{enumerable:!0,get:h(function(){return Mn.Readable},\"get\")});Object.defineProperty(Ze,\"Writable\",{enumerable:!0,get:h(function(){return Mn.Writable},\"get\")})});var Oi=g(sr=>{\"use strict\";p();Object.defineProperty(sr,\"__esModule\",{value:!0});sr.EventEmitter=void 0;var fu=uc();Object.defineProperty(sr,\"EventEmitter\",{enumerable:!0,get:h(function(){return fu.EventEmitter},\"get\")})});var Fe=g(F=>{\"use strict\";p();Object.defineProperty(F,\"__esModule\",{value:!0});F.getWriteSyncArgs=F.getWriteArgs=F.bufToUint8=F.createWatchError=F.createStatError=F.createError=F.pathToFilename=F.nullCheck=void 0;F.promisify=pu;F.validateCallback=qn;F.modeToNumber=Un;F.genRndStr6=yu;F.flagsToNumber=wu;F.streamToBuffer=_u;F.bufferToEncoding=Eu;F.isReadableStream=Ou;var xi=B(),lu=Ke(),du=Oe(),nr=Gt(),pt=Gt();Object.defineProperty(F,\"nullCheck\",{enumerable:!0,get:h(function(){return pt.nullCheck},\"get\")});Object.defineProperty(F,\"pathToFilename\",{enumerable:!0,get:h(function(){return pt.pathToFilename},\"get\")});Object.defineProperty(F,\"createError\",{enumerable:!0,get:h(function(){return pt.createError},\"get\")});Object.defineProperty(F,\"createStatError\",{enumerable:!0,get:h(function(){return pt.createStatError},\"get\")});Object.defineProperty(F,\"createWatchError\",{enumerable:!0,get:h(function(){return pt.createWatchError},\"get\")});function pu(i,e,t=r=>r){return(...r)=>new Promise((s,n)=>{i[e].bind(i)(...r,(c,f)=>c?n(c):s(t(f)))})}h(pu,\"promisify\");function qn(i){if(typeof i!=\"function\")throw TypeError(xi.ERRSTR.CB);return i}h(qn,\"validateCallback\");function mu(i,e){if(typeof i==\"number\")return i;if(typeof i==\"string\")return parseInt(i,8);if(e)return Un(e)}h(mu,\"_modeToNumber\");function Un(i,e){let t=mu(i,e);if(typeof t!=\"number\"||isNaN(t))throw new TypeError(xi.ERRSTR.MODE_INT);return t}h(Un,\"modeToNumber\");function yu(){return Math.random().toString(36).slice(2,8).padEnd(6,\"0\")}h(yu,\"genRndStr6\");function wu(i){if(typeof i==\"number\")return i;if(typeof i==\"string\"){let e=xi.FLAGS[i];if(typeof e<\"u\")return e}throw new lu.TypeError(\"ERR_INVALID_OPT_VALUE\",\"flags\",i)}h(wu,\"flagsToNumber\");function _u(i){let e=[];return new Promise((t,r)=>{i.on(\"data\",s=>e.push(s)),i.on(\"end\",()=>t(du.Buffer.concat(e))),i.on(\"error\",r)})}h(_u,\"streamToBuffer\");var bu=h(i=>new Uint8Array(i.buffer,i.byteOffset,i.byteLength),\"bufToUint8\");F.bufToUint8=bu;var gu=h((i,e,t,r,s,n)=>{(0,nr.validateFd)(i);let c=0,f,o=null,a,u,l=typeof e,d=typeof t,m=typeof r,y=typeof s;l!==\"string\"?d===\"function\"?u=t:m===\"function\"?(c=t|0,u=r):y===\"function\"?(c=t|0,f=r,u=s):(c=t|0,f=r,o=s,u=n):d===\"function\"?u=t:m===\"function\"?(o=t,u=r):y===\"function\"&&(o=t,a=r,u=s);let b=(0,nr.dataToBuffer)(e,a);l!==\"string\"?typeof f>\"u\"&&(f=b.length):(c=0,f=b.length);let S=qn(u);return[i,l===\"string\",b,c,f,o,S]},\"getWriteArgs\");F.getWriteArgs=gu;var Su=h((i,e,t,r,s)=>{(0,nr.validateFd)(i);let n,c,f,o,a=typeof e!=\"string\";a?(c=(t||0)|0,f=r,o=s):(o=t,n=r);let u=(0,nr.dataToBuffer)(e,n);return a?typeof f>\"u\"&&(f=u.length):(c=0,f=u.length),[i,u,c||0,f,o]},\"getWriteSyncArgs\");F.getWriteSyncArgs=Su;function Eu(i,e){return!e||e===\"buffer\"?i:i.toString(e)}h(Eu,\"bufferToEncoding\");function Ou(i){return i!==null&&typeof i==\"object\"&&typeof i.pipe==\"function\"&&typeof i.on==\"function\"&&i.readable===!0}h(Ou,\"isReadableStream\")});var ki=g(or=>{\"use strict\";p();Object.defineProperty(or,\"__esModule\",{value:!0});or.FileHandle=void 0;var q=Fe(),xu=Oi(),vi=class extends xu.EventEmitter{static{h(this,\"FileHandle\")}constructor(e,t){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=e,this.fd=t}getAsyncId(){return this.fd}appendFile(e,t){return(0,q.promisify)(this.fs,\"appendFile\")(this.fd,e,t)}chmod(e){return(0,q.promisify)(this.fs,\"fchmod\")(this.fd,e)}chown(e,t){return(0,q.promisify)(this.fs,\"fchown\")(this.fd,e,t)}close(){if(this.fd===-1)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,this.refs===0){let e=this.fd;this.fd=-1,this.closePromise=(0,q.promisify)(this.fs,\"close\")(e).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((e,t)=>{this.closeResolve=e,this.closeReject=t}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit(\"close\"),this.closePromise}datasync(){return(0,q.promisify)(this.fs,\"fdatasync\")(this.fd)}createReadStream(e){return this.fs.createReadStream(\"\",{...e,fd:this})}createWriteStream(e){return this.fs.createWriteStream(\"\",{...e,fd:this})}readableWebStream(e={}){let{type:t=\"bytes\",autoClose:r=!1}=e,s=0;if(this.fd===-1)throw new Error(\"The FileHandle is closed\");if(this.closePromise)throw new Error(\"The FileHandle is closing\");if(this.readableWebStreamLocked)throw new Error(\"An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.\");this.readableWebStreamLocked=!0,this.ref();let n=h(()=>{this.readableWebStreamLocked=!1,this.unref(),r&&this.close().catch(()=>{})},\"unlockAndCleanup\");return new ReadableStream({type:t===\"bytes\"?\"bytes\":void 0,autoAllocateChunkSize:16384,pull:h(async c=>{try{let f=c.byobRequest?.view;if(!f){let a=new Uint8Array(16384),u=await this.read(a,0,a.length,s);if(u.bytesRead===0){c.close(),n();return}s+=u.bytesRead,c.enqueue(a.slice(0,u.bytesRead));return}let o=await this.read(f,f.byteOffset,f.byteLength,s);if(o.bytesRead===0){c.close(),c.byobRequest.respond(0),n();return}s+=o.bytesRead,c.byobRequest.respond(o.bytesRead)}catch(f){c.error(f),n()}},\"pull\"),cancel:h(async()=>{n()},\"cancel\")})}async read(e,t,r,s){let n=s??this.position,c=await(0,q.promisify)(this.fs,\"read\",f=>({bytesRead:f,buffer:e}))(this.fd,e,t,r,n);return s==null&&(this.position+=c.bytesRead),c}readv(e,t){return(0,q.promisify)(this.fs,\"readv\",r=>({bytesRead:r,buffers:e}))(this.fd,e,t)}readFile(e){return(0,q.promisify)(this.fs,\"readFile\")(this.fd,e)}stat(e){return(0,q.promisify)(this.fs,\"fstat\")(this.fd,e)}sync(){return(0,q.promisify)(this.fs,\"fsync\")(this.fd)}truncate(e){return(0,q.promisify)(this.fs,\"ftruncate\")(this.fd,e)}utimes(e,t){return(0,q.promisify)(this.fs,\"futimes\")(this.fd,e,t)}async write(e,t,r,s){let n=typeof s!=\"number\",c=n?this.position:s,f=await(0,q.promisify)(this.fs,\"write\",o=>({bytesWritten:o,buffer:e}))(this.fd,e,t,r,c);return n&&(this.position+=f.bytesWritten),f}writev(e,t){return(0,q.promisify)(this.fs,\"writev\",r=>({bytesWritten:r,buffers:e}))(this.fd,e,t)}writeFile(e,t){return(0,q.promisify)(this.fs,\"writeFile\")(this.fd,e,t)}async[Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,this.refs===0&&(this.fd=-1,this.closeResolve&&(0,q.promisify)(this.fs,\"close\")(this.fd).then(this.closeResolve,this.closeReject))}};or.FileHandle=vi});var Ri=g(cr=>{\"use strict\";p();Object.defineProperty(cr,\"__esModule\",{value:!0});cr.FsPromises=void 0;var T=Fe(),vu=B(),Wn=h(i=>{let e=new Error(\"The operation was aborted\");return e.name=\"AbortError\",e.code=\"ABORT_ERR\",e.cause=i.reason,e},\"newAbortError\"),Ti=class{static{h(this,\"FSWatchAsyncIterator\")}constructor(e,t,r={}){this.fs=e,this.path=t,this.options=r,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=r.maxQueue||2048;let s=r.overflow||\"ignore\";if(s!==\"ignore\"&&s!==\"error\"&&s!==\"throw\")throw new TypeError(`The argument 'options.overflow' must be one of: 'ignore', 'error'. Received '${s}'`);this.overflow=s===\"throw\"?\"error\":s;let n=r.signal;if(n){if(n.aborted){this.finish(Wn(n));return}this.onAbort=()=>this.finish(Wn(n)),n.addEventListener(\"abort\",this.onAbort)}this.startWatching()}startWatching(){let{signal:e,...t}=this.options;try{this.watcher=this.fs.watch(this.path,t,(r,s)=>{this.enqueueEvent({eventType:r,filename:s})})}catch(r){throw this.finish(),r}}enqueueEvent(e){if(!this.finished){if(this.eventQueue.length>=this.maxQueue){if(this.overflow===\"error\"){let t=new Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);t.code=\"ERR_FS_WATCH_QUEUE_OVERFLOW\",this.finish(t)}else typeof process<\"u\"&&typeof process.emitWarning==\"function\"&&process.emitWarning(\"fs.watch maxQueue exceeded\");return}if(this.eventQueue.push(e),this.resolveQueue.length>0){let{resolve:t}=this.resolveQueue.shift(),r=this.eventQueue.shift();t({value:r,done:!1})}}}finish(e){if(this.finished)return;this.finished=!0,this.error=e,e&&(this.eventQueue.length=0),this.onAbort&&(this.options.signal.removeEventListener(\"abort\",this.onAbort),this.onAbort=void 0),this.watcher&&(this.watcher.close(),this.watcher=null);let t=e&&this.resolveQueue.length>0;for(;this.resolveQueue.length>0;){let{resolve:r,reject:s}=this.resolveQueue.shift();e?s(e):r({value:void 0,done:!0})}t&&(this.error=void 0)}async next(){if(this.error){let e=this.error;throw this.error=void 0,e}return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((e,t)=>{this.resolveQueue.push({resolve:e,reject:t})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(e){throw this.finish(e),e}[Symbol.asyncIterator](){return this}},Ni=class{static{h(this,\"FsPromises\")}constructor(e,t){this.fs=e,this.FileHandle=t,this.constants=vu.constants,this.cp=(0,T.promisify)(this.fs,\"cp\"),this.opendir=(0,T.promisify)(this.fs,\"opendir\"),this.statfs=(0,T.promisify)(this.fs,\"statfs\"),this.lutimes=(0,T.promisify)(this.fs,\"lutimes\"),this.glob=(0,T.promisify)(this.fs,\"glob\"),this.access=(0,T.promisify)(this.fs,\"access\"),this.chmod=(0,T.promisify)(this.fs,\"chmod\"),this.chown=(0,T.promisify)(this.fs,\"chown\"),this.copyFile=(0,T.promisify)(this.fs,\"copyFile\"),this.lchmod=(0,T.promisify)(this.fs,\"lchmod\"),this.lchown=(0,T.promisify)(this.fs,\"lchown\"),this.link=(0,T.promisify)(this.fs,\"link\"),this.lstat=(0,T.promisify)(this.fs,\"lstat\"),this.mkdir=(0,T.promisify)(this.fs,\"mkdir\"),this.mkdtemp=(0,T.promisify)(this.fs,\"mkdtemp\"),this.readdir=(0,T.promisify)(this.fs,\"readdir\"),this.readlink=(0,T.promisify)(this.fs,\"readlink\"),this.realpath=(0,T.promisify)(this.fs,\"realpath\"),this.rename=(0,T.promisify)(this.fs,\"rename\"),this.rmdir=(0,T.promisify)(this.fs,\"rmdir\"),this.rm=(0,T.promisify)(this.fs,\"rm\"),this.stat=(0,T.promisify)(this.fs,\"stat\"),this.symlink=(0,T.promisify)(this.fs,\"symlink\"),this.truncate=(0,T.promisify)(this.fs,\"truncate\"),this.unlink=(0,T.promisify)(this.fs,\"unlink\"),this.utimes=(0,T.promisify)(this.fs,\"utimes\"),this.readFile=(r,s)=>(0,T.promisify)(this.fs,\"readFile\")(r instanceof this.FileHandle?r.fd:r,s),this.appendFile=(r,s,n)=>(0,T.promisify)(this.fs,\"appendFile\")(r instanceof this.FileHandle?r.fd:r,s,n),this.open=(r,s=\"r\",n)=>(0,T.promisify)(this.fs,\"open\",c=>new this.FileHandle(this.fs,c))(r,s,n),this.writeFile=(r,s,n)=>((0,T.isReadableStream)(s)?(0,T.streamToBuffer)(s):Promise.resolve(s)).then(f=>(0,T.promisify)(this.fs,\"writeFile\")(r instanceof this.FileHandle?r.fd:r,f,n)),this.watch=(r,s)=>{let n=typeof s==\"string\"?{encoding:s}:s||{};return new Ti(this.fs,r,n)}}};cr.FsPromises=Ni});var Jn=g(ar=>{\"use strict\";p();Object.defineProperty(ar,\"__esModule\",{value:!0});ar.printTree=void 0;var ku=h((i=\"\",e)=>{let t=\"\",r=e.length-1;for(;r>=0&&!e[r];r--);for(let s=0;s<=r;s++){let n=e[s];if(!n)continue;let c=s===r,f=n(i+(c?\" \":\"\\u2502\")+\" \"),o=f?c?\"\\u2514\\u2500\":\"\\u251C\\u2500\":\"\\u2502\";t+=`\n`+i+o+(f?\" \"+f:\"\")}return t},\"printTree\");ar.printTree=ku});var Vn=g(ur=>{\"use strict\";p();Object.defineProperty(ur,\"__esModule\",{value:!0});ur.printBinary=void 0;var Tu=h((i=\"\",e)=>{let t=e[0],r=e[1],s=\"\";return t&&(s+=`\n`+i+\"\\u2190 \"+t(i+\" \")),r&&(s+=`\n`+i+\"\\u2192 \"+r(i+\" \")),s},\"printBinary\");ur.printBinary=Tu});var zn=g(hr=>{\"use strict\";p();Object.defineProperty(hr,\"__esModule\",{value:!0});hr.printJson=void 0;var Nu=h((i=\"\",e,t=2)=>(JSON.stringify(e,null,t)||\"nil\").split(`\n`).join(`\n`+i),\"printJson\");hr.printJson=Nu});var Hn=g(mt=>{\"use strict\";p();Object.defineProperty(mt,\"__esModule\",{value:!0});var Fi=(he(),ie(ue));Fi.__exportStar(Jn(),mt);Fi.__exportStar(Vn(),mt);Fi.__exportStar(zn(),mt)});var Yn=g(yt=>{\"use strict\";p();Object.defineProperty(yt,\"__esModule\",{value:!0});yt.toTreeSync=void 0;var Ru=Hn(),Fu=B(),Au=h((i,e={})=>{let t=e.separator||\"/\",r=e.dir||t;r[r.length-1]!==t&&(r+=t);let s=e.tab||\"\",n=e.depth??10,c=e.sort??!0,f=\" (...)\";if(n>0){let a=i.readdirSync(r,{withFileTypes:!0});c&&a.sort((u,l)=>u.isDirectory()&&l.isDirectory()?u.name.toString().localeCompare(l.name.toString()):u.isDirectory()?-1:l.isDirectory()?1:u.name.toString().localeCompare(l.name.toString())),f=(0,Ru.printTree)(s,a.map(u=>l=>u.isDirectory()?(0,yt.toTreeSync)(i,{dir:r+u.name,depth:n-1,tab:l}):u.isSymbolicLink()?\"\"+u.name+\" \\u2192 \"+i.readlinkSync(r+u.name):\"\"+u.name))}return(0,Fu.basename)(r,t)+t+f},\"toTreeSync\");yt.toTreeSync=Au});var Qn=g(Kn=>{\"use strict\";p();Object.defineProperty(Kn,\"__esModule\",{value:!0})});var $n=g(fr=>{\"use strict\";p();Object.defineProperty(fr,\"__esModule\",{value:!0});fr.Slice=void 0;var Ai=class{static{h(this,\"Slice\")}constructor(e,t,r,s){this.uint8=e,this.view=t,this.start=r,this.end=s}subarray(){return this.uint8.subarray(this.start,this.end)}};fr.Slice=Ai});var Ii=g(lr=>{\"use strict\";p();Object.defineProperty(lr,\"__esModule\",{value:!0});lr.Writer=void 0;var Cu=$n(),Iu=new Uint8Array([]),Pu=new DataView(Iu.buffer),eo=typeof Buffer==\"function\",Xn=eo?Buffer.prototype.utf8Write:null,Zn=eo?Buffer.from:null,Gn=typeof TextEncoder<\"u\"?new TextEncoder:null,Ci=class{static{h(this,\"Writer\")}constructor(e=64*1024){this.allocSize=e,this.view=Pu,this.x0=0,this.x=0,this.uint8=new Uint8Array(e),this.size=e,this.view=new DataView(this.uint8.buffer)}grow(e){let t=this.x0,r=this.x,s=this.uint8,n=new Uint8Array(e),c=new DataView(n.buffer),f=s.subarray(t,r);n.set(f,0),this.x=r-t,this.x0=0,this.uint8=n,this.size=e,this.view=c}ensureCapacity(e){let t=this.size,r=t-this.x;if(r<e){let s=t-this.x0,n=e-r,c=s+n;this.grow(c<=this.allocSize?this.allocSize:c*2)}}move(e){this.ensureCapacity(e),this.x+=e}reset(){this.x0=this.x}newBuffer(e){let t=this.uint8=new Uint8Array(e);this.size=e,this.view=new DataView(t.buffer),this.x=this.x0=0}flush(){let e=this.uint8.subarray(this.x0,this.x);return this.x0=this.x,e}flushSlice(){let e=new Cu.Slice(this.uint8,this.view,this.x0,this.x);return this.x0=this.x,e}u8(e){this.ensureCapacity(1),this.uint8[this.x++]=e}u16(e){this.ensureCapacity(2),this.view.setUint16(this.x,e),this.x+=2}u32(e){this.ensureCapacity(4),this.view.setUint32(this.x,e),this.x+=4}i32(e){this.ensureCapacity(4),this.view.setInt32(this.x,e),this.x+=4}u64(e){this.ensureCapacity(8),this.view.setBigUint64(this.x,BigInt(e)),this.x+=8}f64(e){this.ensureCapacity(8),this.view.setFloat64(this.x,e),this.x+=8}u8u16(e,t){this.ensureCapacity(3);let r=this.x;this.uint8[r++]=e,this.uint8[r++]=t>>>8,this.uint8[r++]=t&255,this.x=r}u8u32(e,t){this.ensureCapacity(5);let r=this.x;this.uint8[r++]=e,this.view.setUint32(r,t),this.x=r+4}u8u64(e,t){this.ensureCapacity(9);let r=this.x;this.uint8[r++]=e,this.view.setBigUint64(r,BigInt(t)),this.x=r+8}u8f32(e,t){this.ensureCapacity(5);let r=this.x;this.uint8[r++]=e,this.view.setFloat32(r,t),this.x=r+4}u8f64(e,t){this.ensureCapacity(9);let r=this.x;this.uint8[r++]=e,this.view.setFloat64(r,t),this.x=r+8}buf(e,t){this.ensureCapacity(t);let r=this.x;this.uint8.set(e,r),this.x=r+t}utf8(e){let t=e.length*4;if(t<168)return this.utf8Native(e);this.ensureCapacity(t);let r=this.size-this.x;if(Xn){let s=Xn.call(this.uint8,e,this.x,r);return this.x+=s,s}else if(Zn){let s=this.uint8,n=s.byteOffset+this.x,f=Zn(s.buffer).subarray(n,n+r).write(e,0,r,\"utf8\");return this.x+=f,f}else if(t>1024&&Gn){let s=Gn.encodeInto(e,this.uint8.subarray(this.x,this.x+r)).written;return this.x+=s,s}return this.utf8Native(e)}utf8Native(e){let t=e.length,r=this.uint8,s=this.x,n=0;for(;n<t;){let f=e.charCodeAt(n++);if((f&4294967168)===0){r[s++]=f;continue}else if((f&4294965248)===0)r[s++]=f>>6&31|192;else{if(f>=55296&&f<=56319&&n<t){let o=e.charCodeAt(n);(o&64512)===56320&&(n++,f=((f&1023)<<10)+(o&1023)+65536)}(f&4294901760)===0?(r[s++]=f>>12&15|224,r[s++]=f>>6&63|128):(r[s++]=f>>18&7|240,r[s++]=f>>12&63|128,r[s++]=f>>6&63|128)}r[s++]=f&63|128}let c=s-this.x;return this.x=s,c}ascii(e){let t=e.length;this.ensureCapacity(t);let r=this.uint8,s=this.x,n=0;for(;n<t;)r[s++]=e.charCodeAt(n++);this.x=s}};lr.Writer=Ci});var wt=g(Ge=>{\"use strict\";p();Object.defineProperty(Ge,\"__esModule\",{value:!0});Ge.validateEntryName=Ge.writer=void 0;var ju=Ii();Ge.writer=new ju.Writer(1024*32);var Du=h(i=>{if(!i||i===\".\"||i===\"..\"||i.indexOf(\"/\")!==-1||i.indexOf(\"\\\\\")!==-1)throw new Error(`Invalid snapshot entry name: ${JSON.stringify(i)}`)},\"validateEntryName\");Ge.validateEntryName=Du});var dr=g(Ae=>{\"use strict\";p();Object.defineProperty(Ae,\"__esModule\",{value:!0});Ae.fromSnapshotSync=Ae.toSnapshotSync=void 0;var Bu=wt(),Mu=h(({fs:i,path:e=\"/\",separator:t=\"/\"})=>{let r=i.lstatSync(e);if(r.isDirectory()){let s=i.readdirSync(e),n={},c=e.endsWith(t)?e:e+t;for(let f of s){let o=(0,Ae.toSnapshotSync)({fs:i,path:`${c}${f}`,separator:t});o&&(n[\"\"+f]=o)}return[0,{},n]}else if(r.isFile()){let s=i.readFileSync(e),n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);return[1,{},n]}else if(r.isSymbolicLink())return[2,{target:i.readlinkSync(e).toString()}];return null},\"toSnapshotSync\");Ae.toSnapshotSync=Mu;var Lu=h((i,{fs:e,path:t=\"/\",separator:r=\"/\"})=>{if(i)switch(i[0]){case 0:{t.endsWith(r)||(t=t+r);let[,,s]=i;e.mkdirSync(t,{recursive:!0});for(let[n,c]of Object.entries(s))(0,Bu.validateEntryName)(n),(0,Ae.fromSnapshotSync)(c,{fs:e,path:`${t}${n}`,separator:r});break}case 1:{let[,,s]=i;e.writeFileSync(t,s);break}case 2:{let[,{target:s}]=i;e.symlinkSync(s,t);break}}},\"fromSnapshotSync\");Ae.fromSnapshotSync=Lu});var ro=g(pr=>{\"use strict\";p();Object.defineProperty(pr,\"__esModule\",{value:!0});pr.isFloat32=void 0;var to=new DataView(new ArrayBuffer(4)),qu=h(i=>(to.setFloat32(0,i),i===to.getFloat32(0)),\"isFloat32\");pr.isFloat32=qu});var ji=g(mr=>{\"use strict\";p();Object.defineProperty(mr,\"__esModule\",{value:!0});mr.JsonPackExtension=void 0;var Pi=class{static{h(this,\"JsonPackExtension\")}constructor(e,t){this.tag=e,this.val=t}};mr.JsonPackExtension=Pi});var io=g(yr=>{\"use strict\";p();Object.defineProperty(yr,\"__esModule\",{value:!0});yr.CborEncoderFast=void 0;var Uu=Ii(),Wu=Number.isSafeInteger,Di=class{static{h(this,\"CborEncoderFast\")}constructor(e=new Uu.Writer){this.writer=e}encode(e){return this.writeAny(e),this.writer.flush()}writeAny(e){switch(typeof e){case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"boolean\":return this.writer.u8(244+ +e);case\"object\":return e?e.constructor===Array?this.writeArr(e):this.writeObj(e):this.writer.u8(246)}}writeCbor(){this.writer.u8u16(217,55799)}writeEnd(){this.writer.u8(255)}writeNull(){this.writer.u8(246)}writeBoolean(e){e?this.writer.u8(245):this.writer.u8(244)}writeNumber(e){Wu(e)?this.writeInteger(e):typeof e==\"bigint\"?this.writeBigInt(e):this.writeFloat(e)}writeBigInt(e){e>=0?this.writeBigUint(e):this.writeBigSint(e)}writeBigUint(e){if(e<=Number.MAX_SAFE_INTEGER)return this.writeUInteger(Number(e));this.writer.u8u64(27,e)}writeBigSint(e){if(e>=Number.MIN_SAFE_INTEGER)return this.encodeNint(Number(e));let t=-BigInt(1)-e;this.writer.u8u64(59,t)}writeInteger(e){e>=0?this.writeUInteger(e):this.encodeNint(e)}writeUInteger(e){let t=this.writer;t.ensureCapacity(9);let r=t.uint8,s=t.x;e<=23?r[s++]=0+e:e<=255?(r[s++]=24,r[s++]=e):e<=65535?(r[s++]=25,t.view.setUint16(s,e),s+=2):e<=4294967295?(r[s++]=26,t.view.setUint32(s,e),s+=4):(r[s++]=27,t.view.setBigUint64(s,BigInt(e)),s+=8),t.x=s}encodeNumber(e){this.writeNumber(e)}encodeInteger(e){this.writeInteger(e)}encodeUint(e){this.writeUInteger(e)}encodeNint(e){let t=-1-e,r=this.writer;r.ensureCapacity(9);let s=r.uint8,n=r.x;t<24?s[n++]=32+t:t<=255?(s[n++]=56,s[n++]=t):t<=65535?(s[n++]=57,r.view.setUint16(n,t),n+=2):t<=4294967295?(s[n++]=58,r.view.setUint32(n,t),n+=4):(s[n++]=59,r.view.setBigUint64(n,BigInt(t)),n+=8),r.x=n}writeFloat(e){this.writer.u8f64(251,e)}writeBin(e){let t=e.length;this.writeBinHdr(t),this.writer.buf(e,t)}writeBinHdr(e){let t=this.writer;e<=23?t.u8(64+e):e<=255?t.u16(22528+e):e<=65535?t.u8u16(89,e):e<=4294967295?t.u8u32(90,e):t.u8u64(91,e)}writeStr(e){let t=this.writer,s=e.length*4;t.ensureCapacity(5+s);let n=t.uint8,c=t.x;s<=23?t.x++:s<=255?(n[t.x++]=120,c=t.x,t.x++):s<=65535?(n[t.x++]=121,c=t.x,t.x+=2):(n[t.x++]=122,c=t.x,t.x+=4);let f=t.utf8(e);s<=23?n[c]=96+f:s<=255?n[c]=f:s<=65535?t.view.setUint16(c,f):t.view.setUint32(c,f)}writeStrHdr(e){let t=this.writer;e<=23?t.u8(96+e):e<=255?t.u16(30720+e):e<=65535?t.u8u16(121,e):t.u8u32(122,e)}writeAsciiStr(e){this.writeStrHdr(e.length),this.writer.ascii(e)}writeArr(e){let t=e.length;this.writeArrHdr(t);for(let r=0;r<t;r++)this.writeAny(e[r])}writeArrHdr(e){let t=this.writer;e<=23?t.u8(128+e):e<=255?t.u16(38912+e):e<=65535?t.u8u16(153,e):e<=4294967295?t.u8u32(154,e):t.u8u64(155,e)}writeObj(e){let t=Object.keys(e),r=t.length;this.writeObjHdr(r);for(let s=0;s<r;s++){let n=t[s];this.writeStr(n),this.writeAny(e[n])}}writeObjHdr(e){let t=this.writer;e<=23?t.u8(160+e):e<=255?t.u16(47104+e):e<=65535?t.u8u16(185,e):e<=4294967295?t.u8u32(186,e):t.u8u64(187,e)}writeMapHdr(e){this.writeObjHdr(e)}writeStartMap(){this.writer.u8(191)}writeTag(e,t){this.writeTagHdr(e),this.writeAny(t)}writeTagHdr(e){let t=this.writer;e<=23?t.u8(192+e):e<=255?t.u16(55296+e):e<=65535?t.u8u16(217,e):e<=4294967295?t.u8u32(218,e):t.u8u64(219,e)}writeTkn(e){let t=this.writer;e<=23?t.u8(224+e):e<=255&&t.u16(63488+e)}writeStartStr(){this.writer.u8(127)}writeStrChunk(e){throw new Error(\"Not implemented\")}writeEndStr(){throw new Error(\"Not implemented\")}writeStartBin(){this.writer.u8(95)}writeBinChunk(e){throw new Error(\"Not implemented\")}writeEndBin(){throw new Error(\"Not implemented\")}writeStartArr(){this.writer.u8(159)}writeArrChunk(e){throw new Error(\"Not implemented\")}writeEndArr(){this.writer.u8(255)}writeStartObj(){this.writer.u8(191)}writeObjChunk(e,t){throw new Error(\"Not implemented\")}writeEndObj(){this.writer.u8(255)}};yr.CborEncoderFast=Di});var _r=g(wr=>{\"use strict\";p();Object.defineProperty(wr,\"__esModule\",{value:!0});wr.JsonPackValue=void 0;var Bi=class{static{h(this,\"JsonPackValue\")}constructor(e){this.val=e}};wr.JsonPackValue=Bi});var so=g(br=>{\"use strict\";p();Object.defineProperty(br,\"__esModule\",{value:!0});br.CborEncoder=void 0;var Ju=ro(),Vu=ji(),zu=io(),Hu=_r(),Mi=class extends zu.CborEncoderFast{static{h(this,\"CborEncoder\")}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"boolean\":return this.writer.u8(244+ +e);case\"object\":{if(!e)return this.writer.u8(246);switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);case Map:return this.writeMap(e);case Vu.JsonPackExtension:return this.writeTag(e.tag,e.val);case Hu.JsonPackValue:{let r=e.val;return this.writer.buf(r,r.length)}default:return e instanceof Uint8Array?this.writeBin(e):Array.isArray(e)?this.writeArr(e):e instanceof Map?this.writeMap(e):this.writeUnknown(e)}}case\"undefined\":return this.writeUndef();case\"bigint\":return this.writeBigInt(e);default:return this.writeUnknown(e)}}writeFloat(e){(0,Ju.isFloat32)(e)?this.writer.u8f32(250,e):this.writer.u8f64(251,e)}writeMap(e){this.writeMapHdr(e.size),e.forEach((t,r)=>{this.writeAny(r),this.writeAny(t)})}writeUndef(){this.writer.u8(247)}};br.CborEncoder=Mi});var no=g(gr=>{\"use strict\";p();Object.defineProperty(gr,\"__esModule\",{value:!0});gr.decodeF16=void 0;var Yu=Math.pow,Ku=h(i=>{let e=(i&31744)>>10,t=i&1023;return(i>>15?-1:1)*(e?e===31?t?NaN:1/0:Yu(2,e-15)*(1+t/1024):6103515625e-14*(t/1024))},\"decodeF16\");gr.decodeF16=Ku});var oo=g(et=>{\"use strict\";p();Object.defineProperty(et,\"__esModule\",{value:!0});et.decodeAsciiMax15=et.decodeAscii=void 0;var U=String.fromCharCode,Qu=h((i,e,t)=>{let r=[];for(let s=0;s<t;s++){let n=i[e++];if(n&128)return;r.push(n)}return U.apply(String,r)},\"decodeAscii\");et.decodeAscii=Qu;var $u=h((i,e,t)=>{if(t<4)if(t<2){if(t===0)return\"\";{let r=i[e++];if((r&128)>1){e-=1;return}return U(r)}}else{let r=i[e++],s=i[e++];if((r&128)>0||(s&128)>0){e-=2;return}if(t<3)return U(r,s);let n=i[e++];if((n&128)>0){e-=3;return}return U(r,s,n)}else{let r=i[e++],s=i[e++],n=i[e++],c=i[e++];if((r&128)>0||(s&128)>0||(n&128)>0||(c&128)>0){e-=4;return}if(t<6){if(t===4)return U(r,s,n,c);{let f=i[e++];if((f&128)>0){e-=5;return}return U(r,s,n,c,f)}}else if(t<8){let f=i[e++],o=i[e++];if((f&128)>0||(o&128)>0){e-=6;return}if(t<7)return U(r,s,n,c,f,o);let a=i[e++];if((a&128)>0){e-=7;return}return U(r,s,n,c,f,o,a)}else{let f=i[e++],o=i[e++],a=i[e++],u=i[e++];if((f&128)>0||(o&128)>0||(a&128)>0||(u&128)>0){e-=8;return}if(t<10){if(t===8)return U(r,s,n,c,f,o,a,u);{let l=i[e++];if((l&128)>0){e-=9;return}return U(r,s,n,c,f,o,a,u,l)}}else if(t<12){let l=i[e++],d=i[e++];if((l&128)>0||(d&128)>0){e-=10;return}if(t<11)return U(r,s,n,c,f,o,a,u,l,d);let m=i[e++];if((m&128)>0){e-=11;return}return U(r,s,n,c,f,o,a,u,l,d,m)}else{let l=i[e++],d=i[e++],m=i[e++],y=i[e++];if((l&128)>0||(d&128)>0||(m&128)>0||(y&128)>0){e-=12;return}if(t<14){if(t===12)return U(r,s,n,c,f,o,a,u,l,d,m,y);{let b=i[e++];if((b&128)>0){e-=13;return}return U(r,s,n,c,f,o,a,u,l,d,m,y,b)}}else{let b=i[e++],S=i[e++];if((b&128)>0||(S&128)>0){e-=14;return}if(t<15)return U(r,s,n,c,f,o,a,u,l,d,m,y,b,S);let v=i[e++];if((v&128)>0){e-=15;return}return U(r,s,n,c,f,o,a,u,l,d,m,y,b,S,v)}}}}},\"decodeAsciiMax15\");et.decodeAsciiMax15=$u});var co=g(Li=>{\"use strict\";p();Object.defineProperty(Li,\"__esModule\",{value:!0});var Xu=String.fromCharCode;Li.default=(i,e,t)=>{let r=e,s=r+t,n=[];for(;r<s;){let c=i[r++];if((c&128)!==0){let f=i[r++]&63;if((c&224)===192)c=(c&31)<<6|f;else{let o=i[r++]&63;if((c&240)===224)c=(c&31)<<12|f<<6|o;else if((c&248)===240){let a=i[r++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;c=56320|u&1023,n.push(l)}else c=u}}}n.push(c)}return Xu.apply(String,n)}});var lo=g(Ui=>{\"use strict\";p();Object.defineProperty(Ui,\"__esModule\",{value:!0});var Zu=(he(),ie(ue)),ho=oo(),qi=Zu.__importDefault(co()),fo=typeof Buffer<\"u\",ao=fo?Buffer.prototype.utf8Slice:null,uo=fo?Buffer.from:null,Gu=h((i,e,t)=>(0,ho.decodeAsciiMax15)(i,e,t)??(0,qi.default)(i,e,t),\"shortDecoder\"),eh=h((i,e,t)=>(0,ho.decodeAscii)(i,e,t)??(0,qi.default)(i,e,t),\"midDecoder\"),th=ao?(i,e,t)=>ao.call(i,e,e+t):uo?(i,e,t)=>uo(i).subarray(e,e+t).toString(\"utf8\"):qi.default,rh=h((i,e,t)=>t<16?Gu(i,e,t):t<32?eh(i,e,t):th(i,e,t),\"decoder\");Ui.default=rh});var Wi=g(Sr=>{\"use strict\";p();Object.defineProperty(Sr,\"__esModule\",{value:!0});Sr.decodeUtf8=void 0;var ih=(he(),ie(ue)),sh=ih.__importDefault(lo());Sr.decodeUtf8=sh.default});var Vi=g(Er=>{\"use strict\";p();Object.defineProperty(Er,\"__esModule\",{value:!0});Er.Reader=void 0;var nh=Wi(),Ji=class i{static{h(this,\"Reader\")}constructor(e=new Uint8Array([]),t=new DataView(e.buffer,e.byteOffset,e.length),r=0,s=e.length){this.uint8=e,this.view=t,this.x=r,this.end=s}reset(e){this.x=0,this.uint8=e,this.view=new DataView(e.buffer,e.byteOffset,e.length)}size(){return this.end-this.x}peek(){return this.view.getUint8(this.x)}peak(){return this.peek()}skip(e){this.x+=e}buf(e=this.size()){let t=this.x,r=t+e,s=this.uint8.subarray(t,r);return this.x=r,s}subarray(e=0,t){let r=this.x,s=r+e,n=typeof t==\"number\"?r+t:this.end;return this.uint8.subarray(s,n)}slice(e=0,t){let r=this.x,s=r+e,n=typeof t==\"number\"?r+t:this.end;return new i(this.uint8,this.view,s,n)}cut(e=this.size()){let t=this.slice(0,e);return this.skip(e),t}u8(){return this.uint8[this.x++]}i8(){return this.view.getInt8(this.x++)}u16(){let e=this.x,t=(this.uint8[e++]<<8)+this.uint8[e++];return this.x=e,t}i16(){let e=this.view.getInt16(this.x);return this.x+=2,e}u32(){let e=this.view.getUint32(this.x);return this.x+=4,e}i32(){let e=this.view.getInt32(this.x);return this.x+=4,e}u64(){let e=this.view.getBigUint64(this.x);return this.x+=8,e}i64(){let e=this.view.getBigInt64(this.x);return this.x+=8,e}f32(){let e=this.x;return this.x+=4,this.view.getFloat32(e)}f64(){let e=this.x;return this.x+=8,this.view.getFloat64(e)}utf8(e){let t=this.x;return this.x+=e,(0,nh.decodeUtf8)(this.uint8,t,e)}ascii(e){let t=this.uint8,r=\"\",s=this.x+e;for(let n=this.x;n<s;n++)r+=String.fromCharCode(t[n]);return this.x=s,r}};Er.Reader=Ji});var po=g(zi=>{\"use strict\";p();Object.defineProperty(zi,\"__esModule\",{value:!0});var tt=String.fromCharCode;zi.default=(i,e,t)=>{let r=e,s=r+t,n=\"\";for(;r<s;){let c=i[r++];if((c&128)===0){n+=tt(c);continue}let f=i[r++]&63;if((c&224)===192){n+=tt((c&31)<<6|f);continue}let o=i[r++]&63;if((c&240)===224){n+=tt((c&31)<<12|f<<6|o);continue}if((c&248)===240){let a=i[r++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;u=56320|u&1023,n+=tt(l,u)}else n+=tt(u)}else n+=tt(c)}return n}});var mo=g(Or=>{\"use strict\";p();Object.defineProperty(Or,\"__esModule\",{value:!0});Or.CachedUtf8Decoder=void 0;var oh=(he(),ie(ue)),ch=oh.__importDefault(po()),Me=1+Math.round(Math.random()*((-1>>>0)-1));function ah(i,e){return Me^=Me<<13,Me^=Me>>>17,Me^=Me<<5,(Me>>>0)%(e-i+1)+i}h(ah,\"randomU32\");var Hi=class{static{h(this,\"CacheItem\")}constructor(e,t){this.bytes=e,this.value=t}},Yi=class{static{h(this,\"CachedUtf8Decoder\")}constructor(){this.caches=[];for(let e=0;e<31;e++)this.caches.push([])}get(e,t,r){let s=this.caches[r-1],n=s.length;e:for(let c=0;c<n;c++){let f=s[c],o=f.bytes;for(let a=0;a<r;a++)if(o[a]!==e[t+a])continue e;return f.value}return null}store(e,t){let r=this.caches[e.length-1],s=new Hi(e,t);r.length>=16?r[ah(0,15)]=s:r.push(s)}decode(e,t,r){if(!r)return\"\";let s=this.get(e,t,r);if(s!==null)return s;let n=(0,ch.default)(e,t,r),c=Uint8Array.prototype.slice.call(e,t,t+r);return this.store(c,n),n}};Or.CachedUtf8Decoder=Yi});var yo=g(Ki=>{\"use strict\";p();Object.defineProperty(Ki,\"__esModule\",{value:!0});var uh=mo();Ki.default=new uh.CachedUtf8Decoder});var _o=g(xr=>{\"use strict\";p();Object.defineProperty(xr,\"__esModule\",{value:!0});xr.CborDecoderBase=void 0;var hh=(he(),ie(ue)),fh=no(),lh=ji(),wo=_r(),dh=Vi(),ph=hh.__importDefault(yo()),Qi=class{static{h(this,\"CborDecoderBase\")}constructor(e=new dh.Reader,t=ph.default){this.reader=e,this.keyDecoder=t}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}val(){return this.readAny()}readAny(){let t=this.reader.u8(),r=t>>5,s=t&31;return r<4?r<2?r===0?this.readUint(s):this.readNint(s):r===2?this.readBin(s):this.readStr(s):r<6?r===4?this.readArr(s):this.readObj(s):r===6?this.readTag(s):this.readTkn(s)}readAnyRaw(e){let t=e>>5,r=e&31;return t<4?t<2?t===0?this.readUint(r):this.readNint(r):t===2?this.readBin(r):this.readStr(r):t<6?t===4?this.readArr(r):this.readObj(r):t===6?this.readTag(r):this.readTkn(r)}readMinorLen(e){if(e<24)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1;default:throw 1}}readUint(e){if(e<25)return e===24?this.reader.u8():e;if(e<27)return e===25?this.reader.u16():this.reader.u32();{let t=this.reader.u64();return t>9007199254740991?t:Number(t)}}readNint(e){if(e<25)return e===24?-this.reader.u8()-1:-e-1;if(e<27)return e===25?-this.reader.u16()-1:-this.reader.u32()-1;{let t=this.reader.u64();return t>9007199254740991-1?-t-BigInt(1):-Number(t)-1}}readBin(e){let t=this.reader;if(e<=23)return t.buf(e);switch(e){case 24:return t.buf(t.u8());case 25:return t.buf(t.u16());case 26:return t.buf(t.u32());case 27:return t.buf(Number(t.u64()));case 31:{let r=0,s=[];for(;this.reader.peak()!==255;){let o=this.readBinChunk();r+=o.length,s.push(o)}this.reader.x++;let n=new Uint8Array(r),c=0,f=s.length;for(let o=0;o<f;o++){let a=s[o];n.set(a,c),c+=a.length}return n}default:throw 1}}readBinChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==2)throw 2;if(r>27)throw 3;return this.readBin(r)}readAsStr(){let t=this.reader.u8(),r=t>>5,s=t&31;if(r!==3)throw 11;return this.readStr(s)}readStr(e){let t=this.reader;if(e<=23)return t.utf8(e);switch(e){case 24:return t.utf8(t.u8());case 25:return t.utf8(t.u16());case 26:return t.utf8(t.u32());case 27:return t.utf8(Number(t.u64()));case 31:{let r=\"\";for(;t.peak()!==255;)r+=this.readStrChunk();return this.reader.x++,r}default:throw 1}}readStrLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());default:throw 1}}readStrChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)throw 4;if(r>27)throw 5;return this.readStr(r)}readArr(e){let t=this.readMinorLen(e);return t>=0?this.readArrRaw(t):this.readArrIndef()}readArrRaw(e){let t=[];for(let r=0;r<e;r++)t.push(this.readAny());return t}readArrIndef(){let e=[];for(;this.reader.peak()!==255;)e.push(this.readAny());return this.reader.x++,e}readObj(e){if(e<28){let t=e;switch(e){case 24:t=this.reader.u8();break;case 25:t=this.reader.u16();break;case 26:t=this.reader.u32();break;case 27:t=Number(this.reader.u64());break}let r={};for(let s=0;s<t;s++){let n=this.key();if(n===\"__proto__\")throw 6;let c=this.readAny();r[n]=c}return r}else{if(e===31)return this.readObjIndef();throw 1}}readObjRaw(e){let t={};for(let r=0;r<e;r++){let s=this.key(),n=this.readAny();t[s]=n}return t}readObjIndef(){let e={};for(;this.reader.peak()!==255;){let t=this.key();if(this.reader.peak()===255)throw 7;let r=this.readAny();e[t]=r}return this.reader.x++,e}key(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)return String(this.readAnyRaw(e));let s=this.readStrLen(r);if(s>31)return this.reader.utf8(s);let n=this.keyDecoder.decode(this.reader.uint8,this.reader.x,s);return this.reader.skip(s),n}readTag(e){if(e<=23)return this.readTagRaw(e);switch(e){case 24:return this.readTagRaw(this.reader.u8());case 25:return this.readTagRaw(this.reader.u16());case 26:return this.readTagRaw(this.reader.u32());case 27:return this.readTagRaw(Number(this.reader.u64()));default:throw 1}}readTagRaw(e){return new lh.JsonPackExtension(e,this.readAny())}readTkn(e){switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 24:return new wo.JsonPackValue(this.reader.u8());case 25:return this.f16();case 26:return this.reader.f32();case 27:return this.reader.f64()}if(e<=23)return new wo.JsonPackValue(e);throw 1}f16(){return(0,fh.decodeF16)(this.reader.u16())}};xr.CborDecoderBase=Qi});var bo=g(vr=>{\"use strict\";p();Object.defineProperty(vr,\"__esModule\",{value:!0});vr.CborDecoder=void 0;var mh=_o(),yh=_r(),$i=class extends mh.CborDecoderBase{static{h(this,\"CborDecoder\")}readAsMap(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t===5)return this.readMap(r);throw 0}readMap(e){let t=this.readMinorLen(e);return t>=0?this.readMapRaw(t):this.readMapIndef()}readMapRaw(e){let t=new Map;for(let r=0;r<e;r++){let s=this.readAny(),n=this.readAny();t.set(s,n)}return t}readMapIndef(){let e=new Map;for(;this.reader.peak()!==255;){let t=this.readAny();if(this.reader.peak()===255)throw 7;let r=this.readAny();e.set(t,r)}return this.reader.x++,e}skipN(e){for(let t=0;t<e;t++)this.skipAny()}skipAny(){this.skipAnyRaw(this.reader.u8())}skipAnyRaw(e){let t=e>>5,r=e&31;switch(t){case 0:case 1:this.skipUNint(r);break;case 2:this.skipBin(r);break;case 3:this.skipStr(r);break;case 4:this.skipArr(r);break;case 5:this.skipObj(r);break;case 7:this.skipTkn(r);break;case 6:this.skipTag(r);break}}skipMinorLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1;default:throw 1}}skipUNint(e){if(!(e<=23))switch(e){case 24:return this.reader.skip(1);case 25:return this.reader.skip(2);case 26:return this.reader.skip(4);case 27:return this.reader.skip(8);default:throw 1}}skipBin(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;this.reader.peak()!==255;)this.skipBinChunk();this.reader.x++}}skipBinChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==2)throw 2;if(r>27)throw 3;this.skipBin(r)}skipStr(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;this.reader.peak()!==255;)this.skipStrChunk();this.reader.x++}}skipStrChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)throw 4;if(r>27)throw 5;this.skipStr(r)}skipArr(e){let t=this.skipMinorLen(e);if(t>=0)this.skipN(t);else{for(;this.reader.peak()!==255;)this.skipAny();this.reader.x++}}skipObj(e){let t=this.readMinorLen(e);if(t>=0)return this.skipN(t*2);for(;this.reader.peak()!==255;){if(this.skipAny(),this.reader.peak()===255)throw 7;this.skipAny()}this.reader.x++}skipTag(e){if(this.skipMinorLen(e)<0)throw 1;this.skipAny()}skipTkn(e){switch(e){case 24:this.reader.skip(1);return;case 25:this.reader.skip(2);return;case 26:this.reader.skip(4);return;case 27:this.reader.skip(8);return}if(!(e<=23))throw 1}validate(e,t=0,r=e.length){this.reader.reset(e),this.reader.x=t;let s=t;if(this.skipAny(),this.reader.x-s!==r)throw 8}decodeLevel(e){return this.reader.reset(e),this.readLevel()}readLevel(){let e=this.reader.u8(),t=e>>5,r=e&31;switch(t){case 4:return this.readArrLevel(r);case 5:return this.readObjLevel(r);default:return super.readAnyRaw(e)}}readPrimitiveOrVal(){switch(this.reader.peak()>>5){case 4:case 5:return this.readAsValue();default:return this.readAny()}}readAsValue(){let e=this.reader,t=e.x;this.skipAny();let r=e.x;return new yh.JsonPackValue(e.uint8.subarray(t,r))}readObjLevel(e){let t=this.readMinorLen(e);return t>=0?this.readObjRawLevel(t):this.readObjIndefLevel()}readObjRawLevel(e){let t={};for(let r=0;r<e;r++){let s=this.key(),n=this.readPrimitiveOrVal();t[s]=n}return t}readObjIndefLevel(){let e={};for(;this.reader.peak()!==255;){let t=this.key();if(this.reader.peak()===255)throw 7;let r=this.readPrimitiveOrVal();e[t]=r}return this.reader.x++,e}readArrLevel(e){let t=this.readMinorLen(e);return t>=0?this.readArrRawLevel(t):this.readArrIndefLevel()}readArrRawLevel(e){let t=[];for(let r=0;r<e;r++)t.push(this.readPrimitiveOrVal());return t}readArrIndefLevel(){let e=[];for(;this.reader.peak()!==255;)e.push(this.readPrimitiveOrVal());return this.reader.x++,e}readHdr(e){let t=this.reader.u8();if(t>>5!==e)throw 0;let s=t&31;if(s<24)return s;switch(s){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1}throw 1}readStrHdr(){return this.readHdr(3)}readObjHdr(){return this.readHdr(5)}readArrHdr(){return this.readHdr(4)}findKey(e){let t=this.readObjHdr();for(let r=0;r<t;r++){if(this.key()===e)return this;this.skipAny()}throw 9}findIndex(e){let t=this.readArrHdr();if(e>=t)throw 10;for(let r=0;r<e;r++)this.skipAny();return this}find(e){for(let t=0;t<e.length;t++){let r=e[t];typeof r==\"string\"?this.findKey(r):this.findIndex(r)}return this}};vr.CborDecoder=$i});var Xi=g(Ce=>{\"use strict\";p();Object.defineProperty(Ce,\"__esModule\",{value:!0});Ce.fromSnapshot=Ce.toSnapshot=void 0;var wh=wt(),_h=h(async({fs:i,path:e=\"/\",separator:t=\"/\"})=>{let r=await i.lstat(e);if(r.isDirectory()){let s=await i.readdir(e),n={},c=e.endsWith(t)?e:e+t,f=await Promise.all(s.map(o=>(0,Ce.toSnapshot)({fs:i,path:`${c}${o}`,separator:t})));for(let o=0;o<s.length;o++)f[o]&&(n[\"\"+s[o]]=f[o]);return[0,{},n]}else if(r.isFile()){let s=await i.readFile(e),n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);return[1,{},n]}else if(r.isSymbolicLink())return[2,{target:await i.readlink(e,{encoding:\"utf8\"})}];return null},\"toSnapshot\");Ce.toSnapshot=_h;var bh=h(async(i,{fs:e,path:t=\"/\",separator:r=\"/\"})=>{if(i)switch(i[0]){case 0:{t.endsWith(r)||(t=t+r);let[,,s]=i;await e.mkdir(t,{recursive:!0});for(let[n,c]of Object.entries(s))(0,wh.validateEntryName)(n),await(0,Ce.fromSnapshot)(c,{fs:e,path:`${t}${n}`,separator:r});break}case 1:{let[,,s]=i;await e.writeFile(t,s);break}case 2:{let[,{target:s}]=i;await e.symlink(s,t);break}}},\"fromSnapshot\");Ce.fromSnapshot=bh});var xo=g(de=>{\"use strict\";p();Object.defineProperty(de,\"__esModule\",{value:!0});de.fromBinarySnapshot=de.toBinarySnapshot=de.fromBinarySnapshotSync=de.toBinarySnapshotSync=void 0;var gh=so(),Sh=bo(),go=dr(),So=Xi(),Eh=wt(),Eo=new gh.CborEncoder(Eh.writer),Oo=new Sh.CborDecoder,Oh=h(i=>{let e=(0,go.toSnapshotSync)(i);return Eo.encode(e)},\"toBinarySnapshotSync\");de.toBinarySnapshotSync=Oh;var xh=h((i,e)=>{let t=Oo.decode(i);(0,go.fromSnapshotSync)(t,e)},\"fromBinarySnapshotSync\");de.fromBinarySnapshotSync=xh;var vh=h(async i=>{let e=await(0,So.toSnapshot)(i);return Eo.encode(e)},\"toBinarySnapshot\");de.toBinarySnapshot=vh;var kh=h(async(i,e)=>{let t=Oo.decode(i);await(0,So.fromSnapshot)(t,e)},\"fromBinarySnapshot\");de.fromBinarySnapshot=kh});var Zi=g(rt=>{\"use strict\";p();Object.defineProperty(rt,\"__esModule\",{value:!0});rt.hasBuffer=rt.alphabet=void 0;rt.alphabet=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";rt.hasBuffer=typeof Buffer==\"function\"&&typeof Buffer.from==\"function\"});var vo=g(kr=>{\"use strict\";p();Object.defineProperty(kr,\"__esModule\",{value:!0});kr.createToBase64Bin=void 0;var Th=Zi(),Nh=h((i=Th.alphabet,e=\"=\")=>{if(i.length!==64)throw new Error(\"chars must be 64 characters long\");let t=i.split(\"\").map(f=>f.charCodeAt(0)),r=[];for(let f of t)for(let o of t){let a=(f<<8)+o;r.push(a)}let s=e.length===1,n=s?e.charCodeAt(0):0,c=s?n<<8|n:0;return(f,o,a,u,l)=>{let d=a%3,m=a-d;for(;o<m;o+=3){let y=f[o],b=f[o+1],S=f[o+2],v=y<<4|b>>4,R=(b&15)<<8|S;u.setInt32(l,(r[v]<<16)+r[R]),l+=4}if(d===1){let y=f[m];s?(u.setInt32(l,(r[y<<4]<<16)+c),l+=4):(u.setInt16(l,r[y<<4]),l+=2)}else if(d){let y=f[m],b=f[m+1],S=y<<4|b>>4,v=(b&15)<<2;s?(u.setInt32(l,(r[S]<<16)+(t[v]<<8)+n),l+=4):(u.setInt16(l,r[S]),l+=2,u.setInt8(l,t[v]),l+=1)}return l}},\"createToBase64Bin\");kr.createToBase64Bin=Nh});var ko=g(Tr=>{\"use strict\";p();Object.defineProperty(Tr,\"__esModule\",{value:!0});Tr.toBase64Bin=void 0;var Rh=vo();Tr.toBase64Bin=(0,Rh.createToBase64Bin)()});var To=g(Nr=>{\"use strict\";p();Object.defineProperty(Nr,\"__esModule\",{value:!0});Nr.JsonEncoder=void 0;var Fh=ko(),Gi=class{static{h(this,\"JsonEncoder\")}constructor(e){this.writer=e}encode(e){let t=this.writer;return t.reset(),this.writeAny(e),t.flush()}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case\"boolean\":return this.writeBoolean(e);case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"object\":{if(e===null)return this.writeNull();switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);default:return e instanceof Uint8Array?this.writeBin(e):Array.isArray(e)?this.writeArr(e):this.writeUnknown(e)}}case\"undefined\":return this.writeUndef();default:return this.writeUnknown(e)}}writeNull(){this.writer.u32(1853189228)}writeUndef(){let e=this.writer;e.ensureCapacity(35);let r=e.view,s=e.x;r.setUint32(s,577003892),s+=4,r.setUint32(s,1631215984),s+=4,r.setUint32(s,1886153059),s+=4,r.setUint32(s,1635019119),s+=4,r.setUint32(s,1848599394),s+=4,r.setUint32(s,1869753442),s+=4,r.setUint32(s,1634952502),s+=4,r.setUint32(s,876296567),s+=4,r.setUint16(s,15677),s+=2,e.uint8[s++]=34,e.x=s}writeBoolean(e){e?this.writer.u32(1953658213):this.writer.u8u32(102,1634497381)}writeNumber(e){let t=e.toString();this.writer.ascii(t)}writeInteger(e){this.writeNumber(e>>0===e?e:Math.trunc(e))}writeUInteger(e){this.writeInteger(e<0?-e:e)}writeFloat(e){this.writeNumber(e)}writeBin(e){let t=this.writer,r=e.length;t.ensureCapacity(41+(r<<1));let s=t.view,n=t.x;s.setUint32(n,577003892),n+=4,s.setUint32(n,1631215984),n+=4,s.setUint32(n,1886153059),n+=4,s.setUint32(n,1635019119),n+=4,s.setUint32(n,1848602467),n+=4,s.setUint32(n,1952805933),n+=4,s.setUint32(n,1937011301),n+=4,s.setUint32(n,1634548578),n+=4,s.setUint32(n,1634952502),n+=4,s.setUint16(n,13356),n+=2,n=(0,Fh.toBase64Bin)(e,0,r,s,n),t.uint8[n++]=34,t.x=n}writeStr(e){let t=this.writer,r=e.length;if(t.ensureCapacity(r*4+2),r<256){let n=t.x,c=n,f=t.uint8;f[c++]=34;for(let o=0;o<r;o++){let a=e.charCodeAt(o);switch(a){case 34:case 92:f[c++]=92;break}if(a<32||a>126){t.x=n;let u=JSON.stringify(e);t.ensureCapacity(u.length*4+4),t.utf8(u);return}else f[c++]=a}f[c++]=34,t.x=c;return}let s=JSON.stringify(e);t.ensureCapacity(s.length*4+4),t.utf8(s)}writeAsciiStr(e){let t=e.length,r=this.writer;r.ensureCapacity(t*2+2);let s=r.uint8,n=r.x;s[n++]=34;for(let c=0;c<t;c++){let f=e.charCodeAt(c);switch(f){case 34:case 92:s[n++]=92;break}s[n++]=f}s[n++]=34,r.x=n}writeArr(e){let t=this.writer;t.u8(91);let s=e.length-1;for(let n=0;n<s;n++)this.writeAny(e[n]),t.u8(44);s>=0&&this.writeAny(e[s]),t.u8(93)}writeArrSeparator(){this.writer.u8(44)}writeObj(e){let t=this.writer,r=Object.keys(e),s=r.length;if(!s)return t.u16(31613);t.u8(123);for(let n=0;n<s;n++){let c=r[n],f=e[c];this.writeStr(c),t.u8(58),this.writeAny(f),t.u8(44)}t.uint8[t.x-1]=125}writeObjSeparator(){this.writer.u8(44)}writeObjKeySeparator(){this.writer.u8(58)}writeStartStr(){throw new Error(\"Method not implemented.\")}writeStrChunk(e){throw new Error(\"Method not implemented.\")}writeEndStr(){throw new Error(\"Method not implemented.\")}writeStartBin(){throw new Error(\"Method not implemented.\")}writeBinChunk(e){throw new Error(\"Method not implemented.\")}writeEndBin(){throw new Error(\"Method not implemented.\")}writeStartArr(){this.writer.u8(91)}writeArrChunk(e){throw new Error(\"Method not implemented.\")}writeEndArr(){this.writer.u8(93)}writeStartObj(){this.writer.u8(123)}writeObjChunk(e,t){throw new Error(\"Method not implemented.\")}writeEndObj(){this.writer.u8(125)}};Nr.JsonEncoder=Gi});var No=g(Rr=>{\"use strict\";p();Object.defineProperty(Rr,\"__esModule\",{value:!0});Rr.createFromBase64Bin=void 0;var Ah=Zi(),Ch=h((i=Ah.alphabet,e=\"=\")=>{if(i.length!==64)throw new Error(\"chars must be 64 characters long\");let t=0;for(let c=0;c<i.length;c++)t=Math.max(t,i.charCodeAt(c));let r=[];for(let c=0;c<=t;c+=1)r[c]=-1;for(let c=0;c<i.length;c++)r[i.charCodeAt(c)]=c;let n=e.length===1?e.charCodeAt(0):0;return(c,f,o)=>{if(!o)return new Uint8Array(0);let a=0;if(o%4!==0)a=4-o%4,o+=a;else{let W=f+o-1;c.getUint8(W)===n&&(a=1,o>1&&c.getUint8(W-1)===n&&(a=2))}if(o%4!==0)throw new Error(\"Base64 string length must be a multiple of 4\");let u=f+o-(a?4:0),l=(o>>2)*3-a,d=new Uint8Array(l),m=0,y=f;for(;y<u;y+=4){let I=c.getUint32(y),W=I>>>24,te=I>>>16&255,oe=I>>>8&255,ce=I&255,re=r[W],ae=r[te],Je=r[oe],St=r[ce];if(re<0||ae<0||Je<0||St<0)throw new Error(\"INVALID_BASE64_SEQ\");d[m]=re<<2|ae>>4,d[m+1]=ae<<4|Je>>2,d[m+2]=Je<<6|St,m+=3}if(!a)return d;if(a===1){let I=c.getUint16(u),W=I>>8,te=I&255,oe=c.getUint8(u+2),ce=r[W],re=r[te],ae=r[oe];if(ce<0||re<0||ae<0)throw new Error(\"INVALID_BASE64_SEQ\");return d[m]=ce<<2|re>>4,d[m+1]=re<<4|ae>>2,d}let b=c.getUint16(u),S=b>>8,v=b&255,R=r[S],j=r[v];if(R<0||j<0)throw new Error(\"INVALID_BASE64_SEQ\");return d[m]=R<<2|j>>4,d}},\"createFromBase64Bin\");Rr.createFromBase64Bin=Ch});var Ro=g(Fr=>{\"use strict\";p();Object.defineProperty(Fr,\"__esModule\",{value:!0});Fr.fromBase64Bin=void 0;var Ih=No();Fr.fromBase64Bin=(0,Ih.createFromBase64Bin)()});var Fo=g(Ar=>{\"use strict\";p();Object.defineProperty(Ar,\"__esModule\",{value:!0});Ar.findEndingQuote=void 0;var Ph=h((i,e)=>{let t=i.length,r=i[e],s=0;for(;e<t&&!(r===34&&s!==92);)r===92&&s===92?s=0:s=r,r=i[++e];if(e===t)throw new Error(\"Invalid JSON\");return e},\"findEndingQuote\");Ar.findEndingQuote=Ph});var Io=g(Le=>{\"use strict\";p();Object.defineProperty(Le,\"__esModule\",{value:!0});Le.JsonDecoder=Le.readKey=void 0;var jh=Wi(),Dh=Vi(),Ao=Ro(),es=Fo(),Bh=/\\\\(b|f|n|r|t|\"|\\/|\\\\)/g,Mh=h(i=>{switch(i){case\"\\\\b\":return\"\\b\";case\"\\\\f\":return\"\\f\";case\"\\\\n\":return`\n`;case\"\\\\r\":return\"\\r\";case\"\\\\t\":return\" \";case'\\\\\"':return'\"';case\"\\\\/\":return\"/\";case\"\\\\\\\\\":return\"\\\\\"}return i},\"escapedCharReplacer\"),Co=h((i,e)=>i[e]===100&&i[e+1]===97&&i[e+2]===116&&i[e+3]===97&&i[e+4]===58&&i[e+5]===97&&i[e+6]===112&&i[e+7]===112&&i[e+8]===108&&i[e+9]===105&&i[e+10]===99&&i[e+11]===97&&i[e+12]===116&&i[e+13]===105&&i[e+14]===111&&i[e+15]===110&&i[e+16]===47&&i[e+17]===111&&i[e+18]===99&&i[e+19]===116&&i[e+20]===101&&i[e+21]===116&&i[e+22]===45&&i[e+23]===115&&i[e+24]===116&&i[e+25]===114&&i[e+26]===101&&i[e+27]===97&&i[e+28]===109&&i[e+29]===59&&i[e+30]===98&&i[e+31]===97&&i[e+32]===115&&i[e+33]===101&&i[e+34]===54&&i[e+35]===52&&i[e+36]===44,\"hasBinaryPrefix\"),Lh=h((i,e)=>i[e++]===97&&i[e++]===116&&i[e++]===97&&i[e++]===58&&i[e++]===97&&i[e++]===112&&i[e++]===112&&i[e++]===108&&i[e++]===105&&i[e++]===99&&i[e++]===97&&i[e++]===116&&i[e++]===105&&i[e++]===111&&i[e++]===110&&i[e++]===47&&i[e++]===99&&i[e++]===98&&i[e++]===111&&i[e++]===114&&i[e++]===44&&i[e++]===98&&i[e++]===97&&i[e++]===115&&i[e++]===101&&i[e++]===54&&i[e++]===52&&i[e++]===59&&i[e++]===57&&i[e++]===119&&i[e++]===61&&i[e++]===61&&i[e++]===34,\"isUndefined\"),A=String.fromCharCode,qh=h(i=>{let e=i.uint8,t=e.length,r=[],s=i.x,n=0;for(;s<t;){let c=e[s++];if((c&128)===0)if(n===92){switch(c){case 98:c=8;break;case 102:c=12;break;case 110:c=10;break;case 114:c=13;break;case 116:c=9;break;case 34:c=34;break;case 47:c=47;break;case 92:c=92;break;default:throw new Error(\"Invalid JSON\")}n=0}else{if(c===34)break;if(n=c,n===92)continue}else{let f=e[s++]&63;if((c&224)===192)c=(c&31)<<6|f;else{let o=e[s++]&63;if((c&240)===224)c=(c&31)<<12|f<<6|o;else if((c&248)===240){let a=e[s++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;u=56320|u&1023,r.push(l),c=u}else c=u}}}r.push(c)}return i.x=s,A.apply(String,r)},\"readKey\");Le.readKey=qh;var ts=class{static{h(this,\"JsonDecoder\")}constructor(){this.reader=new Dh.Reader}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}readAny(){this.skipWhitespace();let e=this.reader,t=e.x,r=e.uint8,s=r[t];switch(s){case 34:{if(r[t+1]===100){let n=this.tryReadBin();if(n)return n;if(Lh(r,t+2)){e.x=t+35;return}}return this.readStr()}case 91:return this.readArr();case 102:return this.readFalse();case 110:return this.readNull();case 116:return this.readTrue();case 123:return this.readObj();default:if(s>=48&&s<=57||s===45)return this.readNum();throw new Error(\"Invalid JSON\")}}skipWhitespace(){let e=this.reader,t=e.uint8,r=e.x,s=0;for(;;)switch(s=t[r],s){case 32:case 9:case 10:case 13:r++;continue;default:e.x=r;return}}readNull(){if(this.reader.u32()!==1853189228)throw new Error(\"Invalid JSON\");return null}readTrue(){if(this.reader.u32()!==1953658213)throw new Error(\"Invalid JSON\");return!0}readFalse(){let e=this.reader;if(e.u8()!==102||e.u32()!==1634497381)throw new Error(\"Invalid JSON\");return!1}readBool(){let e=this.reader;switch(e.uint8[e.x]){case 102:return this.readFalse();case 116:return this.readTrue();default:throw new Error(\"Invalid JSON\")}}readNum(){let e=this.reader,t=e.uint8,r=e.x,s=t[r++],n=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n);if(_!==_)throw new Error(\"Invalid JSON\");return _}let c=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c);if(_!==_)throw new Error(\"Invalid JSON\");return _}let f=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f);if(_!==_)throw new Error(\"Invalid JSON\");return _}let o=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o);if(_!==_)throw new Error(\"Invalid JSON\");return _}let a=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a);if(_!==_)throw new Error(\"Invalid JSON\");return _}let u=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u);if(_!==_)throw new Error(\"Invalid JSON\");return _}let l=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l);if(_!==_)throw new Error(\"Invalid JSON\");return _}let d=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d);if(_!==_)throw new Error(\"Invalid JSON\");return _}let m=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m);if(_!==_)throw new Error(\"Invalid JSON\");return _}let y=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y);if(_!==_)throw new Error(\"Invalid JSON\");return _}let b=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b);if(_!==_)throw new Error(\"Invalid JSON\");return _}let S=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S);if(_!==_)throw new Error(\"Invalid JSON\");return _}let v=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v);if(_!==_)throw new Error(\"Invalid JSON\");return _}let R=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R);if(_!==_)throw new Error(\"Invalid JSON\");return _}let j=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j);if(_!==_)throw new Error(\"Invalid JSON\");return _}let I=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I);if(_!==_)throw new Error(\"Invalid JSON\");return _}let W=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W);if(_!==_)throw new Error(\"Invalid JSON\");return _}let te=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te);if(_!==_)throw new Error(\"Invalid JSON\");return _}let oe=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe);if(_!==_)throw new Error(\"Invalid JSON\");return _}let ce=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce);if(_!==_)throw new Error(\"Invalid JSON\");return _}let re=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re);if(_!==_)throw new Error(\"Invalid JSON\");return _}let ae=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae);if(_!==_)throw new Error(\"Invalid JSON\");return _}let Je=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae,Je);if(_!==_)throw new Error(\"Invalid JSON\");return _}let St=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae,Je,St);if(_!==_)throw new Error(\"Invalid JSON\");return _}throw new Error(\"Invalid JSON\")}readStr(){let e=this.reader,t=e.uint8;if(t[e.x++]!==34)throw new Error(\"Invalid JSON\");let s=e.x,n=(0,es.findEndingQuote)(t,s),c=(0,jh.decodeUtf8)(t,s,n-s);return c=c.replace(Bh,Mh),e.x=n+1,c}tryReadBin(){let e=this.reader,t=e.uint8,r=e.x;if(t[r++]!==34||!Co(t,r))return;r+=37;let n=r;r=(0,es.findEndingQuote)(t,r),e.x=n;let c=(0,Ao.fromBase64Bin)(e.view,n,r-n);return e.x=r+1,c}readBin(){let e=this.reader,t=e.uint8,r=e.x;if(t[r++]!==34)throw new Error(\"Invalid JSON\");if(!Co(t,r))throw new Error(\"Invalid JSON\");r+=37;let n=r;r=(0,es.findEndingQuote)(t,r),e.x=n;let c=(0,Ao.fromBase64Bin)(e.view,n,r-n);return e.x=r+1,c}readArr(){let e=this.reader;if(e.u8()!==91)throw new Error(\"Invalid JSON\");let t=[],r=e.uint8,s=!0;for(;;){this.skipWhitespace();let n=r[e.x];if(n===93)return e.x++,t;if(n===44)e.x++;else if(!s)throw new Error(\"Invalid JSON\");this.skipWhitespace(),t.push(this.readAny()),s=!1}}readObj(){let e=this.reader;if(e.u8()!==123)throw new Error(\"Invalid JSON\");let t={},r=e.uint8,s=!0;for(;;){this.skipWhitespace();let n=r[e.x];if(n===125)return e.x++,t;if(n===44)e.x++;else if(!s)throw new Error(\"Invalid JSON\");if(this.skipWhitespace(),n=r[e.x++],n!==34)throw new Error(\"Invalid JSON\");let c=(0,Le.readKey)(e);if(c===\"__proto__\")throw new Error(\"Invalid JSON\");if(this.skipWhitespace(),e.u8()!==58)throw new Error(\"Invalid JSON\");this.skipWhitespace(),t[c]=this.readAny(),s=!1}}};Le.JsonDecoder=ts});var Mo=g(pe=>{\"use strict\";p();Object.defineProperty(pe,\"__esModule\",{value:!0});pe.fromJsonSnapshot=pe.toJsonSnapshot=pe.fromJsonSnapshotSync=pe.toJsonSnapshotSync=void 0;var Uh=To(),Wh=Io(),Po=dr(),jo=Xi(),Jh=wt(),Do=new Uh.JsonEncoder(Jh.writer),Bo=new Wh.JsonDecoder,Vh=h(i=>{let e=(0,Po.toSnapshotSync)(i);return Do.encode(e)},\"toJsonSnapshotSync\");pe.toJsonSnapshotSync=Vh;var zh=h((i,e)=>{let t=Bo.read(i);(0,Po.fromSnapshotSync)(t,e)},\"fromJsonSnapshotSync\");pe.fromJsonSnapshotSync=zh;var Hh=h(async i=>{let e=await(0,jo.toSnapshot)(i);return Do.encode(e)},\"toJsonSnapshot\");pe.toJsonSnapshot=Hh;var Yh=h(async(i,e)=>{let t=Bo.read(i);await(0,jo.fromSnapshot)(t,e)},\"fromJsonSnapshot\");pe.fromJsonSnapshot=Yh});var Lo=g(it=>{\"use strict\";p();Object.defineProperty(it,\"__esModule\",{value:!0});var Cr=(he(),ie(ue));Cr.__exportStar(Qn(),it);Cr.__exportStar(dr(),it);Cr.__exportStar(xo(),it);Cr.__exportStar(Mo(),it)});var is=g(E=>{\"use strict\";p();Object.defineProperty(E,\"__esModule\",{value:!0});E.getWriteFileOptions=E.writeFileDefaults=E.getRealpathOptsAndCb=E.getRealpathOptions=E.getStatfsOptsAndCb=E.getStatfsOptions=E.getStatOptsAndCb=E.getStatOptions=E.getAppendFileOptsAndCb=E.getAppendFileOpts=E.getOpendirOptsAndCb=E.getOpendirOptions=E.getReaddirOptsAndCb=E.getReaddirOptions=E.getReadFileOptions=E.getRmOptsAndCb=E.getRmdirOptions=E.getDefaultOptsAndCb=E.getDefaultOpts=E.optsDefaults=E.getMkdirOptions=void 0;E.getOptions=Uo;E.optsGenerator=Se;E.optsAndCbGenerator=qe;var _t=B(),rs=Fe(),qo={mode:511,recursive:!1},Kh=h(i=>typeof i==\"number\"?Object.assign({},qo,{mode:i}):Object.assign({},qo,i),\"getMkdirOptions\");E.getMkdirOptions=Kh;var Qh=h(i=>`Expected options to be either an object or a string, but got ${i} instead`,\"ERRSTR_OPTS\");function Uo(i,e){let t;if(e){let r=typeof e;switch(r){case\"string\":t=Object.assign({},i,{encoding:e});break;case\"object\":t=Object.assign({},i,e);break;default:throw TypeError(Qh(r))}}else return i;return t.encoding!==\"buffer\"&&(0,_t.assertEncoding)(t.encoding),t}h(Uo,\"getOptions\");function Se(i){return e=>Uo(i,e)}h(Se,\"optsGenerator\");function qe(i){return(e,t)=>typeof e==\"function\"?[i(),e]:[i(e),(0,rs.validateCallback)(t)]}h(qe,\"optsAndCbGenerator\");E.optsDefaults={encoding:\"utf8\"};E.getDefaultOpts=Se(E.optsDefaults);E.getDefaultOptsAndCb=qe(E.getDefaultOpts);var $h={recursive:!1},Xh=h(i=>Object.assign({},$h,i),\"getRmdirOptions\");E.getRmdirOptions=Xh;var Zh=Se(E.optsDefaults);E.getRmOptsAndCb=qe(Zh);var Gh={flag:\"r\"};E.getReadFileOptions=Se(Gh);var ef={encoding:\"utf8\",recursive:!1,withFileTypes:!1};E.getReaddirOptions=Se(ef);E.getReaddirOptsAndCb=qe(E.getReaddirOptions);var tf={encoding:\"utf8\",bufferSize:32,recursive:!1};E.getOpendirOptions=Se(tf);E.getOpendirOptsAndCb=qe(E.getOpendirOptions);var rf={encoding:\"utf8\",mode:438,flag:_t.FLAGS[_t.FLAGS.a]};E.getAppendFileOpts=Se(rf);E.getAppendFileOptsAndCb=qe(E.getAppendFileOpts);var sf={bigint:!1},nf=h((i={})=>Object.assign({},sf,i),\"getStatOptions\");E.getStatOptions=nf;var of=h((i,e)=>typeof i==\"function\"?[(0,E.getStatOptions)(),i]:[(0,E.getStatOptions)(i),(0,rs.validateCallback)(e)],\"getStatOptsAndCb\");E.getStatOptsAndCb=of;var cf={bigint:!1},af=h((i={})=>Object.assign({},cf,i),\"getStatfsOptions\");E.getStatfsOptions=af;var uf=h((i,e)=>typeof i==\"function\"?[(0,E.getStatfsOptions)(),i]:[(0,E.getStatfsOptions)(i),(0,rs.validateCallback)(e)],\"getStatfsOptsAndCb\");E.getStatfsOptsAndCb=uf;var hf=E.optsDefaults;E.getRealpathOptions=Se(hf);E.getRealpathOptsAndCb=qe(E.getRealpathOptions);E.writeFileDefaults={encoding:\"utf8\",mode:438,flag:_t.FLAGS[_t.FLAGS.w]};E.getWriteFileOptions=Se(E.writeFileDefaults)});var ns=g(Ir=>{\"use strict\";p();Object.defineProperty(Ir,\"__esModule\",{value:!0});Ir.Dir=void 0;var Wo=Fe(),ff=rr(),Ue=Ke(),ss=class{static{h(this,\"Dir\")}constructor(e,t){this.link=e,this.options=t,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=e.getPath(),this.iteratorInfo.push(e.children[Symbol.iterator]())}closeBase(){}readBase(e){if(e.length===0)return null;let t,r,s,n;do{do if({done:t,value:r}=e[e.length-1].next(),!t)[s,n]=r;else break;while(s===\".\"||s===\"..\");if(t){if(e.pop(),e.length===0)break;t=!1}else return this.options.recursive&&n.children.size&&e.push(n.children[Symbol.iterator]()),ff.default.build(n,this.options.encoding)}while(!t);return null}close(e){if(e===void 0)return this.closed?Promise.reject(new Ue.Error(\"ERR_DIR_CLOSED\")):new Promise((t,r)=>{this.close(s=>{s?r(s):t()})});if((0,Wo.validateCallback)(e),this.closed){process.nextTick(e,new Ue.Error(\"ERR_DIR_CLOSED\"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.close(e)});return}this.closed=!0;try{this.closeBase(),process.nextTick(e)}catch(t){process.nextTick(e,t)}}closeSync(){if(this.closed)throw new Ue.Error(\"ERR_DIR_CLOSED\");if(this.operationQueue!==null)throw new Ue.Error(\"ERR_DIR_CONCURRENT_OPERATION\");this.closed=!0,this.closeBase()}read(e){if(e===void 0)return new Promise((t,r)=>{this.read((s,n)=>{s?r(s):t(n??null)})});if((0,Wo.validateCallback)(e),this.closed){process.nextTick(e,new Ue.Error(\"ERR_DIR_CLOSED\"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.read(e)});return}this.operationQueue=[];try{let t=this.readBase(this.iteratorInfo);process.nextTick(()=>{let r=this.operationQueue;this.operationQueue=null;for(let s of r)s();e(null,t)})}catch(t){process.nextTick(()=>{let r=this.operationQueue;this.operationQueue=null;for(let s of r)s();e(t)})}}readSync(){if(this.closed)throw new Ue.Error(\"ERR_DIR_CLOSED\");if(this.operationQueue!==null)throw new Ue.Error(\"ERR_DIR_CONCURRENT_OPERATION\");return this.readBase(this.iteratorInfo)}async*[Symbol.asyncIterator](){try{for(;;){let e=await this.read();if(e===null)break;yield e}}finally{await this.close()}}async[Symbol.asyncDispose](){this.closed||await this.close()}[Symbol.dispose](){this.closed||this.closeSync()}};Ir.Dir=ss});var as=g(cs=>{\"use strict\";p();Object.defineProperty(cs,\"__esModule\",{value:!0});cs.globSync=mf;var bt=ze(),lf=Zr(),Jo=B(),Vo=Fe(),df=bt.posix.resolve;function zo(i,e){return(0,lf.toRegex)(e).test(i)}h(zo,\"matchesPattern\");function pf(i,e){return e?typeof e==\"function\"?e(i):(Array.isArray(e)?e:[e]).some(r=>zo(i,r)):!1}h(pf,\"isExcluded\");function os(i,e,t,r,s=0){let n=[],c=r.maxdepth??1/0,f=r.cwd?(0,Vo.pathToFilename)(r.cwd):process.cwd();if(s>c)return n;try{let o=i.readdirSync(e,{withFileTypes:!0});for(let a of o){let u=(0,Jo.pathJoin)(e,a.name.toString()),l=(0,Jo.pathRelative)(f,u);if(pf(l,r.exclude))continue;if(t.some(m=>zo(l,m))&&n.push(l),a.isDirectory()&&s<c){let m=os(i,u,t,r,s+1);n.push(...m)}}}catch{}return n}h(os,\"walkDirectory\");function mf(i,e,t={}){let r=t.cwd?(0,Vo.pathToFilename)(t.cwd):process.cwd(),s=df(r),n={cwd:s,exclude:t.exclude,maxdepth:t.maxdepth,withFileTypes:t.withFileTypes||!1},c=[];if(bt.posix.isAbsolute(e)){let f=bt.posix.dirname(e),o=bt.posix.basename(e),a=os(i,f,[o],{...n,cwd:f});c.push(...a.map(u=>bt.posix.resolve(f,u)))}else{let f=e.replace(/^\\.\\//,\"\"),o=os(i,s,[f],n);c.push(...o)}return c=[...new Set(c)].sort(),c}h(mf,\"globSync\")});var Zo=g($=>{\"use strict\";p();Object.defineProperty($,\"__esModule\",{value:!0});$.FSWatcher=$.StatWatcher=$.Volume=void 0;$.pathToSteps=Ff;$.dataToStr=Af;$.toUnixTimestamp=K;var gt=ze(),C=Gt(),Pr=gi(),yf=rr(),wf=Si(),Ie=Oe(),Ho=Bn(),Br=Ln(),me=B(),Qo=Oi(),_f=ki(),$o=zr(),bf=Ri(),gf=Yn(),st=Lo(),Q=B(),Sf=Ke(),k=is(),w=Fe(),Ef=ns(),Of=gt.resolve,{O_SYMLINK:Yo,F_OK:us,R_OK:xf,W_OK:vf,X_OK:kf,COPYFILE_EXCL:Tf,COPYFILE_FICLONE_FORCE:Nf}=me.constants,Rf=128;function Ff(i){return(0,C.filenameToSteps)((0,w.pathToFilename)(i))}h(Ff,\"pathToSteps\");function Af(i,e=me.ENCODING_UTF8){return Ie.Buffer.isBuffer(i)?i.toString(e):i instanceof Uint8Array?(0,Ie.bufferFrom)(i).toString(e):String(i)}h(Af,\"dataToStr\");function K(i){if(typeof i==\"string\"&&+i==i)return+i;if(i instanceof Date)return i.getTime()/1e3;if(isFinite(i))return i<0?Date.now()/1e3:i;throw new Error(\"Cannot parse time: \"+i)}h(K,\"toUnixTimestamp\");function nt(i){if(typeof i!=\"number\")throw TypeError(Q.ERRSTR.UID)}h(nt,\"validateUid\");function ot(i){if(typeof i!=\"number\")throw TypeError(Q.ERRSTR.GID)}h(ot,\"validateGid\");var We=class{static{h(this,\"Volume\")}get promises(){if(this.promisesApi===null)throw new Error(\"Promise is not supported in this environment.\");return this.promisesApi}constructor(e=new C.Superblock){this._core=e,this.promisesApi=new bf.FsPromises(this,_f.FileHandle),this.openSync=(o,a,u=438)=>{let l=(0,w.modeToNumber)(u),d=(0,w.pathToFilename)(o),m=(0,w.flagsToNumber)(a);return this._core.open(d,m,l,!(m&Yo))},this.open=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&(d=438,m=u),d=d||438;let y=(0,w.modeToNumber)(d),b=(0,w.pathToFilename)(o),S=(0,w.flagsToNumber)(a);this.wrapAsync(this._core.open,[b,S,y,!(S&Yo)],m)},this.closeSync=o=>{this._core.close(o)},this.close=(o,a)=>{(0,C.validateFd)(o);let u=this._core.getFileByFdOrThrow(o,\"close\");this.wrapAsync(this._core.close,[u.fd],a)},this.readSync=(o,a,u,l,d)=>((0,C.validateFd)(o),this._core.read(o,a,u,l,d)),this.read=(o,a,u,l,d,m)=>{if((0,w.validateCallback)(m),l===0)return queueMicrotask(()=>{m&&m(null,0,a)});Promise.resolve().then(()=>{try{let y=this._core.read(o,a,u,l,d);m(null,y,a)}catch(y){m(y)}})},this.readv=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[null,u]),(0,w.validateCallback)(m),Promise.resolve().then(()=>{try{let y=this._core.readv(o,a,d);m(null,y,a)}catch(y){m(y)}})},this.readvSync=(o,a,u)=>((0,C.validateFd)(o),this._core.readv(o,a,u??null)),this._readfile=(o,a,u)=>{let l,m=typeof o==\"number\"&&(0,C.isFd)(o),y;m?y=o:y=this.openSync(o,a);try{let b=this._core.getFileByFdOrThrow(y,\"fstat\");if(b.node.isDirectory())throw m?(0,w.createError)(\"EISDIR\",\"read\"):(0,w.createError)(\"EISDIR\",\"open\",(0,w.pathToFilename)(o));l=(0,w.bufferToEncoding)(b.getBuffer(),u)}finally{m||this.closeSync(y)}return l},this.readFileSync=(o,a)=>{let u=(0,k.getReadFileOptions)(a),l=(0,w.flagsToNumber)(u.flag);return this._readfile(o,l,u.encoding)},this.readFile=(o,a,u)=>{let[l,d]=(0,k.optsAndCbGenerator)(k.getReadFileOptions)(a,u),m=(0,w.flagsToNumber)(l.flag);this.wrapAsync(this._readfile,[o,m,l.encoding],d)},this.writeSync=(o,a,u,l,d)=>{let[,m,y,b,S]=(0,w.getWriteSyncArgs)(o,a,u,l,d);return this._write(o,m,y,b,S)},this.write=(o,a,u,l,d,m)=>{let[,y,b,S,v,R,j]=(0,w.getWriteArgs)(o,a,u,l,d,m);Promise.resolve().then(()=>{try{let I=this._write(o,b,S,v,R);y?j(null,I,a):j(null,I,b)}catch(I){j(I)}})},this.writev=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[null,u]),(0,w.validateCallback)(m),Promise.resolve().then(()=>{try{let y=this.writevBase(o,a,d);m(null,y,a)}catch(y){m(y)}})},this.writevSync=(o,a,u)=>((0,C.validateFd)(o),this.writevBase(o,a,u??null)),this.writeFileSync=(o,a,u)=>{let l=(0,k.getWriteFileOptions)(u),d=(0,w.flagsToNumber)(l.flag),m=(0,w.modeToNumber)(l.mode),y=(0,C.dataToBuffer)(a,l.encoding);this._core.writeFile(o,y,d,m)},this.writeFile=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[k.writeFileDefaults,u]);let y=(0,w.validateCallback)(m),b=(0,k.getWriteFileOptions)(d),S=(0,w.flagsToNumber)(b.flag),v=(0,w.modeToNumber)(b.mode),R=(0,C.dataToBuffer)(a,b.encoding);this.wrapAsync(this._core.writeFile,[o,R,S,v],y)},this.copyFileSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);return this._copyFile(l,d,(u||0)|0)},this.copyFile=(o,a,u,l)=>{let d=(0,w.pathToFilename)(o),m=(0,w.pathToFilename)(a),y,b;typeof u==\"function\"?[y,b]=[0,u]:[y,b]=[u,l],(0,w.validateCallback)(b),this.wrapAsync(this._copyFile,[d,m,y],b)},this._cp=(o,a,u)=>{if(u.filter&&!u.filter(o,a))return;let l=u.dereference?this.statSync(o):this.lstatSync(o),d=null;try{d=this.lstatSync(a)}catch(m){if(m.code!==\"ENOENT\")throw m}if(d&&l.ino===d.ino&&l.dev===d.dev)throw(0,w.createError)(\"EINVAL\",\"cp\",o,a);if(d){if(l.isDirectory()&&!d.isDirectory())throw(0,w.createError)(\"EISDIR\",\"cp\",o,a);if(!l.isDirectory()&&d.isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"cp\",o,a)}if(l.isDirectory()&&this.isSrcSubdir(o,a))throw(0,w.createError)(\"EINVAL\",\"cp\",o,a);{let m=(0,Q.pathDirname)(a);this.existsSync(m)||this.mkdirSync(m,{recursive:!0})}if(l.isDirectory()){if(!u.recursive)throw(0,w.createError)(\"EISDIR\",\"cp\",o);this.cpDirSync(l,d,o,a,u)}else if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())this.cpFileSync(l,d,o,a,u);else if(l.isSymbolicLink()&&!u.dereference)this.cpSymlinkSync(d,o,a,u);else throw(0,w.createError)(\"EINVAL\",\"cp\",o)},this.linkSync=(o,a)=>{let u=(0,w.pathToFilename)(o),l=(0,w.pathToFilename)(a);this._core.link(u,l)},this.link=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this.wrapAsync(this._core.link,[l,d],u)},this.unlinkSync=o=>{let a=(0,w.pathToFilename)(o);this._core.unlink(a)},this.unlink=(o,a)=>{let u=(0,w.pathToFilename)(o);this.wrapAsync(this._core.unlink,[u],a)},this.symlinkSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this._core.symlink(l,d)},this.symlink=(o,a,u,l)=>{let d=(0,w.validateCallback)(typeof u==\"function\"?u:l),m=(0,w.pathToFilename)(o),y=(0,w.pathToFilename)(a);this.wrapAsync(this._core.symlink,[m,y],d)},this._lstat=(o,a=!1,u=!1)=>{let l;try{l=this._core.getLinkOrThrow(o,\"lstat\")}catch(d){if(d.code===\"ENOENT\"&&!u)return;throw d}return Pr.default.build(l.getNode(),a)},this.lstatSync=(o,a)=>{let{throwIfNoEntry:u=!0,bigint:l=!1}=(0,k.getStatOptions)(a);return this._lstat((0,w.pathToFilename)(o),l,u)},this.renameSync=(o,a)=>{let u=(0,w.pathToFilename)(o),l=(0,w.pathToFilename)(a);this._core.rename(u,l)},this.rename=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this.wrapAsync(this._core.rename,[l,d],u)},this.existsSync=o=>{try{return this._exists((0,w.pathToFilename)(o)).ok}catch{return!1}},this.exists=(o,a)=>{let u=(0,w.pathToFilename)(o);if(typeof a!=\"function\")throw Error(Q.ERRSTR.CB);Promise.resolve().then(()=>{try{a(this._exists(u).ok)}catch{a(!1)}})},this.accessSync=(o,a=us)=>{let u=(0,w.pathToFilename)(o);a=a|0,this._access(u,a)},this.access=(o,a,u)=>{let l=us,d;typeof a!=\"function\"?[l,d]=[a|0,(0,w.validateCallback)(u)]:d=a;let m=(0,w.pathToFilename)(o);this.wrapAsync(this._access,[m,l],d)},this.appendFileSync=(o,a,u)=>{let l=(0,k.getAppendFileOpts)(u);(!l.flag||(0,C.isFd)(o))&&(l.flag=\"a\"),this.writeFileSync(o,a,l)},this.appendFile=(o,a,u,l)=>{let[d,m]=(0,k.getAppendFileOptsAndCb)(u,l);(!d.flag||(0,C.isFd)(o))&&(d.flag=\"a\"),this.writeFile(o,a,d,m)},this._readdir=(o,a)=>{let u=(0,C.filenameToSteps)(o),l=this._core.getResolvedLinkOrThrow(o,\"scandir\"),d=l.getNode();if(!d.isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"scandir\",o);if(!d.canRead())throw(0,w.createError)(\"EACCES\",\"scandir\",o);let m=[];for(let b of l.children.keys()){let S=l.getChild(b);if(!(!S||b===\".\"||b===\"..\")&&(m.push(yf.default.build(S,a.encoding)),a.recursive&&S.children.size)){let v={...a,recursive:!0,withFileTypes:!0},R=this._readdir(S.getPath(),v);m.push(...R)}}if(!C.isWin&&a.encoding!==\"buffer\"&&m.sort((b,S)=>b.name<S.name?-1:b.name>S.name?1:0),a.withFileTypes)return m;let y=o;return C.isWin&&(y=y.replace(/\\\\/g,\"/\")),m.map(b=>{if(a.recursive){let S=(0,Q.pathJoin)(b.parentPath,b.name.toString());return C.isWin&&(S=S.replace(/\\\\/g,\"/\")),S.replace(y+gt.posix.sep,\"\")}return b.name})},this.readdirSync=(o,a)=>{let u=(0,k.getReaddirOptions)(a),l=(0,w.pathToFilename)(o);return this._readdir(l,u)},this.readdir=(o,a,u)=>{let[l,d]=(0,k.getReaddirOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._readdir,[m,l],d)},this._readlink=(o,a)=>{let l=this._core.getLinkOrThrow(o,\"readlink\").getNode();if(!l.isSymlink())throw(0,w.createError)(\"EINVAL\",\"readlink\",o);return(0,me.strToEncoding)(l.symlink,a)},this.readlinkSync=(o,a)=>{let u=(0,k.getDefaultOpts)(a),l=(0,w.pathToFilename)(o);return this._readlink(l,u.encoding)},this.readlink=(o,a,u)=>{let[l,d]=(0,k.getDefaultOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._readlink,[m,l.encoding],d)},this._fsync=o=>{this._core.getFileByFdOrThrow(o,\"fsync\")},this.fsyncSync=o=>{this._fsync(o)},this.fsync=(o,a)=>{this.wrapAsync(this._fsync,[o],a)},this._fdatasync=o=>{this._core.getFileByFdOrThrow(o,\"fdatasync\")},this.fdatasyncSync=o=>{this._fdatasync(o)},this.fdatasync=(o,a)=>{this.wrapAsync(this._fdatasync,[o],a)},this._ftruncate=(o,a)=>{this._core.ftruncate(o,a)},this.ftruncateSync=(o,a)=>{this._ftruncate(o,a)},this.ftruncate=(o,a,u)=>{let l=typeof a==\"number\"?a:0,d=(0,w.validateCallback)(typeof a==\"number\"?u:a);this.wrapAsync(this._ftruncate,[o,l],d)},this._truncate=(o,a)=>{let u=this.openSync(o,\"r+\");try{this.ftruncateSync(u,a)}finally{this.closeSync(u)}},this.truncateSync=(o,a)=>{if((0,C.isFd)(o))return this.ftruncateSync(o,a);this._truncate(o,a)},this.truncate=(o,a,u)=>{let l=typeof a==\"number\"?a:0,d=(0,w.validateCallback)(typeof a==\"number\"?u:a);if((0,C.isFd)(o))return this.ftruncate(o,l,d);this.wrapAsync(this._truncate,[o,l],d)},this._futimes=(o,a,u)=>{this._core.futimes(o,a,u)},this.futimesSync=(o,a,u)=>{this._futimes(o,K(a),K(u))},this.futimes=(o,a,u,l)=>{this.wrapAsync(this._futimes,[o,K(a),K(u)],l)},this._utimes=(o,a,u,l=!0)=>{this._core.utimes(o,a,u,l)},this.utimesSync=(o,a,u)=>{this._utimes((0,w.pathToFilename)(o),K(a),K(u),!0)},this.utimes=(o,a,u,l)=>{this.wrapAsync(this._utimes,[(0,w.pathToFilename)(o),K(a),K(u),!0],l)},this.lutimesSync=(o,a,u)=>{this._utimes((0,w.pathToFilename)(o),K(a),K(u),!1)},this.lutimes=(o,a,u,l)=>{this.wrapAsync(this._utimes,[(0,w.pathToFilename)(o),K(a),K(u),!1],l)},this.mkdirSync=(o,a)=>{let u=(0,k.getMkdirOptions)(a),l=(0,w.modeToNumber)(u.mode,511),d=(0,w.pathToFilename)(o);if(u.recursive)return this._core.mkdirp(d,l);this._core.mkdir(d,l)},this.mkdir=(o,a,u)=>{let l=(0,k.getMkdirOptions)(a),d=(0,w.validateCallback)(typeof a==\"function\"?a:u),m=(0,w.modeToNumber)(l.mode,511),y=(0,w.pathToFilename)(o);l.recursive?this.wrapAsync(this._core.mkdirp,[y,m],d):this.wrapAsync(this._core.mkdir,[y,m],d)},this._mkdtemp=(o,a,u=5)=>{let l=o+(0,w.genRndStr6)();try{return this._core.mkdir(l,511),(0,me.strToEncoding)(l,a)}catch(d){if(d.code===\"EEXIST\"){if(u>1)return this._mkdtemp(o,a,u-1);throw Error(\"Could not create temp dir.\")}else throw d}},this.mkdtempSync=(o,a)=>{let{encoding:u}=(0,k.getDefaultOpts)(a);if(!o||typeof o!=\"string\")throw new TypeError(\"filename prefix is required\");return(0,w.nullCheck)(o),this._mkdtemp(o,u)},this.mkdtemp=(o,a,u)=>{let[{encoding:l},d]=(0,k.getDefaultOptsAndCb)(a,u);if(!o||typeof o!=\"string\")throw new TypeError(\"filename prefix is required\");(0,w.nullCheck)(o)&&this.wrapAsync(this._mkdtemp,[o,l],d)},this.rmdirSync=(o,a)=>{let u=(0,k.getRmdirOptions)(a);this._core.rmdir((0,w.pathToFilename)(o),u.recursive)},this.rmdir=(o,a,u)=>{let l=(0,k.getRmdirOptions)(a),d=(0,w.validateCallback)(typeof a==\"function\"?a:u);this.wrapAsync(this._core.rmdir,[(0,w.pathToFilename)(o),l.recursive],d)},this.rmSync=(o,a)=>{this._core.rm((0,w.pathToFilename)(o),a?.force,a?.recursive)},this.rm=(o,a,u)=>{let[l,d]=(0,k.getRmOptsAndCb)(a,u);this.wrapAsync(this._core.rm,[(0,w.pathToFilename)(o),l?.force,l?.recursive],d)},this._fchmod=(o,a)=>{this._core.fchmod(o,a)},this.fchmodSync=(o,a)=>{this._fchmod(o,(0,w.modeToNumber)(a))},this.fchmod=(o,a,u)=>{this.wrapAsync(this._fchmod,[o,(0,w.modeToNumber)(a)],u)},this._chmod=(o,a,u=!0)=>{u?this._core.chmod(o,a):this._core.lchmod(o,a)},this.chmodSync=(o,a)=>{let u=(0,w.modeToNumber)(a),l=(0,w.pathToFilename)(o);this._chmod(l,u,!0)},this.chmod=(o,a,u)=>{let l=(0,w.modeToNumber)(a),d=(0,w.pathToFilename)(o);this.wrapAsync(this._chmod,[d,l],u)},this._lchmod=(o,a)=>{this._core.lchmod(o,a)},this.lchmodSync=(o,a)=>{let u=(0,w.modeToNumber)(a),l=(0,w.pathToFilename)(o);this._lchmod(l,u)},this.lchmod=(o,a,u)=>{let l=(0,w.modeToNumber)(a),d=(0,w.pathToFilename)(o);this.wrapAsync(this._lchmod,[d,l],u)},this._fchown=(o,a,u)=>{this._core.fchown(o,a,u)},this.fchownSync=(o,a,u)=>{nt(a),ot(u),this._fchown(o,a,u)},this.fchown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._fchown,[o,a,u],l)},this._chown=(o,a,u)=>{this._core.chown(o,a,u)},this.chownSync=(o,a,u)=>{nt(a),ot(u),this._chown((0,w.pathToFilename)(o),a,u)},this.chown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._chown,[(0,w.pathToFilename)(o),a,u],l)},this._lchown=(o,a,u)=>{this._core.lchown(o,a,u)},this.lchownSync=(o,a,u)=>{nt(a),ot(u),this._lchown((0,w.pathToFilename)(o),a,u)},this.lchown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._lchown,[(0,w.pathToFilename)(o),a,u],l)},this.statWatchers={},this.cpSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a),m={dereference:u?.dereference??!1,errorOnExist:u?.errorOnExist??!1,filter:u?.filter,force:u?.force??!0,mode:u?.mode??0,preserveTimestamps:u?.preserveTimestamps??!1,recursive:u?.recursive??!1,verbatimSymlinks:u?.verbatimSymlinks??!1};return this._cp(l,d,m)},this.cp=(o,a,u,l)=>{let d=(0,w.pathToFilename)(o),m=(0,w.pathToFilename)(a),y,b;typeof u==\"function\"?[y,b]=[{},u]:[y,b]=[u||{},l],(0,w.validateCallback)(b);let S={dereference:y?.dereference??!1,errorOnExist:y?.errorOnExist??!1,filter:y?.filter,force:y?.force??!0,mode:y?.mode??0,preserveTimestamps:y?.preserveTimestamps??!1,recursive:y?.recursive??!1,verbatimSymlinks:y?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[d,m,S],b)},this.openAsBlob=async(o,a)=>{let u=(0,w.pathToFilename)(o),l;try{l=this._core.getResolvedLinkOrThrow(u,\"open\")}catch(b){throw b&&typeof b==\"object\"&&b.code===\"ENOENT\"?new Sf.TypeError(\"ERR_INVALID_ARG_VALUE\"):b}let m=l.getNode().getBuffer(),y=a?.type||\"\";return new Blob([m],{type:y})},this.glob=(o,...a)=>{let[u,l]=a.length===1?[{},a[0]]:[a[0],a[1]];this.wrapAsync(this._globSync,[o,u||{}],l)},this.globSync=(o,a={})=>this._globSync(o,a),this._globSync=(o,a={})=>{let{globSync:u}=as();return u(this,o,a)},this._opendir=(o,a)=>{let u=this._core.getResolvedLinkOrThrow(o,\"scandir\");if(!u.getNode().isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"scandir\",o);return new Ef.Dir(u,a)},this.opendirSync=(o,a)=>{let u=(0,k.getOpendirOptions)(a),l=(0,w.pathToFilename)(o);return this._opendir(l,u)},this.opendir=(o,a,u)=>{let[l,d]=(0,k.getOpendirOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._opendir,[m,l],d)};let t=this;this.StatWatcher=class extends jr{constructor(){super(t)}};let r=ye;this.ReadStream=class extends r{constructor(...o){super(t,...o)}};let s=ee;this.WriteStream=class extends s{constructor(...o){super(t,...o)}},this.FSWatcher=class extends Dr{constructor(){super(t)}};let n=h((o,a)=>{let u=this._core.getResolvedLinkOrThrow(o,\"realpath\");return(0,me.strToEncoding)(u.getPath()||\"/\",a)},\"_realpath\"),c=h((o,a,u)=>{let[l,d]=(0,k.getRealpathOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);t.wrapAsync(n,[m,l.encoding],d)},\"realpathImpl\"),f=h((o,a)=>n((0,w.pathToFilename)(o),(0,k.getRealpathOptions)(a).encoding),\"realpathSyncImpl\");this.realpath=c,this.realpath.native=c,this.realpathSync=f,this.realpathSync.native=f}wrapAsync(e,t,r){(0,w.validateCallback)(r),Promise.resolve().then(()=>{let s;try{s=e.apply(this,t)}catch(n){r(n);return}r(null,s)})}reset(){this._core.reset()}toJSON(e,t={},r=!1,s=!1){return this._core.toJSON(e,t,r,s)}fromJSON(e,t){return this._core.fromJSON(e,t)}fromNestedJSON(e,t){return this._core.fromNestedJSON(e,t)}mountSync(e,t){this._core.fromJSON(t,e)}_write(e,t,r,s,n){return this._core.write(e,t,r,s,n)}writevBase(e,t,r){this._core.getFileByFdOrThrow(e,\"write\");let s=r??void 0;s===-1&&(s=void 0);let n=0;for(let c of t){let f=Ie.Buffer.from(c.buffer,c.byteOffset,c.byteLength),o=this._core.write(e,f,0,f.byteLength,s??null);if(s=void 0,n+=o,o<f.byteLength)break}return n}_copyFile(e,t,r){let s=this.readFileSync(e);if(r&Tf&&this.existsSync(t))throw(0,w.createError)(\"EEXIST\",\"copyfile\",e,t);if(r&Nf)throw(0,w.createError)(\"ENOSYS\",\"copyfile\",e,t);this._core.writeFile(t,s,Q.FLAGS.w,438)}isSrcSubdir(e,t){try{let r=(0,Q.pathNormalize)(e.startsWith(\"/\")?e:\"/\"+e),s=(0,Q.pathNormalize)(t.startsWith(\"/\")?t:\"/\"+t);if(r===s)return!0;let n=(0,Q.pathRelative)(r,s);return n===\"\"||!n.startsWith(\"..\")&&!(0,gt.isAbsolute)(n)}catch{return!1}}cpFileSync(e,t,r,s,n){if(t){if(n.errorOnExist)throw(0,w.createError)(\"EEXIST\",\"cp\",s);if(!n.force)return;this.unlinkSync(s)}this.copyFileSync(r,s,n.mode),n.preserveTimestamps&&this.utimesSync(s,e.atime,e.mtime),this.chmodSync(s,Number(e.mode))}cpDirSync(e,t,r,s,n){t||this.mkdirSync(s);let c=this.readdirSync(r);for(let f of c){let o=(0,Q.pathJoin)(r,String(f)),a=(0,Q.pathJoin)(s,String(f));n.filter&&!n.filter(o,a)||this._cp(o,a,n)}this.chmodSync(s,Number(e.mode))}cpSymlinkSync(e,t,r,s){let n=String(this.readlinkSync(t));!s.verbatimSymlinks&&!(0,gt.isAbsolute)(n)&&(n=Of((0,Q.pathDirname)(t),n)),e&&this.unlinkSync(r),this.symlinkSync(n,r)}lstat(e,t,r){let[{throwIfNoEntry:s=!0,bigint:n=!1},c]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this._lstat,[(0,w.pathToFilename)(e),n,s],c)}_stat(e,t=!1,r=!0){let s=this._core.getResolvedLinkResult(e,\"stat\");return s.ok?(0,C.Ok)(Pr.default.build(s.value.getNode(),t)):s.err.code===\"ENOENT\"&&!r?(0,C.Ok)(void 0):s}_statOrThrow(e,t=!1,r=!0){let s=this._stat(e,t,r);if(s.ok)return s.value;throw s.err.toError()}statSync(e,t){let{bigint:r=!0,throwIfNoEntry:s=!0}=(0,k.getStatOptions)(t),n=this._stat((0,w.pathToFilename)(e),r,s);if(n.ok)return n.value;throw n.err.toError()}stat(e,t,r){let[{bigint:s=!1,throwIfNoEntry:n=!0},c]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this._statOrThrow,[(0,w.pathToFilename)(e),s,n],c)}fstatBase(e,t=!1){let r=this._core.getFileByFd(e);if(!r)throw(0,w.createError)(\"EBADF\",\"fstat\");return Pr.default.build(r.node,t)}fstatSync(e,t){return this.fstatBase(e,(0,k.getStatOptions)(t).bigint)}fstat(e,t,r){let[s,n]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this.fstatBase,[e,s.bigint],n)}_exists(e){let t=this._stat(e);return t.ok?(0,C.Ok)(!0):t}_access(e,t){let s=this._core.getResolvedLinkOrThrow(e,\"access\").getNode();if(t!==us&&(t&xf&&!s.canRead()||t&vf&&!s.canWrite()||t&kf&&!s.canExecute()))throw(0,w.createError)(\"EACCES\",\"access\",e)}watchFile(e,t,r){let s=(0,w.pathToFilename)(e),n=t,c=r;if(typeof n==\"function\"&&(c=t,n=null),typeof c!=\"function\")throw new TypeError('The \"listener\" argument must be of type function. Received '+typeof c);let f=5007,o=!0,a=!1;if(n&&typeof n==\"object\"){if(n.interval!==void 0){if(typeof n.interval!=\"number\")throw new TypeError('The \"options.interval\" property must be of type number. Received '+typeof n.interval);if(!Number.isInteger(n.interval)||n.interval<0||n.interval>4294967295)throw new RangeError(`The value of \"options.interval\" is out of range. It must be an integer >= 0 && <= 4294967295. Received ${n.interval}`);f=n.interval}typeof n.persistent==\"boolean\"&&(o=n.persistent),typeof n.bigint==\"boolean\"&&(a=n.bigint)}let u=this.statWatchers[s];return u||(u=new this.StatWatcher,u.start(s,o,f,a),this.statWatchers[s]=u),u.addListener(\"change\",c),u}unwatchFile(e,t){let r=(0,w.pathToFilename)(e),s=this.statWatchers[r];s&&(typeof t==\"function\"?s.removeListener(\"change\",t):s.removeAllListeners(\"change\"),s.listenerCount(\"change\")===0&&(s.stop(),delete this.statWatchers[r]))}createReadStream(e,t){return new this.ReadStream(e,t)}createWriteStream(e,t){return new this.WriteStream(e,t)}watch(e,t,r){let s=(0,w.pathToFilename)(e),n=t;typeof t==\"function\"&&(r=t,n=null);let{persistent:c,recursive:f,encoding:o,signal:a,throwIfNoEntry:u,ignore:l}=(0,k.getDefaultOpts)(n);c===void 0&&(c=!0),f===void 0&&(f=!1);let d=new this.FSWatcher;try{d.start(s,c,f,o,l)}catch(m){if(u===!1&&m.code===\"ENOENT\")return d;throw m}if(r&&d.addListener(\"change\",r),a)if(a.aborted)d.close();else{let m=h(()=>d.close(),\"onAbort\");a.addEventListener(\"abort\",m,{once:!0}),d.once(\"close\",()=>a.removeEventListener(\"abort\",m))}return d}_statfs(e,t=!1){return this._core.getResolvedLinkOrThrow(e,\"statfs\"),wf.default.build(this._core,t)}statfsSync(e,t){let{bigint:r=!1}=(0,k.getStatfsOptions)(t);return this._statfs((0,w.pathToFilename)(e),r)}statfs(e,t,r){let[{bigint:s=!1},n]=(0,k.getStatfsOptsAndCb)(t,r);this.wrapAsync(this._statfs,[(0,w.pathToFilename)(e),s],n)}toTree(e={separator:gt.sep}){return(0,gf.toTreeSync)(this,e)}toSnapshot(e=\"/\"){return st.toSnapshotSync({fs:this,path:e})}fromSnapshot(e,t=\"/\"){return st.fromSnapshotSync(e,{fs:this,path:t})}toBinarySnapshot(e=\"/\"){return st.toBinarySnapshotSync({fs:this,path:e})}fromBinarySnapshot(e,t=\"/\"){return st.fromBinarySnapshotSync(e,{fs:this,path:t})}toJsonSnapshot(e=\"/\"){let t=st.toJsonSnapshotSync({fs:this,path:e});return Ie.Buffer.from(t).toString(\"utf8\")}fromJsonSnapshot(e,t=\"/\"){let r=new Uint8Array(Ie.Buffer.from(e,\"utf8\"));return st.fromJsonSnapshotSync(r,{fs:this,path:t})}};$.Volume=We;We.fromJSON=(i,e,t)=>new We(C.Superblock.fromJSON(i,e,t));We.fromNestedJSON=(i,e,t)=>new We(C.Superblock.fromNestedJSON(i,e,t));function Cf(i){i.emit(\"stop\")}h(Cf,\"emitStop\");function Ko(i){let e=new Pr.default,t=i?BigInt(0):0,r=new Date(0);return e.uid=t,e.gid=t,e.rdev=t,e.blksize=t,e.ino=t,e.size=t,e.blocks=t,e.atime=r,e.mtime=r,e.ctime=r,e.birthtime=r,e.atimeMs=t,e.mtimeMs=t,e.ctimeMs=t,e.birthtimeMs=t,i&&(e.atimeNs=t,e.mtimeNs=t,e.ctimeNs=t,e.birthtimeNs=t),e.dev=t,e.mode=t,e.nlink=t,e}h(Ko,\"buildZeroStats\");var jr=class extends Qo.EventEmitter{static{h(this,\"StatWatcher\")}constructor(e){super(),this.bigint=!1,this.fileExists=!1,this.stopped=!1,this.onInterval=()=>{if(this.stopped)return;let t=this.statSafe();if(t)if(this.fileExists){if(this.hasChanged(t)){let r=this.prev;this.prev=t,this.emit(\"change\",t,r)}}else{this.fileExists=!0;let r=this.prev;this.prev=t,this.emit(\"change\",t,r)}else this.fileExists&&(this.fileExists=!1,this.emit(\"change\",Ko(this.bigint),this.prev));this.loop()},this.vol=e}loop(){clearTimeout(this.timeoutRef),this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(e){let t=this.prev;return e.mtimeMs!==t.mtimeMs||e.ctimeMs!==t.ctimeMs||e.size!==t.size||e.ino!==t.ino||e.mode!==t.mode||e.uid!==t.uid||e.gid!==t.gid||e.nlink!==t.nlink}statSafe(){try{return this.bigint?this.vol.statSync(this.filename,{bigint:!0}):this.vol.statSync(this.filename)}catch{return null}}start(e,t=!0,r=5007,s=!1){this.filename=(0,w.pathToFilename)(e),this.setTimeout=t?setTimeout.bind(globalThis):Ho.default,this.interval=r,this.bigint=s;let n=this.statSafe();n?(this.prev=n,this.fileExists=!0):(this.prev=Ko(s),this.fileExists=!1,queueMicrotask(()=>{this.stopped||this.emit(\"change\",this.prev,this.prev)})),this.loop()}stop(){this.stopped=!0,clearTimeout(this.timeoutRef),queueMicrotask(()=>{Cf.call(this,this)})}ref(){this.setTimeout=setTimeout.bind(globalThis);let e=this.timeoutRef;return e&&typeof e==\"object\"&&typeof e.ref==\"function\"&&e.ref(),this}unref(){this.setTimeout=Ho.default;let e=this.timeoutRef;return e&&typeof e==\"object\"&&typeof e.unref==\"function\"&&e.unref(),this}};$.StatWatcher=jr;var G;function If(i){G=(0,Ie.bufferAllocUnsafe)(i),G.used=0}h(If,\"allocNewPool\");(0,$o.inherits)(ye,Br.Readable);$.ReadStream=ye;function ye(i,e,t){if(!(this instanceof ye))return new ye(i,e,t);if(this._vol=i,t=Object.assign({},(0,k.getOptions)(t,{})),t.highWaterMark===void 0&&(t.highWaterMark=64*1024),Br.Readable.call(this,t),this.path=(0,w.pathToFilename)(e),this._fileHandle=t.fd&&typeof t.fd!=\"number\"?t.fd:null,this.fd=t.fd===void 0?null:typeof t.fd!=\"number\"?t.fd.fd:t.fd,this.flags=t.flags===void 0?\"r\":t.flags,this.mode=t.mode===void 0?438:t.mode,this.start=t.start,this.end=t.end,this.autoClose=t.autoClose===void 0?!0:t.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!=\"number\")throw new TypeError('\"start\" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!=\"number\")throw new TypeError('\"end\" option must be a Number');if(this.start>this.end)throw new Error('\"start\" option must be <= \"end\" option');this.pos=this.start}typeof this.fd!=\"number\"&&this.open(),this.on(\"end\",function(){this.autoClose&&this.destroy&&this.destroy()})}h(ye,\"FsReadStream\");ye.prototype.open=function(){var i=this;this._vol.open(this.path,this.flags,this.mode,(e,t)=>{if(e){i.autoClose&&i.destroy&&i.destroy(),i.emit(\"error\",e);return}i.fd=t,i.emit(\"open\",t),i.read()})};ye.prototype._read=function(i){if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._read(i)});if(this.destroyed)return;(!G||G.length-G.used<Rf)&&If(this._readableState.highWaterMark);var e=G,t=Math.min(G.length-G.used,i),r=G.used;if(this.pos!==void 0&&(t=Math.min(this.end-this.pos+1,t)),t<=0)return this.push(null);var s=this;this._vol.read(this.fd,G,G.used,t,this.pos,n),this.pos!==void 0&&(this.pos+=t),G.used+=t;function n(c,f){if(c)s.autoClose&&s.destroy&&s.destroy(),s.emit(\"error\",c);else{var o=null;f>0&&(s.bytesRead+=f,o=e.slice(r,r+f)),s.push(o)}}h(n,\"onread\")};ye.prototype._destroy=function(i,e){this.close(t=>{e(i||t)})};ye.prototype.close=function(i){if(i&&this.once(\"close\",i),this.closed||typeof this.fd!=\"number\"){if(typeof this.fd!=\"number\"){this.once(\"open\",Xo);return}return queueMicrotask(()=>this.emit(\"close\"))}typeof this._readableState?.closed==\"boolean\"?this._readableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit(\"close\"),e=>this.emit(\"error\",e)):this._vol.close(this.fd,e=>{e?this.emit(\"error\",e):this.emit(\"close\")}),this.fd=null};function Xo(i){this.close()}h(Xo,\"closeOnOpen\");(0,$o.inherits)(ee,Br.Writable);$.WriteStream=ee;function ee(i,e,t){if(!(this instanceof ee))return new ee(i,e,t);if(this._vol=i,t=Object.assign({},(0,k.getOptions)(t,{})),Br.Writable.call(this,t),this.path=(0,w.pathToFilename)(e),this._fileHandle=t.fd&&typeof t.fd!=\"number\"?t.fd:null,this.fd=t.fd===void 0?null:typeof t.fd!=\"number\"?t.fd.fd:t.fd,this.flags=t.flags===void 0?\"w\":t.flags,this.mode=t.mode===void 0?438:t.mode,this.start=t.start,this.autoClose=t.autoClose===void 0?!0:!!t.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,this.start!==void 0){if(typeof this.start!=\"number\")throw new TypeError('\"start\" option must be a Number');if(this.start<0)throw new Error('\"start\" must be >= zero');this.pos=this.start}t.encoding&&this.setDefaultEncoding(t.encoding),typeof this.fd!=\"number\"&&this.open(),this.once(\"finish\",function(){this.autoClose&&this.close()})}h(ee,\"FsWriteStream\");ee.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(i,e){if(i){this.autoClose&&this.destroy&&this.destroy(),this.emit(\"error\",i);return}this.fd=e,this.pending=!1,this.emit(\"open\",e)}.bind(this))};ee.prototype._write=function(i,e,t){if(!(i instanceof Ie.Buffer||i instanceof Uint8Array))return this.emit(\"error\",new Error(\"Invalid data\"));if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._write(i,e,t)});var r=this;this._vol.write(this.fd,i,0,i.length,this.pos,(s,n)=>{if(s)return r.autoClose&&r.destroy&&r.destroy(),t(s);r.bytesWritten+=n,t()}),this.pos!==void 0&&(this.pos+=i.length)};ee.prototype._writev=function(i,e){if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._writev(i,e)});let t=this,r=i.length,s=new Array(r);for(var n=0,c=0;c<r;c++){var f=i[c].chunk;s[c]=f,n+=f.length}let o=Ie.Buffer.concat(s);this._vol.write(this.fd,o,0,o.length,this.pos,(a,u)=>{if(a)return t.destroy&&t.destroy(),e(a);t.bytesWritten+=u,e()}),this.pos!==void 0&&(this.pos+=n)};ee.prototype.close=function(i){if(i&&this.once(\"close\",i),this.closed||typeof this.fd!=\"number\"){if(typeof this.fd!=\"number\"){this.once(\"open\",Xo);return}return queueMicrotask(()=>this.emit(\"close\"))}typeof this._writableState?.closed==\"boolean\"?this._writableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit(\"close\"),e=>this.emit(\"error\",e)):this._vol.close(this.fd,e=>{e?this.emit(\"error\",e):this.emit(\"close\")}),this.fd=null};ee.prototype._destroy=ye.prototype._destroy;ee.prototype.destroySoon=ee.prototype.end;var Dr=class extends Qo.EventEmitter{static{h(this,\"FSWatcher\")}constructor(e){super(),this._filename=\"\",this._filenameEncoded=\"\",this._recursive=!1,this._encoding=me.ENCODING_UTF8,this._closed=!1,this._onEvent=t=>{switch(t.type){case 0:case 1:this._emit(\"rename\",t.steps);break;case 4:t.oldSteps&&this._emit(\"rename\",t.oldSteps),this._emit(\"rename\",t.steps);break;case 2:case 3:this._emit(\"change\",t.steps);break}},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=e}_emit(e,t){let r=t.length?t.join(Q.pathSep):this._watcher.link.getName();this._ignore&&this._ignore(r)||this.emit(\"change\",e,(0,me.strToEncoding)(r,this._encoding))}ref(){return this._watcher&&!this._closed&&!this._timer&&this._persist(),this}unref(){return clearTimeout(this._timer),this._timer=void 0,this}start(e,t=!0,r=!1,s=me.ENCODING_UTF8,n){this._filename=(0,w.pathToFilename)(e),this._steps=(0,C.filenameToSteps)(this._filename),this._filenameEncoded=(0,me.strToEncoding)(this._filename),this._recursive=r,this._encoding=s,this._ignore=n===void 0?void 0:(0,me.watchIgnoreToMatcher)(n);try{this._watcher=new C.CoreWatcher(this._vol._core,this._filename,{recursive:r})}catch(c){throw(0,w.createWatchError)(c.code,this._filename)}this._link=this._watcher.link,this._watcher.changes.listen(this._onEvent),t&&this._persist()}close(){clearTimeout(this._timer),this._timer=void 0,!(!this._watcher||this._closed)&&(this._closed=!0,this._watcher.close(),queueMicrotask(()=>this.emit(\"close\")))}};$.FSWatcher=Dr});var Go=g(N=>{\"use strict\";p();Object.defineProperty(N,\"__esModule\",{value:!0});N.fsCommonObjectsList=N.fsSynchronousApiList=N.fsCallbackApiList=N.FsPromises=N.Dir=N.FileHandle=N.StatFs=N.Dirent=N.Stats=N.toUnixTimestamp=N.FSWatcher=N.StatWatcher=N.Volume=void 0;var hs=(he(),ie(ue)),Mr=Zo();Object.defineProperty(N,\"Volume\",{enumerable:!0,get:h(function(){return Mr.Volume},\"get\")});Object.defineProperty(N,\"StatWatcher\",{enumerable:!0,get:h(function(){return Mr.StatWatcher},\"get\")});Object.defineProperty(N,\"FSWatcher\",{enumerable:!0,get:h(function(){return Mr.FSWatcher},\"get\")});Object.defineProperty(N,\"toUnixTimestamp\",{enumerable:!0,get:h(function(){return Mr.toUnixTimestamp},\"get\")});var Pf=gi();Object.defineProperty(N,\"Stats\",{enumerable:!0,get:h(function(){return Pf.default},\"get\")});var jf=rr();Object.defineProperty(N,\"Dirent\",{enumerable:!0,get:h(function(){return jf.default},\"get\")});var Df=Si();Object.defineProperty(N,\"StatFs\",{enumerable:!0,get:h(function(){return Df.default},\"get\")});var Bf=ki();Object.defineProperty(N,\"FileHandle\",{enumerable:!0,get:h(function(){return Bf.FileHandle},\"get\")});var Mf=ns();Object.defineProperty(N,\"Dir\",{enumerable:!0,get:h(function(){return Mf.Dir},\"get\")});var Lf=Ri();Object.defineProperty(N,\"FsPromises\",{enumerable:!0,get:h(function(){return Lf.FsPromises},\"get\")});hs.__exportStar(is(),N);hs.__exportStar(Fe(),N);hs.__exportStar(as(),N);var fs=B();Object.defineProperty(N,\"fsCallbackApiList\",{enumerable:!0,get:h(function(){return fs.fsCallbackApiList},\"get\")});Object.defineProperty(N,\"fsSynchronousApiList\",{enumerable:!0,get:h(function(){return fs.fsSynchronousApiList},\"get\")});Object.defineProperty(N,\"fsCommonObjectsList\",{enumerable:!0,get:h(function(){return fs.fsCommonObjectsList},\"get\")})});var tc=g((X,Lr)=>{\"use strict\";p();Object.defineProperty(X,\"__esModule\",{value:!0});X.memfs=X.fs=X.vol=X.Volume=void 0;X.createFsFromVolume=ls;var Pe=Go();Object.defineProperty(X,\"Volume\",{enumerable:!0,get:h(function(){return Pe.Volume},\"get\")});var ec=B(),{F_OK:qf,R_OK:Uf,W_OK:Wf,X_OK:Jf}=ec.constants;X.vol=new Pe.Volume;function ls(i){let e={F_OK:qf,R_OK:Uf,W_OK:Wf,X_OK:Jf,constants:ec.constants,Stats:Pe.Stats,Dirent:Pe.Dirent};for(let t of Pe.fsSynchronousApiList)typeof i[t]==\"function\"&&(e[t]=i[t].bind(i));for(let t of Pe.fsCallbackApiList)typeof i[t]==\"function\"&&(e[t]=i[t].bind(i));return e.StatWatcher=i.StatWatcher,e.FSWatcher=i.FSWatcher,e.WriteStream=i.WriteStream,e.ReadStream=i.ReadStream,e.promises=i.promises,typeof i.realpath==\"function\"&&(e.realpath=i.realpath.bind(i),typeof i.realpath.native==\"function\"&&(e.realpath.native=i.realpath.native.bind(i))),typeof i.realpathSync==\"function\"&&(e.realpathSync=i.realpathSync.bind(i),typeof i.realpathSync.native==\"function\"&&(e.realpathSync.native=i.realpathSync.native.bind(i))),e._toUnixTimestamp=Pe.toUnixTimestamp,e.__vol=i,e}h(ls,\"createFsFromVolume\");X.fs=ls(X.vol);var Vf=h((i={},e=\"/\")=>{let t=typeof e==\"string\"?{cwd:e}:e,r=t.cwd??(t.process?void 0:\"/\"),s=Pe.Volume.fromNestedJSON(i,r,{process:t.process});return{fs:ls(s),vol:s}},\"memfs\");X.memfs=Vf;Lr.exports={...Lr.exports,...X.fs};Lr.exports.semantic=!0});p();var qr=sc(tc(),1),gm=(0,qr.createFsFromVolume)(qr.Volume.fromJSON({\"/tmp\":null}));export{gm as a};\n",
|
|
5518
|
+
"engine/chunks/chunk-4Y6DVSR7.mjs": "import{b as Ro}from\"./chunk-2PJDHVIE.mjs\";import{a as Ue}from\"./chunk-QMKSQR7V.mjs\";import{a as o,b as So,c as T,d as Eo,f as q,i as re,j as ie,k as oe,l as le,o as p}from\"./chunk-IQ3JZKJB.mjs\";var I=T((qs,kn)=>{\"use strict\";p();var St=class extends Error{static{o(this,\"AggregateError\")}constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let n=\"\";for(let r=0;r<t.length;r++)n+=` ${t[r].stack}\n`;super(n),this.name=\"AggregateError\",this.errors=t}};kn.exports={AggregateError:St,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},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(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.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(e,t,n){return e.set(t,n)},Boolean,Uint8Array}});var U=T((Ps,Un)=>{\"use strict\";p();var{SymbolAsyncIterator:Nn,SymbolIterator:qn,SymbolFor:ae}=I(),Dn=ae(\"nodejs.stream.destroyed\"),Ln=ae(\"nodejs.stream.errored\"),Et=ae(\"nodejs.stream.readable\"),Rt=ae(\"nodejs.stream.writable\"),Pn=ae(\"nodejs.stream.disturbed\"),Ao=ae(\"nodejs.webstream.isClosedPromise\"),mo=ae(\"nodejs.webstream.controllerErrorFunction\");function He(e,t=!1){var n;return!!(e&&typeof e.pipe==\"function\"&&typeof e.on==\"function\"&&(!t||typeof e.pause==\"function\"&&typeof e.resume==\"function\")&&(!e._writableState||((n=e._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!e._writableState||e._readableState))}o(He,\"isReadableNodeStream\");function Ge(e){var t;return!!(e&&typeof e.write==\"function\"&&typeof e.on==\"function\"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}o(Ge,\"isWritableNodeStream\");function To(e){return!!(e&&typeof e.pipe==\"function\"&&e._readableState&&typeof e.on==\"function\"&&typeof e.write==\"function\")}o(To,\"isDuplexNodeStream\");function B(e){return e&&(e._readableState||e._writableState||typeof e.write==\"function\"&&typeof e.on==\"function\"||typeof e.pipe==\"function\"&&typeof e.on==\"function\")}o(B,\"isNodeStream\");function On(e){return!!(e&&!B(e)&&typeof e.pipeThrough==\"function\"&&typeof e.getReader==\"function\"&&typeof e.cancel==\"function\")}o(On,\"isReadableStream\");function Wn(e){return!!(e&&!B(e)&&typeof e.getWriter==\"function\"&&typeof e.abort==\"function\")}o(Wn,\"isWritableStream\");function xn(e){return!!(e&&!B(e)&&typeof e.readable==\"object\"&&typeof e.writable==\"object\")}o(xn,\"isTransformStream\");function Io(e){return On(e)||Wn(e)||xn(e)}o(Io,\"isWebStream\");function Mo(e,t){return e==null?!1:t===!0?typeof e[Nn]==\"function\":t===!1?typeof e[qn]==\"function\":typeof e[Nn]==\"function\"||typeof e[qn]==\"function\"}o(Mo,\"isIterable\");function Ve(e){if(!B(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[Dn]||r!=null&&r.destroyed)}o(Ve,\"isDestroyed\");function Cn(e){if(!Ge(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended!=\"boolean\"?null:t.ended}o(Cn,\"isWritableEnded\");function ko(e,t){if(!Ge(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished!=\"boolean\"?null:!!(n.finished||t===!1&&n.ended===!0&&n.length===0)}o(ko,\"isWritableFinished\");function No(e){if(!He(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended!=\"boolean\"?null:t.ended}o(No,\"isReadableEnded\");function $n(e,t){if(!He(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!=\"boolean\"?null:!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0)}o($n,\"isReadableFinished\");function jn(e){return e&&e[Et]!=null?e[Et]:typeof e?.readable!=\"boolean\"?null:Ve(e)?!1:He(e)&&e.readable&&!$n(e)}o(jn,\"isReadable\");function Fn(e){return e&&e[Rt]!=null?e[Rt]:typeof e?.writable!=\"boolean\"?null:Ve(e)?!1:Ge(e)&&e.writable&&!Cn(e)}o(Fn,\"isWritable\");function qo(e,t){return B(e)?Ve(e)?!0:!(t?.readable!==!1&&jn(e)||t?.writable!==!1&&Fn(e)):null}o(qo,\"isFinished\");function Do(e){var t,n;return B(e)?e.writableErrored?e.writableErrored:(t=(n=e._writableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}o(Do,\"isWritableErrored\");function Lo(e){var t,n;return B(e)?e.readableErrored?e.readableErrored:(t=(n=e._readableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}o(Lo,\"isReadableErrored\");function Po(e){if(!B(e))return null;if(typeof e.closed==\"boolean\")return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==\"boolean\"||typeof n?.closed==\"boolean\"?t?.closed||n?.closed:typeof e._closed==\"boolean\"&&vn(e)?e._closed:null}o(Po,\"isClosed\");function vn(e){return typeof e._closed==\"boolean\"&&typeof e._defaultKeepAlive==\"boolean\"&&typeof e._removedConnection==\"boolean\"&&typeof e._removedContLen==\"boolean\"}o(vn,\"isOutgoingMessage\");function Bn(e){return typeof e._sent100==\"boolean\"&&vn(e)}o(Bn,\"isServerResponse\");function Oo(e){var t;return typeof e._consuming==\"boolean\"&&typeof e._dumped==\"boolean\"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}o(Oo,\"isServerRequest\");function Wo(e){if(!B(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&Bn(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}o(Wo,\"willEmitClose\");function xo(e){var t;return!!(e&&((t=e[Pn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}o(xo,\"isDisturbed\");function Co(e){var t,n,r,i,l,a,u,s,f,d;return!!(e&&((t=(n=(r=(i=(l=(a=e[Ln])!==null&&a!==void 0?a:e.readableErrored)!==null&&l!==void 0?l:e.writableErrored)!==null&&i!==void 0?i:(u=e._readableState)===null||u===void 0?void 0:u.errorEmitted)!==null&&r!==void 0?r:(s=e._writableState)===null||s===void 0?void 0:s.errorEmitted)!==null&&n!==void 0?n:(f=e._readableState)===null||f===void 0?void 0:f.errored)!==null&&t!==void 0?t:!((d=e._writableState)===null||d===void 0)&&d.errored))}o(Co,\"isErrored\");Un.exports={isDestroyed:Ve,kIsDestroyed:Dn,isDisturbed:xo,kIsDisturbed:Pn,isErrored:Co,kIsErrored:Ln,isReadable:jn,kIsReadable:Et,kIsClosedPromise:Ao,kControllerErrorFunction:mo,kIsWritable:Rt,isClosed:Po,isDuplexNodeStream:To,isFinished:qo,isIterable:Mo,isReadableNodeStream:He,isReadableStream:On,isReadableEnded:No,isReadableFinished:$n,isReadableErrored:Lo,isNodeStream:B,isWebStream:Io,isWritable:Fn,isWritableNodeStream:Ge,isWritableStream:Wn,isWritableEnded:Cn,isWritableFinished:ko,isWritableErrored:Do,isServerRequest:Oo,isServerResponse:Bn,willEmitClose:Wo,isTransformStream:xn}});var At=T((xs,Hn)=>{\"use strict\";p();Hn.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[n,r]){let i=t.shift();return r===\"f\"?i.toFixed(6):r===\"j\"?JSON.stringify(i):r===\"s\"&&typeof i==\"object\"?`${i.constructor!==Object?i.constructor.name:\"\"} {}`.trim():i.toString()})},inspect(e){switch(typeof e){case\"string\":if(e.includes(\"'\"))if(e.includes('\"')){if(!e.includes(\"`\")&&!e.includes(\"${\"))return`\\`${e}\\``}else return`\"${e}\"`;return`'${e}'`;case\"number\":return isNaN(e)?\"NaN\":Object.is(e,-0)?String(e):e;case\"bigint\":return`${String(e)}n`;case\"boolean\":case\"undefined\":return String(e);case\"object\":return\"{}\"}}}});var P=T(($s,Yn)=>{\"use strict\";p();var{format:$o,inspect:Ye}=At(),{AggregateError:jo}=I(),Fo=globalThis.AggregateError||jo,vo=Symbol(\"kIsNodeError\"),Bo=[\"string\",\"function\",\"number\",\"object\",\"Function\",\"Object\",\"boolean\",\"bigint\",\"symbol\"],Uo=/^([A-Z][a-z0-9]*)+$/,Ho=\"__node_internal_\",Ke={};function fe(e,t){if(!e)throw new Ke.ERR_INTERNAL_ASSERTION(t)}o(fe,\"assert\");function Gn(e){let t=\"\",n=e.length,r=e[0]===\"-\"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}o(Gn,\"addNumericalSeparator\");function Go(e,t,n){if(typeof t==\"function\")return fe(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);let r=(t.match(/%[dfijoOs]/g)||[]).length;return fe(r===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?t:$o(t,...n)}o(Go,\"getMessage\");function L(e,t,n){n||(n=Error);class r extends n{static{o(this,\"NodeError\")}constructor(...l){super(Go(e,t,l))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[vo]=!0,Ke[e]=r}o(L,\"E\");function Vn(e){let t=Ho+e.name;return Object.defineProperty(e,\"name\",{value:t}),e}o(Vn,\"hideStackFrames\");function Vo(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new Fo([t,e],t.message);return n.code=t.code,n}return e||t}o(Vo,\"aggregateTwoErrors\");var mt=class extends Error{static{o(this,\"AbortError\")}constructor(t=\"The operation was aborted\",n=void 0){if(n!==void 0&&typeof n!=\"object\")throw new Ke.ERR_INVALID_ARG_TYPE(\"options\",\"Object\",n);super(t,n),this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};L(\"ERR_ASSERTION\",\"%s\",Error);L(\"ERR_INVALID_ARG_TYPE\",(e,t,n)=>{fe(typeof e==\"string\",\"'name' must be a string\"),Array.isArray(t)||(t=[t]);let r=\"The \";e.endsWith(\" argument\")?r+=`${e} `:r+=`\"${e}\" ${e.includes(\".\")?\"property\":\"argument\"} `,r+=\"must be \";let i=[],l=[],a=[];for(let s of t)fe(typeof s==\"string\",\"All expected entries have to be of type string\"),Bo.includes(s)?i.push(s.toLowerCase()):Uo.test(s)?l.push(s):(fe(s!==\"object\",'The value \"object\" should be written as \"Object\"'),a.push(s));if(l.length>0){let s=i.indexOf(\"object\");s!==-1&&(i.splice(i,s,1),l.push(\"Object\"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let s=i.pop();r+=`one of type ${i.join(\", \")}, or ${s}`}}(l.length>0||a.length>0)&&(r+=\" or \")}if(l.length>0){switch(l.length){case 1:r+=`an instance of ${l[0]}`;break;case 2:r+=`an instance of ${l[0]} or ${l[1]}`;break;default:{let s=l.pop();r+=`an instance of ${l.join(\", \")}, or ${s}`}}a.length>0&&(r+=\" or \")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(r+=\"an \"),r+=`${a[0]}`;break;case 2:r+=`one of ${a[0]} or ${a[1]}`;break;default:{let s=a.pop();r+=`one of ${a.join(\", \")}, or ${s}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n==\"function\"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n==\"object\"){var u;if((u=n.constructor)!==null&&u!==void 0&&u.name)r+=`. Received an instance of ${n.constructor.name}`;else{let s=Ye(n,{depth:-1});r+=`. Received ${s}`}}else{let s=Ye(n,{colors:!1});s.length>25&&(s=`${s.slice(0,25)}...`),r+=`. Received type ${typeof n} (${s})`}return r},TypeError);L(\"ERR_INVALID_ARG_VALUE\",(e,t,n=\"is invalid\")=>{let r=Ye(t);return r.length>128&&(r=r.slice(0,128)+\"...\"),`The ${e.includes(\".\")?\"property\":\"argument\"} '${e}' ${n}. Received ${r}`},TypeError);L(\"ERR_INVALID_RETURN_VALUE\",(e,t,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${e} to be returned from the \"${t}\" function but got ${i}.`},TypeError);L(\"ERR_MISSING_ARGS\",(...e)=>{fe(e.length>0,\"At least one arg needs to be specified\");let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(r=>`\"${r}\"`).join(\" or \"),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(\", \")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError);L(\"ERR_OUT_OF_RANGE\",(e,t,n)=>{fe(t,'Missing \"range\" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=Gn(String(n));else if(typeof n==\"bigint\"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=Gn(r)),r+=\"n\"}else r=Ye(n);return`The value of \"${e}\" is out of range. It must be ${t}. Received ${r}`},RangeError);L(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\",Error);L(\"ERR_METHOD_NOT_IMPLEMENTED\",\"The %s method is not implemented\",Error);L(\"ERR_STREAM_ALREADY_FINISHED\",\"Cannot call %s after a stream was finished\",Error);L(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\",Error);L(\"ERR_STREAM_DESTROYED\",\"Cannot call %s after a stream was destroyed\",Error);L(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);L(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\",Error);L(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\",Error);L(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\",Error);L(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\",Error);L(\"ERR_UNKNOWN_ENCODING\",\"Unknown encoding: %s\",TypeError);Yn.exports={AbortError:mt,aggregateTwoErrors:Vn(Vo),hideStackFrames:Vn,codes:Ke}});var we={};Eo(we,{AbortController:()=>Ko,AbortSignal:()=>zo,default:()=>Yo});import{default as Yo,AbortController as Ko,AbortSignal as zo}from\"./../globals/abort.mjs\";var ge=So(()=>{p()});var W=T((Us,It)=>{\"use strict\";p();var Xo=(ie(),q(re)),{format:Jo,inspect:Qo}=At(),{codes:{ERR_INVALID_ARG_TYPE:Tt}}=P(),{kResistStopPropagation:Zo,AggregateError:el,SymbolDispose:tl}=I(),nl=globalThis.AbortSignal||(ge(),q(we)).AbortSignal,rl=globalThis.AbortController||(ge(),q(we)).AbortController,il=Object.getPrototypeOf(async function(){}).constructor,Kn=globalThis.Blob||Xo.Blob,ol=o(typeof Kn<\"u\"?function(t){return t instanceof Kn}:function(t){return!1},\"isBlob\"),zn=o((e,t)=>{if(e!==void 0&&(e===null||typeof e!=\"object\"||!(\"aborted\"in e)))throw new Tt(t,\"AbortSignal\",e)},\"validateAbortSignal\"),ll=o((e,t)=>{if(typeof e!=\"function\")throw new Tt(t,\"Function\",e)},\"validateFunction\");It.exports={AggregateError:el,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:o(function(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}},\"createDeferredPromise\"),promisify(e){return new Promise((t,n)=>{e((r,...i)=>r?n(r):t(...i))})},debuglog(){return function(){}},format:Jo,inspect:Qo,types:{isAsyncFunction(e){return e instanceof il},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:ol,deprecate(e,t){return e},addAbortListener:Ue().addAbortListener||o(function(t,n){if(t===void 0)throw new Tt(\"signal\",\"AbortSignal\",t);zn(t,\"signal\"),ll(n,\"listener\");let r;return t.aborted?queueMicrotask(()=>n()):(t.addEventListener(\"abort\",n,{__proto__:null,once:!0,[Zo]:!0}),r=o(()=>{t.removeEventListener(\"abort\",n)},\"removeEventListener\")),{__proto__:null,[tl](){var i;(i=r)===null||i===void 0||i()}}},\"addAbortListener\"),AbortSignalAny:nl.any||o(function(t){if(t.length===1)return t[0];let n=new rl,r=o(()=>n.abort(),\"abort\");return t.forEach(i=>{zn(i,\"signals\"),i.addEventListener(\"abort\",r,{once:!0})}),n.signal.addEventListener(\"abort\",()=>{t.forEach(i=>i.removeEventListener(\"abort\",r))},{once:!0}),n.signal},\"AbortSignalAny\")};It.exports.promisify.custom=Symbol.for(\"nodejs.util.promisify.custom\")});var Ee=T((Vs,or)=>{\"use strict\";p();var{ArrayIsArray:kt,ArrayPrototypeIncludes:Zn,ArrayPrototypeJoin:er,ArrayPrototypeMap:al,NumberIsInteger:Nt,NumberIsNaN:fl,NumberMAX_SAFE_INTEGER:ul,NumberMIN_SAFE_INTEGER:sl,NumberParseInt:dl,ObjectPrototypeHasOwnProperty:cl,RegExpPrototypeExec:tr,String:hl,StringPrototypeToUpperCase:bl,StringPrototypeTrim:pl}=I(),{hideStackFrames:$,codes:{ERR_SOCKET_BAD_PORT:_l,ERR_INVALID_ARG_TYPE:O,ERR_INVALID_ARG_VALUE:Se,ERR_OUT_OF_RANGE:ue,ERR_UNKNOWN_SIGNAL:Xn}}=P(),{normalizeEncoding:yl}=W(),{isAsyncFunction:wl,isArrayBufferView:gl}=W().types,Jn={};function Sl(e){return e===(e|0)}o(Sl,\"isInt32\");function El(e){return e===e>>>0}o(El,\"isUint32\");var Rl=/^[0-7]+$/,Al=\"must be a 32-bit unsigned integer or an octal string\";function ml(e,t,n){if(typeof e>\"u\"&&(e=n),typeof e==\"string\"){if(tr(Rl,e)===null)throw new Se(t,e,Al);e=dl(e,8)}return nr(e,t),e}o(ml,\"parseFileMode\");var Tl=$((e,t,n=sl,r=ul)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);if(e<n||e>r)throw new ue(t,`>= ${n} && <= ${r}`,e)}),Il=$((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);if(e<n||e>r)throw new ue(t,`>= ${n} && <= ${r}`,e)}),nr=$((e,t,n=!1)=>{if(typeof e!=\"number\")throw new O(t,\"number\",e);if(!Nt(e))throw new ue(t,\"an integer\",e);let r=n?1:0,i=4294967295;if(e<r||e>i)throw new ue(t,`>= ${r} && <= ${i}`,e)});function qt(e,t){if(typeof e!=\"string\")throw new O(t,\"string\",e)}o(qt,\"validateString\");function Ml(e,t,n=void 0,r){if(typeof e!=\"number\")throw new O(t,\"number\",e);if(n!=null&&e<n||r!=null&&e>r||(n!=null||r!=null)&&fl(e))throw new ue(t,`${n!=null?`>= ${n}`:\"\"}${n!=null&&r!=null?\" && \":\"\"}${r!=null?`<= ${r}`:\"\"}`,e)}o(Ml,\"validateNumber\");var kl=$((e,t,n)=>{if(!Zn(n,e)){let i=\"must be one of: \"+er(al(n,l=>typeof l==\"string\"?`'${l}'`:hl(l)),\", \");throw new Se(t,e,i)}});function rr(e,t){if(typeof e!=\"boolean\")throw new O(t,\"boolean\",e)}o(rr,\"validateBoolean\");function Mt(e,t,n){return e==null||!cl(e,t)?n:e[t]}o(Mt,\"getOwnPropertyValueOrDefault\");var Nl=$((e,t,n=null)=>{let r=Mt(n,\"allowArray\",!1),i=Mt(n,\"allowFunction\",!1);if(!Mt(n,\"nullable\",!1)&&e===null||!r&&kt(e)||typeof e!=\"object\"&&(!i||typeof e!=\"function\"))throw new O(t,\"Object\",e)}),ql=$((e,t)=>{if(e!=null&&typeof e!=\"object\"&&typeof e!=\"function\")throw new O(t,\"a dictionary\",e)}),ze=$((e,t,n=0)=>{if(!kt(e))throw new O(t,\"Array\",e);if(e.length<n){let r=`must be longer than ${n}`;throw new Se(t,e,r)}});function Dl(e,t){ze(e,t);for(let n=0;n<e.length;n++)qt(e[n],`${t}[${n}]`)}o(Dl,\"validateStringArray\");function Ll(e,t){ze(e,t);for(let n=0;n<e.length;n++)rr(e[n],`${t}[${n}]`)}o(Ll,\"validateBooleanArray\");function Pl(e,t){ze(e,t);for(let n=0;n<e.length;n++){let r=e[n],i=`${t}[${n}]`;if(r==null)throw new O(i,\"AbortSignal\",r);ir(r,i)}}o(Pl,\"validateAbortSignalArray\");function Ol(e,t=\"signal\"){if(qt(e,t),Jn[e]===void 0)throw Jn[bl(e)]!==void 0?new Xn(e+\" (signals must use all capital letters)\"):new Xn(e)}o(Ol,\"validateSignalName\");var Wl=$((e,t=\"buffer\")=>{if(!gl(e))throw new O(t,[\"Buffer\",\"TypedArray\",\"DataView\"],e)});function xl(e,t){let n=yl(t),r=e.length;if(n===\"hex\"&&r%2!==0)throw new Se(\"encoding\",t,`is invalid for data of length ${r}`)}o(xl,\"validateEncoding\");function Cl(e,t=\"Port\",n=!0){if(typeof e!=\"number\"&&typeof e!=\"string\"||typeof e==\"string\"&&pl(e).length===0||+e!==+e>>>0||e>65535||e===0&&!n)throw new _l(t,e,n);return e|0}o(Cl,\"validatePort\");var ir=$((e,t)=>{if(e!==void 0&&(e===null||typeof e!=\"object\"||!(\"aborted\"in e)))throw new O(t,\"AbortSignal\",e)}),$l=$((e,t)=>{if(typeof e!=\"function\")throw new O(t,\"Function\",e)}),jl=$((e,t)=>{if(typeof e!=\"function\"||wl(e))throw new O(t,\"Function\",e)}),Fl=$((e,t)=>{if(e!==void 0)throw new O(t,\"undefined\",e)});function vl(e,t,n){if(!Zn(n,e))throw new O(t,`('${er(n,\"|\")}')`,e)}o(vl,\"validateUnion\");var Bl=/^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/;function Qn(e,t){if(typeof e>\"u\"||!tr(Bl,e))throw new Se(t,e,'must be an array or string of format \"</styles.css>; rel=preload; as=style\"')}o(Qn,\"validateLinkHeaderFormat\");function Ul(e){if(typeof e==\"string\")return Qn(e,\"hints\"),e;if(kt(e)){let t=e.length,n=\"\";if(t===0)return n;for(let r=0;r<t;r++){let i=e[r];Qn(i,\"hints\"),n+=i,r!==t-1&&(n+=\", \")}return n}throw new Se(\"hints\",e,'must be an array or string of format \"</styles.css>; rel=preload; as=style\"')}o(Ul,\"validateLinkHeaderValue\");or.exports={isInt32:Sl,isUint32:El,parseFileMode:ml,validateArray:ze,validateStringArray:Dl,validateBooleanArray:Ll,validateAbortSignalArray:Pl,validateBoolean:rr,validateBuffer:Wl,validateDictionary:ql,validateEncoding:xl,validateFunction:$l,validateInt32:Il,validateInteger:Tl,validateNumber:Ml,validateObject:Nl,validateOneOf:kl,validatePlainFunction:jl,validatePort:Cl,validateSignalName:Ol,validateString:qt,validateUint32:nr,validateUndefined:Fl,validateUnion:vl,validateAbortSignal:ir,validateLinkHeaderValue:Ul}});var K=T((zs,Wt)=>{\"use strict\";p();var Z=(le(),q(oe)),{AbortError:br,codes:Hl}=P(),{ERR_INVALID_ARG_TYPE:Gl,ERR_STREAM_PREMATURE_CLOSE:lr}=Hl,{kEmptyObject:Lt,once:Pt}=W(),{validateAbortSignal:Vl,validateFunction:Yl,validateObject:Kl,validateBoolean:zl}=Ee(),{Promise:Xl,PromisePrototypeThen:Jl,SymbolDispose:pr}=I(),{isClosed:Ql,isReadable:ar,isReadableNodeStream:Dt,isReadableStream:Zl,isReadableFinished:fr,isReadableErrored:ur,isWritable:sr,isWritableNodeStream:dr,isWritableStream:ea,isWritableFinished:cr,isWritableErrored:hr,isNodeStream:ta,willEmitClose:na,kIsClosedPromise:ra}=U(),Re;function ia(e){return e.setHeader&&typeof e.abort==\"function\"}o(ia,\"isRequest\");var Ot=o(()=>{},\"nop\");function _r(e,t,n){var r,i;if(arguments.length===2?(n=t,t=Lt):t==null?t=Lt:Kl(t,\"options\"),Yl(n,\"callback\"),Vl(t.signal,\"options.signal\"),n=Pt(n),Zl(e)||ea(e))return oa(e,t,n);if(!ta(e))throw new Gl(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],e);let l=(r=t.readable)!==null&&r!==void 0?r:Dt(e),a=(i=t.writable)!==null&&i!==void 0?i:dr(e),u=e._writableState,s=e._readableState,f=o(()=>{e.writable||_()},\"onlegacyfinish\"),d=na(e)&&Dt(e)===l&&dr(e)===a,c=cr(e,!1),_=o(()=>{c=!0,e.destroyed&&(d=!1),!(d&&(!e.readable||l))&&(!l||h)&&n.call(e)},\"onfinish\"),h=fr(e,!1),E=o(()=>{h=!0,e.destroyed&&(d=!1),!(d&&(!e.writable||a))&&(!a||c)&&n.call(e)},\"onend\"),b=o(k=>{n.call(e,k)},\"onerror\"),R=Ql(e),w=o(()=>{R=!0;let k=hr(e)||ur(e);if(k&&typeof k!=\"boolean\")return n.call(e,k);if(l&&!h&&Dt(e,!0)&&!fr(e,!1))return n.call(e,new lr);if(a&&!c&&!cr(e,!1))return n.call(e,new lr);n.call(e)},\"onclose\"),A=o(()=>{R=!0;let k=hr(e)||ur(e);if(k&&typeof k!=\"boolean\")return n.call(e,k);n.call(e)},\"onclosed\"),N=o(()=>{e.req.on(\"finish\",_)},\"onrequest\");ia(e)?(e.on(\"complete\",_),d||e.on(\"abort\",w),e.req?N():e.on(\"request\",N)):a&&!u&&(e.on(\"end\",f),e.on(\"close\",f)),!d&&typeof e.aborted==\"boolean\"&&e.on(\"aborted\",w),e.on(\"end\",E),e.on(\"finish\",_),t.error!==!1&&e.on(\"error\",b),e.on(\"close\",w),R?Z.nextTick(w):u!=null&&u.errorEmitted||s!=null&&s.errorEmitted?d||Z.nextTick(A):(!l&&(!d||ar(e))&&(c||sr(e)===!1)||!a&&(!d||sr(e))&&(h||ar(e)===!1)||s&&e.req&&e.aborted)&&Z.nextTick(A);let S=o(()=>{n=Ot,e.removeListener(\"aborted\",w),e.removeListener(\"complete\",_),e.removeListener(\"abort\",w),e.removeListener(\"request\",N),e.req&&e.req.removeListener(\"finish\",_),e.removeListener(\"end\",f),e.removeListener(\"close\",f),e.removeListener(\"finish\",_),e.removeListener(\"end\",E),e.removeListener(\"error\",b),e.removeListener(\"close\",w)},\"cleanup\");if(t.signal&&!R){let k=o(()=>{let ne=n;S(),ne.call(e,new br(void 0,{cause:t.signal.reason}))},\"abort\");if(t.signal.aborted)Z.nextTick(k);else{Re=Re||W().addAbortListener;let ne=Re(t.signal,k),C=n;n=Pt((...ye)=>{ne[pr](),C.apply(e,ye)})}}return S}o(_r,\"eos\");function oa(e,t,n){let r=!1,i=Ot;if(t.signal)if(i=o(()=>{r=!0,n.call(e,new br(void 0,{cause:t.signal.reason}))},\"abort\"),t.signal.aborted)Z.nextTick(i);else{Re=Re||W().addAbortListener;let a=Re(t.signal,i),u=n;n=Pt((...s)=>{a[pr](),u.apply(e,s)})}let l=o((...a)=>{r||Z.nextTick(()=>n.apply(e,a))},\"resolverFn\");return Jl(e[ra].promise,l,l),Ot}o(oa,\"eosWeb\");function la(e,t){var n;let r=!1;return t===null&&(t=Lt),(n=t)!==null&&n!==void 0&&n.cleanup&&(zl(t.cleanup,\"cleanup\"),r=t.cleanup),new Xl((i,l)=>{let a=_r(e,t,u=>{r&&a(),u?l(u):i()})})}o(la,\"finished\");Wt.exports=_r;Wt.exports.finished=la});var se=T((Qs,mr)=>{\"use strict\";p();var H=(le(),q(oe)),{aggregateTwoErrors:aa,codes:{ERR_MULTIPLE_CALLBACK:fa},AbortError:ua}=P(),{Symbol:gr}=I(),{kIsDestroyed:sa,isDestroyed:da,isFinished:ca,isServerRequest:ha}=U(),Sr=gr(\"kDestroy\"),xt=gr(\"kConstruct\");function Er(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}o(Er,\"checkError\");function ba(e,t){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof t==\"function\"&&t(),this):(Er(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?yr(this,e,t):this.once(Sr,function(l){yr(this,aa(l,e),t)}),this)}o(ba,\"destroy\");function yr(e,t,n){let r=!1;function i(l){if(r)return;r=!0;let a=e._readableState,u=e._writableState;Er(l,u,a),u&&(u.closed=!0),a&&(a.closed=!0),typeof n==\"function\"&&n(l),l?H.nextTick(pa,e,l):H.nextTick(Rr,e)}o(i,\"onDestroy\");try{e._destroy(t||null,i)}catch(l){i(l)}}o(yr,\"_destroy\");function pa(e,t){Ct(e,t),Rr(e)}o(pa,\"emitErrorCloseNT\");function Rr(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit(\"close\")}o(Rr,\"emitCloseNT\");function Ct(e,t){let n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(\"error\",t))}o(Ct,\"emitErrorNT\");function _a(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}o(_a,\"undestroy\");function $t(e,t,n){let r=e._readableState,i=e._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),r&&!r.errored&&(r.errored=t),n?H.nextTick(Ct,e,t):Ct(e,t))}o($t,\"errorOrDestroy\");function ya(e,t){if(typeof e._construct!=\"function\")return;let n=e._readableState,r=e._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),e.once(xt,t),!(e.listenerCount(xt)>1)&&H.nextTick(wa,e)}o(ya,\"construct\");function wa(e){let t=!1;function n(r){if(t){$t(e,r??new fa);return}t=!0;let i=e._readableState,l=e._writableState,a=l||i;i&&(i.constructed=!0),l&&(l.constructed=!0),a.destroyed?e.emit(Sr,r):r?$t(e,r,!0):H.nextTick(ga,e)}o(n,\"onConstruct\");try{e._construct(r=>{H.nextTick(n,r)})}catch(r){H.nextTick(n,r)}}o(wa,\"constructNT\");function ga(e){e.emit(xt)}o(ga,\"emitConstructNT\");function wr(e){return e?.setHeader&&typeof e.abort==\"function\"}o(wr,\"isRequest\");function Ar(e){e.emit(\"close\")}o(Ar,\"emitCloseLegacy\");function Sa(e,t){e.emit(\"error\",t),H.nextTick(Ar,e)}o(Sa,\"emitErrorCloseLegacy\");function Ea(e,t){!e||da(e)||(!t&&!ca(e)&&(t=new ua),ha(e)?(e.socket=null,e.destroy(t)):wr(e)?e.abort():wr(e.req)?e.req.abort():typeof e.destroy==\"function\"?e.destroy(t):typeof e.close==\"function\"?e.close():t?H.nextTick(Sa,e,t):H.nextTick(Ar,e),e.destroyed||(e[sa]=!0))}o(Ea,\"destroyer\");mr.exports={construct:ya,destroyer:Ea,destroy:ba,undestroy:_a,errorOrDestroy:$t}});var Qe=T((td,Ir)=>{\"use strict\";p();var{ArrayIsArray:Ra,ObjectSetPrototypeOf:Tr}=I(),{EventEmitter:Xe}=Ue();function Je(e){Xe.call(this,e)}o(Je,\"Stream\");Tr(Je.prototype,Xe.prototype);Tr(Je,Xe);Je.prototype.pipe=function(e,t){let n=this;function r(d){e.writable&&e.write(d)===!1&&n.pause&&n.pause()}o(r,\"ondata\"),n.on(\"data\",r);function i(){n.readable&&n.resume&&n.resume()}o(i,\"ondrain\"),e.on(\"drain\",i),!e._isStdio&&(!t||t.end!==!1)&&(n.on(\"end\",a),n.on(\"close\",u));let l=!1;function a(){l||(l=!0,e.end())}o(a,\"onend\");function u(){l||(l=!0,typeof e.destroy==\"function\"&&e.destroy())}o(u,\"onclose\");function s(d){f(),Xe.listenerCount(this,\"error\")===0&&this.emit(\"error\",d)}o(s,\"onerror\"),jt(n,\"error\",s),jt(e,\"error\",s);function f(){n.removeListener(\"data\",r),e.removeListener(\"drain\",i),n.removeListener(\"end\",a),n.removeListener(\"close\",u),n.removeListener(\"error\",s),e.removeListener(\"error\",s),n.removeListener(\"end\",f),n.removeListener(\"close\",f),e.removeListener(\"close\",f)}return o(f,\"cleanup\"),n.on(\"end\",f),n.on(\"close\",f),e.on(\"close\",f),e.emit(\"pipe\",n),e};function jt(e,t,n){if(typeof e.prependListener==\"function\")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Ra(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}o(jt,\"prependListener\");Ir.exports={Stream:Je,prependListener:jt}});var Le=T((id,Ze)=>{\"use strict\";p();var{SymbolDispose:Aa}=I(),{AbortError:Mr,codes:ma}=P(),{isNodeStream:kr,isWebStream:Ta,kControllerErrorFunction:Ia}=U(),Ma=K(),{ERR_INVALID_ARG_TYPE:Nr}=ma,Ft,ka=o((e,t)=>{if(typeof e!=\"object\"||!(\"aborted\"in e))throw new Nr(t,\"AbortSignal\",e)},\"validateAbortSignal\");Ze.exports.addAbortSignal=o(function(t,n){if(ka(t,\"signal\"),!kr(n)&&!Ta(n))throw new Nr(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],n);return Ze.exports.addAbortSignalNoValidate(t,n)},\"addAbortSignal\");Ze.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=\"object\"||!(\"aborted\"in e))return t;let n=kr(t)?()=>{t.destroy(new Mr(void 0,{cause:e.reason}))}:()=>{t[Ia](new Mr(void 0,{cause:e.reason}))};if(e.aborted)n();else{Ft=Ft||W().addAbortListener;let r=Ft(e,n);Ma(t,r[Aa])}return t}});var Lr=T((fd,Dr)=>{\"use strict\";p();var{StringPrototypeSlice:qr,SymbolIterator:Na,TypedArrayPrototypeSet:et,Uint8Array:qa}=I(),{Buffer:vt}=(ie(),q(re)),{inspect:Da}=W();Dr.exports=class{static{o(this,\"BufferList\")}constructor(){this.head=null,this.tail=null,this.length=0}push(t){let n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(t){let n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return\"\";let n=this.head,r=\"\"+n.data;for(;(n=n.next)!==null;)r+=t+n.data;return r}concat(t){if(this.length===0)return vt.alloc(0);let n=vt.allocUnsafe(t>>>0),r=this.head,i=0;for(;r;)et(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(t,n){let r=this.head.data;if(t<r.length){let i=r.slice(0,t);return this.head.data=r.slice(t),i}return t===r.length?this.shift():n?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[Na](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let n=\"\",r=this.head,i=0;do{let l=r.data;if(t>l.length)n+=l,t-=l.length;else{t===l.length?(n+=l,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=qr(l,0,t),this.head=r,r.data=qr(l,t));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(t){let n=vt.allocUnsafe(t),r=t,i=this.head,l=0;do{let a=i.data;if(t>a.length)et(n,a,r-t),t-=a.length;else{t===a.length?(et(n,a,r-t),++l,i.next?this.head=i.next:this.head=this.tail=null):(et(n,new qa(a.buffer,a.byteOffset,t),r-t),this.head=i,i.data=a.slice(t));break}++l}while((i=i.next)!==null);return this.length-=l,n}[Symbol.for(\"nodejs.util.inspect.custom\")](t,n){return Da(this,{...n,depth:0,customInspect:!1})}}});var Pe=T((dd,xr)=>{\"use strict\";p();var{MathFloor:La,NumberIsInteger:Pa}=I(),{validateInteger:Oa}=Ee(),{ERR_INVALID_ARG_VALUE:Wa}=P().codes,Pr=16*1024,Or=16;function xa(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}o(xa,\"highWaterMarkFrom\");function Wr(e){return e?Or:Pr}o(Wr,\"getDefaultHighWaterMark\");function Ca(e,t){Oa(t,\"value\",0),e?Or=t:Pr=t}o(Ca,\"setDefaultHighWaterMark\");function $a(e,t,n,r){let i=xa(t,r,n);if(i!=null){if(!Pa(i)||i<0){let l=r?`options.${n}`:\"options.highWaterMark\";throw new Wa(l,i)}return La(i)}return Wr(e.objectMode)}o($a,\"getHighWaterMark\");xr.exports={getHighWaterMark:$a,getDefaultHighWaterMark:Wr,setDefaultHighWaterMark:Ca}});var Bt=T((bd,Fr)=>{\"use strict\";p();var Cr=(le(),q(oe)),{PromisePrototypeThen:ja,SymbolAsyncIterator:$r,SymbolIterator:jr}=I(),{Buffer:Fa}=(ie(),q(re)),{ERR_INVALID_ARG_TYPE:va,ERR_STREAM_NULL_VALUES:Ba}=P().codes;function Ua(e,t,n){let r;if(typeof t==\"string\"||t instanceof Fa)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let i;if(t&&t[$r])i=!0,r=t[$r]();else if(t&&t[jr])i=!1,r=t[jr]();else throw new va(\"iterable\",[\"Iterable\"],t);let l=new e({objectMode:!0,highWaterMark:1,...n}),a=!1;l._read=function(){a||(a=!0,s())},l._destroy=function(f,d){ja(u(f),()=>Cr.nextTick(d,f),c=>Cr.nextTick(d,c||f))};async function u(f){let d=f!=null,c=typeof r.throw==\"function\";if(d&&c){let{value:_,done:h}=await r.throw(f);if(await _,h)return}if(typeof r.return==\"function\"){let{value:_}=await r.return();await _}}o(u,\"close\");async function s(){for(;;){try{let{value:f,done:d}=i?await r.next():r.next();if(d)l.push(null);else{let c=f&&typeof f.then==\"function\"?await f:f;if(c===null)throw a=!1,new Ba;if(l.push(c))continue;a=!1}}catch(f){l.destroy(f)}break}}return o(s,\"next\"),l}o(Ua,\"from\");Fr.exports=Ua});var We=T((yd,ii)=>{\"use strict\";p();var F=(le(),q(oe)),{ArrayPrototypeIndexOf:Ha,NumberIsInteger:Ga,NumberIsNaN:Va,NumberParseInt:Ya,ObjectDefineProperties:Xt,ObjectKeys:Ka,ObjectSetPrototypeOf:Ur,Promise:Hr,SafeSet:za,SymbolAsyncDispose:Xa,SymbolAsyncIterator:Ja,Symbol:Qa}=I();ii.exports=y;y.ReadableState=it;var{EventEmitter:Za}=Ue(),{Stream:ee,prependListener:ef}=Qe(),{Buffer:Ut}=(ie(),q(re)),{addAbortSignal:tf}=Le(),Gr=K(),g=W().debuglog(\"stream\",e=>{g=e}),nf=Lr(),Te=se(),{getHighWaterMark:rf,getDefaultHighWaterMark:of}=Pe(),{aggregateTwoErrors:vr,codes:{ERR_INVALID_ARG_TYPE:lf,ERR_METHOD_NOT_IMPLEMENTED:af,ERR_OUT_OF_RANGE:ff,ERR_STREAM_PUSH_AFTER_EOF:uf,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:sf},AbortError:df}=P(),{validateObject:cf}=Ee(),de=Qa(\"kPaused\"),{StringDecoder:Vr}=Ro(),hf=Bt();Ur(y.prototype,ee.prototype);Ur(y,ee);var Ht=o(()=>{},\"nop\"),{errorOrDestroy:Ae}=Te,me=1,bf=2,Yr=4,Oe=8,Kr=16,tt=32,nt=64,zr=128,pf=256,_f=512,yf=1024,Kt=2048,zt=4096,wf=8192,gf=16384,Sf=32768,Xr=65536,Ef=1<<17,Rf=1<<18;function D(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}o(D,\"makeBitMapDescriptor\");Xt(it.prototype,{objectMode:D(me),ended:D(bf),endEmitted:D(Yr),reading:D(Oe),constructed:D(Kr),sync:D(tt),needReadable:D(nt),emittedReadable:D(zr),readableListening:D(pf),resumeScheduled:D(_f),errorEmitted:D(yf),emitClose:D(Kt),autoDestroy:D(zt),destroyed:D(wf),closed:D(gf),closeEmitted:D(Sf),multiAwaitDrain:D(Xr),readingMore:D(Ef),dataEmitted:D(Rf)});function it(e,t,n){typeof n!=\"boolean\"&&(n=t instanceof G()),this.state=Kt|zt|Kr|tt,e&&e.objectMode&&(this.state|=me),n&&e&&e.readableObjectMode&&(this.state|=me),this.highWaterMark=e?rf(this,e,\"readableHighWaterMark\",n):of(!1),this.buffer=new nf,this.length=0,this.pipes=[],this.flowing=null,this[de]=null,e&&e.emitClose===!1&&(this.state&=~Kt),e&&e.autoDestroy===!1&&(this.state&=~zt),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||\"utf8\",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new Vr(e.encoding),this.encoding=e.encoding)}o(it,\"ReadableState\");function y(e){if(!(this instanceof y))return new y(e);let t=this instanceof G();this._readableState=new it(e,this,t),e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.construct==\"function\"&&(this._construct=e.construct),e.signal&&!t&&tf(e.signal,this)),ee.call(this,e),Te.construct(this,()=>{this._readableState.needReadable&&rt(this,this._readableState)})}o(y,\"Readable\");y.prototype.destroy=Te.destroy;y.prototype._undestroy=Te.undestroy;y.prototype._destroy=function(e,t){t(e)};y.prototype[Za.captureRejectionSymbol]=function(e){this.destroy(e)};y.prototype[Xa]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new df,this.destroy(e)),new Hr((t,n)=>Gr(this,r=>r&&r!==e?n(r):t(null)))};y.prototype.push=function(e,t){return Jr(this,e,t,!1)};y.prototype.unshift=function(e,t){return Jr(this,e,t,!0)};function Jr(e,t,n,r){g(\"readableAddChunk\",t);let i=e._readableState,l;if((i.state&me)===0&&(typeof t==\"string\"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=Ut.from(t,n).toString(i.encoding):(t=Ut.from(t,n),n=\"\"))):t instanceof Ut?n=\"\":ee._isUint8Array(t)?(t=ee._uint8ArrayToBuffer(t),n=\"\"):t!=null&&(l=new lf(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t))),l)Ae(e,l);else if(t===null)i.state&=~Oe,Tf(e,i);else if((i.state&me)!==0||t&&t.length>0)if(r)if((i.state&Yr)!==0)Ae(e,new sf);else{if(i.destroyed||i.errored)return!1;Gt(e,i,t,!0)}else if(i.ended)Ae(e,new uf);else{if(i.destroyed||i.errored)return!1;i.state&=~Oe,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?Gt(e,i,t,!1):rt(e,i)):Gt(e,i,t,!1)}else r||(i.state&=~Oe,rt(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}o(Jr,\"readableAddChunk\");function Gt(e,t,n,r){t.flowing&&t.length===0&&!t.sync&&e.listenerCount(\"data\")>0?((t.state&Xr)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(\"data\",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),(t.state&nt)!==0&&ot(e)),rt(e,t)}o(Gt,\"addChunk\");y.prototype.isPaused=function(){let e=this._readableState;return e[de]===!0||e.flowing===!1};y.prototype.setEncoding=function(e){let t=new Vr(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=\"\";for(let i of n)r+=t.write(i);return n.clear(),r!==\"\"&&n.push(r),this._readableState.length=r.length,this};var Af=1073741824;function mf(e){if(e>Af)throw new ff(\"size\",\"<= 1GiB\",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}o(mf,\"computeNewHighWaterMark\");function Br(e,t){return e<=0||t.length===0&&t.ended?0:(t.state&me)!==0?1:Va(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}o(Br,\"howMuchToRead\");y.prototype.read=function(e){g(\"read\",e),e===void 0?e=NaN:Ga(e)||(e=Ya(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=mf(e)),e!==0&&(t.state&=~zr),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return g(\"read: emitReadable\",t.length,t.ended),t.length===0&&t.ended?Vt(this):ot(this),null;if(e=Br(e,t),e===0&&t.ended)return t.length===0&&Vt(this),null;let r=(t.state&nt)!==0;if(g(\"need readable\",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,g(\"length less than watermark\",r)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)r=!1,g(\"reading, ended or constructing\",r);else if(r){g(\"do read\"),t.state|=Oe|tt,t.length===0&&(t.state|=nt);try{this._read(t.highWaterMark)}catch(l){Ae(this,l)}t.state&=~tt,t.reading||(e=Br(n,t))}let i;return e>0?i=ni(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Vt(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(\"data\",i)),i};function Tf(e,t){if(g(\"onEofChunk\"),!t.ended){if(t.decoder){let n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?ot(e):(t.needReadable=!1,t.emittedReadable=!0,Qr(e))}}o(Tf,\"onEofChunk\");function ot(e){let t=e._readableState;g(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(g(\"emitReadable\",t.flowing),t.emittedReadable=!0,F.nextTick(Qr,e))}o(ot,\"emitReadable\");function Qr(e){let t=e._readableState;g(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ei(e)}o(Qr,\"emitReadable_\");function rt(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,F.nextTick(If,e,t))}o(rt,\"maybeReadMore\");function If(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let n=t.length;if(g(\"maybeReadMore read 0\"),e.read(0),n===t.length)break}t.readingMore=!1}o(If,\"maybeReadMore_\");y.prototype._read=function(e){throw new af(\"_read()\")};y.prototype.pipe=function(e,t){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new za(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(e),g(\"pipe count=%d opts=%j\",r.pipes.length,t);let l=(!t||t.end!==!1)&&e!==F.stdout&&e!==F.stderr?u:R;r.endEmitted?F.nextTick(l):n.once(\"end\",l),e.on(\"unpipe\",a);function a(w,A){g(\"onunpipe\"),w===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,d())}o(a,\"onunpipe\");function u(){g(\"onend\"),e.end()}o(u,\"onend\");let s,f=!1;function d(){g(\"cleanup\"),e.removeListener(\"close\",E),e.removeListener(\"finish\",b),s&&e.removeListener(\"drain\",s),e.removeListener(\"error\",h),e.removeListener(\"unpipe\",a),n.removeListener(\"end\",u),n.removeListener(\"end\",R),n.removeListener(\"data\",_),f=!0,s&&r.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&s()}o(d,\"cleanup\");function c(){f||(r.pipes.length===1&&r.pipes[0]===e?(g(\"false write response, pause\",0),r.awaitDrainWriters=e,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(e)&&(g(\"false write response, pause\",r.awaitDrainWriters.size),r.awaitDrainWriters.add(e)),n.pause()),s||(s=Mf(n,e),e.on(\"drain\",s))}o(c,\"pause\"),n.on(\"data\",_);function _(w){g(\"ondata\");let A=e.write(w);g(\"dest.write\",A),A===!1&&c()}o(_,\"ondata\");function h(w){if(g(\"onerror\",w),R(),e.removeListener(\"error\",h),e.listenerCount(\"error\")===0){let A=e._writableState||e._readableState;A&&!A.errorEmitted?Ae(e,w):e.emit(\"error\",w)}}o(h,\"onerror\"),ef(e,\"error\",h);function E(){e.removeListener(\"finish\",b),R()}o(E,\"onclose\"),e.once(\"close\",E);function b(){g(\"onfinish\"),e.removeListener(\"close\",E),R()}o(b,\"onfinish\"),e.once(\"finish\",b);function R(){g(\"unpipe\"),n.unpipe(e)}return o(R,\"unpipe\"),e.emit(\"pipe\",n),e.writableNeedDrain===!0?c():r.flowing||(g(\"pipe resume\"),n.resume()),e};function Mf(e,t){return o(function(){let r=e._readableState;r.awaitDrainWriters===t?(g(\"pipeOnDrain\",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(g(\"pipeOnDrain\",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount(\"data\")&&e.resume()},\"pipeOnDrainFunctionResult\")}o(Mf,\"pipeOnDrain\");y.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let i=t.pipes;t.pipes=[],this.pause();for(let l=0;l<i.length;l++)i[l].emit(\"unpipe\",this,{hasUnpiped:!1});return this}let r=Ha(t.pipes,e);return r===-1?this:(t.pipes.splice(r,1),t.pipes.length===0&&this.pause(),e.emit(\"unpipe\",this,n),this)};y.prototype.on=function(e,t){let n=ee.prototype.on.call(this,e,t),r=this._readableState;return e===\"data\"?(r.readableListening=this.listenerCount(\"readable\")>0,r.flowing!==!1&&this.resume()):e===\"readable\"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,g(\"on readable\",r.length,r.reading),r.length?ot(this):r.reading||F.nextTick(kf,this)),n};y.prototype.addListener=y.prototype.on;y.prototype.removeListener=function(e,t){let n=ee.prototype.removeListener.call(this,e,t);return e===\"readable\"&&F.nextTick(Zr,this),n};y.prototype.off=y.prototype.removeListener;y.prototype.removeAllListeners=function(e){let t=ee.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&F.nextTick(Zr,this),t};function Zr(e){let t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&t[de]===!1?t.flowing=!0:e.listenerCount(\"data\")>0?e.resume():t.readableListening||(t.flowing=null)}o(Zr,\"updateReadableListening\");function kf(e){g(\"readable nexttick read 0\"),e.read(0)}o(kf,\"nReadingNextTick\");y.prototype.resume=function(){let e=this._readableState;return e.flowing||(g(\"resume\"),e.flowing=!e.readableListening,Nf(this,e)),e[de]=!1,this};function Nf(e,t){t.resumeScheduled||(t.resumeScheduled=!0,F.nextTick(qf,e,t))}o(Nf,\"resume\");function qf(e,t){g(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),ei(e),t.flowing&&!t.reading&&e.read(0)}o(qf,\"resume_\");y.prototype.pause=function(){return g(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(g(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState[de]=!0,this};function ei(e){let t=e._readableState;for(g(\"flow\",t.flowing);t.flowing&&e.read()!==null;);}o(ei,\"flow\");y.prototype.wrap=function(e){let t=!1;e.on(\"data\",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on(\"end\",()=>{this.push(null)}),e.on(\"error\",r=>{Ae(this,r)}),e.on(\"close\",()=>{this.destroy()}),e.on(\"destroy\",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=Ka(e);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof e[i]==\"function\"&&(this[i]=e[i].bind(e))}return this};y.prototype[Ja]=function(){return ti(this)};y.prototype.iterator=function(e){return e!==void 0&&cf(e,\"options\"),ti(this,e)};function ti(e,t){typeof e.read!=\"function\"&&(e=y.wrap(e,{objectMode:!0}));let n=Df(e,t);return n.stream=e,n}o(ti,\"streamToAsyncIterator\");async function*Df(e,t){let n=Ht;function r(a){this===e?(n(),n=Ht):n=a}o(r,\"next\"),e.on(\"readable\",r);let i,l=Gr(e,{writable:!1},a=>{i=a?vr(i,a):null,n(),n=Ht});try{for(;;){let a=e.destroyed?null:e.read();if(a!==null)yield a;else{if(i)throw i;if(i===null)return;await new Hr(r)}}}catch(a){throw i=vr(i,a),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?Te.destroyer(e,null):(e.off(\"readable\",r),l())}}o(Df,\"createAsyncIterator\");Xt(y.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.dataEmitted},\"get\")},readableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)},\"get\")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.highWaterMark},\"get\")},readableBuffer:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState&&this._readableState.buffer},\"get\")},readableFlowing:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.flowing},\"get\"),set:o(function(e){this._readableState&&(this._readableState.flowing=e)},\"set\")},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(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Xt(it.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[de]!==!1},set(e){this[de]=!!e}}});y._fromList=ni;function ni(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(\"\"):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}o(ni,\"fromList\");function Vt(e){let t=e._readableState;g(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,F.nextTick(Lf,t,e))}o(Vt,\"endReadable\");function Lf(e,t){if(g(\"endReadableNT\",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(\"end\"),t.writable&&t.allowHalfOpen===!1)F.nextTick(Pf,t);else if(e.autoDestroy){let n=t._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&t.destroy()}}}o(Lf,\"endReadableNT\");function Pf(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}o(Pf,\"endWritableNT\");y.from=function(e,t){return hf(y,e,t)};var Yt;function ri(){return Yt===void 0&&(Yt={}),Yt}o(ri,\"lazyWebStreams\");y.fromWeb=function(e,t){return ri().newStreamReadableFromReadableStream(e,t)};y.toWeb=function(e,t){return ri().newReadableStreamFromStreamReadable(e,t)};y.wrap=function(e,t){var n,r;return new y({objectMode:(n=(r=e.readableObjectMode)!==null&&r!==void 0?r:e.objectMode)!==null&&n!==void 0?n:!0,...t,destroy(i,l){Te.destroyer(e,i),l(i)}}).wrap(e)}});var st=T((Sd,_i)=>{\"use strict\";p();var ce=(le(),q(oe)),{ArrayPrototypeSlice:ai,Error:Of,FunctionPrototypeSymbolHasInstance:fi,ObjectDefineProperty:ui,ObjectDefineProperties:Wf,ObjectSetPrototypeOf:si,StringPrototypeToLowerCase:xf,Symbol:Cf,SymbolHasInstance:$f}=I();_i.exports=M;M.WritableState=$e;var{EventEmitter:jf}=Ue(),xe=Qe().Stream,{Buffer:lt}=(ie(),q(re)),ut=se(),{addAbortSignal:Ff}=Le(),{getHighWaterMark:vf,getDefaultHighWaterMark:Bf}=Pe(),{ERR_INVALID_ARG_TYPE:Uf,ERR_METHOD_NOT_IMPLEMENTED:Hf,ERR_MULTIPLE_CALLBACK:di,ERR_STREAM_CANNOT_PIPE:Gf,ERR_STREAM_DESTROYED:Ce,ERR_STREAM_ALREADY_FINISHED:Vf,ERR_STREAM_NULL_VALUES:Yf,ERR_STREAM_WRITE_AFTER_END:Kf,ERR_UNKNOWN_ENCODING:ci}=P().codes,{errorOrDestroy:Ie}=ut;si(M.prototype,xe.prototype);si(M,xe);function Zt(){}o(Zt,\"nop\");var Me=Cf(\"kOnFinished\");function $e(e,t,n){typeof n!=\"boolean\"&&(n=t instanceof G()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?vf(this,e,\"writableHighWaterMark\",n):Bf(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Xf.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ft(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Me]=[]}o($e,\"WritableState\");function ft(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}o(ft,\"resetBuffer\");$e.prototype.getBuffer=o(function(){return ai(this.buffered,this.bufferedIndex)},\"getBuffer\");ui($e.prototype,\"bufferedRequestCount\",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function M(e){let t=this instanceof G();if(!t&&!fi(M,this))return new M(e);this._writableState=new $e(e,this,t),e&&(typeof e.write==\"function\"&&(this._write=e.write),typeof e.writev==\"function\"&&(this._writev=e.writev),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.final==\"function\"&&(this._final=e.final),typeof e.construct==\"function\"&&(this._construct=e.construct),e.signal&&Ff(e.signal,this)),xe.call(this,e),ut.construct(this,()=>{let n=this._writableState;n.writing||tn(this,n),nn(this,n)})}o(M,\"Writable\");ui(M,$f,{__proto__:null,value:o(function(e){return fi(this,e)?!0:this!==M?!1:e&&e._writableState instanceof $e},\"value\")});M.prototype.pipe=function(){Ie(this,new Gf)};function hi(e,t,n,r){let i=e._writableState;if(typeof n==\"function\")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!==\"buffer\"&&!lt.isEncoding(n))throw new ci(n);typeof r!=\"function\"&&(r=Zt)}if(t===null)throw new Yf;if(!i.objectMode)if(typeof t==\"string\")i.decodeStrings!==!1&&(t=lt.from(t,n),n=\"buffer\");else if(t instanceof lt)n=\"buffer\";else if(xe._isUint8Array(t))t=xe._uint8ArrayToBuffer(t),n=\"buffer\";else throw new Uf(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t);let l;return i.ending?l=new Kf:i.destroyed&&(l=new Ce(\"write\")),l?(ce.nextTick(r,l),Ie(e,l,!0),l):(i.pendingcb++,zf(e,i,t,n,r))}o(hi,\"_write\");M.prototype.write=function(e,t,n){return hi(this,e,t,n)===!0};M.prototype.cork=function(){this._writableState.corked++};M.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||tn(this,e))};M.prototype.setDefaultEncoding=o(function(t){if(typeof t==\"string\"&&(t=xf(t)),!lt.isEncoding(t))throw new ci(t);return this._writableState.defaultEncoding=t,this},\"setDefaultEncoding\");function zf(e,t,n,r,i){let l=t.objectMode?1:n.length;t.length+=l;let a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&r!==\"buffer\"&&(t.allBuffers=!1),t.allNoop&&i!==Zt&&(t.allNoop=!1)):(t.writelen=l,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),a&&!t.errored&&!t.destroyed}o(zf,\"writeOrBuffer\");function oi(e,t,n,r,i,l,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Ce(\"write\")):n?e._writev(i,t.onwrite):e._write(i,l,t.onwrite),t.sync=!1}o(oi,\"doWrite\");function li(e,t,n,r){--t.pendingcb,r(n),en(t),Ie(e,n)}o(li,\"onwriteError\");function Xf(e,t){let n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=\"function\"){Ie(e,new di);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),r?ce.nextTick(li,e,n,t,i):li(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&tn(e,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},ce.nextTick(Jf,n.afterWriteTickInfo)):bi(e,n,1,i))}o(Xf,\"onwrite\");function Jf({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,bi(e,t,n,r)}o(Jf,\"afterWriteTick\");function bi(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"));n-- >0;)t.pendingcb--,r();t.destroyed&&en(t),nn(e,t)}o(bi,\"afterWrite\");function en(e){if(e.writing)return;for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;let{chunk:l,callback:a}=e.buffered[i],u=e.objectMode?1:l.length;e.length-=u,a((t=e.errored)!==null&&t!==void 0?t:new Ce(\"write\"))}let n=e[Me].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=e.errored)!==null&&r!==void 0?r:new Ce(\"end\"))}ft(e)}o(en,\"errorBuffer\");function tn(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=t,l=n.length-r;if(!l)return;let a=r;if(t.bufferProcessing=!0,l>1&&e._writev){t.pendingcb-=l-1;let u=t.allNoop?Zt:f=>{for(let d=a;d<n.length;++d)n[d].callback(f)},s=t.allNoop&&a===0?n:ai(n,a);s.allBuffers=t.allBuffers,oi(e,t,!0,t.length,s,\"\",u),ft(t)}else{do{let{chunk:u,encoding:s,callback:f}=n[a];n[a++]=null;let d=i?1:u.length;oi(e,t,!1,d,u,s,f)}while(a<n.length&&!t.writing);a===n.length?ft(t):a>256?(n.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}o(tn,\"clearBuffer\");M.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new Hf(\"_write()\")};M.prototype._writev=null;M.prototype.end=function(e,t,n){let r=this._writableState;typeof e==\"function\"?(n=e,e=null,t=null):typeof t==\"function\"&&(n=t,t=null);let i;if(e!=null){let l=hi(this,e,t);l instanceof Of&&(i=l)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,nn(this,r,!0),r.ended=!0):r.finished?i=new Vf(\"end\"):r.destroyed&&(i=new Ce(\"end\"))),typeof n==\"function\"&&(i||r.finished?ce.nextTick(n,i):r[Me].push(n)),this};function at(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}o(at,\"needFinish\");function Qf(e,t){let n=!1;function r(i){if(n){Ie(e,i??di());return}if(n=!0,t.pendingcb--,i){let l=t[Me].splice(0);for(let a=0;a<l.length;a++)l[a](i);Ie(e,i,t.sync)}else at(t)&&(t.prefinished=!0,e.emit(\"prefinish\"),t.pendingcb++,ce.nextTick(Qt,e,t))}o(r,\"onFinish\"),t.sync=!0,t.pendingcb++;try{e._final(r)}catch(i){r(i)}t.sync=!1}o(Qf,\"callFinal\");function Zf(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.finalCalled=!0,Qf(e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}o(Zf,\"prefinish\");function nn(e,t,n){at(t)&&(Zf(e,t),t.pendingcb===0&&(n?(t.pendingcb++,ce.nextTick((r,i)=>{at(i)?Qt(r,i):i.pendingcb--},e,t)):at(t)&&(t.pendingcb++,Qt(e,t))))}o(nn,\"finishMaybe\");function Qt(e,t){t.pendingcb--,t.finished=!0;let n=t[Me].splice(0);for(let r=0;r<n.length;r++)n[r]();if(e.emit(\"finish\"),t.autoDestroy){let r=e._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&e.destroy()}}o(Qt,\"finish\");Wf(M.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},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 e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},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:o(function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)},\"get\")}});var eu=ut.destroy;M.prototype.destroy=function(e,t){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[Me].length)&&ce.nextTick(en,n),eu.call(this,e,t),this};M.prototype._undestroy=ut.undestroy;M.prototype._destroy=function(e,t){t(e)};M.prototype[jf.captureRejectionSymbol]=function(e){this.destroy(e)};var Jt;function pi(){return Jt===void 0&&(Jt={}),Jt}o(pi,\"lazyWebStreams\");M.fromWeb=function(e,t){return pi().newStreamWritableFromWritableStream(e,t)};M.toWeb=function(e){return pi().newWritableStreamFromStreamWritable(e)}});var Di=T((Ad,qi)=>{p();var rn=(le(),q(oe)),tu=(ie(),q(re)),{isReadable:nu,isWritable:ru,isIterable:yi,isNodeStream:iu,isReadableNodeStream:wi,isWritableNodeStream:gi,isDuplexNodeStream:ou,isReadableStream:Si,isWritableStream:Ei}=U(),Ri=K(),{AbortError:ki,codes:{ERR_INVALID_ARG_TYPE:lu,ERR_INVALID_RETURN_VALUE:Ai}}=P(),{destroyer:Ne}=se(),au=G(),Ni=We(),fu=st(),{createDeferredPromise:mi}=W(),Ti=Bt(),Ii=globalThis.Blob||tu.Blob,uu=o(typeof Ii<\"u\"?function(t){return t instanceof Ii}:function(t){return!1},\"isBlob\"),su=globalThis.AbortController||(ge(),q(we)).AbortController,{FunctionPrototypeCall:Mi}=I(),te=class extends au{static{o(this,\"Duplexify\")}constructor(t){super(t),t?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};qi.exports=o(function e(t,n){if(ou(t))return t;if(wi(t))return ke({readable:t});if(gi(t))return ke({writable:t});if(iu(t))return ke({writable:!1,readable:!1});if(Si(t))return ke({readable:Ni.fromWeb(t)});if(Ei(t))return ke({writable:fu.fromWeb(t)});if(typeof t==\"function\"){let{value:i,write:l,final:a,destroy:u}=du(t);if(yi(i))return Ti(te,i,{objectMode:!0,write:l,final:a,destroy:u});let s=i?.then;if(typeof s==\"function\"){let f,d=Mi(s,i,c=>{if(c!=null)throw new Ai(\"nully\",\"body\",c)},c=>{Ne(f,c)});return f=new te({objectMode:!0,readable:!1,write:l,final(c){a(async()=>{try{await d,rn.nextTick(c,null)}catch(_){rn.nextTick(c,_)}})},destroy:u})}throw new Ai(\"Iterable, AsyncIterable or AsyncFunction\",n,i)}if(uu(t))return e(t.arrayBuffer());if(yi(t))return Ti(te,t,{objectMode:!0,writable:!1});if(Si(t?.readable)&&Ei(t?.writable))return te.fromWeb(t);if(typeof t?.writable==\"object\"||typeof t?.readable==\"object\"){let i=t!=null&&t.readable?wi(t?.readable)?t?.readable:e(t.readable):void 0,l=t!=null&&t.writable?gi(t?.writable)?t?.writable:e(t.writable):void 0;return ke({readable:i,writable:l})}let r=t?.then;if(typeof r==\"function\"){let i;return Mi(r,t,l=>{l!=null&&i.push(l),i.push(null)},l=>{Ne(i,l)}),i=new te({objectMode:!0,writable:!1,read(){}})}throw new lu(n,[\"Blob\",\"ReadableStream\",\"WritableStream\",\"Stream\",\"Iterable\",\"AsyncIterable\",\"Function\",\"{ readable, writable } pair\",\"Promise\"],t)},\"duplexify\");function du(e){let{promise:t,resolve:n}=mi(),r=new su,i=r.signal;return{value:e((async function*(){for(;;){let a=t;t=null;let{chunk:u,done:s,cb:f}=await a;if(rn.nextTick(f),s)return;if(i.aborted)throw new ki(void 0,{cause:i.reason});({promise:t,resolve:n}=mi()),yield u}})(),{signal:i}),write(a,u,s){let f=n;n=null,f({chunk:a,done:!1,cb:s})},final(a){let u=n;n=null,u({done:!0,cb:a})},destroy(a,u){r.abort(),u(a)}}}o(du,\"fromAsyncGen\");function ke(e){let t=e.readable&&typeof e.readable.read!=\"function\"?Ni.wrap(e.readable):e.readable,n=e.writable,r=!!nu(t),i=!!ru(n),l,a,u,s,f;function d(c){let _=s;s=null,_?_(c):c&&f.destroy(c)}return o(d,\"onfinished\"),f=new te({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(Ri(n,c=>{i=!1,c&&Ne(t,c),d(c)}),f._write=function(c,_,h){n.write(c,_)?h():l=h},f._final=function(c){n.end(),a=c},n.on(\"drain\",function(){if(l){let c=l;l=null,c()}}),n.on(\"finish\",function(){if(a){let c=a;a=null,c()}})),r&&(Ri(t,c=>{r=!1,c&&Ne(t,c),d(c)}),t.on(\"readable\",function(){if(u){let c=u;u=null,c()}}),t.on(\"end\",function(){f.push(null)}),f._read=function(){for(;;){let c=t.read();if(c===null){u=f._read;return}if(!f.push(c))return}}),f._destroy=function(c,_){!c&&s!==null&&(c=new ki),u=null,l=null,a=null,s===null?_(c):(s=_,Ne(n,c),Ne(t,c))},f}o(ke,\"_duplexify\")});var G=T((Id,Oi)=>{\"use strict\";p();var{ObjectDefineProperties:cu,ObjectGetOwnPropertyDescriptor:z,ObjectKeys:hu,ObjectSetPrototypeOf:Li}=I();Oi.exports=v;var an=We(),j=st();Li(v.prototype,an.prototype);Li(v,an);{let e=hu(j.prototype);for(let t=0;t<e.length;t++){let n=e[t];v.prototype[n]||(v.prototype[n]=j.prototype[n])}}function v(e){if(!(this instanceof v))return new v(e);an.call(this,e),j.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}o(v,\"Duplex\");cu(v.prototype,{writable:{__proto__:null,...z(j.prototype,\"writable\")},writableHighWaterMark:{__proto__:null,...z(j.prototype,\"writableHighWaterMark\")},writableObjectMode:{__proto__:null,...z(j.prototype,\"writableObjectMode\")},writableBuffer:{__proto__:null,...z(j.prototype,\"writableBuffer\")},writableLength:{__proto__:null,...z(j.prototype,\"writableLength\")},writableFinished:{__proto__:null,...z(j.prototype,\"writableFinished\")},writableCorked:{__proto__:null,...z(j.prototype,\"writableCorked\")},writableEnded:{__proto__:null,...z(j.prototype,\"writableEnded\")},writableNeedDrain:{__proto__:null,...z(j.prototype,\"writableNeedDrain\")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var on;function Pi(){return on===void 0&&(on={}),on}o(Pi,\"lazyWebStreams\");v.fromWeb=function(e,t){return Pi().newStreamDuplexFromReadableWritablePair(e,t)};v.toWeb=function(e){return Pi().newReadableWritablePairFromDuplex(e)};var ln;v.from=function(e){return ln||(ln=Di()),ln(e,\"body\")}});var sn=T((Nd,xi)=>{\"use strict\";p();var{ObjectSetPrototypeOf:Wi,Symbol:bu}=I();xi.exports=X;var{ERR_METHOD_NOT_IMPLEMENTED:pu}=P().codes,un=G(),{getHighWaterMark:_u}=Pe();Wi(X.prototype,un.prototype);Wi(X,un);var je=bu(\"kCallback\");function X(e){if(!(this instanceof X))return new X(e);let t=e?_u(this,e,\"readableHighWaterMark\",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),un.call(this,e),this._readableState.sync=!1,this[je]=null,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",yu)}o(X,\"Transform\");function fn(e){typeof this._flush==\"function\"&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}o(fn,\"final\");function yu(){this._final!==fn&&fn.call(this)}o(yu,\"prefinish\");X.prototype._final=fn;X.prototype._transform=function(e,t,n){throw new pu(\"_transform()\")};X.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,l=r.length;this._transform(e,t,(a,u)=>{if(a){n(a);return}u!=null&&this.push(u),i.ended||l===r.length||r.length<r.highWaterMark?n():this[je]=n})};X.prototype._read=function(){if(this[je]){let e=this[je];this[je]=null,e()}}});var cn=T((Ld,$i)=>{\"use strict\";p();var{ObjectSetPrototypeOf:Ci}=I();$i.exports=qe;var dn=sn();Ci(qe.prototype,dn.prototype);Ci(qe,dn);function qe(e){if(!(this instanceof qe))return new qe(e);dn.call(this,e)}o(qe,\"PassThrough\");qe.prototype._transform=function(e,t,n){n(null,e)}});var bt=T((Wd,Ui)=>{p();var Fe=(le(),q(oe)),{ArrayIsArray:wu,Promise:gu,SymbolAsyncIterator:Su,SymbolDispose:Eu}=I(),ht=K(),{once:Ru}=W(),Au=se(),ji=G(),{aggregateTwoErrors:mu,codes:{ERR_INVALID_ARG_TYPE:En,ERR_INVALID_RETURN_VALUE:hn,ERR_MISSING_ARGS:Tu,ERR_STREAM_DESTROYED:Iu,ERR_STREAM_PREMATURE_CLOSE:Mu},AbortError:ku}=P(),{validateFunction:Nu,validateAbortSignal:qu}=Ee(),{isIterable:he,isReadable:bn,isReadableNodeStream:ct,isNodeStream:Fi,isTransformStream:De,isWebStream:Du,isReadableStream:pn,isReadableFinished:Lu}=U(),Pu=globalThis.AbortController||(ge(),q(we)).AbortController,_n,yn,wn;function vi(e,t,n){let r=!1;e.on(\"close\",()=>{r=!0});let i=ht(e,{readable:t,writable:n},l=>{r=!l});return{destroy:o(l=>{r||(r=!0,Au.destroyer(e,l||new Iu(\"pipe\")))},\"destroy\"),cleanup:i}}o(vi,\"destroyer\");function Ou(e){return Nu(e[e.length-1],\"streams[stream.length - 1]\"),e.pop()}o(Ou,\"popCallback\");function gn(e){if(he(e))return e;if(ct(e))return Wu(e);throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\"],e)}o(gn,\"makeAsyncIterable\");async function*Wu(e){yn||(yn=We()),yield*yn.prototype[Su].call(e)}o(Wu,\"fromReadable\");async function dt(e,t,n,{end:r}){let i,l=null,a=o(f=>{if(f&&(i=f),l){let d=l;l=null,d()}},\"resume\"),u=o(()=>new gu((f,d)=>{i?d(i):l=o(()=>{i?d(i):f()},\"onresolve\")}),\"wait\");t.on(\"drain\",a);let s=ht(t,{readable:!1},a);try{t.writableNeedDrain&&await u();for await(let f of e)t.write(f)||await u();r&&(t.end(),await u()),n()}catch(f){n(i!==f?mu(i,f):f)}finally{s(),t.off(\"drain\",a)}}o(dt,\"pumpToNode\");async function Sn(e,t,n,{end:r}){De(t)&&(t=t.writable);let i=t.getWriter();try{for await(let l of e)await i.ready,i.write(l).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(l){try{await i.abort(l),n(l)}catch(a){n(a)}}}o(Sn,\"pumpToWeb\");function xu(...e){return Bi(e,Ru(Ou(e)))}o(xu,\"pipeline\");function Bi(e,t,n){if(e.length===1&&wu(e[0])&&(e=e[0]),e.length<2)throw new Tu(\"streams\");let r=new Pu,i=r.signal,l=n?.signal,a=[];qu(l,\"options.signal\");function u(){E(new ku)}o(u,\"abort\"),wn=wn||W().addAbortListener;let s;l&&(s=wn(l,u));let f,d,c=[],_=0;function h(N){E(N,--_===0)}o(h,\"finish\");function E(N,S){var k;if(N&&(!f||f.code===\"ERR_STREAM_PREMATURE_CLOSE\")&&(f=N),!(!f&&!S)){for(;c.length;)c.shift()(f);(k=s)===null||k===void 0||k[Eu](),r.abort(),S&&(f||a.forEach(ne=>ne()),Fe.nextTick(t,f,d))}}o(E,\"finishImpl\");let b;for(let N=0;N<e.length;N++){let S=e[N],k=N<e.length-1,ne=N>0,C=k||n?.end!==!1,ye=N===e.length-1;if(Fi(S)){let x=function(Y){Y&&Y.name!==\"AbortError\"&&Y.code!==\"ERR_STREAM_PREMATURE_CLOSE\"&&h(Y)};var A=x;if(o(x,\"onError\"),C){let{destroy:Y,cleanup:gt}=vi(S,k,ne);c.push(Y),bn(S)&&ye&&a.push(gt)}S.on(\"error\",x),bn(S)&&ye&&a.push(()=>{S.removeListener(\"error\",x)})}if(N===0)if(typeof S==\"function\"){if(b=S({signal:i}),!he(b))throw new hn(\"Iterable, AsyncIterable or Stream\",\"source\",b)}else he(S)||ct(S)||De(S)?b=S:b=ji.from(S);else if(typeof S==\"function\"){if(De(b)){var R;b=gn((R=b)===null||R===void 0?void 0:R.readable)}else b=gn(b);if(b=S(b,{signal:i}),k){if(!he(b,!0))throw new hn(\"AsyncIterable\",`transform[${N-1}]`,b)}else{var w;_n||(_n=cn());let x=new _n({objectMode:!0}),Y=(w=b)===null||w===void 0?void 0:w.then;if(typeof Y==\"function\")_++,Y.call(b,Q=>{d=Q,Q!=null&&x.write(Q),C&&x.end(),Fe.nextTick(h)},Q=>{x.destroy(Q),Fe.nextTick(h,Q)});else if(he(b,!0))_++,dt(b,x,h,{end:C});else if(pn(b)||De(b)){let Q=b.readable||b;_++,dt(Q,x,h,{end:C})}else throw new hn(\"AsyncIterable or Promise\",\"destination\",b);b=x;let{destroy:gt,cleanup:go}=vi(b,!1,!0);c.push(gt),ye&&a.push(go)}}else if(Fi(S)){if(ct(b)){_+=2;let x=Cu(b,S,h,{end:C});bn(S)&&ye&&a.push(x)}else if(De(b)||pn(b)){let x=b.readable||b;_++,dt(x,S,h,{end:C})}else if(he(b))_++,dt(b,S,h,{end:C});else throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],b);b=S}else if(Du(S)){if(ct(b))_++,Sn(gn(b),S,h,{end:C});else if(pn(b)||he(b))_++,Sn(b,S,h,{end:C});else if(De(b))_++,Sn(b.readable,S,h,{end:C});else throw new En(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],b);b=S}else b=ji.from(S)}return(i!=null&&i.aborted||l!=null&&l.aborted)&&Fe.nextTick(u),b}o(Bi,\"pipelineImpl\");function Cu(e,t,n,{end:r}){let i=!1;if(t.on(\"close\",()=>{i||n(new Mu)}),e.pipe(t,{end:!1}),r){let a=function(){i=!0,t.end()};var l=a;o(a,\"endFn\"),Lu(e)?Fe.nextTick(a):e.once(\"end\",a)}else n();return ht(e,{readable:!0,writable:!1},a=>{let u=e._readableState;a&&a.code===\"ERR_STREAM_PREMATURE_CLOSE\"&&u&&u.ended&&!u.errored&&!u.errorEmitted?e.once(\"end\",n).once(\"error\",n):n(a)}),ht(t,{readable:!1,writable:!0},n)}o(Cu,\"pipe\");Ui.exports={pipelineImpl:Bi,pipeline:xu}});var An=T(($d,zi)=>{\"use strict\";p();var{pipeline:$u}=bt(),pt=G(),{destroyer:ju}=se(),{isNodeStream:_t,isReadable:Hi,isWritable:Gi,isWebStream:Rn,isTransformStream:be,isWritableStream:Vi,isReadableStream:Yi}=U(),{AbortError:Fu,codes:{ERR_INVALID_ARG_VALUE:Ki,ERR_MISSING_ARGS:vu}}=P(),Bu=K();zi.exports=o(function(...t){if(t.length===0)throw new vu(\"streams\");if(t.length===1)return pt.from(t[0]);let n=[...t];if(typeof t[0]==\"function\"&&(t[0]=pt.from(t[0])),typeof t[t.length-1]==\"function\"){let h=t.length-1;t[h]=pt.from(t[h])}for(let h=0;h<t.length;++h)if(!(!_t(t[h])&&!Rn(t[h]))){if(h<t.length-1&&!(Hi(t[h])||Yi(t[h])||be(t[h])))throw new Ki(`streams[${h}]`,n[h],\"must be readable\");if(h>0&&!(Gi(t[h])||Vi(t[h])||be(t[h])))throw new Ki(`streams[${h}]`,n[h],\"must be writable\")}let r,i,l,a,u;function s(h){let E=a;a=null,E?E(h):h?u.destroy(h):!_&&!c&&u.destroy()}o(s,\"onfinished\");let f=t[0],d=$u(t,s),c=!!(Gi(f)||Vi(f)||be(f)),_=!!(Hi(d)||Yi(d)||be(d));if(u=new pt({writableObjectMode:!!(f!=null&&f.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:c,readable:_}),c){if(_t(f))u._write=function(E,b,R){f.write(E,b)?R():r=R},u._final=function(E){f.end(),i=E},f.on(\"drain\",function(){if(r){let E=r;r=null,E()}});else if(Rn(f)){let b=(be(f)?f.writable:f).getWriter();u._write=async function(R,w,A){try{await b.ready,b.write(R).catch(()=>{}),A()}catch(N){A(N)}},u._final=async function(R){try{await b.ready,b.close().catch(()=>{}),i=R}catch(w){R(w)}}}let h=be(d)?d.readable:d;Bu(h,()=>{if(i){let E=i;i=null,E()}})}if(_){if(_t(d))d.on(\"readable\",function(){if(l){let h=l;l=null,h()}}),d.on(\"end\",function(){u.push(null)}),u._read=function(){for(;;){let h=d.read();if(h===null){l=u._read;return}if(!u.push(h))return}};else if(Rn(d)){let E=(be(d)?d.readable:d).getReader();u._read=async function(){for(;;)try{let{value:b,done:R}=await E.read();if(!u.push(b))return;if(R){u.push(null);return}}catch{return}}}}return u._destroy=function(h,E){!h&&a!==null&&(h=new Fu),l=null,r=null,i=null,a===null?E(h):(a=E,_t(d)&&ju(d,h))},u},\"compose\")});var oo=T((vd,In)=>{\"use strict\";p();var Uu=globalThis.AbortController||(ge(),q(we)).AbortController,{codes:{ERR_INVALID_ARG_VALUE:Hu,ERR_INVALID_ARG_TYPE:ve,ERR_MISSING_ARGS:Gu,ERR_OUT_OF_RANGE:Vu},AbortError:V}=P(),{validateAbortSignal:pe,validateInteger:Xi,validateObject:_e}=Ee(),Yu=I().Symbol(\"kWeak\"),Ku=I().Symbol(\"kResistStopPropagation\"),{finished:zu}=K(),Xu=An(),{addAbortSignalNoValidate:Ju}=Le(),{isWritable:Qu,isNodeStream:Zu}=U(),{deprecate:es}=W(),{ArrayPrototypePush:ts,Boolean:ns,MathFloor:Ji,Number:rs,NumberIsNaN:is,Promise:Qi,PromiseReject:Zi,PromiseResolve:os,PromisePrototypeThen:eo,Symbol:no}=I(),yt=no(\"kEmpty\"),to=no(\"kEof\");function ls(e,t){if(t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),Zu(e)&&!Qu(e))throw new Hu(\"stream\",e,\"must be writable\");let n=Xu(this,e);return t!=null&&t.signal&&Ju(t.signal,n),n}o(ls,\"compose\");function wt(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\");let n=1;t?.concurrency!=null&&(n=Ji(t.concurrency));let r=n-1;return t?.highWaterMark!=null&&(r=Ji(t.highWaterMark)),Xi(n,\"options.concurrency\",1),Xi(r,\"options.highWaterMark\",0),r+=n,o(async function*(){let l=W().AbortSignalAny([t?.signal].filter(ns)),a=this,u=[],s={signal:l},f,d,c=!1,_=0;function h(){c=!0,E()}o(h,\"onCatch\");function E(){_-=1,b()}o(E,\"afterItemProcessed\");function b(){d&&!c&&_<n&&u.length<r&&(d(),d=null)}o(b,\"maybeResume\");async function R(){try{for await(let w of a){if(c)return;if(l.aborted)throw new V;try{if(w=e(w,s),w===yt)continue;w=os(w)}catch(A){w=Zi(A)}_+=1,eo(w,E,h),u.push(w),f&&(f(),f=null),!c&&(u.length>=r||_>=n)&&await new Qi(A=>{d=A})}u.push(to)}catch(w){let A=Zi(w);eo(A,E,h),u.push(A)}finally{c=!0,f&&(f(),f=null)}}o(R,\"pump\"),R();try{for(;;){for(;u.length>0;){let w=await u[0];if(w===to)return;if(l.aborted)throw new V;w!==yt&&(yield w),u.shift(),b()}await new Qi(w=>{f=w})}}finally{c=!0,d&&(d(),d=null)}},\"map\").call(this)}o(wt,\"map\");function as(e=void 0){return e!=null&&_e(e,\"options\"),e?.signal!=null&&pe(e.signal,\"options.signal\"),o(async function*(){let n=0;for await(let i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new V({cause:e.signal.reason});yield[n++,i]}},\"asIndexedPairs\").call(this)}o(as,\"asIndexedPairs\");async function ro(e,t=void 0){for await(let n of Tn.call(this,e,t))return!0;return!1}o(ro,\"some\");async function fs(e,t=void 0){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);return!await ro.call(this,async(...n)=>!await e(...n),t)}o(fs,\"every\");async function us(e,t){for await(let n of Tn.call(this,e,t))return n}o(us,\"find\");async function ss(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);async function n(r,i){return await e(r,i),yt}o(n,\"forEachFn\");for await(let r of wt.call(this,n,t));}o(ss,\"forEach\");function Tn(e,t){if(typeof e!=\"function\")throw new ve(\"fn\",[\"Function\",\"AsyncFunction\"],e);async function n(r,i){return await e(r,i)?r:yt}return o(n,\"filterFn\"),wt.call(this,n,t)}o(Tn,\"filter\");var mn=class extends Gu{static{o(this,\"ReduceAwareErrMissingArgs\")}constructor(){super(\"reduce\"),this.message=\"Reduce of an empty stream requires an initial value\"}};async function ds(e,t,n){var r;if(typeof e!=\"function\")throw new ve(\"reducer\",[\"Function\",\"AsyncFunction\"],e);n!=null&&_e(n,\"options\"),n?.signal!=null&&pe(n.signal,\"options.signal\");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let f=new V(void 0,{cause:n.signal.reason});throw this.once(\"error\",()=>{}),await zu(this.destroy(f)),f}let l=new Uu,a=l.signal;if(n!=null&&n.signal){let f={once:!0,[Yu]:this,[Ku]:!0};n.signal.addEventListener(\"abort\",()=>l.abort(),f)}let u=!1;try{for await(let f of this){var s;if(u=!0,n!=null&&(s=n.signal)!==null&&s!==void 0&&s.aborted)throw new V;i?t=await e(t,f,{signal:a}):(t=f,i=!0)}if(!u&&!i)throw new mn}finally{l.abort()}return t}o(ds,\"reduce\");async function cs(e){e!=null&&_e(e,\"options\"),e?.signal!=null&&pe(e.signal,\"options.signal\");let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new V(void 0,{cause:e.signal.reason});ts(t,r)}return t}o(cs,\"toArray\");function hs(e,t){let n=wt.call(this,e,t);return o(async function*(){for await(let i of n)yield*i},\"flatMap\").call(this)}o(hs,\"flatMap\");function io(e){if(e=rs(e),is(e))return 0;if(e<0)throw new Vu(\"number\",\">= 0\",e);return e}o(io,\"toIntegerOrInfinity\");function bs(e,t=void 0){return t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),e=io(e),o(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new V;for await(let l of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new V;e--<=0&&(yield l)}},\"drop\").call(this)}o(bs,\"drop\");function ps(e,t=void 0){return t!=null&&_e(t,\"options\"),t?.signal!=null&&pe(t.signal,\"options.signal\"),e=io(e),o(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new V;for await(let l of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new V;if(e-- >0&&(yield l),e<=0)return}},\"take\").call(this)}o(ps,\"take\");In.exports.streamReturningOperators={asIndexedPairs:es(as,\"readable.asIndexedPairs will be removed in a future version.\"),drop:bs,filter:Tn,flatMap:hs,map:wt,take:ps,compose:ls};In.exports.promiseReturningOperators={every:fs,forEach:ss,reduce:ds,toArray:cs,some:ro,find:us}});var yo=T((Hd,_o)=>{\"use strict\";p();var{Buffer:_s}=(ie(),q(re)),{ObjectDefineProperty:J,ObjectKeys:uo,ReflectApply:so}=I(),{promisify:{custom:co}}=W(),{streamReturningOperators:lo,promiseReturningOperators:ao}=oo(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:ho}}=P(),ys=An(),{setDefaultHighWaterMark:ws,getDefaultHighWaterMark:gs}=Pe(),{pipeline:bo}=bt(),{destroyer:Ss}=se(),po=K(),Mn=fo(),Be=U(),m=_o.exports=Qe().Stream;m.isDestroyed=Be.isDestroyed;m.isDisturbed=Be.isDisturbed;m.isErrored=Be.isErrored;m.isReadable=Be.isReadable;m.isWritable=Be.isWritable;m.Readable=We();for(let e of uo(lo)){let n=function(...r){if(new.target)throw ho();return m.Readable.from(so(t,this,r))};o(n,\"fn\");let t=lo[e];J(n,\"name\",{__proto__:null,value:t.name}),J(n,\"length\",{__proto__:null,value:t.length}),J(m.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of uo(ao)){let n=function(...r){if(new.target)throw ho();return so(t,this,r)};o(n,\"fn\");let t=ao[e];J(n,\"name\",{__proto__:null,value:t.name}),J(n,\"length\",{__proto__:null,value:t.length}),J(m.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}m.Writable=st();m.Duplex=G();m.Transform=sn();m.PassThrough=cn();m.pipeline=bo;var{addAbortSignal:Es}=Le();m.addAbortSignal=Es;m.finished=po;m.destroy=Ss;m.compose=ys;m.setDefaultHighWaterMark=ws;m.getDefaultHighWaterMark=gs;J(m,\"promises\",{__proto__:null,configurable:!0,enumerable:!0,get(){return Mn}});J(bo,co,{__proto__:null,enumerable:!0,get(){return Mn.pipeline}});J(po,co,{__proto__:null,enumerable:!0,get(){return Mn.finished}});m.Stream=m;m._isUint8Array=o(function(t){return t instanceof Uint8Array},\"isUint8Array\");m._uint8ArrayToBuffer=o(function(t){return _s.from(t.buffer,t.byteOffset,t.byteLength)},\"_uint8ArrayToBuffer\")});var fo=T((Yd,wo)=>{\"use strict\";p();var{ArrayPrototypePop:Rs,Promise:As}=I(),{isIterable:ms,isNodeStream:Ts,isWebStream:Is}=U(),{pipelineImpl:Ms}=bt(),{finished:ks}=K();yo();function Ns(...e){return new As((t,n)=>{let r,i,l=e[e.length-1];if(l&&typeof l==\"object\"&&!Ts(l)&&!ms(l)&&!Is(l)){let a=Rs(e);r=a.signal,i=a.end}Ms(e,(a,u)=>{a?n(a):t(u)},{signal:r,end:i})})}o(Ns,\"pipeline\");wo.exports={finished:ks,pipeline:Ns}});export{fo as a,yo as b};\n",
|
|
5521
5519
|
"engine/chunks/chunk-IQ3JZKJB.mjs": "var Qr=Object.create;var _=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var $r=Object.getOwnPropertyNames;var Kr=Object.getPrototypeOf,Zr=Object.prototype.hasOwnProperty;var a=(t,r)=>_(t,\"name\",{value:r,configurable:!0});var Y=(t,r,e)=>()=>{if(e)throw e[0];try{return t&&(r=t(t=0)),r}catch(i){throw e=[i],i}};var G=(t,r)=>()=>{try{return r||t((r={exports:{}}).exports,r),r.exports}catch(e){throw r=0,e}},nr=(t,r)=>{for(var e in r)_(t,e,{get:r[e],enumerable:!0})},or=(t,r,e,i)=>{if(r&&typeof r==\"object\"||typeof r==\"function\")for(let n of $r(r))!Zr.call(t,n)&&n!==e&&_(t,n,{get:()=>r[n],enumerable:!(i=Vr(r,n))||i.enumerable});return t};var Pr=(t,r,e)=>(e=t!=null?Qr(Kr(t)):{},or(r||!t||!t.__esModule?_(e,\"default\",{value:t,enumerable:!0}):e,t)),nt=t=>or(_({},\"__esModule\",{value:!0}),t);var Fe={};nr(Fe,{addListener:()=>ee,arch:()=>gr,argv:()=>te,binding:()=>sr,browser:()=>pr,chdir:()=>ie,cwd:()=>ne,default:()=>W,dlopen:()=>yr,emit:()=>oe,emitWarning:()=>hr,env:()=>ue,execArgv:()=>Br,execPath:()=>Ar,exit:()=>cr,features:()=>xr,kill:()=>wr,listeners:()=>ae,memoryUsage:()=>vr,nextTick:()=>fe,off:()=>pe,on:()=>he,once:()=>se,pid:()=>lr,platform:()=>Fr,prependListener:()=>ce,prependOnceListener:()=>le,removeAllListeners:()=>xe,removeListener:()=>we,title:()=>ye,umask:()=>me,uptime:()=>mr,uvCounters:()=>Er,version:()=>ve,versions:()=>Ee});function z(){throw new Error(\"setTimeout has not been defined\")}function J(){throw new Error(\"clearTimeout has not been defined\")}function ur(t){if(A===setTimeout)return setTimeout(t,0);if((A===z||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch{try{return A.call(null,t,0)}catch{return A.call(this,t,0)}}}function jr(t){if(B===clearTimeout)return clearTimeout(t);if((B===J||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch{try{return B.call(null,t)}catch{return B.call(this,t)}}}function re(){!R||!C||(R=!1,C.length?d=C.concat(d):q=-1,d.length&&ar())}function ar(){if(!R){var t=ur(re);R=!0;for(var r=d.length;r;){for(C=d,d=[];++q<r;)C&&C[q].run();q=-1,r=d.length}C=null,R=!1,jr(t)}}function fr(t,r){this.fun=t,this.array=r}function I(){}function S(){}var s,w,A,B,d,R,C,q,pr,hr,sr,cr,lr,xr,wr,yr,mr,vr,Er,Fr,gr,Ar,Br,W,ee,te,ie,ne,oe,ue,ae,fe,pe,he,se,ce,le,xe,we,ye,me,ve,Ee,Ur=Y(()=>{E();s={exports:{}},w=s.exports={};a(z,\"defaultSetTimout\");a(J,\"defaultClearTimeout\");(function(){try{typeof setTimeout==\"function\"?A=setTimeout:A=z}catch{A=z}try{typeof clearTimeout==\"function\"?B=clearTimeout:B=J}catch{B=J}})();a(ur,\"runTimeout\");a(jr,\"runClearTimeout\");d=[],R=!1,q=-1;a(re,\"cleanUpNextTick\");a(ar,\"drainQueue\");w.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];d.push(new fr(t,r)),d.length===1&&!R&&ur(ar)};a(fr,\"Item\");fr.prototype.run=function(){this.fun.apply(null,this.array)};w.title=\"browser\";w.browser=!0;w.env={};w.argv=[];w.version=\"\";w.versions={};a(I,\"noop$1\");w.on=I;w.addListener=I;w.once=I;w.off=I;w.removeListener=I;w.removeAllListeners=I;w.emit=I;w.prependListener=I;w.prependOnceListener=I;w.listeners=function(t){return[]};w.binding=function(t){throw new Error(\"process.binding is not supported\")};w.cwd=function(){return\"/\"};w.chdir=function(t){throw new Error(\"process.chdir is not supported\")};w.umask=function(){return 0};a(S,\"noop\");pr=s.exports.browser,hr=S,sr=s.exports.binding,cr=S,lr=1,xr={},wr=S,yr=S,mr=S,vr=S,Er=S,Fr=\"browser\",gr=\"browser\",Ar=\"browser\",Br=[],W={nextTick:s.exports.nextTick,title:s.exports.title,browser:pr,env:s.exports.env,argv:s.exports.argv,version:s.exports.version,versions:s.exports.versions,on:s.exports.on,addListener:s.exports.addListener,once:s.exports.once,off:s.exports.off,removeListener:s.exports.removeListener,removeAllListeners:s.exports.removeAllListeners,emit:s.exports.emit,emitWarning:hr,prependListener:s.exports.prependListener,prependOnceListener:s.exports.prependOnceListener,listeners:s.exports.listeners,binding:sr,cwd:s.exports.cwd,chdir:s.exports.chdir,umask:s.exports.umask,exit:cr,pid:lr,features:xr,kill:wr,dlopen:yr,uptime:mr,memoryUsage:vr,uvCounters:Er,platform:Fr,arch:gr,execPath:Ar,execArgv:Br},ee=s.exports.addListener,te=s.exports.argv,ie=s.exports.chdir,ne=s.exports.cwd,oe=s.exports.emit,ue=s.exports.env,ae=s.exports.listeners,fe=s.exports.nextTick,pe=s.exports.off,he=s.exports.on,se=s.exports.once,ce=s.exports.prependListener,le=s.exports.prependOnceListener,xe=s.exports.removeAllListeners,we=s.exports.removeListener,ye=s.exports.title,me=s.exports.umask,ve=s.exports.version,Ee=s.exports.versions});var process,Tr=Y(()=>{\"use strict\";E();Ur();W.nextTick=(t,...r)=>queueMicrotask(()=>t(...r));W.cwd=()=>\"/tmp\";process=W});var E=Y(()=>{\"use strict\";dr();Tr()});var Cr=G(O=>{\"use strict\";E();O.byteLength=Ae;O.toByteArray=Ue;O.fromByteArray=Ie;var U=[],F=[],ge=typeof Uint8Array<\"u\"?Uint8Array:Array,Q=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(k=0,Ir=Q.length;k<Ir;++k)U[k]=Q[k],F[Q.charCodeAt(k)]=k;var k,Ir;F[45]=62;F[95]=63;function Lr(t){var r=t.length;if(r%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var e=t.indexOf(\"=\");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}a(Lr,\"getLens\");function Ae(t){var r=Lr(t),e=r[0],i=r[1];return(e+i)*3/4-i}a(Ae,\"byteLength\");function Be(t,r,e){return(r+e)*3/4-e}a(Be,\"_byteLength\");function Ue(t){var r,e=Lr(t),i=e[0],n=e[1],o=new ge(Be(t,i,n)),u=0,p=n>0?i-4:i,h;for(h=0;h<p;h+=4)r=F[t.charCodeAt(h)]<<18|F[t.charCodeAt(h+1)]<<12|F[t.charCodeAt(h+2)]<<6|F[t.charCodeAt(h+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=F[t.charCodeAt(h)]<<2|F[t.charCodeAt(h+1)]>>4,o[u++]=r&255),n===1&&(r=F[t.charCodeAt(h)]<<10|F[t.charCodeAt(h+1)]<<4|F[t.charCodeAt(h+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}a(Ue,\"toByteArray\");function Te(t){return U[t>>18&63]+U[t>>12&63]+U[t>>6&63]+U[t&63]}a(Te,\"tripletToBase64\");function de(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),n.push(Te(i));return n.join(\"\")}a(de,\"encodeChunk\");function Ie(t){for(var r,e=t.length,i=e%3,n=[],o=16383,u=0,p=e-i;u<p;u+=o)n.push(de(t,u,u+o>p?p:u+o));return i===1?(r=t[e-1],n.push(U[r>>2]+U[r<<4&63]+\"==\")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(U[r>>10]+U[r>>4&63]+U[r<<2&63]+\"=\")),n.join(\"\")}a(Ie,\"fromByteArray\")});var Sr=G(V=>{E();/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */V.read=function(t,r,e,i,n){var o,u,p=n*8-i-1,h=(1<<p)-1,l=h>>1,x=-7,c=e?n-1:0,g=e?-1:1,v=t[r+c];for(c+=g,o=v&(1<<-x)-1,v>>=-x,x+=p;x>0;o=o*256+t[r+c],c+=g,x-=8);for(u=o&(1<<-x)-1,o>>=-x,x+=i;x>0;u=u*256+t[r+c],c+=g,x-=8);if(o===0)o=1-l;else{if(o===h)return u?NaN:(v?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-l}return(v?-1:1)*u*Math.pow(2,o-i)};V.write=function(t,r,e,i,n,o){var u,p,h,l=o*8-n-1,x=(1<<l)-1,c=x>>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=i?0:o-1,M=i?1:-1,Jr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,u=x):(u=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-u))<1&&(u--,h*=2),u+c>=1?r+=g/h:r+=g*Math.pow(2,1-c),r*h>=2&&(u++,h/=2),u+c>=x?(p=0,u=x):u+c>=1?(p=(r*h-1)*Math.pow(2,n),u=u+c):(p=r*Math.pow(2,c-1)*Math.pow(2,n),u=0));n>=8;t[e+v]=p&255,v+=M,p/=256,n-=8);for(u=u<<n|p,l+=n;l>0;t[e+v]=u&255,v+=M,u/=256,l-=8);t[e+v-M]|=Jr*128}});var Hr=G(N=>{\"use strict\";E();/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */var $=Cr(),D=Sr(),kr=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;N.Buffer=f;N.SlowBuffer=Me;N.INSPECT_MAX_BYTES=50;var X=2147483647;N.kMaxLength=X;f.TYPED_ARRAY_SUPPORT=Le();!f.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function Le(){try{var t=new Uint8Array(1),r={foo:a(function(){return 42},\"foo\")};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}a(Le,\"typedArraySupport\");Object.defineProperty(f.prototype,\"parent\",{enumerable:!0,get:a(function(){if(f.isBuffer(this))return this.buffer},\"get\")});Object.defineProperty(f.prototype,\"offset\",{enumerable:!0,get:a(function(){if(f.isBuffer(this))return this.byteOffset},\"get\")});function L(t){if(t>X)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,f.prototype),r}a(L,\"createBuffer\");function f(t,r,e){if(typeof t==\"number\"){if(typeof r==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return j(t)}return Rr(t,r,e)}a(f,\"Buffer\");f.poolSize=8192;function Rr(t,r,e){if(typeof t==\"string\")return Se(t,r);if(ArrayBuffer.isView(t))return ke(t);if(t==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return Z(t,r,e);if(typeof t==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return f.from(i,r,e);var n=be(t);if(n)return n;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\"function\")return f.from(t[Symbol.toPrimitive](\"string\"),r,e);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}a(Rr,\"from\");f.from=function(t,r,e){return Rr(t,r,e)};Object.setPrototypeOf(f.prototype,Uint8Array.prototype);Object.setPrototypeOf(f,Uint8Array);function Dr(t){if(typeof t!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(t<0)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"')}a(Dr,\"assertSize\");function Ce(t,r,e){return Dr(t),t<=0?L(t):r!==void 0?typeof e==\"string\"?L(t).fill(r,e):L(t).fill(r):L(t)}a(Ce,\"alloc\");f.alloc=function(t,r,e){return Ce(t,r,e)};function j(t){return Dr(t),L(t<0?0:rr(t)|0)}a(j,\"allocUnsafe\");f.allocUnsafe=function(t){return j(t)};f.allocUnsafeSlow=function(t){return j(t)};function Se(t,r){if((typeof r!=\"string\"||r===\"\")&&(r=\"utf8\"),!f.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r);var e=Nr(t,r)|0,i=L(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}a(Se,\"fromString\");function K(t){for(var r=t.length<0?0:rr(t.length)|0,e=L(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}a(K,\"fromArrayLike\");function ke(t){if(T(t,Uint8Array)){var r=new Uint8Array(t);return Z(r.buffer,r.byteOffset,r.byteLength)}return K(t)}a(ke,\"fromArrayView\");function Z(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('\"offset\" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,f.prototype),i}a(Z,\"fromArrayBuffer\");function be(t){if(f.isBuffer(t)){var r=rr(t.length)|0,e=L(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!=\"number\"||er(t.length)?L(0):K(t);if(t.type===\"Buffer\"&&Array.isArray(t.data))return K(t.data)}a(be,\"fromObject\");function rr(t){if(t>=X)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+X.toString(16)+\" bytes\");return t|0}a(rr,\"checked\");function Me(t){return+t!=t&&(t=0),f.alloc(+t)}a(Me,\"SlowBuffer\");f.isBuffer=a(function(r){return r!=null&&r._isBuffer===!0&&r!==f.prototype},\"isBuffer\");f.compare=a(function(r,e){if(T(r,Uint8Array)&&(r=f.from(r,r.offset,r.byteLength)),T(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(r)||!f.isBuffer(e))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0},\"compare\");f.isEncoding=a(function(r){switch(String(r).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}},\"isEncoding\");f.concat=a(function(r,e){if(!Array.isArray(r))throw new TypeError('\"list\" argument must be an Array of Buffers');if(r.length===0)return f.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=f.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var u=r[i];if(T(u,Uint8Array))o+u.length>n.length?f.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(f.isBuffer(u))u.copy(n,o);else throw new TypeError('\"list\" argument must be an Array of Buffers');o+=u.length}return n},\"concat\");function Nr(t,r){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if(typeof t!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case\"ascii\":case\"latin1\":case\"binary\":return e;case\"utf8\":case\"utf-8\":return P(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return e*2;case\"hex\":return e>>>1;case\"base64\":return Xr(t).length;default:if(n)return i?-1:P(t).length;r=(\"\"+r).toLowerCase(),n=!0}}a(Nr,\"byteLength\");f.byteLength=Nr;function Re(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return Ge(this,r,e);case\"utf8\":case\"utf-8\":return Wr(this,r,e);case\"ascii\":return Xe(this,r,e);case\"latin1\":case\"binary\":return He(this,r,e);case\"base64\":return qe(this,r,e);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return ze(this,r,e);default:if(i)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),i=!0}}a(Re,\"slowToString\");f.prototype._isBuffer=!0;function b(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}a(b,\"swap\");f.prototype.swap16=a(function(){var r=this.length;if(r%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<r;e+=2)b(this,e,e+1);return this},\"swap16\");f.prototype.swap32=a(function(){var r=this.length;if(r%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<r;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},\"swap32\");f.prototype.swap64=a(function(){var r=this.length;if(r%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<r;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},\"swap64\");f.prototype.toString=a(function(){var r=this.length;return r===0?\"\":arguments.length===0?Wr(this,0,r):Re.apply(this,arguments)},\"toString\");f.prototype.toLocaleString=f.prototype.toString;f.prototype.equals=a(function(r){if(!f.isBuffer(r))throw new TypeError(\"Argument must be a Buffer\");return this===r?!0:f.compare(this,r)===0},\"equals\");f.prototype.inspect=a(function(){var r=\"\",e=N.INSPECT_MAX_BYTES;return r=this.toString(\"hex\",0,e).replace(/(.{2})/g,\"$1 \").trim(),this.length>e&&(r+=\" ... \"),\"<Buffer \"+r+\">\"},\"inspect\");kr&&(f.prototype[kr]=f.prototype.inspect);f.prototype.compare=a(function(r,e,i,n,o){if(T(r,Uint8Array)&&(r=f.from(r,r.offset,r.byteLength)),!f.isBuffer(r))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError(\"out of range index\");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,p=i-e,h=Math.min(u,p),l=this.slice(n,o),x=r.slice(e,i),c=0;c<h;++c)if(l[c]!==x[c]){u=l[c],p=x[c];break}return u<p?-1:p<u?1:0},\"compare\");function _r(t,r,e,i,n){if(t.length===0)return-1;if(typeof e==\"string\"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,er(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r==\"string\"&&(r=f.from(r,i)),f.isBuffer(r))return r.length===0?-1:br(t,r,e,i,n);if(typeof r==\"number\")return r=r&255,typeof Uint8Array.prototype.indexOf==\"function\"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):br(t,[r],e,i,n);throw new TypeError(\"val must be string, number or Buffer\")}a(_r,\"bidirectionalIndexOf\");function br(t,r,e,i,n){var o=1,u=t.length,p=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i===\"ucs2\"||i===\"ucs-2\"||i===\"utf16le\"||i===\"utf-16le\")){if(t.length<2||r.length<2)return-1;o=2,u/=2,p/=2,e/=2}function h(v,M){return o===1?v[M]:v.readUInt16BE(M*o)}a(h,\"read\");var l;if(n){var x=-1;for(l=e;l<u;l++)if(h(t,l)===h(r,x===-1?0:l-x)){if(x===-1&&(x=l),l-x+1===p)return x*o}else x!==-1&&(l-=l-x),x=-1}else for(e+p>u&&(e=u-p),l=e;l>=0;l--){for(var c=!0,g=0;g<p;g++)if(h(t,l+g)!==h(r,g)){c=!1;break}if(c)return l}return-1}a(br,\"arrayIndexOf\");f.prototype.includes=a(function(r,e,i){return this.indexOf(r,e,i)!==-1},\"includes\");f.prototype.indexOf=a(function(r,e,i){return _r(this,r,e,i,!0)},\"indexOf\");f.prototype.lastIndexOf=a(function(r,e,i){return _r(this,r,e,i,!1)},\"lastIndexOf\");function De(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var p=parseInt(r.substr(u*2,2),16);if(er(p))return u;t[e+u]=p}return u}a(De,\"hexWrite\");function Ne(t,r,e,i){return H(P(r,t.length-e),t,e,i)}a(Ne,\"utf8Write\");function _e(t,r,e,i){return H(Ve(r),t,e,i)}a(_e,\"asciiWrite\");function We(t,r,e,i){return H(Xr(r),t,e,i)}a(We,\"base64Write\");function Ye(t,r,e,i){return H($e(r,t.length-e),t,e,i)}a(Ye,\"ucs2Write\");f.prototype.write=a(function(r,e,i,n){if(e===void 0)n=\"utf8\",i=this.length,e=0;else if(i===void 0&&typeof e==\"string\")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n=\"utf8\")):(n=i,i=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var u=!1;;)switch(n){case\"hex\":return De(this,r,e,i);case\"utf8\":case\"utf-8\":return Ne(this,r,e,i);case\"ascii\":case\"latin1\":case\"binary\":return _e(this,r,e,i);case\"base64\":return We(this,r,e,i);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Ye(this,r,e,i);default:if(u)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),u=!0}},\"write\");f.prototype.toJSON=a(function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},\"toJSON\");function qe(t,r,e){return r===0&&e===t.length?$.fromByteArray(t):$.fromByteArray(t.slice(r,e))}a(qe,\"base64Slice\");function Wr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],u=null,p=o>239?4:o>223?3:o>191?2:1;if(n+p<=e){var h,l,x,c;switch(p){case 1:o<128&&(u=o);break;case 2:h=t[n+1],(h&192)===128&&(c=(o&31)<<6|h&63,c>127&&(u=c));break;case 3:h=t[n+1],l=t[n+2],(h&192)===128&&(l&192)===128&&(c=(o&15)<<12|(h&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:h=t[n+1],l=t[n+2],x=t[n+3],(h&192)===128&&(l&192)===128&&(x&192)===128&&(c=(o&15)<<18|(h&63)<<12|(l&63)<<6|x&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=p}return Oe(i)}a(Wr,\"utf8Slice\");var Mr=4096;function Oe(t){var r=t.length;if(r<=Mr)return String.fromCharCode.apply(String,t);for(var e=\"\",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=Mr));return e}a(Oe,\"decodeCodePointsArray\");function Xe(t,r,e){var i=\"\";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}a(Xe,\"asciiSlice\");function He(t,r,e){var i=\"\";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}a(He,\"latin1Slice\");function Ge(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n=\"\",o=r;o<e;++o)n+=Ke[t[o]];return n}a(Ge,\"hexSlice\");function ze(t,r,e){for(var i=t.slice(r,e),n=\"\",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a(ze,\"utf16leSlice\");f.prototype.slice=a(function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,f.prototype),n},\"slice\");function y(t,r,e){if(t%1!==0||t<0)throw new RangeError(\"offset is not uint\");if(t+r>e)throw new RangeError(\"Trying to access beyond buffer length\")}a(y,\"checkOffset\");f.prototype.readUintLE=f.prototype.readUIntLE=a(function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return n},\"readUIntLE\");f.prototype.readUintBE=f.prototype.readUIntBE=a(function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n},\"readUIntBE\");f.prototype.readUint8=f.prototype.readUInt8=a(function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]},\"readUInt8\");f.prototype.readUint16LE=f.prototype.readUInt16LE=a(function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]|this[r+1]<<8},\"readUInt16LE\");f.prototype.readUint16BE=f.prototype.readUInt16BE=a(function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]<<8|this[r+1]},\"readUInt16BE\");f.prototype.readUint32LE=f.prototype.readUInt32LE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},\"readUInt32LE\");f.prototype.readUint32BE=f.prototype.readUInt32BE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},\"readUInt32BE\");f.prototype.readIntLE=a(function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},\"readIntLE\");f.prototype.readIntBE=a(function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=e,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u},\"readIntBE\");f.prototype.readInt8=a(function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},\"readInt8\");f.prototype.readInt16LE=a(function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i},\"readInt16LE\");f.prototype.readInt16BE=a(function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i},\"readInt16BE\");f.prototype.readInt32LE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},\"readInt32LE\");f.prototype.readInt32BE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},\"readInt32BE\");f.prototype.readFloatLE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),D.read(this,r,!0,23,4)},\"readFloatLE\");f.prototype.readFloatBE=a(function(r,e){return r=r>>>0,e||y(r,4,this.length),D.read(this,r,!1,23,4)},\"readFloatBE\");f.prototype.readDoubleLE=a(function(r,e){return r=r>>>0,e||y(r,8,this.length),D.read(this,r,!0,52,8)},\"readDoubleLE\");f.prototype.readDoubleBE=a(function(r,e){return r=r>>>0,e||y(r,8,this.length),D.read(this,r,!1,52,8)},\"readDoubleBE\");function m(t,r,e,i,n,o){if(!f.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('\"value\" argument is out of bounds');if(e+i>t.length)throw new RangeError(\"Index out of range\")}a(m,\"checkInt\");f.prototype.writeUintLE=f.prototype.writeUIntLE=a(function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;m(this,r,e,i,o,0)}var u=1,p=0;for(this[e]=r&255;++p<i&&(u*=256);)this[e+p]=r/u&255;return e+i},\"writeUIntLE\");f.prototype.writeUintBE=f.prototype.writeUIntBE=a(function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;m(this,r,e,i,o,0)}var u=i-1,p=1;for(this[e+u]=r&255;--u>=0&&(p*=256);)this[e+u]=r/p&255;return e+i},\"writeUIntBE\");f.prototype.writeUint8=f.prototype.writeUInt8=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,1,255,0),this[e]=r&255,e+1},\"writeUInt8\");f.prototype.writeUint16LE=f.prototype.writeUInt16LE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},\"writeUInt16LE\");f.prototype.writeUint16BE=f.prototype.writeUInt16BE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},\"writeUInt16BE\");f.prototype.writeUint32LE=f.prototype.writeUInt32LE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},\"writeUInt32LE\");f.prototype.writeUint32BE=f.prototype.writeUInt32BE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},\"writeUInt32BE\");f.prototype.writeIntLE=a(function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);m(this,r,e,i,o-1,-o)}var u=0,p=1,h=0;for(this[e]=r&255;++u<i&&(p*=256);)r<0&&h===0&&this[e+u-1]!==0&&(h=1),this[e+u]=(r/p>>0)-h&255;return e+i},\"writeIntLE\");f.prototype.writeIntBE=a(function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);m(this,r,e,i,o-1,-o)}var u=i-1,p=1,h=0;for(this[e+u]=r&255;--u>=0&&(p*=256);)r<0&&h===0&&this[e+u+1]!==0&&(h=1),this[e+u]=(r/p>>0)-h&255;return e+i},\"writeIntBE\");f.prototype.writeInt8=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},\"writeInt8\");f.prototype.writeInt16LE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},\"writeInt16LE\");f.prototype.writeInt16BE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},\"writeInt16BE\");f.prototype.writeInt32LE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},\"writeInt32LE\");f.prototype.writeInt32BE=a(function(r,e,i){return r=+r,e=e>>>0,i||m(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},\"writeInt32BE\");function Yr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError(\"Index out of range\");if(e<0)throw new RangeError(\"Index out of range\")}a(Yr,\"checkIEEE754\");function qr(t,r,e,i,n){return r=+r,e=e>>>0,n||Yr(t,r,e,4,34028234663852886e22,-34028234663852886e22),D.write(t,r,e,i,23,4),e+4}a(qr,\"writeFloat\");f.prototype.writeFloatLE=a(function(r,e,i){return qr(this,r,e,!0,i)},\"writeFloatLE\");f.prototype.writeFloatBE=a(function(r,e,i){return qr(this,r,e,!1,i)},\"writeFloatBE\");function Or(t,r,e,i,n){return r=+r,e=e>>>0,n||Yr(t,r,e,8,17976931348623157e292,-17976931348623157e292),D.write(t,r,e,i,52,8),e+8}a(Or,\"writeDouble\");f.prototype.writeDoubleLE=a(function(r,e,i){return Or(this,r,e,!0,i)},\"writeDoubleLE\");f.prototype.writeDoubleBE=a(function(r,e,i){return Or(this,r,e,!1,i)},\"writeDoubleBE\");f.prototype.copy=a(function(r,e,i,n){if(!f.isBuffer(r))throw new TypeError(\"argument should be a Buffer\");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(i<0||i>=this.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),o},\"copy\");f.prototype.fill=a(function(r,e,i,n){if(typeof r==\"string\"){if(typeof e==\"string\"?(n=e,e=0,i=this.length):typeof i==\"string\"&&(n=i,i=this.length),n!==void 0&&typeof n!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof n==\"string\"&&!f.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n);if(r.length===1){var o=r.charCodeAt(0);(n===\"utf8\"&&o<128||n===\"latin1\")&&(r=o)}}else typeof r==\"number\"?r=r&255:typeof r==\"boolean\"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError(\"Out of range index\");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r==\"number\")for(u=e;u<i;++u)this[u]=r;else{var p=f.isBuffer(r)?r:f.from(r,n),h=p.length;if(h===0)throw new TypeError('The value \"'+r+'\" is invalid for argument \"value\"');for(u=0;u<i-e;++u)this[u+e]=p[u%h]}return this},\"fill\");var Je=/[^+/0-9A-Za-z-_]/g;function Qe(t){if(t=t.split(\"=\")[0],t=t.trim().replace(Je,\"\"),t.length<2)return\"\";for(;t.length%4!==0;)t=t+\"=\";return t}a(Qe,\"base64clean\");function P(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],u=0;u<i;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error(\"Invalid code point\")}return o}a(P,\"utf8ToBytes\");function Ve(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}a(Ve,\"asciiToBytes\");function $e(t,r){for(var e,i,n,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),i=e>>8,n=e%256,o.push(n),o.push(i);return o}a($e,\"utf16leToBytes\");function Xr(t){return $.toByteArray(Qe(t))}a(Xr,\"base64ToBytes\");function H(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}a(H,\"blitBuffer\");function T(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}a(T,\"isInstance\");function er(t){return t!==t}a(er,\"numberIsNaN\");var Ke=(function(){for(var t=\"0123456789abcdef\",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r})()});var it={};nr(it,{Buffer:()=>Buffer,INSPECT_MAX_BYTES:()=>je,SlowBuffer:()=>Pe,default:()=>tt,kMaxLength:()=>rt});import{binary as Ze,primitive as ir}from\"../web.mjs\";var tr,Buffer,Pe,je,rt,Gr,et,zr,tt,dr=Y(()=>{\"use strict\";E();tr=Pr(Hr(),1),{Buffer,SlowBuffer:Pe,INSPECT_MAX_BYTES:je,kMaxLength:rt}=tr.default,Gr=Buffer.from,et=Buffer.prototype.toString,zr=Buffer.byteLength;Buffer.from=function(t,r,e){if(typeof t!=\"string\")return Gr(t,r,e);if((typeof r!=\"string\"||r===\"\")&&(r=\"utf8\"),!Buffer.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r);return Gr(ir(\"buffer.from\",{text:t,encoding:r.toLowerCase()}))};Buffer.prototype.toString=function(t,r,e){if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(r>>>=0,e>>>=0,e<=r))return\"\";if(t=t?(t+\"\").toLowerCase():\"utf8\",!Buffer.isEncoding(t))return et.call(this,t,r,e);let i=Ze(this.subarray(r,e));return ir(\"buffer.toString\",{encoding:t,offset:i.offset,length:i.length},i.buffer)};Buffer.byteLength=function(t,r,e){if(typeof t!=\"string\")return zr(t,r,e);if(r=(r+\"\").toLowerCase(),!Buffer.isEncoding(r)){if(e===!0)return-1;r=\"utf8\"}return r!==\"utf8\"&&r!==\"utf-8\"&&r!==\"base64\"?zr(t,r,e):ir(\"buffer.byteLength\",{text:t,encoding:r})};tt=tr.default});export{a,Y as b,G as c,nr as d,Pr as e,nt as f,Buffer as g,tt as h,it as i,dr as j,Fe as k,Ur as l,process as m,Tr as n,E as o};\n",
|
|
5522
|
-
"engine/chunks/chunk-
|
|
5520
|
+
"engine/chunks/chunk-MDRNMNJQ.mjs": "import{a as o,b as i}from\"./chunk-4Y6DVSR7.mjs\";import{c as t,o as s}from\"./chunk-IQ3JZKJB.mjs\";var d=t((x,e)=>{\"use strict\";s();var r=i(),a=o(),p=r.Readable.destroy;e.exports=r.Readable;e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer;e.exports._isUint8Array=r._isUint8Array;e.exports.isDisturbed=r.isDisturbed;e.exports.isErrored=r.isErrored;e.exports.isReadable=r.isReadable;e.exports.Readable=r.Readable;e.exports.Writable=r.Writable;e.exports.Duplex=r.Duplex;e.exports.Transform=r.Transform;e.exports.PassThrough=r.PassThrough;e.exports.addAbortSignal=r.addAbortSignal;e.exports.finished=r.finished;e.exports.destroy=r.destroy;e.exports.destroy=p;e.exports.pipeline=r.pipeline;e.exports.compose=r.compose;Object.defineProperty(r,\"promises\",{configurable:!0,enumerable:!0,get(){return a}});e.exports.Stream=r.Stream;e.exports.default=e.exports});export{d as a};\n",
|
|
5523
5521
|
"engine/chunks/chunk-P4O57R5Z.mjs": "import{a as u,c as y,m as process,o as C}from\"./chunk-IQ3JZKJB.mjs\";var S=y((P,h)=>{\"use strict\";C();function g(o){if(typeof o!=\"string\")throw new TypeError(\"Path must be a string. Received \"+JSON.stringify(o))}u(g,\"assertPath\");function b(o,e){for(var r=\"\",i=0,l=-1,t=0,n,f=0;f<=o.length;++f){if(f<o.length)n=o.charCodeAt(f);else{if(n===47)break;n=47}if(n===47){if(!(l===f-1||t===1))if(l!==f-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf(\"/\");if(s!==r.length-1){s===-1?(r=\"\",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf(\"/\")),l=f,t=0;continue}}else if(r.length===2||r.length===1){r=\"\",i=0,l=f,t=0;continue}}e&&(r.length>0?r+=\"/..\":r=\"..\",i=2)}else r.length>0?r+=\"/\"+o.slice(l+1,f):r=o.slice(l+1,f),i=f-l-1;l=f,t=0}else n===46&&t!==-1?++t:t=-1}return r}u(b,\"normalizeStringPosix\");function w(o,e){var r=e.dir||e.root,i=e.base||(e.name||\"\")+(e.ext||\"\");return r?r===e.root?r+i:r+o+i:i}u(w,\"_format\");var d={resolve:u(function(){for(var e=\"\",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){var t;l>=0?t=arguments[l]:(i===void 0&&(i=process.cwd()),t=i),g(t),t.length!==0&&(e=t+\"/\"+e,r=t.charCodeAt(0)===47)}return e=b(e,!r),r?e.length>0?\"/\"+e:\"/\":e.length>0?e:\".\"},\"resolve\"),normalize:u(function(e){if(g(e),e.length===0)return\".\";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=b(e,!r),e.length===0&&!r&&(e=\".\"),e.length>0&&i&&(e+=\"/\"),r?\"/\"+e:e},\"normalize\"),isAbsolute:u(function(e){return g(e),e.length>0&&e.charCodeAt(0)===47},\"isAbsolute\"),join:u(function(){if(arguments.length===0)return\".\";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];g(i),i.length>0&&(e===void 0?e=i:e+=\"/\"+i)}return e===void 0?\".\":d.normalize(e)},\"join\"),relative:u(function(e,r){if(g(e),g(r),e===r||(e=d.resolve(e),r=d.resolve(r),e===r))return\"\";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var l=e.length,t=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var f=r.length,s=f-n,c=t<s?t:s,v=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>c&&(e.charCodeAt(i+a)===47?v=a:a===0&&(v=0));break}var A=e.charCodeAt(i+a),k=r.charCodeAt(n+a);if(A!==k)break;A===47&&(v=a)}var m=\"\";for(a=i+v+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(m.length===0?m+=\"..\":m+=\"/..\");return m.length>0?m+r.slice(n+v):(n+=v,r.charCodeAt(n)===47&&++n,r.slice(n))},\"relative\"),_makeLong:u(function(e){return e},\"_makeLong\"),dirname:u(function(e){if(g(e),e.length===0)return\".\";for(var r=e.charCodeAt(0),i=r===47,l=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){l=n;break}}else t=!1;return l===-1?i?\"/\":\".\":i&&l===1?\"//\":e.slice(0,l)},\"dirname\"),basename:u(function(e,r){if(r!==void 0&&typeof r!=\"string\")throw new TypeError('\"ext\" argument must be a string');g(e);var i=0,l=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return\"\";var f=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(l=n):(f=-1,l=s))}return i===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else l===-1&&(t=!1,l=n+1);return l===-1?\"\":e.slice(i,l)}},\"basename\"),extname:u(function(e){g(e);for(var r=-1,i=0,l=-1,t=!0,n=0,f=e.length-1;f>=0;--f){var s=e.charCodeAt(f);if(s===47){if(!t){i=f+1;break}continue}l===-1&&(t=!1,l=f+1),s===46?r===-1?r=f:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?\"\":e.slice(r,l)},\"extname\"),format:u(function(e){if(e===null||typeof e!=\"object\")throw new TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof e);return w(\"/\",e)},\"format\"),parse:u(function(e){g(e);var r={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(e.length===0)return r;var i=e.charCodeAt(0),l=i===47,t;l?(r.root=\"/\",t=1):t=0;for(var n=-1,f=0,s=-1,c=!0,v=e.length-1,a=0;v>=t;--v){if(i=e.charCodeAt(v),i===47){if(!c){f=v+1;break}continue}s===-1&&(c=!1,s=v+1),i===46?n===-1?n=v:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===f+1?s!==-1&&(f===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(f,s)):(f===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(f,n),r.base=e.slice(f,s)),r.ext=e.slice(n,s)),f>0?r.dir=e.slice(0,f-1):l&&(r.dir=\"/\"),r},\"parse\"),sep:\"/\",delimiter:\":\",win32:null,posix:null};d.posix=d;h.exports=d});export{S as a};\n",
|
|
5524
5522
|
"engine/chunks/chunk-PHIKFVJN.mjs": "import{b as $r,c as Vr,d as we,f as G}from\"./chunk-RAKQLW7K.mjs\";import{b as Dr,f as Mr,m as Fr,n as Lr}from\"./chunk-WHKCMYPO.mjs\";import{a as i,c as v,m as process,o as g}from\"./chunk-IQ3JZKJB.mjs\";var je=v((Ro,ke)=>{\"use strict\";g();function I(t){\"@babel/helpers - typeof\";return I=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},I(t)}i(I,\"_typeof\");function We(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Ur(n.key),n)}}i(We,\"_defineProperties\");function Gr(t,e,r){return e&&We(t.prototype,e),r&&We(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}i(Gr,\"_createClass\");function Ur(t){var e=Br(t,\"string\");return I(e)===\"symbol\"?e:String(e)}i(Ur,\"_toPropertyKey\");function Br(t,e){if(I(t)!==\"object\"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||\"default\");if(I(n)!==\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(e===\"string\"?String:Number)(t)}i(Br,\"_toPrimitive\");function zr(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}i(zr,\"_classCallCheck\");function Wr(t,e){if(typeof e!=\"function\"&&e!==null)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&Se(t,e)}i(Wr,\"_inherits\");function Se(t,e){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():i(function(n,o){return n.__proto__=o,n},\"_setPrototypeOf\"),Se(t,e)}i(Se,\"_setPrototypeOf\");function Yr(t){var e=Xr();return i(function(){var n=te(t),o;if(e){var a=te(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return Hr(this,o)},\"_createSuperInternal\")}i(Yr,\"_createSuper\");function Hr(t,e){if(e&&(I(e)===\"object\"||typeof e==\"function\"))return e;if(e!==void 0)throw new TypeError(\"Derived constructors may only return object or undefined\");return kr(t)}i(Hr,\"_possibleConstructorReturn\");function kr(t){if(t===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}i(kr,\"_assertThisInitialized\");function Xr(){if(typeof Reflect>\"u\"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==\"function\")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}i(Xr,\"_isNativeReflectConstruct\");function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():i(function(r){return r.__proto__||Object.getPrototypeOf(r)},\"_getPrototypeOf\"),te(t)}i(te,\"_getPrototypeOf\");var He={},F,Oe;function U(t,e,r){r||(r=Error);function n(a,u,c){return typeof e==\"string\"?e:e(a,u,c)}i(n,\"getMessage\");var o=(function(a){Wr(c,a);var u=Yr(c);function c(l,f,s){var p;return zr(this,c),p=u.call(this,n(l,f,s)),p.code=t,p}return i(c,\"NodeError\"),Gr(c)})(r);He[t]=o}i(U,\"createErrorType\");function Ye(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?\"one of \".concat(e,\" \").concat(t.slice(0,r-1).join(\", \"),\", or \")+t[r-1]:r===2?\"one of \".concat(e,\" \").concat(t[0],\" or \").concat(t[1]):\"of \".concat(e,\" \").concat(t[0])}else return\"of \".concat(e,\" \").concat(String(t))}i(Ye,\"oneOf\");function Jr(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}i(Jr,\"startsWith\");function Qr(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}i(Qr,\"endsWith\");function Zr(t,e,r){return typeof r!=\"number\"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}i(Zr,\"includes\");U(\"ERR_AMBIGUOUS_ARGUMENT\",'The \"%s\" argument is ambiguous. %s',TypeError);U(\"ERR_INVALID_ARG_TYPE\",function(t,e,r){F===void 0&&(F=qe()),F(typeof t==\"string\",\"'name' must be a string\");var n;typeof e==\"string\"&&Jr(e,\"not \")?(n=\"must not be\",e=e.replace(/^not /,\"\")):n=\"must be\";var o;if(Qr(t,\" argument\"))o=\"The \".concat(t,\" \").concat(n,\" \").concat(Ye(e,\"type\"));else{var a=Zr(t,\".\")?\"property\":\"argument\";o='The \"'.concat(t,'\" ').concat(a,\" \").concat(n,\" \").concat(Ye(e,\"type\"))}return o+=\". Received type \".concat(I(r)),o},TypeError);U(\"ERR_INVALID_ARG_VALUE\",function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:\"is invalid\";Oe===void 0&&(Oe=G());var n=Oe.inspect(e);return n.length>128&&(n=\"\".concat(n.slice(0,128),\"...\")),\"The argument '\".concat(t,\"' \").concat(r,\". Received \").concat(n)},TypeError,RangeError);U(\"ERR_INVALID_RETURN_VALUE\",function(t,e,r){var n;return r&&r.constructor&&r.constructor.name?n=\"instance of \".concat(r.constructor.name):n=\"type \".concat(I(r)),\"Expected \".concat(t,' to be returned from the \"').concat(e,'\"')+\" function but got \".concat(n,\".\")},TypeError);U(\"ERR_MISSING_ARGS\",function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];F===void 0&&(F=qe()),F(e.length>0,\"At least one arg needs to be specified\");var n=\"The \",o=e.length;switch(e=e.map(function(a){return'\"'.concat(a,'\"')}),o){case 1:n+=\"\".concat(e[0],\" argument\");break;case 2:n+=\"\".concat(e[0],\" and \").concat(e[1],\" arguments\");break;default:n+=e.slice(0,o-1).join(\", \"),n+=\", and \".concat(e[o-1],\" arguments\");break}return\"\".concat(n,\" must be specified\")},TypeError);ke.exports.codes=He});var nt=v((Ao,rt)=>{\"use strict\";g();function Xe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}i(Xe,\"ownKeys\");function Je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(r),!0).forEach(function(n){Kr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}i(Je,\"_objectSpread\");function Kr(t,e,r){return e=Ce(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}i(Kr,\"_defineProperty\");function Cr(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}i(Cr,\"_classCallCheck\");function Qe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Ce(n.key),n)}}i(Qe,\"_defineProperties\");function en(t,e,r){return e&&Qe(t.prototype,e),r&&Qe(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}i(en,\"_createClass\");function Ce(t){var e=tn(t,\"string\");return O(e)===\"symbol\"?e:String(e)}i(Ce,\"_toPropertyKey\");function tn(t,e){if(O(t)!==\"object\"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||\"default\");if(O(n)!==\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(e===\"string\"?String:Number)(t)}i(tn,\"_toPrimitive\");function rn(t,e){if(typeof e!=\"function\"&&e!==null)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&Y(t,e)}i(rn,\"_inherits\");function nn(t){var e=tt();return i(function(){var n=H(t),o;if(e){var a=H(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return et(this,o)},\"_createSuperInternal\")}i(nn,\"_createSuper\");function et(t,e){if(e&&(O(e)===\"object\"||typeof e==\"function\"))return e;if(e!==void 0)throw new TypeError(\"Derived constructors may only return object or undefined\");return Re(t)}i(et,\"_possibleConstructorReturn\");function Re(t){if(t===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}i(Re,\"_assertThisInitialized\");function Pe(t){var e=typeof Map==\"function\"?new Map:void 0;return Pe=i(function(n){if(n===null||!on(n))return n;if(typeof n!=\"function\")throw new TypeError(\"Super expression must either be null or a function\");if(typeof e<\"u\"){if(e.has(n))return e.get(n);e.set(n,o)}function o(){return re(n,arguments,H(this).constructor)}return i(o,\"Wrapper\"),o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Y(o,n)},\"_wrapNativeSuper\"),Pe(t)}i(Pe,\"_wrapNativeSuper\");function re(t,e,r){return tt()?re=Reflect.construct.bind():re=i(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),f=new l;return u&&Y(f,u.prototype),f},\"_construct\"),re.apply(null,arguments)}i(re,\"_construct\");function tt(){if(typeof Reflect>\"u\"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==\"function\")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}i(tt,\"_isNativeReflectConstruct\");function on(t){return Function.toString.call(t).indexOf(\"[native code]\")!==-1}i(on,\"_isNativeFunction\");function Y(t,e){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():i(function(n,o){return n.__proto__=o,n},\"_setPrototypeOf\"),Y(t,e)}i(Y,\"_setPrototypeOf\");function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():i(function(r){return r.__proto__||Object.getPrototypeOf(r)},\"_getPrototypeOf\"),H(t)}i(H,\"_getPrototypeOf\");function O(t){\"@babel/helpers - typeof\";return O=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},O(t)}i(O,\"_typeof\");var an=G(),Ne=an.inspect,un=je(),cn=un.codes.ERR_INVALID_ARG_TYPE;function Ze(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}i(Ze,\"endsWith\");function fn(t,e){if(e=Math.floor(e),t.length==0||e==0)return\"\";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+=t.substring(0,r-t.length),t}i(fn,\"repeat\");var R=\"\",B=\"\",z=\"\",E=\"\",M={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:\"},ln=10;function Ke(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(n){r[n]=t[n]}),Object.defineProperty(r,\"message\",{value:t.message}),r}i(Ke,\"copyError\");function W(t){return Ne(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}i(W,\"inspectValue\");function sn(t,e,r){var n=\"\",o=\"\",a=0,u=\"\",c=!1,l=W(t),f=l.split(`\n`),s=W(e).split(`\n`),p=0,y=\"\";if(r===\"strictEqual\"&&O(t)===\"object\"&&O(e)===\"object\"&&t!==null&&e!==null&&(r=\"strictEqualObject\"),f.length===1&&s.length===1&&f[0]!==s[0]){var d=f[0].length+s[0].length;if(d<=ln){if((O(t)!==\"object\"||t===null)&&(O(e)!==\"object\"||e===null)&&(t!==0||e!==0))return\"\".concat(M[r],`\n\n`)+\"\".concat(f[0],\" !== \").concat(s[0],`\n`)}else if(r!==\"strictEqualObject\"){var b=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d<b){for(;f[0][p]===s[0][p];)p++;p>2&&(y=`\n `.concat(fn(\" \",p),\"^\"),p=0)}}}for(var m=f[f.length-1],ee=s[s.length-1];m===ee&&(p++<2?u=`\n `.concat(m).concat(u):n=m,f.pop(),s.pop(),!(f.length===0||s.length===0));)m=f[f.length-1],ee=s[s.length-1];var me=Math.max(f.length,s.length);if(me===0){var $=l.split(`\n`);if($.length>30)for($[26]=\"\".concat(R,\"...\").concat(E);$.length>27;)$.pop();return\"\".concat(M.notIdentical,`\n\n`).concat($.join(`\n`),`\n`)}p>3&&(u=`\n`.concat(R,\"...\").concat(E).concat(u),c=!0),n!==\"\"&&(u=`\n `.concat(n).concat(u),n=\"\");var q=0,Be=M[r]+`\n`.concat(B,\"+ actual\").concat(E,\" \").concat(z,\"- expected\").concat(E),ze=\" \".concat(R,\"...\").concat(E,\" Lines skipped\");for(p=0;p<me;p++){var A=p-a;if(f.length<p+1)A>1&&p>2&&(A>4?(o+=`\n`.concat(R,\"...\").concat(E),c=!0):A>3&&(o+=`\n `.concat(s[p-2]),q++),o+=`\n `.concat(s[p-1]),q++),a=p,n+=`\n`.concat(z,\"-\").concat(E,\" \").concat(s[p]),q++;else if(s.length<p+1)A>1&&p>2&&(A>4?(o+=`\n`.concat(R,\"...\").concat(E),c=!0):A>3&&(o+=`\n `.concat(f[p-2]),q++),o+=`\n `.concat(f[p-1]),q++),a=p,o+=`\n`.concat(B,\"+\").concat(E,\" \").concat(f[p]),q++;else{var V=s[p],D=f[p],Ee=D!==V&&(!Ze(D,\",\")||D.slice(0,-1)!==V);Ee&&Ze(V,\",\")&&V.slice(0,-1)===D&&(Ee=!1,D+=\",\"),Ee?(A>1&&p>2&&(A>4?(o+=`\n`.concat(R,\"...\").concat(E),c=!0):A>3&&(o+=`\n `.concat(f[p-2]),q++),o+=`\n `.concat(f[p-1]),q++),a=p,o+=`\n`.concat(B,\"+\").concat(E,\" \").concat(D),n+=`\n`.concat(z,\"-\").concat(E,\" \").concat(V),q+=2):(o+=n,n=\"\",(A===1||p===0)&&(o+=`\n `.concat(D),q++))}if(q>20&&p<me-2)return\"\".concat(Be).concat(ze,`\n`).concat(o,`\n`).concat(R,\"...\").concat(E).concat(n,`\n`)+\"\".concat(R,\"...\").concat(E)}return\"\".concat(Be).concat(c?ze:\"\",`\n`).concat(o).concat(n).concat(u).concat(y)}i(sn,\"createErrDiff\");var pn=(function(t,e){rn(n,t);var r=nn(n);function n(o){var a;if(Cr(this,n),O(o)!==\"object\"||o===null)throw new cn(\"options\",\"Object\",o);var u=o.message,c=o.operator,l=o.stackStartFn,f=o.actual,s=o.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,u!=null)a=r.call(this,String(u));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(R=\"\\x1B[34m\",B=\"\\x1B[32m\",E=\"\\x1B[39m\",z=\"\\x1B[31m\"):(R=\"\",B=\"\",E=\"\",z=\"\")),O(f)===\"object\"&&f!==null&&O(s)===\"object\"&&s!==null&&\"stack\"in f&&f instanceof Error&&\"stack\"in s&&s instanceof Error&&(f=Ke(f),s=Ke(s)),c===\"deepStrictEqual\"||c===\"strictEqual\")a=r.call(this,sn(f,s,c));else if(c===\"notDeepStrictEqual\"||c===\"notStrictEqual\"){var y=M[c],d=W(f).split(`\n`);if(c===\"notStrictEqual\"&&O(f)===\"object\"&&f!==null&&(y=M.notStrictEqualObject),d.length>30)for(d[26]=\"\".concat(R,\"...\").concat(E);d.length>27;)d.pop();d.length===1?a=r.call(this,\"\".concat(y,\" \").concat(d[0])):a=r.call(this,\"\".concat(y,`\n\n`).concat(d.join(`\n`),`\n`))}else{var b=W(f),m=\"\",ee=M[c];c===\"notDeepEqual\"||c===\"notEqual\"?(b=\"\".concat(M[c],`\n\n`).concat(b),b.length>1024&&(b=\"\".concat(b.slice(0,1021),\"...\"))):(m=\"\".concat(W(s)),b.length>512&&(b=\"\".concat(b.slice(0,509),\"...\")),m.length>512&&(m=\"\".concat(m.slice(0,509),\"...\")),c===\"deepEqual\"||c===\"equal\"?b=\"\".concat(ee,`\n\n`).concat(b,`\n\nshould equal\n\n`):m=\" \".concat(c,\" \").concat(m)),a=r.call(this,\"\".concat(b).concat(m))}return Error.stackTraceLimit=p,a.generatedMessage=!u,Object.defineProperty(Re(a),\"name\",{value:\"AssertionError [ERR_ASSERTION]\",enumerable:!1,writable:!0,configurable:!0}),a.code=\"ERR_ASSERTION\",a.actual=f,a.expected=s,a.operator=c,Error.captureStackTrace&&Error.captureStackTrace(Re(a),l),a.stack,a.name=\"AssertionError\",et(a)}return i(n,\"AssertionError\"),en(n,[{key:\"toString\",value:i(function(){return\"\".concat(this.name,\" [\").concat(this.code,\"]: \").concat(this.message)},\"toString\")},{key:e,value:i(function(a,u){return Ne(this,Je(Je({},u),{},{customInspect:!1,depth:0}))},\"value\")}]),n})(Pe(Error),Ne.custom);rt.exports=pn});var Ae=v((To,it)=>{\"use strict\";g();var ot=Object.prototype.toString;it.exports=i(function(e){var r=ot.call(e),n=r===\"[object Arguments]\";return n||(n=r!==\"[object Array]\"&&e!==null&&typeof e==\"object\"&&typeof e.length==\"number\"&&e.length>=0&&ot.call(e.callee)===\"[object Function]\"),n},\"isArguments\")});var ht=v((Mo,gt)=>{\"use strict\";g();var pt;Object.keys||(k=Object.prototype.hasOwnProperty,Ie=Object.prototype.toString,at=Ae(),xe=Object.prototype.propertyIsEnumerable,ut=!xe.call({toString:null},\"toString\"),ct=xe.call(function(){},\"prototype\"),X=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],ne=i(function(t){var e=t.constructor;return e&&e.prototype===t},\"equalsConstructorPrototype\"),ft={$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},lt=(function(){if(typeof window>\"u\")return!1;for(var t in window)try{if(!ft[\"$\"+t]&&k.call(window,t)&&window[t]!==null&&typeof window[t]==\"object\")try{ne(window[t])}catch{return!0}}catch{return!0}return!1})(),st=i(function(t){if(typeof window>\"u\"||!lt)return ne(t);try{return ne(t)}catch{return!1}},\"equalsConstructorPrototypeIfNotBuggy\"),pt=i(function(e){var r=e!==null&&typeof e==\"object\",n=Ie.call(e)===\"[object Function]\",o=at(e),a=r&&Ie.call(e)===\"[object String]\",u=[];if(!r&&!n&&!o)throw new TypeError(\"Object.keys called on a non-object\");var c=ct&&n;if(a&&e.length>0&&!k.call(e,0))for(var l=0;l<e.length;++l)u.push(String(l));if(o&&e.length>0)for(var f=0;f<e.length;++f)u.push(String(f));else for(var s in e)!(c&&s===\"prototype\")&&k.call(e,s)&&u.push(String(s));if(ut)for(var p=st(e),y=0;y<X.length;++y)!(p&&X[y]===\"constructor\")&&k.call(e,X[y])&&u.push(X[y]);return u},\"keys\"));var k,Ie,at,xe,ut,ct,X,ne,ft,lt,st;gt.exports=pt});var Te=v(($o,vt)=>{\"use strict\";g();var gn=Array.prototype.slice,hn=Ae(),yt=Object.keys,oe=yt?i(function(e){return yt(e)},\"keys\"):ht(),bt=Object.keys;oe.shim=i(function(){if(Object.keys){var e=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);e||(Object.keys=i(function(n){return hn(n)?bt(gn.call(n)):bt(n)},\"keys\"))}else Object.keys=oe;return Object.keys||oe},\"shimObjectKeys\");vt.exports=oe});var Ot=v((Uo,wt)=>{\"use strict\";g();var yn=Te(),mt=Mr()(),Et=Lr(),ie=Dr(),bn=Et(\"Array.prototype.push\"),dt=Et(\"Object.prototype.propertyIsEnumerable\"),vn=mt?ie.getOwnPropertySymbols:null;wt.exports=i(function(e,r){if(e==null)throw new TypeError(\"target must be an object\");var n=ie(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=ie(arguments[o]),u=yn(a),c=mt&&(ie.getOwnPropertySymbols||vn);if(c)for(var l=c(a),f=0;f<l.length;++f){var s=l[f];dt(a,s)&&bn(u,s)}for(var p=0;p<u.length;++p){var y=u[p];if(dt(a,y)){var d=a[y];n[y]=d}}}return n},\"assign\")});var jt=v((Wo,St)=>{\"use strict\";g();var _e=Ot(),dn=i(function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var o=Object.assign({},r),a=\"\";for(var u in o)a+=u;return t!==a},\"lacksProperEnumerationOrder\"),mn=i(function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch{return t[1]===\"y\"}return!1},\"assignHasPendingExceptions\");St.exports=i(function(){return!Object.assign||dn()||mn()?_e:Object.assign},\"getPolyfill\")});var De=v((ko,Rt)=>{\"use strict\";g();var qt=i(function(t){return t!==t},\"numberIsNaN\");Rt.exports=i(function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||qt(e)&&qt(r))},\"is\")});var ae=v((Qo,Pt)=>{\"use strict\";g();var En=De();Pt.exports=i(function(){return typeof Object.is==\"function\"?Object.is:En},\"getPolyfill\")});var xt=v((Co,It)=>{\"use strict\";g();var Nt=Fr(),At=we(),wn=At(Nt(\"String.prototype.indexOf\"));It.exports=i(function(e,r){var n=Nt(e,!!r);return typeof n==\"function\"&&wn(e,\".prototype.\")>-1?At(n):n},\"callBoundIntrinsic\")});var J=v((ri,Mt)=>{\"use strict\";g();var On=Te(),Sn=typeof Symbol==\"function\"&&typeof Symbol(\"foo\")==\"symbol\",jn=Object.prototype.toString,qn=Array.prototype.concat,Tt=$r(),Rn=i(function(t){return typeof t==\"function\"&&jn.call(t)===\"[object Function]\"},\"isFunction\"),_t=Vr()(),Pn=i(function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!Rn(n)||!n())return}_t?Tt(t,e,r,!0):Tt(t,e,r)},\"defineProperty\"),Dt=i(function(t,e){var r=arguments.length>2?arguments[2]:{},n=On(e);Sn&&(n=qn.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Pn(t,n[o],e[n[o]],r[n[o]])},\"defineProperties\");Dt.supportsDescriptors=!!_t;Mt.exports=Dt});var Lt=v((ii,Ft)=>{\"use strict\";g();var Nn=ae(),An=J();Ft.exports=i(function(){var e=Nn();return An(Object,{is:e},{is:i(function(){return Object.is!==e},\"testObjectIs\")}),e},\"shimObjectIs\")});var Ut=v((ci,Gt)=>{\"use strict\";g();var In=J(),xn=we(),Tn=De(),$t=ae(),_n=Lt(),Vt=xn($t(),Object);In(Vt,{getPolyfill:$t,implementation:Tn,shim:_n});Gt.exports=Vt});var Me=v((li,Bt)=>{\"use strict\";g();Bt.exports=i(function(e){return e!==e},\"isNaN\")});var Fe=v((gi,zt)=>{\"use strict\";g();var Dn=Me();zt.exports=i(function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN(\"a\")?Number.isNaN:Dn},\"getPolyfill\")});var Yt=v((bi,Wt)=>{\"use strict\";g();var Mn=J(),Fn=Fe();Wt.exports=i(function(){var e=Fn();return Mn(Number,{isNaN:e},{isNaN:i(function(){return Number.isNaN!==e},\"testIsNaN\")}),e},\"shimNumberIsNaN\")});var Jt=v((mi,Xt)=>{\"use strict\";g();var Ln=we(),$n=J(),Vn=Me(),Ht=Fe(),Gn=Yt(),kt=Ln(Ht(),Number);$n(kt,{getPolyfill:Ht,implementation:Vn,shim:Gn});Xt.exports=kt});var yr=v((wi,hr)=>{\"use strict\";g();function Qt(t,e){return Wn(t)||zn(t,e)||Bn(t,e)||Un()}i(Qt,\"_slicedToArray\");function Un(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(Un,\"_nonIterableRest\");function Bn(t,e){if(t){if(typeof t==\"string\")return Zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r===\"Object\"&&t.constructor&&(r=t.constructor.name),r===\"Map\"||r===\"Set\")return Array.from(t);if(r===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zt(t,e)}}i(Bn,\"_unsupportedIterableToArray\");function Zt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Zt,\"_arrayLikeToArray\");function zn(t,e){var r=t==null?null:typeof Symbol<\"u\"&&t[Symbol.iterator]||t[\"@@iterator\"];if(r!=null){var n,o,a,u,c=[],l=!0,f=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){f=!0,o=s}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return c}}i(zn,\"_iterableToArrayLimit\");function Wn(t){if(Array.isArray(t))return t}i(Wn,\"_arrayWithHoles\");function S(t){\"@babel/helpers - typeof\";return S=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},S(t)}i(S,\"_typeof\");var Yn=/a/g.flags!==void 0,ge=i(function(e){var r=[];return e.forEach(function(n){return r.push(n)}),r},\"arrayFromSet\"),Kt=i(function(e){var r=[];return e.forEach(function(n,o){return r.push([o,n])}),r},\"arrayFromMap\"),fr=Object.is?Object.is:Ut(),se=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Le=Number.isNaN?Number.isNaN:Jt();function Ve(t){return t.call.bind(t)}i(Ve,\"uncurryThis\");var Z=Ve(Object.prototype.hasOwnProperty),pe=Ve(Object.prototype.propertyIsEnumerable),Ct=Ve(Object.prototype.toString),w=G().types,Hn=w.isAnyArrayBuffer,kn=w.isArrayBufferView,er=w.isDate,ue=w.isMap,tr=w.isRegExp,ce=w.isSet,Xn=w.isNativeError,Jn=w.isBoxedPrimitive,rr=w.isNumberObject,nr=w.isStringObject,or=w.isBooleanObject,ir=w.isBigIntObject,Qn=w.isSymbolObject,Zn=w.isFloat32Array,Kn=w.isFloat64Array;function Cn(t){if(t.length===0||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return t.length===10&&t>=Math.pow(2,32)}i(Cn,\"isNonIndex\");function fe(t){return Object.keys(t).filter(Cn).concat(se(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}i(fe,\"getOwnNonIndexProperties\");/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license MIT\n */function lr(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,a=Math.min(r,n);o<a;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}i(lr,\"compare\");var le=void 0,eo=!0,to=!1,$e=0,Ge=1,sr=2,pr=3;function ro(t,e){return Yn?t.source===e.source&&t.flags===e.flags:RegExp.prototype.toString.call(t)===RegExp.prototype.toString.call(e)}i(ro,\"areSimilarRegExps\");function no(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}i(no,\"areSimilarFloatArrays\");function oo(t,e){return t.byteLength!==e.byteLength?!1:lr(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))===0}i(oo,\"areSimilarTypedArrays\");function io(t,e){return t.byteLength===e.byteLength&&lr(new Uint8Array(t),new Uint8Array(e))===0}i(io,\"areEqualArrayBuffers\");function ao(t,e){return rr(t)?rr(e)&&fr(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):nr(t)?nr(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):or(t)?or(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):ir(t)?ir(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):Qn(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}i(ao,\"isEqualBoxedPrimitive\");function j(t,e,r,n){if(t===e)return t!==0?!0:r?fr(t,e):!0;if(r){if(S(t)!==\"object\")return typeof t==\"number\"&&Le(t)&&Le(e);if(S(e)!==\"object\"||t===null||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(t===null||S(t)!==\"object\")return e===null||S(e)!==\"object\"?t==e:!1;if(e===null||S(e)!==\"object\")return!1}var o=Ct(t),a=Ct(e);if(o!==a)return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var u=fe(t,le),c=fe(e,le);return u.length!==c.length?!1:Q(t,e,r,n,Ge,u)}if(o===\"[object Object]\"&&(!ue(t)&&ue(e)||!ce(t)&&ce(e)))return!1;if(er(t)){if(!er(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(tr(t)){if(!tr(e)||!ro(t,e))return!1}else if(Xn(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else if(kn(t)){if(!r&&(Zn(t)||Kn(t))){if(!no(t,e))return!1}else if(!oo(t,e))return!1;var l=fe(t,le),f=fe(e,le);return l.length!==f.length?!1:Q(t,e,r,n,$e,l)}else{if(ce(t))return!ce(e)||t.size!==e.size?!1:Q(t,e,r,n,sr);if(ue(t))return!ue(e)||t.size!==e.size?!1:Q(t,e,r,n,pr);if(Hn(t)){if(!io(t,e))return!1}else if(Jn(t)&&!ao(t,e))return!1}return Q(t,e,r,n,$e)}i(j,\"innerDeepEqual\");function ar(t,e){return e.filter(function(r){return pe(t,r)})}i(ar,\"getEnumerables\");function Q(t,e,r,n,o,a){if(arguments.length===5){a=Object.keys(t);var u=Object.keys(e);if(a.length!==u.length)return!1}for(var c=0;c<a.length;c++)if(!Z(e,a[c]))return!1;if(r&&arguments.length===5){var l=se(t);if(l.length!==0){var f=0;for(c=0;c<l.length;c++){var s=l[c];if(pe(t,s)){if(!pe(e,s))return!1;a.push(s),f++}else if(pe(e,s))return!1}var p=se(e);if(l.length!==p.length&&ar(e,p).length!==f)return!1}else{var y=se(e);if(y.length!==0&&ar(e,y).length!==0)return!1}}if(a.length===0&&(o===$e||o===Ge&&t.length===0||t.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var d=n.val1.get(t);if(d!==void 0){var b=n.val2.get(e);if(b!==void 0)return d===b}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var m=so(t,e,r,a,n,o);return n.val1.delete(t),n.val2.delete(e),m}i(Q,\"keyCheck\");function ur(t,e,r,n){for(var o=ge(t),a=0;a<o.length;a++){var u=o[a];if(j(e,u,r,n))return t.delete(u),!0}return!1}i(ur,\"setHasEqualElement\");function gr(t){switch(S(t)){case\"undefined\":return null;case\"object\":return;case\"symbol\":return!1;case\"string\":t=+t;case\"number\":if(Le(t))return!1}return!0}i(gr,\"findLooseMatchingPrimitives\");function uo(t,e,r){var n=gr(r);return n??(e.has(n)&&!t.has(n))}i(uo,\"setMightHaveLoosePrim\");function co(t,e,r,n,o){var a=gr(r);if(a!=null)return a;var u=e.get(a);return u===void 0&&!e.has(a)||!j(n,u,!1,o)?!1:!t.has(a)&&j(n,u,!1,o)}i(co,\"mapMightHaveLoosePrim\");function fo(t,e,r,n){for(var o=null,a=ge(t),u=0;u<a.length;u++){var c=a[u];if(S(c)===\"object\"&&c!==null)o===null&&(o=new Set),o.add(c);else if(!e.has(c)){if(r||!uo(t,e,c))return!1;o===null&&(o=new Set),o.add(c)}}if(o!==null){for(var l=ge(e),f=0;f<l.length;f++){var s=l[f];if(S(s)===\"object\"&&s!==null){if(!ur(o,s,r,n))return!1}else if(!r&&!t.has(s)&&!ur(o,s,r,n))return!1}return o.size===0}return!0}i(fo,\"setEquiv\");function cr(t,e,r,n,o,a){for(var u=ge(t),c=0;c<u.length;c++){var l=u[c];if(j(r,l,o,a)&&j(n,e.get(l),o,a))return t.delete(l),!0}return!1}i(cr,\"mapHasEqualEntry\");function lo(t,e,r,n){for(var o=null,a=Kt(t),u=0;u<a.length;u++){var c=Qt(a[u],2),l=c[0],f=c[1];if(S(l)===\"object\"&&l!==null)o===null&&(o=new Set),o.add(l);else{var s=e.get(l);if(s===void 0&&!e.has(l)||!j(f,s,r,n)){if(r||!co(t,e,l,f,n))return!1;o===null&&(o=new Set),o.add(l)}}}if(o!==null){for(var p=Kt(e),y=0;y<p.length;y++){var d=Qt(p[y],2),b=d[0],m=d[1];if(S(b)===\"object\"&&b!==null){if(!cr(o,t,b,m,r,n))return!1}else if(!r&&(!t.has(b)||!j(t.get(b),m,!1,n))&&!cr(o,t,b,m,!1,n))return!1}return o.size===0}return!0}i(lo,\"mapEquiv\");function so(t,e,r,n,o,a){var u=0;if(a===sr){if(!fo(t,e,r,o))return!1}else if(a===pr){if(!lo(t,e,r,o))return!1}else if(a===Ge)for(;u<t.length;u++)if(Z(t,u)){if(!Z(e,u)||!j(t[u],e[u],r,o))return!1}else{if(Z(e,u))return!1;for(var c=Object.keys(t);u<c.length;u++){var l=c[u];if(!Z(e,l)||!j(t[l],e[l],r,o))return!1}return c.length===Object.keys(e).length}for(u=0;u<n.length;u++){var f=n[u];if(!j(t[f],e[f],r,o))return!1}return!0}i(so,\"objEquiv\");function po(t,e){return j(t,e,to)}i(po,\"isDeepEqual\");function go(t,e){return j(t,e,eo)}i(go,\"isDeepStrictEqual\");hr.exports={isDeepEqual:po,isDeepStrictEqual:go}});var qe=v((ji,_r)=>{\"use strict\";g();function P(t){\"@babel/helpers - typeof\";return P=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},P(t)}i(P,\"_typeof\");function br(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,yo(n.key),n)}}i(br,\"_defineProperties\");function ho(t,e,r){return e&&br(t.prototype,e),r&&br(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}i(ho,\"_createClass\");function yo(t){var e=bo(t,\"string\");return P(e)===\"symbol\"?e:String(e)}i(yo,\"_toPropertyKey\");function bo(t,e){if(P(t)!==\"object\"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||\"default\");if(P(n)!==\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(e===\"string\"?String:Number)(t)}i(bo,\"_toPrimitive\");function vo(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}i(vo,\"_classCallCheck\");var mo=je(),K=mo.codes,vr=K.ERR_AMBIGUOUS_ARGUMENT,L=K.ERR_INVALID_ARG_TYPE,Eo=K.ERR_INVALID_ARG_VALUE,wo=K.ERR_INVALID_RETURN_VALUE,T=K.ERR_MISSING_ARGS,_=nt(),Oo=G(),he=Oo.inspect,wr=G().types,So=wr.isPromise,ye=wr.isRegExp,jo=jt()(),Or=ae()(),be=xt()(\"RegExp.prototype.test\"),x,ve;function C(){var t=yr();x=t.isDeepEqual,ve=t.isDeepStrictEqual}i(C,\"lazyLoadComparison\");var dr=!1,h=_r.exports=Ue,de={};function N(t){throw t.message instanceof Error?t.message:new _(t)}i(N,\"innerFail\");function Sr(t,e,r,n,o){var a=arguments.length,u;if(a===0)u=\"Failed\";else if(a===1)r=t,t=void 0;else{if(dr===!1){dr=!0;var c=process.emitWarning?process.emitWarning:console.warn.bind(console);c(\"assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.\",\"DeprecationWarning\",\"DEP0094\")}a===2&&(n=\"!=\")}if(r instanceof Error)throw r;var l={actual:t,expected:e,operator:n===void 0?\"fail\":n,stackStartFn:o||Sr};r!==void 0&&(l.message=r);var f=new _(l);throw u&&(f.message=u,f.generatedMessage=!0),f}i(Sr,\"fail\");h.fail=Sr;h.AssertionError=_;function jr(t,e,r,n){if(!r){var o=!1;if(e===0)o=!0,n=\"No value argument passed to `assert.ok()`\";else if(n instanceof Error)throw n;var a=new _({actual:r,expected:!0,message:n,operator:\"==\",stackStartFn:t});throw a.generatedMessage=o,a}}i(jr,\"innerOk\");function Ue(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];jr.apply(void 0,[Ue,e.length].concat(e))}i(Ue,\"ok\");h.ok=Ue;h.equal=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");e!=r&&N({actual:e,expected:r,message:n,operator:\"==\",stackStartFn:t})},\"equal\");h.notEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");e==r&&N({actual:e,expected:r,message:n,operator:\"!=\",stackStartFn:t})},\"notEqual\");h.deepEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");x===void 0&&C(),x(e,r)||N({actual:e,expected:r,message:n,operator:\"deepEqual\",stackStartFn:t})},\"deepEqual\");h.notDeepEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");x===void 0&&C(),x(e,r)&&N({actual:e,expected:r,message:n,operator:\"notDeepEqual\",stackStartFn:t})},\"notDeepEqual\");h.deepStrictEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");x===void 0&&C(),ve(e,r)||N({actual:e,expected:r,message:n,operator:\"deepStrictEqual\",stackStartFn:t})},\"deepStrictEqual\");h.notDeepStrictEqual=qr;function qr(t,e,r){if(arguments.length<2)throw new T(\"actual\",\"expected\");x===void 0&&C(),ve(t,e)&&N({actual:t,expected:e,message:r,operator:\"notDeepStrictEqual\",stackStartFn:qr})}i(qr,\"notDeepStrictEqual\");h.strictEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");Or(e,r)||N({actual:e,expected:r,message:n,operator:\"strictEqual\",stackStartFn:t})},\"strictEqual\");h.notStrictEqual=i(function t(e,r,n){if(arguments.length<2)throw new T(\"actual\",\"expected\");Or(e,r)&&N({actual:e,expected:r,message:n,operator:\"notStrictEqual\",stackStartFn:t})},\"notStrictEqual\");var mr=ho(i(function t(e,r,n){var o=this;vo(this,t),r.forEach(function(a){a in e&&(n!==void 0&&typeof n[a]==\"string\"&&ye(e[a])&&be(e[a],n[a])?o[a]=n[a]:o[a]=e[a])})},\"Comparison\"));function qo(t,e,r,n,o,a){if(!(r in t)||!ve(t[r],e[r])){if(!n){var u=new mr(t,o),c=new mr(e,o,t),l=new _({actual:u,expected:c,operator:\"deepStrictEqual\",stackStartFn:a});throw l.actual=t,l.expected=e,l.operator=a.name,l}N({actual:t,expected:e,message:n,operator:a.name,stackStartFn:a})}}i(qo,\"compareExceptionKey\");function Rr(t,e,r,n){if(typeof e!=\"function\"){if(ye(e))return be(e,t);if(arguments.length===2)throw new L(\"expected\",[\"Function\",\"RegExp\"],e);if(P(t)!==\"object\"||t===null){var o=new _({actual:t,expected:e,message:r,operator:\"deepStrictEqual\",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(e);if(e instanceof Error)a.push(\"name\",\"message\");else if(a.length===0)throw new Eo(\"error\",e,\"may not be an empty object\");return x===void 0&&C(),a.forEach(function(u){typeof t[u]==\"string\"&&ye(e[u])&&be(e[u],t[u])||qo(t,e,u,r,a,n)}),!0}return e.prototype!==void 0&&t instanceof e?!0:Error.isPrototypeOf(e)?!1:e.call({},t)===!0}i(Rr,\"expectedException\");function Pr(t){if(typeof t!=\"function\")throw new L(\"fn\",\"Function\",t);try{t()}catch(e){return e}return de}i(Pr,\"getActual\");function Er(t){return So(t)||t!==null&&P(t)===\"object\"&&typeof t.then==\"function\"&&typeof t.catch==\"function\"}i(Er,\"checkIsPromise\");function Nr(t){return Promise.resolve().then(function(){var e;if(typeof t==\"function\"){if(e=t(),!Er(e))throw new wo(\"instance of Promise\",\"promiseFn\",e)}else if(Er(t))e=t;else throw new L(\"promiseFn\",[\"Function\",\"Promise\"],t);return Promise.resolve().then(function(){return e}).then(function(){return de}).catch(function(r){return r})})}i(Nr,\"waitForActual\");function Ar(t,e,r,n){if(typeof r==\"string\"){if(arguments.length===4)throw new L(\"error\",[\"Object\",\"Error\",\"Function\",\"RegExp\"],r);if(P(e)===\"object\"&&e!==null){if(e.message===r)throw new vr(\"error/message\",'The error message \"'.concat(e.message,'\" is identical to the message.'))}else if(e===r)throw new vr(\"error/message\",'The error \"'.concat(e,'\" is identical to the message.'));n=r,r=void 0}else if(r!=null&&P(r)!==\"object\"&&typeof r!=\"function\")throw new L(\"error\",[\"Object\",\"Error\",\"Function\",\"RegExp\"],r);if(e===de){var o=\"\";r&&r.name&&(o+=\" (\".concat(r.name,\")\")),o+=n?\": \".concat(n):\".\";var a=t.name===\"rejects\"?\"rejection\":\"exception\";N({actual:void 0,expected:r,operator:t.name,message:\"Missing expected \".concat(a).concat(o),stackStartFn:t})}if(r&&!Rr(e,r,n,t))throw e}i(Ar,\"expectsError\");function Ir(t,e,r,n){if(e!==de){if(typeof r==\"string\"&&(n=r,r=void 0),!r||Rr(e,r)){var o=n?\": \".concat(n):\".\",a=t.name===\"doesNotReject\"?\"rejection\":\"exception\";N({actual:e,expected:r,operator:t.name,message:\"Got unwanted \".concat(a).concat(o,`\n`)+'Actual message: \"'.concat(e&&e.message,'\"'),stackStartFn:t})}throw e}}i(Ir,\"expectsNoError\");h.throws=i(function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];Ar.apply(void 0,[t,Pr(e)].concat(n))},\"throws\");h.rejects=i(function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Nr(e).then(function(a){return Ar.apply(void 0,[t,a].concat(n))})},\"rejects\");h.doesNotThrow=i(function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];Ir.apply(void 0,[t,Pr(e)].concat(n))},\"doesNotThrow\");h.doesNotReject=i(function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Nr(e).then(function(a){return Ir.apply(void 0,[t,a].concat(n))})},\"doesNotReject\");h.ifError=i(function t(e){if(e!=null){var r=\"ifError got unwanted exception: \";P(e)===\"object\"&&typeof e.message==\"string\"?e.message.length===0&&e.constructor?r+=e.constructor.name:r+=e.message:r+=he(e);var n=new _({actual:e,expected:null,operator:\"ifError\",message:r,stackStartFn:t}),o=e.stack;if(typeof o==\"string\"){var a=o.split(`\n`);a.shift();for(var u=n.stack.split(`\n`),c=0;c<a.length;c++){var l=u.indexOf(a[c]);if(l!==-1){u=u.slice(0,l);break}}n.stack=\"\".concat(u.join(`\n`),`\n`).concat(a.join(`\n`))}throw n}},\"ifError\");function xr(t,e,r,n,o){if(!ye(e))throw new L(\"regexp\",\"RegExp\",e);var a=o===\"match\";if(typeof t!=\"string\"||be(e,t)!==a){if(r instanceof Error)throw r;var u=!r;r=r||(typeof t!=\"string\"?'The \"string\" argument must be of type string. Received type '+\"\".concat(P(t),\" (\").concat(he(t),\")\"):(a?\"The input did not match the regular expression \":\"The input was expected to not match the regular expression \")+\"\".concat(he(e),`. Input:\n\n`).concat(he(t),`\n`));var c=new _({actual:t,expected:e,message:r,operator:o,stackStartFn:n});throw c.generatedMessage=u,c}}i(xr,\"internalMatch\");h.match=i(function t(e,r,n){xr(e,r,n,t,\"match\")},\"match\");h.doesNotMatch=i(function t(e,r,n){xr(e,r,n,t,\"doesNotMatch\")},\"doesNotMatch\");function Tr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];jr.apply(void 0,[Tr,e.length].concat(e))}i(Tr,\"strict\");h.strict=jo(Tr,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual});h.strict.strict=h.strict});export{qe as a};\n",
|
|
5525
5523
|
"engine/chunks/chunk-PHIOMQ3T.mjs": "import{a as o,d as xo,o as pt}from\"./chunk-IQ3JZKJB.mjs\";var dn={};xo(dn,{ByteLengthQueuingStrategy:()=>ke,CountQueuingStrategy:()=>Oe,ReadableByteStreamController:()=>Q,ReadableStream:()=>z,ReadableStreamBYOBReader:()=>X,ReadableStreamBYOBRequest:()=>ee,ReadableStreamDefaultController:()=>V,ReadableStreamDefaultReader:()=>G,TransformStream:()=>We,TransformStreamDefaultController:()=>K,WritableStream:()=>J,WritableStreamDefaultController:()=>le,WritableStreamDefaultWriter:()=>D});pt();/**\n * @license\n * web-streams-polyfill v4.3.0\n * Copyright 2026 Mattias Buelens, Diwank Singh Tomer and other contributors.\n * This code is released under the MIT license.\n * SPDX-License-Identifier: MIT\n */function qe(){}o(qe,\"e\");function W(e){return typeof e==\"object\"&&e!==null||typeof e==\"function\"}o(W,\"t\");var It=qe;function g(e,r){try{Object.defineProperty(e,\"name\",{value:r,configurable:!0})}catch{}}o(g,\"o\");var Vr=Promise,Do=Promise.resolve.bind(Vr),No=Promise.prototype.then,Qo=Promise.reject.bind(Vr),$e=Do;function A(e){return new Vr(e)}o(A,\"u\");function w(e){return A(r=>r(e))}o(w,\"c\");function f(e){return Qo(e)}o(f,\"d\");function U(e,r,t){return No.call(e,r,t)}o(U,\"f\");function L(e,r,t){U(U(e,r,t),void 0,It)}o(L,\"h\");function gr(e,r){L(e,r)}o(gr,\"b\");function jr(e,r){L(e,void 0,r)}o(jr,\"_\");function re(e,r,t){return U(e,r,t)}o(re,\"m\");function Ae(e){U(e,void 0,It)}o(Ae,\"p\");var be=o(e=>{if(typeof queueMicrotask==\"function\")be=queueMicrotask;else{let r=w(void 0);be=o(t=>U(r,t),\"y\")}return be(e)},\"y\");function pe(e,r,t){if(typeof e!=\"function\")throw new TypeError(\"Argument is not a function\");return Function.prototype.apply.call(e,r,t)}o(pe,\"S\");function ne(e,r,t){try{return w(pe(e,r,t))}catch(n){return f(n)}}o(ne,\"g\");var $=class{static{o(this,\"v\")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(r){let t=this._back,n=t;t._elements.length===16383&&(n={_elements:[],_next:void 0}),t._elements.push(r),n!==t&&(this._back=n,t._next=n),++this._size}shift(){let r=this._front,t=r,n=this._cursor,a=n+1,l=r._elements,i=l[n];return a===16384&&(t=r._next,a=0),--this._size,this._cursor=a,r!==t&&(this._front=t),l[n]=void 0,i}forEach(r){let t=this._cursor,n=this._front,a=n._elements;for(;!(t===a.length&&n._next===void 0||t===a.length&&(n=n._next,a=n._elements,t=0,a.length===0));)r(a[t]),++t}peek(){let r=this._front,t=this._cursor;return r._elements[t]}},Lt=Symbol(\"[[AbortSteps]]\"),$t=Symbol(\"[[ErrorSteps]]\"),Yr=Symbol(\"[[CancelSteps]]\"),Ur=Symbol(\"[[PullSteps]]\"),Gr=Symbol(\"[[CanPullSyncSteps]]\"),Xr=Symbol(\"[[ReleaseSteps]]\");function Mt(e,r){e._ownerReadableStream=r,r._reader=e,r._state===\"readable\"?kr(e):r._state===\"closed\"?(function(t){kr(t),Dt(t)})(e):xt(e,r._storedError)}o(Mt,\"E\");function Jr(e,r){return N(e._ownerReadableStream,r)}o(Jr,\"W\");function te(e){let r=e._ownerReadableStream;r._state===\"readable\"?Kr(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")):(function(t,n){xt(t,n)})(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")),r._readableStreamController[Xr](),r._reader=void 0,e._ownerReadableStream=void 0}o(te,\"O\");function ar(e){return new TypeError(\"Cannot \"+e+\" a stream using a released reader\")}o(ar,\"B\");function kr(e){e._closedPromise=A((r,t)=>{e._closedPromise_resolve=r,e._closedPromise_reject=t})}o(kr,\"j\");function xt(e,r){kr(e),Kr(e,r)}o(xt,\"k\");function Kr(e,r){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}o(Kr,\"A\");function Dt(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}o(Dt,\"z\");var mt=Number.isFinite||function(e){return typeof e==\"number\"&&isFinite(e)},Ho=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function Z(e,r){if(e!==void 0&&typeof(t=e)!=\"object\"&&typeof t!=\"function\")throw new TypeError(`${r} is not an object.`);var t}o(Z,\"L\");function x(e,r){if(typeof e!=\"function\")throw new TypeError(`${r} is not a function.`)}o(x,\"I\");function Nt(e,r){if(!(function(t){return typeof t==\"object\"&&t!==null||typeof t==\"function\"})(e))throw new TypeError(`${r} is not an object.`)}o(Nt,\"$\");function oe(e,r,t){if(e===void 0)throw new TypeError(`Parameter ${r} is required in '${t}'.`)}o(oe,\"M\");function Or(e,r,t){if(e===void 0)throw new TypeError(`${r} is required in '${t}'.`)}o(Or,\"Y\");function Zr(e){return Number(e)}o(Zr,\"x\");function yt(e){return e===0?0:e}o(yt,\"Q\");function et(e,r){let t=Number.MAX_SAFE_INTEGER,n=Number(e);if(n=yt(n),!mt(n))throw new TypeError(`${r} is not a finite number`);if(n=(function(a){return yt(Ho(a))})(n),n<0||n>t)throw new TypeError(`${r} is outside the accepted range of 0 to ${t}, inclusive`);return mt(n)&&n!==0?n:0}o(et,\"N\");function rt(e,r){if(!ie(e))throw new TypeError(`${r} is not a ReadableStream.`)}o(rt,\"H\");function Te(e){return new G(e)}o(Te,\"V\");function Qt(e,r){e._reader._readRequests.push(r)}o(Qt,\"U\");function tt(e,r,t){let n=e._reader._readRequests.shift();t?n._closeSteps():n._chunkSteps(r)}o(tt,\"G\");function br(e){return e._reader._readRequests.length}o(br,\"X\");function Ht(e){let r=e._reader;return r!==void 0&&!!se(r)}o(Ht,\"J\");var G=class{static{o(this,\"ReadableStreamDefaultReader\")}constructor(r){if(oe(r,1,\"ReadableStreamDefaultReader\"),rt(r,\"First parameter\"),ae(r))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");Mt(this,r),this._readRequests=new $}get closed(){return se(this)?this._closedPromise:f(Ve(\"closed\"))}cancel(r=void 0){return se(this)?this._ownerReadableStream===void 0?f(ar(\"cancel\")):Jr(this,r):f(Ve(\"cancel\"))}read(){if(!se(this))return f(Ve(\"read\"));if(this._ownerReadableStream===void 0)return f(ar(\"read from\"));let r=Vt(this)?new Ar:new Wr;return Ee(this,r),r._promise}releaseLock(){if(!se(this))throw Ve(\"releaseLock\");this._ownerReadableStream!==void 0&&(function(r){te(r);let t=new TypeError(\"Reader was released\");Yt(r,t)})(this)}};Object.defineProperties(G.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),g(G.prototype.cancel,\"cancel\"),g(G.prototype.read,\"read\"),g(G.prototype.releaseLock,\"releaseLock\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(G.prototype,Symbol.toStringTag,{value:\"ReadableStreamDefaultReader\",configurable:!0});var Wr=class{static{o(this,\"K\")}constructor(){this._promise=A((r,t)=>{this._resolvePromise=r,this._rejectPromise=t})}_chunkSteps(r){this._resolvePromise({value:r,done:!1})}_closeSteps(){this._resolvePromise({value:void 0,done:!0})}_errorSteps(r){this._rejectPromise(r)}},Ar=class{static{o(this,\"Z\")}constructor(){this._promise=void 0}_chunkSteps(r){this._promise=$e({value:r,done:!1})}_closeSteps(){this._promise=$e({value:void 0,done:!0})}_errorSteps(r){this._promise=f(r)}};function se(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readRequests\")&&e instanceof G}o(se,\"ee\");function Ee(e,r){let t=e._ownerReadableStream;t._disturbed=!0,t._state===\"closed\"?r._closeSteps():t._state===\"errored\"?r._errorSteps(t._storedError):t._readableStreamController[Ur](r)}o(Ee,\"te\");function Vt(e){let r=e._ownerReadableStream;return r._state===\"closed\"||r._state===\"errored\"||r._readableStreamController[Gr]()}o(Vt,\"re\");function Yt(e,r){let t=e._readRequests;e._readRequests=new $,t.forEach(n=>{n._errorSteps(r)})}o(Yt,\"oe\");function Ve(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}o(Ve,\"ne\");var wr,Sr,Tr;function Fe(e){return e.slice()}o(Fe,\"le\");function Ut(e,r,t,n,a){new Uint8Array(e).set(new Uint8Array(t,n,a),r)}o(Ut,\"ue\");var me=o(e=>(me=typeof e.transfer==\"function\"?r=>r.transfer():typeof structuredClone==\"function\"?r=>structuredClone(r,{transfer:[r]}):r=>r,me(e)),\"ce\"),ye=o(e=>(ye=typeof e.detached==\"boolean\"?r=>r.detached:r=>r.byteLength===0,ye(e)),\"de\");function Gt(e,r,t){if(e.slice)return e.slice(r,t);let n=t-r,a=new ArrayBuffer(n);return Ut(a,0,e,r,n),a}o(Gt,\"fe\");function Be(e,r){let t=e[r];if(t!=null){if(typeof t!=\"function\")throw new TypeError(`${String(r)} is not a function`);return t}}o(Be,\"he\");function vt(e){try{let r=e.done,t=e.value;return U($e(t),n=>({done:r,value:n}))}catch(r){return f(r)}}o(vt,\"be\");var Qe=(Tr=(wr=Symbol.asyncIterator)!==null&&wr!==void 0?wr:(Sr=Symbol.for)===null||Sr===void 0?void 0:Sr.call(Symbol,\"Symbol.asyncIterator\"))!==null&&Tr!==void 0?Tr:\"@@asyncIterator\";function Xt(e,r=\"sync\",t){if(t===void 0)if(r===\"async\"){if((t=Be(e,Qe))===void 0)return(function(a){let l={next(){let i;try{i=Jt(a)}catch(s){return f(s)}return vt(i)},return(i){let s;try{let u=Be(a.iterator,\"return\");if(u===void 0)return w({done:!0,value:i});s=pe(u,a.iterator,[i])}catch(u){return f(u)}return W(s)?vt(s):f(new TypeError(\"The iterator.return() method must return an object\"))}};return{iterator:l,nextMethod:l.next,done:!1}})(Xt(e,\"sync\",Be(e,Symbol.iterator)))}else t=Be(e,Symbol.iterator);if(t===void 0)throw new TypeError(\"The object is not iterable\");let n=pe(t,e,[]);if(!W(n))throw new TypeError(\"The iterator method must return an object\");return{iterator:n,nextMethod:n.next,done:!1}}o(Xt,\"me\");function Jt(e){let r=pe(e.nextMethod,e.iterator,[]);if(!W(r))throw new TypeError(\"The iterator.next() method must return an object\");return r}o(Jt,\"pe\");var lr=class{static{o(this,\"ye\")}constructor(r,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=r,this._preventCancel=t}next(){let r=o(()=>this._nextSteps(),\"e\");return this._ongoingPromise=this._ongoingPromise?re(this._ongoingPromise,r,r):r(),this._ongoingPromise}return(r){let t=o(()=>this._returnSteps(r),\"t\");return this._ongoingPromise=this._ongoingPromise?re(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let r=this._reader,t=new zr(this);return Ee(r,t),t._promise}_returnSteps(r){if(this._isFinished)return Promise.resolve({value:r,done:!0});this._isFinished=!0;let t=this._reader;if(!this._preventCancel){let n=Jr(t,r);return te(t),re(n,()=>({value:r,done:!0}))}return te(t),w({value:r,done:!0})}},zr=class{static{o(this,\"Se\")}constructor(r){this._iterator=r,this._promise=A((t,n)=>{this._resolvePromise=t,this._rejectPromise=n})}_chunkSteps(r){this._iterator._ongoingPromise=void 0,be(()=>this._resolvePromise({value:r,done:!1}))}_closeSteps(){let r=this._iterator;r._ongoingPromise=void 0,r._isFinished=!0,te(r._reader),this._resolvePromise({value:void 0,done:!0})}_errorSteps(r){let t=this._iterator;t._ongoingPromise=void 0,t._isFinished=!0,te(t._reader),this._rejectPromise(r)}},Kt={next(){return gt(this)?this._asyncIteratorImpl.next():f(wt(\"next\"))},return(e){return gt(this)?this._asyncIteratorImpl.return(e):f(wt(\"return\"))},[Qe](){return this}};function gt(e){if(!W(e)||!Object.prototype.hasOwnProperty.call(e,\"_asyncIteratorImpl\"))return!1;try{return e._asyncIteratorImpl instanceof lr}catch{return!1}}o(gt,\"ve\");function wt(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}o(wt,\"we\");Object.defineProperty(Kt,Qe,{enumerable:!1});var Zt=Number.isNaN||function(e){return e!=e};function St(e){let r=Gt(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(r)}o(St,\"Te\");function Fr(e){let r=e._queue.shift();return e._queueTotalSize-=r.size,e._queueTotalSize<0&&(e._queueTotalSize=0),r.value}o(Fr,\"Pe\");function ot(e,r,t){if(typeof(n=t)!=\"number\"||Zt(n)||n<0||t===1/0)throw new RangeError(\"Size must be a finite, non-NaN, non-negative number.\");var n;e._queue.push({value:r,size:t}),e._queueTotalSize+=t}o(ot,\"Ce\");function ue(e){e._queue=new $,e._queueTotalSize=0}o(ue,\"qe\");function eo(e){return e===DataView}o(eo,\"Ee\");function ro(e){return eo(e)?1:e.BYTES_PER_ELEMENT}o(ro,\"We\");var ee=class{static{o(this,\"ReadableStreamBYOBRequest\")}constructor(){throw new TypeError(\"Illegal constructor\")}get view(){if(!Rr(this))throw Pr(\"view\");return this._view}respond(r){if(!Rr(this))throw Pr(\"respond\");if(oe(r,1,\"respond\"),r=et(r,\"First parameter\"),this._associatedReadableByteStreamController===void 0)throw new TypeError(\"This BYOB request has been invalidated\");if(ye(this._view.buffer))throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be used as a response\");or(this._associatedReadableByteStreamController,r)}respondWithNewView(r){if(!Rr(this))throw Pr(\"respondWithNewView\");if(oe(r,1,\"respondWithNewView\"),!ArrayBuffer.isView(r))throw new TypeError(\"You can only respond with array buffer views\");if(this._associatedReadableByteStreamController===void 0)throw new TypeError(\"This BYOB request has been invalidated\");if(ye(r.buffer))throw new TypeError(\"The given view's buffer has been detached and so cannot be used as a response\");nr(this._associatedReadableByteStreamController,r)}};Object.defineProperties(ee.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),g(ee.prototype.respond,\"respond\"),g(ee.prototype.respondWithNewView,\"respondWithNewView\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(ee.prototype,Symbol.toStringTag,{value:\"ReadableStreamBYOBRequest\",configurable:!0});var Q=class{static{o(this,\"ReadableByteStreamController\")}constructor(){throw new TypeError(\"Illegal constructor\")}get byobRequest(){if(!he(this))throw ze(\"byobRequest\");return Ir(this)}get desiredSize(){if(!he(this))throw ze(\"desiredSize\");return ho(this)}close(){if(!he(this))throw ze(\"close\");if(this._closeRequested)throw new TypeError(\"The stream has already been closed; do not close it again!\");let r=this._controlledReadableByteStream._state;if(r!==\"readable\")throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be closed`);Ie(this)}enqueue(r){if(!he(this))throw ze(\"enqueue\");if(oe(r,1,\"enqueue\"),!ArrayBuffer.isView(r))throw new TypeError(\"chunk must be an array buffer view\");if(r.byteLength===0)throw new TypeError(\"chunk must have non-zero byteLength\");if(r.buffer.byteLength===0)throw new TypeError(\"chunk's buffer must have non-zero byteLength\");if(this._closeRequested)throw new TypeError(\"stream is closed or draining\");let t=this._controlledReadableByteStream._state;if(t!==\"readable\")throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);tr(this,r)}error(r=void 0){if(!he(this))throw ze(\"error\");M(this,r)}[Yr](r){to(this),ue(this);let t=this._cancelAlgorithm(r);return pr(this),t}[Ur](r){let t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void fo(this,r);let n=this._autoAllocateChunkSize;if(n!==void 0){let a;try{a=new ArrayBuffer(n)}catch(i){return void r._errorSteps(i)}let l={buffer:a,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:\"default\"};this._pendingPullIntos.push(l)}Qt(t,r),ge(this)}[Gr](){return this._queueTotalSize>0}[Xr](){if(this._pendingPullIntos.length>0){let r=this._pendingPullIntos.peek();r.readerType=\"none\",this._pendingPullIntos=new $,this._pendingPullIntos.push(r)}}};function he(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableByteStream\")&&e instanceof Q}o(he,\"Oe\");function Rr(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_associatedReadableByteStreamController\")&&e instanceof ee}o(Rr,\"Be\");function ge(e){if((function(t){let n=t._controlledReadableByteStream;return n._state!==\"readable\"||t._closeRequested||!t._started?!1:!!(Ht(n)&&br(n)>0||it(n)&&po(n)>0||ho(t)>0)})(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,L(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,ge(e)),null),t=>(M(e,t),null))}}o(ge,\"je\");function to(e){nt(e),e._pendingPullIntos=new $}o(to,\"ke\");function oo(e,r){let t=!1;e._state===\"closed\"&&(t=!0);let n=no(r);r.readerType===\"default\"?tt(e,n,t):(function(a,l,i){let s=a._reader,u=s._readIntoRequests.shift();i?u._closeSteps(l):u._chunkSteps(l)})(e,n,t)}o(oo,\"Ae\");function er(e,r){for(let t=0;t<r.length;++t)oo(e,r[t])}o(er,\"ze\");function no(e){let r=e.bytesFilled,t=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,r/t)}o(no,\"De\");function rr(e,r,t,n){e._queue.push({buffer:r,byteOffset:t,byteLength:n}),e._queueTotalSize+=n}o(rr,\"Fe\");function io(e,r,t,n){let a;try{a=Gt(r,t,t+n)}catch(l){throw M(e,l),l}rr(e,a,0,n)}o(io,\"Le\");function so(e,r){r.bytesFilled>0&&io(e,r.buffer,r.byteOffset,r.bytesFilled),Re(e)}o(so,\"Ie\");function ao(e,r){let t=Math.min(e._queueTotalSize,r.byteLength-r.bytesFilled),n=r.bytesFilled+t,a=t,l=!1,i=n-n%r.elementSize;i>=r.minimumFill&&(a=i-r.bytesFilled,l=!0);let s=e._queue;for(;a>0;){let u=s.peek(),d=Math.min(a,u.byteLength),h=r.byteOffset+r.bytesFilled;Ut(r.buffer,h,u.buffer,u.byteOffset,d),u.byteLength===d?s.shift():(u.byteOffset+=d,u.byteLength-=d),e._queueTotalSize-=d,lo(e,d,r),a-=d}return l}o(ao,\"$e\");function lo(e,r,t){t.bytesFilled+=r}o(lo,\"Me\");function uo(e){e._queueTotalSize===0&&e._closeRequested?(pr(e),He(e._controlledReadableByteStream)):ge(e)}o(uo,\"Ye\");function nt(e){e._byobRequest!==null&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}o(nt,\"xe\");function Br(e){let r=[];for(;e._pendingPullIntos.length>0&&e._queueTotalSize!==0;){let t=e._pendingPullIntos.peek();ao(e,t)&&(Re(e),r.push(t))}return r}o(Br,\"Qe\");function co(e,r){let t=e._pendingPullIntos.peek();nt(e),e._controlledReadableByteStream._state===\"closed\"?(function(n,a){a.readerType===\"none\"&&Re(n);let l=n._controlledReadableByteStream;if(it(l)){let i=[];for(;i.length<po(l);)i.push(Re(n));er(l,i)}})(e,t):(function(n,a,l){if(lo(0,a,l),l.readerType===\"none\"){so(n,l);let u=Br(n);return void er(n._controlledReadableByteStream,u)}if(l.bytesFilled<l.minimumFill)return;Re(n);let i=l.bytesFilled%l.elementSize;if(i>0){let u=l.byteOffset+l.bytesFilled;io(n,l.buffer,u-i,i)}l.bytesFilled-=i;let s=Br(n);oo(n._controlledReadableByteStream,l),er(n._controlledReadableByteStream,s)})(e,r,t),ge(e)}o(co,\"Ne\");function Re(e){return e._pendingPullIntos.shift()}o(Re,\"He\");function pr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}o(pr,\"Ve\");function Ie(e){let r=e._controlledReadableByteStream;if(!e._closeRequested&&r._state===\"readable\")if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!==0){let n=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");throw M(e,n),n}}pr(e),He(r)}}o(Ie,\"Ue\");function tr(e,r){let t=e._controlledReadableByteStream;if(e._closeRequested||t._state!==\"readable\")return;let{buffer:n,byteOffset:a,byteLength:l}=r;if(ye(n))throw new TypeError(\"chunk's buffer is detached and so cannot be enqueued\");let i=me(n);if(e._pendingPullIntos.length>0){let s=e._pendingPullIntos.peek();if(ye(s.buffer))throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk\");nt(e),s.buffer=me(s.buffer),s.readerType===\"none\"&&so(e,s)}Ht(t)?((function(s){let u=s._controlledReadableByteStream._reader;for(;u._readRequests.length>0;){if(s._queueTotalSize===0)return;fo(s,u._readRequests.shift())}})(e),br(t)===0?rr(e,i,a,l):(e._pendingPullIntos.length>0&&Re(e),tt(t,new Uint8Array(i,a,l),!1))):it(t)?(rr(e,i,a,l),er(t,Br(e))):rr(e,i,a,l),ge(e)}o(tr,\"Ge\");function M(e,r){let t=e._controlledReadableByteStream;t._state===\"readable\"&&(to(e),ue(e),pr(e),Fo(t,r))}o(M,\"Xe\");function fo(e,r){let t=e._queue.shift();e._queueTotalSize-=t.byteLength,uo(e);let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);r._chunkSteps(n)}o(fo,\"Je\");function Ir(e){if(e._byobRequest===null&&e._pendingPullIntos.length>0){let r=e._pendingPullIntos.peek(),t=new Uint8Array(r.buffer,r.byteOffset+r.bytesFilled,r.byteLength-r.bytesFilled),n=Object.create(ee.prototype);(function(a,l,i){a._associatedReadableByteStreamController=l,a._view=i})(n,e,t),e._byobRequest=n}return e._byobRequest}o(Ir,\"Ke\");function ho(e){let r=e._controlledReadableByteStream._state;return r===\"errored\"?null:r===\"closed\"?0:e._strategyHWM-e._queueTotalSize}o(ho,\"Ze\");function or(e,r){let t=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state===\"closed\"){if(r!==0)throw new TypeError(\"bytesWritten must be 0 when calling respond() on a closed stream\")}else{if(r===0)throw new TypeError(\"bytesWritten must be greater than 0 when calling respond() on a readable stream\");if(t.bytesFilled+r>t.byteLength)throw new RangeError(\"bytesWritten out of range\")}t.buffer=me(t.buffer),co(e,r)}o(or,\"et\");function nr(e,r){let t=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state===\"closed\"){if(r.byteLength!==0)throw new TypeError(\"The view's length must be 0 when calling respondWithNewView() on a closed stream\")}else if(r.byteLength===0)throw new TypeError(\"The view's length must be greater than 0 when calling respondWithNewView() on a readable stream\");if(t.byteOffset+t.bytesFilled!==r.byteOffset)throw new RangeError(\"The region specified by view does not match byobRequest\");if(t.bufferByteLength!==r.buffer.byteLength)throw new RangeError(\"The buffer of view has different capacity than byobRequest\");if(t.bytesFilled+r.byteLength>t.byteLength)throw new RangeError(\"The region specified by view is larger than byobRequest\");let n=r.byteLength;t.buffer=me(r.buffer),co(e,n)}o(nr,\"tt\");function _o(e,r,t,n,a,l,i){r._controlledReadableByteStream=e,r._pullAgain=!1,r._pulling=!1,r._byobRequest=null,r._queue=r._queueTotalSize=void 0,ue(r),r._closeRequested=!1,r._started=!1,r._strategyHWM=l,r._pullAlgorithm=n,r._cancelAlgorithm=a,r._autoAllocateChunkSize=i,r._pendingPullIntos=new $,e._readableStreamController=r,L(w(t()),()=>(r._started=!0,ge(r),null),s=>(M(r,s),null))}o(_o,\"rt\");function Pr(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}o(Pr,\"ot\");function ze(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}o(ze,\"nt\");function Vo(e,r){if((e=`${e}`)!=\"byob\")throw new TypeError(`${r} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}o(Vo,\"it\");function bo(e){return new X(e)}o(bo,\"at\");function Tt(e,r){e._reader._readIntoRequests.push(r)}o(Tt,\"st\");function po(e){return e._reader._readIntoRequests.length}o(po,\"lt\");function it(e){let r=e._reader;return r!==void 0&&!!_e(r)}o(it,\"ut\");Object.defineProperties(Q.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),g(Q.prototype.close,\"close\"),g(Q.prototype.enqueue,\"enqueue\"),g(Q.prototype.error,\"error\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(Q.prototype,Symbol.toStringTag,{value:\"ReadableByteStreamController\",configurable:!0});var X=class{static{o(this,\"ReadableStreamBYOBReader\")}constructor(r){if(oe(r,1,\"ReadableStreamBYOBReader\"),rt(r,\"First parameter\"),ae(r))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");if(!he(r._readableStreamController))throw new TypeError(\"Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source\");Mt(this,r),this._readIntoRequests=new $}get closed(){return _e(this)?this._closedPromise:f(Ye(\"closed\"))}cancel(r=void 0){return _e(this)?this._ownerReadableStream===void 0?f(ar(\"cancel\")):Jr(this,r):f(Ye(\"cancel\"))}read(r,t={}){if(!_e(this))return f(Ye(\"read\"));if(!ArrayBuffer.isView(r))return f(new TypeError(\"view must be an array buffer view\"));if(r.byteLength===0)return f(new TypeError(\"view must have non-zero byteLength\"));if(r.buffer.byteLength===0)return f(new TypeError(\"view's buffer must have non-zero byteLength\"));if(ye(r.buffer))return f(new TypeError(\"view's buffer has been detached\"));let n;try{n=(function(i,s){var u;return Z(i,s),{min:et((u=i?.min)!==null&&u!==void 0?u:1,`${s} has member 'min' that`)}})(t,\"options\")}catch(i){return f(i)}let a=n.min;if(a===0)return f(new TypeError(\"options.min must be greater than 0\"));if((function(i){return eo(i.constructor)})(r)){if(a>r.byteLength)return f(new RangeError(\"options.min must be less than or equal to view's byteLength\"))}else if(a>r.length)return f(new RangeError(\"options.min must be less than or equal to view's length\"));if(this._ownerReadableStream===void 0)return f(ar(\"read from\"));let l=(function(i,s,u){let d=i._ownerReadableStream;return d._state===\"errored\"||(function(h,p,c){let _=h._controlledReadableByteStream,R=ro(p.constructor),{byteLength:C}=p,k=c*R;return!(h._pendingPullIntos.length>0)&&(_._state===\"closed\"||h._queueTotalSize>=k)})(d._readableStreamController,s,u)})(this,r,a)?new $r:new Lr;return mo(this,r,a,l),l._promise}releaseLock(){if(!_e(this))throw Ye(\"releaseLock\");this._ownerReadableStream!==void 0&&(function(r){te(r);let t=new TypeError(\"Reader was released\");yo(r,t)})(this)}};Object.defineProperties(X.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),g(X.prototype.cancel,\"cancel\"),g(X.prototype.read,\"read\"),g(X.prototype.releaseLock,\"releaseLock\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(X.prototype,Symbol.toStringTag,{value:\"ReadableStreamBYOBReader\",configurable:!0});var Lr=class{static{o(this,\"ct\")}constructor(){this._promise=A((r,t)=>{this._resolvePromise=r,this._rejectPromise=t})}_chunkSteps(r){this._resolvePromise({value:r,done:!1})}_closeSteps(r){this._resolvePromise({value:r,done:!0})}_errorSteps(r){this._rejectPromise(r)}},$r=class{static{o(this,\"dt\")}constructor(){this._promise=void 0}_chunkSteps(r){this._promise=$e({value:r,done:!1})}_closeSteps(r){this._promise=$e({value:r,done:!0})}_errorSteps(r){this._promise=f(r)}};function _e(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readIntoRequests\")&&e instanceof X}o(_e,\"ft\");function mo(e,r,t,n){let a=e._ownerReadableStream;a._disturbed=!0,a._state===\"errored\"?n._errorSteps(a._storedError):(function(l,i,s,u){let d=l._controlledReadableByteStream,h=i.constructor,p=ro(h),{byteOffset:c,byteLength:_}=i,R=s*p,C;try{C=me(i.buffer)}catch(P){return void u._errorSteps(P)}let k={buffer:C,bufferByteLength:C.byteLength,byteOffset:c,byteLength:_,bytesFilled:0,minimumFill:R,elementSize:p,viewConstructor:h,readerType:\"byob\"};if(l._pendingPullIntos.length>0)return l._pendingPullIntos.push(k),void Tt(d,u);if(d._state===\"closed\"){let P=new h(k.buffer,k.byteOffset,0);return void u._closeSteps(P)}if(l._queueTotalSize>0){if(ao(l,k)){let P=no(k);return uo(l),void u._chunkSteps(P)}if(l._closeRequested){let P=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");return M(l,P),void u._errorSteps(P)}}l._pendingPullIntos.push(k),Tt(d,u),ge(l)})(a._readableStreamController,r,t,n)}o(mo,\"ht\");function yo(e,r){let t=e._readIntoRequests;e._readIntoRequests=new $,t.forEach(n=>{n._errorSteps(r)})}o(yo,\"bt\");function Ye(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}o(Ye,\"_t\");function Me(e,r){let{highWaterMark:t}=e;if(t===void 0)return r;if(Zt(t)||t<0)throw new RangeError(\"Invalid highWaterMark\");return t}o(Me,\"mt\");function ur(e){let{size:r}=e;return r||(()=>1)}o(ur,\"pt\");function cr(e,r){Z(e,r);let t=e?.highWaterMark,n=e?.size;return{highWaterMark:t===void 0?void 0:Zr(t),size:n===void 0?void 0:Yo(n,`${r} has member 'size' that`)}}o(cr,\"yt\");function Yo(e,r){return x(e,r),t=>Zr(e(t))}o(Yo,\"St\");function Uo(e,r,t){return x(e,t),n=>ne(e,r,[n])}o(Uo,\"gt\");function Go(e,r,t){return x(e,t),()=>ne(e,r,[])}o(Go,\"vt\");function Xo(e,r,t){return x(e,t),n=>pe(e,r,[n])}o(Xo,\"wt\");function Jo(e,r,t){return x(e,t),(n,a)=>ne(e,r,[n,a])}o(Jo,\"Rt\");function vo(e,r){if(!Se(e))throw new TypeError(`${r} is not a WritableStream.`)}o(vo,\"Tt\");var J=class{static{o(this,\"WritableStream\")}constructor(r={},t={}){r===void 0?r=null:Nt(r,\"First parameter\");let n=cr(t,\"Second parameter\"),a=(function(i,s){Z(i,s);let u=i?.abort,d=i?.close,h=i?.start,p=i?.type,c=i?.write;return{abort:u===void 0?void 0:Uo(u,i,`${s} has member 'abort' that`),close:d===void 0?void 0:Go(d,i,`${s} has member 'close' that`),start:h===void 0?void 0:Xo(h,i,`${s} has member 'start' that`),write:c===void 0?void 0:Jo(c,i,`${s} has member 'write' that`),type:p}})(r,\"First parameter\");if(wo(this),a.type!==void 0)throw new RangeError(\"Invalid type is specified\");let l=ur(n);(function(i,s,u,d){let h=Object.create(le.prototype),p,c,_,R;p=s.start!==void 0?()=>s.start(h):()=>{},c=s.write!==void 0?C=>s.write(C,h):()=>w(void 0),_=s.close!==void 0?()=>s.close():()=>w(void 0),R=s.abort!==void 0?C=>s.abort(C):()=>w(void 0),Eo(i,h,p,c,_,R,u,d)})(this,a,Me(n,1),l)}get locked(){if(!Se(this))throw Ge(\"locked\");return Pe(this)}abort(r=void 0){return Se(this)?Pe(this)?f(new TypeError(\"Cannot abort a stream that already has a writer\")):dr(this,r):f(Ge(\"abort\"))}close(){return Se(this)?Pe(this)?f(new TypeError(\"Cannot close a stream that already has a writer\")):H(this)?f(new TypeError(\"Cannot close an already-closing stream\")):So(this):f(Ge(\"close\"))}getWriter(){if(!Se(this))throw Ge(\"getWriter\");return go(this)}};function go(e){return new D(e)}o(go,\"Pt\");function wo(e){e._state=\"writable\",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new $,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}o(wo,\"Ct\");function Se(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_writableStreamController\")&&e instanceof J}o(Se,\"qt\");function Pe(e){return e._writer!==void 0}o(Pe,\"Et\");function dr(e,r){var t;if(e._state===\"closed\"||e._state===\"errored\")return w(void 0);e._writableStreamController._abortReason=r,(t=e._writableStreamController._abortController)===null||t===void 0||t.abort(r);let n=e._state;if(n===\"closed\"||n===\"errored\")return w(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;let a=!1;n===\"erroring\"&&(a=!0,r=void 0);let l=A((i,s)=>{e._pendingAbortRequest={_promise:void 0,_resolve:i,_reject:s,_reason:r,_wasAlreadyErroring:a}});return e._pendingAbortRequest._promise=l,a||st(e,r),l}o(dr,\"Wt\");function So(e){let r=e._state;if(r===\"closed\"||r===\"errored\")return f(new TypeError(`The stream (in ${r} state) is not in the writable state and cannot be closed`));let t=A((l,i)=>{let s={_resolve:l,_reject:i};e._closeRequest=s}),n=e._writer;var a;return n!==void 0&&e._backpressure&&r===\"writable\"&&ft(n),ot(a=e._writableStreamController,qo,0),mr(a),t}o(So,\"Ot\");function Mr(e,r){e._state!==\"writable\"?at(e):st(e,r)}o(Mr,\"Bt\");function st(e,r){let t=e._writableStreamController;e._state=\"erroring\",e._storedError=r;let n=e._writer;n!==void 0&&Ro(n,r),!(function(a){return!(a._inFlightWriteRequest===void 0&&a._inFlightCloseRequest===void 0)})(e)&&t._started&&at(e)}o(st,\"jt\");function at(e){e._state=\"errored\",e._writableStreamController[$t]();let r=e._storedError;if(e._writeRequests.forEach(n=>{n._reject(r)}),e._writeRequests=new $,e._pendingAbortRequest===void 0)return void Ue(e);let t=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,t._wasAlreadyErroring)return t._reject(r),void Ue(e);L(e._writableStreamController[Lt](t._reason),()=>(t._resolve(),Ue(e),null),n=>(t._reject(n),Ue(e),null))}o(at,\"kt\");function H(e){return e._closeRequest!==void 0||e._inFlightCloseRequest!==void 0}o(H,\"At\");function Ue(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let r=e._writer;r!==void 0&&dt(r,e._storedError)}o(Ue,\"zt\");function lt(e,r){let t=e._writer;t!==void 0&&r!==e._backpressure&&(r?(function(n){yr(n)})(t):ft(t)),e._backpressure=r}o(lt,\"Dt\");Object.defineProperties(J.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),g(J.prototype.abort,\"abort\"),g(J.prototype.close,\"close\"),g(J.prototype.getWriter,\"getWriter\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(J.prototype,Symbol.toStringTag,{value:\"WritableStream\",configurable:!0});var D=class{static{o(this,\"WritableStreamDefaultWriter\")}constructor(r){if(oe(r,1,\"WritableStreamDefaultWriter\"),vo(r,\"First parameter\"),Pe(r))throw new TypeError(\"This stream has already been locked for exclusive writing by another writer\");this._ownerWritableStream=r,r._writer=this;let t=r._state;if(t===\"writable\")!H(r)&&r._backpressure?yr(this):Rt(this),ir(this);else if(t===\"erroring\")xr(this,r._storedError),ir(this);else if(t===\"closed\")Rt(this),ir(n=this),Oo(n);else{let a=r._storedError;xr(this,a),ko(this,a)}var n}get closed(){return ce(this)?this._closedPromise:f(de(\"closed\"))}get desiredSize(){if(!ce(this))throw de(\"desiredSize\");if(this._ownerWritableStream===void 0)throw Le(\"desiredSize\");return(function(r){let t=r._ownerWritableStream,n=t._state;return n===\"errored\"||n===\"erroring\"?null:n===\"closed\"?0:Co(t._writableStreamController)})(this)}get ready(){return ce(this)?this._readyPromise:f(de(\"ready\"))}abort(r=void 0){return ce(this)?this._ownerWritableStream===void 0?f(Le(\"abort\")):(function(t,n){return dr(t._ownerWritableStream,n)})(this,r):f(de(\"abort\"))}close(){if(!ce(this))return f(de(\"close\"));let r=this._ownerWritableStream;return r===void 0?f(Le(\"close\")):H(r)?f(new TypeError(\"Cannot close an already-closing stream\")):To(this)}releaseLock(){if(!ce(this))throw de(\"releaseLock\");this._ownerWritableStream!==void 0&&Po(this)}write(r=void 0){return ce(this)?this._ownerWritableStream===void 0?f(Le(\"write to\")):ut(this,r):f(de(\"write\"))}};function ce(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_ownerWritableStream\")&&e instanceof D}o(ce,\"Ft\");function To(e){return So(e._ownerWritableStream)}o(To,\"Lt\");function Ko(e,r){e._closedPromiseState===\"pending\"?dt(e,r):(function(t,n){ko(t,n)})(e,r)}o(Ko,\"It\");function Ro(e,r){e._readyPromiseState===\"pending\"?Wo(e,r):(function(t,n){xr(t,n)})(e,r)}o(Ro,\"$t\");function Po(e){let r=e._ownerWritableStream,t=new TypeError(\"Writer was released and can no longer be used to monitor the stream's closedness\");Ro(e,t),Ko(e,t),r._writer=void 0,e._ownerWritableStream=void 0}o(Po,\"Mt\");function ut(e,r){let t=e._ownerWritableStream,n=t._writableStreamController,a=(function(s,u){if(s._strategySizeAlgorithm===void 0)return 1;try{return s._strategySizeAlgorithm(u)}catch(d){return xe(s,d),1}})(n,r);if(t!==e._ownerWritableStream)return f(Le(\"write to\"));let l=t._state;if(l===\"errored\")return f(t._storedError);if(H(t)||l===\"closed\")return f(new TypeError(\"The stream is closing or closed and cannot be written to\"));if(l===\"erroring\")return f(t._storedError);let i=(function(s){return A((u,d)=>{let h={_resolve:u,_reject:d};s._writeRequests.push(h)})})(t);return(function(s,u,d){try{ot(s,u,d)}catch(p){return void xe(s,p)}let h=s._controlledWritableStream;!H(h)&&h._state===\"writable\"&<(h,ct(s)),mr(s)})(n,r,a),i}o(ut,\"Yt\");Object.defineProperties(D.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),g(D.prototype.abort,\"abort\"),g(D.prototype.close,\"close\"),g(D.prototype.releaseLock,\"releaseLock\"),g(D.prototype.write,\"write\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(D.prototype,Symbol.toStringTag,{value:\"WritableStreamDefaultWriter\",configurable:!0});var qo={},le=class{static{o(this,\"WritableStreamDefaultController\")}constructor(){throw new TypeError(\"Illegal constructor\")}get abortReason(){if(!qr(this))throw Er(\"abortReason\");return this._abortReason}get signal(){if(!qr(this))throw Er(\"signal\");if(this._abortController===void 0)throw new TypeError(\"WritableStreamDefaultController.prototype.signal is not supported\");return this._abortController.signal}error(r=void 0){if(!qr(this))throw Er(\"error\");this._controlledWritableStream._state===\"writable\"&&jo(this,r)}[Lt](r){let t=this._abortAlgorithm(r);return fr(this),t}[$t](){ue(this)}};function qr(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_controlledWritableStream\")&&e instanceof le}o(qr,\"Qt\");function Eo(e,r,t,n,a,l,i,s){r._controlledWritableStream=e,e._writableStreamController=r,r._queue=void 0,r._queueTotalSize=void 0,ue(r),r._abortReason=void 0,r._abortController=(function(){if(typeof AbortController==\"function\")return new AbortController})(),r._started=!1,r._strategySizeAlgorithm=s,r._strategyHWM=i,r._writeAlgorithm=n,r._closeAlgorithm=a,r._abortAlgorithm=l;let u=ct(r);lt(e,u),L(w(t()),()=>(r._started=!0,mr(r),null),d=>(r._started=!0,Mr(e,d),null))}o(Eo,\"Nt\");function fr(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}o(fr,\"Ht\");function Co(e){return e._strategyHWM-e._queueTotalSize}o(Co,\"Vt\");function mr(e){let r=e._controlledWritableStream;if(!e._started||r._inFlightWriteRequest!==void 0)return;if(r._state===\"erroring\")return void at(r);if(e._queue.length===0)return;let t=e._queue.peek().value;t===qo?(function(n){let a=n._controlledWritableStream;(function(i){i._inFlightCloseRequest=i._closeRequest,i._closeRequest=void 0})(a),Fr(n);let l=n._closeAlgorithm();fr(n),L(l,()=>((function(i){i._inFlightCloseRequest._resolve(void 0),i._inFlightCloseRequest=void 0,i._state===\"erroring\"&&(i._storedError=void 0,i._pendingAbortRequest!==void 0&&(i._pendingAbortRequest._resolve(),i._pendingAbortRequest=void 0)),i._state=\"closed\";let s=i._writer;s!==void 0&&Oo(s)})(a),null),i=>((function(s,u){s._inFlightCloseRequest._reject(u),s._inFlightCloseRequest=void 0,s._pendingAbortRequest!==void 0&&(s._pendingAbortRequest._reject(u),s._pendingAbortRequest=void 0),Mr(s,u)})(a,i),null))})(e):(function(n,a){let l=n._controlledWritableStream;(function(s){s._inFlightWriteRequest=s._writeRequests.shift()})(l);let i=n._writeAlgorithm(a);L(i,()=>{(function(u){u._inFlightWriteRequest._resolve(void 0),u._inFlightWriteRequest=void 0})(l);let s=l._state;if(Fr(n),!H(l)&&s===\"writable\"){let u=ct(n);lt(l,u)}return mr(n),null},s=>(l._state===\"writable\"&&fr(n),(function(u,d){u._inFlightWriteRequest._reject(d),u._inFlightWriteRequest=void 0,Mr(u,d)})(l,s),null))})(e,t)}o(mr,\"Ut\");function xe(e,r){e._controlledWritableStream._state===\"writable\"&&jo(e,r)}o(xe,\"Gt\");function ct(e){return Co(e)<=0}o(ct,\"Xt\");function jo(e,r){let t=e._controlledWritableStream;fr(e),st(t,r)}o(jo,\"Jt\");function Ge(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}o(Ge,\"Kt\");function Er(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}o(Er,\"Zt\");function de(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}o(de,\"er\");function Le(e){return new TypeError(\"Cannot \"+e+\" a stream using a released writer\")}o(Le,\"tr\");function ir(e){e._closedPromise=A((r,t)=>{e._closedPromise_resolve=r,e._closedPromise_reject=t,e._closedPromiseState=\"pending\"})}o(ir,\"rr\");function ko(e,r){ir(e),dt(e,r)}o(ko,\"or\");function dt(e,r){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"rejected\")}o(dt,\"nr\");function Oo(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"resolved\")}o(Oo,\"ir\");function yr(e){e._readyPromise=A((r,t)=>{e._readyPromise_resolve=r,e._readyPromise_reject=t}),e._readyPromiseState=\"pending\"}o(yr,\"ar\");function xr(e,r){yr(e),Wo(e,r)}o(xr,\"sr\");function Rt(e){yr(e),ft(e)}o(Rt,\"lr\");function Wo(e,r){e._readyPromise_reject!==void 0&&(Ae(e._readyPromise),e._readyPromise_reject(r),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"rejected\")}o(Wo,\"ur\");function ft(e){e._readyPromise_resolve!==void 0&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"fulfilled\")}o(ft,\"cr\");Object.defineProperties(le.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(le.prototype,Symbol.toStringTag,{value:\"WritableStreamDefaultController\",configurable:!0});var Pt=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof globalThis<\"u\"?globalThis:void 0,Zo=(function(){let e=Pt?.DOMException;return(function(r){if(typeof r!=\"function\"&&typeof r!=\"object\"||r.name!==\"DOMException\")return!1;try{return new r,!0}catch{return!1}})(e)?e:void 0})()||(function(){let e=o(function(r,t){this.message=r||\"\",this.name=t||\"Error\",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},\"e\");return g(e,\"DOMException\"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,\"constructor\",{value:e,writable:!0,configurable:!0}),e})();function qt(e,r,t,n,a,l){let i=Te(e),s=go(r);e._disturbed=!0;let u=new Dr(s),d=new Qr(u);return A((h,p)=>{let c;if(l!==void 0){if(c=o(()=>{let b=l.reason!==void 0?l.reason:new Zo(\"Aborted\",\"AbortError\"),O=[];n||O.push(()=>r._state===\"writable\"?dr(r,b):w(void 0)),a||O.push(()=>e._state===\"readable\"?N(e,b):w(void 0)),P(()=>Promise.all(O.map(B=>B())),!0,b)},\"S\"),l.aborted)return void c();l.addEventListener(\"abort\",c)}function _(){for(;!u._shuttingDown&&!r._backpressure&&r._state===\"writable\"&&!H(r)&&e._state===\"readable\"&&Vt(i);)Ee(i,d);if(u._shuttingDown)return w(!0);if(r._backpressure)return U(s._readyPromise,_);let b=new Nr(u);return Ee(i,b),b._promise}o(_,\"g\");var R,C,k;if(Et(e,i._closedPromise,b=>(n?v(!0,b):P(()=>dr(r,b),!0,b),null)),Et(r,s._closedPromise,b=>(a?v(!0,b):P(()=>N(e,b),!0,b),null)),R=e,C=i._closedPromise,k=o(()=>(t?v():P(()=>(function(b){let O=b._ownerWritableStream,B=O._state;return H(O)||B===\"closed\"?w(void 0):B===\"errored\"?f(O._storedError):To(b)})(s)),null),\"R\"),R._state===\"closed\"?k():gr(C,k),H(r)||r._state===\"closed\"){let b=new TypeError(\"the destination writable stream closed before all data could be piped to it\");a?v(!0,b):P(()=>N(e,b),!0,b)}function P(b,O,B){function q(){return L(b(),()=>T(O,B),S=>T(!0,S)),null}o(q,\"n\"),u._shuttingDown||(u._shuttingDown=!0,r._state!==\"writable\"||H(r)?q():gr(u._waitForWritesToFinish(),q))}o(P,\"T\");function v(b,O){u._shuttingDown||(u._shuttingDown=!0,r._state!==\"writable\"||H(r)?T(b,O):gr(u._waitForWritesToFinish(),()=>T(b,O)))}o(v,\"P\");function T(b,O){return Po(s),te(i),l!==void 0&&l.removeEventListener(\"abort\",c),b?p(O):h(void 0),null}o(T,\"C\"),Ae(A((b,O)=>{o(function B(q){q?b():U(_(),B,O)},\"r\")(!1)}))})}o(qt,\"hr\");var Dr=class{static{o(this,\"br\")}constructor(r){this._writer=r,this._shuttingDown=!1,this._currentWrite=w(void 0)}_waitForWritesToFinish(){let r=this._currentWrite;return U(this._currentWrite,()=>r!==this._currentWrite?this._waitForWritesToFinish():void 0)}},Nr=class{static{o(this,\"_r\")}constructor(r){this._state=r,this._promise=A((t,n)=>{this._resolvePromise=t,this._rejectPromise=n})}_chunkSteps(r){this._state._currentWrite=U(ut(this._state._writer,r),void 0,qe),this._resolvePromise(!1)}_closeSteps(){this._resolvePromise(!0)}_errorSteps(r){this._rejectPromise(r)}},Qr=class{static{o(this,\"mr\")}constructor(r){this._state=r}_chunkSteps(r){this._state._currentWrite=U(ut(this._state._writer,r),void 0,qe)}_closeSteps(){}_errorSteps(r){}};function Et(e,r,t){e._state===\"errored\"?t(e._storedError):jr(r,t)}o(Et,\"pr\");var V=class{static{o(this,\"ReadableStreamDefaultController\")}constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!Xe(this))throw Je(\"desiredSize\");return ht(this)}close(){if(!Xe(this))throw Je(\"close\");if(!je(this))throw new TypeError(\"The stream is not in a state that permits close\");ve(this)}enqueue(r=void 0){if(!Xe(this))throw Je(\"enqueue\");if(!je(this))throw new TypeError(\"The stream is not in a state that permits enqueue\");return Ce(this,r)}error(r=void 0){if(!Xe(this))throw Je(\"error\");Y(this,r)}[Yr](r){ue(this);let t=this._cancelAlgorithm(r);return hr(this),t}[Ur](r){let t=this._controlledReadableStream;if(this._queue.length>0){let n=Fr(this);this._closeRequested&&this._queue.length===0?(hr(this),He(t)):De(this),r._chunkSteps(n)}else Qt(t,r),De(this)}[Gr](){return this._queue.length>0}[Xr](){}};function Xe(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableStream\")&&e instanceof V}o(Xe,\"yr\");function De(e){if(Ao(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,L(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,De(e)),null),r=>(Y(e,r),null))}}o(De,\"Sr\");function Ao(e){let r=e._controlledReadableStream;return!je(e)||!e._started?!1:ae(r)&&br(r)>0?!0:ht(e)>0}o(Ao,\"gr\");function hr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}o(hr,\"vr\");function ve(e){if(!je(e))return;let r=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(hr(e),He(r))}o(ve,\"wr\");function Ce(e,r){if(!je(e))return;let t=e._controlledReadableStream;if(ae(t)&&br(t)>0)tt(t,r,!1);else{let n;try{n=e._strategySizeAlgorithm(r)}catch(a){throw Y(e,a),a}try{ot(e,r,n)}catch(a){throw Y(e,a),a}}De(e)}o(Ce,\"Rr\");function Y(e,r){let t=e._controlledReadableStream;t._state===\"readable\"&&(ue(e),hr(e),Fo(t,r))}o(Y,\"Tr\");function ht(e){let r=e._controlledReadableStream._state;return r===\"errored\"?null:r===\"closed\"?0:e._strategyHWM-e._queueTotalSize}o(ht,\"Pr\");function je(e){let r=e._controlledReadableStream._state;return!e._closeRequested&&r===\"readable\"}o(je,\"Cr\");function zo(e,r,t,n,a,l,i){r._controlledReadableStream=e,r._queue=void 0,r._queueTotalSize=void 0,ue(r),r._started=!1,r._closeRequested=!1,r._pullAgain=!1,r._pulling=!1,r._strategySizeAlgorithm=i,r._strategyHWM=l,r._pullAlgorithm=n,r._cancelAlgorithm=a,e._readableStreamController=r,L(w(t()),()=>(r._started=!0,De(r),null),s=>(Y(r,s),null))}o(zo,\"qr\");function Je(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}o(Je,\"Er\");function en(e,r){return he(e._readableStreamController)?(function(t){let n,a,l,i,s,u=Te(t),d=!1,h=!1,p=!1,c=!1,_=!1,R=A(q=>{s=q});function C(q){jr(q._closedPromise,S=>(q!==u||(M(l._readableStreamController,S),M(i._readableStreamController,S),c&&_||s(void 0)),null))}o(C,\"m\");function k(){_e(u)&&(te(u),u=Te(t),C(u)),Ee(u,{_chunkSteps:o(q=>{be(()=>{h=!1,p=!1;let S=q,m=q;if(!c&&!_)try{m=St(q)}catch(j){return M(l._readableStreamController,j),M(i._readableStreamController,j),void s(N(t,j))}c||tr(l._readableStreamController,S),_||tr(i._readableStreamController,m),d=!1,h?v():p&&T()})},\"_chunkSteps\"),_closeSteps:o(()=>{d=!1,c||Ie(l._readableStreamController),_||Ie(i._readableStreamController),l._readableStreamController._pendingPullIntos.length>0&&or(l._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&or(i._readableStreamController,0),c&&_||s(void 0)},\"_closeSteps\"),_errorSteps:o(()=>{d=!1},\"_errorSteps\")})}o(k,\"p\");function P(q,S){se(u)&&(te(u),u=bo(t),C(u));let m=S?i:l,j=S?l:i;mo(u,q,1,{_chunkSteps:o(y=>{be(()=>{h=!1,p=!1;let E=S?_:c;if(S?c:_)E||nr(m._readableStreamController,y);else{let I;try{I=St(y)}catch(F){return M(m._readableStreamController,F),M(j._readableStreamController,F),void s(N(t,F))}E||nr(m._readableStreamController,y),tr(j._readableStreamController,I)}d=!1,h?v():p&&T()})},\"_chunkSteps\"),_closeSteps:o(y=>{d=!1;let E=S?_:c,I=S?c:_;E||Ie(m._readableStreamController),I||Ie(j._readableStreamController),y!==void 0&&(E||nr(m._readableStreamController,y),!I&&j._readableStreamController._pendingPullIntos.length>0&&or(j._readableStreamController,0)),E&&I||s(void 0)},\"_closeSteps\"),_errorSteps:o(()=>{d=!1},\"_errorSteps\")})}o(P,\"S\");function v(){if(d)return h=!0,w(void 0);d=!0;let q=Ir(l._readableStreamController);return q===null?k():P(q._view,!1),w(void 0)}o(v,\"g\");function T(){if(d)return p=!0,w(void 0);d=!0;let q=Ir(i._readableStreamController);return q===null?k():P(q._view,!0),w(void 0)}o(T,\"v\");function b(q){if(c=!0,n=q,_){let S=Fe([n,a]),m=N(t,S);s(m)}return R}o(b,\"w\");function O(q){if(_=!0,a=q,c){let S=Fe([n,a]),m=N(t,S);s(m)}return R}o(O,\"R\");function B(){}return o(B,\"T\"),l=jt(B,v,b),i=jt(B,T,O),C(u),[l,i]})(e):(function(t){let n=Te(t),a,l,i,s,u,d=!1,h=!1,p=!1,c=!1,_=A(v=>{u=v});function R(){return d?(h=!0,w(void 0)):(d=!0,Ee(n,{_chunkSteps:o(v=>{be(()=>{h=!1;let T=v,b=v;p||Ce(i._readableStreamController,T),c||Ce(s._readableStreamController,b),d=!1,h&&R()})},\"_chunkSteps\"),_closeSteps:o(()=>{d=!1,p||ve(i._readableStreamController),c||ve(s._readableStreamController),p&&c||u(void 0)},\"_closeSteps\"),_errorSteps:o(()=>{d=!1},\"_errorSteps\")}),w(void 0))}o(R,\"b\");function C(v){if(p=!0,a=v,c){let T=Fe([a,l]),b=N(t,T);u(b)}return _}o(C,\"m\");function k(v){if(c=!0,l=v,p){let T=Fe([a,l]),b=N(t,T);u(b)}return _}o(k,\"p\");function P(){}return o(P,\"S\"),i=Ne(P,R,C),s=Ne(P,R,k),jr(n._closedPromise,v=>(Y(i._readableStreamController,v),Y(s._readableStreamController,v),p&&c||u(void 0),null)),[i,s]})(e)}o(en,\"Wr\");function rn(e){return W(r=e)&&r.getReader!==void 0?(function(t){let n;function a(){let i;try{i=t.read()}catch(s){return f(s)}return re(i,s=>{if(!W(s))throw new TypeError(\"The promise returned by the reader.read() method must fulfill with an object\");if(s.done)ve(n._readableStreamController);else{let u=s.value;Ce(n._readableStreamController,u)}})}o(a,\"n\");function l(i){try{return w(t.cancel(i))}catch(s){return f(s)}}return o(l,\"i\"),n=Ne(qe,a,l,0),n})(e.getReader()):(function(t){let n,a=Xt(t,\"async\");function l(){let s;try{s=Jt(a)}catch(u){return f(u)}return re(w(s),u=>{if(!W(u))throw new TypeError(\"The promise returned by the iterator.next() method must fulfill with an object\");if(u.done)ve(n._readableStreamController);else{let d=u.value;Ce(n._readableStreamController,d)}})}o(l,\"i\");function i(s){let u=a.iterator,d;try{d=Be(u,\"return\")}catch(h){return f(h)}return d===void 0?w(void 0):re(ne(d,u,[s]),h=>{if(!W(h))throw new TypeError(\"The promise returned by the iterator.return() method must fulfill with an object\")})}return o(i,\"a\"),n=Ne(qe,l,i,0),n})(e);var r}o(rn,\"Or\");function tn(e,r,t){return x(e,t),n=>ne(e,r,[n])}o(tn,\"Br\");function on(e,r,t){return x(e,t),n=>ne(e,r,[n])}o(on,\"jr\");function nn(e,r,t){return x(e,t),n=>pe(e,r,[n])}o(nn,\"kr\");function sn(e,r){if((e=`${e}`)!=\"bytes\")throw new TypeError(`${r} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}o(sn,\"Ar\");function Ct(e,r){Z(e,r);let t=e?.preventAbort,n=e?.preventCancel,a=e?.preventClose,l=e?.signal;return l!==void 0&&(function(i,s){if(!(function(u){if(typeof u!=\"object\"||u===null)return!1;try{return typeof u.aborted==\"boolean\"}catch{return!1}})(i))throw new TypeError(`${s} is not an AbortSignal.`)})(l,`${r} has member 'signal' that`),{preventAbort:!!t,preventCancel:!!n,preventClose:!!a,signal:l}}o(Ct,\"zr\");Object.defineProperties(V.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),g(V.prototype.close,\"close\"),g(V.prototype.enqueue,\"enqueue\"),g(V.prototype.error,\"error\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(V.prototype,Symbol.toStringTag,{value:\"ReadableStreamDefaultController\",configurable:!0});var z=class{static{o(this,\"ReadableStream\")}constructor(r={},t={}){r===void 0?r=null:Nt(r,\"First parameter\");let n=cr(t,\"Second parameter\"),a=(function(l,i){Z(l,i);let s=l,u=s?.autoAllocateChunkSize,d=s?.cancel,h=s?.pull,p=s?.start,c=s?.type;return{autoAllocateChunkSize:u===void 0?void 0:et(u,`${i} has member 'autoAllocateChunkSize' that`),cancel:d===void 0?void 0:tn(d,s,`${i} has member 'cancel' that`),pull:h===void 0?void 0:on(h,s,`${i} has member 'pull' that`),start:p===void 0?void 0:nn(p,s,`${i} has member 'start' that`),type:c===void 0?void 0:sn(c,`${i} has member 'type' that`)}})(r,\"First parameter\");if(_t(this),a.type===\"bytes\"){if(n.size!==void 0)throw new RangeError(\"The strategy for a byte stream cannot have a size function\");(function(l,i,s){let u=Object.create(Q.prototype),d,h,p;d=i.start!==void 0?()=>i.start(u):()=>{},h=i.pull!==void 0?()=>i.pull(u):()=>w(void 0),p=i.cancel!==void 0?_=>i.cancel(_):()=>w(void 0);let c=i.autoAllocateChunkSize;if(c===0)throw new TypeError(\"autoAllocateChunkSize must be greater than 0\");_o(l,u,d,h,p,s,c)})(this,a,Me(n,0))}else{let l=ur(n);(function(i,s,u,d){let h=Object.create(V.prototype),p,c,_;p=s.start!==void 0?()=>s.start(h):()=>{},c=s.pull!==void 0?()=>s.pull(h):()=>w(void 0),_=s.cancel!==void 0?R=>s.cancel(R):()=>w(void 0),zo(i,h,p,c,_,u,d)})(this,a,Me(n,1),l)}}get locked(){if(!ie(this))throw fe(\"locked\");return ae(this)}cancel(r=void 0){return ie(this)?ae(this)?f(new TypeError(\"Cannot cancel a stream that already has a reader\")):N(this,r):f(fe(\"cancel\"))}getReader(r=void 0){if(!ie(this))throw fe(\"getReader\");return(function(t,n){Z(t,n);let a=t?.mode;return{mode:a===void 0?void 0:Vo(a,`${n} has member 'mode' that`)}})(r,\"First parameter\").mode===void 0?Te(this):bo(this)}pipeThrough(r,t={}){if(!ie(this))throw fe(\"pipeThrough\");oe(r,1,\"pipeThrough\");let n=(function(l,i){Z(l,i);let s=l?.readable;Or(s,\"readable\",\"ReadableWritablePair\"),rt(s,`${i} has member 'readable' that`);let u=l?.writable;return Or(u,\"writable\",\"ReadableWritablePair\"),vo(u,`${i} has member 'writable' that`),{readable:s,writable:u}})(r,\"First parameter\"),a=Ct(t,\"Second parameter\");if(ae(this))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream\");if(Pe(n.writable))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream\");return Ae(qt(this,n.writable,a.preventClose,a.preventAbort,a.preventCancel,a.signal)),n.readable}pipeTo(r,t={}){if(!ie(this))return f(fe(\"pipeTo\"));if(r===void 0)return f(\"Parameter 1 is required in 'pipeTo'.\");if(!Se(r))return f(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));let n;try{n=Ct(t,\"Second parameter\")}catch(a){return f(a)}return ae(this)?f(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream\")):Pe(r)?f(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream\")):qt(this,r,n.preventClose,n.preventAbort,n.preventCancel,n.signal)}tee(){if(!ie(this))throw fe(\"tee\");return Fe(en(this))}values(r=void 0){if(!ie(this))throw fe(\"values\");return(function(t,n){let a=Te(t),l=new lr(a,n),i=Object.create(Kt);return i._asyncIteratorImpl=l,i})(this,(function(t,n){return Z(t,n),{preventCancel:!!t?.preventCancel}})(r,\"First parameter\").preventCancel)}[Qe](r){return this.values(r)}static from(r){return rn(r)}};function Ne(e,r,t,n=1,a=()=>1){let l=Object.create(z.prototype);return _t(l),zo(l,Object.create(V.prototype),e,r,t,n,a),l}o(Ne,\"Dr\");function jt(e,r,t){let n=Object.create(z.prototype);return _t(n),_o(n,Object.create(Q.prototype),e,r,t,0,void 0),n}o(jt,\"Fr\");function _t(e){e._state=\"readable\",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}o(_t,\"Lr\");function ie(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readableStreamController\")&&e instanceof z}o(ie,\"Ir\");function ae(e){return e._reader!==void 0}o(ae,\"$r\");function N(e,r){if(e._disturbed=!0,e._state===\"closed\")return w(void 0);if(e._state===\"errored\")return f(e._storedError);He(e);let t=e._reader;if(t!==void 0&&_e(t)){let n=t._readIntoRequests;t._readIntoRequests=new $,n.forEach(a=>{a._closeSteps(void 0)})}return re(e._readableStreamController[Yr](r),qe)}o(N,\"Mr\");function He(e){e._state=\"closed\";let r=e._reader;if(r!==void 0&&(Dt(r),se(r))){let t=r._readRequests;r._readRequests=new $,t.forEach(n=>{n._closeSteps()})}}o(He,\"Yr\");function Fo(e,r){e._state=\"errored\",e._storedError=r;let t=e._reader;t!==void 0&&(Kr(t,r),se(t)?Yt(t,r):yo(t,r))}o(Fo,\"xr\");function fe(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}o(fe,\"Qr\");function Bo(e,r){Z(e,r);let t=e?.highWaterMark;return Or(t,\"highWaterMark\",\"QueuingStrategyInit\"),{highWaterMark:Zr(t)}}o(Bo,\"Nr\");Object.defineProperties(z,{from:{enumerable:!0}}),Object.defineProperties(z.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),g(z.from,\"from\"),g(z.prototype.cancel,\"cancel\"),g(z.prototype.getReader,\"getReader\"),g(z.prototype.pipeThrough,\"pipeThrough\"),g(z.prototype.pipeTo,\"pipeTo\"),g(z.prototype.tee,\"tee\"),g(z.prototype.values,\"values\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(z.prototype,Symbol.toStringTag,{value:\"ReadableStream\",configurable:!0}),Object.defineProperty(z.prototype,Qe,{value:z.prototype.values,writable:!0,configurable:!0});var Io=o(e=>e.byteLength,\"Hr\");g(Io,\"size\");var ke=class{static{o(this,\"ByteLengthQueuingStrategy\")}constructor(r){oe(r,1,\"ByteLengthQueuingStrategy\"),r=Bo(r,\"First parameter\"),this._byteLengthQueuingStrategyHighWaterMark=r.highWaterMark}get highWaterMark(){if(!Ot(this))throw kt(\"highWaterMark\");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Ot(this))throw kt(\"size\");return Io}};function kt(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}o(kt,\"Vr\");function Ot(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_byteLengthQueuingStrategyHighWaterMark\")&&e instanceof ke}o(Ot,\"Ur\");Object.defineProperties(ke.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(ke.prototype,Symbol.toStringTag,{value:\"ByteLengthQueuingStrategy\",configurable:!0});var Lo=o(()=>1,\"Gr\");g(Lo,\"size\");var Oe=class{static{o(this,\"CountQueuingStrategy\")}constructor(r){oe(r,1,\"CountQueuingStrategy\"),r=Bo(r,\"First parameter\"),this._countQueuingStrategyHighWaterMark=r.highWaterMark}get highWaterMark(){if(!At(this))throw Wt(\"highWaterMark\");return this._countQueuingStrategyHighWaterMark}get size(){if(!At(this))throw Wt(\"size\");return Lo}};function Wt(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}o(Wt,\"Xr\");function At(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_countQueuingStrategyHighWaterMark\")&&e instanceof Oe}o(At,\"Jr\");function an(e,r,t){return x(e,t),n=>ne(e,r,[n])}o(an,\"Kr\");function ln(e,r,t){return x(e,t),n=>pe(e,r,[n])}o(ln,\"Zr\");function un(e,r,t){return x(e,t),(n,a)=>ne(e,r,[n,a])}o(un,\"eo\");function cn(e,r,t){return x(e,t),n=>ne(e,r,[n])}o(cn,\"to\");Object.defineProperties(Oe.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(Oe.prototype,Symbol.toStringTag,{value:\"CountQueuingStrategy\",configurable:!0});var We=class{static{o(this,\"TransformStream\")}constructor(r={},t={},n={}){r===void 0&&(r=null);let a=cr(t,\"Second parameter\"),l=cr(n,\"Third parameter\"),i=(function(c,_){Z(c,_);let R=c?.cancel,C=c?.flush,k=c?.readableType,P=c?.start,v=c?.transform,T=c?.writableType;return{cancel:R===void 0?void 0:cn(R,c,`${_} has member 'cancel' that`),flush:C===void 0?void 0:an(C,c,`${_} has member 'flush' that`),readableType:k,start:P===void 0?void 0:ln(P,c,`${_} has member 'start' that`),transform:v===void 0?void 0:un(v,c,`${_} has member 'transform' that`),writableType:T}})(r,\"First parameter\");if(i.readableType!==void 0)throw new RangeError(\"Invalid readableType specified\");if(i.writableType!==void 0)throw new RangeError(\"Invalid writableType specified\");let s=Me(l,0),u=ur(l),d=Me(a,1),h=ur(a),p;(function(c,_,R,C,k,P){function v(){return _}o(v,\"a\");function T(S){return(function(m,j){let y=m._transformStreamController;return m._backpressure?re(m._backpressureChangePromise,()=>{let E=m._writable;if(E._state===\"erroring\")throw E._storedError;return Ft(y,j)}):Ft(y,j)})(c,S)}o(T,\"s\");function b(S){return(function(m,j){let y=m._transformStreamController;if(y._finishPromise!==void 0)return y._finishPromise;let E=m._readable;y._finishPromise=A((F,vr)=>{y._finishPromise_resolve=F,y._finishPromise_reject=vr});let I=y._cancelAlgorithm(j);return sr(y),L(I,()=>(E._state===\"errored\"?we(y,E._storedError):(Y(E._readableStreamController,j),Cr(y)),null),F=>(Y(E._readableStreamController,F),we(y,F),null)),y._finishPromise})(c,S)}o(b,\"l\");function O(){return(function(S){let m=S._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let j=S._readable;m._finishPromise=A((E,I)=>{m._finishPromise_resolve=E,m._finishPromise_reject=I});let y=m._flushAlgorithm();return sr(m),L(y,()=>(j._state===\"errored\"?we(m,j._storedError):(ve(j._readableStreamController),Cr(m)),null),E=>(Y(j._readableStreamController,E),we(m,E),null)),m._finishPromise})(c)}o(O,\"c\");function B(){return(function(S){return _r(S,!1),S._backpressureChangePromise})(c)}o(B,\"d\");function q(S){return(function(m,j){let y=m._transformStreamController;if(y._finishPromise!==void 0)return y._finishPromise;let E=m._writable;y._finishPromise=A((F,vr)=>{y._finishPromise_resolve=F,y._finishPromise_reject=vr});let I=y._cancelAlgorithm(j);return sr(y),L(I,()=>(E._state===\"errored\"?we(y,E._storedError):(xe(E._writableStreamController,j),Hr(m),Cr(y)),null),F=>(xe(E._writableStreamController,F),Hr(m),we(y,F),null)),y._finishPromise})(c,S)}o(q,\"f\"),c._writable=(function(S,m,j,y,E=1,I=()=>1){let F=Object.create(J.prototype);return wo(F),Eo(F,Object.create(le.prototype),S,m,j,y,E,I),F})(v,T,O,b,R,C),c._readable=Ne(v,B,q,k,P),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,_r(c,!0),c._transformStreamController=void 0})(this,A(c=>{p=c}),d,h,s,u),(function(c,_){let R=Object.create(K.prototype),C,k,P;C=_.transform!==void 0?v=>_.transform(v,R):v=>{try{return Mo(R,v),w(void 0)}catch(T){return f(T)}},k=_.flush!==void 0?()=>_.flush(R):()=>w(void 0),P=_.cancel!==void 0?v=>_.cancel(v):()=>w(void 0),(function(v,T,b,O,B){T._controlledTransformStream=v,v._transformStreamController=T,T._transformAlgorithm=b,T._flushAlgorithm=O,T._cancelAlgorithm=B,T._finishPromise=void 0,T._finishPromise_resolve=void 0,T._finishPromise_reject=void 0})(c,R,C,k,P)})(this,i),i.start!==void 0?p(i.start(this._transformStreamController)):p(void 0)}get readable(){if(!zt(this))throw Bt(\"readable\");return this._readable}get writable(){if(!zt(this))throw Bt(\"writable\");return this._writable}};function zt(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_transformStreamController\")&&e instanceof We}o(zt,\"ro\");function $o(e,r){Y(e._readable._readableStreamController,r),bt(e,r)}o($o,\"oo\");function bt(e,r){sr(e._transformStreamController),xe(e._writable._writableStreamController,r),Hr(e)}o(bt,\"no\");function Hr(e){e._backpressure&&_r(e,!1)}o(Hr,\"io\");function _r(e,r){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=A(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=r}o(_r,\"ao\");Object.defineProperties(We.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(We.prototype,Symbol.toStringTag,{value:\"TransformStream\",configurable:!0});var K=class{static{o(this,\"TransformStreamDefaultController\")}constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!Ke(this))throw Ze(\"desiredSize\");return ht(this._controlledTransformStream._readable._readableStreamController)}enqueue(r=void 0){if(!Ke(this))throw Ze(\"enqueue\");Mo(this,r)}error(r=void 0){if(!Ke(this))throw Ze(\"error\");var t;t=r,$o(this._controlledTransformStream,t)}terminate(){if(!Ke(this))throw Ze(\"terminate\");(function(r){let t=r._controlledTransformStream;ve(t._readable._readableStreamController);let n=new TypeError(\"TransformStream terminated\");bt(t,n)})(this)}};function Ke(e){return!!W(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_controlledTransformStream\")&&e instanceof K}o(Ke,\"so\");function sr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0}o(sr,\"lo\");function Mo(e,r){let t=e._controlledTransformStream,n=t._readable._readableStreamController;if(!je(n))throw new TypeError(\"Readable side is not in a state that permits enqueue\");try{Ce(n,r)}catch(l){throw bt(t,l),t._readable._storedError}(function(l){return!Ao(l)})(n)!==t._backpressure&&_r(t,!0)}o(Mo,\"uo\");function Ft(e,r){return re(e._transformAlgorithm(r),void 0,t=>{throw $o(e._controlledTransformStream,t),t})}o(Ft,\"co\");function Ze(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}o(Ze,\"fo\");function Cr(e){e._finishPromise_resolve!==void 0&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}o(Cr,\"ho\");function we(e,r){e._finishPromise_reject!==void 0&&(Ae(e._finishPromise),e._finishPromise_reject(r),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}o(we,\"bo\");function Bt(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}o(Bt,\"_o\");Object.defineProperties(K.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),g(K.prototype.enqueue,\"enqueue\"),g(K.prototype.error,\"error\"),g(K.prototype.terminate,\"terminate\"),typeof Symbol.toStringTag==\"symbol\"&&Object.defineProperty(K.prototype,Symbol.toStringTag,{value:\"TransformStreamDefaultController\",configurable:!0});export{G as a,ee as b,Q as c,X as d,J as e,D as f,le as g,V as h,z as i,ke as j,Oe as k,We as l,K as m,dn as n};\n",
|
|
5526
5524
|
"engine/chunks/chunk-QMKSQR7V.mjs": "import{a as s,c as R,o as L}from\"./chunk-IQ3JZKJB.mjs\";var I=R((K,h)=>{\"use strict\";L();var a=typeof Reflect==\"object\"?Reflect:null,m=a&&typeof a.apply==\"function\"?a.apply:s(function(e,n,r){return Function.prototype.apply.call(e,n,r)},\"ReflectApply\"),v;a&&typeof a.ownKeys==\"function\"?v=a.ownKeys:Object.getOwnPropertySymbols?v=s(function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},\"ReflectOwnKeys\"):v=s(function(e){return Object.getOwnPropertyNames(e)},\"ReflectOwnKeys\");function N(t){console&&console.warn&&console.warn(t)}s(N,\"ProcessEmitWarning\");var g=Number.isNaN||s(function(e){return e!==e},\"NumberIsNaN\");function f(){f.init.call(this)}s(f,\"EventEmitter\");h.exports=f;h.exports.once=T;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var y=10;function p(t){if(typeof t!=\"function\")throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof t)}s(p,\"checkListener\");Object.defineProperty(f,\"defaultMaxListeners\",{enumerable:!0,get:s(function(){return y},\"get\"),set:s(function(t){if(typeof t!=\"number\"||t<0||g(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");y=t},\"set\")});f.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=s(function(e){if(typeof e!=\"number\"||e<0||g(e))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+e+\".\");return this._maxListeners=e,this},\"setMaxListeners\");function _(t){return t._maxListeners===void 0?f.defaultMaxListeners:t._maxListeners}s(_,\"_getMaxListeners\");f.prototype.getMaxListeners=s(function(){return _(this)},\"getMaxListeners\");f.prototype.emit=s(function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e===\"error\",u=this._events;if(u!==void 0)i=i&&u.error===void 0;else if(!i)return!1;if(i){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var c=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw c.context=o,c}var l=u[e];if(l===void 0)return!1;if(typeof l==\"function\")m(l,this,n);else for(var d=l.length,j=x(l,d),r=0;r<d;++r)m(j[r],this,n);return!0},\"emit\");function w(t,e,n,r){var i,u,o;if(p(n),u=t._events,u===void 0?(u=t._events=Object.create(null),t._eventsCount=0):(u.newListener!==void 0&&(t.emit(\"newListener\",e,n.listener?n.listener:n),u=t._events),o=u[e]),o===void 0)o=u[e]=n,++t._eventsCount;else if(typeof o==\"function\"?o=u[e]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),i=_(t),i>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error(\"Possible EventEmitter memory leak detected. \"+o.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");c.name=\"MaxListenersExceededWarning\",c.emitter=t,c.type=e,c.count=o.length,N(c)}return t}s(w,\"_addListener\");f.prototype.addListener=s(function(e,n){return w(this,e,n,!1)},\"addListener\");f.prototype.on=f.prototype.addListener;f.prototype.prependListener=s(function(e,n){return w(this,e,n,!0)},\"prependListener\");function M(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}s(M,\"onceWrapper\");function b(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=M.bind(r);return i.listener=n,r.wrapFn=i,i}s(b,\"_onceWrap\");f.prototype.once=s(function(e,n){return p(n),this.on(e,b(this,e,n)),this},\"once\");f.prototype.prependOnceListener=s(function(e,n){return p(n),this.prependListener(e,b(this,e,n)),this},\"prependOnceListener\");f.prototype.removeListener=s(function(e,n){var r,i,u,o,c;if(p(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit(\"removeListener\",e,r.listener||n));else if(typeof r!=\"function\"){for(u=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){c=r[o].listener,u=o;break}if(u<0)return this;u===0?r.shift():A(r,u),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit(\"removeListener\",e,c||n)}return this},\"removeListener\");f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=s(function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var u=Object.keys(r),o;for(i=0;i<u.length;++i)o=u[i],o!==\"removeListener\"&&this.removeAllListeners(o);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n==\"function\")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this},\"removeAllListeners\");function E(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i==\"function\"?n?[i.listener||i]:[i]:n?P(i):x(i,i.length)}s(E,\"_listeners\");f.prototype.listeners=s(function(e){return E(this,e,!0)},\"listeners\");f.prototype.rawListeners=s(function(e){return E(this,e,!1)},\"rawListeners\");f.listenerCount=function(t,e){return typeof t.listenerCount==\"function\"?t.listenerCount(e):O.call(t,e)};f.prototype.listenerCount=O;function O(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n==\"function\")return 1;if(n!==void 0)return n.length}return 0}s(O,\"listenerCount\");f.prototype.eventNames=s(function(){return this._eventsCount>0?v(this._events):[]},\"eventNames\");function x(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}s(x,\"arrayClone\");function A(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}s(A,\"spliceOne\");function P(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}s(P,\"unwrapListeners\");function T(t,e){return new Promise(function(n,r){function i(o){t.removeListener(e,u),r(o)}s(i,\"errorListener\");function u(){typeof t.removeListener==\"function\"&&t.removeListener(\"error\",i),n([].slice.call(arguments))}s(u,\"resolver\"),C(t,e,u,{once:!0}),e!==\"error\"&&F(t,i,{once:!0})})}s(T,\"once\");function F(t,e,n){typeof t.on==\"function\"&&C(t,\"error\",e,n)}s(F,\"addErrorHandlerIfEventEmitter\");function C(t,e,n,r){if(typeof t.on==\"function\")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener==\"function\")t.addEventListener(e,s(function i(u){r.once&&t.removeEventListener(e,i),n(u)},\"wrapListener\"));else throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+typeof t)}s(C,\"eventTargetAgnosticAddListener\")});export{I as a};\n",
|
|
5527
5525
|
"engine/chunks/chunk-RAKQLW7K.mjs": "import{a as rr,c as He,d as D,e as er,f as Je,g as Ze,h as Ke,i as Qe,j as Xe,k as Or,l as Ye,m as rt,n as O}from\"./chunk-WHKCMYPO.mjs\";import{a as n,c as y,m as process,o as f}from\"./chunk-IQ3JZKJB.mjs\";var T=y((Ln,Tr)=>{\"use strict\";f();var et=Je();Tr.exports=n(function(){return et()&&!!Symbol.toStringTag},\"hasToStringTagShams\")});var Pr=y((Vn,Er)=>{\"use strict\";f();var tt=T()(),nt=O(),tr=nt(\"Object.prototype.toString\"),I=n(function(e){return tt&&e&&typeof e==\"object\"&&Symbol.toStringTag in e?!1:tr(e)===\"[object Arguments]\"},\"isArguments\"),Br=n(function(e){return I(e)?!0:e!==null&&typeof e==\"object\"&&\"length\"in e&&typeof e.length==\"number\"&&e.length>=0&&tr(e)!==\"[object Array]\"&&\"callee\"in e&&tr(e.callee)===\"[object Function]\"},\"isArguments\"),it=(function(){return I(arguments)})();I.isLegacyArguments=Br;Er.exports=it?I:Br});var kr=y((Zn,Ur)=>{\"use strict\";f();var qr=O(),ot=T()(),at=Ye(),ft=D(),or;ot?(Fr=qr(\"RegExp.prototype.exec\"),nr={},U=n(function(){throw nr},\"throwRegexMarker\"),ir={toString:U,valueOf:U},typeof Symbol.toPrimitive==\"symbol\"&&(ir[Symbol.toPrimitive]=U),or=n(function(e){if(!e||typeof e!=\"object\")return!1;var t=ft(e,\"lastIndex\"),i=t&&at(t,\"value\");if(!i)return!1;try{Fr(e,ir)}catch(o){return o===nr}},\"isRegex\")):(Dr=qr(\"Object.prototype.toString\"),Ir=\"[object RegExp]\",or=n(function(e){return!e||typeof e!=\"object\"&&typeof e!=\"function\"?!1:Dr(e)===Ir},\"isRegex\"));var Fr,nr,U,ir,Dr,Ir;Ur.exports=or});var Cr=y((Xn,xr)=>{\"use strict\";f();var ut=O(),st=kr(),ct=ut(\"RegExp.prototype.exec\"),lt=rr();xr.exports=n(function(e){if(!st(e))throw new lt(\"`regex` must be a RegExp\");return n(function(i){return ct(e,i)!==null},\"test\")},\"regexTester\")});var $r=y((ei,Mr)=>{\"use strict\";f();var pt=function*(){}.constructor;Mr.exports=()=>pt});var Rr=y((ni,Wr)=>{\"use strict\";f();var Nr=O(),yt=Cr(),gt=yt(/^\\s*(?:function)?\\*/),bt=T()(),zr=Or(),dt=Nr(\"Object.prototype.toString\"),mt=Nr(\"Function.prototype.toString\"),ht=$r();Wr.exports=n(function(e){if(typeof e!=\"function\")return!1;if(gt(mt(e)))return!0;if(!bt){var t=dt(e);return t===\"[object GeneratorFunction]\"}if(!zr)return!1;var i=ht();return i&&zr(e)===i.prototype},\"isGeneratorFunction\")});var Vr=y((ai,_r)=>{\"use strict\";f();var Gr=Function.prototype.toString,A=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,fr,k;if(typeof A==\"function\"&&typeof Object.defineProperty==\"function\")try{fr=Object.defineProperty({},\"length\",{get:n(function(){throw k},\"get\")}),k={},A(function(){throw 42},null,fr)}catch(r){r!==k&&(A=null)}else A=null;var vt=/^\\s*class\\b/,ur=n(function(e){try{var t=Gr.call(e);return vt.test(t)}catch{return!1}},\"isES6ClassFunction\"),ar=n(function(e){try{return ur(e)?!1:(Gr.call(e),!0)}catch{return!1}},\"tryFunctionToStr\"),x=Object.prototype.toString,At=\"[object Object]\",St=\"[object Function]\",wt=\"[object GeneratorFunction]\",jt=\"[object HTMLAllCollection]\",Ot=\"[object HTML document.all class]\",Tt=\"[object HTMLCollection]\",Bt=typeof Symbol==\"function\"&&!!Symbol.toStringTag,Et=!(0 in[,]),sr=n(function(){return!1},\"isDocumentDotAll\");typeof document==\"object\"&&(Lr=document.all,x.call(Lr)===x.call(document.all)&&(sr=n(function(e){if((Et||!e)&&(typeof e>\"u\"||typeof e==\"object\"))try{var t=x.call(e);return(t===jt||t===Ot||t===Tt||t===At)&&e(\"\")==null}catch{}return!1},\"isDocumentDotAll\")));var Lr;_r.exports=n(A?function(e){if(sr(e))return!0;if(!e||typeof e!=\"function\"&&typeof e!=\"object\")return!1;try{A(e,null,fr)}catch(t){if(t!==k)return!1}return!ur(e)&&ar(e)}:function(e){if(sr(e))return!0;if(!e||typeof e!=\"function\"&&typeof e!=\"object\")return!1;if(Bt)return ar(e);if(ur(e))return!1;var t=x.call(e);return t!==St&&t!==wt&&!/^\\[object HTML/.test(t)?!1:ar(e)},\"isCallable\")});var Zr=y((si,Jr)=>{\"use strict\";f();var Pt=Vr(),qt=Object.prototype.toString,Hr=Object.prototype.hasOwnProperty,Ft=n(function(e,t,i){for(var o=0,u=e.length;o<u;o++)Hr.call(e,o)&&(i==null?t(e[o],o,e):t.call(i,e[o],o,e))},\"forEachArray\"),Dt=n(function(e,t,i){for(var o=0,u=e.length;o<u;o++)i==null?t(e.charAt(o),o,e):t.call(i,e.charAt(o),o,e)},\"forEachString\"),It=n(function(e,t,i){for(var o in e)Hr.call(e,o)&&(i==null?t(e[o],o,e):t.call(i,e[o],o,e))},\"forEachObject\");function Ut(r){return qt.call(r)===\"[object Array]\"}n(Ut,\"isArray\");Jr.exports=n(function(e,t,i){if(!Pt(t))throw new TypeError(\"iterator must be a function\");var o;arguments.length>=3&&(o=i),Ut(e)?Ft(e,t,o):typeof e==\"string\"?Dt(e,t,o):It(e,t,o)},\"forEach\")});var Qr=y((pi,Kr)=>{\"use strict\";f();Kr.exports=[\"Float16Array\",\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]});var Yr=y((gi,Xr)=>{\"use strict\";f();var cr=Qr(),kt=globalThis;Xr.exports=n(function(){for(var e=[],t=0;t<cr.length;t++)typeof kt[cr[t]]==\"function\"&&(e[e.length]=cr[t]);return e},\"availableTypedArrays\")});var ne=y((mi,te)=>{\"use strict\";f();var re=er(),xt=He(),S=rr(),ee=D();te.exports=n(function(e,t,i){if(!e||typeof e!=\"object\"&&typeof e!=\"function\")throw new S(\"`obj` must be an object or a function`\");if(typeof t!=\"string\"&&typeof t!=\"symbol\")throw new S(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new S(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new S(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new S(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new S(\"`loose`, if provided, must be a boolean\");var o=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,p=!!ee&&ee(e,t);if(re)re(e,t,{configurable:a===null&&p?p.configurable:!a,enumerable:o===null&&p?p.enumerable:!o,value:i,writable:u===null&&p?p.writable:!u});else if(l||!o&&!u&&!a)e[t]=i;else throw new xt(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")},\"defineDataProperty\")});var ae=y((Ai,oe)=>{\"use strict\";f();var lr=er(),ie=n(function(){return!!lr},\"hasPropertyDescriptors\");ie.hasArrayLengthDefineBug=n(function(){if(!lr)return null;try{return lr([],\"length\",{value:1}).length!==1}catch{return!0}},\"hasArrayLengthDefineBug\");oe.exports=ie});var le=y((ji,ce)=>{\"use strict\";f();var Ct=rt(),fe=ne(),Mt=ae()(),ue=D(),se=rr(),$t=Ct(\"%Math.floor%\");ce.exports=n(function(e,t){if(typeof e!=\"function\")throw new se(\"`fn` is not a function\");if(typeof t!=\"number\"||t<0||t>4294967295||$t(t)!==t)throw new se(\"`length` must be a positive 32-bit integer\");var i=arguments.length>2&&!!arguments[2],o=!0,u=!0;if(\"length\"in e&&ue){var a=ue(e,\"length\");a&&!a.configurable&&(o=!1),a&&!a.writable&&(u=!1)}return(o||u||!i)&&(Mt?fe(e,\"length\",t,!0,!0):fe(e,\"length\",t)),e},\"setFunctionLength\")});var ye=y((Bi,pe)=>{\"use strict\";f();var zt=Ze(),Nt=Ke(),Wt=Qe();pe.exports=n(function(){return Wt(zt,Nt,arguments)},\"applyBind\")});var de=y((qi,C)=>{\"use strict\";f();var Rt=le(),ge=er(),Lt=Xe(),be=ye();C.exports=n(function(e){var t=Lt(arguments),i=1+e.length-(arguments.length-1);return Rt(t,i>0?i:0,!0)},\"callBind\");ge?ge(C.exports,\"apply\",{value:be}):C.exports.apply=be});var br=y((Ii,Ae)=>{\"use strict\";f();var z=Zr(),Gt=Yr(),me=de(),yr=O(),$=D(),M=Or(),_t=yr(\"Object.prototype.toString\"),ve=T()(),he=globalThis,pr=Gt(),gr=yr(\"String.prototype.slice\"),Vt=yr(\"Array.prototype.indexOf\",!0)||n(function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},\"indexOf\"),N={__proto__:null};ve&&$&&M?z(pr,function(r){var e=new he[r];if(Symbol.toStringTag in e&&M){var t=M(e),i=$(t,Symbol.toStringTag);if(!i&&t){var o=M(t);i=$(o,Symbol.toStringTag)}if(i&&i.get){var u=me(i.get);N[\"$\"+r]=u}}}):z(pr,function(r){var e=new he[r],t=e.slice||e.set;if(t){var i=me(t);N[\"$\"+r]=i}});function Ht(r){var e=!1;return z(N,function(t,i){if(!e)try{\"$\"+t(r)===i&&(e=gr(i,1))}catch{}}),e}n(Ht,\"tryTypedArrays\");function Jt(r){var e=!1;return z(N,function(t,i){if(!e)try{t(r),e=gr(i,1)}catch{}}),e}n(Jt,\"trySlices\");function Zt(r){return Vt(pr,r)>-1}n(Zt,\"isTATag\");function Kt(r){if(!r||typeof r!=\"object\")return!1;if(!ve){var e=gr(_t(r),8,-1);return Zt(e)?e:e!==\"Object\"?!1:Jt(r)}return $?Ht(r):null}n(Kt,\"whichTypedArray\");Ae.exports=Kt});var we=y((xi,Se)=>{\"use strict\";f();var Qt=br();Se.exports=n(function(e){return!!Qt(e)},\"isTypedArray\")});var Ce=y(s=>{\"use strict\";f();var Xt=Pr(),Yt=Rr(),d=br(),je=we();function w(r){return r.call.bind(r)}n(w,\"uncurryThis\");var Oe=typeof BigInt<\"u\",Te=typeof Symbol<\"u\",b=w(Object.prototype.toString),rn=w(Number.prototype.valueOf),en=w(String.prototype.valueOf),tn=w(Boolean.prototype.valueOf);Oe&&(Be=w(BigInt.prototype.valueOf));var Be;Te&&(Ee=w(Symbol.prototype.valueOf));var Ee;function E(r,e){if(typeof r!=\"object\")return!1;try{return e(r),!0}catch{return!1}}n(E,\"checkBoxedPrimitive\");s.isArgumentsObject=Xt;s.isGeneratorFunction=Yt;s.isTypedArray=je;function nn(r){return typeof Promise<\"u\"&&r instanceof Promise||r!==null&&typeof r==\"object\"&&typeof r.then==\"function\"&&typeof r.catch==\"function\"}n(nn,\"isPromise\");s.isPromise=nn;function on(r){return typeof ArrayBuffer<\"u\"&&ArrayBuffer.isView?ArrayBuffer.isView(r):je(r)||qe(r)}n(on,\"isArrayBufferView\");s.isArrayBufferView=on;function an(r){return d(r)===\"Uint8Array\"}n(an,\"isUint8Array\");s.isUint8Array=an;function fn(r){return d(r)===\"Uint8ClampedArray\"}n(fn,\"isUint8ClampedArray\");s.isUint8ClampedArray=fn;function un(r){return d(r)===\"Uint16Array\"}n(un,\"isUint16Array\");s.isUint16Array=un;function sn(r){return d(r)===\"Uint32Array\"}n(sn,\"isUint32Array\");s.isUint32Array=sn;function cn(r){return d(r)===\"Int8Array\"}n(cn,\"isInt8Array\");s.isInt8Array=cn;function ln(r){return d(r)===\"Int16Array\"}n(ln,\"isInt16Array\");s.isInt16Array=ln;function pn(r){return d(r)===\"Int32Array\"}n(pn,\"isInt32Array\");s.isInt32Array=pn;function yn(r){return d(r)===\"Float32Array\"}n(yn,\"isFloat32Array\");s.isFloat32Array=yn;function gn(r){return d(r)===\"Float64Array\"}n(gn,\"isFloat64Array\");s.isFloat64Array=gn;function bn(r){return d(r)===\"BigInt64Array\"}n(bn,\"isBigInt64Array\");s.isBigInt64Array=bn;function dn(r){return d(r)===\"BigUint64Array\"}n(dn,\"isBigUint64Array\");s.isBigUint64Array=dn;function W(r){return b(r)===\"[object Map]\"}n(W,\"isMapToString\");W.working=typeof Map<\"u\"&&W(new Map);function mn(r){return typeof Map>\"u\"?!1:W.working?W(r):r instanceof Map}n(mn,\"isMap\");s.isMap=mn;function R(r){return b(r)===\"[object Set]\"}n(R,\"isSetToString\");R.working=typeof Set<\"u\"&&R(new Set);function hn(r){return typeof Set>\"u\"?!1:R.working?R(r):r instanceof Set}n(hn,\"isSet\");s.isSet=hn;function L(r){return b(r)===\"[object WeakMap]\"}n(L,\"isWeakMapToString\");L.working=typeof WeakMap<\"u\"&&L(new WeakMap);function vn(r){return typeof WeakMap>\"u\"?!1:L.working?L(r):r instanceof WeakMap}n(vn,\"isWeakMap\");s.isWeakMap=vn;function mr(r){return b(r)===\"[object WeakSet]\"}n(mr,\"isWeakSetToString\");mr.working=typeof WeakSet<\"u\"&&mr(new WeakSet);function An(r){return mr(r)}n(An,\"isWeakSet\");s.isWeakSet=An;function G(r){return b(r)===\"[object ArrayBuffer]\"}n(G,\"isArrayBufferToString\");G.working=typeof ArrayBuffer<\"u\"&&G(new ArrayBuffer);function Pe(r){return typeof ArrayBuffer>\"u\"?!1:G.working?G(r):r instanceof ArrayBuffer}n(Pe,\"isArrayBuffer\");s.isArrayBuffer=Pe;function _(r){return b(r)===\"[object DataView]\"}n(_,\"isDataViewToString\");_.working=typeof ArrayBuffer<\"u\"&&typeof DataView<\"u\"&&_(new DataView(new ArrayBuffer(1),0,1));function qe(r){return typeof DataView>\"u\"?!1:_.working?_(r):r instanceof DataView}n(qe,\"isDataView\");s.isDataView=qe;var dr=typeof SharedArrayBuffer<\"u\"?SharedArrayBuffer:void 0;function B(r){return b(r)===\"[object SharedArrayBuffer]\"}n(B,\"isSharedArrayBufferToString\");function Fe(r){return typeof dr>\"u\"?!1:(typeof B.working>\"u\"&&(B.working=B(new dr)),B.working?B(r):r instanceof dr)}n(Fe,\"isSharedArrayBuffer\");s.isSharedArrayBuffer=Fe;function Sn(r){return b(r)===\"[object AsyncFunction]\"}n(Sn,\"isAsyncFunction\");s.isAsyncFunction=Sn;function wn(r){return b(r)===\"[object Map Iterator]\"}n(wn,\"isMapIterator\");s.isMapIterator=wn;function jn(r){return b(r)===\"[object Set Iterator]\"}n(jn,\"isSetIterator\");s.isSetIterator=jn;function On(r){return b(r)===\"[object Generator]\"}n(On,\"isGeneratorObject\");s.isGeneratorObject=On;function Tn(r){return b(r)===\"[object WebAssembly.Module]\"}n(Tn,\"isWebAssemblyCompiledModule\");s.isWebAssemblyCompiledModule=Tn;function De(r){return E(r,rn)}n(De,\"isNumberObject\");s.isNumberObject=De;function Ie(r){return E(r,en)}n(Ie,\"isStringObject\");s.isStringObject=Ie;function Ue(r){return E(r,tn)}n(Ue,\"isBooleanObject\");s.isBooleanObject=Ue;function ke(r){return Oe&&E(r,Be)}n(ke,\"isBigIntObject\");s.isBigIntObject=ke;function xe(r){return Te&&E(r,Ee)}n(xe,\"isSymbolObject\");s.isSymbolObject=xe;function Bn(r){return De(r)||Ie(r)||Ue(r)||ke(r)||xe(r)}n(Bn,\"isBoxedPrimitive\");s.isBoxedPrimitive=Bn;function En(r){return typeof Uint8Array<\"u\"&&(Pe(r)||Fe(r))}n(En,\"isAnyArrayBuffer\");s.isAnyArrayBuffer=En;[\"isProxy\",\"isExternal\",\"isModuleNamespaceObject\"].forEach(function(r){Object.defineProperty(s,r,{enumerable:!1,value:n(function(){throw new Error(r+\" is not supported in userland\")},\"value\")})})});var $e=y((Wi,Me)=>{f();Me.exports=n(function(e){return e&&typeof e==\"object\"&&typeof e.copy==\"function\"&&typeof e.fill==\"function\"&&typeof e.readUInt8==\"function\"},\"isBuffer\")});var ze=y((Gi,hr)=>{f();typeof Object.create==\"function\"?hr.exports=n(function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},\"inherits\"):hr.exports=n(function(e,t){if(t){e.super_=t;var i=n(function(){},\"TempCtor\");i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},\"inherits\")});var Rn=y(c=>{f();var Ne=Object.getOwnPropertyDescriptors||n(function(e){for(var t=Object.keys(e),i={},o=0;o<t.length;o++)i[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return i},\"getOwnPropertyDescriptors\"),Pn=/%[sdj%]/g;c.format=function(r){if(!X(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(m(arguments[t]));return e.join(\" \")}for(var t=1,i=arguments,o=i.length,u=String(r).replace(Pn,function(l){if(l===\"%%\")return\"%\";if(t>=o)return l;switch(l){case\"%s\":return String(i[t++]);case\"%d\":return Number(i[t++]);case\"%j\":try{return JSON.stringify(i[t++])}catch{return\"[Circular]\"}default:return l}}),a=i[t];t<o;a=i[++t])Q(a)||!j(a)?u+=\" \"+a:u+=\" \"+m(a);return u};c.deprecate=function(r,e){if(typeof process<\"u\"&&process.noDeprecation===!0)return r;if(typeof process>\"u\")return function(){return c.deprecate(r,e).apply(this,arguments)};var t=!1;function i(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n(i,\"deprecated\"),i};var V={},We=/^$/;process.env.NODE_DEBUG&&(H=process.env.NODE_DEBUG,H=H.replace(/[|\\\\{}()[\\]^$+?.]/g,\"\\\\$&\").replace(/\\*/g,\".*\").replace(/,/g,\"$|^\").toUpperCase(),We=new RegExp(\"^\"+H+\"$\",\"i\"));var H;c.debuglog=function(r){if(r=r.toUpperCase(),!V[r])if(We.test(r)){var e=process.pid;V[r]=function(){var t=c.format.apply(c,arguments);console.error(\"%s %d: %s\",r,e,t)}}else V[r]=function(){};return V[r]};function m(r,e){var t={seen:[],stylize:Fn};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),wr(e)?t.showHidden=e:e&&c._extend(t,e),v(t.showHidden)&&(t.showHidden=!1),v(t.depth)&&(t.depth=2),v(t.colors)&&(t.colors=!1),v(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=qn),Z(t,r,t.depth)}n(m,\"inspect\");c.inspect=m;m.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]};m.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"};function qn(r,e){var t=m.styles[e];return t?\"\\x1B[\"+m.colors[t][0]+\"m\"+r+\"\\x1B[\"+m.colors[t][1]+\"m\":r}n(qn,\"stylizeWithColor\");function Fn(r,e){return r}n(Fn,\"stylizeNoColor\");function Dn(r){var e={};return r.forEach(function(t,i){e[t]=!0}),e}n(Dn,\"arrayToHash\");function Z(r,e,t){if(r.customInspect&&e&&J(e.inspect)&&e.inspect!==c.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(t,r);return X(i)||(i=Z(r,i,t)),i}var o=In(r,e);if(o)return o;var u=Object.keys(e),a=Dn(u);if(r.showHidden&&(u=Object.getOwnPropertyNames(e)),q(e)&&(u.indexOf(\"message\")>=0||u.indexOf(\"description\")>=0))return vr(e);if(u.length===0){if(J(e)){var l=e.name?\": \"+e.name:\"\";return r.stylize(\"[Function\"+l+\"]\",\"special\")}if(P(e))return r.stylize(RegExp.prototype.toString.call(e),\"regexp\");if(K(e))return r.stylize(Date.prototype.toString.call(e),\"date\");if(q(e))return vr(e)}var p=\"\",g=!1,F=[\"{\",\"}\"];if(Re(e)&&(g=!0,F=[\"[\",\"]\"]),J(e)){var _e=e.name?\": \"+e.name:\"\";p=\" [Function\"+_e+\"]\"}if(P(e)&&(p=\" \"+RegExp.prototype.toString.call(e)),K(e)&&(p=\" \"+Date.prototype.toUTCString.call(e)),q(e)&&(p=\" \"+vr(e)),u.length===0&&(!g||e.length==0))return F[0]+p+F[1];if(t<0)return P(e)?r.stylize(RegExp.prototype.toString.call(e),\"regexp\"):r.stylize(\"[Object]\",\"special\");r.seen.push(e);var Y;return g?Y=Un(r,e,t,a,u):Y=u.map(function(Ve){return Sr(r,e,t,a,Ve,g)}),r.seen.pop(),kn(Y,p,F)}n(Z,\"formatValue\");function In(r,e){if(v(e))return r.stylize(\"undefined\",\"undefined\");if(X(e)){var t=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return r.stylize(t,\"string\")}if(Le(e))return r.stylize(\"\"+e,\"number\");if(wr(e))return r.stylize(\"\"+e,\"boolean\");if(Q(e))return r.stylize(\"null\",\"null\")}n(In,\"formatPrimitive\");function vr(r){return\"[\"+Error.prototype.toString.call(r)+\"]\"}n(vr,\"formatError\");function Un(r,e,t,i,o){for(var u=[],a=0,l=e.length;a<l;++a)Ge(e,String(a))?u.push(Sr(r,e,t,i,String(a),!0)):u.push(\"\");return o.forEach(function(p){p.match(/^\\d+$/)||u.push(Sr(r,e,t,i,p,!0))}),u}n(Un,\"formatArray\");function Sr(r,e,t,i,o,u){var a,l,p;if(p=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},p.get?p.set?l=r.stylize(\"[Getter/Setter]\",\"special\"):l=r.stylize(\"[Getter]\",\"special\"):p.set&&(l=r.stylize(\"[Setter]\",\"special\")),Ge(i,o)||(a=\"[\"+o+\"]\"),l||(r.seen.indexOf(p.value)<0?(Q(t)?l=Z(r,p.value,null):l=Z(r,p.value,t-1),l.indexOf(`\n`)>-1&&(u?l=l.split(`\n`).map(function(g){return\" \"+g}).join(`\n`).slice(2):l=`\n`+l.split(`\n`).map(function(g){return\" \"+g}).join(`\n`))):l=r.stylize(\"[Circular]\",\"special\")),v(a)){if(u&&o.match(/^\\d+$/))return l;a=JSON.stringify(\"\"+o),a.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.slice(1,-1),a=r.stylize(a,\"name\")):(a=a.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),a=r.stylize(a,\"string\"))}return a+\": \"+l}n(Sr,\"formatProperty\");function kn(r,e,t){var i=0,o=r.reduce(function(u,a){return i++,a.indexOf(`\n`)>=0&&i++,u+a.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0);return o>60?t[0]+(e===\"\"?\"\":e+`\n `)+\" \"+r.join(`,\n `)+\" \"+t[1]:t[0]+e+\" \"+r.join(\", \")+\" \"+t[1]}n(kn,\"reduceToSingleString\");c.types=Ce();function Re(r){return Array.isArray(r)}n(Re,\"isArray\");c.isArray=Re;function wr(r){return typeof r==\"boolean\"}n(wr,\"isBoolean\");c.isBoolean=wr;function Q(r){return r===null}n(Q,\"isNull\");c.isNull=Q;function xn(r){return r==null}n(xn,\"isNullOrUndefined\");c.isNullOrUndefined=xn;function Le(r){return typeof r==\"number\"}n(Le,\"isNumber\");c.isNumber=Le;function X(r){return typeof r==\"string\"}n(X,\"isString\");c.isString=X;function Cn(r){return typeof r==\"symbol\"}n(Cn,\"isSymbol\");c.isSymbol=Cn;function v(r){return r===void 0}n(v,\"isUndefined\");c.isUndefined=v;function P(r){return j(r)&&jr(r)===\"[object RegExp]\"}n(P,\"isRegExp\");c.isRegExp=P;c.types.isRegExp=P;function j(r){return typeof r==\"object\"&&r!==null}n(j,\"isObject\");c.isObject=j;function K(r){return j(r)&&jr(r)===\"[object Date]\"}n(K,\"isDate\");c.isDate=K;c.types.isDate=K;function q(r){return j(r)&&(jr(r)===\"[object Error]\"||r instanceof Error)}n(q,\"isError\");c.isError=q;c.types.isNativeError=q;function J(r){return typeof r==\"function\"}n(J,\"isFunction\");c.isFunction=J;function Mn(r){return r===null||typeof r==\"boolean\"||typeof r==\"number\"||typeof r==\"string\"||typeof r==\"symbol\"||typeof r>\"u\"}n(Mn,\"isPrimitive\");c.isPrimitive=Mn;c.isBuffer=$e();function jr(r){return Object.prototype.toString.call(r)}n(jr,\"objectToString\");function Ar(r){return r<10?\"0\"+r.toString(10):r.toString(10)}n(Ar,\"pad\");var $n=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function zn(){var r=new Date,e=[Ar(r.getHours()),Ar(r.getMinutes()),Ar(r.getSeconds())].join(\":\");return[r.getDate(),$n[r.getMonth()],e].join(\" \")}n(zn,\"timestamp\");c.log=function(){console.log(\"%s - %s\",zn(),c.format.apply(c,arguments))};c.inherits=ze();c._extend=function(r,e){if(!e||!j(e))return r;for(var t=Object.keys(e),i=t.length;i--;)r[t[i]]=e[t[i]];return r};function Ge(r,e){return Object.prototype.hasOwnProperty.call(r,e)}n(Ge,\"hasOwnProperty\");var h=typeof Symbol<\"u\"?Symbol(\"util.promisify.custom\"):void 0;c.promisify=n(function(e){if(typeof e!=\"function\")throw new TypeError('The \"original\" argument must be of type Function');if(h&&e[h]){var t=e[h];if(typeof t!=\"function\")throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(t,h,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var i,o,u=new Promise(function(p,g){i=p,o=g}),a=[],l=0;l<arguments.length;l++)a.push(arguments[l]);a.push(function(p,g){p?o(p):i(g)});try{e.apply(this,a)}catch(p){o(p)}return u}return n(t,\"fn\"),Object.setPrototypeOf(t,Object.getPrototypeOf(e)),h&&Object.defineProperty(t,h,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Ne(e))},\"promisify\");c.promisify.custom=h;function Nn(r,e){if(!r){var t=new Error(\"Promise was rejected with a falsy value\");t.reason=r,r=t}return e(r)}n(Nn,\"callbackifyOnRejected\");function Wn(r){if(typeof r!=\"function\")throw new TypeError('The \"original\" argument must be of type Function');function e(){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);var o=t.pop();if(typeof o!=\"function\")throw new TypeError(\"The last argument must be of type Function\");var u=this,a=n(function(){return o.apply(u,arguments)},\"cb\");r.apply(this,t).then(function(l){process.nextTick(a.bind(null,null,l))},function(l){process.nextTick(Nn.bind(null,l,a))})}return n(e,\"callbackified\"),Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,Ne(r)),e}n(Wn,\"callbackify\");c.callbackify=Wn});export{ze as a,ne as b,ae as c,de as d,we as e,Rn as f};\n",
|
|
5528
5526
|
"engine/chunks/chunk-WHKCMYPO.mjs": "import{a as y,c as i,o as r}from\"./chunk-IQ3JZKJB.mjs\";var N=i((ut,V)=>{\"use strict\";r();V.exports=Object});var L=i((ct,z)=>{\"use strict\";r();z.exports=Error});var H=i((lt,Y)=>{\"use strict\";r();Y.exports=EvalError});var Q=i((dt,K)=>{\"use strict\";r();K.exports=RangeError});var Z=i((At,X)=>{\"use strict\";r();X.exports=ReferenceError});var er=i((bt,rr)=>{\"use strict\";r();rr.exports=SyntaxError});var _=i((mt,tr)=>{\"use strict\";r();tr.exports=TypeError});var nr=i((Et,or)=>{\"use strict\";r();or.exports=URIError});var ir=i((xt,ar)=>{\"use strict\";r();ar.exports=Math.abs});var yr=i((Rt,pr)=>{\"use strict\";r();pr.exports=Math.floor});var sr=i((qt,ur)=>{\"use strict\";r();ur.exports=Math.max});var fr=i((jt,cr)=>{\"use strict\";r();cr.exports=Math.min});var vr=i(($t,lr)=>{\"use strict\";r();lr.exports=Math.pow});var gr=i((Nt,dr)=>{\"use strict\";r();dr.exports=Math.round});var Pr=i((Mt,Ar)=>{\"use strict\";r();Ar.exports=Number.isNaN||y(function(e){return e!==e},\"isNaN\")});var hr=i((Dt,br)=>{\"use strict\";r();var le=Pr();br.exports=y(function(e){return le(e)||e===0?e:e<0?-1:1},\"sign\")});var Sr=i((Wt,mr)=>{\"use strict\";r();mr.exports=Object.getOwnPropertyDescriptor});var M=i((Vt,Er)=>{\"use strict\";r();var F=Sr();if(F)try{F([],\"length\")}catch{F=null}Er.exports=F});var xr=i((Lt,Or)=>{\"use strict\";r();var j=Object.defineProperty||!1;if(j)try{j({},\"a\",{value:1})}catch{j=!1}Or.exports=j});var Rr=i((Ht,Ir)=>{\"use strict\";r();Ir.exports=y(function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return!1;if(typeof Symbol.iterator==\"symbol\")return!0;var e={},t=Symbol(\"test\"),o=Object(t);if(typeof t==\"string\"||Object.prototype.toString.call(t)!==\"[object Symbol]\"||Object.prototype.toString.call(o)!==\"[object Symbol]\")return!1;var p=42;e[t]=p;for(var u in e)return!1;if(typeof Object.keys==\"function\"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(e).length!==0)return!1;var f=Object.getOwnPropertySymbols(e);if(f.length!==1||f[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==p||s.enumerable!==!0)return!1}return!0},\"hasSymbols\")});var Fr=i((Xt,qr)=>{\"use strict\";r();var wr=typeof Symbol<\"u\"&&Symbol,ve=Rr();qr.exports=y(function(){return typeof wr!=\"function\"||typeof Symbol!=\"function\"||typeof wr(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:ve()},\"hasNativeSymbols\")});var G=i((eo,jr)=>{\"use strict\";r();jr.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null});var T=i((oo,Ur)=>{\"use strict\";r();var de=N();Ur.exports=de.getPrototypeOf||null});var Nr=i((ao,Br)=>{\"use strict\";r();var ge=\"Function.prototype.bind called on incompatible \",Ae=Object.prototype.toString,Pe=Math.max,be=\"[object Function]\",$r=y(function(e,t){for(var o=[],p=0;p<e.length;p+=1)o[p]=e[p];for(var u=0;u<t.length;u+=1)o[u+e.length]=t[u];return o},\"concatty\"),he=y(function(e,t){for(var o=[],p=t||0,u=0;p<e.length;p+=1,u+=1)o[u]=e[p];return o},\"slicy\"),me=y(function(a,e){for(var t=\"\",o=0;o<a.length;o+=1)t+=a[o],o+1<a.length&&(t+=e);return t},\"joiny\");Br.exports=y(function(e){var t=this;if(typeof t!=\"function\"||Ae.apply(t)!==be)throw new TypeError(ge+t);for(var o=he(arguments,1),p,u=y(function(){if(this instanceof p){var v=t.apply(this,$r(o,arguments));return Object(v)===v?v:this}return t.apply(e,$r(o,arguments))},\"binder\"),f=Pe(0,t.length-o.length),s=[],l=0;l<f;l++)s[l]=\"$\"+l;if(p=Function(\"binder\",\"return function (\"+me(s,\",\")+\"){ return binder.apply(this,arguments); }\")(u),t.prototype){var g=y(function(){},\"Empty\");g.prototype=t.prototype,p.prototype=new g,g.prototype=null}return p},\"bind\")});var E=i((yo,_r)=>{\"use strict\";r();var Se=Nr();_r.exports=Function.prototype.bind||Se});var U=i((so,Mr)=>{\"use strict\";r();Mr.exports=Function.prototype.call});var D=i((fo,Gr)=>{\"use strict\";r();Gr.exports=Function.prototype.apply});var Dr=i((vo,Tr)=>{\"use strict\";r();Tr.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply});var Cr=i((Ao,kr)=>{\"use strict\";r();var Ee=E(),Oe=D(),xe=U(),Ie=Dr();kr.exports=Ie||Ee.call(xe,Oe)});var k=i((bo,Wr)=>{\"use strict\";r();var Re=E(),we=_(),qe=U(),Fe=Cr();Wr.exports=y(function(e){if(e.length<1||typeof e[0]!=\"function\")throw new we(\"a function is required\");return Fe(Re,qe,e)},\"callBindBasic\")});var Hr=i((So,Yr)=>{\"use strict\";r();var je=k(),Jr=M(),zr;try{zr=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!=\"object\"||!(\"code\"in a)||a.code!==\"ERR_PROTO_ACCESS\")throw a}var C=!!zr&&Jr&&Jr(Object.prototype,\"__proto__\"),Lr=Object,Vr=Lr.getPrototypeOf;Yr.exports=C&&typeof C.get==\"function\"?je([C.get]):typeof Vr==\"function\"?y(function(e){return Vr(e==null?e:Lr(e))},\"getDunder\"):!1});var re=i((xo,Zr)=>{\"use strict\";r();var Kr=G(),Qr=T(),Xr=Hr();Zr.exports=Kr?y(function(e){return Kr(e)},\"getProto\"):Qr?y(function(e){if(!e||typeof e!=\"object\"&&typeof e!=\"function\")throw new TypeError(\"getProto: not an object\");return Qr(e)},\"getProto\"):Xr?y(function(e){return Xr(e)},\"getProto\"):null});var te=i((wo,ee)=>{\"use strict\";r();var Ue=Function.prototype.call,$e=Object.prototype.hasOwnProperty,Be=E();ee.exports=Be.call(Ue,$e)});var ue=i((Fo,ye)=>{\"use strict\";r();var n,Ne=N(),_e=L(),Me=H(),Ge=Q(),Te=Z(),m=er(),h=_(),De=nr(),ke=ir(),Ce=yr(),We=sr(),Je=fr(),Ve=vr(),ze=gr(),Le=hr(),ie=Function,W=y(function(a){try{return ie('\"use strict\"; return ('+a+\").constructor;\")()}catch{}},\"getEvalledConstructor\"),O=M(),Ye=xr(),J=y(function(){throw new h},\"throwTypeError\"),He=O?(function(){try{return arguments.callee,J}catch{try{return O(arguments,\"callee\").get}catch{return J}}})():J,P=Fr()(),c=re(),Ke=T(),Qe=G(),pe=D(),x=U(),b={},Xe=typeof Uint8Array>\"u\"||!c?n:c(Uint8Array),A={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?n:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?n:ArrayBuffer,\"%ArrayIteratorPrototype%\":P&&c?c([][Symbol.iterator]()):n,\"%AsyncFromSyncIteratorPrototype%\":n,\"%AsyncFunction%\":b,\"%AsyncGenerator%\":b,\"%AsyncGeneratorFunction%\":b,\"%AsyncIteratorPrototype%\":b,\"%Atomics%\":typeof Atomics>\"u\"?n:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?n:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?n:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?n:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?n:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":_e,\"%eval%\":eval,\"%EvalError%\":Me,\"%Float16Array%\":typeof Float16Array>\"u\"?n:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?n:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?n:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?n:FinalizationRegistry,\"%Function%\":ie,\"%GeneratorFunction%\":b,\"%Int8Array%\":typeof Int8Array>\"u\"?n:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?n:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?n:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":P&&c?c(c([][Symbol.iterator]())):n,\"%JSON%\":typeof JSON==\"object\"?JSON:n,\"%Map%\":typeof Map>\"u\"?n:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!P||!c?n:c(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Ne,\"%Object.getOwnPropertyDescriptor%\":O,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?n:Promise,\"%Proxy%\":typeof Proxy>\"u\"?n:Proxy,\"%RangeError%\":Ge,\"%ReferenceError%\":Te,\"%Reflect%\":typeof Reflect>\"u\"?n:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?n:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!P||!c?n:c(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?n:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":P&&c?c(\"\"[Symbol.iterator]()):n,\"%Symbol%\":P?Symbol:n,\"%SyntaxError%\":m,\"%ThrowTypeError%\":He,\"%TypedArray%\":Xe,\"%TypeError%\":h,\"%Uint8Array%\":typeof Uint8Array>\"u\"?n:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?n:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?n:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?n:Uint32Array,\"%URIError%\":De,\"%WeakMap%\":typeof WeakMap>\"u\"?n:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?n:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?n:WeakSet,\"%Function.prototype.call%\":x,\"%Function.prototype.apply%\":pe,\"%Object.defineProperty%\":Ye,\"%Object.getPrototypeOf%\":Ke,\"%Math.abs%\":ke,\"%Math.floor%\":Ce,\"%Math.max%\":We,\"%Math.min%\":Je,\"%Math.pow%\":Ve,\"%Math.round%\":ze,\"%Math.sign%\":Le,\"%Reflect.getPrototypeOf%\":Qe};if(c)try{null.error}catch(a){oe=c(c(a)),A[\"%Error.prototype%\"]=oe}var oe,Ze=y(function a(e){var t;if(e===\"%AsyncFunction%\")t=W(\"async function () {}\");else if(e===\"%GeneratorFunction%\")t=W(\"function* () {}\");else if(e===\"%AsyncGeneratorFunction%\")t=W(\"async function* () {}\");else if(e===\"%AsyncGenerator%\"){var o=a(\"%AsyncGeneratorFunction%\");o&&(t=o.prototype)}else if(e===\"%AsyncIteratorPrototype%\"){var p=a(\"%AsyncGenerator%\");p&&c&&(t=c(p.prototype))}return A[e]=t,t},\"doEval\"),ne={__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\"]},I=E(),$=te(),rt=I.call(x,Array.prototype.concat),et=I.call(pe,Array.prototype.splice),ae=I.call(x,String.prototype.replace),B=I.call(x,String.prototype.slice),tt=I.call(x,RegExp.prototype.exec),ot=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,nt=/\\\\(\\\\)?/g,at=y(function(e){var t=B(e,0,1),o=B(e,-1);if(t===\"%\"&&o!==\"%\")throw new m(\"invalid intrinsic syntax, expected closing `%`\");if(o===\"%\"&&t!==\"%\")throw new m(\"invalid intrinsic syntax, expected opening `%`\");var p=[];return ae(e,ot,function(u,f,s,l){p[p.length]=s?ae(l,nt,\"$1\"):f||u}),p},\"stringToPath\"),it=y(function(e,t){var o=e,p;if($(ne,o)&&(p=ne[o],o=\"%\"+p[0]+\"%\"),$(A,o)){var u=A[o];if(u===b&&(u=Ze(o)),typeof u>\"u\"&&!t)throw new h(\"intrinsic \"+e+\" exists, but is not available. Please file an issue!\");return{alias:p,name:o,value:u}}throw new m(\"intrinsic \"+e+\" does not exist!\")},\"getBaseIntrinsic\");ye.exports=y(function(e,t){if(typeof e!=\"string\"||e.length===0)throw new h(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof t!=\"boolean\")throw new h('\"allowMissing\" argument must be a boolean');if(tt(/^%?[^%]*%?$/,e)===null)throw new m(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var o=at(e),p=o.length>0?o[0]:\"\",u=it(\"%\"+p+\"%\",t),f=u.name,s=u.value,l=!1,g=u.alias;g&&(p=g[0],et(o,rt([0,1],g)));for(var v=1,S=!0;v<o.length;v+=1){var d=o[v],R=B(d,0,1),w=B(d,-1);if((R==='\"'||R===\"'\"||R===\"`\"||w==='\"'||w===\"'\"||w===\"`\")&&R!==w)throw new m(\"property names with quotes must have matching quotes\");if((d===\"constructor\"||!S)&&(l=!0),p+=\".\"+d,f=\"%\"+p+\"%\",$(A,f))s=A[f];else if(s!=null){if(!(d in s)){if(!t)throw new h(\"base intrinsic for \"+e+\" exists, but the property is not available.\");return}if(O&&v+1>=o.length){var q=O(s,d);S=!!q,S&&\"get\"in q&&!(\"originalValue\"in q.get)?s=q.get:s=s[d]}else S=$(s,d),s=s[d];S&&!l&&(A[f]=s)}}return s},\"GetIntrinsic\")});var yt=i(($o,fe)=>{\"use strict\";r();var se=ue(),ce=k(),pt=ce([se(\"%String.prototype.indexOf%\")]);fe.exports=y(function(e,t){var o=se(e,!!t);return typeof o==\"function\"&&pt(e,\".prototype.\")>-1?ce([o]):o},\"callBoundIntrinsic\")});export{_ as a,N as b,er as c,M as d,xr as e,Rr as f,E as g,D as h,Cr as i,k as j,re as k,te as l,ue as m,yt as n};\n",
|
|
5529
|
-
"engine/deferred/crypto.mjs": "import{a as e1}from\"../chunks/chunk-OISVBTZK.mjs\";import\"../chunks/chunk-5VZ4VCVQ.mjs\";import{a as xe,b as hn}from\"../chunks/chunk-2PJDHVIE.mjs\";import{a as ys}from\"../chunks/chunk-QMKSQR7V.mjs\";import\"../chunks/chunk-47XFURCP.mjs\";import{a as Se,e as Ql,f as gs}from\"../chunks/chunk-RAKQLW7K.mjs\";import{a as Yl,n as $l}from\"../chunks/chunk-WHKCMYPO.mjs\";import{a as f,c as k,e as Jl,f as hr,g as Buffer,i as dr,j as cr,m as process,o as M}from\"../chunks/chunk-IQ3JZKJB.mjs\";var Or=k((d8,cn)=>{\"use strict\";M();var dn=65536,t1=4294967295;function r1(){throw new Error(`Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11`)}f(r1,\"oldBrowser\");var i1=xe().Buffer,Fa=globalThis.crypto||globalThis.msCrypto;Fa&&Fa.getRandomValues?cn.exports=a1:cn.exports=r1;function a1(t,e){if(t>t1)throw new RangeError(\"requested too many random bytes\");var r=i1.allocUnsafe(t);if(t>0)if(t>dn)for(var a=0;a<t;a+=dn)Fa.getRandomValues(r.slice(a,a+dn));else Fa.getRandomValues(r);return typeof e==\"function\"?process.nextTick(function(){e(null,r)}):r}f(a1,\"randomBytes\")});var ws=k((l8,_s)=>{M();var f1={}.toString;_s.exports=Array.isArray||function(t){return f1.call(t)==\"[object Array]\"}});var Ms=k((p8,xs)=>{\"use strict\";M();var n1=Yl(),s1=$l(),o1=s1(\"TypedArray.prototype.buffer\",!0),h1=Ql();xs.exports=o1||f(function(e){if(!h1(e))throw new n1(\"Not a Typed Array\");return e.buffer},\"typedArrayBuffer\")});var ea=k((y8,As)=>{\"use strict\";M();var Mt=xe().Buffer,d1=ws(),c1=Ms(),u1=ArrayBuffer.isView||f(function(e){try{return c1(e),!0}catch{return!1}},\"isView\"),l1=typeof Uint8Array<\"u\",Ss=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",v1=Ss&&(Mt.prototype instanceof Uint8Array||Mt.TYPED_ARRAY_SUPPORT);As.exports=f(function(e,r){if(Mt.isBuffer(e))return e.constructor&&!(\"isBuffer\"in e)?Mt.from(e):e;if(typeof e==\"string\")return Mt.from(e,r);if(Ss&&u1(e)){if(e.byteLength===0)return Mt.alloc(0);if(v1){var a=Mt.from(e.buffer,e.byteOffset,e.byteLength);if(a.byteLength===e.byteLength)return a}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),s=Mt.from(i);if(s.length===e.byteLength)return s}if(l1&&e instanceof Uint8Array)return Mt.from(e);var c=d1(e);if(c)for(var p=0;p<e.length;p+=1){var _=e[p];if(typeof _!=\"number\"||_<0||_>255||~~_!==_)throw new RangeError(\"Array items must be numbers in the range 0-255.\")}if(c||Mt.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==\"function\"&&e.constructor.isBuffer(e))return Mt.from(e);throw new TypeError('The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},\"toBuffer\")});var ks=k((w8,Bs)=>{\"use strict\";M();var p1=xe().Buffer,b1=ea(),qs=typeof Uint8Array<\"u\",m1=qs&&typeof ArrayBuffer<\"u\",Es=m1&&ArrayBuffer.isView;Bs.exports=function(t,e){if(typeof t==\"string\"||p1.isBuffer(t)||qs&&t instanceof Uint8Array||Es&&Es(t))return b1(t,e);throw new TypeError('The \"data\" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var ta=k((M8,un)=>{\"use strict\";M();typeof process>\"u\"||!process.version||process.version.indexOf(\"v0.\")===0||process.version.indexOf(\"v1.\")===0&&process.version.indexOf(\"v1.8.\")!==0?un.exports={nextTick:y1}:un.exports=process;function y1(t,e,r,a){if(typeof t!=\"function\")throw new TypeError('\"callback\" argument must be a function');var i=arguments.length,s,c;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(f(function(){t.call(null,e)},\"afterTickOne\"));case 3:return process.nextTick(f(function(){t.call(null,e,r)},\"afterTickTwo\"));case 4:return process.nextTick(f(function(){t.call(null,e,r,a)},\"afterTickThree\"));default:for(s=new Array(i-1),c=0;c<s.length;)s[c++]=arguments[c];return process.nextTick(f(function(){t.apply(null,s)},\"afterTick\"))}}f(y1,\"nextTick\")});var Rs=k((E8,Is)=>{M();var g1={}.toString;Is.exports=Array.isArray||function(t){return g1.call(t)==\"[object Array]\"}});var ln=k((B8,Cs)=>{M();Cs.exports=ys().EventEmitter});var Ka=k((vn,Ps)=>{M();var Ha=(cr(),hr(dr)),Xt=Ha.Buffer;function Ds(t,e){for(var r in t)e[r]=t[r]}f(Ds,\"copyProps\");Xt.from&&Xt.alloc&&Xt.allocUnsafe&&Xt.allocUnsafeSlow?Ps.exports=Ha:(Ds(Ha,vn),vn.Buffer=hi);function hi(t,e,r){return Xt(t,e,r)}f(hi,\"SafeBuffer\");Ds(Xt,hi);hi.from=function(t,e,r){if(typeof t==\"number\")throw new TypeError(\"Argument must not be a number\");return Xt(t,e,r)};hi.alloc=function(t,e,r){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");var a=Xt(t);return e!==void 0?typeof r==\"string\"?a.fill(e,r):a.fill(e):a.fill(0),a};hi.allocUnsafe=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return Xt(t)};hi.allocUnsafeSlow=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return Ha.SlowBuffer(t)}});var di=k(Ye=>{M();function _1(t){return Array.isArray?Array.isArray(t):ja(t)===\"[object Array]\"}f(_1,\"isArray\");Ye.isArray=_1;function w1(t){return typeof t==\"boolean\"}f(w1,\"isBoolean\");Ye.isBoolean=w1;function x1(t){return t===null}f(x1,\"isNull\");Ye.isNull=x1;function M1(t){return t==null}f(M1,\"isNullOrUndefined\");Ye.isNullOrUndefined=M1;function S1(t){return typeof t==\"number\"}f(S1,\"isNumber\");Ye.isNumber=S1;function A1(t){return typeof t==\"string\"}f(A1,\"isString\");Ye.isString=A1;function E1(t){return typeof t==\"symbol\"}f(E1,\"isSymbol\");Ye.isSymbol=E1;function q1(t){return t===void 0}f(q1,\"isUndefined\");Ye.isUndefined=q1;function B1(t){return ja(t)===\"[object RegExp]\"}f(B1,\"isRegExp\");Ye.isRegExp=B1;function k1(t){return typeof t==\"object\"&&t!==null}f(k1,\"isObject\");Ye.isObject=k1;function I1(t){return ja(t)===\"[object Date]\"}f(I1,\"isDate\");Ye.isDate=I1;function R1(t){return ja(t)===\"[object Error]\"||t instanceof Error}f(R1,\"isError\");Ye.isError=R1;function C1(t){return typeof t==\"function\"}f(C1,\"isFunction\");Ye.isFunction=C1;function D1(t){return t===null||typeof t==\"boolean\"||typeof t==\"number\"||typeof t==\"string\"||typeof t==\"symbol\"||typeof t>\"u\"}f(D1,\"isPrimitive\");Ye.isPrimitive=D1;Ye.isBuffer=(cr(),hr(dr)).Buffer.isBuffer;function ja(t){return Object.prototype.toString.call(t)}f(ja,\"objectToString\")});var Ns=k((T8,pn)=>{\"use strict\";M();function P1(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}f(P1,\"_classCallCheck\");var Ts=Ka().Buffer,ra=gs();function T1(t,e,r){t.copy(e,r)}f(T1,\"copyBuffer\");pn.exports=(function(){function t(){P1(this,t),this.head=null,this.tail=null,this.length=0}return f(t,\"BufferList\"),t.prototype.push=f(function(r){var a={data:r,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length},\"push\"),t.prototype.unshift=f(function(r){var a={data:r,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length},\"unshift\"),t.prototype.shift=f(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},\"shift\"),t.prototype.clear=f(function(){this.head=this.tail=null,this.length=0},\"clear\"),t.prototype.join=f(function(r){if(this.length===0)return\"\";for(var a=this.head,i=\"\"+a.data;a=a.next;)i+=r+a.data;return i},\"join\"),t.prototype.concat=f(function(r){if(this.length===0)return Ts.alloc(0);for(var a=Ts.allocUnsafe(r>>>0),i=this.head,s=0;i;)T1(i.data,a,s),s+=i.data.length,i=i.next;return a},\"concat\"),t})();ra&&ra.inspect&&ra.inspect.custom&&(pn.exports.prototype[ra.inspect.custom]=function(){var t=ra.inspect({length:this.length});return this.constructor.name+\" \"+t})});var bn=k((L8,Os)=>{\"use strict\";M();var Va=ta();function N1(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return a||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Va.nextTick(Wa,this,t)):Va.nextTick(Wa,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Va.nextTick(Wa,r,s)):Va.nextTick(Wa,r,s):e&&e(s)}),this)}f(N1,\"destroy\");function O1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}f(O1,\"undestroy\");function Wa(t,e){t.emit(\"error\",e)}f(Wa,\"emitErrorNT\");Os.exports={destroy:N1,undestroy:O1}});var Us=k((F8,Ls)=>{M();Ls.exports=L1;function L1(t,e){if(mn(\"noDeprecation\"))return t;var r=!1;function a(){if(!r){if(mn(\"throwDeprecation\"))throw new Error(e);mn(\"traceDeprecation\")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return f(a,\"deprecated\"),a}f(L1,\"deprecate\");function mn(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()===\"true\"}f(mn,\"config\")});var gn=k((j8,Zs)=>{\"use strict\";M();var Lr=ta();Zs.exports=ze;function Fs(t){var e=this;this.next=null,this.entry=null,this.finish=function(){r2(e,t)}}f(Fs,\"CorkedRequest\");var U1=!process.browser&&[\"v0.10\",\"v0.9.\"].indexOf(process.version.slice(0,5))>-1?setImmediate:Lr.nextTick,ci;ze.WritableState=aa;var Hs=Object.create(di());Hs.inherits=Se();var z1={deprecate:Us()},Ks=ln(),Xa=Ka().Buffer,F1=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function H1(t){return Xa.from(t)}f(H1,\"_uint8ArrayToBuffer\");function K1(t){return Xa.isBuffer(t)||t instanceof F1}f(K1,\"_isUint8Array\");var js=bn();Hs.inherits(ze,Ks);function j1(){}f(j1,\"nop\");function aa(t,e){ci=ci||Ur(),t=t||{};var r=e instanceof ci;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;a||a===0?this.highWaterMark=a:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=t.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(p){Y1(e,p)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Fs(this)}f(aa,\"WritableState\");aa.prototype.getBuffer=f(function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},\"getBuffer\");(function(){try{Object.defineProperty(aa.prototype,\"buffer\",{get:z1.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var Za;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(Za=Function.prototype[Symbol.hasInstance],Object.defineProperty(ze,Symbol.hasInstance,{value:f(function(t){return Za.call(this,t)?!0:this!==ze?!1:t&&t._writableState instanceof aa},\"value\")})):Za=f(function(t){return t instanceof this},\"realHasInstance\");function ze(t){if(ci=ci||Ur(),!Za.call(ze,this)&&!(this instanceof ci))return new ze(t);this._writableState=new aa(t,this),this.writable=!0,t&&(typeof t.write==\"function\"&&(this._write=t.write),typeof t.writev==\"function\"&&(this._writev=t.writev),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.final==\"function\"&&(this._final=t.final)),Ks.call(this)}f(ze,\"Writable\");ze.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))};function V1(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),Lr.nextTick(e,r)}f(V1,\"writeAfterEnd\");function W1(t,e,r,a){var i=!0,s=!1;return r===null?s=new TypeError(\"May not write null values to stream\"):typeof r!=\"string\"&&r!==void 0&&!e.objectMode&&(s=new TypeError(\"Invalid non-string/buffer chunk\")),s&&(t.emit(\"error\",s),Lr.nextTick(a,s),i=!1),i}f(W1,\"validChunk\");ze.prototype.write=function(t,e,r){var a=this._writableState,i=!1,s=!a.objectMode&&K1(t);return s&&!Xa.isBuffer(t)&&(t=H1(t)),typeof e==\"function\"&&(r=e,e=null),s?e=\"buffer\":e||(e=a.defaultEncoding),typeof r!=\"function\"&&(r=j1),a.ended?V1(this,r):(s||W1(this,a,t,r))&&(a.pendingcb++,i=X1(this,a,s,t,e,r)),i};ze.prototype.cork=function(){var t=this._writableState;t.corked++};ze.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Vs(this,t))};ze.prototype.setDefaultEncoding=f(function(e){if(typeof e==\"string\"&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+e);return this._writableState.defaultEncoding=e,this},\"setDefaultEncoding\");function Z1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e==\"string\"&&(e=Xa.from(e,r)),e}f(Z1,\"decodeChunk\");Object.defineProperty(ze.prototype,\"writableHighWaterMark\",{enumerable:!1,get:f(function(){return this._writableState.highWaterMark},\"get\")});function X1(t,e,r,a,i,s){if(!r){var c=Z1(e,a,i);a!==c&&(r=!0,i=\"buffer\",a=c)}var p=e.objectMode?1:a.length;e.length+=p;var _=e.length<e.highWaterMark;if(_||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:a,encoding:i,isBuf:r,callback:s,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else yn(t,e,!1,p,a,i,s);return _}f(X1,\"writeOrBuffer\");function yn(t,e,r,a,i,s,c){e.writelen=a,e.writecb=c,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}f(yn,\"doWrite\");function G1(t,e,r,a,i){--e.pendingcb,r?(Lr.nextTick(i,a),Lr.nextTick(ia,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",a)):(i(a),t._writableState.errorEmitted=!0,t.emit(\"error\",a),ia(t,e))}f(G1,\"onwriteError\");function J1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}f(J1,\"onwriteStateUpdate\");function Y1(t,e){var r=t._writableState,a=r.sync,i=r.writecb;if(J1(r),e)G1(t,r,a,e,i);else{var s=Ws(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Vs(t,r),a?U1(zs,t,r,s,i):zs(t,r,s,i)}}f(Y1,\"onwrite\");function zs(t,e,r,a){r||$1(t,e),e.pendingcb--,a(),ia(t,e)}f(zs,\"afterWrite\");function $1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}f($1,\"onwriteDrain\");function Vs(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var a=e.bufferedRequestCount,i=new Array(a),s=e.corkedRequestsFree;s.entry=r;for(var c=0,p=!0;r;)i[c]=r,r.isBuf||(p=!1),r=r.next,c+=1;i.allBuffers=p,yn(t,e,!0,e.length,i,\"\",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Fs(e),e.bufferedRequestCount=0}else{for(;r;){var _=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:_.length;if(yn(t,e,!1,q,_,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}f(Vs,\"clearBuffer\");ze.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))};ze.prototype._writev=null;ze.prototype.end=function(t,e,r){var a=this._writableState;typeof t==\"function\"?(r=t,t=null,e=null):typeof e==\"function\"&&(r=e,e=null),t!=null&&this.write(t,e),a.corked&&(a.corked=1,this.uncork()),a.ending||t2(this,a,r)};function Ws(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}f(Ws,\"needFinish\");function Q1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),ia(t,e)})}f(Q1,\"callFinal\");function e2(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final==\"function\"?(e.pendingcb++,e.finalCalled=!0,Lr.nextTick(Q1,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}f(e2,\"prefinish\");function ia(t,e){var r=Ws(e);return r&&(e2(t,e),e.pendingcb===0&&(e.finished=!0,t.emit(\"finish\"))),r}f(ia,\"finishMaybe\");function t2(t,e,r){e.ending=!0,ia(t,e),r&&(e.finished?Lr.nextTick(r):t.once(\"finish\",r)),e.ended=!0,t.writable=!1}f(t2,\"endWritable\");function r2(t,e,r){var a=t.entry;for(t.entry=null;a;){var i=a.callback;e.pendingcb--,i(r),a=a.next}e.corkedRequestsFree.next=t}f(r2,\"onCorkedFinish\");Object.defineProperty(ze.prototype,\"destroyed\",{get:f(function(){return this._writableState===void 0?!1:this._writableState.destroyed},\"get\"),set:f(function(t){this._writableState&&(this._writableState.destroyed=t)},\"set\")});ze.prototype.destroy=js.destroy;ze.prototype._undestroy=js.undestroy;ze.prototype._destroy=function(t,e){this.end(),e(t)}});var Ur=k((Z8,Ys)=>{\"use strict\";M();var Xs=ta(),i2=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ys.exports=Gt;var Gs=Object.create(di());Gs.inherits=Se();var Js=xn(),wn=gn();Gs.inherits(Gt,Js);for(_n=i2(wn.prototype),Ga=0;Ga<_n.length;Ga++)Ja=_n[Ga],Gt.prototype[Ja]||(Gt.prototype[Ja]=wn.prototype[Ja]);var _n,Ja,Ga;function Gt(t){if(!(this instanceof Gt))return new Gt(t);Js.call(this,t),wn.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(\"end\",a2)}f(Gt,\"Duplex\");Object.defineProperty(Gt.prototype,\"writableHighWaterMark\",{enumerable:!1,get:f(function(){return this._writableState.highWaterMark},\"get\")});function a2(){this.allowHalfOpen||this._writableState.ended||Xs.nextTick(f2,this)}f(a2,\"onend\");function f2(t){t.end()}f(f2,\"onEndNT\");Object.defineProperty(Gt.prototype,\"destroyed\",{get:f(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},\"get\"),set:f(function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)},\"set\")});Gt.prototype._destroy=function(t,e){this.push(null),this.end(),Xs.nextTick(e,t)}});var xn=k((Y8,ho)=>{\"use strict\";M();var li=ta();ho.exports=Pe;var n2=Rs(),fa;Pe.ReadableState=ao;var J8=ys().EventEmitter,to=f(function(t,e){return t.listeners(e).length},\"EElistenerCount\"),qn=ln(),na=Ka().Buffer,s2=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function o2(t){return na.from(t)}f(o2,\"_uint8ArrayToBuffer\");function h2(t){return na.isBuffer(t)||t instanceof s2}f(h2,\"_isUint8Array\");var ro=Object.create(di());ro.inherits=Se();var Mn=gs(),Be=void 0;Mn&&Mn.debuglog?Be=Mn.debuglog(\"stream\"):Be=f(function(){},\"debug\");var d2=Ns(),io=bn(),ui;ro.inherits(Pe,qn);var Sn=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function c2(t,e,r){if(typeof t.prependListener==\"function\")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):n2(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}f(c2,\"prependListener\");function ao(t,e){fa=fa||Ur(),t=t||{};var r=e instanceof fa;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;a||a===0?this.highWaterMark=a:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d2,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ui||(ui=hn().StringDecoder),this.decoder=new ui(t.encoding),this.encoding=t.encoding)}f(ao,\"ReadableState\");function Pe(t){if(fa=fa||Ur(),!(this instanceof Pe))return new Pe(t);this._readableState=new ao(t,this),this.readable=!0,t&&(typeof t.read==\"function\"&&(this._read=t.read),typeof t.destroy==\"function\"&&(this._destroy=t.destroy)),qn.call(this)}f(Pe,\"Readable\");Object.defineProperty(Pe.prototype,\"destroyed\",{get:f(function(){return this._readableState===void 0?!1:this._readableState.destroyed},\"get\"),set:f(function(t){this._readableState&&(this._readableState.destroyed=t)},\"set\")});Pe.prototype.destroy=io.destroy;Pe.prototype._undestroy=io.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,a;return r.objectMode?a=!0:typeof t==\"string\"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=na.from(t,e),e=\"\"),a=!0),fo(this,t,e,!1,a)};Pe.prototype.unshift=function(t){return fo(this,t,null,!0,!1)};function fo(t,e,r,a,i){var s=t._readableState;if(e===null)s.reading=!1,p2(t,s);else{var c;i||(c=u2(s,e)),c?t.emit(\"error\",c):s.objectMode||e&&e.length>0?(typeof e!=\"string\"&&!s.objectMode&&Object.getPrototypeOf(e)!==na.prototype&&(e=o2(e)),a?s.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):An(t,s,e,!0):s.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?An(t,s,e,!1):no(t,s)):An(t,s,e,!1))):a||(s.reading=!1)}return l2(s)}f(fo,\"readableAddChunk\");function An(t,e,r,a){e.flowing&&e.length===0&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ya(t)),no(t,e)}f(An,\"addChunk\");function u2(t,e){var r;return!h2(e)&&typeof e!=\"string\"&&e!==void 0&&!t.objectMode&&(r=new TypeError(\"Invalid non-string/buffer chunk\")),r}f(u2,\"chunkInvalid\");function l2(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}f(l2,\"needMoreData\");Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return ui||(ui=hn().StringDecoder),this._readableState.decoder=new ui(t),this._readableState.encoding=t,this};var $s=8388608;function v2(t){return t>=$s?t=$s:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}f(v2,\"computeNewHighWaterMark\");function Qs(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=v2(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}f(Qs,\"howMuchToRead\");Pe.prototype.read=function(t){Be(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Be(\"read: emitReadable\",e.length,e.ended),e.length===0&&e.ended?En(this):Ya(this),null;if(t=Qs(t,e),t===0&&e.ended)return e.length===0&&En(this),null;var a=e.needReadable;Be(\"need readable\",a),(e.length===0||e.length-t<e.highWaterMark)&&(a=!0,Be(\"length less than watermark\",a)),e.ended||e.reading?(a=!1,Be(\"reading or ended\",a)):a&&(Be(\"do read\"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Qs(r,e)));var i;return t>0?i=so(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&En(this)),i!==null&&this.emit(\"data\",i),i};function p2(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Ya(t)}}f(p2,\"onEofChunk\");function Ya(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Be(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?li.nextTick(eo,t):eo(t))}f(Ya,\"emitReadable\");function eo(t){Be(\"emit readable\"),t.emit(\"readable\"),Bn(t)}f(eo,\"emitReadable_\");function no(t,e){e.readingMore||(e.readingMore=!0,li.nextTick(b2,t,e))}f(no,\"maybeReadMore\");function b2(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Be(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}f(b2,\"maybeReadMore_\");Pe.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))};Pe.prototype.pipe=function(t,e){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t);break}a.pipesCount+=1,Be(\"pipe count=%d opts=%j\",a.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?p:L;a.endEmitted?li.nextTick(s):r.once(\"end\",s),t.on(\"unpipe\",c);function c(N,z){Be(\"onunpipe\"),N===r&&z&&z.hasUnpiped===!1&&(z.hasUnpiped=!0,A())}f(c,\"onunpipe\");function p(){Be(\"onend\"),t.end()}f(p,\"onend\");var _=m2(r);t.on(\"drain\",_);var S=!1;function A(){Be(\"cleanup\"),t.removeListener(\"close\",R),t.removeListener(\"finish\",T),t.removeListener(\"drain\",_),t.removeListener(\"error\",I),t.removeListener(\"unpipe\",c),r.removeListener(\"end\",p),r.removeListener(\"end\",L),r.removeListener(\"data\",B),S=!0,a.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&_()}f(A,\"cleanup\");var q=!1;r.on(\"data\",B);function B(N){Be(\"ondata\"),q=!1;var z=t.write(N);z===!1&&!q&&((a.pipesCount===1&&a.pipes===t||a.pipesCount>1&&oo(a.pipes,t)!==-1)&&!S&&(Be(\"false write response, pause\",a.awaitDrain),a.awaitDrain++,q=!0),r.pause())}f(B,\"ondata\");function I(N){Be(\"onerror\",N),L(),t.removeListener(\"error\",I),to(t,\"error\")===0&&t.emit(\"error\",N)}f(I,\"onerror\"),c2(t,\"error\",I);function R(){t.removeListener(\"finish\",T),L()}f(R,\"onclose\"),t.once(\"close\",R);function T(){Be(\"onfinish\"),t.removeListener(\"close\",R),L()}f(T,\"onfinish\"),t.once(\"finish\",T);function L(){Be(\"unpipe\"),r.unpipe(t)}return f(L,\"unpipe\"),t.emit(\"pipe\",r),a.flowing||(Be(\"pipe resume\"),r.resume()),t};function m2(t){return function(){var e=t._readableState;Be(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&to(t,\"data\")&&(e.flowing=!0,Bn(t))}}f(m2,\"pipeOnDrain\");Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r),this);if(!t){var a=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)a[s].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var c=oo(e.pipes,t);return c===-1?this:(e.pipes.splice(c,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r),this)};Pe.prototype.on=function(t,e){var r=qn.prototype.on.call(this,t,e);if(t===\"data\")this._readableState.flowing!==!1&&this.resume();else if(t===\"readable\"){var a=this._readableState;!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&Ya(this):li.nextTick(y2,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function y2(t){Be(\"readable nexttick read 0\"),t.read(0)}f(y2,\"nReadingNextTick\");Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Be(\"resume\"),t.flowing=!0,g2(this,t)),this};function g2(t,e){e.resumeScheduled||(e.resumeScheduled=!0,li.nextTick(_2,t,e))}f(g2,\"resume\");function _2(t,e){e.reading||(Be(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),Bn(t),e.flowing&&!e.reading&&t.read(0)}f(_2,\"resume_\");Pe.prototype.pause=function(){return Be(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(Be(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this};function Bn(t){var e=t._readableState;for(Be(\"flow\",e.flowing);e.flowing&&t.read()!==null;);}f(Bn,\"flow\");Pe.prototype.wrap=function(t){var e=this,r=this._readableState,a=!1;t.on(\"end\",function(){if(Be(\"wrapped end\"),r.decoder&&!r.ended){var c=r.decoder.end();c&&c.length&&e.push(c)}e.push(null)}),t.on(\"data\",function(c){if(Be(\"wrapped data\"),r.decoder&&(c=r.decoder.write(c)),!(r.objectMode&&c==null)&&!(!r.objectMode&&(!c||!c.length))){var p=e.push(c);p||(a=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]==\"function\"&&(this[i]=(function(c){return function(){return t[c].apply(t,arguments)}})(i));for(var s=0;s<Sn.length;s++)t.on(Sn[s],this.emit.bind(this,Sn[s]));return this._read=function(c){Be(\"wrapped _read\",c),a&&(a=!1,t.resume())},this};Object.defineProperty(Pe.prototype,\"readableHighWaterMark\",{enumerable:!1,get:f(function(){return this._readableState.highWaterMark},\"get\")});Pe._fromList=so;function so(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(\"\"):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=w2(t,e.buffer,e.decoder),r}f(so,\"fromList\");function w2(t,e,r){var a;return t<e.head.data.length?(a=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?a=e.shift():a=r?x2(t,e):M2(t,e),a}f(w2,\"fromListPartial\");function x2(t,e){var r=e.head,a=1,i=r.data;for(t-=i.length;r=r.next;){var s=r.data,c=t>s.length?s.length:t;if(c===s.length?i+=s:i+=s.slice(0,t),t-=c,t===0){c===s.length?(++a,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(c));break}++a}return e.length-=a,i}f(x2,\"copyFromBufferString\");function M2(t,e){var r=na.allocUnsafe(t),a=e.head,i=1;for(a.data.copy(r),t-=a.data.length;a=a.next;){var s=a.data,c=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,c),t-=c,t===0){c===s.length?(++i,a.next?e.head=a.next:e.head=e.tail=null):(e.head=a,a.data=s.slice(c));break}++i}return e.length-=i,r}f(M2,\"copyFromBuffer\");function En(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,li.nextTick(S2,e,t))}f(En,\"endReadable\");function S2(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}f(S2,\"endReadableNT\");function oo(t,e){for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1}f(oo,\"indexOf\")});var kn=k((e5,lo)=>{\"use strict\";M();lo.exports=Jt;var $a=Ur(),uo=Object.create(di());uo.inherits=Se();uo.inherits(Jt,$a);function A2(t,e){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(!a)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),a(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}f(A2,\"afterTransform\");function Jt(t){if(!(this instanceof Jt))return new Jt(t);$a.call(this,t),this._transformState={afterTransform:A2.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform==\"function\"&&(this._transform=t.transform),typeof t.flush==\"function\"&&(this._flush=t.flush)),this.on(\"prefinish\",E2)}f(Jt,\"Transform\");function E2(){var t=this;typeof this._flush==\"function\"?this._flush(function(e,r){co(t,e,r)}):co(this,null,null)}f(E2,\"prefinish\");Jt.prototype.push=function(t,e){return this._transformState.needTransform=!1,$a.prototype.push.call(this,t,e)};Jt.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")};Jt.prototype._write=function(t,e,r){var a=this._transformState;if(a.writecb=r,a.writechunk=t,a.writeencoding=e,!a.transforming){var i=this._readableState;(a.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Jt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Jt.prototype._destroy=function(t,e){var r=this;$a.prototype._destroy.call(this,t,function(a){e(a),r.emit(\"close\")})};function co(t,e,r){if(e)return t.emit(\"error\",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}f(co,\"done\")});var mo=k((i5,bo)=>{\"use strict\";M();bo.exports=sa;var vo=kn(),po=Object.create(di());po.inherits=Se();po.inherits(sa,vo);function sa(t){if(!(this instanceof sa))return new sa(t);vo.call(this,t)}f(sa,\"PassThrough\");sa.prototype._transform=function(t,e,r){r(null,t)}});var In=k((Ot,yo)=>{M();Ot=yo.exports=xn();Ot.Stream=Ot;Ot.Readable=Ot;Ot.Writable=gn();Ot.Duplex=Ur();Ot.Transform=kn();Ot.PassThrough=mo()});var Rn=k((s5,_o)=>{\"use strict\";M();var q2=xe().Buffer,B2=ks(),go=In().Transform,k2=Se();function ur(t){go.call(this),this._block=q2.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}f(ur,\"HashBase\");k2(ur,go);ur.prototype._transform=function(t,e,r){var a=null;try{this.update(t,e)}catch(i){a=i}r(a)};ur.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};ur.prototype.update=function(t,e){if(this._finalized)throw new Error(\"Digest already called\");for(var r=B2(t,e),a=this._block,i=0;this._blockOffset+r.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)a[s]=r[i],s+=1,i+=1;this._update(),this._blockOffset=0}for(;i<r.length;)a[this._blockOffset]=r[i],this._blockOffset+=1,i+=1;for(var c=0,p=r.length*8;p>0;++c)this._length[c]+=p,p=this._length[c]/4294967296|0,p>0&&(this._length[c]-=4294967296*p);return this};ur.prototype._update=function(){throw new Error(\"_update is not implemented\")};ur.prototype.digest=function(t){if(this._finalized)throw new Error(\"Digest already called\");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};ur.prototype._digest=function(){throw new Error(\"_digest is not implemented\")};_o.exports=ur});var tf=k((d5,xo)=>{\"use strict\";M();var I2=Se(),wo=Rn(),R2=xe().Buffer,C2=new Array(16);function Qa(){wo.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}f(Qa,\"MD5\");I2(Qa,wo);Qa.prototype._update=function(){for(var t=C2,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,a=this._b,i=this._c,s=this._d;r=$e(r,a,i,s,t[0],3614090360,7),s=$e(s,r,a,i,t[1],3905402710,12),i=$e(i,s,r,a,t[2],606105819,17),a=$e(a,i,s,r,t[3],3250441966,22),r=$e(r,a,i,s,t[4],4118548399,7),s=$e(s,r,a,i,t[5],1200080426,12),i=$e(i,s,r,a,t[6],2821735955,17),a=$e(a,i,s,r,t[7],4249261313,22),r=$e(r,a,i,s,t[8],1770035416,7),s=$e(s,r,a,i,t[9],2336552879,12),i=$e(i,s,r,a,t[10],4294925233,17),a=$e(a,i,s,r,t[11],2304563134,22),r=$e(r,a,i,s,t[12],1804603682,7),s=$e(s,r,a,i,t[13],4254626195,12),i=$e(i,s,r,a,t[14],2792965006,17),a=$e(a,i,s,r,t[15],1236535329,22),r=Qe(r,a,i,s,t[1],4129170786,5),s=Qe(s,r,a,i,t[6],3225465664,9),i=Qe(i,s,r,a,t[11],643717713,14),a=Qe(a,i,s,r,t[0],3921069994,20),r=Qe(r,a,i,s,t[5],3593408605,5),s=Qe(s,r,a,i,t[10],38016083,9),i=Qe(i,s,r,a,t[15],3634488961,14),a=Qe(a,i,s,r,t[4],3889429448,20),r=Qe(r,a,i,s,t[9],568446438,5),s=Qe(s,r,a,i,t[14],3275163606,9),i=Qe(i,s,r,a,t[3],4107603335,14),a=Qe(a,i,s,r,t[8],1163531501,20),r=Qe(r,a,i,s,t[13],2850285829,5),s=Qe(s,r,a,i,t[2],4243563512,9),i=Qe(i,s,r,a,t[7],1735328473,14),a=Qe(a,i,s,r,t[12],2368359562,20),r=et(r,a,i,s,t[5],4294588738,4),s=et(s,r,a,i,t[8],2272392833,11),i=et(i,s,r,a,t[11],1839030562,16),a=et(a,i,s,r,t[14],4259657740,23),r=et(r,a,i,s,t[1],2763975236,4),s=et(s,r,a,i,t[4],1272893353,11),i=et(i,s,r,a,t[7],4139469664,16),a=et(a,i,s,r,t[10],3200236656,23),r=et(r,a,i,s,t[13],681279174,4),s=et(s,r,a,i,t[0],3936430074,11),i=et(i,s,r,a,t[3],3572445317,16),a=et(a,i,s,r,t[6],76029189,23),r=et(r,a,i,s,t[9],3654602809,4),s=et(s,r,a,i,t[12],3873151461,11),i=et(i,s,r,a,t[15],530742520,16),a=et(a,i,s,r,t[2],3299628645,23),r=tt(r,a,i,s,t[0],4096336452,6),s=tt(s,r,a,i,t[7],1126891415,10),i=tt(i,s,r,a,t[14],2878612391,15),a=tt(a,i,s,r,t[5],4237533241,21),r=tt(r,a,i,s,t[12],1700485571,6),s=tt(s,r,a,i,t[3],2399980690,10),i=tt(i,s,r,a,t[10],4293915773,15),a=tt(a,i,s,r,t[1],2240044497,21),r=tt(r,a,i,s,t[8],1873313359,6),s=tt(s,r,a,i,t[15],4264355552,10),i=tt(i,s,r,a,t[6],2734768916,15),a=tt(a,i,s,r,t[13],1309151649,21),r=tt(r,a,i,s,t[4],4149444226,6),s=tt(s,r,a,i,t[11],3174756917,10),i=tt(i,s,r,a,t[2],718787259,15),a=tt(a,i,s,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+a|0,this._c=this._c+i|0,this._d=this._d+s|0};Qa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=R2.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function ef(t,e){return t<<e|t>>>32-e}f(ef,\"rotl\");function $e(t,e,r,a,i,s,c){return ef(t+(e&r|~e&a)+i+s|0,c)+e|0}f($e,\"fnF\");function Qe(t,e,r,a,i,s,c){return ef(t+(e&a|r&~a)+i+s|0,c)+e|0}f(Qe,\"fnG\");function et(t,e,r,a,i,s,c){return ef(t+(e^r^a)+i+s|0,c)+e|0}f(et,\"fnH\");function tt(t,e,r,a,i,s,c){return ef(t+(r^(e|~a))+i+s|0,c)+e|0}f(tt,\"fnI\");xo.exports=Qa});var af=k((l5,ko)=>{\"use strict\";M();var Cn=(cr(),hr(dr)).Buffer,D2=Se(),Bo=Rn(),P2=new Array(16),oa=[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],ha=[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],da=[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],ca=[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],ua=[0,1518500249,1859775393,2400959708,2840853838],la=[1352829926,1548603684,1836072691,2053994217,0];function zr(t,e){return t<<e|t>>>32-e}f(zr,\"rotl\");function Mo(t,e,r,a,i,s,c,p){return zr(t+(e^r^a)+s+c|0,p)+i|0}f(Mo,\"fn1\");function So(t,e,r,a,i,s,c,p){return zr(t+(e&r|~e&a)+s+c|0,p)+i|0}f(So,\"fn2\");function Ao(t,e,r,a,i,s,c,p){return zr(t+((e|~r)^a)+s+c|0,p)+i|0}f(Ao,\"fn3\");function Eo(t,e,r,a,i,s,c,p){return zr(t+(e&a|r&~a)+s+c|0,p)+i|0}f(Eo,\"fn4\");function qo(t,e,r,a,i,s,c,p){return zr(t+(e^(r|~a))+s+c|0,p)+i|0}f(qo,\"fn5\");function rf(){Bo.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}f(rf,\"RIPEMD160\");D2(rf,Bo);rf.prototype._update=function(){for(var t=P2,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=this._a|0,_=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,B=0;B<80;B+=1){var I,R;B<16?(I=Mo(r,a,i,s,c,t[oa[B]],ua[0],da[B]),R=qo(p,_,S,A,q,t[ha[B]],la[0],ca[B])):B<32?(I=So(r,a,i,s,c,t[oa[B]],ua[1],da[B]),R=Eo(p,_,S,A,q,t[ha[B]],la[1],ca[B])):B<48?(I=Ao(r,a,i,s,c,t[oa[B]],ua[2],da[B]),R=Ao(p,_,S,A,q,t[ha[B]],la[2],ca[B])):B<64?(I=Eo(r,a,i,s,c,t[oa[B]],ua[3],da[B]),R=So(p,_,S,A,q,t[ha[B]],la[3],ca[B])):(I=qo(r,a,i,s,c,t[oa[B]],ua[4],da[B]),R=Mo(p,_,S,A,q,t[ha[B]],la[4],ca[B])),r=c,c=s,s=zr(i,10),i=a,a=I,p=q,q=A,A=zr(S,10),S=_,_=R}var T=this._b+i+A|0;this._b=this._c+s+q|0,this._c=this._d+c+p|0,this._d=this._e+r+_|0,this._e=this._a+a+S|0,this._a=T};rf.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 t=Cn.alloc?Cn.alloc(20):new Cn(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};ko.exports=rf});var Fr=k((b5,Io)=>{\"use strict\";M();var T2=xe().Buffer,N2=ea();function ff(t,e){this._block=T2.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}f(ff,\"Hash\");ff.prototype.update=function(t,e){t=N2(t,e||\"utf8\");for(var r=this._block,a=this._blockSize,i=t.length,s=this._len,c=0;c<i;){for(var p=s%a,_=Math.min(i-c,a-p),S=0;S<_;S++)r[p+S]=t[c+S];s+=_,c+=_,s%a===0&&this._update(r)}return this._len+=i,this};ff.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var a=(r&4294967295)>>>0,i=(r-a)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s};ff.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};Io.exports=ff});var Do=k((g5,Co)=>{\"use strict\";M();var O2=Se(),Ro=Fr(),L2=xe().Buffer,U2=[1518500249,1859775393,-1894007588,-899497514],z2=new Array(80);function va(){this.init(),this._w=z2,Ro.call(this,64,56)}f(va,\"Sha\");O2(va,Ro);va.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F2(t){return t<<5|t>>>27}f(F2,\"rotl5\");function H2(t){return t<<30|t>>>2}f(H2,\"rotl30\");function K2(t,e,r,a){return t===0?e&r|~e&a:t===2?e&r|e&a|r&a:e^r^a}f(K2,\"ft\");va.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=0;p<16;++p)e[p]=t.readInt32BE(p*4);for(;p<80;++p)e[p]=e[p-3]^e[p-8]^e[p-14]^e[p-16];for(var _=0;_<80;++_){var S=~~(_/20),A=F2(r)+K2(S,a,i,s)+c+e[_]+U2[S]|0;c=s,s=i,i=H2(a),a=r,r=A}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};va.prototype._hash=function(){var t=L2.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Co.exports=va});var No=k((x5,To)=>{\"use strict\";M();var j2=Se(),Po=Fr(),V2=xe().Buffer,W2=[1518500249,1859775393,-1894007588,-899497514],Z2=new Array(80);function pa(){this.init(),this._w=Z2,Po.call(this,64,56)}f(pa,\"Sha1\");j2(pa,Po);pa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function X2(t){return t<<1|t>>>31}f(X2,\"rotl1\");function G2(t){return t<<5|t>>>27}f(G2,\"rotl5\");function J2(t){return t<<30|t>>>2}f(J2,\"rotl30\");function Y2(t,e,r,a){return t===0?e&r|~e&a:t===2?e&r|e&a|r&a:e^r^a}f(Y2,\"ft\");pa.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=0;p<16;++p)e[p]=t.readInt32BE(p*4);for(;p<80;++p)e[p]=X2(e[p-3]^e[p-8]^e[p-14]^e[p-16]);for(var _=0;_<80;++_){var S=~~(_/20),A=G2(r)+Y2(S,a,i,s)+c+e[_]+W2[S]|0;c=s,s=i,i=J2(a),a=r,r=A}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};pa.prototype._hash=function(){var t=V2.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};To.exports=pa});var Dn=k((A5,Lo)=>{\"use strict\";M();var $2=Se(),Oo=Fr(),Q2=xe().Buffer,ev=[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],tv=new Array(64);function ba(){this.init(),this._w=tv,Oo.call(this,64,56)}f(ba,\"Sha256\");$2(ba,Oo);ba.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function rv(t,e,r){return r^t&(e^r)}f(rv,\"ch\");function iv(t,e,r){return t&e|r&(t|e)}f(iv,\"maj\");function av(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}f(av,\"sigma0\");function fv(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}f(fv,\"sigma1\");function nv(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}f(nv,\"gamma0\");function sv(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}f(sv,\"gamma1\");ba.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=this._f|0,_=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=sv(e[A-2])+e[A-7]+nv(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var B=S+fv(c)+rv(c,p,_)+ev[q]+e[q]|0,I=av(r)+iv(r,a,i)|0;S=_,_=p,p=c,c=s+B|0,s=i,i=a,a=r,r=B+I|0}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=_+this._g|0,this._h=S+this._h|0};ba.prototype._hash=function(){var t=Q2.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};Lo.exports=ba});var zo=k((B5,Uo)=>{\"use strict\";M();var ov=Se(),hv=Dn(),dv=Fr(),cv=xe().Buffer,uv=new Array(64);function nf(){this.init(),this._w=uv,dv.call(this,64,56)}f(nf,\"Sha224\");ov(nf,hv);nf.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};nf.prototype._hash=function(){var t=cv.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};Uo.exports=nf});var Pn=k((R5,Zo)=>{\"use strict\";M();var lv=Se(),Wo=Fr(),vv=xe().Buffer,Fo=[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],pv=new Array(160);function ma(){this.init(),this._w=pv,Wo.call(this,128,112)}f(ma,\"Sha512\");lv(ma,Wo);ma.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ho(t,e,r){return r^t&(e^r)}f(Ho,\"Ch\");function Ko(t,e,r){return t&e|r&(t|e)}f(Ko,\"maj\");function jo(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}f(jo,\"sigma0\");function Vo(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}f(Vo,\"sigma1\");function bv(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}f(bv,\"Gamma0\");function mv(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}f(mv,\"Gamma0l\");function yv(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}f(yv,\"Gamma1\");function gv(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}f(gv,\"Gamma1l\");function Ke(t,e){return t>>>0<e>>>0?1:0}f(Ke,\"getCarry\");ma.prototype._update=function(t){for(var e=this._w,r=this._ah|0,a=this._bh|0,i=this._ch|0,s=this._dh|0,c=this._eh|0,p=this._fh|0,_=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,B=this._cl|0,I=this._dl|0,R=this._el|0,T=this._fl|0,L=this._gl|0,N=this._hl|0,z=0;z<32;z+=2)e[z]=t.readInt32BE(z*4),e[z+1]=t.readInt32BE(z*4+4);for(;z<160;z+=2){var Ee=e[z-30],qe=e[z-30+1],De=bv(Ee,qe),ke=mv(qe,Ee);Ee=e[z-4],qe=e[z-4+1];var Ue=yv(Ee,qe),Ae=gv(qe,Ee),Le=e[z-14],E=e[z-14+1],d=e[z-32],y=e[z-32+1],l=ke+E|0,n=De+Le+Ke(l,ke)|0;l=l+Ae|0,n=n+Ue+Ke(l,Ae)|0,l=l+y|0,n=n+d+Ke(l,y)|0,e[z]=n,e[z+1]=l}for(var h=0;h<160;h+=2){n=e[h],l=e[h+1];var v=Ko(r,a,i),m=Ko(A,q,B),b=jo(r,A),o=jo(A,r),g=Vo(c,R),w=Vo(R,c),u=Fo[h],x=Fo[h+1],C=Ho(c,p,_),P=Ho(R,T,L),D=N+w|0,U=S+g+Ke(D,N)|0;D=D+P|0,U=U+C+Ke(D,P)|0,D=D+x|0,U=U+u+Ke(D,x)|0,D=D+l|0,U=U+n+Ke(D,l)|0;var O=o+m|0,F=b+v+Ke(O,o)|0;S=_,N=L,_=p,L=T,p=c,T=R,R=I+D|0,c=s+U+Ke(R,I)|0,s=i,I=B,i=a,B=q,a=r,q=A,A=D+O|0,r=U+F+Ke(A,D)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+B|0,this._dl=this._dl+I|0,this._el=this._el+R|0,this._fl=this._fl+T|0,this._gl=this._gl+L|0,this._hl=this._hl+N|0,this._ah=this._ah+r+Ke(this._al,A)|0,this._bh=this._bh+a+Ke(this._bl,q)|0,this._ch=this._ch+i+Ke(this._cl,B)|0,this._dh=this._dh+s+Ke(this._dl,I)|0,this._eh=this._eh+c+Ke(this._el,R)|0,this._fh=this._fh+p+Ke(this._fl,T)|0,this._gh=this._gh+_+Ke(this._gl,L)|0,this._hh=this._hh+S+Ke(this._hl,N)|0};ma.prototype._hash=function(){var t=vv.allocUnsafe(64);function e(r,a,i){t.writeInt32BE(r,i),t.writeInt32BE(a,i+4)}return f(e,\"writeInt64BE\"),e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};Zo.exports=ma});var Go=k((P5,Xo)=>{\"use strict\";M();var _v=Se(),wv=Pn(),xv=Fr(),Mv=xe().Buffer,Sv=new Array(160);function sf(){this.init(),this._w=Sv,xv.call(this,128,112)}f(sf,\"Sha384\");_v(sf,wv);sf.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};sf.prototype._hash=function(){var t=Mv.allocUnsafe(48);function e(r,a,i){t.writeInt32BE(r,i),t.writeInt32BE(a,i+4)}return f(e,\"writeInt64BE\"),e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};Xo.exports=sf});var of=k((O5,Yt)=>{\"use strict\";M();Yt.exports=f(function(e){var r=e.toLowerCase(),a=Yt.exports[r];if(!a)throw new Error(r+\" is not supported (we accept pull requests)\");return new a},\"SHA\");Yt.exports.sha=Do();Yt.exports.sha1=No();Yt.exports.sha224=zo();Yt.exports.sha256=Dn();Yt.exports.sha384=Go();Yt.exports.sha512=Pn()});var $t=k((z5,Yo)=>{\"use strict\";M();var Av=xe().Buffer,Jo=e1().Transform,Ev=hn().StringDecoder,qv=Se(),Bv=ea();function St(t){Jo.call(this),this.hashMode=typeof t==\"string\",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}f(St,\"CipherBase\");qv(St,Jo);St.prototype.update=function(t,e,r){var a=Bv(t,e),i=this._update(a);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};St.prototype.setAutoPadding=function(){};St.prototype.getAuthTag=function(){throw new Error(\"trying to get auth tag in unsupported state\")};St.prototype.setAuthTag=function(){throw new Error(\"trying to set auth tag in unsupported state\")};St.prototype.setAAD=function(){throw new Error(\"trying to set aad in unsupported state\")};St.prototype._transform=function(t,e,r){var a;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){a=i}finally{r(a)}};St.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};St.prototype._finalOrDigest=function(t){var e=this.__final()||Av.alloc(0);return t&&(e=this._toString(e,t,!0)),e};St.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new Ev(e),this._encoding=e),this._encoding!==e)throw new Error(\"can\\u2019t switch encodings\");var a=this._decoder.write(t);return r&&(a+=this._decoder.end()),a};Yo.exports=St});var vi=k((K5,Qo)=>{\"use strict\";M();var kv=Se(),Iv=tf(),Rv=af(),Cv=of(),$o=$t();function hf(t){$o.call(this,\"digest\"),this._hash=t}f(hf,\"Hash\");kv(hf,$o);hf.prototype._update=function(t){this._hash.update(t)};hf.prototype._final=function(){return this._hash.digest()};Qo.exports=f(function(e){return e=e.toLowerCase(),e===\"md5\"?new Iv:e===\"rmd160\"||e===\"ripemd160\"?new Rv:new hf(Cv(e))},\"createHash\")});var rh=k((W5,th)=>{\"use strict\";M();var Dv=Se(),Hr=xe().Buffer,eh=$t(),Pv=Hr.alloc(128),pi=64;function df(t,e){eh.call(this,\"digest\"),typeof e==\"string\"&&(e=Hr.from(e)),this._alg=t,this._key=e,e.length>pi?e=t(e):e.length<pi&&(e=Hr.concat([e,Pv],pi));for(var r=this._ipad=Hr.allocUnsafe(pi),a=this._opad=Hr.allocUnsafe(pi),i=0;i<pi;i++)r[i]=e[i]^54,a[i]=e[i]^92;this._hash=[r]}f(df,\"Hmac\");Dv(df,eh);df.prototype._update=function(t){this._hash.push(t)};df.prototype._final=function(){var t=this._alg(Hr.concat(this._hash));return this._alg(Hr.concat([this._opad,t]))};th.exports=df});var Tn=k((G5,ih)=>{M();var Tv=tf();ih.exports=function(t){return new Tv().update(t).digest()}});var Ln=k((Y5,fh)=>{\"use strict\";M();var Nv=Se(),Ov=rh(),ah=$t(),ya=xe().Buffer,Lv=Tn(),Nn=af(),On=of(),Uv=ya.alloc(128);function ga(t,e){ah.call(this,\"digest\"),typeof e==\"string\"&&(e=ya.from(e));var r=t===\"sha512\"||t===\"sha384\"?128:64;if(this._alg=t,this._key=e,e.length>r){var a=t===\"rmd160\"?new Nn:On(t);e=a.update(e).digest()}else e.length<r&&(e=ya.concat([e,Uv],r));for(var i=this._ipad=ya.allocUnsafe(r),s=this._opad=ya.allocUnsafe(r),c=0;c<r;c++)i[c]=e[c]^54,s[c]=e[c]^92;this._hash=t===\"rmd160\"?new Nn:On(t),this._hash.update(i)}f(ga,\"Hmac\");Nv(ga,ah);ga.prototype._update=function(t){this._hash.update(t)};ga.prototype._final=function(){var t=this._hash.digest(),e=this._alg===\"rmd160\"?new Nn:On(this._alg);return e.update(this._opad).update(t).digest()};fh.exports=f(function(e,r){return e=e.toLowerCase(),e===\"rmd160\"||e===\"ripemd160\"?new ga(\"rmd160\",r):e===\"md5\"?new Ov(Lv,r):new ga(e,r)},\"createHmac\")});var Un=k((e9,zv)=>{zv.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/rsa\",hash:\"sha256\",id:\"3031300d060960864801650304020105000420\"},sha224:{sign:\"ecdsa/rsa\",hash:\"sha224\",id:\"302d300d06096086480165030402040500041c\"},sha384:{sign:\"ecdsa/rsa\",hash:\"sha384\",id:\"3041300d060960864801650304020205000430\"},sha512:{sign:\"ecdsa/rsa\",hash:\"sha512\",id:\"3051300d060960864801650304020305000440\"},\"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\"}}});var sh=k((t9,nh)=>{\"use strict\";M();nh.exports=Un()});var zn=k((i9,oh)=>{\"use strict\";M();var Fv=isFinite,Hv=Math.pow(2,30)-1;oh.exports=function(t,e){if(typeof t!=\"number\")throw new TypeError(\"Iterations not a number\");if(t<0||!Fv(t))throw new TypeError(\"Bad iterations\");if(typeof e!=\"number\")throw new TypeError(\"Key length not a number\");if(e<0||e>Hv||e!==e)throw new TypeError(\"Bad key length\");return e+0}});var Fn=k((f9,dh)=>{\"use strict\";M();var cf;globalThis.process&&globalThis.process.browser?cf=\"utf-8\":globalThis.process&&globalThis.process.version?(hh=parseInt(process.version.split(\".\")[0].slice(1),10),cf=hh>=6?\"utf-8\":\"binary\"):cf=\"utf-8\";var hh;dh.exports=cf});var Hn=k((s9,lh)=>{\"use strict\";M();var Kv=xe().Buffer,jv=ea(),uh=typeof Uint8Array<\"u\",Vv=uh&&typeof ArrayBuffer<\"u\",ch=Vv&&ArrayBuffer.isView;lh.exports=function(t,e,r){if(typeof t==\"string\"||Kv.isBuffer(t)||uh&&t instanceof Uint8Array||ch&&ch(t))return jv(t,e);throw new TypeError(r+\" must be a string, a Buffer, a Uint8Array, or a DataView\")}});var Kn=k((h9,mh)=>{\"use strict\";M();var Wv=Tn(),Zv=af(),Xv=of(),Kr=xe().Buffer,Gv=zn(),vh=Fn(),ph=Hn(),Jv=Kr.alloc(128),uf={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,\"sha512-256\":32,ripemd160:20,rmd160:20},Yv={__proto__:null,\"sha-1\":\"sha1\",\"sha-224\":\"sha224\",\"sha-256\":\"sha256\",\"sha-384\":\"sha384\",\"sha-512\":\"sha512\",\"ripemd-160\":\"ripemd160\"};function $v(t){return new Zv().update(t).digest()}f($v,\"rmd160Func\");function Qv(t){function e(r){return Xv(t).update(r).digest()}return f(e,\"shaFunc\"),t===\"rmd160\"||t===\"ripemd160\"?$v:t===\"md5\"?Wv:e}f(Qv,\"getDigest\");function bh(t,e,r){var a=Qv(t),i=t===\"sha512\"||t===\"sha384\"?128:64;e.length>i?e=a(e):e.length<i&&(e=Kr.concat([e,Jv],i));for(var s=Kr.allocUnsafe(i+uf[t]),c=Kr.allocUnsafe(i+uf[t]),p=0;p<i;p++)s[p]=e[p]^54,c[p]=e[p]^92;var _=Kr.allocUnsafe(i+r+4);s.copy(_,0,0,i),this.ipad1=_,this.ipad2=s,this.opad=c,this.alg=t,this.blocksize=i,this.hash=a,this.size=uf[t]}f(bh,\"Hmac\");bh.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function ep(t,e,r,a,i){a=Gv(r,a),t=ph(t,vh,\"Password\"),e=ph(e,vh,\"Salt\");var s=(i||\"sha1\").toLowerCase(),c=Yv[s]||s,p=uf[c];if(typeof p!=\"number\"||!p)throw new TypeError(\"Digest algorithm not supported: \"+i);var _=new bh(c,t,e.length),S=Kr.allocUnsafe(a),A=Kr.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,B=p,I=Math.ceil(a/B),R=1;R<=I;R++){A.writeUInt32BE(R,e.length);for(var T=_.run(A,_.ipad1),L=T,N=1;N<r;N++){L=_.run(L,_.ipad2);for(var z=0;z<B;z++)T[z]^=L[z]}T.copy(S,q),q+=B}return S}f(ep,\"pbkdf2\");mh.exports=ep});var Sh=k((u9,Mh)=>{\"use strict\";M();var wh=xe().Buffer,tp=zn(),yh=Fn(),gh=Kn(),_h=Hn(),lf,_a=globalThis.crypto&&globalThis.crypto.subtle,rp={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\"},jn=[],jr;function Vn(){return jr||(globalThis.process&&globalThis.process.nextTick?jr=globalThis.process.nextTick:globalThis.queueMicrotask?jr=globalThis.queueMicrotask:globalThis.setImmediate?jr=globalThis.setImmediate:jr=globalThis.setTimeout,jr)}f(Vn,\"getNextTick\");function xh(t,e,r,a,i){return _a.importKey(\"raw\",t,{name:\"PBKDF2\"},!1,[\"deriveBits\"]).then(function(s){return _a.deriveBits({name:\"PBKDF2\",salt:e,iterations:r,hash:{name:i}},s,a<<3)}).then(function(s){return wh.from(s)})}f(xh,\"browserPbkdf2\");function ip(t){if(globalThis.process&&!globalThis.process.browser||!_a||!_a.importKey||!_a.deriveBits)return Promise.resolve(!1);if(jn[t]!==void 0)return jn[t];lf=lf||wh.alloc(8);var e=xh(lf,lf,10,128,t).then(function(){return!0},function(){return!1});return jn[t]=e,e}f(ip,\"checkNative\");function ap(t,e){t.then(function(r){Vn()(function(){e(null,r)})},function(r){Vn()(function(){e(r)})})}f(ap,\"resolvePromise\");Mh.exports=function(t,e,r,a,i,s){if(typeof i==\"function\"&&(s=i,i=void 0),a=tp(r,a),t=_h(t,yh,\"Password\"),e=_h(e,yh,\"Salt\"),typeof s!=\"function\")throw new Error(\"No callback provided to pbkdf2\");i=i||\"sha1\";var c=rp[i.toLowerCase()];if(!c||typeof globalThis.Promise!=\"function\"){Vn()(function(){var p;try{p=gh(t,e,r,a,i)}catch(_){s(_);return}s(null,p)});return}ap(ip(c).then(function(p){return p?xh(t,e,r,a,c):gh(t,e,r,a,i)}),s)}});var Zn=k(Wn=>{\"use strict\";M();Wn.pbkdf2=Sh();Wn.pbkdf2Sync=Kn()});var Xn=k(lt=>{\"use strict\";M();lt.readUInt32BE=f(function(e,r){var a=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return a>>>0},\"readUInt32BE\");lt.writeUInt32BE=f(function(e,r,a){e[0+a]=r>>>24,e[1+a]=r>>>16&255,e[2+a]=r>>>8&255,e[3+a]=r&255},\"writeUInt32BE\");lt.ip=f(function(e,r,a,i){for(var s=0,c=0,p=6;p>=0;p-=2){for(var _=0;_<=24;_+=8)s<<=1,s|=r>>>_+p&1;for(var _=0;_<=24;_+=8)s<<=1,s|=e>>>_+p&1}for(var p=6;p>=0;p-=2){for(var _=1;_<=25;_+=8)c<<=1,c|=r>>>_+p&1;for(var _=1;_<=25;_+=8)c<<=1,c|=e>>>_+p&1}a[i+0]=s>>>0,a[i+1]=c>>>0},\"ip\");lt.rip=f(function(e,r,a,i){for(var s=0,c=0,p=0;p<4;p++)for(var _=24;_>=0;_-=8)s<<=1,s|=r>>>_+p&1,s<<=1,s|=e>>>_+p&1;for(var p=4;p<8;p++)for(var _=24;_>=0;_-=8)c<<=1,c|=r>>>_+p&1,c<<=1,c|=e>>>_+p&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"rip\");lt.pc1=f(function(e,r,a,i){for(var s=0,c=0,p=7;p>=5;p--){for(var _=0;_<=24;_+=8)s<<=1,s|=r>>_+p&1;for(var _=0;_<=24;_+=8)s<<=1,s|=e>>_+p&1}for(var _=0;_<=24;_+=8)s<<=1,s|=r>>_+p&1;for(var p=1;p<=3;p++){for(var _=0;_<=24;_+=8)c<<=1,c|=r>>_+p&1;for(var _=0;_<=24;_+=8)c<<=1,c|=e>>_+p&1}for(var _=0;_<=24;_+=8)c<<=1,c|=e>>_+p&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"pc1\");lt.r28shl=f(function(e,r){return e<<r&268435455|e>>>28-r},\"r28shl\");var vf=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];lt.pc2=f(function(e,r,a,i){for(var s=0,c=0,p=vf.length>>>1,_=0;_<p;_++)s<<=1,s|=e>>>vf[_]&1;for(var _=p;_<vf.length;_++)c<<=1,c|=r>>>vf[_]&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"pc2\");lt.expand=f(function(e,r,a){var i=0,s=0;i=(e&1)<<5|e>>>27;for(var c=23;c>=15;c-=4)i<<=6,i|=e>>>c&63;for(var c=11;c>=3;c-=4)s|=e>>>c&63,s<<=6;s|=(e&31)<<1|e>>>31,r[a+0]=i>>>0,r[a+1]=s>>>0},\"expand\");var Ah=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];lt.substitute=f(function(e,r){for(var a=0,i=0;i<4;i++){var s=e>>>18-i*6&63,c=Ah[i*64+s];a<<=4,a|=c}for(var i=0;i<4;i++){var s=r>>>18-i*6&63,c=Ah[256+i*64+s];a<<=4,a|=c}return a>>>0},\"substitute\");var Eh=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];lt.permute=f(function(e){for(var r=0,a=0;a<Eh.length;a++)r<<=1,r|=e>>>Eh[a]&1;return r>>>0},\"permute\");lt.padSplit=f(function(e,r,a){for(var i=e.toString(2);i.length<r;)i=\"0\"+i;for(var s=[],c=0;c<r;c+=a)s.push(i.slice(c,c+a));return s.join(\" \")},\"padSplit\")});var ht=k((_9,Bh)=>{M();Bh.exports=qh;function qh(t,e){if(!t)throw new Error(e||\"Assertion failed\")}f(qh,\"assert\");qh.equal=f(function(e,r,a){if(e!=r)throw new Error(a||\"Assertion failed: \"+e+\" != \"+r)},\"assertEqual\")});var pf=k((M9,kh)=>{\"use strict\";M();var fp=ht();function vt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}f(vt,\"Cipher\");kh.exports=vt;vt.prototype._init=f(function(){},\"_init\");vt.prototype.update=f(function(e){return e.length===0?[]:this.type===\"decrypt\"?this._updateDecrypt(e):this._updateEncrypt(e)},\"update\");vt.prototype._buffer=f(function(e,r){for(var a=Math.min(this.buffer.length-this.bufferOff,e.length-r),i=0;i<a;i++)this.buffer[this.bufferOff+i]=e[r+i];return this.bufferOff+=a,a},\"_buffer\");vt.prototype._flushBuffer=f(function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize},\"_flushBuffer\");vt.prototype._updateEncrypt=f(function(e){var r=0,a=0,i=(this.bufferOff+e.length)/this.blockSize|0,s=new Array(i*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(s,a)));for(var c=e.length-(e.length-r)%this.blockSize;r<c;r+=this.blockSize)this._update(e,r,s,a),a+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return s},\"_updateEncrypt\");vt.prototype._updateDecrypt=f(function(e){for(var r=0,a=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,s=new Array(i*this.blockSize);i>0;i--)r+=this._buffer(e,r),a+=this._flushBuffer(s,a);return r+=this._buffer(e,r),s},\"_updateDecrypt\");vt.prototype.final=f(function(e){var r;e&&(r=this.update(e));var a;return this.type===\"encrypt\"?a=this._finalEncrypt():a=this._finalDecrypt(),r?r.concat(a):a},\"final\");vt.prototype._pad=f(function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0},\"_pad\");vt.prototype._finalEncrypt=f(function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},\"_finalEncrypt\");vt.prototype._unpad=f(function(e){return e},\"_unpad\");vt.prototype._finalDecrypt=f(function(){fp.equal(this.bufferOff,this.blockSize,\"Not enough data to decrypt\");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)},\"_finalDecrypt\")});var Gn=k((E9,Ch)=>{\"use strict\";M();var Ih=ht(),np=Se(),He=Xn(),Rh=pf();function sp(){this.tmp=new Array(2),this.keys=null}f(sp,\"DESState\");function Lt(t){Rh.call(this,t);var e=new sp;this._desState=e,this.deriveKeys(e,t.key)}f(Lt,\"DES\");np(Lt,Rh);Ch.exports=Lt;Lt.create=f(function(e){return new Lt(e)},\"create\");var op=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Lt.prototype.deriveKeys=f(function(e,r){e.keys=new Array(32),Ih.equal(r.length,this.blockSize,\"Invalid key length\");var a=He.readUInt32BE(r,0),i=He.readUInt32BE(r,4);He.pc1(a,i,e.tmp,0),a=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var c=op[s>>>1];a=He.r28shl(a,c),i=He.r28shl(i,c),He.pc2(a,i,e.keys,s)}},\"deriveKeys\");Lt.prototype._update=f(function(e,r,a,i){var s=this._desState,c=He.readUInt32BE(e,r),p=He.readUInt32BE(e,r+4);He.ip(c,p,s.tmp,0),c=s.tmp[0],p=s.tmp[1],this.type===\"encrypt\"?this._encrypt(s,c,p,s.tmp,0):this._decrypt(s,c,p,s.tmp,0),c=s.tmp[0],p=s.tmp[1],He.writeUInt32BE(a,c,i),He.writeUInt32BE(a,p,i+4)},\"_update\");Lt.prototype._pad=f(function(e,r){if(this.padding===!1)return!1;for(var a=e.length-r,i=r;i<e.length;i++)e[i]=a;return!0},\"_pad\");Lt.prototype._unpad=f(function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],a=e.length-r;a<e.length;a++)Ih.equal(e[a],r);return e.slice(0,e.length-r)},\"_unpad\");Lt.prototype._encrypt=f(function(e,r,a,i,s){for(var c=r,p=a,_=0;_<e.keys.length;_+=2){var S=e.keys[_],A=e.keys[_+1];He.expand(p,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=He.substitute(S,A),B=He.permute(q),I=p;p=(c^B)>>>0,c=I}He.rip(p,c,i,s)},\"_encrypt\");Lt.prototype._decrypt=f(function(e,r,a,i,s){for(var c=a,p=r,_=e.keys.length-2;_>=0;_-=2){var S=e.keys[_],A=e.keys[_+1];He.expand(c,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=He.substitute(S,A),B=He.permute(q),I=c;c=(p^B)>>>0,p=I}He.rip(c,p,i,s)},\"_decrypt\")});var Ph=k(Dh=>{\"use strict\";M();var hp=ht(),dp=Se(),bf={};function cp(t){hp.equal(t.length,8,\"Invalid IV length\"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}f(cp,\"CBCState\");function up(t){function e(s){t.call(this,s),this._cbcInit()}f(e,\"CBC\"),dp(e,t);for(var r=Object.keys(bf),a=0;a<r.length;a++){var i=r[a];e.prototype[i]=bf[i]}return e.create=f(function(c){return new e(c)},\"create\"),e}f(up,\"instantiate\");Dh.instantiate=up;bf._cbcInit=f(function(){var e=new cp(this.options.iv);this._cbcState=e},\"_cbcInit\");bf._update=f(function(e,r,a,i){var s=this._cbcState,c=this.constructor.super_.prototype,p=s.iv;if(this.type===\"encrypt\"){for(var _=0;_<this.blockSize;_++)p[_]^=e[r+_];c._update.call(this,p,0,a,i);for(var _=0;_<this.blockSize;_++)p[_]=a[i+_]}else{c._update.call(this,e,r,a,i);for(var _=0;_<this.blockSize;_++)a[i+_]^=p[_];for(var _=0;_<this.blockSize;_++)p[_]=e[r+_]}},\"_update\")});var Oh=k((C9,Nh)=>{\"use strict\";M();var lp=ht(),vp=Se(),Th=pf(),lr=Gn();function pp(t,e){lp.equal(e.length,24,\"Invalid key length\");var r=e.slice(0,8),a=e.slice(8,16),i=e.slice(16,24);t===\"encrypt\"?this.ciphers=[lr.create({type:\"encrypt\",key:r}),lr.create({type:\"decrypt\",key:a}),lr.create({type:\"encrypt\",key:i})]:this.ciphers=[lr.create({type:\"decrypt\",key:i}),lr.create({type:\"encrypt\",key:a}),lr.create({type:\"decrypt\",key:r})]}f(pp,\"EDEState\");function Vr(t){Th.call(this,t);var e=new pp(this.type,this.options.key);this._edeState=e}f(Vr,\"EDE\");vp(Vr,Th);Nh.exports=Vr;Vr.create=f(function(e){return new Vr(e)},\"create\");Vr.prototype._update=f(function(e,r,a,i){var s=this._edeState;s.ciphers[0]._update(e,r,a,i),s.ciphers[1]._update(a,i,a,i),s.ciphers[2]._update(a,i,a,i)},\"_update\");Vr.prototype._pad=lr.prototype._pad;Vr.prototype._unpad=lr.prototype._unpad});var Lh=k(bi=>{\"use strict\";M();bi.utils=Xn();bi.Cipher=pf();bi.DES=Gn();bi.CBC=Ph();bi.EDE=Oh()});var Fh=k((O9,zh)=>{M();var Uh=$t(),Qt=Lh(),bp=Se(),Wr=xe().Buffer,wa={\"des-ede3-cbc\":Qt.CBC.instantiate(Qt.EDE),\"des-ede3\":Qt.EDE,\"des-ede-cbc\":Qt.CBC.instantiate(Qt.EDE),\"des-ede\":Qt.EDE,\"des-cbc\":Qt.CBC.instantiate(Qt.DES),\"des-ecb\":Qt.DES};wa.des=wa[\"des-cbc\"];wa.des3=wa[\"des-ede3-cbc\"];zh.exports=mf;bp(mf,Uh);function mf(t){Uh.call(this);var e=t.mode.toLowerCase(),r=wa[e],a;t.decrypt?a=\"decrypt\":a=\"encrypt\";var i=t.key;Wr.isBuffer(i)||(i=Wr.from(i)),(e===\"des-ede\"||e===\"des-ede-cbc\")&&(i=Wr.concat([i,i.slice(0,8)]));var s=t.iv;Wr.isBuffer(s)||(s=Wr.from(s)),this._des=r.create({key:i,iv:s,type:a})}f(mf,\"DES\");mf.prototype._update=function(t){return Wr.from(this._des.update(t))};mf.prototype._final=function(){return Wr.from(this._des.final())}});var Hh=k(Jn=>{M();Jn.encrypt=function(t,e){return t._cipher.encryptBlock(e)};Jn.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var mi=k((H9,Kh)=>{M();Kh.exports=f(function(e,r){for(var a=Math.min(e.length,r.length),i=new Buffer(a),s=0;s<a;++s)i[s]=e[s]^r[s];return i},\"xor\")});var Vh=k(Yn=>{M();var jh=mi();Yn.encrypt=function(t,e){var r=jh(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};Yn.decrypt=function(t,e){var r=t._prev;t._prev=e;var a=t._cipher.decryptBlock(e);return jh(a,r)}});var Xh=k(Zh=>{M();var xa=xe().Buffer,mp=mi();function Wh(t,e,r){var a=e.length,i=mp(e,t._cache);return t._cache=t._cache.slice(a),t._prev=xa.concat([t._prev,r?e:i]),i}f(Wh,\"encryptStart\");Zh.encrypt=function(t,e,r){for(var a=xa.allocUnsafe(0),i;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=xa.allocUnsafe(0)),t._cache.length<=e.length)i=t._cache.length,a=xa.concat([a,Wh(t,e.slice(0,i),r)]),e=e.slice(i);else{a=xa.concat([a,Wh(t,e,r)]);break}return a}});var Jh=k(Gh=>{M();var $n=xe().Buffer;function yp(t,e,r){var a=t._cipher.encryptBlock(t._prev),i=a[0]^e;return t._prev=$n.concat([t._prev.slice(1),$n.from([r?e:i])]),i}f(yp,\"encryptByte\");Gh.encrypt=function(t,e,r){for(var a=e.length,i=$n.allocUnsafe(a),s=-1;++s<a;)i[s]=yp(t,e[s],r);return i}});var $h=k(Yh=>{M();var yf=xe().Buffer;function gp(t,e,r){for(var a,i=-1,s=8,c=0,p,_;++i<s;)a=t._cipher.encryptBlock(t._prev),p=e&1<<7-i?128:0,_=a[0]^p,c+=(_&128)>>i%8,t._prev=_p(t._prev,r?p:_);return c}f(gp,\"encryptByte\");function _p(t,e){var r=t.length,a=-1,i=yf.allocUnsafe(t.length);for(t=yf.concat([t,yf.from([e])]);++a<r;)i[a]=t[a]<<1|t[a+1]>>7;return i}f(_p,\"shiftIn\");Yh.encrypt=function(t,e,r){for(var a=e.length,i=yf.allocUnsafe(a),s=-1;++s<a;)i[s]=gp(t,e[s],r);return i}});var ed=k(Qh=>{M();var wp=mi();function xp(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}f(xp,\"getBlock\");Qh.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=Buffer.concat([t._cache,xp(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),wp(e,r)}});var Qn=k((f7,td)=>{M();function Mp(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}f(Mp,\"incr32\");td.exports=Mp});var t0=k(id=>{M();var Sp=mi(),rd=xe().Buffer,Ap=Qn();function Ep(t){var e=t._cipher.encryptBlockRaw(t._prev);return Ap(t._prev),e}f(Ep,\"getBlock\");var e0=16;id.encrypt=function(t,e){var r=Math.ceil(e.length/e0),a=t._cache.length;t._cache=rd.concat([t._cache,rd.allocUnsafe(r*e0)]);for(var i=0;i<r;i++){var s=Ep(t),c=a+i*e0;t._cache.writeUInt32BE(s[0],c+0),t._cache.writeUInt32BE(s[1],c+4),t._cache.writeUInt32BE(s[2],c+8),t._cache.writeUInt32BE(s[3],c+12)}var p=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),Sp(e,p)}});var r0=k((c7,qp)=>{qp.exports={\"aes-128-ecb\":{cipher:\"AES\",key:128,iv:0,mode:\"ECB\",type:\"block\"},\"aes-192-ecb\":{cipher:\"AES\",key:192,iv:0,mode:\"ECB\",type:\"block\"},\"aes-256-ecb\":{cipher:\"AES\",key:256,iv:0,mode:\"ECB\",type:\"block\"},\"aes-128-cbc\":{cipher:\"AES\",key:128,iv:16,mode:\"CBC\",type:\"block\"},\"aes-192-cbc\":{cipher:\"AES\",key:192,iv:16,mode:\"CBC\",type:\"block\"},\"aes-256-cbc\":{cipher:\"AES\",key:256,iv:16,mode:\"CBC\",type:\"block\"},aes128:{cipher:\"AES\",key:128,iv:16,mode:\"CBC\",type:\"block\"},aes192:{cipher:\"AES\",key:192,iv:16,mode:\"CBC\",type:\"block\"},aes256:{cipher:\"AES\",key:256,iv:16,mode:\"CBC\",type:\"block\"},\"aes-128-cfb\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-192-cfb\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-256-cfb\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-128-cfb8\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-192-cfb8\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-256-cfb8\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-128-cfb1\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-192-cfb1\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-256-cfb1\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-128-ofb\":{cipher:\"AES\",key:128,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-192-ofb\":{cipher:\"AES\",key:192,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-256-ofb\":{cipher:\"AES\",key:256,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-128-ctr\":{cipher:\"AES\",key:128,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-192-ctr\":{cipher:\"AES\",key:192,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-256-ctr\":{cipher:\"AES\",key:256,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-128-gcm\":{cipher:\"AES\",key:128,iv:12,mode:\"GCM\",type:\"auth\"},\"aes-192-gcm\":{cipher:\"AES\",key:192,iv:12,mode:\"GCM\",type:\"auth\"},\"aes-256-gcm\":{cipher:\"AES\",key:256,iv:12,mode:\"GCM\",type:\"auth\"}}});var _f=k((u7,ad)=>{M();var Bp={ECB:Hh(),CBC:Vh(),CFB:Xh(),CFB8:Jh(),CFB1:$h(),OFB:ed(),CTR:t0(),GCM:t0()},gf=r0();for(i0 in gf)gf[i0].module=Bp[gf[i0].mode];var i0;ad.exports=gf});var Ma=k((v7,nd)=>{M();var wf=xe().Buffer;function f0(t){wf.isBuffer(t)||(t=wf.from(t));for(var e=t.length/4|0,r=new Array(e),a=0;a<e;a++)r[a]=t.readUInt32BE(a*4);return r}f(f0,\"asUInt32Array\");function a0(t){for(var e=0;e<t.length;t++)t[e]=0}f(a0,\"scrubVec\");function fd(t,e,r,a,i){for(var s=r[0],c=r[1],p=r[2],_=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],B=t[3]^e[3],I,R,T,L,N=4,z=1;z<i;z++)I=s[S>>>24]^c[A>>>16&255]^p[q>>>8&255]^_[B&255]^e[N++],R=s[A>>>24]^c[q>>>16&255]^p[B>>>8&255]^_[S&255]^e[N++],T=s[q>>>24]^c[B>>>16&255]^p[S>>>8&255]^_[A&255]^e[N++],L=s[B>>>24]^c[S>>>16&255]^p[A>>>8&255]^_[q&255]^e[N++],S=I,A=R,q=T,B=L;return I=(a[S>>>24]<<24|a[A>>>16&255]<<16|a[q>>>8&255]<<8|a[B&255])^e[N++],R=(a[A>>>24]<<24|a[q>>>16&255]<<16|a[B>>>8&255]<<8|a[S&255])^e[N++],T=(a[q>>>24]<<24|a[B>>>16&255]<<16|a[S>>>8&255]<<8|a[A&255])^e[N++],L=(a[B>>>24]<<24|a[S>>>16&255]<<16|a[A>>>8&255]<<8|a[q&255])^e[N++],I=I>>>0,R=R>>>0,T=T>>>0,L=L>>>0,[I,R,T,L]}f(fd,\"cryptBlock\");var kp=[0,1,2,4,8,16,32,64,128,27,54],Fe=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],a=[],i=[[],[],[],[]],s=[[],[],[],[]],c=0,p=0,_=0;_<256;++_){var S=p^p<<1^p<<2^p<<3^p<<4;S=S>>>8^S&255^99,r[c]=S,a[S]=c;var A=t[c],q=t[A],B=t[q],I=t[S]*257^S*16843008;i[0][c]=I<<24|I>>>8,i[1][c]=I<<16|I>>>16,i[2][c]=I<<8|I>>>24,i[3][c]=I,I=B*16843009^q*65537^A*257^c*16843008,s[0][S]=I<<24|I>>>8,s[1][S]=I<<16|I>>>16,s[2][S]=I<<8|I>>>24,s[3][S]=I,c===0?c=p=1:(c=A^t[t[t[B^A]]],p^=t[t[p]])}return{SBOX:r,INV_SBOX:a,SUB_MIX:i,INV_SUB_MIX:s}})();function pt(t){this._key=f0(t),this._reset()}f(pt,\"AES\");pt.blockSize=16;pt.keySize=256/8;pt.prototype.blockSize=pt.blockSize;pt.prototype.keySize=pt.keySize;pt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,a=(r+1)*4,i=[],s=0;s<e;s++)i[s]=t[s];for(s=e;s<a;s++){var c=i[s-1];s%e===0?(c=c<<8|c>>>24,c=Fe.SBOX[c>>>24]<<24|Fe.SBOX[c>>>16&255]<<16|Fe.SBOX[c>>>8&255]<<8|Fe.SBOX[c&255],c^=kp[s/e|0]<<24):e>6&&s%e===4&&(c=Fe.SBOX[c>>>24]<<24|Fe.SBOX[c>>>16&255]<<16|Fe.SBOX[c>>>8&255]<<8|Fe.SBOX[c&255]),i[s]=i[s-e]^c}for(var p=[],_=0;_<a;_++){var S=a-_,A=i[S-(_%4?0:4)];_<4||S<=4?p[_]=A:p[_]=Fe.INV_SUB_MIX[0][Fe.SBOX[A>>>24]]^Fe.INV_SUB_MIX[1][Fe.SBOX[A>>>16&255]]^Fe.INV_SUB_MIX[2][Fe.SBOX[A>>>8&255]]^Fe.INV_SUB_MIX[3][Fe.SBOX[A&255]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=p};pt.prototype.encryptBlockRaw=function(t){return t=f0(t),fd(t,this._keySchedule,Fe.SUB_MIX,Fe.SBOX,this._nRounds)};pt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=wf.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};pt.prototype.decryptBlock=function(t){t=f0(t);var e=t[1];t[1]=t[3],t[3]=e;var r=fd(t,this._invKeySchedule,Fe.INV_SUB_MIX,Fe.INV_SBOX,this._nRounds),a=wf.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a};pt.prototype.scrub=function(){a0(this._keySchedule),a0(this._invKeySchedule),a0(this._key)};nd.exports.AES=pt});var hd=k((m7,od)=>{M();var yi=xe().Buffer,Ip=yi.alloc(16,0);function Rp(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}f(Rp,\"toArray\");function sd(t){var e=yi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}f(sd,\"fromArray\");function Sa(t){this.h=t,this.state=yi.alloc(16,0),this.cache=yi.allocUnsafe(0)}f(Sa,\"GHASH\");Sa.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};Sa.prototype._multiply=function(){for(var t=Rp(this.h),e=[0,0,0,0],r,a,i,s=-1;++s<128;){for(a=(this.state[~~(s/8)]&1<<7-s%8)!==0,a&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),i=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,i&&(t[0]=t[0]^225<<24)}this.state=sd(e)};Sa.prototype.update=function(t){this.cache=yi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};Sa.prototype.final=function(t,e){return this.cache.length&&this.ghash(yi.concat([this.cache,Ip],16)),this.ghash(sd([0,t,0,e])),this.state};od.exports=Sa});var n0=k((_7,ud)=>{M();var Cp=Ma(),ft=xe().Buffer,dd=$t(),Dp=Se(),cd=hd(),Pp=mi(),Tp=Qn();function Np(t,e){var r=0;t.length!==e.length&&r++;for(var a=Math.min(t.length,e.length),i=0;i<a;++i)r+=t[i]^e[i];return r}f(Np,\"xorTest\");function Op(t,e,r){if(e.length===12)return t._finID=ft.concat([e,ft.from([0,0,0,1])]),ft.concat([e,ft.from([0,0,0,2])]);var a=new cd(r),i=e.length,s=i%16;a.update(e),s&&(s=16-s,a.update(ft.alloc(s,0))),a.update(ft.alloc(8,0));var c=i*8,p=ft.alloc(8);p.writeUIntBE(c,0,8),a.update(p),t._finID=a.state;var _=ft.from(t._finID);return Tp(_),_}f(Op,\"calcIv\");function Zr(t,e,r,a){dd.call(this);var i=ft.alloc(4,0);this._cipher=new Cp.AES(e);var s=this._cipher.encryptBlock(i);this._ghash=new cd(s),r=Op(this,r,s),this._prev=ft.from(r),this._cache=ft.allocUnsafe(0),this._secCache=ft.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}f(Zr,\"StreamCipher\");Dp(Zr,dd);Zr.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=ft.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};Zr.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error(\"Unsupported state or unable to authenticate data\");var t=Pp(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&Np(t,this._authTag))throw new Error(\"Unsupported state or unable to authenticate data\");this._authTag=t,this._cipher.scrub()};Zr.prototype.getAuthTag=f(function(){if(this._decrypt||!ft.isBuffer(this._authTag))throw new Error(\"Attempting to get auth tag in unsupported state\");return this._authTag},\"getAuthTag\");Zr.prototype.setAuthTag=f(function(e){if(!this._decrypt)throw new Error(\"Attempting to set auth tag in unsupported state\");this._authTag=e},\"setAuthTag\");Zr.prototype.setAAD=f(function(e){if(this._called)throw new Error(\"Attempting to set AAD in unsupported state\");this._ghash.update(e),this._alen+=e.length},\"setAAD\");ud.exports=Zr});var o0=k((M7,vd)=>{M();var Lp=Ma(),s0=xe().Buffer,ld=$t(),Up=Se();function xf(t,e,r,a){ld.call(this),this._cipher=new Lp.AES(e),this._prev=s0.from(r),this._cache=s0.allocUnsafe(0),this._secCache=s0.allocUnsafe(0),this._decrypt=a,this._mode=t}f(xf,\"StreamCipher\");Up(xf,ld);xf.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};xf.prototype._final=function(){this._cipher.scrub()};vd.exports=xf});var Aa=k((E7,pd)=>{M();var Xr=xe().Buffer,zp=tf();function Fp(t,e,r,a){if(Xr.isBuffer(t)||(t=Xr.from(t,\"binary\")),e&&(Xr.isBuffer(e)||(e=Xr.from(e,\"binary\")),e.length!==8))throw new RangeError(\"salt should be Buffer with 8 byte length\");for(var i=r/8,s=Xr.alloc(i),c=Xr.alloc(a||0),p=Xr.alloc(0);i>0||a>0;){var _=new zp;_.update(p),_.update(t),e&&_.update(e),p=_.digest();var S=0;if(i>0){var A=s.length-i;S=Math.min(i,p.length),p.copy(s,A,0,S),i-=S}if(S<p.length&&a>0){var q=c.length-a,B=Math.min(a,p.length-S);p.copy(c,q,S,S+B),a-=B}}return p.fill(0),{key:s,iv:c}}f(Fp,\"EVP_BytesToKey\");pd.exports=Fp});var gd=k(h0=>{M();var bd=_f(),Hp=n0(),er=xe().Buffer,Kp=o0(),md=$t(),jp=Ma(),Vp=Aa(),Wp=Se();function Ea(t,e,r){md.call(this),this._cache=new Mf,this._cipher=new jp.AES(e),this._prev=er.from(r),this._mode=t,this._autopadding=!0}f(Ea,\"Cipher\");Wp(Ea,md);Ea.prototype._update=function(t){this._cache.add(t);for(var e,r,a=[];e=this._cache.get();)r=this._mode.encrypt(this,e),a.push(r);return er.concat(a)};var Zp=er.alloc(16,16);Ea.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(Zp))throw this._cipher.scrub(),new Error(\"data not multiple of block length\")};Ea.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Mf(){this.cache=er.allocUnsafe(0)}f(Mf,\"Splitter\");Mf.prototype.add=function(t){this.cache=er.concat([this.cache,t])};Mf.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};Mf.prototype.flush=function(){for(var t=16-this.cache.length,e=er.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return er.concat([this.cache,e])};function yd(t,e,r){var a=bd[t.toLowerCase()];if(!a)throw new TypeError(\"invalid suite type\");if(typeof e==\"string\"&&(e=er.from(e)),e.length!==a.key/8)throw new TypeError(\"invalid key length \"+e.length);if(typeof r==\"string\"&&(r=er.from(r)),a.mode!==\"GCM\"&&r.length!==a.iv)throw new TypeError(\"invalid iv length \"+r.length);return a.type===\"stream\"?new Kp(a.module,e,r):a.type===\"auth\"?new Hp(a.module,e,r):new Ea(a.module,e,r)}f(yd,\"createCipheriv\");function Xp(t,e){var r=bd[t.toLowerCase()];if(!r)throw new TypeError(\"invalid suite type\");var a=Vp(e,!1,r.key,r.iv);return yd(t,a.key,a.iv)}f(Xp,\"createCipher\");h0.createCipheriv=yd;h0.createCipher=Xp});var Md=k(d0=>{M();var Gp=n0(),gi=xe().Buffer,_d=_f(),Jp=o0(),wd=$t(),Yp=Ma(),$p=Aa(),Qp=Se();function qa(t,e,r){wd.call(this),this._cache=new Sf,this._last=void 0,this._cipher=new Yp.AES(e),this._prev=gi.from(r),this._mode=t,this._autopadding=!0}f(qa,\"Decipher\");Qp(qa,wd);qa.prototype._update=function(t){this._cache.add(t);for(var e,r,a=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),a.push(r);return gi.concat(a)};qa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return eb(this._mode.decrypt(this,t));if(t)throw new Error(\"data not multiple of block length\")};qa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Sf(){this.cache=gi.allocUnsafe(0)}f(Sf,\"Splitter\");Sf.prototype.add=function(t){this.cache=gi.concat([this.cache,t])};Sf.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Sf.prototype.flush=function(){if(this.cache.length)return this.cache};function eb(t){var e=t[15];if(e<1||e>16)throw new Error(\"unable to decrypt data\");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error(\"unable to decrypt data\");if(e!==16)return t.slice(0,16-e)}f(eb,\"unpad\");function xd(t,e,r){var a=_d[t.toLowerCase()];if(!a)throw new TypeError(\"invalid suite type\");if(typeof r==\"string\"&&(r=gi.from(r)),a.mode!==\"GCM\"&&r.length!==a.iv)throw new TypeError(\"invalid iv length \"+r.length);if(typeof e==\"string\"&&(e=gi.from(e)),e.length!==a.key/8)throw new TypeError(\"invalid key length \"+e.length);return a.type===\"stream\"?new Jp(a.module,e,r,!0):a.type===\"auth\"?new Gp(a.module,e,r,!0):new qa(a.module,e,r)}f(xd,\"createDecipheriv\");function tb(t,e){var r=_d[t.toLowerCase()];if(!r)throw new TypeError(\"invalid suite type\");var a=$p(e,!1,r.key,r.iv);return xd(t,a.key,a.iv)}f(tb,\"createDecipher\");d0.createDecipher=tb;d0.createDecipheriv=xd});var Af=k(At=>{M();var Sd=gd(),Ad=Md(),rb=r0();function ib(){return Object.keys(rb)}f(ib,\"getCiphers\");At.createCipher=At.Cipher=Sd.createCipher;At.createCipheriv=At.Cipheriv=Sd.createCipheriv;At.createDecipher=At.Decipher=Ad.createDecipher;At.createDecipheriv=At.Decipheriv=Ad.createDecipheriv;At.listCiphers=At.getCiphers=ib});var Ed=k(tr=>{M();tr[\"des-ecb\"]={key:8,iv:0};tr[\"des-cbc\"]=tr.des={key:8,iv:8};tr[\"des-ede3-cbc\"]=tr.des3={key:24,iv:8};tr[\"des-ede3\"]={key:24,iv:0};tr[\"des-ede-cbc\"]={key:16,iv:8};tr[\"des-ede\"]={key:16,iv:0}});var Rd=k(Et=>{M();var qd=Fh(),c0=Af(),vr=_f(),rr=Ed(),Bd=Aa();function ab(t,e){t=t.toLowerCase();var r,a;if(vr[t])r=vr[t].key,a=vr[t].iv;else if(rr[t])r=rr[t].key*8,a=rr[t].iv;else throw new TypeError(\"invalid suite type\");var i=Bd(e,!1,r,a);return kd(t,i.key,i.iv)}f(ab,\"createCipher\");function fb(t,e){t=t.toLowerCase();var r,a;if(vr[t])r=vr[t].key,a=vr[t].iv;else if(rr[t])r=rr[t].key*8,a=rr[t].iv;else throw new TypeError(\"invalid suite type\");var i=Bd(e,!1,r,a);return Id(t,i.key,i.iv)}f(fb,\"createDecipher\");function kd(t,e,r){if(t=t.toLowerCase(),vr[t])return c0.createCipheriv(t,e,r);if(rr[t])return new qd({key:e,iv:r,mode:t});throw new TypeError(\"invalid suite type\")}f(kd,\"createCipheriv\");function Id(t,e,r){if(t=t.toLowerCase(),vr[t])return c0.createDecipheriv(t,e,r);if(rr[t])return new qd({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError(\"invalid suite type\")}f(Id,\"createDecipheriv\");function nb(){return Object.keys(rr).concat(c0.getCiphers())}f(nb,\"getCiphers\");Et.createCipher=Et.Cipher=ab;Et.createCipheriv=Et.Cipheriv=kd;Et.createDecipher=Et.Decipher=fb;Et.createDecipheriv=Et.Decipheriv=Id;Et.listCiphers=Et.getCiphers=nb});var je=k((Cd,u0)=>{M();(function(t,e){\"use strict\";function r(E,d){if(!E)throw new Error(d||\"Assertion failed\")}f(r,\"assert\");function a(E,d){E.super_=d;var y=f(function(){},\"TempCtor\");y.prototype=d.prototype,E.prototype=new y,E.prototype.constructor=E}f(a,\"inherits\");function i(E,d,y){if(i.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((d===\"le\"||d===\"be\")&&(y=d,d=10),this._init(E||0,d||10,y||\"be\"))}f(i,\"BN\"),typeof t==\"object\"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?s=window.Buffer:s=(cr(),hr(dr)).Buffer}catch{}i.isBN=f(function(d){return d instanceof i?!0:d!==null&&typeof d==\"object\"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},\"isBN\"),i.max=f(function(d,y){return d.cmp(y)>0?d:y},\"max\"),i.min=f(function(d,y){return d.cmp(y)<0?d:y},\"min\"),i.prototype._init=f(function(d,y,l){if(typeof d==\"number\")return this._initNumber(d,y,l);if(typeof d==\"object\")return this._initArray(d,y,l);y===\"hex\"&&(y=16),r(y===(y|0)&&y>=2&&y<=36),d=d.toString().replace(/\\s+/g,\"\");var n=0;d[0]===\"-\"&&(n++,this.negative=1),n<d.length&&(y===16?this._parseHex(d,n,l):(this._parseBase(d,y,n),l===\"le\"&&this._initArray(this.toArray(),y,l)))},\"init\"),i.prototype._initNumber=f(function(d,y,l){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[d&67108863],this.length=1):d<4503599627370496?(this.words=[d&67108863,d/67108864&67108863],this.length=2):(r(d<9007199254740992),this.words=[d&67108863,d/67108864&67108863,1],this.length=3),l===\"le\"&&this._initArray(this.toArray(),y,l)},\"_initNumber\"),i.prototype._initArray=f(function(d,y,l){if(r(typeof d.length==\"number\"),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h,v,m=0;if(l===\"be\")for(n=d.length-1,h=0;n>=0;n-=3)v=d[n]|d[n-1]<<8|d[n-2]<<16,this.words[h]|=v<<m&67108863,this.words[h+1]=v>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);else if(l===\"le\")for(n=0,h=0;n<d.length;n+=3)v=d[n]|d[n+1]<<8|d[n+2]<<16,this.words[h]|=v<<m&67108863,this.words[h+1]=v>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);return this.strip()},\"_initArray\");function c(E,d){var y=E.charCodeAt(d);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}f(c,\"parseHex4Bits\");function p(E,d,y){var l=c(E,y);return y-1>=d&&(l|=c(E,y-1)<<4),l}f(p,\"parseHexByte\"),i.prototype._parseHex=f(function(d,y,l){this.length=Math.ceil((d.length-y)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h=0,v=0,m;if(l===\"be\")for(n=d.length-1;n>=y;n-=2)m=p(d,y,n)<<h,this.words[v]|=m&67108863,h>=18?(h-=18,v+=1,this.words[v]|=m>>>26):h+=8;else{var b=d.length-y;for(n=b%2===0?y+1:y;n<d.length;n+=2)m=p(d,y,n)<<h,this.words[v]|=m&67108863,h>=18?(h-=18,v+=1,this.words[v]|=m>>>26):h+=8}this.strip()},\"_parseHex\");function _(E,d,y,l){for(var n=0,h=Math.min(E.length,y),v=d;v<h;v++){var m=E.charCodeAt(v)-48;n*=l,m>=49?n+=m-49+10:m>=17?n+=m-17+10:n+=m}return n}f(_,\"parseBase\"),i.prototype._parseBase=f(function(d,y,l){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=y)n++;n--,h=h/y|0;for(var v=d.length-l,m=v%n,b=Math.min(v,v-m)+l,o=0,g=l;g<b;g+=n)o=_(d,g,g+n,y),this.imuln(h),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var w=1;for(o=_(d,g,d.length,y),g=0;g<m;g++)w*=y;this.imuln(w),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},\"_parseBase\"),i.prototype.copy=f(function(d){d.words=new Array(this.length);for(var y=0;y<this.length;y++)d.words[y]=this.words[y];d.length=this.length,d.negative=this.negative,d.red=this.red},\"copy\"),i.prototype.clone=f(function(){var d=new i(null);return this.copy(d),d},\"clone\"),i.prototype._expand=f(function(d){for(;this.length<d;)this.words[this.length++]=0;return this},\"_expand\"),i.prototype.strip=f(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},\"strip\"),i.prototype._normSign=f(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},\"_normSign\"),i.prototype.inspect=f(function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"},\"inspect\");var S=[\"\",\"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\"],A=[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],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=f(function(d,y){d=d||10,y=y|0||1;var l;if(d===16||d===\"hex\"){l=\"\";for(var n=0,h=0,v=0;v<this.length;v++){var m=this.words[v],b=((m<<n|h)&16777215).toString(16);h=m>>>24-n&16777215,n+=2,n>=26&&(n-=26,v--),h!==0||v!==this.length-1?l=S[6-b.length]+b+l:l=b+l}for(h!==0&&(l=h.toString(16)+l);l.length%y!==0;)l=\"0\"+l;return this.negative!==0&&(l=\"-\"+l),l}if(d===(d|0)&&d>=2&&d<=36){var o=A[d],g=q[d];l=\"\";var w=this.clone();for(w.negative=0;!w.isZero();){var u=w.modn(g).toString(d);w=w.idivn(g),w.isZero()?l=u+l:l=S[o-u.length]+u+l}for(this.isZero()&&(l=\"0\"+l);l.length%y!==0;)l=\"0\"+l;return this.negative!==0&&(l=\"-\"+l),l}r(!1,\"Base should be between 2 and 36\")},\"toString\"),i.prototype.toNumber=f(function(){var d=this.words[0];return this.length===2?d+=this.words[1]*67108864:this.length===3&&this.words[2]===1?d+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-d:d},\"toNumber\"),i.prototype.toJSON=f(function(){return this.toString(16)},\"toJSON\"),i.prototype.toBuffer=f(function(d,y){return r(typeof s<\"u\"),this.toArrayLike(s,d,y)},\"toBuffer\"),i.prototype.toArray=f(function(d,y){return this.toArrayLike(Array,d,y)},\"toArray\"),i.prototype.toArrayLike=f(function(d,y,l){var n=this.byteLength(),h=l||Math.max(1,n);r(n<=h,\"byte array longer than desired length\"),r(h>0,\"Requested array length <= 0\"),this.strip();var v=y===\"le\",m=new d(h),b,o,g=this.clone();if(v){for(o=0;!g.isZero();o++)b=g.andln(255),g.iushrn(8),m[o]=b;for(;o<h;o++)m[o]=0}else{for(o=0;o<h-n;o++)m[o]=0;for(o=0;!g.isZero();o++)b=g.andln(255),g.iushrn(8),m[h-o-1]=b}return m},\"toArrayLike\"),Math.clz32?i.prototype._countBits=f(function(d){return 32-Math.clz32(d)},\"_countBits\"):i.prototype._countBits=f(function(d){var y=d,l=0;return y>=4096&&(l+=13,y>>>=13),y>=64&&(l+=7,y>>>=7),y>=8&&(l+=4,y>>>=4),y>=2&&(l+=2,y>>>=2),l+y},\"_countBits\"),i.prototype._zeroBits=f(function(d){if(d===0)return 26;var y=d,l=0;return(y&8191)===0&&(l+=13,y>>>=13),(y&127)===0&&(l+=7,y>>>=7),(y&15)===0&&(l+=4,y>>>=4),(y&3)===0&&(l+=2,y>>>=2),(y&1)===0&&l++,l},\"_zeroBits\"),i.prototype.bitLength=f(function(){var d=this.words[this.length-1],y=this._countBits(d);return(this.length-1)*26+y},\"bitLength\");function B(E){for(var d=new Array(E.bitLength()),y=0;y<d.length;y++){var l=y/26|0,n=y%26;d[y]=(E.words[l]&1<<n)>>>n}return d}f(B,\"toBitArray\"),i.prototype.zeroBits=f(function(){if(this.isZero())return 0;for(var d=0,y=0;y<this.length;y++){var l=this._zeroBits(this.words[y]);if(d+=l,l!==26)break}return d},\"zeroBits\"),i.prototype.byteLength=f(function(){return Math.ceil(this.bitLength()/8)},\"byteLength\"),i.prototype.toTwos=f(function(d){return this.negative!==0?this.abs().inotn(d).iaddn(1):this.clone()},\"toTwos\"),i.prototype.fromTwos=f(function(d){return this.testn(d-1)?this.notn(d).iaddn(1).ineg():this.clone()},\"fromTwos\"),i.prototype.isNeg=f(function(){return this.negative!==0},\"isNeg\"),i.prototype.neg=f(function(){return this.clone().ineg()},\"neg\"),i.prototype.ineg=f(function(){return this.isZero()||(this.negative^=1),this},\"ineg\"),i.prototype.iuor=f(function(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var y=0;y<d.length;y++)this.words[y]=this.words[y]|d.words[y];return this.strip()},\"iuor\"),i.prototype.ior=f(function(d){return r((this.negative|d.negative)===0),this.iuor(d)},\"ior\"),i.prototype.or=f(function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},\"or\"),i.prototype.uor=f(function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},\"uor\"),i.prototype.iuand=f(function(d){var y;this.length>d.length?y=d:y=this;for(var l=0;l<y.length;l++)this.words[l]=this.words[l]&d.words[l];return this.length=y.length,this.strip()},\"iuand\"),i.prototype.iand=f(function(d){return r((this.negative|d.negative)===0),this.iuand(d)},\"iand\"),i.prototype.and=f(function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},\"and\"),i.prototype.uand=f(function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},\"uand\"),i.prototype.iuxor=f(function(d){var y,l;this.length>d.length?(y=this,l=d):(y=d,l=this);for(var n=0;n<l.length;n++)this.words[n]=y.words[n]^l.words[n];if(this!==y)for(;n<y.length;n++)this.words[n]=y.words[n];return this.length=y.length,this.strip()},\"iuxor\"),i.prototype.ixor=f(function(d){return r((this.negative|d.negative)===0),this.iuxor(d)},\"ixor\"),i.prototype.xor=f(function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},\"xor\"),i.prototype.uxor=f(function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},\"uxor\"),i.prototype.inotn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=Math.ceil(d/26)|0,l=d%26;this._expand(y),l>0&&y--;for(var n=0;n<y;n++)this.words[n]=~this.words[n]&67108863;for(l>0&&(this.words[n]=~this.words[n]&67108863>>26-l,n++);n<this.length;n++)this.words[n]=0;return this.strip()},\"inotn\"),i.prototype.notn=f(function(d){return this.clone().inotn(d)},\"notn\"),i.prototype.setn=f(function(d,y){r(typeof d==\"number\"&&d>=0);var l=d/26|0,n=d%26;return this._expand(l+1),y?this.words[l]=this.words[l]|1<<n:this.words[l]=this.words[l]&~(1<<n),this.strip()},\"setn\"),i.prototype.iadd=f(function(d){var y;if(this.negative!==0&&d.negative===0)return this.negative=0,y=this.isub(d),this.negative^=1,this._normSign();if(this.negative===0&&d.negative!==0)return d.negative=0,y=this.isub(d),d.negative=1,y._normSign();var l,n;this.length>d.length?(l=this,n=d):(l=d,n=this);for(var h=0,v=0;v<n.length;v++)y=(l.words[v]|0)+(n.words[v]|0)+h,this.words[v]=y&67108863,h=y>>>26;for(;h!==0&&v<l.length;v++)y=(l.words[v]|0)+h,this.words[v]=y&67108863,h=y>>>26;if(this.length=l.length,h!==0)this.words[this.length]=h,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},\"iadd\"),i.prototype.add=f(function(d){var y;return d.negative!==0&&this.negative===0?(d.negative=0,y=this.sub(d),d.negative^=1,y):d.negative===0&&this.negative!==0?(this.negative=0,y=d.sub(this),this.negative=1,y):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},\"add\"),i.prototype.isub=f(function(d){if(d.negative!==0){d.negative=0;var y=this.iadd(d);return d.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,h;l>0?(n=this,h=d):(n=d,h=this);for(var v=0,m=0;m<h.length;m++)y=(n.words[m]|0)-(h.words[m]|0)+v,v=y>>26,this.words[m]=y&67108863;for(;v!==0&&m<n.length;m++)y=(n.words[m]|0)+v,v=y>>26,this.words[m]=y&67108863;if(v===0&&m<n.length&&n!==this)for(;m<n.length;m++)this.words[m]=n.words[m];return this.length=Math.max(this.length,m),n!==this&&(this.negative=1),this.strip()},\"isub\"),i.prototype.sub=f(function(d){return this.clone().isub(d)},\"sub\");function I(E,d,y){y.negative=d.negative^E.negative;var l=E.length+d.length|0;y.length=l,l=l-1|0;var n=E.words[0]|0,h=d.words[0]|0,v=n*h,m=v&67108863,b=v/67108864|0;y.words[0]=m;for(var o=1;o<l;o++){for(var g=b>>>26,w=b&67108863,u=Math.min(o,d.length-1),x=Math.max(0,o-E.length+1);x<=u;x++){var C=o-x|0;n=E.words[C]|0,h=d.words[x]|0,v=n*h+w,g+=v/67108864|0,w=v&67108863}y.words[o]=w|0,b=g|0}return b!==0?y.words[o]=b|0:y.length--,y.strip()}f(I,\"smallMulTo\");var R=f(function(d,y,l){var n=d.words,h=y.words,v=l.words,m=0,b,o,g,w=n[0]|0,u=w&8191,x=w>>>13,C=n[1]|0,P=C&8191,D=C>>>13,U=n[2]|0,O=U&8191,F=U>>>13,xt=n[3]|0,H=xt&8191,K=xt>>>13,Li=n[4]|0,j=Li&8191,V=Li>>>13,Ui=n[5]|0,W=Ui&8191,Z=Ui>>>13,zi=n[6]|0,X=zi&8191,G=zi>>>13,Fi=n[7]|0,J=Fi&8191,Y=Fi>>>13,Hi=n[8]|0,$=Hi&8191,Q=Hi>>>13,Ki=n[9]|0,ee=Ki&8191,te=Ki>>>13,ji=h[0]|0,re=ji&8191,ie=ji>>>13,Vi=h[1]|0,ae=Vi&8191,fe=Vi>>>13,Wi=h[2]|0,ne=Wi&8191,se=Wi>>>13,Zi=h[3]|0,oe=Zi&8191,he=Zi>>>13,Xi=h[4]|0,de=Xi&8191,ce=Xi>>>13,Gi=h[5]|0,ue=Gi&8191,le=Gi>>>13,Ji=h[6]|0,ve=Ji&8191,pe=Ji>>>13,Yi=h[7]|0,be=Yi&8191,me=Yi>>>13,$i=h[8]|0,ye=$i&8191,ge=$i>>>13,Qi=h[9]|0,_e=Qi&8191,we=Qi>>>13;l.negative=d.negative^y.negative,l.length=19,b=Math.imul(u,re),o=Math.imul(u,ie),o=o+Math.imul(x,re)|0,g=Math.imul(x,ie);var oi=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(oi>>>26)|0,oi&=67108863,b=Math.imul(P,re),o=Math.imul(P,ie),o=o+Math.imul(D,re)|0,g=Math.imul(D,ie),b=b+Math.imul(u,ae)|0,o=o+Math.imul(u,fe)|0,o=o+Math.imul(x,ae)|0,g=g+Math.imul(x,fe)|0;var Te=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,b=Math.imul(O,re),o=Math.imul(O,ie),o=o+Math.imul(F,re)|0,g=Math.imul(F,ie),b=b+Math.imul(P,ae)|0,o=o+Math.imul(P,fe)|0,o=o+Math.imul(D,ae)|0,g=g+Math.imul(D,fe)|0,b=b+Math.imul(u,ne)|0,o=o+Math.imul(u,se)|0,o=o+Math.imul(x,ne)|0,g=g+Math.imul(x,se)|0;var Ne=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,b=Math.imul(H,re),o=Math.imul(H,ie),o=o+Math.imul(K,re)|0,g=Math.imul(K,ie),b=b+Math.imul(O,ae)|0,o=o+Math.imul(O,fe)|0,o=o+Math.imul(F,ae)|0,g=g+Math.imul(F,fe)|0,b=b+Math.imul(P,ne)|0,o=o+Math.imul(P,se)|0,o=o+Math.imul(D,ne)|0,g=g+Math.imul(D,se)|0,b=b+Math.imul(u,oe)|0,o=o+Math.imul(u,he)|0,o=o+Math.imul(x,oe)|0,g=g+Math.imul(x,he)|0;var wr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(j,re),o=Math.imul(j,ie),o=o+Math.imul(V,re)|0,g=Math.imul(V,ie),b=b+Math.imul(H,ae)|0,o=o+Math.imul(H,fe)|0,o=o+Math.imul(K,ae)|0,g=g+Math.imul(K,fe)|0,b=b+Math.imul(O,ne)|0,o=o+Math.imul(O,se)|0,o=o+Math.imul(F,ne)|0,g=g+Math.imul(F,se)|0,b=b+Math.imul(P,oe)|0,o=o+Math.imul(P,he)|0,o=o+Math.imul(D,oe)|0,g=g+Math.imul(D,he)|0,b=b+Math.imul(u,de)|0,o=o+Math.imul(u,ce)|0,o=o+Math.imul(x,de)|0,g=g+Math.imul(x,ce)|0;var xr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,b=Math.imul(W,re),o=Math.imul(W,ie),o=o+Math.imul(Z,re)|0,g=Math.imul(Z,ie),b=b+Math.imul(j,ae)|0,o=o+Math.imul(j,fe)|0,o=o+Math.imul(V,ae)|0,g=g+Math.imul(V,fe)|0,b=b+Math.imul(H,ne)|0,o=o+Math.imul(H,se)|0,o=o+Math.imul(K,ne)|0,g=g+Math.imul(K,se)|0,b=b+Math.imul(O,oe)|0,o=o+Math.imul(O,he)|0,o=o+Math.imul(F,oe)|0,g=g+Math.imul(F,he)|0,b=b+Math.imul(P,de)|0,o=o+Math.imul(P,ce)|0,o=o+Math.imul(D,de)|0,g=g+Math.imul(D,ce)|0,b=b+Math.imul(u,ue)|0,o=o+Math.imul(u,le)|0,o=o+Math.imul(x,ue)|0,g=g+Math.imul(x,le)|0;var Mr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,b=Math.imul(X,re),o=Math.imul(X,ie),o=o+Math.imul(G,re)|0,g=Math.imul(G,ie),b=b+Math.imul(W,ae)|0,o=o+Math.imul(W,fe)|0,o=o+Math.imul(Z,ae)|0,g=g+Math.imul(Z,fe)|0,b=b+Math.imul(j,ne)|0,o=o+Math.imul(j,se)|0,o=o+Math.imul(V,ne)|0,g=g+Math.imul(V,se)|0,b=b+Math.imul(H,oe)|0,o=o+Math.imul(H,he)|0,o=o+Math.imul(K,oe)|0,g=g+Math.imul(K,he)|0,b=b+Math.imul(O,de)|0,o=o+Math.imul(O,ce)|0,o=o+Math.imul(F,de)|0,g=g+Math.imul(F,ce)|0,b=b+Math.imul(P,ue)|0,o=o+Math.imul(P,le)|0,o=o+Math.imul(D,ue)|0,g=g+Math.imul(D,le)|0,b=b+Math.imul(u,ve)|0,o=o+Math.imul(u,pe)|0,o=o+Math.imul(x,ve)|0,g=g+Math.imul(x,pe)|0;var Sr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(J,re),o=Math.imul(J,ie),o=o+Math.imul(Y,re)|0,g=Math.imul(Y,ie),b=b+Math.imul(X,ae)|0,o=o+Math.imul(X,fe)|0,o=o+Math.imul(G,ae)|0,g=g+Math.imul(G,fe)|0,b=b+Math.imul(W,ne)|0,o=o+Math.imul(W,se)|0,o=o+Math.imul(Z,ne)|0,g=g+Math.imul(Z,se)|0,b=b+Math.imul(j,oe)|0,o=o+Math.imul(j,he)|0,o=o+Math.imul(V,oe)|0,g=g+Math.imul(V,he)|0,b=b+Math.imul(H,de)|0,o=o+Math.imul(H,ce)|0,o=o+Math.imul(K,de)|0,g=g+Math.imul(K,ce)|0,b=b+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,o=o+Math.imul(F,ue)|0,g=g+Math.imul(F,le)|0,b=b+Math.imul(P,ve)|0,o=o+Math.imul(P,pe)|0,o=o+Math.imul(D,ve)|0,g=g+Math.imul(D,pe)|0,b=b+Math.imul(u,be)|0,o=o+Math.imul(u,me)|0,o=o+Math.imul(x,be)|0,g=g+Math.imul(x,me)|0;var Ar=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul($,re),o=Math.imul($,ie),o=o+Math.imul(Q,re)|0,g=Math.imul(Q,ie),b=b+Math.imul(J,ae)|0,o=o+Math.imul(J,fe)|0,o=o+Math.imul(Y,ae)|0,g=g+Math.imul(Y,fe)|0,b=b+Math.imul(X,ne)|0,o=o+Math.imul(X,se)|0,o=o+Math.imul(G,ne)|0,g=g+Math.imul(G,se)|0,b=b+Math.imul(W,oe)|0,o=o+Math.imul(W,he)|0,o=o+Math.imul(Z,oe)|0,g=g+Math.imul(Z,he)|0,b=b+Math.imul(j,de)|0,o=o+Math.imul(j,ce)|0,o=o+Math.imul(V,de)|0,g=g+Math.imul(V,ce)|0,b=b+Math.imul(H,ue)|0,o=o+Math.imul(H,le)|0,o=o+Math.imul(K,ue)|0,g=g+Math.imul(K,le)|0,b=b+Math.imul(O,ve)|0,o=o+Math.imul(O,pe)|0,o=o+Math.imul(F,ve)|0,g=g+Math.imul(F,pe)|0,b=b+Math.imul(P,be)|0,o=o+Math.imul(P,me)|0,o=o+Math.imul(D,be)|0,g=g+Math.imul(D,me)|0,b=b+Math.imul(u,ye)|0,o=o+Math.imul(u,ge)|0,o=o+Math.imul(x,ye)|0,g=g+Math.imul(x,ge)|0;var Er=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Er>>>26)|0,Er&=67108863,b=Math.imul(ee,re),o=Math.imul(ee,ie),o=o+Math.imul(te,re)|0,g=Math.imul(te,ie),b=b+Math.imul($,ae)|0,o=o+Math.imul($,fe)|0,o=o+Math.imul(Q,ae)|0,g=g+Math.imul(Q,fe)|0,b=b+Math.imul(J,ne)|0,o=o+Math.imul(J,se)|0,o=o+Math.imul(Y,ne)|0,g=g+Math.imul(Y,se)|0,b=b+Math.imul(X,oe)|0,o=o+Math.imul(X,he)|0,o=o+Math.imul(G,oe)|0,g=g+Math.imul(G,he)|0,b=b+Math.imul(W,de)|0,o=o+Math.imul(W,ce)|0,o=o+Math.imul(Z,de)|0,g=g+Math.imul(Z,ce)|0,b=b+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,o=o+Math.imul(V,ue)|0,g=g+Math.imul(V,le)|0,b=b+Math.imul(H,ve)|0,o=o+Math.imul(H,pe)|0,o=o+Math.imul(K,ve)|0,g=g+Math.imul(K,pe)|0,b=b+Math.imul(O,be)|0,o=o+Math.imul(O,me)|0,o=o+Math.imul(F,be)|0,g=g+Math.imul(F,me)|0,b=b+Math.imul(P,ye)|0,o=o+Math.imul(P,ge)|0,o=o+Math.imul(D,ye)|0,g=g+Math.imul(D,ge)|0,b=b+Math.imul(u,_e)|0,o=o+Math.imul(u,we)|0,o=o+Math.imul(x,_e)|0,g=g+Math.imul(x,we)|0;var qr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(qr>>>26)|0,qr&=67108863,b=Math.imul(ee,ae),o=Math.imul(ee,fe),o=o+Math.imul(te,ae)|0,g=Math.imul(te,fe),b=b+Math.imul($,ne)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(Q,ne)|0,g=g+Math.imul(Q,se)|0,b=b+Math.imul(J,oe)|0,o=o+Math.imul(J,he)|0,o=o+Math.imul(Y,oe)|0,g=g+Math.imul(Y,he)|0,b=b+Math.imul(X,de)|0,o=o+Math.imul(X,ce)|0,o=o+Math.imul(G,de)|0,g=g+Math.imul(G,ce)|0,b=b+Math.imul(W,ue)|0,o=o+Math.imul(W,le)|0,o=o+Math.imul(Z,ue)|0,g=g+Math.imul(Z,le)|0,b=b+Math.imul(j,ve)|0,o=o+Math.imul(j,pe)|0,o=o+Math.imul(V,ve)|0,g=g+Math.imul(V,pe)|0,b=b+Math.imul(H,be)|0,o=o+Math.imul(H,me)|0,o=o+Math.imul(K,be)|0,g=g+Math.imul(K,me)|0,b=b+Math.imul(O,ye)|0,o=o+Math.imul(O,ge)|0,o=o+Math.imul(F,ye)|0,g=g+Math.imul(F,ge)|0,b=b+Math.imul(P,_e)|0,o=o+Math.imul(P,we)|0,o=o+Math.imul(D,_e)|0,g=g+Math.imul(D,we)|0;var Br=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Br>>>26)|0,Br&=67108863,b=Math.imul(ee,ne),o=Math.imul(ee,se),o=o+Math.imul(te,ne)|0,g=Math.imul(te,se),b=b+Math.imul($,oe)|0,o=o+Math.imul($,he)|0,o=o+Math.imul(Q,oe)|0,g=g+Math.imul(Q,he)|0,b=b+Math.imul(J,de)|0,o=o+Math.imul(J,ce)|0,o=o+Math.imul(Y,de)|0,g=g+Math.imul(Y,ce)|0,b=b+Math.imul(X,ue)|0,o=o+Math.imul(X,le)|0,o=o+Math.imul(G,ue)|0,g=g+Math.imul(G,le)|0,b=b+Math.imul(W,ve)|0,o=o+Math.imul(W,pe)|0,o=o+Math.imul(Z,ve)|0,g=g+Math.imul(Z,pe)|0,b=b+Math.imul(j,be)|0,o=o+Math.imul(j,me)|0,o=o+Math.imul(V,be)|0,g=g+Math.imul(V,me)|0,b=b+Math.imul(H,ye)|0,o=o+Math.imul(H,ge)|0,o=o+Math.imul(K,ye)|0,g=g+Math.imul(K,ge)|0,b=b+Math.imul(O,_e)|0,o=o+Math.imul(O,we)|0,o=o+Math.imul(F,_e)|0,g=g+Math.imul(F,we)|0;var kr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(ee,oe),o=Math.imul(ee,he),o=o+Math.imul(te,oe)|0,g=Math.imul(te,he),b=b+Math.imul($,de)|0,o=o+Math.imul($,ce)|0,o=o+Math.imul(Q,de)|0,g=g+Math.imul(Q,ce)|0,b=b+Math.imul(J,ue)|0,o=o+Math.imul(J,le)|0,o=o+Math.imul(Y,ue)|0,g=g+Math.imul(Y,le)|0,b=b+Math.imul(X,ve)|0,o=o+Math.imul(X,pe)|0,o=o+Math.imul(G,ve)|0,g=g+Math.imul(G,pe)|0,b=b+Math.imul(W,be)|0,o=o+Math.imul(W,me)|0,o=o+Math.imul(Z,be)|0,g=g+Math.imul(Z,me)|0,b=b+Math.imul(j,ye)|0,o=o+Math.imul(j,ge)|0,o=o+Math.imul(V,ye)|0,g=g+Math.imul(V,ge)|0,b=b+Math.imul(H,_e)|0,o=o+Math.imul(H,we)|0,o=o+Math.imul(K,_e)|0,g=g+Math.imul(K,we)|0;var Ir=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(ee,de),o=Math.imul(ee,ce),o=o+Math.imul(te,de)|0,g=Math.imul(te,ce),b=b+Math.imul($,ue)|0,o=o+Math.imul($,le)|0,o=o+Math.imul(Q,ue)|0,g=g+Math.imul(Q,le)|0,b=b+Math.imul(J,ve)|0,o=o+Math.imul(J,pe)|0,o=o+Math.imul(Y,ve)|0,g=g+Math.imul(Y,pe)|0,b=b+Math.imul(X,be)|0,o=o+Math.imul(X,me)|0,o=o+Math.imul(G,be)|0,g=g+Math.imul(G,me)|0,b=b+Math.imul(W,ye)|0,o=o+Math.imul(W,ge)|0,o=o+Math.imul(Z,ye)|0,g=g+Math.imul(Z,ge)|0,b=b+Math.imul(j,_e)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(V,_e)|0,g=g+Math.imul(V,we)|0;var Rr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(ee,ue),o=Math.imul(ee,le),o=o+Math.imul(te,ue)|0,g=Math.imul(te,le),b=b+Math.imul($,ve)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(Q,ve)|0,g=g+Math.imul(Q,pe)|0,b=b+Math.imul(J,be)|0,o=o+Math.imul(J,me)|0,o=o+Math.imul(Y,be)|0,g=g+Math.imul(Y,me)|0,b=b+Math.imul(X,ye)|0,o=o+Math.imul(X,ge)|0,o=o+Math.imul(G,ye)|0,g=g+Math.imul(G,ge)|0,b=b+Math.imul(W,_e)|0,o=o+Math.imul(W,we)|0,o=o+Math.imul(Z,_e)|0,g=g+Math.imul(Z,we)|0;var Cr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(ee,ve),o=Math.imul(ee,pe),o=o+Math.imul(te,ve)|0,g=Math.imul(te,pe),b=b+Math.imul($,be)|0,o=o+Math.imul($,me)|0,o=o+Math.imul(Q,be)|0,g=g+Math.imul(Q,me)|0,b=b+Math.imul(J,ye)|0,o=o+Math.imul(J,ge)|0,o=o+Math.imul(Y,ye)|0,g=g+Math.imul(Y,ge)|0,b=b+Math.imul(X,_e)|0,o=o+Math.imul(X,we)|0,o=o+Math.imul(G,_e)|0,g=g+Math.imul(G,we)|0;var Dr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,b=Math.imul(ee,be),o=Math.imul(ee,me),o=o+Math.imul(te,be)|0,g=Math.imul(te,me),b=b+Math.imul($,ye)|0,o=o+Math.imul($,ge)|0,o=o+Math.imul(Q,ye)|0,g=g+Math.imul(Q,ge)|0,b=b+Math.imul(J,_e)|0,o=o+Math.imul(J,we)|0,o=o+Math.imul(Y,_e)|0,g=g+Math.imul(Y,we)|0;var Pr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,b=Math.imul(ee,ye),o=Math.imul(ee,ge),o=o+Math.imul(te,ye)|0,g=Math.imul(te,ge),b=b+Math.imul($,_e)|0,o=o+Math.imul($,we)|0,o=o+Math.imul(Q,_e)|0,g=g+Math.imul(Q,we)|0;var Tr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(ee,_e),o=Math.imul(ee,we),o=o+Math.imul(te,_e)|0,g=Math.imul(te,we);var Nr=(m+b|0)+((o&8191)<<13)|0;return m=(g+(o>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,v[0]=oi,v[1]=Te,v[2]=Ne,v[3]=wr,v[4]=xr,v[5]=Mr,v[6]=Sr,v[7]=Ar,v[8]=Er,v[9]=qr,v[10]=Br,v[11]=kr,v[12]=Ir,v[13]=Rr,v[14]=Cr,v[15]=Dr,v[16]=Pr,v[17]=Tr,v[18]=Nr,m!==0&&(v[19]=m,l.length++),l},\"comb10MulTo\");Math.imul||(R=I);function T(E,d,y){y.negative=d.negative^E.negative,y.length=E.length+d.length;for(var l=0,n=0,h=0;h<y.length-1;h++){var v=n;n=0;for(var m=l&67108863,b=Math.min(h,d.length-1),o=Math.max(0,h-E.length+1);o<=b;o++){var g=h-o,w=E.words[g]|0,u=d.words[o]|0,x=w*u,C=x&67108863;v=v+(x/67108864|0)|0,C=C+m|0,m=C&67108863,v=v+(C>>>26)|0,n+=v>>>26,v&=67108863}y.words[h]=m,l=v,v=n}return l!==0?y.words[h]=l:y.length--,y.strip()}f(T,\"bigMulTo\");function L(E,d,y){var l=new N;return l.mulp(E,d,y)}f(L,\"jumboMulTo\"),i.prototype.mulTo=f(function(d,y){var l,n=this.length+d.length;return this.length===10&&d.length===10?l=R(this,d,y):n<63?l=I(this,d,y):n<1024?l=T(this,d,y):l=L(this,d,y),l},\"mulTo\");function N(E,d){this.x=E,this.y=d}f(N,\"FFTM\"),N.prototype.makeRBT=f(function(d){for(var y=new Array(d),l=i.prototype._countBits(d)-1,n=0;n<d;n++)y[n]=this.revBin(n,l,d);return y},\"makeRBT\"),N.prototype.revBin=f(function(d,y,l){if(d===0||d===l-1)return d;for(var n=0,h=0;h<y;h++)n|=(d&1)<<y-h-1,d>>=1;return n},\"revBin\"),N.prototype.permute=f(function(d,y,l,n,h,v){for(var m=0;m<v;m++)n[m]=y[d[m]],h[m]=l[d[m]]},\"permute\"),N.prototype.transform=f(function(d,y,l,n,h,v){this.permute(v,d,y,l,n,h);for(var m=1;m<h;m<<=1)for(var b=m<<1,o=Math.cos(2*Math.PI/b),g=Math.sin(2*Math.PI/b),w=0;w<h;w+=b)for(var u=o,x=g,C=0;C<m;C++){var P=l[w+C],D=n[w+C],U=l[w+C+m],O=n[w+C+m],F=u*U-x*O;O=u*O+x*U,U=F,l[w+C]=P+U,n[w+C]=D+O,l[w+C+m]=P-U,n[w+C+m]=D-O,C!==b&&(F=o*u-g*x,x=o*x+g*u,u=F)}},\"transform\"),N.prototype.guessLen13b=f(function(d,y){var l=Math.max(y,d)|1,n=l&1,h=0;for(l=l/2|0;l;l=l>>>1)h++;return 1<<h+1+n},\"guessLen13b\"),N.prototype.conjugate=f(function(d,y,l){if(!(l<=1))for(var n=0;n<l/2;n++){var h=d[n];d[n]=d[l-n-1],d[l-n-1]=h,h=y[n],y[n]=-y[l-n-1],y[l-n-1]=-h}},\"conjugate\"),N.prototype.normalize13b=f(function(d,y){for(var l=0,n=0;n<y/2;n++){var h=Math.round(d[2*n+1]/y)*8192+Math.round(d[2*n]/y)+l;d[n]=h&67108863,h<67108864?l=0:l=h/67108864|0}return d},\"normalize13b\"),N.prototype.convert13b=f(function(d,y,l,n){for(var h=0,v=0;v<y;v++)h=h+(d[v]|0),l[2*v]=h&8191,h=h>>>13,l[2*v+1]=h&8191,h=h>>>13;for(v=2*y;v<n;++v)l[v]=0;r(h===0),r((h&-8192)===0)},\"convert13b\"),N.prototype.stub=f(function(d){for(var y=new Array(d),l=0;l<d;l++)y[l]=0;return y},\"stub\"),N.prototype.mulp=f(function(d,y,l){var n=2*this.guessLen13b(d.length,y.length),h=this.makeRBT(n),v=this.stub(n),m=new Array(n),b=new Array(n),o=new Array(n),g=new Array(n),w=new Array(n),u=new Array(n),x=l.words;x.length=n,this.convert13b(d.words,d.length,m,n),this.convert13b(y.words,y.length,g,n),this.transform(m,v,b,o,n,h),this.transform(g,v,w,u,n,h);for(var C=0;C<n;C++){var P=b[C]*w[C]-o[C]*u[C];o[C]=b[C]*u[C]+o[C]*w[C],b[C]=P}return this.conjugate(b,o,n),this.transform(b,o,x,v,n,h),this.conjugate(x,v,n),this.normalize13b(x,n),l.negative=d.negative^y.negative,l.length=d.length+y.length,l.strip()},\"mulp\"),i.prototype.mul=f(function(d){var y=new i(null);return y.words=new Array(this.length+d.length),this.mulTo(d,y)},\"mul\"),i.prototype.mulf=f(function(d){var y=new i(null);return y.words=new Array(this.length+d.length),L(this,d,y)},\"mulf\"),i.prototype.imul=f(function(d){return this.clone().mulTo(d,this)},\"imul\"),i.prototype.imuln=f(function(d){r(typeof d==\"number\"),r(d<67108864);for(var y=0,l=0;l<this.length;l++){var n=(this.words[l]|0)*d,h=(n&67108863)+(y&67108863);y>>=26,y+=n/67108864|0,y+=h>>>26,this.words[l]=h&67108863}return y!==0&&(this.words[l]=y,this.length++),d===0&&(this.length=1,this._normSign()),this},\"imuln\"),i.prototype.muln=f(function(d){return this.clone().imuln(d)},\"muln\"),i.prototype.sqr=f(function(){return this.mul(this)},\"sqr\"),i.prototype.isqr=f(function(){return this.imul(this.clone())},\"isqr\"),i.prototype.pow=f(function(d){var y=B(d);if(y.length===0)return new i(1);for(var l=this,n=0;n<y.length&&y[n]===0;n++,l=l.sqr());if(++n<y.length)for(var h=l.sqr();n<y.length;n++,h=h.sqr())y[n]!==0&&(l=l.mul(h));return l},\"pow\"),i.prototype.iushln=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26,n=67108863>>>26-y<<26-y,h;if(y!==0){var v=0;for(h=0;h<this.length;h++){var m=this.words[h]&n,b=(this.words[h]|0)-m<<y;this.words[h]=b|v,v=m>>>26-y}v&&(this.words[h]=v,this.length++)}if(l!==0){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h<l;h++)this.words[h]=0;this.length+=l}return this.strip()},\"iushln\"),i.prototype.ishln=f(function(d){return r(this.negative===0),this.iushln(d)},\"ishln\"),i.prototype.iushrn=f(function(d,y,l){r(typeof d==\"number\"&&d>=0);var n;y?n=(y-y%26)/26:n=0;var h=d%26,v=Math.min((d-h)/26,this.length),m=67108863^67108863>>>h<<h,b=l;if(n-=v,n=Math.max(0,n),b){for(var o=0;o<v;o++)b.words[o]=this.words[o];b.length=v}if(v!==0)if(this.length>v)for(this.length-=v,o=0;o<this.length;o++)this.words[o]=this.words[o+v];else this.words[0]=0,this.length=1;var g=0;for(o=this.length-1;o>=0&&(g!==0||o>=n);o--){var w=this.words[o]|0;this.words[o]=g<<26-h|w>>>h,g=w&m}return b&&g!==0&&(b.words[b.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},\"iushrn\"),i.prototype.ishrn=f(function(d,y,l){return r(this.negative===0),this.iushrn(d,y,l)},\"ishrn\"),i.prototype.shln=f(function(d){return this.clone().ishln(d)},\"shln\"),i.prototype.ushln=f(function(d){return this.clone().iushln(d)},\"ushln\"),i.prototype.shrn=f(function(d){return this.clone().ishrn(d)},\"shrn\"),i.prototype.ushrn=f(function(d){return this.clone().iushrn(d)},\"ushrn\"),i.prototype.testn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26,n=1<<y;if(this.length<=l)return!1;var h=this.words[l];return!!(h&n)},\"testn\"),i.prototype.imaskn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=l)return this;if(y!==0&&l++,this.length=Math.min(l,this.length),y!==0){var n=67108863^67108863>>>y<<y;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},\"imaskn\"),i.prototype.maskn=f(function(d){return this.clone().imaskn(d)},\"maskn\"),i.prototype.iaddn=f(function(d){return r(typeof d==\"number\"),r(d<67108864),d<0?this.isubn(-d):this.negative!==0?this.length===1&&(this.words[0]|0)<d?(this.words[0]=d-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},\"iaddn\"),i.prototype._iaddn=f(function(d){this.words[0]+=d;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},\"_iaddn\"),i.prototype.isubn=f(function(d){if(r(typeof d==\"number\"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},\"isubn\"),i.prototype.addn=f(function(d){return this.clone().iaddn(d)},\"addn\"),i.prototype.subn=f(function(d){return this.clone().isubn(d)},\"subn\"),i.prototype.iabs=f(function(){return this.negative=0,this},\"iabs\"),i.prototype.abs=f(function(){return this.clone().iabs()},\"abs\"),i.prototype._ishlnsubmul=f(function(d,y,l){var n=d.length+l,h;this._expand(n);var v,m=0;for(h=0;h<d.length;h++){v=(this.words[h+l]|0)+m;var b=(d.words[h]|0)*y;v-=b&67108863,m=(v>>26)-(b/67108864|0),this.words[h+l]=v&67108863}for(;h<this.length-l;h++)v=(this.words[h+l]|0)+m,m=v>>26,this.words[h+l]=v&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,h=0;h<this.length;h++)v=-(this.words[h]|0)+m,m=v>>26,this.words[h]=v&67108863;return this.negative=1,this.strip()},\"_ishlnsubmul\"),i.prototype._wordDiv=f(function(d,y){var l=this.length-d.length,n=this.clone(),h=d,v=h.words[h.length-1]|0,m=this._countBits(v);l=26-m,l!==0&&(h=h.ushln(l),n.iushln(l),v=h.words[h.length-1]|0);var b=n.length-h.length,o;if(y!==\"mod\"){o=new i(null),o.length=b+1,o.words=new Array(o.length);for(var g=0;g<o.length;g++)o.words[g]=0}var w=n.clone()._ishlnsubmul(h,1,b);w.negative===0&&(n=w,o&&(o.words[b]=1));for(var u=b-1;u>=0;u--){var x=(n.words[h.length+u]|0)*67108864+(n.words[h.length+u-1]|0);for(x=Math.min(x/v|0,67108863),n._ishlnsubmul(h,x,u);n.negative!==0;)x--,n.negative=0,n._ishlnsubmul(h,1,u),n.isZero()||(n.negative^=1);o&&(o.words[u]=x)}return o&&o.strip(),n.strip(),y!==\"div\"&&l!==0&&n.iushrn(l),{div:o||null,mod:n}},\"_wordDiv\"),i.prototype.divmod=f(function(d,y,l){if(r(!d.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var n,h,v;return this.negative!==0&&d.negative===0?(v=this.neg().divmod(d,y),y!==\"mod\"&&(n=v.div.neg()),y!==\"div\"&&(h=v.mod.neg(),l&&h.negative!==0&&h.iadd(d)),{div:n,mod:h}):this.negative===0&&d.negative!==0?(v=this.divmod(d.neg(),y),y!==\"mod\"&&(n=v.div.neg()),{div:n,mod:v.mod}):(this.negative&d.negative)!==0?(v=this.neg().divmod(d.neg(),y),y!==\"div\"&&(h=v.mod.neg(),l&&h.negative!==0&&h.isub(d)),{div:v.div,mod:h}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?y===\"div\"?{div:this.divn(d.words[0]),mod:null}:y===\"mod\"?{div:null,mod:new i(this.modn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modn(d.words[0]))}:this._wordDiv(d,y)},\"divmod\"),i.prototype.div=f(function(d){return this.divmod(d,\"div\",!1).div},\"div\"),i.prototype.mod=f(function(d){return this.divmod(d,\"mod\",!1).mod},\"mod\"),i.prototype.umod=f(function(d){return this.divmod(d,\"mod\",!0).mod},\"umod\"),i.prototype.divRound=f(function(d){var y=this.divmod(d);if(y.mod.isZero())return y.div;var l=y.mod.abs(),n=d.abs().iushrn(1),h=d.words[0]&1,v=l.cmp(n);if(v<0||h===1&&v===0)return y.div;var m=new i(1);return m.negative=this.negative^d.negative,y.div.iadd(m)},\"divRound\"),i.prototype.modn=f(function(d){r(d<=67108863);for(var y=(1<<26)%d,l=0,n=this.length-1;n>=0;n--)l=(y*l+(this.words[n]|0))%d;return l},\"modn\"),i.prototype.idivn=f(function(d){r(d<=67108863);for(var y=0,l=this.length-1;l>=0;l--){var n=(this.words[l]|0)+y*67108864;this.words[l]=n/d|0,y=n%d}return this.strip()},\"idivn\"),i.prototype.divn=f(function(d){return this.clone().idivn(d)},\"divn\"),i.prototype.egcd=f(function(d){r(d.negative===0),r(!d.isZero());var y=this,l=d.clone();y.negative!==0?y=y.umod(d):y=y.clone();for(var n=new i(1),h=new i(0),v=new i(0),m=new i(1),b=0;y.isEven()&&l.isEven();)y.iushrn(1),l.iushrn(1),++b;for(var o=l.clone(),g=y.clone();!y.isZero();){for(var w=0,u=1;(y.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0)for(y.iushrn(w);w-- >0;)(n.isOdd()||h.isOdd())&&(n.iadd(o),h.isub(g)),n.iushrn(1),h.iushrn(1);for(var x=0,C=1;(l.words[0]&C)===0&&x<26;++x,C<<=1);if(x>0)for(l.iushrn(x);x-- >0;)(v.isOdd()||m.isOdd())&&(v.iadd(o),m.isub(g)),v.iushrn(1),m.iushrn(1);y.cmp(l)>=0?(y.isub(l),n.isub(v),h.isub(m)):(l.isub(y),v.isub(n),m.isub(h))}return{a:v,b:m,gcd:l.iushln(b)}},\"egcd\"),i.prototype._invmp=f(function(d){r(d.negative===0),r(!d.isZero());var y=this,l=d.clone();y.negative!==0?y=y.umod(d):y=y.clone();for(var n=new i(1),h=new i(0),v=l.clone();y.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,b=1;(y.words[0]&b)===0&&m<26;++m,b<<=1);if(m>0)for(y.iushrn(m);m-- >0;)n.isOdd()&&n.iadd(v),n.iushrn(1);for(var o=0,g=1;(l.words[0]&g)===0&&o<26;++o,g<<=1);if(o>0)for(l.iushrn(o);o-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);y.cmp(l)>=0?(y.isub(l),n.isub(h)):(l.isub(y),h.isub(n))}var w;return y.cmpn(1)===0?w=n:w=h,w.cmpn(0)<0&&w.iadd(d),w},\"_invmp\"),i.prototype.gcd=f(function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var y=this.clone(),l=d.clone();y.negative=0,l.negative=0;for(var n=0;y.isEven()&&l.isEven();n++)y.iushrn(1),l.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=y.cmp(l);if(h<0){var v=y;y=l,l=v}else if(h===0||l.cmpn(1)===0)break;y.isub(l)}while(!0);return l.iushln(n)},\"gcd\"),i.prototype.invm=f(function(d){return this.egcd(d).a.umod(d)},\"invm\"),i.prototype.isEven=f(function(){return(this.words[0]&1)===0},\"isEven\"),i.prototype.isOdd=f(function(){return(this.words[0]&1)===1},\"isOdd\"),i.prototype.andln=f(function(d){return this.words[0]&d},\"andln\"),i.prototype.bincn=f(function(d){r(typeof d==\"number\");var y=d%26,l=(d-y)/26,n=1<<y;if(this.length<=l)return this._expand(l+1),this.words[l]|=n,this;for(var h=n,v=l;h!==0&&v<this.length;v++){var m=this.words[v]|0;m+=h,h=m>>>26,m&=67108863,this.words[v]=m}return h!==0&&(this.words[v]=h,this.length++),this},\"bincn\"),i.prototype.isZero=f(function(){return this.length===1&&this.words[0]===0},\"isZero\"),i.prototype.cmpn=f(function(d){var y=d<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var l;if(this.length>1)l=1;else{y&&(d=-d),r(d<=67108863,\"Number is too big\");var n=this.words[0]|0;l=n===d?0:n<d?-1:1}return this.negative!==0?-l|0:l},\"cmpn\"),i.prototype.cmp=f(function(d){if(this.negative!==0&&d.negative===0)return-1;if(this.negative===0&&d.negative!==0)return 1;var y=this.ucmp(d);return this.negative!==0?-y|0:y},\"cmp\"),i.prototype.ucmp=f(function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var y=0,l=this.length-1;l>=0;l--){var n=this.words[l]|0,h=d.words[l]|0;if(n!==h){n<h?y=-1:n>h&&(y=1);break}}return y},\"ucmp\"),i.prototype.gtn=f(function(d){return this.cmpn(d)===1},\"gtn\"),i.prototype.gt=f(function(d){return this.cmp(d)===1},\"gt\"),i.prototype.gten=f(function(d){return this.cmpn(d)>=0},\"gten\"),i.prototype.gte=f(function(d){return this.cmp(d)>=0},\"gte\"),i.prototype.ltn=f(function(d){return this.cmpn(d)===-1},\"ltn\"),i.prototype.lt=f(function(d){return this.cmp(d)===-1},\"lt\"),i.prototype.lten=f(function(d){return this.cmpn(d)<=0},\"lten\"),i.prototype.lte=f(function(d){return this.cmp(d)<=0},\"lte\"),i.prototype.eqn=f(function(d){return this.cmpn(d)===0},\"eqn\"),i.prototype.eq=f(function(d){return this.cmp(d)===0},\"eq\"),i.red=f(function(d){return new Ae(d)},\"red\"),i.prototype.toRed=f(function(d){return r(!this.red,\"Already a number in reduction context\"),r(this.negative===0,\"red works only with positives\"),d.convertTo(this)._forceRed(d)},\"toRed\"),i.prototype.fromRed=f(function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},\"fromRed\"),i.prototype._forceRed=f(function(d){return this.red=d,this},\"_forceRed\"),i.prototype.forceRed=f(function(d){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(d)},\"forceRed\"),i.prototype.redAdd=f(function(d){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,d)},\"redAdd\"),i.prototype.redIAdd=f(function(d){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,d)},\"redIAdd\"),i.prototype.redSub=f(function(d){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,d)},\"redSub\"),i.prototype.redISub=f(function(d){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,d)},\"redISub\"),i.prototype.redShl=f(function(d){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,d)},\"redShl\"),i.prototype.redMul=f(function(d){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,d),this.red.mul(this,d)},\"redMul\"),i.prototype.redIMul=f(function(d){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,d),this.red.imul(this,d)},\"redIMul\"),i.prototype.redSqr=f(function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},\"redSqr\"),i.prototype.redISqr=f(function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},\"redISqr\"),i.prototype.redSqrt=f(function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},\"redSqrt\"),i.prototype.redInvm=f(function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},\"redInvm\"),i.prototype.redNeg=f(function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},\"redNeg\"),i.prototype.redPow=f(function(d){return r(this.red&&!d.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,d)},\"redPow\");var z={k256:null,p224:null,p192:null,p25519:null};function Ee(E,d){this.name=E,this.p=new i(d,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f(Ee,\"MPrime\"),Ee.prototype._tmp=f(function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},\"_tmp\"),Ee.prototype.ireduce=f(function(d){var y=d,l;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),l=y.bitLength();while(l>this.n);var n=l<this.n?-1:y.ucmp(this.p);return n===0?(y.words[0]=0,y.length=1):n>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},\"ireduce\"),Ee.prototype.split=f(function(d,y){d.iushrn(this.n,0,y)},\"split\"),Ee.prototype.imulK=f(function(d){return d.imul(this.k)},\"imulK\");function qe(){Ee.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}f(qe,\"K256\"),a(qe,Ee),qe.prototype.split=f(function(d,y){for(var l=4194303,n=Math.min(d.length,9),h=0;h<n;h++)y.words[h]=d.words[h];if(y.length=n,d.length<=9){d.words[0]=0,d.length=1;return}var v=d.words[9];for(y.words[y.length++]=v&l,h=10;h<d.length;h++){var m=d.words[h]|0;d.words[h-10]=(m&l)<<4|v>>>22,v=m}v>>>=22,d.words[h-10]=v,v===0&&d.length>10?d.length-=10:d.length-=9},\"split\"),qe.prototype.imulK=f(function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var y=0,l=0;l<d.length;l++){var n=d.words[l]|0;y+=n*977,d.words[l]=y&67108863,y=n*64+(y/67108864|0)}return d.words[d.length-1]===0&&(d.length--,d.words[d.length-1]===0&&d.length--),d},\"imulK\");function De(){Ee.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}f(De,\"P224\"),a(De,Ee);function ke(){Ee.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}f(ke,\"P192\"),a(ke,Ee);function Ue(){Ee.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}f(Ue,\"P25519\"),a(Ue,Ee),Ue.prototype.imulK=f(function(d){for(var y=0,l=0;l<d.length;l++){var n=(d.words[l]|0)*19+y,h=n&67108863;n>>>=26,d.words[l]=h,y=n}return y!==0&&(d.words[d.length++]=y),d},\"imulK\"),i._prime=f(function(d){if(z[d])return z[d];var y;if(d===\"k256\")y=new qe;else if(d===\"p224\")y=new De;else if(d===\"p192\")y=new ke;else if(d===\"p25519\")y=new Ue;else throw new Error(\"Unknown prime \"+d);return z[d]=y,y},\"prime\");function Ae(E){if(typeof E==\"string\"){var d=i._prime(E);this.m=d.p,this.prime=d}else r(E.gtn(1),\"modulus must be greater than 1\"),this.m=E,this.prime=null}f(Ae,\"Red\"),Ae.prototype._verify1=f(function(d){r(d.negative===0,\"red works only with positives\"),r(d.red,\"red works only with red numbers\")},\"_verify1\"),Ae.prototype._verify2=f(function(d,y){r((d.negative|y.negative)===0,\"red works only with positives\"),r(d.red&&d.red===y.red,\"red works only with red numbers\")},\"_verify2\"),Ae.prototype.imod=f(function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):d.umod(this.m)._forceRed(this)},\"imod\"),Ae.prototype.neg=f(function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},\"neg\"),Ae.prototype.add=f(function(d,y){this._verify2(d,y);var l=d.add(y);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},\"add\"),Ae.prototype.iadd=f(function(d,y){this._verify2(d,y);var l=d.iadd(y);return l.cmp(this.m)>=0&&l.isub(this.m),l},\"iadd\"),Ae.prototype.sub=f(function(d,y){this._verify2(d,y);var l=d.sub(y);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},\"sub\"),Ae.prototype.isub=f(function(d,y){this._verify2(d,y);var l=d.isub(y);return l.cmpn(0)<0&&l.iadd(this.m),l},\"isub\"),Ae.prototype.shl=f(function(d,y){return this._verify1(d),this.imod(d.ushln(y))},\"shl\"),Ae.prototype.imul=f(function(d,y){return this._verify2(d,y),this.imod(d.imul(y))},\"imul\"),Ae.prototype.mul=f(function(d,y){return this._verify2(d,y),this.imod(d.mul(y))},\"mul\"),Ae.prototype.isqr=f(function(d){return this.imul(d,d.clone())},\"isqr\"),Ae.prototype.sqr=f(function(d){return this.mul(d,d)},\"sqr\"),Ae.prototype.sqrt=f(function(d){if(d.isZero())return d.clone();var y=this.m.andln(3);if(r(y%2===1),y===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(d,l)}for(var n=this.m.subn(1),h=0;!n.isZero()&&n.andln(1)===0;)h++,n.iushrn(1);r(!n.isZero());var v=new i(1).toRed(this),m=v.redNeg(),b=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,b).cmp(m)!==0;)o.redIAdd(m);for(var g=this.pow(o,n),w=this.pow(d,n.addn(1).iushrn(1)),u=this.pow(d,n),x=h;u.cmp(v)!==0;){for(var C=u,P=0;C.cmp(v)!==0;P++)C=C.redSqr();r(P<x);var D=this.pow(g,new i(1).iushln(x-P-1));w=w.redMul(D),g=D.redSqr(),u=u.redMul(g),x=P}return w},\"sqrt\"),Ae.prototype.invm=f(function(d){var y=d._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},\"invm\"),Ae.prototype.pow=f(function(d,y){if(y.isZero())return new i(1).toRed(this);if(y.cmpn(1)===0)return d.clone();var l=4,n=new Array(1<<l);n[0]=new i(1).toRed(this),n[1]=d;for(var h=2;h<n.length;h++)n[h]=this.mul(n[h-1],d);var v=n[0],m=0,b=0,o=y.bitLength()%26;for(o===0&&(o=26),h=y.length-1;h>=0;h--){for(var g=y.words[h],w=o-1;w>=0;w--){var u=g>>w&1;if(v!==n[0]&&(v=this.sqr(v)),u===0&&m===0){b=0;continue}m<<=1,m|=u,b++,!(b!==l&&(h!==0||w!==0))&&(v=this.mul(v,n[m]),b=0,m=0)}o=26}return v},\"pow\"),Ae.prototype.convertTo=f(function(d){var y=d.umod(this.m);return y===d?y.clone():y},\"convertTo\"),Ae.prototype.convertFrom=f(function(d){var y=d.clone();return y.red=null,y},\"convertFrom\"),i.mont=f(function(d){return new Le(d)},\"mont\");function Le(E){Ae.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(Le,\"Mont\"),a(Le,Ae),Le.prototype.convertTo=f(function(d){return this.imod(d.ushln(this.shift))},\"convertTo\"),Le.prototype.convertFrom=f(function(d){var y=this.imod(d.mul(this.rinv));return y.red=null,y},\"convertFrom\"),Le.prototype.imul=f(function(d,y){if(d.isZero()||y.isZero())return d.words[0]=0,d.length=1,d;var l=d.imul(y),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(n).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},\"imul\"),Le.prototype.mul=f(function(d,y){if(d.isZero()||y.isZero())return new i(0)._forceRed(this);var l=d.mul(y),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(n).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},\"mul\"),Le.prototype.invm=f(function(d){var y=this.imod(d._invmp(this.m).mul(this.r2));return y._forceRed(this)},\"invm\")})(typeof u0>\"u\"||u0,Cd)});var Ef=k((V7,p0)=>{M();var l0;p0.exports=f(function(e){return l0||(l0=new pr(null)),l0.generate(e)},\"rand\");function pr(t){this.rand=t}f(pr,\"Rand\");p0.exports.Rand=pr;pr.prototype.generate=f(function(e){return this._rand(e)},\"generate\");pr.prototype._rand=f(function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),a=0;a<r.length;a++)r[a]=this.rand.getByte();return r},\"_rand\");if(typeof self==\"object\")self.crypto&&self.crypto.getRandomValues?pr.prototype._rand=f(function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r},\"_rand\"):self.msCrypto&&self.msCrypto.getRandomValues?pr.prototype._rand=f(function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r},\"_rand\"):typeof window==\"object\"&&(pr.prototype._rand=function(){throw new Error(\"Not implemented yet\")});else try{if(v0=b0(),typeof v0.randomBytes!=\"function\")throw new Error(\"Not supported\");pr.prototype._rand=f(function(e){return v0.randomBytes(e)},\"_rand\")}catch{}var v0});var m0=k((X7,Dd)=>{M();var Gr=je(),sb=Ef();function Jr(t){this.rand=t||new sb.Rand}f(Jr,\"MillerRabin\");Dd.exports=Jr;Jr.create=f(function(e){return new Jr(e)},\"create\");Jr.prototype._randbelow=f(function(e){var r=e.bitLength(),a=Math.ceil(r/8);do var i=new Gr(this.rand.generate(a));while(i.cmp(e)>=0);return i},\"_randbelow\");Jr.prototype._randrange=f(function(e,r){var a=r.sub(e);return e.add(this._randbelow(a))},\"_randrange\");Jr.prototype.test=f(function(e,r,a){var i=e.bitLength(),s=Gr.mont(e),c=new Gr(1).toRed(s);r||(r=Math.max(1,i/48|0));for(var p=e.subn(1),_=0;!p.testn(_);_++);for(var S=e.shrn(_),A=p.toRed(s),q=!0;r>0;r--){var B=this._randrange(new Gr(2),p);a&&a(B);var I=B.toRed(s).redPow(S);if(!(I.cmp(c)===0||I.cmp(A)===0)){for(var R=1;R<_;R++){if(I=I.redSqr(),I.cmp(c)===0)return!1;if(I.cmp(A)===0)break}if(R===_)return!1}}return q},\"test\");Jr.prototype.getDivisor=f(function(e,r){var a=e.bitLength(),i=Gr.mont(e),s=new Gr(1).toRed(i);r||(r=Math.max(1,a/48|0));for(var c=e.subn(1),p=0;!c.testn(p);p++);for(var _=e.shrn(p),S=c.toRed(i);r>0;r--){var A=this._randrange(new Gr(2),c),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var B=A.toRed(i).redPow(_);if(!(B.cmp(s)===0||B.cmp(S)===0)){for(var I=1;I<p;I++){if(B=B.redSqr(),B.cmp(s)===0)return B.fromRed().subn(1).gcd(e);if(B.cmp(S)===0)break}if(I===p)return B=B.redSqr(),B.fromRed().subn(1).gcd(e)}}return!1},\"getDivisor\")});var M0=k((tm,Nd)=>{M();var ob=Or();Nd.exports=x0;x0.simpleSieve=_0;x0.fermatTest=w0;var Xe=je(),hb=new Xe(24),db=m0(),Pd=new db,cb=new Xe(1),g0=new Xe(2),ub=new Xe(5),Y7=new Xe(16),$7=new Xe(8),lb=new Xe(10),vb=new Xe(3),Q7=new Xe(7),pb=new Xe(11),Td=new Xe(4),em=new Xe(12),y0=null;function bb(){if(y0!==null)return y0;var t=1048576,e=[];e[0]=2;for(var r=1,a=3;a<t;a+=2){for(var i=Math.ceil(Math.sqrt(a)),s=0;s<r&&e[s]<=i&&a%e[s]!==0;s++);r!==s&&e[s]<=i||(e[r++]=a)}return y0=e,e}f(bb,\"_getPrimes\");function _0(t){for(var e=bb(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}f(_0,\"simpleSieve\");function w0(t){var e=Xe.mont(t);return g0.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}f(w0,\"fermatTest\");function x0(t,e){if(t<16)return e===2||e===5?new Xe([140,123]):new Xe([140,39]);e=new Xe(e);for(var r,a;;){for(r=new Xe(ob(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(cb),r.testn(1)||r.iadd(g0),e.cmp(g0)){if(!e.cmp(ub))for(;r.mod(lb).cmp(vb);)r.iadd(Td)}else for(;r.mod(hb).cmp(pb);)r.iadd(Td);if(a=r.shrn(1),_0(a)&&_0(r)&&w0(a)&&w0(r)&&Pd.test(a)&&Pd.test(r))return r}}f(x0,\"findPrime\")});var Od=k((am,mb)=>{mb.exports={modp1:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff\"},modp2:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff\"},modp5:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff\"},modp14:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff\"},modp15:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff\"},modp16:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff\"},modp17:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff\"},modp18:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff\"}}});var Fd=k((fm,zd)=>{M();var bt=je(),yb=m0(),Ld=new yb,gb=new bt(24),_b=new bt(11),wb=new bt(10),xb=new bt(3),Mb=new bt(7),Ud=M0(),Sb=Or();zd.exports=ir;function Ab(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new bt(t),this}f(Ab,\"setPublicKey\");function Eb(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new bt(t),this}f(Eb,\"setPrivateKey\");var qf={};function qb(t,e){var r=e.toString(\"hex\"),a=[r,t.toString(16)].join(\"_\");if(a in qf)return qf[a];var i=0;if(t.isEven()||!Ud.simpleSieve||!Ud.fermatTest(t)||!Ld.test(t))return i+=1,r===\"02\"||r===\"05\"?i+=8:i+=4,qf[a]=i,i;Ld.test(t.shrn(1))||(i+=2);var s;switch(r){case\"02\":t.mod(gb).cmp(_b)&&(i+=8);break;case\"05\":s=t.mod(wb),s.cmp(xb)&&s.cmp(Mb)&&(i+=8);break;default:i+=4}return qf[a]=i,i}f(qb,\"checkPrime\");function ir(t,e,r){this.setGenerator(e),this.__prime=new bt(t),this._prime=bt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=Ab,this.setPrivateKey=Eb):this._primeCode=8}f(ir,\"DH\");Object.defineProperty(ir.prototype,\"verifyError\",{enumerable:!0,get:f(function(){return typeof this._primeCode!=\"number\"&&(this._primeCode=qb(this.__prime,this.__gen)),this._primeCode},\"get\")});ir.prototype.generateKeys=function(){return this._priv||(this._priv=new bt(Sb(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};ir.prototype.computeSecret=function(t){t=new bt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new Buffer(e.toArray()),a=this.getPrime();if(r.length<a.length){var i=new Buffer(a.length-r.length);i.fill(0),r=Buffer.concat([i,r])}return r};ir.prototype.getPublicKey=f(function(e){return Bf(this._pub,e)},\"getPublicKey\");ir.prototype.getPrivateKey=f(function(e){return Bf(this._priv,e)},\"getPrivateKey\");ir.prototype.getPrime=function(t){return Bf(this.__prime,t)};ir.prototype.getGenerator=function(t){return Bf(this._gen,t)};ir.prototype.setGenerator=function(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.__gen=t,this._gen=new bt(t),this};function Bf(t,e){var r=new Buffer(t.toArray());return e?r.toString(e):r}f(Bf,\"formatReturnValue\")});var jd=k(_i=>{M();var Bb=M0(),Hd=Od(),S0=Fd();function kb(t){var e=new Buffer(Hd[t].prime,\"hex\"),r=new Buffer(Hd[t].gen,\"hex\");return new S0(e,r)}f(kb,\"getDiffieHellman\");var Ib={binary:!0,hex:!0,base64:!0};function Kd(t,e,r,a){return Buffer.isBuffer(e)||Ib[e]===void 0?Kd(t,\"binary\",e,r):(e=e||\"binary\",a=a||\"binary\",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),typeof t==\"number\"?new S0(Bb(t,r),r,!0):(Buffer.isBuffer(t)||(t=new Buffer(t,e)),new S0(t,r,!0)))}f(Kd,\"createDiffieHellman\");_i.DiffieHellmanGroup=_i.createDiffieHellmanGroup=_i.getDiffieHellman=kb;_i.createDiffieHellman=_i.DiffieHellman=Kd});var kf=k((Vd,A0)=>{M();(function(t,e){\"use strict\";function r(l,n){if(!l)throw new Error(n||\"Assertion failed\")}f(r,\"assert\");function a(l,n){l.super_=n;var h=f(function(){},\"TempCtor\");h.prototype=n.prototype,l.prototype=new h,l.prototype.constructor=l}f(a,\"inherits\");function i(l,n,h){if(i.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((n===\"le\"||n===\"be\")&&(h=n,n=10),this._init(l||0,n||10,h||\"be\"))}f(i,\"BN\"),typeof t==\"object\"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?s=window.Buffer:s=(cr(),hr(dr)).Buffer}catch{}i.isBN=f(function(n){return n instanceof i?!0:n!==null&&typeof n==\"object\"&&n.constructor.wordSize===i.wordSize&&Array.isArray(n.words)},\"isBN\"),i.max=f(function(n,h){return n.cmp(h)>0?n:h},\"max\"),i.min=f(function(n,h){return n.cmp(h)<0?n:h},\"min\"),i.prototype._init=f(function(n,h,v){if(typeof n==\"number\")return this._initNumber(n,h,v);if(typeof n==\"object\")return this._initArray(n,h,v);h===\"hex\"&&(h=16),r(h===(h|0)&&h>=2&&h<=36),n=n.toString().replace(/\\s+/g,\"\");var m=0;n[0]===\"-\"&&(m++,this.negative=1),m<n.length&&(h===16?this._parseHex(n,m,v):(this._parseBase(n,h,m),v===\"le\"&&this._initArray(this.toArray(),h,v)))},\"init\"),i.prototype._initNumber=f(function(n,h,v){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[n&67108863],this.length=1):n<4503599627370496?(this.words=[n&67108863,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[n&67108863,n/67108864&67108863,1],this.length=3),v===\"le\"&&this._initArray(this.toArray(),h,v)},\"_initNumber\"),i.prototype._initArray=f(function(n,h,v){if(r(typeof n.length==\"number\"),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b,o,g=0;if(v===\"be\")for(m=n.length-1,b=0;m>=0;m-=3)o=n[m]|n[m-1]<<8|n[m-2]<<16,this.words[b]|=o<<g&67108863,this.words[b+1]=o>>>26-g&67108863,g+=24,g>=26&&(g-=26,b++);else if(v===\"le\")for(m=0,b=0;m<n.length;m+=3)o=n[m]|n[m+1]<<8|n[m+2]<<16,this.words[b]|=o<<g&67108863,this.words[b+1]=o>>>26-g&67108863,g+=24,g>=26&&(g-=26,b++);return this._strip()},\"_initArray\");function c(l,n){var h=l.charCodeAt(n);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;r(!1,\"Invalid character in \"+l)}f(c,\"parseHex4Bits\");function p(l,n,h){var v=c(l,h);return h-1>=n&&(v|=c(l,h-1)<<4),v}f(p,\"parseHexByte\"),i.prototype._parseHex=f(function(n,h,v){this.length=Math.ceil((n.length-h)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b=0,o=0,g;if(v===\"be\")for(m=n.length-1;m>=h;m-=2)g=p(n,h,m)<<b,this.words[o]|=g&67108863,b>=18?(b-=18,o+=1,this.words[o]|=g>>>26):b+=8;else{var w=n.length-h;for(m=w%2===0?h+1:h;m<n.length;m+=2)g=p(n,h,m)<<b,this.words[o]|=g&67108863,b>=18?(b-=18,o+=1,this.words[o]|=g>>>26):b+=8}this._strip()},\"_parseHex\");function _(l,n,h,v){for(var m=0,b=0,o=Math.min(l.length,h),g=n;g<o;g++){var w=l.charCodeAt(g)-48;m*=v,w>=49?b=w-49+10:w>=17?b=w-17+10:b=w,r(w>=0&&b<v,\"Invalid character\"),m+=b}return m}f(_,\"parseBase\"),i.prototype._parseBase=f(function(n,h,v){this.words=[0],this.length=1;for(var m=0,b=1;b<=67108863;b*=h)m++;m--,b=b/h|0;for(var o=n.length-v,g=o%m,w=Math.min(o,o-g)+v,u=0,x=v;x<w;x+=m)u=_(n,x,x+m,h),this.imuln(b),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var C=1;for(u=_(n,x,n.length,h),x=0;x<g;x++)C*=h;this.imuln(C),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},\"_parseBase\"),i.prototype.copy=f(function(n){n.words=new Array(this.length);for(var h=0;h<this.length;h++)n.words[h]=this.words[h];n.length=this.length,n.negative=this.negative,n.red=this.red},\"copy\");function S(l,n){l.words=n.words,l.length=n.length,l.negative=n.negative,l.red=n.red}if(f(S,\"move\"),i.prototype._move=f(function(n){S(n,this)},\"_move\"),i.prototype.clone=f(function(){var n=new i(null);return this.copy(n),n},\"clone\"),i.prototype._expand=f(function(n){for(;this.length<n;)this.words[this.length++]=0;return this},\"_expand\"),i.prototype._strip=f(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},\"strip\"),i.prototype._normSign=f(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},\"_normSign\"),typeof Symbol<\"u\"&&typeof Symbol.for==\"function\")try{i.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=A}catch{i.prototype.inspect=A}else i.prototype.inspect=A;function A(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}f(A,\"inspect\");var q=[\"\",\"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\"],B=[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],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=f(function(n,h){n=n||10,h=h|0||1;var v;if(n===16||n===\"hex\"){v=\"\";for(var m=0,b=0,o=0;o<this.length;o++){var g=this.words[o],w=((g<<m|b)&16777215).toString(16);b=g>>>24-m&16777215,m+=2,m>=26&&(m-=26,o--),b!==0||o!==this.length-1?v=q[6-w.length]+w+v:v=w+v}for(b!==0&&(v=b.toString(16)+v);v.length%h!==0;)v=\"0\"+v;return this.negative!==0&&(v=\"-\"+v),v}if(n===(n|0)&&n>=2&&n<=36){var u=B[n],x=I[n];v=\"\";var C=this.clone();for(C.negative=0;!C.isZero();){var P=C.modrn(x).toString(n);C=C.idivn(x),C.isZero()?v=P+v:v=q[u-P.length]+P+v}for(this.isZero()&&(v=\"0\"+v);v.length%h!==0;)v=\"0\"+v;return this.negative!==0&&(v=\"-\"+v),v}r(!1,\"Base should be between 2 and 36\")},\"toString\"),i.prototype.toNumber=f(function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-n:n},\"toNumber\"),i.prototype.toJSON=f(function(){return this.toString(16,2)},\"toJSON\"),s&&(i.prototype.toBuffer=f(function(n,h){return this.toArrayLike(s,n,h)},\"toBuffer\")),i.prototype.toArray=f(function(n,h){return this.toArrayLike(Array,n,h)},\"toArray\");var R=f(function(n,h){return n.allocUnsafe?n.allocUnsafe(h):new n(h)},\"allocate\");i.prototype.toArrayLike=f(function(n,h,v){this._strip();var m=this.byteLength(),b=v||Math.max(1,m);r(m<=b,\"byte array longer than desired length\"),r(b>0,\"Requested array length <= 0\");var o=R(n,b),g=h===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+g](o,m),o},\"toArrayLike\"),i.prototype._toArrayLikeLE=f(function(n,h){for(var v=0,m=0,b=0,o=0;b<this.length;b++){var g=this.words[b]<<o|m;n[v++]=g&255,v<n.length&&(n[v++]=g>>8&255),v<n.length&&(n[v++]=g>>16&255),o===6?(v<n.length&&(n[v++]=g>>24&255),m=0,o=0):(m=g>>>24,o+=2)}if(v<n.length)for(n[v++]=m;v<n.length;)n[v++]=0},\"_toArrayLikeLE\"),i.prototype._toArrayLikeBE=f(function(n,h){for(var v=n.length-1,m=0,b=0,o=0;b<this.length;b++){var g=this.words[b]<<o|m;n[v--]=g&255,v>=0&&(n[v--]=g>>8&255),v>=0&&(n[v--]=g>>16&255),o===6?(v>=0&&(n[v--]=g>>24&255),m=0,o=0):(m=g>>>24,o+=2)}if(v>=0)for(n[v--]=m;v>=0;)n[v--]=0},\"_toArrayLikeBE\"),Math.clz32?i.prototype._countBits=f(function(n){return 32-Math.clz32(n)},\"_countBits\"):i.prototype._countBits=f(function(n){var h=n,v=0;return h>=4096&&(v+=13,h>>>=13),h>=64&&(v+=7,h>>>=7),h>=8&&(v+=4,h>>>=4),h>=2&&(v+=2,h>>>=2),v+h},\"_countBits\"),i.prototype._zeroBits=f(function(n){if(n===0)return 26;var h=n,v=0;return(h&8191)===0&&(v+=13,h>>>=13),(h&127)===0&&(v+=7,h>>>=7),(h&15)===0&&(v+=4,h>>>=4),(h&3)===0&&(v+=2,h>>>=2),(h&1)===0&&v++,v},\"_zeroBits\"),i.prototype.bitLength=f(function(){var n=this.words[this.length-1],h=this._countBits(n);return(this.length-1)*26+h},\"bitLength\");function T(l){for(var n=new Array(l.bitLength()),h=0;h<n.length;h++){var v=h/26|0,m=h%26;n[h]=l.words[v]>>>m&1}return n}f(T,\"toBitArray\"),i.prototype.zeroBits=f(function(){if(this.isZero())return 0;for(var n=0,h=0;h<this.length;h++){var v=this._zeroBits(this.words[h]);if(n+=v,v!==26)break}return n},\"zeroBits\"),i.prototype.byteLength=f(function(){return Math.ceil(this.bitLength()/8)},\"byteLength\"),i.prototype.toTwos=f(function(n){return this.negative!==0?this.abs().inotn(n).iaddn(1):this.clone()},\"toTwos\"),i.prototype.fromTwos=f(function(n){return this.testn(n-1)?this.notn(n).iaddn(1).ineg():this.clone()},\"fromTwos\"),i.prototype.isNeg=f(function(){return this.negative!==0},\"isNeg\"),i.prototype.neg=f(function(){return this.clone().ineg()},\"neg\"),i.prototype.ineg=f(function(){return this.isZero()||(this.negative^=1),this},\"ineg\"),i.prototype.iuor=f(function(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var h=0;h<n.length;h++)this.words[h]=this.words[h]|n.words[h];return this._strip()},\"iuor\"),i.prototype.ior=f(function(n){return r((this.negative|n.negative)===0),this.iuor(n)},\"ior\"),i.prototype.or=f(function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},\"or\"),i.prototype.uor=f(function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},\"uor\"),i.prototype.iuand=f(function(n){var h;this.length>n.length?h=n:h=this;for(var v=0;v<h.length;v++)this.words[v]=this.words[v]&n.words[v];return this.length=h.length,this._strip()},\"iuand\"),i.prototype.iand=f(function(n){return r((this.negative|n.negative)===0),this.iuand(n)},\"iand\"),i.prototype.and=f(function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},\"and\"),i.prototype.uand=f(function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},\"uand\"),i.prototype.iuxor=f(function(n){var h,v;this.length>n.length?(h=this,v=n):(h=n,v=this);for(var m=0;m<v.length;m++)this.words[m]=h.words[m]^v.words[m];if(this!==h)for(;m<h.length;m++)this.words[m]=h.words[m];return this.length=h.length,this._strip()},\"iuxor\"),i.prototype.ixor=f(function(n){return r((this.negative|n.negative)===0),this.iuxor(n)},\"ixor\"),i.prototype.xor=f(function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},\"xor\"),i.prototype.uxor=f(function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},\"uxor\"),i.prototype.inotn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=Math.ceil(n/26)|0,v=n%26;this._expand(h),v>0&&h--;for(var m=0;m<h;m++)this.words[m]=~this.words[m]&67108863;for(v>0&&(this.words[m]=~this.words[m]&67108863>>26-v,m++);m<this.length;m++)this.words[m]=0;return this._strip()},\"inotn\"),i.prototype.notn=f(function(n){return this.clone().inotn(n)},\"notn\"),i.prototype.setn=f(function(n,h){r(typeof n==\"number\"&&n>=0);var v=n/26|0,m=n%26;return this._expand(v+1),h?this.words[v]=this.words[v]|1<<m:this.words[v]=this.words[v]&~(1<<m),this._strip()},\"setn\"),i.prototype.iadd=f(function(n){var h;if(this.negative!==0&&n.negative===0)return this.negative=0,h=this.isub(n),this.negative^=1,this._normSign();if(this.negative===0&&n.negative!==0)return n.negative=0,h=this.isub(n),n.negative=1,h._normSign();var v,m;this.length>n.length?(v=this,m=n):(v=n,m=this);for(var b=0,o=0;o<m.length;o++)h=(v.words[o]|0)+(m.words[o]|0)+b,this.words[o]=h&67108863,b=h>>>26;for(;b!==0&&o<v.length;o++)h=(v.words[o]|0)+b,this.words[o]=h&67108863,b=h>>>26;if(this.length=v.length,b!==0)this.words[this.length]=b,this.length++;else if(v!==this)for(;o<v.length;o++)this.words[o]=v.words[o];return this},\"iadd\"),i.prototype.add=f(function(n){var h;return n.negative!==0&&this.negative===0?(n.negative=0,h=this.sub(n),n.negative^=1,h):n.negative===0&&this.negative!==0?(this.negative=0,h=n.sub(this),this.negative=1,h):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},\"add\"),i.prototype.isub=f(function(n){if(n.negative!==0){n.negative=0;var h=this.iadd(n);return n.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var v=this.cmp(n);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,b;v>0?(m=this,b=n):(m=n,b=this);for(var o=0,g=0;g<b.length;g++)h=(m.words[g]|0)-(b.words[g]|0)+o,o=h>>26,this.words[g]=h&67108863;for(;o!==0&&g<m.length;g++)h=(m.words[g]|0)+o,o=h>>26,this.words[g]=h&67108863;if(o===0&&g<m.length&&m!==this)for(;g<m.length;g++)this.words[g]=m.words[g];return this.length=Math.max(this.length,g),m!==this&&(this.negative=1),this._strip()},\"isub\"),i.prototype.sub=f(function(n){return this.clone().isub(n)},\"sub\");function L(l,n,h){h.negative=n.negative^l.negative;var v=l.length+n.length|0;h.length=v,v=v-1|0;var m=l.words[0]|0,b=n.words[0]|0,o=m*b,g=o&67108863,w=o/67108864|0;h.words[0]=g;for(var u=1;u<v;u++){for(var x=w>>>26,C=w&67108863,P=Math.min(u,n.length-1),D=Math.max(0,u-l.length+1);D<=P;D++){var U=u-D|0;m=l.words[U]|0,b=n.words[D]|0,o=m*b+C,x+=o/67108864|0,C=o&67108863}h.words[u]=C|0,w=x|0}return w!==0?h.words[u]=w|0:h.length--,h._strip()}f(L,\"smallMulTo\");var N=f(function(n,h,v){var m=n.words,b=h.words,o=v.words,g=0,w,u,x,C=m[0]|0,P=C&8191,D=C>>>13,U=m[1]|0,O=U&8191,F=U>>>13,xt=m[2]|0,H=xt&8191,K=xt>>>13,Li=m[3]|0,j=Li&8191,V=Li>>>13,Ui=m[4]|0,W=Ui&8191,Z=Ui>>>13,zi=m[5]|0,X=zi&8191,G=zi>>>13,Fi=m[6]|0,J=Fi&8191,Y=Fi>>>13,Hi=m[7]|0,$=Hi&8191,Q=Hi>>>13,Ki=m[8]|0,ee=Ki&8191,te=Ki>>>13,ji=m[9]|0,re=ji&8191,ie=ji>>>13,Vi=b[0]|0,ae=Vi&8191,fe=Vi>>>13,Wi=b[1]|0,ne=Wi&8191,se=Wi>>>13,Zi=b[2]|0,oe=Zi&8191,he=Zi>>>13,Xi=b[3]|0,de=Xi&8191,ce=Xi>>>13,Gi=b[4]|0,ue=Gi&8191,le=Gi>>>13,Ji=b[5]|0,ve=Ji&8191,pe=Ji>>>13,Yi=b[6]|0,be=Yi&8191,me=Yi>>>13,$i=b[7]|0,ye=$i&8191,ge=$i>>>13,Qi=b[8]|0,_e=Qi&8191,we=Qi>>>13,oi=b[9]|0,Te=oi&8191,Ne=oi>>>13;v.negative=n.negative^h.negative,v.length=19,w=Math.imul(P,ae),u=Math.imul(P,fe),u=u+Math.imul(D,ae)|0,x=Math.imul(D,fe);var wr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(wr>>>26)|0,wr&=67108863,w=Math.imul(O,ae),u=Math.imul(O,fe),u=u+Math.imul(F,ae)|0,x=Math.imul(F,fe),w=w+Math.imul(P,ne)|0,u=u+Math.imul(P,se)|0,u=u+Math.imul(D,ne)|0,x=x+Math.imul(D,se)|0;var xr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(xr>>>26)|0,xr&=67108863,w=Math.imul(H,ae),u=Math.imul(H,fe),u=u+Math.imul(K,ae)|0,x=Math.imul(K,fe),w=w+Math.imul(O,ne)|0,u=u+Math.imul(O,se)|0,u=u+Math.imul(F,ne)|0,x=x+Math.imul(F,se)|0,w=w+Math.imul(P,oe)|0,u=u+Math.imul(P,he)|0,u=u+Math.imul(D,oe)|0,x=x+Math.imul(D,he)|0;var Mr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,w=Math.imul(j,ae),u=Math.imul(j,fe),u=u+Math.imul(V,ae)|0,x=Math.imul(V,fe),w=w+Math.imul(H,ne)|0,u=u+Math.imul(H,se)|0,u=u+Math.imul(K,ne)|0,x=x+Math.imul(K,se)|0,w=w+Math.imul(O,oe)|0,u=u+Math.imul(O,he)|0,u=u+Math.imul(F,oe)|0,x=x+Math.imul(F,he)|0,w=w+Math.imul(P,de)|0,u=u+Math.imul(P,ce)|0,u=u+Math.imul(D,de)|0,x=x+Math.imul(D,ce)|0;var Sr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,w=Math.imul(W,ae),u=Math.imul(W,fe),u=u+Math.imul(Z,ae)|0,x=Math.imul(Z,fe),w=w+Math.imul(j,ne)|0,u=u+Math.imul(j,se)|0,u=u+Math.imul(V,ne)|0,x=x+Math.imul(V,se)|0,w=w+Math.imul(H,oe)|0,u=u+Math.imul(H,he)|0,u=u+Math.imul(K,oe)|0,x=x+Math.imul(K,he)|0,w=w+Math.imul(O,de)|0,u=u+Math.imul(O,ce)|0,u=u+Math.imul(F,de)|0,x=x+Math.imul(F,ce)|0,w=w+Math.imul(P,ue)|0,u=u+Math.imul(P,le)|0,u=u+Math.imul(D,ue)|0,x=x+Math.imul(D,le)|0;var Ar=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,w=Math.imul(X,ae),u=Math.imul(X,fe),u=u+Math.imul(G,ae)|0,x=Math.imul(G,fe),w=w+Math.imul(W,ne)|0,u=u+Math.imul(W,se)|0,u=u+Math.imul(Z,ne)|0,x=x+Math.imul(Z,se)|0,w=w+Math.imul(j,oe)|0,u=u+Math.imul(j,he)|0,u=u+Math.imul(V,oe)|0,x=x+Math.imul(V,he)|0,w=w+Math.imul(H,de)|0,u=u+Math.imul(H,ce)|0,u=u+Math.imul(K,de)|0,x=x+Math.imul(K,ce)|0,w=w+Math.imul(O,ue)|0,u=u+Math.imul(O,le)|0,u=u+Math.imul(F,ue)|0,x=x+Math.imul(F,le)|0,w=w+Math.imul(P,ve)|0,u=u+Math.imul(P,pe)|0,u=u+Math.imul(D,ve)|0,x=x+Math.imul(D,pe)|0;var Er=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,w=Math.imul(J,ae),u=Math.imul(J,fe),u=u+Math.imul(Y,ae)|0,x=Math.imul(Y,fe),w=w+Math.imul(X,ne)|0,u=u+Math.imul(X,se)|0,u=u+Math.imul(G,ne)|0,x=x+Math.imul(G,se)|0,w=w+Math.imul(W,oe)|0,u=u+Math.imul(W,he)|0,u=u+Math.imul(Z,oe)|0,x=x+Math.imul(Z,he)|0,w=w+Math.imul(j,de)|0,u=u+Math.imul(j,ce)|0,u=u+Math.imul(V,de)|0,x=x+Math.imul(V,ce)|0,w=w+Math.imul(H,ue)|0,u=u+Math.imul(H,le)|0,u=u+Math.imul(K,ue)|0,x=x+Math.imul(K,le)|0,w=w+Math.imul(O,ve)|0,u=u+Math.imul(O,pe)|0,u=u+Math.imul(F,ve)|0,x=x+Math.imul(F,pe)|0,w=w+Math.imul(P,be)|0,u=u+Math.imul(P,me)|0,u=u+Math.imul(D,be)|0,x=x+Math.imul(D,me)|0;var qr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(qr>>>26)|0,qr&=67108863,w=Math.imul($,ae),u=Math.imul($,fe),u=u+Math.imul(Q,ae)|0,x=Math.imul(Q,fe),w=w+Math.imul(J,ne)|0,u=u+Math.imul(J,se)|0,u=u+Math.imul(Y,ne)|0,x=x+Math.imul(Y,se)|0,w=w+Math.imul(X,oe)|0,u=u+Math.imul(X,he)|0,u=u+Math.imul(G,oe)|0,x=x+Math.imul(G,he)|0,w=w+Math.imul(W,de)|0,u=u+Math.imul(W,ce)|0,u=u+Math.imul(Z,de)|0,x=x+Math.imul(Z,ce)|0,w=w+Math.imul(j,ue)|0,u=u+Math.imul(j,le)|0,u=u+Math.imul(V,ue)|0,x=x+Math.imul(V,le)|0,w=w+Math.imul(H,ve)|0,u=u+Math.imul(H,pe)|0,u=u+Math.imul(K,ve)|0,x=x+Math.imul(K,pe)|0,w=w+Math.imul(O,be)|0,u=u+Math.imul(O,me)|0,u=u+Math.imul(F,be)|0,x=x+Math.imul(F,me)|0,w=w+Math.imul(P,ye)|0,u=u+Math.imul(P,ge)|0,u=u+Math.imul(D,ye)|0,x=x+Math.imul(D,ge)|0;var Br=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,w=Math.imul(ee,ae),u=Math.imul(ee,fe),u=u+Math.imul(te,ae)|0,x=Math.imul(te,fe),w=w+Math.imul($,ne)|0,u=u+Math.imul($,se)|0,u=u+Math.imul(Q,ne)|0,x=x+Math.imul(Q,se)|0,w=w+Math.imul(J,oe)|0,u=u+Math.imul(J,he)|0,u=u+Math.imul(Y,oe)|0,x=x+Math.imul(Y,he)|0,w=w+Math.imul(X,de)|0,u=u+Math.imul(X,ce)|0,u=u+Math.imul(G,de)|0,x=x+Math.imul(G,ce)|0,w=w+Math.imul(W,ue)|0,u=u+Math.imul(W,le)|0,u=u+Math.imul(Z,ue)|0,x=x+Math.imul(Z,le)|0,w=w+Math.imul(j,ve)|0,u=u+Math.imul(j,pe)|0,u=u+Math.imul(V,ve)|0,x=x+Math.imul(V,pe)|0,w=w+Math.imul(H,be)|0,u=u+Math.imul(H,me)|0,u=u+Math.imul(K,be)|0,x=x+Math.imul(K,me)|0,w=w+Math.imul(O,ye)|0,u=u+Math.imul(O,ge)|0,u=u+Math.imul(F,ye)|0,x=x+Math.imul(F,ge)|0,w=w+Math.imul(P,_e)|0,u=u+Math.imul(P,we)|0,u=u+Math.imul(D,_e)|0,x=x+Math.imul(D,we)|0;var kr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,w=Math.imul(re,ae),u=Math.imul(re,fe),u=u+Math.imul(ie,ae)|0,x=Math.imul(ie,fe),w=w+Math.imul(ee,ne)|0,u=u+Math.imul(ee,se)|0,u=u+Math.imul(te,ne)|0,x=x+Math.imul(te,se)|0,w=w+Math.imul($,oe)|0,u=u+Math.imul($,he)|0,u=u+Math.imul(Q,oe)|0,x=x+Math.imul(Q,he)|0,w=w+Math.imul(J,de)|0,u=u+Math.imul(J,ce)|0,u=u+Math.imul(Y,de)|0,x=x+Math.imul(Y,ce)|0,w=w+Math.imul(X,ue)|0,u=u+Math.imul(X,le)|0,u=u+Math.imul(G,ue)|0,x=x+Math.imul(G,le)|0,w=w+Math.imul(W,ve)|0,u=u+Math.imul(W,pe)|0,u=u+Math.imul(Z,ve)|0,x=x+Math.imul(Z,pe)|0,w=w+Math.imul(j,be)|0,u=u+Math.imul(j,me)|0,u=u+Math.imul(V,be)|0,x=x+Math.imul(V,me)|0,w=w+Math.imul(H,ye)|0,u=u+Math.imul(H,ge)|0,u=u+Math.imul(K,ye)|0,x=x+Math.imul(K,ge)|0,w=w+Math.imul(O,_e)|0,u=u+Math.imul(O,we)|0,u=u+Math.imul(F,_e)|0,x=x+Math.imul(F,we)|0,w=w+Math.imul(P,Te)|0,u=u+Math.imul(P,Ne)|0,u=u+Math.imul(D,Te)|0,x=x+Math.imul(D,Ne)|0;var Ir=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,w=Math.imul(re,ne),u=Math.imul(re,se),u=u+Math.imul(ie,ne)|0,x=Math.imul(ie,se),w=w+Math.imul(ee,oe)|0,u=u+Math.imul(ee,he)|0,u=u+Math.imul(te,oe)|0,x=x+Math.imul(te,he)|0,w=w+Math.imul($,de)|0,u=u+Math.imul($,ce)|0,u=u+Math.imul(Q,de)|0,x=x+Math.imul(Q,ce)|0,w=w+Math.imul(J,ue)|0,u=u+Math.imul(J,le)|0,u=u+Math.imul(Y,ue)|0,x=x+Math.imul(Y,le)|0,w=w+Math.imul(X,ve)|0,u=u+Math.imul(X,pe)|0,u=u+Math.imul(G,ve)|0,x=x+Math.imul(G,pe)|0,w=w+Math.imul(W,be)|0,u=u+Math.imul(W,me)|0,u=u+Math.imul(Z,be)|0,x=x+Math.imul(Z,me)|0,w=w+Math.imul(j,ye)|0,u=u+Math.imul(j,ge)|0,u=u+Math.imul(V,ye)|0,x=x+Math.imul(V,ge)|0,w=w+Math.imul(H,_e)|0,u=u+Math.imul(H,we)|0,u=u+Math.imul(K,_e)|0,x=x+Math.imul(K,we)|0,w=w+Math.imul(O,Te)|0,u=u+Math.imul(O,Ne)|0,u=u+Math.imul(F,Te)|0,x=x+Math.imul(F,Ne)|0;var Rr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,w=Math.imul(re,oe),u=Math.imul(re,he),u=u+Math.imul(ie,oe)|0,x=Math.imul(ie,he),w=w+Math.imul(ee,de)|0,u=u+Math.imul(ee,ce)|0,u=u+Math.imul(te,de)|0,x=x+Math.imul(te,ce)|0,w=w+Math.imul($,ue)|0,u=u+Math.imul($,le)|0,u=u+Math.imul(Q,ue)|0,x=x+Math.imul(Q,le)|0,w=w+Math.imul(J,ve)|0,u=u+Math.imul(J,pe)|0,u=u+Math.imul(Y,ve)|0,x=x+Math.imul(Y,pe)|0,w=w+Math.imul(X,be)|0,u=u+Math.imul(X,me)|0,u=u+Math.imul(G,be)|0,x=x+Math.imul(G,me)|0,w=w+Math.imul(W,ye)|0,u=u+Math.imul(W,ge)|0,u=u+Math.imul(Z,ye)|0,x=x+Math.imul(Z,ge)|0,w=w+Math.imul(j,_e)|0,u=u+Math.imul(j,we)|0,u=u+Math.imul(V,_e)|0,x=x+Math.imul(V,we)|0,w=w+Math.imul(H,Te)|0,u=u+Math.imul(H,Ne)|0,u=u+Math.imul(K,Te)|0,x=x+Math.imul(K,Ne)|0;var Cr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,w=Math.imul(re,de),u=Math.imul(re,ce),u=u+Math.imul(ie,de)|0,x=Math.imul(ie,ce),w=w+Math.imul(ee,ue)|0,u=u+Math.imul(ee,le)|0,u=u+Math.imul(te,ue)|0,x=x+Math.imul(te,le)|0,w=w+Math.imul($,ve)|0,u=u+Math.imul($,pe)|0,u=u+Math.imul(Q,ve)|0,x=x+Math.imul(Q,pe)|0,w=w+Math.imul(J,be)|0,u=u+Math.imul(J,me)|0,u=u+Math.imul(Y,be)|0,x=x+Math.imul(Y,me)|0,w=w+Math.imul(X,ye)|0,u=u+Math.imul(X,ge)|0,u=u+Math.imul(G,ye)|0,x=x+Math.imul(G,ge)|0,w=w+Math.imul(W,_e)|0,u=u+Math.imul(W,we)|0,u=u+Math.imul(Z,_e)|0,x=x+Math.imul(Z,we)|0,w=w+Math.imul(j,Te)|0,u=u+Math.imul(j,Ne)|0,u=u+Math.imul(V,Te)|0,x=x+Math.imul(V,Ne)|0;var Dr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,w=Math.imul(re,ue),u=Math.imul(re,le),u=u+Math.imul(ie,ue)|0,x=Math.imul(ie,le),w=w+Math.imul(ee,ve)|0,u=u+Math.imul(ee,pe)|0,u=u+Math.imul(te,ve)|0,x=x+Math.imul(te,pe)|0,w=w+Math.imul($,be)|0,u=u+Math.imul($,me)|0,u=u+Math.imul(Q,be)|0,x=x+Math.imul(Q,me)|0,w=w+Math.imul(J,ye)|0,u=u+Math.imul(J,ge)|0,u=u+Math.imul(Y,ye)|0,x=x+Math.imul(Y,ge)|0,w=w+Math.imul(X,_e)|0,u=u+Math.imul(X,we)|0,u=u+Math.imul(G,_e)|0,x=x+Math.imul(G,we)|0,w=w+Math.imul(W,Te)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(Z,Te)|0,x=x+Math.imul(Z,Ne)|0;var Pr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,w=Math.imul(re,ve),u=Math.imul(re,pe),u=u+Math.imul(ie,ve)|0,x=Math.imul(ie,pe),w=w+Math.imul(ee,be)|0,u=u+Math.imul(ee,me)|0,u=u+Math.imul(te,be)|0,x=x+Math.imul(te,me)|0,w=w+Math.imul($,ye)|0,u=u+Math.imul($,ge)|0,u=u+Math.imul(Q,ye)|0,x=x+Math.imul(Q,ge)|0,w=w+Math.imul(J,_e)|0,u=u+Math.imul(J,we)|0,u=u+Math.imul(Y,_e)|0,x=x+Math.imul(Y,we)|0,w=w+Math.imul(X,Te)|0,u=u+Math.imul(X,Ne)|0,u=u+Math.imul(G,Te)|0,x=x+Math.imul(G,Ne)|0;var Tr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(re,be),u=Math.imul(re,me),u=u+Math.imul(ie,be)|0,x=Math.imul(ie,me),w=w+Math.imul(ee,ye)|0,u=u+Math.imul(ee,ge)|0,u=u+Math.imul(te,ye)|0,x=x+Math.imul(te,ge)|0,w=w+Math.imul($,_e)|0,u=u+Math.imul($,we)|0,u=u+Math.imul(Q,_e)|0,x=x+Math.imul(Q,we)|0,w=w+Math.imul(J,Te)|0,u=u+Math.imul(J,Ne)|0,u=u+Math.imul(Y,Te)|0,x=x+Math.imul(Y,Ne)|0;var Nr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,w=Math.imul(re,ye),u=Math.imul(re,ge),u=u+Math.imul(ie,ye)|0,x=Math.imul(ie,ge),w=w+Math.imul(ee,_e)|0,u=u+Math.imul(ee,we)|0,u=u+Math.imul(te,_e)|0,x=x+Math.imul(te,we)|0,w=w+Math.imul($,Te)|0,u=u+Math.imul($,Ne)|0,u=u+Math.imul(Q,Te)|0,x=x+Math.imul(Q,Ne)|0;var nn=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(nn>>>26)|0,nn&=67108863,w=Math.imul(re,_e),u=Math.imul(re,we),u=u+Math.imul(ie,_e)|0,x=Math.imul(ie,we),w=w+Math.imul(ee,Te)|0,u=u+Math.imul(ee,Ne)|0,u=u+Math.imul(te,Te)|0,x=x+Math.imul(te,Ne)|0;var sn=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(re,Te),u=Math.imul(re,Ne),u=u+Math.imul(ie,Te)|0,x=Math.imul(ie,Ne);var on=(g+w|0)+((u&8191)<<13)|0;return g=(x+(u>>>13)|0)+(on>>>26)|0,on&=67108863,o[0]=wr,o[1]=xr,o[2]=Mr,o[3]=Sr,o[4]=Ar,o[5]=Er,o[6]=qr,o[7]=Br,o[8]=kr,o[9]=Ir,o[10]=Rr,o[11]=Cr,o[12]=Dr,o[13]=Pr,o[14]=Tr,o[15]=Nr,o[16]=nn,o[17]=sn,o[18]=on,g!==0&&(o[19]=g,v.length++),v},\"comb10MulTo\");Math.imul||(N=L);function z(l,n,h){h.negative=n.negative^l.negative,h.length=l.length+n.length;for(var v=0,m=0,b=0;b<h.length-1;b++){var o=m;m=0;for(var g=v&67108863,w=Math.min(b,n.length-1),u=Math.max(0,b-l.length+1);u<=w;u++){var x=b-u,C=l.words[x]|0,P=n.words[u]|0,D=C*P,U=D&67108863;o=o+(D/67108864|0)|0,U=U+g|0,g=U&67108863,o=o+(U>>>26)|0,m+=o>>>26,o&=67108863}h.words[b]=g,v=o,o=m}return v!==0?h.words[b]=v:h.length--,h._strip()}f(z,\"bigMulTo\");function Ee(l,n,h){return z(l,n,h)}f(Ee,\"jumboMulTo\"),i.prototype.mulTo=f(function(n,h){var v,m=this.length+n.length;return this.length===10&&n.length===10?v=N(this,n,h):m<63?v=L(this,n,h):m<1024?v=z(this,n,h):v=Ee(this,n,h),v},\"mulTo\");function qe(l,n){this.x=l,this.y=n}f(qe,\"FFTM\"),qe.prototype.makeRBT=f(function(n){for(var h=new Array(n),v=i.prototype._countBits(n)-1,m=0;m<n;m++)h[m]=this.revBin(m,v,n);return h},\"makeRBT\"),qe.prototype.revBin=f(function(n,h,v){if(n===0||n===v-1)return n;for(var m=0,b=0;b<h;b++)m|=(n&1)<<h-b-1,n>>=1;return m},\"revBin\"),qe.prototype.permute=f(function(n,h,v,m,b,o){for(var g=0;g<o;g++)m[g]=h[n[g]],b[g]=v[n[g]]},\"permute\"),qe.prototype.transform=f(function(n,h,v,m,b,o){this.permute(o,n,h,v,m,b);for(var g=1;g<b;g<<=1)for(var w=g<<1,u=Math.cos(2*Math.PI/w),x=Math.sin(2*Math.PI/w),C=0;C<b;C+=w)for(var P=u,D=x,U=0;U<g;U++){var O=v[C+U],F=m[C+U],xt=v[C+U+g],H=m[C+U+g],K=P*xt-D*H;H=P*H+D*xt,xt=K,v[C+U]=O+xt,m[C+U]=F+H,v[C+U+g]=O-xt,m[C+U+g]=F-H,U!==w&&(K=u*P-x*D,D=u*D+x*P,P=K)}},\"transform\"),qe.prototype.guessLen13b=f(function(n,h){var v=Math.max(h,n)|1,m=v&1,b=0;for(v=v/2|0;v;v=v>>>1)b++;return 1<<b+1+m},\"guessLen13b\"),qe.prototype.conjugate=f(function(n,h,v){if(!(v<=1))for(var m=0;m<v/2;m++){var b=n[m];n[m]=n[v-m-1],n[v-m-1]=b,b=h[m],h[m]=-h[v-m-1],h[v-m-1]=-b}},\"conjugate\"),qe.prototype.normalize13b=f(function(n,h){for(var v=0,m=0;m<h/2;m++){var b=Math.round(n[2*m+1]/h)*8192+Math.round(n[2*m]/h)+v;n[m]=b&67108863,b<67108864?v=0:v=b/67108864|0}return n},\"normalize13b\"),qe.prototype.convert13b=f(function(n,h,v,m){for(var b=0,o=0;o<h;o++)b=b+(n[o]|0),v[2*o]=b&8191,b=b>>>13,v[2*o+1]=b&8191,b=b>>>13;for(o=2*h;o<m;++o)v[o]=0;r(b===0),r((b&-8192)===0)},\"convert13b\"),qe.prototype.stub=f(function(n){for(var h=new Array(n),v=0;v<n;v++)h[v]=0;return h},\"stub\"),qe.prototype.mulp=f(function(n,h,v){var m=2*this.guessLen13b(n.length,h.length),b=this.makeRBT(m),o=this.stub(m),g=new Array(m),w=new Array(m),u=new Array(m),x=new Array(m),C=new Array(m),P=new Array(m),D=v.words;D.length=m,this.convert13b(n.words,n.length,g,m),this.convert13b(h.words,h.length,x,m),this.transform(g,o,w,u,m,b),this.transform(x,o,C,P,m,b);for(var U=0;U<m;U++){var O=w[U]*C[U]-u[U]*P[U];u[U]=w[U]*P[U]+u[U]*C[U],w[U]=O}return this.conjugate(w,u,m),this.transform(w,u,D,o,m,b),this.conjugate(D,o,m),this.normalize13b(D,m),v.negative=n.negative^h.negative,v.length=n.length+h.length,v._strip()},\"mulp\"),i.prototype.mul=f(function(n){var h=new i(null);return h.words=new Array(this.length+n.length),this.mulTo(n,h)},\"mul\"),i.prototype.mulf=f(function(n){var h=new i(null);return h.words=new Array(this.length+n.length),Ee(this,n,h)},\"mulf\"),i.prototype.imul=f(function(n){return this.clone().mulTo(n,this)},\"imul\"),i.prototype.imuln=f(function(n){var h=n<0;h&&(n=-n),r(typeof n==\"number\"),r(n<67108864);for(var v=0,m=0;m<this.length;m++){var b=(this.words[m]|0)*n,o=(b&67108863)+(v&67108863);v>>=26,v+=b/67108864|0,v+=o>>>26,this.words[m]=o&67108863}return v!==0&&(this.words[m]=v,this.length++),n===0&&(this.length=1,this._normSign()),h?this.ineg():this},\"imuln\"),i.prototype.muln=f(function(n){return this.clone().imuln(n)},\"muln\"),i.prototype.sqr=f(function(){return this.mul(this)},\"sqr\"),i.prototype.isqr=f(function(){return this.imul(this.clone())},\"isqr\"),i.prototype.pow=f(function(n){var h=T(n);if(h.length===0)return new i(1);for(var v=this,m=0;m<h.length&&h[m]===0;m++,v=v.sqr());if(++m<h.length)for(var b=v.sqr();m<h.length;m++,b=b.sqr())h[m]!==0&&(v=v.mul(b));return v},\"pow\"),i.prototype.iushln=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26,m=67108863>>>26-h<<26-h,b;if(h!==0){var o=0;for(b=0;b<this.length;b++){var g=this.words[b]&m,w=(this.words[b]|0)-g<<h;this.words[b]=w|o,o=g>>>26-h}o&&(this.words[b]=o,this.length++)}if(v!==0){for(b=this.length-1;b>=0;b--)this.words[b+v]=this.words[b];for(b=0;b<v;b++)this.words[b]=0;this.length+=v}return this._strip()},\"iushln\"),i.prototype.ishln=f(function(n){return r(this.negative===0),this.iushln(n)},\"ishln\"),i.prototype.iushrn=f(function(n,h,v){r(typeof n==\"number\"&&n>=0);var m;h?m=(h-h%26)/26:m=0;var b=n%26,o=Math.min((n-b)/26,this.length),g=67108863^67108863>>>b<<b,w=v;if(m-=o,m=Math.max(0,m),w){for(var u=0;u<o;u++)w.words[u]=this.words[u];w.length=o}if(o!==0)if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var x=0;for(u=this.length-1;u>=0&&(x!==0||u>=m);u--){var C=this.words[u]|0;this.words[u]=x<<26-b|C>>>b,x=C&g}return w&&x!==0&&(w.words[w.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},\"iushrn\"),i.prototype.ishrn=f(function(n,h,v){return r(this.negative===0),this.iushrn(n,h,v)},\"ishrn\"),i.prototype.shln=f(function(n){return this.clone().ishln(n)},\"shln\"),i.prototype.ushln=f(function(n){return this.clone().iushln(n)},\"ushln\"),i.prototype.shrn=f(function(n){return this.clone().ishrn(n)},\"shrn\"),i.prototype.ushrn=f(function(n){return this.clone().iushrn(n)},\"ushrn\"),i.prototype.testn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26,m=1<<h;if(this.length<=v)return!1;var b=this.words[v];return!!(b&m)},\"testn\"),i.prototype.imaskn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=v)return this;if(h!==0&&v++,this.length=Math.min(v,this.length),h!==0){var m=67108863^67108863>>>h<<h;this.words[this.length-1]&=m}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},\"imaskn\"),i.prototype.maskn=f(function(n){return this.clone().imaskn(n)},\"maskn\"),i.prototype.iaddn=f(function(n){return r(typeof n==\"number\"),r(n<67108864),n<0?this.isubn(-n):this.negative!==0?this.length===1&&(this.words[0]|0)<=n?(this.words[0]=n-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},\"iaddn\"),i.prototype._iaddn=f(function(n){this.words[0]+=n;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},\"_iaddn\"),i.prototype.isubn=f(function(n){if(r(typeof n==\"number\"),r(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},\"isubn\"),i.prototype.addn=f(function(n){return this.clone().iaddn(n)},\"addn\"),i.prototype.subn=f(function(n){return this.clone().isubn(n)},\"subn\"),i.prototype.iabs=f(function(){return this.negative=0,this},\"iabs\"),i.prototype.abs=f(function(){return this.clone().iabs()},\"abs\"),i.prototype._ishlnsubmul=f(function(n,h,v){var m=n.length+v,b;this._expand(m);var o,g=0;for(b=0;b<n.length;b++){o=(this.words[b+v]|0)+g;var w=(n.words[b]|0)*h;o-=w&67108863,g=(o>>26)-(w/67108864|0),this.words[b+v]=o&67108863}for(;b<this.length-v;b++)o=(this.words[b+v]|0)+g,g=o>>26,this.words[b+v]=o&67108863;if(g===0)return this._strip();for(r(g===-1),g=0,b=0;b<this.length;b++)o=-(this.words[b]|0)+g,g=o>>26,this.words[b]=o&67108863;return this.negative=1,this._strip()},\"_ishlnsubmul\"),i.prototype._wordDiv=f(function(n,h){var v=this.length-n.length,m=this.clone(),b=n,o=b.words[b.length-1]|0,g=this._countBits(o);v=26-g,v!==0&&(b=b.ushln(v),m.iushln(v),o=b.words[b.length-1]|0);var w=m.length-b.length,u;if(h!==\"mod\"){u=new i(null),u.length=w+1,u.words=new Array(u.length);for(var x=0;x<u.length;x++)u.words[x]=0}var C=m.clone()._ishlnsubmul(b,1,w);C.negative===0&&(m=C,u&&(u.words[w]=1));for(var P=w-1;P>=0;P--){var D=(m.words[b.length+P]|0)*67108864+(m.words[b.length+P-1]|0);for(D=Math.min(D/o|0,67108863),m._ishlnsubmul(b,D,P);m.negative!==0;)D--,m.negative=0,m._ishlnsubmul(b,1,P),m.isZero()||(m.negative^=1);u&&(u.words[P]=D)}return u&&u._strip(),m._strip(),h!==\"div\"&&v!==0&&m.iushrn(v),{div:u||null,mod:m}},\"_wordDiv\"),i.prototype.divmod=f(function(n,h,v){if(r(!n.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var m,b,o;return this.negative!==0&&n.negative===0?(o=this.neg().divmod(n,h),h!==\"mod\"&&(m=o.div.neg()),h!==\"div\"&&(b=o.mod.neg(),v&&b.negative!==0&&b.iadd(n)),{div:m,mod:b}):this.negative===0&&n.negative!==0?(o=this.divmod(n.neg(),h),h!==\"mod\"&&(m=o.div.neg()),{div:m,mod:o.mod}):(this.negative&n.negative)!==0?(o=this.neg().divmod(n.neg(),h),h!==\"div\"&&(b=o.mod.neg(),v&&b.negative!==0&&b.isub(n)),{div:o.div,mod:b}):n.length>this.length||this.cmp(n)<0?{div:new i(0),mod:this}:n.length===1?h===\"div\"?{div:this.divn(n.words[0]),mod:null}:h===\"mod\"?{div:null,mod:new i(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new i(this.modrn(n.words[0]))}:this._wordDiv(n,h)},\"divmod\"),i.prototype.div=f(function(n){return this.divmod(n,\"div\",!1).div},\"div\"),i.prototype.mod=f(function(n){return this.divmod(n,\"mod\",!1).mod},\"mod\"),i.prototype.umod=f(function(n){return this.divmod(n,\"mod\",!0).mod},\"umod\"),i.prototype.divRound=f(function(n){var h=this.divmod(n);if(h.mod.isZero())return h.div;var v=h.mod.abs(),m=n.abs().iushrn(1),b=n.words[0]&1,o=v.cmp(m);if(o<0||b===1&&o===0)return h.div;var g=new i(1);return g.negative=this.negative^n.negative,h.div.iadd(g)},\"divRound\"),i.prototype.modrn=f(function(n){var h=n<0;h&&(n=-n),r(n<=67108863);for(var v=(1<<26)%n,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%n;return h?-m:m},\"modrn\"),i.prototype.modn=f(function(n){return this.modrn(n)},\"modn\"),i.prototype.idivn=f(function(n){var h=n<0;h&&(n=-n),r(n<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/n|0,v=b%n}return this._strip(),h?this.ineg():this},\"idivn\"),i.prototype.divn=f(function(n){return this.clone().idivn(n)},\"divn\"),i.prototype.egcd=f(function(n){r(n.negative===0),r(!n.isZero());var h=this,v=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var m=new i(1),b=new i(0),o=new i(0),g=new i(1),w=0;h.isEven()&&v.isEven();)h.iushrn(1),v.iushrn(1),++w;for(var u=v.clone(),x=h.clone();!h.isZero();){for(var C=0,P=1;(h.words[0]&P)===0&&C<26;++C,P<<=1);if(C>0)for(h.iushrn(C);C-- >0;)(m.isOdd()||b.isOdd())&&(m.iadd(u),b.isub(x)),m.iushrn(1),b.iushrn(1);for(var D=0,U=1;(v.words[0]&U)===0&&D<26;++D,U<<=1);if(D>0)for(v.iushrn(D);D-- >0;)(o.isOdd()||g.isOdd())&&(o.iadd(u),g.isub(x)),o.iushrn(1),g.iushrn(1);h.cmp(v)>=0?(h.isub(v),m.isub(o),b.isub(g)):(v.isub(h),o.isub(m),g.isub(b))}return{a:o,b:g,gcd:v.iushln(w)}},\"egcd\"),i.prototype._invmp=f(function(n){r(n.negative===0),r(!n.isZero());var h=this,v=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var m=new i(1),b=new i(0),o=v.clone();h.cmpn(1)>0&&v.cmpn(1)>0;){for(var g=0,w=1;(h.words[0]&w)===0&&g<26;++g,w<<=1);if(g>0)for(h.iushrn(g);g-- >0;)m.isOdd()&&m.iadd(o),m.iushrn(1);for(var u=0,x=1;(v.words[0]&x)===0&&u<26;++u,x<<=1);if(u>0)for(v.iushrn(u);u-- >0;)b.isOdd()&&b.iadd(o),b.iushrn(1);h.cmp(v)>=0?(h.isub(v),m.isub(b)):(v.isub(h),b.isub(m))}var C;return h.cmpn(1)===0?C=m:C=b,C.cmpn(0)<0&&C.iadd(n),C},\"_invmp\"),i.prototype.gcd=f(function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var h=this.clone(),v=n.clone();h.negative=0,v.negative=0;for(var m=0;h.isEven()&&v.isEven();m++)h.iushrn(1),v.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;v.isEven();)v.iushrn(1);var b=h.cmp(v);if(b<0){var o=h;h=v,v=o}else if(b===0||v.cmpn(1)===0)break;h.isub(v)}while(!0);return v.iushln(m)},\"gcd\"),i.prototype.invm=f(function(n){return this.egcd(n).a.umod(n)},\"invm\"),i.prototype.isEven=f(function(){return(this.words[0]&1)===0},\"isEven\"),i.prototype.isOdd=f(function(){return(this.words[0]&1)===1},\"isOdd\"),i.prototype.andln=f(function(n){return this.words[0]&n},\"andln\"),i.prototype.bincn=f(function(n){r(typeof n==\"number\");var h=n%26,v=(n-h)/26,m=1<<h;if(this.length<=v)return this._expand(v+1),this.words[v]|=m,this;for(var b=m,o=v;b!==0&&o<this.length;o++){var g=this.words[o]|0;g+=b,b=g>>>26,g&=67108863,this.words[o]=g}return b!==0&&(this.words[o]=b,this.length++),this},\"bincn\"),i.prototype.isZero=f(function(){return this.length===1&&this.words[0]===0},\"isZero\"),i.prototype.cmpn=f(function(n){var h=n<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var v;if(this.length>1)v=1;else{h&&(n=-n),r(n<=67108863,\"Number is too big\");var m=this.words[0]|0;v=m===n?0:m<n?-1:1}return this.negative!==0?-v|0:v},\"cmpn\"),i.prototype.cmp=f(function(n){if(this.negative!==0&&n.negative===0)return-1;if(this.negative===0&&n.negative!==0)return 1;var h=this.ucmp(n);return this.negative!==0?-h|0:h},\"cmp\"),i.prototype.ucmp=f(function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var h=0,v=this.length-1;v>=0;v--){var m=this.words[v]|0,b=n.words[v]|0;if(m!==b){m<b?h=-1:m>b&&(h=1);break}}return h},\"ucmp\"),i.prototype.gtn=f(function(n){return this.cmpn(n)===1},\"gtn\"),i.prototype.gt=f(function(n){return this.cmp(n)===1},\"gt\"),i.prototype.gten=f(function(n){return this.cmpn(n)>=0},\"gten\"),i.prototype.gte=f(function(n){return this.cmp(n)>=0},\"gte\"),i.prototype.ltn=f(function(n){return this.cmpn(n)===-1},\"ltn\"),i.prototype.lt=f(function(n){return this.cmp(n)===-1},\"lt\"),i.prototype.lten=f(function(n){return this.cmpn(n)<=0},\"lten\"),i.prototype.lte=f(function(n){return this.cmp(n)<=0},\"lte\"),i.prototype.eqn=f(function(n){return this.cmpn(n)===0},\"eqn\"),i.prototype.eq=f(function(n){return this.cmp(n)===0},\"eq\"),i.red=f(function(n){return new d(n)},\"red\"),i.prototype.toRed=f(function(n){return r(!this.red,\"Already a number in reduction context\"),r(this.negative===0,\"red works only with positives\"),n.convertTo(this)._forceRed(n)},\"toRed\"),i.prototype.fromRed=f(function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},\"fromRed\"),i.prototype._forceRed=f(function(n){return this.red=n,this},\"_forceRed\"),i.prototype.forceRed=f(function(n){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(n)},\"forceRed\"),i.prototype.redAdd=f(function(n){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,n)},\"redAdd\"),i.prototype.redIAdd=f(function(n){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,n)},\"redIAdd\"),i.prototype.redSub=f(function(n){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,n)},\"redSub\"),i.prototype.redISub=f(function(n){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,n)},\"redISub\"),i.prototype.redShl=f(function(n){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,n)},\"redShl\"),i.prototype.redMul=f(function(n){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,n),this.red.mul(this,n)},\"redMul\"),i.prototype.redIMul=f(function(n){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,n),this.red.imul(this,n)},\"redIMul\"),i.prototype.redSqr=f(function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},\"redSqr\"),i.prototype.redISqr=f(function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},\"redISqr\"),i.prototype.redSqrt=f(function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},\"redSqrt\"),i.prototype.redInvm=f(function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},\"redInvm\"),i.prototype.redNeg=f(function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},\"redNeg\"),i.prototype.redPow=f(function(n){return r(this.red&&!n.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,n)},\"redPow\");var De={k256:null,p224:null,p192:null,p25519:null};function ke(l,n){this.name=l,this.p=new i(n,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f(ke,\"MPrime\"),ke.prototype._tmp=f(function(){var n=new i(null);return n.words=new Array(Math.ceil(this.n/13)),n},\"_tmp\"),ke.prototype.ireduce=f(function(n){var h=n,v;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),v=h.bitLength();while(v>this.n);var m=v<this.n?-1:h.ucmp(this.p);return m===0?(h.words[0]=0,h.length=1):m>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},\"ireduce\"),ke.prototype.split=f(function(n,h){n.iushrn(this.n,0,h)},\"split\"),ke.prototype.imulK=f(function(n){return n.imul(this.k)},\"imulK\");function Ue(){ke.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}f(Ue,\"K256\"),a(Ue,ke),Ue.prototype.split=f(function(n,h){for(var v=4194303,m=Math.min(n.length,9),b=0;b<m;b++)h.words[b]=n.words[b];if(h.length=m,n.length<=9){n.words[0]=0,n.length=1;return}var o=n.words[9];for(h.words[h.length++]=o&v,b=10;b<n.length;b++){var g=n.words[b]|0;n.words[b-10]=(g&v)<<4|o>>>22,o=g}o>>>=22,n.words[b-10]=o,o===0&&n.length>10?n.length-=10:n.length-=9},\"split\"),Ue.prototype.imulK=f(function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var h=0,v=0;v<n.length;v++){var m=n.words[v]|0;h+=m*977,n.words[v]=h&67108863,h=m*64+(h/67108864|0)}return n.words[n.length-1]===0&&(n.length--,n.words[n.length-1]===0&&n.length--),n},\"imulK\");function Ae(){ke.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}f(Ae,\"P224\"),a(Ae,ke);function Le(){ke.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}f(Le,\"P192\"),a(Le,ke);function E(){ke.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}f(E,\"P25519\"),a(E,ke),E.prototype.imulK=f(function(n){for(var h=0,v=0;v<n.length;v++){var m=(n.words[v]|0)*19+h,b=m&67108863;m>>>=26,n.words[v]=b,h=m}return h!==0&&(n.words[n.length++]=h),n},\"imulK\"),i._prime=f(function(n){if(De[n])return De[n];var h;if(n===\"k256\")h=new Ue;else if(n===\"p224\")h=new Ae;else if(n===\"p192\")h=new Le;else if(n===\"p25519\")h=new E;else throw new Error(\"Unknown prime \"+n);return De[n]=h,h},\"prime\");function d(l){if(typeof l==\"string\"){var n=i._prime(l);this.m=n.p,this.prime=n}else r(l.gtn(1),\"modulus must be greater than 1\"),this.m=l,this.prime=null}f(d,\"Red\"),d.prototype._verify1=f(function(n){r(n.negative===0,\"red works only with positives\"),r(n.red,\"red works only with red numbers\")},\"_verify1\"),d.prototype._verify2=f(function(n,h){r((n.negative|h.negative)===0,\"red works only with positives\"),r(n.red&&n.red===h.red,\"red works only with red numbers\")},\"_verify2\"),d.prototype.imod=f(function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(S(n,n.umod(this.m)._forceRed(this)),n)},\"imod\"),d.prototype.neg=f(function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},\"neg\"),d.prototype.add=f(function(n,h){this._verify2(n,h);var v=n.add(h);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},\"add\"),d.prototype.iadd=f(function(n,h){this._verify2(n,h);var v=n.iadd(h);return v.cmp(this.m)>=0&&v.isub(this.m),v},\"iadd\"),d.prototype.sub=f(function(n,h){this._verify2(n,h);var v=n.sub(h);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},\"sub\"),d.prototype.isub=f(function(n,h){this._verify2(n,h);var v=n.isub(h);return v.cmpn(0)<0&&v.iadd(this.m),v},\"isub\"),d.prototype.shl=f(function(n,h){return this._verify1(n),this.imod(n.ushln(h))},\"shl\"),d.prototype.imul=f(function(n,h){return this._verify2(n,h),this.imod(n.imul(h))},\"imul\"),d.prototype.mul=f(function(n,h){return this._verify2(n,h),this.imod(n.mul(h))},\"mul\"),d.prototype.isqr=f(function(n){return this.imul(n,n.clone())},\"isqr\"),d.prototype.sqr=f(function(n){return this.mul(n,n)},\"sqr\"),d.prototype.sqrt=f(function(n){if(n.isZero())return n.clone();var h=this.m.andln(3);if(r(h%2===1),h===3){var v=this.m.add(new i(1)).iushrn(2);return this.pow(n,v)}for(var m=this.m.subn(1),b=0;!m.isZero()&&m.andln(1)===0;)b++,m.iushrn(1);r(!m.isZero());var o=new i(1).toRed(this),g=o.redNeg(),w=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);this.pow(u,w).cmp(g)!==0;)u.redIAdd(g);for(var x=this.pow(u,m),C=this.pow(n,m.addn(1).iushrn(1)),P=this.pow(n,m),D=b;P.cmp(o)!==0;){for(var U=P,O=0;U.cmp(o)!==0;O++)U=U.redSqr();r(O<D);var F=this.pow(x,new i(1).iushln(D-O-1));C=C.redMul(F),x=F.redSqr(),P=P.redMul(x),D=O}return C},\"sqrt\"),d.prototype.invm=f(function(n){var h=n._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},\"invm\"),d.prototype.pow=f(function(n,h){if(h.isZero())return new i(1).toRed(this);if(h.cmpn(1)===0)return n.clone();var v=4,m=new Array(1<<v);m[0]=new i(1).toRed(this),m[1]=n;for(var b=2;b<m.length;b++)m[b]=this.mul(m[b-1],n);var o=m[0],g=0,w=0,u=h.bitLength()%26;for(u===0&&(u=26),b=h.length-1;b>=0;b--){for(var x=h.words[b],C=u-1;C>=0;C--){var P=x>>C&1;if(o!==m[0]&&(o=this.sqr(o)),P===0&&g===0){w=0;continue}g<<=1,g|=P,w++,!(w!==v&&(b!==0||C!==0))&&(o=this.mul(o,m[g]),w=0,g=0)}u=26}return o},\"pow\"),d.prototype.convertTo=f(function(n){var h=n.umod(this.m);return h===n?h.clone():h},\"convertTo\"),d.prototype.convertFrom=f(function(n){var h=n.clone();return h.red=null,h},\"convertFrom\"),i.mont=f(function(n){return new y(n)},\"mont\");function y(l){d.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(y,\"Mont\"),a(y,d),y.prototype.convertTo=f(function(n){return this.imod(n.ushln(this.shift))},\"convertTo\"),y.prototype.convertFrom=f(function(n){var h=this.imod(n.mul(this.rinv));return h.red=null,h},\"convertFrom\"),y.prototype.imul=f(function(n,h){if(n.isZero()||h.isZero())return n.words[0]=0,n.length=1,n;var v=n.imul(h),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),o=b;return b.cmp(this.m)>=0?o=b.isub(this.m):b.cmpn(0)<0&&(o=b.iadd(this.m)),o._forceRed(this)},\"imul\"),y.prototype.mul=f(function(n,h){if(n.isZero()||h.isZero())return new i(0)._forceRed(this);var v=n.mul(h),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),o=b;return b.cmp(this.m)>=0?o=b.isub(this.m):b.cmpn(0)<0&&(o=b.iadd(this.m)),o._forceRed(this)},\"mul\"),y.prototype.invm=f(function(n){var h=this.imod(n._invmp(this.m).mul(this.r2));return h._forceRed(this)},\"invm\")})(typeof A0>\"u\"||A0,Vd)});var If=k((lm,Xd)=>{\"use strict\";M();var wi=kf(),Rb=Or(),Cb=xe().Buffer;function Wd(t){var e=t.modulus.byteLength(),r;do r=new wi(Rb(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}f(Wd,\"getr\");function Db(t){var e=Wd(t),r=e.toRed(wi.mont(t.modulus)).redPow(new wi(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}f(Db,\"blind\");function Zd(t,e){var r=Db(e),a=e.modulus.byteLength(),i=new wi(t).mul(r.blinder).umod(e.modulus),s=i.toRed(wi.mont(e.prime1)),c=i.toRed(wi.mont(e.prime2)),p=e.coefficient,_=e.prime1,S=e.prime2,A=s.redPow(e.exponent1).fromRed(),q=c.redPow(e.exponent2).fromRed(),B=A.isub(q).imul(p).umod(_).imul(S);return q.iadd(B).imul(r.unblinder).umod(e.modulus).toArrayLike(Cb,\"be\",a)}f(Zd,\"crt\");Zd.getr=Wd;Xd.exports=Zd});var Gd=k((bm,Pb)=>{Pb.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\"}}});var E0=k($d=>{\"use strict\";M();var Rf=$d;function Tb(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t!=\"string\"){for(var a=0;a<t.length;a++)r[a]=t[a]|0;return r}if(e===\"hex\"){t=t.replace(/[^a-z0-9]+/ig,\"\"),t.length%2!==0&&(t=\"0\"+t);for(var a=0;a<t.length;a+=2)r.push(parseInt(t[a]+t[a+1],16))}else for(var a=0;a<t.length;a++){var i=t.charCodeAt(a),s=i>>8,c=i&255;s?r.push(s,c):r.push(c)}return r}f(Tb,\"toArray\");Rf.toArray=Tb;function Jd(t){return t.length===1?\"0\"+t:t}f(Jd,\"zero2\");Rf.zero2=Jd;function Yd(t){for(var e=\"\",r=0;r<t.length;r++)e+=Jd(t[r].toString(16));return e}f(Yd,\"toHex\");Rf.toHex=Yd;Rf.encode=f(function(e,r){return r===\"hex\"?Yd(e):e},\"encode\")});var dt=k(Qd=>{\"use strict\";M();var qt=Qd,Nb=je(),Ob=ht(),Cf=E0();qt.assert=Ob;qt.toArray=Cf.toArray;qt.zero2=Cf.zero2;qt.toHex=Cf.toHex;qt.encode=Cf.encode;function Lb(t,e,r){var a=new Array(Math.max(t.bitLength(),r)+1),i;for(i=0;i<a.length;i+=1)a[i]=0;var s=1<<e+1,c=t.clone();for(i=0;i<a.length;i++){var p,_=c.andln(s-1);c.isOdd()?(_>(s>>1)-1?p=(s>>1)-_:p=_,c.isubn(p)):p=0,a[i]=p,c.iushrn(1)}return a}f(Lb,\"getNAF\");qt.getNAF=Lb;function Ub(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var a=0,i=0,s;t.cmpn(-a)>0||e.cmpn(-i)>0;){var c=t.andln(3)+a&3,p=e.andln(3)+i&3;c===3&&(c=-1),p===3&&(p=-1);var _;(c&1)===0?_=0:(s=t.andln(7)+a&7,(s===3||s===5)&&p===2?_=-c:_=c),r[0].push(_);var S;(p&1)===0?S=0:(s=e.andln(7)+i&7,(s===3||s===5)&&c===2?S=-p:S=p),r[1].push(S),2*a===_+1&&(a=1-a),2*i===S+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}f(Ub,\"getJSF\");qt.getJSF=Ub;function zb(t,e,r){var a=\"_\"+e;t.prototype[e]=f(function(){return this[a]!==void 0?this[a]:this[a]=r.call(this)},\"cachedProperty\")}f(zb,\"cachedProperty\");qt.cachedProperty=zb;function Fb(t){return typeof t==\"string\"?qt.toArray(t,\"hex\"):t}f(Fb,\"parseBytes\");qt.parseBytes=Fb;function Hb(t){return new Nb(t,\"hex\",\"le\")}f(Hb,\"intFromLE\");qt.intFromLE=Hb});var ka=k((Mm,ec)=>{\"use strict\";M();var Yr=je(),Ba=dt(),Df=Ba.getNAF,Kb=Ba.getJSF,Pf=Ba.assert;function br(t,e){this.type=t,this.p=new Yr(e.p,16),this.red=e.prime?Yr.red(e.prime):Yr.mont(this.p),this.zero=new Yr(0).toRed(this.red),this.one=new Yr(1).toRed(this.red),this.two=new Yr(2).toRed(this.red),this.n=e.n&&new Yr(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}f(br,\"BaseCurve\");ec.exports=br;br.prototype.point=f(function(){throw new Error(\"Not implemented\")},\"point\");br.prototype.validate=f(function(){throw new Error(\"Not implemented\")},\"validate\");br.prototype._fixedNafMul=f(function(e,r){Pf(e.precomputed);var a=e._getDoubles(),i=Df(r,1,this._bitLength),s=(1<<a.step+1)-(a.step%2===0?2:1);s/=3;var c=[],p,_;for(p=0;p<i.length;p+=a.step){_=0;for(var S=p+a.step-1;S>=p;S--)_=(_<<1)+i[S];c.push(_)}for(var A=this.jpoint(null,null,null),q=this.jpoint(null,null,null),B=s;B>0;B--){for(p=0;p<c.length;p++)_=c[p],_===B?q=q.mixedAdd(a.points[p]):_===-B&&(q=q.mixedAdd(a.points[p].neg()));A=A.add(q)}return A.toP()},\"_fixedNafMul\");br.prototype._wnafMul=f(function(e,r){var a=4,i=e._getNAFPoints(a);a=i.wnd;for(var s=i.points,c=Df(r,a,this._bitLength),p=this.jpoint(null,null,null),_=c.length-1;_>=0;_--){for(var S=0;_>=0&&c[_]===0;_--)S++;if(_>=0&&S++,p=p.dblp(S),_<0)break;var A=c[_];Pf(A!==0),e.type===\"affine\"?A>0?p=p.mixedAdd(s[A-1>>1]):p=p.mixedAdd(s[-A-1>>1].neg()):A>0?p=p.add(s[A-1>>1]):p=p.add(s[-A-1>>1].neg())}return e.type===\"affine\"?p.toP():p},\"_wnafMul\");br.prototype._wnafMulAdd=f(function(e,r,a,i,s){var c=this._wnafT1,p=this._wnafT2,_=this._wnafT3,S=0,A,q,B;for(A=0;A<i;A++){B=r[A];var I=B._getNAFPoints(e);c[A]=I.wnd,p[A]=I.points}for(A=i-1;A>=1;A-=2){var R=A-1,T=A;if(c[R]!==1||c[T]!==1){_[R]=Df(a[R],c[R],this._bitLength),_[T]=Df(a[T],c[T],this._bitLength),S=Math.max(_[R].length,S),S=Math.max(_[T].length,S);continue}var L=[r[R],null,null,r[T]];r[R].y.cmp(r[T].y)===0?(L[1]=r[R].add(r[T]),L[2]=r[R].toJ().mixedAdd(r[T].neg())):r[R].y.cmp(r[T].y.redNeg())===0?(L[1]=r[R].toJ().mixedAdd(r[T]),L[2]=r[R].add(r[T].neg())):(L[1]=r[R].toJ().mixedAdd(r[T]),L[2]=r[R].toJ().mixedAdd(r[T].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],z=Kb(a[R],a[T]);for(S=Math.max(z[0].length,S),_[R]=new Array(S),_[T]=new Array(S),q=0;q<S;q++){var Ee=z[0][q]|0,qe=z[1][q]|0;_[R][q]=N[(Ee+1)*3+(qe+1)],_[T][q]=0,p[R]=L}}var De=this.jpoint(null,null,null),ke=this._wnafT4;for(A=S;A>=0;A--){for(var Ue=0;A>=0;){var Ae=!0;for(q=0;q<i;q++)ke[q]=_[q][A]|0,ke[q]!==0&&(Ae=!1);if(!Ae)break;Ue++,A--}if(A>=0&&Ue++,De=De.dblp(Ue),A<0)break;for(q=0;q<i;q++){var Le=ke[q];Le!==0&&(Le>0?B=p[q][Le-1>>1]:Le<0&&(B=p[q][-Le-1>>1].neg()),B.type===\"affine\"?De=De.mixedAdd(B):De=De.add(B))}}for(A=0;A<i;A++)p[A]=null;return s?De:De.toP()},\"_wnafMulAdd\");function mt(t,e){this.curve=t,this.type=e,this.precomputed=null}f(mt,\"BasePoint\");br.BasePoint=mt;mt.prototype.eq=f(function(){throw new Error(\"Not implemented\")},\"eq\");mt.prototype.validate=f(function(){return this.curve.validate(this)},\"validate\");br.prototype.decodePoint=f(function(e,r){e=Ba.toArray(e,r);var a=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*a){e[0]===6?Pf(e[e.length-1]%2===0):e[0]===7&&Pf(e[e.length-1]%2===1);var i=this.point(e.slice(1,1+a),e.slice(1+a,1+2*a));return i}else if((e[0]===2||e[0]===3)&&e.length-1===a)return this.pointFromX(e.slice(1,1+a),e[0]===3);throw new Error(\"Unknown point format\")},\"decodePoint\");mt.prototype.encodeCompressed=f(function(e){return this.encode(e,!0)},\"encodeCompressed\");mt.prototype._encode=f(function(e){var r=this.curve.p.byteLength(),a=this.getX().toArray(\"be\",r);return e?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray(\"be\",r))},\"_encode\");mt.prototype.encode=f(function(e,r){return Ba.encode(this._encode(r),e)},\"encode\");mt.prototype.precompute=f(function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this},\"precompute\");mt.prototype._hasDoubles=f(function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1},\"_hasDoubles\");mt.prototype._getDoubles=f(function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],i=this,s=0;s<r;s+=e){for(var c=0;c<e;c++)i=i.dbl();a.push(i)}return{step:e,points:a}},\"_getDoubles\");mt.prototype._getNAFPoints=f(function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],a=(1<<e)-1,i=a===1?null:this.dbl(),s=1;s<a;s++)r[s]=r[s-1].add(i);return{wnd:e,points:r}},\"_getNAFPoints\");mt.prototype._getBeta=f(function(){return null},\"_getBeta\");mt.prototype.dblp=f(function(e){for(var r=this,a=0;a<e;a++)r=r.dbl();return r},\"dblp\")});var rc=k((Em,tc)=>{\"use strict\";M();var jb=dt(),Oe=je(),q0=Se(),xi=ka(),Vb=jb.assert;function yt(t){xi.call(this,\"short\",t),this.a=new Oe(t.a,16).toRed(this.red),this.b=new Oe(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}f(yt,\"ShortCurve\");q0(yt,xi);tc.exports=yt;yt.prototype._getEndomorphism=f(function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,a;if(e.beta)r=new Oe(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(e.lambda)a=new Oe(e.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(r))===0?a=s[0]:(a=s[1],Vb(this.g.mul(a).x.cmp(this.g.x.redMul(r))===0))}var c;return e.basis?c=e.basis.map(function(p){return{a:new Oe(p.a,16),b:new Oe(p.b,16)}}):c=this._getEndoBasis(a),{beta:r,lambda:a,basis:c}}},\"_getEndomorphism\");yt.prototype._getEndoRoots=f(function(e){var r=e===this.p?this.red:Oe.mont(e),a=new Oe(2).toRed(r).redInvm(),i=a.redNeg(),s=new Oe(3).toRed(r).redNeg().redSqrt().redMul(a),c=i.redAdd(s).fromRed(),p=i.redSub(s).fromRed();return[c,p]},\"_getEndoRoots\");yt.prototype._getEndoBasis=f(function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=e,i=this.n.clone(),s=new Oe(1),c=new Oe(0),p=new Oe(0),_=new Oe(1),S,A,q,B,I,R,T,L=0,N,z;a.cmpn(0)!==0;){var Ee=i.div(a);N=i.sub(Ee.mul(a)),z=p.sub(Ee.mul(s));var qe=_.sub(Ee.mul(c));if(!q&&N.cmp(r)<0)S=T.neg(),A=s,q=N.neg(),B=z;else if(q&&++L===2)break;T=N,i=a,a=N,p=s,s=z,_=c,c=qe}I=N.neg(),R=z;var De=q.sqr().add(B.sqr()),ke=I.sqr().add(R.sqr());return ke.cmp(De)>=0&&(I=S,R=A),q.negative&&(q=q.neg(),B=B.neg()),I.negative&&(I=I.neg(),R=R.neg()),[{a:q,b:B},{a:I,b:R}]},\"_getEndoBasis\");yt.prototype._endoSplit=f(function(e){var r=this.endo.basis,a=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),c=a.b.neg().mul(e).divRound(this.n),p=s.mul(a.a),_=c.mul(i.a),S=s.mul(a.b),A=c.mul(i.b),q=e.sub(p).sub(_),B=S.add(A).neg();return{k1:q,k2:B}},\"_endoSplit\");yt.prototype.pointFromX=f(function(e,r){e=new Oe(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=a.redSqrt();if(i.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error(\"invalid point\");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)},\"pointFromX\");yt.prototype.validate=f(function(e){if(e.inf)return!0;var r=e.x,a=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return a.redSqr().redISub(s).cmpn(0)===0},\"validate\");yt.prototype._endoWnafMulAdd=f(function(e,r,a){for(var i=this._endoWnafT1,s=this._endoWnafT2,c=0;c<e.length;c++){var p=this._endoSplit(r[c]),_=e[c],S=_._getBeta();p.k1.negative&&(p.k1.ineg(),_=_.neg(!0)),p.k2.negative&&(p.k2.ineg(),S=S.neg(!0)),i[c*2]=_,i[c*2+1]=S,s[c*2]=p.k1,s[c*2+1]=p.k2}for(var A=this._wnafMulAdd(1,i,s,c*2,a),q=0;q<c*2;q++)i[q]=null,s[q]=null;return A},\"_endoWnafMulAdd\");function Ve(t,e,r,a){xi.BasePoint.call(this,t,\"affine\"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Oe(e,16),this.y=new Oe(r,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}f(Ve,\"Point\");q0(Ve,xi.BasePoint);yt.prototype.point=f(function(e,r,a){return new Ve(this,e,r,a)},\"point\");yt.prototype.pointFromJSON=f(function(e,r){return Ve.fromJSON(this,e,r)},\"pointFromJSON\");Ve.prototype._getBeta=f(function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var a=this.curve,i=f(function(s){return a.point(s.x.redMul(a.endo.beta),s.y)},\"endoMul\");e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return r}},\"_getBeta\");Ve.prototype.toJSON=f(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},\"toJSON\");Ve.fromJSON=f(function(e,r,a){typeof r==\"string\"&&(r=JSON.parse(r));var i=e.point(r[0],r[1],a);if(!r[2])return i;function s(p){return e.point(p[0],p[1],a)}f(s,\"obj2point\");var c=r[2];return i.precomputed={beta:null,doubles:c.doubles&&{step:c.doubles.step,points:[i].concat(c.doubles.points.map(s))},naf:c.naf&&{wnd:c.naf.wnd,points:[i].concat(c.naf.points.map(s))}},i},\"fromJSON\");Ve.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},\"inspect\");Ve.prototype.isInfinity=f(function(){return this.inf},\"isInfinity\");Ve.prototype.add=f(function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var a=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,i)},\"add\");Ve.prototype.dbl=f(function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,a=this.x.redSqr(),i=e.redInvm(),s=a.redAdd(a).redIAdd(a).redIAdd(r).redMul(i),c=s.redSqr().redISub(this.x.redAdd(this.x)),p=s.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,p)},\"dbl\");Ve.prototype.getX=f(function(){return this.x.fromRed()},\"getX\");Ve.prototype.getY=f(function(){return this.y.fromRed()},\"getY\");Ve.prototype.mul=f(function(e){return e=new Oe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},\"mul\");Ve.prototype.mulAdd=f(function(e,r,a){var i=[this,r],s=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)},\"mulAdd\");Ve.prototype.jmulAdd=f(function(e,r,a){var i=[this,r],s=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)},\"jmulAdd\");Ve.prototype.eq=f(function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},\"eq\");Ve.prototype.neg=f(function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,i=f(function(s){return s.neg()},\"negate\");r.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(i)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(i)}}}return r},\"neg\");Ve.prototype.toJ=f(function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},\"toJ\");function Ge(t,e,r,a){xi.BasePoint.call(this,t,\"jacobian\"),e===null&&r===null&&a===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Oe(0)):(this.x=new Oe(e,16),this.y=new Oe(r,16),this.z=new Oe(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f(Ge,\"JPoint\");q0(Ge,xi.BasePoint);yt.prototype.jpoint=f(function(e,r,a){return new Ge(this,e,r,a)},\"jpoint\");Ge.prototype.toP=f(function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),a=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(a,i)},\"toP\");Ge.prototype.neg=f(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},\"neg\");Ge.prototype.add=f(function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),a=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(a),c=this.y.redMul(r.redMul(e.z)),p=e.y.redMul(a.redMul(this.z)),_=i.redSub(s),S=c.redSub(p);if(_.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=_.redSqr(),q=A.redMul(_),B=i.redMul(A),I=S.redSqr().redIAdd(q).redISub(B).redISub(B),R=S.redMul(B.redISub(I)).redISub(c.redMul(q)),T=this.z.redMul(e.z).redMul(_);return this.curve.jpoint(I,R,T)},\"add\");Ge.prototype.mixedAdd=f(function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),a=this.x,i=e.x.redMul(r),s=this.y,c=e.y.redMul(r).redMul(this.z),p=a.redSub(i),_=s.redSub(c);if(p.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=p.redSqr(),A=S.redMul(p),q=a.redMul(S),B=_.redSqr().redIAdd(A).redISub(q).redISub(q),I=_.redMul(q.redISub(B)).redISub(s.redMul(A)),R=this.z.redMul(p);return this.curve.jpoint(B,I,R)},\"mixedAdd\");Ge.prototype.dblp=f(function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var a=this;for(r=0;r<e;r++)a=a.dbl();return a}var i=this.curve.a,s=this.curve.tinv,c=this.x,p=this.y,_=this.z,S=_.redSqr().redSqr(),A=p.redAdd(p);for(r=0;r<e;r++){var q=c.redSqr(),B=A.redSqr(),I=B.redSqr(),R=q.redAdd(q).redIAdd(q).redIAdd(i.redMul(S)),T=c.redMul(B),L=R.redSqr().redISub(T.redAdd(T)),N=T.redISub(L),z=R.redMul(N);z=z.redIAdd(z).redISub(I);var Ee=A.redMul(_);r+1<e&&(S=S.redMul(I)),c=L,_=Ee,A=z}return this.curve.jpoint(c,A.redMul(s),_)},\"dblp\");Ge.prototype.dbl=f(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},\"dbl\");Ge.prototype._zeroDbl=f(function(){var e,r,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),c=s.redSqr(),p=this.x.redAdd(s).redSqr().redISub(i).redISub(c);p=p.redIAdd(p);var _=i.redAdd(i).redIAdd(i),S=_.redSqr().redISub(p).redISub(p),A=c.redIAdd(c);A=A.redIAdd(A),A=A.redIAdd(A),e=S,r=_.redMul(p.redISub(S)).redISub(A),a=this.y.redAdd(this.y)}else{var q=this.x.redSqr(),B=this.y.redSqr(),I=B.redSqr(),R=this.x.redAdd(B).redSqr().redISub(q).redISub(I);R=R.redIAdd(R);var T=q.redAdd(q).redIAdd(q),L=T.redSqr(),N=I.redIAdd(I);N=N.redIAdd(N),N=N.redIAdd(N),e=L.redISub(R).redISub(R),r=T.redMul(R.redISub(e)).redISub(N),a=this.y.redMul(this.z),a=a.redIAdd(a)}return this.curve.jpoint(e,r,a)},\"_zeroDbl\");Ge.prototype._threeDbl=f(function(){var e,r,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),c=s.redSqr(),p=this.x.redAdd(s).redSqr().redISub(i).redISub(c);p=p.redIAdd(p);var _=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),S=_.redSqr().redISub(p).redISub(p);e=S;var A=c.redIAdd(c);A=A.redIAdd(A),A=A.redIAdd(A),r=_.redMul(p.redISub(S)).redISub(A),a=this.y.redAdd(this.y)}else{var q=this.z.redSqr(),B=this.y.redSqr(),I=this.x.redMul(B),R=this.x.redSub(q).redMul(this.x.redAdd(q));R=R.redAdd(R).redIAdd(R);var T=I.redIAdd(I);T=T.redIAdd(T);var L=T.redAdd(T);e=R.redSqr().redISub(L),a=this.y.redAdd(this.z).redSqr().redISub(B).redISub(q);var N=B.redSqr();N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N),r=R.redMul(T.redISub(e)).redISub(N)}return this.curve.jpoint(e,r,a)},\"_threeDbl\");Ge.prototype._dbl=f(function(){var e=this.curve.a,r=this.x,a=this.y,i=this.z,s=i.redSqr().redSqr(),c=r.redSqr(),p=a.redSqr(),_=c.redAdd(c).redIAdd(c).redIAdd(e.redMul(s)),S=r.redAdd(r);S=S.redIAdd(S);var A=S.redMul(p),q=_.redSqr().redISub(A.redAdd(A)),B=A.redISub(q),I=p.redSqr();I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I);var R=_.redMul(B).redISub(I),T=a.redAdd(a).redMul(i);return this.curve.jpoint(q,R,T)},\"_dbl\");Ge.prototype.trpl=f(function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),a=this.z.redSqr(),i=r.redSqr(),s=e.redAdd(e).redIAdd(e),c=s.redSqr(),p=this.x.redAdd(r).redSqr().redISub(e).redISub(i);p=p.redIAdd(p),p=p.redAdd(p).redIAdd(p),p=p.redISub(c);var _=p.redSqr(),S=i.redIAdd(i);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var A=s.redIAdd(p).redSqr().redISub(c).redISub(_).redISub(S),q=r.redMul(A);q=q.redIAdd(q),q=q.redIAdd(q);var B=this.x.redMul(_).redISub(q);B=B.redIAdd(B),B=B.redIAdd(B);var I=this.y.redMul(A.redMul(S.redISub(A)).redISub(p.redMul(_)));I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I);var R=this.z.redAdd(p).redSqr().redISub(a).redISub(_);return this.curve.jpoint(B,I,R)},\"trpl\");Ge.prototype.mul=f(function(e,r){return e=new Oe(e,r),this.curve._wnafMul(this,e)},\"mul\");Ge.prototype.eq=f(function(e){if(e.type===\"affine\")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),a=e.z.redSqr();if(this.x.redMul(a).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),s=a.redMul(e.z);return this.y.redMul(s).redISub(e.y.redMul(i)).cmpn(0)===0},\"eq\");Ge.prototype.eqXToP=f(function(e){var r=this.z.redSqr(),a=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(a)===0)return!0;for(var i=e.clone(),s=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(s),this.x.cmp(a)===0)return!0}},\"eqXToP\");Ge.prototype.inspect=f(function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},\"inspect\");Ge.prototype.isInfinity=f(function(){return this.z.cmpn(0)===0},\"isInfinity\")});var fc=k((km,ac)=>{\"use strict\";M();var Mi=je(),ic=Se(),Tf=ka(),Wb=dt();function Si(t){Tf.call(this,\"mont\",t),this.a=new Mi(t.a,16).toRed(this.red),this.b=new Mi(t.b,16).toRed(this.red),this.i4=new Mi(4).toRed(this.red).redInvm(),this.two=new Mi(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}f(Si,\"MontCurve\");ic(Si,Tf);ac.exports=Si;Si.prototype.validate=f(function(e){var r=e.normalize().x,a=r.redSqr(),i=a.redMul(r).redAdd(a.redMul(this.a)).redAdd(r),s=i.redSqrt();return s.redSqr().cmp(i)===0},\"validate\");function We(t,e,r){Tf.BasePoint.call(this,t,\"projective\"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Mi(e,16),this.z=new Mi(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f(We,\"Point\");ic(We,Tf.BasePoint);Si.prototype.decodePoint=f(function(e,r){return this.point(Wb.toArray(e,r),1)},\"decodePoint\");Si.prototype.point=f(function(e,r){return new We(this,e,r)},\"point\");Si.prototype.pointFromJSON=f(function(e){return We.fromJSON(this,e)},\"pointFromJSON\");We.prototype.precompute=f(function(){},\"precompute\");We.prototype._encode=f(function(){return this.getX().toArray(\"be\",this.curve.p.byteLength())},\"_encode\");We.fromJSON=f(function(e,r){return new We(e,r[0],r[1]||e.one)},\"fromJSON\");We.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" z: \"+this.z.fromRed().toString(16,2)+\">\"},\"inspect\");We.prototype.isInfinity=f(function(){return this.z.cmpn(0)===0},\"isInfinity\");We.prototype.dbl=f(function(){var e=this.x.redAdd(this.z),r=e.redSqr(),a=this.x.redSub(this.z),i=a.redSqr(),s=r.redSub(i),c=r.redMul(i),p=s.redMul(i.redAdd(this.curve.a24.redMul(s)));return this.curve.point(c,p)},\"dbl\");We.prototype.add=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"add\");We.prototype.diffAdd=f(function(e,r){var a=this.x.redAdd(this.z),i=this.x.redSub(this.z),s=e.x.redAdd(e.z),c=e.x.redSub(e.z),p=c.redMul(a),_=s.redMul(i),S=r.z.redMul(p.redAdd(_).redSqr()),A=r.x.redMul(p.redISub(_).redSqr());return this.curve.point(S,A)},\"diffAdd\");We.prototype.mul=f(function(e){for(var r=e.clone(),a=this,i=this.curve.point(null,null),s=this,c=[];r.cmpn(0)!==0;r.iushrn(1))c.push(r.andln(1));for(var p=c.length-1;p>=0;p--)c[p]===0?(a=a.diffAdd(i,s),i=i.dbl()):(i=a.diffAdd(i,s),a=a.dbl());return i},\"mul\");We.prototype.mulAdd=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"mulAdd\");We.prototype.jumlAdd=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"jumlAdd\");We.prototype.eq=f(function(e){return this.getX().cmp(e.getX())===0},\"eq\");We.prototype.normalize=f(function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},\"normalize\");We.prototype.getX=f(function(){return this.normalize(),this.x.fromRed()},\"getX\")});var oc=k((Cm,sc)=>{\"use strict\";M();var Zb=dt(),ar=je(),nc=Se(),Nf=ka(),Xb=Zb.assert;function Ut(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Nf.call(this,\"edwards\",t),this.a=new ar(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ar(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ar(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Xb(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}f(Ut,\"EdwardsCurve\");nc(Ut,Nf);sc.exports=Ut;Ut.prototype._mulA=f(function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},\"_mulA\");Ut.prototype._mulC=f(function(e){return this.oneC?e:this.c.redMul(e)},\"_mulC\");Ut.prototype.jpoint=f(function(e,r,a,i){return this.point(e,r,a,i)},\"jpoint\");Ut.prototype.pointFromX=f(function(e,r){e=new ar(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),i=this.c2.redSub(this.a.redMul(a)),s=this.one.redSub(this.c2.redMul(this.d).redMul(a)),c=i.redMul(s.redInvm()),p=c.redSqrt();if(p.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error(\"invalid point\");var _=p.fromRed().isOdd();return(r&&!_||!r&&_)&&(p=p.redNeg()),this.point(e,p)},\"pointFromX\");Ut.prototype.pointFromY=f(function(e,r){e=new ar(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),i=a.redSub(this.c2),s=a.redMul(this.d).redMul(this.c2).redSub(this.a),c=i.redMul(s.redInvm());if(c.cmp(this.zero)===0){if(r)throw new Error(\"invalid point\");return this.point(this.zero,e)}var p=c.redSqrt();if(p.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error(\"invalid point\");return p.fromRed().isOdd()!==r&&(p=p.redNeg()),this.point(p,e)},\"pointFromY\");Ut.prototype.validate=f(function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),a=e.y.redSqr(),i=r.redMul(this.a).redAdd(a),s=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(a)));return i.cmp(s)===0},\"validate\");function Ce(t,e,r,a,i){Nf.BasePoint.call(this,t,\"projective\"),e===null&&r===null&&a===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ar(e,16),this.y=new ar(r,16),this.z=a?new ar(a,16):this.curve.one,this.t=i&&new ar(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}f(Ce,\"Point\");nc(Ce,Nf.BasePoint);Ut.prototype.pointFromJSON=f(function(e){return Ce.fromJSON(this,e)},\"pointFromJSON\");Ut.prototype.point=f(function(e,r,a,i){return new Ce(this,e,r,a,i)},\"point\");Ce.fromJSON=f(function(e,r){return new Ce(e,r[0],r[1],r[2])},\"fromJSON\");Ce.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\" z: \"+this.z.fromRed().toString(16,2)+\">\"},\"inspect\");Ce.prototype.isInfinity=f(function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},\"isInfinity\");Ce.prototype._extDbl=f(function(){var e=this.x.redSqr(),r=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var i=this.curve._mulA(e),s=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),c=i.redAdd(r),p=c.redSub(a),_=i.redSub(r),S=s.redMul(p),A=c.redMul(_),q=s.redMul(_),B=p.redMul(c);return this.curve.point(S,A,B,q)},\"_extDbl\");Ce.prototype._projDbl=f(function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),a=this.y.redSqr(),i,s,c,p,_,S;if(this.curve.twisted){p=this.curve._mulA(r);var A=p.redAdd(a);this.zOne?(i=e.redSub(r).redSub(a).redMul(A.redSub(this.curve.two)),s=A.redMul(p.redSub(a)),c=A.redSqr().redSub(A).redSub(A)):(_=this.z.redSqr(),S=A.redSub(_).redISub(_),i=e.redSub(r).redISub(a).redMul(S),s=A.redMul(p.redSub(a)),c=A.redMul(S))}else p=r.redAdd(a),_=this.curve._mulC(this.z).redSqr(),S=p.redSub(_).redSub(_),i=this.curve._mulC(e.redISub(p)).redMul(S),s=this.curve._mulC(p).redMul(r.redISub(a)),c=p.redMul(S);return this.curve.point(i,s,c)},\"_projDbl\");Ce.prototype.dbl=f(function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},\"dbl\");Ce.prototype._extAdd=f(function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),a=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),s=this.z.redMul(e.z.redAdd(e.z)),c=a.redSub(r),p=s.redSub(i),_=s.redAdd(i),S=a.redAdd(r),A=c.redMul(p),q=_.redMul(S),B=c.redMul(S),I=p.redMul(_);return this.curve.point(A,q,I,B)},\"_extAdd\");Ce.prototype._projAdd=f(function(e){var r=this.z.redMul(e.z),a=r.redSqr(),i=this.x.redMul(e.x),s=this.y.redMul(e.y),c=this.curve.d.redMul(i).redMul(s),p=a.redSub(c),_=a.redAdd(c),S=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(s),A=r.redMul(p).redMul(S),q,B;return this.curve.twisted?(q=r.redMul(_).redMul(s.redSub(this.curve._mulA(i))),B=p.redMul(_)):(q=r.redMul(_).redMul(s.redSub(i)),B=this.curve._mulC(p).redMul(_)),this.curve.point(A,q,B)},\"_projAdd\");Ce.prototype.add=f(function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},\"add\");Ce.prototype.mul=f(function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},\"mul\");Ce.prototype.mulAdd=f(function(e,r,a){return this.curve._wnafMulAdd(1,[this,r],[e,a],2,!1)},\"mulAdd\");Ce.prototype.jmulAdd=f(function(e,r,a){return this.curve._wnafMulAdd(1,[this,r],[e,a],2,!0)},\"jmulAdd\");Ce.prototype.normalize=f(function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},\"normalize\");Ce.prototype.neg=f(function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},\"neg\");Ce.prototype.getX=f(function(){return this.normalize(),this.x.fromRed()},\"getX\");Ce.prototype.getY=f(function(){return this.normalize(),this.y.fromRed()},\"getY\");Ce.prototype.eq=f(function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},\"eq\");Ce.prototype.eqXToP=f(function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var a=e.clone(),i=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}},\"eqXToP\");Ce.prototype.toP=Ce.prototype.normalize;Ce.prototype.mixedAdd=Ce.prototype.add});var B0=k(hc=>{\"use strict\";M();var Of=hc;Of.base=ka();Of.short=rc();Of.mont=fc();Of.edwards=oc()});var Bt=k(Re=>{\"use strict\";M();var Gb=ht(),Jb=Se();Re.inherits=Jb;function Yb(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}f(Yb,\"isSurrogatePair\");function $b(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t==\"string\")if(e){if(e===\"hex\")for(t=t.replace(/[^a-z0-9]+/ig,\"\"),t.length%2!==0&&(t=\"0\"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var a=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?r[a++]=s:s<2048?(r[a++]=s>>6|192,r[a++]=s&63|128):Yb(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[a++]=s>>18|240,r[a++]=s>>12&63|128,r[a++]=s>>6&63|128,r[a++]=s&63|128):(r[a++]=s>>12|224,r[a++]=s>>6&63|128,r[a++]=s&63|128)}else for(i=0;i<t.length;i++)r[i]=t[i]|0;return r}f($b,\"toArray\");Re.toArray=$b;function Qb(t){for(var e=\"\",r=0;r<t.length;r++)e+=cc(t[r].toString(16));return e}f(Qb,\"toHex\");Re.toHex=Qb;function dc(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}f(dc,\"htonl\");Re.htonl=dc;function e6(t,e){for(var r=\"\",a=0;a<t.length;a++){var i=t[a];e===\"little\"&&(i=dc(i)),r+=uc(i.toString(16))}return r}f(e6,\"toHex32\");Re.toHex32=e6;function cc(t){return t.length===1?\"0\"+t:t}f(cc,\"zero2\");Re.zero2=cc;function uc(t){return t.length===7?\"0\"+t:t.length===6?\"00\"+t:t.length===5?\"000\"+t:t.length===4?\"0000\"+t:t.length===3?\"00000\"+t:t.length===2?\"000000\"+t:t.length===1?\"0000000\"+t:t}f(uc,\"zero8\");Re.zero8=uc;function t6(t,e,r,a){var i=r-e;Gb(i%4===0);for(var s=new Array(i/4),c=0,p=e;c<s.length;c++,p+=4){var _;a===\"big\"?_=t[p]<<24|t[p+1]<<16|t[p+2]<<8|t[p+3]:_=t[p+3]<<24|t[p+2]<<16|t[p+1]<<8|t[p],s[c]=_>>>0}return s}f(t6,\"join32\");Re.join32=t6;function r6(t,e){for(var r=new Array(t.length*4),a=0,i=0;a<t.length;a++,i+=4){var s=t[a];e===\"big\"?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}f(r6,\"split32\");Re.split32=r6;function i6(t,e){return t>>>e|t<<32-e}f(i6,\"rotr32\");Re.rotr32=i6;function a6(t,e){return t<<e|t>>>32-e}f(a6,\"rotl32\");Re.rotl32=a6;function f6(t,e){return t+e>>>0}f(f6,\"sum32\");Re.sum32=f6;function n6(t,e,r){return t+e+r>>>0}f(n6,\"sum32_3\");Re.sum32_3=n6;function s6(t,e,r,a){return t+e+r+a>>>0}f(s6,\"sum32_4\");Re.sum32_4=s6;function o6(t,e,r,a,i){return t+e+r+a+i>>>0}f(o6,\"sum32_5\");Re.sum32_5=o6;function h6(t,e,r,a){var i=t[e],s=t[e+1],c=a+s>>>0,p=(c<a?1:0)+r+i;t[e]=p>>>0,t[e+1]=c}f(h6,\"sum64\");Re.sum64=h6;function d6(t,e,r,a){var i=e+a>>>0,s=(i<e?1:0)+t+r;return s>>>0}f(d6,\"sum64_hi\");Re.sum64_hi=d6;function c6(t,e,r,a){var i=e+a;return i>>>0}f(c6,\"sum64_lo\");Re.sum64_lo=c6;function u6(t,e,r,a,i,s,c,p){var _=0,S=e;S=S+a>>>0,_+=S<e?1:0,S=S+s>>>0,_+=S<s?1:0,S=S+p>>>0,_+=S<p?1:0;var A=t+r+i+c+_;return A>>>0}f(u6,\"sum64_4_hi\");Re.sum64_4_hi=u6;function l6(t,e,r,a,i,s,c,p){var _=e+a+s+p;return _>>>0}f(l6,\"sum64_4_lo\");Re.sum64_4_lo=l6;function v6(t,e,r,a,i,s,c,p,_,S){var A=0,q=e;q=q+a>>>0,A+=q<e?1:0,q=q+s>>>0,A+=q<s?1:0,q=q+p>>>0,A+=q<p?1:0,q=q+S>>>0,A+=q<S?1:0;var B=t+r+i+c+_+A;return B>>>0}f(v6,\"sum64_5_hi\");Re.sum64_5_hi=v6;function p6(t,e,r,a,i,s,c,p,_,S){var A=e+a+s+p+S;return A>>>0}f(p6,\"sum64_5_lo\");Re.sum64_5_lo=p6;function b6(t,e,r){var a=e<<32-r|t>>>r;return a>>>0}f(b6,\"rotr64_hi\");Re.rotr64_hi=b6;function m6(t,e,r){var a=t<<32-r|e>>>r;return a>>>0}f(m6,\"rotr64_lo\");Re.rotr64_lo=m6;function y6(t,e,r){return t>>>r}f(y6,\"shr64_hi\");Re.shr64_hi=y6;function g6(t,e,r){var a=t<<32-r|e>>>r;return a>>>0}f(g6,\"shr64_lo\");Re.shr64_lo=g6});var Ai=k(vc=>{\"use strict\";M();var lc=Bt(),_6=ht();function Lf(){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}f(Lf,\"BlockHash\");vc.BlockHash=Lf;Lf.prototype.update=f(function(e,r){if(e=lc.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),this.pending.length===0&&(this.pending=null),e=lc.join32(e,0,e.length-a,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},\"update\");Lf.prototype.digest=f(function(e){return this.update(this._pad()),_6(this.pending===null),this._digest(e)},\"digest\");Lf.prototype._pad=f(function(){var e=this.pendingTotal,r=this._delta8,a=r-(e+this.padLength)%r,i=new Array(a+this.padLength);i[0]=128;for(var s=1;s<a;s++)i[s]=0;if(e<<=3,this.endian===\"big\"){for(var c=8;c<this.padLength;c++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=e>>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,c=8;c<this.padLength;c++)i[s++]=0;return i},\"pad\")});var k0=k(fr=>{\"use strict\";M();var w6=Bt(),zt=w6.rotr32;function x6(t,e,r,a){if(t===0)return pc(e,r,a);if(t===1||t===3)return mc(e,r,a);if(t===2)return bc(e,r,a)}f(x6,\"ft_1\");fr.ft_1=x6;function pc(t,e,r){return t&e^~t&r}f(pc,\"ch32\");fr.ch32=pc;function bc(t,e,r){return t&e^t&r^e&r}f(bc,\"maj32\");fr.maj32=bc;function mc(t,e,r){return t^e^r}f(mc,\"p32\");fr.p32=mc;function M6(t){return zt(t,2)^zt(t,13)^zt(t,22)}f(M6,\"s0_256\");fr.s0_256=M6;function S6(t){return zt(t,6)^zt(t,11)^zt(t,25)}f(S6,\"s1_256\");fr.s1_256=S6;function A6(t){return zt(t,7)^zt(t,18)^t>>>3}f(A6,\"g0_256\");fr.g0_256=A6;function E6(t){return zt(t,17)^zt(t,19)^t>>>10}f(E6,\"g1_256\");fr.g1_256=E6});var _c=k((Wm,gc)=>{\"use strict\";M();var Ei=Bt(),q6=Ai(),B6=k0(),I0=Ei.rotl32,Ia=Ei.sum32,k6=Ei.sum32_5,I6=B6.ft_1,yc=q6.BlockHash,R6=[1518500249,1859775393,2400959708,3395469782];function Ft(){if(!(this instanceof Ft))return new Ft;yc.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}f(Ft,\"SHA1\");Ei.inherits(Ft,yc);gc.exports=Ft;Ft.blockSize=512;Ft.outSize=160;Ft.hmacStrength=80;Ft.padLength=64;Ft.prototype._update=f(function(e,r){for(var a=this.W,i=0;i<16;i++)a[i]=e[r+i];for(;i<a.length;i++)a[i]=I0(a[i-3]^a[i-8]^a[i-14]^a[i-16],1);var s=this.h[0],c=this.h[1],p=this.h[2],_=this.h[3],S=this.h[4];for(i=0;i<a.length;i++){var A=~~(i/20),q=k6(I0(s,5),I6(A,c,p,_),S,a[i],R6[A]);S=_,_=p,p=I0(c,30),c=s,s=q}this.h[0]=Ia(this.h[0],s),this.h[1]=Ia(this.h[1],c),this.h[2]=Ia(this.h[2],p),this.h[3]=Ia(this.h[3],_),this.h[4]=Ia(this.h[4],S)},\"_update\");Ft.prototype._digest=f(function(e){return e===\"hex\"?Ei.toHex32(this.h,\"big\"):Ei.split32(this.h,\"big\")},\"digest\")});var R0=k((Gm,xc)=>{\"use strict\";M();var qi=Bt(),C6=Ai(),Bi=k0(),D6=ht(),kt=qi.sum32,P6=qi.sum32_4,T6=qi.sum32_5,N6=Bi.ch32,O6=Bi.maj32,L6=Bi.s0_256,U6=Bi.s1_256,z6=Bi.g0_256,F6=Bi.g1_256,wc=C6.BlockHash,H6=[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 Ht(){if(!(this instanceof Ht))return new Ht;wc.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=H6,this.W=new Array(64)}f(Ht,\"SHA256\");qi.inherits(Ht,wc);xc.exports=Ht;Ht.blockSize=512;Ht.outSize=256;Ht.hmacStrength=192;Ht.padLength=64;Ht.prototype._update=f(function(e,r){for(var a=this.W,i=0;i<16;i++)a[i]=e[r+i];for(;i<a.length;i++)a[i]=P6(F6(a[i-2]),a[i-7],z6(a[i-15]),a[i-16]);var s=this.h[0],c=this.h[1],p=this.h[2],_=this.h[3],S=this.h[4],A=this.h[5],q=this.h[6],B=this.h[7];for(D6(this.k.length===a.length),i=0;i<a.length;i++){var I=T6(B,U6(S),N6(S,A,q),this.k[i],a[i]),R=kt(L6(s),O6(s,c,p));B=q,q=A,A=S,S=kt(_,I),_=p,p=c,c=s,s=kt(I,R)}this.h[0]=kt(this.h[0],s),this.h[1]=kt(this.h[1],c),this.h[2]=kt(this.h[2],p),this.h[3]=kt(this.h[3],_),this.h[4]=kt(this.h[4],S),this.h[5]=kt(this.h[5],A),this.h[6]=kt(this.h[6],q),this.h[7]=kt(this.h[7],B)},\"_update\");Ht.prototype._digest=f(function(e){return e===\"hex\"?qi.toHex32(this.h,\"big\"):qi.split32(this.h,\"big\")},\"digest\")});var Ac=k(($m,Sc)=>{\"use strict\";M();var C0=Bt(),Mc=R0();function nr(){if(!(this instanceof nr))return new nr;Mc.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}f(nr,\"SHA224\");C0.inherits(nr,Mc);Sc.exports=nr;nr.blockSize=512;nr.outSize=224;nr.hmacStrength=192;nr.padLength=64;nr.prototype._digest=f(function(e){return e===\"hex\"?C0.toHex32(this.h.slice(0,7),\"big\"):C0.split32(this.h.slice(0,7),\"big\")},\"digest\")});var T0=k((ty,kc)=>{\"use strict\";M();var nt=Bt(),K6=Ai(),j6=ht(),Kt=nt.rotr64_hi,jt=nt.rotr64_lo,Ec=nt.shr64_hi,qc=nt.shr64_lo,mr=nt.sum64,D0=nt.sum64_hi,P0=nt.sum64_lo,V6=nt.sum64_4_hi,W6=nt.sum64_4_lo,Z6=nt.sum64_5_hi,X6=nt.sum64_5_lo,Bc=K6.BlockHash,G6=[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 It(){if(!(this instanceof It))return new It;Bc.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=G6,this.W=new Array(160)}f(It,\"SHA512\");nt.inherits(It,Bc);kc.exports=It;It.blockSize=1024;It.outSize=512;It.hmacStrength=192;It.padLength=128;It.prototype._prepareBlock=f(function(e,r){for(var a=this.W,i=0;i<32;i++)a[i]=e[r+i];for(;i<a.length;i+=2){var s=n3(a[i-4],a[i-3]),c=s3(a[i-4],a[i-3]),p=a[i-14],_=a[i-13],S=a3(a[i-30],a[i-29]),A=f3(a[i-30],a[i-29]),q=a[i-32],B=a[i-31];a[i]=V6(s,c,p,_,S,A,q,B),a[i+1]=W6(s,c,p,_,S,A,q,B)}},\"_prepareBlock\");It.prototype._update=f(function(e,r){this._prepareBlock(e,r);var a=this.W,i=this.h[0],s=this.h[1],c=this.h[2],p=this.h[3],_=this.h[4],S=this.h[5],A=this.h[6],q=this.h[7],B=this.h[8],I=this.h[9],R=this.h[10],T=this.h[11],L=this.h[12],N=this.h[13],z=this.h[14],Ee=this.h[15];j6(this.k.length===a.length);for(var qe=0;qe<a.length;qe+=2){var De=z,ke=Ee,Ue=r3(B,I),Ae=i3(B,I),Le=J6(B,I,R,T,L,N),E=Y6(B,I,R,T,L,N),d=this.k[qe],y=this.k[qe+1],l=a[qe],n=a[qe+1],h=Z6(De,ke,Ue,Ae,Le,E,d,y,l,n),v=X6(De,ke,Ue,Ae,Le,E,d,y,l,n);De=e3(i,s),ke=t3(i,s),Ue=$6(i,s,c,p,_,S),Ae=Q6(i,s,c,p,_,S);var m=D0(De,ke,Ue,Ae),b=P0(De,ke,Ue,Ae);z=L,Ee=N,L=R,N=T,R=B,T=I,B=D0(A,q,h,v),I=P0(q,q,h,v),A=_,q=S,_=c,S=p,c=i,p=s,i=D0(h,v,m,b),s=P0(h,v,m,b)}mr(this.h,0,i,s),mr(this.h,2,c,p),mr(this.h,4,_,S),mr(this.h,6,A,q),mr(this.h,8,B,I),mr(this.h,10,R,T),mr(this.h,12,L,N),mr(this.h,14,z,Ee)},\"_update\");It.prototype._digest=f(function(e){return e===\"hex\"?nt.toHex32(this.h,\"big\"):nt.split32(this.h,\"big\")},\"digest\");function J6(t,e,r,a,i){var s=t&r^~t&i;return s<0&&(s+=4294967296),s}f(J6,\"ch64_hi\");function Y6(t,e,r,a,i,s){var c=e&a^~e&s;return c<0&&(c+=4294967296),c}f(Y6,\"ch64_lo\");function $6(t,e,r,a,i){var s=t&r^t&i^r&i;return s<0&&(s+=4294967296),s}f($6,\"maj64_hi\");function Q6(t,e,r,a,i,s){var c=e&a^e&s^a&s;return c<0&&(c+=4294967296),c}f(Q6,\"maj64_lo\");function e3(t,e){var r=Kt(t,e,28),a=Kt(e,t,2),i=Kt(e,t,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(e3,\"s0_512_hi\");function t3(t,e){var r=jt(t,e,28),a=jt(e,t,2),i=jt(e,t,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(t3,\"s0_512_lo\");function r3(t,e){var r=Kt(t,e,14),a=Kt(t,e,18),i=Kt(e,t,9),s=r^a^i;return s<0&&(s+=4294967296),s}f(r3,\"s1_512_hi\");function i3(t,e){var r=jt(t,e,14),a=jt(t,e,18),i=jt(e,t,9),s=r^a^i;return s<0&&(s+=4294967296),s}f(i3,\"s1_512_lo\");function a3(t,e){var r=Kt(t,e,1),a=Kt(t,e,8),i=Ec(t,e,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(a3,\"g0_512_hi\");function f3(t,e){var r=jt(t,e,1),a=jt(t,e,8),i=qc(t,e,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(f3,\"g0_512_lo\");function n3(t,e){var r=Kt(t,e,19),a=Kt(e,t,29),i=Ec(t,e,6),s=r^a^i;return s<0&&(s+=4294967296),s}f(n3,\"g1_512_hi\");function s3(t,e){var r=jt(t,e,19),a=jt(e,t,29),i=qc(t,e,6),s=r^a^i;return s<0&&(s+=4294967296),s}f(s3,\"g1_512_lo\")});var Cc=k((ay,Rc)=>{\"use strict\";M();var N0=Bt(),Ic=T0();function sr(){if(!(this instanceof sr))return new sr;Ic.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}f(sr,\"SHA384\");N0.inherits(sr,Ic);Rc.exports=sr;sr.blockSize=1024;sr.outSize=384;sr.hmacStrength=192;sr.padLength=128;sr.prototype._digest=f(function(e){return e===\"hex\"?N0.toHex32(this.h.slice(0,12),\"big\"):N0.split32(this.h.slice(0,12),\"big\")},\"digest\")});var Dc=k(ki=>{\"use strict\";M();ki.sha1=_c();ki.sha224=Ac();ki.sha256=R0();ki.sha384=Cc();ki.sha512=T0()});var Uc=k(Lc=>{\"use strict\";M();var $r=Bt(),o3=Ai(),Uf=$r.rotl32,Pc=$r.sum32,Ra=$r.sum32_3,Tc=$r.sum32_4,Oc=o3.BlockHash;function Vt(){if(!(this instanceof Vt))return new Vt;Oc.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}f(Vt,\"RIPEMD160\");$r.inherits(Vt,Oc);Lc.ripemd160=Vt;Vt.blockSize=512;Vt.outSize=160;Vt.hmacStrength=192;Vt.padLength=64;Vt.prototype._update=f(function(e,r){for(var a=this.h[0],i=this.h[1],s=this.h[2],c=this.h[3],p=this.h[4],_=a,S=i,A=s,q=c,B=p,I=0;I<80;I++){var R=Pc(Uf(Tc(a,Nc(I,i,s,c),e[c3[I]+r],h3(I)),l3[I]),p);a=p,p=c,c=Uf(s,10),s=i,i=R,R=Pc(Uf(Tc(_,Nc(79-I,S,A,q),e[u3[I]+r],d3(I)),v3[I]),B),_=B,B=q,q=Uf(A,10),A=S,S=R}R=Ra(this.h[1],s,q),this.h[1]=Ra(this.h[2],c,B),this.h[2]=Ra(this.h[3],p,_),this.h[3]=Ra(this.h[4],a,S),this.h[4]=Ra(this.h[0],i,A),this.h[0]=R},\"update\");Vt.prototype._digest=f(function(e){return e===\"hex\"?$r.toHex32(this.h,\"little\"):$r.split32(this.h,\"little\")},\"digest\");function Nc(t,e,r,a){return t<=15?e^r^a:t<=31?e&r|~e&a:t<=47?(e|~r)^a:t<=63?e&a|r&~a:e^(r|~a)}f(Nc,\"f\");function h3(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}f(h3,\"K\");function d3(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}f(d3,\"Kh\");var c3=[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],u3=[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],l3=[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],v3=[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]});var Fc=k((uy,zc)=>{\"use strict\";M();var p3=Bt(),b3=ht();function Ii(t,e,r){if(!(this instanceof Ii))return new Ii(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(p3.toArray(e,r))}f(Ii,\"Hmac\");zc.exports=Ii;Ii.prototype._init=f(function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),b3(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)},\"init\");Ii.prototype.update=f(function(e,r){return this.inner.update(e,r),this},\"update\");Ii.prototype.digest=f(function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},\"digest\")});var zf=k(Hc=>{M();var Je=Hc;Je.utils=Bt();Je.common=Ai();Je.sha=Dc();Je.ripemd=Uc();Je.hmac=Fc();Je.sha1=Je.sha.sha1;Je.sha256=Je.sha.sha256;Je.sha224=Je.sha.sha224;Je.sha384=Je.sha.sha384;Je.sha512=Je.sha.sha512;Je.ripemd160=Je.ripemd.ripemd160});var jc=k((my,Kc)=>{M();Kc.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\"]]}}});var Ff=k(Zc=>{\"use strict\";M();var L0=Zc,yr=zf(),O0=B0(),m3=dt(),Vc=m3.assert;function Wc(t){t.type===\"short\"?this.curve=new O0.short(t):t.type===\"edwards\"?this.curve=new O0.edwards(t):this.curve=new O0.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,Vc(this.g.validate(),\"Invalid curve\"),Vc(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}f(Wc,\"PresetCurve\");L0.PresetCurve=Wc;function gr(t,e){Object.defineProperty(L0,t,{configurable:!0,enumerable:!0,get:f(function(){var r=new Wc(e);return Object.defineProperty(L0,t,{configurable:!0,enumerable:!0,value:r}),r},\"get\")})}f(gr,\"defineCurve\");gr(\"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:yr.sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]});gr(\"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:yr.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\"]});gr(\"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:yr.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\"]});gr(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:yr.sha256,gRed:!1,g:[\"9\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});var U0;try{U0=jc()}catch{U0=void 0}gr(\"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:yr.sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",U0]})});var Jc=k((xy,Gc)=>{\"use strict\";M();var y3=zf(),Qr=E0(),Xc=ht();function _r(t){if(!(this instanceof _r))return new _r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Qr.toArray(t.entropy,t.entropyEnc||\"hex\"),r=Qr.toArray(t.nonce,t.nonceEnc||\"hex\"),a=Qr.toArray(t.pers,t.persEnc||\"hex\");Xc(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(e,r,a)}f(_r,\"HmacDRBG\");Gc.exports=_r;_r.prototype._init=f(function(e,r,a){var i=e.concat(r).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},\"init\");_r.prototype._hmac=f(function(){return new y3.hmac(this.hash,this.K)},\"hmac\");_r.prototype._update=f(function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},\"update\");_r.prototype.reseed=f(function(e,r,a,i){typeof r!=\"string\"&&(i=a,a=r,r=null),e=Qr.toArray(e,r),a=Qr.toArray(a,i),Xc(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(e.concat(a||[])),this._reseed=1},\"reseed\");_r.prototype.generate=f(function(e,r,a,i){if(this._reseed>this.reseedInterval)throw new Error(\"Reseed is required\");typeof r!=\"string\"&&(i=a,a=r,r=null),a&&(a=Qr.toArray(a,i||\"hex\"),this._update(a));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var c=s.slice(0,e);return this._update(a),this._reseed++,Qr.encode(c,r)},\"generate\")});var $c=k((Ay,Yc)=>{\"use strict\";M();var g3=je(),_3=dt(),z0=_3.assert;function rt(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}f(rt,\"KeyPair\");Yc.exports=rt;rt.fromPublic=f(function(e,r,a){return r instanceof rt?r:new rt(e,{pub:r,pubEnc:a})},\"fromPublic\");rt.fromPrivate=f(function(e,r,a){return r instanceof rt?r:new rt(e,{priv:r,privEnc:a})},\"fromPrivate\");rt.prototype.validate=f(function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:\"Invalid public key\"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},\"validate\");rt.prototype.getPublic=f(function(e,r){return typeof e==\"string\"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub},\"getPublic\");rt.prototype.getPrivate=f(function(e){return e===\"hex\"?this.priv.toString(16,2):this.priv},\"getPrivate\");rt.prototype._importPrivate=f(function(e,r){this.priv=new g3(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)},\"_importPrivate\");rt.prototype._importPublic=f(function(e,r){if(e.x||e.y){this.ec.curve.type===\"mont\"?z0(e.x,\"Need x coordinate\"):(this.ec.curve.type===\"short\"||this.ec.curve.type===\"edwards\")&&z0(e.x&&e.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)},\"_importPublic\");rt.prototype.derive=f(function(e){return e.validate()||z0(e.validate(),\"public point not validated\"),e.mul(this.priv).getX()},\"derive\");rt.prototype.sign=f(function(e,r,a){return this.ec.sign(e,this,r,a)},\"sign\");rt.prototype.verify=f(function(e,r,a){return this.ec.verify(e,r,this,void 0,a)},\"verify\");rt.prototype.inspect=f(function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"},\"inspect\")});var tu=k((By,eu)=>{\"use strict\";M();var Hf=je(),K0=dt(),w3=K0.assert;function Kf(t,e){if(t instanceof Kf)return t;this._importDER(t,e)||(w3(t.r&&t.s,\"Signature without r or s\"),this.r=new Hf(t.r,16),this.s=new Hf(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}f(Kf,\"Signature\");eu.exports=Kf;function x3(){this.place=0}f(x3,\"Position\");function F0(t,e){var r=t[e.place++];if(!(r&128))return r;var a=r&15;if(a===0||a>4||t[e.place]===0)return!1;for(var i=0,s=0,c=e.place;s<a;s++,c++)i<<=8,i|=t[c],i>>>=0;return i<=127?!1:(e.place=c,i)}f(F0,\"getLength\");function Qc(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}f(Qc,\"rmPadding\");Kf.prototype._importDER=f(function(e,r){e=K0.toArray(e,r);var a=new x3;if(e[a.place++]!==48)return!1;var i=F0(e,a);if(i===!1||i+a.place!==e.length||e[a.place++]!==2)return!1;var s=F0(e,a);if(s===!1||(e[a.place]&128)!==0)return!1;var c=e.slice(a.place,s+a.place);if(a.place+=s,e[a.place++]!==2)return!1;var p=F0(e,a);if(p===!1||e.length!==p+a.place||(e[a.place]&128)!==0)return!1;var _=e.slice(a.place,p+a.place);if(c[0]===0)if(c[1]&128)c=c.slice(1);else return!1;if(_[0]===0)if(_[1]&128)_=_.slice(1);else return!1;return this.r=new Hf(c),this.s=new Hf(_),this.recoveryParam=null,!0},\"_importDER\");function H0(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}f(H0,\"constructLength\");Kf.prototype.toDER=f(function(e){var r=this.r.toArray(),a=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),a[0]&128&&(a=[0].concat(a)),r=Qc(r),a=Qc(a);!a[0]&&!(a[1]&128);)a=a.slice(1);var i=[2];H0(i,r.length),i=i.concat(r),i.push(2),H0(i,a.length);var s=i.concat(a),c=[48];return H0(c,s.length),c=c.concat(s),K0.encode(c,e)},\"toDER\")});var au=k((Ry,iu)=>{\"use strict\";M();var Rt=je(),ru=Jc(),M3=dt(),j0=Ff(),S3=Ef(),ei=M3.assert,V0=$c(),jf=tu();function gt(t){if(!(this instanceof gt))return new gt(t);typeof t==\"string\"&&(ei(Object.prototype.hasOwnProperty.call(j0,t),\"Unknown curve \"+t),t=j0[t]),t instanceof j0.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}f(gt,\"EC\");iu.exports=gt;gt.prototype.keyPair=f(function(e){return new V0(this,e)},\"keyPair\");gt.prototype.keyFromPrivate=f(function(e,r){return V0.fromPrivate(this,e,r)},\"keyFromPrivate\");gt.prototype.keyFromPublic=f(function(e,r){return V0.fromPublic(this,e,r)},\"keyFromPublic\");gt.prototype.genKeyPair=f(function(e){e||(e={});for(var r=new ru({hash:this.hash,pers:e.pers,persEnc:e.persEnc||\"utf8\",entropy:e.entropy||S3(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||\"utf8\",nonce:this.n.toArray()}),a=this.n.byteLength(),i=this.n.sub(new Rt(2));;){var s=new Rt(r.generate(a));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},\"genKeyPair\");gt.prototype._truncateToN=f(function(e,r,a){var i;if(Rt.isBN(e)||typeof e==\"number\")e=new Rt(e,16),i=e.byteLength();else if(typeof e==\"object\")i=e.length,e=new Rt(e,16);else{var s=e.toString();i=s.length+1>>>1,e=new Rt(s,16)}typeof a!=\"number\"&&(a=i*8);var c=a-this.n.bitLength();return c>0&&(e=e.ushrn(c)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e},\"_truncateToN\");gt.prototype.sign=f(function(e,r,a,i){if(typeof a==\"object\"&&(i=a,a=null),i||(i={}),typeof e!=\"string\"&&typeof e!=\"number\"&&!Rt.isBN(e)){ei(typeof e==\"object\"&&e&&typeof e.length==\"number\",\"Expected message to be an array-like, a hex string, or a BN instance\"),ei(e.length>>>0===e.length);for(var s=0;s<e.length;s++)ei((e[s]&255)===e[s])}r=this.keyFromPrivate(r,a),e=this._truncateToN(e,!1,i.msgBitLength),ei(!e.isNeg(),\"Can not sign a negative message\");var c=this.n.byteLength(),p=r.getPrivate().toArray(\"be\",c),_=e.toArray(\"be\",c);ei(new Rt(_).eq(e),\"Can not sign message\");for(var S=new ru({hash:this.hash,entropy:p,nonce:_,pers:i.pers,persEnc:i.persEnc||\"utf8\"}),A=this.n.sub(new Rt(1)),q=0;;q++){var B=i.k?i.k(q):new Rt(S.generate(this.n.byteLength()));if(B=this._truncateToN(B,!0),!(B.cmpn(1)<=0||B.cmp(A)>=0)){var I=this.g.mul(B);if(!I.isInfinity()){var R=I.getX(),T=R.umod(this.n);if(T.cmpn(0)!==0){var L=B.invm(this.n).mul(T.mul(r.getPrivate()).iadd(e));if(L=L.umod(this.n),L.cmpn(0)!==0){var N=(I.getY().isOdd()?1:0)|(R.cmp(T)!==0?2:0);return i.canonical&&L.cmp(this.nh)>0&&(L=this.n.sub(L),N^=1),new jf({r:T,s:L,recoveryParam:N})}}}}}},\"sign\");gt.prototype.verify=f(function(e,r,a,i,s){s||(s={}),e=this._truncateToN(e,!1,s.msgBitLength),a=this.keyFromPublic(a,i),r=new jf(r,\"hex\");var c=r.r,p=r.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var _=p.invm(this.n),S=_.mul(e).umod(this.n),A=_.mul(c).umod(this.n),q;return this.curve._maxwellTrick?(q=this.g.jmulAdd(S,a.getPublic(),A),q.isInfinity()?!1:q.eqXToP(c)):(q=this.g.mulAdd(S,a.getPublic(),A),q.isInfinity()?!1:q.getX().umod(this.n).cmp(c)===0)},\"verify\");gt.prototype.recoverPubKey=function(t,e,r,a){ei((3&r)===r,\"The recovery param is more than two bits\"),e=new jf(e,a);var i=this.n,s=new Rt(t),c=e.r,p=e.s,_=r&1,S=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&S)throw new Error(\"Unable to find sencond key candinate\");S?c=this.curve.pointFromX(c.add(this.curve.n),_):c=this.curve.pointFromX(c,_);var A=e.r.invm(i),q=i.sub(s).mul(A).umod(i),B=p.mul(A).umod(i);return this.g.mulAdd(q,c,B)};gt.prototype.getKeyRecoveryParam=function(t,e,r,a){if(e=new jf(e,a),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error(\"Unable to find valid recovery factor\")}});var ou=k((Py,su)=>{\"use strict\";M();var Ca=dt(),nu=Ca.assert,fu=Ca.parseBytes,Ri=Ca.cachedProperty;function Ze(t,e){this.eddsa=t,this._secret=fu(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=fu(e.pub)}f(Ze,\"KeyPair\");Ze.fromPublic=f(function(e,r){return r instanceof Ze?r:new Ze(e,{pub:r})},\"fromPublic\");Ze.fromSecret=f(function(e,r){return r instanceof Ze?r:new Ze(e,{secret:r})},\"fromSecret\");Ze.prototype.secret=f(function(){return this._secret},\"secret\");Ri(Ze,\"pubBytes\",f(function(){return this.eddsa.encodePoint(this.pub())},\"pubBytes\"));Ri(Ze,\"pub\",f(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())},\"pub\"));Ri(Ze,\"privBytes\",f(function(){var e=this.eddsa,r=this.hash(),a=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[a]&=127,i[a]|=64,i},\"privBytes\"));Ri(Ze,\"priv\",f(function(){return this.eddsa.decodeInt(this.privBytes())},\"priv\"));Ri(Ze,\"hash\",f(function(){return this.eddsa.hash().update(this.secret()).digest()},\"hash\"));Ri(Ze,\"messagePrefix\",f(function(){return this.hash().slice(this.eddsa.encodingLength)},\"messagePrefix\"));Ze.prototype.sign=f(function(e){return nu(this._secret,\"KeyPair can only verify\"),this.eddsa.sign(e,this)},\"sign\");Ze.prototype.verify=f(function(e,r){return this.eddsa.verify(e,r,this)},\"verify\");Ze.prototype.getSecret=f(function(e){return nu(this._secret,\"KeyPair is public only\"),Ca.encode(this.secret(),e)},\"getSecret\");Ze.prototype.getPublic=f(function(e){return Ca.encode(this.pubBytes(),e)},\"getPublic\");su.exports=Ze});var cu=k((Oy,du)=>{\"use strict\";M();var A3=je(),Vf=dt(),hu=Vf.assert,Wf=Vf.cachedProperty,E3=Vf.parseBytes;function ti(t,e){this.eddsa=t,typeof e!=\"object\"&&(e=E3(e)),Array.isArray(e)&&(hu(e.length===t.encodingLength*2,\"Signature has invalid size\"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),hu(e.R&&e.S,\"Signature without R or S\"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof A3&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}f(ti,\"Signature\");Wf(ti,\"S\",f(function(){return this.eddsa.decodeInt(this.Sencoded())},\"S\"));Wf(ti,\"R\",f(function(){return this.eddsa.decodePoint(this.Rencoded())},\"R\"));Wf(ti,\"Rencoded\",f(function(){return this.eddsa.encodePoint(this.R())},\"Rencoded\"));Wf(ti,\"Sencoded\",f(function(){return this.eddsa.encodeInt(this.S())},\"Sencoded\"));ti.prototype.toBytes=f(function(){return this.Rencoded().concat(this.Sencoded())},\"toBytes\");ti.prototype.toHex=f(function(){return Vf.encode(this.toBytes(),\"hex\").toUpperCase()},\"toHex\");du.exports=ti});var bu=k((zy,pu)=>{\"use strict\";M();var q3=zf(),B3=Ff(),Ci=dt(),k3=Ci.assert,lu=Ci.parseBytes,vu=ou(),uu=cu();function st(t){if(k3(t===\"ed25519\",\"only tested with ed25519 so far\"),!(this instanceof st))return new st(t);t=B3[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=q3.sha512}f(st,\"EDDSA\");pu.exports=st;st.prototype.sign=f(function(e,r){e=lu(e);var a=this.keyFromSecret(r),i=this.hashInt(a.messagePrefix(),e),s=this.g.mul(i),c=this.encodePoint(s),p=this.hashInt(c,a.pubBytes(),e).mul(a.priv()),_=i.add(p).umod(this.curve.n);return this.makeSignature({R:s,S:_,Rencoded:c})},\"sign\");st.prototype.verify=f(function(e,r,a){if(e=lu(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(a),s=this.hashInt(r.Rencoded(),i.pubBytes(),e),c=this.g.mul(r.S()),p=r.R().add(i.pub().mul(s));return p.eq(c)},\"verify\");st.prototype.hashInt=f(function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return Ci.intFromLE(e.digest()).umod(this.curve.n)},\"hashInt\");st.prototype.keyFromPublic=f(function(e){return vu.fromPublic(this,e)},\"keyFromPublic\");st.prototype.keyFromSecret=f(function(e){return vu.fromSecret(this,e)},\"keyFromSecret\");st.prototype.makeSignature=f(function(e){return e instanceof uu?e:new uu(this,e)},\"makeSignature\");st.prototype.encodePoint=f(function(e){var r=e.getY().toArray(\"le\",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r},\"encodePoint\");st.prototype.decodePoint=f(function(e){e=Ci.parseBytes(e);var r=e.length-1,a=e.slice(0,r).concat(e[r]&-129),i=(e[r]&128)!==0,s=Ci.intFromLE(a);return this.curve.pointFromY(s,i)},\"decodePoint\");st.prototype.encodeInt=f(function(e){return e.toArray(\"le\",this.encodingLength)},\"encodeInt\");st.prototype.decodeInt=f(function(e){return Ci.intFromLE(e)},\"decodeInt\");st.prototype.isPoint=f(function(e){return e instanceof this.pointClass},\"isPoint\")});var Zf=k(mu=>{\"use strict\";M();var ri=mu;ri.version=Gd().version;ri.utils=dt();ri.rand=Ef();ri.curve=B0();ri.curves=Ff();ri.ec=au();ri.eddsa=bu()});var yu=k((exports,module)=>{M();var indexOf=f(function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},\"indexOf\"),Object_keys=f(function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},\"Object_keys\"),forEach=f(function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},\"forEach\"),defineProp=(function(){try{return Object.defineProperty({},\"_\",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,a){e[r]=a}}})(),globals=[\"Array\",\"Boolean\",\"Date\",\"Error\",\"EvalError\",\"Function\",\"Infinity\",\"JSON\",\"Math\",\"NaN\",\"Number\",\"Object\",\"RangeError\",\"ReferenceError\",\"RegExp\",\"String\",\"SyntaxError\",\"TypeError\",\"URIError\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"eval\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"undefined\",\"unescape\"];function Context(){}f(Context,\"Context\");Context.prototype={};var Script=exports.Script=f(function(e){if(!(this instanceof Script))return new Script(e);this.code=e},\"NodeScript\");Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError(\"needs a 'context' argument.\");var e=document.createElement(\"iframe\");e.style||(e.style={}),e.style.display=\"none\",document.body.appendChild(e);var r=e.contentWindow,a=r.eval,i=r.execScript;!a&&i&&(i.call(r,\"null\"),a=r.eval),forEach(Object_keys(t),function(p){r[p]=t[p]}),forEach(globals,function(p){t[p]&&(r[p]=t[p])});var s=Object_keys(r),c=a.call(r,this.code);return forEach(Object_keys(r),function(p){(p in t||indexOf(s,p)===-1)&&(t[p]=r[p])}),forEach(globals,function(p){p in t||defineProp(t,p,r[p])}),document.body.removeChild(e),c};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(a){t[a]=e[a]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t==\"object\"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var wu=k(_u=>{M();var gu=Pi(),I3=Se(),R3=_u;R3.define=f(function(e,r){return new Di(e,r)},\"define\");function Di(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}f(Di,\"Entity\");Di.prototype._createNamed=f(function(e){var r;try{r=yu().runInThisContext(\"(function \"+this.name+`(entity) {\n this._initNamed(entity);\n})`)}catch{r=f(function(i){this._initNamed(i)},\"named\")}return I3(r,e),r.prototype._initNamed=f(function(i){e.call(this,i)},\"initnamed\"),new r(this)},\"createNamed\");Di.prototype._getDecoder=f(function(e){return e=e||\"der\",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(gu.decoders[e])),this.decoders[e]},\"_getDecoder\");Di.prototype.decode=f(function(e,r,a){return this._getDecoder(r).decode(e,a)},\"decode\");Di.prototype._getEncoder=f(function(e){return e=e||\"der\",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(gu.encoders[e])),this.encoders[e]},\"_getEncoder\");Di.prototype.encode=f(function(e,r,a){return this._getEncoder(r).encode(e,a)},\"encode\")});var Mu=k(xu=>{M();var C3=Se();function _t(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}f(_t,\"Reporter\");xu.Reporter=_t;_t.prototype.isError=f(function(e){return e instanceof Ti},\"isError\");_t.prototype.save=f(function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},\"save\");_t.prototype.restore=f(function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)},\"restore\");_t.prototype.enterKey=f(function(e){return this._reporterState.path.push(e)},\"enterKey\");_t.prototype.exitKey=f(function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)},\"exitKey\");_t.prototype.leaveKey=f(function(e,r,a){var i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=a)},\"leaveKey\");_t.prototype.path=f(function(){return this._reporterState.path.join(\"/\")},\"path\");_t.prototype.enterObject=f(function(){var e=this._reporterState,r=e.obj;return e.obj={},r},\"enterObject\");_t.prototype.leaveObject=f(function(e){var r=this._reporterState,a=r.obj;return r.obj=e,a},\"leaveObject\");_t.prototype.error=f(function(e){var r,a=this._reporterState,i=e instanceof Ti;if(i?r=e:r=new Ti(a.path.map(function(s){return\"[\"+JSON.stringify(s)+\"]\"}).join(\"\"),e.message||e,e.stack),!a.options.partial)throw r;return i||a.errors.push(r),r},\"error\");_t.prototype.wrapResult=f(function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e},\"wrapResult\");function Ti(t,e){this.path=t,this.rethrow(e)}f(Ti,\"ReporterError\");C3(Ti,Error);Ti.prototype.rethrow=f(function(e){if(this.message=e+\" at: \"+(this.path||\"(shallow)\"),Error.captureStackTrace&&Error.captureStackTrace(this,Ti),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this},\"rethrow\")});var Z0=k(W0=>{M();var D3=Se(),Gf=Ni().Reporter,Da=(cr(),hr(dr)).Buffer;function Wt(t,e){if(Gf.call(this,e),!Da.isBuffer(t)){this.error(\"Input not Buffer\");return}this.base=t,this.offset=0,this.length=t.length}f(Wt,\"DecoderBuffer\");D3(Wt,Gf);W0.DecoderBuffer=Wt;Wt.prototype.save=f(function(){return{offset:this.offset,reporter:Gf.prototype.save.call(this)}},\"save\");Wt.prototype.restore=f(function(e){var r=new Wt(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Gf.prototype.restore.call(this,e.reporter),r},\"restore\");Wt.prototype.isEmpty=f(function(){return this.offset===this.length},\"isEmpty\");Wt.prototype.readUInt8=f(function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||\"DecoderBuffer overrun\")},\"readUInt8\");Wt.prototype.skip=f(function(e,r){if(!(this.offset+e<=this.length))return this.error(r||\"DecoderBuffer overrun\");var a=new Wt(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+e,this.offset+=e,a},\"skip\");Wt.prototype.raw=f(function(e){return this.base.slice(e?e.offset:this.offset,this.length)},\"raw\");function Xf(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof Xf||(r=new Xf(r,e)),this.length+=r.length,r},this);else if(typeof t==\"number\"){if(!(0<=t&&t<=255))return e.error(\"non-byte EncoderBuffer value\");this.value=t,this.length=1}else if(typeof t==\"string\")this.value=t,this.length=Da.byteLength(t);else if(Da.isBuffer(t))this.value=t,this.length=t.length;else return e.error(\"Unsupported type: \"+typeof t)}f(Xf,\"EncoderBuffer\");W0.EncoderBuffer=Xf;Xf.prototype.join=f(function(e,r){return e||(e=new Da(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(a){a.join(e,r),r+=a.length}):(typeof this.value==\"number\"?e[r]=this.value:typeof this.value==\"string\"?e.write(this.value,r):Da.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e},\"join\")});var Eu=k((rg,Au)=>{M();var P3=Ni().Reporter,T3=Ni().EncoderBuffer,N3=Ni().DecoderBuffer,at=ht(),Su=[\"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\"],O3=[\"key\",\"obj\",\"use\",\"optional\",\"explicit\",\"implicit\",\"def\",\"choice\",\"any\",\"contains\"].concat(Su),L3=[\"_peekTag\",\"_decodeTag\",\"_use\",\"_decodeStr\",\"_decodeObjid\",\"_decodeTime\",\"_decodeNull\",\"_decodeInt\",\"_decodeBool\",\"_decodeList\",\"_encodeComposite\",\"_encodeStr\",\"_encodeObjid\",\"_encodeTime\",\"_encodeNull\",\"_encodeInt\",\"_encodeBool\"];function Ie(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}f(Ie,\"Node\");Au.exports=Ie;var U3=[\"enc\",\"parent\",\"children\",\"tag\",\"args\",\"reverseArgs\",\"choice\",\"optional\",\"any\",\"obj\",\"use\",\"alteredUse\",\"key\",\"default\",\"explicit\",\"implicit\",\"contains\"];Ie.prototype.clone=f(function(){var e=this._baseState,r={};U3.forEach(function(i){r[i]=e[i]});var a=new this.constructor(r.parent);return a._baseState=r,a},\"clone\");Ie.prototype._wrap=f(function(){var e=this._baseState;O3.forEach(function(r){this[r]=f(function(){var i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)},\"_wrappedMethod\")},this)},\"wrap\");Ie.prototype._init=f(function(e){var r=this._baseState;at(r.parent===null),e.call(this),r.children=r.children.filter(function(a){return a._baseState.parent===this},this),at.equal(r.children.length,1,\"Root node can have only one child\")},\"init\");Ie.prototype._useArgs=f(function(e){var r=this._baseState,a=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),a.length!==0&&(at(r.children===null),r.children=a,a.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(at(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!=\"object\"||i.constructor!==Object)return i;var s={};return Object.keys(i).forEach(function(c){c==(c|0)&&(c|=0);var p=i[c];s[p]=c}),s}))},\"useArgs\");L3.forEach(function(t){Ie.prototype[t]=f(function(){var r=this._baseState;throw new Error(t+\" not implemented for encoding: \"+r.enc)},\"_overrided\")});Su.forEach(function(t){Ie.prototype[t]=f(function(){var r=this._baseState,a=Array.prototype.slice.call(arguments);return at(r.tag===null),r.tag=t,this._useArgs(a),this},\"_tagMethod\")});Ie.prototype.use=f(function(e){at(e);var r=this._baseState;return at(r.use===null),r.use=e,this},\"use\");Ie.prototype.optional=f(function(){var e=this._baseState;return e.optional=!0,this},\"optional\");Ie.prototype.def=f(function(e){var r=this._baseState;return at(r.default===null),r.default=e,r.optional=!0,this},\"def\");Ie.prototype.explicit=f(function(e){var r=this._baseState;return at(r.explicit===null&&r.implicit===null),r.explicit=e,this},\"explicit\");Ie.prototype.implicit=f(function(e){var r=this._baseState;return at(r.explicit===null&&r.implicit===null),r.implicit=e,this},\"implicit\");Ie.prototype.obj=f(function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this},\"obj\");Ie.prototype.key=f(function(e){var r=this._baseState;return at(r.key===null),r.key=e,this},\"key\");Ie.prototype.any=f(function(){var e=this._baseState;return e.any=!0,this},\"any\");Ie.prototype.choice=f(function(e){var r=this._baseState;return at(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(a){return e[a]})),this},\"choice\");Ie.prototype.contains=f(function(e){var r=this._baseState;return at(r.use===null),r.contains=e,this},\"contains\");Ie.prototype._decode=f(function(e,r){var a=this._baseState;if(a.parent===null)return e.wrapResult(a.children[0]._decode(e,r));var i=a.default,s=!0,c=null;if(a.key!==null&&(c=e.enterKey(a.key)),a.optional){var p=null;if(a.explicit!==null?p=a.explicit:a.implicit!==null?p=a.implicit:a.tag!==null&&(p=a.tag),p===null&&!a.any){var _=e.save();try{a.choice===null?this._decodeGeneric(a.tag,e,r):this._decodeChoice(e,r),s=!0}catch{s=!1}e.restore(_)}else if(s=this._peekTag(e,p,a.any),e.isError(s))return s}var S;if(a.obj&&s&&(S=e.enterObject()),s){if(a.explicit!==null){var A=this._decodeTag(e,a.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(a.use===null&&a.choice===null){if(a.any)var _=e.save();var B=this._decodeTag(e,a.implicit!==null?a.implicit:a.tag,a.any);if(e.isError(B))return B;a.any?i=e.raw(_):e=B}if(r&&r.track&&a.tag!==null&&r.track(e.path(),q,e.length,\"tagged\"),r&&r.track&&a.tag!==null&&r.track(e.path(),e.offset,e.length,\"content\"),a.any?i=i:a.choice===null?i=this._decodeGeneric(a.tag,e,r):i=this._decodeChoice(e,r),e.isError(i))return i;if(!a.any&&a.choice===null&&a.children!==null&&a.children.forEach(f(function(T){T._decode(e,r)},\"decodeChildren\")),a.contains&&(a.tag===\"octstr\"||a.tag===\"bitstr\")){var I=new N3(i);i=this._getUse(a.contains,e._reporterState.obj)._decode(I,r)}}return a.obj&&s&&(i=e.leaveObject(S)),a.key!==null&&(i!==null||s===!0)?e.leaveKey(c,a.key,i):c!==null&&e.exitKey(c),i},\"decode\");Ie.prototype._decodeGeneric=f(function(e,r,a){var i=this._baseState;return e===\"seq\"||e===\"set\"?null:e===\"seqof\"||e===\"setof\"?this._decodeList(r,e,i.args[0],a):/str$/.test(e)?this._decodeStr(r,e,a):e===\"objid\"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],a):e===\"objid\"?this._decodeObjid(r,null,null,a):e===\"gentime\"||e===\"utctime\"?this._decodeTime(r,e,a):e===\"null_\"?this._decodeNull(r,a):e===\"bool\"?this._decodeBool(r,a):e===\"objDesc\"?this._decodeStr(r,e,a):e===\"int\"||e===\"enum\"?this._decodeInt(r,i.args&&i.args[0],a):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,a):r.error(\"unknown tag: \"+e)},\"decodeGeneric\");Ie.prototype._getUse=f(function(e,r){var a=this._baseState;return a.useDecoder=this._use(e,r),at(a.useDecoder._baseState.parent===null),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},\"_getUse\");Ie.prototype._decodeChoice=f(function(e,r){var a=this._baseState,i=null,s=!1;return Object.keys(a.choice).some(function(c){var p=e.save(),_=a.choice[c];try{var S=_._decode(e,r);if(e.isError(S))return!1;i={type:c,value:S},s=!0}catch{return e.restore(p),!1}return!0},this),s?i:e.error(\"Choice not matched\")},\"decodeChoice\");Ie.prototype._createEncoderBuffer=f(function(e){return new T3(e,this.reporter)},\"createEncoderBuffer\");Ie.prototype._encode=f(function(e,r,a){var i=this._baseState;if(!(i.default!==null&&i.default===e)){var s=this._encodeValue(e,r,a);if(s!==void 0&&!this._skipDefault(s,r,a))return s}},\"encode\");Ie.prototype._encodeValue=f(function(e,r,a){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new P3);var _=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;var s=null,c=!1;if(i.any)_=this._createEncoderBuffer(e);else if(i.choice)_=this._encodeChoice(e,r);else if(i.contains)s=this._getUse(i.contains,a)._encode(e,r),c=!0;else if(i.children)s=i.children.map(function(q){if(q._baseState.tag===\"null_\")return q._encode(null,r,e);if(q._baseState.key===null)return r.error(\"Child should have a key\");var B=r.enterKey(q._baseState.key);if(typeof e!=\"object\")return r.error(\"Child expected, but input is not object\");var I=q._encode(e[q._baseState.key],r,e);return r.leaveKey(B),I},this).filter(function(q){return q}),s=this._createEncoderBuffer(s);else if(i.tag===\"seqof\"||i.tag===\"setof\"){if(!(i.args&&i.args.length===1))return r.error(\"Too many args for : \"+i.tag);if(!Array.isArray(e))return r.error(\"seqof/setof, but data is not Array\");var p=this.clone();p._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(q){var B=this._baseState;return this._getUse(B.args[0],e)._encode(q,r)},p))}else i.use!==null?_=this._getUse(i.use,a)._encode(e,r):(s=this._encodePrimitive(i.tag,e),c=!0);var _;if(!i.any&&i.choice===null){var S=i.implicit!==null?i.implicit:i.tag,A=i.implicit===null?\"universal\":\"context\";S===null?i.use===null&&r.error(\"Tag could be omitted only for .use()\"):i.use===null&&(_=this._encodeComposite(S,c,A,s))}return i.explicit!==null&&(_=this._encodeComposite(i.explicit,!1,\"context\",_)),_},\"encode\");Ie.prototype._encodeChoice=f(function(e,r){var a=this._baseState,i=a.choice[e.type];return i||at(!1,e.type+\" not found in \"+JSON.stringify(Object.keys(a.choice))),i._encode(e.value,r)},\"encodeChoice\");Ie.prototype._encodePrimitive=f(function(e,r){var a=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e===\"objid\"&&a.args)return this._encodeObjid(r,a.reverseArgs[0],a.args[1]);if(e===\"objid\")return this._encodeObjid(r,null,null);if(e===\"gentime\"||e===\"utctime\")return this._encodeTime(r,e);if(e===\"null_\")return this._encodeNull();if(e===\"int\"||e===\"enum\")return this._encodeInt(r,a.args&&a.reverseArgs[0]);if(e===\"bool\")return this._encodeBool(r);if(e===\"objDesc\")return this._encodeStr(r,e);throw new Error(\"Unsupported tag: \"+e)},\"encodePrimitive\");Ie.prototype._isNumstr=f(function(e){return/^[0-9 ]*$/.test(e)},\"isNumstr\");Ie.prototype._isPrintstr=f(function(e){return/^[A-Za-z0-9 '\\(\\)\\+,\\-\\.\\/:=\\?]*$/.test(e)},\"isPrintstr\")});var Ni=k(qu=>{M();var Jf=qu;Jf.Reporter=Mu().Reporter;Jf.DecoderBuffer=Z0().DecoderBuffer;Jf.EncoderBuffer=Z0().EncoderBuffer;Jf.Node=Eu()});var ku=k(ii=>{M();var Bu=X0();ii.tagClass={0:\"universal\",1:\"application\",2:\"context\",3:\"private\"};ii.tagClassByName=Bu._reverse(ii.tagClass);ii.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\"};ii.tagByName=Bu._reverse(ii.tag)});var X0=k(Ru=>{M();var Iu=Ru;Iu._reverse=f(function(e){var r={};return Object.keys(e).forEach(function(a){(a|0)==a&&(a=a|0);var i=e[a];r[i]=a}),r},\"reverse\");Iu.der=ku()});var Y0=k((ug,Tu)=>{M();var z3=Se(),G0=Pi(),Yf=G0.base,F3=G0.bignum,Cu=G0.constants.der;function Du(t){this.enc=\"der\",this.name=t.name,this.entity=t,this.tree=new ct,this.tree._init(t.body)}f(Du,\"DERDecoder\");Tu.exports=Du;Du.prototype.decode=f(function(e,r){return e instanceof Yf.DecoderBuffer||(e=new Yf.DecoderBuffer(e,r)),this.tree._decode(e,r)},\"decode\");function ct(t){Yf.Node.call(this,\"der\",t)}f(ct,\"DERNode\");z3(ct,Yf.Node);ct.prototype._peekTag=f(function(e,r,a){if(e.isEmpty())return!1;var i=e.save(),s=J0(e,'Failed to peek tag: \"'+r+'\"');return e.isError(s)?s:(e.restore(i),s.tag===r||s.tagStr===r||s.tagStr+\"of\"===r||a)},\"peekTag\");ct.prototype._decodeTag=f(function(e,r,a){var i=J0(e,'Failed to decode tag of \"'+r+'\"');if(e.isError(i))return i;var s=Pu(e,i.primitive,'Failed to get length of \"'+r+'\"');if(e.isError(s))return s;if(!a&&i.tag!==r&&i.tagStr!==r&&i.tagStr+\"of\"!==r)return e.error('Failed to match tag: \"'+r+'\"');if(i.primitive||s!==null)return e.skip(s,'Failed to match body of: \"'+r+'\"');var c=e.save(),p=this._skipUntilEnd(e,'Failed to skip indefinite length body: \"'+this.tag+'\"');return e.isError(p)?p:(s=e.offset-c.offset,e.restore(c),e.skip(s,'Failed to match body of: \"'+r+'\"'))},\"decodeTag\");ct.prototype._skipUntilEnd=f(function(e,r){for(;;){var a=J0(e,r);if(e.isError(a))return a;var i=Pu(e,a.primitive,r);if(e.isError(i))return i;var s;if(a.primitive||i!==null?s=e.skip(i):s=this._skipUntilEnd(e,r),e.isError(s))return s;if(a.tagStr===\"end\")break}},\"skipUntilEnd\");ct.prototype._decodeList=f(function(e,r,a,i){for(var s=[];!e.isEmpty();){var c=this._peekTag(e,\"end\");if(e.isError(c))return c;var p=a.decode(e,\"der\",i);if(e.isError(p)&&c)break;s.push(p)}return s},\"decodeList\");ct.prototype._decodeStr=f(function(e,r){if(r===\"bitstr\"){var a=e.readUInt8();return e.isError(a)?a:{unused:a,data:e.raw()}}else if(r===\"bmpstr\"){var i=e.raw();if(i.length%2===1)return e.error(\"Decoding of string type: bmpstr length mismatch\");for(var s=\"\",c=0;c<i.length/2;c++)s+=String.fromCharCode(i.readUInt16BE(c*2));return s}else if(r===\"numstr\"){var p=e.raw().toString(\"ascii\");return this._isNumstr(p)?p:e.error(\"Decoding of string type: numstr unsupported characters\")}else{if(r===\"octstr\")return e.raw();if(r===\"objDesc\")return e.raw();if(r===\"printstr\"){var _=e.raw().toString(\"ascii\");return this._isPrintstr(_)?_:e.error(\"Decoding of string type: printstr unsupported characters\")}else return/str$/.test(r)?e.raw().toString():e.error(\"Decoding of string type: \"+r+\" unsupported\")}},\"decodeStr\");ct.prototype._decodeObjid=f(function(e,r,a){for(var i,s=[],c=0;!e.isEmpty();){var p=e.readUInt8();c<<=7,c|=p&127,(p&128)===0&&(s.push(c),c=0)}p&128&&s.push(c);var _=s[0]/40|0,S=s[0]%40;if(a?i=s:i=[_,S].concat(s.slice(1)),r){var A=r[i.join(\" \")];A===void 0&&(A=r[i.join(\".\")]),A!==void 0&&(i=A)}return i},\"decodeObjid\");ct.prototype._decodeTime=f(function(e,r){var a=e.raw().toString();if(r===\"gentime\")var i=a.slice(0,4)|0,s=a.slice(4,6)|0,c=a.slice(6,8)|0,p=a.slice(8,10)|0,_=a.slice(10,12)|0,S=a.slice(12,14)|0;else if(r===\"utctime\"){var i=a.slice(0,2)|0,s=a.slice(2,4)|0,c=a.slice(4,6)|0,p=a.slice(6,8)|0,_=a.slice(8,10)|0,S=a.slice(10,12)|0;i<70?i=2e3+i:i=1900+i}else return e.error(\"Decoding \"+r+\" time is not supported yet\");return Date.UTC(i,s-1,c,p,_,S,0)},\"decodeTime\");ct.prototype._decodeNull=f(function(e){return null},\"decodeNull\");ct.prototype._decodeBool=f(function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0},\"decodeBool\");ct.prototype._decodeInt=f(function(e,r){var a=e.raw(),i=new F3(a);return r&&(i=r[i.toString(10)]||i),i},\"decodeInt\");ct.prototype._use=f(function(e,r){return typeof e==\"function\"&&(e=e(r)),e._getDecoder(\"der\").tree},\"use\");function J0(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var a=Cu.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){var s=r;for(r=0;(s&128)===128;){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=s&127}}else r&=31;var c=Cu.tag[r];return{cls:a,primitive:i,tag:r,tagStr:c}}f(J0,\"derDecodeTag\");function Pu(t,e,r){var a=t.readUInt8(r);if(t.isError(a))return a;if(!e&&a===128)return null;if((a&128)===0)return a;var i=a&127;if(i>4)return t.error(\"length octect is too long\");a=0;for(var s=0;s<i;s++){a<<=8;var c=t.readUInt8(r);if(t.isError(c))return c;a|=c}return a}f(Pu,\"derDecodeLen\")});var Ou=k((pg,Nu)=>{M();var H3=Se(),K3=(cr(),hr(dr)).Buffer,$0=Y0();function Q0(t){$0.call(this,t),this.enc=\"pem\"}f(Q0,\"PEMDecoder\");H3(Q0,$0);Nu.exports=Q0;Q0.prototype.decode=f(function(e,r){for(var a=e.toString().split(/[\\r\\n]+/g),i=r.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,c=-1,p=-1,_=0;_<a.length;_++){var S=a[_].match(s);if(S!==null&&S[2]===i)if(c===-1){if(S[1]!==\"BEGIN\")break;c=_}else{if(S[1]!==\"END\")break;p=_;break}}if(c===-1||p===-1)throw new Error(\"PEM section not found for: \"+i);var A=a.slice(c+1,p).join(\"\");A.replace(/[^a-z0-9\\+\\/=]+/gi,\"\");var q=new K3(A,\"base64\");return $0.prototype.decode.call(this,q,r)},\"decode\")});var zu=k(Uu=>{M();var Lu=Uu;Lu.der=Y0();Lu.pem=Ou()});var ts=k((_g,ju)=>{M();var j3=Se(),or=(cr(),hr(dr)).Buffer,Fu=Pi(),Hu=Fu.base,es=Fu.constants.der;function Ku(t){this.enc=\"der\",this.name=t.name,this.entity=t,this.tree=new Ct,this.tree._init(t.body)}f(Ku,\"DEREncoder\");ju.exports=Ku;Ku.prototype.encode=f(function(e,r){return this.tree._encode(e,r).join()},\"encode\");function Ct(t){Hu.Node.call(this,\"der\",t)}f(Ct,\"DERNode\");j3(Ct,Hu.Node);Ct.prototype._encodeComposite=f(function(e,r,a,i){var s=V3(e,r,a,this.reporter);if(i.length<128){var _=new or(2);return _[0]=s,_[1]=i.length,this._createEncoderBuffer([_,i])}for(var c=1,p=i.length;p>=256;p>>=8)c++;var _=new or(2+c);_[0]=s,_[1]=128|c;for(var p=1+c,S=i.length;S>0;p--,S>>=8)_[p]=S&255;return this._createEncoderBuffer([_,i])},\"encodeComposite\");Ct.prototype._encodeStr=f(function(e,r){if(r===\"bitstr\")return this._createEncoderBuffer([e.unused|0,e.data]);if(r===\"bmpstr\"){for(var a=new or(e.length*2),i=0;i<e.length;i++)a.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(a)}else return r===\"numstr\"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: numstr supports only digits and space\"):r===\"printstr\"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark\"):/str$/.test(r)?this._createEncoderBuffer(e):r===\"objDesc\"?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: \"+r+\" unsupported\")},\"encodeStr\");Ct.prototype._encodeObjid=f(function(e,r,a){if(typeof e==\"string\"){if(!r)return this.reporter.error(\"string objid given, but no values map found\");if(!r.hasOwnProperty(e))return this.reporter.error(\"objid not found in values map\");e=r[e].split(/[\\s\\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error(\"objid() should be either array or string, got: \"+JSON.stringify(e));if(!a){if(e[1]>=40)return this.reporter.error(\"Second objid identifier OOB\");e.splice(0,2,e[0]*40+e[1])}for(var s=0,i=0;i<e.length;i++){var c=e[i];for(s++;c>=128;c>>=7)s++}for(var p=new or(s),_=p.length-1,i=e.length-1;i>=0;i--){var c=e[i];for(p[_--]=c&127;(c>>=7)>0;)p[_--]=128|c&127}return this._createEncoderBuffer(p)},\"encodeObjid\");function wt(t){return t<10?\"0\"+t:t}f(wt,\"two\");Ct.prototype._encodeTime=f(function(e,r){var a,i=new Date(e);return r===\"gentime\"?a=[wt(i.getFullYear()),wt(i.getUTCMonth()+1),wt(i.getUTCDate()),wt(i.getUTCHours()),wt(i.getUTCMinutes()),wt(i.getUTCSeconds()),\"Z\"].join(\"\"):r===\"utctime\"?a=[wt(i.getFullYear()%100),wt(i.getUTCMonth()+1),wt(i.getUTCDate()),wt(i.getUTCHours()),wt(i.getUTCMinutes()),wt(i.getUTCSeconds()),\"Z\"].join(\"\"):this.reporter.error(\"Encoding \"+r+\" time is not supported yet\"),this._encodeStr(a,\"octstr\")},\"encodeTime\");Ct.prototype._encodeNull=f(function(){return this._createEncoderBuffer(\"\")},\"encodeNull\");Ct.prototype._encodeInt=f(function(e,r){if(typeof e==\"string\"){if(!r)return this.reporter.error(\"String int or enum given, but no values map\");if(!r.hasOwnProperty(e))return this.reporter.error(\"Values map doesn't contain: \"+JSON.stringify(e));e=r[e]}if(typeof e!=\"number\"&&!or.isBuffer(e)){var a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=new or(a)}if(or.isBuffer(e)){var i=e.length;e.length===0&&i++;var c=new or(i);return e.copy(c),e.length===0&&(c[0]=0),this._createEncoderBuffer(c)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,s=e;s>=256;s>>=8)i++;for(var c=new Array(i),s=c.length-1;s>=0;s--)c[s]=e&255,e>>=8;return c[0]&128&&c.unshift(0),this._createEncoderBuffer(new or(c))},\"encodeInt\");Ct.prototype._encodeBool=f(function(e){return this._createEncoderBuffer(e?255:0)},\"encodeBool\");Ct.prototype._use=f(function(e,r){return typeof e==\"function\"&&(e=e(r)),e._getEncoder(\"der\").tree},\"use\");Ct.prototype._skipDefault=f(function(e,r,a){var i=this._baseState,s;if(i.default===null)return!1;var c=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,a).join()),c.length!==i.defaultBuffer.length)return!1;for(s=0;s<c.length;s++)if(c[s]!==i.defaultBuffer[s])return!1;return!0},\"skipDefault\");function V3(t,e,r,a){var i;if(t===\"seqof\"?t=\"seq\":t===\"setof\"&&(t=\"set\"),es.tagByName.hasOwnProperty(t))i=es.tagByName[t];else if(typeof t==\"number\"&&(t|0)===t)i=t;else return a.error(\"Unknown tag: \"+t);return i>=31?a.error(\"Multi-octet tag encoding unsupported\"):(e||(i|=32),i|=es.tagClassByName[r||\"universal\"]<<6,i)}f(V3,\"encodeTag\")});var Wu=k((Mg,Vu)=>{M();var W3=Se(),rs=ts();function is(t){rs.call(this,t),this.enc=\"pem\"}f(is,\"PEMEncoder\");W3(is,rs);Vu.exports=is;is.prototype.encode=f(function(e,r){for(var a=rs.prototype.encode.call(this,e),i=a.toString(\"base64\"),s=[\"-----BEGIN \"+r.label+\"-----\"],c=0;c<i.length;c+=64)s.push(i.slice(c,c+64));return s.push(\"-----END \"+r.label+\"-----\"),s.join(`\n`)},\"encode\")});var Gu=k(Xu=>{M();var Zu=Xu;Zu.der=ts();Zu.pem=Wu()});var Pi=k(Ju=>{M();var Oi=Ju;Oi.bignum=je();Oi.define=wu().define;Oi.base=Ni();Oi.constants=X0();Oi.decoders=zu();Oi.encoders=Gu()});var el=k((Ig,Qu)=>{\"use strict\";M();var Dt=Pi(),Yu=Dt.define(\"Time\",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Z3=Dt.define(\"AttributeTypeValue\",function(){this.seq().obj(this.key(\"type\").objid(),this.key(\"value\").any())}),as=Dt.define(\"AlgorithmIdentifier\",function(){this.seq().obj(this.key(\"algorithm\").objid(),this.key(\"parameters\").optional(),this.key(\"curve\").objid().optional())}),X3=Dt.define(\"SubjectPublicKeyInfo\",function(){this.seq().obj(this.key(\"algorithm\").use(as),this.key(\"subjectPublicKey\").bitstr())}),G3=Dt.define(\"RelativeDistinguishedName\",function(){this.setof(Z3)}),J3=Dt.define(\"RDNSequence\",function(){this.seqof(G3)}),$u=Dt.define(\"Name\",function(){this.choice({rdnSequence:this.use(J3)})}),Y3=Dt.define(\"Validity\",function(){this.seq().obj(this.key(\"notBefore\").use(Yu),this.key(\"notAfter\").use(Yu))}),$3=Dt.define(\"Extension\",function(){this.seq().obj(this.key(\"extnID\").objid(),this.key(\"critical\").bool().def(!1),this.key(\"extnValue\").octstr())}),Q3=Dt.define(\"TBSCertificate\",function(){this.seq().obj(this.key(\"version\").explicit(0).int().optional(),this.key(\"serialNumber\").int(),this.key(\"signature\").use(as),this.key(\"issuer\").use($u),this.key(\"validity\").use(Y3),this.key(\"subject\").use($u),this.key(\"subjectPublicKeyInfo\").use(X3),this.key(\"issuerUniqueID\").implicit(1).bitstr().optional(),this.key(\"subjectUniqueID\").implicit(2).bitstr().optional(),this.key(\"extensions\").explicit(3).seqof($3).optional())}),e4=Dt.define(\"X509Certificate\",function(){this.seq().obj(this.key(\"tbsCertificate\").use(Q3),this.key(\"signatureAlgorithm\").use(as),this.key(\"signatureValue\").bitstr())});Qu.exports=e4});var rl=k(Tt=>{\"use strict\";M();var Pt=Pi();Tt.certificate=el();var t4=Pt.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())});Tt.RSAPrivateKey=t4;var r4=Pt.define(\"RSAPublicKey\",function(){this.seq().obj(this.key(\"modulus\").int(),this.key(\"publicExponent\").int())});Tt.RSAPublicKey=r4;var tl=Pt.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())}),i4=Pt.define(\"SubjectPublicKeyInfo\",function(){this.seq().obj(this.key(\"algorithm\").use(tl),this.key(\"subjectPublicKey\").bitstr())});Tt.PublicKey=i4;var a4=Pt.define(\"PrivateKeyInfo\",function(){this.seq().obj(this.key(\"version\").int(),this.key(\"algorithm\").use(tl),this.key(\"subjectPrivateKey\").octstr())});Tt.PrivateKey=a4;var f4=Pt.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())});Tt.EncryptedPrivateKey=f4;var n4=Pt.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())});Tt.DSAPrivateKey=n4;Tt.DSAparam=Pt.define(\"DSAparam\",function(){this.int()});var s4=Pt.define(\"ECParameters\",function(){this.choice({namedCurve:this.objid()})}),o4=Pt.define(\"ECPrivateKey\",function(){this.seq().obj(this.key(\"version\").int(),this.key(\"privateKey\").octstr(),this.key(\"parameters\").optional().explicit(0).use(s4),this.key(\"publicKey\").optional().explicit(1).bitstr())});Tt.ECPrivateKey=o4;Tt.signature=Pt.define(\"signature\",function(){this.seq().obj(this.key(\"r\").int(),this.key(\"s\").int())})});var il=k((Pg,h4)=>{h4.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\"}});var fl=k((Tg,al)=>{\"use strict\";M();var d4=/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,c4=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u4=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\\n\\r+/=]+)-----END \\1-----$/m,l4=Aa(),v4=Af(),$f=xe().Buffer;al.exports=function(t,e){var r=t.toString(),a=r.match(d4),i;if(a){var c=\"aes\"+a[1],p=$f.from(a[2],\"hex\"),_=$f.from(a[3].replace(/[\\r\\n]/g,\"\"),\"base64\"),S=l4(e,p.slice(0,8),parseInt(a[1],10)).key,A=[],q=v4.createDecipheriv(c,S,p);A.push(q.update(_)),A.push(q.final()),i=$f.concat(A)}else{var s=r.match(u4);i=$f.from(s[2].replace(/[\\r\\n]/g,\"\"),\"base64\")}var B=r.match(c4)[1];return{tag:B,data:i}}});var Pa=k((Og,ol)=>{\"use strict\";M();var ot=rl(),p4=il(),b4=fl(),m4=Af(),y4=Zn().pbkdf2Sync,fs=xe().Buffer,nl=1e7;function g4(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,a=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10);if(a!==a||a<1||a>nl)throw new RangeError(\"iteration count must be an integer between 1 and \"+nl+\", got: \"+a);var i=p4[t.algorithm.decrypt.cipher.algo.join(\".\")],s=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,p=parseInt(i.split(\"-\")[1],10)/8,_=y4(e,r,a,p,\"sha1\"),S=m4.createDecipheriv(i,_,s),A=[];return A.push(S.update(c)),A.push(S.final()),fs.concat(A)}f(g4,\"decrypt\");function sl(t){var e;typeof t==\"object\"&&!fs.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t==\"string\"&&(t=fs.from(t));var r=b4(t,e),a=r.tag,i=r.data,s,c;switch(a){case\"CERTIFICATE\":c=ot.certificate.decode(i,\"der\").tbsCertificate.subjectPublicKeyInfo;case\"PUBLIC KEY\":switch(c||(c=ot.PublicKey.decode(i,\"der\")),s=c.algorithm.algorithm.join(\".\"),s){case\"1.2.840.113549.1.1.1\":return ot.RSAPublicKey.decode(c.subjectPublicKey.data,\"der\");case\"1.2.840.10045.2.1\":return c.subjectPrivateKey=c.subjectPublicKey,{type:\"ec\",data:c};case\"1.2.840.10040.4.1\":return c.algorithm.params.pub_key=ot.DSAparam.decode(c.subjectPublicKey.data,\"der\"),{type:\"dsa\",data:c.algorithm.params};default:throw new Error(\"unknown key id \"+s)}case\"ENCRYPTED PRIVATE KEY\":i=ot.EncryptedPrivateKey.decode(i,\"der\"),i=g4(i,e);case\"PRIVATE KEY\":switch(c=ot.PrivateKey.decode(i,\"der\"),s=c.algorithm.algorithm.join(\".\"),s){case\"1.2.840.113549.1.1.1\":return ot.RSAPrivateKey.decode(c.subjectPrivateKey,\"der\");case\"1.2.840.10045.2.1\":return{curve:c.algorithm.curve,privateKey:ot.ECPrivateKey.decode(c.subjectPrivateKey,\"der\").privateKey};case\"1.2.840.10040.4.1\":return c.algorithm.params.priv_key=ot.DSAparam.decode(c.subjectPrivateKey,\"der\"),{type:\"dsa\",params:c.algorithm.params};default:throw new Error(\"unknown key id \"+s)}case\"RSA PUBLIC KEY\":return ot.RSAPublicKey.decode(i,\"der\");case\"RSA PRIVATE KEY\":return ot.RSAPrivateKey.decode(i,\"der\");case\"DSA PRIVATE KEY\":return{type:\"dsa\",params:ot.DSAPrivateKey.decode(i,\"der\")};case\"EC PRIVATE KEY\":return i=ot.ECPrivateKey.decode(i,\"der\"),{curve:i.parameters.value,privateKey:i.privateKey};default:throw new Error(\"unknown key type \"+a)}}f(sl,\"parseKeys\");sl.signature=ot.signature;ol.exports=sl});var ns=k((zg,_4)=>{_4.exports={\"1.3.132.0.10\":\"secp256k1\",\"1.3.132.0.33\":\"p224\",\"1.2.840.10045.3.1.1\":\"p192\",\"1.2.840.10045.3.1.7\":\"p256\",\"1.3.132.0.34\":\"p384\",\"1.3.132.0.35\":\"p521\"}});var cl=k((Fg,en)=>{\"use strict\";M();var it=xe().Buffer,ai=Ln(),w4=If(),x4=Zf().ec,Qf=kf(),M4=Pa(),S4=ns(),A4=1;function E4(t,e,r,a,i){var s=M4(e);if(s.curve){if(a!==\"ecdsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong private key type\");return q4(t,s)}else if(s.type===\"dsa\"){if(a!==\"dsa\")throw new Error(\"wrong private key type\");return B4(t,s,r)}if(a!==\"rsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong private key type\");if(e.padding!==void 0&&e.padding!==A4)throw new Error(\"illegal or unsupported padding mode\");t=it.concat([i,t]);for(var c=s.modulus.byteLength(),p=[0,1];t.length+p.length+1<c;)p.push(255);p.push(0);for(var _=-1;++_<t.length;)p.push(t[_]);var S=w4(p,s);return S}f(E4,\"sign\");function q4(t,e){var r=S4[e.curve.join(\".\")];if(!r)throw new Error(\"unknown curve \"+e.curve.join(\".\"));var a=new x4(r),i=a.keyFromPrivate(e.privateKey),s=i.sign(t);return it.from(s.toDER())}f(q4,\"ecSign\");function B4(t,e,r){for(var a=e.params.priv_key,i=e.params.p,s=e.params.q,c=e.params.g,p=new Qf(0),_,S=ss(t,s).mod(s),A=!1,q=hl(a,s,t,r);A===!1;)_=dl(s,q,r),p=R4(c,_,i,s),A=_.invm(s).imul(S.add(a.mul(p))).mod(s),A.cmpn(0)===0&&(A=!1,p=new Qf(0));return k4(p,A)}f(B4,\"dsaSign\");function k4(t,e){t=t.toArray(),e=e.toArray(),t[0]&128&&(t=[0].concat(t)),e[0]&128&&(e=[0].concat(e));var r=t.length+e.length+4,a=[48,r,2,t.length];return a=a.concat(t,[2,e.length],e),it.from(a)}f(k4,\"toDER\");function hl(t,e,r,a){if(t=it.from(t.toArray()),t.length<e.byteLength()){var i=it.alloc(e.byteLength()-t.length);t=it.concat([i,t])}var s=r.length,c=I4(r,e),p=it.alloc(s);p.fill(1);var _=it.alloc(s);return _=ai(a,_).update(p).update(it.from([0])).update(t).update(c).digest(),p=ai(a,_).update(p).digest(),_=ai(a,_).update(p).update(it.from([1])).update(t).update(c).digest(),p=ai(a,_).update(p).digest(),{k:_,v:p}}f(hl,\"getKey\");function ss(t,e){var r=new Qf(t),a=(t.length<<3)-e.bitLength();return a>0&&r.ishrn(a),r}f(ss,\"bits2int\");function I4(t,e){t=ss(t,e),t=t.mod(e);var r=it.from(t.toArray());if(r.length<e.byteLength()){var a=it.alloc(e.byteLength()-r.length);r=it.concat([a,r])}return r}f(I4,\"bits2octets\");function dl(t,e,r){var a,i;do{for(a=it.alloc(0);a.length*8<t.bitLength();)e.v=ai(r,e.k).update(e.v).digest(),a=it.concat([a,e.v]);i=ss(a,t),e.k=ai(r,e.k).update(e.v).update(it.from([0])).digest(),e.v=ai(r,e.k).update(e.v).digest()}while(i.cmp(t)!==-1);return i}f(dl,\"makeKey\");function R4(t,e,r,a){return t.toRed(Qf.mont(r)).redPow(e).fromRed().mod(a)}f(R4,\"makeR\");en.exports=E4;en.exports.getKey=hl;en.exports.makeKey=dl});var pl=k((jg,vl)=>{\"use strict\";M();var os=xe().Buffer,Ta=kf(),C4=Zf().ec,ll=Pa(),D4=ns();function P4(t,e,r,a,i){var s=ll(r);if(s.type===\"ec\"){if(a!==\"ecdsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong public key type\");return T4(t,e,s)}else if(s.type===\"dsa\"){if(a!==\"dsa\")throw new Error(\"wrong public key type\");return N4(t,e,s)}if(a!==\"rsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong public key type\");e=os.concat([i,e]);for(var c=s.modulus.byteLength(),p=[1],_=0;e.length+p.length+2<c;)p.push(255),_+=1;p.push(0);for(var S=-1;++S<e.length;)p.push(e[S]);p=os.from(p);var A=Ta.mont(s.modulus);t=new Ta(t).toRed(A),t=t.redPow(new Ta(s.publicExponent)),t=os.from(t.fromRed().toArray());var q=_<8?1:0;for(c=Math.min(t.length,p.length),t.length!==p.length&&(q=1),S=-1;++S<c;)q|=t[S]^p[S];return q===0}f(P4,\"verify\");function T4(t,e,r){var a=D4[r.data.algorithm.curve.join(\".\")];if(!a)throw new Error(\"unknown curve \"+r.data.algorithm.curve.join(\".\"));var i=new C4(a),s=r.data.subjectPrivateKey.data;return i.verify(e,t,s)}f(T4,\"ecVerify\");function N4(t,e,r){var a=r.data.p,i=r.data.q,s=r.data.g,c=r.data.pub_key,p=ll.signature.decode(t,\"der\"),_=p.s,S=p.r;ul(_,i),ul(S,i);var A=Ta.mont(a),q=_.invm(i),B=s.toRed(A).redPow(new Ta(e).mul(q).mod(i)).fromRed().mul(c.toRed(A).redPow(S.mul(q).mod(i)).fromRed()).mod(a).mod(i);return B.cmp(S)===0}f(N4,\"dsaVerify\");function ul(t,e){if(t.cmpn(0)<=0)throw new Error(\"invalid sig\");if(t.cmp(e)>=0)throw new Error(\"invalid sig\")}f(ul,\"checkValue\");vl.exports=P4});var wl=k((Zg,_l)=>{\"use strict\";M();var tn=xe().Buffer,yl=vi(),rn=In(),gl=Se(),O4=cl(),L4=pl(),fi=Un();Object.keys(fi).forEach(function(t){fi[t].id=tn.from(fi[t].id,\"hex\"),fi[t.toLowerCase()]=fi[t]});function Na(t){rn.Writable.call(this);var e=fi[t];if(!e)throw new Error(\"Unknown message digest\");this._hashType=e.hash,this._hash=yl(e.hash),this._tag=e.id,this._signType=e.sign}f(Na,\"Sign\");gl(Na,rn.Writable);Na.prototype._write=f(function(e,r,a){this._hash.update(e),a()},\"_write\");Na.prototype.update=f(function(e,r){return this._hash.update(typeof e==\"string\"?tn.from(e,r):e),this},\"update\");Na.prototype.sign=f(function(e,r){this.end();var a=this._hash.digest(),i=O4(a,e,this._hashType,this._signType,this._tag);return r?i.toString(r):i},\"signMethod\");function Oa(t){rn.Writable.call(this);var e=fi[t];if(!e)throw new Error(\"Unknown message digest\");this._hash=yl(e.hash),this._tag=e.id,this._signType=e.sign}f(Oa,\"Verify\");gl(Oa,rn.Writable);Oa.prototype._write=f(function(e,r,a){this._hash.update(e),a()},\"_write\");Oa.prototype.update=f(function(e,r){return this._hash.update(typeof e==\"string\"?tn.from(e,r):e),this},\"update\");Oa.prototype.verify=f(function(e,r,a){var i=typeof r==\"string\"?tn.from(r,a):r;this.end();var s=this._hash.digest();return L4(i,s,e,this._signType,this._tag)},\"verifyMethod\");function bl(t){return new Na(t)}f(bl,\"createSign\");function ml(t){return new Oa(t)}f(ml,\"createVerify\");_l.exports={Sign:bl,Verify:ml,createSign:bl,createVerify:ml}});var Ml=k((Jg,xl)=>{M();var U4=Zf(),z4=je();xl.exports=f(function(e){return new ni(e)},\"createECDH\");var ut={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}};ut.p224=ut.secp224r1;ut.p256=ut.secp256r1=ut.prime256v1;ut.p192=ut.secp192r1=ut.prime192v1;ut.p384=ut.secp384r1;ut.p521=ut.secp521r1;function ni(t){this.curveType=ut[t],this.curveType||(this.curveType={name:t}),this.curve=new U4.ec(this.curveType.name),this.keys=void 0}f(ni,\"ECDH\");ni.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)};ni.prototype.computeSecret=function(t,e,r){e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e));var a=this.curve.keyFromPublic(t).getPublic(),i=a.mul(this.keys.getPrivate()).getX();return hs(i,r,this.curveType.byteLength)};ni.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic(e===\"compressed\",!0);return e===\"hybrid\"&&(r[r.length-1]%2?r[0]=7:r[0]=6),hs(r,t)};ni.prototype.getPrivateKey=function(t){return hs(this.keys.getPrivate(),t)};ni.prototype.setPublicKey=function(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.keys._importPublic(t),this};ni.prototype.setPrivateKey=function(t,e){e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e));var r=new z4(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this};function hs(t,e,r){Array.isArray(t)||(t=t.toArray());var a=new Buffer(t);if(r&&a.length<r){var i=new Buffer(r-a.length);i.fill(0),a=Buffer.concat([i,a])}return e?a.toString(e):a}f(hs,\"formatReturnValue\")});var cs=k((Qg,Sl)=>{M();var F4=vi(),ds=xe().Buffer;Sl.exports=function(t,e){for(var r=ds.alloc(0),a=0,i;r.length<e;)i=H4(a++),r=ds.concat([r,F4(\"sha1\").update(t).update(i).digest()]);return r.slice(0,e)};function H4(t){var e=ds.allocUnsafe(4);return e.writeUInt32BE(t,0),e}f(H4,\"i2ops\")});var us=k((r_,Al)=>{M();Al.exports=f(function(e,r){for(var a=e.length,i=-1;++i<a;)e[i]^=r[i];return e},\"xor\")});var ls=k((f_,ql)=>{M();var El=je(),K4=xe().Buffer;function j4(t,e){return K4.from(t.toRed(El.mont(e.modulus)).redPow(new El(e.publicExponent)).fromRed().toArray())}f(j4,\"withPublic\");ql.exports=j4});var Rl=k((o_,Il)=>{M();var V4=Pa(),vs=Or(),W4=vi(),Bl=cs(),kl=us(),ps=je(),Z4=ls(),X4=If(),Nt=xe().Buffer;Il.exports=f(function(e,r,a){var i;e.padding?i=e.padding:a?i=1:i=4;var s=V4(e),c;if(i===4)c=G4(s,r);else if(i===1)c=J4(s,r,a);else if(i===3){if(c=new ps(r),c.cmp(s.modulus)>=0)throw new Error(\"data too long for modulus\")}else throw new Error(\"unknown padding\");return a?X4(c,s):Z4(c,s)},\"publicEncrypt\");function G4(t,e){var r=t.modulus.byteLength(),a=e.length,i=W4(\"sha1\").update(Nt.alloc(0)).digest(),s=i.length,c=2*s;if(a>r-c-2)throw new Error(\"message too long\");var p=Nt.alloc(r-a-c-2),_=r-s-1,S=vs(s),A=kl(Nt.concat([i,p,Nt.alloc(1,1),e],_),Bl(S,_)),q=kl(S,Bl(A,s));return new ps(Nt.concat([Nt.alloc(1),q,A],r))}f(G4,\"oaep\");function J4(t,e,r){var a=e.length,i=t.modulus.byteLength();if(a>i-11)throw new Error(\"message too long\");var s;return r?s=Nt.alloc(i-a-3,255):s=Y4(i-a-3),new ps(Nt.concat([Nt.from([0,r?1:2]),s,Nt.alloc(1),e],i))}f(J4,\"pkcs1\");function Y4(t){for(var e=Nt.allocUnsafe(t),r=0,a=vs(t*2),i=0,s;r<t;)i===a.length&&(a=vs(t*2),i=0),s=a[i++],s&&(e[r++]=s);return e}f(Y4,\"nonZero\")});var Nl=k((c_,Tl)=>{M();var $4=Pa(),Cl=cs(),Dl=us(),Pl=je(),Q4=If(),e8=vi(),t8=ls(),La=xe().Buffer;Tl.exports=f(function(e,r,a){var i;e.padding?i=e.padding:a?i=1:i=4;var s=$4(e),c=s.modulus.byteLength();if(r.length>c||new Pl(r).cmp(s.modulus)>=0)throw new Error(\"decryption error\");var p;a?p=t8(new Pl(r),s):p=Q4(r,s);var _=La.alloc(c-p.length);if(p=La.concat([_,p],c),i===4)return r8(s,p);if(i===1)return i8(s,p,a);if(i===3)return p;throw new Error(\"unknown padding\")},\"privateDecrypt\");function r8(t,e){var r=t.modulus.byteLength(),a=e8(\"sha1\").update(La.alloc(0)).digest(),i=a.length;if(e[0]!==0)throw new Error(\"decryption error\");var s=e.slice(1,i+1),c=e.slice(i+1),p=Dl(s,Cl(c,i)),_=Dl(c,Cl(p,r-i-1));if(a8(a,_.slice(0,i)))throw new Error(\"decryption error\");for(var S=i;_[S]===0;)S++;if(_[S++]!==1)throw new Error(\"decryption error\");return _.slice(S)}f(r8,\"oaep\");function i8(t,e,r){for(var a=e.slice(0,2),i=2,s=0;e[i++]!==0;)if(i>=e.length){s++;break}var c=e.slice(2,i-1);if((a.toString(\"hex\")!==\"0002\"&&!r||a.toString(\"hex\")!==\"0001\"&&r)&&s++,c.length<8&&s++,s)throw new Error(\"decryption error\");return e.slice(i)}f(i8,\"pkcs1\");function a8(t,e){t=La.from(t),e=La.from(e);var r=0,a=t.length;t.length!==e.length&&(r++,a=Math.min(t.length,e.length));for(var i=-1;++i<a;)r+=t[i]^e[i];return r}f(a8,\"compare\")});var Ol=k(si=>{M();si.publicEncrypt=Rl();si.privateDecrypt=Nl();si.privateEncrypt=f(function(e,r){return si.publicEncrypt(e,r,!0)},\"privateEncrypt\");si.publicDecrypt=f(function(e,r){return si.privateDecrypt(e,r,!0)},\"publicDecrypt\")});var Zl=k(Ua=>{\"use strict\";M();function Ll(){throw new Error(`secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11`)}f(Ll,\"oldBrowser\");var zl=xe(),Ul=Or(),Fl=zl.Buffer,Hl=zl.kMaxLength,bs=globalThis.crypto||globalThis.msCrypto,Kl=Math.pow(2,32)-1;function jl(t,e){if(typeof t!=\"number\"||t!==t)throw new TypeError(\"offset must be a number\");if(t>Kl||t<0)throw new TypeError(\"offset must be a uint32\");if(t>Hl||t>e)throw new RangeError(\"offset out of range\")}f(jl,\"assertOffset\");function Vl(t,e,r){if(typeof t!=\"number\"||t!==t)throw new TypeError(\"size must be a number\");if(t>Kl||t<0)throw new TypeError(\"size must be a uint32\");if(t+e>r||t>Hl)throw new RangeError(\"buffer too small\")}f(Vl,\"assertSize\");bs&&bs.getRandomValues||!process.browser?(Ua.randomFill=f8,Ua.randomFillSync=n8):(Ua.randomFill=Ll,Ua.randomFillSync=Ll);function f8(t,e,r,a){if(!Fl.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');if(typeof e==\"function\")a=e,e=0,r=t.length;else if(typeof r==\"function\")a=r,r=t.length-e;else if(typeof a!=\"function\")throw new TypeError('\"cb\" argument must be a function');return jl(e,t.length),Vl(r,e,t.length),Wl(t,e,r,a)}f(f8,\"randomFill\");function Wl(t,e,r,a){if(process.browser){var i=t.buffer,s=new Uint8Array(i,e,r);if(bs.getRandomValues(s),a){process.nextTick(function(){a(null,t)});return}return t}if(a){Ul(r,function(p,_){if(p)return a(p);_.copy(t,e),a(null,t)});return}var c=Ul(r);return c.copy(t,e),t}f(Wl,\"actualFill\");function n8(t,e,r){if(typeof e>\"u\"&&(e=0),!Fl.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');return jl(e,t.length),r===void 0&&(r=t.length-e),Vl(r,e,t.length),Wl(t,e,r)}f(n8,\"randomFillSync\")});var b0=k(Me=>{\"use strict\";M();Me.randomBytes=Me.rng=Me.pseudoRandomBytes=Me.prng=Or();Me.createHash=Me.Hash=vi();Me.createHmac=Me.Hmac=Ln();var s8=sh(),o8=Object.keys(s8),h8=[\"sha1\",\"sha224\",\"sha256\",\"sha384\",\"sha512\",\"md5\",\"rmd160\"].concat(o8);Me.getHashes=function(){return h8};var Xl=Zn();Me.pbkdf2=Xl.pbkdf2;Me.pbkdf2Sync=Xl.pbkdf2Sync;var Zt=Rd();Me.Cipher=Zt.Cipher;Me.createCipher=Zt.createCipher;Me.Cipheriv=Zt.Cipheriv;Me.createCipheriv=Zt.createCipheriv;Me.Decipher=Zt.Decipher;Me.createDecipher=Zt.createDecipher;Me.Decipheriv=Zt.Decipheriv;Me.createDecipheriv=Zt.createDecipheriv;Me.getCiphers=Zt.getCiphers;Me.listCiphers=Zt.listCiphers;var za=jd();Me.DiffieHellmanGroup=za.DiffieHellmanGroup;Me.createDiffieHellmanGroup=za.createDiffieHellmanGroup;Me.getDiffieHellman=za.getDiffieHellman;Me.createDiffieHellman=za.createDiffieHellman;Me.DiffieHellman=za.DiffieHellman;var an=wl();Me.createSign=an.createSign;Me.Sign=an.Sign;Me.createVerify=an.createVerify;Me.Verify=an.Verify;Me.createECDH=Ml();var fn=Ol();Me.publicEncrypt=fn.publicEncrypt;Me.privateEncrypt=fn.privateEncrypt;Me.publicDecrypt=fn.publicDecrypt;Me.privateDecrypt=fn.privateDecrypt;var Gl=Zl();Me.randomFill=Gl.randomFill;Me.randomFillSync=Gl.randomFillSync;Me.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify`)};Me.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}});M();var ms=Jl(b0());Object.assign(ms.default,{randomUUID:globalThis.crypto.randomUUID,getRandomValues:globalThis.crypto.getRandomValues});var x_=ms.default;export{x_ as default};\n",
|
|
5527
|
+
"engine/chunks/chunk-Z7G3SFE2.mjs": "import{a as fc}from\"./chunk-P4O57R5Z.mjs\";import{a as hc}from\"./chunk-MDRNMNJQ.mjs\";import{a as uc}from\"./chunk-QMKSQR7V.mjs\";import{a as h,b as rc,c as g,d as ic,e as sc,f as ie,g as Buffer,i as nc,j as oc,k as cc,l as ac,m as process,o as p}from\"./chunk-IQ3JZKJB.mjs\";var ue={};ic(ue,{__addDisposableResource:()=>Bs,__assign:()=>Et,__asyncDelegator:()=>Rs,__asyncGenerator:()=>Ns,__asyncValues:()=>Fs,__await:()=>Ve,__awaiter:()=>Es,__classPrivateFieldGet:()=>Ps,__classPrivateFieldIn:()=>Ds,__classPrivateFieldSet:()=>js,__createBinding:()=>xt,__decorate:()=>ms,__disposeResources:()=>Ms,__esDecorate:()=>ws,__exportStar:()=>xs,__extends:()=>ds,__generator:()=>Os,__importDefault:()=>Is,__importStar:()=>Cs,__makeTemplateObject:()=>As,__metadata:()=>Ss,__param:()=>ys,__propKey:()=>bs,__read:()=>Jr,__rest:()=>ps,__rewriteRelativeImportExtension:()=>Ls,__runInitializers:()=>_s,__setFunctionName:()=>gs,__spread:()=>vs,__spreadArray:()=>Ts,__spreadArrays:()=>ks,__values:()=>Ot,default:()=>pc});function ds(i,e){if(typeof e!=\"function\"&&e!==null)throw new TypeError(\"Class extends value \"+String(e)+\" is not a constructor or null\");Ur(i,e);function t(){this.constructor=i}h(t,\"__\"),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ps(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(t[r[s]]=i[r[s]]);return t}function ms(i,e,t,r){var s=arguments.length,n=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,c;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")n=Reflect.decorate(i,e,t,r);else for(var f=i.length-1;f>=0;f--)(c=i[f])&&(n=(s<3?c(n):s>3?c(e,t,n):c(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n}function ys(i,e){return function(t,r){e(t,r,i)}}function ws(i,e,t,r,s,n){function c(v){if(v!==void 0&&typeof v!=\"function\")throw new TypeError(\"Function expected\");return v}h(c,\"accept\");for(var f=r.kind,o=f===\"getter\"?\"get\":f===\"setter\"?\"set\":\"value\",a=!e&&i?r.static?i:i.prototype:null,u=e||(a?Object.getOwnPropertyDescriptor(a,r.name):{}),l,d=!1,m=t.length-1;m>=0;m--){var y={};for(var b in r)y[b]=b===\"access\"?{}:r[b];for(var b in r.access)y.access[b]=r.access[b];y.addInitializer=function(v){if(d)throw new TypeError(\"Cannot add initializers after decoration has completed\");n.push(c(v||null))};var S=(0,t[m])(f===\"accessor\"?{get:u.get,set:u.set}:u[o],y);if(f===\"accessor\"){if(S===void 0)continue;if(S===null||typeof S!=\"object\")throw new TypeError(\"Object expected\");(l=c(S.get))&&(u.get=l),(l=c(S.set))&&(u.set=l),(l=c(S.init))&&s.unshift(l)}else(l=c(S))&&(f===\"field\"?s.unshift(l):u[o]=l)}a&&Object.defineProperty(a,r.name,u),d=!0}function _s(i,e,t){for(var r=arguments.length>2,s=0;s<e.length;s++)t=r?e[s].call(i,t):e[s].call(i);return r?t:void 0}function bs(i){return typeof i==\"symbol\"?i:\"\".concat(i)}function gs(i,e,t){return typeof e==\"symbol\"&&(e=e.description?\"[\".concat(e.description,\"]\"):\"\"),Object.defineProperty(i,\"name\",{configurable:!0,value:t?\"\".concat(t,\" \",e):e})}function Ss(i,e){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(i,e)}function Es(i,e,t,r){function s(n){return n instanceof t?n:new t(function(c){c(n)})}return h(s,\"adopt\"),new(t||(t=Promise))(function(n,c){function f(u){try{a(r.next(u))}catch(l){c(l)}}h(f,\"fulfilled\");function o(u){try{a(r.throw(u))}catch(l){c(l)}}h(o,\"rejected\");function a(u){u.done?n(u.value):s(u.value).then(f,o)}h(a,\"step\"),a((r=r.apply(i,e||[])).next())})}function Os(i,e){var t={label:0,sent:h(function(){if(n[0]&1)throw n[1];return n[1]},\"sent\"),trys:[],ops:[]},r,s,n,c=Object.create((typeof Iterator==\"function\"?Iterator:Object).prototype);return c.next=f(0),c.throw=f(1),c.return=f(2),typeof Symbol==\"function\"&&(c[Symbol.iterator]=function(){return this}),c;function f(a){return function(u){return o([a,u])}}function o(a){if(r)throw new TypeError(\"Generator is already executing.\");for(;c&&(c=0,a[0]&&(t=0)),t;)try{if(r=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(i,t)}catch(u){a=[6,u],s=0}finally{r=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function xs(i,e){for(var t in i)t!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,t)&&xt(e,i,t)}function Ot(i){var e=typeof Symbol==\"function\"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length==\"number\")return{next:h(function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}},\"next\")};throw new TypeError(e?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function Jr(i,e){var t=typeof Symbol==\"function\"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),s,n=[],c;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)n.push(s.value)}catch(f){c={error:f}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return n}function vs(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Jr(arguments[e]));return i}function ks(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var r=Array(i),s=0,e=0;e<t;e++)for(var n=arguments[e],c=0,f=n.length;c<f;c++,s++)r[s]=n[c];return r}function Ts(i,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,n;r<s;r++)(n||!(r in e))&&(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return i.concat(n||Array.prototype.slice.call(e))}function Ve(i){return this instanceof Ve?(this.v=i,this):new Ve(i)}function Ns(i,e,t){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=t.apply(i,e||[]),s,n=[];return s=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),f(\"next\"),f(\"throw\"),f(\"return\",c),s[Symbol.asyncIterator]=function(){return this},s;function c(m){return function(y){return Promise.resolve(y).then(m,l)}}function f(m,y){r[m]&&(s[m]=function(b){return new Promise(function(S,v){n.push([m,b,S,v])>1||o(m,b)})},y&&(s[m]=y(s[m])))}function o(m,y){try{a(r[m](y))}catch(b){d(n[0][3],b)}}function a(m){m.value instanceof Ve?Promise.resolve(m.value.v).then(u,l):d(n[0][2],m)}function u(m){o(\"next\",m)}function l(m){o(\"throw\",m)}function d(m,y){m(y),n.shift(),n.length&&o(n[0][0],n[0][1])}}function Rs(i){var e,t;return e={},r(\"next\"),r(\"throw\",function(s){throw s}),r(\"return\"),e[Symbol.iterator]=function(){return this},e;function r(s,n){e[s]=i[s]?function(c){return(t=!t)?{value:Ve(i[s](c)),done:!1}:n?n(c):c}:n}}function Fs(i){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof Ot==\"function\"?Ot(i):i[Symbol.iterator](),t={},r(\"next\"),r(\"throw\"),r(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=i[n]&&function(c){return new Promise(function(f,o){c=i[n](c),s(f,o,c.done,c.value)})}}function s(n,c,f,o){Promise.resolve(o).then(function(a){n({value:a,done:f})},c)}}function As(i,e){return Object.defineProperty?Object.defineProperty(i,\"raw\",{value:e}):i.raw=e,i}function Cs(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t=Wr(i),r=0;r<t.length;r++)t[r]!==\"default\"&&xt(e,i,t[r]);return lc(e,i),e}function Is(i){return i&&i.__esModule?i:{default:i}}function Ps(i,e,t,r){if(t===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof e==\"function\"?i!==e||!r:!e.has(i))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return t===\"m\"?r:t===\"a\"?r.call(i):r?r.value:e.get(i)}function js(i,e,t,r,s){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!s)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof e==\"function\"?i!==e||!s:!e.has(i))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?s.call(i,t):s?s.value=t:e.set(i,t),t}function Ds(i,e){if(e===null||typeof e!=\"object\"&&typeof e!=\"function\")throw new TypeError(\"Cannot use 'in' operator on non-object\");return typeof i==\"function\"?e===i:i.has(e)}function Bs(i,e,t){if(e!=null){if(typeof e!=\"object\"&&typeof e!=\"function\")throw new TypeError(\"Object expected.\");var r,s;if(t){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");r=e[Symbol.dispose],t&&(s=r)}if(typeof r!=\"function\")throw new TypeError(\"Object not disposable.\");s&&(r=h(function(){try{s.call(this)}catch(n){return Promise.reject(n)}},\"dispose\")),i.stack.push({value:e,dispose:r,async:t})}else t&&i.stack.push({async:!0});return e}function Ms(i){function e(n){i.error=i.hasError?new dc(n,i.error,\"An error was suppressed during disposal.\"):n,i.hasError=!0}h(e,\"fail\");var t,r=0;function s(){for(;t=i.stack.pop();)try{if(!t.async&&r===1)return r=0,i.stack.push(t),Promise.resolve().then(s);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(s,function(c){return e(c),s()})}else r|=1}catch(c){e(c)}if(r===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return h(s,\"next\"),s()}function Ls(i,e){return typeof i==\"string\"&&/^\\.\\.?\\//.test(i)?i.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i,function(t,r,s,n,c){return r?e?\".jsx\":\".js\":s&&(!n||!c)?t:s+n+\".\"+c.toLowerCase()+\"js\"}):i}var Ur,Et,xt,lc,Wr,dc,pc,he=rc(()=>{p();Ur=h(function(i,e){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},Ur(i,e)},\"extendStatics\");h(ds,\"__extends\");Et=h(function(){return Et=Object.assign||h(function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},\"__assign\"),Et.apply(this,arguments)},\"__assign\");h(ps,\"__rest\");h(ms,\"__decorate\");h(ys,\"__param\");h(ws,\"__esDecorate\");h(_s,\"__runInitializers\");h(bs,\"__propKey\");h(gs,\"__setFunctionName\");h(Ss,\"__metadata\");h(Es,\"__awaiter\");h(Os,\"__generator\");xt=Object.create?(function(i,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||(\"get\"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:h(function(){return e[t]},\"get\")}),Object.defineProperty(i,r,s)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]});h(xs,\"__exportStar\");h(Ot,\"__values\");h(Jr,\"__read\");h(vs,\"__spread\");h(ks,\"__spreadArrays\");h(Ts,\"__spreadArray\");h(Ve,\"__await\");h(Ns,\"__asyncGenerator\");h(Rs,\"__asyncDelegator\");h(Fs,\"__asyncValues\");h(As,\"__makeTemplateObject\");lc=Object.create?(function(i,e){Object.defineProperty(i,\"default\",{enumerable:!0,value:e})}):function(i,e){i.default=e},Wr=h(function(i){return Wr=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},Wr(i)},\"ownKeys\");h(Cs,\"__importStar\");h(Is,\"__importDefault\");h(Ps,\"__classPrivateFieldGet\");h(js,\"__classPrivateFieldSet\");h(Ds,\"__classPrivateFieldIn\");h(Bs,\"__addDisposableResource\");dc=typeof SuppressedError==\"function\"?SuppressedError:function(i,e,t){var r=new Error(t);return r.name=\"SuppressedError\",r.error=i,r.suppressed=e,r};h(Ms,\"__disposeResources\");h(Ls,\"__rewriteRelativeImportExtension\");pc={__extends:ds,__assign:Et,__rest:ps,__decorate:ms,__param:ys,__esDecorate:ws,__runInitializers:_s,__propKey:bs,__setFunctionName:gs,__metadata:Ss,__awaiter:Es,__generator:Os,__createBinding:xt,__exportStar:xs,__values:Ot,__read:Jr,__spread:vs,__spreadArrays:ks,__spreadArray:Ts,__await:Ve,__asyncGenerator:Ns,__asyncDelegator:Rs,__asyncValues:Fs,__makeTemplateObject:As,__importStar:Cs,__importDefault:Is,__classPrivateFieldGet:Ps,__classPrivateFieldSet:js,__classPrivateFieldIn:Ds,__addDisposableResource:Bs,__disposeResources:Ms,__rewriteRelativeImportExtension:Ls}});var ze=g(D=>{\"use strict\";p();Object.defineProperty(D,\"__esModule\",{value:!0});D.basename=D.isAbsolute=D.normalize=D.dirname=D.relative=D.join=D.posix=D.sep=D.resolve=void 0;var we=fc();Object.defineProperty(D,\"resolve\",{enumerable:!0,get:h(function(){return we.resolve},\"get\")});Object.defineProperty(D,\"sep\",{enumerable:!0,get:h(function(){return we.sep},\"get\")});Object.defineProperty(D,\"posix\",{enumerable:!0,get:h(function(){return we.posix},\"get\")});Object.defineProperty(D,\"join\",{enumerable:!0,get:h(function(){return we.join},\"get\")});Object.defineProperty(D,\"relative\",{enumerable:!0,get:h(function(){return we.relative},\"get\")});Object.defineProperty(D,\"dirname\",{enumerable:!0,get:h(function(){return we.dirname},\"get\")});Object.defineProperty(D,\"normalize\",{enumerable:!0,get:h(function(){return we.normalize},\"get\")});Object.defineProperty(D,\"isAbsolute\",{enumerable:!0,get:h(function(){return we.isAbsolute},\"get\")});Object.defineProperty(D,\"basename\",{enumerable:!0,get:h(function(){return we.basename},\"get\")})});var Us=g(qs=>{\"use strict\";p();Object.defineProperty(qs,\"__esModule\",{value:!0})});var Ws=g(vt=>{\"use strict\";p();Object.defineProperty(vt,\"__esModule\",{value:!0});vt.Buffer=void 0;var mc=(oc(),ie(nc));Object.defineProperty(vt,\"Buffer\",{enumerable:!0,get:h(function(){return mc.Buffer},\"get\")})});var Oe=g(Ee=>{\"use strict\";p();Object.defineProperty(Ee,\"__esModule\",{value:!0});Ee.bufferFrom=Ee.bufferAllocUnsafe=Ee.Buffer=void 0;var kt=Ws();Object.defineProperty(Ee,\"Buffer\",{enumerable:!0,get:h(function(){return kt.Buffer},\"get\")});function Js(i,...e){return new kt.Buffer(i,...e)}h(Js,\"bufferV0P12Ponyfill\");var yc=kt.Buffer.allocUnsafe||Js;Ee.bufferAllocUnsafe=yc;var wc=kt.Buffer.from||Js;Ee.bufferFrom=wc});var zs=g(Vs=>{\"use strict\";p();Object.defineProperty(Vs,\"__esModule\",{value:!0})});var Qs=g(se=>{\"use strict\";p();Object.defineProperty(se,\"__esModule\",{value:!0});se.FLAGS=se.ERRSTR=se.constants=se.SEP=void 0;se.SEP=\"/\";se.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4};se.ERRSTR={PATH_STR:\"path must be a string, Buffer, or Uint8Array\",FD:\"fd must be a file descriptor\",MODE_INT:\"mode must be an int\",CB:\"callback must be a function\",UID:\"uid must be an unsigned int\",GID:\"gid must be an unsigned int\",LEN:\"len must be an integer\",ATIME:\"atime must be an integer\",MTIME:\"mtime must be an integer\",PREFIX:\"filename prefix is required\",BUFFER:\"buffer must be an instance of Buffer or StaticBuffer\",OFFSET:\"offset must be an integer\",LENGTH:\"length must be an integer\",POSITION:\"position must be an integer\"};var{O_RDONLY:Hs,O_WRONLY:Tt,O_RDWR:He,O_CREAT:xe,O_EXCL:Nt,O_TRUNC:Rt,O_APPEND:Ft,O_SYNC:Ys}=se.constants,Ks;(function(i){i[i.r=Hs]=\"r\",i[i[\"r+\"]=He]=\"r+\",i[i.rs=Hs|Ys]=\"rs\",i[i.sr=i.rs]=\"sr\",i[i[\"rs+\"]=He|Ys]=\"rs+\",i[i[\"sr+\"]=i[\"rs+\"]]=\"sr+\",i[i.w=Tt|xe|Rt]=\"w\",i[i.wx=Tt|xe|Rt|Nt]=\"wx\",i[i.xw=i.wx]=\"xw\",i[i[\"w+\"]=He|xe|Rt]=\"w+\",i[i[\"wx+\"]=He|xe|Rt|Nt]=\"wx+\",i[i[\"xw+\"]=i[\"wx+\"]]=\"xw+\",i[i.a=Tt|Ft|xe]=\"a\",i[i.ax=Tt|Ft|xe|Nt]=\"ax\",i[i.xa=i.ax]=\"xa\",i[i[\"a+\"]=He|Ft|xe]=\"a+\",i[i[\"ax+\"]=He|Ft|xe|Nt]=\"ax+\",i[i[\"xa+\"]=i[\"ax+\"]]=\"xa+\"})(Ks||(se.FLAGS=Ks={}))});var Xs=g($s=>{\"use strict\";p();Object.defineProperty($s,\"__esModule\",{value:!0})});var Gs=g(At=>{\"use strict\";p();Object.defineProperty(At,\"__esModule\",{value:!0});At.FLAG=void 0;var Zs;(function(i){i[i.O_RDONLY=0]=\"O_RDONLY\",i[i.O_WRONLY=1]=\"O_WRONLY\",i[i.O_RDWR=2]=\"O_RDWR\",i[i.O_ACCMODE=3]=\"O_ACCMODE\",i[i.O_CREAT=64]=\"O_CREAT\",i[i.O_EXCL=128]=\"O_EXCL\",i[i.O_NOCTTY=256]=\"O_NOCTTY\",i[i.O_TRUNC=512]=\"O_TRUNC\",i[i.O_APPEND=1024]=\"O_APPEND\",i[i.O_NONBLOCK=2048]=\"O_NONBLOCK\",i[i.O_DSYNC=4096]=\"O_DSYNC\",i[i.FASYNC=8192]=\"FASYNC\",i[i.O_DIRECT=16384]=\"O_DIRECT\",i[i.O_LARGEFILE=0]=\"O_LARGEFILE\",i[i.O_DIRECTORY=65536]=\"O_DIRECTORY\",i[i.O_NOFOLLOW=131072]=\"O_NOFOLLOW\",i[i.O_NOATIME=262144]=\"O_NOATIME\",i[i.O_CLOEXEC=524288]=\"O_CLOEXEC\",i[i.O_SYNC=1052672]=\"O_SYNC\",i[i.O_NDELAY=2048]=\"O_NDELAY\"})(Zs||(At.FLAG=Zs={}))});var en=g(z=>{\"use strict\";p();Object.defineProperty(z,\"__esModule\",{value:!0});z.basename=z.pathNormalize=z.pathDirname=z.pathRelative=z.pathJoin=z.pathSep=void 0;var J=ze();z.pathSep=J.posix?J.posix.sep:J.sep;z.pathJoin=J.posix?J.posix.join:J.join;z.pathRelative=J.posix?J.posix.relative:J.relative;z.pathDirname=J.posix?J.posix.dirname:J.dirname;z.pathNormalize=J.posix?J.posix.normalize:J.normalize;var _c=h((i,e)=>{i[i.length-1]===e&&(i=i.slice(0,-1));let t=i.lastIndexOf(e);return t===-1?i:i.slice(t+1)},\"basename\");z.basename=_c});var zr=g(Ye=>{\"use strict\";p();Object.defineProperty(Ye,\"__esModule\",{value:!0});Ye.inherits=bc;Ye.promisify=gc;Ye.inspect=Vr;Ye.format=Sc;function bc(i,e){if(i==null)throw new TypeError(\"The constructor to inherit from is not defined\");if(e==null)throw new TypeError(\"The super constructor to inherit from is not defined\");i.super_=e,i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}})}h(bc,\"inherits\");function gc(i){if(typeof i!=\"function\")throw new TypeError('The \"original\" argument must be of type function');return function(...e){return new Promise((t,r)=>{i.call(this,...e,(s,n)=>{s?r(s):t(n)})})}}h(gc,\"promisify\");function Vr(i){return i===null?\"null\":i===void 0?\"undefined\":typeof i==\"string\"?`'${i}'`:typeof i==\"number\"||typeof i==\"boolean\"?String(i):Array.isArray(i)?`[ ${i.map(t=>Vr(t)).join(\", \")} ]`:typeof i==\"object\"?`{ ${Object.entries(i).map(([t,r])=>`${t}: ${Vr(r)}`).join(\", \")} }`:String(i)}h(Vr,\"inspect\");function Sc(i,...e){if(e.length===0)return i;let t=i,r=0;for(t=t.replace(/%[sdj%]/g,s=>{if(r>=e.length)return s;let n=e[r++];switch(s){case\"%s\":return String(n);case\"%d\":return Number(n).toString();case\"%j\":try{return JSON.stringify(n)}catch{return\"[Circular]\"}case\"%%\":return\"%\";default:return s}});r<e.length;)t+=\" \"+String(e[r++]);return t}h(Sc,\"format\")});var Ke=g(L=>{\"use strict\";p();Object.defineProperty(L,\"__esModule\",{value:!0});L.AssertionError=L.RangeError=L.TypeError=L.Error=void 0;L.message=rn;L.E=_e;var Hr=zr(),Ec=typeof Symbol>\"u\"?\"_kCode\":Symbol(\"code\"),tn={};function Kr(i){return class extends i{static{h(this,\"NodeError\")}constructor(t,...r){super(rn(t,r)),this.code=t,this[Ec]=t,Object.defineProperty(this,\"name\",{value:`${super.name} [${t}]`,enumerable:!1,writable:!0,configurable:!0})}}}h(Kr,\"makeNodeError\");var Ct=globalThis,Yr=class extends Ct.Error{static{h(this,\"AssertionError\")}constructor(e){if(typeof e!=\"object\"||e===null)throw new L.TypeError(\"ERR_INVALID_ARG_TYPE\",\"options\",\"object\");e.message?super(e.message):super(`${(0,Hr.inspect)(e.actual).slice(0,128)} ${e.operator} ${(0,Hr.inspect)(e.expected).slice(0,128)}`),this.generatedMessage=!e.message,this.name=\"AssertionError [ERR_ASSERTION]\",this.code=\"ERR_ASSERTION\",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,L.Error.captureStackTrace(this,e.stackStartFunction)}};L.AssertionError=Yr;function rn(i,e){if(typeof i!=\"string\")throw new L.Error(\"Error message key must be a string\");let t=tn[i];if(!t)throw new L.Error(`An invalid error message key was used: ${i}.`);let r;if(typeof t==\"function\")r=t;else{if(r=Hr.format,e===void 0||e.length===0)return t;e.unshift(t)}return String(r.apply(null,e))}h(rn,\"message\");function _e(i,e){tn[i]=typeof e==\"function\"?e:String(e)}h(_e,\"E\");L.Error=Kr(Ct.Error);L.TypeError=Kr(Ct.TypeError);L.RangeError=Kr(Ct.RangeError);_e(\"ERR_DIR_CLOSED\",\"Directory handle was closed\");_e(\"ERR_DIR_CONCURRENT_OPERATION\",\"Cannot do synchronous work on directory handle with concurrent asynchronous operations\");_e(\"ERR_INVALID_FILE_URL_HOST\",'File URL host must be \"localhost\" or empty on %s');_e(\"ERR_INVALID_FILE_URL_PATH\",\"File URL path %s\");_e(\"ERR_INVALID_OPT_VALUE\",(i,e)=>`The value \"${String(e)}\" is invalid for option \"${i}\"`);_e(\"ERR_INVALID_OPT_VALUE_ENCODING\",i=>`The value \"${String(i)}\" is invalid for option \"encoding\"`);_e(\"ERR_INVALID_ARG_VALUE\",\"Unable to open file as blob\");_e(\"ERR_OUT_OF_RANGE\",(i,e,t)=>`The value of \"${i}\" is out of range. It must be ${e}. Received ${t}`)});var sn=g(je=>{\"use strict\";p();Object.defineProperty(je,\"__esModule\",{value:!0});je.ENCODING_UTF8=void 0;je.assertEncoding=xc;je.strToEncoding=vc;var Qr=Oe(),Oc=Ke();je.ENCODING_UTF8=\"utf8\";function xc(i){if(i&&!Qr.Buffer.isEncoding(i))throw new Oc.TypeError(\"ERR_INVALID_OPT_VALUE_ENCODING\",i)}h(xc,\"assertEncoding\");function vc(i,e){return!e||e===je.ENCODING_UTF8?i:e===\"buffer\"?new Qr.Buffer(i):new Qr.Buffer(i).toString(e)}h(vc,\"strToEncoding\")});var Zr=g(Z=>{\"use strict\";p();Object.defineProperty(Z,\"__esModule\",{value:!0});Z.toMatcher=Z.toRegex=Z.expandBraces=void 0;var an=\"(?!\\\\.)\",un=\"[^/]*\",nn=\"[^/]*(?:/(?!\\\\.)[^/]*)*\",hn=h((i,e,t)=>{switch(t){case 36:case 42:case 63:case 91:case 40:case 41:case 43:case 46:case 92:case 93:case 94:case 123:case 124:case 125:return\"\\\\\"+i[e];default:return i[e]}},\"literal\"),kc=h(i=>{switch(i){case\"alnum\":return\"0-9A-Za-z\";case\"alpha\":return\"A-Za-z\";case\"ascii\":return\"\\\\x00-\\\\x7f\";case\"blank\":return\" \\\\t\";case\"cntrl\":return\"\\\\x00-\\\\x1f\\\\x7f\";case\"digit\":return\"0-9\";case\"graph\":return\"\\\\x21-\\\\x7e\";case\"lower\":return\"a-z\";case\"print\":return\"\\\\x20-\\\\x7e\";case\"punct\":return\"\\\\x21-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\x7e\";case\"space\":return\" \\\\t\\\\r\\\\n\\\\v\\\\f\";case\"upper\":return\"A-Z\";case\"word\":return\"0-9A-Za-z_\";case\"xdigit\":return\"0-9A-Fa-f\"}},\"posixClass\"),Xr=h((i,e)=>{let t=i.length,r=e+1,s=i.charCodeAt(r);for((s===33||s===94)&&r++,i.charCodeAt(r)===93&&r++;r<t;r++){let n=i.charCodeAt(r);if(n===93)return r+1;if(n===91&&i.charCodeAt(r+1)===58){let c=i.indexOf(\":]\",r+2);c>0&&(r=c+1)}}return-1},\"classEnd\"),$r=h((i,e)=>{let t=i.charCodeAt(e);return(t===93||t===92||t===91||t===94||t===45?\"\\\\\":\"\")+i[e]},\"member\"),Tc=h((i,e,t)=>{let r=t-1,s=e+1,n=\"\",c=0,f=i.charCodeAt(s),o=f===33||f===94;for(o&&s++;s<r;){if(i.charCodeAt(s)===91&&i.charCodeAt(s+1)===58){let a=i.indexOf(\":]\",s+2),u=a>0?kc(i.slice(s+2,a)):void 0;if(u!==void 0){n+=u,c+=2,s=a+2;continue}}if(i.charCodeAt(s+1)===45&&s+2<r){i.charCodeAt(s+2)>=i.charCodeAt(s)&&(n+=$r(i,s)+\"-\"+$r(i,s+2),c+=2),s+=3;continue}n+=$r(i,s),c++,s++}return!o&&c===1?hn(i,r-1,i.charCodeAt(r-1)):c?(o?\"[^\":\"[\")+n+\"]\":o?\"[^/]\":\"[]\"},\"classSource\"),Nc=h((i,e)=>{let t=i.length,r=1;for(;e<t;e++){let s=i.charCodeAt(e);if(s===91){let n=Xr(i,e);n>0&&(e=n-1)}else if(s===40)r++;else if(s===41&&!--r)return e+1}return-1},\"groupEnd\"),Rc=h(i=>{let e=i.length,t=[],r=0,s=0;for(let n=0;n<e;n++){let c=i.charCodeAt(n);if(c===91){let f=Xr(i,n);f>0&&(n=f-1)}else c===40?r++:c===41?r--:c===124&&!r&&(t.push(i.slice(s,n)),s=n+1)}return t.push(i.slice(s)),t},\"splitAlts\"),Fc=h(i=>i===63||i===42||i===43||i===64||i===33,\"isExtglobPrefix\"),on=h((i,e,t,r,s)=>{let n=\"\";for(let c=0;c<i.length;c++)n+=(c?\"|\":\"\")+ct(i[c],e,t,r,s);return n},\"altsSource\"),Ac=h((i,e,t,r,s,n)=>{let c=r&&n?an:\"\",f=on(e,t,r,s,n);switch(i){case 63:return\"(?:\"+f+\")?\";case 64:return\"(?:\"+f+\")\";case 33:return e.length===1&&!e[0]?c+\"[^/]+\":\"(?!(?:\"+f+\")\"+s+\"$)\"+c+un}let o=c?on(e,t,r,s,!1):f;if(o===f)return\"(?:\"+f+\")\"+(i===42?\"*\":\"+\");let a=\"(?:\"+f+\")(?:\"+o+\")*\";return i===42?\"(?:\"+a+\")?\":a},\"extglobSource\"),ct=h((i,e,t,r,s)=>{let n=i.length,c=\"\",f=0,o=s;for(;f<n;){let a=i.charCodeAt(f);if(e&&i.charCodeAt(f+1)===40&&Fc(a)){let d=Nc(i,f+2);if(d>0){let m=ct(i.slice(d),e,t,r,!1),y=Rc(i.slice(f+2,d-1));return c+Ac(a,y,e,t,m+r,o)+m}}let u=o,l=t&&u?an:\"\";switch(o=!1,a){case 42:{let d=f+1;for(;i.charCodeAt(d)===42;)d++;if(d===f+1){let y=u&&(d===n||i.charCodeAt(d)===47);c+=l+(y?\"[^/]+\":un),f=d;break}let m=i.charCodeAt(d)===47;for(;m;){let y=d+1;if(i.charCodeAt(y)!==42||i.charCodeAt(y+1)!==42)break;for(y+=2;i.charCodeAt(y)===42;)y++;if(y===n)d=y,m=!1;else if(i.charCodeAt(y)===47)d=y;else break}m?(c+=t?\"(?:\"+l+nn+\"/)?\":\"(?:.*/)?\",d++,o=!0):c+=t?l+nn:\".*\",f=d;break}case 63:c+=l+\"[^/]\",f++;break;case 91:{let d=Xr(i,f);if(d<0){c+=\"\\\\[\",f++;break}let m=Tc(i,f,d);c+=(m.charCodeAt(0)===91?l:\"\")+m,f=d;break}case 47:c+=\"/\",f++,o=!0;break;default:c+=hn(i,f,a),f++}}return c},\"compile\"),Cc=h((i,e)=>{let t=i.length,r=0;for(let s=e;s<t;s++){let n=i.charCodeAt(s);if(n===123)r++;else if(n===125&&!--r)return s}return-1},\"closingBrace\"),Ic=h(i=>{let e=i.length,t=[],r=0,s=0;for(let n=0;n<e;n++){let c=i.charCodeAt(n);c===123?r++:c===125?r--:c===44&&!r&&(t.push(i.slice(s,n)),s=n+1)}if(t.length)return t.push(i.slice(s)),t},\"commaSplit\"),Pc=/^(-?\\d+)\\.\\.(-?\\d+)(?:\\.\\.(-?\\d+))?$/,jc=/^([a-zA-Z])\\.\\.([a-zA-Z])(?:\\.\\.(-?\\d+))?$/,cn=/^-?0\\d/,Dc=h((i,e)=>{let t=Pc.exec(i),r=!t;if(r&&(t=jc.exec(i)),!t)return;let s=r?t[1].charCodeAt(0):+t[1],n=r?t[2].charCodeAt(0):+t[2],c=t[3]===void 0?1:Math.abs(+t[3])||1,f=!r&&(cn.test(t[1])||cn.test(t[2]))?Math.max(t[1].length,t[2].length):0,o=[],a=s<=n?c:-c;for(let u=s;(a>0?u<=n:u>=n)&&o.length<e;u+=a){if(r){o.push(String.fromCharCode(u));continue}let l=String(u),d=f-l.length;if(d>0){let m=\"\";for(let y=0;y<d;y++)m+=\"0\";l=u<0?\"-\"+m+l.slice(1):m+l}o.push(l)}return o},\"rangeOf\"),Bc=h((i,e,t)=>{for(let r=i.indexOf(\"{\");r>=0;r=i.indexOf(\"{\",r+1)){let s=Cc(i,r);if(s<0)continue;let n=i.slice(r+1,s),c=Ic(n)||Dc(n,t);if(!c)continue;let f=i.slice(0,r),o=(0,Z.expandBraces)(i.slice(s+1),t);for(let a=0;a<c.length;a++){let u=(0,Z.expandBraces)(c[a],t);for(let l=0;l<u.length;l++){let d=f+u[l];for(let m=0;m<o.length;m++){if(e.length>=t)return;e.push(d+o[m])}}}return}e.push(i)},\"expandInto\"),Mc=h((i,e=1e5)=>{let t=[];return Bc(i,t,e),t},\"expandBraces\");Z.expandBraces=Mc;var Lc=h((i,e)=>{let t=!!e?.extglob,r=e?.dot===!1,s;if(i.indexOf(\"{\")<0)s=ct(i,t,r,\"\",!0);else{let n=(0,Z.expandBraces)(i),c=n.length;if(c===1)s=ct(n[0],t,r,\"\",!0);else{let f=new Set;s=\"(?:\";for(let o=0;o<c;o++){let a=n[o];f.has(a)||(f.size&&(s+=\"|\"),f.add(a),s+=ct(a,t,r,\"\",!0))}s+=\")\"}}return new RegExp(\"^\"+s+\"$\",e?.nocase?\"i\":\"\")},\"toRegex\");Z.toRegex=Lc;var qc=/^\\/(.{1,4096})\\/([gimsuy]{0,6})$/,Uc=h((i,e)=>{let t=[],r=Array.isArray(i)?i:[i];for(let s of r)if(typeof s==\"string\"){let n=qc.exec(s);if(n){let[,c,f]=n;t.push(new RegExp(c,f))}else t.push((0,Z.toRegex)(s,e))}else t.push(s);return t.length?new Function(\"p\",\"return \"+t.map(s=>s+\".test(p)\").join(\"||\")):()=>!1},\"toMatcher\");Z.toMatcher=Uc});var fn=g(ve=>{\"use strict\";p();Object.defineProperty(ve,\"__esModule\",{value:!0});ve.watchIgnoreToMatcher=ve.watchIgnorePatternToMatcher=void 0;var Wc=Zr(),Jc=h(i=>{if(typeof i==\"function\")return i;if(i instanceof RegExp)return e=>i.test(e);if(typeof i==\"string\"){let e=(0,Wc.toRegex)(i);return t=>e.test(t)}throw new TypeError(`The \"options.ignore\" property must be of type string, RegExp, function, or an array thereof. Received ${typeof i}`)},\"watchIgnorePatternToMatcher\");ve.watchIgnorePatternToMatcher=Jc;var Vc=h(i=>{if(Array.isArray(i)){let e=i.map(ve.watchIgnorePatternToMatcher);return t=>e.some(r=>r(t))}return(0,ve.watchIgnorePatternToMatcher)(i)},\"watchIgnoreToMatcher\");ve.watchIgnoreToMatcher=Vc});var ln=g(It=>{\"use strict\";p();Object.defineProperty(It,\"__esModule\",{value:!0});It.fsCallbackApiList=void 0;It.fsCallbackApiList=[\"access\",\"appendFile\",\"chmod\",\"chown\",\"close\",\"copyFile\",\"cp\",\"createReadStream\",\"createWriteStream\",\"exists\",\"fchmod\",\"fchown\",\"fdatasync\",\"fstat\",\"fsync\",\"ftruncate\",\"futimes\",\"glob\",\"lchmod\",\"lchown\",\"link\",\"lstat\",\"mkdir\",\"mkdtemp\",\"open\",\"openAsBlob\",\"opendir\",\"read\",\"readv\",\"readdir\",\"readFile\",\"readlink\",\"realpath\",\"rename\",\"rm\",\"rmdir\",\"stat\",\"statfs\",\"symlink\",\"truncate\",\"unlink\",\"unwatchFile\",\"utimes\",\"lutimes\",\"watch\",\"watchFile\",\"write\",\"writev\",\"writeFile\"]});var dn=g(Pt=>{\"use strict\";p();Object.defineProperty(Pt,\"__esModule\",{value:!0});Pt.fsSynchronousApiList=void 0;Pt.fsSynchronousApiList=[\"accessSync\",\"appendFileSync\",\"chmodSync\",\"chownSync\",\"closeSync\",\"copyFileSync\",\"cpSync\",\"existsSync\",\"fchmodSync\",\"fchownSync\",\"fdatasyncSync\",\"fstatSync\",\"fsyncSync\",\"ftruncateSync\",\"futimesSync\",\"globSync\",\"lchmodSync\",\"lchownSync\",\"linkSync\",\"lstatSync\",\"mkdirSync\",\"mkdtempSync\",\"openSync\",\"opendirSync\",\"readdirSync\",\"readFileSync\",\"readlinkSync\",\"readSync\",\"readvSync\",\"realpathSync\",\"renameSync\",\"rmdirSync\",\"rmSync\",\"statfsSync\",\"statSync\",\"symlinkSync\",\"truncateSync\",\"unlinkSync\",\"utimesSync\",\"lutimesSync\",\"writeFileSync\",\"writeSync\",\"writevSync\"]});var pn=g(jt=>{\"use strict\";p();Object.defineProperty(jt,\"__esModule\",{value:!0});jt.fsCommonObjectsList=void 0;jt.fsCommonObjectsList=[\"F_OK\",\"R_OK\",\"W_OK\",\"X_OK\",\"constants\",\"Stats\",\"StatFs\",\"Dir\",\"Dirent\",\"StatWatcher\",\"FSWatcher\",\"ReadStream\",\"WriteStream\"]});var B=g(V=>{\"use strict\";p();Object.defineProperty(V,\"__esModule\",{value:!0});V.fsCommonObjectsList=V.fsSynchronousApiList=V.fsCallbackApiList=void 0;var De=(he(),ie(ue));De.__exportStar(zs(),V);De.__exportStar(Qs(),V);De.__exportStar(Xs(),V);De.__exportStar(Gs(),V);De.__exportStar(en(),V);De.__exportStar(sn(),V);De.__exportStar(fn(),V);var zc=ln();Object.defineProperty(V,\"fsCallbackApiList\",{enumerable:!0,get:h(function(){return zc.fsCallbackApiList},\"get\")});var Hc=dn();Object.defineProperty(V,\"fsSynchronousApiList\",{enumerable:!0,get:h(function(){return Hc.fsSynchronousApiList},\"get\")});var Yc=pn();Object.defineProperty(V,\"fsCommonObjectsList\",{enumerable:!0,get:h(function(){return Yc.fsCommonObjectsList},\"get\")})});var Gr=g(Dt=>{\"use strict\";p();Object.defineProperty(Dt,\"__esModule\",{value:!0});Dt.flattenJSON=void 0;var mn=Oe(),Kc=B(),Qc=h(i=>{let e={};function t(r,s){for(let n in s){let c=s[n],f=(0,Kc.pathJoin)(r,n);typeof c==\"string\"||c instanceof mn.Buffer?e[f]=c:typeof c==\"object\"&&c!==null&&!(c instanceof mn.Buffer)&&Object.keys(c).length>0?t(f,c):e[f]=null}}return h(t,\"flatten\"),t(\"\",i),e},\"flattenJSON\");Dt.flattenJSON=Qc});var wn=g(yn=>{\"use strict\";p();Object.defineProperty(yn,\"__esModule\",{value:!0})});var ei=g(Bt=>{\"use strict\";p();Object.defineProperty(Bt,\"__esModule\",{value:!0});Bt.Ok=$c;Bt.Err=Xc;function $c(i){return{ok:!0,value:i}}h($c,\"Ok\");function Xc(i){return{ok:!1,err:i}}h(Xc,\"Err\")});var at=g(Mt=>{\"use strict\";p();Object.defineProperty(Mt,\"__esModule\",{value:!0});Mt.FanOut=void 0;var ti=class{static{h(this,\"FanOut\")}constructor(){this.listeners=new Set}emit(e){this.listeners.forEach(t=>t(e))}listen(e){let t=this.listeners;return t.add(e),()=>t.delete(e)}};Mt.FanOut=ti});var qt=g(Lt=>{\"use strict\";p();Object.defineProperty(Lt,\"__esModule\",{value:!0});Lt.createProcess=_n;var Zc=h(()=>{if(typeof process<\"u\")return process;try{return ac(),ie(cc)}catch{return}},\"maybeReturnProcess\");function _n(){let i=Zc()||{};return i.cwd||(i.cwd=()=>\"/\"),i.emitWarning||(i.emitWarning=(e,t)=>{console.warn(`${t}${t?\": \":\"\"}${e}`)}),i.env||(i.env={}),i}h(_n,\"createProcess\");Lt.default=_n()});var ii=g(Ut=>{\"use strict\";p();Object.defineProperty(Ut,\"__esModule\",{value:!0});Ut.Node=void 0;var Gc=at(),Sn=qt(),ge=Oe(),ea=B(),{S_IFMT:be,S_IFDIR:ta,S_IFREG:ra,S_IFLNK:bn,S_IFCHR:ia}=ea.constants,ut=h(()=>Sn.default.getuid?.()??0,\"getuid\"),ht=h(()=>Sn.default.getgid?.()??0,\"getgid\"),gn=(0,ge.bufferAllocUnsafe)(0),ri=class{static{h(this,\"Node\")}constructor(e,t=438,r=ut(),s=ht()){this.changes=new Gc.FanOut,this._uid=ut(),this._gid=ht(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this._btime=new Date,this.buf=gn,this.capacity=0,this.size=0,this.rdev=0,this._nlink=1,this.mode=t,this.ino=e,this._uid=r,this._gid=s}set ctime(e){this._ctime=e}get ctime(){return this._ctime}set btime(e){this._btime=e}get btime(){return this._btime}set uid(e){this._uid=e,this.ctime=new Date}get uid(){return this._uid}set gid(e){this._gid=e,this.ctime=new Date}get gid(){return this._gid}set atime(e){this._atime=e}get atime(){return this._atime}set mtime(e){this._mtime=e,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~be}set perm(e){this.mode=this.mode&be|e&~be,this.ctime=new Date}set nlink(e){this._nlink=e,this.ctime=new Date}get nlink(){return this._nlink}getString(e=\"utf8\"){return this.atime=new Date,this.getBuffer().toString(e)}setString(e){this._setBuf((0,ge.bufferFrom)(e,\"utf8\"))}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,ge.bufferAllocUnsafe)(0)),(0,ge.bufferFrom)(this.buf.subarray(0,this.size))}setBuffer(e){let t=(0,ge.bufferFrom)(e);this._setBuf(t)}_setBuf(e){let t=e.length;this.buf=e,this.capacity=t,this.size=t,this.touch()}getSize(){return this.size}setModeProperty(e){this.mode=e}isFile(){return(this.mode&be)===ra}isDirectory(){return(this.mode&be)===ta}isSymlink(){return(this.mode&be)===bn}isCharacterDevice(){return(this.mode&be)===ia}makeSymlink(e){this.mode=bn|438,this.symlink=e}write(e,t=0,r=e.length,s=0){let n=e.length;if(t+r>n&&(r=n-t),r<=0)return 0;let c=s+r;if(c>this.capacity){let f=Math.max(this.capacity*2,64);for(;f<c;)f*=2;let o=(0,ge.bufferAllocUnsafe)(f);this.size>0&&this.buf.copy(o,0,0,this.size),this.buf=o,this.capacity=f}return s>this.size&&this.buf.fill(0,this.size,s),e.copy(this.buf,s,t,t+r),c>this.size&&(this.size=c),this.touch(),r}read(e,t=0,r=e.byteLength,s=0){if(this.atime=new Date,s>=this.size)return 0;let n=r;if(n>e.byteLength&&(n=e.byteLength),n+s>this.size&&(n=this.size-s),n<=0)return 0;let c=e instanceof ge.Buffer?e:ge.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return this.buf.copy(c,t,s,s+n),n}truncate(e=0){if(e<=0){this.buf=gn,this.capacity=0,this.size=0,this.touch();return}if(e<=this.size)this.size=e;else{if(e>this.capacity){let t=Math.max(this.capacity*2,64);for(;t<e;)t*=2;let r=(0,ge.bufferAllocUnsafe)(t);this.size>0&&this.buf.copy(r,0,0,this.size),r.fill(0,this.size,e),this.buf=r,this.capacity=t}else this.buf.fill(0,this.size,e);this.size=e}this.touch()}chmod(e){this.mode=this.mode&be|e&~be,this.touch()}chown(e,t){this.uid=e,this.gid=t,this.touch()}touch(){this.mtime=new Date,this.changes.emit([\"modify\"])}canRead(e=ut(),t=ht()){return!!(this.perm&4||t===this.gid&&this.perm&32||e===this.uid&&this.perm&256)}canWrite(e=ut(),t=ht()){return!!(this.perm&2||t===this.gid&&this.perm&16||e===this.uid&&this.perm&128)}canExecute(e=ut(),t=ht()){return!!(this.perm&1||t===this.gid&&this.perm&8||e===this.uid&&this.perm&64)}del(){this.changes.emit([\"delete\"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),btime:this.btime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}};Ut.Node=ri});var ni=g(Wt=>{\"use strict\";p();Object.defineProperty(Wt,\"__esModule\",{value:!0});Wt.Link=void 0;var sa=B(),na=at(),{S_IFREG:oa}=sa.constants,si=class i{static{h(this,\"Link\")}get steps(){return this._steps}set steps(e){this._steps=e;for(let[t,r]of this.children.entries())t===\".\"||t===\"..\"||r?.syncSteps()}constructor(e,t,r){this.changes=new na.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=e,this.parent=t,this.name=r,this.syncSteps()}setNode(e){this.node=e,this.ino=e.ino}getNode(){return this.node}createChild(e,t=this.vol.createNode(oa|438)){let r=new i(this.vol,this,e);return r.setNode(t),t.isDirectory()&&(r.children.set(\".\",r),r.getNode().nlink++),this.setChild(e,r),r}setChild(e,t=new i(this.vol,this,e)){return this.children.set(e,t),t.parent=this,this.length++,t.getNode().isDirectory()&&(t.children.set(\"..\",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit([\"child:add\",t,this]),t}deleteChild(e){e.getNode().isDirectory()&&(e.children.delete(\"..\"),this.getNode().nlink--),this.children.delete(e.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit([\"child:del\",e,this])}getChild(e){return this.getNode().atime=new Date,this.children.get(e)}getPath(){return this.steps.join(\"/\")}getParentPath(){let e=this.steps.slice(0,-1).join(\"/\");return e||\"/\"}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}};Wt.Link=si});var ci=g(Jt=>{\"use strict\";p();Object.defineProperty(Jt,\"__esModule\",{value:!0});Jt.File=void 0;var ca=B(),{O_APPEND:aa}=ca.constants,oi=class{static{h(this,\"File\")}constructor(e,t,r,s){this.link=e,this.node=t,this.flags=r,this.fd=s,this.position=0}getString(e=\"utf8\"){return this.node.getString()}setString(e){this.node.setString(e)}getBuffer(){return this.node.getBuffer()}setBuffer(e){this.node.setBuffer(e)}getSize(){return this.node.getSize()}truncate(e){this.node.truncate(e)}seekTo(e){this.position=e}write(e,t=0,r=e.length,s){this.flags&aa?s=this.node.getSize():typeof s!=\"number\"&&(s=this.position);let n=this.node.write(e,t,r,s);return this.position=s+n,n}read(e,t=0,r=e.byteLength,s){typeof s!=\"number\"&&(s=this.position);let n=this.node.read(e,t,r,s);return this.position=s+n,n}chmod(e){this.node.chmod(e)}chown(e,t){this.node.chown(e,t)}};Jt.File=oi});var ui=g(P=>{\"use strict\";p();Object.defineProperty(P,\"__esModule\",{value:!0});P.filenameToSteps=P.resolve=P.unixify=P.isWin=void 0;P.isFd=ya;P.validateFd=Oa;P.dataToBuffer=xa;P.nullCheck=va;P.pathToFilename=Na;var ua=ze(),Be=Oe(),ai=qt(),xn=B();P.isWin=ai.default.platform===\"win32\";var ha=ua.resolve,fa=h((i,e)=>{let t=i[e];return e>0&&(t===\"/\"||P.isWin&&t===\"\\\\\")},\"isSeparator\"),la=h(i=>{let e=i.length-1;if(e<2)return i;for(;fa(i,e);)e--;return i.substr(0,e+1)},\"removeTrailingSeparator\"),da=h((i,e)=>{if(typeof i!=\"string\")throw new TypeError(\"expected a string\");return i=i.replace(/[\\\\\\/]+/g,\"/\"),e!==!1&&(i=la(i)),i},\"normalizePath\"),pa=h((i,e=!0)=>P.isWin?(i=da(i,e),i.replace(/^([a-zA-Z]+:|\\.\\/)/,\"\")):i,\"unixify\");P.unixify=pa;var Vt=h((i,e=ai.default.cwd())=>ha(e,i),\"resolve\");P.resolve=Vt;if(P.isWin){let i=Vt;P.resolve=Vt=h((e,t)=>(0,P.unixify)(i(e,t)),\"resolve\")}var ma=h((i,e)=>{let r=Vt(i,e).substring(1);return r?r.split(xn.pathSep):[]},\"filenameToSteps\");P.filenameToSteps=ma;function ya(i){return i>>>0===i}h(ya,\"isFd\");var En=2147483647,Qe=h((i,e)=>(i.code=e,i),\"withCode\"),wa=h(i=>{if(i===null)return\"null\";if(i===void 0)return\"undefined\";let e=typeof i;switch(e){case\"bigint\":return\"type bigint (\"+i+\"n)\";case\"number\":return\"type number (\"+(Object.is(i,-0)?\"-0\":String(i))+\")\";case\"boolean\":case\"symbol\":return\"type \"+e+\" (\"+String(i)+\")\";case\"function\":return\"function \"+i.name;case\"string\":{let t=i.length>28?i.slice(0,25)+\"...\":i;return t.indexOf(\"'\")===-1?\"type string ('\"+t+\"')\":\"type string (\"+JSON.stringify(t)+\")\"}default:{let t=i.constructor;return t&&\"name\"in t?\"an instance of \"+t.name:\"[Object: null prototype]\"+(Object.keys(i).length?\"\":\" {}\")}}},\"describeType\"),_a={8:\"\\\\b\",9:\"\\\\t\",10:\"\\\\n\",12:\"\\\\f\",13:\"\\\\r\"},ba=h((i,e)=>{let t=i.length,r=\"\";for(let s=0;s<t;s++){let n=i[s];if(n===e||n===\"\\\\\"){r+=\"\\\\\"+n;continue}let c=i.charCodeAt(s);if(c>31&&c<127||c>159){r+=n;continue}r+=_a[c]??\"\\\\x\"+c.toString(16).toUpperCase().padStart(2,\"0\")}return r},\"escapeString\"),ga=h(i=>{let e=i.indexOf(\"'\")===-1?\"'\":i.indexOf('\"')===-1?'\"':i.indexOf(\"`\")===-1?\"`\":\"'\";return e+ba(i,e)+e},\"quoteString\"),Sa=h(i=>{let e=i.length;if(Be.Buffer.isBuffer(i)){let s=e>50?50:e,n=\"<Buffer\";for(let c=0;c<s;c++)n+=\" \"+i[c].toString(16).padStart(2,\"0\");return n+(e>s?\" ... \"+(e-s)+\" more bytes>\":\">\")}let t=e>100?100:e,r=\"Uint8Array(\"+e+\") [\";for(let s=0;s<t;s++)r+=(s?\", \":\" \")+i[s];return e>t?r+\", ... \"+(e-t)+\" more items ]\":r+(t?\" ]\":\"]\")},\"inspectBytes\"),Ea=h(i=>{if(typeof i==\"string\")return ga(i);if(i instanceof Uint8Array)return Sa(i);if(typeof i==\"bigint\")return i+\"n\";if(i===null||typeof i!=\"object\")return String(i);let e=i.constructor;return e&&\"name\"in e?\"[\"+(e.name||\"Object\")+\"]\":\"[Object: null prototype]\"},\"inspectValue\"),vn=h((i,e,t)=>Qe(new TypeError('The \"'+i+'\" argument must be '+e+\". Received \"+wa(t)),\"ERR_INVALID_ARG_TYPE\"),\"invalidArgType\"),kn=h((i,e,t)=>{let r=Ea(e),s=r.length>128?r.slice(0,128)+\"...\":r,n=i.indexOf(\".\")===-1?\"argument\":\"property\";return Qe(new TypeError(\"The \"+n+\" '\"+i+\"' \"+t+\". Received \"+s),\"ERR_INVALID_ARG_VALUE\")},\"invalidArgValue\"),On=h((i,e,t)=>Qe(new RangeError('The value of \"'+i+'\" is out of range. It must be '+e+\". Received \"+t),\"ERR_OUT_OF_RANGE\"),\"outOfRange\");function Oa(i){if(typeof i!=\"number\")throw vn(\"fd\",\"of type number\",i);if(!Number.isInteger(i))throw On(\"fd\",\"an integer\",i);if(i<0||i>En)throw On(\"fd\",\">= 0 && <= \"+En,i)}h(Oa,\"validateFd\");function xa(i,e=xn.ENCODING_UTF8){return Be.Buffer.isBuffer(i)?i:i instanceof Uint8Array?(0,Be.bufferFrom)(i):e===\"buffer\"?(0,Be.bufferFrom)(String(i),\"utf8\"):(0,Be.bufferFrom)(String(i),e)}h(xa,\"dataToBuffer\");var Tn=\"must be a string, Uint8Array, or URL without null bytes\",Nn=h((i,e,t)=>{if(i.indexOf(\"\\0\")!==-1)throw kn(e,t,Tn)},\"checkNullByte\");function va(i,e=\"path\"){if(i instanceof Uint8Array){for(let r=0;r<i.length;r++)if(!i[r])throw kn(e,i,Tn);return!0}let t=\"\"+i;return Nn(t,e,t),!0}h(va,\"nullCheck\");var ka=h(i=>!!i&&!!i.href&&!!i.protocol&&i.auth===void 0&&i.path===void 0,\"isURL\"),Ta=h(i=>{if(i.protocol!==\"file:\")throw Qe(new TypeError(\"The URL must be of scheme file\"),\"ERR_INVALID_URL_SCHEME\");if(i.hostname!==\"\")throw Qe(new TypeError('File URL host must be \"localhost\" or empty on '+ai.default.platform),\"ERR_INVALID_FILE_URL_HOST\");let e=i.pathname;for(let r=0;r<e.length;r++)if(e[r]===\"%\"){let s=e.codePointAt(r+2)|32;if(e[r+1]===\"2\"&&s===102)throw Qe(new TypeError(\"File URL path must not include encoded / characters\"),\"ERR_INVALID_FILE_URL_PATH\")}let t=decodeURIComponent(e);return P.isWin?t.replace(/^\\/([a-zA-Z]:)/,\"$1\"):t},\"getPathFromURL\");function Na(i,e=\"path\"){let t=i;if(i instanceof Uint8Array&&(i=(0,Be.bufferFrom)(i)),typeof i!=\"string\"&&!Be.Buffer.isBuffer(i)){if(!ka(i))throw vn(e,\"of type string or an instance of Buffer or URL\",i);i=Ta(i)}let r=String(i);return Nn(r,e,t instanceof Uint8Array?t:r),r}h(Na,\"pathToFilename\")});var hi=g(Ht=>{\"use strict\";p();Object.defineProperty(Ht,\"__esModule\",{value:!0});Ht.SystemError=void 0;var zt=class extends Error{static{h(this,\"SystemError\")}constructor(e,t,r){let s=r.path,n=r.dest,c=t+\": \"+r.syscall+\" returned \"+r.code+\" (\"+r.message+\")\";s!==void 0&&(c+=\" \"+s),n!==void 0&&(c+=\" => \"+n),super(c),this.code=e,this.info=r,this.errno=r.errno,this.syscall=r.syscall,s!==void 0&&(this.path=s),n!==void 0&&(this.dest=n)}toString(){return this.name+\" [\"+this.code+\"]: \"+this.message}};Ht.SystemError=zt;zt.prototype.name=\"SystemError\"});var li=g(ne=>{\"use strict\";p();Object.defineProperty(ne,\"__esModule\",{value:!0});ne.createEisdirError=ne.createWatchError=ne.createStatError=ne.createError=void 0;var Ra=hi(),Yt={EPERM:[-1,\"operation not permitted\"],ENOENT:[-2,\"no such file or directory\"],EIO:[-5,\"i/o error\"],EBADF:[-9,\"bad file descriptor\"],EAGAIN:[-11,\"resource temporarily unavailable\"],EACCES:[-13,\"permission denied\"],EBUSY:[-16,\"resource busy or locked\"],EEXIST:[-17,\"file already exists\"],EXDEV:[-18,\"cross-device link not permitted\"],ENOTDIR:[-20,\"not a directory\"],EISDIR:[-21,\"illegal operation on a directory\"],EINVAL:[-22,\"invalid argument\"],ENFILE:[-23,\"file table overflow\"],EMFILE:[-24,\"too many open files\"],ETXTBSY:[-26,\"text file is busy\"],EFBIG:[-27,\"file too large\"],ENOSPC:[-28,\"no space left on device\"],ESPIPE:[-29,\"invalid seek\"],EROFS:[-30,\"read-only file system\"],EMLINK:[-31,\"too many links\"],ERANGE:[-34,\"result too large\"],ENAMETOOLONG:[-36,\"name too long\"],ENOSYS:[-38,\"function not implemented\"],ENOTEMPTY:[-39,\"directory not empty\"],ELOOP:[-40,\"too many symbolic links encountered\"],EPROTO:[-71,\"protocol error\"],EOVERFLOW:[-75,\"value too large for defined data type\"],ENOTSUP:[-95,\"operation not supported on socket\"]},fi=h((i,e,t,r,s)=>{let n=i+\": \"+(e?e[1]:\"unknown error\")+\", \"+t;return r&&(n+=\" '\"+r+\"'\"),s&&(n+=\" -> '\"+s+\"'\"),n},\"formatMessage\"),Fa=h((i,e=\"\",t=\"\",r=\"\",s=Error)=>{let n=Yt[i],c=new s(fi(i,n,e,t,r));return n&&(c.errno=n[0]),c.code=i,c.syscall=e,t&&(c.path=t),r&&(c.dest=r),c},\"createError\");ne.createError=Fa;var Aa=h((i,e=\"\",t=\"\",r=\"\")=>{let s=Yt[i];return{errno:s?s[0]:void 0,code:i,syscall:e,path:t,dest:r,message:fi(i,s,e,t,r),toError:h(()=>(0,ne.createError)(i,e,t,r),\"toError\")}},\"createStatError\");ne.createStatError=Aa;var Ca=h((i,e)=>{let t=Yt[i],r=new Error(fi(i,t,\"watch\",e,\"\"));return t&&(r.errno=t[0]),r.syscall=\"watch\",r.code=i,r.path=e,r.filename=e,r},\"createWatchError\");ne.createWatchError=Ca;var Ia=h((i,e)=>new Ra.SystemError(\"ERR_FS_EISDIR\",\"Path is a directory\",{code:\"EISDIR\",message:\"is a directory\",path:e,syscall:i,errno:-Yt.EISDIR[0]}),\"createEisdirError\");ne.createEisdirError=Ia});var pi=g(Kt=>{\"use strict\";p();Object.defineProperty(Kt,\"__esModule\",{value:!0});Kt.FsEvent=void 0;var di=class{static{h(this,\"FsEvent\")}constructor(e,t,r,s,n=void 0){this.type=e,this.steps=t,this.node=r,this.link=s,this.oldSteps=n}};Kt.FsEvent=di});var Pn=g(Xt=>{\"use strict\";p();Object.defineProperty(Xt,\"__esModule\",{value:!0});Xt.Superblock=void 0;var fe=ze(),Pa=ii(),Rn=ni(),ja=ci(),Da=Oe(),Ba=qt(),le=B(),H=B(),Y=ui(),O=li(),mi=Ke(),Ma=Gr(),ke=ei(),La=at(),M=pi(),{O_RDONLY:yi,O_WRONLY:Qt,O_RDWR:wi,O_CREAT:Te,O_EXCL:Fn,O_TRUNC:qa,O_DIRECTORY:_i,O_NOFOLLOW:An}=le.constants,Cn=40,In=h((i,e)=>{let t=i.length-1;if(t<1)return!1;let r=i.charCodeAt(t);return r===46&&(r=i.charCodeAt(--t)),r===47||e&&r===92},\"endsWithSep\"),$t=class i{static{h(this,\"Superblock\")}static fromJSON(e,t,r){let s=new i(r);return s.fromJSON(e,t),s}static fromNestedJSON(e,t,r){let s=new i(r);return s.fromNestedJSON(e,t),s}constructor(e={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.changes=new La.FanOut,this.open=(r,s,n,c=!0)=>{let f=this.openFile(r,s,n,c);if(!f)throw(0,O.createError)(\"ENOENT\",\"open\",r);return f.fd},this.writeFile=(r,s,n,c)=>{let f=typeof r==\"number\",o;f?o=r:o=this.open((0,Y.pathToFilename)(r),n,c);let a=0,u=s.length;try{for(;u>0;){let l=this.write(o,s,a,u,null);a+=l,u-=l}}finally{f||this.close(o)}},this.read=(r,s,n,c,f)=>{if(n<0)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"offset\",\">= 0 && <= 9007199254740991\",n);if(c===0)return 0;if(c<0)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"length\",\">= 0\",c);if(n+c>s.byteLength)throw new mi.RangeError(\"ERR_OUT_OF_RANGE\",\"length\",\"<= \"+(s.byteLength-n),c);let o=this.getFileByFdOrThrow(r,\"read\");if(o.node.isSymlink())throw(0,O.createError)(\"EPERM\",\"read\",o.link.getPath());return o.read(s,Number(n),Number(c),f===-1||typeof f!=\"number\"?void 0:f)},this.readv=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"read\"),f=n??void 0;f===-1&&(f=void 0);let o=0;for(let a of s){let u=c.read(a,0,a.byteLength,f);if(f=void 0,o+=u,u<a.byteLength)break}return o},this.link=(r,s)=>{let n;try{n=this.getLinkOrThrow(r,\"link\")}catch(l){throw l.code&&(l=(0,O.createError)(l.code,\"link\",r,s)),l}let c=(0,fe.dirname)(s),f;try{f=this.getLinkOrThrow(c,\"link\")}catch(l){throw l.code&&(l=(0,O.createError)(l.code,\"link\",r,s)),l}let o=(0,fe.basename)(s);if(f.getChild(o))throw(0,O.createError)(\"EEXIST\",\"link\",r,s);let a=n.getNode();a.nlink++;let u=f.createChild(o,a);this.emit(new M.FsEvent(0,u.steps,a,u))},this.unlink=r=>{let s=this.getLinkOrThrow(r,\"unlink\");if(s.getNode().isDirectory())throw(0,O.createError)(\"EPERM\",\"unlink\",r);this._emitDeleteRecursive(s),this.deleteLink(s);let n=s.getNode();n.nlink--,n.nlink<=0&&this.deleteNode(n)},this.symlink=(r,s)=>{if(!r)throw(0,O.createError)(\"ENOENT\",\"symlink\",r,s);let n=(0,Y.filenameToSteps)(s),c;try{c=this.getLinkParentAsDirOrThrow(n)}catch(u){throw u.code&&(u=(0,O.createError)(u.code,\"symlink\",r,s)),u}let f=n[n.length-1];if(c.getChild(f))throw(0,O.createError)(\"EEXIST\",\"symlink\",r,s);let o=c.getNode();if(!o.canExecute()||!o.canWrite())throw(0,O.createError)(\"EACCES\",\"symlink\",r,s);let a=c.createChild(f);return a.getNode().makeSymlink(r),this.emit(new M.FsEvent(0,a.steps,a.getNode(),a)),a},this.rename=(r,s)=>{let n;try{n=this.getResolvedLinkOrThrow(r)}catch(d){throw d.code&&(d=(0,O.createError)(d.code,\"rename\",r,s)),d}let c;try{c=this.getLinkParentAsDirOrThrow(s)}catch(d){throw d.code&&(d=(0,O.createError)(d.code,\"rename\",r,s)),d}let f=n.parent;if(!f)throw(0,O.createError)(\"EINVAL\",\"rename\",r,s);let o=f.getNode(),a=c.getNode();if(!o.canExecute()||!o.canWrite()||!a.canExecute()||!a.canWrite())throw(0,O.createError)(\"EACCES\",\"rename\",r,s);f.deleteChild(n);let u=(0,fe.basename)(s),l=n.steps;n.name=u,n.steps=[...c.steps,u],c.setChild(n.getName(),n),this.emit(new M.FsEvent(4,n.steps,n.getNode(),n,l))},this.mkdir=(r,s)=>{let n=(0,Y.filenameToSteps)(r);if(!n.length)throw(0,O.createError)(\"EEXIST\",\"mkdir\",r);let c=this.getLinkParentAsDirOrThrow(r,\"mkdir\"),f=n[n.length-1];if(c.getChild(f))throw(0,O.createError)(\"EEXIST\",\"mkdir\",r);let o=c.getNode();if(!o.canWrite()||!o.canExecute())throw(0,O.createError)(\"EACCES\",\"mkdir\",r);let a=c.createChild(f,this.createNode(le.constants.S_IFDIR|s));this.emit(new M.FsEvent(0,a.steps,a.getNode(),a))},this.mkdirp=(r,s)=>{let n=!1,c=(0,Y.filenameToSteps)(r),f=null,o=c.length;for(o=c.length;o>=0&&(f=this.getResolvedLink(c.slice(0,o)),!f);o--);for(f||(f=this.root,o=0),f=this.getResolvedLinkOrThrow(H.pathSep+c.slice(0,o).join(H.pathSep),\"mkdir\"),o;o<c.length;o++){let a=f.getNode();if(a.isDirectory()){if(!a.canExecute()||!a.canWrite())throw(0,O.createError)(\"EACCES\",\"mkdir\",r)}else throw(0,O.createError)(\"ENOTDIR\",\"mkdir\",r);n=!0,f=f.createChild(c[o],this.createNode(le.constants.S_IFDIR|s)),this.emit(new M.FsEvent(0,f.steps,f.getNode(),f))}return n?r:void 0},this.rmdir=(r,s=!1)=>{let n=this.getLinkAsDirOrThrow(r,\"rmdir\");if(n.length&&!s)throw(0,O.createError)(\"ENOTEMPTY\",\"rmdir\",r);this._emitDeleteRecursive(n),this.deleteLink(n)},this.rm=(r,s=!1,n=!1)=>{let c;try{c=this.getResolvedLinkOrThrow(r,\"lstat\")}catch(f){if(f.code===\"ENOENT\"&&s)return;throw f}if(c.getNode().isDirectory()&&!n)throw(0,O.createEisdirError)(\"rm\",r);if(!c.parent?.getNode().canWrite())throw(0,O.createError)(\"EACCES\",\"rm\",r);this._emitDeleteRecursive(c),this.deleteLink(c)},this.close=r=>{(0,Y.validateFd)(r);let s=this.getFileByFdOrThrow(r,\"close\");this.closeFile(s)},this.ftruncate=(r,s)=>{let n=this.getFileByFdOrThrow(r,\"ftruncate\");n.truncate(s),this.emit(new M.FsEvent(2,n.link.steps,n.node,n.link))},this.fchmod=(r,s)=>{let n=this.getFileByFdOrThrow(r,\"fchmod\");n.chmod(s),this.emit(new M.FsEvent(3,n.link.steps,n.node,n.link))},this.chmod=(r,s)=>{let n=this.getResolvedLinkOrThrow(r,\"chmod\");n.getNode().chmod(s),this.emit(new M.FsEvent(3,n.steps,n.getNode(),n))},this.lchmod=(r,s)=>{let n=this.getLinkOrThrow(r,\"lchmod\");n.getNode().chmod(s),this.emit(new M.FsEvent(3,n.steps,n.getNode(),n))},this.fchown=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"fchown\");c.chown(s,n),this.emit(new M.FsEvent(3,c.link.steps,c.node,c.link))},this.chown=(r,s,n)=>{let c=this.getResolvedLinkOrThrow(r,\"chown\");c.getNode().chown(s,n),this.emit(new M.FsEvent(3,c.steps,c.getNode(),c))},this.lchown=(r,s,n)=>{let c=this.getLinkOrThrow(r,\"lchown\");c.getNode().chown(s,n),this.emit(new M.FsEvent(3,c.steps,c.getNode(),c))},this.futimes=(r,s,n)=>{let c=this.getFileByFdOrThrow(r,\"futime\"),f=c.node;f.atime=new Date(s*1e3),f.mtime=new Date(n*1e3),this.emit(new M.FsEvent(3,c.link.steps,c.node,c.link))},this.utimes=(r,s,n,c=!0)=>{let f=c?this.getResolvedLinkOrThrow(r,\"utime\"):this.getLinkOrThrow(r,\"lutime\"),o=f.getNode();o.atime=new Date(s*1e3),o.mtime=new Date(n*1e3),this.emit(new M.FsEvent(3,f.steps,o,f))},this.process=e.process??Ba.default;let t=this.createLink();t.setNode(this.createNode(le.constants.S_IFDIR|511)),t.setChild(\".\",t),t.getNode().nlink++,t.setChild(\"..\",t),t.getNode().nlink++,this.root=t}emit(e){this.changes.emit(e)}createLink(e,t,r=!1,s){if(!e)return new Rn.Link(this,void 0,\"\");if(!t)throw new Error(\"createLink: name cannot be empty\");let n=s??(r?511:438),f=s&&s&le.constants.S_IFMT?s&le.constants.S_IFMT:r?le.constants.S_IFDIR:le.constants.S_IFREG,o=n&~le.constants.S_IFMT|f;return e.createChild(t,this.createNode(o))}deleteLink(e){let t=e.parent;return t?(t.deleteChild(e),!0):!1}_emitDeleteRecursive(e){if(e.getNode().isDirectory())for(let[t,r]of e.children.entries())r&&t!==\".\"&&t!==\"..\"&&this._emitDeleteRecursive(r);this.emit(new M.FsEvent(1,e.steps,e.getNode(),e))}newInoNumber(){let e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%4294967295,this.ino)}newFdNumber(){let e=this.releasedFds.pop();return typeof e==\"number\"?e:i.fd--}createNode(e){let t=this.process.getuid?.()??0,r=this.process.getgid?.()??0,s=new Pa.Node(this.newInoNumber(),e,t,r);return this.inodes[s.ino]=s,s}deleteNode(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)}walk(e,t=!1,r=!1,s=!1,n,c){let f,o;e instanceof Rn.Link?(f=e.steps,o=H.pathSep+f.join(H.pathSep)):typeof e==\"string\"?(f=(0,Y.filenameToSteps)(e),o=e):(f=e,o=H.pathSep+f.join(H.pathSep));let a=this.root,u=0,l=c?c.hops:0,d=this.process.getuid?.()??0,m=this.process.getgid?.()??0;for(;u<f.length;){let y=a.getNode();if(y.isDirectory()){if(s&&!y.canExecute(d,m))return(0,ke.Err)((0,O.createStatError)(\"EACCES\",n,o))}else if(u<f.length-1)return(0,ke.Err)((0,O.createStatError)(\"ENOTDIR\",n,o));if(a=a.getChild(f[u])??null,!a)return r?(0,ke.Err)((0,O.createStatError)(\"ENOENT\",n,o)):(0,ke.Ok)(null);if(y=a?.getNode(),y.isSymlink()&&(t||u<f.length-1)){if(++l>Cn)return(0,ke.Err)((0,O.createStatError)(\"ELOOP\",n,o));c&&(c.hops=l);let b=(0,fe.isAbsolute)(y.symlink)?y.symlink:(0,H.pathJoin)((0,fe.dirname)(a.getPath()),y.symlink);f=(0,Y.filenameToSteps)(b).concat(f.slice(u+1)),a=this.root,u=0;continue}if(r&&!y.isDirectory()&&u<f.length-1){let b=this.process.platform===\"win32\"?\"ENOENT\":\"ENOTDIR\";return(0,ke.Err)((0,O.createStatError)(b,n,o))}u++}return(0,ke.Ok)(a)}getLink(e){let t=this.walk(e,!1,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getLinkOrThrow(e,t){let r=this.walk(e,!1,!0,!0,t);if(r.ok)return r.value;throw r.err.toError()}getResolvedLink(e){let t=this.walk(e,!0,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getResolvedLinkOrThrow(e,t){let r=this.walk(e,!0,!0,!0,t);if(r.ok)return r.value;throw r.err.toError()}getResolvedLinkResult(e,t){let r=this.walk(e,!0,!0,!0,t);return r.ok?(0,ke.Ok)(r.value):r}resolveSymlinks(e){return this.getResolvedLink(e.steps.slice(1))}getLinkAsDirOrThrow(e,t){let r=this.getLinkOrThrow(e,t);if(!r.getNode().isDirectory())throw(0,O.createError)(\"ENOTDIR\",t,e);return r}getLinkParent(e){return this.getLink(e.slice(0,-1))}getLinkParentAsDirOrThrow(e,t){let r=(e instanceof Array?e:(0,Y.filenameToSteps)(e)).slice(0,-1),s=H.pathSep+r.join(H.pathSep),n=this.getLinkOrThrow(s,t);if(!n.getNode().isDirectory())throw(0,O.createError)(\"ENOTDIR\",t,s);return n}getFileByFd(e){return this.fds[String(e)]}getFileByFdOrThrow(e,t){(0,Y.validateFd)(e);let r=this.getFileByFd(e);if(!r)throw(0,O.createError)(\"EBADF\",t);return r}_toJSON(e=this.root,t={},r,s){let n=!0,c=e.children;e.getNode().isFile()&&(c=new Map([[e.getName(),e.parent.getChild(e.getName())]]),e=e.parent);for(let o of c.keys()){if(o===\".\"||o===\"..\")continue;n=!1;let a=e.getChild(o);if(!a)throw new Error(\"_toJSON: unexpected undefined\");let u=a.getNode();if(u.isFile()){let l=a.getPath();r&&(l=(0,H.pathRelative)(r,l)),t[l]=s?u.getBuffer():u.getString()}else u.isDirectory()&&this._toJSON(a,t,r,s)}let f=e.getPath();return r&&(f=(0,H.pathRelative)(r,f)),f&&n&&(t[f]=null),t}toJSON(e,t={},r=!1,s=!1){let n=[];if(e){Array.isArray(e)||(e=[e]);for(let c of e){let f=(0,Y.pathToFilename)(c),o=this.getResolvedLink(f);o&&n.push(o)}}else n.push(this.root);if(!n.length)return t;for(let c of n)this._toJSON(c,t,r?c.getPath():\"\",s);return t}fromJSON(e,t=this.process.cwd()){for(let r in e){let s=e[r];if(r=(0,Y.resolve)(r,t),typeof s==\"string\"||s instanceof Da.Buffer){let n=(0,fe.dirname)(r);this.mkdirp(n,511);let c=(0,Y.dataToBuffer)(s);this.writeFile(r,c,H.FLAGS.w,438)}else this.mkdirp(r,511)}}fromNestedJSON(e,t){this.fromJSON((0,Ma.flattenJSON)(e),t)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(le.constants.S_IFDIR|511))}mountSync(e,t){this.fromJSON(t,e)}openLink(e,t,r=!0,s=e.getPath()){if(this.openFiles>=this.maxFiles)throw(0,O.createError)(\"EMFILE\",\"open\",s);let n=e;r&&(n=this.getResolvedLinkOrThrow(e.getPath(),\"open\"));let c=n.getNode();if(c.isDirectory()){if((t&(yi|wi|Qt))!==yi)throw(0,O.createError)(\"EISDIR\",\"open\",s)}else if(t&_i)throw(0,O.createError)(\"ENOTDIR\",\"open\",s);if(c.isSymlink()&&t&An)throw(0,O.createError)(\"ELOOP\",\"open\",s);if((t&(yi|wi|Qt))!==Qt&&!c.canRead()||t&(Qt|wi)&&!c.canWrite())throw(0,O.createError)(\"EACCES\",\"open\",s);let f=new ja.File(e,c,t,this.newFdNumber());if(this.fds[f.fd]=f,this.openFiles++,t&qa){let o=f.node.getSize()>0;f.truncate(),o&&this.emit(new M.FsEvent(2,f.link.steps,f.node,f.link))}return f}throwCreatDir(e,t,r){let s=this.walk((0,fe.dirname)(e),!0,!0,!0,\"open\",r);if(!s.ok)throw(0,O.createError)(s.err.code,\"open\",t);let n=s.value.getNode();throw n.isDirectory()?n.canExecute()?(0,O.createError)(\"EISDIR\",\"open\",t):(0,O.createError)(\"EACCES\",\"open\",t):(0,O.createError)(\"ENOTDIR\",\"open\",t)}openFile(e,t,r,s=!0){if(this.openFiles>=this.maxFiles)throw(0,O.createError)(\"EMFILE\",\"open\",e);if((t&(Te|_i))===(Te|_i))throw(0,O.createError)(\"EINVAL\",\"open\",e);let n=this.process.platform===\"win32\",c={hops:0},f=In(e,n);f&&t&Te&&this.throwCreatDir(e,e,c);let o=(t&(Te|Fn))===(Te|Fn),a=f||s&&!(t&An)&&!o,u=e,l=null;for(;;){let S=c.hops,v=this.walk(u,!1,!0,!0,\"open\",c);if(!v.ok){let j=v.err.code;if(j!==\"ENOENT\"||!(t&Te))throw(0,O.createError)(j,\"open\",e);c.hops=S,l=null;break}l=v.value;let R=l.getNode();if(!a||!R.isSymlink())break;if(++c.hops>Cn)throw(0,O.createError)(\"ELOOP\",\"open\",e);u=(0,fe.isAbsolute)(R.symlink)?R.symlink:(0,H.pathJoin)((0,fe.dirname)(l.getPath()),R.symlink),In(u,n)&&(t&Te&&this.throwCreatDir(u,e,c),f=!0)}if(l){let S=l.getNode();if(o)throw(0,O.createError)(\"EEXIST\",\"open\",e);if(f&&!S.isDirectory())throw(0,O.createError)(\"ENOTDIR\",\"open\",e);if(t&Te&&S.isDirectory())throw(0,O.createError)(\"EISDIR\",\"open\",e);return this.openLink(l,t,!1,e)}let d=this.walk((0,fe.dirname)(u),!0,!0,!0,\"open\",c);if(!d.ok)throw(0,O.createError)(d.err.code,\"open\",e);let m=d.value,y=m.getNode();if(!y.isDirectory())throw(0,O.createError)(\"ENOTDIR\",\"open\",e);if(!y.canExecute()||!y.canWrite())throw(0,O.createError)(\"EACCES\",\"open\",e);r??(r=438);let b=(0,Y.filenameToSteps)(u);return l=this.createLink(m,b[b.length-1],!1,r),this.emit(new M.FsEvent(0,l.steps,l.getNode(),l)),this.openLink(l,t,!1,e)}closeFile(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))}write(e,t,r,s,n){let c=this.getFileByFdOrThrow(e,\"write\");if(c.node.isSymlink())throw(0,O.createError)(\"EBADF\",\"write\",c.link.getPath());let f=c.write(t,r,s,n===-1||typeof n!=\"number\"?void 0:n);return f>0&&this.emit(new M.FsEvent(2,c.link.steps,c.node,c.link)),f}};Xt.Superblock=$t;$t.fd=2147483647});var jn=g($e=>{\"use strict\";p();Object.defineProperty($e,\"__esModule\",{value:!0});$e.CoreWatcher=$e.CoreWatchEvent=void 0;var Ua=at(),Ne=class{static{h(this,\"CoreWatchEvent\")}constructor(e,t,r,s,n=void 0){this.type=e,this.steps=t,this.node=r,this.link=s,this.oldSteps=n}};$e.CoreWatchEvent=Ne;var bi=class{static{h(this,\"CoreWatcher\")}constructor(e,t,r={}){this.changes=new Ua.FanOut,this.link=r.follow??!0?e.getResolvedLinkOrThrow(t,\"watch\"):e.getLinkOrThrow(t,\"watch\"),this.node=this.link.getNode(),this.recursive=!!r.recursive,this.unsub=e.changes.listen(s=>this.onEvent(s))}get closed(){return!this.unsub}onEvent(e){let t=this.link.steps.length;if(e.link===this.link||e.node===this.node&&(e.type===2||e.type===3)){this.changes.emit(new Ne(e.type,[],e.node,this.link)),e.type===1&&this.close();return}if(e.type===4){let s=e.oldSteps&&this.inScope(e.oldSteps)?e.oldSteps.slice(t):void 0,n=this.inScope(e.steps)?e.steps.slice(t):void 0;s&&n?this.changes.emit(new Ne(4,n,e.node,e.link,s)):s?this.changes.emit(new Ne(1,s,e.node,e.link)):n&&this.changes.emit(new Ne(0,n,e.node,e.link));return}this.inScope(e.steps)&&this.changes.emit(new Ne(e.type,e.steps.slice(t),e.node,e.link))}inScope(e){let t=this.link.steps;if(e.length<=t.length||!this.recursive&&e.length!==t.length+1)return!1;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}close(){this.unsub?.(),this.unsub=void 0}};$e.CoreWatcher=bi});var Gt=g(x=>{\"use strict\";p();Object.defineProperty(x,\"__esModule\",{value:!0});x.SystemError=x.createWatchError=x.createEisdirError=x.createStatError=x.createError=x.resolve=x.pathToFilename=x.nullCheck=x.validateFd=x.isWin=x.isFd=x.filenameToSteps=x.dataToBuffer=x.Superblock=x.File=x.Link=x.Node=void 0;var Xe=(he(),ie(ue));Xe.__exportStar(Us(),x);Xe.__exportStar(Gr(),x);Xe.__exportStar(wn(),x);Xe.__exportStar(ei(),x);var Wa=ii();Object.defineProperty(x,\"Node\",{enumerable:!0,get:h(function(){return Wa.Node},\"get\")});var Ja=ni();Object.defineProperty(x,\"Link\",{enumerable:!0,get:h(function(){return Ja.Link},\"get\")});var Va=ci();Object.defineProperty(x,\"File\",{enumerable:!0,get:h(function(){return Va.File},\"get\")});var za=Pn();Object.defineProperty(x,\"Superblock\",{enumerable:!0,get:h(function(){return za.Superblock},\"get\")});Xe.__exportStar(pi(),x);Xe.__exportStar(jn(),x);var Re=ui();Object.defineProperty(x,\"dataToBuffer\",{enumerable:!0,get:h(function(){return Re.dataToBuffer},\"get\")});Object.defineProperty(x,\"filenameToSteps\",{enumerable:!0,get:h(function(){return Re.filenameToSteps},\"get\")});Object.defineProperty(x,\"isFd\",{enumerable:!0,get:h(function(){return Re.isFd},\"get\")});Object.defineProperty(x,\"isWin\",{enumerable:!0,get:h(function(){return Re.isWin},\"get\")});Object.defineProperty(x,\"validateFd\",{enumerable:!0,get:h(function(){return Re.validateFd},\"get\")});Object.defineProperty(x,\"nullCheck\",{enumerable:!0,get:h(function(){return Re.nullCheck},\"get\")});Object.defineProperty(x,\"pathToFilename\",{enumerable:!0,get:h(function(){return Re.pathToFilename},\"get\")});Object.defineProperty(x,\"resolve\",{enumerable:!0,get:h(function(){return Re.resolve},\"get\")});var Zt=li();Object.defineProperty(x,\"createError\",{enumerable:!0,get:h(function(){return Zt.createError},\"get\")});Object.defineProperty(x,\"createStatError\",{enumerable:!0,get:h(function(){return Zt.createStatError},\"get\")});Object.defineProperty(x,\"createEisdirError\",{enumerable:!0,get:h(function(){return Zt.createEisdirError},\"get\")});Object.defineProperty(x,\"createWatchError\",{enumerable:!0,get:h(function(){return Zt.createWatchError},\"get\")});var Ha=hi();Object.defineProperty(x,\"SystemError\",{enumerable:!0,get:h(function(){return Ha.SystemError},\"get\")})});var gi=g(ft=>{\"use strict\";p();Object.defineProperty(ft,\"__esModule\",{value:!0});ft.Stats=void 0;var Ya=B(),{S_IFMT:Ka,S_IFDIR:Qa,S_IFREG:$a,S_IFBLK:Xa,S_IFCHR:Za,S_IFLNK:Ga,S_IFIFO:eu,S_IFSOCK:tu}=Ya.constants,er=class i{static{h(this,\"Stats\")}static build(e,t=!1){let r=new i,{uid:s,gid:n,atime:c,mtime:f,ctime:o,btime:a}=e,u=t?l=>BigInt(l):l=>l;return r.uid=u(s),r.gid=u(n),r.rdev=u(e.rdev),r.blksize=u(4096),r.ino=u(e.ino),r.size=u(e.getSize()),r.blocks=u(1),r.atime=new Date(c.getTime()),r.mtime=new Date(f.getTime()),r.ctime=new Date(o.getTime()),r.birthtime=new Date(a.getTime()),r.atimeMs=u(c.getTime()),r.mtimeMs=u(f.getTime()),r.ctimeMs=u(o.getTime()),r.birthtimeMs=u(a.getTime()),t&&(r.atimeNs=BigInt(c.getTime())*BigInt(1e6),r.mtimeNs=BigInt(f.getTime())*BigInt(1e6),r.ctimeNs=BigInt(o.getTime())*BigInt(1e6),r.birthtimeNs=BigInt(a.getTime())*BigInt(1e6)),r.dev=u(0),r.mode=u(e.mode),r.nlink=u(e.nlink),r}_checkModeProperty(e){return(Number(this.mode)&Ka)===e}isDirectory(){return this._checkModeProperty(Qa)}isFile(){return this._checkModeProperty($a)}isBlockDevice(){return this._checkModeProperty(Xa)}isCharacterDevice(){return this._checkModeProperty(Za)}isSymbolicLink(){return this._checkModeProperty(Ga)}isFIFO(){return this._checkModeProperty(eu)}isSocket(){return this._checkModeProperty(tu)}};ft.Stats=er;ft.default=er});var rr=g(lt=>{\"use strict\";p();Object.defineProperty(lt,\"__esModule\",{value:!0});lt.Dirent=void 0;var Dn=B(),{S_IFMT:ru,S_IFDIR:iu,S_IFREG:su,S_IFBLK:nu,S_IFCHR:ou,S_IFLNK:cu,S_IFIFO:au,S_IFSOCK:uu}=Dn.constants,tr=class i{static{h(this,\"Dirent\")}constructor(){this.name=\"\",this.parentPath=\"\",this.mode=0,this.path=\"\"}static build(e,t){let r=new i,{mode:s}=e.getNode();return r.name=(0,Dn.strToEncoding)(e.getName(),t),r.mode=s,r.parentPath=e.getParentPath(),r.path=r.parentPath,r}_checkModeProperty(e){return(this.mode&ru)===e}isDirectory(){return this._checkModeProperty(iu)}isFile(){return this._checkModeProperty(su)}isBlockDevice(){return this._checkModeProperty(nu)}isCharacterDevice(){return this._checkModeProperty(ou)}isSymbolicLink(){return this._checkModeProperty(cu)}isFIFO(){return this._checkModeProperty(au)}isSocket(){return this._checkModeProperty(uu)}};lt.Dirent=tr;lt.default=tr});var Si=g(dt=>{\"use strict\";p();Object.defineProperty(dt,\"__esModule\",{value:!0});dt.StatFs=void 0;var ir=class i{static{h(this,\"StatFs\")}static build(e,t=!1){let r=new i,s=t?u=>BigInt(u):u=>u;r.type=s(2240043254),r.bsize=s(4096);let n=Object.keys(e.inodes).length,c=1e6,f=Math.min(n*2,c),o=c-f;r.blocks=s(c),r.bfree=s(o),r.bavail=s(o);let a=1e6;return r.files=s(a),r.ffree=s(a-n),r}};dt.StatFs=ir;dt.default=ir});var Bn=g(Ei=>{\"use strict\";p();Object.defineProperty(Ei,\"__esModule\",{value:!0});function hu(i,e,t){let r=setTimeout.apply(globalThis,arguments);return r&&typeof r==\"object\"&&typeof r.unref==\"function\"&&r.unref(),r}h(hu,\"setTimeoutUnref\");Ei.default=hu});var Ln=g(Ze=>{\"use strict\";p();Object.defineProperty(Ze,\"__esModule\",{value:!0});Ze.Writable=Ze.Readable=void 0;var Mn=hc();Object.defineProperty(Ze,\"Readable\",{enumerable:!0,get:h(function(){return Mn.Readable},\"get\")});Object.defineProperty(Ze,\"Writable\",{enumerable:!0,get:h(function(){return Mn.Writable},\"get\")})});var Oi=g(sr=>{\"use strict\";p();Object.defineProperty(sr,\"__esModule\",{value:!0});sr.EventEmitter=void 0;var fu=uc();Object.defineProperty(sr,\"EventEmitter\",{enumerable:!0,get:h(function(){return fu.EventEmitter},\"get\")})});var Fe=g(F=>{\"use strict\";p();Object.defineProperty(F,\"__esModule\",{value:!0});F.getWriteSyncArgs=F.getWriteArgs=F.bufToUint8=F.createWatchError=F.createStatError=F.createError=F.pathToFilename=F.nullCheck=void 0;F.promisify=pu;F.validateCallback=qn;F.modeToNumber=Un;F.genRndStr6=yu;F.flagsToNumber=wu;F.streamToBuffer=_u;F.bufferToEncoding=Eu;F.isReadableStream=Ou;var xi=B(),lu=Ke(),du=Oe(),nr=Gt(),pt=Gt();Object.defineProperty(F,\"nullCheck\",{enumerable:!0,get:h(function(){return pt.nullCheck},\"get\")});Object.defineProperty(F,\"pathToFilename\",{enumerable:!0,get:h(function(){return pt.pathToFilename},\"get\")});Object.defineProperty(F,\"createError\",{enumerable:!0,get:h(function(){return pt.createError},\"get\")});Object.defineProperty(F,\"createStatError\",{enumerable:!0,get:h(function(){return pt.createStatError},\"get\")});Object.defineProperty(F,\"createWatchError\",{enumerable:!0,get:h(function(){return pt.createWatchError},\"get\")});function pu(i,e,t=r=>r){return(...r)=>new Promise((s,n)=>{i[e].bind(i)(...r,(c,f)=>c?n(c):s(t(f)))})}h(pu,\"promisify\");function qn(i){if(typeof i!=\"function\")throw TypeError(xi.ERRSTR.CB);return i}h(qn,\"validateCallback\");function mu(i,e){if(typeof i==\"number\")return i;if(typeof i==\"string\")return parseInt(i,8);if(e)return Un(e)}h(mu,\"_modeToNumber\");function Un(i,e){let t=mu(i,e);if(typeof t!=\"number\"||isNaN(t))throw new TypeError(xi.ERRSTR.MODE_INT);return t}h(Un,\"modeToNumber\");function yu(){return Math.random().toString(36).slice(2,8).padEnd(6,\"0\")}h(yu,\"genRndStr6\");function wu(i){if(typeof i==\"number\")return i;if(typeof i==\"string\"){let e=xi.FLAGS[i];if(typeof e<\"u\")return e}throw new lu.TypeError(\"ERR_INVALID_OPT_VALUE\",\"flags\",i)}h(wu,\"flagsToNumber\");function _u(i){let e=[];return new Promise((t,r)=>{i.on(\"data\",s=>e.push(s)),i.on(\"end\",()=>t(du.Buffer.concat(e))),i.on(\"error\",r)})}h(_u,\"streamToBuffer\");var bu=h(i=>new Uint8Array(i.buffer,i.byteOffset,i.byteLength),\"bufToUint8\");F.bufToUint8=bu;var gu=h((i,e,t,r,s,n)=>{(0,nr.validateFd)(i);let c=0,f,o=null,a,u,l=typeof e,d=typeof t,m=typeof r,y=typeof s;l!==\"string\"?d===\"function\"?u=t:m===\"function\"?(c=t|0,u=r):y===\"function\"?(c=t|0,f=r,u=s):(c=t|0,f=r,o=s,u=n):d===\"function\"?u=t:m===\"function\"?(o=t,u=r):y===\"function\"&&(o=t,a=r,u=s);let b=(0,nr.dataToBuffer)(e,a);l!==\"string\"?typeof f>\"u\"&&(f=b.length):(c=0,f=b.length);let S=qn(u);return[i,l===\"string\",b,c,f,o,S]},\"getWriteArgs\");F.getWriteArgs=gu;var Su=h((i,e,t,r,s)=>{(0,nr.validateFd)(i);let n,c,f,o,a=typeof e!=\"string\";a?(c=(t||0)|0,f=r,o=s):(o=t,n=r);let u=(0,nr.dataToBuffer)(e,n);return a?typeof f>\"u\"&&(f=u.length):(c=0,f=u.length),[i,u,c||0,f,o]},\"getWriteSyncArgs\");F.getWriteSyncArgs=Su;function Eu(i,e){return!e||e===\"buffer\"?i:i.toString(e)}h(Eu,\"bufferToEncoding\");function Ou(i){return i!==null&&typeof i==\"object\"&&typeof i.pipe==\"function\"&&typeof i.on==\"function\"&&i.readable===!0}h(Ou,\"isReadableStream\")});var ki=g(or=>{\"use strict\";p();Object.defineProperty(or,\"__esModule\",{value:!0});or.FileHandle=void 0;var q=Fe(),xu=Oi(),vi=class extends xu.EventEmitter{static{h(this,\"FileHandle\")}constructor(e,t){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=e,this.fd=t}getAsyncId(){return this.fd}appendFile(e,t){return(0,q.promisify)(this.fs,\"appendFile\")(this.fd,e,t)}chmod(e){return(0,q.promisify)(this.fs,\"fchmod\")(this.fd,e)}chown(e,t){return(0,q.promisify)(this.fs,\"fchown\")(this.fd,e,t)}close(){if(this.fd===-1)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,this.refs===0){let e=this.fd;this.fd=-1,this.closePromise=(0,q.promisify)(this.fs,\"close\")(e).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((e,t)=>{this.closeResolve=e,this.closeReject=t}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit(\"close\"),this.closePromise}datasync(){return(0,q.promisify)(this.fs,\"fdatasync\")(this.fd)}createReadStream(e){return this.fs.createReadStream(\"\",{...e,fd:this})}createWriteStream(e){return this.fs.createWriteStream(\"\",{...e,fd:this})}readableWebStream(e={}){let{type:t=\"bytes\",autoClose:r=!1}=e,s=0;if(this.fd===-1)throw new Error(\"The FileHandle is closed\");if(this.closePromise)throw new Error(\"The FileHandle is closing\");if(this.readableWebStreamLocked)throw new Error(\"An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.\");this.readableWebStreamLocked=!0,this.ref();let n=h(()=>{this.readableWebStreamLocked=!1,this.unref(),r&&this.close().catch(()=>{})},\"unlockAndCleanup\");return new ReadableStream({type:t===\"bytes\"?\"bytes\":void 0,autoAllocateChunkSize:16384,pull:h(async c=>{try{let f=c.byobRequest?.view;if(!f){let a=new Uint8Array(16384),u=await this.read(a,0,a.length,s);if(u.bytesRead===0){c.close(),n();return}s+=u.bytesRead,c.enqueue(a.slice(0,u.bytesRead));return}let o=await this.read(f,f.byteOffset,f.byteLength,s);if(o.bytesRead===0){c.close(),c.byobRequest.respond(0),n();return}s+=o.bytesRead,c.byobRequest.respond(o.bytesRead)}catch(f){c.error(f),n()}},\"pull\"),cancel:h(async()=>{n()},\"cancel\")})}async read(e,t,r,s){let n=s??this.position,c=await(0,q.promisify)(this.fs,\"read\",f=>({bytesRead:f,buffer:e}))(this.fd,e,t,r,n);return s==null&&(this.position+=c.bytesRead),c}readv(e,t){return(0,q.promisify)(this.fs,\"readv\",r=>({bytesRead:r,buffers:e}))(this.fd,e,t)}readFile(e){return(0,q.promisify)(this.fs,\"readFile\")(this.fd,e)}stat(e){return(0,q.promisify)(this.fs,\"fstat\")(this.fd,e)}sync(){return(0,q.promisify)(this.fs,\"fsync\")(this.fd)}truncate(e){return(0,q.promisify)(this.fs,\"ftruncate\")(this.fd,e)}utimes(e,t){return(0,q.promisify)(this.fs,\"futimes\")(this.fd,e,t)}async write(e,t,r,s){let n=typeof s!=\"number\",c=n?this.position:s,f=await(0,q.promisify)(this.fs,\"write\",o=>({bytesWritten:o,buffer:e}))(this.fd,e,t,r,c);return n&&(this.position+=f.bytesWritten),f}writev(e,t){return(0,q.promisify)(this.fs,\"writev\",r=>({bytesWritten:r,buffers:e}))(this.fd,e,t)}writeFile(e,t){return(0,q.promisify)(this.fs,\"writeFile\")(this.fd,e,t)}async[Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,this.refs===0&&(this.fd=-1,this.closeResolve&&(0,q.promisify)(this.fs,\"close\")(this.fd).then(this.closeResolve,this.closeReject))}};or.FileHandle=vi});var Ri=g(cr=>{\"use strict\";p();Object.defineProperty(cr,\"__esModule\",{value:!0});cr.FsPromises=void 0;var T=Fe(),vu=B(),Wn=h(i=>{let e=new Error(\"The operation was aborted\");return e.name=\"AbortError\",e.code=\"ABORT_ERR\",e.cause=i.reason,e},\"newAbortError\"),Ti=class{static{h(this,\"FSWatchAsyncIterator\")}constructor(e,t,r={}){this.fs=e,this.path=t,this.options=r,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=r.maxQueue||2048;let s=r.overflow||\"ignore\";if(s!==\"ignore\"&&s!==\"error\"&&s!==\"throw\")throw new TypeError(`The argument 'options.overflow' must be one of: 'ignore', 'error'. Received '${s}'`);this.overflow=s===\"throw\"?\"error\":s;let n=r.signal;if(n){if(n.aborted){this.finish(Wn(n));return}this.onAbort=()=>this.finish(Wn(n)),n.addEventListener(\"abort\",this.onAbort)}this.startWatching()}startWatching(){let{signal:e,...t}=this.options;try{this.watcher=this.fs.watch(this.path,t,(r,s)=>{this.enqueueEvent({eventType:r,filename:s})})}catch(r){throw this.finish(),r}}enqueueEvent(e){if(!this.finished){if(this.eventQueue.length>=this.maxQueue){if(this.overflow===\"error\"){let t=new Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);t.code=\"ERR_FS_WATCH_QUEUE_OVERFLOW\",this.finish(t)}else typeof process<\"u\"&&typeof process.emitWarning==\"function\"&&process.emitWarning(\"fs.watch maxQueue exceeded\");return}if(this.eventQueue.push(e),this.resolveQueue.length>0){let{resolve:t}=this.resolveQueue.shift(),r=this.eventQueue.shift();t({value:r,done:!1})}}}finish(e){if(this.finished)return;this.finished=!0,this.error=e,e&&(this.eventQueue.length=0),this.onAbort&&(this.options.signal.removeEventListener(\"abort\",this.onAbort),this.onAbort=void 0),this.watcher&&(this.watcher.close(),this.watcher=null);let t=e&&this.resolveQueue.length>0;for(;this.resolveQueue.length>0;){let{resolve:r,reject:s}=this.resolveQueue.shift();e?s(e):r({value:void 0,done:!0})}t&&(this.error=void 0)}async next(){if(this.error){let e=this.error;throw this.error=void 0,e}return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((e,t)=>{this.resolveQueue.push({resolve:e,reject:t})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(e){throw this.finish(e),e}[Symbol.asyncIterator](){return this}},Ni=class{static{h(this,\"FsPromises\")}constructor(e,t){this.fs=e,this.FileHandle=t,this.constants=vu.constants,this.cp=(0,T.promisify)(this.fs,\"cp\"),this.opendir=(0,T.promisify)(this.fs,\"opendir\"),this.statfs=(0,T.promisify)(this.fs,\"statfs\"),this.lutimes=(0,T.promisify)(this.fs,\"lutimes\"),this.glob=(0,T.promisify)(this.fs,\"glob\"),this.access=(0,T.promisify)(this.fs,\"access\"),this.chmod=(0,T.promisify)(this.fs,\"chmod\"),this.chown=(0,T.promisify)(this.fs,\"chown\"),this.copyFile=(0,T.promisify)(this.fs,\"copyFile\"),this.lchmod=(0,T.promisify)(this.fs,\"lchmod\"),this.lchown=(0,T.promisify)(this.fs,\"lchown\"),this.link=(0,T.promisify)(this.fs,\"link\"),this.lstat=(0,T.promisify)(this.fs,\"lstat\"),this.mkdir=(0,T.promisify)(this.fs,\"mkdir\"),this.mkdtemp=(0,T.promisify)(this.fs,\"mkdtemp\"),this.readdir=(0,T.promisify)(this.fs,\"readdir\"),this.readlink=(0,T.promisify)(this.fs,\"readlink\"),this.realpath=(0,T.promisify)(this.fs,\"realpath\"),this.rename=(0,T.promisify)(this.fs,\"rename\"),this.rmdir=(0,T.promisify)(this.fs,\"rmdir\"),this.rm=(0,T.promisify)(this.fs,\"rm\"),this.stat=(0,T.promisify)(this.fs,\"stat\"),this.symlink=(0,T.promisify)(this.fs,\"symlink\"),this.truncate=(0,T.promisify)(this.fs,\"truncate\"),this.unlink=(0,T.promisify)(this.fs,\"unlink\"),this.utimes=(0,T.promisify)(this.fs,\"utimes\"),this.readFile=(r,s)=>(0,T.promisify)(this.fs,\"readFile\")(r instanceof this.FileHandle?r.fd:r,s),this.appendFile=(r,s,n)=>(0,T.promisify)(this.fs,\"appendFile\")(r instanceof this.FileHandle?r.fd:r,s,n),this.open=(r,s=\"r\",n)=>(0,T.promisify)(this.fs,\"open\",c=>new this.FileHandle(this.fs,c))(r,s,n),this.writeFile=(r,s,n)=>((0,T.isReadableStream)(s)?(0,T.streamToBuffer)(s):Promise.resolve(s)).then(f=>(0,T.promisify)(this.fs,\"writeFile\")(r instanceof this.FileHandle?r.fd:r,f,n)),this.watch=(r,s)=>{let n=typeof s==\"string\"?{encoding:s}:s||{};return new Ti(this.fs,r,n)}}};cr.FsPromises=Ni});var Jn=g(ar=>{\"use strict\";p();Object.defineProperty(ar,\"__esModule\",{value:!0});ar.printTree=void 0;var ku=h((i=\"\",e)=>{let t=\"\",r=e.length-1;for(;r>=0&&!e[r];r--);for(let s=0;s<=r;s++){let n=e[s];if(!n)continue;let c=s===r,f=n(i+(c?\" \":\"\\u2502\")+\" \"),o=f?c?\"\\u2514\\u2500\":\"\\u251C\\u2500\":\"\\u2502\";t+=`\n`+i+o+(f?\" \"+f:\"\")}return t},\"printTree\");ar.printTree=ku});var Vn=g(ur=>{\"use strict\";p();Object.defineProperty(ur,\"__esModule\",{value:!0});ur.printBinary=void 0;var Tu=h((i=\"\",e)=>{let t=e[0],r=e[1],s=\"\";return t&&(s+=`\n`+i+\"\\u2190 \"+t(i+\" \")),r&&(s+=`\n`+i+\"\\u2192 \"+r(i+\" \")),s},\"printBinary\");ur.printBinary=Tu});var zn=g(hr=>{\"use strict\";p();Object.defineProperty(hr,\"__esModule\",{value:!0});hr.printJson=void 0;var Nu=h((i=\"\",e,t=2)=>(JSON.stringify(e,null,t)||\"nil\").split(`\n`).join(`\n`+i),\"printJson\");hr.printJson=Nu});var Hn=g(mt=>{\"use strict\";p();Object.defineProperty(mt,\"__esModule\",{value:!0});var Fi=(he(),ie(ue));Fi.__exportStar(Jn(),mt);Fi.__exportStar(Vn(),mt);Fi.__exportStar(zn(),mt)});var Yn=g(yt=>{\"use strict\";p();Object.defineProperty(yt,\"__esModule\",{value:!0});yt.toTreeSync=void 0;var Ru=Hn(),Fu=B(),Au=h((i,e={})=>{let t=e.separator||\"/\",r=e.dir||t;r[r.length-1]!==t&&(r+=t);let s=e.tab||\"\",n=e.depth??10,c=e.sort??!0,f=\" (...)\";if(n>0){let a=i.readdirSync(r,{withFileTypes:!0});c&&a.sort((u,l)=>u.isDirectory()&&l.isDirectory()?u.name.toString().localeCompare(l.name.toString()):u.isDirectory()?-1:l.isDirectory()?1:u.name.toString().localeCompare(l.name.toString())),f=(0,Ru.printTree)(s,a.map(u=>l=>u.isDirectory()?(0,yt.toTreeSync)(i,{dir:r+u.name,depth:n-1,tab:l}):u.isSymbolicLink()?\"\"+u.name+\" \\u2192 \"+i.readlinkSync(r+u.name):\"\"+u.name))}return(0,Fu.basename)(r,t)+t+f},\"toTreeSync\");yt.toTreeSync=Au});var Qn=g(Kn=>{\"use strict\";p();Object.defineProperty(Kn,\"__esModule\",{value:!0})});var $n=g(fr=>{\"use strict\";p();Object.defineProperty(fr,\"__esModule\",{value:!0});fr.Slice=void 0;var Ai=class{static{h(this,\"Slice\")}constructor(e,t,r,s){this.uint8=e,this.view=t,this.start=r,this.end=s}subarray(){return this.uint8.subarray(this.start,this.end)}};fr.Slice=Ai});var Ii=g(lr=>{\"use strict\";p();Object.defineProperty(lr,\"__esModule\",{value:!0});lr.Writer=void 0;var Cu=$n(),Iu=new Uint8Array([]),Pu=new DataView(Iu.buffer),eo=typeof Buffer==\"function\",Xn=eo?Buffer.prototype.utf8Write:null,Zn=eo?Buffer.from:null,Gn=typeof TextEncoder<\"u\"?new TextEncoder:null,Ci=class{static{h(this,\"Writer\")}constructor(e=64*1024){this.allocSize=e,this.view=Pu,this.x0=0,this.x=0,this.uint8=new Uint8Array(e),this.size=e,this.view=new DataView(this.uint8.buffer)}grow(e){let t=this.x0,r=this.x,s=this.uint8,n=new Uint8Array(e),c=new DataView(n.buffer),f=s.subarray(t,r);n.set(f,0),this.x=r-t,this.x0=0,this.uint8=n,this.size=e,this.view=c}ensureCapacity(e){let t=this.size,r=t-this.x;if(r<e){let s=t-this.x0,n=e-r,c=s+n;this.grow(c<=this.allocSize?this.allocSize:c*2)}}move(e){this.ensureCapacity(e),this.x+=e}reset(){this.x0=this.x}newBuffer(e){let t=this.uint8=new Uint8Array(e);this.size=e,this.view=new DataView(t.buffer),this.x=this.x0=0}flush(){let e=this.uint8.subarray(this.x0,this.x);return this.x0=this.x,e}flushSlice(){let e=new Cu.Slice(this.uint8,this.view,this.x0,this.x);return this.x0=this.x,e}u8(e){this.ensureCapacity(1),this.uint8[this.x++]=e}u16(e){this.ensureCapacity(2),this.view.setUint16(this.x,e),this.x+=2}u32(e){this.ensureCapacity(4),this.view.setUint32(this.x,e),this.x+=4}i32(e){this.ensureCapacity(4),this.view.setInt32(this.x,e),this.x+=4}u64(e){this.ensureCapacity(8),this.view.setBigUint64(this.x,BigInt(e)),this.x+=8}f64(e){this.ensureCapacity(8),this.view.setFloat64(this.x,e),this.x+=8}u8u16(e,t){this.ensureCapacity(3);let r=this.x;this.uint8[r++]=e,this.uint8[r++]=t>>>8,this.uint8[r++]=t&255,this.x=r}u8u32(e,t){this.ensureCapacity(5);let r=this.x;this.uint8[r++]=e,this.view.setUint32(r,t),this.x=r+4}u8u64(e,t){this.ensureCapacity(9);let r=this.x;this.uint8[r++]=e,this.view.setBigUint64(r,BigInt(t)),this.x=r+8}u8f32(e,t){this.ensureCapacity(5);let r=this.x;this.uint8[r++]=e,this.view.setFloat32(r,t),this.x=r+4}u8f64(e,t){this.ensureCapacity(9);let r=this.x;this.uint8[r++]=e,this.view.setFloat64(r,t),this.x=r+8}buf(e,t){this.ensureCapacity(t);let r=this.x;this.uint8.set(e,r),this.x=r+t}utf8(e){let t=e.length*4;if(t<168)return this.utf8Native(e);this.ensureCapacity(t);let r=this.size-this.x;if(Xn){let s=Xn.call(this.uint8,e,this.x,r);return this.x+=s,s}else if(Zn){let s=this.uint8,n=s.byteOffset+this.x,f=Zn(s.buffer).subarray(n,n+r).write(e,0,r,\"utf8\");return this.x+=f,f}else if(t>1024&&Gn){let s=Gn.encodeInto(e,this.uint8.subarray(this.x,this.x+r)).written;return this.x+=s,s}return this.utf8Native(e)}utf8Native(e){let t=e.length,r=this.uint8,s=this.x,n=0;for(;n<t;){let f=e.charCodeAt(n++);if((f&4294967168)===0){r[s++]=f;continue}else if((f&4294965248)===0)r[s++]=f>>6&31|192;else{if(f>=55296&&f<=56319&&n<t){let o=e.charCodeAt(n);(o&64512)===56320&&(n++,f=((f&1023)<<10)+(o&1023)+65536)}(f&4294901760)===0?(r[s++]=f>>12&15|224,r[s++]=f>>6&63|128):(r[s++]=f>>18&7|240,r[s++]=f>>12&63|128,r[s++]=f>>6&63|128)}r[s++]=f&63|128}let c=s-this.x;return this.x=s,c}ascii(e){let t=e.length;this.ensureCapacity(t);let r=this.uint8,s=this.x,n=0;for(;n<t;)r[s++]=e.charCodeAt(n++);this.x=s}};lr.Writer=Ci});var wt=g(Ge=>{\"use strict\";p();Object.defineProperty(Ge,\"__esModule\",{value:!0});Ge.validateEntryName=Ge.writer=void 0;var ju=Ii();Ge.writer=new ju.Writer(1024*32);var Du=h(i=>{if(!i||i===\".\"||i===\"..\"||i.indexOf(\"/\")!==-1||i.indexOf(\"\\\\\")!==-1)throw new Error(`Invalid snapshot entry name: ${JSON.stringify(i)}`)},\"validateEntryName\");Ge.validateEntryName=Du});var dr=g(Ae=>{\"use strict\";p();Object.defineProperty(Ae,\"__esModule\",{value:!0});Ae.fromSnapshotSync=Ae.toSnapshotSync=void 0;var Bu=wt(),Mu=h(({fs:i,path:e=\"/\",separator:t=\"/\"})=>{let r=i.lstatSync(e);if(r.isDirectory()){let s=i.readdirSync(e),n={},c=e.endsWith(t)?e:e+t;for(let f of s){let o=(0,Ae.toSnapshotSync)({fs:i,path:`${c}${f}`,separator:t});o&&(n[\"\"+f]=o)}return[0,{},n]}else if(r.isFile()){let s=i.readFileSync(e),n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);return[1,{},n]}else if(r.isSymbolicLink())return[2,{target:i.readlinkSync(e).toString()}];return null},\"toSnapshotSync\");Ae.toSnapshotSync=Mu;var Lu=h((i,{fs:e,path:t=\"/\",separator:r=\"/\"})=>{if(i)switch(i[0]){case 0:{t.endsWith(r)||(t=t+r);let[,,s]=i;e.mkdirSync(t,{recursive:!0});for(let[n,c]of Object.entries(s))(0,Bu.validateEntryName)(n),(0,Ae.fromSnapshotSync)(c,{fs:e,path:`${t}${n}`,separator:r});break}case 1:{let[,,s]=i;e.writeFileSync(t,s);break}case 2:{let[,{target:s}]=i;e.symlinkSync(s,t);break}}},\"fromSnapshotSync\");Ae.fromSnapshotSync=Lu});var ro=g(pr=>{\"use strict\";p();Object.defineProperty(pr,\"__esModule\",{value:!0});pr.isFloat32=void 0;var to=new DataView(new ArrayBuffer(4)),qu=h(i=>(to.setFloat32(0,i),i===to.getFloat32(0)),\"isFloat32\");pr.isFloat32=qu});var ji=g(mr=>{\"use strict\";p();Object.defineProperty(mr,\"__esModule\",{value:!0});mr.JsonPackExtension=void 0;var Pi=class{static{h(this,\"JsonPackExtension\")}constructor(e,t){this.tag=e,this.val=t}};mr.JsonPackExtension=Pi});var io=g(yr=>{\"use strict\";p();Object.defineProperty(yr,\"__esModule\",{value:!0});yr.CborEncoderFast=void 0;var Uu=Ii(),Wu=Number.isSafeInteger,Di=class{static{h(this,\"CborEncoderFast\")}constructor(e=new Uu.Writer){this.writer=e}encode(e){return this.writeAny(e),this.writer.flush()}writeAny(e){switch(typeof e){case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"boolean\":return this.writer.u8(244+ +e);case\"object\":return e?e.constructor===Array?this.writeArr(e):this.writeObj(e):this.writer.u8(246)}}writeCbor(){this.writer.u8u16(217,55799)}writeEnd(){this.writer.u8(255)}writeNull(){this.writer.u8(246)}writeBoolean(e){e?this.writer.u8(245):this.writer.u8(244)}writeNumber(e){Wu(e)?this.writeInteger(e):typeof e==\"bigint\"?this.writeBigInt(e):this.writeFloat(e)}writeBigInt(e){e>=0?this.writeBigUint(e):this.writeBigSint(e)}writeBigUint(e){if(e<=Number.MAX_SAFE_INTEGER)return this.writeUInteger(Number(e));this.writer.u8u64(27,e)}writeBigSint(e){if(e>=Number.MIN_SAFE_INTEGER)return this.encodeNint(Number(e));let t=-BigInt(1)-e;this.writer.u8u64(59,t)}writeInteger(e){e>=0?this.writeUInteger(e):this.encodeNint(e)}writeUInteger(e){let t=this.writer;t.ensureCapacity(9);let r=t.uint8,s=t.x;e<=23?r[s++]=0+e:e<=255?(r[s++]=24,r[s++]=e):e<=65535?(r[s++]=25,t.view.setUint16(s,e),s+=2):e<=4294967295?(r[s++]=26,t.view.setUint32(s,e),s+=4):(r[s++]=27,t.view.setBigUint64(s,BigInt(e)),s+=8),t.x=s}encodeNumber(e){this.writeNumber(e)}encodeInteger(e){this.writeInteger(e)}encodeUint(e){this.writeUInteger(e)}encodeNint(e){let t=-1-e,r=this.writer;r.ensureCapacity(9);let s=r.uint8,n=r.x;t<24?s[n++]=32+t:t<=255?(s[n++]=56,s[n++]=t):t<=65535?(s[n++]=57,r.view.setUint16(n,t),n+=2):t<=4294967295?(s[n++]=58,r.view.setUint32(n,t),n+=4):(s[n++]=59,r.view.setBigUint64(n,BigInt(t)),n+=8),r.x=n}writeFloat(e){this.writer.u8f64(251,e)}writeBin(e){let t=e.length;this.writeBinHdr(t),this.writer.buf(e,t)}writeBinHdr(e){let t=this.writer;e<=23?t.u8(64+e):e<=255?t.u16(22528+e):e<=65535?t.u8u16(89,e):e<=4294967295?t.u8u32(90,e):t.u8u64(91,e)}writeStr(e){let t=this.writer,s=e.length*4;t.ensureCapacity(5+s);let n=t.uint8,c=t.x;s<=23?t.x++:s<=255?(n[t.x++]=120,c=t.x,t.x++):s<=65535?(n[t.x++]=121,c=t.x,t.x+=2):(n[t.x++]=122,c=t.x,t.x+=4);let f=t.utf8(e);s<=23?n[c]=96+f:s<=255?n[c]=f:s<=65535?t.view.setUint16(c,f):t.view.setUint32(c,f)}writeStrHdr(e){let t=this.writer;e<=23?t.u8(96+e):e<=255?t.u16(30720+e):e<=65535?t.u8u16(121,e):t.u8u32(122,e)}writeAsciiStr(e){this.writeStrHdr(e.length),this.writer.ascii(e)}writeArr(e){let t=e.length;this.writeArrHdr(t);for(let r=0;r<t;r++)this.writeAny(e[r])}writeArrHdr(e){let t=this.writer;e<=23?t.u8(128+e):e<=255?t.u16(38912+e):e<=65535?t.u8u16(153,e):e<=4294967295?t.u8u32(154,e):t.u8u64(155,e)}writeObj(e){let t=Object.keys(e),r=t.length;this.writeObjHdr(r);for(let s=0;s<r;s++){let n=t[s];this.writeStr(n),this.writeAny(e[n])}}writeObjHdr(e){let t=this.writer;e<=23?t.u8(160+e):e<=255?t.u16(47104+e):e<=65535?t.u8u16(185,e):e<=4294967295?t.u8u32(186,e):t.u8u64(187,e)}writeMapHdr(e){this.writeObjHdr(e)}writeStartMap(){this.writer.u8(191)}writeTag(e,t){this.writeTagHdr(e),this.writeAny(t)}writeTagHdr(e){let t=this.writer;e<=23?t.u8(192+e):e<=255?t.u16(55296+e):e<=65535?t.u8u16(217,e):e<=4294967295?t.u8u32(218,e):t.u8u64(219,e)}writeTkn(e){let t=this.writer;e<=23?t.u8(224+e):e<=255&&t.u16(63488+e)}writeStartStr(){this.writer.u8(127)}writeStrChunk(e){throw new Error(\"Not implemented\")}writeEndStr(){throw new Error(\"Not implemented\")}writeStartBin(){this.writer.u8(95)}writeBinChunk(e){throw new Error(\"Not implemented\")}writeEndBin(){throw new Error(\"Not implemented\")}writeStartArr(){this.writer.u8(159)}writeArrChunk(e){throw new Error(\"Not implemented\")}writeEndArr(){this.writer.u8(255)}writeStartObj(){this.writer.u8(191)}writeObjChunk(e,t){throw new Error(\"Not implemented\")}writeEndObj(){this.writer.u8(255)}};yr.CborEncoderFast=Di});var _r=g(wr=>{\"use strict\";p();Object.defineProperty(wr,\"__esModule\",{value:!0});wr.JsonPackValue=void 0;var Bi=class{static{h(this,\"JsonPackValue\")}constructor(e){this.val=e}};wr.JsonPackValue=Bi});var so=g(br=>{\"use strict\";p();Object.defineProperty(br,\"__esModule\",{value:!0});br.CborEncoder=void 0;var Ju=ro(),Vu=ji(),zu=io(),Hu=_r(),Mi=class extends zu.CborEncoderFast{static{h(this,\"CborEncoder\")}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"boolean\":return this.writer.u8(244+ +e);case\"object\":{if(!e)return this.writer.u8(246);switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);case Map:return this.writeMap(e);case Vu.JsonPackExtension:return this.writeTag(e.tag,e.val);case Hu.JsonPackValue:{let r=e.val;return this.writer.buf(r,r.length)}default:return e instanceof Uint8Array?this.writeBin(e):Array.isArray(e)?this.writeArr(e):e instanceof Map?this.writeMap(e):this.writeUnknown(e)}}case\"undefined\":return this.writeUndef();case\"bigint\":return this.writeBigInt(e);default:return this.writeUnknown(e)}}writeFloat(e){(0,Ju.isFloat32)(e)?this.writer.u8f32(250,e):this.writer.u8f64(251,e)}writeMap(e){this.writeMapHdr(e.size),e.forEach((t,r)=>{this.writeAny(r),this.writeAny(t)})}writeUndef(){this.writer.u8(247)}};br.CborEncoder=Mi});var no=g(gr=>{\"use strict\";p();Object.defineProperty(gr,\"__esModule\",{value:!0});gr.decodeF16=void 0;var Yu=Math.pow,Ku=h(i=>{let e=(i&31744)>>10,t=i&1023;return(i>>15?-1:1)*(e?e===31?t?NaN:1/0:Yu(2,e-15)*(1+t/1024):6103515625e-14*(t/1024))},\"decodeF16\");gr.decodeF16=Ku});var oo=g(et=>{\"use strict\";p();Object.defineProperty(et,\"__esModule\",{value:!0});et.decodeAsciiMax15=et.decodeAscii=void 0;var U=String.fromCharCode,Qu=h((i,e,t)=>{let r=[];for(let s=0;s<t;s++){let n=i[e++];if(n&128)return;r.push(n)}return U.apply(String,r)},\"decodeAscii\");et.decodeAscii=Qu;var $u=h((i,e,t)=>{if(t<4)if(t<2){if(t===0)return\"\";{let r=i[e++];if((r&128)>1){e-=1;return}return U(r)}}else{let r=i[e++],s=i[e++];if((r&128)>0||(s&128)>0){e-=2;return}if(t<3)return U(r,s);let n=i[e++];if((n&128)>0){e-=3;return}return U(r,s,n)}else{let r=i[e++],s=i[e++],n=i[e++],c=i[e++];if((r&128)>0||(s&128)>0||(n&128)>0||(c&128)>0){e-=4;return}if(t<6){if(t===4)return U(r,s,n,c);{let f=i[e++];if((f&128)>0){e-=5;return}return U(r,s,n,c,f)}}else if(t<8){let f=i[e++],o=i[e++];if((f&128)>0||(o&128)>0){e-=6;return}if(t<7)return U(r,s,n,c,f,o);let a=i[e++];if((a&128)>0){e-=7;return}return U(r,s,n,c,f,o,a)}else{let f=i[e++],o=i[e++],a=i[e++],u=i[e++];if((f&128)>0||(o&128)>0||(a&128)>0||(u&128)>0){e-=8;return}if(t<10){if(t===8)return U(r,s,n,c,f,o,a,u);{let l=i[e++];if((l&128)>0){e-=9;return}return U(r,s,n,c,f,o,a,u,l)}}else if(t<12){let l=i[e++],d=i[e++];if((l&128)>0||(d&128)>0){e-=10;return}if(t<11)return U(r,s,n,c,f,o,a,u,l,d);let m=i[e++];if((m&128)>0){e-=11;return}return U(r,s,n,c,f,o,a,u,l,d,m)}else{let l=i[e++],d=i[e++],m=i[e++],y=i[e++];if((l&128)>0||(d&128)>0||(m&128)>0||(y&128)>0){e-=12;return}if(t<14){if(t===12)return U(r,s,n,c,f,o,a,u,l,d,m,y);{let b=i[e++];if((b&128)>0){e-=13;return}return U(r,s,n,c,f,o,a,u,l,d,m,y,b)}}else{let b=i[e++],S=i[e++];if((b&128)>0||(S&128)>0){e-=14;return}if(t<15)return U(r,s,n,c,f,o,a,u,l,d,m,y,b,S);let v=i[e++];if((v&128)>0){e-=15;return}return U(r,s,n,c,f,o,a,u,l,d,m,y,b,S,v)}}}}},\"decodeAsciiMax15\");et.decodeAsciiMax15=$u});var co=g(Li=>{\"use strict\";p();Object.defineProperty(Li,\"__esModule\",{value:!0});var Xu=String.fromCharCode;Li.default=(i,e,t)=>{let r=e,s=r+t,n=[];for(;r<s;){let c=i[r++];if((c&128)!==0){let f=i[r++]&63;if((c&224)===192)c=(c&31)<<6|f;else{let o=i[r++]&63;if((c&240)===224)c=(c&31)<<12|f<<6|o;else if((c&248)===240){let a=i[r++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;c=56320|u&1023,n.push(l)}else c=u}}}n.push(c)}return Xu.apply(String,n)}});var lo=g(Ui=>{\"use strict\";p();Object.defineProperty(Ui,\"__esModule\",{value:!0});var Zu=(he(),ie(ue)),ho=oo(),qi=Zu.__importDefault(co()),fo=typeof Buffer<\"u\",ao=fo?Buffer.prototype.utf8Slice:null,uo=fo?Buffer.from:null,Gu=h((i,e,t)=>(0,ho.decodeAsciiMax15)(i,e,t)??(0,qi.default)(i,e,t),\"shortDecoder\"),eh=h((i,e,t)=>(0,ho.decodeAscii)(i,e,t)??(0,qi.default)(i,e,t),\"midDecoder\"),th=ao?(i,e,t)=>ao.call(i,e,e+t):uo?(i,e,t)=>uo(i).subarray(e,e+t).toString(\"utf8\"):qi.default,rh=h((i,e,t)=>t<16?Gu(i,e,t):t<32?eh(i,e,t):th(i,e,t),\"decoder\");Ui.default=rh});var Wi=g(Sr=>{\"use strict\";p();Object.defineProperty(Sr,\"__esModule\",{value:!0});Sr.decodeUtf8=void 0;var ih=(he(),ie(ue)),sh=ih.__importDefault(lo());Sr.decodeUtf8=sh.default});var Vi=g(Er=>{\"use strict\";p();Object.defineProperty(Er,\"__esModule\",{value:!0});Er.Reader=void 0;var nh=Wi(),Ji=class i{static{h(this,\"Reader\")}constructor(e=new Uint8Array([]),t=new DataView(e.buffer,e.byteOffset,e.length),r=0,s=e.length){this.uint8=e,this.view=t,this.x=r,this.end=s}reset(e){this.x=0,this.uint8=e,this.view=new DataView(e.buffer,e.byteOffset,e.length)}size(){return this.end-this.x}peek(){return this.view.getUint8(this.x)}peak(){return this.peek()}skip(e){this.x+=e}buf(e=this.size()){let t=this.x,r=t+e,s=this.uint8.subarray(t,r);return this.x=r,s}subarray(e=0,t){let r=this.x,s=r+e,n=typeof t==\"number\"?r+t:this.end;return this.uint8.subarray(s,n)}slice(e=0,t){let r=this.x,s=r+e,n=typeof t==\"number\"?r+t:this.end;return new i(this.uint8,this.view,s,n)}cut(e=this.size()){let t=this.slice(0,e);return this.skip(e),t}u8(){return this.uint8[this.x++]}i8(){return this.view.getInt8(this.x++)}u16(){let e=this.x,t=(this.uint8[e++]<<8)+this.uint8[e++];return this.x=e,t}i16(){let e=this.view.getInt16(this.x);return this.x+=2,e}u32(){let e=this.view.getUint32(this.x);return this.x+=4,e}i32(){let e=this.view.getInt32(this.x);return this.x+=4,e}u64(){let e=this.view.getBigUint64(this.x);return this.x+=8,e}i64(){let e=this.view.getBigInt64(this.x);return this.x+=8,e}f32(){let e=this.x;return this.x+=4,this.view.getFloat32(e)}f64(){let e=this.x;return this.x+=8,this.view.getFloat64(e)}utf8(e){let t=this.x;return this.x+=e,(0,nh.decodeUtf8)(this.uint8,t,e)}ascii(e){let t=this.uint8,r=\"\",s=this.x+e;for(let n=this.x;n<s;n++)r+=String.fromCharCode(t[n]);return this.x=s,r}};Er.Reader=Ji});var po=g(zi=>{\"use strict\";p();Object.defineProperty(zi,\"__esModule\",{value:!0});var tt=String.fromCharCode;zi.default=(i,e,t)=>{let r=e,s=r+t,n=\"\";for(;r<s;){let c=i[r++];if((c&128)===0){n+=tt(c);continue}let f=i[r++]&63;if((c&224)===192){n+=tt((c&31)<<6|f);continue}let o=i[r++]&63;if((c&240)===224){n+=tt((c&31)<<12|f<<6|o);continue}if((c&248)===240){let a=i[r++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;u=56320|u&1023,n+=tt(l,u)}else n+=tt(u)}else n+=tt(c)}return n}});var mo=g(Or=>{\"use strict\";p();Object.defineProperty(Or,\"__esModule\",{value:!0});Or.CachedUtf8Decoder=void 0;var oh=(he(),ie(ue)),ch=oh.__importDefault(po()),Me=1+Math.round(Math.random()*((-1>>>0)-1));function ah(i,e){return Me^=Me<<13,Me^=Me>>>17,Me^=Me<<5,(Me>>>0)%(e-i+1)+i}h(ah,\"randomU32\");var Hi=class{static{h(this,\"CacheItem\")}constructor(e,t){this.bytes=e,this.value=t}},Yi=class{static{h(this,\"CachedUtf8Decoder\")}constructor(){this.caches=[];for(let e=0;e<31;e++)this.caches.push([])}get(e,t,r){let s=this.caches[r-1],n=s.length;e:for(let c=0;c<n;c++){let f=s[c],o=f.bytes;for(let a=0;a<r;a++)if(o[a]!==e[t+a])continue e;return f.value}return null}store(e,t){let r=this.caches[e.length-1],s=new Hi(e,t);r.length>=16?r[ah(0,15)]=s:r.push(s)}decode(e,t,r){if(!r)return\"\";let s=this.get(e,t,r);if(s!==null)return s;let n=(0,ch.default)(e,t,r),c=Uint8Array.prototype.slice.call(e,t,t+r);return this.store(c,n),n}};Or.CachedUtf8Decoder=Yi});var yo=g(Ki=>{\"use strict\";p();Object.defineProperty(Ki,\"__esModule\",{value:!0});var uh=mo();Ki.default=new uh.CachedUtf8Decoder});var _o=g(xr=>{\"use strict\";p();Object.defineProperty(xr,\"__esModule\",{value:!0});xr.CborDecoderBase=void 0;var hh=(he(),ie(ue)),fh=no(),lh=ji(),wo=_r(),dh=Vi(),ph=hh.__importDefault(yo()),Qi=class{static{h(this,\"CborDecoderBase\")}constructor(e=new dh.Reader,t=ph.default){this.reader=e,this.keyDecoder=t}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}val(){return this.readAny()}readAny(){let t=this.reader.u8(),r=t>>5,s=t&31;return r<4?r<2?r===0?this.readUint(s):this.readNint(s):r===2?this.readBin(s):this.readStr(s):r<6?r===4?this.readArr(s):this.readObj(s):r===6?this.readTag(s):this.readTkn(s)}readAnyRaw(e){let t=e>>5,r=e&31;return t<4?t<2?t===0?this.readUint(r):this.readNint(r):t===2?this.readBin(r):this.readStr(r):t<6?t===4?this.readArr(r):this.readObj(r):t===6?this.readTag(r):this.readTkn(r)}readMinorLen(e){if(e<24)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1;default:throw 1}}readUint(e){if(e<25)return e===24?this.reader.u8():e;if(e<27)return e===25?this.reader.u16():this.reader.u32();{let t=this.reader.u64();return t>9007199254740991?t:Number(t)}}readNint(e){if(e<25)return e===24?-this.reader.u8()-1:-e-1;if(e<27)return e===25?-this.reader.u16()-1:-this.reader.u32()-1;{let t=this.reader.u64();return t>9007199254740991-1?-t-BigInt(1):-Number(t)-1}}readBin(e){let t=this.reader;if(e<=23)return t.buf(e);switch(e){case 24:return t.buf(t.u8());case 25:return t.buf(t.u16());case 26:return t.buf(t.u32());case 27:return t.buf(Number(t.u64()));case 31:{let r=0,s=[];for(;this.reader.peak()!==255;){let o=this.readBinChunk();r+=o.length,s.push(o)}this.reader.x++;let n=new Uint8Array(r),c=0,f=s.length;for(let o=0;o<f;o++){let a=s[o];n.set(a,c),c+=a.length}return n}default:throw 1}}readBinChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==2)throw 2;if(r>27)throw 3;return this.readBin(r)}readAsStr(){let t=this.reader.u8(),r=t>>5,s=t&31;if(r!==3)throw 11;return this.readStr(s)}readStr(e){let t=this.reader;if(e<=23)return t.utf8(e);switch(e){case 24:return t.utf8(t.u8());case 25:return t.utf8(t.u16());case 26:return t.utf8(t.u32());case 27:return t.utf8(Number(t.u64()));case 31:{let r=\"\";for(;t.peak()!==255;)r+=this.readStrChunk();return this.reader.x++,r}default:throw 1}}readStrLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());default:throw 1}}readStrChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)throw 4;if(r>27)throw 5;return this.readStr(r)}readArr(e){let t=this.readMinorLen(e);return t>=0?this.readArrRaw(t):this.readArrIndef()}readArrRaw(e){let t=[];for(let r=0;r<e;r++)t.push(this.readAny());return t}readArrIndef(){let e=[];for(;this.reader.peak()!==255;)e.push(this.readAny());return this.reader.x++,e}readObj(e){if(e<28){let t=e;switch(e){case 24:t=this.reader.u8();break;case 25:t=this.reader.u16();break;case 26:t=this.reader.u32();break;case 27:t=Number(this.reader.u64());break}let r={};for(let s=0;s<t;s++){let n=this.key();if(n===\"__proto__\")throw 6;let c=this.readAny();r[n]=c}return r}else{if(e===31)return this.readObjIndef();throw 1}}readObjRaw(e){let t={};for(let r=0;r<e;r++){let s=this.key(),n=this.readAny();t[s]=n}return t}readObjIndef(){let e={};for(;this.reader.peak()!==255;){let t=this.key();if(this.reader.peak()===255)throw 7;let r=this.readAny();e[t]=r}return this.reader.x++,e}key(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)return String(this.readAnyRaw(e));let s=this.readStrLen(r);if(s>31)return this.reader.utf8(s);let n=this.keyDecoder.decode(this.reader.uint8,this.reader.x,s);return this.reader.skip(s),n}readTag(e){if(e<=23)return this.readTagRaw(e);switch(e){case 24:return this.readTagRaw(this.reader.u8());case 25:return this.readTagRaw(this.reader.u16());case 26:return this.readTagRaw(this.reader.u32());case 27:return this.readTagRaw(Number(this.reader.u64()));default:throw 1}}readTagRaw(e){return new lh.JsonPackExtension(e,this.readAny())}readTkn(e){switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 24:return new wo.JsonPackValue(this.reader.u8());case 25:return this.f16();case 26:return this.reader.f32();case 27:return this.reader.f64()}if(e<=23)return new wo.JsonPackValue(e);throw 1}f16(){return(0,fh.decodeF16)(this.reader.u16())}};xr.CborDecoderBase=Qi});var bo=g(vr=>{\"use strict\";p();Object.defineProperty(vr,\"__esModule\",{value:!0});vr.CborDecoder=void 0;var mh=_o(),yh=_r(),$i=class extends mh.CborDecoderBase{static{h(this,\"CborDecoder\")}readAsMap(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t===5)return this.readMap(r);throw 0}readMap(e){let t=this.readMinorLen(e);return t>=0?this.readMapRaw(t):this.readMapIndef()}readMapRaw(e){let t=new Map;for(let r=0;r<e;r++){let s=this.readAny(),n=this.readAny();t.set(s,n)}return t}readMapIndef(){let e=new Map;for(;this.reader.peak()!==255;){let t=this.readAny();if(this.reader.peak()===255)throw 7;let r=this.readAny();e.set(t,r)}return this.reader.x++,e}skipN(e){for(let t=0;t<e;t++)this.skipAny()}skipAny(){this.skipAnyRaw(this.reader.u8())}skipAnyRaw(e){let t=e>>5,r=e&31;switch(t){case 0:case 1:this.skipUNint(r);break;case 2:this.skipBin(r);break;case 3:this.skipStr(r);break;case 4:this.skipArr(r);break;case 5:this.skipObj(r);break;case 7:this.skipTkn(r);break;case 6:this.skipTag(r);break}}skipMinorLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1;default:throw 1}}skipUNint(e){if(!(e<=23))switch(e){case 24:return this.reader.skip(1);case 25:return this.reader.skip(2);case 26:return this.reader.skip(4);case 27:return this.reader.skip(8);default:throw 1}}skipBin(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;this.reader.peak()!==255;)this.skipBinChunk();this.reader.x++}}skipBinChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==2)throw 2;if(r>27)throw 3;this.skipBin(r)}skipStr(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;this.reader.peak()!==255;)this.skipStrChunk();this.reader.x++}}skipStrChunk(){let e=this.reader.u8(),t=e>>5,r=e&31;if(t!==3)throw 4;if(r>27)throw 5;this.skipStr(r)}skipArr(e){let t=this.skipMinorLen(e);if(t>=0)this.skipN(t);else{for(;this.reader.peak()!==255;)this.skipAny();this.reader.x++}}skipObj(e){let t=this.readMinorLen(e);if(t>=0)return this.skipN(t*2);for(;this.reader.peak()!==255;){if(this.skipAny(),this.reader.peak()===255)throw 7;this.skipAny()}this.reader.x++}skipTag(e){if(this.skipMinorLen(e)<0)throw 1;this.skipAny()}skipTkn(e){switch(e){case 24:this.reader.skip(1);return;case 25:this.reader.skip(2);return;case 26:this.reader.skip(4);return;case 27:this.reader.skip(8);return}if(!(e<=23))throw 1}validate(e,t=0,r=e.length){this.reader.reset(e),this.reader.x=t;let s=t;if(this.skipAny(),this.reader.x-s!==r)throw 8}decodeLevel(e){return this.reader.reset(e),this.readLevel()}readLevel(){let e=this.reader.u8(),t=e>>5,r=e&31;switch(t){case 4:return this.readArrLevel(r);case 5:return this.readObjLevel(r);default:return super.readAnyRaw(e)}}readPrimitiveOrVal(){switch(this.reader.peak()>>5){case 4:case 5:return this.readAsValue();default:return this.readAny()}}readAsValue(){let e=this.reader,t=e.x;this.skipAny();let r=e.x;return new yh.JsonPackValue(e.uint8.subarray(t,r))}readObjLevel(e){let t=this.readMinorLen(e);return t>=0?this.readObjRawLevel(t):this.readObjIndefLevel()}readObjRawLevel(e){let t={};for(let r=0;r<e;r++){let s=this.key(),n=this.readPrimitiveOrVal();t[s]=n}return t}readObjIndefLevel(){let e={};for(;this.reader.peak()!==255;){let t=this.key();if(this.reader.peak()===255)throw 7;let r=this.readPrimitiveOrVal();e[t]=r}return this.reader.x++,e}readArrLevel(e){let t=this.readMinorLen(e);return t>=0?this.readArrRawLevel(t):this.readArrIndefLevel()}readArrRawLevel(e){let t=[];for(let r=0;r<e;r++)t.push(this.readPrimitiveOrVal());return t}readArrIndefLevel(){let e=[];for(;this.reader.peak()!==255;)e.push(this.readPrimitiveOrVal());return this.reader.x++,e}readHdr(e){let t=this.reader.u8();if(t>>5!==e)throw 0;let s=t&31;if(s<24)return s;switch(s){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return-1}throw 1}readStrHdr(){return this.readHdr(3)}readObjHdr(){return this.readHdr(5)}readArrHdr(){return this.readHdr(4)}findKey(e){let t=this.readObjHdr();for(let r=0;r<t;r++){if(this.key()===e)return this;this.skipAny()}throw 9}findIndex(e){let t=this.readArrHdr();if(e>=t)throw 10;for(let r=0;r<e;r++)this.skipAny();return this}find(e){for(let t=0;t<e.length;t++){let r=e[t];typeof r==\"string\"?this.findKey(r):this.findIndex(r)}return this}};vr.CborDecoder=$i});var Xi=g(Ce=>{\"use strict\";p();Object.defineProperty(Ce,\"__esModule\",{value:!0});Ce.fromSnapshot=Ce.toSnapshot=void 0;var wh=wt(),_h=h(async({fs:i,path:e=\"/\",separator:t=\"/\"})=>{let r=await i.lstat(e);if(r.isDirectory()){let s=await i.readdir(e),n={},c=e.endsWith(t)?e:e+t,f=await Promise.all(s.map(o=>(0,Ce.toSnapshot)({fs:i,path:`${c}${o}`,separator:t})));for(let o=0;o<s.length;o++)f[o]&&(n[\"\"+s[o]]=f[o]);return[0,{},n]}else if(r.isFile()){let s=await i.readFile(e),n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);return[1,{},n]}else if(r.isSymbolicLink())return[2,{target:await i.readlink(e,{encoding:\"utf8\"})}];return null},\"toSnapshot\");Ce.toSnapshot=_h;var bh=h(async(i,{fs:e,path:t=\"/\",separator:r=\"/\"})=>{if(i)switch(i[0]){case 0:{t.endsWith(r)||(t=t+r);let[,,s]=i;await e.mkdir(t,{recursive:!0});for(let[n,c]of Object.entries(s))(0,wh.validateEntryName)(n),await(0,Ce.fromSnapshot)(c,{fs:e,path:`${t}${n}`,separator:r});break}case 1:{let[,,s]=i;await e.writeFile(t,s);break}case 2:{let[,{target:s}]=i;await e.symlink(s,t);break}}},\"fromSnapshot\");Ce.fromSnapshot=bh});var xo=g(de=>{\"use strict\";p();Object.defineProperty(de,\"__esModule\",{value:!0});de.fromBinarySnapshot=de.toBinarySnapshot=de.fromBinarySnapshotSync=de.toBinarySnapshotSync=void 0;var gh=so(),Sh=bo(),go=dr(),So=Xi(),Eh=wt(),Eo=new gh.CborEncoder(Eh.writer),Oo=new Sh.CborDecoder,Oh=h(i=>{let e=(0,go.toSnapshotSync)(i);return Eo.encode(e)},\"toBinarySnapshotSync\");de.toBinarySnapshotSync=Oh;var xh=h((i,e)=>{let t=Oo.decode(i);(0,go.fromSnapshotSync)(t,e)},\"fromBinarySnapshotSync\");de.fromBinarySnapshotSync=xh;var vh=h(async i=>{let e=await(0,So.toSnapshot)(i);return Eo.encode(e)},\"toBinarySnapshot\");de.toBinarySnapshot=vh;var kh=h(async(i,e)=>{let t=Oo.decode(i);await(0,So.fromSnapshot)(t,e)},\"fromBinarySnapshot\");de.fromBinarySnapshot=kh});var Zi=g(rt=>{\"use strict\";p();Object.defineProperty(rt,\"__esModule\",{value:!0});rt.hasBuffer=rt.alphabet=void 0;rt.alphabet=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";rt.hasBuffer=typeof Buffer==\"function\"&&typeof Buffer.from==\"function\"});var vo=g(kr=>{\"use strict\";p();Object.defineProperty(kr,\"__esModule\",{value:!0});kr.createToBase64Bin=void 0;var Th=Zi(),Nh=h((i=Th.alphabet,e=\"=\")=>{if(i.length!==64)throw new Error(\"chars must be 64 characters long\");let t=i.split(\"\").map(f=>f.charCodeAt(0)),r=[];for(let f of t)for(let o of t){let a=(f<<8)+o;r.push(a)}let s=e.length===1,n=s?e.charCodeAt(0):0,c=s?n<<8|n:0;return(f,o,a,u,l)=>{let d=a%3,m=a-d;for(;o<m;o+=3){let y=f[o],b=f[o+1],S=f[o+2],v=y<<4|b>>4,R=(b&15)<<8|S;u.setInt32(l,(r[v]<<16)+r[R]),l+=4}if(d===1){let y=f[m];s?(u.setInt32(l,(r[y<<4]<<16)+c),l+=4):(u.setInt16(l,r[y<<4]),l+=2)}else if(d){let y=f[m],b=f[m+1],S=y<<4|b>>4,v=(b&15)<<2;s?(u.setInt32(l,(r[S]<<16)+(t[v]<<8)+n),l+=4):(u.setInt16(l,r[S]),l+=2,u.setInt8(l,t[v]),l+=1)}return l}},\"createToBase64Bin\");kr.createToBase64Bin=Nh});var ko=g(Tr=>{\"use strict\";p();Object.defineProperty(Tr,\"__esModule\",{value:!0});Tr.toBase64Bin=void 0;var Rh=vo();Tr.toBase64Bin=(0,Rh.createToBase64Bin)()});var To=g(Nr=>{\"use strict\";p();Object.defineProperty(Nr,\"__esModule\",{value:!0});Nr.JsonEncoder=void 0;var Fh=ko(),Gi=class{static{h(this,\"JsonEncoder\")}constructor(e){this.writer=e}encode(e){let t=this.writer;return t.reset(),this.writeAny(e),t.flush()}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case\"boolean\":return this.writeBoolean(e);case\"number\":return this.writeNumber(e);case\"string\":return this.writeStr(e);case\"object\":{if(e===null)return this.writeNull();switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);default:return e instanceof Uint8Array?this.writeBin(e):Array.isArray(e)?this.writeArr(e):this.writeUnknown(e)}}case\"undefined\":return this.writeUndef();default:return this.writeUnknown(e)}}writeNull(){this.writer.u32(1853189228)}writeUndef(){let e=this.writer;e.ensureCapacity(35);let r=e.view,s=e.x;r.setUint32(s,577003892),s+=4,r.setUint32(s,1631215984),s+=4,r.setUint32(s,1886153059),s+=4,r.setUint32(s,1635019119),s+=4,r.setUint32(s,1848599394),s+=4,r.setUint32(s,1869753442),s+=4,r.setUint32(s,1634952502),s+=4,r.setUint32(s,876296567),s+=4,r.setUint16(s,15677),s+=2,e.uint8[s++]=34,e.x=s}writeBoolean(e){e?this.writer.u32(1953658213):this.writer.u8u32(102,1634497381)}writeNumber(e){let t=e.toString();this.writer.ascii(t)}writeInteger(e){this.writeNumber(e>>0===e?e:Math.trunc(e))}writeUInteger(e){this.writeInteger(e<0?-e:e)}writeFloat(e){this.writeNumber(e)}writeBin(e){let t=this.writer,r=e.length;t.ensureCapacity(41+(r<<1));let s=t.view,n=t.x;s.setUint32(n,577003892),n+=4,s.setUint32(n,1631215984),n+=4,s.setUint32(n,1886153059),n+=4,s.setUint32(n,1635019119),n+=4,s.setUint32(n,1848602467),n+=4,s.setUint32(n,1952805933),n+=4,s.setUint32(n,1937011301),n+=4,s.setUint32(n,1634548578),n+=4,s.setUint32(n,1634952502),n+=4,s.setUint16(n,13356),n+=2,n=(0,Fh.toBase64Bin)(e,0,r,s,n),t.uint8[n++]=34,t.x=n}writeStr(e){let t=this.writer,r=e.length;if(t.ensureCapacity(r*4+2),r<256){let n=t.x,c=n,f=t.uint8;f[c++]=34;for(let o=0;o<r;o++){let a=e.charCodeAt(o);switch(a){case 34:case 92:f[c++]=92;break}if(a<32||a>126){t.x=n;let u=JSON.stringify(e);t.ensureCapacity(u.length*4+4),t.utf8(u);return}else f[c++]=a}f[c++]=34,t.x=c;return}let s=JSON.stringify(e);t.ensureCapacity(s.length*4+4),t.utf8(s)}writeAsciiStr(e){let t=e.length,r=this.writer;r.ensureCapacity(t*2+2);let s=r.uint8,n=r.x;s[n++]=34;for(let c=0;c<t;c++){let f=e.charCodeAt(c);switch(f){case 34:case 92:s[n++]=92;break}s[n++]=f}s[n++]=34,r.x=n}writeArr(e){let t=this.writer;t.u8(91);let s=e.length-1;for(let n=0;n<s;n++)this.writeAny(e[n]),t.u8(44);s>=0&&this.writeAny(e[s]),t.u8(93)}writeArrSeparator(){this.writer.u8(44)}writeObj(e){let t=this.writer,r=Object.keys(e),s=r.length;if(!s)return t.u16(31613);t.u8(123);for(let n=0;n<s;n++){let c=r[n],f=e[c];this.writeStr(c),t.u8(58),this.writeAny(f),t.u8(44)}t.uint8[t.x-1]=125}writeObjSeparator(){this.writer.u8(44)}writeObjKeySeparator(){this.writer.u8(58)}writeStartStr(){throw new Error(\"Method not implemented.\")}writeStrChunk(e){throw new Error(\"Method not implemented.\")}writeEndStr(){throw new Error(\"Method not implemented.\")}writeStartBin(){throw new Error(\"Method not implemented.\")}writeBinChunk(e){throw new Error(\"Method not implemented.\")}writeEndBin(){throw new Error(\"Method not implemented.\")}writeStartArr(){this.writer.u8(91)}writeArrChunk(e){throw new Error(\"Method not implemented.\")}writeEndArr(){this.writer.u8(93)}writeStartObj(){this.writer.u8(123)}writeObjChunk(e,t){throw new Error(\"Method not implemented.\")}writeEndObj(){this.writer.u8(125)}};Nr.JsonEncoder=Gi});var No=g(Rr=>{\"use strict\";p();Object.defineProperty(Rr,\"__esModule\",{value:!0});Rr.createFromBase64Bin=void 0;var Ah=Zi(),Ch=h((i=Ah.alphabet,e=\"=\")=>{if(i.length!==64)throw new Error(\"chars must be 64 characters long\");let t=0;for(let c=0;c<i.length;c++)t=Math.max(t,i.charCodeAt(c));let r=[];for(let c=0;c<=t;c+=1)r[c]=-1;for(let c=0;c<i.length;c++)r[i.charCodeAt(c)]=c;let n=e.length===1?e.charCodeAt(0):0;return(c,f,o)=>{if(!o)return new Uint8Array(0);let a=0;if(o%4!==0)a=4-o%4,o+=a;else{let W=f+o-1;c.getUint8(W)===n&&(a=1,o>1&&c.getUint8(W-1)===n&&(a=2))}if(o%4!==0)throw new Error(\"Base64 string length must be a multiple of 4\");let u=f+o-(a?4:0),l=(o>>2)*3-a,d=new Uint8Array(l),m=0,y=f;for(;y<u;y+=4){let I=c.getUint32(y),W=I>>>24,te=I>>>16&255,oe=I>>>8&255,ce=I&255,re=r[W],ae=r[te],Je=r[oe],St=r[ce];if(re<0||ae<0||Je<0||St<0)throw new Error(\"INVALID_BASE64_SEQ\");d[m]=re<<2|ae>>4,d[m+1]=ae<<4|Je>>2,d[m+2]=Je<<6|St,m+=3}if(!a)return d;if(a===1){let I=c.getUint16(u),W=I>>8,te=I&255,oe=c.getUint8(u+2),ce=r[W],re=r[te],ae=r[oe];if(ce<0||re<0||ae<0)throw new Error(\"INVALID_BASE64_SEQ\");return d[m]=ce<<2|re>>4,d[m+1]=re<<4|ae>>2,d}let b=c.getUint16(u),S=b>>8,v=b&255,R=r[S],j=r[v];if(R<0||j<0)throw new Error(\"INVALID_BASE64_SEQ\");return d[m]=R<<2|j>>4,d}},\"createFromBase64Bin\");Rr.createFromBase64Bin=Ch});var Ro=g(Fr=>{\"use strict\";p();Object.defineProperty(Fr,\"__esModule\",{value:!0});Fr.fromBase64Bin=void 0;var Ih=No();Fr.fromBase64Bin=(0,Ih.createFromBase64Bin)()});var Fo=g(Ar=>{\"use strict\";p();Object.defineProperty(Ar,\"__esModule\",{value:!0});Ar.findEndingQuote=void 0;var Ph=h((i,e)=>{let t=i.length,r=i[e],s=0;for(;e<t&&!(r===34&&s!==92);)r===92&&s===92?s=0:s=r,r=i[++e];if(e===t)throw new Error(\"Invalid JSON\");return e},\"findEndingQuote\");Ar.findEndingQuote=Ph});var Io=g(Le=>{\"use strict\";p();Object.defineProperty(Le,\"__esModule\",{value:!0});Le.JsonDecoder=Le.readKey=void 0;var jh=Wi(),Dh=Vi(),Ao=Ro(),es=Fo(),Bh=/\\\\(b|f|n|r|t|\"|\\/|\\\\)/g,Mh=h(i=>{switch(i){case\"\\\\b\":return\"\\b\";case\"\\\\f\":return\"\\f\";case\"\\\\n\":return`\n`;case\"\\\\r\":return\"\\r\";case\"\\\\t\":return\" \";case'\\\\\"':return'\"';case\"\\\\/\":return\"/\";case\"\\\\\\\\\":return\"\\\\\"}return i},\"escapedCharReplacer\"),Co=h((i,e)=>i[e]===100&&i[e+1]===97&&i[e+2]===116&&i[e+3]===97&&i[e+4]===58&&i[e+5]===97&&i[e+6]===112&&i[e+7]===112&&i[e+8]===108&&i[e+9]===105&&i[e+10]===99&&i[e+11]===97&&i[e+12]===116&&i[e+13]===105&&i[e+14]===111&&i[e+15]===110&&i[e+16]===47&&i[e+17]===111&&i[e+18]===99&&i[e+19]===116&&i[e+20]===101&&i[e+21]===116&&i[e+22]===45&&i[e+23]===115&&i[e+24]===116&&i[e+25]===114&&i[e+26]===101&&i[e+27]===97&&i[e+28]===109&&i[e+29]===59&&i[e+30]===98&&i[e+31]===97&&i[e+32]===115&&i[e+33]===101&&i[e+34]===54&&i[e+35]===52&&i[e+36]===44,\"hasBinaryPrefix\"),Lh=h((i,e)=>i[e++]===97&&i[e++]===116&&i[e++]===97&&i[e++]===58&&i[e++]===97&&i[e++]===112&&i[e++]===112&&i[e++]===108&&i[e++]===105&&i[e++]===99&&i[e++]===97&&i[e++]===116&&i[e++]===105&&i[e++]===111&&i[e++]===110&&i[e++]===47&&i[e++]===99&&i[e++]===98&&i[e++]===111&&i[e++]===114&&i[e++]===44&&i[e++]===98&&i[e++]===97&&i[e++]===115&&i[e++]===101&&i[e++]===54&&i[e++]===52&&i[e++]===59&&i[e++]===57&&i[e++]===119&&i[e++]===61&&i[e++]===61&&i[e++]===34,\"isUndefined\"),A=String.fromCharCode,qh=h(i=>{let e=i.uint8,t=e.length,r=[],s=i.x,n=0;for(;s<t;){let c=e[s++];if((c&128)===0)if(n===92){switch(c){case 98:c=8;break;case 102:c=12;break;case 110:c=10;break;case 114:c=13;break;case 116:c=9;break;case 34:c=34;break;case 47:c=47;break;case 92:c=92;break;default:throw new Error(\"Invalid JSON\")}n=0}else{if(c===34)break;if(n=c,n===92)continue}else{let f=e[s++]&63;if((c&224)===192)c=(c&31)<<6|f;else{let o=e[s++]&63;if((c&240)===224)c=(c&31)<<12|f<<6|o;else if((c&248)===240){let a=e[s++]&63,u=(c&7)<<18|f<<12|o<<6|a;if(u>65535){u-=65536;let l=u>>>10&1023|55296;u=56320|u&1023,r.push(l),c=u}else c=u}}}r.push(c)}return i.x=s,A.apply(String,r)},\"readKey\");Le.readKey=qh;var ts=class{static{h(this,\"JsonDecoder\")}constructor(){this.reader=new Dh.Reader}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}readAny(){this.skipWhitespace();let e=this.reader,t=e.x,r=e.uint8,s=r[t];switch(s){case 34:{if(r[t+1]===100){let n=this.tryReadBin();if(n)return n;if(Lh(r,t+2)){e.x=t+35;return}}return this.readStr()}case 91:return this.readArr();case 102:return this.readFalse();case 110:return this.readNull();case 116:return this.readTrue();case 123:return this.readObj();default:if(s>=48&&s<=57||s===45)return this.readNum();throw new Error(\"Invalid JSON\")}}skipWhitespace(){let e=this.reader,t=e.uint8,r=e.x,s=0;for(;;)switch(s=t[r],s){case 32:case 9:case 10:case 13:r++;continue;default:e.x=r;return}}readNull(){if(this.reader.u32()!==1853189228)throw new Error(\"Invalid JSON\");return null}readTrue(){if(this.reader.u32()!==1953658213)throw new Error(\"Invalid JSON\");return!0}readFalse(){let e=this.reader;if(e.u8()!==102||e.u32()!==1634497381)throw new Error(\"Invalid JSON\");return!1}readBool(){let e=this.reader;switch(e.uint8[e.x]){case 102:return this.readFalse();case 116:return this.readTrue();default:throw new Error(\"Invalid JSON\")}}readNum(){let e=this.reader,t=e.uint8,r=e.x,s=t[r++],n=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n);if(_!==_)throw new Error(\"Invalid JSON\");return _}let c=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c);if(_!==_)throw new Error(\"Invalid JSON\");return _}let f=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f);if(_!==_)throw new Error(\"Invalid JSON\");return _}let o=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o);if(_!==_)throw new Error(\"Invalid JSON\");return _}let a=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a);if(_!==_)throw new Error(\"Invalid JSON\");return _}let u=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u);if(_!==_)throw new Error(\"Invalid JSON\");return _}let l=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l);if(_!==_)throw new Error(\"Invalid JSON\");return _}let d=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d);if(_!==_)throw new Error(\"Invalid JSON\");return _}let m=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m);if(_!==_)throw new Error(\"Invalid JSON\");return _}let y=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y);if(_!==_)throw new Error(\"Invalid JSON\");return _}let b=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b);if(_!==_)throw new Error(\"Invalid JSON\");return _}let S=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S);if(_!==_)throw new Error(\"Invalid JSON\");return _}let v=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v);if(_!==_)throw new Error(\"Invalid JSON\");return _}let R=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R);if(_!==_)throw new Error(\"Invalid JSON\");return _}let j=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j);if(_!==_)throw new Error(\"Invalid JSON\");return _}let I=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I);if(_!==_)throw new Error(\"Invalid JSON\");return _}let W=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W);if(_!==_)throw new Error(\"Invalid JSON\");return _}let te=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te);if(_!==_)throw new Error(\"Invalid JSON\");return _}let oe=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe);if(_!==_)throw new Error(\"Invalid JSON\");return _}let ce=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce);if(_!==_)throw new Error(\"Invalid JSON\");return _}let re=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re);if(_!==_)throw new Error(\"Invalid JSON\");return _}let ae=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae);if(_!==_)throw new Error(\"Invalid JSON\");return _}let Je=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae,Je);if(_!==_)throw new Error(\"Invalid JSON\");return _}let St=s;if(s=t[r++],!s||(s<45||s>57)&&s!==43&&s!==69&&s!==101){e.x=r-1;let _=+A(n,c,f,o,a,u,l,d,m,y,b,S,v,R,j,I,W,te,oe,ce,re,ae,Je,St);if(_!==_)throw new Error(\"Invalid JSON\");return _}throw new Error(\"Invalid JSON\")}readStr(){let e=this.reader,t=e.uint8;if(t[e.x++]!==34)throw new Error(\"Invalid JSON\");let s=e.x,n=(0,es.findEndingQuote)(t,s),c=(0,jh.decodeUtf8)(t,s,n-s);return c=c.replace(Bh,Mh),e.x=n+1,c}tryReadBin(){let e=this.reader,t=e.uint8,r=e.x;if(t[r++]!==34||!Co(t,r))return;r+=37;let n=r;r=(0,es.findEndingQuote)(t,r),e.x=n;let c=(0,Ao.fromBase64Bin)(e.view,n,r-n);return e.x=r+1,c}readBin(){let e=this.reader,t=e.uint8,r=e.x;if(t[r++]!==34)throw new Error(\"Invalid JSON\");if(!Co(t,r))throw new Error(\"Invalid JSON\");r+=37;let n=r;r=(0,es.findEndingQuote)(t,r),e.x=n;let c=(0,Ao.fromBase64Bin)(e.view,n,r-n);return e.x=r+1,c}readArr(){let e=this.reader;if(e.u8()!==91)throw new Error(\"Invalid JSON\");let t=[],r=e.uint8,s=!0;for(;;){this.skipWhitespace();let n=r[e.x];if(n===93)return e.x++,t;if(n===44)e.x++;else if(!s)throw new Error(\"Invalid JSON\");this.skipWhitespace(),t.push(this.readAny()),s=!1}}readObj(){let e=this.reader;if(e.u8()!==123)throw new Error(\"Invalid JSON\");let t={},r=e.uint8,s=!0;for(;;){this.skipWhitespace();let n=r[e.x];if(n===125)return e.x++,t;if(n===44)e.x++;else if(!s)throw new Error(\"Invalid JSON\");if(this.skipWhitespace(),n=r[e.x++],n!==34)throw new Error(\"Invalid JSON\");let c=(0,Le.readKey)(e);if(c===\"__proto__\")throw new Error(\"Invalid JSON\");if(this.skipWhitespace(),e.u8()!==58)throw new Error(\"Invalid JSON\");this.skipWhitespace(),t[c]=this.readAny(),s=!1}}};Le.JsonDecoder=ts});var Mo=g(pe=>{\"use strict\";p();Object.defineProperty(pe,\"__esModule\",{value:!0});pe.fromJsonSnapshot=pe.toJsonSnapshot=pe.fromJsonSnapshotSync=pe.toJsonSnapshotSync=void 0;var Uh=To(),Wh=Io(),Po=dr(),jo=Xi(),Jh=wt(),Do=new Uh.JsonEncoder(Jh.writer),Bo=new Wh.JsonDecoder,Vh=h(i=>{let e=(0,Po.toSnapshotSync)(i);return Do.encode(e)},\"toJsonSnapshotSync\");pe.toJsonSnapshotSync=Vh;var zh=h((i,e)=>{let t=Bo.read(i);(0,Po.fromSnapshotSync)(t,e)},\"fromJsonSnapshotSync\");pe.fromJsonSnapshotSync=zh;var Hh=h(async i=>{let e=await(0,jo.toSnapshot)(i);return Do.encode(e)},\"toJsonSnapshot\");pe.toJsonSnapshot=Hh;var Yh=h(async(i,e)=>{let t=Bo.read(i);await(0,jo.fromSnapshot)(t,e)},\"fromJsonSnapshot\");pe.fromJsonSnapshot=Yh});var Lo=g(it=>{\"use strict\";p();Object.defineProperty(it,\"__esModule\",{value:!0});var Cr=(he(),ie(ue));Cr.__exportStar(Qn(),it);Cr.__exportStar(dr(),it);Cr.__exportStar(xo(),it);Cr.__exportStar(Mo(),it)});var is=g(E=>{\"use strict\";p();Object.defineProperty(E,\"__esModule\",{value:!0});E.getWriteFileOptions=E.writeFileDefaults=E.getRealpathOptsAndCb=E.getRealpathOptions=E.getStatfsOptsAndCb=E.getStatfsOptions=E.getStatOptsAndCb=E.getStatOptions=E.getAppendFileOptsAndCb=E.getAppendFileOpts=E.getOpendirOptsAndCb=E.getOpendirOptions=E.getReaddirOptsAndCb=E.getReaddirOptions=E.getReadFileOptions=E.getRmOptsAndCb=E.getRmdirOptions=E.getDefaultOptsAndCb=E.getDefaultOpts=E.optsDefaults=E.getMkdirOptions=void 0;E.getOptions=Uo;E.optsGenerator=Se;E.optsAndCbGenerator=qe;var _t=B(),rs=Fe(),qo={mode:511,recursive:!1},Kh=h(i=>typeof i==\"number\"?Object.assign({},qo,{mode:i}):Object.assign({},qo,i),\"getMkdirOptions\");E.getMkdirOptions=Kh;var Qh=h(i=>`Expected options to be either an object or a string, but got ${i} instead`,\"ERRSTR_OPTS\");function Uo(i,e){let t;if(e){let r=typeof e;switch(r){case\"string\":t=Object.assign({},i,{encoding:e});break;case\"object\":t=Object.assign({},i,e);break;default:throw TypeError(Qh(r))}}else return i;return t.encoding!==\"buffer\"&&(0,_t.assertEncoding)(t.encoding),t}h(Uo,\"getOptions\");function Se(i){return e=>Uo(i,e)}h(Se,\"optsGenerator\");function qe(i){return(e,t)=>typeof e==\"function\"?[i(),e]:[i(e),(0,rs.validateCallback)(t)]}h(qe,\"optsAndCbGenerator\");E.optsDefaults={encoding:\"utf8\"};E.getDefaultOpts=Se(E.optsDefaults);E.getDefaultOptsAndCb=qe(E.getDefaultOpts);var $h={recursive:!1},Xh=h(i=>Object.assign({},$h,i),\"getRmdirOptions\");E.getRmdirOptions=Xh;var Zh=Se(E.optsDefaults);E.getRmOptsAndCb=qe(Zh);var Gh={flag:\"r\"};E.getReadFileOptions=Se(Gh);var ef={encoding:\"utf8\",recursive:!1,withFileTypes:!1};E.getReaddirOptions=Se(ef);E.getReaddirOptsAndCb=qe(E.getReaddirOptions);var tf={encoding:\"utf8\",bufferSize:32,recursive:!1};E.getOpendirOptions=Se(tf);E.getOpendirOptsAndCb=qe(E.getOpendirOptions);var rf={encoding:\"utf8\",mode:438,flag:_t.FLAGS[_t.FLAGS.a]};E.getAppendFileOpts=Se(rf);E.getAppendFileOptsAndCb=qe(E.getAppendFileOpts);var sf={bigint:!1},nf=h((i={})=>Object.assign({},sf,i),\"getStatOptions\");E.getStatOptions=nf;var of=h((i,e)=>typeof i==\"function\"?[(0,E.getStatOptions)(),i]:[(0,E.getStatOptions)(i),(0,rs.validateCallback)(e)],\"getStatOptsAndCb\");E.getStatOptsAndCb=of;var cf={bigint:!1},af=h((i={})=>Object.assign({},cf,i),\"getStatfsOptions\");E.getStatfsOptions=af;var uf=h((i,e)=>typeof i==\"function\"?[(0,E.getStatfsOptions)(),i]:[(0,E.getStatfsOptions)(i),(0,rs.validateCallback)(e)],\"getStatfsOptsAndCb\");E.getStatfsOptsAndCb=uf;var hf=E.optsDefaults;E.getRealpathOptions=Se(hf);E.getRealpathOptsAndCb=qe(E.getRealpathOptions);E.writeFileDefaults={encoding:\"utf8\",mode:438,flag:_t.FLAGS[_t.FLAGS.w]};E.getWriteFileOptions=Se(E.writeFileDefaults)});var ns=g(Ir=>{\"use strict\";p();Object.defineProperty(Ir,\"__esModule\",{value:!0});Ir.Dir=void 0;var Wo=Fe(),ff=rr(),Ue=Ke(),ss=class{static{h(this,\"Dir\")}constructor(e,t){this.link=e,this.options=t,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=e.getPath(),this.iteratorInfo.push(e.children[Symbol.iterator]())}closeBase(){}readBase(e){if(e.length===0)return null;let t,r,s,n;do{do if({done:t,value:r}=e[e.length-1].next(),!t)[s,n]=r;else break;while(s===\".\"||s===\"..\");if(t){if(e.pop(),e.length===0)break;t=!1}else return this.options.recursive&&n.children.size&&e.push(n.children[Symbol.iterator]()),ff.default.build(n,this.options.encoding)}while(!t);return null}close(e){if(e===void 0)return this.closed?Promise.reject(new Ue.Error(\"ERR_DIR_CLOSED\")):new Promise((t,r)=>{this.close(s=>{s?r(s):t()})});if((0,Wo.validateCallback)(e),this.closed){process.nextTick(e,new Ue.Error(\"ERR_DIR_CLOSED\"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.close(e)});return}this.closed=!0;try{this.closeBase(),process.nextTick(e)}catch(t){process.nextTick(e,t)}}closeSync(){if(this.closed)throw new Ue.Error(\"ERR_DIR_CLOSED\");if(this.operationQueue!==null)throw new Ue.Error(\"ERR_DIR_CONCURRENT_OPERATION\");this.closed=!0,this.closeBase()}read(e){if(e===void 0)return new Promise((t,r)=>{this.read((s,n)=>{s?r(s):t(n??null)})});if((0,Wo.validateCallback)(e),this.closed){process.nextTick(e,new Ue.Error(\"ERR_DIR_CLOSED\"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.read(e)});return}this.operationQueue=[];try{let t=this.readBase(this.iteratorInfo);process.nextTick(()=>{let r=this.operationQueue;this.operationQueue=null;for(let s of r)s();e(null,t)})}catch(t){process.nextTick(()=>{let r=this.operationQueue;this.operationQueue=null;for(let s of r)s();e(t)})}}readSync(){if(this.closed)throw new Ue.Error(\"ERR_DIR_CLOSED\");if(this.operationQueue!==null)throw new Ue.Error(\"ERR_DIR_CONCURRENT_OPERATION\");return this.readBase(this.iteratorInfo)}async*[Symbol.asyncIterator](){try{for(;;){let e=await this.read();if(e===null)break;yield e}}finally{await this.close()}}async[Symbol.asyncDispose](){this.closed||await this.close()}[Symbol.dispose](){this.closed||this.closeSync()}};Ir.Dir=ss});var as=g(cs=>{\"use strict\";p();Object.defineProperty(cs,\"__esModule\",{value:!0});cs.globSync=mf;var bt=ze(),lf=Zr(),Jo=B(),Vo=Fe(),df=bt.posix.resolve;function zo(i,e){return(0,lf.toRegex)(e).test(i)}h(zo,\"matchesPattern\");function pf(i,e){return e?typeof e==\"function\"?e(i):(Array.isArray(e)?e:[e]).some(r=>zo(i,r)):!1}h(pf,\"isExcluded\");function os(i,e,t,r,s=0){let n=[],c=r.maxdepth??1/0,f=r.cwd?(0,Vo.pathToFilename)(r.cwd):process.cwd();if(s>c)return n;try{let o=i.readdirSync(e,{withFileTypes:!0});for(let a of o){let u=(0,Jo.pathJoin)(e,a.name.toString()),l=(0,Jo.pathRelative)(f,u);if(pf(l,r.exclude))continue;if(t.some(m=>zo(l,m))&&n.push(l),a.isDirectory()&&s<c){let m=os(i,u,t,r,s+1);n.push(...m)}}}catch{}return n}h(os,\"walkDirectory\");function mf(i,e,t={}){let r=t.cwd?(0,Vo.pathToFilename)(t.cwd):process.cwd(),s=df(r),n={cwd:s,exclude:t.exclude,maxdepth:t.maxdepth,withFileTypes:t.withFileTypes||!1},c=[];if(bt.posix.isAbsolute(e)){let f=bt.posix.dirname(e),o=bt.posix.basename(e),a=os(i,f,[o],{...n,cwd:f});c.push(...a.map(u=>bt.posix.resolve(f,u)))}else{let f=e.replace(/^\\.\\//,\"\"),o=os(i,s,[f],n);c.push(...o)}return c=[...new Set(c)].sort(),c}h(mf,\"globSync\")});var Zo=g($=>{\"use strict\";p();Object.defineProperty($,\"__esModule\",{value:!0});$.FSWatcher=$.StatWatcher=$.Volume=void 0;$.pathToSteps=Ff;$.dataToStr=Af;$.toUnixTimestamp=K;var gt=ze(),C=Gt(),Pr=gi(),yf=rr(),wf=Si(),Ie=Oe(),Ho=Bn(),Br=Ln(),me=B(),Qo=Oi(),_f=ki(),$o=zr(),bf=Ri(),gf=Yn(),st=Lo(),Q=B(),Sf=Ke(),k=is(),w=Fe(),Ef=ns(),Of=gt.resolve,{O_SYMLINK:Yo,F_OK:us,R_OK:xf,W_OK:vf,X_OK:kf,COPYFILE_EXCL:Tf,COPYFILE_FICLONE_FORCE:Nf}=me.constants,Rf=128;function Ff(i){return(0,C.filenameToSteps)((0,w.pathToFilename)(i))}h(Ff,\"pathToSteps\");function Af(i,e=me.ENCODING_UTF8){return Ie.Buffer.isBuffer(i)?i.toString(e):i instanceof Uint8Array?(0,Ie.bufferFrom)(i).toString(e):String(i)}h(Af,\"dataToStr\");function K(i){if(typeof i==\"string\"&&+i==i)return+i;if(i instanceof Date)return i.getTime()/1e3;if(isFinite(i))return i<0?Date.now()/1e3:i;throw new Error(\"Cannot parse time: \"+i)}h(K,\"toUnixTimestamp\");function nt(i){if(typeof i!=\"number\")throw TypeError(Q.ERRSTR.UID)}h(nt,\"validateUid\");function ot(i){if(typeof i!=\"number\")throw TypeError(Q.ERRSTR.GID)}h(ot,\"validateGid\");var We=class{static{h(this,\"Volume\")}get promises(){if(this.promisesApi===null)throw new Error(\"Promise is not supported in this environment.\");return this.promisesApi}constructor(e=new C.Superblock){this._core=e,this.promisesApi=new bf.FsPromises(this,_f.FileHandle),this.openSync=(o,a,u=438)=>{let l=(0,w.modeToNumber)(u),d=(0,w.pathToFilename)(o),m=(0,w.flagsToNumber)(a);return this._core.open(d,m,l,!(m&Yo))},this.open=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&(d=438,m=u),d=d||438;let y=(0,w.modeToNumber)(d),b=(0,w.pathToFilename)(o),S=(0,w.flagsToNumber)(a);this.wrapAsync(this._core.open,[b,S,y,!(S&Yo)],m)},this.closeSync=o=>{this._core.close(o)},this.close=(o,a)=>{(0,C.validateFd)(o);let u=this._core.getFileByFdOrThrow(o,\"close\");this.wrapAsync(this._core.close,[u.fd],a)},this.readSync=(o,a,u,l,d)=>((0,C.validateFd)(o),this._core.read(o,a,u,l,d)),this.read=(o,a,u,l,d,m)=>{if((0,w.validateCallback)(m),l===0)return queueMicrotask(()=>{m&&m(null,0,a)});Promise.resolve().then(()=>{try{let y=this._core.read(o,a,u,l,d);m(null,y,a)}catch(y){m(y)}})},this.readv=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[null,u]),(0,w.validateCallback)(m),Promise.resolve().then(()=>{try{let y=this._core.readv(o,a,d);m(null,y,a)}catch(y){m(y)}})},this.readvSync=(o,a,u)=>((0,C.validateFd)(o),this._core.readv(o,a,u??null)),this._readfile=(o,a,u)=>{let l,m=typeof o==\"number\"&&(0,C.isFd)(o),y;m?y=o:y=this.openSync(o,a);try{let b=this._core.getFileByFdOrThrow(y,\"fstat\");if(b.node.isDirectory())throw m?(0,w.createError)(\"EISDIR\",\"read\"):(0,w.createError)(\"EISDIR\",\"open\",(0,w.pathToFilename)(o));l=(0,w.bufferToEncoding)(b.getBuffer(),u)}finally{m||this.closeSync(y)}return l},this.readFileSync=(o,a)=>{let u=(0,k.getReadFileOptions)(a),l=(0,w.flagsToNumber)(u.flag);return this._readfile(o,l,u.encoding)},this.readFile=(o,a,u)=>{let[l,d]=(0,k.optsAndCbGenerator)(k.getReadFileOptions)(a,u),m=(0,w.flagsToNumber)(l.flag);this.wrapAsync(this._readfile,[o,m,l.encoding],d)},this.writeSync=(o,a,u,l,d)=>{let[,m,y,b,S]=(0,w.getWriteSyncArgs)(o,a,u,l,d);return this._write(o,m,y,b,S)},this.write=(o,a,u,l,d,m)=>{let[,y,b,S,v,R,j]=(0,w.getWriteArgs)(o,a,u,l,d,m);Promise.resolve().then(()=>{try{let I=this._write(o,b,S,v,R);y?j(null,I,a):j(null,I,b)}catch(I){j(I)}})},this.writev=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[null,u]),(0,w.validateCallback)(m),Promise.resolve().then(()=>{try{let y=this.writevBase(o,a,d);m(null,y,a)}catch(y){m(y)}})},this.writevSync=(o,a,u)=>((0,C.validateFd)(o),this.writevBase(o,a,u??null)),this.writeFileSync=(o,a,u)=>{let l=(0,k.getWriteFileOptions)(u),d=(0,w.flagsToNumber)(l.flag),m=(0,w.modeToNumber)(l.mode),y=(0,C.dataToBuffer)(a,l.encoding);this._core.writeFile(o,y,d,m)},this.writeFile=(o,a,u,l)=>{let d=u,m=l;typeof u==\"function\"&&([d,m]=[k.writeFileDefaults,u]);let y=(0,w.validateCallback)(m),b=(0,k.getWriteFileOptions)(d),S=(0,w.flagsToNumber)(b.flag),v=(0,w.modeToNumber)(b.mode),R=(0,C.dataToBuffer)(a,b.encoding);this.wrapAsync(this._core.writeFile,[o,R,S,v],y)},this.copyFileSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);return this._copyFile(l,d,(u||0)|0)},this.copyFile=(o,a,u,l)=>{let d=(0,w.pathToFilename)(o),m=(0,w.pathToFilename)(a),y,b;typeof u==\"function\"?[y,b]=[0,u]:[y,b]=[u,l],(0,w.validateCallback)(b),this.wrapAsync(this._copyFile,[d,m,y],b)},this._cp=(o,a,u)=>{if(u.filter&&!u.filter(o,a))return;let l=u.dereference?this.statSync(o):this.lstatSync(o),d=null;try{d=this.lstatSync(a)}catch(m){if(m.code!==\"ENOENT\")throw m}if(d&&l.ino===d.ino&&l.dev===d.dev)throw(0,w.createError)(\"EINVAL\",\"cp\",o,a);if(d){if(l.isDirectory()&&!d.isDirectory())throw(0,w.createError)(\"EISDIR\",\"cp\",o,a);if(!l.isDirectory()&&d.isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"cp\",o,a)}if(l.isDirectory()&&this.isSrcSubdir(o,a))throw(0,w.createError)(\"EINVAL\",\"cp\",o,a);{let m=(0,Q.pathDirname)(a);this.existsSync(m)||this.mkdirSync(m,{recursive:!0})}if(l.isDirectory()){if(!u.recursive)throw(0,w.createError)(\"EISDIR\",\"cp\",o);this.cpDirSync(l,d,o,a,u)}else if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())this.cpFileSync(l,d,o,a,u);else if(l.isSymbolicLink()&&!u.dereference)this.cpSymlinkSync(d,o,a,u);else throw(0,w.createError)(\"EINVAL\",\"cp\",o)},this.linkSync=(o,a)=>{let u=(0,w.pathToFilename)(o),l=(0,w.pathToFilename)(a);this._core.link(u,l)},this.link=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this.wrapAsync(this._core.link,[l,d],u)},this.unlinkSync=o=>{let a=(0,w.pathToFilename)(o);this._core.unlink(a)},this.unlink=(o,a)=>{let u=(0,w.pathToFilename)(o);this.wrapAsync(this._core.unlink,[u],a)},this.symlinkSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this._core.symlink(l,d)},this.symlink=(o,a,u,l)=>{let d=(0,w.validateCallback)(typeof u==\"function\"?u:l),m=(0,w.pathToFilename)(o),y=(0,w.pathToFilename)(a);this.wrapAsync(this._core.symlink,[m,y],d)},this._lstat=(o,a=!1,u=!1)=>{let l;try{l=this._core.getLinkOrThrow(o,\"lstat\")}catch(d){if(d.code===\"ENOENT\"&&!u)return;throw d}return Pr.default.build(l.getNode(),a)},this.lstatSync=(o,a)=>{let{throwIfNoEntry:u=!0,bigint:l=!1}=(0,k.getStatOptions)(a);return this._lstat((0,w.pathToFilename)(o),l,u)},this.renameSync=(o,a)=>{let u=(0,w.pathToFilename)(o),l=(0,w.pathToFilename)(a);this._core.rename(u,l)},this.rename=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a);this.wrapAsync(this._core.rename,[l,d],u)},this.existsSync=o=>{try{return this._exists((0,w.pathToFilename)(o)).ok}catch{return!1}},this.exists=(o,a)=>{let u=(0,w.pathToFilename)(o);if(typeof a!=\"function\")throw Error(Q.ERRSTR.CB);Promise.resolve().then(()=>{try{a(this._exists(u).ok)}catch{a(!1)}})},this.accessSync=(o,a=us)=>{let u=(0,w.pathToFilename)(o);a=a|0,this._access(u,a)},this.access=(o,a,u)=>{let l=us,d;typeof a!=\"function\"?[l,d]=[a|0,(0,w.validateCallback)(u)]:d=a;let m=(0,w.pathToFilename)(o);this.wrapAsync(this._access,[m,l],d)},this.appendFileSync=(o,a,u)=>{let l=(0,k.getAppendFileOpts)(u);(!l.flag||(0,C.isFd)(o))&&(l.flag=\"a\"),this.writeFileSync(o,a,l)},this.appendFile=(o,a,u,l)=>{let[d,m]=(0,k.getAppendFileOptsAndCb)(u,l);(!d.flag||(0,C.isFd)(o))&&(d.flag=\"a\"),this.writeFile(o,a,d,m)},this._readdir=(o,a)=>{let u=(0,C.filenameToSteps)(o),l=this._core.getResolvedLinkOrThrow(o,\"scandir\"),d=l.getNode();if(!d.isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"scandir\",o);if(!d.canRead())throw(0,w.createError)(\"EACCES\",\"scandir\",o);let m=[];for(let b of l.children.keys()){let S=l.getChild(b);if(!(!S||b===\".\"||b===\"..\")&&(m.push(yf.default.build(S,a.encoding)),a.recursive&&S.children.size)){let v={...a,recursive:!0,withFileTypes:!0},R=this._readdir(S.getPath(),v);m.push(...R)}}if(!C.isWin&&a.encoding!==\"buffer\"&&m.sort((b,S)=>b.name<S.name?-1:b.name>S.name?1:0),a.withFileTypes)return m;let y=o;return C.isWin&&(y=y.replace(/\\\\/g,\"/\")),m.map(b=>{if(a.recursive){let S=(0,Q.pathJoin)(b.parentPath,b.name.toString());return C.isWin&&(S=S.replace(/\\\\/g,\"/\")),S.replace(y+gt.posix.sep,\"\")}return b.name})},this.readdirSync=(o,a)=>{let u=(0,k.getReaddirOptions)(a),l=(0,w.pathToFilename)(o);return this._readdir(l,u)},this.readdir=(o,a,u)=>{let[l,d]=(0,k.getReaddirOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._readdir,[m,l],d)},this._readlink=(o,a)=>{let l=this._core.getLinkOrThrow(o,\"readlink\").getNode();if(!l.isSymlink())throw(0,w.createError)(\"EINVAL\",\"readlink\",o);return(0,me.strToEncoding)(l.symlink,a)},this.readlinkSync=(o,a)=>{let u=(0,k.getDefaultOpts)(a),l=(0,w.pathToFilename)(o);return this._readlink(l,u.encoding)},this.readlink=(o,a,u)=>{let[l,d]=(0,k.getDefaultOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._readlink,[m,l.encoding],d)},this._fsync=o=>{this._core.getFileByFdOrThrow(o,\"fsync\")},this.fsyncSync=o=>{this._fsync(o)},this.fsync=(o,a)=>{this.wrapAsync(this._fsync,[o],a)},this._fdatasync=o=>{this._core.getFileByFdOrThrow(o,\"fdatasync\")},this.fdatasyncSync=o=>{this._fdatasync(o)},this.fdatasync=(o,a)=>{this.wrapAsync(this._fdatasync,[o],a)},this._ftruncate=(o,a)=>{this._core.ftruncate(o,a)},this.ftruncateSync=(o,a)=>{this._ftruncate(o,a)},this.ftruncate=(o,a,u)=>{let l=typeof a==\"number\"?a:0,d=(0,w.validateCallback)(typeof a==\"number\"?u:a);this.wrapAsync(this._ftruncate,[o,l],d)},this._truncate=(o,a)=>{let u=this.openSync(o,\"r+\");try{this.ftruncateSync(u,a)}finally{this.closeSync(u)}},this.truncateSync=(o,a)=>{if((0,C.isFd)(o))return this.ftruncateSync(o,a);this._truncate(o,a)},this.truncate=(o,a,u)=>{let l=typeof a==\"number\"?a:0,d=(0,w.validateCallback)(typeof a==\"number\"?u:a);if((0,C.isFd)(o))return this.ftruncate(o,l,d);this.wrapAsync(this._truncate,[o,l],d)},this._futimes=(o,a,u)=>{this._core.futimes(o,a,u)},this.futimesSync=(o,a,u)=>{this._futimes(o,K(a),K(u))},this.futimes=(o,a,u,l)=>{this.wrapAsync(this._futimes,[o,K(a),K(u)],l)},this._utimes=(o,a,u,l=!0)=>{this._core.utimes(o,a,u,l)},this.utimesSync=(o,a,u)=>{this._utimes((0,w.pathToFilename)(o),K(a),K(u),!0)},this.utimes=(o,a,u,l)=>{this.wrapAsync(this._utimes,[(0,w.pathToFilename)(o),K(a),K(u),!0],l)},this.lutimesSync=(o,a,u)=>{this._utimes((0,w.pathToFilename)(o),K(a),K(u),!1)},this.lutimes=(o,a,u,l)=>{this.wrapAsync(this._utimes,[(0,w.pathToFilename)(o),K(a),K(u),!1],l)},this.mkdirSync=(o,a)=>{let u=(0,k.getMkdirOptions)(a),l=(0,w.modeToNumber)(u.mode,511),d=(0,w.pathToFilename)(o);if(u.recursive)return this._core.mkdirp(d,l);this._core.mkdir(d,l)},this.mkdir=(o,a,u)=>{let l=(0,k.getMkdirOptions)(a),d=(0,w.validateCallback)(typeof a==\"function\"?a:u),m=(0,w.modeToNumber)(l.mode,511),y=(0,w.pathToFilename)(o);l.recursive?this.wrapAsync(this._core.mkdirp,[y,m],d):this.wrapAsync(this._core.mkdir,[y,m],d)},this._mkdtemp=(o,a,u=5)=>{let l=o+(0,w.genRndStr6)();try{return this._core.mkdir(l,511),(0,me.strToEncoding)(l,a)}catch(d){if(d.code===\"EEXIST\"){if(u>1)return this._mkdtemp(o,a,u-1);throw Error(\"Could not create temp dir.\")}else throw d}},this.mkdtempSync=(o,a)=>{let{encoding:u}=(0,k.getDefaultOpts)(a);if(!o||typeof o!=\"string\")throw new TypeError(\"filename prefix is required\");return(0,w.nullCheck)(o),this._mkdtemp(o,u)},this.mkdtemp=(o,a,u)=>{let[{encoding:l},d]=(0,k.getDefaultOptsAndCb)(a,u);if(!o||typeof o!=\"string\")throw new TypeError(\"filename prefix is required\");(0,w.nullCheck)(o)&&this.wrapAsync(this._mkdtemp,[o,l],d)},this.rmdirSync=(o,a)=>{let u=(0,k.getRmdirOptions)(a);this._core.rmdir((0,w.pathToFilename)(o),u.recursive)},this.rmdir=(o,a,u)=>{let l=(0,k.getRmdirOptions)(a),d=(0,w.validateCallback)(typeof a==\"function\"?a:u);this.wrapAsync(this._core.rmdir,[(0,w.pathToFilename)(o),l.recursive],d)},this.rmSync=(o,a)=>{this._core.rm((0,w.pathToFilename)(o),a?.force,a?.recursive)},this.rm=(o,a,u)=>{let[l,d]=(0,k.getRmOptsAndCb)(a,u);this.wrapAsync(this._core.rm,[(0,w.pathToFilename)(o),l?.force,l?.recursive],d)},this._fchmod=(o,a)=>{this._core.fchmod(o,a)},this.fchmodSync=(o,a)=>{this._fchmod(o,(0,w.modeToNumber)(a))},this.fchmod=(o,a,u)=>{this.wrapAsync(this._fchmod,[o,(0,w.modeToNumber)(a)],u)},this._chmod=(o,a,u=!0)=>{u?this._core.chmod(o,a):this._core.lchmod(o,a)},this.chmodSync=(o,a)=>{let u=(0,w.modeToNumber)(a),l=(0,w.pathToFilename)(o);this._chmod(l,u,!0)},this.chmod=(o,a,u)=>{let l=(0,w.modeToNumber)(a),d=(0,w.pathToFilename)(o);this.wrapAsync(this._chmod,[d,l],u)},this._lchmod=(o,a)=>{this._core.lchmod(o,a)},this.lchmodSync=(o,a)=>{let u=(0,w.modeToNumber)(a),l=(0,w.pathToFilename)(o);this._lchmod(l,u)},this.lchmod=(o,a,u)=>{let l=(0,w.modeToNumber)(a),d=(0,w.pathToFilename)(o);this.wrapAsync(this._lchmod,[d,l],u)},this._fchown=(o,a,u)=>{this._core.fchown(o,a,u)},this.fchownSync=(o,a,u)=>{nt(a),ot(u),this._fchown(o,a,u)},this.fchown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._fchown,[o,a,u],l)},this._chown=(o,a,u)=>{this._core.chown(o,a,u)},this.chownSync=(o,a,u)=>{nt(a),ot(u),this._chown((0,w.pathToFilename)(o),a,u)},this.chown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._chown,[(0,w.pathToFilename)(o),a,u],l)},this._lchown=(o,a,u)=>{this._core.lchown(o,a,u)},this.lchownSync=(o,a,u)=>{nt(a),ot(u),this._lchown((0,w.pathToFilename)(o),a,u)},this.lchown=(o,a,u,l)=>{nt(a),ot(u),this.wrapAsync(this._lchown,[(0,w.pathToFilename)(o),a,u],l)},this.statWatchers={},this.cpSync=(o,a,u)=>{let l=(0,w.pathToFilename)(o),d=(0,w.pathToFilename)(a),m={dereference:u?.dereference??!1,errorOnExist:u?.errorOnExist??!1,filter:u?.filter,force:u?.force??!0,mode:u?.mode??0,preserveTimestamps:u?.preserveTimestamps??!1,recursive:u?.recursive??!1,verbatimSymlinks:u?.verbatimSymlinks??!1};return this._cp(l,d,m)},this.cp=(o,a,u,l)=>{let d=(0,w.pathToFilename)(o),m=(0,w.pathToFilename)(a),y,b;typeof u==\"function\"?[y,b]=[{},u]:[y,b]=[u||{},l],(0,w.validateCallback)(b);let S={dereference:y?.dereference??!1,errorOnExist:y?.errorOnExist??!1,filter:y?.filter,force:y?.force??!0,mode:y?.mode??0,preserveTimestamps:y?.preserveTimestamps??!1,recursive:y?.recursive??!1,verbatimSymlinks:y?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[d,m,S],b)},this.openAsBlob=async(o,a)=>{let u=(0,w.pathToFilename)(o),l;try{l=this._core.getResolvedLinkOrThrow(u,\"open\")}catch(b){throw b&&typeof b==\"object\"&&b.code===\"ENOENT\"?new Sf.TypeError(\"ERR_INVALID_ARG_VALUE\"):b}let m=l.getNode().getBuffer(),y=a?.type||\"\";return new Blob([m],{type:y})},this.glob=(o,...a)=>{let[u,l]=a.length===1?[{},a[0]]:[a[0],a[1]];this.wrapAsync(this._globSync,[o,u||{}],l)},this.globSync=(o,a={})=>this._globSync(o,a),this._globSync=(o,a={})=>{let{globSync:u}=as();return u(this,o,a)},this._opendir=(o,a)=>{let u=this._core.getResolvedLinkOrThrow(o,\"scandir\");if(!u.getNode().isDirectory())throw(0,w.createError)(\"ENOTDIR\",\"scandir\",o);return new Ef.Dir(u,a)},this.opendirSync=(o,a)=>{let u=(0,k.getOpendirOptions)(a),l=(0,w.pathToFilename)(o);return this._opendir(l,u)},this.opendir=(o,a,u)=>{let[l,d]=(0,k.getOpendirOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);this.wrapAsync(this._opendir,[m,l],d)};let t=this;this.StatWatcher=class extends jr{constructor(){super(t)}};let r=ye;this.ReadStream=class extends r{constructor(...o){super(t,...o)}};let s=ee;this.WriteStream=class extends s{constructor(...o){super(t,...o)}},this.FSWatcher=class extends Dr{constructor(){super(t)}};let n=h((o,a)=>{let u=this._core.getResolvedLinkOrThrow(o,\"realpath\");return(0,me.strToEncoding)(u.getPath()||\"/\",a)},\"_realpath\"),c=h((o,a,u)=>{let[l,d]=(0,k.getRealpathOptsAndCb)(a,u),m=(0,w.pathToFilename)(o);t.wrapAsync(n,[m,l.encoding],d)},\"realpathImpl\"),f=h((o,a)=>n((0,w.pathToFilename)(o),(0,k.getRealpathOptions)(a).encoding),\"realpathSyncImpl\");this.realpath=c,this.realpath.native=c,this.realpathSync=f,this.realpathSync.native=f}wrapAsync(e,t,r){(0,w.validateCallback)(r),Promise.resolve().then(()=>{let s;try{s=e.apply(this,t)}catch(n){r(n);return}r(null,s)})}reset(){this._core.reset()}toJSON(e,t={},r=!1,s=!1){return this._core.toJSON(e,t,r,s)}fromJSON(e,t){return this._core.fromJSON(e,t)}fromNestedJSON(e,t){return this._core.fromNestedJSON(e,t)}mountSync(e,t){this._core.fromJSON(t,e)}_write(e,t,r,s,n){return this._core.write(e,t,r,s,n)}writevBase(e,t,r){this._core.getFileByFdOrThrow(e,\"write\");let s=r??void 0;s===-1&&(s=void 0);let n=0;for(let c of t){let f=Ie.Buffer.from(c.buffer,c.byteOffset,c.byteLength),o=this._core.write(e,f,0,f.byteLength,s??null);if(s=void 0,n+=o,o<f.byteLength)break}return n}_copyFile(e,t,r){let s=this.readFileSync(e);if(r&Tf&&this.existsSync(t))throw(0,w.createError)(\"EEXIST\",\"copyfile\",e,t);if(r&Nf)throw(0,w.createError)(\"ENOSYS\",\"copyfile\",e,t);this._core.writeFile(t,s,Q.FLAGS.w,438)}isSrcSubdir(e,t){try{let r=(0,Q.pathNormalize)(e.startsWith(\"/\")?e:\"/\"+e),s=(0,Q.pathNormalize)(t.startsWith(\"/\")?t:\"/\"+t);if(r===s)return!0;let n=(0,Q.pathRelative)(r,s);return n===\"\"||!n.startsWith(\"..\")&&!(0,gt.isAbsolute)(n)}catch{return!1}}cpFileSync(e,t,r,s,n){if(t){if(n.errorOnExist)throw(0,w.createError)(\"EEXIST\",\"cp\",s);if(!n.force)return;this.unlinkSync(s)}this.copyFileSync(r,s,n.mode),n.preserveTimestamps&&this.utimesSync(s,e.atime,e.mtime),this.chmodSync(s,Number(e.mode))}cpDirSync(e,t,r,s,n){t||this.mkdirSync(s);let c=this.readdirSync(r);for(let f of c){let o=(0,Q.pathJoin)(r,String(f)),a=(0,Q.pathJoin)(s,String(f));n.filter&&!n.filter(o,a)||this._cp(o,a,n)}this.chmodSync(s,Number(e.mode))}cpSymlinkSync(e,t,r,s){let n=String(this.readlinkSync(t));!s.verbatimSymlinks&&!(0,gt.isAbsolute)(n)&&(n=Of((0,Q.pathDirname)(t),n)),e&&this.unlinkSync(r),this.symlinkSync(n,r)}lstat(e,t,r){let[{throwIfNoEntry:s=!0,bigint:n=!1},c]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this._lstat,[(0,w.pathToFilename)(e),n,s],c)}_stat(e,t=!1,r=!0){let s=this._core.getResolvedLinkResult(e,\"stat\");return s.ok?(0,C.Ok)(Pr.default.build(s.value.getNode(),t)):s.err.code===\"ENOENT\"&&!r?(0,C.Ok)(void 0):s}_statOrThrow(e,t=!1,r=!0){let s=this._stat(e,t,r);if(s.ok)return s.value;throw s.err.toError()}statSync(e,t){let{bigint:r=!0,throwIfNoEntry:s=!0}=(0,k.getStatOptions)(t),n=this._stat((0,w.pathToFilename)(e),r,s);if(n.ok)return n.value;throw n.err.toError()}stat(e,t,r){let[{bigint:s=!1,throwIfNoEntry:n=!0},c]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this._statOrThrow,[(0,w.pathToFilename)(e),s,n],c)}fstatBase(e,t=!1){let r=this._core.getFileByFd(e);if(!r)throw(0,w.createError)(\"EBADF\",\"fstat\");return Pr.default.build(r.node,t)}fstatSync(e,t){return this.fstatBase(e,(0,k.getStatOptions)(t).bigint)}fstat(e,t,r){let[s,n]=(0,k.getStatOptsAndCb)(t,r);this.wrapAsync(this.fstatBase,[e,s.bigint],n)}_exists(e){let t=this._stat(e);return t.ok?(0,C.Ok)(!0):t}_access(e,t){let s=this._core.getResolvedLinkOrThrow(e,\"access\").getNode();if(t!==us&&(t&xf&&!s.canRead()||t&vf&&!s.canWrite()||t&kf&&!s.canExecute()))throw(0,w.createError)(\"EACCES\",\"access\",e)}watchFile(e,t,r){let s=(0,w.pathToFilename)(e),n=t,c=r;if(typeof n==\"function\"&&(c=t,n=null),typeof c!=\"function\")throw new TypeError('The \"listener\" argument must be of type function. Received '+typeof c);let f=5007,o=!0,a=!1;if(n&&typeof n==\"object\"){if(n.interval!==void 0){if(typeof n.interval!=\"number\")throw new TypeError('The \"options.interval\" property must be of type number. Received '+typeof n.interval);if(!Number.isInteger(n.interval)||n.interval<0||n.interval>4294967295)throw new RangeError(`The value of \"options.interval\" is out of range. It must be an integer >= 0 && <= 4294967295. Received ${n.interval}`);f=n.interval}typeof n.persistent==\"boolean\"&&(o=n.persistent),typeof n.bigint==\"boolean\"&&(a=n.bigint)}let u=this.statWatchers[s];return u||(u=new this.StatWatcher,u.start(s,o,f,a),this.statWatchers[s]=u),u.addListener(\"change\",c),u}unwatchFile(e,t){let r=(0,w.pathToFilename)(e),s=this.statWatchers[r];s&&(typeof t==\"function\"?s.removeListener(\"change\",t):s.removeAllListeners(\"change\"),s.listenerCount(\"change\")===0&&(s.stop(),delete this.statWatchers[r]))}createReadStream(e,t){return new this.ReadStream(e,t)}createWriteStream(e,t){return new this.WriteStream(e,t)}watch(e,t,r){let s=(0,w.pathToFilename)(e),n=t;typeof t==\"function\"&&(r=t,n=null);let{persistent:c,recursive:f,encoding:o,signal:a,throwIfNoEntry:u,ignore:l}=(0,k.getDefaultOpts)(n);c===void 0&&(c=!0),f===void 0&&(f=!1);let d=new this.FSWatcher;try{d.start(s,c,f,o,l)}catch(m){if(u===!1&&m.code===\"ENOENT\")return d;throw m}if(r&&d.addListener(\"change\",r),a)if(a.aborted)d.close();else{let m=h(()=>d.close(),\"onAbort\");a.addEventListener(\"abort\",m,{once:!0}),d.once(\"close\",()=>a.removeEventListener(\"abort\",m))}return d}_statfs(e,t=!1){return this._core.getResolvedLinkOrThrow(e,\"statfs\"),wf.default.build(this._core,t)}statfsSync(e,t){let{bigint:r=!1}=(0,k.getStatfsOptions)(t);return this._statfs((0,w.pathToFilename)(e),r)}statfs(e,t,r){let[{bigint:s=!1},n]=(0,k.getStatfsOptsAndCb)(t,r);this.wrapAsync(this._statfs,[(0,w.pathToFilename)(e),s],n)}toTree(e={separator:gt.sep}){return(0,gf.toTreeSync)(this,e)}toSnapshot(e=\"/\"){return st.toSnapshotSync({fs:this,path:e})}fromSnapshot(e,t=\"/\"){return st.fromSnapshotSync(e,{fs:this,path:t})}toBinarySnapshot(e=\"/\"){return st.toBinarySnapshotSync({fs:this,path:e})}fromBinarySnapshot(e,t=\"/\"){return st.fromBinarySnapshotSync(e,{fs:this,path:t})}toJsonSnapshot(e=\"/\"){let t=st.toJsonSnapshotSync({fs:this,path:e});return Ie.Buffer.from(t).toString(\"utf8\")}fromJsonSnapshot(e,t=\"/\"){let r=new Uint8Array(Ie.Buffer.from(e,\"utf8\"));return st.fromJsonSnapshotSync(r,{fs:this,path:t})}};$.Volume=We;We.fromJSON=(i,e,t)=>new We(C.Superblock.fromJSON(i,e,t));We.fromNestedJSON=(i,e,t)=>new We(C.Superblock.fromNestedJSON(i,e,t));function Cf(i){i.emit(\"stop\")}h(Cf,\"emitStop\");function Ko(i){let e=new Pr.default,t=i?BigInt(0):0,r=new Date(0);return e.uid=t,e.gid=t,e.rdev=t,e.blksize=t,e.ino=t,e.size=t,e.blocks=t,e.atime=r,e.mtime=r,e.ctime=r,e.birthtime=r,e.atimeMs=t,e.mtimeMs=t,e.ctimeMs=t,e.birthtimeMs=t,i&&(e.atimeNs=t,e.mtimeNs=t,e.ctimeNs=t,e.birthtimeNs=t),e.dev=t,e.mode=t,e.nlink=t,e}h(Ko,\"buildZeroStats\");var jr=class extends Qo.EventEmitter{static{h(this,\"StatWatcher\")}constructor(e){super(),this.bigint=!1,this.fileExists=!1,this.stopped=!1,this.onInterval=()=>{if(this.stopped)return;let t=this.statSafe();if(t)if(this.fileExists){if(this.hasChanged(t)){let r=this.prev;this.prev=t,this.emit(\"change\",t,r)}}else{this.fileExists=!0;let r=this.prev;this.prev=t,this.emit(\"change\",t,r)}else this.fileExists&&(this.fileExists=!1,this.emit(\"change\",Ko(this.bigint),this.prev));this.loop()},this.vol=e}loop(){clearTimeout(this.timeoutRef),this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(e){let t=this.prev;return e.mtimeMs!==t.mtimeMs||e.ctimeMs!==t.ctimeMs||e.size!==t.size||e.ino!==t.ino||e.mode!==t.mode||e.uid!==t.uid||e.gid!==t.gid||e.nlink!==t.nlink}statSafe(){try{return this.bigint?this.vol.statSync(this.filename,{bigint:!0}):this.vol.statSync(this.filename)}catch{return null}}start(e,t=!0,r=5007,s=!1){this.filename=(0,w.pathToFilename)(e),this.setTimeout=t?setTimeout.bind(globalThis):Ho.default,this.interval=r,this.bigint=s;let n=this.statSafe();n?(this.prev=n,this.fileExists=!0):(this.prev=Ko(s),this.fileExists=!1,queueMicrotask(()=>{this.stopped||this.emit(\"change\",this.prev,this.prev)})),this.loop()}stop(){this.stopped=!0,clearTimeout(this.timeoutRef),queueMicrotask(()=>{Cf.call(this,this)})}ref(){this.setTimeout=setTimeout.bind(globalThis);let e=this.timeoutRef;return e&&typeof e==\"object\"&&typeof e.ref==\"function\"&&e.ref(),this}unref(){this.setTimeout=Ho.default;let e=this.timeoutRef;return e&&typeof e==\"object\"&&typeof e.unref==\"function\"&&e.unref(),this}};$.StatWatcher=jr;var G;function If(i){G=(0,Ie.bufferAllocUnsafe)(i),G.used=0}h(If,\"allocNewPool\");(0,$o.inherits)(ye,Br.Readable);$.ReadStream=ye;function ye(i,e,t){if(!(this instanceof ye))return new ye(i,e,t);if(this._vol=i,t=Object.assign({},(0,k.getOptions)(t,{})),t.highWaterMark===void 0&&(t.highWaterMark=64*1024),Br.Readable.call(this,t),this.path=(0,w.pathToFilename)(e),this._fileHandle=t.fd&&typeof t.fd!=\"number\"?t.fd:null,this.fd=t.fd===void 0?null:typeof t.fd!=\"number\"?t.fd.fd:t.fd,this.flags=t.flags===void 0?\"r\":t.flags,this.mode=t.mode===void 0?438:t.mode,this.start=t.start,this.end=t.end,this.autoClose=t.autoClose===void 0?!0:t.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!=\"number\")throw new TypeError('\"start\" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!=\"number\")throw new TypeError('\"end\" option must be a Number');if(this.start>this.end)throw new Error('\"start\" option must be <= \"end\" option');this.pos=this.start}typeof this.fd!=\"number\"&&this.open(),this.on(\"end\",function(){this.autoClose&&this.destroy&&this.destroy()})}h(ye,\"FsReadStream\");ye.prototype.open=function(){var i=this;this._vol.open(this.path,this.flags,this.mode,(e,t)=>{if(e){i.autoClose&&i.destroy&&i.destroy(),i.emit(\"error\",e);return}i.fd=t,i.emit(\"open\",t),i.read()})};ye.prototype._read=function(i){if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._read(i)});if(this.destroyed)return;(!G||G.length-G.used<Rf)&&If(this._readableState.highWaterMark);var e=G,t=Math.min(G.length-G.used,i),r=G.used;if(this.pos!==void 0&&(t=Math.min(this.end-this.pos+1,t)),t<=0)return this.push(null);var s=this;this._vol.read(this.fd,G,G.used,t,this.pos,n),this.pos!==void 0&&(this.pos+=t),G.used+=t;function n(c,f){if(c)s.autoClose&&s.destroy&&s.destroy(),s.emit(\"error\",c);else{var o=null;f>0&&(s.bytesRead+=f,o=e.slice(r,r+f)),s.push(o)}}h(n,\"onread\")};ye.prototype._destroy=function(i,e){this.close(t=>{e(i||t)})};ye.prototype.close=function(i){if(i&&this.once(\"close\",i),this.closed||typeof this.fd!=\"number\"){if(typeof this.fd!=\"number\"){this.once(\"open\",Xo);return}return queueMicrotask(()=>this.emit(\"close\"))}typeof this._readableState?.closed==\"boolean\"?this._readableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit(\"close\"),e=>this.emit(\"error\",e)):this._vol.close(this.fd,e=>{e?this.emit(\"error\",e):this.emit(\"close\")}),this.fd=null};function Xo(i){this.close()}h(Xo,\"closeOnOpen\");(0,$o.inherits)(ee,Br.Writable);$.WriteStream=ee;function ee(i,e,t){if(!(this instanceof ee))return new ee(i,e,t);if(this._vol=i,t=Object.assign({},(0,k.getOptions)(t,{})),Br.Writable.call(this,t),this.path=(0,w.pathToFilename)(e),this._fileHandle=t.fd&&typeof t.fd!=\"number\"?t.fd:null,this.fd=t.fd===void 0?null:typeof t.fd!=\"number\"?t.fd.fd:t.fd,this.flags=t.flags===void 0?\"w\":t.flags,this.mode=t.mode===void 0?438:t.mode,this.start=t.start,this.autoClose=t.autoClose===void 0?!0:!!t.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,this.start!==void 0){if(typeof this.start!=\"number\")throw new TypeError('\"start\" option must be a Number');if(this.start<0)throw new Error('\"start\" must be >= zero');this.pos=this.start}t.encoding&&this.setDefaultEncoding(t.encoding),typeof this.fd!=\"number\"&&this.open(),this.once(\"finish\",function(){this.autoClose&&this.close()})}h(ee,\"FsWriteStream\");ee.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(i,e){if(i){this.autoClose&&this.destroy&&this.destroy(),this.emit(\"error\",i);return}this.fd=e,this.pending=!1,this.emit(\"open\",e)}.bind(this))};ee.prototype._write=function(i,e,t){if(!(i instanceof Ie.Buffer||i instanceof Uint8Array))return this.emit(\"error\",new Error(\"Invalid data\"));if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._write(i,e,t)});var r=this;this._vol.write(this.fd,i,0,i.length,this.pos,(s,n)=>{if(s)return r.autoClose&&r.destroy&&r.destroy(),t(s);r.bytesWritten+=n,t()}),this.pos!==void 0&&(this.pos+=i.length)};ee.prototype._writev=function(i,e){if(typeof this.fd!=\"number\")return this.once(\"open\",function(){this._writev(i,e)});let t=this,r=i.length,s=new Array(r);for(var n=0,c=0;c<r;c++){var f=i[c].chunk;s[c]=f,n+=f.length}let o=Ie.Buffer.concat(s);this._vol.write(this.fd,o,0,o.length,this.pos,(a,u)=>{if(a)return t.destroy&&t.destroy(),e(a);t.bytesWritten+=u,e()}),this.pos!==void 0&&(this.pos+=n)};ee.prototype.close=function(i){if(i&&this.once(\"close\",i),this.closed||typeof this.fd!=\"number\"){if(typeof this.fd!=\"number\"){this.once(\"open\",Xo);return}return queueMicrotask(()=>this.emit(\"close\"))}typeof this._writableState?.closed==\"boolean\"?this._writableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit(\"close\"),e=>this.emit(\"error\",e)):this._vol.close(this.fd,e=>{e?this.emit(\"error\",e):this.emit(\"close\")}),this.fd=null};ee.prototype._destroy=ye.prototype._destroy;ee.prototype.destroySoon=ee.prototype.end;var Dr=class extends Qo.EventEmitter{static{h(this,\"FSWatcher\")}constructor(e){super(),this._filename=\"\",this._filenameEncoded=\"\",this._recursive=!1,this._encoding=me.ENCODING_UTF8,this._closed=!1,this._onEvent=t=>{switch(t.type){case 0:case 1:this._emit(\"rename\",t.steps);break;case 4:t.oldSteps&&this._emit(\"rename\",t.oldSteps),this._emit(\"rename\",t.steps);break;case 2:case 3:this._emit(\"change\",t.steps);break}},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=e}_emit(e,t){let r=t.length?t.join(Q.pathSep):this._watcher.link.getName();this._ignore&&this._ignore(r)||this.emit(\"change\",e,(0,me.strToEncoding)(r,this._encoding))}ref(){return this._watcher&&!this._closed&&!this._timer&&this._persist(),this}unref(){return clearTimeout(this._timer),this._timer=void 0,this}start(e,t=!0,r=!1,s=me.ENCODING_UTF8,n){this._filename=(0,w.pathToFilename)(e),this._steps=(0,C.filenameToSteps)(this._filename),this._filenameEncoded=(0,me.strToEncoding)(this._filename),this._recursive=r,this._encoding=s,this._ignore=n===void 0?void 0:(0,me.watchIgnoreToMatcher)(n);try{this._watcher=new C.CoreWatcher(this._vol._core,this._filename,{recursive:r})}catch(c){throw(0,w.createWatchError)(c.code,this._filename)}this._link=this._watcher.link,this._watcher.changes.listen(this._onEvent),t&&this._persist()}close(){clearTimeout(this._timer),this._timer=void 0,!(!this._watcher||this._closed)&&(this._closed=!0,this._watcher.close(),queueMicrotask(()=>this.emit(\"close\")))}};$.FSWatcher=Dr});var Go=g(N=>{\"use strict\";p();Object.defineProperty(N,\"__esModule\",{value:!0});N.fsCommonObjectsList=N.fsSynchronousApiList=N.fsCallbackApiList=N.FsPromises=N.Dir=N.FileHandle=N.StatFs=N.Dirent=N.Stats=N.toUnixTimestamp=N.FSWatcher=N.StatWatcher=N.Volume=void 0;var hs=(he(),ie(ue)),Mr=Zo();Object.defineProperty(N,\"Volume\",{enumerable:!0,get:h(function(){return Mr.Volume},\"get\")});Object.defineProperty(N,\"StatWatcher\",{enumerable:!0,get:h(function(){return Mr.StatWatcher},\"get\")});Object.defineProperty(N,\"FSWatcher\",{enumerable:!0,get:h(function(){return Mr.FSWatcher},\"get\")});Object.defineProperty(N,\"toUnixTimestamp\",{enumerable:!0,get:h(function(){return Mr.toUnixTimestamp},\"get\")});var Pf=gi();Object.defineProperty(N,\"Stats\",{enumerable:!0,get:h(function(){return Pf.default},\"get\")});var jf=rr();Object.defineProperty(N,\"Dirent\",{enumerable:!0,get:h(function(){return jf.default},\"get\")});var Df=Si();Object.defineProperty(N,\"StatFs\",{enumerable:!0,get:h(function(){return Df.default},\"get\")});var Bf=ki();Object.defineProperty(N,\"FileHandle\",{enumerable:!0,get:h(function(){return Bf.FileHandle},\"get\")});var Mf=ns();Object.defineProperty(N,\"Dir\",{enumerable:!0,get:h(function(){return Mf.Dir},\"get\")});var Lf=Ri();Object.defineProperty(N,\"FsPromises\",{enumerable:!0,get:h(function(){return Lf.FsPromises},\"get\")});hs.__exportStar(is(),N);hs.__exportStar(Fe(),N);hs.__exportStar(as(),N);var fs=B();Object.defineProperty(N,\"fsCallbackApiList\",{enumerable:!0,get:h(function(){return fs.fsCallbackApiList},\"get\")});Object.defineProperty(N,\"fsSynchronousApiList\",{enumerable:!0,get:h(function(){return fs.fsSynchronousApiList},\"get\")});Object.defineProperty(N,\"fsCommonObjectsList\",{enumerable:!0,get:h(function(){return fs.fsCommonObjectsList},\"get\")})});var tc=g((X,Lr)=>{\"use strict\";p();Object.defineProperty(X,\"__esModule\",{value:!0});X.memfs=X.fs=X.vol=X.Volume=void 0;X.createFsFromVolume=ls;var Pe=Go();Object.defineProperty(X,\"Volume\",{enumerable:!0,get:h(function(){return Pe.Volume},\"get\")});var ec=B(),{F_OK:qf,R_OK:Uf,W_OK:Wf,X_OK:Jf}=ec.constants;X.vol=new Pe.Volume;function ls(i){let e={F_OK:qf,R_OK:Uf,W_OK:Wf,X_OK:Jf,constants:ec.constants,Stats:Pe.Stats,Dirent:Pe.Dirent};for(let t of Pe.fsSynchronousApiList)typeof i[t]==\"function\"&&(e[t]=i[t].bind(i));for(let t of Pe.fsCallbackApiList)typeof i[t]==\"function\"&&(e[t]=i[t].bind(i));return e.StatWatcher=i.StatWatcher,e.FSWatcher=i.FSWatcher,e.WriteStream=i.WriteStream,e.ReadStream=i.ReadStream,e.promises=i.promises,typeof i.realpath==\"function\"&&(e.realpath=i.realpath.bind(i),typeof i.realpath.native==\"function\"&&(e.realpath.native=i.realpath.native.bind(i))),typeof i.realpathSync==\"function\"&&(e.realpathSync=i.realpathSync.bind(i),typeof i.realpathSync.native==\"function\"&&(e.realpathSync.native=i.realpathSync.native.bind(i))),e._toUnixTimestamp=Pe.toUnixTimestamp,e.__vol=i,e}h(ls,\"createFsFromVolume\");X.fs=ls(X.vol);var Vf=h((i={},e=\"/\")=>{let t=typeof e==\"string\"?{cwd:e}:e,r=t.cwd??(t.process?void 0:\"/\"),s=Pe.Volume.fromNestedJSON(i,r,{process:t.process});return{fs:ls(s),vol:s}},\"memfs\");X.memfs=Vf;Lr.exports={...Lr.exports,...X.fs};Lr.exports.semantic=!0});p();var qr=sc(tc(),1),gm=(0,qr.createFsFromVolume)(qr.Volume.fromJSON({\"/tmp\":null}));export{gm as a};\n",
|
|
5528
|
+
"engine/deferred/crypto.mjs": "import{a as e1}from\"../chunks/chunk-MDRNMNJQ.mjs\";import\"../chunks/chunk-4Y6DVSR7.mjs\";import{a as xe,b as hn}from\"../chunks/chunk-2PJDHVIE.mjs\";import{a as ys}from\"../chunks/chunk-QMKSQR7V.mjs\";import{a as Se,e as Ql,f as gs}from\"../chunks/chunk-RAKQLW7K.mjs\";import{a as Yl,n as $l}from\"../chunks/chunk-WHKCMYPO.mjs\";import{a as f,c as k,e as Jl,f as hr,g as Buffer,i as dr,j as cr,m as process,o as M}from\"../chunks/chunk-IQ3JZKJB.mjs\";var Or=k((d8,cn)=>{\"use strict\";M();var dn=65536,t1=4294967295;function r1(){throw new Error(`Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11`)}f(r1,\"oldBrowser\");var i1=xe().Buffer,Fa=globalThis.crypto||globalThis.msCrypto;Fa&&Fa.getRandomValues?cn.exports=a1:cn.exports=r1;function a1(t,e){if(t>t1)throw new RangeError(\"requested too many random bytes\");var r=i1.allocUnsafe(t);if(t>0)if(t>dn)for(var a=0;a<t;a+=dn)Fa.getRandomValues(r.slice(a,a+dn));else Fa.getRandomValues(r);return typeof e==\"function\"?process.nextTick(function(){e(null,r)}):r}f(a1,\"randomBytes\")});var ws=k((l8,_s)=>{M();var f1={}.toString;_s.exports=Array.isArray||function(t){return f1.call(t)==\"[object Array]\"}});var Ms=k((p8,xs)=>{\"use strict\";M();var n1=Yl(),s1=$l(),o1=s1(\"TypedArray.prototype.buffer\",!0),h1=Ql();xs.exports=o1||f(function(e){if(!h1(e))throw new n1(\"Not a Typed Array\");return e.buffer},\"typedArrayBuffer\")});var ea=k((y8,As)=>{\"use strict\";M();var Mt=xe().Buffer,d1=ws(),c1=Ms(),u1=ArrayBuffer.isView||f(function(e){try{return c1(e),!0}catch{return!1}},\"isView\"),l1=typeof Uint8Array<\"u\",Ss=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",v1=Ss&&(Mt.prototype instanceof Uint8Array||Mt.TYPED_ARRAY_SUPPORT);As.exports=f(function(e,r){if(Mt.isBuffer(e))return e.constructor&&!(\"isBuffer\"in e)?Mt.from(e):e;if(typeof e==\"string\")return Mt.from(e,r);if(Ss&&u1(e)){if(e.byteLength===0)return Mt.alloc(0);if(v1){var a=Mt.from(e.buffer,e.byteOffset,e.byteLength);if(a.byteLength===e.byteLength)return a}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),s=Mt.from(i);if(s.length===e.byteLength)return s}if(l1&&e instanceof Uint8Array)return Mt.from(e);var c=d1(e);if(c)for(var p=0;p<e.length;p+=1){var _=e[p];if(typeof _!=\"number\"||_<0||_>255||~~_!==_)throw new RangeError(\"Array items must be numbers in the range 0-255.\")}if(c||Mt.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==\"function\"&&e.constructor.isBuffer(e))return Mt.from(e);throw new TypeError('The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},\"toBuffer\")});var ks=k((w8,Bs)=>{\"use strict\";M();var p1=xe().Buffer,b1=ea(),qs=typeof Uint8Array<\"u\",m1=qs&&typeof ArrayBuffer<\"u\",Es=m1&&ArrayBuffer.isView;Bs.exports=function(t,e){if(typeof t==\"string\"||p1.isBuffer(t)||qs&&t instanceof Uint8Array||Es&&Es(t))return b1(t,e);throw new TypeError('The \"data\" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var ta=k((M8,un)=>{\"use strict\";M();typeof process>\"u\"||!process.version||process.version.indexOf(\"v0.\")===0||process.version.indexOf(\"v1.\")===0&&process.version.indexOf(\"v1.8.\")!==0?un.exports={nextTick:y1}:un.exports=process;function y1(t,e,r,a){if(typeof t!=\"function\")throw new TypeError('\"callback\" argument must be a function');var i=arguments.length,s,c;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(f(function(){t.call(null,e)},\"afterTickOne\"));case 3:return process.nextTick(f(function(){t.call(null,e,r)},\"afterTickTwo\"));case 4:return process.nextTick(f(function(){t.call(null,e,r,a)},\"afterTickThree\"));default:for(s=new Array(i-1),c=0;c<s.length;)s[c++]=arguments[c];return process.nextTick(f(function(){t.apply(null,s)},\"afterTick\"))}}f(y1,\"nextTick\")});var Rs=k((E8,Is)=>{M();var g1={}.toString;Is.exports=Array.isArray||function(t){return g1.call(t)==\"[object Array]\"}});var ln=k((B8,Cs)=>{M();Cs.exports=ys().EventEmitter});var Ka=k((vn,Ps)=>{M();var Ha=(cr(),hr(dr)),Xt=Ha.Buffer;function Ds(t,e){for(var r in t)e[r]=t[r]}f(Ds,\"copyProps\");Xt.from&&Xt.alloc&&Xt.allocUnsafe&&Xt.allocUnsafeSlow?Ps.exports=Ha:(Ds(Ha,vn),vn.Buffer=hi);function hi(t,e,r){return Xt(t,e,r)}f(hi,\"SafeBuffer\");Ds(Xt,hi);hi.from=function(t,e,r){if(typeof t==\"number\")throw new TypeError(\"Argument must not be a number\");return Xt(t,e,r)};hi.alloc=function(t,e,r){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");var a=Xt(t);return e!==void 0?typeof r==\"string\"?a.fill(e,r):a.fill(e):a.fill(0),a};hi.allocUnsafe=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return Xt(t)};hi.allocUnsafeSlow=function(t){if(typeof t!=\"number\")throw new TypeError(\"Argument must be a number\");return Ha.SlowBuffer(t)}});var di=k(Ye=>{M();function _1(t){return Array.isArray?Array.isArray(t):ja(t)===\"[object Array]\"}f(_1,\"isArray\");Ye.isArray=_1;function w1(t){return typeof t==\"boolean\"}f(w1,\"isBoolean\");Ye.isBoolean=w1;function x1(t){return t===null}f(x1,\"isNull\");Ye.isNull=x1;function M1(t){return t==null}f(M1,\"isNullOrUndefined\");Ye.isNullOrUndefined=M1;function S1(t){return typeof t==\"number\"}f(S1,\"isNumber\");Ye.isNumber=S1;function A1(t){return typeof t==\"string\"}f(A1,\"isString\");Ye.isString=A1;function E1(t){return typeof t==\"symbol\"}f(E1,\"isSymbol\");Ye.isSymbol=E1;function q1(t){return t===void 0}f(q1,\"isUndefined\");Ye.isUndefined=q1;function B1(t){return ja(t)===\"[object RegExp]\"}f(B1,\"isRegExp\");Ye.isRegExp=B1;function k1(t){return typeof t==\"object\"&&t!==null}f(k1,\"isObject\");Ye.isObject=k1;function I1(t){return ja(t)===\"[object Date]\"}f(I1,\"isDate\");Ye.isDate=I1;function R1(t){return ja(t)===\"[object Error]\"||t instanceof Error}f(R1,\"isError\");Ye.isError=R1;function C1(t){return typeof t==\"function\"}f(C1,\"isFunction\");Ye.isFunction=C1;function D1(t){return t===null||typeof t==\"boolean\"||typeof t==\"number\"||typeof t==\"string\"||typeof t==\"symbol\"||typeof t>\"u\"}f(D1,\"isPrimitive\");Ye.isPrimitive=D1;Ye.isBuffer=(cr(),hr(dr)).Buffer.isBuffer;function ja(t){return Object.prototype.toString.call(t)}f(ja,\"objectToString\")});var Ns=k((T8,pn)=>{\"use strict\";M();function P1(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}f(P1,\"_classCallCheck\");var Ts=Ka().Buffer,ra=gs();function T1(t,e,r){t.copy(e,r)}f(T1,\"copyBuffer\");pn.exports=(function(){function t(){P1(this,t),this.head=null,this.tail=null,this.length=0}return f(t,\"BufferList\"),t.prototype.push=f(function(r){var a={data:r,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length},\"push\"),t.prototype.unshift=f(function(r){var a={data:r,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length},\"unshift\"),t.prototype.shift=f(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},\"shift\"),t.prototype.clear=f(function(){this.head=this.tail=null,this.length=0},\"clear\"),t.prototype.join=f(function(r){if(this.length===0)return\"\";for(var a=this.head,i=\"\"+a.data;a=a.next;)i+=r+a.data;return i},\"join\"),t.prototype.concat=f(function(r){if(this.length===0)return Ts.alloc(0);for(var a=Ts.allocUnsafe(r>>>0),i=this.head,s=0;i;)T1(i.data,a,s),s+=i.data.length,i=i.next;return a},\"concat\"),t})();ra&&ra.inspect&&ra.inspect.custom&&(pn.exports.prototype[ra.inspect.custom]=function(){var t=ra.inspect({length:this.length});return this.constructor.name+\" \"+t})});var bn=k((L8,Os)=>{\"use strict\";M();var Va=ta();function N1(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return a||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Va.nextTick(Wa,this,t)):Va.nextTick(Wa,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Va.nextTick(Wa,r,s)):Va.nextTick(Wa,r,s):e&&e(s)}),this)}f(N1,\"destroy\");function O1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}f(O1,\"undestroy\");function Wa(t,e){t.emit(\"error\",e)}f(Wa,\"emitErrorNT\");Os.exports={destroy:N1,undestroy:O1}});var Us=k((F8,Ls)=>{M();Ls.exports=L1;function L1(t,e){if(mn(\"noDeprecation\"))return t;var r=!1;function a(){if(!r){if(mn(\"throwDeprecation\"))throw new Error(e);mn(\"traceDeprecation\")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return f(a,\"deprecated\"),a}f(L1,\"deprecate\");function mn(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()===\"true\"}f(mn,\"config\")});var gn=k((j8,Zs)=>{\"use strict\";M();var Lr=ta();Zs.exports=ze;function Fs(t){var e=this;this.next=null,this.entry=null,this.finish=function(){r2(e,t)}}f(Fs,\"CorkedRequest\");var U1=!process.browser&&[\"v0.10\",\"v0.9.\"].indexOf(process.version.slice(0,5))>-1?setImmediate:Lr.nextTick,ci;ze.WritableState=aa;var Hs=Object.create(di());Hs.inherits=Se();var z1={deprecate:Us()},Ks=ln(),Xa=Ka().Buffer,F1=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function H1(t){return Xa.from(t)}f(H1,\"_uint8ArrayToBuffer\");function K1(t){return Xa.isBuffer(t)||t instanceof F1}f(K1,\"_isUint8Array\");var js=bn();Hs.inherits(ze,Ks);function j1(){}f(j1,\"nop\");function aa(t,e){ci=ci||Ur(),t=t||{};var r=e instanceof ci;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;a||a===0?this.highWaterMark=a:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=t.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(p){Y1(e,p)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Fs(this)}f(aa,\"WritableState\");aa.prototype.getBuffer=f(function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},\"getBuffer\");(function(){try{Object.defineProperty(aa.prototype,\"buffer\",{get:z1.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var Za;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(Za=Function.prototype[Symbol.hasInstance],Object.defineProperty(ze,Symbol.hasInstance,{value:f(function(t){return Za.call(this,t)?!0:this!==ze?!1:t&&t._writableState instanceof aa},\"value\")})):Za=f(function(t){return t instanceof this},\"realHasInstance\");function ze(t){if(ci=ci||Ur(),!Za.call(ze,this)&&!(this instanceof ci))return new ze(t);this._writableState=new aa(t,this),this.writable=!0,t&&(typeof t.write==\"function\"&&(this._write=t.write),typeof t.writev==\"function\"&&(this._writev=t.writev),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.final==\"function\"&&(this._final=t.final)),Ks.call(this)}f(ze,\"Writable\");ze.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))};function V1(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),Lr.nextTick(e,r)}f(V1,\"writeAfterEnd\");function W1(t,e,r,a){var i=!0,s=!1;return r===null?s=new TypeError(\"May not write null values to stream\"):typeof r!=\"string\"&&r!==void 0&&!e.objectMode&&(s=new TypeError(\"Invalid non-string/buffer chunk\")),s&&(t.emit(\"error\",s),Lr.nextTick(a,s),i=!1),i}f(W1,\"validChunk\");ze.prototype.write=function(t,e,r){var a=this._writableState,i=!1,s=!a.objectMode&&K1(t);return s&&!Xa.isBuffer(t)&&(t=H1(t)),typeof e==\"function\"&&(r=e,e=null),s?e=\"buffer\":e||(e=a.defaultEncoding),typeof r!=\"function\"&&(r=j1),a.ended?V1(this,r):(s||W1(this,a,t,r))&&(a.pendingcb++,i=X1(this,a,s,t,e,r)),i};ze.prototype.cork=function(){var t=this._writableState;t.corked++};ze.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Vs(this,t))};ze.prototype.setDefaultEncoding=f(function(e){if(typeof e==\"string\"&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+e);return this._writableState.defaultEncoding=e,this},\"setDefaultEncoding\");function Z1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e==\"string\"&&(e=Xa.from(e,r)),e}f(Z1,\"decodeChunk\");Object.defineProperty(ze.prototype,\"writableHighWaterMark\",{enumerable:!1,get:f(function(){return this._writableState.highWaterMark},\"get\")});function X1(t,e,r,a,i,s){if(!r){var c=Z1(e,a,i);a!==c&&(r=!0,i=\"buffer\",a=c)}var p=e.objectMode?1:a.length;e.length+=p;var _=e.length<e.highWaterMark;if(_||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:a,encoding:i,isBuf:r,callback:s,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else yn(t,e,!1,p,a,i,s);return _}f(X1,\"writeOrBuffer\");function yn(t,e,r,a,i,s,c){e.writelen=a,e.writecb=c,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}f(yn,\"doWrite\");function G1(t,e,r,a,i){--e.pendingcb,r?(Lr.nextTick(i,a),Lr.nextTick(ia,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",a)):(i(a),t._writableState.errorEmitted=!0,t.emit(\"error\",a),ia(t,e))}f(G1,\"onwriteError\");function J1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}f(J1,\"onwriteStateUpdate\");function Y1(t,e){var r=t._writableState,a=r.sync,i=r.writecb;if(J1(r),e)G1(t,r,a,e,i);else{var s=Ws(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Vs(t,r),a?U1(zs,t,r,s,i):zs(t,r,s,i)}}f(Y1,\"onwrite\");function zs(t,e,r,a){r||$1(t,e),e.pendingcb--,a(),ia(t,e)}f(zs,\"afterWrite\");function $1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}f($1,\"onwriteDrain\");function Vs(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var a=e.bufferedRequestCount,i=new Array(a),s=e.corkedRequestsFree;s.entry=r;for(var c=0,p=!0;r;)i[c]=r,r.isBuf||(p=!1),r=r.next,c+=1;i.allBuffers=p,yn(t,e,!0,e.length,i,\"\",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Fs(e),e.bufferedRequestCount=0}else{for(;r;){var _=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:_.length;if(yn(t,e,!1,q,_,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}f(Vs,\"clearBuffer\");ze.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))};ze.prototype._writev=null;ze.prototype.end=function(t,e,r){var a=this._writableState;typeof t==\"function\"?(r=t,t=null,e=null):typeof e==\"function\"&&(r=e,e=null),t!=null&&this.write(t,e),a.corked&&(a.corked=1,this.uncork()),a.ending||t2(this,a,r)};function Ws(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}f(Ws,\"needFinish\");function Q1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),ia(t,e)})}f(Q1,\"callFinal\");function e2(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final==\"function\"?(e.pendingcb++,e.finalCalled=!0,Lr.nextTick(Q1,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}f(e2,\"prefinish\");function ia(t,e){var r=Ws(e);return r&&(e2(t,e),e.pendingcb===0&&(e.finished=!0,t.emit(\"finish\"))),r}f(ia,\"finishMaybe\");function t2(t,e,r){e.ending=!0,ia(t,e),r&&(e.finished?Lr.nextTick(r):t.once(\"finish\",r)),e.ended=!0,t.writable=!1}f(t2,\"endWritable\");function r2(t,e,r){var a=t.entry;for(t.entry=null;a;){var i=a.callback;e.pendingcb--,i(r),a=a.next}e.corkedRequestsFree.next=t}f(r2,\"onCorkedFinish\");Object.defineProperty(ze.prototype,\"destroyed\",{get:f(function(){return this._writableState===void 0?!1:this._writableState.destroyed},\"get\"),set:f(function(t){this._writableState&&(this._writableState.destroyed=t)},\"set\")});ze.prototype.destroy=js.destroy;ze.prototype._undestroy=js.undestroy;ze.prototype._destroy=function(t,e){this.end(),e(t)}});var Ur=k((Z8,Ys)=>{\"use strict\";M();var Xs=ta(),i2=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ys.exports=Gt;var Gs=Object.create(di());Gs.inherits=Se();var Js=xn(),wn=gn();Gs.inherits(Gt,Js);for(_n=i2(wn.prototype),Ga=0;Ga<_n.length;Ga++)Ja=_n[Ga],Gt.prototype[Ja]||(Gt.prototype[Ja]=wn.prototype[Ja]);var _n,Ja,Ga;function Gt(t){if(!(this instanceof Gt))return new Gt(t);Js.call(this,t),wn.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(\"end\",a2)}f(Gt,\"Duplex\");Object.defineProperty(Gt.prototype,\"writableHighWaterMark\",{enumerable:!1,get:f(function(){return this._writableState.highWaterMark},\"get\")});function a2(){this.allowHalfOpen||this._writableState.ended||Xs.nextTick(f2,this)}f(a2,\"onend\");function f2(t){t.end()}f(f2,\"onEndNT\");Object.defineProperty(Gt.prototype,\"destroyed\",{get:f(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},\"get\"),set:f(function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)},\"set\")});Gt.prototype._destroy=function(t,e){this.push(null),this.end(),Xs.nextTick(e,t)}});var xn=k((Y8,ho)=>{\"use strict\";M();var li=ta();ho.exports=Pe;var n2=Rs(),fa;Pe.ReadableState=ao;var J8=ys().EventEmitter,to=f(function(t,e){return t.listeners(e).length},\"EElistenerCount\"),qn=ln(),na=Ka().Buffer,s2=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function o2(t){return na.from(t)}f(o2,\"_uint8ArrayToBuffer\");function h2(t){return na.isBuffer(t)||t instanceof s2}f(h2,\"_isUint8Array\");var ro=Object.create(di());ro.inherits=Se();var Mn=gs(),Be=void 0;Mn&&Mn.debuglog?Be=Mn.debuglog(\"stream\"):Be=f(function(){},\"debug\");var d2=Ns(),io=bn(),ui;ro.inherits(Pe,qn);var Sn=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function c2(t,e,r){if(typeof t.prependListener==\"function\")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):n2(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}f(c2,\"prependListener\");function ao(t,e){fa=fa||Ur(),t=t||{};var r=e instanceof fa;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;a||a===0?this.highWaterMark=a:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d2,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ui||(ui=hn().StringDecoder),this.decoder=new ui(t.encoding),this.encoding=t.encoding)}f(ao,\"ReadableState\");function Pe(t){if(fa=fa||Ur(),!(this instanceof Pe))return new Pe(t);this._readableState=new ao(t,this),this.readable=!0,t&&(typeof t.read==\"function\"&&(this._read=t.read),typeof t.destroy==\"function\"&&(this._destroy=t.destroy)),qn.call(this)}f(Pe,\"Readable\");Object.defineProperty(Pe.prototype,\"destroyed\",{get:f(function(){return this._readableState===void 0?!1:this._readableState.destroyed},\"get\"),set:f(function(t){this._readableState&&(this._readableState.destroyed=t)},\"set\")});Pe.prototype.destroy=io.destroy;Pe.prototype._undestroy=io.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,a;return r.objectMode?a=!0:typeof t==\"string\"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=na.from(t,e),e=\"\"),a=!0),fo(this,t,e,!1,a)};Pe.prototype.unshift=function(t){return fo(this,t,null,!0,!1)};function fo(t,e,r,a,i){var s=t._readableState;if(e===null)s.reading=!1,p2(t,s);else{var c;i||(c=u2(s,e)),c?t.emit(\"error\",c):s.objectMode||e&&e.length>0?(typeof e!=\"string\"&&!s.objectMode&&Object.getPrototypeOf(e)!==na.prototype&&(e=o2(e)),a?s.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):An(t,s,e,!0):s.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?An(t,s,e,!1):no(t,s)):An(t,s,e,!1))):a||(s.reading=!1)}return l2(s)}f(fo,\"readableAddChunk\");function An(t,e,r,a){e.flowing&&e.length===0&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ya(t)),no(t,e)}f(An,\"addChunk\");function u2(t,e){var r;return!h2(e)&&typeof e!=\"string\"&&e!==void 0&&!t.objectMode&&(r=new TypeError(\"Invalid non-string/buffer chunk\")),r}f(u2,\"chunkInvalid\");function l2(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}f(l2,\"needMoreData\");Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return ui||(ui=hn().StringDecoder),this._readableState.decoder=new ui(t),this._readableState.encoding=t,this};var $s=8388608;function v2(t){return t>=$s?t=$s:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}f(v2,\"computeNewHighWaterMark\");function Qs(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=v2(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}f(Qs,\"howMuchToRead\");Pe.prototype.read=function(t){Be(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Be(\"read: emitReadable\",e.length,e.ended),e.length===0&&e.ended?En(this):Ya(this),null;if(t=Qs(t,e),t===0&&e.ended)return e.length===0&&En(this),null;var a=e.needReadable;Be(\"need readable\",a),(e.length===0||e.length-t<e.highWaterMark)&&(a=!0,Be(\"length less than watermark\",a)),e.ended||e.reading?(a=!1,Be(\"reading or ended\",a)):a&&(Be(\"do read\"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Qs(r,e)));var i;return t>0?i=so(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&En(this)),i!==null&&this.emit(\"data\",i),i};function p2(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Ya(t)}}f(p2,\"onEofChunk\");function Ya(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Be(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?li.nextTick(eo,t):eo(t))}f(Ya,\"emitReadable\");function eo(t){Be(\"emit readable\"),t.emit(\"readable\"),Bn(t)}f(eo,\"emitReadable_\");function no(t,e){e.readingMore||(e.readingMore=!0,li.nextTick(b2,t,e))}f(no,\"maybeReadMore\");function b2(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Be(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}f(b2,\"maybeReadMore_\");Pe.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))};Pe.prototype.pipe=function(t,e){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t);break}a.pipesCount+=1,Be(\"pipe count=%d opts=%j\",a.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?p:L;a.endEmitted?li.nextTick(s):r.once(\"end\",s),t.on(\"unpipe\",c);function c(N,z){Be(\"onunpipe\"),N===r&&z&&z.hasUnpiped===!1&&(z.hasUnpiped=!0,A())}f(c,\"onunpipe\");function p(){Be(\"onend\"),t.end()}f(p,\"onend\");var _=m2(r);t.on(\"drain\",_);var S=!1;function A(){Be(\"cleanup\"),t.removeListener(\"close\",R),t.removeListener(\"finish\",T),t.removeListener(\"drain\",_),t.removeListener(\"error\",I),t.removeListener(\"unpipe\",c),r.removeListener(\"end\",p),r.removeListener(\"end\",L),r.removeListener(\"data\",B),S=!0,a.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&_()}f(A,\"cleanup\");var q=!1;r.on(\"data\",B);function B(N){Be(\"ondata\"),q=!1;var z=t.write(N);z===!1&&!q&&((a.pipesCount===1&&a.pipes===t||a.pipesCount>1&&oo(a.pipes,t)!==-1)&&!S&&(Be(\"false write response, pause\",a.awaitDrain),a.awaitDrain++,q=!0),r.pause())}f(B,\"ondata\");function I(N){Be(\"onerror\",N),L(),t.removeListener(\"error\",I),to(t,\"error\")===0&&t.emit(\"error\",N)}f(I,\"onerror\"),c2(t,\"error\",I);function R(){t.removeListener(\"finish\",T),L()}f(R,\"onclose\"),t.once(\"close\",R);function T(){Be(\"onfinish\"),t.removeListener(\"close\",R),L()}f(T,\"onfinish\"),t.once(\"finish\",T);function L(){Be(\"unpipe\"),r.unpipe(t)}return f(L,\"unpipe\"),t.emit(\"pipe\",r),a.flowing||(Be(\"pipe resume\"),r.resume()),t};function m2(t){return function(){var e=t._readableState;Be(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&to(t,\"data\")&&(e.flowing=!0,Bn(t))}}f(m2,\"pipeOnDrain\");Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r),this);if(!t){var a=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)a[s].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var c=oo(e.pipes,t);return c===-1?this:(e.pipes.splice(c,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r),this)};Pe.prototype.on=function(t,e){var r=qn.prototype.on.call(this,t,e);if(t===\"data\")this._readableState.flowing!==!1&&this.resume();else if(t===\"readable\"){var a=this._readableState;!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&Ya(this):li.nextTick(y2,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function y2(t){Be(\"readable nexttick read 0\"),t.read(0)}f(y2,\"nReadingNextTick\");Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Be(\"resume\"),t.flowing=!0,g2(this,t)),this};function g2(t,e){e.resumeScheduled||(e.resumeScheduled=!0,li.nextTick(_2,t,e))}f(g2,\"resume\");function _2(t,e){e.reading||(Be(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),Bn(t),e.flowing&&!e.reading&&t.read(0)}f(_2,\"resume_\");Pe.prototype.pause=function(){return Be(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(Be(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this};function Bn(t){var e=t._readableState;for(Be(\"flow\",e.flowing);e.flowing&&t.read()!==null;);}f(Bn,\"flow\");Pe.prototype.wrap=function(t){var e=this,r=this._readableState,a=!1;t.on(\"end\",function(){if(Be(\"wrapped end\"),r.decoder&&!r.ended){var c=r.decoder.end();c&&c.length&&e.push(c)}e.push(null)}),t.on(\"data\",function(c){if(Be(\"wrapped data\"),r.decoder&&(c=r.decoder.write(c)),!(r.objectMode&&c==null)&&!(!r.objectMode&&(!c||!c.length))){var p=e.push(c);p||(a=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]==\"function\"&&(this[i]=(function(c){return function(){return t[c].apply(t,arguments)}})(i));for(var s=0;s<Sn.length;s++)t.on(Sn[s],this.emit.bind(this,Sn[s]));return this._read=function(c){Be(\"wrapped _read\",c),a&&(a=!1,t.resume())},this};Object.defineProperty(Pe.prototype,\"readableHighWaterMark\",{enumerable:!1,get:f(function(){return this._readableState.highWaterMark},\"get\")});Pe._fromList=so;function so(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(\"\"):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=w2(t,e.buffer,e.decoder),r}f(so,\"fromList\");function w2(t,e,r){var a;return t<e.head.data.length?(a=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?a=e.shift():a=r?x2(t,e):M2(t,e),a}f(w2,\"fromListPartial\");function x2(t,e){var r=e.head,a=1,i=r.data;for(t-=i.length;r=r.next;){var s=r.data,c=t>s.length?s.length:t;if(c===s.length?i+=s:i+=s.slice(0,t),t-=c,t===0){c===s.length?(++a,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(c));break}++a}return e.length-=a,i}f(x2,\"copyFromBufferString\");function M2(t,e){var r=na.allocUnsafe(t),a=e.head,i=1;for(a.data.copy(r),t-=a.data.length;a=a.next;){var s=a.data,c=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,c),t-=c,t===0){c===s.length?(++i,a.next?e.head=a.next:e.head=e.tail=null):(e.head=a,a.data=s.slice(c));break}++i}return e.length-=i,r}f(M2,\"copyFromBuffer\");function En(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,li.nextTick(S2,e,t))}f(En,\"endReadable\");function S2(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}f(S2,\"endReadableNT\");function oo(t,e){for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1}f(oo,\"indexOf\")});var kn=k((e5,lo)=>{\"use strict\";M();lo.exports=Jt;var $a=Ur(),uo=Object.create(di());uo.inherits=Se();uo.inherits(Jt,$a);function A2(t,e){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(!a)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),a(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}f(A2,\"afterTransform\");function Jt(t){if(!(this instanceof Jt))return new Jt(t);$a.call(this,t),this._transformState={afterTransform:A2.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform==\"function\"&&(this._transform=t.transform),typeof t.flush==\"function\"&&(this._flush=t.flush)),this.on(\"prefinish\",E2)}f(Jt,\"Transform\");function E2(){var t=this;typeof this._flush==\"function\"?this._flush(function(e,r){co(t,e,r)}):co(this,null,null)}f(E2,\"prefinish\");Jt.prototype.push=function(t,e){return this._transformState.needTransform=!1,$a.prototype.push.call(this,t,e)};Jt.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")};Jt.prototype._write=function(t,e,r){var a=this._transformState;if(a.writecb=r,a.writechunk=t,a.writeencoding=e,!a.transforming){var i=this._readableState;(a.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Jt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Jt.prototype._destroy=function(t,e){var r=this;$a.prototype._destroy.call(this,t,function(a){e(a),r.emit(\"close\")})};function co(t,e,r){if(e)return t.emit(\"error\",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}f(co,\"done\")});var mo=k((i5,bo)=>{\"use strict\";M();bo.exports=sa;var vo=kn(),po=Object.create(di());po.inherits=Se();po.inherits(sa,vo);function sa(t){if(!(this instanceof sa))return new sa(t);vo.call(this,t)}f(sa,\"PassThrough\");sa.prototype._transform=function(t,e,r){r(null,t)}});var In=k((Ot,yo)=>{M();Ot=yo.exports=xn();Ot.Stream=Ot;Ot.Readable=Ot;Ot.Writable=gn();Ot.Duplex=Ur();Ot.Transform=kn();Ot.PassThrough=mo()});var Rn=k((s5,_o)=>{\"use strict\";M();var q2=xe().Buffer,B2=ks(),go=In().Transform,k2=Se();function ur(t){go.call(this),this._block=q2.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}f(ur,\"HashBase\");k2(ur,go);ur.prototype._transform=function(t,e,r){var a=null;try{this.update(t,e)}catch(i){a=i}r(a)};ur.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};ur.prototype.update=function(t,e){if(this._finalized)throw new Error(\"Digest already called\");for(var r=B2(t,e),a=this._block,i=0;this._blockOffset+r.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)a[s]=r[i],s+=1,i+=1;this._update(),this._blockOffset=0}for(;i<r.length;)a[this._blockOffset]=r[i],this._blockOffset+=1,i+=1;for(var c=0,p=r.length*8;p>0;++c)this._length[c]+=p,p=this._length[c]/4294967296|0,p>0&&(this._length[c]-=4294967296*p);return this};ur.prototype._update=function(){throw new Error(\"_update is not implemented\")};ur.prototype.digest=function(t){if(this._finalized)throw new Error(\"Digest already called\");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};ur.prototype._digest=function(){throw new Error(\"_digest is not implemented\")};_o.exports=ur});var tf=k((d5,xo)=>{\"use strict\";M();var I2=Se(),wo=Rn(),R2=xe().Buffer,C2=new Array(16);function Qa(){wo.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}f(Qa,\"MD5\");I2(Qa,wo);Qa.prototype._update=function(){for(var t=C2,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,a=this._b,i=this._c,s=this._d;r=$e(r,a,i,s,t[0],3614090360,7),s=$e(s,r,a,i,t[1],3905402710,12),i=$e(i,s,r,a,t[2],606105819,17),a=$e(a,i,s,r,t[3],3250441966,22),r=$e(r,a,i,s,t[4],4118548399,7),s=$e(s,r,a,i,t[5],1200080426,12),i=$e(i,s,r,a,t[6],2821735955,17),a=$e(a,i,s,r,t[7],4249261313,22),r=$e(r,a,i,s,t[8],1770035416,7),s=$e(s,r,a,i,t[9],2336552879,12),i=$e(i,s,r,a,t[10],4294925233,17),a=$e(a,i,s,r,t[11],2304563134,22),r=$e(r,a,i,s,t[12],1804603682,7),s=$e(s,r,a,i,t[13],4254626195,12),i=$e(i,s,r,a,t[14],2792965006,17),a=$e(a,i,s,r,t[15],1236535329,22),r=Qe(r,a,i,s,t[1],4129170786,5),s=Qe(s,r,a,i,t[6],3225465664,9),i=Qe(i,s,r,a,t[11],643717713,14),a=Qe(a,i,s,r,t[0],3921069994,20),r=Qe(r,a,i,s,t[5],3593408605,5),s=Qe(s,r,a,i,t[10],38016083,9),i=Qe(i,s,r,a,t[15],3634488961,14),a=Qe(a,i,s,r,t[4],3889429448,20),r=Qe(r,a,i,s,t[9],568446438,5),s=Qe(s,r,a,i,t[14],3275163606,9),i=Qe(i,s,r,a,t[3],4107603335,14),a=Qe(a,i,s,r,t[8],1163531501,20),r=Qe(r,a,i,s,t[13],2850285829,5),s=Qe(s,r,a,i,t[2],4243563512,9),i=Qe(i,s,r,a,t[7],1735328473,14),a=Qe(a,i,s,r,t[12],2368359562,20),r=et(r,a,i,s,t[5],4294588738,4),s=et(s,r,a,i,t[8],2272392833,11),i=et(i,s,r,a,t[11],1839030562,16),a=et(a,i,s,r,t[14],4259657740,23),r=et(r,a,i,s,t[1],2763975236,4),s=et(s,r,a,i,t[4],1272893353,11),i=et(i,s,r,a,t[7],4139469664,16),a=et(a,i,s,r,t[10],3200236656,23),r=et(r,a,i,s,t[13],681279174,4),s=et(s,r,a,i,t[0],3936430074,11),i=et(i,s,r,a,t[3],3572445317,16),a=et(a,i,s,r,t[6],76029189,23),r=et(r,a,i,s,t[9],3654602809,4),s=et(s,r,a,i,t[12],3873151461,11),i=et(i,s,r,a,t[15],530742520,16),a=et(a,i,s,r,t[2],3299628645,23),r=tt(r,a,i,s,t[0],4096336452,6),s=tt(s,r,a,i,t[7],1126891415,10),i=tt(i,s,r,a,t[14],2878612391,15),a=tt(a,i,s,r,t[5],4237533241,21),r=tt(r,a,i,s,t[12],1700485571,6),s=tt(s,r,a,i,t[3],2399980690,10),i=tt(i,s,r,a,t[10],4293915773,15),a=tt(a,i,s,r,t[1],2240044497,21),r=tt(r,a,i,s,t[8],1873313359,6),s=tt(s,r,a,i,t[15],4264355552,10),i=tt(i,s,r,a,t[6],2734768916,15),a=tt(a,i,s,r,t[13],1309151649,21),r=tt(r,a,i,s,t[4],4149444226,6),s=tt(s,r,a,i,t[11],3174756917,10),i=tt(i,s,r,a,t[2],718787259,15),a=tt(a,i,s,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+a|0,this._c=this._c+i|0,this._d=this._d+s|0};Qa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=R2.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function ef(t,e){return t<<e|t>>>32-e}f(ef,\"rotl\");function $e(t,e,r,a,i,s,c){return ef(t+(e&r|~e&a)+i+s|0,c)+e|0}f($e,\"fnF\");function Qe(t,e,r,a,i,s,c){return ef(t+(e&a|r&~a)+i+s|0,c)+e|0}f(Qe,\"fnG\");function et(t,e,r,a,i,s,c){return ef(t+(e^r^a)+i+s|0,c)+e|0}f(et,\"fnH\");function tt(t,e,r,a,i,s,c){return ef(t+(r^(e|~a))+i+s|0,c)+e|0}f(tt,\"fnI\");xo.exports=Qa});var af=k((l5,ko)=>{\"use strict\";M();var Cn=(cr(),hr(dr)).Buffer,D2=Se(),Bo=Rn(),P2=new Array(16),oa=[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],ha=[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],da=[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],ca=[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],ua=[0,1518500249,1859775393,2400959708,2840853838],la=[1352829926,1548603684,1836072691,2053994217,0];function zr(t,e){return t<<e|t>>>32-e}f(zr,\"rotl\");function Mo(t,e,r,a,i,s,c,p){return zr(t+(e^r^a)+s+c|0,p)+i|0}f(Mo,\"fn1\");function So(t,e,r,a,i,s,c,p){return zr(t+(e&r|~e&a)+s+c|0,p)+i|0}f(So,\"fn2\");function Ao(t,e,r,a,i,s,c,p){return zr(t+((e|~r)^a)+s+c|0,p)+i|0}f(Ao,\"fn3\");function Eo(t,e,r,a,i,s,c,p){return zr(t+(e&a|r&~a)+s+c|0,p)+i|0}f(Eo,\"fn4\");function qo(t,e,r,a,i,s,c,p){return zr(t+(e^(r|~a))+s+c|0,p)+i|0}f(qo,\"fn5\");function rf(){Bo.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}f(rf,\"RIPEMD160\");D2(rf,Bo);rf.prototype._update=function(){for(var t=P2,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=this._a|0,_=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,B=0;B<80;B+=1){var I,R;B<16?(I=Mo(r,a,i,s,c,t[oa[B]],ua[0],da[B]),R=qo(p,_,S,A,q,t[ha[B]],la[0],ca[B])):B<32?(I=So(r,a,i,s,c,t[oa[B]],ua[1],da[B]),R=Eo(p,_,S,A,q,t[ha[B]],la[1],ca[B])):B<48?(I=Ao(r,a,i,s,c,t[oa[B]],ua[2],da[B]),R=Ao(p,_,S,A,q,t[ha[B]],la[2],ca[B])):B<64?(I=Eo(r,a,i,s,c,t[oa[B]],ua[3],da[B]),R=So(p,_,S,A,q,t[ha[B]],la[3],ca[B])):(I=qo(r,a,i,s,c,t[oa[B]],ua[4],da[B]),R=Mo(p,_,S,A,q,t[ha[B]],la[4],ca[B])),r=c,c=s,s=zr(i,10),i=a,a=I,p=q,q=A,A=zr(S,10),S=_,_=R}var T=this._b+i+A|0;this._b=this._c+s+q|0,this._c=this._d+c+p|0,this._d=this._e+r+_|0,this._e=this._a+a+S|0,this._a=T};rf.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 t=Cn.alloc?Cn.alloc(20):new Cn(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};ko.exports=rf});var Fr=k((b5,Io)=>{\"use strict\";M();var T2=xe().Buffer,N2=ea();function ff(t,e){this._block=T2.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}f(ff,\"Hash\");ff.prototype.update=function(t,e){t=N2(t,e||\"utf8\");for(var r=this._block,a=this._blockSize,i=t.length,s=this._len,c=0;c<i;){for(var p=s%a,_=Math.min(i-c,a-p),S=0;S<_;S++)r[p+S]=t[c+S];s+=_,c+=_,s%a===0&&this._update(r)}return this._len+=i,this};ff.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var a=(r&4294967295)>>>0,i=(r-a)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s};ff.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};Io.exports=ff});var Do=k((g5,Co)=>{\"use strict\";M();var O2=Se(),Ro=Fr(),L2=xe().Buffer,U2=[1518500249,1859775393,-1894007588,-899497514],z2=new Array(80);function va(){this.init(),this._w=z2,Ro.call(this,64,56)}f(va,\"Sha\");O2(va,Ro);va.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F2(t){return t<<5|t>>>27}f(F2,\"rotl5\");function H2(t){return t<<30|t>>>2}f(H2,\"rotl30\");function K2(t,e,r,a){return t===0?e&r|~e&a:t===2?e&r|e&a|r&a:e^r^a}f(K2,\"ft\");va.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=0;p<16;++p)e[p]=t.readInt32BE(p*4);for(;p<80;++p)e[p]=e[p-3]^e[p-8]^e[p-14]^e[p-16];for(var _=0;_<80;++_){var S=~~(_/20),A=F2(r)+K2(S,a,i,s)+c+e[_]+U2[S]|0;c=s,s=i,i=H2(a),a=r,r=A}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};va.prototype._hash=function(){var t=L2.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Co.exports=va});var No=k((x5,To)=>{\"use strict\";M();var j2=Se(),Po=Fr(),V2=xe().Buffer,W2=[1518500249,1859775393,-1894007588,-899497514],Z2=new Array(80);function pa(){this.init(),this._w=Z2,Po.call(this,64,56)}f(pa,\"Sha1\");j2(pa,Po);pa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function X2(t){return t<<1|t>>>31}f(X2,\"rotl1\");function G2(t){return t<<5|t>>>27}f(G2,\"rotl5\");function J2(t){return t<<30|t>>>2}f(J2,\"rotl30\");function Y2(t,e,r,a){return t===0?e&r|~e&a:t===2?e&r|e&a|r&a:e^r^a}f(Y2,\"ft\");pa.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=0;p<16;++p)e[p]=t.readInt32BE(p*4);for(;p<80;++p)e[p]=X2(e[p-3]^e[p-8]^e[p-14]^e[p-16]);for(var _=0;_<80;++_){var S=~~(_/20),A=G2(r)+Y2(S,a,i,s)+c+e[_]+W2[S]|0;c=s,s=i,i=J2(a),a=r,r=A}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0};pa.prototype._hash=function(){var t=V2.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};To.exports=pa});var Dn=k((A5,Lo)=>{\"use strict\";M();var $2=Se(),Oo=Fr(),Q2=xe().Buffer,ev=[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],tv=new Array(64);function ba(){this.init(),this._w=tv,Oo.call(this,64,56)}f(ba,\"Sha256\");$2(ba,Oo);ba.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function rv(t,e,r){return r^t&(e^r)}f(rv,\"ch\");function iv(t,e,r){return t&e|r&(t|e)}f(iv,\"maj\");function av(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}f(av,\"sigma0\");function fv(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}f(fv,\"sigma1\");function nv(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}f(nv,\"gamma0\");function sv(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}f(sv,\"gamma1\");ba.prototype._update=function(t){for(var e=this._w,r=this._a|0,a=this._b|0,i=this._c|0,s=this._d|0,c=this._e|0,p=this._f|0,_=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=sv(e[A-2])+e[A-7]+nv(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var B=S+fv(c)+rv(c,p,_)+ev[q]+e[q]|0,I=av(r)+iv(r,a,i)|0;S=_,_=p,p=c,c=s+B|0,s=i,i=a,a=r,r=B+I|0}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=_+this._g|0,this._h=S+this._h|0};ba.prototype._hash=function(){var t=Q2.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};Lo.exports=ba});var zo=k((B5,Uo)=>{\"use strict\";M();var ov=Se(),hv=Dn(),dv=Fr(),cv=xe().Buffer,uv=new Array(64);function nf(){this.init(),this._w=uv,dv.call(this,64,56)}f(nf,\"Sha224\");ov(nf,hv);nf.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};nf.prototype._hash=function(){var t=cv.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};Uo.exports=nf});var Pn=k((R5,Zo)=>{\"use strict\";M();var lv=Se(),Wo=Fr(),vv=xe().Buffer,Fo=[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],pv=new Array(160);function ma(){this.init(),this._w=pv,Wo.call(this,128,112)}f(ma,\"Sha512\");lv(ma,Wo);ma.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ho(t,e,r){return r^t&(e^r)}f(Ho,\"Ch\");function Ko(t,e,r){return t&e|r&(t|e)}f(Ko,\"maj\");function jo(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}f(jo,\"sigma0\");function Vo(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}f(Vo,\"sigma1\");function bv(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}f(bv,\"Gamma0\");function mv(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}f(mv,\"Gamma0l\");function yv(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}f(yv,\"Gamma1\");function gv(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}f(gv,\"Gamma1l\");function Ke(t,e){return t>>>0<e>>>0?1:0}f(Ke,\"getCarry\");ma.prototype._update=function(t){for(var e=this._w,r=this._ah|0,a=this._bh|0,i=this._ch|0,s=this._dh|0,c=this._eh|0,p=this._fh|0,_=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,B=this._cl|0,I=this._dl|0,R=this._el|0,T=this._fl|0,L=this._gl|0,N=this._hl|0,z=0;z<32;z+=2)e[z]=t.readInt32BE(z*4),e[z+1]=t.readInt32BE(z*4+4);for(;z<160;z+=2){var Ee=e[z-30],qe=e[z-30+1],De=bv(Ee,qe),ke=mv(qe,Ee);Ee=e[z-4],qe=e[z-4+1];var Ue=yv(Ee,qe),Ae=gv(qe,Ee),Le=e[z-14],E=e[z-14+1],d=e[z-32],y=e[z-32+1],l=ke+E|0,n=De+Le+Ke(l,ke)|0;l=l+Ae|0,n=n+Ue+Ke(l,Ae)|0,l=l+y|0,n=n+d+Ke(l,y)|0,e[z]=n,e[z+1]=l}for(var h=0;h<160;h+=2){n=e[h],l=e[h+1];var v=Ko(r,a,i),m=Ko(A,q,B),b=jo(r,A),o=jo(A,r),g=Vo(c,R),w=Vo(R,c),u=Fo[h],x=Fo[h+1],C=Ho(c,p,_),P=Ho(R,T,L),D=N+w|0,U=S+g+Ke(D,N)|0;D=D+P|0,U=U+C+Ke(D,P)|0,D=D+x|0,U=U+u+Ke(D,x)|0,D=D+l|0,U=U+n+Ke(D,l)|0;var O=o+m|0,F=b+v+Ke(O,o)|0;S=_,N=L,_=p,L=T,p=c,T=R,R=I+D|0,c=s+U+Ke(R,I)|0,s=i,I=B,i=a,B=q,a=r,q=A,A=D+O|0,r=U+F+Ke(A,D)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+B|0,this._dl=this._dl+I|0,this._el=this._el+R|0,this._fl=this._fl+T|0,this._gl=this._gl+L|0,this._hl=this._hl+N|0,this._ah=this._ah+r+Ke(this._al,A)|0,this._bh=this._bh+a+Ke(this._bl,q)|0,this._ch=this._ch+i+Ke(this._cl,B)|0,this._dh=this._dh+s+Ke(this._dl,I)|0,this._eh=this._eh+c+Ke(this._el,R)|0,this._fh=this._fh+p+Ke(this._fl,T)|0,this._gh=this._gh+_+Ke(this._gl,L)|0,this._hh=this._hh+S+Ke(this._hl,N)|0};ma.prototype._hash=function(){var t=vv.allocUnsafe(64);function e(r,a,i){t.writeInt32BE(r,i),t.writeInt32BE(a,i+4)}return f(e,\"writeInt64BE\"),e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};Zo.exports=ma});var Go=k((P5,Xo)=>{\"use strict\";M();var _v=Se(),wv=Pn(),xv=Fr(),Mv=xe().Buffer,Sv=new Array(160);function sf(){this.init(),this._w=Sv,xv.call(this,128,112)}f(sf,\"Sha384\");_v(sf,wv);sf.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};sf.prototype._hash=function(){var t=Mv.allocUnsafe(48);function e(r,a,i){t.writeInt32BE(r,i),t.writeInt32BE(a,i+4)}return f(e,\"writeInt64BE\"),e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};Xo.exports=sf});var of=k((O5,Yt)=>{\"use strict\";M();Yt.exports=f(function(e){var r=e.toLowerCase(),a=Yt.exports[r];if(!a)throw new Error(r+\" is not supported (we accept pull requests)\");return new a},\"SHA\");Yt.exports.sha=Do();Yt.exports.sha1=No();Yt.exports.sha224=zo();Yt.exports.sha256=Dn();Yt.exports.sha384=Go();Yt.exports.sha512=Pn()});var $t=k((z5,Yo)=>{\"use strict\";M();var Av=xe().Buffer,Jo=e1().Transform,Ev=hn().StringDecoder,qv=Se(),Bv=ea();function St(t){Jo.call(this),this.hashMode=typeof t==\"string\",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}f(St,\"CipherBase\");qv(St,Jo);St.prototype.update=function(t,e,r){var a=Bv(t,e),i=this._update(a);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};St.prototype.setAutoPadding=function(){};St.prototype.getAuthTag=function(){throw new Error(\"trying to get auth tag in unsupported state\")};St.prototype.setAuthTag=function(){throw new Error(\"trying to set auth tag in unsupported state\")};St.prototype.setAAD=function(){throw new Error(\"trying to set aad in unsupported state\")};St.prototype._transform=function(t,e,r){var a;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){a=i}finally{r(a)}};St.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};St.prototype._finalOrDigest=function(t){var e=this.__final()||Av.alloc(0);return t&&(e=this._toString(e,t,!0)),e};St.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new Ev(e),this._encoding=e),this._encoding!==e)throw new Error(\"can\\u2019t switch encodings\");var a=this._decoder.write(t);return r&&(a+=this._decoder.end()),a};Yo.exports=St});var vi=k((K5,Qo)=>{\"use strict\";M();var kv=Se(),Iv=tf(),Rv=af(),Cv=of(),$o=$t();function hf(t){$o.call(this,\"digest\"),this._hash=t}f(hf,\"Hash\");kv(hf,$o);hf.prototype._update=function(t){this._hash.update(t)};hf.prototype._final=function(){return this._hash.digest()};Qo.exports=f(function(e){return e=e.toLowerCase(),e===\"md5\"?new Iv:e===\"rmd160\"||e===\"ripemd160\"?new Rv:new hf(Cv(e))},\"createHash\")});var rh=k((W5,th)=>{\"use strict\";M();var Dv=Se(),Hr=xe().Buffer,eh=$t(),Pv=Hr.alloc(128),pi=64;function df(t,e){eh.call(this,\"digest\"),typeof e==\"string\"&&(e=Hr.from(e)),this._alg=t,this._key=e,e.length>pi?e=t(e):e.length<pi&&(e=Hr.concat([e,Pv],pi));for(var r=this._ipad=Hr.allocUnsafe(pi),a=this._opad=Hr.allocUnsafe(pi),i=0;i<pi;i++)r[i]=e[i]^54,a[i]=e[i]^92;this._hash=[r]}f(df,\"Hmac\");Dv(df,eh);df.prototype._update=function(t){this._hash.push(t)};df.prototype._final=function(){var t=this._alg(Hr.concat(this._hash));return this._alg(Hr.concat([this._opad,t]))};th.exports=df});var Tn=k((G5,ih)=>{M();var Tv=tf();ih.exports=function(t){return new Tv().update(t).digest()}});var Ln=k((Y5,fh)=>{\"use strict\";M();var Nv=Se(),Ov=rh(),ah=$t(),ya=xe().Buffer,Lv=Tn(),Nn=af(),On=of(),Uv=ya.alloc(128);function ga(t,e){ah.call(this,\"digest\"),typeof e==\"string\"&&(e=ya.from(e));var r=t===\"sha512\"||t===\"sha384\"?128:64;if(this._alg=t,this._key=e,e.length>r){var a=t===\"rmd160\"?new Nn:On(t);e=a.update(e).digest()}else e.length<r&&(e=ya.concat([e,Uv],r));for(var i=this._ipad=ya.allocUnsafe(r),s=this._opad=ya.allocUnsafe(r),c=0;c<r;c++)i[c]=e[c]^54,s[c]=e[c]^92;this._hash=t===\"rmd160\"?new Nn:On(t),this._hash.update(i)}f(ga,\"Hmac\");Nv(ga,ah);ga.prototype._update=function(t){this._hash.update(t)};ga.prototype._final=function(){var t=this._hash.digest(),e=this._alg===\"rmd160\"?new Nn:On(this._alg);return e.update(this._opad).update(t).digest()};fh.exports=f(function(e,r){return e=e.toLowerCase(),e===\"rmd160\"||e===\"ripemd160\"?new ga(\"rmd160\",r):e===\"md5\"?new Ov(Lv,r):new ga(e,r)},\"createHmac\")});var Un=k((e9,zv)=>{zv.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/rsa\",hash:\"sha256\",id:\"3031300d060960864801650304020105000420\"},sha224:{sign:\"ecdsa/rsa\",hash:\"sha224\",id:\"302d300d06096086480165030402040500041c\"},sha384:{sign:\"ecdsa/rsa\",hash:\"sha384\",id:\"3041300d060960864801650304020205000430\"},sha512:{sign:\"ecdsa/rsa\",hash:\"sha512\",id:\"3051300d060960864801650304020305000440\"},\"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\"}}});var sh=k((t9,nh)=>{\"use strict\";M();nh.exports=Un()});var zn=k((i9,oh)=>{\"use strict\";M();var Fv=isFinite,Hv=Math.pow(2,30)-1;oh.exports=function(t,e){if(typeof t!=\"number\")throw new TypeError(\"Iterations not a number\");if(t<0||!Fv(t))throw new TypeError(\"Bad iterations\");if(typeof e!=\"number\")throw new TypeError(\"Key length not a number\");if(e<0||e>Hv||e!==e)throw new TypeError(\"Bad key length\");return e+0}});var Fn=k((f9,dh)=>{\"use strict\";M();var cf;globalThis.process&&globalThis.process.browser?cf=\"utf-8\":globalThis.process&&globalThis.process.version?(hh=parseInt(process.version.split(\".\")[0].slice(1),10),cf=hh>=6?\"utf-8\":\"binary\"):cf=\"utf-8\";var hh;dh.exports=cf});var Hn=k((s9,lh)=>{\"use strict\";M();var Kv=xe().Buffer,jv=ea(),uh=typeof Uint8Array<\"u\",Vv=uh&&typeof ArrayBuffer<\"u\",ch=Vv&&ArrayBuffer.isView;lh.exports=function(t,e,r){if(typeof t==\"string\"||Kv.isBuffer(t)||uh&&t instanceof Uint8Array||ch&&ch(t))return jv(t,e);throw new TypeError(r+\" must be a string, a Buffer, a Uint8Array, or a DataView\")}});var Kn=k((h9,mh)=>{\"use strict\";M();var Wv=Tn(),Zv=af(),Xv=of(),Kr=xe().Buffer,Gv=zn(),vh=Fn(),ph=Hn(),Jv=Kr.alloc(128),uf={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,\"sha512-256\":32,ripemd160:20,rmd160:20},Yv={__proto__:null,\"sha-1\":\"sha1\",\"sha-224\":\"sha224\",\"sha-256\":\"sha256\",\"sha-384\":\"sha384\",\"sha-512\":\"sha512\",\"ripemd-160\":\"ripemd160\"};function $v(t){return new Zv().update(t).digest()}f($v,\"rmd160Func\");function Qv(t){function e(r){return Xv(t).update(r).digest()}return f(e,\"shaFunc\"),t===\"rmd160\"||t===\"ripemd160\"?$v:t===\"md5\"?Wv:e}f(Qv,\"getDigest\");function bh(t,e,r){var a=Qv(t),i=t===\"sha512\"||t===\"sha384\"?128:64;e.length>i?e=a(e):e.length<i&&(e=Kr.concat([e,Jv],i));for(var s=Kr.allocUnsafe(i+uf[t]),c=Kr.allocUnsafe(i+uf[t]),p=0;p<i;p++)s[p]=e[p]^54,c[p]=e[p]^92;var _=Kr.allocUnsafe(i+r+4);s.copy(_,0,0,i),this.ipad1=_,this.ipad2=s,this.opad=c,this.alg=t,this.blocksize=i,this.hash=a,this.size=uf[t]}f(bh,\"Hmac\");bh.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function ep(t,e,r,a,i){a=Gv(r,a),t=ph(t,vh,\"Password\"),e=ph(e,vh,\"Salt\");var s=(i||\"sha1\").toLowerCase(),c=Yv[s]||s,p=uf[c];if(typeof p!=\"number\"||!p)throw new TypeError(\"Digest algorithm not supported: \"+i);var _=new bh(c,t,e.length),S=Kr.allocUnsafe(a),A=Kr.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,B=p,I=Math.ceil(a/B),R=1;R<=I;R++){A.writeUInt32BE(R,e.length);for(var T=_.run(A,_.ipad1),L=T,N=1;N<r;N++){L=_.run(L,_.ipad2);for(var z=0;z<B;z++)T[z]^=L[z]}T.copy(S,q),q+=B}return S}f(ep,\"pbkdf2\");mh.exports=ep});var Sh=k((u9,Mh)=>{\"use strict\";M();var wh=xe().Buffer,tp=zn(),yh=Fn(),gh=Kn(),_h=Hn(),lf,_a=globalThis.crypto&&globalThis.crypto.subtle,rp={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\"},jn=[],jr;function Vn(){return jr||(globalThis.process&&globalThis.process.nextTick?jr=globalThis.process.nextTick:globalThis.queueMicrotask?jr=globalThis.queueMicrotask:globalThis.setImmediate?jr=globalThis.setImmediate:jr=globalThis.setTimeout,jr)}f(Vn,\"getNextTick\");function xh(t,e,r,a,i){return _a.importKey(\"raw\",t,{name:\"PBKDF2\"},!1,[\"deriveBits\"]).then(function(s){return _a.deriveBits({name:\"PBKDF2\",salt:e,iterations:r,hash:{name:i}},s,a<<3)}).then(function(s){return wh.from(s)})}f(xh,\"browserPbkdf2\");function ip(t){if(globalThis.process&&!globalThis.process.browser||!_a||!_a.importKey||!_a.deriveBits)return Promise.resolve(!1);if(jn[t]!==void 0)return jn[t];lf=lf||wh.alloc(8);var e=xh(lf,lf,10,128,t).then(function(){return!0},function(){return!1});return jn[t]=e,e}f(ip,\"checkNative\");function ap(t,e){t.then(function(r){Vn()(function(){e(null,r)})},function(r){Vn()(function(){e(r)})})}f(ap,\"resolvePromise\");Mh.exports=function(t,e,r,a,i,s){if(typeof i==\"function\"&&(s=i,i=void 0),a=tp(r,a),t=_h(t,yh,\"Password\"),e=_h(e,yh,\"Salt\"),typeof s!=\"function\")throw new Error(\"No callback provided to pbkdf2\");i=i||\"sha1\";var c=rp[i.toLowerCase()];if(!c||typeof globalThis.Promise!=\"function\"){Vn()(function(){var p;try{p=gh(t,e,r,a,i)}catch(_){s(_);return}s(null,p)});return}ap(ip(c).then(function(p){return p?xh(t,e,r,a,c):gh(t,e,r,a,i)}),s)}});var Zn=k(Wn=>{\"use strict\";M();Wn.pbkdf2=Sh();Wn.pbkdf2Sync=Kn()});var Xn=k(lt=>{\"use strict\";M();lt.readUInt32BE=f(function(e,r){var a=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return a>>>0},\"readUInt32BE\");lt.writeUInt32BE=f(function(e,r,a){e[0+a]=r>>>24,e[1+a]=r>>>16&255,e[2+a]=r>>>8&255,e[3+a]=r&255},\"writeUInt32BE\");lt.ip=f(function(e,r,a,i){for(var s=0,c=0,p=6;p>=0;p-=2){for(var _=0;_<=24;_+=8)s<<=1,s|=r>>>_+p&1;for(var _=0;_<=24;_+=8)s<<=1,s|=e>>>_+p&1}for(var p=6;p>=0;p-=2){for(var _=1;_<=25;_+=8)c<<=1,c|=r>>>_+p&1;for(var _=1;_<=25;_+=8)c<<=1,c|=e>>>_+p&1}a[i+0]=s>>>0,a[i+1]=c>>>0},\"ip\");lt.rip=f(function(e,r,a,i){for(var s=0,c=0,p=0;p<4;p++)for(var _=24;_>=0;_-=8)s<<=1,s|=r>>>_+p&1,s<<=1,s|=e>>>_+p&1;for(var p=4;p<8;p++)for(var _=24;_>=0;_-=8)c<<=1,c|=r>>>_+p&1,c<<=1,c|=e>>>_+p&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"rip\");lt.pc1=f(function(e,r,a,i){for(var s=0,c=0,p=7;p>=5;p--){for(var _=0;_<=24;_+=8)s<<=1,s|=r>>_+p&1;for(var _=0;_<=24;_+=8)s<<=1,s|=e>>_+p&1}for(var _=0;_<=24;_+=8)s<<=1,s|=r>>_+p&1;for(var p=1;p<=3;p++){for(var _=0;_<=24;_+=8)c<<=1,c|=r>>_+p&1;for(var _=0;_<=24;_+=8)c<<=1,c|=e>>_+p&1}for(var _=0;_<=24;_+=8)c<<=1,c|=e>>_+p&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"pc1\");lt.r28shl=f(function(e,r){return e<<r&268435455|e>>>28-r},\"r28shl\");var vf=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];lt.pc2=f(function(e,r,a,i){for(var s=0,c=0,p=vf.length>>>1,_=0;_<p;_++)s<<=1,s|=e>>>vf[_]&1;for(var _=p;_<vf.length;_++)c<<=1,c|=r>>>vf[_]&1;a[i+0]=s>>>0,a[i+1]=c>>>0},\"pc2\");lt.expand=f(function(e,r,a){var i=0,s=0;i=(e&1)<<5|e>>>27;for(var c=23;c>=15;c-=4)i<<=6,i|=e>>>c&63;for(var c=11;c>=3;c-=4)s|=e>>>c&63,s<<=6;s|=(e&31)<<1|e>>>31,r[a+0]=i>>>0,r[a+1]=s>>>0},\"expand\");var Ah=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];lt.substitute=f(function(e,r){for(var a=0,i=0;i<4;i++){var s=e>>>18-i*6&63,c=Ah[i*64+s];a<<=4,a|=c}for(var i=0;i<4;i++){var s=r>>>18-i*6&63,c=Ah[256+i*64+s];a<<=4,a|=c}return a>>>0},\"substitute\");var Eh=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];lt.permute=f(function(e){for(var r=0,a=0;a<Eh.length;a++)r<<=1,r|=e>>>Eh[a]&1;return r>>>0},\"permute\");lt.padSplit=f(function(e,r,a){for(var i=e.toString(2);i.length<r;)i=\"0\"+i;for(var s=[],c=0;c<r;c+=a)s.push(i.slice(c,c+a));return s.join(\" \")},\"padSplit\")});var ht=k((_9,Bh)=>{M();Bh.exports=qh;function qh(t,e){if(!t)throw new Error(e||\"Assertion failed\")}f(qh,\"assert\");qh.equal=f(function(e,r,a){if(e!=r)throw new Error(a||\"Assertion failed: \"+e+\" != \"+r)},\"assertEqual\")});var pf=k((M9,kh)=>{\"use strict\";M();var fp=ht();function vt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}f(vt,\"Cipher\");kh.exports=vt;vt.prototype._init=f(function(){},\"_init\");vt.prototype.update=f(function(e){return e.length===0?[]:this.type===\"decrypt\"?this._updateDecrypt(e):this._updateEncrypt(e)},\"update\");vt.prototype._buffer=f(function(e,r){for(var a=Math.min(this.buffer.length-this.bufferOff,e.length-r),i=0;i<a;i++)this.buffer[this.bufferOff+i]=e[r+i];return this.bufferOff+=a,a},\"_buffer\");vt.prototype._flushBuffer=f(function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize},\"_flushBuffer\");vt.prototype._updateEncrypt=f(function(e){var r=0,a=0,i=(this.bufferOff+e.length)/this.blockSize|0,s=new Array(i*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(s,a)));for(var c=e.length-(e.length-r)%this.blockSize;r<c;r+=this.blockSize)this._update(e,r,s,a),a+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return s},\"_updateEncrypt\");vt.prototype._updateDecrypt=f(function(e){for(var r=0,a=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,s=new Array(i*this.blockSize);i>0;i--)r+=this._buffer(e,r),a+=this._flushBuffer(s,a);return r+=this._buffer(e,r),s},\"_updateDecrypt\");vt.prototype.final=f(function(e){var r;e&&(r=this.update(e));var a;return this.type===\"encrypt\"?a=this._finalEncrypt():a=this._finalDecrypt(),r?r.concat(a):a},\"final\");vt.prototype._pad=f(function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0},\"_pad\");vt.prototype._finalEncrypt=f(function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},\"_finalEncrypt\");vt.prototype._unpad=f(function(e){return e},\"_unpad\");vt.prototype._finalDecrypt=f(function(){fp.equal(this.bufferOff,this.blockSize,\"Not enough data to decrypt\");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)},\"_finalDecrypt\")});var Gn=k((E9,Ch)=>{\"use strict\";M();var Ih=ht(),np=Se(),He=Xn(),Rh=pf();function sp(){this.tmp=new Array(2),this.keys=null}f(sp,\"DESState\");function Lt(t){Rh.call(this,t);var e=new sp;this._desState=e,this.deriveKeys(e,t.key)}f(Lt,\"DES\");np(Lt,Rh);Ch.exports=Lt;Lt.create=f(function(e){return new Lt(e)},\"create\");var op=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Lt.prototype.deriveKeys=f(function(e,r){e.keys=new Array(32),Ih.equal(r.length,this.blockSize,\"Invalid key length\");var a=He.readUInt32BE(r,0),i=He.readUInt32BE(r,4);He.pc1(a,i,e.tmp,0),a=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var c=op[s>>>1];a=He.r28shl(a,c),i=He.r28shl(i,c),He.pc2(a,i,e.keys,s)}},\"deriveKeys\");Lt.prototype._update=f(function(e,r,a,i){var s=this._desState,c=He.readUInt32BE(e,r),p=He.readUInt32BE(e,r+4);He.ip(c,p,s.tmp,0),c=s.tmp[0],p=s.tmp[1],this.type===\"encrypt\"?this._encrypt(s,c,p,s.tmp,0):this._decrypt(s,c,p,s.tmp,0),c=s.tmp[0],p=s.tmp[1],He.writeUInt32BE(a,c,i),He.writeUInt32BE(a,p,i+4)},\"_update\");Lt.prototype._pad=f(function(e,r){if(this.padding===!1)return!1;for(var a=e.length-r,i=r;i<e.length;i++)e[i]=a;return!0},\"_pad\");Lt.prototype._unpad=f(function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],a=e.length-r;a<e.length;a++)Ih.equal(e[a],r);return e.slice(0,e.length-r)},\"_unpad\");Lt.prototype._encrypt=f(function(e,r,a,i,s){for(var c=r,p=a,_=0;_<e.keys.length;_+=2){var S=e.keys[_],A=e.keys[_+1];He.expand(p,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=He.substitute(S,A),B=He.permute(q),I=p;p=(c^B)>>>0,c=I}He.rip(p,c,i,s)},\"_encrypt\");Lt.prototype._decrypt=f(function(e,r,a,i,s){for(var c=a,p=r,_=e.keys.length-2;_>=0;_-=2){var S=e.keys[_],A=e.keys[_+1];He.expand(c,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=He.substitute(S,A),B=He.permute(q),I=c;c=(p^B)>>>0,p=I}He.rip(c,p,i,s)},\"_decrypt\")});var Ph=k(Dh=>{\"use strict\";M();var hp=ht(),dp=Se(),bf={};function cp(t){hp.equal(t.length,8,\"Invalid IV length\"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}f(cp,\"CBCState\");function up(t){function e(s){t.call(this,s),this._cbcInit()}f(e,\"CBC\"),dp(e,t);for(var r=Object.keys(bf),a=0;a<r.length;a++){var i=r[a];e.prototype[i]=bf[i]}return e.create=f(function(c){return new e(c)},\"create\"),e}f(up,\"instantiate\");Dh.instantiate=up;bf._cbcInit=f(function(){var e=new cp(this.options.iv);this._cbcState=e},\"_cbcInit\");bf._update=f(function(e,r,a,i){var s=this._cbcState,c=this.constructor.super_.prototype,p=s.iv;if(this.type===\"encrypt\"){for(var _=0;_<this.blockSize;_++)p[_]^=e[r+_];c._update.call(this,p,0,a,i);for(var _=0;_<this.blockSize;_++)p[_]=a[i+_]}else{c._update.call(this,e,r,a,i);for(var _=0;_<this.blockSize;_++)a[i+_]^=p[_];for(var _=0;_<this.blockSize;_++)p[_]=e[r+_]}},\"_update\")});var Oh=k((C9,Nh)=>{\"use strict\";M();var lp=ht(),vp=Se(),Th=pf(),lr=Gn();function pp(t,e){lp.equal(e.length,24,\"Invalid key length\");var r=e.slice(0,8),a=e.slice(8,16),i=e.slice(16,24);t===\"encrypt\"?this.ciphers=[lr.create({type:\"encrypt\",key:r}),lr.create({type:\"decrypt\",key:a}),lr.create({type:\"encrypt\",key:i})]:this.ciphers=[lr.create({type:\"decrypt\",key:i}),lr.create({type:\"encrypt\",key:a}),lr.create({type:\"decrypt\",key:r})]}f(pp,\"EDEState\");function Vr(t){Th.call(this,t);var e=new pp(this.type,this.options.key);this._edeState=e}f(Vr,\"EDE\");vp(Vr,Th);Nh.exports=Vr;Vr.create=f(function(e){return new Vr(e)},\"create\");Vr.prototype._update=f(function(e,r,a,i){var s=this._edeState;s.ciphers[0]._update(e,r,a,i),s.ciphers[1]._update(a,i,a,i),s.ciphers[2]._update(a,i,a,i)},\"_update\");Vr.prototype._pad=lr.prototype._pad;Vr.prototype._unpad=lr.prototype._unpad});var Lh=k(bi=>{\"use strict\";M();bi.utils=Xn();bi.Cipher=pf();bi.DES=Gn();bi.CBC=Ph();bi.EDE=Oh()});var Fh=k((O9,zh)=>{M();var Uh=$t(),Qt=Lh(),bp=Se(),Wr=xe().Buffer,wa={\"des-ede3-cbc\":Qt.CBC.instantiate(Qt.EDE),\"des-ede3\":Qt.EDE,\"des-ede-cbc\":Qt.CBC.instantiate(Qt.EDE),\"des-ede\":Qt.EDE,\"des-cbc\":Qt.CBC.instantiate(Qt.DES),\"des-ecb\":Qt.DES};wa.des=wa[\"des-cbc\"];wa.des3=wa[\"des-ede3-cbc\"];zh.exports=mf;bp(mf,Uh);function mf(t){Uh.call(this);var e=t.mode.toLowerCase(),r=wa[e],a;t.decrypt?a=\"decrypt\":a=\"encrypt\";var i=t.key;Wr.isBuffer(i)||(i=Wr.from(i)),(e===\"des-ede\"||e===\"des-ede-cbc\")&&(i=Wr.concat([i,i.slice(0,8)]));var s=t.iv;Wr.isBuffer(s)||(s=Wr.from(s)),this._des=r.create({key:i,iv:s,type:a})}f(mf,\"DES\");mf.prototype._update=function(t){return Wr.from(this._des.update(t))};mf.prototype._final=function(){return Wr.from(this._des.final())}});var Hh=k(Jn=>{M();Jn.encrypt=function(t,e){return t._cipher.encryptBlock(e)};Jn.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var mi=k((H9,Kh)=>{M();Kh.exports=f(function(e,r){for(var a=Math.min(e.length,r.length),i=new Buffer(a),s=0;s<a;++s)i[s]=e[s]^r[s];return i},\"xor\")});var Vh=k(Yn=>{M();var jh=mi();Yn.encrypt=function(t,e){var r=jh(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};Yn.decrypt=function(t,e){var r=t._prev;t._prev=e;var a=t._cipher.decryptBlock(e);return jh(a,r)}});var Xh=k(Zh=>{M();var xa=xe().Buffer,mp=mi();function Wh(t,e,r){var a=e.length,i=mp(e,t._cache);return t._cache=t._cache.slice(a),t._prev=xa.concat([t._prev,r?e:i]),i}f(Wh,\"encryptStart\");Zh.encrypt=function(t,e,r){for(var a=xa.allocUnsafe(0),i;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=xa.allocUnsafe(0)),t._cache.length<=e.length)i=t._cache.length,a=xa.concat([a,Wh(t,e.slice(0,i),r)]),e=e.slice(i);else{a=xa.concat([a,Wh(t,e,r)]);break}return a}});var Jh=k(Gh=>{M();var $n=xe().Buffer;function yp(t,e,r){var a=t._cipher.encryptBlock(t._prev),i=a[0]^e;return t._prev=$n.concat([t._prev.slice(1),$n.from([r?e:i])]),i}f(yp,\"encryptByte\");Gh.encrypt=function(t,e,r){for(var a=e.length,i=$n.allocUnsafe(a),s=-1;++s<a;)i[s]=yp(t,e[s],r);return i}});var $h=k(Yh=>{M();var yf=xe().Buffer;function gp(t,e,r){for(var a,i=-1,s=8,c=0,p,_;++i<s;)a=t._cipher.encryptBlock(t._prev),p=e&1<<7-i?128:0,_=a[0]^p,c+=(_&128)>>i%8,t._prev=_p(t._prev,r?p:_);return c}f(gp,\"encryptByte\");function _p(t,e){var r=t.length,a=-1,i=yf.allocUnsafe(t.length);for(t=yf.concat([t,yf.from([e])]);++a<r;)i[a]=t[a]<<1|t[a+1]>>7;return i}f(_p,\"shiftIn\");Yh.encrypt=function(t,e,r){for(var a=e.length,i=yf.allocUnsafe(a),s=-1;++s<a;)i[s]=gp(t,e[s],r);return i}});var ed=k(Qh=>{M();var wp=mi();function xp(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}f(xp,\"getBlock\");Qh.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=Buffer.concat([t._cache,xp(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),wp(e,r)}});var Qn=k((f7,td)=>{M();function Mp(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}f(Mp,\"incr32\");td.exports=Mp});var t0=k(id=>{M();var Sp=mi(),rd=xe().Buffer,Ap=Qn();function Ep(t){var e=t._cipher.encryptBlockRaw(t._prev);return Ap(t._prev),e}f(Ep,\"getBlock\");var e0=16;id.encrypt=function(t,e){var r=Math.ceil(e.length/e0),a=t._cache.length;t._cache=rd.concat([t._cache,rd.allocUnsafe(r*e0)]);for(var i=0;i<r;i++){var s=Ep(t),c=a+i*e0;t._cache.writeUInt32BE(s[0],c+0),t._cache.writeUInt32BE(s[1],c+4),t._cache.writeUInt32BE(s[2],c+8),t._cache.writeUInt32BE(s[3],c+12)}var p=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),Sp(e,p)}});var r0=k((c7,qp)=>{qp.exports={\"aes-128-ecb\":{cipher:\"AES\",key:128,iv:0,mode:\"ECB\",type:\"block\"},\"aes-192-ecb\":{cipher:\"AES\",key:192,iv:0,mode:\"ECB\",type:\"block\"},\"aes-256-ecb\":{cipher:\"AES\",key:256,iv:0,mode:\"ECB\",type:\"block\"},\"aes-128-cbc\":{cipher:\"AES\",key:128,iv:16,mode:\"CBC\",type:\"block\"},\"aes-192-cbc\":{cipher:\"AES\",key:192,iv:16,mode:\"CBC\",type:\"block\"},\"aes-256-cbc\":{cipher:\"AES\",key:256,iv:16,mode:\"CBC\",type:\"block\"},aes128:{cipher:\"AES\",key:128,iv:16,mode:\"CBC\",type:\"block\"},aes192:{cipher:\"AES\",key:192,iv:16,mode:\"CBC\",type:\"block\"},aes256:{cipher:\"AES\",key:256,iv:16,mode:\"CBC\",type:\"block\"},\"aes-128-cfb\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-192-cfb\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-256-cfb\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB\",type:\"stream\"},\"aes-128-cfb8\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-192-cfb8\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-256-cfb8\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB8\",type:\"stream\"},\"aes-128-cfb1\":{cipher:\"AES\",key:128,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-192-cfb1\":{cipher:\"AES\",key:192,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-256-cfb1\":{cipher:\"AES\",key:256,iv:16,mode:\"CFB1\",type:\"stream\"},\"aes-128-ofb\":{cipher:\"AES\",key:128,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-192-ofb\":{cipher:\"AES\",key:192,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-256-ofb\":{cipher:\"AES\",key:256,iv:16,mode:\"OFB\",type:\"stream\"},\"aes-128-ctr\":{cipher:\"AES\",key:128,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-192-ctr\":{cipher:\"AES\",key:192,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-256-ctr\":{cipher:\"AES\",key:256,iv:16,mode:\"CTR\",type:\"stream\"},\"aes-128-gcm\":{cipher:\"AES\",key:128,iv:12,mode:\"GCM\",type:\"auth\"},\"aes-192-gcm\":{cipher:\"AES\",key:192,iv:12,mode:\"GCM\",type:\"auth\"},\"aes-256-gcm\":{cipher:\"AES\",key:256,iv:12,mode:\"GCM\",type:\"auth\"}}});var _f=k((u7,ad)=>{M();var Bp={ECB:Hh(),CBC:Vh(),CFB:Xh(),CFB8:Jh(),CFB1:$h(),OFB:ed(),CTR:t0(),GCM:t0()},gf=r0();for(i0 in gf)gf[i0].module=Bp[gf[i0].mode];var i0;ad.exports=gf});var Ma=k((v7,nd)=>{M();var wf=xe().Buffer;function f0(t){wf.isBuffer(t)||(t=wf.from(t));for(var e=t.length/4|0,r=new Array(e),a=0;a<e;a++)r[a]=t.readUInt32BE(a*4);return r}f(f0,\"asUInt32Array\");function a0(t){for(var e=0;e<t.length;t++)t[e]=0}f(a0,\"scrubVec\");function fd(t,e,r,a,i){for(var s=r[0],c=r[1],p=r[2],_=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],B=t[3]^e[3],I,R,T,L,N=4,z=1;z<i;z++)I=s[S>>>24]^c[A>>>16&255]^p[q>>>8&255]^_[B&255]^e[N++],R=s[A>>>24]^c[q>>>16&255]^p[B>>>8&255]^_[S&255]^e[N++],T=s[q>>>24]^c[B>>>16&255]^p[S>>>8&255]^_[A&255]^e[N++],L=s[B>>>24]^c[S>>>16&255]^p[A>>>8&255]^_[q&255]^e[N++],S=I,A=R,q=T,B=L;return I=(a[S>>>24]<<24|a[A>>>16&255]<<16|a[q>>>8&255]<<8|a[B&255])^e[N++],R=(a[A>>>24]<<24|a[q>>>16&255]<<16|a[B>>>8&255]<<8|a[S&255])^e[N++],T=(a[q>>>24]<<24|a[B>>>16&255]<<16|a[S>>>8&255]<<8|a[A&255])^e[N++],L=(a[B>>>24]<<24|a[S>>>16&255]<<16|a[A>>>8&255]<<8|a[q&255])^e[N++],I=I>>>0,R=R>>>0,T=T>>>0,L=L>>>0,[I,R,T,L]}f(fd,\"cryptBlock\");var kp=[0,1,2,4,8,16,32,64,128,27,54],Fe=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],a=[],i=[[],[],[],[]],s=[[],[],[],[]],c=0,p=0,_=0;_<256;++_){var S=p^p<<1^p<<2^p<<3^p<<4;S=S>>>8^S&255^99,r[c]=S,a[S]=c;var A=t[c],q=t[A],B=t[q],I=t[S]*257^S*16843008;i[0][c]=I<<24|I>>>8,i[1][c]=I<<16|I>>>16,i[2][c]=I<<8|I>>>24,i[3][c]=I,I=B*16843009^q*65537^A*257^c*16843008,s[0][S]=I<<24|I>>>8,s[1][S]=I<<16|I>>>16,s[2][S]=I<<8|I>>>24,s[3][S]=I,c===0?c=p=1:(c=A^t[t[t[B^A]]],p^=t[t[p]])}return{SBOX:r,INV_SBOX:a,SUB_MIX:i,INV_SUB_MIX:s}})();function pt(t){this._key=f0(t),this._reset()}f(pt,\"AES\");pt.blockSize=16;pt.keySize=256/8;pt.prototype.blockSize=pt.blockSize;pt.prototype.keySize=pt.keySize;pt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,a=(r+1)*4,i=[],s=0;s<e;s++)i[s]=t[s];for(s=e;s<a;s++){var c=i[s-1];s%e===0?(c=c<<8|c>>>24,c=Fe.SBOX[c>>>24]<<24|Fe.SBOX[c>>>16&255]<<16|Fe.SBOX[c>>>8&255]<<8|Fe.SBOX[c&255],c^=kp[s/e|0]<<24):e>6&&s%e===4&&(c=Fe.SBOX[c>>>24]<<24|Fe.SBOX[c>>>16&255]<<16|Fe.SBOX[c>>>8&255]<<8|Fe.SBOX[c&255]),i[s]=i[s-e]^c}for(var p=[],_=0;_<a;_++){var S=a-_,A=i[S-(_%4?0:4)];_<4||S<=4?p[_]=A:p[_]=Fe.INV_SUB_MIX[0][Fe.SBOX[A>>>24]]^Fe.INV_SUB_MIX[1][Fe.SBOX[A>>>16&255]]^Fe.INV_SUB_MIX[2][Fe.SBOX[A>>>8&255]]^Fe.INV_SUB_MIX[3][Fe.SBOX[A&255]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=p};pt.prototype.encryptBlockRaw=function(t){return t=f0(t),fd(t,this._keySchedule,Fe.SUB_MIX,Fe.SBOX,this._nRounds)};pt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=wf.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};pt.prototype.decryptBlock=function(t){t=f0(t);var e=t[1];t[1]=t[3],t[3]=e;var r=fd(t,this._invKeySchedule,Fe.INV_SUB_MIX,Fe.INV_SBOX,this._nRounds),a=wf.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a};pt.prototype.scrub=function(){a0(this._keySchedule),a0(this._invKeySchedule),a0(this._key)};nd.exports.AES=pt});var hd=k((m7,od)=>{M();var yi=xe().Buffer,Ip=yi.alloc(16,0);function Rp(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}f(Rp,\"toArray\");function sd(t){var e=yi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}f(sd,\"fromArray\");function Sa(t){this.h=t,this.state=yi.alloc(16,0),this.cache=yi.allocUnsafe(0)}f(Sa,\"GHASH\");Sa.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};Sa.prototype._multiply=function(){for(var t=Rp(this.h),e=[0,0,0,0],r,a,i,s=-1;++s<128;){for(a=(this.state[~~(s/8)]&1<<7-s%8)!==0,a&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),i=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,i&&(t[0]=t[0]^225<<24)}this.state=sd(e)};Sa.prototype.update=function(t){this.cache=yi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};Sa.prototype.final=function(t,e){return this.cache.length&&this.ghash(yi.concat([this.cache,Ip],16)),this.ghash(sd([0,t,0,e])),this.state};od.exports=Sa});var n0=k((_7,ud)=>{M();var Cp=Ma(),ft=xe().Buffer,dd=$t(),Dp=Se(),cd=hd(),Pp=mi(),Tp=Qn();function Np(t,e){var r=0;t.length!==e.length&&r++;for(var a=Math.min(t.length,e.length),i=0;i<a;++i)r+=t[i]^e[i];return r}f(Np,\"xorTest\");function Op(t,e,r){if(e.length===12)return t._finID=ft.concat([e,ft.from([0,0,0,1])]),ft.concat([e,ft.from([0,0,0,2])]);var a=new cd(r),i=e.length,s=i%16;a.update(e),s&&(s=16-s,a.update(ft.alloc(s,0))),a.update(ft.alloc(8,0));var c=i*8,p=ft.alloc(8);p.writeUIntBE(c,0,8),a.update(p),t._finID=a.state;var _=ft.from(t._finID);return Tp(_),_}f(Op,\"calcIv\");function Zr(t,e,r,a){dd.call(this);var i=ft.alloc(4,0);this._cipher=new Cp.AES(e);var s=this._cipher.encryptBlock(i);this._ghash=new cd(s),r=Op(this,r,s),this._prev=ft.from(r),this._cache=ft.allocUnsafe(0),this._secCache=ft.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}f(Zr,\"StreamCipher\");Dp(Zr,dd);Zr.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=ft.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};Zr.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error(\"Unsupported state or unable to authenticate data\");var t=Pp(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&Np(t,this._authTag))throw new Error(\"Unsupported state or unable to authenticate data\");this._authTag=t,this._cipher.scrub()};Zr.prototype.getAuthTag=f(function(){if(this._decrypt||!ft.isBuffer(this._authTag))throw new Error(\"Attempting to get auth tag in unsupported state\");return this._authTag},\"getAuthTag\");Zr.prototype.setAuthTag=f(function(e){if(!this._decrypt)throw new Error(\"Attempting to set auth tag in unsupported state\");this._authTag=e},\"setAuthTag\");Zr.prototype.setAAD=f(function(e){if(this._called)throw new Error(\"Attempting to set AAD in unsupported state\");this._ghash.update(e),this._alen+=e.length},\"setAAD\");ud.exports=Zr});var o0=k((M7,vd)=>{M();var Lp=Ma(),s0=xe().Buffer,ld=$t(),Up=Se();function xf(t,e,r,a){ld.call(this),this._cipher=new Lp.AES(e),this._prev=s0.from(r),this._cache=s0.allocUnsafe(0),this._secCache=s0.allocUnsafe(0),this._decrypt=a,this._mode=t}f(xf,\"StreamCipher\");Up(xf,ld);xf.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};xf.prototype._final=function(){this._cipher.scrub()};vd.exports=xf});var Aa=k((E7,pd)=>{M();var Xr=xe().Buffer,zp=tf();function Fp(t,e,r,a){if(Xr.isBuffer(t)||(t=Xr.from(t,\"binary\")),e&&(Xr.isBuffer(e)||(e=Xr.from(e,\"binary\")),e.length!==8))throw new RangeError(\"salt should be Buffer with 8 byte length\");for(var i=r/8,s=Xr.alloc(i),c=Xr.alloc(a||0),p=Xr.alloc(0);i>0||a>0;){var _=new zp;_.update(p),_.update(t),e&&_.update(e),p=_.digest();var S=0;if(i>0){var A=s.length-i;S=Math.min(i,p.length),p.copy(s,A,0,S),i-=S}if(S<p.length&&a>0){var q=c.length-a,B=Math.min(a,p.length-S);p.copy(c,q,S,S+B),a-=B}}return p.fill(0),{key:s,iv:c}}f(Fp,\"EVP_BytesToKey\");pd.exports=Fp});var gd=k(h0=>{M();var bd=_f(),Hp=n0(),er=xe().Buffer,Kp=o0(),md=$t(),jp=Ma(),Vp=Aa(),Wp=Se();function Ea(t,e,r){md.call(this),this._cache=new Mf,this._cipher=new jp.AES(e),this._prev=er.from(r),this._mode=t,this._autopadding=!0}f(Ea,\"Cipher\");Wp(Ea,md);Ea.prototype._update=function(t){this._cache.add(t);for(var e,r,a=[];e=this._cache.get();)r=this._mode.encrypt(this,e),a.push(r);return er.concat(a)};var Zp=er.alloc(16,16);Ea.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(Zp))throw this._cipher.scrub(),new Error(\"data not multiple of block length\")};Ea.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Mf(){this.cache=er.allocUnsafe(0)}f(Mf,\"Splitter\");Mf.prototype.add=function(t){this.cache=er.concat([this.cache,t])};Mf.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};Mf.prototype.flush=function(){for(var t=16-this.cache.length,e=er.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return er.concat([this.cache,e])};function yd(t,e,r){var a=bd[t.toLowerCase()];if(!a)throw new TypeError(\"invalid suite type\");if(typeof e==\"string\"&&(e=er.from(e)),e.length!==a.key/8)throw new TypeError(\"invalid key length \"+e.length);if(typeof r==\"string\"&&(r=er.from(r)),a.mode!==\"GCM\"&&r.length!==a.iv)throw new TypeError(\"invalid iv length \"+r.length);return a.type===\"stream\"?new Kp(a.module,e,r):a.type===\"auth\"?new Hp(a.module,e,r):new Ea(a.module,e,r)}f(yd,\"createCipheriv\");function Xp(t,e){var r=bd[t.toLowerCase()];if(!r)throw new TypeError(\"invalid suite type\");var a=Vp(e,!1,r.key,r.iv);return yd(t,a.key,a.iv)}f(Xp,\"createCipher\");h0.createCipheriv=yd;h0.createCipher=Xp});var Md=k(d0=>{M();var Gp=n0(),gi=xe().Buffer,_d=_f(),Jp=o0(),wd=$t(),Yp=Ma(),$p=Aa(),Qp=Se();function qa(t,e,r){wd.call(this),this._cache=new Sf,this._last=void 0,this._cipher=new Yp.AES(e),this._prev=gi.from(r),this._mode=t,this._autopadding=!0}f(qa,\"Decipher\");Qp(qa,wd);qa.prototype._update=function(t){this._cache.add(t);for(var e,r,a=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),a.push(r);return gi.concat(a)};qa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return eb(this._mode.decrypt(this,t));if(t)throw new Error(\"data not multiple of block length\")};qa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Sf(){this.cache=gi.allocUnsafe(0)}f(Sf,\"Splitter\");Sf.prototype.add=function(t){this.cache=gi.concat([this.cache,t])};Sf.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Sf.prototype.flush=function(){if(this.cache.length)return this.cache};function eb(t){var e=t[15];if(e<1||e>16)throw new Error(\"unable to decrypt data\");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error(\"unable to decrypt data\");if(e!==16)return t.slice(0,16-e)}f(eb,\"unpad\");function xd(t,e,r){var a=_d[t.toLowerCase()];if(!a)throw new TypeError(\"invalid suite type\");if(typeof r==\"string\"&&(r=gi.from(r)),a.mode!==\"GCM\"&&r.length!==a.iv)throw new TypeError(\"invalid iv length \"+r.length);if(typeof e==\"string\"&&(e=gi.from(e)),e.length!==a.key/8)throw new TypeError(\"invalid key length \"+e.length);return a.type===\"stream\"?new Jp(a.module,e,r,!0):a.type===\"auth\"?new Gp(a.module,e,r,!0):new qa(a.module,e,r)}f(xd,\"createDecipheriv\");function tb(t,e){var r=_d[t.toLowerCase()];if(!r)throw new TypeError(\"invalid suite type\");var a=$p(e,!1,r.key,r.iv);return xd(t,a.key,a.iv)}f(tb,\"createDecipher\");d0.createDecipher=tb;d0.createDecipheriv=xd});var Af=k(At=>{M();var Sd=gd(),Ad=Md(),rb=r0();function ib(){return Object.keys(rb)}f(ib,\"getCiphers\");At.createCipher=At.Cipher=Sd.createCipher;At.createCipheriv=At.Cipheriv=Sd.createCipheriv;At.createDecipher=At.Decipher=Ad.createDecipher;At.createDecipheriv=At.Decipheriv=Ad.createDecipheriv;At.listCiphers=At.getCiphers=ib});var Ed=k(tr=>{M();tr[\"des-ecb\"]={key:8,iv:0};tr[\"des-cbc\"]=tr.des={key:8,iv:8};tr[\"des-ede3-cbc\"]=tr.des3={key:24,iv:8};tr[\"des-ede3\"]={key:24,iv:0};tr[\"des-ede-cbc\"]={key:16,iv:8};tr[\"des-ede\"]={key:16,iv:0}});var Rd=k(Et=>{M();var qd=Fh(),c0=Af(),vr=_f(),rr=Ed(),Bd=Aa();function ab(t,e){t=t.toLowerCase();var r,a;if(vr[t])r=vr[t].key,a=vr[t].iv;else if(rr[t])r=rr[t].key*8,a=rr[t].iv;else throw new TypeError(\"invalid suite type\");var i=Bd(e,!1,r,a);return kd(t,i.key,i.iv)}f(ab,\"createCipher\");function fb(t,e){t=t.toLowerCase();var r,a;if(vr[t])r=vr[t].key,a=vr[t].iv;else if(rr[t])r=rr[t].key*8,a=rr[t].iv;else throw new TypeError(\"invalid suite type\");var i=Bd(e,!1,r,a);return Id(t,i.key,i.iv)}f(fb,\"createDecipher\");function kd(t,e,r){if(t=t.toLowerCase(),vr[t])return c0.createCipheriv(t,e,r);if(rr[t])return new qd({key:e,iv:r,mode:t});throw new TypeError(\"invalid suite type\")}f(kd,\"createCipheriv\");function Id(t,e,r){if(t=t.toLowerCase(),vr[t])return c0.createDecipheriv(t,e,r);if(rr[t])return new qd({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError(\"invalid suite type\")}f(Id,\"createDecipheriv\");function nb(){return Object.keys(rr).concat(c0.getCiphers())}f(nb,\"getCiphers\");Et.createCipher=Et.Cipher=ab;Et.createCipheriv=Et.Cipheriv=kd;Et.createDecipher=Et.Decipher=fb;Et.createDecipheriv=Et.Decipheriv=Id;Et.listCiphers=Et.getCiphers=nb});var je=k((Cd,u0)=>{M();(function(t,e){\"use strict\";function r(E,d){if(!E)throw new Error(d||\"Assertion failed\")}f(r,\"assert\");function a(E,d){E.super_=d;var y=f(function(){},\"TempCtor\");y.prototype=d.prototype,E.prototype=new y,E.prototype.constructor=E}f(a,\"inherits\");function i(E,d,y){if(i.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((d===\"le\"||d===\"be\")&&(y=d,d=10),this._init(E||0,d||10,y||\"be\"))}f(i,\"BN\"),typeof t==\"object\"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?s=window.Buffer:s=(cr(),hr(dr)).Buffer}catch{}i.isBN=f(function(d){return d instanceof i?!0:d!==null&&typeof d==\"object\"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},\"isBN\"),i.max=f(function(d,y){return d.cmp(y)>0?d:y},\"max\"),i.min=f(function(d,y){return d.cmp(y)<0?d:y},\"min\"),i.prototype._init=f(function(d,y,l){if(typeof d==\"number\")return this._initNumber(d,y,l);if(typeof d==\"object\")return this._initArray(d,y,l);y===\"hex\"&&(y=16),r(y===(y|0)&&y>=2&&y<=36),d=d.toString().replace(/\\s+/g,\"\");var n=0;d[0]===\"-\"&&(n++,this.negative=1),n<d.length&&(y===16?this._parseHex(d,n,l):(this._parseBase(d,y,n),l===\"le\"&&this._initArray(this.toArray(),y,l)))},\"init\"),i.prototype._initNumber=f(function(d,y,l){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[d&67108863],this.length=1):d<4503599627370496?(this.words=[d&67108863,d/67108864&67108863],this.length=2):(r(d<9007199254740992),this.words=[d&67108863,d/67108864&67108863,1],this.length=3),l===\"le\"&&this._initArray(this.toArray(),y,l)},\"_initNumber\"),i.prototype._initArray=f(function(d,y,l){if(r(typeof d.length==\"number\"),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h,v,m=0;if(l===\"be\")for(n=d.length-1,h=0;n>=0;n-=3)v=d[n]|d[n-1]<<8|d[n-2]<<16,this.words[h]|=v<<m&67108863,this.words[h+1]=v>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);else if(l===\"le\")for(n=0,h=0;n<d.length;n+=3)v=d[n]|d[n+1]<<8|d[n+2]<<16,this.words[h]|=v<<m&67108863,this.words[h+1]=v>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);return this.strip()},\"_initArray\");function c(E,d){var y=E.charCodeAt(d);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}f(c,\"parseHex4Bits\");function p(E,d,y){var l=c(E,y);return y-1>=d&&(l|=c(E,y-1)<<4),l}f(p,\"parseHexByte\"),i.prototype._parseHex=f(function(d,y,l){this.length=Math.ceil((d.length-y)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h=0,v=0,m;if(l===\"be\")for(n=d.length-1;n>=y;n-=2)m=p(d,y,n)<<h,this.words[v]|=m&67108863,h>=18?(h-=18,v+=1,this.words[v]|=m>>>26):h+=8;else{var b=d.length-y;for(n=b%2===0?y+1:y;n<d.length;n+=2)m=p(d,y,n)<<h,this.words[v]|=m&67108863,h>=18?(h-=18,v+=1,this.words[v]|=m>>>26):h+=8}this.strip()},\"_parseHex\");function _(E,d,y,l){for(var n=0,h=Math.min(E.length,y),v=d;v<h;v++){var m=E.charCodeAt(v)-48;n*=l,m>=49?n+=m-49+10:m>=17?n+=m-17+10:n+=m}return n}f(_,\"parseBase\"),i.prototype._parseBase=f(function(d,y,l){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=y)n++;n--,h=h/y|0;for(var v=d.length-l,m=v%n,b=Math.min(v,v-m)+l,o=0,g=l;g<b;g+=n)o=_(d,g,g+n,y),this.imuln(h),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var w=1;for(o=_(d,g,d.length,y),g=0;g<m;g++)w*=y;this.imuln(w),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},\"_parseBase\"),i.prototype.copy=f(function(d){d.words=new Array(this.length);for(var y=0;y<this.length;y++)d.words[y]=this.words[y];d.length=this.length,d.negative=this.negative,d.red=this.red},\"copy\"),i.prototype.clone=f(function(){var d=new i(null);return this.copy(d),d},\"clone\"),i.prototype._expand=f(function(d){for(;this.length<d;)this.words[this.length++]=0;return this},\"_expand\"),i.prototype.strip=f(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},\"strip\"),i.prototype._normSign=f(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},\"_normSign\"),i.prototype.inspect=f(function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"},\"inspect\");var S=[\"\",\"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\"],A=[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],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=f(function(d,y){d=d||10,y=y|0||1;var l;if(d===16||d===\"hex\"){l=\"\";for(var n=0,h=0,v=0;v<this.length;v++){var m=this.words[v],b=((m<<n|h)&16777215).toString(16);h=m>>>24-n&16777215,n+=2,n>=26&&(n-=26,v--),h!==0||v!==this.length-1?l=S[6-b.length]+b+l:l=b+l}for(h!==0&&(l=h.toString(16)+l);l.length%y!==0;)l=\"0\"+l;return this.negative!==0&&(l=\"-\"+l),l}if(d===(d|0)&&d>=2&&d<=36){var o=A[d],g=q[d];l=\"\";var w=this.clone();for(w.negative=0;!w.isZero();){var u=w.modn(g).toString(d);w=w.idivn(g),w.isZero()?l=u+l:l=S[o-u.length]+u+l}for(this.isZero()&&(l=\"0\"+l);l.length%y!==0;)l=\"0\"+l;return this.negative!==0&&(l=\"-\"+l),l}r(!1,\"Base should be between 2 and 36\")},\"toString\"),i.prototype.toNumber=f(function(){var d=this.words[0];return this.length===2?d+=this.words[1]*67108864:this.length===3&&this.words[2]===1?d+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-d:d},\"toNumber\"),i.prototype.toJSON=f(function(){return this.toString(16)},\"toJSON\"),i.prototype.toBuffer=f(function(d,y){return r(typeof s<\"u\"),this.toArrayLike(s,d,y)},\"toBuffer\"),i.prototype.toArray=f(function(d,y){return this.toArrayLike(Array,d,y)},\"toArray\"),i.prototype.toArrayLike=f(function(d,y,l){var n=this.byteLength(),h=l||Math.max(1,n);r(n<=h,\"byte array longer than desired length\"),r(h>0,\"Requested array length <= 0\"),this.strip();var v=y===\"le\",m=new d(h),b,o,g=this.clone();if(v){for(o=0;!g.isZero();o++)b=g.andln(255),g.iushrn(8),m[o]=b;for(;o<h;o++)m[o]=0}else{for(o=0;o<h-n;o++)m[o]=0;for(o=0;!g.isZero();o++)b=g.andln(255),g.iushrn(8),m[h-o-1]=b}return m},\"toArrayLike\"),Math.clz32?i.prototype._countBits=f(function(d){return 32-Math.clz32(d)},\"_countBits\"):i.prototype._countBits=f(function(d){var y=d,l=0;return y>=4096&&(l+=13,y>>>=13),y>=64&&(l+=7,y>>>=7),y>=8&&(l+=4,y>>>=4),y>=2&&(l+=2,y>>>=2),l+y},\"_countBits\"),i.prototype._zeroBits=f(function(d){if(d===0)return 26;var y=d,l=0;return(y&8191)===0&&(l+=13,y>>>=13),(y&127)===0&&(l+=7,y>>>=7),(y&15)===0&&(l+=4,y>>>=4),(y&3)===0&&(l+=2,y>>>=2),(y&1)===0&&l++,l},\"_zeroBits\"),i.prototype.bitLength=f(function(){var d=this.words[this.length-1],y=this._countBits(d);return(this.length-1)*26+y},\"bitLength\");function B(E){for(var d=new Array(E.bitLength()),y=0;y<d.length;y++){var l=y/26|0,n=y%26;d[y]=(E.words[l]&1<<n)>>>n}return d}f(B,\"toBitArray\"),i.prototype.zeroBits=f(function(){if(this.isZero())return 0;for(var d=0,y=0;y<this.length;y++){var l=this._zeroBits(this.words[y]);if(d+=l,l!==26)break}return d},\"zeroBits\"),i.prototype.byteLength=f(function(){return Math.ceil(this.bitLength()/8)},\"byteLength\"),i.prototype.toTwos=f(function(d){return this.negative!==0?this.abs().inotn(d).iaddn(1):this.clone()},\"toTwos\"),i.prototype.fromTwos=f(function(d){return this.testn(d-1)?this.notn(d).iaddn(1).ineg():this.clone()},\"fromTwos\"),i.prototype.isNeg=f(function(){return this.negative!==0},\"isNeg\"),i.prototype.neg=f(function(){return this.clone().ineg()},\"neg\"),i.prototype.ineg=f(function(){return this.isZero()||(this.negative^=1),this},\"ineg\"),i.prototype.iuor=f(function(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var y=0;y<d.length;y++)this.words[y]=this.words[y]|d.words[y];return this.strip()},\"iuor\"),i.prototype.ior=f(function(d){return r((this.negative|d.negative)===0),this.iuor(d)},\"ior\"),i.prototype.or=f(function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},\"or\"),i.prototype.uor=f(function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},\"uor\"),i.prototype.iuand=f(function(d){var y;this.length>d.length?y=d:y=this;for(var l=0;l<y.length;l++)this.words[l]=this.words[l]&d.words[l];return this.length=y.length,this.strip()},\"iuand\"),i.prototype.iand=f(function(d){return r((this.negative|d.negative)===0),this.iuand(d)},\"iand\"),i.prototype.and=f(function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},\"and\"),i.prototype.uand=f(function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},\"uand\"),i.prototype.iuxor=f(function(d){var y,l;this.length>d.length?(y=this,l=d):(y=d,l=this);for(var n=0;n<l.length;n++)this.words[n]=y.words[n]^l.words[n];if(this!==y)for(;n<y.length;n++)this.words[n]=y.words[n];return this.length=y.length,this.strip()},\"iuxor\"),i.prototype.ixor=f(function(d){return r((this.negative|d.negative)===0),this.iuxor(d)},\"ixor\"),i.prototype.xor=f(function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},\"xor\"),i.prototype.uxor=f(function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},\"uxor\"),i.prototype.inotn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=Math.ceil(d/26)|0,l=d%26;this._expand(y),l>0&&y--;for(var n=0;n<y;n++)this.words[n]=~this.words[n]&67108863;for(l>0&&(this.words[n]=~this.words[n]&67108863>>26-l,n++);n<this.length;n++)this.words[n]=0;return this.strip()},\"inotn\"),i.prototype.notn=f(function(d){return this.clone().inotn(d)},\"notn\"),i.prototype.setn=f(function(d,y){r(typeof d==\"number\"&&d>=0);var l=d/26|0,n=d%26;return this._expand(l+1),y?this.words[l]=this.words[l]|1<<n:this.words[l]=this.words[l]&~(1<<n),this.strip()},\"setn\"),i.prototype.iadd=f(function(d){var y;if(this.negative!==0&&d.negative===0)return this.negative=0,y=this.isub(d),this.negative^=1,this._normSign();if(this.negative===0&&d.negative!==0)return d.negative=0,y=this.isub(d),d.negative=1,y._normSign();var l,n;this.length>d.length?(l=this,n=d):(l=d,n=this);for(var h=0,v=0;v<n.length;v++)y=(l.words[v]|0)+(n.words[v]|0)+h,this.words[v]=y&67108863,h=y>>>26;for(;h!==0&&v<l.length;v++)y=(l.words[v]|0)+h,this.words[v]=y&67108863,h=y>>>26;if(this.length=l.length,h!==0)this.words[this.length]=h,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},\"iadd\"),i.prototype.add=f(function(d){var y;return d.negative!==0&&this.negative===0?(d.negative=0,y=this.sub(d),d.negative^=1,y):d.negative===0&&this.negative!==0?(this.negative=0,y=d.sub(this),this.negative=1,y):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},\"add\"),i.prototype.isub=f(function(d){if(d.negative!==0){d.negative=0;var y=this.iadd(d);return d.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,h;l>0?(n=this,h=d):(n=d,h=this);for(var v=0,m=0;m<h.length;m++)y=(n.words[m]|0)-(h.words[m]|0)+v,v=y>>26,this.words[m]=y&67108863;for(;v!==0&&m<n.length;m++)y=(n.words[m]|0)+v,v=y>>26,this.words[m]=y&67108863;if(v===0&&m<n.length&&n!==this)for(;m<n.length;m++)this.words[m]=n.words[m];return this.length=Math.max(this.length,m),n!==this&&(this.negative=1),this.strip()},\"isub\"),i.prototype.sub=f(function(d){return this.clone().isub(d)},\"sub\");function I(E,d,y){y.negative=d.negative^E.negative;var l=E.length+d.length|0;y.length=l,l=l-1|0;var n=E.words[0]|0,h=d.words[0]|0,v=n*h,m=v&67108863,b=v/67108864|0;y.words[0]=m;for(var o=1;o<l;o++){for(var g=b>>>26,w=b&67108863,u=Math.min(o,d.length-1),x=Math.max(0,o-E.length+1);x<=u;x++){var C=o-x|0;n=E.words[C]|0,h=d.words[x]|0,v=n*h+w,g+=v/67108864|0,w=v&67108863}y.words[o]=w|0,b=g|0}return b!==0?y.words[o]=b|0:y.length--,y.strip()}f(I,\"smallMulTo\");var R=f(function(d,y,l){var n=d.words,h=y.words,v=l.words,m=0,b,o,g,w=n[0]|0,u=w&8191,x=w>>>13,C=n[1]|0,P=C&8191,D=C>>>13,U=n[2]|0,O=U&8191,F=U>>>13,xt=n[3]|0,H=xt&8191,K=xt>>>13,Li=n[4]|0,j=Li&8191,V=Li>>>13,Ui=n[5]|0,W=Ui&8191,Z=Ui>>>13,zi=n[6]|0,X=zi&8191,G=zi>>>13,Fi=n[7]|0,J=Fi&8191,Y=Fi>>>13,Hi=n[8]|0,$=Hi&8191,Q=Hi>>>13,Ki=n[9]|0,ee=Ki&8191,te=Ki>>>13,ji=h[0]|0,re=ji&8191,ie=ji>>>13,Vi=h[1]|0,ae=Vi&8191,fe=Vi>>>13,Wi=h[2]|0,ne=Wi&8191,se=Wi>>>13,Zi=h[3]|0,oe=Zi&8191,he=Zi>>>13,Xi=h[4]|0,de=Xi&8191,ce=Xi>>>13,Gi=h[5]|0,ue=Gi&8191,le=Gi>>>13,Ji=h[6]|0,ve=Ji&8191,pe=Ji>>>13,Yi=h[7]|0,be=Yi&8191,me=Yi>>>13,$i=h[8]|0,ye=$i&8191,ge=$i>>>13,Qi=h[9]|0,_e=Qi&8191,we=Qi>>>13;l.negative=d.negative^y.negative,l.length=19,b=Math.imul(u,re),o=Math.imul(u,ie),o=o+Math.imul(x,re)|0,g=Math.imul(x,ie);var oi=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(oi>>>26)|0,oi&=67108863,b=Math.imul(P,re),o=Math.imul(P,ie),o=o+Math.imul(D,re)|0,g=Math.imul(D,ie),b=b+Math.imul(u,ae)|0,o=o+Math.imul(u,fe)|0,o=o+Math.imul(x,ae)|0,g=g+Math.imul(x,fe)|0;var Te=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,b=Math.imul(O,re),o=Math.imul(O,ie),o=o+Math.imul(F,re)|0,g=Math.imul(F,ie),b=b+Math.imul(P,ae)|0,o=o+Math.imul(P,fe)|0,o=o+Math.imul(D,ae)|0,g=g+Math.imul(D,fe)|0,b=b+Math.imul(u,ne)|0,o=o+Math.imul(u,se)|0,o=o+Math.imul(x,ne)|0,g=g+Math.imul(x,se)|0;var Ne=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,b=Math.imul(H,re),o=Math.imul(H,ie),o=o+Math.imul(K,re)|0,g=Math.imul(K,ie),b=b+Math.imul(O,ae)|0,o=o+Math.imul(O,fe)|0,o=o+Math.imul(F,ae)|0,g=g+Math.imul(F,fe)|0,b=b+Math.imul(P,ne)|0,o=o+Math.imul(P,se)|0,o=o+Math.imul(D,ne)|0,g=g+Math.imul(D,se)|0,b=b+Math.imul(u,oe)|0,o=o+Math.imul(u,he)|0,o=o+Math.imul(x,oe)|0,g=g+Math.imul(x,he)|0;var wr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(j,re),o=Math.imul(j,ie),o=o+Math.imul(V,re)|0,g=Math.imul(V,ie),b=b+Math.imul(H,ae)|0,o=o+Math.imul(H,fe)|0,o=o+Math.imul(K,ae)|0,g=g+Math.imul(K,fe)|0,b=b+Math.imul(O,ne)|0,o=o+Math.imul(O,se)|0,o=o+Math.imul(F,ne)|0,g=g+Math.imul(F,se)|0,b=b+Math.imul(P,oe)|0,o=o+Math.imul(P,he)|0,o=o+Math.imul(D,oe)|0,g=g+Math.imul(D,he)|0,b=b+Math.imul(u,de)|0,o=o+Math.imul(u,ce)|0,o=o+Math.imul(x,de)|0,g=g+Math.imul(x,ce)|0;var xr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,b=Math.imul(W,re),o=Math.imul(W,ie),o=o+Math.imul(Z,re)|0,g=Math.imul(Z,ie),b=b+Math.imul(j,ae)|0,o=o+Math.imul(j,fe)|0,o=o+Math.imul(V,ae)|0,g=g+Math.imul(V,fe)|0,b=b+Math.imul(H,ne)|0,o=o+Math.imul(H,se)|0,o=o+Math.imul(K,ne)|0,g=g+Math.imul(K,se)|0,b=b+Math.imul(O,oe)|0,o=o+Math.imul(O,he)|0,o=o+Math.imul(F,oe)|0,g=g+Math.imul(F,he)|0,b=b+Math.imul(P,de)|0,o=o+Math.imul(P,ce)|0,o=o+Math.imul(D,de)|0,g=g+Math.imul(D,ce)|0,b=b+Math.imul(u,ue)|0,o=o+Math.imul(u,le)|0,o=o+Math.imul(x,ue)|0,g=g+Math.imul(x,le)|0;var Mr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,b=Math.imul(X,re),o=Math.imul(X,ie),o=o+Math.imul(G,re)|0,g=Math.imul(G,ie),b=b+Math.imul(W,ae)|0,o=o+Math.imul(W,fe)|0,o=o+Math.imul(Z,ae)|0,g=g+Math.imul(Z,fe)|0,b=b+Math.imul(j,ne)|0,o=o+Math.imul(j,se)|0,o=o+Math.imul(V,ne)|0,g=g+Math.imul(V,se)|0,b=b+Math.imul(H,oe)|0,o=o+Math.imul(H,he)|0,o=o+Math.imul(K,oe)|0,g=g+Math.imul(K,he)|0,b=b+Math.imul(O,de)|0,o=o+Math.imul(O,ce)|0,o=o+Math.imul(F,de)|0,g=g+Math.imul(F,ce)|0,b=b+Math.imul(P,ue)|0,o=o+Math.imul(P,le)|0,o=o+Math.imul(D,ue)|0,g=g+Math.imul(D,le)|0,b=b+Math.imul(u,ve)|0,o=o+Math.imul(u,pe)|0,o=o+Math.imul(x,ve)|0,g=g+Math.imul(x,pe)|0;var Sr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(J,re),o=Math.imul(J,ie),o=o+Math.imul(Y,re)|0,g=Math.imul(Y,ie),b=b+Math.imul(X,ae)|0,o=o+Math.imul(X,fe)|0,o=o+Math.imul(G,ae)|0,g=g+Math.imul(G,fe)|0,b=b+Math.imul(W,ne)|0,o=o+Math.imul(W,se)|0,o=o+Math.imul(Z,ne)|0,g=g+Math.imul(Z,se)|0,b=b+Math.imul(j,oe)|0,o=o+Math.imul(j,he)|0,o=o+Math.imul(V,oe)|0,g=g+Math.imul(V,he)|0,b=b+Math.imul(H,de)|0,o=o+Math.imul(H,ce)|0,o=o+Math.imul(K,de)|0,g=g+Math.imul(K,ce)|0,b=b+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,o=o+Math.imul(F,ue)|0,g=g+Math.imul(F,le)|0,b=b+Math.imul(P,ve)|0,o=o+Math.imul(P,pe)|0,o=o+Math.imul(D,ve)|0,g=g+Math.imul(D,pe)|0,b=b+Math.imul(u,be)|0,o=o+Math.imul(u,me)|0,o=o+Math.imul(x,be)|0,g=g+Math.imul(x,me)|0;var Ar=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul($,re),o=Math.imul($,ie),o=o+Math.imul(Q,re)|0,g=Math.imul(Q,ie),b=b+Math.imul(J,ae)|0,o=o+Math.imul(J,fe)|0,o=o+Math.imul(Y,ae)|0,g=g+Math.imul(Y,fe)|0,b=b+Math.imul(X,ne)|0,o=o+Math.imul(X,se)|0,o=o+Math.imul(G,ne)|0,g=g+Math.imul(G,se)|0,b=b+Math.imul(W,oe)|0,o=o+Math.imul(W,he)|0,o=o+Math.imul(Z,oe)|0,g=g+Math.imul(Z,he)|0,b=b+Math.imul(j,de)|0,o=o+Math.imul(j,ce)|0,o=o+Math.imul(V,de)|0,g=g+Math.imul(V,ce)|0,b=b+Math.imul(H,ue)|0,o=o+Math.imul(H,le)|0,o=o+Math.imul(K,ue)|0,g=g+Math.imul(K,le)|0,b=b+Math.imul(O,ve)|0,o=o+Math.imul(O,pe)|0,o=o+Math.imul(F,ve)|0,g=g+Math.imul(F,pe)|0,b=b+Math.imul(P,be)|0,o=o+Math.imul(P,me)|0,o=o+Math.imul(D,be)|0,g=g+Math.imul(D,me)|0,b=b+Math.imul(u,ye)|0,o=o+Math.imul(u,ge)|0,o=o+Math.imul(x,ye)|0,g=g+Math.imul(x,ge)|0;var Er=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Er>>>26)|0,Er&=67108863,b=Math.imul(ee,re),o=Math.imul(ee,ie),o=o+Math.imul(te,re)|0,g=Math.imul(te,ie),b=b+Math.imul($,ae)|0,o=o+Math.imul($,fe)|0,o=o+Math.imul(Q,ae)|0,g=g+Math.imul(Q,fe)|0,b=b+Math.imul(J,ne)|0,o=o+Math.imul(J,se)|0,o=o+Math.imul(Y,ne)|0,g=g+Math.imul(Y,se)|0,b=b+Math.imul(X,oe)|0,o=o+Math.imul(X,he)|0,o=o+Math.imul(G,oe)|0,g=g+Math.imul(G,he)|0,b=b+Math.imul(W,de)|0,o=o+Math.imul(W,ce)|0,o=o+Math.imul(Z,de)|0,g=g+Math.imul(Z,ce)|0,b=b+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,o=o+Math.imul(V,ue)|0,g=g+Math.imul(V,le)|0,b=b+Math.imul(H,ve)|0,o=o+Math.imul(H,pe)|0,o=o+Math.imul(K,ve)|0,g=g+Math.imul(K,pe)|0,b=b+Math.imul(O,be)|0,o=o+Math.imul(O,me)|0,o=o+Math.imul(F,be)|0,g=g+Math.imul(F,me)|0,b=b+Math.imul(P,ye)|0,o=o+Math.imul(P,ge)|0,o=o+Math.imul(D,ye)|0,g=g+Math.imul(D,ge)|0,b=b+Math.imul(u,_e)|0,o=o+Math.imul(u,we)|0,o=o+Math.imul(x,_e)|0,g=g+Math.imul(x,we)|0;var qr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(qr>>>26)|0,qr&=67108863,b=Math.imul(ee,ae),o=Math.imul(ee,fe),o=o+Math.imul(te,ae)|0,g=Math.imul(te,fe),b=b+Math.imul($,ne)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(Q,ne)|0,g=g+Math.imul(Q,se)|0,b=b+Math.imul(J,oe)|0,o=o+Math.imul(J,he)|0,o=o+Math.imul(Y,oe)|0,g=g+Math.imul(Y,he)|0,b=b+Math.imul(X,de)|0,o=o+Math.imul(X,ce)|0,o=o+Math.imul(G,de)|0,g=g+Math.imul(G,ce)|0,b=b+Math.imul(W,ue)|0,o=o+Math.imul(W,le)|0,o=o+Math.imul(Z,ue)|0,g=g+Math.imul(Z,le)|0,b=b+Math.imul(j,ve)|0,o=o+Math.imul(j,pe)|0,o=o+Math.imul(V,ve)|0,g=g+Math.imul(V,pe)|0,b=b+Math.imul(H,be)|0,o=o+Math.imul(H,me)|0,o=o+Math.imul(K,be)|0,g=g+Math.imul(K,me)|0,b=b+Math.imul(O,ye)|0,o=o+Math.imul(O,ge)|0,o=o+Math.imul(F,ye)|0,g=g+Math.imul(F,ge)|0,b=b+Math.imul(P,_e)|0,o=o+Math.imul(P,we)|0,o=o+Math.imul(D,_e)|0,g=g+Math.imul(D,we)|0;var Br=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Br>>>26)|0,Br&=67108863,b=Math.imul(ee,ne),o=Math.imul(ee,se),o=o+Math.imul(te,ne)|0,g=Math.imul(te,se),b=b+Math.imul($,oe)|0,o=o+Math.imul($,he)|0,o=o+Math.imul(Q,oe)|0,g=g+Math.imul(Q,he)|0,b=b+Math.imul(J,de)|0,o=o+Math.imul(J,ce)|0,o=o+Math.imul(Y,de)|0,g=g+Math.imul(Y,ce)|0,b=b+Math.imul(X,ue)|0,o=o+Math.imul(X,le)|0,o=o+Math.imul(G,ue)|0,g=g+Math.imul(G,le)|0,b=b+Math.imul(W,ve)|0,o=o+Math.imul(W,pe)|0,o=o+Math.imul(Z,ve)|0,g=g+Math.imul(Z,pe)|0,b=b+Math.imul(j,be)|0,o=o+Math.imul(j,me)|0,o=o+Math.imul(V,be)|0,g=g+Math.imul(V,me)|0,b=b+Math.imul(H,ye)|0,o=o+Math.imul(H,ge)|0,o=o+Math.imul(K,ye)|0,g=g+Math.imul(K,ge)|0,b=b+Math.imul(O,_e)|0,o=o+Math.imul(O,we)|0,o=o+Math.imul(F,_e)|0,g=g+Math.imul(F,we)|0;var kr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(ee,oe),o=Math.imul(ee,he),o=o+Math.imul(te,oe)|0,g=Math.imul(te,he),b=b+Math.imul($,de)|0,o=o+Math.imul($,ce)|0,o=o+Math.imul(Q,de)|0,g=g+Math.imul(Q,ce)|0,b=b+Math.imul(J,ue)|0,o=o+Math.imul(J,le)|0,o=o+Math.imul(Y,ue)|0,g=g+Math.imul(Y,le)|0,b=b+Math.imul(X,ve)|0,o=o+Math.imul(X,pe)|0,o=o+Math.imul(G,ve)|0,g=g+Math.imul(G,pe)|0,b=b+Math.imul(W,be)|0,o=o+Math.imul(W,me)|0,o=o+Math.imul(Z,be)|0,g=g+Math.imul(Z,me)|0,b=b+Math.imul(j,ye)|0,o=o+Math.imul(j,ge)|0,o=o+Math.imul(V,ye)|0,g=g+Math.imul(V,ge)|0,b=b+Math.imul(H,_e)|0,o=o+Math.imul(H,we)|0,o=o+Math.imul(K,_e)|0,g=g+Math.imul(K,we)|0;var Ir=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(ee,de),o=Math.imul(ee,ce),o=o+Math.imul(te,de)|0,g=Math.imul(te,ce),b=b+Math.imul($,ue)|0,o=o+Math.imul($,le)|0,o=o+Math.imul(Q,ue)|0,g=g+Math.imul(Q,le)|0,b=b+Math.imul(J,ve)|0,o=o+Math.imul(J,pe)|0,o=o+Math.imul(Y,ve)|0,g=g+Math.imul(Y,pe)|0,b=b+Math.imul(X,be)|0,o=o+Math.imul(X,me)|0,o=o+Math.imul(G,be)|0,g=g+Math.imul(G,me)|0,b=b+Math.imul(W,ye)|0,o=o+Math.imul(W,ge)|0,o=o+Math.imul(Z,ye)|0,g=g+Math.imul(Z,ge)|0,b=b+Math.imul(j,_e)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(V,_e)|0,g=g+Math.imul(V,we)|0;var Rr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(ee,ue),o=Math.imul(ee,le),o=o+Math.imul(te,ue)|0,g=Math.imul(te,le),b=b+Math.imul($,ve)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(Q,ve)|0,g=g+Math.imul(Q,pe)|0,b=b+Math.imul(J,be)|0,o=o+Math.imul(J,me)|0,o=o+Math.imul(Y,be)|0,g=g+Math.imul(Y,me)|0,b=b+Math.imul(X,ye)|0,o=o+Math.imul(X,ge)|0,o=o+Math.imul(G,ye)|0,g=g+Math.imul(G,ge)|0,b=b+Math.imul(W,_e)|0,o=o+Math.imul(W,we)|0,o=o+Math.imul(Z,_e)|0,g=g+Math.imul(Z,we)|0;var Cr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(ee,ve),o=Math.imul(ee,pe),o=o+Math.imul(te,ve)|0,g=Math.imul(te,pe),b=b+Math.imul($,be)|0,o=o+Math.imul($,me)|0,o=o+Math.imul(Q,be)|0,g=g+Math.imul(Q,me)|0,b=b+Math.imul(J,ye)|0,o=o+Math.imul(J,ge)|0,o=o+Math.imul(Y,ye)|0,g=g+Math.imul(Y,ge)|0,b=b+Math.imul(X,_e)|0,o=o+Math.imul(X,we)|0,o=o+Math.imul(G,_e)|0,g=g+Math.imul(G,we)|0;var Dr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,b=Math.imul(ee,be),o=Math.imul(ee,me),o=o+Math.imul(te,be)|0,g=Math.imul(te,me),b=b+Math.imul($,ye)|0,o=o+Math.imul($,ge)|0,o=o+Math.imul(Q,ye)|0,g=g+Math.imul(Q,ge)|0,b=b+Math.imul(J,_e)|0,o=o+Math.imul(J,we)|0,o=o+Math.imul(Y,_e)|0,g=g+Math.imul(Y,we)|0;var Pr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,b=Math.imul(ee,ye),o=Math.imul(ee,ge),o=o+Math.imul(te,ye)|0,g=Math.imul(te,ge),b=b+Math.imul($,_e)|0,o=o+Math.imul($,we)|0,o=o+Math.imul(Q,_e)|0,g=g+Math.imul(Q,we)|0;var Tr=(m+b|0)+((o&8191)<<13)|0;m=(g+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(ee,_e),o=Math.imul(ee,we),o=o+Math.imul(te,_e)|0,g=Math.imul(te,we);var Nr=(m+b|0)+((o&8191)<<13)|0;return m=(g+(o>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,v[0]=oi,v[1]=Te,v[2]=Ne,v[3]=wr,v[4]=xr,v[5]=Mr,v[6]=Sr,v[7]=Ar,v[8]=Er,v[9]=qr,v[10]=Br,v[11]=kr,v[12]=Ir,v[13]=Rr,v[14]=Cr,v[15]=Dr,v[16]=Pr,v[17]=Tr,v[18]=Nr,m!==0&&(v[19]=m,l.length++),l},\"comb10MulTo\");Math.imul||(R=I);function T(E,d,y){y.negative=d.negative^E.negative,y.length=E.length+d.length;for(var l=0,n=0,h=0;h<y.length-1;h++){var v=n;n=0;for(var m=l&67108863,b=Math.min(h,d.length-1),o=Math.max(0,h-E.length+1);o<=b;o++){var g=h-o,w=E.words[g]|0,u=d.words[o]|0,x=w*u,C=x&67108863;v=v+(x/67108864|0)|0,C=C+m|0,m=C&67108863,v=v+(C>>>26)|0,n+=v>>>26,v&=67108863}y.words[h]=m,l=v,v=n}return l!==0?y.words[h]=l:y.length--,y.strip()}f(T,\"bigMulTo\");function L(E,d,y){var l=new N;return l.mulp(E,d,y)}f(L,\"jumboMulTo\"),i.prototype.mulTo=f(function(d,y){var l,n=this.length+d.length;return this.length===10&&d.length===10?l=R(this,d,y):n<63?l=I(this,d,y):n<1024?l=T(this,d,y):l=L(this,d,y),l},\"mulTo\");function N(E,d){this.x=E,this.y=d}f(N,\"FFTM\"),N.prototype.makeRBT=f(function(d){for(var y=new Array(d),l=i.prototype._countBits(d)-1,n=0;n<d;n++)y[n]=this.revBin(n,l,d);return y},\"makeRBT\"),N.prototype.revBin=f(function(d,y,l){if(d===0||d===l-1)return d;for(var n=0,h=0;h<y;h++)n|=(d&1)<<y-h-1,d>>=1;return n},\"revBin\"),N.prototype.permute=f(function(d,y,l,n,h,v){for(var m=0;m<v;m++)n[m]=y[d[m]],h[m]=l[d[m]]},\"permute\"),N.prototype.transform=f(function(d,y,l,n,h,v){this.permute(v,d,y,l,n,h);for(var m=1;m<h;m<<=1)for(var b=m<<1,o=Math.cos(2*Math.PI/b),g=Math.sin(2*Math.PI/b),w=0;w<h;w+=b)for(var u=o,x=g,C=0;C<m;C++){var P=l[w+C],D=n[w+C],U=l[w+C+m],O=n[w+C+m],F=u*U-x*O;O=u*O+x*U,U=F,l[w+C]=P+U,n[w+C]=D+O,l[w+C+m]=P-U,n[w+C+m]=D-O,C!==b&&(F=o*u-g*x,x=o*x+g*u,u=F)}},\"transform\"),N.prototype.guessLen13b=f(function(d,y){var l=Math.max(y,d)|1,n=l&1,h=0;for(l=l/2|0;l;l=l>>>1)h++;return 1<<h+1+n},\"guessLen13b\"),N.prototype.conjugate=f(function(d,y,l){if(!(l<=1))for(var n=0;n<l/2;n++){var h=d[n];d[n]=d[l-n-1],d[l-n-1]=h,h=y[n],y[n]=-y[l-n-1],y[l-n-1]=-h}},\"conjugate\"),N.prototype.normalize13b=f(function(d,y){for(var l=0,n=0;n<y/2;n++){var h=Math.round(d[2*n+1]/y)*8192+Math.round(d[2*n]/y)+l;d[n]=h&67108863,h<67108864?l=0:l=h/67108864|0}return d},\"normalize13b\"),N.prototype.convert13b=f(function(d,y,l,n){for(var h=0,v=0;v<y;v++)h=h+(d[v]|0),l[2*v]=h&8191,h=h>>>13,l[2*v+1]=h&8191,h=h>>>13;for(v=2*y;v<n;++v)l[v]=0;r(h===0),r((h&-8192)===0)},\"convert13b\"),N.prototype.stub=f(function(d){for(var y=new Array(d),l=0;l<d;l++)y[l]=0;return y},\"stub\"),N.prototype.mulp=f(function(d,y,l){var n=2*this.guessLen13b(d.length,y.length),h=this.makeRBT(n),v=this.stub(n),m=new Array(n),b=new Array(n),o=new Array(n),g=new Array(n),w=new Array(n),u=new Array(n),x=l.words;x.length=n,this.convert13b(d.words,d.length,m,n),this.convert13b(y.words,y.length,g,n),this.transform(m,v,b,o,n,h),this.transform(g,v,w,u,n,h);for(var C=0;C<n;C++){var P=b[C]*w[C]-o[C]*u[C];o[C]=b[C]*u[C]+o[C]*w[C],b[C]=P}return this.conjugate(b,o,n),this.transform(b,o,x,v,n,h),this.conjugate(x,v,n),this.normalize13b(x,n),l.negative=d.negative^y.negative,l.length=d.length+y.length,l.strip()},\"mulp\"),i.prototype.mul=f(function(d){var y=new i(null);return y.words=new Array(this.length+d.length),this.mulTo(d,y)},\"mul\"),i.prototype.mulf=f(function(d){var y=new i(null);return y.words=new Array(this.length+d.length),L(this,d,y)},\"mulf\"),i.prototype.imul=f(function(d){return this.clone().mulTo(d,this)},\"imul\"),i.prototype.imuln=f(function(d){r(typeof d==\"number\"),r(d<67108864);for(var y=0,l=0;l<this.length;l++){var n=(this.words[l]|0)*d,h=(n&67108863)+(y&67108863);y>>=26,y+=n/67108864|0,y+=h>>>26,this.words[l]=h&67108863}return y!==0&&(this.words[l]=y,this.length++),d===0&&(this.length=1,this._normSign()),this},\"imuln\"),i.prototype.muln=f(function(d){return this.clone().imuln(d)},\"muln\"),i.prototype.sqr=f(function(){return this.mul(this)},\"sqr\"),i.prototype.isqr=f(function(){return this.imul(this.clone())},\"isqr\"),i.prototype.pow=f(function(d){var y=B(d);if(y.length===0)return new i(1);for(var l=this,n=0;n<y.length&&y[n]===0;n++,l=l.sqr());if(++n<y.length)for(var h=l.sqr();n<y.length;n++,h=h.sqr())y[n]!==0&&(l=l.mul(h));return l},\"pow\"),i.prototype.iushln=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26,n=67108863>>>26-y<<26-y,h;if(y!==0){var v=0;for(h=0;h<this.length;h++){var m=this.words[h]&n,b=(this.words[h]|0)-m<<y;this.words[h]=b|v,v=m>>>26-y}v&&(this.words[h]=v,this.length++)}if(l!==0){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h<l;h++)this.words[h]=0;this.length+=l}return this.strip()},\"iushln\"),i.prototype.ishln=f(function(d){return r(this.negative===0),this.iushln(d)},\"ishln\"),i.prototype.iushrn=f(function(d,y,l){r(typeof d==\"number\"&&d>=0);var n;y?n=(y-y%26)/26:n=0;var h=d%26,v=Math.min((d-h)/26,this.length),m=67108863^67108863>>>h<<h,b=l;if(n-=v,n=Math.max(0,n),b){for(var o=0;o<v;o++)b.words[o]=this.words[o];b.length=v}if(v!==0)if(this.length>v)for(this.length-=v,o=0;o<this.length;o++)this.words[o]=this.words[o+v];else this.words[0]=0,this.length=1;var g=0;for(o=this.length-1;o>=0&&(g!==0||o>=n);o--){var w=this.words[o]|0;this.words[o]=g<<26-h|w>>>h,g=w&m}return b&&g!==0&&(b.words[b.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},\"iushrn\"),i.prototype.ishrn=f(function(d,y,l){return r(this.negative===0),this.iushrn(d,y,l)},\"ishrn\"),i.prototype.shln=f(function(d){return this.clone().ishln(d)},\"shln\"),i.prototype.ushln=f(function(d){return this.clone().iushln(d)},\"ushln\"),i.prototype.shrn=f(function(d){return this.clone().ishrn(d)},\"shrn\"),i.prototype.ushrn=f(function(d){return this.clone().iushrn(d)},\"ushrn\"),i.prototype.testn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26,n=1<<y;if(this.length<=l)return!1;var h=this.words[l];return!!(h&n)},\"testn\"),i.prototype.imaskn=f(function(d){r(typeof d==\"number\"&&d>=0);var y=d%26,l=(d-y)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=l)return this;if(y!==0&&l++,this.length=Math.min(l,this.length),y!==0){var n=67108863^67108863>>>y<<y;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},\"imaskn\"),i.prototype.maskn=f(function(d){return this.clone().imaskn(d)},\"maskn\"),i.prototype.iaddn=f(function(d){return r(typeof d==\"number\"),r(d<67108864),d<0?this.isubn(-d):this.negative!==0?this.length===1&&(this.words[0]|0)<d?(this.words[0]=d-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},\"iaddn\"),i.prototype._iaddn=f(function(d){this.words[0]+=d;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},\"_iaddn\"),i.prototype.isubn=f(function(d){if(r(typeof d==\"number\"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},\"isubn\"),i.prototype.addn=f(function(d){return this.clone().iaddn(d)},\"addn\"),i.prototype.subn=f(function(d){return this.clone().isubn(d)},\"subn\"),i.prototype.iabs=f(function(){return this.negative=0,this},\"iabs\"),i.prototype.abs=f(function(){return this.clone().iabs()},\"abs\"),i.prototype._ishlnsubmul=f(function(d,y,l){var n=d.length+l,h;this._expand(n);var v,m=0;for(h=0;h<d.length;h++){v=(this.words[h+l]|0)+m;var b=(d.words[h]|0)*y;v-=b&67108863,m=(v>>26)-(b/67108864|0),this.words[h+l]=v&67108863}for(;h<this.length-l;h++)v=(this.words[h+l]|0)+m,m=v>>26,this.words[h+l]=v&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,h=0;h<this.length;h++)v=-(this.words[h]|0)+m,m=v>>26,this.words[h]=v&67108863;return this.negative=1,this.strip()},\"_ishlnsubmul\"),i.prototype._wordDiv=f(function(d,y){var l=this.length-d.length,n=this.clone(),h=d,v=h.words[h.length-1]|0,m=this._countBits(v);l=26-m,l!==0&&(h=h.ushln(l),n.iushln(l),v=h.words[h.length-1]|0);var b=n.length-h.length,o;if(y!==\"mod\"){o=new i(null),o.length=b+1,o.words=new Array(o.length);for(var g=0;g<o.length;g++)o.words[g]=0}var w=n.clone()._ishlnsubmul(h,1,b);w.negative===0&&(n=w,o&&(o.words[b]=1));for(var u=b-1;u>=0;u--){var x=(n.words[h.length+u]|0)*67108864+(n.words[h.length+u-1]|0);for(x=Math.min(x/v|0,67108863),n._ishlnsubmul(h,x,u);n.negative!==0;)x--,n.negative=0,n._ishlnsubmul(h,1,u),n.isZero()||(n.negative^=1);o&&(o.words[u]=x)}return o&&o.strip(),n.strip(),y!==\"div\"&&l!==0&&n.iushrn(l),{div:o||null,mod:n}},\"_wordDiv\"),i.prototype.divmod=f(function(d,y,l){if(r(!d.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var n,h,v;return this.negative!==0&&d.negative===0?(v=this.neg().divmod(d,y),y!==\"mod\"&&(n=v.div.neg()),y!==\"div\"&&(h=v.mod.neg(),l&&h.negative!==0&&h.iadd(d)),{div:n,mod:h}):this.negative===0&&d.negative!==0?(v=this.divmod(d.neg(),y),y!==\"mod\"&&(n=v.div.neg()),{div:n,mod:v.mod}):(this.negative&d.negative)!==0?(v=this.neg().divmod(d.neg(),y),y!==\"div\"&&(h=v.mod.neg(),l&&h.negative!==0&&h.isub(d)),{div:v.div,mod:h}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?y===\"div\"?{div:this.divn(d.words[0]),mod:null}:y===\"mod\"?{div:null,mod:new i(this.modn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modn(d.words[0]))}:this._wordDiv(d,y)},\"divmod\"),i.prototype.div=f(function(d){return this.divmod(d,\"div\",!1).div},\"div\"),i.prototype.mod=f(function(d){return this.divmod(d,\"mod\",!1).mod},\"mod\"),i.prototype.umod=f(function(d){return this.divmod(d,\"mod\",!0).mod},\"umod\"),i.prototype.divRound=f(function(d){var y=this.divmod(d);if(y.mod.isZero())return y.div;var l=y.mod.abs(),n=d.abs().iushrn(1),h=d.words[0]&1,v=l.cmp(n);if(v<0||h===1&&v===0)return y.div;var m=new i(1);return m.negative=this.negative^d.negative,y.div.iadd(m)},\"divRound\"),i.prototype.modn=f(function(d){r(d<=67108863);for(var y=(1<<26)%d,l=0,n=this.length-1;n>=0;n--)l=(y*l+(this.words[n]|0))%d;return l},\"modn\"),i.prototype.idivn=f(function(d){r(d<=67108863);for(var y=0,l=this.length-1;l>=0;l--){var n=(this.words[l]|0)+y*67108864;this.words[l]=n/d|0,y=n%d}return this.strip()},\"idivn\"),i.prototype.divn=f(function(d){return this.clone().idivn(d)},\"divn\"),i.prototype.egcd=f(function(d){r(d.negative===0),r(!d.isZero());var y=this,l=d.clone();y.negative!==0?y=y.umod(d):y=y.clone();for(var n=new i(1),h=new i(0),v=new i(0),m=new i(1),b=0;y.isEven()&&l.isEven();)y.iushrn(1),l.iushrn(1),++b;for(var o=l.clone(),g=y.clone();!y.isZero();){for(var w=0,u=1;(y.words[0]&u)===0&&w<26;++w,u<<=1);if(w>0)for(y.iushrn(w);w-- >0;)(n.isOdd()||h.isOdd())&&(n.iadd(o),h.isub(g)),n.iushrn(1),h.iushrn(1);for(var x=0,C=1;(l.words[0]&C)===0&&x<26;++x,C<<=1);if(x>0)for(l.iushrn(x);x-- >0;)(v.isOdd()||m.isOdd())&&(v.iadd(o),m.isub(g)),v.iushrn(1),m.iushrn(1);y.cmp(l)>=0?(y.isub(l),n.isub(v),h.isub(m)):(l.isub(y),v.isub(n),m.isub(h))}return{a:v,b:m,gcd:l.iushln(b)}},\"egcd\"),i.prototype._invmp=f(function(d){r(d.negative===0),r(!d.isZero());var y=this,l=d.clone();y.negative!==0?y=y.umod(d):y=y.clone();for(var n=new i(1),h=new i(0),v=l.clone();y.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,b=1;(y.words[0]&b)===0&&m<26;++m,b<<=1);if(m>0)for(y.iushrn(m);m-- >0;)n.isOdd()&&n.iadd(v),n.iushrn(1);for(var o=0,g=1;(l.words[0]&g)===0&&o<26;++o,g<<=1);if(o>0)for(l.iushrn(o);o-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);y.cmp(l)>=0?(y.isub(l),n.isub(h)):(l.isub(y),h.isub(n))}var w;return y.cmpn(1)===0?w=n:w=h,w.cmpn(0)<0&&w.iadd(d),w},\"_invmp\"),i.prototype.gcd=f(function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var y=this.clone(),l=d.clone();y.negative=0,l.negative=0;for(var n=0;y.isEven()&&l.isEven();n++)y.iushrn(1),l.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=y.cmp(l);if(h<0){var v=y;y=l,l=v}else if(h===0||l.cmpn(1)===0)break;y.isub(l)}while(!0);return l.iushln(n)},\"gcd\"),i.prototype.invm=f(function(d){return this.egcd(d).a.umod(d)},\"invm\"),i.prototype.isEven=f(function(){return(this.words[0]&1)===0},\"isEven\"),i.prototype.isOdd=f(function(){return(this.words[0]&1)===1},\"isOdd\"),i.prototype.andln=f(function(d){return this.words[0]&d},\"andln\"),i.prototype.bincn=f(function(d){r(typeof d==\"number\");var y=d%26,l=(d-y)/26,n=1<<y;if(this.length<=l)return this._expand(l+1),this.words[l]|=n,this;for(var h=n,v=l;h!==0&&v<this.length;v++){var m=this.words[v]|0;m+=h,h=m>>>26,m&=67108863,this.words[v]=m}return h!==0&&(this.words[v]=h,this.length++),this},\"bincn\"),i.prototype.isZero=f(function(){return this.length===1&&this.words[0]===0},\"isZero\"),i.prototype.cmpn=f(function(d){var y=d<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var l;if(this.length>1)l=1;else{y&&(d=-d),r(d<=67108863,\"Number is too big\");var n=this.words[0]|0;l=n===d?0:n<d?-1:1}return this.negative!==0?-l|0:l},\"cmpn\"),i.prototype.cmp=f(function(d){if(this.negative!==0&&d.negative===0)return-1;if(this.negative===0&&d.negative!==0)return 1;var y=this.ucmp(d);return this.negative!==0?-y|0:y},\"cmp\"),i.prototype.ucmp=f(function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var y=0,l=this.length-1;l>=0;l--){var n=this.words[l]|0,h=d.words[l]|0;if(n!==h){n<h?y=-1:n>h&&(y=1);break}}return y},\"ucmp\"),i.prototype.gtn=f(function(d){return this.cmpn(d)===1},\"gtn\"),i.prototype.gt=f(function(d){return this.cmp(d)===1},\"gt\"),i.prototype.gten=f(function(d){return this.cmpn(d)>=0},\"gten\"),i.prototype.gte=f(function(d){return this.cmp(d)>=0},\"gte\"),i.prototype.ltn=f(function(d){return this.cmpn(d)===-1},\"ltn\"),i.prototype.lt=f(function(d){return this.cmp(d)===-1},\"lt\"),i.prototype.lten=f(function(d){return this.cmpn(d)<=0},\"lten\"),i.prototype.lte=f(function(d){return this.cmp(d)<=0},\"lte\"),i.prototype.eqn=f(function(d){return this.cmpn(d)===0},\"eqn\"),i.prototype.eq=f(function(d){return this.cmp(d)===0},\"eq\"),i.red=f(function(d){return new Ae(d)},\"red\"),i.prototype.toRed=f(function(d){return r(!this.red,\"Already a number in reduction context\"),r(this.negative===0,\"red works only with positives\"),d.convertTo(this)._forceRed(d)},\"toRed\"),i.prototype.fromRed=f(function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},\"fromRed\"),i.prototype._forceRed=f(function(d){return this.red=d,this},\"_forceRed\"),i.prototype.forceRed=f(function(d){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(d)},\"forceRed\"),i.prototype.redAdd=f(function(d){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,d)},\"redAdd\"),i.prototype.redIAdd=f(function(d){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,d)},\"redIAdd\"),i.prototype.redSub=f(function(d){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,d)},\"redSub\"),i.prototype.redISub=f(function(d){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,d)},\"redISub\"),i.prototype.redShl=f(function(d){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,d)},\"redShl\"),i.prototype.redMul=f(function(d){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,d),this.red.mul(this,d)},\"redMul\"),i.prototype.redIMul=f(function(d){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,d),this.red.imul(this,d)},\"redIMul\"),i.prototype.redSqr=f(function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},\"redSqr\"),i.prototype.redISqr=f(function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},\"redISqr\"),i.prototype.redSqrt=f(function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},\"redSqrt\"),i.prototype.redInvm=f(function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},\"redInvm\"),i.prototype.redNeg=f(function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},\"redNeg\"),i.prototype.redPow=f(function(d){return r(this.red&&!d.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,d)},\"redPow\");var z={k256:null,p224:null,p192:null,p25519:null};function Ee(E,d){this.name=E,this.p=new i(d,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f(Ee,\"MPrime\"),Ee.prototype._tmp=f(function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},\"_tmp\"),Ee.prototype.ireduce=f(function(d){var y=d,l;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),l=y.bitLength();while(l>this.n);var n=l<this.n?-1:y.ucmp(this.p);return n===0?(y.words[0]=0,y.length=1):n>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},\"ireduce\"),Ee.prototype.split=f(function(d,y){d.iushrn(this.n,0,y)},\"split\"),Ee.prototype.imulK=f(function(d){return d.imul(this.k)},\"imulK\");function qe(){Ee.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}f(qe,\"K256\"),a(qe,Ee),qe.prototype.split=f(function(d,y){for(var l=4194303,n=Math.min(d.length,9),h=0;h<n;h++)y.words[h]=d.words[h];if(y.length=n,d.length<=9){d.words[0]=0,d.length=1;return}var v=d.words[9];for(y.words[y.length++]=v&l,h=10;h<d.length;h++){var m=d.words[h]|0;d.words[h-10]=(m&l)<<4|v>>>22,v=m}v>>>=22,d.words[h-10]=v,v===0&&d.length>10?d.length-=10:d.length-=9},\"split\"),qe.prototype.imulK=f(function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var y=0,l=0;l<d.length;l++){var n=d.words[l]|0;y+=n*977,d.words[l]=y&67108863,y=n*64+(y/67108864|0)}return d.words[d.length-1]===0&&(d.length--,d.words[d.length-1]===0&&d.length--),d},\"imulK\");function De(){Ee.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}f(De,\"P224\"),a(De,Ee);function ke(){Ee.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}f(ke,\"P192\"),a(ke,Ee);function Ue(){Ee.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}f(Ue,\"P25519\"),a(Ue,Ee),Ue.prototype.imulK=f(function(d){for(var y=0,l=0;l<d.length;l++){var n=(d.words[l]|0)*19+y,h=n&67108863;n>>>=26,d.words[l]=h,y=n}return y!==0&&(d.words[d.length++]=y),d},\"imulK\"),i._prime=f(function(d){if(z[d])return z[d];var y;if(d===\"k256\")y=new qe;else if(d===\"p224\")y=new De;else if(d===\"p192\")y=new ke;else if(d===\"p25519\")y=new Ue;else throw new Error(\"Unknown prime \"+d);return z[d]=y,y},\"prime\");function Ae(E){if(typeof E==\"string\"){var d=i._prime(E);this.m=d.p,this.prime=d}else r(E.gtn(1),\"modulus must be greater than 1\"),this.m=E,this.prime=null}f(Ae,\"Red\"),Ae.prototype._verify1=f(function(d){r(d.negative===0,\"red works only with positives\"),r(d.red,\"red works only with red numbers\")},\"_verify1\"),Ae.prototype._verify2=f(function(d,y){r((d.negative|y.negative)===0,\"red works only with positives\"),r(d.red&&d.red===y.red,\"red works only with red numbers\")},\"_verify2\"),Ae.prototype.imod=f(function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):d.umod(this.m)._forceRed(this)},\"imod\"),Ae.prototype.neg=f(function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},\"neg\"),Ae.prototype.add=f(function(d,y){this._verify2(d,y);var l=d.add(y);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},\"add\"),Ae.prototype.iadd=f(function(d,y){this._verify2(d,y);var l=d.iadd(y);return l.cmp(this.m)>=0&&l.isub(this.m),l},\"iadd\"),Ae.prototype.sub=f(function(d,y){this._verify2(d,y);var l=d.sub(y);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},\"sub\"),Ae.prototype.isub=f(function(d,y){this._verify2(d,y);var l=d.isub(y);return l.cmpn(0)<0&&l.iadd(this.m),l},\"isub\"),Ae.prototype.shl=f(function(d,y){return this._verify1(d),this.imod(d.ushln(y))},\"shl\"),Ae.prototype.imul=f(function(d,y){return this._verify2(d,y),this.imod(d.imul(y))},\"imul\"),Ae.prototype.mul=f(function(d,y){return this._verify2(d,y),this.imod(d.mul(y))},\"mul\"),Ae.prototype.isqr=f(function(d){return this.imul(d,d.clone())},\"isqr\"),Ae.prototype.sqr=f(function(d){return this.mul(d,d)},\"sqr\"),Ae.prototype.sqrt=f(function(d){if(d.isZero())return d.clone();var y=this.m.andln(3);if(r(y%2===1),y===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(d,l)}for(var n=this.m.subn(1),h=0;!n.isZero()&&n.andln(1)===0;)h++,n.iushrn(1);r(!n.isZero());var v=new i(1).toRed(this),m=v.redNeg(),b=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,b).cmp(m)!==0;)o.redIAdd(m);for(var g=this.pow(o,n),w=this.pow(d,n.addn(1).iushrn(1)),u=this.pow(d,n),x=h;u.cmp(v)!==0;){for(var C=u,P=0;C.cmp(v)!==0;P++)C=C.redSqr();r(P<x);var D=this.pow(g,new i(1).iushln(x-P-1));w=w.redMul(D),g=D.redSqr(),u=u.redMul(g),x=P}return w},\"sqrt\"),Ae.prototype.invm=f(function(d){var y=d._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},\"invm\"),Ae.prototype.pow=f(function(d,y){if(y.isZero())return new i(1).toRed(this);if(y.cmpn(1)===0)return d.clone();var l=4,n=new Array(1<<l);n[0]=new i(1).toRed(this),n[1]=d;for(var h=2;h<n.length;h++)n[h]=this.mul(n[h-1],d);var v=n[0],m=0,b=0,o=y.bitLength()%26;for(o===0&&(o=26),h=y.length-1;h>=0;h--){for(var g=y.words[h],w=o-1;w>=0;w--){var u=g>>w&1;if(v!==n[0]&&(v=this.sqr(v)),u===0&&m===0){b=0;continue}m<<=1,m|=u,b++,!(b!==l&&(h!==0||w!==0))&&(v=this.mul(v,n[m]),b=0,m=0)}o=26}return v},\"pow\"),Ae.prototype.convertTo=f(function(d){var y=d.umod(this.m);return y===d?y.clone():y},\"convertTo\"),Ae.prototype.convertFrom=f(function(d){var y=d.clone();return y.red=null,y},\"convertFrom\"),i.mont=f(function(d){return new Le(d)},\"mont\");function Le(E){Ae.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(Le,\"Mont\"),a(Le,Ae),Le.prototype.convertTo=f(function(d){return this.imod(d.ushln(this.shift))},\"convertTo\"),Le.prototype.convertFrom=f(function(d){var y=this.imod(d.mul(this.rinv));return y.red=null,y},\"convertFrom\"),Le.prototype.imul=f(function(d,y){if(d.isZero()||y.isZero())return d.words[0]=0,d.length=1,d;var l=d.imul(y),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(n).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},\"imul\"),Le.prototype.mul=f(function(d,y){if(d.isZero()||y.isZero())return new i(0)._forceRed(this);var l=d.mul(y),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(n).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},\"mul\"),Le.prototype.invm=f(function(d){var y=this.imod(d._invmp(this.m).mul(this.r2));return y._forceRed(this)},\"invm\")})(typeof u0>\"u\"||u0,Cd)});var Ef=k((V7,p0)=>{M();var l0;p0.exports=f(function(e){return l0||(l0=new pr(null)),l0.generate(e)},\"rand\");function pr(t){this.rand=t}f(pr,\"Rand\");p0.exports.Rand=pr;pr.prototype.generate=f(function(e){return this._rand(e)},\"generate\");pr.prototype._rand=f(function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),a=0;a<r.length;a++)r[a]=this.rand.getByte();return r},\"_rand\");if(typeof self==\"object\")self.crypto&&self.crypto.getRandomValues?pr.prototype._rand=f(function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r},\"_rand\"):self.msCrypto&&self.msCrypto.getRandomValues?pr.prototype._rand=f(function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r},\"_rand\"):typeof window==\"object\"&&(pr.prototype._rand=function(){throw new Error(\"Not implemented yet\")});else try{if(v0=b0(),typeof v0.randomBytes!=\"function\")throw new Error(\"Not supported\");pr.prototype._rand=f(function(e){return v0.randomBytes(e)},\"_rand\")}catch{}var v0});var m0=k((X7,Dd)=>{M();var Gr=je(),sb=Ef();function Jr(t){this.rand=t||new sb.Rand}f(Jr,\"MillerRabin\");Dd.exports=Jr;Jr.create=f(function(e){return new Jr(e)},\"create\");Jr.prototype._randbelow=f(function(e){var r=e.bitLength(),a=Math.ceil(r/8);do var i=new Gr(this.rand.generate(a));while(i.cmp(e)>=0);return i},\"_randbelow\");Jr.prototype._randrange=f(function(e,r){var a=r.sub(e);return e.add(this._randbelow(a))},\"_randrange\");Jr.prototype.test=f(function(e,r,a){var i=e.bitLength(),s=Gr.mont(e),c=new Gr(1).toRed(s);r||(r=Math.max(1,i/48|0));for(var p=e.subn(1),_=0;!p.testn(_);_++);for(var S=e.shrn(_),A=p.toRed(s),q=!0;r>0;r--){var B=this._randrange(new Gr(2),p);a&&a(B);var I=B.toRed(s).redPow(S);if(!(I.cmp(c)===0||I.cmp(A)===0)){for(var R=1;R<_;R++){if(I=I.redSqr(),I.cmp(c)===0)return!1;if(I.cmp(A)===0)break}if(R===_)return!1}}return q},\"test\");Jr.prototype.getDivisor=f(function(e,r){var a=e.bitLength(),i=Gr.mont(e),s=new Gr(1).toRed(i);r||(r=Math.max(1,a/48|0));for(var c=e.subn(1),p=0;!c.testn(p);p++);for(var _=e.shrn(p),S=c.toRed(i);r>0;r--){var A=this._randrange(new Gr(2),c),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var B=A.toRed(i).redPow(_);if(!(B.cmp(s)===0||B.cmp(S)===0)){for(var I=1;I<p;I++){if(B=B.redSqr(),B.cmp(s)===0)return B.fromRed().subn(1).gcd(e);if(B.cmp(S)===0)break}if(I===p)return B=B.redSqr(),B.fromRed().subn(1).gcd(e)}}return!1},\"getDivisor\")});var M0=k((tm,Nd)=>{M();var ob=Or();Nd.exports=x0;x0.simpleSieve=_0;x0.fermatTest=w0;var Xe=je(),hb=new Xe(24),db=m0(),Pd=new db,cb=new Xe(1),g0=new Xe(2),ub=new Xe(5),Y7=new Xe(16),$7=new Xe(8),lb=new Xe(10),vb=new Xe(3),Q7=new Xe(7),pb=new Xe(11),Td=new Xe(4),em=new Xe(12),y0=null;function bb(){if(y0!==null)return y0;var t=1048576,e=[];e[0]=2;for(var r=1,a=3;a<t;a+=2){for(var i=Math.ceil(Math.sqrt(a)),s=0;s<r&&e[s]<=i&&a%e[s]!==0;s++);r!==s&&e[s]<=i||(e[r++]=a)}return y0=e,e}f(bb,\"_getPrimes\");function _0(t){for(var e=bb(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}f(_0,\"simpleSieve\");function w0(t){var e=Xe.mont(t);return g0.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}f(w0,\"fermatTest\");function x0(t,e){if(t<16)return e===2||e===5?new Xe([140,123]):new Xe([140,39]);e=new Xe(e);for(var r,a;;){for(r=new Xe(ob(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(cb),r.testn(1)||r.iadd(g0),e.cmp(g0)){if(!e.cmp(ub))for(;r.mod(lb).cmp(vb);)r.iadd(Td)}else for(;r.mod(hb).cmp(pb);)r.iadd(Td);if(a=r.shrn(1),_0(a)&&_0(r)&&w0(a)&&w0(r)&&Pd.test(a)&&Pd.test(r))return r}}f(x0,\"findPrime\")});var Od=k((am,mb)=>{mb.exports={modp1:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff\"},modp2:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff\"},modp5:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff\"},modp14:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff\"},modp15:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff\"},modp16:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff\"},modp17:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff\"},modp18:{gen:\"02\",prime:\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff\"}}});var Fd=k((fm,zd)=>{M();var bt=je(),yb=m0(),Ld=new yb,gb=new bt(24),_b=new bt(11),wb=new bt(10),xb=new bt(3),Mb=new bt(7),Ud=M0(),Sb=Or();zd.exports=ir;function Ab(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new bt(t),this}f(Ab,\"setPublicKey\");function Eb(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new bt(t),this}f(Eb,\"setPrivateKey\");var qf={};function qb(t,e){var r=e.toString(\"hex\"),a=[r,t.toString(16)].join(\"_\");if(a in qf)return qf[a];var i=0;if(t.isEven()||!Ud.simpleSieve||!Ud.fermatTest(t)||!Ld.test(t))return i+=1,r===\"02\"||r===\"05\"?i+=8:i+=4,qf[a]=i,i;Ld.test(t.shrn(1))||(i+=2);var s;switch(r){case\"02\":t.mod(gb).cmp(_b)&&(i+=8);break;case\"05\":s=t.mod(wb),s.cmp(xb)&&s.cmp(Mb)&&(i+=8);break;default:i+=4}return qf[a]=i,i}f(qb,\"checkPrime\");function ir(t,e,r){this.setGenerator(e),this.__prime=new bt(t),this._prime=bt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=Ab,this.setPrivateKey=Eb):this._primeCode=8}f(ir,\"DH\");Object.defineProperty(ir.prototype,\"verifyError\",{enumerable:!0,get:f(function(){return typeof this._primeCode!=\"number\"&&(this._primeCode=qb(this.__prime,this.__gen)),this._primeCode},\"get\")});ir.prototype.generateKeys=function(){return this._priv||(this._priv=new bt(Sb(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};ir.prototype.computeSecret=function(t){t=new bt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new Buffer(e.toArray()),a=this.getPrime();if(r.length<a.length){var i=new Buffer(a.length-r.length);i.fill(0),r=Buffer.concat([i,r])}return r};ir.prototype.getPublicKey=f(function(e){return Bf(this._pub,e)},\"getPublicKey\");ir.prototype.getPrivateKey=f(function(e){return Bf(this._priv,e)},\"getPrivateKey\");ir.prototype.getPrime=function(t){return Bf(this.__prime,t)};ir.prototype.getGenerator=function(t){return Bf(this._gen,t)};ir.prototype.setGenerator=function(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.__gen=t,this._gen=new bt(t),this};function Bf(t,e){var r=new Buffer(t.toArray());return e?r.toString(e):r}f(Bf,\"formatReturnValue\")});var jd=k(_i=>{M();var Bb=M0(),Hd=Od(),S0=Fd();function kb(t){var e=new Buffer(Hd[t].prime,\"hex\"),r=new Buffer(Hd[t].gen,\"hex\");return new S0(e,r)}f(kb,\"getDiffieHellman\");var Ib={binary:!0,hex:!0,base64:!0};function Kd(t,e,r,a){return Buffer.isBuffer(e)||Ib[e]===void 0?Kd(t,\"binary\",e,r):(e=e||\"binary\",a=a||\"binary\",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),typeof t==\"number\"?new S0(Bb(t,r),r,!0):(Buffer.isBuffer(t)||(t=new Buffer(t,e)),new S0(t,r,!0)))}f(Kd,\"createDiffieHellman\");_i.DiffieHellmanGroup=_i.createDiffieHellmanGroup=_i.getDiffieHellman=kb;_i.createDiffieHellman=_i.DiffieHellman=Kd});var kf=k((Vd,A0)=>{M();(function(t,e){\"use strict\";function r(l,n){if(!l)throw new Error(n||\"Assertion failed\")}f(r,\"assert\");function a(l,n){l.super_=n;var h=f(function(){},\"TempCtor\");h.prototype=n.prototype,l.prototype=new h,l.prototype.constructor=l}f(a,\"inherits\");function i(l,n,h){if(i.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((n===\"le\"||n===\"be\")&&(h=n,n=10),this._init(l||0,n||10,h||\"be\"))}f(i,\"BN\"),typeof t==\"object\"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?s=window.Buffer:s=(cr(),hr(dr)).Buffer}catch{}i.isBN=f(function(n){return n instanceof i?!0:n!==null&&typeof n==\"object\"&&n.constructor.wordSize===i.wordSize&&Array.isArray(n.words)},\"isBN\"),i.max=f(function(n,h){return n.cmp(h)>0?n:h},\"max\"),i.min=f(function(n,h){return n.cmp(h)<0?n:h},\"min\"),i.prototype._init=f(function(n,h,v){if(typeof n==\"number\")return this._initNumber(n,h,v);if(typeof n==\"object\")return this._initArray(n,h,v);h===\"hex\"&&(h=16),r(h===(h|0)&&h>=2&&h<=36),n=n.toString().replace(/\\s+/g,\"\");var m=0;n[0]===\"-\"&&(m++,this.negative=1),m<n.length&&(h===16?this._parseHex(n,m,v):(this._parseBase(n,h,m),v===\"le\"&&this._initArray(this.toArray(),h,v)))},\"init\"),i.prototype._initNumber=f(function(n,h,v){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[n&67108863],this.length=1):n<4503599627370496?(this.words=[n&67108863,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[n&67108863,n/67108864&67108863,1],this.length=3),v===\"le\"&&this._initArray(this.toArray(),h,v)},\"_initNumber\"),i.prototype._initArray=f(function(n,h,v){if(r(typeof n.length==\"number\"),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b,o,g=0;if(v===\"be\")for(m=n.length-1,b=0;m>=0;m-=3)o=n[m]|n[m-1]<<8|n[m-2]<<16,this.words[b]|=o<<g&67108863,this.words[b+1]=o>>>26-g&67108863,g+=24,g>=26&&(g-=26,b++);else if(v===\"le\")for(m=0,b=0;m<n.length;m+=3)o=n[m]|n[m+1]<<8|n[m+2]<<16,this.words[b]|=o<<g&67108863,this.words[b+1]=o>>>26-g&67108863,g+=24,g>=26&&(g-=26,b++);return this._strip()},\"_initArray\");function c(l,n){var h=l.charCodeAt(n);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;r(!1,\"Invalid character in \"+l)}f(c,\"parseHex4Bits\");function p(l,n,h){var v=c(l,h);return h-1>=n&&(v|=c(l,h-1)<<4),v}f(p,\"parseHexByte\"),i.prototype._parseHex=f(function(n,h,v){this.length=Math.ceil((n.length-h)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b=0,o=0,g;if(v===\"be\")for(m=n.length-1;m>=h;m-=2)g=p(n,h,m)<<b,this.words[o]|=g&67108863,b>=18?(b-=18,o+=1,this.words[o]|=g>>>26):b+=8;else{var w=n.length-h;for(m=w%2===0?h+1:h;m<n.length;m+=2)g=p(n,h,m)<<b,this.words[o]|=g&67108863,b>=18?(b-=18,o+=1,this.words[o]|=g>>>26):b+=8}this._strip()},\"_parseHex\");function _(l,n,h,v){for(var m=0,b=0,o=Math.min(l.length,h),g=n;g<o;g++){var w=l.charCodeAt(g)-48;m*=v,w>=49?b=w-49+10:w>=17?b=w-17+10:b=w,r(w>=0&&b<v,\"Invalid character\"),m+=b}return m}f(_,\"parseBase\"),i.prototype._parseBase=f(function(n,h,v){this.words=[0],this.length=1;for(var m=0,b=1;b<=67108863;b*=h)m++;m--,b=b/h|0;for(var o=n.length-v,g=o%m,w=Math.min(o,o-g)+v,u=0,x=v;x<w;x+=m)u=_(n,x,x+m,h),this.imuln(b),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var C=1;for(u=_(n,x,n.length,h),x=0;x<g;x++)C*=h;this.imuln(C),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},\"_parseBase\"),i.prototype.copy=f(function(n){n.words=new Array(this.length);for(var h=0;h<this.length;h++)n.words[h]=this.words[h];n.length=this.length,n.negative=this.negative,n.red=this.red},\"copy\");function S(l,n){l.words=n.words,l.length=n.length,l.negative=n.negative,l.red=n.red}if(f(S,\"move\"),i.prototype._move=f(function(n){S(n,this)},\"_move\"),i.prototype.clone=f(function(){var n=new i(null);return this.copy(n),n},\"clone\"),i.prototype._expand=f(function(n){for(;this.length<n;)this.words[this.length++]=0;return this},\"_expand\"),i.prototype._strip=f(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},\"strip\"),i.prototype._normSign=f(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},\"_normSign\"),typeof Symbol<\"u\"&&typeof Symbol.for==\"function\")try{i.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=A}catch{i.prototype.inspect=A}else i.prototype.inspect=A;function A(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}f(A,\"inspect\");var q=[\"\",\"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\"],B=[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],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=f(function(n,h){n=n||10,h=h|0||1;var v;if(n===16||n===\"hex\"){v=\"\";for(var m=0,b=0,o=0;o<this.length;o++){var g=this.words[o],w=((g<<m|b)&16777215).toString(16);b=g>>>24-m&16777215,m+=2,m>=26&&(m-=26,o--),b!==0||o!==this.length-1?v=q[6-w.length]+w+v:v=w+v}for(b!==0&&(v=b.toString(16)+v);v.length%h!==0;)v=\"0\"+v;return this.negative!==0&&(v=\"-\"+v),v}if(n===(n|0)&&n>=2&&n<=36){var u=B[n],x=I[n];v=\"\";var C=this.clone();for(C.negative=0;!C.isZero();){var P=C.modrn(x).toString(n);C=C.idivn(x),C.isZero()?v=P+v:v=q[u-P.length]+P+v}for(this.isZero()&&(v=\"0\"+v);v.length%h!==0;)v=\"0\"+v;return this.negative!==0&&(v=\"-\"+v),v}r(!1,\"Base should be between 2 and 36\")},\"toString\"),i.prototype.toNumber=f(function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-n:n},\"toNumber\"),i.prototype.toJSON=f(function(){return this.toString(16,2)},\"toJSON\"),s&&(i.prototype.toBuffer=f(function(n,h){return this.toArrayLike(s,n,h)},\"toBuffer\")),i.prototype.toArray=f(function(n,h){return this.toArrayLike(Array,n,h)},\"toArray\");var R=f(function(n,h){return n.allocUnsafe?n.allocUnsafe(h):new n(h)},\"allocate\");i.prototype.toArrayLike=f(function(n,h,v){this._strip();var m=this.byteLength(),b=v||Math.max(1,m);r(m<=b,\"byte array longer than desired length\"),r(b>0,\"Requested array length <= 0\");var o=R(n,b),g=h===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+g](o,m),o},\"toArrayLike\"),i.prototype._toArrayLikeLE=f(function(n,h){for(var v=0,m=0,b=0,o=0;b<this.length;b++){var g=this.words[b]<<o|m;n[v++]=g&255,v<n.length&&(n[v++]=g>>8&255),v<n.length&&(n[v++]=g>>16&255),o===6?(v<n.length&&(n[v++]=g>>24&255),m=0,o=0):(m=g>>>24,o+=2)}if(v<n.length)for(n[v++]=m;v<n.length;)n[v++]=0},\"_toArrayLikeLE\"),i.prototype._toArrayLikeBE=f(function(n,h){for(var v=n.length-1,m=0,b=0,o=0;b<this.length;b++){var g=this.words[b]<<o|m;n[v--]=g&255,v>=0&&(n[v--]=g>>8&255),v>=0&&(n[v--]=g>>16&255),o===6?(v>=0&&(n[v--]=g>>24&255),m=0,o=0):(m=g>>>24,o+=2)}if(v>=0)for(n[v--]=m;v>=0;)n[v--]=0},\"_toArrayLikeBE\"),Math.clz32?i.prototype._countBits=f(function(n){return 32-Math.clz32(n)},\"_countBits\"):i.prototype._countBits=f(function(n){var h=n,v=0;return h>=4096&&(v+=13,h>>>=13),h>=64&&(v+=7,h>>>=7),h>=8&&(v+=4,h>>>=4),h>=2&&(v+=2,h>>>=2),v+h},\"_countBits\"),i.prototype._zeroBits=f(function(n){if(n===0)return 26;var h=n,v=0;return(h&8191)===0&&(v+=13,h>>>=13),(h&127)===0&&(v+=7,h>>>=7),(h&15)===0&&(v+=4,h>>>=4),(h&3)===0&&(v+=2,h>>>=2),(h&1)===0&&v++,v},\"_zeroBits\"),i.prototype.bitLength=f(function(){var n=this.words[this.length-1],h=this._countBits(n);return(this.length-1)*26+h},\"bitLength\");function T(l){for(var n=new Array(l.bitLength()),h=0;h<n.length;h++){var v=h/26|0,m=h%26;n[h]=l.words[v]>>>m&1}return n}f(T,\"toBitArray\"),i.prototype.zeroBits=f(function(){if(this.isZero())return 0;for(var n=0,h=0;h<this.length;h++){var v=this._zeroBits(this.words[h]);if(n+=v,v!==26)break}return n},\"zeroBits\"),i.prototype.byteLength=f(function(){return Math.ceil(this.bitLength()/8)},\"byteLength\"),i.prototype.toTwos=f(function(n){return this.negative!==0?this.abs().inotn(n).iaddn(1):this.clone()},\"toTwos\"),i.prototype.fromTwos=f(function(n){return this.testn(n-1)?this.notn(n).iaddn(1).ineg():this.clone()},\"fromTwos\"),i.prototype.isNeg=f(function(){return this.negative!==0},\"isNeg\"),i.prototype.neg=f(function(){return this.clone().ineg()},\"neg\"),i.prototype.ineg=f(function(){return this.isZero()||(this.negative^=1),this},\"ineg\"),i.prototype.iuor=f(function(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var h=0;h<n.length;h++)this.words[h]=this.words[h]|n.words[h];return this._strip()},\"iuor\"),i.prototype.ior=f(function(n){return r((this.negative|n.negative)===0),this.iuor(n)},\"ior\"),i.prototype.or=f(function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},\"or\"),i.prototype.uor=f(function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},\"uor\"),i.prototype.iuand=f(function(n){var h;this.length>n.length?h=n:h=this;for(var v=0;v<h.length;v++)this.words[v]=this.words[v]&n.words[v];return this.length=h.length,this._strip()},\"iuand\"),i.prototype.iand=f(function(n){return r((this.negative|n.negative)===0),this.iuand(n)},\"iand\"),i.prototype.and=f(function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},\"and\"),i.prototype.uand=f(function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},\"uand\"),i.prototype.iuxor=f(function(n){var h,v;this.length>n.length?(h=this,v=n):(h=n,v=this);for(var m=0;m<v.length;m++)this.words[m]=h.words[m]^v.words[m];if(this!==h)for(;m<h.length;m++)this.words[m]=h.words[m];return this.length=h.length,this._strip()},\"iuxor\"),i.prototype.ixor=f(function(n){return r((this.negative|n.negative)===0),this.iuxor(n)},\"ixor\"),i.prototype.xor=f(function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},\"xor\"),i.prototype.uxor=f(function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},\"uxor\"),i.prototype.inotn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=Math.ceil(n/26)|0,v=n%26;this._expand(h),v>0&&h--;for(var m=0;m<h;m++)this.words[m]=~this.words[m]&67108863;for(v>0&&(this.words[m]=~this.words[m]&67108863>>26-v,m++);m<this.length;m++)this.words[m]=0;return this._strip()},\"inotn\"),i.prototype.notn=f(function(n){return this.clone().inotn(n)},\"notn\"),i.prototype.setn=f(function(n,h){r(typeof n==\"number\"&&n>=0);var v=n/26|0,m=n%26;return this._expand(v+1),h?this.words[v]=this.words[v]|1<<m:this.words[v]=this.words[v]&~(1<<m),this._strip()},\"setn\"),i.prototype.iadd=f(function(n){var h;if(this.negative!==0&&n.negative===0)return this.negative=0,h=this.isub(n),this.negative^=1,this._normSign();if(this.negative===0&&n.negative!==0)return n.negative=0,h=this.isub(n),n.negative=1,h._normSign();var v,m;this.length>n.length?(v=this,m=n):(v=n,m=this);for(var b=0,o=0;o<m.length;o++)h=(v.words[o]|0)+(m.words[o]|0)+b,this.words[o]=h&67108863,b=h>>>26;for(;b!==0&&o<v.length;o++)h=(v.words[o]|0)+b,this.words[o]=h&67108863,b=h>>>26;if(this.length=v.length,b!==0)this.words[this.length]=b,this.length++;else if(v!==this)for(;o<v.length;o++)this.words[o]=v.words[o];return this},\"iadd\"),i.prototype.add=f(function(n){var h;return n.negative!==0&&this.negative===0?(n.negative=0,h=this.sub(n),n.negative^=1,h):n.negative===0&&this.negative!==0?(this.negative=0,h=n.sub(this),this.negative=1,h):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},\"add\"),i.prototype.isub=f(function(n){if(n.negative!==0){n.negative=0;var h=this.iadd(n);return n.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var v=this.cmp(n);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,b;v>0?(m=this,b=n):(m=n,b=this);for(var o=0,g=0;g<b.length;g++)h=(m.words[g]|0)-(b.words[g]|0)+o,o=h>>26,this.words[g]=h&67108863;for(;o!==0&&g<m.length;g++)h=(m.words[g]|0)+o,o=h>>26,this.words[g]=h&67108863;if(o===0&&g<m.length&&m!==this)for(;g<m.length;g++)this.words[g]=m.words[g];return this.length=Math.max(this.length,g),m!==this&&(this.negative=1),this._strip()},\"isub\"),i.prototype.sub=f(function(n){return this.clone().isub(n)},\"sub\");function L(l,n,h){h.negative=n.negative^l.negative;var v=l.length+n.length|0;h.length=v,v=v-1|0;var m=l.words[0]|0,b=n.words[0]|0,o=m*b,g=o&67108863,w=o/67108864|0;h.words[0]=g;for(var u=1;u<v;u++){for(var x=w>>>26,C=w&67108863,P=Math.min(u,n.length-1),D=Math.max(0,u-l.length+1);D<=P;D++){var U=u-D|0;m=l.words[U]|0,b=n.words[D]|0,o=m*b+C,x+=o/67108864|0,C=o&67108863}h.words[u]=C|0,w=x|0}return w!==0?h.words[u]=w|0:h.length--,h._strip()}f(L,\"smallMulTo\");var N=f(function(n,h,v){var m=n.words,b=h.words,o=v.words,g=0,w,u,x,C=m[0]|0,P=C&8191,D=C>>>13,U=m[1]|0,O=U&8191,F=U>>>13,xt=m[2]|0,H=xt&8191,K=xt>>>13,Li=m[3]|0,j=Li&8191,V=Li>>>13,Ui=m[4]|0,W=Ui&8191,Z=Ui>>>13,zi=m[5]|0,X=zi&8191,G=zi>>>13,Fi=m[6]|0,J=Fi&8191,Y=Fi>>>13,Hi=m[7]|0,$=Hi&8191,Q=Hi>>>13,Ki=m[8]|0,ee=Ki&8191,te=Ki>>>13,ji=m[9]|0,re=ji&8191,ie=ji>>>13,Vi=b[0]|0,ae=Vi&8191,fe=Vi>>>13,Wi=b[1]|0,ne=Wi&8191,se=Wi>>>13,Zi=b[2]|0,oe=Zi&8191,he=Zi>>>13,Xi=b[3]|0,de=Xi&8191,ce=Xi>>>13,Gi=b[4]|0,ue=Gi&8191,le=Gi>>>13,Ji=b[5]|0,ve=Ji&8191,pe=Ji>>>13,Yi=b[6]|0,be=Yi&8191,me=Yi>>>13,$i=b[7]|0,ye=$i&8191,ge=$i>>>13,Qi=b[8]|0,_e=Qi&8191,we=Qi>>>13,oi=b[9]|0,Te=oi&8191,Ne=oi>>>13;v.negative=n.negative^h.negative,v.length=19,w=Math.imul(P,ae),u=Math.imul(P,fe),u=u+Math.imul(D,ae)|0,x=Math.imul(D,fe);var wr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(wr>>>26)|0,wr&=67108863,w=Math.imul(O,ae),u=Math.imul(O,fe),u=u+Math.imul(F,ae)|0,x=Math.imul(F,fe),w=w+Math.imul(P,ne)|0,u=u+Math.imul(P,se)|0,u=u+Math.imul(D,ne)|0,x=x+Math.imul(D,se)|0;var xr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(xr>>>26)|0,xr&=67108863,w=Math.imul(H,ae),u=Math.imul(H,fe),u=u+Math.imul(K,ae)|0,x=Math.imul(K,fe),w=w+Math.imul(O,ne)|0,u=u+Math.imul(O,se)|0,u=u+Math.imul(F,ne)|0,x=x+Math.imul(F,se)|0,w=w+Math.imul(P,oe)|0,u=u+Math.imul(P,he)|0,u=u+Math.imul(D,oe)|0,x=x+Math.imul(D,he)|0;var Mr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,w=Math.imul(j,ae),u=Math.imul(j,fe),u=u+Math.imul(V,ae)|0,x=Math.imul(V,fe),w=w+Math.imul(H,ne)|0,u=u+Math.imul(H,se)|0,u=u+Math.imul(K,ne)|0,x=x+Math.imul(K,se)|0,w=w+Math.imul(O,oe)|0,u=u+Math.imul(O,he)|0,u=u+Math.imul(F,oe)|0,x=x+Math.imul(F,he)|0,w=w+Math.imul(P,de)|0,u=u+Math.imul(P,ce)|0,u=u+Math.imul(D,de)|0,x=x+Math.imul(D,ce)|0;var Sr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,w=Math.imul(W,ae),u=Math.imul(W,fe),u=u+Math.imul(Z,ae)|0,x=Math.imul(Z,fe),w=w+Math.imul(j,ne)|0,u=u+Math.imul(j,se)|0,u=u+Math.imul(V,ne)|0,x=x+Math.imul(V,se)|0,w=w+Math.imul(H,oe)|0,u=u+Math.imul(H,he)|0,u=u+Math.imul(K,oe)|0,x=x+Math.imul(K,he)|0,w=w+Math.imul(O,de)|0,u=u+Math.imul(O,ce)|0,u=u+Math.imul(F,de)|0,x=x+Math.imul(F,ce)|0,w=w+Math.imul(P,ue)|0,u=u+Math.imul(P,le)|0,u=u+Math.imul(D,ue)|0,x=x+Math.imul(D,le)|0;var Ar=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,w=Math.imul(X,ae),u=Math.imul(X,fe),u=u+Math.imul(G,ae)|0,x=Math.imul(G,fe),w=w+Math.imul(W,ne)|0,u=u+Math.imul(W,se)|0,u=u+Math.imul(Z,ne)|0,x=x+Math.imul(Z,se)|0,w=w+Math.imul(j,oe)|0,u=u+Math.imul(j,he)|0,u=u+Math.imul(V,oe)|0,x=x+Math.imul(V,he)|0,w=w+Math.imul(H,de)|0,u=u+Math.imul(H,ce)|0,u=u+Math.imul(K,de)|0,x=x+Math.imul(K,ce)|0,w=w+Math.imul(O,ue)|0,u=u+Math.imul(O,le)|0,u=u+Math.imul(F,ue)|0,x=x+Math.imul(F,le)|0,w=w+Math.imul(P,ve)|0,u=u+Math.imul(P,pe)|0,u=u+Math.imul(D,ve)|0,x=x+Math.imul(D,pe)|0;var Er=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,w=Math.imul(J,ae),u=Math.imul(J,fe),u=u+Math.imul(Y,ae)|0,x=Math.imul(Y,fe),w=w+Math.imul(X,ne)|0,u=u+Math.imul(X,se)|0,u=u+Math.imul(G,ne)|0,x=x+Math.imul(G,se)|0,w=w+Math.imul(W,oe)|0,u=u+Math.imul(W,he)|0,u=u+Math.imul(Z,oe)|0,x=x+Math.imul(Z,he)|0,w=w+Math.imul(j,de)|0,u=u+Math.imul(j,ce)|0,u=u+Math.imul(V,de)|0,x=x+Math.imul(V,ce)|0,w=w+Math.imul(H,ue)|0,u=u+Math.imul(H,le)|0,u=u+Math.imul(K,ue)|0,x=x+Math.imul(K,le)|0,w=w+Math.imul(O,ve)|0,u=u+Math.imul(O,pe)|0,u=u+Math.imul(F,ve)|0,x=x+Math.imul(F,pe)|0,w=w+Math.imul(P,be)|0,u=u+Math.imul(P,me)|0,u=u+Math.imul(D,be)|0,x=x+Math.imul(D,me)|0;var qr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(qr>>>26)|0,qr&=67108863,w=Math.imul($,ae),u=Math.imul($,fe),u=u+Math.imul(Q,ae)|0,x=Math.imul(Q,fe),w=w+Math.imul(J,ne)|0,u=u+Math.imul(J,se)|0,u=u+Math.imul(Y,ne)|0,x=x+Math.imul(Y,se)|0,w=w+Math.imul(X,oe)|0,u=u+Math.imul(X,he)|0,u=u+Math.imul(G,oe)|0,x=x+Math.imul(G,he)|0,w=w+Math.imul(W,de)|0,u=u+Math.imul(W,ce)|0,u=u+Math.imul(Z,de)|0,x=x+Math.imul(Z,ce)|0,w=w+Math.imul(j,ue)|0,u=u+Math.imul(j,le)|0,u=u+Math.imul(V,ue)|0,x=x+Math.imul(V,le)|0,w=w+Math.imul(H,ve)|0,u=u+Math.imul(H,pe)|0,u=u+Math.imul(K,ve)|0,x=x+Math.imul(K,pe)|0,w=w+Math.imul(O,be)|0,u=u+Math.imul(O,me)|0,u=u+Math.imul(F,be)|0,x=x+Math.imul(F,me)|0,w=w+Math.imul(P,ye)|0,u=u+Math.imul(P,ge)|0,u=u+Math.imul(D,ye)|0,x=x+Math.imul(D,ge)|0;var Br=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,w=Math.imul(ee,ae),u=Math.imul(ee,fe),u=u+Math.imul(te,ae)|0,x=Math.imul(te,fe),w=w+Math.imul($,ne)|0,u=u+Math.imul($,se)|0,u=u+Math.imul(Q,ne)|0,x=x+Math.imul(Q,se)|0,w=w+Math.imul(J,oe)|0,u=u+Math.imul(J,he)|0,u=u+Math.imul(Y,oe)|0,x=x+Math.imul(Y,he)|0,w=w+Math.imul(X,de)|0,u=u+Math.imul(X,ce)|0,u=u+Math.imul(G,de)|0,x=x+Math.imul(G,ce)|0,w=w+Math.imul(W,ue)|0,u=u+Math.imul(W,le)|0,u=u+Math.imul(Z,ue)|0,x=x+Math.imul(Z,le)|0,w=w+Math.imul(j,ve)|0,u=u+Math.imul(j,pe)|0,u=u+Math.imul(V,ve)|0,x=x+Math.imul(V,pe)|0,w=w+Math.imul(H,be)|0,u=u+Math.imul(H,me)|0,u=u+Math.imul(K,be)|0,x=x+Math.imul(K,me)|0,w=w+Math.imul(O,ye)|0,u=u+Math.imul(O,ge)|0,u=u+Math.imul(F,ye)|0,x=x+Math.imul(F,ge)|0,w=w+Math.imul(P,_e)|0,u=u+Math.imul(P,we)|0,u=u+Math.imul(D,_e)|0,x=x+Math.imul(D,we)|0;var kr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,w=Math.imul(re,ae),u=Math.imul(re,fe),u=u+Math.imul(ie,ae)|0,x=Math.imul(ie,fe),w=w+Math.imul(ee,ne)|0,u=u+Math.imul(ee,se)|0,u=u+Math.imul(te,ne)|0,x=x+Math.imul(te,se)|0,w=w+Math.imul($,oe)|0,u=u+Math.imul($,he)|0,u=u+Math.imul(Q,oe)|0,x=x+Math.imul(Q,he)|0,w=w+Math.imul(J,de)|0,u=u+Math.imul(J,ce)|0,u=u+Math.imul(Y,de)|0,x=x+Math.imul(Y,ce)|0,w=w+Math.imul(X,ue)|0,u=u+Math.imul(X,le)|0,u=u+Math.imul(G,ue)|0,x=x+Math.imul(G,le)|0,w=w+Math.imul(W,ve)|0,u=u+Math.imul(W,pe)|0,u=u+Math.imul(Z,ve)|0,x=x+Math.imul(Z,pe)|0,w=w+Math.imul(j,be)|0,u=u+Math.imul(j,me)|0,u=u+Math.imul(V,be)|0,x=x+Math.imul(V,me)|0,w=w+Math.imul(H,ye)|0,u=u+Math.imul(H,ge)|0,u=u+Math.imul(K,ye)|0,x=x+Math.imul(K,ge)|0,w=w+Math.imul(O,_e)|0,u=u+Math.imul(O,we)|0,u=u+Math.imul(F,_e)|0,x=x+Math.imul(F,we)|0,w=w+Math.imul(P,Te)|0,u=u+Math.imul(P,Ne)|0,u=u+Math.imul(D,Te)|0,x=x+Math.imul(D,Ne)|0;var Ir=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,w=Math.imul(re,ne),u=Math.imul(re,se),u=u+Math.imul(ie,ne)|0,x=Math.imul(ie,se),w=w+Math.imul(ee,oe)|0,u=u+Math.imul(ee,he)|0,u=u+Math.imul(te,oe)|0,x=x+Math.imul(te,he)|0,w=w+Math.imul($,de)|0,u=u+Math.imul($,ce)|0,u=u+Math.imul(Q,de)|0,x=x+Math.imul(Q,ce)|0,w=w+Math.imul(J,ue)|0,u=u+Math.imul(J,le)|0,u=u+Math.imul(Y,ue)|0,x=x+Math.imul(Y,le)|0,w=w+Math.imul(X,ve)|0,u=u+Math.imul(X,pe)|0,u=u+Math.imul(G,ve)|0,x=x+Math.imul(G,pe)|0,w=w+Math.imul(W,be)|0,u=u+Math.imul(W,me)|0,u=u+Math.imul(Z,be)|0,x=x+Math.imul(Z,me)|0,w=w+Math.imul(j,ye)|0,u=u+Math.imul(j,ge)|0,u=u+Math.imul(V,ye)|0,x=x+Math.imul(V,ge)|0,w=w+Math.imul(H,_e)|0,u=u+Math.imul(H,we)|0,u=u+Math.imul(K,_e)|0,x=x+Math.imul(K,we)|0,w=w+Math.imul(O,Te)|0,u=u+Math.imul(O,Ne)|0,u=u+Math.imul(F,Te)|0,x=x+Math.imul(F,Ne)|0;var Rr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,w=Math.imul(re,oe),u=Math.imul(re,he),u=u+Math.imul(ie,oe)|0,x=Math.imul(ie,he),w=w+Math.imul(ee,de)|0,u=u+Math.imul(ee,ce)|0,u=u+Math.imul(te,de)|0,x=x+Math.imul(te,ce)|0,w=w+Math.imul($,ue)|0,u=u+Math.imul($,le)|0,u=u+Math.imul(Q,ue)|0,x=x+Math.imul(Q,le)|0,w=w+Math.imul(J,ve)|0,u=u+Math.imul(J,pe)|0,u=u+Math.imul(Y,ve)|0,x=x+Math.imul(Y,pe)|0,w=w+Math.imul(X,be)|0,u=u+Math.imul(X,me)|0,u=u+Math.imul(G,be)|0,x=x+Math.imul(G,me)|0,w=w+Math.imul(W,ye)|0,u=u+Math.imul(W,ge)|0,u=u+Math.imul(Z,ye)|0,x=x+Math.imul(Z,ge)|0,w=w+Math.imul(j,_e)|0,u=u+Math.imul(j,we)|0,u=u+Math.imul(V,_e)|0,x=x+Math.imul(V,we)|0,w=w+Math.imul(H,Te)|0,u=u+Math.imul(H,Ne)|0,u=u+Math.imul(K,Te)|0,x=x+Math.imul(K,Ne)|0;var Cr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,w=Math.imul(re,de),u=Math.imul(re,ce),u=u+Math.imul(ie,de)|0,x=Math.imul(ie,ce),w=w+Math.imul(ee,ue)|0,u=u+Math.imul(ee,le)|0,u=u+Math.imul(te,ue)|0,x=x+Math.imul(te,le)|0,w=w+Math.imul($,ve)|0,u=u+Math.imul($,pe)|0,u=u+Math.imul(Q,ve)|0,x=x+Math.imul(Q,pe)|0,w=w+Math.imul(J,be)|0,u=u+Math.imul(J,me)|0,u=u+Math.imul(Y,be)|0,x=x+Math.imul(Y,me)|0,w=w+Math.imul(X,ye)|0,u=u+Math.imul(X,ge)|0,u=u+Math.imul(G,ye)|0,x=x+Math.imul(G,ge)|0,w=w+Math.imul(W,_e)|0,u=u+Math.imul(W,we)|0,u=u+Math.imul(Z,_e)|0,x=x+Math.imul(Z,we)|0,w=w+Math.imul(j,Te)|0,u=u+Math.imul(j,Ne)|0,u=u+Math.imul(V,Te)|0,x=x+Math.imul(V,Ne)|0;var Dr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,w=Math.imul(re,ue),u=Math.imul(re,le),u=u+Math.imul(ie,ue)|0,x=Math.imul(ie,le),w=w+Math.imul(ee,ve)|0,u=u+Math.imul(ee,pe)|0,u=u+Math.imul(te,ve)|0,x=x+Math.imul(te,pe)|0,w=w+Math.imul($,be)|0,u=u+Math.imul($,me)|0,u=u+Math.imul(Q,be)|0,x=x+Math.imul(Q,me)|0,w=w+Math.imul(J,ye)|0,u=u+Math.imul(J,ge)|0,u=u+Math.imul(Y,ye)|0,x=x+Math.imul(Y,ge)|0,w=w+Math.imul(X,_e)|0,u=u+Math.imul(X,we)|0,u=u+Math.imul(G,_e)|0,x=x+Math.imul(G,we)|0,w=w+Math.imul(W,Te)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(Z,Te)|0,x=x+Math.imul(Z,Ne)|0;var Pr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,w=Math.imul(re,ve),u=Math.imul(re,pe),u=u+Math.imul(ie,ve)|0,x=Math.imul(ie,pe),w=w+Math.imul(ee,be)|0,u=u+Math.imul(ee,me)|0,u=u+Math.imul(te,be)|0,x=x+Math.imul(te,me)|0,w=w+Math.imul($,ye)|0,u=u+Math.imul($,ge)|0,u=u+Math.imul(Q,ye)|0,x=x+Math.imul(Q,ge)|0,w=w+Math.imul(J,_e)|0,u=u+Math.imul(J,we)|0,u=u+Math.imul(Y,_e)|0,x=x+Math.imul(Y,we)|0,w=w+Math.imul(X,Te)|0,u=u+Math.imul(X,Ne)|0,u=u+Math.imul(G,Te)|0,x=x+Math.imul(G,Ne)|0;var Tr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(re,be),u=Math.imul(re,me),u=u+Math.imul(ie,be)|0,x=Math.imul(ie,me),w=w+Math.imul(ee,ye)|0,u=u+Math.imul(ee,ge)|0,u=u+Math.imul(te,ye)|0,x=x+Math.imul(te,ge)|0,w=w+Math.imul($,_e)|0,u=u+Math.imul($,we)|0,u=u+Math.imul(Q,_e)|0,x=x+Math.imul(Q,we)|0,w=w+Math.imul(J,Te)|0,u=u+Math.imul(J,Ne)|0,u=u+Math.imul(Y,Te)|0,x=x+Math.imul(Y,Ne)|0;var Nr=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,w=Math.imul(re,ye),u=Math.imul(re,ge),u=u+Math.imul(ie,ye)|0,x=Math.imul(ie,ge),w=w+Math.imul(ee,_e)|0,u=u+Math.imul(ee,we)|0,u=u+Math.imul(te,_e)|0,x=x+Math.imul(te,we)|0,w=w+Math.imul($,Te)|0,u=u+Math.imul($,Ne)|0,u=u+Math.imul(Q,Te)|0,x=x+Math.imul(Q,Ne)|0;var nn=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(nn>>>26)|0,nn&=67108863,w=Math.imul(re,_e),u=Math.imul(re,we),u=u+Math.imul(ie,_e)|0,x=Math.imul(ie,we),w=w+Math.imul(ee,Te)|0,u=u+Math.imul(ee,Ne)|0,u=u+Math.imul(te,Te)|0,x=x+Math.imul(te,Ne)|0;var sn=(g+w|0)+((u&8191)<<13)|0;g=(x+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(re,Te),u=Math.imul(re,Ne),u=u+Math.imul(ie,Te)|0,x=Math.imul(ie,Ne);var on=(g+w|0)+((u&8191)<<13)|0;return g=(x+(u>>>13)|0)+(on>>>26)|0,on&=67108863,o[0]=wr,o[1]=xr,o[2]=Mr,o[3]=Sr,o[4]=Ar,o[5]=Er,o[6]=qr,o[7]=Br,o[8]=kr,o[9]=Ir,o[10]=Rr,o[11]=Cr,o[12]=Dr,o[13]=Pr,o[14]=Tr,o[15]=Nr,o[16]=nn,o[17]=sn,o[18]=on,g!==0&&(o[19]=g,v.length++),v},\"comb10MulTo\");Math.imul||(N=L);function z(l,n,h){h.negative=n.negative^l.negative,h.length=l.length+n.length;for(var v=0,m=0,b=0;b<h.length-1;b++){var o=m;m=0;for(var g=v&67108863,w=Math.min(b,n.length-1),u=Math.max(0,b-l.length+1);u<=w;u++){var x=b-u,C=l.words[x]|0,P=n.words[u]|0,D=C*P,U=D&67108863;o=o+(D/67108864|0)|0,U=U+g|0,g=U&67108863,o=o+(U>>>26)|0,m+=o>>>26,o&=67108863}h.words[b]=g,v=o,o=m}return v!==0?h.words[b]=v:h.length--,h._strip()}f(z,\"bigMulTo\");function Ee(l,n,h){return z(l,n,h)}f(Ee,\"jumboMulTo\"),i.prototype.mulTo=f(function(n,h){var v,m=this.length+n.length;return this.length===10&&n.length===10?v=N(this,n,h):m<63?v=L(this,n,h):m<1024?v=z(this,n,h):v=Ee(this,n,h),v},\"mulTo\");function qe(l,n){this.x=l,this.y=n}f(qe,\"FFTM\"),qe.prototype.makeRBT=f(function(n){for(var h=new Array(n),v=i.prototype._countBits(n)-1,m=0;m<n;m++)h[m]=this.revBin(m,v,n);return h},\"makeRBT\"),qe.prototype.revBin=f(function(n,h,v){if(n===0||n===v-1)return n;for(var m=0,b=0;b<h;b++)m|=(n&1)<<h-b-1,n>>=1;return m},\"revBin\"),qe.prototype.permute=f(function(n,h,v,m,b,o){for(var g=0;g<o;g++)m[g]=h[n[g]],b[g]=v[n[g]]},\"permute\"),qe.prototype.transform=f(function(n,h,v,m,b,o){this.permute(o,n,h,v,m,b);for(var g=1;g<b;g<<=1)for(var w=g<<1,u=Math.cos(2*Math.PI/w),x=Math.sin(2*Math.PI/w),C=0;C<b;C+=w)for(var P=u,D=x,U=0;U<g;U++){var O=v[C+U],F=m[C+U],xt=v[C+U+g],H=m[C+U+g],K=P*xt-D*H;H=P*H+D*xt,xt=K,v[C+U]=O+xt,m[C+U]=F+H,v[C+U+g]=O-xt,m[C+U+g]=F-H,U!==w&&(K=u*P-x*D,D=u*D+x*P,P=K)}},\"transform\"),qe.prototype.guessLen13b=f(function(n,h){var v=Math.max(h,n)|1,m=v&1,b=0;for(v=v/2|0;v;v=v>>>1)b++;return 1<<b+1+m},\"guessLen13b\"),qe.prototype.conjugate=f(function(n,h,v){if(!(v<=1))for(var m=0;m<v/2;m++){var b=n[m];n[m]=n[v-m-1],n[v-m-1]=b,b=h[m],h[m]=-h[v-m-1],h[v-m-1]=-b}},\"conjugate\"),qe.prototype.normalize13b=f(function(n,h){for(var v=0,m=0;m<h/2;m++){var b=Math.round(n[2*m+1]/h)*8192+Math.round(n[2*m]/h)+v;n[m]=b&67108863,b<67108864?v=0:v=b/67108864|0}return n},\"normalize13b\"),qe.prototype.convert13b=f(function(n,h,v,m){for(var b=0,o=0;o<h;o++)b=b+(n[o]|0),v[2*o]=b&8191,b=b>>>13,v[2*o+1]=b&8191,b=b>>>13;for(o=2*h;o<m;++o)v[o]=0;r(b===0),r((b&-8192)===0)},\"convert13b\"),qe.prototype.stub=f(function(n){for(var h=new Array(n),v=0;v<n;v++)h[v]=0;return h},\"stub\"),qe.prototype.mulp=f(function(n,h,v){var m=2*this.guessLen13b(n.length,h.length),b=this.makeRBT(m),o=this.stub(m),g=new Array(m),w=new Array(m),u=new Array(m),x=new Array(m),C=new Array(m),P=new Array(m),D=v.words;D.length=m,this.convert13b(n.words,n.length,g,m),this.convert13b(h.words,h.length,x,m),this.transform(g,o,w,u,m,b),this.transform(x,o,C,P,m,b);for(var U=0;U<m;U++){var O=w[U]*C[U]-u[U]*P[U];u[U]=w[U]*P[U]+u[U]*C[U],w[U]=O}return this.conjugate(w,u,m),this.transform(w,u,D,o,m,b),this.conjugate(D,o,m),this.normalize13b(D,m),v.negative=n.negative^h.negative,v.length=n.length+h.length,v._strip()},\"mulp\"),i.prototype.mul=f(function(n){var h=new i(null);return h.words=new Array(this.length+n.length),this.mulTo(n,h)},\"mul\"),i.prototype.mulf=f(function(n){var h=new i(null);return h.words=new Array(this.length+n.length),Ee(this,n,h)},\"mulf\"),i.prototype.imul=f(function(n){return this.clone().mulTo(n,this)},\"imul\"),i.prototype.imuln=f(function(n){var h=n<0;h&&(n=-n),r(typeof n==\"number\"),r(n<67108864);for(var v=0,m=0;m<this.length;m++){var b=(this.words[m]|0)*n,o=(b&67108863)+(v&67108863);v>>=26,v+=b/67108864|0,v+=o>>>26,this.words[m]=o&67108863}return v!==0&&(this.words[m]=v,this.length++),n===0&&(this.length=1,this._normSign()),h?this.ineg():this},\"imuln\"),i.prototype.muln=f(function(n){return this.clone().imuln(n)},\"muln\"),i.prototype.sqr=f(function(){return this.mul(this)},\"sqr\"),i.prototype.isqr=f(function(){return this.imul(this.clone())},\"isqr\"),i.prototype.pow=f(function(n){var h=T(n);if(h.length===0)return new i(1);for(var v=this,m=0;m<h.length&&h[m]===0;m++,v=v.sqr());if(++m<h.length)for(var b=v.sqr();m<h.length;m++,b=b.sqr())h[m]!==0&&(v=v.mul(b));return v},\"pow\"),i.prototype.iushln=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26,m=67108863>>>26-h<<26-h,b;if(h!==0){var o=0;for(b=0;b<this.length;b++){var g=this.words[b]&m,w=(this.words[b]|0)-g<<h;this.words[b]=w|o,o=g>>>26-h}o&&(this.words[b]=o,this.length++)}if(v!==0){for(b=this.length-1;b>=0;b--)this.words[b+v]=this.words[b];for(b=0;b<v;b++)this.words[b]=0;this.length+=v}return this._strip()},\"iushln\"),i.prototype.ishln=f(function(n){return r(this.negative===0),this.iushln(n)},\"ishln\"),i.prototype.iushrn=f(function(n,h,v){r(typeof n==\"number\"&&n>=0);var m;h?m=(h-h%26)/26:m=0;var b=n%26,o=Math.min((n-b)/26,this.length),g=67108863^67108863>>>b<<b,w=v;if(m-=o,m=Math.max(0,m),w){for(var u=0;u<o;u++)w.words[u]=this.words[u];w.length=o}if(o!==0)if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var x=0;for(u=this.length-1;u>=0&&(x!==0||u>=m);u--){var C=this.words[u]|0;this.words[u]=x<<26-b|C>>>b,x=C&g}return w&&x!==0&&(w.words[w.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},\"iushrn\"),i.prototype.ishrn=f(function(n,h,v){return r(this.negative===0),this.iushrn(n,h,v)},\"ishrn\"),i.prototype.shln=f(function(n){return this.clone().ishln(n)},\"shln\"),i.prototype.ushln=f(function(n){return this.clone().iushln(n)},\"ushln\"),i.prototype.shrn=f(function(n){return this.clone().ishrn(n)},\"shrn\"),i.prototype.ushrn=f(function(n){return this.clone().iushrn(n)},\"ushrn\"),i.prototype.testn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26,m=1<<h;if(this.length<=v)return!1;var b=this.words[v];return!!(b&m)},\"testn\"),i.prototype.imaskn=f(function(n){r(typeof n==\"number\"&&n>=0);var h=n%26,v=(n-h)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=v)return this;if(h!==0&&v++,this.length=Math.min(v,this.length),h!==0){var m=67108863^67108863>>>h<<h;this.words[this.length-1]&=m}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},\"imaskn\"),i.prototype.maskn=f(function(n){return this.clone().imaskn(n)},\"maskn\"),i.prototype.iaddn=f(function(n){return r(typeof n==\"number\"),r(n<67108864),n<0?this.isubn(-n):this.negative!==0?this.length===1&&(this.words[0]|0)<=n?(this.words[0]=n-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},\"iaddn\"),i.prototype._iaddn=f(function(n){this.words[0]+=n;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},\"_iaddn\"),i.prototype.isubn=f(function(n){if(r(typeof n==\"number\"),r(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},\"isubn\"),i.prototype.addn=f(function(n){return this.clone().iaddn(n)},\"addn\"),i.prototype.subn=f(function(n){return this.clone().isubn(n)},\"subn\"),i.prototype.iabs=f(function(){return this.negative=0,this},\"iabs\"),i.prototype.abs=f(function(){return this.clone().iabs()},\"abs\"),i.prototype._ishlnsubmul=f(function(n,h,v){var m=n.length+v,b;this._expand(m);var o,g=0;for(b=0;b<n.length;b++){o=(this.words[b+v]|0)+g;var w=(n.words[b]|0)*h;o-=w&67108863,g=(o>>26)-(w/67108864|0),this.words[b+v]=o&67108863}for(;b<this.length-v;b++)o=(this.words[b+v]|0)+g,g=o>>26,this.words[b+v]=o&67108863;if(g===0)return this._strip();for(r(g===-1),g=0,b=0;b<this.length;b++)o=-(this.words[b]|0)+g,g=o>>26,this.words[b]=o&67108863;return this.negative=1,this._strip()},\"_ishlnsubmul\"),i.prototype._wordDiv=f(function(n,h){var v=this.length-n.length,m=this.clone(),b=n,o=b.words[b.length-1]|0,g=this._countBits(o);v=26-g,v!==0&&(b=b.ushln(v),m.iushln(v),o=b.words[b.length-1]|0);var w=m.length-b.length,u;if(h!==\"mod\"){u=new i(null),u.length=w+1,u.words=new Array(u.length);for(var x=0;x<u.length;x++)u.words[x]=0}var C=m.clone()._ishlnsubmul(b,1,w);C.negative===0&&(m=C,u&&(u.words[w]=1));for(var P=w-1;P>=0;P--){var D=(m.words[b.length+P]|0)*67108864+(m.words[b.length+P-1]|0);for(D=Math.min(D/o|0,67108863),m._ishlnsubmul(b,D,P);m.negative!==0;)D--,m.negative=0,m._ishlnsubmul(b,1,P),m.isZero()||(m.negative^=1);u&&(u.words[P]=D)}return u&&u._strip(),m._strip(),h!==\"div\"&&v!==0&&m.iushrn(v),{div:u||null,mod:m}},\"_wordDiv\"),i.prototype.divmod=f(function(n,h,v){if(r(!n.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var m,b,o;return this.negative!==0&&n.negative===0?(o=this.neg().divmod(n,h),h!==\"mod\"&&(m=o.div.neg()),h!==\"div\"&&(b=o.mod.neg(),v&&b.negative!==0&&b.iadd(n)),{div:m,mod:b}):this.negative===0&&n.negative!==0?(o=this.divmod(n.neg(),h),h!==\"mod\"&&(m=o.div.neg()),{div:m,mod:o.mod}):(this.negative&n.negative)!==0?(o=this.neg().divmod(n.neg(),h),h!==\"div\"&&(b=o.mod.neg(),v&&b.negative!==0&&b.isub(n)),{div:o.div,mod:b}):n.length>this.length||this.cmp(n)<0?{div:new i(0),mod:this}:n.length===1?h===\"div\"?{div:this.divn(n.words[0]),mod:null}:h===\"mod\"?{div:null,mod:new i(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new i(this.modrn(n.words[0]))}:this._wordDiv(n,h)},\"divmod\"),i.prototype.div=f(function(n){return this.divmod(n,\"div\",!1).div},\"div\"),i.prototype.mod=f(function(n){return this.divmod(n,\"mod\",!1).mod},\"mod\"),i.prototype.umod=f(function(n){return this.divmod(n,\"mod\",!0).mod},\"umod\"),i.prototype.divRound=f(function(n){var h=this.divmod(n);if(h.mod.isZero())return h.div;var v=h.mod.abs(),m=n.abs().iushrn(1),b=n.words[0]&1,o=v.cmp(m);if(o<0||b===1&&o===0)return h.div;var g=new i(1);return g.negative=this.negative^n.negative,h.div.iadd(g)},\"divRound\"),i.prototype.modrn=f(function(n){var h=n<0;h&&(n=-n),r(n<=67108863);for(var v=(1<<26)%n,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%n;return h?-m:m},\"modrn\"),i.prototype.modn=f(function(n){return this.modrn(n)},\"modn\"),i.prototype.idivn=f(function(n){var h=n<0;h&&(n=-n),r(n<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/n|0,v=b%n}return this._strip(),h?this.ineg():this},\"idivn\"),i.prototype.divn=f(function(n){return this.clone().idivn(n)},\"divn\"),i.prototype.egcd=f(function(n){r(n.negative===0),r(!n.isZero());var h=this,v=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var m=new i(1),b=new i(0),o=new i(0),g=new i(1),w=0;h.isEven()&&v.isEven();)h.iushrn(1),v.iushrn(1),++w;for(var u=v.clone(),x=h.clone();!h.isZero();){for(var C=0,P=1;(h.words[0]&P)===0&&C<26;++C,P<<=1);if(C>0)for(h.iushrn(C);C-- >0;)(m.isOdd()||b.isOdd())&&(m.iadd(u),b.isub(x)),m.iushrn(1),b.iushrn(1);for(var D=0,U=1;(v.words[0]&U)===0&&D<26;++D,U<<=1);if(D>0)for(v.iushrn(D);D-- >0;)(o.isOdd()||g.isOdd())&&(o.iadd(u),g.isub(x)),o.iushrn(1),g.iushrn(1);h.cmp(v)>=0?(h.isub(v),m.isub(o),b.isub(g)):(v.isub(h),o.isub(m),g.isub(b))}return{a:o,b:g,gcd:v.iushln(w)}},\"egcd\"),i.prototype._invmp=f(function(n){r(n.negative===0),r(!n.isZero());var h=this,v=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var m=new i(1),b=new i(0),o=v.clone();h.cmpn(1)>0&&v.cmpn(1)>0;){for(var g=0,w=1;(h.words[0]&w)===0&&g<26;++g,w<<=1);if(g>0)for(h.iushrn(g);g-- >0;)m.isOdd()&&m.iadd(o),m.iushrn(1);for(var u=0,x=1;(v.words[0]&x)===0&&u<26;++u,x<<=1);if(u>0)for(v.iushrn(u);u-- >0;)b.isOdd()&&b.iadd(o),b.iushrn(1);h.cmp(v)>=0?(h.isub(v),m.isub(b)):(v.isub(h),b.isub(m))}var C;return h.cmpn(1)===0?C=m:C=b,C.cmpn(0)<0&&C.iadd(n),C},\"_invmp\"),i.prototype.gcd=f(function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var h=this.clone(),v=n.clone();h.negative=0,v.negative=0;for(var m=0;h.isEven()&&v.isEven();m++)h.iushrn(1),v.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;v.isEven();)v.iushrn(1);var b=h.cmp(v);if(b<0){var o=h;h=v,v=o}else if(b===0||v.cmpn(1)===0)break;h.isub(v)}while(!0);return v.iushln(m)},\"gcd\"),i.prototype.invm=f(function(n){return this.egcd(n).a.umod(n)},\"invm\"),i.prototype.isEven=f(function(){return(this.words[0]&1)===0},\"isEven\"),i.prototype.isOdd=f(function(){return(this.words[0]&1)===1},\"isOdd\"),i.prototype.andln=f(function(n){return this.words[0]&n},\"andln\"),i.prototype.bincn=f(function(n){r(typeof n==\"number\");var h=n%26,v=(n-h)/26,m=1<<h;if(this.length<=v)return this._expand(v+1),this.words[v]|=m,this;for(var b=m,o=v;b!==0&&o<this.length;o++){var g=this.words[o]|0;g+=b,b=g>>>26,g&=67108863,this.words[o]=g}return b!==0&&(this.words[o]=b,this.length++),this},\"bincn\"),i.prototype.isZero=f(function(){return this.length===1&&this.words[0]===0},\"isZero\"),i.prototype.cmpn=f(function(n){var h=n<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var v;if(this.length>1)v=1;else{h&&(n=-n),r(n<=67108863,\"Number is too big\");var m=this.words[0]|0;v=m===n?0:m<n?-1:1}return this.negative!==0?-v|0:v},\"cmpn\"),i.prototype.cmp=f(function(n){if(this.negative!==0&&n.negative===0)return-1;if(this.negative===0&&n.negative!==0)return 1;var h=this.ucmp(n);return this.negative!==0?-h|0:h},\"cmp\"),i.prototype.ucmp=f(function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var h=0,v=this.length-1;v>=0;v--){var m=this.words[v]|0,b=n.words[v]|0;if(m!==b){m<b?h=-1:m>b&&(h=1);break}}return h},\"ucmp\"),i.prototype.gtn=f(function(n){return this.cmpn(n)===1},\"gtn\"),i.prototype.gt=f(function(n){return this.cmp(n)===1},\"gt\"),i.prototype.gten=f(function(n){return this.cmpn(n)>=0},\"gten\"),i.prototype.gte=f(function(n){return this.cmp(n)>=0},\"gte\"),i.prototype.ltn=f(function(n){return this.cmpn(n)===-1},\"ltn\"),i.prototype.lt=f(function(n){return this.cmp(n)===-1},\"lt\"),i.prototype.lten=f(function(n){return this.cmpn(n)<=0},\"lten\"),i.prototype.lte=f(function(n){return this.cmp(n)<=0},\"lte\"),i.prototype.eqn=f(function(n){return this.cmpn(n)===0},\"eqn\"),i.prototype.eq=f(function(n){return this.cmp(n)===0},\"eq\"),i.red=f(function(n){return new d(n)},\"red\"),i.prototype.toRed=f(function(n){return r(!this.red,\"Already a number in reduction context\"),r(this.negative===0,\"red works only with positives\"),n.convertTo(this)._forceRed(n)},\"toRed\"),i.prototype.fromRed=f(function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},\"fromRed\"),i.prototype._forceRed=f(function(n){return this.red=n,this},\"_forceRed\"),i.prototype.forceRed=f(function(n){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(n)},\"forceRed\"),i.prototype.redAdd=f(function(n){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,n)},\"redAdd\"),i.prototype.redIAdd=f(function(n){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,n)},\"redIAdd\"),i.prototype.redSub=f(function(n){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,n)},\"redSub\"),i.prototype.redISub=f(function(n){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,n)},\"redISub\"),i.prototype.redShl=f(function(n){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,n)},\"redShl\"),i.prototype.redMul=f(function(n){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,n),this.red.mul(this,n)},\"redMul\"),i.prototype.redIMul=f(function(n){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,n),this.red.imul(this,n)},\"redIMul\"),i.prototype.redSqr=f(function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},\"redSqr\"),i.prototype.redISqr=f(function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},\"redISqr\"),i.prototype.redSqrt=f(function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},\"redSqrt\"),i.prototype.redInvm=f(function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},\"redInvm\"),i.prototype.redNeg=f(function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},\"redNeg\"),i.prototype.redPow=f(function(n){return r(this.red&&!n.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,n)},\"redPow\");var De={k256:null,p224:null,p192:null,p25519:null};function ke(l,n){this.name=l,this.p=new i(n,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f(ke,\"MPrime\"),ke.prototype._tmp=f(function(){var n=new i(null);return n.words=new Array(Math.ceil(this.n/13)),n},\"_tmp\"),ke.prototype.ireduce=f(function(n){var h=n,v;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),v=h.bitLength();while(v>this.n);var m=v<this.n?-1:h.ucmp(this.p);return m===0?(h.words[0]=0,h.length=1):m>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},\"ireduce\"),ke.prototype.split=f(function(n,h){n.iushrn(this.n,0,h)},\"split\"),ke.prototype.imulK=f(function(n){return n.imul(this.k)},\"imulK\");function Ue(){ke.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}f(Ue,\"K256\"),a(Ue,ke),Ue.prototype.split=f(function(n,h){for(var v=4194303,m=Math.min(n.length,9),b=0;b<m;b++)h.words[b]=n.words[b];if(h.length=m,n.length<=9){n.words[0]=0,n.length=1;return}var o=n.words[9];for(h.words[h.length++]=o&v,b=10;b<n.length;b++){var g=n.words[b]|0;n.words[b-10]=(g&v)<<4|o>>>22,o=g}o>>>=22,n.words[b-10]=o,o===0&&n.length>10?n.length-=10:n.length-=9},\"split\"),Ue.prototype.imulK=f(function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var h=0,v=0;v<n.length;v++){var m=n.words[v]|0;h+=m*977,n.words[v]=h&67108863,h=m*64+(h/67108864|0)}return n.words[n.length-1]===0&&(n.length--,n.words[n.length-1]===0&&n.length--),n},\"imulK\");function Ae(){ke.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}f(Ae,\"P224\"),a(Ae,ke);function Le(){ke.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}f(Le,\"P192\"),a(Le,ke);function E(){ke.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}f(E,\"P25519\"),a(E,ke),E.prototype.imulK=f(function(n){for(var h=0,v=0;v<n.length;v++){var m=(n.words[v]|0)*19+h,b=m&67108863;m>>>=26,n.words[v]=b,h=m}return h!==0&&(n.words[n.length++]=h),n},\"imulK\"),i._prime=f(function(n){if(De[n])return De[n];var h;if(n===\"k256\")h=new Ue;else if(n===\"p224\")h=new Ae;else if(n===\"p192\")h=new Le;else if(n===\"p25519\")h=new E;else throw new Error(\"Unknown prime \"+n);return De[n]=h,h},\"prime\");function d(l){if(typeof l==\"string\"){var n=i._prime(l);this.m=n.p,this.prime=n}else r(l.gtn(1),\"modulus must be greater than 1\"),this.m=l,this.prime=null}f(d,\"Red\"),d.prototype._verify1=f(function(n){r(n.negative===0,\"red works only with positives\"),r(n.red,\"red works only with red numbers\")},\"_verify1\"),d.prototype._verify2=f(function(n,h){r((n.negative|h.negative)===0,\"red works only with positives\"),r(n.red&&n.red===h.red,\"red works only with red numbers\")},\"_verify2\"),d.prototype.imod=f(function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(S(n,n.umod(this.m)._forceRed(this)),n)},\"imod\"),d.prototype.neg=f(function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},\"neg\"),d.prototype.add=f(function(n,h){this._verify2(n,h);var v=n.add(h);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},\"add\"),d.prototype.iadd=f(function(n,h){this._verify2(n,h);var v=n.iadd(h);return v.cmp(this.m)>=0&&v.isub(this.m),v},\"iadd\"),d.prototype.sub=f(function(n,h){this._verify2(n,h);var v=n.sub(h);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},\"sub\"),d.prototype.isub=f(function(n,h){this._verify2(n,h);var v=n.isub(h);return v.cmpn(0)<0&&v.iadd(this.m),v},\"isub\"),d.prototype.shl=f(function(n,h){return this._verify1(n),this.imod(n.ushln(h))},\"shl\"),d.prototype.imul=f(function(n,h){return this._verify2(n,h),this.imod(n.imul(h))},\"imul\"),d.prototype.mul=f(function(n,h){return this._verify2(n,h),this.imod(n.mul(h))},\"mul\"),d.prototype.isqr=f(function(n){return this.imul(n,n.clone())},\"isqr\"),d.prototype.sqr=f(function(n){return this.mul(n,n)},\"sqr\"),d.prototype.sqrt=f(function(n){if(n.isZero())return n.clone();var h=this.m.andln(3);if(r(h%2===1),h===3){var v=this.m.add(new i(1)).iushrn(2);return this.pow(n,v)}for(var m=this.m.subn(1),b=0;!m.isZero()&&m.andln(1)===0;)b++,m.iushrn(1);r(!m.isZero());var o=new i(1).toRed(this),g=o.redNeg(),w=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);this.pow(u,w).cmp(g)!==0;)u.redIAdd(g);for(var x=this.pow(u,m),C=this.pow(n,m.addn(1).iushrn(1)),P=this.pow(n,m),D=b;P.cmp(o)!==0;){for(var U=P,O=0;U.cmp(o)!==0;O++)U=U.redSqr();r(O<D);var F=this.pow(x,new i(1).iushln(D-O-1));C=C.redMul(F),x=F.redSqr(),P=P.redMul(x),D=O}return C},\"sqrt\"),d.prototype.invm=f(function(n){var h=n._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},\"invm\"),d.prototype.pow=f(function(n,h){if(h.isZero())return new i(1).toRed(this);if(h.cmpn(1)===0)return n.clone();var v=4,m=new Array(1<<v);m[0]=new i(1).toRed(this),m[1]=n;for(var b=2;b<m.length;b++)m[b]=this.mul(m[b-1],n);var o=m[0],g=0,w=0,u=h.bitLength()%26;for(u===0&&(u=26),b=h.length-1;b>=0;b--){for(var x=h.words[b],C=u-1;C>=0;C--){var P=x>>C&1;if(o!==m[0]&&(o=this.sqr(o)),P===0&&g===0){w=0;continue}g<<=1,g|=P,w++,!(w!==v&&(b!==0||C!==0))&&(o=this.mul(o,m[g]),w=0,g=0)}u=26}return o},\"pow\"),d.prototype.convertTo=f(function(n){var h=n.umod(this.m);return h===n?h.clone():h},\"convertTo\"),d.prototype.convertFrom=f(function(n){var h=n.clone();return h.red=null,h},\"convertFrom\"),i.mont=f(function(n){return new y(n)},\"mont\");function y(l){d.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(y,\"Mont\"),a(y,d),y.prototype.convertTo=f(function(n){return this.imod(n.ushln(this.shift))},\"convertTo\"),y.prototype.convertFrom=f(function(n){var h=this.imod(n.mul(this.rinv));return h.red=null,h},\"convertFrom\"),y.prototype.imul=f(function(n,h){if(n.isZero()||h.isZero())return n.words[0]=0,n.length=1,n;var v=n.imul(h),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),o=b;return b.cmp(this.m)>=0?o=b.isub(this.m):b.cmpn(0)<0&&(o=b.iadd(this.m)),o._forceRed(this)},\"imul\"),y.prototype.mul=f(function(n,h){if(n.isZero()||h.isZero())return new i(0)._forceRed(this);var v=n.mul(h),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),o=b;return b.cmp(this.m)>=0?o=b.isub(this.m):b.cmpn(0)<0&&(o=b.iadd(this.m)),o._forceRed(this)},\"mul\"),y.prototype.invm=f(function(n){var h=this.imod(n._invmp(this.m).mul(this.r2));return h._forceRed(this)},\"invm\")})(typeof A0>\"u\"||A0,Vd)});var If=k((lm,Xd)=>{\"use strict\";M();var wi=kf(),Rb=Or(),Cb=xe().Buffer;function Wd(t){var e=t.modulus.byteLength(),r;do r=new wi(Rb(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}f(Wd,\"getr\");function Db(t){var e=Wd(t),r=e.toRed(wi.mont(t.modulus)).redPow(new wi(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}f(Db,\"blind\");function Zd(t,e){var r=Db(e),a=e.modulus.byteLength(),i=new wi(t).mul(r.blinder).umod(e.modulus),s=i.toRed(wi.mont(e.prime1)),c=i.toRed(wi.mont(e.prime2)),p=e.coefficient,_=e.prime1,S=e.prime2,A=s.redPow(e.exponent1).fromRed(),q=c.redPow(e.exponent2).fromRed(),B=A.isub(q).imul(p).umod(_).imul(S);return q.iadd(B).imul(r.unblinder).umod(e.modulus).toArrayLike(Cb,\"be\",a)}f(Zd,\"crt\");Zd.getr=Wd;Xd.exports=Zd});var Gd=k((bm,Pb)=>{Pb.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\"}}});var E0=k($d=>{\"use strict\";M();var Rf=$d;function Tb(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t!=\"string\"){for(var a=0;a<t.length;a++)r[a]=t[a]|0;return r}if(e===\"hex\"){t=t.replace(/[^a-z0-9]+/ig,\"\"),t.length%2!==0&&(t=\"0\"+t);for(var a=0;a<t.length;a+=2)r.push(parseInt(t[a]+t[a+1],16))}else for(var a=0;a<t.length;a++){var i=t.charCodeAt(a),s=i>>8,c=i&255;s?r.push(s,c):r.push(c)}return r}f(Tb,\"toArray\");Rf.toArray=Tb;function Jd(t){return t.length===1?\"0\"+t:t}f(Jd,\"zero2\");Rf.zero2=Jd;function Yd(t){for(var e=\"\",r=0;r<t.length;r++)e+=Jd(t[r].toString(16));return e}f(Yd,\"toHex\");Rf.toHex=Yd;Rf.encode=f(function(e,r){return r===\"hex\"?Yd(e):e},\"encode\")});var dt=k(Qd=>{\"use strict\";M();var qt=Qd,Nb=je(),Ob=ht(),Cf=E0();qt.assert=Ob;qt.toArray=Cf.toArray;qt.zero2=Cf.zero2;qt.toHex=Cf.toHex;qt.encode=Cf.encode;function Lb(t,e,r){var a=new Array(Math.max(t.bitLength(),r)+1),i;for(i=0;i<a.length;i+=1)a[i]=0;var s=1<<e+1,c=t.clone();for(i=0;i<a.length;i++){var p,_=c.andln(s-1);c.isOdd()?(_>(s>>1)-1?p=(s>>1)-_:p=_,c.isubn(p)):p=0,a[i]=p,c.iushrn(1)}return a}f(Lb,\"getNAF\");qt.getNAF=Lb;function Ub(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var a=0,i=0,s;t.cmpn(-a)>0||e.cmpn(-i)>0;){var c=t.andln(3)+a&3,p=e.andln(3)+i&3;c===3&&(c=-1),p===3&&(p=-1);var _;(c&1)===0?_=0:(s=t.andln(7)+a&7,(s===3||s===5)&&p===2?_=-c:_=c),r[0].push(_);var S;(p&1)===0?S=0:(s=e.andln(7)+i&7,(s===3||s===5)&&c===2?S=-p:S=p),r[1].push(S),2*a===_+1&&(a=1-a),2*i===S+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}f(Ub,\"getJSF\");qt.getJSF=Ub;function zb(t,e,r){var a=\"_\"+e;t.prototype[e]=f(function(){return this[a]!==void 0?this[a]:this[a]=r.call(this)},\"cachedProperty\")}f(zb,\"cachedProperty\");qt.cachedProperty=zb;function Fb(t){return typeof t==\"string\"?qt.toArray(t,\"hex\"):t}f(Fb,\"parseBytes\");qt.parseBytes=Fb;function Hb(t){return new Nb(t,\"hex\",\"le\")}f(Hb,\"intFromLE\");qt.intFromLE=Hb});var ka=k((Mm,ec)=>{\"use strict\";M();var Yr=je(),Ba=dt(),Df=Ba.getNAF,Kb=Ba.getJSF,Pf=Ba.assert;function br(t,e){this.type=t,this.p=new Yr(e.p,16),this.red=e.prime?Yr.red(e.prime):Yr.mont(this.p),this.zero=new Yr(0).toRed(this.red),this.one=new Yr(1).toRed(this.red),this.two=new Yr(2).toRed(this.red),this.n=e.n&&new Yr(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}f(br,\"BaseCurve\");ec.exports=br;br.prototype.point=f(function(){throw new Error(\"Not implemented\")},\"point\");br.prototype.validate=f(function(){throw new Error(\"Not implemented\")},\"validate\");br.prototype._fixedNafMul=f(function(e,r){Pf(e.precomputed);var a=e._getDoubles(),i=Df(r,1,this._bitLength),s=(1<<a.step+1)-(a.step%2===0?2:1);s/=3;var c=[],p,_;for(p=0;p<i.length;p+=a.step){_=0;for(var S=p+a.step-1;S>=p;S--)_=(_<<1)+i[S];c.push(_)}for(var A=this.jpoint(null,null,null),q=this.jpoint(null,null,null),B=s;B>0;B--){for(p=0;p<c.length;p++)_=c[p],_===B?q=q.mixedAdd(a.points[p]):_===-B&&(q=q.mixedAdd(a.points[p].neg()));A=A.add(q)}return A.toP()},\"_fixedNafMul\");br.prototype._wnafMul=f(function(e,r){var a=4,i=e._getNAFPoints(a);a=i.wnd;for(var s=i.points,c=Df(r,a,this._bitLength),p=this.jpoint(null,null,null),_=c.length-1;_>=0;_--){for(var S=0;_>=0&&c[_]===0;_--)S++;if(_>=0&&S++,p=p.dblp(S),_<0)break;var A=c[_];Pf(A!==0),e.type===\"affine\"?A>0?p=p.mixedAdd(s[A-1>>1]):p=p.mixedAdd(s[-A-1>>1].neg()):A>0?p=p.add(s[A-1>>1]):p=p.add(s[-A-1>>1].neg())}return e.type===\"affine\"?p.toP():p},\"_wnafMul\");br.prototype._wnafMulAdd=f(function(e,r,a,i,s){var c=this._wnafT1,p=this._wnafT2,_=this._wnafT3,S=0,A,q,B;for(A=0;A<i;A++){B=r[A];var I=B._getNAFPoints(e);c[A]=I.wnd,p[A]=I.points}for(A=i-1;A>=1;A-=2){var R=A-1,T=A;if(c[R]!==1||c[T]!==1){_[R]=Df(a[R],c[R],this._bitLength),_[T]=Df(a[T],c[T],this._bitLength),S=Math.max(_[R].length,S),S=Math.max(_[T].length,S);continue}var L=[r[R],null,null,r[T]];r[R].y.cmp(r[T].y)===0?(L[1]=r[R].add(r[T]),L[2]=r[R].toJ().mixedAdd(r[T].neg())):r[R].y.cmp(r[T].y.redNeg())===0?(L[1]=r[R].toJ().mixedAdd(r[T]),L[2]=r[R].add(r[T].neg())):(L[1]=r[R].toJ().mixedAdd(r[T]),L[2]=r[R].toJ().mixedAdd(r[T].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],z=Kb(a[R],a[T]);for(S=Math.max(z[0].length,S),_[R]=new Array(S),_[T]=new Array(S),q=0;q<S;q++){var Ee=z[0][q]|0,qe=z[1][q]|0;_[R][q]=N[(Ee+1)*3+(qe+1)],_[T][q]=0,p[R]=L}}var De=this.jpoint(null,null,null),ke=this._wnafT4;for(A=S;A>=0;A--){for(var Ue=0;A>=0;){var Ae=!0;for(q=0;q<i;q++)ke[q]=_[q][A]|0,ke[q]!==0&&(Ae=!1);if(!Ae)break;Ue++,A--}if(A>=0&&Ue++,De=De.dblp(Ue),A<0)break;for(q=0;q<i;q++){var Le=ke[q];Le!==0&&(Le>0?B=p[q][Le-1>>1]:Le<0&&(B=p[q][-Le-1>>1].neg()),B.type===\"affine\"?De=De.mixedAdd(B):De=De.add(B))}}for(A=0;A<i;A++)p[A]=null;return s?De:De.toP()},\"_wnafMulAdd\");function mt(t,e){this.curve=t,this.type=e,this.precomputed=null}f(mt,\"BasePoint\");br.BasePoint=mt;mt.prototype.eq=f(function(){throw new Error(\"Not implemented\")},\"eq\");mt.prototype.validate=f(function(){return this.curve.validate(this)},\"validate\");br.prototype.decodePoint=f(function(e,r){e=Ba.toArray(e,r);var a=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*a){e[0]===6?Pf(e[e.length-1]%2===0):e[0]===7&&Pf(e[e.length-1]%2===1);var i=this.point(e.slice(1,1+a),e.slice(1+a,1+2*a));return i}else if((e[0]===2||e[0]===3)&&e.length-1===a)return this.pointFromX(e.slice(1,1+a),e[0]===3);throw new Error(\"Unknown point format\")},\"decodePoint\");mt.prototype.encodeCompressed=f(function(e){return this.encode(e,!0)},\"encodeCompressed\");mt.prototype._encode=f(function(e){var r=this.curve.p.byteLength(),a=this.getX().toArray(\"be\",r);return e?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray(\"be\",r))},\"_encode\");mt.prototype.encode=f(function(e,r){return Ba.encode(this._encode(r),e)},\"encode\");mt.prototype.precompute=f(function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this},\"precompute\");mt.prototype._hasDoubles=f(function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1},\"_hasDoubles\");mt.prototype._getDoubles=f(function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],i=this,s=0;s<r;s+=e){for(var c=0;c<e;c++)i=i.dbl();a.push(i)}return{step:e,points:a}},\"_getDoubles\");mt.prototype._getNAFPoints=f(function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],a=(1<<e)-1,i=a===1?null:this.dbl(),s=1;s<a;s++)r[s]=r[s-1].add(i);return{wnd:e,points:r}},\"_getNAFPoints\");mt.prototype._getBeta=f(function(){return null},\"_getBeta\");mt.prototype.dblp=f(function(e){for(var r=this,a=0;a<e;a++)r=r.dbl();return r},\"dblp\")});var rc=k((Em,tc)=>{\"use strict\";M();var jb=dt(),Oe=je(),q0=Se(),xi=ka(),Vb=jb.assert;function yt(t){xi.call(this,\"short\",t),this.a=new Oe(t.a,16).toRed(this.red),this.b=new Oe(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}f(yt,\"ShortCurve\");q0(yt,xi);tc.exports=yt;yt.prototype._getEndomorphism=f(function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,a;if(e.beta)r=new Oe(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(e.lambda)a=new Oe(e.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(r))===0?a=s[0]:(a=s[1],Vb(this.g.mul(a).x.cmp(this.g.x.redMul(r))===0))}var c;return e.basis?c=e.basis.map(function(p){return{a:new Oe(p.a,16),b:new Oe(p.b,16)}}):c=this._getEndoBasis(a),{beta:r,lambda:a,basis:c}}},\"_getEndomorphism\");yt.prototype._getEndoRoots=f(function(e){var r=e===this.p?this.red:Oe.mont(e),a=new Oe(2).toRed(r).redInvm(),i=a.redNeg(),s=new Oe(3).toRed(r).redNeg().redSqrt().redMul(a),c=i.redAdd(s).fromRed(),p=i.redSub(s).fromRed();return[c,p]},\"_getEndoRoots\");yt.prototype._getEndoBasis=f(function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=e,i=this.n.clone(),s=new Oe(1),c=new Oe(0),p=new Oe(0),_=new Oe(1),S,A,q,B,I,R,T,L=0,N,z;a.cmpn(0)!==0;){var Ee=i.div(a);N=i.sub(Ee.mul(a)),z=p.sub(Ee.mul(s));var qe=_.sub(Ee.mul(c));if(!q&&N.cmp(r)<0)S=T.neg(),A=s,q=N.neg(),B=z;else if(q&&++L===2)break;T=N,i=a,a=N,p=s,s=z,_=c,c=qe}I=N.neg(),R=z;var De=q.sqr().add(B.sqr()),ke=I.sqr().add(R.sqr());return ke.cmp(De)>=0&&(I=S,R=A),q.negative&&(q=q.neg(),B=B.neg()),I.negative&&(I=I.neg(),R=R.neg()),[{a:q,b:B},{a:I,b:R}]},\"_getEndoBasis\");yt.prototype._endoSplit=f(function(e){var r=this.endo.basis,a=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),c=a.b.neg().mul(e).divRound(this.n),p=s.mul(a.a),_=c.mul(i.a),S=s.mul(a.b),A=c.mul(i.b),q=e.sub(p).sub(_),B=S.add(A).neg();return{k1:q,k2:B}},\"_endoSplit\");yt.prototype.pointFromX=f(function(e,r){e=new Oe(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=a.redSqrt();if(i.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error(\"invalid point\");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)},\"pointFromX\");yt.prototype.validate=f(function(e){if(e.inf)return!0;var r=e.x,a=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return a.redSqr().redISub(s).cmpn(0)===0},\"validate\");yt.prototype._endoWnafMulAdd=f(function(e,r,a){for(var i=this._endoWnafT1,s=this._endoWnafT2,c=0;c<e.length;c++){var p=this._endoSplit(r[c]),_=e[c],S=_._getBeta();p.k1.negative&&(p.k1.ineg(),_=_.neg(!0)),p.k2.negative&&(p.k2.ineg(),S=S.neg(!0)),i[c*2]=_,i[c*2+1]=S,s[c*2]=p.k1,s[c*2+1]=p.k2}for(var A=this._wnafMulAdd(1,i,s,c*2,a),q=0;q<c*2;q++)i[q]=null,s[q]=null;return A},\"_endoWnafMulAdd\");function Ve(t,e,r,a){xi.BasePoint.call(this,t,\"affine\"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Oe(e,16),this.y=new Oe(r,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}f(Ve,\"Point\");q0(Ve,xi.BasePoint);yt.prototype.point=f(function(e,r,a){return new Ve(this,e,r,a)},\"point\");yt.prototype.pointFromJSON=f(function(e,r){return Ve.fromJSON(this,e,r)},\"pointFromJSON\");Ve.prototype._getBeta=f(function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var a=this.curve,i=f(function(s){return a.point(s.x.redMul(a.endo.beta),s.y)},\"endoMul\");e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return r}},\"_getBeta\");Ve.prototype.toJSON=f(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},\"toJSON\");Ve.fromJSON=f(function(e,r,a){typeof r==\"string\"&&(r=JSON.parse(r));var i=e.point(r[0],r[1],a);if(!r[2])return i;function s(p){return e.point(p[0],p[1],a)}f(s,\"obj2point\");var c=r[2];return i.precomputed={beta:null,doubles:c.doubles&&{step:c.doubles.step,points:[i].concat(c.doubles.points.map(s))},naf:c.naf&&{wnd:c.naf.wnd,points:[i].concat(c.naf.points.map(s))}},i},\"fromJSON\");Ve.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\">\"},\"inspect\");Ve.prototype.isInfinity=f(function(){return this.inf},\"isInfinity\");Ve.prototype.add=f(function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var a=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,i)},\"add\");Ve.prototype.dbl=f(function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,a=this.x.redSqr(),i=e.redInvm(),s=a.redAdd(a).redIAdd(a).redIAdd(r).redMul(i),c=s.redSqr().redISub(this.x.redAdd(this.x)),p=s.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,p)},\"dbl\");Ve.prototype.getX=f(function(){return this.x.fromRed()},\"getX\");Ve.prototype.getY=f(function(){return this.y.fromRed()},\"getY\");Ve.prototype.mul=f(function(e){return e=new Oe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},\"mul\");Ve.prototype.mulAdd=f(function(e,r,a){var i=[this,r],s=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)},\"mulAdd\");Ve.prototype.jmulAdd=f(function(e,r,a){var i=[this,r],s=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)},\"jmulAdd\");Ve.prototype.eq=f(function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},\"eq\");Ve.prototype.neg=f(function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,i=f(function(s){return s.neg()},\"negate\");r.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(i)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(i)}}}return r},\"neg\");Ve.prototype.toJ=f(function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},\"toJ\");function Ge(t,e,r,a){xi.BasePoint.call(this,t,\"jacobian\"),e===null&&r===null&&a===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Oe(0)):(this.x=new Oe(e,16),this.y=new Oe(r,16),this.z=new Oe(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f(Ge,\"JPoint\");q0(Ge,xi.BasePoint);yt.prototype.jpoint=f(function(e,r,a){return new Ge(this,e,r,a)},\"jpoint\");Ge.prototype.toP=f(function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),a=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(a,i)},\"toP\");Ge.prototype.neg=f(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},\"neg\");Ge.prototype.add=f(function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),a=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(a),c=this.y.redMul(r.redMul(e.z)),p=e.y.redMul(a.redMul(this.z)),_=i.redSub(s),S=c.redSub(p);if(_.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=_.redSqr(),q=A.redMul(_),B=i.redMul(A),I=S.redSqr().redIAdd(q).redISub(B).redISub(B),R=S.redMul(B.redISub(I)).redISub(c.redMul(q)),T=this.z.redMul(e.z).redMul(_);return this.curve.jpoint(I,R,T)},\"add\");Ge.prototype.mixedAdd=f(function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),a=this.x,i=e.x.redMul(r),s=this.y,c=e.y.redMul(r).redMul(this.z),p=a.redSub(i),_=s.redSub(c);if(p.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=p.redSqr(),A=S.redMul(p),q=a.redMul(S),B=_.redSqr().redIAdd(A).redISub(q).redISub(q),I=_.redMul(q.redISub(B)).redISub(s.redMul(A)),R=this.z.redMul(p);return this.curve.jpoint(B,I,R)},\"mixedAdd\");Ge.prototype.dblp=f(function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var a=this;for(r=0;r<e;r++)a=a.dbl();return a}var i=this.curve.a,s=this.curve.tinv,c=this.x,p=this.y,_=this.z,S=_.redSqr().redSqr(),A=p.redAdd(p);for(r=0;r<e;r++){var q=c.redSqr(),B=A.redSqr(),I=B.redSqr(),R=q.redAdd(q).redIAdd(q).redIAdd(i.redMul(S)),T=c.redMul(B),L=R.redSqr().redISub(T.redAdd(T)),N=T.redISub(L),z=R.redMul(N);z=z.redIAdd(z).redISub(I);var Ee=A.redMul(_);r+1<e&&(S=S.redMul(I)),c=L,_=Ee,A=z}return this.curve.jpoint(c,A.redMul(s),_)},\"dblp\");Ge.prototype.dbl=f(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},\"dbl\");Ge.prototype._zeroDbl=f(function(){var e,r,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),c=s.redSqr(),p=this.x.redAdd(s).redSqr().redISub(i).redISub(c);p=p.redIAdd(p);var _=i.redAdd(i).redIAdd(i),S=_.redSqr().redISub(p).redISub(p),A=c.redIAdd(c);A=A.redIAdd(A),A=A.redIAdd(A),e=S,r=_.redMul(p.redISub(S)).redISub(A),a=this.y.redAdd(this.y)}else{var q=this.x.redSqr(),B=this.y.redSqr(),I=B.redSqr(),R=this.x.redAdd(B).redSqr().redISub(q).redISub(I);R=R.redIAdd(R);var T=q.redAdd(q).redIAdd(q),L=T.redSqr(),N=I.redIAdd(I);N=N.redIAdd(N),N=N.redIAdd(N),e=L.redISub(R).redISub(R),r=T.redMul(R.redISub(e)).redISub(N),a=this.y.redMul(this.z),a=a.redIAdd(a)}return this.curve.jpoint(e,r,a)},\"_zeroDbl\");Ge.prototype._threeDbl=f(function(){var e,r,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),c=s.redSqr(),p=this.x.redAdd(s).redSqr().redISub(i).redISub(c);p=p.redIAdd(p);var _=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),S=_.redSqr().redISub(p).redISub(p);e=S;var A=c.redIAdd(c);A=A.redIAdd(A),A=A.redIAdd(A),r=_.redMul(p.redISub(S)).redISub(A),a=this.y.redAdd(this.y)}else{var q=this.z.redSqr(),B=this.y.redSqr(),I=this.x.redMul(B),R=this.x.redSub(q).redMul(this.x.redAdd(q));R=R.redAdd(R).redIAdd(R);var T=I.redIAdd(I);T=T.redIAdd(T);var L=T.redAdd(T);e=R.redSqr().redISub(L),a=this.y.redAdd(this.z).redSqr().redISub(B).redISub(q);var N=B.redSqr();N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N),r=R.redMul(T.redISub(e)).redISub(N)}return this.curve.jpoint(e,r,a)},\"_threeDbl\");Ge.prototype._dbl=f(function(){var e=this.curve.a,r=this.x,a=this.y,i=this.z,s=i.redSqr().redSqr(),c=r.redSqr(),p=a.redSqr(),_=c.redAdd(c).redIAdd(c).redIAdd(e.redMul(s)),S=r.redAdd(r);S=S.redIAdd(S);var A=S.redMul(p),q=_.redSqr().redISub(A.redAdd(A)),B=A.redISub(q),I=p.redSqr();I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I);var R=_.redMul(B).redISub(I),T=a.redAdd(a).redMul(i);return this.curve.jpoint(q,R,T)},\"_dbl\");Ge.prototype.trpl=f(function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),a=this.z.redSqr(),i=r.redSqr(),s=e.redAdd(e).redIAdd(e),c=s.redSqr(),p=this.x.redAdd(r).redSqr().redISub(e).redISub(i);p=p.redIAdd(p),p=p.redAdd(p).redIAdd(p),p=p.redISub(c);var _=p.redSqr(),S=i.redIAdd(i);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var A=s.redIAdd(p).redSqr().redISub(c).redISub(_).redISub(S),q=r.redMul(A);q=q.redIAdd(q),q=q.redIAdd(q);var B=this.x.redMul(_).redISub(q);B=B.redIAdd(B),B=B.redIAdd(B);var I=this.y.redMul(A.redMul(S.redISub(A)).redISub(p.redMul(_)));I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I);var R=this.z.redAdd(p).redSqr().redISub(a).redISub(_);return this.curve.jpoint(B,I,R)},\"trpl\");Ge.prototype.mul=f(function(e,r){return e=new Oe(e,r),this.curve._wnafMul(this,e)},\"mul\");Ge.prototype.eq=f(function(e){if(e.type===\"affine\")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),a=e.z.redSqr();if(this.x.redMul(a).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),s=a.redMul(e.z);return this.y.redMul(s).redISub(e.y.redMul(i)).cmpn(0)===0},\"eq\");Ge.prototype.eqXToP=f(function(e){var r=this.z.redSqr(),a=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(a)===0)return!0;for(var i=e.clone(),s=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(s),this.x.cmp(a)===0)return!0}},\"eqXToP\");Ge.prototype.inspect=f(function(){return this.isInfinity()?\"<EC JPoint Infinity>\":\"<EC JPoint x: \"+this.x.toString(16,2)+\" y: \"+this.y.toString(16,2)+\" z: \"+this.z.toString(16,2)+\">\"},\"inspect\");Ge.prototype.isInfinity=f(function(){return this.z.cmpn(0)===0},\"isInfinity\")});var fc=k((km,ac)=>{\"use strict\";M();var Mi=je(),ic=Se(),Tf=ka(),Wb=dt();function Si(t){Tf.call(this,\"mont\",t),this.a=new Mi(t.a,16).toRed(this.red),this.b=new Mi(t.b,16).toRed(this.red),this.i4=new Mi(4).toRed(this.red).redInvm(),this.two=new Mi(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}f(Si,\"MontCurve\");ic(Si,Tf);ac.exports=Si;Si.prototype.validate=f(function(e){var r=e.normalize().x,a=r.redSqr(),i=a.redMul(r).redAdd(a.redMul(this.a)).redAdd(r),s=i.redSqrt();return s.redSqr().cmp(i)===0},\"validate\");function We(t,e,r){Tf.BasePoint.call(this,t,\"projective\"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Mi(e,16),this.z=new Mi(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f(We,\"Point\");ic(We,Tf.BasePoint);Si.prototype.decodePoint=f(function(e,r){return this.point(Wb.toArray(e,r),1)},\"decodePoint\");Si.prototype.point=f(function(e,r){return new We(this,e,r)},\"point\");Si.prototype.pointFromJSON=f(function(e){return We.fromJSON(this,e)},\"pointFromJSON\");We.prototype.precompute=f(function(){},\"precompute\");We.prototype._encode=f(function(){return this.getX().toArray(\"be\",this.curve.p.byteLength())},\"_encode\");We.fromJSON=f(function(e,r){return new We(e,r[0],r[1]||e.one)},\"fromJSON\");We.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" z: \"+this.z.fromRed().toString(16,2)+\">\"},\"inspect\");We.prototype.isInfinity=f(function(){return this.z.cmpn(0)===0},\"isInfinity\");We.prototype.dbl=f(function(){var e=this.x.redAdd(this.z),r=e.redSqr(),a=this.x.redSub(this.z),i=a.redSqr(),s=r.redSub(i),c=r.redMul(i),p=s.redMul(i.redAdd(this.curve.a24.redMul(s)));return this.curve.point(c,p)},\"dbl\");We.prototype.add=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"add\");We.prototype.diffAdd=f(function(e,r){var a=this.x.redAdd(this.z),i=this.x.redSub(this.z),s=e.x.redAdd(e.z),c=e.x.redSub(e.z),p=c.redMul(a),_=s.redMul(i),S=r.z.redMul(p.redAdd(_).redSqr()),A=r.x.redMul(p.redISub(_).redSqr());return this.curve.point(S,A)},\"diffAdd\");We.prototype.mul=f(function(e){for(var r=e.clone(),a=this,i=this.curve.point(null,null),s=this,c=[];r.cmpn(0)!==0;r.iushrn(1))c.push(r.andln(1));for(var p=c.length-1;p>=0;p--)c[p]===0?(a=a.diffAdd(i,s),i=i.dbl()):(i=a.diffAdd(i,s),a=a.dbl());return i},\"mul\");We.prototype.mulAdd=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"mulAdd\");We.prototype.jumlAdd=f(function(){throw new Error(\"Not supported on Montgomery curve\")},\"jumlAdd\");We.prototype.eq=f(function(e){return this.getX().cmp(e.getX())===0},\"eq\");We.prototype.normalize=f(function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},\"normalize\");We.prototype.getX=f(function(){return this.normalize(),this.x.fromRed()},\"getX\")});var oc=k((Cm,sc)=>{\"use strict\";M();var Zb=dt(),ar=je(),nc=Se(),Nf=ka(),Xb=Zb.assert;function Ut(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Nf.call(this,\"edwards\",t),this.a=new ar(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ar(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ar(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Xb(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}f(Ut,\"EdwardsCurve\");nc(Ut,Nf);sc.exports=Ut;Ut.prototype._mulA=f(function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},\"_mulA\");Ut.prototype._mulC=f(function(e){return this.oneC?e:this.c.redMul(e)},\"_mulC\");Ut.prototype.jpoint=f(function(e,r,a,i){return this.point(e,r,a,i)},\"jpoint\");Ut.prototype.pointFromX=f(function(e,r){e=new ar(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),i=this.c2.redSub(this.a.redMul(a)),s=this.one.redSub(this.c2.redMul(this.d).redMul(a)),c=i.redMul(s.redInvm()),p=c.redSqrt();if(p.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error(\"invalid point\");var _=p.fromRed().isOdd();return(r&&!_||!r&&_)&&(p=p.redNeg()),this.point(e,p)},\"pointFromX\");Ut.prototype.pointFromY=f(function(e,r){e=new ar(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),i=a.redSub(this.c2),s=a.redMul(this.d).redMul(this.c2).redSub(this.a),c=i.redMul(s.redInvm());if(c.cmp(this.zero)===0){if(r)throw new Error(\"invalid point\");return this.point(this.zero,e)}var p=c.redSqrt();if(p.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error(\"invalid point\");return p.fromRed().isOdd()!==r&&(p=p.redNeg()),this.point(p,e)},\"pointFromY\");Ut.prototype.validate=f(function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),a=e.y.redSqr(),i=r.redMul(this.a).redAdd(a),s=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(a)));return i.cmp(s)===0},\"validate\");function Ce(t,e,r,a,i){Nf.BasePoint.call(this,t,\"projective\"),e===null&&r===null&&a===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ar(e,16),this.y=new ar(r,16),this.z=a?new ar(a,16):this.curve.one,this.t=i&&new ar(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}f(Ce,\"Point\");nc(Ce,Nf.BasePoint);Ut.prototype.pointFromJSON=f(function(e){return Ce.fromJSON(this,e)},\"pointFromJSON\");Ut.prototype.point=f(function(e,r,a,i){return new Ce(this,e,r,a,i)},\"point\");Ce.fromJSON=f(function(e,r){return new Ce(e,r[0],r[1],r[2])},\"fromJSON\");Ce.prototype.inspect=f(function(){return this.isInfinity()?\"<EC Point Infinity>\":\"<EC Point x: \"+this.x.fromRed().toString(16,2)+\" y: \"+this.y.fromRed().toString(16,2)+\" z: \"+this.z.fromRed().toString(16,2)+\">\"},\"inspect\");Ce.prototype.isInfinity=f(function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},\"isInfinity\");Ce.prototype._extDbl=f(function(){var e=this.x.redSqr(),r=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var i=this.curve._mulA(e),s=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),c=i.redAdd(r),p=c.redSub(a),_=i.redSub(r),S=s.redMul(p),A=c.redMul(_),q=s.redMul(_),B=p.redMul(c);return this.curve.point(S,A,B,q)},\"_extDbl\");Ce.prototype._projDbl=f(function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),a=this.y.redSqr(),i,s,c,p,_,S;if(this.curve.twisted){p=this.curve._mulA(r);var A=p.redAdd(a);this.zOne?(i=e.redSub(r).redSub(a).redMul(A.redSub(this.curve.two)),s=A.redMul(p.redSub(a)),c=A.redSqr().redSub(A).redSub(A)):(_=this.z.redSqr(),S=A.redSub(_).redISub(_),i=e.redSub(r).redISub(a).redMul(S),s=A.redMul(p.redSub(a)),c=A.redMul(S))}else p=r.redAdd(a),_=this.curve._mulC(this.z).redSqr(),S=p.redSub(_).redSub(_),i=this.curve._mulC(e.redISub(p)).redMul(S),s=this.curve._mulC(p).redMul(r.redISub(a)),c=p.redMul(S);return this.curve.point(i,s,c)},\"_projDbl\");Ce.prototype.dbl=f(function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},\"dbl\");Ce.prototype._extAdd=f(function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),a=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),s=this.z.redMul(e.z.redAdd(e.z)),c=a.redSub(r),p=s.redSub(i),_=s.redAdd(i),S=a.redAdd(r),A=c.redMul(p),q=_.redMul(S),B=c.redMul(S),I=p.redMul(_);return this.curve.point(A,q,I,B)},\"_extAdd\");Ce.prototype._projAdd=f(function(e){var r=this.z.redMul(e.z),a=r.redSqr(),i=this.x.redMul(e.x),s=this.y.redMul(e.y),c=this.curve.d.redMul(i).redMul(s),p=a.redSub(c),_=a.redAdd(c),S=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(s),A=r.redMul(p).redMul(S),q,B;return this.curve.twisted?(q=r.redMul(_).redMul(s.redSub(this.curve._mulA(i))),B=p.redMul(_)):(q=r.redMul(_).redMul(s.redSub(i)),B=this.curve._mulC(p).redMul(_)),this.curve.point(A,q,B)},\"_projAdd\");Ce.prototype.add=f(function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},\"add\");Ce.prototype.mul=f(function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},\"mul\");Ce.prototype.mulAdd=f(function(e,r,a){return this.curve._wnafMulAdd(1,[this,r],[e,a],2,!1)},\"mulAdd\");Ce.prototype.jmulAdd=f(function(e,r,a){return this.curve._wnafMulAdd(1,[this,r],[e,a],2,!0)},\"jmulAdd\");Ce.prototype.normalize=f(function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},\"normalize\");Ce.prototype.neg=f(function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},\"neg\");Ce.prototype.getX=f(function(){return this.normalize(),this.x.fromRed()},\"getX\");Ce.prototype.getY=f(function(){return this.normalize(),this.y.fromRed()},\"getY\");Ce.prototype.eq=f(function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},\"eq\");Ce.prototype.eqXToP=f(function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var a=e.clone(),i=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}},\"eqXToP\");Ce.prototype.toP=Ce.prototype.normalize;Ce.prototype.mixedAdd=Ce.prototype.add});var B0=k(hc=>{\"use strict\";M();var Of=hc;Of.base=ka();Of.short=rc();Of.mont=fc();Of.edwards=oc()});var Bt=k(Re=>{\"use strict\";M();var Gb=ht(),Jb=Se();Re.inherits=Jb;function Yb(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}f(Yb,\"isSurrogatePair\");function $b(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t==\"string\")if(e){if(e===\"hex\")for(t=t.replace(/[^a-z0-9]+/ig,\"\"),t.length%2!==0&&(t=\"0\"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var a=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?r[a++]=s:s<2048?(r[a++]=s>>6|192,r[a++]=s&63|128):Yb(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[a++]=s>>18|240,r[a++]=s>>12&63|128,r[a++]=s>>6&63|128,r[a++]=s&63|128):(r[a++]=s>>12|224,r[a++]=s>>6&63|128,r[a++]=s&63|128)}else for(i=0;i<t.length;i++)r[i]=t[i]|0;return r}f($b,\"toArray\");Re.toArray=$b;function Qb(t){for(var e=\"\",r=0;r<t.length;r++)e+=cc(t[r].toString(16));return e}f(Qb,\"toHex\");Re.toHex=Qb;function dc(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}f(dc,\"htonl\");Re.htonl=dc;function e6(t,e){for(var r=\"\",a=0;a<t.length;a++){var i=t[a];e===\"little\"&&(i=dc(i)),r+=uc(i.toString(16))}return r}f(e6,\"toHex32\");Re.toHex32=e6;function cc(t){return t.length===1?\"0\"+t:t}f(cc,\"zero2\");Re.zero2=cc;function uc(t){return t.length===7?\"0\"+t:t.length===6?\"00\"+t:t.length===5?\"000\"+t:t.length===4?\"0000\"+t:t.length===3?\"00000\"+t:t.length===2?\"000000\"+t:t.length===1?\"0000000\"+t:t}f(uc,\"zero8\");Re.zero8=uc;function t6(t,e,r,a){var i=r-e;Gb(i%4===0);for(var s=new Array(i/4),c=0,p=e;c<s.length;c++,p+=4){var _;a===\"big\"?_=t[p]<<24|t[p+1]<<16|t[p+2]<<8|t[p+3]:_=t[p+3]<<24|t[p+2]<<16|t[p+1]<<8|t[p],s[c]=_>>>0}return s}f(t6,\"join32\");Re.join32=t6;function r6(t,e){for(var r=new Array(t.length*4),a=0,i=0;a<t.length;a++,i+=4){var s=t[a];e===\"big\"?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}f(r6,\"split32\");Re.split32=r6;function i6(t,e){return t>>>e|t<<32-e}f(i6,\"rotr32\");Re.rotr32=i6;function a6(t,e){return t<<e|t>>>32-e}f(a6,\"rotl32\");Re.rotl32=a6;function f6(t,e){return t+e>>>0}f(f6,\"sum32\");Re.sum32=f6;function n6(t,e,r){return t+e+r>>>0}f(n6,\"sum32_3\");Re.sum32_3=n6;function s6(t,e,r,a){return t+e+r+a>>>0}f(s6,\"sum32_4\");Re.sum32_4=s6;function o6(t,e,r,a,i){return t+e+r+a+i>>>0}f(o6,\"sum32_5\");Re.sum32_5=o6;function h6(t,e,r,a){var i=t[e],s=t[e+1],c=a+s>>>0,p=(c<a?1:0)+r+i;t[e]=p>>>0,t[e+1]=c}f(h6,\"sum64\");Re.sum64=h6;function d6(t,e,r,a){var i=e+a>>>0,s=(i<e?1:0)+t+r;return s>>>0}f(d6,\"sum64_hi\");Re.sum64_hi=d6;function c6(t,e,r,a){var i=e+a;return i>>>0}f(c6,\"sum64_lo\");Re.sum64_lo=c6;function u6(t,e,r,a,i,s,c,p){var _=0,S=e;S=S+a>>>0,_+=S<e?1:0,S=S+s>>>0,_+=S<s?1:0,S=S+p>>>0,_+=S<p?1:0;var A=t+r+i+c+_;return A>>>0}f(u6,\"sum64_4_hi\");Re.sum64_4_hi=u6;function l6(t,e,r,a,i,s,c,p){var _=e+a+s+p;return _>>>0}f(l6,\"sum64_4_lo\");Re.sum64_4_lo=l6;function v6(t,e,r,a,i,s,c,p,_,S){var A=0,q=e;q=q+a>>>0,A+=q<e?1:0,q=q+s>>>0,A+=q<s?1:0,q=q+p>>>0,A+=q<p?1:0,q=q+S>>>0,A+=q<S?1:0;var B=t+r+i+c+_+A;return B>>>0}f(v6,\"sum64_5_hi\");Re.sum64_5_hi=v6;function p6(t,e,r,a,i,s,c,p,_,S){var A=e+a+s+p+S;return A>>>0}f(p6,\"sum64_5_lo\");Re.sum64_5_lo=p6;function b6(t,e,r){var a=e<<32-r|t>>>r;return a>>>0}f(b6,\"rotr64_hi\");Re.rotr64_hi=b6;function m6(t,e,r){var a=t<<32-r|e>>>r;return a>>>0}f(m6,\"rotr64_lo\");Re.rotr64_lo=m6;function y6(t,e,r){return t>>>r}f(y6,\"shr64_hi\");Re.shr64_hi=y6;function g6(t,e,r){var a=t<<32-r|e>>>r;return a>>>0}f(g6,\"shr64_lo\");Re.shr64_lo=g6});var Ai=k(vc=>{\"use strict\";M();var lc=Bt(),_6=ht();function Lf(){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}f(Lf,\"BlockHash\");vc.BlockHash=Lf;Lf.prototype.update=f(function(e,r){if(e=lc.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),this.pending.length===0&&(this.pending=null),e=lc.join32(e,0,e.length-a,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},\"update\");Lf.prototype.digest=f(function(e){return this.update(this._pad()),_6(this.pending===null),this._digest(e)},\"digest\");Lf.prototype._pad=f(function(){var e=this.pendingTotal,r=this._delta8,a=r-(e+this.padLength)%r,i=new Array(a+this.padLength);i[0]=128;for(var s=1;s<a;s++)i[s]=0;if(e<<=3,this.endian===\"big\"){for(var c=8;c<this.padLength;c++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=e>>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,c=8;c<this.padLength;c++)i[s++]=0;return i},\"pad\")});var k0=k(fr=>{\"use strict\";M();var w6=Bt(),zt=w6.rotr32;function x6(t,e,r,a){if(t===0)return pc(e,r,a);if(t===1||t===3)return mc(e,r,a);if(t===2)return bc(e,r,a)}f(x6,\"ft_1\");fr.ft_1=x6;function pc(t,e,r){return t&e^~t&r}f(pc,\"ch32\");fr.ch32=pc;function bc(t,e,r){return t&e^t&r^e&r}f(bc,\"maj32\");fr.maj32=bc;function mc(t,e,r){return t^e^r}f(mc,\"p32\");fr.p32=mc;function M6(t){return zt(t,2)^zt(t,13)^zt(t,22)}f(M6,\"s0_256\");fr.s0_256=M6;function S6(t){return zt(t,6)^zt(t,11)^zt(t,25)}f(S6,\"s1_256\");fr.s1_256=S6;function A6(t){return zt(t,7)^zt(t,18)^t>>>3}f(A6,\"g0_256\");fr.g0_256=A6;function E6(t){return zt(t,17)^zt(t,19)^t>>>10}f(E6,\"g1_256\");fr.g1_256=E6});var _c=k((Wm,gc)=>{\"use strict\";M();var Ei=Bt(),q6=Ai(),B6=k0(),I0=Ei.rotl32,Ia=Ei.sum32,k6=Ei.sum32_5,I6=B6.ft_1,yc=q6.BlockHash,R6=[1518500249,1859775393,2400959708,3395469782];function Ft(){if(!(this instanceof Ft))return new Ft;yc.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}f(Ft,\"SHA1\");Ei.inherits(Ft,yc);gc.exports=Ft;Ft.blockSize=512;Ft.outSize=160;Ft.hmacStrength=80;Ft.padLength=64;Ft.prototype._update=f(function(e,r){for(var a=this.W,i=0;i<16;i++)a[i]=e[r+i];for(;i<a.length;i++)a[i]=I0(a[i-3]^a[i-8]^a[i-14]^a[i-16],1);var s=this.h[0],c=this.h[1],p=this.h[2],_=this.h[3],S=this.h[4];for(i=0;i<a.length;i++){var A=~~(i/20),q=k6(I0(s,5),I6(A,c,p,_),S,a[i],R6[A]);S=_,_=p,p=I0(c,30),c=s,s=q}this.h[0]=Ia(this.h[0],s),this.h[1]=Ia(this.h[1],c),this.h[2]=Ia(this.h[2],p),this.h[3]=Ia(this.h[3],_),this.h[4]=Ia(this.h[4],S)},\"_update\");Ft.prototype._digest=f(function(e){return e===\"hex\"?Ei.toHex32(this.h,\"big\"):Ei.split32(this.h,\"big\")},\"digest\")});var R0=k((Gm,xc)=>{\"use strict\";M();var qi=Bt(),C6=Ai(),Bi=k0(),D6=ht(),kt=qi.sum32,P6=qi.sum32_4,T6=qi.sum32_5,N6=Bi.ch32,O6=Bi.maj32,L6=Bi.s0_256,U6=Bi.s1_256,z6=Bi.g0_256,F6=Bi.g1_256,wc=C6.BlockHash,H6=[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 Ht(){if(!(this instanceof Ht))return new Ht;wc.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=H6,this.W=new Array(64)}f(Ht,\"SHA256\");qi.inherits(Ht,wc);xc.exports=Ht;Ht.blockSize=512;Ht.outSize=256;Ht.hmacStrength=192;Ht.padLength=64;Ht.prototype._update=f(function(e,r){for(var a=this.W,i=0;i<16;i++)a[i]=e[r+i];for(;i<a.length;i++)a[i]=P6(F6(a[i-2]),a[i-7],z6(a[i-15]),a[i-16]);var s=this.h[0],c=this.h[1],p=this.h[2],_=this.h[3],S=this.h[4],A=this.h[5],q=this.h[6],B=this.h[7];for(D6(this.k.length===a.length),i=0;i<a.length;i++){var I=T6(B,U6(S),N6(S,A,q),this.k[i],a[i]),R=kt(L6(s),O6(s,c,p));B=q,q=A,A=S,S=kt(_,I),_=p,p=c,c=s,s=kt(I,R)}this.h[0]=kt(this.h[0],s),this.h[1]=kt(this.h[1],c),this.h[2]=kt(this.h[2],p),this.h[3]=kt(this.h[3],_),this.h[4]=kt(this.h[4],S),this.h[5]=kt(this.h[5],A),this.h[6]=kt(this.h[6],q),this.h[7]=kt(this.h[7],B)},\"_update\");Ht.prototype._digest=f(function(e){return e===\"hex\"?qi.toHex32(this.h,\"big\"):qi.split32(this.h,\"big\")},\"digest\")});var Ac=k(($m,Sc)=>{\"use strict\";M();var C0=Bt(),Mc=R0();function nr(){if(!(this instanceof nr))return new nr;Mc.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}f(nr,\"SHA224\");C0.inherits(nr,Mc);Sc.exports=nr;nr.blockSize=512;nr.outSize=224;nr.hmacStrength=192;nr.padLength=64;nr.prototype._digest=f(function(e){return e===\"hex\"?C0.toHex32(this.h.slice(0,7),\"big\"):C0.split32(this.h.slice(0,7),\"big\")},\"digest\")});var T0=k((ty,kc)=>{\"use strict\";M();var nt=Bt(),K6=Ai(),j6=ht(),Kt=nt.rotr64_hi,jt=nt.rotr64_lo,Ec=nt.shr64_hi,qc=nt.shr64_lo,mr=nt.sum64,D0=nt.sum64_hi,P0=nt.sum64_lo,V6=nt.sum64_4_hi,W6=nt.sum64_4_lo,Z6=nt.sum64_5_hi,X6=nt.sum64_5_lo,Bc=K6.BlockHash,G6=[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 It(){if(!(this instanceof It))return new It;Bc.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=G6,this.W=new Array(160)}f(It,\"SHA512\");nt.inherits(It,Bc);kc.exports=It;It.blockSize=1024;It.outSize=512;It.hmacStrength=192;It.padLength=128;It.prototype._prepareBlock=f(function(e,r){for(var a=this.W,i=0;i<32;i++)a[i]=e[r+i];for(;i<a.length;i+=2){var s=n3(a[i-4],a[i-3]),c=s3(a[i-4],a[i-3]),p=a[i-14],_=a[i-13],S=a3(a[i-30],a[i-29]),A=f3(a[i-30],a[i-29]),q=a[i-32],B=a[i-31];a[i]=V6(s,c,p,_,S,A,q,B),a[i+1]=W6(s,c,p,_,S,A,q,B)}},\"_prepareBlock\");It.prototype._update=f(function(e,r){this._prepareBlock(e,r);var a=this.W,i=this.h[0],s=this.h[1],c=this.h[2],p=this.h[3],_=this.h[4],S=this.h[5],A=this.h[6],q=this.h[7],B=this.h[8],I=this.h[9],R=this.h[10],T=this.h[11],L=this.h[12],N=this.h[13],z=this.h[14],Ee=this.h[15];j6(this.k.length===a.length);for(var qe=0;qe<a.length;qe+=2){var De=z,ke=Ee,Ue=r3(B,I),Ae=i3(B,I),Le=J6(B,I,R,T,L,N),E=Y6(B,I,R,T,L,N),d=this.k[qe],y=this.k[qe+1],l=a[qe],n=a[qe+1],h=Z6(De,ke,Ue,Ae,Le,E,d,y,l,n),v=X6(De,ke,Ue,Ae,Le,E,d,y,l,n);De=e3(i,s),ke=t3(i,s),Ue=$6(i,s,c,p,_,S),Ae=Q6(i,s,c,p,_,S);var m=D0(De,ke,Ue,Ae),b=P0(De,ke,Ue,Ae);z=L,Ee=N,L=R,N=T,R=B,T=I,B=D0(A,q,h,v),I=P0(q,q,h,v),A=_,q=S,_=c,S=p,c=i,p=s,i=D0(h,v,m,b),s=P0(h,v,m,b)}mr(this.h,0,i,s),mr(this.h,2,c,p),mr(this.h,4,_,S),mr(this.h,6,A,q),mr(this.h,8,B,I),mr(this.h,10,R,T),mr(this.h,12,L,N),mr(this.h,14,z,Ee)},\"_update\");It.prototype._digest=f(function(e){return e===\"hex\"?nt.toHex32(this.h,\"big\"):nt.split32(this.h,\"big\")},\"digest\");function J6(t,e,r,a,i){var s=t&r^~t&i;return s<0&&(s+=4294967296),s}f(J6,\"ch64_hi\");function Y6(t,e,r,a,i,s){var c=e&a^~e&s;return c<0&&(c+=4294967296),c}f(Y6,\"ch64_lo\");function $6(t,e,r,a,i){var s=t&r^t&i^r&i;return s<0&&(s+=4294967296),s}f($6,\"maj64_hi\");function Q6(t,e,r,a,i,s){var c=e&a^e&s^a&s;return c<0&&(c+=4294967296),c}f(Q6,\"maj64_lo\");function e3(t,e){var r=Kt(t,e,28),a=Kt(e,t,2),i=Kt(e,t,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(e3,\"s0_512_hi\");function t3(t,e){var r=jt(t,e,28),a=jt(e,t,2),i=jt(e,t,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(t3,\"s0_512_lo\");function r3(t,e){var r=Kt(t,e,14),a=Kt(t,e,18),i=Kt(e,t,9),s=r^a^i;return s<0&&(s+=4294967296),s}f(r3,\"s1_512_hi\");function i3(t,e){var r=jt(t,e,14),a=jt(t,e,18),i=jt(e,t,9),s=r^a^i;return s<0&&(s+=4294967296),s}f(i3,\"s1_512_lo\");function a3(t,e){var r=Kt(t,e,1),a=Kt(t,e,8),i=Ec(t,e,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(a3,\"g0_512_hi\");function f3(t,e){var r=jt(t,e,1),a=jt(t,e,8),i=qc(t,e,7),s=r^a^i;return s<0&&(s+=4294967296),s}f(f3,\"g0_512_lo\");function n3(t,e){var r=Kt(t,e,19),a=Kt(e,t,29),i=Ec(t,e,6),s=r^a^i;return s<0&&(s+=4294967296),s}f(n3,\"g1_512_hi\");function s3(t,e){var r=jt(t,e,19),a=jt(e,t,29),i=qc(t,e,6),s=r^a^i;return s<0&&(s+=4294967296),s}f(s3,\"g1_512_lo\")});var Cc=k((ay,Rc)=>{\"use strict\";M();var N0=Bt(),Ic=T0();function sr(){if(!(this instanceof sr))return new sr;Ic.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}f(sr,\"SHA384\");N0.inherits(sr,Ic);Rc.exports=sr;sr.blockSize=1024;sr.outSize=384;sr.hmacStrength=192;sr.padLength=128;sr.prototype._digest=f(function(e){return e===\"hex\"?N0.toHex32(this.h.slice(0,12),\"big\"):N0.split32(this.h.slice(0,12),\"big\")},\"digest\")});var Dc=k(ki=>{\"use strict\";M();ki.sha1=_c();ki.sha224=Ac();ki.sha256=R0();ki.sha384=Cc();ki.sha512=T0()});var Uc=k(Lc=>{\"use strict\";M();var $r=Bt(),o3=Ai(),Uf=$r.rotl32,Pc=$r.sum32,Ra=$r.sum32_3,Tc=$r.sum32_4,Oc=o3.BlockHash;function Vt(){if(!(this instanceof Vt))return new Vt;Oc.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}f(Vt,\"RIPEMD160\");$r.inherits(Vt,Oc);Lc.ripemd160=Vt;Vt.blockSize=512;Vt.outSize=160;Vt.hmacStrength=192;Vt.padLength=64;Vt.prototype._update=f(function(e,r){for(var a=this.h[0],i=this.h[1],s=this.h[2],c=this.h[3],p=this.h[4],_=a,S=i,A=s,q=c,B=p,I=0;I<80;I++){var R=Pc(Uf(Tc(a,Nc(I,i,s,c),e[c3[I]+r],h3(I)),l3[I]),p);a=p,p=c,c=Uf(s,10),s=i,i=R,R=Pc(Uf(Tc(_,Nc(79-I,S,A,q),e[u3[I]+r],d3(I)),v3[I]),B),_=B,B=q,q=Uf(A,10),A=S,S=R}R=Ra(this.h[1],s,q),this.h[1]=Ra(this.h[2],c,B),this.h[2]=Ra(this.h[3],p,_),this.h[3]=Ra(this.h[4],a,S),this.h[4]=Ra(this.h[0],i,A),this.h[0]=R},\"update\");Vt.prototype._digest=f(function(e){return e===\"hex\"?$r.toHex32(this.h,\"little\"):$r.split32(this.h,\"little\")},\"digest\");function Nc(t,e,r,a){return t<=15?e^r^a:t<=31?e&r|~e&a:t<=47?(e|~r)^a:t<=63?e&a|r&~a:e^(r|~a)}f(Nc,\"f\");function h3(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}f(h3,\"K\");function d3(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}f(d3,\"Kh\");var c3=[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],u3=[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],l3=[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],v3=[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]});var Fc=k((uy,zc)=>{\"use strict\";M();var p3=Bt(),b3=ht();function Ii(t,e,r){if(!(this instanceof Ii))return new Ii(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(p3.toArray(e,r))}f(Ii,\"Hmac\");zc.exports=Ii;Ii.prototype._init=f(function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),b3(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)},\"init\");Ii.prototype.update=f(function(e,r){return this.inner.update(e,r),this},\"update\");Ii.prototype.digest=f(function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},\"digest\")});var zf=k(Hc=>{M();var Je=Hc;Je.utils=Bt();Je.common=Ai();Je.sha=Dc();Je.ripemd=Uc();Je.hmac=Fc();Je.sha1=Je.sha.sha1;Je.sha256=Je.sha.sha256;Je.sha224=Je.sha.sha224;Je.sha384=Je.sha.sha384;Je.sha512=Je.sha.sha512;Je.ripemd160=Je.ripemd.ripemd160});var jc=k((my,Kc)=>{M();Kc.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\"]]}}});var Ff=k(Zc=>{\"use strict\";M();var L0=Zc,yr=zf(),O0=B0(),m3=dt(),Vc=m3.assert;function Wc(t){t.type===\"short\"?this.curve=new O0.short(t):t.type===\"edwards\"?this.curve=new O0.edwards(t):this.curve=new O0.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,Vc(this.g.validate(),\"Invalid curve\"),Vc(this.g.mul(this.n).isInfinity(),\"Invalid curve, G*N != O\")}f(Wc,\"PresetCurve\");L0.PresetCurve=Wc;function gr(t,e){Object.defineProperty(L0,t,{configurable:!0,enumerable:!0,get:f(function(){var r=new Wc(e);return Object.defineProperty(L0,t,{configurable:!0,enumerable:!0,value:r}),r},\"get\")})}f(gr,\"defineCurve\");gr(\"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:yr.sha256,gRed:!1,g:[\"188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012\",\"07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21\",\"bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296\",\"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5\"]});gr(\"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:yr.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\"]});gr(\"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:yr.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\"]});gr(\"curve25519\",{type:\"mont\",prime:\"p25519\",p:\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\",a:\"76d06\",b:\"1\",n:\"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed\",hash:yr.sha256,gRed:!1,g:[\"9\"]});gr(\"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:yr.sha256,gRed:!1,g:[\"216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\",\"6666666666666666666666666666666666666666666666666666666666666658\"]});var U0;try{U0=jc()}catch{U0=void 0}gr(\"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:yr.sha256,beta:\"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\",lambda:\"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72\",basis:[{a:\"3086d221a7d46bcde86c90e49284eb15\",b:\"-e4437ed6010e88286f547fa90abfe4c3\"},{a:\"114ca50f7a8e2f3f657c1108d9d44cfd8\",b:\"3086d221a7d46bcde86c90e49284eb15\"}],gRed:!1,g:[\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\",U0]})});var Jc=k((xy,Gc)=>{\"use strict\";M();var y3=zf(),Qr=E0(),Xc=ht();function _r(t){if(!(this instanceof _r))return new _r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Qr.toArray(t.entropy,t.entropyEnc||\"hex\"),r=Qr.toArray(t.nonce,t.nonceEnc||\"hex\"),a=Qr.toArray(t.pers,t.persEnc||\"hex\");Xc(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._init(e,r,a)}f(_r,\"HmacDRBG\");Gc.exports=_r;_r.prototype._init=f(function(e,r,a){var i=e.concat(r).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},\"init\");_r.prototype._hmac=f(function(){return new y3.hmac(this.hash,this.K)},\"hmac\");_r.prototype._update=f(function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},\"update\");_r.prototype.reseed=f(function(e,r,a,i){typeof r!=\"string\"&&(i=a,a=r,r=null),e=Qr.toArray(e,r),a=Qr.toArray(a,i),Xc(e.length>=this.minEntropy/8,\"Not enough entropy. Minimum is: \"+this.minEntropy+\" bits\"),this._update(e.concat(a||[])),this._reseed=1},\"reseed\");_r.prototype.generate=f(function(e,r,a,i){if(this._reseed>this.reseedInterval)throw new Error(\"Reseed is required\");typeof r!=\"string\"&&(i=a,a=r,r=null),a&&(a=Qr.toArray(a,i||\"hex\"),this._update(a));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var c=s.slice(0,e);return this._update(a),this._reseed++,Qr.encode(c,r)},\"generate\")});var $c=k((Ay,Yc)=>{\"use strict\";M();var g3=je(),_3=dt(),z0=_3.assert;function rt(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}f(rt,\"KeyPair\");Yc.exports=rt;rt.fromPublic=f(function(e,r,a){return r instanceof rt?r:new rt(e,{pub:r,pubEnc:a})},\"fromPublic\");rt.fromPrivate=f(function(e,r,a){return r instanceof rt?r:new rt(e,{priv:r,privEnc:a})},\"fromPrivate\");rt.prototype.validate=f(function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:\"Invalid public key\"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:\"Public key * N != O\"}:{result:!1,reason:\"Public key is not a point\"}},\"validate\");rt.prototype.getPublic=f(function(e,r){return typeof e==\"string\"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub},\"getPublic\");rt.prototype.getPrivate=f(function(e){return e===\"hex\"?this.priv.toString(16,2):this.priv},\"getPrivate\");rt.prototype._importPrivate=f(function(e,r){this.priv=new g3(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)},\"_importPrivate\");rt.prototype._importPublic=f(function(e,r){if(e.x||e.y){this.ec.curve.type===\"mont\"?z0(e.x,\"Need x coordinate\"):(this.ec.curve.type===\"short\"||this.ec.curve.type===\"edwards\")&&z0(e.x&&e.y,\"Need both x and y coordinate\"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)},\"_importPublic\");rt.prototype.derive=f(function(e){return e.validate()||z0(e.validate(),\"public point not validated\"),e.mul(this.priv).getX()},\"derive\");rt.prototype.sign=f(function(e,r,a){return this.ec.sign(e,this,r,a)},\"sign\");rt.prototype.verify=f(function(e,r,a){return this.ec.verify(e,r,this,void 0,a)},\"verify\");rt.prototype.inspect=f(function(){return\"<Key priv: \"+(this.priv&&this.priv.toString(16,2))+\" pub: \"+(this.pub&&this.pub.inspect())+\" >\"},\"inspect\")});var tu=k((By,eu)=>{\"use strict\";M();var Hf=je(),K0=dt(),w3=K0.assert;function Kf(t,e){if(t instanceof Kf)return t;this._importDER(t,e)||(w3(t.r&&t.s,\"Signature without r or s\"),this.r=new Hf(t.r,16),this.s=new Hf(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}f(Kf,\"Signature\");eu.exports=Kf;function x3(){this.place=0}f(x3,\"Position\");function F0(t,e){var r=t[e.place++];if(!(r&128))return r;var a=r&15;if(a===0||a>4||t[e.place]===0)return!1;for(var i=0,s=0,c=e.place;s<a;s++,c++)i<<=8,i|=t[c],i>>>=0;return i<=127?!1:(e.place=c,i)}f(F0,\"getLength\");function Qc(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}f(Qc,\"rmPadding\");Kf.prototype._importDER=f(function(e,r){e=K0.toArray(e,r);var a=new x3;if(e[a.place++]!==48)return!1;var i=F0(e,a);if(i===!1||i+a.place!==e.length||e[a.place++]!==2)return!1;var s=F0(e,a);if(s===!1||(e[a.place]&128)!==0)return!1;var c=e.slice(a.place,s+a.place);if(a.place+=s,e[a.place++]!==2)return!1;var p=F0(e,a);if(p===!1||e.length!==p+a.place||(e[a.place]&128)!==0)return!1;var _=e.slice(a.place,p+a.place);if(c[0]===0)if(c[1]&128)c=c.slice(1);else return!1;if(_[0]===0)if(_[1]&128)_=_.slice(1);else return!1;return this.r=new Hf(c),this.s=new Hf(_),this.recoveryParam=null,!0},\"_importDER\");function H0(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}f(H0,\"constructLength\");Kf.prototype.toDER=f(function(e){var r=this.r.toArray(),a=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),a[0]&128&&(a=[0].concat(a)),r=Qc(r),a=Qc(a);!a[0]&&!(a[1]&128);)a=a.slice(1);var i=[2];H0(i,r.length),i=i.concat(r),i.push(2),H0(i,a.length);var s=i.concat(a),c=[48];return H0(c,s.length),c=c.concat(s),K0.encode(c,e)},\"toDER\")});var au=k((Ry,iu)=>{\"use strict\";M();var Rt=je(),ru=Jc(),M3=dt(),j0=Ff(),S3=Ef(),ei=M3.assert,V0=$c(),jf=tu();function gt(t){if(!(this instanceof gt))return new gt(t);typeof t==\"string\"&&(ei(Object.prototype.hasOwnProperty.call(j0,t),\"Unknown curve \"+t),t=j0[t]),t instanceof j0.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}f(gt,\"EC\");iu.exports=gt;gt.prototype.keyPair=f(function(e){return new V0(this,e)},\"keyPair\");gt.prototype.keyFromPrivate=f(function(e,r){return V0.fromPrivate(this,e,r)},\"keyFromPrivate\");gt.prototype.keyFromPublic=f(function(e,r){return V0.fromPublic(this,e,r)},\"keyFromPublic\");gt.prototype.genKeyPair=f(function(e){e||(e={});for(var r=new ru({hash:this.hash,pers:e.pers,persEnc:e.persEnc||\"utf8\",entropy:e.entropy||S3(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||\"utf8\",nonce:this.n.toArray()}),a=this.n.byteLength(),i=this.n.sub(new Rt(2));;){var s=new Rt(r.generate(a));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},\"genKeyPair\");gt.prototype._truncateToN=f(function(e,r,a){var i;if(Rt.isBN(e)||typeof e==\"number\")e=new Rt(e,16),i=e.byteLength();else if(typeof e==\"object\")i=e.length,e=new Rt(e,16);else{var s=e.toString();i=s.length+1>>>1,e=new Rt(s,16)}typeof a!=\"number\"&&(a=i*8);var c=a-this.n.bitLength();return c>0&&(e=e.ushrn(c)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e},\"_truncateToN\");gt.prototype.sign=f(function(e,r,a,i){if(typeof a==\"object\"&&(i=a,a=null),i||(i={}),typeof e!=\"string\"&&typeof e!=\"number\"&&!Rt.isBN(e)){ei(typeof e==\"object\"&&e&&typeof e.length==\"number\",\"Expected message to be an array-like, a hex string, or a BN instance\"),ei(e.length>>>0===e.length);for(var s=0;s<e.length;s++)ei((e[s]&255)===e[s])}r=this.keyFromPrivate(r,a),e=this._truncateToN(e,!1,i.msgBitLength),ei(!e.isNeg(),\"Can not sign a negative message\");var c=this.n.byteLength(),p=r.getPrivate().toArray(\"be\",c),_=e.toArray(\"be\",c);ei(new Rt(_).eq(e),\"Can not sign message\");for(var S=new ru({hash:this.hash,entropy:p,nonce:_,pers:i.pers,persEnc:i.persEnc||\"utf8\"}),A=this.n.sub(new Rt(1)),q=0;;q++){var B=i.k?i.k(q):new Rt(S.generate(this.n.byteLength()));if(B=this._truncateToN(B,!0),!(B.cmpn(1)<=0||B.cmp(A)>=0)){var I=this.g.mul(B);if(!I.isInfinity()){var R=I.getX(),T=R.umod(this.n);if(T.cmpn(0)!==0){var L=B.invm(this.n).mul(T.mul(r.getPrivate()).iadd(e));if(L=L.umod(this.n),L.cmpn(0)!==0){var N=(I.getY().isOdd()?1:0)|(R.cmp(T)!==0?2:0);return i.canonical&&L.cmp(this.nh)>0&&(L=this.n.sub(L),N^=1),new jf({r:T,s:L,recoveryParam:N})}}}}}},\"sign\");gt.prototype.verify=f(function(e,r,a,i,s){s||(s={}),e=this._truncateToN(e,!1,s.msgBitLength),a=this.keyFromPublic(a,i),r=new jf(r,\"hex\");var c=r.r,p=r.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var _=p.invm(this.n),S=_.mul(e).umod(this.n),A=_.mul(c).umod(this.n),q;return this.curve._maxwellTrick?(q=this.g.jmulAdd(S,a.getPublic(),A),q.isInfinity()?!1:q.eqXToP(c)):(q=this.g.mulAdd(S,a.getPublic(),A),q.isInfinity()?!1:q.getX().umod(this.n).cmp(c)===0)},\"verify\");gt.prototype.recoverPubKey=function(t,e,r,a){ei((3&r)===r,\"The recovery param is more than two bits\"),e=new jf(e,a);var i=this.n,s=new Rt(t),c=e.r,p=e.s,_=r&1,S=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&S)throw new Error(\"Unable to find sencond key candinate\");S?c=this.curve.pointFromX(c.add(this.curve.n),_):c=this.curve.pointFromX(c,_);var A=e.r.invm(i),q=i.sub(s).mul(A).umod(i),B=p.mul(A).umod(i);return this.g.mulAdd(q,c,B)};gt.prototype.getKeyRecoveryParam=function(t,e,r,a){if(e=new jf(e,a),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error(\"Unable to find valid recovery factor\")}});var ou=k((Py,su)=>{\"use strict\";M();var Ca=dt(),nu=Ca.assert,fu=Ca.parseBytes,Ri=Ca.cachedProperty;function Ze(t,e){this.eddsa=t,this._secret=fu(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=fu(e.pub)}f(Ze,\"KeyPair\");Ze.fromPublic=f(function(e,r){return r instanceof Ze?r:new Ze(e,{pub:r})},\"fromPublic\");Ze.fromSecret=f(function(e,r){return r instanceof Ze?r:new Ze(e,{secret:r})},\"fromSecret\");Ze.prototype.secret=f(function(){return this._secret},\"secret\");Ri(Ze,\"pubBytes\",f(function(){return this.eddsa.encodePoint(this.pub())},\"pubBytes\"));Ri(Ze,\"pub\",f(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())},\"pub\"));Ri(Ze,\"privBytes\",f(function(){var e=this.eddsa,r=this.hash(),a=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[a]&=127,i[a]|=64,i},\"privBytes\"));Ri(Ze,\"priv\",f(function(){return this.eddsa.decodeInt(this.privBytes())},\"priv\"));Ri(Ze,\"hash\",f(function(){return this.eddsa.hash().update(this.secret()).digest()},\"hash\"));Ri(Ze,\"messagePrefix\",f(function(){return this.hash().slice(this.eddsa.encodingLength)},\"messagePrefix\"));Ze.prototype.sign=f(function(e){return nu(this._secret,\"KeyPair can only verify\"),this.eddsa.sign(e,this)},\"sign\");Ze.prototype.verify=f(function(e,r){return this.eddsa.verify(e,r,this)},\"verify\");Ze.prototype.getSecret=f(function(e){return nu(this._secret,\"KeyPair is public only\"),Ca.encode(this.secret(),e)},\"getSecret\");Ze.prototype.getPublic=f(function(e){return Ca.encode(this.pubBytes(),e)},\"getPublic\");su.exports=Ze});var cu=k((Oy,du)=>{\"use strict\";M();var A3=je(),Vf=dt(),hu=Vf.assert,Wf=Vf.cachedProperty,E3=Vf.parseBytes;function ti(t,e){this.eddsa=t,typeof e!=\"object\"&&(e=E3(e)),Array.isArray(e)&&(hu(e.length===t.encodingLength*2,\"Signature has invalid size\"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),hu(e.R&&e.S,\"Signature without R or S\"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof A3&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}f(ti,\"Signature\");Wf(ti,\"S\",f(function(){return this.eddsa.decodeInt(this.Sencoded())},\"S\"));Wf(ti,\"R\",f(function(){return this.eddsa.decodePoint(this.Rencoded())},\"R\"));Wf(ti,\"Rencoded\",f(function(){return this.eddsa.encodePoint(this.R())},\"Rencoded\"));Wf(ti,\"Sencoded\",f(function(){return this.eddsa.encodeInt(this.S())},\"Sencoded\"));ti.prototype.toBytes=f(function(){return this.Rencoded().concat(this.Sencoded())},\"toBytes\");ti.prototype.toHex=f(function(){return Vf.encode(this.toBytes(),\"hex\").toUpperCase()},\"toHex\");du.exports=ti});var bu=k((zy,pu)=>{\"use strict\";M();var q3=zf(),B3=Ff(),Ci=dt(),k3=Ci.assert,lu=Ci.parseBytes,vu=ou(),uu=cu();function st(t){if(k3(t===\"ed25519\",\"only tested with ed25519 so far\"),!(this instanceof st))return new st(t);t=B3[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=q3.sha512}f(st,\"EDDSA\");pu.exports=st;st.prototype.sign=f(function(e,r){e=lu(e);var a=this.keyFromSecret(r),i=this.hashInt(a.messagePrefix(),e),s=this.g.mul(i),c=this.encodePoint(s),p=this.hashInt(c,a.pubBytes(),e).mul(a.priv()),_=i.add(p).umod(this.curve.n);return this.makeSignature({R:s,S:_,Rencoded:c})},\"sign\");st.prototype.verify=f(function(e,r,a){if(e=lu(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(a),s=this.hashInt(r.Rencoded(),i.pubBytes(),e),c=this.g.mul(r.S()),p=r.R().add(i.pub().mul(s));return p.eq(c)},\"verify\");st.prototype.hashInt=f(function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return Ci.intFromLE(e.digest()).umod(this.curve.n)},\"hashInt\");st.prototype.keyFromPublic=f(function(e){return vu.fromPublic(this,e)},\"keyFromPublic\");st.prototype.keyFromSecret=f(function(e){return vu.fromSecret(this,e)},\"keyFromSecret\");st.prototype.makeSignature=f(function(e){return e instanceof uu?e:new uu(this,e)},\"makeSignature\");st.prototype.encodePoint=f(function(e){var r=e.getY().toArray(\"le\",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r},\"encodePoint\");st.prototype.decodePoint=f(function(e){e=Ci.parseBytes(e);var r=e.length-1,a=e.slice(0,r).concat(e[r]&-129),i=(e[r]&128)!==0,s=Ci.intFromLE(a);return this.curve.pointFromY(s,i)},\"decodePoint\");st.prototype.encodeInt=f(function(e){return e.toArray(\"le\",this.encodingLength)},\"encodeInt\");st.prototype.decodeInt=f(function(e){return Ci.intFromLE(e)},\"decodeInt\");st.prototype.isPoint=f(function(e){return e instanceof this.pointClass},\"isPoint\")});var Zf=k(mu=>{\"use strict\";M();var ri=mu;ri.version=Gd().version;ri.utils=dt();ri.rand=Ef();ri.curve=B0();ri.curves=Ff();ri.ec=au();ri.eddsa=bu()});var yu=k((exports,module)=>{M();var indexOf=f(function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},\"indexOf\"),Object_keys=f(function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},\"Object_keys\"),forEach=f(function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},\"forEach\"),defineProp=(function(){try{return Object.defineProperty({},\"_\",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,a){e[r]=a}}})(),globals=[\"Array\",\"Boolean\",\"Date\",\"Error\",\"EvalError\",\"Function\",\"Infinity\",\"JSON\",\"Math\",\"NaN\",\"Number\",\"Object\",\"RangeError\",\"ReferenceError\",\"RegExp\",\"String\",\"SyntaxError\",\"TypeError\",\"URIError\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"eval\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"undefined\",\"unescape\"];function Context(){}f(Context,\"Context\");Context.prototype={};var Script=exports.Script=f(function(e){if(!(this instanceof Script))return new Script(e);this.code=e},\"NodeScript\");Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError(\"needs a 'context' argument.\");var e=document.createElement(\"iframe\");e.style||(e.style={}),e.style.display=\"none\",document.body.appendChild(e);var r=e.contentWindow,a=r.eval,i=r.execScript;!a&&i&&(i.call(r,\"null\"),a=r.eval),forEach(Object_keys(t),function(p){r[p]=t[p]}),forEach(globals,function(p){t[p]&&(r[p]=t[p])});var s=Object_keys(r),c=a.call(r,this.code);return forEach(Object_keys(r),function(p){(p in t||indexOf(s,p)===-1)&&(t[p]=r[p])}),forEach(globals,function(p){p in t||defineProp(t,p,r[p])}),document.body.removeChild(e),c};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(a){t[a]=e[a]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t==\"object\"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var wu=k(_u=>{M();var gu=Pi(),I3=Se(),R3=_u;R3.define=f(function(e,r){return new Di(e,r)},\"define\");function Di(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}f(Di,\"Entity\");Di.prototype._createNamed=f(function(e){var r;try{r=yu().runInThisContext(\"(function \"+this.name+`(entity) {\n this._initNamed(entity);\n})`)}catch{r=f(function(i){this._initNamed(i)},\"named\")}return I3(r,e),r.prototype._initNamed=f(function(i){e.call(this,i)},\"initnamed\"),new r(this)},\"createNamed\");Di.prototype._getDecoder=f(function(e){return e=e||\"der\",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(gu.decoders[e])),this.decoders[e]},\"_getDecoder\");Di.prototype.decode=f(function(e,r,a){return this._getDecoder(r).decode(e,a)},\"decode\");Di.prototype._getEncoder=f(function(e){return e=e||\"der\",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(gu.encoders[e])),this.encoders[e]},\"_getEncoder\");Di.prototype.encode=f(function(e,r,a){return this._getEncoder(r).encode(e,a)},\"encode\")});var Mu=k(xu=>{M();var C3=Se();function _t(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}f(_t,\"Reporter\");xu.Reporter=_t;_t.prototype.isError=f(function(e){return e instanceof Ti},\"isError\");_t.prototype.save=f(function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},\"save\");_t.prototype.restore=f(function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)},\"restore\");_t.prototype.enterKey=f(function(e){return this._reporterState.path.push(e)},\"enterKey\");_t.prototype.exitKey=f(function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)},\"exitKey\");_t.prototype.leaveKey=f(function(e,r,a){var i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=a)},\"leaveKey\");_t.prototype.path=f(function(){return this._reporterState.path.join(\"/\")},\"path\");_t.prototype.enterObject=f(function(){var e=this._reporterState,r=e.obj;return e.obj={},r},\"enterObject\");_t.prototype.leaveObject=f(function(e){var r=this._reporterState,a=r.obj;return r.obj=e,a},\"leaveObject\");_t.prototype.error=f(function(e){var r,a=this._reporterState,i=e instanceof Ti;if(i?r=e:r=new Ti(a.path.map(function(s){return\"[\"+JSON.stringify(s)+\"]\"}).join(\"\"),e.message||e,e.stack),!a.options.partial)throw r;return i||a.errors.push(r),r},\"error\");_t.prototype.wrapResult=f(function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e},\"wrapResult\");function Ti(t,e){this.path=t,this.rethrow(e)}f(Ti,\"ReporterError\");C3(Ti,Error);Ti.prototype.rethrow=f(function(e){if(this.message=e+\" at: \"+(this.path||\"(shallow)\"),Error.captureStackTrace&&Error.captureStackTrace(this,Ti),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this},\"rethrow\")});var Z0=k(W0=>{M();var D3=Se(),Gf=Ni().Reporter,Da=(cr(),hr(dr)).Buffer;function Wt(t,e){if(Gf.call(this,e),!Da.isBuffer(t)){this.error(\"Input not Buffer\");return}this.base=t,this.offset=0,this.length=t.length}f(Wt,\"DecoderBuffer\");D3(Wt,Gf);W0.DecoderBuffer=Wt;Wt.prototype.save=f(function(){return{offset:this.offset,reporter:Gf.prototype.save.call(this)}},\"save\");Wt.prototype.restore=f(function(e){var r=new Wt(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Gf.prototype.restore.call(this,e.reporter),r},\"restore\");Wt.prototype.isEmpty=f(function(){return this.offset===this.length},\"isEmpty\");Wt.prototype.readUInt8=f(function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||\"DecoderBuffer overrun\")},\"readUInt8\");Wt.prototype.skip=f(function(e,r){if(!(this.offset+e<=this.length))return this.error(r||\"DecoderBuffer overrun\");var a=new Wt(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+e,this.offset+=e,a},\"skip\");Wt.prototype.raw=f(function(e){return this.base.slice(e?e.offset:this.offset,this.length)},\"raw\");function Xf(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof Xf||(r=new Xf(r,e)),this.length+=r.length,r},this);else if(typeof t==\"number\"){if(!(0<=t&&t<=255))return e.error(\"non-byte EncoderBuffer value\");this.value=t,this.length=1}else if(typeof t==\"string\")this.value=t,this.length=Da.byteLength(t);else if(Da.isBuffer(t))this.value=t,this.length=t.length;else return e.error(\"Unsupported type: \"+typeof t)}f(Xf,\"EncoderBuffer\");W0.EncoderBuffer=Xf;Xf.prototype.join=f(function(e,r){return e||(e=new Da(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(a){a.join(e,r),r+=a.length}):(typeof this.value==\"number\"?e[r]=this.value:typeof this.value==\"string\"?e.write(this.value,r):Da.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e},\"join\")});var Eu=k((rg,Au)=>{M();var P3=Ni().Reporter,T3=Ni().EncoderBuffer,N3=Ni().DecoderBuffer,at=ht(),Su=[\"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\"],O3=[\"key\",\"obj\",\"use\",\"optional\",\"explicit\",\"implicit\",\"def\",\"choice\",\"any\",\"contains\"].concat(Su),L3=[\"_peekTag\",\"_decodeTag\",\"_use\",\"_decodeStr\",\"_decodeObjid\",\"_decodeTime\",\"_decodeNull\",\"_decodeInt\",\"_decodeBool\",\"_decodeList\",\"_encodeComposite\",\"_encodeStr\",\"_encodeObjid\",\"_encodeTime\",\"_encodeNull\",\"_encodeInt\",\"_encodeBool\"];function Ie(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}f(Ie,\"Node\");Au.exports=Ie;var U3=[\"enc\",\"parent\",\"children\",\"tag\",\"args\",\"reverseArgs\",\"choice\",\"optional\",\"any\",\"obj\",\"use\",\"alteredUse\",\"key\",\"default\",\"explicit\",\"implicit\",\"contains\"];Ie.prototype.clone=f(function(){var e=this._baseState,r={};U3.forEach(function(i){r[i]=e[i]});var a=new this.constructor(r.parent);return a._baseState=r,a},\"clone\");Ie.prototype._wrap=f(function(){var e=this._baseState;O3.forEach(function(r){this[r]=f(function(){var i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)},\"_wrappedMethod\")},this)},\"wrap\");Ie.prototype._init=f(function(e){var r=this._baseState;at(r.parent===null),e.call(this),r.children=r.children.filter(function(a){return a._baseState.parent===this},this),at.equal(r.children.length,1,\"Root node can have only one child\")},\"init\");Ie.prototype._useArgs=f(function(e){var r=this._baseState,a=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),a.length!==0&&(at(r.children===null),r.children=a,a.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(at(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!=\"object\"||i.constructor!==Object)return i;var s={};return Object.keys(i).forEach(function(c){c==(c|0)&&(c|=0);var p=i[c];s[p]=c}),s}))},\"useArgs\");L3.forEach(function(t){Ie.prototype[t]=f(function(){var r=this._baseState;throw new Error(t+\" not implemented for encoding: \"+r.enc)},\"_overrided\")});Su.forEach(function(t){Ie.prototype[t]=f(function(){var r=this._baseState,a=Array.prototype.slice.call(arguments);return at(r.tag===null),r.tag=t,this._useArgs(a),this},\"_tagMethod\")});Ie.prototype.use=f(function(e){at(e);var r=this._baseState;return at(r.use===null),r.use=e,this},\"use\");Ie.prototype.optional=f(function(){var e=this._baseState;return e.optional=!0,this},\"optional\");Ie.prototype.def=f(function(e){var r=this._baseState;return at(r.default===null),r.default=e,r.optional=!0,this},\"def\");Ie.prototype.explicit=f(function(e){var r=this._baseState;return at(r.explicit===null&&r.implicit===null),r.explicit=e,this},\"explicit\");Ie.prototype.implicit=f(function(e){var r=this._baseState;return at(r.explicit===null&&r.implicit===null),r.implicit=e,this},\"implicit\");Ie.prototype.obj=f(function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this},\"obj\");Ie.prototype.key=f(function(e){var r=this._baseState;return at(r.key===null),r.key=e,this},\"key\");Ie.prototype.any=f(function(){var e=this._baseState;return e.any=!0,this},\"any\");Ie.prototype.choice=f(function(e){var r=this._baseState;return at(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(a){return e[a]})),this},\"choice\");Ie.prototype.contains=f(function(e){var r=this._baseState;return at(r.use===null),r.contains=e,this},\"contains\");Ie.prototype._decode=f(function(e,r){var a=this._baseState;if(a.parent===null)return e.wrapResult(a.children[0]._decode(e,r));var i=a.default,s=!0,c=null;if(a.key!==null&&(c=e.enterKey(a.key)),a.optional){var p=null;if(a.explicit!==null?p=a.explicit:a.implicit!==null?p=a.implicit:a.tag!==null&&(p=a.tag),p===null&&!a.any){var _=e.save();try{a.choice===null?this._decodeGeneric(a.tag,e,r):this._decodeChoice(e,r),s=!0}catch{s=!1}e.restore(_)}else if(s=this._peekTag(e,p,a.any),e.isError(s))return s}var S;if(a.obj&&s&&(S=e.enterObject()),s){if(a.explicit!==null){var A=this._decodeTag(e,a.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(a.use===null&&a.choice===null){if(a.any)var _=e.save();var B=this._decodeTag(e,a.implicit!==null?a.implicit:a.tag,a.any);if(e.isError(B))return B;a.any?i=e.raw(_):e=B}if(r&&r.track&&a.tag!==null&&r.track(e.path(),q,e.length,\"tagged\"),r&&r.track&&a.tag!==null&&r.track(e.path(),e.offset,e.length,\"content\"),a.any?i=i:a.choice===null?i=this._decodeGeneric(a.tag,e,r):i=this._decodeChoice(e,r),e.isError(i))return i;if(!a.any&&a.choice===null&&a.children!==null&&a.children.forEach(f(function(T){T._decode(e,r)},\"decodeChildren\")),a.contains&&(a.tag===\"octstr\"||a.tag===\"bitstr\")){var I=new N3(i);i=this._getUse(a.contains,e._reporterState.obj)._decode(I,r)}}return a.obj&&s&&(i=e.leaveObject(S)),a.key!==null&&(i!==null||s===!0)?e.leaveKey(c,a.key,i):c!==null&&e.exitKey(c),i},\"decode\");Ie.prototype._decodeGeneric=f(function(e,r,a){var i=this._baseState;return e===\"seq\"||e===\"set\"?null:e===\"seqof\"||e===\"setof\"?this._decodeList(r,e,i.args[0],a):/str$/.test(e)?this._decodeStr(r,e,a):e===\"objid\"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],a):e===\"objid\"?this._decodeObjid(r,null,null,a):e===\"gentime\"||e===\"utctime\"?this._decodeTime(r,e,a):e===\"null_\"?this._decodeNull(r,a):e===\"bool\"?this._decodeBool(r,a):e===\"objDesc\"?this._decodeStr(r,e,a):e===\"int\"||e===\"enum\"?this._decodeInt(r,i.args&&i.args[0],a):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,a):r.error(\"unknown tag: \"+e)},\"decodeGeneric\");Ie.prototype._getUse=f(function(e,r){var a=this._baseState;return a.useDecoder=this._use(e,r),at(a.useDecoder._baseState.parent===null),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},\"_getUse\");Ie.prototype._decodeChoice=f(function(e,r){var a=this._baseState,i=null,s=!1;return Object.keys(a.choice).some(function(c){var p=e.save(),_=a.choice[c];try{var S=_._decode(e,r);if(e.isError(S))return!1;i={type:c,value:S},s=!0}catch{return e.restore(p),!1}return!0},this),s?i:e.error(\"Choice not matched\")},\"decodeChoice\");Ie.prototype._createEncoderBuffer=f(function(e){return new T3(e,this.reporter)},\"createEncoderBuffer\");Ie.prototype._encode=f(function(e,r,a){var i=this._baseState;if(!(i.default!==null&&i.default===e)){var s=this._encodeValue(e,r,a);if(s!==void 0&&!this._skipDefault(s,r,a))return s}},\"encode\");Ie.prototype._encodeValue=f(function(e,r,a){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new P3);var _=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;var s=null,c=!1;if(i.any)_=this._createEncoderBuffer(e);else if(i.choice)_=this._encodeChoice(e,r);else if(i.contains)s=this._getUse(i.contains,a)._encode(e,r),c=!0;else if(i.children)s=i.children.map(function(q){if(q._baseState.tag===\"null_\")return q._encode(null,r,e);if(q._baseState.key===null)return r.error(\"Child should have a key\");var B=r.enterKey(q._baseState.key);if(typeof e!=\"object\")return r.error(\"Child expected, but input is not object\");var I=q._encode(e[q._baseState.key],r,e);return r.leaveKey(B),I},this).filter(function(q){return q}),s=this._createEncoderBuffer(s);else if(i.tag===\"seqof\"||i.tag===\"setof\"){if(!(i.args&&i.args.length===1))return r.error(\"Too many args for : \"+i.tag);if(!Array.isArray(e))return r.error(\"seqof/setof, but data is not Array\");var p=this.clone();p._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(q){var B=this._baseState;return this._getUse(B.args[0],e)._encode(q,r)},p))}else i.use!==null?_=this._getUse(i.use,a)._encode(e,r):(s=this._encodePrimitive(i.tag,e),c=!0);var _;if(!i.any&&i.choice===null){var S=i.implicit!==null?i.implicit:i.tag,A=i.implicit===null?\"universal\":\"context\";S===null?i.use===null&&r.error(\"Tag could be omitted only for .use()\"):i.use===null&&(_=this._encodeComposite(S,c,A,s))}return i.explicit!==null&&(_=this._encodeComposite(i.explicit,!1,\"context\",_)),_},\"encode\");Ie.prototype._encodeChoice=f(function(e,r){var a=this._baseState,i=a.choice[e.type];return i||at(!1,e.type+\" not found in \"+JSON.stringify(Object.keys(a.choice))),i._encode(e.value,r)},\"encodeChoice\");Ie.prototype._encodePrimitive=f(function(e,r){var a=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e===\"objid\"&&a.args)return this._encodeObjid(r,a.reverseArgs[0],a.args[1]);if(e===\"objid\")return this._encodeObjid(r,null,null);if(e===\"gentime\"||e===\"utctime\")return this._encodeTime(r,e);if(e===\"null_\")return this._encodeNull();if(e===\"int\"||e===\"enum\")return this._encodeInt(r,a.args&&a.reverseArgs[0]);if(e===\"bool\")return this._encodeBool(r);if(e===\"objDesc\")return this._encodeStr(r,e);throw new Error(\"Unsupported tag: \"+e)},\"encodePrimitive\");Ie.prototype._isNumstr=f(function(e){return/^[0-9 ]*$/.test(e)},\"isNumstr\");Ie.prototype._isPrintstr=f(function(e){return/^[A-Za-z0-9 '\\(\\)\\+,\\-\\.\\/:=\\?]*$/.test(e)},\"isPrintstr\")});var Ni=k(qu=>{M();var Jf=qu;Jf.Reporter=Mu().Reporter;Jf.DecoderBuffer=Z0().DecoderBuffer;Jf.EncoderBuffer=Z0().EncoderBuffer;Jf.Node=Eu()});var ku=k(ii=>{M();var Bu=X0();ii.tagClass={0:\"universal\",1:\"application\",2:\"context\",3:\"private\"};ii.tagClassByName=Bu._reverse(ii.tagClass);ii.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\"};ii.tagByName=Bu._reverse(ii.tag)});var X0=k(Ru=>{M();var Iu=Ru;Iu._reverse=f(function(e){var r={};return Object.keys(e).forEach(function(a){(a|0)==a&&(a=a|0);var i=e[a];r[i]=a}),r},\"reverse\");Iu.der=ku()});var Y0=k((ug,Tu)=>{M();var z3=Se(),G0=Pi(),Yf=G0.base,F3=G0.bignum,Cu=G0.constants.der;function Du(t){this.enc=\"der\",this.name=t.name,this.entity=t,this.tree=new ct,this.tree._init(t.body)}f(Du,\"DERDecoder\");Tu.exports=Du;Du.prototype.decode=f(function(e,r){return e instanceof Yf.DecoderBuffer||(e=new Yf.DecoderBuffer(e,r)),this.tree._decode(e,r)},\"decode\");function ct(t){Yf.Node.call(this,\"der\",t)}f(ct,\"DERNode\");z3(ct,Yf.Node);ct.prototype._peekTag=f(function(e,r,a){if(e.isEmpty())return!1;var i=e.save(),s=J0(e,'Failed to peek tag: \"'+r+'\"');return e.isError(s)?s:(e.restore(i),s.tag===r||s.tagStr===r||s.tagStr+\"of\"===r||a)},\"peekTag\");ct.prototype._decodeTag=f(function(e,r,a){var i=J0(e,'Failed to decode tag of \"'+r+'\"');if(e.isError(i))return i;var s=Pu(e,i.primitive,'Failed to get length of \"'+r+'\"');if(e.isError(s))return s;if(!a&&i.tag!==r&&i.tagStr!==r&&i.tagStr+\"of\"!==r)return e.error('Failed to match tag: \"'+r+'\"');if(i.primitive||s!==null)return e.skip(s,'Failed to match body of: \"'+r+'\"');var c=e.save(),p=this._skipUntilEnd(e,'Failed to skip indefinite length body: \"'+this.tag+'\"');return e.isError(p)?p:(s=e.offset-c.offset,e.restore(c),e.skip(s,'Failed to match body of: \"'+r+'\"'))},\"decodeTag\");ct.prototype._skipUntilEnd=f(function(e,r){for(;;){var a=J0(e,r);if(e.isError(a))return a;var i=Pu(e,a.primitive,r);if(e.isError(i))return i;var s;if(a.primitive||i!==null?s=e.skip(i):s=this._skipUntilEnd(e,r),e.isError(s))return s;if(a.tagStr===\"end\")break}},\"skipUntilEnd\");ct.prototype._decodeList=f(function(e,r,a,i){for(var s=[];!e.isEmpty();){var c=this._peekTag(e,\"end\");if(e.isError(c))return c;var p=a.decode(e,\"der\",i);if(e.isError(p)&&c)break;s.push(p)}return s},\"decodeList\");ct.prototype._decodeStr=f(function(e,r){if(r===\"bitstr\"){var a=e.readUInt8();return e.isError(a)?a:{unused:a,data:e.raw()}}else if(r===\"bmpstr\"){var i=e.raw();if(i.length%2===1)return e.error(\"Decoding of string type: bmpstr length mismatch\");for(var s=\"\",c=0;c<i.length/2;c++)s+=String.fromCharCode(i.readUInt16BE(c*2));return s}else if(r===\"numstr\"){var p=e.raw().toString(\"ascii\");return this._isNumstr(p)?p:e.error(\"Decoding of string type: numstr unsupported characters\")}else{if(r===\"octstr\")return e.raw();if(r===\"objDesc\")return e.raw();if(r===\"printstr\"){var _=e.raw().toString(\"ascii\");return this._isPrintstr(_)?_:e.error(\"Decoding of string type: printstr unsupported characters\")}else return/str$/.test(r)?e.raw().toString():e.error(\"Decoding of string type: \"+r+\" unsupported\")}},\"decodeStr\");ct.prototype._decodeObjid=f(function(e,r,a){for(var i,s=[],c=0;!e.isEmpty();){var p=e.readUInt8();c<<=7,c|=p&127,(p&128)===0&&(s.push(c),c=0)}p&128&&s.push(c);var _=s[0]/40|0,S=s[0]%40;if(a?i=s:i=[_,S].concat(s.slice(1)),r){var A=r[i.join(\" \")];A===void 0&&(A=r[i.join(\".\")]),A!==void 0&&(i=A)}return i},\"decodeObjid\");ct.prototype._decodeTime=f(function(e,r){var a=e.raw().toString();if(r===\"gentime\")var i=a.slice(0,4)|0,s=a.slice(4,6)|0,c=a.slice(6,8)|0,p=a.slice(8,10)|0,_=a.slice(10,12)|0,S=a.slice(12,14)|0;else if(r===\"utctime\"){var i=a.slice(0,2)|0,s=a.slice(2,4)|0,c=a.slice(4,6)|0,p=a.slice(6,8)|0,_=a.slice(8,10)|0,S=a.slice(10,12)|0;i<70?i=2e3+i:i=1900+i}else return e.error(\"Decoding \"+r+\" time is not supported yet\");return Date.UTC(i,s-1,c,p,_,S,0)},\"decodeTime\");ct.prototype._decodeNull=f(function(e){return null},\"decodeNull\");ct.prototype._decodeBool=f(function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0},\"decodeBool\");ct.prototype._decodeInt=f(function(e,r){var a=e.raw(),i=new F3(a);return r&&(i=r[i.toString(10)]||i),i},\"decodeInt\");ct.prototype._use=f(function(e,r){return typeof e==\"function\"&&(e=e(r)),e._getDecoder(\"der\").tree},\"use\");function J0(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var a=Cu.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){var s=r;for(r=0;(s&128)===128;){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=s&127}}else r&=31;var c=Cu.tag[r];return{cls:a,primitive:i,tag:r,tagStr:c}}f(J0,\"derDecodeTag\");function Pu(t,e,r){var a=t.readUInt8(r);if(t.isError(a))return a;if(!e&&a===128)return null;if((a&128)===0)return a;var i=a&127;if(i>4)return t.error(\"length octect is too long\");a=0;for(var s=0;s<i;s++){a<<=8;var c=t.readUInt8(r);if(t.isError(c))return c;a|=c}return a}f(Pu,\"derDecodeLen\")});var Ou=k((pg,Nu)=>{M();var H3=Se(),K3=(cr(),hr(dr)).Buffer,$0=Y0();function Q0(t){$0.call(this,t),this.enc=\"pem\"}f(Q0,\"PEMDecoder\");H3(Q0,$0);Nu.exports=Q0;Q0.prototype.decode=f(function(e,r){for(var a=e.toString().split(/[\\r\\n]+/g),i=r.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,c=-1,p=-1,_=0;_<a.length;_++){var S=a[_].match(s);if(S!==null&&S[2]===i)if(c===-1){if(S[1]!==\"BEGIN\")break;c=_}else{if(S[1]!==\"END\")break;p=_;break}}if(c===-1||p===-1)throw new Error(\"PEM section not found for: \"+i);var A=a.slice(c+1,p).join(\"\");A.replace(/[^a-z0-9\\+\\/=]+/gi,\"\");var q=new K3(A,\"base64\");return $0.prototype.decode.call(this,q,r)},\"decode\")});var zu=k(Uu=>{M();var Lu=Uu;Lu.der=Y0();Lu.pem=Ou()});var ts=k((_g,ju)=>{M();var j3=Se(),or=(cr(),hr(dr)).Buffer,Fu=Pi(),Hu=Fu.base,es=Fu.constants.der;function Ku(t){this.enc=\"der\",this.name=t.name,this.entity=t,this.tree=new Ct,this.tree._init(t.body)}f(Ku,\"DEREncoder\");ju.exports=Ku;Ku.prototype.encode=f(function(e,r){return this.tree._encode(e,r).join()},\"encode\");function Ct(t){Hu.Node.call(this,\"der\",t)}f(Ct,\"DERNode\");j3(Ct,Hu.Node);Ct.prototype._encodeComposite=f(function(e,r,a,i){var s=V3(e,r,a,this.reporter);if(i.length<128){var _=new or(2);return _[0]=s,_[1]=i.length,this._createEncoderBuffer([_,i])}for(var c=1,p=i.length;p>=256;p>>=8)c++;var _=new or(2+c);_[0]=s,_[1]=128|c;for(var p=1+c,S=i.length;S>0;p--,S>>=8)_[p]=S&255;return this._createEncoderBuffer([_,i])},\"encodeComposite\");Ct.prototype._encodeStr=f(function(e,r){if(r===\"bitstr\")return this._createEncoderBuffer([e.unused|0,e.data]);if(r===\"bmpstr\"){for(var a=new or(e.length*2),i=0;i<e.length;i++)a.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(a)}else return r===\"numstr\"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: numstr supports only digits and space\"):r===\"printstr\"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark\"):/str$/.test(r)?this._createEncoderBuffer(e):r===\"objDesc\"?this._createEncoderBuffer(e):this.reporter.error(\"Encoding of string type: \"+r+\" unsupported\")},\"encodeStr\");Ct.prototype._encodeObjid=f(function(e,r,a){if(typeof e==\"string\"){if(!r)return this.reporter.error(\"string objid given, but no values map found\");if(!r.hasOwnProperty(e))return this.reporter.error(\"objid not found in values map\");e=r[e].split(/[\\s\\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error(\"objid() should be either array or string, got: \"+JSON.stringify(e));if(!a){if(e[1]>=40)return this.reporter.error(\"Second objid identifier OOB\");e.splice(0,2,e[0]*40+e[1])}for(var s=0,i=0;i<e.length;i++){var c=e[i];for(s++;c>=128;c>>=7)s++}for(var p=new or(s),_=p.length-1,i=e.length-1;i>=0;i--){var c=e[i];for(p[_--]=c&127;(c>>=7)>0;)p[_--]=128|c&127}return this._createEncoderBuffer(p)},\"encodeObjid\");function wt(t){return t<10?\"0\"+t:t}f(wt,\"two\");Ct.prototype._encodeTime=f(function(e,r){var a,i=new Date(e);return r===\"gentime\"?a=[wt(i.getFullYear()),wt(i.getUTCMonth()+1),wt(i.getUTCDate()),wt(i.getUTCHours()),wt(i.getUTCMinutes()),wt(i.getUTCSeconds()),\"Z\"].join(\"\"):r===\"utctime\"?a=[wt(i.getFullYear()%100),wt(i.getUTCMonth()+1),wt(i.getUTCDate()),wt(i.getUTCHours()),wt(i.getUTCMinutes()),wt(i.getUTCSeconds()),\"Z\"].join(\"\"):this.reporter.error(\"Encoding \"+r+\" time is not supported yet\"),this._encodeStr(a,\"octstr\")},\"encodeTime\");Ct.prototype._encodeNull=f(function(){return this._createEncoderBuffer(\"\")},\"encodeNull\");Ct.prototype._encodeInt=f(function(e,r){if(typeof e==\"string\"){if(!r)return this.reporter.error(\"String int or enum given, but no values map\");if(!r.hasOwnProperty(e))return this.reporter.error(\"Values map doesn't contain: \"+JSON.stringify(e));e=r[e]}if(typeof e!=\"number\"&&!or.isBuffer(e)){var a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=new or(a)}if(or.isBuffer(e)){var i=e.length;e.length===0&&i++;var c=new or(i);return e.copy(c),e.length===0&&(c[0]=0),this._createEncoderBuffer(c)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,s=e;s>=256;s>>=8)i++;for(var c=new Array(i),s=c.length-1;s>=0;s--)c[s]=e&255,e>>=8;return c[0]&128&&c.unshift(0),this._createEncoderBuffer(new or(c))},\"encodeInt\");Ct.prototype._encodeBool=f(function(e){return this._createEncoderBuffer(e?255:0)},\"encodeBool\");Ct.prototype._use=f(function(e,r){return typeof e==\"function\"&&(e=e(r)),e._getEncoder(\"der\").tree},\"use\");Ct.prototype._skipDefault=f(function(e,r,a){var i=this._baseState,s;if(i.default===null)return!1;var c=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,a).join()),c.length!==i.defaultBuffer.length)return!1;for(s=0;s<c.length;s++)if(c[s]!==i.defaultBuffer[s])return!1;return!0},\"skipDefault\");function V3(t,e,r,a){var i;if(t===\"seqof\"?t=\"seq\":t===\"setof\"&&(t=\"set\"),es.tagByName.hasOwnProperty(t))i=es.tagByName[t];else if(typeof t==\"number\"&&(t|0)===t)i=t;else return a.error(\"Unknown tag: \"+t);return i>=31?a.error(\"Multi-octet tag encoding unsupported\"):(e||(i|=32),i|=es.tagClassByName[r||\"universal\"]<<6,i)}f(V3,\"encodeTag\")});var Wu=k((Mg,Vu)=>{M();var W3=Se(),rs=ts();function is(t){rs.call(this,t),this.enc=\"pem\"}f(is,\"PEMEncoder\");W3(is,rs);Vu.exports=is;is.prototype.encode=f(function(e,r){for(var a=rs.prototype.encode.call(this,e),i=a.toString(\"base64\"),s=[\"-----BEGIN \"+r.label+\"-----\"],c=0;c<i.length;c+=64)s.push(i.slice(c,c+64));return s.push(\"-----END \"+r.label+\"-----\"),s.join(`\n`)},\"encode\")});var Gu=k(Xu=>{M();var Zu=Xu;Zu.der=ts();Zu.pem=Wu()});var Pi=k(Ju=>{M();var Oi=Ju;Oi.bignum=je();Oi.define=wu().define;Oi.base=Ni();Oi.constants=X0();Oi.decoders=zu();Oi.encoders=Gu()});var el=k((Ig,Qu)=>{\"use strict\";M();var Dt=Pi(),Yu=Dt.define(\"Time\",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Z3=Dt.define(\"AttributeTypeValue\",function(){this.seq().obj(this.key(\"type\").objid(),this.key(\"value\").any())}),as=Dt.define(\"AlgorithmIdentifier\",function(){this.seq().obj(this.key(\"algorithm\").objid(),this.key(\"parameters\").optional(),this.key(\"curve\").objid().optional())}),X3=Dt.define(\"SubjectPublicKeyInfo\",function(){this.seq().obj(this.key(\"algorithm\").use(as),this.key(\"subjectPublicKey\").bitstr())}),G3=Dt.define(\"RelativeDistinguishedName\",function(){this.setof(Z3)}),J3=Dt.define(\"RDNSequence\",function(){this.seqof(G3)}),$u=Dt.define(\"Name\",function(){this.choice({rdnSequence:this.use(J3)})}),Y3=Dt.define(\"Validity\",function(){this.seq().obj(this.key(\"notBefore\").use(Yu),this.key(\"notAfter\").use(Yu))}),$3=Dt.define(\"Extension\",function(){this.seq().obj(this.key(\"extnID\").objid(),this.key(\"critical\").bool().def(!1),this.key(\"extnValue\").octstr())}),Q3=Dt.define(\"TBSCertificate\",function(){this.seq().obj(this.key(\"version\").explicit(0).int().optional(),this.key(\"serialNumber\").int(),this.key(\"signature\").use(as),this.key(\"issuer\").use($u),this.key(\"validity\").use(Y3),this.key(\"subject\").use($u),this.key(\"subjectPublicKeyInfo\").use(X3),this.key(\"issuerUniqueID\").implicit(1).bitstr().optional(),this.key(\"subjectUniqueID\").implicit(2).bitstr().optional(),this.key(\"extensions\").explicit(3).seqof($3).optional())}),e4=Dt.define(\"X509Certificate\",function(){this.seq().obj(this.key(\"tbsCertificate\").use(Q3),this.key(\"signatureAlgorithm\").use(as),this.key(\"signatureValue\").bitstr())});Qu.exports=e4});var rl=k(Tt=>{\"use strict\";M();var Pt=Pi();Tt.certificate=el();var t4=Pt.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())});Tt.RSAPrivateKey=t4;var r4=Pt.define(\"RSAPublicKey\",function(){this.seq().obj(this.key(\"modulus\").int(),this.key(\"publicExponent\").int())});Tt.RSAPublicKey=r4;var tl=Pt.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())}),i4=Pt.define(\"SubjectPublicKeyInfo\",function(){this.seq().obj(this.key(\"algorithm\").use(tl),this.key(\"subjectPublicKey\").bitstr())});Tt.PublicKey=i4;var a4=Pt.define(\"PrivateKeyInfo\",function(){this.seq().obj(this.key(\"version\").int(),this.key(\"algorithm\").use(tl),this.key(\"subjectPrivateKey\").octstr())});Tt.PrivateKey=a4;var f4=Pt.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())});Tt.EncryptedPrivateKey=f4;var n4=Pt.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())});Tt.DSAPrivateKey=n4;Tt.DSAparam=Pt.define(\"DSAparam\",function(){this.int()});var s4=Pt.define(\"ECParameters\",function(){this.choice({namedCurve:this.objid()})}),o4=Pt.define(\"ECPrivateKey\",function(){this.seq().obj(this.key(\"version\").int(),this.key(\"privateKey\").octstr(),this.key(\"parameters\").optional().explicit(0).use(s4),this.key(\"publicKey\").optional().explicit(1).bitstr())});Tt.ECPrivateKey=o4;Tt.signature=Pt.define(\"signature\",function(){this.seq().obj(this.key(\"r\").int(),this.key(\"s\").int())})});var il=k((Pg,h4)=>{h4.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\"}});var fl=k((Tg,al)=>{\"use strict\";M();var d4=/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,c4=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u4=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\\n\\r+/=]+)-----END \\1-----$/m,l4=Aa(),v4=Af(),$f=xe().Buffer;al.exports=function(t,e){var r=t.toString(),a=r.match(d4),i;if(a){var c=\"aes\"+a[1],p=$f.from(a[2],\"hex\"),_=$f.from(a[3].replace(/[\\r\\n]/g,\"\"),\"base64\"),S=l4(e,p.slice(0,8),parseInt(a[1],10)).key,A=[],q=v4.createDecipheriv(c,S,p);A.push(q.update(_)),A.push(q.final()),i=$f.concat(A)}else{var s=r.match(u4);i=$f.from(s[2].replace(/[\\r\\n]/g,\"\"),\"base64\")}var B=r.match(c4)[1];return{tag:B,data:i}}});var Pa=k((Og,ol)=>{\"use strict\";M();var ot=rl(),p4=il(),b4=fl(),m4=Af(),y4=Zn().pbkdf2Sync,fs=xe().Buffer,nl=1e7;function g4(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,a=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10);if(a!==a||a<1||a>nl)throw new RangeError(\"iteration count must be an integer between 1 and \"+nl+\", got: \"+a);var i=p4[t.algorithm.decrypt.cipher.algo.join(\".\")],s=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,p=parseInt(i.split(\"-\")[1],10)/8,_=y4(e,r,a,p,\"sha1\"),S=m4.createDecipheriv(i,_,s),A=[];return A.push(S.update(c)),A.push(S.final()),fs.concat(A)}f(g4,\"decrypt\");function sl(t){var e;typeof t==\"object\"&&!fs.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t==\"string\"&&(t=fs.from(t));var r=b4(t,e),a=r.tag,i=r.data,s,c;switch(a){case\"CERTIFICATE\":c=ot.certificate.decode(i,\"der\").tbsCertificate.subjectPublicKeyInfo;case\"PUBLIC KEY\":switch(c||(c=ot.PublicKey.decode(i,\"der\")),s=c.algorithm.algorithm.join(\".\"),s){case\"1.2.840.113549.1.1.1\":return ot.RSAPublicKey.decode(c.subjectPublicKey.data,\"der\");case\"1.2.840.10045.2.1\":return c.subjectPrivateKey=c.subjectPublicKey,{type:\"ec\",data:c};case\"1.2.840.10040.4.1\":return c.algorithm.params.pub_key=ot.DSAparam.decode(c.subjectPublicKey.data,\"der\"),{type:\"dsa\",data:c.algorithm.params};default:throw new Error(\"unknown key id \"+s)}case\"ENCRYPTED PRIVATE KEY\":i=ot.EncryptedPrivateKey.decode(i,\"der\"),i=g4(i,e);case\"PRIVATE KEY\":switch(c=ot.PrivateKey.decode(i,\"der\"),s=c.algorithm.algorithm.join(\".\"),s){case\"1.2.840.113549.1.1.1\":return ot.RSAPrivateKey.decode(c.subjectPrivateKey,\"der\");case\"1.2.840.10045.2.1\":return{curve:c.algorithm.curve,privateKey:ot.ECPrivateKey.decode(c.subjectPrivateKey,\"der\").privateKey};case\"1.2.840.10040.4.1\":return c.algorithm.params.priv_key=ot.DSAparam.decode(c.subjectPrivateKey,\"der\"),{type:\"dsa\",params:c.algorithm.params};default:throw new Error(\"unknown key id \"+s)}case\"RSA PUBLIC KEY\":return ot.RSAPublicKey.decode(i,\"der\");case\"RSA PRIVATE KEY\":return ot.RSAPrivateKey.decode(i,\"der\");case\"DSA PRIVATE KEY\":return{type:\"dsa\",params:ot.DSAPrivateKey.decode(i,\"der\")};case\"EC PRIVATE KEY\":return i=ot.ECPrivateKey.decode(i,\"der\"),{curve:i.parameters.value,privateKey:i.privateKey};default:throw new Error(\"unknown key type \"+a)}}f(sl,\"parseKeys\");sl.signature=ot.signature;ol.exports=sl});var ns=k((zg,_4)=>{_4.exports={\"1.3.132.0.10\":\"secp256k1\",\"1.3.132.0.33\":\"p224\",\"1.2.840.10045.3.1.1\":\"p192\",\"1.2.840.10045.3.1.7\":\"p256\",\"1.3.132.0.34\":\"p384\",\"1.3.132.0.35\":\"p521\"}});var cl=k((Fg,en)=>{\"use strict\";M();var it=xe().Buffer,ai=Ln(),w4=If(),x4=Zf().ec,Qf=kf(),M4=Pa(),S4=ns(),A4=1;function E4(t,e,r,a,i){var s=M4(e);if(s.curve){if(a!==\"ecdsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong private key type\");return q4(t,s)}else if(s.type===\"dsa\"){if(a!==\"dsa\")throw new Error(\"wrong private key type\");return B4(t,s,r)}if(a!==\"rsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong private key type\");if(e.padding!==void 0&&e.padding!==A4)throw new Error(\"illegal or unsupported padding mode\");t=it.concat([i,t]);for(var c=s.modulus.byteLength(),p=[0,1];t.length+p.length+1<c;)p.push(255);p.push(0);for(var _=-1;++_<t.length;)p.push(t[_]);var S=w4(p,s);return S}f(E4,\"sign\");function q4(t,e){var r=S4[e.curve.join(\".\")];if(!r)throw new Error(\"unknown curve \"+e.curve.join(\".\"));var a=new x4(r),i=a.keyFromPrivate(e.privateKey),s=i.sign(t);return it.from(s.toDER())}f(q4,\"ecSign\");function B4(t,e,r){for(var a=e.params.priv_key,i=e.params.p,s=e.params.q,c=e.params.g,p=new Qf(0),_,S=ss(t,s).mod(s),A=!1,q=hl(a,s,t,r);A===!1;)_=dl(s,q,r),p=R4(c,_,i,s),A=_.invm(s).imul(S.add(a.mul(p))).mod(s),A.cmpn(0)===0&&(A=!1,p=new Qf(0));return k4(p,A)}f(B4,\"dsaSign\");function k4(t,e){t=t.toArray(),e=e.toArray(),t[0]&128&&(t=[0].concat(t)),e[0]&128&&(e=[0].concat(e));var r=t.length+e.length+4,a=[48,r,2,t.length];return a=a.concat(t,[2,e.length],e),it.from(a)}f(k4,\"toDER\");function hl(t,e,r,a){if(t=it.from(t.toArray()),t.length<e.byteLength()){var i=it.alloc(e.byteLength()-t.length);t=it.concat([i,t])}var s=r.length,c=I4(r,e),p=it.alloc(s);p.fill(1);var _=it.alloc(s);return _=ai(a,_).update(p).update(it.from([0])).update(t).update(c).digest(),p=ai(a,_).update(p).digest(),_=ai(a,_).update(p).update(it.from([1])).update(t).update(c).digest(),p=ai(a,_).update(p).digest(),{k:_,v:p}}f(hl,\"getKey\");function ss(t,e){var r=new Qf(t),a=(t.length<<3)-e.bitLength();return a>0&&r.ishrn(a),r}f(ss,\"bits2int\");function I4(t,e){t=ss(t,e),t=t.mod(e);var r=it.from(t.toArray());if(r.length<e.byteLength()){var a=it.alloc(e.byteLength()-r.length);r=it.concat([a,r])}return r}f(I4,\"bits2octets\");function dl(t,e,r){var a,i;do{for(a=it.alloc(0);a.length*8<t.bitLength();)e.v=ai(r,e.k).update(e.v).digest(),a=it.concat([a,e.v]);i=ss(a,t),e.k=ai(r,e.k).update(e.v).update(it.from([0])).digest(),e.v=ai(r,e.k).update(e.v).digest()}while(i.cmp(t)!==-1);return i}f(dl,\"makeKey\");function R4(t,e,r,a){return t.toRed(Qf.mont(r)).redPow(e).fromRed().mod(a)}f(R4,\"makeR\");en.exports=E4;en.exports.getKey=hl;en.exports.makeKey=dl});var pl=k((jg,vl)=>{\"use strict\";M();var os=xe().Buffer,Ta=kf(),C4=Zf().ec,ll=Pa(),D4=ns();function P4(t,e,r,a,i){var s=ll(r);if(s.type===\"ec\"){if(a!==\"ecdsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong public key type\");return T4(t,e,s)}else if(s.type===\"dsa\"){if(a!==\"dsa\")throw new Error(\"wrong public key type\");return N4(t,e,s)}if(a!==\"rsa\"&&a!==\"ecdsa/rsa\")throw new Error(\"wrong public key type\");e=os.concat([i,e]);for(var c=s.modulus.byteLength(),p=[1],_=0;e.length+p.length+2<c;)p.push(255),_+=1;p.push(0);for(var S=-1;++S<e.length;)p.push(e[S]);p=os.from(p);var A=Ta.mont(s.modulus);t=new Ta(t).toRed(A),t=t.redPow(new Ta(s.publicExponent)),t=os.from(t.fromRed().toArray());var q=_<8?1:0;for(c=Math.min(t.length,p.length),t.length!==p.length&&(q=1),S=-1;++S<c;)q|=t[S]^p[S];return q===0}f(P4,\"verify\");function T4(t,e,r){var a=D4[r.data.algorithm.curve.join(\".\")];if(!a)throw new Error(\"unknown curve \"+r.data.algorithm.curve.join(\".\"));var i=new C4(a),s=r.data.subjectPrivateKey.data;return i.verify(e,t,s)}f(T4,\"ecVerify\");function N4(t,e,r){var a=r.data.p,i=r.data.q,s=r.data.g,c=r.data.pub_key,p=ll.signature.decode(t,\"der\"),_=p.s,S=p.r;ul(_,i),ul(S,i);var A=Ta.mont(a),q=_.invm(i),B=s.toRed(A).redPow(new Ta(e).mul(q).mod(i)).fromRed().mul(c.toRed(A).redPow(S.mul(q).mod(i)).fromRed()).mod(a).mod(i);return B.cmp(S)===0}f(N4,\"dsaVerify\");function ul(t,e){if(t.cmpn(0)<=0)throw new Error(\"invalid sig\");if(t.cmp(e)>=0)throw new Error(\"invalid sig\")}f(ul,\"checkValue\");vl.exports=P4});var wl=k((Zg,_l)=>{\"use strict\";M();var tn=xe().Buffer,yl=vi(),rn=In(),gl=Se(),O4=cl(),L4=pl(),fi=Un();Object.keys(fi).forEach(function(t){fi[t].id=tn.from(fi[t].id,\"hex\"),fi[t.toLowerCase()]=fi[t]});function Na(t){rn.Writable.call(this);var e=fi[t];if(!e)throw new Error(\"Unknown message digest\");this._hashType=e.hash,this._hash=yl(e.hash),this._tag=e.id,this._signType=e.sign}f(Na,\"Sign\");gl(Na,rn.Writable);Na.prototype._write=f(function(e,r,a){this._hash.update(e),a()},\"_write\");Na.prototype.update=f(function(e,r){return this._hash.update(typeof e==\"string\"?tn.from(e,r):e),this},\"update\");Na.prototype.sign=f(function(e,r){this.end();var a=this._hash.digest(),i=O4(a,e,this._hashType,this._signType,this._tag);return r?i.toString(r):i},\"signMethod\");function Oa(t){rn.Writable.call(this);var e=fi[t];if(!e)throw new Error(\"Unknown message digest\");this._hash=yl(e.hash),this._tag=e.id,this._signType=e.sign}f(Oa,\"Verify\");gl(Oa,rn.Writable);Oa.prototype._write=f(function(e,r,a){this._hash.update(e),a()},\"_write\");Oa.prototype.update=f(function(e,r){return this._hash.update(typeof e==\"string\"?tn.from(e,r):e),this},\"update\");Oa.prototype.verify=f(function(e,r,a){var i=typeof r==\"string\"?tn.from(r,a):r;this.end();var s=this._hash.digest();return L4(i,s,e,this._signType,this._tag)},\"verifyMethod\");function bl(t){return new Na(t)}f(bl,\"createSign\");function ml(t){return new Oa(t)}f(ml,\"createVerify\");_l.exports={Sign:bl,Verify:ml,createSign:bl,createVerify:ml}});var Ml=k((Jg,xl)=>{M();var U4=Zf(),z4=je();xl.exports=f(function(e){return new ni(e)},\"createECDH\");var ut={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}};ut.p224=ut.secp224r1;ut.p256=ut.secp256r1=ut.prime256v1;ut.p192=ut.secp192r1=ut.prime192v1;ut.p384=ut.secp384r1;ut.p521=ut.secp521r1;function ni(t){this.curveType=ut[t],this.curveType||(this.curveType={name:t}),this.curve=new U4.ec(this.curveType.name),this.keys=void 0}f(ni,\"ECDH\");ni.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)};ni.prototype.computeSecret=function(t,e,r){e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e));var a=this.curve.keyFromPublic(t).getPublic(),i=a.mul(this.keys.getPrivate()).getX();return hs(i,r,this.curveType.byteLength)};ni.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic(e===\"compressed\",!0);return e===\"hybrid\"&&(r[r.length-1]%2?r[0]=7:r[0]=6),hs(r,t)};ni.prototype.getPrivateKey=function(t){return hs(this.keys.getPrivate(),t)};ni.prototype.setPublicKey=function(t,e){return e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.keys._importPublic(t),this};ni.prototype.setPrivateKey=function(t,e){e=e||\"utf8\",Buffer.isBuffer(t)||(t=new Buffer(t,e));var r=new z4(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this};function hs(t,e,r){Array.isArray(t)||(t=t.toArray());var a=new Buffer(t);if(r&&a.length<r){var i=new Buffer(r-a.length);i.fill(0),a=Buffer.concat([i,a])}return e?a.toString(e):a}f(hs,\"formatReturnValue\")});var cs=k((Qg,Sl)=>{M();var F4=vi(),ds=xe().Buffer;Sl.exports=function(t,e){for(var r=ds.alloc(0),a=0,i;r.length<e;)i=H4(a++),r=ds.concat([r,F4(\"sha1\").update(t).update(i).digest()]);return r.slice(0,e)};function H4(t){var e=ds.allocUnsafe(4);return e.writeUInt32BE(t,0),e}f(H4,\"i2ops\")});var us=k((r_,Al)=>{M();Al.exports=f(function(e,r){for(var a=e.length,i=-1;++i<a;)e[i]^=r[i];return e},\"xor\")});var ls=k((f_,ql)=>{M();var El=je(),K4=xe().Buffer;function j4(t,e){return K4.from(t.toRed(El.mont(e.modulus)).redPow(new El(e.publicExponent)).fromRed().toArray())}f(j4,\"withPublic\");ql.exports=j4});var Rl=k((o_,Il)=>{M();var V4=Pa(),vs=Or(),W4=vi(),Bl=cs(),kl=us(),ps=je(),Z4=ls(),X4=If(),Nt=xe().Buffer;Il.exports=f(function(e,r,a){var i;e.padding?i=e.padding:a?i=1:i=4;var s=V4(e),c;if(i===4)c=G4(s,r);else if(i===1)c=J4(s,r,a);else if(i===3){if(c=new ps(r),c.cmp(s.modulus)>=0)throw new Error(\"data too long for modulus\")}else throw new Error(\"unknown padding\");return a?X4(c,s):Z4(c,s)},\"publicEncrypt\");function G4(t,e){var r=t.modulus.byteLength(),a=e.length,i=W4(\"sha1\").update(Nt.alloc(0)).digest(),s=i.length,c=2*s;if(a>r-c-2)throw new Error(\"message too long\");var p=Nt.alloc(r-a-c-2),_=r-s-1,S=vs(s),A=kl(Nt.concat([i,p,Nt.alloc(1,1),e],_),Bl(S,_)),q=kl(S,Bl(A,s));return new ps(Nt.concat([Nt.alloc(1),q,A],r))}f(G4,\"oaep\");function J4(t,e,r){var a=e.length,i=t.modulus.byteLength();if(a>i-11)throw new Error(\"message too long\");var s;return r?s=Nt.alloc(i-a-3,255):s=Y4(i-a-3),new ps(Nt.concat([Nt.from([0,r?1:2]),s,Nt.alloc(1),e],i))}f(J4,\"pkcs1\");function Y4(t){for(var e=Nt.allocUnsafe(t),r=0,a=vs(t*2),i=0,s;r<t;)i===a.length&&(a=vs(t*2),i=0),s=a[i++],s&&(e[r++]=s);return e}f(Y4,\"nonZero\")});var Nl=k((c_,Tl)=>{M();var $4=Pa(),Cl=cs(),Dl=us(),Pl=je(),Q4=If(),e8=vi(),t8=ls(),La=xe().Buffer;Tl.exports=f(function(e,r,a){var i;e.padding?i=e.padding:a?i=1:i=4;var s=$4(e),c=s.modulus.byteLength();if(r.length>c||new Pl(r).cmp(s.modulus)>=0)throw new Error(\"decryption error\");var p;a?p=t8(new Pl(r),s):p=Q4(r,s);var _=La.alloc(c-p.length);if(p=La.concat([_,p],c),i===4)return r8(s,p);if(i===1)return i8(s,p,a);if(i===3)return p;throw new Error(\"unknown padding\")},\"privateDecrypt\");function r8(t,e){var r=t.modulus.byteLength(),a=e8(\"sha1\").update(La.alloc(0)).digest(),i=a.length;if(e[0]!==0)throw new Error(\"decryption error\");var s=e.slice(1,i+1),c=e.slice(i+1),p=Dl(s,Cl(c,i)),_=Dl(c,Cl(p,r-i-1));if(a8(a,_.slice(0,i)))throw new Error(\"decryption error\");for(var S=i;_[S]===0;)S++;if(_[S++]!==1)throw new Error(\"decryption error\");return _.slice(S)}f(r8,\"oaep\");function i8(t,e,r){for(var a=e.slice(0,2),i=2,s=0;e[i++]!==0;)if(i>=e.length){s++;break}var c=e.slice(2,i-1);if((a.toString(\"hex\")!==\"0002\"&&!r||a.toString(\"hex\")!==\"0001\"&&r)&&s++,c.length<8&&s++,s)throw new Error(\"decryption error\");return e.slice(i)}f(i8,\"pkcs1\");function a8(t,e){t=La.from(t),e=La.from(e);var r=0,a=t.length;t.length!==e.length&&(r++,a=Math.min(t.length,e.length));for(var i=-1;++i<a;)r+=t[i]^e[i];return r}f(a8,\"compare\")});var Ol=k(si=>{M();si.publicEncrypt=Rl();si.privateDecrypt=Nl();si.privateEncrypt=f(function(e,r){return si.publicEncrypt(e,r,!0)},\"privateEncrypt\");si.publicDecrypt=f(function(e,r){return si.privateDecrypt(e,r,!0)},\"publicDecrypt\")});var Zl=k(Ua=>{\"use strict\";M();function Ll(){throw new Error(`secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11`)}f(Ll,\"oldBrowser\");var zl=xe(),Ul=Or(),Fl=zl.Buffer,Hl=zl.kMaxLength,bs=globalThis.crypto||globalThis.msCrypto,Kl=Math.pow(2,32)-1;function jl(t,e){if(typeof t!=\"number\"||t!==t)throw new TypeError(\"offset must be a number\");if(t>Kl||t<0)throw new TypeError(\"offset must be a uint32\");if(t>Hl||t>e)throw new RangeError(\"offset out of range\")}f(jl,\"assertOffset\");function Vl(t,e,r){if(typeof t!=\"number\"||t!==t)throw new TypeError(\"size must be a number\");if(t>Kl||t<0)throw new TypeError(\"size must be a uint32\");if(t+e>r||t>Hl)throw new RangeError(\"buffer too small\")}f(Vl,\"assertSize\");bs&&bs.getRandomValues||!process.browser?(Ua.randomFill=f8,Ua.randomFillSync=n8):(Ua.randomFill=Ll,Ua.randomFillSync=Ll);function f8(t,e,r,a){if(!Fl.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');if(typeof e==\"function\")a=e,e=0,r=t.length;else if(typeof r==\"function\")a=r,r=t.length-e;else if(typeof a!=\"function\")throw new TypeError('\"cb\" argument must be a function');return jl(e,t.length),Vl(r,e,t.length),Wl(t,e,r,a)}f(f8,\"randomFill\");function Wl(t,e,r,a){if(process.browser){var i=t.buffer,s=new Uint8Array(i,e,r);if(bs.getRandomValues(s),a){process.nextTick(function(){a(null,t)});return}return t}if(a){Ul(r,function(p,_){if(p)return a(p);_.copy(t,e),a(null,t)});return}var c=Ul(r);return c.copy(t,e),t}f(Wl,\"actualFill\");function n8(t,e,r){if(typeof e>\"u\"&&(e=0),!Fl.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');return jl(e,t.length),r===void 0&&(r=t.length-e),Vl(r,e,t.length),Wl(t,e,r)}f(n8,\"randomFillSync\")});var b0=k(Me=>{\"use strict\";M();Me.randomBytes=Me.rng=Me.pseudoRandomBytes=Me.prng=Or();Me.createHash=Me.Hash=vi();Me.createHmac=Me.Hmac=Ln();var s8=sh(),o8=Object.keys(s8),h8=[\"sha1\",\"sha224\",\"sha256\",\"sha384\",\"sha512\",\"md5\",\"rmd160\"].concat(o8);Me.getHashes=function(){return h8};var Xl=Zn();Me.pbkdf2=Xl.pbkdf2;Me.pbkdf2Sync=Xl.pbkdf2Sync;var Zt=Rd();Me.Cipher=Zt.Cipher;Me.createCipher=Zt.createCipher;Me.Cipheriv=Zt.Cipheriv;Me.createCipheriv=Zt.createCipheriv;Me.Decipher=Zt.Decipher;Me.createDecipher=Zt.createDecipher;Me.Decipheriv=Zt.Decipheriv;Me.createDecipheriv=Zt.createDecipheriv;Me.getCiphers=Zt.getCiphers;Me.listCiphers=Zt.listCiphers;var za=jd();Me.DiffieHellmanGroup=za.DiffieHellmanGroup;Me.createDiffieHellmanGroup=za.createDiffieHellmanGroup;Me.getDiffieHellman=za.getDiffieHellman;Me.createDiffieHellman=za.createDiffieHellman;Me.DiffieHellman=za.DiffieHellman;var an=wl();Me.createSign=an.createSign;Me.Sign=an.Sign;Me.createVerify=an.createVerify;Me.Verify=an.Verify;Me.createECDH=Ml();var fn=Ol();Me.publicEncrypt=fn.publicEncrypt;Me.privateEncrypt=fn.privateEncrypt;Me.publicDecrypt=fn.publicDecrypt;Me.privateDecrypt=fn.privateDecrypt;var Gl=Zl();Me.randomFill=Gl.randomFill;Me.randomFillSync=Gl.randomFillSync;Me.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify`)};Me.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}});M();var ms=Jl(b0());Object.assign(ms.default,{randomUUID:globalThis.crypto.randomUUID,getRandomValues:globalThis.crypto.getRandomValues});var x_=ms.default;export{x_ as default};\n",
|
|
5530
5529
|
"engine/globals.mjs": "/* oxlint-disable no-underscore-dangle -- Guest bridge names match the VM host bindings. */\n/* global groups */\nimport { loadBuiltin as load } from './web.mjs'\nconst defineProperty = Object.defineProperty\nconst target = globalThis\nconst groups = {\"buffer\":[\"Buffer\"],\"process\":[\"process\"],\"url\":[\"URL\",\"URLSearchParams\"],\"streams\":[\"ByteLengthQueuingStrategy\",\"CountQueuingStrategy\",\"ReadableByteStreamController\",\"ReadableStream\",\"ReadableStreamBYOBReader\",\"ReadableStreamBYOBRequest\",\"ReadableStreamDefaultController\",\"ReadableStreamDefaultReader\",\"TransformStream\",\"TransformStreamDefaultController\",\"WritableStream\",\"WritableStreamDefaultController\",\"WritableStreamDefaultWriter\"],\"abort\":[\"AbortController\",\"AbortSignal\"]};\nfor (const [group, names] of Object.entries(groups)) {\n let exports\n for (const name of names) {\n const set = (value) => defineProperty(target, name, { value, writable: true, enumerable: true, configurable: true })\n defineProperty(target, name, {\n configurable: true,\n enumerable: true,\n get() {\n exports ??= load(group)\n const value = exports[name]\n set(value)\n return value\n },\n set,\n })\n }\n}\n",
|
|
5531
|
-
"engine/globals/abort.mjs": "
|
|
5530
|
+
"engine/globals/abort.mjs": "var T=Object.defineProperty;var l=(r,e)=>T(r,\"name\",{value:e,configurable:!0});var c=new WeakMap,v=new WeakMap;function u(r,e){let t=r.get(e);if(!t)throw new TypeError(\"Illegal invocation\");return t}l(u,\"stateOf\");function b(){let r=Object.create(h.prototype);return c.set(r,{reason:void 0,listeners:[],handler:null,sources:void 0,dependents:new Set}),r}l(b,\"createSignal\");function y(r,e){e.removed=!0,r.listeners.splice(r.listeners.indexOf(e),1)}l(y,\"removeListener\");function w(r,e){let t=u(c,r),n=e?.type;if(e===null||typeof e!=\"object\"||typeof n!=\"string\")throw new TypeError(\"Expected an event with a string type\");let s=!!e.cancelable,o=!0,a=!1,i=!1,p=!!e.defaultPrevented,d={type:n,get target(){return r},get currentTarget(){return o?r:null},get eventPhase(){return o?2:0},get defaultPrevented(){return p},bubbles:!!e.bubbles,cancelable:s,isTrusted:!1,timeStamp:e.timeStamp??Date.now(),preventDefault(){s&&!i&&(p=!0)},stopPropagation(){},stopImmediatePropagation(){a=!0},composedPath(){return o?[r]:[]}};Object.setPrototypeOf(d,e);try{for(let f of t.listeners.slice())if(!(f.removed||f.type!==n)){f.once&&y(t,f),i=f.passive;try{typeof f.callback==\"function\"?f.callback.call(r,d):typeof f.callback.handleEvent==\"function\"&&f.callback.handleEvent(d)}catch(E){console.error(E)}if(a)break}}finally{o=!1,i=!1}return!p}l(w,\"dispatch\");function m(r,e){let t=c.get(r);if(t.reason!==void 0)return;e===void 0&&(e=Object.assign(new Error(\"The operation was aborted.\"),{name:\"AbortError\"}));let n=[r,...t.dependents];for(let s of n){let o=c.get(s);if(o.reason=e,o.dependents.clear(),o.sources){for(let a of o.sources)c.get(a).dependents.delete(s);o.sources.clear()}}for(let s of n)w(s,{type:\"abort\"})}l(m,\"abort\");var h=class{static{l(this,\"AbortSignal\")}constructor(){throw new TypeError(\"AbortSignal cannot be constructed directly\")}get aborted(){return u(c,this).reason!==void 0}get reason(){return u(c,this).reason}throwIfAborted(){let e=u(c,this).reason;if(e!==void 0)throw e}get onabort(){return u(c,this).handler?.callback??null}set onabort(e){let t=u(c,this);typeof e!=\"function\"&&(e=null),t.handler?e?t.handler.callback=e:(y(t,t.handler),t.handler=null):e&&(t.handler={type:\"abort\",callback:e,capture:!1,once:!1,passive:!1,removed:!1,attribute:!0},t.listeners.push(t.handler))}addEventListener(e,t,n){let s=u(c,this);if(e=`${e}`,t==null)return;if(typeof t!=\"function\"&&typeof t!=\"object\")throw new TypeError(\"Expected a function or listener object\");let o=typeof n==\"boolean\"?n:!!n?.capture;s.listeners.some(a=>a.type===e&&a.callback===t&&a.capture===o&&!a.attribute)||s.listeners.push({type:e,callback:t,capture:o,once:!!n?.once,passive:!!n?.passive,removed:!1,attribute:!1})}removeEventListener(e,t,n){let s=u(c,this);e=`${e}`;let o=typeof n==\"boolean\"?n:!!n?.capture,a=s.listeners.find(i=>i.type===e&&i.callback===t&&i.capture===o&&!i.attribute);a&&y(s,a)}dispatchEvent(e){return w(this,e)}static abort(e){let t=b();return m(t,e),t}static timeout(e){if(!Number.isSafeInteger(e)||e<0||e>2147483647)throw new RangeError(\"Invalid timeout.\");let t=b();return setTimeout(()=>m(t,Object.assign(new Error(\"The operation timed out.\"),{name:\"TimeoutError\"})),e),t}static any(e){let t=Array.from(e),n=t.map(i=>u(c,i)),s=b(),o=c.get(s),a=n.find(i=>i.reason!==void 0);if(a)return o.reason=a.reason,s;o.sources=new Set;for(let[i,p]of n.entries())for(let d of p.sources??[t[i]])o.sources.add(d),c.get(d).dependents.add(s);return s}},g=class{static{l(this,\"AbortController\")}constructor(){v.set(this,b())}get signal(){return u(v,this)}abort(e){m(u(v,this),e)}};for(let[r,e]of Object.entries({AbortController:g,AbortSignal:h}))Object.defineProperty(e.prototype,Symbol.toStringTag,{value:r,configurable:!0});var O=g;export{g as AbortController,h as AbortSignal,O as default};\n",
|
|
5532
5531
|
"engine/globals/buffer.mjs": "import{g as Buffer,j as r,o as f}from\"../chunks/chunk-IQ3JZKJB.mjs\";f();r();export{Buffer};\n",
|
|
5533
5532
|
"engine/globals/process.mjs": "import{m as process,n as o,o as e}from\"../chunks/chunk-IQ3JZKJB.mjs\";e();o();export{process};\n",
|
|
5534
5533
|
"engine/globals/streams.mjs": "import{a as r,b as e,c as f,d as m,e as p,f as t,g as x,h as a,i as b,j as c,k as d,l as g,m as h}from\"../chunks/chunk-PHIOMQ3T.mjs\";import{o}from\"../chunks/chunk-IQ3JZKJB.mjs\";o();export{c as ByteLengthQueuingStrategy,d as CountQueuingStrategy,f as ReadableByteStreamController,b as ReadableStream,m as ReadableStreamBYOBReader,e as ReadableStreamBYOBRequest,a as ReadableStreamDefaultController,r as ReadableStreamDefaultReader,g as TransformStream,h as TransformStreamDefaultController,p as WritableStream,x as WritableStreamDefaultController,t as WritableStreamDefaultWriter};\n",
|