@terai/dev 0.0.0-dev-20240101200600 → 0.0.0-dev-20240302092932
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +2 -1
- package/dist/cli.default.js +22 -22
- package/dist/cli.default.js.map +1 -1
- package/dist/cli.default.mjs +23 -23
- package/dist/cli.default.mjs.map +1 -1
- package/dist/cli.js +26 -26
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +25 -25
- package/dist/cli.mjs.map +1 -1
- package/dist/commands/extract.js +4 -4
- package/dist/commands/extract.js.map +1 -1
- package/dist/commands/extract.mjs +4 -4
- package/dist/commands/extract.mjs.map +1 -1
- package/dist/commands/index.js +7 -7
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/index.mjs +8 -8
- package/dist/commands/index.mjs.map +1 -1
- package/dist/commands/init.js +3 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.mjs +3 -3
- package/dist/commands/init.mjs.map +1 -1
- package/dist/commands/translate.js +4 -4
- package/dist/commands/translate.js.map +1 -1
- package/dist/commands/translate.mjs +6 -6
- package/dist/commands/translate.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/types.d.mts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/types.mjs +0 -1
- package/dist/types.mjs.map +0 -1
package/dist/cli.default.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var Mp=Object.create;var wu=Object.defineProperty;var Hp=Object.getOwnPropertyDescriptor;var Gp=Object.getOwnPropertyNames;var zp=Object.getPrototypeOf,Wp=Object.prototype.hasOwnProperty;var Vp=(t,e)=>()=>(t&&(e=t(t=0)),e);var F=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Yp=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gp(e))!Wp.call(t,s)&&s!==r&&wu(t,s,{get:()=>e[s],enumerable:!(n=Hp(e,s))||n.enumerable});return t};var I=(t,e,r)=>(r=t!=null?Mp(zp(t)):{},Yp(e||!t||!t.__esModule?wu(r,"default",{value:t,enumerable:!0}):r,t));var Kp,m,a=Vp(()=>{"use strict";Kp=()=>typeof document>"u"?new URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,m=Kp()});var
|
|
3
|
-
GFS4: `),console.error(t)});se[de]||(Gu=global[de]||[],Wu(se,Gu),se.close=function(t){function e(r,n){return t.call(se,r,function(s){s||zu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Cn,{value:t}),e}(se.close),se.closeSync=function(t){function e(r){t.apply(se,arguments),zu()}return Object.defineProperty(e,Cn,{value:t}),e}(se.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ut(se[de]),require("assert").equal(se[de].length,0)}));var Gu;global[de]||Wu(global,se[de]);Qs.exports=Xs(wm(se));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!se.__patched&&(Qs.exports=Xs(se),se.__patched=!0);function Xs(t){xm(t),t.gracefulify=Xs,t.createReadStream=j,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(x,O,B){return typeof O=="function"&&(B=O,O=null),U(x,O,B);function U(H,M,L,$){return e(H,M,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Tt([U,[H,M,L],P,$||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return n(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return i(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(x,O,B,U){return typeof B=="function"&&(U=B,B=0),H(x,O,B,U);function H(M,L,$,P,G){return u(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(x,O,B){typeof O=="function"&&(B=O,O=null);var U=l.test(process.version)?function(L,$,P,G){return f(L,H(L,$,P,G))}:function(L,$,P,G){return f(L,$,H(L,$,P,G))};return U(x,O,B);function H(M,L,$,P){return function(G,N){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Tt([U,[M,L,$],G,P||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof $=="function"&&$.call(this,G,N))}}}if(process.version.substr(0,4)==="v0.8"){var d=_m(t);C=d.ReadStream,_=d.WriteStream}var h=t.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=v);var y=t.WriteStream;y&&(_.prototype=Object.create(y.prototype),_.prototype.open=A),Object.defineProperty(t,"ReadStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(x){_=x},enumerable:!0,configurable:!0});var E=C;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});var b=_;Object.defineProperty(t,"FileWriteStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0});function C(x,O){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function v(){var x=this;he(x.path,x.flags,x.mode,function(O,B){O?(x.autoClose&&x.destroy(),x.emit("error",O)):(x.fd=B,x.emit("open",B),x.read())})}function _(x,O){return this instanceof _?(y.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function A(){var x=this;he(x.path,x.flags,x.mode,function(O,B){O?(x.destroy(),x.emit("error",O)):(x.fd=B,x.emit("open",B))})}function j(x,O){return new t.ReadStream(x,O)}function z(x,O){return new t.WriteStream(x,O)}var k=t.open;t.open=he;function he(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return k(M,L,$,function(N,Up){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return t}function Tt(t){ut("ENQUEUE",t[0].name,t[1]),se[de].push(t),Js()}var yn;function zu(){for(var t=Date.now(),e=0;e<se[de].length;++e)se[de][e].length>2&&(se[de][e][3]=t,se[de][e][4]=t);Js()}function Js(){if(clearTimeout(yn),yn=void 0,se[de].length!==0){var t=se[de].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ut("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ut("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(ut("RETRY",e.name,r),e.apply(null,r.concat([s]))):se[de].push(t)}yn===void 0&&(yn=setTimeout(Js,0))}}});var Xu=F((Bx,Zs)=>{"use strict";a();(function(){var t;function e(r,n){var s=this instanceof e?this:t;if(s.reset(n),typeof r=="string"&&r.length>0&&s.hash(r),s!==this)return s}e.prototype.hash=function(r){var n,s,i,o,u;switch(u=r.length,this.len+=u,s=this.k1,i=0,this.rem){case 0:s^=u>i?r.charCodeAt(i++)&65535:0;case 1:s^=u>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=u>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=u>i?(r.charCodeAt(i)&255)<<24:0,s^=u>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=u+this.rem&3,u-=this.rem,u>0){for(n=this.h1;s=s*11601+(s&65535)*3432906752&4294967295,s=s<<15|s>>>17,s=s*13715+(s&65535)*461832192&4294967295,n^=s,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(i>=u);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),s^=(o&255)<<24^(o&65280)>>8;switch(s=0,this.rem){case 3:s^=(r.charCodeAt(i+2)&65535)<<16;case 2:s^=(r.charCodeAt(i+1)&65535)<<8;case 1:s^=r.charCodeAt(i)&65535}this.h1=n}return this.k1=s,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof Zs<"u"?Zs.exports=e:this.MurmurHash3=e})()});var Ju=F((Tx,Fn)=>{"use strict";a();Fn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Fn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Fn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ra=F((Px,Lt)=>{"use strict";a();var Q=global.process,ct=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};ct(Q)?(Qu=require("assert"),Pt=Ju(),Zu=/^win/i.test(Q.platform),pr=require("events"),typeof pr!="function"&&(pr=pr.EventEmitter),Q.__signal_exit_emitter__?le=Q.__signal_exit_emitter__:(le=Q.__signal_exit_emitter__=new pr,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Lt.exports=function(t,e){if(!ct(global.process))return function(){};Qu.equal(typeof t,"function","a callback must be provided for exit handler"),Nt===!1&&ei();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&bn()};return le.on(r,t),n},bn=function(){!Nt||!ct(global.process)||(Nt=!1,Pt.forEach(function(e){try{Q.removeListener(e,xn[e])}catch{}}),Q.emit=_n,Q.reallyExit=ti,le.count-=1)},Lt.exports.unload=bn,lt=function(e,r,n){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,n))},xn={},Pt.forEach(function(t){xn[t]=function(){if(ct(global.process)){var r=Q.listeners(t);r.length===le.count&&(bn(),lt("exit",null,t),lt("afterexit",null,t),Zu&&t==="SIGHUP"&&(t="SIGINT"),Q.kill(Q.pid,t))}}}),Lt.exports.signals=function(){return Pt},Nt=!1,ei=function(){Nt||!ct(global.process)||(Nt=!0,le.count+=1,Pt=Pt.filter(function(e){try{return Q.on(e,xn[e]),!0}catch{return!1}}),Q.emit=ta,Q.reallyExit=ea)},Lt.exports.load=ei,ti=Q.reallyExit,ea=function(e){ct(global.process)&&(Q.exitCode=e||0,lt("exit",Q.exitCode,null),lt("afterexit",Q.exitCode,null),ti.call(Q,Q.exitCode))},_n=Q.emit,ta=function(e,r){if(e==="exit"&&ct(global.process)){r!==void 0&&(Q.exitCode=r);var n=_n.apply(this,arguments);return lt("exit",Q.exitCode,null),lt("afterexit",Q.exitCode,null),n}else return _n.apply(this,arguments)}):Lt.exports=function(){return function(){}};var Qu,Pt,Zu,pr,le,bn,lt,xn,Nt,ei,ti,ea,_n,ta});var ni=F((Lx,ia)=>{"use strict";a();ia.exports=ri;ri.strict=na;ri.loose=sa;var Om=Object.prototype.toString,Bm={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ri(t){return na(t)||sa(t)}function na(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function sa(t){return Bm[Om.call(t)]}});var ua=F(($x,oa)=>{"use strict";a();var Rm=ni().strict;oa.exports=function(e){if(Rm(e)){var r=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)),r}else return Buffer.from(e)}});var fa=F((qx,mr)=>{"use strict";a();mr.exports=$m;mr.exports.sync=km;mr.exports._getTmpname=si;mr.exports._cleanupOnExit=ii;var Z=require("fs"),Tm=Xu(),aa=ra(),Im=require("path"),ca=ni(),la=ua(),{promisify:Oe}=require("util"),Qe={},Pm=function(){try{return require("worker_threads").threadId}catch{return 0}}(),Nm=0;function si(t){return t+"."+Tm(__filename).hash(String(process.pid)).hash(String(Pm)).hash(String(++Nm)).result()}function ii(t){return()=>{try{Z.unlinkSync(typeof t=="function"?t():t)}catch{}}}function Lm(t){return new Promise(e=>{Qe[t]||(Qe[t]=[]),Qe[t].push(e),Qe[t].length===1&&e()})}function wn(t){return t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}async function jm(t,e,r={}){typeof r=="string"&&(r={encoding:r});let n,s,i=aa(ii(()=>s)),o=Im.resolve(t);try{await Lm(o);let u=await Oe(Z.realpath)(t).catch(()=>t);if(s=si(u),!r.mode||!r.chown){let c=await Oe(Z.stat)(u).catch(()=>{});c&&(r.mode==null&&(r.mode=c.mode),r.chown==null&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid}))}n=await Oe(Z.open)(s,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(s),ca(e)&&(e=la(e)),Buffer.isBuffer(e)?await Oe(Z.write)(n,e,0,e.length,0):e!=null&&await Oe(Z.write)(n,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&await Oe(Z.fsync)(n),await Oe(Z.close)(n),n=null,r.chown&&await Oe(Z.chown)(s,r.chown.uid,r.chown.gid).catch(c=>{if(!wn(c))throw c}),r.mode&&await Oe(Z.chmod)(s,r.mode).catch(c=>{if(!wn(c))throw c}),await Oe(Z.rename)(s,u)}finally{n&&await Oe(Z.close)(n).catch(()=>{}),i(),await Oe(Z.unlink)(s).catch(()=>{}),Qe[o].shift(),Qe[o].length>0?Qe[o][0]():delete Qe[o]}}function $m(t,e,r,n){r instanceof Function&&(n=r,r={});let s=jm(t,e,r);return n&&s.then(n,n),s}function km(t,e,r){typeof r=="string"?r={encoding:r}:r||(r={});try{t=Z.realpathSync(t)}catch{}let n=si(t);if(!r.mode||!r.chown)try{let c=Z.statSync(t);r=Object.assign({},r),r.mode||(r.mode=c.mode),!r.chown&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid})}catch{}let s,i=ii(n),o=aa(i),u=!0;try{if(s=Z.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),ca(e)&&(e=la(e)),Buffer.isBuffer(e)?Z.writeSync(s,e,0,e.length,0):e!=null&&Z.writeSync(s,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&Z.fsyncSync(s),Z.closeSync(s),s=null,r.chown)try{Z.chownSync(n,r.chown.uid,r.chown.gid)}catch(c){if(!wn(c))throw c}if(r.mode)try{Z.chmodSync(n,r.mode)}catch(c){if(!wn(c))throw c}Z.renameSync(n,t),u=!1}finally{if(s)try{Z.closeSync(s)}catch{}o(),u&&i()}}});var ha=F((Mx,Da)=>{"use strict";a();Da.exports=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")}});var pa=F((Gx,da)=>{"use strict";a();var ft=ha(),qm=new Set(["__proto__","prototype","constructor"]),Um=t=>!t.some(e=>qm.has(e));function An(t){let e=t.split("."),r=[];for(let n=0;n<e.length;n++){let s=e[n];for(;s[s.length-1]==="\\"&&e[n+1]!==void 0;)s=s.slice(0,-1)+".",s+=e[++n];r.push(s)}return Um(r)?r:[]}da.exports={get(t,e,r){if(!ft(t)||typeof e!="string")return r===void 0?t:r;let n=An(e);if(n.length!==0){for(let s=0;s<n.length;s++)if(t=t[n[s]],t==null){if(s!==n.length-1)return r;break}return t===void 0?r:t}},set(t,e,r){if(!ft(t)||typeof e!="string")return t;let n=t,s=An(e);for(let i=0;i<s.length;i++){let o=s[i];ft(t[o])||(t[o]={}),i===s.length-1&&(t[o]=r),t=t[o]}return n},delete(t,e){if(!ft(t)||typeof e!="string")return!1;let r=An(e);for(let n=0;n<r.length;n++){let s=r[n];if(n===r.length-1)return delete t[s],!0;if(t=t[s],!ft(t))return!1}},has(t,e){if(!ft(t)||typeof e!="string")return!1;let r=An(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(ft(t)){if(!(r[n]in t))return!1;t=t[r[n]]}else return!1;return!0}}});var Cr=F((p_,Na)=>{"use strict";a();var d0="2.0.0",p0=Number.MAX_SAFE_INTEGER||9007199254740991,m0=16,g0=250,E0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Na.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:m0,MAX_SAFE_BUILD_LENGTH:g0,MAX_SAFE_INTEGER:p0,RELEASE_TYPES:E0,SEMVER_SPEC_VERSION:d0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Fr=F((g_,La)=>{"use strict";a();var y0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};La.exports=y0});var Ut=F((Me,ja)=>{"use strict";a();var{MAX_SAFE_COMPONENT_LENGTH:hi,MAX_SAFE_BUILD_LENGTH:C0,MAX_LENGTH:F0}=Cr(),b0=Fr();Me=ja.exports={};var x0=Me.re=[],_0=Me.safeRe=[],R=Me.src=[],T=Me.t={},w0=0,di="[a-zA-Z0-9-]",A0=[["\\s",1],["\\d",F0],[di,C0]],S0=t=>{for(let[e,r]of A0)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let n=S0(e),s=w0++;b0(t,s,e),T[t]=s,R[s]=e,x0[s]=new RegExp(e,r?"g":void 0),_0[s]=new RegExp(n,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${di}*`);q("MAINVERSION",`(${R[T.NUMERICIDENTIFIER]})\\.(${R[T.NUMERICIDENTIFIER]})\\.(${R[T.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${R[T.NUMERICIDENTIFIERLOOSE]})\\.(${R[T.NUMERICIDENTIFIERLOOSE]})\\.(${R[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${R[T.NUMERICIDENTIFIER]}|${R[T.NONNUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${R[T.NUMERICIDENTIFIERLOOSE]}|${R[T.NONNUMERICIDENTIFIER]})`);q("PRERELEASE",`(?:-(${R[T.PRERELEASEIDENTIFIER]}(?:\\.${R[T.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${R[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[T.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${di}+`);q("BUILD",`(?:\\+(${R[T.BUILDIDENTIFIER]}(?:\\.${R[T.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${R[T.MAINVERSION]}${R[T.PRERELEASE]}?${R[T.BUILD]}?`);q("FULL",`^${R[T.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${R[T.MAINVERSIONLOOSE]}${R[T.PRERELEASELOOSE]}?${R[T.BUILD]}?`);q("LOOSE",`^${R[T.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${R[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${R[T.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${R[T.XRANGEIDENTIFIER]})(?:\\.(${R[T.XRANGEIDENTIFIER]})(?:\\.(${R[T.XRANGEIDENTIFIER]})(?:${R[T.PRERELEASE]})?${R[T.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${R[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[T.XRANGEIDENTIFIERLOOSE]})(?:${R[T.PRERELEASELOOSE]})?${R[T.BUILD]}?)?)?`);q("XRANGE",`^${R[T.GTLT]}\\s*${R[T.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${R[T.GTLT]}\\s*${R[T.XRANGEPLAINLOOSE]}$`);q("COERCE",`(^|[^\\d])(\\d{1,${hi}})(?:\\.(\\d{1,${hi}}))?(?:\\.(\\d{1,${hi}}))?(?:$|[^\\d])`);q("COERCERTL",R[T.COERCE],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${R[T.LONETILDE]}\\s+`,!0);Me.tildeTrimReplace="$1~";q("TILDE",`^${R[T.LONETILDE]}${R[T.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${R[T.LONETILDE]}${R[T.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${R[T.LONECARET]}\\s+`,!0);Me.caretTrimReplace="$1^";q("CARET",`^${R[T.LONECARET]}${R[T.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${R[T.LONECARET]}${R[T.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${R[T.GTLT]}\\s*(${R[T.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${R[T.GTLT]}\\s*(${R[T.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${R[T.GTLT]}\\s*(${R[T.LOOSEPLAIN]}|${R[T.XRANGEPLAIN]})`,!0);Me.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${R[T.XRANGEPLAIN]})\\s+-\\s+(${R[T.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${R[T.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[T.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rn=F((C_,$a)=>{"use strict";a();var v0=Object.freeze({loose:!0}),O0=Object.freeze({}),B0=t=>t?typeof t!="object"?v0:t:O0;$a.exports=B0});var pi=F((b_,Ua)=>{"use strict";a();var ka=/^[0-9]+$/,qa=(t,e)=>{let r=ka.test(t),n=ka.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},R0=(t,e)=>qa(e,t);Ua.exports={compareIdentifiers:qa,rcompareIdentifiers:R0}});var Ee=F((__,za)=>{"use strict";a();var Tn=Fr(),{MAX_LENGTH:Ma,MAX_SAFE_INTEGER:In}=Cr(),{safeRe:Ha,t:Ga}=Ut(),T0=Rn(),{compareIdentifiers:Mt}=pi(),mi=class t{constructor(e,r){if(r=T0(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ma)throw new TypeError(`version is longer than ${Ma} characters`);Tn("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Ha[Ga.LOOSE]:Ha[Ga.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>In||this.major<0)throw new TypeError("Invalid major version");if(this.minor>In||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>In||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<In)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Tn("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Mt(this.major,e.major)||Mt(this.minor,e.minor)||Mt(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(Tn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Mt(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(Tn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Mt(n,s)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),Mt(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};za.exports=mi});var Dt=F((A_,Va)=>{"use strict";a();var Wa=Ee(),I0=(t,e,r=!1)=>{if(t instanceof Wa)return t;try{return new Wa(t,e)}catch(n){if(!r)return null;throw n}};Va.exports=I0});var Ka=F((v_,Ya)=>{"use strict";a();var P0=Dt(),N0=(t,e)=>{let r=P0(t,e);return r?r.version:null};Ya.exports=N0});var Ja=F((B_,Xa)=>{"use strict";a();var L0=Dt(),j0=(t,e)=>{let r=L0(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Xa.exports=j0});var ec=F((T_,Za)=>{"use strict";a();var Qa=Ee(),$0=(t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Qa(t instanceof Qa?t.version:t,r).inc(e,n,s).version}catch{return null}};Za.exports=$0});var nc=F((P_,rc)=>{"use strict";a();var tc=Dt(),k0=(t,e)=>{let r=tc(t,null,!0),n=tc(e,null,!0),s=r.compare(n);if(s===0)return null;let i=s>0,o=i?r:n,u=i?n:r,c=!!o.prerelease.length;if(!!u.prerelease.length&&!c)return!u.patch&&!u.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=c?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};rc.exports=k0});var ic=F((L_,sc)=>{"use strict";a();var q0=Ee(),U0=(t,e)=>new q0(t,e).major;sc.exports=U0});var uc=F(($_,oc)=>{"use strict";a();var M0=Ee(),H0=(t,e)=>new M0(t,e).minor;oc.exports=H0});var cc=F((q_,ac)=>{"use strict";a();var G0=Ee(),z0=(t,e)=>new G0(t,e).patch;ac.exports=z0});var fc=F((M_,lc)=>{"use strict";a();var W0=Dt(),V0=(t,e)=>{let r=W0(t,e);return r&&r.prerelease.length?r.prerelease:null};lc.exports=V0});var Re=F((G_,hc)=>{"use strict";a();var Dc=Ee(),Y0=(t,e,r)=>new Dc(t,r).compare(new Dc(e,r));hc.exports=Y0});var pc=F((W_,dc)=>{"use strict";a();var K0=Re(),X0=(t,e,r)=>K0(e,t,r);dc.exports=X0});var gc=F((Y_,mc)=>{"use strict";a();var J0=Re(),Q0=(t,e)=>J0(t,e,!0);mc.exports=Q0});var Pn=F((X_,yc)=>{"use strict";a();var Ec=Ee(),Z0=(t,e,r)=>{let n=new Ec(t,r),s=new Ec(e,r);return n.compare(s)||n.compareBuild(s)};yc.exports=Z0});var Fc=F((Q_,Cc)=>{"use strict";a();var eg=Pn(),tg=(t,e)=>t.sort((r,n)=>eg(r,n,e));Cc.exports=tg});var xc=F((e3,bc)=>{"use strict";a();var rg=Pn(),ng=(t,e)=>t.sort((r,n)=>rg(n,r,e));bc.exports=ng});var br=F((r3,_c)=>{"use strict";a();var sg=Re(),ig=(t,e,r)=>sg(t,e,r)>0;_c.exports=ig});var Nn=F((s3,wc)=>{"use strict";a();var og=Re(),ug=(t,e,r)=>og(t,e,r)<0;wc.exports=ug});var gi=F((o3,Ac)=>{"use strict";a();var ag=Re(),cg=(t,e,r)=>ag(t,e,r)===0;Ac.exports=cg});var Ei=F((a3,Sc)=>{"use strict";a();var lg=Re(),fg=(t,e,r)=>lg(t,e,r)!==0;Sc.exports=fg});var Ln=F((l3,vc)=>{"use strict";a();var Dg=Re(),hg=(t,e,r)=>Dg(t,e,r)>=0;vc.exports=hg});var jn=F((D3,Oc)=>{"use strict";a();var dg=Re(),pg=(t,e,r)=>dg(t,e,r)<=0;Oc.exports=pg});var yi=F((d3,Bc)=>{"use strict";a();var mg=gi(),gg=Ei(),Eg=br(),yg=Ln(),Cg=Nn(),Fg=jn(),bg=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return mg(t,r,n);case"!=":return gg(t,r,n);case">":return Eg(t,r,n);case">=":return yg(t,r,n);case"<":return Cg(t,r,n);case"<=":return Fg(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Bc.exports=bg});var Tc=F((m3,Rc)=>{"use strict";a();var xg=Ee(),_g=Dt(),{safeRe:$n,t:kn}=Ut(),wg=(t,e)=>{if(t instanceof xg)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match($n[kn.COERCE]);else{let n;for(;(n=$n[kn.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),$n[kn.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;$n[kn.COERCERTL].lastIndex=-1}return r===null?null:_g(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};Rc.exports=wg});var Pc=F((E3,Ic)=>{"use strict";a();Ic.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Lc=F((C3,Nc)=>{"use strict";a();Nc.exports=W;W.Node=ht;W.create=W;function W(t){var e=this;if(e instanceof W||(e=new W),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}W.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};W.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};W.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};W.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)Sg(this,arguments[t]);return this.length};W.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)vg(this,arguments[t]);return this.length};W.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};W.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};W.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};W.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};W.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};W.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};W.prototype.map=function(t,e){e=e||this;for(var r=new W,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};W.prototype.mapReverse=function(t,e){e=e||this;for(var r=new W,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};W.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=t(r,n.value,s),n=n.next;return r};W.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=t(r,n.value,s),n=n.prev;return r};W.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};W.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};W.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)r.push(s.value);return r};W.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>t;n--,s=s.prev)r.push(s.value);return r};W.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<r.length;n++)s=Ag(this,s,r[n]);return i};W.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function Ag(t,e,r){var n=e===t.head?new ht(r,null,e,t):new ht(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function Sg(t,e){t.tail=new ht(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function vg(t,e){t.head=new ht(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ht(t,e,r,n){if(!(this instanceof ht))return new ht(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Pc()(W)}catch{}});var Uc=F((b3,qc)=>{"use strict";a();var Og=Lc(),dt=Symbol("max"),Ge=Symbol("length"),Ht=Symbol("lengthCalculator"),_r=Symbol("allowStale"),pt=Symbol("maxAge"),He=Symbol("dispose"),jc=Symbol("noDisposeOnSet"),fe=Symbol("lruList"),Le=Symbol("cache"),kc=Symbol("updateAgeOnGet"),Ci=()=>1,bi=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[dt]=e.max||1/0,n=e.length||Ci;if(this[Ht]=typeof n!="function"?Ci:n,this[_r]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[pt]=e.maxAge||0,this[He]=e.dispose,this[jc]=e.noDisposeOnSet||!1,this[kc]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[dt]=e||1/0,xr(this)}get max(){return this[dt]}set allowStale(e){this[_r]=!!e}get allowStale(){return this[_r]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[pt]=e,xr(this)}get maxAge(){return this[pt]}set lengthCalculator(e){typeof e!="function"&&(e=Ci),e!==this[Ht]&&(this[Ht]=e,this[Ge]=0,this[fe].forEach(r=>{r.length=this[Ht](r.value,r.key),this[Ge]+=r.length})),xr(this)}get lengthCalculator(){return this[Ht]}get length(){return this[Ge]}get itemCount(){return this[fe].length}rforEach(e,r){r=r||this;for(let n=this[fe].tail;n!==null;){let s=n.prev;$c(this,e,n,r),n=s}}forEach(e,r){r=r||this;for(let n=this[fe].head;n!==null;){let s=n.next;$c(this,e,n,r),n=s}}keys(){return this[fe].toArray().map(e=>e.key)}values(){return this[fe].toArray().map(e=>e.value)}reset(){this[He]&&this[fe]&&this[fe].length&&this[fe].forEach(e=>this[He](e.key,e.value)),this[Le]=new Map,this[fe]=new Og,this[Ge]=0}dump(){return this[fe].map(e=>qn(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[fe]}set(e,r,n){if(n=n||this[pt],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[Ht](r,e);if(this[Le].has(e)){if(i>this[dt])return Gt(this,this[Le].get(e)),!1;let c=this[Le].get(e).value;return this[He]&&(this[jc]||this[He](e,c.value)),c.now=s,c.maxAge=n,c.value=r,this[Ge]+=i-c.length,c.length=i,this.get(e),xr(this),!0}let o=new xi(e,r,i,s,n);return o.length>this[dt]?(this[He]&&this[He](e,r),!1):(this[Ge]+=o.length,this[fe].unshift(o),this[Le].set(e,this[fe].head),xr(this),!0)}has(e){if(!this[Le].has(e))return!1;let r=this[Le].get(e).value;return!qn(this,r)}get(e){return Fi(this,e,!0)}peek(e){return Fi(this,e,!1)}pop(){let e=this[fe].tail;return e?(Gt(this,e),e.value):null}del(e){Gt(this,this[Le].get(e))}load(e){this.reset();let r=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let o=i-r;o>0&&this.set(s.k,s.v,o)}}}prune(){this[Le].forEach((e,r)=>Fi(this,r,!1))}},Fi=(t,e,r)=>{let n=t[Le].get(e);if(n){let s=n.value;if(qn(t,s)){if(Gt(t,n),!t[_r])return}else r&&(t[kc]&&(n.value.now=Date.now()),t[fe].unshiftNode(n));return s.value}},qn=(t,e)=>{if(!e||!e.maxAge&&!t[pt])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[pt]&&r>t[pt]},xr=t=>{if(t[Ge]>t[dt])for(let e=t[fe].tail;t[Ge]>t[dt]&&e!==null;){let r=e.prev;Gt(t,e),e=r}},Gt=(t,e)=>{if(e){let r=e.value;t[He]&&t[He](r.key,r.value),t[Ge]-=r.length,t[Le].delete(r.key),t[fe].removeNode(e)}},xi=class{constructor(e,r,n,s,i){this.key=e,this.value=r,this.length=n,this.now=s,this.maxAge=i||0}},$c=(t,e,r,n)=>{let s=r.value;qn(t,s)&&(Gt(t,r),t[_r]||(s=void 0)),s&&e.call(n,s.value,s.key,t)};qc.exports=bi});var Te=F((_3,zc)=>{"use strict";a();var _i=class t{constructor(e,r){if(r=Rg(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof wi)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Hc(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&$g(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Lg)|(this.options.loose&&jg))+":"+e,s=Mc.get(n);if(s)return s;let i=this.options.loose,o=i?Ae[Fe.HYPHENRANGELOOSE]:Ae[Fe.HYPHENRANGE];e=e.replace(o,Yg(this.options.includePrerelease)),K("hyphen replace",e),e=e.replace(Ae[Fe.COMPARATORTRIM],Ig),K("comparator trim",e),e=e.replace(Ae[Fe.TILDETRIM],Pg),K("tilde trim",e),e=e.replace(Ae[Fe.CARETTRIM],Ng),K("caret trim",e);let u=e.split(" ").map(D=>kg(D,this.options)).join(" ").split(/\s+/).map(D=>Vg(D,this.options));i&&(u=u.filter(D=>(K("loose invalid filter",D,this.options),!!D.match(Ae[Fe.COMPARATORLOOSE])))),K("range list",u);let c=new Map,f=u.map(D=>new wi(D,this.options));for(let D of f){if(Hc(D))return[D];c.set(D.value,D)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return Mc.set(n,l),l}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Gc(n,r)&&e.set.some(s=>Gc(s,r)&&n.every(i=>s.every(o=>i.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Tg(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Kg(this.set[r],e,this.options))return!0;return!1}};zc.exports=_i;var Bg=Uc(),Mc=new Bg({max:1e3}),Rg=Rn(),wi=wr(),K=Fr(),Tg=Ee(),{safeRe:Ae,t:Fe,comparatorTrimReplace:Ig,tildeTrimReplace:Pg,caretTrimReplace:Ng}=Ut(),{FLAG_INCLUDE_PRERELEASE:Lg,FLAG_LOOSE:jg}=Cr(),Hc=t=>t.value==="<0.0.0-0",$g=t=>t.value==="",Gc=(t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(i=>s.intersects(i,e)),s=n.pop();return r},kg=(t,e)=>(K("comp",t,e),t=Mg(t,e),K("caret",t),t=qg(t,e),K("tildes",t),t=Gg(t,e),K("xrange",t),t=Wg(t,e),K("stars",t),t),be=t=>!t||t.toLowerCase()==="x"||t==="*",qg=(t,e)=>t.trim().split(/\s+/).map(r=>Ug(r,e)).join(" "),Ug=(t,e)=>{let r=e.loose?Ae[Fe.TILDELOOSE]:Ae[Fe.TILDE];return t.replace(r,(n,s,i,o,u)=>{K("tilde",t,n,s,i,o,u);let c;return be(s)?c="":be(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:be(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:u?(K("replaceTilde pr",u),c=`>=${s}.${i}.${o}-${u} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,K("tilde return",c),c})},Mg=(t,e)=>t.trim().split(/\s+/).map(r=>Hg(r,e)).join(" "),Hg=(t,e)=>{K("caret",t,e);let r=e.loose?Ae[Fe.CARETLOOSE]:Ae[Fe.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,i,o,u,c)=>{K("caret",t,s,i,o,u,c);let f;return be(i)?f="":be(o)?f=`>=${i}.0.0${n} <${+i+1}.0.0-0`:be(u)?i==="0"?f=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(K("replaceCaret pr",c),i==="0"?o==="0"?f=`>=${i}.${o}.${u}-${c} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}-${c} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u}-${c} <${+i+1}.0.0-0`):(K("no pr"),i==="0"?o==="0"?f=`>=${i}.${o}.${u}${n} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u} <${+i+1}.0.0-0`),K("caret return",f),f})},Gg=(t,e)=>(K("replaceXRanges",t,e),t.split(/\s+/).map(r=>zg(r,e)).join(" ")),zg=(t,e)=>{t=t.trim();let r=e.loose?Ae[Fe.XRANGELOOSE]:Ae[Fe.XRANGE];return t.replace(r,(n,s,i,o,u,c)=>{K("xRange",t,n,s,i,o,u,c);let f=be(i),l=f||be(o),D=l||be(u),d=D;return s==="="&&d&&(s=""),c=e.includePrerelease?"-0":"",f?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&d?(l&&(o=0),u=0,s===">"?(s=">=",l?(i=+i+1,o=0,u=0):(o=+o+1,u=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${u}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:D&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),K("xRange return",n),n})},Wg=(t,e)=>(K("replaceStars",t,e),t.trim().replace(Ae[Fe.STAR],"")),Vg=(t,e)=>(K("replaceGTE0",t,e),t.trim().replace(Ae[e.includePrerelease?Fe.GTE0PRE:Fe.GTE0],"")),Yg=t=>(e,r,n,s,i,o,u,c,f,l,D,d,h)=>(be(n)?r="":be(s)?r=`>=${n}.0.0${t?"-0":""}`:be(i)?r=`>=${n}.${s}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,be(f)?c="":be(l)?c=`<${+f+1}.0.0-0`:be(D)?c=`<${f}.${+l+1}.0-0`:d?c=`<=${f}.${l}.${D}-${d}`:t?c=`<${f}.${l}.${+D+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),Kg=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(K(t[n].semver),t[n].semver!==wi.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var wr=F((A3,Jc)=>{"use strict";a();var Ar=Symbol("SemVer ANY"),vi=class t{static get ANY(){return Ar}constructor(e,r){if(r=Wc(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Si("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Ar?this.value="":this.value=this.operator+this.semver.version,Si("comp",this)}parse(e){let r=this.options.loose?Vc[Yc.COMPARATORLOOSE]:Vc[Yc.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Kc(n[2],this.options.loose):this.semver=Ar}toString(){return this.value}test(e){if(Si("Comparator.test",e,this.options.loose),this.semver===Ar||e===Ar)return!0;if(typeof e=="string")try{e=new Kc(e,this.options)}catch{return!1}return Ai(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Xc(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Xc(this.value,r).test(e.semver):(r=Wc(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Ai(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ai(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Jc.exports=vi;var Wc=Rn(),{safeRe:Vc,t:Yc}=Ut(),Ai=yi(),Si=Fr(),Kc=Ee(),Xc=Te()});var Sr=F((v3,Qc)=>{"use strict";a();var Xg=Te(),Jg=(t,e,r)=>{try{e=new Xg(e,r)}catch{return!1}return e.test(t)};Qc.exports=Jg});var el=F((B3,Zc)=>{"use strict";a();var Qg=Te(),Zg=(t,e)=>new Qg(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Zc.exports=Zg});var rl=F((T3,tl)=>{"use strict";a();var eE=Ee(),tE=Te(),rE=(t,e,r)=>{let n=null,s=null,i=null;try{i=new tE(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new eE(n,r))}),n};tl.exports=rE});var sl=F((P3,nl)=>{"use strict";a();var nE=Ee(),sE=Te(),iE=(t,e,r)=>{let n=null,s=null,i=null;try{i=new sE(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new nE(n,r))}),n};nl.exports=iE});var ul=F((L3,ol)=>{"use strict";a();var Oi=Ee(),oE=Te(),il=br(),uE=(t,e)=>{t=new oE(t,e);let r=new Oi("0.0.0");if(t.test(r)||(r=new Oi("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],i=null;s.forEach(o=>{let u=new Oi(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||il(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||il(r,i))&&(r=i)}return r&&t.test(r)?r:null};ol.exports=uE});var cl=F(($3,al)=>{"use strict";a();var aE=Te(),cE=(t,e)=>{try{return new aE(t,e).range||"*"}catch{return null}};al.exports=cE});var Un=F((q3,hl)=>{"use strict";a();var lE=Ee(),Dl=wr(),{ANY:fE}=Dl,DE=Te(),hE=Sr(),ll=br(),fl=Nn(),dE=jn(),pE=Ln(),mE=(t,e,r,n)=>{t=new lE(t,n),e=new DE(e,n);let s,i,o,u,c;switch(r){case">":s=ll,i=dE,o=fl,u=">",c=">=";break;case"<":s=fl,i=pE,o=ll,u="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hE(t,e,n))return!1;for(let f=0;f<e.set.length;++f){let l=e.set[f],D=null,d=null;if(l.forEach(h=>{h.semver===fE&&(h=new Dl(">=0.0.0")),D=D||h,d=d||h,s(h.semver,D.semver,n)?D=h:o(h.semver,d.semver,n)&&(d=h)}),D.operator===u||D.operator===c||(!d.operator||d.operator===u)&&i(t,d.semver))return!1;if(d.operator===c&&o(t,d.semver))return!1}return!0};hl.exports=mE});var pl=F((M3,dl)=>{"use strict";a();var gE=Un(),EE=(t,e,r)=>gE(t,e,">",r);dl.exports=EE});var gl=F((G3,ml)=>{"use strict";a();var yE=Un(),CE=(t,e,r)=>yE(t,e,"<",r);ml.exports=CE});var Cl=F((W3,yl)=>{"use strict";a();var El=Te(),FE=(t,e,r)=>(t=new El(t,r),e=new El(e,r),t.intersects(e,r));yl.exports=FE});var bl=F((Y3,Fl)=>{"use strict";a();var bE=Sr(),xE=Re();Fl.exports=(t,e,r)=>{let n=[],s=null,i=null,o=t.sort((l,D)=>xE(l,D,r));for(let l of o)bE(l,e,r)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let u=[];for(let[l,D]of n)l===D?u.push(l):!D&&l===o[0]?u.push("*"):D?l===o[0]?u.push(`<=${D}`):u.push(`${l} - ${D}`):u.push(`>=${l}`);let c=u.join(" || "),f=typeof e.raw=="string"?e.raw:String(e);return c.length<f.length?c:e}});var vl=F((X3,Sl)=>{"use strict";a();var xl=Te(),Ri=wr(),{ANY:Bi}=Ri,vr=Sr(),Ti=Re(),_E=(t,e,r={})=>{if(t===e)return!0;t=new xl(t,r),e=new xl(e,r);let n=!1;e:for(let s of t.set){for(let i of e.set){let o=AE(s,i,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},wE=[new Ri(">=0.0.0-0")],_l=[new Ri(">=0.0.0")],AE=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Bi){if(e.length===1&&e[0].semver===Bi)return!0;r.includePrerelease?t=wE:t=_l}if(e.length===1&&e[0].semver===Bi){if(r.includePrerelease)return!0;e=_l}let n=new Set,s,i;for(let h of t)h.operator===">"||h.operator===">="?s=wl(s,h,r):h.operator==="<"||h.operator==="<="?i=Al(i,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(s&&i){if(o=Ti(s.semver,i.semver,r),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let h of n){if(s&&!vr(h,String(s),r)||i&&!vr(h,String(i),r))return null;for(let y of e)if(!vr(h,String(y),r))return!1;return!0}let u,c,f,l,D=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,d=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;D&&D.prerelease.length===1&&i.operator==="<"&&D.prerelease[0]===0&&(D=!1);for(let h of e){if(l=l||h.operator===">"||h.operator===">=",f=f||h.operator==="<"||h.operator==="<=",s){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(u=wl(s,h,r),u===h&&u!==s)return!1}else if(s.operator===">="&&!vr(s.semver,String(h),r))return!1}if(i){if(D&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===D.major&&h.semver.minor===D.minor&&h.semver.patch===D.patch&&(D=!1),h.operator==="<"||h.operator==="<="){if(c=Al(i,h,r),c===h&&c!==i)return!1}else if(i.operator==="<="&&!vr(i.semver,String(h),r))return!1}if(!h.operator&&(i||s)&&o!==0)return!1}return!(s&&f&&!i&&o!==0||i&&l&&!s&&o!==0||d||D)},wl=(t,e,r)=>{if(!t)return e;let n=Ti(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},Al=(t,e,r)=>{if(!t)return e;let n=Ti(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};Sl.exports=_E});var Mn=F((Q3,Rl)=>{"use strict";a();var Ii=Ut(),Ol=Cr(),SE=Ee(),Bl=pi(),vE=Dt(),OE=Ka(),BE=Ja(),RE=ec(),TE=nc(),IE=ic(),PE=uc(),NE=cc(),LE=fc(),jE=Re(),$E=pc(),kE=gc(),qE=Pn(),UE=Fc(),ME=xc(),HE=br(),GE=Nn(),zE=gi(),WE=Ei(),VE=Ln(),YE=jn(),KE=yi(),XE=Tc(),JE=wr(),QE=Te(),ZE=Sr(),ey=el(),ty=rl(),ry=sl(),ny=ul(),sy=cl(),iy=Un(),oy=pl(),uy=gl(),ay=Cl(),cy=bl(),ly=vl();Rl.exports={parse:vE,valid:OE,clean:BE,inc:RE,diff:TE,major:IE,minor:PE,patch:NE,prerelease:LE,compare:jE,rcompare:$E,compareLoose:kE,compareBuild:qE,sort:UE,rsort:ME,gt:HE,lt:GE,eq:zE,neq:WE,gte:VE,lte:YE,cmp:KE,coerce:XE,Comparator:JE,Range:QE,satisfies:ZE,toComparators:ey,maxSatisfying:ty,minSatisfying:ry,minVersion:ny,validRange:sy,outside:iy,gtr:oy,ltr:uy,intersects:ay,simplifyRange:cy,subset:ly,SemVer:SE,re:Ii.re,src:Ii.src,tokens:Ii.t,SEMVER_SPEC_VERSION:Ol.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ol.RELEASE_TYPES,compareIdentifiers:Bl.compareIdentifiers,rcompareIdentifiers:Bl.rcompareIdentifiers}});var Nl=F((ji,$i)=>{"use strict";a();Object.defineProperty(ji,"__esModule",{value:!0});function _y(t){return t.encrypted}var Li=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",s=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{n&&r.connect(),_y(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};ji.default=Li;$i.exports=Li;$i.exports.default=Li});var Ul=F((dw,ql)=>{"use strict";a();var{PassThrough:Ry}=require("stream");ql.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",s=!1;e?s=!(r||n):r=r||"utf8",n&&(r=null);let i=new Ry({objectMode:s});r&&i.setEncoding(r);let o=0,u=[];return i.on("data",c=>{u.push(c),s?o=u.length:o+=c.length}),i.getBufferedValue=()=>e?u:n?Buffer.concat(u,o):u.join(""),i.getBufferedLength=()=>o,i}});var Mi=F((mw,Ir)=>{"use strict";a();var{constants:Ty}=require("buffer"),Iy=require("stream"),{promisify:Py}=require("util"),Ny=Ul(),Ly=Py(Iy.pipeline),Yn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ui(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=Ny(e);return await new Promise((s,i)=>{let o=u=>{u&&n.getBufferedLength()<=Ty.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),i(u)};(async()=>{try{await Ly(t,n),s()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Yn)})}),n.getBufferedValue()}Ir.exports=Ui;Ir.exports.buffer=(t,e)=>Ui(t,{...e,encoding:"buffer"});Ir.exports.array=(t,e)=>Ui(t,{...e,array:!0});Ir.exports.MaxBufferError=Yn});var Hl=F((yw,Ml)=>{"use strict";a();var jy=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),$y=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),ky=new Set([500,502,503,504]),qy={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Uy={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function mt(t){let e=parseInt(t,10);return isFinite(e)?e:0}function My(t){return t?ky.has(t.status):!0}function Hi(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[s,i]=n.split(/=/,2);e[s.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function Hy(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}Ml.exports=class{constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:u}={}){if(u){this._fromObject(u);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Hi(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Hi(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Hy(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&$y.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||jy.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Hi(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)qy[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let s of n)delete r[s]}if(r.warning){let n=r.warning.split(/,/).filter(s=>!/^\s*1[0-9][0-9]/.test(s));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return mt(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return mt(this._rescc["s-maxage"])}if(this._rescc["max-age"])return mt(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+mt(this._rescc["stale-if-error"]),n=e+mt(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+mt(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+mt(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let s=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));s.length?r["if-none-match"]=s.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&My(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let s={};for(let o in this._resHeaders)s[o]=o in r.headers&&!Uy[o]?r.headers[o]:this._resHeaders[o];let i=Object.assign({},r,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var zl=F(Gi=>{"use strict";a();Gi.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var s=!0;for(var i in e){var o=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(s||(r+=","),s=!1,n?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Gi.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Kl=F((vw,Yl)=>{"use strict";a();var Gy=require("events"),Wl=zl(),zy=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Vl=["sqlite","postgres","mysql","mongo","redis","tiered"],zi=class extends Gy{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Wl.stringify,deserialize:Wl.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=zy(i)}if(this.opts.compression){let i=this.opts.compression;this.opts.serialize=i.serialize.bind(i),this.opts.deserialize=i.deserialize.bind(i)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace;let s=i=>async function*(){for await(let[o,u]of typeof i=="function"?i(this.opts.store.namespace):i){let c=await this.opts.deserialize(u);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=s(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=s(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Vl.includes(this.opts.store.opts.dialect)||Vl.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,s=Array.isArray(e),i=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&n.getMany===void 0){let o=[];for(let u of i)o.push(Promise.resolve().then(()=>n.get(u)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(u).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(u=>{let c=[];for(let f of u)c.push(f.value);return c})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return s?o.map((u,c)=>{if(typeof u=="string"&&(u=this.opts.deserialize(u)),u!=null){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(e[c]).then(()=>{});return}return r&&r.raw?u:u.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,n){let s=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(s,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let s=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of s)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(u=>u.value===!0))}return Promise.resolve().then(()=>r.deleteMany(s))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Yl.exports=zi});var rf=F((Uw,tf)=>{"use strict";a();var Xy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];tf.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(Xy)),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var sf=F((Hw,nf)=>{"use strict";a();var{Transform:Jy,PassThrough:Qy}=require("stream"),Ki=require("zlib"),Zy=rf();nf.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Ki.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new Jy({transform(u,c,f){n=!1,f(null,u)},flush(u){u()}}),i=new Qy({autoDestroy:!1,destroy(u,c){t.destroy(),c(u)}}),o=r?Ki.createBrotliDecompress():Ki.createUnzip();return o.once("error",u=>{if(n&&!t.readable){i.end();return}i.destroy(u)}),Zy(t,i),t.pipe(s).pipe(o).pipe(i),i}});var oo=F((zA,xf)=>{"use strict";a();var io=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,s]of this.oldCache.entries())this.onEviction(n,s);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};xf.exports=io});var uo=F((VA,_f)=>{"use strict";a();_f.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let n=r.pop();t.__destroy(...r,async s=>{await Promise.resolve(),n(s)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var Et=F((KA,Bf)=>{"use strict";a();var{URL:wf}=require("url"),DC=require("events"),hC=require("tls"),dC=require("http2"),pC=oo(),mC=uo(),xe=Symbol("currentStreamCount"),Af=Symbol("request"),_e=Symbol("cachedOriginSet"),rt=Symbol("gracefullyClosing"),ss=Symbol("length"),Sf=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],gC=(t,e,r)=>{let n=0,s=t.length;for(;n<s;){let i=n+s>>>1;r(t[i],e)?n=i+1:s=i}return n},EC=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ao=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[_e].length>0&&n[_e].length<e[_e].length&&n[_e].every(s=>e[_e].includes(s))&&n[xe]+e[xe]<=e.remoteSettings.maxConcurrentStreams&&Of(n)}},vf=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[_e].length>0&&e[_e].length<n[_e].length&&e[_e].every(s=>n[_e].includes(s))&&e[xe]+n[xe]<=n.remoteSettings.maxConcurrentStreams)return Of(e),!0}return!1},Of=t=>{t[rt]=!0,t[xe]===0&&t.close()},Jt=class t extends DC{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:n=10,maxCachedTlsSessions:s=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=n,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new pC({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<Sf.length;n++){let s=Sf[n];r+=":",e&&e[s]!==void 0&&(r+=e[s])}return r}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let r in this.queue[e]){let n=this.queue[e][r];n.completed||(n.completed=!0,n())}}_isBetterSession(e,r){return e>r}_accept(e,r,n,s){let i=0;for(;i<r.length&&e[xe]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(n,s,r),r.length=0)}getSession(e,r,n){return new Promise((s,i)=>{Array.isArray(n)&&n.length>0?(n=[...n],s()):n=[{resolve:s,reject:i}];try{if(typeof e=="string")e=new wf(e);else if(!(e instanceof wf))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:l}=r,{hostname:D}=e;if(l&&D!==l)throw new Error(`Origin ${D} differs from servername ${l}`)}}catch(l){for(let D=0;D<n.length;D++)n[D].reject(l);return}let o=this.normalizeOptions(r),u=e.origin;if(o in this.sessions){let l=this.sessions[o],D=-1,d=-1,h;for(let y=0;y<l.length;y++){let E=l[y],b=E.remoteSettings.maxConcurrentStreams;if(b<D)break;if(!E[_e].includes(u))continue;let C=E[xe];C>=b||E[rt]||E.destroyed||(h||(D=b),this._isBetterSession(C,d)&&(h=E,d=C))}if(h){this._accept(h,n,u,r);return}}if(o in this.queue){if(u in this.queue[o]){this.queue[o][u].listeners.push(...n);return}}else this.queue[o]={[ss]:0};let c=()=>{o in this.queue&&this.queue[o][u]===f&&(delete this.queue[o][u],--this.queue[o][ss]===0&&delete this.queue[o])},f=async()=>{this._sessionCount++;let l=`${u}:${o}`,D=!1,d;try{let h={...r};h.settings===void 0&&(h.settings=this.settings),h.session===void 0&&(h.session=this.tlsSessionCache.get(l)),d=await(h.createConnection||this.createConnection).call(this,e,h),h.createConnection=()=>d;let E=dC.connect(e,h);E[xe]=0,E[rt]=!1;let b=()=>{let{socket:_}=E,A;return _.servername===!1?(_.servername=_.remoteAddress,A=E.originSet,_.servername=!1):A=E.originSet,A},C=()=>E[xe]<E.remoteSettings.maxConcurrentStreams;E.socket.once("session",_=>{this.tlsSessionCache.set(l,_)}),E.once("error",_=>{for(let A=0;A<n.length;A++)n[A].reject(_);this.tlsSessionCache.delete(l)}),E.setTimeout(this.timeout,()=>{E.destroy()}),E.once("close",()=>{if(this._sessionCount--,D){this._emptySessionCount--;let _=this.sessions[o];_.length===1?delete this.sessions[o]:_.splice(_.indexOf(E),1)}else{c();let _=new Error("Session closed without receiving a SETTINGS frame");_.code="HTTP2WRAPPER_NOSETTINGS";for(let A=0;A<n.length;A++)n[A].reject(_)}this._processQueue()});let v=()=>{let _=this.queue[o];if(!_)return;let A=E[_e];for(let j=0;j<A.length;j++){let z=A[j];if(z in _){let{listeners:k,completed:he}=_[z],x=0;for(;x<k.length&&C();)k[x].resolve(E),x++;if(_[z].listeners.splice(0,x),_[z].listeners.length===0&&!he&&(delete _[z],--_[ss]===0)){delete this.queue[o];break}if(!C())break}}};E.on("origin",()=>{E[_e]=b()||[],E[rt]=!1,vf(this.sessions[o],E),!(E[rt]||!C())&&(v(),C()&&ao(this.sessions[o],E))}),E.once("remoteSettings",()=>{if(f.destroyed){let _=new Error("Agent has been destroyed");for(let A=0;A<n.length;A++)n[A].reject(_);E.destroy();return}if(E.setLocalWindowSize&&E.setLocalWindowSize(1024*1024*4),E[_e]=b()||[],E.socket.encrypted){let _=E[_e][0];if(_!==u){let A=new Error(`Requested origin ${u} does not match server ${_}`);for(let j=0;j<n.length;j++)n[j].reject(A);E.destroy();return}}c();{let _=this.sessions;if(o in _){let A=_[o];A.splice(gC(A,E,EC),0,E)}else _[o]=[E]}D=!0,this._emptySessionCount++,this.emit("session",E),this._accept(E,n,u,r),E[xe]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),E.on("remoteSettings",()=>{C()&&(v(),C()&&ao(this.sessions[o],E))})}),E[Af]=E.request,E.request=(_,A)=>{if(E[rt])throw new Error("The session is gracefully closing. No new streams are allowed.");let j=E[Af](_,A);return E.ref(),E[xe]++===0&&this._emptySessionCount--,j.once("close",()=>{if(--E[xe]===0&&(this._emptySessionCount++,E.unref(),this._emptySessionCount>this.maxEmptySessions||E[rt])){E.close();return}E.destroyed||E.closed||C()&&!vf(this.sessions[o],E)&&(ao(this.sessions[o],E),v(),E[xe]===0&&this._processQueue())}),j}}catch(h){c(),this._sessionCount--;for(let y=0;y<n.length;y++)n[y].reject(h)}};f.listeners=n,f.completed=!1,f.destroyed=!1,this.queue[o][u]=f,this.queue[o][ss]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:u=>{try{let c=u.request(n,s);mC(c),i(c)}catch(c){o(c)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,s=e.hostname;typeof r.servername>"u"&&(r.servername=s);let i=hC.connect(n,s,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:n}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:n}=this;for(let s in n){let i=n[s];for(let o=0;o<i.length;o++){let u=i[o];if(u[xe]===0&&(r++,u.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:n}=this;for(let s in r){let i=r[s];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let s in n){let i=n[s];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Jt.kCurrentStreamCount=xe;Jt.kGracefullyClosing=rt;Bf.exports={Agent:Jt,globalAgent:new Jt}});var lo=F((JA,Rf)=>{"use strict";a();var{Readable:yC}=require("stream"),co=class extends yC{constructor(e,r){super({emitClose:!1,autoDestroy:!0,highWaterMark:r}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,r){this.readableEnded||(this.aborted=!0),r(),this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Rf.exports=co});var If=F((ZA,Tf)=>{"use strict";a();Tf.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var Vr=F((rS,Pf)=>{"use strict";a();var yt=(t,e,r)=>{Pf.exports[e]=class extends t{constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}};yt(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});yt(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);yt(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);yt(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);yt(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);yt(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);yt(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var Lf=F((sS,Nf)=>{"use strict";a();Nf.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var fo=F((oS,jf)=>{"use strict";a();var{ERR_INVALID_HTTP_TOKEN:CC}=Vr(),FC=Lf(),bC=/^[\^`\-\w!#$%&*+.|~]+$/;jf.exports=t=>{if(typeof t!="string"||!bC.test(t)&&!FC(t))throw new CC("Header name",t)}});var Do=F((aS,$f)=>{"use strict";a();var{ERR_HTTP_INVALID_HEADER_VALUE:xC,ERR_INVALID_CHAR:_C}=Vr(),wC=/[^\t\u0020-\u007E\u0080-\u00FF]/;$f.exports=(t,e)=>{if(typeof e>"u")throw new xC(e,t);if(wC.test(e))throw new _C("header content",t)}});var Uf=F((lS,qf)=>{"use strict";a();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:kf}=Vr(),AC={has(t,e){let r=t.session===void 0?t:t.session.socket;return e in t||e in r},get(t,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return t[e].bind(t);case"writable":case"destroyed":return t[e];case"readable":return t.destroyed?!1:t.readable;case"setTimeout":{let{session:r}=t;return r!==void 0?r.setTimeout.bind(r):t.setTimeout.bind(t)}case"write":case"read":case"pause":case"resume":throw new kf;default:{let r=t.session===void 0?t:t.session.socket,n=r[e];return typeof n=="function"?n.bind(r):n}}},getPrototypeOf(t){return t.session!==void 0?Reflect.getPrototypeOf(t.session.socket):Reflect.getPrototypeOf(t)},set(t,e,r){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return t[e]=r,!0;case"setTimeout":{let{session:n}=t;return n===void 0?t.setTimeout=r:n.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new kf;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};qf.exports=AC});var go=F((DS,Vf)=>{"use strict";a();var{URL:ho,urlToHttpOptions:Mf}=require("url"),SC=require("http2"),{Writable:vC}=require("stream"),{Agent:OC,globalAgent:BC}=Et(),RC=lo(),TC=If(),{ERR_INVALID_ARG_TYPE:is,ERR_INVALID_PROTOCOL:IC,ERR_HTTP_HEADERS_SENT:Hf}=Vr(),PC=fo(),NC=Do(),LC=Uf(),{HTTP2_HEADER_STATUS:Gf,HTTP2_HEADER_METHOD:zf,HTTP2_HEADER_PATH:Wf,HTTP2_HEADER_AUTHORITY:Yr,HTTP2_METHOD_CONNECT:jC}=SC.constants,pe=Symbol("headers"),Qt=Symbol("origin"),Kr=Symbol("session"),po=Symbol("options"),os=Symbol("flushedHeaders"),Zt=Symbol("jobs"),Xr=Symbol("pendingAgentPromise"),mo=class extends vC{constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=Mf(new ho(e)):e instanceof ho?e=Mf(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[Kr]=r.h2session,this[Kr].destroyed)throw new Error("The session has been closed already");this.protocol=this[Kr].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new OC({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=BC;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new is("options.agent",["http2wrapper.Agent-like Object","undefined","false"],r.agent);if(this.agent&&(this.protocol=this.agent.protocol),r.protocol&&r.protocol!==this.protocol)throw new IC(r.protocol,this.protocol);r.port||(r.port=r.defaultPort||this.agent&&this.agent.defaultPort||443),r.host=r.hostname||r.host||"localhost",delete r.hostname;let{timeout:s}=r;r.timeout=void 0,this[pe]=Object.create(null),this[Zt]=[],this[Xr]=void 0,this.socket=null,this.connection=null,this.method=r.method||"GET",this.method==="CONNECT"&&(r.path==="/"||r.path===void 0)||(this.path=r.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:i}=r;if(i)for(let u in i)this.setHeader(u,i[u]);r.auth&&!("authorization"in this[pe])&&(this[pe].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[po]=r,this[Qt]=new ho(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...u)=>o.destroyed?this.agent.createConnection(...u):o,this.agent.getSession(this[Qt],this[po]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[os]=!1}get method(){return this[pe][zf]}set method(e){e&&(this[pe][zf]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?Yr:Wf;return this[pe][e]}set path(e){if(e){let r=this.method==="CONNECT"?Yr:Wf;this[pe][r]=e}}get host(){return this[Qt].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let s=()=>this._request.write(e,r,n);this._request?s():this[Zt].push(s)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Zt].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,r){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[Xr]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[os]||this.destroyed)return;this[os]=!0;let e=this.method===jC,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||TC(n,this,["timeout","continue"]),n.once("error",i=>{this.destroy(i)}),n.once("aborted",()=>{let{res:i}=this;i?(i.aborted=!0,i.emit("aborted"),i.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let s=(i,o,u)=>{let c=new RC(this.socket,n.readableHighWaterMark);this.res=c,c.url=`${this[Qt].origin}${this.path}`,c.req=this,c.statusCode=i[Gf],c.headers=i,c.rawHeaders=u,c.once("end",()=>{c.complete=!0,c.socket=null,c.connection=null}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!c._dumped&&!c.push(f)&&n.pause()}),n.once("end",()=>{this.aborted||c.push(null)}),this.emit("response",c)||c._dump())};n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[Gf]})),n.once("trailers",(i,o,u)=>{let{res:c}=this;if(c===null){s(i,o,u);return}c.trailers=i,c.rawTrailers=u}),n.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let u=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.once("end",u):u();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(n,LC);for(let i of this[Zt])i();this[Zt].length=0,this.emit("socket",this.socket)};if(!(Yr in this[pe])&&!e&&(this[pe][Yr]=this[Qt].host),this[Kr])try{r(this[Kr].request(this[pe]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Qt],this[po],this[pe]);this[Xr]=n,r(await n),this[Xr]=!1}catch(n){this[Xr]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[pe])}hasHeader(e){if(typeof e!="string")throw new is("name","string",e);return!!this[pe][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new is("name","string",e);return this[pe][e.toLowerCase()]}get headersSent(){return this[os]}removeHeader(e){if(typeof e!="string")throw new is("name","string",e);if(this.headersSent)throw new Hf("remove");delete this[pe][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new Hf("set");PC(e),NC(e,r);let n=e.toLowerCase();if(n==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}n==="host"&&this.method==="CONNECT"?this[pe][Yr]=r:this[pe][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Zt].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Vf.exports=mo});var Kf=F((dS,Yf)=>{"use strict";a();var $C=require("tls");Yf.exports=(t={},e=$C.connect)=>new Promise((r,n)=>{let s=!1,i,o=async()=>{await c,i.off("timeout",u),i.off("error",n),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:s}),s&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:s}))},u=async()=>{s=!0,o()},c=(async()=>{try{i=await e(t,o),i.on("error",n),i.once("timeout",u)}catch(f){n(f)}})()})});var Jf=F((mS,Xf)=>{"use strict";a();var{isIP:kC}=require("net"),qC=require("assert"),UC=t=>{if(t[0]==="["){let r=t.indexOf("]");return qC(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};Xf.exports=t=>{let e=UC(t);return kC(e)?"":e}});var iD=F((ES,Jr)=>{"use strict";a();var{URL:Qf,urlToHttpOptions:Zf}=require("url"),eD=require("http"),Eo=require("https"),MC=Kf(),HC=oo(),{Agent:GC,globalAgent:zC}=Et(),WC=go(),VC=Jf(),tD=uo(),rD=new HC({maxSize:100}),YC=new Map,KC=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let s=()=>{t.removeSocket(e,r)};e.on("close",s);let i=()=>{let{freeSockets:u}=t;for(let c of Object.values(u))if(c.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},nD=(t,e=new Map,r=void 0)=>async n=>{let s=`${n.host}:${n.port}:${n.ALPNProtocols.sort()}`;if(!t.has(s)){if(e.has(s))return{alpnProtocol:(await e.get(s)).alpnProtocol};let{path:i}=n;n.path=n.socketPath;let o=MC(n,r);e.set(s,o);try{let u=await o;return t.set(s,u.alpnProtocol),e.delete(s),n.path=i,u}catch(u){throw e.delete(s),n.path=i,u}}return{alpnProtocol:t.get(s)}},sD=nD(rD,YC);Jr.exports=async(t,e,r)=>{if(typeof t=="string"?t=Zf(new Qf(t)):t instanceof Qf?t=Zf(t):t={...t},typeof e=="function"||e===void 0?(r=e,e=t):e=Object.assign(t,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||VC(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?Eo.globalAgent:eD.globalAgent;let s=e.resolveProtocol||sD,{agent:i}=e;if(i!==void 0&&i!==!1&&i.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(n){e.resolveSocket=!0;let{socket:o,alpnProtocol:u,timeout:c}=await s(e);if(c){o&&o.destroy();let l=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw l.code="ETIMEDOUT",l.ms=e.timeout,l}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let f=u==="h2";if(i&&(i=f?i.http2:i.https,e.agent=i),i===void 0&&(i=f?zC:Eo.globalAgent),o)if(i===!1)o.destroy();else{let l=(f?GC:Eo.Agent).prototype.createConnection;i.createConnection===l?f?e._reuseSocket=o:KC(i,o,e):o.destroy()}if(f)return tD(new WC(e,r))}else i&&(e.agent=i.http);return tD(eD.request(e,r))};Jr.exports.protocolCache=rD;Jr.exports.resolveProtocol=sD;Jr.exports.createResolveProtocol=nD});var yo=F((CS,oD)=>{"use strict";a();var XC=require("stream"),JC=require("tls"),QC=new JC.TLSSocket(new XC.PassThrough)._handle._parentWrap.constructor;oD.exports=QC});var Fo=F((bS,uD)=>{"use strict";a();var Co=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};uD.exports=Co});var cD=F((_S,aD)=>{"use strict";a();var ZC=(t,e,r)=>{if(!r.some(s=>typeof s==="string"?typeof e===s:e instanceof s)){let s=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${s.join(" or ")}, got ${typeof e}`)}};aD.exports=ZC});var bo=F((AS,fD)=>{"use strict";a();var{URL:lD}=require("url"),us=cD();fD.exports=(t,e)=>{us("proxyOptions",e,["object"]),us("proxyOptions.headers",e.headers,["object","undefined"]),us("proxyOptions.raw",e.raw,["boolean","undefined"]),us("proxyOptions.url",e.url,[lD,"string"]);let r=new lD(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var as=F((vS,DD)=>{"use strict";a();DD.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let n=`${e}:${r}`,s=`Basic ${Buffer.from(n).toString("base64")}`;return{"proxy-authorization":s,authorization:s}}return{}}});var gD=F((BS,mD)=>{"use strict";a();var eF=require("tls"),tF=require("http"),hD=require("https"),rF=yo(),{globalAgent:nF}=Et(),sF=Fo(),dD=bo(),iF=as(),pD=(t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:o}=n,u=await nF.request(s,n,{...iF(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});u.once("error",r),u.once("response",c=>{let f=c[":status"];if(f!==200){r(new sF(f,""));return}let l=t instanceof hD.Agent;if(o&&l){e.socket=u;let d=eF.connect(e);d.once("close",()=>{u.destroy()}),r(null,d);return}let D=new rF(u);D.encrypted=!1,D._handle.getpeername=d=>{d.family=void 0,d.address=void 0,d.port=void 0},r(null,D)})}catch(n){r(n)}})()},xo=class extends tF.Agent{constructor(e){super(e),dD(this,e.proxyOptions)}createConnection(e,r){pD(this,e,r)}},_o=class extends hD.Agent{constructor(e){super(e),dD(this,e.proxyOptions)}createConnection(e,r){pD(this,e,r)}};mD.exports={HttpOverHttp2:xo,HttpsOverHttp2:_o}});var Ao=F((TS,ED)=>{"use strict";a();var{Agent:oF}=Et(),uF=yo(),aF=Fo(),cF=bo(),wo=class extends oF{constructor(e){super(e),cF(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,o]=await this._getProxyStream(n);if(i!==200)throw new aF(i,o);if(this.proxyOptions.raw)r.socket=s;else{let u=new uF(s);return u.encrypted=!1,u._handle.getpeername=c=>{c.family=void 0,c.address=void 0,c.port=void 0},u}return super.createConnection(e,r)}};ED.exports=wo});var CD=F((PS,yD)=>{"use strict";a();var{globalAgent:lF}=Et(),fF=Ao(),DF=as(),hF=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),So=class extends fF{async _getProxyStream(e){let{proxyOptions:r}=this,n={...DF(this),...r.headers,":method":"CONNECT",":authority":e},s=await lF.request(r.url,r,n),i=await hF(s);return[s,i,""]}};yD.exports=So});var bD=F((LS,FD)=>{"use strict";a();var dF=require("http"),pF=require("https"),mF=Ao(),gF=as(),EF=t=>new Promise((e,r)=>{let n=(s,i,o)=>{i.unshift(o),t.off("error",r),e([i,s.statusCode,s.statusMessage])};t.once("error",r),t.once("connect",n)}),cs=class extends mF{async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,o=(n.protocol==="https:"?pF:dF).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...gF(this),...s,host:e},method:"CONNECT"}).end();return EF(o)}};FD.exports={Http2OverHttp:cs,Http2OverHttps:cs}});var _D=F(($S,xD)=>{"use strict";a();var yF=require("http2"),{Agent:CF,globalAgent:FF}=Et(),vo=go(),bF=lo(),xF=iD(),{HttpOverHttp2:_F,HttpsOverHttp2:wF}=gD(),AF=CD(),{Http2OverHttp:SF,Http2OverHttps:vF}=bD(),OF=fo(),BF=Do(),RF=(t,e,r)=>new vo(t,e,r),TF=(t,e,r)=>{let n=new vo(t,e,r);return n.end(),n};xD.exports={...yF,ClientRequest:vo,IncomingMessage:bF,Agent:CF,globalAgent:FF,request:RF,get:TF,auto:xF,proxies:{HttpOverHttp2:_F,HttpsOverHttp2:wF,Http2OverHttp2:AF,Http2OverHttp:SF,Http2OverHttps:vF},validateHeaderName:OF,validateHeaderValue:BF}});var Po=F(Ft=>{"use strict";a();Ft.parse=Ft.decode=ZF;Ft.stringify=Ft.encode=qD;Ft.safe=tr;Ft.unsafe=Es;var Io=typeof process<"u"&&process.platform==="win32"?`\r
|
|
2
|
+
"use strict";var Mp=Object.create;var wu=Object.defineProperty;var Hp=Object.getOwnPropertyDescriptor;var Gp=Object.getOwnPropertyNames;var zp=Object.getPrototypeOf,Wp=Object.prototype.hasOwnProperty;var Vp=(t,e)=>()=>(t&&(e=t(t=0)),e);var F=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Yp=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gp(e))!Wp.call(t,s)&&s!==r&&wu(t,s,{get:()=>e[s],enumerable:!(n=Hp(e,s))||n.enumerable});return t};var I=(t,e,r)=>(r=t!=null?Mp(zp(t)):{},Yp(e||!t||!t.__esModule?wu(r,"default",{value:t,enumerable:!0}):r,t));var Kp,m,a=Vp(()=>{"use strict";Kp=()=>typeof document>"u"?new URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,m=Kp()});var ju=F((gx,$u)=>{"use strict";a();var Xe=require("constants"),gm=process.cwd,gn=null,Em=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gn||(gn=gm.call(process)),gn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ks=process.chdir,process.chdir=function(t){gn=null,Ks.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ks));var Ks;$u.exports=ym;function ym(t){Xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(l,D,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(l,D,d,h){h&&process.nextTick(h)},t.lchownSync=function(){}),Em==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(l){function D(d,h,y){var E=Date.now(),b=0;l(d,h,function C(v){if(v&&(v.code==="EACCES"||v.code==="EPERM"||v.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(h,function(_,A){_&&_.code==="ENOENT"?l(d,h,C):y(v)})},b),b<100&&(b+=10);return}y&&y(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(l){function D(d,h,y,E,b,C){var v;if(C&&typeof C=="function"){var _=0;v=function(A,$,z){if(A&&A.code==="EAGAIN"&&_<10)return _++,l.call(t,d,h,y,E,b,v);C.apply(this,arguments)}}return l.call(t,d,h,y,E,b,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(l){return function(D,d,h,y,E){for(var b=0;;)try{return l.call(t,D,d,h,y,E)}catch(C){if(C.code==="EAGAIN"&&b<10){b++;continue}throw C}}}(t.readSync);function e(l){l.lchmod=function(D,d,h){l.open(D,Xe.O_WRONLY|Xe.O_SYMLINK,d,function(y,E){if(y){h&&h(y);return}l.fchmod(E,d,function(b){l.close(E,function(C){h&&h(b||C)})})})},l.lchmodSync=function(D,d){var h=l.openSync(D,Xe.O_WRONLY|Xe.O_SYMLINK,d),y=!0,E;try{E=l.fchmodSync(h,d),y=!1}finally{if(y)try{l.closeSync(h)}catch{}else l.closeSync(h)}return E}}function r(l){Xe.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(D,d,h,y){l.open(D,Xe.O_SYMLINK,function(E,b){if(E){y&&y(E);return}l.futimes(b,d,h,function(C){l.close(b,function(v){y&&y(C||v)})})})},l.lutimesSync=function(D,d,h){var y=l.openSync(D,Xe.O_SYMLINK),E,b=!0;try{E=l.futimesSync(y,d,h),b=!1}finally{if(b)try{l.closeSync(y)}catch{}else l.closeSync(y)}return E}):l.futimes&&(l.lutimes=function(D,d,h,y){y&&process.nextTick(y)},l.lutimesSync=function(){})}function n(l){return l&&function(D,d,h){return l.call(t,D,d,function(y){f(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(D,d){try{return l.call(t,D,d)}catch(h){if(!f(h))throw h}}}function i(l){return l&&function(D,d,h,y){return l.call(t,D,d,h,function(E){f(E)&&(E=null),y&&y.apply(this,arguments)})}}function o(l){return l&&function(D,d,h){try{return l.call(t,D,d,h)}catch(y){if(!f(y))throw y}}}function u(l){return l&&function(D,d,h){typeof d=="function"&&(h=d,d=null);function y(E,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),h&&h.apply(this,arguments)}return d?l.call(t,D,d,y):l.call(t,D,y)}}function c(l){return l&&function(D,d){var h=d?l.call(t,D,d):l.call(t,D);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function f(l){if(!l||l.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Uu=F((yx,qu)=>{"use strict";a();var ku=require("stream").Stream;qu.exports=Cm;function Cm(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);ku.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),u=0,c=o.length;u<c;u++){var f=o[u];this[f]=s[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(l,D){if(l){i.emit("error",l),i.readable=!1;return}i.fd=D,i.emit("open",D),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);ku.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,u=i.length;o<u;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Hu=F((Fx,Mu)=>{"use strict";a();Mu.exports=bm;var Fm=Object.getPrototypeOf||function(t){return t.__proto__};function bm(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Fm(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Vu=F((xx,Qs)=>{"use strict";a();var se=require("fs"),xm=ju(),_m=Uu(),wm=Hu(),En=require("util"),de,Cn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(de=Symbol.for("graceful-fs.queue"),Cn=Symbol.for("graceful-fs.previous")):(de="___graceful-fs.queue",Cn="___graceful-fs.previous");function Am(){}function Wu(t,e){Object.defineProperty(t,de,{get:function(){return e}})}var ut=Am;En.debuglog?ut=En.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ut=function(){var t=En.format.apply(En,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
3
|
+
GFS4: `),console.error(t)});se[de]||(Gu=global[de]||[],Wu(se,Gu),se.close=function(t){function e(r,n){return t.call(se,r,function(s){s||zu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Cn,{value:t}),e}(se.close),se.closeSync=function(t){function e(r){t.apply(se,arguments),zu()}return Object.defineProperty(e,Cn,{value:t}),e}(se.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ut(se[de]),require("assert").equal(se[de].length,0)}));var Gu;global[de]||Wu(global,se[de]);Qs.exports=Xs(wm(se));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!se.__patched&&(Qs.exports=Xs(se),se.__patched=!0);function Xs(t){xm(t),t.gracefulify=Xs,t.createReadStream=$,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(x,O,T){return typeof O=="function"&&(T=O,O=null),U(x,O,T);function U(H,M,L,j){return e(H,M,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Tt([U,[H,M,L],P,j||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return n(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return i(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(x,O,T,U){return typeof T=="function"&&(U=T,T=0),H(x,O,T,U);function H(M,L,j,P,G){return u(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(x,O,T){typeof O=="function"&&(T=O,O=null);var U=l.test(process.version)?function(L,j,P,G){return f(L,H(L,j,P,G))}:function(L,j,P,G){return f(L,j,H(L,j,P,G))};return U(x,O,T);function H(M,L,j,P){return function(G,N){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Tt([U,[M,L,j],G,P||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof j=="function"&&j.call(this,G,N))}}}if(process.version.substr(0,4)==="v0.8"){var d=_m(t);C=d.ReadStream,_=d.WriteStream}var h=t.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=v);var y=t.WriteStream;y&&(_.prototype=Object.create(y.prototype),_.prototype.open=A),Object.defineProperty(t,"ReadStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(x){_=x},enumerable:!0,configurable:!0});var E=C;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});var b=_;Object.defineProperty(t,"FileWriteStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0});function C(x,O){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function v(){var x=this;he(x.path,x.flags,x.mode,function(O,T){O?(x.autoClose&&x.destroy(),x.emit("error",O)):(x.fd=T,x.emit("open",T),x.read())})}function _(x,O){return this instanceof _?(y.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function A(){var x=this;he(x.path,x.flags,x.mode,function(O,T){O?(x.destroy(),x.emit("error",O)):(x.fd=T,x.emit("open",T))})}function $(x,O){return new t.ReadStream(x,O)}function z(x,O){return new t.WriteStream(x,O)}var k=t.open;t.open=he;function he(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return k(M,L,j,function(N,Up){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Tt([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return t}function Tt(t){ut("ENQUEUE",t[0].name,t[1]),se[de].push(t),Js()}var yn;function zu(){for(var t=Date.now(),e=0;e<se[de].length;++e)se[de][e].length>2&&(se[de][e][3]=t,se[de][e][4]=t);Js()}function Js(){if(clearTimeout(yn),yn=void 0,se[de].length!==0){var t=se[de].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ut("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ut("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(ut("RETRY",e.name,r),e.apply(null,r.concat([s]))):se[de].push(t)}yn===void 0&&(yn=setTimeout(Js,0))}}});var Xu=F((Bx,Zs)=>{"use strict";a();(function(){var t;function e(r,n){var s=this instanceof e?this:t;if(s.reset(n),typeof r=="string"&&r.length>0&&s.hash(r),s!==this)return s}e.prototype.hash=function(r){var n,s,i,o,u;switch(u=r.length,this.len+=u,s=this.k1,i=0,this.rem){case 0:s^=u>i?r.charCodeAt(i++)&65535:0;case 1:s^=u>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=u>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=u>i?(r.charCodeAt(i)&255)<<24:0,s^=u>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=u+this.rem&3,u-=this.rem,u>0){for(n=this.h1;s=s*11601+(s&65535)*3432906752&4294967295,s=s<<15|s>>>17,s=s*13715+(s&65535)*461832192&4294967295,n^=s,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(i>=u);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),s^=(o&255)<<24^(o&65280)>>8;switch(s=0,this.rem){case 3:s^=(r.charCodeAt(i+2)&65535)<<16;case 2:s^=(r.charCodeAt(i+1)&65535)<<8;case 1:s^=r.charCodeAt(i)&65535}this.h1=n}return this.k1=s,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof Zs<"u"?Zs.exports=e:this.MurmurHash3=e})()});var Ju=F((Tx,Fn)=>{"use strict";a();Fn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Fn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Fn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ra=F((Px,Lt)=>{"use strict";a();var Q=global.process,ct=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};ct(Q)?(Qu=require("assert"),Pt=Ju(),Zu=/^win/i.test(Q.platform),pr=require("events"),typeof pr!="function"&&(pr=pr.EventEmitter),Q.__signal_exit_emitter__?le=Q.__signal_exit_emitter__:(le=Q.__signal_exit_emitter__=new pr,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Lt.exports=function(t,e){if(!ct(global.process))return function(){};Qu.equal(typeof t,"function","a callback must be provided for exit handler"),Nt===!1&&ei();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&bn()};return le.on(r,t),n},bn=function(){!Nt||!ct(global.process)||(Nt=!1,Pt.forEach(function(e){try{Q.removeListener(e,xn[e])}catch{}}),Q.emit=_n,Q.reallyExit=ti,le.count-=1)},Lt.exports.unload=bn,lt=function(e,r,n){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,n))},xn={},Pt.forEach(function(t){xn[t]=function(){if(ct(global.process)){var r=Q.listeners(t);r.length===le.count&&(bn(),lt("exit",null,t),lt("afterexit",null,t),Zu&&t==="SIGHUP"&&(t="SIGINT"),Q.kill(Q.pid,t))}}}),Lt.exports.signals=function(){return Pt},Nt=!1,ei=function(){Nt||!ct(global.process)||(Nt=!0,le.count+=1,Pt=Pt.filter(function(e){try{return Q.on(e,xn[e]),!0}catch{return!1}}),Q.emit=ta,Q.reallyExit=ea)},Lt.exports.load=ei,ti=Q.reallyExit,ea=function(e){ct(global.process)&&(Q.exitCode=e||0,lt("exit",Q.exitCode,null),lt("afterexit",Q.exitCode,null),ti.call(Q,Q.exitCode))},_n=Q.emit,ta=function(e,r){if(e==="exit"&&ct(global.process)){r!==void 0&&(Q.exitCode=r);var n=_n.apply(this,arguments);return lt("exit",Q.exitCode,null),lt("afterexit",Q.exitCode,null),n}else return _n.apply(this,arguments)}):Lt.exports=function(){return function(){}};var Qu,Pt,Zu,pr,le,bn,lt,xn,Nt,ei,ti,ea,_n,ta});var ni=F((Lx,ia)=>{"use strict";a();ia.exports=ri;ri.strict=na;ri.loose=sa;var Om=Object.prototype.toString,Bm={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ri(t){return na(t)||sa(t)}function na(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function sa(t){return Bm[Om.call(t)]}});var ua=F((jx,oa)=>{"use strict";a();var Rm=ni().strict;oa.exports=function(e){if(Rm(e)){var r=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)),r}else return Buffer.from(e)}});var fa=F((qx,mr)=>{"use strict";a();mr.exports=jm;mr.exports.sync=km;mr.exports._getTmpname=si;mr.exports._cleanupOnExit=ii;var Z=require("fs"),Tm=Xu(),aa=ra(),Im=require("path"),ca=ni(),la=ua(),{promisify:Oe}=require("util"),Qe={},Pm=function(){try{return require("worker_threads").threadId}catch{return 0}}(),Nm=0;function si(t){return t+"."+Tm(__filename).hash(String(process.pid)).hash(String(Pm)).hash(String(++Nm)).result()}function ii(t){return()=>{try{Z.unlinkSync(typeof t=="function"?t():t)}catch{}}}function Lm(t){return new Promise(e=>{Qe[t]||(Qe[t]=[]),Qe[t].push(e),Qe[t].length===1&&e()})}function wn(t){return t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}async function $m(t,e,r={}){typeof r=="string"&&(r={encoding:r});let n,s,i=aa(ii(()=>s)),o=Im.resolve(t);try{await Lm(o);let u=await Oe(Z.realpath)(t).catch(()=>t);if(s=si(u),!r.mode||!r.chown){let c=await Oe(Z.stat)(u).catch(()=>{});c&&(r.mode==null&&(r.mode=c.mode),r.chown==null&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid}))}n=await Oe(Z.open)(s,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(s),ca(e)&&(e=la(e)),Buffer.isBuffer(e)?await Oe(Z.write)(n,e,0,e.length,0):e!=null&&await Oe(Z.write)(n,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&await Oe(Z.fsync)(n),await Oe(Z.close)(n),n=null,r.chown&&await Oe(Z.chown)(s,r.chown.uid,r.chown.gid).catch(c=>{if(!wn(c))throw c}),r.mode&&await Oe(Z.chmod)(s,r.mode).catch(c=>{if(!wn(c))throw c}),await Oe(Z.rename)(s,u)}finally{n&&await Oe(Z.close)(n).catch(()=>{}),i(),await Oe(Z.unlink)(s).catch(()=>{}),Qe[o].shift(),Qe[o].length>0?Qe[o][0]():delete Qe[o]}}function jm(t,e,r,n){r instanceof Function&&(n=r,r={});let s=$m(t,e,r);return n&&s.then(n,n),s}function km(t,e,r){typeof r=="string"?r={encoding:r}:r||(r={});try{t=Z.realpathSync(t)}catch{}let n=si(t);if(!r.mode||!r.chown)try{let c=Z.statSync(t);r=Object.assign({},r),r.mode||(r.mode=c.mode),!r.chown&&process.getuid&&(r.chown={uid:c.uid,gid:c.gid})}catch{}let s,i=ii(n),o=aa(i),u=!0;try{if(s=Z.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),ca(e)&&(e=la(e)),Buffer.isBuffer(e)?Z.writeSync(s,e,0,e.length,0):e!=null&&Z.writeSync(s,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&Z.fsyncSync(s),Z.closeSync(s),s=null,r.chown)try{Z.chownSync(n,r.chown.uid,r.chown.gid)}catch(c){if(!wn(c))throw c}if(r.mode)try{Z.chmodSync(n,r.mode)}catch(c){if(!wn(c))throw c}Z.renameSync(n,t),u=!1}finally{if(s)try{Z.closeSync(s)}catch{}o(),u&&i()}}});var ha=F((Mx,Da)=>{"use strict";a();Da.exports=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")}});var pa=F((Gx,da)=>{"use strict";a();var ft=ha(),qm=new Set(["__proto__","prototype","constructor"]),Um=t=>!t.some(e=>qm.has(e));function An(t){let e=t.split("."),r=[];for(let n=0;n<e.length;n++){let s=e[n];for(;s[s.length-1]==="\\"&&e[n+1]!==void 0;)s=s.slice(0,-1)+".",s+=e[++n];r.push(s)}return Um(r)?r:[]}da.exports={get(t,e,r){if(!ft(t)||typeof e!="string")return r===void 0?t:r;let n=An(e);if(n.length!==0){for(let s=0;s<n.length;s++)if(t=t[n[s]],t==null){if(s!==n.length-1)return r;break}return t===void 0?r:t}},set(t,e,r){if(!ft(t)||typeof e!="string")return t;let n=t,s=An(e);for(let i=0;i<s.length;i++){let o=s[i];ft(t[o])||(t[o]={}),i===s.length-1&&(t[o]=r),t=t[o]}return n},delete(t,e){if(!ft(t)||typeof e!="string")return!1;let r=An(e);for(let n=0;n<r.length;n++){let s=r[n];if(n===r.length-1)return delete t[s],!0;if(t=t[s],!ft(t))return!1}},has(t,e){if(!ft(t)||typeof e!="string")return!1;let r=An(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(ft(t)){if(!(r[n]in t))return!1;t=t[r[n]]}else return!1;return!0}}});var Cr=F((p_,Na)=>{"use strict";a();var d0="2.0.0",p0=Number.MAX_SAFE_INTEGER||9007199254740991,m0=16,g0=250,E0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Na.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:m0,MAX_SAFE_BUILD_LENGTH:g0,MAX_SAFE_INTEGER:p0,RELEASE_TYPES:E0,SEMVER_SPEC_VERSION:d0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Fr=F((g_,La)=>{"use strict";a();var y0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};La.exports=y0});var Ut=F((Me,$a)=>{"use strict";a();var{MAX_SAFE_COMPONENT_LENGTH:hi,MAX_SAFE_BUILD_LENGTH:C0,MAX_LENGTH:F0}=Cr(),b0=Fr();Me=$a.exports={};var x0=Me.re=[],_0=Me.safeRe=[],B=Me.src=[],R=Me.t={},w0=0,di="[a-zA-Z0-9-]",A0=[["\\s",1],["\\d",F0],[di,C0]],S0=t=>{for(let[e,r]of A0)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let n=S0(e),s=w0++;b0(t,s,e),R[t]=s,B[s]=e,x0[s]=new RegExp(e,r?"g":void 0),_0[s]=new RegExp(n,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${di}*`);q("MAINVERSION",`(${B[R.NUMERICIDENTIFIER]})\\.(${B[R.NUMERICIDENTIFIER]})\\.(${B[R.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${B[R.NUMERICIDENTIFIERLOOSE]})\\.(${B[R.NUMERICIDENTIFIERLOOSE]})\\.(${B[R.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${B[R.NUMERICIDENTIFIER]}|${B[R.NONNUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${B[R.NUMERICIDENTIFIERLOOSE]}|${B[R.NONNUMERICIDENTIFIER]})`);q("PRERELEASE",`(?:-(${B[R.PRERELEASEIDENTIFIER]}(?:\\.${B[R.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${B[R.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[R.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${di}+`);q("BUILD",`(?:\\+(${B[R.BUILDIDENTIFIER]}(?:\\.${B[R.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${B[R.MAINVERSION]}${B[R.PRERELEASE]}?${B[R.BUILD]}?`);q("FULL",`^${B[R.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${B[R.MAINVERSIONLOOSE]}${B[R.PRERELEASELOOSE]}?${B[R.BUILD]}?`);q("LOOSE",`^${B[R.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${B[R.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${B[R.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${B[R.XRANGEIDENTIFIER]})(?:\\.(${B[R.XRANGEIDENTIFIER]})(?:\\.(${B[R.XRANGEIDENTIFIER]})(?:${B[R.PRERELEASE]})?${B[R.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${B[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[R.XRANGEIDENTIFIERLOOSE]})(?:${B[R.PRERELEASELOOSE]})?${B[R.BUILD]}?)?)?`);q("XRANGE",`^${B[R.GTLT]}\\s*${B[R.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${B[R.GTLT]}\\s*${B[R.XRANGEPLAINLOOSE]}$`);q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${hi}})(?:\\.(\\d{1,${hi}}))?(?:\\.(\\d{1,${hi}}))?`);q("COERCE",`${B[R.COERCEPLAIN]}(?:$|[^\\d])`);q("COERCEFULL",B[R.COERCEPLAIN]+`(?:${B[R.PRERELEASE]})?(?:${B[R.BUILD]})?(?:$|[^\\d])`);q("COERCERTL",B[R.COERCE],!0);q("COERCERTLFULL",B[R.COERCEFULL],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${B[R.LONETILDE]}\\s+`,!0);Me.tildeTrimReplace="$1~";q("TILDE",`^${B[R.LONETILDE]}${B[R.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${B[R.LONETILDE]}${B[R.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${B[R.LONECARET]}\\s+`,!0);Me.caretTrimReplace="$1^";q("CARET",`^${B[R.LONECARET]}${B[R.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${B[R.LONECARET]}${B[R.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${B[R.GTLT]}\\s*(${B[R.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${B[R.GTLT]}\\s*(${B[R.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${B[R.GTLT]}\\s*(${B[R.LOOSEPLAIN]}|${B[R.XRANGEPLAIN]})`,!0);Me.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${B[R.XRANGEPLAIN]})\\s+-\\s+(${B[R.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${B[R.XRANGEPLAINLOOSE]})\\s+-\\s+(${B[R.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rn=F((C_,ja)=>{"use strict";a();var v0=Object.freeze({loose:!0}),O0=Object.freeze({}),B0=t=>t?typeof t!="object"?v0:t:O0;ja.exports=B0});var pi=F((b_,Ua)=>{"use strict";a();var ka=/^[0-9]+$/,qa=(t,e)=>{let r=ka.test(t),n=ka.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},R0=(t,e)=>qa(e,t);Ua.exports={compareIdentifiers:qa,rcompareIdentifiers:R0}});var Ee=F((__,za)=>{"use strict";a();var Tn=Fr(),{MAX_LENGTH:Ma,MAX_SAFE_INTEGER:In}=Cr(),{safeRe:Ha,t:Ga}=Ut(),T0=Rn(),{compareIdentifiers:Mt}=pi(),mi=class t{constructor(e,r){if(r=T0(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ma)throw new TypeError(`version is longer than ${Ma} characters`);Tn("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Ha[Ga.LOOSE]:Ha[Ga.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>In||this.major<0)throw new TypeError("Invalid major version");if(this.minor>In||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>In||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<In)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Tn("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Mt(this.major,e.major)||Mt(this.minor,e.minor)||Mt(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(Tn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Mt(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(Tn("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Mt(n,s)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),Mt(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};za.exports=mi});var Dt=F((A_,Va)=>{"use strict";a();var Wa=Ee(),I0=(t,e,r=!1)=>{if(t instanceof Wa)return t;try{return new Wa(t,e)}catch(n){if(!r)return null;throw n}};Va.exports=I0});var Ka=F((v_,Ya)=>{"use strict";a();var P0=Dt(),N0=(t,e)=>{let r=P0(t,e);return r?r.version:null};Ya.exports=N0});var Ja=F((B_,Xa)=>{"use strict";a();var L0=Dt(),$0=(t,e)=>{let r=L0(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Xa.exports=$0});var ec=F((T_,Za)=>{"use strict";a();var Qa=Ee(),j0=(t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Qa(t instanceof Qa?t.version:t,r).inc(e,n,s).version}catch{return null}};Za.exports=j0});var nc=F((P_,rc)=>{"use strict";a();var tc=Dt(),k0=(t,e)=>{let r=tc(t,null,!0),n=tc(e,null,!0),s=r.compare(n);if(s===0)return null;let i=s>0,o=i?r:n,u=i?n:r,c=!!o.prerelease.length;if(!!u.prerelease.length&&!c)return!u.patch&&!u.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=c?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};rc.exports=k0});var ic=F((L_,sc)=>{"use strict";a();var q0=Ee(),U0=(t,e)=>new q0(t,e).major;sc.exports=U0});var uc=F((j_,oc)=>{"use strict";a();var M0=Ee(),H0=(t,e)=>new M0(t,e).minor;oc.exports=H0});var cc=F((q_,ac)=>{"use strict";a();var G0=Ee(),z0=(t,e)=>new G0(t,e).patch;ac.exports=z0});var fc=F((M_,lc)=>{"use strict";a();var W0=Dt(),V0=(t,e)=>{let r=W0(t,e);return r&&r.prerelease.length?r.prerelease:null};lc.exports=V0});var Re=F((G_,hc)=>{"use strict";a();var Dc=Ee(),Y0=(t,e,r)=>new Dc(t,r).compare(new Dc(e,r));hc.exports=Y0});var pc=F((W_,dc)=>{"use strict";a();var K0=Re(),X0=(t,e,r)=>K0(e,t,r);dc.exports=X0});var gc=F((Y_,mc)=>{"use strict";a();var J0=Re(),Q0=(t,e)=>J0(t,e,!0);mc.exports=Q0});var Pn=F((X_,yc)=>{"use strict";a();var Ec=Ee(),Z0=(t,e,r)=>{let n=new Ec(t,r),s=new Ec(e,r);return n.compare(s)||n.compareBuild(s)};yc.exports=Z0});var Fc=F((Q_,Cc)=>{"use strict";a();var eg=Pn(),tg=(t,e)=>t.sort((r,n)=>eg(r,n,e));Cc.exports=tg});var xc=F((e3,bc)=>{"use strict";a();var rg=Pn(),ng=(t,e)=>t.sort((r,n)=>rg(n,r,e));bc.exports=ng});var br=F((r3,_c)=>{"use strict";a();var sg=Re(),ig=(t,e,r)=>sg(t,e,r)>0;_c.exports=ig});var Nn=F((s3,wc)=>{"use strict";a();var og=Re(),ug=(t,e,r)=>og(t,e,r)<0;wc.exports=ug});var gi=F((o3,Ac)=>{"use strict";a();var ag=Re(),cg=(t,e,r)=>ag(t,e,r)===0;Ac.exports=cg});var Ei=F((a3,Sc)=>{"use strict";a();var lg=Re(),fg=(t,e,r)=>lg(t,e,r)!==0;Sc.exports=fg});var Ln=F((l3,vc)=>{"use strict";a();var Dg=Re(),hg=(t,e,r)=>Dg(t,e,r)>=0;vc.exports=hg});var $n=F((D3,Oc)=>{"use strict";a();var dg=Re(),pg=(t,e,r)=>dg(t,e,r)<=0;Oc.exports=pg});var yi=F((d3,Bc)=>{"use strict";a();var mg=gi(),gg=Ei(),Eg=br(),yg=Ln(),Cg=Nn(),Fg=$n(),bg=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return mg(t,r,n);case"!=":return gg(t,r,n);case">":return Eg(t,r,n);case">=":return yg(t,r,n);case"<":return Cg(t,r,n);case"<=":return Fg(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Bc.exports=bg});var Tc=F((m3,Rc)=>{"use strict";a();var xg=Ee(),_g=Dt(),{safeRe:jn,t:kn}=Ut(),wg=(t,e)=>{if(t instanceof xg)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?jn[kn.COERCEFULL]:jn[kn.COERCE]);else{let c=e.includePrerelease?jn[kn.COERCERTLFULL]:jn[kn.COERCERTL],f;for(;(f=c.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||f.index+f[0].length!==r.index+r[0].length)&&(r=f),c.lastIndex=f.index+f[1].length+f[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",i=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return _g(`${n}.${s}.${i}${o}${u}`,e)};Rc.exports=wg});var Pc=F((E3,Ic)=>{"use strict";a();Ic.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Lc=F((C3,Nc)=>{"use strict";a();Nc.exports=W;W.Node=ht;W.create=W;function W(t){var e=this;if(e instanceof W||(e=new W),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}W.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};W.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};W.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};W.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)Sg(this,arguments[t]);return this.length};W.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)vg(this,arguments[t]);return this.length};W.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};W.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};W.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};W.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};W.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};W.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};W.prototype.map=function(t,e){e=e||this;for(var r=new W,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};W.prototype.mapReverse=function(t,e){e=e||this;for(var r=new W,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};W.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=t(r,n.value,s),n=n.next;return r};W.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=t(r,n.value,s),n=n.prev;return r};W.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};W.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};W.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)r.push(s.value);return r};W.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>t;n--,s=s.prev)r.push(s.value);return r};W.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;s!==null&&n<t;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<r.length;n++)s=Ag(this,s,r[n]);return i};W.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function Ag(t,e,r){var n=e===t.head?new ht(r,null,e,t):new ht(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function Sg(t,e){t.tail=new ht(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function vg(t,e){t.head=new ht(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ht(t,e,r,n){if(!(this instanceof ht))return new ht(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Pc()(W)}catch{}});var Uc=F((b3,qc)=>{"use strict";a();var Og=Lc(),dt=Symbol("max"),Ge=Symbol("length"),Ht=Symbol("lengthCalculator"),_r=Symbol("allowStale"),pt=Symbol("maxAge"),He=Symbol("dispose"),$c=Symbol("noDisposeOnSet"),fe=Symbol("lruList"),Le=Symbol("cache"),kc=Symbol("updateAgeOnGet"),Ci=()=>1,bi=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[dt]=e.max||1/0,n=e.length||Ci;if(this[Ht]=typeof n!="function"?Ci:n,this[_r]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[pt]=e.maxAge||0,this[He]=e.dispose,this[$c]=e.noDisposeOnSet||!1,this[kc]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[dt]=e||1/0,xr(this)}get max(){return this[dt]}set allowStale(e){this[_r]=!!e}get allowStale(){return this[_r]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[pt]=e,xr(this)}get maxAge(){return this[pt]}set lengthCalculator(e){typeof e!="function"&&(e=Ci),e!==this[Ht]&&(this[Ht]=e,this[Ge]=0,this[fe].forEach(r=>{r.length=this[Ht](r.value,r.key),this[Ge]+=r.length})),xr(this)}get lengthCalculator(){return this[Ht]}get length(){return this[Ge]}get itemCount(){return this[fe].length}rforEach(e,r){r=r||this;for(let n=this[fe].tail;n!==null;){let s=n.prev;jc(this,e,n,r),n=s}}forEach(e,r){r=r||this;for(let n=this[fe].head;n!==null;){let s=n.next;jc(this,e,n,r),n=s}}keys(){return this[fe].toArray().map(e=>e.key)}values(){return this[fe].toArray().map(e=>e.value)}reset(){this[He]&&this[fe]&&this[fe].length&&this[fe].forEach(e=>this[He](e.key,e.value)),this[Le]=new Map,this[fe]=new Og,this[Ge]=0}dump(){return this[fe].map(e=>qn(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[fe]}set(e,r,n){if(n=n||this[pt],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[Ht](r,e);if(this[Le].has(e)){if(i>this[dt])return Gt(this,this[Le].get(e)),!1;let c=this[Le].get(e).value;return this[He]&&(this[$c]||this[He](e,c.value)),c.now=s,c.maxAge=n,c.value=r,this[Ge]+=i-c.length,c.length=i,this.get(e),xr(this),!0}let o=new xi(e,r,i,s,n);return o.length>this[dt]?(this[He]&&this[He](e,r),!1):(this[Ge]+=o.length,this[fe].unshift(o),this[Le].set(e,this[fe].head),xr(this),!0)}has(e){if(!this[Le].has(e))return!1;let r=this[Le].get(e).value;return!qn(this,r)}get(e){return Fi(this,e,!0)}peek(e){return Fi(this,e,!1)}pop(){let e=this[fe].tail;return e?(Gt(this,e),e.value):null}del(e){Gt(this,this[Le].get(e))}load(e){this.reset();let r=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let o=i-r;o>0&&this.set(s.k,s.v,o)}}}prune(){this[Le].forEach((e,r)=>Fi(this,r,!1))}},Fi=(t,e,r)=>{let n=t[Le].get(e);if(n){let s=n.value;if(qn(t,s)){if(Gt(t,n),!t[_r])return}else r&&(t[kc]&&(n.value.now=Date.now()),t[fe].unshiftNode(n));return s.value}},qn=(t,e)=>{if(!e||!e.maxAge&&!t[pt])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[pt]&&r>t[pt]},xr=t=>{if(t[Ge]>t[dt])for(let e=t[fe].tail;t[Ge]>t[dt]&&e!==null;){let r=e.prev;Gt(t,e),e=r}},Gt=(t,e)=>{if(e){let r=e.value;t[He]&&t[He](r.key,r.value),t[Ge]-=r.length,t[Le].delete(r.key),t[fe].removeNode(e)}},xi=class{constructor(e,r,n,s,i){this.key=e,this.value=r,this.length=n,this.now=s,this.maxAge=i||0}},jc=(t,e,r,n)=>{let s=r.value;qn(t,s)&&(Gt(t,r),t[_r]||(s=void 0)),s&&e.call(n,s.value,s.key,t)};qc.exports=bi});var Te=F((_3,zc)=>{"use strict";a();var _i=class t{constructor(e,r){if(r=Rg(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof wi)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Hc(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&jg(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Lg)|(this.options.loose&&$g))+":"+e,s=Mc.get(n);if(s)return s;let i=this.options.loose,o=i?Ae[Fe.HYPHENRANGELOOSE]:Ae[Fe.HYPHENRANGE];e=e.replace(o,Yg(this.options.includePrerelease)),K("hyphen replace",e),e=e.replace(Ae[Fe.COMPARATORTRIM],Ig),K("comparator trim",e),e=e.replace(Ae[Fe.TILDETRIM],Pg),K("tilde trim",e),e=e.replace(Ae[Fe.CARETTRIM],Ng),K("caret trim",e);let u=e.split(" ").map(D=>kg(D,this.options)).join(" ").split(/\s+/).map(D=>Vg(D,this.options));i&&(u=u.filter(D=>(K("loose invalid filter",D,this.options),!!D.match(Ae[Fe.COMPARATORLOOSE])))),K("range list",u);let c=new Map,f=u.map(D=>new wi(D,this.options));for(let D of f){if(Hc(D))return[D];c.set(D.value,D)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return Mc.set(n,l),l}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Gc(n,r)&&e.set.some(s=>Gc(s,r)&&n.every(i=>s.every(o=>i.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Tg(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Kg(this.set[r],e,this.options))return!0;return!1}};zc.exports=_i;var Bg=Uc(),Mc=new Bg({max:1e3}),Rg=Rn(),wi=wr(),K=Fr(),Tg=Ee(),{safeRe:Ae,t:Fe,comparatorTrimReplace:Ig,tildeTrimReplace:Pg,caretTrimReplace:Ng}=Ut(),{FLAG_INCLUDE_PRERELEASE:Lg,FLAG_LOOSE:$g}=Cr(),Hc=t=>t.value==="<0.0.0-0",jg=t=>t.value==="",Gc=(t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(i=>s.intersects(i,e)),s=n.pop();return r},kg=(t,e)=>(K("comp",t,e),t=Mg(t,e),K("caret",t),t=qg(t,e),K("tildes",t),t=Gg(t,e),K("xrange",t),t=Wg(t,e),K("stars",t),t),be=t=>!t||t.toLowerCase()==="x"||t==="*",qg=(t,e)=>t.trim().split(/\s+/).map(r=>Ug(r,e)).join(" "),Ug=(t,e)=>{let r=e.loose?Ae[Fe.TILDELOOSE]:Ae[Fe.TILDE];return t.replace(r,(n,s,i,o,u)=>{K("tilde",t,n,s,i,o,u);let c;return be(s)?c="":be(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:be(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:u?(K("replaceTilde pr",u),c=`>=${s}.${i}.${o}-${u} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,K("tilde return",c),c})},Mg=(t,e)=>t.trim().split(/\s+/).map(r=>Hg(r,e)).join(" "),Hg=(t,e)=>{K("caret",t,e);let r=e.loose?Ae[Fe.CARETLOOSE]:Ae[Fe.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,i,o,u,c)=>{K("caret",t,s,i,o,u,c);let f;return be(i)?f="":be(o)?f=`>=${i}.0.0${n} <${+i+1}.0.0-0`:be(u)?i==="0"?f=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(K("replaceCaret pr",c),i==="0"?o==="0"?f=`>=${i}.${o}.${u}-${c} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}-${c} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u}-${c} <${+i+1}.0.0-0`):(K("no pr"),i==="0"?o==="0"?f=`>=${i}.${o}.${u}${n} <${i}.${o}.${+u+1}-0`:f=`>=${i}.${o}.${u}${n} <${i}.${+o+1}.0-0`:f=`>=${i}.${o}.${u} <${+i+1}.0.0-0`),K("caret return",f),f})},Gg=(t,e)=>(K("replaceXRanges",t,e),t.split(/\s+/).map(r=>zg(r,e)).join(" ")),zg=(t,e)=>{t=t.trim();let r=e.loose?Ae[Fe.XRANGELOOSE]:Ae[Fe.XRANGE];return t.replace(r,(n,s,i,o,u,c)=>{K("xRange",t,n,s,i,o,u,c);let f=be(i),l=f||be(o),D=l||be(u),d=D;return s==="="&&d&&(s=""),c=e.includePrerelease?"-0":"",f?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&d?(l&&(o=0),u=0,s===">"?(s=">=",l?(i=+i+1,o=0,u=0):(o=+o+1,u=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${u}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:D&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),K("xRange return",n),n})},Wg=(t,e)=>(K("replaceStars",t,e),t.trim().replace(Ae[Fe.STAR],"")),Vg=(t,e)=>(K("replaceGTE0",t,e),t.trim().replace(Ae[e.includePrerelease?Fe.GTE0PRE:Fe.GTE0],"")),Yg=t=>(e,r,n,s,i,o,u,c,f,l,D,d,h)=>(be(n)?r="":be(s)?r=`>=${n}.0.0${t?"-0":""}`:be(i)?r=`>=${n}.${s}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,be(f)?c="":be(l)?c=`<${+f+1}.0.0-0`:be(D)?c=`<${f}.${+l+1}.0-0`:d?c=`<=${f}.${l}.${D}-${d}`:t?c=`<${f}.${l}.${+D+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),Kg=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(K(t[n].semver),t[n].semver!==wi.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var wr=F((A3,Jc)=>{"use strict";a();var Ar=Symbol("SemVer ANY"),vi=class t{static get ANY(){return Ar}constructor(e,r){if(r=Wc(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Si("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Ar?this.value="":this.value=this.operator+this.semver.version,Si("comp",this)}parse(e){let r=this.options.loose?Vc[Yc.COMPARATORLOOSE]:Vc[Yc.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Kc(n[2],this.options.loose):this.semver=Ar}toString(){return this.value}test(e){if(Si("Comparator.test",e,this.options.loose),this.semver===Ar||e===Ar)return!0;if(typeof e=="string")try{e=new Kc(e,this.options)}catch{return!1}return Ai(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Xc(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Xc(this.value,r).test(e.semver):(r=Wc(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Ai(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ai(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Jc.exports=vi;var Wc=Rn(),{safeRe:Vc,t:Yc}=Ut(),Ai=yi(),Si=Fr(),Kc=Ee(),Xc=Te()});var Sr=F((v3,Qc)=>{"use strict";a();var Xg=Te(),Jg=(t,e,r)=>{try{e=new Xg(e,r)}catch{return!1}return e.test(t)};Qc.exports=Jg});var el=F((B3,Zc)=>{"use strict";a();var Qg=Te(),Zg=(t,e)=>new Qg(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Zc.exports=Zg});var rl=F((T3,tl)=>{"use strict";a();var eE=Ee(),tE=Te(),rE=(t,e,r)=>{let n=null,s=null,i=null;try{i=new tE(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new eE(n,r))}),n};tl.exports=rE});var sl=F((P3,nl)=>{"use strict";a();var nE=Ee(),sE=Te(),iE=(t,e,r)=>{let n=null,s=null,i=null;try{i=new sE(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new nE(n,r))}),n};nl.exports=iE});var ul=F((L3,ol)=>{"use strict";a();var Oi=Ee(),oE=Te(),il=br(),uE=(t,e)=>{t=new oE(t,e);let r=new Oi("0.0.0");if(t.test(r)||(r=new Oi("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],i=null;s.forEach(o=>{let u=new Oi(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||il(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||il(r,i))&&(r=i)}return r&&t.test(r)?r:null};ol.exports=uE});var cl=F((j3,al)=>{"use strict";a();var aE=Te(),cE=(t,e)=>{try{return new aE(t,e).range||"*"}catch{return null}};al.exports=cE});var Un=F((q3,hl)=>{"use strict";a();var lE=Ee(),Dl=wr(),{ANY:fE}=Dl,DE=Te(),hE=Sr(),ll=br(),fl=Nn(),dE=$n(),pE=Ln(),mE=(t,e,r,n)=>{t=new lE(t,n),e=new DE(e,n);let s,i,o,u,c;switch(r){case">":s=ll,i=dE,o=fl,u=">",c=">=";break;case"<":s=fl,i=pE,o=ll,u="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hE(t,e,n))return!1;for(let f=0;f<e.set.length;++f){let l=e.set[f],D=null,d=null;if(l.forEach(h=>{h.semver===fE&&(h=new Dl(">=0.0.0")),D=D||h,d=d||h,s(h.semver,D.semver,n)?D=h:o(h.semver,d.semver,n)&&(d=h)}),D.operator===u||D.operator===c||(!d.operator||d.operator===u)&&i(t,d.semver))return!1;if(d.operator===c&&o(t,d.semver))return!1}return!0};hl.exports=mE});var pl=F((M3,dl)=>{"use strict";a();var gE=Un(),EE=(t,e,r)=>gE(t,e,">",r);dl.exports=EE});var gl=F((G3,ml)=>{"use strict";a();var yE=Un(),CE=(t,e,r)=>yE(t,e,"<",r);ml.exports=CE});var Cl=F((W3,yl)=>{"use strict";a();var El=Te(),FE=(t,e,r)=>(t=new El(t,r),e=new El(e,r),t.intersects(e,r));yl.exports=FE});var bl=F((Y3,Fl)=>{"use strict";a();var bE=Sr(),xE=Re();Fl.exports=(t,e,r)=>{let n=[],s=null,i=null,o=t.sort((l,D)=>xE(l,D,r));for(let l of o)bE(l,e,r)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let u=[];for(let[l,D]of n)l===D?u.push(l):!D&&l===o[0]?u.push("*"):D?l===o[0]?u.push(`<=${D}`):u.push(`${l} - ${D}`):u.push(`>=${l}`);let c=u.join(" || "),f=typeof e.raw=="string"?e.raw:String(e);return c.length<f.length?c:e}});var vl=F((X3,Sl)=>{"use strict";a();var xl=Te(),Ri=wr(),{ANY:Bi}=Ri,vr=Sr(),Ti=Re(),_E=(t,e,r={})=>{if(t===e)return!0;t=new xl(t,r),e=new xl(e,r);let n=!1;e:for(let s of t.set){for(let i of e.set){let o=AE(s,i,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},wE=[new Ri(">=0.0.0-0")],_l=[new Ri(">=0.0.0")],AE=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Bi){if(e.length===1&&e[0].semver===Bi)return!0;r.includePrerelease?t=wE:t=_l}if(e.length===1&&e[0].semver===Bi){if(r.includePrerelease)return!0;e=_l}let n=new Set,s,i;for(let h of t)h.operator===">"||h.operator===">="?s=wl(s,h,r):h.operator==="<"||h.operator==="<="?i=Al(i,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(s&&i){if(o=Ti(s.semver,i.semver,r),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let h of n){if(s&&!vr(h,String(s),r)||i&&!vr(h,String(i),r))return null;for(let y of e)if(!vr(h,String(y),r))return!1;return!0}let u,c,f,l,D=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,d=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;D&&D.prerelease.length===1&&i.operator==="<"&&D.prerelease[0]===0&&(D=!1);for(let h of e){if(l=l||h.operator===">"||h.operator===">=",f=f||h.operator==="<"||h.operator==="<=",s){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(u=wl(s,h,r),u===h&&u!==s)return!1}else if(s.operator===">="&&!vr(s.semver,String(h),r))return!1}if(i){if(D&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===D.major&&h.semver.minor===D.minor&&h.semver.patch===D.patch&&(D=!1),h.operator==="<"||h.operator==="<="){if(c=Al(i,h,r),c===h&&c!==i)return!1}else if(i.operator==="<="&&!vr(i.semver,String(h),r))return!1}if(!h.operator&&(i||s)&&o!==0)return!1}return!(s&&f&&!i&&o!==0||i&&l&&!s&&o!==0||d||D)},wl=(t,e,r)=>{if(!t)return e;let n=Ti(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},Al=(t,e,r)=>{if(!t)return e;let n=Ti(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};Sl.exports=_E});var Mn=F((Q3,Rl)=>{"use strict";a();var Ii=Ut(),Ol=Cr(),SE=Ee(),Bl=pi(),vE=Dt(),OE=Ka(),BE=Ja(),RE=ec(),TE=nc(),IE=ic(),PE=uc(),NE=cc(),LE=fc(),$E=Re(),jE=pc(),kE=gc(),qE=Pn(),UE=Fc(),ME=xc(),HE=br(),GE=Nn(),zE=gi(),WE=Ei(),VE=Ln(),YE=$n(),KE=yi(),XE=Tc(),JE=wr(),QE=Te(),ZE=Sr(),ey=el(),ty=rl(),ry=sl(),ny=ul(),sy=cl(),iy=Un(),oy=pl(),uy=gl(),ay=Cl(),cy=bl(),ly=vl();Rl.exports={parse:vE,valid:OE,clean:BE,inc:RE,diff:TE,major:IE,minor:PE,patch:NE,prerelease:LE,compare:$E,rcompare:jE,compareLoose:kE,compareBuild:qE,sort:UE,rsort:ME,gt:HE,lt:GE,eq:zE,neq:WE,gte:VE,lte:YE,cmp:KE,coerce:XE,Comparator:JE,Range:QE,satisfies:ZE,toComparators:ey,maxSatisfying:ty,minSatisfying:ry,minVersion:ny,validRange:sy,outside:iy,gtr:oy,ltr:uy,intersects:ay,simplifyRange:cy,subset:ly,SemVer:SE,re:Ii.re,src:Ii.src,tokens:Ii.t,SEMVER_SPEC_VERSION:Ol.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ol.RELEASE_TYPES,compareIdentifiers:Bl.compareIdentifiers,rcompareIdentifiers:Bl.rcompareIdentifiers}});var Nl=F(($i,ji)=>{"use strict";a();Object.defineProperty($i,"__esModule",{value:!0});function _y(t){return t.encrypted}var Li=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",s=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{n&&r.connect(),_y(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};$i.default=Li;ji.exports=Li;ji.exports.default=Li});var Ul=F((dw,ql)=>{"use strict";a();var{PassThrough:Ry}=require("stream");ql.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",s=!1;e?s=!(r||n):r=r||"utf8",n&&(r=null);let i=new Ry({objectMode:s});r&&i.setEncoding(r);let o=0,u=[];return i.on("data",c=>{u.push(c),s?o=u.length:o+=c.length}),i.getBufferedValue=()=>e?u:n?Buffer.concat(u,o):u.join(""),i.getBufferedLength=()=>o,i}});var Mi=F((mw,Ir)=>{"use strict";a();var{constants:Ty}=require("buffer"),Iy=require("stream"),{promisify:Py}=require("util"),Ny=Ul(),Ly=Py(Iy.pipeline),Yn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ui(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=Ny(e);return await new Promise((s,i)=>{let o=u=>{u&&n.getBufferedLength()<=Ty.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),i(u)};(async()=>{try{await Ly(t,n),s()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Yn)})}),n.getBufferedValue()}Ir.exports=Ui;Ir.exports.buffer=(t,e)=>Ui(t,{...e,encoding:"buffer"});Ir.exports.array=(t,e)=>Ui(t,{...e,array:!0});Ir.exports.MaxBufferError=Yn});var Hl=F((yw,Ml)=>{"use strict";a();var $y=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),jy=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),ky=new Set([500,502,503,504]),qy={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Uy={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function mt(t){let e=parseInt(t,10);return isFinite(e)?e:0}function My(t){return t?ky.has(t.status):!0}function Hi(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[s,i]=n.split(/=/,2);e[s.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function Hy(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}Ml.exports=class{constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:u}={}){if(u){this._fromObject(u);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Hi(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Hi(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Hy(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&jy.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||$y.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Hi(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)qy[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let s of n)delete r[s]}if(r.warning){let n=r.warning.split(/,/).filter(s=>!/^\s*1[0-9][0-9]/.test(s));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return mt(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return mt(this._rescc["s-maxage"])}if(this._rescc["max-age"])return mt(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+mt(this._rescc["stale-if-error"]),n=e+mt(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+mt(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+mt(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let s=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));s.length?r["if-none-match"]=s.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&My(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let s={};for(let o in this._resHeaders)s[o]=o in r.headers&&!Uy[o]?r.headers[o]:this._resHeaders[o];let i=Object.assign({},r,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var zl=F(Gi=>{"use strict";a();Gi.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var s=!0;for(var i in e){var o=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(s||(r+=","),s=!1,n?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Gi.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Kl=F((vw,Yl)=>{"use strict";a();var Gy=require("events"),Wl=zl(),zy=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Vl=["sqlite","postgres","mysql","mongo","redis","tiered"],zi=class extends Gy{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Wl.stringify,deserialize:Wl.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=zy(i)}if(this.opts.compression){let i=this.opts.compression;this.opts.serialize=i.serialize.bind(i),this.opts.deserialize=i.deserialize.bind(i)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace;let s=i=>async function*(){for await(let[o,u]of typeof i=="function"?i(this.opts.store.namespace):i){let c=await this.opts.deserialize(u);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=s(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=s(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Vl.includes(this.opts.store.opts.dialect)||Vl.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,s=Array.isArray(e),i=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&n.getMany===void 0){let o=[];for(let u of i)o.push(Promise.resolve().then(()=>n.get(u)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(u).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(u=>{let c=[];for(let f of u)c.push(f.value);return c})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return s?o.map((u,c)=>{if(typeof u=="string"&&(u=this.opts.deserialize(u)),u!=null){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(e[c]).then(()=>{});return}return r&&r.raw?u:u.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,n){let s=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(s,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let s=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of s)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(u=>u.value===!0))}return Promise.resolve().then(()=>r.deleteMany(s))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Yl.exports=zi});var rf=F((Uw,tf)=>{"use strict";a();var Xy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];tf.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(Xy)),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var sf=F((Hw,nf)=>{"use strict";a();var{Transform:Jy,PassThrough:Qy}=require("stream"),Ki=require("zlib"),Zy=rf();nf.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Ki.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new Jy({transform(u,c,f){n=!1,f(null,u)},flush(u){u()}}),i=new Qy({autoDestroy:!1,destroy(u,c){t.destroy(),c(u)}}),o=r?Ki.createBrotliDecompress():Ki.createUnzip();return o.once("error",u=>{if(n&&!t.readable){i.end();return}i.destroy(u)}),Zy(t,i),t.pipe(s).pipe(o).pipe(i),i}});var oo=F((zA,xf)=>{"use strict";a();var io=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,s]of this.oldCache.entries())this.onEviction(n,s);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};xf.exports=io});var uo=F((VA,_f)=>{"use strict";a();_f.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let n=r.pop();t.__destroy(...r,async s=>{await Promise.resolve(),n(s)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var Et=F((KA,Bf)=>{"use strict";a();var{URL:wf}=require("url"),DC=require("events"),hC=require("tls"),dC=require("http2"),pC=oo(),mC=uo(),xe=Symbol("currentStreamCount"),Af=Symbol("request"),_e=Symbol("cachedOriginSet"),rt=Symbol("gracefullyClosing"),ss=Symbol("length"),Sf=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],gC=(t,e,r)=>{let n=0,s=t.length;for(;n<s;){let i=n+s>>>1;r(t[i],e)?n=i+1:s=i}return n},EC=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ao=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[_e].length>0&&n[_e].length<e[_e].length&&n[_e].every(s=>e[_e].includes(s))&&n[xe]+e[xe]<=e.remoteSettings.maxConcurrentStreams&&Of(n)}},vf=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[_e].length>0&&e[_e].length<n[_e].length&&e[_e].every(s=>n[_e].includes(s))&&e[xe]+n[xe]<=n.remoteSettings.maxConcurrentStreams)return Of(e),!0}return!1},Of=t=>{t[rt]=!0,t[xe]===0&&t.close()},Jt=class t extends DC{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:n=10,maxCachedTlsSessions:s=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=n,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new pC({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<Sf.length;n++){let s=Sf[n];r+=":",e&&e[s]!==void 0&&(r+=e[s])}return r}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let r in this.queue[e]){let n=this.queue[e][r];n.completed||(n.completed=!0,n())}}_isBetterSession(e,r){return e>r}_accept(e,r,n,s){let i=0;for(;i<r.length&&e[xe]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(n,s,r),r.length=0)}getSession(e,r,n){return new Promise((s,i)=>{Array.isArray(n)&&n.length>0?(n=[...n],s()):n=[{resolve:s,reject:i}];try{if(typeof e=="string")e=new wf(e);else if(!(e instanceof wf))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:l}=r,{hostname:D}=e;if(l&&D!==l)throw new Error(`Origin ${D} differs from servername ${l}`)}}catch(l){for(let D=0;D<n.length;D++)n[D].reject(l);return}let o=this.normalizeOptions(r),u=e.origin;if(o in this.sessions){let l=this.sessions[o],D=-1,d=-1,h;for(let y=0;y<l.length;y++){let E=l[y],b=E.remoteSettings.maxConcurrentStreams;if(b<D)break;if(!E[_e].includes(u))continue;let C=E[xe];C>=b||E[rt]||E.destroyed||(h||(D=b),this._isBetterSession(C,d)&&(h=E,d=C))}if(h){this._accept(h,n,u,r);return}}if(o in this.queue){if(u in this.queue[o]){this.queue[o][u].listeners.push(...n);return}}else this.queue[o]={[ss]:0};let c=()=>{o in this.queue&&this.queue[o][u]===f&&(delete this.queue[o][u],--this.queue[o][ss]===0&&delete this.queue[o])},f=async()=>{this._sessionCount++;let l=`${u}:${o}`,D=!1,d;try{let h={...r};h.settings===void 0&&(h.settings=this.settings),h.session===void 0&&(h.session=this.tlsSessionCache.get(l)),d=await(h.createConnection||this.createConnection).call(this,e,h),h.createConnection=()=>d;let E=dC.connect(e,h);E[xe]=0,E[rt]=!1;let b=()=>{let{socket:_}=E,A;return _.servername===!1?(_.servername=_.remoteAddress,A=E.originSet,_.servername=!1):A=E.originSet,A},C=()=>E[xe]<E.remoteSettings.maxConcurrentStreams;E.socket.once("session",_=>{this.tlsSessionCache.set(l,_)}),E.once("error",_=>{for(let A=0;A<n.length;A++)n[A].reject(_);this.tlsSessionCache.delete(l)}),E.setTimeout(this.timeout,()=>{E.destroy()}),E.once("close",()=>{if(this._sessionCount--,D){this._emptySessionCount--;let _=this.sessions[o];_.length===1?delete this.sessions[o]:_.splice(_.indexOf(E),1)}else{c();let _=new Error("Session closed without receiving a SETTINGS frame");_.code="HTTP2WRAPPER_NOSETTINGS";for(let A=0;A<n.length;A++)n[A].reject(_)}this._processQueue()});let v=()=>{let _=this.queue[o];if(!_)return;let A=E[_e];for(let $=0;$<A.length;$++){let z=A[$];if(z in _){let{listeners:k,completed:he}=_[z],x=0;for(;x<k.length&&C();)k[x].resolve(E),x++;if(_[z].listeners.splice(0,x),_[z].listeners.length===0&&!he&&(delete _[z],--_[ss]===0)){delete this.queue[o];break}if(!C())break}}};E.on("origin",()=>{E[_e]=b()||[],E[rt]=!1,vf(this.sessions[o],E),!(E[rt]||!C())&&(v(),C()&&ao(this.sessions[o],E))}),E.once("remoteSettings",()=>{if(f.destroyed){let _=new Error("Agent has been destroyed");for(let A=0;A<n.length;A++)n[A].reject(_);E.destroy();return}if(E.setLocalWindowSize&&E.setLocalWindowSize(1024*1024*4),E[_e]=b()||[],E.socket.encrypted){let _=E[_e][0];if(_!==u){let A=new Error(`Requested origin ${u} does not match server ${_}`);for(let $=0;$<n.length;$++)n[$].reject(A);E.destroy();return}}c();{let _=this.sessions;if(o in _){let A=_[o];A.splice(gC(A,E,EC),0,E)}else _[o]=[E]}D=!0,this._emptySessionCount++,this.emit("session",E),this._accept(E,n,u,r),E[xe]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),E.on("remoteSettings",()=>{C()&&(v(),C()&&ao(this.sessions[o],E))})}),E[Af]=E.request,E.request=(_,A)=>{if(E[rt])throw new Error("The session is gracefully closing. No new streams are allowed.");let $=E[Af](_,A);return E.ref(),E[xe]++===0&&this._emptySessionCount--,$.once("close",()=>{if(--E[xe]===0&&(this._emptySessionCount++,E.unref(),this._emptySessionCount>this.maxEmptySessions||E[rt])){E.close();return}E.destroyed||E.closed||C()&&!vf(this.sessions[o],E)&&(ao(this.sessions[o],E),v(),E[xe]===0&&this._processQueue())}),$}}catch(h){c(),this._sessionCount--;for(let y=0;y<n.length;y++)n[y].reject(h)}};f.listeners=n,f.completed=!1,f.destroyed=!1,this.queue[o][u]=f,this.queue[o][ss]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:u=>{try{let c=u.request(n,s);mC(c),i(c)}catch(c){o(c)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,s=e.hostname;typeof r.servername>"u"&&(r.servername=s);let i=hC.connect(n,s,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:n}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:n}=this;for(let s in n){let i=n[s];for(let o=0;o<i.length;o++){let u=i[o];if(u[xe]===0&&(r++,u.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:n}=this;for(let s in r){let i=r[s];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let s in n){let i=n[s];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Jt.kCurrentStreamCount=xe;Jt.kGracefullyClosing=rt;Bf.exports={Agent:Jt,globalAgent:new Jt}});var lo=F((JA,Rf)=>{"use strict";a();var{Readable:yC}=require("stream"),co=class extends yC{constructor(e,r){super({emitClose:!1,autoDestroy:!0,highWaterMark:r}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,r){this.readableEnded||(this.aborted=!0),r(),this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Rf.exports=co});var If=F((ZA,Tf)=>{"use strict";a();Tf.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var Vr=F((rS,Pf)=>{"use strict";a();var yt=(t,e,r)=>{Pf.exports[e]=class extends t{constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}};yt(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});yt(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);yt(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);yt(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);yt(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);yt(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);yt(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var Lf=F((sS,Nf)=>{"use strict";a();Nf.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var fo=F((oS,$f)=>{"use strict";a();var{ERR_INVALID_HTTP_TOKEN:CC}=Vr(),FC=Lf(),bC=/^[\^`\-\w!#$%&*+.|~]+$/;$f.exports=t=>{if(typeof t!="string"||!bC.test(t)&&!FC(t))throw new CC("Header name",t)}});var Do=F((aS,jf)=>{"use strict";a();var{ERR_HTTP_INVALID_HEADER_VALUE:xC,ERR_INVALID_CHAR:_C}=Vr(),wC=/[^\t\u0020-\u007E\u0080-\u00FF]/;jf.exports=(t,e)=>{if(typeof e>"u")throw new xC(e,t);if(wC.test(e))throw new _C("header content",t)}});var Uf=F((lS,qf)=>{"use strict";a();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:kf}=Vr(),AC={has(t,e){let r=t.session===void 0?t:t.session.socket;return e in t||e in r},get(t,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return t[e].bind(t);case"writable":case"destroyed":return t[e];case"readable":return t.destroyed?!1:t.readable;case"setTimeout":{let{session:r}=t;return r!==void 0?r.setTimeout.bind(r):t.setTimeout.bind(t)}case"write":case"read":case"pause":case"resume":throw new kf;default:{let r=t.session===void 0?t:t.session.socket,n=r[e];return typeof n=="function"?n.bind(r):n}}},getPrototypeOf(t){return t.session!==void 0?Reflect.getPrototypeOf(t.session.socket):Reflect.getPrototypeOf(t)},set(t,e,r){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return t[e]=r,!0;case"setTimeout":{let{session:n}=t;return n===void 0?t.setTimeout=r:n.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new kf;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};qf.exports=AC});var go=F((DS,Vf)=>{"use strict";a();var{URL:ho,urlToHttpOptions:Mf}=require("url"),SC=require("http2"),{Writable:vC}=require("stream"),{Agent:OC,globalAgent:BC}=Et(),RC=lo(),TC=If(),{ERR_INVALID_ARG_TYPE:is,ERR_INVALID_PROTOCOL:IC,ERR_HTTP_HEADERS_SENT:Hf}=Vr(),PC=fo(),NC=Do(),LC=Uf(),{HTTP2_HEADER_STATUS:Gf,HTTP2_HEADER_METHOD:zf,HTTP2_HEADER_PATH:Wf,HTTP2_HEADER_AUTHORITY:Yr,HTTP2_METHOD_CONNECT:$C}=SC.constants,pe=Symbol("headers"),Qt=Symbol("origin"),Kr=Symbol("session"),po=Symbol("options"),os=Symbol("flushedHeaders"),Zt=Symbol("jobs"),Xr=Symbol("pendingAgentPromise"),mo=class extends vC{constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=Mf(new ho(e)):e instanceof ho?e=Mf(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[Kr]=r.h2session,this[Kr].destroyed)throw new Error("The session has been closed already");this.protocol=this[Kr].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new OC({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=BC;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new is("options.agent",["http2wrapper.Agent-like Object","undefined","false"],r.agent);if(this.agent&&(this.protocol=this.agent.protocol),r.protocol&&r.protocol!==this.protocol)throw new IC(r.protocol,this.protocol);r.port||(r.port=r.defaultPort||this.agent&&this.agent.defaultPort||443),r.host=r.hostname||r.host||"localhost",delete r.hostname;let{timeout:s}=r;r.timeout=void 0,this[pe]=Object.create(null),this[Zt]=[],this[Xr]=void 0,this.socket=null,this.connection=null,this.method=r.method||"GET",this.method==="CONNECT"&&(r.path==="/"||r.path===void 0)||(this.path=r.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:i}=r;if(i)for(let u in i)this.setHeader(u,i[u]);r.auth&&!("authorization"in this[pe])&&(this[pe].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[po]=r,this[Qt]=new ho(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...u)=>o.destroyed?this.agent.createConnection(...u):o,this.agent.getSession(this[Qt],this[po]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[os]=!1}get method(){return this[pe][zf]}set method(e){e&&(this[pe][zf]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?Yr:Wf;return this[pe][e]}set path(e){if(e){let r=this.method==="CONNECT"?Yr:Wf;this[pe][r]=e}}get host(){return this[Qt].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let s=()=>this._request.write(e,r,n);this._request?s():this[Zt].push(s)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Zt].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,r){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[Xr]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[os]||this.destroyed)return;this[os]=!0;let e=this.method===$C,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||TC(n,this,["timeout","continue"]),n.once("error",i=>{this.destroy(i)}),n.once("aborted",()=>{let{res:i}=this;i?(i.aborted=!0,i.emit("aborted"),i.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let s=(i,o,u)=>{let c=new RC(this.socket,n.readableHighWaterMark);this.res=c,c.url=`${this[Qt].origin}${this.path}`,c.req=this,c.statusCode=i[Gf],c.headers=i,c.rawHeaders=u,c.once("end",()=>{c.complete=!0,c.socket=null,c.connection=null}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!c._dumped&&!c.push(f)&&n.pause()}),n.once("end",()=>{this.aborted||c.push(null)}),this.emit("response",c)||c._dump())};n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[Gf]})),n.once("trailers",(i,o,u)=>{let{res:c}=this;if(c===null){s(i,o,u);return}c.trailers=i,c.rawTrailers=u}),n.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let u=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.once("end",u):u();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(n,LC);for(let i of this[Zt])i();this[Zt].length=0,this.emit("socket",this.socket)};if(!(Yr in this[pe])&&!e&&(this[pe][Yr]=this[Qt].host),this[Kr])try{r(this[Kr].request(this[pe]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Qt],this[po],this[pe]);this[Xr]=n,r(await n),this[Xr]=!1}catch(n){this[Xr]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[pe])}hasHeader(e){if(typeof e!="string")throw new is("name","string",e);return!!this[pe][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new is("name","string",e);return this[pe][e.toLowerCase()]}get headersSent(){return this[os]}removeHeader(e){if(typeof e!="string")throw new is("name","string",e);if(this.headersSent)throw new Hf("remove");delete this[pe][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new Hf("set");PC(e),NC(e,r);let n=e.toLowerCase();if(n==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}n==="host"&&this.method==="CONNECT"?this[pe][Yr]=r:this[pe][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Zt].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Vf.exports=mo});var Kf=F((dS,Yf)=>{"use strict";a();var jC=require("tls");Yf.exports=(t={},e=jC.connect)=>new Promise((r,n)=>{let s=!1,i,o=async()=>{await c,i.off("timeout",u),i.off("error",n),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:s}),s&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:s}))},u=async()=>{s=!0,o()},c=(async()=>{try{i=await e(t,o),i.on("error",n),i.once("timeout",u)}catch(f){n(f)}})()})});var Jf=F((mS,Xf)=>{"use strict";a();var{isIP:kC}=require("net"),qC=require("assert"),UC=t=>{if(t[0]==="["){let r=t.indexOf("]");return qC(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};Xf.exports=t=>{let e=UC(t);return kC(e)?"":e}});var iD=F((ES,Jr)=>{"use strict";a();var{URL:Qf,urlToHttpOptions:Zf}=require("url"),eD=require("http"),Eo=require("https"),MC=Kf(),HC=oo(),{Agent:GC,globalAgent:zC}=Et(),WC=go(),VC=Jf(),tD=uo(),rD=new HC({maxSize:100}),YC=new Map,KC=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let s=()=>{t.removeSocket(e,r)};e.on("close",s);let i=()=>{let{freeSockets:u}=t;for(let c of Object.values(u))if(c.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},nD=(t,e=new Map,r=void 0)=>async n=>{let s=`${n.host}:${n.port}:${n.ALPNProtocols.sort()}`;if(!t.has(s)){if(e.has(s))return{alpnProtocol:(await e.get(s)).alpnProtocol};let{path:i}=n;n.path=n.socketPath;let o=MC(n,r);e.set(s,o);try{let u=await o;return t.set(s,u.alpnProtocol),e.delete(s),n.path=i,u}catch(u){throw e.delete(s),n.path=i,u}}return{alpnProtocol:t.get(s)}},sD=nD(rD,YC);Jr.exports=async(t,e,r)=>{if(typeof t=="string"?t=Zf(new Qf(t)):t instanceof Qf?t=Zf(t):t={...t},typeof e=="function"||e===void 0?(r=e,e=t):e=Object.assign(t,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||VC(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?Eo.globalAgent:eD.globalAgent;let s=e.resolveProtocol||sD,{agent:i}=e;if(i!==void 0&&i!==!1&&i.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(n){e.resolveSocket=!0;let{socket:o,alpnProtocol:u,timeout:c}=await s(e);if(c){o&&o.destroy();let l=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw l.code="ETIMEDOUT",l.ms=e.timeout,l}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let f=u==="h2";if(i&&(i=f?i.http2:i.https,e.agent=i),i===void 0&&(i=f?zC:Eo.globalAgent),o)if(i===!1)o.destroy();else{let l=(f?GC:Eo.Agent).prototype.createConnection;i.createConnection===l?f?e._reuseSocket=o:KC(i,o,e):o.destroy()}if(f)return tD(new WC(e,r))}else i&&(e.agent=i.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),tD(eD.request(e,r))};Jr.exports.protocolCache=rD;Jr.exports.resolveProtocol=sD;Jr.exports.createResolveProtocol=nD});var yo=F((CS,oD)=>{"use strict";a();var XC=require("stream"),JC=require("tls"),QC=new JC.TLSSocket(new XC.PassThrough)._handle._parentWrap.constructor;oD.exports=QC});var Fo=F((bS,uD)=>{"use strict";a();var Co=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};uD.exports=Co});var cD=F((_S,aD)=>{"use strict";a();var ZC=(t,e,r)=>{if(!r.some(s=>typeof s==="string"?typeof e===s:e instanceof s)){let s=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${s.join(" or ")}, got ${typeof e}`)}};aD.exports=ZC});var bo=F((AS,fD)=>{"use strict";a();var{URL:lD}=require("url"),us=cD();fD.exports=(t,e)=>{us("proxyOptions",e,["object"]),us("proxyOptions.headers",e.headers,["object","undefined"]),us("proxyOptions.raw",e.raw,["boolean","undefined"]),us("proxyOptions.url",e.url,[lD,"string"]);let r=new lD(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var as=F((vS,DD)=>{"use strict";a();DD.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let n=`${e}:${r}`,s=`Basic ${Buffer.from(n).toString("base64")}`;return{"proxy-authorization":s,authorization:s}}return{}}});var gD=F((BS,mD)=>{"use strict";a();var eF=require("tls"),tF=require("http"),hD=require("https"),rF=yo(),{globalAgent:nF}=Et(),sF=Fo(),dD=bo(),iF=as(),pD=(t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:o}=n,u=await nF.request(s,n,{...iF(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});u.once("error",r),u.once("response",c=>{let f=c[":status"];if(f!==200){r(new sF(f,""));return}let l=t instanceof hD.Agent;if(o&&l){e.socket=u;let d=eF.connect(e);d.once("close",()=>{u.destroy()}),r(null,d);return}let D=new rF(u);D.encrypted=!1,D._handle.getpeername=d=>{d.family=void 0,d.address=void 0,d.port=void 0},r(null,D)})}catch(n){r(n)}})()},xo=class extends tF.Agent{constructor(e){super(e),dD(this,e.proxyOptions)}createConnection(e,r){pD(this,e,r)}},_o=class extends hD.Agent{constructor(e){super(e),dD(this,e.proxyOptions)}createConnection(e,r){pD(this,e,r)}};mD.exports={HttpOverHttp2:xo,HttpsOverHttp2:_o}});var Ao=F((TS,ED)=>{"use strict";a();var{Agent:oF}=Et(),uF=yo(),aF=Fo(),cF=bo(),wo=class extends oF{constructor(e){super(e),cF(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,o]=await this._getProxyStream(n);if(i!==200)throw new aF(i,o);if(this.proxyOptions.raw)r.socket=s;else{let u=new uF(s);return u.encrypted=!1,u._handle.getpeername=c=>{c.family=void 0,c.address=void 0,c.port=void 0},u}return super.createConnection(e,r)}};ED.exports=wo});var CD=F((PS,yD)=>{"use strict";a();var{globalAgent:lF}=Et(),fF=Ao(),DF=as(),hF=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),So=class extends fF{async _getProxyStream(e){let{proxyOptions:r}=this,n={...DF(this),...r.headers,":method":"CONNECT",":authority":e},s=await lF.request(r.url,r,n),i=await hF(s);return[s,i,""]}};yD.exports=So});var bD=F((LS,FD)=>{"use strict";a();var dF=require("http"),pF=require("https"),mF=Ao(),gF=as(),EF=t=>new Promise((e,r)=>{let n=(s,i,o)=>{i.unshift(o),t.off("error",r),e([i,s.statusCode,s.statusMessage])};t.once("error",r),t.once("connect",n)}),cs=class extends mF{async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,o=(n.protocol==="https:"?pF:dF).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...gF(this),...s,host:e},method:"CONNECT"}).end();return EF(o)}};FD.exports={Http2OverHttp:cs,Http2OverHttps:cs}});var _D=F((jS,xD)=>{"use strict";a();var yF=require("http2"),{Agent:CF,globalAgent:FF}=Et(),vo=go(),bF=lo(),xF=iD(),{HttpOverHttp2:_F,HttpsOverHttp2:wF}=gD(),AF=CD(),{Http2OverHttp:SF,Http2OverHttps:vF}=bD(),OF=fo(),BF=Do(),RF=(t,e,r)=>new vo(t,e,r),TF=(t,e,r)=>{let n=new vo(t,e,r);return n.end(),n};xD.exports={...yF,ClientRequest:vo,IncomingMessage:bF,Agent:CF,globalAgent:FF,request:RF,get:TF,auto:xF,proxies:{HttpOverHttp2:_F,HttpsOverHttp2:wF,Http2OverHttp2:AF,Http2OverHttp:SF,Http2OverHttps:vF},validateHeaderName:OF,validateHeaderValue:BF}});var Po=F(Ft=>{"use strict";a();Ft.parse=Ft.decode=ZF;Ft.stringify=Ft.encode=qD;Ft.safe=tr;Ft.unsafe=Es;var Io=typeof process<"u"&&process.platform==="win32"?`\r
|
|
4
4
|
`:`
|
|
5
5
|
`;function qD(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var s=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(i,o,u){var c=t[i];c&&Array.isArray(c)?c.forEach(function(f){n+=tr(i+"[]")+s+tr(f)+`
|
|
6
6
|
`}):c&&typeof c=="object"?r.push(i):n+=tr(i)+s+tr(c)+Io}),e.section&&n.length&&(n="["+tr(e.section)+"]"+Io+n),r.forEach(function(i,o,u){var c=UD(i).join("\\."),f=(e.section?e.section+".":"")+c,l=qD(t[i],{section:f,whitespace:e.whitespace});n.length&&l.length&&(n+=Io),n+=l}),n}function UD(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function ZF(t){var e={},r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);return i.forEach(function(o,u,c){if(!(!o||o.match(/^\s*[;#]/))){var f=o.match(s);if(f){if(f[1]!==void 0){if(n=Es(f[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var l=Es(f[2]);if(l!=="__proto__"){var D=f[3]?Es(f[4]):!0;switch(D){case"true":case"false":case"null":D=JSON.parse(D)}if(l.length>2&&l.slice(-2)==="[]"){if(l=l.substring(0,l.length-2),l==="__proto__")return;r[l]?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]}Array.isArray(r[l])?r[l].push(D):r[l]=D}}}}),Object.keys(e).filter(function(o,u,c){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var f=UD(o),l=e,D=f.pop(),d=D.replace(/\\\./g,".");return f.forEach(function(h,y,E){h!=="__proto__"&&((!l[h]||typeof l[h]!="object")&&(l[h]={}),l=l[h])}),l===e&&d===D?!1:(l[d]=e[o],!0)}).forEach(function(o,u,c){delete e[o]}),e}function MD(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function tr(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&MD(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Es(t,e){if(t=(t||"").trim(),MD(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",s=0,i=t.length;s<i;s++){var o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var zD=F((Xv,GD)=>{"use strict";a();var No=1,HD=2;function e2(){return""}function t2(t,e,r){return t.slice(e,r).replace(/\S/g," ")}GD.exports=function(t,e){e=e||{};for(var r,n,s=!1,i=!1,o=0,u="",c=e.whitespace===!1?e2:t2,f=0;f<t.length;f++){if(r=t[f],n=t[f+1],!i&&r==='"'){var l=t[f-1]==="\\"&&t[f-2]!=="\\";l||(s=!s)}if(!s){if(!i&&r+n==="//")u+=t.slice(o,f),o=f,i=No,f++;else if(i===No&&r+n===`\r
|
|
7
7
|
`){f++,i=!1,u+=c(t,o,f),o=f;continue}else if(i===No&&r===`
|
|
8
|
-
`)i=!1,u+=c(t,o,f),o=f;else if(!i&&r+n==="/*"){u+=t.slice(o,f),o=f,i=HD,f++;continue}else if(i===HD&&r+n==="*/"){f++,i=!1,u+=c(t,o,f+1),o=f+1;continue}}}return u+(i?c(t.substr(o)):t.substr(o))}});var VD=F(rr=>{"use strict";a();var WD=require("fs"),r2=Po(),en=require("path"),n2=zD(),s2=rr.parse=function(t){return/^\s*{/.test(t)?JSON.parse(n2(t)):r2.parse(t)},i2=rr.file=function(){var t=[].slice.call(arguments).filter(function(s){return s!=null});for(var e in t)if(typeof t[e]!="string")return;var r=en.join.apply(null,t),n;try{return WD.readFileSync(r,"utf-8")}catch{return}},Qv=rr.json=function(){var t=i2.apply(null,arguments);return t?s2(t):null},Zv=rr.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)if(s.toLowerCase().indexOf(t.toLowerCase())===0){for(var i=s.substring(n).split("__"),o;(o=i.indexOf(""))>-1;)i.splice(o,1);var u=r;i.forEach(function(f,l){!f||typeof u!="object"||(l===i.length-1&&(u[f]=e[s]),u[f]===void 0&&(u[f]={}),u=u[f])})}return r},e8=rr.find=function(){var t=en.join.apply(null,[].slice.call(arguments));function e(r,n){var s=en.join(r,n);try{return WD.statSync(s),s}catch{if(en.dirname(r)!==r)return e(en.dirname(r),n)}}return e(process.cwd(),t)}});var ZD=F((n8,QD)=>{"use strict";a();function KD(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function XD(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function JD(t){var e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=JD(r):KD(r)?e[n]=XD(r):e[n]=Lo({},r):e[n]=r}),e}function YD(t,e){return e==="__proto__"?void 0:t[e]}var Lo=QD.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,n,s;return e.forEach(function(i){typeof i!="object"||i===null||Array.isArray(i)||Object.keys(i).forEach(function(o){if(n=YD(t,o),r=YD(i,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=JD(r);return}else if(KD(r)){t[o]=XD(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[o]=Lo({},r);return}else{t[o]=Lo(n,r);return}})}),t}});var nh=F((i8,rh)=>{"use strict";a();function o2(t,e){var r=t;e.slice(0,-1).forEach(function(s){r=r[s]||{}});var n=e[e.length-1];return n in r}function eh(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function th(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}rh.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(A){r.bools[A]=!0});var n={};function s(A){return n[A].some(function(j){return r.bools[j]})}Object.keys(e.alias||{}).forEach(function(A){n[A]=[].concat(e.alias[A]),n[A].forEach(function(j){n[j]=[A].concat(n[A].filter(function(z){return j!==z}))})}),[].concat(e.string).filter(Boolean).forEach(function(A){r.strings[A]=!0,n[A]&&[].concat(n[A]).forEach(function(j){r.strings[j]=!0})});var i=e.default||{},o={_:[]};function u(A,j){return r.allBools&&/^--[^=]+$/.test(j)||r.strings[A]||r.bools[A]||n[A]}function c(A,j,z){for(var k=A,he=0;he<j.length-1;he++){var x=j[he];if(th(k,x))return;k[x]===void 0&&(k[x]={}),(k[x]===Object.prototype||k[x]===Number.prototype||k[x]===String.prototype)&&(k[x]={}),k[x]===Array.prototype&&(k[x]=[]),k=k[x]}var O=j[j.length-1];th(k,O)||((k===Object.prototype||k===Number.prototype||k===String.prototype)&&(k={}),k===Array.prototype&&(k=[]),k[O]===void 0||r.bools[O]||typeof k[O]=="boolean"?k[O]=z:Array.isArray(k[O])?k[O].push(z):k[O]=[k[O],z])}function f(A,j,z){if(!(z&&r.unknownFn&&!u(A,z)&&r.unknownFn(z)===!1)){var k=!r.strings[A]&&eh(j)?Number(j):j;c(o,A.split("."),k),(n[A]||[]).forEach(function(he){c(o,he.split("."),k)})}}Object.keys(r.bools).forEach(function(A){f(A,i[A]===void 0?!1:i[A])});var l=[];t.indexOf("--")!==-1&&(l=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var D=0;D<t.length;D++){var d=t[D],h,y;if(/^--.+=/.test(d)){var E=d.match(/^--([^=]+)=([\s\S]*)$/);h=E[1];var b=E[2];r.bools[h]&&(b=b!=="false"),f(h,b,d)}else if(/^--no-.+/.test(d))h=d.match(/^--no-(.+)/)[1],f(h,!1,d);else if(/^--.+/.test(d))h=d.match(/^--(.+)/)[1],y=t[D+1],y!==void 0&&!/^(-|--)[^-]/.test(y)&&!r.bools[h]&&!r.allBools&&(!n[h]||!s(h))?(f(h,y,d),D+=1):/^(true|false)$/.test(y)?(f(h,y==="true",d),D+=1):f(h,r.strings[h]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var C=d.slice(1,-1).split(""),v=!1,_=0;_<C.length;_++){if(y=d.slice(_+2),y==="-"){f(C[_],y,d);continue}if(/[A-Za-z]/.test(C[_])&&y[0]==="="){f(C[_],y.slice(1),d),v=!0;break}if(/[A-Za-z]/.test(C[_])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(y)){f(C[_],y,d),v=!0;break}if(C[_+1]&&C[_+1].match(/\W/)){f(C[_],d.slice(_+2),d),v=!0;break}else f(C[_],r.strings[C[_]]?"":!0,d)}h=d.slice(-1)[0],!v&&h!=="-"&&(t[D+1]&&!/^(-|--)[^-]/.test(t[D+1])&&!r.bools[h]&&(!n[h]||!s(h))?(f(h,t[D+1],d),D+=1):t[D+1]&&/^(true|false)$/.test(t[D+1])?(f(h,t[D+1]==="true",d),D+=1):f(h,r.strings[h]?"":!0,d))}else if((!r.unknownFn||r.unknownFn(d)!==!1)&&o._.push(r.strings._||!eh(d)?d:Number(d)),e.stopEarly){o._.push.apply(o._,t.slice(D+1));break}}return Object.keys(i).forEach(function(A){o2(o,A.split("."))||(c(o,A.split("."),i[A]),(n[A]||[]).forEach(function(j){c(o,j.split("."),i[A])}))}),e["--"]?o["--"]=l.slice():l.forEach(function(A){o._.push(A)}),o}});var uh=F((u8,oh)=>{"use strict";a();var tn=VD(),nr=require("path").join,u2=ZD(),sh="/etc",ih=process.platform==="win32",rn=ih?process.env.USERPROFILE:process.env.HOME;oh.exports=function(t,e,r,n){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=nh()(process.argv.slice(2))),e=(typeof e=="string"?tn.json(e):e)||{},n=n||tn.parse;var s=tn.env(t+"_"),i=[e],o=[];function u(c){if(!(o.indexOf(c)>=0)){var f=tn.file(c);f&&(i.push(n(f)),o.push(c))}}return ih||[nr(sh,t,"config"),nr(sh,t+"rc")].forEach(u),rn&&[nr(rn,".config",t,"config"),nr(rn,".config",t),nr(rn,"."+t,"config"),nr(rn,"."+t+"rc")].forEach(u),u(tn.find("."+t+"rc")),s.config&&u(s.config),r.config&&u(r.config),u2.apply(null,i.concat([s,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var lh=F((f8,ch)=>{"use strict";a();var nt=require("constants"),a2=process.cwd,ys=null,c2=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ys||(ys=a2.call(process)),ys};try{process.cwd()}catch{}typeof process.chdir=="function"&&($o=process.chdir,process.chdir=function(t){ys=null,$o.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,$o));var $o;ch.exports=l2;function l2(t){nt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(l,D,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(l,D,d,h){h&&process.nextTick(h)},t.lchownSync=function(){}),c2==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(l){function D(d,h,y){var E=Date.now(),b=0;l(d,h,function C(v){if(v&&(v.code==="EACCES"||v.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){t.stat(h,function(_,A){_&&_.code==="ENOENT"?l(d,h,C):y(v)})},b),b<100&&(b+=10);return}y&&y(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(l){function D(d,h,y,E,b,C){var v;if(C&&typeof C=="function"){var _=0;v=function(A,j,z){if(A&&A.code==="EAGAIN"&&_<10)return _++,l.call(t,d,h,y,E,b,v);C.apply(this,arguments)}}return l.call(t,d,h,y,E,b,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(l){return function(D,d,h,y,E){for(var b=0;;)try{return l.call(t,D,d,h,y,E)}catch(C){if(C.code==="EAGAIN"&&b<10){b++;continue}throw C}}}(t.readSync);function e(l){l.lchmod=function(D,d,h){l.open(D,nt.O_WRONLY|nt.O_SYMLINK,d,function(y,E){if(y){h&&h(y);return}l.fchmod(E,d,function(b){l.close(E,function(C){h&&h(b||C)})})})},l.lchmodSync=function(D,d){var h=l.openSync(D,nt.O_WRONLY|nt.O_SYMLINK,d),y=!0,E;try{E=l.fchmodSync(h,d),y=!1}finally{if(y)try{l.closeSync(h)}catch{}else l.closeSync(h)}return E}}function r(l){nt.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(D,d,h,y){l.open(D,nt.O_SYMLINK,function(E,b){if(E){y&&y(E);return}l.futimes(b,d,h,function(C){l.close(b,function(v){y&&y(C||v)})})})},l.lutimesSync=function(D,d,h){var y=l.openSync(D,nt.O_SYMLINK),E,b=!0;try{E=l.futimesSync(y,d,h),b=!1}finally{if(b)try{l.closeSync(y)}catch{}else l.closeSync(y)}return E}):l.futimes&&(l.lutimes=function(D,d,h,y){y&&process.nextTick(y)},l.lutimesSync=function(){})}function n(l){return l&&function(D,d,h){return l.call(t,D,d,function(y){f(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(D,d){try{return l.call(t,D,d)}catch(h){if(!f(h))throw h}}}function i(l){return l&&function(D,d,h,y){return l.call(t,D,d,h,function(E){f(E)&&(E=null),y&&y.apply(this,arguments)})}}function o(l){return l&&function(D,d,h){try{return l.call(t,D,d,h)}catch(y){if(!f(y))throw y}}}function u(l){return l&&function(D,d,h){typeof d=="function"&&(h=d,d=null);function y(E,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),h&&h.apply(this,arguments)}return d?l.call(t,D,d,y):l.call(t,D,y)}}function c(l){return l&&function(D,d){var h=d?l.call(t,D,d):l.call(t,D);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function f(l){if(!l||l.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var hh=F((h8,Dh)=>{"use strict";a();var fh=require("stream").Stream;Dh.exports=f2;function f2(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);fh.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),u=0,c=o.length;u<c;u++){var f=o[u];this[f]=s[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(l,D){if(l){i.emit("error",l),i.readable=!1;return}i.fd=D,i.emit("open",D),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);fh.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,u=i.length;o<u;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ph=F((p8,dh)=>{"use strict";a();dh.exports=h2;var D2=Object.getPrototypeOf||function(t){return t.__proto__};function h2(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:D2(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var yh=F((g8,Uo)=>{"use strict";a();var oe=require("fs"),d2=lh(),p2=hh(),m2=ph(),Cs=require("util"),me,bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),bs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",bs="___graceful-fs.previous");function g2(){}function Eh(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var bt=g2;Cs.debuglog?bt=Cs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bt=function(){var t=Cs.format.apply(Cs,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
9
|
-
GFS4: `),console.error(t)});oe[me]||(mh=global[me]||[],Eh(oe,mh),oe.close=function(t){function e(r,n){return t.call(oe,r,function(s){s||gh(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,bs,{value:t}),e}(oe.close),oe.closeSync=function(t){function e(r){t.apply(oe,arguments),gh()}return Object.defineProperty(e,bs,{value:t}),e}(oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bt(oe[me]),require("assert").equal(oe[me].length,0)}));var mh;global[me]||Eh(global,oe[me]);Uo.exports=ko(m2(oe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!oe.__patched&&(Uo.exports=ko(oe),oe.__patched=!0);function ko(t){d2(t),t.gracefulify=ko,t.createReadStream=j,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(x,O,B){return typeof O=="function"&&(B=O,O=null),U(x,O,B);function U(H,M,L,$){return e(H,M,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?sr([U,[H,M,L],P,$||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return n(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return i(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(x,O,B,U){return typeof B=="function"&&(U=B,B=0),H(x,O,B,U);function H(M,L,$,P,G){return u(M,L,$,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(x,O,B){typeof O=="function"&&(B=O,O=null);var U=l.test(process.version)?function(L,$,P,G){return f(L,H(L,$,P,G))}:function(L,$,P,G){return f(L,$,H(L,$,P,G))};return U(x,O,B);function H(M,L,$,P){return function(G,N){G&&(G.code==="EMFILE"||G.code==="ENFILE")?sr([U,[M,L,$],G,P||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof $=="function"&&$.call(this,G,N))}}}if(process.version.substr(0,4)==="v0.8"){var d=p2(t);C=d.ReadStream,_=d.WriteStream}var h=t.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=v);var y=t.WriteStream;y&&(_.prototype=Object.create(y.prototype),_.prototype.open=A),Object.defineProperty(t,"ReadStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(x){_=x},enumerable:!0,configurable:!0});var E=C;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});var b=_;Object.defineProperty(t,"FileWriteStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0});function C(x,O){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function v(){var x=this;he(x.path,x.flags,x.mode,function(O,B){O?(x.autoClose&&x.destroy(),x.emit("error",O)):(x.fd=B,x.emit("open",B),x.read())})}function _(x,O){return this instanceof _?(y.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function A(){var x=this;he(x.path,x.flags,x.mode,function(O,B){O?(x.destroy(),x.emit("error",O)):(x.fd=B,x.emit("open",B))})}function j(x,O){return new t.ReadStream(x,O)}function z(x,O){return new t.WriteStream(x,O)}var k=t.open;t.open=he;function he(x,O,B,U){return typeof B=="function"&&(U=B,B=null),H(x,O,B,U);function H(M,L,$,P,G){return k(M,L,$,function(N,Up){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,$,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return t}function sr(t){bt("ENQUEUE",t[0].name,t[1]),oe[me].push(t),qo()}var Fs;function gh(){for(var t=Date.now(),e=0;e<oe[me].length;++e)oe[me][e].length>2&&(oe[me][e][3]=t,oe[me][e][4]=t);qo()}function qo(){if(clearTimeout(Fs),Fs=void 0,oe[me].length!==0){var t=oe[me].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)bt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){bt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(bt("RETRY",e.name,r),e.apply(null,r.concat([s]))):oe[me].push(t)}Fs===void 0&&(Fs=setTimeout(qo,0))}}});var Ch=F(ir=>{"use strict";a();var E2=ir&&ir.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ir,"__esModule",{value:!0});ir.readCAFileSync=void 0;var y2=E2(yh());function C2(t){try{let e=y2.default.readFileSync(t,"utf8"),r="-----END CERTIFICATE-----";return e.split(r).filter(s=>!!s.trim()).map(s=>`${s.trimLeft()}${r}`)}catch(e){if(e.code==="ENOENT")return;throw e}}ir.readCAFileSync=C2});var Fh=F(xt=>{"use strict";a();var F2=xt&&xt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),b2=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&F2(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});b2(Ch(),xt)});var _h=F((x8,xh)=>{"use strict";a();xh.exports=bh;function _t(t,e){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(t,e);t.__proto__=e}function bh(){this.list=[];var t=null;Object.defineProperty(this,"root",{get:function(){return t},set:function(e){t=e,this.list.length&&_t(this.list[this.list.length-1],e)},enumerable:!0,configurable:!0})}bh.prototype={get length(){return this.list.length},get keys(){var t=[];for(var e in this.list[0])t.push(e);return t},get snapshot(){var t={};return this.keys.forEach(function(e){t[e]=this.get(e)},this),t},get store(){return this.list[0]},push:function(t){return typeof t!="object"&&(t={valueOf:t}),this.list.length>=1&&_t(this.list[this.list.length-1],t),_t(t,this.root),this.list.push(t)},pop:function(){return this.list.length>=2&&_t(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(t){return _t(t,this.list[0]||this.root),this.list.unshift(t)},shift:function(){return this.list.length===1&&_t(this.list[0],this.root),this.list.shift()},get:function(t){return this.list[0][t]},set:function(t,e,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(t)&&this.push({}),this.list[0][t]=e},forEach:function(t,e){for(var r in this.list[0])t.call(e,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var t=this.list.splice.apply(this.list,arguments),e=0,r=this.list.length;e<r;e++)_t(this.list[e],this.list[e+1]||this.root);return t}}});var vh=F((Ve,Sh)=>{"use strict";a();var wh=_h(),nn=require("path"),xs=require("fs"),Mo=Po(),Ho=require("events").EventEmitter,x2=require("url"),_2=require("http"),Ve=Sh.exports=function(){for(var t=[].slice.call(arguments),e=new ye;t.length;){var r=t.shift();r&&e.push(typeof r=="string"?A2(r):r)}return e},w8=Ve.find=function(){var t=nn.join.apply(null,[].slice.call(arguments));function e(r,n){var s=nn.join(r,n);try{return xs.statSync(s),s}catch{if(nn.dirname(r)!==r)return e(nn.dirname(r),n)}}return e(__dirname,t)},w2=Ve.parse=function(t,e,r){if(t=""+t,r)if(r==="json")if(this.emit)try{return JSON.parse(t)}catch(n){this.emit("error",n)}else return JSON.parse(t);else return Mo.parse(t);else try{return JSON.parse(t)}catch{return Mo.parse(t)}},A2=Ve.json=function(){var t=[].slice.call(arguments).filter(function(n){return n!=null}),e=nn.join.apply(null,t),r;try{r=xs.readFileSync(e,"utf-8")}catch{return}return w2(r,e,"json")},A8=Ve.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)s.indexOf(t)===0&&(r[s.substring(n)]=e[s]);return r};Ve.ConfigChain=ye;function ye(){Ho.apply(this),wh.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var Ah={constructor:{value:ye}};Object.keys(Ho.prototype).forEach(function(t){Ah[t]=Object.getOwnPropertyDescriptor(Ho.prototype,t)});ye.prototype=Object.create(wh.prototype,Ah);ye.prototype.del=function(t,e){if(e){var r=this.sources[e];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+e));delete r[t]}else for(var n=0,s=this.list.length;n<s;n++)delete this.list[n][t];return this};ye.prototype.set=function(t,e,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[t]=e,this};ye.prototype.get=function(t,e){return e?(e=this.sources[e],e&&(e=e.data),e&&Object.hasOwnProperty.call(e,t)?e[t]:void 0):this.list[0][t]};ye.prototype.save=function(t,i,r){typeof i=="function"&&(r=i,i=null);var n=this.sources[t];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+t));if(n.source){var s=n.prefix||"";return Object.keys(n.data).forEach(function(u){n.source[s+u]=n.data[u]}),this}var i=i||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=Mo.stringify(o),this._saving++,xs.writeFile(n.path,o,"utf8",function(u){if(this._saving--,u)return r?r(u):this.emit("error",u);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};ye.prototype.addFile=function(t,e,r){r=r||t;var n={__source__:r};return this.sources[r]={path:t,type:e},this.push(n),this._await(),xs.readFile(t,"utf8",function(s,i){s&&this.emit("error",s),this.addString(i,t,e,n)}.bind(this)),this};ye.prototype.addEnv=function(t,e,r){r=r||"env";var n=Ve.env(t,e);return this.sources[r]={data:n,source:e,prefix:t},this.add(n,r)};ye.prototype.addUrl=function(t,e,r){this._await();var n=x2.format(t);r=r||n;var s={__source__:r};return this.sources[r]={href:n,type:e},this.push(s),_2.request(t,function(i){var o=[],u=i.headers["content-type"];e||(e=u.indexOf("json")!==-1?"json":u.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,s.type=e),i.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,e,s)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};ye.prototype.addString=function(t,e,r,n){return t=this.parse(t,e,r),this.add(t,n),this};ye.prototype.add=function(t,e){if(e&&typeof e=="object"){var r=this.list.indexOf(e);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,t),e=e.__source__,this.sources[e]=this.sources[e]||{},this.sources[e].data=t,this._resolve()}else typeof e=="string"&&(this.sources[e]=this.sources[e]||{},this.sources[e].data=t),this._await(),this.push(t),process.nextTick(this._resolve.bind(this));return this};ye.prototype.parse=Ve.parse;ye.prototype._await=function(){this._awaiting++};ye.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var Bh=F((v8,Oh)=>{"use strict";a();Oh.exports=function(t){let e=t.indexOf(":");if(e===-1)return Go(t);let r=t.substr(0,e),n=t.substr(e+1);return`${Go(r)}:${Go(n)}`};function Go(t){if(t=t.toLowerCase(),t==="_authtoken")return"_authToken";let e=t[0];for(let r=1;r<t.length;r++)e+=t[r]==="_"?"-":t[r];return e}});var Rh=F(_s=>{"use strict";a();Object.defineProperty(_s,"__esModule",{value:!0});_s.envReplace=void 0;var S2=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function v2(t,e){return t.replace(S2,O2.bind(null,e))}_s.envReplace=v2;function O2(t,e,r,n){if(r.length%2)return e.slice((r.length+1)/2);let s=R2(t,n);if(s===void 0)throw new Error(`Failed to replace env in config: ${e}`);return`${r.slice(r.length/2)}${s}`}var B2=/([^:-]+)(:?)-(.+)/;function R2(t,e){let r=e.match(B2);if(!r)return t[e];let[,n,s,i]=r;return Object.prototype.hasOwnProperty.call(t,n)?!t[n]&&s?i:t[n]:i}});var Th=F(ws=>{"use strict";a();Object.defineProperty(ws,"__esModule",{value:!0});ws.envReplace=void 0;var T2=Rh();Object.defineProperty(ws,"envReplace",{enumerable:!0,get:function(){return T2.envReplace}})});var Ph=F(As=>{"use strict";a();var I2=require("fs"),wt=require("path"),{envReplace:Ih}=Th(),P2=(t,e,r)=>{if(typeof e!="string")return e;let n=[].concat(t[r]),s=n.indexOf(wt)!==-1,i=n.indexOf(Boolean)!==-1,o=n.indexOf(String)!==-1,u=n.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${e}`)}if(i&&!o&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return e=Ih(e,process.env),s&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=wt.resolve(process.env.HOME,e.substr(2))),e=wt.resolve(e)),u&&!isNaN(e)&&(e=Number(e)),e},N2=t=>{t=wt.resolve(t);let e=!1;for(;wt.basename(t)==="node_modules";)t=wt.dirname(t),e=!0;if(e)return t;let r=(n,s)=>{let i=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&i.test(n))return s;try{let o=I2.readdirSync(n);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return n;let u=wt.dirname(n);return u===n?s:r(u,s)}catch(o){if(n===s){if(o.code==="ENOENT")return s;throw o}return s}};return r(t,t)};As.envReplace=Ih;As.findPrefix=N2;As.parseField=P2});var jh=F(Lh=>{"use strict";a();var At=require("path"),L2=require("stream").Stream,Ss=require("url"),j2=()=>{},$2=()=>[],Nh=()=>{};Lh.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:At,cache:At,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:At,"global-style":Boolean,group:[Number,String],"https-proxy":[null,Ss],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":At,"init-author-name":String,"init-author-email":String,"init-author-url":["",Ss],"init-license":String,"init-version":Nh,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":$2(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:L2,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,Nh],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:At,production:Boolean,progress:Boolean,proxy:[null,!1,Ss],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,Ss],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:At,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:At,umask:j2,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var Uh=F(($8,qh)=>{"use strict";a();var{readCAFileSync:k2}=Fh(),$h=require("fs"),zo=require("path"),{ConfigChain:q2}=vh(),U2=Bh(),kh=Ph(),Wo=class extends q2{constructor(e,r){super(e),this.root=e,this._parseField=kh.parseField.bind(null,r||jh())}add(e,r){try{for(let n of Object.keys(e))e[n]=this._parseField(e[n],n)}catch(n){throw n}return super.add(e,r)}addFile(e,r){r=r||e;let n={__source__:r};this.sources[r]={path:e,type:"ini"},this.push(n),this._await();try{let s=$h.readFileSync(e,"utf8");this.addString(s,e,"ini",n)}catch(s){if(s.code==="ENOENT")this.add({},n);else return`Issue while reading "${e}". ${s.message}`}}addEnv(e){e=e||process.env;let r={};return Object.keys(e).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{e[n]&&(r[U2(n.substr(11))]=e[n])}),super.addEnv("",r,"env")}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let s=this.get("global");this[s?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>zo.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(e,"prefix"))r=zo.resolve(e.prefix);else try{r=kh.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(e){if(!e)return;let r=k2(e);r&&this.set("ca",r)}loadUser(){let e=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let r=zo.resolve(this.get("prefix"));try{let n=$h.statSync(r);e.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};qh.exports=Wo});var Vh=F(Wh=>{"use strict";a();var Gh=require("os"),Ye=require("path"),zh=Gh.tmpdir(),M2=process.getuid?process.getuid():process.pid,H2=()=>!0,Mh=process.platform==="win32",Hh={editor:()=>process.env.EDITOR||process.env.VISUAL||(Mh?"notepad.exe":"vi"),shell:()=>Mh?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},G2={fromString:()=>process.umask()},or=Gh.homedir();or?process.env.HOME=or:or=Ye.resolve(zh,"npm-"+M2);var z2=process.platform==="win32"?"npm-cache":".npm",W2=process.platform==="win32"&&process.env.APPDATA||or,V2=Ye.resolve(W2,z2),vs,St;Object.defineProperty(Wh,"defaults",{get:function(){return vs||(process.env.PREFIX?St=process.env.PREFIX:process.platform==="win32"?St=Ye.dirname(process.execPath):(St=Ye.dirname(Ye.dirname(process.execPath)),process.env.DESTDIR&&(St=Ye.join(process.env.DESTDIR,St))),vs={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:V2,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Hh.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Ye.resolve(St,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Ye.resolve(or,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:St,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:Hh.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:zh,unicode:H2(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Ye.resolve(or,".npmrc"),umask:process.umask?process.umask():G2.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},vs)}})});var Kh=F((M8,Vo)=>{"use strict";a();var vt=require("path"),Y2=Uh(),Yh=Vh();Vo.exports=(t,e,r)=>{let n=new Y2(Object.assign({},Yh.defaults,r),e);n.add(Object.assign({},t),"cli");let s=[],i=!1;if(require.resolve.paths){let f=require.resolve.paths("npm"),l;try{l=require.resolve("npm",{paths:f.slice(-1)})}catch{i=!0}l&&s.push(n.addFile(vt.resolve(vt.dirname(l),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let o=vt.resolve(n.localPrefix,".npmrc"),u=n.get("userconfig");if(!n.get("global")&&o!==u?s.push(n.addFile(o,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==o){let f=vt.resolve(n.get("workspace-prefix"),".npmrc");s.push(n.addFile(f,"workspace"))}if(s.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let f=vt.resolve(n.get("prefix"),"etc");n.root.globalconfig=vt.resolve(f,"npmrc"),n.root.globalignorefile=vt.resolve(f,"npmignore")}s.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let c=n.get("cafile");return c&&n.loadCAFile(c),{config:n,warnings:s.filter(Boolean),failedToLoadBuiltInConfig:i}};Object.defineProperty(Vo.exports,"defaults",{get(){return Yh.defaults},enumerable:!0})});var nd=F((G8,rd)=>{"use strict";a();var Yo=require("url"),Xh=Kh(),Jh=":_authToken",Qh=":_auth",Zh=":username",ed=":_password";rd.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:s=>n[s]}}:Xh()).config,e=e||r.npmrc.get("registry")||Xh.defaults.registry,td(e,r)||K2(r.npmrc)};function td(t,e){let r=Yo.parse(t,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let s="//"+r.host+n.replace(/\/$/,""),i=J2(s,e.npmrc);if(i)return i;if(!e.recursive)return/\/$/.test(t)?void 0:td(Yo.resolve(t,"."),e);r.pathname=Yo.resolve(X2(n),"..")||"/"}}function K2(t){return t.get("_auth")?{token:Os(t.get("_auth")),type:"Basic"}:void 0}function X2(t){return t[t.length-1]==="/"?t:t+"/"}function J2(t,e){let r=Q2(e.get(t+Jh)||e.get(t+"/"+Jh));if(r)return r;let n=e.get(t+Zh)||e.get(t+"/"+Zh),s=e.get(t+ed)||e.get(t+"/"+ed),i=Z2(n,s);if(i)return i;let o=eb(e.get(t+Qh)||e.get(t+"/"+Qh));if(o)return o}function Os(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function Q2(t){return t?{token:Os(t),type:"Bearer"}:void 0}function Z2(t,e){if(!t||!e)return;let r=Buffer.from(Os(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function eb(t){return t?{token:Os(t),type:"Basic"}:void 0}});var pd=F((t6,dd)=>{"use strict";a();var{hasOwnProperty:eu}=Object.prototype,tu=typeof process<"u"&&process.platform==="win32"?`\r
|
|
8
|
+
`)i=!1,u+=c(t,o,f),o=f;else if(!i&&r+n==="/*"){u+=t.slice(o,f),o=f,i=HD,f++;continue}else if(i===HD&&r+n==="*/"){f++,i=!1,u+=c(t,o,f+1),o=f+1;continue}}}return u+(i?c(t.substr(o)):t.substr(o))}});var VD=F(rr=>{"use strict";a();var WD=require("fs"),r2=Po(),en=require("path"),n2=zD(),s2=rr.parse=function(t){return/^\s*{/.test(t)?JSON.parse(n2(t)):r2.parse(t)},i2=rr.file=function(){var t=[].slice.call(arguments).filter(function(s){return s!=null});for(var e in t)if(typeof t[e]!="string")return;var r=en.join.apply(null,t),n;try{return WD.readFileSync(r,"utf-8")}catch{return}},Qv=rr.json=function(){var t=i2.apply(null,arguments);return t?s2(t):null},Zv=rr.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)if(s.toLowerCase().indexOf(t.toLowerCase())===0){for(var i=s.substring(n).split("__"),o;(o=i.indexOf(""))>-1;)i.splice(o,1);var u=r;i.forEach(function(f,l){!f||typeof u!="object"||(l===i.length-1&&(u[f]=e[s]),u[f]===void 0&&(u[f]={}),u=u[f])})}return r},e8=rr.find=function(){var t=en.join.apply(null,[].slice.call(arguments));function e(r,n){var s=en.join(r,n);try{return WD.statSync(s),s}catch{if(en.dirname(r)!==r)return e(en.dirname(r),n)}}return e(process.cwd(),t)}});var ZD=F((n8,QD)=>{"use strict";a();function KD(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function XD(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function JD(t){var e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=JD(r):KD(r)?e[n]=XD(r):e[n]=Lo({},r):e[n]=r}),e}function YD(t,e){return e==="__proto__"?void 0:t[e]}var Lo=QD.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,n,s;return e.forEach(function(i){typeof i!="object"||i===null||Array.isArray(i)||Object.keys(i).forEach(function(o){if(n=YD(t,o),r=YD(i,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=JD(r);return}else if(KD(r)){t[o]=XD(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[o]=Lo({},r);return}else{t[o]=Lo(n,r);return}})}),t}});var nh=F((i8,rh)=>{"use strict";a();function o2(t,e){var r=t;e.slice(0,-1).forEach(function(s){r=r[s]||{}});var n=e[e.length-1];return n in r}function eh(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function th(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}rh.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(A){r.bools[A]=!0});var n={};function s(A){return n[A].some(function($){return r.bools[$]})}Object.keys(e.alias||{}).forEach(function(A){n[A]=[].concat(e.alias[A]),n[A].forEach(function($){n[$]=[A].concat(n[A].filter(function(z){return $!==z}))})}),[].concat(e.string).filter(Boolean).forEach(function(A){r.strings[A]=!0,n[A]&&[].concat(n[A]).forEach(function($){r.strings[$]=!0})});var i=e.default||{},o={_:[]};function u(A,$){return r.allBools&&/^--[^=]+$/.test($)||r.strings[A]||r.bools[A]||n[A]}function c(A,$,z){for(var k=A,he=0;he<$.length-1;he++){var x=$[he];if(th(k,x))return;k[x]===void 0&&(k[x]={}),(k[x]===Object.prototype||k[x]===Number.prototype||k[x]===String.prototype)&&(k[x]={}),k[x]===Array.prototype&&(k[x]=[]),k=k[x]}var O=$[$.length-1];th(k,O)||((k===Object.prototype||k===Number.prototype||k===String.prototype)&&(k={}),k===Array.prototype&&(k=[]),k[O]===void 0||r.bools[O]||typeof k[O]=="boolean"?k[O]=z:Array.isArray(k[O])?k[O].push(z):k[O]=[k[O],z])}function f(A,$,z){if(!(z&&r.unknownFn&&!u(A,z)&&r.unknownFn(z)===!1)){var k=!r.strings[A]&&eh($)?Number($):$;c(o,A.split("."),k),(n[A]||[]).forEach(function(he){c(o,he.split("."),k)})}}Object.keys(r.bools).forEach(function(A){f(A,i[A]===void 0?!1:i[A])});var l=[];t.indexOf("--")!==-1&&(l=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var D=0;D<t.length;D++){var d=t[D],h,y;if(/^--.+=/.test(d)){var E=d.match(/^--([^=]+)=([\s\S]*)$/);h=E[1];var b=E[2];r.bools[h]&&(b=b!=="false"),f(h,b,d)}else if(/^--no-.+/.test(d))h=d.match(/^--no-(.+)/)[1],f(h,!1,d);else if(/^--.+/.test(d))h=d.match(/^--(.+)/)[1],y=t[D+1],y!==void 0&&!/^(-|--)[^-]/.test(y)&&!r.bools[h]&&!r.allBools&&(!n[h]||!s(h))?(f(h,y,d),D+=1):/^(true|false)$/.test(y)?(f(h,y==="true",d),D+=1):f(h,r.strings[h]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var C=d.slice(1,-1).split(""),v=!1,_=0;_<C.length;_++){if(y=d.slice(_+2),y==="-"){f(C[_],y,d);continue}if(/[A-Za-z]/.test(C[_])&&y[0]==="="){f(C[_],y.slice(1),d),v=!0;break}if(/[A-Za-z]/.test(C[_])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(y)){f(C[_],y,d),v=!0;break}if(C[_+1]&&C[_+1].match(/\W/)){f(C[_],d.slice(_+2),d),v=!0;break}else f(C[_],r.strings[C[_]]?"":!0,d)}h=d.slice(-1)[0],!v&&h!=="-"&&(t[D+1]&&!/^(-|--)[^-]/.test(t[D+1])&&!r.bools[h]&&(!n[h]||!s(h))?(f(h,t[D+1],d),D+=1):t[D+1]&&/^(true|false)$/.test(t[D+1])?(f(h,t[D+1]==="true",d),D+=1):f(h,r.strings[h]?"":!0,d))}else if((!r.unknownFn||r.unknownFn(d)!==!1)&&o._.push(r.strings._||!eh(d)?d:Number(d)),e.stopEarly){o._.push.apply(o._,t.slice(D+1));break}}return Object.keys(i).forEach(function(A){o2(o,A.split("."))||(c(o,A.split("."),i[A]),(n[A]||[]).forEach(function($){c(o,$.split("."),i[A])}))}),e["--"]?o["--"]=l.slice():l.forEach(function(A){o._.push(A)}),o}});var uh=F((u8,oh)=>{"use strict";a();var tn=VD(),nr=require("path").join,u2=ZD(),sh="/etc",ih=process.platform==="win32",rn=ih?process.env.USERPROFILE:process.env.HOME;oh.exports=function(t,e,r,n){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=nh()(process.argv.slice(2))),e=(typeof e=="string"?tn.json(e):e)||{},n=n||tn.parse;var s=tn.env(t+"_"),i=[e],o=[];function u(c){if(!(o.indexOf(c)>=0)){var f=tn.file(c);f&&(i.push(n(f)),o.push(c))}}return ih||[nr(sh,t,"config"),nr(sh,t+"rc")].forEach(u),rn&&[nr(rn,".config",t,"config"),nr(rn,".config",t),nr(rn,"."+t,"config"),nr(rn,"."+t+"rc")].forEach(u),u(tn.find("."+t+"rc")),s.config&&u(s.config),r.config&&u(r.config),u2.apply(null,i.concat([s,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var lh=F((f8,ch)=>{"use strict";a();var nt=require("constants"),a2=process.cwd,ys=null,c2=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ys||(ys=a2.call(process)),ys};try{process.cwd()}catch{}typeof process.chdir=="function"&&(jo=process.chdir,process.chdir=function(t){ys=null,jo.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,jo));var jo;ch.exports=l2;function l2(t){nt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(l,D,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(l,D,d,h){h&&process.nextTick(h)},t.lchownSync=function(){}),c2==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(l){function D(d,h,y){var E=Date.now(),b=0;l(d,h,function C(v){if(v&&(v.code==="EACCES"||v.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){t.stat(h,function(_,A){_&&_.code==="ENOENT"?l(d,h,C):y(v)})},b),b<100&&(b+=10);return}y&&y(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(l){function D(d,h,y,E,b,C){var v;if(C&&typeof C=="function"){var _=0;v=function(A,$,z){if(A&&A.code==="EAGAIN"&&_<10)return _++,l.call(t,d,h,y,E,b,v);C.apply(this,arguments)}}return l.call(t,d,h,y,E,b,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,l),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(l){return function(D,d,h,y,E){for(var b=0;;)try{return l.call(t,D,d,h,y,E)}catch(C){if(C.code==="EAGAIN"&&b<10){b++;continue}throw C}}}(t.readSync);function e(l){l.lchmod=function(D,d,h){l.open(D,nt.O_WRONLY|nt.O_SYMLINK,d,function(y,E){if(y){h&&h(y);return}l.fchmod(E,d,function(b){l.close(E,function(C){h&&h(b||C)})})})},l.lchmodSync=function(D,d){var h=l.openSync(D,nt.O_WRONLY|nt.O_SYMLINK,d),y=!0,E;try{E=l.fchmodSync(h,d),y=!1}finally{if(y)try{l.closeSync(h)}catch{}else l.closeSync(h)}return E}}function r(l){nt.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(D,d,h,y){l.open(D,nt.O_SYMLINK,function(E,b){if(E){y&&y(E);return}l.futimes(b,d,h,function(C){l.close(b,function(v){y&&y(C||v)})})})},l.lutimesSync=function(D,d,h){var y=l.openSync(D,nt.O_SYMLINK),E,b=!0;try{E=l.futimesSync(y,d,h),b=!1}finally{if(b)try{l.closeSync(y)}catch{}else l.closeSync(y)}return E}):l.futimes&&(l.lutimes=function(D,d,h,y){y&&process.nextTick(y)},l.lutimesSync=function(){})}function n(l){return l&&function(D,d,h){return l.call(t,D,d,function(y){f(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(D,d){try{return l.call(t,D,d)}catch(h){if(!f(h))throw h}}}function i(l){return l&&function(D,d,h,y){return l.call(t,D,d,h,function(E){f(E)&&(E=null),y&&y.apply(this,arguments)})}}function o(l){return l&&function(D,d,h){try{return l.call(t,D,d,h)}catch(y){if(!f(y))throw y}}}function u(l){return l&&function(D,d,h){typeof d=="function"&&(h=d,d=null);function y(E,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),h&&h.apply(this,arguments)}return d?l.call(t,D,d,y):l.call(t,D,y)}}function c(l){return l&&function(D,d){var h=d?l.call(t,D,d):l.call(t,D);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function f(l){if(!l||l.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var hh=F((h8,Dh)=>{"use strict";a();var fh=require("stream").Stream;Dh.exports=f2;function f2(t){return{ReadStream:e,WriteStream:r};function e(n,s){if(!(this instanceof e))return new e(n,s);fh.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),u=0,c=o.length;u<c;u++){var f=o[u];this[f]=s[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(l,D){if(l){i.emit("error",l),i.readable=!1;return}i.fd=D,i.emit("open",D),i._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);fh.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,u=i.length;o<u;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ph=F((p8,dh)=>{"use strict";a();dh.exports=h2;var D2=Object.getPrototypeOf||function(t){return t.__proto__};function h2(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:D2(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var yh=F((g8,Uo)=>{"use strict";a();var oe=require("fs"),d2=lh(),p2=hh(),m2=ph(),Cs=require("util"),me,bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),bs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",bs="___graceful-fs.previous");function g2(){}function Eh(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var bt=g2;Cs.debuglog?bt=Cs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bt=function(){var t=Cs.format.apply(Cs,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
9
|
+
GFS4: `),console.error(t)});oe[me]||(mh=global[me]||[],Eh(oe,mh),oe.close=function(t){function e(r,n){return t.call(oe,r,function(s){s||gh(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,bs,{value:t}),e}(oe.close),oe.closeSync=function(t){function e(r){t.apply(oe,arguments),gh()}return Object.defineProperty(e,bs,{value:t}),e}(oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bt(oe[me]),require("assert").equal(oe[me].length,0)}));var mh;global[me]||Eh(global,oe[me]);Uo.exports=ko(m2(oe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!oe.__patched&&(Uo.exports=ko(oe),oe.__patched=!0);function ko(t){d2(t),t.gracefulify=ko,t.createReadStream=$,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(x,O,T){return typeof O=="function"&&(T=O,O=null),U(x,O,T);function U(H,M,L,j){return e(H,M,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?sr([U,[H,M,L],P,j||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return n(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return i(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=c);function c(x,O,T,U){return typeof T=="function"&&(U=T,T=0),H(x,O,T,U);function H(M,L,j,P,G){return u(M,L,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var f=t.readdir;t.readdir=D;var l=/^v[0-5]\./;function D(x,O,T){typeof O=="function"&&(T=O,O=null);var U=l.test(process.version)?function(L,j,P,G){return f(L,H(L,j,P,G))}:function(L,j,P,G){return f(L,j,H(L,j,P,G))};return U(x,O,T);function H(M,L,j,P){return function(G,N){G&&(G.code==="EMFILE"||G.code==="ENFILE")?sr([U,[M,L,j],G,P||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof j=="function"&&j.call(this,G,N))}}}if(process.version.substr(0,4)==="v0.8"){var d=p2(t);C=d.ReadStream,_=d.WriteStream}var h=t.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=v);var y=t.WriteStream;y&&(_.prototype=Object.create(y.prototype),_.prototype.open=A),Object.defineProperty(t,"ReadStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(x){_=x},enumerable:!0,configurable:!0});var E=C;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});var b=_;Object.defineProperty(t,"FileWriteStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0});function C(x,O){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function v(){var x=this;he(x.path,x.flags,x.mode,function(O,T){O?(x.autoClose&&x.destroy(),x.emit("error",O)):(x.fd=T,x.emit("open",T),x.read())})}function _(x,O){return this instanceof _?(y.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function A(){var x=this;he(x.path,x.flags,x.mode,function(O,T){O?(x.destroy(),x.emit("error",O)):(x.fd=T,x.emit("open",T))})}function $(x,O){return new t.ReadStream(x,O)}function z(x,O){return new t.WriteStream(x,O)}var k=t.open;t.open=he;function he(x,O,T,U){return typeof T=="function"&&(U=T,T=null),H(x,O,T,U);function H(M,L,j,P,G){return k(M,L,j,function(N,Up){N&&(N.code==="EMFILE"||N.code==="ENFILE")?sr([H,[M,L,j,P],N,G||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return t}function sr(t){bt("ENQUEUE",t[0].name,t[1]),oe[me].push(t),qo()}var Fs;function gh(){for(var t=Date.now(),e=0;e<oe[me].length;++e)oe[me][e].length>2&&(oe[me][e][3]=t,oe[me][e][4]=t);qo()}function qo(){if(clearTimeout(Fs),Fs=void 0,oe[me].length!==0){var t=oe[me].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)bt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){bt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-i,c=Math.max(i-s,1),f=Math.min(c*1.2,100);u>=f?(bt("RETRY",e.name,r),e.apply(null,r.concat([s]))):oe[me].push(t)}Fs===void 0&&(Fs=setTimeout(qo,0))}}});var Ch=F(ir=>{"use strict";a();var E2=ir&&ir.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ir,"__esModule",{value:!0});ir.readCAFileSync=void 0;var y2=E2(yh());function C2(t){try{let e=y2.default.readFileSync(t,"utf8"),r="-----END CERTIFICATE-----";return e.split(r).filter(s=>!!s.trim()).map(s=>`${s.trimLeft()}${r}`)}catch(e){if(e.code==="ENOENT")return;throw e}}ir.readCAFileSync=C2});var Fh=F(xt=>{"use strict";a();var F2=xt&&xt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),b2=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&F2(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});b2(Ch(),xt)});var _h=F((x8,xh)=>{"use strict";a();xh.exports=bh;function _t(t,e){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(t,e);t.__proto__=e}function bh(){this.list=[];var t=null;Object.defineProperty(this,"root",{get:function(){return t},set:function(e){t=e,this.list.length&&_t(this.list[this.list.length-1],e)},enumerable:!0,configurable:!0})}bh.prototype={get length(){return this.list.length},get keys(){var t=[];for(var e in this.list[0])t.push(e);return t},get snapshot(){var t={};return this.keys.forEach(function(e){t[e]=this.get(e)},this),t},get store(){return this.list[0]},push:function(t){return typeof t!="object"&&(t={valueOf:t}),this.list.length>=1&&_t(this.list[this.list.length-1],t),_t(t,this.root),this.list.push(t)},pop:function(){return this.list.length>=2&&_t(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(t){return _t(t,this.list[0]||this.root),this.list.unshift(t)},shift:function(){return this.list.length===1&&_t(this.list[0],this.root),this.list.shift()},get:function(t){return this.list[0][t]},set:function(t,e,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(t)&&this.push({}),this.list[0][t]=e},forEach:function(t,e){for(var r in this.list[0])t.call(e,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var t=this.list.splice.apply(this.list,arguments),e=0,r=this.list.length;e<r;e++)_t(this.list[e],this.list[e+1]||this.root);return t}}});var vh=F((Ve,Sh)=>{"use strict";a();var wh=_h(),nn=require("path"),xs=require("fs"),Mo=Po(),Ho=require("events").EventEmitter,x2=require("url"),_2=require("http"),Ve=Sh.exports=function(){for(var t=[].slice.call(arguments),e=new ye;t.length;){var r=t.shift();r&&e.push(typeof r=="string"?A2(r):r)}return e},w8=Ve.find=function(){var t=nn.join.apply(null,[].slice.call(arguments));function e(r,n){var s=nn.join(r,n);try{return xs.statSync(s),s}catch{if(nn.dirname(r)!==r)return e(nn.dirname(r),n)}}return e(__dirname,t)},w2=Ve.parse=function(t,e,r){if(t=""+t,r)if(r==="json")if(this.emit)try{return JSON.parse(t)}catch(n){this.emit("error",n)}else return JSON.parse(t);else return Mo.parse(t);else try{return JSON.parse(t)}catch{return Mo.parse(t)}},A2=Ve.json=function(){var t=[].slice.call(arguments).filter(function(n){return n!=null}),e=nn.join.apply(null,t),r;try{r=xs.readFileSync(e,"utf-8")}catch{return}return w2(r,e,"json")},A8=Ve.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var s in e)s.indexOf(t)===0&&(r[s.substring(n)]=e[s]);return r};Ve.ConfigChain=ye;function ye(){Ho.apply(this),wh.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var Ah={constructor:{value:ye}};Object.keys(Ho.prototype).forEach(function(t){Ah[t]=Object.getOwnPropertyDescriptor(Ho.prototype,t)});ye.prototype=Object.create(wh.prototype,Ah);ye.prototype.del=function(t,e){if(e){var r=this.sources[e];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+e));delete r[t]}else for(var n=0,s=this.list.length;n<s;n++)delete this.list[n][t];return this};ye.prototype.set=function(t,e,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[t]=e,this};ye.prototype.get=function(t,e){return e?(e=this.sources[e],e&&(e=e.data),e&&Object.hasOwnProperty.call(e,t)?e[t]:void 0):this.list[0][t]};ye.prototype.save=function(t,i,r){typeof i=="function"&&(r=i,i=null);var n=this.sources[t];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+t));if(n.source){var s=n.prefix||"";return Object.keys(n.data).forEach(function(u){n.source[s+u]=n.data[u]}),this}var i=i||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=Mo.stringify(o),this._saving++,xs.writeFile(n.path,o,"utf8",function(u){if(this._saving--,u)return r?r(u):this.emit("error",u);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};ye.prototype.addFile=function(t,e,r){r=r||t;var n={__source__:r};return this.sources[r]={path:t,type:e},this.push(n),this._await(),xs.readFile(t,"utf8",function(s,i){s&&this.emit("error",s),this.addString(i,t,e,n)}.bind(this)),this};ye.prototype.addEnv=function(t,e,r){r=r||"env";var n=Ve.env(t,e);return this.sources[r]={data:n,source:e,prefix:t},this.add(n,r)};ye.prototype.addUrl=function(t,e,r){this._await();var n=x2.format(t);r=r||n;var s={__source__:r};return this.sources[r]={href:n,type:e},this.push(s),_2.request(t,function(i){var o=[],u=i.headers["content-type"];e||(e=u.indexOf("json")!==-1?"json":u.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,s.type=e),i.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,e,s)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};ye.prototype.addString=function(t,e,r,n){return t=this.parse(t,e,r),this.add(t,n),this};ye.prototype.add=function(t,e){if(e&&typeof e=="object"){var r=this.list.indexOf(e);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,t),e=e.__source__,this.sources[e]=this.sources[e]||{},this.sources[e].data=t,this._resolve()}else typeof e=="string"&&(this.sources[e]=this.sources[e]||{},this.sources[e].data=t),this._await(),this.push(t),process.nextTick(this._resolve.bind(this));return this};ye.prototype.parse=Ve.parse;ye.prototype._await=function(){this._awaiting++};ye.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var Bh=F((v8,Oh)=>{"use strict";a();Oh.exports=function(t){let e=t.indexOf(":");if(e===-1)return Go(t);let r=t.substr(0,e),n=t.substr(e+1);return`${Go(r)}:${Go(n)}`};function Go(t){if(t=t.toLowerCase(),t==="_authtoken")return"_authToken";let e=t[0];for(let r=1;r<t.length;r++)e+=t[r]==="_"?"-":t[r];return e}});var Rh=F(_s=>{"use strict";a();Object.defineProperty(_s,"__esModule",{value:!0});_s.envReplace=void 0;var S2=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function v2(t,e){return t.replace(S2,O2.bind(null,e))}_s.envReplace=v2;function O2(t,e,r,n){if(r.length%2)return e.slice((r.length+1)/2);let s=R2(t,n);if(s===void 0)throw new Error(`Failed to replace env in config: ${e}`);return`${r.slice(r.length/2)}${s}`}var B2=/([^:-]+)(:?)-(.+)/;function R2(t,e){let r=e.match(B2);if(!r)return t[e];let[,n,s,i]=r;return Object.prototype.hasOwnProperty.call(t,n)?!t[n]&&s?i:t[n]:i}});var Th=F(ws=>{"use strict";a();Object.defineProperty(ws,"__esModule",{value:!0});ws.envReplace=void 0;var T2=Rh();Object.defineProperty(ws,"envReplace",{enumerable:!0,get:function(){return T2.envReplace}})});var Ph=F(As=>{"use strict";a();var I2=require("fs"),wt=require("path"),{envReplace:Ih}=Th(),P2=(t,e,r)=>{if(typeof e!="string")return e;let n=[].concat(t[r]),s=n.indexOf(wt)!==-1,i=n.indexOf(Boolean)!==-1,o=n.indexOf(String)!==-1,u=n.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${e}`)}if(i&&!o&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return e=Ih(e,process.env),s&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=wt.resolve(process.env.HOME,e.substr(2))),e=wt.resolve(e)),u&&!isNaN(e)&&(e=Number(e)),e},N2=t=>{t=wt.resolve(t);let e=!1;for(;wt.basename(t)==="node_modules";)t=wt.dirname(t),e=!0;if(e)return t;let r=(n,s)=>{let i=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&i.test(n))return s;try{let o=I2.readdirSync(n);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return n;let u=wt.dirname(n);return u===n?s:r(u,s)}catch(o){if(n===s){if(o.code==="ENOENT")return s;throw o}return s}};return r(t,t)};As.envReplace=Ih;As.findPrefix=N2;As.parseField=P2});var $h=F(Lh=>{"use strict";a();var At=require("path"),L2=require("stream").Stream,Ss=require("url"),$2=()=>{},j2=()=>[],Nh=()=>{};Lh.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:At,cache:At,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:At,"global-style":Boolean,group:[Number,String],"https-proxy":[null,Ss],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":At,"init-author-name":String,"init-author-email":String,"init-author-url":["",Ss],"init-license":String,"init-version":Nh,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":j2(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:L2,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,Nh],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:At,production:Boolean,progress:Boolean,proxy:[null,!1,Ss],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,Ss],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:At,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:At,umask:$2,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var Uh=F((j8,qh)=>{"use strict";a();var{readCAFileSync:k2}=Fh(),jh=require("fs"),zo=require("path"),{ConfigChain:q2}=vh(),U2=Bh(),kh=Ph(),Wo=class extends q2{constructor(e,r){super(e),this.root=e,this._parseField=kh.parseField.bind(null,r||$h())}add(e,r){try{for(let n of Object.keys(e))e[n]=this._parseField(e[n],n)}catch(n){throw n}return super.add(e,r)}addFile(e,r){r=r||e;let n={__source__:r};this.sources[r]={path:e,type:"ini"},this.push(n),this._await();try{let s=jh.readFileSync(e,"utf8");this.addString(s,e,"ini",n)}catch(s){if(s.code==="ENOENT")this.add({},n);else return`Issue while reading "${e}". ${s.message}`}}addEnv(e){e=e||process.env;let r={};return Object.keys(e).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{e[n]&&(r[U2(n.substr(11))]=e[n])}),super.addEnv("",r,"env")}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let s=this.get("global");this[s?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>zo.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(e,"prefix"))r=zo.resolve(e.prefix);else try{r=kh.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(e){if(!e)return;let r=k2(e);r&&this.set("ca",r)}loadUser(){let e=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let r=zo.resolve(this.get("prefix"));try{let n=jh.statSync(r);e.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};qh.exports=Wo});var Vh=F(Wh=>{"use strict";a();var Gh=require("os"),Ye=require("path"),zh=Gh.tmpdir(),M2=process.getuid?process.getuid():process.pid,H2=()=>!0,Mh=process.platform==="win32",Hh={editor:()=>process.env.EDITOR||process.env.VISUAL||(Mh?"notepad.exe":"vi"),shell:()=>Mh?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},G2={fromString:()=>process.umask()},or=Gh.homedir();or?process.env.HOME=or:or=Ye.resolve(zh,"npm-"+M2);var z2=process.platform==="win32"?"npm-cache":".npm",W2=process.platform==="win32"&&process.env.APPDATA||or,V2=Ye.resolve(W2,z2),vs,St;Object.defineProperty(Wh,"defaults",{get:function(){return vs||(process.env.PREFIX?St=process.env.PREFIX:process.platform==="win32"?St=Ye.dirname(process.execPath):(St=Ye.dirname(Ye.dirname(process.execPath)),process.env.DESTDIR&&(St=Ye.join(process.env.DESTDIR,St))),vs={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:V2,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Hh.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Ye.resolve(St,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Ye.resolve(or,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:St,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:Hh.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:zh,unicode:H2(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Ye.resolve(or,".npmrc"),umask:process.umask?process.umask():G2.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},vs)}})});var Kh=F((M8,Vo)=>{"use strict";a();var vt=require("path"),Y2=Uh(),Yh=Vh();Vo.exports=(t,e,r)=>{let n=new Y2(Object.assign({},Yh.defaults,r),e);n.add(Object.assign({},t),"cli");let s=[],i=!1;if(require.resolve.paths){let f=require.resolve.paths("npm"),l;try{l=require.resolve("npm",{paths:f.slice(-1)})}catch{i=!0}l&&s.push(n.addFile(vt.resolve(vt.dirname(l),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let o=vt.resolve(n.localPrefix,".npmrc"),u=n.get("userconfig");if(!n.get("global")&&o!==u?s.push(n.addFile(o,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==o){let f=vt.resolve(n.get("workspace-prefix"),".npmrc");s.push(n.addFile(f,"workspace"))}if(s.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let f=vt.resolve(n.get("prefix"),"etc");n.root.globalconfig=vt.resolve(f,"npmrc"),n.root.globalignorefile=vt.resolve(f,"npmignore")}s.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let c=n.get("cafile");return c&&n.loadCAFile(c),{config:n,warnings:s.filter(Boolean),failedToLoadBuiltInConfig:i}};Object.defineProperty(Vo.exports,"defaults",{get(){return Yh.defaults},enumerable:!0})});var nd=F((G8,rd)=>{"use strict";a();var Yo=require("url"),Xh=Kh(),Jh=":_authToken",Qh=":_auth",Zh=":username",ed=":_password";rd.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:s=>n[s]}}:Xh()).config,e=e||r.npmrc.get("registry")||Xh.defaults.registry,td(e,r)||K2(r.npmrc)};function td(t,e){let r=Yo.parse(t,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let s="//"+r.host+n.replace(/\/$/,""),i=J2(s,e.npmrc);if(i)return i;if(!e.recursive)return/\/$/.test(t)?void 0:td(Yo.resolve(t,"."),e);r.pathname=Yo.resolve(X2(n),"..")||"/"}}function K2(t){return t.get("_auth")?{token:Os(t.get("_auth")),type:"Basic"}:void 0}function X2(t){return t[t.length-1]==="/"?t:t+"/"}function J2(t,e){let r=Q2(e.get(t+Jh)||e.get(t+"/"+Jh));if(r)return r;let n=e.get(t+Zh)||e.get(t+"/"+Zh),s=e.get(t+ed)||e.get(t+"/"+ed),i=Z2(n,s);if(i)return i;let o=eb(e.get(t+Qh)||e.get(t+"/"+Qh));if(o)return o}function Os(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function Q2(t){return t?{token:Os(t),type:"Bearer"}:void 0}function Z2(t,e){if(!t||!e)return;let r=Buffer.from(Os(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function eb(t){return t?{token:Os(t),type:"Basic"}:void 0}});var pd=F((t6,dd)=>{"use strict";a();var{hasOwnProperty:eu}=Object.prototype,tu=typeof process<"u"&&process.platform==="win32"?`\r
|
|
10
10
|
`:`
|
|
11
11
|
`,ru=(t,e)=>{let r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||Object.create(null),e.whitespace=e.whitespace===!0);let s=e.whitespace?" = ":"=";for(let i of Object.keys(t)){let o=t[i];if(o&&Array.isArray(o))for(let u of o)n+=ur(i+"[]")+s+ur(u)+`
|
|
12
|
-
`;else o&&typeof o=="object"?r.push(i):n+=ur(i)+s+ur(o)+tu}e.section&&n.length&&(n="["+ur(e.section)+"]"+tu+n);for(let i of r){let o=Dd(i).join("\\."),u=(e.section?e.section+".":"")+o,{whitespace:c}=e,f=ru(t[i],{section:u,whitespace:c});n.length&&f.length&&(n+=tu),n+=f}return n},Dd=t=>t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),fd=t=>{let e=Object.create(null),r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);for(let u of i){if(!u||u.match(/^\s*[;#]/))continue;let c=u.match(s);if(!c)continue;if(c[1]!==void 0){if(n=Rs(c[1]),n==="__proto__"){r=Object.create(null);continue}r=e[n]=e[n]||Object.create(null);continue}let f=Rs(c[2]),l=f.length>2&&f.slice(-2)==="[]",D=l?f.slice(0,-2):f;if(D==="__proto__")continue;let d=c[3]?Rs(c[4]):!0,h=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;l&&(eu.call(r,D)?Array.isArray(r[D])||(r[D]=[r[D]]):r[D]=[]),Array.isArray(r[D])?r[D].push(h):r[D]=h}let o=[];for(let u of Object.keys(e)){if(!eu.call(e,u)||typeof e[u]!="object"||Array.isArray(e[u]))continue;let c=Dd(u),f=e,l=c.pop(),D=l.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!eu.call(f,d)||typeof f[d]!="object")&&(f[d]=Object.create(null)),f=f[d]);f===e&&D===l||(f[D]=e[u],o.push(u))}for(let u of o)delete e[u];return e},hd=t=>t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'",ur=t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&hd(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#"),Rs=(t,e)=>{if(t=(t||"").trim(),hd(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{let r=!1,n="";for(let s=0,i=t.length;s<i;s++){let o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t};dd.exports={parse:fd,decode:fd,stringify:ru,encode:ru,safe:ur,unsafe:Rs}});var yd=F(qe=>{"use strict";a();var ae=require("path"),nu=require("os"),Ts=require("fs"),ub=pd(),on=process.platform==="win32",md=t=>{try{return ub.parse(Ts.readFileSync(t,"utf8")).prefix}catch{}},ab=()=>Object.keys(process.env).reduce((t,e)=>/^npm_config_prefix$/i.test(e)?process.env[e]:t,void 0),cb=()=>{if(on&&process.env.APPDATA)return ae.join(process.env.APPDATA,"/npm/etc/npmrc");if(process.execPath.includes("/Cellar/node")){let t=process.execPath.slice(0,process.execPath.indexOf("/Cellar/node"));return ae.join(t,"/lib/node_modules/npm/npmrc")}if(process.execPath.endsWith("/bin/node")){let t=ae.dirname(ae.dirname(process.execPath));return ae.join(t,"/etc/npmrc")}},lb=()=>{if(on){let{APPDATA:t}=process.env;return t?ae.join(t,"npm"):ae.dirname(process.execPath)}return ae.dirname(ae.dirname(process.execPath))},fb=()=>{let t=ab();if(t)return t;let e=md(ae.join(nu.homedir(),".npmrc"));if(e)return e;if(process.env.PREFIX)return process.env.PREFIX;let r=md(cb());return r||lb()},sn=ae.resolve(fb()),gd=()=>{if(on&&process.env.LOCALAPPDATA){let t=ae.join(process.env.LOCALAPPDATA,"Yarn");if(Ts.existsSync(t))return t}return!1},Db=()=>{if(process.env.PREFIX)return process.env.PREFIX;let t=gd();if(t)return t;let e=ae.join(nu.homedir(),".config/yarn");if(Ts.existsSync(e))return e;let r=ae.join(nu.homedir(),".yarn-config");return Ts.existsSync(r)?r:sn};qe.npm={};qe.npm.prefix=sn;qe.npm.packages=ae.join(sn,on?"node_modules":"lib/node_modules");qe.npm.binaries=on?sn:ae.join(sn,"bin");var Ed=ae.resolve(Db());qe.yarn={};qe.yarn.prefix=Ed;qe.yarn.packages=ae.join(Ed,gd()?"Data/global/node_modules":"global/node_modules");qe.yarn.binaries=ae.join(qe.yarn.packages,".bin")});var Fd=F((i6,Cd)=>{"use strict";a();var su=require("path");Cd.exports=(t,e)=>{let r=su.relative(e,t);return!!(r&&r!==".."&&!r.startsWith(`..${su.sep}`)&&r!==su.resolve(t))}});var wd=F((u6,_d)=>{"use strict";a();var hb=require("fs"),bd=yd(),xd=Fd();_d.exports=(()=>{try{return xd(__dirname,bd.yarn.packages)||xd(__dirname,hb.realpathSync(bd.npm.packages))}catch{return!1}})()});var Td=F((E6,uu)=>{"use strict";a();var st={};typeof uu>"u"?window.eastasianwidth=st:uu.exports=st;st.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};st.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function Rd(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}st.length=function(t){for(var e=Rd(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};st.slice=function(t,e,r){textLen=st.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",s=0,i=Rd(t),o=0;o<i.length;o++){var u=i[o],c=st.length(u);if(s>=e-(c==2?1:0))if(s+c<=r)n+=u;else break;s+=c}return n}});var Pd=F((C6,Id)=>{"use strict";a();Id.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var jd=F((v6,mb)=>{mb.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var cu=F((O6,au)=>{"use strict";a();var $d=jd();au.exports=$d;au.exports.default=$d});var Gd=F((I6,Hd)=>{"use strict";a();Hd.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Wd=F((N6,zd)=>{"use strict";a();var xb=Gd();zd.exports=t=>typeof t=="string"?t.replace(xb(),""):t});var Yd=F((j6,Du)=>{"use strict";a();var Vd=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Du.exports=Vd;Du.exports.default=Vd});var Xd=F((k6,Kd)=>{"use strict";a();Kd.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Qd=F((U6,hu)=>{"use strict";a();var _b=Wd(),wb=Yd(),Ab=Xd(),Jd=t=>{if(typeof t!="string"||t.length===0||(t=_b(t),t.length===0))return 0;t=t.replace(Ab()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=wb(n)?2:1)}return e};hu.exports=Jd;hu.exports.default=Jd});var ep=F((H6,Zd)=>{"use strict";a();var Sb=Qd();function Ot(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
|
|
13
|
-
`,s=e.pad||" ",i=r!=="right"?vb:Ob,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(n));let u,c=0;return t=t.map(function(f){return f=String(f),u=Sb(f),c=Math.max(u,c),{str:f,width:u}}).map(function(f){return new Array(i(c,f.width)+1).join(s)+f.str}),o?t.join(n):t}Ot.left=function(e){return Ot(e,{align:"left"})};Ot.center=function(e){return Ot(e,{align:"center"})};Ot.right=function(e){return Ot(e,{align:"right"})};Zd.exports=Ot;function vb(t,e){return Math.floor((t-e)/2)}function Ob(t,e){return t-e}});var dp=F((u1,Yb)=>{Yb.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var gp=F(Se=>{"use strict";a();var mp=dp(),ce=process.env;Object.defineProperty(Se,"_vendors",{value:mp.map(function(t){return t.constant})});Se.name=null;Se.isPR=null;mp.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return pp(n)});if(Se[t.constant]=r,!!r)switch(Se.name=t.name,typeof t.pr){case"string":Se.isPR=!!ce[t.pr];break;case"object":"env"in t.pr?Se.isPR=t.pr.env in ce&&ce[t.pr.env]!==t.pr.ne:"any"in t.pr?Se.isPR=t.pr.any.some(function(n){return!!ce[n]}):Se.isPR=pp(t.pr);break;default:Se.isPR=null}});Se.isCI=!!(ce.CI!=="false"&&(ce.BUILD_ID||ce.BUILD_NUMBER||ce.CI||ce.CI_APP_ID||ce.CI_BUILD_ID||ce.CI_BUILD_NUMBER||ce.CI_NAME||ce.CONTINUOUS_INTEGRATION||ce.RUN_ID||Se.name));function pp(t){return typeof t=="string"?!!ce[t]:"env"in t?ce[t.env]&&ce[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!ce[e]}):Object.keys(t).every(function(e){return ce[e]===t[e]})}});var yp=F((l1,Ep)=>{"use strict";a();Ep.exports=gp().isCI});a();a();var
|
|
12
|
+
`;else o&&typeof o=="object"?r.push(i):n+=ur(i)+s+ur(o)+tu}e.section&&n.length&&(n="["+ur(e.section)+"]"+tu+n);for(let i of r){let o=Dd(i).join("\\."),u=(e.section?e.section+".":"")+o,{whitespace:c}=e,f=ru(t[i],{section:u,whitespace:c});n.length&&f.length&&(n+=tu),n+=f}return n},Dd=t=>t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),fd=t=>{let e=Object.create(null),r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);for(let u of i){if(!u||u.match(/^\s*[;#]/))continue;let c=u.match(s);if(!c)continue;if(c[1]!==void 0){if(n=Rs(c[1]),n==="__proto__"){r=Object.create(null);continue}r=e[n]=e[n]||Object.create(null);continue}let f=Rs(c[2]),l=f.length>2&&f.slice(-2)==="[]",D=l?f.slice(0,-2):f;if(D==="__proto__")continue;let d=c[3]?Rs(c[4]):!0,h=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;l&&(eu.call(r,D)?Array.isArray(r[D])||(r[D]=[r[D]]):r[D]=[]),Array.isArray(r[D])?r[D].push(h):r[D]=h}let o=[];for(let u of Object.keys(e)){if(!eu.call(e,u)||typeof e[u]!="object"||Array.isArray(e[u]))continue;let c=Dd(u),f=e,l=c.pop(),D=l.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!eu.call(f,d)||typeof f[d]!="object")&&(f[d]=Object.create(null)),f=f[d]);f===e&&D===l||(f[D]=e[u],o.push(u))}for(let u of o)delete e[u];return e},hd=t=>t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'",ur=t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&hd(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#"),Rs=(t,e)=>{if(t=(t||"").trim(),hd(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{let r=!1,n="";for(let s=0,i=t.length;s<i;s++){let o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t};dd.exports={parse:fd,decode:fd,stringify:ru,encode:ru,safe:ur,unsafe:Rs}});var yd=F(qe=>{"use strict";a();var ae=require("path"),nu=require("os"),Ts=require("fs"),ub=pd(),on=process.platform==="win32",md=t=>{try{return ub.parse(Ts.readFileSync(t,"utf8")).prefix}catch{}},ab=()=>Object.keys(process.env).reduce((t,e)=>/^npm_config_prefix$/i.test(e)?process.env[e]:t,void 0),cb=()=>{if(on&&process.env.APPDATA)return ae.join(process.env.APPDATA,"/npm/etc/npmrc");if(process.execPath.includes("/Cellar/node")){let t=process.execPath.slice(0,process.execPath.indexOf("/Cellar/node"));return ae.join(t,"/lib/node_modules/npm/npmrc")}if(process.execPath.endsWith("/bin/node")){let t=ae.dirname(ae.dirname(process.execPath));return ae.join(t,"/etc/npmrc")}},lb=()=>{if(on){let{APPDATA:t}=process.env;return t?ae.join(t,"npm"):ae.dirname(process.execPath)}return ae.dirname(ae.dirname(process.execPath))},fb=()=>{let t=ab();if(t)return t;let e=md(ae.join(nu.homedir(),".npmrc"));if(e)return e;if(process.env.PREFIX)return process.env.PREFIX;let r=md(cb());return r||lb()},sn=ae.resolve(fb()),gd=()=>{if(on&&process.env.LOCALAPPDATA){let t=ae.join(process.env.LOCALAPPDATA,"Yarn");if(Ts.existsSync(t))return t}return!1},Db=()=>{if(process.env.PREFIX)return process.env.PREFIX;let t=gd();if(t)return t;let e=ae.join(nu.homedir(),".config/yarn");if(Ts.existsSync(e))return e;let r=ae.join(nu.homedir(),".yarn-config");return Ts.existsSync(r)?r:sn};qe.npm={};qe.npm.prefix=sn;qe.npm.packages=ae.join(sn,on?"node_modules":"lib/node_modules");qe.npm.binaries=on?sn:ae.join(sn,"bin");var Ed=ae.resolve(Db());qe.yarn={};qe.yarn.prefix=Ed;qe.yarn.packages=ae.join(Ed,gd()?"Data/global/node_modules":"global/node_modules");qe.yarn.binaries=ae.join(qe.yarn.packages,".bin")});var Fd=F((i6,Cd)=>{"use strict";a();var su=require("path");Cd.exports=(t,e)=>{let r=su.relative(e,t);return!!(r&&r!==".."&&!r.startsWith(`..${su.sep}`)&&r!==su.resolve(t))}});var wd=F((u6,_d)=>{"use strict";a();var hb=require("fs"),bd=yd(),xd=Fd();_d.exports=(()=>{try{return xd(__dirname,bd.yarn.packages)||xd(__dirname,hb.realpathSync(bd.npm.packages))}catch{return!1}})()});var Td=F((E6,uu)=>{"use strict";a();var st={};typeof uu>"u"?window.eastasianwidth=st:uu.exports=st;st.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};st.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function Rd(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}st.length=function(t){for(var e=Rd(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};st.slice=function(t,e,r){textLen=st.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",s=0,i=Rd(t),o=0;o<i.length;o++){var u=i[o],c=st.length(u);if(s>=e-(c==2?1:0))if(s+c<=r)n+=u;else break;s+=c}return n}});var Pd=F((C6,Id)=>{"use strict";a();Id.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var $d=F((v6,mb)=>{mb.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var cu=F((O6,au)=>{"use strict";a();var jd=$d();au.exports=jd;au.exports.default=jd});var Gd=F((I6,Hd)=>{"use strict";a();Hd.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Wd=F((N6,zd)=>{"use strict";a();var xb=Gd();zd.exports=t=>typeof t=="string"?t.replace(xb(),""):t});var Yd=F(($6,Du)=>{"use strict";a();var Vd=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Du.exports=Vd;Du.exports.default=Vd});var Xd=F((k6,Kd)=>{"use strict";a();Kd.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Qd=F((U6,hu)=>{"use strict";a();var _b=Wd(),wb=Yd(),Ab=Xd(),Jd=t=>{if(typeof t!="string"||t.length===0||(t=_b(t),t.length===0))return 0;t=t.replace(Ab()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=wb(n)?2:1)}return e};hu.exports=Jd;hu.exports.default=Jd});var ep=F((H6,Zd)=>{"use strict";a();var Sb=Qd();function Ot(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
|
|
13
|
+
`,s=e.pad||" ",i=r!=="right"?vb:Ob,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(n));let u,c=0;return t=t.map(function(f){return f=String(f),u=Sb(f),c=Math.max(u,c),{str:f,width:u}}).map(function(f){return new Array(i(c,f.width)+1).join(s)+f.str}),o?t.join(n):t}Ot.left=function(e){return Ot(e,{align:"left"})};Ot.center=function(e){return Ot(e,{align:"center"})};Ot.right=function(e){return Ot(e,{align:"right"})};Zd.exports=Ot;function vb(t,e){return Math.floor((t-e)/2)}function Ob(t,e){return t-e}});var dp=F((u1,Yb)=>{Yb.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var gp=F(Se=>{"use strict";a();var mp=dp(),ce=process.env;Object.defineProperty(Se,"_vendors",{value:mp.map(function(t){return t.constant})});Se.name=null;Se.isPR=null;mp.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return pp(n)});if(Se[t.constant]=r,!!r)switch(Se.name=t.name,typeof t.pr){case"string":Se.isPR=!!ce[t.pr];break;case"object":"env"in t.pr?Se.isPR=t.pr.env in ce&&ce[t.pr.env]!==t.pr.ne:"any"in t.pr?Se.isPR=t.pr.any.some(function(n){return!!ce[n]}):Se.isPR=pp(t.pr);break;default:Se.isPR=null}});Se.isCI=!!(ce.CI!=="false"&&(ce.BUILD_ID||ce.BUILD_NUMBER||ce.CI||ce.CI_APP_ID||ce.CI_BUILD_ID||ce.CI_BUILD_NUMBER||ce.CI_NAME||ce.CONTINUOUS_INTEGRATION||ce.RUN_ID||Se.name));function pp(t){return typeof t=="string"?!!ce[t]:"env"in t?ce[t.env]&&ce[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!ce[e]}):Object.keys(t).every(function(e){return ce[e]===t[e]})}});var yp=F((l1,Ep)=>{"use strict";a();Ep.exports=gp().isCI});a();a();var jp=require("cac"),kp=require("@terai/runtime");a();var Ys=I(require("process"),1),mn=I(require("process"),1),Lu=I(require("os"),1),Gs=I(require("tty"),1),Au=(t=0)=>e=>`\x1B[${e+t}m`,Su=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,vu=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Dx=Object.keys(J.modifier),Xp=Object.keys(J.color),Jp=Object.keys(J.bgColor),hx=[...Xp,...Jp];function Qp(){let t=new Map;for(let[e,r]of Object.entries(J)){for(let[n,s]of Object.entries(r))J[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=J[n],t.set(s[0],s[1]);Object.defineProperty(J,e,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:t,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=Au(),J.color.ansi256=Su(),J.color.ansi16m=vu(),J.bgColor.ansi=Au(10),J.bgColor.ansi256=Su(10),J.bgColor.ansi16m=vu(10),Object.defineProperties(J,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>J.rgbToAnsi256(...J.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),enumerable:!1}}),J}var Zp=Qp(),ke=Zp;function ve(t,e=globalThis.Deno?globalThis.Deno.args:mn.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:ne}=mn.default,dn;ve("no-color")||ve("no-colors")||ve("color=false")||ve("color=never")?dn=0:(ve("color")||ve("colors")||ve("color=true")||ve("color=always"))&&(dn=1);function em(){if("FORCE_COLOR"in ne)return ne.FORCE_COLOR==="true"?1:ne.FORCE_COLOR==="false"?0:ne.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ne.FORCE_COLOR,10),3)}function tm(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function rm(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=em();n!==void 0&&(dn=n);let s=r?dn:n;if(s===0)return 0;if(r){if(ve("color=16m")||ve("color=full")||ve("color=truecolor"))return 3;if(ve("color=256"))return 2}if("TF_BUILD"in ne&&"AGENT_NAME"in ne)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(ne.TERM==="dumb")return i;if(mn.default.platform==="win32"){let o=Lu.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in ne)return"GITHUB_ACTIONS"in ne||"GITEA_ACTIONS"in ne?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in ne)||ne.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor"||ne.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ne){let o=Number.parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:i}function Ou(t,e={}){let r=rm(t,{streamIsTTY:t&&t.isTTY,...e});return tm(r)}var nm={stdout:Ou({isTTY:Gs.default.isatty(1)}),stderr:Ou({isTTY:Gs.default.isatty(2)})},sm=nm;function im(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return o+=t.slice(i),o}function om(t,e,r,n){let s=0,i="";do{let o=t[n-1]==="\r";i+=t.slice(s,o?n-1:n)+e+(o?`\r
|
|
14
14
|
`:`
|
|
15
15
|
`)+r,s=n+1,n=t.indexOf(`
|
|
16
16
|
`,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:Bu,stderr:Ru}=sm,zs=Symbol("GENERATOR"),Bt=Symbol("STYLER"),fr=Symbol("IS_EMPTY"),Tu=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),um=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Bu?Bu.level:0;t.level=e.level===void 0?r:e.level},am=t=>{let e=(...r)=>r.join(" ");return um(e,t),Object.setPrototypeOf(e,Dr.prototype),e};function Dr(t){return am(t)}Object.setPrototypeOf(Dr.prototype,Function.prototype);for(let[t,e]of Object.entries(ke))Rt[t]={get(){let r=pn(this,Vs(e.open,e.close,this[Bt]),this[fr]);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=pn(this,this[Bt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Ws=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?ke[r].ansi16m(...n):e==="ansi256"?ke[r].ansi256(ke.rgbToAnsi256(...n)):ke[r].ansi(ke.rgbToAnsi(...n)):t==="hex"?Ws("rgb",e,r,...ke.hexToRgb(...n)):ke[r][t](...n),cm=["rgb","hex","ansi256"];for(let t of cm){Rt[t]={get(){let{level:r}=this;return function(...n){let s=Vs(Ws(t,Tu[r],"color",...n),ke.color.close,this[Bt]);return pn(this,s,this[fr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...n){let s=Vs(Ws(t,Tu[r],"bgColor",...n),ke.bgColor.close,this[Bt]);return pn(this,s,this[fr])}}}}var lm=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this[zs].level},set(t){this[zs].level=t}}}),Vs=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},pn=(t,e,r)=>{let n=(...s)=>fm(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,lm),n[zs]=t,n[Bt]=e,n[fr]=r,n},fm=(t,e)=>{if(t.level<=0||!e)return t[fr]?"":e;let r=t[Bt];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=im(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
|
|
17
|
-
`);return i!==-1&&(e=om(e,s,n,i)),n+e+s};Object.defineProperties(Dr.prototype,Rt);var Dm=Dr(),dx=Dr({level:Ru?Ru.level:0}),Ce=Dm;function ot(t){return Ys.default.stdout.write(t
|
|
18
|
-
`)}function hm(t){return Ys.default.stderr.write(t
|
|
17
|
+
`);return i!==-1&&(e=om(e,s,n,i)),n+e+s};Object.defineProperties(Dr.prototype,Rt);var Dm=Dr(),dx=Dr({level:Ru?Ru.level:0}),Ce=Dm;function ot(t){return Ys.default.stdout.write(`${t}
|
|
18
|
+
`)}function hm(t){return Ys.default.stderr.write(`${t}
|
|
19
19
|
`)}function hr(t,e,r,n,s,i){let o=(Array.isArray(i)?i:[i||""].filter(Boolean)).map(u=>r(u)).join("");t(`${" ".repeat(3)} ${e(n)} ${e(s)} ${o}`)}function dm(t,e){hr(ot,Ce.yellow,Ce.yellow,"\u25CF",t,e)}function Iu(t,e){hr(ot,Ce.yellow,Ce.dim,"\u25CF",t,e)}function Pu(t,e){hr(ot,Ce.cyan,Ce.dim,"\u25FC",t,e)}function Nu(t){hr(ot,Ce.green,Ce.dim,"\u2714",t)}function pm(t,e){ot(""),hr(hm,Ce.red,Ce.red,"\u25B2",t,e)}function mm(t,e){return ot(`
|
|
20
20
|
${Ce.bgWhite(` ${Ce.whiteBright(t)} `)} ${Ce.bold(e)}
|
|
21
|
-
`)}var Hs=t=>()=>{let e=performance.now();return r=>{let n=performance.now()-e;t(`${r} ${Ce.gray(`(${n.toFixed(2)}ms)`)}`)}},Y={colors:Ce,log:ot,heading:mm,debug:Iu,info:Pu,warn:dm,success:Nu,error:pm,time:{success:Hs(Nu),info:Hs(Pu),debug:Hs(Iu)}};a();a();var Ue=I(require("process"),1),bp=require("child_process"),xp=require("url"),Fu=I(require("path"),1)
|
|
21
|
+
`)}var Hs=t=>()=>{let e=performance.now();return r=>{let n=performance.now()-e;t(`${r} ${Ce.gray(`(${n.toFixed(2)}ms)`)}`)}},Y={colors:Ce,log:ot,heading:mm,debug:Iu,info:Pu,warn:dm,success:Nu,error:pm,time:{success:Hs(Nu),info:Hs(Pu),debug:Hs(Iu)}};a();a();var Ue=I(require("process"),1),bp=require("child_process"),xp=require("url"),Fu=I(require("path"),1),js=require("util");a();var jt=I(require("path"),1),xa=I(require("os"),1),ui=I(Vu(),1);a();var Ku=I(require("os"),1),dr=I(require("path"),1),Je=Ku.default.homedir(),{env:at}=process,Yu=at.XDG_DATA_HOME||(Je?dr.default.join(Je,".local","share"):void 0),It=at.XDG_CONFIG_HOME||(Je?dr.default.join(Je,".config"):void 0),wx=at.XDG_STATE_HOME||(Je?dr.default.join(Je,".local","state"):void 0),Ax=at.XDG_CACHE_HOME||(Je?dr.default.join(Je,".cache"):void 0),Sx=at.XDG_RUNTIME_DIR||void 0,Sm=(at.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Yu&&Sm.unshift(Yu);var vm=(at.XDG_CONFIG_DIRS||"/etc/xdg").split(":");It&&vm.unshift(It);var ai=I(fa(),1),$t=I(pa(),1);a();a();var ma=require("util"),Sn=I(require("crypto"),1),ga=(0,ma.promisify)(Sn.default.randomBytes),Mm="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Hm="0123456789".split(""),Gm="CDEHKMPRTUWXY012458".split(""),zm="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Vm=(t,e)=>{let r=e.length,n=Math.floor(65536/r)*r-1,s=2*Math.ceil(1.1*t),i="",o=0;for(;o<t;){let u=Sn.default.randomBytes(s),c=0;for(;c<s&&o<t;){let f=u.readUInt16LE(c);c+=2,!(f>n)&&(i+=e[f%r],o++)}}return i},Ym=async(t,e)=>{let r=e.length,n=Math.floor(65536/r)*r-1,s=2*Math.ceil(1.1*t),i="",o=0;for(;o<t;){let u=await ga(s),c=0;for(;c<s&&o<t;){let f=u.readUInt16LE(c);c+=2,!(f>n)&&(i+=e[f%r],o++)}}return i},Km=(t,e,r)=>Sn.default.randomBytes(t).toString(e).slice(0,r),Xm=async(t,e,r)=>(await ga(t)).toString(e).slice(0,r),Jm=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Ea=(t,e)=>({length:r,type:n,characters:s})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(n!==void 0&&s!==void 0)throw new TypeError("Expected either `type` or `characters`");if(s!==void 0&&typeof s!="string")throw new TypeError("Expected `characters` to be string");if(!Jm.has(n))throw new TypeError(`Unknown type: ${n}`);if(n===void 0&&s===void 0&&(n="hex"),n==="hex"||n===void 0&&s===void 0)return e(Math.ceil(r*.5),"hex",r);if(n==="base64")return e(Math.ceil(r*.75),"base64",r);if(n==="url-safe")return t(r,Mm);if(n==="numeric")return t(r,Hm);if(n==="distinguishable")return t(r,Gm);if(n==="ascii-printable")return t(r,zm);if(n==="alphanumeric")return t(r,Wm);if(s.length===0)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(s.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return t(r,s.split(""))},ya=Ea(Vm,Km);ya.async=Ea(Ym,Xm);var Ca=ya;function oi(){return Ca({length:32})}var Qm=It||jt.default.join(xa.default.tmpdir(),oi()),Fa="You don't have access to this file.",Zm={mode:448,recursive:!0},ba={mode:384},gr=class{constructor(e,r,n={}){let s=n.globalConfigPath?jt.default.join(e,"config.json"):jt.default.join("configstore",`${e}.json`);this._path=n.configPath||jt.default.join(Qm,s),r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(ui.default.readFileSync(this._path,"utf8"))}catch(e){if(e.code==="ENOENT")return{};if(e.code==="EACCES"&&(e.message=`${e.message}
|
|
22
22
|
${Fa}
|
|
23
|
-
`),e.name==="SyntaxError")return ai.default.sync(this._path,"",ba),{};throw e}}set all(e){try{ui.default.mkdirSync(
|
|
23
|
+
`),e.name==="SyntaxError")return ai.default.sync(this._path,"",ba),{};throw e}}set all(e){try{ui.default.mkdirSync(jt.default.dirname(this._path),Zm),ai.default.sync(this._path,JSON.stringify(e,void 0," "),ba)}catch(r){throw r.code==="EACCES"&&(r.message=`${r.message}
|
|
24
24
|
${Fa}
|
|
25
|
-
`),r}}get size(){return Object.keys(this.all||{}).length}get(e){return
|
|
25
|
+
`),r}}get size(){return Object.keys(this.all||{}).length}get(e){return $t.default.get(this.all,e)}set(e,r){let n=this.all;if(arguments.length===1)for(let s of Object.keys(e))$t.default.set(n,s,e[s]);else $t.default.set(n,e,r);this.all=n}has(e){return $t.default.has(this.all,e)}delete(e){let r=this.all;$t.default.delete(r,e),this.all=r}clear(){this.all={}}get path(){return this._path}};a();a();var _a=(t=0)=>e=>`\x1B[${e+t}m`,wa=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Aa=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ee={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},t_=Object.keys(ee.modifier),e0=Object.keys(ee.color),t0=Object.keys(ee.bgColor),r_=[...e0,...t0];function r0(){let t=new Map;for(let[e,r]of Object.entries(ee)){for(let[n,s]of Object.entries(r))ee[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=ee[n],t.set(s[0],s[1]);Object.defineProperty(ee,e,{value:r,enumerable:!1})}return Object.defineProperty(ee,"codes",{value:t,enumerable:!1}),ee.color.close="\x1B[39m",ee.bgColor.close="\x1B[49m",ee.color.ansi=_a(),ee.color.ansi256=wa(),ee.color.ansi16m=Aa(),ee.bgColor.ansi=_a(10),ee.bgColor.ansi256=wa(10),ee.bgColor.ansi16m=Aa(10),Object.defineProperties(ee,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>ee.rgbToAnsi256(...ee.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>ee.ansi256ToAnsi(ee.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ee.ansi256ToAnsi(ee.hexToAnsi256(e)),enumerable:!1}}),ee}var n0=r0(),Ne=n0;a();var On=I(require("process"),1),va=I(require("os"),1),ci=I(require("tty"),1);function Be(t,e=globalThis.Deno?globalThis.Deno.args:On.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:ie}=On.default,vn;Be("no-color")||Be("no-colors")||Be("color=false")||Be("color=never")?vn=0:(Be("color")||Be("colors")||Be("color=true")||Be("color=always"))&&(vn=1);function s0(){if("FORCE_COLOR"in ie)return ie.FORCE_COLOR==="true"?1:ie.FORCE_COLOR==="false"?0:ie.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ie.FORCE_COLOR,10),3)}function i0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function o0(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=s0();n!==void 0&&(vn=n);let s=r?vn:n;if(s===0)return 0;if(r){if(Be("color=16m")||Be("color=full")||Be("color=truecolor"))return 3;if(Be("color=256"))return 2}if("TF_BUILD"in ie&&"AGENT_NAME"in ie)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(ie.TERM==="dumb")return i;if(On.default.platform==="win32"){let o=va.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in ie)return"GITHUB_ACTIONS"in ie||"GITEA_ACTIONS"in ie?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in ie)||ie.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ie.TEAMCITY_VERSION)?1:0;if(ie.COLORTERM==="truecolor"||ie.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ie){let o=Number.parseInt((ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ie.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ie.TERM)||"COLORTERM"in ie?1:i}function Sa(t,e={}){let r=o0(t,{streamIsTTY:t&&t.isTTY,...e});return i0(r)}var u0={stdout:Sa({isTTY:ci.default.isatty(1)}),stderr:Sa({isTTY:ci.default.isatty(2)})},Oa=u0;a();function Ba(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return o+=t.slice(i),o}function Ra(t,e,r,n){let s=0,i="";do{let o=t[n-1]==="\r";i+=t.slice(s,o?n-1:n)+e+(o?`\r
|
|
26
26
|
`:`
|
|
27
27
|
`)+r,s=n+1,n=t.indexOf(`
|
|
28
28
|
`,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:Ta,stderr:Ia}=Oa,li=Symbol("GENERATOR"),kt=Symbol("STYLER"),Er=Symbol("IS_EMPTY"),Pa=["ansi","ansi","ansi256","ansi16m"],qt=Object.create(null),a0=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ta?Ta.level:0;t.level=e.level===void 0?r:e.level};var c0=t=>{let e=(...r)=>r.join(" ");return a0(e,t),Object.setPrototypeOf(e,yr.prototype),e};function yr(t){return c0(t)}Object.setPrototypeOf(yr.prototype,Function.prototype);for(let[t,e]of Object.entries(Ne))qt[t]={get(){let r=Bn(this,Di(e.open,e.close,this[kt]),this[Er]);return Object.defineProperty(this,t,{value:r}),r}};qt.visible={get(){let t=Bn(this,this[kt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var fi=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Ne[r].ansi16m(...n):e==="ansi256"?Ne[r].ansi256(Ne.rgbToAnsi256(...n)):Ne[r].ansi(Ne.rgbToAnsi(...n)):t==="hex"?fi("rgb",e,r,...Ne.hexToRgb(...n)):Ne[r][t](...n),l0=["rgb","hex","ansi256"];for(let t of l0){qt[t]={get(){let{level:r}=this;return function(...n){let s=Di(fi(t,Pa[r],"color",...n),Ne.color.close,this[kt]);return Bn(this,s,this[Er])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);qt[e]={get(){let{level:r}=this;return function(...n){let s=Di(fi(t,Pa[r],"bgColor",...n),Ne.bgColor.close,this[kt]);return Bn(this,s,this[Er])}}}}var f0=Object.defineProperties(()=>{},{...qt,level:{enumerable:!0,get(){return this[li].level},set(t){this[li].level=t}}}),Di=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},Bn=(t,e,r)=>{let n=(...s)=>D0(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,f0),n[li]=t,n[kt]=e,n[Er]=r,n},D0=(t,e)=>{if(t.level<=0||!e)return t[Er]?"":e;let r=t[kt];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Ba(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
|
|
@@ -30,29 +30,29 @@ ${Fa}
|
|
|
30
30
|
`).reverse(),o=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
31
31
|
`).reverse();for(;o.length>0&&o[0]===i[0];)i.shift();this.stack=`${this.stack.slice(0,s)}${i.reverse().join(`
|
|
32
32
|
`)}${o.reverse().join(`
|
|
33
|
-
`)}`}}},Hn=class extends te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},Ze=class extends te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},Gn=class extends te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},Rr=class extends te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},zn=class extends te{constructor(e,r,n){super(e.message,e,n),Object.defineProperty(this,"timings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.event=e.event,this.timings=r}},Tr=class extends te{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}},Wn=class extends te{constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Vn=class extends te{constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}};a();var To=I(require("process"),1),ds=require("buffer"),ID=require("stream"),ps=require("url"),Zr=I(require("http"),1);a();var Ll=require("events"),jl=require("util"),$l=I(Nl(),1),wy=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=o=>{o.once(Ll.errorMonitor,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})};r(t);let n=()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start};t.prependOnceListener("abort",n);let s=o=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,jl.types.isProxy(o))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};o.prependOnceListener("lookup",u),(0,$l.default)(o,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(o.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?s(t.socket):t.prependOnceListener("socket",s);let i=()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)};return t.writableFinished?i():t.prependOnceListener("finish",i),t.prependOnceListener("response",o=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,o.timings=e,r(o),o.prependOnceListener("end",()=>{t.off("abort",n),o.off("aborted",n),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),o.prependOnceListener("aborted",n)}),e},kl=wy;a();var Jl=I(require("events"),1),Pr=I(require("url"),1),Ql=I(require("crypto"),1),Jn=I(require("stream"),1);a();var Ay="text/plain",Sy="us-ascii",ki=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),vy=new Set(["https:","http:","file:"]),Oy=t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!vy.has(e)}catch{return!1}},By=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:s,hash:i}=r.groups,o=n.split(";");i=e?"":i;let u=!1;o[o.length-1]==="base64"&&(o.pop(),u=!0);let c=o.shift()?.toLowerCase()??"",l=[...o.map(D=>{let[d,h=""]=D.split("=").map(y=>y.trim());return d==="charset"&&(h=h.toLowerCase(),h===Sy)?"":`${d}${h?`=${h}`:""}`}).filter(Boolean)];return u&&l.push("base64"),(l.length>0||c&&c!==Ay)&&l.unshift(c),`data:${l.join(";")},${u?s.trim():s}${i?`#${i}`:""}`};function qi(t,e){if(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...e},typeof e.defaultProtocol=="string"&&!e.defaultProtocol.endsWith(":")&&(e.defaultProtocol=`${e.defaultProtocol}:`),t=t.trim(),/^data:/i.test(t))return By(t,e);if(Oy(t))return t;let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let s=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&s.protocol==="https:"&&(s.protocol="http:"),e.forceHttps&&s.protocol==="http:"&&(s.protocol="https:"),e.stripAuthentication&&(s.username="",s.password=""),e.stripHash?s.hash="":e.stripTextFragment&&(s.hash=s.hash.replace(/#?:~:text.*?$/i,"")),s.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,u=0,c="";for(;;){let l=o.exec(s.pathname);if(!l)break;let D=l[0],d=l.index,h=s.pathname.slice(u,d);c+=h.replace(/\/{2,}/g,"/"),c+=D,u=d+D.length}let f=s.pathname.slice(u,s.pathname.length);c+=f.replace(/\/{2,}/g,"/"),s.pathname=c}if(s.pathname)try{s.pathname=decodeURI(s.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=s.pathname.split("/"),u=o[o.length-1];ki(u,e.removeDirectoryIndex)&&(o=o.slice(0,-1),s.pathname=o.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...s.searchParams.keys()])ki(o,e.removeQueryParameters)&&s.searchParams.delete(o);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(s.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let o of[...s.searchParams.keys()])ki(o,e.keepQueryParameters)||s.searchParams.delete(o);if(e.sortQueryParameters){s.searchParams.sort();try{s.search=decodeURIComponent(s.search)}catch{}}e.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e.removeExplicitPort&&s.port&&(s.port="");let i=t;return t=s.toString(),!e.removeSingleSlash&&s.pathname==="/"&&!i.endsWith("/")&&s.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||s.pathname==="/")&&s.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var Zl=I(Mi(),1),Xn=I(Hl(),1);a();var Gl=require("stream");a();function Vt(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLowerCase(),r]))}var Yt=class extends Gl.Readable{statusCode;headers;body;url;constructor({statusCode:e,headers:r,body:n,url:s}){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Uint8Array))throw new TypeError("Argument `body` should be a buffer");if(typeof s!="string")throw new TypeError("Argument `url` should be a string");super({read(){this.push(n),this.push(null)}}),this.statusCode=e,this.headers=Vt(r),this.body=n,this.url=s}};var Nr=I(Kl(),1);a();var Wy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function Wi(t,e){if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set([...Object.keys(t),...Wy]),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}a();var Kn=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}},ze=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}};var Yi=class{constructor(e,r){this.hooks=new Map,this.request=()=>(n,s)=>{let i;if(typeof n=="string")i=Vi(Pr.default.parse(n)),n={};else if(n instanceof Pr.default.URL)i=Vi(Pr.default.parse(n.toString())),n={};else{let[d,...h]=(n.path??"").split("?"),y=h.length>0?`?${h.join("?")}`:"";i=Vi({...n,pathname:d,search:y})}n={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...n,...Ky(i)},n.headers=Object.fromEntries(Vy(n.headers).map(([d,h])=>[d.toLowerCase(),h]));let o=new Jl.default,u=qi(Pr.default.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${n.method}:${u}`;n.body&&n.method!==void 0&&["POST","PATCH","PUT"].includes(n.method)&&(n.body instanceof Jn.default.Readable?n.cache=!1:c+=`:${Ql.default.createHash("md5").update(n.body).digest("hex")}`);let f=!1,l=!1,D=d=>{l=!0;let h=!1,y=()=>{},E=new Promise(C=>{y=()=>{h||(h=!0,C())}}),b=async C=>{if(f){C.status=C.statusCode;let _=Xn.default.fromObject(f.cachePolicy).revalidatedPolicy(d,C);if(!_.modified){C.resume(),await new Promise(j=>{C.once("end",j)});let A=Xl(_.policy.responseHeaders());C=new Yt({statusCode:f.statusCode,headers:A,body:f.body,url:f.url}),C.cachePolicy=_.policy,C.fromCache=!0}}C.fromCache||(C.cachePolicy=new Xn.default(d,C,d),C.fromCache=!1);let v;d.cache&&C.cachePolicy.storable()?(v=Yy(C),(async()=>{try{let _=Zl.default.buffer(C);await Promise.race([E,new Promise(k=>C.once("end",k)),new Promise(k=>C.once("close",k))]);let A=await _,j={url:C.url,statusCode:C.fromCache?f.statusCode:C.statusCode,body:A,cachePolicy:C.cachePolicy.toObject()},z=d.strictTtl?C.cachePolicy.timeToLive():void 0;if(d.maxTtl&&(z=z?Math.min(z,d.maxTtl):d.maxTtl),this.hooks.size>0)for(let k of this.hooks.keys())j=await this.runHook(k,j,C);await this.cache.set(c,j,z)}catch(_){o.emit("error",new ze(_))}})()):d.cache&&f&&(async()=>{try{await this.cache.delete(c)}catch(_){o.emit("error",new ze(_))}})(),o.emit("response",v??C),typeof s=="function"&&s(v??C)};try{let C=this.cacheRequest(d,b);C.once("error",y),C.once("abort",y),C.once("destroy",y),o.emit("request",C)}catch(C){o.emit("error",new Kn(C))}};return(async()=>{let d=async y=>{await Promise.resolve();let E=y.cache?await this.cache.get(c):void 0;if(E===void 0&&!y.forceRefresh){D(y);return}let b=Xn.default.fromObject(E.cachePolicy);if(b.satisfiesWithoutRevalidation(y)&&!y.forceRefresh){let C=Xl(b.responseHeaders()),v=new Yt({statusCode:E.statusCode,headers:C,body:E.body,url:E.url});v.cachePolicy=b,v.fromCache=!0,o.emit("response",v),typeof s=="function"&&s(v)}else b.satisfiesWithoutRevalidation(y)&&Date.now()>=b.timeToLive()&&y.forceRefresh?(await this.cache.delete(c),y.headers=b.revalidationHeaders(y),D(y)):(f=E,y.headers=b.revalidationHeaders(y),D(y))},h=y=>o.emit("error",new ze(y));if(this.cache instanceof Nr.default){let y=this.cache;y.once("error",h),o.on("error",()=>y.removeListener("error",h)),o.on("response",()=>y.removeListener("error",h))}try{await d(n)}catch(y){n.automaticFailover&&!l&&D(n),o.emit("error",new ze(y))}})(),o},this.addHook=(n,s)=>{this.hooks.has(n)||this.hooks.set(n,s)},this.removeHook=n=>this.hooks.delete(n),this.getHook=n=>this.hooks.get(n),this.runHook=async(n,...s)=>this.hooks.get(n)?.(...s),r instanceof Nr.default?this.cache=r:typeof r=="string"?this.cache=new Nr.default({uri:r,namespace:"cacheable-request"}):this.cache=new Nr.default({store:r,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},Vy=Object.entries,Yy=t=>{let e=new Jn.PassThrough({autoDestroy:!1});return Wi(t,e),t.pipe(e)},Ky=t=>{let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e},Vi=t=>({protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}),Xl=t=>{let e=[];for(let r of Object.keys(t))e[r.toLowerCase()]=t[r];return e},ef=Yi;var PD=I(sf(),1);var ND=I(Mi(),1);a();a();a();var Ie=t=>typeof t=="function";var eC=t=>Ie(t[Symbol.asyncIterator]);async function*tC(t){let e=t.getReader();for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}var of=t=>{if(eC(t))return t;if(Ie(t.getReader))return tC(t);throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};a();var uf="abcdefghijklmnopqrstuvwxyz0123456789";function af(){let t=16,e="";for(;t--;)e+=uf[Math.random()*uf.length<<0];return e}a();var Xi=t=>String(t).replace(/\r|\n/g,(e,r,n)=>e==="\r"&&n[r+1]!==`
|
|
33
|
+
`)}`}}},Hn=class extends te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},Ze=class extends te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},Gn=class extends te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},Rr=class extends te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},zn=class extends te{constructor(e,r,n){super(e.message,e,n),Object.defineProperty(this,"timings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.event=e.event,this.timings=r}},Tr=class extends te{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}},Wn=class extends te{constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Vn=class extends te{constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}};a();var To=I(require("process"),1),ds=require("buffer"),ID=require("stream"),ps=require("url"),Zr=I(require("http"),1);a();var Ll=require("events"),$l=require("util"),jl=I(Nl(),1),wy=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=o=>{o.once(Ll.errorMonitor,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})};r(t);let n=()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start};t.prependOnceListener("abort",n);let s=o=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,$l.types.isProxy(o))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};o.prependOnceListener("lookup",u),(0,jl.default)(o,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(o.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?s(t.socket):t.prependOnceListener("socket",s);let i=()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)};return t.writableFinished?i():t.prependOnceListener("finish",i),t.prependOnceListener("response",o=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,o.timings=e,r(o),o.prependOnceListener("end",()=>{t.off("abort",n),o.off("aborted",n),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),o.prependOnceListener("aborted",n)}),e},kl=wy;a();var Jl=I(require("events"),1),Pr=I(require("url"),1),Ql=I(require("crypto"),1),Jn=I(require("stream"),1);a();var Ay="text/plain",Sy="us-ascii",ki=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),vy=new Set(["https:","http:","file:"]),Oy=t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!vy.has(e)}catch{return!1}},By=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:s,hash:i}=r.groups,o=n.split(";");i=e?"":i;let u=!1;o[o.length-1]==="base64"&&(o.pop(),u=!0);let c=o.shift()?.toLowerCase()??"",l=[...o.map(D=>{let[d,h=""]=D.split("=").map(y=>y.trim());return d==="charset"&&(h=h.toLowerCase(),h===Sy)?"":`${d}${h?`=${h}`:""}`}).filter(Boolean)];return u&&l.push("base64"),(l.length>0||c&&c!==Ay)&&l.unshift(c),`data:${l.join(";")},${u?s.trim():s}${i?`#${i}`:""}`};function qi(t,e){if(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...e},typeof e.defaultProtocol=="string"&&!e.defaultProtocol.endsWith(":")&&(e.defaultProtocol=`${e.defaultProtocol}:`),t=t.trim(),/^data:/i.test(t))return By(t,e);if(Oy(t))return t;let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let s=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&s.protocol==="https:"&&(s.protocol="http:"),e.forceHttps&&s.protocol==="http:"&&(s.protocol="https:"),e.stripAuthentication&&(s.username="",s.password=""),e.stripHash?s.hash="":e.stripTextFragment&&(s.hash=s.hash.replace(/#?:~:text.*?$/i,"")),s.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,u=0,c="";for(;;){let l=o.exec(s.pathname);if(!l)break;let D=l[0],d=l.index,h=s.pathname.slice(u,d);c+=h.replace(/\/{2,}/g,"/"),c+=D,u=d+D.length}let f=s.pathname.slice(u,s.pathname.length);c+=f.replace(/\/{2,}/g,"/"),s.pathname=c}if(s.pathname)try{s.pathname=decodeURI(s.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=s.pathname.split("/"),u=o[o.length-1];ki(u,e.removeDirectoryIndex)&&(o=o.slice(0,-1),s.pathname=o.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...s.searchParams.keys()])ki(o,e.removeQueryParameters)&&s.searchParams.delete(o);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(s.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let o of[...s.searchParams.keys()])ki(o,e.keepQueryParameters)||s.searchParams.delete(o);if(e.sortQueryParameters){s.searchParams.sort();try{s.search=decodeURIComponent(s.search)}catch{}}e.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e.removeExplicitPort&&s.port&&(s.port="");let i=t;return t=s.toString(),!e.removeSingleSlash&&s.pathname==="/"&&!i.endsWith("/")&&s.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||s.pathname==="/")&&s.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var Zl=I(Mi(),1),Xn=I(Hl(),1);a();var Gl=require("stream");a();function Vt(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLowerCase(),r]))}var Yt=class extends Gl.Readable{statusCode;headers;body;url;constructor({statusCode:e,headers:r,body:n,url:s}){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Uint8Array))throw new TypeError("Argument `body` should be a buffer");if(typeof s!="string")throw new TypeError("Argument `url` should be a string");super({read(){this.push(n),this.push(null)}}),this.statusCode=e,this.headers=Vt(r),this.body=n,this.url=s}};var Nr=I(Kl(),1);a();var Wy=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function Wi(t,e){if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set([...Object.keys(t),...Wy]),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}a();var Kn=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}},ze=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}};var Yi=class{constructor(e,r){this.hooks=new Map,this.request=()=>(n,s)=>{let i;if(typeof n=="string")i=Vi(Pr.default.parse(n)),n={};else if(n instanceof Pr.default.URL)i=Vi(Pr.default.parse(n.toString())),n={};else{let[d,...h]=(n.path??"").split("?"),y=h.length>0?`?${h.join("?")}`:"";i=Vi({...n,pathname:d,search:y})}n={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...n,...Ky(i)},n.headers=Object.fromEntries(Vy(n.headers).map(([d,h])=>[d.toLowerCase(),h]));let o=new Jl.default,u=qi(Pr.default.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${n.method}:${u}`;n.body&&n.method!==void 0&&["POST","PATCH","PUT"].includes(n.method)&&(n.body instanceof Jn.default.Readable?n.cache=!1:c+=`:${Ql.default.createHash("md5").update(n.body).digest("hex")}`);let f=!1,l=!1,D=d=>{l=!0;let h=!1,y=()=>{},E=new Promise(C=>{y=()=>{h||(h=!0,C())}}),b=async C=>{if(f){C.status=C.statusCode;let _=Xn.default.fromObject(f.cachePolicy).revalidatedPolicy(d,C);if(!_.modified){C.resume(),await new Promise($=>{C.once("end",$)});let A=Xl(_.policy.responseHeaders());C=new Yt({statusCode:f.statusCode,headers:A,body:f.body,url:f.url}),C.cachePolicy=_.policy,C.fromCache=!0}}C.fromCache||(C.cachePolicy=new Xn.default(d,C,d),C.fromCache=!1);let v;d.cache&&C.cachePolicy.storable()?(v=Yy(C),(async()=>{try{let _=Zl.default.buffer(C);await Promise.race([E,new Promise(k=>C.once("end",k)),new Promise(k=>C.once("close",k))]);let A=await _,$={url:C.url,statusCode:C.fromCache?f.statusCode:C.statusCode,body:A,cachePolicy:C.cachePolicy.toObject()},z=d.strictTtl?C.cachePolicy.timeToLive():void 0;if(d.maxTtl&&(z=z?Math.min(z,d.maxTtl):d.maxTtl),this.hooks.size>0)for(let k of this.hooks.keys())$=await this.runHook(k,$,C);await this.cache.set(c,$,z)}catch(_){o.emit("error",new ze(_))}})()):d.cache&&f&&(async()=>{try{await this.cache.delete(c)}catch(_){o.emit("error",new ze(_))}})(),o.emit("response",v??C),typeof s=="function"&&s(v??C)};try{let C=this.cacheRequest(d,b);C.once("error",y),C.once("abort",y),C.once("destroy",y),o.emit("request",C)}catch(C){o.emit("error",new Kn(C))}};return(async()=>{let d=async y=>{await Promise.resolve();let E=y.cache?await this.cache.get(c):void 0;if(E===void 0&&!y.forceRefresh){D(y);return}let b=Xn.default.fromObject(E.cachePolicy);if(b.satisfiesWithoutRevalidation(y)&&!y.forceRefresh){let C=Xl(b.responseHeaders()),v=new Yt({statusCode:E.statusCode,headers:C,body:E.body,url:E.url});v.cachePolicy=b,v.fromCache=!0,o.emit("response",v),typeof s=="function"&&s(v)}else b.satisfiesWithoutRevalidation(y)&&Date.now()>=b.timeToLive()&&y.forceRefresh?(await this.cache.delete(c),y.headers=b.revalidationHeaders(y),D(y)):(f=E,y.headers=b.revalidationHeaders(y),D(y))},h=y=>o.emit("error",new ze(y));if(this.cache instanceof Nr.default){let y=this.cache;y.once("error",h),o.on("error",()=>y.removeListener("error",h)),o.on("response",()=>y.removeListener("error",h))}try{await d(n)}catch(y){n.automaticFailover&&!l&&D(n),o.emit("error",new ze(y))}})(),o},this.addHook=(n,s)=>{this.hooks.has(n)||this.hooks.set(n,s)},this.removeHook=n=>this.hooks.delete(n),this.getHook=n=>this.hooks.get(n),this.runHook=async(n,...s)=>this.hooks.get(n)?.(...s),r instanceof Nr.default?this.cache=r:typeof r=="string"?this.cache=new Nr.default({uri:r,namespace:"cacheable-request"}):this.cache=new Nr.default({store:r,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},Vy=Object.entries,Yy=t=>{let e=new Jn.PassThrough({autoDestroy:!1});return Wi(t,e),t.pipe(e)},Ky=t=>{let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e},Vi=t=>({protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}),Xl=t=>{let e=[];for(let r of Object.keys(t))e[r.toLowerCase()]=t[r];return e},ef=Yi;var PD=I(sf(),1);var ND=I(Mi(),1);a();a();a();var Ie=t=>typeof t=="function";var eC=t=>Ie(t[Symbol.asyncIterator]);async function*tC(t){let e=t.getReader();for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}var of=t=>{if(eC(t))return t;if(Ie(t.getReader))return tC(t);throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};a();var uf="abcdefghijklmnopqrstuvwxyz0123456789";function af(){let t=16,e="";for(;t--;)e+=uf[Math.random()*uf.length<<0];return e}a();var Xi=t=>String(t).replace(/\r|\n/g,(e,r,n)=>e==="\r"&&n[r+1]!==`
|
|
34
34
|
`||e===`
|
|
35
35
|
`&&n[r-1]!=="\r"?`\r
|
|
36
|
-
`:e);a();var rC=t=>Object.prototype.toString.call(t).slice(8,-1).toLowerCase();function Ji(t){if(rC(t)!=="object")return!1;let e=Object.getPrototypeOf(t);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}a();function cf(t,e){if(typeof e=="string"){for(let[r,n]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return n}}var lf=t=>new Proxy(t,{get:(e,r)=>cf(e,r),has:(e,r)=>cf(e,r)!==void 0});a();var Kt=t=>!!(t&&Ie(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&Ie(t.append)&&Ie(t.getAll)&&Ie(t.entries)&&Ie(t[Symbol.iterator]));a();var Qi=t=>String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");a();var et=t=>!!(t&&typeof t=="object"&&Ie(t.constructor)&&t[Symbol.toStringTag]==="File"&&Ie(t.stream)&&t.name!=null);var Lr=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},X=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jr,
|
|
37
|
-
`),$r.set(this,void 0),Qn.set(this,void 0),kr.set(this,"-".repeat(2)),gt.set(this,new TextEncoder),qr.set(this,void 0),Ur.set(this,void 0),Zn.set(this,void 0),!Kt(e))throw new TypeError("Expected first argument to be a FormData instance.");let s;if(Ji(r)?n=r:s=r,s||(s=af()),typeof s!="string")throw new TypeError("Expected boundary argument to be a string.");if(n&&!Ji(n))throw new TypeError("Expected options argument to be an object.");Lr(this,Ur,Array.from(e.entries()),"f"),Lr(this,Zn,{...nC,...n},"f"),Lr(this,$r,X(this,gt,"f").encode(X(this,tt,"f")),"f"),Lr(this,Qn,X(this,$r,"f").byteLength,"f"),this.boundary=`form-data-boundary-${s}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Lr(this,qr,X(this,gt,"f").encode(`${X(this,kr,"f")}${this.boundary}${X(this,kr,"f")}${X(this,tt,"f").repeat(2)}`),"f");let i={"Content-Type":this.contentType},o=X(this,jr,"m",ff).call(this);o&&(this.contentLength=o,i["Content-Length"]=o),this.headers=lf(Object.freeze(i)),Object.defineProperties(this,{boundary:es,contentType:es,contentLength:es,headers:es})}getContentLength(){return this.contentLength==null?void 0:Number(this.contentLength)}*values(){for(let[e,r]of X(this,Ur,"f")){let n=et(r)?r:X(this,gt,"f").encode(Xi(r));yield X(this,jr,"m",Zi).call(this,e,n),yield n,yield X(this,$r,"f")}yield X(this,qr,"f")}async*encode(){for(let e of this.values())et(e)?yield*of(e.stream()):yield e}[(tt=new WeakMap,$r=new WeakMap,Qn=new WeakMap,kr=new WeakMap,gt=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Zn=new WeakMap,jr=new WeakSet,Zi=function(r,n){let s="";s+=`${X(this,kr,"f")}${this.boundary}${X(this,tt,"f")}`,s+=`Content-Disposition: form-data; name="${Qi(r)}"`,et(n)&&(s+=`; filename="${Qi(n.name)}"${X(this,tt,"f")}`,s+=`Content-Type: ${n.type||"application/octet-stream"}`);let i=et(n)?n.size:n.byteLength;return X(this,Zn,"f").enableAdditionalHeaders===!0&&i!=null&&!isNaN(i)&&(s+=`${X(this,tt,"f")}Content-Length: ${et(n)?n.size:n.byteLength}`),X(this,gt,"f").encode(`${s}${X(this,tt,"f").repeat(2)}`)},ff=function(){let r=0;for(let[n,s]of X(this,Ur,"f")){let i=et(s)?s:X(this,gt,"f").encode(Xi(s)),o=et(i)?i.size:i.byteLength;if(o==null||isNaN(o))return;r+=X(this,jr,"m",Zi).call(this,n,i).byteLength,r+=o,r+=X(this,Qn,"f")}return String(r+X(this,qr,"f").byteLength)},Symbol.iterator)](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};a();var Df=require("buffer"),hf=require("util");a();function Mr(t){return g.nodeStream(t)&&g.function_(t.getBoundary)}async function eo(t,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(g.string(t))return Df.Buffer.byteLength(t);if(g.buffer(t))return t.length;if(Mr(t))return(0,hf.promisify)(t.getLength.bind(t))()}a();function Hr(t,e,r){let n={};for(let s of r){let i=(...o)=>{e.emit(s,...o)};n[s]=i,t.on(s,i)}return()=>{for(let[s,i]of Object.entries(n))t.off(s,i)}}a();var pf=I(require("net"),1);a();function to(){let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:s}=e;r.removeListener(n,s)}t.length=0}}}var df=Symbol("reentry"),sC=()=>{},Gr=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.code="ETIMEDOUT"}};function ro(t,e,r){if(df in t)return sC;t[df]=!0;let n=[],{once:s,unhandleAll:i}=to(),o=(E,b,C)=>{let v=setTimeout(b,E,E,C);v.unref?.();let _=()=>{clearTimeout(v)};return n.push(_),_},{host:u,hostname:c}=r,f=(E,b)=>{t.destroy(new Gr(E,b))},l=()=>{for(let E of n)E();i()};if(t.once("error",E=>{if(l(),t.listenerCount("error")===0)throw E}),typeof e.request<"u"){let E=o(e.request,f,"request");s(t,"response",b=>{s(b,"end",E)})}if(typeof e.socket<"u"){let{socket:E}=e,b=()=>{f(E,"socket")};t.setTimeout(E,b),n.push(()=>{t.removeListener("timeout",b)})}let D=typeof e.lookup<"u",d=typeof e.connect<"u",h=typeof e.secureConnect<"u",y=typeof e.send<"u";return(D||d||h||y)&&s(t,"socket",E=>{let{socketPath:b}=t;if(E.connecting){let C=!!(b??pf.default.isIP(c??u??"")!==0);if(D&&!C&&typeof E.address().address>"u"){let v=o(e.lookup,f,"lookup");s(E,"lookup",v)}if(d){let v=()=>o(e.connect,f,"connect");C?s(E,"connect",v()):s(E,"lookup",_=>{_===null&&s(E,"connect",v())})}h&&r.protocol==="https:"&&s(E,"connect",()=>{let v=o(e.secureConnect,f,"secureConnect");s(E,"secureConnect",v)})}if(y){let C=()=>o(e.send,f,"send");E.connecting?s(E,"connect",()=>{s(t,"upload-complete",C())}):s(t,"upload-complete",C())}}),typeof e.response<"u"&&s(t,"upload-complete",()=>{let E=o(e.response,f,"response");s(t,"response",E)}),typeof e.read<"u"&&s(t,"response",E=>{let b=o(e.read,f,"read");s(E,"end",b)}),l}a();function no(t){t=t;let e={protocol:t.protocol,hostname:g.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return g.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}a();var zr=class{constructor(){Object.defineProperty(this,"weakMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};a();var iC=({attemptCount:t,retryOptions:e,error:r,retryAfter:n,computedValue:s})=>{if(r.name==="RetryError")return 1;if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),o=e.errorCodes.includes(r.code),u=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!o&&!u)return 0;if(r.response){if(n)return n>s?0:n;if(r.response.statusCode===413)return 0}let c=Math.random()*e.noise;return Math.min(2**(t-1)*1e3,e.backoffLimit)+c},mf=iC;a();var SD=I(require("process"),1),Qr=require("util"),We=require("url"),vD=require("tls"),OD=I(require("http"),1),BD=I(require("https"),1);a();var je=require("dns"),ns=require("util"),bf=I(require("os"),1),{Resolver:gf}=je.promises,Xt=Symbol("cacheableLookupCreateConnection"),so=Symbol("cacheableLookupInstance"),Ef=Symbol("expires"),oC=typeof je.ALL=="number",yf=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},uC=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},Cf=()=>{let t=!1,e=!1;for(let r of Object.values(bf.default.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},aC=t=>Symbol.iterator in t,rs=t=>t.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),Ff={ttl:!0},cC={all:!0},lC={all:!0,family:4},fC={all:!0,family:6},Wr=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:s=.15,resolver:i=new gf,lookup:o=je.lookup}={}){if(this.maxTtl=r,this.errorTtl=s,this._cache=e,this._resolver=i,this._dnsLookup=o&&(0,ns.promisify)(o),this.stats={cache:0,query:0},this._resolver instanceof gf?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=(0,ns.promisify)(this._resolver.resolve4.bind(this._resolver)),this._resolve6=(0,ns.promisify)(this._resolver.resolve6.bind(this._resolver))),this._iface=Cf(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=n,n>0){let u=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);u.unref&&u.unref(),this._fallbackInterval=u}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(s=>{r.all?n(null,s):n(null,s.address,s.family,s.expires,s.ttl,s.source)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let s=n.filter(i=>i.family===6);r.hints&je.V4MAPPED&&(oC&&r.hints&je.ALL||s.length===0)?uC(n):n=s}else r.family===4&&(n=n.filter(s=>s.family===4));if(r.hints&je.ADDRCONFIG){let{_iface:s}=this;n=n.filter(i=>i.family===6?s.has6:s.has4)}if(n.length===0){let s=new Error(`cacheableLookup ENOTFOUND ${e}`);throw s.code="ENOTFOUND",s.hostname=e,s}return r.all?n:n[0]}async query(e){let r="cache",n=await this._cache.get(e);if(n&&this.stats.cache++,!n){let s=this._pending[e];if(s)this.stats.cache++,n=await s;else{r="query";let i=this.queryAndCache(e);this._pending[e]=i,this.stats.query++;try{n=await i}finally{delete this._pending[e]}}}return n=n.map(s=>({...s,source:r})),n}async _resolve(e){let[r,n]=await Promise.all([rs(this._resolve4(e,Ff)),rs(this._resolve6(e,Ff))]),s=0,i=0,o=0,u=Date.now();for(let c of r)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,i=Math.max(i,c.ttl);return r.length>0?n.length>0?o=Math.min(s,i):o=s:o=i,{entries:[...r,...n],cacheTtl:o}}async _lookup(e){try{let[r,n]=await Promise.all([rs(this._dnsLookup(e,lC)),rs(this._dnsLookup(e,fC))]);return{entries:[...r,...n],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[Ef]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(s){this.lookupAsync=async()=>{let i=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw i.cause=s,i}}aC(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,cC);let r=await this._resolve(e);r.entries.length===0&&this._dnsLookup&&(r=await this._lookup(e),r.entries.length!==0&&this.fallbackDuration>0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,s=Date.now();for(let[i,o]of this._cache){let u=o[Ef];s>=u?this._cache.delete(i):u<n&&(n=u)}n!==1/0&&this._tick(n-s)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(yf(e),Xt in e)throw new Error("CacheableLookup has been already installed");e[Xt]=e.createConnection,e[so]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Xt](r,n))}uninstall(e){if(yf(e),e[Xt]){if(e[so]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Xt],delete e[Xt],delete e[so]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=Cf(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};var RD=I(_D(),1);a();function Oo(t){let e=[],r=t.split(",");for(let n of r){let[s,...i]=n.split(";"),o=s.trim();if(o[0]!=="<"||o[o.length-1]!==">")throw new Error(`Invalid format of the Link header reference: ${o}`);let u=o.slice(1,-1),c={};if(i.length===0)throw new Error(`Unexpected end of Link header parameters: ${i.join(";")}`);for(let f of i){let l=f.trim(),D=l.indexOf("=");if(D===-1)throw new Error(`Failed to parse Link header: ${t}`);let d=l.slice(0,D).trim(),h=l.slice(D+1).trim();c[d]=h}e.push({reference:u,parameters:c})}return e}var[wD,IF]=SD.default.versions.node.split(".").map(Number);function PF(t){for(let e in t){let r=t[e];w.any([g.string,g.number,g.boolean,g.null_,g.undefined],r)}}var NF=new Map,ls,LF=()=>ls||(ls=new Wr,ls),jF={request:void 0,agent:{http:void 0,https:void 0,http2:void 0},h2session:void 0,decompress:!0,timeout:{connect:void 0,lookup:void 0,read:void 0,request:void 0,response:void 0,secureConnect:void 0,send:void 0,socket:void 0},prefixUrl:"",body:void 0,form:void 0,json:void 0,cookieJar:void 0,ignoreInvalidCookies:!1,searchParams:void 0,dnsLookup:void 0,dnsCache:void 0,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},followRedirect:!0,maxRedirects:10,cache:void 0,throwHttpErrors:!0,username:"",password:"",http2:!1,allowGetBody:!1,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:!1,dnsLookupIpVersion:void 0,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t,backoffLimit:Number.POSITIVE_INFINITY,noise:100},localAddress:void 0,method:"GET",createConnection:void 0,cacheOptions:{shared:void 0,cacheHeuristic:void 0,immutableMinTimeToLive:void 0,ignoreCargoCult:void 0},https:{alpnProtocols:void 0,rejectUnauthorized:void 0,checkServerIdentity:void 0,certificateAuthority:void 0,key:void 0,certificate:void 0,passphrase:void 0,pfx:void 0,ciphers:void 0,honorCipherOrder:void 0,minVersion:void 0,maxVersion:void 0,signatureAlgorithms:void 0,tlsSessionLifetime:void 0,dhparam:void 0,ecdhCurve:void 0,certificateRevocationLists:void 0},encoding:void 0,resolveBodyOnly:!1,isStream:!1,responseType:"text",url:void 0,pagination:{transform(t){return t.request.options.responseType==="json"?t.body:JSON.parse(t.body)},paginate({response:t}){let e=t.headers.link;if(typeof e!="string"||e.trim()==="")return!1;let n=Oo(e).find(s=>s.parameters.rel==="next"||s.parameters.rel==='"next"');return n?{url:new We.URL(n.reference,t.url)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!0},$F=t=>{let{hooks:e,retry:r}=t,n={...t,context:{...t.context},cacheOptions:{...t.cacheOptions},https:{...t.https},agent:{...t.agent},headers:{...t.headers},retry:{...r,errorCodes:[...r.errorCodes],methods:[...r.methods],statusCodes:[...r.statusCodes]},timeout:{...t.timeout},hooks:{init:[...e.init],beforeRequest:[...e.beforeRequest],beforeError:[...e.beforeError],beforeRedirect:[...e.beforeRedirect],beforeRetry:[...e.beforeRetry],afterResponse:[...e.afterResponse]},searchParams:t.searchParams?new We.URLSearchParams(t.searchParams):void 0,pagination:{...t.pagination}};return n.url!==void 0&&(n.prefixUrl=""),n},kF=t=>{let{hooks:e,retry:r}=t,n={...t};return g.object(t.context)&&(n.context={...t.context}),g.object(t.cacheOptions)&&(n.cacheOptions={...t.cacheOptions}),g.object(t.https)&&(n.https={...t.https}),g.object(t.cacheOptions)&&(n.cacheOptions={...n.cacheOptions}),g.object(t.agent)&&(n.agent={...t.agent}),g.object(t.headers)&&(n.headers={...t.headers}),g.object(r)&&(n.retry={...r},g.array(r.errorCodes)&&(n.retry.errorCodes=[...r.errorCodes]),g.array(r.methods)&&(n.retry.methods=[...r.methods]),g.array(r.statusCodes)&&(n.retry.statusCodes=[...r.statusCodes])),g.object(t.timeout)&&(n.timeout={...t.timeout}),g.object(e)&&(n.hooks={...e},g.array(e.init)&&(n.hooks.init=[...e.init]),g.array(e.beforeRequest)&&(n.hooks.beforeRequest=[...e.beforeRequest]),g.array(e.beforeError)&&(n.hooks.beforeError=[...e.beforeError]),g.array(e.beforeRedirect)&&(n.hooks.beforeRedirect=[...e.beforeRedirect]),g.array(e.beforeRetry)&&(n.hooks.beforeRetry=[...e.beforeRetry]),g.array(e.afterResponse)&&(n.hooks.afterResponse=[...e.afterResponse])),g.object(t.pagination)&&(n.pagination={...t.pagination}),n},qF=t=>{let e=[t.timeout.socket,t.timeout.connect,t.timeout.lookup,t.timeout.request,t.timeout.secureConnect].filter(r=>typeof r=="number");if(e.length>0)return Math.min(...e)},AD=(t,e,r)=>{let n=t.hooks?.init;if(n)for(let s of n)s(e,r)},Pe=class t{constructor(e,r,n){if(Object.defineProperty(this,"_unixOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_internals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_merging",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_init",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.any([g.string,g.urlInstance,g.object,g.undefined],e),w.any([g.object,g.undefined],r),w.any([g.object,g.undefined],n),e instanceof t||r instanceof t)throw new TypeError("The defaults must be passed as the third argument");this._internals=$F(n?._internals??n??jF),this._init=[...n?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(g.plainObject(e))try{this.merge(e),this.merge(r)}finally{this.url=e.url}else try{this.merge(r)}finally{if(r?.url!==void 0)if(e===void 0)this.url=r.url;else throw new TypeError("The `url` option is mutually exclusive with the `input` argument");else e!==void 0&&(this.url=e)}}catch(s){throw s.options=this,s}}merge(e){if(e){if(e instanceof t){for(let r of e._init)this.merge(r);return}e=kF(e),AD(this,e,this),AD(e,e,this),this._merging=!0,"isStream"in e&&(this.isStream=e.isStream);try{let r=!1;for(let n in e)if(!(n==="mutableDefaults"||n==="handlers")&&n!=="url"){if(!(n in this))throw new Error(`Unexpected option: ${n}`);this[n]=e[n],r=!0}r&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){w.any([g.function_,g.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){w.plainObject(e);for(let r in e){if(!(r in this._internals.agent))throw new TypeError(`Unexpected agent option: ${r}`);w.any([g.object,g.undefined],e[r])}this._merging?Object.assign(this._internals.agent,e):this._internals.agent={...e}}get h2session(){return this._internals.h2session}set h2session(e){this._internals.h2session=e}get decompress(){return this._internals.decompress}set decompress(e){w.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){w.plainObject(e);for(let r in e){if(!(r in this._internals.timeout))throw new Error(`Unexpected timeout option: ${r}`);w.any([g.number,g.undefined],e[r])}this._merging?Object.assign(this._internals.timeout,e):this._internals.timeout={...e}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(e){if(w.any([g.string,g.urlInstance],e),e===""){this._internals.prefixUrl="";return}if(e=e.toString(),e.endsWith("/")||(e+="/"),this._internals.prefixUrl&&this._internals.url){let{href:r}=this._internals.url;this._internals.url.href=e+r.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=e}get body(){return this._internals.body}set body(e){w.any([g.string,g.buffer,g.nodeStream,g.generator,g.asyncGenerator,Kt,g.undefined],e),g.nodeStream(e)&&w.truthy(e.readable),e!==void 0&&(w.undefined(this._internals.form),w.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){w.any([g.plainObject,g.undefined],e),e!==void 0&&(w.undefined(this._internals.body),w.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(w.undefined(this._internals.body),w.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(w.any([g.string,g.urlInstance,g.undefined],e),e===void 0){this._internals.url=void 0;return}if(g.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let r=`${this.prefixUrl}${e.toString()}`,n=new We.URL(r);if(this._internals.url=n,n.protocol==="unix:"&&(n.href=`http://unix${n.pathname}${n.search}`),n.protocol!=="http:"&&n.protocol!=="https:"){let s=new Error(`Unsupported protocol: ${n.protocol}`);throw s.code="ERR_UNSUPPORTED_PROTOCOL",s}if(this._internals.username&&(n.username=this._internals.username,this._internals.username=""),this._internals.password&&(n.password=this._internals.password,this._internals.password=""),this._internals.searchParams&&(n.search=this._internals.searchParams.toString(),this._internals.searchParams=void 0),n.hostname==="unix"){if(!this._internals.enableUnixSockets)throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled");let s=/(?<socketPath>.+?):(?<path>.+)/.exec(`${n.pathname}${n.search}`);if(s?.groups){let{socketPath:i,path:o}=s.groups;this._unixOptions={socketPath:i,path:o,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(w.any([g.object,g.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:r,getCookieString:n}=e;w.function_(r),w.function_(n),r.length===4&&n.length===0?(r=(0,Qr.promisify)(r.bind(e)),n=(0,Qr.promisify)(n.bind(e)),this._internals.cookieJar={setCookie:r,getCookieString:n}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){w.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){w.boolean(e),this._internals.ignoreInvalidCookies=e}get searchParams(){return this._internals.url?this._internals.url.searchParams:(this._internals.searchParams===void 0&&(this._internals.searchParams=new We.URLSearchParams),this._internals.searchParams)}set searchParams(e){w.any([g.string,g.object,g.undefined],e);let r=this._internals.url;if(e===void 0){this._internals.searchParams=void 0,r&&(r.search="");return}let n=this.searchParams,s;if(g.string(e))s=new We.URLSearchParams(e);else if(e instanceof We.URLSearchParams)s=e;else{PF(e),s=new We.URLSearchParams;for(let i in e){let o=e[i];o===null?s.append(i,""):o===void 0?n.delete(i):s.append(i,o)}}if(this._merging){for(let i of s.keys())n.delete(i);for(let[i,o]of s)n.append(i,o)}else r?r.search=n.toString():this._internals.searchParams=n}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(e){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(e){w.any([g.function_,g.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){w.any([g.object,g.boolean,g.undefined],e),e===!0?this._internals.dnsCache=LF():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){w.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){w.object(e);for(let r in e){if(!(r in this._internals.hooks))throw new Error(`Unexpected hook event: ${r}`);let n=r,s=e[n];if(w.any([g.array,g.undefined],s),s)for(let i of s)w.function_(i);if(this._merging)s&&this._internals.hooks[n].push(...s);else{if(!s)throw new Error(`Missing hook event: ${r}`);this._internals.hooks[r]=[...s]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(e){w.boolean(e),this._internals.followRedirect=e}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(e){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(e){w.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){w.any([g.object,g.string,g.boolean,g.undefined],e),e===!0?this._internals.cache=NF:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){w.boolean(e),this._internals.throwHttpErrors=e}get username(){let e=this._internals.url,r=e?e.username:this._internals.username;return decodeURIComponent(r)}set username(e){w.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.username=n:this._internals.username=n}get password(){let e=this._internals.url,r=e?e.password:this._internals.password;return decodeURIComponent(r)}set password(e){w.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.password=n:this._internals.password=n}get http2(){return this._internals.http2}set http2(e){w.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){w.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){w.plainObject(e),this._merging?Object.assign(this._internals.headers,Vt(e)):this._internals.headers=Vt(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){w.boolean(e),this._internals.methodRewriting=e}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(e){if(e!==void 0&&e!==4&&e!==6)throw new TypeError(`Invalid DNS lookup IP version: ${e}`);this._internals.dnsLookupIpVersion=e}get parseJson(){return this._internals.parseJson}set parseJson(e){w.function_(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){w.function_(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(w.plainObject(e),w.any([g.function_,g.undefined],e.calculateDelay),w.any([g.number,g.undefined],e.maxRetryAfter),w.any([g.number,g.undefined],e.limit),w.any([g.array,g.undefined],e.methods),w.any([g.array,g.undefined],e.statusCodes),w.any([g.array,g.undefined],e.errorCodes),w.any([g.number,g.undefined],e.noise),e.noise&&Math.abs(e.noise)>100)throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`);for(let n in e)if(!(n in this._internals.retry))throw new Error(`Unexpected retry option: ${n}`);this._merging?Object.assign(this._internals.retry,e):this._internals.retry={...e};let{retry:r}=this._internals;r.methods=[...new Set(r.methods.map(n=>n.toUpperCase()))],r.statusCodes=[...new Set(r.statusCodes)],r.errorCodes=[...new Set(r.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(e){w.any([g.string,g.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){w.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){w.any([g.function_,g.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){w.plainObject(e),w.any([g.boolean,g.undefined],e.shared),w.any([g.number,g.undefined],e.cacheHeuristic),w.any([g.number,g.undefined],e.immutableMinTimeToLive),w.any([g.boolean,g.undefined],e.ignoreCargoCult);for(let r in e)if(!(r in this._internals.cacheOptions))throw new Error(`Cache option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.cacheOptions,e):this._internals.cacheOptions={...e}}get https(){return this._internals.https}set https(e){w.plainObject(e),w.any([g.boolean,g.undefined],e.rejectUnauthorized),w.any([g.function_,g.undefined],e.checkServerIdentity),w.any([g.string,g.object,g.array,g.undefined],e.certificateAuthority),w.any([g.string,g.object,g.array,g.undefined],e.key),w.any([g.string,g.object,g.array,g.undefined],e.certificate),w.any([g.string,g.undefined],e.passphrase),w.any([g.string,g.buffer,g.array,g.undefined],e.pfx),w.any([g.array,g.undefined],e.alpnProtocols),w.any([g.string,g.undefined],e.ciphers),w.any([g.string,g.buffer,g.undefined],e.dhparam),w.any([g.string,g.undefined],e.signatureAlgorithms),w.any([g.string,g.undefined],e.minVersion),w.any([g.string,g.undefined],e.maxVersion),w.any([g.boolean,g.undefined],e.honorCipherOrder),w.any([g.number,g.undefined],e.tlsSessionLifetime),w.any([g.string,g.undefined],e.ecdhCurve),w.any([g.string,g.buffer,g.array,g.undefined],e.certificateRevocationLists);for(let r in e)if(!(r in this._internals.https))throw new Error(`HTTPS option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.https,e):this._internals.https={...e}}get encoding(){return this._internals.encoding}set encoding(e){if(e===null)throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");w.any([g.string,g.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){w.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){w.boolean(e),this._internals.isStream=e}get responseType(){return this._internals.responseType}set responseType(e){if(e===void 0){this._internals.responseType="text";return}if(e!=="text"&&e!=="buffer"&&e!=="json")throw new Error(`Invalid \`responseType\` option: ${e}`);this._internals.responseType=e}get pagination(){return this._internals.pagination}set pagination(e){w.object(e),this._merging?Object.assign(this._internals.pagination,e):this._internals.pagination=e}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(e){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(e){w.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){w.any([g.number,g.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){w.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,r){return(0,Qr.inspect)(this._internals,r)}createNativeRequestOptions(){let e=this._internals,r=e.url,n;r.protocol==="https:"?n=e.http2?e.agent:e.agent.https:n=e.agent.http;let{https:s}=e,{pfx:i}=s;return g.array(i)&&g.plainObject(i[0])&&(i=i.map(o=>({buf:o.buffer,passphrase:o.passphrase}))),{...e.cacheOptions,...this._unixOptions,ALPNProtocols:s.alpnProtocols,ca:s.certificateAuthority,cert:s.certificate,key:s.key,passphrase:s.passphrase,pfx:s.pfx,rejectUnauthorized:s.rejectUnauthorized,checkServerIdentity:s.checkServerIdentity??vD.checkServerIdentity,ciphers:s.ciphers,honorCipherOrder:s.honorCipherOrder,minVersion:s.minVersion,maxVersion:s.maxVersion,sigalgs:s.signatureAlgorithms,sessionTimeout:s.tlsSessionLifetime,dhparam:s.dhparam,ecdhCurve:s.ecdhCurve,crl:s.certificateRevocationLists,lookup:e.dnsLookup??e.dnsCache?.lookup,family:e.dnsLookupIpVersion,agent:n,setHost:e.setHost,method:e.method,maxHeaderSize:e.maxHeaderSize,localAddress:e.localAddress,headers:e.headers,createConnection:e.createConnection,timeout:e.http2?qF(e):void 0,h2session:e.h2session}}getRequestFunction(){let e=this._internals.url,{request:r}=this._internals;return!r&&e?this.getFallbackRequestFunction():r}getFallbackRequestFunction(){let e=this._internals.url;if(e){if(e.protocol==="https:"){if(this._internals.http2){if(wD<15||wD===15&&IF<10){let r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw r.code="EUNSUPPORTED",r}return RD.default.auto}return BD.default.request}return OD.default.request}}freeze(){let e=this._internals;Object.freeze(e),Object.freeze(e.hooks),Object.freeze(e.hooks.afterResponse),Object.freeze(e.hooks.beforeError),Object.freeze(e.hooks.beforeRedirect),Object.freeze(e.hooks.beforeRequest),Object.freeze(e.hooks.beforeRetry),Object.freeze(e.hooks.init),Object.freeze(e.https),Object.freeze(e.cacheOptions),Object.freeze(e.agent),Object.freeze(e.headers),Object.freeze(e.timeout),Object.freeze(e.retry),Object.freeze(e.retry.errorCodes),Object.freeze(e.retry.methods),Object.freeze(e.retry.statusCodes)}};a();var er=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304},fs=class extends te{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code="ERR_BODY_PARSE_FAILURE"}},Bo=(t,e,r,n)=>{let{rawBody:s}=t;try{if(e==="text")return s.toString(n);if(e==="json")return s.length===0?"":r(s.toString(n));if(e==="buffer")return s}catch(i){throw new fs(i,t)}throw new fs({message:`Unknown body type '${e}'`,name:"Error"},t)};a();function UF(t){return t.writable&&!t.writableEnded}var TD=UF;a();function Ds(t){return t.protocol==="unix:"||t.hostname==="unix"}var{buffer:MF}=ND.default,HF=g.string(To.default.versions.brotli),GF=new Set(["GET","HEAD"]),Ro=new zr,zF=new Set([300,301,302,303,304,307,308]),WF=["socket","connect","continue","information","upgrade"],hs=()=>{},Ct=class t extends ID.Duplex{constructor(e,r,n){super({autoDestroy:!1,highWaterMark:0}),Object.defineProperty(this,"constructor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_noPipe",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"requestUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"redirectUrls",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"retryCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopRetry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downloadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_uploadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopReading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pipedServerResponses",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_responseSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bodySize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_unproxyEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isFromCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cannotHaveBody",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_triggerRead",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cancelTimeouts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_removeListeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nativeResponse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_flushed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_aborted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_requestInitialized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._downloadedSize=0,this._uploadedSize=0,this._stopReading=!1,this._pipedServerResponses=new Set,this._cannotHaveBody=!1,this._unproxyEvents=hs,this._triggerRead=!1,this._cancelTimeouts=hs,this._removeListeners=hs,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=hs,this.on("pipe",i=>{i?.headers&&Object.assign(this.options.headers,i.headers)}),this.on("newListener",i=>{if(i==="retry"&&this.listenerCount("retry")>0)throw new Error("A retry listener has been attached already.")});try{if(this.options=new Pe(e,r,n),!this.options.url){if(this.options.prefixUrl==="")throw new TypeError("Missing `url` property");this.options.url=""}this.requestUrl=this.options.url}catch(i){let{options:o}=i;o&&(this.options=o),this.flush=async()=>{this.flush=async()=>{},this.destroy(i)};return}let{body:s}=this.options;if(g.nodeStream(s)&&s.once("error",i=>{this._flushed?this._beforeError(new Rr(i,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new Rr(i,this))}}),this.options.signal){let i=()=>{this.destroy(new Vn(this))};this.options.signal.aborted?i():(this.options.signal.addEventListener("abort",i),this._removeListeners=()=>{this.options.signal.removeEventListener("abort",i)})}}async flush(){if(!this._flushed){this._flushed=!0;try{if(await this._finalizeBody(),this.destroyed)return;if(await this._makeRequest(),this.destroyed){this._request?.destroy();return}for(let e of this._jobs)e();this._jobs.length=0,this._requestInitialized=!0}catch(e){this._beforeError(e)}}}_beforeError(e){if(this._stopReading)return;let{response:r,options:n}=this,s=this.retryCount+(e.name==="RetryError"?0:1);this._stopReading=!0,e instanceof te||(e=new te(e.message,e,this));let i=e;(async()=>{if(r?.readable&&!r.rawBody&&!this._request?.socket?.destroyed&&(r.setEncoding(this.readableEncoding),await this._setRawBody(r)&&(r.body=r.rawBody.toString())),this.listenerCount("retry")!==0){let o;try{let u;r&&"retry-after"in r.headers&&(u=Number(r.headers["retry-after"]),Number.isNaN(u)?(u=Date.parse(r.headers["retry-after"])-Date.now(),u<=0&&(u=1)):u*=1e3);let c=n.retry;o=await c.calculateDelay({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:mf({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:c.maxRetryAfter??n.timeout.request??Number.POSITIVE_INFINITY})})}catch(u){this._error(new te(u.message,u,this));return}if(o){if(await new Promise(u=>{let c=setTimeout(u,o);this._stopRetry=()=>{clearTimeout(c),u()}}),this.destroyed)return;try{for(let u of this.options.hooks.beforeRetry)await u(i,this.retryCount+1)}catch(u){this._error(new te(u.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,u=>{let c=new t(n.url,u,n);return c.retryCount=this.retryCount+1,To.default.nextTick(()=>{c.flush()}),c});return}}this._error(i)})()}_read(){this._triggerRead=!0;let{response:e}=this;if(e&&!this._stopReading){e.readableLength&&(this._triggerRead=!1);let r;for(;(r=e.read())!==null;){this._downloadedSize+=r.length;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let s=()=>{this._writeRequest(e,r,n)};this._requestInitialized?s():this._jobs.push(s)}_final(e){let r=()=>{if(!this._request||this._request.destroyed){e();return}this._request.end(n=>{this._request._writableState?.errored||(n||(this._bodySize=this._uploadedSize,this.emit("uploadProgress",this.uploadProgress),this._request.emit("upload-complete")),e(n))})};this._requestInitialized?r():this._jobs.push(r)}_destroy(e,r){if(this._stopReading=!0,this.flush=async()=>{},this._stopRetry(),this._cancelTimeouts(),this._removeListeners(),this.options){let{body:n}=this.options;g.nodeStream(n)&&n.destroy()}this._request&&this._request.destroy(),e!==null&&!g.undefined(e)&&!(e instanceof te)&&(e=new te(e.message,e,this)),r(e)}pipe(e,r){return e instanceof Zr.ServerResponse&&this._pipedServerResponses.add(e),super.pipe(e,r)}unpipe(e){return e instanceof Zr.ServerResponse&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!g.undefined(e.form),s=!g.undefined(e.json),i=!g.undefined(e.body),o=GF.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=o,n||s||i){if(o)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let u=!g.string(r["content-type"]);if(i){if(Kt(e.body)){let f=new ts(e.body);u&&(r["content-type"]=f.headers["Content-Type"]),"Content-Length"in f.headers&&(r["content-length"]=f.headers["Content-Length"]),e.body=f.encode()}Mr(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(n){u&&(r["content-type"]="application/x-www-form-urlencoded");let{form:f}=e;e.form=void 0,e.body=new ps.URLSearchParams(f).toString()}else{u&&(r["content-type"]="application/json");let{json:f}=e;e.json=void 0,e.body=e.stringifyJson(f)}let c=await eo(e.body,e.headers);g.undefined(r["content-length"])&&g.undefined(r["transfer-encoding"])&&!o&&!g.undefined(c)&&(r["content-length"]=String(c))}e.responseType==="json"&&!("accept"in e.headers)&&(e.headers.accept="application/json"),this._bodySize=Number(r["content-length"])||void 0}async _onResponseBase(e){if(this.isAborted)return;let{options:r}=this,{url:n}=r;this._nativeResponse=e,r.decompress&&(e=(0,PD.default)(e));let s=e.statusCode,i=e;i.statusMessage=i.statusMessage??Zr.default.STATUS_CODES[s],i.url=r.url.toString(),i.requestUrl=this.requestUrl,i.redirectUrls=this.redirectUrls,i.request=this,i.isFromCache=this._nativeResponse.fromCache??!1,i.ip=this.ip,i.retryCount=this.retryCount,i.ok=er(i),this._isFromCache=i.isFromCache,this._responseSize=Number(e.headers["content-length"])||void 0,this.response=i,e.once("end",()=>{this._responseSize=this._downloadedSize,this.emit("downloadProgress",this.downloadProgress)}),e.once("error",u=>{this._aborted=!0,e.destroy(),this._beforeError(new Tr(u,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new Tr({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(g.object(r.cookieJar)&&o){let u=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(u=u.map(async c=>{try{await c}catch{}}));try{await Promise.all(u)}catch(c){this._beforeError(c);return}}if(!this.isAborted){if(r.followRedirect&&e.headers.location&&zF.has(s)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=r.maxRedirects){this._beforeError(new Hn(this));return}this._request=void 0;let u=new Pe(void 0,void 0,this.options),c=s===303&&u.method!=="GET"&&u.method!=="HEAD",f=s!==307&&s!==308,l=u.methodRewriting&&f;(c||l)&&(u.method="GET",u.body=void 0,u.json=void 0,u.form=void 0,delete u.headers["content-length"]);try{let D=ds.Buffer.from(e.headers.location,"binary").toString(),d=new ps.URL(D,n);if(!Ds(n)&&Ds(d)){this._beforeError(new te("Cannot redirect to UNIX socket",{},this));return}d.hostname!==n.hostname||d.port!==n.port?("host"in u.headers&&delete u.headers.host,"cookie"in u.headers&&delete u.headers.cookie,"authorization"in u.headers&&delete u.headers.authorization,(u.username||u.password)&&(u.username="",u.password="")):(d.username=u.username,d.password=u.password),this.redirectUrls.push(d),u.prefixUrl="",u.url=d;for(let h of u.hooks.beforeRedirect)await h(u,i);this.emit("redirect",u,i),this.options=u,await this._makeRequest()}catch(D){this._beforeError(D);return}return}if(r.isStream&&r.throwHttpErrors&&!er(i)){this._beforeError(new Ze(i));return}if(e.on("readable",()=>{this._triggerRead&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this._noPipe){await this._setRawBody()&&this.emit("response",e);return}this.emit("response",e);for(let u of this._pipedServerResponses)if(!u.headersSent){for(let c in e.headers){let f=r.decompress?c!=="content-encoding":!0,l=e.headers[c];f&&u.setHeader(c,l)}u.statusCode=s}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let r=await MF(e);if(!this.isAborted)return this.response.rawBody=r,!0}catch{}return!1}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:s}=r;kl(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=ro(e,n,s);let i=r.cache?"cacheableResponse":"response";e.once(i,o=>{this._onResponse(o)}),e.once("error",o=>{this._aborted=!0,e.destroy(),o=o instanceof Gr?new zn(o,this.timings,this):new te(o.message,o,this),this._beforeError(o)}),this._unproxyEvents=Hr(e,this,WF),this._request=e,this.emit("uploadProgress",this.uploadProgress),this._sendBody(),this.emit("request",e)}async _asyncWrite(e){return new Promise((r,n)=>{super.write(e,s=>{if(s){n(s);return}r()})})}_sendBody(){let{body:e}=this.options,r=this.redirectUrls.length===0?this:this._request??this;g.nodeStream(e)?e.pipe(r):g.generator(e)||g.asyncGenerator(e)?(async()=>{try{for await(let n of e)await this._asyncWrite(n);super.end()}catch(n){this._beforeError(n)}})():g.undefined(e)?(this._cannotHaveBody||this._noPipe)&&r.end():(this._writeRequest(e,void 0,()=>{}),r.end())}_prepareCache(e){if(!Ro.has(e)){let r=new ef((n,s)=>{let i=n._request(n,s);return g.promise(i)&&(i.once=(o,u)=>{if(o==="error")(async()=>{try{await i}catch(c){u(c)}})();else if(o==="abort")(async()=>{try{(await i).once("abort",u)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${o}`);return i}),i},e);Ro.set(e,r.request())}}async _createCacheableRequest(e,r){return new Promise((n,s)=>{Object.assign(r,no(e));let i,o=Ro.get(r.cache)(r,async u=>{if(u._readableState.autoDestroy=!1,i){let c=()=>{u.req&&(u.complete=u.req.res.complete)};u.prependOnceListener("end",c),c(),(await i).emit("cacheableResponse",u)}n(u)});o.once("error",s),o.once("request",async u=>{i=u,n(i)})})}async _makeRequest(){let{options:e}=this,{headers:r,username:n,password:s}=e,i=e.cookieJar;for(let f in r)if(g.undefined(r[f]))delete r[f];else if(g.null_(r[f]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${f}\` header`);if(e.decompress&&g.undefined(r["accept-encoding"])&&(r["accept-encoding"]=HF?"gzip, deflate, br":"gzip, deflate"),n||s){let f=ds.Buffer.from(`${n}:${s}`).toString("base64");r.authorization=`Basic ${f}`}if(i){let f=await i.getCookieString(e.url.toString());g.nonEmptyString(f)&&(r.cookie=f)}e.prefixUrl="";let o;for(let f of e.hooks.beforeRequest){let l=await f(e);if(!g.undefined(l)){o=()=>l;break}}o||(o=e.getRequestFunction());let u=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=o,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let c=e.cache?this._createCacheableRequest:o;try{let f=c(u,this._requestOptions);g.promise(f)&&(f=await f),g.undefined(f)&&(f=e.getFallbackRequestFunction()(u,this._requestOptions),g.promise(f)&&(f=await f)),TD(f)?this._onRequest(f):this.writable?(this.once("finish",()=>{this._onResponse(f)}),this._sendBody()):this._onResponse(f)}catch(f){throw f instanceof ze?new Gn(f,this):f}}async _error(e){try{if(!(e instanceof Ze&&!this.options.throwHttpErrors))for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new te(r.message,r,this)}this.destroy(e)}_writeRequest(e,r,n){!this._request||this._request.destroyed||this._request.write(e,r,s=>{if(!s&&!this._request.destroyed){this._uploadedSize+=ds.Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}n(s)})}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??void 0}get downloadProgress(){let e;return this._responseSize?e=this._downloadedSize/this._responseSize:this._responseSize===this._downloadedSize?e=1:e=0,{percent:e,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let e;return this._bodySize?e=this._uploadedSize/this._bodySize:this._bodySize===this._uploadedSize?e=1:e=0,{percent:e,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}};a();var ms=class extends te{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};var VF=["request","response","redirect","uploadProgress","downloadProgress"];function gs(t){let e,r,n,s=new LD.EventEmitter,i=new Wt((u,c,f)=>{f(()=>{e.destroy()}),f.shouldReject=!1,f(()=>{c(new ms(e))});let l=D=>{f(()=>{});let d=t??new Ct(void 0,void 0,n);d.retryCount=D,d._noPipe=!0,e=d,d.once("response",async E=>{let b=(E.headers["content-encoding"]??"").toLowerCase(),C=b==="gzip"||b==="deflate"||b==="br",{options:v}=d;if(C&&!v.decompress)E.body=E.rawBody;else try{E.body=Bo(E,v.responseType,v.parseJson,v.encoding)}catch(_){if(E.body=E.rawBody.toString(),er(E)){d._beforeError(_);return}}try{let _=v.hooks.afterResponse;for(let[A,j]of _.entries())if(E=await j(E,async z=>{throw v.merge(z),v.prefixUrl="",z.url&&(v.url=z.url),v.hooks.afterResponse=v.hooks.afterResponse.slice(0,A),new Wn(d)}),!(g.object(E)&&g.number(E.statusCode)&&!g.nullOrUndefined(E.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(_){d._beforeError(_);return}if(r=E,!er(E)){d._beforeError(new Ze(E));return}d.destroy(),u(d.options.resolveBodyOnly?E.body:E)});let h=E=>{if(i.isCanceled)return;let{options:b}=d;if(E instanceof Ze&&!b.throwHttpErrors){let{response:C}=E;d.destroy(),u(d.options.resolveBodyOnly?C.body:C);return}c(E)};d.once("error",h);let y=d.options?.body;d.once("retry",(E,b)=>{t=void 0;let C=d.options.body;if(y===C&&g.nodeStream(C)){b.message="Cannot retry with consumed body stream",h(b);return}n=d.options,l(E)}),Hr(d,s,VF),g.undefined(t)&&d.flush()};l(0)});i.on=(u,c)=>(s.on(u,c),i),i.off=(u,c)=>(s.off(u,c),i);let o=u=>{let c=(async()=>{await i;let{options:f}=r.request;return Bo(r,u,f.parseJson,f.encoding)})();return Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)),c};return i.json=()=>{if(e.options){let{headers:u}=e.options;!e.writableFinished&&!("accept"in u)&&(u.accept="application/json")}return o("json")},i.buffer=()=>o("buffer"),i.text=()=>o("text"),i}var YF=async t=>new Promise(e=>{setTimeout(e,t)}),KF=t=>g.function_(t),XF=["get","post","put","patch","head","delete"],jD=t=>{t={options:new Pe(void 0,void 0,t.options),handlers:[...t.handlers],mutableDefaults:t.mutableDefaults},Object.defineProperty(t,"mutableDefaults",{enumerable:!0,configurable:!1,writable:!1});let e=(n,s,i=t.options)=>{let o=new Ct(n,s,i),u,c=D=>(o.options=D,o._noPipe=!D.isStream,o.flush(),D.isStream?o:(u||(u=gs(o)),u)),f=0,l=D=>{let h=(t.handlers[f++]??c)(D,l);if(g.promise(h)&&!o.options.isStream&&(u||(u=gs(o)),h!==u)){let y=Object.getOwnPropertyDescriptors(u);for(let E in y)E in h&&delete y[E];Object.defineProperties(h,y),h.cancel=u.cancel}return h};return l(o.options)};e.extend=(...n)=>{let s=new Pe(void 0,void 0,t.options),i=[...t.handlers],o;for(let u of n)KF(u)?(s.merge(u.defaults.options),i.push(...u.defaults.handlers),o=u.defaults.mutableDefaults):(s.merge(u),u.handlers&&i.push(...u.handlers),o=u.mutableDefaults);return jD({options:s,handlers:i,mutableDefaults:!!o})};let r=async function*(n,s){let i=new Pe(n,s,t.options);i.resolveBodyOnly=!1;let{pagination:o}=i;w.function_(o.transform),w.function_(o.shouldContinue),w.function_(o.filter),w.function_(o.paginate),w.number(o.countLimit),w.number(o.requestLimit),w.number(o.backoff);let u=[],{countLimit:c}=o,f=0;for(;f<o.requestLimit;){f!==0&&await YF(o.backoff);let l=await e(void 0,void 0,i),D=await o.transform(l),d=[];w.array(D);for(let y of D)if(o.filter({item:y,currentItems:d,allItems:u})&&(!o.shouldContinue({item:y,currentItems:d,allItems:u})||(yield y,o.stackAllItems&&u.push(y),d.push(y),--c<=0)))return;let h=o.paginate({response:l,currentItems:d,allItems:u});if(h===!1)return;h===l.request.options?i=l.request.options:(i.merge(h),w.any([g.urlInstance,g.undefined],h.url),h.url!==void 0&&(i.prefixUrl="",i.url=h.url)),f++}};e.paginate=r,e.paginate.all=async(n,s)=>{let i=[];for await(let o of r(n,s))i.push(o);return i},e.paginate.each=r,e.stream=(n,s)=>e(n,{...s,isStream:!0});for(let n of XF)e[n]=(s,i)=>e(s,{...i,method:n}),e.stream[n]=(s,i)=>e(s,{...i,method:n,isStream:!0});return t.mutableDefaults||(Object.freeze(t.handlers),t.options.freeze()),Object.defineProperty(e,"defaults",{value:t,writable:!1,configurable:!1,enumerable:!0}),e},$D=jD;var JF={options:new Pe,handlers:[],mutableDefaults:!1},QF=$D(JF),kD=QF;a();var ah=I(uh(),1);function jo(t){let e=(0,ah.default)("npm",{registry:"https://registry.npmjs.org/"}),r=e[`${t}:registry`]||e.config_registry||e.registry;return r.slice(-1)==="/"?r:`${r}/`}var od=I(nd(),1),ud=I(Mn(),1),ad={keepAlive:!0,maxSockets:50},tb=new sd.Agent(ad),rb=new id.Agent(ad),Ko=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},Xo=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Jo(t,e){e={version:"latest",...e};let r=t.split("/")[0],n=e.registryUrl||jo(r),s=new URL(encodeURIComponent(t).replace(/^%40/,"@"),n),i=(0,od.default)(n.toString(),{recursive:!0}),o={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};e.fullMetadata&&delete o.accept,i&&(o.authorization=`${i.type} ${i.token}`);let u={headers:o,agent:{http:tb,https:rb}};e.agent&&(u.agent=e.agent);let c;try{c=await kD(s,u).json()}catch(D){throw D?.response?.statusCode===404?new Ko(t):D}if(e.allVersions)return c;let{version:f}=e,l=new Xo(t,f);if(c["dist-tags"][f]){let D=c.time;c=c.versions[c["dist-tags"][f]],c.time=D}else if(f){if(!c.versions[f]){let d=Object.keys(c.versions);if(f=ud.default.maxSatisfying(d,f),!f)throw l}let D=c.time;if(c=c.versions[f],c.time=D,!c)throw l}return c}async function Qo(t,e){let{version:r}=await Jo(t.toLowerCase(),e);return r}a();var Zo=I(require("process"),1),cd=Zo.default.env.npm_package_json,Bs=Zo.default.env.npm_config_user_agent,nb=!!(Bs&&Bs.startsWith("npm")),sb=!!(cd&&cd.endsWith("package.json")),ib=nb||sb,ob=!!(Bs&&Bs.startsWith("yarn")),ld=ib||ob;var wp=I(wd(),1);a();var Is=I(require("path"),1),Ad=require("url"),db=()=>{let t=Is.default.dirname((0,Ad.fileURLToPath)(m)),r=process.platform==="win32"?Is.default.join("Yarn","config","global"):Is.default.join(".config","yarn","global");return t.includes(r)},Sd=db;a();var vd=I(require("process"),1),Od=I(require("path"),1),Bd=I(require("fs"),1);function iu(t=vd.default.cwd()){return Bd.default.existsSync(Od.default.resolve(t,"yarn.lock"))}a();var an=I(require("process"),1);a();a();a();function ou({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var pb=ou();function un(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(pb,"")}var Nd=I(Td(),1),Ld=I(Pd(),1);function De(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=un(t),t.length===0))return 0;t=t.replace((0,Ld.default)()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let s of t){let i=s.codePointAt(0);if(i<=31||i>=127&&i<=159||i>=768&&i<=879)continue;switch(Nd.default.eastAsianWidth(s)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}a();function Ps(t){let e=0;for(let r of t.split(`
|
|
38
|
-
`))e=Math.max(e,De(r));return e}var Dp=I(cu(),1);a();var gb=/[\p{Lu}]/u,Eb=/[\p{Ll}]/u,kd=/^[\p{Lu}](?![\p{Lu}])/gu,Md=/([\p{Alpha}\p{N}_]|$)/u,lu=/[_.\- ]+/,yb=new RegExp("^"+lu.source),qd=new RegExp(lu.source+Md.source,"gu"),Ud=new RegExp("\\d+"+Md.source,"gu"),Cb=(t,e,r,n)=>{let s=!1,i=!1,o=!1,u=!1;for(let c=0;c<t.length;c++){let f=t[c];u=c>2?t[c-3]==="-":!0,s&&gb.test(f)?(t=t.slice(0,c)+"-"+t.slice(c),s=!1,o=i,i=!0,c++):i&&o&&Eb.test(f)&&(!u||n)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),o=i,i=!1,s=!0):(s=e(f)===f&&r(f)!==f,o=i,i=r(f)===f&&e(f)!==f)}return t},Fb=(t,e)=>(kd.lastIndex=0,t.replace(kd,r=>e(r))),bb=(t,e)=>(qd.lastIndex=0,Ud.lastIndex=0,t.replace(qd,(r,n)=>e(n)).replace(Ud,r=>e(r)));function fu(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(i=>i.trim()).filter(i=>i.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(e.locale),n=e.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(e.locale);return t.length===1?lu.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=Cb(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(yb,""),t=e.preserveConsecutiveUppercase?Fb(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),bb(t,n))}var gu=I(ep(),1);a();a();var tp=(t=0)=>e=>`\x1B[${e+t}m`,rp=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,np=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,re={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},z6=Object.keys(re.modifier),Bb=Object.keys(re.color),Rb=Object.keys(re.bgColor),W6=[...Bb,...Rb];function Tb(){let t=new Map;for(let[e,r]of Object.entries(re)){for(let[n,s]of Object.entries(r))re[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=re[n],t.set(s[0],s[1]);Object.defineProperty(re,e,{value:r,enumerable:!1})}return Object.defineProperty(re,"codes",{value:t,enumerable:!1}),re.color.close="\x1B[39m",re.bgColor.close="\x1B[49m",re.color.ansi=tp(),re.color.ansi256=rp(),re.color.ansi16m=np(),re.bgColor.ansi=tp(10),re.bgColor.ansi256=rp(10),re.bgColor.ansi16m=np(10),Object.defineProperties(re,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>re.rgbToAnsi256(...re.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>re.ansi256ToAnsi(re.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>re.ansi256ToAnsi(re.hexToAnsi256(e)),enumerable:!1}}),re}var Ib=Tb(),sp=Ib;var Ns=new Set(["\x1B","\x9B"]),Pb=39,pu="\x07",up="[",Nb="]",ap="m",mu=`${Nb}8;;`,ip=t=>`${Ns.values().next().value}${up}${t}${ap}`,op=t=>`${Ns.values().next().value}${mu}${t}${pu}`,Lb=t=>t.split(" ").map(e=>De(e)),du=(t,e,r)=>{let n=[...e],s=!1,i=!1,o=De(un(t[t.length-1]));for(let[u,c]of n.entries()){let f=De(c);if(o+f<=r?t[t.length-1]+=c:(t.push(c),o=0),Ns.has(c)&&(s=!0,i=n.slice(u+1).join("").startsWith(mu)),s){i?c===pu&&(s=!1,i=!1):c===ap&&(s=!1);continue}o+=f,o===r&&u<n.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())}
|
|
36
|
+
`:e);a();var rC=t=>Object.prototype.toString.call(t).slice(8,-1).toLowerCase();function Ji(t){if(rC(t)!=="object")return!1;let e=Object.getPrototypeOf(t);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}a();function cf(t,e){if(typeof e=="string"){for(let[r,n]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return n}}var lf=t=>new Proxy(t,{get:(e,r)=>cf(e,r),has:(e,r)=>cf(e,r)!==void 0});a();var Kt=t=>!!(t&&Ie(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&Ie(t.append)&&Ie(t.getAll)&&Ie(t.entries)&&Ie(t[Symbol.iterator]));a();var Qi=t=>String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");a();var et=t=>!!(t&&typeof t=="object"&&Ie(t.constructor)&&t[Symbol.toStringTag]==="File"&&Ie(t.stream)&&t.name!=null);var Lr=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},X=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},$r,tt,jr,Qn,kr,gt,qr,Ur,Zn,Zi,ff,nC={enableAdditionalHeaders:!1},es={writable:!1,configurable:!1},ts=class{constructor(e,r,n){if($r.add(this),tt.set(this,`\r
|
|
37
|
+
`),jr.set(this,void 0),Qn.set(this,void 0),kr.set(this,"-".repeat(2)),gt.set(this,new TextEncoder),qr.set(this,void 0),Ur.set(this,void 0),Zn.set(this,void 0),!Kt(e))throw new TypeError("Expected first argument to be a FormData instance.");let s;if(Ji(r)?n=r:s=r,s||(s=af()),typeof s!="string")throw new TypeError("Expected boundary argument to be a string.");if(n&&!Ji(n))throw new TypeError("Expected options argument to be an object.");Lr(this,Ur,Array.from(e.entries()),"f"),Lr(this,Zn,{...nC,...n},"f"),Lr(this,jr,X(this,gt,"f").encode(X(this,tt,"f")),"f"),Lr(this,Qn,X(this,jr,"f").byteLength,"f"),this.boundary=`form-data-boundary-${s}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Lr(this,qr,X(this,gt,"f").encode(`${X(this,kr,"f")}${this.boundary}${X(this,kr,"f")}${X(this,tt,"f").repeat(2)}`),"f");let i={"Content-Type":this.contentType},o=X(this,$r,"m",ff).call(this);o&&(this.contentLength=o,i["Content-Length"]=o),this.headers=lf(Object.freeze(i)),Object.defineProperties(this,{boundary:es,contentType:es,contentLength:es,headers:es})}getContentLength(){return this.contentLength==null?void 0:Number(this.contentLength)}*values(){for(let[e,r]of X(this,Ur,"f")){let n=et(r)?r:X(this,gt,"f").encode(Xi(r));yield X(this,$r,"m",Zi).call(this,e,n),yield n,yield X(this,jr,"f")}yield X(this,qr,"f")}async*encode(){for(let e of this.values())et(e)?yield*of(e.stream()):yield e}[(tt=new WeakMap,jr=new WeakMap,Qn=new WeakMap,kr=new WeakMap,gt=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Zn=new WeakMap,$r=new WeakSet,Zi=function(r,n){let s="";s+=`${X(this,kr,"f")}${this.boundary}${X(this,tt,"f")}`,s+=`Content-Disposition: form-data; name="${Qi(r)}"`,et(n)&&(s+=`; filename="${Qi(n.name)}"${X(this,tt,"f")}`,s+=`Content-Type: ${n.type||"application/octet-stream"}`);let i=et(n)?n.size:n.byteLength;return X(this,Zn,"f").enableAdditionalHeaders===!0&&i!=null&&!isNaN(i)&&(s+=`${X(this,tt,"f")}Content-Length: ${et(n)?n.size:n.byteLength}`),X(this,gt,"f").encode(`${s}${X(this,tt,"f").repeat(2)}`)},ff=function(){let r=0;for(let[n,s]of X(this,Ur,"f")){let i=et(s)?s:X(this,gt,"f").encode(Xi(s)),o=et(i)?i.size:i.byteLength;if(o==null||isNaN(o))return;r+=X(this,$r,"m",Zi).call(this,n,i).byteLength,r+=o,r+=X(this,Qn,"f")}return String(r+X(this,qr,"f").byteLength)},Symbol.iterator)](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};a();var Df=require("buffer"),hf=require("util");a();function Mr(t){return g.nodeStream(t)&&g.function_(t.getBoundary)}async function eo(t,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(g.string(t))return Df.Buffer.byteLength(t);if(g.buffer(t))return t.length;if(Mr(t))return(0,hf.promisify)(t.getLength.bind(t))()}a();function Hr(t,e,r){let n={};for(let s of r){let i=(...o)=>{e.emit(s,...o)};n[s]=i,t.on(s,i)}return()=>{for(let[s,i]of Object.entries(n))t.off(s,i)}}a();var pf=I(require("net"),1);a();function to(){let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:s}=e;r.removeListener(n,s)}t.length=0}}}var df=Symbol("reentry"),sC=()=>{},Gr=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.code="ETIMEDOUT"}};function ro(t,e,r){if(df in t)return sC;t[df]=!0;let n=[],{once:s,unhandleAll:i}=to(),o=(E,b,C)=>{let v=setTimeout(b,E,E,C);v.unref?.();let _=()=>{clearTimeout(v)};return n.push(_),_},{host:u,hostname:c}=r,f=(E,b)=>{t.destroy(new Gr(E,b))},l=()=>{for(let E of n)E();i()};if(t.once("error",E=>{if(l(),t.listenerCount("error")===0)throw E}),typeof e.request<"u"){let E=o(e.request,f,"request");s(t,"response",b=>{s(b,"end",E)})}if(typeof e.socket<"u"){let{socket:E}=e,b=()=>{f(E,"socket")};t.setTimeout(E,b),n.push(()=>{t.removeListener("timeout",b)})}let D=typeof e.lookup<"u",d=typeof e.connect<"u",h=typeof e.secureConnect<"u",y=typeof e.send<"u";return(D||d||h||y)&&s(t,"socket",E=>{let{socketPath:b}=t;if(E.connecting){let C=!!(b??pf.default.isIP(c??u??"")!==0);if(D&&!C&&typeof E.address().address>"u"){let v=o(e.lookup,f,"lookup");s(E,"lookup",v)}if(d){let v=()=>o(e.connect,f,"connect");C?s(E,"connect",v()):s(E,"lookup",_=>{_===null&&s(E,"connect",v())})}h&&r.protocol==="https:"&&s(E,"connect",()=>{let v=o(e.secureConnect,f,"secureConnect");s(E,"secureConnect",v)})}if(y){let C=()=>o(e.send,f,"send");E.connecting?s(E,"connect",()=>{s(t,"upload-complete",C())}):s(t,"upload-complete",C())}}),typeof e.response<"u"&&s(t,"upload-complete",()=>{let E=o(e.response,f,"response");s(t,"response",E)}),typeof e.read<"u"&&s(t,"response",E=>{let b=o(e.read,f,"read");s(E,"end",b)}),l}a();function no(t){t=t;let e={protocol:t.protocol,hostname:g.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return g.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}a();var zr=class{constructor(){Object.defineProperty(this,"weakMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};a();var iC=({attemptCount:t,retryOptions:e,error:r,retryAfter:n,computedValue:s})=>{if(r.name==="RetryError")return 1;if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),o=e.errorCodes.includes(r.code),u=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!o&&!u)return 0;if(r.response){if(n)return n>s?0:n;if(r.response.statusCode===413)return 0}let c=Math.random()*e.noise;return Math.min(2**(t-1)*1e3,e.backoffLimit)+c},mf=iC;a();var SD=I(require("process"),1),Qr=require("util"),We=require("url"),vD=require("tls"),OD=I(require("http"),1),BD=I(require("https"),1);a();var $e=require("dns"),ns=require("util"),bf=I(require("os"),1),{Resolver:gf}=$e.promises,Xt=Symbol("cacheableLookupCreateConnection"),so=Symbol("cacheableLookupInstance"),Ef=Symbol("expires"),oC=typeof $e.ALL=="number",yf=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},uC=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},Cf=()=>{let t=!1,e=!1;for(let r of Object.values(bf.default.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},aC=t=>Symbol.iterator in t,rs=t=>t.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),Ff={ttl:!0},cC={all:!0},lC={all:!0,family:4},fC={all:!0,family:6},Wr=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:s=.15,resolver:i=new gf,lookup:o=$e.lookup}={}){if(this.maxTtl=r,this.errorTtl=s,this._cache=e,this._resolver=i,this._dnsLookup=o&&(0,ns.promisify)(o),this.stats={cache:0,query:0},this._resolver instanceof gf?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=(0,ns.promisify)(this._resolver.resolve4.bind(this._resolver)),this._resolve6=(0,ns.promisify)(this._resolver.resolve6.bind(this._resolver))),this._iface=Cf(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=n,n>0){let u=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);u.unref&&u.unref(),this._fallbackInterval=u}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(s=>{r.all?n(null,s):n(null,s.address,s.family,s.expires,s.ttl,s.source)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let s=n.filter(i=>i.family===6);r.hints&$e.V4MAPPED&&(oC&&r.hints&$e.ALL||s.length===0)?uC(n):n=s}else r.family===4&&(n=n.filter(s=>s.family===4));if(r.hints&$e.ADDRCONFIG){let{_iface:s}=this;n=n.filter(i=>i.family===6?s.has6:s.has4)}if(n.length===0){let s=new Error(`cacheableLookup ENOTFOUND ${e}`);throw s.code="ENOTFOUND",s.hostname=e,s}return r.all?n:n[0]}async query(e){let r="cache",n=await this._cache.get(e);if(n&&this.stats.cache++,!n){let s=this._pending[e];if(s)this.stats.cache++,n=await s;else{r="query";let i=this.queryAndCache(e);this._pending[e]=i,this.stats.query++;try{n=await i}finally{delete this._pending[e]}}}return n=n.map(s=>({...s,source:r})),n}async _resolve(e){let[r,n]=await Promise.all([rs(this._resolve4(e,Ff)),rs(this._resolve6(e,Ff))]),s=0,i=0,o=0,u=Date.now();for(let c of r)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,i=Math.max(i,c.ttl);return r.length>0?n.length>0?o=Math.min(s,i):o=s:o=i,{entries:[...r,...n],cacheTtl:o}}async _lookup(e){try{let[r,n]=await Promise.all([rs(this._dnsLookup(e,lC)),rs(this._dnsLookup(e,fC))]);return{entries:[...r,...n],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[Ef]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(s){this.lookupAsync=async()=>{let i=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw i.cause=s,i}}aC(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,cC);let r=await this._resolve(e);r.entries.length===0&&this._dnsLookup&&(r=await this._lookup(e),r.entries.length!==0&&this.fallbackDuration>0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,s=Date.now();for(let[i,o]of this._cache){let u=o[Ef];s>=u?this._cache.delete(i):u<n&&(n=u)}n!==1/0&&this._tick(n-s)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(yf(e),Xt in e)throw new Error("CacheableLookup has been already installed");e[Xt]=e.createConnection,e[so]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Xt](r,n))}uninstall(e){if(yf(e),e[Xt]){if(e[so]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Xt],delete e[Xt],delete e[so]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=Cf(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};var RD=I(_D(),1);a();function Oo(t){let e=[],r=t.split(",");for(let n of r){let[s,...i]=n.split(";"),o=s.trim();if(o[0]!=="<"||o[o.length-1]!==">")throw new Error(`Invalid format of the Link header reference: ${o}`);let u=o.slice(1,-1),c={};if(i.length===0)throw new Error(`Unexpected end of Link header parameters: ${i.join(";")}`);for(let f of i){let l=f.trim(),D=l.indexOf("=");if(D===-1)throw new Error(`Failed to parse Link header: ${t}`);let d=l.slice(0,D).trim(),h=l.slice(D+1).trim();c[d]=h}e.push({reference:u,parameters:c})}return e}var[wD,IF]=SD.default.versions.node.split(".").map(Number);function PF(t){for(let e in t){let r=t[e];w.any([g.string,g.number,g.boolean,g.null_,g.undefined],r)}}var NF=new Map,ls,LF=()=>ls||(ls=new Wr,ls),$F={request:void 0,agent:{http:void 0,https:void 0,http2:void 0},h2session:void 0,decompress:!0,timeout:{connect:void 0,lookup:void 0,read:void 0,request:void 0,response:void 0,secureConnect:void 0,send:void 0,socket:void 0},prefixUrl:"",body:void 0,form:void 0,json:void 0,cookieJar:void 0,ignoreInvalidCookies:!1,searchParams:void 0,dnsLookup:void 0,dnsCache:void 0,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},followRedirect:!0,maxRedirects:10,cache:void 0,throwHttpErrors:!0,username:"",password:"",http2:!1,allowGetBody:!1,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:!1,dnsLookupIpVersion:void 0,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t,backoffLimit:Number.POSITIVE_INFINITY,noise:100},localAddress:void 0,method:"GET",createConnection:void 0,cacheOptions:{shared:void 0,cacheHeuristic:void 0,immutableMinTimeToLive:void 0,ignoreCargoCult:void 0},https:{alpnProtocols:void 0,rejectUnauthorized:void 0,checkServerIdentity:void 0,certificateAuthority:void 0,key:void 0,certificate:void 0,passphrase:void 0,pfx:void 0,ciphers:void 0,honorCipherOrder:void 0,minVersion:void 0,maxVersion:void 0,signatureAlgorithms:void 0,tlsSessionLifetime:void 0,dhparam:void 0,ecdhCurve:void 0,certificateRevocationLists:void 0},encoding:void 0,resolveBodyOnly:!1,isStream:!1,responseType:"text",url:void 0,pagination:{transform(t){return t.request.options.responseType==="json"?t.body:JSON.parse(t.body)},paginate({response:t}){let e=t.headers.link;if(typeof e!="string"||e.trim()==="")return!1;let n=Oo(e).find(s=>s.parameters.rel==="next"||s.parameters.rel==='"next"');return n?{url:new We.URL(n.reference,t.url)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!0},jF=t=>{let{hooks:e,retry:r}=t,n={...t,context:{...t.context},cacheOptions:{...t.cacheOptions},https:{...t.https},agent:{...t.agent},headers:{...t.headers},retry:{...r,errorCodes:[...r.errorCodes],methods:[...r.methods],statusCodes:[...r.statusCodes]},timeout:{...t.timeout},hooks:{init:[...e.init],beforeRequest:[...e.beforeRequest],beforeError:[...e.beforeError],beforeRedirect:[...e.beforeRedirect],beforeRetry:[...e.beforeRetry],afterResponse:[...e.afterResponse]},searchParams:t.searchParams?new We.URLSearchParams(t.searchParams):void 0,pagination:{...t.pagination}};return n.url!==void 0&&(n.prefixUrl=""),n},kF=t=>{let{hooks:e,retry:r}=t,n={...t};return g.object(t.context)&&(n.context={...t.context}),g.object(t.cacheOptions)&&(n.cacheOptions={...t.cacheOptions}),g.object(t.https)&&(n.https={...t.https}),g.object(t.cacheOptions)&&(n.cacheOptions={...n.cacheOptions}),g.object(t.agent)&&(n.agent={...t.agent}),g.object(t.headers)&&(n.headers={...t.headers}),g.object(r)&&(n.retry={...r},g.array(r.errorCodes)&&(n.retry.errorCodes=[...r.errorCodes]),g.array(r.methods)&&(n.retry.methods=[...r.methods]),g.array(r.statusCodes)&&(n.retry.statusCodes=[...r.statusCodes])),g.object(t.timeout)&&(n.timeout={...t.timeout}),g.object(e)&&(n.hooks={...e},g.array(e.init)&&(n.hooks.init=[...e.init]),g.array(e.beforeRequest)&&(n.hooks.beforeRequest=[...e.beforeRequest]),g.array(e.beforeError)&&(n.hooks.beforeError=[...e.beforeError]),g.array(e.beforeRedirect)&&(n.hooks.beforeRedirect=[...e.beforeRedirect]),g.array(e.beforeRetry)&&(n.hooks.beforeRetry=[...e.beforeRetry]),g.array(e.afterResponse)&&(n.hooks.afterResponse=[...e.afterResponse])),g.object(t.pagination)&&(n.pagination={...t.pagination}),n},qF=t=>{let e=[t.timeout.socket,t.timeout.connect,t.timeout.lookup,t.timeout.request,t.timeout.secureConnect].filter(r=>typeof r=="number");if(e.length>0)return Math.min(...e)},AD=(t,e,r)=>{let n=t.hooks?.init;if(n)for(let s of n)s(e,r)},Pe=class t{constructor(e,r,n){if(Object.defineProperty(this,"_unixOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_internals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_merging",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_init",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.any([g.string,g.urlInstance,g.object,g.undefined],e),w.any([g.object,g.undefined],r),w.any([g.object,g.undefined],n),e instanceof t||r instanceof t)throw new TypeError("The defaults must be passed as the third argument");this._internals=jF(n?._internals??n??$F),this._init=[...n?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(g.plainObject(e))try{this.merge(e),this.merge(r)}finally{this.url=e.url}else try{this.merge(r)}finally{if(r?.url!==void 0)if(e===void 0)this.url=r.url;else throw new TypeError("The `url` option is mutually exclusive with the `input` argument");else e!==void 0&&(this.url=e)}}catch(s){throw s.options=this,s}}merge(e){if(e){if(e instanceof t){for(let r of e._init)this.merge(r);return}e=kF(e),AD(this,e,this),AD(e,e,this),this._merging=!0,"isStream"in e&&(this.isStream=e.isStream);try{let r=!1;for(let n in e)if(!(n==="mutableDefaults"||n==="handlers")&&n!=="url"){if(!(n in this))throw new Error(`Unexpected option: ${n}`);this[n]=e[n],r=!0}r&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){w.any([g.function_,g.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){w.plainObject(e);for(let r in e){if(!(r in this._internals.agent))throw new TypeError(`Unexpected agent option: ${r}`);w.any([g.object,g.undefined],e[r])}this._merging?Object.assign(this._internals.agent,e):this._internals.agent={...e}}get h2session(){return this._internals.h2session}set h2session(e){this._internals.h2session=e}get decompress(){return this._internals.decompress}set decompress(e){w.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){w.plainObject(e);for(let r in e){if(!(r in this._internals.timeout))throw new Error(`Unexpected timeout option: ${r}`);w.any([g.number,g.undefined],e[r])}this._merging?Object.assign(this._internals.timeout,e):this._internals.timeout={...e}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(e){if(w.any([g.string,g.urlInstance],e),e===""){this._internals.prefixUrl="";return}if(e=e.toString(),e.endsWith("/")||(e+="/"),this._internals.prefixUrl&&this._internals.url){let{href:r}=this._internals.url;this._internals.url.href=e+r.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=e}get body(){return this._internals.body}set body(e){w.any([g.string,g.buffer,g.nodeStream,g.generator,g.asyncGenerator,Kt,g.undefined],e),g.nodeStream(e)&&w.truthy(e.readable),e!==void 0&&(w.undefined(this._internals.form),w.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){w.any([g.plainObject,g.undefined],e),e!==void 0&&(w.undefined(this._internals.body),w.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(w.undefined(this._internals.body),w.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(w.any([g.string,g.urlInstance,g.undefined],e),e===void 0){this._internals.url=void 0;return}if(g.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let r=`${this.prefixUrl}${e.toString()}`,n=new We.URL(r);if(this._internals.url=n,n.protocol==="unix:"&&(n.href=`http://unix${n.pathname}${n.search}`),n.protocol!=="http:"&&n.protocol!=="https:"){let s=new Error(`Unsupported protocol: ${n.protocol}`);throw s.code="ERR_UNSUPPORTED_PROTOCOL",s}if(this._internals.username&&(n.username=this._internals.username,this._internals.username=""),this._internals.password&&(n.password=this._internals.password,this._internals.password=""),this._internals.searchParams&&(n.search=this._internals.searchParams.toString(),this._internals.searchParams=void 0),n.hostname==="unix"){if(!this._internals.enableUnixSockets)throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled");let s=/(?<socketPath>.+?):(?<path>.+)/.exec(`${n.pathname}${n.search}`);if(s?.groups){let{socketPath:i,path:o}=s.groups;this._unixOptions={socketPath:i,path:o,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(w.any([g.object,g.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:r,getCookieString:n}=e;w.function_(r),w.function_(n),r.length===4&&n.length===0?(r=(0,Qr.promisify)(r.bind(e)),n=(0,Qr.promisify)(n.bind(e)),this._internals.cookieJar={setCookie:r,getCookieString:n}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){w.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){w.boolean(e),this._internals.ignoreInvalidCookies=e}get searchParams(){return this._internals.url?this._internals.url.searchParams:(this._internals.searchParams===void 0&&(this._internals.searchParams=new We.URLSearchParams),this._internals.searchParams)}set searchParams(e){w.any([g.string,g.object,g.undefined],e);let r=this._internals.url;if(e===void 0){this._internals.searchParams=void 0,r&&(r.search="");return}let n=this.searchParams,s;if(g.string(e))s=new We.URLSearchParams(e);else if(e instanceof We.URLSearchParams)s=e;else{PF(e),s=new We.URLSearchParams;for(let i in e){let o=e[i];o===null?s.append(i,""):o===void 0?n.delete(i):s.append(i,o)}}if(this._merging){for(let i of s.keys())n.delete(i);for(let[i,o]of s)n.append(i,o)}else r?r.search=n.toString():this._internals.searchParams=n}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(e){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(e){w.any([g.function_,g.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){w.any([g.object,g.boolean,g.undefined],e),e===!0?this._internals.dnsCache=LF():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){w.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){w.object(e);for(let r in e){if(!(r in this._internals.hooks))throw new Error(`Unexpected hook event: ${r}`);let n=r,s=e[n];if(w.any([g.array,g.undefined],s),s)for(let i of s)w.function_(i);if(this._merging)s&&this._internals.hooks[n].push(...s);else{if(!s)throw new Error(`Missing hook event: ${r}`);this._internals.hooks[r]=[...s]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(e){w.boolean(e),this._internals.followRedirect=e}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(e){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(e){w.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){w.any([g.object,g.string,g.boolean,g.undefined],e),e===!0?this._internals.cache=NF:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){w.boolean(e),this._internals.throwHttpErrors=e}get username(){let e=this._internals.url,r=e?e.username:this._internals.username;return decodeURIComponent(r)}set username(e){w.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.username=n:this._internals.username=n}get password(){let e=this._internals.url,r=e?e.password:this._internals.password;return decodeURIComponent(r)}set password(e){w.string(e);let r=this._internals.url,n=encodeURIComponent(e);r?r.password=n:this._internals.password=n}get http2(){return this._internals.http2}set http2(e){w.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){w.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){w.plainObject(e),this._merging?Object.assign(this._internals.headers,Vt(e)):this._internals.headers=Vt(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){w.boolean(e),this._internals.methodRewriting=e}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(e){if(e!==void 0&&e!==4&&e!==6)throw new TypeError(`Invalid DNS lookup IP version: ${e}`);this._internals.dnsLookupIpVersion=e}get parseJson(){return this._internals.parseJson}set parseJson(e){w.function_(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){w.function_(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(w.plainObject(e),w.any([g.function_,g.undefined],e.calculateDelay),w.any([g.number,g.undefined],e.maxRetryAfter),w.any([g.number,g.undefined],e.limit),w.any([g.array,g.undefined],e.methods),w.any([g.array,g.undefined],e.statusCodes),w.any([g.array,g.undefined],e.errorCodes),w.any([g.number,g.undefined],e.noise),e.noise&&Math.abs(e.noise)>100)throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`);for(let n in e)if(!(n in this._internals.retry))throw new Error(`Unexpected retry option: ${n}`);this._merging?Object.assign(this._internals.retry,e):this._internals.retry={...e};let{retry:r}=this._internals;r.methods=[...new Set(r.methods.map(n=>n.toUpperCase()))],r.statusCodes=[...new Set(r.statusCodes)],r.errorCodes=[...new Set(r.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(e){w.any([g.string,g.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){w.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){w.any([g.function_,g.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){w.plainObject(e),w.any([g.boolean,g.undefined],e.shared),w.any([g.number,g.undefined],e.cacheHeuristic),w.any([g.number,g.undefined],e.immutableMinTimeToLive),w.any([g.boolean,g.undefined],e.ignoreCargoCult);for(let r in e)if(!(r in this._internals.cacheOptions))throw new Error(`Cache option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.cacheOptions,e):this._internals.cacheOptions={...e}}get https(){return this._internals.https}set https(e){w.plainObject(e),w.any([g.boolean,g.undefined],e.rejectUnauthorized),w.any([g.function_,g.undefined],e.checkServerIdentity),w.any([g.string,g.object,g.array,g.undefined],e.certificateAuthority),w.any([g.string,g.object,g.array,g.undefined],e.key),w.any([g.string,g.object,g.array,g.undefined],e.certificate),w.any([g.string,g.undefined],e.passphrase),w.any([g.string,g.buffer,g.array,g.undefined],e.pfx),w.any([g.array,g.undefined],e.alpnProtocols),w.any([g.string,g.undefined],e.ciphers),w.any([g.string,g.buffer,g.undefined],e.dhparam),w.any([g.string,g.undefined],e.signatureAlgorithms),w.any([g.string,g.undefined],e.minVersion),w.any([g.string,g.undefined],e.maxVersion),w.any([g.boolean,g.undefined],e.honorCipherOrder),w.any([g.number,g.undefined],e.tlsSessionLifetime),w.any([g.string,g.undefined],e.ecdhCurve),w.any([g.string,g.buffer,g.array,g.undefined],e.certificateRevocationLists);for(let r in e)if(!(r in this._internals.https))throw new Error(`HTTPS option \`${r}\` does not exist`);this._merging?Object.assign(this._internals.https,e):this._internals.https={...e}}get encoding(){return this._internals.encoding}set encoding(e){if(e===null)throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");w.any([g.string,g.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){w.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){w.boolean(e),this._internals.isStream=e}get responseType(){return this._internals.responseType}set responseType(e){if(e===void 0){this._internals.responseType="text";return}if(e!=="text"&&e!=="buffer"&&e!=="json")throw new Error(`Invalid \`responseType\` option: ${e}`);this._internals.responseType=e}get pagination(){return this._internals.pagination}set pagination(e){w.object(e),this._merging?Object.assign(this._internals.pagination,e):this._internals.pagination=e}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(e){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(e){w.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){w.any([g.number,g.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){w.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,r){return(0,Qr.inspect)(this._internals,r)}createNativeRequestOptions(){let e=this._internals,r=e.url,n;r.protocol==="https:"?n=e.http2?e.agent:e.agent.https:n=e.agent.http;let{https:s}=e,{pfx:i}=s;return g.array(i)&&g.plainObject(i[0])&&(i=i.map(o=>({buf:o.buffer,passphrase:o.passphrase}))),{...e.cacheOptions,...this._unixOptions,ALPNProtocols:s.alpnProtocols,ca:s.certificateAuthority,cert:s.certificate,key:s.key,passphrase:s.passphrase,pfx:s.pfx,rejectUnauthorized:s.rejectUnauthorized,checkServerIdentity:s.checkServerIdentity??vD.checkServerIdentity,ciphers:s.ciphers,honorCipherOrder:s.honorCipherOrder,minVersion:s.minVersion,maxVersion:s.maxVersion,sigalgs:s.signatureAlgorithms,sessionTimeout:s.tlsSessionLifetime,dhparam:s.dhparam,ecdhCurve:s.ecdhCurve,crl:s.certificateRevocationLists,lookup:e.dnsLookup??e.dnsCache?.lookup,family:e.dnsLookupIpVersion,agent:n,setHost:e.setHost,method:e.method,maxHeaderSize:e.maxHeaderSize,localAddress:e.localAddress,headers:e.headers,createConnection:e.createConnection,timeout:e.http2?qF(e):void 0,h2session:e.h2session}}getRequestFunction(){let e=this._internals.url,{request:r}=this._internals;return!r&&e?this.getFallbackRequestFunction():r}getFallbackRequestFunction(){let e=this._internals.url;if(e){if(e.protocol==="https:"){if(this._internals.http2){if(wD<15||wD===15&&IF<10){let r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw r.code="EUNSUPPORTED",r}return RD.default.auto}return BD.default.request}return OD.default.request}}freeze(){let e=this._internals;Object.freeze(e),Object.freeze(e.hooks),Object.freeze(e.hooks.afterResponse),Object.freeze(e.hooks.beforeError),Object.freeze(e.hooks.beforeRedirect),Object.freeze(e.hooks.beforeRequest),Object.freeze(e.hooks.beforeRetry),Object.freeze(e.hooks.init),Object.freeze(e.https),Object.freeze(e.cacheOptions),Object.freeze(e.agent),Object.freeze(e.headers),Object.freeze(e.timeout),Object.freeze(e.retry),Object.freeze(e.retry.errorCodes),Object.freeze(e.retry.methods),Object.freeze(e.retry.statusCodes)}};a();var er=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304},fs=class extends te{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code="ERR_BODY_PARSE_FAILURE"}},Bo=(t,e,r,n)=>{let{rawBody:s}=t;try{if(e==="text")return s.toString(n);if(e==="json")return s.length===0?"":r(s.toString(n));if(e==="buffer")return s}catch(i){throw new fs(i,t)}throw new fs({message:`Unknown body type '${e}'`,name:"Error"},t)};a();function UF(t){return t.writable&&!t.writableEnded}var TD=UF;a();function Ds(t){return t.protocol==="unix:"||t.hostname==="unix"}var{buffer:MF}=ND.default,HF=g.string(To.default.versions.brotli),GF=new Set(["GET","HEAD"]),Ro=new zr,zF=new Set([300,301,302,303,304,307,308]),WF=["socket","connect","continue","information","upgrade"],hs=()=>{},Ct=class t extends ID.Duplex{constructor(e,r,n){super({autoDestroy:!1,highWaterMark:0}),Object.defineProperty(this,"constructor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_noPipe",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"requestUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"redirectUrls",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"retryCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopRetry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downloadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_uploadedSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_stopReading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pipedServerResponses",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_responseSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bodySize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_unproxyEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isFromCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cannotHaveBody",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_triggerRead",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cancelTimeouts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_removeListeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nativeResponse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_flushed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_aborted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_requestInitialized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._downloadedSize=0,this._uploadedSize=0,this._stopReading=!1,this._pipedServerResponses=new Set,this._cannotHaveBody=!1,this._unproxyEvents=hs,this._triggerRead=!1,this._cancelTimeouts=hs,this._removeListeners=hs,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=hs,this.on("pipe",i=>{i?.headers&&Object.assign(this.options.headers,i.headers)}),this.on("newListener",i=>{if(i==="retry"&&this.listenerCount("retry")>0)throw new Error("A retry listener has been attached already.")});try{if(this.options=new Pe(e,r,n),!this.options.url){if(this.options.prefixUrl==="")throw new TypeError("Missing `url` property");this.options.url=""}this.requestUrl=this.options.url}catch(i){let{options:o}=i;o&&(this.options=o),this.flush=async()=>{this.flush=async()=>{},this.destroy(i)};return}let{body:s}=this.options;if(g.nodeStream(s)&&s.once("error",i=>{this._flushed?this._beforeError(new Rr(i,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new Rr(i,this))}}),this.options.signal){let i=()=>{this.destroy(new Vn(this))};this.options.signal.aborted?i():(this.options.signal.addEventListener("abort",i),this._removeListeners=()=>{this.options.signal.removeEventListener("abort",i)})}}async flush(){if(!this._flushed){this._flushed=!0;try{if(await this._finalizeBody(),this.destroyed)return;if(await this._makeRequest(),this.destroyed){this._request?.destroy();return}for(let e of this._jobs)e();this._jobs.length=0,this._requestInitialized=!0}catch(e){this._beforeError(e)}}}_beforeError(e){if(this._stopReading)return;let{response:r,options:n}=this,s=this.retryCount+(e.name==="RetryError"?0:1);this._stopReading=!0,e instanceof te||(e=new te(e.message,e,this));let i=e;(async()=>{if(r?.readable&&!r.rawBody&&!this._request?.socket?.destroyed&&(r.setEncoding(this.readableEncoding),await this._setRawBody(r)&&(r.body=r.rawBody.toString())),this.listenerCount("retry")!==0){let o;try{let u;r&&"retry-after"in r.headers&&(u=Number(r.headers["retry-after"]),Number.isNaN(u)?(u=Date.parse(r.headers["retry-after"])-Date.now(),u<=0&&(u=1)):u*=1e3);let c=n.retry;o=await c.calculateDelay({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:mf({attemptCount:s,retryOptions:c,error:i,retryAfter:u,computedValue:c.maxRetryAfter??n.timeout.request??Number.POSITIVE_INFINITY})})}catch(u){this._error(new te(u.message,u,this));return}if(o){if(await new Promise(u=>{let c=setTimeout(u,o);this._stopRetry=()=>{clearTimeout(c),u()}}),this.destroyed)return;try{for(let u of this.options.hooks.beforeRetry)await u(i,this.retryCount+1)}catch(u){this._error(new te(u.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,u=>{let c=new t(n.url,u,n);return c.retryCount=this.retryCount+1,To.default.nextTick(()=>{c.flush()}),c});return}}this._error(i)})()}_read(){this._triggerRead=!0;let{response:e}=this;if(e&&!this._stopReading){e.readableLength&&(this._triggerRead=!1);let r;for(;(r=e.read())!==null;){this._downloadedSize+=r.length;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let s=()=>{this._writeRequest(e,r,n)};this._requestInitialized?s():this._jobs.push(s)}_final(e){let r=()=>{if(!this._request||this._request.destroyed){e();return}this._request.end(n=>{this._request._writableState?.errored||(n||(this._bodySize=this._uploadedSize,this.emit("uploadProgress",this.uploadProgress),this._request.emit("upload-complete")),e(n))})};this._requestInitialized?r():this._jobs.push(r)}_destroy(e,r){if(this._stopReading=!0,this.flush=async()=>{},this._stopRetry(),this._cancelTimeouts(),this._removeListeners(),this.options){let{body:n}=this.options;g.nodeStream(n)&&n.destroy()}this._request&&this._request.destroy(),e!==null&&!g.undefined(e)&&!(e instanceof te)&&(e=new te(e.message,e,this)),r(e)}pipe(e,r){return e instanceof Zr.ServerResponse&&this._pipedServerResponses.add(e),super.pipe(e,r)}unpipe(e){return e instanceof Zr.ServerResponse&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!g.undefined(e.form),s=!g.undefined(e.json),i=!g.undefined(e.body),o=GF.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=o,n||s||i){if(o)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let u=!g.string(r["content-type"]);if(i){if(Kt(e.body)){let f=new ts(e.body);u&&(r["content-type"]=f.headers["Content-Type"]),"Content-Length"in f.headers&&(r["content-length"]=f.headers["Content-Length"]),e.body=f.encode()}Mr(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(n){u&&(r["content-type"]="application/x-www-form-urlencoded");let{form:f}=e;e.form=void 0,e.body=new ps.URLSearchParams(f).toString()}else{u&&(r["content-type"]="application/json");let{json:f}=e;e.json=void 0,e.body=e.stringifyJson(f)}let c=await eo(e.body,e.headers);g.undefined(r["content-length"])&&g.undefined(r["transfer-encoding"])&&!o&&!g.undefined(c)&&(r["content-length"]=String(c))}e.responseType==="json"&&!("accept"in e.headers)&&(e.headers.accept="application/json"),this._bodySize=Number(r["content-length"])||void 0}async _onResponseBase(e){if(this.isAborted)return;let{options:r}=this,{url:n}=r;this._nativeResponse=e,r.decompress&&(e=(0,PD.default)(e));let s=e.statusCode,i=e;i.statusMessage=i.statusMessage??Zr.default.STATUS_CODES[s],i.url=r.url.toString(),i.requestUrl=this.requestUrl,i.redirectUrls=this.redirectUrls,i.request=this,i.isFromCache=this._nativeResponse.fromCache??!1,i.ip=this.ip,i.retryCount=this.retryCount,i.ok=er(i),this._isFromCache=i.isFromCache,this._responseSize=Number(e.headers["content-length"])||void 0,this.response=i,e.once("end",()=>{this._responseSize=this._downloadedSize,this.emit("downloadProgress",this.downloadProgress)}),e.once("error",u=>{this._aborted=!0,e.destroy(),this._beforeError(new Tr(u,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new Tr({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(g.object(r.cookieJar)&&o){let u=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(u=u.map(async c=>{try{await c}catch{}}));try{await Promise.all(u)}catch(c){this._beforeError(c);return}}if(!this.isAborted){if(r.followRedirect&&e.headers.location&&zF.has(s)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=r.maxRedirects){this._beforeError(new Hn(this));return}this._request=void 0;let u=new Pe(void 0,void 0,this.options),c=s===303&&u.method!=="GET"&&u.method!=="HEAD",f=s!==307&&s!==308,l=u.methodRewriting&&f;(c||l)&&(u.method="GET",u.body=void 0,u.json=void 0,u.form=void 0,delete u.headers["content-length"]);try{let D=ds.Buffer.from(e.headers.location,"binary").toString(),d=new ps.URL(D,n);if(!Ds(n)&&Ds(d)){this._beforeError(new te("Cannot redirect to UNIX socket",{},this));return}d.hostname!==n.hostname||d.port!==n.port?("host"in u.headers&&delete u.headers.host,"cookie"in u.headers&&delete u.headers.cookie,"authorization"in u.headers&&delete u.headers.authorization,(u.username||u.password)&&(u.username="",u.password="")):(d.username=u.username,d.password=u.password),this.redirectUrls.push(d),u.prefixUrl="",u.url=d;for(let h of u.hooks.beforeRedirect)await h(u,i);this.emit("redirect",u,i),this.options=u,await this._makeRequest()}catch(D){this._beforeError(D);return}return}if(r.isStream&&r.throwHttpErrors&&!er(i)){this._beforeError(new Ze(i));return}if(e.on("readable",()=>{this._triggerRead&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this._noPipe){await this._setRawBody()&&this.emit("response",e);return}this.emit("response",e);for(let u of this._pipedServerResponses)if(!u.headersSent){for(let c in e.headers){let f=r.decompress?c!=="content-encoding":!0,l=e.headers[c];f&&u.setHeader(c,l)}u.statusCode=s}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let r=await MF(e);if(!this.isAborted)return this.response.rawBody=r,!0}catch{}return!1}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:s}=r;kl(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=ro(e,n,s);let i=r.cache?"cacheableResponse":"response";e.once(i,o=>{this._onResponse(o)}),e.once("error",o=>{this._aborted=!0,e.destroy(),o=o instanceof Gr?new zn(o,this.timings,this):new te(o.message,o,this),this._beforeError(o)}),this._unproxyEvents=Hr(e,this,WF),this._request=e,this.emit("uploadProgress",this.uploadProgress),this._sendBody(),this.emit("request",e)}async _asyncWrite(e){return new Promise((r,n)=>{super.write(e,s=>{if(s){n(s);return}r()})})}_sendBody(){let{body:e}=this.options,r=this.redirectUrls.length===0?this:this._request??this;g.nodeStream(e)?e.pipe(r):g.generator(e)||g.asyncGenerator(e)?(async()=>{try{for await(let n of e)await this._asyncWrite(n);super.end()}catch(n){this._beforeError(n)}})():g.undefined(e)?(this._cannotHaveBody||this._noPipe)&&r.end():(this._writeRequest(e,void 0,()=>{}),r.end())}_prepareCache(e){if(!Ro.has(e)){let r=new ef((n,s)=>{let i=n._request(n,s);return g.promise(i)&&(i.once=(o,u)=>{if(o==="error")(async()=>{try{await i}catch(c){u(c)}})();else if(o==="abort")(async()=>{try{(await i).once("abort",u)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${o}`);return i}),i},e);Ro.set(e,r.request())}}async _createCacheableRequest(e,r){return new Promise((n,s)=>{Object.assign(r,no(e));let i,o=Ro.get(r.cache)(r,async u=>{if(u._readableState.autoDestroy=!1,i){let c=()=>{u.req&&(u.complete=u.req.res.complete)};u.prependOnceListener("end",c),c(),(await i).emit("cacheableResponse",u)}n(u)});o.once("error",s),o.once("request",async u=>{i=u,n(i)})})}async _makeRequest(){let{options:e}=this,{headers:r,username:n,password:s}=e,i=e.cookieJar;for(let f in r)if(g.undefined(r[f]))delete r[f];else if(g.null_(r[f]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${f}\` header`);if(e.decompress&&g.undefined(r["accept-encoding"])&&(r["accept-encoding"]=HF?"gzip, deflate, br":"gzip, deflate"),n||s){let f=ds.Buffer.from(`${n}:${s}`).toString("base64");r.authorization=`Basic ${f}`}if(i){let f=await i.getCookieString(e.url.toString());g.nonEmptyString(f)&&(r.cookie=f)}e.prefixUrl="";let o;for(let f of e.hooks.beforeRequest){let l=await f(e);if(!g.undefined(l)){o=()=>l;break}}o||(o=e.getRequestFunction());let u=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=o,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let c=e.cache?this._createCacheableRequest:o;try{let f=c(u,this._requestOptions);g.promise(f)&&(f=await f),g.undefined(f)&&(f=e.getFallbackRequestFunction()(u,this._requestOptions),g.promise(f)&&(f=await f)),TD(f)?this._onRequest(f):this.writable?(this.once("finish",()=>{this._onResponse(f)}),this._sendBody()):this._onResponse(f)}catch(f){throw f instanceof ze?new Gn(f,this):f}}async _error(e){try{if(!(e instanceof Ze&&!this.options.throwHttpErrors))for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new te(r.message,r,this)}this.destroy(e)}_writeRequest(e,r,n){!this._request||this._request.destroyed||this._request.write(e,r,s=>{if(!s&&!this._request.destroyed){this._uploadedSize+=ds.Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}n(s)})}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??void 0}get downloadProgress(){let e;return this._responseSize?e=this._downloadedSize/this._responseSize:this._responseSize===this._downloadedSize?e=1:e=0,{percent:e,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let e;return this._bodySize?e=this._uploadedSize/this._bodySize:this._bodySize===this._uploadedSize?e=1:e=0,{percent:e,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}};a();var ms=class extends te{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};var VF=["request","response","redirect","uploadProgress","downloadProgress"];function gs(t){let e,r,n,s=new LD.EventEmitter,i=new Wt((u,c,f)=>{f(()=>{e.destroy()}),f.shouldReject=!1,f(()=>{c(new ms(e))});let l=D=>{f(()=>{});let d=t??new Ct(void 0,void 0,n);d.retryCount=D,d._noPipe=!0,e=d,d.once("response",async E=>{let b=(E.headers["content-encoding"]??"").toLowerCase(),C=b==="gzip"||b==="deflate"||b==="br",{options:v}=d;if(C&&!v.decompress)E.body=E.rawBody;else try{E.body=Bo(E,v.responseType,v.parseJson,v.encoding)}catch(_){if(E.body=E.rawBody.toString(),er(E)){d._beforeError(_);return}}try{let _=v.hooks.afterResponse;for(let[A,$]of _.entries())if(E=await $(E,async z=>{throw v.merge(z),v.prefixUrl="",z.url&&(v.url=z.url),v.hooks.afterResponse=v.hooks.afterResponse.slice(0,A),new Wn(d)}),!(g.object(E)&&g.number(E.statusCode)&&!g.nullOrUndefined(E.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(_){d._beforeError(_);return}if(r=E,!er(E)){d._beforeError(new Ze(E));return}d.destroy(),u(d.options.resolveBodyOnly?E.body:E)});let h=E=>{if(i.isCanceled)return;let{options:b}=d;if(E instanceof Ze&&!b.throwHttpErrors){let{response:C}=E;d.destroy(),u(d.options.resolveBodyOnly?C.body:C);return}c(E)};d.once("error",h);let y=d.options?.body;d.once("retry",(E,b)=>{t=void 0;let C=d.options.body;if(y===C&&g.nodeStream(C)){b.message="Cannot retry with consumed body stream",h(b);return}n=d.options,l(E)}),Hr(d,s,VF),g.undefined(t)&&d.flush()};l(0)});i.on=(u,c)=>(s.on(u,c),i),i.off=(u,c)=>(s.off(u,c),i);let o=u=>{let c=(async()=>{await i;let{options:f}=r.request;return Bo(r,u,f.parseJson,f.encoding)})();return Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)),c};return i.json=()=>{if(e.options){let{headers:u}=e.options;!e.writableFinished&&!("accept"in u)&&(u.accept="application/json")}return o("json")},i.buffer=()=>o("buffer"),i.text=()=>o("text"),i}var YF=async t=>new Promise(e=>{setTimeout(e,t)}),KF=t=>g.function_(t),XF=["get","post","put","patch","head","delete"],$D=t=>{t={options:new Pe(void 0,void 0,t.options),handlers:[...t.handlers],mutableDefaults:t.mutableDefaults},Object.defineProperty(t,"mutableDefaults",{enumerable:!0,configurable:!1,writable:!1});let e=(n,s,i=t.options)=>{let o=new Ct(n,s,i),u,c=D=>(o.options=D,o._noPipe=!D.isStream,o.flush(),D.isStream?o:(u||(u=gs(o)),u)),f=0,l=D=>{let h=(t.handlers[f++]??c)(D,l);if(g.promise(h)&&!o.options.isStream&&(u||(u=gs(o)),h!==u)){let y=Object.getOwnPropertyDescriptors(u);for(let E in y)E in h&&delete y[E];Object.defineProperties(h,y),h.cancel=u.cancel}return h};return l(o.options)};e.extend=(...n)=>{let s=new Pe(void 0,void 0,t.options),i=[...t.handlers],o;for(let u of n)KF(u)?(s.merge(u.defaults.options),i.push(...u.defaults.handlers),o=u.defaults.mutableDefaults):(s.merge(u),u.handlers&&i.push(...u.handlers),o=u.mutableDefaults);return $D({options:s,handlers:i,mutableDefaults:!!o})};let r=async function*(n,s){let i=new Pe(n,s,t.options);i.resolveBodyOnly=!1;let{pagination:o}=i;w.function_(o.transform),w.function_(o.shouldContinue),w.function_(o.filter),w.function_(o.paginate),w.number(o.countLimit),w.number(o.requestLimit),w.number(o.backoff);let u=[],{countLimit:c}=o,f=0;for(;f<o.requestLimit;){f!==0&&await YF(o.backoff);let l=await e(void 0,void 0,i),D=await o.transform(l),d=[];w.array(D);for(let y of D)if(o.filter({item:y,currentItems:d,allItems:u})&&(!o.shouldContinue({item:y,currentItems:d,allItems:u})||(yield y,o.stackAllItems&&u.push(y),d.push(y),--c<=0)))return;let h=o.paginate({response:l,currentItems:d,allItems:u});if(h===!1)return;h===l.request.options?i=l.request.options:(i.merge(h),w.any([g.urlInstance,g.undefined],h.url),h.url!==void 0&&(i.prefixUrl="",i.url=h.url)),f++}};e.paginate=r,e.paginate.all=async(n,s)=>{let i=[];for await(let o of r(n,s))i.push(o);return i},e.paginate.each=r,e.stream=(n,s)=>e(n,{...s,isStream:!0});for(let n of XF)e[n]=(s,i)=>e(s,{...i,method:n}),e.stream[n]=(s,i)=>e(s,{...i,method:n,isStream:!0});return t.mutableDefaults||(Object.freeze(t.handlers),t.options.freeze()),Object.defineProperty(e,"defaults",{value:t,writable:!1,configurable:!1,enumerable:!0}),e},jD=$D;var JF={options:new Pe,handlers:[],mutableDefaults:!1},QF=jD(JF),kD=QF;a();var ah=I(uh(),1);function $o(t){let e=(0,ah.default)("npm",{registry:"https://registry.npmjs.org/"}),r=e[`${t}:registry`]||e.config_registry||e.registry;return r.slice(-1)==="/"?r:`${r}/`}var od=I(nd(),1),ud=I(Mn(),1),ad={keepAlive:!0,maxSockets:50},tb=new sd.Agent(ad),rb=new id.Agent(ad),Ko=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},Xo=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Jo(t,e){e={version:"latest",...e};let r=t.split("/")[0],n=e.registryUrl||$o(r),s=new URL(encodeURIComponent(t).replace(/^%40/,"@"),n),i=(0,od.default)(n.toString(),{recursive:!0}),o={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};e.fullMetadata&&delete o.accept,i&&(o.authorization=`${i.type} ${i.token}`);let u={headers:o,agent:{http:tb,https:rb}};e.agent&&(u.agent=e.agent);let c;try{c=await kD(s,u).json()}catch(D){throw D?.response?.statusCode===404?new Ko(t):D}if(e.allVersions)return c;let{version:f}=e,l=new Xo(t,f);if(c["dist-tags"][f]){let D=c.time;c=c.versions[c["dist-tags"][f]],c.time=D}else if(f){if(!c.versions[f]){let d=Object.keys(c.versions);if(f=ud.default.maxSatisfying(d,f),!f)throw l}let D=c.time;if(c=c.versions[f],c.time=D,!c)throw l}return c}async function Qo(t,e){let{version:r}=await Jo(t.toLowerCase(),e);return r}a();var Zo=I(require("process"),1),cd=Zo.default.env.npm_package_json,Bs=Zo.default.env.npm_config_user_agent,nb=!!(Bs&&Bs.startsWith("npm")),sb=!!(cd&&cd.endsWith("package.json")),ib=nb||sb,ob=!!(Bs&&Bs.startsWith("yarn")),ld=ib||ob;var wp=I(wd(),1);a();var Is=I(require("path"),1),Ad=require("url"),db=()=>{let t=Is.default.dirname((0,Ad.fileURLToPath)(m)),r=process.platform==="win32"?Is.default.join("Yarn","config","global"):Is.default.join(".config","yarn","global");return t.includes(r)},Sd=db;a();var vd=I(require("process"),1),Od=I(require("path"),1),Bd=I(require("fs"),1);function iu(t=vd.default.cwd()){return Bd.default.existsSync(Od.default.resolve(t,"yarn.lock"))}a();var an=I(require("process"),1);a();a();a();function ou({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var pb=ou();function un(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(pb,"")}var Nd=I(Td(),1),Ld=I(Pd(),1);function De(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=un(t),t.length===0))return 0;t=t.replace((0,Ld.default)()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let s of t){let i=s.codePointAt(0);if(i<=31||i>=127&&i<=159||i>=768&&i<=879)continue;switch(Nd.default.eastAsianWidth(s)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}a();function Ps(t){let e=0;for(let r of t.split(`
|
|
38
|
+
`))e=Math.max(e,De(r));return e}var Dp=I(cu(),1);a();var gb=/[\p{Lu}]/u,Eb=/[\p{Ll}]/u,kd=/^[\p{Lu}](?![\p{Lu}])/gu,Md=/([\p{Alpha}\p{N}_]|$)/u,lu=/[_.\- ]+/,yb=new RegExp("^"+lu.source),qd=new RegExp(lu.source+Md.source,"gu"),Ud=new RegExp("\\d+"+Md.source,"gu"),Cb=(t,e,r,n)=>{let s=!1,i=!1,o=!1,u=!1;for(let c=0;c<t.length;c++){let f=t[c];u=c>2?t[c-3]==="-":!0,s&&gb.test(f)?(t=t.slice(0,c)+"-"+t.slice(c),s=!1,o=i,i=!0,c++):i&&o&&Eb.test(f)&&(!u||n)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),o=i,i=!1,s=!0):(s=e(f)===f&&r(f)!==f,o=i,i=r(f)===f&&e(f)!==f)}return t},Fb=(t,e)=>(kd.lastIndex=0,t.replace(kd,r=>e(r))),bb=(t,e)=>(qd.lastIndex=0,Ud.lastIndex=0,t.replace(qd,(r,n)=>e(n)).replace(Ud,r=>e(r)));function fu(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(i=>i.trim()).filter(i=>i.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(e.locale),n=e.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(e.locale);return t.length===1?lu.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=Cb(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(yb,""),t=e.preserveConsecutiveUppercase?Fb(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),bb(t,n))}var gu=I(ep(),1);a();a();var tp=(t=0)=>e=>`\x1B[${e+t}m`,rp=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,np=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,re={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},z6=Object.keys(re.modifier),Bb=Object.keys(re.color),Rb=Object.keys(re.bgColor),W6=[...Bb,...Rb];function Tb(){let t=new Map;for(let[e,r]of Object.entries(re)){for(let[n,s]of Object.entries(r))re[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=re[n],t.set(s[0],s[1]);Object.defineProperty(re,e,{value:r,enumerable:!1})}return Object.defineProperty(re,"codes",{value:t,enumerable:!1}),re.color.close="\x1B[39m",re.bgColor.close="\x1B[49m",re.color.ansi=tp(),re.color.ansi256=rp(),re.color.ansi16m=np(),re.bgColor.ansi=tp(10),re.bgColor.ansi256=rp(10),re.bgColor.ansi16m=np(10),Object.defineProperties(re,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>re.rgbToAnsi256(...re.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,s=u%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>re.ansi256ToAnsi(re.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>re.ansi256ToAnsi(re.hexToAnsi256(e)),enumerable:!1}}),re}var Ib=Tb(),sp=Ib;var Ns=new Set(["\x1B","\x9B"]),Pb=39,pu="\x07",up="[",Nb="]",ap="m",mu=`${Nb}8;;`,ip=t=>`${Ns.values().next().value}${up}${t}${ap}`,op=t=>`${Ns.values().next().value}${mu}${t}${pu}`,Lb=t=>t.split(" ").map(e=>De(e)),du=(t,e,r)=>{let n=[...e],s=!1,i=!1,o=De(un(t[t.length-1]));for(let[u,c]of n.entries()){let f=De(c);if(o+f<=r?t[t.length-1]+=c:(t.push(c),o=0),Ns.has(c)&&(s=!0,i=n.slice(u+1).join("").startsWith(mu)),s){i?c===pu&&(s=!1,i=!1):c===ap&&(s=!1);continue}o+=f,o===r&&u<n.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},$b=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(De(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},jb=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",s,i,o=Lb(t),u=[""];for(let[f,l]of t.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u[u.length-1].trimStart());let D=De(u[u.length-1]);if(f!==0&&(D>=e&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),D=0),(D>0||r.trim===!1)&&(u[u.length-1]+=" ",D++)),r.hard&&o[f]>e){let d=e-D,h=1+Math.floor((o[f]-d-1)/e);Math.floor((o[f]-1)/e)<h&&u.push(""),du(u,l,e);continue}if(D+o[f]>e&&D>0&&o[f]>0){if(r.wordWrap===!1&&D<e){du(u,l,e);continue}u.push("")}if(D+o[f]>e&&r.wordWrap===!1){du(u,l,e);continue}u[u.length-1]+=l}r.trim!==!1&&(u=u.map(f=>$b(f)));let c=[...u.join(`
|
|
39
39
|
`)];for(let[f,l]of c.entries()){if(n+=l,Ns.has(l)){let{groups:d}=new RegExp(`(?:\\${up}(?<code>\\d+)m|\\${mu}(?<uri>.*)${pu})`).exec(c.slice(f).join(""))||{groups:{}};if(d.code!==void 0){let h=Number.parseFloat(d.code);s=h===Pb?void 0:h}else d.uri!==void 0&&(i=d.uri.length===0?void 0:d.uri)}let D=sp.codes.get(Number(s));c[f+1]===`
|
|
40
40
|
`?(i&&(n+=op("")),s&&D&&(n+=ip(D))):l===`
|
|
41
41
|
`&&(s&&D&&(n+=ip(s)),i&&(n+=op(i)))}return n};function Ls(t,e,r){return String(t).normalize().replace(/\r\n/g,`
|
|
42
42
|
`).split(`
|
|
43
|
-
`).map(n
|
|
43
|
+
`).map(n=>jb(n,e,r)).join(`
|
|
44
44
|
`)}var Vb=I(cu(),1),it=`
|
|
45
45
|
`,we=" ",cn="none",hp=()=>{let{env:t,stdout:e,stderr:r}=an.default;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},cp=t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},ln=t=>t===cn?0:2,kb=t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===cn){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=Dp.default[t],!r)throw new TypeError(`Invalid border style: ${t}`)}else{typeof t?.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t?.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(let n of e)if(t[n]===null||typeof t[n]!="string")throw new TypeError(`Invalid border style: ${n}`);r=t}return r},qb=(t,e,r)=>{let n="",s=De(t);switch(r){case"left":{n=t+e.slice(s);break}case"right":{n=e.slice(s)+t;break}default:{e=e.slice(s),e.length%2===1?(e=e.slice(Math.floor(e.length/2)),n=e.slice(1)+t+e):(e=e.slice(e.length/2),n=e+t+e);break}}return n},Ub=(t,{padding:e,width:r,textAlignment:n,height:s})=>{t=(0,gu.default)(t,{align:n});let i=t.split(it),o=Ps(t),u=r-e.left-e.right;if(o>u){let l=[];for(let D of i){let d=Ls(D,u,{hard:!0}),y=(0,gu.default)(d,{align:n}).split(`
|
|
46
|
-
`),E=Math.max(...y.map(b=>De(b)));for(let b of y){let C;switch(n){case"center":{C=we.repeat((u-E)/2)+b;break}case"right":{C=we.repeat(u-E)+b;break}default:{C=b;break}}l.push(C)}}i=l}n==="center"&&o<u?i=i.map(l=>we.repeat((u-o)/2)+l):n==="right"&&o<u&&(i=i.map(l=>we.repeat(u-o)+l));let c=we.repeat(e.left),f=we.repeat(e.right);return i=i.map(l=>c+l+f),i=i.map(l=>{if(r-De(l)>0)switch(n){case"center":return l+we.repeat(r-De(l));case"right":return l+we.repeat(r-De(l));default:return l+we.repeat(r-De(l))}return l}),e.top>0&&(i=[...Array.from({length:e.top}).fill(we.repeat(r)),...i]),e.bottom>0&&(i=[...i,...Array.from({length:e.bottom}).fill(we.repeat(r))]),s&&i.length>s?i=i.slice(0,s):s&&i.length<s&&(i=[...i,...Array.from({length:s-i.length}).fill(we.repeat(r))]),i.join(it)},Mb=(t,e,r)=>{let n=l=>{let D=r.borderColor?zb(r.borderColor)(l):l;return r.dimBorder?ue.dim(D):D},s=l=>r.backgroundColor?Wb(r.backgroundColor)(l):l,i=kb(r.borderStyle),o=hp(),u=we.repeat(r.margin.left);if(r.float==="center"){let l=Math.max((o-e-ln(r.borderStyle))/2,0);u=we.repeat(l)}else if(r.float==="right"){let l=Math.max(o-e-r.margin.right-ln(r.borderStyle),0);u=we.repeat(l)}let c="";r.margin.top&&(c+=it.repeat(r.margin.top)),(r.borderStyle!==cn||r.title)&&(c+=n(u+i.topLeft+(r.title?qb(r.title,i.top.repeat(e),r.titleAlignment):i.top.repeat(e))+i.topRight)+it);let f=t.split(it);return c+=f.map(l=>u+n(i.left)+s(l)+n(i.right)).join(it),r.borderStyle!==cn&&(c+=it+n(u+i.bottomLeft+i.bottom.repeat(e)+i.bottomRight)),r.margin.bottom&&(c+=it.repeat(r.margin.bottom)),c},Hb=t=>{if(t.fullscreen&&an.default?.stdout){let e=[an.default.stdout.columns,an.default.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||(t.width=e[0]),t.height||(t.height=e[1])}return t.width&&(t.width=Math.max(1,t.width-ln(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-ln(t.borderStyle))),t},lp=(t,e)=>e===cn?t:` ${t} `,Gb=(t,e)=>{e=Hb(e);let r=e.width!==void 0,n=hp(),s=ln(e.borderStyle),i=n-e.margin.left-e.margin.right-s,o=Ps(Ls(t,n-s,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&(e.title=lp(e.title,e.borderStyle))):e.title&&(e.title=e.title.slice(0,Math.max(0,i-2)),e.title&&(e.title=lp(e.title,e.borderStyle),De(e.title)>o&&(e.width=De(e.title)))),e.width=e.width?e.width:o,!r){if(e.margin.left&&e.margin.right&&e.width>i){let c=(n-e.width-s)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*c)),e.margin.right=Math.max(0,Math.floor(e.margin.right*c))}e.width=Math.min(e.width,n-s-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},Eu=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),fp=t=>typeof t=="string"&&(ue[t]??Eu(t)),zb=t=>Eu(t)?ue.hex(t):ue[t],Wb=t=>Eu(t)?ue.bgHex(t):ue[fu(["bg",t])];function
|
|
46
|
+
`),E=Math.max(...y.map(b=>De(b)));for(let b of y){let C;switch(n){case"center":{C=we.repeat((u-E)/2)+b;break}case"right":{C=we.repeat(u-E)+b;break}default:{C=b;break}}l.push(C)}}i=l}n==="center"&&o<u?i=i.map(l=>we.repeat((u-o)/2)+l):n==="right"&&o<u&&(i=i.map(l=>we.repeat(u-o)+l));let c=we.repeat(e.left),f=we.repeat(e.right);return i=i.map(l=>c+l+f),i=i.map(l=>{if(r-De(l)>0)switch(n){case"center":return l+we.repeat(r-De(l));case"right":return l+we.repeat(r-De(l));default:return l+we.repeat(r-De(l))}return l}),e.top>0&&(i=[...Array.from({length:e.top}).fill(we.repeat(r)),...i]),e.bottom>0&&(i=[...i,...Array.from({length:e.bottom}).fill(we.repeat(r))]),s&&i.length>s?i=i.slice(0,s):s&&i.length<s&&(i=[...i,...Array.from({length:s-i.length}).fill(we.repeat(r))]),i.join(it)},Mb=(t,e,r)=>{let n=l=>{let D=r.borderColor?zb(r.borderColor)(l):l;return r.dimBorder?ue.dim(D):D},s=l=>r.backgroundColor?Wb(r.backgroundColor)(l):l,i=kb(r.borderStyle),o=hp(),u=we.repeat(r.margin.left);if(r.float==="center"){let l=Math.max((o-e-ln(r.borderStyle))/2,0);u=we.repeat(l)}else if(r.float==="right"){let l=Math.max(o-e-r.margin.right-ln(r.borderStyle),0);u=we.repeat(l)}let c="";r.margin.top&&(c+=it.repeat(r.margin.top)),(r.borderStyle!==cn||r.title)&&(c+=n(u+i.topLeft+(r.title?qb(r.title,i.top.repeat(e),r.titleAlignment):i.top.repeat(e))+i.topRight)+it);let f=t.split(it);return c+=f.map(l=>u+n(i.left)+s(l)+n(i.right)).join(it),r.borderStyle!==cn&&(c+=it+n(u+i.bottomLeft+i.bottom.repeat(e)+i.bottomRight)),r.margin.bottom&&(c+=it.repeat(r.margin.bottom)),c},Hb=t=>{if(t.fullscreen&&an.default?.stdout){let e=[an.default.stdout.columns,an.default.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||(t.width=e[0]),t.height||(t.height=e[1])}return t.width&&(t.width=Math.max(1,t.width-ln(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-ln(t.borderStyle))),t},lp=(t,e)=>e===cn?t:` ${t} `,Gb=(t,e)=>{e=Hb(e);let r=e.width!==void 0,n=hp(),s=ln(e.borderStyle),i=n-e.margin.left-e.margin.right-s,o=Ps(Ls(t,n-s,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&(e.title=lp(e.title,e.borderStyle))):e.title&&(e.title=e.title.slice(0,Math.max(0,i-2)),e.title&&(e.title=lp(e.title,e.borderStyle),De(e.title)>o&&(e.width=De(e.title)))),e.width=e.width?e.width:o,!r){if(e.margin.left&&e.margin.right&&e.width>i){let c=(n-e.width-s)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*c)),e.margin.right=Math.max(0,Math.floor(e.margin.right*c))}e.width=Math.min(e.width,n-s-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},Eu=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),fp=t=>typeof t=="string"&&(ue[t]??Eu(t)),zb=t=>Eu(t)?ue.hex(t):ue[t],Wb=t=>Eu(t)?ue.bgHex(t):ue[fu(["bg",t])];function $s(t,e){if(e={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...e},e.align&&(e.textAlignment=e.align),e.borderColor&&!fp(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!fp(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=cp(e.padding),e.margin=cp(e.margin),e=Gb(t,e),t=Ub(t,e),Mb(t,e.width,e)}var Ap=I(yp(),1);a();a();var Cp=t=>t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");function Fp(t,...e){if(typeof t=="string")return Cp(t);let r=t[0];for(let[n,s]of e.entries())r=r+Cp(String(s))+t[n+1];return r}var yu=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}};function Cu(t,e,{ignoreMissing:r=!1,transform:n=({value:s})=>s}={}){if(typeof t!="string")throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof t}\``);if(typeof e!="object")throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof e}\``);let s=(c,f)=>{let l=e;for(let d of f.split("."))l=l?l[d]:void 0;let D=n({value:l,key:f});if(D===void 0){if(r)return c;throw new yu(f)}return String(D)},i=c=>(...f)=>Fp(c(...f)),o=/{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;o.test(t)&&(t=t.replace(o,i(s)));let u=/{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi;return t.replace(u,s)}var Kb=Fu.default.dirname((0,xp.fileURLToPath)(m)),Xb=1e3*60*60*24,fn=class{config;update;_packageName;_shouldNotifyInNpmScript;#t;#e;#n;#r;constructor(e={}){if(this.#t=e,e.pkg=e.pkg||{},e.distTag=e.distTag||"latest",e.pkg={name:e.pkg.name||e.packageName,version:e.pkg.version||e.packageVersion},!e.pkg.name||!e.pkg.version)throw new Error("pkg.name and pkg.version required");if(this._packageName=e.pkg.name,this.#e=e.pkg.version,this.#n=typeof e.updateCheckInterval=="number"?e.updateCheckInterval:Xb,this.#r="NO_UPDATE_NOTIFIER"in Ue.default.env||Ue.default.env.NODE_ENV==="test"||Ue.default.argv.includes("--no-update-notifier")||Ap.default,this._shouldNotifyInNpmScript=e.shouldNotifyInNpmScript,!this.#r)try{this.config=new gr(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{let r=ue.yellow((0,js.format)(" %s update check failed ",e.pkg.name))+(0,js.format)(`
|
|
47
47
|
Try running with %s or get access `,ue.cyan("sudo"))+`
|
|
48
48
|
to the local update config store via
|
|
49
|
-
`+ue.cyan((0
|
|
50
|
-
Run `+ue.cyan("{updateCommand}")+" to update",i=e.message||s;e.boxenOptions=e.boxenOptions||{padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o
|
|
49
|
+
`+ue.cyan((0,js.format)(" sudo chown -R $USER:$(id -gn $USER) %s ",It));Ue.default.on("exit",()=>{console.error($s(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#r||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#e,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#n)&&(0,bp.spawn)(Ue.default.execPath,[Fu.default.join(Kb,"check.js"),JSON.stringify(this.#t)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){let{distTag:e}=this.#t,r=await Qo(this._packageName,{version:e});return{latest:r,current:this.#e,type:Pi(this.#e,r)||e,name:this._packageName}}notify(e){let r=!this._shouldNotifyInNpmScript&&ld;if(!Ue.default.stdout.isTTY||r||!this.update||!_p.default.gt(this.update.latest,this.update.current))return this;e={isGlobal:wp.default,isYarnGlobal:Sd(),...e};let n;e.isYarnGlobal?n=`yarn global add ${this._packageName}`:e.isGlobal?n=`npm i -g ${this._packageName}`:iu()?n=`yarn add ${this._packageName}`:n=`npm i ${this._packageName}`;let s="Update available "+ue.dim("{currentVersion}")+ue.reset(" \u2192 ")+ue.green("{latestVersion}")+`
|
|
50
|
+
Run `+ue.cyan("{updateCommand}")+" to update",i=e.message||s;e.boxenOptions=e.boxenOptions||{padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=$s(Cu(i,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),e.boxenOptions);return e.defer===!1?console.error(o):(Ue.default.on("exit",()=>{console.error(o)}),Ue.default.on("SIGINT",()=>{console.error(""),Ue.default.exit()})),this}};function bu(t){let e=new fn(t);return e.check(),e}var ks={name:"@terai/dev",version:"0.0.2",description:"The user-facing package for Terai",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",private:!1,author:"Hugo Corta <corta.hugo@gmail.com>",bin:{terai:"bin.js"},scripts:{dev:"tsup --format=esm,cjs --no-dts --watch",build:"tsup"},files:["bin.js","dist"],sideEffects:!1,publishConfig:{access:"public"},exports:{".":{types:"./dist/index.d.ts",require:"./dist/index.js",import:"./dist/index.mjs"}},dependencies:{"@inquirer/prompts":"^3","@terai/extractor":"workspace:*","@terai/runtime":"workspace:*","@terai/translator":"workspace:*","@terai/utils":"workspace:*",cac:"^6",dotenv:"^1",inquirer:"^9",kleur:"^4","perfect-debounce":"^1","preferred-pm":"^3"},devDependencies:{"@terai/generator":"workspace:*","@terai/logger":"workspace:*","@terai/types":"workspace:*","@types/update-notifier":"^6","update-notifier":"^6"}};a();var ar=require("@terai/runtime"),Dn=require("@inquirer/prompts");a();function qs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function Sp(){return typeof WeakMap<"u"?new WeakMap:Qb()}function Qb(){return{add:qs,delete:qs,get:qs,set:qs,has:function(t){return!1}}}var Zb=Object.prototype.hasOwnProperty,_u=function(t,e){return Zb.call(t,e)};function xu(t,e){for(var r in e)_u(e,r)&&(t[r]=e[r]);return t}var ex=/^[ \t]*(?:\r\n|\r|\n)/,tx=/(?:\r\n|\r|\n)[ \t]*$/,rx=/^(?:[\r\n]|$)/,nx=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,sx=/^[ \t]*[\r\n][ \t\r\n]*$/;function vp(t,e,r){var n=0,s=t[0].match(nx);s&&(n=s[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",o=new RegExp(i,"g");e&&(t=t.slice(1));var u=r.newline,c=r.trimLeadingNewline,f=r.trimTrailingNewline,l=typeof u=="string",D=t.length,d=t.map(function(h,y){return h=h.replace(o,"$1"),y===0&&c&&(h=h.replace(ex,"")),y===D-1&&f&&(h=h.replace(tx,"")),l&&(h=h.replace(/\r\n|\n|\r/g,function(E){return u})),h});return d}function ix(t,e){for(var r="",n=0,s=t.length;n<s;n++)r+=t[n],n<s-1&&(r+=e[n]);return r}function ox(t){return _u(t,"raw")&&_u(t,"length")}function Op(t){var e=Sp(),r=Sp();function n(i){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];if(ox(i)){var c=i,f=(o[0]===n||o[0]===Ke)&&sx.test(c[0])&&rx.test(c[1]),l=f?r:e,D=l.get(c);if(D||(D=vp(c,f,t),l.set(c,D)),o.length===0)return D[0];var d=ix(D,f?o.slice(1):o);return d}else return Op(xu(xu({},t),i||{}))}var s=xu(n,{string:function(i){return vp([i],!1,t)[0]}});return s}var Ke=Op({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=Ke,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=Ke,Ke.outdent=Ke}catch{}var Bp=I(require("preferred-pm"));function Rp(t,e){return t.command("init","Initialize config file").option("-f, --force","Force overwrite existing config files").option("--cwd <cwd>","Current working directory",{default:e}).action(ux)}async function ux({cwd:t,force:e}){Y.heading("init","Initialize config file");let r=(0,ar.findConfig)({cwd:t}),s=(await(0,Bp.default)(t))?.name??"npm",i=s==="npm"?"npm run":s;if(r&&!e)return Y.log(Ke`
|
|
51
51
|
It looks like you already have terai created.
|
|
52
52
|
You can now run ${Y.colors.cyan(`'${i} terai extract --watch'`)}
|
|
53
|
-
`);let o=await(0,Dn.input)({message:"What locale do you use for development?",default:"en"}),u=await(0,Dn.input)({message:"Where do you want to place your generated files?",default:"./locale-system"}),c=await(0,Dn.select)({message:"Would you like to use any of these templates? (recommended)",choices:[{name:"No",value:null},{name:"Next",value:"next"},{name:"Vite",value:"vite"}]}),f=Y.time.success();await(0,ar.setupConfig)({cwd:t,projectLocale:o,outDir:u}),c&&await(0,ar.setupTemplate)({cwd:t,outDir:u,framework:c}),f("Config file created"),Y.log("\u{1F680} You are set up to start using
|
|
54
|
-
`)
|
|
55
|
-
`)}})),!c)return e("Everything up-to-date");e(`Translated ${c} messages, ${f} read from cache`)}async function qp(){bu({pkg:ks,distTag:"latest"}).notify(),Y.log(`${Y.colors.bold("terai")} ${Y.colors.cyan(`v${ks.version}`)}`);let t=kp.runtime.cwd(),e=(0
|
|
53
|
+
`);let o=await(0,Dn.input)({message:"What locale do you use for development?",default:"en"}),u=await(0,Dn.input)({message:"Where do you want to place your generated files?",default:"./locale-system"}),c=await(0,Dn.select)({message:"Would you like to use any of these templates? (recommended)",choices:[{name:"No",value:null},{name:"Next",value:"next"},{name:"Vite",value:"vite"}]}),f=Y.time.success();await(0,ar.setupConfig)({cwd:t,projectLocale:o,outDir:u}),c&&await(0,ar.setupTemplate)({cwd:t,outDir:u,framework:c}),f("Config file created"),Y.log("\u{1F680} You are set up to start using Terai! Thanks for choosing it.")}a();var Ip=require("perfect-debounce"),Pp=require("@terai/extractor");a();var Us=require("@terai/runtime"),Tp=require("@terai/utils");async function Ms({dictionaries:t,locale:e,cwd:r,outDir:n}){let s=Us.runtime.path.resolve(r,n,e),i=[];for(let o in t){let u=Us.runtime.path.resolve(s,`${o}.json`),c=t[o],f=(0,Tp.stringify)(c);Us.runtime.fs.write(u,f),i.push(f)}return i}var je=require("@terai/runtime");var cr=require("@terai/utils");function Np(t,e){return t.command("extract","Statically extract messages from your project").option("-w, --watch","Watch files and rebuild").option("--cwd <cwd>","Current working directory",{default:e}).action(ax)}async function ax(t){Y.heading("extract","Statically extract messages from your project");let e=Y.time.success(),r=await(0,je.loadConfig)(t),n=je.runtime.fs.glob({...r,cwd:t.cwd}),s=je.runtime.path.resolve(t.cwd,r.outDir),i=je.runtime.path.resolve(s,r.projectLocale),o=je.runtime.path.resolve(s,".terai","locale-manifest.json");Y.info("Scan:","Processing files...");async function u(f=n){let l=await(0,Pp.extract)({...r,filesPaths:f,cwd:t.cwd}),D=(0,cr.convertExtractedMessagesToDictionary)(l),d={messages:l},h=(0,cr.groupDictionaryByChunks)(D,d,r.projectLocale);return je.runtime.fs.remove(je.runtime.path.resolve(i)),await Ms({...r,dictionaries:h,locale:r.projectLocale,cwd:t.cwd}),je.runtime.fs.write(o,(0,cr.stringify)(d)),Object.keys(D).length}Y.info("Extraction:","Extracting messages...");let c=await u();e(`Extracted ${c} messages`),t.watch&&(Y.log(""),Y.info("Watch:",`Watching files for changes...
|
|
54
|
+
`),je.runtime.fs.watch({...r,...t}).on("change",(0,Ip.debounce)(async()=>{let l=Y.time.success();Y.info("Extraction:","Files changed, processing messages...");let D=await u();l(`Extracted ${D} messages`),Y.log("")})))}a();var ge=require("@terai/runtime");var Lp=require("@terai/translator"),lr=require("@terai/utils");function $p(t,e){return t.command("translate","Translate messages from your project").option("--cwd <cwd>","Current working directory",{default:e}).action(cx)}async function cx({cwd:t}){Y.heading("translate","Translate messages from your project");let e=Y.time.success(),r=await(0,ge.loadConfig)({cwd:t}),n=ge.runtime.path.resolve(t,r.outDir),s=ge.runtime.path.resolve(t,r.outDir,".terai"),i=ge.runtime.path.resolve(s,"locale-manifest.json");if(!ge.runtime.fs.exists(i))return Y.error("translate",`No locale-manifest.json found in ${s}. Please run "extract" first.`);let u=JSON.parse(ge.runtime.fs.readFile(i)),c=0,f=0;if(await Promise.all(r.outLocales.map(async l=>{try{let D={},d={},h=ge.runtime.path.resolve(n,l),y=ge.runtime.path.resolve(s,"cache",`${l}.cache.json`),b=ge.runtime.fs.exists(y)?JSON.parse(ge.runtime.fs.readFile(y)):{},C=0,v=0;for(let A in u.messages){let{value:$,chunksIds:z}=u.messages[A],k=z.length?z:[l];for(let he of k){let x=ge.runtime.path.resolve(h,`${he}.json`),U=(ge.runtime.fs.exists(x)?JSON.parse(ge.runtime.fs.readFile(x)):{})[A]??b[A];U?(D[A]=U,b[A]=U,C++):(d[A]=$,v++)}}if(v>0){let A=await(0,Lp.translate)({...r,dictionary:d,locale:l});D=(0,lr.merge)(A,D)}b={...b,...D},ge.runtime.fs.remove(h);let _=(0,lr.groupDictionaryByChunks)(D,u,l);await Ms({...r,dictionaries:_,locale:l,cwd:t}),ge.runtime.fs.write(y,(0,lr.stringify)(b)),c+=v,f+=C,Y.info(`Locale ${l.toUpperCase()}:`,`${v} new messages translated, ${C} recovered from cache`)}catch(D){D instanceof Error&&Y.error(`${l} translation:`,`Error translating to ${l}: ${D.message}
|
|
55
|
+
`)}})),!c)return e("Everything up-to-date");e(`Translated ${c} messages, ${f} read from cache`)}async function qp(){bu({pkg:ks,distTag:"latest"}).notify(),Y.log(`${Y.colors.bold("terai")} ${Y.colors.cyan(`v${ks.version}`)}`);let t=kp.runtime.cwd(),e=(0,jp.cac)("terai");Rp(e,t),Np(e,t),$p(e,t),e.help(),e.version(ks.version),e.parse(process.argv,{run:!1});try{await e.runMatchedCommand()}catch(r){r instanceof Error&&Y.error(r.message),process.exit(1)}}var hn=require("worker_threads");qp().catch(t=>{t.loc&&console.error(ue.bold(ue.red(`Error parsing: ${t.loc.file}:${t.loc.line}:${t.loc.column}`))),t.frame?(console.error(ue.red(t.message)),console.error(ue.dim(t.frame))):console.error(ue.red(t.message)),process.exitCode=1,!hn.isMainThread&&hn.parentPort&&hn.parentPort.postMessage("error")});
|
|
56
56
|
/*! Bundled license information:
|
|
57
57
|
|
|
58
58
|
imurmurhash/imurmurhash.js:
|