tabby/clients/tabby-agent/dist/index.global.js

107 lines
520 KiB
JavaScript

var Tabby=(()=>{var C_=Object.create;var So=Object.defineProperty;var N_=Object.getOwnPropertyDescriptor;var L_=Object.getOwnPropertyNames;var k_=Object.getPrototypeOf,F_=Object.prototype.hasOwnProperty;var P_=(e,t,r)=>t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ao=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Xn=(e,t)=>()=>(e&&(t=e(e=0)),t);var He=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bh=(e,t)=>{for(var r in t)So(e,r,{get:t[r],enumerable:!0})},Ch=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of L_(t))!F_.call(e,o)&&o!==r&&So(e,o,{get:()=>t[o],enumerable:!(n=N_(t,o))||n.enumerable});return e};var Jn=(e,t,r)=>(r=e!=null?C_(k_(e)):{},Ch(t||!e||!e.__esModule?So(r,"default",{value:e,enumerable:!0}):r,e)),U_=e=>Ch(So({},"__esModule",{value:!0}),e);var at=(e,t,r)=>(P_(e,typeof t!="symbol"?t+"":t,r),r),ku=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),it=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ge=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ia=(e,t,r,n)=>({set _(o){Ge(e,t,o,r)},get _(){return J(e,t,n)}}),tt=(e,t,r)=>(ku(e,t,"access private method"),r);var se,$=Xn(()=>{se=globalThis});var z=Xn(()=>{});var q=Xn(()=>{});var ce={};Bh(ce,{_debugEnd:()=>wp,_debugProcess:()=>vp,_events:()=>kp,_eventsCount:()=>Fp,_exiting:()=>Qh,_fatalExceptions:()=>dp,_getActiveHandles:()=>np,_getActiveRequests:()=>rp,_kill:()=>op,_linkedBinding:()=>Xh,_maxListeners:()=>Lp,_preload_modules:()=>Cp,_rawDebug:()=>Yh,_startProfilerIdleNotifier:()=>bp,_stopProfilerIdleNotifier:()=>_p,_tickCallback:()=>mp,abort:()=>Rp,addListener:()=>Pp,allowedNodeEnvironmentFlags:()=>cp,arch:()=>Ph,argv:()=>Mh,argv0:()=>Bp,assert:()=>hp,binding:()=>Wh,chdir:()=>Vh,config:()=>ep,cpuUsage:()=>Ca,cwd:()=>Zh,debugPort:()=>xp,default:()=>Hp,dlopen:()=>tp,domain:()=>Jh,emit:()=>$p,emitWarning:()=>qh,env:()=>Dh,execArgv:()=>jh,execPath:()=>Ip,exit:()=>fp,features:()=>pp,hasUncaughtExceptionCaptureCallback:()=>gp,hrtime:()=>Ba,kill:()=>up,listeners:()=>Wp,memoryUsage:()=>sp,moduleLoadList:()=>Kh,nextTick:()=>Lh,off:()=>Dp,on:()=>yn,once:()=>Up,openStdin:()=>lp,pid:()=>Tp,platform:()=>Uh,ppid:()=>Op,prependListener:()=>zp,prependOnceListener:()=>qp,reallyExit:()=>ip,release:()=>Gh,removeAllListeners:()=>jp,removeListener:()=>Mp,resourceUsage:()=>ap,setSourceMapsEnabled:()=>Np,setUncaughtExceptionCaptureCallback:()=>yp,stderr:()=>Sp,stdin:()=>Ap,stdout:()=>Ep,title:()=>Fh,umask:()=>Hh,uptime:()=>Ro,version:()=>$h,versions:()=>zh});function Uu(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function D_(){!Ni||!Qn||(Ni=!1,Qn.length?dn=Qn.concat(dn):xa=-1,dn.length&&Nh())}function Nh(){if(!Ni){var e=setTimeout(D_,0);Ni=!0;for(var t=dn.length;t;){for(Qn=dn,dn=[];++xa<t;)Qn&&Qn[xa].run();xa=-1,t=dn.length}Qn=null,Ni=!1,clearTimeout(e)}}function Lh(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(new kh(e,t)),dn.length===1&&!Ni&&setTimeout(Nh,0)}function kh(e,t){this.fun=e,this.array=t}function er(){}function Xh(e){Uu("_linkedBinding")}function tp(e){Uu("dlopen")}function rp(){return[]}function np(){return[]}function hp(e,t){if(!e)throw new Error(t||"assertion error")}function gp(){return!1}function Ro(){return Ln.now()/1e3}function Ba(e){var t=Math.floor((Date.now()-Ln.now())*.001),r=Ln.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);return e&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=Pu)),[n,o]}function yn(){return Hp}function Wp(e){return[]}var dn,Ni,Qn,xa,Fh,Ph,Uh,Dh,Mh,jh,$h,zh,qh,Wh,Hh,Zh,Vh,Gh,Yh,Kh,Jh,Qh,ep,ip,op,Ca,ap,sp,up,fp,lp,cp,pp,dp,yp,mp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Np,Ln,Fu,Pu,Lp,kp,Fp,Pp,Up,Dp,Mp,jp,$p,zp,qp,Hp,Na=Xn(()=>{$();z();q();H();W();dn=[],Ni=!1,xa=-1;kh.prototype.run=function(){this.fun.apply(null,this.array)};Fh="browser",Ph="x64",Uh="browser",Dh={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Mh=["/usr/bin/node"],jh=[],$h="v16.8.0",zh={},qh=function(e,t){console.warn((t?t+": ":"")+e)},Wh=function(e){Uu("binding")},Hh=function(e){return 0},Zh=function(){return"/"},Vh=function(e){},Gh={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Yh=er,Kh=[];Jh={},Qh=!1,ep={};ip=er,op=er,Ca=function(){return{}},ap=Ca,sp=Ca,up=er,fp=er,lp=er,cp={};pp={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},dp=er,yp=er;mp=er,vp=er,wp=er,bp=er,_p=er,Ep=void 0,Sp=void 0,Ap=void 0,Rp=er,Tp=2,Op=1,Ip="/bin/usr/node",xp=9229,Bp="node",Cp=[],Np=er,Ln={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Ln.now===void 0&&(Fu=Date.now(),Ln.timing&&Ln.timing.navigationStart&&(Fu=Ln.timing.navigationStart),Ln.now=()=>Date.now()-Fu);Pu=1e9;Ba.bigint=function(e){var t=Ba(e);return typeof BigInt>"u"?t[0]*Pu+t[1]:BigInt(t[0]*Pu)+BigInt(t[1])};Lp=10,kp={},Fp=0;Pp=yn,Up=yn,Dp=yn,Mp=yn,jp=yn,$p=er,zp=yn,qp=yn;Hp={version:$h,versions:zh,arch:Ph,platform:Uh,release:Gh,_rawDebug:Yh,moduleLoadList:Kh,binding:Wh,_linkedBinding:Xh,_events:kp,_eventsCount:Fp,_maxListeners:Lp,on:yn,addListener:Pp,once:Up,off:Dp,removeListener:Mp,removeAllListeners:jp,emit:$p,prependListener:zp,prependOnceListener:qp,listeners:Wp,domain:Jh,_exiting:Qh,config:ep,dlopen:tp,uptime:Ro,_getActiveRequests:rp,_getActiveHandles:np,reallyExit:ip,_kill:op,cpuUsage:Ca,resourceUsage:ap,memoryUsage:sp,kill:up,exit:fp,openStdin:lp,allowedNodeEnvironmentFlags:cp,assert:hp,features:pp,_fatalExceptions:dp,setUncaughtExceptionCaptureCallback:yp,hasUncaughtExceptionCaptureCallback:gp,emitWarning:qh,nextTick:Lh,_tickCallback:mp,_debugProcess:vp,_debugEnd:wp,_startProfilerIdleNotifier:bp,_stopProfilerIdleNotifier:_p,stdout:Ep,stdin:Ap,stderr:Sp,abort:Rp,umask:Hh,chdir:Vh,cwd:Zh,env:Dh,title:Fh,argv:Mh,execArgv:jh,pid:Tp,ppid:Op,execPath:Ip,debugPort:xp,hrtime:Ba,argv0:Bp,_preload_modules:Cp,setSourceMapsEnabled:Np}});var W=Xn(()=>{Na()});function M_(){if(Zp)return To;Zp=!0,To.byteLength=f,To.toByteArray=c,To.fromByteArray=v;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(_){var h=_.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=_.indexOf("=");w===-1&&(w=h);var S=w===h?0:4-w%4;return[w,S]}function f(_){var h=i(_),w=h[0],S=h[1];return(w+S)*3/4-S}function l(_,h,w){return(h+w)*3/4-w}function c(_){var h,w=i(_),S=w[0],T=w[1],C=new r(l(_,S,T)),M=0,D=T>0?S-4:S,V;for(V=0;V<D;V+=4)h=t[_.charCodeAt(V)]<<18|t[_.charCodeAt(V+1)]<<12|t[_.charCodeAt(V+2)]<<6|t[_.charCodeAt(V+3)],C[M++]=h>>16&255,C[M++]=h>>8&255,C[M++]=h&255;return T===2&&(h=t[_.charCodeAt(V)]<<2|t[_.charCodeAt(V+1)]>>4,C[M++]=h&255),T===1&&(h=t[_.charCodeAt(V)]<<10|t[_.charCodeAt(V+1)]<<4|t[_.charCodeAt(V+2)]>>2,C[M++]=h>>8&255,C[M++]=h&255),C}function d(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,h,w){for(var S,T=[],C=h;C<w;C+=3)S=(_[C]<<16&16711680)+(_[C+1]<<8&65280)+(_[C+2]&255),T.push(d(S));return T.join("")}function v(_){for(var h,w=_.length,S=w%3,T=[],C=16383,M=0,D=w-S;M<D;M+=C)T.push(y(_,M,M+C>D?D:M+C));return S===1?(h=_[w-1],T.push(e[h>>2]+e[h<<4&63]+"==")):S===2&&(h=(_[w-2]<<8)+_[w-1],T.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),T.join("")}return To}function j_(){if(Vp)return La;Vp=!0;return La.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)},La.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128},La}function $_(){if(Gp)return ei;Gp=!0;let e=M_(),t=j_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ei.Buffer=i,ei.SlowBuffer=T,ei.INSPECT_MAX_BYTES=50;let n=2147483647;ei.kMaxLength=n,i.TYPED_ARRAY_SUPPORT=o(),!i.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 o(){try{let p=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(p,s),p.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(p){if(p>n)throw new RangeError('The value "'+p+'" is invalid for option "size"');let s=new Uint8Array(p);return Object.setPrototypeOf(s,i.prototype),s}function i(p,s,u){if(typeof p=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(p)}return f(p,s,u)}i.poolSize=8192;function f(p,s,u){if(typeof p=="string")return y(p,s);if(ArrayBuffer.isView(p))return _(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(et(p,ArrayBuffer)||p&&et(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(et(p,SharedArrayBuffer)||p&&et(p.buffer,SharedArrayBuffer)))return h(p,s,u);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return i.from(b,s,u);let L=w(p);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return i.from(p[Symbol.toPrimitive]("string"),s,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}i.from=function(p,s,u){return f(p,s,u)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function l(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function c(p,s,u){return l(p),p<=0?a(p):s!==void 0?typeof u=="string"?a(p).fill(s,u):a(p).fill(s):a(p)}i.alloc=function(p,s,u){return c(p,s,u)};function d(p){return l(p),a(p<0?0:S(p)|0)}i.allocUnsafe=function(p){return d(p)},i.allocUnsafeSlow=function(p){return d(p)};function y(p,s){if((typeof s!="string"||s==="")&&(s="utf8"),!i.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let u=C(p,s)|0,b=a(u),L=b.write(p,s);return L!==u&&(b=b.slice(0,L)),b}function v(p){let s=p.length<0?0:S(p.length)|0,u=a(s);for(let b=0;b<s;b+=1)u[b]=p[b]&255;return u}function _(p){if(et(p,Uint8Array)){let s=new Uint8Array(p);return h(s.buffer,s.byteOffset,s.byteLength)}return v(p)}function h(p,s,u){if(s<0||p.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<s+(u||0))throw new RangeError('"length" is outside of buffer bounds');let b;return s===void 0&&u===void 0?b=new Uint8Array(p):u===void 0?b=new Uint8Array(p,s):b=new Uint8Array(p,s,u),Object.setPrototypeOf(b,i.prototype),b}function w(p){if(i.isBuffer(p)){let s=S(p.length)|0,u=a(s);return u.length===0||p.copy(u,0,0,s),u}if(p.length!==void 0)return typeof p.length!="number"||bt(p.length)?a(0):v(p);if(p.type==="Buffer"&&Array.isArray(p.data))return v(p.data)}function S(p){if(p>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return p|0}function T(p){return+p!=p&&(p=0),i.alloc(+p)}i.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==i.prototype},i.compare=function(s,u){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),et(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(s)||!i.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===u)return 0;let b=s.length,L=u.length;for(let m=0,j=Math.min(b,L);m<j;++m)if(s[m]!==u[m]){b=s[m],L=u[m];break}return b<L?-1:L<b?1:0},i.isEncoding=function(s){switch(String(s).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}},i.concat=function(s,u){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return i.alloc(0);let b;if(u===void 0)for(u=0,b=0;b<s.length;++b)u+=s[b].length;let L=i.allocUnsafe(u),m=0;for(b=0;b<s.length;++b){let j=s[b];if(et(j,Uint8Array))m+j.length>L.length?(i.isBuffer(j)||(j=i.from(j)),j.copy(L,m)):Uint8Array.prototype.set.call(L,j,m);else if(i.isBuffer(j))j.copy(L,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=j.length}return L};function C(p,s){if(i.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||et(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let u=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;let L=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return De(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ot(p).length;default:if(L)return b?-1:De(p).length;s=(""+s).toLowerCase(),L=!0}}i.byteLength=C;function M(p,s,u){let b=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,s>>>=0,u<=s))return"";for(p||(p="utf8");;)switch(p){case"hex":return te(this,s,u);case"utf8":case"utf-8":return re(this,s,u);case"ascii":return Ne(this,s,u);case"latin1":case"binary":return ne(this,s,u);case"base64":return K(this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,s,u);default:if(b)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),b=!0}}i.prototype._isBuffer=!0;function D(p,s,u){let b=p[s];p[s]=p[u],p[u]=b}i.prototype.swap16=function(){let s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<s;u+=2)D(this,u,u+1);return this},i.prototype.swap32=function(){let s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<s;u+=4)D(this,u,u+3),D(this,u+1,u+2);return this},i.prototype.swap64=function(){let s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<s;u+=8)D(this,u,u+7),D(this,u+1,u+6),D(this,u+2,u+5),D(this,u+3,u+4);return this},i.prototype.toString=function(){let s=this.length;return s===0?"":arguments.length===0?re(this,0,s):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(s){if(!i.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:i.compare(this,s)===0},i.prototype.inspect=function(){let s="",u=ei.INSPECT_MAX_BYTES;return s=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(s+=" ... "),"<Buffer "+s+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(s,u,b,L,m){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(u===void 0&&(u=0),b===void 0&&(b=s?s.length:0),L===void 0&&(L=0),m===void 0&&(m=this.length),u<0||b>s.length||L<0||m>this.length)throw new RangeError("out of range index");if(L>=m&&u>=b)return 0;if(L>=m)return-1;if(u>=b)return 1;if(u>>>=0,b>>>=0,L>>>=0,m>>>=0,this===s)return 0;let j=m-L,le=b-u,Be=Math.min(j,le),ee=this.slice(L,m),ue=s.slice(u,b);for(let I=0;I<Be;++I)if(ee[I]!==ue[I]){j=ee[I],le=ue[I];break}return j<le?-1:le<j?1:0};function V(p,s,u,b,L){if(p.length===0)return-1;if(typeof u=="string"?(b=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,bt(u)&&(u=L?0:p.length-1),u<0&&(u=p.length+u),u>=p.length){if(L)return-1;u=p.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof s=="string"&&(s=i.from(s,b)),i.isBuffer(s))return s.length===0?-1:F(p,s,u,b,L);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(p,s,u):Uint8Array.prototype.lastIndexOf.call(p,s,u):F(p,[s],u,b,L);throw new TypeError("val must be string, number or Buffer")}function F(p,s,u,b,L){let m=1,j=p.length,le=s.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(p.length<2||s.length<2)return-1;m=2,j/=2,le/=2,u/=2}function Be(ue,I){return m===1?ue[I]:ue.readUInt16BE(I*m)}let ee;if(L){let ue=-1;for(ee=u;ee<j;ee++)if(Be(p,ee)===Be(s,ue===-1?0:ee-ue)){if(ue===-1&&(ue=ee),ee-ue+1===le)return ue*m}else ue!==-1&&(ee-=ee-ue),ue=-1}else for(u+le>j&&(u=j-le),ee=u;ee>=0;ee--){let ue=!0;for(let I=0;I<le;I++)if(Be(p,ee+I)!==Be(s,I)){ue=!1;break}if(ue)return ee}return-1}i.prototype.includes=function(s,u,b){return this.indexOf(s,u,b)!==-1},i.prototype.indexOf=function(s,u,b){return V(this,s,u,b,!0)},i.prototype.lastIndexOf=function(s,u,b){return V(this,s,u,b,!1)};function N(p,s,u,b){u=Number(u)||0;let L=p.length-u;b?(b=Number(b),b>L&&(b=L)):b=L;let m=s.length;b>m/2&&(b=m/2);let j;for(j=0;j<b;++j){let le=parseInt(s.substr(j*2,2),16);if(bt(le))return j;p[u+j]=le}return j}function x(p,s,u,b){return nt(De(s,p.length-u),p,u,b)}function G(p,s,u,b){return nt($e(s),p,u,b)}function Q(p,s,u,b){return nt(ot(s),p,u,b)}function Te(p,s,u,b){return nt(Me(s,p.length-u),p,u,b)}i.prototype.write=function(s,u,b,L){if(u===void 0)L="utf8",b=this.length,u=0;else if(b===void 0&&typeof u=="string")L=u,b=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(b)?(b=b>>>0,L===void 0&&(L="utf8")):(L=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let m=this.length-u;if((b===void 0||b>m)&&(b=m),s.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let j=!1;for(;;)switch(L){case"hex":return N(this,s,u,b);case"utf8":case"utf-8":return x(this,s,u,b);case"ascii":case"latin1":case"binary":return G(this,s,u,b);case"base64":return Q(this,s,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,u,b);default:if(j)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),j=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(p,s,u){return s===0&&u===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(s,u))}function re(p,s,u){u=Math.min(p.length,u);let b=[],L=s;for(;L<u;){let m=p[L],j=null,le=m>239?4:m>223?3:m>191?2:1;if(L+le<=u){let Be,ee,ue,I;switch(le){case 1:m<128&&(j=m);break;case 2:Be=p[L+1],(Be&192)===128&&(I=(m&31)<<6|Be&63,I>127&&(j=I));break;case 3:Be=p[L+1],ee=p[L+2],(Be&192)===128&&(ee&192)===128&&(I=(m&15)<<12|(Be&63)<<6|ee&63,I>2047&&(I<55296||I>57343)&&(j=I));break;case 4:Be=p[L+1],ee=p[L+2],ue=p[L+3],(Be&192)===128&&(ee&192)===128&&(ue&192)===128&&(I=(m&15)<<18|(Be&63)<<12|(ee&63)<<6|ue&63,I>65535&&I<1114112&&(j=I))}}j===null?(j=65533,le=1):j>65535&&(j-=65536,b.push(j>>>10&1023|55296),j=56320|j&1023),b.push(j),L+=le}return Ce(b)}let ae=4096;function Ce(p){let s=p.length;if(s<=ae)return String.fromCharCode.apply(String,p);let u="",b=0;for(;b<s;)u+=String.fromCharCode.apply(String,p.slice(b,b+=ae));return u}function Ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]&127);return b}function ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]);return b}function te(p,s,u){let b=p.length;(!s||s<0)&&(s=0),(!u||u<0||u>b)&&(u=b);let L="";for(let m=s;m<u;++m)L+=Qt[p[m]];return L}function ye(p,s,u){let b=p.slice(s,u),L="";for(let m=0;m<b.length-1;m+=2)L+=String.fromCharCode(b[m]+b[m+1]*256);return L}i.prototype.slice=function(s,u){let b=this.length;s=~~s,u=u===void 0?b:~~u,s<0?(s+=b,s<0&&(s=0)):s>b&&(s=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),u<s&&(u=s);let L=this.subarray(s,u);return Object.setPrototypeOf(L,i.prototype),L};function me(p,s,u){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+s>u)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return L},i.prototype.readUintBE=i.prototype.readUIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s+--u],m=1;for(;u>0&&(m*=256);)L+=this[s+--u]*m;return L},i.prototype.readUint8=i.prototype.readUInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]|this[s+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]<<8|this[s+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},i.prototype.readBigUInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,m=this[++s]+this[++s]*2**8+this[++s]*2**16+b*2**24;return BigInt(L)+(BigInt(m)<<BigInt(32))}),i.prototype.readBigUInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],m=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b;return(BigInt(L)<<BigInt(32))+BigInt(m)}),i.prototype.readIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return m*=128,L>=m&&(L-=Math.pow(2,8*u)),L},i.prototype.readIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=u,m=1,j=this[s+--L];for(;L>0&&(m*=256);)j+=this[s+--L]*m;return m*=128,j>=m&&(j-=Math.pow(2,8*u)),j},i.prototype.readInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},i.prototype.readInt16LE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s]|this[s+1]<<8;return b&32768?b|4294901760:b},i.prototype.readInt16BE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s+1]|this[s]<<8;return b&32768?b|4294901760:b},i.prototype.readInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},i.prototype.readInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},i.prototype.readBigInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(b<<24);return(BigInt(L)<<BigInt(32))+BigInt(u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24)}),i.prototype.readBigInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=(u<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return(BigInt(L)<<BigInt(32))+BigInt(this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b)}),i.prototype.readFloatLE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!0,23,4)},i.prototype.readFloatBE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!1,23,4)},i.prototype.readDoubleLE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!0,52,8)},i.prototype.readDoubleBE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!1,52,8)};function Re(p,s,u,b,L,m){if(!i.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>L||s<m)throw new RangeError('"value" argument is out of bounds');if(u+b>p.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=1,j=0;for(this[u]=s&255;++j<b&&(m*=256);)this[u+j]=s/m&255;return u+b},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=b-1,j=1;for(this[u+m]=s&255;--m>=0&&(j*=256);)this[u+m]=s/j&255;return u+b},i.prototype.writeUint8=i.prototype.writeUInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,255,0),this[u]=s&255,u+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u+3]=s>>>24,this[u+2]=s>>>16,this[u+1]=s>>>8,this[u]=s&255,u+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4};function ze(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,u}function je(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u+7]=m,m=m>>8,p[u+6]=m,m=m>>8,p[u+5]=m,m=m>>8,p[u+4]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u+3]=j,j=j>>8,p[u+2]=j,j=j>>8,p[u+1]=j,j=j>>8,p[u]=j,u+8}i.prototype.writeBigUInt64LE=gt(function(s,u=0){return ze(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=gt(function(s,u=0){return je(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=0,j=1,le=0;for(this[u]=s&255;++m<b&&(j*=256);)s<0&&le===0&&this[u+m-1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=b-1,j=1,le=0;for(this[u+m]=s&255;--m>=0&&(j*=256);)s<0&&le===0&&this[u+m+1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,127,-128),s<0&&(s=255+s+1),this[u]=s&255,u+1},i.prototype.writeInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),this[u]=s&255,this[u+1]=s>>>8,this[u+2]=s>>>16,this[u+3]=s>>>24,u+4},i.prototype.writeInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4},i.prototype.writeBigInt64LE=gt(function(s,u=0){return ze(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=gt(function(s,u=0){return je(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(p,s,u,b,L,m){if(u+b>p.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ve(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,4),t.write(p,s,u,b,23,4),u+4}i.prototype.writeFloatLE=function(s,u,b){return Ve(this,s,u,!0,b)},i.prototype.writeFloatBE=function(s,u,b){return Ve(this,s,u,!1,b)};function xe(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,8),t.write(p,s,u,b,52,8),u+8}i.prototype.writeDoubleLE=function(s,u,b){return xe(this,s,u,!0,b)},i.prototype.writeDoubleBE=function(s,u,b){return xe(this,s,u,!1,b)},i.prototype.copy=function(s,u,b,L){if(!i.isBuffer(s))throw new TypeError("argument should be a Buffer");if(b||(b=0),!L&&L!==0&&(L=this.length),u>=s.length&&(u=s.length),u||(u=0),L>0&&L<b&&(L=b),L===b||s.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),s.length-u<L-b&&(L=s.length-u+b);let m=L-b;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,L):Uint8Array.prototype.set.call(s,this.subarray(b,L),u),m},i.prototype.fill=function(s,u,b,L){if(typeof s=="string"){if(typeof u=="string"?(L=u,u=0,b=this.length):typeof b=="string"&&(L=b,b=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!i.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(s.length===1){let j=s.charCodeAt(0);(L==="utf8"&&j<128||L==="latin1")&&(s=j)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(u<0||this.length<u||this.length<b)throw new RangeError("Out of range index");if(b<=u)return this;u=u>>>0,b=b===void 0?this.length:b>>>0,s||(s=0);let m;if(typeof s=="number")for(m=u;m<b;++m)this[m]=s;else{let j=i.isBuffer(s)?s:i.from(s,L),le=j.length;if(le===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(m=0;m<b-u;++m)this[m+u]=j[m%le]}return this};let A={};function O(p,s,u){A[p]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(p,s){return`The "${p}" argument must be of type number. Received type ${typeof s}`},TypeError),O("ERR_OUT_OF_RANGE",function(p,s,u){let b=`The value of "${p}" is out of range.`,L=u;return Number.isInteger(u)&&Math.abs(u)>2**32?L=Y(String(u)):typeof u=="bigint"&&(L=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(L=Y(L)),L+="n"),b+=` It must be ${s}. Received ${L}`,b},RangeError);function Y(p){let s="",u=p.length,b=p[0]==="-"?1:0;for(;u>=b+4;u-=3)s=`_${p.slice(u-3,u)}${s}`;return`${p.slice(0,u)}${s}`}function fe(p,s,u){k(s,"offset"),(p[s]===void 0||p[s+u]===void 0)&&Z(s,p.length-(u+1))}function ge(p,s,u,b,L,m){if(p>u||p<s){let j=typeof s=="bigint"?"n":"",le;throw m>3?s===0||s===BigInt(0)?le=`>= 0${j} and < 2${j} ** ${(m+1)*8}${j}`:le=`>= -(2${j} ** ${(m+1)*8-1}${j}) and < 2 ** ${(m+1)*8-1}${j}`:le=`>= ${s}${j} and <= ${u}${j}`,new A.ERR_OUT_OF_RANGE("value",le,p)}fe(b,L,m)}function k(p,s){if(typeof p!="number")throw new A.ERR_INVALID_ARG_TYPE(s,"number",p)}function Z(p,s,u){throw Math.floor(p)!==p?(k(p,u),new A.ERR_OUT_OF_RANGE(u||"offset","an integer",p)):s<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${s}`,p)}let Se=/[^+/0-9A-Za-z-_]/g;function ke(p){if(p=p.split("=")[0],p=p.trim().replace(Se,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function De(p,s){s=s||1/0;let u,b=p.length,L=null,m=[];for(let j=0;j<b;++j){if(u=p.charCodeAt(j),u>55295&&u<57344){if(!L){if(u>56319){(s-=3)>-1&&m.push(239,191,189);continue}else if(j+1===b){(s-=3)>-1&&m.push(239,191,189);continue}L=u;continue}if(u<56320){(s-=3)>-1&&m.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(s-=3)>-1&&m.push(239,191,189);if(L=null,u<128){if((s-=1)<0)break;m.push(u)}else if(u<2048){if((s-=2)<0)break;m.push(u>>6|192,u&63|128)}else if(u<65536){if((s-=3)<0)break;m.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((s-=4)<0)break;m.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return m}function $e(p){let s=[];for(let u=0;u<p.length;++u)s.push(p.charCodeAt(u)&255);return s}function Me(p,s){let u,b,L,m=[];for(let j=0;j<p.length&&!((s-=2)<0);++j)u=p.charCodeAt(j),b=u>>8,L=u%256,m.push(L),m.push(b);return m}function ot(p){return e.toByteArray(ke(p))}function nt(p,s,u,b){let L;for(L=0;L<b&&!(L+u>=s.length||L>=p.length);++L)s[L+u]=p[L];return L}function et(p,s){return p instanceof s||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===s.name}function bt(p){return p!==p}let Qt=function(){let p="0123456789abcdef",s=new Array(256);for(let u=0;u<16;++u){let b=u*16;for(let L=0;L<16;++L)s[b+L]=p[u]+p[L]}return s}();function gt(p){return typeof BigInt>"u"?Ct:p}function Ct(){throw new Error("BigInt not supported")}return ei}var To,Zp,La,Vp,ei,Gp,ti,he,PB,UB,ka=Xn(()=>{$();z();q();H();W();To={},Zp=!1;La={},Vp=!1;ei={},Gp=!1;ti=$_();ti.Buffer;ti.SlowBuffer;ti.INSPECT_MAX_BYTES;ti.kMaxLength;he=ti.Buffer,PB=ti.INSPECT_MAX_BYTES,UB=ti.kMaxLength});var H=Xn(()=>{ka()});var of=He((kk,zd)=>{"use strict";$();z();q();H();W();var $d=Object.prototype.toString;zd.exports=function(t){var r=$d.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$d.call(t.callee)==="[object Function]"),n}});var Xd=He((jk,Kd)=>{"use strict";$();z();q();H();W();var Yd;Object.keys||(Uo=Object.prototype.hasOwnProperty,af=Object.prototype.toString,qd=of(),sf=Object.prototype.propertyIsEnumerable,Wd=!sf.call({toString:null},"toString"),Hd=sf.call(function(){},"prototype"),Do=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Xa=function(e){var t=e.constructor;return t&&t.prototype===e},Zd={$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},Vd=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Zd["$"+e]&&Uo.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Xa(window[e])}catch{return!0}}catch{return!0}return!1}(),Gd=function(e){if(typeof window>"u"||!Vd)return Xa(e);try{return Xa(e)}catch{return!1}},Yd=function(t){var r=t!==null&&typeof t=="object",n=af.call(t)==="[object Function]",o=qd(t),a=r&&af.call(t)==="[object String]",i=[];if(!r&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=Hd&&n;if(a&&t.length>0&&!Uo.call(t,0))for(var l=0;l<t.length;++l)i.push(String(l));if(o&&t.length>0)for(var c=0;c<t.length;++c)i.push(String(c));else for(var d in t)!(f&&d==="prototype")&&Uo.call(t,d)&&i.push(String(d));if(Wd)for(var y=Gd(t),v=0;v<Do.length;++v)!(y&&Do[v]==="constructor")&&Uo.call(t,Do[v])&&i.push(Do[v]);return i});var Uo,af,qd,sf,Wd,Hd,Do,Xa,Zd,Vd,Gd;Kd.exports=Yd});var Qa=He((Zk,ey)=>{"use strict";$();z();q();H();W();var HE=Array.prototype.slice,ZE=of(),Jd=Object.keys,Ja=Jd?function(t){return Jd(t)}:Xd(),Qd=Object.keys;Ja.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return ZE(n)?Qd(HE.call(n)):Qd(n)})}else Object.keys=Ja;return Object.keys||Ja};ey.exports=Ja});var Mo=He((Jk,ty)=>{"use strict";$();z();q();H();W();ty.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var es=He((iF,ny)=>{"use strict";$();z();q();H();W();var ry=typeof Symbol<"u"&&Symbol,VE=Mo();ny.exports=function(){return typeof ry!="function"||typeof Symbol!="function"||typeof ry("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:VE()}});var ay=He((lF,oy)=>{"use strict";$();z();q();H();W();var iy={foo:{}},GE=Object;oy.exports=function(){return{__proto__:iy}.foo===iy.foo&&!({__proto__:null}instanceof GE)}});var uy=He((gF,sy)=>{"use strict";$();z();q();H();W();var YE="Function.prototype.bind called on incompatible ",uf=Array.prototype.slice,KE=Object.prototype.toString,XE="[object Function]";sy.exports=function(t){var r=this;if(typeof r!="function"||KE.call(r)!==XE)throw new TypeError(YE+r);for(var n=uf.call(arguments,1),o,a=function(){if(this instanceof o){var d=r.apply(this,n.concat(uf.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(uf.call(arguments)))},i=Math.max(0,r.length-n.length),f=[],l=0;l<i;l++)f.push("$"+l);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var ts=He((EF,fy)=>{"use strict";$();z();q();H();W();var JE=uy();fy.exports=Function.prototype.bind||JE});var ff=He((IF,ly)=>{"use strict";$();z();q();H();W();var QE=ts();ly.exports=QE.call(Function.call,Object.prototype.hasOwnProperty)});var Ur=He((kF,yy)=>{"use strict";$();z();q();H();W();var yt,zi=SyntaxError,dy=Function,$i=TypeError,lf=function(e){try{return dy('"use strict"; return ('+e+").constructor;")()}catch{}},ni=Object.getOwnPropertyDescriptor;if(ni)try{ni({},"")}catch{ni=null}var cf=function(){throw new $i},eS=ni?function(){try{return arguments.callee,cf}catch{try{return ni(arguments,"callee").get}catch{return cf}}}():cf,Mi=es()(),tS=ay()(),Wt=Object.getPrototypeOf||(tS?function(e){return e.__proto__}:null),ji={},rS=typeof Uint8Array>"u"||!Wt?yt:Wt(Uint8Array),ii={"%AggregateError%":typeof AggregateError>"u"?yt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?yt:ArrayBuffer,"%ArrayIteratorPrototype%":Mi&&Wt?Wt([][Symbol.iterator]()):yt,"%AsyncFromSyncIteratorPrototype%":yt,"%AsyncFunction%":ji,"%AsyncGenerator%":ji,"%AsyncGeneratorFunction%":ji,"%AsyncIteratorPrototype%":ji,"%Atomics%":typeof Atomics>"u"?yt:Atomics,"%BigInt%":typeof BigInt>"u"?yt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?yt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?yt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?yt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?yt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?yt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?yt:FinalizationRegistry,"%Function%":dy,"%GeneratorFunction%":ji,"%Int8Array%":typeof Int8Array>"u"?yt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?yt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?yt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mi&&Wt?Wt(Wt([][Symbol.iterator]())):yt,"%JSON%":typeof JSON=="object"?JSON:yt,"%Map%":typeof Map>"u"?yt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mi||!Wt?yt:Wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?yt:Promise,"%Proxy%":typeof Proxy>"u"?yt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?yt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?yt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Mi||!Wt?yt:Wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?yt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Mi&&Wt?Wt(""[Symbol.iterator]()):yt,"%Symbol%":Mi?Symbol:yt,"%SyntaxError%":zi,"%ThrowTypeError%":eS,"%TypedArray%":rS,"%TypeError%":$i,"%Uint8Array%":typeof Uint8Array>"u"?yt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?yt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?yt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?yt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?yt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?yt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?yt:WeakSet};if(Wt)try{null.error}catch(e){cy=Wt(Wt(e)),ii["%Error.prototype%"]=cy}var cy,nS=function e(t){var r;if(t==="%AsyncFunction%")r=lf("async function () {}");else if(t==="%GeneratorFunction%")r=lf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=lf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Wt&&(r=Wt(o.prototype))}return ii[t]=r,r},hy={"%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"]},jo=ts(),rs=ff(),iS=jo.call(Function.call,Array.prototype.concat),oS=jo.call(Function.apply,Array.prototype.splice),py=jo.call(Function.call,String.prototype.replace),ns=jo.call(Function.call,String.prototype.slice),aS=jo.call(Function.call,RegExp.prototype.exec),sS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uS=/\\(\\)?/g,fS=function(t){var r=ns(t,0,1),n=ns(t,-1);if(r==="%"&&n!=="%")throw new zi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new zi("invalid intrinsic syntax, expected opening `%`");var o=[];return py(t,sS,function(a,i,f,l){o[o.length]=f?py(l,uS,"$1"):i||a}),o},lS=function(t,r){var n=t,o;if(rs(hy,n)&&(o=hy[n],n="%"+o[0]+"%"),rs(ii,n)){var a=ii[n];if(a===ji&&(a=nS(n)),typeof a>"u"&&!r)throw new $i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new zi("intrinsic "+t+" does not exist!")};yy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new $i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new $i('"allowMissing" argument must be a boolean');if(aS(/^%?[^%]*%?$/,t)===null)throw new zi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fS(t),o=n.length>0?n[0]:"",a=lS("%"+o+"%",r),i=a.name,f=a.value,l=!1,c=a.alias;c&&(o=c[0],oS(n,iS([0,1],c)));for(var d=1,y=!0;d<n.length;d+=1){var v=n[d],_=ns(v,0,1),h=ns(v,-1);if((_==='"'||_==="'"||_==="`"||h==='"'||h==="'"||h==="`")&&_!==h)throw new zi("property names with quotes must have matching quotes");if((v==="constructor"||!y)&&(l=!0),o+="."+v,i="%"+o+"%",rs(ii,i))f=ii[i];else if(f!=null){if(!(v in f)){if(!r)throw new $i("base intrinsic for "+t+" exists, but the property is not available.");return}if(ni&&d+1>=n.length){var w=ni(f,v);y=!!w,y&&"get"in w&&!("originalValue"in w.get)?f=w.get:f=f[v]}else y=rs(f,v),f=f[v];y&&!l&&(ii[i]=f)}}return f}});var my=He((jF,gy)=>{"use strict";$();z();q();H();W();var cS=Ur(),hf=cS("%Object.defineProperty%",!0),pf=function(){if(hf)try{return hf({},"a",{value:1}),!0}catch{return!1}return!1};pf.hasArrayLengthDefineBug=function(){if(!pf())return null;try{return hf([],"length",{value:1}).length!==1}catch{return!0}};gy.exports=pf});var Un=He((ZF,_y)=>{"use strict";$();z();q();H();W();var hS=Qa(),pS=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",dS=Object.prototype.toString,yS=Array.prototype.concat,vy=Object.defineProperty,gS=function(e){return typeof e=="function"&&dS.call(e)==="[object Function]"},mS=my()(),wy=vy&&mS,vS=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!gS(n)||!n())return}wy?vy(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},by=function(e,t){var r=arguments.length>2?arguments[2]:{},n=hS(t);pS&&(n=yS.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)vS(e,n[o],t[n[o]],r[n[o]])};by.supportsDescriptors=!!wy;_y.exports=by});var Wi=He((JF,is)=>{"use strict";$();z();q();H();W();var df=ts(),qi=Ur(),Ay=qi("%Function.prototype.apply%"),Ry=qi("%Function.prototype.call%"),Ty=qi("%Reflect.apply%",!0)||df.call(Ry,Ay),Ey=qi("%Object.getOwnPropertyDescriptor%",!0),oi=qi("%Object.defineProperty%",!0),wS=qi("%Math.max%");if(oi)try{oi({},"a",{value:1})}catch{oi=null}is.exports=function(t){var r=Ty(df,Ry,arguments);if(Ey&&oi){var n=Ey(r,"length");n.configurable&&oi(r,"length",{value:1+wS(0,t.length-(arguments.length-1))})}return r};var Sy=function(){return Ty(df,Ay,arguments)};oi?oi(is.exports,"apply",{value:Sy}):is.exports.apply=Sy});var lr=He((i4,xy)=>{"use strict";$();z();q();H();W();var Oy=Ur(),Iy=Wi(),bS=Iy(Oy("String.prototype.indexOf"));xy.exports=function(t,r){var n=Oy(t,!!r);return typeof n=="function"&&bS(t,".prototype.")>-1?Iy(n):n}});var yf=He((l4,ky)=>{"use strict";$();z();q();H();W();var _S=Qa(),Ny=Mo()(),Ly=lr(),By=Object,ES=Ly("Array.prototype.push"),Cy=Ly("Object.prototype.propertyIsEnumerable"),SS=Ny?Object.getOwnPropertySymbols:null;ky.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=By(t);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=By(arguments[o]),i=_S(a),f=Ny&&(Object.getOwnPropertySymbols||SS);if(f)for(var l=f(a),c=0;c<l.length;++c){var d=l[c];Cy(a,d)&&ES(i,d)}for(var y=0;y<i.length;++y){var v=i[y];if(Cy(a,v)){var _=a[v];n[v]=_}}}return n}});var mf=He((g4,Fy)=>{"use strict";$();z();q();H();W();var gf=yf(),AS=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var o=Object.assign({},r),a="";for(var i in o)a+=i;return e!==a},RS=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Fy.exports=function(){return!Object.assign||AS()||RS()?gf:Object.assign}});var Uy=He((E4,Py)=>{"use strict";$();z();q();H();W();var TS=Un(),OS=mf();Py.exports=function(){var t=OS();return TS(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}});var $y=He((I4,jy)=>{"use strict";$();z();q();H();W();var IS=Un(),xS=Wi(),BS=yf(),Dy=mf(),CS=Uy(),NS=xS.apply(Dy()),My=function(t,r){return NS(Object,arguments)};IS(My,{getPolyfill:Dy,implementation:BS,shim:CS});jy.exports=My});var qy=He((k4,zy)=>{"use strict";$();z();q();H();W();var zo=function(){return typeof function(){}.name=="string"},$o=Object.getOwnPropertyDescriptor;if($o)try{$o([],"length")}catch{$o=null}zo.functionsHaveConfigurableNames=function(){if(!zo()||!$o)return!1;var t=$o(function(){},"name");return!!t&&!!t.configurable};var LS=Function.prototype.bind;zo.boundFunctionsHaveNames=function(){return zo()&&typeof LS=="function"&&function(){}.bind().name!==""};zy.exports=zo});var wf=He((j4,vf)=>{"use strict";$();z();q();H();W();var kS=qy().functionsHaveConfigurableNames(),FS=Object,PS=TypeError;vf.exports=function(){if(this!=null&&this!==FS(this))throw new PS("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t};kS&&Object.defineProperty&&Object.defineProperty(vf.exports,"name",{value:"get flags"})});var bf=He((Z4,Wy)=>{"use strict";$();z();q();H();W();var US=wf(),DS=Un().supportsDescriptors,MS=Object.getOwnPropertyDescriptor;Wy.exports=function(){if(DS&&/a/mig.flags==="gim"){var t=MS(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return US}});var Vy=He((J4,Zy)=>{"use strict";$();z();q();H();W();var jS=Un().supportsDescriptors,$S=bf(),zS=Object.getOwnPropertyDescriptor,qS=Object.defineProperty,WS=TypeError,Hy=Object.getPrototypeOf,HS=/a/;Zy.exports=function(){if(!jS||!Hy)throw new WS("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=$S(),r=Hy(HS),n=zS(r,"flags");return(!n||n.get!==t)&&qS(r,"flags",{configurable:!0,enumerable:!1,get:t}),t}});var Xy=He((iP,Ky)=>{"use strict";$();z();q();H();W();var ZS=Un(),VS=Wi(),GS=wf(),Gy=bf(),YS=Vy(),Yy=VS(Gy());ZS(Yy,{getPolyfill:Gy,implementation:GS,shim:YS});Ky.exports=Yy});var mn=He((lP,Jy)=>{"use strict";$();z();q();H();W();var KS=Mo();Jy.exports=function(){return KS()&&!!Symbol.toStringTag}});var Ef=He((gP,eg)=>{"use strict";$();z();q();H();W();var XS=mn()(),JS=lr(),_f=JS("Object.prototype.toString"),os=function(t){return XS&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:_f(t)==="[object Arguments]"},Qy=function(t){return os(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&_f(t)!=="[object Array]"&&_f(t.callee)==="[object Function]"},QS=function(){return os(arguments)}();os.isLegacyArguments=Qy;eg.exports=QS?os:Qy});var tg=He(()=>{$();z();q();H();W()});var _g=He((xP,bg)=>{$();z();q();H();W();var Nf=typeof Map=="function"&&Map.prototype,Sf=Object.getOwnPropertyDescriptor&&Nf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ss=Nf&&Sf&&typeof Sf.get=="function"?Sf.get:null,rg=Nf&&Map.prototype.forEach,Lf=typeof Set=="function"&&Set.prototype,Af=Object.getOwnPropertyDescriptor&&Lf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,us=Lf&&Af&&typeof Af.get=="function"?Af.get:null,ng=Lf&&Set.prototype.forEach,e2=typeof WeakMap=="function"&&WeakMap.prototype,Wo=e2?WeakMap.prototype.has:null,t2=typeof WeakSet=="function"&&WeakSet.prototype,Ho=t2?WeakSet.prototype.has:null,r2=typeof WeakRef=="function"&&WeakRef.prototype,ig=r2?WeakRef.prototype.deref:null,n2=Boolean.prototype.valueOf,i2=Object.prototype.toString,o2=Function.prototype.toString,a2=String.prototype.match,kf=String.prototype.slice,Mn=String.prototype.replace,s2=String.prototype.toUpperCase,og=String.prototype.toLowerCase,dg=RegExp.prototype.test,ag=Array.prototype.concat,Kr=Array.prototype.join,u2=Array.prototype.slice,sg=Math.floor,Of=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rf=Object.getOwnPropertySymbols,If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hi||"symbol")?Symbol.toStringTag:null,yg=Object.prototype.propertyIsEnumerable,ug=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function fg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||dg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-sg(-e):sg(e);if(n!==e){var o=String(n),a=kf.call(t,o.length+1);return Mn.call(o,r,"$&_")+"."+Mn.call(Mn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Mn.call(t,r,"$&_")}var xf=tg(),lg=xf.custom,cg=mg(lg)?lg:null;bg.exports=function e(t,r,n,o){var a=r||{};if(Dn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Dn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Dn(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Dn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Dn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return wg(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return f?fg(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return f?fg(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Bf(t)?"[Array]":"[Object]";var y=T2(a,n);if(typeof o>"u")o=[];else if(vg(o,t)>=0)return"[Circular]";function v(re,ae,Ce){if(ae&&(o=u2.call(o),o.push(ae)),Ce){var Ne={depth:a.depth};return Dn(a,"quoteStyle")&&(Ne.quoteStyle=a.quoteStyle),e(re,Ne,n+1,o)}return e(re,a,n+1,o)}if(typeof t=="function"&&!hg(t)){var _=m2(t),h=as(t,v);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(h.length>0?" { "+Kr.call(h,", ")+" }":"")}if(mg(t)){var w=Hi?Mn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):If.call(t);return typeof t=="object"&&!Hi?qo(w):w}if(S2(t)){for(var S="<"+og.call(String(t.nodeName)),T=t.attributes||[],C=0;C<T.length;C++)S+=" "+T[C].name+"="+gg(f2(T[C].value),"double",a);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+og.call(String(t.nodeName))+">",S}if(Bf(t)){if(t.length===0)return"[]";var M=as(t,v);return y&&!R2(M)?"["+Cf(M,y)+"]":"[ "+Kr.call(M,", ")+" ]"}if(c2(t)){var D=as(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!yg.call(t,"cause")?"{ ["+String(t)+"] "+Kr.call(ag.call("[cause]: "+v(t.cause),D),", ")+" }":D.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Kr.call(D,", ")+" }"}if(typeof t=="object"&&i){if(cg&&typeof t[cg]=="function"&&xf)return xf(t,{depth:d-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(v2(t)){var V=[];return rg&&rg.call(t,function(re,ae){V.push(v(ae,t,!0)+" => "+v(re,t))}),pg("Map",ss.call(t),V,y)}if(_2(t)){var F=[];return ng&&ng.call(t,function(re){F.push(v(re,t))}),pg("Set",us.call(t),F,y)}if(w2(t))return Tf("WeakMap");if(E2(t))return Tf("WeakSet");if(b2(t))return Tf("WeakRef");if(p2(t))return qo(v(Number(t)));if(y2(t))return qo(v(Of.call(t)));if(d2(t))return qo(n2.call(t));if(h2(t))return qo(v(String(t)));if(!l2(t)&&!hg(t)){var N=as(t,v),x=ug?ug(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",Q=!x&&rr&&Object(t)===t&&rr in t?kf.call(jn(t),8,-1):G?"Object":"",Te=x||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",K=Te+(Q||G?"["+Kr.call(ag.call([],Q||[],G||[]),": ")+"] ":"");return N.length===0?K+"{}":y?K+"{"+Cf(N,y)+"}":K+"{ "+Kr.call(N,", ")+" }"}return String(t)};function gg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function f2(e){return Mn.call(String(e),/"/g,"&quot;")}function Bf(e){return jn(e)==="[object Array]"&&(!rr||!(typeof e=="object"&&rr in e))}function l2(e){return jn(e)==="[object Date]"&&(!rr||!(typeof e=="object"&&rr in e))}function hg(e){return jn(e)==="[object RegExp]"&&(!rr||!(typeof e=="object"&&rr in e))}function c2(e){return jn(e)==="[object Error]"&&(!rr||!(typeof e=="object"&&rr in e))}function h2(e){return jn(e)==="[object String]"&&(!rr||!(typeof e=="object"&&rr in e))}function p2(e){return jn(e)==="[object Number]"&&(!rr||!(typeof e=="object"&&rr in e))}function d2(e){return jn(e)==="[object Boolean]"&&(!rr||!(typeof e=="object"&&rr in e))}function mg(e){if(Hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!If)return!1;try{return If.call(e),!0}catch{}return!1}function y2(e){if(!e||typeof e!="object"||!Of)return!1;try{return Of.call(e),!0}catch{}return!1}var g2=Object.prototype.hasOwnProperty||function(e){return e in this};function Dn(e,t){return g2.call(e,t)}function jn(e){return i2.call(e)}function m2(e){if(e.name)return e.name;var t=a2.call(o2.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vg(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function v2(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e);try{us.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function w2(e){if(!Wo||!e||typeof e!="object")return!1;try{Wo.call(e,Wo);try{Ho.call(e,Ho)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function b2(e){if(!ig||!e||typeof e!="object")return!1;try{return ig.call(e),!0}catch{}return!1}function _2(e){if(!us||!e||typeof e!="object")return!1;try{us.call(e);try{ss.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function E2(e){if(!Ho||!e||typeof e!="object")return!1;try{Ho.call(e,Ho);try{Wo.call(e,Wo)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function S2(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function wg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return wg(kf.call(e,0,t.maxStringLength),t)+n}var o=Mn.call(Mn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,A2);return gg(o,"single",t)}function A2(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+s2.call(t.toString(16))}function qo(e){return"Object("+e+")"}function Tf(e){return e+" { ? }"}function pg(e,t,r,n){var o=n?Cf(r,n):Kr.call(r,", ");return e+" ("+t+") {"+o+"}"}function R2(e){for(var t=0;t<e.length;t++)if(vg(e[t],`
`)>=0)return!1;return!0}function T2(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Kr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Kr.call(Array(t+1),r)}}function Cf(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+Kr.call(e,","+r)+`
`+t.prev}function as(e,t){var r=Bf(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Dn(e,o)?t(e[o],e):""}var a=typeof Rf=="function"?Rf(e):[],i;if(Hi){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in e)Dn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Hi&&i["$"+l]instanceof Symbol||(dg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Rf=="function")for(var c=0;c<a.length;c++)yg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Uf=He((FP,Eg)=>{"use strict";$();z();q();H();W();var Ff=Ur(),Zi=lr(),O2=_g(),I2=Ff("%TypeError%"),fs=Ff("%WeakMap%",!0),ls=Ff("%Map%",!0),x2=Zi("WeakMap.prototype.get",!0),B2=Zi("WeakMap.prototype.set",!0),C2=Zi("WeakMap.prototype.has",!0),N2=Zi("Map.prototype.get",!0),L2=Zi("Map.prototype.set",!0),k2=Zi("Map.prototype.has",!0),Pf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},F2=function(e,t){var r=Pf(e,t);return r&&r.value},P2=function(e,t,r){var n=Pf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},U2=function(e,t){return!!Pf(e,t)};Eg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new I2("Side channel does not contain "+O2(a))},get:function(a){if(fs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return x2(t,a)}else if(ls){if(r)return N2(r,a)}else if(n)return F2(n,a)},has:function(a){if(fs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return C2(t,a)}else if(ls){if(r)return k2(r,a)}else if(n)return U2(n,a);return!1},set:function(a,i){fs&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new fs),B2(t,a,i)):ls?(r||(r=new ls),L2(r,a,i)):(n||(n={key:{},next:null}),P2(n,a,i))}};return o}});var Ag=He(($P,Sg)=>{"use strict";$();z();q();H();W();var D2=Ur(),M2=ff(),Zo=Uf()(),vn=D2("%TypeError%"),Df={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");if(Zo.assert(e),!Df.has(e,t))throw new vn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Zo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Zo.get(e);return!!r&&M2(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var n=Zo.get(e);n||(n={},Zo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(Df);Sg.exports=Df});var Og=He((VP,Tg)=>{"use strict";$();z();q();H();W();var Vo=Ag(),j2=SyntaxError,Rg=typeof StopIteration=="object"?StopIteration:null;Tg.exports=function(t){if(!Rg)throw new j2("this environment lacks StopIteration");Vo.set(t,"[[Done]]",!1);var r={next:function(){var o=Vo.get(this,"[[Iterator]]"),a=Vo.get(o,"[[Done]]");try{return{done:a,value:a?void 0:o.next()}}catch(i){if(Vo.set(o,"[[Done]]",!0),i!==Rg)throw i;return{done:!0,value:void 0}}}};return Vo.set(r,"[[Iterator]]",t),r}});var Mf=He((QP,Ig)=>{$();z();q();H();W();var $2={}.toString;Ig.exports=Array.isArray||function(e){return $2.call(e)=="[object Array]"}});var jf=He((oU,xg)=>{"use strict";$();z();q();H();W();var z2=String.prototype.valueOf,q2=function(t){try{return z2.call(t),!0}catch{return!1}},W2=Object.prototype.toString,H2="[object String]",Z2=mn()();xg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:Z2?q2(t):W2.call(t)===H2}});var zf=He((cU,Ng)=>{"use strict";$();z();q();H();W();var $f=typeof Map=="function"&&Map.prototype?Map:null,V2=typeof Set=="function"&&Set.prototype?Set:null,cs;$f||(cs=function(t){return!1});var Cg=$f?Map.prototype.has:null,Bg=V2?Set.prototype.has:null;!cs&&!Cg&&(cs=function(t){return!1});Ng.exports=cs||function(t){if(!t||typeof t!="object")return!1;try{if(Cg.call(t),Bg)try{Bg.call(t)}catch{return!0}return t instanceof $f}catch{}return!1}});var Wf=He((mU,Fg)=>{"use strict";$();z();q();H();W();var G2=typeof Map=="function"&&Map.prototype?Map:null,qf=typeof Set=="function"&&Set.prototype?Set:null,hs;qf||(hs=function(t){return!1});var Lg=G2?Map.prototype.has:null,kg=qf?Set.prototype.has:null;!hs&&!kg&&(hs=function(t){return!1});Fg.exports=hs||function(t){if(!t||typeof t!="object")return!1;try{if(kg.call(t),Lg)try{Lg.call(t)}catch{return!0}return t instanceof qf}catch{}return!1}});var Vg=He((SU,ys)=>{"use strict";$();z();q();H();W();var Pg=Ef(),Ug=Og();es()()||Mo()()?(ps=Symbol.iterator,ys.exports=function(t){if(t!=null&&typeof t[ps]<"u")return t[ps]();if(Pg(t))return Array.prototype[ps].call(t)}):(Dg=Mf(),Mg=jf(),Hf=Ur(),jg=Hf("%Map%",!0),$g=Hf("%Set%",!0),Tr=lr(),Zf=Tr("Array.prototype.push"),Vf=Tr("String.prototype.charCodeAt"),zg=Tr("String.prototype.slice"),qg=function(t,r){var n=t.length;if(r+1>=n)return r+1;var o=Vf(t,r);if(o<55296||o>56319)return r+1;var a=Vf(t,r+1);return a<56320||a>57343?r+1:r+2},ds=function(t){var r=0;return{next:function(){var o=r>=t.length,a;return o||(a=t[r],r+=1),{done:o,value:a}}}},Gf=function(t,r){if(Dg(t)||Pg(t))return ds(t);if(Mg(t)){var n=0;return{next:function(){var a=qg(t,n),i=zg(t,n,a);return n=a,{done:a>t.length,value:i}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()},!jg&&!$g?ys.exports=function(t){if(t!=null)return Gf(t,!0)}:(Wg=zf(),Hg=Wf(),Yf=Tr("Map.prototype.forEach",!0),Kf=Tr("Set.prototype.forEach",!0),(typeof ce>"u"||!ce.versions||!ce.versions.node)&&(Xf=Tr("Map.prototype.iterator",!0),Jf=Tr("Set.prototype.iterator",!0)),Qf=Tr("Map.prototype.@@iterator",!0)||Tr("Map.prototype._es6-shim iterator_",!0),el=Tr("Set.prototype.@@iterator",!0)||Tr("Set.prototype._es6-shim iterator_",!0),Zg=function(t){if(Wg(t)){if(Xf)return Ug(Xf(t));if(Qf)return Qf(t);if(Yf){var r=[];return Yf(t,function(o,a){Zf(r,[a,o])}),ds(r)}}if(Hg(t)){if(Jf)return Ug(Jf(t));if(el)return el(t);if(Kf){var n=[];return Kf(t,function(o){Zf(n,o)}),ds(n)}}},ys.exports=function(t){return Zg(t)||Gf(t)}));var ps,Dg,Mg,Hf,jg,$g,Tr,Zf,Vf,zg,qg,ds,Gf,Wg,Hg,Yf,Kf,Xf,Jf,Qf,el,Zg});var tl=He((xU,Yg)=>{"use strict";$();z();q();H();W();var Gg=function(e){return e!==e};Yg.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Gg(t)&&Gg(r))}});var rl=He((FU,Kg)=>{"use strict";$();z();q();H();W();var Y2=tl();Kg.exports=function(){return typeof Object.is=="function"?Object.is:Y2}});var Jg=He(($U,Xg)=>{"use strict";$();z();q();H();W();var K2=rl(),X2=Un();Xg.exports=function(){var t=K2();return X2(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var rm=He((VU,tm)=>{"use strict";$();z();q();H();W();var J2=Un(),Q2=Wi(),eA=tl(),Qg=rl(),tA=Jg(),em=Q2(Qg(),Object);J2(em,{getPolyfill:Qg,implementation:eA,shim:tA});tm.exports=em});var am=He((QU,om)=>{"use strict";$();z();q();H();W();var im=Function.prototype.toString,Vi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,il,gs;if(typeof Vi=="function"&&typeof Object.defineProperty=="function")try{il=Object.defineProperty({},"length",{get:function(){throw gs}}),gs={},Vi(function(){throw 42},null,il)}catch(e){e!==gs&&(Vi=null)}else Vi=null;var rA=/^\s*class\b/,ol=function(t){try{var r=im.call(t);return rA.test(r)}catch{return!1}},nl=function(t){try{return ol(t)?!1:(im.call(t),!0)}catch{return!1}},ms=Object.prototype.toString,nA="[object Object]",iA="[object Function]",oA="[object GeneratorFunction]",aA="[object HTMLAllCollection]",sA="[object HTML document.all class]",uA="[object HTMLCollection]",fA=typeof Symbol=="function"&&!!Symbol.toStringTag,lA=!(0 in[,]),al=function(){return!1};typeof document=="object"&&(nm=document.all,ms.call(nm)===ms.call(document.all)&&(al=function(t){if((lA||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=ms.call(t);return(r===aA||r===sA||r===uA||r===nA)&&t("")==null}catch{}return!1}));var nm;om.exports=Vi?function(t){if(al(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Vi(t,null,il)}catch(r){if(r!==gs)return!1}return!ol(t)&&nl(t)}:function(t){if(al(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(fA)return nl(t);if(ol(t))return!1;var r=ms.call(t);return r!==iA&&r!==oA&&!/^\[object HTML/.test(r)?!1:nl(t)}});var sl=He((oD,um)=>{"use strict";$();z();q();H();W();var cA=am(),hA=Object.prototype.toString,sm=Object.prototype.hasOwnProperty,pA=function(t,r,n){for(var o=0,a=t.length;o<a;o++)sm.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},dA=function(t,r,n){for(var o=0,a=t.length;o<a;o++)n==null?r(t.charAt(o),o,t):r.call(n,t.charAt(o),o,t)},yA=function(t,r,n){for(var o in t)sm.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},gA=function(t,r,n){if(!cA(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),hA.call(t)==="[object Array]"?pA(t,r,o):typeof t=="string"?dA(t,r,o):yA(t,r,o)};um.exports=gA});var fl=He((cD,fm)=>{"use strict";$();z();q();H();W();var ul=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],mA=typeof globalThis>"u"?se:globalThis;fm.exports=function(){for(var t=[],r=0;r<ul.length;r++)typeof mA[ul[r]]=="function"&&(t[t.length]=ul[r]);return t}});var ll=He((mD,lm)=>{"use strict";$();z();q();H();W();var vA=Ur(),vs=vA("%Object.getOwnPropertyDescriptor%",!0);if(vs)try{vs([],"length")}catch{vs=null}lm.exports=vs});var pl=He((SD,ym)=>{"use strict";$();z();q();H();W();var cm=sl(),wA=fl(),hl=lr(),bA=hl("Object.prototype.toString"),hm=mn()(),ws=ll(),_A=typeof globalThis>"u"?se:globalThis,pm=wA(),EA=hl("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},SA=hl("String.prototype.slice"),dm={},cl=Object.getPrototypeOf;hm&&ws&&cl&&cm(pm,function(e){var t=new _A[e];if(Symbol.toStringTag in t){var r=cl(t),n=ws(r,Symbol.toStringTag);if(!n){var o=cl(r);n=ws(o,Symbol.toStringTag)}dm[e]=n.get}});var AA=function(t){var r=!1;return cm(dm,function(n,o){if(!r)try{r=n.call(t)===o}catch{}}),r};ym.exports=function(t){if(!t||typeof t!="object")return!1;if(!hm||!(Symbol.toStringTag in t)){var r=SA(bA(t),8,-1);return EA(pm,r)>-1}return ws?AA(t):!1}});var dl=He((xD,_m)=>{"use strict";$();z();q();H();W();var RA=Wi(),TA=lr(),bm=Ur(),OA=pl(),gm=bm("ArrayBuffer",!0),mm=bm("Float32Array",!0),bs=TA("ArrayBuffer.prototype.byteLength",!0),vm=gm&&!bs&&new gm().slice,wm=vm&&RA(vm);_m.exports=bs||wm?function(t){if(!t||typeof t!="object")return!1;try{return bs?bs(t):wm(t,0),!0}catch{return!1}}:mm?function(t){try{return new mm(t).buffer===t&&!OA(t)}catch(r){return typeof t=="object"&&r.name==="RangeError"}}:function(t){return!1}});var Sm=He((FD,Em)=>{"use strict";$();z();q();H();W();var IA=Date.prototype.getDay,xA=function(t){try{return IA.call(t),!0}catch{return!1}},BA=Object.prototype.toString,CA="[object Date]",NA=mn()();Em.exports=function(t){return typeof t!="object"||t===null?!1:NA?xA(t):BA.call(t)===CA}});var Im=He(($D,Om)=>{"use strict";$();z();q();H();W();var yl=lr(),Am=mn()(),Rm,Tm,gl,ml;Am&&(Rm=yl("Object.prototype.hasOwnProperty"),Tm=yl("RegExp.prototype.exec"),gl={},_s=function(){throw gl},ml={toString:_s,valueOf:_s},typeof Symbol.toPrimitive=="symbol"&&(ml[Symbol.toPrimitive]=_s));var _s,LA=yl("Object.prototype.toString"),kA=Object.getOwnPropertyDescriptor,FA="[object RegExp]";Om.exports=Am?function(t){if(!t||typeof t!="object")return!1;var r=kA(t,"lastIndex"),n=r&&Rm(r,"value");if(!n)return!1;try{Tm(t,ml)}catch(o){return o===gl}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:LA(t)===FA}});var Cm=He((VD,Bm)=>{"use strict";$();z();q();H();W();var PA=lr(),xm=PA("SharedArrayBuffer.prototype.byteLength",!0);Bm.exports=xm?function(t){if(!t||typeof t!="object")return!1;try{return xm(t),!0}catch{return!1}}:function(t){return!1}});var Lm=He((QD,Nm)=>{"use strict";$();z();q();H();W();var UA=Number.prototype.toString,DA=function(t){try{return UA.call(t),!0}catch{return!1}},MA=Object.prototype.toString,jA="[object Number]",$A=mn()();Nm.exports=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:$A?DA(t):MA.call(t)===jA}});var Pm=He((oM,Fm)=>{"use strict";$();z();q();H();W();var km=lr(),zA=km("Boolean.prototype.toString"),qA=km("Object.prototype.toString"),WA=function(t){try{return zA(t),!0}catch{return!1}},HA="[object Boolean]",ZA=mn()();Fm.exports=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:ZA&&Symbol.toStringTag in t?WA(t):qA(t)===HA}});var jm=He((cM,vl)=>{"use strict";$();z();q();H();W();var VA=Object.prototype.toString,GA=es()();GA?(Um=Symbol.prototype.toString,Dm=/^Symbol\(.*\)$/,Mm=function(t){return typeof t.valueOf()!="symbol"?!1:Dm.test(Um.call(t))},vl.exports=function(t){if(typeof t=="symbol")return!0;if(VA.call(t)!=="[object Symbol]")return!1;try{return Mm(t)}catch{return!1}}):vl.exports=function(t){return!1};var Um,Dm,Mm});var qm=He((mM,zm)=>{"use strict";$();z();q();H();W();var $m=typeof BigInt<"u"&&BigInt;zm.exports=function(){return typeof $m=="function"&&typeof BigInt=="function"&&typeof $m(42)=="bigint"&&typeof BigInt(42)=="bigint"}});var Zm=He((SM,wl)=>{"use strict";$();z();q();H();W();var YA=qm()();YA?(Wm=BigInt.prototype.valueOf,Hm=function(t){try{return Wm.call(t),!0}catch{}return!1},wl.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Hm(t)}):wl.exports=function(t){return!1};var Wm,Hm});var Gm=He((xM,Vm)=>{"use strict";$();z();q();H();W();var KA=jf(),XA=Lm(),JA=Pm(),QA=jm(),eR=Zm();Vm.exports=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(KA(t))return"String";if(XA(t))return"Number";if(JA(t))return"Boolean";if(QA(t))return"Symbol";if(eR(t))return"BigInt"}});var Xm=He((FM,Km)=>{"use strict";$();z();q();H();W();var Es=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Ym=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Ss;Es||(Ss=function(t){return!1});var _l=Es?Es.prototype.has:null,bl=Ym?Ym.prototype.has:null;!Ss&&!_l&&(Ss=function(t){return!1});Km.exports=Ss||function(t){if(!t||typeof t!="object")return!1;try{if(_l.call(t,_l),bl)try{bl.call(t,bl)}catch{return!0}return t instanceof Es}catch{}return!1}});var Qm=He(($M,Sl)=>{"use strict";$();z();q();H();W();var tR=Ur(),Jm=lr(),rR=tR("%WeakSet%",!0),El=Jm("WeakSet.prototype.has",!0);El?(As=Jm("WeakMap.prototype.has",!0),Sl.exports=function(t){if(!t||typeof t!="object")return!1;try{if(El(t,El),As)try{As(t,As)}catch{return!0}return t instanceof rR}catch{}return!1}):Sl.exports=function(t){return!1};var As});var t0=He((VM,e0)=>{"use strict";$();z();q();H();W();var nR=zf(),iR=Wf(),oR=Xm(),aR=Qm();e0.exports=function(t){if(t&&typeof t=="object"){if(nR(t))return"Map";if(iR(t))return"Set";if(oR(t))return"WeakMap";if(aR(t))return"WeakSet"}return!1}});var u0=He((QM,s0)=>{"use strict";$();z();q();H();W();var n0=sl(),sR=fl(),i0=lr(),Al=ll(),uR=i0("Object.prototype.toString"),o0=mn()(),r0=typeof globalThis>"u"?se:globalThis,fR=sR(),lR=i0("String.prototype.slice"),a0={},Rl=Object.getPrototypeOf;o0&&Al&&Rl&&n0(fR,function(e){if(typeof r0[e]=="function"){var t=new r0[e];if(Symbol.toStringTag in t){var r=Rl(t),n=Al(r,Symbol.toStringTag);if(!n){var o=Rl(r);n=Al(o,Symbol.toStringTag)}a0[e]=n.get}}});var cR=function(t){var r=!1;return n0(a0,function(n,o){if(!r)try{var a=n.call(t);a===o&&(r=a)}catch{}}),r},hR=pl();s0.exports=function(t){return hR(t)?!o0||!(Symbol.toStringTag in t)?lR(uR(t),8,-1):cR(t):!1}});var c0=He((oj,l0)=>{"use strict";$();z();q();H();W();var pR=lr(),f0=pR("ArrayBuffer.prototype.byteLength",!0),dR=dl();l0.exports=function(t){return dR(t)?f0?f0(t):t.byteLength:NaN}});var P0=He((cj,F0)=>{"use strict";$();z();q();H();W();var N0=$y(),Xr=lr(),h0=Xy(),yR=Ur(),Gi=Vg(),gR=Uf(),p0=rm(),d0=Ef(),y0=Mf(),g0=dl(),m0=Sm(),v0=Im(),w0=Cm(),b0=Qa(),_0=Gm(),E0=t0(),S0=u0(),A0=c0(),R0=Xr("SharedArrayBuffer.prototype.byteLength",!0),T0=Xr("Date.prototype.getTime"),Tl=Object.getPrototypeOf,O0=Xr("Object.prototype.toString"),Ts=yR("%Set%",!0),Ol=Xr("Map.prototype.has",!0),Os=Xr("Map.prototype.get",!0),I0=Xr("Map.prototype.size",!0),Is=Xr("Set.prototype.add",!0),L0=Xr("Set.prototype.delete",!0),xs=Xr("Set.prototype.has",!0),Rs=Xr("Set.prototype.size",!0);function x0(e,t,r,n){for(var o=Gi(e),a;(a=o.next())&&!a.done;)if(Dr(t,a.value,r,n))return L0(e,a.value),!0;return!1}function k0(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function mR(e,t,r,n,o,a){var i=k0(r);if(i!=null)return i;var f=Os(t,i),l=N0({},o,{strict:!1});return typeof f>"u"&&!Ol(t,i)||!Dr(n,f,l,a)?!1:!Ol(e,i)&&Dr(n,f,l,a)}function vR(e,t,r){var n=k0(r);return n??(xs(t,n)&&!xs(e,n))}function B0(e,t,r,n,o,a){for(var i=Gi(e),f,l;(f=i.next())&&!f.done;)if(l=f.value,Dr(r,l,o,a)&&Dr(n,Os(t,l),o,a))return L0(e,l),!0;return!1}function Dr(e,t,r,n){var o=r||{};if(o.strict?p0(e,t):e===t)return!0;var a=_0(e),i=_0(t);if(a!==i)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?p0(e,t):e==t;var f=n.has(e),l=n.has(t),c;if(f&&l){if(n.get(e)===n.get(t))return!0}else c={};return f||n.set(e,c),l||n.set(t,c),_R(e,t,o,n)}function C0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function wR(e,t,r,n){if(Rs(e)!==Rs(t))return!1;for(var o=Gi(e),a=Gi(t),i,f,l;(i=o.next())&&!i.done;)if(i.value&&typeof i.value=="object")l||(l=new Ts),Is(l,i.value);else if(!xs(t,i.value)){if(r.strict||!vR(e,t,i.value))return!1;l||(l=new Ts),Is(l,i.value)}if(l){for(;(f=a.next())&&!f.done;)if(f.value&&typeof f.value=="object"){if(!x0(l,f.value,r.strict,n))return!1}else if(!r.strict&&!xs(e,f.value)&&!x0(l,f.value,r.strict,n))return!1;return Rs(l)===0}return!0}function bR(e,t,r,n){if(I0(e)!==I0(t))return!1;for(var o=Gi(e),a=Gi(t),i,f,l,c,d,y;(i=o.next())&&!i.done;)if(c=i.value[0],d=i.value[1],c&&typeof c=="object")l||(l=new Ts),Is(l,c);else if(y=Os(t,c),typeof y>"u"&&!Ol(t,c)||!Dr(d,y,r,n)){if(r.strict||!mR(e,t,c,d,r,n))return!1;l||(l=new Ts),Is(l,c)}if(l){for(;(f=a.next())&&!f.done;)if(c=f.value[0],y=f.value[1],c&&typeof c=="object"){if(!B0(l,e,c,y,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Dr(Os(e,c),y,r,n))&&!B0(l,e,c,y,N0({},r,{strict:!1}),n))return!1;return Rs(l)===0}return!0}function _R(e,t,r,n){var o,a;if(typeof e!=typeof t||e==null||t==null||O0(e)!==O0(t)||d0(e)!==d0(t))return!1;var i=y0(e),f=y0(t);if(i!==f)return!1;var l=e instanceof Error,c=t instanceof Error;if(l!==c||(l||c)&&(e.name!==t.name||e.message!==t.message))return!1;var d=v0(e),y=v0(t);if(d!==y||(d||y)&&(e.source!==t.source||h0(e)!==h0(t)))return!1;var v=m0(e),_=m0(t);if(v!==_||(v||_)&&T0(e)!==T0(t)||r.strict&&Tl&&Tl(e)!==Tl(t))return!1;var h=S0(e),w=S0(t);if((h||w)&&h!==w)return!1;var S=C0(e),T=C0(t);if(S!==T)return!1;if(S||T){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var C=g0(e),M=g0(t);if(C!==M)return!1;if(C||M)return A0(e)!==A0(t)?!1:typeof Uint8Array=="function"&&Dr(new Uint8Array(e),new Uint8Array(t),r,n);var D=w0(e),V=w0(t);if(D!==V)return!1;if(D||V)return R0(e)!==R0(t)?!1:typeof Uint8Array=="function"&&Dr(new Uint8Array(e),new Uint8Array(t),r,n);if(typeof e!=typeof t)return!1;var F=b0(e),N=b0(t);if(F.length!==N.length)return!1;for(F.sort(),N.sort(),o=F.length-1;o>=0;o--)if(F[o]!=N[o])return!1;for(o=F.length-1;o>=0;o--)if(a=F[o],!Dr(e[a],t[a],r,n))return!1;var x=E0(e),G=E0(t);return x!==G?!1:x==="Set"||G==="Set"?wR(e,t,r,n):x==="Map"?bR(e,t,r,n):!0}F0.exports=function(t,r,n){return Dr(t,r,n,gR())}});var j0=He((mj,M0)=>{"use strict";$();z();q();H();W();var ER=function(t){return SR(t)&&!AR(t)};function SR(e){return!!e&&typeof e=="object"}function AR(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||OR(e)}var RR=typeof Symbol=="function"&&Symbol.for,TR=RR?Symbol.for("react.element"):60103;function OR(e){return e.$$typeof===TR}function IR(e){return Array.isArray(e)?[]:{}}function Go(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Yi(IR(e),e,t):e}function xR(e,t,r){return e.concat(t).map(function(n){return Go(n,r)})}function BR(e,t){if(!t.customMerge)return Yi;var r=t.customMerge(e);return typeof r=="function"?r:Yi}function CR(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function U0(e){return Object.keys(e).concat(CR(e))}function D0(e,t){try{return t in e}catch{return!1}}function NR(e,t){return D0(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function LR(e,t,r){var n={};return r.isMergeableObject(e)&&U0(e).forEach(function(o){n[o]=Go(e[o],r)}),U0(t).forEach(function(o){NR(e,o)||(D0(e,o)&&r.isMergeableObject(t[o])?n[o]=BR(o,r)(e[o],t[o],r):n[o]=Go(t[o],r))}),n}function Yi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||xR,r.isMergeableObject=r.isMergeableObject||ER,r.cloneUnlessOtherwiseSpecified=Go;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):LR(e,t,r):Go(t,r)}Yi.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Yi(n,o,r)},{})};var kR=Yi;M0.exports=kR});var z0=He((xj,$0)=>{$();z();q();H();W();$0.exports=typeof self=="object"?self.FormData:window.FormData});var tv=He((Q0,ev)=>{$();z();q();H();W();(function(e){var t;typeof Q0=="object"?ev.exports=e():typeof define=="function"&&define.amd?define(e):(typeof window<"u"?t=window:typeof se<"u"?t=se:typeof self<"u"&&(t=self),t.objectHash=e())})(function(){return function e(t,r,n){function o(f,l){if(!r[f]){if(!t[f]){var c=typeof Ao=="function"&&Ao;if(!l&&c)return c(f,!0);if(a)return a(f,!0);throw new Error("Cannot find module '"+f+"'")}l=r[f]={exports:{}},t[f][0].call(l.exports,function(d){var y=t[f][1][d];return o(y||d)},l,l.exports,e,t,r,n)}return r[f].exports}for(var a=typeof Ao=="function"&&Ao,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){"use strict";var v=e("crypto");function _(D,V){V=S(D,V);var F;return(F=V.algorithm!=="passthrough"?v.createHash(V.algorithm):new M).write===void 0&&(F.write=F.update,F.end=F.update),C(V,F).dispatch(D),F.update||F.end(""),F.digest?F.digest(V.encoding==="buffer"?void 0:V.encoding):(D=F.read(),V.encoding!=="buffer"?D.toString(V.encoding):D)}(r=t.exports=_).sha1=function(D){return _(D)},r.keys=function(D){return _(D,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(D){return _(D,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(D){return _(D,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=v.getHashes?v.getHashes().slice():["sha1","md5"],w=(h.push("passthrough"),["buffer","hex","binary","base64"]);function S(D,V){var F={};if(F.algorithm=(V=V||{}).algorithm||"sha1",F.encoding=V.encoding||"hex",F.excludeValues=!!V.excludeValues,F.algorithm=F.algorithm.toLowerCase(),F.encoding=F.encoding.toLowerCase(),F.ignoreUnknown=V.ignoreUnknown===!0,F.respectType=V.respectType!==!1,F.respectFunctionNames=V.respectFunctionNames!==!1,F.respectFunctionProperties=V.respectFunctionProperties!==!1,F.unorderedArrays=V.unorderedArrays===!0,F.unorderedSets=V.unorderedSets!==!1,F.unorderedObjects=V.unorderedObjects!==!1,F.replacer=V.replacer||void 0,F.excludeKeys=V.excludeKeys||void 0,D===void 0)throw new Error("Object argument required.");for(var N=0;N<h.length;++N)h[N].toLowerCase()===F.algorithm.toLowerCase()&&(F.algorithm=h[N]);if(h.indexOf(F.algorithm)===-1)throw new Error('Algorithm "'+F.algorithm+'" not supported. supported values: '+h.join(", "));if(w.indexOf(F.encoding)===-1&&F.algorithm!=="passthrough")throw new Error('Encoding "'+F.encoding+'" not supported. supported values: '+w.join(", "));return F}function T(D){if(typeof D=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(D))!=null}function C(D,V,F){F=F||[];function N(x){return V.update?V.update(x,"utf8"):V.write(x,"utf8")}return{dispatch:function(x){return this["_"+((x=D.replacer?D.replacer(x):x)===null?"null":typeof x)](x)},_object:function(x){var G,Q=Object.prototype.toString.call(x),Te=/\[object (.*)\]/i.exec(Q);if(Te=(Te=Te?Te[1]:"unknown:["+Q+"]").toLowerCase(),0<=(Q=F.indexOf(x)))return this.dispatch("[CIRCULAR:"+Q+"]");if(F.push(x),a!==void 0&&a.isBuffer&&a.isBuffer(x))return N("buffer:"),N(x);if(Te==="object"||Te==="function"||Te==="asyncfunction")return Q=Object.keys(x),D.unorderedObjects&&(Q=Q.sort()),D.respectType===!1||T(x)||Q.splice(0,0,"prototype","__proto__","constructor"),D.excludeKeys&&(Q=Q.filter(function(K){return!D.excludeKeys(K)})),N("object:"+Q.length+":"),G=this,Q.forEach(function(K){G.dispatch(K),N(":"),D.excludeValues||G.dispatch(x[K]),N(",")});if(!this["_"+Te]){if(D.ignoreUnknown)return N("["+Te+"]");throw new Error('Unknown object type "'+Te+'"')}this["_"+Te](x)},_array:function(x,K){K=K!==void 0?K:D.unorderedArrays!==!1;var Q=this;if(N("array:"+x.length+":"),!K||x.length<=1)return x.forEach(function(re){return Q.dispatch(re)});var Te=[],K=x.map(function(re){var ae=new M,Ce=F.slice();return C(D,ae,Ce).dispatch(re),Te=Te.concat(Ce.slice(F.length)),ae.read().toString()});return F=F.concat(Te),K.sort(),this._array(K,!1)},_date:function(x){return N("date:"+x.toJSON())},_symbol:function(x){return N("symbol:"+x.toString())},_error:function(x){return N("error:"+x.toString())},_boolean:function(x){return N("bool:"+x.toString())},_string:function(x){N("string:"+x.length+":"),N(x.toString())},_function:function(x){N("fn:"),T(x)?this.dispatch("[native]"):this.dispatch(x.toString()),D.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(x.name)),D.respectFunctionProperties&&this._object(x)},_number:function(x){return N("number:"+x.toString())},_xml:function(x){return N("xml:"+x.toString())},_null:function(){return N("Null")},_undefined:function(){return N("Undefined")},_regexp:function(x){return N("regex:"+x.toString())},_uint8array:function(x){return N("uint8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint8clampedarray:function(x){return N("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(x))},_int8array:function(x){return N("int8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint16array:function(x){return N("uint16array:"),this.dispatch(Array.prototype.slice.call(x))},_int16array:function(x){return N("int16array:"),this.dispatch(Array.prototype.slice.call(x))},_uint32array:function(x){return N("uint32array:"),this.dispatch(Array.prototype.slice.call(x))},_int32array:function(x){return N("int32array:"),this.dispatch(Array.prototype.slice.call(x))},_float32array:function(x){return N("float32array:"),this.dispatch(Array.prototype.slice.call(x))},_float64array:function(x){return N("float64array:"),this.dispatch(Array.prototype.slice.call(x))},_arraybuffer:function(x){return N("arraybuffer:"),this.dispatch(new Uint8Array(x))},_url:function(x){return N("url:"+x.toString())},_map:function(x){return N("map:"),x=Array.from(x),this._array(x,D.unorderedSets!==!1)},_set:function(x){return N("set:"),x=Array.from(x),this._array(x,D.unorderedSets!==!1)},_file:function(x){return N("file:"),this.dispatch([x.name,x.size,x.type,x.lastModfied])},_blob:function(){if(D.ignoreUnknown)return N("[blob]");throw Error(`Hashing Blob objects is currently not supported
(see https://github.com/puleos/object-hash/issues/26)
Use "options.replacer" or "options.ignoreUnknown"
`)},_domwindow:function(){return N("domwindow")},_bigint:function(x){return N("bigint:"+x.toString())},_process:function(){return N("process")},_timer:function(){return N("timer")},_pipe:function(){return N("pipe")},_tcp:function(){return N("tcp")},_udp:function(){return N("udp")},_tty:function(){return N("tty")},_statwatcher:function(){return N("statwatcher")},_securecontext:function(){return N("securecontext")},_connection:function(){return N("connection")},_zlib:function(){return N("zlib")},_context:function(){return N("context")},_nodescript:function(){return N("nodescript")},_httpparser:function(){return N("httpparser")},_dataview:function(){return N("dataview")},_signal:function(){return N("signal")},_fsevent:function(){return N("fsevent")},_tlswrap:function(){return N("tlswrap")}}}function M(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}r.writeToStream=function(D,V,F){return F===void 0&&(F=V,V={}),C(V=S(D,V),F).dispatch(D)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){(function(v){"use strict";var _=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),w="/".charCodeAt(0),S="0".charCodeAt(0),T="a".charCodeAt(0),C="A".charCodeAt(0),M="-".charCodeAt(0),D="_".charCodeAt(0);function V(F){return F=F.charCodeAt(0),F===h||F===M?62:F===w||F===D?63:F<S?-1:F<S+10?F-S+26+26:F<C+26?F-C:F<T+26?F-T+26:void 0}v.toByteArray=function(F){var N,x;if(0<F.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var G=F.length,G=F.charAt(G-2)==="="?2:F.charAt(G-1)==="="?1:0,Q=new _(3*F.length/4-G),Te=0<G?F.length-4:F.length,K=0;function re(ae){Q[K++]=ae}for(N=0;N<Te;N+=4,0)re((16711680&(x=V(F.charAt(N))<<18|V(F.charAt(N+1))<<12|V(F.charAt(N+2))<<6|V(F.charAt(N+3))))>>16),re((65280&x)>>8),re(255&x);return G==2?re(255&(x=V(F.charAt(N))<<2|V(F.charAt(N+1))>>4)):G==1&&(re((x=V(F.charAt(N))<<10|V(F.charAt(N+1))<<4|V(F.charAt(N+2))>>2)>>8&255),re(255&x)),Q},v.fromByteArray=function(F){var N,x,G,Q,Te=F.length%3,K="";function re(ae){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ae)}for(N=0,G=F.length-Te;N<G;N+=3)x=(F[N]<<16)+(F[N+1]<<8)+F[N+2],K+=re((Q=x)>>18&63)+re(Q>>12&63)+re(Q>>6&63)+re(63&Q);switch(Te){case 1:K=(K+=re((x=F[F.length-1])>>2))+re(x<<4&63)+"==";break;case 2:K=(K=(K+=re((x=(F[F.length-2]<<8)+F[F.length-1])>>10))+re(x>>4&63))+re(x<<2&63)+"="}return K}})(r===void 0?this.base64js={}:r)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,r){(function(n,o,h,i,f,l,c,d,y){var v=e("base64-js"),_=e("ieee754");function h(A,O,Y){if(!(this instanceof h))return new h(A,O,Y);var fe,ge,k,Z,Se=typeof A;if(O==="base64"&&Se=="string")for(A=(Z=A).trim?Z.trim():Z.replace(/^\s+|\s+$/g,"");A.length%4!=0;)A+="=";if(Se=="number")fe=Ne(A);else if(Se=="string")fe=h.byteLength(A,O);else{if(Se!="object")throw new Error("First argument needs to be a number, array or string.");fe=Ne(A.length)}if(h._useTypedArrays?ge=h._augment(new Uint8Array(fe)):((ge=this).length=fe,ge._isBuffer=!0),h._useTypedArrays&&typeof A.byteLength=="number")ge._set(A);else if(ne(Z=A)||h.isBuffer(Z)||Z&&typeof Z=="object"&&typeof Z.length=="number")for(k=0;k<fe;k++)h.isBuffer(A)?ge[k]=A.readUInt8(k):ge[k]=A[k];else if(Se=="string")ge.write(A,0,O);else if(Se=="number"&&!h._useTypedArrays&&!Y)for(k=0;k<fe;k++)ge[k]=0;return ge}function w(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k=[],Z=0;Z<ge.length;Z++)k.push(255&ge.charCodeAt(Z));return k}(O),A,Y,fe)}function S(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k,Z,Se=[],ke=0;ke<ge.length;ke++)Z=ge.charCodeAt(ke),k=Z>>8,Z=Z%256,Se.push(Z),Se.push(k);return Se}(O),A,Y,fe)}function T(A,O,Y){var fe="";Y=Math.min(A.length,Y);for(var ge=O;ge<Y;ge++)fe+=String.fromCharCode(A[ge]);return fe}function C(A,O,Y,k){k||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+1<A.length,"Trying to read beyond buffer length"));var ge,k=A.length;if(!(k<=O))return Y?(ge=A[O],O+1<k&&(ge|=A[O+1]<<8)):(ge=A[O]<<8,O+1<k&&(ge|=A[O+1])),ge}function M(A,O,Y,k){k||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+3<A.length,"Trying to read beyond buffer length"));var ge,k=A.length;if(!(k<=O))return Y?(O+2<k&&(ge=A[O+2]<<16),O+1<k&&(ge|=A[O+1]<<8),ge|=A[O],O+3<k&&(ge+=A[O+3]<<24>>>0)):(O+1<k&&(ge=A[O+1]<<16),O+2<k&&(ge|=A[O+2]<<8),O+3<k&&(ge|=A[O+3]),ge+=A[O]<<24>>>0),ge}function D(A,O,Y,fe){if(fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+1<A.length,"Trying to read beyond buffer length")),!(A.length<=O))return fe=C(A,O,Y,!0),32768&fe?-1*(65535-fe+1):fe}function V(A,O,Y,fe){if(fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O!=null,"missing offset"),xe(O+3<A.length,"Trying to read beyond buffer length")),!(A.length<=O))return fe=M(A,O,Y,!0),2147483648&fe?-1*(4294967295-fe+1):fe}function F(A,O,Y,fe){return fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O+3<A.length,"Trying to read beyond buffer length")),_.read(A,O,Y,23,4)}function N(A,O,Y,fe){return fe||(xe(typeof Y=="boolean","missing or invalid endian"),xe(O+7<A.length,"Trying to read beyond buffer length")),_.read(A,O,Y,52,8)}function x(A,O,Y,fe,ge){if(ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+1<A.length,"trying to write beyond buffer length"),je(O,65535)),ge=A.length,!(ge<=Y))for(var k=0,Z=Math.min(ge-Y,2);k<Z;k++)A[Y+k]=(O&255<<8*(fe?k:1-k))>>>8*(fe?k:1-k)}function G(A,O,Y,fe,ge){if(ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"trying to write beyond buffer length"),je(O,4294967295)),ge=A.length,!(ge<=Y))for(var k=0,Z=Math.min(ge-Y,4);k<Z;k++)A[Y+k]=O>>>8*(fe?k:3-k)&255}function Q(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+1<A.length,"Trying to write beyond buffer length"),Je(O,32767,-32768)),A.length<=Y||x(A,0<=O?O:65535+O+1,Y,fe,ge)}function Te(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"Trying to write beyond buffer length"),Je(O,2147483647,-2147483648)),A.length<=Y||G(A,0<=O?O:4294967295+O+1,Y,fe,ge)}function K(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+3<A.length,"Trying to write beyond buffer length"),Ve(O,34028234663852886e22,-34028234663852886e22)),A.length<=Y||_.write(A,O,Y,fe,23,4)}function re(A,O,Y,fe,ge){ge||(xe(O!=null,"missing value"),xe(typeof fe=="boolean","missing or invalid endian"),xe(Y!=null,"missing offset"),xe(Y+7<A.length,"Trying to write beyond buffer length"),Ve(O,17976931348623157e292,-17976931348623157e292)),A.length<=Y||_.write(A,O,Y,fe,52,8)}r.Buffer=h,r.SlowBuffer=h,r.INSPECT_MAX_BYTES=50,h.poolSize=8192,h._useTypedArrays=function(){try{var A=new ArrayBuffer(0),O=new Uint8Array(A);return O.foo=function(){return 42},O.foo()===42&&typeof O.subarray=="function"}catch{return!1}}(),h.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.isBuffer=function(A){return!(A==null||!A._isBuffer)},h.byteLength=function(A,O){var Y;switch(A+="",O||"utf8"){case"hex":Y=A.length/2;break;case"utf8":case"utf-8":Y=ye(A).length;break;case"ascii":case"binary":case"raw":Y=A.length;break;case"base64":Y=me(A).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=2*A.length;break;default:throw new Error("Unknown encoding")}return Y},h.concat=function(A,O){if(xe(ne(A),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),A.length===0)return new h(0);if(A.length===1)return A[0];if(typeof O!="number")for(ge=O=0;ge<A.length;ge++)O+=A[ge].length;for(var Y=new h(O),fe=0,ge=0;ge<A.length;ge++){var k=A[ge];k.copy(Y,fe),fe+=k.length}return Y},h.prototype.write=function(A,O,Y,fe){isFinite(O)?isFinite(Y)||(fe=Y,Y=void 0):(ke=fe,fe=O,O=Y,Y=ke),O=Number(O)||0;var ge,k,Z,Se,ke=this.length-O;switch((!Y||ke<(Y=Number(Y)))&&(Y=ke),fe=String(fe||"utf8").toLowerCase()){case"hex":ge=function(De,$e,Me,ot){Me=Number(Me)||0;var nt=De.length-Me;(!ot||nt<(ot=Number(ot)))&&(ot=nt),xe((nt=$e.length)%2==0,"Invalid hex string"),nt/2<ot&&(ot=nt/2);for(var et=0;et<ot;et++){var bt=parseInt($e.substr(2*et,2),16);xe(!isNaN(bt),"Invalid hex string"),De[Me+et]=bt}return h._charsWritten=2*et,et}(this,A,O,Y);break;case"utf8":case"utf-8":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(ye(A),k,Z,Se);break;case"ascii":case"binary":ge=w(this,A,O,Y);break;case"base64":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(me(A),k,Z,Se);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ge=S(this,A,O,Y);break;default:throw new Error("Unknown encoding")}return ge},h.prototype.toString=function(A,O,Y){var fe,ge,k,Z,Se=this;if(A=String(A||"utf8").toLowerCase(),O=Number(O)||0,(Y=Y!==void 0?Number(Y):Se.length)===O)return"";switch(A){case"hex":fe=function(ke,De,$e){var Me=ke.length;(!De||De<0)&&(De=0),(!$e||$e<0||Me<$e)&&($e=Me);for(var ot="",nt=De;nt<$e;nt++)ot+=te(ke[nt]);return ot}(Se,O,Y);break;case"utf8":case"utf-8":fe=function(ke,De,$e){var Me="",ot="";$e=Math.min(ke.length,$e);for(var nt=De;nt<$e;nt++)ke[nt]<=127?(Me+=ze(ot)+String.fromCharCode(ke[nt]),ot=""):ot+="%"+ke[nt].toString(16);return Me+ze(ot)}(Se,O,Y);break;case"ascii":case"binary":fe=T(Se,O,Y);break;case"base64":ge=Se,Z=Y,fe=(k=O)===0&&Z===ge.length?v.fromByteArray(ge):v.fromByteArray(ge.slice(k,Z));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":fe=function(ke,De,$e){for(var Me=ke.slice(De,$e),ot="",nt=0;nt<Me.length;nt+=2)ot+=String.fromCharCode(Me[nt]+256*Me[nt+1]);return ot}(Se,O,Y);break;default:throw new Error("Unknown encoding")}return fe},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(A,O,Y,fe){if(O=O||0,(fe=fe||fe===0?fe:this.length)!==(Y=Y||0)&&A.length!==0&&this.length!==0){xe(Y<=fe,"sourceEnd < sourceStart"),xe(0<=O&&O<A.length,"targetStart out of bounds"),xe(0<=Y&&Y<this.length,"sourceStart out of bounds"),xe(0<=fe&&fe<=this.length,"sourceEnd out of bounds"),fe>this.length&&(fe=this.length);var ge=(fe=A.length-O<fe-Y?A.length-O+Y:fe)-Y;if(ge<100||!h._useTypedArrays)for(var k=0;k<ge;k++)A[k+O]=this[k+Y];else A._set(this.subarray(Y,Y+ge),O)}},h.prototype.slice=function(A,O){var Y=this.length;if(A=Ce(A,Y,0),O=Ce(O,Y,Y),h._useTypedArrays)return h._augment(this.subarray(A,O));for(var fe=O-A,ge=new h(fe,void 0,!0),k=0;k<fe;k++)ge[k]=this[k+A];return ge},h.prototype.get=function(A){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(A)},h.prototype.set=function(A,O){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(A,O)},h.prototype.readUInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return this[A]},h.prototype.readUInt16LE=function(A,O){return C(this,A,!0,O)},h.prototype.readUInt16BE=function(A,O){return C(this,A,!1,O)},h.prototype.readUInt32LE=function(A,O){return M(this,A,!0,O)},h.prototype.readUInt32BE=function(A,O){return M(this,A,!1,O)},h.prototype.readInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return 128&this[A]?-1*(255-this[A]+1):this[A]},h.prototype.readInt16LE=function(A,O){return D(this,A,!0,O)},h.prototype.readInt16BE=function(A,O){return D(this,A,!1,O)},h.prototype.readInt32LE=function(A,O){return V(this,A,!0,O)},h.prototype.readInt32BE=function(A,O){return V(this,A,!1,O)},h.prototype.readFloatLE=function(A,O){return F(this,A,!0,O)},h.prototype.readFloatBE=function(A,O){return F(this,A,!1,O)},h.prototype.readDoubleLE=function(A,O){return N(this,A,!0,O)},h.prototype.readDoubleBE=function(A,O){return N(this,A,!1,O)},h.prototype.writeUInt8=function(A,O,Y){Y||(xe(A!=null,"missing value"),xe(O!=null,"missing offset"),xe(O<this.length,"trying to write beyond buffer length"),je(A,255)),O>=this.length||(this[O]=A)},h.prototype.writeUInt16LE=function(A,O,Y){x(this,A,O,!0,Y)},h.prototype.writeUInt16BE=function(A,O,Y){x(this,A,O,!1,Y)},h.prototype.writeUInt32LE=function(A,O,Y){G(this,A,O,!0,Y)},h.prototype.writeUInt32BE=function(A,O,Y){G(this,A,O,!1,Y)},h.prototype.writeInt8=function(A,O,Y){Y||(xe(A!=null,"missing value"),xe(O!=null,"missing offset"),xe(O<this.length,"Trying to write beyond buffer length"),Je(A,127,-128)),O>=this.length||(0<=A?this.writeUInt8(A,O,Y):this.writeUInt8(255+A+1,O,Y))},h.prototype.writeInt16LE=function(A,O,Y){Q(this,A,O,!0,Y)},h.prototype.writeInt16BE=function(A,O,Y){Q(this,A,O,!1,Y)},h.prototype.writeInt32LE=function(A,O,Y){Te(this,A,O,!0,Y)},h.prototype.writeInt32BE=function(A,O,Y){Te(this,A,O,!1,Y)},h.prototype.writeFloatLE=function(A,O,Y){K(this,A,O,!0,Y)},h.prototype.writeFloatBE=function(A,O,Y){K(this,A,O,!1,Y)},h.prototype.writeDoubleLE=function(A,O,Y){re(this,A,O,!0,Y)},h.prototype.writeDoubleBE=function(A,O,Y){re(this,A,O,!1,Y)},h.prototype.fill=function(A,O,Y){if(O=O||0,Y=Y||this.length,xe(typeof(A=typeof(A=A||0)=="string"?A.charCodeAt(0):A)=="number"&&!isNaN(A),"value is not a number"),xe(O<=Y,"end < start"),Y!==O&&this.length!==0){xe(0<=O&&O<this.length,"start out of bounds"),xe(0<=Y&&Y<=this.length,"end out of bounds");for(var fe=O;fe<Y;fe++)this[fe]=A}},h.prototype.inspect=function(){for(var A=[],O=this.length,Y=0;Y<O;Y++)if(A[Y]=te(this[Y]),Y===r.INSPECT_MAX_BYTES){A[Y+1]="...";break}return"<Buffer "+A.join(" ")+">"},h.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var A=new Uint8Array(this.length),O=0,Y=A.length;O<Y;O+=1)A[O]=this[O];return A.buffer};var ae=h.prototype;function Ce(A,O,Y){return typeof A!="number"?Y:O<=(A=~~A)?O:0<=A||0<=(A+=O)?A:0}function Ne(A){return(A=~~Math.ceil(+A))<0?0:A}function ne(A){return(Array.isArray||function(O){return Object.prototype.toString.call(O)==="[object Array]"})(A)}function te(A){return A<16?"0"+A.toString(16):A.toString(16)}function ye(A){for(var O=[],Y=0;Y<A.length;Y++){var fe=A.charCodeAt(Y);if(fe<=127)O.push(A.charCodeAt(Y));else for(var ge=Y,k=(55296<=fe&&fe<=57343&&Y++,encodeURIComponent(A.slice(ge,Y+1)).substr(1).split("%")),Z=0;Z<k.length;Z++)O.push(parseInt(k[Z],16))}return O}function me(A){return v.toByteArray(A)}function Re(A,O,Y,fe){for(var ge=0;ge<fe&&!(ge+Y>=O.length||ge>=A.length);ge++)O[ge+Y]=A[ge];return ge}function ze(A){try{return decodeURIComponent(A)}catch{return String.fromCharCode(65533)}}function je(A,O){xe(typeof A=="number","cannot write a non-number as a number"),xe(0<=A,"specified a negative value for writing an unsigned value"),xe(A<=O,"value is larger than maximum value for type"),xe(Math.floor(A)===A,"value has a fractional component")}function Je(A,O,Y){xe(typeof A=="number","cannot write a non-number as a number"),xe(A<=O,"value larger than maximum allowed value"),xe(Y<=A,"value smaller than minimum allowed value"),xe(Math.floor(A)===A,"value has a fractional component")}function Ve(A,O,Y){xe(typeof A=="number","cannot write a non-number as a number"),xe(A<=O,"value larger than maximum allowed value"),xe(Y<=A,"value smaller than minimum allowed value")}function xe(A,O){if(!A)throw new Error(O||"Failed assertion")}h._augment=function(A){return A._isBuffer=!0,A._get=A.get,A._set=A.set,A.get=ae.get,A.set=ae.set,A.write=ae.write,A.toString=ae.toString,A.toLocaleString=ae.toString,A.toJSON=ae.toJSON,A.copy=ae.copy,A.slice=ae.slice,A.readUInt8=ae.readUInt8,A.readUInt16LE=ae.readUInt16LE,A.readUInt16BE=ae.readUInt16BE,A.readUInt32LE=ae.readUInt32LE,A.readUInt32BE=ae.readUInt32BE,A.readInt8=ae.readInt8,A.readInt16LE=ae.readInt16LE,A.readInt16BE=ae.readInt16BE,A.readInt32LE=ae.readInt32LE,A.readInt32BE=ae.readInt32BE,A.readFloatLE=ae.readFloatLE,A.readFloatBE=ae.readFloatBE,A.readDoubleLE=ae.readDoubleLE,A.readDoubleBE=ae.readDoubleBE,A.writeUInt8=ae.writeUInt8,A.writeUInt16LE=ae.writeUInt16LE,A.writeUInt16BE=ae.writeUInt16BE,A.writeUInt32LE=ae.writeUInt32LE,A.writeUInt32BE=ae.writeUInt32BE,A.writeInt8=ae.writeInt8,A.writeInt16LE=ae.writeInt16LE,A.writeInt16BE=ae.writeInt16BE,A.writeInt32LE=ae.writeInt32LE,A.writeInt32BE=ae.writeInt32BE,A.writeFloatLE=ae.writeFloatLE,A.writeFloatBE=ae.writeFloatBE,A.writeDoubleLE=ae.writeDoubleLE,A.writeDoubleBE=ae.writeDoubleBE,A.fill=ae.fill,A.inspect=ae.inspect,A.toArrayBuffer=ae.toArrayBuffer,A}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,r){(function(n,o,v,i,f,l,c,d,y){var v=e("buffer").Buffer,_=4,h=new v(_);h.fill(0),t.exports={hash:function(w,S,T,C){for(var M=S(function(x,G){x.length%_!=0&&(Q=x.length+(_-x.length%_),x=v.concat([x,h],Q));for(var Q,Te=[],K=G?x.readInt32BE:x.readInt32LE,re=0;re<x.length;re+=_)Te.push(K.call(x,re));return Te}(w=v.isBuffer(w)?w:new v(w),C),8*w.length),S=C,D=new v(T),V=S?D.writeInt32BE:D.writeInt32LE,F=0;F<M.length;F++)V.call(D,M[F],4*F,!0);return D}}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,r){(function(n,o,v,i,f,l,c,d,y){var v=e("buffer").Buffer,_=e("./sha"),h=e("./sha256"),w=e("./rng"),S={sha1:_,sha256:h,md5:e("./md5")},T=64,C=new v(T);function M(x,G){var Q=S[x=x||"sha1"],Te=[];return Q||D("algorithm:",x,"is not yet supported"),{update:function(K){return v.isBuffer(K)||(K=new v(K)),Te.push(K),K.length,this},digest:function(K){var re=v.concat(Te),re=G?function(ae,Ce,Ne){v.isBuffer(Ce)||(Ce=new v(Ce)),v.isBuffer(Ne)||(Ne=new v(Ne)),Ce.length>T?Ce=ae(Ce):Ce.length<T&&(Ce=v.concat([Ce,C],T));for(var ne=new v(T),te=new v(T),ye=0;ye<T;ye++)ne[ye]=54^Ce[ye],te[ye]=92^Ce[ye];return Ne=ae(v.concat([ne,Ne])),ae(v.concat([te,Ne]))}(Q,G,re):Q(re);return Te=null,K?re.toString(K):re}}}function D(){var x=[].slice.call(arguments).join(" ");throw new Error([x,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}C.fill(0),r.createHash=function(x){return M(x)},r.createHmac=M,r.randomBytes=function(x,G){if(!G||!G.call)return new v(w(x));try{G.call(this,void 0,new v(w(x)))}catch(Q){G(Q)}};var V,F=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],N=function(x){r[x]=function(){D("sorry,",x,"is not implemented yet")}};for(V in F)N(F[V],V)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v=e("./helpers");function _(D,V){D[V>>5]|=128<<V%32,D[14+(V+64>>>9<<4)]=V;for(var F=1732584193,N=-271733879,x=-1732584194,G=271733878,Q=0;Q<D.length;Q+=16){var Te=F,K=N,re=x,ae=G,F=w(F,N,x,G,D[Q+0],7,-680876936),G=w(G,F,N,x,D[Q+1],12,-389564586),x=w(x,G,F,N,D[Q+2],17,606105819),N=w(N,x,G,F,D[Q+3],22,-1044525330);F=w(F,N,x,G,D[Q+4],7,-176418897),G=w(G,F,N,x,D[Q+5],12,1200080426),x=w(x,G,F,N,D[Q+6],17,-1473231341),N=w(N,x,G,F,D[Q+7],22,-45705983),F=w(F,N,x,G,D[Q+8],7,1770035416),G=w(G,F,N,x,D[Q+9],12,-1958414417),x=w(x,G,F,N,D[Q+10],17,-42063),N=w(N,x,G,F,D[Q+11],22,-1990404162),F=w(F,N,x,G,D[Q+12],7,1804603682),G=w(G,F,N,x,D[Q+13],12,-40341101),x=w(x,G,F,N,D[Q+14],17,-1502002290),F=S(F,N=w(N,x,G,F,D[Q+15],22,1236535329),x,G,D[Q+1],5,-165796510),G=S(G,F,N,x,D[Q+6],9,-1069501632),x=S(x,G,F,N,D[Q+11],14,643717713),N=S(N,x,G,F,D[Q+0],20,-373897302),F=S(F,N,x,G,D[Q+5],5,-701558691),G=S(G,F,N,x,D[Q+10],9,38016083),x=S(x,G,F,N,D[Q+15],14,-660478335),N=S(N,x,G,F,D[Q+4],20,-405537848),F=S(F,N,x,G,D[Q+9],5,568446438),G=S(G,F,N,x,D[Q+14],9,-1019803690),x=S(x,G,F,N,D[Q+3],14,-187363961),N=S(N,x,G,F,D[Q+8],20,1163531501),F=S(F,N,x,G,D[Q+13],5,-1444681467),G=S(G,F,N,x,D[Q+2],9,-51403784),x=S(x,G,F,N,D[Q+7],14,1735328473),F=T(F,N=S(N,x,G,F,D[Q+12],20,-1926607734),x,G,D[Q+5],4,-378558),G=T(G,F,N,x,D[Q+8],11,-2022574463),x=T(x,G,F,N,D[Q+11],16,1839030562),N=T(N,x,G,F,D[Q+14],23,-35309556),F=T(F,N,x,G,D[Q+1],4,-1530992060),G=T(G,F,N,x,D[Q+4],11,1272893353),x=T(x,G,F,N,D[Q+7],16,-155497632),N=T(N,x,G,F,D[Q+10],23,-1094730640),F=T(F,N,x,G,D[Q+13],4,681279174),G=T(G,F,N,x,D[Q+0],11,-358537222),x=T(x,G,F,N,D[Q+3],16,-722521979),N=T(N,x,G,F,D[Q+6],23,76029189),F=T(F,N,x,G,D[Q+9],4,-640364487),G=T(G,F,N,x,D[Q+12],11,-421815835),x=T(x,G,F,N,D[Q+15],16,530742520),F=C(F,N=T(N,x,G,F,D[Q+2],23,-995338651),x,G,D[Q+0],6,-198630844),G=C(G,F,N,x,D[Q+7],10,1126891415),x=C(x,G,F,N,D[Q+14],15,-1416354905),N=C(N,x,G,F,D[Q+5],21,-57434055),F=C(F,N,x,G,D[Q+12],6,1700485571),G=C(G,F,N,x,D[Q+3],10,-1894986606),x=C(x,G,F,N,D[Q+10],15,-1051523),N=C(N,x,G,F,D[Q+1],21,-2054922799),F=C(F,N,x,G,D[Q+8],6,1873313359),G=C(G,F,N,x,D[Q+15],10,-30611744),x=C(x,G,F,N,D[Q+6],15,-1560198380),N=C(N,x,G,F,D[Q+13],21,1309151649),F=C(F,N,x,G,D[Q+4],6,-145523070),G=C(G,F,N,x,D[Q+11],10,-1120210379),x=C(x,G,F,N,D[Q+2],15,718787259),N=C(N,x,G,F,D[Q+9],21,-343485551),F=M(F,Te),N=M(N,K),x=M(x,re),G=M(G,ae)}return Array(F,N,x,G)}function h(D,V,F,N,x,G){return M((V=M(M(V,D),M(N,G)))<<x|V>>>32-x,F)}function w(D,V,F,N,x,G,Q){return h(V&F|~V&N,D,V,x,G,Q)}function S(D,V,F,N,x,G,Q){return h(V&N|F&~N,D,V,x,G,Q)}function T(D,V,F,N,x,G,Q){return h(V^F^N,D,V,x,G,Q)}function C(D,V,F,N,x,G,Q){return h(F^(V|~N),D,V,x,G,Q)}function M(D,V){var F=(65535&D)+(65535&V);return(D>>16)+(V>>16)+(F>>16)<<16|65535&F}t.exports=function(D){return v.hash(D,_,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v;t.exports=v||function(_){for(var h,w=new Array(_),S=0;S<_;S++)!(3&S)&&(h=4294967296*Math.random()),w[S]=h>>>((3&S)<<3)&255;return w}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v=e("./helpers");function _(S,T){S[T>>5]|=128<<24-T%32,S[15+(T+64>>9<<4)]=T;for(var C,M,D,V=Array(80),F=1732584193,N=-271733879,x=-1732584194,G=271733878,Q=-1009589776,Te=0;Te<S.length;Te+=16){for(var K=F,re=N,ae=x,Ce=G,Ne=Q,ne=0;ne<80;ne++){V[ne]=ne<16?S[Te+ne]:w(V[ne-3]^V[ne-8]^V[ne-14]^V[ne-16],1);var te=h(h(w(F,5),(te=N,M=x,D=G,(C=ne)<20?te&M|~te&D:!(C<40)&&C<60?te&M|te&D|M&D:te^M^D)),h(h(Q,V[ne]),(C=ne)<20?1518500249:C<40?1859775393:C<60?-1894007588:-899497514)),Q=G,G=x,x=w(N,30),N=F,F=te}F=h(F,K),N=h(N,re),x=h(x,ae),G=h(G,Ce),Q=h(Q,Ne)}return Array(F,N,x,G,Q)}function h(S,T){var C=(65535&S)+(65535&T);return(S>>16)+(T>>16)+(C>>16)<<16|65535&C}function w(S,T){return S<<T|S>>>32-T}t.exports=function(S){return v.hash(S,_,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){function v(T,C){var M=(65535&T)+(65535&C);return(T>>16)+(C>>16)+(M>>16)<<16|65535&M}function _(T,C){var M,D=new Array(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),V=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),F=new Array(64);T[C>>5]|=128<<24-C%32,T[15+(C+64>>9<<4)]=C;for(var N,x,G=0;G<T.length;G+=16){for(var Q=V[0],Te=V[1],K=V[2],re=V[3],ae=V[4],Ce=V[5],Ne=V[6],ne=V[7],te=0;te<64;te++)F[te]=te<16?T[te+G]:v(v(v((x=F[te-2],w(x,17)^w(x,19)^S(x,10)),F[te-7]),(x=F[te-15],w(x,7)^w(x,18)^S(x,3))),F[te-16]),M=v(v(v(v(ne,w(x=ae,6)^w(x,11)^w(x,25)),ae&Ce^~ae&Ne),D[te]),F[te]),N=v(w(N=Q,2)^w(N,13)^w(N,22),Q&Te^Q&K^Te&K),ne=Ne,Ne=Ce,Ce=ae,ae=v(re,M),re=K,K=Te,Te=Q,Q=v(M,N);V[0]=v(Q,V[0]),V[1]=v(Te,V[1]),V[2]=v(K,V[2]),V[3]=v(re,V[3]),V[4]=v(ae,V[4]),V[5]=v(Ce,V[5]),V[6]=v(Ne,V[6]),V[7]=v(ne,V[7])}return V}var h=e("./helpers"),w=function(T,C){return T>>>C|T<<32-C},S=function(T,C){return T>>>C};t.exports=function(T){return h.hash(T,_,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){r.read=function(v,_,h,w,G){var T,C,M=8*G-w-1,D=(1<<M)-1,V=D>>1,F=-7,N=h?G-1:0,x=h?-1:1,G=v[_+N];for(N+=x,T=G&(1<<-F)-1,G>>=-F,F+=M;0<F;T=256*T+v[_+N],N+=x,F-=8);for(C=T&(1<<-F)-1,T>>=-F,F+=w;0<F;C=256*C+v[_+N],N+=x,F-=8);if(T===0)T=1-V;else{if(T===D)return C?NaN:1/0*(G?-1:1);C+=Math.pow(2,w),T-=V}return(G?-1:1)*C*Math.pow(2,T-w)},r.write=function(v,_,h,w,S,Q){var C,M,D=8*Q-S-1,V=(1<<D)-1,F=V>>1,N=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=w?0:Q-1,G=w?1:-1,Q=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(M=isNaN(_)?1:0,C=V):(C=Math.floor(Math.log(_)/Math.LN2),_*(w=Math.pow(2,-C))<1&&(C--,w*=2),2<=(_+=1<=C+F?N/w:N*Math.pow(2,1-F))*w&&(C++,w/=2),V<=C+F?(M=0,C=V):1<=C+F?(M=(_*w-1)*Math.pow(2,S),C+=F):(M=_*Math.pow(2,F-1)*Math.pow(2,S),C=0));8<=S;v[h+x]=255&M,x+=G,M/=256,S-=8);for(C=C<<S|M,D+=S;0<D;v[h+x]=255&C,x+=G,C/=256,D-=8);v[h+x-G]|=128*Q}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v,_,h;function w(){}(n=t.exports={}).nextTick=(_=typeof window<"u"&&window.setImmediate,h=typeof window<"u"&&window.postMessage&&window.addEventListener,_?function(S){return window.setImmediate(S)}:h?(v=[],window.addEventListener("message",function(S){var T=S.source;T!==window&&T!==null||S.data!=="process-tick"||(S.stopPropagation(),0<v.length&&v.shift()())},!0),function(S){v.push(S),window.postMessage("process-tick","*")}):function(S){setTimeout(S,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=w,n.addListener=w,n.once=w,n.off=w,n.removeListener=w,n.removeAllListeners=w,n.emit=w,n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var nv=He((T7,rv)=>{$();z();q();H();W();rv.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}});var av=He($s=>{"use strict";$();z();q();H();W();$s.byteLength=YR;$s.toByteArray=XR;$s.fromByteArray=eT;var on=[],Ir=[],GR=typeof Uint8Array<"u"?Uint8Array:Array,Dl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(li=0,iv=Dl.length;li<iv;++li)on[li]=Dl[li],Ir[Dl.charCodeAt(li)]=li;var li,iv;Ir["-".charCodeAt(0)]=62;Ir["_".charCodeAt(0)]=63;function ov(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function YR(e){var t=ov(e),r=t[0],n=t[1];return(r+n)*3/4-n}function KR(e,t,r){return(t+r)*3/4-r}function XR(e){var t,r=ov(e),n=r[0],o=r[1],a=new GR(KR(e,n,o)),i=0,f=o>0?n-4:n,l;for(l=0;l<f;l+=4)t=Ir[e.charCodeAt(l)]<<18|Ir[e.charCodeAt(l+1)]<<12|Ir[e.charCodeAt(l+2)]<<6|Ir[e.charCodeAt(l+3)],a[i++]=t>>16&255,a[i++]=t>>8&255,a[i++]=t&255;return o===2&&(t=Ir[e.charCodeAt(l)]<<2|Ir[e.charCodeAt(l+1)]>>4,a[i++]=t&255),o===1&&(t=Ir[e.charCodeAt(l)]<<10|Ir[e.charCodeAt(l+1)]<<4|Ir[e.charCodeAt(l+2)]>>2,a[i++]=t>>8&255,a[i++]=t&255),a}function JR(e){return on[e>>18&63]+on[e>>12&63]+on[e>>6&63]+on[e&63]}function QR(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(JR(n));return o.join("")}function eT(e){for(var t,r=e.length,n=r%3,o=[],a=16383,i=0,f=r-n;i<f;i+=a)o.push(QR(e,i,i+a>f?f:i+a));return n===1?(t=e[r-1],o.push(on[t>>2]+on[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(on[t>>10]+on[t>>4&63]+on[t<<2&63]+"=")),o.join("")}});var sv=He(Ml=>{$();z();q();H();W();Ml.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)};Ml.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128}});var Av=He(uo=>{"use strict";$();z();q();H();W();var jl=av(),ao=sv(),uv=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;uo.Buffer=Ie;uo.SlowBuffer=aT;uo.INSPECT_MAX_BYTES=50;var zs=2147483647;uo.kMaxLength=zs;Ie.TYPED_ARRAY_SUPPORT=tT();!Ie.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 tT(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(Ie.prototype,"parent",{enumerable:!0,get:function(){if(Ie.isBuffer(this))return this.buffer}});Object.defineProperty(Ie.prototype,"offset",{enumerable:!0,get:function(){if(Ie.isBuffer(this))return this.byteOffset}});function En(e){if(e>zs)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Ie.prototype),t}function Ie(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Wl(e)}return hv(e,t,r)}Ie.poolSize=8192;function hv(e,t,r){if(typeof e=="string")return nT(e,t);if(ArrayBuffer.isView(e))return iT(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(an(e,ArrayBuffer)||e&&an(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(an(e,SharedArrayBuffer)||e&&an(e.buffer,SharedArrayBuffer)))return zl(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Ie.from(n,t,r);let o=oT(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ie.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ie.from=function(e,t,r){return hv(e,t,r)};Object.setPrototypeOf(Ie.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ie,Uint8Array);function pv(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function rT(e,t,r){return pv(e),e<=0?En(e):t!==void 0?typeof r=="string"?En(e).fill(t,r):En(e).fill(t):En(e)}Ie.alloc=function(e,t,r){return rT(e,t,r)};function Wl(e){return pv(e),En(e<0?0:Hl(e)|0)}Ie.allocUnsafe=function(e){return Wl(e)};Ie.allocUnsafeSlow=function(e){return Wl(e)};function nT(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Ie.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=dv(e,t)|0,n=En(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function $l(e){let t=e.length<0?0:Hl(e.length)|0,r=En(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function iT(e){if(an(e,Uint8Array)){let t=new Uint8Array(e);return zl(t.buffer,t.byteOffset,t.byteLength)}return $l(e)}function zl(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,Ie.prototype),n}function oT(e){if(Ie.isBuffer(e)){let t=Hl(e.length)|0,r=En(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Vl(e.length)?En(0):$l(e);if(e.type==="Buffer"&&Array.isArray(e.data))return $l(e.data)}function Hl(e){if(e>=zs)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+zs.toString(16)+" bytes");return e|0}function aT(e){return+e!=e&&(e=0),Ie.alloc(+e)}Ie.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Ie.prototype};Ie.compare=function(t,r){if(an(t,Uint8Array)&&(t=Ie.from(t,t.offset,t.byteLength)),an(r,Uint8Array)&&(r=Ie.from(r,r.offset,r.byteLength)),!Ie.isBuffer(t)||!Ie.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,o=r.length;for(let a=0,i=Math.min(n,o);a<i;++a)if(t[a]!==r[a]){n=t[a],o=r[a];break}return n<o?-1:o<n?1:0};Ie.isEncoding=function(t){switch(String(t).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}};Ie.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Ie.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let o=Ie.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){let i=t[n];if(an(i,Uint8Array))a+i.length>o.length?(Ie.isBuffer(i)||(i=Ie.from(i)),i.copy(o,a)):Uint8Array.prototype.set.call(o,i,a);else if(Ie.isBuffer(i))i.copy(o,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=i.length}return o};function dv(e,t){if(Ie.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||an(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ql(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Sv(e).length;default:if(o)return n?-1:ql(e).length;t=(""+t).toLowerCase(),o=!0}}Ie.byteLength=dv;function sT(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return mT(this,t,r);case"utf8":case"utf-8":return gv(this,t,r);case"ascii":return yT(this,t,r);case"latin1":case"binary":return gT(this,t,r);case"base64":return pT(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vT(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Ie.prototype._isBuffer=!0;function ci(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Ie.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)ci(this,r,r+1);return this};Ie.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)ci(this,r,r+3),ci(this,r+1,r+2);return this};Ie.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)ci(this,r,r+7),ci(this,r+1,r+6),ci(this,r+2,r+5),ci(this,r+3,r+4);return this};Ie.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?gv(this,0,t):sT.apply(this,arguments)};Ie.prototype.toLocaleString=Ie.prototype.toString;Ie.prototype.equals=function(t){if(!Ie.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Ie.compare(this,t)===0};Ie.prototype.inspect=function(){let t="",r=uo.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};uv&&(Ie.prototype[uv]=Ie.prototype.inspect);Ie.prototype.compare=function(t,r,n,o,a){if(an(t,Uint8Array)&&(t=Ie.from(t,t.offset,t.byteLength)),!Ie.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),r<0||n>t.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&r>=n)return 0;if(o>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,a>>>=0,this===t)return 0;let i=a-o,f=n-r,l=Math.min(i,f),c=this.slice(o,a),d=t.slice(r,n);for(let y=0;y<l;++y)if(c[y]!==d[y]){i=c[y],f=d[y];break}return i<f?-1:f<i?1:0};function yv(e,t,r,n,o){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Vl(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof t=="string"&&(t=Ie.from(t,n)),Ie.isBuffer(t))return t.length===0?-1:fv(e,t,r,n,o);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fv(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function fv(e,t,r,n,o){let a=1,i=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,i/=2,f/=2,r/=2}function l(d,y){return a===1?d[y]:d.readUInt16BE(y*a)}let c;if(o){let d=-1;for(c=r;c<i;c++)if(l(e,c)===l(t,d===-1?0:c-d)){if(d===-1&&(d=c),c-d+1===f)return d*a}else d!==-1&&(c-=c-d),d=-1}else for(r+f>i&&(r=i-f),c=r;c>=0;c--){let d=!0;for(let y=0;y<f;y++)if(l(e,c+y)!==l(t,y)){d=!1;break}if(d)return c}return-1}Ie.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Ie.prototype.indexOf=function(t,r,n){return yv(this,t,r,n,!0)};Ie.prototype.lastIndexOf=function(t,r,n){return yv(this,t,r,n,!1)};function uT(e,t,r,n){r=Number(r)||0;let o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let a=t.length;n>a/2&&(n=a/2);let i;for(i=0;i<n;++i){let f=parseInt(t.substr(i*2,2),16);if(Vl(f))return i;e[r+i]=f}return i}function fT(e,t,r,n){return qs(ql(t,e.length-r),e,r,n)}function lT(e,t,r,n){return qs(ET(t),e,r,n)}function cT(e,t,r,n){return qs(Sv(t),e,r,n)}function hT(e,t,r,n){return qs(ST(t,e.length-r),e,r,n)}Ie.prototype.write=function(t,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let i=!1;for(;;)switch(o){case"hex":return uT(this,t,r,n);case"utf8":case"utf-8":return fT(this,t,r,n);case"ascii":case"latin1":case"binary":return lT(this,t,r,n);case"base64":return cT(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hT(this,t,r,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}};Ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pT(e,t,r){return t===0&&r===e.length?jl.fromByteArray(e):jl.fromByteArray(e.slice(t,r))}function gv(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let a=e[o],i=null,f=a>239?4:a>223?3:a>191?2:1;if(o+f<=r){let l,c,d,y;switch(f){case 1:a<128&&(i=a);break;case 2:l=e[o+1],(l&192)===128&&(y=(a&31)<<6|l&63,y>127&&(i=y));break;case 3:l=e[o+1],c=e[o+2],(l&192)===128&&(c&192)===128&&(y=(a&15)<<12|(l&63)<<6|c&63,y>2047&&(y<55296||y>57343)&&(i=y));break;case 4:l=e[o+1],c=e[o+2],d=e[o+3],(l&192)===128&&(c&192)===128&&(d&192)===128&&(y=(a&15)<<18|(l&63)<<12|(c&63)<<6|d&63,y>65535&&y<1114112&&(i=y))}}i===null?(i=65533,f=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),o+=f}return dT(n)}var lv=4096;function dT(e){let t=e.length;if(t<=lv)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=lv));return r}function yT(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function gT(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function mT(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let a=t;a<r;++a)o+=AT[e[a]];return o}function vT(e,t,r){let n=e.slice(t,r),o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+n[a+1]*256);return o}Ie.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let o=this.subarray(t,r);return Object.setPrototypeOf(o,Ie.prototype),o};function Zt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Ie.prototype.readUintLE=Ie.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return o};Ie.prototype.readUintBE=Ie.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t+--r],a=1;for(;r>0&&(a*=256);)o+=this[t+--r]*a;return o};Ie.prototype.readUint8=Ie.prototype.readUInt8=function(t,r){return t=t>>>0,r||Zt(t,1,this.length),this[t]};Ie.prototype.readUint16LE=Ie.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Zt(t,2,this.length),this[t]|this[t+1]<<8};Ie.prototype.readUint16BE=Ie.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Zt(t,2,this.length),this[t]<<8|this[t+1]};Ie.prototype.readUint32LE=Ie.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Ie.prototype.readUint32BE=Ie.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Ie.prototype.readBigUInt64LE=Vn(function(t){t=t>>>0,so(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&aa(t,this.length-8);let o=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))});Ie.prototype.readBigUInt64BE=Vn(function(t){t=t>>>0,so(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&aa(t,this.length-8);let o=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(a)});Ie.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=this[t],a=1,i=0;for(;++i<r&&(a*=256);)o+=this[t+i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Ie.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Zt(t,r,this.length);let o=r,a=1,i=this[t+--o];for(;o>0&&(a*=256);)i+=this[t+--o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};Ie.prototype.readInt8=function(t,r){return t=t>>>0,r||Zt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Ie.prototype.readInt16LE=function(t,r){t=t>>>0,r||Zt(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt16BE=function(t,r){t=t>>>0,r||Zt(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Ie.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Ie.prototype.readBigInt64LE=Vn(function(t){t=t>>>0,so(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&aa(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});Ie.prototype.readBigInt64BE=Vn(function(t){t=t>>>0,so(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&aa(t,this.length-8);let o=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});Ie.prototype.readFloatLE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),ao.read(this,t,!0,23,4)};Ie.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Zt(t,4,this.length),ao.read(this,t,!1,23,4)};Ie.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Zt(t,8,this.length),ao.read(this,t,!0,52,8)};Ie.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Zt(t,8,this.length),ao.read(this,t,!1,52,8)};function hr(e,t,r,n,o,a){if(!Ie.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Ie.prototype.writeUintLE=Ie.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;hr(this,t,r,n,f,0)}let a=1,i=0;for(this[r]=t&255;++i<n&&(a*=256);)this[r+i]=t/a&255;return r+n};Ie.prototype.writeUintBE=Ie.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;hr(this,t,r,n,f,0)}let a=n-1,i=1;for(this[r+a]=t&255;--a>=0&&(i*=256);)this[r+a]=t/i&255;return r+n};Ie.prototype.writeUint8=Ie.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,1,255,0),this[r]=t&255,r+1};Ie.prototype.writeUint16LE=Ie.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Ie.prototype.writeUint16BE=Ie.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Ie.prototype.writeUint32LE=Ie.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Ie.prototype.writeUint32BE=Ie.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function mv(e,t,r,n,o){Ev(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,r}function vv(e,t,r,n,o){Ev(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i=i>>8,e[r+2]=i,i=i>>8,e[r+1]=i,i=i>>8,e[r]=i,r+8}Ie.prototype.writeBigUInt64LE=Vn(function(t,r=0){return mv(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ie.prototype.writeBigUInt64BE=Vn(function(t,r=0){return vv(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ie.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);hr(this,t,r,n,l-1,-l)}let a=0,i=1,f=0;for(this[r]=t&255;++a<n&&(i*=256);)t<0&&f===0&&this[r+a-1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Ie.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let l=Math.pow(2,8*n-1);hr(this,t,r,n,l-1,-l)}let a=n-1,i=1,f=0;for(this[r+a]=t&255;--a>=0&&(i*=256);)t<0&&f===0&&this[r+a+1]!==0&&(f=1),this[r+a]=(t/i>>0)-f&255;return r+n};Ie.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Ie.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Ie.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Ie.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Ie.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||hr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Ie.prototype.writeBigInt64LE=Vn(function(t,r=0){return mv(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ie.prototype.writeBigInt64BE=Vn(function(t,r=0){return vv(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wv(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bv(e,t,r,n,o){return t=+t,r=r>>>0,o||wv(e,t,r,4,34028234663852886e22,-34028234663852886e22),ao.write(e,t,r,n,23,4),r+4}Ie.prototype.writeFloatLE=function(t,r,n){return bv(this,t,r,!0,n)};Ie.prototype.writeFloatBE=function(t,r,n){return bv(this,t,r,!1,n)};function _v(e,t,r,n,o){return t=+t,r=r>>>0,o||wv(e,t,r,8,17976931348623157e292,-17976931348623157e292),ao.write(e,t,r,n,52,8),r+8}Ie.prototype.writeDoubleLE=function(t,r,n){return _v(this,t,r,!0,n)};Ie.prototype.writeDoubleBE=function(t,r,n){return _v(this,t,r,!1,n)};Ie.prototype.copy=function(t,r,n,o){if(!Ie.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);let a=o-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(t,this.subarray(n,o),r),a};Ie.prototype.fill=function(t,r,n,o){if(typeof t=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Ie.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){let i=t.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(t=i)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else{let i=Ie.isBuffer(t)?t:Ie.from(t,o),f=i.length;if(f===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=i[a%f]}return this};var oo={};function Zl(e,t,r){oo[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Zl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Zl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Zl("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=cv(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=cv(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);function cv(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function wT(e,t,r){so(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&aa(t,e.length-(r+1))}function Ev(e,t,r,n,o,a){if(e>r||e<t){let i=typeof t=="bigint"?"n":"",f;throw a>3?t===0||t===BigInt(0)?f=`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:f=`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:f=`>= ${t}${i} and <= ${r}${i}`,new oo.ERR_OUT_OF_RANGE("value",f,e)}wT(n,o,a)}function so(e,t){if(typeof e!="number")throw new oo.ERR_INVALID_ARG_TYPE(t,"number",e)}function aa(e,t,r){throw Math.floor(e)!==e?(so(e,r),new oo.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new oo.ERR_BUFFER_OUT_OF_BOUNDS:new oo.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var bT=/[^+/0-9A-Za-z-_]/g;function _T(e){if(e=e.split("=")[0],e=e.trim().replace(bT,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ql(e,t){t=t||1/0;let r,n=e.length,o=null,a=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function ET(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ST(e,t){let r,n,o,a=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}function Sv(e){return jl.toByteArray(_T(e))}function qs(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function an(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Vl(e){return e!==e}var AT=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Vn(e){return typeof BigInt>"u"?RT:e}function RT(){throw new Error("BigInt not supported")}});var Ov=He((X7,Tv)=>{"use strict";$();z();q();H();W();var wr=nv(),Rv=Av().Buffer;function TT(e){return 12+4*Math.ceil(e.length/4)}function OT(){return!(typeof window<"u"&&typeof document<"u")}function IT(e){let t=0,r=-1;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),e instanceof Int8Array)return e.length*wr.Int8Array;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)return e.length*wr.Uint8Array;if(e instanceof Int16Array)return e.length*wr.Int16Array;if(e instanceof Uint16Array)return e.length*wr.Uint16Array;if(e instanceof Int32Array)return e.length*wr.Int32Array;if(e instanceof Uint32Array)return e.length*wr.Uint32Array;if(e instanceof Float32Array)return e.length*wr.Float32Array;if(e instanceof Float64Array)return e.length*wr.Float64Array;let o=JSON.stringify(n);t=new Rv.from(o).byteLength}catch(n){return console.error("Error detected, return "+r,n),r}return t}function xT(e){let t=[],r=[e],n=0;for(;r.length;){let o=r.pop();if(typeof o=="boolean")n+=wr.BYTES;else if(typeof o=="string")OT()?n+=TT(o):n+=o.length*wr.STRING;else if(typeof o=="number")n+=wr.NUMBER;else if(typeof o=="symbol")Symbol.keyFor&&Symbol.keyFor(e)?n+=Symbol.keyFor(e).length*wr.STRING:n+=(e.toString().length-8)*wr.STRING;else if(typeof o=="bigint")n+=Rv.from(o.toString()).byteLength;else if(typeof o=="function")n+=o.toString().length;else if(typeof o=="object"&&t.indexOf(o)===-1){t.push(o);for(let a in o)r.push(o[a])}}return n}Tv.exports=function(e){let t=0;return e!==null&&typeof e=="object"?t=IT(e):t=xT(e),t}});var Cv=He(hi=>{"use strict";$();z();q();H();W();Object.defineProperty(hi,"__esModule",{value:!0});var kT=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},FT=typeof window<"u"&&typeof window.document<"u",PT=typeof ce<"u"&&ce.versions!=null&&ce.versions.node!=null,UT=(typeof self>"u"?"undefined":kT(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",DT=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),MT=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";hi.isBrowser=FT;hi.isWebWorker=UT;hi.isNode=PT;hi.isJsDom=DT;hi.isDeno=MT});var c_=He(($K,l_)=>{"use strict";$();z();q();H();W();function cB(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}l_.exports=hB;function hB(e,t,r){var n=r&&r.stringify||cB,o=1;if(typeof e=="object"&&e!==null){var a=t.length+o;if(a===1)return e;var i=new Array(a);i[0]=n(e);for(var f=1;f<a;f++)i[f]=n(t[f]);return i.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var c="",d=1-o,y=-1,v=e&&e.length||0,_=0;_<v;){if(e.charCodeAt(_)===37&&_+1<v){switch(y=y>-1?y:0,e.charCodeAt(_+1)){case 100:case 102:if(d>=l||t[d]==null)break;y<_&&(c+=e.slice(y,_)),c+=Number(t[d]),y=_+2,_++;break;case 105:if(d>=l||t[d]==null)break;y<_&&(c+=e.slice(y,_)),c+=Math.floor(Number(t[d])),y=_+2,_++;break;case 79:case 111:case 106:if(d>=l||t[d]===void 0)break;y<_&&(c+=e.slice(y,_));var h=typeof t[d];if(h==="string"){c+="'"+t[d]+"'",y=_+2,_++;break}if(h==="function"){c+=t[d].name||"<anonymous>",y=_+2,_++;break}c+=n(t[d]),y=_+2,_++;break;case 115:if(d>=l)break;y<_&&(c+=e.slice(y,_)),c+=String(t[d]),y=_+2,_++;break;case 37:y<_&&(c+=e.slice(y,_)),c+="%",y=_+2,_++,d--;break}++d}++_}return y===-1?e:(y<v&&(c+=e.slice(y)),c)}});var m_=He((VK,g_)=>{"use strict";$();z();q();H();W();var h_=c_();g_.exports=Bi;var Ra=SB().console||{},pB={mapHttpRequest:Ou,mapHttpResponse:Ou,wrapRequestSerializer:_h,wrapResponseSerializer:_h,wrapErrorSerializer:_h,req:Ou,res:Ou,err:p_,errWithCause:p_};function dB(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Bi(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Ra;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=dB(e.browser.serialize,n),a=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(a=!1);let i=Object.keys(e.customLevels||{}),f=["error","fatal","warn","info","debug","trace"].concat(i);typeof r=="function"&&f.forEach(function(w){r[w]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let l=e.level||"info",c=Object.create(r);c.log||(c.log=Ta),Object.defineProperty(c,"levelVal",{get:y}),Object.defineProperty(c,"level",{get:v,set:_});let d={transmit:t,serialize:o,asObject:e.browser.asObject,levels:f,timestamp:bB(e)};c.levels=yB(e),c.level=l,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=Ta,c.serializers=n,c._serialize=o,c._stdErrSerialize=a,c.child=h,t&&(c._logEvent=Eh());function y(){return this.level==="silent"?1/0:this.levels.values[this.level]}function v(){return this._level}function _(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,xi(d,c,"error","log"),xi(d,c,"fatal","error"),xi(d,c,"warn","error"),xi(d,c,"info","log"),xi(d,c,"debug","log"),xi(d,c,"trace","log"),i.forEach(function(S){xi(d,c,S,"log")})}function h(w,S){if(!w)throw new Error("missing bindings for child Pino");S=S||{},o&&w.serializers&&(S.serializers=w.serializers);let T=S.serializers;if(o&&T){var C=Object.assign({},n,T),M=e.browser.serialize===!0?Object.keys(C):o;delete w.serializers,Iu([w],M,C,this._stdErrSerialize)}function D(V){this._childLevel=(V._childLevel|0)+1,this.error=_o(V,w,"error"),this.fatal=_o(V,w,"fatal"),this.warn=_o(V,w,"warn"),this.info=_o(V,w,"info"),this.debug=_o(V,w,"debug"),this.trace=_o(V,w,"trace"),C&&(this.serializers=C,this._serialize=M),t&&(this._logEvent=Eh([].concat(V._logEvent.bindings,w)))}return D.prototype=this,new D(this)}return c}function yB(e){let t=e.customLevels||{},r=Object.assign({},Bi.levels.values,t),n=Object.assign({},Bi.levels.labels,gB(t));return{values:r,labels:n}}function gB(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Bi.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Bi.stdSerializers=pB;Bi.stdTimeFunctions=Object.assign({},{nullTime:d_,epochTime:y_,unixTime:_B,isoTime:EB});function xi(e,t,r,n){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?Ta:o[r]?o[r]:Ra[r]||Ra[n]||Ta,mB(e,t,r)}function mB(e,t,r){!e.transmit&&t[r]===Ta||(t[r]=function(n){return function(){let a=e.timestamp(),i=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ra?Ra:this;for(var l=0;l<i.length;l++)i[l]=arguments[l];if(e.serialize&&!e.asObject&&Iu(i,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(f,vB(this,r,i,a)):n.apply(f,i),e.transmit){let c=e.transmit.level||t.level,d=t.levels.values[c],y=t.levels.values[r];if(y<d)return;wB(this,{ts:a,methodLevel:r,methodValue:y,transmitLevel:c,transmitValue:t.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},i)}}}(t[r]))}function vB(e,t,r,n){e._serialize&&Iu(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),a=o[0],i={};n&&(i.time=n),i.level=e.levels.values[t];let f=(e._childLevel|0)+1;if(f<1&&(f=1),a!==null&&typeof a=="object"){for(;f--&&typeof o[0]=="object";)Object.assign(i,o.shift());a=o.length?h_(o.shift(),o):void 0}else typeof a=="string"&&(a=h_(o.shift(),o));return a!==void 0&&(i.msg=a),i}function Iu(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=Bi.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o]))for(let a in e[o])t&&t.indexOf(a)>-1&&a in r&&(e[o][a]=r[a](e[o][a]))}function _o(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var o=1;o<n.length;o++)n[o]=arguments[o-1];return e[r].apply(this,n)}}function wB(e,t,r){let n=t.send,o=t.ts,a=t.methodLevel,i=t.methodValue,f=t.val,l=e._logEvent.bindings;Iu(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=r.filter(function(c){return l.indexOf(c)===-1}),e._logEvent.level.label=a,e._logEvent.level.value=i,n(a,e._logEvent,f),e._logEvent=Eh(l)}function Eh(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function p_(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function bB(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?d_:y_}function Ou(){return{}}function _h(e){return e}function Ta(){}function d_(){return!1}function y_(){return Date.now()}function _B(){return Math.round(Date.now()/1e3)}function EB(){return new Date(Date.now()).toISOString()}function SB(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}});var AB={};Bh(AB,{ApiError:()=>$n,CancelError:()=>Xi,CancelablePromise:()=>Or,EventType:()=>Ls,TabbyAgent:()=>Cu,agentEventNames:()=>A_});$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();function Oo(e,t){return function(){return e.apply(t,arguments)}}var{toString:z_}=Object.prototype,{getPrototypeOf:ju}=Object,Pa=(e=>t=>{let r=z_.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=e=>(e=e.toLowerCase(),t=>Pa(t)===e),Ua=e=>t=>typeof t===e,{isArray:Li}=Array,Io=Ua("undefined");function q_(e){return e!==null&&!Io(e)&&e.constructor!==null&&!Io(e.constructor)&&Rr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Xp=Yr("ArrayBuffer");function W_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xp(e.buffer),t}var H_=Ua("string"),Rr=Ua("function"),Jp=Ua("number"),Da=e=>e!==null&&typeof e=="object",Z_=e=>e===!0||e===!1,Fa=e=>{if(Pa(e)!=="object")return!1;let t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},V_=Yr("Date"),G_=Yr("File"),Y_=Yr("Blob"),K_=Yr("FileList"),X_=e=>Da(e)&&Rr(e.pipe),J_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rr(e.append)&&((t=Pa(e))==="formdata"||t==="object"&&Rr(e.toString)&&e.toString()==="[object FormData]"))},Q_=Yr("URLSearchParams"),eE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Li(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length,f;for(n=0;n<i;n++)f=a[n],t.call(null,e[f],f,e)}}function Qp(e,t){t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}var ed=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:se)(),td=e=>!Io(e)&&e!==ed;function Mu(){let{caseless:e}=td(this)&&this||{},t={},r=(n,o)=>{let a=e&&Qp(t,o)||o;Fa(t[a])&&Fa(n)?t[a]=Mu(t[a],n):Fa(n)?t[a]=Mu({},n):Li(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&xo(arguments[n],r);return t}var tE=(e,t,r,{allOwnKeys:n}={})=>(xo(t,(o,a)=>{r&&Rr(o)?e[a]=Oo(o,r):e[a]=o},{allOwnKeys:n}),e),rE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nE=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},iE=(e,t,r,n)=>{let o,a,i,f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=r!==!1&&ju(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},oE=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},aE=e=>{if(!e)return null;if(Li(e))return e;let t=e.length;if(!Jp(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},sE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),uE=(e,t)=>{let n=(e&&e[Symbol.iterator]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},fE=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},lE=Yr("HTMLFormElement"),cE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Yp=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hE=Yr("RegExp"),rd=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};xo(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},pE=e=>{rd(e,(t,r)=>{if(Rr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(Rr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},dE=(e,t)=>{let r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Li(e)?n(e):n(String(e).split(t)),r},yE=()=>{},gE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Du="abcdefghijklmnopqrstuvwxyz",Kp="0123456789",nd={DIGIT:Kp,ALPHA:Du,ALPHA_DIGIT:Du+Du.toUpperCase()+Kp},mE=(e=16,t=nd.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function vE(e){return!!(e&&Rr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var wE=e=>{let t=new Array(10),r=(n,o)=>{if(Da(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;let a=Li(n)?[]:{};return xo(n,(i,f)=>{let l=r(i,o+1);!Io(l)&&(a[f]=l)}),t[o]=void 0,a}}return n};return r(e,0)},bE=Yr("AsyncFunction"),_E=e=>e&&(Da(e)||Rr(e))&&Rr(e.then)&&Rr(e.catch),Ee={isArray:Li,isArrayBuffer:Xp,isBuffer:q_,isFormData:J_,isArrayBufferView:W_,isString:H_,isNumber:Jp,isBoolean:Z_,isObject:Da,isPlainObject:Fa,isUndefined:Io,isDate:V_,isFile:G_,isBlob:Y_,isRegExp:hE,isFunction:Rr,isStream:X_,isURLSearchParams:Q_,isTypedArray:sE,isFileList:K_,forEach:xo,merge:Mu,extend:tE,trim:eE,stripBOM:rE,inherits:nE,toFlatObject:iE,kindOf:Pa,kindOfTest:Yr,endsWith:oE,toArray:aE,forEachEntry:uE,matchAll:fE,isHTMLForm:lE,hasOwnProperty:Yp,hasOwnProp:Yp,reduceDescriptors:rd,freezeMethods:pE,toObjectSet:dE,toCamelCase:cE,noop:yE,toFiniteNumber:gE,findKey:Qp,global:ed,isContextDefined:td,ALPHABET:nd,generateString:mE,isSpecCompliantForm:vE,toJSONObject:wE,isAsyncFn:bE,isThenable:_E};$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();function ki(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Ee.inherits(ki,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var id=ki.prototype,od={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{od[e]={value:e}});Object.defineProperties(ki,od);Object.defineProperty(id,"isAxiosError",{value:!0});ki.from=(e,t,r,n,o,a)=>{let i=Object.create(id);return Ee.toFlatObject(e,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError"),ki.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var dt=ki;$();z();q();H();W();var Ma=null;function $u(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function sd(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function ad(e,t,r){return e?e.concat(t).map(function(o,a){return o=sd(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function EE(e){return Ee.isArray(e)&&!e.some($u)}var SE=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function AE(e,t,r){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new(Ma||FormData),r=Ee.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!Ee.isUndefined(S[w])});let n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Ee.isDate(h))return h.toISOString();if(!l&&Ee.isBlob(h))throw new dt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(h)||Ee.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):he.from(h):h}function d(h,w,S){let T=h;if(h&&!S&&typeof h=="object"){if(Ee.endsWith(w,"{}"))w=n?w:w.slice(0,-2),h=JSON.stringify(h);else if(Ee.isArray(h)&&EE(h)||(Ee.isFileList(h)||Ee.endsWith(w,"[]"))&&(T=Ee.toArray(h)))return w=sd(w),T.forEach(function(M,D){!(Ee.isUndefined(M)||M===null)&&t.append(i===!0?ad([w],D,a):i===null?w:w+"[]",c(M))}),!1}return $u(h)?!0:(t.append(ad(S,w,a),c(h)),!1)}let y=[],v=Object.assign(SE,{defaultVisitor:d,convertValue:c,isVisitable:$u});function _(h,w){if(!Ee.isUndefined(h)){if(y.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));y.push(h),Ee.forEach(h,function(T,C){(!(Ee.isUndefined(T)||T===null)&&o.call(t,T,Ee.isString(C)?C.trim():C,w,v))===!0&&_(T,w?w.concat(C):[C])}),y.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return _(e),t}var kn=AE;function ud(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function fd(e,t){this._pairs=[],e&&kn(e,this,t)}var ld=fd.prototype;ld.append=function(t,r){this._pairs.push([t,r])};ld.toString=function(t){let r=t?function(n){return t.call(this,n,ud)}:ud;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var ja=fd;function RE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(e,t,r){if(!t)return e;let n=r&&r.encode||RE,o=r&&r.serialize,a;if(o?a=o(t,r):a=Ee.isURLSearchParams(t)?t.toString():new ja(t,r).toString(n),a){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}$();z();q();H();W();var zu=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(n){n!==null&&t(n)})}},qu=zu;$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var $a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var cd=typeof URLSearchParams<"u"?URLSearchParams:ja;$();z();q();H();W();var hd=typeof FormData<"u"?FormData:null;$();z();q();H();W();var pd=typeof Blob<"u"?Blob:null;var TE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),OE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tr={isBrowser:!0,classes:{URLSearchParams:cd,FormData:hd,Blob:pd},isStandardBrowserEnv:TE,isStandardBrowserWebWorkerEnv:OE,protocols:["http","https","file","blob","url","data"]};function Wu(e,t){return kn(e,new tr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return tr.isNode&&Ee.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}$();z();q();H();W();function IE(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xE(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function BE(e){function t(r,n,o,a){let i=r[a++],f=Number.isFinite(+i),l=a>=r.length;return i=!i&&Ee.isArray(o)?o.length:i,l?(Ee.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!f):((!o[i]||!Ee.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&Ee.isArray(o[i])&&(o[i]=xE(o[i])),!f)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){let r={};return Ee.forEachEntry(e,(n,o)=>{t(IE(n),o,r,0)}),r}return null}var za=BE;var CE={"Content-Type":void 0};function NE(e,t,r){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var qa={transitional:$a,adapter:["xhr","http"],transformRequest:[function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Ee.isObject(t);if(a&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return o&&o?JSON.stringify(za(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wu(t,this.formSerializer).toString();if((f=Ee.isFileList(t))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return kn(f?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),NE(t)):t}],transformResponse:[function(t){let r=this.transitional||qa.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Ee.isString(t)&&(n&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?dt.from(f,dt.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tr.classes.FormData,Blob:tr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ee.forEach(["delete","get","head"],function(t){qa.headers[t]={}});Ee.forEach(["post","put","patch"],function(t){qa.headers[t]=Ee.merge(CE)});var Fi=qa;$();z();q();H();W();$();z();q();H();W();var LE=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dd=e=>{let t={},r,n,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&LE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var yd=Symbol("internals");function Co(e){return e&&String(e).trim().toLowerCase()}function Wa(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Wa):String(e)}function kE(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var FE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hu(e,t,r,n,o){if(Ee.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))return t.indexOf(n)!==-1;if(Ee.isRegExp(n))return n.test(t)}}function PE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function UE(e,t){let r=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}var Pi=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(f,l,c){let d=Co(l);if(!d)throw new Error("header name must be a non-empty string");let y=Ee.findKey(o,d);(!y||o[y]===void 0||c===!0||c===void 0&&o[y]!==!1)&&(o[y||l]=Wa(f))}let i=(f,l)=>Ee.forEach(f,(c,d)=>a(c,d,l));return Ee.isPlainObject(t)||t instanceof this.constructor?i(t,r):Ee.isString(t)&&(t=t.trim())&&!FE(t)?i(dd(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=Co(t),t){let n=Ee.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return kE(o);if(Ee.isFunction(r))return r.call(this,o,n);if(Ee.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Co(t),t){let n=Ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hu(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(i){if(i=Co(i),i){let f=Ee.findKey(n,i);f&&(!r||Hu(n,n[f],f,r))&&(delete n[f],o=!0)}}return Ee.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Hu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return Ee.forEach(this,(o,a)=>{let i=Ee.findKey(n,a);if(i){r[i]=Wa(o),delete r[a];return}let f=t?PE(a):String(a).trim();f!==a&&delete r[a],r[f]=Wa(o),n[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return Ee.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[yd]=this[yd]={accessors:{}}).accessors,o=this.prototype;function a(i){let f=Co(i);n[f]||(UE(o,i),n[f]=!0)}return Ee.isArray(t)?t.forEach(a):a(t),this}};Pi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(Pi.prototype);Ee.freezeMethods(Pi);var ar=Pi;function No(e,t){let r=this||Fi,n=t||r,o=ar.from(n.headers),a=n.data;return Ee.forEach(e,function(f){a=f.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}$();z();q();H();W();function Lo(e){return!!(e&&e.__CANCEL__)}$();z();q();H();W();function gd(e,t,r){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,r),this.name="CanceledError"}Ee.inherits(gd,dt,{__CANCEL__:!0});var Fn=gd;$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();function Zu(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new dt("Request failed with status code "+r.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}$();z();q();H();W();var md=tr.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,f){let l=[];l.push(r+"="+encodeURIComponent(n)),Ee.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Ee.isString(a)&&l.push("path="+a),Ee.isString(i)&&l.push("domain="+i),f===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();$();z();q();H();W();$();z();q();H();W();function Vu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}$();z();q();H();W();function Gu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ko(e,t){return e&&!Vu(t)?Gu(e,t):t}$();z();q();H();W();var vd=tr.isStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){let f=Ee.isString(i)?o(i):i;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}();$();z();q();H();W();function Yu(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}$();z();q();H();W();function DE(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),d=n[a];i||(i=c),r[o]=l,n[o]=c;let y=a,v=0;for(;y!==o;)v+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;let _=d&&c-d;return _?Math.round(v*1e3/_):void 0}}var wd=DE;function bd(e,t){let r=0,n=wd(50,250);return o=>{let a=o.loaded,i=o.lengthComputable?o.total:void 0,f=a-r,l=n(f),c=a<=i;r=a;let d={loaded:a,total:i,progress:i?a/i:void 0,bytes:f,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}var ME=typeof XMLHttpRequest<"u",_d=ME&&function(e){return new Promise(function(r,n){let o=e.data,a=ar.from(e.headers).normalize(),i=e.responseType,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ee.isFormData(o)&&(tr.isStandardBrowserEnv||tr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){let _=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(_+":"+h))}let d=ko(e.baseURL,e.url);c.open(e.method.toUpperCase(),Bo(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let _=ar.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:e,request:c};Zu(function(T){r(T),l()},function(T){n(T),l()},w),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(n(new dt("Request aborted",dt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new dt("Network Error",dt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",w=e.transitional||$a;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new dt(h,w.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,e,c)),c=null},tr.isStandardBrowserEnv){let _=(e.withCredentials||vd(d))&&e.xsrfCookieName&&md.read(e.xsrfCookieName);_&&a.set(e.xsrfHeaderName,_)}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&Ee.forEach(a.toJSON(),function(h,w){c.setRequestHeader(w,h)}),Ee.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",bd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",bd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=_=>{c&&(n(!_||_.type?new Fn(null,e,c):_),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));let v=Yu(d);if(v&&tr.protocols.indexOf(v)===-1){n(new dt("Unsupported protocol "+v+":",dt.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var Ha={http:Ma,xhr:_d};Ee.forEach(Ha,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Ed={getAdapter:e=>{e=Ee.isArray(e)?e:[e];let{length:t}=e,r,n;for(let o=0;o<t&&(r=e[o],!(n=Ee.isString(r)?Ha[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new dt(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ee.hasOwnProp(Ha,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!Ee.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Ha};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fn(null,e)}function Za(e){return Ku(e),e.headers=ar.from(e.headers),e.data=No.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ed.getAdapter(e.adapter||Fi.adapter)(e).then(function(n){return Ku(e),n.data=No.call(e,e.transformResponse,n),n.headers=ar.from(n.headers),n},function(n){return Lo(n)||(Ku(e),n&&n.response&&(n.response.data=No.call(e,e.transformResponse,n.response),n.response.headers=ar.from(n.response.headers))),Promise.reject(n)})}$();z();q();H();W();var Sd=e=>e instanceof ar?e.toJSON():e;function gn(e,t){t=t||{};let r={};function n(c,d,y){return Ee.isPlainObject(c)&&Ee.isPlainObject(d)?Ee.merge.call({caseless:y},c,d):Ee.isPlainObject(d)?Ee.merge({},d):Ee.isArray(d)?d.slice():d}function o(c,d,y){if(Ee.isUndefined(d)){if(!Ee.isUndefined(c))return n(void 0,c,y)}else return n(c,d,y)}function a(c,d){if(!Ee.isUndefined(d))return n(void 0,d)}function i(c,d){if(Ee.isUndefined(d)){if(!Ee.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function f(c,d,y){if(y in t)return n(c,d);if(y in e)return n(void 0,c)}let l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f,headers:(c,d)=>o(Sd(c),Sd(d),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),function(d){let y=l[d]||o,v=y(e[d],t[d],d);Ee.isUndefined(v)&&y!==f||(r[d]=v)}),r}$();z();q();H();W();$();z();q();H();W();var Va="1.4.0";var Xu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xu[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ad={};Xu.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Va+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,f)=>{if(t===!1)throw new dt(o(i," has been removed"+(r?" in "+r:"")),dt.ERR_DEPRECATED);return r&&!Ad[i]&&(Ad[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,f):!0}};function jE(e,t,r){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],i=t[a];if(i){let f=e[a],l=f===void 0||i(f,a,e);if(l!==!0)throw new dt("option "+a+" must be "+l,dt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new dt("Unknown option "+a,dt.ERR_BAD_OPTION)}}var Ga={assertOptions:jE,validators:Xu};var Pn=Ga.validators,Ui=class{constructor(t){this.defaults=t,this.interceptors={request:new qu,response:new qu}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Ga.assertOptions(n,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean)},!1),o!=null&&(Ee.isFunction(o)?r.paramsSerializer={serialize:o}:Ga.assertOptions(o,{encode:Pn.function,serialize:Pn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Ee.merge(a.common,a[r.method]),i&&Ee.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),r.headers=ar.concat(i,a);let f=[],l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(l=l&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});let c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});let d,y=0,v;if(!l){let h=[Za.bind(this),void 0];for(h.unshift.apply(h,f),h.push.apply(h,c),v=h.length,d=Promise.resolve(r);y<v;)d=d.then(h[y++],h[y++]);return d}v=f.length;let _=r;for(y=0;y<v;){let h=f[y++],w=f[y++];try{_=h(_)}catch(S){w.call(this,S);break}}try{d=Za.call(this,_)}catch(h){return Promise.reject(h)}for(y=0,v=c.length;y<v;)d=d.then(c[y++],c[y++]);return d}getUri(t){t=gn(this.defaults,t);let r=ko(t.baseURL,t.url);return Bo(r,t.params,t.paramsSerializer)}};Ee.forEach(["delete","get","head","options"],function(t){Ui.prototype[t]=function(r,n){return this.request(gn(n||{},{method:t,url:r,data:(n||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,f){return this.request(gn(f||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ui.prototype[t]=r(),Ui.prototype[t+"Form"]=r(!0)});var Fo=Ui;$();z();q();H();W();var Po=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,i=new Promise(f=>{n.subscribe(f),a=f}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,f){n.reason||(n.reason=new Fn(a,i,f),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Po(function(o){t=o}),cancel:t}}},Rd=Po;$();z();q();H();W();function Ju(e){return function(r){return e.apply(null,r)}}$();z();q();H();W();function Qu(e){return Ee.isObject(e)&&e.isAxiosError===!0}$();z();q();H();W();var ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ef).forEach(([e,t])=>{ef[t]=e});var Td=ef;function Od(e){let t=new Fo(e),r=Oo(Fo.prototype.request,t);return Ee.extend(r,Fo.prototype,t,{allOwnKeys:!0}),Ee.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Od(gn(e,o))},r}var Mt=Od(Fi);Mt.Axios=Fo;Mt.CanceledError=Fn;Mt.CancelToken=Rd;Mt.isCancel=Lo;Mt.VERSION=Va;Mt.toFormData=kn;Mt.AxiosError=dt;Mt.Cancel=Mt.CanceledError;Mt.all=function(t){return Promise.all(t)};Mt.spread=Ju;Mt.isAxiosError=Qu;Mt.mergeConfig=gn;Mt.AxiosHeaders=ar;Mt.formToJSON=e=>za(Ee.isHTMLForm(e)?new FormData(e):e);Mt.HttpStatusCode=Td;Mt.default=Mt;var ri=Mt;var{Axios:dL,AxiosError:yL,CanceledError:gL,isCancel:mL,CancelToken:vL,VERSION:wL,all:bL,Cancel:_L,isAxiosError:EL,spread:SL,toFormData:AL,AxiosHeaders:RL,HttpStatusCode:TL,formToJSON:OL,mergeConfig:IL}=ri;$();z();q();H();W();$();z();q();H();W();var Fd,Pd,Di=typeof Reflect=="object"?Reflect:null,Id=Di&&typeof Di.apply=="function"?Di.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};Pd=Di&&typeof Di.ownKeys=="function"?Di.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var xd=Number.isNaN||function(e){return e!=e};function _t(){_t.init.call(this)}Fd=_t,_t.EventEmitter=_t,_t.prototype._events=void 0,_t.prototype._eventsCount=0,_t.prototype._maxListeners=void 0;var Bd=10;function Ya(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Ud(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}function Cd(e,t,r,n){var o,a,i,f;if(Ya(r),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),i===void 0)i=a[t]=r,++e._eventsCount;else if(typeof i=="function"?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(o=Ud(e))>0&&i.length>o&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,f=l,console&&console.warn&&console.warn(f)}return e}function $E(){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)}function Nd(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=$E.bind(n);return o.listener=r,n.wrapFn=o,o}function Ld(e,t,r){var n=e._events;if(n===void 0)return[];var o=n[t];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(a){for(var i=new Array(a.length),f=0;f<i.length;++f)i[f]=a[f].listener||a[f];return i}(o):Dd(o,o.length)}function kd(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function Dd(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return Bd},set:function(e){if(typeof e!="number"||e<0||xd(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Bd=e}}),_t.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},_t.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||xd(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},_t.prototype.getMaxListeners=function(){return Ud(this)},_t.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var f=o[e];if(f===void 0)return!1;if(typeof f=="function")Id(f,this,t);else{var l=f.length,c=Dd(f,l);for(r=0;r<l;++r)Id(c[r],this,t)}return!0},_t.prototype.addListener=function(e,t){return Cd(this,e,t,!1)},_t.prototype.on=_t.prototype.addListener,_t.prototype.prependListener=function(e,t){return Cd(this,e,t,!0)},_t.prototype.once=function(e,t){return Ya(t),this.on(e,Nd(this,e,t)),this},_t.prototype.prependOnceListener=function(e,t){return Ya(t),this.prependListener(e,Nd(this,e,t)),this},_t.prototype.removeListener=function(e,t){var r,n,o,a,i;if(Ya(t),(n=this._events)===void 0)return this;if((r=n[e])===void 0)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():function(f,l){for(;l+1<f.length;l++)f[l]=f[l+1];f.pop()}(r,o),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,i||t)}return this},_t.prototype.off=_t.prototype.removeListener,_t.prototype.removeAllListeners=function(e){var t,r,n;if((r=this._events)===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 o,a=Object.keys(r);for(n=0;n<a.length;++n)(o=a[n])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},_t.prototype.listeners=function(e){return Ld(this,e,!0)},_t.prototype.rawListeners=function(e){return Ld(this,e,!1)},_t.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kd.call(e,t)},_t.prototype.listenerCount=kd,_t.prototype.eventNames=function(){return this._eventsCount>0?Pd(this._events):[]};var Ft=Fd;Ft.EventEmitter;Ft.defaultMaxListeners;Ft.init;Ft.listenerCount;Ft.EventEmitter;Ft.defaultMaxListeners;Ft.init;Ft.listenerCount;Ft.once=function(e,t){return new Promise((r,n)=>{function o(...i){a!==void 0&&e.removeListener("error",a),r(i)}let a;t!=="error"&&(a=i=>{e.removeListener(name,o),n(i)},e.once("error",a)),e.once(t,o)})};Ft.on=function(e,t){let r=[],n=[],o=null,a=!1,i={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(o){let d=Promise.reject(o);return o=null,d}return a?createIterResult(void 0,!0):new Promise((d,y)=>n.push({resolve:d,reject:y}))},async return(){e.removeListener(t,f),e.removeListener("error",l),a=!0;for(let c of n)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=c,e.removeListener(t,f),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,f),e.on("error",l),i;function f(...c){let d=n.shift();d?d.resolve(createIterResult(c,!1)):r.push(c)}function l(c){a=!0;let d=n.shift();d?d.reject(c):o=c,i.return()}};var{EventEmitter:Md,defaultMaxListeners:zL,init:qL,listenerCount:WL,on:HL,once:ZL}=Ft;$();z();q();H();W();$();z();q();H();W();var Ka,zE=new Uint8Array(16);function tf(){if(!Ka&&(Ka=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ka))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ka(zE)}$();z();q();H();W();var Xt=[];for(let e=0;e<256;++e)Xt.push((e+256).toString(16).slice(1));function jd(e,t=0){return(Xt[e[t+0]]+Xt[e[t+1]]+Xt[e[t+2]]+Xt[e[t+3]]+"-"+Xt[e[t+4]]+Xt[e[t+5]]+"-"+Xt[e[t+6]]+Xt[e[t+7]]+"-"+Xt[e[t+8]]+Xt[e[t+9]]+"-"+Xt[e[t+10]]+Xt[e[t+11]]+Xt[e[t+12]]+Xt[e[t+13]]+Xt[e[t+14]]+Xt[e[t+15]]).toLowerCase()}$();z();q();H();W();$();z();q();H();W();var qE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rf={randomUUID:qE};function WE(e,t,r){if(rf.randomUUID&&!t&&!e)return rf.randomUUID();e=e||{};let n=e.random||(e.rng||tf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return jd(n)}var nf=WE;var E_=Jn(P0()),S_=Jn(j0());$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var Yo=class{constructor(t){this.config=t}};$();z();q();H();W();var xl=Jn(z0());$();z();q();H();W();var $n=class extends Error{constructor(r,n,o){super(o);this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=r}};$();z();q();H();W();var Xi=class extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}},Jr,Qr,Mr,zn,ai,Ko,Ki,Or=class{constructor(t){it(this,Jr,void 0);it(this,Qr,void 0);it(this,Mr,void 0);it(this,zn,void 0);it(this,ai,void 0);it(this,Ko,void 0);it(this,Ki,void 0);Ge(this,Jr,!1),Ge(this,Qr,!1),Ge(this,Mr,!1),Ge(this,zn,[]),Ge(this,ai,new Promise((r,n)=>{Ge(this,Ko,r),Ge(this,Ki,n);let o=f=>{var l;J(this,Jr)||J(this,Qr)||J(this,Mr)||(Ge(this,Jr,!0),(l=J(this,Ko))==null||l.call(this,f))},a=f=>{var l;J(this,Jr)||J(this,Qr)||J(this,Mr)||(Ge(this,Qr,!0),(l=J(this,Ki))==null||l.call(this,f))},i=f=>{J(this,Jr)||J(this,Qr)||J(this,Mr)||J(this,zn).push(f)};return Object.defineProperty(i,"isResolved",{get:()=>J(this,Jr)}),Object.defineProperty(i,"isRejected",{get:()=>J(this,Qr)}),Object.defineProperty(i,"isCancelled",{get:()=>J(this,Mr)}),t(o,a,i)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,r){return J(this,ai).then(t,r)}catch(t){return J(this,ai).catch(t)}finally(t){return J(this,ai).finally(t)}cancel(){var t;if(!(J(this,Jr)||J(this,Qr)||J(this,Mr))){if(Ge(this,Mr,!0),J(this,zn).length)try{for(let r of J(this,zn))r()}catch(r){console.warn("Cancellation threw an error",r);return}J(this,zn).length=0,(t=J(this,Ki))==null||t.call(this,new Xi("Request aborted"))}}get isCancelled(){return J(this,Mr)}};Jr=new WeakMap,Qr=new WeakMap,Mr=new WeakMap,zn=new WeakMap,ai=new WeakMap,Ko=new WeakMap,Ki=new WeakMap;var Bl=e=>e!=null,Cs=e=>typeof e=="string",Il=e=>Cs(e)&&e!=="",q0=e=>typeof e=="object"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.arrayBuffer=="function"&&typeof e.constructor=="function"&&typeof e.constructor.name=="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),FR=e=>e instanceof xl.default,PR=e=>e>=200&&e<300,UR=e=>{try{return btoa(e)}catch{return he.from(e).toString("base64")}},DR=e=>{let t=[],r=(o,a)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(a))}`)},n=(o,a)=>{Bl(a)&&(Array.isArray(a)?a.forEach(i=>{n(o,i)}):typeof a=="object"?Object.entries(a).forEach(([i,f])=>{n(`${o}[${i}]`,f)}):r(o,a))};return Object.entries(e).forEach(([o,a])=>{n(o,a)}),t.length>0?`?${t.join("&")}`:""},MR=(e,t)=>{let r=e.ENCODE_PATH||encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(a,i)=>t.path?.hasOwnProperty(i)?r(String(t.path[i])):a),o=`${e.BASE}${n}`;return t.query?`${o}${DR(t.query)}`:o},jR=e=>{if(e.formData){let t=new xl.default,r=(n,o)=>{Cs(o)||q0(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([n,o])=>Bl(o)).forEach(([n,o])=>{Array.isArray(o)?o.forEach(a=>r(n,a)):r(n,o)}),t}},Bs=async(e,t)=>typeof t=="function"?t(e):t,$R=async(e,t,r)=>{let n=await Bs(t,e.TOKEN),o=await Bs(t,e.USERNAME),a=await Bs(t,e.PASSWORD),i=await Bs(t,e.HEADERS),f=typeof r?.getHeaders=="function"&&r?.getHeaders()||{},l=Object.entries({Accept:"application/json",...i,...t.headers,...f}).filter(([c,d])=>Bl(d)).reduce((c,[d,y])=>({...c,[d]:String(y)}),{});if(Il(n)&&(l.Authorization=`Bearer ${n}`),Il(o)&&Il(a)){let c=UR(`${o}:${a}`);l.Authorization=`Basic ${c}`}return t.body&&(t.mediaType?l["Content-Type"]=t.mediaType:q0(t.body)?l["Content-Type"]=t.body.type||"application/octet-stream":Cs(t.body)?l["Content-Type"]="text/plain":FR(t.body)||(l["Content-Type"]="application/json")),l},zR=e=>{if(e.body)return e.body},qR=async(e,t,r,n,o,a,i)=>{let f=ri.CancelToken.source(),l={url:r,headers:a,data:n??o,method:t.method,withCredentials:e.WITH_CREDENTIALS,cancelToken:f.token};i(()=>f.cancel("The user aborted a request."));try{return await ri.request(l)}catch(c){let d=c;if(d.response)return d.response;throw c}},WR=(e,t)=>{if(t){let r=e.headers[t];if(Cs(r))return r}},HR=e=>{if(e.status!==204)return e.data},ZR=(e,t)=>{let n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[t.status];if(n)throw new $n(e,t,n);if(!t.ok)throw new $n(e,t,"Generic Error")},W0=(e,t)=>new Or(async(r,n,o)=>{try{let a=MR(e,t),i=jR(t),f=zR(t),l=await $R(e,t,i);if(!o.isCancelled){let c=await qR(e,t,a,f,i,l,o),d=HR(c),y=WR(c,t.responseHeader),v={url:a,ok:PR(c.status),status:c.status,statusText:c.statusText,body:y??d};ZR(t,v),r(v.body)}}catch(a){n(a)}});var Ns=class extends Yo{constructor(t){super(t)}request(t){return W0(this.config,t)}};$();z();q();H();W();var Xo=class{constructor(t){this.httpRequest=t}completionsV1CompletionsPost(t){return this.httpRequest.request({method:"POST",url:"/v1/completions",body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}eventsV1EventsPost(t){return this.httpRequest.request({method:"POST",url:"/v1/events",body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}};var Jo=class{constructor(t,r=Ns){this.request=new r({BASE:t?.BASE??"",VERSION:t?.VERSION??"0.1.0",WITH_CREDENTIALS:t?.WITH_CREDENTIALS??!1,CREDENTIALS:t?.CREDENTIALS??"include",TOKEN:t?.TOKEN,USERNAME:t?.USERNAME,PASSWORD:t?.PASSWORD,HEADERS:t?.HEADERS,ENCODE_PATH:t?.ENCODE_PATH}),this.default=new Xo(this.request)}};$();z();q();H();W();$();z();q();H();W();var Ls=(n=>(n.COMPLETION="completion",n.VIEW="view",n.SELECT="select",n))(Ls||{});$();z();q();H();W();function H0(e){return new Promise(t=>setTimeout(t,e))}function ks(e){return e.match(/.*(?:$|\r?\n)/g).filter(Boolean)}function Cl(e){return e.match(/\w+|\W+/g).filter(Boolean)}function Z0(e){return e.trim().length===0}function Nl(e,t){return new Or((r,n,o)=>{e.then(a=>{r(a)}).catch(a=>{n(a)}),o(()=>{t()})})}$();z();q();H();W();var V0={server:{endpoint:"http://localhost:8080"},logs:{level:"error"},anonymousUsageTracking:{disable:!1}};$();z();q();H();W();$();z();q();H();W();var Qo=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Y0=new Set,Ll=typeof ce=="object"&&ce?ce:{},K0=(e,t,r,n)=>{typeof Ll.emitWarning=="function"?Ll.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Ds=globalThis.AbortController,G0=globalThis.AbortSignal;if(typeof Ds>"u"){G0=class{constructor(){at(this,"onabort");at(this,"_onabort",[]);at(this,"reason");at(this,"aborted",!1)}addEventListener(n,o){this._onabort.push(o)}},Ds=class{constructor(){at(this,"signal",new G0);t()}abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);this.signal.onabort?.(n)}}};let e=Ll.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,K0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var VR=e=>!Y0.has(e),h7=Symbol("type"),qn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),X0=e=>qn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Qi:null:null,Qi=class extends Array{constructor(t){super(t),this.fill(0)}},eo,Ji=class{constructor(t,r){at(this,"heap");at(this,"length");if(!J(Ji,eo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){let r=X0(t);if(!r)return[];Ge(Ji,eo,!0);let n=new Ji(t,r);return Ge(Ji,eo,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Fs=Ji;eo=new WeakMap,it(Fs,eo,!1);var jr,gr,en,$r,to,jt,zr,$t,Rt,ft,sr,mr,nr,Ht,qr,Jt,wn,bn,Wr,tn,Zn,cr,ta,kl,si,_n,ra,vr,js,J0,ui,ro,na,rn,Wn,nn,Hn,ia,Fl,no,Ps,io,Us,At,Tt,oa,Pl,fi,ea,Ul=class{constructor(t){it(this,ta);it(this,js);it(this,rn);it(this,nn);it(this,ia);it(this,no);it(this,io);it(this,At);it(this,oa);it(this,fi);it(this,jr,void 0);it(this,gr,void 0);it(this,en,void 0);it(this,$r,void 0);it(this,to,void 0);at(this,"ttl");at(this,"ttlResolution");at(this,"ttlAutopurge");at(this,"updateAgeOnGet");at(this,"updateAgeOnHas");at(this,"allowStale");at(this,"noDisposeOnSet");at(this,"noUpdateTTL");at(this,"maxEntrySize");at(this,"sizeCalculation");at(this,"noDeleteOnFetchRejection");at(this,"noDeleteOnStaleGet");at(this,"allowStaleOnFetchAbort");at(this,"allowStaleOnFetchRejection");at(this,"ignoreFetchAbort");it(this,jt,void 0);it(this,zr,void 0);it(this,$t,void 0);it(this,Rt,void 0);it(this,ft,void 0);it(this,sr,void 0);it(this,mr,void 0);it(this,nr,void 0);it(this,Ht,void 0);it(this,qr,void 0);it(this,Jt,void 0);it(this,wn,void 0);it(this,bn,void 0);it(this,Wr,void 0);it(this,tn,void 0);it(this,Zn,void 0);it(this,cr,void 0);it(this,si,()=>{});it(this,_n,()=>{});it(this,ra,()=>{});it(this,vr,()=>!1);it(this,ui,t=>{});it(this,ro,(t,r,n)=>{});it(this,na,(t,r,n,o)=>{if(n||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:r=0,ttl:n,ttlResolution:o=1,ttlAutopurge:a,updateAgeOnGet:i,updateAgeOnHas:f,allowStale:l,dispose:c,disposeAfter:d,noDisposeOnSet:y,noUpdateTTL:v,maxSize:_=0,maxEntrySize:h=0,sizeCalculation:w,fetchMethod:S,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:D,ignoreFetchAbort:V}=t;if(r!==0&&!qn(r))throw new TypeError("max option must be a nonnegative integer");let F=r?X0(r):Array;if(!F)throw new Error("invalid max value: "+r);if(Ge(this,jr,r),Ge(this,gr,_),this.maxEntrySize=h||J(this,gr),this.sizeCalculation=w,this.sizeCalculation){if(!J(this,gr)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ge(this,to,S),Ge(this,Zn,!!S),Ge(this,$t,new Map),Ge(this,Rt,new Array(r).fill(void 0)),Ge(this,ft,new Array(r).fill(void 0)),Ge(this,sr,new F(r)),Ge(this,mr,new F(r)),Ge(this,nr,0),Ge(this,Ht,0),Ge(this,qr,Fs.create(r)),Ge(this,jt,0),Ge(this,zr,0),typeof c=="function"&&Ge(this,en,c),typeof d=="function"?(Ge(this,$r,d),Ge(this,Jt,[])):(Ge(this,$r,void 0),Ge(this,Jt,void 0)),Ge(this,tn,!!J(this,en)),Ge(this,cr,!!J(this,$r)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(J(this,gr)!==0&&!qn(J(this,gr)))throw new TypeError("maxSize must be a positive integer if specified");if(!qn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");tt(this,js,J0).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!f,this.ttlResolution=qn(o)||o===0?o:1,this.ttlAutopurge=!!a,this.ttl=n||0,this.ttl){if(!qn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");tt(this,ta,kl).call(this)}if(J(this,jr)===0&&this.ttl===0&&J(this,gr)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!J(this,jr)&&!J(this,gr)){let N="LRU_CACHE_UNBOUNDED";VR(N)&&(Y0.add(N),K0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,Ul))}}static unsafeExposeInternals(t){return{starts:J(t,bn),ttls:J(t,Wr),sizes:J(t,wn),keyMap:J(t,$t),keyList:J(t,Rt),valList:J(t,ft),next:J(t,sr),prev:J(t,mr),get head(){return J(t,nr)},get tail(){return J(t,Ht)},free:J(t,qr),isBackgroundFetch:r=>{var n;return tt(n=t,At,Tt).call(n,r)},backgroundFetch:(r,n,o,a)=>{var i;return tt(i=t,io,Us).call(i,r,n,o,a)},moveToTail:r=>{var n;return tt(n=t,fi,ea).call(n,r)},indexes:r=>{var n;return tt(n=t,rn,Wn).call(n,r)},rindexes:r=>{var n;return tt(n=t,nn,Hn).call(n,r)},isStale:r=>{var n;return J(n=t,vr).call(n,r)}}}get max(){return J(this,jr)}get maxSize(){return J(this,gr)}get calculatedSize(){return J(this,zr)}get size(){return J(this,jt)}get fetchMethod(){return J(this,to)}get dispose(){return J(this,en)}get disposeAfter(){return J(this,$r)}getRemainingTTL(t){return J(this,$t).has(t)?1/0:0}*entries(){for(let t of tt(this,rn,Wn).call(this))J(this,ft)[t]!==void 0&&J(this,Rt)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield[J(this,Rt)[t],J(this,ft)[t]])}*rentries(){for(let t of tt(this,nn,Hn).call(this))J(this,ft)[t]!==void 0&&J(this,Rt)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield[J(this,Rt)[t],J(this,ft)[t]])}*keys(){for(let t of tt(this,rn,Wn).call(this)){let r=J(this,Rt)[t];r!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield r)}}*rkeys(){for(let t of tt(this,nn,Hn).call(this)){let r=J(this,Rt)[t];r!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield r)}}*values(){for(let t of tt(this,rn,Wn).call(this))J(this,ft)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield J(this,ft)[t])}*rvalues(){for(let t of tt(this,nn,Hn).call(this))J(this,ft)[t]!==void 0&&!tt(this,At,Tt).call(this,J(this,ft)[t])&&(yield J(this,ft)[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of tt(this,rn,Wn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;if(a!==void 0&&t(a,J(this,Rt)[n],this))return this.get(J(this,Rt)[n],r)}}forEach(t,r=this){for(let n of tt(this,rn,Wn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,J(this,Rt)[n],this)}}rforEach(t,r=this){for(let n of tt(this,nn,Hn).call(this)){let o=J(this,ft)[n],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;a!==void 0&&t.call(r,a,J(this,Rt)[n],this)}}purgeStale(){let t=!1;for(let r of tt(this,nn,Hn).call(this,{allowStale:!0}))J(this,vr).call(this,r)&&(this.delete(J(this,Rt)[r]),t=!0);return t}dump(){let t=[];for(let r of tt(this,rn,Wn).call(this,{allowStale:!0})){let n=J(this,Rt)[r],o=J(this,ft)[r],a=tt(this,At,Tt).call(this,o)?o.__staleWhileFetching:o;if(a===void 0||n===void 0)continue;let i={value:a};if(J(this,Wr)&&J(this,bn)){i.ttl=J(this,Wr)[r];let f=Qo.now()-J(this,bn)[r];i.start=Math.floor(Date.now()-f)}J(this,wn)&&(i.size=J(this,wn)[r]),t.unshift([n,i])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let o=Date.now()-n.start;n.start=Qo.now()-o}this.set(r,n.value,n)}}set(t,r,n={}){var v,_;if(r===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:a,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:l}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,d=J(this,na).call(this,t,r,n.size||0,f);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let y=J(this,jt)===0?void 0:J(this,$t).get(t);if(y===void 0)y=J(this,jt)===0?J(this,Ht):J(this,qr).length!==0?J(this,qr).pop():J(this,jt)===J(this,jr)?tt(this,no,Ps).call(this,!1):J(this,jt),J(this,Rt)[y]=t,J(this,ft)[y]=r,J(this,$t).set(t,y),J(this,sr)[J(this,Ht)]=y,J(this,mr)[y]=J(this,Ht),Ge(this,Ht,y),Ia(this,jt)._++,J(this,ro).call(this,y,d,l),l&&(l.set="add"),c=!1;else{tt(this,fi,ea).call(this,y);let h=J(this,ft)[y];if(r!==h){if(J(this,Zn)&&tt(this,At,Tt).call(this,h)?h.__abortController.abort(new Error("replaced")):i||(J(this,tn)&&((v=J(this,en))==null||v.call(this,h,t,"set")),J(this,cr)&&J(this,Jt)?.push([h,t,"set"])),J(this,ui).call(this,y),J(this,ro).call(this,y,d,l),J(this,ft)[y]=r,l){l.set="replace";let w=h&&tt(this,At,Tt).call(this,h)?h.__staleWhileFetching:h;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(o!==0&&!J(this,Wr)&&tt(this,ta,kl).call(this),J(this,Wr)&&(c||J(this,ra).call(this,y,o,a),l&&J(this,_n).call(this,l,y)),!i&&J(this,cr)&&J(this,Jt)){let h=J(this,Jt),w;for(;w=h?.shift();)(_=J(this,$r))==null||_.call(this,...w)}return this}pop(){var t;try{for(;J(this,jt);){let r=J(this,ft)[J(this,nr)];if(tt(this,no,Ps).call(this,!0),tt(this,At,Tt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(J(this,cr)&&J(this,Jt)){let r=J(this,Jt),n;for(;n=r?.shift();)(t=J(this,$r))==null||t.call(this,...n)}}}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:o}=r,a=J(this,$t).get(t);if(a!==void 0){let i=J(this,ft)[a];if(tt(this,At,Tt).call(this,i)&&i.__staleWhileFetching===void 0)return!1;if(J(this,vr).call(this,a))o&&(o.has="stale",J(this,_n).call(this,o,a));else return n&&J(this,si).call(this,a),o&&(o.has="hit",J(this,_n).call(this,o,a)),!0}else o&&(o.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,o=J(this,$t).get(t);if(o!==void 0&&(n||!J(this,vr).call(this,o))){let a=J(this,ft)[o];return tt(this,At,Tt).call(this,a)?a.__staleWhileFetching:a}}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:_=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:w,forceRefresh:S=!1,status:T,signal:C}=r;if(!J(this,Zn))return T&&(T.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:T});let M={allowStale:n,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:i,noDisposeOnSet:f,size:l,sizeCalculation:c,noUpdateTTL:d,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:h,ignoreFetchAbort:_,status:T,signal:C},D=J(this,$t).get(t);if(D===void 0){T&&(T.fetch="miss");let V=tt(this,io,Us).call(this,t,D,M,w);return V.__returned=V}else{let V=J(this,ft)[D];if(tt(this,At,Tt).call(this,V)){let Q=n&&V.__staleWhileFetching!==void 0;return T&&(T.fetch="inflight",Q&&(T.returnedStale=!0)),Q?V.__staleWhileFetching:V.__returned=V}let F=J(this,vr).call(this,D);if(!S&&!F)return T&&(T.fetch="hit"),tt(this,fi,ea).call(this,D),o&&J(this,si).call(this,D),T&&J(this,_n).call(this,T,D),V;let N=tt(this,io,Us).call(this,t,D,M,w),G=N.__staleWhileFetching!==void 0&&n;return T&&(T.fetch=F?"stale":"refresh",G&&F&&(T.returnedStale=!0)),G?N.__staleWhileFetching:N.__returned=N}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:i}=r,f=J(this,$t).get(t);if(f!==void 0){let l=J(this,ft)[f],c=tt(this,At,Tt).call(this,l);return i&&J(this,_n).call(this,i,f),J(this,vr).call(this,f)?(i&&(i.get="stale"),c?(i&&n&&l.__staleWhileFetching!==void 0&&(i.returnedStale=!0),n?l.__staleWhileFetching:void 0):(a||this.delete(t),i&&n&&(i.returnedStale=!0),n?l:void 0)):(i&&(i.get="hit"),c?l.__staleWhileFetching:(tt(this,fi,ea).call(this,f),o&&J(this,si).call(this,f),l))}else i&&(i.get="miss")}delete(t){var n,o;let r=!1;if(J(this,jt)!==0){let a=J(this,$t).get(t);if(a!==void 0)if(r=!0,J(this,jt)===1)this.clear();else{J(this,ui).call(this,a);let i=J(this,ft)[a];tt(this,At,Tt).call(this,i)?i.__abortController.abort(new Error("deleted")):(J(this,tn)||J(this,cr))&&(J(this,tn)&&((n=J(this,en))==null||n.call(this,i,t,"delete")),J(this,cr)&&J(this,Jt)?.push([i,t,"delete"])),J(this,$t).delete(t),J(this,Rt)[a]=void 0,J(this,ft)[a]=void 0,a===J(this,Ht)?Ge(this,Ht,J(this,mr)[a]):a===J(this,nr)?Ge(this,nr,J(this,sr)[a]):(J(this,sr)[J(this,mr)[a]]=J(this,sr)[a],J(this,mr)[J(this,sr)[a]]=J(this,mr)[a]),Ia(this,jt)._--,J(this,qr).push(a)}}if(J(this,cr)&&J(this,Jt)?.length){let a=J(this,Jt),i;for(;i=a?.shift();)(o=J(this,$r))==null||o.call(this,...i)}return r}clear(){var t,r;for(let n of tt(this,nn,Hn).call(this,{allowStale:!0})){let o=J(this,ft)[n];if(tt(this,At,Tt).call(this,o))o.__abortController.abort(new Error("deleted"));else{let a=J(this,Rt)[n];J(this,tn)&&((t=J(this,en))==null||t.call(this,o,a,"delete")),J(this,cr)&&J(this,Jt)?.push([o,a,"delete"])}}if(J(this,$t).clear(),J(this,ft).fill(void 0),J(this,Rt).fill(void 0),J(this,Wr)&&J(this,bn)&&(J(this,Wr).fill(0),J(this,bn).fill(0)),J(this,wn)&&J(this,wn).fill(0),Ge(this,nr,0),Ge(this,Ht,0),J(this,qr).length=0,Ge(this,zr,0),Ge(this,jt,0),J(this,cr)&&J(this,Jt)){let n=J(this,Jt),o;for(;o=n?.shift();)(r=J(this,$r))==null||r.call(this,...o)}}},Ms=Ul;jr=new WeakMap,gr=new WeakMap,en=new WeakMap,$r=new WeakMap,to=new WeakMap,jt=new WeakMap,zr=new WeakMap,$t=new WeakMap,Rt=new WeakMap,ft=new WeakMap,sr=new WeakMap,mr=new WeakMap,nr=new WeakMap,Ht=new WeakMap,qr=new WeakMap,Jt=new WeakMap,wn=new WeakMap,bn=new WeakMap,Wr=new WeakMap,tn=new WeakMap,Zn=new WeakMap,cr=new WeakMap,ta=new WeakSet,kl=function(){let t=new Qi(J(this,jr)),r=new Qi(J(this,jr));Ge(this,Wr,t),Ge(this,bn,r),Ge(this,ra,(a,i,f=Qo.now())=>{if(r[a]=i!==0?f:0,t[a]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{J(this,vr).call(this,a)&&this.delete(J(this,Rt)[a])},i+1);l.unref&&l.unref()}}),Ge(this,si,a=>{r[a]=t[a]!==0?Qo.now():0}),Ge(this,_n,(a,i)=>{if(t[i]){let f=t[i],l=r[i];a.ttl=f,a.start=l,a.now=n||o();let c=a.now-l;a.remainingTTL=f-c}});let n=0,o=()=>{let a=Qo.now();if(this.ttlResolution>0){n=a;let i=setTimeout(()=>n=0,this.ttlResolution);i.unref&&i.unref()}return a};this.getRemainingTTL=a=>{let i=J(this,$t).get(a);if(i===void 0)return 0;let f=t[i],l=r[i];if(f===0||l===0)return 1/0;let c=(n||o())-l;return f-c},Ge(this,vr,a=>t[a]!==0&&r[a]!==0&&(n||o())-r[a]>t[a])},si=new WeakMap,_n=new WeakMap,ra=new WeakMap,vr=new WeakMap,js=new WeakSet,J0=function(){let t=new Qi(J(this,jr));Ge(this,zr,0),Ge(this,wn,t),Ge(this,ui,r=>{Ge(this,zr,J(this,zr)-t[r]),t[r]=0}),Ge(this,na,(r,n,o,a)=>{if(tt(this,At,Tt).call(this,n))return 0;if(!qn(o))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(o=a(n,r),!qn(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ge(this,ro,(r,n,o)=>{if(t[r]=n,J(this,gr)){let a=J(this,gr)-t[r];for(;J(this,zr)>a;)tt(this,no,Ps).call(this,!0)}Ge(this,zr,J(this,zr)+t[r]),o&&(o.entrySize=n,o.totalCalculatedSize=J(this,zr))})},ui=new WeakMap,ro=new WeakMap,na=new WeakMap,rn=new WeakSet,Wn=function*({allowStale:t=this.allowStale}={}){if(J(this,jt))for(let r=J(this,Ht);!(!tt(this,ia,Fl).call(this,r)||((t||!J(this,vr).call(this,r))&&(yield r),r===J(this,nr)));)r=J(this,mr)[r]},nn=new WeakSet,Hn=function*({allowStale:t=this.allowStale}={}){if(J(this,jt))for(let r=J(this,nr);!(!tt(this,ia,Fl).call(this,r)||((t||!J(this,vr).call(this,r))&&(yield r),r===J(this,Ht)));)r=J(this,sr)[r]},ia=new WeakSet,Fl=function(t){return t!==void 0&&J(this,$t).get(J(this,Rt)[t])===t},no=new WeakSet,Ps=function(t){var a;let r=J(this,nr),n=J(this,Rt)[r],o=J(this,ft)[r];return J(this,Zn)&&tt(this,At,Tt).call(this,o)?o.__abortController.abort(new Error("evicted")):(J(this,tn)||J(this,cr))&&(J(this,tn)&&((a=J(this,en))==null||a.call(this,o,n,"evict")),J(this,cr)&&J(this,Jt)?.push([o,n,"evict"])),J(this,ui).call(this,r),t&&(J(this,Rt)[r]=void 0,J(this,ft)[r]=void 0,J(this,qr).push(r)),J(this,jt)===1?(Ge(this,nr,Ge(this,Ht,0)),J(this,qr).length=0):Ge(this,nr,J(this,sr)[r]),J(this,$t).delete(n),Ia(this,jt)._--,r},io=new WeakSet,Us=function(t,r,n,o){let a=r===void 0?void 0:J(this,ft)[r];if(tt(this,At,Tt).call(this,a))return a;let i=new Ds,{signal:f}=n;f?.addEventListener("abort",()=>i.abort(f.reason),{signal:i.signal});let l={signal:i.signal,options:n,context:o},c=(w,S=!1)=>{let{aborted:T}=i.signal,C=n.ignoreFetchAbort&&w!==void 0;if(n.status&&(T&&!S?(n.status.fetchAborted=!0,n.status.fetchError=i.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),T&&!C&&!S)return y(i.signal.reason);let M=_;return J(this,ft)[r]===_&&(w===void 0?M.__staleWhileFetching?J(this,ft)[r]=M.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,w,l.options))),w},d=w=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=w),y(w)),y=w=>{let{aborted:S}=i.signal,T=S&&n.allowStaleOnFetchAbort,C=T||n.allowStaleOnFetchRejection,M=C||n.noDeleteOnFetchRejection,D=_;if(J(this,ft)[r]===_&&(!M||D.__staleWhileFetching===void 0?this.delete(t):T||(J(this,ft)[r]=D.__staleWhileFetching)),C)return n.status&&D.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw w},v=(w,S)=>{var C;let T=(C=J(this,to))==null?void 0:C.call(this,t,a,l);T&&T instanceof Promise&&T.then(M=>w(M),S),i.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(w(),n.allowStaleOnFetchAbort&&(w=M=>c(M,!0)))})};n.status&&(n.status.fetchDispatched=!0);let _=new Promise(v).then(c,d),h=Object.assign(_,{__abortController:i,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,h,{...l.options,status:void 0}),r=J(this,$t).get(t)):J(this,ft)[r]=h,h},At=new WeakSet,Tt=function(t){if(!J(this,Zn))return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ds},oa=new WeakSet,Pl=function(t,r){J(this,mr)[r]=t,J(this,sr)[t]=r},fi=new WeakSet,ea=function(t){t!==J(this,Ht)&&(t===J(this,nr)?Ge(this,nr,J(this,sr)[t]):tt(this,oa,Pl).call(this,J(this,mr)[t],J(this,sr)[t]),tt(this,oa,Pl).call(this,J(this,Ht),t),Ge(this,Ht,t))};var b_=Jn(tv()),__=Jn(Ov());$();z();q();H();W();$();z();q();H();W();Na();Na();var zt={},Iv=!1;function BT(){return Iv||(Iv=!0,zt.endianness=function(){return"LE"},zt.hostname=function(){return typeof location<"u"?location.hostname:""},zt.loadavg=function(){return[]},zt.uptime=function(){return 0},zt.freemem=function(){return Number.MAX_VALUE},zt.totalmem=function(){return Number.MAX_VALUE},zt.cpus=function(){return[]},zt.type=function(){return"Browser"},zt.release=function(){return typeof navigator<"u"?navigator.appVersion:""},zt.networkInterfaces=zt.getNetworkInterfaces=function(){return{}},zt.arch=function(){return"javascript"},zt.platform=function(){return"browser"},zt.tmpdir=zt.tmpDir=function(){return"/tmp"},zt.EOL=`
`,zt.homedir=function(){return"/"}),zt}var st=BT();st.endianness;st.hostname;st.loadavg;st.uptime;st.freemem;st.totalmem;st.cpus;st.type;st.release;st.networkInterfaces;st.getNetworkInterfaces;st.arch;st.platform;st.tmpdir;st.tmpDir;st.EOL;st.homedir;var CT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return CT};st.homedir=function(){return"/home"};st.version=function(){return""};st.arch=function(){return"x64"};st.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};st.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};st.uptime=Ro;st.constants={};var iz=st.version,oz=st.constants,az=st.EOL,sz=st.arch,uz=st.cpus,fz=st.endianness,lz=st.freemem,cz=st.getNetworkInterfaces,hz=st.homedir,pz=st.hostname,dz=st.loadavg,yz=st.networkInterfaces,gz=st.platform,mz=st.release,vz=st.tmpDir,wz=st.tmpdir,bz=st.totalmem,_z=st.type;$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var Gl={},xv=!1,fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function NT(){if(xv)return Gl;xv=!0;var e=Gl={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(w){if(t===setTimeout)return setTimeout(w,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch{try{return t.call(null,w,0)}catch{return t.call(this||fo,w,0)}}}function i(w){if(r===clearTimeout)return clearTimeout(w);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{return r(w)}catch{try{return r.call(null,w)}catch{return r.call(this||fo,w)}}}var f=[],l=!1,c,d=-1;function y(){!l||!c||(l=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!l){var w=a(y);l=!0;for(var S=f.length;S;){for(c=f,f=[];++d<S;)c&&c[d].run();d=-1,S=f.length}c=null,l=!1,i(w)}}e.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];f.push(new _(w,S)),f.length===1&&!l&&a(v)};function _(w,S){(this||fo).fun=w,(this||fo).array=S}_.prototype.run=function(){(this||fo).fun.apply(null,(this||fo).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(w){return[]},e.binding=function(w){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(w){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Gl}var lt=NT();lt.platform="browser";lt.addListener;lt.argv;lt.binding;lt.browser;lt.chdir;lt.cwd;lt.emit;lt.env;lt.listeners;lt.nextTick;lt.off;lt.on;lt.once;lt.prependListener;lt.prependOnceListener;lt.removeAllListeners;lt.removeListener;lt.title;lt.umask;lt.version;lt.versions;var Yl={},Bv=!1;function LT(){if(Bv)return Yl;Bv=!0;var e=lt;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l===void 0&&(l=e.cwd()),d=l),t(d),d.length!==0&&(i=d+"/"+i,f=d.charCodeAt(0)===47)}return i=r(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=r(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f<arguments.length;++f){var l=arguments[f];t(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":o.normalize(i)},relative:function(i,f){if(t(i),t(f),i===f||(i=o.resolve(i),f=o.resolve(f),i===f))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var c=i.length,d=c-l,y=1;y<f.length&&f.charCodeAt(y)===47;++y);for(var v=f.length,_=v-y,h=d<_?d:_,w=-1,S=0;S<=h;++S){if(S===h){if(_>h){if(f.charCodeAt(y+S)===47)return f.slice(y+S+1);if(S===0)return f.slice(y+S)}else d>h&&(i.charCodeAt(l+S)===47?w=S:S===0&&(w=0));break}var T=i.charCodeAt(l+S),C=f.charCodeAt(y+S);if(T!==C)break;T===47&&(w=S)}var M="";for(S=l+w+1;S<=c;++S)(S===c||i.charCodeAt(S)===47)&&(M.length===0?M+="..":M+="/..");return M.length>0?M+f.slice(y+w):(y+=w,f.charCodeAt(y)===47&&++y,f.slice(y))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,d=!0,y=i.length-1;y>=1;--y)if(f=i.charCodeAt(y),f===47){if(!d){c=y;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');t(i);var l=0,c=-1,d=!0,y;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var v=f.length-1,_=-1;for(y=i.length-1;y>=0;--y){var h=i.charCodeAt(y);if(h===47){if(!d){l=y+1;break}}else _===-1&&(d=!1,_=y+1),v>=0&&(h===f.charCodeAt(v)?--v===-1&&(c=y):(v=-1,c=_))}return l===c?c=_:c===-1&&(c=i.length),i.slice(l,c)}else{for(y=i.length-1;y>=0;--y)if(i.charCodeAt(y)===47){if(!d){l=y+1;break}}else c===-1&&(d=!1,c=y+1);return c===-1?"":i.slice(l,c)}},extname:function(i){t(i);for(var f=-1,l=0,c=-1,d=!0,y=0,v=i.length-1;v>=0;--v){var _=i.charCodeAt(v);if(_===47){if(!d){l=v+1;break}continue}c===-1&&(d=!1,c=v+1),_===46?f===-1?f=v:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){t(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,d;c?(f.root="/",d=1):d=0;for(var y=-1,v=0,_=-1,h=!0,w=i.length-1,S=0;w>=d;--w){if(l=i.charCodeAt(w),l===47){if(!h){v=w+1;break}continue}_===-1&&(h=!1,_=w+1),l===46?y===-1?y=w:S!==1&&(S=1):y!==-1&&(S=-1)}return y===-1||_===-1||S===0||S===1&&y===_-1&&y===v+1?_!==-1&&(v===0&&c?f.base=f.name=i.slice(1,_):f.base=f.name=i.slice(v,_)):(v===0&&c?(f.name=i.slice(1,y),f.base=i.slice(1,_)):(f.name=i.slice(v,y),f.base=i.slice(v,_)),f.ext=i.slice(y,_)),v>0?f.dir=i.slice(0,v-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Yl=o,Yl}var Ot=LT();var Wz=Ot._makeLong,Hz=Ot.basename,Zz=Ot.delimiter,Vz=Ot.dirname,Gz=Ot.extname,Yz=Ot.format,Kz=Ot.isAbsolute,Xz=Ot.join,Jz=Ot.normalize,Qz=Ot.parse,e9=Ot.posix,t9=Ot.relative,r9=Ot.resolve,sa=Ot.sep,n9=Ot.win32;var w_=Jn(Cv());$();z();q();H();W();$();z();q();H();W();function Nv(){throw new Error("Node.js child_process is not supported by JSPM core in the browser")}$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var kv,An,Rn,co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se,Pt=kv={};function Kl(){throw new Error("setTimeout has not been defined")}function Xl(){throw new Error("clearTimeout has not been defined")}function Fv(e){if(An===setTimeout)return setTimeout(e,0);if((An===Kl||!An)&&setTimeout)return An=setTimeout,setTimeout(e,0);try{return An(e,0)}catch{try{return An.call(null,e,0)}catch{return An.call(this||co,e,0)}}}(function(){try{An=typeof setTimeout=="function"?setTimeout:Kl}catch{An=Kl}try{Rn=typeof clearTimeout=="function"?clearTimeout:Xl}catch{Rn=Xl}})();var pi,Tn=[],lo=!1,Ws=-1;function jT(){lo&&pi&&(lo=!1,pi.length?Tn=pi.concat(Tn):Ws=-1,Tn.length&&Pv())}function Pv(){if(!lo){var e=Fv(jT);lo=!0;for(var t=Tn.length;t;){for(pi=Tn,Tn=[];++Ws<t;)pi&&pi[Ws].run();Ws=-1,t=Tn.length}pi=null,lo=!1,function(r){if(Rn===clearTimeout)return clearTimeout(r);if((Rn===Xl||!Rn)&&clearTimeout)return Rn=clearTimeout,clearTimeout(r);try{Rn(r)}catch{try{return Rn.call(null,r)}catch{return Rn.call(this||co,r)}}}(e)}}function Lv(e,t){(this||co).fun=e,(this||co).array=t}function Sn(){}Pt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Tn.push(new Lv(e,t)),Tn.length!==1||lo||Fv(Pv)},Lv.prototype.run=function(){(this||co).fun.apply(null,(this||co).array)},Pt.title="browser",Pt.browser=!0,Pt.env={},Pt.argv=[],Pt.version="",Pt.versions={},Pt.on=Sn,Pt.addListener=Sn,Pt.once=Sn,Pt.off=Sn,Pt.removeListener=Sn,Pt.removeAllListeners=Sn,Pt.emit=Sn,Pt.prependListener=Sn,Pt.prependOnceListener=Sn,Pt.listeners=function(e){return[]},Pt.binding=function(e){throw new Error("process.binding is not supported")},Pt.cwd=function(){return"/"},Pt.chdir=function(e){throw new Error("process.chdir is not supported")},Pt.umask=function(){return 0};var Et=kv;Et.addListener;Et.argv;Et.binding;Et.browser;Et.chdir;Et.cwd;Et.emit;Et.env;Et.listeners;Et.nextTick;Et.off;Et.on;Et.once;Et.prependListener;Et.prependOnceListener;Et.removeAllListeners;Et.removeListener;Et.title;Et.umask;Et.version;Et.versions;var $T=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",rc=Object.prototype.toString,nu=function(e){return!($T&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&rc.call(e)==="[object Arguments]"},Gv=function(e){return!!nu(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&rc.call(e)!=="[object Array]"&&rc.call(e.callee)==="[object Function]"},zT=function(){return nu(arguments)}();nu.isLegacyArguments=Gv;var qT=zT?nu:Gv,WT=Object.prototype.toString,HT=Function.prototype.toString,ZT=/^\s*(?:function)?\*/,Yv=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Kv=Object.getPrototypeOf,Uv=function(){if(!Yv)return!1;try{return Function("return function*() {}")()}catch{}}(),VT=Uv?Kv(Uv):{},GT=function(e){return typeof e=="function"&&(!!ZT.test(HT.call(e))||(Yv?Kv(e)===VT:WT.call(e)==="[object GeneratorFunction]"))},YT=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},Xv=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},ct={},KT=Xv,XT=qT,JT=GT;function gi(e){return e.call.bind(e)}var Jv=typeof BigInt<"u",nc=typeof Symbol<"u",br=nc&&Symbol.toStringTag!==void 0,pr=typeof Uint8Array<"u",QT=typeof ArrayBuffer<"u";if(pr&&br)var eO=Object.getPrototypeOf(Uint8Array.prototype),xr=gi(Object.getOwnPropertyDescriptor(eO,Symbol.toStringTag).get);var Bt=gi(Object.prototype.toString),tO=gi(Number.prototype.valueOf),rO=gi(String.prototype.valueOf),nO=gi(Boolean.prototype.valueOf);if(Jv)var iO=gi(BigInt.prototype.valueOf);if(nc)var oO=gi(Symbol.prototype.valueOf);function ca(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}function Dv(e){return pr&&br?xr(e)!==void 0:Qv(e)||ew(e)||tw(e)||rw(e)||nw(e)||iw(e)||ow(e)||aw(e)||sw(e)||uw(e)||fw(e)}function Qv(e){return pr&&br?xr(e)==="Uint8Array":Bt(e)==="[object Uint8Array]"||KT(e)&&e.buffer!==void 0}function ew(e){return pr&&br?xr(e)==="Uint8ClampedArray":Bt(e)==="[object Uint8ClampedArray]"}function tw(e){return pr&&br?xr(e)==="Uint16Array":Bt(e)==="[object Uint16Array]"}function rw(e){return pr&&br?xr(e)==="Uint32Array":Bt(e)==="[object Uint32Array]"}function nw(e){return pr&&br?xr(e)==="Int8Array":Bt(e)==="[object Int8Array]"}function iw(e){return pr&&br?xr(e)==="Int16Array":Bt(e)==="[object Int16Array]"}function ow(e){return pr&&br?xr(e)==="Int32Array":Bt(e)==="[object Int32Array]"}function aw(e){return pr&&br?xr(e)==="Float32Array":Bt(e)==="[object Float32Array]"}function sw(e){return pr&&br?xr(e)==="Float64Array":Bt(e)==="[object Float64Array]"}function uw(e){return pr&&br?xr(e)==="BigInt64Array":Bt(e)==="[object BigInt64Array]"}function fw(e){return pr&&br?xr(e)==="BigUint64Array":Bt(e)==="[object BigUint64Array]"}function Hs(e){return Bt(e)==="[object Map]"}function Zs(e){return Bt(e)==="[object Set]"}function Vs(e){return Bt(e)==="[object WeakMap]"}function Jl(e){return Bt(e)==="[object WeakSet]"}function Xs(e){return Bt(e)==="[object ArrayBuffer]"}function Mv(e){return typeof ArrayBuffer<"u"&&(Xs.working?Xs(e):e instanceof ArrayBuffer)}function Js(e){return Bt(e)==="[object DataView]"}function jv(e){return typeof DataView<"u"&&(Js.working?Js(e):e instanceof DataView)}function Qs(e){return Bt(e)==="[object SharedArrayBuffer]"}function $v(e){return typeof SharedArrayBuffer<"u"&&(Qs.working?Qs(e):e instanceof SharedArrayBuffer)}function zv(e){return ca(e,tO)}function qv(e){return ca(e,rO)}function Wv(e){return ca(e,nO)}function Hv(e){return Jv&&ca(e,iO)}function Zv(e){return nc&&ca(e,oO)}ct.isArgumentsObject=XT,ct.isGeneratorFunction=JT,ct.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},ct.isArrayBufferView=function(e){return QT&&ArrayBuffer.isView?ArrayBuffer.isView(e):Dv(e)||jv(e)},ct.isTypedArray=Dv,ct.isUint8Array=Qv,ct.isUint8ClampedArray=ew,ct.isUint16Array=tw,ct.isUint32Array=rw,ct.isInt8Array=nw,ct.isInt16Array=iw,ct.isInt32Array=ow,ct.isFloat32Array=aw,ct.isFloat64Array=sw,ct.isBigInt64Array=uw,ct.isBigUint64Array=fw,Hs.working=typeof Map<"u"&&Hs(new Map),ct.isMap=function(e){return typeof Map<"u"&&(Hs.working?Hs(e):e instanceof Map)},Zs.working=typeof Set<"u"&&Zs(new Set),ct.isSet=function(e){return typeof Set<"u"&&(Zs.working?Zs(e):e instanceof Set)},Vs.working=typeof WeakMap<"u"&&Vs(new WeakMap),ct.isWeakMap=function(e){return typeof WeakMap<"u"&&(Vs.working?Vs(e):e instanceof WeakMap)},Jl.working=typeof WeakSet<"u"&&Jl(new WeakSet),ct.isWeakSet=function(e){return Jl(e)},Xs.working=typeof ArrayBuffer<"u"&&Xs(new ArrayBuffer),ct.isArrayBuffer=Mv,Js.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Js(new DataView(new ArrayBuffer(1),0,1)),ct.isDataView=jv,Qs.working=typeof SharedArrayBuffer<"u"&&Qs(new SharedArrayBuffer),ct.isSharedArrayBuffer=$v,ct.isAsyncFunction=function(e){return Bt(e)==="[object AsyncFunction]"},ct.isMapIterator=function(e){return Bt(e)==="[object Map Iterator]"},ct.isSetIterator=function(e){return Bt(e)==="[object Set Iterator]"},ct.isGeneratorObject=function(e){return Bt(e)==="[object Generator]"},ct.isWebAssemblyCompiledModule=function(e){return Bt(e)==="[object WebAssembly.Module]"},ct.isNumberObject=zv,ct.isStringObject=qv,ct.isBooleanObject=Wv,ct.isBigIntObject=Hv,ct.isSymbolObject=Zv,ct.isBoxedPrimitive=function(e){return zv(e)||qv(e)||Wv(e)||Hv(e)||Zv(e)},ct.isAnyArrayBuffer=function(e){return pr&&(Mv(e)||$v(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ct,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});var ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se,Oe={},sn=Et,Vv=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},aO=/%[sdj%]/g;Oe.format=function(e){if(!tu(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Gn(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(aO,function(f){if(f==="%%")return"%";if(r>=o)return f;switch(f){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return f}}),i=n[r];r<o;i=n[++r])iu(i)||!ho(i)?a+=" "+i:a+=" "+Gn(i);return a},Oe.deprecate=function(e,t){if(sn!==void 0&&sn.noDeprecation===!0)return e;if(sn===void 0)return function(){return Oe.deprecate(e,t).apply(this||ua,arguments)};var r=!1;return function(){if(!r){if(sn.throwDeprecation)throw new Error(t);sn.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this||ua,arguments)}};var Gs={},lw=/^$/;sn.env.NODE_DEBUG&&(Ys=sn.env.NODE_DEBUG,Ys=Ys.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),lw=new RegExp("^"+Ys+"$","i"));var Ys;function Gn(e,t){var r={seen:[],stylize:uO};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ic(t)?r.showHidden=t:t&&Oe._extend(r,t),yi(r.showHidden)&&(r.showHidden=!1),yi(r.depth)&&(r.depth=2),yi(r.colors)&&(r.colors=!1),yi(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=sO),eu(r,e,r.depth)}function sO(e,t){var r=Gn.styles[t];return r?"\x1B["+Gn.colors[r][0]+"m"+e+"\x1B["+Gn.colors[r][1]+"m":e}function uO(e,t){return e}function eu(e,t,r){if(e.customInspect&&t&&Ks(t.inspect)&&t.inspect!==Oe.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return tu(n)||(n=eu(e,n,r)),n}var o=function(v,_){if(yi(_))return v.stylize("undefined","undefined");if(tu(_)){var h="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(h,"string")}if(hw(_))return v.stylize(""+_,"number");if(ic(_))return v.stylize(""+_,"boolean");if(iu(_))return v.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),i=function(v){var _={};return v.forEach(function(h,w){_[h]=!0}),_}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),la(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ql(t);if(a.length===0){if(Ks(t)){var f=t.name?": "+t.name:"";return e.stylize("[Function"+f+"]","special")}if(fa(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ru(t))return e.stylize(Date.prototype.toString.call(t),"date");if(la(t))return Ql(t)}var l,c="",d=!1,y=["{","}"];return cw(t)&&(d=!0,y=["[","]"]),Ks(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),fa(t)&&(c=" "+RegExp.prototype.toString.call(t)),ru(t)&&(c=" "+Date.prototype.toUTCString.call(t)),la(t)&&(c=" "+Ql(t)),a.length!==0||d&&t.length!=0?r<0?fa(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=d?function(v,_,h,w,S){for(var T=[],C=0,M=_.length;C<M;++C)pw(_,String(C))?T.push(ec(v,_,h,w,String(C),!0)):T.push("");return S.forEach(function(D){D.match(/^\d+$/)||T.push(ec(v,_,h,w,D,!0))}),T}(e,t,r,i,a):a.map(function(v){return ec(e,t,r,i,v,d)}),e.seen.pop(),function(v,_,h){var w=0;return v.reduce(function(S,T){return w++,T.indexOf(`
`)>=0&&w++,S+T.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?h[0]+(_===""?"":_+`
`)+" "+v.join(`,
`)+" "+h[1]:h[0]+_+" "+v.join(", ")+" "+h[1]}(l,c,y)):y[0]+c+y[1]}function Ql(e){return"["+Error.prototype.toString.call(e)+"]"}function ec(e,t,r,n,o,a){var i,f,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?f=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(f=e.stylize("[Setter]","special")),pw(n,o)||(i="["+o+"]"),f||(e.seen.indexOf(l.value)<0?(f=iu(r)?eu(e,l.value,null):eu(e,l.value,r-1)).indexOf(`
`)>-1&&(f=a?f.split(`
`).map(function(c){return" "+c}).join(`
`).substr(2):`
`+f.split(`
`).map(function(c){return" "+c}).join(`
`)):f=e.stylize("[Circular]","special")),yi(i)){if(a&&o.match(/^\d+$/))return f;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+f}function cw(e){return Array.isArray(e)}function ic(e){return typeof e=="boolean"}function iu(e){return e===null}function hw(e){return typeof e=="number"}function tu(e){return typeof e=="string"}function yi(e){return e===void 0}function fa(e){return ho(e)&&oc(e)==="[object RegExp]"}function ho(e){return typeof e=="object"&&e!==null}function ru(e){return ho(e)&&oc(e)==="[object Date]"}function la(e){return ho(e)&&(oc(e)==="[object Error]"||e instanceof Error)}function Ks(e){return typeof e=="function"}function oc(e){return Object.prototype.toString.call(e)}function tc(e){return e<10?"0"+e.toString(10):e.toString(10)}Oe.debuglog=function(e){if(e=e.toUpperCase(),!Gs[e])if(lw.test(e)){var t=sn.pid;Gs[e]=function(){var r=Oe.format.apply(Oe,arguments);console.error("%s %d: %s",e,t,r)}}else Gs[e]=function(){};return Gs[e]},Oe.inspect=Gn,Gn.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]},Gn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Oe.types=ct,Oe.isArray=cw,Oe.isBoolean=ic,Oe.isNull=iu,Oe.isNullOrUndefined=function(e){return e==null},Oe.isNumber=hw,Oe.isString=tu,Oe.isSymbol=function(e){return typeof e=="symbol"},Oe.isUndefined=yi,Oe.isRegExp=fa,Oe.types.isRegExp=fa,Oe.isObject=ho,Oe.isDate=ru,Oe.types.isDate=ru,Oe.isError=la,Oe.types.isNativeError=la,Oe.isFunction=Ks,Oe.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},Oe.isBuffer=Xv;var fO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function lO(){var e=new Date,t=[tc(e.getHours()),tc(e.getMinutes()),tc(e.getSeconds())].join(":");return[e.getDate(),fO[e.getMonth()],t].join(" ")}function pw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Oe.log=function(){console.log("%s - %s",lO(),Oe.format.apply(Oe,arguments))},Oe.inherits=YT,Oe._extend=function(e,t){if(!t||!ho(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var di=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function cO(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}Oe.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(di&&e[di]){var t;if(typeof(t=e[di])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var r,n,o=new Promise(function(f,l){r=f,n=l}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(f,l){f?n(f):r(l)});try{e.apply(this||ua,a)}catch(f){n(f)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),di&&Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Vv(e))},Oe.promisify.custom=di,Oe.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var a=this||ua,i=function(){return o.apply(a,arguments)};e.apply(this||ua,r).then(function(f){sn.nextTick(i.bind(null,null,f))},function(f){sn.nextTick(cO.bind(null,f,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Vv(e)),t};Oe._extend;Oe.callbackify;Oe.debuglog;Oe.deprecate;Oe.format;Oe.inherits;Oe.inspect;Oe.isArray;Oe.isBoolean;Oe.isBuffer;Oe.isDate;Oe.isError;Oe.isFunction;Oe.isNull;Oe.isNullOrUndefined;Oe.isNumber;Oe.isObject;Oe.isPrimitive;Oe.isRegExp;Oe.isString;Oe.isSymbol;Oe.isUndefined;Oe.log;Oe.promisify;var D9=Oe._extend,M9=Oe.callbackify,j9=Oe.debuglog,$9=Oe.deprecate,z9=Oe.format,q9=Oe.inherits,W9=Oe.inspect,H9=Oe.isArray,Z9=Oe.isBoolean,V9=Oe.isBuffer,G9=Oe.isDate,Y9=Oe.isError,K9=Oe.isFunction,X9=Oe.isNull,J9=Oe.isNullOrUndefined,Q9=Oe.isNumber,eq=Oe.isObject,tq=Oe.isPrimitive,rq=Oe.isRegExp,nq=Oe.isString,iq=Oe.isSymbol,oq=Oe.isUndefined,aq=Oe.log,sq=Oe.promisify,uq=Oe.types,fq=self.TextEncoder,lq=self.TextDecoder;$();z();q();H();W();for(Rw={byteLength:function(e){var t=gw(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=gw(e),o=n[0],a=n[1],i=new dw(function(c,d,y){return 3*(d+y)/4-y}(0,o,a)),f=0,l=a>0?o-4:o;for(r=0;r<l;r+=4)t=_r[e.charCodeAt(r)]<<18|_r[e.charCodeAt(r+1)]<<12|_r[e.charCodeAt(r+2)]<<6|_r[e.charCodeAt(r+3)],i[f++]=t>>16&255,i[f++]=t>>8&255,i[f++]=255&t;return a===2&&(t=_r[e.charCodeAt(r)]<<2|_r[e.charCodeAt(r+1)]>>4,i[f++]=255&t),a===1&&(t=_r[e.charCodeAt(r)]<<10|_r[e.charCodeAt(r+1)]<<4|_r[e.charCodeAt(r+2)]>>2,i[f++]=t>>8&255,i[f++]=255&t),i},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],a=0,i=r-n;a<i;a+=16383)o.push(hO(e,a,a+16383>i?i:a+16383));return n===1?(t=e[r-1],o.push(Hr[t>>2]+Hr[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Hr[t>>10]+Hr[t>>4&63]+Hr[t<<2&63]+"=")),o.join("")}},Hr=[],_r=[],dw=typeof Uint8Array<"u"?Uint8Array:Array,ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mi=0,yw=ou.length;mi<yw;++mi)Hr[mi]=ou[mi],_r[ou.charCodeAt(mi)]=mi;var Rw,Hr,_r,dw,ou,mi,yw;function gw(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return r===-1&&(r=t),[r,r===t?0:4-r%4]}function hO(e,t,r){for(var n,o,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(Hr[(o=n)>>18&63]+Hr[o>>12&63]+Hr[o>>6&63]+Hr[63&o]);return a.join("")}_r["-".charCodeAt(0)]=62,_r["_".charCodeAt(0)]=63;var pO={read:function(e,t,r,n,o){var a,i,f=8*o-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=256*a+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=256*i+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:1/0*(_?-1:1);i+=Math.pow(2,n),a-=c}return(_?-1:1)*i*Math.pow(2,a-n)},write:function(e,t,r,n,o,a){var i,f,l,c=8*a-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+y>=1?v/l:v*Math.pow(2,1-y))*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i+=y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=255&f,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=255&i,_+=h,i/=256,c-=8);e[r+_-h]|=128*w}},xn={},uc=Rw,po=pO,mw=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xn.Buffer=Le,xn.SlowBuffer=function(e){return+e!=e&&(e=0),Le.alloc(+e)},xn.INSPECT_MAX_BYTES=50;function On(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Le.prototype),t}function Le(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fc(e)}return Tw(e,t,r)}function Tw(e,t,r){if(typeof e=="string")return function(a,i){if(typeof i=="string"&&i!==""||(i="utf8"),!Le.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var f=0|Iw(a,i),l=On(f),c=l.write(a,i);return c!==f&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return ac(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(In(e,ArrayBuffer)||e&&In(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(In(e,SharedArrayBuffer)||e&&In(e.buffer,SharedArrayBuffer)))return vw(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Le.from(n,t,r);var o=function(a){if(Le.isBuffer(a)){var i=0|hc(a.length),f=On(i);return f.length===0||a.copy(f,0,0,i),f}if(a.length!==void 0)return typeof a.length!="number"||pc(a.length)?On(0):ac(a);if(a.type==="Buffer"&&Array.isArray(a.data))return ac(a.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Le.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function Ow(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function fc(e){return Ow(e),On(e<0?0:0|hc(e))}function ac(e){for(var t=e.length<0?0:0|hc(e.length),r=On(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function vw(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=t===void 0&&r===void 0?new Uint8Array(e):r===void 0?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,Le.prototype),n}function hc(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|e}function Iw(e,t){if(Le.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||In(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return lc(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Nw(e).length;default:if(o)return n?-1:lc(e).length;t=(""+t).toLowerCase(),o=!0}}function dO(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return SO(this,t,r);case"utf8":case"utf-8":return Bw(this,t,r);case"ascii":return _O(this,t,r);case"latin1":case"binary":return EO(this,t,r);case"base64":return bO(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AO(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function vi(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ww(e,t,r,n,o){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),pc(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if(typeof t=="string"&&(t=Le.from(t,n)),Le.isBuffer(t))return t.length===0?-1:bw(e,t,r,n,o);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):bw(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function bw(e,t,r,n,o){var a,i=1,f=e.length,l=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;i=2,f/=2,l/=2,r/=2}function c(_,h){return i===1?_[h]:_.readUInt16BE(h*i)}if(o){var d=-1;for(a=r;a<f;a++)if(c(e,a)===c(t,d===-1?0:a-d)){if(d===-1&&(d=a),a-d+1===l)return d*i}else d!==-1&&(a-=a-d),d=-1}else for(r+l>f&&(r=f-l),a=r;a>=0;a--){for(var y=!0,v=0;v<l;v++)if(c(e,a+v)!==c(t,v)){y=!1;break}if(y)return a}return-1}function yO(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var a=t.length;n>a/2&&(n=a/2);for(var i=0;i<n;++i){var f=parseInt(t.substr(2*i,2),16);if(pc(f))return i;e[r+i]=f}return i}function gO(e,t,r,n){return uu(lc(t,e.length-r),e,r,n)}function xw(e,t,r,n){return uu(function(o){for(var a=[],i=0;i<o.length;++i)a.push(255&o.charCodeAt(i));return a}(t),e,r,n)}function mO(e,t,r,n){return xw(e,t,r,n)}function vO(e,t,r,n){return uu(Nw(t),e,r,n)}function wO(e,t,r,n){return uu(function(o,a){for(var i,f,l,c=[],d=0;d<o.length&&!((a-=2)<0);++d)i=o.charCodeAt(d),f=i>>8,l=i%256,c.push(l),c.push(f);return c}(t,e.length-r),e,r,n)}function bO(e,t,r){return t===0&&r===e.length?uc.fromByteArray(e):uc.fromByteArray(e.slice(t,r))}function Bw(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var a,i,f,l,c=e[o],d=null,y=c>239?4:c>223?3:c>191?2:1;if(o+y<=r)switch(y){case 1:c<128&&(d=c);break;case 2:(192&(a=e[o+1]))==128&&(l=(31&c)<<6|63&a)>127&&(d=l);break;case 3:a=e[o+1],i=e[o+2],(192&a)==128&&(192&i)==128&&(l=(15&c)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:a=e[o+1],i=e[o+2],f=e[o+3],(192&a)==128&&(192&i)==128&&(192&f)==128&&(l=(15&c)<<18|(63&a)<<12|(63&i)<<6|63&f)>65535&&l<1114112&&(d=l)}d===null?(d=65533,y=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),o+=y}return function(v){var _=v.length;if(_<=4096)return String.fromCharCode.apply(String,v);for(var h="",w=0;w<_;)h+=String.fromCharCode.apply(String,v.slice(w,w+=4096));return h}(n)}xn.kMaxLength=2147483647,Le.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),Le.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."),Object.defineProperty(Le.prototype,"parent",{enumerable:!0,get:function(){if(Le.isBuffer(this))return this.buffer}}),Object.defineProperty(Le.prototype,"offset",{enumerable:!0,get:function(){if(Le.isBuffer(this))return this.byteOffset}}),Le.poolSize=8192,Le.from=function(e,t,r){return Tw(e,t,r)},Object.setPrototypeOf(Le.prototype,Uint8Array.prototype),Object.setPrototypeOf(Le,Uint8Array),Le.alloc=function(e,t,r){return function(n,o,a){return Ow(n),n<=0?On(n):o!==void 0?typeof a=="string"?On(n).fill(o,a):On(n).fill(o):On(n)}(e,t,r)},Le.allocUnsafe=function(e){return fc(e)},Le.allocUnsafeSlow=function(e){return fc(e)},Le.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Le.prototype},Le.compare=function(e,t){if(In(e,Uint8Array)&&(e=Le.from(e,e.offset,e.byteLength)),In(t,Uint8Array)&&(t=Le.from(t,t.offset,t.byteLength)),!Le.isBuffer(e)||!Le.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Le.isEncoding=function(e){switch(String(e).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}},Le.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Le.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Le.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(In(a,Uint8Array)&&(a=Le.from(a)),!Le.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},Le.byteLength=Iw,Le.prototype._isBuffer=!0,Le.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)vi(this,t,t+1);return this},Le.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)vi(this,t,t+3),vi(this,t+1,t+2);return this},Le.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)vi(this,t,t+7),vi(this,t+1,t+6),vi(this,t+2,t+5),vi(this,t+3,t+4);return this},Le.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Bw(this,0,e):dO.apply(this,arguments)},Le.prototype.toLocaleString=Le.prototype.toString,Le.prototype.equals=function(e){if(!Le.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||Le.compare(this,e)===0},Le.prototype.inspect=function(){var e="",t=xn.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},mw&&(Le.prototype[mw]=Le.prototype.inspect),Le.prototype.compare=function(e,t,r,n,o){if(In(e,Uint8Array)&&(e=Le.from(e,e.offset,e.byteLength)),!Le.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),f=Math.min(a,i),l=this.slice(n,o),c=e.slice(t,r),d=0;d<f;++d)if(l[d]!==c[d]){a=l[d],i=c[d];break}return a<i?-1:i<a?1:0},Le.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},Le.prototype.indexOf=function(e,t,r){return ww(this,e,t,r,!0)},Le.prototype.lastIndexOf=function(e,t,r){return ww(this,e,t,r,!1)},Le.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return yO(this,e,t,r);case"utf8":case"utf-8":return gO(this,e,t,r);case"ascii":return xw(this,e,t,r);case"latin1":case"binary":return mO(this,e,t,r);case"base64":return vO(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wO(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _O(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function EO(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function SO(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",a=t;a<r;++a)o+=TO[e[a]];return o}function AO(e,t,r){for(var n=e.slice(t,r),o="",a=0;a<n.length;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function Vt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function dr(e,t,r,n,o,a){if(!Le.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Cw(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _w(e,t,r,n,o){return t=+t,r>>>=0,o||Cw(e,0,r,4),po.write(e,t,r,n,23,4),r+4}function Ew(e,t,r,n,o){return t=+t,r>>>=0,o||Cw(e,0,r,8),po.write(e,t,r,n,52,8),r+8}Le.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,Le.prototype),n},Le.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n},Le.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Le.prototype.readUInt8=function(e,t){return e>>>=0,t||Vt(e,1,this.length),this[e]},Le.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Vt(e,2,this.length),this[e]|this[e+1]<<8},Le.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Vt(e,2,this.length),this[e]<<8|this[e+1]},Le.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Le.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Le.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Le.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Vt(e,t,this.length);for(var n=t,o=1,a=this[e+--n];n>0&&(o*=256);)a+=this[e+--n]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},Le.prototype.readInt8=function(e,t){return e>>>=0,t||Vt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Le.prototype.readInt16LE=function(e,t){e>>>=0,t||Vt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Le.prototype.readInt16BE=function(e,t){e>>>=0,t||Vt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Le.prototype.readInt32LE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Le.prototype.readInt32BE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Le.prototype.readFloatLE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),po.read(this,e,!0,23,4)},Le.prototype.readFloatBE=function(e,t){return e>>>=0,t||Vt(e,4,this.length),po.read(this,e,!1,23,4)},Le.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Vt(e,8,this.length),po.read(this,e,!0,52,8)},Le.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Vt(e,8,this.length),po.read(this,e,!1,52,8)},Le.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||dr(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},Le.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||dr(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},Le.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,1,255,0),this[t]=255&e,t+1},Le.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Le.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Le.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Le.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Le.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);dr(this,e,t,r,o-1,-o)}var a=0,i=1,f=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&f===0&&this[t+a-1]!==0&&(f=1),this[t+a]=(e/i>>0)-f&255;return t+r},Le.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);dr(this,e,t,r,o-1,-o)}var a=r-1,i=1,f=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&f===0&&this[t+a+1]!==0&&(f=1),this[t+a]=(e/i>>0)-f&255;return t+r},Le.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Le.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Le.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Le.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Le.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||dr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Le.prototype.writeFloatLE=function(e,t,r){return _w(this,e,t,!0,r)},Le.prototype.writeFloatBE=function(e,t,r){return _w(this,e,t,!1,r)},Le.prototype.writeDoubleLE=function(e,t,r){return Ew(this,e,t,!0,r)},Le.prototype.writeDoubleBE=function(e,t,r){return Ew(this,e,t,!1,r)},Le.prototype.copy=function(e,t,r,n){if(!Le.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=o-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},Le.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!Le.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){var o=e.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(a=t;a<r;++a)this[a]=e;else{var i=Le.isBuffer(e)?e:Le.from(e,n),f=i.length;if(f===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=i[a%f]}return this};var RO=/[^+/0-9A-Za-z-_]/g;function lc(e,t){var r;t=t||1/0;for(var n=e.length,o=null,a=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Nw(e){return uc.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(RO,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function uu(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function In(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function pc(e){return e!=e}var TO=function(){for(var e=new Array(256),t=0;t<16;++t)for(var r=16*t,n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n];return e}();xn.Buffer;xn.INSPECT_MAX_BYTES;xn.kMaxLength;var au={},su=xn,un=su.Buffer;function Sw(e,t){for(var r in e)t[r]=e[r]}function wi(e,t,r){return un(e,t,r)}un.from&&un.alloc&&un.allocUnsafe&&un.allocUnsafeSlow?au=su:(Sw(su,au),au.Buffer=wi),wi.prototype=Object.create(un.prototype),Sw(un,wi),wi.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return un(e,t,r)},wi.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=un(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n},wi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return un(e)},wi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return su.SlowBuffer(e)};var OO=au,yo={},cc=OO.Buffer,Aw=cc.isEncoding||function(e){switch((e=""+e)&&e.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 ha(e){var t;switch(this.encoding=function(r){var n=function(o){if(!o)return"utf8";for(var a;;)switch(o){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 o;default:if(a)return;o=(""+o).toLowerCase(),a=!0}}(r);if(typeof n!="string"&&(cc.isEncoding===Aw||!Aw(r)))throw new Error("Unknown encoding: "+r);return n||r}(e),this.encoding){case"utf16le":this.text=xO,this.end=BO,t=4;break;case"utf8":this.fillLast=IO,t=4;break;case"base64":this.text=CO,this.end=NO,t=3;break;default:return this.write=LO,this.end=kO,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=cc.allocUnsafe(t)}function sc(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function IO(e){var t=this.lastTotal-this.lastNeed,r=function(n,o,a){if((192&o[0])!=128)return n.lastNeed=0,"\uFFFD";if(n.lastNeed>1&&o.length>1){if((192&o[1])!=128)return n.lastNeed=1,"\uFFFD";if(n.lastNeed>2&&o.length>2&&(192&o[2])!=128)return n.lastNeed=2,"\uFFFD"}}(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function xO(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function BO(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function CO(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function NO(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function LO(e){return e.toString(this.encoding)}function kO(e){return e&&e.length?this.write(e):""}yo.StringDecoder=ha,ha.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},ha.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t},ha.prototype.text=function(e,t){var r=function(o,a,i){var f=a.length-1;if(f<i)return 0;var l=sc(a[f]);return l>=0?(l>0&&(o.lastNeed=l-1),l):--f<i||l===-2?0:(l=sc(a[f]))>=0?(l>0&&(o.lastNeed=l-2),l):--f<i||l===-2?0:(l=sc(a[f]))>=0?(l>0&&(l===2?l=0:o.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},ha.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};yo.StringDecoder;yo.StringDecoder;var pa={},Lw=!1;function FO(){if(Lw)return pa;Lw=!0,pa.byteLength=f,pa.toByteArray=c,pa.fromByteArray=v;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(_){var h=_.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=_.indexOf("=");w===-1&&(w=h);var S=w===h?0:4-w%4;return[w,S]}function f(_){var h=i(_),w=h[0],S=h[1];return(w+S)*3/4-S}function l(_,h,w){return(h+w)*3/4-w}function c(_){var h,w=i(_),S=w[0],T=w[1],C=new r(l(_,S,T)),M=0,D=T>0?S-4:S,V;for(V=0;V<D;V+=4)h=t[_.charCodeAt(V)]<<18|t[_.charCodeAt(V+1)]<<12|t[_.charCodeAt(V+2)]<<6|t[_.charCodeAt(V+3)],C[M++]=h>>16&255,C[M++]=h>>8&255,C[M++]=h&255;return T===2&&(h=t[_.charCodeAt(V)]<<2|t[_.charCodeAt(V+1)]>>4,C[M++]=h&255),T===1&&(h=t[_.charCodeAt(V)]<<10|t[_.charCodeAt(V+1)]<<4|t[_.charCodeAt(V+2)]>>2,C[M++]=h>>8&255,C[M++]=h&255),C}function d(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,h,w){for(var S,T=[],C=h;C<w;C+=3)S=(_[C]<<16&16711680)+(_[C+1]<<8&65280)+(_[C+2]&255),T.push(d(S));return T.join("")}function v(_){for(var h,w=_.length,S=w%3,T=[],C=16383,M=0,D=w-S;M<D;M+=C)T.push(y(_,M,M+C>D?D:M+C));return S===1?(h=_[w-1],T.push(e[h>>2]+e[h<<4&63]+"==")):S===2&&(h=(_[w-2]<<8)+_[w-1],T.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),T.join("")}return pa}var fu={},kw=!1;function PO(){if(kw)return fu;kw=!0;return fu.read=function(e,t,r,n,o){var a,i,f=o*8-n-1,l=(1<<f)-1,c=l>>1,d=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,a=_&(1<<-d)-1,_>>=-d,d+=f;d>0;a=a*256+e[t+y],y+=v,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+y],y+=v,d-=8);if(a===0)a=1-c;else{if(a===l)return i?NaN:(_?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-c}return(_?-1:1)*i*Math.pow(2,a-n)},fu.write=function(e,t,r,n,o,a){var i,f,l,c=a*8-o-1,d=(1<<c)-1,y=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,h=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+y>=1?t+=v/l:t+=v*Math.pow(2,1-y),t*l>=2&&(i++,l/=2),i+y>=d?(f=0,i=d):i+y>=1?(f=(t*l-1)*Math.pow(2,o),i=i+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),i=0));o>=8;e[r+_]=f&255,_+=h,f/=256,o-=8);for(i=i<<o|f,c+=o;c>0;e[r+_]=i&255,_+=h,i/=256,c-=8);e[r+_-h]|=w*128},fu}var bi={},Fw=!1;function UO(){if(Fw)return bi;Fw=!0;let e=FO(),t=PO(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;bi.Buffer=i,bi.SlowBuffer=T,bi.INSPECT_MAX_BYTES=50;let n=2147483647;bi.kMaxLength=n,i.TYPED_ARRAY_SUPPORT=o(),!i.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 o(){try{let p=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(p,s),p.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(p){if(p>n)throw new RangeError('The value "'+p+'" is invalid for option "size"');let s=new Uint8Array(p);return Object.setPrototypeOf(s,i.prototype),s}function i(p,s,u){if(typeof p=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(p)}return f(p,s,u)}i.poolSize=8192;function f(p,s,u){if(typeof p=="string")return y(p,s);if(ArrayBuffer.isView(p))return _(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(et(p,ArrayBuffer)||p&&et(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(et(p,SharedArrayBuffer)||p&&et(p.buffer,SharedArrayBuffer)))return h(p,s,u);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return i.from(b,s,u);let L=w(p);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return i.from(p[Symbol.toPrimitive]("string"),s,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}i.from=function(p,s,u){return f(p,s,u)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function l(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function c(p,s,u){return l(p),p<=0?a(p):s!==void 0?typeof u=="string"?a(p).fill(s,u):a(p).fill(s):a(p)}i.alloc=function(p,s,u){return c(p,s,u)};function d(p){return l(p),a(p<0?0:S(p)|0)}i.allocUnsafe=function(p){return d(p)},i.allocUnsafeSlow=function(p){return d(p)};function y(p,s){if((typeof s!="string"||s==="")&&(s="utf8"),!i.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let u=C(p,s)|0,b=a(u),L=b.write(p,s);return L!==u&&(b=b.slice(0,L)),b}function v(p){let s=p.length<0?0:S(p.length)|0,u=a(s);for(let b=0;b<s;b+=1)u[b]=p[b]&255;return u}function _(p){if(et(p,Uint8Array)){let s=new Uint8Array(p);return h(s.buffer,s.byteOffset,s.byteLength)}return v(p)}function h(p,s,u){if(s<0||p.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<s+(u||0))throw new RangeError('"length" is outside of buffer bounds');let b;return s===void 0&&u===void 0?b=new Uint8Array(p):u===void 0?b=new Uint8Array(p,s):b=new Uint8Array(p,s,u),Object.setPrototypeOf(b,i.prototype),b}function w(p){if(i.isBuffer(p)){let s=S(p.length)|0,u=a(s);return u.length===0||p.copy(u,0,0,s),u}if(p.length!==void 0)return typeof p.length!="number"||bt(p.length)?a(0):v(p);if(p.type==="Buffer"&&Array.isArray(p.data))return v(p.data)}function S(p){if(p>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return p|0}function T(p){return+p!=p&&(p=0),i.alloc(+p)}i.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==i.prototype},i.compare=function(s,u){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),et(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(s)||!i.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===u)return 0;let b=s.length,L=u.length;for(let m=0,j=Math.min(b,L);m<j;++m)if(s[m]!==u[m]){b=s[m],L=u[m];break}return b<L?-1:L<b?1:0},i.isEncoding=function(s){switch(String(s).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}},i.concat=function(s,u){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return i.alloc(0);let b;if(u===void 0)for(u=0,b=0;b<s.length;++b)u+=s[b].length;let L=i.allocUnsafe(u),m=0;for(b=0;b<s.length;++b){let j=s[b];if(et(j,Uint8Array))m+j.length>L.length?(i.isBuffer(j)||(j=i.from(j)),j.copy(L,m)):Uint8Array.prototype.set.call(L,j,m);else if(i.isBuffer(j))j.copy(L,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=j.length}return L};function C(p,s){if(i.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||et(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let u=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;let L=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return De(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ot(p).length;default:if(L)return b?-1:De(p).length;s=(""+s).toLowerCase(),L=!0}}i.byteLength=C;function M(p,s,u){let b=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,s>>>=0,u<=s))return"";for(p||(p="utf8");;)switch(p){case"hex":return te(this,s,u);case"utf8":case"utf-8":return re(this,s,u);case"ascii":return Ne(this,s,u);case"latin1":case"binary":return ne(this,s,u);case"base64":return K(this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,s,u);default:if(b)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),b=!0}}i.prototype._isBuffer=!0;function D(p,s,u){let b=p[s];p[s]=p[u],p[u]=b}i.prototype.swap16=function(){let s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<s;u+=2)D(this,u,u+1);return this},i.prototype.swap32=function(){let s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<s;u+=4)D(this,u,u+3),D(this,u+1,u+2);return this},i.prototype.swap64=function(){let s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<s;u+=8)D(this,u,u+7),D(this,u+1,u+6),D(this,u+2,u+5),D(this,u+3,u+4);return this},i.prototype.toString=function(){let s=this.length;return s===0?"":arguments.length===0?re(this,0,s):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(s){if(!i.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:i.compare(this,s)===0},i.prototype.inspect=function(){let s="",u=bi.INSPECT_MAX_BYTES;return s=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(s+=" ... "),"<Buffer "+s+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(s,u,b,L,m){if(et(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(u===void 0&&(u=0),b===void 0&&(b=s?s.length:0),L===void 0&&(L=0),m===void 0&&(m=this.length),u<0||b>s.length||L<0||m>this.length)throw new RangeError("out of range index");if(L>=m&&u>=b)return 0;if(L>=m)return-1;if(u>=b)return 1;if(u>>>=0,b>>>=0,L>>>=0,m>>>=0,this===s)return 0;let j=m-L,le=b-u,Be=Math.min(j,le),ee=this.slice(L,m),ue=s.slice(u,b);for(let I=0;I<Be;++I)if(ee[I]!==ue[I]){j=ee[I],le=ue[I];break}return j<le?-1:le<j?1:0};function V(p,s,u,b,L){if(p.length===0)return-1;if(typeof u=="string"?(b=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,bt(u)&&(u=L?0:p.length-1),u<0&&(u=p.length+u),u>=p.length){if(L)return-1;u=p.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof s=="string"&&(s=i.from(s,b)),i.isBuffer(s))return s.length===0?-1:F(p,s,u,b,L);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(p,s,u):Uint8Array.prototype.lastIndexOf.call(p,s,u):F(p,[s],u,b,L);throw new TypeError("val must be string, number or Buffer")}function F(p,s,u,b,L){let m=1,j=p.length,le=s.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(p.length<2||s.length<2)return-1;m=2,j/=2,le/=2,u/=2}function Be(ue,I){return m===1?ue[I]:ue.readUInt16BE(I*m)}let ee;if(L){let ue=-1;for(ee=u;ee<j;ee++)if(Be(p,ee)===Be(s,ue===-1?0:ee-ue)){if(ue===-1&&(ue=ee),ee-ue+1===le)return ue*m}else ue!==-1&&(ee-=ee-ue),ue=-1}else for(u+le>j&&(u=j-le),ee=u;ee>=0;ee--){let ue=!0;for(let I=0;I<le;I++)if(Be(p,ee+I)!==Be(s,I)){ue=!1;break}if(ue)return ee}return-1}i.prototype.includes=function(s,u,b){return this.indexOf(s,u,b)!==-1},i.prototype.indexOf=function(s,u,b){return V(this,s,u,b,!0)},i.prototype.lastIndexOf=function(s,u,b){return V(this,s,u,b,!1)};function N(p,s,u,b){u=Number(u)||0;let L=p.length-u;b?(b=Number(b),b>L&&(b=L)):b=L;let m=s.length;b>m/2&&(b=m/2);let j;for(j=0;j<b;++j){let le=parseInt(s.substr(j*2,2),16);if(bt(le))return j;p[u+j]=le}return j}function x(p,s,u,b){return nt(De(s,p.length-u),p,u,b)}function G(p,s,u,b){return nt($e(s),p,u,b)}function Q(p,s,u,b){return nt(ot(s),p,u,b)}function Te(p,s,u,b){return nt(Me(s,p.length-u),p,u,b)}i.prototype.write=function(s,u,b,L){if(u===void 0)L="utf8",b=this.length,u=0;else if(b===void 0&&typeof u=="string")L=u,b=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(b)?(b=b>>>0,L===void 0&&(L="utf8")):(L=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let m=this.length-u;if((b===void 0||b>m)&&(b=m),s.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let j=!1;for(;;)switch(L){case"hex":return N(this,s,u,b);case"utf8":case"utf-8":return x(this,s,u,b);case"ascii":case"latin1":case"binary":return G(this,s,u,b);case"base64":return Q(this,s,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,u,b);default:if(j)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),j=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(p,s,u){return s===0&&u===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(s,u))}function re(p,s,u){u=Math.min(p.length,u);let b=[],L=s;for(;L<u;){let m=p[L],j=null,le=m>239?4:m>223?3:m>191?2:1;if(L+le<=u){let Be,ee,ue,I;switch(le){case 1:m<128&&(j=m);break;case 2:Be=p[L+1],(Be&192)===128&&(I=(m&31)<<6|Be&63,I>127&&(j=I));break;case 3:Be=p[L+1],ee=p[L+2],(Be&192)===128&&(ee&192)===128&&(I=(m&15)<<12|(Be&63)<<6|ee&63,I>2047&&(I<55296||I>57343)&&(j=I));break;case 4:Be=p[L+1],ee=p[L+2],ue=p[L+3],(Be&192)===128&&(ee&192)===128&&(ue&192)===128&&(I=(m&15)<<18|(Be&63)<<12|(ee&63)<<6|ue&63,I>65535&&I<1114112&&(j=I))}}j===null?(j=65533,le=1):j>65535&&(j-=65536,b.push(j>>>10&1023|55296),j=56320|j&1023),b.push(j),L+=le}return Ce(b)}let ae=4096;function Ce(p){let s=p.length;if(s<=ae)return String.fromCharCode.apply(String,p);let u="",b=0;for(;b<s;)u+=String.fromCharCode.apply(String,p.slice(b,b+=ae));return u}function Ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]&127);return b}function ne(p,s,u){let b="";u=Math.min(p.length,u);for(let L=s;L<u;++L)b+=String.fromCharCode(p[L]);return b}function te(p,s,u){let b=p.length;(!s||s<0)&&(s=0),(!u||u<0||u>b)&&(u=b);let L="";for(let m=s;m<u;++m)L+=Qt[p[m]];return L}function ye(p,s,u){let b=p.slice(s,u),L="";for(let m=0;m<b.length-1;m+=2)L+=String.fromCharCode(b[m]+b[m+1]*256);return L}i.prototype.slice=function(s,u){let b=this.length;s=~~s,u=u===void 0?b:~~u,s<0?(s+=b,s<0&&(s=0)):s>b&&(s=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),u<s&&(u=s);let L=this.subarray(s,u);return Object.setPrototypeOf(L,i.prototype),L};function me(p,s,u){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+s>u)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return L},i.prototype.readUintBE=i.prototype.readUIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s+--u],m=1;for(;u>0&&(m*=256);)L+=this[s+--u]*m;return L},i.prototype.readUint8=i.prototype.readUInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]|this[s+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(s,u){return s=s>>>0,u||me(s,2,this.length),this[s]<<8|this[s+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},i.prototype.readBigUInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,m=this[++s]+this[++s]*2**8+this[++s]*2**16+b*2**24;return BigInt(L)+(BigInt(m)<<BigInt(32))}),i.prototype.readBigUInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=u*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],m=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b;return(BigInt(L)<<BigInt(32))+BigInt(m)}),i.prototype.readIntLE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=this[s],m=1,j=0;for(;++j<u&&(m*=256);)L+=this[s+j]*m;return m*=128,L>=m&&(L-=Math.pow(2,8*u)),L},i.prototype.readIntBE=function(s,u,b){s=s>>>0,u=u>>>0,b||me(s,u,this.length);let L=u,m=1,j=this[s+--L];for(;L>0&&(m*=256);)j+=this[s+--L]*m;return m*=128,j>=m&&(j-=Math.pow(2,8*u)),j},i.prototype.readInt8=function(s,u){return s=s>>>0,u||me(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},i.prototype.readInt16LE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s]|this[s+1]<<8;return b&32768?b|4294901760:b},i.prototype.readInt16BE=function(s,u){s=s>>>0,u||me(s,2,this.length);let b=this[s+1]|this[s]<<8;return b&32768?b|4294901760:b},i.prototype.readInt32LE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},i.prototype.readInt32BE=function(s,u){return s=s>>>0,u||me(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},i.prototype.readBigInt64LE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(b<<24);return(BigInt(L)<<BigInt(32))+BigInt(u+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24)}),i.prototype.readBigInt64BE=gt(function(s){s=s>>>0,k(s,"offset");let u=this[s],b=this[s+7];(u===void 0||b===void 0)&&Z(s,this.length-8);let L=(u<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return(BigInt(L)<<BigInt(32))+BigInt(this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+b)}),i.prototype.readFloatLE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!0,23,4)},i.prototype.readFloatBE=function(s,u){return s=s>>>0,u||me(s,4,this.length),t.read(this,s,!1,23,4)},i.prototype.readDoubleLE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!0,52,8)},i.prototype.readDoubleBE=function(s,u){return s=s>>>0,u||me(s,8,this.length),t.read(this,s,!1,52,8)};function Re(p,s,u,b,L,m){if(!i.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>L||s<m)throw new RangeError('"value" argument is out of bounds');if(u+b>p.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=1,j=0;for(this[u]=s&255;++j<b&&(m*=256);)this[u+j]=s/m&255;return u+b},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,b=b>>>0,!L){let le=Math.pow(2,8*b)-1;Re(this,s,u,b,le,0)}let m=b-1,j=1;for(this[u+m]=s&255;--m>=0&&(j*=256);)this[u+m]=s/j&255;return u+b},i.prototype.writeUint8=i.prototype.writeUInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,255,0),this[u]=s&255,u+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,65535,0),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u+3]=s>>>24,this[u+2]=s>>>16,this[u+1]=s>>>8,this[u]=s&255,u+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,4294967295,0),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4};function ze(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m,m=m>>8,p[u++]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,j=j>>8,p[u++]=j,u}function je(p,s,u,b,L){ge(s,b,L,p,u,7);let m=Number(s&BigInt(4294967295));p[u+7]=m,m=m>>8,p[u+6]=m,m=m>>8,p[u+5]=m,m=m>>8,p[u+4]=m;let j=Number(s>>BigInt(32)&BigInt(4294967295));return p[u+3]=j,j=j>>8,p[u+2]=j,j=j>>8,p[u+1]=j,j=j>>8,p[u]=j,u+8}i.prototype.writeBigUInt64LE=gt(function(s,u=0){return ze(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=gt(function(s,u=0){return je(this,s,u,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=0,j=1,le=0;for(this[u]=s&255;++m<b&&(j*=256);)s<0&&le===0&&this[u+m-1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeIntBE=function(s,u,b,L){if(s=+s,u=u>>>0,!L){let Be=Math.pow(2,8*b-1);Re(this,s,u,b,Be-1,-Be)}let m=b-1,j=1,le=0;for(this[u+m]=s&255;--m>=0&&(j*=256);)s<0&&le===0&&this[u+m+1]!==0&&(le=1),this[u+m]=(s/j>>0)-le&255;return u+b},i.prototype.writeInt8=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,1,127,-128),s<0&&(s=255+s+1),this[u]=s&255,u+1},i.prototype.writeInt16LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s&255,this[u+1]=s>>>8,u+2},i.prototype.writeInt16BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,2,32767,-32768),this[u]=s>>>8,this[u+1]=s&255,u+2},i.prototype.writeInt32LE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),this[u]=s&255,this[u+1]=s>>>8,this[u+2]=s>>>16,this[u+3]=s>>>24,u+4},i.prototype.writeInt32BE=function(s,u,b){return s=+s,u=u>>>0,b||Re(this,s,u,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[u]=s>>>24,this[u+1]=s>>>16,this[u+2]=s>>>8,this[u+3]=s&255,u+4},i.prototype.writeBigInt64LE=gt(function(s,u=0){return ze(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=gt(function(s,u=0){return je(this,s,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(p,s,u,b,L,m){if(u+b>p.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ve(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,4),t.write(p,s,u,b,23,4),u+4}i.prototype.writeFloatLE=function(s,u,b){return Ve(this,s,u,!0,b)},i.prototype.writeFloatBE=function(s,u,b){return Ve(this,s,u,!1,b)};function xe(p,s,u,b,L){return s=+s,u=u>>>0,L||Je(p,s,u,8),t.write(p,s,u,b,52,8),u+8}i.prototype.writeDoubleLE=function(s,u,b){return xe(this,s,u,!0,b)},i.prototype.writeDoubleBE=function(s,u,b){return xe(this,s,u,!1,b)},i.prototype.copy=function(s,u,b,L){if(!i.isBuffer(s))throw new TypeError("argument should be a Buffer");if(b||(b=0),!L&&L!==0&&(L=this.length),u>=s.length&&(u=s.length),u||(u=0),L>0&&L<b&&(L=b),L===b||s.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),s.length-u<L-b&&(L=s.length-u+b);let m=L-b;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,L):Uint8Array.prototype.set.call(s,this.subarray(b,L),u),m},i.prototype.fill=function(s,u,b,L){if(typeof s=="string"){if(typeof u=="string"?(L=u,u=0,b=this.length):typeof b=="string"&&(L=b,b=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!i.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(s.length===1){let j=s.charCodeAt(0);(L==="utf8"&&j<128||L==="latin1")&&(s=j)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(u<0||this.length<u||this.length<b)throw new RangeError("Out of range index");if(b<=u)return this;u=u>>>0,b=b===void 0?this.length:b>>>0,s||(s=0);let m;if(typeof s=="number")for(m=u;m<b;++m)this[m]=s;else{let j=i.isBuffer(s)?s:i.from(s,L),le=j.length;if(le===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(m=0;m<b-u;++m)this[m+u]=j[m%le]}return this};let A={};function O(p,s,u){A[p]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(p,s){return`The "${p}" argument must be of type number. Received type ${typeof s}`},TypeError),O("ERR_OUT_OF_RANGE",function(p,s,u){let b=`The value of "${p}" is out of range.`,L=u;return Number.isInteger(u)&&Math.abs(u)>2**32?L=Y(String(u)):typeof u=="bigint"&&(L=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(L=Y(L)),L+="n"),b+=` It must be ${s}. Received ${L}`,b},RangeError);function Y(p){let s="",u=p.length,b=p[0]==="-"?1:0;for(;u>=b+4;u-=3)s=`_${p.slice(u-3,u)}${s}`;return`${p.slice(0,u)}${s}`}function fe(p,s,u){k(s,"offset"),(p[s]===void 0||p[s+u]===void 0)&&Z(s,p.length-(u+1))}function ge(p,s,u,b,L,m){if(p>u||p<s){let j=typeof s=="bigint"?"n":"",le;throw m>3?s===0||s===BigInt(0)?le=`>= 0${j} and < 2${j} ** ${(m+1)*8}${j}`:le=`>= -(2${j} ** ${(m+1)*8-1}${j}) and < 2 ** ${(m+1)*8-1}${j}`:le=`>= ${s}${j} and <= ${u}${j}`,new A.ERR_OUT_OF_RANGE("value",le,p)}fe(b,L,m)}function k(p,s){if(typeof p!="number")throw new A.ERR_INVALID_ARG_TYPE(s,"number",p)}function Z(p,s,u){throw Math.floor(p)!==p?(k(p,u),new A.ERR_OUT_OF_RANGE(u||"offset","an integer",p)):s<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${s}`,p)}let Se=/[^+/0-9A-Za-z-_]/g;function ke(p){if(p=p.split("=")[0],p=p.trim().replace(Se,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function De(p,s){s=s||1/0;let u,b=p.length,L=null,m=[];for(let j=0;j<b;++j){if(u=p.charCodeAt(j),u>55295&&u<57344){if(!L){if(u>56319){(s-=3)>-1&&m.push(239,191,189);continue}else if(j+1===b){(s-=3)>-1&&m.push(239,191,189);continue}L=u;continue}if(u<56320){(s-=3)>-1&&m.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(s-=3)>-1&&m.push(239,191,189);if(L=null,u<128){if((s-=1)<0)break;m.push(u)}else if(u<2048){if((s-=2)<0)break;m.push(u>>6|192,u&63|128)}else if(u<65536){if((s-=3)<0)break;m.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((s-=4)<0)break;m.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return m}function $e(p){let s=[];for(let u=0;u<p.length;++u)s.push(p.charCodeAt(u)&255);return s}function Me(p,s){let u,b,L,m=[];for(let j=0;j<p.length&&!((s-=2)<0);++j)u=p.charCodeAt(j),b=u>>8,L=u%256,m.push(L),m.push(b);return m}function ot(p){return e.toByteArray(ke(p))}function nt(p,s,u,b){let L;for(L=0;L<b&&!(L+u>=s.length||L>=p.length);++L)s[L+u]=p[L];return L}function et(p,s){return p instanceof s||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===s.name}function bt(p){return p!==p}let Qt=function(){let p="0123456789abcdef",s=new Array(256);for(let u=0;u<16;++u){let b=u*16;for(let L=0;L<16;++L)s[b+L]=p[u]+p[L]}return s}();function gt(p){return typeof BigInt>"u"?Ct:p}function Ct(){throw new Error("BigInt not supported")}return bi}var Br=UO();Br.Buffer;Br.INSPECT_MAX_BYTES;Br.kMaxLength;var lu={},Pw=!1;function Ei(){return Pw||(Pw=!0,typeof Object.create=="function"?lu=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lu=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),lu}var dc={},Uw=!1;function Jw(){return Uw||(Uw=!0,dc=Ft.EventEmitter),dc}var yc={},Dw=!1;function DO(){if(Dw)return yc;Dw=!0;function e(v,_){var h=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);_&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(v,S).enumerable})),h.push.apply(h,w)}return h}function t(v){for(var _=1;_<arguments.length;_++){var h=arguments[_]!=null?arguments[_]:{};_%2?e(Object(h),!0).forEach(function(w){r(v,w,h[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(h,w))})}return v}function r(v,_,h){return _ in v?Object.defineProperty(v,_,{value:h,enumerable:!0,configurable:!0,writable:!0}):v[_]=h,v}function n(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function o(v,_){for(var h=0;h<_.length;h++){var w=_[h];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}function a(v,_,h){return _&&o(v.prototype,_),h&&o(v,h),v}var i=Br,f=i.Buffer,l=Oe,c=l.inspect,d=c&&c.custom||"inspect";function y(v,_,h){f.prototype.copy.call(v,_,h)}return yc=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(h){var w={data:h,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(h){var w={data:h,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var w=this.head,S=""+w.data;w=w.next;)S+=h+w.data;return S}},{key:"concat",value:function(h){if(this.length===0)return f.alloc(0);for(var w=f.allocUnsafe(h>>>0),S=this.head,T=0;S;)y(S.data,w,T),T+=S.data.length,S=S.next;return w}},{key:"consume",value:function(h,w){var S;return h<this.head.data.length?(S=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?S=this.shift():S=w?this._getString(h):this._getBuffer(h),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var w=this.head,S=1,T=w.data;for(h-=T.length;w=w.next;){var C=w.data,M=h>C.length?C.length:h;if(M===C.length?T+=C:T+=C.slice(0,h),h-=M,h===0){M===C.length?(++S,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=C.slice(M));break}++S}return this.length-=S,T}},{key:"_getBuffer",value:function(h){var w=f.allocUnsafe(h),S=this.head,T=1;for(S.data.copy(w),h-=S.data.length;S=S.next;){var C=S.data,M=h>C.length?C.length:h;if(C.copy(w,w.length-h,0,M),h-=M,h===0){M===C.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=C.slice(M));break}++T}return this.length-=T,w}},{key:d,value:function(h,w){return c(this,t({},w,{depth:0,customInspect:!1}))}}]),v}(),yc}var gc={},Mw=!1;function Qw(){if(Mw)return gc;Mw=!0;var e=lt;function t(f,l){var c=this,d=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return d||y?(l?l(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,f)):e.nextTick(a,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(v){!l&&v?c._writableState?c._writableState.errorEmitted?e.nextTick(n,c):(c._writableState.errorEmitted=!0,e.nextTick(r,c,v)):e.nextTick(r,c,v):l?(e.nextTick(n,c),l(v)):e.nextTick(n,c)}),this)}function r(f,l){a(f,l),n(f)}function n(f){f._writableState&&!f._writableState.emitClose||f._readableState&&!f._readableState.emitClose||f.emit("close")}function o(){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)}function a(f,l){f.emit("error",l)}function i(f,l){var c=f._readableState,d=f._writableState;c&&c.autoDestroy||d&&d.autoDestroy?f.destroy(l):f.emit("error",l)}return gc={destroy:t,undestroy:o,errorOrDestroy:i},gc}var mc={},jw=!1;function go(){if(jw)return mc;jw=!0;let e={};function t(i,f,l){l||(l=Error);function c(y,v,_){return typeof f=="string"?f:f(y,v,_)}class d extends l{constructor(v,_,h){super(c(v,_,h))}}d.prototype.name=l.name,d.prototype.code=i,e[i]=d}function r(i,f){if(Array.isArray(i)){let l=i.length;return i=i.map(c=>String(c)),l>2?`one of ${f} ${i.slice(0,l-1).join(", ")}, or `+i[l-1]:l===2?`one of ${f} ${i[0]} or ${i[1]}`:`of ${f} ${i[0]}`}else return`of ${f} ${String(i)}`}function n(i,f,l){return i.substr(!l||l<0?0:+l,f.length)===f}function o(i,f,l){return(l===void 0||l>i.length)&&(l=i.length),i.substring(l-f.length,l)===f}function a(i,f,l){return typeof l!="number"&&(l=0),l+f.length>i.length?!1:i.indexOf(f,l)!==-1}return t("ERR_INVALID_OPT_VALUE",function(i,f){return'The value "'+f+'" is invalid for option "'+i+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(i,f,l){let c;typeof f=="string"&&n(f,"not ")?(c="must not be",f=f.replace(/^not /,"")):c="must be";let d;if(o(i," argument"))d=`The ${i} ${c} ${r(f,"type")}`;else{let y=a(i,".")?"property":"argument";d=`The "${i}" ${y} ${c} ${r(f,"type")}`}return d+=`. Received type ${typeof l}`,d},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),mc.codes=e,mc}var vc={},$w=!1;function e1(){if($w)return vc;$w=!0;var e=go().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var f=t(o,i,a);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){var l=i?a:"highWaterMark";throw new e(l,f)}return Math.floor(f)}return n.objectMode?16:16*1024}return vc={getHighWaterMark:r},vc}var wc={},zw=!1,bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function MO(){if(zw)return wc;zw=!0,wc=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this||bc,arguments)}return a}function t(r){try{if(!bc.localStorage)return!1}catch{return!1}var n=bc.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return wc}var _c={},qw=!1,jO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Bc(){if(qw)return _c;qw=!0;var e=lt;_c=G;function t(A){var O=this;this.next=null,this.entry=null,this.finish=function(){xe(O,A)}}var r;G.WritableState=N;var n={deprecate:MO()},o=Jw(),a=Br.Buffer,i=jO.Uint8Array||function(){};function f(A){return a.from(A)}function l(A){return a.isBuffer(A)||A instanceof i}var c=Qw(),d=e1(),y=d.getHighWaterMark,v=go().codes,_=v.ERR_INVALID_ARG_TYPE,h=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_MULTIPLE_CALLBACK,S=v.ERR_STREAM_CANNOT_PIPE,T=v.ERR_STREAM_DESTROYED,C=v.ERR_STREAM_NULL_VALUES,M=v.ERR_STREAM_WRITE_AFTER_END,D=v.ERR_UNKNOWN_ENCODING,V=c.errorOrDestroy;Ei()(G,o);function F(){}function N(A,O,Y){r=r||_i(),A=A||{},typeof Y!="boolean"&&(Y=O instanceof r),this.objectMode=!!A.objectMode,Y&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=y(this,A,"writableHighWaterMark",Y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=A.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){ne(O,ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}N.prototype.getBuffer=function(){for(var O=this.bufferedRequest,Y=[];O;)Y.push(O),O=O.next;return Y},function(){try{Object.defineProperty(N.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var x;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(x=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(O){return x.call(this,O)?!0:this!==G?!1:O&&O._writableState instanceof N}})):x=function(O){return O instanceof this};function G(A){r=r||_i();var O=this instanceof r;if(!O&&!x.call(G,this))return new G(A);this._writableState=new N(A,this,O),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),o.call(this)}G.prototype.pipe=function(){V(this,new S)};function Q(A,O){var Y=new M;V(A,Y),e.nextTick(O,Y)}function Te(A,O,Y,fe){var ge;return Y===null?ge=new C:typeof Y!="string"&&!O.objectMode&&(ge=new _("chunk",["string","Buffer"],Y)),ge?(V(A,ge),e.nextTick(fe,ge),!1):!0}G.prototype.write=function(A,O,Y){var fe=this._writableState,ge=!1,k=!fe.objectMode&&l(A);return k&&!a.isBuffer(A)&&(A=f(A)),typeof O=="function"&&(Y=O,O=null),k?O="buffer":O||(O=fe.defaultEncoding),typeof Y!="function"&&(Y=F),fe.ending?Q(this,Y):(k||Te(this,fe,A,Y))&&(fe.pendingcb++,ge=re(this,fe,k,A,O,Y)),ge},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&me(this,A))},G.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new D(O);return this._writableState.defaultEncoding=O,this},Object.defineProperty(G.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(A,O,Y){return!A.objectMode&&A.decodeStrings!==!1&&typeof O=="string"&&(O=a.from(O,Y)),O}Object.defineProperty(G.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re(A,O,Y,fe,ge,k){if(!Y){var Z=K(O,fe,ge);fe!==Z&&(Y=!0,ge="buffer",fe=Z)}var Se=O.objectMode?1:fe.length;O.length+=Se;var ke=O.length<O.highWaterMark;if(ke||(O.needDrain=!0),O.writing||O.corked){var De=O.lastBufferedRequest;O.lastBufferedRequest={chunk:fe,encoding:ge,isBuf:Y,callback:k,next:null},De?De.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else ae(A,O,!1,Se,fe,ge,k);return ke}function ae(A,O,Y,fe,ge,k,Z){O.writelen=fe,O.writecb=Z,O.writing=!0,O.sync=!0,O.destroyed?O.onwrite(new T("write")):Y?A._writev(ge,O.onwrite):A._write(ge,k,O.onwrite),O.sync=!1}function Ce(A,O,Y,fe,ge){--O.pendingcb,Y?(e.nextTick(ge,fe),e.nextTick(Je,A,O),A._writableState.errorEmitted=!0,V(A,fe)):(ge(fe),A._writableState.errorEmitted=!0,V(A,fe),Je(A,O))}function Ne(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function ne(A,O){var Y=A._writableState,fe=Y.sync,ge=Y.writecb;if(typeof ge!="function")throw new w;if(Ne(Y),O)Ce(A,Y,fe,O,ge);else{var k=Re(Y)||A.destroyed;!k&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&me(A,Y),fe?e.nextTick(te,A,Y,k,ge):te(A,Y,k,ge)}}function te(A,O,Y,fe){Y||ye(A,O),O.pendingcb--,fe(),Je(A,O)}function ye(A,O){O.length===0&&O.needDrain&&(O.needDrain=!1,A.emit("drain"))}function me(A,O){O.bufferProcessing=!0;var Y=O.bufferedRequest;if(A._writev&&Y&&Y.next){var fe=O.bufferedRequestCount,ge=new Array(fe),k=O.corkedRequestsFree;k.entry=Y;for(var Z=0,Se=!0;Y;)ge[Z]=Y,Y.isBuf||(Se=!1),Y=Y.next,Z+=1;ge.allBuffers=Se,ae(A,O,!0,O.length,ge,"",k.finish),O.pendingcb++,O.lastBufferedRequest=null,k.next?(O.corkedRequestsFree=k.next,k.next=null):O.corkedRequestsFree=new t(O),O.bufferedRequestCount=0}else{for(;Y;){var ke=Y.chunk,De=Y.encoding,$e=Y.callback,Me=O.objectMode?1:ke.length;if(ae(A,O,!1,Me,ke,De,$e),Y=Y.next,O.bufferedRequestCount--,O.writing)break}Y===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=Y,O.bufferProcessing=!1}G.prototype._write=function(A,O,Y){Y(new h("_write()"))},G.prototype._writev=null,G.prototype.end=function(A,O,Y){var fe=this._writableState;return typeof A=="function"?(Y=A,A=null,O=null):typeof O=="function"&&(Y=O,O=null),A!=null&&this.write(A,O),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Ve(this,fe,Y),this},Object.defineProperty(G.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Re(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function ze(A,O){A._final(function(Y){O.pendingcb--,Y&&V(A,Y),O.prefinished=!0,A.emit("prefinish"),Je(A,O)})}function je(A,O){!O.prefinished&&!O.finalCalled&&(typeof A._final=="function"&&!O.destroyed?(O.pendingcb++,O.finalCalled=!0,e.nextTick(ze,A,O)):(O.prefinished=!0,A.emit("prefinish")))}function Je(A,O){var Y=Re(O);if(Y&&(je(A,O),O.pendingcb===0&&(O.finished=!0,A.emit("finish"),O.autoDestroy))){var fe=A._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&A.destroy()}return Y}function Ve(A,O,Y){O.ending=!0,Je(A,O),Y&&(O.finished?e.nextTick(Y):A.once("finish",Y)),O.ended=!0,A.writable=!1}function xe(A,O,Y){var fe=A.entry;for(A.entry=null;fe;){var ge=fe.callback;O.pendingcb--,ge(Y),fe=fe.next}O.corkedRequestsFree.next=A}return Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(O){this._writableState&&(this._writableState.destroyed=O)}}),G.prototype.destroy=c.destroy,G.prototype._undestroy=c.undestroy,G.prototype._destroy=function(A,O){O(A)},_c}var Ec={},Ww=!1;function _i(){if(Ww)return Ec;Ww=!0;var e=lt,t=Object.keys||function(d){var y=[];for(var v in d)y.push(v);return y};Ec=f;var r=Cc(),n=Bc();Ei()(f,r);for(var o=t(n.prototype),a=0;a<o.length;a++){var i=o[a];f.prototype[i]||(f.prototype[i]=n.prototype[i])}function f(d){if(!(this instanceof f))return new f(d);r.call(this,d),n.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||e.nextTick(c,this)}function c(d){d.end()}return Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),Ec}var Sc={},Hw=!1;function cu(){if(Hw)return Sc;Hw=!0;var e=go().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var f=arguments.length,l=new Array(f),c=0;c<f;c++)l[c]=arguments[c];a.apply(this,l)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,f){if(typeof i=="function")return o(a,null,i);i||(i={}),f=t(f||r);var l=i.readable||i.readable!==!1&&a.readable,c=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||v()},y=a._writableState&&a._writableState.finished,v=function(){c=!1,y=!0,l||f.call(a)},_=a._readableState&&a._readableState.endEmitted,h=function(){l=!1,_=!0,c||f.call(a)},w=function(M){f.call(a,M)},S=function(){var M;if(l&&!_)return(!a._readableState||!a._readableState.ended)&&(M=new e),f.call(a,M);if(c&&!y)return(!a._writableState||!a._writableState.ended)&&(M=new e),f.call(a,M)},T=function(){a.req.on("finish",v)};return n(a)?(a.on("complete",v),a.on("abort",S),a.req?T():a.on("request",T)):c&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",h),a.on("finish",v),i.error!==!1&&a.on("error",w),a.on("close",S),function(){a.removeListener("complete",v),a.removeListener("abort",S),a.removeListener("request",T),a.req&&a.req.removeListener("finish",v),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",v),a.removeListener("end",h),a.removeListener("error",w),a.removeListener("close",S)}}return Sc=o,Sc}var Ac={},Zw=!1;function $O(){if(Zw)return Ac;Zw=!0;var e=lt,t;function r(C,M,D){return M in C?Object.defineProperty(C,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):C[M]=D,C}var n=cu(),o=Symbol("lastResolve"),a=Symbol("lastReject"),i=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function y(C,M){return{value:C,done:M}}function v(C){var M=C[o];if(M!==null){var D=C[d].read();D!==null&&(C[l]=null,C[o]=null,C[a]=null,M(y(D,!1)))}}function _(C){e.nextTick(v,C)}function h(C,M){return function(D,V){C.then(function(){if(M[f]){D(y(void 0,!0));return}M[c](D,V)},V)}}var w=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((t={get stream(){return this[d]},next:function(){var M=this,D=this[i];if(D!==null)return Promise.reject(D);if(this[f])return Promise.resolve(y(void 0,!0));if(this[d].destroyed)return new Promise(function(x,G){e.nextTick(function(){M[i]?G(M[i]):x(y(void 0,!0))})});var V=this[l],F;if(V)F=new Promise(h(V,this));else{var N=this[d].read();if(N!==null)return Promise.resolve(y(N,!1));F=new Promise(this[c])}return this[l]=F,F}},r(t,Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var M=this;return new Promise(function(D,V){M[d].destroy(null,function(F){if(F){V(F);return}D(y(void 0,!0))})})}),t),w),T=function(M){var D,V=Object.create(S,(D={},r(D,d,{value:M,writable:!0}),r(D,o,{value:null,writable:!0}),r(D,a,{value:null,writable:!0}),r(D,i,{value:null,writable:!0}),r(D,f,{value:M._readableState.endEmitted,writable:!0}),r(D,c,{value:function(N,x){var G=V[d].read();G?(V[l]=null,V[o]=null,V[a]=null,N(y(G,!1))):(V[o]=N,V[a]=x)},writable:!0}),D));return V[l]=null,n(M,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=V[a];N!==null&&(V[l]=null,V[o]=null,V[a]=null,N(F)),V[i]=F;return}var x=V[o];x!==null&&(V[l]=null,V[o]=null,V[a]=null,x(y(void 0,!0))),V[f]=!0}),M.on("readable",_.bind(null,V)),V};return Ac=T,Ac}var Rc={},Vw=!1;function zO(){return Vw||(Vw=!0,Rc=function(){throw new Error("Readable.from is not available in the browser")}),Rc}var Tc={},Gw=!1,qO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Cc(){if(Gw)return Tc;Gw=!0;var e=lt;Tc=Q;var t;Q.ReadableState=G,Ft.EventEmitter;var r=function(Z,Se){return Z.listeners(Se).length},n=Jw(),o=Br.Buffer,a=qO.Uint8Array||function(){};function i(k){return o.from(k)}function f(k){return o.isBuffer(k)||k instanceof a}var l=Oe,c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var d=DO(),y=Qw(),v=e1(),_=v.getHighWaterMark,h=go().codes,w=h.ERR_INVALID_ARG_TYPE,S=h.ERR_STREAM_PUSH_AFTER_EOF,T=h.ERR_METHOD_NOT_IMPLEMENTED,C=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,M,D,V;Ei()(Q,n);var F=y.errorOrDestroy,N=["error","close","destroy","pause","resume"];function x(k,Z,Se){if(typeof k.prependListener=="function")return k.prependListener(Z,Se);!k._events||!k._events[Z]?k.on(Z,Se):Array.isArray(k._events[Z])?k._events[Z].unshift(Se):k._events[Z]=[Se,k._events[Z]]}function G(k,Z,Se){t=t||_i(),k=k||{},typeof Se!="boolean"&&(Se=Z instanceof t),this.objectMode=!!k.objectMode,Se&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=_(this,k,"readableHighWaterMark",Se),this.buffer=new d,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.paused=!0,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(M||(M=yo.StringDecoder),this.decoder=new M(k.encoding),this.encoding=k.encoding)}function Q(k){if(t=t||_i(),!(this instanceof Q))return new Q(k);var Z=this instanceof t;this._readableState=new G(k,this,Z),this.readable=!0,k&&(typeof k.read=="function"&&(this._read=k.read),typeof k.destroy=="function"&&(this._destroy=k.destroy)),n.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Z){this._readableState&&(this._readableState.destroyed=Z)}}),Q.prototype.destroy=y.destroy,Q.prototype._undestroy=y.undestroy,Q.prototype._destroy=function(k,Z){Z(k)},Q.prototype.push=function(k,Z){var Se=this._readableState,ke;return Se.objectMode?ke=!0:typeof k=="string"&&(Z=Z||Se.defaultEncoding,Z!==Se.encoding&&(k=o.from(k,Z),Z=""),ke=!0),Te(this,k,Z,!1,ke)},Q.prototype.unshift=function(k){return Te(this,k,null,!0,!1)};function Te(k,Z,Se,ke,De){c("readableAddChunk",Z);var $e=k._readableState;if(Z===null)$e.reading=!1,ne(k,$e);else{var Me;if(De||(Me=re($e,Z)),Me)F(k,Me);else if($e.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!$e.objectMode&&Object.getPrototypeOf(Z)!==o.prototype&&(Z=i(Z)),ke)$e.endEmitted?F(k,new C):K(k,$e,Z,!0);else if($e.ended)F(k,new S);else{if($e.destroyed)return!1;$e.reading=!1,$e.decoder&&!Se?(Z=$e.decoder.write(Z),$e.objectMode||Z.length!==0?K(k,$e,Z,!1):me(k,$e)):K(k,$e,Z,!1)}else ke||($e.reading=!1,me(k,$e))}return!$e.ended&&($e.length<$e.highWaterMark||$e.length===0)}function K(k,Z,Se,ke){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,k.emit("data",Se)):(Z.length+=Z.objectMode?1:Se.length,ke?Z.buffer.unshift(Se):Z.buffer.push(Se),Z.needReadable&&te(k)),me(k,Z)}function re(k,Z){var Se;return!f(Z)&&typeof Z!="string"&&Z!==void 0&&!k.objectMode&&(Se=new w("chunk",["string","Buffer","Uint8Array"],Z)),Se}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(k){M||(M=yo.StringDecoder);var Z=new M(k);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,ke="";Se!==null;)ke+=Z.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),ke!==""&&this._readableState.buffer.push(ke),this._readableState.length=ke.length,this};var ae=1073741824;function Ce(k){return k>=ae?k=ae:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Ne(k,Z){return k<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:k!==k?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(k>Z.highWaterMark&&(Z.highWaterMark=Ce(k)),k<=Z.length?k:Z.ended?Z.length:(Z.needReadable=!0,0))}Q.prototype.read=function(k){c("read",k),k=parseInt(k,10);var Z=this._readableState,Se=k;if(k!==0&&(Z.emittedReadable=!1),k===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return c("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?Y(this):te(this),null;if(k=Ne(k,Z),k===0&&Z.ended)return Z.length===0&&Y(this),null;var ke=Z.needReadable;c("need readable",ke),(Z.length===0||Z.length-k<Z.highWaterMark)&&(ke=!0,c("length less than watermark",ke)),Z.ended||Z.reading?(ke=!1,c("reading or ended",ke)):ke&&(c("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(k=Ne(Se,Z)));var De;return k>0?De=O(k,Z):De=null,De===null?(Z.needReadable=Z.length<=Z.highWaterMark,k=0):(Z.length-=k,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),Se!==k&&Z.ended&&Y(this)),De!==null&&this.emit("data",De),De};function ne(k,Z){if(c("onEofChunk"),!Z.ended){if(Z.decoder){var Se=Z.decoder.end();Se&&Se.length&&(Z.buffer.push(Se),Z.length+=Z.objectMode?1:Se.length)}Z.ended=!0,Z.sync?te(k):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,ye(k)))}}function te(k){var Z=k._readableState;c("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(c("emitReadable",Z.flowing),Z.emittedReadable=!0,e.nextTick(ye,k))}function ye(k){var Z=k._readableState;c("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(k.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,A(k)}function me(k,Z){Z.readingMore||(Z.readingMore=!0,e.nextTick(Re,k,Z))}function Re(k,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var Se=Z.length;if(c("maybeReadMore read 0"),k.read(0),Se===Z.length)break}Z.readingMore=!1}Q.prototype._read=function(k){F(this,new T("_read()"))},Q.prototype.pipe=function(k,Z){var Se=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=k;break;case 1:ke.pipes=[ke.pipes,k];break;default:ke.pipes.push(k);break}ke.pipesCount+=1,c("pipe count=%d opts=%j",ke.pipesCount,Z);var De=(!Z||Z.end!==!1)&&k!==e.stdout&&k!==e.stderr,$e=De?ot:s;ke.endEmitted?e.nextTick($e):Se.once("end",$e),k.on("unpipe",Me);function Me(u,b){c("onunpipe"),u===Se&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,bt())}function ot(){c("onend"),k.end()}var nt=ze(Se);k.on("drain",nt);var et=!1;function bt(){c("cleanup"),k.removeListener("close",Ct),k.removeListener("finish",p),k.removeListener("drain",nt),k.removeListener("error",gt),k.removeListener("unpipe",Me),Se.removeListener("end",ot),Se.removeListener("end",s),Se.removeListener("data",Qt),et=!0,ke.awaitDrain&&(!k._writableState||k._writableState.needDrain)&&nt()}Se.on("data",Qt);function Qt(u){c("ondata");var b=k.write(u);c("dest.write",b),b===!1&&((ke.pipesCount===1&&ke.pipes===k||ke.pipesCount>1&&ge(ke.pipes,k)!==-1)&&!et&&(c("false write response, pause",ke.awaitDrain),ke.awaitDrain++),Se.pause())}function gt(u){c("onerror",u),s(),k.removeListener("error",gt),r(k,"error")===0&&F(k,u)}x(k,"error",gt);function Ct(){k.removeListener("finish",p),s()}k.once("close",Ct);function p(){c("onfinish"),k.removeListener("close",Ct),s()}k.once("finish",p);function s(){c("unpipe"),Se.unpipe(k)}return k.emit("pipe",Se),ke.flowing||(c("pipe resume"),Se.resume()),k};function ze(k){return function(){var Se=k._readableState;c("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&r(k,"data")&&(Se.flowing=!0,A(k))}}Q.prototype.unpipe=function(k){var Z=this._readableState,Se={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return k&&k!==Z.pipes?this:(k||(k=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,k&&k.emit("unpipe",this,Se),this);if(!k){var ke=Z.pipes,De=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var $e=0;$e<De;$e++)ke[$e].emit("unpipe",this,{hasUnpiped:!1});return this}var Me=ge(Z.pipes,k);return Me===-1?this:(Z.pipes.splice(Me,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),k.emit("unpipe",this,Se),this)},Q.prototype.on=function(k,Z){var Se=n.prototype.on.call(this,k,Z),ke=this._readableState;return k==="data"?(ke.readableListening=this.listenerCount("readable")>0,ke.flowing!==!1&&this.resume()):k==="readable"&&!ke.endEmitted&&!ke.readableListening&&(ke.readableListening=ke.needReadable=!0,ke.flowing=!1,ke.emittedReadable=!1,c("on readable",ke.length,ke.reading),ke.length?te(this):ke.reading||e.nextTick(Je,this)),Se},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(k,Z){var Se=n.prototype.removeListener.call(this,k,Z);return k==="readable"&&e.nextTick(je,this),Se},Q.prototype.removeAllListeners=function(k){var Z=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&e.nextTick(je,this),Z};function je(k){var Z=k._readableState;Z.readableListening=k.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:k.listenerCount("data")>0&&k.resume()}function Je(k){c("readable nexttick read 0"),k.read(0)}Q.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,Ve(this,k)),k.paused=!1,this};function Ve(k,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,e.nextTick(xe,k,Z))}function xe(k,Z){c("resume",Z.reading),Z.reading||k.read(0),Z.resumeScheduled=!1,k.emit("resume"),A(k),Z.flowing&&!Z.reading&&k.read(0)}Q.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(k){var Z=k._readableState;for(c("flow",Z.flowing);Z.flowing&&k.read()!==null;);}Q.prototype.wrap=function(k){var Z=this,Se=this._readableState,ke=!1;k.on("end",function(){if(c("wrapped end"),Se.decoder&&!Se.ended){var Me=Se.decoder.end();Me&&Me.length&&Z.push(Me)}Z.push(null)}),k.on("data",function(Me){if(c("wrapped data"),Se.decoder&&(Me=Se.decoder.write(Me)),!(Se.objectMode&&Me==null)&&!(!Se.objectMode&&(!Me||!Me.length))){var ot=Z.push(Me);ot||(ke=!0,k.pause())}});for(var De in k)this[De]===void 0&&typeof k[De]=="function"&&(this[De]=function(ot){return function(){return k[ot].apply(k,arguments)}}(De));for(var $e=0;$e<N.length;$e++)k.on(N[$e],this.emit.bind(this,N[$e]));return this._read=function(Me){c("wrapped _read",Me),ke&&(ke=!1,k.resume())},this},typeof Symbol=="function"&&(Q.prototype[Symbol.asyncIterator]=function(){return D===void 0&&(D=$O()),D(this)}),Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Z){this._readableState&&(this._readableState.flowing=Z)}}),Q._fromList=O,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function O(k,Z){if(Z.length===0)return null;var Se;return Z.objectMode?Se=Z.buffer.shift():!k||k>=Z.length?(Z.decoder?Se=Z.buffer.join(""):Z.buffer.length===1?Se=Z.buffer.first():Se=Z.buffer.concat(Z.length),Z.buffer.clear()):Se=Z.buffer.consume(k,Z.decoder),Se}function Y(k){var Z=k._readableState;c("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,e.nextTick(fe,Z,k))}function fe(k,Z){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,Z.readable=!1,Z.emit("end"),k.autoDestroy)){var Se=Z._writableState;(!Se||Se.autoDestroy&&Se.finished)&&Z.destroy()}}typeof Symbol=="function"&&(Q.from=function(k,Z){return V===void 0&&(V=zO()),V(Q,k,Z)});function ge(k,Z){for(var Se=0,ke=k.length;Se<ke;Se++)if(k[Se]===Z)return Se;return-1}return Tc}var Oc={},Yw=!1;function Nc(){if(Yw)return Oc;Yw=!0,Oc=f;var e=go().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,a=_i();Ei()(f,a);function i(d,y){var v=this._transformState;v.transforming=!1;var _=v.writecb;if(_===null)return this.emit("error",new r);v.writechunk=null,v.writecb=null,y!=null&&this.push(y),_(d);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function f(d){if(!(this instanceof f))return new f(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",l)}function l(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(y,v){c(d,y,v)}):c(this,null,null)}f.prototype.push=function(d,y){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,y)},f.prototype._transform=function(d,y,v){v(new t("_transform()"))},f.prototype._write=function(d,y,v){var _=this._transformState;if(_.writecb=v,_.writechunk=d,_.writeencoding=y,!_.transforming){var h=this._readableState;(_.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},f.prototype._read=function(d){var y=this._transformState;y.writechunk!==null&&!y.transforming?(y.transforming=!0,this._transform(y.writechunk,y.writeencoding,y.afterTransform)):y.needTransform=!0},f.prototype._destroy=function(d,y){a.prototype._destroy.call(this,d,function(v){y(v)})};function c(d,y,v){if(y)return d.emit("error",y);if(v!=null&&d.push(v),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Oc}var Ic={},Kw=!1;function t1(){if(Kw)return Ic;Kw=!0,Ic=t;var e=Nc();Ei()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},Ic}var xc={},Xw=!1;function r1(){if(Xw)return xc;Xw=!0;var e;function t(v){var _=!1;return function(){_||(_=!0,v.apply(void 0,arguments))}}var r=go().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(v){if(v)throw v}function i(v){return v.setHeader&&typeof v.abort=="function"}function f(v,_,h,w){w=t(w);var S=!1;v.on("close",function(){S=!0}),e===void 0&&(e=cu()),e(v,{readable:_,writable:h},function(C){if(C)return w(C);S=!0,w()});var T=!1;return function(C){if(!S&&!T){if(T=!0,i(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();w(C||new o("pipe"))}}}function l(v){v()}function c(v,_){return v.pipe(_)}function d(v){return!v.length||typeof v[v.length-1]!="function"?a:v.pop()}function y(){for(var v=arguments.length,_=new Array(v),h=0;h<v;h++)_[h]=arguments[h];var w=d(_);if(Array.isArray(_[0])&&(_=_[0]),_.length<2)throw new n("streams");var S,T=_.map(function(C,M){var D=M<_.length-1,V=M>0;return f(C,D,V,function(F){S||(S=F),F&&T.forEach(l),!D&&(T.forEach(l),w(S))})});return _.reduce(c)}return xc=y,xc}$();z();q();H();W();$();z();q();H();W();var Lc={},n1=!1,kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function WO(){if(n1)return Lc;n1=!0,Lc=r;var e=Ft.EventEmitter,t=Ei();t(r,e),r.Readable=Cc(),r.Writable=Bc(),r.Duplex=_i(),r.Transform=Nc(),r.PassThrough=t1(),r.finished=cu(),r.pipeline=r1(),r.Stream=r;function r(){e.call(this||kc)}return r.prototype.pipe=function(n,o){var a=this||kc;function i(_){n.writable&&n.write(_)===!1&&a.pause&&a.pause()}a.on("data",i);function f(){a.readable&&a.resume&&a.resume()}n.on("drain",f),!n._isStdio&&(!o||o.end!==!1)&&(a.on("end",c),a.on("close",d));var l=!1;function c(){l||(l=!0,n.end())}function d(){l||(l=!0,typeof n.destroy=="function"&&n.destroy())}function y(_){if(v(),e.listenerCount(this||kc,"error")===0)throw _}a.on("error",y),n.on("error",y);function v(){a.removeListener("data",i),n.removeListener("drain",f),a.removeListener("end",c),a.removeListener("close",d),a.removeListener("error",y),n.removeListener("error",y),a.removeListener("end",v),a.removeListener("close",v),n.removeListener("close",v)}return a.on("end",v),a.on("close",v),n.on("close",v),n.emit("pipe",a),n},Lc}var ir=WO();$();z();q();H();W();var Vq=Oe._extend,Gq=Oe.callbackify,Yq=Oe.debuglog,Kq=Oe.deprecate,Xq=Oe.format,Jq=Oe.inherits,Qq=Oe.inspect,eW=Oe.isArray,tW=Oe.isBoolean,rW=Oe.isBuffer,nW=Oe.isDate,iW=Oe.isError,oW=Oe.isFunction,aW=Oe.isNull,sW=Oe.isNullOrUndefined,uW=Oe.isNumber,fW=Oe.isObject,lW=Oe.isPrimitive,cW=Oe.isRegExp,hW=Oe.isString,pW=Oe.isSymbol,dW=Oe.isUndefined,yW=Oe.log,Fc=Oe.promisify,gW=Oe.types,mW=Oe.TextEncoder=globalThis.TextEncoder,i1=Oe.TextDecoder=globalThis.TextDecoder;var o1=ir.Readable;o1.wrap=function(e,t){return t=Object.assign({objectMode:e.readableObjectMode!=null||e.objectMode!=null||!0},t),t.destroy=function(r,n){e.destroy(r),n(r)},new o1(t).wrap(e)};var a1=ir.Writable,FW=ir.Duplex,PW=ir.Transform,UW=ir.PassThrough,DW=ir.finished,MW=ir.pipeline,jW=ir.Stream,$W={finished:Fc(ir.finished),pipeline:Fc(ir.pipeline)};$();z();q();H();W();function s1(e,t){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(o!=null)for(var a=Object.keys(Object(o)),i=0,f=a.length;i<f;i++){var l=a[i],c=Object.getOwnPropertyDescriptor(o,l);c!==void 0&&c.enumerable&&(r[l]=o[l])}}return r}var HO={assign:s1,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:s1})}},M1,u1=Object.prototype.toString,j1=function(e){var t=u1.call(e),r=t==="[object Arguments]";return r||(r=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&u1.call(e.callee)==="[object Function]"),r};Object.keys||(da=Object.prototype.hasOwnProperty,Pc=Object.prototype.toString,f1=j1,Uc=Object.prototype.propertyIsEnumerable,l1=!Uc.call({toString:null},"toString"),c1=Uc.call(function(){},"prototype"),ya=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],hu=function(e){var t=e.constructor;return t&&t.prototype===e},h1={$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},p1=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!h1["$"+e]&&da.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{hu(window[e])}catch{return!0}}catch{return!0}return!1}(),M1=function(e){var t=e!==null&&typeof e=="object",r=Pc.call(e)==="[object Function]",n=f1(e),o=t&&Pc.call(e)==="[object String]",a=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var i=c1&&r;if(o&&e.length>0&&!da.call(e,0))for(var f=0;f<e.length;++f)a.push(String(f));if(n&&e.length>0)for(var l=0;l<e.length;++l)a.push(String(l));else for(var c in e)i&&c==="prototype"||!da.call(e,c)||a.push(String(c));if(l1)for(var d=function(v){if(typeof window>"u"||!p1)return hu(v);try{return hu(v)}catch{return!1}}(e),y=0;y<ya.length;++y)d&&ya[y]==="constructor"||!da.call(e,ya[y])||a.push(ya[y]);return a});var da,Pc,f1,Uc,l1,c1,ya,hu,h1,p1,ZO=M1,VO=Array.prototype.slice,GO=j1,d1=Object.keys,gu=d1?function(e){return d1(e)}:ZO,y1=Object.keys;gu.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return GO(e)?y1(VO.call(e)):y1(e)}):Object.keys=gu,Object.keys||gu};var YO=gu,KO=YO,XO=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",JO=Object.prototype.toString,QO=Array.prototype.concat,Wc=Object.defineProperty,$1=Wc&&function(){var e={};try{for(var t in Wc(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}}(),eI=function(e,t,r,n){var o;(!(t in e)||typeof(o=n)=="function"&&JO.call(o)==="[object Function]"&&n())&&($1?Wc(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},z1=function(e,t){var r=arguments.length>2?arguments[2]:{},n=KO(t);XO&&(n=QO.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)eI(e,n[o],t[n[o]],r[n[o]])};z1.supportsDescriptors=!!$1;var bu=z1,tI=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;for(t in e[t]=42,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 n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==42||o.enumerable!==!0)return!1}return!0},g1=(typeof globalThis<"u"?globalThis:typeof self<"u"?self:se).Symbol,rI=tI,nI=function(){return typeof g1=="function"&&typeof Symbol=="function"&&typeof g1("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&rI()},iI="Function.prototype.bind called on incompatible ",Dc=Array.prototype.slice,oI=Object.prototype.toString,aI=function(e){var t=this;if(typeof t!="function"||oI.call(t)!=="[object Function]")throw new TypeError(iI+t);for(var r,n=Dc.call(arguments,1),o=function(){if(this instanceof r){var c=t.apply(this,n.concat(Dc.call(arguments)));return Object(c)===c?c:this}return t.apply(e,n.concat(Dc.call(arguments)))},a=Math.max(0,t.length-n.length),i=[],f=0;f<a;f++)i.push("$"+f);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},q1=Function.prototype.bind||aI,va=TypeError,Ri=Object.getOwnPropertyDescriptor;if(Ri)try{Ri({},"")}catch{Ri=null}var Mc=function(){throw new va},sI=Ri?function(){try{return arguments.callee,Mc}catch{try{return Ri(arguments,"callee").get}catch{return Mc}}}():Mc,Si=nI(),Ai=Object.getPrototypeOf||function(e){return e.__proto__},jc=typeof Uint8Array>"u"?void 0:Ai(Uint8Array),$c={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Si?Ai([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":void 0,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView>"u"?void 0:DataView,"%DataViewPrototype%":typeof DataView>"u"?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array>"u"?void 0:Float32Array.prototype,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array>"u"?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array>"u"?void 0:Int8Array.prototype,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array>"u"?void 0:Int8Array.prototype,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array>"u"?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Si?Ai(Ai([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%JSONParse%":typeof JSON=="object"?JSON.parse:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&Si?Ai(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":typeof Map>"u"?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%PromisePrototype%":typeof Promise>"u"?void 0:Promise.prototype,"%PromiseProto_then%":typeof Promise>"u"?void 0:Promise.prototype.then,"%Promise_all%":typeof Promise>"u"?void 0:Promise.all,"%Promise_reject%":typeof Promise>"u"?void 0:Promise.reject,"%Promise_resolve%":typeof Promise>"u"?void 0:Promise.resolve,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&Si?Ai(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":typeof Set>"u"?void 0:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Si?Ai(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":Si?Symbol:void 0,"%SymbolPrototype%":Si?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":sI,"%TypedArray%":jc,"%TypedArrayPrototype%":jc?jc.prototype:void 0,"%TypeError%":va,"%TypeErrorPrototype%":va.prototype,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array>"u"?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array>"u"?void 0:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array>"u"?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakMapPrototype%":typeof WeakMap>"u"?void 0:WeakMap.prototype,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%WeakSetPrototype%":typeof WeakSet>"u"?void 0:WeakSet.prototype},m1=q1.call(Function.call,String.prototype.replace),uI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fI=/\\(\\)?/g,lI=function(e){var t=[];return m1(e,uI,function(r,n,o,a){t[t.length]=o?m1(a,fI,"$1"):n||r}),t},cI=function(e,t){if(!(e in $c))throw new SyntaxError("intrinsic "+e+" does not exist!");if($c[e]===void 0&&!t)throw new va("intrinsic "+e+" exists, but is not available. Please file an issue!");return $c[e]},hI=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var r=lI(e),n=cI("%"+(r.length>0?r[0]:"")+"%",t),o=1;o<r.length;o+=1)if(n!=null)if(Ri&&o+1>=r.length){var a=Ri(n,r[o]);if(!t&&!(r[o]in n))throw new va("base intrinsic for "+e+" exists, but the property is not available.");n=a?a.get||a.value:n[r[o]]}else n=n[r[o]];return n},W1,v1=q1,H1=hI("%Function%"),pI=H1.apply,dI=H1.call;(W1=function(){return v1.apply(dI,arguments)}).apply=function(){return v1.apply(pI,arguments)};var yI=W1,Hc,Zc,w1=function(e){return e!=e},gI=(Hc=function(e,t){return e===0&&t===0?1/e==1/t:e===t||!(!w1(e)||!w1(t))},Hc),mI=(Zc=function(){return typeof Object.is=="function"?Object.is:gI},Zc),vI=bu,wI=bu,bI=Hc,Z1=Zc,_I=function(){var e=mI();return vI(Object,{is:e},{is:function(){return Object.is!==e}}),e},V1=yI(Z1(),Object);wI(V1,{getPolyfill:Z1,implementation:bI,shim:_I});var G1=V1;Yc=function(e){return e!=e};var Yc,Kc,EI=Yc,SI=(Kc=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:EI},bu),AI=Kc,RI=bu,TI=Yc,Y1=Kc,OI=function(){var e=AI();return SI(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},K1=Y1();RI(K1,{getPolyfill:Y1,implementation:TI,shim:OI});var II=K1,zc={},b1=!1;function X1(){if(b1)return zc;function e(c){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function t(c,d){return!d||e(d)!=="object"&&typeof d!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(c):d}function r(c){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}function n(c,d){return(n=Object.setPrototypeOf||function(y,v){return y.__proto__=v,y})(c,d)}b1=!0;var o,a,i={};function f(c,d,y){y||(y=Error);var v=function(_){function h(w,S,T){var C;return function(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}(this,h),(C=t(this,r(h).call(this,function(M,D,V){return typeof d=="string"?d:d(M,D,V)}(w,S,T)))).code=c,C}return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),S&&n(w,S)}(h,_),h}(y);i[c]=v}function l(c,d){if(Array.isArray(c)){var y=c.length;return c=c.map(function(v){return String(v)}),y>2?"one of ".concat(d," ").concat(c.slice(0,y-1).join(", "),", or ")+c[y-1]:y===2?"one of ".concat(d," ").concat(c[0]," or ").concat(c[1]):"of ".concat(d," ").concat(c[0])}return"of ".concat(d," ").concat(String(c))}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(c,d,y){var v,_,h;if(o===void 0&&(o=Gc()),o(typeof c=="string","'name' must be a string"),typeof d=="string"&&(_="not ",d.substr(0,_.length)===_)?(v="must not be",d=d.replace(/^not /,"")):v="must be",function(S,T,C){return(C===void 0||C>S.length)&&(C=S.length),S.substring(C-T.length,C)===T}(c," argument"))h="The ".concat(c," ").concat(v," ").concat(l(d,"type"));else{var w=function(S,T,C){return typeof C!="number"&&(C=0),!(C+T.length>S.length)&&S.indexOf(T,C)!==-1}(c,".")?"property":"argument";h='The "'.concat(c,'" ').concat(w," ").concat(v," ").concat(l(d,"type"))}return h+=". Received type ".concat(e(y))},TypeError),f("ERR_INVALID_ARG_VALUE",function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=Oe);var v=a.inspect(d);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(y,". Received ").concat(v)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(c,d,y){var v;return v=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(e(y)),"Expected ".concat(c,' to be returned from the "').concat(d,'"')+" function but got ".concat(v,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var c=arguments.length,d=new Array(c),y=0;y<c;y++)d[y]=arguments[y];o===void 0&&(o=Gc()),o(d.length>0,"At least one arg needs to be specified");var v="The ",_=d.length;switch(d=d.map(function(h){return'"'.concat(h,'"')}),_){case 1:v+="".concat(d[0]," argument");break;case 2:v+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:v+=d.slice(0,_-1).join(", "),v+=", and ".concat(d[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),zc.codes=i,zc}var _1={},E1=!1;function xI(){if(E1)return _1;E1=!0;var e=Et;function t(N,x,G){return x in N?Object.defineProperty(N,x,{value:G,enumerable:!0,configurable:!0,writable:!0}):N[x]=G,N}function r(N,x){for(var G=0;G<x.length;G++){var Q=x[G];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(N,Q.key,Q)}}function n(N,x){return!x||d(x)!=="object"&&typeof x!="function"?o(N):x}function o(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function a(N){var x=typeof Map=="function"?new Map:void 0;return(a=function(G){if(G===null||(Q=G,Function.toString.call(Q).indexOf("[native code]")===-1))return G;var Q;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(G))return x.get(G);x.set(G,Te)}function Te(){return f(G,arguments,c(this).constructor)}return Te.prototype=Object.create(G.prototype,{constructor:{value:Te,enumerable:!1,writable:!0,configurable:!0}}),l(Te,G)})(N)}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(N,x,G){return(f=i()?Reflect.construct:function(Q,Te,K){var re=[null];re.push.apply(re,Te);var ae=new(Function.bind.apply(Q,re));return K&&l(ae,K.prototype),ae}).apply(null,arguments)}function l(N,x){return(l=Object.setPrototypeOf||function(G,Q){return G.__proto__=Q,G})(N,x)}function c(N){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(N)}function d(N){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(N)}var y=Oe.inspect,v=X1().codes.ERR_INVALID_ARG_TYPE;function _(N,x,G){return(G===void 0||G>N.length)&&(G=N.length),N.substring(G-x.length,G)===x}var h="",w="",S="",T="",C={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:"};function M(N){var x=Object.keys(N),G=Object.create(Object.getPrototypeOf(N));return x.forEach(function(Q){G[Q]=N[Q]}),Object.defineProperty(G,"message",{value:N.message}),G}function D(N){return y(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function V(N,x,G){var Q="",Te="",K=0,re="",ae=!1,Ce=D(N),Ne=Ce.split(`
`),ne=D(x).split(`
`),te=0,ye="";if(G==="strictEqual"&&d(N)==="object"&&d(x)==="object"&&N!==null&&x!==null&&(G="strictEqualObject"),Ne.length===1&&ne.length===1&&Ne[0]!==ne[0]){var me=Ne[0].length+ne[0].length;if(me<=10){if(!(d(N)==="object"&&N!==null||d(x)==="object"&&x!==null||N===0&&x===0))return"".concat(C[G],`
`)+"".concat(Ne[0]," !== ").concat(ne[0],`
`)}else if(G!=="strictEqualObject"&&me<(e.stderr&&e.stderr.isTTY?e.stderr.columns:80)){for(;Ne[0][te]===ne[0][te];)te++;te>2&&(ye=`
`.concat(function(k,Z){if(Z=Math.floor(Z),k.length==0||Z==0)return"";var Se=k.length*Z;for(Z=Math.floor(Math.log(Z)/Math.log(2));Z;)k+=k,Z--;return k+=k.substring(0,Se-k.length)}(" ",te),"^"),te=0)}}for(var Re=Ne[Ne.length-1],ze=ne[ne.length-1];Re===ze&&(te++<2?re=`
`.concat(Re).concat(re):Q=Re,Ne.pop(),ne.pop(),Ne.length!==0&&ne.length!==0);)Re=Ne[Ne.length-1],ze=ne[ne.length-1];var je=Math.max(Ne.length,ne.length);if(je===0){var Je=Ce.split(`
`);if(Je.length>30)for(Je[26]="".concat(h,"...").concat(T);Je.length>27;)Je.pop();return"".concat(C.notIdentical,`
`).concat(Je.join(`
`),`
`)}te>3&&(re=`
`.concat(h,"...").concat(T).concat(re),ae=!0),Q!==""&&(re=`
`.concat(Q).concat(re),Q="");var Ve=0,xe=C[G]+`
`.concat(w,"+ actual").concat(T," ").concat(S,"- expected").concat(T),A=" ".concat(h,"...").concat(T," Lines skipped");for(te=0;te<je;te++){var O=te-K;if(Ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(ne[te-2]),Ve++),Te+=`
`.concat(ne[te-1]),Ve++),K=te,Q+=`
`.concat(S,"-").concat(T," ").concat(ne[te]),Ve++;else if(ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(Ne[te-2]),Ve++),Te+=`
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
`.concat(w,"+").concat(T," ").concat(Ne[te]),Ve++;else{var Y=ne[te],fe=Ne[te],ge=fe!==Y&&(!_(fe,",")||fe.slice(0,-1)!==Y);ge&&_(Y,",")&&Y.slice(0,-1)===fe&&(ge=!1,fe+=","),ge?(O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(Ne[te-2]),Ve++),Te+=`
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
`.concat(w,"+").concat(T," ").concat(fe),Q+=`
`.concat(S,"-").concat(T," ").concat(Y),Ve+=2):(Te+=Q,Q="",O!==1&&te!==0||(Te+=`
`.concat(fe),Ve++))}if(Ve>20&&te<je-2)return"".concat(xe).concat(A,`
`).concat(Te,`
`).concat(h,"...").concat(T).concat(Q,`
`)+"".concat(h,"...").concat(T)}return"".concat(xe).concat(ae?A:"",`
`).concat(Te).concat(Q).concat(re).concat(ye)}var F=function(N){function x(Te){var K;if(function(Je,Ve){if(!(Je instanceof Ve))throw new TypeError("Cannot call a class as a function")}(this,x),d(Te)!=="object"||Te===null)throw new v("options","Object",Te);var re=Te.message,ae=Te.operator,Ce=Te.stackStartFn,Ne=Te.actual,ne=Te.expected,te=Error.stackTraceLimit;if(Error.stackTraceLimit=0,re!=null)K=n(this,c(x).call(this,String(re)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(h="\x1B[34m",w="\x1B[32m",T="\x1B[39m",S="\x1B[31m"):(h="",w="",T="",S="")),d(Ne)==="object"&&Ne!==null&&d(ne)==="object"&&ne!==null&&"stack"in Ne&&Ne instanceof Error&&"stack"in ne&&ne instanceof Error&&(Ne=M(Ne),ne=M(ne)),ae==="deepStrictEqual"||ae==="strictEqual")K=n(this,c(x).call(this,V(Ne,ne,ae)));else if(ae==="notDeepStrictEqual"||ae==="notStrictEqual"){var ye=C[ae],me=D(Ne).split(`
`);if(ae==="notStrictEqual"&&d(Ne)==="object"&&Ne!==null&&(ye=C.notStrictEqualObject),me.length>30)for(me[26]="".concat(h,"...").concat(T);me.length>27;)me.pop();K=me.length===1?n(this,c(x).call(this,"".concat(ye," ").concat(me[0]))):n(this,c(x).call(this,"".concat(ye,`
`).concat(me.join(`
`),`
`)))}else{var Re=D(Ne),ze="",je=C[ae];ae==="notDeepEqual"||ae==="notEqual"?(Re="".concat(C[ae],`
`).concat(Re)).length>1024&&(Re="".concat(Re.slice(0,1021),"...")):(ze="".concat(D(ne)),Re.length>512&&(Re="".concat(Re.slice(0,509),"...")),ze.length>512&&(ze="".concat(ze.slice(0,509),"...")),ae==="deepEqual"||ae==="equal"?Re="".concat(je,`
`).concat(Re,`
should equal
`):ze=" ".concat(ae," ").concat(ze)),K=n(this,c(x).call(this,"".concat(Re).concat(ze)))}return Error.stackTraceLimit=te,K.generatedMessage=!re,Object.defineProperty(o(K),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),K.code="ERR_ASSERTION",K.actual=Ne,K.expected=ne,K.operator=ae,Error.captureStackTrace&&Error.captureStackTrace(o(K),Ce),K.stack,K.name="AssertionError",n(K)}var G,Q;return function(Te,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Te.prototype=Object.create(K&&K.prototype,{constructor:{value:Te,writable:!0,configurable:!0}}),K&&l(Te,K)}(x,N),G=x,(Q=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(Te,K){return y(this,function(re){for(var ae=1;ae<arguments.length;ae++){var Ce=arguments[ae]!=null?arguments[ae]:{},Ne=Object.keys(Ce);typeof Object.getOwnPropertySymbols=="function"&&(Ne=Ne.concat(Object.getOwnPropertySymbols(Ce).filter(function(ne){return Object.getOwnPropertyDescriptor(Ce,ne).enumerable}))),Ne.forEach(function(ne){t(re,ne,Ce[ne])})}return re}({},K,{customInspect:!1,depth:0}))}}])&&r(G.prototype,Q),x}(a(Error));return _1=F}function S1(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var o=[],a=!0,i=!1,f=void 0;try{for(var l,c=r[Symbol.iterator]();!(a=(l=c.next()).done)&&(o.push(l.value),!n||o.length!==n);a=!0);}catch(d){i=!0,f=d}finally{try{a||c.return==null||c.return()}finally{if(i)throw f}}return o}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zr(e){return(Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var BI=/a/g.flags!==void 0,wu=function(e){var t=[];return e.forEach(function(r){return t.push(r)}),t},A1=function(e){var t=[];return e.forEach(function(r,n){return t.push([n,r])}),t},R1=Object.is?Object.is:G1,mu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Vc=Number.isNaN?Number.isNaN:II;function Xc(e){return e.call.bind(e)}var ma=Xc(Object.prototype.hasOwnProperty),vu=Xc(Object.prototype.propertyIsEnumerable),T1=Xc(Object.prototype.toString),ur=Oe.types,CI=ur.isAnyArrayBuffer,NI=ur.isArrayBufferView,O1=ur.isDate,pu=ur.isMap,I1=ur.isRegExp,du=ur.isSet,LI=ur.isNativeError,kI=ur.isBoxedPrimitive,x1=ur.isNumberObject,B1=ur.isStringObject,C1=ur.isBooleanObject,N1=ur.isBigIntObject,FI=ur.isSymbolObject,PI=ur.isFloat32Array,UI=ur.isFloat64Array;function DI(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function yu(e){return Object.keys(e).filter(DI).concat(mu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function L1(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function Cr(e,t,r,n){if(e===t)return e!==0||!r||R1(e,t);if(r){if(Zr(e)!=="object")return typeof e=="number"&&Vc(e)&&Vc(t);if(Zr(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Zr(e)!=="object")return(t===null||Zr(t)!=="object")&&e==t;if(t===null||Zr(t)!=="object")return!1}var o,a,i,f,l=T1(e);if(l!==T1(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var c=yu(e),d=yu(t);return c.length===d.length&&ga(e,t,r,n,1,c)}if(l==="[object Object]"&&(!pu(e)&&pu(t)||!du(e)&&du(t)))return!1;if(O1(e)){if(!O1(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(I1(e)){if(!I1(t)||(i=e,f=t,!(BI?i.source===f.source&&i.flags===f.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(f))))return!1}else if(LI(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(NI(e)){if(r||!PI(e)&&!UI(e)){if(!function(_,h){return _.byteLength===h.byteLength&&L1(new Uint8Array(_.buffer,_.byteOffset,_.byteLength),new Uint8Array(h.buffer,h.byteOffset,h.byteLength))===0}(e,t))return!1}else if(!function(_,h){if(_.byteLength!==h.byteLength)return!1;for(var w=0;w<_.byteLength;w++)if(_[w]!==h[w])return!1;return!0}(e,t))return!1;var y=yu(e),v=yu(t);return y.length===v.length&&ga(e,t,r,n,0,y)}if(du(e))return!(!du(t)||e.size!==t.size)&&ga(e,t,r,n,2);if(pu(e))return!(!pu(t)||e.size!==t.size)&&ga(e,t,r,n,3);if(CI(e)){if(a=t,(o=e).byteLength!==a.byteLength||L1(new Uint8Array(o),new Uint8Array(a))!==0)return!1}else if(kI(e)&&!function(_,h){return x1(_)?x1(h)&&R1(Number.prototype.valueOf.call(_),Number.prototype.valueOf.call(h)):B1(_)?B1(h)&&String.prototype.valueOf.call(_)===String.prototype.valueOf.call(h):C1(_)?C1(h)&&Boolean.prototype.valueOf.call(_)===Boolean.prototype.valueOf.call(h):N1(_)?N1(h)&&BigInt.prototype.valueOf.call(_)===BigInt.prototype.valueOf.call(h):FI(h)&&Symbol.prototype.valueOf.call(_)===Symbol.prototype.valueOf.call(h)}(e,t))return!1}return ga(e,t,r,n,0)}function k1(e,t){return t.filter(function(r){return vu(e,r)})}function ga(e,t,r,n,o,a){if(arguments.length===5){a=Object.keys(e);var i=Object.keys(t);if(a.length!==i.length)return!1}for(var f=0;f<a.length;f++)if(!ma(t,a[f]))return!1;if(r&&arguments.length===5){var l=mu(e);if(l.length!==0){var c=0;for(f=0;f<l.length;f++){var d=l[f];if(vu(e,d)){if(!vu(t,d))return!1;a.push(d),c++}else if(vu(t,d))return!1}var y=mu(t);if(l.length!==y.length&&k1(t,y).length!==c)return!1}else{var v=mu(t);if(v.length!==0&&k1(t,v).length!==0)return!1}}if(a.length===0&&(o===0||o===1&&e.length===0||e.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var _=n.val1.get(e);if(_!==void 0){var h=n.val2.get(t);if(h!==void 0)return _===h}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var w=$I(e,t,r,a,n,o);return n.val1.delete(e),n.val2.delete(t),w}function F1(e,t,r,n){for(var o=wu(e),a=0;a<o.length;a++){var i=o[a];if(Cr(t,i,r,n))return e.delete(i),!0}return!1}function J1(e){switch(Zr(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(Vc(e))return!1}return!0}function MI(e,t,r){var n=J1(r);return n??(t.has(n)&&!e.has(n))}function jI(e,t,r,n,o){var a=J1(r);if(a!=null)return a;var i=t.get(a);return!(i===void 0&&!t.has(a)||!Cr(n,i,!1,o))&&!e.has(a)&&Cr(n,i,!1,o)}function P1(e,t,r,n,o,a){for(var i=wu(e),f=0;f<i.length;f++){var l=i[f];if(Cr(r,l,o,a)&&Cr(n,t.get(l),o,a))return e.delete(l),!0}return!1}function $I(e,t,r,n,o,a){var i=0;if(a===2){if(!function(d,y,v,_){for(var h=null,w=wu(d),S=0;S<w.length;S++){var T=w[S];if(Zr(T)==="object"&&T!==null)h===null&&(h=new Set),h.add(T);else if(!y.has(T)){if(v||!MI(d,y,T))return!1;h===null&&(h=new Set),h.add(T)}}if(h!==null){for(var C=wu(y),M=0;M<C.length;M++){var D=C[M];if(Zr(D)==="object"&&D!==null){if(!F1(h,D,v,_))return!1}else if(!v&&!d.has(D)&&!F1(h,D,v,_))return!1}return h.size===0}return!0}(e,t,r,o))return!1}else if(a===3){if(!function(d,y,v,_){for(var h=null,w=A1(d),S=0;S<w.length;S++){var T=S1(w[S],2),C=T[0],M=T[1];if(Zr(C)==="object"&&C!==null)h===null&&(h=new Set),h.add(C);else{var D=y.get(C);if(D===void 0&&!y.has(C)||!Cr(M,D,v,_)){if(v||!jI(d,y,C,M,_))return!1;h===null&&(h=new Set),h.add(C)}}}if(h!==null){for(var V=A1(y),F=0;F<V.length;F++){var N=S1(V[F],2),x=(C=N[0],N[1]);if(Zr(C)==="object"&&C!==null){if(!P1(h,d,C,x,v,_))return!1}else if(!(v||d.has(C)&&Cr(d.get(C),x,!1,_)||P1(h,d,C,x,!1,_)))return!1}return h.size===0}return!0}(e,t,r,o))return!1}else if(a===1)for(;i<e.length;i++){if(!ma(e,i)){if(ma(t,i))return!1;for(var f=Object.keys(e);i<f.length;i++){var l=f[i];if(!ma(t,l)||!Cr(e[l],t[l],r,o))return!1}return f.length===Object.keys(t).length}if(!ma(t,i)||!Cr(e[i],t[i],r,o))return!1}for(i=0;i<n.length;i++){var c=n[i];if(!Cr(e[c],t[c],r,o))return!1}return!0}var U1={isDeepEqual:function(e,t){return Cr(e,t,!1)},isDeepStrictEqual:function(e,t){return Cr(e,t,!0)}},qc={},D1=!1;function Gc(){if(D1)return qc;D1=!0;var e=Et;function t(ne){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(ne)}var r,n,o=X1().codes,a=o.ERR_AMBIGUOUS_ARGUMENT,i=o.ERR_INVALID_ARG_TYPE,f=o.ERR_INVALID_ARG_VALUE,l=o.ERR_INVALID_RETURN_VALUE,c=o.ERR_MISSING_ARGS,d=xI(),y=Oe.inspect,v=Oe.types,_=v.isPromise,h=v.isRegExp,w=Object.assign?Object.assign:HO.assign,S=Object.is?Object.is:G1;function T(){r=U1.isDeepEqual,n=U1.isDeepStrictEqual}var C=!1,M=qc=N,D={};function V(ne){throw ne.message instanceof Error?ne.message:new d(ne)}function F(ne,te,ye,me){if(!ye){var Re=!1;if(te===0)Re=!0,me="No value argument passed to `assert.ok()`";else if(me instanceof Error)throw me;var ze=new d({actual:ye,expected:!0,message:me,operator:"==",stackStartFn:ne});throw ze.generatedMessage=Re,ze}}function N(){for(var ne=arguments.length,te=new Array(ne),ye=0;ye<ne;ye++)te[ye]=arguments[ye];F.apply(void 0,[N,te.length].concat(te))}M.fail=function ne(te,ye,me,Re,ze){var je,Je=arguments.length;if(Je===0)je="Failed";else if(Je===1)me=te,te=void 0;else{if(C===!1){C=!0;var Ve=e.emitWarning?e.emitWarning:console.warn.bind(console);Ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Je===2&&(Re="!=")}if(me instanceof Error)throw me;var xe={actual:te,expected:ye,operator:Re===void 0?"fail":Re,stackStartFn:ze||ne};me!==void 0&&(xe.message=me);var A=new d(xe);throw je&&(A.message=je,A.generatedMessage=!0),A},M.AssertionError=d,M.ok=N,M.equal=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");te!=ye&&V({actual:te,expected:ye,message:me,operator:"==",stackStartFn:ne})},M.notEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");te==ye&&V({actual:te,expected:ye,message:me,operator:"!=",stackStartFn:ne})},M.deepEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),r(te,ye)||V({actual:te,expected:ye,message:me,operator:"deepEqual",stackStartFn:ne})},M.notDeepEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),r(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notDeepEqual",stackStartFn:ne})},M.deepStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),n(te,ye)||V({actual:te,expected:ye,message:me,operator:"deepStrictEqual",stackStartFn:ne})},M.notDeepStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");r===void 0&&T(),n(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notDeepStrictEqual",stackStartFn:ne})},M.strictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");S(te,ye)||V({actual:te,expected:ye,message:me,operator:"strictEqual",stackStartFn:ne})},M.notStrictEqual=function ne(te,ye,me){if(arguments.length<2)throw new c("actual","expected");S(te,ye)&&V({actual:te,expected:ye,message:me,operator:"notStrictEqual",stackStartFn:ne})};var x=function ne(te,ye,me){var Re=this;(function(ze,je){if(!(ze instanceof je))throw new TypeError("Cannot call a class as a function")})(this,ne),ye.forEach(function(ze){ze in te&&(me!==void 0&&typeof me[ze]=="string"&&h(te[ze])&&te[ze].test(me[ze])?Re[ze]=me[ze]:Re[ze]=te[ze])})};function G(ne,te,ye,me,Re,ze){if(!(ye in ne)||!n(ne[ye],te[ye])){if(!me){var je=new x(ne,Re),Je=new x(te,Re,ne),Ve=new d({actual:je,expected:Je,operator:"deepStrictEqual",stackStartFn:ze});throw Ve.actual=ne,Ve.expected=te,Ve.operator=ze.name,Ve}V({actual:ne,expected:te,message:me,operator:ze.name,stackStartFn:ze})}}function Q(ne,te,ye,me){if(typeof te!="function"){if(h(te))return te.test(ne);if(arguments.length===2)throw new i("expected",["Function","RegExp"],te);if(t(ne)!=="object"||ne===null){var Re=new d({actual:ne,expected:te,message:ye,operator:"deepStrictEqual",stackStartFn:me});throw Re.operator=me.name,Re}var ze=Object.keys(te);if(te instanceof Error)ze.push("name","message");else if(ze.length===0)throw new f("error",te,"may not be an empty object");return r===void 0&&T(),ze.forEach(function(je){typeof ne[je]=="string"&&h(te[je])&&te[je].test(ne[je])||G(ne,te,je,ye,ze,me)}),!0}return te.prototype!==void 0&&ne instanceof te||!Error.isPrototypeOf(te)&&te.call({},ne)===!0}function Te(ne){if(typeof ne!="function")throw new i("fn","Function",ne);try{ne()}catch(te){return te}return D}function K(ne){return _(ne)||ne!==null&&t(ne)==="object"&&typeof ne.then=="function"&&typeof ne.catch=="function"}function re(ne){return Promise.resolve().then(function(){var te;if(typeof ne=="function"){if(!K(te=ne()))throw new l("instance of Promise","promiseFn",te)}else{if(!K(ne))throw new i("promiseFn",["Function","Promise"],ne);te=ne}return Promise.resolve().then(function(){return te}).then(function(){return D}).catch(function(ye){return ye})})}function ae(ne,te,ye,me){if(typeof ye=="string"){if(arguments.length===4)throw new i("error",["Object","Error","Function","RegExp"],ye);if(t(te)==="object"&&te!==null){if(te.message===ye)throw new a("error/message",'The error message "'.concat(te.message,'" is identical to the message.'))}else if(te===ye)throw new a("error/message",'The error "'.concat(te,'" is identical to the message.'));me=ye,ye=void 0}else if(ye!=null&&t(ye)!=="object"&&typeof ye!="function")throw new i("error",["Object","Error","Function","RegExp"],ye);if(te===D){var Re="";ye&&ye.name&&(Re+=" (".concat(ye.name,")")),Re+=me?": ".concat(me):".";var ze=ne.name==="rejects"?"rejection":"exception";V({actual:void 0,expected:ye,operator:ne.name,message:"Missing expected ".concat(ze).concat(Re),stackStartFn:ne})}if(ye&&!Q(te,ye,me,ne))throw te}function Ce(ne,te,ye,me){if(te!==D){if(typeof ye=="string"&&(me=ye,ye=void 0),!ye||Q(te,ye)){var Re=me?": ".concat(me):".",ze=ne.name==="doesNotReject"?"rejection":"exception";V({actual:te,expected:ye,operator:ne.name,message:"Got unwanted ".concat(ze).concat(Re,`
`)+'Actual message: "'.concat(te&&te.message,'"'),stackStartFn:ne})}throw te}}function Ne(){for(var ne=arguments.length,te=new Array(ne),ye=0;ye<ne;ye++)te[ye]=arguments[ye];F.apply(void 0,[Ne,te.length].concat(te))}return M.throws=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];ae.apply(void 0,[ne,Te(te)].concat(me))},M.rejects=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(ze){return ae.apply(void 0,[ne,ze].concat(me))})},M.doesNotThrow=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];Ce.apply(void 0,[ne,Te(te)].concat(me))},M.doesNotReject=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(ze){return Ce.apply(void 0,[ne,ze].concat(me))})},M.ifError=function ne(te){if(te!=null){var ye="ifError got unwanted exception: ";t(te)==="object"&&typeof te.message=="string"?te.message.length===0&&te.constructor?ye+=te.constructor.name:ye+=te.message:ye+=y(te);var me=new d({actual:te,expected:null,operator:"ifError",message:ye,stackStartFn:ne}),Re=te.stack;if(typeof Re=="string"){var ze=Re.split(`
`);ze.shift();for(var je=me.stack.split(`
`),Je=0;Je<ze.length;Je++){var Ve=je.indexOf(ze[Je]);if(Ve!==-1){je=je.slice(0,Ve);break}}me.stack="".concat(je.join(`
`),`
`).concat(ze.join(`
`))}throw me}},M.strict=w(Ne,M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}),M.strict.strict=M.strict,qc}var Qe=Gc();Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;var XW=Qe.AssertionError,JW=Qe.deepEqual,QW=Qe.deepStrictEqual,eH=Qe.doesNotReject,tH=Qe.doesNotThrow,rH=Qe.equal,nH=Qe.fail,iH=Qe.ifError,oH=Qe.notDeepEqual,aH=Qe.notDeepStrictEqual,sH=Qe.notEqual,uH=Qe.notStrictEqual,fH=Qe.ok,lH=Qe.rejects,cH=Qe.strict,hH=Qe.strictEqual,pH=Qe.throws;var Jc={},Q1=!1;function zI(){if(Q1)return Jc;Q1=!0;function e(){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}return Jc=e,Jc}var or={},eb=!1;function _u(){if(eb)return or;eb=!0;var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(o,a){return Object.prototype.hasOwnProperty.call(o,a)}or.assign=function(o){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var i=a.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(var f in i)t(i,f)&&(o[f]=i[f])}}return o},or.shrinkBuf=function(o,a){return o.length===a?o:o.subarray?o.subarray(0,a):(o.length=a,o)};var r={arraySet:function(o,a,i,f,l){if(a.subarray&&o.subarray){o.set(a.subarray(i,i+f),l);return}for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){var a,i,f,l,c,d;for(f=0,a=0,i=o.length;a<i;a++)f+=o[a].length;for(d=new Uint8Array(f),l=0,a=0,i=o.length;a<i;a++)c=o[a],d.set(c,l),l+=c.length;return d}},n={arraySet:function(o,a,i,f,l){for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){return[].concat.apply([],o)}};return or.setTyped=function(o){o?(or.Buf8=Uint8Array,or.Buf16=Uint16Array,or.Buf32=Int32Array,or.assign(or,r)):(or.Buf8=Array,or.Buf16=Array,or.Buf32=Array,or.assign(or,n))},or.setTyped(e),or}var Ti={},tb=!1;function qI(){if(tb)return Ti;tb=!0;var e=_u(),t=4,r=0,n=1,o=2;function a(m){for(var j=m.length;--j>=0;)m[j]=0}var i=0,f=1,l=2,c=3,d=258,y=29,v=256,_=v+1+y,h=30,w=19,S=2*_+1,T=15,C=16,M=7,D=256,V=16,F=17,N=18,x=[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],G=[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],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=512,re=new Array((_+2)*2);a(re);var ae=new Array(h*2);a(ae);var Ce=new Array(K);a(Ce);var Ne=new Array(d-c+1);a(Ne);var ne=new Array(y);a(ne);var te=new Array(h);a(te);function ye(m,j,le,Be,ee){this.static_tree=m,this.extra_bits=j,this.extra_base=le,this.elems=Be,this.max_length=ee,this.has_stree=m&&m.length}var me,Re,ze;function je(m,j){this.dyn_tree=m,this.max_code=0,this.stat_desc=j}function Je(m){return m<256?Ce[m]:Ce[256+(m>>>7)]}function Ve(m,j){m.pending_buf[m.pending++]=j&255,m.pending_buf[m.pending++]=j>>>8&255}function xe(m,j,le){m.bi_valid>C-le?(m.bi_buf|=j<<m.bi_valid&65535,Ve(m,m.bi_buf),m.bi_buf=j>>C-m.bi_valid,m.bi_valid+=le-C):(m.bi_buf|=j<<m.bi_valid&65535,m.bi_valid+=le)}function A(m,j,le){xe(m,le[j*2],le[j*2+1])}function O(m,j){var le=0;do le|=m&1,m>>>=1,le<<=1;while(--j>0);return le>>>1}function Y(m){m.bi_valid===16?(Ve(m,m.bi_buf),m.bi_buf=0,m.bi_valid=0):m.bi_valid>=8&&(m.pending_buf[m.pending++]=m.bi_buf&255,m.bi_buf>>=8,m.bi_valid-=8)}function fe(m,j){var le=j.dyn_tree,Be=j.max_code,ee=j.stat_desc.static_tree,ue=j.stat_desc.has_stree,I=j.stat_desc.extra_bits,Fe=j.stat_desc.extra_base,rt=j.stat_desc.max_length,g,we,_e,U,ie,ve,Ye=0;for(U=0;U<=T;U++)m.bl_count[U]=0;for(le[m.heap[m.heap_max]*2+1]=0,g=m.heap_max+1;g<S;g++)we=m.heap[g],U=le[le[we*2+1]*2+1]+1,U>rt&&(U=rt,Ye++),le[we*2+1]=U,!(we>Be)&&(m.bl_count[U]++,ie=0,we>=Fe&&(ie=I[we-Fe]),ve=le[we*2],m.opt_len+=ve*(U+ie),ue&&(m.static_len+=ve*(ee[we*2+1]+ie)));if(Ye!==0){do{for(U=rt-1;m.bl_count[U]===0;)U--;m.bl_count[U]--,m.bl_count[U+1]+=2,m.bl_count[rt]--,Ye-=2}while(Ye>0);for(U=rt;U!==0;U--)for(we=m.bl_count[U];we!==0;)_e=m.heap[--g],!(_e>Be)&&(le[_e*2+1]!==U&&(m.opt_len+=(U-le[_e*2+1])*le[_e*2],le[_e*2+1]=U),we--)}}function ge(m,j,le){var Be=new Array(T+1),ee=0,ue,I;for(ue=1;ue<=T;ue++)Be[ue]=ee=ee+le[ue-1]<<1;for(I=0;I<=j;I++){var Fe=m[I*2+1];Fe!==0&&(m[I*2]=O(Be[Fe]++,Fe))}}function k(){var m,j,le,Be,ee,ue=new Array(T+1);for(le=0,Be=0;Be<y-1;Be++)for(ne[Be]=le,m=0;m<1<<x[Be];m++)Ne[le++]=Be;for(Ne[le-1]=Be,ee=0,Be=0;Be<16;Be++)for(te[Be]=ee,m=0;m<1<<G[Be];m++)Ce[ee++]=Be;for(ee>>=7;Be<h;Be++)for(te[Be]=ee<<7,m=0;m<1<<G[Be]-7;m++)Ce[256+ee++]=Be;for(j=0;j<=T;j++)ue[j]=0;for(m=0;m<=143;)re[m*2+1]=8,m++,ue[8]++;for(;m<=255;)re[m*2+1]=9,m++,ue[9]++;for(;m<=279;)re[m*2+1]=7,m++,ue[7]++;for(;m<=287;)re[m*2+1]=8,m++,ue[8]++;for(ge(re,_+1,ue),m=0;m<h;m++)ae[m*2+1]=5,ae[m*2]=O(m,5);me=new ye(re,x,v+1,_,T),Re=new ye(ae,G,0,h,T),ze=new ye(new Array(0),Q,0,w,M)}function Z(m){var j;for(j=0;j<_;j++)m.dyn_ltree[j*2]=0;for(j=0;j<h;j++)m.dyn_dtree[j*2]=0;for(j=0;j<w;j++)m.bl_tree[j*2]=0;m.dyn_ltree[D*2]=1,m.opt_len=m.static_len=0,m.last_lit=m.matches=0}function Se(m){m.bi_valid>8?Ve(m,m.bi_buf):m.bi_valid>0&&(m.pending_buf[m.pending++]=m.bi_buf),m.bi_buf=0,m.bi_valid=0}function ke(m,j,le,Be){Se(m),Be&&(Ve(m,le),Ve(m,~le)),e.arraySet(m.pending_buf,m.window,j,le,m.pending),m.pending+=le}function De(m,j,le,Be){var ee=j*2,ue=le*2;return m[ee]<m[ue]||m[ee]===m[ue]&&Be[j]<=Be[le]}function $e(m,j,le){for(var Be=m.heap[le],ee=le<<1;ee<=m.heap_len&&(ee<m.heap_len&&De(j,m.heap[ee+1],m.heap[ee],m.depth)&&ee++,!De(j,Be,m.heap[ee],m.depth));)m.heap[le]=m.heap[ee],le=ee,ee<<=1;m.heap[le]=Be}function Me(m,j,le){var Be,ee,ue=0,I,Fe;if(m.last_lit!==0)do Be=m.pending_buf[m.d_buf+ue*2]<<8|m.pending_buf[m.d_buf+ue*2+1],ee=m.pending_buf[m.l_buf+ue],ue++,Be===0?A(m,ee,j):(I=Ne[ee],A(m,I+v+1,j),Fe=x[I],Fe!==0&&(ee-=ne[I],xe(m,ee,Fe)),Be--,I=Je(Be),A(m,I,le),Fe=G[I],Fe!==0&&(Be-=te[I],xe(m,Be,Fe)));while(ue<m.last_lit);A(m,D,j)}function ot(m,j){var le=j.dyn_tree,Be=j.stat_desc.static_tree,ee=j.stat_desc.has_stree,ue=j.stat_desc.elems,I,Fe,rt=-1,g;for(m.heap_len=0,m.heap_max=S,I=0;I<ue;I++)le[I*2]!==0?(m.heap[++m.heap_len]=rt=I,m.depth[I]=0):le[I*2+1]=0;for(;m.heap_len<2;)g=m.heap[++m.heap_len]=rt<2?++rt:0,le[g*2]=1,m.depth[g]=0,m.opt_len--,ee&&(m.static_len-=Be[g*2+1]);for(j.max_code=rt,I=m.heap_len>>1;I>=1;I--)$e(m,le,I);g=ue;do I=m.heap[1],m.heap[1]=m.heap[m.heap_len--],$e(m,le,1),Fe=m.heap[1],m.heap[--m.heap_max]=I,m.heap[--m.heap_max]=Fe,le[g*2]=le[I*2]+le[Fe*2],m.depth[g]=(m.depth[I]>=m.depth[Fe]?m.depth[I]:m.depth[Fe])+1,le[I*2+1]=le[Fe*2+1]=g,m.heap[1]=g++,$e(m,le,1);while(m.heap_len>=2);m.heap[--m.heap_max]=m.heap[1],fe(m,j),ge(le,rt,m.bl_count)}function nt(m,j,le){var Be,ee=-1,ue,I=j[0*2+1],Fe=0,rt=7,g=4;for(I===0&&(rt=138,g=3),j[(le+1)*2+1]=65535,Be=0;Be<=le;Be++)ue=I,I=j[(Be+1)*2+1],!(++Fe<rt&&ue===I)&&(Fe<g?m.bl_tree[ue*2]+=Fe:ue!==0?(ue!==ee&&m.bl_tree[ue*2]++,m.bl_tree[V*2]++):Fe<=10?m.bl_tree[F*2]++:m.bl_tree[N*2]++,Fe=0,ee=ue,I===0?(rt=138,g=3):ue===I?(rt=6,g=3):(rt=7,g=4))}function et(m,j,le){var Be,ee=-1,ue,I=j[0*2+1],Fe=0,rt=7,g=4;for(I===0&&(rt=138,g=3),Be=0;Be<=le;Be++)if(ue=I,I=j[(Be+1)*2+1],!(++Fe<rt&&ue===I)){if(Fe<g)do A(m,ue,m.bl_tree);while(--Fe!==0);else ue!==0?(ue!==ee&&(A(m,ue,m.bl_tree),Fe--),A(m,V,m.bl_tree),xe(m,Fe-3,2)):Fe<=10?(A(m,F,m.bl_tree),xe(m,Fe-3,3)):(A(m,N,m.bl_tree),xe(m,Fe-11,7));Fe=0,ee=ue,I===0?(rt=138,g=3):ue===I?(rt=6,g=3):(rt=7,g=4)}}function bt(m){var j;for(nt(m,m.dyn_ltree,m.l_desc.max_code),nt(m,m.dyn_dtree,m.d_desc.max_code),ot(m,m.bl_desc),j=w-1;j>=3&&m.bl_tree[Te[j]*2+1]===0;j--);return m.opt_len+=3*(j+1)+5+5+4,j}function Qt(m,j,le,Be){var ee;for(xe(m,j-257,5),xe(m,le-1,5),xe(m,Be-4,4),ee=0;ee<Be;ee++)xe(m,m.bl_tree[Te[ee]*2+1],3);et(m,m.dyn_ltree,j-1),et(m,m.dyn_dtree,le-1)}function gt(m){var j=4093624447,le;for(le=0;le<=31;le++,j>>>=1)if(j&1&&m.dyn_ltree[le*2]!==0)return r;if(m.dyn_ltree[9*2]!==0||m.dyn_ltree[10*2]!==0||m.dyn_ltree[13*2]!==0)return n;for(le=32;le<v;le++)if(m.dyn_ltree[le*2]!==0)return n;return r}var Ct=!1;function p(m){Ct||(k(),Ct=!0),m.l_desc=new je(m.dyn_ltree,me),m.d_desc=new je(m.dyn_dtree,Re),m.bl_desc=new je(m.bl_tree,ze),m.bi_buf=0,m.bi_valid=0,Z(m)}function s(m,j,le,Be){xe(m,(i<<1)+(Be?1:0),3),ke(m,j,le,!0)}function u(m){xe(m,f<<1,3),A(m,D,re),Y(m)}function b(m,j,le,Be){var ee,ue,I=0;m.level>0?(m.strm.data_type===o&&(m.strm.data_type=gt(m)),ot(m,m.l_desc),ot(m,m.d_desc),I=bt(m),ee=m.opt_len+3+7>>>3,ue=m.static_len+3+7>>>3,ue<=ee&&(ee=ue)):ee=ue=le+5,le+4<=ee&&j!==-1?s(m,j,le,Be):m.strategy===t||ue===ee?(xe(m,(f<<1)+(Be?1:0),3),Me(m,re,ae)):(xe(m,(l<<1)+(Be?1:0),3),Qt(m,m.l_desc.max_code+1,m.d_desc.max_code+1,I+1),Me(m,m.dyn_ltree,m.dyn_dtree)),Z(m),Be&&Se(m)}function L(m,j,le){return m.pending_buf[m.d_buf+m.last_lit*2]=j>>>8&255,m.pending_buf[m.d_buf+m.last_lit*2+1]=j&255,m.pending_buf[m.l_buf+m.last_lit]=le&255,m.last_lit++,j===0?m.dyn_ltree[le*2]++:(m.matches++,j--,m.dyn_ltree[(Ne[le]+v+1)*2]++,m.dyn_dtree[Je(j)*2]++),m.last_lit===m.lit_bufsize-1}return Ti._tr_init=p,Ti._tr_stored_block=s,Ti._tr_flush_block=b,Ti._tr_tally=L,Ti._tr_align=u,Ti}var Qc={},rb=!1;function hb(){if(rb)return Qc;rb=!0;function e(t,r,n,o){for(var a=t&65535|0,i=t>>>16&65535|0,f=0;n!==0;){f=n>2e3?2e3:n,n-=f;do a=a+r[o++]|0,i=i+a|0;while(--f);a%=65521,i%=65521}return a|i<<16|0}return Qc=e,Qc}var eh={},nb=!1;function pb(){if(nb)return eh;nb=!0;function e(){for(var n,o=[],a=0;a<256;a++){n=a;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;o[a]=n}return o}var t=e();function r(n,o,a,i){var f=t,l=i+a;n^=-1;for(var c=i;c<l;c++)n=n>>>8^f[(n^o[c])&255];return n^-1}return eh=r,eh}var th={},ib=!1;function WI(){return ib||(ib=!0,th={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"}),th}var Vr={},ob=!1;function HI(){if(ob)return Vr;ob=!0;var e=_u(),t=qI(),r=hb(),n=pb(),o=WI(),a=0,i=1,f=3,l=4,c=5,d=0,y=1,v=-2,_=-3,h=-5,w=-1,S=1,T=2,C=3,M=4,D=0,V=2,F=8,N=9,x=15,G=8,Q=29,Te=256,K=Te+1+Q,re=30,ae=19,Ce=2*K+1,Ne=15,ne=3,te=258,ye=te+ne+1,me=32,Re=42,ze=69,je=73,Je=91,Ve=103,xe=113,A=666,O=1,Y=2,fe=3,ge=4,k=3;function Z(g,we){return g.msg=o[we],we}function Se(g){return(g<<1)-(g>4?9:0)}function ke(g){for(var we=g.length;--we>=0;)g[we]=0}function De(g){var we=g.state,_e=we.pending;_e>g.avail_out&&(_e=g.avail_out),_e!==0&&(e.arraySet(g.output,we.pending_buf,we.pending_out,_e,g.next_out),g.next_out+=_e,we.pending_out+=_e,g.total_out+=_e,g.avail_out-=_e,we.pending-=_e,we.pending===0&&(we.pending_out=0))}function $e(g,we){t._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,we),g.block_start=g.strstart,De(g.strm)}function Me(g,we){g.pending_buf[g.pending++]=we}function ot(g,we){g.pending_buf[g.pending++]=we>>>8&255,g.pending_buf[g.pending++]=we&255}function nt(g,we,_e,U){var ie=g.avail_in;return ie>U&&(ie=U),ie===0?0:(g.avail_in-=ie,e.arraySet(we,g.input,g.next_in,ie,_e),g.state.wrap===1?g.adler=r(g.adler,we,ie,_e):g.state.wrap===2&&(g.adler=n(g.adler,we,ie,_e)),g.next_in+=ie,g.total_in+=ie,ie)}function et(g,we){var _e=g.max_chain_length,U=g.strstart,ie,ve,Ye=g.prev_length,Ae=g.nice_match,We=g.strstart>g.w_size-ye?g.strstart-(g.w_size-ye):0,ht=g.window,kr=g.w_mask,ut=g.prev,pt=g.strstart+te,Lt=ht[U+Ye-1],Nt=ht[U+Ye];g.prev_length>=g.good_match&&(_e>>=2),Ae>g.lookahead&&(Ae=g.lookahead);do if(ie=we,!(ht[ie+Ye]!==Nt||ht[ie+Ye-1]!==Lt||ht[ie]!==ht[U]||ht[++ie]!==ht[U+1])){U+=2,ie++;do;while(ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&ht[++U]===ht[++ie]&&U<pt);if(ve=te-(pt-U),U=pt-te,ve>Ye){if(g.match_start=we,Ye=ve,ve>=Ae)break;Lt=ht[U+Ye-1],Nt=ht[U+Ye]}}while((we=ut[we&kr])>We&&--_e!==0);return Ye<=g.lookahead?Ye:g.lookahead}function bt(g){var we=g.w_size,_e,U,ie,ve,Ye;do{if(ve=g.window_size-g.lookahead-g.strstart,g.strstart>=we+(we-ye)){e.arraySet(g.window,g.window,we,we,0),g.match_start-=we,g.strstart-=we,g.block_start-=we,U=g.hash_size,_e=U;do ie=g.head[--_e],g.head[_e]=ie>=we?ie-we:0;while(--U);U=we,_e=U;do ie=g.prev[--_e],g.prev[_e]=ie>=we?ie-we:0;while(--U);ve+=we}if(g.strm.avail_in===0)break;if(U=nt(g.strm,g.window,g.strstart+g.lookahead,ve),g.lookahead+=U,g.lookahead+g.insert>=ne)for(Ye=g.strstart-g.insert,g.ins_h=g.window[Ye],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ye+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ye+ne-1])&g.hash_mask,g.prev[Ye&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Ye,Ye++,g.insert--,!(g.lookahead+g.insert<ne)););}while(g.lookahead<ye&&g.strm.avail_in!==0)}function Qt(g,we){var _e=65535;for(_e>g.pending_buf_size-5&&(_e=g.pending_buf_size-5);;){if(g.lookahead<=1){if(bt(g),g.lookahead===0&&we===a)return O;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var U=g.block_start+_e;if((g.strstart===0||g.strstart>=U)&&(g.lookahead=g.strstart-U,g.strstart=U,$e(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-ye&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):(g.strstart>g.block_start&&($e(g,!1),g.strm.avail_out===0),O)}function gt(g,we){for(var _e,U;;){if(g.lookahead<ye){if(bt(g),g.lookahead<ye&&we===a)return O;if(g.lookahead===0)break}if(_e=0,g.lookahead>=ne&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),_e!==0&&g.strstart-_e<=g.w_size-ye&&(g.match_length=et(g,_e)),g.match_length>=ne)if(U=t._tr_tally(g,g.strstart-g.match_start,g.match_length-ne),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=ne){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else U=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(U&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=g.strstart<ne-1?g.strstart:ne-1,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function Ct(g,we){for(var _e,U,ie;;){if(g.lookahead<ye){if(bt(g),g.lookahead<ye&&we===a)return O;if(g.lookahead===0)break}if(_e=0,g.lookahead>=ne&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=ne-1,_e!==0&&g.prev_length<g.max_lazy_match&&g.strstart-_e<=g.w_size-ye&&(g.match_length=et(g,_e),g.match_length<=5&&(g.strategy===S||g.match_length===ne&&g.strstart-g.match_start>4096)&&(g.match_length=ne-1)),g.prev_length>=ne&&g.match_length<=g.prev_length){ie=g.strstart+g.lookahead-ne,U=t._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-ne),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=ie&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+ne-1])&g.hash_mask,_e=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);if(g.match_available=0,g.match_length=ne-1,g.strstart++,U&&($e(g,!1),g.strm.avail_out===0))return O}else if(g.match_available){if(U=t._tr_tally(g,0,g.window[g.strstart-1]),U&&$e(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return O}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(U=t._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<ne-1?g.strstart:ne-1,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function p(g,we){for(var _e,U,ie,ve,Ye=g.window;;){if(g.lookahead<=te){if(bt(g),g.lookahead<=te&&we===a)return O;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=ne&&g.strstart>0&&(ie=g.strstart-1,U=Ye[ie],U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie])){ve=g.strstart+te;do;while(U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&U===Ye[++ie]&&ie<ve);g.match_length=te-(ve-ie),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=ne?(_e=t._tr_tally(g,1,g.match_length-ne),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):(_e=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),_e&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function s(g,we){for(var _e;;){if(g.lookahead===0&&(bt(g),g.lookahead===0)){if(we===a)return O;break}if(g.match_length=0,_e=t._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,_e&&($e(g,!1),g.strm.avail_out===0))return O}return g.insert=0,we===l?($e(g,!0),g.strm.avail_out===0?fe:ge):g.last_lit&&($e(g,!1),g.strm.avail_out===0)?O:Y}function u(g,we,_e,U,ie){this.good_length=g,this.max_lazy=we,this.nice_length=_e,this.max_chain=U,this.func=ie}var b;b=[new u(0,0,0,0,Qt),new u(4,4,8,4,gt),new u(4,5,16,8,gt),new u(4,6,32,32,gt),new u(4,4,16,16,Ct),new u(8,16,32,32,Ct),new u(8,16,128,128,Ct),new u(8,32,128,256,Ct),new u(32,128,258,1024,Ct),new u(32,258,258,4096,Ct)];function L(g){g.window_size=2*g.w_size,ke(g.head),g.max_lazy_match=b[g.level].max_lazy,g.good_match=b[g.level].good_length,g.nice_match=b[g.level].nice_length,g.max_chain_length=b[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=ne-1,g.match_available=0,g.ins_h=0}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=F,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Ce*2),this.dyn_dtree=new e.Buf16((2*re+1)*2),this.bl_tree=new e.Buf16((2*ae+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Ne+1),this.heap=new e.Buf16(2*K+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*K+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(g){var we;return!g||!g.state?Z(g,v):(g.total_in=g.total_out=0,g.data_type=V,we=g.state,we.pending=0,we.pending_out=0,we.wrap<0&&(we.wrap=-we.wrap),we.status=we.wrap?Re:xe,g.adler=we.wrap===2?0:1,we.last_flush=a,t._tr_init(we),d)}function le(g){var we=j(g);return we===d&&L(g.state),we}function Be(g,we){return!g||!g.state||g.state.wrap!==2?v:(g.state.gzhead=we,d)}function ee(g,we,_e,U,ie,ve){if(!g)return v;var Ye=1;if(we===w&&(we=6),U<0?(Ye=0,U=-U):U>15&&(Ye=2,U-=16),ie<1||ie>N||_e!==F||U<8||U>15||we<0||we>9||ve<0||ve>M)return Z(g,v);U===8&&(U=9);var Ae=new m;return g.state=Ae,Ae.strm=g,Ae.wrap=Ye,Ae.gzhead=null,Ae.w_bits=U,Ae.w_size=1<<Ae.w_bits,Ae.w_mask=Ae.w_size-1,Ae.hash_bits=ie+7,Ae.hash_size=1<<Ae.hash_bits,Ae.hash_mask=Ae.hash_size-1,Ae.hash_shift=~~((Ae.hash_bits+ne-1)/ne),Ae.window=new e.Buf8(Ae.w_size*2),Ae.head=new e.Buf16(Ae.hash_size),Ae.prev=new e.Buf16(Ae.w_size),Ae.lit_bufsize=1<<ie+6,Ae.pending_buf_size=Ae.lit_bufsize*4,Ae.pending_buf=new e.Buf8(Ae.pending_buf_size),Ae.d_buf=1*Ae.lit_bufsize,Ae.l_buf=(1+2)*Ae.lit_bufsize,Ae.level=we,Ae.strategy=ve,Ae.method=_e,le(g)}function ue(g,we){return ee(g,we,F,x,G,D)}function I(g,we){var _e,U,ie,ve;if(!g||!g.state||we>c||we<0)return g?Z(g,v):v;if(U=g.state,!g.output||!g.input&&g.avail_in!==0||U.status===A&&we!==l)return Z(g,g.avail_out===0?h:v);if(U.strm=g,_e=U.last_flush,U.last_flush=we,U.status===Re)if(U.wrap===2)g.adler=0,Me(U,31),Me(U,139),Me(U,8),U.gzhead?(Me(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),Me(U,U.gzhead.time&255),Me(U,U.gzhead.time>>8&255),Me(U,U.gzhead.time>>16&255),Me(U,U.gzhead.time>>24&255),Me(U,U.level===9?2:U.strategy>=T||U.level<2?4:0),Me(U,U.gzhead.os&255),U.gzhead.extra&&U.gzhead.extra.length&&(Me(U,U.gzhead.extra.length&255),Me(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(g.adler=n(g.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=ze):(Me(U,0),Me(U,0),Me(U,0),Me(U,0),Me(U,0),Me(U,U.level===9?2:U.strategy>=T||U.level<2?4:0),Me(U,k),U.status=xe);else{var Ye=F+(U.w_bits-8<<4)<<8,Ae=-1;U.strategy>=T||U.level<2?Ae=0:U.level<6?Ae=1:U.level===6?Ae=2:Ae=3,Ye|=Ae<<6,U.strstart!==0&&(Ye|=me),Ye+=31-Ye%31,U.status=xe,ot(U,Ye),U.strstart!==0&&(ot(U,g.adler>>>16),ot(U,g.adler&65535)),g.adler=1}if(U.status===ze)if(U.gzhead.extra){for(ie=U.pending;U.gzindex<(U.gzhead.extra.length&65535)&&!(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size));)Me(U,U.gzhead.extra[U.gzindex]&255),U.gzindex++;U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),U.gzindex===U.gzhead.extra.length&&(U.gzindex=0,U.status=je)}else U.status=je;if(U.status===je)if(U.gzhead.name){ie=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size)){ve=1;break}U.gzindex<U.gzhead.name.length?ve=U.gzhead.name.charCodeAt(U.gzindex++)&255:ve=0,Me(U,ve)}while(ve!==0);U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),ve===0&&(U.gzindex=0,U.status=Je)}else U.status=Je;if(U.status===Je)if(U.gzhead.comment){ie=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),De(g),ie=U.pending,U.pending===U.pending_buf_size)){ve=1;break}U.gzindex<U.gzhead.comment.length?ve=U.gzhead.comment.charCodeAt(U.gzindex++)&255:ve=0,Me(U,ve)}while(ve!==0);U.gzhead.hcrc&&U.pending>ie&&(g.adler=n(g.adler,U.pending_buf,U.pending-ie,ie)),ve===0&&(U.status=Ve)}else U.status=Ve;if(U.status===Ve&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&De(g),U.pending+2<=U.pending_buf_size&&(Me(U,g.adler&255),Me(U,g.adler>>8&255),g.adler=0,U.status=xe)):U.status=xe),U.pending!==0){if(De(g),g.avail_out===0)return U.last_flush=-1,d}else if(g.avail_in===0&&Se(we)<=Se(_e)&&we!==l)return Z(g,h);if(U.status===A&&g.avail_in!==0)return Z(g,h);if(g.avail_in!==0||U.lookahead!==0||we!==a&&U.status!==A){var We=U.strategy===T?s(U,we):U.strategy===C?p(U,we):b[U.level].func(U,we);if((We===fe||We===ge)&&(U.status=A),We===O||We===fe)return g.avail_out===0&&(U.last_flush=-1),d;if(We===Y&&(we===i?t._tr_align(U):we!==c&&(t._tr_stored_block(U,0,0,!1),we===f&&(ke(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),De(g),g.avail_out===0))return U.last_flush=-1,d}return we!==l?d:U.wrap<=0?y:(U.wrap===2?(Me(U,g.adler&255),Me(U,g.adler>>8&255),Me(U,g.adler>>16&255),Me(U,g.adler>>24&255),Me(U,g.total_in&255),Me(U,g.total_in>>8&255),Me(U,g.total_in>>16&255),Me(U,g.total_in>>24&255)):(ot(U,g.adler>>>16),ot(U,g.adler&65535)),De(g),U.wrap>0&&(U.wrap=-U.wrap),U.pending!==0?d:y)}function Fe(g){var we;return!g||!g.state?v:(we=g.state.status,we!==Re&&we!==ze&&we!==je&&we!==Je&&we!==Ve&&we!==xe&&we!==A?Z(g,v):(g.state=null,we===xe?Z(g,_):d))}function rt(g,we){var _e=we.length,U,ie,ve,Ye,Ae,We,ht,kr;if(!g||!g.state||(U=g.state,Ye=U.wrap,Ye===2||Ye===1&&U.status!==Re||U.lookahead))return v;for(Ye===1&&(g.adler=r(g.adler,we,_e,0)),U.wrap=0,_e>=U.w_size&&(Ye===0&&(ke(U.head),U.strstart=0,U.block_start=0,U.insert=0),kr=new e.Buf8(U.w_size),e.arraySet(kr,we,_e-U.w_size,U.w_size,0),we=kr,_e=U.w_size),Ae=g.avail_in,We=g.next_in,ht=g.input,g.avail_in=_e,g.next_in=0,g.input=we,bt(U);U.lookahead>=ne;){ie=U.strstart,ve=U.lookahead-(ne-1);do U.ins_h=(U.ins_h<<U.hash_shift^U.window[ie+ne-1])&U.hash_mask,U.prev[ie&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=ie,ie++;while(--ve);U.strstart=ie,U.lookahead=ne-1,bt(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=ne-1,U.match_available=0,g.next_in=We,g.input=ht,g.avail_in=Ae,U.wrap=Ye,d}return Vr.deflateInit=ue,Vr.deflateInit2=ee,Vr.deflateReset=le,Vr.deflateResetKeep=j,Vr.deflateSetHeader=Be,Vr.deflate=I,Vr.deflateEnd=Fe,Vr.deflateSetDictionary=rt,Vr.deflateInfo="pako deflate (from Nodeca project)",Vr}var rh={},ab=!1;function ZI(){if(ab)return rh;ab=!0;var e=30,t=12;return rh=function(n,o){var a,i,f,l,c,d,y,v,_,h,w,S,T,C,M,D,V,F,N,x,G,Q,Te,K,re;a=n.state,i=n.next_in,K=n.input,f=i+(n.avail_in-5),l=n.next_out,re=n.output,c=l-(o-n.avail_out),d=l+(n.avail_out-257),y=a.dmax,v=a.wsize,_=a.whave,h=a.wnext,w=a.window,S=a.hold,T=a.bits,C=a.lencode,M=a.distcode,D=(1<<a.lenbits)-1,V=(1<<a.distbits)-1;e:do{T<15&&(S+=K[i++]<<T,T+=8,S+=K[i++]<<T,T+=8),F=C[S&D];t:for(;;){if(N=F>>>24,S>>>=N,T-=N,N=F>>>16&255,N===0)re[l++]=F&65535;else if(N&16){x=F&65535,N&=15,N&&(T<N&&(S+=K[i++]<<T,T+=8),x+=S&(1<<N)-1,S>>>=N,T-=N),T<15&&(S+=K[i++]<<T,T+=8,S+=K[i++]<<T,T+=8),F=M[S&V];r:for(;;){if(N=F>>>24,S>>>=N,T-=N,N=F>>>16&255,N&16){if(G=F&65535,N&=15,T<N&&(S+=K[i++]<<T,T+=8,T<N&&(S+=K[i++]<<T,T+=8)),G+=S&(1<<N)-1,G>y){n.msg="invalid distance too far back",a.mode=e;break e}if(S>>>=N,T-=N,N=l-c,G>N){if(N=G-N,N>_&&a.sane){n.msg="invalid distance too far back",a.mode=e;break e}if(Q=0,Te=w,h===0){if(Q+=v-N,N<x){x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}}else if(h<N){if(Q+=v+h-N,N-=h,N<x){x-=N;do re[l++]=w[Q++];while(--N);if(Q=0,h<x){N=h,x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}}}else if(Q+=h-N,N<x){x-=N;do re[l++]=w[Q++];while(--N);Q=l-G,Te=re}for(;x>2;)re[l++]=Te[Q++],re[l++]=Te[Q++],re[l++]=Te[Q++],x-=3;x&&(re[l++]=Te[Q++],x>1&&(re[l++]=Te[Q++]))}else{Q=l-G;do re[l++]=re[Q++],re[l++]=re[Q++],re[l++]=re[Q++],x-=3;while(x>2);x&&(re[l++]=re[Q++],x>1&&(re[l++]=re[Q++]))}}else if(N&64){n.msg="invalid distance code",a.mode=e;break e}else{F=M[(F&65535)+(S&(1<<N)-1)];continue r}break}}else if(N&64)if(N&32){a.mode=t;break e}else{n.msg="invalid literal/length code",a.mode=e;break e}else{F=C[(F&65535)+(S&(1<<N)-1)];continue t}break}}while(i<f&&l<d);x=T>>3,i-=x,T-=x<<3,S&=(1<<T)-1,n.next_in=i,n.next_out=l,n.avail_in=i<f?5+(f-i):5-(i-f),n.avail_out=l<d?257+(d-l):257-(l-d),a.hold=S,a.bits=T},rh}var nh={},sb=!1;function VI(){if(sb)return nh;sb=!0;var e=_u(),t=15,r=852,n=592,o=0,a=1,i=2,f=[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],l=[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],c=[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],d=[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];return nh=function(v,_,h,w,S,T,C,M){var D=M.bits,V=0,F=0,N=0,x=0,G=0,Q=0,Te=0,K=0,re=0,ae=0,Ce,Ne,ne,te,ye,me=null,Re=0,ze,je=new e.Buf16(t+1),Je=new e.Buf16(t+1),Ve=null,xe=0,A,O,Y;for(V=0;V<=t;V++)je[V]=0;for(F=0;F<w;F++)je[_[h+F]]++;for(G=D,x=t;x>=1&&je[x]===0;x--);if(G>x&&(G=x),x===0)return S[T++]=1<<24|64<<16|0,S[T++]=1<<24|64<<16|0,M.bits=1,0;for(N=1;N<x&&je[N]===0;N++);for(G<N&&(G=N),K=1,V=1;V<=t;V++)if(K<<=1,K-=je[V],K<0)return-1;if(K>0&&(v===o||x!==1))return-1;for(Je[1]=0,V=1;V<t;V++)Je[V+1]=Je[V]+je[V];for(F=0;F<w;F++)_[h+F]!==0&&(C[Je[_[h+F]]++]=F);if(v===o?(me=Ve=C,ze=19):v===a?(me=f,Re-=257,Ve=l,xe-=257,ze=256):(me=c,Ve=d,ze=-1),ae=0,F=0,V=N,ye=T,Q=G,Te=0,ne=-1,re=1<<G,te=re-1,v===a&&re>r||v===i&&re>n)return 1;for(;;){A=V-Te,C[F]<ze?(O=0,Y=C[F]):C[F]>ze?(O=Ve[xe+C[F]],Y=me[Re+C[F]]):(O=32+64,Y=0),Ce=1<<V-Te,Ne=1<<Q,N=Ne;do Ne-=Ce,S[ye+(ae>>Te)+Ne]=A<<24|O<<16|Y|0;while(Ne!==0);for(Ce=1<<V-1;ae&Ce;)Ce>>=1;if(Ce!==0?(ae&=Ce-1,ae+=Ce):ae=0,F++,--je[V]===0){if(V===x)break;V=_[h+C[F]]}if(V>G&&(ae&te)!==ne){for(Te===0&&(Te=G),ye+=N,Q=V-Te,K=1<<Q;Q+Te<x&&(K-=je[Q+Te],!(K<=0));)Q++,K<<=1;if(re+=1<<Q,v===a&&re>r||v===i&&re>n)return 1;ne=ae&te,S[ne]=G<<24|Q<<16|ye-T|0}}return ae!==0&&(S[ye+ae]=V-Te<<24|64<<16|0),M.bits=G,0},nh}var Nr={},ub=!1;function GI(){if(ub)return Nr;ub=!0;var e=_u(),t=hb(),r=pb(),n=ZI(),o=VI(),a=0,i=1,f=2,l=4,c=5,d=6,y=0,v=1,_=2,h=-2,w=-3,S=-4,T=-5,C=8,M=1,D=2,V=3,F=4,N=5,x=6,G=7,Q=8,Te=9,K=10,re=11,ae=12,Ce=13,Ne=14,ne=15,te=16,ye=17,me=18,Re=19,ze=20,je=21,Je=22,Ve=23,xe=24,A=25,O=26,Y=27,fe=28,ge=29,k=30,Z=31,Se=32,ke=852,De=592,$e=15,Me=$e;function ot(ee){return(ee>>>24&255)+(ee>>>8&65280)+((ee&65280)<<8)+((ee&255)<<24)}function nt(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function et(ee){var ue;return!ee||!ee.state?h:(ue=ee.state,ee.total_in=ee.total_out=ue.total=0,ee.msg="",ue.wrap&&(ee.adler=ue.wrap&1),ue.mode=M,ue.last=0,ue.havedict=0,ue.dmax=32768,ue.head=null,ue.hold=0,ue.bits=0,ue.lencode=ue.lendyn=new e.Buf32(ke),ue.distcode=ue.distdyn=new e.Buf32(De),ue.sane=1,ue.back=-1,y)}function bt(ee){var ue;return!ee||!ee.state?h:(ue=ee.state,ue.wsize=0,ue.whave=0,ue.wnext=0,et(ee))}function Qt(ee,ue){var I,Fe;return!ee||!ee.state||(Fe=ee.state,ue<0?(I=0,ue=-ue):(I=(ue>>4)+1,ue<48&&(ue&=15)),ue&&(ue<8||ue>15))?h:(Fe.window!==null&&Fe.wbits!==ue&&(Fe.window=null),Fe.wrap=I,Fe.wbits=ue,bt(ee))}function gt(ee,ue){var I,Fe;return ee?(Fe=new nt,ee.state=Fe,Fe.window=null,I=Qt(ee,ue),I!==y&&(ee.state=null),I):h}function Ct(ee){return gt(ee,Me)}var p=!0,s,u;function b(ee){if(p){var ue;for(s=new e.Buf32(512),u=new e.Buf32(32),ue=0;ue<144;)ee.lens[ue++]=8;for(;ue<256;)ee.lens[ue++]=9;for(;ue<280;)ee.lens[ue++]=7;for(;ue<288;)ee.lens[ue++]=8;for(o(i,ee.lens,0,288,s,0,ee.work,{bits:9}),ue=0;ue<32;)ee.lens[ue++]=5;o(f,ee.lens,0,32,u,0,ee.work,{bits:5}),p=!1}ee.lencode=s,ee.lenbits=9,ee.distcode=u,ee.distbits=5}function L(ee,ue,I,Fe){var rt,g=ee.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new e.Buf8(g.wsize)),Fe>=g.wsize?(e.arraySet(g.window,ue,I-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(rt=g.wsize-g.wnext,rt>Fe&&(rt=Fe),e.arraySet(g.window,ue,I-Fe,rt,g.wnext),Fe-=rt,Fe?(e.arraySet(g.window,ue,I-Fe,Fe,0),g.wnext=Fe,g.whave=g.wsize):(g.wnext+=rt,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=rt))),0}function m(ee,ue){var I,Fe,rt,g,we,_e,U,ie,ve,Ye,Ae,We,ht,kr,ut=0,pt,Lt,Nt,Yt,Nn,Ci,mt,Ut,xt=new e.Buf8(4),Dt,Kt,pn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return h;I=ee.state,I.mode===ae&&(I.mode=Ce),we=ee.next_out,rt=ee.output,U=ee.avail_out,g=ee.next_in,Fe=ee.input,_e=ee.avail_in,ie=I.hold,ve=I.bits,Ye=_e,Ae=U,Ut=y;e:for(;;)switch(I.mode){case M:if(I.wrap===0){I.mode=Ce;break}for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.wrap&2&&ie===35615){I.check=0,xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0),ie=0,ve=0,I.mode=D;break}if(I.flags=0,I.head&&(I.head.done=!1),!(I.wrap&1)||(((ie&255)<<8)+(ie>>8))%31){ee.msg="incorrect header check",I.mode=k;break}if((ie&15)!==C){ee.msg="unknown compression method",I.mode=k;break}if(ie>>>=4,ve-=4,mt=(ie&15)+8,I.wbits===0)I.wbits=mt;else if(mt>I.wbits){ee.msg="invalid window size",I.mode=k;break}I.dmax=1<<mt,ee.adler=I.check=1,I.mode=ie&512?K:ae,ie=0,ve=0;break;case D:for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.flags=ie,(I.flags&255)!==C){ee.msg="unknown compression method",I.mode=k;break}if(I.flags&57344){ee.msg="unknown header flags set",I.mode=k;break}I.head&&(I.head.text=ie>>8&1),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0,I.mode=V;case V:for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.head&&(I.head.time=ie),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,xt[2]=ie>>>16&255,xt[3]=ie>>>24&255,I.check=r(I.check,xt,4,0)),ie=0,ve=0,I.mode=F;case F:for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.head&&(I.head.xflags=ie&255,I.head.os=ie>>8),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0,I.mode=N;case N:if(I.flags&1024){for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.length=ie,I.head&&(I.head.extra_len=ie),I.flags&512&&(xt[0]=ie&255,xt[1]=ie>>>8&255,I.check=r(I.check,xt,2,0)),ie=0,ve=0}else I.head&&(I.head.extra=null);I.mode=x;case x:if(I.flags&1024&&(We=I.length,We>_e&&(We=_e),We&&(I.head&&(mt=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Array(I.head.extra_len)),e.arraySet(I.head.extra,Fe,g,We,mt)),I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,I.length-=We),I.length))break e;I.length=0,I.mode=G;case G:if(I.flags&2048){if(_e===0)break e;We=0;do mt=Fe[g+We++],I.head&&mt&&I.length<65536&&(I.head.name+=String.fromCharCode(mt));while(mt&&We<_e);if(I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,mt)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=Q;case Q:if(I.flags&4096){if(_e===0)break e;We=0;do mt=Fe[g+We++],I.head&&mt&&I.length<65536&&(I.head.comment+=String.fromCharCode(mt));while(mt&&We<_e);if(I.flags&512&&(I.check=r(I.check,Fe,We,g)),_e-=We,g+=We,mt)break e}else I.head&&(I.head.comment=null);I.mode=Te;case Te:if(I.flags&512){for(;ve<16;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie!==(I.check&65535)){ee.msg="header crc mismatch",I.mode=k;break}ie=0,ve=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),ee.adler=I.check=0,I.mode=ae;break;case K:for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ee.adler=I.check=ot(ie),ie=0,ve=0,I.mode=re;case re:if(I.havedict===0)return ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,_;ee.adler=I.check=1,I.mode=ae;case ae:if(ue===c||ue===d)break e;case Ce:if(I.last){ie>>>=ve&7,ve-=ve&7,I.mode=Y;break}for(;ve<3;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}switch(I.last=ie&1,ie>>>=1,ve-=1,ie&3){case 0:I.mode=Ne;break;case 1:if(b(I),I.mode=ze,ue===d){ie>>>=2,ve-=2;break e}break;case 2:I.mode=ye;break;case 3:ee.msg="invalid block type",I.mode=k}ie>>>=2,ve-=2;break;case Ne:for(ie>>>=ve&7,ve-=ve&7;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if((ie&65535)!==(ie>>>16^65535)){ee.msg="invalid stored block lengths",I.mode=k;break}if(I.length=ie&65535,ie=0,ve=0,I.mode=ne,ue===d)break e;case ne:I.mode=te;case te:if(We=I.length,We){if(We>_e&&(We=_e),We>U&&(We=U),We===0)break e;e.arraySet(rt,Fe,g,We,we),_e-=We,g+=We,U-=We,we+=We,I.length-=We;break}I.mode=ae;break;case ye:for(;ve<14;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(I.nlen=(ie&31)+257,ie>>>=5,ve-=5,I.ndist=(ie&31)+1,ie>>>=5,ve-=5,I.ncode=(ie&15)+4,ie>>>=4,ve-=4,I.nlen>286||I.ndist>30){ee.msg="too many length or distance symbols",I.mode=k;break}I.have=0,I.mode=me;case me:for(;I.have<I.ncode;){for(;ve<3;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.lens[pn[I.have++]]=ie&7,ie>>>=3,ve-=3}for(;I.have<19;)I.lens[pn[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,Dt={bits:I.lenbits},Ut=o(a,I.lens,0,19,I.lencode,0,I.work,Dt),I.lenbits=Dt.bits,Ut){ee.msg="invalid code lengths set",I.mode=k;break}I.have=0,I.mode=Re;case Re:for(;I.have<I.nlen+I.ndist;){for(;ut=I.lencode[ie&(1<<I.lenbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(Nt<16)ie>>>=pt,ve-=pt,I.lens[I.have++]=Nt;else{if(Nt===16){for(Kt=pt+2;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie>>>=pt,ve-=pt,I.have===0){ee.msg="invalid bit length repeat",I.mode=k;break}mt=I.lens[I.have-1],We=3+(ie&3),ie>>>=2,ve-=2}else if(Nt===17){for(Kt=pt+3;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=pt,ve-=pt,mt=0,We=3+(ie&7),ie>>>=3,ve-=3}else{for(Kt=pt+7;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=pt,ve-=pt,mt=0,We=11+(ie&127),ie>>>=7,ve-=7}if(I.have+We>I.nlen+I.ndist){ee.msg="invalid bit length repeat",I.mode=k;break}for(;We--;)I.lens[I.have++]=mt}}if(I.mode===k)break;if(I.lens[256]===0){ee.msg="invalid code -- missing end-of-block",I.mode=k;break}if(I.lenbits=9,Dt={bits:I.lenbits},Ut=o(i,I.lens,0,I.nlen,I.lencode,0,I.work,Dt),I.lenbits=Dt.bits,Ut){ee.msg="invalid literal/lengths set",I.mode=k;break}if(I.distbits=6,I.distcode=I.distdyn,Dt={bits:I.distbits},Ut=o(f,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,Dt),I.distbits=Dt.bits,Ut){ee.msg="invalid distances set",I.mode=k;break}if(I.mode=ze,ue===d)break e;case ze:I.mode=je;case je:if(_e>=6&&U>=258){ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,n(ee,Ae),we=ee.next_out,rt=ee.output,U=ee.avail_out,g=ee.next_in,Fe=ee.input,_e=ee.avail_in,ie=I.hold,ve=I.bits,I.mode===ae&&(I.back=-1);break}for(I.back=0;ut=I.lencode[ie&(1<<I.lenbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(Lt&&!(Lt&240)){for(Yt=pt,Nn=Lt,Ci=Nt;ut=I.lencode[Ci+((ie&(1<<Yt+Nn)-1)>>Yt)],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(Yt+pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=Yt,ve-=Yt,I.back+=Yt}if(ie>>>=pt,ve-=pt,I.back+=pt,I.length=Nt,Lt===0){I.mode=O;break}if(Lt&32){I.back=-1,I.mode=ae;break}if(Lt&64){ee.msg="invalid literal/length code",I.mode=k;break}I.extra=Lt&15,I.mode=Je;case Je:if(I.extra){for(Kt=I.extra;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.length+=ie&(1<<I.extra)-1,ie>>>=I.extra,ve-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=Ve;case Ve:for(;ut=I.distcode[ie&(1<<I.distbits)-1],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(!(Lt&240)){for(Yt=pt,Nn=Lt,Ci=Nt;ut=I.distcode[Ci+((ie&(1<<Yt+Nn)-1)>>Yt)],pt=ut>>>24,Lt=ut>>>16&255,Nt=ut&65535,!(Yt+pt<=ve);){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}ie>>>=Yt,ve-=Yt,I.back+=Yt}if(ie>>>=pt,ve-=pt,I.back+=pt,Lt&64){ee.msg="invalid distance code",I.mode=k;break}I.offset=Nt,I.extra=Lt&15,I.mode=xe;case xe:if(I.extra){for(Kt=I.extra;ve<Kt;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}I.offset+=ie&(1<<I.extra)-1,ie>>>=I.extra,ve-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){ee.msg="invalid distance too far back",I.mode=k;break}I.mode=A;case A:if(U===0)break e;if(We=Ae-U,I.offset>We){if(We=I.offset-We,We>I.whave&&I.sane){ee.msg="invalid distance too far back",I.mode=k;break}We>I.wnext?(We-=I.wnext,ht=I.wsize-We):ht=I.wnext-We,We>I.length&&(We=I.length),kr=I.window}else kr=rt,ht=we-I.offset,We=I.length;We>U&&(We=U),U-=We,I.length-=We;do rt[we++]=kr[ht++];while(--We);I.length===0&&(I.mode=je);break;case O:if(U===0)break e;rt[we++]=I.length,U--,I.mode=je;break;case Y:if(I.wrap){for(;ve<32;){if(_e===0)break e;_e--,ie|=Fe[g++]<<ve,ve+=8}if(Ae-=U,ee.total_out+=Ae,I.total+=Ae,Ae&&(ee.adler=I.check=I.flags?r(I.check,rt,Ae,we-Ae):t(I.check,rt,Ae,we-Ae)),Ae=U,(I.flags?ie:ot(ie))!==I.check){ee.msg="incorrect data check",I.mode=k;break}ie=0,ve=0}I.mode=fe;case fe:if(I.wrap&&I.flags){for(;ve<32;){if(_e===0)break e;_e--,ie+=Fe[g++]<<ve,ve+=8}if(ie!==(I.total&4294967295)){ee.msg="incorrect length check",I.mode=k;break}ie=0,ve=0}I.mode=ge;case ge:Ut=v;break e;case k:Ut=w;break e;case Z:return S;case Se:default:return h}return ee.next_out=we,ee.avail_out=U,ee.next_in=g,ee.avail_in=_e,I.hold=ie,I.bits=ve,(I.wsize||Ae!==ee.avail_out&&I.mode<k&&(I.mode<Y||ue!==l))&&L(ee,ee.output,ee.next_out,Ae-ee.avail_out),Ye-=ee.avail_in,Ae-=ee.avail_out,ee.total_in+=Ye,ee.total_out+=Ae,I.total+=Ae,I.wrap&&Ae&&(ee.adler=I.check=I.flags?r(I.check,rt,Ae,ee.next_out-Ae):t(I.check,rt,Ae,ee.next_out-Ae)),ee.data_type=I.bits+(I.last?64:0)+(I.mode===ae?128:0)+(I.mode===ze||I.mode===ne?256:0),(Ye===0&&Ae===0||ue===l)&&Ut===y&&(Ut=T),Ut}function j(ee){if(!ee||!ee.state)return h;var ue=ee.state;return ue.window&&(ue.window=null),ee.state=null,y}function le(ee,ue){var I;return!ee||!ee.state||(I=ee.state,!(I.wrap&2))?h:(I.head=ue,ue.done=!1,y)}function Be(ee,ue){var I=ue.length,Fe,rt,g;return!ee||!ee.state||(Fe=ee.state,Fe.wrap!==0&&Fe.mode!==re)?h:Fe.mode===re&&(rt=1,rt=t(rt,ue,I,0),rt!==Fe.check)?w:(g=L(ee,ue,I,I),g?(Fe.mode=Z,S):(Fe.havedict=1,y))}return Nr.inflateReset=bt,Nr.inflateReset2=Qt,Nr.inflateResetKeep=et,Nr.inflateInit=Ct,Nr.inflateInit2=gt,Nr.inflate=m,Nr.inflateEnd=j,Nr.inflateGetHeader=le,Nr.inflateSetDictionary=Be,Nr.inflateInfo="pako inflate (from Nodeca project)",Nr}var ih={},fb=!1;function YI(){return fb||(fb=!0,ih={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}),ih}var qe={},lb=!1;function KI(){if(lb)return qe;lb=!0;var e=Br.Buffer,t=lt,r=Qe,n=zI(),o=HI(),a=GI(),i=YI();for(var f in i)qe[f]=i[f];qe.NONE=0,qe.DEFLATE=1,qe.INFLATE=2,qe.GZIP=3,qe.GUNZIP=4,qe.DEFLATERAW=5,qe.INFLATERAW=6,qe.UNZIP=7;var l=31,c=139;function d(y){if(typeof y!="number"||y<qe.DEFLATE||y>qe.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=y,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}return d.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,r(this.init_done,"close before init"),r(this.mode<=qe.UNZIP),this.mode===qe.DEFLATE||this.mode===qe.GZIP||this.mode===qe.DEFLATERAW?o.deflateEnd(this.strm):(this.mode===qe.INFLATE||this.mode===qe.GUNZIP||this.mode===qe.INFLATERAW||this.mode===qe.UNZIP)&&a.inflateEnd(this.strm),this.mode=qe.NONE,this.dictionary=null},d.prototype.write=function(y,v,_,h,w,S,T){return this._write(!0,y,v,_,h,w,S,T)},d.prototype.writeSync=function(y,v,_,h,w,S,T){return this._write(!1,y,v,_,h,w,S,T)},d.prototype._write=function(y,v,_,h,w,S,T,C){if(r.equal(arguments.length,8),r(this.init_done,"write before init"),r(this.mode!==qe.NONE,"already finalized"),r.equal(!1,this.write_in_progress,"write already in progress"),r.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,r.equal(!1,v===void 0,"must provide flush value"),this.write_in_progress=!0,v!==qe.Z_NO_FLUSH&&v!==qe.Z_PARTIAL_FLUSH&&v!==qe.Z_SYNC_FLUSH&&v!==qe.Z_FULL_FLUSH&&v!==qe.Z_FINISH&&v!==qe.Z_BLOCK)throw new Error("Invalid flush value");if(_==null&&(_=e.alloc(0),w=0,h=0),this.strm.avail_in=w,this.strm.input=_,this.strm.next_in=h,this.strm.avail_out=C,this.strm.output=S,this.strm.next_out=T,this.flush=v,!y)return this._process(),this._checkError()?this._afterSync():void 0;var M=this;return t.nextTick(function(){M._process(),M._after()}),this},d.prototype._afterSync=function(){var y=this.strm.avail_out,v=this.strm.avail_in;return this.write_in_progress=!1,[v,y]},d.prototype._process=function(){var y=null;switch(this.mode){case qe.DEFLATE:case qe.GZIP:case qe.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case qe.UNZIP:switch(this.strm.avail_in>0&&(y=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(y===null)break;if(this.strm.input[y]===l){if(this.gzip_id_bytes_read=1,y++,this.strm.avail_in===1)break}else{this.mode=qe.INFLATE;break}case 1:if(y===null)break;this.strm.input[y]===c?(this.gzip_id_bytes_read=2,this.mode=qe.GUNZIP):this.mode=qe.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case qe.INFLATE:case qe.GUNZIP:case qe.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===qe.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===qe.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===qe.Z_DATA_ERROR&&(this.err=qe.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===qe.GUNZIP&&this.err===qe.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},d.prototype._checkError=function(){switch(this.err){case qe.Z_OK:case qe.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===qe.Z_FINISH)return this._error("unexpected end of file"),!1;break;case qe.Z_STREAM_END:break;case qe.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},d.prototype._after=function(){if(this._checkError()){var y=this.strm.avail_out,v=this.strm.avail_in;this.write_in_progress=!1,this.callback(v,y),this.pending_close&&this.close()}},d.prototype._error=function(y){this.strm.msg&&(y=this.strm.msg),this.onerror(y,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},d.prototype.init=function(y,v,_,h,w){r(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),r(y>=8&&y<=15,"invalid windowBits"),r(v>=-1&&v<=9,"invalid compression level"),r(_>=1&&_<=9,"invalid memlevel"),r(h===qe.Z_FILTERED||h===qe.Z_HUFFMAN_ONLY||h===qe.Z_RLE||h===qe.Z_FIXED||h===qe.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(v,y,_,h,w),this._setDictionary()},d.prototype.params=function(){throw new Error("deflateParams Not supported")},d.prototype.reset=function(){this._reset(),this._setDictionary()},d.prototype._init=function(y,v,_,h,w){switch(this.level=y,this.windowBits=v,this.memLevel=_,this.strategy=h,this.flush=qe.Z_NO_FLUSH,this.err=qe.Z_OK,(this.mode===qe.GZIP||this.mode===qe.GUNZIP)&&(this.windowBits+=16),this.mode===qe.UNZIP&&(this.windowBits+=32),(this.mode===qe.DEFLATERAW||this.mode===qe.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new n,this.mode){case qe.DEFLATE:case qe.GZIP:case qe.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,qe.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case qe.INFLATE:case qe.GUNZIP:case qe.INFLATERAW:case qe.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==qe.Z_OK&&this._error("Init error"),this.dictionary=w,this.write_in_progress=!1,this.init_done=!0},d.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=qe.Z_OK,this.mode){case qe.DEFLATE:case qe.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==qe.Z_OK&&this._error("Failed to set dictionary")}},d.prototype._reset=function(){switch(this.err=qe.Z_OK,this.mode){case qe.DEFLATE:case qe.DEFLATERAW:case qe.GZIP:this.err=o.deflateReset(this.strm);break;case qe.INFLATE:case qe.INFLATERAW:case qe.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==qe.Z_OK&&this._error("Failed to reset stream")},qe.Zlib=d,qe}var Xe={},cb=!1;function XI(){if(cb)return Xe;cb=!0;var e=lt,t=Br.Buffer,r=ir.Transform,n=KI(),o=Oe,a=Qe.ok,i=Br.kMaxLength,f="Cannot create final Buffer. It would be larger than 0x"+i.toString(16)+" bytes";n.Z_MIN_WINDOWBITS=8,n.Z_MAX_WINDOWBITS=15,n.Z_DEFAULT_WINDOWBITS=15,n.Z_MIN_CHUNK=64,n.Z_MAX_CHUNK=1/0,n.Z_DEFAULT_CHUNK=16*1024,n.Z_MIN_MEMLEVEL=1,n.Z_MAX_MEMLEVEL=9,n.Z_DEFAULT_MEMLEVEL=8,n.Z_MIN_LEVEL=-1,n.Z_MAX_LEVEL=9,n.Z_DEFAULT_LEVEL=n.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(n),c=0;c<l.length;c++){var d=l[c];d.match(/^Z/)&&Object.defineProperty(Xe,d,{enumerable:!0,value:n[d],writable:!1})}for(var y={Z_OK:n.Z_OK,Z_STREAM_END:n.Z_STREAM_END,Z_NEED_DICT:n.Z_NEED_DICT,Z_ERRNO:n.Z_ERRNO,Z_STREAM_ERROR:n.Z_STREAM_ERROR,Z_DATA_ERROR:n.Z_DATA_ERROR,Z_MEM_ERROR:n.Z_MEM_ERROR,Z_BUF_ERROR:n.Z_BUF_ERROR,Z_VERSION_ERROR:n.Z_VERSION_ERROR},v=Object.keys(y),_=0;_<v.length;_++){var h=v[_];y[y[h]]=h}Object.defineProperty(Xe,"codes",{enumerable:!0,value:Object.freeze(y),writable:!1}),Xe.Deflate=T,Xe.Inflate=C,Xe.Gzip=M,Xe.Gunzip=D,Xe.DeflateRaw=V,Xe.InflateRaw=F,Xe.Unzip=N,Xe.createDeflate=function(K){return new T(K)},Xe.createInflate=function(K){return new C(K)},Xe.createDeflateRaw=function(K){return new V(K)},Xe.createInflateRaw=function(K){return new F(K)},Xe.createGzip=function(K){return new M(K)},Xe.createGunzip=function(K){return new D(K)},Xe.createUnzip=function(K){return new N(K)},Xe.deflate=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new T(re),K,ae)},Xe.deflateSync=function(K,re){return S(new T(re),K)},Xe.gzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new M(re),K,ae)},Xe.gzipSync=function(K,re){return S(new M(re),K)},Xe.deflateRaw=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new V(re),K,ae)},Xe.deflateRawSync=function(K,re){return S(new V(re),K)},Xe.unzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new N(re),K,ae)},Xe.unzipSync=function(K,re){return S(new N(re),K)},Xe.inflate=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new C(re),K,ae)},Xe.inflateSync=function(K,re){return S(new C(re),K)},Xe.gunzip=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new D(re),K,ae)},Xe.gunzipSync=function(K,re){return S(new D(re),K)},Xe.inflateRaw=function(K,re,ae){return typeof re=="function"&&(ae=re,re={}),w(new F(re),K,ae)},Xe.inflateRawSync=function(K,re){return S(new F(re),K)};function w(K,re,ae){var Ce=[],Ne=0;K.on("error",te),K.on("end",ye),K.end(re),ne();function ne(){for(var me;(me=K.read())!==null;)Ce.push(me),Ne+=me.length;K.once("readable",ne)}function te(me){K.removeListener("end",ye),K.removeListener("readable",ne),ae(me)}function ye(){var me,Re=null;Ne>=i?Re=new RangeError(f):me=t.concat(Ce,Ne),Ce=[],K.close(),ae(Re,me)}}function S(K,re){if(typeof re=="string"&&(re=t.from(re)),!t.isBuffer(re))throw new TypeError("Not a string or buffer");var ae=K._finishFlushFlag;return K._processChunk(re,ae)}function T(K){if(!(this instanceof T))return new T(K);G.call(this,K,n.DEFLATE)}function C(K){if(!(this instanceof C))return new C(K);G.call(this,K,n.INFLATE)}function M(K){if(!(this instanceof M))return new M(K);G.call(this,K,n.GZIP)}function D(K){if(!(this instanceof D))return new D(K);G.call(this,K,n.GUNZIP)}function V(K){if(!(this instanceof V))return new V(K);G.call(this,K,n.DEFLATERAW)}function F(K){if(!(this instanceof F))return new F(K);G.call(this,K,n.INFLATERAW)}function N(K){if(!(this instanceof N))return new N(K);G.call(this,K,n.UNZIP)}function x(K){return K===n.Z_NO_FLUSH||K===n.Z_PARTIAL_FLUSH||K===n.Z_SYNC_FLUSH||K===n.Z_FULL_FLUSH||K===n.Z_FINISH||K===n.Z_BLOCK}function G(K,re){var ae=this;if(this._opts=K=K||{},this._chunkSize=K.chunkSize||Xe.Z_DEFAULT_CHUNK,r.call(this,K),K.flush&&!x(K.flush))throw new Error("Invalid flush flag: "+K.flush);if(K.finishFlush&&!x(K.finishFlush))throw new Error("Invalid flush flag: "+K.finishFlush);if(this._flushFlag=K.flush||n.Z_NO_FLUSH,this._finishFlushFlag=typeof K.finishFlush<"u"?K.finishFlush:n.Z_FINISH,K.chunkSize&&(K.chunkSize<Xe.Z_MIN_CHUNK||K.chunkSize>Xe.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+K.chunkSize);if(K.windowBits&&(K.windowBits<Xe.Z_MIN_WINDOWBITS||K.windowBits>Xe.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+K.windowBits);if(K.level&&(K.level<Xe.Z_MIN_LEVEL||K.level>Xe.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+K.level);if(K.memLevel&&(K.memLevel<Xe.Z_MIN_MEMLEVEL||K.memLevel>Xe.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+K.memLevel);if(K.strategy&&K.strategy!=Xe.Z_FILTERED&&K.strategy!=Xe.Z_HUFFMAN_ONLY&&K.strategy!=Xe.Z_RLE&&K.strategy!=Xe.Z_FIXED&&K.strategy!=Xe.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+K.strategy);if(K.dictionary&&!t.isBuffer(K.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new n.Zlib(re);var Ce=this;this._hadError=!1,this._handle.onerror=function(te,ye){Q(Ce),Ce._hadError=!0;var me=new Error(te);me.errno=ye,me.code=Xe.codes[ye],Ce.emit("error",me)};var Ne=Xe.Z_DEFAULT_COMPRESSION;typeof K.level=="number"&&(Ne=K.level);var ne=Xe.Z_DEFAULT_STRATEGY;typeof K.strategy=="number"&&(ne=K.strategy),this._handle.init(K.windowBits||Xe.Z_DEFAULT_WINDOWBITS,Ne,K.memLevel||Xe.Z_DEFAULT_MEMLEVEL,ne,K.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=Ne,this._strategy=ne,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!ae._handle},configurable:!0,enumerable:!0})}o.inherits(G,r),G.prototype.params=function(K,re,ae){if(K<Xe.Z_MIN_LEVEL||K>Xe.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+K);if(re!=Xe.Z_FILTERED&&re!=Xe.Z_HUFFMAN_ONLY&&re!=Xe.Z_RLE&&re!=Xe.Z_FIXED&&re!=Xe.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+re);if(this._level!==K||this._strategy!==re){var Ce=this;this.flush(n.Z_SYNC_FLUSH,function(){a(Ce._handle,"zlib binding closed"),Ce._handle.params(K,re),Ce._hadError||(Ce._level=K,Ce._strategy=re,ae&&ae())})}else e.nextTick(ae)},G.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},G.prototype._flush=function(K){this._transform(t.alloc(0),"",K)},G.prototype.flush=function(K,re){var ae=this,Ce=this._writableState;(typeof K=="function"||K===void 0&&!re)&&(re=K,K=n.Z_FULL_FLUSH),Ce.ended?re&&e.nextTick(re):Ce.ending?re&&this.once("end",re):Ce.needDrain?re&&this.once("drain",function(){return ae.flush(K,re)}):(this._flushFlag=K,this.write(t.alloc(0),"",re))},G.prototype.close=function(K){Q(this,K),e.nextTick(Te,this)};function Q(K,re){re&&e.nextTick(re),K._handle&&(K._handle.close(),K._handle=null)}function Te(K){K.emit("close")}return G.prototype._transform=function(K,re,ae){var Ce,Ne=this._writableState,ne=Ne.ending||Ne.ended,te=ne&&(!K||Ne.length===K.length);if(K!==null&&!t.isBuffer(K))return ae(new Error("invalid input"));if(!this._handle)return ae(new Error("zlib binding closed"));te?Ce=this._finishFlushFlag:(Ce=this._flushFlag,K.length>=Ne.length&&(this._flushFlag=this._opts.flush||n.Z_NO_FLUSH)),this._processChunk(K,Ce,ae)},G.prototype._processChunk=function(K,re,ae){var Ce=K&&K.length,Ne=this._chunkSize-this._offset,ne=0,te=this,ye=typeof ae=="function";if(!ye){var me=[],Re=0,ze;this.on("error",function(A){ze=A}),a(this._handle,"zlib binding closed");do var je=this._handle.writeSync(re,K,ne,Ce,this._buffer,this._offset,Ne);while(!this._hadError&&xe(je[0],je[1]));if(this._hadError)throw ze;if(Re>=i)throw Q(this),new RangeError(f);var Je=t.concat(me,Re);return Q(this),Je}a(this._handle,"zlib binding closed");var Ve=this._handle.write(re,K,ne,Ce,this._buffer,this._offset,Ne);Ve.buffer=K,Ve.callback=xe;function xe(A,O){if(this&&(this.buffer=null,this.callback=null),!te._hadError){var Y=Ne-O;if(a(Y>=0,"have should not go down"),Y>0){var fe=te._buffer.slice(te._offset,te._offset+Y);te._offset+=Y,ye?te.push(fe):(me.push(fe),Re+=fe.length)}if((O===0||te._offset>=te._chunkSize)&&(Ne=te._chunkSize,te._offset=0,te._buffer=t.allocUnsafe(te._chunkSize)),O===0){if(ne+=Ce-A,Ce=A,!ye)return!0;var ge=te._handle.write(re,K,ne,Ce,te._buffer,te._offset,te._chunkSize);ge.callback=xe,ge.buffer=K;return}if(!ye)return!1;ae()}}},o.inherits(T,G),o.inherits(C,G),o.inherits(M,G),o.inherits(D,G),o.inherits(V,G),o.inherits(F,G),o.inherits(N,G),Xe}var Pe=XI();Pe.codes;Pe.Deflate;Pe.Inflate;Pe.Gzip;Pe.Gunzip;Pe.DeflateRaw;Pe.InflateRaw;Pe.Unzip;Pe.createDeflate;Pe.createInflate;Pe.createDeflateRaw;Pe.createInflateRaw;Pe.createGzip;Pe.createGunzip;Pe.createUnzip;Pe.deflate;Pe.deflateSync;Pe.gzip;Pe.gzipSync;Pe.deflateRaw;Pe.deflateRawSync;Pe.unzip;Pe.unzipSync;Pe.inflate;Pe.inflateSync;Pe.gunzip;Pe.gunzipSync;Pe.inflateRaw;Pe.inflateRawSync;var NH=Pe.Deflate,LH=Pe.DeflateRaw,kH=Pe.Gunzip,FH=Pe.Gzip,PH=Pe.Inflate,UH=Pe.InflateRaw,DH=Pe.Unzip,MH=Pe.Z_BEST_COMPRESSION,jH=Pe.Z_BEST_SPEED,$H=Pe.Z_BINARY,zH=Pe.Z_BLOCK,qH=Pe.Z_BUF_ERROR,WH=Pe.Z_DATA_ERROR,HH=Pe.Z_DEFAULT_CHUNK,ZH=Pe.Z_DEFAULT_COMPRESSION,VH=Pe.Z_DEFAULT_LEVEL,GH=Pe.Z_DEFAULT_MEMLEVEL,YH=Pe.Z_DEFAULT_STRATEGY,KH=Pe.Z_DEFAULT_WINDOWBITS,XH=Pe.Z_DEFLATED,JH=Pe.Z_ERRNO,QH=Pe.Z_FILTERED,eZ=Pe.Z_FINISH,tZ=Pe.Z_FIXED,rZ=Pe.Z_FULL_FLUSH,nZ=Pe.Z_HUFFMAN_ONLY,iZ=Pe.Z_MAX_CHUNK,oZ=Pe.Z_MAX_LEVEL,aZ=Pe.Z_MAX_MEMLEVEL,sZ=Pe.Z_MAX_WINDOWBITS,uZ=Pe.Z_MIN_CHUNK,fZ=Pe.Z_MIN_LEVEL,lZ=Pe.Z_MIN_MEMLEVEL,cZ=Pe.Z_MIN_WINDOWBITS,hZ=Pe.Z_NEED_DICT,pZ=Pe.Z_NO_COMPRESSION,dZ=Pe.Z_NO_FLUSH,yZ=Pe.Z_OK,gZ=Pe.Z_PARTIAL_FLUSH,mZ=Pe.Z_RLE,vZ=Pe.Z_STREAM_END,wZ=Pe.Z_STREAM_ERROR,bZ=Pe.Z_SYNC_FLUSH,_Z=Pe.Z_TEXT,EZ=Pe.Z_TREES,SZ=Pe.Z_UNKNOWN,AZ=Pe.Zlib,RZ=Pe.codes,TZ=Pe.createDeflate,OZ=Pe.createDeflateRaw,IZ=Pe.createGunzip,db=Pe.createGzip,xZ=Pe.createInflate,BZ=Pe.createInflateRaw,CZ=Pe.createUnzip,NZ=Pe.deflate,LZ=Pe.deflateRaw,kZ=Pe.deflateRawSync,FZ=Pe.deflateSync,PZ=Pe.gunzip,UZ=Pe.gunzipSync,DZ=Pe.gzip,MZ=Pe.gzipSync,jZ=Pe.inflate,$Z=Pe.inflateRaw,zZ=Pe.inflateRawSync,qZ=Pe.inflateSync,WZ=Pe.unzip,HZ=Pe.unzipSync;$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var JI=/^xn--/,QI=/[^\0-\x7E]/,ex=/[\x2E\u3002\uFF0E\uFF61]/g,tx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Math.floor,oh=String.fromCharCode;function Oi(e){throw new RangeError(tx[e])}function yb(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);let o=function(a,i){let f=[],l=a.length;for(;l--;)f[l]=i(a[l]);return f}((e=e.replace(ex,".")).split("."),t).join(".");return n+o}function wb(e){let t=[],r=0,n=e.length;for(;r<n;){let o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){let a=e.charCodeAt(r++);(64512&a)==56320?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var gb=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},bb=function(e,t,r){let n=0;for(e=r?fn(e/700):e>>1,e+=fn(e/t);e>455;n+=36)e=fn(e/35);return fn(n+36*e/(e+38))},mb=function(e){let t=[],r=e.length,n=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let l=0;l<i;++l)e.charCodeAt(l)>=128&&Oi("not-basic"),t.push(e.charCodeAt(l));for(let l=i>0?i+1:0;l<r;){let c=n;for(let y=1,v=36;;v+=36){l>=r&&Oi("invalid-input");let _=(f=e.charCodeAt(l++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36;(_>=36||_>fn((2147483647-n)/y))&&Oi("overflow"),n+=_*y;let h=v<=a?1:v>=a+26?26:v-a;if(_<h)break;let w=36-h;y>fn(2147483647/w)&&Oi("overflow"),y*=w}let d=t.length+1;a=bb(n-c,d,c==0),fn(n/d)>2147483647-o&&Oi("overflow"),o+=fn(n/d),n%=d,t.splice(n++,0,o)}var f;return String.fromCodePoint(...t)},vb=function(e){let t=[],r=(e=wb(e)).length,n=128,o=0,a=72;for(let l of e)l<128&&t.push(oh(l));let i=t.length,f=i;for(i&&t.push("-");f<r;){let l=2147483647;for(let d of e)d>=n&&d<l&&(l=d);let c=f+1;l-n>fn((2147483647-o)/c)&&Oi("overflow"),o+=(l-n)*c,n=l;for(let d of e)if(d<n&&++o>2147483647&&Oi("overflow"),d==n){let y=o;for(let v=36;;v+=36){let _=v<=a?1:v>=a+26?26:v-a;if(y<_)break;let h=y-_,w=36-_;t.push(oh(gb(_+h%w,0))),y=fn(h/w)}t.push(oh(gb(y,0))),a=bb(o,c,f==i),o=0,++f}++o,++n}return t.join("")},Yn={version:"2.1.0",ucs2:{decode:wb,encode:e=>String.fromCodePoint(...e)},decode:mb,encode:vb,toASCII:function(e){return yb(e,function(t){return QI.test(t)?"xn--"+vb(t):t})},toUnicode:function(e){return yb(e,function(t){return JI.test(t)?mb(t.slice(4).toLowerCase()):t})}};Yn.decode;Yn.encode;Yn.toASCII;Yn.toUnicode;Yn.ucs2;Yn.version;$();z();q();H();W();function rx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var nx=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if(typeof e!="string"||e.length===0)return o;var a=/\+/g;e=e.split(t);var i=1e3;n&&typeof n.maxKeys=="number"&&(i=n.maxKeys);var f=e.length;i>0&&f>i&&(f=i);for(var l=0;l<f;++l){var c,d,y,v,_=e[l].replace(a,"%20"),h=_.indexOf(r);h>=0?(c=_.substr(0,h),d=_.substr(h+1)):(c=_,d=""),y=decodeURIComponent(c),v=decodeURIComponent(d),rx(o,y)?Array.isArray(o[y])?o[y].push(v):o[y]=[o[y],v]:o[y]=v}return o},wa=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},ix=function(e,t,r,n){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var a=encodeURIComponent(wa(o))+r;return Array.isArray(e[o])?e[o].map(function(i){return a+encodeURIComponent(wa(i))}).join(t):a+encodeURIComponent(wa(e[o]))}).join(t):n?encodeURIComponent(wa(n))+r+encodeURIComponent(wa(e)):""},ln={};ln.decode=ln.parse=nx,ln.encode=ln.stringify=ix;ln.decode;ln.encode;ln.parse;ln.stringify;var St={},ox=Yn,cn={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}};function Lr(){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}St.parse=ba,St.resolve=function(e,t){return ba(e,!1,!0).resolve(t)},St.resolveObject=function(e,t){return e?ba(e,!1,!0).resolveObject(t):t},St.format=function(e){return cn.isString(e)&&(e=ba(e)),e instanceof Lr?e.format():Lr.prototype.format.call(e)},St.Url=Lr;var ax=/^([a-z0-9.+-]+:)/i,sx=/:[0-9]*$/,ux=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fx=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),fh=["'"].concat(fx),_b=["%","/","?",";","#"].concat(fh),Eb=["/","?","#"],Sb=/^[+a-z0-9A-Z_-]{0,63}$/,lx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,cx={javascript:!0,"javascript:":!0},ah={javascript:!0,"javascript:":!0},mo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},sh=ln;function ba(e,t,r){if(e&&cn.isObject(e)&&e instanceof Lr)return e;var n=new Lr;return n.parse(e,t,r),n}Lr.prototype.parse=function(e,t,r){if(!cn.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=n!==-1&&n<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!r&&e.split("#").length===1){var f=ux.exec(i);if(f)return this.path=i,this.href=i,this.pathname=f[1],f[2]?(this.search=f[2],this.query=t?sh.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=ax.exec(i);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,i=i.substr(l.length)}if(r||l||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var d=i.substr(0,2)==="//";!d||l&&ah[l]||(i=i.substr(2),this.slashes=!0)}if(!ah[l]&&(d||l&&!mo[l])){for(var y,v,_=-1,h=0;h<Eb.length;h++)(w=i.indexOf(Eb[h]))!==-1&&(_===-1||w<_)&&(_=w);for((v=_===-1?i.lastIndexOf("@"):i.lastIndexOf("@",_))!==-1&&(y=i.slice(0,v),i=i.slice(v+1),this.auth=decodeURIComponent(y)),_=-1,h=0;h<_b.length;h++){var w;(w=i.indexOf(_b[h]))!==-1&&(_===-1||w<_)&&(_=w)}_===-1&&(_=i.length),this.host=i.slice(0,_),i=i.slice(_),this.parseHost(),this.hostname=this.hostname||"";var S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S)for(var T=this.hostname.split(/\./),C=(h=0,T.length);h<C;h++){var M=T[h];if(M&&!M.match(Sb)){for(var D="",V=0,F=M.length;V<F;V++)M.charCodeAt(V)>127?D+="x":D+=M[V];if(!D.match(Sb)){var N=T.slice(0,h),x=T.slice(h+1),G=M.match(lx);G&&(N.push(G[1]),x.unshift(G[2])),x.length&&(i="/"+x.join(".")+i),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=ox.toASCII(this.hostname));var Q=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+Q,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),i[0]!=="/"&&(i="/"+i))}if(!cx[c])for(h=0,C=fh.length;h<C;h++){var K=fh[h];if(i.indexOf(K)!==-1){var re=encodeURIComponent(K);re===K&&(re=escape(K)),i=i.split(K).join(re)}}var ae=i.indexOf("#");ae!==-1&&(this.hash=i.substr(ae),i=i.slice(0,ae));var Ce=i.indexOf("?");if(Ce!==-1?(this.search=i.substr(Ce),this.query=i.substr(Ce+1),t&&(this.query=sh.parse(this.query)),i=i.slice(0,Ce)):t&&(this.search="",this.query={}),i&&(this.pathname=i),mo[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Q=this.pathname||"";var Ne=this.search||"";this.path=Q+Ne}return this.href=this.format(),this},Lr.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&cn.isObject(this.query)&&Object.keys(this.query).length&&(a=sh.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||mo[t])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),i&&i.charAt(0)!=="?"&&(i="?"+i),t+o+(r=r.replace(/[?#]/g,function(f){return encodeURIComponent(f)}))+(i=i.replace("#","%23"))+n},Lr.prototype.resolve=function(e){return this.resolveObject(ba(e,!1,!0)).format()},Lr.prototype.resolveObject=function(e){if(cn.isString(e)){var t=new Lr;t.parse(e,!1,!0),e=t}for(var r=new Lr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),f=0;f<i.length;f++){var l=i[f];l!=="protocol"&&(r[l]=e[l])}return mo[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!mo[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var y=c[d];r[y]=e[y]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||ah[e.protocol])r.pathname=e.pathname;else{for(var v=(e.pathname||"").split("/");v.length&&!(e.host=v.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),v[0]!==""&&v.unshift(""),v.length<2&&v.unshift(""),r.pathname=v.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var _=r.pathname||"",h=r.search||"";r.path=_+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",S=e.host||e.pathname&&e.pathname.charAt(0)==="/",T=S||w||r.host&&e.pathname,C=T,M=r.pathname&&r.pathname.split("/")||[],D=(v=e.pathname&&e.pathname.split("/")||[],r.protocol&&!mo[r.protocol]);if(D&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(v[0]===""?v[0]=e.host:v.unshift(e.host)),e.host=null),T=T&&(v[0]===""||M[0]==="")),S)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,M=v;else if(v.length)M||(M=[]),M.pop(),M=M.concat(v),r.search=e.search,r.query=e.query;else if(!cn.isNullOrUndefined(e.search))return D&&(r.hostname=r.host=M.shift(),(G=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=G.shift(),r.host=r.hostname=G.shift())),r.search=e.search,r.query=e.query,cn.isNull(r.pathname)&&cn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],F=(r.host||e.host||M.length>1)&&(V==="."||V==="..")||V==="",N=0,x=M.length;x>=0;x--)(V=M[x])==="."?M.splice(x,1):V===".."?(M.splice(x,1),N++):N&&(M.splice(x,1),N--);if(!T&&!C)for(;N--;N)M.unshift("..");!T||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),F&&M.join("/").substr(-1)!=="/"&&M.push("");var G,Q=M[0]===""||M[0]&&M[0].charAt(0)==="/";return D&&(r.hostname=r.host=Q?"":M.length?M.shift():"",(G=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=G.shift(),r.host=r.hostname=G.shift())),(T=T||r.host&&M.length)&&!Q&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),cn.isNull(r.pathname)&&cn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Lr.prototype.parseHost=function(){var e=this.host,t=sx.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};St.Url;St.format;St.resolve;St.resolveObject;var uh={},Ab=!1;function hx(){if(Ab)return uh;Ab=!0;var e=Et;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l===void 0&&(l=e.cwd()),d=l),t(d),d.length!==0&&(i=d+"/"+i,f=d.charCodeAt(0)===47)}return i=r(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=r(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f<arguments.length;++f){var l=arguments[f];t(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":o.normalize(i)},relative:function(i,f){if(t(i),t(f),i===f||(i=o.resolve(i),f=o.resolve(f),i===f))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var c=i.length,d=c-l,y=1;y<f.length&&f.charCodeAt(y)===47;++y);for(var v=f.length,_=v-y,h=d<_?d:_,w=-1,S=0;S<=h;++S){if(S===h){if(_>h){if(f.charCodeAt(y+S)===47)return f.slice(y+S+1);if(S===0)return f.slice(y+S)}else d>h&&(i.charCodeAt(l+S)===47?w=S:S===0&&(w=0));break}var T=i.charCodeAt(l+S),C=f.charCodeAt(y+S);if(T!==C)break;T===47&&(w=S)}var M="";for(S=l+w+1;S<=c;++S)(S===c||i.charCodeAt(S)===47)&&(M.length===0?M+="..":M+="/..");return M.length>0?M+f.slice(y+w):(y+=w,f.charCodeAt(y)===47&&++y,f.slice(y))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,d=!0,y=i.length-1;y>=1;--y)if(f=i.charCodeAt(y),f===47){if(!d){c=y;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');t(i);var l=0,c=-1,d=!0,y;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var v=f.length-1,_=-1;for(y=i.length-1;y>=0;--y){var h=i.charCodeAt(y);if(h===47){if(!d){l=y+1;break}}else _===-1&&(d=!1,_=y+1),v>=0&&(h===f.charCodeAt(v)?--v===-1&&(c=y):(v=-1,c=_))}return l===c?c=_:c===-1&&(c=i.length),i.slice(l,c)}else{for(y=i.length-1;y>=0;--y)if(i.charCodeAt(y)===47){if(!d){l=y+1;break}}else c===-1&&(d=!1,c=y+1);return c===-1?"":i.slice(l,c)}},extname:function(i){t(i);for(var f=-1,l=0,c=-1,d=!0,y=0,v=i.length-1;v>=0;--v){var _=i.charCodeAt(v);if(_===47){if(!d){l=v+1;break}continue}c===-1&&(d=!1,c=v+1),_===46?f===-1?f=v:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){t(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,d;c?(f.root="/",d=1):d=0;for(var y=-1,v=0,_=-1,h=!0,w=i.length-1,S=0;w>=d;--w){if(l=i.charCodeAt(w),l===47){if(!h){v=w+1;break}continue}_===-1&&(h=!1,_=w+1),l===46?y===-1?y=w:S!==1&&(S=1):y!==-1&&(S=-1)}return y===-1||_===-1||S===0||S===1&&y===_-1&&y===v+1?_!==-1&&(v===0&&c?f.base=f.name=i.slice(1,_):f.base=f.name=i.slice(v,_)):(v===0&&c?(f.name=i.slice(1,y),f.base=i.slice(1,_)):(f.name=i.slice(v,y),f.base=i.slice(v,_)),f.ext=i.slice(y,_)),v>0?f.dir=i.slice(0,v-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,uh=o,uh}var Rb=hx(),px=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=Ox;St.fileURLToPath=Ax;St.Url;St.format;St.resolve;St.resolveObject;St.URL;var dx=92,yx=47,gx=97,mx=122,lh=px==="win32",vx=/\//g,wx=/%/g,bx=/\\/g,_x=/\n/g,Ex=/\r/g,Sx=/\t/g;function Ax(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return lh?Rx(e):Tx(e)}function Rx(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(vx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<gx||n>mx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function Tx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function Ox(e){let t=Rb.resolve(e),r=e.charCodeAt(e.length-1);(r===yx||lh&&r===dx)&&t[t.length-1]!==Rb.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(wx,"%25")),!lh&&t.includes("\\")&&(t=t.replace(bx,"%5C")),t.includes(`
`)&&(t=t.replace(_x,"%0A")),t.includes("\r")&&(t=t.replace(Ex,"%0D")),t.includes(" ")&&(t=t.replace(Sx,"%09")),n.pathname=t,n}var Ix=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=$x;St.fileURLToPath=hh;var yV=St.Url,gV=St.format,mV=St.resolve,vV=St.resolveObject,wV=St.parse,bV=St.URL,xx=92,Bx=47,Cx=97,Nx=122,ch=Ix==="win32",Lx=/\//g,kx=/%/g,Fx=/\\/g,Px=/\n/g,Ux=/\r/g,Dx=/\t/g;function hh(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return ch?Mx(e):jx(e)}function Mx(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(Lx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Cx||n>Nx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function jx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function $x(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===Bx||ch&&r===xx)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(kx,"%25")),!ch&&t.includes("\\")&&(t=t.replace(Fx,"%5C")),t.includes(`
`)&&(t=t.replace(Px,"%0A")),t.includes("\r")&&(t=t.replace(Ux,"%0D")),t.includes(" ")&&(t=t.replace(Dx,"%09")),n.pathname=t,n}ka();var _a={},Tb=!1;function Sa(){return Tb||(Tb=!0,Object.defineProperty(_a,"__esModule",{value:!0}),_a.constants=void 0,_a.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_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}),_a}var Eu={},Ob=!1;function zx(){return Ob||(Ob=!0,typeof BigInt=="function"?Eu.default=BigInt:Eu.default=function(){throw new Error("BigInt is not supported in this environment.")}),Eu}var vo={},Ib=!1;function ph(){if(Ib)return vo;Ib=!0,Object.defineProperty(vo,"__esModule",{value:!0}),vo.Stats=void 0;var e=Sa(),t=zx(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){}return y.build=function(v,_){_===void 0&&(_=!1);var h=new y,w=v.uid,S=v.gid,T=v.atime,C=v.mtime,M=v.ctime,D=_?t.default:function(F){return F};h.uid=D(w),h.gid=D(S),h.rdev=D(0),h.blksize=D(4096),h.ino=D(v.ino),h.size=D(v.getSize()),h.blocks=D(1),h.atime=T,h.mtime=C,h.ctime=M,h.birthtime=M,h.atimeMs=D(T.getTime()),h.mtimeMs=D(C.getTime());var V=D(M.getTime());return h.ctimeMs=V,h.birthtimeMs=V,h.dev=D(0),h.mode=D(v.mode),h.nlink=D(v.nlink),h},y.prototype._checkModeProperty=function(v){return(Number(this.mode)&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return vo.Stats=d,vo.default=d,vo}var Gr={},xb=!1;function dh(){if(xb)return Gr;xb=!0;var e=Gr&&Gr.__spreadArray||function(a,i,f){if(f||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return a.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.bufferFrom=Gr.bufferAllocUnsafe=Gr.Buffer=void 0;var t=Br;Object.defineProperty(Gr,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(a){for(var i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,a],i,!1)))}var n=t.Buffer.allocUnsafe||r;Gr.bufferAllocUnsafe=n;var o=t.Buffer.from||r;return Gr.bufferFrom=o,Gr}var qt={},Bb=!1,qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(Bb)return qt;Bb=!0;var e=qt&&qt.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(qt,"__esModule",{value:!0}),qt.E=qt.AssertionError=qt.message=qt.RangeError=qt.TypeError=qt.Error=void 0;var t=Qe,r=Oe,n=typeof Symbol>"u"?"_kCode":Symbol("code"),o={};function a(h){return function(w){e(S,w);function S(T){for(var C=[],M=1;M<arguments.length;M++)C[M-1]=arguments[M];var D=w.call(this,l(T,C))||this;return D.code=T,D[n]=T,D.name=w.prototype.name+" ["+D[n]+"]",D}return S}(h)}var i=typeof globalThis<"u"?globalThis:qx,f=function(h){e(w,h);function w(S){var T=this;if(typeof S!="object"||S===null)throw new qt.TypeError("ERR_INVALID_ARG_TYPE","options","object");return S.message?T=h.call(this,S.message)||this:T=h.call(this,r.inspect(S.actual).slice(0,128)+" "+(S.operator+" "+r.inspect(S.expected).slice(0,128)))||this,T.generatedMessage=!S.message,T.name="AssertionError [ERR_ASSERTION]",T.code="ERR_ASSERTION",T.actual=S.actual,T.expected=S.expected,T.operator=S.operator,qt.Error.captureStackTrace(T,S.stackStartFunction),T}return w}(i.Error);qt.AssertionError=f;function l(h,w){t.strictEqual(typeof h,"string");var S=o[h];t(S,"An invalid error message key was used: "+h+".");var T;if(typeof S=="function")T=S;else{if(T=r.format,w===void 0||w.length===0)return S;w.unshift(S)}return String(T.apply(null,w))}qt.message=l;function c(h,w){o[h]=typeof w=="function"?w:String(w)}qt.E=c,qt.Error=a(i.Error),qt.TypeError=a(i.TypeError),qt.RangeError=a(i.RangeError),c("ERR_ARG_NOT_ITERABLE","%s must be iterable"),c("ERR_ASSERTION","%s"),c("ERR_BUFFER_OUT_OF_BOUNDS",_),c("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),c("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),c("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),c("ERR_DNS_SET_SERVERS_FAILED",function(h,w){return'c-ares failed to set servers: "'+h+'" ['+w+"]"}),c("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),c("ERR_ENCODING_NOT_SUPPORTED",function(h){return'The "'+h+'" encoding is not supported'}),c("ERR_ENCODING_INVALID_ENCODED_DATA",function(h){return"The encoded data was not valid for encoding "+h}),c("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),c("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),c("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),c("ERR_INDEX_OUT_OF_RANGE","Index out of range"),c("ERR_INVALID_ARG_TYPE",d),c("ERR_INVALID_ARRAY_LENGTH",function(h,w,S){return t.strictEqual(typeof S,"number"),'The array "'+h+'" (length '+S+") must be of length "+w+"."}),c("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),c("ERR_INVALID_CALLBACK","Callback must be a function"),c("ERR_INVALID_CHAR","Invalid character in %s"),c("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),c("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),c("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),c("ERR_INVALID_FILE_URL_PATH","File URL path %s"),c("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),c("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),c("ERR_INVALID_OPT_VALUE",function(h,w){return'The value "'+String(w)+'" is invalid for option "'+h+'"'}),c("ERR_INVALID_OPT_VALUE_ENCODING",function(h){return'The value "'+String(h)+'" is invalid for option "encoding"'}),c("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),c("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),c("ERR_INVALID_THIS",'Value of "this" must be of type %s'),c("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),c("ERR_INVALID_URL","Invalid URL: %s"),c("ERR_INVALID_URL_SCHEME",function(h){return"The URL must be "+v(h,"scheme")}),c("ERR_IPC_CHANNEL_CLOSED","Channel closed"),c("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),c("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),c("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),c("ERR_MISSING_ARGS",y),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),c("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),c("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),c("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),c("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),c("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),c("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),c("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),c("ERR_SOCKET_CANNOT_SEND","Unable to send data"),c("ERR_SOCKET_CLOSED","Socket is closed"),c("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),c("ERR_STDERR_CLOSE","process.stderr cannot be closed"),c("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),c("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),c("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),c("ERR_TLS_DH_PARAM_SIZE",function(h){return"DH parameter size "+h+" is less than 2048"}),c("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),c("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),c("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),c("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),c("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),c("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),c("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),c("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),c("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),c("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),c("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl");function d(h,w,S){t(h,"name is required");var T;w.includes("not ")?(T="must not be",w=w.split("not ")[1]):T="must be";var C;if(Array.isArray(h)){var M=h.map(function(V){return'"'+V+'"'}).join(", ");C="The "+M+" arguments "+T+" "+v(w,"type")}else if(h.includes(" argument"))C="The "+h+" "+T+" "+v(w,"type");else{var D=h.includes(".")?"property":"argument";C='The "'+h+'" '+D+" "+T+" "+v(w,"type")}return arguments.length>=3&&(C+=". Received type "+(S!==null?typeof S:"null")),C}function y(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];t(h.length>0,"At least one arg needs to be specified");var S="The ",T=h.length;switch(h=h.map(function(C){return'"'+C+'"'}),T){case 1:S+=h[0]+" argument";break;case 2:S+=h[0]+" and "+h[1]+" arguments";break;default:S+=h.slice(0,T-1).join(", "),S+=", and "+h[T-1]+" arguments";break}return S+" must be specified"}function v(h,w){if(t(h,"expected is required"),t(typeof w=="string","thing is required"),Array.isArray(h)){var S=h.length;return t(S>0,"At least one expected value needs to be specified"),h=h.map(function(T){return String(T)}),S>2?"one of "+w+" "+h.slice(0,S-1).join(", ")+", or "+h[S-1]:S===2?"one of "+w+" "+h[0]+" or "+h[1]:"of "+w+" "+h[0]}else return"of "+w+" "+String(h)}function _(h,w){return w?"Attempt to write outside buffer bounds":'"'+h+'" is outside of buffer bounds'}return qt}var hn={},Cb=!1;function Wb(){if(Cb)return hn;Cb=!0,Object.defineProperty(hn,"__esModule",{value:!0}),hn.strToEncoding=hn.assertEncoding=hn.ENCODING_UTF8=void 0;var e=dh(),t=qb();hn.ENCODING_UTF8="utf8";function r(o){if(o&&!e.Buffer.isEncoding(o))throw new t.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",o)}hn.assertEncoding=r;function n(o,a){return!a||a===hn.ENCODING_UTF8?o:a==="buffer"?new e.Buffer(o):new e.Buffer(o).toString(a)}return hn.strToEncoding=n,hn}var wo={},Nb=!1;function Hb(){if(Nb)return wo;Nb=!0,Object.defineProperty(wo,"__esModule",{value:!0}),wo.Dirent=void 0;var e=Sa(),t=Wb(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){this.name="",this.mode=0}return y.build=function(v,_){var h=new y,w=v.getNode().mode;return h.name=(0,t.strToEncoding)(v.getName(),_),h.mode=w,h},y.prototype._checkModeProperty=function(v){return(this.mode&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return wo.Dirent=d,wo.default=d,wo}var Su={},Lb=!1,kb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Zb(){if(Lb)return Su;Lb=!0;var e=lt;Object.defineProperty(Su,"__esModule",{value:!0});var t;return typeof e.nextTick=="function"?t=e.nextTick.bind(typeof globalThis<"u"?globalThis:kb):t=setTimeout.bind(typeof globalThis<"u"?globalThis:kb),Su.default=t,Su}var bo={},Fb=!1;function Vb(){if(Fb)return bo;Fb=!0;var e=lt;Object.defineProperty(bo,"__esModule",{value:!0}),bo.createProcess=void 0;var t=function(){if(typeof e<"u")return e;try{return lt}catch{return}};function r(){var n=t()||{};return n.getuid||(n.getuid=function(){return 0}),n.getgid||(n.getgid=function(){return 0}),n.cwd||(n.cwd=function(){return"/"}),n.nextTick||(n.nextTick=Zb().default),n.emitWarning||(n.emitWarning=function(o,a){console.warn(""+a+(a?": ":"")+o)}),n.env||(n.env={}),n}return bo.createProcess=r,bo.default=r(),bo}var yr={},Pb=!1;function Wx(){if(Pb)return yr;Pb=!0;var e=yr&&yr.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(yr,"__esModule",{value:!0}),yr.File=yr.Link=yr.Node=yr.SEP=void 0;var t=Vb(),r=dh(),n=Sa(),o=Ft,a=ph(),i=n.constants.S_IFMT,f=n.constants.S_IFDIR,l=n.constants.S_IFREG,c=n.constants.S_IFLNK,d=n.constants.O_APPEND;yr.SEP="/";var y=function(h){e(w,h);function w(S,T){T===void 0&&(T=438);var C=h.call(this)||this;return C.uid=t.default.getuid(),C.gid=t.default.getgid(),C.atime=new Date,C.mtime=new Date,C.ctime=new Date,C.perm=438,C.mode=l,C.nlink=1,C.perm=T,C.mode|=T,C.ino=S,C}return w.prototype.getString=function(S){return S===void 0&&(S="utf8"),this.getBuffer().toString(S)},w.prototype.setString=function(S){this.buf=(0,r.bufferFrom)(S,"utf8"),this.touch()},w.prototype.getBuffer=function(){return this.buf||this.setBuffer((0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf)},w.prototype.setBuffer=function(S){this.buf=(0,r.bufferFrom)(S),this.touch()},w.prototype.getSize=function(){return this.buf?this.buf.length:0},w.prototype.setModeProperty=function(S){this.mode=this.mode&~i|S},w.prototype.setIsFile=function(){this.setModeProperty(l)},w.prototype.setIsDirectory=function(){this.setModeProperty(f)},w.prototype.setIsSymlink=function(){this.setModeProperty(c)},w.prototype.isFile=function(){return(this.mode&i)===l},w.prototype.isDirectory=function(){return(this.mode&i)===f},w.prototype.isSymlink=function(){return(this.mode&i)===c},w.prototype.makeSymlink=function(S){this.symlink=S,this.setIsSymlink()},w.prototype.write=function(S,T,C,M){if(T===void 0&&(T=0),C===void 0&&(C=S.length),M===void 0&&(M=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),M+C>this.buf.length){var D=(0,r.bufferAllocUnsafe)(M+C);this.buf.copy(D,0,0,this.buf.length),this.buf=D}return S.copy(this.buf,M,T,T+C),this.touch(),C},w.prototype.read=function(S,T,C,M){T===void 0&&(T=0),C===void 0&&(C=S.byteLength),M===void 0&&(M=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0));var D=C;return D>S.byteLength&&(D=S.byteLength),D+M>this.buf.length&&(D=this.buf.length-M),this.buf.copy(S,T,M,M+D),D},w.prototype.truncate=function(S){if(S===void 0&&(S=0),!S)this.buf=(0,r.bufferAllocUnsafe)(0);else if(this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),S<=this.buf.length)this.buf=this.buf.slice(0,S);else{var T=(0,r.bufferAllocUnsafe)(0);this.buf.copy(T),T.fill(0,S)}this.touch()},w.prototype.chmod=function(S){this.perm=S,this.mode=this.mode&-512|S,this.touch()},w.prototype.chown=function(S,T){this.uid=S,this.gid=T,this.touch()},w.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},w.prototype.canRead=function(S,T){return S===void 0&&(S=t.default.getuid()),T===void 0&&(T=t.default.getgid()),!!(this.perm&4||T===this.gid&&this.perm&32||S===this.uid&&this.perm&256)},w.prototype.canWrite=function(S,T){return S===void 0&&(S=t.default.getuid()),T===void 0&&(T=t.default.getgid()),!!(this.perm&2||T===this.gid&&this.perm&16||S===this.uid&&this.perm&128)},w.prototype.del=function(){this.emit("delete",this)},w.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},w}(o.EventEmitter);yr.Node=y;var v=function(h){e(w,h);function w(S,T,C){var M=h.call(this)||this;return M.children={},M.steps=[],M.ino=0,M.length=0,M.vol=S,M.parent=T,M.steps=T?T.steps.concat([C]):[C],M}return w.prototype.setNode=function(S){this.node=S,this.ino=S.ino},w.prototype.getNode=function(){return this.node},w.prototype.createChild=function(S,T){T===void 0&&(T=this.vol.createNode());var C=new w(this.vol,this,S);return C.setNode(T),T.isDirectory(),this.setChild(S,C),C},w.prototype.setChild=function(S,T){return T===void 0&&(T=new w(this.vol,this,S)),this.children[S]=T,T.parent=this,this.length++,this.emit("child:add",T,this),T},w.prototype.deleteChild=function(S){delete this.children[S.getName()],this.length--,this.emit("child:delete",S,this)},w.prototype.getChild=function(S){if(Object.hasOwnProperty.call(this.children,S))return this.children[S]},w.prototype.getPath=function(){return this.steps.join(yr.SEP)},w.prototype.getName=function(){return this.steps[this.steps.length-1]},w.prototype.walk=function(S,T,C){if(T===void 0&&(T=S.length),C===void 0&&(C=0),C>=S.length)return this;if(C>=T)return this;var M=S[C],D=this.getChild(M);return D?D.walk(S,T,C+1):null},w.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},w}(o.EventEmitter);yr.Link=v;var _=function(){function h(w,S,T,C){this.position=0,this.link=w,this.node=S,this.flags=T,this.fd=C}return h.prototype.getString=function(w){return this.node.getString()},h.prototype.setString=function(w){this.node.setString(w)},h.prototype.getBuffer=function(){return this.node.getBuffer()},h.prototype.setBuffer=function(w){this.node.setBuffer(w)},h.prototype.getSize=function(){return this.node.getSize()},h.prototype.truncate=function(w){this.node.truncate(w)},h.prototype.seekTo=function(w){this.position=w},h.prototype.stats=function(){return a.default.build(this.node)},h.prototype.write=function(w,S,T,C){S===void 0&&(S=0),T===void 0&&(T=w.length),typeof C!="number"&&(C=this.position),this.flags&d&&(C=this.getSize());var M=this.node.write(w,S,T,C);return this.position=C+M,M},h.prototype.read=function(w,S,T,C){S===void 0&&(S=0),T===void 0&&(T=w.byteLength),typeof C!="number"&&(C=this.position);var M=this.node.read(w,S,T,C);return this.position=C+M,M},h.prototype.chmod=function(w){this.node.chmod(w)},h.prototype.chown=function(w,S){this.node.chown(w,S)},h}();return yr.File=_,yr}var Au={},Ub=!1,Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Zx(){if(Ub)return Au;Ub=!0,Object.defineProperty(Au,"__esModule",{value:!0});function e(t,r,n){var o=setTimeout.apply(typeof globalThis<"u"?globalThis:Hx,arguments);return o&&typeof o=="object"&&typeof o.unref=="function"&&o.unref(),o}return Au.default=e,Au}var Kn={},Db=!1;function Vx(){if(Db)return Kn;Db=!0;var e=Kn&&Kn.__spreadArray||function(o,a,i){if(i||arguments.length===2)for(var f=0,l=a.length,c;f<l;f++)(c||!(f in a))&&(c||(c=Array.prototype.slice.call(a,0,f)),c[f]=a[f]);return o.concat(c||Array.prototype.slice.call(a))};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.FileHandle=void 0;function t(o,a,i){return i===void 0&&(i=function(f){return f}),function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];return new Promise(function(c,d){o[a].bind(o).apply(void 0,e(e([],f,!1),[function(y,v){return y?d(y):c(i(v))}],!1))})}}var r=function(){function o(a,i){this.vol=a,this.fd=i}return o.prototype.appendFile=function(a,i){return t(this.vol,"appendFile")(this.fd,a,i)},o.prototype.chmod=function(a){return t(this.vol,"fchmod")(this.fd,a)},o.prototype.chown=function(a,i){return t(this.vol,"fchown")(this.fd,a,i)},o.prototype.close=function(){return t(this.vol,"close")(this.fd)},o.prototype.datasync=function(){return t(this.vol,"fdatasync")(this.fd)},o.prototype.read=function(a,i,f,l){return t(this.vol,"read",function(c){return{bytesRead:c,buffer:a}})(this.fd,a,i,f,l)},o.prototype.readFile=function(a){return t(this.vol,"readFile")(this.fd,a)},o.prototype.stat=function(a){return t(this.vol,"fstat")(this.fd,a)},o.prototype.sync=function(){return t(this.vol,"fsync")(this.fd)},o.prototype.truncate=function(a){return t(this.vol,"ftruncate")(this.fd,a)},o.prototype.utimes=function(a,i){return t(this.vol,"futimes")(this.fd,a,i)},o.prototype.write=function(a,i,f,l){return t(this.vol,"write",function(c){return{bytesWritten:c,buffer:a}})(this.fd,a,i,f,l)},o.prototype.writeFile=function(a,i){return t(this.vol,"writeFile")(this.fd,a,i)},o}();Kn.FileHandle=r;function n(o){return typeof Promise>"u"?null:{FileHandle:r,access:function(a,i){return t(o,"access")(a,i)},appendFile:function(a,i,f){return t(o,"appendFile")(a instanceof r?a.fd:a,i,f)},chmod:function(a,i){return t(o,"chmod")(a,i)},chown:function(a,i,f){return t(o,"chown")(a,i,f)},copyFile:function(a,i,f){return t(o,"copyFile")(a,i,f)},lchmod:function(a,i){return t(o,"lchmod")(a,i)},lchown:function(a,i,f){return t(o,"lchown")(a,i,f)},link:function(a,i){return t(o,"link")(a,i)},lstat:function(a,i){return t(o,"lstat")(a,i)},mkdir:function(a,i){return t(o,"mkdir")(a,i)},mkdtemp:function(a,i){return t(o,"mkdtemp")(a,i)},open:function(a,i,f){return t(o,"open",function(l){return new r(o,l)})(a,i,f)},readdir:function(a,i){return t(o,"readdir")(a,i)},readFile:function(a,i){return t(o,"readFile")(a instanceof r?a.fd:a,i)},readlink:function(a,i){return t(o,"readlink")(a,i)},realpath:function(a,i){return t(o,"realpath")(a,i)},rename:function(a,i){return t(o,"rename")(a,i)},rmdir:function(a){return t(o,"rmdir")(a)},stat:function(a,i){return t(o,"stat")(a,i)},symlink:function(a,i,f){return t(o,"symlink")(a,i,f)},truncate:function(a,i){return t(o,"truncate")(a,i)},unlink:function(a){return t(o,"unlink")(a)},utimes:function(a,i,f){return t(o,"utimes")(a,i,f)},writeFile:function(a,i,f){return t(o,"writeFile")(a instanceof r?a.fd:a,i,f)}}}return Kn.default=n,Kn}var Ea={},Mb=!1;function Gx(){if(Mb)return Ea;Mb=!0;var e=lt;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.unixify=a,Ea.correctPath=i;var t=e.platform==="win32";function r(f){var l=f.length-1;if(l<2)return f;for(;n(f,l);)l--;return f.substr(0,l+1)}function n(f,l){var c=f[l];return l>0&&(c==="/"||t&&c==="\\")}function o(f,l){if(typeof f!="string")throw new TypeError("expected a string");return f=f.replace(/[\\\/]+/g,"/"),l!==!1&&(f=r(f)),f}function a(f){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t?(f=o(f,l),f.replace(/^([a-zA-Z]+:|\.\/)/,"")):f}function i(f){return a(f.replace(/^\\\\\?\\.:\\/,"\\"))}return Ea}var vt={},jb=!1,Yx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function Gb(){if(jb)return vt;jb=!0;var e=vt&&vt.__extends||function(){var P=function(E,R){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,X){B.__proto__=X}||function(B,X){for(var oe in X)Object.prototype.hasOwnProperty.call(X,oe)&&(B[oe]=X[oe])},P(E,R)};return function(E,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");P(E,R);function B(){this.constructor=E}E.prototype=R===null?Object.create(R):(B.prototype=R.prototype,new B)}}(),t=vt&&vt.__spreadArray||function(P,E,R){if(R||arguments.length===2)for(var B=0,X=E.length,oe;B<X;B++)(oe||!(B in E))&&(oe||(oe=Array.prototype.slice.call(E,0,B)),oe[B]=E[B]);return P.concat(oe||Array.prototype.slice.call(E))};Object.defineProperty(vt,"__esModule",{value:!0}),vt.FSWatcher=vt.StatWatcher=vt.Volume=vt.toUnixTimestamp=vt.bufferToEncoding=vt.dataToBuffer=vt.dataToStr=vt.pathToSteps=vt.filenameToSteps=vt.pathToFilename=vt.flagsToNumber=vt.FLAGS=void 0;var r=Ot,n=Wx(),o=ph(),a=Hb(),i=dh(),f=Zb(),l=Vb(),c=Zx(),d=ir,y=Sa(),v=Ft,_=Wb(),h=qb(),w=Oe,S=Vx(),T=r.resolve,C=y.constants.O_RDONLY,M=y.constants.O_WRONLY,D=y.constants.O_RDWR,V=y.constants.O_CREAT,F=y.constants.O_EXCL,N=y.constants.O_TRUNC,x=y.constants.O_APPEND,G=y.constants.O_SYNC,Q=y.constants.O_DIRECTORY,Te=y.constants.F_OK,K=y.constants.COPYFILE_EXCL,re=y.constants.COPYFILE_FICLONE_FORCE,ae=r.posix?r.posix:r,Ce=ae.sep,Ne=ae.relative,ne=ae.join,te=ae.dirname,ye=l.default.platform==="win32",me=128,Re={PATH_STR:"path must be a string or Buffer",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"},ze=function(P){return"Expected options to be either an object or a string, but got "+P+" instead"},je="ENOENT",Je="EBADF",Ve="EINVAL",xe="EPERM",A="EPROTO",O="EEXIST",Y="ENOTDIR",fe="EMFILE",ge="EACCES",k="EISDIR",Z="ENOTEMPTY",Se="ENOSYS";function ke(P,E,R,B){E===void 0&&(E=""),R===void 0&&(R=""),B===void 0&&(B="");var X="";switch(R&&(X=" '"+R+"'"),B&&(X+=" -> '"+B+"'"),P){case je:return"ENOENT: no such file or directory, "+E+X;case Je:return"EBADF: bad file descriptor, "+E+X;case Ve:return"EINVAL: invalid argument, "+E+X;case xe:return"EPERM: operation not permitted, "+E+X;case A:return"EPROTO: protocol error, "+E+X;case O:return"EEXIST: file already exists, "+E+X;case Y:return"ENOTDIR: not a directory, "+E+X;case k:return"EISDIR: illegal operation on a directory, "+E+X;case ge:return"EACCES: permission denied, "+E+X;case Z:return"ENOTEMPTY: directory not empty, "+E+X;case fe:return"EMFILE: too many open files, "+E+X;case Se:return"ENOSYS: function not implemented, "+E+X;default:return P+": error occurred, "+E+X}}function De(P,E,R,B,X){E===void 0&&(E=""),R===void 0&&(R=""),B===void 0&&(B=""),X===void 0&&(X=Error);var oe=new X(ke(P,E,R,B));return oe.code=P,oe}var $e;(function(P){P[P.r=C]="r",P[P["r+"]=D]="r+",P[P.rs=C|G]="rs",P[P.sr=P.rs]="sr",P[P["rs+"]=D|G]="rs+",P[P["sr+"]=P["rs+"]]="sr+",P[P.w=M|V|N]="w",P[P.wx=M|V|N|F]="wx",P[P.xw=P.wx]="xw",P[P["w+"]=D|V|N]="w+",P[P["wx+"]=D|V|N|F]="wx+",P[P["xw+"]=P["wx+"]]="xw+",P[P.a=M|x|V]="a",P[P.ax=M|x|V|F]="ax",P[P.xa=P.ax]="xa",P[P["a+"]=D|x|V]="a+",P[P["ax+"]=D|x|V|F]="ax+",P[P["xa+"]=P["ax+"]]="xa+"})($e=vt.FLAGS||(vt.FLAGS={}));function Me(P){if(typeof P=="number")return P;if(typeof P=="string"){var E=$e[P];if(typeof E<"u")return E}throw new h.TypeError("ERR_INVALID_OPT_VALUE","flags",P)}vt.flagsToNumber=Me;function ot(P,E){var R;if(E){var B=typeof E;switch(B){case"string":R=Object.assign({},P,{encoding:E});break;case"object":R=Object.assign({},P,E);break;default:throw TypeError(ze(B))}}else return P;return R.encoding!=="buffer"&&(0,_.assertEncoding)(R.encoding),R}function nt(P){return function(E){return ot(P,E)}}function et(P){if(typeof P!="function")throw TypeError(Re.CB);return P}function bt(P){return function(E,R){return typeof E=="function"?[P(),E]:[P(E),et(R)]}}var Qt={encoding:"utf8"},gt=nt(Qt),Ct=bt(gt),p={flag:"r"},s=nt(p),u={encoding:"utf8",mode:438,flag:$e[$e.w]},b=nt(u),L={encoding:"utf8",mode:438,flag:$e[$e.a]},m=nt(L),j=bt(m),le=Qt,Be=nt(le),ee=bt(Be),ue={mode:511,recursive:!1},I=function(P){return typeof P=="number"?Object.assign({},ue,{mode:P}):Object.assign({},ue,P)},Fe={recursive:!1},rt=function(P){return Object.assign({},Fe,P)},g={encoding:"utf8",withFileTypes:!1},we=nt(g),_e=bt(we),U={bigint:!1},ie=function(P){return P===void 0&&(P={}),Object.assign({},U,P)},ve=function(P,E){return typeof P=="function"?[ie(),P]:[ie(P),et(E)]};function Ye(P){if(P.hostname!=="")throw new h.TypeError("ERR_INVALID_FILE_URL_HOST",l.default.platform);for(var E=P.pathname,R=0;R<E.length;R++)if(E[R]==="%"){var B=E.codePointAt(R+2)|32;if(E[R+1]==="2"&&B===102)throw new h.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(E)}function Ae(P){if(typeof P!="string"&&!i.Buffer.isBuffer(P)){try{if(!(P instanceof St.URL))throw new TypeError(Re.PATH_STR)}catch{throw new TypeError(Re.PATH_STR)}P=Ye(P)}var E=String(P);return Nn(E),E}vt.pathToFilename=Ae;var We=function(P,E){return E===void 0&&(E=l.default.cwd()),T(E,P)};if(ye){var ht=We,kr=Gx().unixify;We=function(P,E){return kr(ht(P,E))}}function ut(P,E){var R=We(P,E),B=R.substr(1);return B?B.split(Ce):[]}vt.filenameToSteps=ut;function pt(P){return ut(Ae(P))}vt.pathToSteps=pt;function Lt(P,E){return E===void 0&&(E=_.ENCODING_UTF8),i.Buffer.isBuffer(P)?P.toString(E):P instanceof Uint8Array?(0,i.bufferFrom)(P).toString(E):String(P)}vt.dataToStr=Lt;function Nt(P,E){return E===void 0&&(E=_.ENCODING_UTF8),i.Buffer.isBuffer(P)?P:P instanceof Uint8Array?(0,i.bufferFrom)(P):(0,i.bufferFrom)(String(P),E)}vt.dataToBuffer=Nt;function Yt(P,E){return!E||E==="buffer"?P:P.toString(E)}vt.bufferToEncoding=Yt;function Nn(P,E){if((""+P).indexOf("\0")!==-1){var R=new Error("Path must be a string without null bytes");if(R.code=je,typeof E!="function")throw R;return l.default.nextTick(E,R),!1}return!0}function Ci(P,E){if(typeof P=="number")return P;if(typeof P=="string")return parseInt(P,8);if(E)return mt(E)}function mt(P,E){var R=Ci(P,E);if(typeof R!="number"||isNaN(R))throw new TypeError(Re.MODE_INT);return R}function Ut(P){return P>>>0===P}function xt(P){if(!Ut(P))throw TypeError(Re.FD)}function Dt(P){if(typeof P=="string"&&+P==P)return+P;if(P instanceof Date)return P.getTime()/1e3;if(isFinite(P))return P<0?Date.now()/1e3:P;throw new Error("Cannot parse time: "+P)}vt.toUnixTimestamp=Dt;function Kt(P){if(typeof P!="number")throw TypeError(Re.UID)}function pn(P){if(typeof P!="number")throw TypeError(Re.GID)}function R_(P){var E={};function R(B,X){for(var oe in X){var be=X[oe],Ue=ne(B,oe);typeof be=="string"?E[Ue]=be:typeof be=="object"&&be!==null&&Object.keys(be).length>0?R(Ue,be):E[Ue]=null}}return R("",P),E}var T_=function(){function P(E){E===void 0&&(E={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=(0,S.default)(this),this.statWatchers={},this.props=Object.assign({Node:n.Node,Link:n.Link,File:n.File},E);var R=this.createLink();R.setNode(this.createNode(!0));var B=this;this.StatWatcher=function(be){e(Ue,be);function Ue(){return be.call(this,B)||this}return Ue}(Ah);var X=Fr;this.ReadStream=function(be){e(Ue,be);function Ue(){for(var Ze=[],Ke=0;Ke<arguments.length;Ke++)Ze[Ke]=arguments[Ke];return be.apply(this,t([B],Ze,!1))||this}return Ue}(X);var oe=Ar;this.WriteStream=function(be){e(Ue,be);function Ue(){for(var Ze=[],Ke=0;Ke<arguments.length;Ke++)Ze[Ke]=arguments[Ke];return be.apply(this,t([B],Ze,!1))||this}return Ue}(oe),this.FSWatcher=function(be){e(Ue,be);function Ue(){return be.call(this,B)||this}return Ue}(Rh),this.root=R}return P.fromJSON=function(E,R){var B=new P;return B.fromJSON(E,R),B},P.fromNestedJSON=function(E,R){var B=new P;return B.fromNestedJSON(E,R),B},Object.defineProperty(P.prototype,"promises",{get:function(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!1,configurable:!0}),P.prototype.createLink=function(E,R,B,X){if(B===void 0&&(B=!1),!E)return new this.props.Link(this,null,"");if(!R)throw new Error("createLink: name cannot be empty");return E.createChild(R,this.createNode(B,X))},P.prototype.deleteLink=function(E){var R=E.parent;return R?(R.deleteChild(E),!0):!1},P.prototype.newInoNumber=function(){var E=this.releasedInos.pop();return E||(this.ino=(this.ino+1)%4294967295,this.ino)},P.prototype.newFdNumber=function(){var E=this.releasedFds.pop();return typeof E=="number"?E:P.fd--},P.prototype.createNode=function(E,R){E===void 0&&(E=!1);var B=new this.props.Node(this.newInoNumber(),R);return E&&B.setIsDirectory(),this.inodes[B.ino]=B,B},P.prototype.getNode=function(E){return this.inodes[E]},P.prototype.deleteNode=function(E){E.del(),delete this.inodes[E.ino],this.releasedInos.push(E.ino)},P.prototype.genRndStr=function(){var E=(Math.random()+1).toString(36).substr(2,6);return E.length===6?E:this.genRndStr()},P.prototype.getLink=function(E){return this.root.walk(E)},P.prototype.getLinkOrThrow=function(E,R){var B=ut(E),X=this.getLink(B);if(!X)throw De(je,R,E);return X},P.prototype.getResolvedLink=function(E){for(var R=typeof E=="string"?ut(E):E,B=this.root,X=0;X<R.length;){var oe=R[X];if(B=B.getChild(oe),!B)return null;var be=B.getNode();if(be.isSymlink()){R=be.symlink.concat(R.slice(X+1)),B=this.root,X=0;continue}X++}return B},P.prototype.getResolvedLinkOrThrow=function(E,R){var B=this.getResolvedLink(E);if(!B)throw De(je,R,E);return B},P.prototype.resolveSymlinks=function(E){return this.getResolvedLink(E.steps.slice(1))},P.prototype.getLinkAsDirOrThrow=function(E,R){var B=this.getLinkOrThrow(E,R);if(!B.getNode().isDirectory())throw De(Y,R,E);return B},P.prototype.getLinkParent=function(E){return this.root.walk(E,E.length-1)},P.prototype.getLinkParentAsDirOrThrow=function(E,R){var B=E instanceof Array?E:ut(E),X=this.getLinkParent(B);if(!X)throw De(je,R,Ce+B.join(Ce));if(!X.getNode().isDirectory())throw De(Y,R,Ce+B.join(Ce));return X},P.prototype.getFileByFd=function(E){return this.fds[String(E)]},P.prototype.getFileByFdOrThrow=function(E,R){if(!Ut(E))throw TypeError(Re.FD);var B=this.getFileByFd(E);if(!B)throw De(Je,R);return B},P.prototype.getNodeByIdOrCreate=function(E,R,B){if(typeof E=="number"){var X=this.getFileByFd(E);if(!X)throw Error("File nto found");return X.node}else{var oe=pt(E),be=this.getLink(oe);if(be)return be.getNode();if(R&V){var Ue=this.getLinkParent(oe);if(Ue){var Ze=oe[oe.length-1];return be=this.createLink(Ue,Ze,!1,B),be.getNode()}}throw De(je,"getNodeByIdOrCreate",Ae(E))}},P.prototype.wrapAsync=function(E,R,B){var X=this;et(B),(0,f.default)(function(){var oe;try{oe=E.apply(X,R)}catch(be){B(be);return}B(null,oe)})},P.prototype._toJSON=function(E,R,B){var X;E===void 0&&(E=this.root),R===void 0&&(R={});var oe=!0,be=E.children;E.getNode().isFile()&&(be=(X={},X[E.getName()]=E.parent.getChild(E.getName()),X),E=E.parent);for(var Ue in be){oe=!1;var Ze=E.getChild(Ue);if(!Ze)throw new Error("_toJSON: unexpected undefined");var Ke=Ze.getNode();if(Ke.isFile()){var wt=Ze.getPath();B&&(wt=Ne(B,wt)),R[wt]=Ke.getString()}else Ke.isDirectory()&&this._toJSON(Ze,R,B)}var kt=E.getPath();return B&&(kt=Ne(B,kt)),kt&&oe&&(R[kt]=null),R},P.prototype.toJSON=function(E,R,B){R===void 0&&(R={}),B===void 0&&(B=!1);var X=[];if(E){E instanceof Array||(E=[E]);for(var oe=0,be=E;oe<be.length;oe++){var Ue=be[oe],Ze=Ae(Ue),Ke=this.getResolvedLink(Ze);Ke&&X.push(Ke)}}else X.push(this.root);if(!X.length)return R;for(var wt=0,kt=X;wt<kt.length;wt++){var Ke=kt[wt];this._toJSON(Ke,R,B?Ke.getPath():"")}return R},P.prototype.fromJSON=function(E,R){R===void 0&&(R=l.default.cwd());for(var B in E){var X=E[B];if(B=We(B,R),typeof X=="string"){var oe=te(B);this.mkdirpBase(oe,511),this.writeFileSync(B,X)}else this.mkdirpBase(B,511)}},P.prototype.fromNestedJSON=function(E,R){this.fromJSON(R_(E),R)},P.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},P.prototype.mountSync=function(E,R){this.fromJSON(R,E)},P.prototype.openLink=function(E,R,B){if(B===void 0&&(B=!0),this.openFiles>=this.maxFiles)throw De(fe,"open",E.getPath());var X=E;if(B&&(X=this.resolveSymlinks(E)),!X)throw De(je,"open",E.getPath());var oe=X.getNode();if(oe.isDirectory()){if((R&(C|D|M))!==C)throw De(k,"open",E.getPath())}else if(R&Q)throw De(Y,"open",E.getPath());if(!(R&M)&&!oe.canRead())throw De(ge,"open",E.getPath());var be=new this.props.File(E,oe,R,this.newFdNumber());return this.fds[be.fd]=be,this.openFiles++,R&N&&be.truncate(),be},P.prototype.openFile=function(E,R,B,X){X===void 0&&(X=!0);var oe=ut(E),be=X?this.getResolvedLink(oe):this.getLink(oe);if(!be&&R&V){var Ue=this.getResolvedLink(oe.slice(0,oe.length-1));if(!Ue)throw De(je,"open",Ce+oe.join(Ce));R&V&&typeof B=="number"&&(be=this.createLink(Ue,oe[oe.length-1],!1,B))}if(be)return this.openLink(be,R,X);throw De(je,"open",E)},P.prototype.openBase=function(E,R,B,X){X===void 0&&(X=!0);var oe=this.openFile(E,R,B,X);if(!oe)throw De(je,"open",E);return oe.fd},P.prototype.openSync=function(E,R,B){B===void 0&&(B=438);var X=mt(B),oe=Ae(E),be=Me(R);return this.openBase(oe,be,X)},P.prototype.open=function(E,R,B,X){var oe=B,be=X;typeof B=="function"&&(oe=438,be=B),oe=oe||438;var Ue=mt(oe),Ze=Ae(E),Ke=Me(R);this.wrapAsync(this.openBase,[Ze,Ke,Ue],be)},P.prototype.closeFile=function(E){this.fds[E.fd]&&(this.openFiles--,delete this.fds[E.fd],this.releasedFds.push(E.fd))},P.prototype.closeSync=function(E){xt(E);var R=this.getFileByFdOrThrow(E,"close");this.closeFile(R)},P.prototype.close=function(E,R){xt(E),this.wrapAsync(this.closeSync,[E],R)},P.prototype.openFileOrGetById=function(E,R,B){if(typeof E=="number"){var X=this.fds[E];if(!X)throw De(je);return X}else return this.openFile(Ae(E),R,B)},P.prototype.readBase=function(E,R,B,X,oe){var be=this.getFileByFdOrThrow(E);return be.read(R,Number(B),Number(X),oe)},P.prototype.readSync=function(E,R,B,X,oe){return xt(E),this.readBase(E,R,B,X,oe)},P.prototype.read=function(E,R,B,X,oe,be){var Ue=this;if(et(be),X===0)return l.default.nextTick(function(){be&&be(null,0,R)});(0,f.default)(function(){try{var Ze=Ue.readBase(E,R,B,X,oe);be(null,Ze,R)}catch(Ke){be(Ke)}})},P.prototype.readFileBase=function(E,R,B){var X,oe=typeof E=="number",be=oe&&Ut(E),Ue;if(be)Ue=E;else{var Ze=Ae(E),Ke=ut(Ze),wt=this.getResolvedLink(Ke);if(wt){var kt=wt.getNode();if(kt.isDirectory())throw De(k,"open",wt.getPath())}Ue=this.openSync(E,R)}try{X=Yt(this.getFileByFdOrThrow(Ue).getBuffer(),B)}finally{be||this.closeSync(Ue)}return X},P.prototype.readFileSync=function(E,R){var B=s(R),X=Me(B.flag);return this.readFileBase(E,X,B.encoding)},P.prototype.readFile=function(E,R,B){var X=bt(s)(R,B),oe=X[0],be=X[1],Ue=Me(oe.flag);this.wrapAsync(this.readFileBase,[E,Ue,oe.encoding],be)},P.prototype.writeBase=function(E,R,B,X,oe){var be=this.getFileByFdOrThrow(E,"write");return be.write(R,B,X,oe)},P.prototype.writeSync=function(E,R,B,X,oe){xt(E);var be,Ue,Ze,Ke,wt=typeof R!="string";wt?(Ue=(B||0)|0,Ze=X,Ke=oe):(Ke=B,be=X);var kt=Nt(R,be);return wt?typeof Ze>"u"&&(Ze=kt.length):(Ue=0,Ze=kt.length),this.writeBase(E,kt,Ue,Ze,Ke)},P.prototype.write=function(E,R,B,X,oe,be){var Ue=this;xt(E);var Ze,Ke,wt,kt,Pr,Nu=typeof R,Th=typeof B,Oh=typeof X,Ih=typeof oe;Nu!=="string"?Th==="function"?Pr=B:Oh==="function"?(Ze=B|0,Pr=X):Ih==="function"?(Ze=B|0,Ke=X,Pr=oe):(Ze=B|0,Ke=X,wt=oe,Pr=be):Th==="function"?Pr=B:Oh==="function"?(wt=B,Pr=X):Ih==="function"&&(wt=B,kt=X,Pr=oe);var Oa=Nt(R,kt);Nu!=="string"?typeof Ke>"u"&&(Ke=Oa.length):(Ze=0,Ke=Oa.length);var Lu=et(Pr);(0,f.default)(function(){try{var xh=Ue.writeBase(E,Oa,Ze,Ke,wt);Nu!=="string"?Lu(null,xh,Oa):Lu(null,xh,R)}catch(B_){Lu(B_)}})},P.prototype.writeFileBase=function(E,R,B,X){var oe=typeof E=="number",be;oe?be=E:be=this.openBase(Ae(E),B,X);var Ue=0,Ze=R.length,Ke=B&x?void 0:0;try{for(;Ze>0;){var wt=this.writeSync(be,R,Ue,Ze,Ke);Ue+=wt,Ze-=wt,Ke!==void 0&&(Ke+=wt)}}finally{oe||this.closeSync(be)}},P.prototype.writeFileSync=function(E,R,B){var X=b(B),oe=Me(X.flag),be=mt(X.mode),Ue=Nt(R,X.encoding);this.writeFileBase(E,Ue,oe,be)},P.prototype.writeFile=function(E,R,B,X){var oe=B,be=X;typeof B=="function"&&(oe=u,be=B);var Ue=et(be),Ze=b(oe),Ke=Me(Ze.flag),wt=mt(Ze.mode),kt=Nt(R,Ze.encoding);this.wrapAsync(this.writeFileBase,[E,kt,Ke,wt],Ue)},P.prototype.linkBase=function(E,R){var B=ut(E),X=this.getLink(B);if(!X)throw De(je,"link",E,R);var oe=ut(R),be=this.getLinkParent(oe);if(!be)throw De(je,"link",E,R);var Ue=oe[oe.length-1];if(be.getChild(Ue))throw De(O,"link",E,R);var Ze=X.getNode();Ze.nlink++,be.createChild(Ue,Ze)},P.prototype.copyFileBase=function(E,R,B){var X=this.readFileSync(E);if(B&K&&this.existsSync(R))throw De(O,"copyFile",E,R);if(B&re)throw De(Se,"copyFile",E,R);this.writeFileBase(R,X,$e.w,438)},P.prototype.copyFileSync=function(E,R,B){var X=Ae(E),oe=Ae(R);return this.copyFileBase(X,oe,(B||0)|0)},P.prototype.copyFile=function(E,R,B,X){var oe=Ae(E),be=Ae(R),Ue,Ze;typeof B=="function"?(Ue=0,Ze=B):(Ue=B,Ze=X),et(Ze),this.wrapAsync(this.copyFileBase,[oe,be,Ue],Ze)},P.prototype.linkSync=function(E,R){var B=Ae(E),X=Ae(R);this.linkBase(B,X)},P.prototype.link=function(E,R,B){var X=Ae(E),oe=Ae(R);this.wrapAsync(this.linkBase,[X,oe],B)},P.prototype.unlinkBase=function(E){var R=ut(E),B=this.getLink(R);if(!B)throw De(je,"unlink",E);if(B.length)throw Error("Dir not empty...");this.deleteLink(B);var X=B.getNode();X.nlink--,X.nlink<=0&&this.deleteNode(X)},P.prototype.unlinkSync=function(E){var R=Ae(E);this.unlinkBase(R)},P.prototype.unlink=function(E,R){var B=Ae(E);this.wrapAsync(this.unlinkBase,[B],R)},P.prototype.symlinkBase=function(E,R){var B=ut(R),X=this.getLinkParent(B);if(!X)throw De(je,"symlink",E,R);var oe=B[B.length-1];if(X.getChild(oe))throw De(O,"symlink",E,R);var be=X.createChild(oe);return be.getNode().makeSymlink(ut(E)),be},P.prototype.symlinkSync=function(E,R,B){var X=Ae(E),oe=Ae(R);this.symlinkBase(X,oe)},P.prototype.symlink=function(E,R,B,X){var oe=et(typeof B=="function"?B:X),be=Ae(E),Ue=Ae(R);this.wrapAsync(this.symlinkBase,[be,Ue],oe)},P.prototype.realpathBase=function(E,R){var B=ut(E),X=this.getResolvedLink(B);if(!X)throw De(je,"realpath",E);return(0,_.strToEncoding)(X.getPath(),R)},P.prototype.realpathSync=function(E,R){return this.realpathBase(Ae(E),Be(R).encoding)},P.prototype.realpath=function(E,R,B){var X=ee(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.realpathBase,[Ue,oe.encoding],be)},P.prototype.lstatBase=function(E,R){R===void 0&&(R=!1);var B=this.getLink(ut(E));if(!B)throw De(je,"lstat",E);return o.default.build(B.getNode(),R)},P.prototype.lstatSync=function(E,R){return this.lstatBase(Ae(E),ie(R).bigint)},P.prototype.lstat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.lstatBase,[Ae(E),oe.bigint],be)},P.prototype.statBase=function(E,R){R===void 0&&(R=!1);var B=this.getResolvedLink(ut(E));if(!B)throw De(je,"stat",E);return o.default.build(B.getNode(),R)},P.prototype.statSync=function(E,R){return this.statBase(Ae(E),ie(R).bigint)},P.prototype.stat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.statBase,[Ae(E),oe.bigint],be)},P.prototype.fstatBase=function(E,R){R===void 0&&(R=!1);var B=this.getFileByFd(E);if(!B)throw De(Je,"fstat");return o.default.build(B.node,R)},P.prototype.fstatSync=function(E,R){return this.fstatBase(E,ie(R).bigint)},P.prototype.fstat=function(E,R,B){var X=ve(R,B),oe=X[0],be=X[1];this.wrapAsync(this.fstatBase,[E,oe.bigint],be)},P.prototype.renameBase=function(E,R){var B=this.getLink(ut(E));if(!B)throw De(je,"rename",E,R);var X=ut(R),oe=this.getLinkParent(X);if(!oe)throw De(je,"rename",E,R);var be=B.parent;be&&be.deleteChild(B);var Ue=X[X.length-1];B.steps=t(t([],oe.steps,!0),[Ue],!1),oe.setChild(B.getName(),B)},P.prototype.renameSync=function(E,R){var B=Ae(E),X=Ae(R);this.renameBase(B,X)},P.prototype.rename=function(E,R,B){var X=Ae(E),oe=Ae(R);this.wrapAsync(this.renameBase,[X,oe],B)},P.prototype.existsBase=function(E){return!!this.statBase(E)},P.prototype.existsSync=function(E){try{return this.existsBase(Ae(E))}catch{return!1}},P.prototype.exists=function(E,R){var B=this,X=Ae(E);if(typeof R!="function")throw Error(Re.CB);(0,f.default)(function(){try{R(B.existsBase(X))}catch{R(!1)}})},P.prototype.accessBase=function(E,R){this.getLinkOrThrow(E,"access")},P.prototype.accessSync=function(E,R){R===void 0&&(R=Te);var B=Ae(E);R=R|0,this.accessBase(B,R)},P.prototype.access=function(E,R,B){var X=Te,oe;typeof R!="function"?(X=R|0,oe=et(B)):oe=R;var be=Ae(E);this.wrapAsync(this.accessBase,[be,X],oe)},P.prototype.appendFileSync=function(E,R,B){B===void 0&&(B=L);var X=m(B);(!X.flag||Ut(E))&&(X.flag="a"),this.writeFileSync(E,R,X)},P.prototype.appendFile=function(E,R,B,X){var oe=j(B,X),be=oe[0],Ue=oe[1];(!be.flag||Ut(E))&&(be.flag="a"),this.writeFile(E,R,be,Ue)},P.prototype.readdirBase=function(E,R){var B=ut(E),X=this.getResolvedLink(B);if(!X)throw De(je,"readdir",E);var oe=X.getNode();if(!oe.isDirectory())throw De(Y,"scandir",E);if(R.withFileTypes){var be=[];for(var Ue in X.children){var Ze=X.getChild(Ue);Ze&&be.push(a.default.build(Ze,R.encoding))}return!ye&&R.encoding!=="buffer"&&be.sort(function(kt,Pr){return kt.name<Pr.name?-1:kt.name>Pr.name?1:0}),be}var Ke=[];for(var wt in X.children)Ke.push((0,_.strToEncoding)(wt,R.encoding));return!ye&&R.encoding!=="buffer"&&Ke.sort(),Ke},P.prototype.readdirSync=function(E,R){var B=we(R),X=Ae(E);return this.readdirBase(X,B)},P.prototype.readdir=function(E,R,B){var X=_e(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.readdirBase,[Ue,oe],be)},P.prototype.readlinkBase=function(E,R){var B=this.getLinkOrThrow(E,"readlink"),X=B.getNode();if(!X.isSymlink())throw De(Ve,"readlink",E);var oe=Ce+X.symlink.join(Ce);return(0,_.strToEncoding)(oe,R)},P.prototype.readlinkSync=function(E,R){var B=gt(R),X=Ae(E);return this.readlinkBase(X,B.encoding)},P.prototype.readlink=function(E,R,B){var X=Ct(R,B),oe=X[0],be=X[1],Ue=Ae(E);this.wrapAsync(this.readlinkBase,[Ue,oe.encoding],be)},P.prototype.fsyncBase=function(E){this.getFileByFdOrThrow(E,"fsync")},P.prototype.fsyncSync=function(E){this.fsyncBase(E)},P.prototype.fsync=function(E,R){this.wrapAsync(this.fsyncBase,[E],R)},P.prototype.fdatasyncBase=function(E){this.getFileByFdOrThrow(E,"fdatasync")},P.prototype.fdatasyncSync=function(E){this.fdatasyncBase(E)},P.prototype.fdatasync=function(E,R){this.wrapAsync(this.fdatasyncBase,[E],R)},P.prototype.ftruncateBase=function(E,R){var B=this.getFileByFdOrThrow(E,"ftruncate");B.truncate(R)},P.prototype.ftruncateSync=function(E,R){this.ftruncateBase(E,R)},P.prototype.ftruncate=function(E,R,B){var X=typeof R=="number"?R:0,oe=et(typeof R=="number"?B:R);this.wrapAsync(this.ftruncateBase,[E,X],oe)},P.prototype.truncateBase=function(E,R){var B=this.openSync(E,"r+");try{this.ftruncateSync(B,R)}finally{this.closeSync(B)}},P.prototype.truncateSync=function(E,R){if(Ut(E))return this.ftruncateSync(E,R);this.truncateBase(E,R)},P.prototype.truncate=function(E,R,B){var X=typeof R=="number"?R:0,oe=et(typeof R=="number"?B:R);if(Ut(E))return this.ftruncate(E,X,oe);this.wrapAsync(this.truncateBase,[E,X],oe)},P.prototype.futimesBase=function(E,R,B){var X=this.getFileByFdOrThrow(E,"futimes"),oe=X.node;oe.atime=new Date(R*1e3),oe.mtime=new Date(B*1e3)},P.prototype.futimesSync=function(E,R,B){this.futimesBase(E,Dt(R),Dt(B))},P.prototype.futimes=function(E,R,B,X){this.wrapAsync(this.futimesBase,[E,Dt(R),Dt(B)],X)},P.prototype.utimesBase=function(E,R,B){var X=this.openSync(E,"r+");try{this.futimesBase(X,R,B)}finally{this.closeSync(X)}},P.prototype.utimesSync=function(E,R,B){this.utimesBase(Ae(E),Dt(R),Dt(B))},P.prototype.utimes=function(E,R,B,X){this.wrapAsync(this.utimesBase,[Ae(E),Dt(R),Dt(B)],X)},P.prototype.mkdirBase=function(E,R){var B=ut(E);if(!B.length)throw De(O,"mkdir",E);var X=this.getLinkParentAsDirOrThrow(E,"mkdir"),oe=B[B.length-1];if(X.getChild(oe))throw De(O,"mkdir",E);X.createChild(oe,this.createNode(!0,R))},P.prototype.mkdirpBase=function(E,R){for(var B=ut(E),X=this.root,oe=0;oe<B.length;oe++){var be=B[oe];if(!X.getNode().isDirectory())throw De(Y,"mkdir",X.getPath());var Ue=X.getChild(be);if(Ue)if(Ue.getNode().isDirectory())X=Ue;else throw De(Y,"mkdir",Ue.getPath());else X=X.createChild(be,this.createNode(!0,R))}},P.prototype.mkdirSync=function(E,R){var B=I(R),X=mt(B.mode,511),oe=Ae(E);B.recursive?this.mkdirpBase(oe,X):this.mkdirBase(oe,X)},P.prototype.mkdir=function(E,R,B){var X=I(R),oe=et(typeof R=="function"?R:B),be=mt(X.mode,511),Ue=Ae(E);X.recursive?this.wrapAsync(this.mkdirpBase,[Ue,be],oe):this.wrapAsync(this.mkdirBase,[Ue,be],oe)},P.prototype.mkdirpSync=function(E,R){this.mkdirSync(E,{mode:R,recursive:!0})},P.prototype.mkdirp=function(E,R,B){var X=typeof R=="function"?void 0:R,oe=et(typeof R=="function"?R:B);this.mkdir(E,{mode:X,recursive:!0},oe)},P.prototype.mkdtempBase=function(E,R,B){B===void 0&&(B=5);var X=E+this.genRndStr();try{return this.mkdirBase(X,511),(0,_.strToEncoding)(X,R)}catch(oe){if(oe.code===O){if(B>1)return this.mkdtempBase(E,R,B-1);throw Error("Could not create temp dir.")}else throw oe}},P.prototype.mkdtempSync=function(E,R){var B=gt(R).encoding;if(!E||typeof E!="string")throw new TypeError("filename prefix is required");return Nn(E),this.mkdtempBase(E,B)},P.prototype.mkdtemp=function(E,R,B){var X=Ct(R,B),oe=X[0].encoding,be=X[1];if(!E||typeof E!="string")throw new TypeError("filename prefix is required");Nn(E)&&this.wrapAsync(this.mkdtempBase,[E,oe],be)},P.prototype.rmdirBase=function(E,R){var B=rt(R),X=this.getLinkAsDirOrThrow(E,"rmdir");if(X.length&&!B.recursive)throw De(Z,"rmdir",E);this.deleteLink(X)},P.prototype.rmdirSync=function(E,R){this.rmdirBase(Ae(E),R)},P.prototype.rmdir=function(E,R,B){var X=rt(R),oe=et(typeof R=="function"?R:B);this.wrapAsync(this.rmdirBase,[Ae(E),X],oe)},P.prototype.fchmodBase=function(E,R){var B=this.getFileByFdOrThrow(E,"fchmod");B.chmod(R)},P.prototype.fchmodSync=function(E,R){this.fchmodBase(E,mt(R))},P.prototype.fchmod=function(E,R,B){this.wrapAsync(this.fchmodBase,[E,mt(R)],B)},P.prototype.chmodBase=function(E,R){var B=this.openSync(E,"r+");try{this.fchmodBase(B,R)}finally{this.closeSync(B)}},P.prototype.chmodSync=function(E,R){var B=mt(R),X=Ae(E);this.chmodBase(X,B)},P.prototype.chmod=function(E,R,B){var X=mt(R),oe=Ae(E);this.wrapAsync(this.chmodBase,[oe,X],B)},P.prototype.lchmodBase=function(E,R){var B=this.openBase(E,D,0,!1);try{this.fchmodBase(B,R)}finally{this.closeSync(B)}},P.prototype.lchmodSync=function(E,R){var B=mt(R),X=Ae(E);this.lchmodBase(X,B)},P.prototype.lchmod=function(E,R,B){var X=mt(R),oe=Ae(E);this.wrapAsync(this.lchmodBase,[oe,X],B)},P.prototype.fchownBase=function(E,R,B){this.getFileByFdOrThrow(E,"fchown").chown(R,B)},P.prototype.fchownSync=function(E,R,B){Kt(R),pn(B),this.fchownBase(E,R,B)},P.prototype.fchown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.fchownBase,[E,R,B],X)},P.prototype.chownBase=function(E,R,B){var X=this.getResolvedLinkOrThrow(E,"chown"),oe=X.getNode();oe.chown(R,B)},P.prototype.chownSync=function(E,R,B){Kt(R),pn(B),this.chownBase(Ae(E),R,B)},P.prototype.chown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.chownBase,[Ae(E),R,B],X)},P.prototype.lchownBase=function(E,R,B){this.getLinkOrThrow(E,"lchown").getNode().chown(R,B)},P.prototype.lchownSync=function(E,R,B){Kt(R),pn(B),this.lchownBase(Ae(E),R,B)},P.prototype.lchown=function(E,R,B,X){Kt(R),pn(B),this.wrapAsync(this.lchownBase,[Ae(E),R,B],X)},P.prototype.watchFile=function(E,R,B){var X=Ae(E),oe=R,be=B;if(typeof oe=="function"&&(be=R,oe=null),typeof be!="function")throw Error('"watchFile()" requires a listener function');var Ue=5007,Ze=!0;oe&&typeof oe=="object"&&(typeof oe.interval=="number"&&(Ue=oe.interval),typeof oe.persistent=="boolean"&&(Ze=oe.persistent));var Ke=this.statWatchers[X];return Ke||(Ke=new this.StatWatcher,Ke.start(X,Ze,Ue),this.statWatchers[X]=Ke),Ke.addListener("change",be),Ke},P.prototype.unwatchFile=function(E,R){var B=Ae(E),X=this.statWatchers[B];X&&(typeof R=="function"?X.removeListener("change",R):X.removeAllListeners("change"),X.listenerCount("change")===0&&(X.stop(),delete this.statWatchers[B]))},P.prototype.createReadStream=function(E,R){return new this.ReadStream(E,R)},P.prototype.createWriteStream=function(E,R){return new this.WriteStream(E,R)},P.prototype.watch=function(E,R,B){var X=Ae(E),oe=R;typeof R=="function"&&(B=R,oe=null);var be=gt(oe),Ue=be.persistent,Ze=be.recursive,Ke=be.encoding;Ue===void 0&&(Ue=!0),Ze===void 0&&(Ze=!1);var wt=new this.FSWatcher;return wt.start(X,Ue,Ze,Ke),B&&wt.addListener("change",B),wt},P.fd=2147483647,P}();vt.Volume=T_;function O_(P){P.emit("stop")}var Ah=function(P){e(E,P);function E(R){var B=P.call(this)||this;return B.onInterval=function(){try{var X=B.vol.statSync(B.filename);B.hasChanged(X)&&(B.emit("change",X,B.prev),B.prev=X)}finally{B.loop()}},B.vol=R,B}return E.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},E.prototype.hasChanged=function(R){return R.mtimeMs>this.prev.mtimeMs||R.nlink!==this.prev.nlink},E.prototype.start=function(R,B,X){B===void 0&&(B=!0),X===void 0&&(X=5007),this.filename=Ae(R),this.setTimeout=B?setTimeout.bind(typeof globalThis<"u"?globalThis:Yx):c.default,this.interval=X,this.prev=this.vol.statSync(this.filename),this.loop()},E.prototype.stop=function(){clearTimeout(this.timeoutRef),l.default.nextTick(O_,this)},E}(v.EventEmitter);vt.StatWatcher=Ah;var Sr;function I_(P){Sr=(0,i.bufferAllocUnsafe)(P),Sr.used=0}w.inherits(Fr,d.Readable),vt.ReadStream=Fr;function Fr(P,E,R){if(!(this instanceof Fr))return new Fr(P,E,R);if(this._vol=P,R=Object.assign({},ot(R,{})),R.highWaterMark===void 0&&(R.highWaterMark=64*1024),d.Readable.call(this,R),this.path=Ae(E),this.fd=R.fd===void 0?null:R.fd,this.flags=R.flags===void 0?"r":R.flags,this.mode=R.mode===void 0?438:R.mode,this.start=R.start,this.end=R.end,this.autoClose=R.autoClose===void 0?!0:R.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()})}Fr.prototype.open=function(){var P=this;this._vol.open(this.path,this.flags,this.mode,function(E,R){if(E){P.autoClose&&P.destroy&&P.destroy(),P.emit("error",E);return}P.fd=R,P.emit("open",R),P.read()})},Fr.prototype._read=function(P){if(typeof this.fd!="number")return this.once("open",function(){this._read(P)});if(this.destroyed)return;(!Sr||Sr.length-Sr.used<me)&&I_(this._readableState.highWaterMark);var E=Sr,R=Math.min(Sr.length-Sr.used,P),B=Sr.used;if(this.pos!==void 0&&(R=Math.min(this.end-this.pos+1,R)),R<=0)return this.push(null);var X=this;this._vol.read(this.fd,Sr,Sr.used,R,this.pos,oe),this.pos!==void 0&&(this.pos+=R),Sr.used+=R;function oe(be,Ue){if(be)X.autoClose&&X.destroy&&X.destroy(),X.emit("error",be);else{var Ze=null;Ue>0&&(X.bytesRead+=Ue,Ze=E.slice(B,B+Ue)),X.push(Ze)}}},Fr.prototype._destroy=function(P,E){this.close(function(R){E(P||R)})},Fr.prototype.close=function(P){var E=this;if(P&&this.once("close",P),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",x_);return}return l.default.nextTick(function(){return E.emit("close")})}this.closed=!0,this._vol.close(this.fd,function(R){R?E.emit("error",R):E.emit("close")}),this.fd=null};function x_(P){this.close()}w.inherits(Ar,d.Writable),vt.WriteStream=Ar;function Ar(P,E,R){if(!(this instanceof Ar))return new Ar(P,E,R);if(this._vol=P,R=Object.assign({},ot(R,{})),d.Writable.call(this,R),this.path=Ae(E),this.fd=R.fd===void 0?null:R.fd,this.flags=R.flags===void 0?"w":R.flags,this.mode=R.mode===void 0?438:R.mode,this.start=R.start,this.autoClose=R.autoClose===void 0?!0:!!R.autoClose,this.pos=void 0,this.bytesWritten=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}R.encoding&&this.setDefaultEncoding(R.encoding),typeof this.fd!="number"&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}Ar.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(P,E){if(P){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",P);return}this.fd=E,this.emit("open",E)}.bind(this))},Ar.prototype._write=function(P,E,R){if(!(P instanceof i.Buffer))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!="number")return this.once("open",function(){this._write(P,E,R)});var B=this;this._vol.write(this.fd,P,0,P.length,this.pos,function(X,oe){if(X)return B.autoClose&&B.destroy&&B.destroy(),R(X);B.bytesWritten+=oe,R()}),this.pos!==void 0&&(this.pos+=P.length)},Ar.prototype._writev=function(P,E){if(typeof this.fd!="number")return this.once("open",function(){this._writev(P,E)});for(var R=this,B=P.length,X=new Array(B),oe=0,be=0;be<B;be++){var Ue=P[be].chunk;X[be]=Ue,oe+=Ue.length}var Ze=i.Buffer.concat(X);this._vol.write(this.fd,Ze,0,Ze.length,this.pos,function(Ke,wt){if(Ke)return R.destroy&&R.destroy(),E(Ke);R.bytesWritten+=wt,E()}),this.pos!==void 0&&(this.pos+=oe)},Ar.prototype._destroy=Fr.prototype._destroy,Ar.prototype.close=Fr.prototype.close,Ar.prototype.destroySoon=Ar.prototype.end;var Rh=function(P){e(E,P);function E(R){var B=P.call(this)||this;return B._filename="",B._filenameEncoded="",B._recursive=!1,B._encoding=_.ENCODING_UTF8,B._onNodeChange=function(){B._emit("change")},B._onParentChild=function(X){X.getName()===B._getName()&&B._emit("rename")},B._emit=function(X){B.emit("change",X,B._filenameEncoded)},B._persist=function(){B._timer=setTimeout(B._persist,1e6)},B._vol=R,B}return E.prototype._getName=function(){return this._steps[this._steps.length-1]},E.prototype.start=function(R,B,X,oe){B===void 0&&(B=!0),X===void 0&&(X=!1),oe===void 0&&(oe=_.ENCODING_UTF8),this._filename=Ae(R),this._steps=ut(this._filename),this._filenameEncoded=(0,_.strToEncoding)(this._filename),this._recursive=X,this._encoding=oe;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(Ze){var be=new Error("watch "+this._filename+" "+Ze.code);throw be.code=Ze.code,be.errno=Ze.code,be}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var Ue=this._link.parent;Ue&&(Ue.setMaxListeners(Ue.getMaxListeners()+1),Ue.on("child:delete",this._onParentChild)),B&&this._persist()},E.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var R=this._link.parent;R&&R.removeListener("child:delete",this._onParentChild)},E}(v.EventEmitter);return vt.FSWatcher=Rh,vt}var Bn={},$b=!1;function Kx(){if($b)return Bn;$b=!0,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.fsAsyncMethods=Bn.fsSyncMethods=Bn.fsProps=void 0;var e=["constants","F_OK","R_OK","W_OK","X_OK","Stats"];Bn.fsProps=e;var t=["renameSync","ftruncateSync","truncateSync","chownSync","fchownSync","lchownSync","chmodSync","fchmodSync","lchmodSync","statSync","lstatSync","fstatSync","linkSync","symlinkSync","readlinkSync","realpathSync","unlinkSync","rmdirSync","mkdirSync","mkdirpSync","readdirSync","closeSync","openSync","utimesSync","futimesSync","fsyncSync","writeSync","readSync","readFileSync","writeFileSync","appendFileSync","existsSync","accessSync","fdatasyncSync","mkdtempSync","copyFileSync","createReadStream","createWriteStream"];Bn.fsSyncMethods=t;var r=["rename","ftruncate","truncate","chown","fchown","lchown","chmod","fchmod","lchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","mkdirp","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","exists","access","fdatasync","mkdtemp","copyFile","watchFile","unwatchFile","watch"];return Bn.fsAsyncMethods=r,Bn}var Gt={},zb=!1;function Xx(){if(zb)return Gt;zb=!0;var e=Gt&&Gt.__assign||function(){return e=Object.assign||function(_){for(var h,w=1,S=arguments.length;w<S;w++){h=arguments[w];for(var T in h)Object.prototype.hasOwnProperty.call(h,T)&&(_[T]=h[T])}return _},e.apply(this,arguments)};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.fs=Gt.createFsFromVolume=Gt.vol=Gt.Volume=void 0;var t=ph(),r=Hb(),n=Gb(),o=Kx(),a=o.fsSyncMethods,i=o.fsAsyncMethods,f=Sa(),l=f.constants.F_OK,c=f.constants.R_OK,d=f.constants.W_OK,y=f.constants.X_OK;Gt.Volume=n.Volume,Gt.vol=new n.Volume;function v(_){for(var h={F_OK:l,R_OK:c,W_OK:d,X_OK:y,constants:f.constants,Stats:t.default,Dirent:r.default},w=0,S=a;w<S.length;w++){var T=S[w];typeof _[T]=="function"&&(h[T]=_[T].bind(_))}for(var C=0,M=i;C<M.length;C++){var T=M[C];typeof _[T]=="function"&&(h[T]=_[T].bind(_))}return h.StatWatcher=_.StatWatcher,h.FSWatcher=_.FSWatcher,h.WriteStream=_.WriteStream,h.ReadStream=_.ReadStream,h.promises=_.promises,h._toUnixTimestamp=n.toUnixTimestamp,h}return Gt.createFsFromVolume=v,Gt.fs=v(Gt.vol),Gt=e(e({},Gt),Gt.fs),Gt.semantic=!0,Gt}var Ii=Xx();Ii.__esModule;Ii.fs;Ii.createFsFromVolume;Ii.vol;Ii.Volume;Ii.semantic;var fr=Gb();fr.__esModule;fr.FSWatcher;fr.StatWatcher;fr.Volume;fr.toUnixTimestamp;fr.bufferToEncoding;fr.dataToBuffer;fr.dataToStr;fr.pathToSteps;fr.filenameToSteps;fr.pathToFilename;fr.flagsToNumber;fr.FLAGS;fr.ReadStream;fr.WriteStream;var{vol:Cn,createFsFromVolume:Jx}=Ii;function Er(e){throw new Error(`Node.js fs ${e} is not supported by JSPM core in the browser`)}Cn.fromNestedJSON({"/dev":{stdin:"",stdout:"",stderr:""},"/usr/bin":{},"/home":{},"/tmp":{}});Cn.releasedFds=[2,1,0];Cn.openSync("/dev/stdin","w");Cn.openSync("/dev/stdout","r");Cn.openSync("/dev/stderr","r");Yb("/dev/stdout",1,console.log);Yb("/dev/stderr",2,console.error);function Yb(e,t,r){let n=0,o=new TextDecoder;Cn.watch(e,"utf8",()=>{let{size:a}=Cn.fstatSync(t),i=he.alloc(a-n);Cn.readSync(t,i,0,i.length,n),n=a,r(o.decode(i,{stream:!0}))})}var It=Jx(Cn);It.opendir=()=>Er("opendir");It.opendirSync=()=>Er("opendirSync");It.promises.opendir=()=>Er("promises.opendir");It.cp=()=>Er("cp");It.cpSync=()=>Er("cpSync");It.promises.cp=()=>Er("promises.cp");It.readv=()=>Er("readv");It.readvSync=()=>Er("readvSync");It.rm=()=>Er("rm");It.rmSync=()=>Er("rmSync");It.promises.rm=()=>Er("promises.rm");It.Dir=()=>Er("Dir");It.promises.watch=()=>Er("promises.watch");It.FileReadStream=It.ReadStream;It.FileWriteStream=It.WriteStream;function yh(e,t){if(e.protocol==="file:")return hh(e);if(e.protocol==="https:"||e.protocol==="http:"){let r="\\\\url\\"+e.href.replaceAll(/\//g,"\\\\");if(rB(r))return r;if(t)throw new Error(`Cannot sync request URL ${e} via FS. JSPM FS support for network URLs requires using async FS methods or priming the MemFS cache first with an async request before a sync request.`);return(async()=>{let n=await fetch(e);if(!n.ok)throw new Error(`Unable to fetch ${e.href}, ${n.status}`);let o=await n.arrayBuffer();return nB(r,he.from(o)),r})()}throw new Error("URL "+e+" not supported in JSPM FS implementation.")}function Qx(e){return function(t,...r){return t instanceof URL?e(yh(t,!0),...r):e(t,...r)}}function eB(e){return async function(t,...r){return t instanceof URL?e(await yh(t),...r):e(t,...r)}}function tB(e){return function(t,...r){let n=r[r.length-1];t instanceof URL&&typeof n=="function"?yh(t).then(o=>{e(o,...r)},n):e(t,...r)}}It.promises.readFile=eB(It.promises.readFile);It.readFile=tB(It.readFile);It.readFileSync=Qx(It.readFileSync);var{appendFile:HV,appendFileSync:ZV,access:Kb,accessSync:VV,chown:GV,chownSync:YV,chmod:KV,chmodSync:XV,close:JV,closeSync:QV,copyFile:eG,copyFileSync:tG,cp:rG,cpSync:nG,createReadStream:Xb,createWriteStream:Jb,exists:iG,existsSync:rB,fchown:oG,fchownSync:aG,fchmod:sG,fchmodSync:uG,fdatasync:fG,fdatasyncSync:lG,fstat:cG,fstatSync:hG,fsync:pG,fsyncSync:dG,ftruncate:yG,ftruncateSync:gG,futimes:mG,futimesSync:vG,lchown:wG,lchownSync:bG,lchmod:_G,lchmodSync:EG,link:SG,linkSync:AG,lstat:RG,lstatSync:TG,mkdir:OG,mkdirSync:IG,mkdtemp:xG,mkdtempSync:BG,open:CG,openSync:NG,opendir:LG,opendirSync:kG,readdir:FG,readdirSync:PG,read:UG,readSync:DG,readv:MG,readvSync:jG,readFile:$G,readFileSync:zG,readlink:qG,readlinkSync:WG,realpath:HG,realpathSync:ZG,rename:VG,renameSync:GG,rm:YG,rmSync:KG,rmdir:XG,rmdirSync:JG,stat:QG,statSync:eY,symlink:tY,symlinkSync:rY,truncate:nY,truncateSync:iY,unwatchFile:oY,unlink:aY,unlinkSync:sY,utimes:uY,utimesSync:fY,watch:lY,watchFile:cY,writeFile:hY,writeFileSync:nB,write:pY,writeSync:dY,writev:yY,writevSync:gY,Dir:mY,Dirent:vY,Stats:wY,ReadStream:bY,WriteStream:_Y,FileReadStream:EY,FileWriteStream:SY,_toUnixTimestamp:AY,constants:{F_OK:RY,R_OK:TY,W_OK:OY,X_OK:IY},constants:Qb,promises:gh}=It;$();z();q();H();W();ka();var{access:eK,copyFile:tK,cp:rK,open:Aa,opendir:nK,rename:Ru,truncate:iK,rm:oK,rmdir:aK,mkdir:e_,readdir:sK,readlink:uK,symlink:fK,lstat:lK,stat:mh,link:cK,unlink:t_,chmod:hK,lchmod:pK,lchown:dK,chown:yK,utimes:gK,realpath:mK,mkdtemp:vK,writeFile:r_,appendFile:wK,readFile:n_,watch:bK}=gh;async function i_(e){return new Promise(t=>Kb(e,Qb.F_OK,r=>t(!r)))}var Tu=class extends Error{constructor(){super("Too many destination file attempts");at(this,"code","RFS-TOO-MANY")}},bh=class extends a1{constructor(r,n){let{encoding:o,history:a,maxFiles:i,maxSize:f,path:l}=n;super({decodeStrings:!0,defaultEncoding:o});at(this,"createGzip");at(this,"exec");at(this,"file");at(this,"filename");at(this,"finished");at(this,"fsCreateReadStream");at(this,"fsCreateWriteStream");at(this,"fsOpen");at(this,"fsReadFile");at(this,"fsStat");at(this,"fsUnlink");at(this,"generator");at(this,"initPromise");at(this,"last");at(this,"maxTimeout");at(this,"next");at(this,"options");at(this,"prev");at(this,"rotation");at(this,"size");at(this,"stdout");at(this,"timeout");at(this,"timeoutPromise");this.createGzip=db,this.exec=Nv,this.filename=l+r(null),this.fsCreateReadStream=Xb,this.fsCreateWriteStream=Jb,this.fsOpen=Aa,this.fsReadFile=n_,this.fsStat=mh,this.fsUnlink=t_,this.generator=r,this.maxTimeout=2147483640,this.options=n,this.stdout=ce.stdout,(i||f)&&(n.history=l+(a||this.generator(null)+".txt")),this.on("close",()=>this.finished?null:this.emit("finish")),this.on("finish",()=>this.finished=this.clear()),(async()=>{try{this.initPromise=this.init(),await this.initPromise,delete this.initPromise}catch{}})()}_destroy(r,n){this.refinal(r,n)}_final(r){this.refinal(void 0,r)}_write(r,n,o){this.rewrite([{chunk:r,encoding:n}],0,o)}_writev(r,n){this.rewrite(r,0,n)}async refinal(r,n){try{this.clear(),this.initPromise&&await this.initPromise,this.timeoutPromise&&await this.timeoutPromise,await this.reclose()}catch(o){return n(r||o)}n(r)}async rewrite(r,n,o){let{size:a,teeToStdout:i}=this.options;try{this.initPromise&&await this.initPromise,this.timeoutPromise&&await this.timeoutPromise;for(let f=0;f<r.length;++f){let{chunk:l}=r[f];this.size+=l.length,await this.file.write(l),i&&!this.stdout.destroyed&&this.stdout.write(l),a&&this.size>=a&&await this.rotate()}}catch(f){return o(f)}o()}async init(){let{immutable:r,initialRotation:n,interval:o,size:a}=this.options;if(r)return new Promise((f,l)=>ce.nextTick(()=>this.immutate(!0).then(f).catch(l)));let i;try{i=await mh(this.filename)}catch(f){if(f.code!=="ENOENT")throw f;return this.reopen(0)}if(!i.isFile())throw new Error(`Can't write on: ${this.filename} (it is not a file)`);if(n){this.intervalBounds(this.now());let f=this.prev;if(this.intervalBounds(new Date(i.mtime.getTime())),f!==this.prev)return this.rotate()}return this.size=i.size,!a||i.size<a?this.reopen(i.size):(o&&this.intervalBounds(this.now()),this.rotate())}async makePath(r){return e_(r.split(sa).slice(0,-1).join(sa),{recursive:!0})}async reopen(r){let n;try{n=await Aa(this.filename,"a",this.options.mode)}catch(o){if(o.code!=="ENOENT")throw o;await this.makePath(this.filename),n=await Aa(this.filename,"a",this.options.mode)}this.file=n,this.size=r,this.interval(),this.emit("open",this.filename)}async reclose(){let{file:r}=this;if(r)return delete this.file,r.close()}now(){return new Date}async rotate(){let{immutable:r,rotate:n}=this.options;return this.size=0,this.rotation=this.now(),this.clear(),this.emit("rotation"),await this.reclose(),n?this.classical():r?this.immutate(!1):this.move()}async findName(){let{interval:r,path:n,intervalBoundary:o}=this.options;for(let a=1;a<1e3;++a){let i=n+this.generator(r&&o?new Date(this.prev):this.rotation,a);if(!await i_(i))return i}throw new Tu}async move(){let{compress:r}=this.options,n=await this.findName();return await this.touch(n),r?await this.compress(n):await Ru(this.filename,n),this.rotated(n)}async touch(r){let n;try{n=await this.fsOpen(r,"a")}catch(o){if(o.code!=="ENOENT")throw o;await this.makePath(r),n=await Aa(r,"a")}return await n.close(),this.unlink(r)}async classical(){let{compress:r,path:n,rotate:o}=this.options,a="";for(let i=o;i>0;--i){let f=n+this.generator(i),l=i===1?this.filename:n+this.generator(i-1);if(await i_(l))if(a||(a=f),i===1&&r)await this.compress(f);else try{await Ru(l,f)}catch(c){if(c.code!=="ENOENT")throw c;await this.makePath(f),await Ru(l,f)}}return this.rotated(a)}clear(){return this.timeout&&(clearTimeout(this.timeout),this.timeout=null),!0}intervalBoundsBig(r){let n=r.getFullYear(),o=r.getMonth(),a=r.getDate(),i=r.getHours(),{num:f,unit:l}=this.options.interval;l==="M"?(a=1,i=0):l==="d"?i=0:i=parseInt(i/f,10)*f,this.prev=new Date(n,o,a,i,0,0,0).getTime(),l==="M"?o+=f:l==="d"?a+=f:i+=f,this.next=new Date(n,o,a,i,0,0,0).getTime()}intervalBounds(r){let n=this.options.interval.unit;if(n==="M"||n==="d"||n==="h")this.intervalBoundsBig(r);else{let o=1e3*this.options.interval.num;n==="m"&&(o*=60),this.prev=parseInt(r.getTime()/o,10)*o,this.next=this.prev+o}return new Date(this.prev)}interval(){if(!this.options.interval)return;this.intervalBounds(this.now());let r=async()=>{let n=this.next-this.now().getTime();if(n<=0)try{this.timeoutPromise=this.rotate(),await this.timeoutPromise,delete this.timeoutPromise}catch{}else this.timeout=setTimeout(r,n>this.maxTimeout?this.maxTimeout:n),this.timeout.unref()};r()}async compress(r){let{compress:n}=this.options;return typeof n=="function"?await new Promise((o,a)=>{this.exec(n(this.filename,r),(i,f,l)=>{this.emit("external",f,l),i?a(i):o()})}):await this.gzip(r),this.unlink(this.filename)}async gzip(r){let{mode:n}=this.options,o=n?{mode:n}:{},a=this.fsCreateReadStream(this.filename,{}),i=this.fsCreateWriteStream(r,o),f=this.createGzip();return new Promise((l,c)=>{[a,i,f].map(d=>d.once("error",c)),i.once("finish",l),a.pipe(f).pipe(i)})}async rotated(r){let{maxFiles:n,maxSize:o}=this.options;return(n||o)&&await this.history(r),this.emit("rotated",r),this.reopen(0)}async history(r){let{history:n,maxFiles:o,maxSize:a}=this.options,i=[],f=[r];try{f=[...(await this.fsReadFile(n,"utf8")).toString().split(`
`),r]}catch(l){if(l.code!=="ENOENT")throw l}for(let l of f)if(l)try{let c=await this.fsStat(l);c.isFile()?i.push({name:l,size:c.size,time:c.ctime.getTime()}):this.emit("warning",new Error(`File '${l}' contained in history is not a regular file`))}catch(c){if(c.code!=="ENOENT")throw c}if(i.sort((l,c)=>l.time-c.time),o)for(;i.length>o;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!0)}if(a)for(;i.reduce((l,c)=>l+c.size,0)>a;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!1)}await r_(n,i.map(l=>l.name).join(`
`)+`
`,"utf-8"),this.emit("history")}async immutate(r){let{size:n}=this.options,o=this.now();for(let a=1;a<1e3;++a){let i=0,f;this.filename=this.options.path+this.generator(o,a);try{f=await this.fsStat(this.filename)}catch(l){if(l.code!=="ENOENT")throw l}if(f){if(i=f.size,!f.isFile())throw new Error(`Can't write on: '${this.filename}' (it is not a file)`);if(n&&i>=n)continue}if(r)return this.last=this.filename,this.reopen(i);await this.rotated(this.last),this.last=this.filename;return}throw new Tu}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function o_(e){return(t,r,n)=>{let o=parseInt(n,10);if(t!=="number"||o!==n||o<=0)throw new Error(`'${e}' option must be a positive integer number`)}}function vh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don't know how to handle 'options.${e}' type: ${r}`);n[e]=t(o)}}function u_(e,t,r){let n={};if(n.num=parseInt(e,10),isNaN(n.num))throw new Error(`Unknown 'options.${t}' format: ${e}`);if(n.num<=0)throw new Error(`A positive integer number is expected for 'options.${t}'`);if(n.unit=e.replace(/^[ 0]*/g,"").substr((n.num+"").length,1),n.unit.length===0)throw new Error(`Missing unit for 'options.${t}'`);if(!r[n.unit])throw new Error(`Unknown 'options.${t}' unit: ${n.unit}`);return n}var iB={M:!0,d:!0,h:!0,m:!0,s:!0};function wh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`An integer divider of ${r} is expected as ${t} for 'options.interval'`)}function oB(e){let t=u_(e,"interval",iB);switch(t.unit){case"h":wh(t,"hours",24);break;case"m":wh(t,"minutes",60);break;case"s":wh(t,"seconds",60);break}return t}var aB={B:!0,G:!0,K:!0,M:!0};function a_(e){let t=u_(e,"size",aB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var s_={encoding:(e,t,r)=>new i1(r),immutable:()=>{},initialRotation:()=>{},interval:vh("interval",oB),intervalBoundary:()=>{},maxFiles:o_("maxFiles"),maxSize:vh("maxSize",a_),mode:()=>{},omitExtension:()=>{},rotate:o_("rotate"),size:vh("size",a_),teeToStdout:()=>{},compress:(e,t,r)=>{if(!r)throw new Error("A value for 'options.compress' must be specified");if(e==="boolean")return t.compress=(n,o)=>`cat ${n} | gzip -c9 > ${o}`;if(e!=="function"){if(e!=="string")throw new Error(`Don't know how to handle 'options.compress' type: ${e}`);if(r!=="gzip")throw new Error(`Don't know how to handle compression method: ${r}`)}},history:e=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.history' type: ${e}`)},path:(e,t,r)=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.path' type: ${e}`);r[r.length-1]!==sa&&(t.path=r+sa)}};function sB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in s_))throw new Error(`Unknown option: ${r}`);t[r]=e[r],s_[r](o,t,n)}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function uB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function fB(e,t,r){let n=o=>(o>9?"":"0")+o;return(o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function f_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The "options" argument must be of type object. Received type ${typeof t}`);let r=sB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?uB(e,n!==void 0,o):fB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The "filename" argument must be one of type string or function. Received type ${typeof e}`);return new bh(a,r)}var Sh=Jn(m_()),v_=w_.isBrowser?null:f_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Eo=v_?(0,Sh.default)(v_):(0,Sh.default)(),xu=[Eo];Eo.onChild=e=>{xu.push(e)};var Bu=class{constructor(){this.logger=Eo.child({component:"CompletionCache"});this.options={maxSize:1*1024*1024,partiallyAcceptedCacheGeneration:{enabled:!0,perCharacter:{lines:1,words:10,max:30},perWord:{lines:1,max:20},perLine:{max:3}}};this.cache=new Ms({maxSize:this.options.maxSize,sizeCalculation:__.default})}has(t){return this.cache.has(this.hash(t))}set(t,r){for(let n of this.createCacheEntries(t,r))this.logger.debug({entry:n},"Setting cache entry"),this.cache.set(this.hash(n.key),n.value);this.logger.debug({size:this.cache.calculatedSize},"Cache size")}get(t){return this.cache.get(this.hash(t))}hash(t){return(0,b_.default)(t)}createCacheEntries(t,r){let n=[{key:t,value:r}];if(this.options.partiallyAcceptedCacheGeneration.enabled){let o=r.choices.map(a=>this.calculatePartiallyAcceptedPositions(a.text).map(i=>({prefix:a.text.slice(0,i),suffix:a.text.slice(i),choiceIndex:a.index}))).flat().reduce((a,i)=>(a[i.prefix]=a[i.prefix]||[],a[i.prefix].push({suffix:i.suffix,choiceIndex:i.choiceIndex}),a),{});for(let a in o){let i={...t,text:t.text.slice(0,t.position)+a+t.text.slice(t.position),position:t.position+a.length},f={...r,choices:o[a].map(l=>({index:l.choiceIndex,text:l.suffix}))};n.push({key:i,value:f})}}return n}calculatePartiallyAcceptedPositions(t){let r=[],n=this.options.partiallyAcceptedCacheGeneration,o=ks(t),a=0,i=0;for(;a<o.length-1&&a<n.perLine.max;)i+=o[a].length,r.push(i),a++;let f=o.slice(0,n.perWord.lines).map(Cl).flat();for(a=0,i=0;a<f.length&&a<n.perWord.max;)i+=f[a].length,r.push(i),a++;let l=o.slice(0,n.perCharacter.lines).map(Cl).flat().slice(0,n.perCharacter.words).join("");for(i=1;i<l.length&&i<n.perCharacter.max;)r.push(i),i++;return r.filter((c,d,y)=>y.indexOf(c)===d).sort((c,d)=>c-d)}};var Cu=class extends Md{constructor(){super();this.logger=Eo.child({component:"TabbyAgent"});this.config=V0;this.status="connecting";this.completionCache=new Bu;this.onConfigUpdated()}onConfigUpdated(){xu.forEach(r=>r.level=this.config.logs.level),this.api=new Jo({BASE:this.config.server.endpoint}),this.ping()}changeStatus(r){if(this.status!=r){this.status=r;let n={event:"statusChanged",status:r};this.logger.debug({event:n},"Status changed"),super.emit("statusChanged",n)}}async ping(r=0){try{return await ri.get(this.config.server.endpoint),this.changeStatus("ready"),!0}catch{return r>5?(this.changeStatus("disconnected"),!1):(this.changeStatus("connecting"),await H0(1e3),this.ping(r+1))}}callApi(r,n){this.logger.debug({api:r.name,request:n},"API request");let o=r.call(this.api.default,n);return Nl(o.then(a=>(this.logger.debug({api:r.name,response:a},"API response"),this.changeStatus("ready"),a)).catch(a=>{throw this.logger.error({api:r.name,error:a},"API error"),this.changeStatus("disconnected"),a}),()=>{o.cancel()})}createPrompt(r){let o=r.text.slice(0,r.position),a=ks(o),i=Math.max(a.length-20,0);return a.slice(i).join("")}initialize(r){return r.config&&this.updateConfig(r.config),r.client&&xu.forEach(n=>n.setBindings&&n.setBindings({client:r.client})),this.logger.debug({params:r},"Initialized"),!0}updateConfig(r){let n=(0,S_.default)(this.config,r);if(!(0,E_.default)(this.config,n)){this.config=n,this.onConfigUpdated();let o={event:"configUpdated",config:this.config};this.logger.debug({event:o},"Config updated"),super.emit("configUpdated",o)}return!0}getConfig(){return this.config}getStatus(){return this.status}getCompletions(r){if(this.completionCache.has(r))return this.logger.debug({request:r},"Completion cache hit"),new Or(a=>{a(this.completionCache.get(r))});let n=this.createPrompt(r);if(Z0(n))return this.logger.debug("Prompt is blank, returning empty completion response"),new Or(a=>{a({id:"agent-"+nf(),created:new Date().getTime(),choices:[]})});let o=this.callApi(this.api.default.completionsV1CompletionsPost,{prompt:n,language:r.language});return Nl(o.then(a=>(this.completionCache.set(r,a),a)),()=>{o.cancel()})}postEvent(r){return this.callApi(this.api.default.eventsV1EventsPost,r)}};$();z();q();H();W();var A_=["statusChanged","configUpdated"];return U_(AB);})();
/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
ieee754/index.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
buffer/index.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*)
@jspm/core/nodelibs/browser/chunk-44e51b61.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@jspm/core/nodelibs/browser/assert.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*)
*/
//# sourceMappingURL=index.global.js.map