diff --git a/.pnp.cjs b/.pnp.cjs
index 55a864f3..a2b4bc43 100755
--- a/.pnp.cjs
+++ b/.pnp.cjs
@@ -1505,7 +1505,7 @@ const RAW_RUNTIME_STATE =
["@commitlint/types", "npm:19.0.3"],\
["@types/conventional-commits-parser", "npm:5.0.0"],\
["@types/node", "npm:22.9.0"],\
- ["conventional-changelog-angular", "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch::version=8.0.0&hash=62f275"],\
+ ["conventional-changelog-angular", "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f"],\
["conventional-commits-parser", "npm:6.0.0"]\
],\
"linkType": "SOFT"\
@@ -3470,7 +3470,7 @@ const RAW_RUNTIME_STATE =
"packageDependencies": [\
["@commitlint/parse", "npm:19.5.0"],\
["@commitlint/types", "npm:19.5.0"],\
- ["conventional-changelog-angular", "npm:7.0.0"],\
+ ["conventional-changelog-angular", "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f"],\
["conventional-commits-parser", "npm:5.0.0"]\
],\
"linkType": "HARD"\
@@ -8556,10 +8556,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["conventional-changelog-angular", [\
- ["npm:7.0.0", {\
- "packageLocation": "./.yarn/cache/conventional-changelog-angular-npm-7.0.0-de5edb79f0-e7966d2fee.zip/node_modules/conventional-changelog-angular/",\
+ ["patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f", {\
+ "packageLocation": "./.yarn/cache/conventional-changelog-angular-patch-073dd937fa-3a1ad0a1dc.zip/node_modules/conventional-changelog-angular/",\
"packageDependencies": [\
- ["conventional-changelog-angular", "npm:7.0.0"],\
+ ["conventional-changelog-angular", "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f"],\
["compare-func", "npm:2.0.0"]\
],\
"linkType": "HARD"\
diff --git a/.yarn/cache/conventional-changelog-angular-patch-073dd937fa-3a1ad0a1dc.zip b/.yarn/cache/conventional-changelog-angular-patch-073dd937fa-3a1ad0a1dc.zip
new file mode 100644
index 00000000..9c9dcacb
Binary files /dev/null and b/.yarn/cache/conventional-changelog-angular-patch-073dd937fa-3a1ad0a1dc.zip differ
diff --git a/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch b/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch
new file mode 100644
index 00000000..ac3a86d8
--- /dev/null
+++ b/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch
@@ -0,0 +1,31 @@
+diff --git a/writerOpts.js b/writerOpts.js
+index 991947b85e2eac0e0ae246037624276882abb741..805d7e29d3472a8ce2f5b852871c546eecb86bfd 100644
+--- a/writerOpts.js
++++ b/writerOpts.js
+@@ -1,22 +1,14 @@
+ 'use strict'
+
+ const compareFunc = require('compare-func')
+-const { readFile } = require('fs').promises
+-const { resolve } = require('path')
+
+ async function createWriterOpts () {
+- const [template, header, commit, footer] = await Promise.all([
+- readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'),
+- readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'),
+- readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8'),
+- readFile(resolve(__dirname, './templates/footer.hbs'), 'utf-8')
+- ])
+ const writerOpts = getWriterOpts()
+
+- writerOpts.mainTemplate = template
+- writerOpts.headerPartial = header
+- writerOpts.commitPartial = commit
+- writerOpts.footerPartial = footer
++ writerOpts.mainTemplate = ''
++ writerOpts.headerPartial = ''
++ writerOpts.commitPartial = ''
++ writerOpts.footerPartial = ''
+
+ return writerOpts
+ }
diff --git a/.yarn/unplugged/@esbuild-linux-x64-npm-0.23.1-e5d2d8764d/node_modules/@esbuild/linux-x64/README.md b/.yarn/unplugged/@esbuild-linux-x64-npm-0.23.1-e5d2d8764d/node_modules/@esbuild/linux-x64/README.md
deleted file mode 100644
index b2f19300..00000000
--- a/.yarn/unplugged/@esbuild-linux-x64-npm-0.23.1-e5d2d8764d/node_modules/@esbuild/linux-x64/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# esbuild
-
-This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
diff --git a/.yarn/unplugged/@rollup-rollup-linux-x64-gnu-npm-4.21.2-65bebf97f0/node_modules/@rollup/rollup-linux-x64-gnu/README.md b/.yarn/unplugged/@rollup-rollup-linux-x64-gnu-npm-4.21.2-65bebf97f0/node_modules/@rollup/rollup-linux-x64-gnu/README.md
deleted file mode 100644
index cabe280f..00000000
--- a/.yarn/unplugged/@rollup-rollup-linux-x64-gnu-npm-4.21.2-65bebf97f0/node_modules/@rollup/rollup-linux-x64-gnu/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# `@rollup/rollup-linux-x64-gnu`
-
-This is the **x86_64-unknown-linux-gnu** binary for `rollup`
diff --git a/code/code-commit/package.json b/code/code-commit/package.json
index 16937fe9..4972d825 100644
--- a/code/code-commit/package.json
+++ b/code/code-commit/package.json
@@ -25,7 +25,7 @@
"@commitlint/read": "19.4.0",
"@commitlint/rules": "19.4.1",
"@commitlint/types": "19.0.3",
- "conventional-changelog-angular": "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch",
+ "conventional-changelog-angular": "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch",
"conventional-commits-parser": "6.0.0"
},
"devDependencies": {
diff --git a/package.json b/package.json
index bb7cb531..c7a4b51e 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"resolutions": {
"@yarnpkg/builder": "patch:@yarnpkg/builder@npm%3A4.1.2#~/.yarn/patches/@yarnpkg-builder-npm-4.1.2-2648882e59.patch",
"clipanion": "4.0.0-rc.2",
+ "conventional-changelog-angular@npm:^7.0.0": "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch",
"conventional-changelog-angular@npm:^8.0.0": "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch",
"conventional-changelog-core@npm:^8.0.0": "patch:conventional-changelog-core@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-core-npm-8.0.0-3fbb6b301e.patch",
"conventional-changelog-writer@npm:^8.0.0": "patch:conventional-changelog-writer@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-writer-npm-8.0.0-356cbecdca.patch",
diff --git a/yarn.lock b/yarn.lock
index 27cc6c64..3badfabc 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -632,7 +632,7 @@ __metadata:
"@commitlint/types": "npm:19.0.3"
"@types/conventional-commits-parser": "npm:5.0.0"
"@types/node": "npm:22.9.0"
- conventional-changelog-angular: "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch"
+ conventional-changelog-angular: "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch"
conventional-commits-parser: "npm:6.0.0"
languageName: unknown
linkType: soft
@@ -5597,6 +5597,15 @@ __metadata:
languageName: node
linkType: hard
+"conventional-changelog-angular@npm:7.0.0":
+ version: 7.0.0
+ resolution: "conventional-changelog-angular@npm:7.0.0"
+ dependencies:
+ compare-func: "npm:^2.0.0"
+ checksum: 10/e7966d2fee5475e76263f30f8b714b2b592b5bf556df225b7091e5090831fc9a20b99598a7d2997e19c2ef8118c0a3150b1eba290786367b0f55a5ccfa804ec9
+ languageName: node
+ linkType: hard
+
"conventional-changelog-angular@npm:8.0.0":
version: 8.0.0
resolution: "conventional-changelog-angular@npm:8.0.0"
@@ -5606,12 +5615,12 @@ __metadata:
languageName: node
linkType: hard
-"conventional-changelog-angular@npm:^7.0.0":
+"conventional-changelog-angular@patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch":
version: 7.0.0
- resolution: "conventional-changelog-angular@npm:7.0.0"
+ resolution: "conventional-changelog-angular@patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f"
dependencies:
compare-func: "npm:^2.0.0"
- checksum: 10/e7966d2fee5475e76263f30f8b714b2b592b5bf556df225b7091e5090831fc9a20b99598a7d2997e19c2ef8118c0a3150b1eba290786367b0f55a5ccfa804ec9
+ checksum: 10/3a1ad0a1dcf3c6484fb0fea0f7f8f2ab8e0bb224c082aabdd38dde63f18182ae0802aa71a0761ad3cc863b39d4354b7a3dcfbc80e2c998942ddde09628d432af
languageName: node
linkType: hard
diff --git a/yarn/cli/dist/yarn.mjs b/yarn/cli/dist/yarn.mjs
index c9ba05ef..960cb0b2 100755
--- a/yarn/cli/dist/yarn.mjs
+++ b/yarn/cli/dist/yarn.mjs
@@ -24,41 +24,41 @@
}
})();
-var IJi=Object.create;var zWe=Object.defineProperty;var TJi=Object.getOwnPropertyDescriptor;var SJi=Object.getOwnPropertyNames;var vJi=Object.getPrototypeOf,DJi=Object.prototype.hasOwnProperty;var qt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var sc=(e,t)=>()=>(e&&(t=e(e=0)),t);var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ih=(e,t)=>{for(var r in t)zWe(e,r,{get:t[r],enumerable:!0})},_kr=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of SJi(t))!DJi.call(e,c)&&c!==r&&zWe(e,c,{get:()=>t[c],enumerable:!(s=TJi(t,c))||s.enumerable});return e};var Qt=(e,t,r)=>(r=e!=null?IJi(vJi(e)):{},_kr(t||!e||!e.__esModule?zWe(r,"default",{value:e,enumerable:!0}):r,e)),li=e=>_kr(zWe({},"__esModule",{value:!0}),e);var c1,Gg,Qae,bxt,KWe,Akr,wxt,Bxt,XWe=sc(()=>{(function(e){e.StartOfInput="\0",e.EndOfInput="",e.EndOfPartialInput=""})(c1||(c1={}));(function(e){e[e.InitialNode=0]="InitialNode",e[e.SuccessNode=1]="SuccessNode",e[e.ErrorNode=2]="ErrorNode",e[e.CustomNode=3]="CustomNode"})(Gg||(Gg={}));Qae=-1,bxt=/^(-h|--help)(?:=([0-9]+))?$/,KWe=/^(--[a-z]+(?:-[a-z]+)*|-[a-zA-Z]+)$/,Akr=/^-[a-zA-Z]{2,}$/,wxt=/^([^=]+)=([\s\S]*)$/,Bxt=process.env.DEBUG_CLI==="1"});var Mae,vge,ZWe,xxt,$We=sc(()=>{XWe();Mae=class extends Error{constructor(t){super(t),this.clipanion={type:"usage"},this.name="UsageError"}},vge=class extends Error{constructor(t,r){if(super(),this.input=t,this.candidates=r,this.clipanion={type:"none"},this.name="UnknownSyntaxError",this.candidates.length===0)this.message="Command not found, but we're not sure what's the alternative.";else if(this.candidates.every(s=>s.reason!==null&&s.reason===r[0].reason)){let[{reason:s}]=this.candidates;this.message=`${s}
+var yJi=Object.create;var zWe=Object.defineProperty;var CJi=Object.getOwnPropertyDescriptor;var IJi=Object.getOwnPropertyNames;var TJi=Object.getPrototypeOf,SJi=Object.prototype.hasOwnProperty;var qt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var sc=(e,t)=>()=>(e&&(t=e(e=0)),t);var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ih=(e,t)=>{for(var r in t)zWe(e,r,{get:t[r],enumerable:!0})},pkr=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of IJi(t))!SJi.call(e,c)&&c!==r&&zWe(e,c,{get:()=>t[c],enumerable:!(s=CJi(t,c))||s.enumerable});return e};var Qt=(e,t,r)=>(r=e!=null?yJi(TJi(e)):{},pkr(t||!e||!e.__esModule?zWe(r,"default",{value:e,enumerable:!0}):r,e)),li=e=>pkr(zWe({},"__esModule",{value:!0}),e);var c1,Gg,Qae,vxt,KWe,dkr,Dxt,bxt,XWe=sc(()=>{(function(e){e.StartOfInput="\0",e.EndOfInput="",e.EndOfPartialInput=""})(c1||(c1={}));(function(e){e[e.InitialNode=0]="InitialNode",e[e.SuccessNode=1]="SuccessNode",e[e.ErrorNode=2]="ErrorNode",e[e.CustomNode=3]="CustomNode"})(Gg||(Gg={}));Qae=-1,vxt=/^(-h|--help)(?:=([0-9]+))?$/,KWe=/^(--[a-z]+(?:-[a-z]+)*|-[a-zA-Z]+)$/,dkr=/^-[a-zA-Z]{2,}$/,Dxt=/^([^=]+)=([\s\S]*)$/,bxt=process.env.DEBUG_CLI==="1"});var Mae,vge,ZWe,wxt,$We=sc(()=>{XWe();Mae=class extends Error{constructor(t){super(t),this.clipanion={type:"usage"},this.name="UsageError"}},vge=class extends Error{constructor(t,r){if(super(),this.input=t,this.candidates=r,this.clipanion={type:"none"},this.name="UnknownSyntaxError",this.candidates.length===0)this.message="Command not found, but we're not sure what's the alternative.";else if(this.candidates.every(s=>s.reason!==null&&s.reason===r[0].reason)){let[{reason:s}]=this.candidates;this.message=`${s}
${this.candidates.map(({usage:c})=>`$ ${c}`).join(`
`)}`}else if(this.candidates.length===1){let[{usage:s}]=this.candidates;this.message=`Command not found; did you mean:
$ ${s}
-${xxt(t)}`}else this.message=`Command not found; did you mean one of:
+${wxt(t)}`}else this.message=`Command not found; did you mean one of:
${this.candidates.map(({usage:s},c)=>`${`${c}.`.padStart(4)} ${s}`).join(`
`)}
-${xxt(t)}`}},ZWe=class extends Error{constructor(t,r){super(),this.input=t,this.usages=r,this.clipanion={type:"none"},this.name="AmbiguousSyntaxError",this.message=`Cannot find which to pick amongst the following alternatives:
+${wxt(t)}`}},ZWe=class extends Error{constructor(t,r){super(),this.input=t,this.usages=r,this.clipanion={type:"none"},this.name="AmbiguousSyntaxError",this.message=`Cannot find which to pick amongst the following alternatives:
${this.usages.map((s,c)=>`${`${c}.`.padStart(4)} ${s}`).join(`
`)}
-${xxt(t)}`}},xxt=e=>`While running ${e.filter(t=>t!==c1.EndOfInput&&t!==c1.EndOfPartialInput).map(t=>{let r=JSON.stringify(t);return t.match(/\s/)||t.length===0||r!==`"${t}"`?r:t}).join(" ")}`});function bJi(e){let t=e.split(`
+${wxt(t)}`}},wxt=e=>`While running ${e.filter(t=>t!==c1.EndOfInput&&t!==c1.EndOfPartialInput).map(t=>{let r=JSON.stringify(t);return t.match(/\s/)||t.length===0||r!==`"${t}"`?r:t}).join(" ")}`});function vJi(e){let t=e.split(`
`),r=t.filter(c=>c.match(/\S/)),s=r.length>0?r.reduce((c,o)=>Math.min(c,o.length-o.trimStart().length),Number.MAX_VALUE):0;return t.map(c=>c.slice(s).trimRight()).join(`
`)}function sF(e,{format:t,paragraphs:r}){return e=e.replace(/\r\n?/g,`
-`),e=bJi(e),e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^(\s*)-([^\n]*?)\n+/gm,`$1-$2
+`),e=vJi(e),e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^(\s*)-([^\n]*?)\n+/gm,`$1-$2
`),e=e.replace(/\n(\n)?\n*/g,(s,c)=>c||" "),r&&(e=e.split(/\n/).map(s=>{let c=s.match(/^\s*[*-][\t ]+(.*)/);if(!c)return s.match(/(.{1,80})(?: |$)/g).join(`
`);let o=s.length-s.trimStart().length;return c[1].match(new RegExp(`(.{1,${78-o}})(?: |$)`,"g")).map((f,_)=>" ".repeat(o)+(_===0?"- ":" ")+f).join(`
`)}).join(`
`)),e=e.replace(/(`+)((?:.|[\n])*?)\1/g,(s,c,o)=>t.code(c+o+c)),e=e.replace(/(\*\*)((?:.|[\n])*?)\1/g,(s,c,o)=>t.bold(c+o+c)),e?`${e}
-`:""}var Nxt,hkr,mkr,Rxt=sc(()=>{Nxt=Array(80).fill("\u2501");for(let e=0;e<=24;++e)Nxt[Nxt.length-e]=`\x1B[38;5;${232+e}m\u2501`;hkr={header:e=>`\x1B[1m\u2501\u2501\u2501 ${e}${e.length<75?` ${Nxt.slice(e.length+5).join("")}`:":"}\x1B[0m`,bold:e=>`\x1B[1m${e}\x1B[22m`,error:e=>`\x1B[31m\x1B[1m${e}\x1B[22m\x1B[39m`,code:e=>`\x1B[36m${e}\x1B[39m`},mkr={header:e=>e,bold:e=>e,error:e=>e,code:e=>e}});function oP(e){return{...e,[zNe]:!0}}function yj(e,t){return typeof e>"u"?[e,t]:typeof e=="object"&&e!==null&&!Array.isArray(e)?[void 0,e]:[e,t]}function eYe(e,{mergeName:t=!1}={}){let r=e.match(/^([^:]+): (.*)$/m);if(!r)return"validation failed";let[,s,c]=r;return t&&(c=c[0].toLowerCase()+c.slice(1)),c=s!=="."||!t?`${s.replace(/^\.(\[|$)/,"$1")}: ${c}`:`: ${c}`,c}function KNe(e,t){return t.length===1?new Mae(`${e}${eYe(t[0],{mergeName:!0})}`):new Mae(`${e}:
+`:""}var Bxt,_kr,Akr,xxt=sc(()=>{Bxt=Array(80).fill("\u2501");for(let e=0;e<=24;++e)Bxt[Bxt.length-e]=`\x1B[38;5;${232+e}m\u2501`;_kr={header:e=>`\x1B[1m\u2501\u2501\u2501 ${e}${e.length<75?` ${Bxt.slice(e.length+5).join("")}`:":"}\x1B[0m`,bold:e=>`\x1B[1m${e}\x1B[22m`,error:e=>`\x1B[31m\x1B[1m${e}\x1B[22m\x1B[39m`,code:e=>`\x1B[36m${e}\x1B[39m`},Akr={header:e=>e,bold:e=>e,error:e=>e,code:e=>e}});function oP(e){return{...e,[zNe]:!0}}function yj(e,t){return typeof e>"u"?[e,t]:typeof e=="object"&&e!==null&&!Array.isArray(e)?[void 0,e]:[e,t]}function eYe(e,{mergeName:t=!1}={}){let r=e.match(/^([^:]+): (.*)$/m);if(!r)return"validation failed";let[,s,c]=r;return t&&(c=c[0].toLowerCase()+c.slice(1)),c=s!=="."||!t?`${s.replace(/^\.(\[|$)/,"$1")}: ${c}`:`: ${c}`,c}function KNe(e,t){return t.length===1?new Mae(`${e}${eYe(t[0],{mergeName:!0})}`):new Mae(`${e}:
${t.map(r=>`
-- ${eYe(r)}`).join("")}`)}function Uae(e,t,r){if(typeof r>"u")return t;let s=[],c=[],o=_=>{let A=t;return t=_,o.bind(null,A)};if(!r(t,{errors:s,coercions:c,coercion:o}))throw KNe(`Invalid value for ${e}`,s);for(let[,_]of c)_();return t}var zNe,NW=sc(()=>{$We();zNe=Symbol("clipanion/isOption")});var oF={};ih(oF,{KeyRelationship:()=>Dge,TypeAssertionError:()=>see,applyCascade:()=>_Vi,as:()=>YJi,assert:()=>JJi,assertWithErrors:()=>VJi,cascade:()=>Skr,fn:()=>zJi,hasAtLeastOneKey:()=>gVi,hasExactLength:()=>Tkr,hasForbiddenKeys:()=>EVi,hasKeyRelationship:()=>IVi,hasMaxLength:()=>XJi,hasMinLength:()=>KJi,hasMutuallyExclusiveKeys:()=>yVi,hasRequiredKeys:()=>mVi,hasUniqueItems:()=>ZJi,isArray:()=>tYe,isAtLeast:()=>tVi,isAtMost:()=>rVi,isBase64:()=>pVi,isBoolean:()=>OJi,isDate:()=>QJi,isDict:()=>GJi,isEnum:()=>Oxt,isHexColor:()=>fVi,isISO8601:()=>uVi,isInExclusiveRange:()=>iVi,isInInclusiveRange:()=>nVi,isInstanceOf:()=>HJi,isInteger:()=>sVi,isJSON:()=>dVi,isLiteral:()=>Ekr,isLowerCase:()=>aVi,isMap:()=>UJi,isNegative:()=>$Ji,isNullable:()=>hVi,isNumber:()=>FJi,isObject:()=>Ckr,isOneOf:()=>qJi,isOptional:()=>AVi,isPartial:()=>jJi,isPayload:()=>LJi,isPositive:()=>eVi,isRecord:()=>nYe,isSet:()=>MJi,isString:()=>ykr,isTuple:()=>rYe,isUUID4:()=>lVi,isUnknown:()=>Pxt,isUpperCase:()=>cVi,makeTrait:()=>Ikr,makeValidator:()=>dh,matchesRegExp:()=>oVi,softAssert:()=>WJi});function l1(e){return e===null?"null":e===void 0?"undefined":e===""?"an empty string":typeof e=="symbol"?`<${e.toString()}>`:Array.isArray(e)?"an array":JSON.stringify(e)}function bge(e,t){if(e.length===0)return"nothing";if(e.length===1)return l1(e[0]);let r=e.slice(0,-1),s=e[e.length-1],c=e.length>2?`, ${t} `:` ${t} `;return`${r.map(o=>l1(o)).join(", ")}${c}${l1(s)}`}function iee(e,t){var r,s,c;return typeof t=="number"?`${(r=e?.p)!==null&&r!==void 0?r:"."}[${t}]`:wJi.test(t)?`${(s=e?.p)!==null&&s!==void 0?s:""}.${t}`:`${(c=e?.p)!==null&&c!==void 0?c:"."}[${JSON.stringify(t)}]`}function kxt(e,t,r){return e===1?t:r}function od({errors:e,p:t}={},r){return e?.push(`${t??"."}: ${r}`),!1}function kJi(e,t){return r=>{e[t]=r}}function Cj(e,t){return r=>{let s=e[t];return e[t]=r,Cj(e,t).bind(null,s)}}function XNe(e,t,r){let s=()=>(e(r()),c),c=()=>(e(t),s);return s}function Pxt(){return dh({test:(e,t)=>!0})}function Ekr(e){return dh({test:(t,r)=>t!==e?od(r,`Expected ${l1(e)} (got ${l1(t)})`):!0})}function ykr(){return dh({test:(e,t)=>typeof e!="string"?od(t,`Expected a string (got ${l1(e)})`):!0})}function Oxt(e){let t=Array.isArray(e)?e:Object.values(e),r=t.every(c=>typeof c=="string"||typeof c=="number"),s=new Set(t);return s.size===1?Ekr([...s][0]):dh({test:(c,o)=>s.has(c)?!0:r?od(o,`Expected one of ${bge(t,"or")} (got ${l1(c)})`):od(o,`Expected a valid enumeration value (got ${l1(c)})`)})}function OJi(){return dh({test:(e,t)=>{var r;if(typeof e!="boolean"){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s=PJi.get(e);if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a boolean (got ${l1(e)})`)}return!0}})}function FJi(){return dh({test:(e,t)=>{var r;if(typeof e!="number"){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s;if(typeof e=="string"){let c;try{c=JSON.parse(e)}catch{}if(typeof c=="number")if(JSON.stringify(c)===e)s=c;else return od(t,`Received a number that can't be safely represented by the runtime (${e})`)}if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a number (got ${l1(e)})`)}return!0}})}function LJi(e){return dh({test:(t,r)=>{var s;if(typeof r?.coercions>"u")return od(r,"The isPayload predicate can only be used with coercion enabled");if(typeof r.coercion>"u")return od(r,"Unbound coercion result");if(typeof t!="string")return od(r,`Expected a string (got ${l1(t)})`);let c;try{c=JSON.parse(t)}catch{return od(r,`Expected a JSON string (got ${l1(t)})`)}let o={value:c};return e(c,Object.assign(Object.assign({},r),{coercion:Cj(o,"value")}))?(r.coercions.push([(s=r.p)!==null&&s!==void 0?s:".",r.coercion.bind(null,o.value)]),!0):!1}})}function QJi(){return dh({test:(e,t)=>{var r;if(!(e instanceof Date)){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s;if(typeof e=="string"&&gkr.test(e))s=new Date(e);else{let c;if(typeof e=="string"){let o;try{o=JSON.parse(e)}catch{}typeof o=="number"&&(c=o)}else typeof e=="number"&&(c=e);if(typeof c<"u")if(Number.isSafeInteger(c)||!Number.isSafeInteger(c*1e3))s=new Date(c*1e3);else return od(t,`Received a timestamp that can't be safely represented by the runtime (${e})`)}if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a date (got ${l1(e)})`)}return!0}})}function tYe(e,{delimiter:t}={}){return dh({test:(r,s)=>{var c;let o=r;if(typeof r=="string"&&typeof t<"u"&&typeof s?.coercions<"u"){if(typeof s?.coercion>"u")return od(s,"Unbound coercion result");r=r.split(t)}if(!Array.isArray(r))return od(s,`Expected an array (got ${l1(r)})`);let f=!0;for(let _=0,A=r.length;_{var o,f;if(Object.getPrototypeOf(s).toString()==="[object Set]")if(typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");let _=[...s],A=[...s];if(!r(A,Object.assign(Object.assign({},c),{coercion:void 0})))return!1;let y=()=>A.some((I,D)=>I!==_[D])?new Set(A):s;return c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",XNe(c.coercion,s,y)]),!0}else{let _=!0;for(let A of s)if(_=e(A,Object.assign({},c))&&_,!_&&c?.errors==null)break;return _}if(typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");let _={value:s};return r(s,Object.assign(Object.assign({},c),{coercion:Cj(_,"value")}))?(c.coercions.push([(f=c.p)!==null&&f!==void 0?f:".",XNe(c.coercion,s,()=>new Set(_.value))]),!0):!1}return od(c,`Expected a set (got ${l1(s)})`)}})}function UJi(e,t){let r=tYe(rYe([e,t])),s=nYe(t,{keys:e});return dh({test:(c,o)=>{var f,_,A;if(Object.getPrototypeOf(c).toString()==="[object Map]")if(typeof o?.coercions<"u"){if(typeof o?.coercion>"u")return od(o,"Unbound coercion result");let y=[...c],I=[...c];if(!r(I,Object.assign(Object.assign({},o),{coercion:void 0})))return!1;let D=()=>I.some((b,L)=>b[0]!==y[L][0]||b[1]!==y[L][1])?new Map(I):c;return o.coercions.push([(f=o.p)!==null&&f!==void 0?f:".",XNe(o.coercion,c,D)]),!0}else{let y=!0;for(let[I,D]of c)if(y=e(I,Object.assign({},o))&&y,!y&&o?.errors==null||(y=t(D,Object.assign(Object.assign({},o),{p:iee(o,I)}))&&y,!y&&o?.errors==null))break;return y}if(typeof o?.coercions<"u"){if(typeof o?.coercion>"u")return od(o,"Unbound coercion result");let y={value:c};return Array.isArray(c)?r(c,Object.assign(Object.assign({},o),{coercion:void 0}))?(o.coercions.push([(_=o.p)!==null&&_!==void 0?_:".",XNe(o.coercion,c,()=>new Map(y.value))]),!0):!1:s(c,Object.assign(Object.assign({},o),{coercion:Cj(y,"value")}))?(o.coercions.push([(A=o.p)!==null&&A!==void 0?A:".",XNe(o.coercion,c,()=>new Map(Object.entries(y.value)))]),!0):!1}return od(o,`Expected a map (got ${l1(c)})`)}})}function rYe(e,{delimiter:t}={}){let r=Tkr(e.length);return dh({test:(s,c)=>{var o;if(typeof s=="string"&&typeof t<"u"&&typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");s=s.split(t),c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,s)])}if(!Array.isArray(s))return od(c,`Expected a tuple (got ${l1(s)})`);let f=r(s,Object.assign({},c));for(let _=0,A=s.length;_{var o;if(Array.isArray(s)&&typeof c?.coercions<"u")return typeof c?.coercion>"u"?od(c,"Unbound coercion result"):r(s,Object.assign(Object.assign({},c),{coercion:void 0}))?(s=Object.fromEntries(s),c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,s)]),!0):!1;if(typeof s!="object"||s===null)return od(c,`Expected an object (got ${l1(s)})`);let f=Object.keys(s),_=!0;for(let A=0,y=f.length;A{if(typeof c!="object"||c===null)return od(o,`Expected an object (got ${l1(c)})`);let f=new Set([...r,...Object.keys(c)]),_={},A=!0;for(let y of f){if(y==="constructor"||y==="__proto__")A=od(Object.assign(Object.assign({},o),{p:iee(o,y)}),"Unsafe property name");else{let I=Object.prototype.hasOwnProperty.call(e,y)?e[y]:void 0,D=Object.prototype.hasOwnProperty.call(c,y)?c[y]:void 0;typeof I<"u"?A=I(D,Object.assign(Object.assign({},o),{p:iee(o,y),coercion:Cj(c,y)}))&&A:t===null?A=od(Object.assign(Object.assign({},o),{p:iee(o,y)}),`Extraneous property (got ${l1(D)})`):Object.defineProperty(_,y,{enumerable:!0,get:()=>D,set:kJi(c,y)})}if(!A&&o?.errors==null)break}return t!==null&&(A||o?.errors!=null)&&(A=t(_,o)&&A),A}});return Object.assign(s,{properties:e})}function jJi(e){return Ckr(e,{extra:nYe(Pxt())})}function Ikr(e){return()=>e}function dh({test:e}){return Ikr(e)()}function JJi(e,t){if(!t(e))throw new see}function VJi(e,t){let r=[];if(!t(e,{errors:r}))throw new see({errors:r})}function WJi(e,t){}function YJi(e,t,{coerce:r=!1,errors:s,throw:c}={}){let o=s?[]:void 0;if(!r){if(t(e,{errors:o}))return c?e:{value:e,errors:void 0};if(c)throw new see({errors:o});return{value:void 0,errors:o??!0}}let f={value:e},_=Cj(f,"value"),A=[];if(!t(e,{errors:o,coercion:_,coercions:A})){if(c)throw new see({errors:o});return{value:void 0,errors:o??!0}}for(let[,y]of A)y();return c?f.value:{value:f.value,errors:void 0}}function zJi(e,t){let r=rYe(e);return(...s)=>{if(!r(s))throw new see;return t(...s)}}function KJi(e){return dh({test:(t,r)=>t.length>=e?!0:od(r,`Expected to have a length of at least ${e} elements (got ${t.length})`)})}function XJi(e){return dh({test:(t,r)=>t.length<=e?!0:od(r,`Expected to have a length of at most ${e} elements (got ${t.length})`)})}function Tkr(e){return dh({test:(t,r)=>t.length!==e?od(r,`Expected to have a length of exactly ${e} elements (got ${t.length})`):!0})}function ZJi({map:e}={}){return dh({test:(t,r)=>{let s=new Set,c=new Set;for(let o=0,f=t.length;oe<=0?!0:od(t,`Expected to be negative (got ${e})`)})}function eVi(){return dh({test:(e,t)=>e>=0?!0:od(t,`Expected to be positive (got ${e})`)})}function tVi(e){return dh({test:(t,r)=>t>=e?!0:od(r,`Expected to be at least ${e} (got ${t})`)})}function rVi(e){return dh({test:(t,r)=>t<=e?!0:od(r,`Expected to be at most ${e} (got ${t})`)})}function nVi(e,t){return dh({test:(r,s)=>r>=e&&r<=t?!0:od(s,`Expected to be in the [${e}; ${t}] range (got ${r})`)})}function iVi(e,t){return dh({test:(r,s)=>r>=e&&rt!==Math.round(t)?od(r,`Expected to be an integer (got ${t})`):!e&&!Number.isSafeInteger(t)?od(r,`Expected to be a safe integer (got ${t})`):!0})}function oVi(e){return dh({test:(t,r)=>e.test(t)?!0:od(r,`Expected to match the pattern ${e.toString()} (got ${l1(t)})`)})}function aVi(){return dh({test:(e,t)=>e!==e.toLowerCase()?od(t,`Expected to be all-lowercase (got ${e})`):!0})}function cVi(){return dh({test:(e,t)=>e!==e.toUpperCase()?od(t,`Expected to be all-uppercase (got ${e})`):!0})}function lVi(){return dh({test:(e,t)=>RJi.test(e)?!0:od(t,`Expected to be a valid UUID v4 (got ${l1(e)})`)})}function uVi(){return dh({test:(e,t)=>gkr.test(e)?!0:od(t,`Expected to be a valid ISO 8601 date string (got ${l1(e)})`)})}function fVi({alpha:e=!1}){return dh({test:(t,r)=>(e?BJi.test(t):xJi.test(t))?!0:od(r,`Expected to be a valid hexadecimal color string (got ${l1(t)})`)})}function pVi(){return dh({test:(e,t)=>NJi.test(e)?!0:od(t,`Expected to be a valid base 64 string (got ${l1(e)})`)})}function dVi(e=Pxt()){return dh({test:(t,r)=>{let s;try{s=JSON.parse(t)}catch{return od(r,`Expected to be a valid JSON string (got ${l1(t)})`)}return e(s,r)}})}function Skr(e,...t){let r=Array.isArray(t[0])?t[0]:t;return dh({test:(s,c)=>{var o,f;let _={value:s},A=typeof c?.coercions<"u"?Cj(_,"value"):void 0,y=typeof c?.coercions<"u"?[]:void 0;if(!e(s,Object.assign(Object.assign({},c),{coercion:A,coercions:y})))return!1;let I=[];if(typeof y<"u")for(let[,D]of y)I.push(D());try{if(typeof c?.coercions<"u"){if(_.value!==s){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,_.value)])}(f=c?.coercions)===null||f===void 0||f.push(...y)}return r.every(D=>D(_.value,c))}finally{for(let D of I)D()}}})}function _Vi(e,...t){let r=Array.isArray(t[0])?t[0]:t;return Skr(e,r)}function AVi(e){return dh({test:(t,r)=>typeof t>"u"?!0:e(t,r)})}function hVi(e){return dh({test:(t,r)=>t===null?!0:e(t,r)})}function mVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)||A.push(y);return A.length>0?od(f,`Missing required ${kxt(A.length,"property","properties")} ${bge(A,"and")}`):!0}})}function gVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>Object.keys(o).some(y=>c(s,y,o))?!0:od(f,`Missing at least one property from ${bge(Array.from(s),"or")}`)})}function EVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)&&A.push(y);return A.length>0?od(f,`Forbidden ${kxt(A.length,"property","properties")} ${bge(A,"and")}`):!0}})}function yVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)&&A.push(y);return A.length>1?od(f,`Mutually exclusive properties ${bge(A,"and")}`):!0}})}function IVi(e,t,r,s){var c,o;let f=new Set((c=s?.ignore)!==null&&c!==void 0?c:[]),_=ZNe[(o=s?.missingIf)!==null&&o!==void 0?o:"missing"],A=new Set(r),y=CVi[t],I=t===Dge.Forbids?"or":"and";return dh({test:(D,b)=>{let L=new Set(Object.keys(D));if(!_(L,e,D)||f.has(D[e]))return!0;let x=[];for(let J of A)(_(L,J,D)&&!f.has(D[J]))!==y.expect&&x.push(J);return x.length>=1?od(b,`Property "${e}" ${y.message} ${kxt(x.length,"property","properties")} ${bge(x,I)}`):!0}})}var wJi,BJi,xJi,NJi,RJi,gkr,PJi,HJi,qJi,see,ZNe,Dge,CVi,aF=sc(()=>{wJi=/^[a-zA-Z_][a-zA-Z0-9_]*$/;BJi=/^#[0-9a-f]{6}$/i,xJi=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i,NJi=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,RJi=/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/i,gkr=/^(?:[1-9]\d{3}(-?)(?:(?:0[1-9]|1[0-2])\1(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])\1(?:29|30)|(?:0[13578]|1[02])(?:\1)31|00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[0-5]))|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)(?:(-?)02(?:\2)29|-?366))T(?:[01]\d|2[0-3])(:?)[0-5]\d(?:\3[0-5]\d)?(?:Z|[+-][01]\d(?:\3[0-5]\d)?)$/;PJi=new Map([["true",!0],["True",!0],["1",!0],[1,!0],["false",!1],["False",!1],["0",!1],[0,!1]]);HJi=e=>dh({test:(t,r)=>t instanceof e?!0:od(r,`Expected an instance of ${e.name} (got ${l1(t)})`)}),qJi=(e,{exclusive:t=!1}={})=>dh({test:(r,s)=>{var c,o,f;let _=[],A=typeof s?.errors<"u"?[]:void 0;for(let y=0,I=e.length;y1?od(s,`Expected to match exactly a single predicate (matched ${_.join(", ")})`):(f=s?.errors)===null||f===void 0||f.push(...A),!1}});see=class extends Error{constructor({errors:t}={}){let r="Type mismatch";if(t&&t.length>0){r+=`
+- ${eYe(r)}`).join("")}`)}function Uae(e,t,r){if(typeof r>"u")return t;let s=[],c=[],o=_=>{let A=t;return t=_,o.bind(null,A)};if(!r(t,{errors:s,coercions:c,coercion:o}))throw KNe(`Invalid value for ${e}`,s);for(let[,_]of c)_();return t}var zNe,NW=sc(()=>{$We();zNe=Symbol("clipanion/isOption")});var oF={};ih(oF,{KeyRelationship:()=>Dge,TypeAssertionError:()=>see,applyCascade:()=>pVi,as:()=>VJi,assert:()=>HJi,assertWithErrors:()=>qJi,cascade:()=>Ikr,fn:()=>WJi,hasAtLeastOneKey:()=>hVi,hasExactLength:()=>Ckr,hasForbiddenKeys:()=>mVi,hasKeyRelationship:()=>yVi,hasMaxLength:()=>zJi,hasMinLength:()=>YJi,hasMutuallyExclusiveKeys:()=>gVi,hasRequiredKeys:()=>AVi,hasUniqueItems:()=>KJi,isArray:()=>tYe,isAtLeast:()=>$Ji,isAtMost:()=>eVi,isBase64:()=>uVi,isBoolean:()=>kJi,isDate:()=>FJi,isDict:()=>MJi,isEnum:()=>kxt,isHexColor:()=>lVi,isISO8601:()=>cVi,isInExclusiveRange:()=>rVi,isInInclusiveRange:()=>tVi,isInstanceOf:()=>GJi,isInteger:()=>nVi,isJSON:()=>fVi,isLiteral:()=>mkr,isLowerCase:()=>sVi,isMap:()=>QJi,isNegative:()=>XJi,isNullable:()=>_Vi,isNumber:()=>PJi,isObject:()=>Ekr,isOneOf:()=>jJi,isOptional:()=>dVi,isPartial:()=>UJi,isPayload:()=>OJi,isPositive:()=>ZJi,isRecord:()=>nYe,isSet:()=>LJi,isString:()=>gkr,isTuple:()=>rYe,isUUID4:()=>aVi,isUnknown:()=>Rxt,isUpperCase:()=>oVi,makeTrait:()=>ykr,makeValidator:()=>dh,matchesRegExp:()=>iVi,softAssert:()=>JJi});function l1(e){return e===null?"null":e===void 0?"undefined":e===""?"an empty string":typeof e=="symbol"?`<${e.toString()}>`:Array.isArray(e)?"an array":JSON.stringify(e)}function bge(e,t){if(e.length===0)return"nothing";if(e.length===1)return l1(e[0]);let r=e.slice(0,-1),s=e[e.length-1],c=e.length>2?`, ${t} `:` ${t} `;return`${r.map(o=>l1(o)).join(", ")}${c}${l1(s)}`}function iee(e,t){var r,s,c;return typeof t=="number"?`${(r=e?.p)!==null&&r!==void 0?r:"."}[${t}]`:DJi.test(t)?`${(s=e?.p)!==null&&s!==void 0?s:""}.${t}`:`${(c=e?.p)!==null&&c!==void 0?c:"."}[${JSON.stringify(t)}]`}function Nxt(e,t,r){return e===1?t:r}function od({errors:e,p:t}={},r){return e?.push(`${t??"."}: ${r}`),!1}function NJi(e,t){return r=>{e[t]=r}}function Cj(e,t){return r=>{let s=e[t];return e[t]=r,Cj(e,t).bind(null,s)}}function XNe(e,t,r){let s=()=>(e(r()),c),c=()=>(e(t),s);return s}function Rxt(){return dh({test:(e,t)=>!0})}function mkr(e){return dh({test:(t,r)=>t!==e?od(r,`Expected ${l1(e)} (got ${l1(t)})`):!0})}function gkr(){return dh({test:(e,t)=>typeof e!="string"?od(t,`Expected a string (got ${l1(e)})`):!0})}function kxt(e){let t=Array.isArray(e)?e:Object.values(e),r=t.every(c=>typeof c=="string"||typeof c=="number"),s=new Set(t);return s.size===1?mkr([...s][0]):dh({test:(c,o)=>s.has(c)?!0:r?od(o,`Expected one of ${bge(t,"or")} (got ${l1(c)})`):od(o,`Expected a valid enumeration value (got ${l1(c)})`)})}function kJi(){return dh({test:(e,t)=>{var r;if(typeof e!="boolean"){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s=RJi.get(e);if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a boolean (got ${l1(e)})`)}return!0}})}function PJi(){return dh({test:(e,t)=>{var r;if(typeof e!="number"){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s;if(typeof e=="string"){let c;try{c=JSON.parse(e)}catch{}if(typeof c=="number")if(JSON.stringify(c)===e)s=c;else return od(t,`Received a number that can't be safely represented by the runtime (${e})`)}if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a number (got ${l1(e)})`)}return!0}})}function OJi(e){return dh({test:(t,r)=>{var s;if(typeof r?.coercions>"u")return od(r,"The isPayload predicate can only be used with coercion enabled");if(typeof r.coercion>"u")return od(r,"Unbound coercion result");if(typeof t!="string")return od(r,`Expected a string (got ${l1(t)})`);let c;try{c=JSON.parse(t)}catch{return od(r,`Expected a JSON string (got ${l1(t)})`)}let o={value:c};return e(c,Object.assign(Object.assign({},r),{coercion:Cj(o,"value")}))?(r.coercions.push([(s=r.p)!==null&&s!==void 0?s:".",r.coercion.bind(null,o.value)]),!0):!1}})}function FJi(){return dh({test:(e,t)=>{var r;if(!(e instanceof Date)){if(typeof t?.coercions<"u"){if(typeof t?.coercion>"u")return od(t,"Unbound coercion result");let s;if(typeof e=="string"&&hkr.test(e))s=new Date(e);else{let c;if(typeof e=="string"){let o;try{o=JSON.parse(e)}catch{}typeof o=="number"&&(c=o)}else typeof e=="number"&&(c=e);if(typeof c<"u")if(Number.isSafeInteger(c)||!Number.isSafeInteger(c*1e3))s=new Date(c*1e3);else return od(t,`Received a timestamp that can't be safely represented by the runtime (${e})`)}if(typeof s<"u")return t.coercions.push([(r=t.p)!==null&&r!==void 0?r:".",t.coercion.bind(null,s)]),!0}return od(t,`Expected a date (got ${l1(e)})`)}return!0}})}function tYe(e,{delimiter:t}={}){return dh({test:(r,s)=>{var c;let o=r;if(typeof r=="string"&&typeof t<"u"&&typeof s?.coercions<"u"){if(typeof s?.coercion>"u")return od(s,"Unbound coercion result");r=r.split(t)}if(!Array.isArray(r))return od(s,`Expected an array (got ${l1(r)})`);let f=!0;for(let _=0,A=r.length;_{var o,f;if(Object.getPrototypeOf(s).toString()==="[object Set]")if(typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");let _=[...s],A=[...s];if(!r(A,Object.assign(Object.assign({},c),{coercion:void 0})))return!1;let y=()=>A.some((I,D)=>I!==_[D])?new Set(A):s;return c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",XNe(c.coercion,s,y)]),!0}else{let _=!0;for(let A of s)if(_=e(A,Object.assign({},c))&&_,!_&&c?.errors==null)break;return _}if(typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");let _={value:s};return r(s,Object.assign(Object.assign({},c),{coercion:Cj(_,"value")}))?(c.coercions.push([(f=c.p)!==null&&f!==void 0?f:".",XNe(c.coercion,s,()=>new Set(_.value))]),!0):!1}return od(c,`Expected a set (got ${l1(s)})`)}})}function QJi(e,t){let r=tYe(rYe([e,t])),s=nYe(t,{keys:e});return dh({test:(c,o)=>{var f,_,A;if(Object.getPrototypeOf(c).toString()==="[object Map]")if(typeof o?.coercions<"u"){if(typeof o?.coercion>"u")return od(o,"Unbound coercion result");let y=[...c],I=[...c];if(!r(I,Object.assign(Object.assign({},o),{coercion:void 0})))return!1;let D=()=>I.some((b,L)=>b[0]!==y[L][0]||b[1]!==y[L][1])?new Map(I):c;return o.coercions.push([(f=o.p)!==null&&f!==void 0?f:".",XNe(o.coercion,c,D)]),!0}else{let y=!0;for(let[I,D]of c)if(y=e(I,Object.assign({},o))&&y,!y&&o?.errors==null||(y=t(D,Object.assign(Object.assign({},o),{p:iee(o,I)}))&&y,!y&&o?.errors==null))break;return y}if(typeof o?.coercions<"u"){if(typeof o?.coercion>"u")return od(o,"Unbound coercion result");let y={value:c};return Array.isArray(c)?r(c,Object.assign(Object.assign({},o),{coercion:void 0}))?(o.coercions.push([(_=o.p)!==null&&_!==void 0?_:".",XNe(o.coercion,c,()=>new Map(y.value))]),!0):!1:s(c,Object.assign(Object.assign({},o),{coercion:Cj(y,"value")}))?(o.coercions.push([(A=o.p)!==null&&A!==void 0?A:".",XNe(o.coercion,c,()=>new Map(Object.entries(y.value)))]),!0):!1}return od(o,`Expected a map (got ${l1(c)})`)}})}function rYe(e,{delimiter:t}={}){let r=Ckr(e.length);return dh({test:(s,c)=>{var o;if(typeof s=="string"&&typeof t<"u"&&typeof c?.coercions<"u"){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");s=s.split(t),c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,s)])}if(!Array.isArray(s))return od(c,`Expected a tuple (got ${l1(s)})`);let f=r(s,Object.assign({},c));for(let _=0,A=s.length;_{var o;if(Array.isArray(s)&&typeof c?.coercions<"u")return typeof c?.coercion>"u"?od(c,"Unbound coercion result"):r(s,Object.assign(Object.assign({},c),{coercion:void 0}))?(s=Object.fromEntries(s),c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,s)]),!0):!1;if(typeof s!="object"||s===null)return od(c,`Expected an object (got ${l1(s)})`);let f=Object.keys(s),_=!0;for(let A=0,y=f.length;A{if(typeof c!="object"||c===null)return od(o,`Expected an object (got ${l1(c)})`);let f=new Set([...r,...Object.keys(c)]),_={},A=!0;for(let y of f){if(y==="constructor"||y==="__proto__")A=od(Object.assign(Object.assign({},o),{p:iee(o,y)}),"Unsafe property name");else{let I=Object.prototype.hasOwnProperty.call(e,y)?e[y]:void 0,D=Object.prototype.hasOwnProperty.call(c,y)?c[y]:void 0;typeof I<"u"?A=I(D,Object.assign(Object.assign({},o),{p:iee(o,y),coercion:Cj(c,y)}))&&A:t===null?A=od(Object.assign(Object.assign({},o),{p:iee(o,y)}),`Extraneous property (got ${l1(D)})`):Object.defineProperty(_,y,{enumerable:!0,get:()=>D,set:NJi(c,y)})}if(!A&&o?.errors==null)break}return t!==null&&(A||o?.errors!=null)&&(A=t(_,o)&&A),A}});return Object.assign(s,{properties:e})}function UJi(e){return Ekr(e,{extra:nYe(Rxt())})}function ykr(e){return()=>e}function dh({test:e}){return ykr(e)()}function HJi(e,t){if(!t(e))throw new see}function qJi(e,t){let r=[];if(!t(e,{errors:r}))throw new see({errors:r})}function JJi(e,t){}function VJi(e,t,{coerce:r=!1,errors:s,throw:c}={}){let o=s?[]:void 0;if(!r){if(t(e,{errors:o}))return c?e:{value:e,errors:void 0};if(c)throw new see({errors:o});return{value:void 0,errors:o??!0}}let f={value:e},_=Cj(f,"value"),A=[];if(!t(e,{errors:o,coercion:_,coercions:A})){if(c)throw new see({errors:o});return{value:void 0,errors:o??!0}}for(let[,y]of A)y();return c?f.value:{value:f.value,errors:void 0}}function WJi(e,t){let r=rYe(e);return(...s)=>{if(!r(s))throw new see;return t(...s)}}function YJi(e){return dh({test:(t,r)=>t.length>=e?!0:od(r,`Expected to have a length of at least ${e} elements (got ${t.length})`)})}function zJi(e){return dh({test:(t,r)=>t.length<=e?!0:od(r,`Expected to have a length of at most ${e} elements (got ${t.length})`)})}function Ckr(e){return dh({test:(t,r)=>t.length!==e?od(r,`Expected to have a length of exactly ${e} elements (got ${t.length})`):!0})}function KJi({map:e}={}){return dh({test:(t,r)=>{let s=new Set,c=new Set;for(let o=0,f=t.length;oe<=0?!0:od(t,`Expected to be negative (got ${e})`)})}function ZJi(){return dh({test:(e,t)=>e>=0?!0:od(t,`Expected to be positive (got ${e})`)})}function $Ji(e){return dh({test:(t,r)=>t>=e?!0:od(r,`Expected to be at least ${e} (got ${t})`)})}function eVi(e){return dh({test:(t,r)=>t<=e?!0:od(r,`Expected to be at most ${e} (got ${t})`)})}function tVi(e,t){return dh({test:(r,s)=>r>=e&&r<=t?!0:od(s,`Expected to be in the [${e}; ${t}] range (got ${r})`)})}function rVi(e,t){return dh({test:(r,s)=>r>=e&&rt!==Math.round(t)?od(r,`Expected to be an integer (got ${t})`):!e&&!Number.isSafeInteger(t)?od(r,`Expected to be a safe integer (got ${t})`):!0})}function iVi(e){return dh({test:(t,r)=>e.test(t)?!0:od(r,`Expected to match the pattern ${e.toString()} (got ${l1(t)})`)})}function sVi(){return dh({test:(e,t)=>e!==e.toLowerCase()?od(t,`Expected to be all-lowercase (got ${e})`):!0})}function oVi(){return dh({test:(e,t)=>e!==e.toUpperCase()?od(t,`Expected to be all-uppercase (got ${e})`):!0})}function aVi(){return dh({test:(e,t)=>xJi.test(e)?!0:od(t,`Expected to be a valid UUID v4 (got ${l1(e)})`)})}function cVi(){return dh({test:(e,t)=>hkr.test(e)?!0:od(t,`Expected to be a valid ISO 8601 date string (got ${l1(e)})`)})}function lVi({alpha:e=!1}){return dh({test:(t,r)=>(e?bJi.test(t):wJi.test(t))?!0:od(r,`Expected to be a valid hexadecimal color string (got ${l1(t)})`)})}function uVi(){return dh({test:(e,t)=>BJi.test(e)?!0:od(t,`Expected to be a valid base 64 string (got ${l1(e)})`)})}function fVi(e=Rxt()){return dh({test:(t,r)=>{let s;try{s=JSON.parse(t)}catch{return od(r,`Expected to be a valid JSON string (got ${l1(t)})`)}return e(s,r)}})}function Ikr(e,...t){let r=Array.isArray(t[0])?t[0]:t;return dh({test:(s,c)=>{var o,f;let _={value:s},A=typeof c?.coercions<"u"?Cj(_,"value"):void 0,y=typeof c?.coercions<"u"?[]:void 0;if(!e(s,Object.assign(Object.assign({},c),{coercion:A,coercions:y})))return!1;let I=[];if(typeof y<"u")for(let[,D]of y)I.push(D());try{if(typeof c?.coercions<"u"){if(_.value!==s){if(typeof c?.coercion>"u")return od(c,"Unbound coercion result");c.coercions.push([(o=c.p)!==null&&o!==void 0?o:".",c.coercion.bind(null,_.value)])}(f=c?.coercions)===null||f===void 0||f.push(...y)}return r.every(D=>D(_.value,c))}finally{for(let D of I)D()}}})}function pVi(e,...t){let r=Array.isArray(t[0])?t[0]:t;return Ikr(e,r)}function dVi(e){return dh({test:(t,r)=>typeof t>"u"?!0:e(t,r)})}function _Vi(e){return dh({test:(t,r)=>t===null?!0:e(t,r)})}function AVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)||A.push(y);return A.length>0?od(f,`Missing required ${Nxt(A.length,"property","properties")} ${bge(A,"and")}`):!0}})}function hVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>Object.keys(o).some(y=>c(s,y,o))?!0:od(f,`Missing at least one property from ${bge(Array.from(s),"or")}`)})}function mVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)&&A.push(y);return A.length>0?od(f,`Forbidden ${Nxt(A.length,"property","properties")} ${bge(A,"and")}`):!0}})}function gVi(e,t){var r;let s=new Set(e),c=ZNe[(r=t?.missingIf)!==null&&r!==void 0?r:"missing"];return dh({test:(o,f)=>{let _=new Set(Object.keys(o)),A=[];for(let y of s)c(_,y,o)&&A.push(y);return A.length>1?od(f,`Mutually exclusive properties ${bge(A,"and")}`):!0}})}function yVi(e,t,r,s){var c,o;let f=new Set((c=s?.ignore)!==null&&c!==void 0?c:[]),_=ZNe[(o=s?.missingIf)!==null&&o!==void 0?o:"missing"],A=new Set(r),y=EVi[t],I=t===Dge.Forbids?"or":"and";return dh({test:(D,b)=>{let L=new Set(Object.keys(D));if(!_(L,e,D)||f.has(D[e]))return!0;let x=[];for(let J of A)(_(L,J,D)&&!f.has(D[J]))!==y.expect&&x.push(J);return x.length>=1?od(b,`Property "${e}" ${y.message} ${Nxt(x.length,"property","properties")} ${bge(x,I)}`):!0}})}var DJi,bJi,wJi,BJi,xJi,hkr,RJi,GJi,jJi,see,ZNe,Dge,EVi,aF=sc(()=>{DJi=/^[a-zA-Z_][a-zA-Z0-9_]*$/;bJi=/^#[0-9a-f]{6}$/i,wJi=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i,BJi=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,xJi=/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/i,hkr=/^(?:[1-9]\d{3}(-?)(?:(?:0[1-9]|1[0-2])\1(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])\1(?:29|30)|(?:0[13578]|1[02])(?:\1)31|00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[0-5]))|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)(?:(-?)02(?:\2)29|-?366))T(?:[01]\d|2[0-3])(:?)[0-5]\d(?:\3[0-5]\d)?(?:Z|[+-][01]\d(?:\3[0-5]\d)?)$/;RJi=new Map([["true",!0],["True",!0],["1",!0],[1,!0],["false",!1],["False",!1],["0",!1],[0,!1]]);GJi=e=>dh({test:(t,r)=>t instanceof e?!0:od(r,`Expected an instance of ${e.name} (got ${l1(t)})`)}),jJi=(e,{exclusive:t=!1}={})=>dh({test:(r,s)=>{var c,o,f;let _=[],A=typeof s?.errors<"u"?[]:void 0;for(let y=0,I=e.length;y1?od(s,`Expected to match exactly a single predicate (matched ${_.join(", ")})`):(f=s?.errors)===null||f===void 0||f.push(...A),!1}});see=class extends Error{constructor({errors:t}={}){let r="Type mismatch";if(t&&t.length>0){r+=`
`;for(let s of t)r+=`
-- ${s}`}super(r)}};ZNe={missing:(e,t)=>e.has(t),undefined:(e,t,r)=>e.has(t)&&typeof r[t]<"u",nil:(e,t,r)=>e.has(t)&&r[t]!=null,falsy:(e,t,r)=>e.has(t)&&!!r[t]};(function(e){e.Forbids="Forbids",e.Requires="Requires"})(Dge||(Dge={}));CVi={[Dge.Forbids]:{expect:!1,message:"forbids using"},[Dge.Requires]:{expect:!0,message:"requires using"}}});var yI,oee=sc(()=>{NW();yI=class{constructor(){this.help=!1}static Usage(t){return t}async catch(t){throw t}async validateAndExecute(){let r=this.constructor.schema;if(Array.isArray(r)){let{isDict:c,isUnknown:o,applyCascade:f}=await Promise.resolve().then(()=>(aF(),oF)),_=f(c(o()),r),A=[],y=[];if(!_(this,{errors:A,coercions:y}))throw KNe("Invalid option schema",A);for(let[,D]of y)D()}else if(r!=null)throw new Error("Invalid command schema");let s=await this.execute();return typeof s<"u"?s:0}};yI.isOption=zNe;yI.Default=[]});function cF(e){Bxt&&console.log(e)}function Dkr(){let e={nodes:[]};for(let t=0;t{if(t.has(s))return;t.add(s);let c=e.nodes[s];for(let f of Object.values(c.statics))for(let{to:_}of f)r(_);for(let[,{to:f}]of c.dynamics)r(f);for(let{to:f}of c.shortcuts)r(f);let o=new Set(c.shortcuts.map(({to:f})=>f));for(;c.shortcuts.length>0;){let{to:f}=c.shortcuts.shift(),_=e.nodes[f];for(let[A,y]of Object.entries(_.statics)){let I=Object.prototype.hasOwnProperty.call(c.statics,A)?c.statics[A]:c.statics[A]=[];for(let D of y)I.some(({to:b})=>D.to===b)||I.push(D)}for(let[A,y]of _.dynamics)c.dynamics.some(([I,{to:D}])=>A===I&&y.to===D)||c.dynamics.push([A,y]);for(let A of _.shortcuts)o.has(A.to)||(c.shortcuts.push(A),o.add(A.to))}};r(Gg.InitialNode)}function vVi(e,{prefix:t=""}={}){if(Bxt){cF(`${t}Nodes are:`);for(let r=0;rI!==Gg.ErrorNode).map(({state:I})=>({usage:I.candidateUsage,reason:null})));if(y.every(({node:I})=>I===Gg.ErrorNode))throw new vge(t,y.map(({state:I})=>({usage:I.candidateUsage,reason:I.errorMessage})));s=wVi(y)}if(s.length>0){cF(" Results:");for(let o of s)cF(` - ${o.node} -> ${JSON.stringify(o.state)}`)}else cF(" No results");return s}function bVi(e,t,{endToken:r=c1.EndOfInput}={}){let s=DVi(e,[...t,r]);return BVi(t,s.map(({state:c})=>c))}function wVi(e){let t=0;for(let{state:r}of e)r.path.length>t&&(t=r.path.length);return e.filter(({state:r})=>r.path.length===t)}function BVi(e,t){let r=t.filter(b=>b.selectedIndex!==null),s=r.filter(b=>!b.partial);if(s.length>0&&(r=s),r.length===0)throw new Error;let c=r.filter(b=>b.selectedIndex===Qae||b.requiredOptions.every(L=>L.some(x=>b.options.find(J=>J.name===x))));if(c.length===0)throw new vge(e,r.map(b=>({usage:b.candidateUsage,reason:null})));let o=0;for(let b of c)b.path.length>o&&(o=b.path.length);let f=c.filter(b=>b.path.length===o),_=b=>b.positionals.filter(({extra:L})=>!L).length+b.options.length,A=f.map(b=>({state:b,positionalCount:_(b)})),y=0;for(let{positionalCount:b}of A)b>y&&(y=b);let I=A.filter(({positionalCount:b})=>b===y).map(({state:b})=>b),D=xVi(I);if(D.length>1)throw new ZWe(e,D.map(b=>b.candidateUsage));return D[0]}function xVi(e){let t=[],r=[];for(let s of e)s.selectedIndex===Qae?r.push(s):t.push(s);return r.length>0&&t.push({...vkr,path:bkr(...r.map(s=>s.path)),options:r.reduce((s,c)=>s.concat(c.options),[])}),t}function bkr(e,t,...r){return t===void 0?Array.from(e):bkr(e.filter((s,c)=>s===t[c]),...r)}function MQ(){return{dynamics:[],shortcuts:[],statics:{}}}function wkr(e){return e===Gg.SuccessNode||e===Gg.ErrorNode}function Fxt(e,t=0){return{to:wkr(e.to)?e.to:e.to>=Gg.CustomNode?e.to+t-Gg.CustomNode+1:e.to+t,reducer:e.reducer}}function NVi(e,t=0){let r=MQ();for(let[s,c]of e.dynamics)r.dynamics.push([s,Fxt(c,t)]);for(let s of e.shortcuts)r.shortcuts.push(Fxt(s,t));for(let[s,c]of Object.entries(e.statics))r.statics[s]=c.map(o=>Fxt(o,t));return r}function pB(e,t,r,s,c){e.nodes[t].dynamics.push([r,{to:s,reducer:c}])}function wge(e,t,r,s){e.nodes[t].shortcuts.push({to:r,reducer:s})}function aP(e,t,r,s,c){(Object.prototype.hasOwnProperty.call(e.nodes[t].statics,r)?e.nodes[t].statics[r]:e.nodes[t].statics[r]=[]).push({to:s,reducer:c})}function iYe(e,t,r,s,c){if(Array.isArray(t)){let[o,...f]=t;return e[o](r,s,c,...f)}else return e[t](r,s,c)}var vkr,RVi,Lxt,UQ,Qxt,sYe,oYe=sc(()=>{XWe();$We();vkr={candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,path:[],positionals:[],options:[],remainder:null,selectedIndex:Qae,partial:!1,tokens:[]};RVi={always:()=>!0,isOptionLike:(e,t)=>!e.ignoreOptions&&t!=="-"&&t.startsWith("-"),isNotOptionLike:(e,t)=>e.ignoreOptions||t==="-"||!t.startsWith("-"),isOption:(e,t,r,s)=>!e.ignoreOptions&&t===s,isBatchOption:(e,t,r,s)=>!e.ignoreOptions&&Akr.test(t)&&[...t.slice(1)].every(c=>s.has(`-${c}`)),isBoundOption:(e,t,r,s,c)=>{let o=t.match(wxt);return!e.ignoreOptions&&!!o&&KWe.test(o[1])&&s.has(o[1])&&c.filter(f=>f.nameSet.includes(o[1])).every(f=>f.allowBinding)},isNegatedOption:(e,t,r,s)=>!e.ignoreOptions&&t===`--no-${s.slice(2)}`,isHelp:(e,t)=>!e.ignoreOptions&&bxt.test(t),isUnsupportedOption:(e,t,r,s)=>!e.ignoreOptions&&t.startsWith("-")&&KWe.test(t)&&!s.has(t),isInvalidOption:(e,t)=>!e.ignoreOptions&&t.startsWith("-")&&!KWe.test(t)},Lxt={setCandidateState:(e,t,r,s)=>({...e,...s}),setSelectedIndex:(e,t,r,s)=>({...e,selectedIndex:s}),setPartialIndex:(e,t,r,s)=>({...e,selectedIndex:s,partial:!0}),pushBatch:(e,t,r,s)=>{let c=e.options.slice(),o=e.tokens.slice();for(let f=1;f{let[,s,c]=t.match(wxt),o=e.options.concat({name:s,value:c}),f=e.tokens.concat([{segmentIndex:r,type:"option",slice:[0,s.length],option:s},{segmentIndex:r,type:"assign",slice:[s.length,s.length+1]},{segmentIndex:r,type:"value",slice:[s.length+1,s.length+c.length+1]}]);return{...e,options:o,tokens:f}},pushPath:(e,t,r)=>{let s=e.path.concat(t),c=e.tokens.concat({segmentIndex:r,type:"path"});return{...e,path:s,tokens:c}},pushPositional:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:!1}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushExtra:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:!0}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushExtraNoLimits:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:UQ}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushTrue:(e,t,r,s)=>{let c=e.options.concat({name:s,value:!0}),o=e.tokens.concat({segmentIndex:r,type:"option",option:s});return{...e,options:c,tokens:o}},pushFalse:(e,t,r,s)=>{let c=e.options.concat({name:s,value:!1}),o=e.tokens.concat({segmentIndex:r,type:"option",option:s});return{...e,options:c,tokens:o}},pushUndefined:(e,t,r,s)=>{let c=e.options.concat({name:t,value:void 0}),o=e.tokens.concat({segmentIndex:r,type:"option",option:t});return{...e,options:c,tokens:o}},pushStringValue:(e,t,r)=>{var s;let c=e.options[e.options.length-1],o=e.options.slice(),f=e.tokens.concat({segmentIndex:r,type:"value"});return c.value=((s=c.value)!==null&&s!==void 0?s:[]).concat([t]),{...e,options:o,tokens:f}},setStringValue:(e,t,r)=>{let s=e.options[e.options.length-1],c=e.options.slice(),o=e.tokens.concat({segmentIndex:r,type:"value"});return s.value=t,{...e,options:c,tokens:o}},inhibateOptions:e=>({...e,ignoreOptions:!0}),useHelp:(e,t,r,s)=>{let[,,c]=t.match(bxt);return typeof c<"u"?{...e,options:[{name:"-c",value:String(s)},{name:"-i",value:c}]}:{...e,options:[{name:"-c",value:String(s)}]}},setError:(e,t,r,s)=>t===c1.EndOfInput||t===c1.EndOfPartialInput?{...e,errorMessage:`${s}.`}:{...e,errorMessage:`${s} ("${t}").`},setOptionArityError:(e,t)=>{let r=e.options[e.options.length-1];return{...e,errorMessage:`Not enough arguments to option ${r.name}.`}}},UQ=Symbol(),Qxt=class{constructor(t,r){this.allOptionNames=new Map,this.arity={leading:[],trailing:[],extra:[],proxy:!1},this.options=[],this.paths=[],this.cliIndex=t,this.cliOpts=r}addPath(t){this.paths.push(t)}setArity({leading:t=this.arity.leading,trailing:r=this.arity.trailing,extra:s=this.arity.extra,proxy:c=this.arity.proxy}){Object.assign(this.arity,{leading:t,trailing:r,extra:s,proxy:c})}addPositional({name:t="arg",required:r=!0}={}){if(!r&&this.arity.extra===UQ)throw new Error("Optional parameters cannot be declared when using .rest() or .proxy()");if(!r&&this.arity.trailing.length>0)throw new Error("Optional parameters cannot be declared after the required trailing positional arguments");!r&&this.arity.extra!==UQ?this.arity.extra.push(t):this.arity.extra!==UQ&&this.arity.extra.length===0?this.arity.leading.push(t):this.arity.trailing.push(t)}addRest({name:t="arg",required:r=0}={}){if(this.arity.extra===UQ)throw new Error("Infinite lists cannot be declared multiple times in the same command");if(this.arity.trailing.length>0)throw new Error("Infinite lists cannot be declared after the required trailing positional arguments");for(let s=0;s1)throw new Error("The arity cannot be higher than 1 when the option only supports the --arg=value syntax");if(!Number.isInteger(s))throw new Error(`The arity must be an integer, got ${s}`);if(s<0)throw new Error(`The arity must be positive, got ${s}`);let _=t.reduce((A,y)=>y.length>A.length?y:A,"");for(let A of t)this.allOptionNames.set(A,_);this.options.push({preferredName:_,nameSet:t,description:r,arity:s,hidden:c,required:o,allowBinding:f})}setContext(t){this.context=t}usage({detailed:t=!0,inlineOptions:r=!0}={}){let s=[this.cliOpts.binaryName],c=[];if(this.paths.length>0&&s.push(...this.paths[0]),t){for(let{preferredName:f,nameSet:_,arity:A,hidden:y,description:I,required:D}of this.options){if(y)continue;let b=[];for(let x=0;x`:`[${L}]`)}s.push(...this.arity.leading.map(f=>`<${f}>`)),this.arity.extra===UQ?s.push("..."):s.push(...this.arity.extra.map(f=>`[${f}]`)),s.push(...this.arity.trailing.map(f=>`<${f}>`))}return{usage:s.join(" "),options:c}}compile(){if(typeof this.context>"u")throw new Error("Assertion failed: No context attached");let t=Dkr(),r=Gg.InitialNode,s=this.usage().usage,c=this.options.filter(_=>_.required).map(_=>_.nameSet);r=D5(t,MQ()),aP(t,Gg.InitialNode,c1.StartOfInput,r,["setCandidateState",{candidateUsage:s,requiredOptions:c}]);let o=this.arity.proxy?"always":"isNotOptionLike",f=this.paths.length>0?this.paths:[[]];for(let _ of f){let A=r;if(_.length>0){let b=D5(t,MQ());wge(t,A,b),this.registerOptions(t,b),A=b}for(let b=0;b<_.length;++b){let L=D5(t,MQ());aP(t,A,_[b],L,"pushPath"),A=L}if(this.arity.leading.length>0||!this.arity.proxy){let b=D5(t,MQ());pB(t,A,"isHelp",b,["useHelp",this.cliIndex]),pB(t,b,"always",b,"pushExtra"),aP(t,b,c1.EndOfInput,Gg.SuccessNode,["setSelectedIndex",Qae]),this.registerOptions(t,A)}this.arity.leading.length>0&&(aP(t,A,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,A,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex]));let y=A;for(let b=0;b0||b+1!==this.arity.leading.length)&&(aP(t,L,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,L,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex])),pB(t,y,"isNotOptionLike",L,"pushPositional"),y=L}let I=y;if(this.arity.extra===UQ||this.arity.extra.length>0){let b=D5(t,MQ());if(wge(t,y,b),this.arity.extra===UQ){let L=D5(t,MQ());this.arity.proxy||this.registerOptions(t,L),pB(t,y,o,L,"pushExtraNoLimits"),pB(t,L,o,L,"pushExtraNoLimits"),wge(t,L,b)}else for(let L=0;L0)&&this.registerOptions(t,x),pB(t,I,o,x,"pushExtra"),wge(t,x,b),I=x}I=b}this.arity.trailing.length>0&&(aP(t,I,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,I,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex]));let D=I;for(let b=0;b=0&&t{let f=o?c1.EndOfPartialInput:c1.EndOfInput;return bVi(s,c,{endToken:f})}}}}});import Mxt from"tty";function xkr(){return Mxt&&"getColorDepth"in Mxt.WriteStream.prototype?Mxt.WriteStream.prototype.getColorDepth():process.env.FORCE_COLOR==="0"?1:process.env.FORCE_COLOR==="1"||typeof process.stdout<"u"&&process.stdout.isTTY?8:1}function Nkr(e){let t=Bkr;if(typeof t>"u"){if(e.stdout===process.stdout&&e.stderr===process.stderr)return null;let{AsyncLocalStorage:r}=qt("async_hooks");t=Bkr=new r;let s=process.stdout._write;process.stdout._write=function(o,f,_){let A=t.getStore();return typeof A>"u"?s.call(this,o,f,_):A.stdout.write(o,f,_)};let c=process.stderr._write;process.stderr._write=function(o,f,_){let A=t.getStore();return typeof A>"u"?c.call(this,o,f,_):A.stderr.write(o,f,_)}}return r=>t.run(e,r)}var Bkr,Rkr=sc(()=>{});var aYe,kkr=sc(()=>{oee();aYe=class e extends yI{constructor(t){super(),this.contexts=t,this.commands=[]}static from(t,r){let s=new e(r);s.path=t.path;for(let c of t.options)switch(c.name){case"-c":s.commands.push(Number(c.value));break;case"-i":s.index=Number(c.value);break}return s}async execute(){let t=this.commands;if(typeof this.index<"u"&&this.index>=0&&this.index1){this.context.stdout.write(`Multiple commands match your selection:
+- ${s}`}super(r)}};ZNe={missing:(e,t)=>e.has(t),undefined:(e,t,r)=>e.has(t)&&typeof r[t]<"u",nil:(e,t,r)=>e.has(t)&&r[t]!=null,falsy:(e,t,r)=>e.has(t)&&!!r[t]};(function(e){e.Forbids="Forbids",e.Requires="Requires"})(Dge||(Dge={}));EVi={[Dge.Forbids]:{expect:!1,message:"forbids using"},[Dge.Requires]:{expect:!0,message:"requires using"}}});var yI,oee=sc(()=>{NW();yI=class{constructor(){this.help=!1}static Usage(t){return t}async catch(t){throw t}async validateAndExecute(){let r=this.constructor.schema;if(Array.isArray(r)){let{isDict:c,isUnknown:o,applyCascade:f}=await Promise.resolve().then(()=>(aF(),oF)),_=f(c(o()),r),A=[],y=[];if(!_(this,{errors:A,coercions:y}))throw KNe("Invalid option schema",A);for(let[,D]of y)D()}else if(r!=null)throw new Error("Invalid command schema");let s=await this.execute();return typeof s<"u"?s:0}};yI.isOption=zNe;yI.Default=[]});function cF(e){bxt&&console.log(e)}function Skr(){let e={nodes:[]};for(let t=0;t{if(t.has(s))return;t.add(s);let c=e.nodes[s];for(let f of Object.values(c.statics))for(let{to:_}of f)r(_);for(let[,{to:f}]of c.dynamics)r(f);for(let{to:f}of c.shortcuts)r(f);let o=new Set(c.shortcuts.map(({to:f})=>f));for(;c.shortcuts.length>0;){let{to:f}=c.shortcuts.shift(),_=e.nodes[f];for(let[A,y]of Object.entries(_.statics)){let I=Object.prototype.hasOwnProperty.call(c.statics,A)?c.statics[A]:c.statics[A]=[];for(let D of y)I.some(({to:b})=>D.to===b)||I.push(D)}for(let[A,y]of _.dynamics)c.dynamics.some(([I,{to:D}])=>A===I&&y.to===D)||c.dynamics.push([A,y]);for(let A of _.shortcuts)o.has(A.to)||(c.shortcuts.push(A),o.add(A.to))}};r(Gg.InitialNode)}function TVi(e,{prefix:t=""}={}){if(bxt){cF(`${t}Nodes are:`);for(let r=0;rI!==Gg.ErrorNode).map(({state:I})=>({usage:I.candidateUsage,reason:null})));if(y.every(({node:I})=>I===Gg.ErrorNode))throw new vge(t,y.map(({state:I})=>({usage:I.candidateUsage,reason:I.errorMessage})));s=DVi(y)}if(s.length>0){cF(" Results:");for(let o of s)cF(` - ${o.node} -> ${JSON.stringify(o.state)}`)}else cF(" No results");return s}function vVi(e,t,{endToken:r=c1.EndOfInput}={}){let s=SVi(e,[...t,r]);return bVi(t,s.map(({state:c})=>c))}function DVi(e){let t=0;for(let{state:r}of e)r.path.length>t&&(t=r.path.length);return e.filter(({state:r})=>r.path.length===t)}function bVi(e,t){let r=t.filter(b=>b.selectedIndex!==null),s=r.filter(b=>!b.partial);if(s.length>0&&(r=s),r.length===0)throw new Error;let c=r.filter(b=>b.selectedIndex===Qae||b.requiredOptions.every(L=>L.some(x=>b.options.find(J=>J.name===x))));if(c.length===0)throw new vge(e,r.map(b=>({usage:b.candidateUsage,reason:null})));let o=0;for(let b of c)b.path.length>o&&(o=b.path.length);let f=c.filter(b=>b.path.length===o),_=b=>b.positionals.filter(({extra:L})=>!L).length+b.options.length,A=f.map(b=>({state:b,positionalCount:_(b)})),y=0;for(let{positionalCount:b}of A)b>y&&(y=b);let I=A.filter(({positionalCount:b})=>b===y).map(({state:b})=>b),D=wVi(I);if(D.length>1)throw new ZWe(e,D.map(b=>b.candidateUsage));return D[0]}function wVi(e){let t=[],r=[];for(let s of e)s.selectedIndex===Qae?r.push(s):t.push(s);return r.length>0&&t.push({...Tkr,path:vkr(...r.map(s=>s.path)),options:r.reduce((s,c)=>s.concat(c.options),[])}),t}function vkr(e,t,...r){return t===void 0?Array.from(e):vkr(e.filter((s,c)=>s===t[c]),...r)}function MQ(){return{dynamics:[],shortcuts:[],statics:{}}}function Dkr(e){return e===Gg.SuccessNode||e===Gg.ErrorNode}function Pxt(e,t=0){return{to:Dkr(e.to)?e.to:e.to>=Gg.CustomNode?e.to+t-Gg.CustomNode+1:e.to+t,reducer:e.reducer}}function BVi(e,t=0){let r=MQ();for(let[s,c]of e.dynamics)r.dynamics.push([s,Pxt(c,t)]);for(let s of e.shortcuts)r.shortcuts.push(Pxt(s,t));for(let[s,c]of Object.entries(e.statics))r.statics[s]=c.map(o=>Pxt(o,t));return r}function pB(e,t,r,s,c){e.nodes[t].dynamics.push([r,{to:s,reducer:c}])}function wge(e,t,r,s){e.nodes[t].shortcuts.push({to:r,reducer:s})}function aP(e,t,r,s,c){(Object.prototype.hasOwnProperty.call(e.nodes[t].statics,r)?e.nodes[t].statics[r]:e.nodes[t].statics[r]=[]).push({to:s,reducer:c})}function iYe(e,t,r,s,c){if(Array.isArray(t)){let[o,...f]=t;return e[o](r,s,c,...f)}else return e[t](r,s,c)}var Tkr,xVi,Oxt,UQ,Fxt,sYe,oYe=sc(()=>{XWe();$We();Tkr={candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,path:[],positionals:[],options:[],remainder:null,selectedIndex:Qae,partial:!1,tokens:[]};xVi={always:()=>!0,isOptionLike:(e,t)=>!e.ignoreOptions&&t!=="-"&&t.startsWith("-"),isNotOptionLike:(e,t)=>e.ignoreOptions||t==="-"||!t.startsWith("-"),isOption:(e,t,r,s)=>!e.ignoreOptions&&t===s,isBatchOption:(e,t,r,s)=>!e.ignoreOptions&&dkr.test(t)&&[...t.slice(1)].every(c=>s.has(`-${c}`)),isBoundOption:(e,t,r,s,c)=>{let o=t.match(Dxt);return!e.ignoreOptions&&!!o&&KWe.test(o[1])&&s.has(o[1])&&c.filter(f=>f.nameSet.includes(o[1])).every(f=>f.allowBinding)},isNegatedOption:(e,t,r,s)=>!e.ignoreOptions&&t===`--no-${s.slice(2)}`,isHelp:(e,t)=>!e.ignoreOptions&&vxt.test(t),isUnsupportedOption:(e,t,r,s)=>!e.ignoreOptions&&t.startsWith("-")&&KWe.test(t)&&!s.has(t),isInvalidOption:(e,t)=>!e.ignoreOptions&&t.startsWith("-")&&!KWe.test(t)},Oxt={setCandidateState:(e,t,r,s)=>({...e,...s}),setSelectedIndex:(e,t,r,s)=>({...e,selectedIndex:s}),setPartialIndex:(e,t,r,s)=>({...e,selectedIndex:s,partial:!0}),pushBatch:(e,t,r,s)=>{let c=e.options.slice(),o=e.tokens.slice();for(let f=1;f{let[,s,c]=t.match(Dxt),o=e.options.concat({name:s,value:c}),f=e.tokens.concat([{segmentIndex:r,type:"option",slice:[0,s.length],option:s},{segmentIndex:r,type:"assign",slice:[s.length,s.length+1]},{segmentIndex:r,type:"value",slice:[s.length+1,s.length+c.length+1]}]);return{...e,options:o,tokens:f}},pushPath:(e,t,r)=>{let s=e.path.concat(t),c=e.tokens.concat({segmentIndex:r,type:"path"});return{...e,path:s,tokens:c}},pushPositional:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:!1}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushExtra:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:!0}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushExtraNoLimits:(e,t,r)=>{let s=e.positionals.concat({value:t,extra:UQ}),c=e.tokens.concat({segmentIndex:r,type:"positional"});return{...e,positionals:s,tokens:c}},pushTrue:(e,t,r,s)=>{let c=e.options.concat({name:s,value:!0}),o=e.tokens.concat({segmentIndex:r,type:"option",option:s});return{...e,options:c,tokens:o}},pushFalse:(e,t,r,s)=>{let c=e.options.concat({name:s,value:!1}),o=e.tokens.concat({segmentIndex:r,type:"option",option:s});return{...e,options:c,tokens:o}},pushUndefined:(e,t,r,s)=>{let c=e.options.concat({name:t,value:void 0}),o=e.tokens.concat({segmentIndex:r,type:"option",option:t});return{...e,options:c,tokens:o}},pushStringValue:(e,t,r)=>{var s;let c=e.options[e.options.length-1],o=e.options.slice(),f=e.tokens.concat({segmentIndex:r,type:"value"});return c.value=((s=c.value)!==null&&s!==void 0?s:[]).concat([t]),{...e,options:o,tokens:f}},setStringValue:(e,t,r)=>{let s=e.options[e.options.length-1],c=e.options.slice(),o=e.tokens.concat({segmentIndex:r,type:"value"});return s.value=t,{...e,options:c,tokens:o}},inhibateOptions:e=>({...e,ignoreOptions:!0}),useHelp:(e,t,r,s)=>{let[,,c]=t.match(vxt);return typeof c<"u"?{...e,options:[{name:"-c",value:String(s)},{name:"-i",value:c}]}:{...e,options:[{name:"-c",value:String(s)}]}},setError:(e,t,r,s)=>t===c1.EndOfInput||t===c1.EndOfPartialInput?{...e,errorMessage:`${s}.`}:{...e,errorMessage:`${s} ("${t}").`},setOptionArityError:(e,t)=>{let r=e.options[e.options.length-1];return{...e,errorMessage:`Not enough arguments to option ${r.name}.`}}},UQ=Symbol(),Fxt=class{constructor(t,r){this.allOptionNames=new Map,this.arity={leading:[],trailing:[],extra:[],proxy:!1},this.options=[],this.paths=[],this.cliIndex=t,this.cliOpts=r}addPath(t){this.paths.push(t)}setArity({leading:t=this.arity.leading,trailing:r=this.arity.trailing,extra:s=this.arity.extra,proxy:c=this.arity.proxy}){Object.assign(this.arity,{leading:t,trailing:r,extra:s,proxy:c})}addPositional({name:t="arg",required:r=!0}={}){if(!r&&this.arity.extra===UQ)throw new Error("Optional parameters cannot be declared when using .rest() or .proxy()");if(!r&&this.arity.trailing.length>0)throw new Error("Optional parameters cannot be declared after the required trailing positional arguments");!r&&this.arity.extra!==UQ?this.arity.extra.push(t):this.arity.extra!==UQ&&this.arity.extra.length===0?this.arity.leading.push(t):this.arity.trailing.push(t)}addRest({name:t="arg",required:r=0}={}){if(this.arity.extra===UQ)throw new Error("Infinite lists cannot be declared multiple times in the same command");if(this.arity.trailing.length>0)throw new Error("Infinite lists cannot be declared after the required trailing positional arguments");for(let s=0;s1)throw new Error("The arity cannot be higher than 1 when the option only supports the --arg=value syntax");if(!Number.isInteger(s))throw new Error(`The arity must be an integer, got ${s}`);if(s<0)throw new Error(`The arity must be positive, got ${s}`);let _=t.reduce((A,y)=>y.length>A.length?y:A,"");for(let A of t)this.allOptionNames.set(A,_);this.options.push({preferredName:_,nameSet:t,description:r,arity:s,hidden:c,required:o,allowBinding:f})}setContext(t){this.context=t}usage({detailed:t=!0,inlineOptions:r=!0}={}){let s=[this.cliOpts.binaryName],c=[];if(this.paths.length>0&&s.push(...this.paths[0]),t){for(let{preferredName:f,nameSet:_,arity:A,hidden:y,description:I,required:D}of this.options){if(y)continue;let b=[];for(let x=0;x`:`[${L}]`)}s.push(...this.arity.leading.map(f=>`<${f}>`)),this.arity.extra===UQ?s.push("..."):s.push(...this.arity.extra.map(f=>`[${f}]`)),s.push(...this.arity.trailing.map(f=>`<${f}>`))}return{usage:s.join(" "),options:c}}compile(){if(typeof this.context>"u")throw new Error("Assertion failed: No context attached");let t=Skr(),r=Gg.InitialNode,s=this.usage().usage,c=this.options.filter(_=>_.required).map(_=>_.nameSet);r=D5(t,MQ()),aP(t,Gg.InitialNode,c1.StartOfInput,r,["setCandidateState",{candidateUsage:s,requiredOptions:c}]);let o=this.arity.proxy?"always":"isNotOptionLike",f=this.paths.length>0?this.paths:[[]];for(let _ of f){let A=r;if(_.length>0){let b=D5(t,MQ());wge(t,A,b),this.registerOptions(t,b),A=b}for(let b=0;b<_.length;++b){let L=D5(t,MQ());aP(t,A,_[b],L,"pushPath"),A=L}if(this.arity.leading.length>0||!this.arity.proxy){let b=D5(t,MQ());pB(t,A,"isHelp",b,["useHelp",this.cliIndex]),pB(t,b,"always",b,"pushExtra"),aP(t,b,c1.EndOfInput,Gg.SuccessNode,["setSelectedIndex",Qae]),this.registerOptions(t,A)}this.arity.leading.length>0&&(aP(t,A,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,A,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex]));let y=A;for(let b=0;b0||b+1!==this.arity.leading.length)&&(aP(t,L,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,L,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex])),pB(t,y,"isNotOptionLike",L,"pushPositional"),y=L}let I=y;if(this.arity.extra===UQ||this.arity.extra.length>0){let b=D5(t,MQ());if(wge(t,y,b),this.arity.extra===UQ){let L=D5(t,MQ());this.arity.proxy||this.registerOptions(t,L),pB(t,y,o,L,"pushExtraNoLimits"),pB(t,L,o,L,"pushExtraNoLimits"),wge(t,L,b)}else for(let L=0;L0)&&this.registerOptions(t,x),pB(t,I,o,x,"pushExtra"),wge(t,x,b),I=x}I=b}this.arity.trailing.length>0&&(aP(t,I,c1.EndOfInput,Gg.ErrorNode,["setError","Not enough positional arguments"]),aP(t,I,c1.EndOfPartialInput,Gg.SuccessNode,["setPartialIndex",this.cliIndex]));let D=I;for(let b=0;b=0&&t{let f=o?c1.EndOfPartialInput:c1.EndOfInput;return vVi(s,c,{endToken:f})}}}}});import Lxt from"tty";function wkr(){return Lxt&&"getColorDepth"in Lxt.WriteStream.prototype?Lxt.WriteStream.prototype.getColorDepth():process.env.FORCE_COLOR==="0"?1:process.env.FORCE_COLOR==="1"||typeof process.stdout<"u"&&process.stdout.isTTY?8:1}function Bkr(e){let t=bkr;if(typeof t>"u"){if(e.stdout===process.stdout&&e.stderr===process.stderr)return null;let{AsyncLocalStorage:r}=qt("async_hooks");t=bkr=new r;let s=process.stdout._write;process.stdout._write=function(o,f,_){let A=t.getStore();return typeof A>"u"?s.call(this,o,f,_):A.stdout.write(o,f,_)};let c=process.stderr._write;process.stderr._write=function(o,f,_){let A=t.getStore();return typeof A>"u"?c.call(this,o,f,_):A.stderr.write(o,f,_)}}return r=>t.run(e,r)}var bkr,xkr=sc(()=>{});var aYe,Nkr=sc(()=>{oee();aYe=class e extends yI{constructor(t){super(),this.contexts=t,this.commands=[]}static from(t,r){let s=new e(r);s.path=t.path;for(let c of t.options)switch(c.name){case"-c":s.commands.push(Number(c.value));break;case"-i":s.index=Number(c.value);break}return s}async execute(){let t=this.commands;if(typeof this.index<"u"&&this.index>=0&&this.index1){this.context.stdout.write(`Multiple commands match your selection:
`),this.context.stdout.write(`
`);let r=0;for(let s of this.commands)this.context.stdout.write(this.cli.usage(this.contexts[s].commandClass,{prefix:`${r++}. `.padStart(5)}));this.context.stdout.write(`
`),this.context.stdout.write(`Run again with -h= to see the longer details of any of those commands.
-`)}}}});async function Fkr(...e){let{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}=Qkr(e);return Gae.from(r,t).runExit(s,c)}async function Lkr(...e){let{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}=Qkr(e);return Gae.from(r,t).run(s,c)}function Qkr(e){let t,r,s,c;switch(typeof process<"u"&&typeof process.argv<"u"&&(s=process.argv.slice(2)),e.length){case 1:r=e[0];break;case 2:e[0]&&e[0].prototype instanceof yI||Array.isArray(e[0])?(r=e[0],Array.isArray(e[1])?s=e[1]:c=e[1]):(t=e[0],r=e[1]);break;case 3:Array.isArray(e[2])?(t=e[0],r=e[1],s=e[2]):e[0]&&e[0].prototype instanceof yI||Array.isArray(e[0])?(r=e[0],s=e[1],c=e[2]):(t=e[0],r=e[1],c=e[2]);break;default:t=e[0],r=e[1],s=e[2],c=e[3];break}if(typeof s>"u")throw new Error("The argv parameter must be provided when running Clipanion outside of a Node context");return{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}}function Okr(e){return e()}var Pkr,Gae,Mkr=sc(()=>{XWe();oYe();Rxt();Rkr();oee();kkr();Pkr=Symbol("clipanion/errorCommand");Gae=class e{constructor({binaryLabel:t,binaryName:r="...",binaryVersion:s,enableCapture:c=!1,enableColors:o}={}){this.registrations=new Map,this.builder=new sYe({binaryName:r}),this.binaryLabel=t,this.binaryName=r,this.binaryVersion=s,this.enableCapture=c,this.enableColors=o}static from(t,r={}){let s=new e(r),c=Array.isArray(t)?t:[t];for(let o of c)s.register(o);return s}register(t){var r;let s=new Map,c=new t;for(let A in c){let y=c[A];typeof y=="object"&&y!==null&&y[yI.isOption]&&s.set(A,y)}let o=this.builder.command(),f=o.cliIndex,_=(r=t.paths)!==null&&r!==void 0?r:c.paths;if(typeof _<"u")for(let A of _)o.addPath(A);this.registrations.set(t,{specs:s,builder:o,index:f});for(let[A,{definition:y}]of s.entries())y(o,A);o.setContext({commandClass:t})}process(t,r){let{input:s,context:c,partial:o}=typeof t=="object"&&Array.isArray(t)?{input:t,context:r}:t,{contexts:f,process:_}=this.builder.compile(),A=_(s,{partial:o}),y={...e.defaultContext,...c};switch(A.selectedIndex){case Qae:{let I=aYe.from(A,f);return I.context=y,I.tokens=A.tokens,I}default:{let{commandClass:I}=f[A.selectedIndex],D=this.registrations.get(I);if(typeof D>"u")throw new Error("Assertion failed: Expected the command class to have been registered.");let b=new I;b.context=y,b.tokens=A.tokens,b.path=A.path;try{for(let[L,{transformer:x}]of D.specs.entries())b[L]=x(D.builder,L,A,y);return b}catch(L){throw L[Pkr]=b,L}}break}}async run(t,r){var s,c;let o,f={...e.defaultContext,...r},_=(s=this.enableColors)!==null&&s!==void 0?s:f.colorDepth>1;if(!Array.isArray(t))o=t;else try{o=this.process(t,f)}catch(I){return f.stdout.write(this.error(I,{colored:_})),1}if(o.help)return f.stdout.write(this.usage(o,{colored:_,detailed:!0})),0;o.context=f,o.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableCapture:this.enableCapture,enableColors:this.enableColors,definitions:()=>this.definitions(),definition:I=>this.definition(I),error:(I,D)=>this.error(I,D),format:I=>this.format(I),process:(I,D)=>this.process(I,{...f,...D}),run:(I,D)=>this.run(I,{...f,...D}),usage:(I,D)=>this.usage(I,D)};let A=this.enableCapture&&(c=Nkr(f))!==null&&c!==void 0?c:Okr,y;try{y=await A(()=>o.validateAndExecute().catch(I=>o.catch(I).then(()=>0)))}catch(I){return f.stdout.write(this.error(I,{colored:_,command:o})),1}return y}async runExit(t,r){process.exitCode=await this.run(t,r)}definition(t,{colored:r=!1}={}){if(!t.usage)return null;let{usage:s}=this.getUsageByRegistration(t,{detailed:!1}),{usage:c,options:o}=this.getUsageByRegistration(t,{detailed:!0,inlineOptions:!1}),f=typeof t.usage.category<"u"?sF(t.usage.category,{format:this.format(r),paragraphs:!1}):void 0,_=typeof t.usage.description<"u"?sF(t.usage.description,{format:this.format(r),paragraphs:!1}):void 0,A=typeof t.usage.details<"u"?sF(t.usage.details,{format:this.format(r),paragraphs:!0}):void 0,y=typeof t.usage.examples<"u"?t.usage.examples.map(([I,D])=>[sF(I,{format:this.format(r),paragraphs:!1}),D.replace(/\$0/g,this.binaryName)]):void 0;return{path:s,usage:c,category:f,description:_,details:A,examples:y,options:o}}definitions({colored:t=!1}={}){let r=[];for(let s of this.registrations.keys()){let c=this.definition(s,{colored:t});c&&r.push(c)}return r}usage(t=null,{colored:r,detailed:s=!1,prefix:c="$ "}={}){var o;if(t===null){for(let A of this.registrations.keys()){let y=A.paths,I=typeof A.usage<"u";if(!y||y.length===0||y.length===1&&y[0].length===0||((o=y?.some(L=>L.length===0))!==null&&o!==void 0?o:!1))if(t){t=null;break}else t=A;else if(I){t=null;continue}}t&&(s=!0)}let f=t!==null&&t instanceof yI?t.constructor:t,_="";if(f)if(s){let{description:A="",details:y="",examples:I=[]}=f.usage||{};A!==""&&(_+=sF(A,{format:this.format(r),paragraphs:!1}).replace(/^./,L=>L.toUpperCase()),_+=`
+`)}}}});async function Pkr(...e){let{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}=Fkr(e);return Gae.from(r,t).runExit(s,c)}async function Okr(...e){let{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}=Fkr(e);return Gae.from(r,t).run(s,c)}function Fkr(e){let t,r,s,c;switch(typeof process<"u"&&typeof process.argv<"u"&&(s=process.argv.slice(2)),e.length){case 1:r=e[0];break;case 2:e[0]&&e[0].prototype instanceof yI||Array.isArray(e[0])?(r=e[0],Array.isArray(e[1])?s=e[1]:c=e[1]):(t=e[0],r=e[1]);break;case 3:Array.isArray(e[2])?(t=e[0],r=e[1],s=e[2]):e[0]&&e[0].prototype instanceof yI||Array.isArray(e[0])?(r=e[0],s=e[1],c=e[2]):(t=e[0],r=e[1],c=e[2]);break;default:t=e[0],r=e[1],s=e[2],c=e[3];break}if(typeof s>"u")throw new Error("The argv parameter must be provided when running Clipanion outside of a Node context");return{resolvedOptions:t,resolvedCommandClasses:r,resolvedArgv:s,resolvedContext:c}}function kkr(e){return e()}var Rkr,Gae,Lkr=sc(()=>{XWe();oYe();xxt();xkr();oee();Nkr();Rkr=Symbol("clipanion/errorCommand");Gae=class e{constructor({binaryLabel:t,binaryName:r="...",binaryVersion:s,enableCapture:c=!1,enableColors:o}={}){this.registrations=new Map,this.builder=new sYe({binaryName:r}),this.binaryLabel=t,this.binaryName=r,this.binaryVersion=s,this.enableCapture=c,this.enableColors=o}static from(t,r={}){let s=new e(r),c=Array.isArray(t)?t:[t];for(let o of c)s.register(o);return s}register(t){var r;let s=new Map,c=new t;for(let A in c){let y=c[A];typeof y=="object"&&y!==null&&y[yI.isOption]&&s.set(A,y)}let o=this.builder.command(),f=o.cliIndex,_=(r=t.paths)!==null&&r!==void 0?r:c.paths;if(typeof _<"u")for(let A of _)o.addPath(A);this.registrations.set(t,{specs:s,builder:o,index:f});for(let[A,{definition:y}]of s.entries())y(o,A);o.setContext({commandClass:t})}process(t,r){let{input:s,context:c,partial:o}=typeof t=="object"&&Array.isArray(t)?{input:t,context:r}:t,{contexts:f,process:_}=this.builder.compile(),A=_(s,{partial:o}),y={...e.defaultContext,...c};switch(A.selectedIndex){case Qae:{let I=aYe.from(A,f);return I.context=y,I.tokens=A.tokens,I}default:{let{commandClass:I}=f[A.selectedIndex],D=this.registrations.get(I);if(typeof D>"u")throw new Error("Assertion failed: Expected the command class to have been registered.");let b=new I;b.context=y,b.tokens=A.tokens,b.path=A.path;try{for(let[L,{transformer:x}]of D.specs.entries())b[L]=x(D.builder,L,A,y);return b}catch(L){throw L[Rkr]=b,L}}break}}async run(t,r){var s,c;let o,f={...e.defaultContext,...r},_=(s=this.enableColors)!==null&&s!==void 0?s:f.colorDepth>1;if(!Array.isArray(t))o=t;else try{o=this.process(t,f)}catch(I){return f.stdout.write(this.error(I,{colored:_})),1}if(o.help)return f.stdout.write(this.usage(o,{colored:_,detailed:!0})),0;o.context=f,o.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableCapture:this.enableCapture,enableColors:this.enableColors,definitions:()=>this.definitions(),definition:I=>this.definition(I),error:(I,D)=>this.error(I,D),format:I=>this.format(I),process:(I,D)=>this.process(I,{...f,...D}),run:(I,D)=>this.run(I,{...f,...D}),usage:(I,D)=>this.usage(I,D)};let A=this.enableCapture&&(c=Bkr(f))!==null&&c!==void 0?c:kkr,y;try{y=await A(()=>o.validateAndExecute().catch(I=>o.catch(I).then(()=>0)))}catch(I){return f.stdout.write(this.error(I,{colored:_,command:o})),1}return y}async runExit(t,r){process.exitCode=await this.run(t,r)}definition(t,{colored:r=!1}={}){if(!t.usage)return null;let{usage:s}=this.getUsageByRegistration(t,{detailed:!1}),{usage:c,options:o}=this.getUsageByRegistration(t,{detailed:!0,inlineOptions:!1}),f=typeof t.usage.category<"u"?sF(t.usage.category,{format:this.format(r),paragraphs:!1}):void 0,_=typeof t.usage.description<"u"?sF(t.usage.description,{format:this.format(r),paragraphs:!1}):void 0,A=typeof t.usage.details<"u"?sF(t.usage.details,{format:this.format(r),paragraphs:!0}):void 0,y=typeof t.usage.examples<"u"?t.usage.examples.map(([I,D])=>[sF(I,{format:this.format(r),paragraphs:!1}),D.replace(/\$0/g,this.binaryName)]):void 0;return{path:s,usage:c,category:f,description:_,details:A,examples:y,options:o}}definitions({colored:t=!1}={}){let r=[];for(let s of this.registrations.keys()){let c=this.definition(s,{colored:t});c&&r.push(c)}return r}usage(t=null,{colored:r,detailed:s=!1,prefix:c="$ "}={}){var o;if(t===null){for(let A of this.registrations.keys()){let y=A.paths,I=typeof A.usage<"u";if(!y||y.length===0||y.length===1&&y[0].length===0||((o=y?.some(L=>L.length===0))!==null&&o!==void 0?o:!1))if(t){t=null;break}else t=A;else if(I){t=null;continue}}t&&(s=!0)}let f=t!==null&&t instanceof yI?t.constructor:t,_="";if(f)if(s){let{description:A="",details:y="",examples:I=[]}=f.usage||{};A!==""&&(_+=sF(A,{format:this.format(r),paragraphs:!1}).replace(/^./,L=>L.toUpperCase()),_+=`
`),(y!==""||I.length>0)&&(_+=`${this.format(r).header("Usage")}
`,_+=`
`);let{usage:D,options:b}=this.getUsageByRegistration(f,{inlineOptions:!1});if(_+=`${this.format(r).bold(c)}${D}
@@ -84,51 +84,51 @@ ${t.map(r=>`
`;for(let{commandClass:J,usage:Y}of L){let ne=J.usage.description||"undocumented";_+=`
`,_+=` ${this.format(r).bold(Y)}
`,_+=` ${sF(ne,{format:this.format(r),paragraphs:!1})}`}}_+=`
-`,_+=sF("You can also print more details about any of these commands by calling them with the `-h,--help` flag right after the command name.",{format:this.format(r),paragraphs:!0})}return _}error(t,r){var s,{colored:c,command:o=(s=t[Pkr])!==null&&s!==void 0?s:null}=r===void 0?{}:r;(!t||typeof t!="object"||!("stack"in t))&&(t=new Error(`Execution failed with a non-error rejection (rejected value: ${JSON.stringify(t)})`));let f="",_=t.name.replace(/([a-z])([A-Z])/g,"$1 $2");_==="Error"&&(_="Internal Error"),f+=`${this.format(c).error(_)}: ${t.message}
+`,_+=sF("You can also print more details about any of these commands by calling them with the `-h,--help` flag right after the command name.",{format:this.format(r),paragraphs:!0})}return _}error(t,r){var s,{colored:c,command:o=(s=t[Rkr])!==null&&s!==void 0?s:null}=r===void 0?{}:r;(!t||typeof t!="object"||!("stack"in t))&&(t=new Error(`Execution failed with a non-error rejection (rejected value: ${JSON.stringify(t)})`));let f="",_=t.name.replace(/([a-z])([A-Z])/g,"$1 $2");_==="Error"&&(_="Internal Error"),f+=`${this.format(c).error(_)}: ${t.message}
`;let A=t.clipanion;return typeof A<"u"?A.type==="usage"&&(f+=`
`,f+=this.usage(o)):t.stack&&(f+=`${t.stack.replace(/^.*\n/,"")}
-`),f}format(t){var r;return((r=t??this.enableColors)!==null&&r!==void 0?r:e.defaultContext.colorDepth>1)?hkr:mkr}getUsageByRegistration(t,r){let s=this.registrations.get(t);if(typeof s>"u")throw new Error("Assertion failed: Unregistered command");return this.getUsageByIndex(s.index,r)}getUsageByIndex(t,r){return this.builder.getBuilderByIndex(t).usage(r)}};Gae.defaultContext={env:process.env,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr,colorDepth:xkr()}});var $Ne,Ukr=sc(()=>{oee();$Ne=class extends yI{async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.definitions(),null,2)}
-`)}};$Ne.paths=[["--clipanion=definitions"]]});var eRe,Gkr=sc(()=>{oee();eRe=class extends yI{async execute(){this.context.stdout.write(this.cli.usage())}};eRe.paths=[["-h"],["--help"]]});function cYe(e={}){return oP({definition(t,r){var s;t.addProxy({name:(s=e.name)!==null&&s!==void 0?s:r,required:e.required})},transformer(t,r,s){return s.positionals.map(({value:c})=>c)}})}var Uxt=sc(()=>{NW()});var tRe,jkr=sc(()=>{oee();Uxt();tRe=class extends yI{constructor(){super(...arguments),this.args=cYe()}async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.process(this.args).tokens,null,2)}
-`)}};tRe.paths=[["--clipanion=tokens"]]});var rRe,Hkr=sc(()=>{oee();rRe=class extends yI{async execute(){var t;this.context.stdout.write(`${(t=this.cli.binaryVersion)!==null&&t!==void 0?t:""}
-`)}};rRe.paths=[["-v"],["--version"]]});var Gxt={};ih(Gxt,{DefinitionsCommand:()=>$Ne,HelpCommand:()=>eRe,TokensCommand:()=>tRe,VersionCommand:()=>rRe});var qkr=sc(()=>{Ukr();Gkr();jkr();Hkr()});function Jkr(e,t,r){let[s,c]=yj(t,r??{}),{arity:o=1}=c,f=e.split(","),_=new Set(f);return oP({definition(A){A.addOption({names:f,arity:o,hidden:c?.hidden,description:c?.description,required:c.required})},transformer(A,y,I){let D,b=typeof s<"u"?[...s]:void 0;for(let{name:L,value:x}of I.options)_.has(L)&&(D=L,b=b??[],b.push(x));return typeof b<"u"?Uae(D??y,b,c.validator):b}})}var Vkr=sc(()=>{NW()});function Wkr(e,t,r){let[s,c]=yj(t,r??{}),o=e.split(","),f=new Set(o);return oP({definition(_){_.addOption({names:o,allowBinding:!1,arity:0,hidden:c.hidden,description:c.description,required:c.required})},transformer(_,A,y){let I=s;for(let{name:D,value:b}of y.options)f.has(D)&&(I=b);return I}})}var Ykr=sc(()=>{NW()});function zkr(e,t,r){let[s,c]=yj(t,r??{}),o=e.split(","),f=new Set(o);return oP({definition(_){_.addOption({names:o,allowBinding:!1,arity:0,hidden:c.hidden,description:c.description,required:c.required})},transformer(_,A,y){let I=s;for(let{name:D,value:b}of y.options)f.has(D)&&(I??(I=0),b?I+=1:I=0);return I}})}var Kkr=sc(()=>{NW()});function Xkr(e={}){return oP({definition(t,r){var s;t.addRest({name:(s=e.name)!==null&&s!==void 0?s:r,required:e.required})},transformer(t,r,s){let c=f=>{let _=s.positionals[f];return _.extra===UQ||_.extra===!1&&ff)}})}var Zkr=sc(()=>{oYe();NW()});function kVi(e,t,r){let[s,c]=yj(t,r??{}),{arity:o=1}=c,f=e.split(","),_=new Set(f);return oP({definition(A){A.addOption({names:f,arity:c.tolerateBoolean?0:o,hidden:c.hidden,description:c.description,required:c.required})},transformer(A,y,I,D){let b,L=s;typeof c.env<"u"&&D.env[c.env]&&(b=c.env,L=D.env[c.env]);for(let{name:x,value:J}of I.options)_.has(x)&&(b=x,L=J);return typeof L=="string"?Uae(b??y,L,c.validator):L}})}function PVi(e={}){let{required:t=!0}=e;return oP({definition(r,s){var c;r.addPositional({name:(c=e.name)!==null&&c!==void 0?c:s,required:e.required})},transformer(r,s,c){var o;for(let f=0;f{oYe();NW()});var Gp={};ih(Gp,{Array:()=>Jkr,Boolean:()=>Wkr,Counter:()=>zkr,Proxy:()=>cYe,Rest:()=>Xkr,String:()=>$kr,applyValidator:()=>Uae,cleanValidationError:()=>eYe,formatError:()=>KNe,isOptionSymbol:()=>zNe,makeCommandOption:()=>oP,rerouteArguments:()=>yj});var tPr=sc(()=>{NW();Uxt();Vkr();Ykr();Kkr();Zkr();ePr()});var ff={};ih(ff,{Builtins:()=>Gxt,Cli:()=>Gae,Command:()=>yI,Option:()=>Gp,UsageError:()=>Mae,formatMarkdownish:()=>sF,run:()=>Lkr,runExit:()=>Fkr});var kl=sc(()=>{$We();Rxt();oee();Mkr();qkr();tPr()});var rPr=ae(lYe=>{"use strict";Object.defineProperty(lYe,"__esModule",{value:!0});lYe.BaseCommand=void 0;var jxt=(kl(),li(ff)),Hxt=class extends jxt.Command{constructor(){super(...arguments),this.cwd=jxt.Option.String("--cwd",{hidden:!0})}validateAndExecute(){if(typeof this.cwd<"u")throw new jxt.UsageError("The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path");return super.validateAndExecute()}};lYe.BaseCommand=Hxt});var Qa={};ih(Qa,{__addDisposableResource:()=>bPr,__assign:()=>uYe,__asyncDelegator:()=>EPr,__asyncGenerator:()=>gPr,__asyncValues:()=>yPr,__await:()=>Bge,__awaiter:()=>pPr,__classPrivateFieldGet:()=>SPr,__classPrivateFieldIn:()=>DPr,__classPrivateFieldSet:()=>vPr,__createBinding:()=>pYe,__decorate:()=>sPr,__disposeResources:()=>wPr,__esDecorate:()=>aPr,__exportStar:()=>_Pr,__extends:()=>nPr,__generator:()=>dPr,__importDefault:()=>TPr,__importStar:()=>IPr,__makeTemplateObject:()=>CPr,__metadata:()=>fPr,__param:()=>oPr,__propKey:()=>lPr,__read:()=>Vxt,__rest:()=>iPr,__rewriteRelativeImportExtension:()=>BPr,__runInitializers:()=>cPr,__setFunctionName:()=>uPr,__spread:()=>APr,__spreadArray:()=>mPr,__spreadArrays:()=>hPr,__values:()=>fYe,default:()=>LVi});function nPr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qxt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function iPr(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c=0;_--)(f=e[_])&&(o=(c<3?f(o):c>3?f(t,r,o):f(t,r))||o);return c>3&&o&&Object.defineProperty(t,r,o),o}function oPr(e,t){return function(r,s){t(r,s,e)}}function aPr(e,t,r,s,c,o){function f(ne){if(ne!==void 0&&typeof ne!="function")throw new TypeError("Function expected");return ne}for(var _=s.kind,A=_==="getter"?"get":_==="setter"?"set":"value",y=!t&&e?s.static?e:e.prototype:null,I=t||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),D,b=!1,L=r.length-1;L>=0;L--){var x={};for(var J in s)x[J]=J==="access"?{}:s[J];for(var J in s.access)x.access[J]=s.access[J];x.addInitializer=function(ne){if(b)throw new TypeError("Cannot add initializers after decoration has completed");o.push(f(ne||null))};var Y=(0,r[L])(_==="accessor"?{get:I.get,set:I.set}:I[A],x);if(_==="accessor"){if(Y===void 0)continue;if(Y===null||typeof Y!="object")throw new TypeError("Object expected");(D=f(Y.get))&&(I.get=D),(D=f(Y.set))&&(I.set=D),(D=f(Y.init))&&c.unshift(D)}else(D=f(Y))&&(_==="field"?c.unshift(D):I[A]=D)}y&&Object.defineProperty(y,s.name,I),b=!0}function cPr(e,t,r){for(var s=arguments.length>2,c=0;c0&&o[o.length-1])&&(y[0]===6||y[0]===2)){r=0;continue}if(y[0]===3&&(!o||y[1]>o[0]&&y[1]=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vxt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),c,o=[],f;try{for(;(t===void 0||t-- >0)&&!(c=s.next()).done;)o.push(c.value)}catch(_){f={error:_}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(f)throw f.error}}return o}function APr(){for(var e=[],t=0;t1||A(L,J)})},x&&(c[L]=x(c[L])))}function A(L,x){try{y(s[L](x))}catch(J){b(o[0][3],J)}}function y(L){L.value instanceof Bge?Promise.resolve(L.value.v).then(I,D):b(o[0][2],L)}function I(L){A("next",L)}function D(L){A("throw",L)}function b(L,x){L(x),o.shift(),o.length&&A(o[0][0],o[0][1])}}function EPr(e){var t,r;return t={},s("next"),s("throw",function(c){throw c}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(c,o){t[c]=e[c]?function(f){return(r=!r)?{value:Bge(e[c](f)),done:!1}:o?o(f):f}:o}}function yPr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof fYe=="function"?fYe(e):e[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(o){r[o]=e[o]&&function(f){return new Promise(function(_,A){f=e[o](f),c(_,A,f.done,f.value)})}}function c(o,f,_,A){Promise.resolve(A).then(function(y){o({value:y,done:_})},f)}}function CPr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function IPr(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Jxt(e),s=0;s{qxt=function(e,t){return qxt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},qxt(e,t)};uYe=function(){return uYe=Object.assign||function(t){for(var r,s=1,c=arguments.length;s{"use strict";Object.defineProperty(NM,"__esModule",{value:!0});NM.SAFE_TIME=NM.S_IFLNK=NM.S_IFREG=NM.S_IFDIR=NM.S_IFMT=void 0;NM.S_IFMT=61440;NM.S_IFDIR=16384;NM.S_IFREG=32768;NM.S_IFLNK=40960;NM.SAFE_TIME=456789e3});var _Ye=ae(lF=>{"use strict";Object.defineProperty(lF,"__esModule",{value:!0});lF.EBUSY=QVi;lF.ENOSYS=MVi;lF.EINVAL=UVi;lF.EBADF=GVi;lF.ENOENT=jVi;lF.ENOTDIR=HVi;lF.EISDIR=qVi;lF.EEXIST=JVi;lF.EROFS=VVi;lF.ENOTEMPTY=WVi;lF.EOPNOTSUPP=YVi;lF.ERR_DIR_CLOSED=zVi;function RM(e,t){return Object.assign(new Error(`${e}: ${t}`),{code:e})}function QVi(e){return RM("EBUSY",e)}function MVi(e,t){return RM("ENOSYS",`${e}, ${t}`)}function UVi(e){return RM("EINVAL",`invalid argument, ${e}`)}function GVi(e){return RM("EBADF",`bad file descriptor, ${e}`)}function jVi(e){return RM("ENOENT",`no such file or directory, ${e}`)}function HVi(e){return RM("ENOTDIR",`not a directory, ${e}`)}function qVi(e){return RM("EISDIR",`illegal operation on a directory, ${e}`)}function JVi(e){return RM("EEXIST",`file already exists, ${e}`)}function VVi(e){return RM("EROFS",`read-only filesystem, ${e}`)}function WVi(e){return RM("ENOTEMPTY",`directory not empty, ${e}`)}function YVi(e){return RM("EOPNOTSUPP",`operation not supported, ${e}`)}function zVi(){return RM("ERR_DIR_CLOSED","Directory handle was closed")}});var Yxt=ae(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});wx.BigIntStatsEntry=wx.StatEntry=wx.DirEntry=wx.DEFAULT_MODE=void 0;wx.makeDefaultStats=NPr;wx.makeEmptyStats=XVi;wx.clearStats=RPr;wx.convertToBigIntStats=ZVi;wx.areStatsEqual=$Vi;var KVi=(Ma(),li(Qa)),xPr=KVi.__importStar(qt("util")),Qb=dYe();wx.DEFAULT_MODE=Qb.S_IFREG|420;var Wxt=class{constructor(){this.name="",this.path="",this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Qb.S_IFMT)===Qb.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&Qb.S_IFMT)===Qb.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&Qb.S_IFMT)===Qb.S_IFLNK}};wx.DirEntry=Wxt;var AYe=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=wx.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Qb.S_IFMT)===Qb.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&Qb.S_IFMT)===Qb.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&Qb.S_IFMT)===Qb.S_IFLNK}};wx.StatEntry=AYe;var hYe=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(wx.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFDIR)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFREG)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFLNK)}};wx.BigIntStatsEntry=hYe;function NPr(){return new AYe}function XVi(){return RPr(NPr())}function RPr(e){for(let t in e)if(Object.hasOwn(e,t)){let r=e[t];typeof r=="number"?e[t]=0:typeof r=="bigint"?e[t]=BigInt(0):xPr.types.isDate(r)&&(e[t]=new Date(0))}return e}function ZVi(e){let t=new hYe;for(let r in e)if(Object.hasOwn(e,r)){let s=e[r];typeof s=="number"?t[r]=BigInt(s):xPr.types.isDate(s)&&(t[r]=new Date(s))}return t.atimeNs=t.atimeMs*BigInt(1e6),t.mtimeNs=t.mtimeMs*BigInt(1e6),t.ctimeNs=t.ctimeMs*BigInt(1e6),t.birthtimeNs=t.birthtimeMs*BigInt(1e6),t}function $Vi(e,t){if(e.atimeMs!==t.atimeMs||e.birthtimeMs!==t.birthtimeMs||e.blksize!==t.blksize||e.blocks!==t.blocks||e.ctimeMs!==t.ctimeMs||e.dev!==t.dev||e.gid!==t.gid||e.ino!==t.ino||e.isBlockDevice()!==t.isBlockDevice()||e.isCharacterDevice()!==t.isCharacterDevice()||e.isDirectory()!==t.isDirectory()||e.isFIFO()!==t.isFIFO()||e.isFile()!==t.isFile()||e.isSocket()!==t.isSocket()||e.isSymbolicLink()!==t.isSymbolicLink()||e.mode!==t.mode||e.mtimeMs!==t.mtimeMs||e.nlink!==t.nlink||e.rdev!==t.rdev||e.size!==t.size||e.uid!==t.uid)return!1;let r=e,s=t;return!(r.atimeNs!==s.atimeNs||r.mtimeNs!==s.mtimeNs||r.ctimeNs!==s.ctimeNs||r.birthtimeNs!==s.birthtimeNs)}});var uF=ae(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.ppath=TS.npath=TS.Filename=TS.PortablePath=void 0;TS.convertPath=aWi;var eWi=(Ma(),li(Qa)),mYe=eWi.__importDefault(qt("path")),kPr;(function(e){e[e.File=0]="File",e[e.Portable=1]="Portable",e[e.Native=2]="Native"})(kPr||(kPr={}));TS.PortablePath={root:"/",dot:".",parent:".."};TS.Filename={home:"~",nodeModules:"node_modules",manifest:"package.json",lockfile:"yarn.lock",virtual:"__virtual__",pnpJs:".pnp.js",pnpCjs:".pnp.cjs",pnpData:".pnp.data.json",pnpEsmLoader:".pnp.loader.mjs",rc:".yarnrc.yml",env:".env"};TS.npath=Object.create(mYe.default);TS.ppath=Object.create(mYe.default.posix);TS.npath.cwd=()=>process.cwd();TS.ppath.cwd=process.platform==="win32"?()=>zxt(process.cwd()):process.cwd;process.platform==="win32"&&(TS.ppath.resolve=(...e)=>e.length>0&&TS.ppath.isAbsolute(e[0])?mYe.default.posix.resolve(...e):mYe.default.posix.resolve(TS.ppath.cwd(),...e));var PPr=function(e,t,r){return t=e.normalize(t),r=e.normalize(r),t===r?".":(t.endsWith(e.sep)||(t=t+e.sep),r.startsWith(t)?r.slice(t.length):null)};TS.npath.contains=(e,t)=>PPr(TS.npath,e,t);TS.ppath.contains=(e,t)=>PPr(TS.ppath,e,t);var tWi=/^([a-zA-Z]:.*)$/,rWi=/^\/\/(\.\/)?(.*)$/,nWi=/^\/([a-zA-Z]:.*)$/,iWi=/^\/unc\/(\.dot\/)?(.*)$/;function sWi(e){let t,r;if(t=e.match(nWi))e=t[1];else if(r=e.match(iWi))e=`\\\\${r[1]?".\\":""}${r[2]}`;else return e;return e.replace(/\//g,"\\")}function oWi(e){e=e.replace(/\\/g,"/");let t,r;return(t=e.match(tWi))?e=`/${t[1]}`:(r=e.match(rWi))&&(e=`/unc/${r[1]?".dot/":""}${r[2]}`),e}var zxt=process.platform==="win32"?oWi:e=>e,OPr=process.platform==="win32"?sWi:e=>e;TS.npath.fromPortablePath=OPr;TS.npath.toPortablePath=zxt;function aWi(e,t){return e===TS.npath?OPr(t):zxt(t)}});var Xxt=ae(gYe=>{"use strict";Object.defineProperty(gYe,"__esModule",{value:!0});gYe.setupCopyIndex=pWi;gYe.copyPromise=dWi;var cWi=(Ma(),li(Qa)),lWi=cWi.__importStar(dYe()),uWi=uF(),jae=new Date(lWi.SAFE_TIME*1e3),fWi=jae.getTime();async function pWi(e,t){let r="0123456789abcdef";await e.mkdirPromise(t.indexPath,{recursive:!0});let s=[];for(let c of r)for(let o of r)s.push(e.mkdirPromise(e.pathUtils.join(t.indexPath,`${c}${o}`),{recursive:!0}));return await Promise.all(s),t.indexPath}async function dWi(e,t,r,s,c){let o=e.pathUtils.normalize(t),f=r.pathUtils.normalize(s),_=[],A=[],{atime:y,mtime:I}=c.stableTime?{atime:jae,mtime:jae}:await r.lstatPromise(f);await e.mkdirpPromise(e.pathUtils.dirname(t),{utimes:[y,I]}),await Kxt(_,A,e,o,r,f,{...c,didParentExist:!0});for(let D of _)await D();await Promise.all(A.map(D=>D()))}async function Kxt(e,t,r,s,c,o,f){let _=f.didParentExist?await FPr(r,s):null,A=await c.lstatPromise(o),{atime:y,mtime:I}=f.stableTime?{atime:jae,mtime:jae}:A,D;switch(!0){case A.isDirectory():D=await _Wi(e,t,r,s,_,c,o,A,f);break;case A.isFile():D=await mWi(e,t,r,s,_,c,o,A,f);break;case A.isSymbolicLink():D=await gWi(e,t,r,s,_,c,o,A,f);break;default:throw new Error(`Unsupported file type (${A.mode})`)}return(f.linkStrategy?.type!=="HardlinkFromIndex"||!A.isFile())&&((D||_?.mtime?.getTime()!==I.getTime()||_?.atime?.getTime()!==y.getTime())&&(t.push(()=>r.lutimesPromise(s,y,I)),D=!0),(_===null||(_.mode&511)!==(A.mode&511))&&(t.push(()=>r.chmodPromise(s,A.mode&511)),D=!0)),D}async function FPr(e,t){try{return await e.lstatPromise(t)}catch{return null}}async function _Wi(e,t,r,s,c,o,f,_,A){if(c!==null&&!c.isDirectory())if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;let y=!1;c===null&&(e.push(async()=>{try{await r.mkdirPromise(s,{mode:_.mode})}catch(b){if(b.code!=="EEXIST")throw b}}),y=!0);let I=await o.readdirPromise(f),D=A.didParentExist&&!c?{...A,didParentExist:!1}:A;if(A.stableSort)for(let b of I.sort())await Kxt(e,t,r,r.pathUtils.join(s,b),o,o.pathUtils.join(f,b),D)&&(y=!0);else(await Promise.all(I.map(async L=>{await Kxt(e,t,r,r.pathUtils.join(s,L),o,o.pathUtils.join(f,L),D)}))).some(L=>L)&&(y=!0);return y}async function AWi(e,t,r,s,c,o,f,_,A,y){let I=await o.checksumFilePromise(f,{algorithm:"sha1"}),D=420,b=_.mode&511,L=`${I}${b!==D?b.toString(8):""}`,x=r.pathUtils.join(y.indexPath,I.slice(0,2),`${L}.dat`),J;(function(pe){pe[pe.Lock=0]="Lock",pe[pe.Rename=1]="Rename"})(J||(J={}));let Y=J.Rename,ne=await FPr(r,x);if(c){let pe=ne&&c.dev===ne.dev&&c.ino===ne.ino,ge=ne?.mtimeMs!==fWi;if(pe&&ge&&y.autoRepair&&(Y=J.Lock,ne=null),!pe)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1}let Ae=!ne&&Y===J.Rename?`${x}.${Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0")}`:null,le=!1;return e.push(async()=>{if(!ne&&(Y===J.Lock&&await r.lockPromise(x,async()=>{let pe=await o.readFilePromise(f);await r.writeFilePromise(x,pe)}),Y===J.Rename&&Ae)){let pe=await o.readFilePromise(f);await r.writeFilePromise(Ae,pe);try{await r.linkPromise(Ae,x)}catch(ge){if(ge.code==="EEXIST")le=!0,await r.unlinkPromise(Ae);else throw ge}}c||await r.linkPromise(x,s)}),t.push(async()=>{ne||(await r.lutimesPromise(x,jae,jae),b!==D&&await r.chmodPromise(x,b)),Ae&&!le&&await r.unlinkPromise(Ae)}),!1}async function hWi(e,t,r,s,c,o,f,_,A){if(c!==null)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;return e.push(async()=>{let y=await o.readFilePromise(f);await r.writeFilePromise(s,y)}),!0}async function mWi(e,t,r,s,c,o,f,_,A){return A.linkStrategy?.type==="HardlinkFromIndex"?AWi(e,t,r,s,c,o,f,_,A,A.linkStrategy):hWi(e,t,r,s,c,o,f,_,A)}async function gWi(e,t,r,s,c,o,f,_,A){if(c!==null)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;return e.push(async()=>{await r.symlinkPromise((0,uWi.convertPath)(r.pathUtils,await o.readlinkPromise(f)),s)}),!0}});var LPr=ae(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.CustomDir=void 0;nRe.opendir=CWi;var EWi=(Ma(),li(Qa)),yWi=EWi.__importStar(_Ye()),EYe=class{constructor(t,r,s={}){this.path=t,this.nextDirent=r,this.opts=s,this.closed=!1}throwIfClosed(){if(this.closed)throw yWi.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let t;for(;(t=await this.read())!==null;)yield t}finally{await this.close()}}read(t){let r=this.readSync();return typeof t<"u"?t(null,r):Promise.resolve(r)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(t){return this.closeSync(),typeof t<"u"?t(null):Promise.resolve()}closeSync(){this.throwIfClosed(),this.opts.onClose?.(),this.closed=!0}};nRe.CustomDir=EYe;function CWi(e,t,r,s){let c=()=>{let o=r.shift();if(typeof o>"u")return null;let f=e.pathUtils.join(t,o);return Object.assign(e.statSync(f),{name:o,path:void 0})};return new EYe(t,c,s)}});var QPr=ae(RW=>{"use strict";Object.defineProperty(RW,"__esModule",{value:!0});RW.CustomStatWatcher=RW.Status=RW.Event=void 0;RW.assertStatus=Zxt;var IWi=(Ma(),li(Qa)),TWi=qt("events"),yYe=IWi.__importStar(Yxt()),Hae;(function(e){e.Change="change",e.Stop="stop"})(Hae||(RW.Event=Hae={}));var qae;(function(e){e.Ready="ready",e.Running="running",e.Stopped="stopped"})(qae||(RW.Status=qae={}));function Zxt(e,t){if(e!==t)throw new Error(`Invalid StatWatcher status: expected '${t}', got '${e}'`)}var $xt=class e extends TWi.EventEmitter{static create(t,r,s){let c=new e(t,r,s);return c.start(),c}constructor(t,r,{bigint:s=!1}={}){super(),this.status=qae.Ready,this.changeListeners=new Map,this.startTimeout=null,this.fakeFs=t,this.path=r,this.bigint=s,this.lastStats=this.stat()}start(){Zxt(this.status,qae.Ready),this.status=qae.Running,this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.fakeFs.existsSync(this.path)||this.emit(Hae.Change,this.lastStats,this.lastStats)},3)}stop(){Zxt(this.status,qae.Running),this.status=qae.Stopped,this.startTimeout!==null&&(clearTimeout(this.startTimeout),this.startTimeout=null),this.emit(Hae.Stop)}stat(){try{return this.fakeFs.statSync(this.path,{bigint:this.bigint})}catch{let r=this.bigint?new yYe.BigIntStatsEntry:new yYe.StatEntry;return yYe.clearStats(r)}}makeInterval(t){let r=setInterval(()=>{let s=this.stat(),c=this.lastStats;yYe.areStatsEqual(s,c)||(this.lastStats=s,this.emit(Hae.Change,s,c))},t.interval);return t.persistent?r:r.unref()}registerChangeListener(t,r){this.addListener(Hae.Change,t),this.changeListeners.set(t,this.makeInterval(r))}unregisterChangeListener(t){this.removeListener(Hae.Change,t);let r=this.changeListeners.get(t);typeof r<"u"&&clearInterval(r),this.changeListeners.delete(t)}unregisterAllChangeListeners(){for(let t of this.changeListeners.keys())this.unregisterChangeListener(t)}hasChangeListeners(){return this.changeListeners.size>0}ref(){for(let t of this.changeListeners.values())t.ref();return this}unref(){for(let t of this.changeListeners.values())t.unref();return this}};RW.CustomStatWatcher=$xt});var eNt=ae(iRe=>{"use strict";Object.defineProperty(iRe,"__esModule",{value:!0});iRe.watchFile=vWi;iRe.unwatchFile=MPr;iRe.unwatchAllFiles=DWi;var SWi=QPr(),CYe=new WeakMap;function vWi(e,t,r,s){let c,o,f,_;switch(typeof r){case"function":c=!1,o=!0,f=5007,_=r;break;default:({bigint:c=!1,persistent:o=!0,interval:f=5007}=r),_=s;break}let A=CYe.get(e);typeof A>"u"&&CYe.set(e,A=new Map);let y=A.get(t);return typeof y>"u"&&(y=SWi.CustomStatWatcher.create(e,t,{bigint:c}),A.set(t,y)),y.registerChangeListener(_,{persistent:o,interval:f}),y}function MPr(e,t,r){let s=CYe.get(e);if(typeof s>"u")return;let c=s.get(t);typeof c>"u"||(typeof r>"u"?c.unregisterAllChangeListeners():c.unregisterChangeListener(r),c.hasChangeListeners()||(c.stop(),s.delete(t)))}function DWi(e){let t=CYe.get(e);if(!(typeof t>"u"))for(let r of t.keys())MPr(e,r)}});var Vae=ae(Jae=>{"use strict";Object.defineProperty(Jae,"__esModule",{value:!0});Jae.BasePortableFakeFS=Jae.FakeFS=void 0;Jae.normalizeLineEndings=rNt;var bWi=qt("crypto"),wWi=qt("os"),BWi=Xxt(),UPr=uF(),IYe=class{constructor(t){this.pathUtils=t}async*genTraversePromise(t,{stableSort:r=!1}={}){let s=[t];for(;s.length>0;){let c=s.shift();if((await this.lstatPromise(c)).isDirectory()){let f=await this.readdirPromise(c);if(r)for(let _ of f.sort())s.push(this.pathUtils.join(c,_));else throw new Error("Not supported")}else yield c}}async checksumFilePromise(t,{algorithm:r="sha512"}={}){let s=await this.openPromise(t,"r");try{let o=Buffer.allocUnsafeSlow(65536),f=(0,bWi.createHash)(r),_=0;for(;(_=await this.readPromise(s,o,0,65536))!==0;)f.update(_===65536?o:o.slice(0,_));return f.digest("hex")}finally{await this.closePromise(s)}}async removePromise(t,{recursive:r=!0,maxRetries:s=5}={}){let c;try{c=await this.lstatPromise(t)}catch(o){if(o.code==="ENOENT")return;throw o}if(c.isDirectory()){if(r){let o=await this.readdirPromise(t);await Promise.all(o.map(f=>this.removePromise(this.pathUtils.resolve(t,f))))}for(let o=0;o<=s;o++)try{await this.rmdirPromise(t);break}catch(f){if(f.code!=="EBUSY"&&f.code!=="ENOTEMPTY")throw f;osetTimeout(_,o*100))}}else await this.unlinkPromise(t)}removeSync(t,{recursive:r=!0}={}){let s;try{s=this.lstatSync(t)}catch(c){if(c.code==="ENOENT")return;throw c}if(s.isDirectory()){if(r)for(let c of this.readdirSync(t))this.removeSync(this.pathUtils.resolve(t,c));this.rmdirSync(t)}else this.unlinkSync(t)}async mkdirpPromise(t,{chmod:r,utimes:s}={}){if(t=this.resolve(t),t===this.pathUtils.dirname(t))return;let c=t.split(this.pathUtils.sep),o;for(let f=2;f<=c.length;++f){let _=c.slice(0,f).join(this.pathUtils.sep);if(!this.existsSync(_)){try{await this.mkdirPromise(_)}catch(A){if(A.code==="EEXIST")continue;throw A}if(o??=_,r!=null&&await this.chmodPromise(_,r),s!=null)await this.utimesPromise(_,s[0],s[1]);else{let A=await this.statPromise(this.pathUtils.dirname(_));await this.utimesPromise(_,A.atime,A.mtime)}}}return o}mkdirpSync(t,{chmod:r,utimes:s}={}){if(t=this.resolve(t),t===this.pathUtils.dirname(t))return;let c=t.split(this.pathUtils.sep),o;for(let f=2;f<=c.length;++f){let _=c.slice(0,f).join(this.pathUtils.sep);if(!this.existsSync(_)){try{this.mkdirSync(_)}catch(A){if(A.code==="EEXIST")continue;throw A}if(o??=_,r!=null&&this.chmodSync(_,r),s!=null)this.utimesSync(_,s[0],s[1]);else{let A=this.statSync(this.pathUtils.dirname(_));this.utimesSync(_,A.atime,A.mtime)}}}return o}async copyPromise(t,r,{baseFs:s=this,overwrite:c=!0,stableSort:o=!1,stableTime:f=!1,linkStrategy:_=null}={}){return await(0,BWi.copyPromise)(this,t,s,r,{overwrite:c,stableSort:o,stableTime:f,linkStrategy:_})}copySync(t,r,{baseFs:s=this,overwrite:c=!0}={}){let o=s.lstatSync(r),f=this.existsSync(t);if(o.isDirectory()){this.mkdirpSync(t);let A=s.readdirSync(r);for(let y of A)this.copySync(this.pathUtils.join(t,y),s.pathUtils.join(r,y),{baseFs:s,overwrite:c})}else if(o.isFile()){if(!f||c){f&&this.removeSync(t);let A=s.readFileSync(r);this.writeFileSync(t,A)}}else if(o.isSymbolicLink()){if(!f||c){f&&this.removeSync(t);let A=s.readlinkSync(r);this.symlinkSync((0,UPr.convertPath)(this.pathUtils,A),t)}}else throw new Error(`Unsupported file type (file: ${r}, mode: 0o${o.mode.toString(8).padStart(6,"0")})`);let _=o.mode&511;this.chmodSync(t,_)}async changeFilePromise(t,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferPromise(t,r,s):this.changeFileTextPromise(t,r,s)}async changeFileBufferPromise(t,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=await this.readFilePromise(t)}catch{}Buffer.compare(c,r)!==0&&await this.writeFilePromise(t,r,{mode:s})}async changeFileTextPromise(t,r,{automaticNewlines:s,mode:c}={}){let o="";try{o=await this.readFilePromise(t,"utf8")}catch{}let f=s?rNt(o,r):r;o!==f&&await this.writeFilePromise(t,f,{mode:c})}changeFileSync(t,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferSync(t,r,s):this.changeFileTextSync(t,r,s)}changeFileBufferSync(t,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=this.readFileSync(t)}catch{}Buffer.compare(c,r)!==0&&this.writeFileSync(t,r,{mode:s})}changeFileTextSync(t,r,{automaticNewlines:s=!1,mode:c}={}){let o="";try{o=this.readFileSync(t,"utf8")}catch{}let f=s?rNt(o,r):r;o!==f&&this.writeFileSync(t,f,{mode:c})}async movePromise(t,r){try{await this.renamePromise(t,r)}catch(s){if(s.code==="EXDEV")await this.copyPromise(r,t),await this.removePromise(t);else throw s}}moveSync(t,r){try{this.renameSync(t,r)}catch(s){if(s.code==="EXDEV")this.copySync(r,t),this.removeSync(t);else throw s}}async lockPromise(t,r){let s=`${t}.flock`,c=1e3/60,o=Date.now(),f=null,_=async()=>{let A;try{[A]=await this.readJsonPromise(s)}catch{return Date.now()-o<500}try{return process.kill(A,0),!0}catch{return!1}};for(;f===null;)try{f=await this.openPromise(s,"wx")}catch(A){if(A.code==="EEXIST"){if(!await _())try{await this.unlinkPromise(s);continue}catch{}if(Date.now()-o<60*1e3)await new Promise(y=>setTimeout(y,c));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${s})`)}else throw A}await this.writePromise(f,JSON.stringify([process.pid]));try{return await r()}finally{try{await this.closePromise(f),await this.unlinkPromise(s)}catch{}}}async readJsonPromise(t){let r=await this.readFilePromise(t,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${t})`,s}}readJsonSync(t){let r=this.readFileSync(t,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${t})`,s}}async writeJsonPromise(t,r,{compact:s=!1}={}){let c=s?0:2;return await this.writeFilePromise(t,`${JSON.stringify(r,null,c)}
+`),f}format(t){var r;return((r=t??this.enableColors)!==null&&r!==void 0?r:e.defaultContext.colorDepth>1)?_kr:Akr}getUsageByRegistration(t,r){let s=this.registrations.get(t);if(typeof s>"u")throw new Error("Assertion failed: Unregistered command");return this.getUsageByIndex(s.index,r)}getUsageByIndex(t,r){return this.builder.getBuilderByIndex(t).usage(r)}};Gae.defaultContext={env:process.env,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr,colorDepth:wkr()}});var $Ne,Qkr=sc(()=>{oee();$Ne=class extends yI{async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.definitions(),null,2)}
+`)}};$Ne.paths=[["--clipanion=definitions"]]});var eRe,Mkr=sc(()=>{oee();eRe=class extends yI{async execute(){this.context.stdout.write(this.cli.usage())}};eRe.paths=[["-h"],["--help"]]});function cYe(e={}){return oP({definition(t,r){var s;t.addProxy({name:(s=e.name)!==null&&s!==void 0?s:r,required:e.required})},transformer(t,r,s){return s.positionals.map(({value:c})=>c)}})}var Qxt=sc(()=>{NW()});var tRe,Ukr=sc(()=>{oee();Qxt();tRe=class extends yI{constructor(){super(...arguments),this.args=cYe()}async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.process(this.args).tokens,null,2)}
+`)}};tRe.paths=[["--clipanion=tokens"]]});var rRe,Gkr=sc(()=>{oee();rRe=class extends yI{async execute(){var t;this.context.stdout.write(`${(t=this.cli.binaryVersion)!==null&&t!==void 0?t:""}
+`)}};rRe.paths=[["-v"],["--version"]]});var Mxt={};ih(Mxt,{DefinitionsCommand:()=>$Ne,HelpCommand:()=>eRe,TokensCommand:()=>tRe,VersionCommand:()=>rRe});var jkr=sc(()=>{Qkr();Mkr();Ukr();Gkr()});function Hkr(e,t,r){let[s,c]=yj(t,r??{}),{arity:o=1}=c,f=e.split(","),_=new Set(f);return oP({definition(A){A.addOption({names:f,arity:o,hidden:c?.hidden,description:c?.description,required:c.required})},transformer(A,y,I){let D,b=typeof s<"u"?[...s]:void 0;for(let{name:L,value:x}of I.options)_.has(L)&&(D=L,b=b??[],b.push(x));return typeof b<"u"?Uae(D??y,b,c.validator):b}})}var qkr=sc(()=>{NW()});function Jkr(e,t,r){let[s,c]=yj(t,r??{}),o=e.split(","),f=new Set(o);return oP({definition(_){_.addOption({names:o,allowBinding:!1,arity:0,hidden:c.hidden,description:c.description,required:c.required})},transformer(_,A,y){let I=s;for(let{name:D,value:b}of y.options)f.has(D)&&(I=b);return I}})}var Vkr=sc(()=>{NW()});function Wkr(e,t,r){let[s,c]=yj(t,r??{}),o=e.split(","),f=new Set(o);return oP({definition(_){_.addOption({names:o,allowBinding:!1,arity:0,hidden:c.hidden,description:c.description,required:c.required})},transformer(_,A,y){let I=s;for(let{name:D,value:b}of y.options)f.has(D)&&(I??(I=0),b?I+=1:I=0);return I}})}var Ykr=sc(()=>{NW()});function zkr(e={}){return oP({definition(t,r){var s;t.addRest({name:(s=e.name)!==null&&s!==void 0?s:r,required:e.required})},transformer(t,r,s){let c=f=>{let _=s.positionals[f];return _.extra===UQ||_.extra===!1&&ff)}})}var Kkr=sc(()=>{oYe();NW()});function NVi(e,t,r){let[s,c]=yj(t,r??{}),{arity:o=1}=c,f=e.split(","),_=new Set(f);return oP({definition(A){A.addOption({names:f,arity:c.tolerateBoolean?0:o,hidden:c.hidden,description:c.description,required:c.required})},transformer(A,y,I,D){let b,L=s;typeof c.env<"u"&&D.env[c.env]&&(b=c.env,L=D.env[c.env]);for(let{name:x,value:J}of I.options)_.has(x)&&(b=x,L=J);return typeof L=="string"?Uae(b??y,L,c.validator):L}})}function RVi(e={}){let{required:t=!0}=e;return oP({definition(r,s){var c;r.addPositional({name:(c=e.name)!==null&&c!==void 0?c:s,required:e.required})},transformer(r,s,c){var o;for(let f=0;f{oYe();NW()});var Gp={};ih(Gp,{Array:()=>Hkr,Boolean:()=>Jkr,Counter:()=>Wkr,Proxy:()=>cYe,Rest:()=>zkr,String:()=>Xkr,applyValidator:()=>Uae,cleanValidationError:()=>eYe,formatError:()=>KNe,isOptionSymbol:()=>zNe,makeCommandOption:()=>oP,rerouteArguments:()=>yj});var $kr=sc(()=>{NW();Qxt();qkr();Vkr();Ykr();Kkr();Zkr()});var ff={};ih(ff,{Builtins:()=>Mxt,Cli:()=>Gae,Command:()=>yI,Option:()=>Gp,UsageError:()=>Mae,formatMarkdownish:()=>sF,run:()=>Okr,runExit:()=>Pkr});var kl=sc(()=>{$We();xxt();oee();Lkr();jkr();$kr()});var ePr=ae(lYe=>{"use strict";Object.defineProperty(lYe,"__esModule",{value:!0});lYe.BaseCommand=void 0;var Uxt=(kl(),li(ff)),Gxt=class extends Uxt.Command{constructor(){super(...arguments),this.cwd=Uxt.Option.String("--cwd",{hidden:!0})}validateAndExecute(){if(typeof this.cwd<"u")throw new Uxt.UsageError("The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path");return super.validateAndExecute()}};lYe.BaseCommand=Gxt});var Qa={};ih(Qa,{__addDisposableResource:()=>vPr,__assign:()=>uYe,__asyncDelegator:()=>mPr,__asyncGenerator:()=>hPr,__asyncValues:()=>gPr,__await:()=>Bge,__awaiter:()=>uPr,__classPrivateFieldGet:()=>IPr,__classPrivateFieldIn:()=>SPr,__classPrivateFieldSet:()=>TPr,__createBinding:()=>pYe,__decorate:()=>nPr,__disposeResources:()=>DPr,__esDecorate:()=>sPr,__exportStar:()=>pPr,__extends:()=>tPr,__generator:()=>fPr,__importDefault:()=>CPr,__importStar:()=>yPr,__makeTemplateObject:()=>EPr,__metadata:()=>lPr,__param:()=>iPr,__propKey:()=>aPr,__read:()=>qxt,__rest:()=>rPr,__rewriteRelativeImportExtension:()=>bPr,__runInitializers:()=>oPr,__setFunctionName:()=>cPr,__spread:()=>dPr,__spreadArray:()=>APr,__spreadArrays:()=>_Pr,__values:()=>fYe,default:()=>OVi});function tPr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jxt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function rPr(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c=0;_--)(f=e[_])&&(o=(c<3?f(o):c>3?f(t,r,o):f(t,r))||o);return c>3&&o&&Object.defineProperty(t,r,o),o}function iPr(e,t){return function(r,s){t(r,s,e)}}function sPr(e,t,r,s,c,o){function f(ne){if(ne!==void 0&&typeof ne!="function")throw new TypeError("Function expected");return ne}for(var _=s.kind,A=_==="getter"?"get":_==="setter"?"set":"value",y=!t&&e?s.static?e:e.prototype:null,I=t||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),D,b=!1,L=r.length-1;L>=0;L--){var x={};for(var J in s)x[J]=J==="access"?{}:s[J];for(var J in s.access)x.access[J]=s.access[J];x.addInitializer=function(ne){if(b)throw new TypeError("Cannot add initializers after decoration has completed");o.push(f(ne||null))};var Y=(0,r[L])(_==="accessor"?{get:I.get,set:I.set}:I[A],x);if(_==="accessor"){if(Y===void 0)continue;if(Y===null||typeof Y!="object")throw new TypeError("Object expected");(D=f(Y.get))&&(I.get=D),(D=f(Y.set))&&(I.set=D),(D=f(Y.init))&&c.unshift(D)}else(D=f(Y))&&(_==="field"?c.unshift(D):I[A]=D)}y&&Object.defineProperty(y,s.name,I),b=!0}function oPr(e,t,r){for(var s=arguments.length>2,c=0;c0&&o[o.length-1])&&(y[0]===6||y[0]===2)){r=0;continue}if(y[0]===3&&(!o||y[1]>o[0]&&y[1]=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qxt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),c,o=[],f;try{for(;(t===void 0||t-- >0)&&!(c=s.next()).done;)o.push(c.value)}catch(_){f={error:_}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(f)throw f.error}}return o}function dPr(){for(var e=[],t=0;t1||A(L,J)})},x&&(c[L]=x(c[L])))}function A(L,x){try{y(s[L](x))}catch(J){b(o[0][3],J)}}function y(L){L.value instanceof Bge?Promise.resolve(L.value.v).then(I,D):b(o[0][2],L)}function I(L){A("next",L)}function D(L){A("throw",L)}function b(L,x){L(x),o.shift(),o.length&&A(o[0][0],o[0][1])}}function mPr(e){var t,r;return t={},s("next"),s("throw",function(c){throw c}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(c,o){t[c]=e[c]?function(f){return(r=!r)?{value:Bge(e[c](f)),done:!1}:o?o(f):f}:o}}function gPr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof fYe=="function"?fYe(e):e[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(o){r[o]=e[o]&&function(f){return new Promise(function(_,A){f=e[o](f),c(_,A,f.done,f.value)})}}function c(o,f,_,A){Promise.resolve(A).then(function(y){o({value:y,done:_})},f)}}function EPr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function yPr(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Hxt(e),s=0;s{jxt=function(e,t){return jxt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},jxt(e,t)};uYe=function(){return uYe=Object.assign||function(t){for(var r,s=1,c=arguments.length;s{"use strict";Object.defineProperty(NM,"__esModule",{value:!0});NM.SAFE_TIME=NM.S_IFLNK=NM.S_IFREG=NM.S_IFDIR=NM.S_IFMT=void 0;NM.S_IFMT=61440;NM.S_IFDIR=16384;NM.S_IFREG=32768;NM.S_IFLNK=40960;NM.SAFE_TIME=456789e3});var _Ye=ae(lF=>{"use strict";Object.defineProperty(lF,"__esModule",{value:!0});lF.EBUSY=FVi;lF.ENOSYS=LVi;lF.EINVAL=QVi;lF.EBADF=MVi;lF.ENOENT=UVi;lF.ENOTDIR=GVi;lF.EISDIR=jVi;lF.EEXIST=HVi;lF.EROFS=qVi;lF.ENOTEMPTY=JVi;lF.EOPNOTSUPP=VVi;lF.ERR_DIR_CLOSED=WVi;function RM(e,t){return Object.assign(new Error(`${e}: ${t}`),{code:e})}function FVi(e){return RM("EBUSY",e)}function LVi(e,t){return RM("ENOSYS",`${e}, ${t}`)}function QVi(e){return RM("EINVAL",`invalid argument, ${e}`)}function MVi(e){return RM("EBADF",`bad file descriptor, ${e}`)}function UVi(e){return RM("ENOENT",`no such file or directory, ${e}`)}function GVi(e){return RM("ENOTDIR",`not a directory, ${e}`)}function jVi(e){return RM("EISDIR",`illegal operation on a directory, ${e}`)}function HVi(e){return RM("EEXIST",`file already exists, ${e}`)}function qVi(e){return RM("EROFS",`read-only filesystem, ${e}`)}function JVi(e){return RM("ENOTEMPTY",`directory not empty, ${e}`)}function VVi(e){return RM("EOPNOTSUPP",`operation not supported, ${e}`)}function WVi(){return RM("ERR_DIR_CLOSED","Directory handle was closed")}});var Vxt=ae(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});wx.BigIntStatsEntry=wx.StatEntry=wx.DirEntry=wx.DEFAULT_MODE=void 0;wx.makeDefaultStats=BPr;wx.makeEmptyStats=zVi;wx.clearStats=xPr;wx.convertToBigIntStats=KVi;wx.areStatsEqual=XVi;var YVi=(Ma(),li(Qa)),wPr=YVi.__importStar(qt("util")),Qb=dYe();wx.DEFAULT_MODE=Qb.S_IFREG|420;var Jxt=class{constructor(){this.name="",this.path="",this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Qb.S_IFMT)===Qb.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&Qb.S_IFMT)===Qb.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&Qb.S_IFMT)===Qb.S_IFLNK}};wx.DirEntry=Jxt;var AYe=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=wx.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Qb.S_IFMT)===Qb.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&Qb.S_IFMT)===Qb.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&Qb.S_IFMT)===Qb.S_IFLNK}};wx.StatEntry=AYe;var hYe=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(wx.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFDIR)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFREG)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(Qb.S_IFMT))===BigInt(Qb.S_IFLNK)}};wx.BigIntStatsEntry=hYe;function BPr(){return new AYe}function zVi(){return xPr(BPr())}function xPr(e){for(let t in e)if(Object.hasOwn(e,t)){let r=e[t];typeof r=="number"?e[t]=0:typeof r=="bigint"?e[t]=BigInt(0):wPr.types.isDate(r)&&(e[t]=new Date(0))}return e}function KVi(e){let t=new hYe;for(let r in e)if(Object.hasOwn(e,r)){let s=e[r];typeof s=="number"?t[r]=BigInt(s):wPr.types.isDate(s)&&(t[r]=new Date(s))}return t.atimeNs=t.atimeMs*BigInt(1e6),t.mtimeNs=t.mtimeMs*BigInt(1e6),t.ctimeNs=t.ctimeMs*BigInt(1e6),t.birthtimeNs=t.birthtimeMs*BigInt(1e6),t}function XVi(e,t){if(e.atimeMs!==t.atimeMs||e.birthtimeMs!==t.birthtimeMs||e.blksize!==t.blksize||e.blocks!==t.blocks||e.ctimeMs!==t.ctimeMs||e.dev!==t.dev||e.gid!==t.gid||e.ino!==t.ino||e.isBlockDevice()!==t.isBlockDevice()||e.isCharacterDevice()!==t.isCharacterDevice()||e.isDirectory()!==t.isDirectory()||e.isFIFO()!==t.isFIFO()||e.isFile()!==t.isFile()||e.isSocket()!==t.isSocket()||e.isSymbolicLink()!==t.isSymbolicLink()||e.mode!==t.mode||e.mtimeMs!==t.mtimeMs||e.nlink!==t.nlink||e.rdev!==t.rdev||e.size!==t.size||e.uid!==t.uid)return!1;let r=e,s=t;return!(r.atimeNs!==s.atimeNs||r.mtimeNs!==s.mtimeNs||r.ctimeNs!==s.ctimeNs||r.birthtimeNs!==s.birthtimeNs)}});var uF=ae(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.ppath=TS.npath=TS.Filename=TS.PortablePath=void 0;TS.convertPath=sWi;var ZVi=(Ma(),li(Qa)),mYe=ZVi.__importDefault(qt("path")),NPr;(function(e){e[e.File=0]="File",e[e.Portable=1]="Portable",e[e.Native=2]="Native"})(NPr||(NPr={}));TS.PortablePath={root:"/",dot:".",parent:".."};TS.Filename={home:"~",nodeModules:"node_modules",manifest:"package.json",lockfile:"yarn.lock",virtual:"__virtual__",pnpJs:".pnp.js",pnpCjs:".pnp.cjs",pnpData:".pnp.data.json",pnpEsmLoader:".pnp.loader.mjs",rc:".yarnrc.yml",env:".env"};TS.npath=Object.create(mYe.default);TS.ppath=Object.create(mYe.default.posix);TS.npath.cwd=()=>process.cwd();TS.ppath.cwd=process.platform==="win32"?()=>Wxt(process.cwd()):process.cwd;process.platform==="win32"&&(TS.ppath.resolve=(...e)=>e.length>0&&TS.ppath.isAbsolute(e[0])?mYe.default.posix.resolve(...e):mYe.default.posix.resolve(TS.ppath.cwd(),...e));var RPr=function(e,t,r){return t=e.normalize(t),r=e.normalize(r),t===r?".":(t.endsWith(e.sep)||(t=t+e.sep),r.startsWith(t)?r.slice(t.length):null)};TS.npath.contains=(e,t)=>RPr(TS.npath,e,t);TS.ppath.contains=(e,t)=>RPr(TS.ppath,e,t);var $Vi=/^([a-zA-Z]:.*)$/,eWi=/^\/\/(\.\/)?(.*)$/,tWi=/^\/([a-zA-Z]:.*)$/,rWi=/^\/unc\/(\.dot\/)?(.*)$/;function nWi(e){let t,r;if(t=e.match(tWi))e=t[1];else if(r=e.match(rWi))e=`\\\\${r[1]?".\\":""}${r[2]}`;else return e;return e.replace(/\//g,"\\")}function iWi(e){e=e.replace(/\\/g,"/");let t,r;return(t=e.match($Vi))?e=`/${t[1]}`:(r=e.match(eWi))&&(e=`/unc/${r[1]?".dot/":""}${r[2]}`),e}var Wxt=process.platform==="win32"?iWi:e=>e,kPr=process.platform==="win32"?nWi:e=>e;TS.npath.fromPortablePath=kPr;TS.npath.toPortablePath=Wxt;function sWi(e,t){return e===TS.npath?kPr(t):Wxt(t)}});var zxt=ae(gYe=>{"use strict";Object.defineProperty(gYe,"__esModule",{value:!0});gYe.setupCopyIndex=uWi;gYe.copyPromise=fWi;var oWi=(Ma(),li(Qa)),aWi=oWi.__importStar(dYe()),cWi=uF(),jae=new Date(aWi.SAFE_TIME*1e3),lWi=jae.getTime();async function uWi(e,t){let r="0123456789abcdef";await e.mkdirPromise(t.indexPath,{recursive:!0});let s=[];for(let c of r)for(let o of r)s.push(e.mkdirPromise(e.pathUtils.join(t.indexPath,`${c}${o}`),{recursive:!0}));return await Promise.all(s),t.indexPath}async function fWi(e,t,r,s,c){let o=e.pathUtils.normalize(t),f=r.pathUtils.normalize(s),_=[],A=[],{atime:y,mtime:I}=c.stableTime?{atime:jae,mtime:jae}:await r.lstatPromise(f);await e.mkdirpPromise(e.pathUtils.dirname(t),{utimes:[y,I]}),await Yxt(_,A,e,o,r,f,{...c,didParentExist:!0});for(let D of _)await D();await Promise.all(A.map(D=>D()))}async function Yxt(e,t,r,s,c,o,f){let _=f.didParentExist?await PPr(r,s):null,A=await c.lstatPromise(o),{atime:y,mtime:I}=f.stableTime?{atime:jae,mtime:jae}:A,D;switch(!0){case A.isDirectory():D=await pWi(e,t,r,s,_,c,o,A,f);break;case A.isFile():D=await AWi(e,t,r,s,_,c,o,A,f);break;case A.isSymbolicLink():D=await hWi(e,t,r,s,_,c,o,A,f);break;default:throw new Error(`Unsupported file type (${A.mode})`)}return(f.linkStrategy?.type!=="HardlinkFromIndex"||!A.isFile())&&((D||_?.mtime?.getTime()!==I.getTime()||_?.atime?.getTime()!==y.getTime())&&(t.push(()=>r.lutimesPromise(s,y,I)),D=!0),(_===null||(_.mode&511)!==(A.mode&511))&&(t.push(()=>r.chmodPromise(s,A.mode&511)),D=!0)),D}async function PPr(e,t){try{return await e.lstatPromise(t)}catch{return null}}async function pWi(e,t,r,s,c,o,f,_,A){if(c!==null&&!c.isDirectory())if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;let y=!1;c===null&&(e.push(async()=>{try{await r.mkdirPromise(s,{mode:_.mode})}catch(b){if(b.code!=="EEXIST")throw b}}),y=!0);let I=await o.readdirPromise(f),D=A.didParentExist&&!c?{...A,didParentExist:!1}:A;if(A.stableSort)for(let b of I.sort())await Yxt(e,t,r,r.pathUtils.join(s,b),o,o.pathUtils.join(f,b),D)&&(y=!0);else(await Promise.all(I.map(async L=>{await Yxt(e,t,r,r.pathUtils.join(s,L),o,o.pathUtils.join(f,L),D)}))).some(L=>L)&&(y=!0);return y}async function dWi(e,t,r,s,c,o,f,_,A,y){let I=await o.checksumFilePromise(f,{algorithm:"sha1"}),D=420,b=_.mode&511,L=`${I}${b!==D?b.toString(8):""}`,x=r.pathUtils.join(y.indexPath,I.slice(0,2),`${L}.dat`),J;(function(pe){pe[pe.Lock=0]="Lock",pe[pe.Rename=1]="Rename"})(J||(J={}));let Y=J.Rename,ne=await PPr(r,x);if(c){let pe=ne&&c.dev===ne.dev&&c.ino===ne.ino,ge=ne?.mtimeMs!==lWi;if(pe&&ge&&y.autoRepair&&(Y=J.Lock,ne=null),!pe)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1}let Ae=!ne&&Y===J.Rename?`${x}.${Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0")}`:null,le=!1;return e.push(async()=>{if(!ne&&(Y===J.Lock&&await r.lockPromise(x,async()=>{let pe=await o.readFilePromise(f);await r.writeFilePromise(x,pe)}),Y===J.Rename&&Ae)){let pe=await o.readFilePromise(f);await r.writeFilePromise(Ae,pe);try{await r.linkPromise(Ae,x)}catch(ge){if(ge.code==="EEXIST")le=!0,await r.unlinkPromise(Ae);else throw ge}}c||await r.linkPromise(x,s)}),t.push(async()=>{ne||(await r.lutimesPromise(x,jae,jae),b!==D&&await r.chmodPromise(x,b)),Ae&&!le&&await r.unlinkPromise(Ae)}),!1}async function _Wi(e,t,r,s,c,o,f,_,A){if(c!==null)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;return e.push(async()=>{let y=await o.readFilePromise(f);await r.writeFilePromise(s,y)}),!0}async function AWi(e,t,r,s,c,o,f,_,A){return A.linkStrategy?.type==="HardlinkFromIndex"?dWi(e,t,r,s,c,o,f,_,A,A.linkStrategy):_Wi(e,t,r,s,c,o,f,_,A)}async function hWi(e,t,r,s,c,o,f,_,A){if(c!==null)if(A.overwrite)e.push(async()=>r.removePromise(s)),c=null;else return!1;return e.push(async()=>{await r.symlinkPromise((0,cWi.convertPath)(r.pathUtils,await o.readlinkPromise(f)),s)}),!0}});var OPr=ae(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.CustomDir=void 0;nRe.opendir=EWi;var mWi=(Ma(),li(Qa)),gWi=mWi.__importStar(_Ye()),EYe=class{constructor(t,r,s={}){this.path=t,this.nextDirent=r,this.opts=s,this.closed=!1}throwIfClosed(){if(this.closed)throw gWi.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let t;for(;(t=await this.read())!==null;)yield t}finally{await this.close()}}read(t){let r=this.readSync();return typeof t<"u"?t(null,r):Promise.resolve(r)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(t){return this.closeSync(),typeof t<"u"?t(null):Promise.resolve()}closeSync(){this.throwIfClosed(),this.opts.onClose?.(),this.closed=!0}};nRe.CustomDir=EYe;function EWi(e,t,r,s){let c=()=>{let o=r.shift();if(typeof o>"u")return null;let f=e.pathUtils.join(t,o);return Object.assign(e.statSync(f),{name:o,path:void 0})};return new EYe(t,c,s)}});var FPr=ae(RW=>{"use strict";Object.defineProperty(RW,"__esModule",{value:!0});RW.CustomStatWatcher=RW.Status=RW.Event=void 0;RW.assertStatus=Kxt;var yWi=(Ma(),li(Qa)),CWi=qt("events"),yYe=yWi.__importStar(Vxt()),Hae;(function(e){e.Change="change",e.Stop="stop"})(Hae||(RW.Event=Hae={}));var qae;(function(e){e.Ready="ready",e.Running="running",e.Stopped="stopped"})(qae||(RW.Status=qae={}));function Kxt(e,t){if(e!==t)throw new Error(`Invalid StatWatcher status: expected '${t}', got '${e}'`)}var Xxt=class e extends CWi.EventEmitter{static create(t,r,s){let c=new e(t,r,s);return c.start(),c}constructor(t,r,{bigint:s=!1}={}){super(),this.status=qae.Ready,this.changeListeners=new Map,this.startTimeout=null,this.fakeFs=t,this.path=r,this.bigint=s,this.lastStats=this.stat()}start(){Kxt(this.status,qae.Ready),this.status=qae.Running,this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.fakeFs.existsSync(this.path)||this.emit(Hae.Change,this.lastStats,this.lastStats)},3)}stop(){Kxt(this.status,qae.Running),this.status=qae.Stopped,this.startTimeout!==null&&(clearTimeout(this.startTimeout),this.startTimeout=null),this.emit(Hae.Stop)}stat(){try{return this.fakeFs.statSync(this.path,{bigint:this.bigint})}catch{let r=this.bigint?new yYe.BigIntStatsEntry:new yYe.StatEntry;return yYe.clearStats(r)}}makeInterval(t){let r=setInterval(()=>{let s=this.stat(),c=this.lastStats;yYe.areStatsEqual(s,c)||(this.lastStats=s,this.emit(Hae.Change,s,c))},t.interval);return t.persistent?r:r.unref()}registerChangeListener(t,r){this.addListener(Hae.Change,t),this.changeListeners.set(t,this.makeInterval(r))}unregisterChangeListener(t){this.removeListener(Hae.Change,t);let r=this.changeListeners.get(t);typeof r<"u"&&clearInterval(r),this.changeListeners.delete(t)}unregisterAllChangeListeners(){for(let t of this.changeListeners.keys())this.unregisterChangeListener(t)}hasChangeListeners(){return this.changeListeners.size>0}ref(){for(let t of this.changeListeners.values())t.ref();return this}unref(){for(let t of this.changeListeners.values())t.unref();return this}};RW.CustomStatWatcher=Xxt});var Zxt=ae(iRe=>{"use strict";Object.defineProperty(iRe,"__esModule",{value:!0});iRe.watchFile=TWi;iRe.unwatchFile=LPr;iRe.unwatchAllFiles=SWi;var IWi=FPr(),CYe=new WeakMap;function TWi(e,t,r,s){let c,o,f,_;switch(typeof r){case"function":c=!1,o=!0,f=5007,_=r;break;default:({bigint:c=!1,persistent:o=!0,interval:f=5007}=r),_=s;break}let A=CYe.get(e);typeof A>"u"&&CYe.set(e,A=new Map);let y=A.get(t);return typeof y>"u"&&(y=IWi.CustomStatWatcher.create(e,t,{bigint:c}),A.set(t,y)),y.registerChangeListener(_,{persistent:o,interval:f}),y}function LPr(e,t,r){let s=CYe.get(e);if(typeof s>"u")return;let c=s.get(t);typeof c>"u"||(typeof r>"u"?c.unregisterAllChangeListeners():c.unregisterChangeListener(r),c.hasChangeListeners()||(c.stop(),s.delete(t)))}function SWi(e){let t=CYe.get(e);if(!(typeof t>"u"))for(let r of t.keys())LPr(e,r)}});var Vae=ae(Jae=>{"use strict";Object.defineProperty(Jae,"__esModule",{value:!0});Jae.BasePortableFakeFS=Jae.FakeFS=void 0;Jae.normalizeLineEndings=eNt;var vWi=qt("crypto"),DWi=qt("os"),bWi=zxt(),QPr=uF(),IYe=class{constructor(t){this.pathUtils=t}async*genTraversePromise(t,{stableSort:r=!1}={}){let s=[t];for(;s.length>0;){let c=s.shift();if((await this.lstatPromise(c)).isDirectory()){let f=await this.readdirPromise(c);if(r)for(let _ of f.sort())s.push(this.pathUtils.join(c,_));else throw new Error("Not supported")}else yield c}}async checksumFilePromise(t,{algorithm:r="sha512"}={}){let s=await this.openPromise(t,"r");try{let o=Buffer.allocUnsafeSlow(65536),f=(0,vWi.createHash)(r),_=0;for(;(_=await this.readPromise(s,o,0,65536))!==0;)f.update(_===65536?o:o.slice(0,_));return f.digest("hex")}finally{await this.closePromise(s)}}async removePromise(t,{recursive:r=!0,maxRetries:s=5}={}){let c;try{c=await this.lstatPromise(t)}catch(o){if(o.code==="ENOENT")return;throw o}if(c.isDirectory()){if(r){let o=await this.readdirPromise(t);await Promise.all(o.map(f=>this.removePromise(this.pathUtils.resolve(t,f))))}for(let o=0;o<=s;o++)try{await this.rmdirPromise(t);break}catch(f){if(f.code!=="EBUSY"&&f.code!=="ENOTEMPTY")throw f;osetTimeout(_,o*100))}}else await this.unlinkPromise(t)}removeSync(t,{recursive:r=!0}={}){let s;try{s=this.lstatSync(t)}catch(c){if(c.code==="ENOENT")return;throw c}if(s.isDirectory()){if(r)for(let c of this.readdirSync(t))this.removeSync(this.pathUtils.resolve(t,c));this.rmdirSync(t)}else this.unlinkSync(t)}async mkdirpPromise(t,{chmod:r,utimes:s}={}){if(t=this.resolve(t),t===this.pathUtils.dirname(t))return;let c=t.split(this.pathUtils.sep),o;for(let f=2;f<=c.length;++f){let _=c.slice(0,f).join(this.pathUtils.sep);if(!this.existsSync(_)){try{await this.mkdirPromise(_)}catch(A){if(A.code==="EEXIST")continue;throw A}if(o??=_,r!=null&&await this.chmodPromise(_,r),s!=null)await this.utimesPromise(_,s[0],s[1]);else{let A=await this.statPromise(this.pathUtils.dirname(_));await this.utimesPromise(_,A.atime,A.mtime)}}}return o}mkdirpSync(t,{chmod:r,utimes:s}={}){if(t=this.resolve(t),t===this.pathUtils.dirname(t))return;let c=t.split(this.pathUtils.sep),o;for(let f=2;f<=c.length;++f){let _=c.slice(0,f).join(this.pathUtils.sep);if(!this.existsSync(_)){try{this.mkdirSync(_)}catch(A){if(A.code==="EEXIST")continue;throw A}if(o??=_,r!=null&&this.chmodSync(_,r),s!=null)this.utimesSync(_,s[0],s[1]);else{let A=this.statSync(this.pathUtils.dirname(_));this.utimesSync(_,A.atime,A.mtime)}}}return o}async copyPromise(t,r,{baseFs:s=this,overwrite:c=!0,stableSort:o=!1,stableTime:f=!1,linkStrategy:_=null}={}){return await(0,bWi.copyPromise)(this,t,s,r,{overwrite:c,stableSort:o,stableTime:f,linkStrategy:_})}copySync(t,r,{baseFs:s=this,overwrite:c=!0}={}){let o=s.lstatSync(r),f=this.existsSync(t);if(o.isDirectory()){this.mkdirpSync(t);let A=s.readdirSync(r);for(let y of A)this.copySync(this.pathUtils.join(t,y),s.pathUtils.join(r,y),{baseFs:s,overwrite:c})}else if(o.isFile()){if(!f||c){f&&this.removeSync(t);let A=s.readFileSync(r);this.writeFileSync(t,A)}}else if(o.isSymbolicLink()){if(!f||c){f&&this.removeSync(t);let A=s.readlinkSync(r);this.symlinkSync((0,QPr.convertPath)(this.pathUtils,A),t)}}else throw new Error(`Unsupported file type (file: ${r}, mode: 0o${o.mode.toString(8).padStart(6,"0")})`);let _=o.mode&511;this.chmodSync(t,_)}async changeFilePromise(t,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferPromise(t,r,s):this.changeFileTextPromise(t,r,s)}async changeFileBufferPromise(t,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=await this.readFilePromise(t)}catch{}Buffer.compare(c,r)!==0&&await this.writeFilePromise(t,r,{mode:s})}async changeFileTextPromise(t,r,{automaticNewlines:s,mode:c}={}){let o="";try{o=await this.readFilePromise(t,"utf8")}catch{}let f=s?eNt(o,r):r;o!==f&&await this.writeFilePromise(t,f,{mode:c})}changeFileSync(t,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferSync(t,r,s):this.changeFileTextSync(t,r,s)}changeFileBufferSync(t,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=this.readFileSync(t)}catch{}Buffer.compare(c,r)!==0&&this.writeFileSync(t,r,{mode:s})}changeFileTextSync(t,r,{automaticNewlines:s=!1,mode:c}={}){let o="";try{o=this.readFileSync(t,"utf8")}catch{}let f=s?eNt(o,r):r;o!==f&&this.writeFileSync(t,f,{mode:c})}async movePromise(t,r){try{await this.renamePromise(t,r)}catch(s){if(s.code==="EXDEV")await this.copyPromise(r,t),await this.removePromise(t);else throw s}}moveSync(t,r){try{this.renameSync(t,r)}catch(s){if(s.code==="EXDEV")this.copySync(r,t),this.removeSync(t);else throw s}}async lockPromise(t,r){let s=`${t}.flock`,c=1e3/60,o=Date.now(),f=null,_=async()=>{let A;try{[A]=await this.readJsonPromise(s)}catch{return Date.now()-o<500}try{return process.kill(A,0),!0}catch{return!1}};for(;f===null;)try{f=await this.openPromise(s,"wx")}catch(A){if(A.code==="EEXIST"){if(!await _())try{await this.unlinkPromise(s);continue}catch{}if(Date.now()-o<60*1e3)await new Promise(y=>setTimeout(y,c));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${s})`)}else throw A}await this.writePromise(f,JSON.stringify([process.pid]));try{return await r()}finally{try{await this.closePromise(f),await this.unlinkPromise(s)}catch{}}}async readJsonPromise(t){let r=await this.readFilePromise(t,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${t})`,s}}readJsonSync(t){let r=this.readFileSync(t,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${t})`,s}}async writeJsonPromise(t,r,{compact:s=!1}={}){let c=s?0:2;return await this.writeFilePromise(t,`${JSON.stringify(r,null,c)}
`)}writeJsonSync(t,r,{compact:s=!1}={}){let c=s?0:2;return this.writeFileSync(t,`${JSON.stringify(r,null,c)}
-`)}async preserveTimePromise(t,r){let s=await this.lstatPromise(t),c=await r();typeof c<"u"&&(t=c),await this.lutimesPromise(t,s.atime,s.mtime)}async preserveTimeSync(t,r){let s=this.lstatSync(t),c=r();typeof c<"u"&&(t=c),this.lutimesSync(t,s.atime,s.mtime)}};Jae.FakeFS=IYe;var tNt=class extends IYe{constructor(){super(UPr.ppath)}};Jae.BasePortableFakeFS=tNt;function xWi(e){let t=e.match(/\r?\n/g);if(t===null)return wWi.EOL;let r=t.filter(c=>c===`\r
+`)}async preserveTimePromise(t,r){let s=await this.lstatPromise(t),c=await r();typeof c<"u"&&(t=c),await this.lutimesPromise(t,s.atime,s.mtime)}async preserveTimeSync(t,r){let s=this.lstatSync(t),c=r();typeof c<"u"&&(t=c),this.lutimesSync(t,s.atime,s.mtime)}};Jae.FakeFS=IYe;var $xt=class extends IYe{constructor(){super(QPr.ppath)}};Jae.BasePortableFakeFS=$xt;function wWi(e){let t=e.match(/\r?\n/g);if(t===null)return DWi.EOL;let r=t.filter(c=>c===`\r
`).length,s=t.length-r;return r>s?`\r
`:`
-`}function rNt(e,t){return t.replace(/\r?\n/g,xWi(e))}});var kW=ae(TYe=>{"use strict";Object.defineProperty(TYe,"__esModule",{value:!0});TYe.ProxiedFS=void 0;var NWi=Vae(),nNt=class extends NWi.FakeFS{getExtractHint(t){return this.baseFs.getExtractHint(t)}resolve(t){return this.mapFromBase(this.baseFs.resolve(this.mapToBase(t)))}getRealPath(){return this.mapFromBase(this.baseFs.getRealPath())}async openPromise(t,r,s){return this.baseFs.openPromise(this.mapToBase(t),r,s)}openSync(t,r,s){return this.baseFs.openSync(this.mapToBase(t),r,s)}async opendirPromise(t,r){return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(t),r),{path:t})}opendirSync(t,r){return Object.assign(this.baseFs.opendirSync(this.mapToBase(t),r),{path:t})}async readPromise(t,r,s,c,o){return await this.baseFs.readPromise(t,r,s,c,o)}readSync(t,r,s,c,o){return this.baseFs.readSync(t,r,s,c,o)}async writePromise(t,r,s,c,o){return typeof r=="string"?await this.baseFs.writePromise(t,r,s):await this.baseFs.writePromise(t,r,s,c,o)}writeSync(t,r,s,c,o){return typeof r=="string"?this.baseFs.writeSync(t,r,s):this.baseFs.writeSync(t,r,s,c,o)}async closePromise(t){return this.baseFs.closePromise(t)}closeSync(t){this.baseFs.closeSync(t)}createReadStream(t,r){return this.baseFs.createReadStream(t!==null?this.mapToBase(t):t,r)}createWriteStream(t,r){return this.baseFs.createWriteStream(t!==null?this.mapToBase(t):t,r)}async realpathPromise(t){return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(t)))}realpathSync(t){return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(t)))}async existsPromise(t){return this.baseFs.existsPromise(this.mapToBase(t))}existsSync(t){return this.baseFs.existsSync(this.mapToBase(t))}accessSync(t,r){return this.baseFs.accessSync(this.mapToBase(t),r)}async accessPromise(t,r){return this.baseFs.accessPromise(this.mapToBase(t),r)}async statPromise(t,r){return this.baseFs.statPromise(this.mapToBase(t),r)}statSync(t,r){return this.baseFs.statSync(this.mapToBase(t),r)}async fstatPromise(t,r){return this.baseFs.fstatPromise(t,r)}fstatSync(t,r){return this.baseFs.fstatSync(t,r)}lstatPromise(t,r){return this.baseFs.lstatPromise(this.mapToBase(t),r)}lstatSync(t,r){return this.baseFs.lstatSync(this.mapToBase(t),r)}async fchmodPromise(t,r){return this.baseFs.fchmodPromise(t,r)}fchmodSync(t,r){return this.baseFs.fchmodSync(t,r)}async chmodPromise(t,r){return this.baseFs.chmodPromise(this.mapToBase(t),r)}chmodSync(t,r){return this.baseFs.chmodSync(this.mapToBase(t),r)}async fchownPromise(t,r,s){return this.baseFs.fchownPromise(t,r,s)}fchownSync(t,r,s){return this.baseFs.fchownSync(t,r,s)}async chownPromise(t,r,s){return this.baseFs.chownPromise(this.mapToBase(t),r,s)}chownSync(t,r,s){return this.baseFs.chownSync(this.mapToBase(t),r,s)}async renamePromise(t,r){return this.baseFs.renamePromise(this.mapToBase(t),this.mapToBase(r))}renameSync(t,r){return this.baseFs.renameSync(this.mapToBase(t),this.mapToBase(r))}async copyFilePromise(t,r,s=0){return this.baseFs.copyFilePromise(this.mapToBase(t),this.mapToBase(r),s)}copyFileSync(t,r,s=0){return this.baseFs.copyFileSync(this.mapToBase(t),this.mapToBase(r),s)}async appendFilePromise(t,r,s){return this.baseFs.appendFilePromise(this.fsMapToBase(t),r,s)}appendFileSync(t,r,s){return this.baseFs.appendFileSync(this.fsMapToBase(t),r,s)}async writeFilePromise(t,r,s){return this.baseFs.writeFilePromise(this.fsMapToBase(t),r,s)}writeFileSync(t,r,s){return this.baseFs.writeFileSync(this.fsMapToBase(t),r,s)}async unlinkPromise(t){return this.baseFs.unlinkPromise(this.mapToBase(t))}unlinkSync(t){return this.baseFs.unlinkSync(this.mapToBase(t))}async utimesPromise(t,r,s){return this.baseFs.utimesPromise(this.mapToBase(t),r,s)}utimesSync(t,r,s){return this.baseFs.utimesSync(this.mapToBase(t),r,s)}async lutimesPromise(t,r,s){return this.baseFs.lutimesPromise(this.mapToBase(t),r,s)}lutimesSync(t,r,s){return this.baseFs.lutimesSync(this.mapToBase(t),r,s)}async mkdirPromise(t,r){return this.baseFs.mkdirPromise(this.mapToBase(t),r)}mkdirSync(t,r){return this.baseFs.mkdirSync(this.mapToBase(t),r)}async rmdirPromise(t,r){return this.baseFs.rmdirPromise(this.mapToBase(t),r)}rmdirSync(t,r){return this.baseFs.rmdirSync(this.mapToBase(t),r)}async rmPromise(t,r){return this.baseFs.rmPromise(this.mapToBase(t),r)}rmSync(t,r){return this.baseFs.rmSync(this.mapToBase(t),r)}async linkPromise(t,r){return this.baseFs.linkPromise(this.mapToBase(t),this.mapToBase(r))}linkSync(t,r){return this.baseFs.linkSync(this.mapToBase(t),this.mapToBase(r))}async symlinkPromise(t,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(t))return this.baseFs.symlinkPromise(this.mapToBase(t),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),t)),f=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkPromise(f,c,s)}symlinkSync(t,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(t))return this.baseFs.symlinkSync(this.mapToBase(t),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),t)),f=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkSync(f,c,s)}async readFilePromise(t,r){return this.baseFs.readFilePromise(this.fsMapToBase(t),r)}readFileSync(t,r){return this.baseFs.readFileSync(this.fsMapToBase(t),r)}readdirPromise(t,r){return this.baseFs.readdirPromise(this.mapToBase(t),r)}readdirSync(t,r){return this.baseFs.readdirSync(this.mapToBase(t),r)}async readlinkPromise(t){return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(t)))}readlinkSync(t){return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(t)))}async truncatePromise(t,r){return this.baseFs.truncatePromise(this.mapToBase(t),r)}truncateSync(t,r){return this.baseFs.truncateSync(this.mapToBase(t),r)}async ftruncatePromise(t,r){return this.baseFs.ftruncatePromise(t,r)}ftruncateSync(t,r){return this.baseFs.ftruncateSync(t,r)}watch(t,r,s){return this.baseFs.watch(this.mapToBase(t),r,s)}watchFile(t,r,s){return this.baseFs.watchFile(this.mapToBase(t),r,s)}unwatchFile(t,r){return this.baseFs.unwatchFile(this.mapToBase(t),r)}fsMapToBase(t){return typeof t=="number"?t:this.mapToBase(t)}};TYe.ProxiedFS=nNt});var GPr=ae(SYe=>{"use strict";Object.defineProperty(SYe,"__esModule",{value:!0});SYe.AliasFS=void 0;var RWi=kW(),iNt=class extends RWi.ProxiedFS{constructor(t,{baseFs:r,pathUtils:s}){super(s),this.target=t,this.baseFs=r}getRealPath(){return this.target}getBaseFs(){return this.baseFs}mapFromBase(t){return t}mapToBase(t){return t}};SYe.AliasFS=iNt});var Wae=ae(vYe=>{"use strict";Object.defineProperty(vYe,"__esModule",{value:!0});vYe.NodeFS=void 0;var kWi=(Ma(),li(Qa)),PWi=kWi.__importDefault(qt("fs")),OWi=Vae(),cu=uF();function jPr(e){let t=e;return typeof e.path=="string"&&(t.path=cu.npath.toPortablePath(e.path)),t}var sNt=class extends OWi.BasePortableFakeFS{constructor(t=PWi.default){super(),this.realFs=t}getExtractHint(){return!1}getRealPath(){return cu.PortablePath.root}resolve(t){return cu.ppath.resolve(t)}async openPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.open(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}openSync(t,r,s){return this.realFs.openSync(cu.npath.fromPortablePath(t),r,s)}async opendirPromise(t,r){return await new Promise((s,c)=>{typeof r<"u"?this.realFs.opendir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.opendir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))}).then(s=>{let c=s;return Object.defineProperty(c,"path",{value:t,configurable:!0,writable:!0}),c})}opendirSync(t,r){let c=typeof r<"u"?this.realFs.opendirSync(cu.npath.fromPortablePath(t),r):this.realFs.opendirSync(cu.npath.fromPortablePath(t));return Object.defineProperty(c,"path",{value:t,configurable:!0,writable:!0}),c}async readPromise(t,r,s=0,c=0,o=-1){return await new Promise((f,_)=>{this.realFs.read(t,r,s,c,o,(A,y)=>{A?_(A):f(y)})})}readSync(t,r,s,c,o){return this.realFs.readSync(t,r,s,c,o)}async writePromise(t,r,s,c,o){return await new Promise((f,_)=>typeof r=="string"?this.realFs.write(t,r,s,this.makeCallback(f,_)):this.realFs.write(t,r,s,c,o,this.makeCallback(f,_)))}writeSync(t,r,s,c,o){return typeof r=="string"?this.realFs.writeSync(t,r,s):this.realFs.writeSync(t,r,s,c,o)}async closePromise(t){await new Promise((r,s)=>{this.realFs.close(t,this.makeCallback(r,s))})}closeSync(t){this.realFs.closeSync(t)}createReadStream(t,r){let s=t!==null?cu.npath.fromPortablePath(t):t;return this.realFs.createReadStream(s,r)}createWriteStream(t,r){let s=t!==null?cu.npath.fromPortablePath(t):t;return this.realFs.createWriteStream(s,r)}async realpathPromise(t){return await new Promise((r,s)=>{this.realFs.realpath(cu.npath.fromPortablePath(t),{},this.makeCallback(r,s))}).then(r=>cu.npath.toPortablePath(r))}realpathSync(t){return cu.npath.toPortablePath(this.realFs.realpathSync(cu.npath.fromPortablePath(t),{}))}async existsPromise(t){return await new Promise(r=>{this.realFs.exists(cu.npath.fromPortablePath(t),r)})}accessSync(t,r){return this.realFs.accessSync(cu.npath.fromPortablePath(t),r)}async accessPromise(t,r){return await new Promise((s,c)=>{this.realFs.access(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}existsSync(t){return this.realFs.existsSync(cu.npath.fromPortablePath(t))}async statPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.stat(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.stat(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}statSync(t,r){return r?this.realFs.statSync(cu.npath.fromPortablePath(t),r):this.realFs.statSync(cu.npath.fromPortablePath(t))}async fstatPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.fstat(t,r,this.makeCallback(s,c)):this.realFs.fstat(t,this.makeCallback(s,c))})}fstatSync(t,r){return r?this.realFs.fstatSync(t,r):this.realFs.fstatSync(t)}async lstatPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.lstat(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.lstat(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}lstatSync(t,r){return r?this.realFs.lstatSync(cu.npath.fromPortablePath(t),r):this.realFs.lstatSync(cu.npath.fromPortablePath(t))}async fchmodPromise(t,r){return await new Promise((s,c)=>{this.realFs.fchmod(t,r,this.makeCallback(s,c))})}fchmodSync(t,r){return this.realFs.fchmodSync(t,r)}async chmodPromise(t,r){return await new Promise((s,c)=>{this.realFs.chmod(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}chmodSync(t,r){return this.realFs.chmodSync(cu.npath.fromPortablePath(t),r)}async fchownPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.fchown(t,r,s,this.makeCallback(c,o))})}fchownSync(t,r,s){return this.realFs.fchownSync(t,r,s)}async chownPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.chown(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}chownSync(t,r,s){return this.realFs.chownSync(cu.npath.fromPortablePath(t),r,s)}async renamePromise(t,r){return await new Promise((s,c)=>{this.realFs.rename(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),this.makeCallback(s,c))})}renameSync(t,r){return this.realFs.renameSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r))}async copyFilePromise(t,r,s=0){return await new Promise((c,o)=>{this.realFs.copyFile(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}copyFileSync(t,r,s=0){return this.realFs.copyFileSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),s)}async appendFilePromise(t,r,s){return await new Promise((c,o)=>{let f=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.appendFile(f,r,s,this.makeCallback(c,o)):this.realFs.appendFile(f,r,this.makeCallback(c,o))})}appendFileSync(t,r,s){let c=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.appendFileSync(c,r,s):this.realFs.appendFileSync(c,r)}async writeFilePromise(t,r,s){return await new Promise((c,o)=>{let f=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.writeFile(f,r,s,this.makeCallback(c,o)):this.realFs.writeFile(f,r,this.makeCallback(c,o))})}writeFileSync(t,r,s){let c=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.writeFileSync(c,r,s):this.realFs.writeFileSync(c,r)}async unlinkPromise(t){return await new Promise((r,s)=>{this.realFs.unlink(cu.npath.fromPortablePath(t),this.makeCallback(r,s))})}unlinkSync(t){return this.realFs.unlinkSync(cu.npath.fromPortablePath(t))}async utimesPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.utimes(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}utimesSync(t,r,s){this.realFs.utimesSync(cu.npath.fromPortablePath(t),r,s)}async lutimesPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.lutimes(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}lutimesSync(t,r,s){this.realFs.lutimesSync(cu.npath.fromPortablePath(t),r,s)}async mkdirPromise(t,r){return await new Promise((s,c)=>{this.realFs.mkdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}mkdirSync(t,r){return this.realFs.mkdirSync(cu.npath.fromPortablePath(t),r)}async rmdirPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.rmdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.rmdir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}rmdirSync(t,r){return this.realFs.rmdirSync(cu.npath.fromPortablePath(t),r)}async rmPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.rm(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.rm(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}rmSync(t,r){return this.realFs.rmSync(cu.npath.fromPortablePath(t),r)}async linkPromise(t,r){return await new Promise((s,c)=>{this.realFs.link(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),this.makeCallback(s,c))})}linkSync(t,r){return this.realFs.linkSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r))}async symlinkPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.symlink(cu.npath.fromPortablePath(t.replace(/\/+$/,"")),cu.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}symlinkSync(t,r,s){return this.realFs.symlinkSync(cu.npath.fromPortablePath(t.replace(/\/+$/,"")),cu.npath.fromPortablePath(r),s)}async readFilePromise(t,r){return await new Promise((s,c)=>{let o=typeof t=="string"?cu.npath.fromPortablePath(t):t;this.realFs.readFile(o,r,this.makeCallback(s,c))})}readFileSync(t,r){let s=typeof t=="string"?cu.npath.fromPortablePath(t):t;return this.realFs.readFileSync(s,r)}async readdirPromise(t,r){return await new Promise((s,c)=>{r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(o=>s(o.map(jPr)),c)):this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(o=>s(o.map(cu.npath.toPortablePath)),c)):this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.readdir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}readdirSync(t,r){return r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdirSync(cu.npath.fromPortablePath(t),r).map(jPr):this.realFs.readdirSync(cu.npath.fromPortablePath(t),r).map(cu.npath.toPortablePath):this.realFs.readdirSync(cu.npath.fromPortablePath(t),r):this.realFs.readdirSync(cu.npath.fromPortablePath(t))}async readlinkPromise(t){return await new Promise((r,s)=>{this.realFs.readlink(cu.npath.fromPortablePath(t),this.makeCallback(r,s))}).then(r=>cu.npath.toPortablePath(r))}readlinkSync(t){return cu.npath.toPortablePath(this.realFs.readlinkSync(cu.npath.fromPortablePath(t)))}async truncatePromise(t,r){return await new Promise((s,c)=>{this.realFs.truncate(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}truncateSync(t,r){return this.realFs.truncateSync(cu.npath.fromPortablePath(t),r)}async ftruncatePromise(t,r){return await new Promise((s,c)=>{this.realFs.ftruncate(t,r,this.makeCallback(s,c))})}ftruncateSync(t,r){return this.realFs.ftruncateSync(t,r)}watch(t,r,s){return this.realFs.watch(cu.npath.fromPortablePath(t),r,s)}watchFile(t,r,s){return this.realFs.watchFile(cu.npath.fromPortablePath(t),r,s)}unwatchFile(t,r){return this.realFs.unwatchFile(cu.npath.fromPortablePath(t),r)}makeCallback(t,r){return(s,c)=>{s?r(s):t(c)}}};vYe.NodeFS=sNt});var HPr=ae(DYe=>{"use strict";Object.defineProperty(DYe,"__esModule",{value:!0});DYe.CwdFS=void 0;var FWi=Wae(),LWi=kW(),oNt=uF(),aNt=class extends LWi.ProxiedFS{constructor(t,{baseFs:r=new FWi.NodeFS}={}){super(oNt.ppath),this.target=this.pathUtils.normalize(t),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.target)}resolve(t){return this.pathUtils.isAbsolute(t)?oNt.ppath.normalize(t):this.baseFs.resolve(oNt.ppath.join(this.target,t))}mapFromBase(t){return t}mapToBase(t){return this.pathUtils.isAbsolute(t)?t:this.pathUtils.join(this.target,t)}};DYe.CwdFS=aNt});var JPr=ae(wYe=>{"use strict";Object.defineProperty(wYe,"__esModule",{value:!0});wYe.JailFS=void 0;var QWi=Wae(),MWi=kW(),bYe=uF(),qPr=bYe.PortablePath.root,cNt=class extends MWi.ProxiedFS{constructor(t,{baseFs:r=new QWi.NodeFS}={}){super(bYe.ppath),this.target=this.pathUtils.resolve(bYe.PortablePath.root,t),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.pathUtils.relative(bYe.PortablePath.root,this.target))}getTarget(){return this.target}getBaseFs(){return this.baseFs}mapToBase(t){let r=this.pathUtils.normalize(t);if(this.pathUtils.isAbsolute(t))return this.pathUtils.resolve(this.target,this.pathUtils.relative(qPr,t));if(r.match(/^\.\.\/?/))throw new Error(`Resolving this path (${t}) would escape the jail`);return this.pathUtils.resolve(this.target,t)}mapFromBase(t){return this.pathUtils.resolve(qPr,this.pathUtils.relative(this.target,t))}};wYe.JailFS=cNt});var VPr=ae(BYe=>{"use strict";Object.defineProperty(BYe,"__esModule",{value:!0});BYe.LazyFS=void 0;var UWi=kW(),lNt=class extends UWi.ProxiedFS{constructor(t,r){super(r),this.instance=null,this.factory=t}get baseFs(){return this.instance||(this.instance=this.factory()),this.instance}set baseFs(t){this.instance=t}mapFromBase(t){return t}mapToBase(t){return t}};BYe.LazyFS=lNt});var WPr=ae(RYe=>{"use strict";Object.defineProperty(RYe,"__esModule",{value:!0});RYe.MountFS=void 0;var GWi=(Ma(),li(Qa)),xge=qt("fs"),jWi=Vae(),HWi=Wae(),xYe=eNt(),fF=GWi.__importStar(_Ye()),NYe=uF(),pF=4278190080,uNt=class extends jWi.BasePortableFakeFS{constructor({baseFs:t=new HWi.NodeFS,filter:r=null,magicByte:s=42,maxOpenFiles:c=1/0,useCache:o=!0,maxAge:f=5e3,typeCheck:_=xge.constants.S_IFREG,getMountPoint:A,factoryPromise:y,factorySync:I}){if(Math.floor(s)!==s||!(s>1&&s<=127))throw new Error("The magic byte must be set to a round value between 1 and 127 included");super(),this.fdMap=new Map,this.nextFd=3,this.isMount=new Set,this.notMount=new Set,this.realPaths=new Map,this.limitOpenFilesTimeout=null,this.baseFs=t,this.mountInstances=o?new Map:null,this.factoryPromise=y,this.factorySync=I,this.filter=r,this.getMountPoint=A,this.magic=s<<24,this.maxAge=f,this.maxOpenFiles=c,this.typeCheck=_}getExtractHint(t){return this.baseFs.getExtractHint(t)}getRealPath(){return this.baseFs.getRealPath()}saveAndClose(){if((0,xYe.unwatchAllFiles)(this),this.mountInstances)for(let[t,{childFs:r}]of this.mountInstances.entries())r.saveAndClose?.(),this.mountInstances.delete(t)}discardAndClose(){if((0,xYe.unwatchAllFiles)(this),this.mountInstances)for(let[t,{childFs:r}]of this.mountInstances.entries())r.discardAndClose?.(),this.mountInstances.delete(t)}resolve(t){return this.baseFs.resolve(t)}remapFd(t,r){let s=this.nextFd++|this.magic;return this.fdMap.set(s,[t,r]),s}async openPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.openPromise(t,r,s),async(c,{subPath:o})=>this.remapFd(c,await c.openPromise(o,r,s)))}openSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.openSync(t,r,s),(c,{subPath:o})=>this.remapFd(c,c.openSync(o,r,s)))}async opendirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.opendirPromise(t,r),async(s,{subPath:c})=>await s.opendirPromise(c,r),{requireSubpath:!1})}opendirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.opendirSync(t,r),(s,{subPath:c})=>s.opendirSync(c,r),{requireSubpath:!1})}async readPromise(t,r,s,c,o){if((t&pF)!==this.magic)return await this.baseFs.readPromise(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("read");let[_,A]=f;return await _.readPromise(A,r,s,c,o)}readSync(t,r,s,c,o){if((t&pF)!==this.magic)return this.baseFs.readSync(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("readSync");let[_,A]=f;return _.readSync(A,r,s,c,o)}async writePromise(t,r,s,c,o){if((t&pF)!==this.magic)return typeof r=="string"?await this.baseFs.writePromise(t,r,s):await this.baseFs.writePromise(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("write");let[_,A]=f;return typeof r=="string"?await _.writePromise(A,r,s):await _.writePromise(A,r,s,c,o)}writeSync(t,r,s,c,o){if((t&pF)!==this.magic)return typeof r=="string"?this.baseFs.writeSync(t,r,s):this.baseFs.writeSync(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("writeSync");let[_,A]=f;return typeof r=="string"?_.writeSync(A,r,s):_.writeSync(A,r,s,c,o)}async closePromise(t){if((t&pF)!==this.magic)return await this.baseFs.closePromise(t);let r=this.fdMap.get(t);if(typeof r>"u")throw fF.EBADF("close");this.fdMap.delete(t);let[s,c]=r;return await s.closePromise(c)}closeSync(t){if((t&pF)!==this.magic)return this.baseFs.closeSync(t);let r=this.fdMap.get(t);if(typeof r>"u")throw fF.EBADF("closeSync");this.fdMap.delete(t);let[s,c]=r;return s.closeSync(c)}createReadStream(t,r){return t===null?this.baseFs.createReadStream(t,r):this.makeCallSync(t,()=>this.baseFs.createReadStream(t,r),(s,{archivePath:c,subPath:o})=>{let f=s.createReadStream(o,r);return f.path=NYe.npath.fromPortablePath(this.pathUtils.join(c,o)),f})}createWriteStream(t,r){return t===null?this.baseFs.createWriteStream(t,r):this.makeCallSync(t,()=>this.baseFs.createWriteStream(t,r),(s,{subPath:c})=>s.createWriteStream(c,r))}async realpathPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.realpathPromise(t),async(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=await this.baseFs.realpathPromise(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(NYe.PortablePath.root,await r.realpathPromise(c)))})}realpathSync(t){return this.makeCallSync(t,()=>this.baseFs.realpathSync(t),(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=this.baseFs.realpathSync(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(NYe.PortablePath.root,r.realpathSync(c)))})}async existsPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.existsPromise(t),async(r,{subPath:s})=>await r.existsPromise(s))}existsSync(t){return this.makeCallSync(t,()=>this.baseFs.existsSync(t),(r,{subPath:s})=>r.existsSync(s))}async accessPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.accessPromise(t,r),async(s,{subPath:c})=>await s.accessPromise(c,r))}accessSync(t,r){return this.makeCallSync(t,()=>this.baseFs.accessSync(t,r),(s,{subPath:c})=>s.accessSync(c,r))}async statPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.statPromise(t,r),async(s,{subPath:c})=>await s.statPromise(c,r))}statSync(t,r){return this.makeCallSync(t,()=>this.baseFs.statSync(t,r),(s,{subPath:c})=>s.statSync(c,r))}async fstatPromise(t,r){if((t&pF)!==this.magic)return this.baseFs.fstatPromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fstat");let[c,o]=s;return c.fstatPromise(o,r)}fstatSync(t,r){if((t&pF)!==this.magic)return this.baseFs.fstatSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fstatSync");let[c,o]=s;return c.fstatSync(o,r)}async lstatPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.lstatPromise(t,r),async(s,{subPath:c})=>await s.lstatPromise(c,r))}lstatSync(t,r){return this.makeCallSync(t,()=>this.baseFs.lstatSync(t,r),(s,{subPath:c})=>s.lstatSync(c,r))}async fchmodPromise(t,r){if((t&pF)!==this.magic)return this.baseFs.fchmodPromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fchmod");let[c,o]=s;return c.fchmodPromise(o,r)}fchmodSync(t,r){if((t&pF)!==this.magic)return this.baseFs.fchmodSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fchmodSync");let[c,o]=s;return c.fchmodSync(o,r)}async chmodPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.chmodPromise(t,r),async(s,{subPath:c})=>await s.chmodPromise(c,r))}chmodSync(t,r){return this.makeCallSync(t,()=>this.baseFs.chmodSync(t,r),(s,{subPath:c})=>s.chmodSync(c,r))}async fchownPromise(t,r,s){if((t&pF)!==this.magic)return this.baseFs.fchownPromise(t,r,s);let c=this.fdMap.get(t);if(typeof c>"u")throw fF.EBADF("fchown");let[o,f]=c;return o.fchownPromise(f,r,s)}fchownSync(t,r,s){if((t&pF)!==this.magic)return this.baseFs.fchownSync(t,r,s);let c=this.fdMap.get(t);if(typeof c>"u")throw fF.EBADF("fchownSync");let[o,f]=c;return o.fchownSync(f,r,s)}async chownPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.chownPromise(t,r,s),async(c,{subPath:o})=>await c.chownPromise(o,r,s))}chownSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.chownSync(t,r,s),(c,{subPath:o})=>c.chownSync(o,r,s))}async renamePromise(t,r){return await this.makeCallPromise(t,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.renamePromise(t,r),async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),async(s,{subPath:c})=>await this.makeCallPromise(r,async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},async(o,{subPath:f})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return await s.renamePromise(c,f)}))}renameSync(t,r){return this.makeCallSync(t,()=>this.makeCallSync(r,()=>this.baseFs.renameSync(t,r),()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),(s,{subPath:c})=>this.makeCallSync(r,()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},(o,{subPath:f})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return s.renameSync(c,f)}))}async copyFilePromise(t,r,s=0){let c=async(o,f,_,A)=>{if(s&xge.constants.COPYFILE_FICLONE_FORCE)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${f}' -> ${A}'`),{code:"EXDEV"});if(s&xge.constants.COPYFILE_EXCL&&await this.existsPromise(f))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${f}' -> '${A}'`),{code:"EEXIST"});let y;try{y=await o.readFilePromise(f)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${f}' -> '${A}'`),{code:"EINVAL"})}await _.writeFilePromise(A,y)};return await this.makeCallPromise(t,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.copyFilePromise(t,r,s),async(o,{subPath:f})=>await c(this.baseFs,t,o,f)),async(o,{subPath:f})=>await this.makeCallPromise(r,async()=>await c(o,f,this.baseFs,r),async(_,{subPath:A})=>o!==_?await c(o,f,_,A):await o.copyFilePromise(f,A,s)))}copyFileSync(t,r,s=0){let c=(o,f,_,A)=>{if(s&xge.constants.COPYFILE_FICLONE_FORCE)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${f}' -> ${A}'`),{code:"EXDEV"});if(s&xge.constants.COPYFILE_EXCL&&this.existsSync(f))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${f}' -> '${A}'`),{code:"EEXIST"});let y;try{y=o.readFileSync(f)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${f}' -> '${A}'`),{code:"EINVAL"})}_.writeFileSync(A,y)};return this.makeCallSync(t,()=>this.makeCallSync(r,()=>this.baseFs.copyFileSync(t,r,s),(o,{subPath:f})=>c(this.baseFs,t,o,f)),(o,{subPath:f})=>this.makeCallSync(r,()=>c(o,f,this.baseFs,r),(_,{subPath:A})=>o!==_?c(o,f,_,A):o.copyFileSync(f,A,s)))}async appendFilePromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.appendFilePromise(t,r,s),async(c,{subPath:o})=>await c.appendFilePromise(o,r,s))}appendFileSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.appendFileSync(t,r,s),(c,{subPath:o})=>c.appendFileSync(o,r,s))}async writeFilePromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.writeFilePromise(t,r,s),async(c,{subPath:o})=>await c.writeFilePromise(o,r,s))}writeFileSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.writeFileSync(t,r,s),(c,{subPath:o})=>c.writeFileSync(o,r,s))}async unlinkPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.unlinkPromise(t),async(r,{subPath:s})=>await r.unlinkPromise(s))}unlinkSync(t){return this.makeCallSync(t,()=>this.baseFs.unlinkSync(t),(r,{subPath:s})=>r.unlinkSync(s))}async utimesPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.utimesPromise(t,r,s),async(c,{subPath:o})=>await c.utimesPromise(o,r,s))}utimesSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.utimesSync(t,r,s),(c,{subPath:o})=>c.utimesSync(o,r,s))}async lutimesPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.lutimesPromise(t,r,s),async(c,{subPath:o})=>await c.lutimesPromise(o,r,s))}lutimesSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.lutimesSync(t,r,s),(c,{subPath:o})=>c.lutimesSync(o,r,s))}async mkdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.mkdirPromise(t,r),async(s,{subPath:c})=>await s.mkdirPromise(c,r))}mkdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.mkdirSync(t,r),(s,{subPath:c})=>s.mkdirSync(c,r))}async rmdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.rmdirPromise(t,r),async(s,{subPath:c})=>await s.rmdirPromise(c,r))}rmdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.rmdirSync(t,r),(s,{subPath:c})=>s.rmdirSync(c,r))}async rmPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.rmPromise(t,r),async(s,{subPath:c})=>await s.rmPromise(c,r))}rmSync(t,r){return this.makeCallSync(t,()=>this.baseFs.rmSync(t,r),(s,{subPath:c})=>s.rmSync(c,r))}async linkPromise(t,r){return await this.makeCallPromise(r,async()=>await this.baseFs.linkPromise(t,r),async(s,{subPath:c})=>await s.linkPromise(t,c))}linkSync(t,r){return this.makeCallSync(r,()=>this.baseFs.linkSync(t,r),(s,{subPath:c})=>s.linkSync(t,c))}async symlinkPromise(t,r,s){return await this.makeCallPromise(r,async()=>await this.baseFs.symlinkPromise(t,r,s),async(c,{subPath:o})=>await c.symlinkPromise(t,o))}symlinkSync(t,r,s){return this.makeCallSync(r,()=>this.baseFs.symlinkSync(t,r,s),(c,{subPath:o})=>c.symlinkSync(t,o))}async readFilePromise(t,r){return this.makeCallPromise(t,async()=>await this.baseFs.readFilePromise(t,r),async(s,{subPath:c})=>await s.readFilePromise(c,r))}readFileSync(t,r){return this.makeCallSync(t,()=>this.baseFs.readFileSync(t,r),(s,{subPath:c})=>s.readFileSync(c,r))}async readdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.readdirPromise(t,r),async(s,{subPath:c})=>await s.readdirPromise(c,r),{requireSubpath:!1})}readdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.readdirSync(t,r),(s,{subPath:c})=>s.readdirSync(c,r),{requireSubpath:!1})}async readlinkPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.readlinkPromise(t),async(r,{subPath:s})=>await r.readlinkPromise(s))}readlinkSync(t){return this.makeCallSync(t,()=>this.baseFs.readlinkSync(t),(r,{subPath:s})=>r.readlinkSync(s))}async truncatePromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.truncatePromise(t,r),async(s,{subPath:c})=>await s.truncatePromise(c,r))}truncateSync(t,r){return this.makeCallSync(t,()=>this.baseFs.truncateSync(t,r),(s,{subPath:c})=>s.truncateSync(c,r))}async ftruncatePromise(t,r){if((t&pF)!==this.magic)return this.baseFs.ftruncatePromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("ftruncate");let[c,o]=s;return c.ftruncatePromise(o,r)}ftruncateSync(t,r){if((t&pF)!==this.magic)return this.baseFs.ftruncateSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("ftruncateSync");let[c,o]=s;return c.ftruncateSync(o,r)}watch(t,r,s){return this.makeCallSync(t,()=>this.baseFs.watch(t,r,s),(c,{subPath:o})=>c.watch(o,r,s))}watchFile(t,r,s){return this.makeCallSync(t,()=>this.baseFs.watchFile(t,r,s),()=>(0,xYe.watchFile)(this,t,r,s))}unwatchFile(t,r){return this.makeCallSync(t,()=>this.baseFs.unwatchFile(t,r),()=>(0,xYe.unwatchFile)(this,t,r))}async makeCallPromise(t,r,s,{requireSubpath:c=!0}={}){if(typeof t!="string")return await r();let o=this.resolve(t),f=this.findMount(o);return f?c&&f.subPath==="/"?await r():await this.getMountPromise(f.archivePath,async _=>await s(_,f)):await r()}makeCallSync(t,r,s,{requireSubpath:c=!0}={}){if(typeof t!="string")return r();let o=this.resolve(t),f=this.findMount(o);return!f||c&&f.subPath==="/"?r():this.getMountSync(f.archivePath,_=>s(_,f))}findMount(t){if(this.filter&&!this.filter.test(t))return null;let r="";for(;;){let s=t.substring(r.length),c=this.getMountPoint(s,r);if(!c)return null;if(r=this.pathUtils.join(r,c),!this.isMount.has(r)){if(this.notMount.has(r))continue;try{if(this.typeCheck!==null&&(this.baseFs.lstatSync(r).mode&xge.constants.S_IFMT)!==this.typeCheck){this.notMount.add(r);continue}}catch{return null}this.isMount.add(r)}return{archivePath:r,subPath:this.pathUtils.join(NYe.PortablePath.root,t.substring(r.length))}}}limitOpenFiles(t){if(this.mountInstances===null)return;let r=Date.now(),s=r+this.maxAge,c=t===null?0:this.mountInstances.size-t;for(let[o,{childFs:f,expiresAt:_,refCount:A}]of this.mountInstances.entries())if(!(A!==0||f.hasOpenFileHandles?.())){if(r>=_){f.saveAndClose?.(),this.mountInstances.delete(o),c-=1;continue}else if(t===null||c<=0){s=_;break}f.saveAndClose?.(),this.mountInstances.delete(o),c-=1}this.limitOpenFilesTimeout===null&&(t===null&&this.mountInstances.size>0||t!==null)&&isFinite(s)&&(this.limitOpenFilesTimeout=setTimeout(()=>{this.limitOpenFilesTimeout=null,this.limitOpenFiles(null)},s-r).unref())}async getMountPromise(t,r){if(this.mountInstances){let s=this.mountInstances.get(t);if(!s){let c=await this.factoryPromise(this.baseFs,t);s=this.mountInstances.get(t),s||(s={childFs:c(),expiresAt:0,refCount:0})}this.mountInstances.delete(t),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(t,s),s.expiresAt=Date.now()+this.maxAge,s.refCount+=1;try{return await r(s.childFs)}finally{s.refCount-=1}}else{let s=(await this.factoryPromise(this.baseFs,t))();try{return await r(s)}finally{s.saveAndClose?.()}}}getMountSync(t,r){if(this.mountInstances){let s=this.mountInstances.get(t);return s||(s={childFs:this.factorySync(this.baseFs,t),expiresAt:0,refCount:0}),this.mountInstances.delete(t),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(t,s),s.expiresAt=Date.now()+this.maxAge,r(s.childFs)}else{let s=this.factorySync(this.baseFs,t);try{return r(s)}finally{s.saveAndClose?.()}}}};RYe.MountFS=uNt});var YPr=ae(kYe=>{"use strict";Object.defineProperty(kYe,"__esModule",{value:!0});kYe.NoFS=void 0;var qWi=Vae(),JWi=uF(),bf=()=>Object.assign(new Error("ENOSYS: unsupported filesystem access"),{code:"ENOSYS"}),sRe=class extends qWi.FakeFS{constructor(){super(JWi.ppath)}getExtractHint(){throw bf()}getRealPath(){throw bf()}resolve(){throw bf()}async openPromise(){throw bf()}openSync(){throw bf()}async opendirPromise(){throw bf()}opendirSync(){throw bf()}async readPromise(){throw bf()}readSync(){throw bf()}async writePromise(){throw bf()}writeSync(){throw bf()}async closePromise(){throw bf()}closeSync(){throw bf()}createWriteStream(){throw bf()}createReadStream(){throw bf()}async realpathPromise(){throw bf()}realpathSync(){throw bf()}async readdirPromise(){throw bf()}readdirSync(){throw bf()}async existsPromise(t){throw bf()}existsSync(t){throw bf()}async accessPromise(){throw bf()}accessSync(){throw bf()}async statPromise(){throw bf()}statSync(){throw bf()}async fstatPromise(t){throw bf()}fstatSync(t){throw bf()}async lstatPromise(t){throw bf()}lstatSync(t){throw bf()}async fchmodPromise(){throw bf()}fchmodSync(){throw bf()}async chmodPromise(){throw bf()}chmodSync(){throw bf()}async fchownPromise(){throw bf()}fchownSync(){throw bf()}async chownPromise(){throw bf()}chownSync(){throw bf()}async mkdirPromise(){throw bf()}mkdirSync(){throw bf()}async rmdirPromise(){throw bf()}rmdirSync(){throw bf()}async rmPromise(){throw bf()}rmSync(){throw bf()}async linkPromise(){throw bf()}linkSync(){throw bf()}async symlinkPromise(){throw bf()}symlinkSync(){throw bf()}async renamePromise(){throw bf()}renameSync(){throw bf()}async copyFilePromise(){throw bf()}copyFileSync(){throw bf()}async appendFilePromise(){throw bf()}appendFileSync(){throw bf()}async writeFilePromise(){throw bf()}writeFileSync(){throw bf()}async unlinkPromise(){throw bf()}unlinkSync(){throw bf()}async utimesPromise(){throw bf()}utimesSync(){throw bf()}async lutimesPromise(){throw bf()}lutimesSync(){throw bf()}async readFilePromise(){throw bf()}readFileSync(){throw bf()}async readlinkPromise(){throw bf()}readlinkSync(){throw bf()}async truncatePromise(){throw bf()}truncateSync(){throw bf()}async ftruncatePromise(t,r){throw bf()}ftruncateSync(t,r){throw bf()}watch(){throw bf()}watchFile(){throw bf()}unwatchFile(){throw bf()}};kYe.NoFS=sRe;sRe.instance=new sRe});var zPr=ae(PYe=>{"use strict";Object.defineProperty(PYe,"__esModule",{value:!0});PYe.PosixFS=void 0;var VWi=kW(),fNt=uF(),pNt=class extends VWi.ProxiedFS{constructor(t){super(fNt.npath),this.baseFs=t}mapFromBase(t){return fNt.npath.fromPortablePath(t)}mapToBase(t){return fNt.npath.toPortablePath(t)}};PYe.PosixFS=pNt});var KPr=ae(OYe=>{"use strict";Object.defineProperty(OYe,"__esModule",{value:!0});OYe.VirtualFS=void 0;var WWi=Wae(),YWi=kW(),b5=uF(),zWi=/^[0-9]+$/,dNt=/^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/,KWi=/^([^/]+-)?[a-f0-9]+$/,_Nt=class e extends YWi.ProxiedFS{static makeVirtualPath(t,r,s){if(b5.ppath.basename(t)!=="__virtual__")throw new Error('Assertion failed: Virtual folders must be named "__virtual__"');if(!b5.ppath.basename(r).match(KWi))throw new Error("Assertion failed: Virtual components must be ended by an hexadecimal hash");let o=b5.ppath.relative(b5.ppath.dirname(t),s).split("/"),f=0;for(;f{"use strict";Object.defineProperty(FYe,"__esModule",{value:!0});FYe.NodePathFS=void 0;var XWi=(Ma(),li(Qa)),XPr=XWi.__importDefault(qt("buffer")),ZWi=qt("url"),$Wi=qt("util"),eYi=kW(),tYi=uF(),ANt=class extends eYi.ProxiedFS{constructor(t){super(tYi.npath),this.baseFs=t}mapFromBase(t){return t}mapToBase(t){if(typeof t=="string")return t;if(t instanceof URL)return(0,ZWi.fileURLToPath)(t);if(Buffer.isBuffer(t)){let r=t.toString();if(!rYi(t,r))throw new Error("Non-utf8 buffers are not supported at the moment. Please upvote the following issue if you encounter this error: https://github.com/yarnpkg/berry/issues/4942");return r}throw new Error(`Unsupported path type: ${(0,$Wi.inspect)(t)}`)}};FYe.NodePathFS=ANt;function rYi(e,t){return typeof XPr.default.isUtf8<"u"?XPr.default.isUtf8(e):Buffer.byteLength(t)===e.byteLength}});var nOr=ae(MYe=>{"use strict";var $Pr,eOr,tOr,rOr;Object.defineProperty(MYe,"__esModule",{value:!0});MYe.FileHandle=void 0;var nYi=qt("readline"),cP=Symbol("kBaseFs"),aee=Symbol("kFd"),cee=Symbol("kClosePromise"),LYe=Symbol("kCloseResolve"),QYe=Symbol("kCloseReject"),Nge=Symbol("kRefs"),w5=Symbol("kRef"),B5=Symbol("kUnref"),hNt=class{constructor(t,r){this[$Pr]=1,this[eOr]=void 0,this[tOr]=void 0,this[rOr]=void 0,this[cP]=r,this[aee]=t}get fd(){return this[aee]}async appendFile(t,r){try{this[w5](this.appendFile);let s=(typeof r=="string"?r:r?.encoding)??void 0;return await this[cP].appendFilePromise(this.fd,t,s?{encoding:s}:void 0)}finally{this[B5]()}}async chown(t,r){try{return this[w5](this.chown),await this[cP].fchownPromise(this.fd,t,r)}finally{this[B5]()}}async chmod(t){try{return this[w5](this.chmod),await this[cP].fchmodPromise(this.fd,t)}finally{this[B5]()}}createReadStream(t){return this[cP].createReadStream(null,{...t,fd:this.fd})}createWriteStream(t){return this[cP].createWriteStream(null,{...t,fd:this.fd})}datasync(){throw new Error("Method not implemented.")}sync(){throw new Error("Method not implemented.")}async read(t,r,s,c){try{this[w5](this.read);let o;return Buffer.isBuffer(t)?o=t:(t??={},o=t.buffer??Buffer.alloc(16384),r=t.offset||0,s=t.length??o.byteLength,c=t.position??null),r??=0,s??=0,s===0?{bytesRead:s,buffer:o}:{bytesRead:await this[cP].readPromise(this.fd,o,r,s,c),buffer:o}}finally{this[B5]()}}async readFile(t){try{this[w5](this.readFile);let r=(typeof t=="string"?t:t?.encoding)??void 0;return await this[cP].readFilePromise(this.fd,r)}finally{this[B5]()}}readLines(t){return(0,nYi.createInterface)({input:this.createReadStream(t),crlfDelay:1/0})}async stat(t){try{return this[w5](this.stat),await this[cP].fstatPromise(this.fd,t)}finally{this[B5]()}}async truncate(t){try{return this[w5](this.truncate),await this[cP].ftruncatePromise(this.fd,t)}finally{this[B5]()}}utimes(t,r){throw new Error("Method not implemented.")}async writeFile(t,r){try{this[w5](this.writeFile);let s=(typeof r=="string"?r:r?.encoding)??void 0;await this[cP].writeFilePromise(this.fd,t,s)}finally{this[B5]()}}async write(...t){try{if(this[w5](this.write),ArrayBuffer.isView(t[0])){let[r,s,c,o]=t;return{bytesWritten:await this[cP].writePromise(this.fd,r,s??void 0,c??void 0,o??void 0),buffer:r}}else{let[r,s,c]=t;return{bytesWritten:await this[cP].writePromise(this.fd,r,s,c),buffer:r}}}finally{this[B5]()}}async writev(t,r){try{this[w5](this.writev);let s=0;if(typeof r<"u")for(let c of t){let o=await this.write(c,void 0,void 0,r);s+=o.bytesWritten,r+=o.bytesWritten}else for(let c of t){let o=await this.write(c);s+=o.bytesWritten}return{buffers:t,bytesWritten:s}}finally{this[B5]()}}readv(t,r){throw new Error("Method not implemented.")}close(){if(this[aee]===-1)return Promise.resolve();if(this[cee])return this[cee];if(this[Nge]--,this[Nge]===0){let t=this[aee];this[aee]=-1,this[cee]=this[cP].closePromise(t).finally(()=>{this[cee]=void 0})}else this[cee]=new Promise((t,r)=>{this[LYe]=t,this[QYe]=r}).finally(()=>{this[cee]=void 0,this[QYe]=void 0,this[LYe]=void 0});return this[cee]}[($Pr=Nge,eOr=cee,tOr=LYe,rOr=QYe,w5)](t){if(this[aee]===-1){let r=new Error("file closed");throw r.code="EBADF",r.syscall=t.name,r}this[Nge]++}[B5](){if(this[Nge]--,this[Nge]===0){let t=this[aee];this[aee]=-1,this[cP].closePromise(t).then(this[LYe],this[QYe])}}};MYe.FileHandle=hNt});var aOr=ae(UYe=>{"use strict";Object.defineProperty(UYe,"__esModule",{value:!0});UYe.patchFs=oOr;UYe.extendFs=oYi;var oRe=qt("util"),iYi=ZPr(),iOr=nOr(),sYi=new Set(["accessSync","appendFileSync","createReadStream","createWriteStream","chmodSync","fchmodSync","chownSync","fchownSync","closeSync","copyFileSync","linkSync","lstatSync","fstatSync","lutimesSync","mkdirSync","openSync","opendirSync","readlinkSync","readFileSync","readdirSync","readlinkSync","realpathSync","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","ftruncateSync","unlinkSync","unwatchFile","utimesSync","watch","watchFile","writeFileSync","writeSync"]),sOr=new Set(["accessPromise","appendFilePromise","fchmodPromise","chmodPromise","fchownPromise","chownPromise","closePromise","copyFilePromise","linkPromise","fstatPromise","lstatPromise","lutimesPromise","mkdirPromise","openPromise","opendirPromise","readdirPromise","realpathPromise","readFilePromise","readdirPromise","readlinkPromise","renamePromise","rmdirPromise","rmPromise","statPromise","symlinkPromise","truncatePromise","ftruncatePromise","unlinkPromise","utimesPromise","writeFilePromise","writeSync"]);function oOr(e,t){t=new iYi.NodePathFS(t);let r=(s,c,o)=>{let f=s[c];s[c]=o,typeof f?.[oRe.promisify.custom]<"u"&&(o[oRe.promisify.custom]=f[oRe.promisify.custom])};{r(e,"exists",(s,...c)=>{let f=typeof c[c.length-1]=="function"?c.pop():()=>{};process.nextTick(()=>{t.existsPromise(s).then(_=>{f(_)},()=>{f(!1)})})}),r(e,"read",(...s)=>{let[c,o,f,_,A,y]=s;if(s.length<=3){let I={};s.length<3?y=s[1]:(I=s[1],y=s[2]),{buffer:o=Buffer.alloc(16384),offset:f=0,length:_=o.byteLength,position:A}=I}if(f==null&&(f=0),_|=0,_===0){process.nextTick(()=>{y(null,0,o)});return}A==null&&(A=-1),process.nextTick(()=>{t.readPromise(c,o,f,_,A).then(I=>{y(null,I,o)},I=>{y(I,0,o)})})});for(let s of sOr){let c=s.replace(/Promise$/,"");if(typeof e[c]>"u")continue;let o=t[s];if(typeof o>"u")continue;r(e,c,(..._)=>{let y=typeof _[_.length-1]=="function"?_.pop():()=>{};process.nextTick(()=>{o.apply(t,_).then(I=>{y(null,I)},I=>{y(I)})})})}e.realpath.native=e.realpath}{r(e,"existsSync",s=>{try{return t.existsSync(s)}catch{return!1}}),r(e,"readSync",(...s)=>{let[c,o,f,_,A]=s;return s.length<=3&&({offset:f=0,length:_=o.byteLength,position:A}=s[2]||{}),f==null&&(f=0),_|=0,_===0?0:(A==null&&(A=-1),t.readSync(c,o,f,_,A))});for(let s of sYi){let c=s;if(typeof e[c]>"u")continue;let o=t[s];typeof o>"u"||r(e,c,o.bind(t))}e.realpathSync.native=e.realpathSync}{let s=e.promises;for(let c of sOr){let o=c.replace(/Promise$/,"");if(typeof s[o]>"u")continue;let f=t[c];typeof f>"u"||c!=="open"&&r(s,o,(_,...A)=>_ instanceof iOr.FileHandle?_[o].apply(_,A):f.call(t,_,...A))}r(s,"open",async(...c)=>{let o=await t.openPromise(...c);return new iOr.FileHandle(o,t)})}e.read[oRe.promisify.custom]=async(s,c,...o)=>({bytesRead:await t.readPromise(s,c,...o),buffer:c}),e.write[oRe.promisify.custom]=async(s,c,...o)=>({bytesWritten:await t.writePromise(s,c,...o),buffer:c})}function oYi(e,t){let r=Object.create(e);return oOr(r,t),r}});var uOr=ae(lee=>{"use strict";Object.defineProperty(lee,"__esModule",{value:!0});lee.xfs=void 0;var aYi=(Ma(),li(Qa)),cYi=aYi.__importDefault(qt("os")),lYi=Wae(),aRe=uF();function cOr(e){let t=Math.ceil(Math.random()*4294967296).toString(16).padStart(8,"0");return`${e}${t}`}var x5=new Set,mNt=null;function lOr(){if(mNt)return mNt;let e=aRe.npath.toPortablePath(cYi.default.tmpdir()),t=lee.xfs.realpathSync(e);return process.once("exit",()=>{lee.xfs.rmtempSync()}),mNt={tmpdir:e,realTmpdir:t}}lee.xfs=Object.assign(new lYi.NodeFS,{detachTemp(e){x5.delete(e)},mktempSync(e){let{tmpdir:t,realTmpdir:r}=lOr();for(;;){let s=cOr("xfs-");try{this.mkdirSync(aRe.ppath.join(t,s))}catch(o){if(o.code==="EEXIST")continue;throw o}let c=aRe.ppath.join(r,s);if(x5.add(c),typeof e>"u")return c;try{return e(c)}finally{if(x5.has(c)){x5.delete(c);try{this.removeSync(c)}catch{}}}}},async mktempPromise(e){let{tmpdir:t,realTmpdir:r}=lOr();for(;;){let s=cOr("xfs-");try{await this.mkdirPromise(aRe.ppath.join(t,s))}catch(o){if(o.code==="EEXIST")continue;throw o}let c=aRe.ppath.join(r,s);if(x5.add(c),typeof e>"u")return c;try{return await e(c)}finally{if(x5.has(c)){x5.delete(c);try{await this.removePromise(c)}catch{}}}}},async rmtempPromise(){await Promise.all(Array.from(x5.values()).map(async e=>{try{await lee.xfs.removePromise(e,{maxRetries:0}),x5.delete(e)}catch{}}))},rmtempSync(){for(let e of x5)try{lee.xfs.removeSync(e),x5.delete(e)}catch{}}})});var Xo=ae(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.xfs=ad.extendFs=ad.patchFs=ad.VirtualFS=ad.ProxiedFS=ad.PosixFS=ad.NodeFS=ad.NoFS=ad.MountFS=ad.LazyFS=ad.JailFS=ad.CwdFS=ad.BasePortableFakeFS=ad.FakeFS=ad.AliasFS=ad.ppath=ad.npath=ad.Filename=ad.PortablePath=ad.normalizeLineEndings=ad.unwatchAllFiles=ad.unwatchFile=ad.watchFile=ad.CustomDir=ad.opendir=ad.setupCopyIndex=ad.statUtils=ad.errors=ad.constants=void 0;var gNt=(Ma(),li(Qa)),uYi=gNt.__importStar(dYe());ad.constants=uYi;var fYi=gNt.__importStar(_Ye());ad.errors=fYi;var pYi=gNt.__importStar(Yxt());ad.statUtils=pYi;var dYi=Xxt();Object.defineProperty(ad,"setupCopyIndex",{enumerable:!0,get:function(){return dYi.setupCopyIndex}});var fOr=LPr();Object.defineProperty(ad,"opendir",{enumerable:!0,get:function(){return fOr.opendir}});Object.defineProperty(ad,"CustomDir",{enumerable:!0,get:function(){return fOr.CustomDir}});var ENt=eNt();Object.defineProperty(ad,"watchFile",{enumerable:!0,get:function(){return ENt.watchFile}});Object.defineProperty(ad,"unwatchFile",{enumerable:!0,get:function(){return ENt.unwatchFile}});Object.defineProperty(ad,"unwatchAllFiles",{enumerable:!0,get:function(){return ENt.unwatchAllFiles}});var _Yi=Vae();Object.defineProperty(ad,"normalizeLineEndings",{enumerable:!0,get:function(){return _Yi.normalizeLineEndings}});var pOr=uF();Object.defineProperty(ad,"PortablePath",{enumerable:!0,get:function(){return pOr.PortablePath}});Object.defineProperty(ad,"Filename",{enumerable:!0,get:function(){return pOr.Filename}});var dOr=uF();Object.defineProperty(ad,"npath",{enumerable:!0,get:function(){return dOr.npath}});Object.defineProperty(ad,"ppath",{enumerable:!0,get:function(){return dOr.ppath}});var AYi=GPr();Object.defineProperty(ad,"AliasFS",{enumerable:!0,get:function(){return AYi.AliasFS}});var _Or=Vae();Object.defineProperty(ad,"FakeFS",{enumerable:!0,get:function(){return _Or.FakeFS}});Object.defineProperty(ad,"BasePortableFakeFS",{enumerable:!0,get:function(){return _Or.BasePortableFakeFS}});var hYi=HPr();Object.defineProperty(ad,"CwdFS",{enumerable:!0,get:function(){return hYi.CwdFS}});var mYi=JPr();Object.defineProperty(ad,"JailFS",{enumerable:!0,get:function(){return mYi.JailFS}});var gYi=VPr();Object.defineProperty(ad,"LazyFS",{enumerable:!0,get:function(){return gYi.LazyFS}});var EYi=WPr();Object.defineProperty(ad,"MountFS",{enumerable:!0,get:function(){return EYi.MountFS}});var yYi=YPr();Object.defineProperty(ad,"NoFS",{enumerable:!0,get:function(){return yYi.NoFS}});var CYi=Wae();Object.defineProperty(ad,"NodeFS",{enumerable:!0,get:function(){return CYi.NodeFS}});var IYi=zPr();Object.defineProperty(ad,"PosixFS",{enumerable:!0,get:function(){return IYi.PosixFS}});var TYi=kW();Object.defineProperty(ad,"ProxiedFS",{enumerable:!0,get:function(){return TYi.ProxiedFS}});var SYi=KPr();Object.defineProperty(ad,"VirtualFS",{enumerable:!0,get:function(){return SYi.VirtualFS}});var AOr=aOr();Object.defineProperty(ad,"patchFs",{enumerable:!0,get:function(){return AOr.patchFs}});Object.defineProperty(ad,"extendFs",{enumerable:!0,get:function(){return AOr.extendFs}});var vYi=uOr();Object.defineProperty(ad,"xfs",{enumerable:!0,get:function(){return vYi.xfs}})});var yOr=ae((hFa,EOr)=>{EOr.exports=gOr;gOr.sync=bYi;var hOr=qt("fs");function DYi(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var s=0;s{SOr.exports=IOr;IOr.sync=wYi;var COr=qt("fs");function IOr(e,t,r){COr.stat(e,function(s,c){r(s,s?!1:TOr(c,t))})}function wYi(e,t){return TOr(COr.statSync(e),t)}function TOr(e,t){return e.isFile()&&BYi(e,t)}function BYi(e,t){var r=e.mode,s=e.uid,c=e.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),f=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),_=parseInt("100",8),A=parseInt("010",8),y=parseInt("001",8),I=_|A,D=r&y||r&A&&c===f||r&_&&s===o||r&I&&o===0;return D}});var bOr=ae((EFa,DOr)=>{var gFa=qt("fs"),GYe;process.platform==="win32"||global.TESTING_WINDOWS?GYe=yOr():GYe=vOr();DOr.exports=yNt;yNt.sync=xYi;function yNt(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,c){yNt(e,t||{},function(o,f){o?c(o):s(f)})})}GYe(e,t||{},function(s,c){s&&(s.code==="EACCES"||t&&t.ignoreErrors)&&(s=null,c=!1),r(s,c)})}function xYi(e,t){try{return GYe.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var CNt=ae((yFa,kOr)=>{var Rge=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",wOr=qt("path"),NYi=Rge?";":":",BOr=bOr(),xOr=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),NOr=(e,t)=>{let r=t.colon||NYi,s=e.match(/\//)||Rge&&e.match(/\\/)?[""]:[...Rge?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],c=Rge?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Rge?c.split(r):[""];return Rge&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:s,pathExt:o,pathExtExe:c}},ROr=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:s,pathExt:c,pathExtExe:o}=NOr(e,t),f=[],_=y=>new Promise((I,D)=>{if(y===s.length)return t.all&&f.length?I(f):D(xOr(e));let b=s[y],L=/^".*"$/.test(b)?b.slice(1,-1):b,x=wOr.join(L,e),J=!L&&/^\.[\\\/]/.test(e)?e.slice(0,2)+x:x;I(A(J,y,0))}),A=(y,I,D)=>new Promise((b,L)=>{if(D===c.length)return b(_(I+1));let x=c[D];BOr(y+x,{pathExt:o},(J,Y)=>{if(!J&&Y)if(t.all)f.push(y+x);else return b(y+x);return b(A(y,I,D+1))})});return r?_(0).then(y=>r(null,y),r):_(0)},RYi=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:s,pathExtExe:c}=NOr(e,t),o=[];for(let f=0;f{"use strict";var POr=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};INt.exports=POr;INt.exports.default=POr});var QOr=ae((IFa,LOr)=>{"use strict";var OOr=qt("path"),kYi=CNt(),PYi=TNt();function FOr(e,t){let r=e.options.env||process.env,s=process.cwd(),c=e.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let f;try{f=kYi.sync(e.command,{path:r[PYi({env:r})],pathExt:t?OOr.delimiter:void 0})}catch{}finally{o&&process.chdir(s)}return f&&(f=OOr.resolve(c?e.options.cwd:"",f)),f}function OYi(e){return FOr(e)||FOr(e,!0)}LOr.exports=OYi});var MOr=ae((TFa,vNt)=>{"use strict";var SNt=/([()\][%!^"`<>&|;, *?])/g;function FYi(e){return e=e.replace(SNt,"^$1"),e}function LYi(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(SNt,"^$1"),t&&(e=e.replace(SNt,"^$1")),e}vNt.exports.command=FYi;vNt.exports.argument=LYi});var GOr=ae((SFa,UOr)=>{"use strict";UOr.exports=/^#!(.*)/});var DNt=ae((vFa,jOr)=>{"use strict";var QYi=GOr();jOr.exports=(e="")=>{let t=e.match(QYi);if(!t)return null;let[r,s]=t[0].replace(/#! ?/,"").split(" "),c=r.split("/").pop();return c==="env"?s:s?`${c} ${s}`:c}});var qOr=ae((DFa,HOr)=>{"use strict";var bNt=qt("fs"),MYi=DNt();function UYi(e){let r=Buffer.alloc(150),s;try{s=bNt.openSync(e,"r"),bNt.readSync(s,r,0,150,0),bNt.closeSync(s)}catch{}return MYi(r.toString())}HOr.exports=UYi});var YOr=ae((bFa,WOr)=>{"use strict";var GYi=qt("path"),JOr=QOr(),VOr=MOr(),jYi=qOr(),HYi=process.platform==="win32",qYi=/\.(?:com|exe)$/i,JYi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function VYi(e){e.file=JOr(e);let t=e.file&&jYi(e.file);return t?(e.args.unshift(e.file),e.command=t,JOr(e)):e.file}function WYi(e){if(!HYi)return e;let t=VYi(e),r=!qYi.test(t);if(e.options.forceShell||r){let s=JYi.test(t);e.command=GYi.normalize(e.command),e.command=VOr.command(e.command),e.args=e.args.map(o=>VOr.argument(o,s));let c=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${c}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function YYi(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let s={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?s:WYi(s)}WOr.exports=YYi});var XOr=ae((wFa,KOr)=>{"use strict";var wNt=process.platform==="win32";function BNt(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function zYi(e,t){if(!wNt)return;let r=e.emit;e.emit=function(s,c){if(s==="exit"){let o=zOr(c,t,"spawn");if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}}function zOr(e,t){return wNt&&e===1&&!t.file?BNt(t.original,"spawn"):null}function KYi(e,t){return wNt&&e===1&&!t.file?BNt(t.original,"spawnSync"):null}KOr.exports={hookChildProcess:zYi,verifyENOENT:zOr,verifyENOENTSync:KYi,notFoundError:BNt}});var jYe=ae((BFa,kge)=>{"use strict";var ZOr=qt("child_process"),xNt=YOr(),NNt=XOr();function $Or(e,t,r){let s=xNt(e,t,r),c=ZOr.spawn(s.command,s.args,s.options);return NNt.hookChildProcess(c,s),c}function XYi(e,t,r){let s=xNt(e,t,r),c=ZOr.spawnSync(s.command,s.args,s.options);return c.error=c.error||NNt.verifyENOENTSync(c.status,s),c}kge.exports=$Or;kge.exports.spawn=$Or;kge.exports.sync=XYi;kge.exports._parse=xNt;kge.exports._enoent=NNt});var tFr=ae((xFa,eFr)=>{"use strict";function ZYi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Yae(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Yae)}ZYi(Yae,Error);Yae.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D>",hi=Ho(">>",!1),we=">&",os=Ho(">&",!1),Hc=">",Va=Ho(">",!1),zs="<<<",or=Ho("<<<",!1),la="<&",vi=Ho("<&",!1),Uu="<",Gu=Ho("<",!1),Hp=function(it){return{type:"argument",segments:[].concat(...it)}},ap=function(it){return it},Kf="$'",rA=Ho("$'",!1),zr="'",Nr=Ho("'",!1),dr=function(it){return[{type:"text",text:it}]},nn='""',_n=Ho('""',!1),Pn=function(){return{type:"text",text:""}},ji='"',qr=Ho('"',!1),Os=function(it){return it},xo=function(it){return{type:"arithmetic",arithmetic:it,quoted:!0}},ei=function(it){return{type:"shell",shell:it,quoted:!0}},Ia=function(it){return{type:"variable",...it,quoted:!0}},Bf=function(it){return{type:"text",text:it}},Yu=function(it){return{type:"arithmetic",arithmetic:it,quoted:!1}},Af=function(it){return{type:"shell",shell:it,quoted:!1}},wu=function(it){return{type:"variable",...it,quoted:!1}},dl=function(it){return{type:"glob",pattern:it}},Di=/^[^']/,Xi=Eu(["'"],!0,!1),Ki=function(it){return it.join("")},ka=/^[^$"]/,Ks=Eu(["$",'"'],!0,!1),Nl=`\\
+`}function eNt(e,t){return t.replace(/\r?\n/g,wWi(e))}});var kW=ae(TYe=>{"use strict";Object.defineProperty(TYe,"__esModule",{value:!0});TYe.ProxiedFS=void 0;var BWi=Vae(),tNt=class extends BWi.FakeFS{getExtractHint(t){return this.baseFs.getExtractHint(t)}resolve(t){return this.mapFromBase(this.baseFs.resolve(this.mapToBase(t)))}getRealPath(){return this.mapFromBase(this.baseFs.getRealPath())}async openPromise(t,r,s){return this.baseFs.openPromise(this.mapToBase(t),r,s)}openSync(t,r,s){return this.baseFs.openSync(this.mapToBase(t),r,s)}async opendirPromise(t,r){return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(t),r),{path:t})}opendirSync(t,r){return Object.assign(this.baseFs.opendirSync(this.mapToBase(t),r),{path:t})}async readPromise(t,r,s,c,o){return await this.baseFs.readPromise(t,r,s,c,o)}readSync(t,r,s,c,o){return this.baseFs.readSync(t,r,s,c,o)}async writePromise(t,r,s,c,o){return typeof r=="string"?await this.baseFs.writePromise(t,r,s):await this.baseFs.writePromise(t,r,s,c,o)}writeSync(t,r,s,c,o){return typeof r=="string"?this.baseFs.writeSync(t,r,s):this.baseFs.writeSync(t,r,s,c,o)}async closePromise(t){return this.baseFs.closePromise(t)}closeSync(t){this.baseFs.closeSync(t)}createReadStream(t,r){return this.baseFs.createReadStream(t!==null?this.mapToBase(t):t,r)}createWriteStream(t,r){return this.baseFs.createWriteStream(t!==null?this.mapToBase(t):t,r)}async realpathPromise(t){return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(t)))}realpathSync(t){return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(t)))}async existsPromise(t){return this.baseFs.existsPromise(this.mapToBase(t))}existsSync(t){return this.baseFs.existsSync(this.mapToBase(t))}accessSync(t,r){return this.baseFs.accessSync(this.mapToBase(t),r)}async accessPromise(t,r){return this.baseFs.accessPromise(this.mapToBase(t),r)}async statPromise(t,r){return this.baseFs.statPromise(this.mapToBase(t),r)}statSync(t,r){return this.baseFs.statSync(this.mapToBase(t),r)}async fstatPromise(t,r){return this.baseFs.fstatPromise(t,r)}fstatSync(t,r){return this.baseFs.fstatSync(t,r)}lstatPromise(t,r){return this.baseFs.lstatPromise(this.mapToBase(t),r)}lstatSync(t,r){return this.baseFs.lstatSync(this.mapToBase(t),r)}async fchmodPromise(t,r){return this.baseFs.fchmodPromise(t,r)}fchmodSync(t,r){return this.baseFs.fchmodSync(t,r)}async chmodPromise(t,r){return this.baseFs.chmodPromise(this.mapToBase(t),r)}chmodSync(t,r){return this.baseFs.chmodSync(this.mapToBase(t),r)}async fchownPromise(t,r,s){return this.baseFs.fchownPromise(t,r,s)}fchownSync(t,r,s){return this.baseFs.fchownSync(t,r,s)}async chownPromise(t,r,s){return this.baseFs.chownPromise(this.mapToBase(t),r,s)}chownSync(t,r,s){return this.baseFs.chownSync(this.mapToBase(t),r,s)}async renamePromise(t,r){return this.baseFs.renamePromise(this.mapToBase(t),this.mapToBase(r))}renameSync(t,r){return this.baseFs.renameSync(this.mapToBase(t),this.mapToBase(r))}async copyFilePromise(t,r,s=0){return this.baseFs.copyFilePromise(this.mapToBase(t),this.mapToBase(r),s)}copyFileSync(t,r,s=0){return this.baseFs.copyFileSync(this.mapToBase(t),this.mapToBase(r),s)}async appendFilePromise(t,r,s){return this.baseFs.appendFilePromise(this.fsMapToBase(t),r,s)}appendFileSync(t,r,s){return this.baseFs.appendFileSync(this.fsMapToBase(t),r,s)}async writeFilePromise(t,r,s){return this.baseFs.writeFilePromise(this.fsMapToBase(t),r,s)}writeFileSync(t,r,s){return this.baseFs.writeFileSync(this.fsMapToBase(t),r,s)}async unlinkPromise(t){return this.baseFs.unlinkPromise(this.mapToBase(t))}unlinkSync(t){return this.baseFs.unlinkSync(this.mapToBase(t))}async utimesPromise(t,r,s){return this.baseFs.utimesPromise(this.mapToBase(t),r,s)}utimesSync(t,r,s){return this.baseFs.utimesSync(this.mapToBase(t),r,s)}async lutimesPromise(t,r,s){return this.baseFs.lutimesPromise(this.mapToBase(t),r,s)}lutimesSync(t,r,s){return this.baseFs.lutimesSync(this.mapToBase(t),r,s)}async mkdirPromise(t,r){return this.baseFs.mkdirPromise(this.mapToBase(t),r)}mkdirSync(t,r){return this.baseFs.mkdirSync(this.mapToBase(t),r)}async rmdirPromise(t,r){return this.baseFs.rmdirPromise(this.mapToBase(t),r)}rmdirSync(t,r){return this.baseFs.rmdirSync(this.mapToBase(t),r)}async rmPromise(t,r){return this.baseFs.rmPromise(this.mapToBase(t),r)}rmSync(t,r){return this.baseFs.rmSync(this.mapToBase(t),r)}async linkPromise(t,r){return this.baseFs.linkPromise(this.mapToBase(t),this.mapToBase(r))}linkSync(t,r){return this.baseFs.linkSync(this.mapToBase(t),this.mapToBase(r))}async symlinkPromise(t,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(t))return this.baseFs.symlinkPromise(this.mapToBase(t),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),t)),f=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkPromise(f,c,s)}symlinkSync(t,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(t))return this.baseFs.symlinkSync(this.mapToBase(t),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),t)),f=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkSync(f,c,s)}async readFilePromise(t,r){return this.baseFs.readFilePromise(this.fsMapToBase(t),r)}readFileSync(t,r){return this.baseFs.readFileSync(this.fsMapToBase(t),r)}readdirPromise(t,r){return this.baseFs.readdirPromise(this.mapToBase(t),r)}readdirSync(t,r){return this.baseFs.readdirSync(this.mapToBase(t),r)}async readlinkPromise(t){return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(t)))}readlinkSync(t){return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(t)))}async truncatePromise(t,r){return this.baseFs.truncatePromise(this.mapToBase(t),r)}truncateSync(t,r){return this.baseFs.truncateSync(this.mapToBase(t),r)}async ftruncatePromise(t,r){return this.baseFs.ftruncatePromise(t,r)}ftruncateSync(t,r){return this.baseFs.ftruncateSync(t,r)}watch(t,r,s){return this.baseFs.watch(this.mapToBase(t),r,s)}watchFile(t,r,s){return this.baseFs.watchFile(this.mapToBase(t),r,s)}unwatchFile(t,r){return this.baseFs.unwatchFile(this.mapToBase(t),r)}fsMapToBase(t){return typeof t=="number"?t:this.mapToBase(t)}};TYe.ProxiedFS=tNt});var MPr=ae(SYe=>{"use strict";Object.defineProperty(SYe,"__esModule",{value:!0});SYe.AliasFS=void 0;var xWi=kW(),rNt=class extends xWi.ProxiedFS{constructor(t,{baseFs:r,pathUtils:s}){super(s),this.target=t,this.baseFs=r}getRealPath(){return this.target}getBaseFs(){return this.baseFs}mapFromBase(t){return t}mapToBase(t){return t}};SYe.AliasFS=rNt});var Wae=ae(vYe=>{"use strict";Object.defineProperty(vYe,"__esModule",{value:!0});vYe.NodeFS=void 0;var NWi=(Ma(),li(Qa)),RWi=NWi.__importDefault(qt("fs")),kWi=Vae(),cu=uF();function UPr(e){let t=e;return typeof e.path=="string"&&(t.path=cu.npath.toPortablePath(e.path)),t}var nNt=class extends kWi.BasePortableFakeFS{constructor(t=RWi.default){super(),this.realFs=t}getExtractHint(){return!1}getRealPath(){return cu.PortablePath.root}resolve(t){return cu.ppath.resolve(t)}async openPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.open(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}openSync(t,r,s){return this.realFs.openSync(cu.npath.fromPortablePath(t),r,s)}async opendirPromise(t,r){return await new Promise((s,c)=>{typeof r<"u"?this.realFs.opendir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.opendir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))}).then(s=>{let c=s;return Object.defineProperty(c,"path",{value:t,configurable:!0,writable:!0}),c})}opendirSync(t,r){let c=typeof r<"u"?this.realFs.opendirSync(cu.npath.fromPortablePath(t),r):this.realFs.opendirSync(cu.npath.fromPortablePath(t));return Object.defineProperty(c,"path",{value:t,configurable:!0,writable:!0}),c}async readPromise(t,r,s=0,c=0,o=-1){return await new Promise((f,_)=>{this.realFs.read(t,r,s,c,o,(A,y)=>{A?_(A):f(y)})})}readSync(t,r,s,c,o){return this.realFs.readSync(t,r,s,c,o)}async writePromise(t,r,s,c,o){return await new Promise((f,_)=>typeof r=="string"?this.realFs.write(t,r,s,this.makeCallback(f,_)):this.realFs.write(t,r,s,c,o,this.makeCallback(f,_)))}writeSync(t,r,s,c,o){return typeof r=="string"?this.realFs.writeSync(t,r,s):this.realFs.writeSync(t,r,s,c,o)}async closePromise(t){await new Promise((r,s)=>{this.realFs.close(t,this.makeCallback(r,s))})}closeSync(t){this.realFs.closeSync(t)}createReadStream(t,r){let s=t!==null?cu.npath.fromPortablePath(t):t;return this.realFs.createReadStream(s,r)}createWriteStream(t,r){let s=t!==null?cu.npath.fromPortablePath(t):t;return this.realFs.createWriteStream(s,r)}async realpathPromise(t){return await new Promise((r,s)=>{this.realFs.realpath(cu.npath.fromPortablePath(t),{},this.makeCallback(r,s))}).then(r=>cu.npath.toPortablePath(r))}realpathSync(t){return cu.npath.toPortablePath(this.realFs.realpathSync(cu.npath.fromPortablePath(t),{}))}async existsPromise(t){return await new Promise(r=>{this.realFs.exists(cu.npath.fromPortablePath(t),r)})}accessSync(t,r){return this.realFs.accessSync(cu.npath.fromPortablePath(t),r)}async accessPromise(t,r){return await new Promise((s,c)=>{this.realFs.access(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}existsSync(t){return this.realFs.existsSync(cu.npath.fromPortablePath(t))}async statPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.stat(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.stat(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}statSync(t,r){return r?this.realFs.statSync(cu.npath.fromPortablePath(t),r):this.realFs.statSync(cu.npath.fromPortablePath(t))}async fstatPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.fstat(t,r,this.makeCallback(s,c)):this.realFs.fstat(t,this.makeCallback(s,c))})}fstatSync(t,r){return r?this.realFs.fstatSync(t,r):this.realFs.fstatSync(t)}async lstatPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.lstat(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.lstat(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}lstatSync(t,r){return r?this.realFs.lstatSync(cu.npath.fromPortablePath(t),r):this.realFs.lstatSync(cu.npath.fromPortablePath(t))}async fchmodPromise(t,r){return await new Promise((s,c)=>{this.realFs.fchmod(t,r,this.makeCallback(s,c))})}fchmodSync(t,r){return this.realFs.fchmodSync(t,r)}async chmodPromise(t,r){return await new Promise((s,c)=>{this.realFs.chmod(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}chmodSync(t,r){return this.realFs.chmodSync(cu.npath.fromPortablePath(t),r)}async fchownPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.fchown(t,r,s,this.makeCallback(c,o))})}fchownSync(t,r,s){return this.realFs.fchownSync(t,r,s)}async chownPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.chown(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}chownSync(t,r,s){return this.realFs.chownSync(cu.npath.fromPortablePath(t),r,s)}async renamePromise(t,r){return await new Promise((s,c)=>{this.realFs.rename(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),this.makeCallback(s,c))})}renameSync(t,r){return this.realFs.renameSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r))}async copyFilePromise(t,r,s=0){return await new Promise((c,o)=>{this.realFs.copyFile(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}copyFileSync(t,r,s=0){return this.realFs.copyFileSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),s)}async appendFilePromise(t,r,s){return await new Promise((c,o)=>{let f=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.appendFile(f,r,s,this.makeCallback(c,o)):this.realFs.appendFile(f,r,this.makeCallback(c,o))})}appendFileSync(t,r,s){let c=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.appendFileSync(c,r,s):this.realFs.appendFileSync(c,r)}async writeFilePromise(t,r,s){return await new Promise((c,o)=>{let f=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.writeFile(f,r,s,this.makeCallback(c,o)):this.realFs.writeFile(f,r,this.makeCallback(c,o))})}writeFileSync(t,r,s){let c=typeof t=="string"?cu.npath.fromPortablePath(t):t;s?this.realFs.writeFileSync(c,r,s):this.realFs.writeFileSync(c,r)}async unlinkPromise(t){return await new Promise((r,s)=>{this.realFs.unlink(cu.npath.fromPortablePath(t),this.makeCallback(r,s))})}unlinkSync(t){return this.realFs.unlinkSync(cu.npath.fromPortablePath(t))}async utimesPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.utimes(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}utimesSync(t,r,s){this.realFs.utimesSync(cu.npath.fromPortablePath(t),r,s)}async lutimesPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.lutimes(cu.npath.fromPortablePath(t),r,s,this.makeCallback(c,o))})}lutimesSync(t,r,s){this.realFs.lutimesSync(cu.npath.fromPortablePath(t),r,s)}async mkdirPromise(t,r){return await new Promise((s,c)=>{this.realFs.mkdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}mkdirSync(t,r){return this.realFs.mkdirSync(cu.npath.fromPortablePath(t),r)}async rmdirPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.rmdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.rmdir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}rmdirSync(t,r){return this.realFs.rmdirSync(cu.npath.fromPortablePath(t),r)}async rmPromise(t,r){return await new Promise((s,c)=>{r?this.realFs.rm(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.rm(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}rmSync(t,r){return this.realFs.rmSync(cu.npath.fromPortablePath(t),r)}async linkPromise(t,r){return await new Promise((s,c)=>{this.realFs.link(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r),this.makeCallback(s,c))})}linkSync(t,r){return this.realFs.linkSync(cu.npath.fromPortablePath(t),cu.npath.fromPortablePath(r))}async symlinkPromise(t,r,s){return await new Promise((c,o)=>{this.realFs.symlink(cu.npath.fromPortablePath(t.replace(/\/+$/,"")),cu.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}symlinkSync(t,r,s){return this.realFs.symlinkSync(cu.npath.fromPortablePath(t.replace(/\/+$/,"")),cu.npath.fromPortablePath(r),s)}async readFilePromise(t,r){return await new Promise((s,c)=>{let o=typeof t=="string"?cu.npath.fromPortablePath(t):t;this.realFs.readFile(o,r,this.makeCallback(s,c))})}readFileSync(t,r){let s=typeof t=="string"?cu.npath.fromPortablePath(t):t;return this.realFs.readFileSync(s,r)}async readdirPromise(t,r){return await new Promise((s,c)=>{r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(o=>s(o.map(UPr)),c)):this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(o=>s(o.map(cu.npath.toPortablePath)),c)):this.realFs.readdir(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c)):this.realFs.readdir(cu.npath.fromPortablePath(t),this.makeCallback(s,c))})}readdirSync(t,r){return r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdirSync(cu.npath.fromPortablePath(t),r).map(UPr):this.realFs.readdirSync(cu.npath.fromPortablePath(t),r).map(cu.npath.toPortablePath):this.realFs.readdirSync(cu.npath.fromPortablePath(t),r):this.realFs.readdirSync(cu.npath.fromPortablePath(t))}async readlinkPromise(t){return await new Promise((r,s)=>{this.realFs.readlink(cu.npath.fromPortablePath(t),this.makeCallback(r,s))}).then(r=>cu.npath.toPortablePath(r))}readlinkSync(t){return cu.npath.toPortablePath(this.realFs.readlinkSync(cu.npath.fromPortablePath(t)))}async truncatePromise(t,r){return await new Promise((s,c)=>{this.realFs.truncate(cu.npath.fromPortablePath(t),r,this.makeCallback(s,c))})}truncateSync(t,r){return this.realFs.truncateSync(cu.npath.fromPortablePath(t),r)}async ftruncatePromise(t,r){return await new Promise((s,c)=>{this.realFs.ftruncate(t,r,this.makeCallback(s,c))})}ftruncateSync(t,r){return this.realFs.ftruncateSync(t,r)}watch(t,r,s){return this.realFs.watch(cu.npath.fromPortablePath(t),r,s)}watchFile(t,r,s){return this.realFs.watchFile(cu.npath.fromPortablePath(t),r,s)}unwatchFile(t,r){return this.realFs.unwatchFile(cu.npath.fromPortablePath(t),r)}makeCallback(t,r){return(s,c)=>{s?r(s):t(c)}}};vYe.NodeFS=nNt});var GPr=ae(DYe=>{"use strict";Object.defineProperty(DYe,"__esModule",{value:!0});DYe.CwdFS=void 0;var PWi=Wae(),OWi=kW(),iNt=uF(),sNt=class extends OWi.ProxiedFS{constructor(t,{baseFs:r=new PWi.NodeFS}={}){super(iNt.ppath),this.target=this.pathUtils.normalize(t),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.target)}resolve(t){return this.pathUtils.isAbsolute(t)?iNt.ppath.normalize(t):this.baseFs.resolve(iNt.ppath.join(this.target,t))}mapFromBase(t){return t}mapToBase(t){return this.pathUtils.isAbsolute(t)?t:this.pathUtils.join(this.target,t)}};DYe.CwdFS=sNt});var HPr=ae(wYe=>{"use strict";Object.defineProperty(wYe,"__esModule",{value:!0});wYe.JailFS=void 0;var FWi=Wae(),LWi=kW(),bYe=uF(),jPr=bYe.PortablePath.root,oNt=class extends LWi.ProxiedFS{constructor(t,{baseFs:r=new FWi.NodeFS}={}){super(bYe.ppath),this.target=this.pathUtils.resolve(bYe.PortablePath.root,t),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.pathUtils.relative(bYe.PortablePath.root,this.target))}getTarget(){return this.target}getBaseFs(){return this.baseFs}mapToBase(t){let r=this.pathUtils.normalize(t);if(this.pathUtils.isAbsolute(t))return this.pathUtils.resolve(this.target,this.pathUtils.relative(jPr,t));if(r.match(/^\.\.\/?/))throw new Error(`Resolving this path (${t}) would escape the jail`);return this.pathUtils.resolve(this.target,t)}mapFromBase(t){return this.pathUtils.resolve(jPr,this.pathUtils.relative(this.target,t))}};wYe.JailFS=oNt});var qPr=ae(BYe=>{"use strict";Object.defineProperty(BYe,"__esModule",{value:!0});BYe.LazyFS=void 0;var QWi=kW(),aNt=class extends QWi.ProxiedFS{constructor(t,r){super(r),this.instance=null,this.factory=t}get baseFs(){return this.instance||(this.instance=this.factory()),this.instance}set baseFs(t){this.instance=t}mapFromBase(t){return t}mapToBase(t){return t}};BYe.LazyFS=aNt});var JPr=ae(RYe=>{"use strict";Object.defineProperty(RYe,"__esModule",{value:!0});RYe.MountFS=void 0;var MWi=(Ma(),li(Qa)),xge=qt("fs"),UWi=Vae(),GWi=Wae(),xYe=Zxt(),fF=MWi.__importStar(_Ye()),NYe=uF(),pF=4278190080,cNt=class extends UWi.BasePortableFakeFS{constructor({baseFs:t=new GWi.NodeFS,filter:r=null,magicByte:s=42,maxOpenFiles:c=1/0,useCache:o=!0,maxAge:f=5e3,typeCheck:_=xge.constants.S_IFREG,getMountPoint:A,factoryPromise:y,factorySync:I}){if(Math.floor(s)!==s||!(s>1&&s<=127))throw new Error("The magic byte must be set to a round value between 1 and 127 included");super(),this.fdMap=new Map,this.nextFd=3,this.isMount=new Set,this.notMount=new Set,this.realPaths=new Map,this.limitOpenFilesTimeout=null,this.baseFs=t,this.mountInstances=o?new Map:null,this.factoryPromise=y,this.factorySync=I,this.filter=r,this.getMountPoint=A,this.magic=s<<24,this.maxAge=f,this.maxOpenFiles=c,this.typeCheck=_}getExtractHint(t){return this.baseFs.getExtractHint(t)}getRealPath(){return this.baseFs.getRealPath()}saveAndClose(){if((0,xYe.unwatchAllFiles)(this),this.mountInstances)for(let[t,{childFs:r}]of this.mountInstances.entries())r.saveAndClose?.(),this.mountInstances.delete(t)}discardAndClose(){if((0,xYe.unwatchAllFiles)(this),this.mountInstances)for(let[t,{childFs:r}]of this.mountInstances.entries())r.discardAndClose?.(),this.mountInstances.delete(t)}resolve(t){return this.baseFs.resolve(t)}remapFd(t,r){let s=this.nextFd++|this.magic;return this.fdMap.set(s,[t,r]),s}async openPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.openPromise(t,r,s),async(c,{subPath:o})=>this.remapFd(c,await c.openPromise(o,r,s)))}openSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.openSync(t,r,s),(c,{subPath:o})=>this.remapFd(c,c.openSync(o,r,s)))}async opendirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.opendirPromise(t,r),async(s,{subPath:c})=>await s.opendirPromise(c,r),{requireSubpath:!1})}opendirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.opendirSync(t,r),(s,{subPath:c})=>s.opendirSync(c,r),{requireSubpath:!1})}async readPromise(t,r,s,c,o){if((t&pF)!==this.magic)return await this.baseFs.readPromise(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("read");let[_,A]=f;return await _.readPromise(A,r,s,c,o)}readSync(t,r,s,c,o){if((t&pF)!==this.magic)return this.baseFs.readSync(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("readSync");let[_,A]=f;return _.readSync(A,r,s,c,o)}async writePromise(t,r,s,c,o){if((t&pF)!==this.magic)return typeof r=="string"?await this.baseFs.writePromise(t,r,s):await this.baseFs.writePromise(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("write");let[_,A]=f;return typeof r=="string"?await _.writePromise(A,r,s):await _.writePromise(A,r,s,c,o)}writeSync(t,r,s,c,o){if((t&pF)!==this.magic)return typeof r=="string"?this.baseFs.writeSync(t,r,s):this.baseFs.writeSync(t,r,s,c,o);let f=this.fdMap.get(t);if(typeof f>"u")throw fF.EBADF("writeSync");let[_,A]=f;return typeof r=="string"?_.writeSync(A,r,s):_.writeSync(A,r,s,c,o)}async closePromise(t){if((t&pF)!==this.magic)return await this.baseFs.closePromise(t);let r=this.fdMap.get(t);if(typeof r>"u")throw fF.EBADF("close");this.fdMap.delete(t);let[s,c]=r;return await s.closePromise(c)}closeSync(t){if((t&pF)!==this.magic)return this.baseFs.closeSync(t);let r=this.fdMap.get(t);if(typeof r>"u")throw fF.EBADF("closeSync");this.fdMap.delete(t);let[s,c]=r;return s.closeSync(c)}createReadStream(t,r){return t===null?this.baseFs.createReadStream(t,r):this.makeCallSync(t,()=>this.baseFs.createReadStream(t,r),(s,{archivePath:c,subPath:o})=>{let f=s.createReadStream(o,r);return f.path=NYe.npath.fromPortablePath(this.pathUtils.join(c,o)),f})}createWriteStream(t,r){return t===null?this.baseFs.createWriteStream(t,r):this.makeCallSync(t,()=>this.baseFs.createWriteStream(t,r),(s,{subPath:c})=>s.createWriteStream(c,r))}async realpathPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.realpathPromise(t),async(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=await this.baseFs.realpathPromise(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(NYe.PortablePath.root,await r.realpathPromise(c)))})}realpathSync(t){return this.makeCallSync(t,()=>this.baseFs.realpathSync(t),(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=this.baseFs.realpathSync(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(NYe.PortablePath.root,r.realpathSync(c)))})}async existsPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.existsPromise(t),async(r,{subPath:s})=>await r.existsPromise(s))}existsSync(t){return this.makeCallSync(t,()=>this.baseFs.existsSync(t),(r,{subPath:s})=>r.existsSync(s))}async accessPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.accessPromise(t,r),async(s,{subPath:c})=>await s.accessPromise(c,r))}accessSync(t,r){return this.makeCallSync(t,()=>this.baseFs.accessSync(t,r),(s,{subPath:c})=>s.accessSync(c,r))}async statPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.statPromise(t,r),async(s,{subPath:c})=>await s.statPromise(c,r))}statSync(t,r){return this.makeCallSync(t,()=>this.baseFs.statSync(t,r),(s,{subPath:c})=>s.statSync(c,r))}async fstatPromise(t,r){if((t&pF)!==this.magic)return this.baseFs.fstatPromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fstat");let[c,o]=s;return c.fstatPromise(o,r)}fstatSync(t,r){if((t&pF)!==this.magic)return this.baseFs.fstatSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fstatSync");let[c,o]=s;return c.fstatSync(o,r)}async lstatPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.lstatPromise(t,r),async(s,{subPath:c})=>await s.lstatPromise(c,r))}lstatSync(t,r){return this.makeCallSync(t,()=>this.baseFs.lstatSync(t,r),(s,{subPath:c})=>s.lstatSync(c,r))}async fchmodPromise(t,r){if((t&pF)!==this.magic)return this.baseFs.fchmodPromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fchmod");let[c,o]=s;return c.fchmodPromise(o,r)}fchmodSync(t,r){if((t&pF)!==this.magic)return this.baseFs.fchmodSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("fchmodSync");let[c,o]=s;return c.fchmodSync(o,r)}async chmodPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.chmodPromise(t,r),async(s,{subPath:c})=>await s.chmodPromise(c,r))}chmodSync(t,r){return this.makeCallSync(t,()=>this.baseFs.chmodSync(t,r),(s,{subPath:c})=>s.chmodSync(c,r))}async fchownPromise(t,r,s){if((t&pF)!==this.magic)return this.baseFs.fchownPromise(t,r,s);let c=this.fdMap.get(t);if(typeof c>"u")throw fF.EBADF("fchown");let[o,f]=c;return o.fchownPromise(f,r,s)}fchownSync(t,r,s){if((t&pF)!==this.magic)return this.baseFs.fchownSync(t,r,s);let c=this.fdMap.get(t);if(typeof c>"u")throw fF.EBADF("fchownSync");let[o,f]=c;return o.fchownSync(f,r,s)}async chownPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.chownPromise(t,r,s),async(c,{subPath:o})=>await c.chownPromise(o,r,s))}chownSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.chownSync(t,r,s),(c,{subPath:o})=>c.chownSync(o,r,s))}async renamePromise(t,r){return await this.makeCallPromise(t,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.renamePromise(t,r),async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),async(s,{subPath:c})=>await this.makeCallPromise(r,async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},async(o,{subPath:f})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return await s.renamePromise(c,f)}))}renameSync(t,r){return this.makeCallSync(t,()=>this.makeCallSync(r,()=>this.baseFs.renameSync(t,r),()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),(s,{subPath:c})=>this.makeCallSync(r,()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},(o,{subPath:f})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return s.renameSync(c,f)}))}async copyFilePromise(t,r,s=0){let c=async(o,f,_,A)=>{if(s&xge.constants.COPYFILE_FICLONE_FORCE)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${f}' -> ${A}'`),{code:"EXDEV"});if(s&xge.constants.COPYFILE_EXCL&&await this.existsPromise(f))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${f}' -> '${A}'`),{code:"EEXIST"});let y;try{y=await o.readFilePromise(f)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${f}' -> '${A}'`),{code:"EINVAL"})}await _.writeFilePromise(A,y)};return await this.makeCallPromise(t,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.copyFilePromise(t,r,s),async(o,{subPath:f})=>await c(this.baseFs,t,o,f)),async(o,{subPath:f})=>await this.makeCallPromise(r,async()=>await c(o,f,this.baseFs,r),async(_,{subPath:A})=>o!==_?await c(o,f,_,A):await o.copyFilePromise(f,A,s)))}copyFileSync(t,r,s=0){let c=(o,f,_,A)=>{if(s&xge.constants.COPYFILE_FICLONE_FORCE)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${f}' -> ${A}'`),{code:"EXDEV"});if(s&xge.constants.COPYFILE_EXCL&&this.existsSync(f))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${f}' -> '${A}'`),{code:"EEXIST"});let y;try{y=o.readFileSync(f)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${f}' -> '${A}'`),{code:"EINVAL"})}_.writeFileSync(A,y)};return this.makeCallSync(t,()=>this.makeCallSync(r,()=>this.baseFs.copyFileSync(t,r,s),(o,{subPath:f})=>c(this.baseFs,t,o,f)),(o,{subPath:f})=>this.makeCallSync(r,()=>c(o,f,this.baseFs,r),(_,{subPath:A})=>o!==_?c(o,f,_,A):o.copyFileSync(f,A,s)))}async appendFilePromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.appendFilePromise(t,r,s),async(c,{subPath:o})=>await c.appendFilePromise(o,r,s))}appendFileSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.appendFileSync(t,r,s),(c,{subPath:o})=>c.appendFileSync(o,r,s))}async writeFilePromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.writeFilePromise(t,r,s),async(c,{subPath:o})=>await c.writeFilePromise(o,r,s))}writeFileSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.writeFileSync(t,r,s),(c,{subPath:o})=>c.writeFileSync(o,r,s))}async unlinkPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.unlinkPromise(t),async(r,{subPath:s})=>await r.unlinkPromise(s))}unlinkSync(t){return this.makeCallSync(t,()=>this.baseFs.unlinkSync(t),(r,{subPath:s})=>r.unlinkSync(s))}async utimesPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.utimesPromise(t,r,s),async(c,{subPath:o})=>await c.utimesPromise(o,r,s))}utimesSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.utimesSync(t,r,s),(c,{subPath:o})=>c.utimesSync(o,r,s))}async lutimesPromise(t,r,s){return await this.makeCallPromise(t,async()=>await this.baseFs.lutimesPromise(t,r,s),async(c,{subPath:o})=>await c.lutimesPromise(o,r,s))}lutimesSync(t,r,s){return this.makeCallSync(t,()=>this.baseFs.lutimesSync(t,r,s),(c,{subPath:o})=>c.lutimesSync(o,r,s))}async mkdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.mkdirPromise(t,r),async(s,{subPath:c})=>await s.mkdirPromise(c,r))}mkdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.mkdirSync(t,r),(s,{subPath:c})=>s.mkdirSync(c,r))}async rmdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.rmdirPromise(t,r),async(s,{subPath:c})=>await s.rmdirPromise(c,r))}rmdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.rmdirSync(t,r),(s,{subPath:c})=>s.rmdirSync(c,r))}async rmPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.rmPromise(t,r),async(s,{subPath:c})=>await s.rmPromise(c,r))}rmSync(t,r){return this.makeCallSync(t,()=>this.baseFs.rmSync(t,r),(s,{subPath:c})=>s.rmSync(c,r))}async linkPromise(t,r){return await this.makeCallPromise(r,async()=>await this.baseFs.linkPromise(t,r),async(s,{subPath:c})=>await s.linkPromise(t,c))}linkSync(t,r){return this.makeCallSync(r,()=>this.baseFs.linkSync(t,r),(s,{subPath:c})=>s.linkSync(t,c))}async symlinkPromise(t,r,s){return await this.makeCallPromise(r,async()=>await this.baseFs.symlinkPromise(t,r,s),async(c,{subPath:o})=>await c.symlinkPromise(t,o))}symlinkSync(t,r,s){return this.makeCallSync(r,()=>this.baseFs.symlinkSync(t,r,s),(c,{subPath:o})=>c.symlinkSync(t,o))}async readFilePromise(t,r){return this.makeCallPromise(t,async()=>await this.baseFs.readFilePromise(t,r),async(s,{subPath:c})=>await s.readFilePromise(c,r))}readFileSync(t,r){return this.makeCallSync(t,()=>this.baseFs.readFileSync(t,r),(s,{subPath:c})=>s.readFileSync(c,r))}async readdirPromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.readdirPromise(t,r),async(s,{subPath:c})=>await s.readdirPromise(c,r),{requireSubpath:!1})}readdirSync(t,r){return this.makeCallSync(t,()=>this.baseFs.readdirSync(t,r),(s,{subPath:c})=>s.readdirSync(c,r),{requireSubpath:!1})}async readlinkPromise(t){return await this.makeCallPromise(t,async()=>await this.baseFs.readlinkPromise(t),async(r,{subPath:s})=>await r.readlinkPromise(s))}readlinkSync(t){return this.makeCallSync(t,()=>this.baseFs.readlinkSync(t),(r,{subPath:s})=>r.readlinkSync(s))}async truncatePromise(t,r){return await this.makeCallPromise(t,async()=>await this.baseFs.truncatePromise(t,r),async(s,{subPath:c})=>await s.truncatePromise(c,r))}truncateSync(t,r){return this.makeCallSync(t,()=>this.baseFs.truncateSync(t,r),(s,{subPath:c})=>s.truncateSync(c,r))}async ftruncatePromise(t,r){if((t&pF)!==this.magic)return this.baseFs.ftruncatePromise(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("ftruncate");let[c,o]=s;return c.ftruncatePromise(o,r)}ftruncateSync(t,r){if((t&pF)!==this.magic)return this.baseFs.ftruncateSync(t,r);let s=this.fdMap.get(t);if(typeof s>"u")throw fF.EBADF("ftruncateSync");let[c,o]=s;return c.ftruncateSync(o,r)}watch(t,r,s){return this.makeCallSync(t,()=>this.baseFs.watch(t,r,s),(c,{subPath:o})=>c.watch(o,r,s))}watchFile(t,r,s){return this.makeCallSync(t,()=>this.baseFs.watchFile(t,r,s),()=>(0,xYe.watchFile)(this,t,r,s))}unwatchFile(t,r){return this.makeCallSync(t,()=>this.baseFs.unwatchFile(t,r),()=>(0,xYe.unwatchFile)(this,t,r))}async makeCallPromise(t,r,s,{requireSubpath:c=!0}={}){if(typeof t!="string")return await r();let o=this.resolve(t),f=this.findMount(o);return f?c&&f.subPath==="/"?await r():await this.getMountPromise(f.archivePath,async _=>await s(_,f)):await r()}makeCallSync(t,r,s,{requireSubpath:c=!0}={}){if(typeof t!="string")return r();let o=this.resolve(t),f=this.findMount(o);return!f||c&&f.subPath==="/"?r():this.getMountSync(f.archivePath,_=>s(_,f))}findMount(t){if(this.filter&&!this.filter.test(t))return null;let r="";for(;;){let s=t.substring(r.length),c=this.getMountPoint(s,r);if(!c)return null;if(r=this.pathUtils.join(r,c),!this.isMount.has(r)){if(this.notMount.has(r))continue;try{if(this.typeCheck!==null&&(this.baseFs.lstatSync(r).mode&xge.constants.S_IFMT)!==this.typeCheck){this.notMount.add(r);continue}}catch{return null}this.isMount.add(r)}return{archivePath:r,subPath:this.pathUtils.join(NYe.PortablePath.root,t.substring(r.length))}}}limitOpenFiles(t){if(this.mountInstances===null)return;let r=Date.now(),s=r+this.maxAge,c=t===null?0:this.mountInstances.size-t;for(let[o,{childFs:f,expiresAt:_,refCount:A}]of this.mountInstances.entries())if(!(A!==0||f.hasOpenFileHandles?.())){if(r>=_){f.saveAndClose?.(),this.mountInstances.delete(o),c-=1;continue}else if(t===null||c<=0){s=_;break}f.saveAndClose?.(),this.mountInstances.delete(o),c-=1}this.limitOpenFilesTimeout===null&&(t===null&&this.mountInstances.size>0||t!==null)&&isFinite(s)&&(this.limitOpenFilesTimeout=setTimeout(()=>{this.limitOpenFilesTimeout=null,this.limitOpenFiles(null)},s-r).unref())}async getMountPromise(t,r){if(this.mountInstances){let s=this.mountInstances.get(t);if(!s){let c=await this.factoryPromise(this.baseFs,t);s=this.mountInstances.get(t),s||(s={childFs:c(),expiresAt:0,refCount:0})}this.mountInstances.delete(t),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(t,s),s.expiresAt=Date.now()+this.maxAge,s.refCount+=1;try{return await r(s.childFs)}finally{s.refCount-=1}}else{let s=(await this.factoryPromise(this.baseFs,t))();try{return await r(s)}finally{s.saveAndClose?.()}}}getMountSync(t,r){if(this.mountInstances){let s=this.mountInstances.get(t);return s||(s={childFs:this.factorySync(this.baseFs,t),expiresAt:0,refCount:0}),this.mountInstances.delete(t),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(t,s),s.expiresAt=Date.now()+this.maxAge,r(s.childFs)}else{let s=this.factorySync(this.baseFs,t);try{return r(s)}finally{s.saveAndClose?.()}}}};RYe.MountFS=cNt});var VPr=ae(kYe=>{"use strict";Object.defineProperty(kYe,"__esModule",{value:!0});kYe.NoFS=void 0;var jWi=Vae(),HWi=uF(),bf=()=>Object.assign(new Error("ENOSYS: unsupported filesystem access"),{code:"ENOSYS"}),sRe=class extends jWi.FakeFS{constructor(){super(HWi.ppath)}getExtractHint(){throw bf()}getRealPath(){throw bf()}resolve(){throw bf()}async openPromise(){throw bf()}openSync(){throw bf()}async opendirPromise(){throw bf()}opendirSync(){throw bf()}async readPromise(){throw bf()}readSync(){throw bf()}async writePromise(){throw bf()}writeSync(){throw bf()}async closePromise(){throw bf()}closeSync(){throw bf()}createWriteStream(){throw bf()}createReadStream(){throw bf()}async realpathPromise(){throw bf()}realpathSync(){throw bf()}async readdirPromise(){throw bf()}readdirSync(){throw bf()}async existsPromise(t){throw bf()}existsSync(t){throw bf()}async accessPromise(){throw bf()}accessSync(){throw bf()}async statPromise(){throw bf()}statSync(){throw bf()}async fstatPromise(t){throw bf()}fstatSync(t){throw bf()}async lstatPromise(t){throw bf()}lstatSync(t){throw bf()}async fchmodPromise(){throw bf()}fchmodSync(){throw bf()}async chmodPromise(){throw bf()}chmodSync(){throw bf()}async fchownPromise(){throw bf()}fchownSync(){throw bf()}async chownPromise(){throw bf()}chownSync(){throw bf()}async mkdirPromise(){throw bf()}mkdirSync(){throw bf()}async rmdirPromise(){throw bf()}rmdirSync(){throw bf()}async rmPromise(){throw bf()}rmSync(){throw bf()}async linkPromise(){throw bf()}linkSync(){throw bf()}async symlinkPromise(){throw bf()}symlinkSync(){throw bf()}async renamePromise(){throw bf()}renameSync(){throw bf()}async copyFilePromise(){throw bf()}copyFileSync(){throw bf()}async appendFilePromise(){throw bf()}appendFileSync(){throw bf()}async writeFilePromise(){throw bf()}writeFileSync(){throw bf()}async unlinkPromise(){throw bf()}unlinkSync(){throw bf()}async utimesPromise(){throw bf()}utimesSync(){throw bf()}async lutimesPromise(){throw bf()}lutimesSync(){throw bf()}async readFilePromise(){throw bf()}readFileSync(){throw bf()}async readlinkPromise(){throw bf()}readlinkSync(){throw bf()}async truncatePromise(){throw bf()}truncateSync(){throw bf()}async ftruncatePromise(t,r){throw bf()}ftruncateSync(t,r){throw bf()}watch(){throw bf()}watchFile(){throw bf()}unwatchFile(){throw bf()}};kYe.NoFS=sRe;sRe.instance=new sRe});var WPr=ae(PYe=>{"use strict";Object.defineProperty(PYe,"__esModule",{value:!0});PYe.PosixFS=void 0;var qWi=kW(),lNt=uF(),uNt=class extends qWi.ProxiedFS{constructor(t){super(lNt.npath),this.baseFs=t}mapFromBase(t){return lNt.npath.fromPortablePath(t)}mapToBase(t){return lNt.npath.toPortablePath(t)}};PYe.PosixFS=uNt});var YPr=ae(OYe=>{"use strict";Object.defineProperty(OYe,"__esModule",{value:!0});OYe.VirtualFS=void 0;var JWi=Wae(),VWi=kW(),b5=uF(),WWi=/^[0-9]+$/,fNt=/^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/,YWi=/^([^/]+-)?[a-f0-9]+$/,pNt=class e extends VWi.ProxiedFS{static makeVirtualPath(t,r,s){if(b5.ppath.basename(t)!=="__virtual__")throw new Error('Assertion failed: Virtual folders must be named "__virtual__"');if(!b5.ppath.basename(r).match(YWi))throw new Error("Assertion failed: Virtual components must be ended by an hexadecimal hash");let o=b5.ppath.relative(b5.ppath.dirname(t),s).split("/"),f=0;for(;f{"use strict";Object.defineProperty(FYe,"__esModule",{value:!0});FYe.NodePathFS=void 0;var zWi=(Ma(),li(Qa)),zPr=zWi.__importDefault(qt("buffer")),KWi=qt("url"),XWi=qt("util"),ZWi=kW(),$Wi=uF(),dNt=class extends ZWi.ProxiedFS{constructor(t){super($Wi.npath),this.baseFs=t}mapFromBase(t){return t}mapToBase(t){if(typeof t=="string")return t;if(t instanceof URL)return(0,KWi.fileURLToPath)(t);if(Buffer.isBuffer(t)){let r=t.toString();if(!eYi(t,r))throw new Error("Non-utf8 buffers are not supported at the moment. Please upvote the following issue if you encounter this error: https://github.com/yarnpkg/berry/issues/4942");return r}throw new Error(`Unsupported path type: ${(0,XWi.inspect)(t)}`)}};FYe.NodePathFS=dNt;function eYi(e,t){return typeof zPr.default.isUtf8<"u"?zPr.default.isUtf8(e):Buffer.byteLength(t)===e.byteLength}});var tOr=ae(MYe=>{"use strict";var XPr,ZPr,$Pr,eOr;Object.defineProperty(MYe,"__esModule",{value:!0});MYe.FileHandle=void 0;var tYi=qt("readline"),cP=Symbol("kBaseFs"),aee=Symbol("kFd"),cee=Symbol("kClosePromise"),LYe=Symbol("kCloseResolve"),QYe=Symbol("kCloseReject"),Nge=Symbol("kRefs"),w5=Symbol("kRef"),B5=Symbol("kUnref"),_Nt=class{constructor(t,r){this[XPr]=1,this[ZPr]=void 0,this[$Pr]=void 0,this[eOr]=void 0,this[cP]=r,this[aee]=t}get fd(){return this[aee]}async appendFile(t,r){try{this[w5](this.appendFile);let s=(typeof r=="string"?r:r?.encoding)??void 0;return await this[cP].appendFilePromise(this.fd,t,s?{encoding:s}:void 0)}finally{this[B5]()}}async chown(t,r){try{return this[w5](this.chown),await this[cP].fchownPromise(this.fd,t,r)}finally{this[B5]()}}async chmod(t){try{return this[w5](this.chmod),await this[cP].fchmodPromise(this.fd,t)}finally{this[B5]()}}createReadStream(t){return this[cP].createReadStream(null,{...t,fd:this.fd})}createWriteStream(t){return this[cP].createWriteStream(null,{...t,fd:this.fd})}datasync(){throw new Error("Method not implemented.")}sync(){throw new Error("Method not implemented.")}async read(t,r,s,c){try{this[w5](this.read);let o;return Buffer.isBuffer(t)?o=t:(t??={},o=t.buffer??Buffer.alloc(16384),r=t.offset||0,s=t.length??o.byteLength,c=t.position??null),r??=0,s??=0,s===0?{bytesRead:s,buffer:o}:{bytesRead:await this[cP].readPromise(this.fd,o,r,s,c),buffer:o}}finally{this[B5]()}}async readFile(t){try{this[w5](this.readFile);let r=(typeof t=="string"?t:t?.encoding)??void 0;return await this[cP].readFilePromise(this.fd,r)}finally{this[B5]()}}readLines(t){return(0,tYi.createInterface)({input:this.createReadStream(t),crlfDelay:1/0})}async stat(t){try{return this[w5](this.stat),await this[cP].fstatPromise(this.fd,t)}finally{this[B5]()}}async truncate(t){try{return this[w5](this.truncate),await this[cP].ftruncatePromise(this.fd,t)}finally{this[B5]()}}utimes(t,r){throw new Error("Method not implemented.")}async writeFile(t,r){try{this[w5](this.writeFile);let s=(typeof r=="string"?r:r?.encoding)??void 0;await this[cP].writeFilePromise(this.fd,t,s)}finally{this[B5]()}}async write(...t){try{if(this[w5](this.write),ArrayBuffer.isView(t[0])){let[r,s,c,o]=t;return{bytesWritten:await this[cP].writePromise(this.fd,r,s??void 0,c??void 0,o??void 0),buffer:r}}else{let[r,s,c]=t;return{bytesWritten:await this[cP].writePromise(this.fd,r,s,c),buffer:r}}}finally{this[B5]()}}async writev(t,r){try{this[w5](this.writev);let s=0;if(typeof r<"u")for(let c of t){let o=await this.write(c,void 0,void 0,r);s+=o.bytesWritten,r+=o.bytesWritten}else for(let c of t){let o=await this.write(c);s+=o.bytesWritten}return{buffers:t,bytesWritten:s}}finally{this[B5]()}}readv(t,r){throw new Error("Method not implemented.")}close(){if(this[aee]===-1)return Promise.resolve();if(this[cee])return this[cee];if(this[Nge]--,this[Nge]===0){let t=this[aee];this[aee]=-1,this[cee]=this[cP].closePromise(t).finally(()=>{this[cee]=void 0})}else this[cee]=new Promise((t,r)=>{this[LYe]=t,this[QYe]=r}).finally(()=>{this[cee]=void 0,this[QYe]=void 0,this[LYe]=void 0});return this[cee]}[(XPr=Nge,ZPr=cee,$Pr=LYe,eOr=QYe,w5)](t){if(this[aee]===-1){let r=new Error("file closed");throw r.code="EBADF",r.syscall=t.name,r}this[Nge]++}[B5](){if(this[Nge]--,this[Nge]===0){let t=this[aee];this[aee]=-1,this[cP].closePromise(t).then(this[LYe],this[QYe])}}};MYe.FileHandle=_Nt});var sOr=ae(UYe=>{"use strict";Object.defineProperty(UYe,"__esModule",{value:!0});UYe.patchFs=iOr;UYe.extendFs=iYi;var oRe=qt("util"),rYi=KPr(),rOr=tOr(),nYi=new Set(["accessSync","appendFileSync","createReadStream","createWriteStream","chmodSync","fchmodSync","chownSync","fchownSync","closeSync","copyFileSync","linkSync","lstatSync","fstatSync","lutimesSync","mkdirSync","openSync","opendirSync","readlinkSync","readFileSync","readdirSync","readlinkSync","realpathSync","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","ftruncateSync","unlinkSync","unwatchFile","utimesSync","watch","watchFile","writeFileSync","writeSync"]),nOr=new Set(["accessPromise","appendFilePromise","fchmodPromise","chmodPromise","fchownPromise","chownPromise","closePromise","copyFilePromise","linkPromise","fstatPromise","lstatPromise","lutimesPromise","mkdirPromise","openPromise","opendirPromise","readdirPromise","realpathPromise","readFilePromise","readdirPromise","readlinkPromise","renamePromise","rmdirPromise","rmPromise","statPromise","symlinkPromise","truncatePromise","ftruncatePromise","unlinkPromise","utimesPromise","writeFilePromise","writeSync"]);function iOr(e,t){t=new rYi.NodePathFS(t);let r=(s,c,o)=>{let f=s[c];s[c]=o,typeof f?.[oRe.promisify.custom]<"u"&&(o[oRe.promisify.custom]=f[oRe.promisify.custom])};{r(e,"exists",(s,...c)=>{let f=typeof c[c.length-1]=="function"?c.pop():()=>{};process.nextTick(()=>{t.existsPromise(s).then(_=>{f(_)},()=>{f(!1)})})}),r(e,"read",(...s)=>{let[c,o,f,_,A,y]=s;if(s.length<=3){let I={};s.length<3?y=s[1]:(I=s[1],y=s[2]),{buffer:o=Buffer.alloc(16384),offset:f=0,length:_=o.byteLength,position:A}=I}if(f==null&&(f=0),_|=0,_===0){process.nextTick(()=>{y(null,0,o)});return}A==null&&(A=-1),process.nextTick(()=>{t.readPromise(c,o,f,_,A).then(I=>{y(null,I,o)},I=>{y(I,0,o)})})});for(let s of nOr){let c=s.replace(/Promise$/,"");if(typeof e[c]>"u")continue;let o=t[s];if(typeof o>"u")continue;r(e,c,(..._)=>{let y=typeof _[_.length-1]=="function"?_.pop():()=>{};process.nextTick(()=>{o.apply(t,_).then(I=>{y(null,I)},I=>{y(I)})})})}e.realpath.native=e.realpath}{r(e,"existsSync",s=>{try{return t.existsSync(s)}catch{return!1}}),r(e,"readSync",(...s)=>{let[c,o,f,_,A]=s;return s.length<=3&&({offset:f=0,length:_=o.byteLength,position:A}=s[2]||{}),f==null&&(f=0),_|=0,_===0?0:(A==null&&(A=-1),t.readSync(c,o,f,_,A))});for(let s of nYi){let c=s;if(typeof e[c]>"u")continue;let o=t[s];typeof o>"u"||r(e,c,o.bind(t))}e.realpathSync.native=e.realpathSync}{let s=e.promises;for(let c of nOr){let o=c.replace(/Promise$/,"");if(typeof s[o]>"u")continue;let f=t[c];typeof f>"u"||c!=="open"&&r(s,o,(_,...A)=>_ instanceof rOr.FileHandle?_[o].apply(_,A):f.call(t,_,...A))}r(s,"open",async(...c)=>{let o=await t.openPromise(...c);return new rOr.FileHandle(o,t)})}e.read[oRe.promisify.custom]=async(s,c,...o)=>({bytesRead:await t.readPromise(s,c,...o),buffer:c}),e.write[oRe.promisify.custom]=async(s,c,...o)=>({bytesWritten:await t.writePromise(s,c,...o),buffer:c})}function iYi(e,t){let r=Object.create(e);return iOr(r,t),r}});var cOr=ae(lee=>{"use strict";Object.defineProperty(lee,"__esModule",{value:!0});lee.xfs=void 0;var sYi=(Ma(),li(Qa)),oYi=sYi.__importDefault(qt("os")),aYi=Wae(),aRe=uF();function oOr(e){let t=Math.ceil(Math.random()*4294967296).toString(16).padStart(8,"0");return`${e}${t}`}var x5=new Set,ANt=null;function aOr(){if(ANt)return ANt;let e=aRe.npath.toPortablePath(oYi.default.tmpdir()),t=lee.xfs.realpathSync(e);return process.once("exit",()=>{lee.xfs.rmtempSync()}),ANt={tmpdir:e,realTmpdir:t}}lee.xfs=Object.assign(new aYi.NodeFS,{detachTemp(e){x5.delete(e)},mktempSync(e){let{tmpdir:t,realTmpdir:r}=aOr();for(;;){let s=oOr("xfs-");try{this.mkdirSync(aRe.ppath.join(t,s))}catch(o){if(o.code==="EEXIST")continue;throw o}let c=aRe.ppath.join(r,s);if(x5.add(c),typeof e>"u")return c;try{return e(c)}finally{if(x5.has(c)){x5.delete(c);try{this.removeSync(c)}catch{}}}}},async mktempPromise(e){let{tmpdir:t,realTmpdir:r}=aOr();for(;;){let s=oOr("xfs-");try{await this.mkdirPromise(aRe.ppath.join(t,s))}catch(o){if(o.code==="EEXIST")continue;throw o}let c=aRe.ppath.join(r,s);if(x5.add(c),typeof e>"u")return c;try{return await e(c)}finally{if(x5.has(c)){x5.delete(c);try{await this.removePromise(c)}catch{}}}}},async rmtempPromise(){await Promise.all(Array.from(x5.values()).map(async e=>{try{await lee.xfs.removePromise(e,{maxRetries:0}),x5.delete(e)}catch{}}))},rmtempSync(){for(let e of x5)try{lee.xfs.removeSync(e),x5.delete(e)}catch{}}})});var Xo=ae(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.xfs=ad.extendFs=ad.patchFs=ad.VirtualFS=ad.ProxiedFS=ad.PosixFS=ad.NodeFS=ad.NoFS=ad.MountFS=ad.LazyFS=ad.JailFS=ad.CwdFS=ad.BasePortableFakeFS=ad.FakeFS=ad.AliasFS=ad.ppath=ad.npath=ad.Filename=ad.PortablePath=ad.normalizeLineEndings=ad.unwatchAllFiles=ad.unwatchFile=ad.watchFile=ad.CustomDir=ad.opendir=ad.setupCopyIndex=ad.statUtils=ad.errors=ad.constants=void 0;var hNt=(Ma(),li(Qa)),cYi=hNt.__importStar(dYe());ad.constants=cYi;var lYi=hNt.__importStar(_Ye());ad.errors=lYi;var uYi=hNt.__importStar(Vxt());ad.statUtils=uYi;var fYi=zxt();Object.defineProperty(ad,"setupCopyIndex",{enumerable:!0,get:function(){return fYi.setupCopyIndex}});var lOr=OPr();Object.defineProperty(ad,"opendir",{enumerable:!0,get:function(){return lOr.opendir}});Object.defineProperty(ad,"CustomDir",{enumerable:!0,get:function(){return lOr.CustomDir}});var mNt=Zxt();Object.defineProperty(ad,"watchFile",{enumerable:!0,get:function(){return mNt.watchFile}});Object.defineProperty(ad,"unwatchFile",{enumerable:!0,get:function(){return mNt.unwatchFile}});Object.defineProperty(ad,"unwatchAllFiles",{enumerable:!0,get:function(){return mNt.unwatchAllFiles}});var pYi=Vae();Object.defineProperty(ad,"normalizeLineEndings",{enumerable:!0,get:function(){return pYi.normalizeLineEndings}});var uOr=uF();Object.defineProperty(ad,"PortablePath",{enumerable:!0,get:function(){return uOr.PortablePath}});Object.defineProperty(ad,"Filename",{enumerable:!0,get:function(){return uOr.Filename}});var fOr=uF();Object.defineProperty(ad,"npath",{enumerable:!0,get:function(){return fOr.npath}});Object.defineProperty(ad,"ppath",{enumerable:!0,get:function(){return fOr.ppath}});var dYi=MPr();Object.defineProperty(ad,"AliasFS",{enumerable:!0,get:function(){return dYi.AliasFS}});var pOr=Vae();Object.defineProperty(ad,"FakeFS",{enumerable:!0,get:function(){return pOr.FakeFS}});Object.defineProperty(ad,"BasePortableFakeFS",{enumerable:!0,get:function(){return pOr.BasePortableFakeFS}});var _Yi=GPr();Object.defineProperty(ad,"CwdFS",{enumerable:!0,get:function(){return _Yi.CwdFS}});var AYi=HPr();Object.defineProperty(ad,"JailFS",{enumerable:!0,get:function(){return AYi.JailFS}});var hYi=qPr();Object.defineProperty(ad,"LazyFS",{enumerable:!0,get:function(){return hYi.LazyFS}});var mYi=JPr();Object.defineProperty(ad,"MountFS",{enumerable:!0,get:function(){return mYi.MountFS}});var gYi=VPr();Object.defineProperty(ad,"NoFS",{enumerable:!0,get:function(){return gYi.NoFS}});var EYi=Wae();Object.defineProperty(ad,"NodeFS",{enumerable:!0,get:function(){return EYi.NodeFS}});var yYi=WPr();Object.defineProperty(ad,"PosixFS",{enumerable:!0,get:function(){return yYi.PosixFS}});var CYi=kW();Object.defineProperty(ad,"ProxiedFS",{enumerable:!0,get:function(){return CYi.ProxiedFS}});var IYi=YPr();Object.defineProperty(ad,"VirtualFS",{enumerable:!0,get:function(){return IYi.VirtualFS}});var dOr=sOr();Object.defineProperty(ad,"patchFs",{enumerable:!0,get:function(){return dOr.patchFs}});Object.defineProperty(ad,"extendFs",{enumerable:!0,get:function(){return dOr.extendFs}});var TYi=cOr();Object.defineProperty(ad,"xfs",{enumerable:!0,get:function(){return TYi.xfs}})});var gOr=ae((_Fa,mOr)=>{mOr.exports=hOr;hOr.sync=vYi;var _Or=qt("fs");function SYi(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var s=0;s{IOr.exports=yOr;yOr.sync=DYi;var EOr=qt("fs");function yOr(e,t,r){EOr.stat(e,function(s,c){r(s,s?!1:COr(c,t))})}function DYi(e,t){return COr(EOr.statSync(e),t)}function COr(e,t){return e.isFile()&&bYi(e,t)}function bYi(e,t){var r=e.mode,s=e.uid,c=e.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),f=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),_=parseInt("100",8),A=parseInt("010",8),y=parseInt("001",8),I=_|A,D=r&y||r&A&&c===f||r&_&&s===o||r&I&&o===0;return D}});var vOr=ae((mFa,SOr)=>{var hFa=qt("fs"),GYe;process.platform==="win32"||global.TESTING_WINDOWS?GYe=gOr():GYe=TOr();SOr.exports=gNt;gNt.sync=wYi;function gNt(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,c){gNt(e,t||{},function(o,f){o?c(o):s(f)})})}GYe(e,t||{},function(s,c){s&&(s.code==="EACCES"||t&&t.ignoreErrors)&&(s=null,c=!1),r(s,c)})}function wYi(e,t){try{return GYe.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var ENt=ae((gFa,NOr)=>{var Rge=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DOr=qt("path"),BYi=Rge?";":":",bOr=vOr(),wOr=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),BOr=(e,t)=>{let r=t.colon||BYi,s=e.match(/\//)||Rge&&e.match(/\\/)?[""]:[...Rge?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],c=Rge?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Rge?c.split(r):[""];return Rge&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:s,pathExt:o,pathExtExe:c}},xOr=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:s,pathExt:c,pathExtExe:o}=BOr(e,t),f=[],_=y=>new Promise((I,D)=>{if(y===s.length)return t.all&&f.length?I(f):D(wOr(e));let b=s[y],L=/^".*"$/.test(b)?b.slice(1,-1):b,x=DOr.join(L,e),J=!L&&/^\.[\\\/]/.test(e)?e.slice(0,2)+x:x;I(A(J,y,0))}),A=(y,I,D)=>new Promise((b,L)=>{if(D===c.length)return b(_(I+1));let x=c[D];bOr(y+x,{pathExt:o},(J,Y)=>{if(!J&&Y)if(t.all)f.push(y+x);else return b(y+x);return b(A(y,I,D+1))})});return r?_(0).then(y=>r(null,y),r):_(0)},xYi=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:s,pathExtExe:c}=BOr(e,t),o=[];for(let f=0;f{"use strict";var ROr=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};yNt.exports=ROr;yNt.exports.default=ROr});var FOr=ae((yFa,OOr)=>{"use strict";var kOr=qt("path"),NYi=ENt(),RYi=CNt();function POr(e,t){let r=e.options.env||process.env,s=process.cwd(),c=e.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let f;try{f=NYi.sync(e.command,{path:r[RYi({env:r})],pathExt:t?kOr.delimiter:void 0})}catch{}finally{o&&process.chdir(s)}return f&&(f=kOr.resolve(c?e.options.cwd:"",f)),f}function kYi(e){return POr(e)||POr(e,!0)}OOr.exports=kYi});var LOr=ae((CFa,TNt)=>{"use strict";var INt=/([()\][%!^"`<>&|;, *?])/g;function PYi(e){return e=e.replace(INt,"^$1"),e}function OYi(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(INt,"^$1"),t&&(e=e.replace(INt,"^$1")),e}TNt.exports.command=PYi;TNt.exports.argument=OYi});var MOr=ae((IFa,QOr)=>{"use strict";QOr.exports=/^#!(.*)/});var SNt=ae((TFa,UOr)=>{"use strict";var FYi=MOr();UOr.exports=(e="")=>{let t=e.match(FYi);if(!t)return null;let[r,s]=t[0].replace(/#! ?/,"").split(" "),c=r.split("/").pop();return c==="env"?s:s?`${c} ${s}`:c}});var jOr=ae((SFa,GOr)=>{"use strict";var vNt=qt("fs"),LYi=SNt();function QYi(e){let r=Buffer.alloc(150),s;try{s=vNt.openSync(e,"r"),vNt.readSync(s,r,0,150,0),vNt.closeSync(s)}catch{}return LYi(r.toString())}GOr.exports=QYi});var VOr=ae((vFa,JOr)=>{"use strict";var MYi=qt("path"),HOr=FOr(),qOr=LOr(),UYi=jOr(),GYi=process.platform==="win32",jYi=/\.(?:com|exe)$/i,HYi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function qYi(e){e.file=HOr(e);let t=e.file&&UYi(e.file);return t?(e.args.unshift(e.file),e.command=t,HOr(e)):e.file}function JYi(e){if(!GYi)return e;let t=qYi(e),r=!jYi.test(t);if(e.options.forceShell||r){let s=HYi.test(t);e.command=MYi.normalize(e.command),e.command=qOr.command(e.command),e.args=e.args.map(o=>qOr.argument(o,s));let c=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${c}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function VYi(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let s={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?s:JYi(s)}JOr.exports=VYi});var zOr=ae((DFa,YOr)=>{"use strict";var DNt=process.platform==="win32";function bNt(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function WYi(e,t){if(!DNt)return;let r=e.emit;e.emit=function(s,c){if(s==="exit"){let o=WOr(c,t,"spawn");if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}}function WOr(e,t){return DNt&&e===1&&!t.file?bNt(t.original,"spawn"):null}function YYi(e,t){return DNt&&e===1&&!t.file?bNt(t.original,"spawnSync"):null}YOr.exports={hookChildProcess:WYi,verifyENOENT:WOr,verifyENOENTSync:YYi,notFoundError:bNt}});var jYe=ae((bFa,kge)=>{"use strict";var KOr=qt("child_process"),wNt=VOr(),BNt=zOr();function XOr(e,t,r){let s=wNt(e,t,r),c=KOr.spawn(s.command,s.args,s.options);return BNt.hookChildProcess(c,s),c}function zYi(e,t,r){let s=wNt(e,t,r),c=KOr.spawnSync(s.command,s.args,s.options);return c.error=c.error||BNt.verifyENOENTSync(c.status,s),c}kge.exports=XOr;kge.exports.spawn=XOr;kge.exports.sync=zYi;kge.exports._parse=wNt;kge.exports._enoent=BNt});var $Or=ae((wFa,ZOr)=>{"use strict";function KYi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Yae(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Yae)}KYi(Yae,Error);Yae.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D>",hi=Ho(">>",!1),we=">&",os=Ho(">&",!1),Hc=">",Va=Ho(">",!1),zs="<<<",or=Ho("<<<",!1),la="<&",vi=Ho("<&",!1),Uu="<",Gu=Ho("<",!1),Hp=function(it){return{type:"argument",segments:[].concat(...it)}},ap=function(it){return it},Kf="$'",rA=Ho("$'",!1),zr="'",Nr=Ho("'",!1),dr=function(it){return[{type:"text",text:it}]},nn='""',_n=Ho('""',!1),Pn=function(){return{type:"text",text:""}},ji='"',qr=Ho('"',!1),Os=function(it){return it},xo=function(it){return{type:"arithmetic",arithmetic:it,quoted:!0}},ei=function(it){return{type:"shell",shell:it,quoted:!0}},Ia=function(it){return{type:"variable",...it,quoted:!0}},Bf=function(it){return{type:"text",text:it}},Yu=function(it){return{type:"arithmetic",arithmetic:it,quoted:!1}},Af=function(it){return{type:"shell",shell:it,quoted:!1}},wu=function(it){return{type:"variable",...it,quoted:!1}},dl=function(it){return{type:"glob",pattern:it}},Di=/^[^']/,Xi=Eu(["'"],!0,!1),Ki=function(it){return it.join("")},ka=/^[^$"]/,Ks=Eu(["$",'"'],!0,!1),Nl=`\\
`,Yo=Ho(`\\
`,!1),va=function(){return""},Ru="\\",Lf=Ho("\\",!1),gl=/^[\\$"`]/,eu=Eu(["\\","$",'"',"`"],!1,!1),kf=function(it){return it},y_="\\a",zp=Ho("\\a",!1),ti=function(){return"a"},rc="\\b",xt=Ho("\\b",!1),cl=function(){return"\b"},nf=/^[Ee]/,fs=Eu(["E","e"],!1,!1),zu=function(){return"\x1B"},rn="\\f",bo=Ho("\\f",!1),Xf=function(){return"\f"},Zf="\\n",Tp=Ho("\\n",!1),wo=function(){return`
-`},tu="\\r",FA=Ho("\\r",!1),Ad=function(){return"\r"},cp="\\t",Us=Ho("\\t",!1),Gi=function(){return" "},nc="\\v",rl=Ho("\\v",!1),vs=function(){return"\v"},Dd=/^[\\'"?]/,Hd=Eu(["\\","'",'"',"?"],!1,!1),Ta=function(it){return String.fromCharCode(parseInt(it,16))},hs="\\x",Wa=Ho("\\x",!1),_g="\\u",Xs=Ho("\\u",!1),ps="\\U",Ka=Ho("\\U",!1),mm=function(it){return String.fromCodePoint(parseInt(it,16))},LA=/^[0-7]/,gh=Eu([["0","7"]],!1,!1),Tl=/^[0-9a-fA-f]/,Wc=Eu([["0","9"],["a","f"],["A","f"]],!1,!1),qp=e_(),QA="{}",Na=Ho("{}",!1),ru=function(){return"{}"},oi="-",gm=Ho("-",!1),su="+",Ag=Ho("+",!1),Eh=".",Qf=Ho(".",!1),c_=function(it,Zt,Qr){return{type:"number",value:(it==="-"?-1:1)*parseFloat(Zt.join("")+"."+Qr.join(""))}},zm=function(it,Zt){return{type:"number",value:(it==="-"?-1:1)*parseInt(Zt.join(""))}},Yg=function(it){return{type:"variable",...it}},El=function(it){return{type:"variable",name:it}},hd=function(it){return it},Em="*",Ds=Ho("*",!1),Io="/",Bo=Ho("/",!1),Jl=function(it,Zt,Qr){return{type:Zt==="*"?"multiplication":"division",right:Qr}},Dr=function(it,Zt){return Zt.reduce((Qr,Cn)=>({left:Qr,...Cn}),it)},vn=function(it,Zt,Qr){return{type:Zt==="+"?"addition":"subtraction",right:Qr}},Bi="$((",rs=Ho("$((",!1),Zs="))",go=Ho("))",!1),Pl=function(it){return it},Op="$(",bd=Ho("$(",!1),Rh=function(it){return it},ll="${",wg=Ho("${",!1),MI=":-",QS=Ho(":-",!1),lp=function(it,Zt){return{name:it,defaultValue:Zt}},Bg=":-}",xg=Ho(":-}",!1),jy=function(it){return{name:it,defaultValue:[]}},P_=":+",$f=Ho(":+",!1),uy=function(it,Zt){return{name:it,alternativeValue:Zt}},D0=":+}",Hy=Ho(":+}",!1),ac=function(it){return{name:it,alternativeValue:[]}},nE=function(it){return{name:it}},X1="$",Km=Ho("$",!1),zg=function(it){return t.isGlobPattern(it)},pf=function(it){return it},Xm=/^[a-zA-Z0-9_]/,Z1=Eu([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),hg=function(){return Fn()},kh=/^[$@*?#a-zA-Z0-9_\-]/,hA=Eu(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),WA=/^[()}<>$|&; \t"']/,wA=Eu(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),qC=/^[<>&; \t"']/,qy=Eu(["<",">","&",";"," "," ",'"',"'"],!1,!1),re=/^[ \t]/,v=Eu([" "," "],!1,!1),V=0,Ce=0,ct=[{line:1,column:1}],Yt=0,Br=[],Rr=0,On;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function Fn(){return e.substring(Ce,V)}function Mo(){return fy(Ce,V)}function pc(it,Zt){throw Zt=Zt!==void 0?Zt:fy(Ce,V),ch([YA(it)],e.substring(Ce,V),Zt)}function qc(it,Zt){throw Zt=Zt!==void 0?Zt:fy(Ce,V),md(it,Zt)}function Ho(it,Zt){return{type:"literal",text:it,ignoreCase:Zt}}function Eu(it,Zt,Qr){return{type:"class",parts:it,inverted:Zt,ignoreCase:Qr}}function e_(){return{type:"any"}}function up(){return{type:"end"}}function YA(it){return{type:"other",description:it}}function qd(it){var Zt=ct[it],Qr;if(Zt)return Zt;for(Qr=it-1;!ct[Qr];)Qr--;for(Zt=ct[Qr],Zt={line:Zt.line,column:Zt.column};QrYt&&(Yt=V,Br=[]),Br.push(it))}function md(it,Zt){return new Yae(it,null,null,Zt)}function ch(it,Zt,Qr){return new Yae(Yae.buildMessage(it,Zt),it,Zt,Qr)}function mA(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Qr=b0(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=o(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function b0(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=R2(),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();Qr!==r?(Cn=N2(),Cn!==r?(ns=Ng(),ns===r&&(ns=null),ns!==r?(Ce=it,Zt=f(Zt,Cn,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;if(it===r)if(it=V,Zt=R2(),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();Qr!==r?(Cn=N2(),Cn===r&&(Cn=null),Cn!==r?(Ce=it,Zt=_(Zt,Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;return it}function Ng(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=b0(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=A(Qr),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;return it}function N2(){var it;return e.charCodeAt(V)===59?(it=y,V++):(it=r,Rr===0&&ga(I)),it===r&&(e.charCodeAt(V)===38?(it=D,V++):(it=r,Rr===0&&ga(b))),it}function R2(){var it,Zt,Qr;return it=V,Zt=VC(),Zt!==r?(Qr=JC(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=L(Zt,Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function JC(){var it,Zt,Qr,Cn,ns,vo,df;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=py(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=R2(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=x(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;return it}function py(){var it;return e.substr(V,2)===J?(it=J,V+=2):(it=r,Rr===0&&ga(Y)),it===r&&(e.substr(V,2)===ne?(it=ne,V+=2):(it=r,Rr===0&&ga(Ae))),it}function VC(){var it,Zt,Qr;return it=V,Zt=wE(),Zt!==r?(Qr=MS(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=le(Zt,Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function MS(){var it,Zt,Qr,Cn,ns,vo,df;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=bE(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=VC(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=pe(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;return it}function bE(){var it;return e.substr(V,2)===ge?(it=ge,V+=2):(it=r,Rr===0&&ga(me)),it===r&&(e.charCodeAt(V)===124?(it=ye,V++):(it=r,Rr===0&&ga(Se))),it}function i0(){var it,Zt,Qr,Cn,ns,vo;if(it=V,Zt=YC(),Zt!==r)if(e.charCodeAt(V)===61?(Qr=Le,V++):(Qr=r,Rr===0&&ga(rt)),Qr!==r)if(Cn=Rg(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(Ce=it,Zt=P(Zt,Cn),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;else V=it,it=r;if(it===r)if(it=V,Zt=YC(),Zt!==r)if(e.charCodeAt(V)===61?(Qr=Le,V++):(Qr=r,Rr===0&&ga(rt)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=pt(Zt),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;return it}function wE(){var it,Zt,Qr,Cn,ns,vo,df,hf,iA,zA,tm;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(e.charCodeAt(V)===40?(Qr=nt,V++):(Qr=r,Rr===0&&ga(ht)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=b0(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();if(vo!==r)if(e.charCodeAt(V)===41?(df=ot,V++):(df=r,Rr===0&&ga(Et)),df!==r){for(hf=[],iA=uc();iA!==r;)hf.push(iA),iA=uc();if(hf!==r){for(iA=[],zA=Vl();zA!==r;)iA.push(zA),zA=Vl();if(iA!==r){for(zA=[],tm=uc();tm!==r;)zA.push(tm),tm=uc();zA!==r?(Ce=it,Zt=Vt(ns,iA),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(e.charCodeAt(V)===123?(Qr=Er,V++):(Qr=r,Rr===0&&ga(pn)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=b0(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();if(vo!==r)if(e.charCodeAt(V)===125?(df=$t,V++):(df=r,Rr===0&&ga(xr)),df!==r){for(hf=[],iA=uc();iA!==r;)hf.push(iA),iA=uc();if(hf!==r){for(iA=[],zA=Vl();zA!==r;)iA.push(zA),zA=Vl();if(iA!==r){for(zA=[],tm=uc();tm!==r;)zA.push(tm),tm=uc();zA!==r?(Ce=it,Zt=yr(ns,iA),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){for(Qr=[],Cn=i0();Cn!==r;)Qr.push(Cn),Cn=i0();if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r){if(ns=[],vo=ym(),vo!==r)for(;vo!==r;)ns.push(vo),vo=ym();else ns=r;if(ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=ur(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r}else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){if(Qr=[],Cn=i0(),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Cn=i0();else Qr=r;if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=jr(Qr),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}}}return it}function Yl(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){if(Qr=[],Cn=cf(),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Cn=cf();else Qr=r;if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=Vr(Qr),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r;return it}function ym(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r?(Qr=Vl(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();Zt!==r?(Qr=cf(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)}return it}function Vl(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Mn.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(An)),Qr===r&&(Qr=null),Qr!==r?(Cn=t_(),Cn!==r?(ns=cf(),ns!==r?(Ce=it,Zt=fr(Qr,Cn,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function t_(){var it;return e.substr(V,2)===ui?(it=ui,V+=2):(it=r,Rr===0&&ga(hi)),it===r&&(e.substr(V,2)===we?(it=we,V+=2):(it=r,Rr===0&&ga(os)),it===r&&(e.charCodeAt(V)===62?(it=Hc,V++):(it=r,Rr===0&&ga(Va)),it===r&&(e.substr(V,3)===zs?(it=zs,V+=3):(it=r,Rr===0&&ga(or)),it===r&&(e.substr(V,2)===la?(it=la,V+=2):(it=r,Rr===0&&ga(vi)),it===r&&(e.charCodeAt(V)===60?(it=Uu,V++):(it=r,Rr===0&&ga(Gu))))))),it}function cf(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Qr=Rg(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function Rg(){var it,Zt,Qr;if(it=V,Zt=[],Qr=$1(),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=$1();else Zt=r;return Zt!==r&&(Ce=it,Zt=Hp(Zt)),it=Zt,it}function $1(){var it,Zt;return it=V,Zt=ep(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=Ov(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=E1(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=Rm(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt))),it}function ep(){var it,Zt,Qr,Cn;return it=V,e.substr(V,2)===Kf?(Zt=Kf,V+=2):(Zt=r,Rr===0&&ga(rA)),Zt!==r?(Qr=Ul(),Qr!==r?(e.charCodeAt(V)===39?(Cn=zr,V++):(Cn=r,Rr===0&&ga(Nr)),Cn!==r?(Ce=it,Zt=dr(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function Ov(){var it,Zt,Qr,Cn;return it=V,e.charCodeAt(V)===39?(Zt=zr,V++):(Zt=r,Rr===0&&ga(Nr)),Zt!==r?(Qr=Fo(),Qr!==r?(e.charCodeAt(V)===39?(Cn=zr,V++):(Cn=r,Rr===0&&ga(Nr)),Cn!==r?(Ce=it,Zt=dr(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function E1(){var it,Zt,Qr,Cn;if(it=V,e.substr(V,2)===nn?(Zt=nn,V+=2):(Zt=r,Rr===0&&ga(_n)),Zt!==r&&(Ce=it,Zt=Pn()),it=Zt,it===r)if(it=V,e.charCodeAt(V)===34?(Zt=ji,V++):(Zt=r,Rr===0&&ga(qr)),Zt!==r){for(Qr=[],Cn=yh();Cn!==r;)Qr.push(Cn),Cn=yh();Qr!==r?(e.charCodeAt(V)===34?(Cn=ji,V++):(Cn=r,Rr===0&&ga(qr)),Cn!==r?(Ce=it,Zt=Os(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;return it}function Rm(){var it,Zt,Qr;if(it=V,Zt=[],Qr=ki(),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=ki();else Zt=r;return Zt!==r&&(Ce=it,Zt=Os(Zt)),it=Zt,it}function yh(){var it,Zt;return it=V,Zt=Qi(),Zt!==r&&(Ce=it,Zt=xo(Zt)),it=Zt,it===r&&(it=V,Zt=Vy(),Zt!==r&&(Ce=it,Zt=ei(Zt)),it=Zt,it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=Ia(Zt)),it=Zt,it===r&&(it=V,Zt=Zi(),Zt!==r&&(Ce=it,Zt=Bf(Zt)),it=Zt))),it}function ki(){var it,Zt;return it=V,Zt=Qi(),Zt!==r&&(Ce=it,Zt=Yu(Zt)),it=Zt,it===r&&(it=V,Zt=Vy(),Zt!==r&&(Ce=it,Zt=Af(Zt)),it=Zt,it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=wu(Zt)),it=Zt,it===r&&(it=V,Zt=nA(),Zt!==r&&(Ce=it,Zt=dl(Zt)),it=Zt,it===r&&(it=V,Zt=xT(),Zt!==r&&(Ce=it,Zt=Bf(Zt)),it=Zt)))),it}function Fo(){var it,Zt,Qr;for(it=V,Zt=[],Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi));Qr!==r;)Zt.push(Qr),Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi));return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Zi(){var it,Zt,Qr;if(it=V,Zt=[],Qr=Ic(),Qr===r&&(ka.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Ks))),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=Ic(),Qr===r&&(ka.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Ks)));else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Ic(){var it,Zt,Qr;return it=V,e.substr(V,2)===Nl?(Zt=Nl,V+=2):(Zt=r,Rr===0&&ga(Yo)),Zt!==r&&(Ce=it,Zt=va()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(gl.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(eu)),Qr!==r?(Ce=it,Zt=kf(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)),it}function Ul(){var it,Zt,Qr;for(it=V,Zt=[],Qr=Bp(),Qr===r&&(Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi)));Qr!==r;)Zt.push(Qr),Qr=Bp(),Qr===r&&(Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi)));return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Bp(){var it,Zt,Qr;return it=V,e.substr(V,2)===y_?(Zt=y_,V+=2):(Zt=r,Rr===0&&ga(zp)),Zt!==r&&(Ce=it,Zt=ti()),it=Zt,it===r&&(it=V,e.substr(V,2)===rc?(Zt=rc,V+=2):(Zt=r,Rr===0&&ga(xt)),Zt!==r&&(Ce=it,Zt=cl()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(nf.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(fs)),Qr!==r?(Ce=it,Zt=zu(),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===rn?(Zt=rn,V+=2):(Zt=r,Rr===0&&ga(bo)),Zt!==r&&(Ce=it,Zt=Xf()),it=Zt,it===r&&(it=V,e.substr(V,2)===Zf?(Zt=Zf,V+=2):(Zt=r,Rr===0&&ga(Tp)),Zt!==r&&(Ce=it,Zt=wo()),it=Zt,it===r&&(it=V,e.substr(V,2)===tu?(Zt=tu,V+=2):(Zt=r,Rr===0&&ga(FA)),Zt!==r&&(Ce=it,Zt=Ad()),it=Zt,it===r&&(it=V,e.substr(V,2)===cp?(Zt=cp,V+=2):(Zt=r,Rr===0&&ga(Us)),Zt!==r&&(Ce=it,Zt=Gi()),it=Zt,it===r&&(it=V,e.substr(V,2)===nc?(Zt=nc,V+=2):(Zt=r,Rr===0&&ga(rl)),Zt!==r&&(Ce=it,Zt=vs()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(Dd.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Hd)),Qr!==r?(Ce=it,Zt=kf(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=BA()))))))))),it}function BA(){var it,Zt,Qr,Cn,ns,vo,df,hf,iA,zA,tm,eC;return it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(Qr=Jd(),Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===hs?(Zt=hs,V+=2):(Zt=r,Rr===0&&ga(Wa)),Zt!==r?(Qr=V,Cn=V,ns=Jd(),ns!==r?(vo=s0(),vo!==r?(ns=[ns,vo],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn===r&&(Cn=Jd()),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===_g?(Zt=_g,V+=2):(Zt=r,Rr===0&&ga(Xs)),Zt!==r?(Qr=V,Cn=V,ns=s0(),ns!==r?(vo=s0(),vo!==r?(df=s0(),df!==r?(hf=s0(),hf!==r?(ns=[ns,vo,df,hf],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ps?(Zt=ps,V+=2):(Zt=r,Rr===0&&ga(Ka)),Zt!==r?(Qr=V,Cn=V,ns=s0(),ns!==r?(vo=s0(),vo!==r?(df=s0(),df!==r?(hf=s0(),hf!==r?(iA=s0(),iA!==r?(zA=s0(),zA!==r?(tm=s0(),tm!==r?(eC=s0(),eC!==r?(ns=[ns,vo,df,hf,iA,zA,tm,eC],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=mm(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)))),it}function Jd(){var it;return LA.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(gh)),it}function s0(){var it;return Tl.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(Wc)),it}function xT(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=[],Qr=V,e.charCodeAt(V)===92?(Cn=Ru,V++):(Cn=r,Rr===0&&ga(Lf)),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr===r&&(Qr=V,e.substr(V,2)===QA?(Cn=QA,V+=2):(Cn=r,Rr===0&&ga(Na)),Cn!==r&&(Ce=Qr,Cn=ru()),Qr=Cn,Qr===r&&(Qr=V,Cn=V,Rr++,ns=k2(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r))),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=V,e.charCodeAt(V)===92?(Cn=Ru,V++):(Cn=r,Rr===0&&ga(Lf)),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr===r&&(Qr=V,e.substr(V,2)===QA?(Cn=QA,V+=2):(Cn=r,Rr===0&&ga(Na)),Cn!==r&&(Ce=Qr,Cn=ru()),Qr=Cn,Qr===r&&(Qr=V,Cn=V,Rr++,ns=k2(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r)));else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function mg(){var it,Zt,Qr,Cn,ns,vo;if(it=V,e.charCodeAt(V)===45?(Zt=oi,V++):(Zt=r,Rr===0&&ga(gm)),Zt===r&&(e.charCodeAt(V)===43?(Zt=su,V++):(Zt=r,Rr===0&&ga(Ag))),Zt===r&&(Zt=null),Zt!==r){if(Qr=[],Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An)),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An));else Qr=r;if(Qr!==r)if(e.charCodeAt(V)===46?(Cn=Eh,V++):(Cn=r,Rr===0&&ga(Qf)),Cn!==r){if(ns=[],Mn.test(e.charAt(V))?(vo=e.charAt(V),V++):(vo=r,Rr===0&&ga(An)),vo!==r)for(;vo!==r;)ns.push(vo),Mn.test(e.charAt(V))?(vo=e.charAt(V),V++):(vo=r,Rr===0&&ga(An));else ns=r;ns!==r?(Ce=it,Zt=c_(Zt,Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;if(it===r){if(it=V,e.charCodeAt(V)===45?(Zt=oi,V++):(Zt=r,Rr===0&&ga(gm)),Zt===r&&(e.charCodeAt(V)===43?(Zt=su,V++):(Zt=r,Rr===0&&ga(Ag))),Zt===r&&(Zt=null),Zt!==r){if(Qr=[],Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An)),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An));else Qr=r;Qr!==r?(Ce=it,Zt=zm(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;if(it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=Yg(Zt)),it=Zt,it===r&&(it=V,Zt=dy(),Zt!==r&&(Ce=it,Zt=El(Zt)),it=Zt,it===r)))if(it=V,e.charCodeAt(V)===40?(Zt=nt,V++):(Zt=r,Rr===0&&ga(ht)),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();if(Qr!==r)if(Cn=iE(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(e.charCodeAt(V)===41?(vo=ot,V++):(vo=r,Rr===0&&ga(Et)),vo!==r?(Ce=it,Zt=hd(Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r}return it}function Jy(){var it,Zt,Qr,Cn,ns,vo,df,hf;if(it=V,Zt=mg(),Zt!==r){for(Qr=[],Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===42?(vo=Em,V++):(vo=r,Rr===0&&ga(Ds)),vo===r&&(e.charCodeAt(V)===47?(vo=Io,V++):(vo=r,Rr===0&&ga(Bo))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=mg(),hf!==r?(Ce=Cn,ns=Jl(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r;for(;Cn!==r;){for(Qr.push(Cn),Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===42?(vo=Em,V++):(vo=r,Rr===0&&ga(Ds)),vo===r&&(e.charCodeAt(V)===47?(vo=Io,V++):(vo=r,Rr===0&&ga(Bo))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=mg(),hf!==r?(Ce=Cn,ns=Jl(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r}Qr!==r?(Ce=it,Zt=Dr(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;return it}function iE(){var it,Zt,Qr,Cn,ns,vo,df,hf;if(it=V,Zt=Jy(),Zt!==r){for(Qr=[],Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===43?(vo=su,V++):(vo=r,Rr===0&&ga(Ag)),vo===r&&(e.charCodeAt(V)===45?(vo=oi,V++):(vo=r,Rr===0&&ga(gm))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=Jy(),hf!==r?(Ce=Cn,ns=vn(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r;for(;Cn!==r;){for(Qr.push(Cn),Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===43?(vo=su,V++):(vo=r,Rr===0&&ga(Ag)),vo===r&&(e.charCodeAt(V)===45?(vo=oi,V++):(vo=r,Rr===0&&ga(gm))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=Jy(),hf!==r?(Ce=Cn,ns=vn(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r}Qr!==r?(Ce=it,Zt=Dr(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;return it}function Qi(){var it,Zt,Qr,Cn,ns,vo;if(it=V,e.substr(V,3)===Bi?(Zt=Bi,V+=3):(Zt=r,Rr===0&&ga(rs)),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();if(Qr!==r)if(Cn=iE(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(e.substr(V,2)===Zs?(vo=Zs,V+=2):(vo=r,Rr===0&&ga(go)),vo!==r?(Ce=it,Zt=Pl(Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;return it}function Vy(){var it,Zt,Qr,Cn;return it=V,e.substr(V,2)===Op?(Zt=Op,V+=2):(Zt=r,Rr===0&&ga(bd)),Zt!==r?(Qr=b0(),Qr!==r?(e.charCodeAt(V)===41?(Cn=ot,V++):(Cn=r,Rr===0&&ga(Et)),Cn!==r?(Ce=it,Zt=Rh(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function WC(){var it,Zt,Qr,Cn,ns,vo;return it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,2)===MI?(Cn=MI,V+=2):(Cn=r,Rr===0&&ga(QS)),Cn!==r?(ns=Yl(),ns!==r?(e.charCodeAt(V)===125?(vo=$t,V++):(vo=r,Rr===0&&ga(xr)),vo!==r?(Ce=it,Zt=lp(Qr,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,3)===Bg?(Cn=Bg,V+=3):(Cn=r,Rr===0&&ga(xg)),Cn!==r?(Ce=it,Zt=jy(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,2)===P_?(Cn=P_,V+=2):(Cn=r,Rr===0&&ga($f)),Cn!==r?(ns=Yl(),ns!==r?(e.charCodeAt(V)===125?(vo=$t,V++):(vo=r,Rr===0&&ga(xr)),vo!==r?(Ce=it,Zt=uy(Qr,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,3)===D0?(Cn=D0,V+=3):(Cn=r,Rr===0&&ga(Hy)),Cn!==r?(Ce=it,Zt=ac(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.charCodeAt(V)===125?(Cn=$t,V++):(Cn=r,Rr===0&&ga(xr)),Cn!==r?(Ce=it,Zt=nE(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.charCodeAt(V)===36?(Zt=X1,V++):(Zt=r,Rr===0&&ga(Km)),Zt!==r?(Qr=dy(),Qr!==r?(Ce=it,Zt=nE(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)))))),it}function nA(){var it,Zt,Qr;return it=V,Zt=NT(),Zt!==r?(Ce=V,Qr=zg(Zt),Qr?Qr=void 0:Qr=r,Qr!==r?(Ce=it,Zt=pf(Zt),it=Zt):(V=it,it=r)):(V=it,it=r),it}function NT(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=[],Qr=V,Cn=V,Rr++,ns=UI(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=V,Cn=V,Rr++,ns=UI(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r);else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function YC(){var it,Zt,Qr;if(it=V,Zt=[],Xm.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Z1)),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Xm.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Z1));else Zt=r;return Zt!==r&&(Ce=it,Zt=hg()),it=Zt,it}function dy(){var it,Zt,Qr;if(it=V,Zt=[],kh.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(hA)),Qr!==r)for(;Qr!==r;)Zt.push(Qr),kh.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(hA));else Zt=r;return Zt!==r&&(Ce=it,Zt=hg()),it=Zt,it}function k2(){var it;return WA.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(wA)),it}function UI(){var it;return qC.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(qy)),it}function uc(){var it,Zt;if(it=[],re.test(e.charAt(V))?(Zt=e.charAt(V),V++):(Zt=r,Rr===0&&ga(v)),Zt!==r)for(;Zt!==r;)it.push(Zt),re.test(e.charAt(V))?(Zt=e.charAt(V),V++):(Zt=r,Rr===0&&ga(v));else it=r;return it}if(On=c(),On!==r&&V===e.length)return On;throw On!==r&&V{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.stringifyShell=void 0;Bx.parseShell=tzi;Bx.stringifyShellLine=cRe;Bx.stringifyShell=cRe;Bx.stringifyCommandLine=kNt;Bx.stringifyCommandLineThen=rFr;Bx.stringifyCommandChain=PNt;Bx.stringifyCommandChainThen=nFr;Bx.stringifyCommand=iFr;Bx.stringifyEnvSegment=RNt;Bx.stringifyArgument=sFr;Bx.stringifyRedirectArgument=HYe;Bx.stringifyValueArgument=Pge;Bx.stringifyArgumentSegment=cFr;Bx.stringifyArithmeticExpression=ONt;var ezi=tFr();function tzi(e,t={isGlobPattern:()=>!1}){try{return(0,ezi.parse)(e,t)}catch(r){throw r.location&&(r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`)),r}}function cRe(e,{endSemicolon:t=!1}={}){return e.map(({command:r,type:s},c)=>`${kNt(r)}${s===";"?c!==e.length-1||t?";":"":" &"}`).join(" ")}function kNt(e){return`${PNt(e.chain)}${e.then?` ${rFr(e.then)}`:""}`}function rFr(e){return`${e.type} ${kNt(e.line)}`}function PNt(e){return`${iFr(e)}${e.then?` ${nFr(e.then)}`:""}`}function nFr(e){return`${e.type} ${PNt(e.chain)}`}function iFr(e){switch(e.type){case"command":return`${e.envs.length>0?`${e.envs.map(t=>RNt(t)).join(" ")} `:""}${e.args.map(t=>sFr(t)).join(" ")}`;case"subshell":return`(${cRe(e.subshell)})${e.args.length>0?` ${e.args.map(t=>HYe(t)).join(" ")}`:""}`;case"group":return`{ ${cRe(e.group,{endSemicolon:!0})} }${e.args.length>0?` ${e.args.map(t=>HYe(t)).join(" ")}`:""}`;case"envs":return e.envs.map(t=>RNt(t)).join(" ");default:throw new Error(`Unsupported command type: "${e.type}"`)}}function RNt(e){return`${e.name}=${e.args[0]?Pge(e.args[0]):""}`}function sFr(e){switch(e.type){case"redirection":return HYe(e);case"argument":return Pge(e);default:throw new Error(`Unsupported argument type: "${e.type}"`)}}function HYe(e){return`${e.subtype} ${e.args.map(t=>Pge(t)).join(" ")}`}function Pge(e){return e.segments.map(t=>cFr(t)).join("")}var oFr=new Map([["\f","\\f"],[`
-`,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),rzi=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(oFr,([e,t])=>[e,`"$'${t}'"`])]),aFr=e=>oFr.get(e)??`\\x${e.charCodeAt(0).toString(16).padStart(2,"0")}`,nzi=e=>rzi.get(e)??`"$'${aFr(e)}'"`;function cFr(e){let t=(s,c)=>c?`"${s}"`:s,r=s=>s===""?"''":s.match(/[()}<>$|&;"'\n\t ]/)?s.match(/['\t\p{C}]/u)?s.match(/'/)?`"${s.replace(/["$\t\p{C}]/u,nzi)}"`:`$'${s.replace(/[\t\p{C}]/u,aFr)}'`:`'${s}'`:s;switch(e.type){case"text":return r(e.text);case"glob":return e.pattern;case"shell":return t(`$(${cRe(e.shell)})`,e.quoted);case"variable":return t(typeof e.defaultValue>"u"?typeof e.alternativeValue>"u"?`\${${e.name}}`:e.alternativeValue.length===0?`\${${e.name}:+}`:`\${${e.name}:+${e.alternativeValue.map(s=>Pge(s)).join(" ")}}`:e.defaultValue.length===0?`\${${e.name}:-}`:`\${${e.name}:-${e.defaultValue.map(s=>Pge(s)).join(" ")}}`,e.quoted);case"arithmetic":return`$(( ${ONt(e.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${e.type}"`)}}function ONt(e){let t=c=>{switch(c){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${c}"`)}},r=(c,o)=>o?`( ${c} )`:c,s=c=>r(ONt(c),!["number","variable"].includes(c.type));switch(e.type){case"number":return String(e.value);case"variable":return e.name;default:return`${s(e.left)} ${t(e.type)} ${s(e.right)}`}}});var fFr=ae((RFa,uFr)=>{"use strict";function izi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function zae(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,zae)}izi(zae,Error);zae.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;Dge&&(ge=Ae,me=[]),me.push(An))}function xr(An,fr){return new zae(An,null,null,fr)}function yr(An,fr,ui){return new zae(zae.buildMessage(An,fr),An,fr,ui)}function ur(){var An,fr,ui,hi;return An=Ae,fr=jr(),fr!==r?(e.charCodeAt(Ae)===47?(ui=o,Ae++):(ui=r,ye===0&&$t(f)),ui!==r?(hi=jr(),hi!==r?(le=An,fr=_(fr,hi),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=jr(),fr!==r&&(le=An,fr=A(fr)),An=fr),An}function jr(){var An,fr,ui,hi;return An=Ae,fr=Vr(),fr!==r?(e.charCodeAt(Ae)===64?(ui=y,Ae++):(ui=r,ye===0&&$t(I)),ui!==r?(hi=Mn(),hi!==r?(le=An,fr=D(fr,hi),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=Vr(),fr!==r&&(le=An,fr=b(fr)),An=fr),An}function Vr(){var An,fr,ui,hi,we;return An=Ae,e.charCodeAt(Ae)===64?(fr=y,Ae++):(fr=r,ye===0&&$t(I)),fr!==r?(ui=br(),ui!==r?(e.charCodeAt(Ae)===47?(hi=o,Ae++):(hi=r,ye===0&&$t(f)),hi!==r?(we=br(),we!==r?(le=An,fr=L(),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=br(),fr!==r&&(le=An,fr=L()),An=fr),An}function br(){var An,fr,ui;if(An=Ae,fr=[],x.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(J)),ui!==r)for(;ui!==r;)fr.push(ui),x.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(J));else fr=r;return fr!==r&&(le=An,fr=L()),An=fr,An}function Mn(){var An,fr,ui;if(An=Ae,fr=[],Y.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(ne)),ui!==r)for(;ui!==r;)fr.push(ui),Y.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(ne));else fr=r;return fr!==r&&(le=An,fr=L()),An=fr,An}if(Se=c(),Se!==r&&Ae===e.length)return Se;throw Se!==r&&Ae{"use strict";Object.defineProperty(qYe,"__esModule",{value:!0});qYe.parseResolution=azi;qYe.stringifyResolution=czi;var ozi=fFr();function azi(e){let t=e.match(/^\*{1,2}\/(.*)/);if(t)throw new Error(`The override for '${e}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${t[1]}' instead.`);try{return(0,ozi.parse)(e)}catch(r){throw r.location&&(r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`)),r}}function czi(e){let t="";return e.from&&(t+=e.from.fullName,e.from.description&&(t+=`@${e.from.description}`),t+="/"),t+=e.descriptor.fullName,e.descriptor.description&&(t+=`@${e.descriptor.description}`),t}});var Xae=ae((PFa,Kae)=>{"use strict";function dFr(e){return typeof e>"u"||e===null}function lzi(e){return typeof e=="object"&&e!==null}function uzi(e){return Array.isArray(e)?e:dFr(e)?[]:[e]}function fzi(e,t){var r,s,c,o;if(t)for(o=Object.keys(t),r=0,s=o.length;r{"use strict";function lRe(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}lRe.prototype=Object.create(Error.prototype);lRe.prototype.constructor=lRe;lRe.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};_Fr.exports=lRe});var mFr=ae((FFa,hFr)=>{"use strict";var AFr=Xae();function FNt(e,t,r,s,c){this.name=e,this.buffer=t,this.position=r,this.line=s,this.column=c}FNt.prototype.getSnippet=function(t,r){var s,c,o,f,_;if(!this.buffer)return null;for(t=t||4,r=r||75,s="",c=this.position;c>0&&`\0\r
+`},tu="\\r",FA=Ho("\\r",!1),Ad=function(){return"\r"},cp="\\t",Us=Ho("\\t",!1),Gi=function(){return" "},nc="\\v",rl=Ho("\\v",!1),vs=function(){return"\v"},Dd=/^[\\'"?]/,Hd=Eu(["\\","'",'"',"?"],!1,!1),Ta=function(it){return String.fromCharCode(parseInt(it,16))},hs="\\x",Wa=Ho("\\x",!1),_g="\\u",Xs=Ho("\\u",!1),ps="\\U",Ka=Ho("\\U",!1),mm=function(it){return String.fromCodePoint(parseInt(it,16))},LA=/^[0-7]/,gh=Eu([["0","7"]],!1,!1),Tl=/^[0-9a-fA-f]/,Wc=Eu([["0","9"],["a","f"],["A","f"]],!1,!1),qp=e_(),QA="{}",Na=Ho("{}",!1),ru=function(){return"{}"},oi="-",gm=Ho("-",!1),su="+",Ag=Ho("+",!1),Eh=".",Qf=Ho(".",!1),c_=function(it,Zt,Qr){return{type:"number",value:(it==="-"?-1:1)*parseFloat(Zt.join("")+"."+Qr.join(""))}},zm=function(it,Zt){return{type:"number",value:(it==="-"?-1:1)*parseInt(Zt.join(""))}},Yg=function(it){return{type:"variable",...it}},El=function(it){return{type:"variable",name:it}},hd=function(it){return it},Em="*",Ds=Ho("*",!1),Io="/",Bo=Ho("/",!1),Jl=function(it,Zt,Qr){return{type:Zt==="*"?"multiplication":"division",right:Qr}},Dr=function(it,Zt){return Zt.reduce((Qr,Cn)=>({left:Qr,...Cn}),it)},vn=function(it,Zt,Qr){return{type:Zt==="+"?"addition":"subtraction",right:Qr}},Bi="$((",rs=Ho("$((",!1),Zs="))",go=Ho("))",!1),Pl=function(it){return it},Op="$(",bd=Ho("$(",!1),Rh=function(it){return it},ll="${",wg=Ho("${",!1),MI=":-",QS=Ho(":-",!1),lp=function(it,Zt){return{name:it,defaultValue:Zt}},Bg=":-}",xg=Ho(":-}",!1),jy=function(it){return{name:it,defaultValue:[]}},P_=":+",$f=Ho(":+",!1),uy=function(it,Zt){return{name:it,alternativeValue:Zt}},D0=":+}",Hy=Ho(":+}",!1),ac=function(it){return{name:it,alternativeValue:[]}},nE=function(it){return{name:it}},X1="$",Km=Ho("$",!1),zg=function(it){return t.isGlobPattern(it)},pf=function(it){return it},Xm=/^[a-zA-Z0-9_]/,Z1=Eu([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),hg=function(){return Fn()},kh=/^[$@*?#a-zA-Z0-9_\-]/,hA=Eu(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),WA=/^[()}<>$|&; \t"']/,wA=Eu(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),qC=/^[<>&; \t"']/,qy=Eu(["<",">","&",";"," "," ",'"',"'"],!1,!1),re=/^[ \t]/,v=Eu([" "," "],!1,!1),V=0,Ce=0,ct=[{line:1,column:1}],Yt=0,Br=[],Rr=0,On;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function Fn(){return e.substring(Ce,V)}function Mo(){return fy(Ce,V)}function pc(it,Zt){throw Zt=Zt!==void 0?Zt:fy(Ce,V),ch([YA(it)],e.substring(Ce,V),Zt)}function qc(it,Zt){throw Zt=Zt!==void 0?Zt:fy(Ce,V),md(it,Zt)}function Ho(it,Zt){return{type:"literal",text:it,ignoreCase:Zt}}function Eu(it,Zt,Qr){return{type:"class",parts:it,inverted:Zt,ignoreCase:Qr}}function e_(){return{type:"any"}}function up(){return{type:"end"}}function YA(it){return{type:"other",description:it}}function qd(it){var Zt=ct[it],Qr;if(Zt)return Zt;for(Qr=it-1;!ct[Qr];)Qr--;for(Zt=ct[Qr],Zt={line:Zt.line,column:Zt.column};QrYt&&(Yt=V,Br=[]),Br.push(it))}function md(it,Zt){return new Yae(it,null,null,Zt)}function ch(it,Zt,Qr){return new Yae(Yae.buildMessage(it,Zt),it,Zt,Qr)}function mA(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Qr=b0(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=o(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function b0(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=R2(),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();Qr!==r?(Cn=N2(),Cn!==r?(ns=Ng(),ns===r&&(ns=null),ns!==r?(Ce=it,Zt=f(Zt,Cn,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;if(it===r)if(it=V,Zt=R2(),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();Qr!==r?(Cn=N2(),Cn===r&&(Cn=null),Cn!==r?(Ce=it,Zt=_(Zt,Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;return it}function Ng(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=b0(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=A(Qr),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;return it}function N2(){var it;return e.charCodeAt(V)===59?(it=y,V++):(it=r,Rr===0&&ga(I)),it===r&&(e.charCodeAt(V)===38?(it=D,V++):(it=r,Rr===0&&ga(b))),it}function R2(){var it,Zt,Qr;return it=V,Zt=VC(),Zt!==r?(Qr=JC(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=L(Zt,Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function JC(){var it,Zt,Qr,Cn,ns,vo,df;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=py(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=R2(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=x(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;return it}function py(){var it;return e.substr(V,2)===J?(it=J,V+=2):(it=r,Rr===0&&ga(Y)),it===r&&(e.substr(V,2)===ne?(it=ne,V+=2):(it=r,Rr===0&&ga(Ae))),it}function VC(){var it,Zt,Qr;return it=V,Zt=wE(),Zt!==r?(Qr=MS(),Qr===r&&(Qr=null),Qr!==r?(Ce=it,Zt=le(Zt,Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function MS(){var it,Zt,Qr,Cn,ns,vo,df;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(Qr=bE(),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=VC(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=pe(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;return it}function bE(){var it;return e.substr(V,2)===ge?(it=ge,V+=2):(it=r,Rr===0&&ga(me)),it===r&&(e.charCodeAt(V)===124?(it=ye,V++):(it=r,Rr===0&&ga(Se))),it}function i0(){var it,Zt,Qr,Cn,ns,vo;if(it=V,Zt=YC(),Zt!==r)if(e.charCodeAt(V)===61?(Qr=Le,V++):(Qr=r,Rr===0&&ga(rt)),Qr!==r)if(Cn=Rg(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(Ce=it,Zt=P(Zt,Cn),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;else V=it,it=r;if(it===r)if(it=V,Zt=YC(),Zt!==r)if(e.charCodeAt(V)===61?(Qr=Le,V++):(Qr=r,Rr===0&&ga(rt)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=pt(Zt),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r;return it}function wE(){var it,Zt,Qr,Cn,ns,vo,df,hf,iA,zA,tm;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(e.charCodeAt(V)===40?(Qr=nt,V++):(Qr=r,Rr===0&&ga(ht)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=b0(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();if(vo!==r)if(e.charCodeAt(V)===41?(df=ot,V++):(df=r,Rr===0&&ga(Et)),df!==r){for(hf=[],iA=uc();iA!==r;)hf.push(iA),iA=uc();if(hf!==r){for(iA=[],zA=Vl();zA!==r;)iA.push(zA),zA=Vl();if(iA!==r){for(zA=[],tm=uc();tm!==r;)zA.push(tm),tm=uc();zA!==r?(Ce=it,Zt=Vt(ns,iA),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r)if(e.charCodeAt(V)===123?(Qr=Er,V++):(Qr=r,Rr===0&&ga(pn)),Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r)if(ns=b0(),ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();if(vo!==r)if(e.charCodeAt(V)===125?(df=$t,V++):(df=r,Rr===0&&ga(xr)),df!==r){for(hf=[],iA=uc();iA!==r;)hf.push(iA),iA=uc();if(hf!==r){for(iA=[],zA=Vl();zA!==r;)iA.push(zA),zA=Vl();if(iA!==r){for(zA=[],tm=uc();tm!==r;)zA.push(tm),tm=uc();zA!==r?(Ce=it,Zt=yr(ns,iA),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r}else V=it,it=r;else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){for(Qr=[],Cn=i0();Cn!==r;)Qr.push(Cn),Cn=i0();if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();if(Cn!==r){if(ns=[],vo=ym(),vo!==r)for(;vo!==r;)ns.push(vo),vo=ym();else ns=r;if(ns!==r){for(vo=[],df=uc();df!==r;)vo.push(df),df=uc();vo!==r?(Ce=it,Zt=ur(Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}else V=it,it=r}else V=it,it=r;if(it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){if(Qr=[],Cn=i0(),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Cn=i0();else Qr=r;if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=jr(Qr),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r}}}return it}function Yl(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r){if(Qr=[],Cn=cf(),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Cn=cf();else Qr=r;if(Qr!==r){for(Cn=[],ns=uc();ns!==r;)Cn.push(ns),ns=uc();Cn!==r?(Ce=it,Zt=Vr(Qr),it=Zt):(V=it,it=r)}else V=it,it=r}else V=it,it=r;return it}function ym(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();if(Zt!==r?(Qr=Vl(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r){for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();Zt!==r?(Qr=cf(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)}return it}function Vl(){var it,Zt,Qr,Cn,ns;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Mn.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(An)),Qr===r&&(Qr=null),Qr!==r?(Cn=t_(),Cn!==r?(ns=cf(),ns!==r?(Ce=it,Zt=fr(Qr,Cn,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function t_(){var it;return e.substr(V,2)===ui?(it=ui,V+=2):(it=r,Rr===0&&ga(hi)),it===r&&(e.substr(V,2)===we?(it=we,V+=2):(it=r,Rr===0&&ga(os)),it===r&&(e.charCodeAt(V)===62?(it=Hc,V++):(it=r,Rr===0&&ga(Va)),it===r&&(e.substr(V,3)===zs?(it=zs,V+=3):(it=r,Rr===0&&ga(or)),it===r&&(e.substr(V,2)===la?(it=la,V+=2):(it=r,Rr===0&&ga(vi)),it===r&&(e.charCodeAt(V)===60?(it=Uu,V++):(it=r,Rr===0&&ga(Gu))))))),it}function cf(){var it,Zt,Qr;for(it=V,Zt=[],Qr=uc();Qr!==r;)Zt.push(Qr),Qr=uc();return Zt!==r?(Qr=Rg(),Qr!==r?(Ce=it,Zt=br(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it}function Rg(){var it,Zt,Qr;if(it=V,Zt=[],Qr=$1(),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=$1();else Zt=r;return Zt!==r&&(Ce=it,Zt=Hp(Zt)),it=Zt,it}function $1(){var it,Zt;return it=V,Zt=ep(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=Ov(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=E1(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt,it===r&&(it=V,Zt=Rm(),Zt!==r&&(Ce=it,Zt=ap(Zt)),it=Zt))),it}function ep(){var it,Zt,Qr,Cn;return it=V,e.substr(V,2)===Kf?(Zt=Kf,V+=2):(Zt=r,Rr===0&&ga(rA)),Zt!==r?(Qr=Ul(),Qr!==r?(e.charCodeAt(V)===39?(Cn=zr,V++):(Cn=r,Rr===0&&ga(Nr)),Cn!==r?(Ce=it,Zt=dr(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function Ov(){var it,Zt,Qr,Cn;return it=V,e.charCodeAt(V)===39?(Zt=zr,V++):(Zt=r,Rr===0&&ga(Nr)),Zt!==r?(Qr=Fo(),Qr!==r?(e.charCodeAt(V)===39?(Cn=zr,V++):(Cn=r,Rr===0&&ga(Nr)),Cn!==r?(Ce=it,Zt=dr(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function E1(){var it,Zt,Qr,Cn;if(it=V,e.substr(V,2)===nn?(Zt=nn,V+=2):(Zt=r,Rr===0&&ga(_n)),Zt!==r&&(Ce=it,Zt=Pn()),it=Zt,it===r)if(it=V,e.charCodeAt(V)===34?(Zt=ji,V++):(Zt=r,Rr===0&&ga(qr)),Zt!==r){for(Qr=[],Cn=yh();Cn!==r;)Qr.push(Cn),Cn=yh();Qr!==r?(e.charCodeAt(V)===34?(Cn=ji,V++):(Cn=r,Rr===0&&ga(qr)),Cn!==r?(Ce=it,Zt=Os(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;return it}function Rm(){var it,Zt,Qr;if(it=V,Zt=[],Qr=ki(),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=ki();else Zt=r;return Zt!==r&&(Ce=it,Zt=Os(Zt)),it=Zt,it}function yh(){var it,Zt;return it=V,Zt=Qi(),Zt!==r&&(Ce=it,Zt=xo(Zt)),it=Zt,it===r&&(it=V,Zt=Vy(),Zt!==r&&(Ce=it,Zt=ei(Zt)),it=Zt,it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=Ia(Zt)),it=Zt,it===r&&(it=V,Zt=Zi(),Zt!==r&&(Ce=it,Zt=Bf(Zt)),it=Zt))),it}function ki(){var it,Zt;return it=V,Zt=Qi(),Zt!==r&&(Ce=it,Zt=Yu(Zt)),it=Zt,it===r&&(it=V,Zt=Vy(),Zt!==r&&(Ce=it,Zt=Af(Zt)),it=Zt,it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=wu(Zt)),it=Zt,it===r&&(it=V,Zt=nA(),Zt!==r&&(Ce=it,Zt=dl(Zt)),it=Zt,it===r&&(it=V,Zt=xT(),Zt!==r&&(Ce=it,Zt=Bf(Zt)),it=Zt)))),it}function Fo(){var it,Zt,Qr;for(it=V,Zt=[],Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi));Qr!==r;)Zt.push(Qr),Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi));return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Zi(){var it,Zt,Qr;if(it=V,Zt=[],Qr=Ic(),Qr===r&&(ka.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Ks))),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=Ic(),Qr===r&&(ka.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Ks)));else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Ic(){var it,Zt,Qr;return it=V,e.substr(V,2)===Nl?(Zt=Nl,V+=2):(Zt=r,Rr===0&&ga(Yo)),Zt!==r&&(Ce=it,Zt=va()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(gl.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(eu)),Qr!==r?(Ce=it,Zt=kf(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)),it}function Ul(){var it,Zt,Qr;for(it=V,Zt=[],Qr=Bp(),Qr===r&&(Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi)));Qr!==r;)Zt.push(Qr),Qr=Bp(),Qr===r&&(Di.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Xi)));return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function Bp(){var it,Zt,Qr;return it=V,e.substr(V,2)===y_?(Zt=y_,V+=2):(Zt=r,Rr===0&&ga(zp)),Zt!==r&&(Ce=it,Zt=ti()),it=Zt,it===r&&(it=V,e.substr(V,2)===rc?(Zt=rc,V+=2):(Zt=r,Rr===0&&ga(xt)),Zt!==r&&(Ce=it,Zt=cl()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(nf.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(fs)),Qr!==r?(Ce=it,Zt=zu(),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===rn?(Zt=rn,V+=2):(Zt=r,Rr===0&&ga(bo)),Zt!==r&&(Ce=it,Zt=Xf()),it=Zt,it===r&&(it=V,e.substr(V,2)===Zf?(Zt=Zf,V+=2):(Zt=r,Rr===0&&ga(Tp)),Zt!==r&&(Ce=it,Zt=wo()),it=Zt,it===r&&(it=V,e.substr(V,2)===tu?(Zt=tu,V+=2):(Zt=r,Rr===0&&ga(FA)),Zt!==r&&(Ce=it,Zt=Ad()),it=Zt,it===r&&(it=V,e.substr(V,2)===cp?(Zt=cp,V+=2):(Zt=r,Rr===0&&ga(Us)),Zt!==r&&(Ce=it,Zt=Gi()),it=Zt,it===r&&(it=V,e.substr(V,2)===nc?(Zt=nc,V+=2):(Zt=r,Rr===0&&ga(rl)),Zt!==r&&(Ce=it,Zt=vs()),it=Zt,it===r&&(it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(Dd.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Hd)),Qr!==r?(Ce=it,Zt=kf(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=BA()))))))))),it}function BA(){var it,Zt,Qr,Cn,ns,vo,df,hf,iA,zA,tm,eC;return it=V,e.charCodeAt(V)===92?(Zt=Ru,V++):(Zt=r,Rr===0&&ga(Lf)),Zt!==r?(Qr=Jd(),Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===hs?(Zt=hs,V+=2):(Zt=r,Rr===0&&ga(Wa)),Zt!==r?(Qr=V,Cn=V,ns=Jd(),ns!==r?(vo=s0(),vo!==r?(ns=[ns,vo],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn===r&&(Cn=Jd()),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===_g?(Zt=_g,V+=2):(Zt=r,Rr===0&&ga(Xs)),Zt!==r?(Qr=V,Cn=V,ns=s0(),ns!==r?(vo=s0(),vo!==r?(df=s0(),df!==r?(hf=s0(),hf!==r?(ns=[ns,vo,df,hf],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=Ta(Qr),it=Zt):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ps?(Zt=ps,V+=2):(Zt=r,Rr===0&&ga(Ka)),Zt!==r?(Qr=V,Cn=V,ns=s0(),ns!==r?(vo=s0(),vo!==r?(df=s0(),df!==r?(hf=s0(),hf!==r?(iA=s0(),iA!==r?(zA=s0(),zA!==r?(tm=s0(),tm!==r?(eC=s0(),eC!==r?(ns=[ns,vo,df,hf,iA,zA,tm,eC],Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r)):(V=Cn,Cn=r),Cn!==r?Qr=e.substring(Qr,V):Qr=Cn,Qr!==r?(Ce=it,Zt=mm(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)))),it}function Jd(){var it;return LA.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(gh)),it}function s0(){var it;return Tl.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(Wc)),it}function xT(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=[],Qr=V,e.charCodeAt(V)===92?(Cn=Ru,V++):(Cn=r,Rr===0&&ga(Lf)),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr===r&&(Qr=V,e.substr(V,2)===QA?(Cn=QA,V+=2):(Cn=r,Rr===0&&ga(Na)),Cn!==r&&(Ce=Qr,Cn=ru()),Qr=Cn,Qr===r&&(Qr=V,Cn=V,Rr++,ns=k2(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r))),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=V,e.charCodeAt(V)===92?(Cn=Ru,V++):(Cn=r,Rr===0&&ga(Lf)),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr===r&&(Qr=V,e.substr(V,2)===QA?(Cn=QA,V+=2):(Cn=r,Rr===0&&ga(Na)),Cn!==r&&(Ce=Qr,Cn=ru()),Qr=Cn,Qr===r&&(Qr=V,Cn=V,Rr++,ns=k2(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r)));else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function mg(){var it,Zt,Qr,Cn,ns,vo;if(it=V,e.charCodeAt(V)===45?(Zt=oi,V++):(Zt=r,Rr===0&&ga(gm)),Zt===r&&(e.charCodeAt(V)===43?(Zt=su,V++):(Zt=r,Rr===0&&ga(Ag))),Zt===r&&(Zt=null),Zt!==r){if(Qr=[],Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An)),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An));else Qr=r;if(Qr!==r)if(e.charCodeAt(V)===46?(Cn=Eh,V++):(Cn=r,Rr===0&&ga(Qf)),Cn!==r){if(ns=[],Mn.test(e.charAt(V))?(vo=e.charAt(V),V++):(vo=r,Rr===0&&ga(An)),vo!==r)for(;vo!==r;)ns.push(vo),Mn.test(e.charAt(V))?(vo=e.charAt(V),V++):(vo=r,Rr===0&&ga(An));else ns=r;ns!==r?(Ce=it,Zt=c_(Zt,Qr,ns),it=Zt):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;if(it===r){if(it=V,e.charCodeAt(V)===45?(Zt=oi,V++):(Zt=r,Rr===0&&ga(gm)),Zt===r&&(e.charCodeAt(V)===43?(Zt=su,V++):(Zt=r,Rr===0&&ga(Ag))),Zt===r&&(Zt=null),Zt!==r){if(Qr=[],Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An)),Cn!==r)for(;Cn!==r;)Qr.push(Cn),Mn.test(e.charAt(V))?(Cn=e.charAt(V),V++):(Cn=r,Rr===0&&ga(An));else Qr=r;Qr!==r?(Ce=it,Zt=zm(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;if(it===r&&(it=V,Zt=WC(),Zt!==r&&(Ce=it,Zt=Yg(Zt)),it=Zt,it===r&&(it=V,Zt=dy(),Zt!==r&&(Ce=it,Zt=El(Zt)),it=Zt,it===r)))if(it=V,e.charCodeAt(V)===40?(Zt=nt,V++):(Zt=r,Rr===0&&ga(ht)),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();if(Qr!==r)if(Cn=iE(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(e.charCodeAt(V)===41?(vo=ot,V++):(vo=r,Rr===0&&ga(Et)),vo!==r?(Ce=it,Zt=hd(Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r}return it}function Jy(){var it,Zt,Qr,Cn,ns,vo,df,hf;if(it=V,Zt=mg(),Zt!==r){for(Qr=[],Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===42?(vo=Em,V++):(vo=r,Rr===0&&ga(Ds)),vo===r&&(e.charCodeAt(V)===47?(vo=Io,V++):(vo=r,Rr===0&&ga(Bo))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=mg(),hf!==r?(Ce=Cn,ns=Jl(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r;for(;Cn!==r;){for(Qr.push(Cn),Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===42?(vo=Em,V++):(vo=r,Rr===0&&ga(Ds)),vo===r&&(e.charCodeAt(V)===47?(vo=Io,V++):(vo=r,Rr===0&&ga(Bo))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=mg(),hf!==r?(Ce=Cn,ns=Jl(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r}Qr!==r?(Ce=it,Zt=Dr(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;return it}function iE(){var it,Zt,Qr,Cn,ns,vo,df,hf;if(it=V,Zt=Jy(),Zt!==r){for(Qr=[],Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===43?(vo=su,V++):(vo=r,Rr===0&&ga(Ag)),vo===r&&(e.charCodeAt(V)===45?(vo=oi,V++):(vo=r,Rr===0&&ga(gm))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=Jy(),hf!==r?(Ce=Cn,ns=vn(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r;for(;Cn!==r;){for(Qr.push(Cn),Cn=V,ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();if(ns!==r)if(e.charCodeAt(V)===43?(vo=su,V++):(vo=r,Rr===0&&ga(Ag)),vo===r&&(e.charCodeAt(V)===45?(vo=oi,V++):(vo=r,Rr===0&&ga(gm))),vo!==r){for(df=[],hf=uc();hf!==r;)df.push(hf),hf=uc();df!==r?(hf=Jy(),hf!==r?(Ce=Cn,ns=vn(Zt,vo,hf),Cn=ns):(V=Cn,Cn=r)):(V=Cn,Cn=r)}else V=Cn,Cn=r;else V=Cn,Cn=r}Qr!==r?(Ce=it,Zt=Dr(Zt,Qr),it=Zt):(V=it,it=r)}else V=it,it=r;return it}function Qi(){var it,Zt,Qr,Cn,ns,vo;if(it=V,e.substr(V,3)===Bi?(Zt=Bi,V+=3):(Zt=r,Rr===0&&ga(rs)),Zt!==r){for(Qr=[],Cn=uc();Cn!==r;)Qr.push(Cn),Cn=uc();if(Qr!==r)if(Cn=iE(),Cn!==r){for(ns=[],vo=uc();vo!==r;)ns.push(vo),vo=uc();ns!==r?(e.substr(V,2)===Zs?(vo=Zs,V+=2):(vo=r,Rr===0&&ga(go)),vo!==r?(Ce=it,Zt=Pl(Cn),it=Zt):(V=it,it=r)):(V=it,it=r)}else V=it,it=r;else V=it,it=r}else V=it,it=r;return it}function Vy(){var it,Zt,Qr,Cn;return it=V,e.substr(V,2)===Op?(Zt=Op,V+=2):(Zt=r,Rr===0&&ga(bd)),Zt!==r?(Qr=b0(),Qr!==r?(e.charCodeAt(V)===41?(Cn=ot,V++):(Cn=r,Rr===0&&ga(Et)),Cn!==r?(Ce=it,Zt=Rh(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it}function WC(){var it,Zt,Qr,Cn,ns,vo;return it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,2)===MI?(Cn=MI,V+=2):(Cn=r,Rr===0&&ga(QS)),Cn!==r?(ns=Yl(),ns!==r?(e.charCodeAt(V)===125?(vo=$t,V++):(vo=r,Rr===0&&ga(xr)),vo!==r?(Ce=it,Zt=lp(Qr,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,3)===Bg?(Cn=Bg,V+=3):(Cn=r,Rr===0&&ga(xg)),Cn!==r?(Ce=it,Zt=jy(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,2)===P_?(Cn=P_,V+=2):(Cn=r,Rr===0&&ga($f)),Cn!==r?(ns=Yl(),ns!==r?(e.charCodeAt(V)===125?(vo=$t,V++):(vo=r,Rr===0&&ga(xr)),vo!==r?(Ce=it,Zt=uy(Qr,ns),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.substr(V,3)===D0?(Cn=D0,V+=3):(Cn=r,Rr===0&&ga(Hy)),Cn!==r?(Ce=it,Zt=ac(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.substr(V,2)===ll?(Zt=ll,V+=2):(Zt=r,Rr===0&&ga(wg)),Zt!==r?(Qr=dy(),Qr!==r?(e.charCodeAt(V)===125?(Cn=$t,V++):(Cn=r,Rr===0&&ga(xr)),Cn!==r?(Ce=it,Zt=nE(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)):(V=it,it=r),it===r&&(it=V,e.charCodeAt(V)===36?(Zt=X1,V++):(Zt=r,Rr===0&&ga(Km)),Zt!==r?(Qr=dy(),Qr!==r?(Ce=it,Zt=nE(Qr),it=Zt):(V=it,it=r)):(V=it,it=r)))))),it}function nA(){var it,Zt,Qr;return it=V,Zt=NT(),Zt!==r?(Ce=V,Qr=zg(Zt),Qr?Qr=void 0:Qr=r,Qr!==r?(Ce=it,Zt=pf(Zt),it=Zt):(V=it,it=r)):(V=it,it=r),it}function NT(){var it,Zt,Qr,Cn,ns;if(it=V,Zt=[],Qr=V,Cn=V,Rr++,ns=UI(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Qr=V,Cn=V,Rr++,ns=UI(),Rr--,ns===r?Cn=void 0:(V=Cn,Cn=r),Cn!==r?(e.length>V?(ns=e.charAt(V),V++):(ns=r,Rr===0&&ga(qp)),ns!==r?(Ce=Qr,Cn=kf(ns),Qr=Cn):(V=Qr,Qr=r)):(V=Qr,Qr=r);else Zt=r;return Zt!==r&&(Ce=it,Zt=Ki(Zt)),it=Zt,it}function YC(){var it,Zt,Qr;if(it=V,Zt=[],Xm.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Z1)),Qr!==r)for(;Qr!==r;)Zt.push(Qr),Xm.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(Z1));else Zt=r;return Zt!==r&&(Ce=it,Zt=hg()),it=Zt,it}function dy(){var it,Zt,Qr;if(it=V,Zt=[],kh.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(hA)),Qr!==r)for(;Qr!==r;)Zt.push(Qr),kh.test(e.charAt(V))?(Qr=e.charAt(V),V++):(Qr=r,Rr===0&&ga(hA));else Zt=r;return Zt!==r&&(Ce=it,Zt=hg()),it=Zt,it}function k2(){var it;return WA.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(wA)),it}function UI(){var it;return qC.test(e.charAt(V))?(it=e.charAt(V),V++):(it=r,Rr===0&&ga(qy)),it}function uc(){var it,Zt;if(it=[],re.test(e.charAt(V))?(Zt=e.charAt(V),V++):(Zt=r,Rr===0&&ga(v)),Zt!==r)for(;Zt!==r;)it.push(Zt),re.test(e.charAt(V))?(Zt=e.charAt(V),V++):(Zt=r,Rr===0&&ga(v));else it=r;return it}if(On=c(),On!==r&&V===e.length)return On;throw On!==r&&V{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.stringifyShell=void 0;Bx.parseShell=$Yi;Bx.stringifyShellLine=cRe;Bx.stringifyShell=cRe;Bx.stringifyCommandLine=NNt;Bx.stringifyCommandLineThen=eFr;Bx.stringifyCommandChain=RNt;Bx.stringifyCommandChainThen=tFr;Bx.stringifyCommand=rFr;Bx.stringifyEnvSegment=xNt;Bx.stringifyArgument=nFr;Bx.stringifyRedirectArgument=HYe;Bx.stringifyValueArgument=Pge;Bx.stringifyArgumentSegment=oFr;Bx.stringifyArithmeticExpression=kNt;var ZYi=$Or();function $Yi(e,t={isGlobPattern:()=>!1}){try{return(0,ZYi.parse)(e,t)}catch(r){throw r.location&&(r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`)),r}}function cRe(e,{endSemicolon:t=!1}={}){return e.map(({command:r,type:s},c)=>`${NNt(r)}${s===";"?c!==e.length-1||t?";":"":" &"}`).join(" ")}function NNt(e){return`${RNt(e.chain)}${e.then?` ${eFr(e.then)}`:""}`}function eFr(e){return`${e.type} ${NNt(e.line)}`}function RNt(e){return`${rFr(e)}${e.then?` ${tFr(e.then)}`:""}`}function tFr(e){return`${e.type} ${RNt(e.chain)}`}function rFr(e){switch(e.type){case"command":return`${e.envs.length>0?`${e.envs.map(t=>xNt(t)).join(" ")} `:""}${e.args.map(t=>nFr(t)).join(" ")}`;case"subshell":return`(${cRe(e.subshell)})${e.args.length>0?` ${e.args.map(t=>HYe(t)).join(" ")}`:""}`;case"group":return`{ ${cRe(e.group,{endSemicolon:!0})} }${e.args.length>0?` ${e.args.map(t=>HYe(t)).join(" ")}`:""}`;case"envs":return e.envs.map(t=>xNt(t)).join(" ");default:throw new Error(`Unsupported command type: "${e.type}"`)}}function xNt(e){return`${e.name}=${e.args[0]?Pge(e.args[0]):""}`}function nFr(e){switch(e.type){case"redirection":return HYe(e);case"argument":return Pge(e);default:throw new Error(`Unsupported argument type: "${e.type}"`)}}function HYe(e){return`${e.subtype} ${e.args.map(t=>Pge(t)).join(" ")}`}function Pge(e){return e.segments.map(t=>oFr(t)).join("")}var iFr=new Map([["\f","\\f"],[`
+`,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),ezi=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(iFr,([e,t])=>[e,`"$'${t}'"`])]),sFr=e=>iFr.get(e)??`\\x${e.charCodeAt(0).toString(16).padStart(2,"0")}`,tzi=e=>ezi.get(e)??`"$'${sFr(e)}'"`;function oFr(e){let t=(s,c)=>c?`"${s}"`:s,r=s=>s===""?"''":s.match(/[()}<>$|&;"'\n\t ]/)?s.match(/['\t\p{C}]/u)?s.match(/'/)?`"${s.replace(/["$\t\p{C}]/u,tzi)}"`:`$'${s.replace(/[\t\p{C}]/u,sFr)}'`:`'${s}'`:s;switch(e.type){case"text":return r(e.text);case"glob":return e.pattern;case"shell":return t(`$(${cRe(e.shell)})`,e.quoted);case"variable":return t(typeof e.defaultValue>"u"?typeof e.alternativeValue>"u"?`\${${e.name}}`:e.alternativeValue.length===0?`\${${e.name}:+}`:`\${${e.name}:+${e.alternativeValue.map(s=>Pge(s)).join(" ")}}`:e.defaultValue.length===0?`\${${e.name}:-}`:`\${${e.name}:-${e.defaultValue.map(s=>Pge(s)).join(" ")}}`,e.quoted);case"arithmetic":return`$(( ${kNt(e.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${e.type}"`)}}function kNt(e){let t=c=>{switch(c){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${c}"`)}},r=(c,o)=>o?`( ${c} )`:c,s=c=>r(kNt(c),!["number","variable"].includes(c.type));switch(e.type){case"number":return String(e.value);case"variable":return e.name;default:return`${s(e.left)} ${t(e.type)} ${s(e.right)}`}}});var lFr=ae((xFa,cFr)=>{"use strict";function rzi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function zae(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,zae)}rzi(zae,Error);zae.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;Dge&&(ge=Ae,me=[]),me.push(An))}function xr(An,fr){return new zae(An,null,null,fr)}function yr(An,fr,ui){return new zae(zae.buildMessage(An,fr),An,fr,ui)}function ur(){var An,fr,ui,hi;return An=Ae,fr=jr(),fr!==r?(e.charCodeAt(Ae)===47?(ui=o,Ae++):(ui=r,ye===0&&$t(f)),ui!==r?(hi=jr(),hi!==r?(le=An,fr=_(fr,hi),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=jr(),fr!==r&&(le=An,fr=A(fr)),An=fr),An}function jr(){var An,fr,ui,hi;return An=Ae,fr=Vr(),fr!==r?(e.charCodeAt(Ae)===64?(ui=y,Ae++):(ui=r,ye===0&&$t(I)),ui!==r?(hi=Mn(),hi!==r?(le=An,fr=D(fr,hi),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=Vr(),fr!==r&&(le=An,fr=b(fr)),An=fr),An}function Vr(){var An,fr,ui,hi,we;return An=Ae,e.charCodeAt(Ae)===64?(fr=y,Ae++):(fr=r,ye===0&&$t(I)),fr!==r?(ui=br(),ui!==r?(e.charCodeAt(Ae)===47?(hi=o,Ae++):(hi=r,ye===0&&$t(f)),hi!==r?(we=br(),we!==r?(le=An,fr=L(),An=fr):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r)):(Ae=An,An=r),An===r&&(An=Ae,fr=br(),fr!==r&&(le=An,fr=L()),An=fr),An}function br(){var An,fr,ui;if(An=Ae,fr=[],x.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(J)),ui!==r)for(;ui!==r;)fr.push(ui),x.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(J));else fr=r;return fr!==r&&(le=An,fr=L()),An=fr,An}function Mn(){var An,fr,ui;if(An=Ae,fr=[],Y.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(ne)),ui!==r)for(;ui!==r;)fr.push(ui),Y.test(e.charAt(Ae))?(ui=e.charAt(Ae),Ae++):(ui=r,ye===0&&$t(ne));else fr=r;return fr!==r&&(le=An,fr=L()),An=fr,An}if(Se=c(),Se!==r&&Ae===e.length)return Se;throw Se!==r&&Ae{"use strict";Object.defineProperty(qYe,"__esModule",{value:!0});qYe.parseResolution=szi;qYe.stringifyResolution=ozi;var izi=lFr();function szi(e){let t=e.match(/^\*{1,2}\/(.*)/);if(t)throw new Error(`The override for '${e}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${t[1]}' instead.`);try{return(0,izi.parse)(e)}catch(r){throw r.location&&(r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`)),r}}function ozi(e){let t="";return e.from&&(t+=e.from.fullName,e.from.description&&(t+=`@${e.from.description}`),t+="/"),t+=e.descriptor.fullName,e.descriptor.description&&(t+=`@${e.descriptor.description}`),t}});var Xae=ae((RFa,Kae)=>{"use strict";function fFr(e){return typeof e>"u"||e===null}function azi(e){return typeof e=="object"&&e!==null}function czi(e){return Array.isArray(e)?e:fFr(e)?[]:[e]}function lzi(e,t){var r,s,c,o;if(t)for(o=Object.keys(t),r=0,s=o.length;r{"use strict";function lRe(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}lRe.prototype=Object.create(Error.prototype);lRe.prototype.constructor=lRe;lRe.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};pFr.exports=lRe});var AFr=ae((PFa,_Fr)=>{"use strict";var dFr=Xae();function PNt(e,t,r,s,c){this.name=e,this.buffer=t,this.position=r,this.line=s,this.column=c}PNt.prototype.getSnippet=function(t,r){var s,c,o,f,_;if(!this.buffer)return null;for(t=t||4,r=r||75,s="",c=this.position;c>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(c-1))===-1;)if(c-=1,this.position-c>r/2-1){s=" ... ",c+=5;break}for(o="",f=this.position;fr/2-1){o=" ... ",f-=5;break}return _=this.buffer.slice(c,f),AFr.repeat(" ",t)+s+_+o+`
-`+AFr.repeat(" ",t+this.position-c+s.length)+"^"};FNt.prototype.toString=function(t){var r,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(s+=`:
-`+r)),s};hFr.exports=FNt});var Mb=ae((LFa,EFr)=>{"use strict";var gFr=Oge(),_zi=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Azi=["scalar","sequence","mapping"];function hzi(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(s){t[String(s)]=r})}),t}function mzi(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(_zi.indexOf(r)===-1)throw new gFr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=hzi(t.styleAliases||null),Azi.indexOf(this.kind)===-1)throw new gFr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}EFr.exports=mzi});var Zae=ae((QFa,CFr)=>{"use strict";var yFr=Xae(),JYe=Oge(),gzi=Mb();function LNt(e,t,r){var s=[];return e.include.forEach(function(c){r=LNt(c,t,r)}),e[t].forEach(function(c){r.forEach(function(o,f){o.tag===c.tag&&o.kind===c.kind&&s.push(f)}),r.push(c)}),r.filter(function(c,o){return s.indexOf(o)===-1})}function Ezi(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function s(c){e[c.kind][c.tag]=e.fallback[c.tag]=c}for(t=0,r=arguments.length;t{"use strict";var yzi=Mb();IFr.exports=new yzi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var vFr=ae((UFa,SFr)=>{"use strict";var Czi=Mb();SFr.exports=new Czi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var bFr=ae((GFa,DFr)=>{"use strict";var Izi=Mb();DFr.exports=new Izi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var VYe=ae((jFa,wFr)=>{"use strict";var Tzi=Zae();wFr.exports=new Tzi({explicit:[TFr(),vFr(),bFr()]})});var xFr=ae((HFa,BFr)=>{"use strict";var Szi=Mb();function vzi(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Dzi(){return null}function bzi(e){return e===null}BFr.exports=new Szi("tag:yaml.org,2002:null",{kind:"scalar",resolve:vzi,construct:Dzi,predicate:bzi,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var RFr=ae((qFa,NFr)=>{"use strict";var wzi=Mb();function Bzi(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function xzi(e){return e==="true"||e==="True"||e==="TRUE"}function Nzi(e){return Object.prototype.toString.call(e)==="[object Boolean]"}NFr.exports=new wzi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Bzi,construct:xzi,predicate:Nzi,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var PFr=ae((JFa,kFr)=>{"use strict";var Rzi=Xae(),kzi=Mb();function Pzi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ozi(e){return 48<=e&&e<=55}function Fzi(e){return 48<=e&&e<=57}function Lzi(e){if(e===null)return!1;var t=e.length,r=0,s=!1,c;if(!t)return!1;if(c=e[r],(c==="-"||c==="+")&&(c=e[++r]),c==="0"){if(r+1===t)return!0;if(c=e[++r],c==="b"){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var LFr=ae((VFa,FFr)=>{"use strict";var OFr=Xae(),Uzi=Mb(),Gzi=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jzi(e){return!(e===null||!Gzi.test(e)||e[e.length-1]==="_")}function Hzi(e){var t,r,s,c;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,c=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){c.unshift(parseFloat(o,10))}),t=0,s=1,c.forEach(function(o){t+=o*s,s*=60}),r*t):r*parseFloat(t,10)}var qzi=/^[-+]?[0-9]+e/;function Jzi(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(OFr.isNegativeZero(e))return"-0.0";return r=e.toString(10),qzi.test(r)?r.replace("e",".e"):r}function Vzi(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||OFr.isNegativeZero(e))}FFr.exports=new Uzi("tag:yaml.org,2002:float",{kind:"scalar",resolve:jzi,construct:Hzi,predicate:Vzi,represent:Jzi,defaultStyle:"lowercase"})});var QNt=ae((WFa,QFr)=>{"use strict";var Wzi=Zae();QFr.exports=new Wzi({include:[VYe()],implicit:[xFr(),RFr(),PFr(),LFr()]})});var MNt=ae((YFa,MFr)=>{"use strict";var Yzi=Zae();MFr.exports=new Yzi({include:[QNt()]})});var HFr=ae((zFa,jFr)=>{"use strict";var zzi=Mb(),UFr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),GFr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Kzi(e){return e===null?!1:UFr.exec(e)!==null||GFr.exec(e)!==null}function Xzi(e){var t,r,s,c,o,f,_,A=0,y=null,I,D,b;if(t=UFr.exec(e),t===null&&(t=GFr.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,c=+t[3],!t[4])return new Date(Date.UTC(r,s,c));if(o=+t[4],f=+t[5],_=+t[6],t[7]){for(A=t[7].slice(0,3);A.length<3;)A+="0";A=+A}return t[9]&&(I=+t[10],D=+(t[11]||0),y=(I*60+D)*6e4,t[9]==="-"&&(y=-y)),b=new Date(Date.UTC(r,s,c,o,f,_,A)),y&&b.setTime(b.getTime()-y),b}function Zzi(e){return e.toISOString()}jFr.exports=new zzi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Kzi,construct:Xzi,instanceOf:Date,represent:Zzi})});var JFr=ae((KFa,qFr)=>{"use strict";var $zi=Mb();function eKi(e){return e==="<<"||e===null}qFr.exports=new $zi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eKi})});var YFr=ae((XFa,WFr)=>{"use strict";var $ae;try{VFr=qt,$ae=VFr("buffer").Buffer}catch{}var VFr,tKi=Mb(),UNt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
-\r`;function rKi(e){if(e===null)return!1;var t,r,s=0,c=e.length,o=UNt;for(r=0;r64)){if(t<0)return!1;s+=6}return s%8===0}function nKi(e){var t,r,s=e.replace(/[\r\n=]/g,""),c=s.length,o=UNt,f=0,_=[];for(t=0;t>16&255),_.push(f>>8&255),_.push(f&255)),f=f<<6|o.indexOf(s.charAt(t));return r=c%4*6,r===0?(_.push(f>>16&255),_.push(f>>8&255),_.push(f&255)):r===18?(_.push(f>>10&255),_.push(f>>2&255)):r===12&&_.push(f>>4&255),$ae?$ae.from?$ae.from(_):new $ae(_):_}function iKi(e){var t="",r=0,s,c,o=e.length,f=UNt;for(s=0;s>18&63],t+=f[r>>12&63],t+=f[r>>6&63],t+=f[r&63]),r=(r<<8)+e[s];return c=o%3,c===0?(t+=f[r>>18&63],t+=f[r>>12&63],t+=f[r>>6&63],t+=f[r&63]):c===2?(t+=f[r>>10&63],t+=f[r>>4&63],t+=f[r<<2&63],t+=f[64]):c===1&&(t+=f[r>>2&63],t+=f[r<<4&63],t+=f[64],t+=f[64]),t}function sKi(e){return $ae&&$ae.isBuffer(e)}WFr.exports=new tKi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rKi,construct:nKi,predicate:sKi,represent:iKi})});var KFr=ae(($Fa,zFr)=>{"use strict";var oKi=Mb(),aKi=Object.prototype.hasOwnProperty,cKi=Object.prototype.toString;function lKi(e){if(e===null)return!0;var t=[],r,s,c,o,f,_=e;for(r=0,s=_.length;r{"use strict";var fKi=Mb(),pKi=Object.prototype.toString;function dKi(e){if(e===null)return!0;var t,r,s,c,o,f=e;for(o=new Array(f.length),t=0,r=f.length;t{"use strict";var AKi=Mb(),hKi=Object.prototype.hasOwnProperty;function mKi(e){if(e===null)return!0;var t,r=e;for(t in r)if(hKi.call(r,t)&&r[t]!==null)return!1;return!0}function gKi(e){return e!==null?e:{}}$Fr.exports=new AKi("tag:yaml.org,2002:set",{kind:"mapping",resolve:mKi,construct:gKi})});var Lge=ae((rLa,tLr)=>{"use strict";var EKi=Zae();tLr.exports=new EKi({include:[MNt()],implicit:[HFr(),JFr()],explicit:[YFr(),KFr(),ZFr(),eLr()]})});var nLr=ae((nLa,rLr)=>{"use strict";var yKi=Mb();function CKi(){return!0}function IKi(){}function TKi(){return""}function SKi(e){return typeof e>"u"}rLr.exports=new yKi("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:CKi,construct:IKi,predicate:SKi,represent:TKi})});var sLr=ae((iLa,iLr)=>{"use strict";var vKi=Mb();function DKi(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),s="";return!(t[0]==="/"&&(r&&(s=r[1]),s.length>3||t[t.length-s.length-1]!=="/"))}function bKi(e){var t=e,r=/\/([gim]*)$/.exec(e),s="";return t[0]==="/"&&(r&&(s=r[1]),t=t.slice(1,t.length-s.length-1)),new RegExp(t,s)}function wKi(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function BKi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}iLr.exports=new vKi("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:DKi,construct:bKi,predicate:BKi,represent:wKi})});var cLr=ae((sLa,aLr)=>{"use strict";var WYe;try{oLr=qt,WYe=oLr("esprima")}catch{typeof window<"u"&&(WYe=window.esprima)}var oLr,xKi=Mb();function NKi(e){if(e===null)return!1;try{var t="("+e+")",r=WYe.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function RKi(e){var t="("+e+")",r=WYe.parse(t,{range:!0}),s=[],c;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){s.push(o.name)}),c=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(s,t.slice(c[0]+1,c[1]-1)):new Function(s,"return "+t.slice(c[0],c[1]))}function kKi(e){return e.toString()}function PKi(e){return Object.prototype.toString.call(e)==="[object Function]"}aLr.exports=new xKi("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:NKi,construct:RKi,predicate:PKi,represent:kKi})});var uRe=ae((aLa,uLr)=>{"use strict";var lLr=Zae();uLr.exports=lLr.DEFAULT=new lLr({include:[Lge()],explicit:[nLr(),sLr(),cLr()]})});var BLr=ae((cLa,fRe)=>{"use strict";var PW=Xae(),mLr=Oge(),OKi=mFr(),gLr=Lge(),FKi=uRe(),fee=Object.prototype.hasOwnProperty,YYe=1,ELr=2,yLr=3,zYe=4,GNt=1,LKi=2,fLr=3,QKi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,MKi=/[\x85\u2028\u2029]/,UKi=/[,\[\]\{\}]/,CLr=/^(?:!|!!|![a-z\-]+!)$/i,ILr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pLr(e){return Object.prototype.toString.call(e)}function Ij(e){return e===10||e===13}function tce(e){return e===9||e===32}function dF(e){return e===9||e===32||e===10||e===13}function Qge(e){return e===44||e===91||e===93||e===123||e===125}function GKi(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function jKi(e){return e===120?2:e===117?4:e===85?8:0}function HKi(e){return 48<=e&&e<=57?e-48:-1}function dLr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
-`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function qKi(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var TLr=new Array(256),SLr=new Array(256);for(ece=0;ece<256;ece++)TLr[ece]=dLr(ece)?1:0,SLr[ece]=dLr(ece);var ece;function JKi(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||FKi,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function vLr(e,t){return new mLr(t,new OKi(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function j_(e,t){throw vLr(e,t)}function KYe(e,t){e.onWarning&&e.onWarning.call(null,vLr(e,t))}var _Lr={YAML:function(t,r,s){var c,o,f;t.version!==null&&j_(t,"duplication of %YAML directive"),s.length!==1&&j_(t,"YAML directive accepts exactly one argument"),c=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),c===null&&j_(t,"ill-formed argument of the YAML directive"),o=parseInt(c[1],10),f=parseInt(c[2],10),o!==1&&j_(t,"unacceptable YAML version of the document"),t.version=s[0],t.checkLineBreaks=f<2,f!==1&&f!==2&&KYe(t,"unsupported YAML version of the document")},TAG:function(t,r,s){var c,o;s.length!==2&&j_(t,"TAG directive accepts exactly two arguments"),c=s[0],o=s[1],CLr.test(c)||j_(t,"ill-formed tag handle (first argument) of the TAG directive"),fee.call(t.tagMap,c)&&j_(t,'there is a previously declared suffix for "'+c+'" tag handle'),ILr.test(o)||j_(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[c]=o}};function uee(e,t,r,s){var c,o,f,_;if(t1&&(e.result+=PW.repeat(`
-`,t-1))}function VKi(e,t,r){var s,c,o,f,_,A,y,I,D=e.kind,b=e.result,L;if(L=e.input.charCodeAt(e.position),dF(L)||Qge(L)||L===35||L===38||L===42||L===33||L===124||L===62||L===39||L===34||L===37||L===64||L===96||(L===63||L===45)&&(c=e.input.charCodeAt(e.position+1),dF(c)||r&&Qge(c)))return!1;for(e.kind="scalar",e.result="",o=f=e.position,_=!1;L!==0;){if(L===58){if(c=e.input.charCodeAt(e.position+1),dF(c)||r&&Qge(c))break}else if(L===35){if(s=e.input.charCodeAt(e.position-1),dF(s))break}else{if(e.position===e.lineStart&&XYe(e)||r&&Qge(L))break;if(Ij(L))if(A=e.line,y=e.lineStart,I=e.lineIndent,wD(e,!1,-1),e.lineIndent>=t){_=!0,L=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=A,e.lineStart=y,e.lineIndent=I;break}}_&&(uee(e,o,f,!1),HNt(e,e.line-A),o=f=e.position,_=!1),tce(L)||(f=e.position+1),L=e.input.charCodeAt(++e.position)}return uee(e,o,f,!1),e.result?!0:(e.kind=D,e.result=b,!1)}function WKi(e,t){var r,s,c;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,s=c=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(uee(e,s,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)s=e.position,e.position++,c=e.position;else return!0;else Ij(r)?(uee(e,s,c,!0),HNt(e,wD(e,!1,t)),s=c=e.position):e.position===e.lineStart&&XYe(e)?j_(e,"unexpected end of the document within a single quoted scalar"):(e.position++,c=e.position);j_(e,"unexpected end of the stream within a single quoted scalar")}function YKi(e,t){var r,s,c,o,f,_;if(_=e.input.charCodeAt(e.position),_!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;(_=e.input.charCodeAt(e.position))!==0;){if(_===34)return uee(e,r,e.position,!0),e.position++,!0;if(_===92){if(uee(e,r,e.position,!0),_=e.input.charCodeAt(++e.position),Ij(_))wD(e,!1,t);else if(_<256&&TLr[_])e.result+=SLr[_],e.position++;else if((f=jKi(_))>0){for(c=f,o=0;c>0;c--)_=e.input.charCodeAt(++e.position),(f=GKi(_))>=0?o=(o<<4)+f:j_(e,"expected hexadecimal character");e.result+=qKi(o),e.position++}else j_(e,"unknown escape sequence");r=s=e.position}else Ij(_)?(uee(e,r,s,!0),HNt(e,wD(e,!1,t)),r=s=e.position):e.position===e.lineStart&&XYe(e)?j_(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}j_(e,"unexpected end of the stream within a double quoted scalar")}function zKi(e,t){var r=!0,s,c=e.tag,o,f=e.anchor,_,A,y,I,D,b={},L,x,J,Y;if(Y=e.input.charCodeAt(e.position),Y===91)A=93,D=!1,o=[];else if(Y===123)A=125,D=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),Y=e.input.charCodeAt(++e.position);Y!==0;){if(wD(e,!0,t),Y=e.input.charCodeAt(e.position),Y===A)return e.position++,e.tag=c,e.anchor=f,e.kind=D?"mapping":"sequence",e.result=o,!0;r||j_(e,"missed comma between flow collection entries"),x=L=J=null,y=I=!1,Y===63&&(_=e.input.charCodeAt(e.position+1),dF(_)&&(y=I=!0,e.position++,wD(e,!0,t))),s=e.line,Uge(e,t,YYe,!1,!0),x=e.tag,L=e.result,wD(e,!0,t),Y=e.input.charCodeAt(e.position),(I||e.line===s)&&Y===58&&(y=!0,Y=e.input.charCodeAt(++e.position),wD(e,!0,t),Uge(e,t,YYe,!1,!0),J=e.result),D?Mge(e,o,b,x,L,J):y?o.push(Mge(e,null,b,x,L,J)):o.push(L),wD(e,!0,t),Y=e.input.charCodeAt(e.position),Y===44?(r=!0,Y=e.input.charCodeAt(++e.position)):r=!1}j_(e,"unexpected end of the stream within a flow collection")}function KKi(e,t){var r,s,c=GNt,o=!1,f=!1,_=t,A=0,y=!1,I,D;if(D=e.input.charCodeAt(e.position),D===124)s=!1;else if(D===62)s=!0;else return!1;for(e.kind="scalar",e.result="";D!==0;)if(D=e.input.charCodeAt(++e.position),D===43||D===45)GNt===c?c=D===43?fLr:LKi:j_(e,"repeat of a chomping mode identifier");else if((I=HKi(D))>=0)I===0?j_(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?j_(e,"repeat of an indentation width identifier"):(_=t+I-1,f=!0);else break;if(tce(D)){do D=e.input.charCodeAt(++e.position);while(tce(D));if(D===35)do D=e.input.charCodeAt(++e.position);while(!Ij(D)&&D!==0)}for(;D!==0;){for(jNt(e),e.lineIndent=0,D=e.input.charCodeAt(e.position);(!f||e.lineIndent<_)&&D===32;)e.lineIndent++,D=e.input.charCodeAt(++e.position);if(!f&&e.lineIndent>_&&(_=e.lineIndent),Ij(D)){A++;continue}if(e.lineIndent<_){c===fLr?e.result+=PW.repeat(`
-`,o?1+A:A):c===GNt&&o&&(e.result+=`
+\x85\u2028\u2029`.indexOf(this.buffer.charAt(f))===-1;)if(f+=1,f-this.position>r/2-1){o=" ... ",f-=5;break}return _=this.buffer.slice(c,f),dFr.repeat(" ",t)+s+_+o+`
+`+dFr.repeat(" ",t+this.position-c+s.length)+"^"};PNt.prototype.toString=function(t){var r,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(s+=`:
+`+r)),s};_Fr.exports=PNt});var Mb=ae((OFa,mFr)=>{"use strict";var hFr=Oge(),pzi=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dzi=["scalar","sequence","mapping"];function _zi(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(s){t[String(s)]=r})}),t}function Azi(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(pzi.indexOf(r)===-1)throw new hFr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=_zi(t.styleAliases||null),dzi.indexOf(this.kind)===-1)throw new hFr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}mFr.exports=Azi});var Zae=ae((FFa,EFr)=>{"use strict";var gFr=Xae(),JYe=Oge(),hzi=Mb();function ONt(e,t,r){var s=[];return e.include.forEach(function(c){r=ONt(c,t,r)}),e[t].forEach(function(c){r.forEach(function(o,f){o.tag===c.tag&&o.kind===c.kind&&s.push(f)}),r.push(c)}),r.filter(function(c,o){return s.indexOf(o)===-1})}function mzi(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function s(c){e[c.kind][c.tag]=e.fallback[c.tag]=c}for(t=0,r=arguments.length;t{"use strict";var gzi=Mb();yFr.exports=new gzi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var TFr=ae((QFa,IFr)=>{"use strict";var Ezi=Mb();IFr.exports=new Ezi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var vFr=ae((MFa,SFr)=>{"use strict";var yzi=Mb();SFr.exports=new yzi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var VYe=ae((UFa,DFr)=>{"use strict";var Czi=Zae();DFr.exports=new Czi({explicit:[CFr(),TFr(),vFr()]})});var wFr=ae((GFa,bFr)=>{"use strict";var Izi=Mb();function Tzi(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Szi(){return null}function vzi(e){return e===null}bFr.exports=new Izi("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tzi,construct:Szi,predicate:vzi,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var xFr=ae((jFa,BFr)=>{"use strict";var Dzi=Mb();function bzi(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function wzi(e){return e==="true"||e==="True"||e==="TRUE"}function Bzi(e){return Object.prototype.toString.call(e)==="[object Boolean]"}BFr.exports=new Dzi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bzi,construct:wzi,predicate:Bzi,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var RFr=ae((HFa,NFr)=>{"use strict";var xzi=Xae(),Nzi=Mb();function Rzi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function kzi(e){return 48<=e&&e<=55}function Pzi(e){return 48<=e&&e<=57}function Ozi(e){if(e===null)return!1;var t=e.length,r=0,s=!1,c;if(!t)return!1;if(c=e[r],(c==="-"||c==="+")&&(c=e[++r]),c==="0"){if(r+1===t)return!0;if(c=e[++r],c==="b"){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var OFr=ae((qFa,PFr)=>{"use strict";var kFr=Xae(),Qzi=Mb(),Mzi=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Uzi(e){return!(e===null||!Mzi.test(e)||e[e.length-1]==="_")}function Gzi(e){var t,r,s,c;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,c=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){c.unshift(parseFloat(o,10))}),t=0,s=1,c.forEach(function(o){t+=o*s,s*=60}),r*t):r*parseFloat(t,10)}var jzi=/^[-+]?[0-9]+e/;function Hzi(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(kFr.isNegativeZero(e))return"-0.0";return r=e.toString(10),jzi.test(r)?r.replace("e",".e"):r}function qzi(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||kFr.isNegativeZero(e))}PFr.exports=new Qzi("tag:yaml.org,2002:float",{kind:"scalar",resolve:Uzi,construct:Gzi,predicate:qzi,represent:Hzi,defaultStyle:"lowercase"})});var FNt=ae((JFa,FFr)=>{"use strict";var Jzi=Zae();FFr.exports=new Jzi({include:[VYe()],implicit:[wFr(),xFr(),RFr(),OFr()]})});var LNt=ae((VFa,LFr)=>{"use strict";var Vzi=Zae();LFr.exports=new Vzi({include:[FNt()]})});var GFr=ae((WFa,UFr)=>{"use strict";var Wzi=Mb(),QFr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),MFr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Yzi(e){return e===null?!1:QFr.exec(e)!==null||MFr.exec(e)!==null}function zzi(e){var t,r,s,c,o,f,_,A=0,y=null,I,D,b;if(t=QFr.exec(e),t===null&&(t=MFr.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,c=+t[3],!t[4])return new Date(Date.UTC(r,s,c));if(o=+t[4],f=+t[5],_=+t[6],t[7]){for(A=t[7].slice(0,3);A.length<3;)A+="0";A=+A}return t[9]&&(I=+t[10],D=+(t[11]||0),y=(I*60+D)*6e4,t[9]==="-"&&(y=-y)),b=new Date(Date.UTC(r,s,c,o,f,_,A)),y&&b.setTime(b.getTime()-y),b}function Kzi(e){return e.toISOString()}UFr.exports=new Wzi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Yzi,construct:zzi,instanceOf:Date,represent:Kzi})});var HFr=ae((YFa,jFr)=>{"use strict";var Xzi=Mb();function Zzi(e){return e==="<<"||e===null}jFr.exports=new Xzi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zzi})});var VFr=ae((zFa,JFr)=>{"use strict";var $ae;try{qFr=qt,$ae=qFr("buffer").Buffer}catch{}var qFr,$zi=Mb(),QNt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
+\r`;function eKi(e){if(e===null)return!1;var t,r,s=0,c=e.length,o=QNt;for(r=0;r64)){if(t<0)return!1;s+=6}return s%8===0}function tKi(e){var t,r,s=e.replace(/[\r\n=]/g,""),c=s.length,o=QNt,f=0,_=[];for(t=0;t>16&255),_.push(f>>8&255),_.push(f&255)),f=f<<6|o.indexOf(s.charAt(t));return r=c%4*6,r===0?(_.push(f>>16&255),_.push(f>>8&255),_.push(f&255)):r===18?(_.push(f>>10&255),_.push(f>>2&255)):r===12&&_.push(f>>4&255),$ae?$ae.from?$ae.from(_):new $ae(_):_}function rKi(e){var t="",r=0,s,c,o=e.length,f=QNt;for(s=0;s>18&63],t+=f[r>>12&63],t+=f[r>>6&63],t+=f[r&63]),r=(r<<8)+e[s];return c=o%3,c===0?(t+=f[r>>18&63],t+=f[r>>12&63],t+=f[r>>6&63],t+=f[r&63]):c===2?(t+=f[r>>10&63],t+=f[r>>4&63],t+=f[r<<2&63],t+=f[64]):c===1&&(t+=f[r>>2&63],t+=f[r<<4&63],t+=f[64],t+=f[64]),t}function nKi(e){return $ae&&$ae.isBuffer(e)}JFr.exports=new $zi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eKi,construct:tKi,predicate:nKi,represent:rKi})});var YFr=ae((XFa,WFr)=>{"use strict";var iKi=Mb(),sKi=Object.prototype.hasOwnProperty,oKi=Object.prototype.toString;function aKi(e){if(e===null)return!0;var t=[],r,s,c,o,f,_=e;for(r=0,s=_.length;r{"use strict";var lKi=Mb(),uKi=Object.prototype.toString;function fKi(e){if(e===null)return!0;var t,r,s,c,o,f=e;for(o=new Array(f.length),t=0,r=f.length;t{"use strict";var dKi=Mb(),_Ki=Object.prototype.hasOwnProperty;function AKi(e){if(e===null)return!0;var t,r=e;for(t in r)if(_Ki.call(r,t)&&r[t]!==null)return!1;return!0}function hKi(e){return e!==null?e:{}}XFr.exports=new dKi("tag:yaml.org,2002:set",{kind:"mapping",resolve:AKi,construct:hKi})});var Lge=ae((eLa,$Fr)=>{"use strict";var mKi=Zae();$Fr.exports=new mKi({include:[LNt()],implicit:[GFr(),HFr()],explicit:[VFr(),YFr(),KFr(),ZFr()]})});var tLr=ae((tLa,eLr)=>{"use strict";var gKi=Mb();function EKi(){return!0}function yKi(){}function CKi(){return""}function IKi(e){return typeof e>"u"}eLr.exports=new gKi("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:EKi,construct:yKi,predicate:IKi,represent:CKi})});var nLr=ae((rLa,rLr)=>{"use strict";var TKi=Mb();function SKi(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),s="";return!(t[0]==="/"&&(r&&(s=r[1]),s.length>3||t[t.length-s.length-1]!=="/"))}function vKi(e){var t=e,r=/\/([gim]*)$/.exec(e),s="";return t[0]==="/"&&(r&&(s=r[1]),t=t.slice(1,t.length-s.length-1)),new RegExp(t,s)}function DKi(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function bKi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}rLr.exports=new TKi("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:SKi,construct:vKi,predicate:bKi,represent:DKi})});var oLr=ae((nLa,sLr)=>{"use strict";var WYe;try{iLr=qt,WYe=iLr("esprima")}catch{typeof window<"u"&&(WYe=window.esprima)}var iLr,wKi=Mb();function BKi(e){if(e===null)return!1;try{var t="("+e+")",r=WYe.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function xKi(e){var t="("+e+")",r=WYe.parse(t,{range:!0}),s=[],c;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){s.push(o.name)}),c=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(s,t.slice(c[0]+1,c[1]-1)):new Function(s,"return "+t.slice(c[0],c[1]))}function NKi(e){return e.toString()}function RKi(e){return Object.prototype.toString.call(e)==="[object Function]"}sLr.exports=new wKi("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:BKi,construct:xKi,predicate:RKi,represent:NKi})});var uRe=ae((sLa,cLr)=>{"use strict";var aLr=Zae();cLr.exports=aLr.DEFAULT=new aLr({include:[Lge()],explicit:[tLr(),nLr(),oLr()]})});var bLr=ae((oLa,fRe)=>{"use strict";var PW=Xae(),ALr=Oge(),kKi=AFr(),hLr=Lge(),PKi=uRe(),fee=Object.prototype.hasOwnProperty,YYe=1,mLr=2,gLr=3,zYe=4,MNt=1,OKi=2,lLr=3,FKi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,LKi=/[\x85\u2028\u2029]/,QKi=/[,\[\]\{\}]/,ELr=/^(?:!|!!|![a-z\-]+!)$/i,yLr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function uLr(e){return Object.prototype.toString.call(e)}function Ij(e){return e===10||e===13}function tce(e){return e===9||e===32}function dF(e){return e===9||e===32||e===10||e===13}function Qge(e){return e===44||e===91||e===93||e===123||e===125}function MKi(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function UKi(e){return e===120?2:e===117?4:e===85?8:0}function GKi(e){return 48<=e&&e<=57?e-48:-1}function fLr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
+`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function jKi(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var CLr=new Array(256),ILr=new Array(256);for(ece=0;ece<256;ece++)CLr[ece]=fLr(ece)?1:0,ILr[ece]=fLr(ece);var ece;function HKi(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||PKi,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function TLr(e,t){return new ALr(t,new kKi(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function j_(e,t){throw TLr(e,t)}function KYe(e,t){e.onWarning&&e.onWarning.call(null,TLr(e,t))}var pLr={YAML:function(t,r,s){var c,o,f;t.version!==null&&j_(t,"duplication of %YAML directive"),s.length!==1&&j_(t,"YAML directive accepts exactly one argument"),c=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),c===null&&j_(t,"ill-formed argument of the YAML directive"),o=parseInt(c[1],10),f=parseInt(c[2],10),o!==1&&j_(t,"unacceptable YAML version of the document"),t.version=s[0],t.checkLineBreaks=f<2,f!==1&&f!==2&&KYe(t,"unsupported YAML version of the document")},TAG:function(t,r,s){var c,o;s.length!==2&&j_(t,"TAG directive accepts exactly two arguments"),c=s[0],o=s[1],ELr.test(c)||j_(t,"ill-formed tag handle (first argument) of the TAG directive"),fee.call(t.tagMap,c)&&j_(t,'there is a previously declared suffix for "'+c+'" tag handle'),yLr.test(o)||j_(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[c]=o}};function uee(e,t,r,s){var c,o,f,_;if(t1&&(e.result+=PW.repeat(`
+`,t-1))}function qKi(e,t,r){var s,c,o,f,_,A,y,I,D=e.kind,b=e.result,L;if(L=e.input.charCodeAt(e.position),dF(L)||Qge(L)||L===35||L===38||L===42||L===33||L===124||L===62||L===39||L===34||L===37||L===64||L===96||(L===63||L===45)&&(c=e.input.charCodeAt(e.position+1),dF(c)||r&&Qge(c)))return!1;for(e.kind="scalar",e.result="",o=f=e.position,_=!1;L!==0;){if(L===58){if(c=e.input.charCodeAt(e.position+1),dF(c)||r&&Qge(c))break}else if(L===35){if(s=e.input.charCodeAt(e.position-1),dF(s))break}else{if(e.position===e.lineStart&&XYe(e)||r&&Qge(L))break;if(Ij(L))if(A=e.line,y=e.lineStart,I=e.lineIndent,wD(e,!1,-1),e.lineIndent>=t){_=!0,L=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=A,e.lineStart=y,e.lineIndent=I;break}}_&&(uee(e,o,f,!1),GNt(e,e.line-A),o=f=e.position,_=!1),tce(L)||(f=e.position+1),L=e.input.charCodeAt(++e.position)}return uee(e,o,f,!1),e.result?!0:(e.kind=D,e.result=b,!1)}function JKi(e,t){var r,s,c;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,s=c=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(uee(e,s,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)s=e.position,e.position++,c=e.position;else return!0;else Ij(r)?(uee(e,s,c,!0),GNt(e,wD(e,!1,t)),s=c=e.position):e.position===e.lineStart&&XYe(e)?j_(e,"unexpected end of the document within a single quoted scalar"):(e.position++,c=e.position);j_(e,"unexpected end of the stream within a single quoted scalar")}function VKi(e,t){var r,s,c,o,f,_;if(_=e.input.charCodeAt(e.position),_!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;(_=e.input.charCodeAt(e.position))!==0;){if(_===34)return uee(e,r,e.position,!0),e.position++,!0;if(_===92){if(uee(e,r,e.position,!0),_=e.input.charCodeAt(++e.position),Ij(_))wD(e,!1,t);else if(_<256&&CLr[_])e.result+=ILr[_],e.position++;else if((f=UKi(_))>0){for(c=f,o=0;c>0;c--)_=e.input.charCodeAt(++e.position),(f=MKi(_))>=0?o=(o<<4)+f:j_(e,"expected hexadecimal character");e.result+=jKi(o),e.position++}else j_(e,"unknown escape sequence");r=s=e.position}else Ij(_)?(uee(e,r,s,!0),GNt(e,wD(e,!1,t)),r=s=e.position):e.position===e.lineStart&&XYe(e)?j_(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}j_(e,"unexpected end of the stream within a double quoted scalar")}function WKi(e,t){var r=!0,s,c=e.tag,o,f=e.anchor,_,A,y,I,D,b={},L,x,J,Y;if(Y=e.input.charCodeAt(e.position),Y===91)A=93,D=!1,o=[];else if(Y===123)A=125,D=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),Y=e.input.charCodeAt(++e.position);Y!==0;){if(wD(e,!0,t),Y=e.input.charCodeAt(e.position),Y===A)return e.position++,e.tag=c,e.anchor=f,e.kind=D?"mapping":"sequence",e.result=o,!0;r||j_(e,"missed comma between flow collection entries"),x=L=J=null,y=I=!1,Y===63&&(_=e.input.charCodeAt(e.position+1),dF(_)&&(y=I=!0,e.position++,wD(e,!0,t))),s=e.line,Uge(e,t,YYe,!1,!0),x=e.tag,L=e.result,wD(e,!0,t),Y=e.input.charCodeAt(e.position),(I||e.line===s)&&Y===58&&(y=!0,Y=e.input.charCodeAt(++e.position),wD(e,!0,t),Uge(e,t,YYe,!1,!0),J=e.result),D?Mge(e,o,b,x,L,J):y?o.push(Mge(e,null,b,x,L,J)):o.push(L),wD(e,!0,t),Y=e.input.charCodeAt(e.position),Y===44?(r=!0,Y=e.input.charCodeAt(++e.position)):r=!1}j_(e,"unexpected end of the stream within a flow collection")}function YKi(e,t){var r,s,c=MNt,o=!1,f=!1,_=t,A=0,y=!1,I,D;if(D=e.input.charCodeAt(e.position),D===124)s=!1;else if(D===62)s=!0;else return!1;for(e.kind="scalar",e.result="";D!==0;)if(D=e.input.charCodeAt(++e.position),D===43||D===45)MNt===c?c=D===43?lLr:OKi:j_(e,"repeat of a chomping mode identifier");else if((I=GKi(D))>=0)I===0?j_(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?j_(e,"repeat of an indentation width identifier"):(_=t+I-1,f=!0);else break;if(tce(D)){do D=e.input.charCodeAt(++e.position);while(tce(D));if(D===35)do D=e.input.charCodeAt(++e.position);while(!Ij(D)&&D!==0)}for(;D!==0;){for(UNt(e),e.lineIndent=0,D=e.input.charCodeAt(e.position);(!f||e.lineIndent<_)&&D===32;)e.lineIndent++,D=e.input.charCodeAt(++e.position);if(!f&&e.lineIndent>_&&(_=e.lineIndent),Ij(D)){A++;continue}if(e.lineIndent<_){c===lLr?e.result+=PW.repeat(`
+`,o?1+A:A):c===MNt&&o&&(e.result+=`
`);break}for(s?tce(D)?(y=!0,e.result+=PW.repeat(`
`,o?1+A:A)):y?(y=!1,e.result+=PW.repeat(`
`,A+1)):A===0?o&&(e.result+=" "):e.result+=PW.repeat(`
`,A):e.result+=PW.repeat(`
-`,o?1+A:A),o=!0,f=!0,A=0,r=e.position;!Ij(D)&&D!==0;)D=e.input.charCodeAt(++e.position);uee(e,r,e.position,!1)}return!0}function hLr(e,t){var r,s=e.tag,c=e.anchor,o=[],f,_=!1,A;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),A=e.input.charCodeAt(e.position);A!==0&&!(A!==45||(f=e.input.charCodeAt(e.position+1),!dF(f)));){if(_=!0,e.position++,wD(e,!0,-1)&&e.lineIndent<=t){o.push(null),A=e.input.charCodeAt(e.position);continue}if(r=e.line,Uge(e,t,yLr,!1,!0),o.push(e.result),wD(e,!0,-1),A=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&A!==0)j_(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(Uge(e,t,zYe,!0,c)&&(x?b=e.result:L=e.result),x||(Mge(e,y,I,D,b,L,o,f),D=b=L=null),wD(e,!0,-1),Y=e.input.charCodeAt(e.position)),e.lineIndent>t&&Y!==0)j_(e,"bad indentation of a mapping entry");else if(e.lineIndentt?A=1:e.lineIndent===t?A=0:e.lineIndentt?A=1:e.lineIndent===t?A=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),D=0,b=e.implicitTypes.length;D tag; it should be "'+L.kind+'", not "'+e.kind+'"'),L.resolve(e.result)?(e.result=L.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):j_(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):j_(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||I}function tXi(e){var t=e.position,r,s,c,o=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(f=e.input.charCodeAt(e.position))!==0&&(wD(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(o=!0,f=e.input.charCodeAt(++e.position),r=e.position;f!==0&&!dF(f);)f=e.input.charCodeAt(++e.position);for(s=e.input.slice(r,e.position),c=[],s.length<1&&j_(e,"directive name must not be less than one character in length");f!==0;){for(;tce(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Ij(f));break}if(Ij(f))break;for(r=e.position;f!==0&&!dF(f);)f=e.input.charCodeAt(++e.position);c.push(e.input.slice(r,e.position))}f!==0&&jNt(e),fee.call(_Lr,s)?_Lr[s](e,s,c):KYe(e,'unknown document directive "'+s+'"')}if(wD(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,wD(e,!0,-1)):o&&j_(e,"directives end mark is expected"),Uge(e,e.lineIndent-1,zYe,!1,!0),wD(e,!0,-1),e.checkLineBreaks&&MKi.test(e.input.slice(t,e.position))&&KYe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&XYe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,wD(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var s=DLr(e,r);if(typeof t!="function")return s;for(var c=0,o=s.length;c"u"&&(r=t,t=null),bLr(e,t,PW.extend({schema:gLr},r))}function nXi(e,t){return wLr(e,PW.extend({schema:gLr},t))}fRe.exports.loadAll=bLr;fRe.exports.load=wLr;fRe.exports.safeLoadAll=rXi;fRe.exports.safeLoad=nXi});var ZLr=ae((lLa,WNt)=>{"use strict";var dRe=Xae(),_Re=Oge(),iXi=uRe(),sXi=Lge(),LLr=Object.prototype.toString,QLr=Object.prototype.hasOwnProperty,oXi=9,pRe=10,aXi=13,cXi=32,lXi=33,uXi=34,MLr=35,fXi=37,pXi=38,dXi=39,_Xi=42,ULr=44,AXi=45,GLr=58,hXi=61,mXi=62,gXi=63,EXi=64,jLr=91,HLr=93,yXi=96,qLr=123,CXi=124,JLr=125,tR={};tR[0]="\\0";tR[7]="\\a";tR[8]="\\b";tR[9]="\\t";tR[10]="\\n";tR[11]="\\v";tR[12]="\\f";tR[13]="\\r";tR[27]="\\e";tR[34]='\\"';tR[92]="\\\\";tR[133]="\\N";tR[160]="\\_";tR[8232]="\\L";tR[8233]="\\P";var IXi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function TXi(e,t){var r,s,c,o,f,_,A;if(t===null)return{};for(r={},s=Object.keys(t),c=0,o=s.length;ct)&&A!==0)j_(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(Uge(e,t,zYe,!0,c)&&(x?b=e.result:L=e.result),x||(Mge(e,y,I,D,b,L,o,f),D=b=L=null),wD(e,!0,-1),Y=e.input.charCodeAt(e.position)),e.lineIndent>t&&Y!==0)j_(e,"bad indentation of a mapping entry");else if(e.lineIndentt?A=1:e.lineIndent===t?A=0:e.lineIndentt?A=1:e.lineIndent===t?A=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),D=0,b=e.implicitTypes.length;D tag; it should be "'+L.kind+'", not "'+e.kind+'"'),L.resolve(e.result)?(e.result=L.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):j_(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):j_(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||I}function $Ki(e){var t=e.position,r,s,c,o=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(f=e.input.charCodeAt(e.position))!==0&&(wD(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(o=!0,f=e.input.charCodeAt(++e.position),r=e.position;f!==0&&!dF(f);)f=e.input.charCodeAt(++e.position);for(s=e.input.slice(r,e.position),c=[],s.length<1&&j_(e,"directive name must not be less than one character in length");f!==0;){for(;tce(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Ij(f));break}if(Ij(f))break;for(r=e.position;f!==0&&!dF(f);)f=e.input.charCodeAt(++e.position);c.push(e.input.slice(r,e.position))}f!==0&&UNt(e),fee.call(pLr,s)?pLr[s](e,s,c):KYe(e,'unknown document directive "'+s+'"')}if(wD(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,wD(e,!0,-1)):o&&j_(e,"directives end mark is expected"),Uge(e,e.lineIndent-1,zYe,!1,!0),wD(e,!0,-1),e.checkLineBreaks&&LKi.test(e.input.slice(t,e.position))&&KYe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&XYe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,wD(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var s=SLr(e,r);if(typeof t!="function")return s;for(var c=0,o=s.length;c"u"&&(r=t,t=null),vLr(e,t,PW.extend({schema:hLr},r))}function tXi(e,t){return DLr(e,PW.extend({schema:hLr},t))}fRe.exports.loadAll=vLr;fRe.exports.load=DLr;fRe.exports.safeLoadAll=eXi;fRe.exports.safeLoad=tXi});var KLr=ae((aLa,JNt)=>{"use strict";var dRe=Xae(),_Re=Oge(),rXi=uRe(),nXi=Lge(),OLr=Object.prototype.toString,FLr=Object.prototype.hasOwnProperty,iXi=9,pRe=10,sXi=13,oXi=32,aXi=33,cXi=34,LLr=35,lXi=37,uXi=38,fXi=39,pXi=42,QLr=44,dXi=45,MLr=58,_Xi=61,AXi=62,hXi=63,mXi=64,ULr=91,GLr=93,gXi=96,jLr=123,EXi=124,HLr=125,tR={};tR[0]="\\0";tR[7]="\\a";tR[8]="\\b";tR[9]="\\t";tR[10]="\\n";tR[11]="\\v";tR[12]="\\f";tR[13]="\\r";tR[27]="\\e";tR[34]='\\"';tR[92]="\\\\";tR[133]="\\N";tR[160]="\\_";tR[8232]="\\L";tR[8233]="\\P";var yXi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function CXi(e,t){var r,s,c,o,f,_,A;if(t===null)return{};for(r={},s=Object.keys(t),c=0,o=s.length;c0?e.charCodeAt(o-1):null,b=b&&RLr(f,_)}else{for(o=0;os&&e[D+1]!==" ",D=o);else if(!Gge(f))return ZYe;_=o>0?e.charCodeAt(o-1):null,b=b&&RLr(f,_)}y=y||I&&o-D-1>s&&e[D+1]!==" "}return!A&&!y?b&&!c(e)?WLr:YLr:r>9&&VLr(e)?ZYe:y?KLr:zLr}function BXi(e,t,r,s){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&IXi.indexOf(t)!==-1)return"'"+t+"'";var c=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),f=s||e.flowLevel>-1&&r>=e.flowLevel;function _(A){return vXi(e,A)}switch(wXi(t,f,e.indent,o,_)){case WLr:return t;case YLr:return"'"+t.replace(/'/g,"''")+"'";case zLr:return"|"+kLr(t,e.indent)+PLr(NLr(t,c));case KLr:return">"+kLr(t,e.indent)+PLr(NLr(xXi(t,o),c));case ZYe:return'"'+NXi(t,o)+'"';default:throw new _Re("impossible error: invalid scalar style")}}()}function kLr(e,t){var r=VLr(e)?String(t):"",s=e[e.length-1]===`
+`&&(o+=r),o+=f;return o}function jNt(e,t){return`
+`+dRe.repeat(" ",e.indent*t)}function TXi(e,t){var r,s,c;for(r=0,s=e.implicitTypes.length;r0?e.charCodeAt(o-1):null,b=b&&xLr(f,_)}else{for(o=0;os&&e[D+1]!==" ",D=o);else if(!Gge(f))return ZYe;_=o>0?e.charCodeAt(o-1):null,b=b&&xLr(f,_)}y=y||I&&o-D-1>s&&e[D+1]!==" "}return!A&&!y?b&&!c(e)?JLr:VLr:r>9&&qLr(e)?ZYe:y?YLr:WLr}function bXi(e,t,r,s){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&yXi.indexOf(t)!==-1)return"'"+t+"'";var c=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),f=s||e.flowLevel>-1&&r>=e.flowLevel;function _(A){return TXi(e,A)}switch(DXi(t,f,e.indent,o,_)){case JLr:return t;case VLr:return"'"+t.replace(/'/g,"''")+"'";case WLr:return"|"+NLr(t,e.indent)+RLr(BLr(t,c));case YLr:return">"+NLr(t,e.indent)+RLr(BLr(wXi(t,o),c));case ZYe:return'"'+BXi(t,o)+'"';default:throw new _Re("impossible error: invalid scalar style")}}()}function NLr(e,t){var r=qLr(e)?String(t):"",s=e[e.length-1]===`
`,c=s&&(e[e.length-2]===`
`||e===`
`),o=c?"+":s?"":"-";return r+o+`
-`}function PLr(e){return e[e.length-1]===`
-`?e.slice(0,-1):e}function xXi(e,t){for(var r=/(\n+)([^\n]*)/g,s=function(){var y=e.indexOf(`
-`);return y=y!==-1?y:e.length,r.lastIndex=y,OLr(e.slice(0,y),t)}(),c=e[0]===`
+`}function RLr(e){return e[e.length-1]===`
+`?e.slice(0,-1):e}function wXi(e,t){for(var r=/(\n+)([^\n]*)/g,s=function(){var y=e.indexOf(`
+`);return y=y!==-1?y:e.length,r.lastIndex=y,kLr(e.slice(0,y),t)}(),c=e[0]===`
`||e[0]===" ",o,f;f=r.exec(e);){var _=f[1],A=f[2];o=A[0]===" ",s+=_+(!c&&!o&&A!==""?`
-`:"")+OLr(A,t),c=o}return s}function OLr(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,s,c=0,o,f=0,_=0,A="";s=r.exec(e);)_=s.index,_-c>t&&(o=f>c?f:_,A+=`
+`:"")+kLr(A,t),c=o}return s}function kLr(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,s,c=0,o,f=0,_=0,A="";s=r.exec(e);)_=s.index,_-c>t&&(o=f>c?f:_,A+=`
`+e.slice(c,o),c=o+1),f=_;return A+=`
`,e.length-c>t&&f>c?A+=e.slice(c,f)+`
-`+e.slice(f+1):A+=e.slice(c),A.slice(1)}function NXi(e){for(var t="",r,s,c,o=0;o=55296&&r<=56319&&(s=e.charCodeAt(o+1),s>=56320&&s<=57343)){t+=xLr((r-55296)*1024+s-56320+65536),o++;continue}c=tR[r],t+=!c&&Gge(r)?e[o]:c||xLr(r)}return t}function RXi(e,t,r){var s="",c=e.tag,o,f;for(o=0,f=r.length;o1024&&(I+="? "),I+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rce(e,t,y,!1,!1)&&(I+=e.dump,s+=I));e.tag=c,e.dump="{"+s+"}"}function OXi(e,t,r,s){var c="",o=e.tag,f=Object.keys(r),_,A,y,I,D,b;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new _Re("sortKeys must be a boolean or a function");for(_=0,A=f.length;_1024,D&&(e.dump&&pRe===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,D&&(b+=qNt(e,t)),rce(e,t+1,I,!0,D)&&(e.dump&&pRe===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,c+=b));e.tag=o,e.dump=c||"{}"}function FLr(e,t,r){var s,c,o,f,_,A;for(c=r?e.explicitTypes:e.implicitTypes,o=0,f=c.length;o tag resolver accepts not "'+A+'" style');e.dump=s}return!0}return!1}function rce(e,t,r,s,c,o){e.tag=null,e.dump=r,FLr(e,r,!1)||FLr(e,r,!0);var f=LLr.call(e.dump);s&&(s=e.flowLevel<0||e.flowLevel>t);var _=f==="[object Object]"||f==="[object Array]",A,y;if(_&&(A=e.duplicates.indexOf(r),y=A!==-1),(e.tag!==null&&e.tag!=="?"||y||e.indent!==2&&t>0)&&(c=!1),y&&e.usedDuplicates[A])e.dump="*ref_"+A;else{if(_&&y&&!e.usedDuplicates[A]&&(e.usedDuplicates[A]=!0),f==="[object Object]")s&&Object.keys(e.dump).length!==0?(OXi(e,t,e.dump,c),y&&(e.dump="&ref_"+A+e.dump)):(PXi(e,t,e.dump),y&&(e.dump="&ref_"+A+" "+e.dump));else if(f==="[object Array]"){var I=e.noArrayIndent&&t>0?t-1:t;s&&e.dump.length!==0?(kXi(e,I,e.dump,c),y&&(e.dump="&ref_"+A+e.dump)):(RXi(e,I,e.dump),y&&(e.dump="&ref_"+A+" "+e.dump))}else if(f==="[object String]")e.tag!=="?"&&BXi(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new _Re("unacceptable kind of an object to dump "+f)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function FXi(e,t){var r=[],s=[],c,o;for(JNt(e,r,s),c=0,o=s.length;c{"use strict";var $Ye=BLr(),$Lr=ZLr();function eze(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}mv.exports.Type=Mb();mv.exports.Schema=Zae();mv.exports.FAILSAFE_SCHEMA=VYe();mv.exports.JSON_SCHEMA=QNt();mv.exports.CORE_SCHEMA=MNt();mv.exports.DEFAULT_SAFE_SCHEMA=Lge();mv.exports.DEFAULT_FULL_SCHEMA=uRe();mv.exports.load=$Ye.load;mv.exports.loadAll=$Ye.loadAll;mv.exports.safeLoad=$Ye.safeLoad;mv.exports.safeLoadAll=$Ye.safeLoadAll;mv.exports.dump=$Lr.dump;mv.exports.safeDump=$Lr.safeDump;mv.exports.YAMLException=Oge();mv.exports.MINIMAL_SCHEMA=VYe();mv.exports.SAFE_SCHEMA=Lge();mv.exports.DEFAULT_SCHEMA=uRe();mv.exports.scan=eze("scan");mv.exports.parse=eze("parse");mv.exports.compose=eze("compose");mv.exports.addConstructor=eze("addConstructor")});var rQr=ae((fLa,tQr)=>{"use strict";var QXi=eQr();tQr.exports=QXi});var iQr=ae((pLa,nQr)=>{"use strict";function MXi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function nce(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,nce)}MXi(nce,Error);nce.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D({[rs]:Bi})))},ge=function(Dr){return Dr},me=function(Dr){return Dr},ye=Dd("correct indentation"),Se=" ",Le=Gi(" ",!1),rt=function(Dr){return Dr.length===Jl*Bo},P=function(Dr){return Dr.length===(Jl+1)*Bo},pt=function(){return Jl++,!0},nt=function(){return Jl--,!0},ht=function(){return FA()},ot=Dd("pseudostring"),Et=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,Vt=nc(["\r",`
+`+e.slice(f+1):A+=e.slice(c),A.slice(1)}function BXi(e){for(var t="",r,s,c,o=0;o=55296&&r<=56319&&(s=e.charCodeAt(o+1),s>=56320&&s<=57343)){t+=wLr((r-55296)*1024+s-56320+65536),o++;continue}c=tR[r],t+=!c&&Gge(r)?e[o]:c||wLr(r)}return t}function xXi(e,t,r){var s="",c=e.tag,o,f;for(o=0,f=r.length;o1024&&(I+="? "),I+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rce(e,t,y,!1,!1)&&(I+=e.dump,s+=I));e.tag=c,e.dump="{"+s+"}"}function kXi(e,t,r,s){var c="",o=e.tag,f=Object.keys(r),_,A,y,I,D,b;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new _Re("sortKeys must be a boolean or a function");for(_=0,A=f.length;_1024,D&&(e.dump&&pRe===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,D&&(b+=jNt(e,t)),rce(e,t+1,I,!0,D)&&(e.dump&&pRe===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,c+=b));e.tag=o,e.dump=c||"{}"}function PLr(e,t,r){var s,c,o,f,_,A;for(c=r?e.explicitTypes:e.implicitTypes,o=0,f=c.length;o tag resolver accepts not "'+A+'" style');e.dump=s}return!0}return!1}function rce(e,t,r,s,c,o){e.tag=null,e.dump=r,PLr(e,r,!1)||PLr(e,r,!0);var f=OLr.call(e.dump);s&&(s=e.flowLevel<0||e.flowLevel>t);var _=f==="[object Object]"||f==="[object Array]",A,y;if(_&&(A=e.duplicates.indexOf(r),y=A!==-1),(e.tag!==null&&e.tag!=="?"||y||e.indent!==2&&t>0)&&(c=!1),y&&e.usedDuplicates[A])e.dump="*ref_"+A;else{if(_&&y&&!e.usedDuplicates[A]&&(e.usedDuplicates[A]=!0),f==="[object Object]")s&&Object.keys(e.dump).length!==0?(kXi(e,t,e.dump,c),y&&(e.dump="&ref_"+A+e.dump)):(RXi(e,t,e.dump),y&&(e.dump="&ref_"+A+" "+e.dump));else if(f==="[object Array]"){var I=e.noArrayIndent&&t>0?t-1:t;s&&e.dump.length!==0?(NXi(e,I,e.dump,c),y&&(e.dump="&ref_"+A+e.dump)):(xXi(e,I,e.dump),y&&(e.dump="&ref_"+A+" "+e.dump))}else if(f==="[object String]")e.tag!=="?"&&bXi(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new _Re("unacceptable kind of an object to dump "+f)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function PXi(e,t){var r=[],s=[],c,o;for(HNt(e,r,s),c=0,o=s.length;c{"use strict";var $Ye=bLr(),XLr=KLr();function eze(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}mv.exports.Type=Mb();mv.exports.Schema=Zae();mv.exports.FAILSAFE_SCHEMA=VYe();mv.exports.JSON_SCHEMA=FNt();mv.exports.CORE_SCHEMA=LNt();mv.exports.DEFAULT_SAFE_SCHEMA=Lge();mv.exports.DEFAULT_FULL_SCHEMA=uRe();mv.exports.load=$Ye.load;mv.exports.loadAll=$Ye.loadAll;mv.exports.safeLoad=$Ye.safeLoad;mv.exports.safeLoadAll=$Ye.safeLoadAll;mv.exports.dump=XLr.dump;mv.exports.safeDump=XLr.safeDump;mv.exports.YAMLException=Oge();mv.exports.MINIMAL_SCHEMA=VYe();mv.exports.SAFE_SCHEMA=Lge();mv.exports.DEFAULT_SCHEMA=uRe();mv.exports.scan=eze("scan");mv.exports.parse=eze("parse");mv.exports.compose=eze("compose");mv.exports.addConstructor=eze("addConstructor")});var eQr=ae((lLa,$Lr)=>{"use strict";var FXi=ZLr();$Lr.exports=FXi});var rQr=ae((uLa,tQr)=>{"use strict";function LXi(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function nce(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,nce)}LXi(nce,Error);nce.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D({[rs]:Bi})))},ge=function(Dr){return Dr},me=function(Dr){return Dr},ye=Dd("correct indentation"),Se=" ",Le=Gi(" ",!1),rt=function(Dr){return Dr.length===Jl*Bo},P=function(Dr){return Dr.length===(Jl+1)*Bo},pt=function(){return Jl++,!0},nt=function(){return Jl--,!0},ht=function(){return FA()},ot=Dd("pseudostring"),Et=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,Vt=nc(["\r",`
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Er=/^[^\r\n\t ,\][{}:#"']/,pn=nc(["\r",`
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),$t=function(){return FA().replace(/^ *| *$/g,"")},xr="--",yr=Gi("--",!1),ur=/^[a-zA-Z\/0-9]/,jr=nc([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Vr=/^[^\r\n\t :,]/,br=nc(["\r",`
`," "," ",":",","],!0,!1),Mn="null",An=Gi("null",!1),fr=function(){return null},ui="true",hi=Gi("true",!1),we=function(){return!0},os="false",Hc=Gi("false",!1),Va=function(){return!1},zs=Dd("string"),or='"',la=Gi('"',!1),vi=function(){return""},Uu=function(Dr){return Dr},Gu=function(Dr){return Dr.join("")},Hp=/^[^"\\\0-\x1F\x7F]/,ap=nc(['"',"\\",["\0",""],"\x7F"],!0,!1),Kf='\\"',rA=Gi('\\"',!1),zr=function(){return'"'},Nr="\\\\",dr=Gi("\\\\",!1),nn=function(){return"\\"},_n="\\/",Pn=Gi("\\/",!1),ji=function(){return"/"},qr="\\b",Os=Gi("\\b",!1),xo=function(){return"\b"},ei="\\f",Ia=Gi("\\f",!1),Bf=function(){return"\f"},Yu="\\n",Af=Gi("\\n",!1),wu=function(){return`
@@ -137,39 +137,39 @@ ${t.map(r=>`
`,xt=Gi(`\r
`,!1),cl=`
`,nf=Gi(`
-`,!1),fs="\r",zu=Gi("\r",!1),rn=0,bo=0,Xf=[{line:1,column:1}],Zf=0,Tp=[],wo=0,tu;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function FA(){return e.substring(bo,rn)}function Ad(){return Ta(bo,rn)}function cp(Dr,vn){throw vn=vn!==void 0?vn:Ta(bo,rn),_g([Dd(Dr)],e.substring(bo,rn),vn)}function Us(Dr,vn){throw vn=vn!==void 0?vn:Ta(bo,rn),Wa(Dr,vn)}function Gi(Dr,vn){return{type:"literal",text:Dr,ignoreCase:vn}}function nc(Dr,vn,Bi){return{type:"class",parts:Dr,inverted:vn,ignoreCase:Bi}}function rl(){return{type:"any"}}function vs(){return{type:"end"}}function Dd(Dr){return{type:"other",description:Dr}}function Hd(Dr){var vn=Xf[Dr],Bi;if(vn)return vn;for(Bi=Dr-1;!Xf[Bi];)Bi--;for(vn=Xf[Bi],vn={line:vn.line,column:vn.column};BiZf&&(Zf=rn,Tp=[]),Tp.push(Dr))}function Wa(Dr,vn){return new nce(Dr,null,null,vn)}function _g(Dr,vn,Bi){return new nce(nce.buildMessage(Dr,vn),Dr,vn,Bi)}function Xs(){var Dr;return Dr=mm(),Dr}function ps(){var Dr,vn,Bi;for(Dr=rn,vn=[],Bi=Ka();Bi!==r;)vn.push(Bi),Bi=Ka();return vn!==r&&(bo=Dr,vn=o(vn)),Dr=vn,Dr}function Ka(){var Dr,vn,Bi,rs,Zs;return Dr=rn,vn=Tl(),vn!==r?(e.charCodeAt(rn)===45?(Bi=f,rn++):(Bi=r,wo===0&&hs(_)),Bi!==r?(rs=hd(),rs!==r?(Zs=gh(),Zs!==r?(bo=Dr,vn=A(Zs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr}function mm(){var Dr,vn,Bi;for(Dr=rn,vn=[],Bi=LA();Bi!==r;)vn.push(Bi),Bi=LA();return vn!==r&&(bo=Dr,vn=y(vn)),Dr=vn,Dr}function LA(){var Dr,vn,Bi,rs,Zs,go,Pl,Op,bd;if(Dr=rn,vn=hd(),vn===r&&(vn=null),vn!==r){if(Bi=rn,e.charCodeAt(rn)===35?(rs=I,rn++):(rs=r,wo===0&&hs(D)),rs!==r){if(Zs=[],go=rn,Pl=rn,wo++,Op=Io(),wo--,Op===r?Pl=void 0:(rn=Pl,Pl=r),Pl!==r?(e.length>rn?(Op=e.charAt(rn),rn++):(Op=r,wo===0&&hs(b)),Op!==r?(Pl=[Pl,Op],go=Pl):(rn=go,go=r)):(rn=go,go=r),go!==r)for(;go!==r;)Zs.push(go),go=rn,Pl=rn,wo++,Op=Io(),wo--,Op===r?Pl=void 0:(rn=Pl,Pl=r),Pl!==r?(e.length>rn?(Op=e.charAt(rn),rn++):(Op=r,wo===0&&hs(b)),Op!==r?(Pl=[Pl,Op],go=Pl):(rn=go,go=r)):(rn=go,go=r);else Zs=r;Zs!==r?(rs=[rs,Zs],Bi=rs):(rn=Bi,Bi=r)}else rn=Bi,Bi=r;if(Bi===r&&(Bi=null),Bi!==r){if(rs=[],Zs=Ds(),Zs!==r)for(;Zs!==r;)rs.push(Zs),Zs=Ds();else rs=r;rs!==r?(bo=Dr,vn=L(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r}else rn=Dr,Dr=r;if(Dr===r&&(Dr=rn,vn=Tl(),vn!==r?(Bi=Na(),Bi!==r?(rs=hd(),rs===r&&(rs=null),rs!==r?(e.charCodeAt(rn)===58?(Zs=x,rn++):(Zs=r,wo===0&&hs(J)),Zs!==r?(go=hd(),go===r&&(go=null),go!==r?(Pl=gh(),Pl!==r?(bo=Dr,vn=Y(Bi,Pl),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,vn=Tl(),vn!==r?(Bi=ru(),Bi!==r?(rs=hd(),rs===r&&(rs=null),rs!==r?(e.charCodeAt(rn)===58?(Zs=x,rn++):(Zs=r,wo===0&&hs(J)),Zs!==r?(go=hd(),go===r&&(go=null),go!==r?(Pl=gh(),Pl!==r?(bo=Dr,vn=Y(Bi,Pl),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r))){if(Dr=rn,vn=Tl(),vn!==r)if(Bi=ru(),Bi!==r)if(rs=hd(),rs!==r)if(Zs=gm(),Zs!==r){if(go=[],Pl=Ds(),Pl!==r)for(;Pl!==r;)go.push(Pl),Pl=Ds();else go=r;go!==r?(bo=Dr,vn=Y(Bi,Zs),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r;else rn=Dr,Dr=r;else rn=Dr,Dr=r;if(Dr===r)if(Dr=rn,vn=Tl(),vn!==r)if(Bi=ru(),Bi!==r){if(rs=[],Zs=rn,go=hd(),go===r&&(go=null),go!==r?(e.charCodeAt(rn)===44?(Pl=ne,rn++):(Pl=r,wo===0&&hs(Ae)),Pl!==r?(Op=hd(),Op===r&&(Op=null),Op!==r?(bd=ru(),bd!==r?(bo=Zs,go=le(Bi,bd),Zs=go):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r),Zs!==r)for(;Zs!==r;)rs.push(Zs),Zs=rn,go=hd(),go===r&&(go=null),go!==r?(e.charCodeAt(rn)===44?(Pl=ne,rn++):(Pl=r,wo===0&&hs(Ae)),Pl!==r?(Op=hd(),Op===r&&(Op=null),Op!==r?(bd=ru(),bd!==r?(bo=Zs,go=le(Bi,bd),Zs=go):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r);else rs=r;rs!==r?(Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(e.charCodeAt(rn)===58?(go=x,rn++):(go=r,wo===0&&hs(J)),go!==r?(Pl=hd(),Pl===r&&(Pl=null),Pl!==r?(Op=gh(),Op!==r?(bo=Dr,vn=pe(Bi,rs,Op),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r}return Dr}function gh(){var Dr,vn,Bi,rs,Zs,go,Pl;if(Dr=rn,vn=rn,wo++,Bi=rn,rs=Io(),rs!==r?(Zs=Wc(),Zs!==r?(e.charCodeAt(rn)===45?(go=f,rn++):(go=r,wo===0&&hs(_)),go!==r?(Pl=hd(),Pl!==r?(rs=[rs,Zs,go,Pl],Bi=rs):(rn=Bi,Bi=r)):(rn=Bi,Bi=r)):(rn=Bi,Bi=r)):(rn=Bi,Bi=r),wo--,Bi!==r?(rn=vn,vn=void 0):vn=r,vn!==r?(Bi=Ds(),Bi!==r?(rs=qp(),rs!==r?(Zs=ps(),Zs!==r?(go=QA(),go!==r?(bo=Dr,vn=ge(Zs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,vn=Io(),vn!==r?(Bi=qp(),Bi!==r?(rs=mm(),rs!==r?(Zs=QA(),Zs!==r?(bo=Dr,vn=ge(rs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r))if(Dr=rn,vn=oi(),vn!==r){if(Bi=[],rs=Ds(),rs!==r)for(;rs!==r;)Bi.push(rs),rs=Ds();else Bi=r;Bi!==r?(bo=Dr,vn=me(vn),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return Dr}function Tl(){var Dr,vn,Bi;for(wo++,Dr=rn,vn=[],e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));Bi!==r;)vn.push(Bi),e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));return vn!==r?(bo=rn,Bi=rt(vn),Bi?Bi=void 0:Bi=r,Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),wo--,Dr===r&&(vn=r,wo===0&&hs(ye)),Dr}function Wc(){var Dr,vn,Bi;for(Dr=rn,vn=[],e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));Bi!==r;)vn.push(Bi),e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));return vn!==r?(bo=rn,Bi=P(vn),Bi?Bi=void 0:Bi=r,Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr}function qp(){var Dr;return bo=rn,Dr=pt(),Dr?Dr=void 0:Dr=r,Dr}function QA(){var Dr;return bo=rn,Dr=nt(),Dr?Dr=void 0:Dr=r,Dr}function Na(){var Dr;return Dr=c_(),Dr===r&&(Dr=su()),Dr}function ru(){var Dr,vn,Bi;if(Dr=c_(),Dr===r){if(Dr=rn,vn=[],Bi=Ag(),Bi!==r)for(;Bi!==r;)vn.push(Bi),Bi=Ag();else vn=r;vn!==r&&(bo=Dr,vn=ht()),Dr=vn}return Dr}function oi(){var Dr;return Dr=Eh(),Dr===r&&(Dr=Qf(),Dr===r&&(Dr=c_(),Dr===r&&(Dr=su()))),Dr}function gm(){var Dr;return Dr=Eh(),Dr===r&&(Dr=c_(),Dr===r&&(Dr=Ag())),Dr}function su(){var Dr,vn,Bi,rs,Zs,go;if(wo++,Dr=rn,Et.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(Vt)),vn!==r){for(Bi=[],rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(Er.test(e.charAt(rn))?(go=e.charAt(rn),rn++):(go=r,wo===0&&hs(pn)),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);rs!==r;)Bi.push(rs),rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(Er.test(e.charAt(rn))?(go=e.charAt(rn),rn++):(go=r,wo===0&&hs(pn)),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);Bi!==r?(bo=Dr,vn=$t(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(ot)),Dr}function Ag(){var Dr,vn,Bi,rs,Zs;if(Dr=rn,e.substr(rn,2)===xr?(vn=xr,rn+=2):(vn=r,wo===0&&hs(yr)),vn===r&&(vn=null),vn!==r)if(ur.test(e.charAt(rn))?(Bi=e.charAt(rn),rn++):(Bi=r,wo===0&&hs(jr)),Bi!==r){for(rs=[],Vr.test(e.charAt(rn))?(Zs=e.charAt(rn),rn++):(Zs=r,wo===0&&hs(br));Zs!==r;)rs.push(Zs),Vr.test(e.charAt(rn))?(Zs=e.charAt(rn),rn++):(Zs=r,wo===0&&hs(br));rs!==r?(bo=Dr,vn=$t(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r;return Dr}function Eh(){var Dr,vn;return Dr=rn,e.substr(rn,4)===Mn?(vn=Mn,rn+=4):(vn=r,wo===0&&hs(An)),vn!==r&&(bo=Dr,vn=fr()),Dr=vn,Dr}function Qf(){var Dr,vn;return Dr=rn,e.substr(rn,4)===ui?(vn=ui,rn+=4):(vn=r,wo===0&&hs(hi)),vn!==r&&(bo=Dr,vn=we()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,5)===os?(vn=os,rn+=5):(vn=r,wo===0&&hs(Hc)),vn!==r&&(bo=Dr,vn=Va()),Dr=vn),Dr}function c_(){var Dr,vn,Bi,rs;return wo++,Dr=rn,e.charCodeAt(rn)===34?(vn=or,rn++):(vn=r,wo===0&&hs(la)),vn!==r?(e.charCodeAt(rn)===34?(Bi=or,rn++):(Bi=r,wo===0&&hs(la)),Bi!==r?(bo=Dr,vn=vi(),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,e.charCodeAt(rn)===34?(vn=or,rn++):(vn=r,wo===0&&hs(la)),vn!==r?(Bi=zm(),Bi!==r?(e.charCodeAt(rn)===34?(rs=or,rn++):(rs=r,wo===0&&hs(la)),rs!==r?(bo=Dr,vn=Uu(Bi),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)),wo--,Dr===r&&(vn=r,wo===0&&hs(zs)),Dr}function zm(){var Dr,vn,Bi;if(Dr=rn,vn=[],Bi=Yg(),Bi!==r)for(;Bi!==r;)vn.push(Bi),Bi=Yg();else vn=r;return vn!==r&&(bo=Dr,vn=Gu(vn)),Dr=vn,Dr}function Yg(){var Dr,vn,Bi,rs,Zs,go;return Hp.test(e.charAt(rn))?(Dr=e.charAt(rn),rn++):(Dr=r,wo===0&&hs(ap)),Dr===r&&(Dr=rn,e.substr(rn,2)===Kf?(vn=Kf,rn+=2):(vn=r,wo===0&&hs(rA)),vn!==r&&(bo=Dr,vn=zr()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Nr?(vn=Nr,rn+=2):(vn=r,wo===0&&hs(dr)),vn!==r&&(bo=Dr,vn=nn()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===_n?(vn=_n,rn+=2):(vn=r,wo===0&&hs(Pn)),vn!==r&&(bo=Dr,vn=ji()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===qr?(vn=qr,rn+=2):(vn=r,wo===0&&hs(Os)),vn!==r&&(bo=Dr,vn=xo()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===ei?(vn=ei,rn+=2):(vn=r,wo===0&&hs(Ia)),vn!==r&&(bo=Dr,vn=Bf()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Yu?(vn=Yu,rn+=2):(vn=r,wo===0&&hs(Af)),vn!==r&&(bo=Dr,vn=wu()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===dl?(vn=dl,rn+=2):(vn=r,wo===0&&hs(Di)),vn!==r&&(bo=Dr,vn=Xi()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Ki?(vn=Ki,rn+=2):(vn=r,wo===0&&hs(ka)),vn!==r&&(bo=Dr,vn=Ks()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Nl?(vn=Nl,rn+=2):(vn=r,wo===0&&hs(Yo)),vn!==r?(Bi=El(),Bi!==r?(rs=El(),rs!==r?(Zs=El(),Zs!==r?(go=El(),go!==r?(bo=Dr,vn=va(Bi,rs,Zs,go),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)))))))))),Dr}function El(){var Dr;return Ru.test(e.charAt(rn))?(Dr=e.charAt(rn),rn++):(Dr=r,wo===0&&hs(Lf)),Dr}function hd(){var Dr,vn;if(wo++,Dr=[],eu.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(kf)),vn!==r)for(;vn!==r;)Dr.push(vn),eu.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(kf));else Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(gl)),Dr}function Em(){var Dr,vn;if(wo++,Dr=[],zp.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(ti)),vn!==r)for(;vn!==r;)Dr.push(vn),zp.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(ti));else Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(y_)),Dr}function Ds(){var Dr,vn,Bi,rs,Zs,go;if(Dr=rn,vn=Io(),vn!==r){for(Bi=[],rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(go=Io(),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);rs!==r;)Bi.push(rs),rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(go=Io(),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return Dr}function Io(){var Dr;return e.substr(rn,2)===rc?(Dr=rc,rn+=2):(Dr=r,wo===0&&hs(xt)),Dr===r&&(e.charCodeAt(rn)===10?(Dr=cl,rn++):(Dr=r,wo===0&&hs(nf)),Dr===r&&(e.charCodeAt(rn)===13?(Dr=fs,rn++):(Dr=r,wo===0&&hs(zu)))),Dr}let Bo=2,Jl=0;if(tu=c(),tu!==r&&rn===e.length)return tu;throw tu!==r&&rn{"use strict";Object.defineProperty(jge,"__esModule",{value:!0});jge.PreserveOrdering=void 0;jge.stringifySyml=lQr;jge.parseSyml=VXi;var sQr=rQr(),GXi=iQr(),jXi=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,oQr=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"],ARe=class{constructor(t){this.data=t}};jge.PreserveOrdering=ARe;function aQr(e){return e.match(jXi)?e:JSON.stringify(e)}function cQr(e){return typeof e>"u"?!0:typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.keys(e).every(t=>cQr(e[t])):!1}function YNt(e,t,r){if(e===null)return`null
+`,!1),fs="\r",zu=Gi("\r",!1),rn=0,bo=0,Xf=[{line:1,column:1}],Zf=0,Tp=[],wo=0,tu;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function FA(){return e.substring(bo,rn)}function Ad(){return Ta(bo,rn)}function cp(Dr,vn){throw vn=vn!==void 0?vn:Ta(bo,rn),_g([Dd(Dr)],e.substring(bo,rn),vn)}function Us(Dr,vn){throw vn=vn!==void 0?vn:Ta(bo,rn),Wa(Dr,vn)}function Gi(Dr,vn){return{type:"literal",text:Dr,ignoreCase:vn}}function nc(Dr,vn,Bi){return{type:"class",parts:Dr,inverted:vn,ignoreCase:Bi}}function rl(){return{type:"any"}}function vs(){return{type:"end"}}function Dd(Dr){return{type:"other",description:Dr}}function Hd(Dr){var vn=Xf[Dr],Bi;if(vn)return vn;for(Bi=Dr-1;!Xf[Bi];)Bi--;for(vn=Xf[Bi],vn={line:vn.line,column:vn.column};BiZf&&(Zf=rn,Tp=[]),Tp.push(Dr))}function Wa(Dr,vn){return new nce(Dr,null,null,vn)}function _g(Dr,vn,Bi){return new nce(nce.buildMessage(Dr,vn),Dr,vn,Bi)}function Xs(){var Dr;return Dr=mm(),Dr}function ps(){var Dr,vn,Bi;for(Dr=rn,vn=[],Bi=Ka();Bi!==r;)vn.push(Bi),Bi=Ka();return vn!==r&&(bo=Dr,vn=o(vn)),Dr=vn,Dr}function Ka(){var Dr,vn,Bi,rs,Zs;return Dr=rn,vn=Tl(),vn!==r?(e.charCodeAt(rn)===45?(Bi=f,rn++):(Bi=r,wo===0&&hs(_)),Bi!==r?(rs=hd(),rs!==r?(Zs=gh(),Zs!==r?(bo=Dr,vn=A(Zs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr}function mm(){var Dr,vn,Bi;for(Dr=rn,vn=[],Bi=LA();Bi!==r;)vn.push(Bi),Bi=LA();return vn!==r&&(bo=Dr,vn=y(vn)),Dr=vn,Dr}function LA(){var Dr,vn,Bi,rs,Zs,go,Pl,Op,bd;if(Dr=rn,vn=hd(),vn===r&&(vn=null),vn!==r){if(Bi=rn,e.charCodeAt(rn)===35?(rs=I,rn++):(rs=r,wo===0&&hs(D)),rs!==r){if(Zs=[],go=rn,Pl=rn,wo++,Op=Io(),wo--,Op===r?Pl=void 0:(rn=Pl,Pl=r),Pl!==r?(e.length>rn?(Op=e.charAt(rn),rn++):(Op=r,wo===0&&hs(b)),Op!==r?(Pl=[Pl,Op],go=Pl):(rn=go,go=r)):(rn=go,go=r),go!==r)for(;go!==r;)Zs.push(go),go=rn,Pl=rn,wo++,Op=Io(),wo--,Op===r?Pl=void 0:(rn=Pl,Pl=r),Pl!==r?(e.length>rn?(Op=e.charAt(rn),rn++):(Op=r,wo===0&&hs(b)),Op!==r?(Pl=[Pl,Op],go=Pl):(rn=go,go=r)):(rn=go,go=r);else Zs=r;Zs!==r?(rs=[rs,Zs],Bi=rs):(rn=Bi,Bi=r)}else rn=Bi,Bi=r;if(Bi===r&&(Bi=null),Bi!==r){if(rs=[],Zs=Ds(),Zs!==r)for(;Zs!==r;)rs.push(Zs),Zs=Ds();else rs=r;rs!==r?(bo=Dr,vn=L(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r}else rn=Dr,Dr=r;if(Dr===r&&(Dr=rn,vn=Tl(),vn!==r?(Bi=Na(),Bi!==r?(rs=hd(),rs===r&&(rs=null),rs!==r?(e.charCodeAt(rn)===58?(Zs=x,rn++):(Zs=r,wo===0&&hs(J)),Zs!==r?(go=hd(),go===r&&(go=null),go!==r?(Pl=gh(),Pl!==r?(bo=Dr,vn=Y(Bi,Pl),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,vn=Tl(),vn!==r?(Bi=ru(),Bi!==r?(rs=hd(),rs===r&&(rs=null),rs!==r?(e.charCodeAt(rn)===58?(Zs=x,rn++):(Zs=r,wo===0&&hs(J)),Zs!==r?(go=hd(),go===r&&(go=null),go!==r?(Pl=gh(),Pl!==r?(bo=Dr,vn=Y(Bi,Pl),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r))){if(Dr=rn,vn=Tl(),vn!==r)if(Bi=ru(),Bi!==r)if(rs=hd(),rs!==r)if(Zs=gm(),Zs!==r){if(go=[],Pl=Ds(),Pl!==r)for(;Pl!==r;)go.push(Pl),Pl=Ds();else go=r;go!==r?(bo=Dr,vn=Y(Bi,Zs),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r;else rn=Dr,Dr=r;else rn=Dr,Dr=r;if(Dr===r)if(Dr=rn,vn=Tl(),vn!==r)if(Bi=ru(),Bi!==r){if(rs=[],Zs=rn,go=hd(),go===r&&(go=null),go!==r?(e.charCodeAt(rn)===44?(Pl=ne,rn++):(Pl=r,wo===0&&hs(Ae)),Pl!==r?(Op=hd(),Op===r&&(Op=null),Op!==r?(bd=ru(),bd!==r?(bo=Zs,go=le(Bi,bd),Zs=go):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r),Zs!==r)for(;Zs!==r;)rs.push(Zs),Zs=rn,go=hd(),go===r&&(go=null),go!==r?(e.charCodeAt(rn)===44?(Pl=ne,rn++):(Pl=r,wo===0&&hs(Ae)),Pl!==r?(Op=hd(),Op===r&&(Op=null),Op!==r?(bd=ru(),bd!==r?(bo=Zs,go=le(Bi,bd),Zs=go):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r)):(rn=Zs,Zs=r);else rs=r;rs!==r?(Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(e.charCodeAt(rn)===58?(go=x,rn++):(go=r,wo===0&&hs(J)),go!==r?(Pl=hd(),Pl===r&&(Pl=null),Pl!==r?(Op=gh(),Op!==r?(bo=Dr,vn=pe(Bi,rs,Op),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r}return Dr}function gh(){var Dr,vn,Bi,rs,Zs,go,Pl;if(Dr=rn,vn=rn,wo++,Bi=rn,rs=Io(),rs!==r?(Zs=Wc(),Zs!==r?(e.charCodeAt(rn)===45?(go=f,rn++):(go=r,wo===0&&hs(_)),go!==r?(Pl=hd(),Pl!==r?(rs=[rs,Zs,go,Pl],Bi=rs):(rn=Bi,Bi=r)):(rn=Bi,Bi=r)):(rn=Bi,Bi=r)):(rn=Bi,Bi=r),wo--,Bi!==r?(rn=vn,vn=void 0):vn=r,vn!==r?(Bi=Ds(),Bi!==r?(rs=qp(),rs!==r?(Zs=ps(),Zs!==r?(go=QA(),go!==r?(bo=Dr,vn=ge(Zs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,vn=Io(),vn!==r?(Bi=qp(),Bi!==r?(rs=mm(),rs!==r?(Zs=QA(),Zs!==r?(bo=Dr,vn=ge(rs),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r))if(Dr=rn,vn=oi(),vn!==r){if(Bi=[],rs=Ds(),rs!==r)for(;rs!==r;)Bi.push(rs),rs=Ds();else Bi=r;Bi!==r?(bo=Dr,vn=me(vn),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return Dr}function Tl(){var Dr,vn,Bi;for(wo++,Dr=rn,vn=[],e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));Bi!==r;)vn.push(Bi),e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));return vn!==r?(bo=rn,Bi=rt(vn),Bi?Bi=void 0:Bi=r,Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),wo--,Dr===r&&(vn=r,wo===0&&hs(ye)),Dr}function Wc(){var Dr,vn,Bi;for(Dr=rn,vn=[],e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));Bi!==r;)vn.push(Bi),e.charCodeAt(rn)===32?(Bi=Se,rn++):(Bi=r,wo===0&&hs(Le));return vn!==r?(bo=rn,Bi=P(vn),Bi?Bi=void 0:Bi=r,Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr}function qp(){var Dr;return bo=rn,Dr=pt(),Dr?Dr=void 0:Dr=r,Dr}function QA(){var Dr;return bo=rn,Dr=nt(),Dr?Dr=void 0:Dr=r,Dr}function Na(){var Dr;return Dr=c_(),Dr===r&&(Dr=su()),Dr}function ru(){var Dr,vn,Bi;if(Dr=c_(),Dr===r){if(Dr=rn,vn=[],Bi=Ag(),Bi!==r)for(;Bi!==r;)vn.push(Bi),Bi=Ag();else vn=r;vn!==r&&(bo=Dr,vn=ht()),Dr=vn}return Dr}function oi(){var Dr;return Dr=Eh(),Dr===r&&(Dr=Qf(),Dr===r&&(Dr=c_(),Dr===r&&(Dr=su()))),Dr}function gm(){var Dr;return Dr=Eh(),Dr===r&&(Dr=c_(),Dr===r&&(Dr=Ag())),Dr}function su(){var Dr,vn,Bi,rs,Zs,go;if(wo++,Dr=rn,Et.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(Vt)),vn!==r){for(Bi=[],rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(Er.test(e.charAt(rn))?(go=e.charAt(rn),rn++):(go=r,wo===0&&hs(pn)),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);rs!==r;)Bi.push(rs),rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(Er.test(e.charAt(rn))?(go=e.charAt(rn),rn++):(go=r,wo===0&&hs(pn)),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);Bi!==r?(bo=Dr,vn=$t(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(ot)),Dr}function Ag(){var Dr,vn,Bi,rs,Zs;if(Dr=rn,e.substr(rn,2)===xr?(vn=xr,rn+=2):(vn=r,wo===0&&hs(yr)),vn===r&&(vn=null),vn!==r)if(ur.test(e.charAt(rn))?(Bi=e.charAt(rn),rn++):(Bi=r,wo===0&&hs(jr)),Bi!==r){for(rs=[],Vr.test(e.charAt(rn))?(Zs=e.charAt(rn),rn++):(Zs=r,wo===0&&hs(br));Zs!==r;)rs.push(Zs),Vr.test(e.charAt(rn))?(Zs=e.charAt(rn),rn++):(Zs=r,wo===0&&hs(br));rs!==r?(bo=Dr,vn=$t(),Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;else rn=Dr,Dr=r;return Dr}function Eh(){var Dr,vn;return Dr=rn,e.substr(rn,4)===Mn?(vn=Mn,rn+=4):(vn=r,wo===0&&hs(An)),vn!==r&&(bo=Dr,vn=fr()),Dr=vn,Dr}function Qf(){var Dr,vn;return Dr=rn,e.substr(rn,4)===ui?(vn=ui,rn+=4):(vn=r,wo===0&&hs(hi)),vn!==r&&(bo=Dr,vn=we()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,5)===os?(vn=os,rn+=5):(vn=r,wo===0&&hs(Hc)),vn!==r&&(bo=Dr,vn=Va()),Dr=vn),Dr}function c_(){var Dr,vn,Bi,rs;return wo++,Dr=rn,e.charCodeAt(rn)===34?(vn=or,rn++):(vn=r,wo===0&&hs(la)),vn!==r?(e.charCodeAt(rn)===34?(Bi=or,rn++):(Bi=r,wo===0&&hs(la)),Bi!==r?(bo=Dr,vn=vi(),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r),Dr===r&&(Dr=rn,e.charCodeAt(rn)===34?(vn=or,rn++):(vn=r,wo===0&&hs(la)),vn!==r?(Bi=zm(),Bi!==r?(e.charCodeAt(rn)===34?(rs=or,rn++):(rs=r,wo===0&&hs(la)),rs!==r?(bo=Dr,vn=Uu(Bi),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)),wo--,Dr===r&&(vn=r,wo===0&&hs(zs)),Dr}function zm(){var Dr,vn,Bi;if(Dr=rn,vn=[],Bi=Yg(),Bi!==r)for(;Bi!==r;)vn.push(Bi),Bi=Yg();else vn=r;return vn!==r&&(bo=Dr,vn=Gu(vn)),Dr=vn,Dr}function Yg(){var Dr,vn,Bi,rs,Zs,go;return Hp.test(e.charAt(rn))?(Dr=e.charAt(rn),rn++):(Dr=r,wo===0&&hs(ap)),Dr===r&&(Dr=rn,e.substr(rn,2)===Kf?(vn=Kf,rn+=2):(vn=r,wo===0&&hs(rA)),vn!==r&&(bo=Dr,vn=zr()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Nr?(vn=Nr,rn+=2):(vn=r,wo===0&&hs(dr)),vn!==r&&(bo=Dr,vn=nn()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===_n?(vn=_n,rn+=2):(vn=r,wo===0&&hs(Pn)),vn!==r&&(bo=Dr,vn=ji()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===qr?(vn=qr,rn+=2):(vn=r,wo===0&&hs(Os)),vn!==r&&(bo=Dr,vn=xo()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===ei?(vn=ei,rn+=2):(vn=r,wo===0&&hs(Ia)),vn!==r&&(bo=Dr,vn=Bf()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Yu?(vn=Yu,rn+=2):(vn=r,wo===0&&hs(Af)),vn!==r&&(bo=Dr,vn=wu()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===dl?(vn=dl,rn+=2):(vn=r,wo===0&&hs(Di)),vn!==r&&(bo=Dr,vn=Xi()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Ki?(vn=Ki,rn+=2):(vn=r,wo===0&&hs(ka)),vn!==r&&(bo=Dr,vn=Ks()),Dr=vn,Dr===r&&(Dr=rn,e.substr(rn,2)===Nl?(vn=Nl,rn+=2):(vn=r,wo===0&&hs(Yo)),vn!==r?(Bi=El(),Bi!==r?(rs=El(),rs!==r?(Zs=El(),Zs!==r?(go=El(),go!==r?(bo=Dr,vn=va(Bi,rs,Zs,go),Dr=vn):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)):(rn=Dr,Dr=r)))))))))),Dr}function El(){var Dr;return Ru.test(e.charAt(rn))?(Dr=e.charAt(rn),rn++):(Dr=r,wo===0&&hs(Lf)),Dr}function hd(){var Dr,vn;if(wo++,Dr=[],eu.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(kf)),vn!==r)for(;vn!==r;)Dr.push(vn),eu.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(kf));else Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(gl)),Dr}function Em(){var Dr,vn;if(wo++,Dr=[],zp.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(ti)),vn!==r)for(;vn!==r;)Dr.push(vn),zp.test(e.charAt(rn))?(vn=e.charAt(rn),rn++):(vn=r,wo===0&&hs(ti));else Dr=r;return wo--,Dr===r&&(vn=r,wo===0&&hs(y_)),Dr}function Ds(){var Dr,vn,Bi,rs,Zs,go;if(Dr=rn,vn=Io(),vn!==r){for(Bi=[],rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(go=Io(),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);rs!==r;)Bi.push(rs),rs=rn,Zs=hd(),Zs===r&&(Zs=null),Zs!==r?(go=Io(),go!==r?(Zs=[Zs,go],rs=Zs):(rn=rs,rs=r)):(rn=rs,rs=r);Bi!==r?(vn=[vn,Bi],Dr=vn):(rn=Dr,Dr=r)}else rn=Dr,Dr=r;return Dr}function Io(){var Dr;return e.substr(rn,2)===rc?(Dr=rc,rn+=2):(Dr=r,wo===0&&hs(xt)),Dr===r&&(e.charCodeAt(rn)===10?(Dr=cl,rn++):(Dr=r,wo===0&&hs(nf)),Dr===r&&(e.charCodeAt(rn)===13?(Dr=fs,rn++):(Dr=r,wo===0&&hs(zu)))),Dr}let Bo=2,Jl=0;if(tu=c(),tu!==r&&rn===e.length)return tu;throw tu!==r&&rn{"use strict";Object.defineProperty(jge,"__esModule",{value:!0});jge.PreserveOrdering=void 0;jge.stringifySyml=aQr;jge.parseSyml=qXi;var nQr=eQr(),MXi=rQr(),UXi=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,iQr=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"],ARe=class{constructor(t){this.data=t}};jge.PreserveOrdering=ARe;function sQr(e){return e.match(UXi)?e:JSON.stringify(e)}function oQr(e){return typeof e>"u"?!0:typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.keys(e).every(t=>oQr(e[t])):!1}function VNt(e,t,r){if(e===null)return`null
`;if(typeof e=="number"||typeof e=="boolean")return`${e.toString()}
-`;if(typeof e=="string")return`${aQr(e)}
+`;if(typeof e=="string")return`${sQr(e)}
`;if(Array.isArray(e)){if(e.length===0)return`[]
`;let s=" ".repeat(t);return`
-${e.map(o=>`${s}- ${YNt(o,t+1,!1)}`).join("")}`}if(typeof e=="object"&&e){let[s,c]=e instanceof ARe?[e.data,!1]:[e,!0],o=" ".repeat(t),f=Object.keys(s);c&&f.sort((A,y)=>{let I=oQr.indexOf(A),D=oQr.indexOf(y);return I===-1&&D===-1?Ay?1:0:I!==-1&&D===-1?-1:I===-1&&D!==-1?1:I-D});let _=f.filter(A=>!cQr(s[A])).map((A,y)=>{let I=s[A],D=aQr(A),b=YNt(I,t+1,!0),L=y>0||r?o:"",x=D.length>1024?`? ${D}
+${e.map(o=>`${s}- ${VNt(o,t+1,!1)}`).join("")}`}if(typeof e=="object"&&e){let[s,c]=e instanceof ARe?[e.data,!1]:[e,!0],o=" ".repeat(t),f=Object.keys(s);c&&f.sort((A,y)=>{let I=iQr.indexOf(A),D=iQr.indexOf(y);return I===-1&&D===-1?Ay?1:0:I!==-1&&D===-1?-1:I===-1&&D!==-1?1:I-D});let _=f.filter(A=>!oQr(s[A])).map((A,y)=>{let I=s[A],D=sQr(A),b=VNt(I,t+1,!0),L=y>0||r?o:"",x=D.length>1024?`? ${D}
${L}:`:`${D}:`,J=b.startsWith(`
`)?b:` ${b}`;return`${L}${x}${J}`}).join(t===0?`
`:"")||`
`;return r?`
-${_}`:`${_}`}throw new Error(`Unsupported value type (${e})`)}function lQr(e){try{let t=YNt(e,0,!1);return t!==`
-`?t:""}catch(t){throw t.location&&(t.message=t.message.replace(/(\.)?$/,` (line ${t.location.start.line}, column ${t.location.start.column})$1`)),t}}lQr.PreserveOrdering=ARe;function HXi(e){return e.endsWith(`
+${_}`:`${_}`}throw new Error(`Unsupported value type (${e})`)}function aQr(e){try{let t=VNt(e,0,!1);return t!==`
+`?t:""}catch(t){throw t.location&&(t.message=t.message.replace(/(\.)?$/,` (line ${t.location.start.line}, column ${t.location.start.column})$1`)),t}}aQr.PreserveOrdering=ARe;function GXi(e){return e.endsWith(`
`)||(e+=`
-`),(0,GXi.parse)(e)}var qXi=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function JXi(e){if(qXi.test(e))return HXi(e);let t=(0,sQr.safeLoad)(e,{schema:sQr.FAILSAFE_SCHEMA,json:!0});if(t==null)return{};if(typeof t!="object")throw new Error(`Expected an indexed object, got a ${typeof t} instead. Does your file follow Yaml's rules?`);if(Array.isArray(t))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return t}function VXi(e){return JXi(e)}});var kM=ae(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.stringifySyml=Hm.parseSyml=Hm.stringifyResolution=Hm.parseResolution=Hm.stringifyValueArgument=Hm.stringifyShellLine=Hm.stringifyRedirectArgument=Hm.stringifyEnvSegment=Hm.stringifyCommandLineThen=Hm.stringifyCommandLine=Hm.stringifyCommandChainThen=Hm.stringifyCommandChain=Hm.stringifyCommand=Hm.stringifyArithmeticExpression=Hm.stringifyArgumentSegment=Hm.stringifyArgument=Hm.stringifyShell=Hm.parseShell=void 0;var _F=lFr();Object.defineProperty(Hm,"parseShell",{enumerable:!0,get:function(){return _F.parseShell}});Object.defineProperty(Hm,"stringifyShell",{enumerable:!0,get:function(){return _F.stringifyShell}});Object.defineProperty(Hm,"stringifyArgument",{enumerable:!0,get:function(){return _F.stringifyArgument}});Object.defineProperty(Hm,"stringifyArgumentSegment",{enumerable:!0,get:function(){return _F.stringifyArgumentSegment}});Object.defineProperty(Hm,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return _F.stringifyArithmeticExpression}});Object.defineProperty(Hm,"stringifyCommand",{enumerable:!0,get:function(){return _F.stringifyCommand}});Object.defineProperty(Hm,"stringifyCommandChain",{enumerable:!0,get:function(){return _F.stringifyCommandChain}});Object.defineProperty(Hm,"stringifyCommandChainThen",{enumerable:!0,get:function(){return _F.stringifyCommandChainThen}});Object.defineProperty(Hm,"stringifyCommandLine",{enumerable:!0,get:function(){return _F.stringifyCommandLine}});Object.defineProperty(Hm,"stringifyCommandLineThen",{enumerable:!0,get:function(){return _F.stringifyCommandLineThen}});Object.defineProperty(Hm,"stringifyEnvSegment",{enumerable:!0,get:function(){return _F.stringifyEnvSegment}});Object.defineProperty(Hm,"stringifyRedirectArgument",{enumerable:!0,get:function(){return _F.stringifyRedirectArgument}});Object.defineProperty(Hm,"stringifyShellLine",{enumerable:!0,get:function(){return _F.stringifyShellLine}});Object.defineProperty(Hm,"stringifyValueArgument",{enumerable:!0,get:function(){return _F.stringifyValueArgument}});var fQr=pFr();Object.defineProperty(Hm,"parseResolution",{enumerable:!0,get:function(){return fQr.parseResolution}});Object.defineProperty(Hm,"stringifyResolution",{enumerable:!0,get:function(){return fQr.stringifyResolution}});var pQr=uQr();Object.defineProperty(Hm,"parseSyml",{enumerable:!0,get:function(){return pQr.parseSyml}});Object.defineProperty(Hm,"stringifySyml",{enumerable:!0,get:function(){return pQr.stringifySyml}})});var _Qr=ae((ALa,zNt)=>{"use strict";var WXi=e=>{let t=!1,r=!1,s=!1;for(let c=0;c{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let r=c=>t.pascalCase?c.charAt(0).toUpperCase()+c.slice(1):c;return Array.isArray(e)?e=e.map(c=>c.trim()).filter(c=>c.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=WXi(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(c,o)=>o.toUpperCase()).replace(/\d+(\w|$)/g,c=>c.toUpperCase()),r(e))};zNt.exports=dQr;zNt.exports.default=dQr});var AQr=ae((hLa,YXi)=>{YXi.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{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:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{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:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{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:"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:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{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 ice=ae(GQ=>{"use strict";var mQr=AQr(),Ub=process.env;Object.defineProperty(GQ,"_vendors",{value:mQr.map(function(e){return e.constant})});GQ.name=null;GQ.isPR=null;mQr.forEach(function(e){let r=(Array.isArray(e.env)?e.env:[e.env]).every(function(s){return hQr(s)});if(GQ[e.constant]=r,!!r)switch(GQ.name=e.name,typeof e.pr){case"string":GQ.isPR=!!Ub[e.pr];break;case"object":"env"in e.pr?GQ.isPR=e.pr.env in Ub&&Ub[e.pr.env]!==e.pr.ne:"any"in e.pr?GQ.isPR=e.pr.any.some(function(s){return!!Ub[s]}):GQ.isPR=hQr(e.pr);break;default:GQ.isPR=null}});GQ.isCI=!!(Ub.CI!=="false"&&(Ub.BUILD_ID||Ub.BUILD_NUMBER||Ub.CI||Ub.CI_APP_ID||Ub.CI_BUILD_ID||Ub.CI_BUILD_NUMBER||Ub.CI_NAME||Ub.CONTINUOUS_INTEGRATION||Ub.RUN_ID||GQ.name));function hQr(e){return typeof e=="string"?!!Ub[e]:"env"in e?Ub[e.env]&&Ub[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!Ub[t]}):Object.keys(e).every(function(t){return Ub[t]===e[t]})}});var gQr=ae((gLa,zXi)=>{zXi.exports={name:"dotenv",version:"16.4.5",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var IQr=ae((ELa,OW)=>{var KNt=qt("fs"),XNt=qt("path"),KXi=qt("os"),XXi=qt("crypto"),ZXi=gQr(),ZNt=ZXi.version,$Xi=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function eZi(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
-`);let s;for(;(s=$Xi.exec(r))!=null;){let c=s[1],o=s[2]||"";o=o.trim();let f=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),f==='"'&&(o=o.replace(/\\n/g,`
-`),o=o.replace(/\\r/g,"\r")),t[c]=o}return t}function tZi(e){let t=CQr(e),r=Gb.configDotenv({path:t});if(!r.parsed){let f=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw f.code="MISSING_DATA",f}let s=yQr(e).split(","),c=s.length,o;for(let f=0;f=c)throw _}return Gb.parse(o)}function rZi(e){console.log(`[dotenv@${ZNt}][INFO] ${e}`)}function nZi(e){console.log(`[dotenv@${ZNt}][WARN] ${e}`)}function tze(e){console.log(`[dotenv@${ZNt}][DEBUG] ${e}`)}function yQr(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function iZi(e,t){let r;try{r=new URL(t)}catch(_){if(_.code==="ERR_INVALID_URL"){let A=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw A.code="INVALID_DOTENV_KEY",A}throw _}let s=r.password;if(!s){let _=new Error("INVALID_DOTENV_KEY: Missing key part");throw _.code="INVALID_DOTENV_KEY",_}let c=r.searchParams.get("environment");if(!c){let _=new Error("INVALID_DOTENV_KEY: Missing environment part");throw _.code="INVALID_DOTENV_KEY",_}let o=`DOTENV_VAULT_${c.toUpperCase()}`,f=e.parsed[o];if(!f){let _=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw _.code="NOT_FOUND_DOTENV_ENVIRONMENT",_}return{ciphertext:f,key:s}}function CQr(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)KNt.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=XNt.resolve(process.cwd(),".env.vault");return KNt.existsSync(t)?t:null}function EQr(e){return e[0]==="~"?XNt.join(KXi.homedir(),e.slice(1)):e}function sZi(e){rZi("Loading env from encrypted .env.vault");let t=Gb._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Gb.populate(r,t,e),{parsed:t}}function oZi(e){let t=XNt.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug);e&&e.encoding?r=e.encoding:s&&tze("No encoding is specified. UTF-8 is used by default");let c=[t];if(e&&e.path)if(!Array.isArray(e.path))c=[EQr(e.path)];else{c=[];for(let A of e.path)c.push(EQr(A))}let o,f={};for(let A of c)try{let y=Gb.parse(KNt.readFileSync(A,{encoding:r}));Gb.populate(f,y,e)}catch(y){s&&tze(`Failed to load ${A} ${y.message}`),o=y}let _=process.env;return e&&e.processEnv!=null&&(_=e.processEnv),Gb.populate(_,f,e),o?{parsed:f,error:o}:{parsed:f}}function aZi(e){if(yQr(e).length===0)return Gb.configDotenv(e);let t=CQr(e);return t?Gb._configVault(e):(nZi(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Gb.configDotenv(e))}function cZi(e,t){let r=Buffer.from(t.slice(-64),"hex"),s=Buffer.from(e,"base64"),c=s.subarray(0,12),o=s.subarray(-16);s=s.subarray(12,-16);try{let f=XXi.createDecipheriv("aes-256-gcm",r,c);return f.setAuthTag(o),`${f.update(s)}${f.final()}`}catch(f){let _=f instanceof RangeError,A=f.message==="Invalid key length",y=f.message==="Unsupported state or unable to authenticate data";if(_||A){let I=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw I.code="INVALID_DOTENV_KEY",I}else if(y){let I=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw I.code="DECRYPTION_FAILED",I}else throw f}}function lZi(e,t,r={}){let s=!!(r&&r.debug),c=!!(r&&r.override);if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(c===!0&&(e[o]=t[o]),s&&tze(c===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}var Gb={configDotenv:oZi,_configVault:sZi,_parseVault:tZi,config:aZi,decrypt:cZi,parse:eZi,populate:lZi};OW.exports.configDotenv=Gb.configDotenv;OW.exports._configVault=Gb._configVault;OW.exports._parseVault=Gb._parseVault;OW.exports.config=Gb.config;OW.exports.decrypt=Gb.decrypt;OW.exports.parse=Gb.parse;OW.exports.populate=Gb.populate;OW.exports=Gb});var SQr=ae((yLa,$Nt)=>{"use strict";var TQr=(e,...t)=>new Promise(r=>{r(e(...t))});$Nt.exports=TQr;$Nt.exports.default=TQr});var sce=ae((CLa,eRt)=>{"use strict";var uZi=SQr(),vQr=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,s=()=>{r--,t.length>0&&t.shift()()},c=(_,A,...y)=>{r++;let I=uZi(_,...y);A(I),I.then(s,s)},o=(_,A,...y)=>{rnew Promise(y=>o(_,y,...A));return Object.defineProperties(f,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),f};eRt.exports=vQr;eRt.exports.default=vQr});var AF=ae(Hge=>{"use strict";Object.defineProperty(Hge,"__esModule",{value:!0});Hge.MessageName=void 0;Hge.stringifyMessageName=fZi;Hge.parseMessageName=pZi;var tRt;(function(e){e[e.UNNAMED=0]="UNNAMED",e[e.EXCEPTION=1]="EXCEPTION",e[e.MISSING_PEER_DEPENDENCY=2]="MISSING_PEER_DEPENDENCY",e[e.CYCLIC_DEPENDENCIES=3]="CYCLIC_DEPENDENCIES",e[e.DISABLED_BUILD_SCRIPTS=4]="DISABLED_BUILD_SCRIPTS",e[e.BUILD_DISABLED=5]="BUILD_DISABLED",e[e.SOFT_LINK_BUILD=6]="SOFT_LINK_BUILD",e[e.MUST_BUILD=7]="MUST_BUILD",e[e.MUST_REBUILD=8]="MUST_REBUILD",e[e.BUILD_FAILED=9]="BUILD_FAILED",e[e.RESOLVER_NOT_FOUND=10]="RESOLVER_NOT_FOUND",e[e.FETCHER_NOT_FOUND=11]="FETCHER_NOT_FOUND",e[e.LINKER_NOT_FOUND=12]="LINKER_NOT_FOUND",e[e.FETCH_NOT_CACHED=13]="FETCH_NOT_CACHED",e[e.YARN_IMPORT_FAILED=14]="YARN_IMPORT_FAILED",e[e.REMOTE_INVALID=15]="REMOTE_INVALID",e[e.REMOTE_NOT_FOUND=16]="REMOTE_NOT_FOUND",e[e.RESOLUTION_PACK=17]="RESOLUTION_PACK",e[e.CACHE_CHECKSUM_MISMATCH=18]="CACHE_CHECKSUM_MISMATCH",e[e.UNUSED_CACHE_ENTRY=19]="UNUSED_CACHE_ENTRY",e[e.MISSING_LOCKFILE_ENTRY=20]="MISSING_LOCKFILE_ENTRY",e[e.WORKSPACE_NOT_FOUND=21]="WORKSPACE_NOT_FOUND",e[e.TOO_MANY_MATCHING_WORKSPACES=22]="TOO_MANY_MATCHING_WORKSPACES",e[e.CONSTRAINTS_MISSING_DEPENDENCY=23]="CONSTRAINTS_MISSING_DEPENDENCY",e[e.CONSTRAINTS_INCOMPATIBLE_DEPENDENCY=24]="CONSTRAINTS_INCOMPATIBLE_DEPENDENCY",e[e.CONSTRAINTS_EXTRANEOUS_DEPENDENCY=25]="CONSTRAINTS_EXTRANEOUS_DEPENDENCY",e[e.CONSTRAINTS_INVALID_DEPENDENCY=26]="CONSTRAINTS_INVALID_DEPENDENCY",e[e.CANT_SUGGEST_RESOLUTIONS=27]="CANT_SUGGEST_RESOLUTIONS",e[e.FROZEN_LOCKFILE_EXCEPTION=28]="FROZEN_LOCKFILE_EXCEPTION",e[e.CROSS_DRIVE_VIRTUAL_LOCAL=29]="CROSS_DRIVE_VIRTUAL_LOCAL",e[e.FETCH_FAILED=30]="FETCH_FAILED",e[e.DANGEROUS_NODE_MODULES=31]="DANGEROUS_NODE_MODULES",e[e.NODE_GYP_INJECTED=32]="NODE_GYP_INJECTED",e[e.AUTHENTICATION_NOT_FOUND=33]="AUTHENTICATION_NOT_FOUND",e[e.INVALID_CONFIGURATION_KEY=34]="INVALID_CONFIGURATION_KEY",e[e.NETWORK_ERROR=35]="NETWORK_ERROR",e[e.LIFECYCLE_SCRIPT=36]="LIFECYCLE_SCRIPT",e[e.CONSTRAINTS_MISSING_FIELD=37]="CONSTRAINTS_MISSING_FIELD",e[e.CONSTRAINTS_INCOMPATIBLE_FIELD=38]="CONSTRAINTS_INCOMPATIBLE_FIELD",e[e.CONSTRAINTS_EXTRANEOUS_FIELD=39]="CONSTRAINTS_EXTRANEOUS_FIELD",e[e.CONSTRAINTS_INVALID_FIELD=40]="CONSTRAINTS_INVALID_FIELD",e[e.AUTHENTICATION_INVALID=41]="AUTHENTICATION_INVALID",e[e.PROLOG_UNKNOWN_ERROR=42]="PROLOG_UNKNOWN_ERROR",e[e.PROLOG_SYNTAX_ERROR=43]="PROLOG_SYNTAX_ERROR",e[e.PROLOG_EXISTENCE_ERROR=44]="PROLOG_EXISTENCE_ERROR",e[e.STACK_OVERFLOW_RESOLUTION=45]="STACK_OVERFLOW_RESOLUTION",e[e.AUTOMERGE_FAILED_TO_PARSE=46]="AUTOMERGE_FAILED_TO_PARSE",e[e.AUTOMERGE_IMMUTABLE=47]="AUTOMERGE_IMMUTABLE",e[e.AUTOMERGE_SUCCESS=48]="AUTOMERGE_SUCCESS",e[e.AUTOMERGE_REQUIRED=49]="AUTOMERGE_REQUIRED",e[e.DEPRECATED_CLI_SETTINGS=50]="DEPRECATED_CLI_SETTINGS",e[e.PLUGIN_NAME_NOT_FOUND=51]="PLUGIN_NAME_NOT_FOUND",e[e.INVALID_PLUGIN_REFERENCE=52]="INVALID_PLUGIN_REFERENCE",e[e.CONSTRAINTS_AMBIGUITY=53]="CONSTRAINTS_AMBIGUITY",e[e.CACHE_OUTSIDE_PROJECT=54]="CACHE_OUTSIDE_PROJECT",e[e.IMMUTABLE_INSTALL=55]="IMMUTABLE_INSTALL",e[e.IMMUTABLE_CACHE=56]="IMMUTABLE_CACHE",e[e.INVALID_MANIFEST=57]="INVALID_MANIFEST",e[e.PACKAGE_PREPARATION_FAILED=58]="PACKAGE_PREPARATION_FAILED",e[e.INVALID_RANGE_PEER_DEPENDENCY=59]="INVALID_RANGE_PEER_DEPENDENCY",e[e.INCOMPATIBLE_PEER_DEPENDENCY=60]="INCOMPATIBLE_PEER_DEPENDENCY",e[e.DEPRECATED_PACKAGE=61]="DEPRECATED_PACKAGE",e[e.INCOMPATIBLE_OS=62]="INCOMPATIBLE_OS",e[e.INCOMPATIBLE_CPU=63]="INCOMPATIBLE_CPU",e[e.FROZEN_ARTIFACT_EXCEPTION=64]="FROZEN_ARTIFACT_EXCEPTION",e[e.TELEMETRY_NOTICE=65]="TELEMETRY_NOTICE",e[e.PATCH_HUNK_FAILED=66]="PATCH_HUNK_FAILED",e[e.INVALID_CONFIGURATION_VALUE=67]="INVALID_CONFIGURATION_VALUE",e[e.UNUSED_PACKAGE_EXTENSION=68]="UNUSED_PACKAGE_EXTENSION",e[e.REDUNDANT_PACKAGE_EXTENSION=69]="REDUNDANT_PACKAGE_EXTENSION",e[e.AUTO_NM_SUCCESS=70]="AUTO_NM_SUCCESS",e[e.NM_CANT_INSTALL_EXTERNAL_SOFT_LINK=71]="NM_CANT_INSTALL_EXTERNAL_SOFT_LINK",e[e.NM_PRESERVE_SYMLINKS_REQUIRED=72]="NM_PRESERVE_SYMLINKS_REQUIRED",e[e.UPDATE_LOCKFILE_ONLY_SKIP_LINK=73]="UPDATE_LOCKFILE_ONLY_SKIP_LINK",e[e.NM_HARDLINKS_MODE_DOWNGRADED=74]="NM_HARDLINKS_MODE_DOWNGRADED",e[e.PROLOG_INSTANTIATION_ERROR=75]="PROLOG_INSTANTIATION_ERROR",e[e.INCOMPATIBLE_ARCHITECTURE=76]="INCOMPATIBLE_ARCHITECTURE",e[e.GHOST_ARCHITECTURE=77]="GHOST_ARCHITECTURE",e[e.RESOLUTION_MISMATCH=78]="RESOLUTION_MISMATCH",e[e.PROLOG_LIMIT_EXCEEDED=79]="PROLOG_LIMIT_EXCEEDED",e[e.NETWORK_DISABLED=80]="NETWORK_DISABLED",e[e.NETWORK_UNSAFE_HTTP=81]="NETWORK_UNSAFE_HTTP",e[e.RESOLUTION_FAILED=82]="RESOLUTION_FAILED",e[e.AUTOMERGE_GIT_ERROR=83]="AUTOMERGE_GIT_ERROR",e[e.CONSTRAINTS_CHECK_FAILED=84]="CONSTRAINTS_CHECK_FAILED",e[e.UPDATED_RESOLUTION_RECORD=85]="UPDATED_RESOLUTION_RECORD",e[e.EXPLAIN_PEER_DEPENDENCIES_CTA=86]="EXPLAIN_PEER_DEPENDENCIES_CTA",e[e.MIGRATION_SUCCESS=87]="MIGRATION_SUCCESS",e[e.VERSION_NOTICE=88]="VERSION_NOTICE",e[e.TIPS_NOTICE=89]="TIPS_NOTICE",e[e.OFFLINE_MODE_ENABLED=90]="OFFLINE_MODE_ENABLED"})(tRt||(Hge.MessageName=tRt={}));function fZi(e){return`YN${e.toString(10).padStart(4,"0")}`}function pZi(e){let t=Number(e.slice(2));if(typeof tRt[t]>"u")throw new Error(`Unknown message name: "${e}"`);return t}});var hRe=ae((TLa,DQr)=>{var dZi="2.0.0",_Zi=Number.MAX_SAFE_INTEGER||9007199254740991,AZi=16,hZi=250,mZi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];DQr.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:AZi,MAX_SAFE_BUILD_LENGTH:hZi,MAX_SAFE_INTEGER:_Zi,RELEASE_TYPES:mZi,SEMVER_SPEC_VERSION:dZi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mRe=ae((SLa,bQr)=>{var gZi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};bQr.exports=gZi});var qge=ae((FW,wQr)=>{var{MAX_SAFE_COMPONENT_LENGTH:rRt,MAX_SAFE_BUILD_LENGTH:EZi,MAX_LENGTH:yZi}=hRe(),CZi=mRe();FW=wQr.exports={};var IZi=FW.re=[],TZi=FW.safeRe=[],Vf=FW.src=[],Wf=FW.t={},SZi=0,nRt="[a-zA-Z0-9-]",vZi=[["\\s",1],["\\d",yZi],[nRt,EZi]],DZi=e=>{for(let[t,r]of vZi)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Nh=(e,t,r)=>{let s=DZi(t),c=SZi++;CZi(e,c,t),Wf[e]=c,Vf[c]=t,IZi[c]=new RegExp(t,r?"g":void 0),TZi[c]=new RegExp(s,r?"g":void 0)};Nh("NUMERICIDENTIFIER","0|[1-9]\\d*");Nh("NUMERICIDENTIFIERLOOSE","\\d+");Nh("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${nRt}*`);Nh("MAINVERSION",`(${Vf[Wf.NUMERICIDENTIFIER]})\\.(${Vf[Wf.NUMERICIDENTIFIER]})\\.(${Vf[Wf.NUMERICIDENTIFIER]})`);Nh("MAINVERSIONLOOSE",`(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})\\.(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})\\.(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})`);Nh("PRERELEASEIDENTIFIER",`(?:${Vf[Wf.NUMERICIDENTIFIER]}|${Vf[Wf.NONNUMERICIDENTIFIER]})`);Nh("PRERELEASEIDENTIFIERLOOSE",`(?:${Vf[Wf.NUMERICIDENTIFIERLOOSE]}|${Vf[Wf.NONNUMERICIDENTIFIER]})`);Nh("PRERELEASE",`(?:-(${Vf[Wf.PRERELEASEIDENTIFIER]}(?:\\.${Vf[Wf.PRERELEASEIDENTIFIER]})*))`);Nh("PRERELEASELOOSE",`(?:-?(${Vf[Wf.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Vf[Wf.PRERELEASEIDENTIFIERLOOSE]})*))`);Nh("BUILDIDENTIFIER",`${nRt}+`);Nh("BUILD",`(?:\\+(${Vf[Wf.BUILDIDENTIFIER]}(?:\\.${Vf[Wf.BUILDIDENTIFIER]})*))`);Nh("FULLPLAIN",`v?${Vf[Wf.MAINVERSION]}${Vf[Wf.PRERELEASE]}?${Vf[Wf.BUILD]}?`);Nh("FULL",`^${Vf[Wf.FULLPLAIN]}$`);Nh("LOOSEPLAIN",`[v=\\s]*${Vf[Wf.MAINVERSIONLOOSE]}${Vf[Wf.PRERELEASELOOSE]}?${Vf[Wf.BUILD]}?`);Nh("LOOSE",`^${Vf[Wf.LOOSEPLAIN]}$`);Nh("GTLT","((?:<|>)?=?)");Nh("XRANGEIDENTIFIERLOOSE",`${Vf[Wf.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Nh("XRANGEIDENTIFIER",`${Vf[Wf.NUMERICIDENTIFIER]}|x|X|\\*`);Nh("XRANGEPLAIN",`[v=\\s]*(${Vf[Wf.XRANGEIDENTIFIER]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIER]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIER]})(?:${Vf[Wf.PRERELEASE]})?${Vf[Wf.BUILD]}?)?)?`);Nh("XRANGEPLAINLOOSE",`[v=\\s]*(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:${Vf[Wf.PRERELEASELOOSE]})?${Vf[Wf.BUILD]}?)?)?`);Nh("XRANGE",`^${Vf[Wf.GTLT]}\\s*${Vf[Wf.XRANGEPLAIN]}$`);Nh("XRANGELOOSE",`^${Vf[Wf.GTLT]}\\s*${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("COERCEPLAIN",`(^|[^\\d])(\\d{1,${rRt}})(?:\\.(\\d{1,${rRt}}))?(?:\\.(\\d{1,${rRt}}))?`);Nh("COERCE",`${Vf[Wf.COERCEPLAIN]}(?:$|[^\\d])`);Nh("COERCEFULL",Vf[Wf.COERCEPLAIN]+`(?:${Vf[Wf.PRERELEASE]})?(?:${Vf[Wf.BUILD]})?(?:$|[^\\d])`);Nh("COERCERTL",Vf[Wf.COERCE],!0);Nh("COERCERTLFULL",Vf[Wf.COERCEFULL],!0);Nh("LONETILDE","(?:~>?)");Nh("TILDETRIM",`(\\s*)${Vf[Wf.LONETILDE]}\\s+`,!0);FW.tildeTrimReplace="$1~";Nh("TILDE",`^${Vf[Wf.LONETILDE]}${Vf[Wf.XRANGEPLAIN]}$`);Nh("TILDELOOSE",`^${Vf[Wf.LONETILDE]}${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("LONECARET","(?:\\^)");Nh("CARETTRIM",`(\\s*)${Vf[Wf.LONECARET]}\\s+`,!0);FW.caretTrimReplace="$1^";Nh("CARET",`^${Vf[Wf.LONECARET]}${Vf[Wf.XRANGEPLAIN]}$`);Nh("CARETLOOSE",`^${Vf[Wf.LONECARET]}${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("COMPARATORLOOSE",`^${Vf[Wf.GTLT]}\\s*(${Vf[Wf.LOOSEPLAIN]})$|^$`);Nh("COMPARATOR",`^${Vf[Wf.GTLT]}\\s*(${Vf[Wf.FULLPLAIN]})$|^$`);Nh("COMPARATORTRIM",`(\\s*)${Vf[Wf.GTLT]}\\s*(${Vf[Wf.LOOSEPLAIN]}|${Vf[Wf.XRANGEPLAIN]})`,!0);FW.comparatorTrimReplace="$1$2$3";Nh("HYPHENRANGE",`^\\s*(${Vf[Wf.XRANGEPLAIN]})\\s+-\\s+(${Vf[Wf.XRANGEPLAIN]})\\s*$`);Nh("HYPHENRANGELOOSE",`^\\s*(${Vf[Wf.XRANGEPLAINLOOSE]})\\s+-\\s+(${Vf[Wf.XRANGEPLAINLOOSE]})\\s*$`);Nh("STAR","(<|>)?=?\\s*\\*");Nh("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Nh("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var rze=ae((vLa,BQr)=>{var bZi=Object.freeze({loose:!0}),wZi=Object.freeze({}),BZi=e=>e?typeof e!="object"?bZi:e:wZi;BQr.exports=BZi});var iRt=ae((DLa,RQr)=>{var xQr=/^[0-9]+$/,NQr=(e,t)=>{let r=xQr.test(e),s=xQr.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:eNQr(t,e);RQr.exports={compareIdentifiers:NQr,rcompareIdentifiers:xZi}});var rR=ae((bLa,FQr)=>{var nze=mRe(),{MAX_LENGTH:kQr,MAX_SAFE_INTEGER:ize}=hRe(),{safeRe:PQr,t:OQr}=qge(),NZi=rze(),{compareIdentifiers:Jge}=iRt(),sRt=class e{constructor(t,r){if(r=NZi(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>kQr)throw new TypeError(`version is longer than ${kQr} characters`);nze("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=t.trim().match(r.loose?PQr[OQr.LOOSE]:PQr[OQr.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>ize||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ize||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ize||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let o=+c;if(o>=0&&o=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(r){let o=[r,c];s===!1&&(o=[r]),Jge(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};FQr.exports=sRt});var oce=ae((wLa,QQr)=>{var LQr=rR(),RZi=(e,t,r=!1)=>{if(e instanceof LQr)return e;try{return new LQr(e,t)}catch(s){if(!r)return null;throw s}};QQr.exports=RZi});var oRt=ae((BLa,MQr)=>{var kZi=oce(),PZi=(e,t)=>{let r=kZi(e,t);return r?r.version:null};MQr.exports=PZi});var aRt=ae((xLa,UQr)=>{var OZi=oce(),FZi=(e,t)=>{let r=OZi(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};UQr.exports=FZi});var HQr=ae((NLa,jQr)=>{var GQr=rR(),LZi=(e,t,r,s,c)=>{typeof r=="string"&&(c=s,s=r,r=void 0);try{return new GQr(e instanceof GQr?e.version:e,r).inc(t,s,c).version}catch{return null}};jQr.exports=LZi});var VQr=ae((RLa,JQr)=>{var qQr=oce(),QZi=(e,t)=>{let r=qQr(e,null,!0),s=qQr(t,null,!0),c=r.compare(s);if(c===0)return null;let o=c>0,f=o?r:s,_=o?s:r,A=!!f.prerelease.length;if(!!_.prerelease.length&&!A)return!_.patch&&!_.minor?"major":f.patch?"patch":f.minor?"minor":"major";let I=A?"pre":"";return r.major!==s.major?I+"major":r.minor!==s.minor?I+"minor":r.patch!==s.patch?I+"patch":"prerelease"};JQr.exports=QZi});var YQr=ae((kLa,WQr)=>{var MZi=rR(),UZi=(e,t)=>new MZi(e,t).major;WQr.exports=UZi});var KQr=ae((PLa,zQr)=>{var GZi=rR(),jZi=(e,t)=>new GZi(e,t).minor;zQr.exports=jZi});var ZQr=ae((OLa,XQr)=>{var HZi=rR(),qZi=(e,t)=>new HZi(e,t).patch;XQr.exports=qZi});var e3r=ae((FLa,$Qr)=>{var JZi=oce(),VZi=(e,t)=>{let r=JZi(e,t);return r&&r.prerelease.length?r.prerelease:null};$Qr.exports=VZi});var PM=ae((LLa,r3r)=>{var t3r=rR(),WZi=(e,t,r)=>new t3r(e,r).compare(new t3r(t,r));r3r.exports=WZi});var i3r=ae((QLa,n3r)=>{var YZi=PM(),zZi=(e,t,r)=>YZi(t,e,r);n3r.exports=zZi});var o3r=ae((MLa,s3r)=>{var KZi=PM(),XZi=(e,t)=>KZi(e,t,!0);s3r.exports=XZi});var sze=ae((ULa,c3r)=>{var a3r=rR(),ZZi=(e,t,r)=>{let s=new a3r(e,r),c=new a3r(t,r);return s.compare(c)||s.compareBuild(c)};c3r.exports=ZZi});var u3r=ae((GLa,l3r)=>{var $Zi=sze(),e$i=(e,t)=>e.sort((r,s)=>$Zi(r,s,t));l3r.exports=e$i});var p3r=ae((jLa,f3r)=>{var t$i=sze(),r$i=(e,t)=>e.sort((r,s)=>t$i(s,r,t));f3r.exports=r$i});var gRe=ae((HLa,d3r)=>{var n$i=PM(),i$i=(e,t,r)=>n$i(e,t,r)>0;d3r.exports=i$i});var oze=ae((qLa,_3r)=>{var s$i=PM(),o$i=(e,t,r)=>s$i(e,t,r)<0;_3r.exports=o$i});var cRt=ae((JLa,A3r)=>{var a$i=PM(),c$i=(e,t,r)=>a$i(e,t,r)===0;A3r.exports=c$i});var lRt=ae((VLa,h3r)=>{var l$i=PM(),u$i=(e,t,r)=>l$i(e,t,r)!==0;h3r.exports=u$i});var aze=ae((WLa,m3r)=>{var f$i=PM(),p$i=(e,t,r)=>f$i(e,t,r)>=0;m3r.exports=p$i});var cze=ae((YLa,g3r)=>{var d$i=PM(),_$i=(e,t,r)=>d$i(e,t,r)<=0;g3r.exports=_$i});var uRt=ae((zLa,E3r)=>{var A$i=cRt(),h$i=lRt(),m$i=gRe(),g$i=aze(),E$i=oze(),y$i=cze(),C$i=(e,t,r,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return A$i(e,r,s);case"!=":return h$i(e,r,s);case">":return m$i(e,r,s);case">=":return g$i(e,r,s);case"<":return E$i(e,r,s);case"<=":return y$i(e,r,s);default:throw new TypeError(`Invalid operator: ${t}`)}};E3r.exports=C$i});var C3r=ae((KLa,y3r)=>{var I$i=rR(),T$i=oce(),{safeRe:lze,t:uze}=qge(),S$i=(e,t)=>{if(e instanceof I$i)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?lze[uze.COERCEFULL]:lze[uze.COERCE]);else{let A=t.includePrerelease?lze[uze.COERCERTLFULL]:lze[uze.COERCERTL],y;for(;(y=A.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||y.index+y[0].length!==r.index+r[0].length)&&(r=y),A.lastIndex=y.index+y[1].length+y[2].length;A.lastIndex=-1}if(r===null)return null;let s=r[2],c=r[3]||"0",o=r[4]||"0",f=t.includePrerelease&&r[5]?`-${r[5]}`:"",_=t.includePrerelease&&r[6]?`+${r[6]}`:"";return T$i(`${s}.${c}.${o}${f}${_}`,t)};y3r.exports=S$i});var T3r=ae((XLa,I3r)=>{var fRt=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(t,r)}return this}};I3r.exports=fRt});var OM=ae((ZLa,b3r)=>{var v$i=/\s+/g,pRt=class e{constructor(t,r){if(r=b$i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof dRt)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(v$i," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(c=>!v3r(c[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&P$i(c[0])){this.set=[c];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t0&&(this.formatted+="||");let r=this.set[t];for(let s=0;s0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let s=((this.options.includePrerelease&&R$i)|(this.options.loose&&k$i))+":"+t,c=S3r.get(s);if(c)return c;let o=this.options.loose,f=o?hF[lP.HYPHENRANGELOOSE]:hF[lP.HYPHENRANGE];t=t.replace(f,q$i(this.options.includePrerelease)),CI("hyphen replace",t),t=t.replace(hF[lP.COMPARATORTRIM],B$i),CI("comparator trim",t),t=t.replace(hF[lP.TILDETRIM],x$i),CI("tilde trim",t),t=t.replace(hF[lP.CARETTRIM],N$i),CI("caret trim",t);let _=t.split(" ").map(D=>O$i(D,this.options)).join(" ").split(/\s+/).map(D=>H$i(D,this.options));o&&(_=_.filter(D=>(CI("loose invalid filter",D,this.options),!!D.match(hF[lP.COMPARATORLOOSE])))),CI("range list",_);let A=new Map,y=_.map(D=>new dRt(D,this.options));for(let D of y){if(v3r(D))return[D];A.set(D.value,D)}A.size>1&&A.has("")&&A.delete("");let I=[...A.values()];return S3r.set(s,I),I}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>D3r(s,r)&&t.set.some(c=>D3r(c,r)&&s.every(o=>c.every(f=>o.intersects(f,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new w$i(t,this.options)}catch{return!1}for(let r=0;re.value==="<0.0.0-0",P$i=e=>e.value==="",D3r=(e,t)=>{let r=!0,s=e.slice(),c=s.pop();for(;r&&s.length;)r=s.every(o=>c.intersects(o,t)),c=s.pop();return r},O$i=(e,t)=>(CI("comp",e,t),e=Q$i(e,t),CI("caret",e),e=F$i(e,t),CI("tildes",e),e=U$i(e,t),CI("xrange",e),e=j$i(e,t),CI("stars",e),e),uP=e=>!e||e.toLowerCase()==="x"||e==="*",F$i=(e,t)=>e.trim().split(/\s+/).map(r=>L$i(r,t)).join(" "),L$i=(e,t)=>{let r=t.loose?hF[lP.TILDELOOSE]:hF[lP.TILDE];return e.replace(r,(s,c,o,f,_)=>{CI("tilde",e,s,c,o,f,_);let A;return uP(c)?A="":uP(o)?A=`>=${c}.0.0 <${+c+1}.0.0-0`:uP(f)?A=`>=${c}.${o}.0 <${c}.${+o+1}.0-0`:_?(CI("replaceTilde pr",_),A=`>=${c}.${o}.${f}-${_} <${c}.${+o+1}.0-0`):A=`>=${c}.${o}.${f} <${c}.${+o+1}.0-0`,CI("tilde return",A),A})},Q$i=(e,t)=>e.trim().split(/\s+/).map(r=>M$i(r,t)).join(" "),M$i=(e,t)=>{CI("caret",e,t);let r=t.loose?hF[lP.CARETLOOSE]:hF[lP.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(c,o,f,_,A)=>{CI("caret",e,c,o,f,_,A);let y;return uP(o)?y="":uP(f)?y=`>=${o}.0.0${s} <${+o+1}.0.0-0`:uP(_)?o==="0"?y=`>=${o}.${f}.0${s} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.0${s} <${+o+1}.0.0-0`:A?(CI("replaceCaret pr",A),o==="0"?f==="0"?y=`>=${o}.${f}.${_}-${A} <${o}.${f}.${+_+1}-0`:y=`>=${o}.${f}.${_}-${A} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.${_}-${A} <${+o+1}.0.0-0`):(CI("no pr"),o==="0"?f==="0"?y=`>=${o}.${f}.${_}${s} <${o}.${f}.${+_+1}-0`:y=`>=${o}.${f}.${_}${s} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.${_} <${+o+1}.0.0-0`),CI("caret return",y),y})},U$i=(e,t)=>(CI("replaceXRanges",e,t),e.split(/\s+/).map(r=>G$i(r,t)).join(" ")),G$i=(e,t)=>{e=e.trim();let r=t.loose?hF[lP.XRANGELOOSE]:hF[lP.XRANGE];return e.replace(r,(s,c,o,f,_,A)=>{CI("xRange",e,s,c,o,f,_,A);let y=uP(o),I=y||uP(f),D=I||uP(_),b=D;return c==="="&&b&&(c=""),A=t.includePrerelease?"-0":"",y?c===">"||c==="<"?s="<0.0.0-0":s="*":c&&b?(I&&(f=0),_=0,c===">"?(c=">=",I?(o=+o+1,f=0,_=0):(f=+f+1,_=0)):c==="<="&&(c="<",I?o=+o+1:f=+f+1),c==="<"&&(A="-0"),s=`${c+o}.${f}.${_}${A}`):I?s=`>=${o}.0.0${A} <${+o+1}.0.0-0`:D&&(s=`>=${o}.${f}.0${A} <${o}.${+f+1}.0-0`),CI("xRange return",s),s})},j$i=(e,t)=>(CI("replaceStars",e,t),e.trim().replace(hF[lP.STAR],"")),H$i=(e,t)=>(CI("replaceGTE0",e,t),e.trim().replace(hF[t.includePrerelease?lP.GTE0PRE:lP.GTE0],"")),q$i=e=>(t,r,s,c,o,f,_,A,y,I,D,b)=>(uP(s)?r="":uP(c)?r=`>=${s}.0.0${e?"-0":""}`:uP(o)?r=`>=${s}.${c}.0${e?"-0":""}`:f?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,uP(y)?A="":uP(I)?A=`<${+y+1}.0.0-0`:uP(D)?A=`<${y}.${+I+1}.0-0`:b?A=`<=${y}.${I}.${D}-${b}`:e?A=`<${y}.${I}.${+D+1}-0`:A=`<=${A}`,`${r} ${A}`.trim()),J$i=(e,t,r)=>{for(let s=0;s0){let c=e[s].semver;if(c.major===t.major&&c.minor===t.minor&&c.patch===t.patch)return!0}return!1}return!0}});var ERe=ae(($La,k3r)=>{var yRe=Symbol("SemVer ANY"),hRt=class e{static get ANY(){return yRe}constructor(t,r){if(r=w3r(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),ARt("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===yRe?this.value="":this.value=this.operator+this.semver.version,ARt("comp",this)}parse(t){let r=this.options.loose?B3r[x3r.COMPARATORLOOSE]:B3r[x3r.COMPARATOR],s=t.match(r);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new N3r(s[2],this.options.loose):this.semver=yRe}toString(){return this.value}test(t){if(ARt("Comparator.test",t,this.options.loose),this.semver===yRe||t===yRe)return!0;if(typeof t=="string")try{t=new N3r(t,this.options)}catch{return!1}return _Rt(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new R3r(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new R3r(this.value,r).test(t.semver):(r=w3r(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||_Rt(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||_Rt(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};k3r.exports=hRt;var w3r=rze(),{safeRe:B3r,t:x3r}=qge(),_Rt=uRt(),ARt=mRe(),N3r=rR(),R3r=OM()});var CRe=ae((eQa,P3r)=>{var V$i=OM(),W$i=(e,t,r)=>{try{t=new V$i(t,r)}catch{return!1}return t.test(e)};P3r.exports=W$i});var F3r=ae((tQa,O3r)=>{var Y$i=OM(),z$i=(e,t)=>new Y$i(e,t).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));O3r.exports=z$i});var Q3r=ae((rQa,L3r)=>{var K$i=rR(),X$i=OM(),Z$i=(e,t,r)=>{let s=null,c=null,o=null;try{o=new X$i(t,r)}catch{return null}return e.forEach(f=>{o.test(f)&&(!s||c.compare(f)===-1)&&(s=f,c=new K$i(s,r))}),s};L3r.exports=Z$i});var U3r=ae((nQa,M3r)=>{var $$i=rR(),ees=OM(),tes=(e,t,r)=>{let s=null,c=null,o=null;try{o=new ees(t,r)}catch{return null}return e.forEach(f=>{o.test(f)&&(!s||c.compare(f)===1)&&(s=f,c=new $$i(s,r))}),s};M3r.exports=tes});var H3r=ae((iQa,j3r)=>{var mRt=rR(),res=OM(),G3r=gRe(),nes=(e,t)=>{e=new res(e,t);let r=new mRt("0.0.0");if(e.test(r)||(r=new mRt("0.0.0-0"),e.test(r)))return r;r=null;for(let s=0;s{let _=new mRt(f.semver.version);switch(f.operator){case">":_.prerelease.length===0?_.patch++:_.prerelease.push(0),_.raw=_.format();case"":case">=":(!o||G3r(_,o))&&(o=_);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),o&&(!r||G3r(r,o))&&(r=o)}return r&&e.test(r)?r:null};j3r.exports=nes});var J3r=ae((sQa,q3r)=>{var ies=OM(),ses=(e,t)=>{try{return new ies(e,t).range||"*"}catch{return null}};q3r.exports=ses});var fze=ae((oQa,z3r)=>{var oes=rR(),Y3r=ERe(),{ANY:aes}=Y3r,ces=OM(),les=CRe(),V3r=gRe(),W3r=oze(),ues=cze(),fes=aze(),pes=(e,t,r,s)=>{e=new oes(e,s),t=new ces(t,s);let c,o,f,_,A;switch(r){case">":c=V3r,o=ues,f=W3r,_=">",A=">=";break;case"<":c=W3r,o=fes,f=V3r,_="<",A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(les(e,t,s))return!1;for(let y=0;y{L.semver===aes&&(L=new Y3r(">=0.0.0")),D=D||L,b=b||L,c(L.semver,D.semver,s)?D=L:f(L.semver,b.semver,s)&&(b=L)}),D.operator===_||D.operator===A||(!b.operator||b.operator===_)&&o(e,b.semver))return!1;if(b.operator===A&&f(e,b.semver))return!1}return!0};z3r.exports=pes});var X3r=ae((aQa,K3r)=>{var des=fze(),_es=(e,t,r)=>des(e,t,">",r);K3r.exports=_es});var $3r=ae((cQa,Z3r)=>{var Aes=fze(),hes=(e,t,r)=>Aes(e,t,"<",r);Z3r.exports=hes});var r4r=ae((lQa,t4r)=>{var e4r=OM(),mes=(e,t,r)=>(e=new e4r(e,r),t=new e4r(t,r),e.intersects(t,r));t4r.exports=mes});var i4r=ae((uQa,n4r)=>{var ges=CRe(),Ees=PM();n4r.exports=(e,t,r)=>{let s=[],c=null,o=null,f=e.sort((I,D)=>Ees(I,D,r));for(let I of f)ges(I,t,r)?(o=I,c||(c=I)):(o&&s.push([c,o]),o=null,c=null);c&&s.push([c,null]);let _=[];for(let[I,D]of s)I===D?_.push(I):!D&&I===f[0]?_.push("*"):D?I===f[0]?_.push(`<=${D}`):_.push(`${I} - ${D}`):_.push(`>=${I}`);let A=_.join(" || "),y=typeof t.raw=="string"?t.raw:String(t);return A.length{var s4r=OM(),ERt=ERe(),{ANY:gRt}=ERt,IRe=CRe(),yRt=PM(),yes=(e,t,r={})=>{if(e===t)return!0;e=new s4r(e,r),t=new s4r(t,r);let s=!1;e:for(let c of e.set){for(let o of t.set){let f=Ies(c,o,r);if(s=s||f!==null,f)continue e}if(s)return!1}return!0},Ces=[new ERt(">=0.0.0-0")],o4r=[new ERt(">=0.0.0")],Ies=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===gRt){if(t.length===1&&t[0].semver===gRt)return!0;r.includePrerelease?e=Ces:e=o4r}if(t.length===1&&t[0].semver===gRt){if(r.includePrerelease)return!0;t=o4r}let s=new Set,c,o;for(let L of e)L.operator===">"||L.operator===">="?c=a4r(c,L,r):L.operator==="<"||L.operator==="<="?o=c4r(o,L,r):s.add(L.semver);if(s.size>1)return null;let f;if(c&&o){if(f=yRt(c.semver,o.semver,r),f>0)return null;if(f===0&&(c.operator!==">="||o.operator!=="<="))return null}for(let L of s){if(c&&!IRe(L,String(c),r)||o&&!IRe(L,String(o),r))return null;for(let x of t)if(!IRe(L,String(x),r))return!1;return!0}let _,A,y,I,D=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,b=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;D&&D.prerelease.length===1&&o.operator==="<"&&D.prerelease[0]===0&&(D=!1);for(let L of t){if(I=I||L.operator===">"||L.operator===">=",y=y||L.operator==="<"||L.operator==="<=",c){if(b&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===b.major&&L.semver.minor===b.minor&&L.semver.patch===b.patch&&(b=!1),L.operator===">"||L.operator===">="){if(_=a4r(c,L,r),_===L&&_!==c)return!1}else if(c.operator===">="&&!IRe(c.semver,String(L),r))return!1}if(o){if(D&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===D.major&&L.semver.minor===D.minor&&L.semver.patch===D.patch&&(D=!1),L.operator==="<"||L.operator==="<="){if(A=c4r(o,L,r),A===L&&A!==o)return!1}else if(o.operator==="<="&&!IRe(o.semver,String(L),r))return!1}if(!L.operator&&(o||c)&&f!==0)return!1}return!(c&&y&&!o&&f!==0||o&&I&&!c&&f!==0||b||D)},a4r=(e,t,r)=>{if(!e)return t;let s=yRt(e.semver,t.semver,r);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},c4r=(e,t,r)=>{if(!e)return t;let s=yRt(e.semver,t.semver,r);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};l4r.exports=yes});var W0=ae((pQa,d4r)=>{var CRt=qge(),f4r=hRe(),Tes=rR(),p4r=iRt(),Ses=oce(),ves=oRt(),Des=aRt(),bes=HQr(),wes=VQr(),Bes=YQr(),xes=KQr(),Nes=ZQr(),Res=e3r(),kes=PM(),Pes=i3r(),Oes=o3r(),Fes=sze(),Les=u3r(),Qes=p3r(),Mes=gRe(),Ues=oze(),Ges=cRt(),jes=lRt(),Hes=aze(),qes=cze(),Jes=uRt(),Ves=C3r(),Wes=ERe(),Yes=OM(),zes=CRe(),Kes=F3r(),Xes=Q3r(),Zes=U3r(),$es=H3r(),ets=J3r(),tts=fze(),rts=X3r(),nts=$3r(),its=r4r(),sts=i4r(),ots=u4r();d4r.exports={parse:Ses,valid:ves,clean:Des,inc:bes,diff:wes,major:Bes,minor:xes,patch:Nes,prerelease:Res,compare:kes,rcompare:Pes,compareLoose:Oes,compareBuild:Fes,sort:Les,rsort:Qes,gt:Mes,lt:Ues,eq:Ges,neq:jes,gte:Hes,lte:qes,cmp:Jes,coerce:Ves,Comparator:Wes,Range:Yes,satisfies:zes,toComparators:Kes,maxSatisfying:Xes,minSatisfying:Zes,minVersion:$es,validRange:ets,outside:tts,gtr:rts,ltr:nts,intersects:its,simplifyRange:sts,subset:ots,SemVer:Tes,re:CRt.re,src:CRt.src,tokens:CRt.t,SEMVER_SPEC_VERSION:f4r.SEMVER_SPEC_VERSION,RELEASE_TYPES:f4r.RELEASE_TYPES,compareIdentifiers:p4r.compareIdentifiers,rcompareIdentifiers:p4r.rcompareIdentifiers}});var A4r=ae((dQa,_4r)=>{"use strict";function ats(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function ace(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ace)}ats(ace,Error);ace.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D{switch(vi[1]){case"|":return la|vi[3];case"&":return la&vi[3];case"^":return la^vi[3]}},zs)},b="!",L=yr("!",!1),x=function(zs){return!zs},J="(",Y=yr("(",!1),ne=")",Ae=yr(")",!1),le=function(zs){return zs},pe=/^[^ \t\n\r()!|&\^]/,ge=ur([" "," ",`
+`),(0,MXi.parse)(e)}var jXi=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function HXi(e){if(jXi.test(e))return GXi(e);let t=(0,nQr.safeLoad)(e,{schema:nQr.FAILSAFE_SCHEMA,json:!0});if(t==null)return{};if(typeof t!="object")throw new Error(`Expected an indexed object, got a ${typeof t} instead. Does your file follow Yaml's rules?`);if(Array.isArray(t))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return t}function qXi(e){return HXi(e)}});var kM=ae(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.stringifySyml=Hm.parseSyml=Hm.stringifyResolution=Hm.parseResolution=Hm.stringifyValueArgument=Hm.stringifyShellLine=Hm.stringifyRedirectArgument=Hm.stringifyEnvSegment=Hm.stringifyCommandLineThen=Hm.stringifyCommandLine=Hm.stringifyCommandChainThen=Hm.stringifyCommandChain=Hm.stringifyCommand=Hm.stringifyArithmeticExpression=Hm.stringifyArgumentSegment=Hm.stringifyArgument=Hm.stringifyShell=Hm.parseShell=void 0;var _F=aFr();Object.defineProperty(Hm,"parseShell",{enumerable:!0,get:function(){return _F.parseShell}});Object.defineProperty(Hm,"stringifyShell",{enumerable:!0,get:function(){return _F.stringifyShell}});Object.defineProperty(Hm,"stringifyArgument",{enumerable:!0,get:function(){return _F.stringifyArgument}});Object.defineProperty(Hm,"stringifyArgumentSegment",{enumerable:!0,get:function(){return _F.stringifyArgumentSegment}});Object.defineProperty(Hm,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return _F.stringifyArithmeticExpression}});Object.defineProperty(Hm,"stringifyCommand",{enumerable:!0,get:function(){return _F.stringifyCommand}});Object.defineProperty(Hm,"stringifyCommandChain",{enumerable:!0,get:function(){return _F.stringifyCommandChain}});Object.defineProperty(Hm,"stringifyCommandChainThen",{enumerable:!0,get:function(){return _F.stringifyCommandChainThen}});Object.defineProperty(Hm,"stringifyCommandLine",{enumerable:!0,get:function(){return _F.stringifyCommandLine}});Object.defineProperty(Hm,"stringifyCommandLineThen",{enumerable:!0,get:function(){return _F.stringifyCommandLineThen}});Object.defineProperty(Hm,"stringifyEnvSegment",{enumerable:!0,get:function(){return _F.stringifyEnvSegment}});Object.defineProperty(Hm,"stringifyRedirectArgument",{enumerable:!0,get:function(){return _F.stringifyRedirectArgument}});Object.defineProperty(Hm,"stringifyShellLine",{enumerable:!0,get:function(){return _F.stringifyShellLine}});Object.defineProperty(Hm,"stringifyValueArgument",{enumerable:!0,get:function(){return _F.stringifyValueArgument}});var lQr=uFr();Object.defineProperty(Hm,"parseResolution",{enumerable:!0,get:function(){return lQr.parseResolution}});Object.defineProperty(Hm,"stringifyResolution",{enumerable:!0,get:function(){return lQr.stringifyResolution}});var uQr=cQr();Object.defineProperty(Hm,"parseSyml",{enumerable:!0,get:function(){return uQr.parseSyml}});Object.defineProperty(Hm,"stringifySyml",{enumerable:!0,get:function(){return uQr.stringifySyml}})});var pQr=ae((dLa,WNt)=>{"use strict";var JXi=e=>{let t=!1,r=!1,s=!1;for(let c=0;c{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let r=c=>t.pascalCase?c.charAt(0).toUpperCase()+c.slice(1):c;return Array.isArray(e)?e=e.map(c=>c.trim()).filter(c=>c.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=JXi(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(c,o)=>o.toUpperCase()).replace(/\d+(\w|$)/g,c=>c.toUpperCase()),r(e))};WNt.exports=fQr;WNt.exports.default=fQr});var dQr=ae((_La,VXi)=>{VXi.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{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:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{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:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{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:"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:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{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 ice=ae(GQ=>{"use strict";var AQr=dQr(),Ub=process.env;Object.defineProperty(GQ,"_vendors",{value:AQr.map(function(e){return e.constant})});GQ.name=null;GQ.isPR=null;AQr.forEach(function(e){let r=(Array.isArray(e.env)?e.env:[e.env]).every(function(s){return _Qr(s)});if(GQ[e.constant]=r,!!r)switch(GQ.name=e.name,typeof e.pr){case"string":GQ.isPR=!!Ub[e.pr];break;case"object":"env"in e.pr?GQ.isPR=e.pr.env in Ub&&Ub[e.pr.env]!==e.pr.ne:"any"in e.pr?GQ.isPR=e.pr.any.some(function(s){return!!Ub[s]}):GQ.isPR=_Qr(e.pr);break;default:GQ.isPR=null}});GQ.isCI=!!(Ub.CI!=="false"&&(Ub.BUILD_ID||Ub.BUILD_NUMBER||Ub.CI||Ub.CI_APP_ID||Ub.CI_BUILD_ID||Ub.CI_BUILD_NUMBER||Ub.CI_NAME||Ub.CONTINUOUS_INTEGRATION||Ub.RUN_ID||GQ.name));function _Qr(e){return typeof e=="string"?!!Ub[e]:"env"in e?Ub[e.env]&&Ub[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!Ub[t]}):Object.keys(e).every(function(t){return Ub[t]===e[t]})}});var hQr=ae((hLa,WXi)=>{WXi.exports={name:"dotenv",version:"16.4.5",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var yQr=ae((mLa,OW)=>{var YNt=qt("fs"),zNt=qt("path"),YXi=qt("os"),zXi=qt("crypto"),KXi=hQr(),KNt=KXi.version,XXi=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function ZXi(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
+`);let s;for(;(s=XXi.exec(r))!=null;){let c=s[1],o=s[2]||"";o=o.trim();let f=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),f==='"'&&(o=o.replace(/\\n/g,`
+`),o=o.replace(/\\r/g,"\r")),t[c]=o}return t}function $Xi(e){let t=EQr(e),r=Gb.configDotenv({path:t});if(!r.parsed){let f=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw f.code="MISSING_DATA",f}let s=gQr(e).split(","),c=s.length,o;for(let f=0;f=c)throw _}return Gb.parse(o)}function eZi(e){console.log(`[dotenv@${KNt}][INFO] ${e}`)}function tZi(e){console.log(`[dotenv@${KNt}][WARN] ${e}`)}function tze(e){console.log(`[dotenv@${KNt}][DEBUG] ${e}`)}function gQr(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function rZi(e,t){let r;try{r=new URL(t)}catch(_){if(_.code==="ERR_INVALID_URL"){let A=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw A.code="INVALID_DOTENV_KEY",A}throw _}let s=r.password;if(!s){let _=new Error("INVALID_DOTENV_KEY: Missing key part");throw _.code="INVALID_DOTENV_KEY",_}let c=r.searchParams.get("environment");if(!c){let _=new Error("INVALID_DOTENV_KEY: Missing environment part");throw _.code="INVALID_DOTENV_KEY",_}let o=`DOTENV_VAULT_${c.toUpperCase()}`,f=e.parsed[o];if(!f){let _=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw _.code="NOT_FOUND_DOTENV_ENVIRONMENT",_}return{ciphertext:f,key:s}}function EQr(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)YNt.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=zNt.resolve(process.cwd(),".env.vault");return YNt.existsSync(t)?t:null}function mQr(e){return e[0]==="~"?zNt.join(YXi.homedir(),e.slice(1)):e}function nZi(e){eZi("Loading env from encrypted .env.vault");let t=Gb._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Gb.populate(r,t,e),{parsed:t}}function iZi(e){let t=zNt.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug);e&&e.encoding?r=e.encoding:s&&tze("No encoding is specified. UTF-8 is used by default");let c=[t];if(e&&e.path)if(!Array.isArray(e.path))c=[mQr(e.path)];else{c=[];for(let A of e.path)c.push(mQr(A))}let o,f={};for(let A of c)try{let y=Gb.parse(YNt.readFileSync(A,{encoding:r}));Gb.populate(f,y,e)}catch(y){s&&tze(`Failed to load ${A} ${y.message}`),o=y}let _=process.env;return e&&e.processEnv!=null&&(_=e.processEnv),Gb.populate(_,f,e),o?{parsed:f,error:o}:{parsed:f}}function sZi(e){if(gQr(e).length===0)return Gb.configDotenv(e);let t=EQr(e);return t?Gb._configVault(e):(tZi(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Gb.configDotenv(e))}function oZi(e,t){let r=Buffer.from(t.slice(-64),"hex"),s=Buffer.from(e,"base64"),c=s.subarray(0,12),o=s.subarray(-16);s=s.subarray(12,-16);try{let f=zXi.createDecipheriv("aes-256-gcm",r,c);return f.setAuthTag(o),`${f.update(s)}${f.final()}`}catch(f){let _=f instanceof RangeError,A=f.message==="Invalid key length",y=f.message==="Unsupported state or unable to authenticate data";if(_||A){let I=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw I.code="INVALID_DOTENV_KEY",I}else if(y){let I=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw I.code="DECRYPTION_FAILED",I}else throw f}}function aZi(e,t,r={}){let s=!!(r&&r.debug),c=!!(r&&r.override);if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(c===!0&&(e[o]=t[o]),s&&tze(c===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}var Gb={configDotenv:iZi,_configVault:nZi,_parseVault:$Xi,config:sZi,decrypt:oZi,parse:ZXi,populate:aZi};OW.exports.configDotenv=Gb.configDotenv;OW.exports._configVault=Gb._configVault;OW.exports._parseVault=Gb._parseVault;OW.exports.config=Gb.config;OW.exports.decrypt=Gb.decrypt;OW.exports.parse=Gb.parse;OW.exports.populate=Gb.populate;OW.exports=Gb});var IQr=ae((gLa,XNt)=>{"use strict";var CQr=(e,...t)=>new Promise(r=>{r(e(...t))});XNt.exports=CQr;XNt.exports.default=CQr});var sce=ae((ELa,ZNt)=>{"use strict";var cZi=IQr(),TQr=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,s=()=>{r--,t.length>0&&t.shift()()},c=(_,A,...y)=>{r++;let I=cZi(_,...y);A(I),I.then(s,s)},o=(_,A,...y)=>{rnew Promise(y=>o(_,y,...A));return Object.defineProperties(f,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),f};ZNt.exports=TQr;ZNt.exports.default=TQr});var AF=ae(Hge=>{"use strict";Object.defineProperty(Hge,"__esModule",{value:!0});Hge.MessageName=void 0;Hge.stringifyMessageName=lZi;Hge.parseMessageName=uZi;var $Nt;(function(e){e[e.UNNAMED=0]="UNNAMED",e[e.EXCEPTION=1]="EXCEPTION",e[e.MISSING_PEER_DEPENDENCY=2]="MISSING_PEER_DEPENDENCY",e[e.CYCLIC_DEPENDENCIES=3]="CYCLIC_DEPENDENCIES",e[e.DISABLED_BUILD_SCRIPTS=4]="DISABLED_BUILD_SCRIPTS",e[e.BUILD_DISABLED=5]="BUILD_DISABLED",e[e.SOFT_LINK_BUILD=6]="SOFT_LINK_BUILD",e[e.MUST_BUILD=7]="MUST_BUILD",e[e.MUST_REBUILD=8]="MUST_REBUILD",e[e.BUILD_FAILED=9]="BUILD_FAILED",e[e.RESOLVER_NOT_FOUND=10]="RESOLVER_NOT_FOUND",e[e.FETCHER_NOT_FOUND=11]="FETCHER_NOT_FOUND",e[e.LINKER_NOT_FOUND=12]="LINKER_NOT_FOUND",e[e.FETCH_NOT_CACHED=13]="FETCH_NOT_CACHED",e[e.YARN_IMPORT_FAILED=14]="YARN_IMPORT_FAILED",e[e.REMOTE_INVALID=15]="REMOTE_INVALID",e[e.REMOTE_NOT_FOUND=16]="REMOTE_NOT_FOUND",e[e.RESOLUTION_PACK=17]="RESOLUTION_PACK",e[e.CACHE_CHECKSUM_MISMATCH=18]="CACHE_CHECKSUM_MISMATCH",e[e.UNUSED_CACHE_ENTRY=19]="UNUSED_CACHE_ENTRY",e[e.MISSING_LOCKFILE_ENTRY=20]="MISSING_LOCKFILE_ENTRY",e[e.WORKSPACE_NOT_FOUND=21]="WORKSPACE_NOT_FOUND",e[e.TOO_MANY_MATCHING_WORKSPACES=22]="TOO_MANY_MATCHING_WORKSPACES",e[e.CONSTRAINTS_MISSING_DEPENDENCY=23]="CONSTRAINTS_MISSING_DEPENDENCY",e[e.CONSTRAINTS_INCOMPATIBLE_DEPENDENCY=24]="CONSTRAINTS_INCOMPATIBLE_DEPENDENCY",e[e.CONSTRAINTS_EXTRANEOUS_DEPENDENCY=25]="CONSTRAINTS_EXTRANEOUS_DEPENDENCY",e[e.CONSTRAINTS_INVALID_DEPENDENCY=26]="CONSTRAINTS_INVALID_DEPENDENCY",e[e.CANT_SUGGEST_RESOLUTIONS=27]="CANT_SUGGEST_RESOLUTIONS",e[e.FROZEN_LOCKFILE_EXCEPTION=28]="FROZEN_LOCKFILE_EXCEPTION",e[e.CROSS_DRIVE_VIRTUAL_LOCAL=29]="CROSS_DRIVE_VIRTUAL_LOCAL",e[e.FETCH_FAILED=30]="FETCH_FAILED",e[e.DANGEROUS_NODE_MODULES=31]="DANGEROUS_NODE_MODULES",e[e.NODE_GYP_INJECTED=32]="NODE_GYP_INJECTED",e[e.AUTHENTICATION_NOT_FOUND=33]="AUTHENTICATION_NOT_FOUND",e[e.INVALID_CONFIGURATION_KEY=34]="INVALID_CONFIGURATION_KEY",e[e.NETWORK_ERROR=35]="NETWORK_ERROR",e[e.LIFECYCLE_SCRIPT=36]="LIFECYCLE_SCRIPT",e[e.CONSTRAINTS_MISSING_FIELD=37]="CONSTRAINTS_MISSING_FIELD",e[e.CONSTRAINTS_INCOMPATIBLE_FIELD=38]="CONSTRAINTS_INCOMPATIBLE_FIELD",e[e.CONSTRAINTS_EXTRANEOUS_FIELD=39]="CONSTRAINTS_EXTRANEOUS_FIELD",e[e.CONSTRAINTS_INVALID_FIELD=40]="CONSTRAINTS_INVALID_FIELD",e[e.AUTHENTICATION_INVALID=41]="AUTHENTICATION_INVALID",e[e.PROLOG_UNKNOWN_ERROR=42]="PROLOG_UNKNOWN_ERROR",e[e.PROLOG_SYNTAX_ERROR=43]="PROLOG_SYNTAX_ERROR",e[e.PROLOG_EXISTENCE_ERROR=44]="PROLOG_EXISTENCE_ERROR",e[e.STACK_OVERFLOW_RESOLUTION=45]="STACK_OVERFLOW_RESOLUTION",e[e.AUTOMERGE_FAILED_TO_PARSE=46]="AUTOMERGE_FAILED_TO_PARSE",e[e.AUTOMERGE_IMMUTABLE=47]="AUTOMERGE_IMMUTABLE",e[e.AUTOMERGE_SUCCESS=48]="AUTOMERGE_SUCCESS",e[e.AUTOMERGE_REQUIRED=49]="AUTOMERGE_REQUIRED",e[e.DEPRECATED_CLI_SETTINGS=50]="DEPRECATED_CLI_SETTINGS",e[e.PLUGIN_NAME_NOT_FOUND=51]="PLUGIN_NAME_NOT_FOUND",e[e.INVALID_PLUGIN_REFERENCE=52]="INVALID_PLUGIN_REFERENCE",e[e.CONSTRAINTS_AMBIGUITY=53]="CONSTRAINTS_AMBIGUITY",e[e.CACHE_OUTSIDE_PROJECT=54]="CACHE_OUTSIDE_PROJECT",e[e.IMMUTABLE_INSTALL=55]="IMMUTABLE_INSTALL",e[e.IMMUTABLE_CACHE=56]="IMMUTABLE_CACHE",e[e.INVALID_MANIFEST=57]="INVALID_MANIFEST",e[e.PACKAGE_PREPARATION_FAILED=58]="PACKAGE_PREPARATION_FAILED",e[e.INVALID_RANGE_PEER_DEPENDENCY=59]="INVALID_RANGE_PEER_DEPENDENCY",e[e.INCOMPATIBLE_PEER_DEPENDENCY=60]="INCOMPATIBLE_PEER_DEPENDENCY",e[e.DEPRECATED_PACKAGE=61]="DEPRECATED_PACKAGE",e[e.INCOMPATIBLE_OS=62]="INCOMPATIBLE_OS",e[e.INCOMPATIBLE_CPU=63]="INCOMPATIBLE_CPU",e[e.FROZEN_ARTIFACT_EXCEPTION=64]="FROZEN_ARTIFACT_EXCEPTION",e[e.TELEMETRY_NOTICE=65]="TELEMETRY_NOTICE",e[e.PATCH_HUNK_FAILED=66]="PATCH_HUNK_FAILED",e[e.INVALID_CONFIGURATION_VALUE=67]="INVALID_CONFIGURATION_VALUE",e[e.UNUSED_PACKAGE_EXTENSION=68]="UNUSED_PACKAGE_EXTENSION",e[e.REDUNDANT_PACKAGE_EXTENSION=69]="REDUNDANT_PACKAGE_EXTENSION",e[e.AUTO_NM_SUCCESS=70]="AUTO_NM_SUCCESS",e[e.NM_CANT_INSTALL_EXTERNAL_SOFT_LINK=71]="NM_CANT_INSTALL_EXTERNAL_SOFT_LINK",e[e.NM_PRESERVE_SYMLINKS_REQUIRED=72]="NM_PRESERVE_SYMLINKS_REQUIRED",e[e.UPDATE_LOCKFILE_ONLY_SKIP_LINK=73]="UPDATE_LOCKFILE_ONLY_SKIP_LINK",e[e.NM_HARDLINKS_MODE_DOWNGRADED=74]="NM_HARDLINKS_MODE_DOWNGRADED",e[e.PROLOG_INSTANTIATION_ERROR=75]="PROLOG_INSTANTIATION_ERROR",e[e.INCOMPATIBLE_ARCHITECTURE=76]="INCOMPATIBLE_ARCHITECTURE",e[e.GHOST_ARCHITECTURE=77]="GHOST_ARCHITECTURE",e[e.RESOLUTION_MISMATCH=78]="RESOLUTION_MISMATCH",e[e.PROLOG_LIMIT_EXCEEDED=79]="PROLOG_LIMIT_EXCEEDED",e[e.NETWORK_DISABLED=80]="NETWORK_DISABLED",e[e.NETWORK_UNSAFE_HTTP=81]="NETWORK_UNSAFE_HTTP",e[e.RESOLUTION_FAILED=82]="RESOLUTION_FAILED",e[e.AUTOMERGE_GIT_ERROR=83]="AUTOMERGE_GIT_ERROR",e[e.CONSTRAINTS_CHECK_FAILED=84]="CONSTRAINTS_CHECK_FAILED",e[e.UPDATED_RESOLUTION_RECORD=85]="UPDATED_RESOLUTION_RECORD",e[e.EXPLAIN_PEER_DEPENDENCIES_CTA=86]="EXPLAIN_PEER_DEPENDENCIES_CTA",e[e.MIGRATION_SUCCESS=87]="MIGRATION_SUCCESS",e[e.VERSION_NOTICE=88]="VERSION_NOTICE",e[e.TIPS_NOTICE=89]="TIPS_NOTICE",e[e.OFFLINE_MODE_ENABLED=90]="OFFLINE_MODE_ENABLED"})($Nt||(Hge.MessageName=$Nt={}));function lZi(e){return`YN${e.toString(10).padStart(4,"0")}`}function uZi(e){let t=Number(e.slice(2));if(typeof $Nt[t]>"u")throw new Error(`Unknown message name: "${e}"`);return t}});var hRe=ae((CLa,SQr)=>{var fZi="2.0.0",pZi=Number.MAX_SAFE_INTEGER||9007199254740991,dZi=16,_Zi=250,AZi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];SQr.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dZi,MAX_SAFE_BUILD_LENGTH:_Zi,MAX_SAFE_INTEGER:pZi,RELEASE_TYPES:AZi,SEMVER_SPEC_VERSION:fZi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mRe=ae((ILa,vQr)=>{var hZi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};vQr.exports=hZi});var qge=ae((FW,DQr)=>{var{MAX_SAFE_COMPONENT_LENGTH:eRt,MAX_SAFE_BUILD_LENGTH:mZi,MAX_LENGTH:gZi}=hRe(),EZi=mRe();FW=DQr.exports={};var yZi=FW.re=[],CZi=FW.safeRe=[],Vf=FW.src=[],Wf=FW.t={},IZi=0,tRt="[a-zA-Z0-9-]",TZi=[["\\s",1],["\\d",gZi],[tRt,mZi]],SZi=e=>{for(let[t,r]of TZi)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Nh=(e,t,r)=>{let s=SZi(t),c=IZi++;EZi(e,c,t),Wf[e]=c,Vf[c]=t,yZi[c]=new RegExp(t,r?"g":void 0),CZi[c]=new RegExp(s,r?"g":void 0)};Nh("NUMERICIDENTIFIER","0|[1-9]\\d*");Nh("NUMERICIDENTIFIERLOOSE","\\d+");Nh("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${tRt}*`);Nh("MAINVERSION",`(${Vf[Wf.NUMERICIDENTIFIER]})\\.(${Vf[Wf.NUMERICIDENTIFIER]})\\.(${Vf[Wf.NUMERICIDENTIFIER]})`);Nh("MAINVERSIONLOOSE",`(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})\\.(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})\\.(${Vf[Wf.NUMERICIDENTIFIERLOOSE]})`);Nh("PRERELEASEIDENTIFIER",`(?:${Vf[Wf.NUMERICIDENTIFIER]}|${Vf[Wf.NONNUMERICIDENTIFIER]})`);Nh("PRERELEASEIDENTIFIERLOOSE",`(?:${Vf[Wf.NUMERICIDENTIFIERLOOSE]}|${Vf[Wf.NONNUMERICIDENTIFIER]})`);Nh("PRERELEASE",`(?:-(${Vf[Wf.PRERELEASEIDENTIFIER]}(?:\\.${Vf[Wf.PRERELEASEIDENTIFIER]})*))`);Nh("PRERELEASELOOSE",`(?:-?(${Vf[Wf.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Vf[Wf.PRERELEASEIDENTIFIERLOOSE]})*))`);Nh("BUILDIDENTIFIER",`${tRt}+`);Nh("BUILD",`(?:\\+(${Vf[Wf.BUILDIDENTIFIER]}(?:\\.${Vf[Wf.BUILDIDENTIFIER]})*))`);Nh("FULLPLAIN",`v?${Vf[Wf.MAINVERSION]}${Vf[Wf.PRERELEASE]}?${Vf[Wf.BUILD]}?`);Nh("FULL",`^${Vf[Wf.FULLPLAIN]}$`);Nh("LOOSEPLAIN",`[v=\\s]*${Vf[Wf.MAINVERSIONLOOSE]}${Vf[Wf.PRERELEASELOOSE]}?${Vf[Wf.BUILD]}?`);Nh("LOOSE",`^${Vf[Wf.LOOSEPLAIN]}$`);Nh("GTLT","((?:<|>)?=?)");Nh("XRANGEIDENTIFIERLOOSE",`${Vf[Wf.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Nh("XRANGEIDENTIFIER",`${Vf[Wf.NUMERICIDENTIFIER]}|x|X|\\*`);Nh("XRANGEPLAIN",`[v=\\s]*(${Vf[Wf.XRANGEIDENTIFIER]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIER]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIER]})(?:${Vf[Wf.PRERELEASE]})?${Vf[Wf.BUILD]}?)?)?`);Nh("XRANGEPLAINLOOSE",`[v=\\s]*(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vf[Wf.XRANGEIDENTIFIERLOOSE]})(?:${Vf[Wf.PRERELEASELOOSE]})?${Vf[Wf.BUILD]}?)?)?`);Nh("XRANGE",`^${Vf[Wf.GTLT]}\\s*${Vf[Wf.XRANGEPLAIN]}$`);Nh("XRANGELOOSE",`^${Vf[Wf.GTLT]}\\s*${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eRt}})(?:\\.(\\d{1,${eRt}}))?(?:\\.(\\d{1,${eRt}}))?`);Nh("COERCE",`${Vf[Wf.COERCEPLAIN]}(?:$|[^\\d])`);Nh("COERCEFULL",Vf[Wf.COERCEPLAIN]+`(?:${Vf[Wf.PRERELEASE]})?(?:${Vf[Wf.BUILD]})?(?:$|[^\\d])`);Nh("COERCERTL",Vf[Wf.COERCE],!0);Nh("COERCERTLFULL",Vf[Wf.COERCEFULL],!0);Nh("LONETILDE","(?:~>?)");Nh("TILDETRIM",`(\\s*)${Vf[Wf.LONETILDE]}\\s+`,!0);FW.tildeTrimReplace="$1~";Nh("TILDE",`^${Vf[Wf.LONETILDE]}${Vf[Wf.XRANGEPLAIN]}$`);Nh("TILDELOOSE",`^${Vf[Wf.LONETILDE]}${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("LONECARET","(?:\\^)");Nh("CARETTRIM",`(\\s*)${Vf[Wf.LONECARET]}\\s+`,!0);FW.caretTrimReplace="$1^";Nh("CARET",`^${Vf[Wf.LONECARET]}${Vf[Wf.XRANGEPLAIN]}$`);Nh("CARETLOOSE",`^${Vf[Wf.LONECARET]}${Vf[Wf.XRANGEPLAINLOOSE]}$`);Nh("COMPARATORLOOSE",`^${Vf[Wf.GTLT]}\\s*(${Vf[Wf.LOOSEPLAIN]})$|^$`);Nh("COMPARATOR",`^${Vf[Wf.GTLT]}\\s*(${Vf[Wf.FULLPLAIN]})$|^$`);Nh("COMPARATORTRIM",`(\\s*)${Vf[Wf.GTLT]}\\s*(${Vf[Wf.LOOSEPLAIN]}|${Vf[Wf.XRANGEPLAIN]})`,!0);FW.comparatorTrimReplace="$1$2$3";Nh("HYPHENRANGE",`^\\s*(${Vf[Wf.XRANGEPLAIN]})\\s+-\\s+(${Vf[Wf.XRANGEPLAIN]})\\s*$`);Nh("HYPHENRANGELOOSE",`^\\s*(${Vf[Wf.XRANGEPLAINLOOSE]})\\s+-\\s+(${Vf[Wf.XRANGEPLAINLOOSE]})\\s*$`);Nh("STAR","(<|>)?=?\\s*\\*");Nh("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Nh("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var rze=ae((TLa,bQr)=>{var vZi=Object.freeze({loose:!0}),DZi=Object.freeze({}),bZi=e=>e?typeof e!="object"?vZi:e:DZi;bQr.exports=bZi});var rRt=ae((SLa,xQr)=>{var wQr=/^[0-9]+$/,BQr=(e,t)=>{let r=wQr.test(e),s=wQr.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:eBQr(t,e);xQr.exports={compareIdentifiers:BQr,rcompareIdentifiers:wZi}});var rR=ae((vLa,PQr)=>{var nze=mRe(),{MAX_LENGTH:NQr,MAX_SAFE_INTEGER:ize}=hRe(),{safeRe:RQr,t:kQr}=qge(),BZi=rze(),{compareIdentifiers:Jge}=rRt(),nRt=class e{constructor(t,r){if(r=BZi(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>NQr)throw new TypeError(`version is longer than ${NQr} characters`);nze("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=t.trim().match(r.loose?RQr[kQr.LOOSE]:RQr[kQr.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>ize||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ize||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ize||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let o=+c;if(o>=0&&o=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(r){let o=[r,c];s===!1&&(o=[r]),Jge(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};PQr.exports=nRt});var oce=ae((DLa,FQr)=>{var OQr=rR(),xZi=(e,t,r=!1)=>{if(e instanceof OQr)return e;try{return new OQr(e,t)}catch(s){if(!r)return null;throw s}};FQr.exports=xZi});var iRt=ae((bLa,LQr)=>{var NZi=oce(),RZi=(e,t)=>{let r=NZi(e,t);return r?r.version:null};LQr.exports=RZi});var sRt=ae((wLa,QQr)=>{var kZi=oce(),PZi=(e,t)=>{let r=kZi(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};QQr.exports=PZi});var GQr=ae((BLa,UQr)=>{var MQr=rR(),OZi=(e,t,r,s,c)=>{typeof r=="string"&&(c=s,s=r,r=void 0);try{return new MQr(e instanceof MQr?e.version:e,r).inc(t,s,c).version}catch{return null}};UQr.exports=OZi});var qQr=ae((xLa,HQr)=>{var jQr=oce(),FZi=(e,t)=>{let r=jQr(e,null,!0),s=jQr(t,null,!0),c=r.compare(s);if(c===0)return null;let o=c>0,f=o?r:s,_=o?s:r,A=!!f.prerelease.length;if(!!_.prerelease.length&&!A)return!_.patch&&!_.minor?"major":f.patch?"patch":f.minor?"minor":"major";let I=A?"pre":"";return r.major!==s.major?I+"major":r.minor!==s.minor?I+"minor":r.patch!==s.patch?I+"patch":"prerelease"};HQr.exports=FZi});var VQr=ae((NLa,JQr)=>{var LZi=rR(),QZi=(e,t)=>new LZi(e,t).major;JQr.exports=QZi});var YQr=ae((RLa,WQr)=>{var MZi=rR(),UZi=(e,t)=>new MZi(e,t).minor;WQr.exports=UZi});var KQr=ae((kLa,zQr)=>{var GZi=rR(),jZi=(e,t)=>new GZi(e,t).patch;zQr.exports=jZi});var ZQr=ae((PLa,XQr)=>{var HZi=oce(),qZi=(e,t)=>{let r=HZi(e,t);return r&&r.prerelease.length?r.prerelease:null};XQr.exports=qZi});var PM=ae((OLa,e3r)=>{var $Qr=rR(),JZi=(e,t,r)=>new $Qr(e,r).compare(new $Qr(t,r));e3r.exports=JZi});var r3r=ae((FLa,t3r)=>{var VZi=PM(),WZi=(e,t,r)=>VZi(t,e,r);t3r.exports=WZi});var i3r=ae((LLa,n3r)=>{var YZi=PM(),zZi=(e,t)=>YZi(e,t,!0);n3r.exports=zZi});var sze=ae((QLa,o3r)=>{var s3r=rR(),KZi=(e,t,r)=>{let s=new s3r(e,r),c=new s3r(t,r);return s.compare(c)||s.compareBuild(c)};o3r.exports=KZi});var c3r=ae((MLa,a3r)=>{var XZi=sze(),ZZi=(e,t)=>e.sort((r,s)=>XZi(r,s,t));a3r.exports=ZZi});var u3r=ae((ULa,l3r)=>{var $Zi=sze(),e$i=(e,t)=>e.sort((r,s)=>$Zi(s,r,t));l3r.exports=e$i});var gRe=ae((GLa,f3r)=>{var t$i=PM(),r$i=(e,t,r)=>t$i(e,t,r)>0;f3r.exports=r$i});var oze=ae((jLa,p3r)=>{var n$i=PM(),i$i=(e,t,r)=>n$i(e,t,r)<0;p3r.exports=i$i});var oRt=ae((HLa,d3r)=>{var s$i=PM(),o$i=(e,t,r)=>s$i(e,t,r)===0;d3r.exports=o$i});var aRt=ae((qLa,_3r)=>{var a$i=PM(),c$i=(e,t,r)=>a$i(e,t,r)!==0;_3r.exports=c$i});var aze=ae((JLa,A3r)=>{var l$i=PM(),u$i=(e,t,r)=>l$i(e,t,r)>=0;A3r.exports=u$i});var cze=ae((VLa,h3r)=>{var f$i=PM(),p$i=(e,t,r)=>f$i(e,t,r)<=0;h3r.exports=p$i});var cRt=ae((WLa,m3r)=>{var d$i=oRt(),_$i=aRt(),A$i=gRe(),h$i=aze(),m$i=oze(),g$i=cze(),E$i=(e,t,r,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return d$i(e,r,s);case"!=":return _$i(e,r,s);case">":return A$i(e,r,s);case">=":return h$i(e,r,s);case"<":return m$i(e,r,s);case"<=":return g$i(e,r,s);default:throw new TypeError(`Invalid operator: ${t}`)}};m3r.exports=E$i});var E3r=ae((YLa,g3r)=>{var y$i=rR(),C$i=oce(),{safeRe:lze,t:uze}=qge(),I$i=(e,t)=>{if(e instanceof y$i)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?lze[uze.COERCEFULL]:lze[uze.COERCE]);else{let A=t.includePrerelease?lze[uze.COERCERTLFULL]:lze[uze.COERCERTL],y;for(;(y=A.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||y.index+y[0].length!==r.index+r[0].length)&&(r=y),A.lastIndex=y.index+y[1].length+y[2].length;A.lastIndex=-1}if(r===null)return null;let s=r[2],c=r[3]||"0",o=r[4]||"0",f=t.includePrerelease&&r[5]?`-${r[5]}`:"",_=t.includePrerelease&&r[6]?`+${r[6]}`:"";return C$i(`${s}.${c}.${o}${f}${_}`,t)};g3r.exports=I$i});var C3r=ae((zLa,y3r)=>{var lRt=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(t,r)}return this}};y3r.exports=lRt});var OM=ae((KLa,v3r)=>{var T$i=/\s+/g,uRt=class e{constructor(t,r){if(r=v$i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof fRt)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(T$i," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(c=>!T3r(c[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&R$i(c[0])){this.set=[c];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t0&&(this.formatted+="||");let r=this.set[t];for(let s=0;s0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let s=((this.options.includePrerelease&&x$i)|(this.options.loose&&N$i))+":"+t,c=I3r.get(s);if(c)return c;let o=this.options.loose,f=o?hF[lP.HYPHENRANGELOOSE]:hF[lP.HYPHENRANGE];t=t.replace(f,j$i(this.options.includePrerelease)),CI("hyphen replace",t),t=t.replace(hF[lP.COMPARATORTRIM],b$i),CI("comparator trim",t),t=t.replace(hF[lP.TILDETRIM],w$i),CI("tilde trim",t),t=t.replace(hF[lP.CARETTRIM],B$i),CI("caret trim",t);let _=t.split(" ").map(D=>k$i(D,this.options)).join(" ").split(/\s+/).map(D=>G$i(D,this.options));o&&(_=_.filter(D=>(CI("loose invalid filter",D,this.options),!!D.match(hF[lP.COMPARATORLOOSE])))),CI("range list",_);let A=new Map,y=_.map(D=>new fRt(D,this.options));for(let D of y){if(T3r(D))return[D];A.set(D.value,D)}A.size>1&&A.has("")&&A.delete("");let I=[...A.values()];return I3r.set(s,I),I}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>S3r(s,r)&&t.set.some(c=>S3r(c,r)&&s.every(o=>c.every(f=>o.intersects(f,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new D$i(t,this.options)}catch{return!1}for(let r=0;re.value==="<0.0.0-0",R$i=e=>e.value==="",S3r=(e,t)=>{let r=!0,s=e.slice(),c=s.pop();for(;r&&s.length;)r=s.every(o=>c.intersects(o,t)),c=s.pop();return r},k$i=(e,t)=>(CI("comp",e,t),e=F$i(e,t),CI("caret",e),e=P$i(e,t),CI("tildes",e),e=Q$i(e,t),CI("xrange",e),e=U$i(e,t),CI("stars",e),e),uP=e=>!e||e.toLowerCase()==="x"||e==="*",P$i=(e,t)=>e.trim().split(/\s+/).map(r=>O$i(r,t)).join(" "),O$i=(e,t)=>{let r=t.loose?hF[lP.TILDELOOSE]:hF[lP.TILDE];return e.replace(r,(s,c,o,f,_)=>{CI("tilde",e,s,c,o,f,_);let A;return uP(c)?A="":uP(o)?A=`>=${c}.0.0 <${+c+1}.0.0-0`:uP(f)?A=`>=${c}.${o}.0 <${c}.${+o+1}.0-0`:_?(CI("replaceTilde pr",_),A=`>=${c}.${o}.${f}-${_} <${c}.${+o+1}.0-0`):A=`>=${c}.${o}.${f} <${c}.${+o+1}.0-0`,CI("tilde return",A),A})},F$i=(e,t)=>e.trim().split(/\s+/).map(r=>L$i(r,t)).join(" "),L$i=(e,t)=>{CI("caret",e,t);let r=t.loose?hF[lP.CARETLOOSE]:hF[lP.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(c,o,f,_,A)=>{CI("caret",e,c,o,f,_,A);let y;return uP(o)?y="":uP(f)?y=`>=${o}.0.0${s} <${+o+1}.0.0-0`:uP(_)?o==="0"?y=`>=${o}.${f}.0${s} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.0${s} <${+o+1}.0.0-0`:A?(CI("replaceCaret pr",A),o==="0"?f==="0"?y=`>=${o}.${f}.${_}-${A} <${o}.${f}.${+_+1}-0`:y=`>=${o}.${f}.${_}-${A} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.${_}-${A} <${+o+1}.0.0-0`):(CI("no pr"),o==="0"?f==="0"?y=`>=${o}.${f}.${_}${s} <${o}.${f}.${+_+1}-0`:y=`>=${o}.${f}.${_}${s} <${o}.${+f+1}.0-0`:y=`>=${o}.${f}.${_} <${+o+1}.0.0-0`),CI("caret return",y),y})},Q$i=(e,t)=>(CI("replaceXRanges",e,t),e.split(/\s+/).map(r=>M$i(r,t)).join(" ")),M$i=(e,t)=>{e=e.trim();let r=t.loose?hF[lP.XRANGELOOSE]:hF[lP.XRANGE];return e.replace(r,(s,c,o,f,_,A)=>{CI("xRange",e,s,c,o,f,_,A);let y=uP(o),I=y||uP(f),D=I||uP(_),b=D;return c==="="&&b&&(c=""),A=t.includePrerelease?"-0":"",y?c===">"||c==="<"?s="<0.0.0-0":s="*":c&&b?(I&&(f=0),_=0,c===">"?(c=">=",I?(o=+o+1,f=0,_=0):(f=+f+1,_=0)):c==="<="&&(c="<",I?o=+o+1:f=+f+1),c==="<"&&(A="-0"),s=`${c+o}.${f}.${_}${A}`):I?s=`>=${o}.0.0${A} <${+o+1}.0.0-0`:D&&(s=`>=${o}.${f}.0${A} <${o}.${+f+1}.0-0`),CI("xRange return",s),s})},U$i=(e,t)=>(CI("replaceStars",e,t),e.trim().replace(hF[lP.STAR],"")),G$i=(e,t)=>(CI("replaceGTE0",e,t),e.trim().replace(hF[t.includePrerelease?lP.GTE0PRE:lP.GTE0],"")),j$i=e=>(t,r,s,c,o,f,_,A,y,I,D,b)=>(uP(s)?r="":uP(c)?r=`>=${s}.0.0${e?"-0":""}`:uP(o)?r=`>=${s}.${c}.0${e?"-0":""}`:f?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,uP(y)?A="":uP(I)?A=`<${+y+1}.0.0-0`:uP(D)?A=`<${y}.${+I+1}.0-0`:b?A=`<=${y}.${I}.${D}-${b}`:e?A=`<${y}.${I}.${+D+1}-0`:A=`<=${A}`,`${r} ${A}`.trim()),H$i=(e,t,r)=>{for(let s=0;s0){let c=e[s].semver;if(c.major===t.major&&c.minor===t.minor&&c.patch===t.patch)return!0}return!1}return!0}});var ERe=ae((XLa,N3r)=>{var yRe=Symbol("SemVer ANY"),_Rt=class e{static get ANY(){return yRe}constructor(t,r){if(r=D3r(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),dRt("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===yRe?this.value="":this.value=this.operator+this.semver.version,dRt("comp",this)}parse(t){let r=this.options.loose?b3r[w3r.COMPARATORLOOSE]:b3r[w3r.COMPARATOR],s=t.match(r);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new B3r(s[2],this.options.loose):this.semver=yRe}toString(){return this.value}test(t){if(dRt("Comparator.test",t,this.options.loose),this.semver===yRe||t===yRe)return!0;if(typeof t=="string")try{t=new B3r(t,this.options)}catch{return!1}return pRt(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new x3r(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new x3r(this.value,r).test(t.semver):(r=D3r(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||pRt(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||pRt(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};N3r.exports=_Rt;var D3r=rze(),{safeRe:b3r,t:w3r}=qge(),pRt=cRt(),dRt=mRe(),B3r=rR(),x3r=OM()});var CRe=ae((ZLa,R3r)=>{var q$i=OM(),J$i=(e,t,r)=>{try{t=new q$i(t,r)}catch{return!1}return t.test(e)};R3r.exports=J$i});var P3r=ae(($La,k3r)=>{var V$i=OM(),W$i=(e,t)=>new V$i(e,t).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));k3r.exports=W$i});var F3r=ae((eQa,O3r)=>{var Y$i=rR(),z$i=OM(),K$i=(e,t,r)=>{let s=null,c=null,o=null;try{o=new z$i(t,r)}catch{return null}return e.forEach(f=>{o.test(f)&&(!s||c.compare(f)===-1)&&(s=f,c=new Y$i(s,r))}),s};O3r.exports=K$i});var Q3r=ae((tQa,L3r)=>{var X$i=rR(),Z$i=OM(),$$i=(e,t,r)=>{let s=null,c=null,o=null;try{o=new Z$i(t,r)}catch{return null}return e.forEach(f=>{o.test(f)&&(!s||c.compare(f)===1)&&(s=f,c=new X$i(s,r))}),s};L3r.exports=$$i});var G3r=ae((rQa,U3r)=>{var ARt=rR(),ees=OM(),M3r=gRe(),tes=(e,t)=>{e=new ees(e,t);let r=new ARt("0.0.0");if(e.test(r)||(r=new ARt("0.0.0-0"),e.test(r)))return r;r=null;for(let s=0;s{let _=new ARt(f.semver.version);switch(f.operator){case">":_.prerelease.length===0?_.patch++:_.prerelease.push(0),_.raw=_.format();case"":case">=":(!o||M3r(_,o))&&(o=_);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),o&&(!r||M3r(r,o))&&(r=o)}return r&&e.test(r)?r:null};U3r.exports=tes});var H3r=ae((nQa,j3r)=>{var res=OM(),nes=(e,t)=>{try{return new res(e,t).range||"*"}catch{return null}};j3r.exports=nes});var fze=ae((iQa,W3r)=>{var ies=rR(),V3r=ERe(),{ANY:ses}=V3r,oes=OM(),aes=CRe(),q3r=gRe(),J3r=oze(),ces=cze(),les=aze(),ues=(e,t,r,s)=>{e=new ies(e,s),t=new oes(t,s);let c,o,f,_,A;switch(r){case">":c=q3r,o=ces,f=J3r,_=">",A=">=";break;case"<":c=J3r,o=les,f=q3r,_="<",A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(aes(e,t,s))return!1;for(let y=0;y{L.semver===ses&&(L=new V3r(">=0.0.0")),D=D||L,b=b||L,c(L.semver,D.semver,s)?D=L:f(L.semver,b.semver,s)&&(b=L)}),D.operator===_||D.operator===A||(!b.operator||b.operator===_)&&o(e,b.semver))return!1;if(b.operator===A&&f(e,b.semver))return!1}return!0};W3r.exports=ues});var z3r=ae((sQa,Y3r)=>{var fes=fze(),pes=(e,t,r)=>fes(e,t,">",r);Y3r.exports=pes});var X3r=ae((oQa,K3r)=>{var des=fze(),_es=(e,t,r)=>des(e,t,"<",r);K3r.exports=_es});var e4r=ae((aQa,$3r)=>{var Z3r=OM(),Aes=(e,t,r)=>(e=new Z3r(e,r),t=new Z3r(t,r),e.intersects(t,r));$3r.exports=Aes});var r4r=ae((cQa,t4r)=>{var hes=CRe(),mes=PM();t4r.exports=(e,t,r)=>{let s=[],c=null,o=null,f=e.sort((I,D)=>mes(I,D,r));for(let I of f)hes(I,t,r)?(o=I,c||(c=I)):(o&&s.push([c,o]),o=null,c=null);c&&s.push([c,null]);let _=[];for(let[I,D]of s)I===D?_.push(I):!D&&I===f[0]?_.push("*"):D?I===f[0]?_.push(`<=${D}`):_.push(`${I} - ${D}`):_.push(`>=${I}`);let A=_.join(" || "),y=typeof t.raw=="string"?t.raw:String(t);return A.length{var n4r=OM(),mRt=ERe(),{ANY:hRt}=mRt,IRe=CRe(),gRt=PM(),ges=(e,t,r={})=>{if(e===t)return!0;e=new n4r(e,r),t=new n4r(t,r);let s=!1;e:for(let c of e.set){for(let o of t.set){let f=yes(c,o,r);if(s=s||f!==null,f)continue e}if(s)return!1}return!0},Ees=[new mRt(">=0.0.0-0")],i4r=[new mRt(">=0.0.0")],yes=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===hRt){if(t.length===1&&t[0].semver===hRt)return!0;r.includePrerelease?e=Ees:e=i4r}if(t.length===1&&t[0].semver===hRt){if(r.includePrerelease)return!0;t=i4r}let s=new Set,c,o;for(let L of e)L.operator===">"||L.operator===">="?c=s4r(c,L,r):L.operator==="<"||L.operator==="<="?o=o4r(o,L,r):s.add(L.semver);if(s.size>1)return null;let f;if(c&&o){if(f=gRt(c.semver,o.semver,r),f>0)return null;if(f===0&&(c.operator!==">="||o.operator!=="<="))return null}for(let L of s){if(c&&!IRe(L,String(c),r)||o&&!IRe(L,String(o),r))return null;for(let x of t)if(!IRe(L,String(x),r))return!1;return!0}let _,A,y,I,D=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,b=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;D&&D.prerelease.length===1&&o.operator==="<"&&D.prerelease[0]===0&&(D=!1);for(let L of t){if(I=I||L.operator===">"||L.operator===">=",y=y||L.operator==="<"||L.operator==="<=",c){if(b&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===b.major&&L.semver.minor===b.minor&&L.semver.patch===b.patch&&(b=!1),L.operator===">"||L.operator===">="){if(_=s4r(c,L,r),_===L&&_!==c)return!1}else if(c.operator===">="&&!IRe(c.semver,String(L),r))return!1}if(o){if(D&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===D.major&&L.semver.minor===D.minor&&L.semver.patch===D.patch&&(D=!1),L.operator==="<"||L.operator==="<="){if(A=o4r(o,L,r),A===L&&A!==o)return!1}else if(o.operator==="<="&&!IRe(o.semver,String(L),r))return!1}if(!L.operator&&(o||c)&&f!==0)return!1}return!(c&&y&&!o&&f!==0||o&&I&&!c&&f!==0||b||D)},s4r=(e,t,r)=>{if(!e)return t;let s=gRt(e.semver,t.semver,r);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},o4r=(e,t,r)=>{if(!e)return t;let s=gRt(e.semver,t.semver,r);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};a4r.exports=ges});var W0=ae((uQa,f4r)=>{var ERt=qge(),l4r=hRe(),Ces=rR(),u4r=rRt(),Ies=oce(),Tes=iRt(),Ses=sRt(),ves=GQr(),Des=qQr(),bes=VQr(),wes=YQr(),Bes=KQr(),xes=ZQr(),Nes=PM(),Res=r3r(),kes=i3r(),Pes=sze(),Oes=c3r(),Fes=u3r(),Les=gRe(),Qes=oze(),Mes=oRt(),Ues=aRt(),Ges=aze(),jes=cze(),Hes=cRt(),qes=E3r(),Jes=ERe(),Ves=OM(),Wes=CRe(),Yes=P3r(),zes=F3r(),Kes=Q3r(),Xes=G3r(),Zes=H3r(),$es=fze(),ets=z3r(),tts=X3r(),rts=e4r(),nts=r4r(),its=c4r();f4r.exports={parse:Ies,valid:Tes,clean:Ses,inc:ves,diff:Des,major:bes,minor:wes,patch:Bes,prerelease:xes,compare:Nes,rcompare:Res,compareLoose:kes,compareBuild:Pes,sort:Oes,rsort:Fes,gt:Les,lt:Qes,eq:Mes,neq:Ues,gte:Ges,lte:jes,cmp:Hes,coerce:qes,Comparator:Jes,Range:Ves,satisfies:Wes,toComparators:Yes,maxSatisfying:zes,minSatisfying:Kes,minVersion:Xes,validRange:Zes,outside:$es,gtr:ets,ltr:tts,intersects:rts,simplifyRange:nts,subset:its,SemVer:Ces,re:ERt.re,src:ERt.src,tokens:ERt.t,SEMVER_SPEC_VERSION:l4r.SEMVER_SPEC_VERSION,RELEASE_TYPES:l4r.RELEASE_TYPES,compareIdentifiers:u4r.compareIdentifiers,rcompareIdentifiers:u4r.rcompareIdentifiers}});var d4r=ae((fQa,p4r)=>{"use strict";function sts(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function ace(e,t,r,s){this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ace)}sts(ace,Error);ace.buildMessage=function(e,t){var r={literal:function(y){return'"'+c(y.text)+'"'},class:function(y){var I="",D;for(D=0;D0){for(D=1,b=1;D{switch(vi[1]){case"|":return la|vi[3];case"&":return la&vi[3];case"^":return la^vi[3]}},zs)},b="!",L=yr("!",!1),x=function(zs){return!zs},J="(",Y=yr("(",!1),ne=")",Ae=yr(")",!1),le=function(zs){return zs},pe=/^[^ \t\n\r()!|&\^]/,ge=ur([" "," ",`
`,"\r","(",")","!","|","&","^"],!0,!1),me=function(zs){return t.queryPattern.test(zs)},ye=function(zs){return t.checkFn(zs)},Se=br("whitespace"),Le=/^[ \t\n\r]/,rt=ur([" "," ",`
-`,"\r"],!1,!1),P=0,pt=0,nt=[{line:1,column:1}],ht=0,ot=[],Et=0,Vt;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function Er(){return e.substring(pt,P)}function pn(){return An(pt,P)}function $t(zs,or){throw or=or!==void 0?or:An(pt,P),hi([br(zs)],e.substring(pt,P),or)}function xr(zs,or){throw or=or!==void 0?or:An(pt,P),ui(zs,or)}function yr(zs,or){return{type:"literal",text:zs,ignoreCase:or}}function ur(zs,or,la){return{type:"class",parts:zs,inverted:or,ignoreCase:la}}function jr(){return{type:"any"}}function Vr(){return{type:"end"}}function br(zs){return{type:"other",description:zs}}function Mn(zs){var or=nt[zs],la;if(or)return or;for(la=zs-1;!nt[la];)la--;for(or=nt[la],or={line:or.line,column:or.column};laht&&(ht=P,ot=[]),ot.push(zs))}function ui(zs,or){return new ace(zs,null,null,or)}function hi(zs,or,la){return new ace(ace.buildMessage(zs,or),zs,or,la)}function we(){var zs,or,la,vi,Uu,Gu,Hp,ap;if(zs=P,or=os(),or!==r){for(la=[],vi=P,Uu=Va(),Uu!==r?(e.charCodeAt(P)===124?(Gu=o,P++):(Gu=r,Et===0&&fr(f)),Gu===r&&(e.charCodeAt(P)===38?(Gu=_,P++):(Gu=r,Et===0&&fr(A)),Gu===r&&(e.charCodeAt(P)===94?(Gu=y,P++):(Gu=r,Et===0&&fr(I)))),Gu!==r?(Hp=Va(),Hp!==r?(ap=os(),ap!==r?(Uu=[Uu,Gu,Hp,ap],vi=Uu):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r);vi!==r;)la.push(vi),vi=P,Uu=Va(),Uu!==r?(e.charCodeAt(P)===124?(Gu=o,P++):(Gu=r,Et===0&&fr(f)),Gu===r&&(e.charCodeAt(P)===38?(Gu=_,P++):(Gu=r,Et===0&&fr(A)),Gu===r&&(e.charCodeAt(P)===94?(Gu=y,P++):(Gu=r,Et===0&&fr(I)))),Gu!==r?(Hp=Va(),Hp!==r?(ap=os(),ap!==r?(Uu=[Uu,Gu,Hp,ap],vi=Uu):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r);la!==r?(pt=zs,or=D(or,la),zs=or):(P=zs,zs=r)}else P=zs,zs=r;return zs}function os(){var zs,or,la,vi,Uu,Gu;return zs=P,e.charCodeAt(P)===33?(or=b,P++):(or=r,Et===0&&fr(L)),or!==r?(la=os(),la!==r?(pt=zs,or=x(la),zs=or):(P=zs,zs=r)):(P=zs,zs=r),zs===r&&(zs=P,e.charCodeAt(P)===40?(or=J,P++):(or=r,Et===0&&fr(Y)),or!==r?(la=Va(),la!==r?(vi=we(),vi!==r?(Uu=Va(),Uu!==r?(e.charCodeAt(P)===41?(Gu=ne,P++):(Gu=r,Et===0&&fr(Ae)),Gu!==r?(pt=zs,or=le(vi),zs=or):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r),zs===r&&(zs=Hc())),zs}function Hc(){var zs,or,la,vi,Uu;if(zs=P,or=Va(),or!==r){if(la=P,vi=[],pe.test(e.charAt(P))?(Uu=e.charAt(P),P++):(Uu=r,Et===0&&fr(ge)),Uu!==r)for(;Uu!==r;)vi.push(Uu),pe.test(e.charAt(P))?(Uu=e.charAt(P),P++):(Uu=r,Et===0&&fr(ge));else vi=r;vi!==r?la=e.substring(la,P):la=vi,la!==r?(pt=P,vi=me(la),vi?vi=void 0:vi=r,vi!==r?(pt=zs,or=ye(la),zs=or):(P=zs,zs=r)):(P=zs,zs=r)}else P=zs,zs=r;return zs}function Va(){var zs,or;for(Et++,zs=[],Le.test(e.charAt(P))?(or=e.charAt(P),P++):(or=r,Et===0&&fr(rt));or!==r;)zs.push(or),Le.test(e.charAt(P))?(or=e.charAt(P),P++):(or=r,Et===0&&fr(rt));return Et--,zs===r&&(or=r,Et===0&&fr(Se)),zs}if(Vt=c(),Vt!==r&&P===e.length)return Vt;throw Vt!==r&&P{var{parse:lts}=A4r();pze.makeParser=(e=/[a-z]+/)=>(t,r)=>lts(t,{queryPattern:e,checkFn:r});pze.parse=pze.makeParser()});var g4r=ae((AQa,m4r)=>{"use strict";m4r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var IRt=ae((hQa,y4r)=>{var TRe=g4r(),E4r={};for(let e of Object.keys(TRe))E4r[TRe[e]]=e;var ed={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};y4r.exports=ed;for(let e of Object.keys(ed)){if(!("channels"in ed[e]))throw new Error("missing channels property: "+e);if(!("labels"in ed[e]))throw new Error("missing channel labels property: "+e);if(ed[e].labels.length!==ed[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=ed[e];delete ed[e].channels,delete ed[e].labels,Object.defineProperty(ed[e],"channels",{value:t}),Object.defineProperty(ed[e],"labels",{value:r})}ed.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.min(t,r,s),o=Math.max(t,r,s),f=o-c,_,A;o===c?_=0:t===o?_=(r-s)/f:r===o?_=2+(s-t)/f:s===o&&(_=4+(t-r)/f),_=Math.min(_*60,360),_<0&&(_+=360);let y=(c+o)/2;return o===c?A=0:y<=.5?A=f/(o+c):A=f/(2-o-c),[_,A*100,y*100]};ed.rgb.hsv=function(e){let t,r,s,c,o,f=e[0]/255,_=e[1]/255,A=e[2]/255,y=Math.max(f,_,A),I=y-Math.min(f,_,A),D=function(b){return(y-b)/6/I+1/2};return I===0?(c=0,o=0):(o=I/y,t=D(f),r=D(_),s=D(A),f===y?c=s-r:_===y?c=1/3+t-s:A===y&&(c=2/3+r-t),c<0?c+=1:c>1&&(c-=1)),[c*360,o*100,y*100]};ed.rgb.hwb=function(e){let t=e[0],r=e[1],s=e[2],c=ed.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,s));return s=1-1/255*Math.max(t,Math.max(r,s)),[c,o*100,s*100]};ed.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.min(1-t,1-r,1-s),o=(1-t-c)/(1-c)||0,f=(1-r-c)/(1-c)||0,_=(1-s-c)/(1-c)||0;return[o*100,f*100,_*100,c*100]};function uts(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ed.rgb.keyword=function(e){let t=E4r[e];if(t)return t;let r=1/0,s;for(let c of Object.keys(TRe)){let o=TRe[c],f=uts(e,o);f.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let c=t*.4124+r*.3576+s*.1805,o=t*.2126+r*.7152+s*.0722,f=t*.0193+r*.1192+s*.9505;return[c*100,o*100,f*100]};ed.rgb.lab=function(e){let t=ed.rgb.xyz(e),r=t[0],s=t[1],c=t[2];r/=95.047,s/=100,c/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let o=116*s-16,f=500*(r-s),_=200*(s-c);return[o,f,_]};ed.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100,c,o,f;if(r===0)return f=s*255,[f,f,f];s<.5?c=s*(1+r):c=s+r-s*r;let _=2*s-c,A=[0,0,0];for(let y=0;y<3;y++)o=t+1/3*-(y-1),o<0&&o++,o>1&&o--,6*o<1?f=_+(c-_)*6*o:2*o<1?f=c:3*o<2?f=_+(c-_)*(2/3-o)*6:f=_,A[y]=f*255;return A};ed.hsl.hsv=function(e){let t=e[0],r=e[1]/100,s=e[2]/100,c=r,o=Math.max(s,.01);s*=2,r*=s<=1?s:2-s,c*=o<=1?o:2-o;let f=(s+r)/2,_=s===0?2*c/(o+c):2*r/(s+r);return[t,_*100,f*100]};ed.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,s=e[2]/100,c=Math.floor(t)%6,o=t-Math.floor(t),f=255*s*(1-r),_=255*s*(1-r*o),A=255*s*(1-r*(1-o));switch(s*=255,c){case 0:return[s,A,f];case 1:return[_,s,f];case 2:return[f,s,A];case 3:return[f,_,s];case 4:return[A,f,s];case 5:return[s,f,_]}};ed.hsv.hsl=function(e){let t=e[0],r=e[1]/100,s=e[2]/100,c=Math.max(s,.01),o,f;f=(2-r)*s;let _=(2-r)*c;return o=r*c,o/=_<=1?_:2-_,o=o||0,f/=2,[t,o*100,f*100]};ed.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100,c=r+s,o;c>1&&(r/=c,s/=c);let f=Math.floor(6*t),_=1-s;o=6*t-f,f&1&&(o=1-o);let A=r+o*(_-r),y,I,D;switch(f){default:case 6:case 0:y=_,I=A,D=r;break;case 1:y=A,I=_,D=r;break;case 2:y=r,I=_,D=A;break;case 3:y=r,I=A,D=_;break;case 4:y=A,I=r,D=_;break;case 5:y=_,I=r,D=A;break}return[y*255,I*255,D*255]};ed.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,s=e[2]/100,c=e[3]/100,o=1-Math.min(1,t*(1-c)+c),f=1-Math.min(1,r*(1-c)+c),_=1-Math.min(1,s*(1-c)+c);return[o*255,f*255,_*255]};ed.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,s=e[2]/100,c,o,f;return c=t*3.2406+r*-1.5372+s*-.4986,o=t*-.9689+r*1.8758+s*.0415,f=t*.0557+r*-.204+s*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),f=Math.min(Math.max(0,f),1),[c*255,o*255,f*255]};ed.xyz.lab=function(e){let t=e[0],r=e[1],s=e[2];t/=95.047,r/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let c=116*r-16,o=500*(t-r),f=200*(r-s);return[c,o,f]};ed.lab.xyz=function(e){let t=e[0],r=e[1],s=e[2],c,o,f;o=(t+16)/116,c=r/500+o,f=o-s/200;let _=o**3,A=c**3,y=f**3;return o=_>.008856?_:(o-16/116)/7.787,c=A>.008856?A:(c-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,c*=95.047,o*=100,f*=108.883,[c,o,f]};ed.lab.lch=function(e){let t=e[0],r=e[1],s=e[2],c;c=Math.atan2(s,r)*360/2/Math.PI,c<0&&(c+=360);let f=Math.sqrt(r*r+s*s);return[t,f,c]};ed.lch.lab=function(e){let t=e[0],r=e[1],c=e[2]/360*2*Math.PI,o=r*Math.cos(c),f=r*Math.sin(c);return[t,o,f]};ed.rgb.ansi16=function(e,t=null){let[r,s,c]=e,o=t===null?ed.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let f=30+(Math.round(c/255)<<2|Math.round(s/255)<<1|Math.round(r/255));return o===2&&(f+=60),f};ed.hsv.ansi16=function(e){return ed.rgb.ansi16(ed.hsv.rgb(e),e[2])};ed.rgb.ansi256=function(e){let t=e[0],r=e[1],s=e[2];return t===r&&r===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5)};ed.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,s=(t&1)*r*255,c=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[s,c,o]};ed.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,s=Math.floor((t=e%36)/6)/5*255,c=t%6/5*255;return[r,s,c]};ed.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};ed.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(_=>_+_).join(""));let s=parseInt(r,16),c=s>>16&255,o=s>>8&255,f=s&255;return[c,o,f]};ed.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.max(Math.max(t,r),s),o=Math.min(Math.min(t,r),s),f=c-o,_,A;return f<1?_=o/(1-f):_=0,f<=0?A=0:c===t?A=(r-s)/f%6:c===r?A=2+(s-t)/f:A=4+(t-r)/f,A/=6,A%=1,[A*360,f*100,_*100]};ed.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,s=r<.5?2*t*r:2*t*(1-r),c=0;return s<1&&(c=(r-.5*s)/(1-s)),[e[0],s*100,c*100]};ed.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,s=t*r,c=0;return s<1&&(c=(r-s)/(1-s)),[e[0],s*100,c*100]};ed.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100;if(r===0)return[s*255,s*255,s*255];let c=[0,0,0],o=t%1*6,f=o%1,_=1-f,A=0;switch(Math.floor(o)){case 0:c[0]=1,c[1]=f,c[2]=0;break;case 1:c[0]=_,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=f;break;case 3:c[0]=0,c[1]=_,c[2]=1;break;case 4:c[0]=f,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=_}return A=(1-r)*s,[(r*c[0]+A)*255,(r*c[1]+A)*255,(r*c[2]+A)*255]};ed.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,s=t+r*(1-t),c=0;return s>0&&(c=t/s),[e[0],c*100,s*100]};ed.hcg.hsl=function(e){let t=e[1]/100,s=e[2]/100*(1-t)+.5*t,c=0;return s>0&&s<.5?c=t/(2*s):s>=.5&&s<1&&(c=t/(2*(1-s))),[e[0],c*100,s*100]};ed.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,s=t+r*(1-t);return[e[0],(s-t)*100,(1-s)*100]};ed.hwb.hcg=function(e){let t=e[1]/100,s=1-e[2]/100,c=s-t,o=0;return c<1&&(o=(s-c)/(1-c)),[e[0],c*100,o*100]};ed.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ed.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ed.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ed.gray.hsl=function(e){return[0,0,e[0]]};ed.gray.hsv=ed.gray.hsl;ed.gray.hwb=function(e){return[0,100,e[0]]};ed.gray.cmyk=function(e){return[0,0,0,e[0]]};ed.gray.lab=function(e){return[e[0],0,0]};ed.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s};ed.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var I4r=ae((mQa,C4r)=>{var dze=IRt();function fts(){let e={},t=Object.keys(dze);for(let r=t.length,s=0;s{var TRt=IRt(),Ats=I4r(),Vge={},hts=Object.keys(TRt);function mts(e){let t=function(...r){let s=r[0];return s==null?s:(s.length>1&&(r=s),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function gts(e){let t=function(...r){let s=r[0];if(s==null)return s;s.length>1&&(r=s);let c=e(r);if(typeof c=="object")for(let o=c.length,f=0;f{Vge[e]={},Object.defineProperty(Vge[e],"channels",{value:TRt[e].channels}),Object.defineProperty(Vge[e],"labels",{value:TRt[e].labels});let t=Ats(e);Object.keys(t).forEach(s=>{let c=t[s];Vge[e][s]=gts(c),Vge[e][s].raw=mts(c)})});T4r.exports=Vge});var SRe=ae((EQa,B4r)=>{"use strict";var v4r=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,D4r=(e,t)=>(...r)=>{let s=e(...r);return`\x1B[${38+t};5;${s}m`},b4r=(e,t)=>(...r)=>{let s=e(...r);return`\x1B[${38+t};2;${s[0]};${s[1]};${s[2]}m`},_ze=e=>e,w4r=(e,t,r)=>[e,t,r],Wge=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let s=r();return Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},SRt,Yge=(e,t,r,s)=>{SRt===void 0&&(SRt=S4r());let c=s?10:0,o={};for(let[f,_]of Object.entries(SRt)){let A=f==="ansi16"?"ansi":f;f===t?o[A]=e(r,c):typeof _=="object"&&(o[A]=e(_[t],c))}return o};function Ets(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,s]of Object.entries(t)){for(let[c,o]of Object.entries(s))t[c]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},s[c]=t[c],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:s,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Wge(t.color,"ansi",()=>Yge(v4r,"ansi16",_ze,!1)),Wge(t.color,"ansi256",()=>Yge(D4r,"ansi256",_ze,!1)),Wge(t.color,"ansi16m",()=>Yge(b4r,"rgb",w4r,!1)),Wge(t.bgColor,"ansi",()=>Yge(v4r,"ansi16",_ze,!0)),Wge(t.bgColor,"ansi256",()=>Yge(D4r,"ansi256",_ze,!0)),Wge(t.bgColor,"ansi16m",()=>Yge(b4r,"rgb",w4r,!0)),t}Object.defineProperty(B4r,"exports",{enumerable:!0,get:Ets})});var vRt=ae((yQa,x4r)=>{"use strict";x4r.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",s=t.indexOf(r+e),c=t.indexOf("--");return s!==-1&&(c===-1||s{"use strict";var yts=qt("os"),N4r=qt("tty"),FM=vRt(),{env:dB}=process,pee;FM("no-color")||FM("no-colors")||FM("color=false")||FM("color=never")?pee=0:(FM("color")||FM("colors")||FM("color=true")||FM("color=always"))&&(pee=1);"FORCE_COLOR"in dB&&(dB.FORCE_COLOR==="true"?pee=1:dB.FORCE_COLOR==="false"?pee=0:pee=dB.FORCE_COLOR.length===0?1:Math.min(parseInt(dB.FORCE_COLOR,10),3));function DRt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function bRt(e,t){if(pee===0)return 0;if(FM("color=16m")||FM("color=full")||FM("color=truecolor"))return 3;if(FM("color=256"))return 2;if(e&&!t&&pee===void 0)return 0;let r=pee||0;if(dB.TERM==="dumb")return r;if(process.platform==="win32"){let s=yts.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in dB)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in dB)||dB.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in dB)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dB.TEAMCITY_VERSION)?1:0;if(dB.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dB){let s=parseInt((dB.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dB.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dB.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dB.TERM)||"COLORTERM"in dB?1:r}function Cts(e){let t=bRt(e,e&&e.isTTY);return DRt(t)}R4r.exports={supportsColor:Cts,stdout:DRt(bRt(!0,N4r.isatty(1))),stderr:DRt(bRt(!0,N4r.isatty(2)))}});var P4r=ae((IQa,k4r)=>{"use strict";var Its=(e,t,r)=>{let s=e.indexOf(t);if(s===-1)return e;let c=t.length,o=0,f="";do f+=e.substr(o,s-o)+t+r,o=s+c,s=e.indexOf(t,o);while(s!==-1);return f+=e.substr(o),f},Tts=(e,t,r,s)=>{let c=0,o="";do{let f=e[s-1]==="\r";o+=e.substr(c,(f?s-1:s)-c)+t+(f?`\r
+`,"\r"],!1,!1),P=0,pt=0,nt=[{line:1,column:1}],ht=0,ot=[],Et=0,Vt;if("startRule"in t){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=s[t.startRule]}function Er(){return e.substring(pt,P)}function pn(){return An(pt,P)}function $t(zs,or){throw or=or!==void 0?or:An(pt,P),hi([br(zs)],e.substring(pt,P),or)}function xr(zs,or){throw or=or!==void 0?or:An(pt,P),ui(zs,or)}function yr(zs,or){return{type:"literal",text:zs,ignoreCase:or}}function ur(zs,or,la){return{type:"class",parts:zs,inverted:or,ignoreCase:la}}function jr(){return{type:"any"}}function Vr(){return{type:"end"}}function br(zs){return{type:"other",description:zs}}function Mn(zs){var or=nt[zs],la;if(or)return or;for(la=zs-1;!nt[la];)la--;for(or=nt[la],or={line:or.line,column:or.column};laht&&(ht=P,ot=[]),ot.push(zs))}function ui(zs,or){return new ace(zs,null,null,or)}function hi(zs,or,la){return new ace(ace.buildMessage(zs,or),zs,or,la)}function we(){var zs,or,la,vi,Uu,Gu,Hp,ap;if(zs=P,or=os(),or!==r){for(la=[],vi=P,Uu=Va(),Uu!==r?(e.charCodeAt(P)===124?(Gu=o,P++):(Gu=r,Et===0&&fr(f)),Gu===r&&(e.charCodeAt(P)===38?(Gu=_,P++):(Gu=r,Et===0&&fr(A)),Gu===r&&(e.charCodeAt(P)===94?(Gu=y,P++):(Gu=r,Et===0&&fr(I)))),Gu!==r?(Hp=Va(),Hp!==r?(ap=os(),ap!==r?(Uu=[Uu,Gu,Hp,ap],vi=Uu):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r);vi!==r;)la.push(vi),vi=P,Uu=Va(),Uu!==r?(e.charCodeAt(P)===124?(Gu=o,P++):(Gu=r,Et===0&&fr(f)),Gu===r&&(e.charCodeAt(P)===38?(Gu=_,P++):(Gu=r,Et===0&&fr(A)),Gu===r&&(e.charCodeAt(P)===94?(Gu=y,P++):(Gu=r,Et===0&&fr(I)))),Gu!==r?(Hp=Va(),Hp!==r?(ap=os(),ap!==r?(Uu=[Uu,Gu,Hp,ap],vi=Uu):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r)):(P=vi,vi=r);la!==r?(pt=zs,or=D(or,la),zs=or):(P=zs,zs=r)}else P=zs,zs=r;return zs}function os(){var zs,or,la,vi,Uu,Gu;return zs=P,e.charCodeAt(P)===33?(or=b,P++):(or=r,Et===0&&fr(L)),or!==r?(la=os(),la!==r?(pt=zs,or=x(la),zs=or):(P=zs,zs=r)):(P=zs,zs=r),zs===r&&(zs=P,e.charCodeAt(P)===40?(or=J,P++):(or=r,Et===0&&fr(Y)),or!==r?(la=Va(),la!==r?(vi=we(),vi!==r?(Uu=Va(),Uu!==r?(e.charCodeAt(P)===41?(Gu=ne,P++):(Gu=r,Et===0&&fr(Ae)),Gu!==r?(pt=zs,or=le(vi),zs=or):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r)):(P=zs,zs=r),zs===r&&(zs=Hc())),zs}function Hc(){var zs,or,la,vi,Uu;if(zs=P,or=Va(),or!==r){if(la=P,vi=[],pe.test(e.charAt(P))?(Uu=e.charAt(P),P++):(Uu=r,Et===0&&fr(ge)),Uu!==r)for(;Uu!==r;)vi.push(Uu),pe.test(e.charAt(P))?(Uu=e.charAt(P),P++):(Uu=r,Et===0&&fr(ge));else vi=r;vi!==r?la=e.substring(la,P):la=vi,la!==r?(pt=P,vi=me(la),vi?vi=void 0:vi=r,vi!==r?(pt=zs,or=ye(la),zs=or):(P=zs,zs=r)):(P=zs,zs=r)}else P=zs,zs=r;return zs}function Va(){var zs,or;for(Et++,zs=[],Le.test(e.charAt(P))?(or=e.charAt(P),P++):(or=r,Et===0&&fr(rt));or!==r;)zs.push(or),Le.test(e.charAt(P))?(or=e.charAt(P),P++):(or=r,Et===0&&fr(rt));return Et--,zs===r&&(or=r,Et===0&&fr(Se)),zs}if(Vt=c(),Vt!==r&&P===e.length)return Vt;throw Vt!==r&&P{var{parse:ats}=d4r();pze.makeParser=(e=/[a-z]+/)=>(t,r)=>ats(t,{queryPattern:e,checkFn:r});pze.parse=pze.makeParser()});var h4r=ae((dQa,A4r)=>{"use strict";A4r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var yRt=ae((_Qa,g4r)=>{var TRe=h4r(),m4r={};for(let e of Object.keys(TRe))m4r[TRe[e]]=e;var ed={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};g4r.exports=ed;for(let e of Object.keys(ed)){if(!("channels"in ed[e]))throw new Error("missing channels property: "+e);if(!("labels"in ed[e]))throw new Error("missing channel labels property: "+e);if(ed[e].labels.length!==ed[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=ed[e];delete ed[e].channels,delete ed[e].labels,Object.defineProperty(ed[e],"channels",{value:t}),Object.defineProperty(ed[e],"labels",{value:r})}ed.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.min(t,r,s),o=Math.max(t,r,s),f=o-c,_,A;o===c?_=0:t===o?_=(r-s)/f:r===o?_=2+(s-t)/f:s===o&&(_=4+(t-r)/f),_=Math.min(_*60,360),_<0&&(_+=360);let y=(c+o)/2;return o===c?A=0:y<=.5?A=f/(o+c):A=f/(2-o-c),[_,A*100,y*100]};ed.rgb.hsv=function(e){let t,r,s,c,o,f=e[0]/255,_=e[1]/255,A=e[2]/255,y=Math.max(f,_,A),I=y-Math.min(f,_,A),D=function(b){return(y-b)/6/I+1/2};return I===0?(c=0,o=0):(o=I/y,t=D(f),r=D(_),s=D(A),f===y?c=s-r:_===y?c=1/3+t-s:A===y&&(c=2/3+r-t),c<0?c+=1:c>1&&(c-=1)),[c*360,o*100,y*100]};ed.rgb.hwb=function(e){let t=e[0],r=e[1],s=e[2],c=ed.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,s));return s=1-1/255*Math.max(t,Math.max(r,s)),[c,o*100,s*100]};ed.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.min(1-t,1-r,1-s),o=(1-t-c)/(1-c)||0,f=(1-r-c)/(1-c)||0,_=(1-s-c)/(1-c)||0;return[o*100,f*100,_*100,c*100]};function cts(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ed.rgb.keyword=function(e){let t=m4r[e];if(t)return t;let r=1/0,s;for(let c of Object.keys(TRe)){let o=TRe[c],f=cts(e,o);f.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let c=t*.4124+r*.3576+s*.1805,o=t*.2126+r*.7152+s*.0722,f=t*.0193+r*.1192+s*.9505;return[c*100,o*100,f*100]};ed.rgb.lab=function(e){let t=ed.rgb.xyz(e),r=t[0],s=t[1],c=t[2];r/=95.047,s/=100,c/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let o=116*s-16,f=500*(r-s),_=200*(s-c);return[o,f,_]};ed.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100,c,o,f;if(r===0)return f=s*255,[f,f,f];s<.5?c=s*(1+r):c=s+r-s*r;let _=2*s-c,A=[0,0,0];for(let y=0;y<3;y++)o=t+1/3*-(y-1),o<0&&o++,o>1&&o--,6*o<1?f=_+(c-_)*6*o:2*o<1?f=c:3*o<2?f=_+(c-_)*(2/3-o)*6:f=_,A[y]=f*255;return A};ed.hsl.hsv=function(e){let t=e[0],r=e[1]/100,s=e[2]/100,c=r,o=Math.max(s,.01);s*=2,r*=s<=1?s:2-s,c*=o<=1?o:2-o;let f=(s+r)/2,_=s===0?2*c/(o+c):2*r/(s+r);return[t,_*100,f*100]};ed.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,s=e[2]/100,c=Math.floor(t)%6,o=t-Math.floor(t),f=255*s*(1-r),_=255*s*(1-r*o),A=255*s*(1-r*(1-o));switch(s*=255,c){case 0:return[s,A,f];case 1:return[_,s,f];case 2:return[f,s,A];case 3:return[f,_,s];case 4:return[A,f,s];case 5:return[s,f,_]}};ed.hsv.hsl=function(e){let t=e[0],r=e[1]/100,s=e[2]/100,c=Math.max(s,.01),o,f;f=(2-r)*s;let _=(2-r)*c;return o=r*c,o/=_<=1?_:2-_,o=o||0,f/=2,[t,o*100,f*100]};ed.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100,c=r+s,o;c>1&&(r/=c,s/=c);let f=Math.floor(6*t),_=1-s;o=6*t-f,f&1&&(o=1-o);let A=r+o*(_-r),y,I,D;switch(f){default:case 6:case 0:y=_,I=A,D=r;break;case 1:y=A,I=_,D=r;break;case 2:y=r,I=_,D=A;break;case 3:y=r,I=A,D=_;break;case 4:y=A,I=r,D=_;break;case 5:y=_,I=r,D=A;break}return[y*255,I*255,D*255]};ed.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,s=e[2]/100,c=e[3]/100,o=1-Math.min(1,t*(1-c)+c),f=1-Math.min(1,r*(1-c)+c),_=1-Math.min(1,s*(1-c)+c);return[o*255,f*255,_*255]};ed.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,s=e[2]/100,c,o,f;return c=t*3.2406+r*-1.5372+s*-.4986,o=t*-.9689+r*1.8758+s*.0415,f=t*.0557+r*-.204+s*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),f=Math.min(Math.max(0,f),1),[c*255,o*255,f*255]};ed.xyz.lab=function(e){let t=e[0],r=e[1],s=e[2];t/=95.047,r/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let c=116*r-16,o=500*(t-r),f=200*(r-s);return[c,o,f]};ed.lab.xyz=function(e){let t=e[0],r=e[1],s=e[2],c,o,f;o=(t+16)/116,c=r/500+o,f=o-s/200;let _=o**3,A=c**3,y=f**3;return o=_>.008856?_:(o-16/116)/7.787,c=A>.008856?A:(c-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,c*=95.047,o*=100,f*=108.883,[c,o,f]};ed.lab.lch=function(e){let t=e[0],r=e[1],s=e[2],c;c=Math.atan2(s,r)*360/2/Math.PI,c<0&&(c+=360);let f=Math.sqrt(r*r+s*s);return[t,f,c]};ed.lch.lab=function(e){let t=e[0],r=e[1],c=e[2]/360*2*Math.PI,o=r*Math.cos(c),f=r*Math.sin(c);return[t,o,f]};ed.rgb.ansi16=function(e,t=null){let[r,s,c]=e,o=t===null?ed.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let f=30+(Math.round(c/255)<<2|Math.round(s/255)<<1|Math.round(r/255));return o===2&&(f+=60),f};ed.hsv.ansi16=function(e){return ed.rgb.ansi16(ed.hsv.rgb(e),e[2])};ed.rgb.ansi256=function(e){let t=e[0],r=e[1],s=e[2];return t===r&&r===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5)};ed.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,s=(t&1)*r*255,c=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[s,c,o]};ed.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,s=Math.floor((t=e%36)/6)/5*255,c=t%6/5*255;return[r,s,c]};ed.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};ed.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(_=>_+_).join(""));let s=parseInt(r,16),c=s>>16&255,o=s>>8&255,f=s&255;return[c,o,f]};ed.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255,c=Math.max(Math.max(t,r),s),o=Math.min(Math.min(t,r),s),f=c-o,_,A;return f<1?_=o/(1-f):_=0,f<=0?A=0:c===t?A=(r-s)/f%6:c===r?A=2+(s-t)/f:A=4+(t-r)/f,A/=6,A%=1,[A*360,f*100,_*100]};ed.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,s=r<.5?2*t*r:2*t*(1-r),c=0;return s<1&&(c=(r-.5*s)/(1-s)),[e[0],s*100,c*100]};ed.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,s=t*r,c=0;return s<1&&(c=(r-s)/(1-s)),[e[0],s*100,c*100]};ed.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,s=e[2]/100;if(r===0)return[s*255,s*255,s*255];let c=[0,0,0],o=t%1*6,f=o%1,_=1-f,A=0;switch(Math.floor(o)){case 0:c[0]=1,c[1]=f,c[2]=0;break;case 1:c[0]=_,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=f;break;case 3:c[0]=0,c[1]=_,c[2]=1;break;case 4:c[0]=f,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=_}return A=(1-r)*s,[(r*c[0]+A)*255,(r*c[1]+A)*255,(r*c[2]+A)*255]};ed.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,s=t+r*(1-t),c=0;return s>0&&(c=t/s),[e[0],c*100,s*100]};ed.hcg.hsl=function(e){let t=e[1]/100,s=e[2]/100*(1-t)+.5*t,c=0;return s>0&&s<.5?c=t/(2*s):s>=.5&&s<1&&(c=t/(2*(1-s))),[e[0],c*100,s*100]};ed.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,s=t+r*(1-t);return[e[0],(s-t)*100,(1-s)*100]};ed.hwb.hcg=function(e){let t=e[1]/100,s=1-e[2]/100,c=s-t,o=0;return c<1&&(o=(s-c)/(1-c)),[e[0],c*100,o*100]};ed.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ed.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ed.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ed.gray.hsl=function(e){return[0,0,e[0]]};ed.gray.hsv=ed.gray.hsl;ed.gray.hwb=function(e){return[0,100,e[0]]};ed.gray.cmyk=function(e){return[0,0,0,e[0]]};ed.gray.lab=function(e){return[e[0],0,0]};ed.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s};ed.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var y4r=ae((AQa,E4r)=>{var dze=yRt();function lts(){let e={},t=Object.keys(dze);for(let r=t.length,s=0;s{var CRt=yRt(),dts=y4r(),Vge={},_ts=Object.keys(CRt);function Ats(e){let t=function(...r){let s=r[0];return s==null?s:(s.length>1&&(r=s),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function hts(e){let t=function(...r){let s=r[0];if(s==null)return s;s.length>1&&(r=s);let c=e(r);if(typeof c=="object")for(let o=c.length,f=0;f{Vge[e]={},Object.defineProperty(Vge[e],"channels",{value:CRt[e].channels}),Object.defineProperty(Vge[e],"labels",{value:CRt[e].labels});let t=dts(e);Object.keys(t).forEach(s=>{let c=t[s];Vge[e][s]=hts(c),Vge[e][s].raw=Ats(c)})});C4r.exports=Vge});var SRe=ae((mQa,b4r)=>{"use strict";var T4r=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,S4r=(e,t)=>(...r)=>{let s=e(...r);return`\x1B[${38+t};5;${s}m`},v4r=(e,t)=>(...r)=>{let s=e(...r);return`\x1B[${38+t};2;${s[0]};${s[1]};${s[2]}m`},_ze=e=>e,D4r=(e,t,r)=>[e,t,r],Wge=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let s=r();return Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},IRt,Yge=(e,t,r,s)=>{IRt===void 0&&(IRt=I4r());let c=s?10:0,o={};for(let[f,_]of Object.entries(IRt)){let A=f==="ansi16"?"ansi":f;f===t?o[A]=e(r,c):typeof _=="object"&&(o[A]=e(_[t],c))}return o};function mts(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,s]of Object.entries(t)){for(let[c,o]of Object.entries(s))t[c]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},s[c]=t[c],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:s,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Wge(t.color,"ansi",()=>Yge(T4r,"ansi16",_ze,!1)),Wge(t.color,"ansi256",()=>Yge(S4r,"ansi256",_ze,!1)),Wge(t.color,"ansi16m",()=>Yge(v4r,"rgb",D4r,!1)),Wge(t.bgColor,"ansi",()=>Yge(T4r,"ansi16",_ze,!0)),Wge(t.bgColor,"ansi256",()=>Yge(S4r,"ansi256",_ze,!0)),Wge(t.bgColor,"ansi16m",()=>Yge(v4r,"rgb",D4r,!0)),t}Object.defineProperty(b4r,"exports",{enumerable:!0,get:mts})});var TRt=ae((gQa,w4r)=>{"use strict";w4r.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",s=t.indexOf(r+e),c=t.indexOf("--");return s!==-1&&(c===-1||s{"use strict";var gts=qt("os"),B4r=qt("tty"),FM=TRt(),{env:dB}=process,pee;FM("no-color")||FM("no-colors")||FM("color=false")||FM("color=never")?pee=0:(FM("color")||FM("colors")||FM("color=true")||FM("color=always"))&&(pee=1);"FORCE_COLOR"in dB&&(dB.FORCE_COLOR==="true"?pee=1:dB.FORCE_COLOR==="false"?pee=0:pee=dB.FORCE_COLOR.length===0?1:Math.min(parseInt(dB.FORCE_COLOR,10),3));function SRt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vRt(e,t){if(pee===0)return 0;if(FM("color=16m")||FM("color=full")||FM("color=truecolor"))return 3;if(FM("color=256"))return 2;if(e&&!t&&pee===void 0)return 0;let r=pee||0;if(dB.TERM==="dumb")return r;if(process.platform==="win32"){let s=gts.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in dB)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in dB)||dB.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in dB)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dB.TEAMCITY_VERSION)?1:0;if(dB.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dB){let s=parseInt((dB.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dB.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dB.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dB.TERM)||"COLORTERM"in dB?1:r}function Ets(e){let t=vRt(e,e&&e.isTTY);return SRt(t)}x4r.exports={supportsColor:Ets,stdout:SRt(vRt(!0,B4r.isatty(1))),stderr:SRt(vRt(!0,B4r.isatty(2)))}});var R4r=ae((yQa,N4r)=>{"use strict";var yts=(e,t,r)=>{let s=e.indexOf(t);if(s===-1)return e;let c=t.length,o=0,f="";do f+=e.substr(o,s-o)+t+r,o=s+c,s=e.indexOf(t,o);while(s!==-1);return f+=e.substr(o),f},Cts=(e,t,r,s)=>{let c=0,o="";do{let f=e[s-1]==="\r";o+=e.substr(c,(f?s-1:s)-c)+t+(f?`\r
`:`
`)+r,c=s+1,s=e.indexOf(`
-`,c)}while(s!==-1);return o+=e.substr(c),o};k4r.exports={stringReplaceAll:Its,stringEncaseCRLFWithFirstIndex:Tts}});var M4r=ae((TQa,Q4r)=>{"use strict";var Sts=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,O4r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,vts=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Dts=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,bts=new Map([["n",`
-`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function L4r(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):bts.get(e)||e}function wts(e,t){let r=[],s=t.trim().split(/\s*,\s*/g),c;for(let o of s){let f=Number(o);if(!Number.isNaN(f))r.push(f);else if(c=o.match(vts))r.push(c[2].replace(Dts,(_,A,y)=>A?L4r(A):y));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function Bts(e){O4r.lastIndex=0;let t=[],r;for(;(r=O4r.exec(e))!==null;){let s=r[1];if(r[2]){let c=wts(s,r[2]);t.push([s].concat(c))}else t.push([s])}return t}function F4r(e,t){let r={};for(let c of t)for(let o of c.styles)r[o[0]]=c.inverse?null:o.slice(1);let s=e;for(let[c,o]of Object.entries(r))if(Array.isArray(o)){if(!(c in s))throw new Error(`Unknown Chalk style: ${c}`);s=o.length>0?s[c](...o):s[c]}return s}Q4r.exports=(e,t)=>{let r=[],s=[],c=[];if(t.replace(Sts,(o,f,_,A,y,I)=>{if(f)c.push(L4r(f));else if(A){let D=c.join("");c=[],s.push(r.length===0?D:F4r(e,r)(D)),r.push({inverse:_,styles:Bts(A)})}else if(y){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");s.push(F4r(e,r)(c.join(""))),c=[],r.pop()}else c.push(I)}),s.push(c.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return s.join("")}});var kRt=ae((SQa,H4r)=>{"use strict";var vRe=SRe(),{stdout:BRt,stderr:xRt}=Aze(),{stringReplaceAll:xts,stringEncaseCRLFWithFirstIndex:Nts}=P4r(),U4r=["ansi","ansi","ansi256","ansi16m"],zge=Object.create(null),Rts=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=BRt?BRt.level:0;e.level=t.level===void 0?r:t.level},NRt=class{constructor(t){return G4r(t)}},G4r=e=>{let t={};return Rts(t,e),t.template=(...r)=>Ots(t.template,...r),Object.setPrototypeOf(t,hze.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=NRt,t.template};function hze(e){return G4r(e)}for(let[e,t]of Object.entries(vRe))zge[e]={get(){let r=mze(this,RRt(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};zge.visible={get(){let e=mze(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var j4r=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of j4r)zge[e]={get(){let{level:t}=this;return function(...r){let s=RRt(vRe.color[U4r[t]][e](...r),vRe.color.close,this._styler);return mze(this,s,this._isEmpty)}}};for(let e of j4r){let t="bg"+e[0].toUpperCase()+e.slice(1);zge[t]={get(){let{level:r}=this;return function(...s){let c=RRt(vRe.bgColor[U4r[r]][e](...s),vRe.bgColor.close,this._styler);return mze(this,c,this._isEmpty)}}}}var kts=Object.defineProperties(()=>{},{...zge,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),RRt=(e,t,r)=>{let s,c;return r===void 0?(s=e,c=t):(s=r.openAll+e,c=t+r.closeAll),{open:e,close:t,openAll:s,closeAll:c,parent:r}},mze=(e,t,r)=>{let s=(...c)=>Pts(s,c.length===1?""+c[0]:c.join(" "));return s.__proto__=kts,s._generator=e,s._styler=t,s._isEmpty=r,s},Pts=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:s,closeAll:c}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=xts(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
-`);return o!==-1&&(t=Nts(t,c,s,o)),s+t+c},wRt,Ots=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let s=t.slice(1),c=[r.raw[0]];for(let o=1;o{"use strict";LM.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;LM.find=(e,t)=>e.nodes.find(r=>r.type===t);LM.exceedsLimit=(e,t,r=1,s)=>s===!1||!LM.isInteger(e)||!LM.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=s;LM.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];s&&(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};LM.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);LM.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;LM.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;LM.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);LM.flatten=(...e)=>{let t=[],r=s=>{for(let c=0;c{"use strict";var q4r=gze();J4r.exports=(e,t={})=>{let r=(s,c={})=>{let o=t.escapeInvalid&&q4r.isInvalidBrace(c),f=s.invalid===!0&&t.escapeInvalid===!0,_="";if(s.value)return(o||f)&&q4r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let A of s.nodes)_+=r(A);return _};return r(e)}});var W4r=ae((bQa,V4r)=>{"use strict";V4r.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var rMr=ae((wQa,tMr)=>{"use strict";var Y4r=W4r(),cce=(e,t,r)=>{if(Y4r(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Y4r(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let c=String(s.relaxZeros),o=String(s.shorthand),f=String(s.capture),_=String(s.wrap),A=e+":"+t+"="+c+o+f+_;if(cce.cache.hasOwnProperty(A))return cce.cache[A].result;let y=Math.min(e,t),I=Math.max(e,t);if(Math.abs(y-I)===1){let J=e+"|"+t;return s.capture?`(${J})`:s.wrap===!1?J:`(?:${J})`}let D=eMr(e)||eMr(t),b={min:e,max:t,a:y,b:I},L=[],x=[];if(D&&(b.isPadded=D,b.maxLen=String(b.max).length),y<0){let J=I<0?Math.abs(I):1;x=z4r(J,Math.abs(y),b,s),y=b.a=0}return I>=0&&(L=z4r(y,I,b,s)),b.negatives=x,b.positives=L,b.result=Fts(x,L,s),s.capture===!0?b.result=`(${b.result})`:s.wrap!==!1&&L.length+x.length>1&&(b.result=`(?:${b.result})`),cce.cache[A]=b,b.result};function Fts(e,t,r){let s=PRt(e,t,"-",!1,r)||[],c=PRt(t,e,"",!1,r)||[],o=PRt(e,t,"-?",!0,r)||[];return s.concat(o).concat(c).join("|")}function Lts(e,t){let r=1,s=1,c=X4r(e,r),o=new Set([t]);for(;e<=c&&c<=t;)o.add(c),r+=1,c=X4r(e,r);for(c=Z4r(t+1,s)-1;e1&&_.count.pop(),_.count.push(I.count[0]),_.string=_.pattern+$4r(_.count),f=y+1;continue}r.isPadded&&(D=jts(y,r,s)),I.string=D+I.pattern+$4r(I.count),o.push(I),f=y+1,_=I}return o}function PRt(e,t,r,s,c){let o=[];for(let f of e){let{string:_}=f;!s&&!K4r(t,"string",_)&&o.push(r+_),s&&K4r(t,"string",_)&&o.push(r+_)}return o}function Mts(e,t){let r=[];for(let s=0;st?1:t>e?-1:0}function K4r(e,t,r){return e.some(s=>s[t]===r)}function X4r(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Z4r(e,t){return e-e%Math.pow(10,t)}function $4r(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Gts(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function eMr(e){return/^-?(0+)\d/.test(e)}function jts(e,t,r){if(!t.isPadded)return e;let s=Math.abs(t.maxLen-String(e).length),c=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return c?"0?":"0";case 2:return c?"0{0,2}":"00";default:return c?`0{0,${s}}`:`0{${s}}`}}cce.cache={};cce.clearCache=()=>cce.cache={};tMr.exports=cce});var LRt=ae((BQa,lMr)=>{"use strict";var Hts=qt("util"),iMr=rMr(),nMr=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),qts=e=>t=>e===!0?Number(t):String(t),ORt=e=>typeof e=="number"||typeof e=="string"&&e!=="",bRe=e=>Number.isInteger(+e),FRt=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Jts=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Vts=(e,t,r)=>{if(t>0){let s=e[0]==="-"?"-":"";s&&(e=e.slice(1)),e=s+e.padStart(s?t-1:t,"0")}return r===!1?String(e):e},Cze=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length{e.negatives.sort((_,A)=>_A?1:0),e.positives.sort((_,A)=>_A?1:0);let s=t.capture?"":"?:",c="",o="",f;return e.positives.length&&(c=e.positives.map(_=>Cze(String(_),r)).join("|")),e.negatives.length&&(o=`-(${s}${e.negatives.map(_=>Cze(String(_),r)).join("|")})`),c&&o?f=`${c}|${o}`:f=c||o,t.wrap?`(${s}${f})`:f},sMr=(e,t,r,s)=>{if(r)return iMr(e,t,{wrap:!1,...s});let c=String.fromCharCode(e);if(e===t)return c;let o=String.fromCharCode(t);return`[${c}-${o}]`},oMr=(e,t,r)=>{if(Array.isArray(e)){let s=r.wrap===!0,c=r.capture?"":"?:";return s?`(${c}${e.join("|")})`:e.join("|")}return iMr(e,t,r)},aMr=(...e)=>new RangeError("Invalid range arguments: "+Hts.inspect(...e)),cMr=(e,t,r)=>{if(r.strictRanges===!0)throw aMr([e,t]);return[]},Yts=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},zts=(e,t,r=1,s={})=>{let c=Number(e),o=Number(t);if(!Number.isInteger(c)||!Number.isInteger(o)){if(s.strictRanges===!0)throw aMr([e,t]);return[]}c===0&&(c=0),o===0&&(o=0);let f=c>o,_=String(e),A=String(t),y=String(r);r=Math.max(Math.abs(r),1);let I=FRt(_)||FRt(A)||FRt(y),D=I?Math.max(_.length,A.length,y.length):0,b=I===!1&&Jts(e,t,s)===!1,L=s.transform||qts(b);if(s.toRegex&&r===1)return sMr(Cze(e,D),Cze(t,D),!0,s);let x={negatives:[],positives:[]},J=Ae=>x[Ae<0?"negatives":"positives"].push(Math.abs(Ae)),Y=[],ne=0;for(;f?c>=o:c<=o;)s.toRegex===!0&&r>1?J(c):Y.push(Vts(L(c,ne),D,b)),c=f?c-r:c+r,ne++;return s.toRegex===!0?r>1?Wts(x,s,D):oMr(Y,null,{wrap:!1,...s}):Y},Kts=(e,t,r=1,s={})=>{if(!bRe(e)&&e.length>1||!bRe(t)&&t.length>1)return cMr(e,t,s);let c=s.transform||(b=>String.fromCharCode(b)),o=`${e}`.charCodeAt(0),f=`${t}`.charCodeAt(0),_=o>f,A=Math.min(o,f),y=Math.max(o,f);if(s.toRegex&&r===1)return sMr(A,y,!1,s);let I=[],D=0;for(;_?o>=f:o<=f;)I.push(c(o,D)),o=_?o-r:o+r,D++;return s.toRegex===!0?oMr(I,null,{wrap:!1,options:s}):I},yze=(e,t,r,s={})=>{if(t==null&&ORt(e))return[e];if(!ORt(e)||!ORt(t))return cMr(e,t,s);if(typeof r=="function")return yze(e,t,1,{transform:r});if(nMr(r))return yze(e,t,0,r);let c={...s};return c.capture===!0&&(c.wrap=!0),r=r||c.step||1,bRe(r)?bRe(e)&&bRe(t)?zts(e,t,r,c):Kts(e,t,Math.max(Math.abs(r),1),c):r!=null&&!nMr(r)?Yts(r,c):yze(e,t,1,r)};lMr.exports=yze});var pMr=ae((xQa,fMr)=>{"use strict";var Xts=LRt(),uMr=gze(),Zts=(e,t={})=>{let r=(s,c={})=>{let o=uMr.isInvalidBrace(c),f=s.invalid===!0&&t.escapeInvalid===!0,_=o===!0||f===!0,A=t.escapeInvalid===!0?"\\":"",y="";if(s.isOpen===!0)return A+s.value;if(s.isClose===!0)return console.log("node.isClose",A,s.value),A+s.value;if(s.type==="open")return _?A+s.value:"(";if(s.type==="close")return _?A+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":_?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let I=uMr.reduce(s.nodes),D=Xts(...I,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(D.length!==0)return I.length>1&&D.length>1?`(${D})`:D}if(s.nodes)for(let I of s.nodes)y+=r(I,s);return y};return r(e)};fMr.exports=Zts});var AMr=ae((NQa,_Mr)=>{"use strict";var $ts=LRt(),dMr=Eze(),Kge=gze(),lce=(e="",t="",r=!1)=>{let s=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Kge.flatten(t).map(c=>`{${c}}`):t;for(let c of e)if(Array.isArray(c))for(let o of c)s.push(lce(o,t,r));else for(let o of t)r===!0&&typeof o=="string"&&(o=`{${o}}`),s.push(Array.isArray(o)?lce(c,o,r):c+o);return Kge.flatten(s)},ers=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(c,o={})=>{c.queue=[];let f=o,_=o.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,_=f.queue;if(c.invalid||c.dollar){_.push(lce(_.pop(),dMr(c,t)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){_.push(lce(_.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let D=Kge.reduce(c.nodes);if(Kge.exceedsLimit(...D,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=$ts(...D,t);b.length===0&&(b=dMr(c,t)),_.push(lce(_.pop(),b)),c.nodes=[];return}let A=Kge.encloseBrace(c),y=c.queue,I=c;for(;I.type!=="brace"&&I.type!=="root"&&I.parent;)I=I.parent,y=I.queue;for(let D=0;D{"use strict";hMr.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
-`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var IMr=ae((kQa,CMr)=>{"use strict";var trs=Eze(),{MAX_LENGTH:gMr,CHAR_BACKSLASH:QRt,CHAR_BACKTICK:rrs,CHAR_COMMA:nrs,CHAR_DOT:irs,CHAR_LEFT_PARENTHESES:srs,CHAR_RIGHT_PARENTHESES:ors,CHAR_LEFT_CURLY_BRACE:ars,CHAR_RIGHT_CURLY_BRACE:crs,CHAR_LEFT_SQUARE_BRACKET:EMr,CHAR_RIGHT_SQUARE_BRACKET:yMr,CHAR_DOUBLE_QUOTE:lrs,CHAR_SINGLE_QUOTE:urs,CHAR_NO_BREAK_SPACE:frs,CHAR_ZERO_WIDTH_NOBREAK_SPACE:prs}=mMr(),drs=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},s=typeof r.maxLength=="number"?Math.min(gMr,r.maxLength):gMr;if(e.length>s)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${s})`);let c={type:"root",input:e,nodes:[]},o=[c],f=c,_=c,A=0,y=e.length,I=0,D=0,b,L=()=>e[I++],x=J=>{if(J.type==="text"&&_.type==="dot"&&(_.type="text"),_&&_.type==="text"&&J.type==="text"){_.value+=J.value;return}return f.nodes.push(J),J.parent=f,J.prev=_,_=J,J};for(x({type:"bos"});I0){if(f.ranges>0){f.ranges=0;let J=f.nodes.shift();f.nodes=[J,{type:"text",value:trs(f)}]}x({type:"comma",value:b}),f.commas++;continue}if(b===irs&&D>0&&f.commas===0){let J=f.nodes;if(D===0||J.length===0){x({type:"text",value:b});continue}if(_.type==="dot"){if(f.range=[],_.value+=b,_.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,_.type="text";continue}f.ranges++,f.args=[];continue}if(_.type==="range"){J.pop();let Y=J[J.length-1];Y.value+=_.value+b,_=Y,f.ranges--;continue}x({type:"dot",value:b});continue}x({type:"text",value:b})}do if(f=o.pop(),f.type!=="root"){f.nodes.forEach(ne=>{ne.nodes||(ne.type==="open"&&(ne.isOpen=!0),ne.type==="close"&&(ne.isClose=!0),ne.nodes||(ne.type="text"),ne.invalid=!0)});let J=o[o.length-1],Y=J.nodes.indexOf(f);J.nodes.splice(Y,1,...f.nodes)}while(o.length>0);return x({type:"eos"}),c};CMr.exports=drs});var vMr=ae((PQa,SMr)=>{"use strict";var TMr=Eze(),_rs=pMr(),Ars=AMr(),hrs=IMr(),jQ=(e,t={})=>{let r=[];if(Array.isArray(e))for(let s of e){let c=jQ.create(s,t);Array.isArray(c)?r.push(...c):r.push(c)}else r=[].concat(jQ.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};jQ.parse=(e,t={})=>hrs(e,t);jQ.stringify=(e,t={})=>TMr(typeof e=="string"?jQ.parse(e,t):e,t);jQ.compile=(e,t={})=>(typeof e=="string"&&(e=jQ.parse(e,t)),_rs(e,t));jQ.expand=(e,t={})=>{typeof e=="string"&&(e=jQ.parse(e,t));let r=Ars(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};jQ.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?jQ.compile(e,t):jQ.expand(e,t);SMr.exports=jQ});var wRe=ae((OQa,xMr)=>{"use strict";var mrs=qt("path"),Tj="\\\\/",DMr=`[^${Tj}]`,LW="\\.",grs="\\+",Ers="\\?",Ize="\\/",yrs="(?=.)",bMr="[^/]",MRt=`(?:${Ize}|$)`,wMr=`(?:^|${Ize})`,URt=`${LW}{1,2}${MRt}`,Crs=`(?!${LW})`,Irs=`(?!${wMr}${URt})`,Trs=`(?!${LW}{0,1}${MRt})`,Srs=`(?!${URt})`,vrs=`[^.${Ize}]`,Drs=`${bMr}*?`,BMr={DOT_LITERAL:LW,PLUS_LITERAL:grs,QMARK_LITERAL:Ers,SLASH_LITERAL:Ize,ONE_CHAR:yrs,QMARK:bMr,END_ANCHOR:MRt,DOTS_SLASH:URt,NO_DOT:Crs,NO_DOTS:Irs,NO_DOT_SLASH:Trs,NO_DOTS_SLASH:Srs,QMARK_NO_DOT:vrs,STAR:Drs,START_ANCHOR:wMr},brs={...BMr,SLASH_LITERAL:`[${Tj}]`,QMARK:DMr,STAR:`${DMr}*?`,DOTS_SLASH:`${LW}{1,2}(?:[${Tj}]|$)`,NO_DOT:`(?!${LW})`,NO_DOTS:`(?!(?:^|[${Tj}])${LW}{1,2}(?:[${Tj}]|$))`,NO_DOT_SLASH:`(?!${LW}{0,1}(?:[${Tj}]|$))`,NO_DOTS_SLASH:`(?!${LW}{1,2}(?:[${Tj}]|$))`,QMARK_NO_DOT:`[^.${Tj}]`,START_ANCHOR:`(?:^|[${Tj}])`,END_ANCHOR:`(?:[${Tj}]|$)`},wrs={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};xMr.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:wrs,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:mrs.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?brs:BMr}}});var BRe=ae(mF=>{"use strict";var Brs=qt("path"),xrs=process.platform==="win32",{REGEX_BACKSLASH:Nrs,REGEX_REMOVE_BACKSLASH:Rrs,REGEX_SPECIAL_CHARS:krs,REGEX_SPECIAL_CHARS_GLOBAL:Prs}=wRe();mF.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);mF.hasRegexChars=e=>krs.test(e);mF.isRegexChar=e=>e.length===1&&mF.hasRegexChars(e);mF.escapeRegex=e=>e.replace(Prs,"\\$1");mF.toPosixSlashes=e=>e.replace(Nrs,"/");mF.removeBackslashes=e=>e.replace(Rrs,t=>t==="\\"?"":t);mF.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};mF.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:xrs===!0||Brs.sep==="\\";mF.escapeLast=(e,t,r)=>{let s=e.lastIndexOf(t,r);return s===-1?e:e[s-1]==="\\"?mF.escapeLast(e,t,s-1):`${e.slice(0,s)}\\${e.slice(s)}`};mF.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};mF.wrapOutput=(e,t={},r={})=>{let s=r.contains?"":"^",c=r.contains?"":"$",o=`${s}(?:${e})${c}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var QMr=ae((LQa,LMr)=>{"use strict";var NMr=BRe(),{CHAR_ASTERISK:GRt,CHAR_AT:Ors,CHAR_BACKWARD_SLASH:xRe,CHAR_COMMA:Frs,CHAR_DOT:jRt,CHAR_EXCLAMATION_MARK:HRt,CHAR_FORWARD_SLASH:FMr,CHAR_LEFT_CURLY_BRACE:qRt,CHAR_LEFT_PARENTHESES:JRt,CHAR_LEFT_SQUARE_BRACKET:Lrs,CHAR_PLUS:Qrs,CHAR_QUESTION_MARK:RMr,CHAR_RIGHT_CURLY_BRACE:Mrs,CHAR_RIGHT_PARENTHESES:kMr,CHAR_RIGHT_SQUARE_BRACKET:Urs}=wRe(),PMr=e=>e===FMr||e===xRe,OMr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Grs=(e,t)=>{let r=t||{},s=e.length-1,c=r.parts===!0||r.scanToEnd===!0,o=[],f=[],_=[],A=e,y=-1,I=0,D=0,b=!1,L=!1,x=!1,J=!1,Y=!1,ne=!1,Ae=!1,le=!1,pe=!1,ge=!1,me=0,ye,Se,Le={value:"",depth:0,isGlob:!1},rt=()=>y>=s,P=()=>A.charCodeAt(y+1),pt=()=>(ye=Se,A.charCodeAt(++y));for(;y0&&(ht=A.slice(0,I),A=A.slice(I),D-=I),nt&&x===!0&&D>0?(nt=A.slice(0,D),ot=A.slice(D)):x===!0?(nt="",ot=A):nt=A,nt&&nt!==""&&nt!=="/"&&nt!==A&&PMr(nt.charCodeAt(nt.length-1))&&(nt=nt.slice(0,-1)),r.unescape===!0&&(ot&&(ot=NMr.removeBackslashes(ot)),nt&&Ae===!0&&(nt=NMr.removeBackslashes(nt)));let Et={prefix:ht,input:e,start:I,base:nt,glob:ot,isBrace:b,isBracket:L,isGlob:x,isExtglob:J,isGlobstar:Y,negated:le,negatedExtglob:pe};if(r.tokens===!0&&(Et.maxDepth=0,PMr(Se)||f.push(Le),Et.tokens=f),r.parts===!0||r.tokens===!0){let Vt;for(let Er=0;Er{"use strict";var Tze=wRe(),HQ=BRe(),{MAX_LENGTH:Sze,POSIX_REGEX_SOURCE:jrs,REGEX_NON_SPECIAL_CHARS:Hrs,REGEX_SPECIAL_CHARS_BACKREF:qrs,REPLACEMENTS:MMr}=Tze,Jrs=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(c=>HQ.escapeRegex(c)).join("..")}return r},Xge=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,VRt=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=MMr[e]||e;let r={...t},s=typeof r.maxLength=="number"?Math.min(Sze,r.maxLength):Sze,c=e.length;if(c>s)throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${s}`);let o={type:"bos",value:"",output:r.prepend||""},f=[o],_=r.capture?"":"?:",A=HQ.isWindows(t),y=Tze.globChars(A),I=Tze.extglobChars(y),{DOT_LITERAL:D,PLUS_LITERAL:b,SLASH_LITERAL:L,ONE_CHAR:x,DOTS_SLASH:J,NO_DOT:Y,NO_DOT_SLASH:ne,NO_DOTS_SLASH:Ae,QMARK:le,QMARK_NO_DOT:pe,STAR:ge,START_ANCHOR:me}=y,ye=fr=>`(${_}(?:(?!${me}${fr.dot?J:D}).)*?)`,Se=r.dot?"":Y,Le=r.dot?le:pe,rt=r.bash===!0?ye(r):ge;r.capture&&(rt=`(${rt})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};e=HQ.removePrefix(e,P),c=e.length;let pt=[],nt=[],ht=[],ot=o,Et,Vt=()=>P.index===c-1,Er=P.peek=(fr=1)=>e[P.index+fr],pn=P.advance=()=>e[++P.index]||"",$t=()=>e.slice(P.index+1),xr=(fr="",ui=0)=>{P.consumed+=fr,P.index+=ui},yr=fr=>{P.output+=fr.output!=null?fr.output:fr.value,xr(fr.value)},ur=()=>{let fr=1;for(;Er()==="!"&&(Er(2)!=="("||Er(3)==="?");)pn(),P.start++,fr++;return fr%2===0?!1:(P.negated=!0,P.start++,!0)},jr=fr=>{P[fr]++,ht.push(fr)},Vr=fr=>{P[fr]--,ht.pop()},br=fr=>{if(ot.type==="globstar"){let ui=P.braces>0&&(fr.type==="comma"||fr.type==="brace"),hi=fr.extglob===!0||pt.length&&(fr.type==="pipe"||fr.type==="paren");fr.type!=="slash"&&fr.type!=="paren"&&!ui&&!hi&&(P.output=P.output.slice(0,-ot.output.length),ot.type="star",ot.value="*",ot.output=rt,P.output+=ot.output)}if(pt.length&&fr.type!=="paren"&&(pt[pt.length-1].inner+=fr.value),(fr.value||fr.output)&&yr(fr),ot&&ot.type==="text"&&fr.type==="text"){ot.value+=fr.value,ot.output=(ot.output||"")+fr.value;return}fr.prev=ot,f.push(fr),ot=fr},Mn=(fr,ui)=>{let hi={...I[ui],conditions:1,inner:""};hi.prev=ot,hi.parens=P.parens,hi.output=P.output;let we=(r.capture?"(":"")+hi.open;jr("parens"),br({type:fr,value:ui,output:P.output?"":x}),br({type:"paren",extglob:!0,value:pn(),output:we}),pt.push(hi)},An=fr=>{let ui=fr.close+(r.capture?")":""),hi;if(fr.type==="negate"){let we=rt;if(fr.inner&&fr.inner.length>1&&fr.inner.includes("/")&&(we=ye(r)),(we!==rt||Vt()||/^\)+$/.test($t()))&&(ui=fr.close=`)$))${we}`),fr.inner.includes("*")&&(hi=$t())&&/^\.[^\\/.]+$/.test(hi)){let os=VRt(hi,{...t,fastpaths:!1}).output;ui=fr.close=`)${os})${we})`}fr.prev.type==="bos"&&(P.negatedExtglob=!0)}br({type:"paren",extglob:!0,value:Et,output:ui}),Vr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let fr=!1,ui=e.replace(qrs,(hi,we,os,Hc,Va,zs)=>Hc==="\\"?(fr=!0,hi):Hc==="?"?we?we+Hc+(Va?le.repeat(Va.length):""):zs===0?Le+(Va?le.repeat(Va.length):""):le.repeat(os.length):Hc==="."?D.repeat(os.length):Hc==="*"?we?we+Hc+(Va?rt:""):rt:we?hi:`\\${hi}`);return fr===!0&&(r.unescape===!0?ui=ui.replace(/\\/g,""):ui=ui.replace(/\\+/g,hi=>hi.length%2===0?"\\\\":hi?"\\":"")),ui===e&&r.contains===!0?(P.output=e,P):(P.output=HQ.wrapOutput(ui,P,t),P)}for(;!Vt();){if(Et=pn(),Et==="\0")continue;if(Et==="\\"){let hi=Er();if(hi==="/"&&r.bash!==!0||hi==="."||hi===";")continue;if(!hi){Et+="\\",br({type:"text",value:Et});continue}let we=/^\\+/.exec($t()),os=0;if(we&&we[0].length>2&&(os=we[0].length,P.index+=os,os%2!==0&&(Et+="\\")),r.unescape===!0?Et=pn():Et+=pn(),P.brackets===0){br({type:"text",value:Et});continue}}if(P.brackets>0&&(Et!=="]"||ot.value==="["||ot.value==="[^")){if(r.posix!==!1&&Et===":"){let hi=ot.value.slice(1);if(hi.includes("[")&&(ot.posix=!0,hi.includes(":"))){let we=ot.value.lastIndexOf("["),os=ot.value.slice(0,we),Hc=ot.value.slice(we+2),Va=jrs[Hc];if(Va){ot.value=os+Va,P.backtrack=!0,pn(),!o.output&&f.indexOf(ot)===1&&(o.output=x);continue}}}(Et==="["&&Er()!==":"||Et==="-"&&Er()==="]")&&(Et=`\\${Et}`),Et==="]"&&(ot.value==="["||ot.value==="[^")&&(Et=`\\${Et}`),r.posix===!0&&Et==="!"&&ot.value==="["&&(Et="^"),ot.value+=Et,yr({value:Et});continue}if(P.quotes===1&&Et!=='"'){Et=HQ.escapeRegex(Et),ot.value+=Et,yr({value:Et});continue}if(Et==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&br({type:"text",value:Et});continue}if(Et==="("){jr("parens"),br({type:"paren",value:Et});continue}if(Et===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Xge("opening","("));let hi=pt[pt.length-1];if(hi&&P.parens===hi.parens+1){An(pt.pop());continue}br({type:"paren",value:Et,output:P.parens?")":"\\)"}),Vr("parens");continue}if(Et==="["){if(r.nobracket===!0||!$t().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Xge("closing","]"));Et=`\\${Et}`}else jr("brackets");br({type:"bracket",value:Et});continue}if(Et==="]"){if(r.nobracket===!0||ot&&ot.type==="bracket"&&ot.value.length===1){br({type:"text",value:Et,output:`\\${Et}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Xge("opening","["));br({type:"text",value:Et,output:`\\${Et}`});continue}Vr("brackets");let hi=ot.value.slice(1);if(ot.posix!==!0&&hi[0]==="^"&&!hi.includes("/")&&(Et=`/${Et}`),ot.value+=Et,yr({value:Et}),r.literalBrackets===!1||HQ.hasRegexChars(hi))continue;let we=HQ.escapeRegex(ot.value);if(P.output=P.output.slice(0,-ot.value.length),r.literalBrackets===!0){P.output+=we,ot.value=we;continue}ot.value=`(${_}${we}|${ot.value})`,P.output+=ot.value;continue}if(Et==="{"&&r.nobrace!==!0){jr("braces");let hi={type:"brace",value:Et,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};nt.push(hi),br(hi);continue}if(Et==="}"){let hi=nt[nt.length-1];if(r.nobrace===!0||!hi){br({type:"text",value:Et,output:Et});continue}let we=")";if(hi.dots===!0){let os=f.slice(),Hc=[];for(let Va=os.length-1;Va>=0&&(f.pop(),os[Va].type!=="brace");Va--)os[Va].type!=="dots"&&Hc.unshift(os[Va].value);we=Jrs(Hc,r),P.backtrack=!0}if(hi.comma!==!0&&hi.dots!==!0){let os=P.output.slice(0,hi.outputIndex),Hc=P.tokens.slice(hi.tokensIndex);hi.value=hi.output="\\{",Et=we="\\}",P.output=os;for(let Va of Hc)P.output+=Va.output||Va.value}br({type:"brace",value:Et,output:we}),Vr("braces"),nt.pop();continue}if(Et==="|"){pt.length>0&&pt[pt.length-1].conditions++,br({type:"text",value:Et});continue}if(Et===","){let hi=Et,we=nt[nt.length-1];we&&ht[ht.length-1]==="braces"&&(we.comma=!0,hi="|"),br({type:"comma",value:Et,output:hi});continue}if(Et==="/"){if(ot.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",f.pop(),ot=o;continue}br({type:"slash",value:Et,output:L});continue}if(Et==="."){if(P.braces>0&&ot.type==="dot"){ot.value==="."&&(ot.output=D);let hi=nt[nt.length-1];ot.type="dots",ot.output+=Et,ot.value+=Et,hi.dots=!0;continue}if(P.braces+P.parens===0&&ot.type!=="bos"&&ot.type!=="slash"){br({type:"text",value:Et,output:D});continue}br({type:"dot",value:Et,output:D});continue}if(Et==="?"){if(!(ot&&ot.value==="(")&&r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){Mn("qmark",Et);continue}if(ot&&ot.type==="paren"){let we=Er(),os=Et;if(we==="<"&&!HQ.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(ot.value==="("&&!/[!=<:]/.test(we)||we==="<"&&!/<([!=]|\w+>)/.test($t()))&&(os=`\\${Et}`),br({type:"text",value:Et,output:os});continue}if(r.dot!==!0&&(ot.type==="slash"||ot.type==="bos")){br({type:"qmark",value:Et,output:pe});continue}br({type:"qmark",value:Et,output:le});continue}if(Et==="!"){if(r.noextglob!==!0&&Er()==="("&&(Er(2)!=="?"||!/[!=<:]/.test(Er(3)))){Mn("negate",Et);continue}if(r.nonegate!==!0&&P.index===0){ur();continue}}if(Et==="+"){if(r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){Mn("plus",Et);continue}if(ot&&ot.value==="("||r.regex===!1){br({type:"plus",value:Et,output:b});continue}if(ot&&(ot.type==="bracket"||ot.type==="paren"||ot.type==="brace")||P.parens>0){br({type:"plus",value:Et});continue}br({type:"plus",value:b});continue}if(Et==="@"){if(r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){br({type:"at",extglob:!0,value:Et,output:""});continue}br({type:"text",value:Et});continue}if(Et!=="*"){(Et==="$"||Et==="^")&&(Et=`\\${Et}`);let hi=Hrs.exec($t());hi&&(Et+=hi[0],P.index+=hi[0].length),br({type:"text",value:Et});continue}if(ot&&(ot.type==="globstar"||ot.star===!0)){ot.type="star",ot.star=!0,ot.value+=Et,ot.output=rt,P.backtrack=!0,P.globstar=!0,xr(Et);continue}let fr=$t();if(r.noextglob!==!0&&/^\([^?]/.test(fr)){Mn("star",Et);continue}if(ot.type==="star"){if(r.noglobstar===!0){xr(Et);continue}let hi=ot.prev,we=hi.prev,os=hi.type==="slash"||hi.type==="bos",Hc=we&&(we.type==="star"||we.type==="globstar");if(r.bash===!0&&(!os||fr[0]&&fr[0]!=="/")){br({type:"star",value:Et,output:""});continue}let Va=P.braces>0&&(hi.type==="comma"||hi.type==="brace"),zs=pt.length&&(hi.type==="pipe"||hi.type==="paren");if(!os&&hi.type!=="paren"&&!Va&&!zs){br({type:"star",value:Et,output:""});continue}for(;fr.slice(0,3)==="/**";){let or=e[P.index+4];if(or&&or!=="/")break;fr=fr.slice(3),xr("/**",3)}if(hi.type==="bos"&&Vt()){ot.type="globstar",ot.value+=Et,ot.output=ye(r),P.output=ot.output,P.globstar=!0,xr(Et);continue}if(hi.type==="slash"&&hi.prev.type!=="bos"&&!Hc&&Vt()){P.output=P.output.slice(0,-(hi.output+ot.output).length),hi.output=`(?:${hi.output}`,ot.type="globstar",ot.output=ye(r)+(r.strictSlashes?")":"|$)"),ot.value+=Et,P.globstar=!0,P.output+=hi.output+ot.output,xr(Et);continue}if(hi.type==="slash"&&hi.prev.type!=="bos"&&fr[0]==="/"){let or=fr[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(hi.output+ot.output).length),hi.output=`(?:${hi.output}`,ot.type="globstar",ot.output=`${ye(r)}${L}|${L}${or})`,ot.value+=Et,P.output+=hi.output+ot.output,P.globstar=!0,xr(Et+pn()),br({type:"slash",value:"/",output:""});continue}if(hi.type==="bos"&&fr[0]==="/"){ot.type="globstar",ot.value+=Et,ot.output=`(?:^|${L}|${ye(r)}${L})`,P.output=ot.output,P.globstar=!0,xr(Et+pn()),br({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-ot.output.length),ot.type="globstar",ot.output=ye(r),ot.value+=Et,P.output+=ot.output,P.globstar=!0,xr(Et);continue}let ui={type:"star",value:Et,output:rt};if(r.bash===!0){ui.output=".*?",(ot.type==="bos"||ot.type==="slash")&&(ui.output=Se+ui.output),br(ui);continue}if(ot&&(ot.type==="bracket"||ot.type==="paren")&&r.regex===!0){ui.output=Et,br(ui);continue}(P.index===P.start||ot.type==="slash"||ot.type==="dot")&&(ot.type==="dot"?(P.output+=ne,ot.output+=ne):r.dot===!0?(P.output+=Ae,ot.output+=Ae):(P.output+=Se,ot.output+=Se),Er()!=="*"&&(P.output+=x,ot.output+=x)),br(ui)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing","]"));P.output=HQ.escapeLast(P.output,"["),Vr("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing",")"));P.output=HQ.escapeLast(P.output,"("),Vr("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing","}"));P.output=HQ.escapeLast(P.output,"{"),Vr("braces")}if(r.strictSlashes!==!0&&(ot.type==="star"||ot.type==="bracket")&&br({type:"maybe_slash",value:"",output:`${L}?`}),P.backtrack===!0){P.output="";for(let fr of P.tokens)P.output+=fr.output!=null?fr.output:fr.value,fr.suffix&&(P.output+=fr.suffix)}return P};VRt.fastpaths=(e,t)=>{let r={...t},s=typeof r.maxLength=="number"?Math.min(Sze,r.maxLength):Sze,c=e.length;if(c>s)throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${s}`);e=MMr[e]||e;let o=HQ.isWindows(t),{DOT_LITERAL:f,SLASH_LITERAL:_,ONE_CHAR:A,DOTS_SLASH:y,NO_DOT:I,NO_DOTS:D,NO_DOTS_SLASH:b,STAR:L,START_ANCHOR:x}=Tze.globChars(o),J=r.dot?D:I,Y=r.dot?b:I,ne=r.capture?"":"?:",Ae={negated:!1,prefix:""},le=r.bash===!0?".*?":L;r.capture&&(le=`(${le})`);let pe=Se=>Se.noglobstar===!0?le:`(${ne}(?:(?!${x}${Se.dot?y:f}).)*?)`,ge=Se=>{switch(Se){case"*":return`${J}${A}${le}`;case".*":return`${f}${A}${le}`;case"*.*":return`${J}${le}${f}${A}${le}`;case"*/*":return`${J}${le}${_}${A}${Y}${le}`;case"**":return J+pe(r);case"**/*":return`(?:${J}${pe(r)}${_})?${Y}${A}${le}`;case"**/*.*":return`(?:${J}${pe(r)}${_})?${Y}${le}${f}${A}${le}`;case"**/.*":return`(?:${J}${pe(r)}${_})?${f}${A}${le}`;default:{let Le=/^(.*?)\.(\w+)$/.exec(Se);if(!Le)return;let rt=ge(Le[1]);return rt?rt+f+Le[2]:void 0}}},me=HQ.removePrefix(e,Ae),ye=ge(me);return ye&&r.strictSlashes!==!0&&(ye+=`${_}?`),ye};UMr.exports=VRt});var HMr=ae((MQa,jMr)=>{"use strict";var Vrs=qt("path"),Wrs=QMr(),WRt=GMr(),YRt=BRe(),Yrs=wRe(),zrs=e=>e&&typeof e=="object"&&!Array.isArray(e),h2=(e,t,r=!1)=>{if(Array.isArray(e)){let I=e.map(b=>h2(b,t,r));return b=>{for(let L of I){let x=L(b);if(x)return x}return!1}}let s=zrs(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let c=t||{},o=YRt.isWindows(t),f=s?h2.compileRe(e,t):h2.makeRe(e,t,!1,!0),_=f.state;delete f.state;let A=()=>!1;if(c.ignore){let I={...t,ignore:null,onMatch:null,onResult:null};A=h2(c.ignore,I,r)}let y=(I,D=!1)=>{let{isMatch:b,match:L,output:x}=h2.test(I,f,t,{glob:e,posix:o}),J={glob:e,state:_,regex:f,posix:o,input:I,output:x,match:L,isMatch:b};return typeof c.onResult=="function"&&c.onResult(J),b===!1?(J.isMatch=!1,D?J:!1):A(I)?(typeof c.onIgnore=="function"&&c.onIgnore(J),J.isMatch=!1,D?J:!1):(typeof c.onMatch=="function"&&c.onMatch(J),D?J:!0)};return r&&(y.state=_),y};h2.test=(e,t,r,{glob:s,posix:c}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=r||{},f=o.format||(c?YRt.toPosixSlashes:null),_=e===s,A=_&&f?f(e):e;return _===!1&&(A=f?f(e):e,_=A===s),(_===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?_=h2.matchBase(e,t,r,c):_=t.exec(A)),{isMatch:!!_,match:_,output:A}};h2.matchBase=(e,t,r,s=YRt.isWindows(r))=>(t instanceof RegExp?t:h2.makeRe(t,r)).test(Vrs.basename(e));h2.isMatch=(e,t,r)=>h2(t,r)(e);h2.parse=(e,t)=>Array.isArray(e)?e.map(r=>h2.parse(r,t)):WRt(e,{...t,fastpaths:!1});h2.scan=(e,t)=>Wrs(e,t);h2.compileRe=(e,t,r=!1,s=!1)=>{if(r===!0)return e.output;let c=t||{},o=c.contains?"":"^",f=c.contains?"":"$",_=`${o}(?:${e.output})${f}`;e&&e.negated===!0&&(_=`^(?!${_}).*$`);let A=h2.toRegex(_,t);return s===!0&&(A.state=e),A};h2.makeRe=(e,t={},r=!1,s=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(c.output=WRt.fastpaths(e,t)),c.output||(c=WRt(e,t)),h2.compileRe(c,t,r,s)};h2.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};h2.constants=Yrs;jMr.exports=h2});var JMr=ae((UQa,qMr)=>{"use strict";qMr.exports=HMr()});var nR=ae((GQa,KMr)=>{"use strict";var WMr=qt("util"),YMr=vMr(),Sj=JMr(),zRt=BRe(),VMr=e=>e===""||e==="./",zMr=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},II=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let s=new Set,c=new Set,o=new Set,f=0,_=I=>{o.add(I.output),r&&r.onResult&&r.onResult(I)};for(let I=0;I!s.has(I));if(r&&y.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(I=>I.replace(/\\/g,"")):t}return y};II.match=II;II.matcher=(e,t)=>Sj(e,t);II.isMatch=(e,t,r)=>Sj(t,r)(e);II.any=II.isMatch;II.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set,c=[],o=_=>{r.onResult&&r.onResult(_),c.push(_.output)},f=new Set(II(e,t,{...r,onResult:o}));for(let _ of c)f.has(_)||s.add(_);return[...s]};II.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${WMr.inspect(e)}"`);if(Array.isArray(t))return t.some(s=>II.contains(e,s,r));if(typeof t=="string"){if(VMr(e)||VMr(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return II.isMatch(e,t,{...r,contains:!0})};II.matchKeys=(e,t,r)=>{if(!zRt.isObject(e))throw new TypeError("Expected the first argument to be an object");let s=II(Object.keys(e),t,r),c={};for(let o of s)c[o]=e[o];return c};II.some=(e,t,r)=>{let s=[].concat(e);for(let c of[].concat(t)){let o=Sj(String(c),r);if(s.some(f=>o(f)))return!0}return!1};II.every=(e,t,r)=>{let s=[].concat(e);for(let c of[].concat(t)){let o=Sj(String(c),r);if(!s.every(f=>o(f)))return!1}return!0};II.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${WMr.inspect(e)}"`);return[].concat(t).every(s=>Sj(s,r)(e))};II.capture=(e,t,r)=>{let s=zRt.isWindows(r),o=Sj.makeRe(String(e),{...r,capture:!0}).exec(s?zRt.toPosixSlashes(t):t);if(o)return o.slice(1).map(f=>f===void 0?"":f)};II.makeRe=(...e)=>Sj.makeRe(...e);II.scan=(...e)=>Sj.scan(...e);II.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[]))for(let c of YMr(String(s),t))r.push(Sj.parse(c,t));return r};II.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!zMr(e)?[e]:YMr(e,t)};II.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return II.braces(e,{...t,expand:!0})};II.hasBraces=zMr;KMr.exports=II});var ZMr=ae((jQa,XMr)=>{"use strict";XMr.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var N5=ae((HQa,$Mr)=>{"use strict";var Krs=ZMr();$Mr.exports=e=>typeof e=="string"?e.replace(Krs(),""):e});var t6r=ae((qQa,e6r)=>{function Xrs(){this.__data__=[],this.size=0}e6r.exports=Xrs});var Zge=ae((JQa,r6r)=>{function Zrs(e,t){return e===t||e!==e&&t!==t}r6r.exports=Zrs});var NRe=ae((VQa,n6r)=>{var $rs=Zge();function ens(e,t){for(var r=e.length;r--;)if($rs(e[r][0],t))return r;return-1}n6r.exports=ens});var s6r=ae((WQa,i6r)=>{var tns=NRe(),rns=Array.prototype,nns=rns.splice;function ins(e){var t=this.__data__,r=tns(t,e);if(r<0)return!1;var s=t.length-1;return r==s?t.pop():nns.call(t,r,1),--this.size,!0}i6r.exports=ins});var a6r=ae((YQa,o6r)=>{var sns=NRe();function ons(e){var t=this.__data__,r=sns(t,e);return r<0?void 0:t[r][1]}o6r.exports=ons});var l6r=ae((zQa,c6r)=>{var ans=NRe();function cns(e){return ans(this.__data__,e)>-1}c6r.exports=cns});var f6r=ae((KQa,u6r)=>{var lns=NRe();function uns(e,t){var r=this.__data__,s=lns(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}u6r.exports=uns});var RRe=ae((XQa,p6r)=>{var fns=t6r(),pns=s6r(),dns=a6r(),_ns=l6r(),Ans=f6r();function $ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var hns=RRe();function mns(){this.__data__=new hns,this.size=0}d6r.exports=mns});var h6r=ae(($Qa,A6r)=>{function gns(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}A6r.exports=gns});var g6r=ae((e3a,m6r)=>{function Ens(e){return this.__data__.get(e)}m6r.exports=Ens});var y6r=ae((t3a,E6r)=>{function yns(e){return this.__data__.has(e)}E6r.exports=yns});var KRt=ae((r3a,C6r)=>{var Cns=typeof global=="object"&&global&&global.Object===Object&&global;C6r.exports=Cns});var QM=ae((n3a,I6r)=>{var Ins=KRt(),Tns=typeof self=="object"&&self&&self.Object===Object&&self,Sns=Ins||Tns||Function("return this")();I6r.exports=Sns});var uce=ae((i3a,T6r)=>{var vns=QM(),Dns=vns.Symbol;T6r.exports=Dns});var b6r=ae((s3a,D6r)=>{var S6r=uce(),v6r=Object.prototype,bns=v6r.hasOwnProperty,wns=v6r.toString,kRe=S6r?S6r.toStringTag:void 0;function Bns(e){var t=bns.call(e,kRe),r=e[kRe];try{e[kRe]=void 0;var s=!0}catch{}var c=wns.call(e);return s&&(t?e[kRe]=r:delete e[kRe]),c}D6r.exports=Bns});var B6r=ae((o3a,w6r)=>{var xns=Object.prototype,Nns=xns.toString;function Rns(e){return Nns.call(e)}w6r.exports=Rns});var fce=ae((a3a,R6r)=>{var x6r=uce(),kns=b6r(),Pns=B6r(),Ons="[object Null]",Fns="[object Undefined]",N6r=x6r?x6r.toStringTag:void 0;function Lns(e){return e==null?e===void 0?Fns:Ons:N6r&&N6r in Object(e)?kns(e):Pns(e)}R6r.exports=Lns});var qQ=ae((c3a,k6r)=>{function Qns(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}k6r.exports=Qns});var vze=ae((l3a,P6r)=>{var Mns=fce(),Uns=qQ(),Gns="[object AsyncFunction]",jns="[object Function]",Hns="[object GeneratorFunction]",qns="[object Proxy]";function Jns(e){if(!Uns(e))return!1;var t=Mns(e);return t==jns||t==Hns||t==Gns||t==qns}P6r.exports=Jns});var F6r=ae((u3a,O6r)=>{var Vns=QM(),Wns=Vns["__core-js_shared__"];O6r.exports=Wns});var M6r=ae((f3a,Q6r)=>{var XRt=F6r(),L6r=function(){var e=/[^.]+$/.exec(XRt&&XRt.keys&&XRt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yns(e){return!!L6r&&L6r in e}Q6r.exports=Yns});var ZRt=ae((p3a,U6r)=>{var zns=Function.prototype,Kns=zns.toString;function Xns(e){if(e!=null){try{return Kns.call(e)}catch{}try{return e+""}catch{}}return""}U6r.exports=Xns});var j6r=ae((d3a,G6r)=>{var Zns=vze(),$ns=M6r(),eis=qQ(),tis=ZRt(),ris=/[\\^$.*+?()[\]{}|]/g,nis=/^\[object .+?Constructor\]$/,iis=Function.prototype,sis=Object.prototype,ois=iis.toString,ais=sis.hasOwnProperty,cis=RegExp("^"+ois.call(ais).replace(ris,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lis(e){if(!eis(e)||$ns(e))return!1;var t=Zns(e)?cis:nis;return t.test(tis(e))}G6r.exports=lis});var q6r=ae((_3a,H6r)=>{function uis(e,t){return e?.[t]}H6r.exports=uis});var dee=ae((A3a,J6r)=>{var fis=j6r(),pis=q6r();function dis(e,t){var r=pis(e,t);return fis(r)?r:void 0}J6r.exports=dis});var Dze=ae((h3a,V6r)=>{var _is=dee(),Ais=QM(),his=_is(Ais,"Map");V6r.exports=his});var PRe=ae((m3a,W6r)=>{var mis=dee(),gis=mis(Object,"create");W6r.exports=gis});var K6r=ae((g3a,z6r)=>{var Y6r=PRe();function Eis(){this.__data__=Y6r?Y6r(null):{},this.size=0}z6r.exports=Eis});var Z6r=ae((E3a,X6r)=>{function yis(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}X6r.exports=yis});var e8r=ae((y3a,$6r)=>{var Cis=PRe(),Iis="__lodash_hash_undefined__",Tis=Object.prototype,Sis=Tis.hasOwnProperty;function vis(e){var t=this.__data__;if(Cis){var r=t[e];return r===Iis?void 0:r}return Sis.call(t,e)?t[e]:void 0}$6r.exports=vis});var r8r=ae((C3a,t8r)=>{var Dis=PRe(),bis=Object.prototype,wis=bis.hasOwnProperty;function Bis(e){var t=this.__data__;return Dis?t[e]!==void 0:wis.call(t,e)}t8r.exports=Bis});var i8r=ae((I3a,n8r)=>{var xis=PRe(),Nis="__lodash_hash_undefined__";function Ris(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xis&&t===void 0?Nis:t,this}n8r.exports=Ris});var o8r=ae((T3a,s8r)=>{var kis=K6r(),Pis=Z6r(),Ois=e8r(),Fis=r8r(),Lis=i8r();function e0e(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var a8r=o8r(),Qis=RRe(),Mis=Dze();function Uis(){this.size=0,this.__data__={hash:new a8r,map:new(Mis||Qis),string:new a8r}}c8r.exports=Uis});var f8r=ae((v3a,u8r)=>{function Gis(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}u8r.exports=Gis});var ORe=ae((D3a,p8r)=>{var jis=f8r();function His(e,t){var r=e.__data__;return jis(t)?r[typeof t=="string"?"string":"hash"]:r.map}p8r.exports=His});var _8r=ae((b3a,d8r)=>{var qis=ORe();function Jis(e){var t=qis(this,e).delete(e);return this.size-=t?1:0,t}d8r.exports=Jis});var h8r=ae((w3a,A8r)=>{var Vis=ORe();function Wis(e){return Vis(this,e).get(e)}A8r.exports=Wis});var g8r=ae((B3a,m8r)=>{var Yis=ORe();function zis(e){return Yis(this,e).has(e)}m8r.exports=zis});var y8r=ae((x3a,E8r)=>{var Kis=ORe();function Xis(e,t){var r=Kis(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}E8r.exports=Xis});var bze=ae((N3a,C8r)=>{var Zis=l8r(),$is=_8r(),ess=h8r(),tss=g8r(),rss=y8r();function t0e(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var nss=RRe(),iss=Dze(),sss=bze(),oss=200;function ass(e,t){var r=this.__data__;if(r instanceof nss){var s=r.__data__;if(!iss||s.length{var css=RRe(),lss=_6r(),uss=h6r(),fss=g6r(),pss=y6r(),dss=T8r();function r0e(e){var t=this.__data__=new css(e);this.size=t.size}r0e.prototype.clear=lss;r0e.prototype.delete=uss;r0e.prototype.get=fss;r0e.prototype.has=pss;r0e.prototype.set=dss;S8r.exports=r0e});var D8r=ae((P3a,v8r)=>{var _ss="__lodash_hash_undefined__";function Ass(e){return this.__data__.set(e,_ss),this}v8r.exports=Ass});var w8r=ae((O3a,b8r)=>{function hss(e){return this.__data__.has(e)}b8r.exports=hss});var x8r=ae((F3a,B8r)=>{var mss=bze(),gss=D8r(),Ess=w8r();function Bze(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new mss;++t{function yss(e,t){for(var r=-1,s=e==null?0:e.length;++r{function Css(e,t){return e.has(t)}k8r.exports=Css});var $Rt=ae((M3a,O8r)=>{var Iss=x8r(),Tss=R8r(),Sss=P8r(),vss=1,Dss=2;function bss(e,t,r,s,c,o){var f=r&vss,_=e.length,A=t.length;if(_!=A&&!(f&&A>_))return!1;var y=o.get(e),I=o.get(t);if(y&&I)return y==t&&I==e;var D=-1,b=!0,L=r&Dss?new Iss:void 0;for(o.set(e,t),o.set(t,e);++D<_;){var x=e[D],J=t[D];if(s)var Y=f?s(J,x,D,t,e,o):s(x,J,D,e,t,o);if(Y!==void 0){if(Y)continue;b=!1;break}if(L){if(!Tss(t,function(ne,Ae){if(!Sss(L,Ae)&&(x===ne||c(x,ne,r,s,o)))return L.push(Ae)})){b=!1;break}}else if(!(x===J||c(x,J,r,s,o))){b=!1;break}}return o.delete(e),o.delete(t),b}O8r.exports=bss});var ekt=ae((U3a,F8r)=>{var wss=QM(),Bss=wss.Uint8Array;F8r.exports=Bss});var Q8r=ae((G3a,L8r)=>{function xss(e){var t=-1,r=Array(e.size);return e.forEach(function(s,c){r[++t]=[c,s]}),r}L8r.exports=xss});var U8r=ae((j3a,M8r)=>{function Nss(e){var t=-1,r=Array(e.size);return e.forEach(function(s){r[++t]=s}),r}M8r.exports=Nss});var J8r=ae((H3a,q8r)=>{var G8r=uce(),j8r=ekt(),Rss=Zge(),kss=$Rt(),Pss=Q8r(),Oss=U8r(),Fss=1,Lss=2,Qss="[object Boolean]",Mss="[object Date]",Uss="[object Error]",Gss="[object Map]",jss="[object Number]",Hss="[object RegExp]",qss="[object Set]",Jss="[object String]",Vss="[object Symbol]",Wss="[object ArrayBuffer]",Yss="[object DataView]",H8r=G8r?G8r.prototype:void 0,tkt=H8r?H8r.valueOf:void 0;function zss(e,t,r,s,c,o,f){switch(r){case Yss:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wss:return!(e.byteLength!=t.byteLength||!o(new j8r(e),new j8r(t)));case Qss:case Mss:case jss:return Rss(+e,+t);case Uss:return e.name==t.name&&e.message==t.message;case Hss:case Jss:return e==t+"";case Gss:var _=Pss;case qss:var A=s&Fss;if(_||(_=Oss),e.size!=t.size&&!A)return!1;var y=f.get(e);if(y)return y==t;s|=Lss,f.set(e,t);var I=kss(_(e),_(t),s,c,o,f);return f.delete(e),I;case Vss:if(tkt)return tkt.call(e)==tkt.call(t)}return!1}q8r.exports=zss});var xze=ae((q3a,V8r)=>{function Kss(e,t){for(var r=-1,s=t.length,c=e.length;++r{var Xss=Array.isArray;W8r.exports=Xss});var rkt=ae((V3a,Y8r)=>{var Zss=xze(),$ss=R5();function eos(e,t,r){var s=t(e);return $ss(e)?s:Zss(s,r(e))}Y8r.exports=eos});var K8r=ae((W3a,z8r)=>{function tos(e,t){for(var r=-1,s=e==null?0:e.length,c=0,o=[];++r{function ros(){return[]}X8r.exports=ros});var Nze=ae((z3a,$8r)=>{var nos=K8r(),ios=nkt(),sos=Object.prototype,oos=sos.propertyIsEnumerable,Z8r=Object.getOwnPropertySymbols,aos=Z8r?function(e){return e==null?[]:(e=Object(e),nos(Z8r(e),function(t){return oos.call(e,t)}))}:ios;$8r.exports=aos});var tUr=ae((K3a,eUr)=>{function cos(e,t){for(var r=-1,s=Array(e);++r{function los(e){return e!=null&&typeof e=="object"}rUr.exports=los});var iUr=ae((Z3a,nUr)=>{var uos=fce(),fos=vj(),pos="[object Arguments]";function dos(e){return fos(e)&&uos(e)==pos}nUr.exports=dos});var FRe=ae(($3a,aUr)=>{var sUr=iUr(),_os=vj(),oUr=Object.prototype,Aos=oUr.hasOwnProperty,hos=oUr.propertyIsEnumerable,mos=sUr(function(){return arguments}())?sUr:function(e){return _os(e)&&Aos.call(e,"callee")&&!hos.call(e,"callee")};aUr.exports=mos});var lUr=ae((e4a,cUr)=>{function gos(){return!1}cUr.exports=gos});var QRe=ae((LRe,n0e)=>{var Eos=QM(),yos=lUr(),pUr=typeof LRe=="object"&&LRe&&!LRe.nodeType&&LRe,uUr=pUr&&typeof n0e=="object"&&n0e&&!n0e.nodeType&&n0e,Cos=uUr&&uUr.exports===pUr,fUr=Cos?Eos.Buffer:void 0,Ios=fUr?fUr.isBuffer:void 0,Tos=Ios||yos;n0e.exports=Tos});var MRe=ae((t4a,dUr)=>{var Sos=9007199254740991,vos=/^(?:0|[1-9]\d*)$/;function Dos(e,t){var r=typeof e;return t=t??Sos,!!t&&(r=="number"||r!="symbol"&&vos.test(e))&&e>-1&&e%1==0&&e{var bos=9007199254740991;function wos(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bos}_Ur.exports=wos});var hUr=ae((n4a,AUr)=>{var Bos=fce(),xos=Rze(),Nos=vj(),Ros="[object Arguments]",kos="[object Array]",Pos="[object Boolean]",Oos="[object Date]",Fos="[object Error]",Los="[object Function]",Qos="[object Map]",Mos="[object Number]",Uos="[object Object]",Gos="[object RegExp]",jos="[object Set]",Hos="[object String]",qos="[object WeakMap]",Jos="[object ArrayBuffer]",Vos="[object DataView]",Wos="[object Float32Array]",Yos="[object Float64Array]",zos="[object Int8Array]",Kos="[object Int16Array]",Xos="[object Int32Array]",Zos="[object Uint8Array]",$os="[object Uint8ClampedArray]",eas="[object Uint16Array]",tas="[object Uint32Array]",TI={};TI[Wos]=TI[Yos]=TI[zos]=TI[Kos]=TI[Xos]=TI[Zos]=TI[$os]=TI[eas]=TI[tas]=!0;TI[Ros]=TI[kos]=TI[Jos]=TI[Pos]=TI[Vos]=TI[Oos]=TI[Fos]=TI[Los]=TI[Qos]=TI[Mos]=TI[Uos]=TI[Gos]=TI[jos]=TI[Hos]=TI[qos]=!1;function ras(e){return Nos(e)&&xos(e.length)&&!!TI[Bos(e)]}AUr.exports=ras});var kze=ae((i4a,mUr)=>{function nas(e){return function(t){return e(t)}}mUr.exports=nas});var Pze=ae((URe,i0e)=>{var ias=KRt(),gUr=typeof URe=="object"&&URe&&!URe.nodeType&&URe,GRe=gUr&&typeof i0e=="object"&&i0e&&!i0e.nodeType&&i0e,sas=GRe&&GRe.exports===gUr,ikt=sas&&ias.process,oas=function(){try{var e=GRe&&GRe.require&&GRe.require("util").types;return e||ikt&&ikt.binding&&ikt.binding("util")}catch{}}();i0e.exports=oas});var Oze=ae((s4a,CUr)=>{var aas=hUr(),cas=kze(),EUr=Pze(),yUr=EUr&&EUr.isTypedArray,las=yUr?cas(yUr):aas;CUr.exports=las});var skt=ae((o4a,IUr)=>{var uas=tUr(),fas=FRe(),pas=R5(),das=QRe(),_as=MRe(),Aas=Oze(),has=Object.prototype,mas=has.hasOwnProperty;function gas(e,t){var r=pas(e),s=!r&&fas(e),c=!r&&!s&&das(e),o=!r&&!s&&!c&&Aas(e),f=r||s||c||o,_=f?uas(e.length,String):[],A=_.length;for(var y in e)(t||mas.call(e,y))&&!(f&&(y=="length"||c&&(y=="offset"||y=="parent")||o&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||_as(y,A)))&&_.push(y);return _}IUr.exports=gas});var Fze=ae((a4a,TUr)=>{var Eas=Object.prototype;function yas(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Eas;return e===r}TUr.exports=yas});var okt=ae((c4a,SUr)=>{function Cas(e,t){return function(r){return e(t(r))}}SUr.exports=Cas});var DUr=ae((l4a,vUr)=>{var Ias=okt(),Tas=Ias(Object.keys,Object);vUr.exports=Tas});var wUr=ae((u4a,bUr)=>{var Sas=Fze(),vas=DUr(),Das=Object.prototype,bas=Das.hasOwnProperty;function was(e){if(!Sas(e))return vas(e);var t=[];for(var r in Object(e))bas.call(e,r)&&r!="constructor"&&t.push(r);return t}bUr.exports=was});var jRe=ae((f4a,BUr)=>{var Bas=vze(),xas=Rze();function Nas(e){return e!=null&&xas(e.length)&&!Bas(e)}BUr.exports=Nas});var Lze=ae((p4a,xUr)=>{var Ras=skt(),kas=wUr(),Pas=jRe();function Oas(e){return Pas(e)?Ras(e):kas(e)}xUr.exports=Oas});var akt=ae((d4a,NUr)=>{var Fas=rkt(),Las=Nze(),Qas=Lze();function Mas(e){return Fas(e,Qas,Las)}NUr.exports=Mas});var PUr=ae((_4a,kUr)=>{var RUr=akt(),Uas=1,Gas=Object.prototype,jas=Gas.hasOwnProperty;function Has(e,t,r,s,c,o){var f=r&Uas,_=RUr(e),A=_.length,y=RUr(t),I=y.length;if(A!=I&&!f)return!1;for(var D=A;D--;){var b=_[D];if(!(f?b in t:jas.call(t,b)))return!1}var L=o.get(e),x=o.get(t);if(L&&x)return L==t&&x==e;var J=!0;o.set(e,t),o.set(t,e);for(var Y=f;++D{var qas=dee(),Jas=QM(),Vas=qas(Jas,"DataView");OUr.exports=Vas});var QUr=ae((h4a,LUr)=>{var Was=dee(),Yas=QM(),zas=Was(Yas,"Promise");LUr.exports=zas});var UUr=ae((m4a,MUr)=>{var Kas=dee(),Xas=QM(),Zas=Kas(Xas,"Set");MUr.exports=Zas});var jUr=ae((g4a,GUr)=>{var $as=dee(),ecs=QM(),tcs=$as(ecs,"WeakMap");GUr.exports=tcs});var HRe=ae((E4a,zUr)=>{var ckt=FUr(),lkt=Dze(),ukt=QUr(),fkt=UUr(),pkt=jUr(),YUr=fce(),s0e=ZRt(),HUr="[object Map]",rcs="[object Object]",qUr="[object Promise]",JUr="[object Set]",VUr="[object WeakMap]",WUr="[object DataView]",ncs=s0e(ckt),ics=s0e(lkt),scs=s0e(ukt),ocs=s0e(fkt),acs=s0e(pkt),pce=YUr;(ckt&&pce(new ckt(new ArrayBuffer(1)))!=WUr||lkt&&pce(new lkt)!=HUr||ukt&&pce(ukt.resolve())!=qUr||fkt&&pce(new fkt)!=JUr||pkt&&pce(new pkt)!=VUr)&&(pce=function(e){var t=YUr(e),r=t==rcs?e.constructor:void 0,s=r?s0e(r):"";if(s)switch(s){case ncs:return WUr;case ics:return HUr;case scs:return qUr;case ocs:return JUr;case acs:return VUr}return t});zUr.exports=pce});var n5r=ae((y4a,r5r)=>{var dkt=wze(),ccs=$Rt(),lcs=J8r(),ucs=PUr(),KUr=HRe(),XUr=R5(),ZUr=QRe(),fcs=Oze(),pcs=1,$Ur="[object Arguments]",e5r="[object Array]",Qze="[object Object]",dcs=Object.prototype,t5r=dcs.hasOwnProperty;function _cs(e,t,r,s,c,o){var f=XUr(e),_=XUr(t),A=f?e5r:KUr(e),y=_?e5r:KUr(t);A=A==$Ur?Qze:A,y=y==$Ur?Qze:y;var I=A==Qze,D=y==Qze,b=A==y;if(b&&ZUr(e)){if(!ZUr(t))return!1;f=!0,I=!1}if(b&&!I)return o||(o=new dkt),f||fcs(e)?ccs(e,t,r,s,c,o):lcs(e,t,A,r,s,c,o);if(!(r&pcs)){var L=I&&t5r.call(e,"__wrapped__"),x=D&&t5r.call(t,"__wrapped__");if(L||x){var J=L?e.value():e,Y=x?t.value():t;return o||(o=new dkt),c(J,Y,r,s,o)}}return b?(o||(o=new dkt),ucs(e,t,r,s,c,o)):!1}r5r.exports=_cs});var a5r=ae((C4a,o5r)=>{var Acs=n5r(),i5r=vj();function s5r(e,t,r,s,c){return e===t?!0:e==null||t==null||!i5r(e)&&!i5r(t)?e!==e&&t!==t:Acs(e,t,r,s,s5r,c)}o5r.exports=s5r});var l5r=ae((I4a,c5r)=>{var hcs=a5r();function mcs(e,t){return hcs(e,t)}c5r.exports=mcs});var _kt=ae((T4a,u5r)=>{var gcs=dee(),Ecs=function(){try{var e=gcs(Object,"defineProperty");return e({},"",{}),e}catch{}}();u5r.exports=Ecs});var Mze=ae((S4a,p5r)=>{var f5r=_kt();function ycs(e,t,r){t=="__proto__"&&f5r?f5r(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}p5r.exports=ycs});var Akt=ae((v4a,d5r)=>{var Ccs=Mze(),Ics=Zge();function Tcs(e,t,r){(r!==void 0&&!Ics(e[t],r)||r===void 0&&!(t in e))&&Ccs(e,t,r)}d5r.exports=Tcs});var A5r=ae((D4a,_5r)=>{function Scs(e){return function(t,r,s){for(var c=-1,o=Object(t),f=s(t),_=f.length;_--;){var A=f[e?_:++c];if(r(o[A],A,o)===!1)break}return t}}_5r.exports=Scs});var m5r=ae((b4a,h5r)=>{var vcs=A5r(),Dcs=vcs();h5r.exports=Dcs});var hkt=ae((qRe,o0e)=>{var bcs=QM(),C5r=typeof qRe=="object"&&qRe&&!qRe.nodeType&&qRe,g5r=C5r&&typeof o0e=="object"&&o0e&&!o0e.nodeType&&o0e,wcs=g5r&&g5r.exports===C5r,E5r=wcs?bcs.Buffer:void 0,y5r=E5r?E5r.allocUnsafe:void 0;function Bcs(e,t){if(t)return e.slice();var r=e.length,s=y5r?y5r(r):new e.constructor(r);return e.copy(s),s}o0e.exports=Bcs});var Uze=ae((w4a,T5r)=>{var I5r=ekt();function xcs(e){var t=new e.constructor(e.byteLength);return new I5r(t).set(new I5r(e)),t}T5r.exports=xcs});var mkt=ae((B4a,S5r)=>{var Ncs=Uze();function Rcs(e,t){var r=t?Ncs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}S5r.exports=Rcs});var gkt=ae((x4a,v5r)=>{function kcs(e,t){var r=-1,s=e.length;for(t||(t=Array(s));++r{var Pcs=qQ(),D5r=Object.create,Ocs=function(){function e(){}return function(t){if(!Pcs(t))return{};if(D5r)return D5r(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();b5r.exports=Ocs});var Gze=ae((R4a,B5r)=>{var Fcs=okt(),Lcs=Fcs(Object.getPrototypeOf,Object);B5r.exports=Lcs});var Ekt=ae((k4a,x5r)=>{var Qcs=w5r(),Mcs=Gze(),Ucs=Fze();function Gcs(e){return typeof e.constructor=="function"&&!Ucs(e)?Qcs(Mcs(e)):{}}x5r.exports=Gcs});var R5r=ae((P4a,N5r)=>{var jcs=jRe(),Hcs=vj();function qcs(e){return Hcs(e)&&jcs(e)}N5r.exports=qcs});var ykt=ae((O4a,P5r)=>{var Jcs=fce(),Vcs=Gze(),Wcs=vj(),Ycs="[object Object]",zcs=Function.prototype,Kcs=Object.prototype,k5r=zcs.toString,Xcs=Kcs.hasOwnProperty,Zcs=k5r.call(Object);function $cs(e){if(!Wcs(e)||Jcs(e)!=Ycs)return!1;var t=Vcs(e);if(t===null)return!0;var r=Xcs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&k5r.call(r)==Zcs}P5r.exports=$cs});var Ckt=ae((F4a,O5r)=>{function els(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}O5r.exports=els});var jze=ae((L4a,F5r)=>{var tls=Mze(),rls=Zge(),nls=Object.prototype,ils=nls.hasOwnProperty;function sls(e,t,r){var s=e[t];(!(ils.call(e,t)&&rls(s,r))||r===void 0&&!(t in e))&&tls(e,t,r)}F5r.exports=sls});var dce=ae((Q4a,L5r)=>{var ols=jze(),als=Mze();function cls(e,t,r,s){var c=!r;r||(r={});for(var o=-1,f=t.length;++o{function lls(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}Q5r.exports=lls});var G5r=ae((U4a,U5r)=>{var uls=qQ(),fls=Fze(),pls=M5r(),dls=Object.prototype,_ls=dls.hasOwnProperty;function Als(e){if(!uls(e))return pls(e);var t=fls(e),r=[];for(var s in e)s=="constructor"&&(t||!_ls.call(e,s))||r.push(s);return r}U5r.exports=Als});var a0e=ae((G4a,j5r)=>{var hls=skt(),mls=G5r(),gls=jRe();function Els(e){return gls(e)?hls(e,!0):mls(e)}j5r.exports=Els});var q5r=ae((j4a,H5r)=>{var yls=dce(),Cls=a0e();function Ils(e){return yls(e,Cls(e))}H5r.exports=Ils});var K5r=ae((H4a,z5r)=>{var J5r=Akt(),Tls=hkt(),Sls=mkt(),vls=gkt(),Dls=Ekt(),V5r=FRe(),W5r=R5(),bls=R5r(),wls=QRe(),Bls=vze(),xls=qQ(),Nls=ykt(),Rls=Oze(),Y5r=Ckt(),kls=q5r();function Pls(e,t,r,s,c,o,f){var _=Y5r(e,r),A=Y5r(t,r),y=f.get(A);if(y){J5r(e,r,y);return}var I=o?o(_,A,r+"",e,t,f):void 0,D=I===void 0;if(D){var b=W5r(A),L=!b&&wls(A),x=!b&&!L&&Rls(A);I=A,b||L||x?W5r(_)?I=_:bls(_)?I=vls(_):L?(D=!1,I=Tls(A,!0)):x?(D=!1,I=Sls(A,!0)):I=[]:Nls(A)||V5r(A)?(I=_,V5r(_)?I=kls(_):(!xls(_)||Bls(_))&&(I=Dls(A))):D=!1}D&&(f.set(A,I),c(I,A,s,o,f),f.delete(A)),J5r(e,r,I)}z5r.exports=Pls});var $5r=ae((q4a,Z5r)=>{var Ols=wze(),Fls=Akt(),Lls=m5r(),Qls=K5r(),Mls=qQ(),Uls=a0e(),Gls=Ckt();function X5r(e,t,r,s,c){e!==t&&Lls(t,function(o,f){if(c||(c=new Ols),Mls(o))Qls(e,t,f,r,X5r,s,c);else{var _=s?s(Gls(e,f),o,f+"",e,t,c):void 0;_===void 0&&(_=o),Fls(e,f,_)}},Uls)}Z5r.exports=X5r});var Ikt=ae((J4a,e7r)=>{function jls(e){return e}e7r.exports=jls});var r7r=ae((V4a,t7r)=>{function Hls(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}t7r.exports=Hls});var Tkt=ae((W4a,i7r)=>{var qls=r7r(),n7r=Math.max;function Jls(e,t,r){return t=n7r(t===void 0?e.length-1:t,0),function(){for(var s=arguments,c=-1,o=n7r(s.length-t,0),f=Array(o);++c{function Vls(e){return function(){return e}}s7r.exports=Vls});var l7r=ae((z4a,c7r)=>{var Wls=o7r(),a7r=_kt(),Yls=Ikt(),zls=a7r?function(e,t){return a7r(e,"toString",{configurable:!0,enumerable:!1,value:Wls(t),writable:!0})}:Yls;c7r.exports=zls});var f7r=ae((K4a,u7r)=>{var Kls=800,Xls=16,Zls=Date.now;function $ls(e){var t=0,r=0;return function(){var s=Zls(),c=Xls-(s-r);if(r=s,c>0){if(++t>=Kls)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}u7r.exports=$ls});var Skt=ae((X4a,p7r)=>{var eus=l7r(),tus=f7r(),rus=tus(eus);p7r.exports=rus});var _7r=ae((Z4a,d7r)=>{var nus=Ikt(),ius=Tkt(),sus=Skt();function ous(e,t){return sus(ius(e,t,nus),e+"")}d7r.exports=ous});var h7r=ae(($4a,A7r)=>{var aus=Zge(),cus=jRe(),lus=MRe(),uus=qQ();function fus(e,t,r){if(!uus(r))return!1;var s=typeof t;return(s=="number"?cus(r)&&lus(t,r.length):s=="string"&&t in r)?aus(r[t],e):!1}A7r.exports=fus});var g7r=ae((eMa,m7r)=>{var pus=_7r(),dus=h7r();function _us(e){return pus(function(t,r){var s=-1,c=r.length,o=c>1?r[c-1]:void 0,f=c>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(c--,o):void 0,f&&dus(r[0],r[1],f)&&(o=c<3?void 0:o,c=1),t=Object(t);++s{var Aus=$5r(),hus=g7r(),mus=hus(function(e,t,r,s){Aus(e,t,r,s)});E7r.exports=mus});var JQ=ae((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CachingStrategy=exports.DefaultStream=exports.AsyncActions=exports.BufferStream=void 0;exports.isTaggedYarnVersion=isTaggedYarnVersion;exports.plural=plural;exports.escapeRegExp=escapeRegExp;exports.overrideType=overrideType;exports.assertNever=assertNever;exports.validateEnum=validateEnum;exports.mapAndFilter=mapAndFilter;exports.mapAndFind=mapAndFind;exports.isIndexableObject=isIndexableObject;exports.allSettledSafe=allSettledSafe;exports.convertMapsToIndexableObjects=convertMapsToIndexableObjects;exports.getFactoryWithDefault=getFactoryWithDefault;exports.getArrayWithDefault=getArrayWithDefault;exports.getSetWithDefault=getSetWithDefault;exports.getMapWithDefault=getMapWithDefault;exports.releaseAfterUseAsync=releaseAfterUseAsync;exports.prettifyAsyncErrors=prettifyAsyncErrors;exports.prettifySyncErrors=prettifySyncErrors;exports.bufferStream=bufferStream;exports.makeDeferred=makeDeferred;exports.dynamicRequire=dynamicRequire;exports.sortMap=sortMap;exports.buildIgnorePattern=buildIgnorePattern;exports.replaceEnvVariables=replaceEnvVariables;exports.parseBoolean=parseBoolean;exports.parseOptionalBoolean=parseOptionalBoolean;exports.tryParseOptionalBoolean=tryParseOptionalBoolean;exports.isPathLike=isPathLike;exports.mergeIntoTarget=mergeIntoTarget;exports.toMerged=toMerged;exports.groupBy=groupBy;exports.parseInt=parseInt;var tslib_1=(Ma(),li(Qa)),fslib_1=Xo(),clipanion_1=(kl(),li(ff)),isEqual_1=tslib_1.__importDefault(l5r()),mergeWith_1=tslib_1.__importDefault(y7r()),micromatch_1=tslib_1.__importDefault(nR()),p_limit_1=tslib_1.__importDefault(sce()),semver_1=tslib_1.__importDefault(W0()),stream_1=qt("stream");function isTaggedYarnVersion(e){return!!(semver_1.default.valid(e)&&e.match(/^[^-]+(-rc\.[0-9]+)?$/))}function plural(e,{one:t,more:r,zero:s=r}){return e===0?s:e===1?t:r}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function overrideType(e){}function assertNever(e){throw new Error(`Assertion failed: Unexpected object '${e}'`)}function validateEnum(e,t){let r=Object.values(e);if(!r.includes(t))throw new clipanion_1.UsageError(`Invalid value for enumeration: ${JSON.stringify(t)} (expected one of ${r.map(s=>JSON.stringify(s)).join(", ")})`);return t}function mapAndFilter(e,t){let r=[];for(let s of e){let c=t(s);c!==mapAndFilterSkip&&r.push(c)}return r}var mapAndFilterSkip=Symbol();mapAndFilter.skip=mapAndFilterSkip;function mapAndFind(e,t){for(let r of e){let s=t(r);if(s!==mapAndFindSkip)return s}}var mapAndFindSkip=Symbol();mapAndFind.skip=mapAndFindSkip;function isIndexableObject(e){return typeof e=="object"&&e!==null}async function allSettledSafe(e){let t=await Promise.allSettled(e),r=[];for(let s of t){if(s.status==="rejected")throw s.reason;r.push(s.value)}return r}function convertMapsToIndexableObjects(e){if(e instanceof Map&&(e=Object.fromEntries(e)),isIndexableObject(e))for(let t of Object.keys(e)){let r=e[t];isIndexableObject(r)&&(e[t]=convertMapsToIndexableObjects(r))}return e}function getFactoryWithDefault(e,t,r){let s=e.get(t);return typeof s>"u"&&e.set(t,s=r()),s}function getArrayWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=[]),r}function getSetWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=new Set),r}function getMapWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=new Map),r}async function releaseAfterUseAsync(e,t){if(t==null)return await e();try{return await e()}finally{await t()}}async function prettifyAsyncErrors(e,t){try{return await e()}catch(r){throw r.message=t(r.message),r}}function prettifySyncErrors(e,t){try{return e()}catch(r){throw r.message=t(r.message),r}}async function bufferStream(e){return await new Promise((t,r)=>{let s=[];e.on("error",c=>{r(c)}),e.on("data",c=>{s.push(c)}),e.on("end",()=>{t(Buffer.concat(s))})})}var BufferStream=class extends stream_1.Transform{constructor(){super(...arguments),this.chunks=[]}_transform(t,r,s){if(r!=="buffer"||!Buffer.isBuffer(t))throw new Error("Assertion failed: BufferStream only accept buffers");this.chunks.push(t),s(null,null)}_flush(t){t(null,Buffer.concat(this.chunks))}};exports.BufferStream=BufferStream;function makeDeferred(){let e,t;return{promise:new Promise((s,c)=>{e=s,t=c}),resolve:e,reject:t}}var AsyncActions=class{constructor(t){this.deferred=new Map,this.promises=new Map,this.limit=(0,p_limit_1.default)(t)}set(t,r){let s=this.deferred.get(t);typeof s>"u"&&this.deferred.set(t,s=makeDeferred());let c=this.limit(()=>r());return this.promises.set(t,c),c.then(()=>{this.promises.get(t)===c&&s.resolve()},o=>{this.promises.get(t)===c&&s.reject(o)}),s.promise}reduce(t,r){let s=this.promises.get(t)??Promise.resolve();this.set(t,()=>r(s))}async wait(){await Promise.all(this.promises.values())}};exports.AsyncActions=AsyncActions;var DefaultStream=class extends stream_1.Transform{constructor(t=Buffer.alloc(0)){super(),this.active=!0,this.ifEmpty=t}_transform(t,r,s){if(r!=="buffer"||!Buffer.isBuffer(t))throw new Error("Assertion failed: DefaultStream only accept buffers");this.active=!1,s(null,t)}_flush(t){this.active&&this.ifEmpty.length>0?t(null,this.ifEmpty):t(null)}};exports.DefaultStream=DefaultStream;var realRequire=eval("require");function dynamicRequireNode(e){return realRequire(fslib_1.npath.fromPortablePath(e))}function dynamicRequireNoCache(path){let physicalPath=fslib_1.npath.fromPortablePath(path),currentCacheEntry=realRequire.cache[physicalPath];delete realRequire.cache[physicalPath];let result;try{result=dynamicRequireNode(physicalPath);let freshCacheEntry=realRequire.cache[physicalPath],dynamicModule=eval("module"),freshCacheIndex=dynamicModule.children?dynamicModule.children.indexOf(freshCacheEntry):-1;freshCacheIndex!==-1&&dynamicModule.children.splice(freshCacheIndex,1)}finally{realRequire.cache[physicalPath]=currentCacheEntry}return result}var dynamicRequireFsTimeCache=new Map;function dynamicRequireFsTime(e){let t=dynamicRequireFsTimeCache.get(e),r=fslib_1.xfs.statSync(e);if(t?.mtime===r.mtimeMs)return t.instance;let s=dynamicRequireNoCache(e);return dynamicRequireFsTimeCache.set(e,{mtime:r.mtimeMs,instance:s}),s}var CachingStrategy;(function(e){e[e.NoCache=0]="NoCache",e[e.FsTime=1]="FsTime",e[e.Node=2]="Node"})(CachingStrategy||(exports.CachingStrategy=CachingStrategy={}));function dynamicRequire(e,{cachingStrategy:t=CachingStrategy.Node}={}){switch(t){case CachingStrategy.NoCache:return dynamicRequireNoCache(e);case CachingStrategy.FsTime:return dynamicRequireFsTime(e);case CachingStrategy.Node:return dynamicRequireNode(e);default:throw new Error("Unsupported caching strategy")}}function sortMap(e,t){let r=Array.from(e);Array.isArray(t)||(t=[t]);let s=[];for(let o of t)s.push(r.map(f=>o(f)));let c=r.map((o,f)=>f);return c.sort((o,f)=>{for(let _ of s){let A=_[o]<_[f]?-1:_[o]>_[f]?1:0;if(A!==0)return A}return 0}),c.map(o=>r[o])}function buildIgnorePattern(e){return e.length===0?null:e.map(t=>`(${micromatch_1.default.makeRe(t,{windows:!1,dot:!0}).source})`).join("|")}function replaceEnvVariables(e,{env:t}){let r=/\${(?[\d\w_]+)(?:)?(?:-(?[^}]*))?}/g;return e.replace(r,(...s)=>{let{variableName:c,colon:o,fallback:f}=s[s.length-1],_=Object.hasOwn(t,c),A=t[c];if(A||_&&!o)return A;if(f!=null)return f;throw new clipanion_1.UsageError(`Environment variable not found (${c})`)})}function parseBoolean(e){switch(e){case"true":case"1":case 1:case!0:return!0;case"false":case"0":case 0:case!1:return!1;default:throw new Error(`Couldn't parse "${e}" as a boolean`)}}function parseOptionalBoolean(e){return typeof e>"u"?e:parseBoolean(e)}function tryParseOptionalBoolean(e){try{return parseOptionalBoolean(e)}catch{return null}}function isPathLike(e){return!!(fslib_1.npath.isAbsolute(e)||e.match(/^(\.{1,2}|~)\//))}function mergeIntoTarget(e,...t){let r=f=>({value:f}),s=r(e),c=t.map(f=>r(f)),{value:o}=(0,mergeWith_1.default)(s,...c,(f,_)=>{if(Array.isArray(f)&&Array.isArray(_)){for(let A of _)f.find(y=>(0,isEqual_1.default)(y,A))||f.push(A);return f}});return o}function toMerged(...e){return mergeIntoTarget({},...e)}function groupBy(e,t){let r=Object.create(null);for(let s of e){let c=s[t];r[c]??=[],r[c].push(s)}return r}function parseInt(e){return typeof e=="string"?Number.parseInt(e,10):e}});var _ce=ae(_ee=>{"use strict";Object.defineProperty(_ee,"__esModule",{value:!0});_ee.PackageExtensionStatus=_ee.PackageExtensionType=_ee.LinkType=void 0;var C7r;(function(e){e.HARD="HARD",e.SOFT="SOFT"})(C7r||(_ee.LinkType=C7r={}));var I7r;(function(e){e.Dependency="Dependency",e.PeerDependency="PeerDependency",e.PeerDependencyMeta="PeerDependencyMeta"})(I7r||(_ee.PackageExtensionType=I7r={}));var T7r;(function(e){e.Inactive="inactive",e.Redundant="redundant",e.Active="active"})(T7r||(_ee.PackageExtensionStatus=T7r={}))});var MM=ae(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.LogLevel=wf.supportsHyperlinks=wf.supportsColor=wf.Style=wf.Type=wf.stripAnsi=void 0;wf.tuple=Tus;wf.applyStyle=b7r;wf.applyColor=xx;wf.applyHyperlink=w7r;wf.pretty=Ace;wf.prettyList=vus;wf.json=B7r;wf.jsonOrPretty=Dus;wf.mark=bus;wf.prettyField=wus;wf.prettyTruncatedLocatorList=Bus;wf.addLogFilterSupport=xus;var l0e=(Ma(),li(Qa)),S7r=Xo(),Jze=l0e.__importDefault(kRt()),qze=l0e.__importDefault(ice()),gus=(kl(),li(ff)),Eus=l0e.__importDefault(nR()),D7r=l0e.__importDefault(N5());wf.stripAnsi=D7r.default;var yus=qt("util"),Hze=AF(),Cus=l0e.__importStar(JQ()),wC=l0e.__importStar(sR()),c0e=_ce();wf.Type={NO_HINT:"NO_HINT",ID:"ID",NULL:"NULL",SCOPE:"SCOPE",NAME:"NAME",RANGE:"RANGE",REFERENCE:"REFERENCE",NUMBER:"NUMBER",PATH:"PATH",URL:"URL",ADDED:"ADDED",REMOVED:"REMOVED",CODE:"CODE",INSPECT:"INSPECT",DURATION:"DURATION",SIZE:"SIZE",SIZE_DIFF:"SIZE_DIFF",IDENT:"IDENT",DESCRIPTOR:"DESCRIPTOR",LOCATOR:"LOCATOR",RESOLUTION:"RESOLUTION",DEPENDENT:"DEPENDENT",PACKAGE_EXTENSION:"PACKAGE_EXTENSION",SETTING:"SETTING",MARKDOWN:"MARKDOWN",MARKDOWN_INLINE:"MARKDOWN_INLINE"};var Vze;(function(e){e[e.BOLD=2]="BOLD"})(Vze||(wf.Style=Vze={}));var Dkt=qze.default.GITHUB_ACTIONS?{level:2}:Jze.default.supportsColor?{level:Jze.default.supportsColor.level}:{level:0};wf.supportsColor=Dkt.level!==0;wf.supportsHyperlinks=wf.supportsColor&&!qze.default.GITHUB_ACTIONS&&!qze.default.CIRCLE&&!qze.default.GITLAB;var vkt=new Jze.default.Instance(Dkt),Ius=new Map([[wf.Type.NO_HINT,null],[wf.Type.NULL,["#a853b5",129]],[wf.Type.SCOPE,["#d75f00",166]],[wf.Type.NAME,["#d7875f",173]],[wf.Type.RANGE,["#00afaf",37]],[wf.Type.REFERENCE,["#87afff",111]],[wf.Type.NUMBER,["#ffd700",220]],[wf.Type.PATH,["#d75fd7",170]],[wf.Type.URL,["#d75fd7",170]],[wf.Type.ADDED,["#5faf00",70]],[wf.Type.REMOVED,["#ff3131",160]],[wf.Type.CODE,["#87afff",111]],[wf.Type.SIZE,["#ffd700",220]]]),iR=e=>e;function v7r(e){let t=["KiB","MiB","GiB","TiB"],r=t.length;for(;r>1&&e<1024**r;)r-=1;let s=1024**r;return`${Math.floor(e*100/s)/100} ${t[r-1]}`}var Wze={[wf.Type.ID]:iR({pretty:(e,t)=>typeof t=="number"?xx(e,`${t}`,wf.Type.NUMBER):xx(e,t,wf.Type.CODE),json:e=>e}),[wf.Type.INSPECT]:iR({pretty:(e,t)=>(0,yus.inspect)(t,{depth:1/0,colors:e.get("enableColors"),compact:!0,breakLength:1/0}),json:e=>e}),[wf.Type.NUMBER]:iR({pretty:(e,t)=>xx(e,`${t}`,wf.Type.NUMBER),json:e=>e}),[wf.Type.IDENT]:iR({pretty:(e,t)=>wC.prettyIdent(e,t),json:e=>wC.stringifyIdent(e)}),[wf.Type.LOCATOR]:iR({pretty:(e,t)=>wC.prettyLocator(e,t),json:e=>wC.stringifyLocator(e)}),[wf.Type.DESCRIPTOR]:iR({pretty:(e,t)=>wC.prettyDescriptor(e,t),json:e=>wC.stringifyDescriptor(e)}),[wf.Type.RESOLUTION]:iR({pretty:(e,{descriptor:t,locator:r})=>wC.prettyResolution(e,t,r),json:({descriptor:e,locator:t})=>({descriptor:wC.stringifyDescriptor(e),locator:t!==null?wC.stringifyLocator(t):null})}),[wf.Type.DEPENDENT]:iR({pretty:(e,{locator:t,descriptor:r})=>wC.prettyDependent(e,t,r),json:({locator:e,descriptor:t})=>({locator:wC.stringifyLocator(e),descriptor:wC.stringifyDescriptor(t)})}),[wf.Type.PACKAGE_EXTENSION]:iR({pretty:(e,t)=>{switch(t.type){case c0e.PackageExtensionType.Dependency:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"dependencies",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,t.descriptor)}`;case c0e.PackageExtensionType.PeerDependency:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"peerDependencies",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,t.descriptor)}`;case c0e.PackageExtensionType.PeerDependencyMeta:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"peerDependenciesMeta",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,wC.parseIdent(t.selector))} \u27A4 ${xx(e,t.key,wf.Type.CODE)}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${t.type}`)}},json:e=>{switch(e.type){case c0e.PackageExtensionType.Dependency:return`${wC.stringifyIdent(e.parentDescriptor)} > ${wC.stringifyIdent(e.descriptor)}`;case c0e.PackageExtensionType.PeerDependency:return`${wC.stringifyIdent(e.parentDescriptor)} >> ${wC.stringifyIdent(e.descriptor)}`;case c0e.PackageExtensionType.PeerDependencyMeta:return`${wC.stringifyIdent(e.parentDescriptor)} >> ${e.selector} / ${e.key}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${e.type}`)}}}),[wf.Type.SETTING]:iR({pretty:(e,t)=>(e.get(t),w7r(e,xx(e,t,wf.Type.CODE),`https://yarnpkg.com/configuration/yarnrc#${t}`)),json:e=>e}),[wf.Type.DURATION]:iR({pretty:(e,t)=>{if(t>1e3*60){let r=Math.floor(t/1e3/60),s=Math.ceil((t-r*60*1e3)/1e3);return s===0?`${r}m`:`${r}m ${s}s`}else{let r=Math.floor(t/1e3),s=t-r*1e3;return s===0?`${r}s`:`${r}s ${s}ms`}},json:e=>e}),[wf.Type.SIZE]:iR({pretty:(e,t)=>xx(e,v7r(t),wf.Type.NUMBER),json:e=>e}),[wf.Type.SIZE_DIFF]:iR({pretty:(e,t)=>{let r=t>=0?"+":"-",s=r==="+"?wf.Type.REMOVED:wf.Type.ADDED;return xx(e,`${r} ${v7r(Math.max(Math.abs(t),1))}`,s)},json:e=>e}),[wf.Type.PATH]:iR({pretty:(e,t)=>xx(e,S7r.npath.fromPortablePath(t),wf.Type.PATH),json:e=>S7r.npath.fromPortablePath(e)}),[wf.Type.MARKDOWN]:iR({pretty:(e,{text:t,format:r,paragraphs:s})=>(0,gus.formatMarkdownish)(t,{format:r,paragraphs:s}),json:({text:e})=>e}),[wf.Type.MARKDOWN_INLINE]:iR({pretty:(e,t)=>(t=t.replace(/(`+)((?:.|[\n])*?)\1/g,(r,s,c)=>Ace(e,s+c+s,wf.Type.CODE)),t=t.replace(/(\*\*)((?:.|[\n])*?)\1/g,(r,s,c)=>b7r(e,c,Vze.BOLD)),t),json:e=>e})};function Tus(e,t){return[t,e]}function b7r(e,t,r){return e.get("enableColors")&&r&Vze.BOLD&&(t=Jze.default.bold(t)),t}function xx(e,t,r){if(!e.get("enableColors"))return t;let s=Ius.get(r);if(s===null)return t;let c=typeof s>"u"?r:Dkt.level>=3?s[0]:s[1],o=typeof c=="number"?vkt.ansi256(c):c.startsWith("#")?vkt.hex(c):vkt[c];if(typeof o!="function")throw new Error(`Invalid format type ${c}`);return o(t)}var Sus=!!process.env.KONSOLE_VERSION;function w7r(e,t,r){return e.get("enableHyperlinks")?Sus?`\x1B]8;;${r}\x1B\\${t}\x1B]8;;\x1B\\`:`\x1B]8;;${r}\x07${t}\x1B]8;;\x07`:t}function Ace(e,t,r){if(t===null)return xx(e,"null",wf.Type.NULL);if(Object.hasOwn(Wze,r))return Wze[r].pretty(e,t);if(typeof t!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof t}`);return xx(e,t,r)}function vus(e,t,r,{separator:s=", "}={}){return[...t].map(c=>Ace(e,c,r)).join(s)}function B7r(e,t){if(e===null)return null;if(Object.hasOwn(Wze,t))return Cus.overrideType(t),Wze[t].json(e);if(typeof e!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof e}`);return e}function Dus(e,t,[r,s]){return e?B7r(r,s):Ace(t,r,s)}function bus(e){return{Check:xx(e,"\u2713","green"),Cross:xx(e,"\u2718","red"),Question:xx(e,"?","cyan")}}function wus(e,{label:t,value:[r,s]}){return`${Ace(e,t,wf.Type.CODE)}: ${Ace(e,r,s)}`}function Bus(e,t,r){let s=[],c=[...t],o=r;for(;c.length>0;){let y=c[0],I=`${wC.prettyLocator(e,y)}, `,D=wC.prettyLocatorNoColors(y).length+2;if(s.length>0&&oy).join("").slice(0,-2);let f="X".repeat(c.length.toString().length),_=`and ${f} more.`,A=c.length;for(;s.length>1&&o<_.length;)o+=s[s.length-1][1],A+=1,s.pop();return[s.map(([y])=>y).join(""),_.replace(f,Ace(e,A,wf.Type.NUMBER))].join("")}var Aee;(function(e){e.Error="error",e.Warning="warning",e.Info="info",e.Discard="discard"})(Aee||(wf.LogLevel=Aee={}));function xus(e,{configuration:t}){let r=t.get("logFilters"),s=new Map,c=new Map,o=[];for(let D of r){let b=D.get("level");if(typeof b>"u")continue;let L=D.get("code");typeof L<"u"&&s.set(L,b);let x=D.get("text");typeof x<"u"&&c.set(x,b);let J=D.get("pattern");typeof J<"u"&&o.push([Eus.default.matcher(J,{contains:!0}),b])}o.reverse();let f=(D,b,L)=>{if(D===null||D===Hze.MessageName.UNNAMED)return L;let x=c.size>0||o.length>0?(0,D7r.default)(b):b;if(c.size>0){let J=c.get(x);if(typeof J<"u")return J??L}if(o.length>0){for(let[J,Y]of o)if(J(x))return Y??L}if(s.size>0){let J=s.get((0,Hze.stringifyMessageName)(D));if(typeof J<"u")return J??L}return L},_=e.reportInfo,A=e.reportWarning,y=e.reportError,I=function(D,b,L,x){switch(f(b,L,x)){case Aee.Info:_.call(D,b,L);break;case Aee.Warning:A.call(D,b??Hze.MessageName.UNNAMED,L);break;case Aee.Error:y.call(D,b??Hze.MessageName.UNNAMED,L);break}};e.reportInfo=function(...D){return I(this,...D,Aee.Info)},e.reportWarning=function(...D){return I(this,...D,Aee.Warning)},e.reportError=function(...D){return I(this,...D,Aee.Error)}}});var x7r=ae(u0e=>{"use strict";Object.defineProperty(u0e,"__esModule",{value:!0});u0e.splitWhen=u0e.flatten=void 0;function Nus(e){return e.reduce((t,r)=>[].concat(t,r),[])}u0e.flatten=Nus;function Rus(e,t){let r=[[]],s=0;for(let c of e)t(c)?(s++,r[s]=[]):r[s].push(c);return r}u0e.splitWhen=Rus});var N7r=ae(Yze=>{"use strict";Object.defineProperty(Yze,"__esModule",{value:!0});Yze.isEnoentCodeError=void 0;function kus(e){return e.code==="ENOENT"}Yze.isEnoentCodeError=kus});var R7r=ae(zze=>{"use strict";Object.defineProperty(zze,"__esModule",{value:!0});zze.createDirentFromStats=void 0;var bkt=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Pus(e,t){return new bkt(e,t)}zze.createDirentFromStats=Pus});var F7r=ae(BD=>{"use strict";Object.defineProperty(BD,"__esModule",{value:!0});BD.convertPosixPathToPattern=BD.convertWindowsPathToPattern=BD.convertPathToPattern=BD.escapePosixPath=BD.escapeWindowsPath=BD.escape=BD.removeLeadingDotSegment=BD.makeAbsolute=BD.unixify=void 0;var Ous=qt("os"),Fus=qt("path"),k7r=Ous.platform()==="win32",Lus=2,Qus=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Mus=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Uus=/^\\\\([.?])/,Gus=/\\(?![!()+@[\]{}])/g;function jus(e){return e.replace(/\\/g,"/")}BD.unixify=jus;function Hus(e,t){return Fus.resolve(e,t)}BD.makeAbsolute=Hus;function qus(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Lus)}return e}BD.removeLeadingDotSegment=qus;BD.escape=k7r?wkt:Bkt;function wkt(e){return e.replace(Mus,"\\$2")}BD.escapeWindowsPath=wkt;function Bkt(e){return e.replace(Qus,"\\$2")}BD.escapePosixPath=Bkt;BD.convertPathToPattern=k7r?P7r:O7r;function P7r(e){return wkt(e).replace(Uus,"//$1").replace(Gus,"/")}BD.convertWindowsPathToPattern=P7r;function O7r(e){return Bkt(e)}BD.convertPosixPathToPattern=O7r});var Q7r=ae((cMa,L7r)=>{L7r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var G7r=ae((lMa,U7r)=>{var Jus=Q7r(),M7r={"{":"}","(":")","[":"]"},Vus=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,s=-2,c=-2,o=-2,f=-2;tt&&(f===-1||f>s||(f=e.indexOf("\\",t),f===-1||f>s)))||c!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(c=e.indexOf("}",t),c>t&&(f=e.indexOf("\\",t),f===-1||f>c))||o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(o=e.indexOf(")",t),o>t&&(f=e.indexOf("\\",t),f===-1||f>o))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(rr&&(f=e.indexOf("\\",r),f===-1||f>o))))return!0;if(e[t]==="\\"){var _=e[t+1];t+=2;var A=M7r[_];if(A){var y=e.indexOf(A,t);y!==-1&&(t=y+1)}if(e[t]==="!")return!0}else t++}return!1},Wus=function(e){if(e[0]==="!")return!0;for(var t=0;t{"use strict";var Yus=G7r(),zus=qt("path").posix.dirname,Kus=qt("os").platform()==="win32",xkt="/",Xus=/\\/g,Zus=/[\{\[].*[\}\]]$/,$us=/(^|[^\\])([\{\[]|\([^\)]+$)/,efs=/\\([\!\*\?\|\[\]\(\)\{\}])/g;j7r.exports=function(t,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&Kus&&t.indexOf(xkt)<0&&(t=t.replace(Xus,xkt)),Zus.test(t)&&(t+=xkt),t+="a";do t=zus(t);while(Yus(t)||$us.test(t));return t.replace(efs,"$1")}});var X7r=ae(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.removeDuplicateSlashes=JA.matchAny=JA.convertPatternsToRe=JA.makeRe=JA.getPatternParts=JA.expandBraceExpansion=JA.expandPatternsWithBraceExpansion=JA.isAffectDepthOfReadingPattern=JA.endsWithSlashGlobStar=JA.hasGlobStar=JA.getBaseDirectory=JA.isPatternRelatedToParentDirectory=JA.getPatternsOutsideCurrentDirectory=JA.getPatternsInsideCurrentDirectory=JA.getPositivePatterns=JA.getNegativePatterns=JA.isPositivePattern=JA.isNegativePattern=JA.convertToNegativePattern=JA.convertToPositivePattern=JA.isDynamicPattern=JA.isStaticPattern=void 0;var tfs=qt("path"),rfs=H7r(),Nkt=nR(),q7r="**",nfs="\\",ifs=/[*?]|^!/,sfs=/\[[^[]*]/,ofs=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,afs=/[!*+?@]\([^(]*\)/,cfs=/,|\.\./,lfs=/(?!^)\/{2,}/g;function J7r(e,t={}){return!V7r(e,t)}JA.isStaticPattern=J7r;function V7r(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(nfs)||ifs.test(e)||sfs.test(e)||ofs.test(e)||t.extglob!==!1&&afs.test(e)||t.braceExpansion!==!1&&ufs(e))}JA.isDynamicPattern=V7r;function ufs(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let s=e.slice(t,r);return cfs.test(s)}function ffs(e){return Kze(e)?e.slice(1):e}JA.convertToPositivePattern=ffs;function pfs(e){return"!"+e}JA.convertToNegativePattern=pfs;function Kze(e){return e.startsWith("!")&&e[1]!=="("}JA.isNegativePattern=Kze;function W7r(e){return!Kze(e)}JA.isPositivePattern=W7r;function dfs(e){return e.filter(Kze)}JA.getNegativePatterns=dfs;function _fs(e){return e.filter(W7r)}JA.getPositivePatterns=_fs;function Afs(e){return e.filter(t=>!Rkt(t))}JA.getPatternsInsideCurrentDirectory=Afs;function hfs(e){return e.filter(Rkt)}JA.getPatternsOutsideCurrentDirectory=hfs;function Rkt(e){return e.startsWith("..")||e.startsWith("./..")}JA.isPatternRelatedToParentDirectory=Rkt;function mfs(e){return rfs(e,{flipBackslashes:!1})}JA.getBaseDirectory=mfs;function gfs(e){return e.includes(q7r)}JA.hasGlobStar=gfs;function Y7r(e){return e.endsWith("/"+q7r)}JA.endsWithSlashGlobStar=Y7r;function Efs(e){let t=tfs.basename(e);return Y7r(e)||J7r(t)}JA.isAffectDepthOfReadingPattern=Efs;function yfs(e){return e.reduce((t,r)=>t.concat(z7r(r)),[])}JA.expandPatternsWithBraceExpansion=yfs;function z7r(e){let t=Nkt.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,s)=>r.length-s.length),t.filter(r=>r!=="")}JA.expandBraceExpansion=z7r;function Cfs(e,t){let{parts:r}=Nkt.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}JA.getPatternParts=Cfs;function K7r(e,t){return Nkt.makeRe(e,t)}JA.makeRe=K7r;function Ifs(e,t){return e.map(r=>K7r(r,t))}JA.convertPatternsToRe=Ifs;function Tfs(e,t){return t.some(r=>r.test(e))}JA.matchAny=Tfs;function Sfs(e){return e.replace(lfs,"/")}JA.removeDuplicateSlashes=Sfs});var kkt=ae((pMa,e9r)=>{"use strict";var vfs=qt("stream"),Z7r=vfs.PassThrough,Dfs=Array.prototype.slice;e9r.exports=bfs;function bfs(){let e=[],t=Dfs.call(arguments),r=!1,s=t[t.length-1];s&&!Array.isArray(s)&&s.pipe==null?t.pop():s={};let c=s.end!==!1,o=s.pipeError===!0;s.objectMode==null&&(s.objectMode=!0),s.highWaterMark==null&&(s.highWaterMark=64*1024);let f=Z7r(s);function _(){for(let I=0,D=arguments.length;I0||(r=!1,A())}function L(x){function J(){x.removeListener("merge2UnpipeEnd",J),x.removeListener("end",J),o&&x.removeListener("error",Y),b()}function Y(ne){f.emit("error",ne)}if(x._readableState.endEmitted)return b();x.on("merge2UnpipeEnd",J),x.on("end",J),o&&x.on("error",Y),x.pipe(f,{end:!1}),x.resume()}for(let x=0;x{"use strict";Object.defineProperty(Xze,"__esModule",{value:!0});Xze.merge=void 0;var wfs=kkt();function Bfs(e){let t=wfs(e);return e.forEach(r=>{r.once("error",s=>t.emit("error",s))}),t.once("close",()=>t9r(e)),t.once("end",()=>t9r(e)),t}Xze.merge=Bfs;function t9r(e){e.forEach(t=>t.emit("close"))}});var n9r=ae(f0e=>{"use strict";Object.defineProperty(f0e,"__esModule",{value:!0});f0e.isEmpty=f0e.isString=void 0;function xfs(e){return typeof e=="string"}f0e.isString=xfs;function Nfs(e){return e===""}f0e.isEmpty=Nfs});var QW=ae(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.string=oR.stream=oR.pattern=oR.path=oR.fs=oR.errno=oR.array=void 0;var Rfs=x7r();oR.array=Rfs;var kfs=N7r();oR.errno=kfs;var Pfs=R7r();oR.fs=Pfs;var Ofs=F7r();oR.path=Ofs;var Ffs=X7r();oR.pattern=Ffs;var Lfs=r9r();oR.stream=Lfs;var Qfs=n9r();oR.string=Qfs});var a9r=ae(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.convertPatternGroupToTask=aR.convertPatternGroupsToTasks=aR.groupPatternsByBaseDirectory=aR.getNegativePatternsAsPositive=aR.getPositivePatterns=aR.convertPatternsToTasks=aR.generate=void 0;var k5=QW();function Mfs(e,t){let r=i9r(e,t),s=i9r(t.ignore,t),c=s9r(r),o=o9r(r,s),f=c.filter(I=>k5.pattern.isStaticPattern(I,t)),_=c.filter(I=>k5.pattern.isDynamicPattern(I,t)),A=Pkt(f,o,!1),y=Pkt(_,o,!0);return A.concat(y)}aR.generate=Mfs;function i9r(e,t){let r=e;return t.braceExpansion&&(r=k5.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(s=>s.includes("/")?s:`**/${s}`)),r.map(s=>k5.pattern.removeDuplicateSlashes(s))}function Pkt(e,t,r){let s=[],c=k5.pattern.getPatternsOutsideCurrentDirectory(e),o=k5.pattern.getPatternsInsideCurrentDirectory(e),f=Okt(c),_=Okt(o);return s.push(...Fkt(f,t,r)),"."in _?s.push(Lkt(".",o,t,r)):s.push(...Fkt(_,t,r)),s}aR.convertPatternsToTasks=Pkt;function s9r(e){return k5.pattern.getPositivePatterns(e)}aR.getPositivePatterns=s9r;function o9r(e,t){return k5.pattern.getNegativePatterns(e).concat(t).map(k5.pattern.convertToPositivePattern)}aR.getNegativePatternsAsPositive=o9r;function Okt(e){let t={};return e.reduce((r,s)=>{let c=k5.pattern.getBaseDirectory(s);return c in r?r[c].push(s):r[c]=[s],r},t)}aR.groupPatternsByBaseDirectory=Okt;function Fkt(e,t,r){return Object.keys(e).map(s=>Lkt(s,e[s],t,r))}aR.convertPatternGroupsToTasks=Fkt;function Lkt(e,t,r,s){return{dynamic:s,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(k5.pattern.convertToNegativePattern))}}aR.convertPatternGroupToTask=Lkt});var l9r=ae(Zze=>{"use strict";Object.defineProperty(Zze,"__esModule",{value:!0});Zze.read=void 0;function Ufs(e,t,r){t.fs.lstat(e,(s,c)=>{if(s!==null){c9r(r,s);return}if(!c.isSymbolicLink()||!t.followSymbolicLink){Qkt(r,c);return}t.fs.stat(e,(o,f)=>{if(o!==null){if(t.throwErrorOnBrokenSymbolicLink){c9r(r,o);return}Qkt(r,c);return}t.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Qkt(r,f)})})}Zze.read=Ufs;function c9r(e,t){e(t)}function Qkt(e,t){e(null,t)}});var u9r=ae($ze=>{"use strict";Object.defineProperty($ze,"__esModule",{value:!0});$ze.read=void 0;function Gfs(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let s=t.fs.statSync(e);return t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw s}}$ze.read=Gfs});var f9r=ae(hee=>{"use strict";Object.defineProperty(hee,"__esModule",{value:!0});hee.createFileSystemAdapter=hee.FILE_SYSTEM_ADAPTER=void 0;var eKe=qt("fs");hee.FILE_SYSTEM_ADAPTER={lstat:eKe.lstat,stat:eKe.stat,lstatSync:eKe.lstatSync,statSync:eKe.statSync};function jfs(e){return e===void 0?hee.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},hee.FILE_SYSTEM_ADAPTER),e)}hee.createFileSystemAdapter=jfs});var p9r=ae(Ukt=>{"use strict";Object.defineProperty(Ukt,"__esModule",{value:!0});var Hfs=f9r(),Mkt=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Hfs.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Ukt.default=Mkt});var hce=ae(mee=>{"use strict";Object.defineProperty(mee,"__esModule",{value:!0});mee.statSync=mee.stat=mee.Settings=void 0;var d9r=l9r(),qfs=u9r(),Gkt=p9r();mee.Settings=Gkt.default;function Jfs(e,t,r){if(typeof t=="function"){d9r.read(e,jkt(),t);return}d9r.read(e,jkt(t),r)}mee.stat=Jfs;function Vfs(e,t){let r=jkt(t);return qfs.read(e,r)}mee.statSync=Vfs;function jkt(e={}){return e instanceof Gkt.default?e:new Gkt.default(e)}});var h9r=ae((IMa,A9r)=>{var _9r;A9r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(_9r||(_9r=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var g9r=ae((TMa,m9r)=>{m9r.exports=Yfs;var Wfs=h9r();function Yfs(e,t){let r,s,c,o=!0;Array.isArray(e)?(r=[],s=e.length):(c=Object.keys(e),r={},s=c.length);function f(A){function y(){t&&t(A,r),t=null}o?Wfs(y):y()}function _(A,y,I){r[A]=I,(--s===0||y)&&f(y)}s?c?c.forEach(function(A){e[A](function(y,I){_(A,y,I)})}):e.forEach(function(A,y){A(function(I,D){_(y,I,D)})}):f(null),o=!1}});var Hkt=ae(rKe=>{"use strict";Object.defineProperty(rKe,"__esModule",{value:!0});rKe.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var tKe=process.versions.node.split(".");if(tKe[0]===void 0||tKe[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var E9r=Number.parseInt(tKe[0],10),zfs=Number.parseInt(tKe[1],10),y9r=10,Kfs=10,Xfs=E9r>y9r,Zfs=E9r===y9r&&zfs>=Kfs;rKe.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Xfs||Zfs});var C9r=ae(nKe=>{"use strict";Object.defineProperty(nKe,"__esModule",{value:!0});nKe.createDirentFromStats=void 0;var qkt=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function $fs(e,t){return new qkt(e,t)}nKe.createDirentFromStats=$fs});var Jkt=ae(iKe=>{"use strict";Object.defineProperty(iKe,"__esModule",{value:!0});iKe.fs=void 0;var eps=C9r();iKe.fs=eps});var Vkt=ae(sKe=>{"use strict";Object.defineProperty(sKe,"__esModule",{value:!0});sKe.joinPathSegments=void 0;function tps(e,t,r){return e.endsWith(r)?e+t:e+r+t}sKe.joinPathSegments=tps});var b9r=ae(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0});gee.readdir=gee.readdirWithFileTypes=gee.read=void 0;var rps=hce(),I9r=g9r(),nps=Hkt(),T9r=Jkt(),S9r=Vkt();function ips(e,t,r){if(!t.stats&&nps.IS_SUPPORT_READDIR_WITH_FILE_TYPES){v9r(e,t,r);return}D9r(e,t,r)}gee.read=ips;function v9r(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(s,c)=>{if(s!==null){oKe(r,s);return}let o=c.map(_=>({dirent:_,name:_.name,path:S9r.joinPathSegments(e,_.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Wkt(r,o);return}let f=o.map(_=>sps(_,t));I9r(f,(_,A)=>{if(_!==null){oKe(r,_);return}Wkt(r,A)})})}gee.readdirWithFileTypes=v9r;function sps(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(s,c)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){r(s);return}r(null,e);return}e.dirent=T9r.fs.createDirentFromStats(e.name,c),r(null,e)})}}function D9r(e,t,r){t.fs.readdir(e,(s,c)=>{if(s!==null){oKe(r,s);return}let o=c.map(f=>{let _=S9r.joinPathSegments(e,f,t.pathSegmentSeparator);return A=>{rps.stat(_,t.fsStatSettings,(y,I)=>{if(y!==null){A(y);return}let D={name:f,path:_,dirent:T9r.fs.createDirentFromStats(f,I)};t.stats&&(D.stats=I),A(null,D)})}});I9r(o,(f,_)=>{if(f!==null){oKe(r,f);return}Wkt(r,_)})})}gee.readdir=D9r;function oKe(e,t){e(t)}function Wkt(e,t){e(null,t)}});var R9r=ae(Eee=>{"use strict";Object.defineProperty(Eee,"__esModule",{value:!0});Eee.readdir=Eee.readdirWithFileTypes=Eee.read=void 0;var ops=hce(),aps=Hkt(),w9r=Jkt(),B9r=Vkt();function cps(e,t){return!t.stats&&aps.IS_SUPPORT_READDIR_WITH_FILE_TYPES?x9r(e,t):N9r(e,t)}Eee.read=cps;function x9r(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(s=>{let c={dirent:s,name:s.name,path:B9r.joinPathSegments(e,s.name,t.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let o=t.fs.statSync(c.path);c.dirent=w9r.fs.createDirentFromStats(c.name,o)}catch(o){if(t.throwErrorOnBrokenSymbolicLink)throw o}return c})}Eee.readdirWithFileTypes=x9r;function N9r(e,t){return t.fs.readdirSync(e).map(s=>{let c=B9r.joinPathSegments(e,s,t.pathSegmentSeparator),o=ops.statSync(c,t.fsStatSettings),f={name:s,path:c,dirent:w9r.fs.createDirentFromStats(s,o)};return t.stats&&(f.stats=o),f})}Eee.readdir=N9r});var k9r=ae(yee=>{"use strict";Object.defineProperty(yee,"__esModule",{value:!0});yee.createFileSystemAdapter=yee.FILE_SYSTEM_ADAPTER=void 0;var p0e=qt("fs");yee.FILE_SYSTEM_ADAPTER={lstat:p0e.lstat,stat:p0e.stat,lstatSync:p0e.lstatSync,statSync:p0e.statSync,readdir:p0e.readdir,readdirSync:p0e.readdirSync};function lps(e){return e===void 0?yee.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yee.FILE_SYSTEM_ADAPTER),e)}yee.createFileSystemAdapter=lps});var P9r=ae(zkt=>{"use strict";Object.defineProperty(zkt,"__esModule",{value:!0});var ups=qt("path"),fps=hce(),pps=k9r(),Ykt=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=pps.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ups.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new fps.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};zkt.default=Ykt});var aKe=ae(Cee=>{"use strict";Object.defineProperty(Cee,"__esModule",{value:!0});Cee.Settings=Cee.scandirSync=Cee.scandir=void 0;var O9r=b9r(),dps=R9r(),Kkt=P9r();Cee.Settings=Kkt.default;function _ps(e,t,r){if(typeof t=="function"){O9r.read(e,Xkt(),t);return}O9r.read(e,Xkt(t),r)}Cee.scandir=_ps;function Aps(e,t){let r=Xkt(t);return dps.read(e,r)}Cee.scandirSync=Aps;function Xkt(e={}){return e instanceof Kkt.default?e:new Kkt.default(e)}});var L9r=ae((kMa,F9r)=>{"use strict";function hps(e){var t=new e,r=t;function s(){var o=t;return o.next?t=o.next:(t=new e,r=t),o.next=null,o}function c(o){r.next=o,r=o}return{get:s,release:c}}F9r.exports=hps});var M9r=ae((PMa,Zkt)=>{"use strict";var mps=L9r();function Q9r(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var s=mps(gps),c=null,o=null,f=0,_=null,A={push:J,drain:UM,saturated:UM,pause:I,paused:!1,get concurrency(){return r},set concurrency(ge){if(!(ge>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=ge,!A.paused)for(;c&&f=r||A.paused?o?(o.next=ye,o=ye):(c=ye,o=ye,A.saturated()):(f++,t.call(e,ye.value,ye.worked))}function Y(ge,me){var ye=s.get();ye.context=e,ye.release=ne,ye.value=ge,ye.callback=me||UM,ye.errorHandler=_,f>=r||A.paused?c?(ye.next=c,c=ye):(c=ye,o=ye,A.saturated()):(f++,t.call(e,ye.value,ye.worked))}function ne(ge){ge&&s.release(ge);var me=c;me&&f<=r?A.paused?f--:(o===c&&(o=null),c=me.next,me.next=null,t.call(e,me.value,me.worked),o===null&&A.empty()):--f===0&&A.drain()}function Ae(){c=null,o=null,A.drain=UM}function le(){c=null,o=null,A.drain(),A.drain=UM}function pe(ge){_=ge}}function UM(){}function gps(){this.value=null,this.callback=UM,this.next=null,this.release=UM,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,s){var c=e.callback,o=e.errorHandler,f=e.value;e.value=null,e.callback=UM,e.errorHandler&&o(r,f),c.call(e.context,r,s),e.release(e)}}function Eps(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function s(I,D){t.call(this,I).then(function(b){D(null,b)},D)}var c=Q9r(e,s,r),o=c.push,f=c.unshift;return c.push=_,c.unshift=A,c.drained=y,c;function _(I){var D=new Promise(function(b,L){o(I,function(x,J){if(x){L(x);return}b(J)})});return D.catch(UM),D}function A(I){var D=new Promise(function(b,L){f(I,function(x,J){if(x){L(x);return}b(J)})});return D.catch(UM),D}function y(){if(c.idle())return new Promise(function(b){b()});var I=c.drain,D=new Promise(function(b){c.drain=function(){I(),b()}});return D}}Zkt.exports=Q9r;Zkt.exports.promise=Eps});var cKe=ae(Dj=>{"use strict";Object.defineProperty(Dj,"__esModule",{value:!0});Dj.joinPathSegments=Dj.replacePathSegmentSeparator=Dj.isAppliedFilter=Dj.isFatalError=void 0;function yps(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Dj.isFatalError=yps;function Cps(e,t){return e===null||e(t)}Dj.isAppliedFilter=Cps;function Ips(e,t){return e.split(/[/\\]/).join(t)}Dj.replacePathSegmentSeparator=Ips;function Tps(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Dj.joinPathSegments=Tps});var tPt=ae(ePt=>{"use strict";Object.defineProperty(ePt,"__esModule",{value:!0});var Sps=cKe(),$kt=class{constructor(t,r){this._root=t,this._settings=r,this._root=Sps.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ePt.default=$kt});var iPt=ae(nPt=>{"use strict";Object.defineProperty(nPt,"__esModule",{value:!0});var vps=qt("events"),Dps=aKe(),bps=M9r(),lKe=cKe(),wps=tPt(),rPt=class extends wps.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Dps.scandir,this._emitter=new vps.EventEmitter,this._queue=bps(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let s={directory:t,base:r};this._queue.push(s,c=>{c!==null&&this._handleError(c)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(s,c)=>{if(s!==null){r(s,void 0);return}for(let o of c)this._handleEntry(o,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!lKe.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let s=t.path;r!==void 0&&(t.path=lKe.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),lKe.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&lKe.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(s,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};nPt.default=rPt});var U9r=ae(oPt=>{"use strict";Object.defineProperty(oPt,"__esModule",{value:!0});var Bps=iPt(),sPt=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Bps.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{xps(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Nps(t,this._storage)}),this._reader.read()}};oPt.default=sPt;function xps(e,t){e(t)}function Nps(e,t){e(null,t)}});var G9r=ae(cPt=>{"use strict";Object.defineProperty(cPt,"__esModule",{value:!0});var Rps=qt("stream"),kps=iPt(),aPt=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new kps.default(this._root,this._settings),this._stream=new Rps.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};cPt.default=aPt});var j9r=ae(uPt=>{"use strict";Object.defineProperty(uPt,"__esModule",{value:!0});var Pps=aKe(),uKe=cKe(),Ops=tPt(),lPt=class extends Ops.default{constructor(){super(...arguments),this._scandir=Pps.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let s=this._scandir(t,this._settings.fsScandirSettings);for(let c of s)this._handleEntry(c,r)}catch(s){this._handleError(s)}}_handleError(t){if(uKe.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let s=t.path;r!==void 0&&(t.path=uKe.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),uKe.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&uKe.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(s,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};uPt.default=lPt});var H9r=ae(pPt=>{"use strict";Object.defineProperty(pPt,"__esModule",{value:!0});var Fps=j9r(),fPt=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Fps.default(this._root,this._settings)}read(){return this._reader.read()}};pPt.default=fPt});var q9r=ae(_Pt=>{"use strict";Object.defineProperty(_Pt,"__esModule",{value:!0});var Lps=qt("path"),Qps=aKe(),dPt=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Lps.sep),this.fsScandirSettings=new Qps.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};_Pt.default=dPt});var pKe=ae(bj=>{"use strict";Object.defineProperty(bj,"__esModule",{value:!0});bj.Settings=bj.walkStream=bj.walkSync=bj.walk=void 0;var J9r=U9r(),Mps=G9r(),Ups=H9r(),APt=q9r();bj.Settings=APt.default;function Gps(e,t,r){if(typeof t=="function"){new J9r.default(e,fKe()).read(t);return}new J9r.default(e,fKe(t)).read(r)}bj.walk=Gps;function jps(e,t){let r=fKe(t);return new Ups.default(e,r).read()}bj.walkSync=jps;function Hps(e,t){let r=fKe(t);return new Mps.default(e,r).read()}bj.walkStream=Hps;function fKe(e={}){return e instanceof APt.default?e:new APt.default(e)}});var dKe=ae(mPt=>{"use strict";Object.defineProperty(mPt,"__esModule",{value:!0});var qps=qt("path"),Jps=hce(),V9r=QW(),hPt=class{constructor(t){this._settings=t,this._fsStatSettings=new Jps.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return qps.resolve(this._settings.cwd,t)}_makeEntry(t,r){let s={name:r,path:r,dirent:V9r.fs.createDirentFromStats(r,t)};return this._settings.stats&&(s.stats=t),s}_isFatalError(t){return!V9r.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};mPt.default=hPt});var yPt=ae(EPt=>{"use strict";Object.defineProperty(EPt,"__esModule",{value:!0});var Vps=qt("stream"),Wps=hce(),Yps=pKe(),zps=dKe(),gPt=class extends zps.default{constructor(){super(...arguments),this._walkStream=Yps.walkStream,this._stat=Wps.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let s=t.map(this._getFullEntryPath,this),c=new Vps.PassThrough({objectMode:!0});c._write=(o,f,_)=>this._getEntry(s[o],t[o],r).then(A=>{A!==null&&r.entryFilter(A)&&c.push(A),o===s.length-1&&c.end(),_()}).catch(_);for(let o=0;othis._makeEntry(c,r)).catch(c=>{if(s.errorFilter(c))return null;throw c})}_getStat(t){return new Promise((r,s)=>{this._stat(t,this._fsStatSettings,(c,o)=>c===null?r(o):s(c))})}};EPt.default=gPt});var W9r=ae(IPt=>{"use strict";Object.defineProperty(IPt,"__esModule",{value:!0});var Kps=pKe(),Xps=dKe(),Zps=yPt(),CPt=class extends Xps.default{constructor(){super(...arguments),this._walkAsync=Kps.walk,this._readerStream=new Zps.default(this._settings)}dynamic(t,r){return new Promise((s,c)=>{this._walkAsync(t,r,(o,f)=>{o===null?s(f):c(o)})})}async static(t,r){let s=[],c=this._readerStream.static(t,r);return new Promise((o,f)=>{c.once("error",f),c.on("data",_=>s.push(_)),c.once("end",()=>o(s))})}};IPt.default=CPt});var Y9r=ae(SPt=>{"use strict";Object.defineProperty(SPt,"__esModule",{value:!0});var JRe=QW(),TPt=class{constructor(t,r,s){this._patterns=t,this._settings=r,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),s=this._splitSegmentsIntoSections(r);this._storage.push({complete:s.length<=1,pattern:t,segments:r,sections:s})}}_getPatternSegments(t){return JRe.pattern.getPatternParts(t,this._micromatchOptions).map(s=>JRe.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:JRe.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(t){return JRe.array.splitWhen(t,r=>r.dynamic&&JRe.pattern.hasGlobStar(r.pattern))}};SPt.default=TPt});var z9r=ae(DPt=>{"use strict";Object.defineProperty(DPt,"__esModule",{value:!0});var $ps=Y9r(),vPt=class extends $ps.default{match(t){let r=t.split("/"),s=r.length,c=this._storage.filter(o=>!o.complete||o.segments.length>s);for(let o of c){let f=o.sections[0];if(!o.complete&&s>f.length||r.every((A,y)=>{let I=o.segments[y];return!!(I.dynamic&&I.patternRe.test(A)||!I.dynamic&&I.pattern===A)}))return!0}return!1}};DPt.default=vPt});var K9r=ae(wPt=>{"use strict";Object.defineProperty(wPt,"__esModule",{value:!0});var _Ke=QW(),eds=z9r(),bPt=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,s){let c=this._getMatcher(r),o=this._getNegativePatternsRe(s);return f=>this._filter(t,f,c,o)}_getMatcher(t){return new eds.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(_Ke.pattern.isAffectDepthOfReadingPattern);return _Ke.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,s,c){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let o=_Ke.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(o,s)?!1:this._isSkippedByNegativePatterns(o,c)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let s=r.split("/").length;if(t==="")return s;let c=t.split("/").length;return s-c}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!_Ke.pattern.matchAny(t,r)}};wPt.default=bPt});var X9r=ae(xPt=>{"use strict";Object.defineProperty(xPt,"__esModule",{value:!0});var mce=QW(),BPt=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let s=mce.pattern.convertPatternsToRe(t,this._micromatchOptions),c=mce.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return o=>this._filter(o,s,c)}_filter(t,r,s){let c=mce.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(c)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(c,s))return!1;let o=t.dirent.isDirectory(),f=this._isMatchToPatterns(c,r,o)&&!this._isMatchToPatterns(c,s,o);return this._settings.unique&&f&&this._createIndexRecord(c),f}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let s=mce.path.makeAbsolute(this._settings.cwd,t);return mce.pattern.matchAny(s,r)}_isMatchToPatterns(t,r,s){let c=mce.pattern.matchAny(t,r);return!c&&s?mce.pattern.matchAny(t+"/",r):c}};xPt.default=BPt});var Z9r=ae(RPt=>{"use strict";Object.defineProperty(RPt,"__esModule",{value:!0});var tds=QW(),NPt=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return tds.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};RPt.default=NPt});var eGr=ae(PPt=>{"use strict";Object.defineProperty(PPt,"__esModule",{value:!0});var $9r=QW(),kPt=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=$9r.path.makeAbsolute(this._settings.cwd,r),r=$9r.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};PPt.default=kPt});var AKe=ae(FPt=>{"use strict";Object.defineProperty(FPt,"__esModule",{value:!0});var rds=qt("path"),nds=K9r(),ids=X9r(),sds=Z9r(),ods=eGr(),OPt=class{constructor(t){this._settings=t,this.errorFilter=new sds.default(this._settings),this.entryFilter=new ids.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new nds.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new ods.default(this._settings)}_getRootDirectory(t){return rds.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};FPt.default=OPt});var tGr=ae(QPt=>{"use strict";Object.defineProperty(QPt,"__esModule",{value:!0});var ads=W9r(),cds=AKe(),LPt=class extends cds.default{constructor(){super(...arguments),this._reader=new ads.default(this._settings)}async read(t){let r=this._getRootDirectory(t),s=this._getReaderOptions(t);return(await this.api(r,t,s)).map(o=>s.transform(o))}api(t,r,s){return r.dynamic?this._reader.dynamic(t,s):this._reader.static(r.patterns,s)}};QPt.default=LPt});var rGr=ae(UPt=>{"use strict";Object.defineProperty(UPt,"__esModule",{value:!0});var lds=qt("stream"),uds=yPt(),fds=AKe(),MPt=class extends fds.default{constructor(){super(...arguments),this._reader=new uds.default(this._settings)}read(t){let r=this._getRootDirectory(t),s=this._getReaderOptions(t),c=this.api(r,t,s),o=new lds.Readable({objectMode:!0,read:()=>{}});return c.once("error",f=>o.emit("error",f)).on("data",f=>o.emit("data",s.transform(f))).once("end",()=>o.emit("end")),o.once("close",()=>c.destroy()),o}api(t,r,s){return r.dynamic?this._reader.dynamic(t,s):this._reader.static(r.patterns,s)}};UPt.default=MPt});var nGr=ae(jPt=>{"use strict";Object.defineProperty(jPt,"__esModule",{value:!0});var pds=hce(),dds=pKe(),_ds=dKe(),GPt=class extends _ds.default{constructor(){super(...arguments),this._walkSync=dds.walkSync,this._statSync=pds.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let s=[];for(let c of t){let o=this._getFullEntryPath(c),f=this._getEntry(o,c,r);f===null||!r.entryFilter(f)||s.push(f)}return s}_getEntry(t,r,s){try{let c=this._getStat(t);return this._makeEntry(c,r)}catch(c){if(s.errorFilter(c))return null;throw c}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};jPt.default=GPt});var iGr=ae(qPt=>{"use strict";Object.defineProperty(qPt,"__esModule",{value:!0});var Ads=nGr(),hds=AKe(),HPt=class extends hds.default{constructor(){super(...arguments),this._reader=new Ads.default(this._settings)}read(t){let r=this._getRootDirectory(t),s=this._getReaderOptions(t);return this.api(r,t,s).map(s.transform)}api(t,r,s){return r.dynamic?this._reader.dynamic(t,s):this._reader.static(r.patterns,s)}};qPt.default=HPt});var sGr=ae(_0e=>{"use strict";Object.defineProperty(_0e,"__esModule",{value:!0});_0e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var d0e=qt("fs"),mds=qt("os"),gds=Math.max(mds.cpus().length,1);_0e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:d0e.lstat,lstatSync:d0e.lstatSync,stat:d0e.stat,statSync:d0e.statSync,readdir:d0e.readdir,readdirSync:d0e.readdirSync};var JPt=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,gds),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},_0e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};_0e.default=JPt});var A0e=ae((s6a,aGr)=>{"use strict";var oGr=a9r(),Eds=tGr(),yds=rGr(),Cds=iGr(),VPt=sGr(),GM=QW();async function WPt(e,t){P5(e);let r=YPt(e,Eds.default,t),s=await Promise.all(r);return GM.array.flatten(s)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(y,I){P5(y);let D=YPt(y,Cds.default,I);return GM.array.flatten(D)}e.sync=t;function r(y,I){P5(y);let D=YPt(y,yds.default,I);return GM.stream.merge(D)}e.stream=r;function s(y,I){P5(y);let D=[].concat(y),b=new VPt.default(I);return oGr.generate(D,b)}e.generateTasks=s;function c(y,I){P5(y);let D=new VPt.default(I);return GM.pattern.isDynamicPattern(y,D)}e.isDynamicPattern=c;function o(y){return P5(y),GM.path.escape(y)}e.escapePath=o;function f(y){return P5(y),GM.path.convertPathToPattern(y)}e.convertPathToPattern=f;let _;(function(y){function I(b){return P5(b),GM.path.escapePosixPath(b)}y.escapePath=I;function D(b){return P5(b),GM.path.convertPosixPathToPattern(b)}y.convertPathToPattern=D})(_=e.posix||(e.posix={}));let A;(function(y){function I(b){return P5(b),GM.path.escapeWindowsPath(b)}y.escapePath=I;function D(b){return P5(b),GM.path.convertWindowsPathToPattern(b)}y.convertPathToPattern=D})(A=e.win32||(e.win32={}))})(WPt||(WPt={}));function YPt(e,t,r){let s=[].concat(e),c=new VPt.default(r),o=oGr.generate(s,c),f=new t(c);return o.map(f.read,f)}function P5(e){if(![].concat(e).every(s=>GM.string.isString(s)&&!GM.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}aGr.exports=WPt});var Tee=ae(VRe=>{"use strict";Object.defineProperty(VRe,"__esModule",{value:!0});VRe.makeHash=Tds;VRe.checksumFile=Sds;VRe.checksumPattern=vds;var Ids=(Ma(),li(Qa)),Iee=Xo(),zPt=qt("crypto"),cGr=Ids.__importDefault(A0e());function Tds(...e){let t=(0,zPt.createHash)("sha512"),r="";for(let s of e)typeof s=="string"?r+=s:s&&(r&&(t.update(r),r=""),t.update(s));return r&&t.update(r),t.digest("hex")}async function Sds(e,{baseFs:t,algorithm:r}={baseFs:Iee.xfs,algorithm:"sha512"}){let s=await t.openPromise(e,"r");try{let o=Buffer.allocUnsafeSlow(65536),f=(0,zPt.createHash)(r),_=0;for(;(_=await t.readPromise(s,o,0,65536))!==0;)f.update(_===65536?o:o.slice(0,_));return f.digest("hex")}finally{await t.closePromise(s)}}async function vds(e,{cwd:t}){let s=(await(0,cGr.default)(e,{cwd:Iee.npath.fromPortablePath(t),onlyDirectories:!0})).map(_=>`${_}/**/*`),c=await(0,cGr.default)([e,...s],{cwd:Iee.npath.fromPortablePath(t),onlyFiles:!1});c.sort();let o=await Promise.all(c.map(async _=>{let A=[Buffer.from(_)],y=Iee.ppath.join(t,Iee.npath.toPortablePath(_)),I=await Iee.xfs.lstatPromise(y);return I.isSymbolicLink()?A.push(Buffer.from(await Iee.xfs.readlinkPromise(y))):I.isFile()&&A.push(await Iee.xfs.readFilePromise(y)),A.join("\0")})),f=(0,zPt.createHash)("sha512");for(let _ of o)f.update(_);return f.digest("hex")}});var sR=ae(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.makeIdent=gKe;s_.makeDescriptor=m0e;s_.makeLocator=g0e;s_.convertToIdent=Nds;s_.convertDescriptorToLocator=Rds;s_.convertLocatorToDescriptor=kds;s_.convertPackageToLocator=Pds;s_.renamePackage=ZPt;s_.copyPackage=Ods;s_.virtualizeDescriptor=Fds;s_.virtualizePackage=Lds;s_.isVirtualDescriptor=EKe;s_.isVirtualLocator=zRe;s_.devirtualizeDescriptor=fGr;s_.devirtualizeLocator=Qds;s_.ensureDevirtualizedDescriptor=Mds;s_.ensureDevirtualizedLocator=Uds;s_.bindDescriptor=Gds;s_.bindLocator=jds;s_.areIdentsEqual=pGr;s_.areDescriptorsEqual=dGr;s_.areLocatorsEqual=Hds;s_.areVirtualPackagesEquivalent=qds;s_.parseIdent=Jds;s_.tryParseIdent=_Gr;s_.parseDescriptor=Wds;s_.tryParseDescriptor=AGr;s_.parseLocator=hGr;s_.tryParseLocator=mGr;s_.parseRange=KRe;s_.tryParseRange=$ds;s_.parseFileStyleRange=e_s;s_.makeRange=gGr;s_.convertToManifestRange=r_s;s_.stringifyIdent=CKe;s_.stringifyDescriptor=n_s;s_.stringifyLocator=i_s;s_.slugifyIdent=KPt;s_.slugifyLocator=o_s;s_.prettyIdent=IKe;s_.prettyRange=EGr;s_.prettyDescriptor=c_s;s_.prettyReference=$Pt;s_.prettyLocator=mKe;s_.prettyLocatorNoColors=l_s;s_.sortDescriptors=u_s;s_.prettyWorkspace=f_s;s_.prettyResolution=p_s;s_.prettyDependent=d_s;s_.getIdentVendorPath=__s;s_.isPackageCompatible=A_s;s_.allPeerRequests=h_s;var h0e=(Ma(),li(Qa)),YRe=h0e.__importDefault(qt("querystring")),Dds=h0e.__importDefault(W0()),bds=h4r(),fP=h0e.__importStar(MM()),XPt=h0e.__importStar(Tee()),wds=h0e.__importStar(JQ()),hKe=h0e.__importStar(sR()),WRe="virtual:",Bds=5,uGr=/(os|cpu|libc)=([a-z0-9_-]+)/,xds=(0,bds.makeParser)(uGr);function gKe(e,t){if(e?.startsWith("@"))throw new Error("Invalid scope: don't prefix it with '@'");return{identHash:XPt.makeHash(e,t),scope:e,name:t}}function m0e(e,t){return{identHash:e.identHash,scope:e.scope,name:e.name,descriptorHash:XPt.makeHash(e.identHash,t),range:t}}function g0e(e,t){return{identHash:e.identHash,scope:e.scope,name:e.name,locatorHash:XPt.makeHash(e.identHash,t),reference:t}}function Nds(e){return{identHash:e.identHash,scope:e.scope,name:e.name}}function Rds(e){return{identHash:e.identHash,scope:e.scope,name:e.name,locatorHash:e.descriptorHash,reference:e.range}}function kds(e){return{identHash:e.identHash,scope:e.scope,name:e.name,descriptorHash:e.locatorHash,range:e.reference}}function Pds(e){return{identHash:e.identHash,scope:e.scope,name:e.name,locatorHash:e.locatorHash,reference:e.reference}}function ZPt(e,t){return{identHash:t.identHash,scope:t.scope,name:t.name,locatorHash:t.locatorHash,reference:t.reference,version:e.version,languageName:e.languageName,linkType:e.linkType,conditions:e.conditions,dependencies:new Map(e.dependencies),peerDependencies:new Map(e.peerDependencies),dependenciesMeta:new Map(e.dependenciesMeta),peerDependenciesMeta:new Map(e.peerDependenciesMeta),bin:new Map(e.bin)}}function Ods(e){return ZPt(e,e)}function Fds(e,t){if(t.includes("#"))throw new Error("Invalid entropy");return m0e(e,`virtual:${t}#${e.range}`)}function Lds(e,t){if(t.includes("#"))throw new Error("Invalid entropy");return ZPt(e,g0e(e,`virtual:${t}#${e.reference}`))}function EKe(e){return e.range.startsWith(WRe)}function zRe(e){return e.reference.startsWith(WRe)}var yKe=/^[^#]*#/;function fGr(e){if(!EKe(e))throw new Error("Not a virtual descriptor");return m0e(e,e.range.replace(yKe,""))}function Qds(e){if(!zRe(e))throw new Error("Not a virtual descriptor");return g0e(e,e.reference.replace(yKe,""))}function Mds(e){return EKe(e)?m0e(e,e.range.replace(yKe,"")):e}function Uds(e){return zRe(e)?g0e(e,e.reference.replace(yKe,"")):e}function Gds(e,t){return e.range.includes("::")?e:m0e(e,`${e.range}::${YRe.default.stringify(t)}`)}function jds(e,t){return e.reference.includes("::")?e:g0e(e,`${e.reference}::${YRe.default.stringify(t)}`)}function pGr(e,t){return e.identHash===t.identHash}function dGr(e,t){return e.descriptorHash===t.descriptorHash}function Hds(e,t){return e.locatorHash===t.locatorHash}function qds(e,t){if(!zRe(e))throw new Error("Invalid package type");if(!zRe(t))throw new Error("Invalid package type");if(!pGr(e,t)||e.dependencies.size!==t.dependencies.size)return!1;for(let r of e.dependencies.values()){let s=t.dependencies.get(r.identHash);if(!s||!dGr(r,s))return!1}return!0}function Jds(e){let t=_Gr(e);if(!t)throw new Error(`Invalid ident (${e})`);return t}var Vds=/^(?:@([^/]+?)\/)?([^@/]+)$/;function _Gr(e){let t=e.match(Vds);if(!t)return null;let[,r,s]=t;return gKe(typeof r<"u"?r:null,s)}function Wds(e,t=!1){let r=AGr(e,t);if(!r)throw new Error(`Invalid descriptor (${e})`);return r}var Yds=/^(?:@([^/]+?)\/)?([^@/]+?)(?:@(.+))$/,zds=/^(?:@([^/]+?)\/)?([^@/]+?)(?:@(.+))?$/;function AGr(e,t=!1){let r=t?e.match(Yds):e.match(zds);if(!r)return null;let[,s,c,o]=r;if(o==="unknown")throw new Error(`Invalid range (${e})`);let f=typeof s<"u"?s:null,_=typeof o<"u"?o:"unknown";return m0e(gKe(f,c),_)}function hGr(e,t=!1){let r=mGr(e,t);if(!r)throw new Error(`Invalid locator (${e})`);return r}var Kds=/^(?:@([^/]+?)\/)?([^@/]+?)(?:@(.+))$/,Xds=/^(?:@([^/]+?)\/)?([^@/]+?)(?:@(.+))?$/;function mGr(e,t=!1){let r=t?e.match(Kds):e.match(Xds);if(!r)return null;let[,s,c,o]=r;if(o==="unknown")throw new Error(`Invalid reference (${e})`);let f=typeof s<"u"?s:null,_=typeof o<"u"?o:"unknown";return g0e(gKe(f,c),_)}var Zds=/^([^#:]*:)?((?:(?!::)[^#])*)(?:#((?:(?!::).)*))?(?:::(.*))?$/;function KRe(e,t){let r=e.match(Zds);if(r===null)throw new Error(`Invalid range (${e})`);let s=typeof r[1]<"u"?r[1]:null;if(typeof t?.requireProtocol=="string"&&s!==t.requireProtocol)throw new Error(`Invalid protocol (${s})`);if(t?.requireProtocol&&s===null)throw new Error(`Missing protocol (${s})`);let c=typeof r[3]<"u"?decodeURIComponent(r[2]):null;if(t?.requireSource&&c===null)throw new Error(`Missing source (${e})`);let o=typeof r[3]<"u"?decodeURIComponent(r[3]):decodeURIComponent(r[2]),f=t?.parseSelector?YRe.default.parse(o):o,_=typeof r[4]<"u"?YRe.default.parse(r[4]):null;return{protocol:s,source:c,selector:f,params:_}}function $ds(e,t){try{return KRe(e,t)}catch{return null}}function e_s(e,{protocol:t}){let{selector:r,params:s}=KRe(e,{requireProtocol:t,requireBindings:!0});if(typeof s.locator!="string")throw new Error(`Assertion failed: Invalid bindings for ${e}`);return{parentLocator:hGr(s.locator,!0),path:r}}function lGr(e){return e=e.replaceAll("%","%25"),e=e.replaceAll(":","%3A"),e=e.replaceAll("#","%23"),e}function t_s(e){return e===null?!1:Object.entries(e).length>0}function gGr({protocol:e,source:t,selector:r,params:s}){let c="";return e!==null&&(c+=`${e}`),t!==null&&(c+=`${lGr(t)}#`),c+=lGr(r),t_s(s)&&(c+=`::${YRe.default.stringify(s)}`),c}function r_s(e){let{params:t,protocol:r,source:s,selector:c}=KRe(e);for(let o in t)o.startsWith("__")&&delete t[o];return gGr({protocol:r,source:s,params:t,selector:c})}function CKe(e){return e.scope?`@${e.scope}/${e.name}`:`${e.name}`}function n_s(e){return e.scope?`@${e.scope}/${e.name}@${e.range}`:`${e.name}@${e.range}`}function i_s(e){return e.scope?`@${e.scope}/${e.name}@${e.reference}`:`${e.name}@${e.reference}`}function KPt(e){return e.scope!==null?`@${e.scope}-${e.name}`:e.name}var s_s=/:$/;function o_s(e){let{protocol:t,selector:r}=KRe(e.reference),s=t!==null?t.replace(s_s,""):"exotic",c=Dds.default.valid(r),o=c!==null?`${s}-${c}`:`${s}`,f=10;return e.scope?`${KPt(e)}-${o}-${e.locatorHash.slice(0,f)}`:`${KPt(e)}-${o}-${e.locatorHash.slice(0,f)}`}function IKe(e,t){return t.scope?`${fP.pretty(e,`@${t.scope}/`,fP.Type.SCOPE)}${fP.pretty(e,t.name,fP.Type.NAME)}`:`${fP.pretty(e,t.name,fP.Type.NAME)}`}var a_s=/\?.*/;function TKe(e){if(e.startsWith(WRe)){let t=TKe(e.substring(e.indexOf("#")+1)),r=e.substring(WRe.length,WRe.length+Bds);return`${t} [${r}]`}else return e.replace(a_s,"?[...]")}function EGr(e,t){return`${fP.pretty(e,TKe(t),fP.Type.RANGE)}`}function c_s(e,t){return`${IKe(e,t)}${fP.pretty(e,"@",fP.Type.RANGE)}${EGr(e,t.range)}`}function $Pt(e,t){return`${fP.pretty(e,TKe(t),fP.Type.REFERENCE)}`}function mKe(e,t){return`${IKe(e,t)}${fP.pretty(e,"@",fP.Type.REFERENCE)}${$Pt(e,t.reference)}`}function l_s(e){return`${CKe(e)}@${TKe(e.reference)}`}function u_s(e){return wds.sortMap(e,[t=>CKe(t),t=>t.range])}function f_s(e,t){return IKe(e,t.anchoredLocator)}function p_s(e,t,r){let s=EKe(t)?fGr(t):t;return r===null?`${hKe.prettyDescriptor(e,s)} \u2192 ${fP.mark(e).Cross}`:s.identHash===r.identHash?`${hKe.prettyDescriptor(e,s)} \u2192 ${$Pt(e,r.reference)}`:`${hKe.prettyDescriptor(e,s)} \u2192 ${mKe(e,r)}`}function d_s(e,t,r){return r===null?`${mKe(e,t)}`:`${mKe(e,t)} (via ${hKe.prettyRange(e,r.range)})`}function __s(e){return`node_modules/${CKe(e)}`}function A_s(e,t){return e.conditions?xds(e.conditions,r=>{let[,s,c]=r.match(uGr),o=t[s];return o?o.includes(c):!0}):!0}function h_s(e){let t=new Set;if("children"in e)t.add(e);else for(let r of e.requests.values())t.add(r);for(let r of t)for(let s of r.children.values())t.add(s);return t}});var yGr=ae(SKe=>{"use strict";Object.defineProperty(SKe,"__esModule",{value:!0});SKe.CorePlugin=void 0;var m_s=(Ma(),li(Qa)),g_s=AF(),See=m_s.__importStar(sR());SKe.CorePlugin={hooks:{reduceDependency:(e,t,r,s,{resolver:c,resolveOptions:o})=>{for(let{pattern:f,reference:_}of t.topLevelWorkspace.manifest.resolutions){if(f.from&&(f.from.fullName!==See.stringifyIdent(r)||t.configuration.normalizeLocator(See.makeLocator(See.parseIdent(f.from.fullName),f.from.description??r.reference)).locatorHash!==r.locatorHash)||f.descriptor.fullName!==See.stringifyIdent(e)||t.configuration.normalizeDependency(See.makeDescriptor(See.parseLocator(f.descriptor.fullName),f.descriptor.description??e.range)).descriptorHash!==e.descriptorHash)continue;return c.bindDescriptor(t.configuration.normalizeDependency(See.makeDescriptor(e,_)),t.topLevelWorkspace.anchoredLocator,o)}return e},validateProject:async(e,t)=>{for(let r of e.workspaces){let s=See.prettyWorkspace(e.configuration,r);await e.configuration.triggerHook(c=>c.validateWorkspace,r,{reportWarning:(c,o)=>t.reportWarning(c,`${s}: ${o}`),reportError:(c,o)=>t.reportError(c,`${s}: ${o}`)})}},validateWorkspace:async(e,t)=>{let{manifest:r}=e;r.resolutions.length&&e.cwd!==e.project.cwd&&r.errors.push(new Error("Resolutions field will be ignored"));for(let s of r.errors)t.reportWarning(g_s.MessageName.INVALID_MANIFEST,s.message)}}}});var gce=ae(DKe=>{"use strict";Object.defineProperty(DKe,"__esModule",{value:!0});DKe.WorkspaceResolver=void 0;var E_s=_ce(),vKe=class e{supportsDescriptor(t,r){return!!(t.range.startsWith(e.protocol)||r.project.tryWorkspaceByDescriptor(t)!==null)}supportsLocator(t,r){return!!t.reference.startsWith(e.protocol)}shouldPersistResolution(t,r){return!1}bindDescriptor(t,r,s){return t}getResolutionDependencies(t,r){return{}}async getCandidates(t,r,s){return[s.project.getWorkspaceByDescriptor(t).anchoredLocator]}async getSatisfying(t,r,s,c){let[o]=await this.getCandidates(t,r,c);return{locators:s.filter(f=>f.locatorHash===o.locatorHash),sorted:!1}}async resolve(t,r){let s=r.project.getWorkspaceByCwd(t.reference.slice(e.protocol.length));return{...t,version:s.manifest.version||"0.0.0",languageName:"unknown",linkType:E_s.LinkType.SOFT,conditions:null,dependencies:r.project.configuration.normalizeDependencyMap(new Map([...s.manifest.dependencies,...s.manifest.devDependencies])),peerDependencies:new Map([...s.manifest.peerDependencies]),dependenciesMeta:s.manifest.dependenciesMeta,peerDependenciesMeta:s.manifest.peerDependenciesMeta,bin:s.manifest.bin}}};DKe.WorkspaceResolver=vKe;vKe.protocol="workspace:"});var MW=ae(O5=>{"use strict";Object.defineProperty(O5,"__esModule",{value:!0});O5.SemVer=void 0;O5.satisfiesWithPrereleases=I_s;O5.validRange=TGr;O5.clean=S_s;O5.getComparator=SGr;O5.mergeComparators=eOt;O5.stringifyComparator=vGr;O5.simplifyRanges=v_s;var y_s=(Ma(),li(Qa)),vee=y_s.__importDefault(W0()),C_s=W0();Object.defineProperty(O5,"SemVer",{enumerable:!0,get:function(){return C_s.SemVer}});var CGr=new Map;function I_s(e,t,r=!1){if(!e)return!1;let s=`${t}${r}`,c=CGr.get(s);if(typeof c>"u")try{c=new vee.default.Range(t,{includePrerelease:!0,loose:r})}catch{return!1}finally{CGr.set(s,c||null)}else if(c===null)return!1;let o;try{o=new vee.default.SemVer(e,c)}catch{return!1}return c.test(o)?!0:(o.prerelease&&(o.prerelease=[]),c.set.some(f=>{for(let _ of f)_.semver.prerelease&&(_.semver.prerelease=[]);return f.every(_=>_.test(o))}))}var IGr=new Map;function TGr(e){if(e.indexOf(":")!==-1)return null;let t=IGr.get(e);if(typeof t<"u")return t;try{t=new vee.default.Range(e)}catch{t=null}return IGr.set(e,t),t}var T_s=/^(?:[\sv=]*?)((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\s*)$/;function S_s(e){let t=T_s.exec(e);return t?t[1]:null}function SGr(e){if(e.semver===vee.default.Comparator.ANY)return{gt:null,lt:null};switch(e.operator){case"":return{gt:[">=",e.semver],lt:["<=",e.semver]};case">":case">=":return{gt:[e.operator,e.semver],lt:null};case"<":case"<=":return{gt:null,lt:[e.operator,e.semver]};default:throw new Error(`Assertion failed: Unexpected comparator operator (${e.operator})`)}}function eOt(e){if(e.length===0)return null;let t=null,r=null;for(let s of e){if(s.gt){let c=t!==null?vee.default.compare(s.gt[1],t[1]):null;(c===null||c>0||c===0&&s.gt[0]===">")&&(t=s.gt)}if(s.lt){let c=r!==null?vee.default.compare(s.lt[1],r[1]):null;(c===null||c<0||c===0&&s.lt[0]==="<")&&(r=s.lt)}}if(t&&r){let s=vee.default.compare(t[1],r[1]);if(s===0&&(t[0]===">"||r[0]==="<")||s>0)return null}return{gt:t,lt:r}}function vGr(e){if(e.gt&&e.lt){if(e.gt[0]===">="&&e.lt[0]==="<="&&e.gt[1].version===e.lt[1].version)return e.gt[1].version;if(e.gt[0]===">="&&e.lt[0]==="<"){if(e.lt[1].version===`${e.gt[1].major+1}.0.0-0`)return`^${e.gt[1].version}`;if(e.lt[1].version===`${e.gt[1].major}.${e.gt[1].minor+1}.0-0`)return`~${e.gt[1].version}`}}let t=[];return e.gt&&t.push(e.gt[0]+e.gt[1].version),e.lt&&t.push(e.lt[0]+e.lt[1].version),t.length?t.join(" "):"*"}function v_s(e){let t=e.map(D_s).map(s=>TGr(s).set.map(c=>c.map(o=>SGr(o)))),r=t.shift().map(s=>eOt(s)).filter(s=>s!==null);for(let s of t){let c=[];for(let o of r)for(let f of s){let _=eOt([o,...f]);_!==null&&c.push(_)}r=c}return r.length===0?null:r.map(s=>vGr(s)).join(" || ")}function D_s(e){let t=e.split("||");if(t.length>1){let r=new Set;for(let s of t)t.some(c=>c!==s&&vee.default.subset(s,c))||r.add(s);if(r.size{"use strict";Object.defineProperty(NKe,"__esModule",{value:!0});NKe.Manifest=void 0;var xKe=(Ma(),li(Qa)),bKe=Xo(),DGr=kM(),b_s=xKe.__importDefault(W0()),w_s=gce(),BKe=xKe.__importStar(JQ()),B_s=xKe.__importStar(MW()),ty=xKe.__importStar(sR()),E0e=class e{constructor(){this.indent=" ",this.name=null,this.version=null,this.os=null,this.cpu=null,this.libc=null,this.type=null,this.packageManager=null,this.private=!1,this.license=null,this.main=null,this.module=null,this.browser=null,this.languageName=null,this.bin=new Map,this.scripts=new Map,this.dependencies=new Map,this.devDependencies=new Map,this.peerDependencies=new Map,this.workspaceDefinitions=[],this.dependenciesMeta=new Map,this.peerDependenciesMeta=new Map,this.resolutions=[],this.files=null,this.publishConfig=null,this.installConfig=null,this.preferUnplugged=null,this.raw={},this.errors=[]}static async tryFind(t,{baseFs:r=new bKe.NodeFS}={}){let s=bKe.ppath.join(t,"package.json");try{return await e.fromFile(s,{baseFs:r})}catch(c){if(c.code==="ENOENT")return null;throw c}}static async find(t,{baseFs:r}={}){let s=await e.tryFind(t,{baseFs:r});if(s===null)throw new Error("Manifest not found");return s}static async fromFile(t,{baseFs:r=new bKe.NodeFS}={}){let s=new e;return await s.loadFile(t,{baseFs:r}),s}static fromText(t){let r=new e;return r.loadFromText(t),r}loadFromText(t){let r;try{r=JSON.parse(wGr(t)||"{}")}catch(s){throw s.message+=` (when parsing ${t})`,s}this.load(r),this.indent=bGr(t)}async loadFile(t,{baseFs:r=new bKe.NodeFS}){let s=await r.readFilePromise(t,"utf8"),c;try{c=JSON.parse(wGr(s)||"{}")}catch(o){throw o.message+=` (when parsing ${t})`,o}this.load(c),this.indent=bGr(s)}load(t,{yamlCompatibilityMode:r=!1}={}){if(typeof t!="object"||t===null)throw new Error(`Utterly invalid manifest data (${t})`);this.raw=t;let s=[];if(this.name=null,typeof t.name=="string")try{this.name=ty.parseIdent(t.name)}catch{s.push(new Error("Parsing failed for the 'name' field"))}if(typeof t.version=="string"?this.version=t.version:this.version=null,Array.isArray(t.os)){let o=[];this.os=o;for(let f of t.os)typeof f!="string"?s.push(new Error("Parsing failed for the 'os' field")):o.push(f)}else this.os=null;if(Array.isArray(t.cpu)){let o=[];this.cpu=o;for(let f of t.cpu)typeof f!="string"?s.push(new Error("Parsing failed for the 'cpu' field")):o.push(f)}else this.cpu=null;if(Array.isArray(t.libc)){let o=[];this.libc=o;for(let f of t.libc)typeof f!="string"?s.push(new Error("Parsing failed for the 'libc' field")):o.push(f)}else this.libc=null;if(typeof t.type=="string"?this.type=t.type:this.type=null,typeof t.packageManager=="string"?this.packageManager=t.packageManager:this.packageManager=null,typeof t.private=="boolean"?this.private=t.private:this.private=!1,typeof t.license=="string"?this.license=t.license:this.license=null,typeof t.languageName=="string"?this.languageName=t.languageName:this.languageName=null,typeof t.main=="string"?this.main=pP(t.main):this.main=null,typeof t.module=="string"?this.module=pP(t.module):this.module=null,t.browser!=null)if(typeof t.browser=="string")this.browser=pP(t.browser);else{this.browser=new Map;for(let[o,f]of Object.entries(t.browser))this.browser.set(pP(o),typeof f=="string"?pP(f):f)}else this.browser=null;if(this.bin=new Map,typeof t.bin=="string")t.bin.trim()===""?s.push(new Error("Invalid bin field")):this.name!==null?this.bin.set(this.name.name,pP(t.bin)):s.push(new Error("String bin field, but no attached package name"));else if(typeof t.bin=="object"&&t.bin!==null)for(let[o,f]of Object.entries(t.bin)){if(typeof f!="string"||f.trim()===""){s.push(new Error(`Invalid bin definition for '${o}'`));continue}let _=ty.parseIdent(o);this.bin.set(_.name,pP(f))}if(this.scripts=new Map,typeof t.scripts=="object"&&t.scripts!==null)for(let[o,f]of Object.entries(t.scripts)){if(typeof f!="string"){s.push(new Error(`Invalid script definition for '${o}'`));continue}this.scripts.set(o,f)}if(this.dependencies=new Map,typeof t.dependencies=="object"&&t.dependencies!==null)for(let[o,f]of Object.entries(t.dependencies)){if(typeof f!="string"){s.push(new Error(`Invalid dependency range for '${o}'`));continue}let _;try{_=ty.parseIdent(o)}catch{s.push(new Error(`Parsing failed for the dependency name '${o}'`));continue}let A=ty.makeDescriptor(_,f);this.dependencies.set(A.identHash,A)}if(this.devDependencies=new Map,typeof t.devDependencies=="object"&&t.devDependencies!==null)for(let[o,f]of Object.entries(t.devDependencies)){if(typeof f!="string"){s.push(new Error(`Invalid dependency range for '${o}'`));continue}let _;try{_=ty.parseIdent(o)}catch{s.push(new Error(`Parsing failed for the dependency name '${o}'`));continue}let A=ty.makeDescriptor(_,f);this.devDependencies.set(A.identHash,A)}if(this.peerDependencies=new Map,typeof t.peerDependencies=="object"&&t.peerDependencies!==null)for(let[o,f]of Object.entries(t.peerDependencies)){let _;try{_=ty.parseIdent(o)}catch{s.push(new Error(`Parsing failed for the dependency name '${o}'`));continue}(typeof f!="string"||!f.startsWith(w_s.WorkspaceResolver.protocol)&&!B_s.validRange(f))&&(s.push(new Error(`Invalid dependency range for '${o}'`)),f="*");let A=ty.makeDescriptor(_,f);this.peerDependencies.set(A.identHash,A)}typeof t.workspaces=="object"&&t.workspaces!==null&&t.workspaces.nohoist&&s.push(new Error("'nohoist' is deprecated, please use 'installConfig.hoistingLimits' instead"));let c=Array.isArray(t.workspaces)?t.workspaces:typeof t.workspaces=="object"&&t.workspaces!==null&&Array.isArray(t.workspaces.packages)?t.workspaces.packages:[];this.workspaceDefinitions=[];for(let o of c){if(typeof o!="string"){s.push(new Error(`Invalid workspace definition for '${o}'`));continue}this.workspaceDefinitions.push({pattern:o})}if(this.dependenciesMeta=new Map,typeof t.dependenciesMeta=="object"&&t.dependenciesMeta!==null)for(let[o,f]of Object.entries(t.dependenciesMeta)){if(typeof f!="object"||f===null){s.push(new Error(`Invalid meta field for '${o}`));continue}let _=ty.parseDescriptor(o),A=this.ensureDependencyMeta(_),y=wKe(f.built,{yamlCompatibilityMode:r});if(y===null){s.push(new Error(`Invalid built meta field for '${o}'`));continue}let I=wKe(f.optional,{yamlCompatibilityMode:r});if(I===null){s.push(new Error(`Invalid optional meta field for '${o}'`));continue}let D=wKe(f.unplugged,{yamlCompatibilityMode:r});if(D===null){s.push(new Error(`Invalid unplugged meta field for '${o}'`));continue}Object.assign(A,{built:y,optional:I,unplugged:D})}if(this.peerDependenciesMeta=new Map,typeof t.peerDependenciesMeta=="object"&&t.peerDependenciesMeta!==null)for(let[o,f]of Object.entries(t.peerDependenciesMeta)){if(typeof f!="object"||f===null){s.push(new Error(`Invalid meta field for '${o}'`));continue}let _=ty.parseDescriptor(o),A=this.ensurePeerDependencyMeta(_),y=wKe(f.optional,{yamlCompatibilityMode:r});if(y===null){s.push(new Error(`Invalid optional meta field for '${o}'`));continue}Object.assign(A,{optional:y})}if(this.resolutions=[],typeof t.resolutions=="object"&&t.resolutions!==null)for(let[o,f]of Object.entries(t.resolutions)){if(typeof f!="string"){s.push(new Error(`Invalid resolution entry for '${o}'`));continue}try{this.resolutions.push({pattern:(0,DGr.parseResolution)(o),reference:f})}catch(_){s.push(_);continue}}if(Array.isArray(t.files)){this.files=new Set;for(let o of t.files){if(typeof o!="string"){s.push(new Error(`Invalid files entry for '${o}'`));continue}this.files.add(o)}}else this.files=null;if(typeof t.publishConfig=="object"&&t.publishConfig!==null){if(this.publishConfig={},typeof t.publishConfig.access=="string"&&(this.publishConfig.access=t.publishConfig.access),typeof t.publishConfig.main=="string"&&(this.publishConfig.main=pP(t.publishConfig.main)),typeof t.publishConfig.module=="string"&&(this.publishConfig.module=pP(t.publishConfig.module)),t.publishConfig.browser!=null)if(typeof t.publishConfig.browser=="string")this.publishConfig.browser=pP(t.publishConfig.browser);else{this.publishConfig.browser=new Map;for(let[o,f]of Object.entries(t.publishConfig.browser))this.publishConfig.browser.set(pP(o),typeof f=="string"?pP(f):f)}if(typeof t.publishConfig.registry=="string"&&(this.publishConfig.registry=t.publishConfig.registry),typeof t.publishConfig.bin=="string")this.name!==null?this.publishConfig.bin=new Map([[this.name.name,pP(t.publishConfig.bin)]]):s.push(new Error("String bin field, but no attached package name"));else if(typeof t.publishConfig.bin=="object"&&t.publishConfig.bin!==null){this.publishConfig.bin=new Map;for(let[o,f]of Object.entries(t.publishConfig.bin)){if(typeof f!="string"){s.push(new Error(`Invalid bin definition for '${o}'`));continue}this.publishConfig.bin.set(o,pP(f))}}if(Array.isArray(t.publishConfig.executableFiles)){this.publishConfig.executableFiles=new Set;for(let o of t.publishConfig.executableFiles){if(typeof o!="string"){s.push(new Error("Invalid executable file definition"));continue}this.publishConfig.executableFiles.add(pP(o))}}}else this.publishConfig=null;if(typeof t.installConfig=="object"&&t.installConfig!==null){this.installConfig={};for(let o of Object.keys(t.installConfig))o==="hoistingLimits"?typeof t.installConfig.hoistingLimits=="string"?this.installConfig.hoistingLimits=t.installConfig.hoistingLimits:s.push(new Error("Invalid hoisting limits definition")):o=="selfReferences"?typeof t.installConfig.selfReferences=="boolean"?this.installConfig.selfReferences=t.installConfig.selfReferences:s.push(new Error("Invalid selfReferences definition, must be a boolean value")):s.push(new Error(`Unrecognized installConfig key: ${o}`))}else this.installConfig=null;if(typeof t.optionalDependencies=="object"&&t.optionalDependencies!==null)for(let[o,f]of Object.entries(t.optionalDependencies)){if(typeof f!="string"){s.push(new Error(`Invalid dependency range for '${o}'`));continue}let _;try{_=ty.parseIdent(o)}catch{s.push(new Error(`Parsing failed for the dependency name '${o}'`));continue}let A=ty.makeDescriptor(_,f);this.dependencies.set(A.identHash,A);let y=ty.makeDescriptor(_,"unknown"),I=this.ensureDependencyMeta(y);Object.assign(I,{optional:!0})}typeof t.preferUnplugged=="boolean"?this.preferUnplugged=t.preferUnplugged:this.preferUnplugged=null,this.errors=s}getForScope(t){switch(t){case"dependencies":return this.dependencies;case"devDependencies":return this.devDependencies;case"peerDependencies":return this.peerDependencies;default:throw new Error(`Unsupported value ("${t}")`)}}hasConsumerDependency(t){return!!(this.dependencies.has(t.identHash)||this.peerDependencies.has(t.identHash))}hasHardDependency(t){return!!(this.dependencies.has(t.identHash)||this.devDependencies.has(t.identHash))}hasSoftDependency(t){return!!this.peerDependencies.has(t.identHash)}hasDependency(t){return!!(this.hasHardDependency(t)||this.hasSoftDependency(t))}getConditions(){let t=[];return this.os&&this.os.length>0&&t.push(tOt("os",this.os)),this.cpu&&this.cpu.length>0&&t.push(tOt("cpu",this.cpu)),this.libc&&this.libc.length>0&&t.push(tOt("libc",this.libc)),t.length>0?t.join(" & "):null}ensureDependencyMeta(t){if(t.range!=="unknown"&&!b_s.default.valid(t.range))throw new Error(`Invalid meta field range for '${ty.stringifyDescriptor(t)}'`);let r=ty.stringifyIdent(t),s=t.range!=="unknown"?t.range:null,c=this.dependenciesMeta.get(r);c||this.dependenciesMeta.set(r,c=new Map);let o=c.get(s);return o||c.set(s,o={}),o}ensurePeerDependencyMeta(t){if(t.range!=="unknown")throw new Error(`Invalid meta field range for '${ty.stringifyDescriptor(t)}'`);let r=ty.stringifyIdent(t),s=this.peerDependenciesMeta.get(r);return s||this.peerDependenciesMeta.set(r,s={}),s}setRawField(t,r,{after:s=[]}={}){let c=new Set(s.filter(o=>Object.hasOwn(this.raw,o)));if(c.size===0||Object.hasOwn(this.raw,t))this.raw[t]=r;else{let o=this.raw,f=this.raw={},_=!1;for(let A of Object.keys(o))f[A]=o[A],_||(c.delete(A),c.size===0&&(f[t]=r,_=!0))}}exportTo(t,{compatibilityMode:r=!0}={}){if(Object.assign(t,this.raw),this.name!==null?t.name=ty.stringifyIdent(this.name):delete t.name,this.version!==null?t.version=this.version:delete t.version,this.os!==null?t.os=this.os:delete t.os,this.cpu!==null?t.cpu=this.cpu:delete t.cpu,this.type!==null?t.type=this.type:delete t.type,this.packageManager!==null?t.packageManager=this.packageManager:delete t.packageManager,this.private?t.private=!0:delete t.private,this.license!==null?t.license=this.license:delete t.license,this.languageName!==null?t.languageName=this.languageName:delete t.languageName,this.main!==null?t.main=this.main:delete t.main,this.module!==null?t.module=this.module:delete t.module,this.browser!==null){let o=this.browser;typeof o=="string"?t.browser=o:o instanceof Map&&(t.browser=Object.assign({},...Array.from(o.keys()).sort().map(f=>({[f]:o.get(f)}))))}else delete t.browser;this.bin.size===1&&this.name!==null&&this.bin.has(this.name.name)?t.bin=this.bin.get(this.name.name):this.bin.size>0?t.bin=Object.assign({},...Array.from(this.bin.keys()).sort().map(o=>({[o]:this.bin.get(o)}))):delete t.bin,this.workspaceDefinitions.length>0?this.raw.workspaces&&!Array.isArray(this.raw.workspaces)?t.workspaces={...this.raw.workspaces,packages:this.workspaceDefinitions.map(({pattern:o})=>o)}:t.workspaces=this.workspaceDefinitions.map(({pattern:o})=>o):this.raw.workspaces&&!Array.isArray(this.raw.workspaces)&&Object.keys(this.raw.workspaces).length>0?t.workspaces=this.raw.workspaces:delete t.workspaces;let s=[],c=[];for(let o of this.dependencies.values()){let f=this.dependenciesMeta.get(ty.stringifyIdent(o)),_=!1;if(r&&f){let A=f.get(null);A&&A.optional&&(_=!0)}_?c.push(o):s.push(o)}s.length>0?t.dependencies=Object.assign({},...ty.sortDescriptors(s).map(o=>({[ty.stringifyIdent(o)]:o.range}))):delete t.dependencies,c.length>0?t.optionalDependencies=Object.assign({},...ty.sortDescriptors(c).map(o=>({[ty.stringifyIdent(o)]:o.range}))):delete t.optionalDependencies,this.devDependencies.size>0?t.devDependencies=Object.assign({},...ty.sortDescriptors(this.devDependencies.values()).map(o=>({[ty.stringifyIdent(o)]:o.range}))):delete t.devDependencies,this.peerDependencies.size>0?t.peerDependencies=Object.assign({},...ty.sortDescriptors(this.peerDependencies.values()).map(o=>({[ty.stringifyIdent(o)]:o.range}))):delete t.peerDependencies,t.dependenciesMeta={};for(let[o,f]of BKe.sortMap(this.dependenciesMeta.entries(),([_,A])=>_))for(let[_,A]of BKe.sortMap(f.entries(),([y,I])=>y!==null?`0${y}`:"1")){let y=_!==null?ty.stringifyDescriptor(ty.makeDescriptor(ty.parseIdent(o),_)):o,I={...A};r&&_===null&&delete I.optional,Object.keys(I).length!==0&&(t.dependenciesMeta[y]=I)}if(Object.keys(t.dependenciesMeta).length===0&&delete t.dependenciesMeta,this.peerDependenciesMeta.size>0?t.peerDependenciesMeta=Object.assign({},...BKe.sortMap(this.peerDependenciesMeta.entries(),([o,f])=>o).map(([o,f])=>({[o]:f}))):delete t.peerDependenciesMeta,this.resolutions.length>0?t.resolutions=Object.assign({},...this.resolutions.map(({pattern:o,reference:f})=>({[(0,DGr.stringifyResolution)(o)]:f}))):delete t.resolutions,this.files!==null?t.files=Array.from(this.files):delete t.files,this.preferUnplugged!==null?t.preferUnplugged=this.preferUnplugged:delete t.preferUnplugged,this.scripts!==null&&this.scripts.size>0){t.scripts??={};for(let o of Object.keys(t.scripts))this.scripts.has(o)||delete t.scripts[o];for(let[o,f]of this.scripts.entries())t.scripts[o]=f}else delete t.scripts;return t}};NKe.Manifest=E0e;E0e.fileName="package.json";E0e.allDependencies=["dependencies","devDependencies","peerDependencies"];E0e.hardDependencies=["dependencies","devDependencies"];function bGr(e){let t=e.match(/^[ \t]+/m);return t?t[0]:" "}function wGr(e){return e.charCodeAt(0)===65279?e.slice(1):e}function pP(e){return e.replace(/\\/g,"/")}function wKe(e,{yamlCompatibilityMode:t}){return t?BKe.tryParseOptionalBoolean(e):typeof e>"u"||typeof e=="boolean"?e:null}function BGr(e,t){let r=t.search(/[^!]/);if(r===-1)return"invalid";let s=r%2===0?"":"!",c=t.slice(r);return`${s}${e}=${c}`}function tOt(e,t){return t.length===1?BGr(e,t[0]):`(${t.map(r=>BGr(e,r)).join(" | ")})`}});var NGr=ae((p6a,xGr)=>{var x_s=QM(),N_s=function(){return x_s.Date.now()};xGr.exports=N_s});var kGr=ae((d6a,RGr)=>{var R_s=/\s/;function k_s(e){for(var t=e.length;t--&&R_s.test(e.charAt(t)););return t}RGr.exports=k_s});var OGr=ae((_6a,PGr)=>{var P_s=kGr(),O_s=/^\s+/;function F_s(e){return e&&e.slice(0,P_s(e)+1).replace(O_s,"")}PGr.exports=F_s});var XRe=ae((A6a,FGr)=>{var L_s=fce(),Q_s=vj(),M_s="[object Symbol]";function U_s(e){return typeof e=="symbol"||Q_s(e)&&L_s(e)==M_s}FGr.exports=U_s});var UGr=ae((h6a,MGr)=>{var G_s=OGr(),LGr=qQ(),j_s=XRe(),QGr=NaN,H_s=/^[-+]0x[0-9a-f]+$/i,q_s=/^0b[01]+$/i,J_s=/^0o[0-7]+$/i,V_s=parseInt;function W_s(e){if(typeof e=="number")return e;if(j_s(e))return QGr;if(LGr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LGr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G_s(e);var r=q_s.test(e);return r||J_s.test(e)?V_s(e.slice(2),r?2:8):H_s.test(e)?QGr:+e}MGr.exports=W_s});var HGr=ae((m6a,jGr)=>{var Y_s=qQ(),rOt=NGr(),GGr=UGr(),z_s="Expected a function",K_s=Math.max,X_s=Math.min;function Z_s(e,t,r){var s,c,o,f,_,A,y=0,I=!1,D=!1,b=!0;if(typeof e!="function")throw new TypeError(z_s);t=GGr(t)||0,Y_s(r)&&(I=!!r.leading,D="maxWait"in r,o=D?K_s(GGr(r.maxWait)||0,t):o,b="trailing"in r?!!r.trailing:b);function L(me){var ye=s,Se=c;return s=c=void 0,y=me,f=e.apply(Se,ye),f}function x(me){return y=me,_=setTimeout(ne,t),I?L(me):f}function J(me){var ye=me-A,Se=me-y,Le=t-ye;return D?X_s(Le,o-Se):Le}function Y(me){var ye=me-A,Se=me-y;return A===void 0||ye>=t||ye<0||D&&Se>=o}function ne(){var me=rOt();if(Y(me))return Ae(me);_=setTimeout(ne,J(me))}function Ae(me){return _=void 0,b&&s?L(me):(s=c=void 0,f)}function le(){_!==void 0&&clearTimeout(_),y=0,s=A=c=_=void 0}function pe(){return _===void 0?f:Ae(rOt())}function ge(){var me=rOt(),ye=Y(me);if(s=arguments,c=this,A=me,ye){if(_===void 0)return x(A);if(D)return clearTimeout(_),_=setTimeout(ne,t),L(A)}return _===void 0&&(_=setTimeout(ne,t)),f}return ge.cancel=le,ge.flush=pe,ge}jGr.exports=Z_s});var JGr=ae((g6a,qGr)=>{var $_s=HGr(),eAs=qQ(),tAs="Expected a function";function rAs(e,t,r){var s=!0,c=!0;if(typeof e!="function")throw new TypeError(tAs);return eAs(r)&&(s="leading"in r?!!r.leading:s,c="trailing"in r?!!r.trailing:c),$_s(e,t,{leading:s,maxWait:t,trailing:c})}qGr.exports=rAs});var jM=ae(Ece=>{"use strict";Object.defineProperty(Ece,"__esModule",{value:!0});Ece.Report=Ece.ReportError=void 0;Ece.isReportError=VGr;var nAs=(Ma(),li(Qa)),iAs=nAs.__importDefault(JGr()),sAs=qt("stream"),oAs=qt("string_decoder"),aAs=AF(),cAs=15,nOt=class extends Error{constructor(t,r,s){super(r),this.reportExtra=s,this.reportCode=t}};Ece.ReportError=nOt;function VGr(e){return typeof e.reportCode<"u"}var iOt=class{constructor(){this.cacheHits=new Set,this.cacheMisses=new Set,this.reportedInfos=new Set,this.reportedWarnings=new Set,this.reportedErrors=new Set}getRecommendedLength(){return 180}reportCacheHit(t){this.cacheHits.add(t.locatorHash)}reportCacheMiss(t,r){this.cacheMisses.add(t.locatorHash)}static progressViaCounter(t){let r=0,s,c=new Promise(A=>{s=A}),o=A=>{let y=s;c=new Promise(I=>{s=I}),r=A,y()},f=(A=0)=>{o(r+1)},_=async function*(){for(;r{r=f}),c=(0,iAs.default)(f=>{let _=r;s=new Promise(A=>{r=A}),t=f,_()},1e3/cAs),o=async function*(){for(;;)await s,yield{title:t}}();return{[Symbol.asyncIterator](){return o},hasProgress:!1,hasTitle:!0,setTitle:c}}async startProgressPromise(t,r){let s=this.reportProgress(t);try{return await r(t)}finally{s.stop()}}startProgressSync(t,r){let s=this.reportProgress(t);try{return r(t)}finally{s.stop()}}reportInfoOnce(t,r,s){let c=s&&s.key?s.key:r;this.reportedInfos.has(c)||(this.reportedInfos.add(c),this.reportInfo(t,r),s?.reportExtra?.(this))}reportWarningOnce(t,r,s){let c=s&&s.key?s.key:r;this.reportedWarnings.has(c)||(this.reportedWarnings.add(c),this.reportWarning(t,r),s?.reportExtra?.(this))}reportErrorOnce(t,r,s){let c=s&&s.key?s.key:r;this.reportedErrors.has(c)||(this.reportedErrors.add(c),this.reportError(t,r),s?.reportExtra?.(this))}reportExceptionOnce(t){VGr(t)?this.reportErrorOnce(t.reportCode,t.message,{key:t,reportExtra:t.reportExtra}):this.reportErrorOnce(aAs.MessageName.EXCEPTION,t.stack||t.message,{key:t})}createStreamReporter(t=null){let r=new sAs.PassThrough,s=new oAs.StringDecoder,c="";return r.on("data",o=>{let f=s.write(o),_;do if(_=f.indexOf(`
-`),_!==-1){let A=c+f.substring(0,_);f=f.substring(_+1),c="",t!==null?this.reportInfo(null,`${t} ${A}`):this.reportInfo(null,A)}while(_!==-1);c+=f}),r.on("end",()=>{let o=s.end();o!==""&&(t!==null?this.reportInfo(null,`${t} ${o}`):this.reportInfo(null,o))}),r}};Ece.Report=iOt});var oOt=ae(RKe=>{"use strict";Object.defineProperty(RKe,"__esModule",{value:!0});RKe.MultiFetcher=void 0;var lAs=(Ma(),li(Qa)),uAs=AF(),fAs=jM(),pAs=lAs.__importStar(sR()),sOt=class{constructor(t){this.fetchers=t}supports(t,r){return!!this.tryFetcher(t,r)}getLocalPath(t,r){return this.getFetcher(t,r).getLocalPath(t,r)}async fetch(t,r){return await this.getFetcher(t,r).fetch(t,r)}tryFetcher(t,r){let s=this.fetchers.find(c=>c.supports(t,r));return s||null}getFetcher(t,r){let s=this.fetchers.find(c=>c.supports(t,r));if(!s)throw new fAs.ReportError(uAs.MessageName.FETCHER_NOT_FOUND,`${pAs.prettyLocator(r.project.configuration,t)} isn't supported by any available fetcher`);return s}};RKe.MultiFetcher=sOt});var cOt=ae(kKe=>{"use strict";Object.defineProperty(kKe,"__esModule",{value:!0});kKe.MultiResolver=void 0;var dAs=(Ma(),li(Qa)),WGr=dAs.__importStar(sR()),aOt=class{constructor(t){this.resolvers=t.filter(r=>r)}supportsDescriptor(t,r){return!!this.tryResolverByDescriptor(t,r)}supportsLocator(t,r){return!!this.tryResolverByLocator(t,r)}shouldPersistResolution(t,r){return this.getResolverByLocator(t,r).shouldPersistResolution(t,r)}bindDescriptor(t,r,s){return this.getResolverByDescriptor(t,s).bindDescriptor(t,r,s)}getResolutionDependencies(t,r){return this.getResolverByDescriptor(t,r).getResolutionDependencies(t,r)}async getCandidates(t,r,s){return await this.getResolverByDescriptor(t,s).getCandidates(t,r,s)}async getSatisfying(t,r,s,c){return this.getResolverByDescriptor(t,c).getSatisfying(t,r,s,c)}async resolve(t,r){return await this.getResolverByLocator(t,r).resolve(t,r)}tryResolverByDescriptor(t,r){let s=this.resolvers.find(c=>c.supportsDescriptor(t,r));return s||null}getResolverByDescriptor(t,r){let s=this.resolvers.find(c=>c.supportsDescriptor(t,r));if(!s)throw new Error(`${WGr.prettyDescriptor(r.project.configuration,t)} isn't supported by any available resolver`);return s}tryResolverByLocator(t,r){let s=this.resolvers.find(c=>c.supportsLocator(t,r));return s||null}getResolverByLocator(t,r){let s=this.resolvers.find(c=>c.supportsLocator(t,r));if(!s)throw new Error(`${WGr.prettyLocator(r.project.configuration,t)} isn't supported by any available resolver`);return s}};kKe.MultiResolver=aOt});var pOt=ae(PKe=>{"use strict";Object.defineProperty(PKe,"__esModule",{value:!0});PKe.VirtualFetcher=void 0;var _As=(Ma(),li(Qa)),lOt=Xo(),uOt=_As.__importStar(sR()),fOt=class{supports(t){return!!t.reference.startsWith("virtual:")}getLocalPath(t,r){let s=t.reference.indexOf("#");if(s===-1)throw new Error("Invalid virtual package reference");let c=t.reference.slice(s+1),o=uOt.makeLocator(t,c);return r.fetcher.getLocalPath(o,r)}async fetch(t,r){let s=t.reference.indexOf("#");if(s===-1)throw new Error("Invalid virtual package reference");let c=t.reference.slice(s+1),o=uOt.makeLocator(t,c),f=await r.fetcher.fetch(o,r);return await this.ensureVirtualLink(t,f,r)}getLocatorFilename(t){return uOt.slugifyLocator(t)}async ensureVirtualLink(t,r,s){let c=r.packageFs.getRealPath(),o=s.project.configuration.get("virtualFolder"),f=this.getLocatorFilename(t),_=lOt.VirtualFS.makeVirtualPath(o,f,c),A=new lOt.AliasFS(_,{baseFs:r.packageFs,pathUtils:lOt.ppath});return{...r,packageFs:A}}};PKe.VirtualFetcher=fOt});var YGr=ae(FKe=>{"use strict";Object.defineProperty(FKe,"__esModule",{value:!0});FKe.VirtualResolver=void 0;var OKe=class e{static isVirtualDescriptor(t){return!!t.range.startsWith(e.protocol)}static isVirtualLocator(t){return!!t.reference.startsWith(e.protocol)}supportsDescriptor(t,r){return e.isVirtualDescriptor(t)}supportsLocator(t,r){return e.isVirtualLocator(t)}shouldPersistResolution(t,r){return!1}bindDescriptor(t,r,s){throw new Error('Assertion failed: calling "bindDescriptor" on a virtual descriptor is unsupported')}getResolutionDependencies(t,r){throw new Error('Assertion failed: calling "getResolutionDependencies" on a virtual descriptor is unsupported')}async getCandidates(t,r,s){throw new Error('Assertion failed: calling "getCandidates" on a virtual descriptor is unsupported')}async getSatisfying(t,r,s,c){throw new Error('Assertion failed: calling "getSatisfying" on a virtual descriptor is unsupported')}async resolve(t,r){throw new Error('Assertion failed: calling "resolve" on a virtual locator is unsupported')}};FKe.VirtualResolver=OKe;OKe.protocol="virtual:"});var _Ot=ae(LKe=>{"use strict";Object.defineProperty(LKe,"__esModule",{value:!0});LKe.WorkspaceFetcher=void 0;var zGr=Xo(),KGr=gce(),dOt=class{supports(t){return!!t.reference.startsWith(KGr.WorkspaceResolver.protocol)}getLocalPath(t,r){return this.getWorkspace(t,r).cwd}async fetch(t,r){let s=this.getWorkspace(t,r).cwd;return{packageFs:new zGr.CwdFS(s),prefixPath:zGr.PortablePath.dot,localPath:s}}getWorkspace(t,r){return r.project.getWorkspaceByCwd(t.reference.slice(KGr.WorkspaceResolver.protocol.length))}};LKe.WorkspaceFetcher=dOt});var $Gr=ae(wj=>{"use strict";Object.defineProperty(wj,"__esModule",{value:!0});wj.RESOLVED_RC_FILE=void 0;wj.resolveRcFiles=gAs;wj.getValue=EAs;wj.getValueByTree=mOt;wj.getSource=yAs;var AAs=(e,t,r)=>{let s=[...e];return s.reverse(),s.findIndex(t,r)};function ZRe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var HM;(function(e){e[e.Object=0]="Object",e[e.Array=1]="Array",e[e.Literal=2]="Literal",e[e.Undefined=3]="Undefined"})(HM||(HM={}));function XGr(e){return typeof e>"u"?HM.Undefined:ZRe(e)?HM.Object:Array.isArray(e)?HM.Array:HM.Literal}function gOt(e,t){return Object.hasOwn(e,t)}function hAs(e){return ZRe(e)&&gOt(e,"onConflict")&&typeof e.onConflict=="string"}function mAs(e){if(typeof e>"u")return{onConflict:"default",value:e};if(!hAs(e))return{onConflict:"default",value:e};if(gOt(e,"value"))return e;let{onConflict:t,...r}=e;return{onConflict:t,value:r}}function ZGr(e,t){let r=ZRe(e)&&gOt(e,t)?e[t]:void 0;return mAs(r)}wj.RESOLVED_RC_FILE=Symbol();function C0e(e,t){return[e,t,wj.RESOLVED_RC_FILE]}function EOt(e){return Array.isArray(e)?e[2]===wj.RESOLVED_RC_FILE:!1}function AOt(e,t){if(ZRe(e)){let r={};for(let s of Object.keys(e))r[s]=AOt(e[s],t);return C0e(t,r)}return Array.isArray(e)?C0e(t,e.map(r=>AOt(r,t))):C0e(t,e)}function hOt(e,t,r,s,c){let o,f=[],_=c,A=0;for(let I=c-1;I>=s;--I){let[D,b]=e[I],{onConflict:L,value:x}=ZGr(b,r),J=XGr(x);if(J!==HM.Undefined){if(o??=J,J!==o||L==="hardReset"){A=_;break}if(J===HM.Literal)return C0e(D,x);if(f.unshift([D,x]),L==="reset"){A=I;break}L==="extend"&&I===s&&(s=0),_=I}}if(typeof o>"u")return null;let y=f.map(([I])=>I).join(", ");switch(o){case HM.Array:return C0e(y,new Array().concat(...f.map(([I,D])=>D.map(b=>AOt(b,I)))));case HM.Object:{let I=Object.assign({},...f.map(([,J])=>J)),D=Object.keys(I),b={},L=e.map(([J,Y])=>[J,ZGr(Y,r).value]),x=AAs(L,([J,Y])=>{let ne=XGr(Y);return ne!==HM.Object&&ne!==HM.Undefined});if(x!==-1){let J=L.slice(x+1);for(let Y of D)b[Y]=hOt(J,t,Y,0,J.length)}else for(let J of D)b[J]=hOt(L,t,J,A,L.length);return C0e(y,b)}default:throw new Error("Assertion failed: Non-extendable value type")}}function gAs(e){return hOt(e.map(([t,r])=>[t,{".":r}]),[],".",0,e.length)}function EAs(e){return EOt(e)?e[1]:e}function mOt(e){let t=EOt(e)?e[1]:e;if(Array.isArray(t))return t.map(r=>mOt(r));if(ZRe(t)){let r={};for(let[s,c]of Object.entries(t))r[s]=mOt(c);return r}return t}function yAs(e){return EOt(e)?e[0]:null}});var QKe=ae($Re=>{"use strict";Object.defineProperty($Re,"__esModule",{value:!0});$Re.getDefaultGlobalFolder=CAs;$Re.getHomeFolder=tjr;$Re.isFolderInside=IAs;var UW=Xo(),ejr=qt("os");function CAs(){if(process.platform==="win32"){let e=UW.npath.toPortablePath(process.env.LOCALAPPDATA||UW.npath.join((0,ejr.homedir)(),"AppData","Local"));return UW.ppath.resolve(e,"Yarn/Berry")}if(process.env.XDG_DATA_HOME){let e=UW.npath.toPortablePath(process.env.XDG_DATA_HOME);return UW.ppath.resolve(e,"yarn/berry")}return UW.ppath.resolve(tjr(),".yarn/berry")}function tjr(){return UW.npath.toPortablePath((0,ejr.homedir)()||"/usr/local/share")}function IAs(e,t){let r=UW.ppath.relative(t,e);return r&&!r.startsWith("..")&&!UW.ppath.isAbsolute(r)}});var sjr=ae(I0e=>{"use strict";var b6a=qt("net"),TAs=qt("tls"),yOt=qt("http"),rjr=qt("https"),SAs=qt("events"),w6a=qt("assert"),vAs=qt("util");I0e.httpOverHttp=DAs;I0e.httpsOverHttp=bAs;I0e.httpOverHttps=wAs;I0e.httpsOverHttps=BAs;function DAs(e){var t=new GW(e);return t.request=yOt.request,t}function bAs(e){var t=new GW(e);return t.request=yOt.request,t.createSocket=njr,t.defaultPort=443,t}function wAs(e){var t=new GW(e);return t.request=rjr.request,t}function BAs(e){var t=new GW(e);return t.request=rjr.request,t.createSocket=njr,t.defaultPort=443,t}function GW(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||yOt.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(s,c,o,f){for(var _=ijr(c,o,f),A=0,y=t.requests.length;A=this.maxSockets){o.requests.push(f);return}o.createSocket(f,function(_){_.on("free",A),_.on("close",y),_.on("agentRemove",y),t.onSocket(_);function A(){o.emit("free",_,f)}function y(I){o.removeSocket(_),_.removeListener("free",A),_.removeListener("close",y),_.removeListener("agentRemove",y)}})};GW.prototype.createSocket=function(t,r){var s=this,c={};s.sockets.push(c);var o=COt({},s.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:!1,headers:{host:t.host+":"+t.port}});t.localAddress&&(o.localAddress=t.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),Dee("making CONNECT request");var f=s.request(o);f.useChunkedEncodingByDefault=!1,f.once("response",_),f.once("upgrade",A),f.once("connect",y),f.once("error",I),f.end();function _(D){D.upgrade=!0}function A(D,b,L){process.nextTick(function(){y(D,b,L)})}function y(D,b,L){if(f.removeAllListeners(),b.removeAllListeners(),D.statusCode!==200){Dee("tunneling socket could not be established, statusCode=%d",D.statusCode),b.destroy();var x=new Error("tunneling socket could not be established, statusCode="+D.statusCode);x.code="ECONNRESET",t.request.emit("error",x),s.removeSocket(c);return}if(L.length>0){Dee("got illegal response body from proxy"),b.destroy();var x=new Error("got illegal response body from proxy");x.code="ECONNRESET",t.request.emit("error",x),s.removeSocket(c);return}return Dee("tunneling connection has established"),s.sockets[s.sockets.indexOf(c)]=b,r(b)}function I(D){f.removeAllListeners(),Dee(`tunneling socket could not be established, cause=%s
-`,D.message,D.stack);var b=new Error("tunneling socket could not be established, cause="+D.message);b.code="ECONNRESET",t.request.emit("error",b),s.removeSocket(c)}};GW.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(c){s.request.onSocket(c)})}};function njr(e,t){var r=this;GW.prototype.createSocket.call(r,e,function(s){var c=e.request.getHeader("host"),o=COt({},r.options,{socket:s,servername:c?c.replace(/:.*$/,""):e.host}),f=TAs.connect(0,o);r.sockets[r.sockets.indexOf(s)]=f,t(f)})}function ijr(e,t,r){return typeof e=="string"?{host:e,port:t,localAddress:r}:e}function COt(e){for(var t=1,r=arguments.length;t{ojr.exports=sjr()});var HW=ae((jW,MKe)=>{"use strict";Object.defineProperty(jW,"__esModule",{value:!0});var ajr=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function xAs(e){return ajr.includes(e)}var NAs=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...ajr];function RAs(e){return NAs.includes(e)}var kAs=["null","undefined","string","number","bigint","boolean","symbol"];function PAs(e){return kAs.includes(e)}function T0e(e){return t=>typeof t===e}var{toString:cjr}=Object.prototype,eke=e=>{let t=cjr.call(e).slice(8,-1);if(/HTML\w+Element/.test(t)&&yi.domElement(e))return"HTMLElement";if(RAs(t))return t},W1=e=>t=>eke(t)===e;function yi(e){if(e===null)return"null";switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(yi.observable(e))return"Observable";if(yi.array(e))return"Array";if(yi.buffer(e))return"Buffer";let t=eke(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}yi.undefined=T0e("undefined");yi.string=T0e("string");var OAs=T0e("number");yi.number=e=>OAs(e)&&!yi.nan(e);yi.bigint=T0e("bigint");yi.function_=T0e("function");yi.null_=e=>e===null;yi.class_=e=>yi.function_(e)&&e.toString().startsWith("class ");yi.boolean=e=>e===!0||e===!1;yi.symbol=T0e("symbol");yi.numericString=e=>yi.string(e)&&!yi.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));yi.array=(e,t)=>Array.isArray(e)?yi.function_(t)?e.every(t):!0:!1;yi.buffer=e=>{var t,r,s,c;return(c=(s=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||s===void 0?void 0:s.call(r,e))!==null&&c!==void 0?c:!1};yi.blob=e=>W1("Blob")(e);yi.nullOrUndefined=e=>yi.null_(e)||yi.undefined(e);yi.object=e=>!yi.null_(e)&&(typeof e=="object"||yi.function_(e));yi.iterable=e=>{var t;return yi.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};yi.asyncIterable=e=>{var t;return yi.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};yi.generator=e=>{var t,r;return yi.iterable(e)&&yi.function_((t=e)===null||t===void 0?void 0:t.next)&&yi.function_((r=e)===null||r===void 0?void 0:r.throw)};yi.asyncGenerator=e=>yi.asyncIterable(e)&&yi.function_(e.next)&&yi.function_(e.throw);yi.nativePromise=e=>W1("Promise")(e);var FAs=e=>{var t,r;return yi.function_((t=e)===null||t===void 0?void 0:t.then)&&yi.function_((r=e)===null||r===void 0?void 0:r.catch)};yi.promise=e=>yi.nativePromise(e)||FAs(e);yi.generatorFunction=W1("GeneratorFunction");yi.asyncGeneratorFunction=e=>eke(e)==="AsyncGeneratorFunction";yi.asyncFunction=e=>eke(e)==="AsyncFunction";yi.boundFunction=e=>yi.function_(e)&&!e.hasOwnProperty("prototype");yi.regExp=W1("RegExp");yi.date=W1("Date");yi.error=W1("Error");yi.map=e=>W1("Map")(e);yi.set=e=>W1("Set")(e);yi.weakMap=e=>W1("WeakMap")(e);yi.weakSet=e=>W1("WeakSet")(e);yi.int8Array=W1("Int8Array");yi.uint8Array=W1("Uint8Array");yi.uint8ClampedArray=W1("Uint8ClampedArray");yi.int16Array=W1("Int16Array");yi.uint16Array=W1("Uint16Array");yi.int32Array=W1("Int32Array");yi.uint32Array=W1("Uint32Array");yi.float32Array=W1("Float32Array");yi.float64Array=W1("Float64Array");yi.bigInt64Array=W1("BigInt64Array");yi.bigUint64Array=W1("BigUint64Array");yi.arrayBuffer=W1("ArrayBuffer");yi.sharedArrayBuffer=W1("SharedArrayBuffer");yi.dataView=W1("DataView");yi.enumCase=(e,t)=>Object.values(t).includes(e);yi.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;yi.urlInstance=e=>W1("URL")(e);yi.urlString=e=>{if(!yi.string(e))return!1;try{return new URL(e),!0}catch{return!1}};yi.truthy=e=>!!e;yi.falsy=e=>!e;yi.nan=e=>Number.isNaN(e);yi.primitive=e=>yi.null_(e)||PAs(typeof e);yi.integer=e=>Number.isInteger(e);yi.safeInteger=e=>Number.isSafeInteger(e);yi.plainObject=e=>{if(cjr.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};yi.typedArray=e=>xAs(eke(e));var LAs=e=>yi.safeInteger(e)&&e>=0;yi.arrayLike=e=>!yi.nullOrUndefined(e)&&!yi.function_(e)&&LAs(e.length);yi.inRange=(e,t)=>{if(yi.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(yi.array(t)&&t.length===2)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};var QAs=1,MAs=["innerHTML","ownerDocument","style","attributes","nodeValue"];yi.domElement=e=>yi.object(e)&&e.nodeType===QAs&&yi.string(e.nodeName)&&!yi.plainObject(e)&&MAs.every(t=>t in e);yi.observable=e=>{var t,r,s,c;return e?e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))||e===((c=(s=e)["@@observable"])===null||c===void 0?void 0:c.call(s)):!1};yi.nodeStream=e=>yi.object(e)&&yi.function_(e.pipe)&&!yi.observable(e);yi.infinite=e=>e===1/0||e===-1/0;var ljr=e=>t=>yi.integer(t)&&Math.abs(t%2)===e;yi.evenInteger=ljr(0);yi.oddInteger=ljr(1);yi.emptyArray=e=>yi.array(e)&&e.length===0;yi.nonEmptyArray=e=>yi.array(e)&&e.length>0;yi.emptyString=e=>yi.string(e)&&e.length===0;var UAs=e=>yi.string(e)&&!/\S/.test(e);yi.emptyStringOrWhitespace=e=>yi.emptyString(e)||UAs(e);yi.nonEmptyString=e=>yi.string(e)&&e.length>0;yi.nonEmptyStringAndNotWhitespace=e=>yi.string(e)&&!yi.emptyStringOrWhitespace(e);yi.emptyObject=e=>yi.object(e)&&!yi.map(e)&&!yi.set(e)&&Object.keys(e).length===0;yi.nonEmptyObject=e=>yi.object(e)&&!yi.map(e)&&!yi.set(e)&&Object.keys(e).length>0;yi.emptySet=e=>yi.set(e)&&e.size===0;yi.nonEmptySet=e=>yi.set(e)&&e.size>0;yi.emptyMap=e=>yi.map(e)&&e.size===0;yi.nonEmptyMap=e=>yi.map(e)&&e.size>0;yi.propertyKey=e=>yi.any([yi.string,yi.number,yi.symbol],e);yi.formData=e=>W1("FormData")(e);yi.urlSearchParams=e=>W1("URLSearchParams")(e);var ujr=(e,t,r)=>{if(!yi.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(r.length===0)throw new TypeError("Invalid number of values");return e.call(r,t)};yi.any=(e,...t)=>(yi.array(e)?e:[e]).some(s=>ujr(Array.prototype.some,s,t));yi.all=(e,...t)=>ujr(Array.prototype.every,e,t);var gu=(e,t,r,s={})=>{if(!e){let{multipleValues:c}=s,o=c?`received values of types ${[...new Set(r.map(f=>`\`${yi(f)}\``))].join(", ")}`:`received value of type \`${yi(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${o}.`)}};jW.assert={undefined:e=>gu(yi.undefined(e),"undefined",e),string:e=>gu(yi.string(e),"string",e),number:e=>gu(yi.number(e),"number",e),bigint:e=>gu(yi.bigint(e),"bigint",e),function_:e=>gu(yi.function_(e),"Function",e),null_:e=>gu(yi.null_(e),"null",e),class_:e=>gu(yi.class_(e),"Class",e),boolean:e=>gu(yi.boolean(e),"boolean",e),symbol:e=>gu(yi.symbol(e),"symbol",e),numericString:e=>gu(yi.numericString(e),"string with a number",e),array:(e,t)=>{gu(yi.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>gu(yi.buffer(e),"Buffer",e),blob:e=>gu(yi.blob(e),"Blob",e),nullOrUndefined:e=>gu(yi.nullOrUndefined(e),"null or undefined",e),object:e=>gu(yi.object(e),"Object",e),iterable:e=>gu(yi.iterable(e),"Iterable",e),asyncIterable:e=>gu(yi.asyncIterable(e),"AsyncIterable",e),generator:e=>gu(yi.generator(e),"Generator",e),asyncGenerator:e=>gu(yi.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>gu(yi.nativePromise(e),"native Promise",e),promise:e=>gu(yi.promise(e),"Promise",e),generatorFunction:e=>gu(yi.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>gu(yi.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>gu(yi.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>gu(yi.boundFunction(e),"Function",e),regExp:e=>gu(yi.regExp(e),"RegExp",e),date:e=>gu(yi.date(e),"Date",e),error:e=>gu(yi.error(e),"Error",e),map:e=>gu(yi.map(e),"Map",e),set:e=>gu(yi.set(e),"Set",e),weakMap:e=>gu(yi.weakMap(e),"WeakMap",e),weakSet:e=>gu(yi.weakSet(e),"WeakSet",e),int8Array:e=>gu(yi.int8Array(e),"Int8Array",e),uint8Array:e=>gu(yi.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>gu(yi.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>gu(yi.int16Array(e),"Int16Array",e),uint16Array:e=>gu(yi.uint16Array(e),"Uint16Array",e),int32Array:e=>gu(yi.int32Array(e),"Int32Array",e),uint32Array:e=>gu(yi.uint32Array(e),"Uint32Array",e),float32Array:e=>gu(yi.float32Array(e),"Float32Array",e),float64Array:e=>gu(yi.float64Array(e),"Float64Array",e),bigInt64Array:e=>gu(yi.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>gu(yi.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>gu(yi.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>gu(yi.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>gu(yi.dataView(e),"DataView",e),enumCase:(e,t)=>gu(yi.enumCase(e,t),"EnumCase",e),urlInstance:e=>gu(yi.urlInstance(e),"URL",e),urlString:e=>gu(yi.urlString(e),"string with a URL",e),truthy:e=>gu(yi.truthy(e),"truthy",e),falsy:e=>gu(yi.falsy(e),"falsy",e),nan:e=>gu(yi.nan(e),"NaN",e),primitive:e=>gu(yi.primitive(e),"primitive",e),integer:e=>gu(yi.integer(e),"integer",e),safeInteger:e=>gu(yi.safeInteger(e),"integer",e),plainObject:e=>gu(yi.plainObject(e),"plain object",e),typedArray:e=>gu(yi.typedArray(e),"TypedArray",e),arrayLike:e=>gu(yi.arrayLike(e),"array-like",e),domElement:e=>gu(yi.domElement(e),"HTMLElement",e),observable:e=>gu(yi.observable(e),"Observable",e),nodeStream:e=>gu(yi.nodeStream(e),"Node.js Stream",e),infinite:e=>gu(yi.infinite(e),"infinite number",e),emptyArray:e=>gu(yi.emptyArray(e),"empty array",e),nonEmptyArray:e=>gu(yi.nonEmptyArray(e),"non-empty array",e),emptyString:e=>gu(yi.emptyString(e),"empty string",e),emptyStringOrWhitespace:e=>gu(yi.emptyStringOrWhitespace(e),"empty string or whitespace",e),nonEmptyString:e=>gu(yi.nonEmptyString(e),"non-empty string",e),nonEmptyStringAndNotWhitespace:e=>gu(yi.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e),emptyObject:e=>gu(yi.emptyObject(e),"empty object",e),nonEmptyObject:e=>gu(yi.nonEmptyObject(e),"non-empty object",e),emptySet:e=>gu(yi.emptySet(e),"empty set",e),nonEmptySet:e=>gu(yi.nonEmptySet(e),"non-empty set",e),emptyMap:e=>gu(yi.emptyMap(e),"empty map",e),nonEmptyMap:e=>gu(yi.nonEmptyMap(e),"non-empty map",e),propertyKey:e=>gu(yi.propertyKey(e),"PropertyKey",e),formData:e=>gu(yi.formData(e),"FormData",e),urlSearchParams:e=>gu(yi.urlSearchParams(e),"URLSearchParams",e),evenInteger:e=>gu(yi.evenInteger(e),"even integer",e),oddInteger:e=>gu(yi.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>gu(yi.directInstanceOf(e,t),"T",e),inRange:(e,t)=>gu(yi.inRange(e,t),"in range",e),any:(e,...t)=>gu(yi.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>gu(yi.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})};Object.defineProperties(yi,{class:{value:yi.class_},function:{value:yi.function_},null:{value:yi.null_}});Object.defineProperties(jW.assert,{class:{value:jW.assert.class_},function:{value:jW.assert.function_},null:{value:jW.assert.null_}});jW.default=yi;MKe.exports=yi;MKe.exports.default=yi;MKe.exports.assert=jW.assert});var fjr=ae((N6a,TOt)=>{"use strict";var UKe=class extends Error{constructor(t){super(t||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},GKe=class e{static fn(t){return(...r)=>new e((s,c,o)=>{r.push(o),t(...r).then(s,c)})}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,s)=>{this._reject=s;let c=_=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,r(_))},o=_=>{this._isPending=!1,s(_)},f=_=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(_)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:_=>{this._rejectOnCancel=_}}}),t(c,o,f)})}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(t){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new UKe(t))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(GKe.prototype,Promise.prototype);TOt.exports=GKe;TOt.exports.CancelError=UKe});var pjr=ae((vOt,DOt)=>{"use strict";Object.defineProperty(vOt,"__esModule",{value:!0});function GAs(e){return e.encrypted}var SOt=(e,t)=>{let r;typeof t=="function"?r={connect:t}:r=t;let s=typeof r.connect=="function",c=typeof r.secureConnect=="function",o=typeof r.close=="function",f=()=>{s&&r.connect(),GAs(e)&&c&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),o&&e.once("close",r.close)};e.writable&&!e.connecting?f():e.connecting?e.once("connect",f):e.destroyed&&o&&r.close(e._hadError)};vOt.default=SOt;DOt.exports=SOt;DOt.exports.default=SOt});var djr=ae((wOt,BOt)=>{"use strict";Object.defineProperty(wOt,"__esModule",{value:!0});var jAs=pjr(),HAs=qt("util"),qAs=Number(process.versions.node.split(".")[0]),bOt=e=>{if(e.timings)return e.timings;let t={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}};e.timings=t;let r=_=>{let A=_.emit.bind(_);_.emit=(y,...I)=>(y==="error"&&(t.error=Date.now(),t.phases.total=t.error-t.start,_.emit=A),A(y,...I))};r(e);let s=()=>{t.abort=Date.now(),(!t.response||qAs>=13)&&(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",s);let c=_=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,HAs.types.isProxy(_))return;let A=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};_.prependOnceListener("lookup",A),jAs.default(_,{connect:()=>{t.connect=Date.now(),t.lookup===void 0&&(_.removeListener("lookup",A),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?c(e.socket):e.prependOnceListener("socket",c);let o=()=>{var _;t.upload=Date.now(),t.phases.request=t.upload-((_=t.secureConnect)!==null&&_!==void 0?_:t.connect)};return(typeof e.writableFinished=="boolean"?e.writableFinished:e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0))?o():e.prependOnceListener("finish",o),e.prependOnceListener("response",_=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,_.timings=t,r(_),_.prependOnceListener("end",()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}),_.prependOnceListener("aborted",s)}),t};wOt.default=bOt;BOt.exports=bOt;BOt.exports.default=bOt});var yjr=ae((R6a,ROt)=>{"use strict";var{V4MAPPED:JAs,ADDRCONFIG:VAs,ALL:Ejr,promises:{Resolver:_jr},lookup:WAs}=qt("dns"),{promisify:xOt}=qt("util"),YAs=qt("os"),S0e=Symbol("cacheableLookupCreateConnection"),NOt=Symbol("cacheableLookupInstance"),Ajr=Symbol("expires"),zAs=typeof Ejr=="number",hjr=e=>{if(!(e&&typeof e.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},KAs=e=>{for(let t of e)t.family!==6&&(t.address=`::ffff:${t.address}`,t.family=6)},mjr=()=>{let e=!1,t=!1;for(let r of Object.values(YAs.networkInterfaces()))for(let s of r)if(!s.internal&&(s.family==="IPv6"?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},XAs=e=>Symbol.iterator in e,gjr={ttl:!0},ZAs={all:!0},jKe=class{constructor({cache:t=new Map,maxTtl:r=1/0,fallbackDuration:s=3600,errorTtl:c=.15,resolver:o=new _jr,lookup:f=WAs}={}){if(this.maxTtl=r,this.errorTtl=c,this._cache=t,this._resolver=o,this._dnsLookup=xOt(f),this._resolver instanceof _jr?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=xOt(this._resolver.resolve4.bind(this._resolver)),this._resolve6=xOt(this._resolver.resolve6.bind(this._resolver))),this._iface=mjr(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,s<1)this._fallback=!1;else{this._fallback=!0;let _=setInterval(()=>{this._hostnamesToFallback.clear()},s*1e3);_.unref&&_.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(t){this.clear(),this._resolver.setServers(t)}get servers(){return this._resolver.getServers()}lookup(t,r,s){if(typeof r=="function"?(s=r,r={}):typeof r=="number"&&(r={family:r}),!s)throw new Error("Callback must be a function.");this.lookupAsync(t,r).then(c=>{r.all?s(null,c):s(null,c.address,c.family,c.expires,c.ttl)},s)}async lookupAsync(t,r={}){typeof r=="number"&&(r={family:r});let s=await this.query(t);if(r.family===6){let c=s.filter(o=>o.family===6);r.hints&JAs&&(zAs&&r.hints&Ejr||c.length===0)?KAs(s):s=c}else r.family===4&&(s=s.filter(c=>c.family===4));if(r.hints&VAs){let{_iface:c}=this;s=s.filter(o=>o.family===6?c.has6:c.has4)}if(s.length===0){let c=new Error(`cacheableLookup ENOTFOUND ${t}`);throw c.code="ENOTFOUND",c.hostname=t,c}return r.all?s:s[0]}async query(t){let r=await this._cache.get(t);if(!r){let s=this._pending[t];if(s)r=await s;else{let c=this.queryAndCache(t);this._pending[t]=c;try{r=await c}finally{delete this._pending[t]}}}return r=r.map(s=>({...s})),r}async _resolve(t){let r=async y=>{try{return await y}catch(I){if(I.code==="ENODATA"||I.code==="ENOTFOUND")return[];throw I}},[s,c]=await Promise.all([this._resolve4(t,gjr),this._resolve6(t,gjr)].map(y=>r(y))),o=0,f=0,_=0,A=Date.now();for(let y of s)y.family=4,y.expires=A+y.ttl*1e3,o=Math.max(o,y.ttl);for(let y of c)y.family=6,y.expires=A+y.ttl*1e3,f=Math.max(f,y.ttl);return s.length>0?c.length>0?_=Math.min(o,f):_=o:_=f,{entries:[...s,...c],cacheTtl:_}}async _lookup(t){try{return{entries:await this._dnsLookup(t,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(t,r,s){if(this.maxTtl>0&&s>0){s=Math.min(s,this.maxTtl)*1e3,r[Ajr]=Date.now()+s;try{await this._cache.set(t,r,s)}catch(c){this.lookupAsync=async()=>{let o=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw o.cause=c,o}}XAs(this._cache)&&this._tick(s)}}async queryAndCache(t){if(this._hostnamesToFallback.has(t))return this._dnsLookup(t,ZAs);let r=await this._resolve(t);r.entries.length===0&&this._fallback&&(r=await this._lookup(t),r.entries.length!==0&&this._hostnamesToFallback.add(t));let s=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(t,r.entries,s),r.entries}_tick(t){let r=this._nextRemovalTime;(!r||t{this._nextRemovalTime=!1;let s=1/0,c=Date.now();for(let[o,f]of this._cache){let _=f[Ajr];c>=_?this._cache.delete(o):_("lookup"in r||(r.lookup=this.lookup),t[S0e](r,s))}uninstall(t){if(hjr(t),t[S0e]){if(t[NOt]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");t.createConnection=t[S0e],delete t[S0e],delete t[NOt]}}updateInterfaceInfo(){let{_iface:t}=this;this._iface=mjr(),(t.has4&&!this._iface.has4||t.has6&&!this._iface.has6)&&this._cache.clear()}clear(t){if(t){this._cache.delete(t);return}this._cache.clear()}};ROt.exports=jKe;ROt.exports.default=jKe});var Tjr=ae((k6a,Ijr)=>{"use strict";var $As="text/plain",ehs="us-ascii",Cjr=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),ths=(e,{stripHash:t})=>{let r=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:s,data:c,hash:o}=r.groups,f=s.split(";");o=t?"":o;let _=!1;f[f.length-1]==="base64"&&(f.pop(),_=!0);let A=(f.shift()||"").toLowerCase(),I=[...f.map(D=>{let[b,L=""]=D.split("=").map(x=>x.trim());return b==="charset"&&(L=L.toLowerCase(),L===ehs)?"":`${b}${L?`=${L}`:""}`}).filter(Boolean)];return _&&I.push("base64"),(I.length!==0||A&&A!==$As)&&I.unshift(A),`data:${I.join(";")},${_?c.trim():c}${o?`#${o}`:""}`},rhs=(e,t)=>{if(t={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,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return ths(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let c=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&c.protocol==="https:"&&(c.protocol="http:"),t.forceHttps&&c.protocol==="http:"&&(c.protocol="https:"),t.stripAuthentication&&(c.username="",c.password=""),t.stripHash?c.hash="":t.stripTextFragment&&(c.hash=c.hash.replace(/#?:~:text.*?$/i,"")),c.pathname&&(c.pathname=c.pathname.replace(/(?0){let f=c.pathname.split("/"),_=f[f.length-1];Cjr(_,t.removeDirectoryIndex)&&(f=f.slice(0,f.length-1),c.pathname=f.slice(1).join("/")+"/")}if(c.hostname&&(c.hostname=c.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(c.hostname)&&(c.hostname=c.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let f of[...c.searchParams.keys()])Cjr(f,t.removeQueryParameters)&&c.searchParams.delete(f);t.removeQueryParameters===!0&&(c.search=""),t.sortQueryParameters&&c.searchParams.sort(),t.removeTrailingSlash&&(c.pathname=c.pathname.replace(/\/$/,""));let o=e;return e=c.toString(),!t.removeSingleSlash&&c.pathname==="/"&&!o.endsWith("/")&&c.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||c.pathname==="/")&&c.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};Ijr.exports=rhs});var Djr=ae((P6a,vjr)=>{vjr.exports=Sjr;function Sjr(e,t){if(e&&t)return Sjr(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(s){r[s]=e[s]}),r;function r(){for(var s=new Array(arguments.length),c=0;c{var bjr=Djr();kOt.exports=bjr(HKe);kOt.exports.strict=bjr(wjr);HKe.proto=HKe(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return HKe(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return wjr(this)},configurable:!0})});function HKe(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function wjr(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var POt=ae((F6a,xjr)=>{var nhs=qKe(),ihs=function(){},shs=function(e){return e.setHeader&&typeof e.abort=="function"},ohs=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},Bjr=function(e,t,r){if(typeof t=="function")return Bjr(e,null,t);t||(t={}),r=nhs(r||ihs);var s=e._writableState,c=e._readableState,o=t.readable||t.readable!==!1&&e.readable,f=t.writable||t.writable!==!1&&e.writable,_=!1,A=function(){e.writable||y()},y=function(){f=!1,o||r.call(e)},I=function(){o=!1,f||r.call(e)},D=function(Y){r.call(e,Y?new Error("exited with error code: "+Y):null)},b=function(Y){r.call(e,Y)},L=function(){process.nextTick(x)},x=function(){if(!_){if(o&&!(c&&c.ended&&!c.destroyed))return r.call(e,new Error("premature close"));if(f&&!(s&&s.ended&&!s.destroyed))return r.call(e,new Error("premature close"))}},J=function(){e.req.on("finish",y)};return shs(e)?(e.on("complete",y),e.on("abort",L),e.req?J():e.on("request",J)):f&&!s&&(e.on("end",A),e.on("close",A)),ohs(e)&&e.on("exit",D),e.on("end",I),e.on("finish",y),t.error!==!1&&e.on("error",b),e.on("close",L),function(){_=!0,e.removeListener("complete",y),e.removeListener("abort",L),e.removeListener("request",J),e.req&&e.req.removeListener("finish",y),e.removeListener("end",A),e.removeListener("close",A),e.removeListener("finish",y),e.removeListener("exit",D),e.removeListener("end",I),e.removeListener("error",b),e.removeListener("close",L)}};xjr.exports=Bjr});var kjr=ae((L6a,Rjr)=>{var ahs=qKe(),chs=POt(),JKe;try{JKe=qt("fs")}catch{}var tke=function(){},lhs=/^v?\.0/.test(process.version),VKe=function(e){return typeof e=="function"},uhs=function(e){return!lhs||!JKe?!1:(e instanceof(JKe.ReadStream||tke)||e instanceof(JKe.WriteStream||tke))&&VKe(e.close)},fhs=function(e){return e.setHeader&&VKe(e.abort)},phs=function(e,t,r,s){s=ahs(s);var c=!1;e.on("close",function(){c=!0}),chs(e,{readable:t,writable:r},function(f){if(f)return s(f);c=!0,s()});var o=!1;return function(f){if(!c&&!o){if(o=!0,uhs(e))return e.close(tke);if(fhs(e))return e.abort();if(VKe(e.destroy))return e.destroy();s(f||new Error("stream was destroyed"))}}},Njr=function(e){e()},dhs=function(e,t){return e.pipe(t)},_hs=function(){var e=Array.prototype.slice.call(arguments),t=VKe(e[e.length-1]||tke)&&e.pop()||tke;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,s=e.map(function(c,o){var f=o0;return phs(c,f,_,function(A){r||(r=A),A&&s.forEach(Njr),!f&&(s.forEach(Njr),t(r))})});return e.reduce(dhs)};Rjr.exports=_hs});var Ojr=ae((Q6a,Pjr)=>{"use strict";var{PassThrough:Ahs}=qt("stream");Pjr.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,s=r==="buffer",c=!1;t?c=!(r||s):r=r||"utf8",s&&(r=null);let o=new Ahs({objectMode:c});r&&o.setEncoding(r);let f=0,_=[];return o.on("data",A=>{_.push(A),c?f=_.length:f+=A.length}),o.getBufferedValue=()=>t?_:s?Buffer.concat(_,f):_.join(""),o.getBufferedLength=()=>f,o}});var Fjr=ae((M6a,v0e)=>{"use strict";var{constants:hhs}=qt("buffer"),mhs=kjr(),ghs=Ojr(),WKe=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function YKe(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,s;return await new Promise((c,o)=>{let f=_=>{_&&s.getBufferedLength()<=hhs.MAX_LENGTH&&(_.bufferedData=s.getBufferedValue()),o(_)};s=mhs(e,ghs(t),_=>{if(_){f(_);return}c()}),s.on("data",()=>{s.getBufferedLength()>r&&f(new WKe)})}),s.getBufferedValue()}v0e.exports=YKe;v0e.exports.default=YKe;v0e.exports.buffer=(e,t)=>YKe(e,{...t,encoding:"buffer"});v0e.exports.array=(e,t)=>YKe(e,{...t,array:!0});v0e.exports.MaxBufferError=WKe});var Qjr=ae((G6a,Ljr)=>{"use strict";var Ehs=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),yhs=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Chs=new Set([500,502,503,504]),Ihs={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ths={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function yce(e){let t=parseInt(e,10);return isFinite(t)?t:0}function Shs(e){return e?Chs.has(e.status):!0}function OOt(e){let t={};if(!e)return t;let r=e.trim().split(/,/);for(let s of r){let[c,o]=s.split(/=/,2);t[c.trim()]=o===void 0?!0:o.trim().replace(/^"|"$/g,"")}return t}function vhs(e){let t=[];for(let r in e){let s=e[r];t.push(s===!0?r:r+"="+s)}if(t.length)return t.join(", ")}Ljr.exports=class{constructor(t,r,{shared:s,cacheHeuristic:c,immutableMinTimeToLive:o,ignoreCargoCult:f,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=s!==!1,this._cacheHeuristic=c!==void 0?c:.1,this._immutableMinTtl=o!==void 0?o:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=OOt(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=OOt(t.headers["cache-control"]),f&&"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":vhs(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())&&yhs.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||Ehs.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(t){if(!t||!t.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(t){this._assertRequestHasHeaders(t);let r=OOt(t.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(t.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(t,!1)}_requestMatches(t,r){return(!this._url||this._url===t.url)&&this._host===t.headers.host&&(!t.method||this._method===t.method||r&&t.method==="HEAD")&&this._varyMatches(t)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(t){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let s of r)if(t.headers[s]!==this._reqHeaders[s])return!1;return!0}_copyWithoutHopByHopHeaders(t){let r={};for(let s in t)Ihs[s]||(r[s]=t[s]);if(t.connection){let s=t.connection.trim().split(/\s*,\s*/);for(let c of s)delete r[c]}if(r.warning){let s=r.warning.split(/,/).filter(c=>!/^\s*1[0-9][0-9]/.test(c));s.length?r.warning=s.join(",").trim():delete r.warning}return r}responseHeaders(){let t=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(t.warning=(t.warning?`${t.warning}, `:"")+'113 - "rfc7234 5.5.4"'),t.age=`${Math.round(r)}`,t.date=new Date(this.now()).toUTCString(),t}date(){let t=Date.parse(this._resHeaders.date);return isFinite(t)?t:this._responseTime}age(){let t=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return t+r}_ageValue(){return yce(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 yce(this._rescc["s-maxage"])}if(this._rescc["max-age"])return yce(this._rescc["max-age"]);let t=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let s=Date.parse(this._resHeaders.expires);return Number.isNaN(s)||ss)return Math.max(t,(r-s)/1e3*this._cacheHeuristic)}return t}timeToLive(){let t=this.maxAge()-this.age(),r=t+yce(this._rescc["stale-if-error"]),s=t+yce(this._rescc["stale-while-revalidate"]);return Math.max(0,t,r,s)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+yce(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+yce(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(t){return new this(void 0,void 0,{_fromObject:t})}_fromObject(t){if(this._responseTime)throw Error("Reinitialized");if(!t||t.v!==1)throw Error("Invalid serialization");this._responseTime=t.t,this._isShared=t.sh,this._cacheHeuristic=t.ch,this._immutableMinTtl=t.imm!==void 0?t.imm:24*3600*1e3,this._status=t.st,this._resHeaders=t.resh,this._rescc=t.rescc,this._method=t.m,this._url=t.u,this._host=t.h,this._noAuthorization=t.a,this._reqHeaders=t.reqh,this._reqcc=t.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(t){this._assertRequestHasHeaders(t);let r=this._copyWithoutHopByHopHeaders(t.headers);if(delete r["if-range"],!this._requestMatches(t,!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 c=r["if-none-match"].split(/,/).filter(o=>!/^\s*W\//.test(o));c.length?r["if-none-match"]=c.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(t,r){if(this._assertRequestHasHeaders(t),this._useStaleIfError()&&Shs(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let s=!1;if(r.status!==void 0&&r.status!=304?s=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?s=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?s=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?s=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(s=!0),!s)return{policy:new this.constructor(t,r),modified:r.status!=304,matches:!1};let c={};for(let f in this._resHeaders)c[f]=f in r.headers&&!Ths[f]?r.headers[f]:this._resHeaders[f];let o=Object.assign({},r,{status:this._status,method:this._method,headers:c});return{policy:new this.constructor(t,o,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var zKe=ae((j6a,Mjr)=>{"use strict";Mjr.exports=e=>{let t={};for(let[r,s]of Object.entries(e))t[r.toLowerCase()]=s;return t}});var Gjr=ae((H6a,Ujr)=>{"use strict";var Dhs=qt("stream").Readable,bhs=zKe(),FOt=class extends Dhs{constructor(t,r,s,c){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof c!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=bhs(r),this.body=s,this.url=c}_read(){this.push(this.body),this.push(null)}};Ujr.exports=FOt});var Hjr=ae((q6a,jjr)=>{"use strict";var whs=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];jjr.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(whs));for(let s of r)s in t||(t[s]=typeof e[s]=="function"?e[s].bind(e):e[s])}});var Jjr=ae((J6a,qjr)=>{"use strict";var Bhs=qt("stream").PassThrough,xhs=Hjr(),Nhs=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new Bhs;return xhs(e,t),e.pipe(t)};qjr.exports=Nhs});var Vjr=ae(LOt=>{LOt.stringify=function e(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var r="",s=Array.isArray(t);r=s?"[":"{";var c=!0;for(var o in t){var f=typeof t[o]=="function"||!s&&typeof t[o]>"u";Object.hasOwnProperty.call(t,o)&&!f&&(c||(r+=","),c=!1,s?t[o]==null?r+="null":r+=e(t[o]):t[o]!==void 0&&(r+=e(o)+":"+e(t[o])))}return r+=s?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)};LOt.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Kjr=ae((W6a,zjr)=>{"use strict";var Rhs=qt("events"),Wjr=Vjr(),khs=e=>{let t={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(e.adapter||e.uri){let r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(qt(t[r]))(e)}return new Map},Yjr=["sqlite","postgres","mysql","mongo","redis","tiered"],QOt=class extends Rhs{constructor(t,{emitErrors:r=!0,...s}={}){if(super(),this.opts={namespace:"keyv",serialize:Wjr.stringify,deserialize:Wjr.parse,...typeof t=="string"?{uri:t}:t,...s},!this.opts.store){let o={...this.opts};this.opts.store=khs(o)}if(this.opts.compression){let o=this.opts.compression;this.opts.serialize=o.serialize.bind(o),this.opts.deserialize=o.deserialize.bind(o)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",o=>this.emit("error",o)),this.opts.store.namespace=this.opts.namespace;let c=o=>async function*(){for await(let[f,_]of typeof o=="function"?o(this.opts.store.namespace):o){let A=await this.opts.deserialize(_);if(!(this.opts.store.namespace&&!f.includes(this.opts.store.namespace))){if(typeof A.expires=="number"&&Date.now()>A.expires){this.delete(f);continue}yield[this._getKeyUnprefix(f),A.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=c(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=c(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Yjr.includes(this.opts.store.opts.dialect)||Yjr.findIndex(t=>this.opts.store.opts.url.includes(t))>=0}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}_getKeyPrefixArray(t){return t.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(t){return t.split(":").splice(1).join(":")}get(t,r){let{store:s}=this.opts,c=Array.isArray(t),o=c?this._getKeyPrefixArray(t):this._getKeyPrefix(t);if(c&&s.getMany===void 0){let f=[];for(let _ of o)f.push(Promise.resolve().then(()=>s.get(_)).then(A=>typeof A=="string"?this.opts.deserialize(A):this.opts.compression?this.opts.deserialize(A):A).then(A=>{if(A!=null)return typeof A.expires=="number"&&Date.now()>A.expires?this.delete(_).then(()=>{}):r&&r.raw?A:A.value}));return Promise.allSettled(f).then(_=>{let A=[];for(let y of _)A.push(y.value);return A})}return Promise.resolve().then(()=>c?s.getMany(o):s.get(o)).then(f=>typeof f=="string"?this.opts.deserialize(f):this.opts.compression?this.opts.deserialize(f):f).then(f=>{if(f!=null)return c?f.map((_,A)=>{if(typeof _=="string"&&(_=this.opts.deserialize(_)),_!=null){if(typeof _.expires=="number"&&Date.now()>_.expires){this.delete(t[A]).then(()=>{});return}return r&&r.raw?_:_.value}}):typeof f.expires=="number"&&Date.now()>f.expires?this.delete(t).then(()=>{}):r&&r.raw?f:f.value})}set(t,r,s){let c=this._getKeyPrefix(t);typeof s>"u"&&(s=this.opts.ttl),s===0&&(s=void 0);let{store:o}=this.opts;return Promise.resolve().then(()=>{let f=typeof s=="number"?Date.now()+s:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:f},this.opts.serialize(r)}).then(f=>o.set(c,f,s)).then(()=>!0)}delete(t){let{store:r}=this.opts;if(Array.isArray(t)){let c=this._getKeyPrefixArray(t);if(r.deleteMany===void 0){let o=[];for(let f of c)o.push(r.delete(f));return Promise.allSettled(o).then(f=>f.every(_=>_.value===!0))}return Promise.resolve().then(()=>r.deleteMany(c))}let s=this._getKeyPrefix(t);return Promise.resolve().then(()=>r.delete(s))}clear(){let{store:t}=this.opts;return Promise.resolve().then(()=>t.clear())}has(t){let r=this._getKeyPrefix(t),{store:s}=this.opts;return Promise.resolve().then(async()=>typeof s.has=="function"?s.has(r):await s.get(r)!==void 0)}disconnect(){let{store:t}=this.opts;if(typeof t.disconnect=="function")return t.disconnect()}};zjr.exports=QOt});var $jr=ae((z6a,Zjr)=>{"use strict";var Phs=qt("events"),KKe=qt("url"),Ohs=Tjr(),Fhs=Fjr(),MOt=Qjr(),Xjr=Gjr(),Lhs=zKe(),Qhs=Jjr(),Mhs=Kjr(),rke=class e{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new Mhs({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,s)=>{let c;if(typeof r=="string")c=UOt(KKe.parse(r)),r={};else if(r instanceof KKe.URL)c=UOt(KKe.parse(r.toString())),r={};else{let[D,...b]=(r.path||"").split("?"),L=b.length>0?`?${b.join("?")}`:"";c=UOt({...r,pathname:D,search:L})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...Uhs(c)},r.headers=Lhs(r.headers);let o=new Phs,f=Ohs(KKe.format(c),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),_=`${r.method}:${f}`,A=!1,y=!1,I=D=>{y=!0;let b=!1,L,x=new Promise(Y=>{L=()=>{b||(b=!0,Y())}}),J=Y=>{if(A&&!D.forceRefresh){Y.status=Y.statusCode;let Ae=MOt.fromObject(A.cachePolicy).revalidatedPolicy(D,Y);if(!Ae.modified){let le=Ae.policy.responseHeaders();Y=new Xjr(A.statusCode,le,A.body,A.url),Y.cachePolicy=Ae.policy,Y.fromCache=!0}}Y.fromCache||(Y.cachePolicy=new MOt(D,Y,D),Y.fromCache=!1);let ne;D.cache&&Y.cachePolicy.storable()?(ne=Qhs(Y),(async()=>{try{let Ae=Fhs.buffer(Y);if(await Promise.race([x,new Promise(me=>Y.once("end",me))]),b)return;let le=await Ae,pe={cachePolicy:Y.cachePolicy.toObject(),url:Y.url,statusCode:Y.fromCache?A.statusCode:Y.statusCode,body:le},ge=D.strictTtl?Y.cachePolicy.timeToLive():void 0;D.maxTtl&&(ge=ge?Math.min(ge,D.maxTtl):D.maxTtl),await this.cache.set(_,pe,ge)}catch(Ae){o.emit("error",new e.CacheError(Ae))}})()):D.cache&&A&&(async()=>{try{await this.cache.delete(_)}catch(Ae){o.emit("error",new e.CacheError(Ae))}})(),o.emit("response",ne||Y),typeof s=="function"&&s(ne||Y)};try{let Y=t(D,J);Y.once("error",L),Y.once("abort",L),o.emit("request",Y)}catch(Y){o.emit("error",new e.RequestError(Y))}};return(async()=>{let D=async L=>{await Promise.resolve();let x=L.cache?await this.cache.get(_):void 0;if(typeof x>"u")return I(L);let J=MOt.fromObject(x.cachePolicy);if(J.satisfiesWithoutRevalidation(L)&&!L.forceRefresh){let Y=J.responseHeaders(),ne=new Xjr(x.statusCode,Y,x.body,x.url);ne.cachePolicy=J,ne.fromCache=!0,o.emit("response",ne),typeof s=="function"&&s(ne)}else A=x,L.headers=J.revalidationHeaders(L),I(L)},b=L=>o.emit("error",new e.CacheError(L));this.cache.once("error",b),o.on("response",()=>this.cache.removeListener("error",b));try{await D(r)}catch(L){r.automaticFailover&&!y&&I(r),o.emit("error",new e.CacheError(L))}})(),o}}};function Uhs(e){let t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function UOt(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}rke.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};rke.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};Zjr.exports=rke});var tHr=ae((Z6a,eHr)=>{"use strict";var Ghs=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];eHr.exports=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(e).concat(Ghs)),s={};for(let c of r)c in t||(s[c]={get(){let o=e[c];return typeof o=="function"?o.bind(e):o},set(o){e[c]=o},enumerable:!0,configurable:!1});return Object.defineProperties(t,s),e.once("aborted",()=>{t.destroy(),t.emit("aborted")}),e.once("close",()=>{e.complete&&t.readable?t.once("end",()=>{t.emit("close")}):t.emit("close")}),t}});var nHr=ae(($6a,rHr)=>{"use strict";var{Transform:jhs,PassThrough:Hhs}=qt("stream"),GOt=qt("zlib"),qhs=tHr();rHr.exports=e=>{let t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;let r=t==="br";if(r&&typeof GOt.createBrotliDecompress!="function")return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let s=!0,c=new jhs({transform(_,A,y){s=!1,y(null,_)},flush(_){_()}}),o=new Hhs({autoDestroy:!1,destroy(_,A){e.destroy(),A(_)}}),f=r?GOt.createBrotliDecompress():GOt.createUnzip();return f.once("error",_=>{if(s&&!e.readable){o.end();return}o.destroy(_)}),qhs(e,o),e.pipe(c).pipe(f).pipe(o),o}});var HOt=ae((e8a,iHr)=>{"use strict";var jOt=class{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){if(this.cache.set(t,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[s,c]of this.oldCache.entries())this.onEviction(s,c);this.oldCache=this.cache,this.cache=new Map}}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){let r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache)yield t;for(let t of this.oldCache){let[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}};iHr.exports=jOt});var JOt=ae((t8a,cHr)=>{"use strict";var Jhs=qt("events"),Vhs=qt("tls"),Whs=qt("http2"),Yhs=HOt(),dP=Symbol("currentStreamsCount"),sHr=Symbol("request"),qM=Symbol("cachedOriginSet"),D0e=Symbol("gracefullyClosing"),zhs=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],Khs=(e,t,r)=>{let s=0,c=e.length;for(;s>>1;r(e[o],t)?s=o+1:c=o}return s},Xhs=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,qOt=(e,t)=>{for(let r of e)r[qM].lengtht[qM].includes(s))&&r[dP]+t[dP]<=t.remoteSettings.maxConcurrentStreams&&aHr(r)},Zhs=(e,t)=>{for(let r of e)t[qM].lengthr[qM].includes(s))&&t[dP]+r[dP]<=r.remoteSettings.maxConcurrentStreams&&aHr(t)},oHr=({agent:e,isFree:t})=>{let r={};for(let s in e.sessions){let o=e.sessions[s].filter(f=>{let _=f[Cce.kCurrentStreamsCount]{e[D0e]=!0,e[dP]===0&&e.close()},Cce=class e extends Jhs{constructor({timeout:t=6e4,maxSessions:r=1/0,maxFreeSessions:s=10,maxCachedTlsSessions:c=100}={}){super(),this.sessions={},this.queue={},this.timeout=t,this.maxSessions=r,this.maxFreeSessions=s,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new Yhs({maxSize:c})}static normalizeOrigin(t,r){return typeof t=="string"&&(t=new URL(t)),r&&t.hostname!==r&&(t.hostname=r),t.origin}normalizeOptions(t){let r="";if(t)for(let s of zhs)t[s]&&(r+=`:${t[s]}`);return r}_tryToCreateNewSession(t,r){if(!(t in this.queue)||!(r in this.queue[t]))return;let s=this.queue[t][r];this._sessionsCount{Array.isArray(s)?(s=[...s],c()):s=[{resolve:c,reject:o}];let f=this.normalizeOptions(r),_=e.normalizeOrigin(t,r&&r.servername);if(_===void 0){for(let{reject:I}of s)I(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(f in this.sessions){let I=this.sessions[f],D=-1,b=-1,L;for(let x of I){let J=x.remoteSettings.maxConcurrentStreams;if(J=J||x[D0e]||x.destroyed)continue;L||(D=J),Y>b&&(L=x,b=Y)}}if(L){if(s.length!==1){for(let{reject:x}of s){let J=new Error(`Expected the length of listeners to be 1, got ${s.length}.
-Please report this to https://github.com/szmarczak/http2-wrapper/`);x(J)}return}s[0].resolve(L);return}}if(f in this.queue){if(_ in this.queue[f]){this.queue[f][_].listeners.push(...s),this._tryToCreateNewSession(f,_);return}}else this.queue[f]={};let A=()=>{f in this.queue&&this.queue[f][_]===y&&(delete this.queue[f][_],Object.keys(this.queue[f]).length===0&&delete this.queue[f])},y=()=>{let I=`${_}:${f}`,D=!1;try{let b=Whs.connect(t,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(I),...r});b[dP]=0,b[D0e]=!1;let L=()=>b[dP]{this.tlsSessionCache.set(I,Y)}),b.once("error",Y=>{for(let{reject:ne}of s)ne(Y);this.tlsSessionCache.delete(I)}),b.setTimeout(this.timeout,()=>{b.destroy()}),b.once("close",()=>{if(D){x&&this._freeSessionsCount--,this._sessionsCount--;let Y=this.sessions[f];Y.splice(Y.indexOf(b),1),Y.length===0&&delete this.sessions[f]}else{let Y=new Error("Session closed without receiving a SETTINGS frame");Y.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:ne}of s)ne(Y);A()}this._tryToCreateNewSession(f,_)});let J=()=>{if(!(!(f in this.queue)||!L())){for(let Y of b[qM])if(Y in this.queue[f]){let{listeners:ne}=this.queue[f][Y];for(;ne.length!==0&&L();)ne.shift().resolve(b);let Ae=this.queue[f];if(Ae[Y].listeners.length===0&&(delete Ae[Y],Object.keys(Ae).length===0)){delete this.queue[f];break}if(!L())break}}};b.on("origin",()=>{b[qM]=b.originSet,L()&&(J(),qOt(this.sessions[f],b))}),b.once("remoteSettings",()=>{if(b.ref(),b.unref(),this._sessionsCount++,y.destroyed){let Y=new Error("Agent has been destroyed");for(let ne of s)ne.reject(Y);b.destroy();return}b[qM]=b.originSet;{let Y=this.sessions;if(f in Y){let ne=Y[f];ne.splice(Khs(ne,b,Xhs),0,b)}else Y[f]=[b]}this._freeSessionsCount+=1,D=!0,this.emit("session",b),J(),A(),b[dP]===0&&this._freeSessionsCount>this.maxFreeSessions&&b.close(),s.length!==0&&(this.getSession(_,r,s),s.length=0),b.on("remoteSettings",()=>{J(),qOt(this.sessions[f],b)})}),b[sHr]=b.request,b.request=(Y,ne)=>{if(b[D0e])throw new Error("The session is gracefully closing. No new streams are allowed.");let Ae=b[sHr](Y,ne);return b.ref(),++b[dP],b[dP]===b.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,Ae.once("close",()=>{if(x=L(),--b[dP],!b.destroyed&&!b.closed&&(Zhs(this.sessions[f],b),L()&&!b.closed)){x||(this._freeSessionsCount++,x=!0);let le=b[dP]===0;le&&b.unref(),le&&(this._freeSessionsCount>this.maxFreeSessions||b[D0e])?b.close():(qOt(this.sessions[f],b),J())}}),Ae}}catch(b){for(let L of s)L.reject(b);A()}};y.listeners=s,y.completed=!1,y.destroyed=!1,this.queue[f][_]=y,this._tryToCreateNewSession(f,_)})}request(t,r,s,c){return new Promise((o,f)=>{this.getSession(t,r,[{reject:f,resolve:_=>{try{o(_.request(s,c))}catch(A){f(A)}}}])})}createConnection(t,r){return e.connect(t,r)}static connect(t,r){r.ALPNProtocols=["h2"];let s=t.port||443,c=t.hostname||t.host;return typeof r.servername>"u"&&(r.servername=c),Vhs.connect(s,c,r)}closeFreeSessions(){for(let t of Object.values(this.sessions))for(let r of t)r[dP]===0&&r.close()}destroy(t){for(let r of Object.values(this.sessions))for(let s of r)s.destroy(t);for(let r of Object.values(this.queue))for(let s of Object.values(r))s.destroyed=!0;this.queue={}}get freeSessions(){return oHr({agent:this,isFree:!0})}get busySessions(){return oHr({agent:this,isFree:!1})}};Cce.kCurrentStreamsCount=dP;Cce.kGracefullyClosing=D0e;cHr.exports={Agent:Cce,globalAgent:new Cce}});var WOt=ae((r8a,lHr)=>{"use strict";var{Readable:$hs}=qt("stream"),VOt=class extends $hs{constructor(t,r){super({highWaterMark:r,autoDestroy:!1}),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=t,this.connection=t,this._dumped=!1}_destroy(t){this.req._request.destroy(t)}setTimeout(t,r){return this.req.setTimeout(t,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};lHr.exports=VOt});var YOt=ae((n8a,uHr)=>{"use strict";uHr.exports=e=>{let t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return typeof e.port=="string"&&e.port.length!==0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var pHr=ae((i8a,fHr)=>{"use strict";fHr.exports=(e,t,r)=>{for(let s of r)e.on(s,(...c)=>t.emit(s,...c))}});var _Hr=ae((s8a,dHr)=>{"use strict";dHr.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var hHr=ae((a8a,AHr)=>{"use strict";var b0e=(e,t,r)=>{AHr.exports[t]=class extends e{constructor(...c){super(typeof r=="string"?r:r(c)),this.name=`${super.name} [${t}]`,this.code=t}}};b0e(TypeError,"ERR_INVALID_ARG_TYPE",e=>{let t=e[0].includes(".")?"property":"argument",r=e[1],s=Array.isArray(r);return s&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${s?"one of":"of"} type ${r}. Received ${typeof e[2]}`});b0e(TypeError,"ERR_INVALID_PROTOCOL",e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`);b0e(Error,"ERR_HTTP_HEADERS_SENT",e=>`Cannot ${e[0]} headers after they are sent to the client`);b0e(TypeError,"ERR_INVALID_HTTP_TOKEN",e=>`${e[0]} must be a valid HTTP token [${e[1]}]`);b0e(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",e=>`Invalid value "${e[0]} for header "${e[1]}"`);b0e(TypeError,"ERR_INVALID_CHAR",e=>`Invalid character in ${e[0]} [${e[1]}]`)});var $Ot=ae((c8a,THr)=>{"use strict";var ems=qt("http2"),{Writable:tms}=qt("stream"),{Agent:mHr,globalAgent:rms}=JOt(),nms=WOt(),ims=YOt(),sms=pHr(),oms=_Hr(),{ERR_INVALID_ARG_TYPE:zOt,ERR_INVALID_PROTOCOL:ams,ERR_HTTP_HEADERS_SENT:gHr,ERR_INVALID_HTTP_TOKEN:cms,ERR_HTTP_INVALID_HEADER_VALUE:lms,ERR_INVALID_CHAR:ums}=hHr(),{HTTP2_HEADER_STATUS:EHr,HTTP2_HEADER_METHOD:yHr,HTTP2_HEADER_PATH:CHr,HTTP2_METHOD_CONNECT:fms}=ems.constants,cR=Symbol("headers"),KOt=Symbol("origin"),XOt=Symbol("session"),IHr=Symbol("options"),XKe=Symbol("flushedHeaders"),nke=Symbol("jobs"),pms=/^[\^`\-\w!#$%&*+.|~]+$/,dms=/[^\t\u0020-\u007E\u0080-\u00FF]/,ZOt=class extends tms{constructor(t,r,s){super({autoDestroy:!1});let c=typeof t=="string"||t instanceof URL;if(c&&(t=ims(t instanceof URL?t:new URL(t))),typeof r=="function"||r===void 0?(s=r,r=c?t:{...t}):r={...t,...r},r.h2session)this[XOt]=r.h2session;else if(r.agent===!1)this.agent=new mHr({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new mHr({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=rms;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new zOt("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new ams(r.protocol,"https:");let o=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,f=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:_}=r;if(r.timeout=void 0,this[cR]=Object.create(null),this[nke]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[A,y]of Object.entries(r.headers))this.setHeader(A,y);r.auth&&!("authorization"in this[cR])&&(this[cR].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[IHr]=r,o===443?(this[KOt]=`https://${f}`,":authority"in this[cR]||(this[cR][":authority"]=f)):(this[KOt]=`https://${f}:${o}`,":authority"in this[cR]||(this[cR][":authority"]=`${f}:${o}`)),_&&this.setTimeout(_),s&&this.once("response",s),this[XKe]=!1}get method(){return this[cR][yHr]}set method(t){t&&(this[cR][yHr]=t.toUpperCase())}get path(){return this[cR][CHr]}set path(t){t&&(this[cR][CHr]=t)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(t,r,s){if(this._mustNotHaveABody){s(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let c=()=>this._request.write(t,r,s);this._request?c():this[nke].push(c)}_final(t){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){t();return}this._request.end(t)};this._request?r():this[nke].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(t,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(t)}async flushHeaders(){if(this[XKe]||this.destroyed)return;this[XKe]=!0;let t=this.method===fms,r=s=>{if(this._request=s,this.destroyed){s.destroy();return}t||sms(s,this,["timeout","continue","close","error"]);let c=f=>(..._)=>{!this.writable&&!this.destroyed?f(..._):this.once("finish",()=>{f(..._)})};s.once("response",c((f,_,A)=>{let y=new nms(this.socket,s.readableHighWaterMark);this.res=y,y.req=this,y.statusCode=f[EHr],y.headers=f,y.rawHeaders=A,y.once("end",()=>{this.aborted?(y.aborted=!0,y.emit("aborted")):(y.complete=!0,y.socket=null,y.connection=null)}),t?(y.upgrade=!0,this.emit("connect",y,s,Buffer.alloc(0))?this.emit("close"):s.destroy()):(s.on("data",I=>{!y._dumped&&!y.push(I)&&s.pause()}),s.once("end",()=>{y.push(null)}),this.emit("response",y)||y._dump())})),s.once("headers",c(f=>this.emit("information",{statusCode:f[EHr]}))),s.once("trailers",c((f,_,A)=>{let{res:y}=this;y.trailers=f,y.rawTrailers=A}));let{socket:o}=s.session;this.socket=o,this.connection=o;for(let f of this[nke])f();this.emit("socket",this.socket)};if(this[XOt])try{r(this[XOt].request(this[cR]))}catch(s){this.emit("error",s)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[KOt],this[IHr],this[cR]))}catch(s){this.emit("error",s)}}}getHeader(t){if(typeof t!="string")throw new zOt("name","string",t);return this[cR][t.toLowerCase()]}get headersSent(){return this[XKe]}removeHeader(t){if(typeof t!="string")throw new zOt("name","string",t);if(this.headersSent)throw new gHr("remove");delete this[cR][t.toLowerCase()]}setHeader(t,r){if(this.headersSent)throw new gHr("set");if(typeof t!="string"||!pms.test(t)&&!oms(t))throw new cms("Header name",t);if(typeof r>"u")throw new lms(r,t);if(dms.test(r))throw new ums("header content",t);this[cR][t.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(t,r){let s=()=>this._request.setTimeout(t,r);return this._request?s():this[nke].push(s),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(t){}};THr.exports=ZOt});var vHr=ae((l8a,SHr)=>{"use strict";var _ms=qt("tls");SHr.exports=(e={},t=_ms.connect)=>new Promise((r,s)=>{let c=!1,o,f=async()=>{await A,o.off("timeout",_),o.off("error",s),e.resolveSocket?(r({alpnProtocol:o.alpnProtocol,socket:o,timeout:c}),c&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),r({alpnProtocol:o.alpnProtocol,timeout:c}))},_=async()=>{c=!0,f()},A=(async()=>{try{o=await t(e,f),o.on("error",s),o.once("timeout",_)}catch(y){s(y)}})()})});var bHr=ae((u8a,DHr)=>{"use strict";var Ams=qt("net");DHr.exports=e=>{let t=e.host,r=e.headers&&e.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?t=r:t=r.slice(1,-1):t=r.split(":",1)[0]),Ams.isIP(t)?"":t}});var xHr=ae((f8a,tFt)=>{"use strict";var wHr=qt("http"),eFt=qt("https"),hms=vHr(),mms=HOt(),gms=$Ot(),Ems=bHr(),yms=YOt(),ZKe=new mms({maxSize:100}),ike=new Map,BHr=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};let s=()=>{e.emit("free",t,r)};t.on("free",s);let c=()=>{e.removeSocket(t,r)};t.on("close",c);let o=()=>{e.removeSocket(t,r),t.off("close",c),t.off("free",s),t.off("agentRemove",o)};t.on("agentRemove",o),e.emit("free",t,r)},Cms=async e=>{let t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!ZKe.has(t)){if(ike.has(t))return(await ike.get(t)).alpnProtocol;let{path:r,agent:s}=e;e.path=e.socketPath;let c=hms(e);ike.set(t,c);try{let{socket:o,alpnProtocol:f}=await c;if(ZKe.set(t,f),e.path=r,f==="h2")o.destroy();else{let{globalAgent:_}=eFt,A=eFt.Agent.prototype.createConnection;s?s.createConnection===A?BHr(s,o,e):o.destroy():_.createConnection===A?BHr(_,o,e):o.destroy()}return ike.delete(t),f}catch(o){throw ike.delete(t),o}}return ZKe.get(t)};tFt.exports=async(e,t,r)=>{if((typeof e=="string"||e instanceof URL)&&(e=yms(new URL(e))),typeof t=="function"&&(r=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";let s=t.protocol==="https:";t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||Ems(t),t.port=t.port||(s?443:80),t._defaultAgent=s?eFt.globalAgent:wHr.globalAgent;let c=t.agent;if(c){if(c.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=c[s?"https":"http"]}return s&&await Cms(t)==="h2"?(c&&(t.agent=c.http2),new gms(t,r)):wHr.request(t,r)};tFt.exports.protocolCache=ZKe});var RHr=ae((p8a,NHr)=>{"use strict";var Ims=qt("http2"),Tms=JOt(),rFt=$Ot(),Sms=WOt(),vms=xHr(),Dms=(e,t,r)=>new rFt(e,t,r),bms=(e,t,r)=>{let s=new rFt(e,t,r);return s.end(),s};NHr.exports={...Ims,ClientRequest:rFt,IncomingMessage:Sms,...Tms,request:Dms,get:bms,auto:vms}});var iFt=ae(nFt=>{"use strict";Object.defineProperty(nFt,"__esModule",{value:!0});var kHr=HW();nFt.default=e=>kHr.default.nodeStream(e)&&kHr.default.function_(e.getBoundary)});var LHr=ae(sFt=>{"use strict";Object.defineProperty(sFt,"__esModule",{value:!0});var OHr=qt("fs"),FHr=qt("util"),PHr=HW(),wms=iFt(),Bms=FHr.promisify(OHr.stat);sFt.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(PHr.default.string(e))return Buffer.byteLength(e);if(PHr.default.buffer(e))return e.length;if(wms.default(e))return FHr.promisify(e.getLength.bind(e))();if(e instanceof OHr.ReadStream){let{size:r}=await Bms(e.path);return r===0?void 0:r}}});var aFt=ae(oFt=>{"use strict";Object.defineProperty(oFt,"__esModule",{value:!0});function xms(e,t,r){let s={};for(let c of r)s[c]=(...o)=>{t.emit(c,...o)},e.on(c,s[c]);return()=>{for(let c of r)e.off(c,s[c])}}oFt.default=xms});var QHr=ae(cFt=>{"use strict";Object.defineProperty(cFt,"__esModule",{value:!0});cFt.default=()=>{let e=[];return{once(t,r,s){t.once(r,s),e.push({origin:t,event:r,fn:s})},unhandleAll(){for(let t of e){let{origin:r,event:s,fn:c}=t;r.removeListener(s,c)}e.length=0}}}});var UHr=ae(ske=>{"use strict";Object.defineProperty(ske,"__esModule",{value:!0});ske.TimeoutError=void 0;var Nms=qt("net"),Rms=QHr(),MHr=Symbol("reentry"),kms=()=>{},$Ke=class extends Error{constructor(t,r){super(`Timeout awaiting '${r}' for ${t}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};ske.TimeoutError=$Ke;ske.default=(e,t,r)=>{if(MHr in e)return kms;e[MHr]=!0;let s=[],{once:c,unhandleAll:o}=Rms.default(),f=(D,b,L)=>{var x;let J=setTimeout(b,D,D,L);(x=J.unref)===null||x===void 0||x.call(J);let Y=()=>{clearTimeout(J)};return s.push(Y),Y},{host:_,hostname:A}=r,y=(D,b)=>{e.destroy(new $Ke(D,b))},I=()=>{for(let D of s)D();o()};if(e.once("error",D=>{if(I(),e.listenerCount("error")===0)throw D}),e.once("close",I),c(e,"response",D=>{c(D,"end",I)}),typeof t.request<"u"&&f(t.request,y,"request"),typeof t.socket<"u"){let D=()=>{y(t.socket,"socket")};e.setTimeout(t.socket,D),s.push(()=>{e.removeListener("timeout",D)})}return c(e,"socket",D=>{var b;let{socketPath:L}=e;if(D.connecting){let x=!!(L??Nms.isIP((b=A??_)!==null&&b!==void 0?b:"")!==0);if(typeof t.lookup<"u"&&!x&&typeof D.address().address>"u"){let J=f(t.lookup,y,"lookup");c(D,"lookup",J)}if(typeof t.connect<"u"){let J=()=>f(t.connect,y,"connect");x?c(D,"connect",J()):c(D,"lookup",Y=>{Y===null&&c(D,"connect",J())})}typeof t.secureConnect<"u"&&r.protocol==="https:"&&c(D,"connect",()=>{let J=f(t.secureConnect,y,"secureConnect");c(D,"secureConnect",J)})}if(typeof t.send<"u"){let x=()=>f(t.send,y,"send");D.connecting?c(D,"connect",()=>{c(e,"upload-complete",x())}):c(e,"upload-complete",x())}}),typeof t.response<"u"&&c(e,"upload-complete",()=>{let D=f(t.response,y,"response");c(e,"response",D)}),I}});var jHr=ae(lFt=>{"use strict";Object.defineProperty(lFt,"__esModule",{value:!0});var GHr=HW();lFt.default=e=>{e=e;let t={protocol:e.protocol,hostname:GHr.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return GHr.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var HHr=ae(uFt=>{"use strict";Object.defineProperty(uFt,"__esModule",{value:!0});var Pms=qt("url"),Oms=["protocol","host","hostname","port","pathname","search"];uFt.default=(e,t)=>{var r,s;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${(s=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&s!==void 0?s:""}`}let c=new Pms.URL(e);if(t.path){let o=t.path.indexOf("?");o===-1?t.pathname=t.path:(t.pathname=t.path.slice(0,o),t.search=t.path.slice(o+1)),delete t.path}for(let o of Oms)t[o]&&(c[o]=t[o].toString());return c}});var qHr=ae(pFt=>{"use strict";Object.defineProperty(pFt,"__esModule",{value:!0});var fFt=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,r){typeof t=="object"?this.weakMap.set(t,r):this.map.set(t,r)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};pFt.default=fFt});var _Ft=ae(dFt=>{"use strict";Object.defineProperty(dFt,"__esModule",{value:!0});var Fms=async e=>{let t=[],r=0;for await(let s of e)t.push(s),r+=Buffer.byteLength(s);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))};dFt.default=Fms});var VHr=ae(Ice=>{"use strict";Object.defineProperty(Ice,"__esModule",{value:!0});Ice.dnsLookupIpVersionToFamily=Ice.isDnsLookupIpVersion=void 0;var JHr={auto:0,ipv4:4,ipv6:6};Ice.isDnsLookupIpVersion=e=>e in JHr;Ice.dnsLookupIpVersionToFamily=e=>{if(Ice.isDnsLookupIpVersion(e))return JHr[e];throw new Error("Invalid DNS lookup IP version")}});var AFt=ae(eXe=>{"use strict";Object.defineProperty(eXe,"__esModule",{value:!0});eXe.isResponseOk=void 0;eXe.isResponseOk=e=>{let{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||t===304}});var YHr=ae(hFt=>{"use strict";Object.defineProperty(hFt,"__esModule",{value:!0});var WHr=new Set;hFt.default=e=>{WHr.has(e)||(WHr.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}});var zHr=ae(mFt=>{"use strict";Object.defineProperty(mFt,"__esModule",{value:!0});var SI=HW(),Lms=(e,t)=>{if(SI.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");SI.assert.any([SI.default.string,SI.default.undefined],e.encoding),SI.assert.any([SI.default.boolean,SI.default.undefined],e.resolveBodyOnly),SI.assert.any([SI.default.boolean,SI.default.undefined],e.methodRewriting),SI.assert.any([SI.default.boolean,SI.default.undefined],e.isStream),SI.assert.any([SI.default.string,SI.default.undefined],e.responseType),e.responseType===void 0&&(e.responseType="text");let{retry:r}=e;if(t?e.retry={...t.retry}:e.retry={calculateDelay:s=>s.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},SI.default.object(r)?(e.retry={...e.retry,...r},e.retry.methods=[...new Set(e.retry.methods.map(s=>s.toUpperCase()))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):SI.default.number(r)&&(e.retry.limit=r),SI.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(SI.default.number))),SI.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});let{pagination:s}=e;if(!SI.default.function_(s.transform))throw new Error("`options.pagination.transform` must be implemented");if(!SI.default.function_(s.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!SI.default.function_(s.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!SI.default.function_(s.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return e.responseType==="json"&&e.headers.accept===void 0&&(e.headers.accept="application/json"),e};mFt.default=Lms});var KHr=ae(oke=>{"use strict";Object.defineProperty(oke,"__esModule",{value:!0});oke.retryAfterStatusCodes=void 0;oke.retryAfterStatusCodes=new Set([413,429,503]);var Qms=({attemptCount:e,retryOptions:t,error:r,retryAfter:s})=>{if(e>t.limit)return 0;let c=t.methods.includes(r.options.method),o=t.errorCodes.includes(r.code),f=r.response&&t.statusCodes.includes(r.response.statusCode);if(!c||!o&&!f)return 0;if(r.response){if(s)return t.maxRetryAfter===void 0||s>t.maxRetryAfter?0:s;if(r.response.statusCode===413)return 0}let _=Math.random()*100;return 2**(e-1)*1e3+_};oke.default=Qms});var lke=ae(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.UnsupportedProtocolError=Y0.ReadError=Y0.TimeoutError=Y0.UploadError=Y0.CacheError=Y0.HTTPError=Y0.MaxRedirectsError=Y0.RequestError=Y0.setNonEnumerableProperties=Y0.knownHookEvents=Y0.withoutBody=Y0.kIsNormalizedAlready=void 0;var XHr=qt("util"),ZHr=qt("stream"),Mms=qt("fs"),bee=qt("url"),$Hr=qt("http"),gFt=qt("http"),Ums=qt("https"),Gms=djr(),jms=yjr(),eqr=$jr(),Hms=nHr(),qms=RHr(),Jms=zKe(),ua=HW(),Vms=LHr(),tqr=iFt(),Wms=aFt(),rqr=UHr(),Yms=jHr(),nqr=HHr(),zms=qHr(),Kms=_Ft(),iqr=VHr(),Xms=AFt(),wee=YHr(),Zms=zHr(),$ms=KHr(),EFt,Nx=Symbol("request"),nXe=Symbol("response"),w0e=Symbol("responseSize"),B0e=Symbol("downloadedSize"),x0e=Symbol("bodySize"),N0e=Symbol("uploadedSize"),tXe=Symbol("serverResponsesPiped"),sqr=Symbol("unproxyEvents"),oqr=Symbol("isFromCache"),yFt=Symbol("cancelTimeouts"),aqr=Symbol("startedReading"),R0e=Symbol("stopReading"),rXe=Symbol("triggerRead"),Bee=Symbol("body"),ake=Symbol("jobs"),cqr=Symbol("originalResponse"),lqr=Symbol("retryTimeout");Y0.kIsNormalizedAlready=Symbol("isNormalizedAlready");var egs=ua.default.string(process.versions.brotli);Y0.withoutBody=new Set(["GET","HEAD"]);Y0.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function tgs(e){for(let t in e){let r=e[t];if(!ua.default.string(r)&&!ua.default.number(r)&&!ua.default.boolean(r)&&!ua.default.null_(r)&&!ua.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function rgs(e){return ua.default.object(e)&&!("statusCode"in e)}var CFt=new zms.default,ngs=async e=>new Promise((t,r)=>{let s=c=>{r(c)};e.pending||t(),e.once("error",s),e.once("ready",()=>{e.off("error",s),t()})}),igs=new Set([300,301,302,303,304,307,308]),sgs=["context","body","json","form"];Y0.setNonEnumerableProperties=(e,t)=>{let r={};for(let s of e)if(s)for(let c of sgs)c in s&&(r[c]={writable:!0,configurable:!0,enumerable:!1,value:s[c]});Object.defineProperties(t,r)};var m2=class extends Error{constructor(t,r,s){var c,o;if(super(t),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(c=r.code)!==null&&c!==void 0?c:"ERR_GOT_REQUEST_ERROR",s instanceof uXe?(Object.defineProperty(this,"request",{enumerable:!1,value:s}),Object.defineProperty(this,"response",{enumerable:!1,value:s[nXe]}),Object.defineProperty(this,"options",{enumerable:!1,value:s.options})):Object.defineProperty(this,"options",{enumerable:!1,value:s}),this.timings=(o=this.request)===null||o===void 0?void 0:o.timings,ua.default.string(r.stack)&&ua.default.string(this.stack)){let f=this.stack.indexOf(this.message)+this.message.length,_=this.stack.slice(f).split(`
+`,c)}while(s!==-1);return o+=e.substr(c),o};N4r.exports={stringReplaceAll:yts,stringEncaseCRLFWithFirstIndex:Cts}});var L4r=ae((CQa,F4r)=>{"use strict";var Its=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,k4r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tts=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sts=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,vts=new Map([["n",`
+`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function O4r(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vts.get(e)||e}function Dts(e,t){let r=[],s=t.trim().split(/\s*,\s*/g),c;for(let o of s){let f=Number(o);if(!Number.isNaN(f))r.push(f);else if(c=o.match(Tts))r.push(c[2].replace(Sts,(_,A,y)=>A?O4r(A):y));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function bts(e){k4r.lastIndex=0;let t=[],r;for(;(r=k4r.exec(e))!==null;){let s=r[1];if(r[2]){let c=Dts(s,r[2]);t.push([s].concat(c))}else t.push([s])}return t}function P4r(e,t){let r={};for(let c of t)for(let o of c.styles)r[o[0]]=c.inverse?null:o.slice(1);let s=e;for(let[c,o]of Object.entries(r))if(Array.isArray(o)){if(!(c in s))throw new Error(`Unknown Chalk style: ${c}`);s=o.length>0?s[c](...o):s[c]}return s}F4r.exports=(e,t)=>{let r=[],s=[],c=[];if(t.replace(Its,(o,f,_,A,y,I)=>{if(f)c.push(O4r(f));else if(A){let D=c.join("");c=[],s.push(r.length===0?D:P4r(e,r)(D)),r.push({inverse:_,styles:bts(A)})}else if(y){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");s.push(P4r(e,r)(c.join(""))),c=[],r.pop()}else c.push(I)}),s.push(c.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return s.join("")}});var NRt=ae((IQa,G4r)=>{"use strict";var vRe=SRe(),{stdout:bRt,stderr:wRt}=Aze(),{stringReplaceAll:wts,stringEncaseCRLFWithFirstIndex:Bts}=R4r(),Q4r=["ansi","ansi","ansi256","ansi16m"],zge=Object.create(null),xts=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=bRt?bRt.level:0;e.level=t.level===void 0?r:t.level},BRt=class{constructor(t){return M4r(t)}},M4r=e=>{let t={};return xts(t,e),t.template=(...r)=>kts(t.template,...r),Object.setPrototypeOf(t,hze.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=BRt,t.template};function hze(e){return M4r(e)}for(let[e,t]of Object.entries(vRe))zge[e]={get(){let r=mze(this,xRt(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};zge.visible={get(){let e=mze(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var U4r=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of U4r)zge[e]={get(){let{level:t}=this;return function(...r){let s=xRt(vRe.color[Q4r[t]][e](...r),vRe.color.close,this._styler);return mze(this,s,this._isEmpty)}}};for(let e of U4r){let t="bg"+e[0].toUpperCase()+e.slice(1);zge[t]={get(){let{level:r}=this;return function(...s){let c=xRt(vRe.bgColor[Q4r[r]][e](...s),vRe.bgColor.close,this._styler);return mze(this,c,this._isEmpty)}}}}var Nts=Object.defineProperties(()=>{},{...zge,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),xRt=(e,t,r)=>{let s,c;return r===void 0?(s=e,c=t):(s=r.openAll+e,c=t+r.closeAll),{open:e,close:t,openAll:s,closeAll:c,parent:r}},mze=(e,t,r)=>{let s=(...c)=>Rts(s,c.length===1?""+c[0]:c.join(" "));return s.__proto__=Nts,s._generator=e,s._styler=t,s._isEmpty=r,s},Rts=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:s,closeAll:c}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=wts(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
+`);return o!==-1&&(t=Bts(t,c,s,o)),s+t+c},DRt,kts=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let s=t.slice(1),c=[r.raw[0]];for(let o=1;o{"use strict";LM.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;LM.find=(e,t)=>e.nodes.find(r=>r.type===t);LM.exceedsLimit=(e,t,r=1,s)=>s===!1||!LM.isInteger(e)||!LM.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=s;LM.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];s&&(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};LM.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);LM.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;LM.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;LM.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);LM.flatten=(...e)=>{let t=[],r=s=>{for(let c=0;c{"use strict";var j4r=gze();H4r.exports=(e,t={})=>{let r=(s,c={})=>{let o=t.escapeInvalid&&j4r.isInvalidBrace(c),f=s.invalid===!0&&t.escapeInvalid===!0,_="";if(s.value)return(o||f)&&j4r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let A of s.nodes)_+=r(A);return _};return r(e)}});var J4r=ae((vQa,q4r)=>{"use strict";q4r.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var eMr=ae((DQa,$4r)=>{"use strict";var V4r=J4r(),cce=(e,t,r)=>{if(V4r(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(V4r(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let c=String(s.relaxZeros),o=String(s.shorthand),f=String(s.capture),_=String(s.wrap),A=e+":"+t+"="+c+o+f+_;if(cce.cache.hasOwnProperty(A))return cce.cache[A].result;let y=Math.min(e,t),I=Math.max(e,t);if(Math.abs(y-I)===1){let J=e+"|"+t;return s.capture?`(${J})`:s.wrap===!1?J:`(?:${J})`}let D=Z4r(e)||Z4r(t),b={min:e,max:t,a:y,b:I},L=[],x=[];if(D&&(b.isPadded=D,b.maxLen=String(b.max).length),y<0){let J=I<0?Math.abs(I):1;x=W4r(J,Math.abs(y),b,s),y=b.a=0}return I>=0&&(L=W4r(y,I,b,s)),b.negatives=x,b.positives=L,b.result=Pts(x,L,s),s.capture===!0?b.result=`(${b.result})`:s.wrap!==!1&&L.length+x.length>1&&(b.result=`(?:${b.result})`),cce.cache[A]=b,b.result};function Pts(e,t,r){let s=RRt(e,t,"-",!1,r)||[],c=RRt(t,e,"",!1,r)||[],o=RRt(e,t,"-?",!0,r)||[];return s.concat(o).concat(c).join("|")}function Ots(e,t){let r=1,s=1,c=z4r(e,r),o=new Set([t]);for(;e<=c&&c<=t;)o.add(c),r+=1,c=z4r(e,r);for(c=K4r(t+1,s)-1;e1&&_.count.pop(),_.count.push(I.count[0]),_.string=_.pattern+X4r(_.count),f=y+1;continue}r.isPadded&&(D=Uts(y,r,s)),I.string=D+I.pattern+X4r(I.count),o.push(I),f=y+1,_=I}return o}function RRt(e,t,r,s,c){let o=[];for(let f of e){let{string:_}=f;!s&&!Y4r(t,"string",_)&&o.push(r+_),s&&Y4r(t,"string",_)&&o.push(r+_)}return o}function Lts(e,t){let r=[];for(let s=0;st?1:t>e?-1:0}function Y4r(e,t,r){return e.some(s=>s[t]===r)}function z4r(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function K4r(e,t){return e-e%Math.pow(10,t)}function X4r(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Mts(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Z4r(e){return/^-?(0+)\d/.test(e)}function Uts(e,t,r){if(!t.isPadded)return e;let s=Math.abs(t.maxLen-String(e).length),c=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return c?"0?":"0";case 2:return c?"0{0,2}":"00";default:return c?`0{0,${s}}`:`0{${s}}`}}cce.cache={};cce.clearCache=()=>cce.cache={};$4r.exports=cce});var ORt=ae((bQa,aMr)=>{"use strict";var Gts=qt("util"),rMr=eMr(),tMr=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),jts=e=>t=>e===!0?Number(t):String(t),kRt=e=>typeof e=="number"||typeof e=="string"&&e!=="",bRe=e=>Number.isInteger(+e),PRt=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Hts=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,qts=(e,t,r)=>{if(t>0){let s=e[0]==="-"?"-":"";s&&(e=e.slice(1)),e=s+e.padStart(s?t-1:t,"0")}return r===!1?String(e):e},Cze=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length{e.negatives.sort((_,A)=>_A?1:0),e.positives.sort((_,A)=>_A?1:0);let s=t.capture?"":"?:",c="",o="",f;return e.positives.length&&(c=e.positives.map(_=>Cze(String(_),r)).join("|")),e.negatives.length&&(o=`-(${s}${e.negatives.map(_=>Cze(String(_),r)).join("|")})`),c&&o?f=`${c}|${o}`:f=c||o,t.wrap?`(${s}${f})`:f},nMr=(e,t,r,s)=>{if(r)return rMr(e,t,{wrap:!1,...s});let c=String.fromCharCode(e);if(e===t)return c;let o=String.fromCharCode(t);return`[${c}-${o}]`},iMr=(e,t,r)=>{if(Array.isArray(e)){let s=r.wrap===!0,c=r.capture?"":"?:";return s?`(${c}${e.join("|")})`:e.join("|")}return rMr(e,t,r)},sMr=(...e)=>new RangeError("Invalid range arguments: "+Gts.inspect(...e)),oMr=(e,t,r)=>{if(r.strictRanges===!0)throw sMr([e,t]);return[]},Vts=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Wts=(e,t,r=1,s={})=>{let c=Number(e),o=Number(t);if(!Number.isInteger(c)||!Number.isInteger(o)){if(s.strictRanges===!0)throw sMr([e,t]);return[]}c===0&&(c=0),o===0&&(o=0);let f=c>o,_=String(e),A=String(t),y=String(r);r=Math.max(Math.abs(r),1);let I=PRt(_)||PRt(A)||PRt(y),D=I?Math.max(_.length,A.length,y.length):0,b=I===!1&&Hts(e,t,s)===!1,L=s.transform||jts(b);if(s.toRegex&&r===1)return nMr(Cze(e,D),Cze(t,D),!0,s);let x={negatives:[],positives:[]},J=Ae=>x[Ae<0?"negatives":"positives"].push(Math.abs(Ae)),Y=[],ne=0;for(;f?c>=o:c<=o;)s.toRegex===!0&&r>1?J(c):Y.push(qts(L(c,ne),D,b)),c=f?c-r:c+r,ne++;return s.toRegex===!0?r>1?Jts(x,s,D):iMr(Y,null,{wrap:!1,...s}):Y},Yts=(e,t,r=1,s={})=>{if(!bRe(e)&&e.length>1||!bRe(t)&&t.length>1)return oMr(e,t,s);let c=s.transform||(b=>String.fromCharCode(b)),o=`${e}`.charCodeAt(0),f=`${t}`.charCodeAt(0),_=o>f,A=Math.min(o,f),y=Math.max(o,f);if(s.toRegex&&r===1)return nMr(A,y,!1,s);let I=[],D=0;for(;_?o>=f:o<=f;)I.push(c(o,D)),o=_?o-r:o+r,D++;return s.toRegex===!0?iMr(I,null,{wrap:!1,options:s}):I},yze=(e,t,r,s={})=>{if(t==null&&kRt(e))return[e];if(!kRt(e)||!kRt(t))return oMr(e,t,s);if(typeof r=="function")return yze(e,t,1,{transform:r});if(tMr(r))return yze(e,t,0,r);let c={...s};return c.capture===!0&&(c.wrap=!0),r=r||c.step||1,bRe(r)?bRe(e)&&bRe(t)?Wts(e,t,r,c):Yts(e,t,Math.max(Math.abs(r),1),c):r!=null&&!tMr(r)?Vts(r,c):yze(e,t,1,r)};aMr.exports=yze});var uMr=ae((wQa,lMr)=>{"use strict";var zts=ORt(),cMr=gze(),Kts=(e,t={})=>{let r=(s,c={})=>{let o=cMr.isInvalidBrace(c),f=s.invalid===!0&&t.escapeInvalid===!0,_=o===!0||f===!0,A=t.escapeInvalid===!0?"\\":"",y="";if(s.isOpen===!0)return A+s.value;if(s.isClose===!0)return console.log("node.isClose",A,s.value),A+s.value;if(s.type==="open")return _?A+s.value:"(";if(s.type==="close")return _?A+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":_?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let I=cMr.reduce(s.nodes),D=zts(...I,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(D.length!==0)return I.length>1&&D.length>1?`(${D})`:D}if(s.nodes)for(let I of s.nodes)y+=r(I,s);return y};return r(e)};lMr.exports=Kts});var dMr=ae((BQa,pMr)=>{"use strict";var Xts=ORt(),fMr=Eze(),Kge=gze(),lce=(e="",t="",r=!1)=>{let s=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Kge.flatten(t).map(c=>`{${c}}`):t;for(let c of e)if(Array.isArray(c))for(let o of c)s.push(lce(o,t,r));else for(let o of t)r===!0&&typeof o=="string"&&(o=`{${o}}`),s.push(Array.isArray(o)?lce(c,o,r):c+o);return Kge.flatten(s)},Zts=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(c,o={})=>{c.queue=[];let f=o,_=o.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,_=f.queue;if(c.invalid||c.dollar){_.push(lce(_.pop(),fMr(c,t)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){_.push(lce(_.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let D=Kge.reduce(c.nodes);if(Kge.exceedsLimit(...D,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=Xts(...D,t);b.length===0&&(b=fMr(c,t)),_.push(lce(_.pop(),b)),c.nodes=[];return}let A=Kge.encloseBrace(c),y=c.queue,I=c;for(;I.type!=="brace"&&I.type!=="root"&&I.parent;)I=I.parent,y=I.queue;for(let D=0;D{"use strict";_Mr.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
+`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var yMr=ae((NQa,EMr)=>{"use strict";var $ts=Eze(),{MAX_LENGTH:hMr,CHAR_BACKSLASH:FRt,CHAR_BACKTICK:ers,CHAR_COMMA:trs,CHAR_DOT:rrs,CHAR_LEFT_PARENTHESES:nrs,CHAR_RIGHT_PARENTHESES:irs,CHAR_LEFT_CURLY_BRACE:srs,CHAR_RIGHT_CURLY_BRACE:ors,CHAR_LEFT_SQUARE_BRACKET:mMr,CHAR_RIGHT_SQUARE_BRACKET:gMr,CHAR_DOUBLE_QUOTE:ars,CHAR_SINGLE_QUOTE:crs,CHAR_NO_BREAK_SPACE:lrs,CHAR_ZERO_WIDTH_NOBREAK_SPACE:urs}=AMr(),frs=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},s=typeof r.maxLength=="number"?Math.min(hMr,r.maxLength):hMr;if(e.length>s)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${s})`);let c={type:"root",input:e,nodes:[]},o=[c],f=c,_=c,A=0,y=e.length,I=0,D=0,b,L=()=>e[I++],x=J=>{if(J.type==="text"&&_.type==="dot"&&(_.type="text"),_&&_.type==="text"&&J.type==="text"){_.value+=J.value;return}return f.nodes.push(J),J.parent=f,J.prev=_,_=J,J};for(x({type:"bos"});I0){if(f.ranges>0){f.ranges=0;let J=f.nodes.shift();f.nodes=[J,{type:"text",value:$ts(f)}]}x({type:"comma",value:b}),f.commas++;continue}if(b===rrs&&D>0&&f.commas===0){let J=f.nodes;if(D===0||J.length===0){x({type:"text",value:b});continue}if(_.type==="dot"){if(f.range=[],_.value+=b,_.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,_.type="text";continue}f.ranges++,f.args=[];continue}if(_.type==="range"){J.pop();let Y=J[J.length-1];Y.value+=_.value+b,_=Y,f.ranges--;continue}x({type:"dot",value:b});continue}x({type:"text",value:b})}do if(f=o.pop(),f.type!=="root"){f.nodes.forEach(ne=>{ne.nodes||(ne.type==="open"&&(ne.isOpen=!0),ne.type==="close"&&(ne.isClose=!0),ne.nodes||(ne.type="text"),ne.invalid=!0)});let J=o[o.length-1],Y=J.nodes.indexOf(f);J.nodes.splice(Y,1,...f.nodes)}while(o.length>0);return x({type:"eos"}),c};EMr.exports=frs});var TMr=ae((RQa,IMr)=>{"use strict";var CMr=Eze(),prs=uMr(),drs=dMr(),_rs=yMr(),jQ=(e,t={})=>{let r=[];if(Array.isArray(e))for(let s of e){let c=jQ.create(s,t);Array.isArray(c)?r.push(...c):r.push(c)}else r=[].concat(jQ.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};jQ.parse=(e,t={})=>_rs(e,t);jQ.stringify=(e,t={})=>CMr(typeof e=="string"?jQ.parse(e,t):e,t);jQ.compile=(e,t={})=>(typeof e=="string"&&(e=jQ.parse(e,t)),prs(e,t));jQ.expand=(e,t={})=>{typeof e=="string"&&(e=jQ.parse(e,t));let r=drs(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};jQ.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?jQ.compile(e,t):jQ.expand(e,t);IMr.exports=jQ});var wRe=ae((kQa,wMr)=>{"use strict";var Ars=qt("path"),Tj="\\\\/",SMr=`[^${Tj}]`,LW="\\.",hrs="\\+",mrs="\\?",Ize="\\/",grs="(?=.)",vMr="[^/]",LRt=`(?:${Ize}|$)`,DMr=`(?:^|${Ize})`,QRt=`${LW}{1,2}${LRt}`,Ers=`(?!${LW})`,yrs=`(?!${DMr}${QRt})`,Crs=`(?!${LW}{0,1}${LRt})`,Irs=`(?!${QRt})`,Trs=`[^.${Ize}]`,Srs=`${vMr}*?`,bMr={DOT_LITERAL:LW,PLUS_LITERAL:hrs,QMARK_LITERAL:mrs,SLASH_LITERAL:Ize,ONE_CHAR:grs,QMARK:vMr,END_ANCHOR:LRt,DOTS_SLASH:QRt,NO_DOT:Ers,NO_DOTS:yrs,NO_DOT_SLASH:Crs,NO_DOTS_SLASH:Irs,QMARK_NO_DOT:Trs,STAR:Srs,START_ANCHOR:DMr},vrs={...bMr,SLASH_LITERAL:`[${Tj}]`,QMARK:SMr,STAR:`${SMr}*?`,DOTS_SLASH:`${LW}{1,2}(?:[${Tj}]|$)`,NO_DOT:`(?!${LW})`,NO_DOTS:`(?!(?:^|[${Tj}])${LW}{1,2}(?:[${Tj}]|$))`,NO_DOT_SLASH:`(?!${LW}{0,1}(?:[${Tj}]|$))`,NO_DOTS_SLASH:`(?!${LW}{1,2}(?:[${Tj}]|$))`,QMARK_NO_DOT:`[^.${Tj}]`,START_ANCHOR:`(?:^|[${Tj}])`,END_ANCHOR:`(?:[${Tj}]|$)`},Drs={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};wMr.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Drs,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Ars.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?vrs:bMr}}});var BRe=ae(mF=>{"use strict";var brs=qt("path"),wrs=process.platform==="win32",{REGEX_BACKSLASH:Brs,REGEX_REMOVE_BACKSLASH:xrs,REGEX_SPECIAL_CHARS:Nrs,REGEX_SPECIAL_CHARS_GLOBAL:Rrs}=wRe();mF.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);mF.hasRegexChars=e=>Nrs.test(e);mF.isRegexChar=e=>e.length===1&&mF.hasRegexChars(e);mF.escapeRegex=e=>e.replace(Rrs,"\\$1");mF.toPosixSlashes=e=>e.replace(Brs,"/");mF.removeBackslashes=e=>e.replace(xrs,t=>t==="\\"?"":t);mF.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};mF.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:wrs===!0||brs.sep==="\\";mF.escapeLast=(e,t,r)=>{let s=e.lastIndexOf(t,r);return s===-1?e:e[s-1]==="\\"?mF.escapeLast(e,t,s-1):`${e.slice(0,s)}\\${e.slice(s)}`};mF.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};mF.wrapOutput=(e,t={},r={})=>{let s=r.contains?"":"^",c=r.contains?"":"$",o=`${s}(?:${e})${c}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var FMr=ae((OQa,OMr)=>{"use strict";var BMr=BRe(),{CHAR_ASTERISK:MRt,CHAR_AT:krs,CHAR_BACKWARD_SLASH:xRe,CHAR_COMMA:Prs,CHAR_DOT:URt,CHAR_EXCLAMATION_MARK:GRt,CHAR_FORWARD_SLASH:PMr,CHAR_LEFT_CURLY_BRACE:jRt,CHAR_LEFT_PARENTHESES:HRt,CHAR_LEFT_SQUARE_BRACKET:Ors,CHAR_PLUS:Frs,CHAR_QUESTION_MARK:xMr,CHAR_RIGHT_CURLY_BRACE:Lrs,CHAR_RIGHT_PARENTHESES:NMr,CHAR_RIGHT_SQUARE_BRACKET:Qrs}=wRe(),RMr=e=>e===PMr||e===xRe,kMr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Mrs=(e,t)=>{let r=t||{},s=e.length-1,c=r.parts===!0||r.scanToEnd===!0,o=[],f=[],_=[],A=e,y=-1,I=0,D=0,b=!1,L=!1,x=!1,J=!1,Y=!1,ne=!1,Ae=!1,le=!1,pe=!1,ge=!1,me=0,ye,Se,Le={value:"",depth:0,isGlob:!1},rt=()=>y>=s,P=()=>A.charCodeAt(y+1),pt=()=>(ye=Se,A.charCodeAt(++y));for(;y0&&(ht=A.slice(0,I),A=A.slice(I),D-=I),nt&&x===!0&&D>0?(nt=A.slice(0,D),ot=A.slice(D)):x===!0?(nt="",ot=A):nt=A,nt&&nt!==""&&nt!=="/"&&nt!==A&&RMr(nt.charCodeAt(nt.length-1))&&(nt=nt.slice(0,-1)),r.unescape===!0&&(ot&&(ot=BMr.removeBackslashes(ot)),nt&&Ae===!0&&(nt=BMr.removeBackslashes(nt)));let Et={prefix:ht,input:e,start:I,base:nt,glob:ot,isBrace:b,isBracket:L,isGlob:x,isExtglob:J,isGlobstar:Y,negated:le,negatedExtglob:pe};if(r.tokens===!0&&(Et.maxDepth=0,RMr(Se)||f.push(Le),Et.tokens=f),r.parts===!0||r.tokens===!0){let Vt;for(let Er=0;Er{"use strict";var Tze=wRe(),HQ=BRe(),{MAX_LENGTH:Sze,POSIX_REGEX_SOURCE:Urs,REGEX_NON_SPECIAL_CHARS:Grs,REGEX_SPECIAL_CHARS_BACKREF:jrs,REPLACEMENTS:LMr}=Tze,Hrs=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(c=>HQ.escapeRegex(c)).join("..")}return r},Xge=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,qRt=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=LMr[e]||e;let r={...t},s=typeof r.maxLength=="number"?Math.min(Sze,r.maxLength):Sze,c=e.length;if(c>s)throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${s}`);let o={type:"bos",value:"",output:r.prepend||""},f=[o],_=r.capture?"":"?:",A=HQ.isWindows(t),y=Tze.globChars(A),I=Tze.extglobChars(y),{DOT_LITERAL:D,PLUS_LITERAL:b,SLASH_LITERAL:L,ONE_CHAR:x,DOTS_SLASH:J,NO_DOT:Y,NO_DOT_SLASH:ne,NO_DOTS_SLASH:Ae,QMARK:le,QMARK_NO_DOT:pe,STAR:ge,START_ANCHOR:me}=y,ye=fr=>`(${_}(?:(?!${me}${fr.dot?J:D}).)*?)`,Se=r.dot?"":Y,Le=r.dot?le:pe,rt=r.bash===!0?ye(r):ge;r.capture&&(rt=`(${rt})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};e=HQ.removePrefix(e,P),c=e.length;let pt=[],nt=[],ht=[],ot=o,Et,Vt=()=>P.index===c-1,Er=P.peek=(fr=1)=>e[P.index+fr],pn=P.advance=()=>e[++P.index]||"",$t=()=>e.slice(P.index+1),xr=(fr="",ui=0)=>{P.consumed+=fr,P.index+=ui},yr=fr=>{P.output+=fr.output!=null?fr.output:fr.value,xr(fr.value)},ur=()=>{let fr=1;for(;Er()==="!"&&(Er(2)!=="("||Er(3)==="?");)pn(),P.start++,fr++;return fr%2===0?!1:(P.negated=!0,P.start++,!0)},jr=fr=>{P[fr]++,ht.push(fr)},Vr=fr=>{P[fr]--,ht.pop()},br=fr=>{if(ot.type==="globstar"){let ui=P.braces>0&&(fr.type==="comma"||fr.type==="brace"),hi=fr.extglob===!0||pt.length&&(fr.type==="pipe"||fr.type==="paren");fr.type!=="slash"&&fr.type!=="paren"&&!ui&&!hi&&(P.output=P.output.slice(0,-ot.output.length),ot.type="star",ot.value="*",ot.output=rt,P.output+=ot.output)}if(pt.length&&fr.type!=="paren"&&(pt[pt.length-1].inner+=fr.value),(fr.value||fr.output)&&yr(fr),ot&&ot.type==="text"&&fr.type==="text"){ot.value+=fr.value,ot.output=(ot.output||"")+fr.value;return}fr.prev=ot,f.push(fr),ot=fr},Mn=(fr,ui)=>{let hi={...I[ui],conditions:1,inner:""};hi.prev=ot,hi.parens=P.parens,hi.output=P.output;let we=(r.capture?"(":"")+hi.open;jr("parens"),br({type:fr,value:ui,output:P.output?"":x}),br({type:"paren",extglob:!0,value:pn(),output:we}),pt.push(hi)},An=fr=>{let ui=fr.close+(r.capture?")":""),hi;if(fr.type==="negate"){let we=rt;if(fr.inner&&fr.inner.length>1&&fr.inner.includes("/")&&(we=ye(r)),(we!==rt||Vt()||/^\)+$/.test($t()))&&(ui=fr.close=`)$))${we}`),fr.inner.includes("*")&&(hi=$t())&&/^\.[^\\/.]+$/.test(hi)){let os=qRt(hi,{...t,fastpaths:!1}).output;ui=fr.close=`)${os})${we})`}fr.prev.type==="bos"&&(P.negatedExtglob=!0)}br({type:"paren",extglob:!0,value:Et,output:ui}),Vr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let fr=!1,ui=e.replace(jrs,(hi,we,os,Hc,Va,zs)=>Hc==="\\"?(fr=!0,hi):Hc==="?"?we?we+Hc+(Va?le.repeat(Va.length):""):zs===0?Le+(Va?le.repeat(Va.length):""):le.repeat(os.length):Hc==="."?D.repeat(os.length):Hc==="*"?we?we+Hc+(Va?rt:""):rt:we?hi:`\\${hi}`);return fr===!0&&(r.unescape===!0?ui=ui.replace(/\\/g,""):ui=ui.replace(/\\+/g,hi=>hi.length%2===0?"\\\\":hi?"\\":"")),ui===e&&r.contains===!0?(P.output=e,P):(P.output=HQ.wrapOutput(ui,P,t),P)}for(;!Vt();){if(Et=pn(),Et==="\0")continue;if(Et==="\\"){let hi=Er();if(hi==="/"&&r.bash!==!0||hi==="."||hi===";")continue;if(!hi){Et+="\\",br({type:"text",value:Et});continue}let we=/^\\+/.exec($t()),os=0;if(we&&we[0].length>2&&(os=we[0].length,P.index+=os,os%2!==0&&(Et+="\\")),r.unescape===!0?Et=pn():Et+=pn(),P.brackets===0){br({type:"text",value:Et});continue}}if(P.brackets>0&&(Et!=="]"||ot.value==="["||ot.value==="[^")){if(r.posix!==!1&&Et===":"){let hi=ot.value.slice(1);if(hi.includes("[")&&(ot.posix=!0,hi.includes(":"))){let we=ot.value.lastIndexOf("["),os=ot.value.slice(0,we),Hc=ot.value.slice(we+2),Va=Urs[Hc];if(Va){ot.value=os+Va,P.backtrack=!0,pn(),!o.output&&f.indexOf(ot)===1&&(o.output=x);continue}}}(Et==="["&&Er()!==":"||Et==="-"&&Er()==="]")&&(Et=`\\${Et}`),Et==="]"&&(ot.value==="["||ot.value==="[^")&&(Et=`\\${Et}`),r.posix===!0&&Et==="!"&&ot.value==="["&&(Et="^"),ot.value+=Et,yr({value:Et});continue}if(P.quotes===1&&Et!=='"'){Et=HQ.escapeRegex(Et),ot.value+=Et,yr({value:Et});continue}if(Et==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&br({type:"text",value:Et});continue}if(Et==="("){jr("parens"),br({type:"paren",value:Et});continue}if(Et===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Xge("opening","("));let hi=pt[pt.length-1];if(hi&&P.parens===hi.parens+1){An(pt.pop());continue}br({type:"paren",value:Et,output:P.parens?")":"\\)"}),Vr("parens");continue}if(Et==="["){if(r.nobracket===!0||!$t().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Xge("closing","]"));Et=`\\${Et}`}else jr("brackets");br({type:"bracket",value:Et});continue}if(Et==="]"){if(r.nobracket===!0||ot&&ot.type==="bracket"&&ot.value.length===1){br({type:"text",value:Et,output:`\\${Et}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Xge("opening","["));br({type:"text",value:Et,output:`\\${Et}`});continue}Vr("brackets");let hi=ot.value.slice(1);if(ot.posix!==!0&&hi[0]==="^"&&!hi.includes("/")&&(Et=`/${Et}`),ot.value+=Et,yr({value:Et}),r.literalBrackets===!1||HQ.hasRegexChars(hi))continue;let we=HQ.escapeRegex(ot.value);if(P.output=P.output.slice(0,-ot.value.length),r.literalBrackets===!0){P.output+=we,ot.value=we;continue}ot.value=`(${_}${we}|${ot.value})`,P.output+=ot.value;continue}if(Et==="{"&&r.nobrace!==!0){jr("braces");let hi={type:"brace",value:Et,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};nt.push(hi),br(hi);continue}if(Et==="}"){let hi=nt[nt.length-1];if(r.nobrace===!0||!hi){br({type:"text",value:Et,output:Et});continue}let we=")";if(hi.dots===!0){let os=f.slice(),Hc=[];for(let Va=os.length-1;Va>=0&&(f.pop(),os[Va].type!=="brace");Va--)os[Va].type!=="dots"&&Hc.unshift(os[Va].value);we=Hrs(Hc,r),P.backtrack=!0}if(hi.comma!==!0&&hi.dots!==!0){let os=P.output.slice(0,hi.outputIndex),Hc=P.tokens.slice(hi.tokensIndex);hi.value=hi.output="\\{",Et=we="\\}",P.output=os;for(let Va of Hc)P.output+=Va.output||Va.value}br({type:"brace",value:Et,output:we}),Vr("braces"),nt.pop();continue}if(Et==="|"){pt.length>0&&pt[pt.length-1].conditions++,br({type:"text",value:Et});continue}if(Et===","){let hi=Et,we=nt[nt.length-1];we&&ht[ht.length-1]==="braces"&&(we.comma=!0,hi="|"),br({type:"comma",value:Et,output:hi});continue}if(Et==="/"){if(ot.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",f.pop(),ot=o;continue}br({type:"slash",value:Et,output:L});continue}if(Et==="."){if(P.braces>0&&ot.type==="dot"){ot.value==="."&&(ot.output=D);let hi=nt[nt.length-1];ot.type="dots",ot.output+=Et,ot.value+=Et,hi.dots=!0;continue}if(P.braces+P.parens===0&&ot.type!=="bos"&&ot.type!=="slash"){br({type:"text",value:Et,output:D});continue}br({type:"dot",value:Et,output:D});continue}if(Et==="?"){if(!(ot&&ot.value==="(")&&r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){Mn("qmark",Et);continue}if(ot&&ot.type==="paren"){let we=Er(),os=Et;if(we==="<"&&!HQ.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(ot.value==="("&&!/[!=<:]/.test(we)||we==="<"&&!/<([!=]|\w+>)/.test($t()))&&(os=`\\${Et}`),br({type:"text",value:Et,output:os});continue}if(r.dot!==!0&&(ot.type==="slash"||ot.type==="bos")){br({type:"qmark",value:Et,output:pe});continue}br({type:"qmark",value:Et,output:le});continue}if(Et==="!"){if(r.noextglob!==!0&&Er()==="("&&(Er(2)!=="?"||!/[!=<:]/.test(Er(3)))){Mn("negate",Et);continue}if(r.nonegate!==!0&&P.index===0){ur();continue}}if(Et==="+"){if(r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){Mn("plus",Et);continue}if(ot&&ot.value==="("||r.regex===!1){br({type:"plus",value:Et,output:b});continue}if(ot&&(ot.type==="bracket"||ot.type==="paren"||ot.type==="brace")||P.parens>0){br({type:"plus",value:Et});continue}br({type:"plus",value:b});continue}if(Et==="@"){if(r.noextglob!==!0&&Er()==="("&&Er(2)!=="?"){br({type:"at",extglob:!0,value:Et,output:""});continue}br({type:"text",value:Et});continue}if(Et!=="*"){(Et==="$"||Et==="^")&&(Et=`\\${Et}`);let hi=Grs.exec($t());hi&&(Et+=hi[0],P.index+=hi[0].length),br({type:"text",value:Et});continue}if(ot&&(ot.type==="globstar"||ot.star===!0)){ot.type="star",ot.star=!0,ot.value+=Et,ot.output=rt,P.backtrack=!0,P.globstar=!0,xr(Et);continue}let fr=$t();if(r.noextglob!==!0&&/^\([^?]/.test(fr)){Mn("star",Et);continue}if(ot.type==="star"){if(r.noglobstar===!0){xr(Et);continue}let hi=ot.prev,we=hi.prev,os=hi.type==="slash"||hi.type==="bos",Hc=we&&(we.type==="star"||we.type==="globstar");if(r.bash===!0&&(!os||fr[0]&&fr[0]!=="/")){br({type:"star",value:Et,output:""});continue}let Va=P.braces>0&&(hi.type==="comma"||hi.type==="brace"),zs=pt.length&&(hi.type==="pipe"||hi.type==="paren");if(!os&&hi.type!=="paren"&&!Va&&!zs){br({type:"star",value:Et,output:""});continue}for(;fr.slice(0,3)==="/**";){let or=e[P.index+4];if(or&&or!=="/")break;fr=fr.slice(3),xr("/**",3)}if(hi.type==="bos"&&Vt()){ot.type="globstar",ot.value+=Et,ot.output=ye(r),P.output=ot.output,P.globstar=!0,xr(Et);continue}if(hi.type==="slash"&&hi.prev.type!=="bos"&&!Hc&&Vt()){P.output=P.output.slice(0,-(hi.output+ot.output).length),hi.output=`(?:${hi.output}`,ot.type="globstar",ot.output=ye(r)+(r.strictSlashes?")":"|$)"),ot.value+=Et,P.globstar=!0,P.output+=hi.output+ot.output,xr(Et);continue}if(hi.type==="slash"&&hi.prev.type!=="bos"&&fr[0]==="/"){let or=fr[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(hi.output+ot.output).length),hi.output=`(?:${hi.output}`,ot.type="globstar",ot.output=`${ye(r)}${L}|${L}${or})`,ot.value+=Et,P.output+=hi.output+ot.output,P.globstar=!0,xr(Et+pn()),br({type:"slash",value:"/",output:""});continue}if(hi.type==="bos"&&fr[0]==="/"){ot.type="globstar",ot.value+=Et,ot.output=`(?:^|${L}|${ye(r)}${L})`,P.output=ot.output,P.globstar=!0,xr(Et+pn()),br({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-ot.output.length),ot.type="globstar",ot.output=ye(r),ot.value+=Et,P.output+=ot.output,P.globstar=!0,xr(Et);continue}let ui={type:"star",value:Et,output:rt};if(r.bash===!0){ui.output=".*?",(ot.type==="bos"||ot.type==="slash")&&(ui.output=Se+ui.output),br(ui);continue}if(ot&&(ot.type==="bracket"||ot.type==="paren")&&r.regex===!0){ui.output=Et,br(ui);continue}(P.index===P.start||ot.type==="slash"||ot.type==="dot")&&(ot.type==="dot"?(P.output+=ne,ot.output+=ne):r.dot===!0?(P.output+=Ae,ot.output+=Ae):(P.output+=Se,ot.output+=Se),Er()!=="*"&&(P.output+=x,ot.output+=x)),br(ui)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing","]"));P.output=HQ.escapeLast(P.output,"["),Vr("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing",")"));P.output=HQ.escapeLast(P.output,"("),Vr("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xge("closing","}"));P.output=HQ.escapeLast(P.output,"{"),Vr("braces")}if(r.strictSlashes!==!0&&(ot.type==="star"||ot.type==="bracket")&&br({type:"maybe_slash",value:"",output:`${L}?`}),P.backtrack===!0){P.output="";for(let fr of P.tokens)P.output+=fr.output!=null?fr.output:fr.value,fr.suffix&&(P.output+=fr.suffix)}return P};qRt.fastpaths=(e,t)=>{let r={...t},s=typeof r.maxLength=="number"?Math.min(Sze,r.maxLength):Sze,c=e.length;if(c>s)throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${s}`);e=LMr[e]||e;let o=HQ.isWindows(t),{DOT_LITERAL:f,SLASH_LITERAL:_,ONE_CHAR:A,DOTS_SLASH:y,NO_DOT:I,NO_DOTS:D,NO_DOTS_SLASH:b,STAR:L,START_ANCHOR:x}=Tze.globChars(o),J=r.dot?D:I,Y=r.dot?b:I,ne=r.capture?"":"?:",Ae={negated:!1,prefix:""},le=r.bash===!0?".*?":L;r.capture&&(le=`(${le})`);let pe=Se=>Se.noglobstar===!0?le:`(${ne}(?:(?!${x}${Se.dot?y:f}).)*?)`,ge=Se=>{switch(Se){case"*":return`${J}${A}${le}`;case".*":return`${f}${A}${le}`;case"*.*":return`${J}${le}${f}${A}${le}`;case"*/*":return`${J}${le}${_}${A}${Y}${le}`;case"**":return J+pe(r);case"**/*":return`(?:${J}${pe(r)}${_})?${Y}${A}${le}`;case"**/*.*":return`(?:${J}${pe(r)}${_})?${Y}${le}${f}${A}${le}`;case"**/.*":return`(?:${J}${pe(r)}${_})?${f}${A}${le}`;default:{let Le=/^(.*?)\.(\w+)$/.exec(Se);if(!Le)return;let rt=ge(Le[1]);return rt?rt+f+Le[2]:void 0}}},me=HQ.removePrefix(e,Ae),ye=ge(me);return ye&&r.strictSlashes!==!0&&(ye+=`${_}?`),ye};QMr.exports=qRt});var GMr=ae((LQa,UMr)=>{"use strict";var qrs=qt("path"),Jrs=FMr(),JRt=MMr(),VRt=BRe(),Vrs=wRe(),Wrs=e=>e&&typeof e=="object"&&!Array.isArray(e),h2=(e,t,r=!1)=>{if(Array.isArray(e)){let I=e.map(b=>h2(b,t,r));return b=>{for(let L of I){let x=L(b);if(x)return x}return!1}}let s=Wrs(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let c=t||{},o=VRt.isWindows(t),f=s?h2.compileRe(e,t):h2.makeRe(e,t,!1,!0),_=f.state;delete f.state;let A=()=>!1;if(c.ignore){let I={...t,ignore:null,onMatch:null,onResult:null};A=h2(c.ignore,I,r)}let y=(I,D=!1)=>{let{isMatch:b,match:L,output:x}=h2.test(I,f,t,{glob:e,posix:o}),J={glob:e,state:_,regex:f,posix:o,input:I,output:x,match:L,isMatch:b};return typeof c.onResult=="function"&&c.onResult(J),b===!1?(J.isMatch=!1,D?J:!1):A(I)?(typeof c.onIgnore=="function"&&c.onIgnore(J),J.isMatch=!1,D?J:!1):(typeof c.onMatch=="function"&&c.onMatch(J),D?J:!0)};return r&&(y.state=_),y};h2.test=(e,t,r,{glob:s,posix:c}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=r||{},f=o.format||(c?VRt.toPosixSlashes:null),_=e===s,A=_&&f?f(e):e;return _===!1&&(A=f?f(e):e,_=A===s),(_===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?_=h2.matchBase(e,t,r,c):_=t.exec(A)),{isMatch:!!_,match:_,output:A}};h2.matchBase=(e,t,r,s=VRt.isWindows(r))=>(t instanceof RegExp?t:h2.makeRe(t,r)).test(qrs.basename(e));h2.isMatch=(e,t,r)=>h2(t,r)(e);h2.parse=(e,t)=>Array.isArray(e)?e.map(r=>h2.parse(r,t)):JRt(e,{...t,fastpaths:!1});h2.scan=(e,t)=>Jrs(e,t);h2.compileRe=(e,t,r=!1,s=!1)=>{if(r===!0)return e.output;let c=t||{},o=c.contains?"":"^",f=c.contains?"":"$",_=`${o}(?:${e.output})${f}`;e&&e.negated===!0&&(_=`^(?!${_}).*$`);let A=h2.toRegex(_,t);return s===!0&&(A.state=e),A};h2.makeRe=(e,t={},r=!1,s=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(c.output=JRt.fastpaths(e,t)),c.output||(c=JRt(e,t)),h2.compileRe(c,t,r,s)};h2.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};h2.constants=Vrs;UMr.exports=h2});var HMr=ae((QQa,jMr)=>{"use strict";jMr.exports=GMr()});var nR=ae((MQa,YMr)=>{"use strict";var JMr=qt("util"),VMr=TMr(),Sj=HMr(),WRt=BRe(),qMr=e=>e===""||e==="./",WMr=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},II=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let s=new Set,c=new Set,o=new Set,f=0,_=I=>{o.add(I.output),r&&r.onResult&&r.onResult(I)};for(let I=0;I!s.has(I));if(r&&y.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(I=>I.replace(/\\/g,"")):t}return y};II.match=II;II.matcher=(e,t)=>Sj(e,t);II.isMatch=(e,t,r)=>Sj(t,r)(e);II.any=II.isMatch;II.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set,c=[],o=_=>{r.onResult&&r.onResult(_),c.push(_.output)},f=new Set(II(e,t,{...r,onResult:o}));for(let _ of c)f.has(_)||s.add(_);return[...s]};II.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${JMr.inspect(e)}"`);if(Array.isArray(t))return t.some(s=>II.contains(e,s,r));if(typeof t=="string"){if(qMr(e)||qMr(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return II.isMatch(e,t,{...r,contains:!0})};II.matchKeys=(e,t,r)=>{if(!WRt.isObject(e))throw new TypeError("Expected the first argument to be an object");let s=II(Object.keys(e),t,r),c={};for(let o of s)c[o]=e[o];return c};II.some=(e,t,r)=>{let s=[].concat(e);for(let c of[].concat(t)){let o=Sj(String(c),r);if(s.some(f=>o(f)))return!0}return!1};II.every=(e,t,r)=>{let s=[].concat(e);for(let c of[].concat(t)){let o=Sj(String(c),r);if(!s.every(f=>o(f)))return!1}return!0};II.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${JMr.inspect(e)}"`);return[].concat(t).every(s=>Sj(s,r)(e))};II.capture=(e,t,r)=>{let s=WRt.isWindows(r),o=Sj.makeRe(String(e),{...r,capture:!0}).exec(s?WRt.toPosixSlashes(t):t);if(o)return o.slice(1).map(f=>f===void 0?"":f)};II.makeRe=(...e)=>Sj.makeRe(...e);II.scan=(...e)=>Sj.scan(...e);II.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[]))for(let c of VMr(String(s),t))r.push(Sj.parse(c,t));return r};II.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!WMr(e)?[e]:VMr(e,t)};II.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return II.braces(e,{...t,expand:!0})};II.hasBraces=WMr;YMr.exports=II});var KMr=ae((UQa,zMr)=>{"use strict";zMr.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var N5=ae((GQa,XMr)=>{"use strict";var Yrs=KMr();XMr.exports=e=>typeof e=="string"?e.replace(Yrs(),""):e});var $Mr=ae((jQa,ZMr)=>{function zrs(){this.__data__=[],this.size=0}ZMr.exports=zrs});var Zge=ae((HQa,e6r)=>{function Krs(e,t){return e===t||e!==e&&t!==t}e6r.exports=Krs});var NRe=ae((qQa,t6r)=>{var Xrs=Zge();function Zrs(e,t){for(var r=e.length;r--;)if(Xrs(e[r][0],t))return r;return-1}t6r.exports=Zrs});var n6r=ae((JQa,r6r)=>{var $rs=NRe(),ens=Array.prototype,tns=ens.splice;function rns(e){var t=this.__data__,r=$rs(t,e);if(r<0)return!1;var s=t.length-1;return r==s?t.pop():tns.call(t,r,1),--this.size,!0}r6r.exports=rns});var s6r=ae((VQa,i6r)=>{var nns=NRe();function ins(e){var t=this.__data__,r=nns(t,e);return r<0?void 0:t[r][1]}i6r.exports=ins});var a6r=ae((WQa,o6r)=>{var sns=NRe();function ons(e){return sns(this.__data__,e)>-1}o6r.exports=ons});var l6r=ae((YQa,c6r)=>{var ans=NRe();function cns(e,t){var r=this.__data__,s=ans(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}c6r.exports=cns});var RRe=ae((zQa,u6r)=>{var lns=$Mr(),uns=n6r(),fns=s6r(),pns=a6r(),dns=l6r();function $ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var _ns=RRe();function Ans(){this.__data__=new _ns,this.size=0}f6r.exports=Ans});var _6r=ae((XQa,d6r)=>{function hns(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}d6r.exports=hns});var h6r=ae((ZQa,A6r)=>{function mns(e){return this.__data__.get(e)}A6r.exports=mns});var g6r=ae(($Qa,m6r)=>{function gns(e){return this.__data__.has(e)}m6r.exports=gns});var YRt=ae((e3a,E6r)=>{var Ens=typeof global=="object"&&global&&global.Object===Object&&global;E6r.exports=Ens});var QM=ae((t3a,y6r)=>{var yns=YRt(),Cns=typeof self=="object"&&self&&self.Object===Object&&self,Ins=yns||Cns||Function("return this")();y6r.exports=Ins});var uce=ae((r3a,C6r)=>{var Tns=QM(),Sns=Tns.Symbol;C6r.exports=Sns});var v6r=ae((n3a,S6r)=>{var I6r=uce(),T6r=Object.prototype,vns=T6r.hasOwnProperty,Dns=T6r.toString,kRe=I6r?I6r.toStringTag:void 0;function bns(e){var t=vns.call(e,kRe),r=e[kRe];try{e[kRe]=void 0;var s=!0}catch{}var c=Dns.call(e);return s&&(t?e[kRe]=r:delete e[kRe]),c}S6r.exports=bns});var b6r=ae((i3a,D6r)=>{var wns=Object.prototype,Bns=wns.toString;function xns(e){return Bns.call(e)}D6r.exports=xns});var fce=ae((s3a,x6r)=>{var w6r=uce(),Nns=v6r(),Rns=b6r(),kns="[object Null]",Pns="[object Undefined]",B6r=w6r?w6r.toStringTag:void 0;function Ons(e){return e==null?e===void 0?Pns:kns:B6r&&B6r in Object(e)?Nns(e):Rns(e)}x6r.exports=Ons});var qQ=ae((o3a,N6r)=>{function Fns(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}N6r.exports=Fns});var vze=ae((a3a,R6r)=>{var Lns=fce(),Qns=qQ(),Mns="[object AsyncFunction]",Uns="[object Function]",Gns="[object GeneratorFunction]",jns="[object Proxy]";function Hns(e){if(!Qns(e))return!1;var t=Lns(e);return t==Uns||t==Gns||t==Mns||t==jns}R6r.exports=Hns});var P6r=ae((c3a,k6r)=>{var qns=QM(),Jns=qns["__core-js_shared__"];k6r.exports=Jns});var L6r=ae((l3a,F6r)=>{var zRt=P6r(),O6r=function(){var e=/[^.]+$/.exec(zRt&&zRt.keys&&zRt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vns(e){return!!O6r&&O6r in e}F6r.exports=Vns});var KRt=ae((u3a,Q6r)=>{var Wns=Function.prototype,Yns=Wns.toString;function zns(e){if(e!=null){try{return Yns.call(e)}catch{}try{return e+""}catch{}}return""}Q6r.exports=zns});var U6r=ae((f3a,M6r)=>{var Kns=vze(),Xns=L6r(),Zns=qQ(),$ns=KRt(),eis=/[\\^$.*+?()[\]{}|]/g,tis=/^\[object .+?Constructor\]$/,ris=Function.prototype,nis=Object.prototype,iis=ris.toString,sis=nis.hasOwnProperty,ois=RegExp("^"+iis.call(sis).replace(eis,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ais(e){if(!Zns(e)||Xns(e))return!1;var t=Kns(e)?ois:tis;return t.test($ns(e))}M6r.exports=ais});var j6r=ae((p3a,G6r)=>{function cis(e,t){return e?.[t]}G6r.exports=cis});var dee=ae((d3a,H6r)=>{var lis=U6r(),uis=j6r();function fis(e,t){var r=uis(e,t);return lis(r)?r:void 0}H6r.exports=fis});var Dze=ae((_3a,q6r)=>{var pis=dee(),dis=QM(),_is=pis(dis,"Map");q6r.exports=_is});var PRe=ae((A3a,J6r)=>{var Ais=dee(),his=Ais(Object,"create");J6r.exports=his});var Y6r=ae((h3a,W6r)=>{var V6r=PRe();function mis(){this.__data__=V6r?V6r(null):{},this.size=0}W6r.exports=mis});var K6r=ae((m3a,z6r)=>{function gis(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}z6r.exports=gis});var Z6r=ae((g3a,X6r)=>{var Eis=PRe(),yis="__lodash_hash_undefined__",Cis=Object.prototype,Iis=Cis.hasOwnProperty;function Tis(e){var t=this.__data__;if(Eis){var r=t[e];return r===yis?void 0:r}return Iis.call(t,e)?t[e]:void 0}X6r.exports=Tis});var e8r=ae((E3a,$6r)=>{var Sis=PRe(),vis=Object.prototype,Dis=vis.hasOwnProperty;function bis(e){var t=this.__data__;return Sis?t[e]!==void 0:Dis.call(t,e)}$6r.exports=bis});var r8r=ae((y3a,t8r)=>{var wis=PRe(),Bis="__lodash_hash_undefined__";function xis(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wis&&t===void 0?Bis:t,this}t8r.exports=xis});var i8r=ae((C3a,n8r)=>{var Nis=Y6r(),Ris=K6r(),kis=Z6r(),Pis=e8r(),Ois=r8r();function e0e(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var s8r=i8r(),Fis=RRe(),Lis=Dze();function Qis(){this.size=0,this.__data__={hash:new s8r,map:new(Lis||Fis),string:new s8r}}o8r.exports=Qis});var l8r=ae((T3a,c8r)=>{function Mis(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}c8r.exports=Mis});var ORe=ae((S3a,u8r)=>{var Uis=l8r();function Gis(e,t){var r=e.__data__;return Uis(t)?r[typeof t=="string"?"string":"hash"]:r.map}u8r.exports=Gis});var p8r=ae((v3a,f8r)=>{var jis=ORe();function His(e){var t=jis(this,e).delete(e);return this.size-=t?1:0,t}f8r.exports=His});var _8r=ae((D3a,d8r)=>{var qis=ORe();function Jis(e){return qis(this,e).get(e)}d8r.exports=Jis});var h8r=ae((b3a,A8r)=>{var Vis=ORe();function Wis(e){return Vis(this,e).has(e)}A8r.exports=Wis});var g8r=ae((w3a,m8r)=>{var Yis=ORe();function zis(e,t){var r=Yis(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}m8r.exports=zis});var bze=ae((B3a,E8r)=>{var Kis=a8r(),Xis=p8r(),Zis=_8r(),$is=h8r(),ess=g8r();function t0e(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var tss=RRe(),rss=Dze(),nss=bze(),iss=200;function sss(e,t){var r=this.__data__;if(r instanceof tss){var s=r.__data__;if(!rss||s.length{var oss=RRe(),ass=p6r(),css=_6r(),lss=h6r(),uss=g6r(),fss=C8r();function r0e(e){var t=this.__data__=new oss(e);this.size=t.size}r0e.prototype.clear=ass;r0e.prototype.delete=css;r0e.prototype.get=lss;r0e.prototype.has=uss;r0e.prototype.set=fss;I8r.exports=r0e});var S8r=ae((R3a,T8r)=>{var pss="__lodash_hash_undefined__";function dss(e){return this.__data__.set(e,pss),this}T8r.exports=dss});var D8r=ae((k3a,v8r)=>{function _ss(e){return this.__data__.has(e)}v8r.exports=_ss});var w8r=ae((P3a,b8r)=>{var Ass=bze(),hss=S8r(),mss=D8r();function Bze(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ass;++t{function gss(e,t){for(var r=-1,s=e==null?0:e.length;++r{function Ess(e,t){return e.has(t)}N8r.exports=Ess});var XRt=ae((L3a,k8r)=>{var yss=w8r(),Css=x8r(),Iss=R8r(),Tss=1,Sss=2;function vss(e,t,r,s,c,o){var f=r&Tss,_=e.length,A=t.length;if(_!=A&&!(f&&A>_))return!1;var y=o.get(e),I=o.get(t);if(y&&I)return y==t&&I==e;var D=-1,b=!0,L=r&Sss?new yss:void 0;for(o.set(e,t),o.set(t,e);++D<_;){var x=e[D],J=t[D];if(s)var Y=f?s(J,x,D,t,e,o):s(x,J,D,e,t,o);if(Y!==void 0){if(Y)continue;b=!1;break}if(L){if(!Css(t,function(ne,Ae){if(!Iss(L,Ae)&&(x===ne||c(x,ne,r,s,o)))return L.push(Ae)})){b=!1;break}}else if(!(x===J||c(x,J,r,s,o))){b=!1;break}}return o.delete(e),o.delete(t),b}k8r.exports=vss});var ZRt=ae((Q3a,P8r)=>{var Dss=QM(),bss=Dss.Uint8Array;P8r.exports=bss});var F8r=ae((M3a,O8r)=>{function wss(e){var t=-1,r=Array(e.size);return e.forEach(function(s,c){r[++t]=[c,s]}),r}O8r.exports=wss});var Q8r=ae((U3a,L8r)=>{function Bss(e){var t=-1,r=Array(e.size);return e.forEach(function(s){r[++t]=s}),r}L8r.exports=Bss});var H8r=ae((G3a,j8r)=>{var M8r=uce(),U8r=ZRt(),xss=Zge(),Nss=XRt(),Rss=F8r(),kss=Q8r(),Pss=1,Oss=2,Fss="[object Boolean]",Lss="[object Date]",Qss="[object Error]",Mss="[object Map]",Uss="[object Number]",Gss="[object RegExp]",jss="[object Set]",Hss="[object String]",qss="[object Symbol]",Jss="[object ArrayBuffer]",Vss="[object DataView]",G8r=M8r?M8r.prototype:void 0,$Rt=G8r?G8r.valueOf:void 0;function Wss(e,t,r,s,c,o,f){switch(r){case Vss:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jss:return!(e.byteLength!=t.byteLength||!o(new U8r(e),new U8r(t)));case Fss:case Lss:case Uss:return xss(+e,+t);case Qss:return e.name==t.name&&e.message==t.message;case Gss:case Hss:return e==t+"";case Mss:var _=Rss;case jss:var A=s&Pss;if(_||(_=kss),e.size!=t.size&&!A)return!1;var y=f.get(e);if(y)return y==t;s|=Oss,f.set(e,t);var I=Nss(_(e),_(t),s,c,o,f);return f.delete(e),I;case qss:if($Rt)return $Rt.call(e)==$Rt.call(t)}return!1}j8r.exports=Wss});var xze=ae((j3a,q8r)=>{function Yss(e,t){for(var r=-1,s=t.length,c=e.length;++r{var zss=Array.isArray;J8r.exports=zss});var ekt=ae((q3a,V8r)=>{var Kss=xze(),Xss=R5();function Zss(e,t,r){var s=t(e);return Xss(e)?s:Kss(s,r(e))}V8r.exports=Zss});var Y8r=ae((J3a,W8r)=>{function $ss(e,t){for(var r=-1,s=e==null?0:e.length,c=0,o=[];++r{function eos(){return[]}z8r.exports=eos});var Nze=ae((W3a,X8r)=>{var tos=Y8r(),ros=tkt(),nos=Object.prototype,ios=nos.propertyIsEnumerable,K8r=Object.getOwnPropertySymbols,sos=K8r?function(e){return e==null?[]:(e=Object(e),tos(K8r(e),function(t){return ios.call(e,t)}))}:ros;X8r.exports=sos});var $8r=ae((Y3a,Z8r)=>{function oos(e,t){for(var r=-1,s=Array(e);++r{function aos(e){return e!=null&&typeof e=="object"}eUr.exports=aos});var rUr=ae((K3a,tUr)=>{var cos=fce(),los=vj(),uos="[object Arguments]";function fos(e){return los(e)&&cos(e)==uos}tUr.exports=fos});var FRe=ae((X3a,sUr)=>{var nUr=rUr(),pos=vj(),iUr=Object.prototype,dos=iUr.hasOwnProperty,_os=iUr.propertyIsEnumerable,Aos=nUr(function(){return arguments}())?nUr:function(e){return pos(e)&&dos.call(e,"callee")&&!_os.call(e,"callee")};sUr.exports=Aos});var aUr=ae((Z3a,oUr)=>{function hos(){return!1}oUr.exports=hos});var QRe=ae((LRe,n0e)=>{var mos=QM(),gos=aUr(),uUr=typeof LRe=="object"&&LRe&&!LRe.nodeType&&LRe,cUr=uUr&&typeof n0e=="object"&&n0e&&!n0e.nodeType&&n0e,Eos=cUr&&cUr.exports===uUr,lUr=Eos?mos.Buffer:void 0,yos=lUr?lUr.isBuffer:void 0,Cos=yos||gos;n0e.exports=Cos});var MRe=ae(($3a,fUr)=>{var Ios=9007199254740991,Tos=/^(?:0|[1-9]\d*)$/;function Sos(e,t){var r=typeof e;return t=t??Ios,!!t&&(r=="number"||r!="symbol"&&Tos.test(e))&&e>-1&&e%1==0&&e{var vos=9007199254740991;function Dos(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vos}pUr.exports=Dos});var _Ur=ae((t4a,dUr)=>{var bos=fce(),wos=Rze(),Bos=vj(),xos="[object Arguments]",Nos="[object Array]",Ros="[object Boolean]",kos="[object Date]",Pos="[object Error]",Oos="[object Function]",Fos="[object Map]",Los="[object Number]",Qos="[object Object]",Mos="[object RegExp]",Uos="[object Set]",Gos="[object String]",jos="[object WeakMap]",Hos="[object ArrayBuffer]",qos="[object DataView]",Jos="[object Float32Array]",Vos="[object Float64Array]",Wos="[object Int8Array]",Yos="[object Int16Array]",zos="[object Int32Array]",Kos="[object Uint8Array]",Xos="[object Uint8ClampedArray]",Zos="[object Uint16Array]",$os="[object Uint32Array]",TI={};TI[Jos]=TI[Vos]=TI[Wos]=TI[Yos]=TI[zos]=TI[Kos]=TI[Xos]=TI[Zos]=TI[$os]=!0;TI[xos]=TI[Nos]=TI[Hos]=TI[Ros]=TI[qos]=TI[kos]=TI[Pos]=TI[Oos]=TI[Fos]=TI[Los]=TI[Qos]=TI[Mos]=TI[Uos]=TI[Gos]=TI[jos]=!1;function eas(e){return Bos(e)&&wos(e.length)&&!!TI[bos(e)]}dUr.exports=eas});var kze=ae((r4a,AUr)=>{function tas(e){return function(t){return e(t)}}AUr.exports=tas});var Pze=ae((URe,i0e)=>{var ras=YRt(),hUr=typeof URe=="object"&&URe&&!URe.nodeType&&URe,GRe=hUr&&typeof i0e=="object"&&i0e&&!i0e.nodeType&&i0e,nas=GRe&&GRe.exports===hUr,rkt=nas&&ras.process,ias=function(){try{var e=GRe&&GRe.require&&GRe.require("util").types;return e||rkt&&rkt.binding&&rkt.binding("util")}catch{}}();i0e.exports=ias});var Oze=ae((n4a,EUr)=>{var sas=_Ur(),oas=kze(),mUr=Pze(),gUr=mUr&&mUr.isTypedArray,aas=gUr?oas(gUr):sas;EUr.exports=aas});var nkt=ae((i4a,yUr)=>{var cas=$8r(),las=FRe(),uas=R5(),fas=QRe(),pas=MRe(),das=Oze(),_as=Object.prototype,Aas=_as.hasOwnProperty;function has(e,t){var r=uas(e),s=!r&&las(e),c=!r&&!s&&fas(e),o=!r&&!s&&!c&&das(e),f=r||s||c||o,_=f?cas(e.length,String):[],A=_.length;for(var y in e)(t||Aas.call(e,y))&&!(f&&(y=="length"||c&&(y=="offset"||y=="parent")||o&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||pas(y,A)))&&_.push(y);return _}yUr.exports=has});var Fze=ae((s4a,CUr)=>{var mas=Object.prototype;function gas(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mas;return e===r}CUr.exports=gas});var ikt=ae((o4a,IUr)=>{function Eas(e,t){return function(r){return e(t(r))}}IUr.exports=Eas});var SUr=ae((a4a,TUr)=>{var yas=ikt(),Cas=yas(Object.keys,Object);TUr.exports=Cas});var DUr=ae((c4a,vUr)=>{var Ias=Fze(),Tas=SUr(),Sas=Object.prototype,vas=Sas.hasOwnProperty;function Das(e){if(!Ias(e))return Tas(e);var t=[];for(var r in Object(e))vas.call(e,r)&&r!="constructor"&&t.push(r);return t}vUr.exports=Das});var jRe=ae((l4a,bUr)=>{var bas=vze(),was=Rze();function Bas(e){return e!=null&&was(e.length)&&!bas(e)}bUr.exports=Bas});var Lze=ae((u4a,wUr)=>{var xas=nkt(),Nas=DUr(),Ras=jRe();function kas(e){return Ras(e)?xas(e):Nas(e)}wUr.exports=kas});var skt=ae((f4a,BUr)=>{var Pas=ekt(),Oas=Nze(),Fas=Lze();function Las(e){return Pas(e,Fas,Oas)}BUr.exports=Las});var RUr=ae((p4a,NUr)=>{var xUr=skt(),Qas=1,Mas=Object.prototype,Uas=Mas.hasOwnProperty;function Gas(e,t,r,s,c,o){var f=r&Qas,_=xUr(e),A=_.length,y=xUr(t),I=y.length;if(A!=I&&!f)return!1;for(var D=A;D--;){var b=_[D];if(!(f?b in t:Uas.call(t,b)))return!1}var L=o.get(e),x=o.get(t);if(L&&x)return L==t&&x==e;var J=!0;o.set(e,t),o.set(t,e);for(var Y=f;++D{var jas=dee(),Has=QM(),qas=jas(Has,"DataView");kUr.exports=qas});var FUr=ae((_4a,OUr)=>{var Jas=dee(),Vas=QM(),Was=Jas(Vas,"Promise");OUr.exports=Was});var QUr=ae((A4a,LUr)=>{var Yas=dee(),zas=QM(),Kas=Yas(zas,"Set");LUr.exports=Kas});var UUr=ae((h4a,MUr)=>{var Xas=dee(),Zas=QM(),$as=Xas(Zas,"WeakMap");MUr.exports=$as});var HRe=ae((m4a,WUr)=>{var okt=PUr(),akt=Dze(),ckt=FUr(),lkt=QUr(),ukt=UUr(),VUr=fce(),s0e=KRt(),GUr="[object Map]",ecs="[object Object]",jUr="[object Promise]",HUr="[object Set]",qUr="[object WeakMap]",JUr="[object DataView]",tcs=s0e(okt),rcs=s0e(akt),ncs=s0e(ckt),ics=s0e(lkt),scs=s0e(ukt),pce=VUr;(okt&&pce(new okt(new ArrayBuffer(1)))!=JUr||akt&&pce(new akt)!=GUr||ckt&&pce(ckt.resolve())!=jUr||lkt&&pce(new lkt)!=HUr||ukt&&pce(new ukt)!=qUr)&&(pce=function(e){var t=VUr(e),r=t==ecs?e.constructor:void 0,s=r?s0e(r):"";if(s)switch(s){case tcs:return JUr;case rcs:return GUr;case ncs:return jUr;case ics:return HUr;case scs:return qUr}return t});WUr.exports=pce});var t5r=ae((g4a,e5r)=>{var fkt=wze(),ocs=XRt(),acs=H8r(),ccs=RUr(),YUr=HRe(),zUr=R5(),KUr=QRe(),lcs=Oze(),ucs=1,XUr="[object Arguments]",ZUr="[object Array]",Qze="[object Object]",fcs=Object.prototype,$Ur=fcs.hasOwnProperty;function pcs(e,t,r,s,c,o){var f=zUr(e),_=zUr(t),A=f?ZUr:YUr(e),y=_?ZUr:YUr(t);A=A==XUr?Qze:A,y=y==XUr?Qze:y;var I=A==Qze,D=y==Qze,b=A==y;if(b&&KUr(e)){if(!KUr(t))return!1;f=!0,I=!1}if(b&&!I)return o||(o=new fkt),f||lcs(e)?ocs(e,t,r,s,c,o):acs(e,t,A,r,s,c,o);if(!(r&ucs)){var L=I&&$Ur.call(e,"__wrapped__"),x=D&&$Ur.call(t,"__wrapped__");if(L||x){var J=L?e.value():e,Y=x?t.value():t;return o||(o=new fkt),c(J,Y,r,s,o)}}return b?(o||(o=new fkt),ccs(e,t,r,s,c,o)):!1}e5r.exports=pcs});var s5r=ae((E4a,i5r)=>{var dcs=t5r(),r5r=vj();function n5r(e,t,r,s,c){return e===t?!0:e==null||t==null||!r5r(e)&&!r5r(t)?e!==e&&t!==t:dcs(e,t,r,s,n5r,c)}i5r.exports=n5r});var a5r=ae((y4a,o5r)=>{var _cs=s5r();function Acs(e,t){return _cs(e,t)}o5r.exports=Acs});var pkt=ae((C4a,c5r)=>{var hcs=dee(),mcs=function(){try{var e=hcs(Object,"defineProperty");return e({},"",{}),e}catch{}}();c5r.exports=mcs});var Mze=ae((I4a,u5r)=>{var l5r=pkt();function gcs(e,t,r){t=="__proto__"&&l5r?l5r(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}u5r.exports=gcs});var dkt=ae((T4a,f5r)=>{var Ecs=Mze(),ycs=Zge();function Ccs(e,t,r){(r!==void 0&&!ycs(e[t],r)||r===void 0&&!(t in e))&&Ecs(e,t,r)}f5r.exports=Ccs});var d5r=ae((S4a,p5r)=>{function Ics(e){return function(t,r,s){for(var c=-1,o=Object(t),f=s(t),_=f.length;_--;){var A=f[e?_:++c];if(r(o[A],A,o)===!1)break}return t}}p5r.exports=Ics});var A5r=ae((v4a,_5r)=>{var Tcs=d5r(),Scs=Tcs();_5r.exports=Scs});var _kt=ae((qRe,o0e)=>{var vcs=QM(),E5r=typeof qRe=="object"&&qRe&&!qRe.nodeType&&qRe,h5r=E5r&&typeof o0e=="object"&&o0e&&!o0e.nodeType&&o0e,Dcs=h5r&&h5r.exports===E5r,m5r=Dcs?vcs.Buffer:void 0,g5r=m5r?m5r.allocUnsafe:void 0;function bcs(e,t){if(t)return e.slice();var r=e.length,s=g5r?g5r(r):new e.constructor(r);return e.copy(s),s}o0e.exports=bcs});var Uze=ae((D4a,C5r)=>{var y5r=ZRt();function wcs(e){var t=new e.constructor(e.byteLength);return new y5r(t).set(new y5r(e)),t}C5r.exports=wcs});var Akt=ae((b4a,I5r)=>{var Bcs=Uze();function xcs(e,t){var r=t?Bcs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}I5r.exports=xcs});var hkt=ae((w4a,T5r)=>{function Ncs(e,t){var r=-1,s=e.length;for(t||(t=Array(s));++r{var Rcs=qQ(),S5r=Object.create,kcs=function(){function e(){}return function(t){if(!Rcs(t))return{};if(S5r)return S5r(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();v5r.exports=kcs});var Gze=ae((x4a,b5r)=>{var Pcs=ikt(),Ocs=Pcs(Object.getPrototypeOf,Object);b5r.exports=Ocs});var mkt=ae((N4a,w5r)=>{var Fcs=D5r(),Lcs=Gze(),Qcs=Fze();function Mcs(e){return typeof e.constructor=="function"&&!Qcs(e)?Fcs(Lcs(e)):{}}w5r.exports=Mcs});var x5r=ae((R4a,B5r)=>{var Ucs=jRe(),Gcs=vj();function jcs(e){return Gcs(e)&&Ucs(e)}B5r.exports=jcs});var gkt=ae((k4a,R5r)=>{var Hcs=fce(),qcs=Gze(),Jcs=vj(),Vcs="[object Object]",Wcs=Function.prototype,Ycs=Object.prototype,N5r=Wcs.toString,zcs=Ycs.hasOwnProperty,Kcs=N5r.call(Object);function Xcs(e){if(!Jcs(e)||Hcs(e)!=Vcs)return!1;var t=qcs(e);if(t===null)return!0;var r=zcs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&N5r.call(r)==Kcs}R5r.exports=Xcs});var Ekt=ae((P4a,k5r)=>{function Zcs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}k5r.exports=Zcs});var jze=ae((O4a,P5r)=>{var $cs=Mze(),els=Zge(),tls=Object.prototype,rls=tls.hasOwnProperty;function nls(e,t,r){var s=e[t];(!(rls.call(e,t)&&els(s,r))||r===void 0&&!(t in e))&&$cs(e,t,r)}P5r.exports=nls});var dce=ae((F4a,O5r)=>{var ils=jze(),sls=Mze();function ols(e,t,r,s){var c=!r;r||(r={});for(var o=-1,f=t.length;++o{function als(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}F5r.exports=als});var M5r=ae((Q4a,Q5r)=>{var cls=qQ(),lls=Fze(),uls=L5r(),fls=Object.prototype,pls=fls.hasOwnProperty;function dls(e){if(!cls(e))return uls(e);var t=lls(e),r=[];for(var s in e)s=="constructor"&&(t||!pls.call(e,s))||r.push(s);return r}Q5r.exports=dls});var a0e=ae((M4a,U5r)=>{var _ls=nkt(),Als=M5r(),hls=jRe();function mls(e){return hls(e)?_ls(e,!0):Als(e)}U5r.exports=mls});var j5r=ae((U4a,G5r)=>{var gls=dce(),Els=a0e();function yls(e){return gls(e,Els(e))}G5r.exports=yls});var Y5r=ae((G4a,W5r)=>{var H5r=dkt(),Cls=_kt(),Ils=Akt(),Tls=hkt(),Sls=mkt(),q5r=FRe(),J5r=R5(),vls=x5r(),Dls=QRe(),bls=vze(),wls=qQ(),Bls=gkt(),xls=Oze(),V5r=Ekt(),Nls=j5r();function Rls(e,t,r,s,c,o,f){var _=V5r(e,r),A=V5r(t,r),y=f.get(A);if(y){H5r(e,r,y);return}var I=o?o(_,A,r+"",e,t,f):void 0,D=I===void 0;if(D){var b=J5r(A),L=!b&&Dls(A),x=!b&&!L&&xls(A);I=A,b||L||x?J5r(_)?I=_:vls(_)?I=Tls(_):L?(D=!1,I=Cls(A,!0)):x?(D=!1,I=Ils(A,!0)):I=[]:Bls(A)||q5r(A)?(I=_,q5r(_)?I=Nls(_):(!wls(_)||bls(_))&&(I=Sls(A))):D=!1}D&&(f.set(A,I),c(I,A,s,o,f),f.delete(A)),H5r(e,r,I)}W5r.exports=Rls});var X5r=ae((j4a,K5r)=>{var kls=wze(),Pls=dkt(),Ols=A5r(),Fls=Y5r(),Lls=qQ(),Qls=a0e(),Mls=Ekt();function z5r(e,t,r,s,c){e!==t&&Ols(t,function(o,f){if(c||(c=new kls),Lls(o))Fls(e,t,f,r,z5r,s,c);else{var _=s?s(Mls(e,f),o,f+"",e,t,c):void 0;_===void 0&&(_=o),Pls(e,f,_)}},Qls)}K5r.exports=z5r});var ykt=ae((H4a,Z5r)=>{function Uls(e){return e}Z5r.exports=Uls});var e7r=ae((q4a,$5r)=>{function Gls(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}$5r.exports=Gls});var Ckt=ae((J4a,r7r)=>{var jls=e7r(),t7r=Math.max;function Hls(e,t,r){return t=t7r(t===void 0?e.length-1:t,0),function(){for(var s=arguments,c=-1,o=t7r(s.length-t,0),f=Array(o);++c{function qls(e){return function(){return e}}n7r.exports=qls});var a7r=ae((W4a,o7r)=>{var Jls=i7r(),s7r=pkt(),Vls=ykt(),Wls=s7r?function(e,t){return s7r(e,"toString",{configurable:!0,enumerable:!1,value:Jls(t),writable:!0})}:Vls;o7r.exports=Wls});var l7r=ae((Y4a,c7r)=>{var Yls=800,zls=16,Kls=Date.now;function Xls(e){var t=0,r=0;return function(){var s=Kls(),c=zls-(s-r);if(r=s,c>0){if(++t>=Yls)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}c7r.exports=Xls});var Ikt=ae((z4a,u7r)=>{var Zls=a7r(),$ls=l7r(),eus=$ls(Zls);u7r.exports=eus});var p7r=ae((K4a,f7r)=>{var tus=ykt(),rus=Ckt(),nus=Ikt();function ius(e,t){return nus(rus(e,t,tus),e+"")}f7r.exports=ius});var _7r=ae((X4a,d7r)=>{var sus=Zge(),ous=jRe(),aus=MRe(),cus=qQ();function lus(e,t,r){if(!cus(r))return!1;var s=typeof t;return(s=="number"?ous(r)&&aus(t,r.length):s=="string"&&t in r)?sus(r[t],e):!1}d7r.exports=lus});var h7r=ae((Z4a,A7r)=>{var uus=p7r(),fus=_7r();function pus(e){return uus(function(t,r){var s=-1,c=r.length,o=c>1?r[c-1]:void 0,f=c>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(c--,o):void 0,f&&fus(r[0],r[1],f)&&(o=c<3?void 0:o,c=1),t=Object(t);++s{var dus=X5r(),_us=h7r(),Aus=_us(function(e,t,r,s){dus(e,t,r,s)});m7r.exports=Aus});var JQ=ae((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CachingStrategy=exports.DefaultStream=exports.AsyncActions=exports.BufferStream=void 0;exports.isTaggedYarnVersion=isTaggedYarnVersion;exports.plural=plural;exports.escapeRegExp=escapeRegExp;exports.overrideType=overrideType;exports.assertNever=assertNever;exports.validateEnum=validateEnum;exports.mapAndFilter=mapAndFilter;exports.mapAndFind=mapAndFind;exports.isIndexableObject=isIndexableObject;exports.allSettledSafe=allSettledSafe;exports.convertMapsToIndexableObjects=convertMapsToIndexableObjects;exports.getFactoryWithDefault=getFactoryWithDefault;exports.getArrayWithDefault=getArrayWithDefault;exports.getSetWithDefault=getSetWithDefault;exports.getMapWithDefault=getMapWithDefault;exports.releaseAfterUseAsync=releaseAfterUseAsync;exports.prettifyAsyncErrors=prettifyAsyncErrors;exports.prettifySyncErrors=prettifySyncErrors;exports.bufferStream=bufferStream;exports.makeDeferred=makeDeferred;exports.dynamicRequire=dynamicRequire;exports.sortMap=sortMap;exports.buildIgnorePattern=buildIgnorePattern;exports.replaceEnvVariables=replaceEnvVariables;exports.parseBoolean=parseBoolean;exports.parseOptionalBoolean=parseOptionalBoolean;exports.tryParseOptionalBoolean=tryParseOptionalBoolean;exports.isPathLike=isPathLike;exports.mergeIntoTarget=mergeIntoTarget;exports.toMerged=toMerged;exports.groupBy=groupBy;exports.parseInt=parseInt;var tslib_1=(Ma(),li(Qa)),fslib_1=Xo(),clipanion_1=(kl(),li(ff)),isEqual_1=tslib_1.__importDefault(a5r()),mergeWith_1=tslib_1.__importDefault(g7r()),micromatch_1=tslib_1.__importDefault(nR()),p_limit_1=tslib_1.__importDefault(sce()),semver_1=tslib_1.__importDefault(W0()),stream_1=qt("stream");function isTaggedYarnVersion(e){return!!(semver_1.default.valid(e)&&e.match(/^[^-]+(-rc\.[0-9]+)?$/))}function plural(e,{one:t,more:r,zero:s=r}){return e===0?s:e===1?t:r}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function overrideType(e){}function assertNever(e){throw new Error(`Assertion failed: Unexpected object '${e}'`)}function validateEnum(e,t){let r=Object.values(e);if(!r.includes(t))throw new clipanion_1.UsageError(`Invalid value for enumeration: ${JSON.stringify(t)} (expected one of ${r.map(s=>JSON.stringify(s)).join(", ")})`);return t}function mapAndFilter(e,t){let r=[];for(let s of e){let c=t(s);c!==mapAndFilterSkip&&r.push(c)}return r}var mapAndFilterSkip=Symbol();mapAndFilter.skip=mapAndFilterSkip;function mapAndFind(e,t){for(let r of e){let s=t(r);if(s!==mapAndFindSkip)return s}}var mapAndFindSkip=Symbol();mapAndFind.skip=mapAndFindSkip;function isIndexableObject(e){return typeof e=="object"&&e!==null}async function allSettledSafe(e){let t=await Promise.allSettled(e),r=[];for(let s of t){if(s.status==="rejected")throw s.reason;r.push(s.value)}return r}function convertMapsToIndexableObjects(e){if(e instanceof Map&&(e=Object.fromEntries(e)),isIndexableObject(e))for(let t of Object.keys(e)){let r=e[t];isIndexableObject(r)&&(e[t]=convertMapsToIndexableObjects(r))}return e}function getFactoryWithDefault(e,t,r){let s=e.get(t);return typeof s>"u"&&e.set(t,s=r()),s}function getArrayWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=[]),r}function getSetWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=new Set),r}function getMapWithDefault(e,t){let r=e.get(t);return typeof r>"u"&&e.set(t,r=new Map),r}async function releaseAfterUseAsync(e,t){if(t==null)return await e();try{return await e()}finally{await t()}}async function prettifyAsyncErrors(e,t){try{return await e()}catch(r){throw r.message=t(r.message),r}}function prettifySyncErrors(e,t){try{return e()}catch(r){throw r.message=t(r.message),r}}async function bufferStream(e){return await new Promise((t,r)=>{let s=[];e.on("error",c=>{r(c)}),e.on("data",c=>{s.push(c)}),e.on("end",()=>{t(Buffer.concat(s))})})}var BufferStream=class extends stream_1.Transform{constructor(){super(...arguments),this.chunks=[]}_transform(t,r,s){if(r!=="buffer"||!Buffer.isBuffer(t))throw new Error("Assertion failed: BufferStream only accept buffers");this.chunks.push(t),s(null,null)}_flush(t){t(null,Buffer.concat(this.chunks))}};exports.BufferStream=BufferStream;function makeDeferred(){let e,t;return{promise:new Promise((s,c)=>{e=s,t=c}),resolve:e,reject:t}}var AsyncActions=class{constructor(t){this.deferred=new Map,this.promises=new Map,this.limit=(0,p_limit_1.default)(t)}set(t,r){let s=this.deferred.get(t);typeof s>"u"&&this.deferred.set(t,s=makeDeferred());let c=this.limit(()=>r());return this.promises.set(t,c),c.then(()=>{this.promises.get(t)===c&&s.resolve()},o=>{this.promises.get(t)===c&&s.reject(o)}),s.promise}reduce(t,r){let s=this.promises.get(t)??Promise.resolve();this.set(t,()=>r(s))}async wait(){await Promise.all(this.promises.values())}};exports.AsyncActions=AsyncActions;var DefaultStream=class extends stream_1.Transform{constructor(t=Buffer.alloc(0)){super(),this.active=!0,this.ifEmpty=t}_transform(t,r,s){if(r!=="buffer"||!Buffer.isBuffer(t))throw new Error("Assertion failed: DefaultStream only accept buffers");this.active=!1,s(null,t)}_flush(t){this.active&&this.ifEmpty.length>0?t(null,this.ifEmpty):t(null)}};exports.DefaultStream=DefaultStream;var realRequire=eval("require");function dynamicRequireNode(e){return realRequire(fslib_1.npath.fromPortablePath(e))}function dynamicRequireNoCache(path){let physicalPath=fslib_1.npath.fromPortablePath(path),currentCacheEntry=realRequire.cache[physicalPath];delete realRequire.cache[physicalPath];let result;try{result=dynamicRequireNode(physicalPath);let freshCacheEntry=realRequire.cache[physicalPath],dynamicModule=eval("module"),freshCacheIndex=dynamicModule.children?dynamicModule.children.indexOf(freshCacheEntry):-1;freshCacheIndex!==-1&&dynamicModule.children.splice(freshCacheIndex,1)}finally{realRequire.cache[physicalPath]=currentCacheEntry}return result}var dynamicRequireFsTimeCache=new Map;function dynamicRequireFsTime(e){let t=dynamicRequireFsTimeCache.get(e),r=fslib_1.xfs.statSync(e);if(t?.mtime===r.mtimeMs)return t.instance;let s=dynamicRequireNoCache(e);return dynamicRequireFsTimeCache.set(e,{mtime:r.mtimeMs,instance:s}),s}var CachingStrategy;(function(e){e[e.NoCache=0]="NoCache",e[e.FsTime=1]="FsTime",e[e.Node=2]="Node"})(CachingStrategy||(exports.CachingStrategy=CachingStrategy={}));function dynamicRequire(e,{cachingStrategy:t=CachingStrategy.Node}={}){switch(t){case CachingStrategy.NoCache:return dynamicRequireNoCache(e);case CachingStrategy.FsTime:return dynamicRequireFsTime(e);case CachingStrategy.Node:return dynamicRequireNode(e);default:throw new Error("Unsupported caching strategy")}}function sortMap(e,t){let r=Array.from(e);Array.isArray(t)||(t=[t]);let s=[];for(let o of t)s.push(r.map(f=>o(f)));let c=r.map((o,f)=>f);return c.sort((o,f)=>{for(let _ of s){let A=_[o]<_[f]?-1:_[o]>_[f]?1:0;if(A!==0)return A}return 0}),c.map(o=>r[o])}function buildIgnorePattern(e){return e.length===0?null:e.map(t=>`(${micromatch_1.default.makeRe(t,{windows:!1,dot:!0}).source})`).join("|")}function replaceEnvVariables(e,{env:t}){let r=/\${(?[\d\w_]+)(?:)?(?:-(?[^}]*))?}/g;return e.replace(r,(...s)=>{let{variableName:c,colon:o,fallback:f}=s[s.length-1],_=Object.hasOwn(t,c),A=t[c];if(A||_&&!o)return A;if(f!=null)return f;throw new clipanion_1.UsageError(`Environment variable not found (${c})`)})}function parseBoolean(e){switch(e){case"true":case"1":case 1:case!0:return!0;case"false":case"0":case 0:case!1:return!1;default:throw new Error(`Couldn't parse "${e}" as a boolean`)}}function parseOptionalBoolean(e){return typeof e>"u"?e:parseBoolean(e)}function tryParseOptionalBoolean(e){try{return parseOptionalBoolean(e)}catch{return null}}function isPathLike(e){return!!(fslib_1.npath.isAbsolute(e)||e.match(/^(\.{1,2}|~)\//))}function mergeIntoTarget(e,...t){let r=f=>({value:f}),s=r(e),c=t.map(f=>r(f)),{value:o}=(0,mergeWith_1.default)(s,...c,(f,_)=>{if(Array.isArray(f)&&Array.isArray(_)){for(let A of _)f.find(y=>(0,isEqual_1.default)(y,A))||f.push(A);return f}});return o}function toMerged(...e){return mergeIntoTarget({},...e)}function groupBy(e,t){let r=Object.create(null);for(let s of e){let c=s[t];r[c]??=[],r[c].push(s)}return r}function parseInt(e){return typeof e=="string"?Number.parseInt(e,10):e}});var _ce=ae(_ee=>{"use strict";Object.defineProperty(_ee,"__esModule",{value:!0});_ee.PackageExtensionStatus=_ee.PackageExtensionType=_ee.LinkType=void 0;var E7r;(function(e){e.HARD="HARD",e.SOFT="SOFT"})(E7r||(_ee.LinkType=E7r={}));var y7r;(function(e){e.Dependency="Dependency",e.PeerDependency="PeerDependency",e.PeerDependencyMeta="PeerDependencyMeta"})(y7r||(_ee.PackageExtensionType=y7r={}));var C7r;(function(e){e.Inactive="inactive",e.Redundant="redundant",e.Active="active"})(C7r||(_ee.PackageExtensionStatus=C7r={}))});var MM=ae(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.LogLevel=wf.supportsHyperlinks=wf.supportsColor=wf.Style=wf.Type=wf.stripAnsi=void 0;wf.tuple=Cus;wf.applyStyle=v7r;wf.applyColor=xx;wf.applyHyperlink=D7r;wf.pretty=Ace;wf.prettyList=Tus;wf.json=b7r;wf.jsonOrPretty=Sus;wf.mark=vus;wf.prettyField=Dus;wf.prettyTruncatedLocatorList=bus;wf.addLogFilterSupport=wus;var l0e=(Ma(),li(Qa)),I7r=Xo(),Jze=l0e.__importDefault(NRt()),qze=l0e.__importDefault(ice()),hus=(kl(),li(ff)),mus=l0e.__importDefault(nR()),S7r=l0e.__importDefault(N5());wf.stripAnsi=S7r.default;var gus=qt("util"),Hze=AF(),Eus=l0e.__importStar(JQ()),wC=l0e.__importStar(sR()),c0e=_ce();wf.Type={NO_HINT:"NO_HINT",ID:"ID",NULL:"NULL",SCOPE:"SCOPE",NAME:"NAME",RANGE:"RANGE",REFERENCE:"REFERENCE",NUMBER:"NUMBER",PATH:"PATH",URL:"URL",ADDED:"ADDED",REMOVED:"REMOVED",CODE:"CODE",INSPECT:"INSPECT",DURATION:"DURATION",SIZE:"SIZE",SIZE_DIFF:"SIZE_DIFF",IDENT:"IDENT",DESCRIPTOR:"DESCRIPTOR",LOCATOR:"LOCATOR",RESOLUTION:"RESOLUTION",DEPENDENT:"DEPENDENT",PACKAGE_EXTENSION:"PACKAGE_EXTENSION",SETTING:"SETTING",MARKDOWN:"MARKDOWN",MARKDOWN_INLINE:"MARKDOWN_INLINE"};var Vze;(function(e){e[e.BOLD=2]="BOLD"})(Vze||(wf.Style=Vze={}));var Skt=qze.default.GITHUB_ACTIONS?{level:2}:Jze.default.supportsColor?{level:Jze.default.supportsColor.level}:{level:0};wf.supportsColor=Skt.level!==0;wf.supportsHyperlinks=wf.supportsColor&&!qze.default.GITHUB_ACTIONS&&!qze.default.CIRCLE&&!qze.default.GITLAB;var Tkt=new Jze.default.Instance(Skt),yus=new Map([[wf.Type.NO_HINT,null],[wf.Type.NULL,["#a853b5",129]],[wf.Type.SCOPE,["#d75f00",166]],[wf.Type.NAME,["#d7875f",173]],[wf.Type.RANGE,["#00afaf",37]],[wf.Type.REFERENCE,["#87afff",111]],[wf.Type.NUMBER,["#ffd700",220]],[wf.Type.PATH,["#d75fd7",170]],[wf.Type.URL,["#d75fd7",170]],[wf.Type.ADDED,["#5faf00",70]],[wf.Type.REMOVED,["#ff3131",160]],[wf.Type.CODE,["#87afff",111]],[wf.Type.SIZE,["#ffd700",220]]]),iR=e=>e;function T7r(e){let t=["KiB","MiB","GiB","TiB"],r=t.length;for(;r>1&&e<1024**r;)r-=1;let s=1024**r;return`${Math.floor(e*100/s)/100} ${t[r-1]}`}var Wze={[wf.Type.ID]:iR({pretty:(e,t)=>typeof t=="number"?xx(e,`${t}`,wf.Type.NUMBER):xx(e,t,wf.Type.CODE),json:e=>e}),[wf.Type.INSPECT]:iR({pretty:(e,t)=>(0,gus.inspect)(t,{depth:1/0,colors:e.get("enableColors"),compact:!0,breakLength:1/0}),json:e=>e}),[wf.Type.NUMBER]:iR({pretty:(e,t)=>xx(e,`${t}`,wf.Type.NUMBER),json:e=>e}),[wf.Type.IDENT]:iR({pretty:(e,t)=>wC.prettyIdent(e,t),json:e=>wC.stringifyIdent(e)}),[wf.Type.LOCATOR]:iR({pretty:(e,t)=>wC.prettyLocator(e,t),json:e=>wC.stringifyLocator(e)}),[wf.Type.DESCRIPTOR]:iR({pretty:(e,t)=>wC.prettyDescriptor(e,t),json:e=>wC.stringifyDescriptor(e)}),[wf.Type.RESOLUTION]:iR({pretty:(e,{descriptor:t,locator:r})=>wC.prettyResolution(e,t,r),json:({descriptor:e,locator:t})=>({descriptor:wC.stringifyDescriptor(e),locator:t!==null?wC.stringifyLocator(t):null})}),[wf.Type.DEPENDENT]:iR({pretty:(e,{locator:t,descriptor:r})=>wC.prettyDependent(e,t,r),json:({locator:e,descriptor:t})=>({locator:wC.stringifyLocator(e),descriptor:wC.stringifyDescriptor(t)})}),[wf.Type.PACKAGE_EXTENSION]:iR({pretty:(e,t)=>{switch(t.type){case c0e.PackageExtensionType.Dependency:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"dependencies",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,t.descriptor)}`;case c0e.PackageExtensionType.PeerDependency:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"peerDependencies",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,t.descriptor)}`;case c0e.PackageExtensionType.PeerDependencyMeta:return`${wC.prettyIdent(e,t.parentDescriptor)} \u27A4 ${xx(e,"peerDependenciesMeta",wf.Type.CODE)} \u27A4 ${wC.prettyIdent(e,wC.parseIdent(t.selector))} \u27A4 ${xx(e,t.key,wf.Type.CODE)}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${t.type}`)}},json:e=>{switch(e.type){case c0e.PackageExtensionType.Dependency:return`${wC.stringifyIdent(e.parentDescriptor)} > ${wC.stringifyIdent(e.descriptor)}`;case c0e.PackageExtensionType.PeerDependency:return`${wC.stringifyIdent(e.parentDescriptor)} >> ${wC.stringifyIdent(e.descriptor)}`;case c0e.PackageExtensionType.PeerDependencyMeta:return`${wC.stringifyIdent(e.parentDescriptor)} >> ${e.selector} / ${e.key}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${e.type}`)}}}),[wf.Type.SETTING]:iR({pretty:(e,t)=>(e.get(t),D7r(e,xx(e,t,wf.Type.CODE),`https://yarnpkg.com/configuration/yarnrc#${t}`)),json:e=>e}),[wf.Type.DURATION]:iR({pretty:(e,t)=>{if(t>1e3*60){let r=Math.floor(t/1e3/60),s=Math.ceil((t-r*60*1e3)/1e3);return s===0?`${r}m`:`${r}m ${s}s`}else{let r=Math.floor(t/1e3),s=t-r*1e3;return s===0?`${r}s`:`${r}s ${s}ms`}},json:e=>e}),[wf.Type.SIZE]:iR({pretty:(e,t)=>xx(e,T7r(t),wf.Type.NUMBER),json:e=>e}),[wf.Type.SIZE_DIFF]:iR({pretty:(e,t)=>{let r=t>=0?"+":"-",s=r==="+"?wf.Type.REMOVED:wf.Type.ADDED;return xx(e,`${r} ${T7r(Math.max(Math.abs(t),1))}`,s)},json:e=>e}),[wf.Type.PATH]:iR({pretty:(e,t)=>xx(e,I7r.npath.fromPortablePath(t),wf.Type.PATH),json:e=>I7r.npath.fromPortablePath(e)}),[wf.Type.MARKDOWN]:iR({pretty:(e,{text:t,format:r,paragraphs:s})=>(0,hus.formatMarkdownish)(t,{format:r,paragraphs:s}),json:({text:e})=>e}),[wf.Type.MARKDOWN_INLINE]:iR({pretty:(e,t)=>(t=t.replace(/(`+)((?:.|[\n])*?)\1/g,(r,s,c)=>Ace(e,s+c+s,wf.Type.CODE)),t=t.replace(/(\*\*)((?:.|[\n])*?)\1/g,(r,s,c)=>v7r(e,c,Vze.BOLD)),t),json:e=>e})};function Cus(e,t){return[t,e]}function v7r(e,t,r){return e.get("enableColors")&&r&Vze.BOLD&&(t=Jze.default.bold(t)),t}function xx(e,t,r){if(!e.get("enableColors"))return t;let s=yus.get(r);if(s===null)return t;let c=typeof s>"u"?r:Skt.level>=3?s[0]:s[1],o=typeof c=="number"?Tkt.ansi256(c):c.startsWith("#")?Tkt.hex(c):Tkt[c];if(typeof o!="function")throw new Error(`Invalid format type ${c}`);return o(t)}var Ius=!!process.env.KONSOLE_VERSION;function D7r(e,t,r){return e.get("enableHyperlinks")?Ius?`\x1B]8;;${r}\x1B\\${t}\x1B]8;;\x1B\\`:`\x1B]8;;${r}\x07${t}\x1B]8;;\x07`:t}function Ace(e,t,r){if(t===null)return xx(e,"null",wf.Type.NULL);if(Object.hasOwn(Wze,r))return Wze[r].pretty(e,t);if(typeof t!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof t}`);return xx(e,t,r)}function Tus(e,t,r,{separator:s=", "}={}){return[...t].map(c=>Ace(e,c,r)).join(s)}function b7r(e,t){if(e===null)return null;if(Object.hasOwn(Wze,t))return Eus.overrideType(t),Wze[t].json(e);if(typeof e!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof e}`);return e}function Sus(e,t,[r,s]){return e?b7r(r,s):Ace(t,r,s)}function vus(e){return{Check:xx(e,"\u2713","green"),Cross:xx(e,"\u2718","red"),Question:xx(e,"?","cyan")}}function Dus(e,{label:t,value:[r,s]}){return`${Ace(e,t,wf.Type.CODE)}: ${Ace(e,r,s)}`}function bus(e,t,r){let s=[],c=[...t],o=r;for(;c.length>0;){let y=c[0],I=`${wC.prettyLocator(e,y)}, `,D=wC.prettyLocatorNoColors(y).length+2;if(s.length>0&&o