npm-check-updates 20.0.1 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -45,13 +45,13 @@ Instructions:
|
|
|
45
45
|
Filtered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}
|
|
46
46
|
`}renderOption(u,c,a,f){const h=(c.selected?e.green(r.radioOn):r.radioOff)+" "+f+" ";let d;return c.disabled?d=u===a?e.gray().underline(c.title):e.strikethrough().gray(c.title):d=u===a?e.cyan().underline(c.title):c.title,h+d}renderDoneOrInstructions(){if(this.done)return this.value.filter(c=>c.selected).map(c=>c.title).join(", ");const u=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&u.push(e.yellow(this.warn)),u.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let u=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(u+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),u+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+u),this.clear=s(u,this.out.columns)}}return qu=o,qu}var ju,Ny;function v2(){if(Ny)return ju;Ny=1;const e=vr(),t=Zr(),{style:n,clear:s}=Cr(),{erase:i,cursor:r}=Er();class o extends t{constructor(u={}){super(u),this.msg=u.message,this.value=u.initial,this.initialValue=!!u.initial,this.yesMsg=u.yes||"yes",this.yesOption=u.yesOption||"(Y/n)",this.noMsg=u.no||"no",this.noOption=u.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
47
47
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
48
|
-
`),this.close()}_(u,c){return u.toLowerCase()==="y"?(this.value=!0,this.submit()):u.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(r.hide):this.out.write(s(this.outputText,this.out.columns)),super.render();const u=this.aborted||this.done&&!this.value;this.outputText=[n.symbol(this.done,u),e.bold(this.msg),n.delimiter(this.done),this.done?this.value&&!this.aborted?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(i.line+r.to(0)+this.outputText)}}return ju=o,ju}var Uu,Py;function E2(){return Py||(Py=1,Uu={TextPrompt:r2(),SelectPrompt:n2(),TogglePrompt:i2(),DatePrompt:p2(),NumberPrompt:g2(),MultiselectPrompt:PC(),AutocompletePrompt:m2(),AutocompleteMultiselectPrompt:y2(),ConfirmPrompt:v2()}),Uu}var $y;function b2(){return $y||($y=1,(function(e){const t=e,n=E2(),s=o=>o;function i(o,l,u={}){return new Promise((c,a)=>{const f=new n[o](l),h=u.onAbort||s,d=u.onSubmit||s,p=u.onExit||s;f.on("state",l.onState||s),f.on("submit",g=>c(d(g))),f.on("exit",g=>c(p(g))),f.on("abort",g=>a(h(g)))})}t.text=o=>i("TextPrompt",o),t.password=o=>(o.style="password",t.text(o)),t.invisible=o=>(o.style="invisible",t.text(o)),t.number=o=>i("NumberPrompt",o),t.date=o=>i("DatePrompt",o),t.confirm=o=>i("ConfirmPrompt",o),t.list=o=>{const l=o.separator||",";return i("TextPrompt",o,{onSubmit:u=>u.split(l).map(c=>c.trim())})},t.toggle=o=>i("TogglePrompt",o),t.select=o=>i("SelectPrompt",o),t.multiselect=o=>{o.choices=[].concat(o.choices||[]);const l=u=>u.filter(c=>c.selected).map(c=>c.value);return i("MultiselectPrompt",o,{onAbort:l,onSubmit:l})},t.autocompleteMultiselect=o=>{o.choices=[].concat(o.choices||[]);const l=u=>u.filter(c=>c.selected).map(c=>c.value);return i("AutocompleteMultiselectPrompt",o,{onAbort:l,onSubmit:l})};const r=(o,l)=>Promise.resolve(l.filter(u=>u.title.slice(0,o.length).toLowerCase()===o.toLowerCase()));t.autocomplete=o=>(o.suggest=o.suggest||r,o.choices=[].concat(o.choices||[]),i("AutocompletePrompt",o))})(lu)),lu}var Hu,By;function _2(){if(By)return Hu;By=1;const e=b2(),t=["suggest","format","onState","validate","onRender","type"],n=()=>{};async function s(l=[],{onSubmit:u=n,onCancel:c=n}={}){const a={},f=s._override||{};l=[].concat(l);let h,d,p,g,m,v;const _=async(y,E,b=!1)=>{if(!(!b&&y.validate&&y.validate(E)!==!0))return y.format?await y.format(E,a):E};for(d of l)if({name:g,type:m}=d,typeof m=="function"&&(m=await m(h,{...a},d),d.type=m),!!m){for(let y in d){if(t.includes(y))continue;let E=d[y];d[y]=typeof E=="function"?await E(h,{...a},v):E}if(v=d,typeof d.message!="string")throw new Error("prompt message is required");if({name:g,type:m}=d,e[m]===void 0)throw new Error(`prompt type (${m}) is not defined`);if(f[d.name]!==void 0&&(h=await _(d,f[d.name]),h!==void 0)){a[g]=h;continue}try{h=s._injected?i(s._injected,d.initial):await e[m](d),a[g]=h=await _(d,h,!0),p=await u(d,h,a)}catch{p=!await c(d,a)}if(p)return a}return a}function i(l,u){const c=l.shift();if(c instanceof Error)throw c;return c===void 0?u:c}function r(l){s._injected=(s._injected||[]).concat(l)}function o(l){s._override=Object.assign({},l)}return Hu=Object.assign(s,{prompt:s,prompts:e,inject:r,override:o}),Hu}var zu,My;function w2(){return My||(My=1,zu=_2()),zu}var D2=w2();const Qo=ft(D2),S2="npm-check-updates",A2="20.0.1",R2="Tomas Junnonen <tomas1@gmail.com>",C2="Apache-2.0",T2=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],O2="Find newer versions of dependencies than what your package.json allows",x2=["dependencies","npm","package.json","update","upgrade","versions"],F2={node:">=20.0.0",npm:">=8.12.1"},I2="build/index.js",L2="build/index.d.ts",k2={build:"rimraf build && npm run build:options && vite build","build:options":"vite-node src/scripts/build-options.ts","build:analyze":"rimraf build && npm run build:options && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.js',"lint:src":"eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives",prepare:"src/scripts/install-hooks",prepublishOnly:"npm run build",prettier:"prettier . --check","prettier:fix":"prettier . --write",test:"npm run test:unit && npm run test:e2e","test:bun":"test/bun-install.sh && mocha test/bun","test:unit":"mocha test test/package-managers/*","test:e2e":"./test/e2e.sh",ncu:"node build/cli.js"},N2={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},P2={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},$2="https://github.com/raineorshine/npm-check-updates",B2={url:"https://github.com/raineorshine/npm-check-updates/issues"},M2={"@yarnpkg/parsers":"3.0.3","@verdaccio/local-storage-legacy":{"@verdaccio/core":">=8.0.0-next-8.33"},"brace-expansion":">=5.0.5","diff@4":">=4.0.4","diff@6":">=8.0.3","diff@7":">=8.0.3","diff@8":">=8.0.3",eslint:"$eslint","@eslint/js":"$@eslint/js","eslint-plugin-n":"$eslint-plugin-n","eslint-plugin-promise":"$eslint-plugin-promise",flatted:">=3.4.2","glob@10":">=10.5.0","glob@11":">=11.1.0",handlebars:">=4.7.9",ip:"2.0.1",jsonparse:"github:ARitz-Cracker/jsonparse#patch-1",lodash:"$lodash","minimatch@3":">=3.1.3","minimatch@7":">=7.4.8","minimatch@9":">=9.0.7","minimatch@10":">=10.2.3","picomatch@2":">=2.3.2",qs:">=6.14.2",rollup:">=4.59.0","serialize-javascript":">=7.0.3","smol-toml":">=1.6.1"},q2={"@eslint/compat":"2.0.3","@eslint/js":"10.0.1","@streamparser/json":"^0.0.22","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/bun":"^1.3.11","@types/chai":"^4.3.19","@types/chai-as-promised":"7.1.8","@types/chai-string":"^1.4.5","@types/cli-table":"^0.3.4","@types/hosted-git-info":"^3.0.5","@types/ini":"^4.1.1","@types/js-yaml":"^4.0.9","@types/jsonlines":"^0.1.5","@types/lodash":"^4.17.24","@types/mocha":"^10.0.10","@types/node":"^25.5.0","@types/npm-registry-fetch":"^8.0.9","@types/parse-github-url":"^1.0.3","@types/picomatch":"^4.0.2","@types/progress":"^2.0.7","@types/prompts":"^2.4.9","@types/semver":"^7.7.1","@types/semver-utils":"^1.1.3","@types/sinon":"^21.0.0","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"8.57.2","@typescript-eslint/parser":"8.57.2",camelcase:"^6.3.0",chai:"^4.3.10","chai-as-promised":"^7.1.2","chai-string":"^1.6.0",chalk:"^5.6.2","cli-table3":"^0.6.5",commander:"^14.0.3","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"10.1.0","eslint-config-prettier":"10.1.8","eslint-config-raine":"0.5.0","eslint-config-standard":"17.1.0","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-import-x":"4.16.2","eslint-plugin-jsdoc":"61.7.1","eslint-plugin-n":"17.24.0","eslint-plugin-promise":"7.2.1","fast-glob":"^3.3.3","fast-memoize":"^2.5.2","find-up":"5.0.0","fp-and-or":"^1.0.2",globals:"17.4.0","hosted-git-info":"^9.0.2",ini:"^6.0.0","js-yaml":"^4.1.1","jsonc-parser":"^3.3.1",jsonlines:"^0.1.1","lockfile-lint":"^5.0.0",lodash:"^4.17.23","markdownlint-cli":"^0.48.0",mocha:"^11.7.5","npm-registry-fetch":"^19.1.1","npm-run-all":"^4.1.5","p-map":"^4.0.0","parse-github-url":"^1.0.4",picomatch:"^4.0.4",prettier:"^3.8.1",progress:"^2.0.3","prompts-ncu":"^3.0.2","rc-config-loader":"^4.1.4",rfdc:"^1.4.1",rimraf:"^6.1.3","rollup-plugin-node-externals":"^8.1.2",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.0.3","source-map-support":"^0.5.21","spawn-please":"^3.0.0","strip-ansi":"^7.2.0","ts-node":"^10.9.2",typescript:"^5.9.2","typescript-json-schema":"^0.67.1",untildify:"^4.0.0","update-notifier":"^7.3.1",verdaccio:"6.3.2",vite:"^7.1.7","vite-bundle-analyzer":"^1.3.6","vite-node":"^5.3.0","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},j2=["build","!**/test/**"],U2={"check-leaks":!0,extension:["test.ts"],require:["source-map-support/register","ts-node/register"],timeout:6e4,"trace-deprecation":!0,"trace-warnings":!0,use_strict:!0},ea={name:S2,version:A2,author:R2,license:C2,contributors:T2,description:O2,keywords:x2,engines:F2,main:I2,types:L2,scripts:k2,bin:N2,repository:P2,homepage:$2,bugs:B2,overrides:M2,devDependencies:q2,files:j2,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:U2};var Gu,qy;function Om(){if(qy)return Gu;qy=1;let e=[],t=0;const n=(s,i)=>{t>=i&&e.push(s)};return n.WARN=1,n.INFO=2,n.DEBUG=3,n.reset=()=>{e=[]},n.setDebugLevel=s=>{t=s},n.warn=s=>n(s,n.WARN),n.info=s=>n(s,n.INFO),n.debug=s=>n(s,n.DEBUG),n.debugMessages=()=>e,Gu=n,Gu}var Ls={exports:{}},Wu,jy;function H2(){return jy||(jy=1,Wu=({onlyFirst:e=!1}={})=>{const 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")}),Wu}var Vu,Uy;function z2(){if(Uy)return Vu;Uy=1;const e=H2();return Vu=t=>typeof t=="string"?t.replace(e(),""):t,Vu}var ks={exports:{}},Hy;function $C(){if(Hy)return ks.exports;Hy=1;const e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);return ks.exports=e,ks.exports.default=e,ks.exports}var Yu,zy;function G2(){return zy||(zy=1,Yu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Yu}var Gy;function W2(){if(Gy)return Ls.exports;Gy=1;const e=z2(),t=$C(),n=G2(),s=i=>{if(typeof i!="string"||i.length===0||(i=e(i),i.length===0))return 0;i=i.replace(n()," ");let r=0;for(let o=0;o<i.length;o++){const l=i.codePointAt(o);l<=31||l>=127&&l<=159||l>=768&&l<=879||(l>65535&&o++,r+=t(l)?2:1)}return r};return Ls.exports=s,Ls.exports.default=s,Ls.exports}var Ku,Wy;function BC(){if(Wy)return Ku;Wy=1;const e=W2();function t(b){return b?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function n(b){let w=t();return(""+b).replace(w,"").split(`
|
|
48
|
+
`),this.close()}_(u,c){return u.toLowerCase()==="y"?(this.value=!0,this.submit()):u.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(r.hide):this.out.write(s(this.outputText,this.out.columns)),super.render();const u=this.aborted||this.done&&!this.value;this.outputText=[n.symbol(this.done,u),e.bold(this.msg),n.delimiter(this.done),this.done?this.value&&!this.aborted?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(i.line+r.to(0)+this.outputText)}}return ju=o,ju}var Uu,Py;function E2(){return Py||(Py=1,Uu={TextPrompt:r2(),SelectPrompt:n2(),TogglePrompt:i2(),DatePrompt:p2(),NumberPrompt:g2(),MultiselectPrompt:PC(),AutocompletePrompt:m2(),AutocompleteMultiselectPrompt:y2(),ConfirmPrompt:v2()}),Uu}var $y;function b2(){return $y||($y=1,(function(e){const t=e,n=E2(),s=o=>o;function i(o,l,u={}){return new Promise((c,a)=>{const f=new n[o](l),h=u.onAbort||s,d=u.onSubmit||s,p=u.onExit||s;f.on("state",l.onState||s),f.on("submit",g=>c(d(g))),f.on("exit",g=>c(p(g))),f.on("abort",g=>a(h(g)))})}t.text=o=>i("TextPrompt",o),t.password=o=>(o.style="password",t.text(o)),t.invisible=o=>(o.style="invisible",t.text(o)),t.number=o=>i("NumberPrompt",o),t.date=o=>i("DatePrompt",o),t.confirm=o=>i("ConfirmPrompt",o),t.list=o=>{const l=o.separator||",";return i("TextPrompt",o,{onSubmit:u=>u.split(l).map(c=>c.trim())})},t.toggle=o=>i("TogglePrompt",o),t.select=o=>i("SelectPrompt",o),t.multiselect=o=>{o.choices=[].concat(o.choices||[]);const l=u=>u.filter(c=>c.selected).map(c=>c.value);return i("MultiselectPrompt",o,{onAbort:l,onSubmit:l})},t.autocompleteMultiselect=o=>{o.choices=[].concat(o.choices||[]);const l=u=>u.filter(c=>c.selected).map(c=>c.value);return i("AutocompleteMultiselectPrompt",o,{onAbort:l,onSubmit:l})};const r=(o,l)=>Promise.resolve(l.filter(u=>u.title.slice(0,o.length).toLowerCase()===o.toLowerCase()));t.autocomplete=o=>(o.suggest=o.suggest||r,o.choices=[].concat(o.choices||[]),i("AutocompletePrompt",o))})(lu)),lu}var Hu,By;function _2(){if(By)return Hu;By=1;const e=b2(),t=["suggest","format","onState","validate","onRender","type"],n=()=>{};async function s(l=[],{onSubmit:u=n,onCancel:c=n}={}){const a={},f=s._override||{};l=[].concat(l);let h,d,p,g,m,v;const _=async(y,E,b=!1)=>{if(!(!b&&y.validate&&y.validate(E)!==!0))return y.format?await y.format(E,a):E};for(d of l)if({name:g,type:m}=d,typeof m=="function"&&(m=await m(h,{...a},d),d.type=m),!!m){for(let y in d){if(t.includes(y))continue;let E=d[y];d[y]=typeof E=="function"?await E(h,{...a},v):E}if(v=d,typeof d.message!="string")throw new Error("prompt message is required");if({name:g,type:m}=d,e[m]===void 0)throw new Error(`prompt type (${m}) is not defined`);if(f[d.name]!==void 0&&(h=await _(d,f[d.name]),h!==void 0)){a[g]=h;continue}try{h=s._injected?i(s._injected,d.initial):await e[m](d),a[g]=h=await _(d,h,!0),p=await u(d,h,a)}catch{p=!await c(d,a)}if(p)return a}return a}function i(l,u){const c=l.shift();if(c instanceof Error)throw c;return c===void 0?u:c}function r(l){s._injected=(s._injected||[]).concat(l)}function o(l){s._override=Object.assign({},l)}return Hu=Object.assign(s,{prompt:s,prompts:e,inject:r,override:o}),Hu}var zu,My;function w2(){return My||(My=1,zu=_2()),zu}var D2=w2();const Qo=ft(D2),S2="npm-check-updates",A2="20.0.2",R2="Tomas Junnonen <tomas1@gmail.com>",C2="Apache-2.0",T2=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],O2="Find newer versions of dependencies than what your package.json allows",x2=["dependencies","npm","package.json","update","upgrade","versions"],F2={node:">=20.0.0",npm:">=8.12.1"},I2="build/index.js",L2="build/index.d.ts",k2={build:"rimraf build && npm run build:options && vite build","build:options":"vite-node src/scripts/build-options.ts","build:analyze":"rimraf build && npm run build:options && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.js',"lint:src":"eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives",prepare:"src/scripts/install-hooks",prepublishOnly:"npm run build",prettier:"prettier . --check","prettier:fix":"prettier . --write",test:"npm run test:unit && npm run test:e2e","test:bun":"test/bun-install.sh && mocha test/bun","test:unit":"mocha test test/package-managers/*","test:e2e":"./test/e2e.sh",ncu:"node build/cli.js"},N2={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},P2={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},$2="https://github.com/raineorshine/npm-check-updates",B2={url:"https://github.com/raineorshine/npm-check-updates/issues"},M2={"@yarnpkg/parsers":"3.0.3","@verdaccio/local-storage-legacy":{"@verdaccio/core":">=8.0.0-next-8.33"},"brace-expansion":">=5.0.5","diff@4":">=4.0.4","diff@6":">=8.0.3","diff@7":">=8.0.3","diff@8":">=8.0.3",eslint:"$eslint","@eslint/js":"$@eslint/js","eslint-plugin-n":"$eslint-plugin-n","eslint-plugin-promise":"$eslint-plugin-promise",flatted:">=3.4.2","glob@10":">=10.5.0","glob@11":">=11.1.0",handlebars:">=4.7.9",ip:"2.0.1",jsonparse:"github:ARitz-Cracker/jsonparse#patch-1",lodash:"$lodash","minimatch@3":">=3.1.3","minimatch@7":">=7.4.8","minimatch@9":">=9.0.7","minimatch@10":">=10.2.3","picomatch@2":">=2.3.2",qs:">=6.14.2",rollup:">=4.59.0","serialize-javascript":">=7.0.3","smol-toml":">=1.6.1"},q2={"@eslint/compat":"2.0.3","@eslint/js":"10.0.1","@streamparser/json":"^0.0.22","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/bun":"^1.3.11","@types/chai":"^4.3.19","@types/chai-as-promised":"7.1.8","@types/chai-string":"^1.4.5","@types/cli-table":"^0.3.4","@types/hosted-git-info":"^3.0.5","@types/ini":"^4.1.1","@types/js-yaml":"^4.0.9","@types/jsonlines":"^0.1.5","@types/lodash":"^4.17.24","@types/mocha":"^10.0.10","@types/node":"^25.5.0","@types/npm-registry-fetch":"^8.0.9","@types/parse-github-url":"^1.0.3","@types/picomatch":"^4.0.2","@types/progress":"^2.0.7","@types/prompts":"^2.4.9","@types/semver":"^7.7.1","@types/semver-utils":"^1.1.3","@types/sinon":"^21.0.0","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"8.57.2","@typescript-eslint/parser":"8.57.2",camelcase:"^6.3.0",chai:"^4.3.10","chai-as-promised":"^7.1.2","chai-string":"^1.6.0",chalk:"^5.6.2","cli-table3":"^0.6.5",commander:"^14.0.3","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"10.1.0","eslint-config-prettier":"10.1.8","eslint-config-raine":"0.5.0","eslint-config-standard":"17.1.0","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-import-x":"4.16.2","eslint-plugin-jsdoc":"61.7.1","eslint-plugin-n":"17.24.0","eslint-plugin-promise":"7.2.1","fast-glob":"^3.3.3","fast-memoize":"^2.5.2","find-up":"5.0.0","fp-and-or":"^1.0.2",globals:"17.4.0","hosted-git-info":"^9.0.2",ini:"^6.0.0","js-yaml":"^4.1.1","jsonc-parser":"^3.3.1",jsonlines:"^0.1.1","lockfile-lint":"^5.0.0",lodash:"^4.17.23","markdownlint-cli":"^0.48.0",mocha:"^11.7.5","npm-registry-fetch":"^19.1.1","npm-run-all":"^4.1.5","p-map":"^4.0.0","parse-github-url":"^1.0.4",picomatch:"^4.0.4",prettier:"^3.8.1",progress:"^2.0.3","prompts-ncu":"^3.0.2","rc-config-loader":"^4.1.4",rfdc:"^1.4.1",rimraf:"^6.1.3","rollup-plugin-node-externals":"^8.1.2",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.0.3","source-map-support":"^0.5.21","spawn-please":"^3.0.0","strip-ansi":"^7.2.0","ts-node":"^10.9.2",typescript:"^5.9.2","typescript-json-schema":"^0.67.1",untildify:"^4.0.0","update-notifier":"^7.3.1",verdaccio:"6.3.2",vite:"^7.1.7","vite-bundle-analyzer":"^1.3.6","vite-node":"^5.3.0","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},j2=["build","!**/test/**"],U2={"check-leaks":!0,extension:["test.ts"],require:["source-map-support/register","ts-node/register"],timeout:6e4,"trace-deprecation":!0,"trace-warnings":!0,use_strict:!0},ea={name:S2,version:A2,author:R2,license:C2,contributors:T2,description:O2,keywords:x2,engines:F2,main:I2,types:L2,scripts:k2,bin:N2,repository:P2,homepage:$2,bugs:B2,overrides:M2,devDependencies:q2,files:j2,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:U2};var Gu,qy;function Om(){if(qy)return Gu;qy=1;let e=[],t=0;const n=(s,i)=>{t>=i&&e.push(s)};return n.WARN=1,n.INFO=2,n.DEBUG=3,n.reset=()=>{e=[]},n.setDebugLevel=s=>{t=s},n.warn=s=>n(s,n.WARN),n.info=s=>n(s,n.INFO),n.debug=s=>n(s,n.DEBUG),n.debugMessages=()=>e,Gu=n,Gu}var Ls={exports:{}},Wu,jy;function H2(){return jy||(jy=1,Wu=({onlyFirst:e=!1}={})=>{const 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")}),Wu}var Vu,Uy;function z2(){if(Uy)return Vu;Uy=1;const e=H2();return Vu=t=>typeof t=="string"?t.replace(e(),""):t,Vu}var ks={exports:{}},Hy;function $C(){if(Hy)return ks.exports;Hy=1;const e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);return ks.exports=e,ks.exports.default=e,ks.exports}var Yu,zy;function G2(){return zy||(zy=1,Yu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Yu}var Gy;function W2(){if(Gy)return Ls.exports;Gy=1;const e=z2(),t=$C(),n=G2(),s=i=>{if(typeof i!="string"||i.length===0||(i=e(i),i.length===0))return 0;i=i.replace(n()," ");let r=0;for(let o=0;o<i.length;o++){const l=i.codePointAt(o);l<=31||l>=127&&l<=159||l>=768&&l<=879||(l>65535&&o++,r+=t(l)?2:1)}return r};return Ls.exports=s,Ls.exports.default=s,Ls.exports}var Ku,Wy;function BC(){if(Wy)return Ku;Wy=1;const e=W2();function t(b){return b?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function n(b){let w=t();return(""+b).replace(w,"").split(`
|
|
49
49
|
`).reduce(function(T,L){return e(L)>T?e(L):T},0)}function s(b,w){return Array(w+1).join(b)}function i(b,w,S,C){let T=n(b);if(w+1>=T){let L=w-T;switch(C){case"right":{b=s(S,L)+b;break}case"center":{let k=Math.ceil(L/2),$=L-k;b=s(S,$)+b+s(S,k);break}default:{b=b+s(S,L);break}}}return b}let r={};function o(b,w,S){w="\x1B["+w+"m",S="\x1B["+S+"m",r[w]={set:b,to:!0},r[S]={set:b,to:!1},r[b]={on:w,off:S}}o("bold",1,22),o("italics",3,23),o("underline",4,24),o("inverse",7,27),o("strikethrough",9,29);function l(b,w){let S=w[1]?parseInt(w[1].split(";")[0]):0;if(S>=30&&S<=39||S>=90&&S<=97){b.lastForegroundAdded=w[0];return}if(S>=40&&S<=49||S>=100&&S<=107){b.lastBackgroundAdded=w[0];return}if(S===0){for(let T in b)Object.prototype.hasOwnProperty.call(b,T)&&delete b[T];return}let C=r[w[0]];C&&(b[C.set]=C.to)}function u(b){let w=t(!0),S=w.exec(b),C={};for(;S!==null;)l(C,S),S=w.exec(b);return C}function c(b,w){let S=b.lastBackgroundAdded,C=b.lastForegroundAdded;return delete b.lastBackgroundAdded,delete b.lastForegroundAdded,Object.keys(b).forEach(function(T){b[T]&&(w+=r[T].off)}),S&&S!="\x1B[49m"&&(w+="\x1B[49m"),C&&C!="\x1B[39m"&&(w+="\x1B[39m"),w}function a(b,w){let S=b.lastBackgroundAdded,C=b.lastForegroundAdded;return delete b.lastBackgroundAdded,delete b.lastForegroundAdded,Object.keys(b).forEach(function(T){b[T]&&(w=r[T].on+w)}),S&&S!="\x1B[49m"&&(w=S+w),C&&C!="\x1B[39m"&&(w=C+w),w}function f(b,w){if(b.length===n(b))return b.substr(0,w);for(;n(b)>w;)b=b.slice(0,-1);return b}function h(b,w){let S=t(!0),C=b.split(t()),T=0,L=0,k="",$,H={};for(;L<w;){$=S.exec(b);let B=C[T];if(T++,L+n(B)>w&&(B=f(B,w-L)),k+=B,L+=n(B),L<w){if(!$)break;k+=$[0],l(H,$)}}return c(H,k)}function d(b,w,S){if(S=S||"…",n(b)<=w)return b;w-=n(S);let T=h(b,w);T+=S;const L="\x1B]8;;\x07";return b.includes(L)&&!T.includes(L)&&(T+=L),T}function p(){return{chars:{top:"─","top-mid":"┬","top-left":"┌","top-right":"┐",bottom:"─","bottom-mid":"┴","bottom-left":"└","bottom-right":"┘",left:"│","left-mid":"├",mid:"─","mid-mid":"┼",right:"│","right-mid":"┤",middle:"│"},truncate:"…",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function g(b,w){b=b||{},w=w||p();let S=Object.assign({},w,b);return S.chars=Object.assign({},w.chars,b.chars),S.style=Object.assign({},w.style,b.style),S}function m(b,w){let S=[],C=w.split(/(\s+)/g),T=[],L=0,k;for(let $=0;$<C.length;$+=2){let H=C[$],B=L+n(H);L>0&&k&&(B+=k.length),B>b?(L!==0&&S.push(T.join("")),T=[H],L=n(H)):(T.push(k||"",H),L=B),k=C[$+1]}return L&&S.push(T.join("")),S}function v(b,w){let S=[],C="";function T(k,$){for(C.length&&$&&(C+=$),C+=k;C.length>b;)S.push(C.slice(0,b)),C=C.slice(b)}let L=w.split(/(\s+)/g);for(let k=0;k<L.length;k+=2)T(L[k],k&&L[k-1]);return C.length&&S.push(C),S}function _(b,w,S=!0){let C=[];w=w.split(`
|
|
50
|
-
`);const T=S?m:v;for(let L=0;L<w.length;L++)C.push.apply(C,T(b,w[L]));return C}function y(b){let w={},S=[];for(let C=0;C<b.length;C++){let T=a(w,b[C]);w=u(T);let L=Object.assign({},w);S.push(c(L,T))}return S}function E(b,w){return["\x1B]","8",";",";",b||w,"\x07",w,"\x1B]","8",";",";","\x07"].join("")}return Ku={strlen:n,repeat:s,pad:i,truncate:d,mergeOptions:g,wordWrap:_,colorizeLines:y,hyperlink:E},Ku}var Zu={exports:{}},di={exports:{}},Ju={exports:{}},Xu={exports:{}},Qu={exports:{}},Vy;function V2(){return Vy||(Vy=1,(function(e){var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(s){var i=n[s],r=t[s]=[];r.open="\x1B["+i[0]+"m",r.close="\x1B["+i[1]+"m"})})(Qu)),Qu.exports}var ec,Yy;function Y2(){return Yy||(Yy=1,ec=function(e,t){t=t||process.argv;var n=t.indexOf("--"),s=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(s+e);return i!==-1&&(n===-1?!0:i<n)}),ec}var tc,Ky;function K2(){if(Ky)return tc;Ky=1;var e=Nt,t=Y2(),n=process.env,s=void 0;t("no-color")||t("no-colors")||t("color=false")?s=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(s=!0),"FORCE_COLOR"in n&&(s=n.FORCE_COLOR.length===0||parseInt(n.FORCE_COLOR,10)!==0);function i(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function r(l){if(s===!1)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(l&&!l.isTTY&&s!==!0)return 0;var u=s?1:0;if(process.platform==="win32"){var c=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(f){return f in n})||n.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in n){var a=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM==="dumb",u)}function o(l){var u=r(l);return i(u)}return tc={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)},tc}var rc={exports:{}},Zy;function Z2(){return Zy||(Zy=1,(function(e){e.exports=function(n,s){var i="";n=n||"Run the trap, drop the bass",n=n.split("");var r={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return n.forEach(function(o){o=o.toLowerCase();var l=r[o]||[" "],u=Math.floor(Math.random()*l.length);typeof r[o]<"u"?i+=r[o][u]:i+=o}),i}})(rc)),rc.exports}var nc={exports:{}},Jy;function J2(){return Jy||(Jy=1,(function(e){e.exports=function(n,s){n=n||" he is here ";var i={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},r=[].concat(i.up,i.down,i.mid);function o(c){var a=Math.floor(Math.random()*c);return a}function l(c){var a=!1;return r.filter(function(f){a=f===c}),a}function u(c,a){var f="",h,d;a=a||{},a.up=typeof a.up<"u"?a.up:!0,a.mid=typeof a.mid<"u"?a.mid:!0,a.down=typeof a.down<"u"?a.down:!0,a.size=typeof a.size<"u"?a.size:"maxi",c=c.split("");for(d in c)if(!l(d)){switch(f=f+c[d],h={up:0,down:0,mid:0},a.size){case"mini":h.up=o(8),h.mid=o(2),h.down=o(8);break;case"maxi":h.up=o(16)+3,h.mid=o(4)+1,h.down=o(64)+3;break;default:h.up=o(8)+1,h.mid=o(6)/2,h.down=o(8)+1;break}var p=["up","mid","down"];for(var g in p)for(var m=p[g],v=0;v<=h[m];v++)a[m]&&(f=f+i[m][o(i[m].length)])}return f}return u(n,s)}})(nc)),nc.exports}var ic={exports:{}},Xy;function X2(){return Xy||(Xy=1,(function(e){e.exports=function(t){return function(n,s,i){if(n===" ")return n;switch(s%3){case 0:return t.red(n);case 1:return t.white(n);case 2:return t.blue(n)}}}})(ic)),ic.exports}var sc={exports:{}},Qy;function Q2(){return Qy||(Qy=1,(function(e){e.exports=function(t){return function(n,s,i){return s%2===0?n:t.inverse(n)}}})(sc)),sc.exports}var oc={exports:{}},
|
|
51
|
-
`)!=-1,_=this._styles,y=_.length;y--;){var E=s[_[y]];m=E.open+m.replace(E.closeRe,E.open)+E.close,v&&(m=m.replace(r,function(b){return E.close+b+E.open}))}return m}t.setTheme=function(g){if(typeof g=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var m in g)(function(v){t[v]=function(_){if(typeof g[v]=="object"){var y=_;for(var E in g[v])y=t[g[v][E]](y);return y}return t[g[v]](_)}})(m)};function h(){var g={};return Object.keys(c).forEach(function(m){g[m]={get:function(){return u([m])}}}),g}var d=function(m,v){var _=v.split("");return _=_.map(m),_.join("")};t.trap=Z2(),t.zalgo=J2(),t.maps={},t.maps.america=X2()(t),t.maps.zebra=Q2()(t),t.maps.rainbow=eI()(t),t.maps.random=tI()(t);for(var p in t.maps)(function(g){t[g]=function(m){return d(t.maps[g],m)}})(p);i(t,h())})(Xu)),Xu.exports}var
|
|
52
|
-
`))}wrapLines(h){const d=n.colorizeLines(h);return this.href?d.map(p=>n.hyperlink(this.href,p)):d}init(h){let d=this.x,p=this.y;this.widths=h.colWidths.slice(d,d+this.colSpan),this.heights=h.rowHeights.slice(p,p+this.rowSpan),this.width=this.widths.reduce(c,-1),this.height=this.heights.reduce(c,-1),this.hAlign=this.options.hAlign||h.colAligns[d],this.vAlign=this.options.vAlign||h.rowAligns[p],this.drawRight=d+this.colSpan==h.colWidths.length}draw(h,d){if(h=="top")return this.drawTop(this.drawRight);if(h=="bottom")return this.drawBottom(this.drawRight);let p=n.truncate(this.content,10,this.truncate);h||e(`${this.y}-${this.x}: ${this.rowSpan-h}x${this.colSpan} Cell ${p}`);let g=Math.max(this.height-this.lines.length,0),m;switch(this.vAlign){case"center":m=Math.ceil(g/2);break;case"bottom":m=g;break;default:m=0}if(h<m||h>=m+this.lines.length)return this.drawEmpty(this.drawRight,d);let v=this.lines.length>this.height&&h+1>=this.height;return this.drawLine(h-m,this.drawRight,v,d)}drawTop(h){let d=[];return this.cells?this.widths.forEach(function(p,g){d.push(this._topLeftChar(g)),d.push(n.repeat(this.chars[this.y==0?"top":"mid"],p))},this):(d.push(this._topLeftChar(0)),d.push(n.repeat(this.chars[this.y==0?"top":"mid"],this.width))),h&&d.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",d.join(""))}_topLeftChar(h){let d=this.x+h,p;if(this.y==0)p=d==0?"topLeft":h==0?"topMid":"top";else if(d==0)p="leftMid";else if(p=h==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][d]instanceof s.ColSpanCell&&(p=h==0?"topMid":"mid"),h==0)){let m=1;for(;this.cells[this.y][d-m]instanceof s.ColSpanCell;)m++;this.cells[this.y][d-m]instanceof s.RowSpanCell&&(p="leftMid")}return this.chars[p]}wrapWithStyleColors(h,d){if(this[h]&&this[h].length)try{let p=nI();for(let g=this[h].length-1;g>=0;g--)p=p[this[h][g]];return p(d)}catch{return d}else return d}drawLine(h,d,p,g){let m=this.chars[this.x==0?"left":"middle"];if(this.x&&g&&this.cells){let S=this.cells[this.y+g][this.x-1];for(;S instanceof i;)S=this.cells[S.y][S.x-1];S instanceof r||(m=this.chars.rightMid)}let v=n.repeat(" ",this.paddingLeft),_=d?this.chars.right:"",y=n.repeat(" ",this.paddingRight),E=this.lines[h],b=this.width-(this.paddingLeft+this.paddingRight);p&&(E+=this.truncate||"…");let w=n.truncate(E,b,this.truncate);return w=n.pad(w,b," ",this.hAlign),w=v+w+y,this.stylizeLine(m,w,_)}stylizeLine(h,d,p){return h=this.wrapWithStyleColors("border",h),p=this.wrapWithStyleColors("border",p),this.y===0&&(d=this.wrapWithStyleColors("head",d)),h+d+p}drawBottom(h){let d=this.chars[this.x==0?"bottomLeft":"bottomMid"],p=n.repeat(this.chars.bottom,this.width),g=h?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",d+p+g)}drawEmpty(h,d){let p=this.chars[this.x==0?"left":"middle"];if(this.x&&d&&this.cells){let v=this.cells[this.y+d][this.x-1];for(;v instanceof i;)v=this.cells[v.y][v.x-1];v instanceof r||(p=this.chars.rightMid)}let g=h?this.chars.right:"",m=n.repeat(" ",this.width);return this.stylizeLine(p,m,g)}}class i{constructor(){}draw(h){return typeof h=="number"&&t(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}}class r{constructor(h){this.originalCell=h}init(h){let d=this.y,p=this.originalCell.y;this.cellOffset=d-p,this.offset=u(h.rowHeights,p,this.cellOffset)}draw(h){return h=="top"?this.originalCell.draw(this.offset,this.cellOffset):h=="bottom"?this.originalCell.draw("bottom"):(t(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+h))}mergeTableOptions(){}}function o(...f){return f.filter(h=>h!=null).shift()}function l(f,h,d,p){let g=d.split("-");g.length>1?(g[1]=g[1].charAt(0).toUpperCase()+g[1].substr(1),g=g.join(""),p[g]=o(f[g],f[d],h[g],h[d])):p[d]=o(f[d],h[d])}function u(f,h,d){let p=f[h];for(let g=1;g<d;g++)p+=1+f[h+g];return p}function c(f,h){return f+h+1}let a=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];return di.exports=s,di.exports.ColSpanCell=i,di.exports.RowSpanCell=r,di.exports}var
|
|
50
|
+
`);const T=S?m:v;for(let L=0;L<w.length;L++)C.push.apply(C,T(b,w[L]));return C}function y(b){let w={},S=[];for(let C=0;C<b.length;C++){let T=a(w,b[C]);w=u(T);let L=Object.assign({},w);S.push(c(L,T))}return S}function E(b,w){return["\x1B]","8",";",";",b||w,"\x07",w,"\x1B]","8",";",";","\x07"].join("")}return Ku={strlen:n,repeat:s,pad:i,truncate:d,mergeOptions:g,wordWrap:_,colorizeLines:y,hyperlink:E},Ku}var Zu={exports:{}},di={exports:{}},Ju={exports:{}},Xu={exports:{}},Qu={exports:{}},Vy;function V2(){return Vy||(Vy=1,(function(e){var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(s){var i=n[s],r=t[s]=[];r.open="\x1B["+i[0]+"m",r.close="\x1B["+i[1]+"m"})})(Qu)),Qu.exports}var ec,Yy;function Y2(){return Yy||(Yy=1,ec=function(e,t){t=t||process.argv;var n=t.indexOf("--"),s=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(s+e);return i!==-1&&(n===-1?!0:i<n)}),ec}var tc,Ky;function K2(){if(Ky)return tc;Ky=1;var e=Nt,t=Y2(),n=process.env,s=void 0;t("no-color")||t("no-colors")||t("color=false")?s=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(s=!0),"FORCE_COLOR"in n&&(s=n.FORCE_COLOR.length===0||parseInt(n.FORCE_COLOR,10)!==0);function i(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function r(l){if(s===!1)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(l&&!l.isTTY&&s!==!0)return 0;var u=s?1:0;if(process.platform==="win32"){var c=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(f){return f in n})||n.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in n){var a=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM==="dumb",u)}function o(l){var u=r(l);return i(u)}return tc={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)},tc}var rc={exports:{}},Zy;function Z2(){return Zy||(Zy=1,(function(e){e.exports=function(n,s){var i="";n=n||"Run the trap, drop the bass",n=n.split("");var r={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return n.forEach(function(o){o=o.toLowerCase();var l=r[o]||[" "],u=Math.floor(Math.random()*l.length);typeof r[o]<"u"?i+=r[o][u]:i+=o}),i}})(rc)),rc.exports}var nc={exports:{}},Jy;function J2(){return Jy||(Jy=1,(function(e){e.exports=function(n,s){n=n||" he is here ";var i={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},r=[].concat(i.up,i.down,i.mid);function o(c){var a=Math.floor(Math.random()*c);return a}function l(c){var a=!1;return r.filter(function(f){a=f===c}),a}function u(c,a){var f="",h,d;a=a||{},a.up=typeof a.up<"u"?a.up:!0,a.mid=typeof a.mid<"u"?a.mid:!0,a.down=typeof a.down<"u"?a.down:!0,a.size=typeof a.size<"u"?a.size:"maxi",c=c.split("");for(d in c)if(!l(d)){switch(f=f+c[d],h={up:0,down:0,mid:0},a.size){case"mini":h.up=o(8),h.mid=o(2),h.down=o(8);break;case"maxi":h.up=o(16)+3,h.mid=o(4)+1,h.down=o(64)+3;break;default:h.up=o(8)+1,h.mid=o(6)/2,h.down=o(8)+1;break}var p=["up","mid","down"];for(var g in p)for(var m=p[g],v=0;v<=h[m];v++)a[m]&&(f=f+i[m][o(i[m].length)])}return f}return u(n,s)}})(nc)),nc.exports}var ic={exports:{}},Xy;function X2(){return Xy||(Xy=1,(function(e){e.exports=function(t){return function(n,s,i){if(n===" ")return n;switch(s%3){case 0:return t.red(n);case 1:return t.white(n);case 2:return t.blue(n)}}}})(ic)),ic.exports}var sc={exports:{}},Qy;function Q2(){return Qy||(Qy=1,(function(e){e.exports=function(t){return function(n,s,i){return s%2===0?n:t.inverse(n)}}})(sc)),sc.exports}var oc={exports:{}},e1;function eI(){return e1||(e1=1,(function(e){e.exports=function(t){var n=["red","yellow","green","blue","magenta"];return function(s,i,r){return s===" "?s:t[n[i++%n.length]](s)}}})(oc)),oc.exports}var ac={exports:{}},t1;function tI(){return t1||(t1=1,(function(e){e.exports=function(t){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(s,i,r){return s===" "?s:t[n[Math.round(Math.random()*(n.length-2))]](s)}}})(ac)),ac.exports}var r1;function rI(){return r1||(r1=1,(function(e){var t={};e.exports=t,t.themes={};var n=qr,s=t.styles=V2(),i=Object.defineProperties,r=new RegExp(/[\r\n]+/g);t.supportsColor=K2().supportsColor,typeof t.enabled>"u"&&(t.enabled=t.supportsColor()!==!1),t.enable=function(){t.enabled=!0},t.disable=function(){t.enabled=!1},t.stripColors=t.strip=function(g){return(""+g).replace(/\x1B\[\d+m/g,"")},t.stylize=function(m,v){if(!t.enabled)return m+"";var _=s[v];return!_&&v in t?t[v](m):_.open+m+_.close};var o=/[|\\{}()[\]^$+*?.]/g,l=function(g){if(typeof g!="string")throw new TypeError("Expected a string");return g.replace(o,"\\$&")};function u(g){var m=function v(){return f.apply(v,arguments)};return m._styles=g,m.__proto__=a,m}var c=(function(){var g={};return s.grey=s.gray,Object.keys(s).forEach(function(m){s[m].closeRe=new RegExp(l(s[m].close),"g"),g[m]={get:function(){return u(this._styles.concat(m))}}}),g})(),a=i(function(){},c);function f(){var g=Array.prototype.slice.call(arguments),m=g.map(function(b){return b!=null&&b.constructor===String?b:n.inspect(b)}).join(" ");if(!t.enabled||!m)return m;for(var v=m.indexOf(`
|
|
51
|
+
`)!=-1,_=this._styles,y=_.length;y--;){var E=s[_[y]];m=E.open+m.replace(E.closeRe,E.open)+E.close,v&&(m=m.replace(r,function(b){return E.close+b+E.open}))}return m}t.setTheme=function(g){if(typeof g=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var m in g)(function(v){t[v]=function(_){if(typeof g[v]=="object"){var y=_;for(var E in g[v])y=t[g[v][E]](y);return y}return t[g[v]](_)}})(m)};function h(){var g={};return Object.keys(c).forEach(function(m){g[m]={get:function(){return u([m])}}}),g}var d=function(m,v){var _=v.split("");return _=_.map(m),_.join("")};t.trap=Z2(),t.zalgo=J2(),t.maps={},t.maps.america=X2()(t),t.maps.zebra=Q2()(t),t.maps.rainbow=eI()(t),t.maps.random=tI()(t);for(var p in t.maps)(function(g){t[g]=function(m){return d(t.maps[g],m)}})(p);i(t,h())})(Xu)),Xu.exports}var n1;function nI(){return n1||(n1=1,(function(e){var t=rI();e.exports=t})(Ju)),Ju.exports}var i1;function iI(){if(i1)return di.exports;i1=1;const{info:e,debug:t}=Om(),n=BC();class s{constructor(h){this.setOptions(h),this.x=null,this.y=null}setOptions(h){["boolean","number","bigint","string"].indexOf(typeof h)!==-1&&(h={content:""+h}),h=h||{},this.options=h;let d=h.content;if(["boolean","number","bigint","string"].indexOf(typeof d)!==-1)this.content=String(d);else if(!d)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof d);this.colSpan=h.colSpan||1,this.rowSpan=h.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(h,d){this.cells=d;let p=this.options.chars||{},g=h.chars,m=this.chars={};a.forEach(function(y){l(p,g,y,m)}),this.truncate=this.options.truncate||h.truncate;let v=this.options.style=this.options.style||{},_=h.style;l(v,_,"padding-left",this),l(v,_,"padding-right",this),this.head=v.head||_.head,this.border=v.border||_.border,this.fixedWidth=h.colWidths[this.x],this.lines=this.computeLines(h),this.desiredWidth=n.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(h){const d=h.wordWrap||h.textWrap,{wordWrap:p=d}=this.options;if(this.fixedWidth&&p){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let v=1;for(;v<this.colSpan;)this.fixedWidth+=h.colWidths[this.x+v],v++}const{wrapOnWordBoundary:g=!0}=h,{wrapOnWordBoundary:m=g}=this.options;return this.wrapLines(n.wordWrap(this.fixedWidth,this.content,m))}return this.wrapLines(this.content.split(`
|
|
52
|
+
`))}wrapLines(h){const d=n.colorizeLines(h);return this.href?d.map(p=>n.hyperlink(this.href,p)):d}init(h){let d=this.x,p=this.y;this.widths=h.colWidths.slice(d,d+this.colSpan),this.heights=h.rowHeights.slice(p,p+this.rowSpan),this.width=this.widths.reduce(c,-1),this.height=this.heights.reduce(c,-1),this.hAlign=this.options.hAlign||h.colAligns[d],this.vAlign=this.options.vAlign||h.rowAligns[p],this.drawRight=d+this.colSpan==h.colWidths.length}draw(h,d){if(h=="top")return this.drawTop(this.drawRight);if(h=="bottom")return this.drawBottom(this.drawRight);let p=n.truncate(this.content,10,this.truncate);h||e(`${this.y}-${this.x}: ${this.rowSpan-h}x${this.colSpan} Cell ${p}`);let g=Math.max(this.height-this.lines.length,0),m;switch(this.vAlign){case"center":m=Math.ceil(g/2);break;case"bottom":m=g;break;default:m=0}if(h<m||h>=m+this.lines.length)return this.drawEmpty(this.drawRight,d);let v=this.lines.length>this.height&&h+1>=this.height;return this.drawLine(h-m,this.drawRight,v,d)}drawTop(h){let d=[];return this.cells?this.widths.forEach(function(p,g){d.push(this._topLeftChar(g)),d.push(n.repeat(this.chars[this.y==0?"top":"mid"],p))},this):(d.push(this._topLeftChar(0)),d.push(n.repeat(this.chars[this.y==0?"top":"mid"],this.width))),h&&d.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",d.join(""))}_topLeftChar(h){let d=this.x+h,p;if(this.y==0)p=d==0?"topLeft":h==0?"topMid":"top";else if(d==0)p="leftMid";else if(p=h==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][d]instanceof s.ColSpanCell&&(p=h==0?"topMid":"mid"),h==0)){let m=1;for(;this.cells[this.y][d-m]instanceof s.ColSpanCell;)m++;this.cells[this.y][d-m]instanceof s.RowSpanCell&&(p="leftMid")}return this.chars[p]}wrapWithStyleColors(h,d){if(this[h]&&this[h].length)try{let p=nI();for(let g=this[h].length-1;g>=0;g--)p=p[this[h][g]];return p(d)}catch{return d}else return d}drawLine(h,d,p,g){let m=this.chars[this.x==0?"left":"middle"];if(this.x&&g&&this.cells){let S=this.cells[this.y+g][this.x-1];for(;S instanceof i;)S=this.cells[S.y][S.x-1];S instanceof r||(m=this.chars.rightMid)}let v=n.repeat(" ",this.paddingLeft),_=d?this.chars.right:"",y=n.repeat(" ",this.paddingRight),E=this.lines[h],b=this.width-(this.paddingLeft+this.paddingRight);p&&(E+=this.truncate||"…");let w=n.truncate(E,b,this.truncate);return w=n.pad(w,b," ",this.hAlign),w=v+w+y,this.stylizeLine(m,w,_)}stylizeLine(h,d,p){return h=this.wrapWithStyleColors("border",h),p=this.wrapWithStyleColors("border",p),this.y===0&&(d=this.wrapWithStyleColors("head",d)),h+d+p}drawBottom(h){let d=this.chars[this.x==0?"bottomLeft":"bottomMid"],p=n.repeat(this.chars.bottom,this.width),g=h?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",d+p+g)}drawEmpty(h,d){let p=this.chars[this.x==0?"left":"middle"];if(this.x&&d&&this.cells){let v=this.cells[this.y+d][this.x-1];for(;v instanceof i;)v=this.cells[v.y][v.x-1];v instanceof r||(p=this.chars.rightMid)}let g=h?this.chars.right:"",m=n.repeat(" ",this.width);return this.stylizeLine(p,m,g)}}class i{constructor(){}draw(h){return typeof h=="number"&&t(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}}class r{constructor(h){this.originalCell=h}init(h){let d=this.y,p=this.originalCell.y;this.cellOffset=d-p,this.offset=u(h.rowHeights,p,this.cellOffset)}draw(h){return h=="top"?this.originalCell.draw(this.offset,this.cellOffset):h=="bottom"?this.originalCell.draw("bottom"):(t(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+h))}mergeTableOptions(){}}function o(...f){return f.filter(h=>h!=null).shift()}function l(f,h,d,p){let g=d.split("-");g.length>1?(g[1]=g[1].charAt(0).toUpperCase()+g[1].substr(1),g=g.join(""),p[g]=o(f[g],f[d],h[g],h[d])):p[d]=o(f[d],h[d])}function u(f,h,d){let p=f[h];for(let g=1;g<d;g++)p+=1+f[h+g];return p}function c(f,h){return f+h+1}let a=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];return di.exports=s,di.exports.ColSpanCell=i,di.exports.RowSpanCell=r,di.exports}var s1;function sI(){if(s1)return Zu.exports;s1=1;const{warn:e,debug:t}=Om(),n=iI(),{ColSpanCell:s,RowSpanCell:i}=n;(function(){function o(y,E){return y[E]>0?o(y,E+1):E}function l(y){let E={};y.forEach(function(b,w){let S=0;b.forEach(function(C){C.y=w,C.x=w?o(E,S):S;const T=C.rowSpan||1,L=C.colSpan||1;if(T>1)for(let k=0;k<L;k++)E[C.x+k]=T;S=C.x+L}),Object.keys(E).forEach(C=>{E[C]--,E[C]<1&&delete E[C]})})}function u(y){let E=0;return y.forEach(function(b){b.forEach(function(w){E=Math.max(E,w.x+(w.colSpan||1))})}),E}function c(y){return y.length}function a(y,E){let b=y.y,w=y.y-1+(y.rowSpan||1),S=E.y,C=E.y-1+(E.rowSpan||1),T=!(b>C||S>w),L=y.x,k=y.x-1+(y.colSpan||1),$=E.x,H=E.x-1+(E.colSpan||1),B=!(L>H||$>k);return T&&B}function f(y,E,b){let w=Math.min(y.length-1,b),S={x:E,y:b};for(let C=0;C<=w;C++){let T=y[C];for(let L=0;L<T.length;L++)if(a(S,T[L]))return!0}return!1}function h(y,E,b,w){for(let S=b;S<w;S++)if(f(y,S,E))return!1;return!0}function d(y){y.forEach(function(E,b){E.forEach(function(w){for(let S=1;S<w.rowSpan;S++){let C=new i(w);C.x=w.x,C.y=w.y+S,C.colSpan=w.colSpan,g(C,y[b+S])}})})}function p(y){for(let E=y.length-1;E>=0;E--){let b=y[E];for(let w=0;w<b.length;w++){let S=b[w];for(let C=1;C<S.colSpan;C++){let T=new s;T.x=S.x+C,T.y=S.y,b.splice(w+1,0,T)}}}}function g(y,E){let b=0;for(;b<E.length&&E[b].x<y.x;)b++;E.splice(b,0,y)}function m(y){let E=c(y),b=u(y);t(`Max rows: ${E}; Max cols: ${b}`);for(let w=0;w<E;w++)for(let S=0;S<b;S++)if(!f(y,S,w)){let C={x:S,y:w,colSpan:1,rowSpan:1};for(S++;S<b&&!f(y,S,w);)C.colSpan++,S++;let T=w+1;for(;T<E&&h(y,T,C.x,C.x+C.colSpan);)C.rowSpan++,T++;let L=new n(C);L.x=C.x,L.y=C.y,e(`Missing cell at ${L.y}-${L.x}.`),g(L,y[w])}}function v(y){return y.map(function(E){if(!Array.isArray(E)){let b=Object.keys(E)[0];E=E[b],Array.isArray(E)?(E=E.slice(),E.unshift(b)):E=[b,E]}return E.map(function(b){return new n(b)})})}function _(y){let E=v(y);return l(E),m(E),d(E),p(E),E}Zu.exports={makeTableLayout:_,layoutTable:l,addRowSpanCells:d,maxWidth:u,fillInTable:m,computeWidths:r("colSpan","desiredWidth","x",1),computeHeights:r("rowSpan","desiredHeight","y",1)}})();function r(o,l,u,c){return function(a,f){let h=[],d=[],p={};f.forEach(function(g){g.forEach(function(m){(m[o]||1)>1?d.push(m):h[m[u]]=Math.max(h[m[u]]||0,m[l]||0,c)})}),a.forEach(function(g,m){typeof g=="number"&&(h[m]=g)});for(let g=d.length-1;g>=0;g--){let m=d[g],v=m[o],_=m[u],y=h[_],E=typeof a[_]=="number"?0:1;if(typeof y=="number")for(let b=1;b<v;b++)y+=1+h[_+b],typeof a[_+b]!="number"&&E++;else y=l==="desiredWidth"?m.desiredWidth-1:1,(!p[_]||p[_]<y)&&(p[_]=y);if(m[l]>y){let b=0;for(;E>0&&m[l]>y;){if(typeof a[_+b]!="number"){let w=Math.round((m[l]-y)/E);y+=w,h[_+b]+=w,E--}b++}}}Object.assign(a,h,p);for(let g=0;g<a.length;g++)a[g]=Math.max(c,a[g]||0)}}return Zu.exports}var uc,o1;function oI(){if(o1)return uc;o1=1;const e=Om(),t=BC(),n=sI();class s extends Array{constructor(o){super();const l=t.mergeOptions(o);if(Object.defineProperty(this,"options",{value:l,enumerable:l.debug}),l.debug){switch(typeof l.debug){case"boolean":e.setDebugLevel(e.WARN);break;case"number":e.setDebugLevel(l.debug);break;case"string":e.setDebugLevel(parseInt(l.debug,10));break;default:e.setDebugLevel(e.WARN),e.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof l.debug}`)}Object.defineProperty(this,"messages",{get(){return e.debugMessages()}})}}toString(){let o=this,l=this.options.head&&this.options.head.length;l?(o=[this.options.head],this.length&&o.push.apply(o,this)):this.options.style.head=[];let u=n.makeTableLayout(o);u.forEach(function(a){a.forEach(function(f){f.mergeTableOptions(this.options,u)},this)},this),n.computeWidths(this.options.colWidths,u),n.computeHeights(this.options.rowHeights,u),u.forEach(function(a){a.forEach(function(f){f.init(this.options)},this)},this);let c=[];for(let a=0;a<u.length;a++){let f=u[a],h=this.options.rowHeights[a];(a===0||!this.options.style.compact||a==1&&l)&&i(f,"top",c);for(let d=0;d<h;d++)i(f,d,c);a+1==u.length&&i(f,"bottom",c)}return c.join(`
|
|
53
53
|
`)}get width(){return this.toString().split(`
|
|
54
|
-
`)[0].length}}s.reset=()=>e.reset();function i(r,o,l){let u=[];r.forEach(function(a){u.push(a.draw(o))});let c=u.join("");c.length&&l.push(c)}return uc=s,uc}var cc,av;function aI(){return av||(av=1,cc=oI()),cc}var uI=aI();const xm=ft(uI);function ot(e,t,n={}){const s=Array.isArray(e);return t=t||(i=>({[i]:!0})),Object.entries(e||{}).forEach(([i,r],o)=>{const l=s?t(r,o,n):t(i,r,n);Object.entries(l||{}).forEach(u=>{n[u[0]]=u[1]})}),n}const MC={blue:!0,bold:!0,cyan:!0,gray:!0,green:!0,magenta:!0,red:!0,yellow:!0},cI=ot(MC,e=>({[e]:t=>t.toString()}));let ta;const Fm=async e=>{const t=await Promise.resolve().then(()=>require("./index-Bl96b__P.js")),{default:n,Chalk:s}=t;ta=e===!0?new s({level:1}):e===null?cI:n},uv=()=>{if(!ta)throw new Error("Chalk has not been imported yet. Chalk is a dynamic import and requires that you await { chalkInit } from './lib/chalk'.")},me=ot(MC,e=>{const t=s=>(uv(),ta[e].bold(s)),n=s=>(uv(),ta[e](s));return n.bold=t,{[e]:n}}),vn=(e,t)=>ot(e,(n,s)=>t(n,s)?{[n]:s}:null),Qi=e=>Ve.stat(e).then(()=>!0,()=>!1);async function Im(e,{pkgFile:t}={}){const n=require.resolve.paths(e)||[],s=t?[Be.join(Be.dirname(t),"node_modules")]:[],i=[Be.join(process.cwd(),"node_modules")],r=[...s,...i,...n];for(const o of r){const l=Be.join(o,e,"package.json");if(await Qi(l))try{return JSON.parse(await Ve.readFile(l,"utf-8"))}catch{}}return null}async function lI(e,t,{pkgFile:n}={}){return(await Im(e,{pkgFile:n}))?.version??null}var pi={},cv;function ls(){if(cv)return pi;cv=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,t=new Set,n=typeof process=="object"&&process?process:{},s=(h,d,p,g)=>{typeof n.emitWarning=="function"?n.emitWarning(h,d,p,g):console.error(`[${p}] ${d}: ${h}`)},i=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof i>"u"){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,g){this._onabort.push(g)}},i=class{constructor(){d()}signal=new r;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let g of this.signal._onabort)g(p);this.signal.onabort?.(p)}}};let h=n.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",d=()=>{h&&(h=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",d))}}var o=h=>!t.has(h),l=h=>h&&h===Math.floor(h)&&h>0&&isFinite(h),u=h=>l(h)?h<=Math.pow(2,8)?Uint8Array:h<=Math.pow(2,16)?Uint16Array:h<=Math.pow(2,32)?Uint32Array:h<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(h){super(h),this.fill(0)}},a=class zi{heap;length;static#e=!1;static create(d){let p=u(d);if(!p)return[];zi.#e=!0;let g=new zi(d,p);return zi.#e=!1,g}constructor(d,p){if(!zi.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new p(d),this.length=0}push(d){this.heap[this.length++]=d}pop(){return this.heap[--this.length]}},f=class qC{#e;#t;#r;#i;#o;#l;#d;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#p;#h;#u;#n;#y;#_;#v;#g;#R;#m;#S;#A;#E;#b;#D;#T;#s;#k;static unsafeExposeInternals(d){return{starts:d.#A,ttls:d.#E,autopurgeTimers:d.#b,sizes:d.#S,keyMap:d.#h,keyList:d.#u,valList:d.#n,next:d.#y,prev:d.#_,get head(){return d.#v},get tail(){return d.#g},free:d.#R,isBackgroundFetch:p=>d.#c(p),backgroundFetch:(p,g,m,v)=>d.#U(p,g,m,v),moveToTail:p=>d.#L(p),indexes:p=>d.#O(p),rindexes:p=>d.#x(p),isStale:p=>d.#w(p)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#a}get fetchMethod(){return this.#l}get memoMethod(){return this.#d}get dispose(){return this.#r}get onInsert(){return this.#i}get disposeAfter(){return this.#o}constructor(d){let{max:p=0,ttl:g,ttlResolution:m=1,ttlAutopurge:v,updateAgeOnGet:_,updateAgeOnHas:y,allowStale:E,dispose:b,onInsert:w,disposeAfter:S,noDisposeOnSet:C,noUpdateTTL:T,maxSize:L=0,maxEntrySize:k=0,sizeCalculation:$,fetchMethod:H,memoMethod:B,noDeleteOnFetchRejection:Y,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:I,allowStaleOnFetchAbort:O,ignoreFetchAbort:j,perf:P}=d;if(P!==void 0&&typeof P?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=P??e,p!==0&&!l(p))throw new TypeError("max option must be a nonnegative integer");let R=p?u(p):Array;if(!R)throw new Error("invalid max value: "+p);if(this.#e=p,this.#t=L,this.maxEntrySize=k||this.#t,this.sizeCalculation=$,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(B!==void 0&&typeof B!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#d=B,H!==void 0&&typeof H!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#l=H,this.#T=!!H,this.#h=new Map,this.#u=new Array(p).fill(void 0),this.#n=new Array(p).fill(void 0),this.#y=new R(p),this.#_=new R(p),this.#v=0,this.#g=0,this.#R=a.create(p),this.#a=0,this.#p=0,typeof b=="function"&&(this.#r=b),typeof w=="function"&&(this.#i=w),typeof S=="function"?(this.#o=S,this.#m=[]):(this.#o=void 0,this.#m=void 0),this.#D=!!this.#r,this.#k=!!this.#i,this.#s=!!this.#o,this.noDisposeOnSet=!!C,this.noUpdateTTL=!!T,this.noDeleteOnFetchRejection=!!Y,this.allowStaleOnFetchRejection=!!I,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(this.#t!==0&&!l(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#G()}if(this.allowStale=!!E,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!_,this.updateAgeOnHas=!!y,this.ttlResolution=l(m)||m===0?m:1,this.ttlAutopurge=!!v,this.ttl=g||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let F="LRU_CACHE_UNBOUNDED";o(F)&&(t.add(F),s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",F,qC))}}getRemainingTTL(d){return this.#h.has(d)?1/0:0}#N(){let d=new c(this.#e),p=new c(this.#e);this.#E=d,this.#A=p;let g=this.ttlAutopurge?new Array(this.#e):void 0;this.#b=g,this.#B=(y,E,b=this.#f.now())=>{p[y]=E!==0?b:0,d[y]=E,m(y,E)},this.#F=y=>{p[y]=d[y]!==0?this.#f.now():0,m(y,d[y])};let m=this.ttlAutopurge?(y,E)=>{if(g?.[y]&&(clearTimeout(g[y]),g[y]=void 0),E&&E!==0&&g){let b=setTimeout(()=>{this.#w(y)&&this.#C(this.#u[y],"expire")},E+1);b.unref&&b.unref(),g[y]=b}}:()=>{};this.#I=(y,E)=>{if(d[E]){let b=d[E],w=p[E];if(!b||!w)return;y.ttl=b,y.start=w,y.now=v||_();let S=y.now-w;y.remainingTTL=b-S}};let v=0,_=()=>{let y=this.#f.now();if(this.ttlResolution>0){v=y;let E=setTimeout(()=>v=0,this.ttlResolution);E.unref&&E.unref()}return y};this.getRemainingTTL=y=>{let E=this.#h.get(y);if(E===void 0)return 0;let b=d[E],w=p[E];if(!b||!w)return 1/0;let S=(v||_())-w;return b-S},this.#w=y=>{let E=p[y],b=d[y];return!!b&&!!E&&(v||_())-E>b}}#F=()=>{};#I=()=>{};#B=()=>{};#w=()=>!1;#G(){let d=new c(this.#e);this.#p=0,this.#S=d,this.#P=p=>{this.#p-=d[p],d[p]=0},this.#M=(p,g,m,v)=>{if(this.#c(g))return 0;if(!l(m))if(v){if(typeof v!="function")throw new TypeError("sizeCalculation must be a function");if(m=v(g,p),!l(m))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return m},this.#$=(p,g,m)=>{if(d[p]=g,this.#t){let v=this.#t-d[p];for(;this.#p>v;)this.#j(!0)}this.#p+=d[p],m&&(m.entrySize=g,m.totalCalculatedSize=this.#p)}}#P=d=>{};#$=(d,p,g)=>{};#M=(d,p,g,m)=>{if(g||m)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:d=this.allowStale}={}){if(this.#a)for(let p=this.#g;!(!this.#q(p)||((d||!this.#w(p))&&(yield p),p===this.#v));)p=this.#_[p]}*#x({allowStale:d=this.allowStale}={}){if(this.#a)for(let p=this.#v;!(!this.#q(p)||((d||!this.#w(p))&&(yield p),p===this.#g));)p=this.#y[p]}#q(d){return d!==void 0&&this.#h.get(this.#u[d])===d}*entries(){for(let d of this.#O())this.#n[d]!==void 0&&this.#u[d]!==void 0&&!this.#c(this.#n[d])&&(yield[this.#u[d],this.#n[d]])}*rentries(){for(let d of this.#x())this.#n[d]!==void 0&&this.#u[d]!==void 0&&!this.#c(this.#n[d])&&(yield[this.#u[d],this.#n[d]])}*keys(){for(let d of this.#O()){let p=this.#u[d];p!==void 0&&!this.#c(this.#n[d])&&(yield p)}}*rkeys(){for(let d of this.#x()){let p=this.#u[d];p!==void 0&&!this.#c(this.#n[d])&&(yield p)}}*values(){for(let d of this.#O())this.#n[d]!==void 0&&!this.#c(this.#n[d])&&(yield this.#n[d])}*rvalues(){for(let d of this.#x())this.#n[d]!==void 0&&!this.#c(this.#n[d])&&(yield this.#n[d])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(d,p={}){for(let g of this.#O()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;if(v!==void 0&&d(v,this.#u[g],this))return this.get(this.#u[g],p)}}forEach(d,p=this){for(let g of this.#O()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;v!==void 0&&d.call(p,v,this.#u[g],this)}}rforEach(d,p=this){for(let g of this.#x()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;v!==void 0&&d.call(p,v,this.#u[g],this)}}purgeStale(){let d=!1;for(let p of this.#x({allowStale:!0}))this.#w(p)&&(this.#C(this.#u[p],"expire"),d=!0);return d}info(d){let p=this.#h.get(d);if(p===void 0)return;let g=this.#n[p],m=this.#c(g)?g.__staleWhileFetching:g;if(m===void 0)return;let v={value:m};if(this.#E&&this.#A){let _=this.#E[p],y=this.#A[p];if(_&&y){let E=_-(this.#f.now()-y);v.ttl=E,v.start=Date.now()}}return this.#S&&(v.size=this.#S[p]),v}dump(){let d=[];for(let p of this.#O({allowStale:!0})){let g=this.#u[p],m=this.#n[p],v=this.#c(m)?m.__staleWhileFetching:m;if(v===void 0||g===void 0)continue;let _={value:v};if(this.#E&&this.#A){_.ttl=this.#E[p];let y=this.#f.now()-this.#A[p];_.start=Math.floor(Date.now()-y)}this.#S&&(_.size=this.#S[p]),d.unshift([g,_])}return d}load(d){this.clear();for(let[p,g]of d){if(g.start){let m=Date.now()-g.start;g.start=this.#f.now()-m}this.set(p,g.value,g)}}set(d,p,g={}){if(p===void 0)return this.delete(d),this;let{ttl:m=this.ttl,start:v,noDisposeOnSet:_=this.noDisposeOnSet,sizeCalculation:y=this.sizeCalculation,status:E}=g,{noUpdateTTL:b=this.noUpdateTTL}=g,w=this.#M(d,p,g.size||0,y);if(this.maxEntrySize&&w>this.maxEntrySize)return E&&(E.set="miss",E.maxEntrySizeExceeded=!0),this.#C(d,"set"),this;let S=this.#a===0?void 0:this.#h.get(d);if(S===void 0)S=this.#a===0?this.#g:this.#R.length!==0?this.#R.pop():this.#a===this.#e?this.#j(!1):this.#a,this.#u[S]=d,this.#n[S]=p,this.#h.set(d,S),this.#y[this.#g]=S,this.#_[S]=this.#g,this.#g=S,this.#a++,this.#$(S,w,E),E&&(E.set="add"),b=!1,this.#k&&this.#i?.(p,d,"add");else{this.#L(S);let C=this.#n[S];if(p!==C){if(this.#T&&this.#c(C)){C.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:T}=C;T!==void 0&&!_&&(this.#D&&this.#r?.(T,d,"set"),this.#s&&this.#m?.push([T,d,"set"]))}else _||(this.#D&&this.#r?.(C,d,"set"),this.#s&&this.#m?.push([C,d,"set"]));if(this.#P(S),this.#$(S,w,E),this.#n[S]=p,E){E.set="replace";let T=C&&this.#c(C)?C.__staleWhileFetching:C;T!==void 0&&(E.oldValue=T)}}else E&&(E.set="update");this.#k&&this.onInsert?.(p,d,p===C?"update":"replace")}if(m!==0&&!this.#E&&this.#N(),this.#E&&(b||this.#B(S,m,v),E&&this.#I(E,S)),!_&&this.#s&&this.#m){let C=this.#m,T;for(;T=C?.shift();)this.#o?.(...T)}return this}pop(){try{for(;this.#a;){let d=this.#n[this.#v];if(this.#j(!0),this.#c(d)){if(d.__staleWhileFetching)return d.__staleWhileFetching}else if(d!==void 0)return d}}finally{if(this.#s&&this.#m){let d=this.#m,p;for(;p=d?.shift();)this.#o?.(...p)}}}#j(d){let p=this.#v,g=this.#u[p],m=this.#n[p];return this.#T&&this.#c(m)?m.__abortController.abort(new Error("evicted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(m,g,"evict"),this.#s&&this.#m?.push([m,g,"evict"])),this.#P(p),this.#b?.[p]&&(clearTimeout(this.#b[p]),this.#b[p]=void 0),d&&(this.#u[p]=void 0,this.#n[p]=void 0,this.#R.push(p)),this.#a===1?(this.#v=this.#g=0,this.#R.length=0):this.#v=this.#y[p],this.#h.delete(g),this.#a--,p}has(d,p={}){let{updateAgeOnHas:g=this.updateAgeOnHas,status:m}=p,v=this.#h.get(d);if(v!==void 0){let _=this.#n[v];if(this.#c(_)&&_.__staleWhileFetching===void 0)return!1;if(this.#w(v))m&&(m.has="stale",this.#I(m,v));else return g&&this.#F(v),m&&(m.has="hit",this.#I(m,v)),!0}else m&&(m.has="miss");return!1}peek(d,p={}){let{allowStale:g=this.allowStale}=p,m=this.#h.get(d);if(m===void 0||!g&&this.#w(m))return;let v=this.#n[m];return this.#c(v)?v.__staleWhileFetching:v}#U(d,p,g,m){let v=p===void 0?void 0:this.#n[p];if(this.#c(v))return v;let _=new i,{signal:y}=g;y?.addEventListener("abort",()=>_.abort(y.reason),{signal:_.signal});let E={signal:_.signal,options:g,context:m},b=(k,$=!1)=>{let{aborted:H}=_.signal,B=g.ignoreFetchAbort&&k!==void 0,Y=g.ignoreFetchAbort||!!(g.allowStaleOnFetchAbort&&k!==void 0);if(g.status&&(H&&!$?(g.status.fetchAborted=!0,g.status.fetchError=_.signal.reason,B&&(g.status.fetchAbortIgnored=!0)):g.status.fetchResolved=!0),H&&!B&&!$)return S(_.signal.reason,Y);let x=T,I=this.#n[p];return(I===T||B&&$&&I===void 0)&&(k===void 0?x.__staleWhileFetching!==void 0?this.#n[p]=x.__staleWhileFetching:this.#C(d,"fetch"):(g.status&&(g.status.fetchUpdated=!0),this.set(d,k,E.options))),k},w=k=>(g.status&&(g.status.fetchRejected=!0,g.status.fetchError=k),S(k,!1)),S=(k,$)=>{let{aborted:H}=_.signal,B=H&&g.allowStaleOnFetchAbort,Y=B||g.allowStaleOnFetchRejection,x=Y||g.noDeleteOnFetchRejection,I=T;if(this.#n[p]===T&&(!x||!$&&I.__staleWhileFetching===void 0?this.#C(d,"fetch"):B||(this.#n[p]=I.__staleWhileFetching)),Y)return g.status&&I.__staleWhileFetching!==void 0&&(g.status.returnedStale=!0),I.__staleWhileFetching;if(I.__returned===I)throw k},C=(k,$)=>{let H=this.#l?.(d,v,E);H&&H instanceof Promise&&H.then(B=>k(B===void 0?void 0:B),$),_.signal.addEventListener("abort",()=>{(!g.ignoreFetchAbort||g.allowStaleOnFetchAbort)&&(k(void 0),g.allowStaleOnFetchAbort&&(k=B=>b(B,!0)))})};g.status&&(g.status.fetchDispatched=!0);let T=new Promise(C).then(b,w),L=Object.assign(T,{__abortController:_,__staleWhileFetching:v,__returned:void 0});return p===void 0?(this.set(d,L,{...E.options,status:void 0}),p=this.#h.get(d)):this.#n[p]=L,L}#c(d){if(!this.#T)return!1;let p=d;return!!p&&p instanceof Promise&&p.hasOwnProperty("__staleWhileFetching")&&p.__abortController instanceof i}async fetch(d,p={}){let{allowStale:g=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:v=this.noDeleteOnStaleGet,ttl:_=this.ttl,noDisposeOnSet:y=this.noDisposeOnSet,size:E=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:S=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:C=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:L=this.allowStaleOnFetchAbort,context:k,forceRefresh:$=!1,status:H,signal:B}=p;if(!this.#T)return H&&(H.fetch="get"),this.get(d,{allowStale:g,updateAgeOnGet:m,noDeleteOnStaleGet:v,status:H});let Y={allowStale:g,updateAgeOnGet:m,noDeleteOnStaleGet:v,ttl:_,noDisposeOnSet:y,size:E,sizeCalculation:b,noUpdateTTL:w,noDeleteOnFetchRejection:S,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:L,ignoreFetchAbort:T,status:H,signal:B},x=this.#h.get(d);if(x===void 0){H&&(H.fetch="miss");let I=this.#U(d,x,Y,k);return I.__returned=I}else{let I=this.#n[x];if(this.#c(I)){let R=g&&I.__staleWhileFetching!==void 0;return H&&(H.fetch="inflight",R&&(H.returnedStale=!0)),R?I.__staleWhileFetching:I.__returned=I}let O=this.#w(x);if(!$&&!O)return H&&(H.fetch="hit"),this.#L(x),m&&this.#F(x),H&&this.#I(H,x),I;let j=this.#U(d,x,Y,k),P=j.__staleWhileFetching!==void 0&&g;return H&&(H.fetch=O?"stale":"refresh",P&&O&&(H.returnedStale=!0)),P?j.__staleWhileFetching:j.__returned=j}}async forceFetch(d,p={}){let g=await this.fetch(d,p);if(g===void 0)throw new Error("fetch() returned undefined");return g}memo(d,p={}){let g=this.#d;if(!g)throw new Error("no memoMethod provided to constructor");let{context:m,forceRefresh:v,..._}=p,y=this.get(d,_);if(!v&&y!==void 0)return y;let E=g(d,y,{options:_,context:m});return this.set(d,E,_),E}get(d,p={}){let{allowStale:g=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:v=this.noDeleteOnStaleGet,status:_}=p,y=this.#h.get(d);if(y!==void 0){let E=this.#n[y],b=this.#c(E);return _&&this.#I(_,y),this.#w(y)?(_&&(_.get="stale"),b?(_&&g&&E.__staleWhileFetching!==void 0&&(_.returnedStale=!0),g?E.__staleWhileFetching:void 0):(v||this.#C(d,"expire"),_&&g&&(_.returnedStale=!0),g?E:void 0)):(_&&(_.get="hit"),b?E.__staleWhileFetching:(this.#L(y),m&&this.#F(y),E))}else _&&(_.get="miss")}#H(d,p){this.#_[p]=d,this.#y[d]=p}#L(d){d!==this.#g&&(d===this.#v?this.#v=this.#y[d]:this.#H(this.#_[d],this.#y[d]),this.#H(this.#g,d),this.#g=d)}delete(d){return this.#C(d,"delete")}#C(d,p){let g=!1;if(this.#a!==0){let m=this.#h.get(d);if(m!==void 0)if(this.#b?.[m]&&(clearTimeout(this.#b?.[m]),this.#b[m]=void 0),g=!0,this.#a===1)this.#z(p);else{this.#P(m);let v=this.#n[m];if(this.#c(v)?v.__abortController.abort(new Error("deleted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(v,d,p),this.#s&&this.#m?.push([v,d,p])),this.#h.delete(d),this.#u[m]=void 0,this.#n[m]=void 0,m===this.#g)this.#g=this.#_[m];else if(m===this.#v)this.#v=this.#y[m];else{let _=this.#_[m];this.#y[_]=this.#y[m];let y=this.#y[m];this.#_[y]=this.#_[m]}this.#a--,this.#R.push(m)}}if(this.#s&&this.#m?.length){let m=this.#m,v;for(;v=m?.shift();)this.#o?.(...v)}return g}clear(){return this.#z("delete")}#z(d){for(let p of this.#x({allowStale:!0})){let g=this.#n[p];if(this.#c(g))g.__abortController.abort(new Error("deleted"));else{let m=this.#u[p];this.#D&&this.#r?.(g,m,d),this.#s&&this.#m?.push([g,m,d])}}if(this.#h.clear(),this.#n.fill(void 0),this.#u.fill(void 0),this.#E&&this.#A){this.#E.fill(0),this.#A.fill(0);for(let p of this.#b??[])p!==void 0&&clearTimeout(p);this.#b?.fill(void 0)}if(this.#S&&this.#S.fill(0),this.#v=0,this.#g=0,this.#R.length=0,this.#p=0,this.#a=0,this.#s&&this.#m){let p=this.#m,g;for(;g=p?.shift();)this.#o?.(...g)}}};return pi.LRUCache=f,pi}var lc,lv;function fI(){if(lv)return lc;lv=1;const e=(...r)=>r.every(o=>o)?r.join(""):"",t=r=>r?encodeURIComponent(r):"",n=r=>r.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),s={sshtemplate:({domain:r,user:o,project:l,committish:u})=>`git@${r}:${o}/${l}.git${e("#",u)}`,sshurltemplate:({domain:r,user:o,project:l,committish:u})=>`git+ssh://git@${r}/${o}/${l}.git${e("#",u)}`,edittemplate:({domain:r,user:o,project:l,committish:u,editpath:c,path:a})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u||"HEAD"),"/",a)}`,browsetemplate:({domain:r,user:o,project:l,committish:u,treepath:c})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u))}`,browsetreetemplate:({domain:r,user:o,project:l,committish:u,treepath:c,path:a,fragment:f,hashformat:h})=>`https://${r}/${o}/${l}/${c}/${t(u||"HEAD")}/${a}${e("#",h(f||""))}`,browseblobtemplate:({domain:r,user:o,project:l,committish:u,blobpath:c,path:a,fragment:f,hashformat:h})=>`https://${r}/${o}/${l}/${c}/${t(u||"HEAD")}/${a}${e("#",h(f||""))}`,docstemplate:({domain:r,user:o,project:l,treepath:u,committish:c})=>`https://${r}/${o}/${l}${e("/",u,"/",t(c))}#readme`,httpstemplate:({auth:r,domain:o,user:l,project:u,committish:c})=>`git+https://${e(r,"@")}${o}/${l}/${u}.git${e("#",c)}`,filetemplate:({domain:r,user:o,project:l,committish:u,path:c})=>`https://${r}/${o}/${l}/raw/${t(u||"HEAD")}/${c}`,shortcuttemplate:({type:r,user:o,project:l,committish:u})=>`${r}:${o}/${l}${e("#",u)}`,pathtemplate:({user:r,project:o,committish:l})=>`${r}/${o}${e("#",l)}`,bugstemplate:({domain:r,user:o,project:l})=>`https://${r}/${o}/${l}/issues`,hashformat:n},i={};i.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:r,user:o,project:l,committish:u,path:c})=>`https://${e(r,"@")}raw.githubusercontent.com/${o}/${l}/${t(u||"HEAD")}/${c}`,gittemplate:({auth:r,domain:o,user:l,project:u,committish:c})=>`git://${e(r,"@")}${o}/${l}/${u}.git${e("#",c)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://codeload.${r}/${o}/${l}/tar.gz/${t(u||"HEAD")}`,extract:r=>{let[,o,l,u,c]=r.pathname.split("/",5);if(!(u&&u!=="tree")&&(u||(c=r.hash.slice(1)),l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:c}}},i.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:r,user:o,project:l,committish:u,treepath:c,path:a,editpath:f})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u||"HEAD"),"/",a,f)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/get/${t(u||"HEAD")}.tar.gz`,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(!["get"].includes(u)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:r.hash.slice(1)}}},i.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/repository/archive.tar.gz?ref=${t(u||"HEAD")}`,extract:r=>{const o=r.pathname.slice(1);if(o.includes("/-/")||o.includes("/archive.tar.gz"))return;const l=o.split("/");let u=l.pop();u.endsWith(".git")&&(u=u.slice(0,-4));const c=l.join("/");if(!(!c||!u))return{user:c,project:u,committish:r.hash.slice(1)}}},i.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:r,project:o,committish:l})=>`git@${r}:${o}.git${e("#",l)}`,sshurltemplate:({domain:r,project:o,committish:l})=>`git+ssh://git@${r}/${o}.git${e("#",l)}`,edittemplate:({domain:r,user:o,project:l,committish:u,editpath:c})=>`https://${r}/${o}/${l}${e("/",t(u))}/${c}`,browsetemplate:({domain:r,project:o,committish:l})=>`https://${r}/${o}${e("/",t(l))}`,browsetreetemplate:({domain:r,project:o,committish:l,path:u,hashformat:c})=>`https://${r}/${o}${e("/",t(l))}${e("#",c(u))}`,browseblobtemplate:({domain:r,project:o,committish:l,path:u,hashformat:c})=>`https://${r}/${o}${e("/",t(l))}${e("#",c(u))}`,docstemplate:({domain:r,project:o,committish:l})=>`https://${r}/${o}${e("/",t(l))}`,httpstemplate:({domain:r,project:o,committish:l})=>`git+https://${r}/${o}.git${e("#",l)}`,filetemplate:({user:r,project:o,committish:l,path:u})=>`https://gist.githubusercontent.com/${r}/${o}/raw${e("/",t(l))}/${u}`,shortcuttemplate:({type:r,project:o,committish:l})=>`${r}:${o}${e("#",l)}`,pathtemplate:({project:r,committish:o})=>`${r}${e("#",o)}`,bugstemplate:({domain:r,project:o})=>`https://${r}/${o}`,gittemplate:({domain:r,project:o,committish:l})=>`git://${r}/${o}.git${e("#",l)}`,tarballtemplate:({project:r,committish:o})=>`https://codeload.github.com/gist/${r}/tar.gz/${t(o||"HEAD")}`,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(u!=="raw"){if(!l){if(!o)return;l=o,o=null}return l.endsWith(".git")&&(l=l.slice(0,-4)),{user:o,project:l,committish:r.hash.slice(1)}}},hashformat:function(r){return r&&"file-"+n(r)}},i.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:r,user:o,project:l,committish:u,path:c})=>`https://${r}/${o}/${l}/blob/${t(u)||"HEAD"}/${c}`,httpstemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}.git${e("#",u)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/archive/${t(u)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(!["archive"].includes(u)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:r.hash.slice(1)}}};for(const[r,o]of Object.entries(i))i[r]=Object.assign({},s,o);return lc=i,lc}var fc,fv;function jC(){if(fv)return fc;fv=1;const e=Ft,t=(r,o,l)=>{const u=r.indexOf(l);return r.lastIndexOf(o,u>-1?u:1/0)},n=r=>{try{return new e.URL(r)}catch{}},s=(r,o)=>{const l=r.indexOf(":"),u=r.slice(0,l+1);if(Object.prototype.hasOwnProperty.call(o,u)||r.substr(l,3)==="://")return r;const c=r.indexOf("@");return c>-1?c>l?`git+ssh://${r}`:r:`${r.slice(0,l+1)}//${r.slice(l+1)}`},i=r=>{const o=t(r,"@","#"),l=t(r,":","#");return l>o&&(r=r.slice(0,l)+"/"+r.slice(l+1)),t(r,":","#")===-1&&r.indexOf("//")===-1&&(r=`git+ssh://${r}`),r};return fc=(r,o)=>{const l=o?s(r,o):r;return n(l)||n(i(l))},fc}var hc,hv;function hI(){if(hv)return hc;hv=1;const e=jC(),t=n=>{const s=n.indexOf("#"),i=n.indexOf("/"),r=n.indexOf("/",i+1),o=n.indexOf(":"),l=/\s/.exec(n),u=n.indexOf("@"),c=!l||s>-1&&l.index>s,a=u===-1||s>-1&&u>s,f=o===-1||s>-1&&o>s,h=r===-1||s>-1&&r>s,d=i>0,p=s>-1?n[s-1]!=="/":!n.endsWith("/"),g=!n.startsWith(".");return c&&d&&p&&g&&a&&f&&h};return hc=(n,s,{gitHosts:i,protocols:r})=>{if(!n)return;const o=t(n)?`github:${n}`:n,l=e(o,r);if(!l)return;const u=i.byShortcut[l.protocol],c=i.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname],a=u||c;if(!a)return;const f=i[u||c];let h=null;r[l.protocol]?.auth&&(l.username||l.password)&&(h=`${l.username}${l.password?":"+l.password:""}`);let d=null,p=null,g=null,m=null;try{if(u){let v=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const _=v.indexOf("@");_>-1&&(v=v.slice(_+1));const y=v.lastIndexOf("/");y>-1?(p=decodeURIComponent(v.slice(0,y)),p||(p=null),g=decodeURIComponent(v.slice(y+1))):g=decodeURIComponent(v),g.endsWith(".git")&&(g=g.slice(0,-4)),l.hash&&(d=decodeURIComponent(l.hash.slice(1))),m="shortcut"}else{if(!f.protocols.includes(l.protocol))return;const v=f.extract(l);if(!v)return;p=v.user&&decodeURIComponent(v.user),g=decodeURIComponent(v.project),d=decodeURIComponent(v.committish),m=r[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(v){if(v instanceof URIError)return;throw v}return[a,p,h,g,d,m,s]},hc}var dc,dv;function UC(){if(dv)return dc;dv=1;const{LRUCache:e}=ls(),t=fI(),n=hI(),s=jC(),i=new e({max:1e3});function r(l){try{const{protocol:u,hostname:c,pathname:a}=new URL(l);if(!c)return null;const f=/(?:git\+)http:$/.test(u)?"http:":"https:",h=a.replace(/\.git$/,"");return`${f}//${c}${h}`}catch{return null}}class o{constructor(u,c,a,f,h,d,p={}){Object.assign(this,o.#e[u],{type:u,user:c,auth:a,project:f,committish:h,default:d,opts:p})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(u,c){o.#e[u]=c,o.#e.byDomain[c.domain]=u,o.#e.byShortcut[`${u}:`]=u,o.#t[`${u}:`]={name:u}}static fromUrl(u,c){if(typeof u!="string")return;const a=u+JSON.stringify(c||{});if(!i.has(a)){const f=n(u,c,{gitHosts:o.#e,protocols:o.#t});i.set(a,f?new o(...f):void 0)}return i.get(a)}static fromManifest(u,c={}){if(!u||typeof u!="object")return;const a=u.repository,f=a&&(typeof a=="string"?a:typeof a=="object"&&typeof a.url=="string"?a.url:null);if(!f)throw new Error("no repository");const h=f&&o.fromUrl(f.replace(/^git\+/,""),c)||null;if(h)return h;const d=r(f);return o.fromUrl(d,c)||d}static parseUrl(u){return s(u)}#r(u,c){if(typeof u!="function")return null;const a={...this,...this.opts,...c};a.path||(a.path=""),a.path.startsWith("/")&&(a.path=a.path.slice(1)),a.noCommittish&&(a.committish=null);const f=u(a);return a.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(u){return this.#r(this.sshtemplate,u)}sshurl(u){return this.#r(this.sshurltemplate,u)}browse(u,...c){return typeof u!="string"?this.#r(this.browsetemplate,u):typeof c[0]!="string"?this.#r(this.browsetreetemplate,{...c[0],path:u}):this.#r(this.browsetreetemplate,{...c[1],fragment:c[0],path:u})}browseFile(u,...c){return typeof c[0]!="string"?this.#r(this.browseblobtemplate,{...c[0],path:u}):this.#r(this.browseblobtemplate,{...c[1],fragment:c[0],path:u})}docs(u){return this.#r(this.docstemplate,u)}bugs(u){return this.#r(this.bugstemplate,u)}https(u){return this.#r(this.httpstemplate,u)}git(u){return this.#r(this.gittemplate,u)}shortcut(u){return this.#r(this.shortcuttemplate,u)}path(u){return this.#r(this.pathtemplate,u)}tarball(u){return this.#r(this.tarballtemplate,{...u,noCommittish:!1})}file(u,c){return this.#r(this.filetemplate,{...c,path:u})}edit(u,c){return this.#r(this.edittemplate,{...c,path:u})}getDefaultRepresentation(){return this.default}toString(u){return this.default&&typeof this[this.default]=="function"?this[this.default](u):this.sshurl(u)}}for(const[l,u]of Object.entries(t))o.addHost(l,u);return dc=o,dc}var dI=UC();const pI=ft(dI);async function gI(e,{pkgFile:t}={}){return(await Im(e,{pkgFile:t}))?.repository??null}async function mI(e,t,{pkgFile:n}={}){const s=await gI(e,{pkgFile:n});if(!s)return null;let i,r="";if(typeof s=="string"){i=s;try{const o=new Ft.URL(i);if(o.protocol==="https:"||o.protocol==="http:")return i}catch{}}else typeof s.url=="string"&&(i=s.url,typeof s.directory=="string"&&(r=s.directory));if(typeof i=="string"&&typeof r=="string"){const o=pI.fromUrl(i)?.browse(r);return o!==void 0?o.replace(/\/$/,"").replace(/\/tree\/HEAD$/,""):i}return null}var pc,pv;function yI(){if(pv)return pc;pv=1;var e=typeof $r=="object"&&$r&&$r.Object===Object&&$r;return pc=e,pc}var gc,gv;function Jr(){if(gv)return gc;gv=1;var e=yI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return gc=n,gc}var mc,mv;function _a(){if(mv)return mc;mv=1;var e=Jr(),t=e.Symbol;return mc=t,mc}var yc,yv;function vI(){if(yv)return yc;yv=1;function e(t,n){for(var s=-1,i=t==null?0:t.length,r=Array(i);++s<i;)r[s]=n(t[s],s,t);return r}return yc=e,yc}var vc,vv;function oi(){if(vv)return vc;vv=1;var e=Array.isArray;return vc=e,vc}var Ec,Ev;function EI(){if(Ev)return Ec;Ev=1;var e=_a(),t=Object.prototype,n=t.hasOwnProperty,s=t.toString,i=e?e.toStringTag:void 0;function r(o){var l=n.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var a=s.call(o);return c&&(l?o[i]=u:delete o[i]),a}return Ec=r,Ec}var bc,bv;function bI(){if(bv)return bc;bv=1;var e=Object.prototype,t=e.toString;function n(s){return t.call(s)}return bc=n,bc}var _c,_v;function Lm(){if(_v)return _c;_v=1;var e=_a(),t=EI(),n=bI(),s="[object Null]",i="[object Undefined]",r=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:s:r&&r in Object(l)?t(l):n(l)}return _c=o,_c}var wc,wv;function wa(){if(wv)return wc;wv=1;function e(t){return t!=null&&typeof t=="object"}return wc=e,wc}var Dc,Dv;function Da(){if(Dv)return Dc;Dv=1;var e=Lm(),t=wa(),n="[object Symbol]";function s(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Dc=s,Dc}var Sc,Sv;function _I(){if(Sv)return Sc;Sv=1;var e=_a(),t=vI(),n=oi(),s=Da(),i=e?e.prototype:void 0,r=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(s(l))return r?r.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return Sc=o,Sc}var Ac,Av;function HC(){if(Av)return Ac;Av=1;var e=_I();function t(n){return n==null?"":e(n)}return Ac=t,Ac}var Rc,Rv;function wI(){if(Rv)return Rc;Rv=1;var e=HC(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);function s(i){return i=e(i),i&&n.test(i)?i.replace(t,"\\$&"):i}return Rc=s,Rc}var DI=wI();const SI=ft(DI);var Cc,Cv;function AI(){if(Cv)return Cc;Cv=1;var e=oi(),t=Da(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function i(r,o){if(e(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||t(r)?!0:s.test(r)||!n.test(r)||o!=null&&r in Object(o)}return Cc=i,Cc}var Tc,Tv;function fs(){if(Tv)return Tc;Tv=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Tc=e,Tc}var Oc,Ov;function RI(){if(Ov)return Oc;Ov=1;var e=Lm(),t=fs(),n="[object AsyncFunction]",s="[object Function]",i="[object GeneratorFunction]",r="[object Proxy]";function o(l){if(!t(l))return!1;var u=e(l);return u==s||u==i||u==n||u==r}return Oc=o,Oc}var xc,xv;function CI(){if(xv)return xc;xv=1;var e=Jr(),t=e["__core-js_shared__"];return xc=t,xc}var Fc,Fv;function TI(){if(Fv)return Fc;Fv=1;var e=CI(),t=(function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function n(s){return!!t&&t in s}return Fc=n,Fc}var Ic,Iv;function OI(){if(Iv)return Ic;Iv=1;var e=Function.prototype,t=e.toString;function n(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return Ic=n,Ic}var Lc,Lv;function xI(){if(Lv)return Lc;Lv=1;var e=RI(),t=TI(),n=fs(),s=OI(),i=/[\\^$.*+?()[\]{}|]/g,r=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,c=l.hasOwnProperty,a=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!n(h)||t(h))return!1;var d=e(h)?a:r;return d.test(s(h))}return Lc=f,Lc}var kc,kv;function FI(){if(kv)return kc;kv=1;function e(t,n){return t?.[n]}return kc=e,kc}var Nc,Nv;function Sa(){if(Nv)return Nc;Nv=1;var e=xI(),t=FI();function n(s,i){var r=t(s,i);return e(r)?r:void 0}return Nc=n,Nc}var Pc,Pv;function Aa(){if(Pv)return Pc;Pv=1;var e=Sa(),t=e(Object,"create");return Pc=t,Pc}var $c,$v;function II(){if($v)return $c;$v=1;var e=Aa();function t(){this.__data__=e?e(null):{},this.size=0}return $c=t,$c}var Bc,Bv;function LI(){if(Bv)return Bc;Bv=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Bc=e,Bc}var Mc,Mv;function kI(){if(Mv)return Mc;Mv=1;var e=Aa(),t="__lodash_hash_undefined__",n=Object.prototype,s=n.hasOwnProperty;function i(r){var o=this.__data__;if(e){var l=o[r];return l===t?void 0:l}return s.call(o,r)?o[r]:void 0}return Mc=i,Mc}var qc,qv;function NI(){if(qv)return qc;qv=1;var e=Aa(),t=Object.prototype,n=t.hasOwnProperty;function s(i){var r=this.__data__;return e?r[i]!==void 0:n.call(r,i)}return qc=s,qc}var jc,jv;function PI(){if(jv)return jc;jv=1;var e=Aa(),t="__lodash_hash_undefined__";function n(s,i){var r=this.__data__;return this.size+=this.has(s)?0:1,r[s]=e&&i===void 0?t:i,this}return jc=n,jc}var Uc,Uv;function $I(){if(Uv)return Uc;Uv=1;var e=II(),t=LI(),n=kI(),s=NI(),i=PI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,Uc=r,Uc}var Hc,Hv;function BI(){if(Hv)return Hc;Hv=1;function e(){this.__data__=[],this.size=0}return Hc=e,Hc}var zc,zv;function MI(){if(zv)return zc;zv=1;function e(t,n){return t===n||t!==t&&n!==n}return zc=e,zc}var Gc,Gv;function Ra(){if(Gv)return Gc;Gv=1;var e=MI();function t(n,s){for(var i=n.length;i--;)if(e(n[i][0],s))return i;return-1}return Gc=t,Gc}var Wc,Wv;function qI(){if(Wv)return Wc;Wv=1;var e=Ra(),t=Array.prototype,n=t.splice;function s(i){var r=this.__data__,o=e(r,i);if(o<0)return!1;var l=r.length-1;return o==l?r.pop():n.call(r,o,1),--this.size,!0}return Wc=s,Wc}var Vc,Vv;function jI(){if(Vv)return Vc;Vv=1;var e=Ra();function t(n){var s=this.__data__,i=e(s,n);return i<0?void 0:s[i][1]}return Vc=t,Vc}var Yc,Yv;function UI(){if(Yv)return Yc;Yv=1;var e=Ra();function t(n){return e(this.__data__,n)>-1}return Yc=t,Yc}var Kc,Kv;function HI(){if(Kv)return Kc;Kv=1;var e=Ra();function t(n,s){var i=this.__data__,r=e(i,n);return r<0?(++this.size,i.push([n,s])):i[r][1]=s,this}return Kc=t,Kc}var Zc,Zv;function zI(){if(Zv)return Zc;Zv=1;var e=BI(),t=qI(),n=jI(),s=UI(),i=HI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,Zc=r,Zc}var Jc,Jv;function GI(){if(Jv)return Jc;Jv=1;var e=Sa(),t=Jr(),n=e(t,"Map");return Jc=n,Jc}var Xc,Xv;function WI(){if(Xv)return Xc;Xv=1;var e=$I(),t=zI(),n=GI();function s(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Xc=s,Xc}var Qc,Qv;function VI(){if(Qv)return Qc;Qv=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Qc=e,Qc}var el,e1;function Ca(){if(e1)return el;e1=1;var e=VI();function t(n,s){var i=n.__data__;return e(s)?i[typeof s=="string"?"string":"hash"]:i.map}return el=t,el}var tl,t1;function YI(){if(t1)return tl;t1=1;var e=Ca();function t(n){var s=e(this,n).delete(n);return this.size-=s?1:0,s}return tl=t,tl}var rl,r1;function KI(){if(r1)return rl;r1=1;var e=Ca();function t(n){return e(this,n).get(n)}return rl=t,rl}var nl,n1;function ZI(){if(n1)return nl;n1=1;var e=Ca();function t(n){return e(this,n).has(n)}return nl=t,nl}var il,i1;function JI(){if(i1)return il;i1=1;var e=Ca();function t(n,s){var i=e(this,n),r=i.size;return i.set(n,s),this.size+=i.size==r?0:1,this}return il=t,il}var sl,s1;function XI(){if(s1)return sl;s1=1;var e=WI(),t=YI(),n=KI(),s=ZI(),i=JI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,sl=r,sl}var ol,o1;function QI(){if(o1)return ol;o1=1;var e=XI(),t="Expected a function";function n(s,i){if(typeof s!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var r=function(){var o=arguments,l=i?i.apply(this,o):o[0],u=r.cache;if(u.has(l))return u.get(l);var c=s.apply(this,o);return r.cache=u.set(l,c)||u,c};return r.cache=new(n.Cache||e),r}return n.Cache=e,ol=n,ol}var al,a1;function eL(){if(a1)return al;a1=1;var e=QI(),t=500;function n(s){var i=e(s,function(o){return r.size===t&&r.clear(),o}),r=i.cache;return i}return al=n,al}var ul,u1;function tL(){if(u1)return ul;u1=1;var e=eL(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,s=e(function(i){var r=[];return i.charCodeAt(0)===46&&r.push(""),i.replace(t,function(o,l,u,c){r.push(u?c.replace(n,"$1"):l||o)}),r});return ul=s,ul}var cl,c1;function rL(){if(c1)return cl;c1=1;var e=oi(),t=AI(),n=tL(),s=HC();function i(r,o){return e(r)?r:t(r,o)?[r]:n(s(r))}return cl=i,cl}var ll,l1;function nL(){if(l1)return ll;l1=1;var e=Da();function t(n){if(typeof n=="string"||e(n))return n;var s=n+"";return s=="0"&&1/n==-1/0?"-0":s}return ll=t,ll}var fl,f1;function iL(){if(f1)return fl;f1=1;var e=rL(),t=nL();function n(s,i){i=e(i,s);for(var r=0,o=i.length;s!=null&&r<o;)s=s[t(i[r++])];return r&&r==o?s:void 0}return fl=n,fl}var hl,h1;function sL(){if(h1)return hl;h1=1;var e=iL();function t(n){return function(s){return n==null?void 0:e(n,s)}}return hl=t,hl}var oL=sL();const zC=ft(oL);var dl,d1;function aL(){if(d1)return dl;d1=1;var e=Ft,t=typeof URL>"u"?e.URL||null:URL,n=t?null:e.parse;function s(i){try{var r=new t(i),o=null;r.username&&(o=r.password?r.username+":"+r.password:r.username);var l=r.host||null,u=r.hostname||null,c=r.pathname||null,a=r.pathname+(r.search||"")||null;if(!l&&c&&i.indexOf("//")===-1){var f=c.indexOf("/");f===-1?(l=c,u=c,c=null,a=null):(l=c.slice(0,f),u=l,c=c.slice(f),a=c+(r.search||""))}return{auth:o,hash:r.hash||null,host:l,hostname:u,href:r.href,path:a,pathname:c,port:r.port||null,protocol:r.protocol||null,query:r.search?r.search.slice(1):null,search:r.search||null,slashes:i.indexOf("//")===-1?null:!0}}catch{var h=i.indexOf("#"),d=h===-1?null:i.slice(h),p=h===-1?i:i.slice(0,h),g=p.indexOf("?"),m=g===-1?null:p.slice(g),v=g===-1?p:p.slice(0,g);return{auth:null,hash:d,host:null,hostname:null,href:i,path:p||null,pathname:v||null,port:null,protocol:null,query:m?m.slice(1):null,search:m,slashes:null}}}return dl=t?s:n,dl}var pl,p1;function uL(){if(p1)return pl;p1=1;var e=aL(),t={__proto__:null};function n(c){return/^[a-f0-9]{40}$/i.test(c)}function s(c,a){var f=c.split("#"),h;return f.length>1&&(h=f[f.length-1]),!h&&a.hash&&a.hash.charAt(0)==="#"&&(h=a.hash.slice(1)),h||"master"}function i(c){return c.charAt(0)==="/"?c.slice(1):c}function r(c){return c?c.replace(/\.git$/,""):null}function o(c){if(!c)return null;var a=c.indexOf(":");return a>-1?c.slice(a+1):c}function l(c){var a="http://"+c.replace(/git@([^:]+):/,"$1/");return e(a).host||null}function u(c){if(typeof c!="string"||!c.length||c.indexOf("git@gist")!==-1||c.indexOf("//gist")!==-1)return null;var a=e(c);if(typeof a.path!="string"||!a.path.length||typeof a.pathname!="string"||!a.pathname.length)return null;!a.host&&/^git@/.test(c)===!0&&(a.host=l(c)),a.path=i(a.path),a.pathname=i(a.pathname),a.filepath=null,a.path.indexOf("repos")===0&&(a.path=a.path.slice(6));var f=a.path.split("/").filter(Boolean),h=f[2]==="blob";h&&!n(f[3])&&(a.branch=f[3],f.length>4&&(a.filepath=f.slice(4).join("/")));var d=c.indexOf("blob");h&&d!==-1&&(a.blob=c.slice(d+5));var p=f[2]==="tree",g=c.indexOf("tree");if(p&&g!==-1){var m=g+5,v=c.slice(m),_=v.indexOf("/");_!==-1&&(v=v.slice(0,_)),a.branch=v}if(a.owner=o(f[0]),a.name=r(f[1]),f.length>1&&a.owner&&a.name)a.repo=a.owner+"/"+a.name;else{var y=a.href.split(":");if(y.length===2&&a.href.indexOf("//")===-1){a.repo=a.repo||y[y.length-1];var E=a.repo.split("/");a.owner=E[0],a.name=E[1]}else{var b=a.href.match(/\/([^/]*)$/);a.owner=b?b[1]:null,a.repo=null}if(a.repo&&(!a.owner||!a.name)){var w=a.repo.split("/");w.length===2&&(a.owner=w[0],a.name=w[1])}}return a.branch||(a.branch=f[2]||s(a.path,a),f.length>3&&(a.filepath=f.slice(3).join("/"))),a.host=a.host||"github.com",a.owner=a.owner||null,a.name=a.name||null,a.repository=a.repo,a}return pl=function(a){return t[a]||(t[a]=u(a)),t[a]},pl}var cL=uL();const hs=ft(cL);var Ns={exports:{}},gl,g1;function Ta(){if(g1)return gl;g1=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,i=t-6;return gl={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},gl}var ml,m1;function Oa(){return m1||(m1=1,ml=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{}),ml}var y1;function ds(){return y1||(y1=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=Ta(),r=Oa();t=e.exports={};const o=t.re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],a=t.t={};let f=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,s]],p=m=>{for(const[v,_]of d)m=m.split(`${v}*`).join(`${v}{0,${_}}`).split(`${v}+`).join(`${v}{1,${_}}`);return m},g=(m,v,_)=>{const y=p(v),E=f++;r(m,E,v),a[m]=E,u[E]=v,c[E]=y,o[E]=new RegExp(v,_?"g":void 0),l[E]=new RegExp(y,_?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[a.NONNUMERICIDENTIFIER]}|${u[a.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[a.NONNUMERICIDENTIFIER]}|${u[a.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${u[a.PRERELEASEIDENTIFIER]}(?:\\.${u[a.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[a.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${u[a.BUILDIDENTIFIER]}(?:\\.${u[a.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[a.MAINVERSION]}${u[a.PRERELEASE]}?${u[a.BUILD]}?`),g("FULL",`^${u[a.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[a.MAINVERSIONLOOSE]}${u[a.PRERELEASELOOSE]}?${u[a.BUILD]}?`),g("LOOSE",`^${u[a.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[a.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:${u[a.PRERELEASE]})?${u[a.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:${u[a.PRERELEASELOOSE]})?${u[a.BUILD]}?)?)?`),g("XRANGE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${u[a.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[a.COERCEPLAIN]+`(?:${u[a.PRERELEASE]})?(?:${u[a.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",u[a.COERCE],!0),g("COERCERTLFULL",u[a.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${u[a.LONECARET]}${u[a.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[a.LONECARET]}${u[a.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[a.GTLT]}\\s*(${u[a.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]}|${u[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[a.XRANGEPLAIN]})\\s+-\\s+(${u[a.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[a.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ns,Ns.exports)),Ns.exports}var yl,v1;function km(){if(v1)return yl;v1=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return yl=s=>s?typeof s!="object"?e:s:t,yl}var vl,E1;function GC(){if(E1)return vl;E1=1;const e=/^[0-9]+$/,t=(s,i)=>{if(typeof s=="number"&&typeof i=="number")return s===i?0:s<i?-1:1;const r=e.test(s),o=e.test(i);return r&&o&&(s=+s,i=+i),s===i?0:r&&!o?-1:o&&!r?1:s<i?-1:1};return vl={compareIdentifiers:t,rcompareIdentifiers:(s,i)=>t(i,s)},vl}var El,b1;function Vt(){if(b1)return El;b1=1;const e=Oa(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ta(),{safeRe:s,t:i}=ds(),r=km(),{compareIdentifiers:o}=GC();class l{constructor(c,a){if(a=r(a),c instanceof l){if(c.loose===!!a.loose&&c.includePrerelease===!!a.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const f=c.trim().match(a.loose?s[i.LOOSE]:s[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const d=+h;if(d>=0&&d<n)return d}return h}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(e("SemVer.compare",this.version,this.options,c),!(c instanceof l)){if(typeof c=="string"&&c===this.version)return 0;c=new l(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof l||(c=new l(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof l||(c=new l(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let a=0;do{const f=this.prerelease[a],h=c.prerelease[a];if(e("prerelease compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return o(f,h)}while(++a)}compareBuild(c){c instanceof l||(c=new l(c,this.options));let a=0;do{const f=this.build[a],h=c.build[a];if(e("build compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return o(f,h)}while(++a)}inc(c,a,f){if(c.startsWith("pre")){if(!a&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(a){const h=`-${a}`.match(this.options.loose?s[i.PRERELEASELOOSE]:s[i.PRERELEASE]);if(!h||h[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,f),this.inc("pre",a,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,f),this.inc("pre",a,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let d=this.prerelease.length;for(;--d>=0;)typeof this.prerelease[d]=="number"&&(this.prerelease[d]++,d=-2);if(d===-1){if(a===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(a){let d=[a,h];f===!1&&(d=[a]),o(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return El=l,El}var bl,_1;function ai(){if(_1)return bl;_1=1;const e=Vt();return bl=(n,s,i=!1)=>{if(n instanceof e)return n;try{return new e(n,s)}catch(r){if(!i)return null;throw r}},bl}var _l,w1;function lL(){if(w1)return _l;w1=1;const e=ai();return _l=(n,s)=>{const i=e(n,s);return i?i.version:null},_l}var wl,D1;function fL(){if(D1)return wl;D1=1;const e=ai();return wl=(n,s)=>{const i=e(n.trim().replace(/^[=v]+/,""),s);return i?i.version:null},wl}var Dl,S1;function hL(){if(S1)return Dl;S1=1;const e=Vt();return Dl=(n,s,i,r,o)=>{typeof i=="string"&&(o=r,r=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(s,r,o).version}catch{return null}},Dl}var Sl,A1;function WC(){if(A1)return Sl;A1=1;const e=ai();return Sl=(n,s)=>{const i=e(n,null,!0),r=e(s,null,!0),o=i.compare(r);if(o===0)return null;const l=o>0,u=l?i:r,c=l?r:i,a=!!u.prerelease.length;if(!!c.prerelease.length&&!a){if(!c.patch&&!c.minor)return"major";if(c.compareMain(u)===0)return c.minor&&!c.patch?"minor":"patch"}const h=a?"pre":"";return i.major!==r.major?h+"major":i.minor!==r.minor?h+"minor":i.patch!==r.patch?h+"patch":"prerelease"},Sl}var Al,R1;function dL(){if(R1)return Al;R1=1;const e=Vt();return Al=(n,s)=>new e(n,s).major,Al}var Rl,C1;function pL(){if(C1)return Rl;C1=1;const e=Vt();return Rl=(n,s)=>new e(n,s).minor,Rl}var Cl,T1;function gL(){if(T1)return Cl;T1=1;const e=Vt();return Cl=(n,s)=>new e(n,s).patch,Cl}var Tl,O1;function mL(){if(O1)return Tl;O1=1;const e=ai();return Tl=(n,s)=>{const i=e(n,s);return i&&i.prerelease.length?i.prerelease:null},Tl}var Ol,x1;function br(){if(x1)return Ol;x1=1;const e=Vt();return Ol=(n,s,i)=>new e(n,i).compare(new e(s,i)),Ol}var xl,F1;function yL(){if(F1)return xl;F1=1;const e=br();return xl=(n,s,i)=>e(s,n,i),xl}var Fl,I1;function vL(){if(I1)return Fl;I1=1;const e=br();return Fl=(n,s)=>e(n,s,!0),Fl}var Il,L1;function Nm(){if(L1)return Il;L1=1;const e=Vt();return Il=(n,s,i)=>{const r=new e(n,i),o=new e(s,i);return r.compare(o)||r.compareBuild(o)},Il}var Ll,k1;function EL(){if(k1)return Ll;k1=1;const e=Nm();return Ll=(n,s)=>n.sort((i,r)=>e(i,r,s)),Ll}var kl,N1;function bL(){if(N1)return kl;N1=1;const e=Nm();return kl=(n,s)=>n.sort((i,r)=>e(r,i,s)),kl}var Nl,P1;function ps(){if(P1)return Nl;P1=1;const e=br();return Nl=(n,s,i)=>e(n,s,i)>0,Nl}var Pl,$1;function Pm(){if($1)return Pl;$1=1;const e=br();return Pl=(n,s,i)=>e(n,s,i)<0,Pl}var $l,B1;function VC(){if(B1)return $l;B1=1;const e=br();return $l=(n,s,i)=>e(n,s,i)===0,$l}var Bl,M1;function YC(){if(M1)return Bl;M1=1;const e=br();return Bl=(n,s,i)=>e(n,s,i)!==0,Bl}var Ml,q1;function $m(){if(q1)return Ml;q1=1;const e=br();return Ml=(n,s,i)=>e(n,s,i)>=0,Ml}var ql,j1;function Bm(){if(j1)return ql;j1=1;const e=br();return ql=(n,s,i)=>e(n,s,i)<=0,ql}var jl,U1;function KC(){if(U1)return jl;U1=1;const e=VC(),t=YC(),n=ps(),s=$m(),i=Pm(),r=Bm();return jl=(l,u,c,a)=>{switch(u){case"===":return typeof l=="object"&&(l=l.version),typeof c=="object"&&(c=c.version),l===c;case"!==":return typeof l=="object"&&(l=l.version),typeof c=="object"&&(c=c.version),l!==c;case"":case"=":case"==":return e(l,c,a);case"!=":return t(l,c,a);case">":return n(l,c,a);case">=":return s(l,c,a);case"<":return i(l,c,a);case"<=":return r(l,c,a);default:throw new TypeError(`Invalid operator: ${u}`)}},jl}var Ul,H1;function _L(){if(H1)return Ul;H1=1;const e=Vt(),t=ai(),{safeRe:n,t:s}=ds();return Ul=(r,o)=>{if(r instanceof e)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;o=o||{};let l=null;if(!o.rtl)l=r.match(o.includePrerelease?n[s.COERCEFULL]:n[s.COERCE]);else{const d=o.includePrerelease?n[s.COERCERTLFULL]:n[s.COERCERTL];let p;for(;(p=d.exec(r))&&(!l||l.index+l[0].length!==r.length);)(!l||p.index+p[0].length!==l.index+l[0].length)&&(l=p),d.lastIndex=p.index+p[1].length+p[2].length;d.lastIndex=-1}if(l===null)return null;const u=l[2],c=l[3]||"0",a=l[4]||"0",f=o.includePrerelease&&l[5]?`-${l[5]}`:"",h=o.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${u}.${c}.${a}${f}${h}`,o)},Ul}var Hl,z1;function wL(){if(z1)return Hl;z1=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const s=this.map.get(n);if(s!==void 0)return this.map.delete(n),this.map.set(n,s),s}delete(n){return this.map.delete(n)}set(n,s){if(!this.delete(n)&&s!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(n,s)}return this}}return Hl=e,Hl}var zl,G1;function _r(){if(G1)return zl;G1=1;const e=/\s+/g;class t{constructor(Y,x){if(x=i(x),Y instanceof t)return Y.loose===!!x.loose&&Y.includePrerelease===!!x.includePrerelease?Y:new t(Y.raw,x);if(Y instanceof r)return this.raw=Y.value,this.set=[[Y]],this.formatted=void 0,this;if(this.options=x,this.loose=!!x.loose,this.includePrerelease=!!x.includePrerelease,this.raw=Y.trim().replace(e," "),this.set=this.raw.split("||").map(I=>this.parseRange(I.trim())).filter(I=>I.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const I=this.set[0];if(this.set=this.set.filter(O=>!g(O[0])),this.set.length===0)this.set=[I];else if(this.set.length>1){for(const O of this.set)if(O.length===1&&m(O[0])){this.set=[O];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Y=0;Y<this.set.length;Y++){Y>0&&(this.formatted+="||");const x=this.set[Y];for(let I=0;I<x.length;I++)I>0&&(this.formatted+=" "),this.formatted+=x[I].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Y){const I=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+Y,O=s.get(I);if(O)return O;const j=this.options.loose,P=j?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];Y=Y.replace(P,$(this.options.includePrerelease)),o("hyphen replace",Y),Y=Y.replace(u[c.COMPARATORTRIM],a),o("comparator trim",Y),Y=Y.replace(u[c.TILDETRIM],f),o("tilde trim",Y),Y=Y.replace(u[c.CARETTRIM],h),o("caret trim",Y);let R=Y.split(" ").map(X=>_(X,this.options)).join(" ").split(/\s+/).map(X=>k(X,this.options));j&&(R=R.filter(X=>(o("loose invalid filter",X,this.options),!!X.match(u[c.COMPARATORLOOSE])))),o("range list",R);const F=new Map,V=R.map(X=>new r(X,this.options));for(const X of V){if(g(X))return[X];F.set(X.value,X)}F.size>1&&F.has("")&&F.delete("");const K=[...F.values()];return s.set(I,K),K}intersects(Y,x){if(!(Y instanceof t))throw new TypeError("a Range is required");return this.set.some(I=>v(I,x)&&Y.set.some(O=>v(O,x)&&I.every(j=>O.every(P=>j.intersects(P,x)))))}test(Y){if(!Y)return!1;if(typeof Y=="string")try{Y=new l(Y,this.options)}catch{return!1}for(let x=0;x<this.set.length;x++)if(H(this.set[x],Y,this.options))return!0;return!1}}zl=t;const n=wL(),s=new n,i=km(),r=xa(),o=Oa(),l=Vt(),{safeRe:u,t:c,comparatorTrimReplace:a,tildeTrimReplace:f,caretTrimReplace:h}=ds(),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=Ta(),g=B=>B.value==="<0.0.0-0",m=B=>B.value==="",v=(B,Y)=>{let x=!0;const I=B.slice();let O=I.pop();for(;x&&I.length;)x=I.every(j=>O.intersects(j,Y)),O=I.pop();return x},_=(B,Y)=>(B=B.replace(u[c.BUILD],""),o("comp",B,Y),B=w(B,Y),o("caret",B),B=E(B,Y),o("tildes",B),B=C(B,Y),o("xrange",B),B=L(B,Y),o("stars",B),B),y=B=>!B||B.toLowerCase()==="x"||B==="*",E=(B,Y)=>B.trim().split(/\s+/).map(x=>b(x,Y)).join(" "),b=(B,Y)=>{const x=Y.loose?u[c.TILDELOOSE]:u[c.TILDE];return B.replace(x,(I,O,j,P,R)=>{o("tilde",B,I,O,j,P,R);let F;return y(O)?F="":y(j)?F=`>=${O}.0.0 <${+O+1}.0.0-0`:y(P)?F=`>=${O}.${j}.0 <${O}.${+j+1}.0-0`:R?(o("replaceTilde pr",R),F=`>=${O}.${j}.${P}-${R} <${O}.${+j+1}.0-0`):F=`>=${O}.${j}.${P} <${O}.${+j+1}.0-0`,o("tilde return",F),F})},w=(B,Y)=>B.trim().split(/\s+/).map(x=>S(x,Y)).join(" "),S=(B,Y)=>{o("caret",B,Y);const x=Y.loose?u[c.CARETLOOSE]:u[c.CARET],I=Y.includePrerelease?"-0":"";return B.replace(x,(O,j,P,R,F)=>{o("caret",B,O,j,P,R,F);let V;return y(j)?V="":y(P)?V=`>=${j}.0.0${I} <${+j+1}.0.0-0`:y(R)?j==="0"?V=`>=${j}.${P}.0${I} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.0${I} <${+j+1}.0.0-0`:F?(o("replaceCaret pr",F),j==="0"?P==="0"?V=`>=${j}.${P}.${R}-${F} <${j}.${P}.${+R+1}-0`:V=`>=${j}.${P}.${R}-${F} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.${R}-${F} <${+j+1}.0.0-0`):(o("no pr"),j==="0"?P==="0"?V=`>=${j}.${P}.${R}${I} <${j}.${P}.${+R+1}-0`:V=`>=${j}.${P}.${R}${I} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.${R} <${+j+1}.0.0-0`),o("caret return",V),V})},C=(B,Y)=>(o("replaceXRanges",B,Y),B.split(/\s+/).map(x=>T(x,Y)).join(" ")),T=(B,Y)=>{B=B.trim();const x=Y.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return B.replace(x,(I,O,j,P,R,F)=>{o("xRange",B,I,O,j,P,R,F);const V=y(j),K=V||y(P),X=K||y(R),ce=X;return O==="="&&ce&&(O=""),F=Y.includePrerelease?"-0":"",V?O===">"||O==="<"?I="<0.0.0-0":I="*":O&&ce?(K&&(P=0),R=0,O===">"?(O=">=",K?(j=+j+1,P=0,R=0):(P=+P+1,R=0)):O==="<="&&(O="<",K?j=+j+1:P=+P+1),O==="<"&&(F="-0"),I=`${O+j}.${P}.${R}${F}`):K?I=`>=${j}.0.0${F} <${+j+1}.0.0-0`:X&&(I=`>=${j}.${P}.0${F} <${j}.${+P+1}.0-0`),o("xRange return",I),I})},L=(B,Y)=>(o("replaceStars",B,Y),B.trim().replace(u[c.STAR],"")),k=(B,Y)=>(o("replaceGTE0",B,Y),B.trim().replace(u[Y.includePrerelease?c.GTE0PRE:c.GTE0],"")),$=B=>(Y,x,I,O,j,P,R,F,V,K,X,ce)=>(y(I)?x="":y(O)?x=`>=${I}.0.0${B?"-0":""}`:y(j)?x=`>=${I}.${O}.0${B?"-0":""}`:P?x=`>=${x}`:x=`>=${x}${B?"-0":""}`,y(V)?F="":y(K)?F=`<${+V+1}.0.0-0`:y(X)?F=`<${V}.${+K+1}.0-0`:ce?F=`<=${V}.${K}.${X}-${ce}`:B?F=`<${V}.${K}.${+X+1}-0`:F=`<=${F}`,`${x} ${F}`.trim()),H=(B,Y,x)=>{for(let I=0;I<B.length;I++)if(!B[I].test(Y))return!1;if(Y.prerelease.length&&!x.includePrerelease){for(let I=0;I<B.length;I++)if(o(B[I].semver),B[I].semver!==r.ANY&&B[I].semver.prerelease.length>0){const O=B[I].semver;if(O.major===Y.major&&O.minor===Y.minor&&O.patch===Y.patch)return!0}return!1}return!0};return zl}var Gl,W1;function xa(){if(W1)return Gl;W1=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,f){if(f=n(f),a instanceof t){if(a.loose===!!f.loose)return a;a=a.value}a=a.trim().split(/\s+/).join(" "),o("comparator",a,f),this.options=f,this.loose=!!f.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const f=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],h=a.match(f);if(!h)throw new TypeError(`Invalid comparator: ${a}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new l(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new l(a,this.options)}catch{return!1}return r(a,this.operator,this.semver,this.options)}intersects(a,f){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(a.value,f).test(this.value):a.operator===""?a.value===""?!0:new u(this.value,f).test(a.semver):(f=n(f),f.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||r(this.semver,"<",a.semver,f)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||r(this.semver,">",a.semver,f)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}Gl=t;const n=km(),{safeRe:s,t:i}=ds(),r=KC(),o=Oa(),l=Vt(),u=_r();return Gl}var Wl,V1;function Fa(){if(V1)return Wl;V1=1;const e=_r();return Wl=(n,s,i)=>{try{s=new e(s,i)}catch{return!1}return s.test(n)},Wl}var Vl,Y1;function DL(){if(Y1)return Vl;Y1=1;const e=_r();return Vl=(n,s)=>new e(n,s).set.map(i=>i.map(r=>r.value).join(" ").trim().split(" ")),Vl}var Yl,K1;function SL(){if(K1)return Yl;K1=1;const e=Vt(),t=_r();return Yl=(s,i,r)=>{let o=null,l=null,u=null;try{u=new t(i,r)}catch{return null}return s.forEach(c=>{u.test(c)&&(!o||l.compare(c)===-1)&&(o=c,l=new e(o,r))}),o},Yl}var Kl,Z1;function AL(){if(Z1)return Kl;Z1=1;const e=Vt(),t=_r();return Kl=(s,i,r)=>{let o=null,l=null,u=null;try{u=new t(i,r)}catch{return null}return s.forEach(c=>{u.test(c)&&(!o||l.compare(c)===1)&&(o=c,l=new e(o,r))}),o},Kl}var Zl,J1;function RL(){if(J1)return Zl;J1=1;const e=Vt(),t=_r(),n=ps();return Zl=(i,r)=>{i=new t(i,r);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let l=0;l<i.set.length;++l){const u=i.set[l];let c=null;u.forEach(a=>{const f=new e(a.semver.version);switch(a.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!c||n(f,c))&&(c=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),c&&(!o||n(o,c))&&(o=c)}return o&&i.test(o)?o:null},Zl}var Jl,X1;function CL(){if(X1)return Jl;X1=1;const e=_r();return Jl=(n,s)=>{try{return new e(n,s).range||"*"}catch{return null}},Jl}var Xl,Q1;function Mm(){if(Q1)return Xl;Q1=1;const e=Vt(),t=xa(),{ANY:n}=t,s=_r(),i=Fa(),r=ps(),o=Pm(),l=Bm(),u=$m();return Xl=(a,f,h,d)=>{a=new e(a,d),f=new s(f,d);let p,g,m,v,_;switch(h){case">":p=r,g=l,m=o,v=">",_=">=";break;case"<":p=o,g=u,m=r,v="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(a,f,d))return!1;for(let y=0;y<f.set.length;++y){const E=f.set[y];let b=null,w=null;if(E.forEach(S=>{S.semver===n&&(S=new t(">=0.0.0")),b=b||S,w=w||S,p(S.semver,b.semver,d)?b=S:m(S.semver,w.semver,d)&&(w=S)}),b.operator===v||b.operator===_||(!w.operator||w.operator===v)&&g(a,w.semver))return!1;if(w.operator===_&&m(a,w.semver))return!1}return!0},Xl}var Ql,eE;function TL(){if(eE)return Ql;eE=1;const e=Mm();return Ql=(n,s,i)=>e(n,s,">",i),Ql}var ef,tE;function OL(){if(tE)return ef;tE=1;const e=Mm();return ef=(n,s,i)=>e(n,s,"<",i),ef}var tf,rE;function xL(){if(rE)return tf;rE=1;const e=_r();return tf=(n,s,i)=>(n=new e(n,i),s=new e(s,i),n.intersects(s,i)),tf}var rf,nE;function FL(){if(nE)return rf;nE=1;const e=Fa(),t=br();return rf=(n,s,i)=>{const r=[];let o=null,l=null;const u=n.sort((h,d)=>t(h,d,i));for(const h of u)e(h,s,i)?(l=h,o||(o=h)):(l&&r.push([o,l]),l=null,o=null);o&&r.push([o,null]);const c=[];for(const[h,d]of r)h===d?c.push(h):!d&&h===u[0]?c.push("*"):d?h===u[0]?c.push(`<=${d}`):c.push(`${h} - ${d}`):c.push(`>=${h}`);const a=c.join(" || "),f=typeof s.raw=="string"?s.raw:String(s);return a.length<f.length?a:s},rf}var nf,iE;function IL(){if(iE)return nf;iE=1;const e=_r(),t=xa(),{ANY:n}=t,s=Fa(),i=br(),r=(f,h,d={})=>{if(f===h)return!0;f=new e(f,d),h=new e(h,d);let p=!1;e:for(const g of f.set){for(const m of h.set){const v=u(g,m,d);if(p=p||v!==null,v)continue e}if(p)return!1}return!0},o=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],u=(f,h,d)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===n){if(h.length===1&&h[0].semver===n)return!0;d.includePrerelease?f=o:f=l}if(h.length===1&&h[0].semver===n){if(d.includePrerelease)return!0;h=l}const p=new Set;let g,m;for(const C of f)C.operator===">"||C.operator===">="?g=c(g,C,d):C.operator==="<"||C.operator==="<="?m=a(m,C,d):p.add(C.semver);if(p.size>1)return null;let v;if(g&&m){if(v=i(g.semver,m.semver,d),v>0)return null;if(v===0&&(g.operator!==">="||m.operator!=="<="))return null}for(const C of p){if(g&&!s(C,String(g),d)||m&&!s(C,String(m),d))return null;for(const T of h)if(!s(C,String(T),d))return!1;return!0}let _,y,E,b,w=m&&!d.includePrerelease&&m.semver.prerelease.length?m.semver:!1,S=g&&!d.includePrerelease&&g.semver.prerelease.length?g.semver:!1;w&&w.prerelease.length===1&&m.operator==="<"&&w.prerelease[0]===0&&(w=!1);for(const C of h){if(b=b||C.operator===">"||C.operator===">=",E=E||C.operator==="<"||C.operator==="<=",g){if(S&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===S.major&&C.semver.minor===S.minor&&C.semver.patch===S.patch&&(S=!1),C.operator===">"||C.operator===">="){if(_=c(g,C,d),_===C&&_!==g)return!1}else if(g.operator===">="&&!s(g.semver,String(C),d))return!1}if(m){if(w&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===w.major&&C.semver.minor===w.minor&&C.semver.patch===w.patch&&(w=!1),C.operator==="<"||C.operator==="<="){if(y=a(m,C,d),y===C&&y!==m)return!1}else if(m.operator==="<="&&!s(m.semver,String(C),d))return!1}if(!C.operator&&(m||g)&&v!==0)return!1}return!(g&&E&&!m&&v!==0||m&&b&&!g&&v!==0||S||w)},c=(f,h,d)=>{if(!f)return h;const p=i(f.semver,h.semver,d);return p>0?f:p<0||h.operator===">"&&f.operator===">="?h:f},a=(f,h,d)=>{if(!f)return h;const p=i(f.semver,h.semver,d);return p<0?f:p>0||h.operator==="<"&&f.operator==="<="?h:f};return nf=r,nf}var sf,sE;function qm(){if(sE)return sf;sE=1;const e=ds(),t=Ta(),n=Vt(),s=GC(),i=ai(),r=lL(),o=fL(),l=hL(),u=WC(),c=dL(),a=pL(),f=gL(),h=mL(),d=br(),p=yL(),g=vL(),m=Nm(),v=EL(),_=bL(),y=ps(),E=Pm(),b=VC(),w=YC(),S=$m(),C=Bm(),T=KC(),L=_L(),k=xa(),$=_r(),H=Fa(),B=DL(),Y=SL(),x=AL(),I=RL(),O=CL(),j=Mm(),P=TL(),R=OL(),F=xL(),V=FL(),K=IL();return sf={parse:i,valid:r,clean:o,inc:l,diff:u,major:c,minor:a,patch:f,prerelease:h,compare:d,rcompare:p,compareLoose:g,compareBuild:m,sort:v,rsort:_,gt:y,lt:E,eq:b,neq:w,gte:S,lte:C,cmp:T,coerce:L,Comparator:k,Range:$,satisfies:H,toComparators:B,maxSatisfying:Y,minSatisfying:x,minVersion:I,validRange:O,outside:j,gtr:P,ltr:R,intersects:F,simplifyRange:V,subset:K,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},sf}var pt=qm();const _t=ft(pt);var kn={},oE;function LL(){return oE||(oE=1,(function(){var e=/^v?((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/,t=/\s*((\|\||\-)|(((?:(?:~?[<>]?)|\^?)=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g;function n(u){var c={};for(var a in u)typeof u[a]<"u"&&(c[a]=u[a]);return c}function s(u){var c="";return c+=u.major||"0",c+=".",c+=u.minor||"0",c+=".",c+=u.patch||"0",u.release&&(c+="-"+u.release),u.build&&(c+="+"+u.build),c}function i(u){var c="";function a(f){f.operator&&(c+=f.operator+" "),f.major&&(c+=f.toString()+" ")}return u.forEach(a),c.trim()}function r(u){if(u){var c=this;Object.keys(u).forEach(function(a){c[a]=u[a]})}}r.prototype.toString=function(){return s(this)};function o(u){var c=e.exec(u)||[],a=new r(n({semver:c[0],version:c[1],major:c[2],minor:c[3],patch:c[4],release:c[5],build:c[6]}));return c.length===0&&(a=null),a}function l(u){for(var c,a=[],f;c=t.exec(u);)f={semver:c[3],operator:c[4]||c[2],major:c[6],minor:c[8],patch:c[10]},c[12]==="+"&&(f.build=c[13]),c[12]==="-"&&(f.release=c[13]),a.push(new r(n(f)));return a}kn.parse=o,kn.stringify=s,kn.parseRange=l,kn.stringifyRange=i})()),kn}var sr=LL();const ri=ft(sr);function Ia(e,t){return e?e.map(n=>({item:n,key:t(n)})).sort((n,s)=>n.key>s.key?1:n.key<s.key?-1:0).map(({item:n})=>n):[]}const jm=["major","minor","patch"],ZC=["release","build"],Qn=[...jm,...ZC],kL={major:"",minor:".",patch:".",release:"-",build:"+"},JC="^",XC=["^","~",".*",".x"],NL=["^","~","^*","*","x","x.x","x.x.x"],PL=new RegExp(`^(${NL.map(SI).join("|")})$`),QC=/^npm:(.*)@(.*)/;function $L(e){const[t]=ri.parseRange(e);if(!t)throw new Error(qr.format('semverutils.parseRange returned null when trying to parse "%s". This is probably a problem with the "semver-utils" dependency. Please report an issue at https://github.com/raineorshine/npm-check-updates/issues.',e));return Qn.reduce((n,s)=>t[s]?n+1:n,0)}function ni(e,t){return(t?Qn.slice(0,Qn.indexOf(t)+1):Qn).filter(s=>t&&jm.includes(t)||e[s]).map(s=>kL[s]+(e[s]||"0")).join("")}function BL(e){const[t]=ri.parseRange(e);return Qn.slice().reverse().find(zC(t))}function ML(e,t){const[n]=ri.parseRange(e);return ni(n,t)}function qL(e,t){return t==="^"||t==="~"?t+e:ML(e,"major")+t}function Um(e){return PL.test(e)}function eT(e){return e==="*"||e==="x"}function jL(e,t){if(e===t)return"none";/^[~^]/.test(t)&&t[0]===e[0]&&(t=t.slice(1),e=e.slice(1));const n=t.split("."),s=e.split(".");let i=n.findIndex((r,o)=>r!==s[o]);return i=i>=0?i:n.length,n[0]==="0"?"majorVersionZero":i===0?"major":i===1?"minor":"patch"}function tT(e,t,n){const s=ot(e,(o,l,u)=>{const c=t[o],a=jL(c,l),f=n.groupFunction?.(o,a,sr.parseRange(c),sr.parseRange(l),sr.parse(e[o]))??a;return f==="none"?u:{...u,[f]:{...u[f],[o]:l}}}),i={patch:me.green(me.bold("Patch")+" Backwards-compatible bug fixes"),minor:me.cyan(me.bold("Minor")+" Backwards-compatible features"),major:me.red(me.bold("Major")+" Potentially breaking API changes"),majorVersionZero:me.magenta(me.bold("Major version zero")+" Anything may change")};return Array.from(new Set(["patch","minor","major","majorVersionZero",...Object.keys(s).sort()])).filter(o=>o in s).map(o=>({groupName:o,heading:o in i?i[o]:o,packages:s[o]}))}function Hm(e,t){let n="";/^[~^]/.test(t)&&t[0]===e[0]&&(n=t[0],t=t.slice(1),e=e.slice(1));const s=t.split("."),i=e.split(".");let r=s.findIndex((u,c)=>u!==i[c]);r=r>=0?r:s.length;const o=r===0||s[0]==="0"?"red":r===1?"cyan":"green",l=r>0&&r<s.length?".":"";return n+s.slice(0,r).join(".")+l+me[o](s.slice(r).join("."))}const aE=e=>{const t=_t.prerelease(e);return t&&t.slice(0,-1).join(".")};function UL(e,t){const n=aE(e),s=aE(t);return typeof n!="string"||typeof s!="string"||n===s}function zm(e,t){return(_t.valid(e)&&_t.valid(t)?_t.gt(e,t):e>t)?1:e===t?0:-1}function Gm(e,t,n){if(!_t.validRange(t))return null;const s=_t.minVersion(t);return[...e].sort(zm).filter(r=>{const o=_t.parse(r);return o&&(n==="major"||o.major===s?.major)&&(n==="major"||n==="minor"||o.minor===s?.minor)}).at(-1)||null}function gs(e){return BL(e)==="release"}const rT=e=>/^[vV]?\d+$/.test(e),nT=e=>/^[vV]?\d+\.\d+$/.test(e),HL=e=>e.replace(/^[vV]/,""),zL=e=>rT(e)?e+".0.0":e,GL=e=>nT(e)?e+".0":e,Wm=e=>GL(zL(HL(e)));function iT(e){return e&&(e[0]==="v"||e[1]==="v")?"v":""}const sT=(e,t)=>`npm:${e}@${t}`,es=e=>{const t=e&&e.match&&e.match(QC);return t&&t.slice(1)},Yo=e=>e&&!!e.match(QC),WL=(e,t)=>{const n=es(e);return n?sT(n[0],t):null},Zi=e=>{if(!e)return!1;let t=null;try{t=hs(e)}catch{}if(!t||!t.branch)return!1;const n=decodeURIComponent(t.branch).replace(/^semver:/,"");return!!_t.validRange(n)},im=e=>{if(!e)return null;const t=hs(e);if(!t||!t.branch)return null;const n=decodeURIComponent(t.branch).replace(/^semver:/,"");return t&&t.branch&&_t.validRange(n)?n:null};function oT(e,t,n={}){if(n.wildcard=n.wildcard||JC,!t)return e;const[s]=ri.parseRange(t);if(!s)return e;if(n.removeRange)return t;if(Um(e))return e;const i=Ia(ri.parseRange(e).filter(m=>m.operator!=="||"&&m.operator!=="-"),m=>$L(ni(m))),[r]=i;function o(m){return(eT(r[m])?r[m]:jm.includes(m)&&r[m]||ZC.includes(m)?s[m]:null)||null}const l=ot(Qn,m=>({[m]:o(m)})),u=ni(l),c=iT(r.semver)+u,a=Array.from(new Set(i.map(m=>m.operator))),f=a[0]||"",h=XC.some(m=>u.includes(m)),d=a[0]==="<"||a[0]==="<=",p=a[0]===">",g=a.length>1;return!h&&(d||g)?qL(c,n.wildcard):(p?">=":f)+c}const VL=(e,t)=>{const n=iT(e);let s=n?n+t:t;return s=rT(e)?s.slice(0,s.length-4):s,s=nT(e)?s.slice(0,s.length-2):s,s},La=(e,t)=>{const n=Wm(t),s=hs(e);if(!s)return e;const i=decodeURIComponent(s.branch).replace(/^semver:/,"");return e.replace(i,oT(i,VL(i,n)))},uE={silent:0,error:1,minimal:2,warn:3,info:4,verbose:5,silly:6},YL=e=>!e.startsWith("file:")&&!e.startsWith("link:")&&!e.startsWith("workspace:")&&!/^[^/:@]+\/\w+/.test(e);function Me(e,t,n=null,s="log"){!e.json&&e.loglevel!=="silent"&&(n==null||uE[e.loglevel??"warn"]>=uE[n])&&console[s](t)}function Vm(e,t){e.loglevel!=="silent"&&console.log(JSON.stringify(t,null,2))}function KL(e,t){console.log(Object.keys(e).map(n=>n+"@"+e[n]).join(t))}function zr(e,t,n){const i=Object.keys(t).sort().reduce((r,o)=>(r[o]=t[o],r),{});Me(e,i,n)}function Ym(e){const t=new xm({colAligns:["left","right","right","right","left","left"],chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}});return t.push(...e),t.toString().split(`
|
|
54
|
+
`)[0].length}}s.reset=()=>e.reset();function i(r,o,l){let u=[];r.forEach(function(a){u.push(a.draw(o))});let c=u.join("");c.length&&l.push(c)}return uc=s,uc}var cc,a1;function aI(){return a1||(a1=1,cc=oI()),cc}var uI=aI();const xm=ft(uI);function ot(e,t,n={}){const s=Array.isArray(e);return t=t||(i=>({[i]:!0})),Object.entries(e||{}).forEach(([i,r],o)=>{const l=s?t(r,o,n):t(i,r,n);Object.entries(l||{}).forEach(u=>{n[u[0]]=u[1]})}),n}const MC={blue:!0,bold:!0,cyan:!0,gray:!0,green:!0,magenta:!0,red:!0,yellow:!0},cI=ot(MC,e=>({[e]:t=>t.toString()}));let ta;const Fm=async e=>{const t=await Promise.resolve().then(()=>require("./index-Bl96b__P.js")),{default:n,Chalk:s}=t;ta=e===!0?new s({level:1}):e===null?cI:n},u1=()=>{if(!ta)throw new Error("Chalk has not been imported yet. Chalk is a dynamic import and requires that you await { chalkInit } from './lib/chalk'.")},me=ot(MC,e=>{const t=s=>(u1(),ta[e].bold(s)),n=s=>(u1(),ta[e](s));return n.bold=t,{[e]:n}}),vn=(e,t)=>ot(e,(n,s)=>t(n,s)?{[n]:s}:null),Qi=e=>Ve.stat(e).then(()=>!0,()=>!1);async function Im(e,{pkgFile:t}={}){const n=require.resolve.paths(e)||[],s=t?[Be.join(Be.dirname(t),"node_modules")]:[],i=[Be.join(process.cwd(),"node_modules")],r=[...s,...i,...n];for(const o of r){const l=Be.join(o,e,"package.json");if(await Qi(l))try{return JSON.parse(await Ve.readFile(l,"utf-8"))}catch{}}return null}async function lI(e,t,{pkgFile:n}={}){return(await Im(e,{pkgFile:n}))?.version??null}var pi={},c1;function ls(){if(c1)return pi;c1=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,t=new Set,n=typeof process=="object"&&process?process:{},s=(h,d,p,g)=>{typeof n.emitWarning=="function"?n.emitWarning(h,d,p,g):console.error(`[${p}] ${d}: ${h}`)},i=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof i>"u"){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,g){this._onabort.push(g)}},i=class{constructor(){d()}signal=new r;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let g of this.signal._onabort)g(p);this.signal.onabort?.(p)}}};let h=n.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",d=()=>{h&&(h=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",d))}}var o=h=>!t.has(h),l=h=>h&&h===Math.floor(h)&&h>0&&isFinite(h),u=h=>l(h)?h<=Math.pow(2,8)?Uint8Array:h<=Math.pow(2,16)?Uint16Array:h<=Math.pow(2,32)?Uint32Array:h<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(h){super(h),this.fill(0)}},a=class zi{heap;length;static#e=!1;static create(d){let p=u(d);if(!p)return[];zi.#e=!0;let g=new zi(d,p);return zi.#e=!1,g}constructor(d,p){if(!zi.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new p(d),this.length=0}push(d){this.heap[this.length++]=d}pop(){return this.heap[--this.length]}},f=class qC{#e;#t;#r;#i;#o;#l;#d;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#p;#h;#u;#n;#y;#_;#v;#g;#R;#m;#S;#A;#E;#b;#D;#T;#s;#k;static unsafeExposeInternals(d){return{starts:d.#A,ttls:d.#E,autopurgeTimers:d.#b,sizes:d.#S,keyMap:d.#h,keyList:d.#u,valList:d.#n,next:d.#y,prev:d.#_,get head(){return d.#v},get tail(){return d.#g},free:d.#R,isBackgroundFetch:p=>d.#c(p),backgroundFetch:(p,g,m,v)=>d.#U(p,g,m,v),moveToTail:p=>d.#L(p),indexes:p=>d.#O(p),rindexes:p=>d.#x(p),isStale:p=>d.#w(p)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#a}get fetchMethod(){return this.#l}get memoMethod(){return this.#d}get dispose(){return this.#r}get onInsert(){return this.#i}get disposeAfter(){return this.#o}constructor(d){let{max:p=0,ttl:g,ttlResolution:m=1,ttlAutopurge:v,updateAgeOnGet:_,updateAgeOnHas:y,allowStale:E,dispose:b,onInsert:w,disposeAfter:S,noDisposeOnSet:C,noUpdateTTL:T,maxSize:L=0,maxEntrySize:k=0,sizeCalculation:$,fetchMethod:H,memoMethod:B,noDeleteOnFetchRejection:Y,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:I,allowStaleOnFetchAbort:O,ignoreFetchAbort:j,perf:P}=d;if(P!==void 0&&typeof P?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=P??e,p!==0&&!l(p))throw new TypeError("max option must be a nonnegative integer");let R=p?u(p):Array;if(!R)throw new Error("invalid max value: "+p);if(this.#e=p,this.#t=L,this.maxEntrySize=k||this.#t,this.sizeCalculation=$,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(B!==void 0&&typeof B!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#d=B,H!==void 0&&typeof H!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#l=H,this.#T=!!H,this.#h=new Map,this.#u=new Array(p).fill(void 0),this.#n=new Array(p).fill(void 0),this.#y=new R(p),this.#_=new R(p),this.#v=0,this.#g=0,this.#R=a.create(p),this.#a=0,this.#p=0,typeof b=="function"&&(this.#r=b),typeof w=="function"&&(this.#i=w),typeof S=="function"?(this.#o=S,this.#m=[]):(this.#o=void 0,this.#m=void 0),this.#D=!!this.#r,this.#k=!!this.#i,this.#s=!!this.#o,this.noDisposeOnSet=!!C,this.noUpdateTTL=!!T,this.noDeleteOnFetchRejection=!!Y,this.allowStaleOnFetchRejection=!!I,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(this.#t!==0&&!l(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#G()}if(this.allowStale=!!E,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!_,this.updateAgeOnHas=!!y,this.ttlResolution=l(m)||m===0?m:1,this.ttlAutopurge=!!v,this.ttl=g||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let F="LRU_CACHE_UNBOUNDED";o(F)&&(t.add(F),s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",F,qC))}}getRemainingTTL(d){return this.#h.has(d)?1/0:0}#N(){let d=new c(this.#e),p=new c(this.#e);this.#E=d,this.#A=p;let g=this.ttlAutopurge?new Array(this.#e):void 0;this.#b=g,this.#B=(y,E,b=this.#f.now())=>{p[y]=E!==0?b:0,d[y]=E,m(y,E)},this.#F=y=>{p[y]=d[y]!==0?this.#f.now():0,m(y,d[y])};let m=this.ttlAutopurge?(y,E)=>{if(g?.[y]&&(clearTimeout(g[y]),g[y]=void 0),E&&E!==0&&g){let b=setTimeout(()=>{this.#w(y)&&this.#C(this.#u[y],"expire")},E+1);b.unref&&b.unref(),g[y]=b}}:()=>{};this.#I=(y,E)=>{if(d[E]){let b=d[E],w=p[E];if(!b||!w)return;y.ttl=b,y.start=w,y.now=v||_();let S=y.now-w;y.remainingTTL=b-S}};let v=0,_=()=>{let y=this.#f.now();if(this.ttlResolution>0){v=y;let E=setTimeout(()=>v=0,this.ttlResolution);E.unref&&E.unref()}return y};this.getRemainingTTL=y=>{let E=this.#h.get(y);if(E===void 0)return 0;let b=d[E],w=p[E];if(!b||!w)return 1/0;let S=(v||_())-w;return b-S},this.#w=y=>{let E=p[y],b=d[y];return!!b&&!!E&&(v||_())-E>b}}#F=()=>{};#I=()=>{};#B=()=>{};#w=()=>!1;#G(){let d=new c(this.#e);this.#p=0,this.#S=d,this.#P=p=>{this.#p-=d[p],d[p]=0},this.#M=(p,g,m,v)=>{if(this.#c(g))return 0;if(!l(m))if(v){if(typeof v!="function")throw new TypeError("sizeCalculation must be a function");if(m=v(g,p),!l(m))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return m},this.#$=(p,g,m)=>{if(d[p]=g,this.#t){let v=this.#t-d[p];for(;this.#p>v;)this.#j(!0)}this.#p+=d[p],m&&(m.entrySize=g,m.totalCalculatedSize=this.#p)}}#P=d=>{};#$=(d,p,g)=>{};#M=(d,p,g,m)=>{if(g||m)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:d=this.allowStale}={}){if(this.#a)for(let p=this.#g;!(!this.#q(p)||((d||!this.#w(p))&&(yield p),p===this.#v));)p=this.#_[p]}*#x({allowStale:d=this.allowStale}={}){if(this.#a)for(let p=this.#v;!(!this.#q(p)||((d||!this.#w(p))&&(yield p),p===this.#g));)p=this.#y[p]}#q(d){return d!==void 0&&this.#h.get(this.#u[d])===d}*entries(){for(let d of this.#O())this.#n[d]!==void 0&&this.#u[d]!==void 0&&!this.#c(this.#n[d])&&(yield[this.#u[d],this.#n[d]])}*rentries(){for(let d of this.#x())this.#n[d]!==void 0&&this.#u[d]!==void 0&&!this.#c(this.#n[d])&&(yield[this.#u[d],this.#n[d]])}*keys(){for(let d of this.#O()){let p=this.#u[d];p!==void 0&&!this.#c(this.#n[d])&&(yield p)}}*rkeys(){for(let d of this.#x()){let p=this.#u[d];p!==void 0&&!this.#c(this.#n[d])&&(yield p)}}*values(){for(let d of this.#O())this.#n[d]!==void 0&&!this.#c(this.#n[d])&&(yield this.#n[d])}*rvalues(){for(let d of this.#x())this.#n[d]!==void 0&&!this.#c(this.#n[d])&&(yield this.#n[d])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(d,p={}){for(let g of this.#O()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;if(v!==void 0&&d(v,this.#u[g],this))return this.get(this.#u[g],p)}}forEach(d,p=this){for(let g of this.#O()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;v!==void 0&&d.call(p,v,this.#u[g],this)}}rforEach(d,p=this){for(let g of this.#x()){let m=this.#n[g],v=this.#c(m)?m.__staleWhileFetching:m;v!==void 0&&d.call(p,v,this.#u[g],this)}}purgeStale(){let d=!1;for(let p of this.#x({allowStale:!0}))this.#w(p)&&(this.#C(this.#u[p],"expire"),d=!0);return d}info(d){let p=this.#h.get(d);if(p===void 0)return;let g=this.#n[p],m=this.#c(g)?g.__staleWhileFetching:g;if(m===void 0)return;let v={value:m};if(this.#E&&this.#A){let _=this.#E[p],y=this.#A[p];if(_&&y){let E=_-(this.#f.now()-y);v.ttl=E,v.start=Date.now()}}return this.#S&&(v.size=this.#S[p]),v}dump(){let d=[];for(let p of this.#O({allowStale:!0})){let g=this.#u[p],m=this.#n[p],v=this.#c(m)?m.__staleWhileFetching:m;if(v===void 0||g===void 0)continue;let _={value:v};if(this.#E&&this.#A){_.ttl=this.#E[p];let y=this.#f.now()-this.#A[p];_.start=Math.floor(Date.now()-y)}this.#S&&(_.size=this.#S[p]),d.unshift([g,_])}return d}load(d){this.clear();for(let[p,g]of d){if(g.start){let m=Date.now()-g.start;g.start=this.#f.now()-m}this.set(p,g.value,g)}}set(d,p,g={}){if(p===void 0)return this.delete(d),this;let{ttl:m=this.ttl,start:v,noDisposeOnSet:_=this.noDisposeOnSet,sizeCalculation:y=this.sizeCalculation,status:E}=g,{noUpdateTTL:b=this.noUpdateTTL}=g,w=this.#M(d,p,g.size||0,y);if(this.maxEntrySize&&w>this.maxEntrySize)return E&&(E.set="miss",E.maxEntrySizeExceeded=!0),this.#C(d,"set"),this;let S=this.#a===0?void 0:this.#h.get(d);if(S===void 0)S=this.#a===0?this.#g:this.#R.length!==0?this.#R.pop():this.#a===this.#e?this.#j(!1):this.#a,this.#u[S]=d,this.#n[S]=p,this.#h.set(d,S),this.#y[this.#g]=S,this.#_[S]=this.#g,this.#g=S,this.#a++,this.#$(S,w,E),E&&(E.set="add"),b=!1,this.#k&&this.#i?.(p,d,"add");else{this.#L(S);let C=this.#n[S];if(p!==C){if(this.#T&&this.#c(C)){C.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:T}=C;T!==void 0&&!_&&(this.#D&&this.#r?.(T,d,"set"),this.#s&&this.#m?.push([T,d,"set"]))}else _||(this.#D&&this.#r?.(C,d,"set"),this.#s&&this.#m?.push([C,d,"set"]));if(this.#P(S),this.#$(S,w,E),this.#n[S]=p,E){E.set="replace";let T=C&&this.#c(C)?C.__staleWhileFetching:C;T!==void 0&&(E.oldValue=T)}}else E&&(E.set="update");this.#k&&this.onInsert?.(p,d,p===C?"update":"replace")}if(m!==0&&!this.#E&&this.#N(),this.#E&&(b||this.#B(S,m,v),E&&this.#I(E,S)),!_&&this.#s&&this.#m){let C=this.#m,T;for(;T=C?.shift();)this.#o?.(...T)}return this}pop(){try{for(;this.#a;){let d=this.#n[this.#v];if(this.#j(!0),this.#c(d)){if(d.__staleWhileFetching)return d.__staleWhileFetching}else if(d!==void 0)return d}}finally{if(this.#s&&this.#m){let d=this.#m,p;for(;p=d?.shift();)this.#o?.(...p)}}}#j(d){let p=this.#v,g=this.#u[p],m=this.#n[p];return this.#T&&this.#c(m)?m.__abortController.abort(new Error("evicted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(m,g,"evict"),this.#s&&this.#m?.push([m,g,"evict"])),this.#P(p),this.#b?.[p]&&(clearTimeout(this.#b[p]),this.#b[p]=void 0),d&&(this.#u[p]=void 0,this.#n[p]=void 0,this.#R.push(p)),this.#a===1?(this.#v=this.#g=0,this.#R.length=0):this.#v=this.#y[p],this.#h.delete(g),this.#a--,p}has(d,p={}){let{updateAgeOnHas:g=this.updateAgeOnHas,status:m}=p,v=this.#h.get(d);if(v!==void 0){let _=this.#n[v];if(this.#c(_)&&_.__staleWhileFetching===void 0)return!1;if(this.#w(v))m&&(m.has="stale",this.#I(m,v));else return g&&this.#F(v),m&&(m.has="hit",this.#I(m,v)),!0}else m&&(m.has="miss");return!1}peek(d,p={}){let{allowStale:g=this.allowStale}=p,m=this.#h.get(d);if(m===void 0||!g&&this.#w(m))return;let v=this.#n[m];return this.#c(v)?v.__staleWhileFetching:v}#U(d,p,g,m){let v=p===void 0?void 0:this.#n[p];if(this.#c(v))return v;let _=new i,{signal:y}=g;y?.addEventListener("abort",()=>_.abort(y.reason),{signal:_.signal});let E={signal:_.signal,options:g,context:m},b=(k,$=!1)=>{let{aborted:H}=_.signal,B=g.ignoreFetchAbort&&k!==void 0,Y=g.ignoreFetchAbort||!!(g.allowStaleOnFetchAbort&&k!==void 0);if(g.status&&(H&&!$?(g.status.fetchAborted=!0,g.status.fetchError=_.signal.reason,B&&(g.status.fetchAbortIgnored=!0)):g.status.fetchResolved=!0),H&&!B&&!$)return S(_.signal.reason,Y);let x=T,I=this.#n[p];return(I===T||B&&$&&I===void 0)&&(k===void 0?x.__staleWhileFetching!==void 0?this.#n[p]=x.__staleWhileFetching:this.#C(d,"fetch"):(g.status&&(g.status.fetchUpdated=!0),this.set(d,k,E.options))),k},w=k=>(g.status&&(g.status.fetchRejected=!0,g.status.fetchError=k),S(k,!1)),S=(k,$)=>{let{aborted:H}=_.signal,B=H&&g.allowStaleOnFetchAbort,Y=B||g.allowStaleOnFetchRejection,x=Y||g.noDeleteOnFetchRejection,I=T;if(this.#n[p]===T&&(!x||!$&&I.__staleWhileFetching===void 0?this.#C(d,"fetch"):B||(this.#n[p]=I.__staleWhileFetching)),Y)return g.status&&I.__staleWhileFetching!==void 0&&(g.status.returnedStale=!0),I.__staleWhileFetching;if(I.__returned===I)throw k},C=(k,$)=>{let H=this.#l?.(d,v,E);H&&H instanceof Promise&&H.then(B=>k(B===void 0?void 0:B),$),_.signal.addEventListener("abort",()=>{(!g.ignoreFetchAbort||g.allowStaleOnFetchAbort)&&(k(void 0),g.allowStaleOnFetchAbort&&(k=B=>b(B,!0)))})};g.status&&(g.status.fetchDispatched=!0);let T=new Promise(C).then(b,w),L=Object.assign(T,{__abortController:_,__staleWhileFetching:v,__returned:void 0});return p===void 0?(this.set(d,L,{...E.options,status:void 0}),p=this.#h.get(d)):this.#n[p]=L,L}#c(d){if(!this.#T)return!1;let p=d;return!!p&&p instanceof Promise&&p.hasOwnProperty("__staleWhileFetching")&&p.__abortController instanceof i}async fetch(d,p={}){let{allowStale:g=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:v=this.noDeleteOnStaleGet,ttl:_=this.ttl,noDisposeOnSet:y=this.noDisposeOnSet,size:E=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:S=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:C=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:L=this.allowStaleOnFetchAbort,context:k,forceRefresh:$=!1,status:H,signal:B}=p;if(!this.#T)return H&&(H.fetch="get"),this.get(d,{allowStale:g,updateAgeOnGet:m,noDeleteOnStaleGet:v,status:H});let Y={allowStale:g,updateAgeOnGet:m,noDeleteOnStaleGet:v,ttl:_,noDisposeOnSet:y,size:E,sizeCalculation:b,noUpdateTTL:w,noDeleteOnFetchRejection:S,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:L,ignoreFetchAbort:T,status:H,signal:B},x=this.#h.get(d);if(x===void 0){H&&(H.fetch="miss");let I=this.#U(d,x,Y,k);return I.__returned=I}else{let I=this.#n[x];if(this.#c(I)){let R=g&&I.__staleWhileFetching!==void 0;return H&&(H.fetch="inflight",R&&(H.returnedStale=!0)),R?I.__staleWhileFetching:I.__returned=I}let O=this.#w(x);if(!$&&!O)return H&&(H.fetch="hit"),this.#L(x),m&&this.#F(x),H&&this.#I(H,x),I;let j=this.#U(d,x,Y,k),P=j.__staleWhileFetching!==void 0&&g;return H&&(H.fetch=O?"stale":"refresh",P&&O&&(H.returnedStale=!0)),P?j.__staleWhileFetching:j.__returned=j}}async forceFetch(d,p={}){let g=await this.fetch(d,p);if(g===void 0)throw new Error("fetch() returned undefined");return g}memo(d,p={}){let g=this.#d;if(!g)throw new Error("no memoMethod provided to constructor");let{context:m,forceRefresh:v,..._}=p,y=this.get(d,_);if(!v&&y!==void 0)return y;let E=g(d,y,{options:_,context:m});return this.set(d,E,_),E}get(d,p={}){let{allowStale:g=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:v=this.noDeleteOnStaleGet,status:_}=p,y=this.#h.get(d);if(y!==void 0){let E=this.#n[y],b=this.#c(E);return _&&this.#I(_,y),this.#w(y)?(_&&(_.get="stale"),b?(_&&g&&E.__staleWhileFetching!==void 0&&(_.returnedStale=!0),g?E.__staleWhileFetching:void 0):(v||this.#C(d,"expire"),_&&g&&(_.returnedStale=!0),g?E:void 0)):(_&&(_.get="hit"),b?E.__staleWhileFetching:(this.#L(y),m&&this.#F(y),E))}else _&&(_.get="miss")}#H(d,p){this.#_[p]=d,this.#y[d]=p}#L(d){d!==this.#g&&(d===this.#v?this.#v=this.#y[d]:this.#H(this.#_[d],this.#y[d]),this.#H(this.#g,d),this.#g=d)}delete(d){return this.#C(d,"delete")}#C(d,p){let g=!1;if(this.#a!==0){let m=this.#h.get(d);if(m!==void 0)if(this.#b?.[m]&&(clearTimeout(this.#b?.[m]),this.#b[m]=void 0),g=!0,this.#a===1)this.#z(p);else{this.#P(m);let v=this.#n[m];if(this.#c(v)?v.__abortController.abort(new Error("deleted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(v,d,p),this.#s&&this.#m?.push([v,d,p])),this.#h.delete(d),this.#u[m]=void 0,this.#n[m]=void 0,m===this.#g)this.#g=this.#_[m];else if(m===this.#v)this.#v=this.#y[m];else{let _=this.#_[m];this.#y[_]=this.#y[m];let y=this.#y[m];this.#_[y]=this.#_[m]}this.#a--,this.#R.push(m)}}if(this.#s&&this.#m?.length){let m=this.#m,v;for(;v=m?.shift();)this.#o?.(...v)}return g}clear(){return this.#z("delete")}#z(d){for(let p of this.#x({allowStale:!0})){let g=this.#n[p];if(this.#c(g))g.__abortController.abort(new Error("deleted"));else{let m=this.#u[p];this.#D&&this.#r?.(g,m,d),this.#s&&this.#m?.push([g,m,d])}}if(this.#h.clear(),this.#n.fill(void 0),this.#u.fill(void 0),this.#E&&this.#A){this.#E.fill(0),this.#A.fill(0);for(let p of this.#b??[])p!==void 0&&clearTimeout(p);this.#b?.fill(void 0)}if(this.#S&&this.#S.fill(0),this.#v=0,this.#g=0,this.#R.length=0,this.#p=0,this.#a=0,this.#s&&this.#m){let p=this.#m,g;for(;g=p?.shift();)this.#o?.(...g)}}};return pi.LRUCache=f,pi}var lc,l1;function fI(){if(l1)return lc;l1=1;const e=(...r)=>r.every(o=>o)?r.join(""):"",t=r=>r?encodeURIComponent(r):"",n=r=>r.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),s={sshtemplate:({domain:r,user:o,project:l,committish:u})=>`git@${r}:${o}/${l}.git${e("#",u)}`,sshurltemplate:({domain:r,user:o,project:l,committish:u})=>`git+ssh://git@${r}/${o}/${l}.git${e("#",u)}`,edittemplate:({domain:r,user:o,project:l,committish:u,editpath:c,path:a})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u||"HEAD"),"/",a)}`,browsetemplate:({domain:r,user:o,project:l,committish:u,treepath:c})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u))}`,browsetreetemplate:({domain:r,user:o,project:l,committish:u,treepath:c,path:a,fragment:f,hashformat:h})=>`https://${r}/${o}/${l}/${c}/${t(u||"HEAD")}/${a}${e("#",h(f||""))}`,browseblobtemplate:({domain:r,user:o,project:l,committish:u,blobpath:c,path:a,fragment:f,hashformat:h})=>`https://${r}/${o}/${l}/${c}/${t(u||"HEAD")}/${a}${e("#",h(f||""))}`,docstemplate:({domain:r,user:o,project:l,treepath:u,committish:c})=>`https://${r}/${o}/${l}${e("/",u,"/",t(c))}#readme`,httpstemplate:({auth:r,domain:o,user:l,project:u,committish:c})=>`git+https://${e(r,"@")}${o}/${l}/${u}.git${e("#",c)}`,filetemplate:({domain:r,user:o,project:l,committish:u,path:c})=>`https://${r}/${o}/${l}/raw/${t(u||"HEAD")}/${c}`,shortcuttemplate:({type:r,user:o,project:l,committish:u})=>`${r}:${o}/${l}${e("#",u)}`,pathtemplate:({user:r,project:o,committish:l})=>`${r}/${o}${e("#",l)}`,bugstemplate:({domain:r,user:o,project:l})=>`https://${r}/${o}/${l}/issues`,hashformat:n},i={};i.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:r,user:o,project:l,committish:u,path:c})=>`https://${e(r,"@")}raw.githubusercontent.com/${o}/${l}/${t(u||"HEAD")}/${c}`,gittemplate:({auth:r,domain:o,user:l,project:u,committish:c})=>`git://${e(r,"@")}${o}/${l}/${u}.git${e("#",c)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://codeload.${r}/${o}/${l}/tar.gz/${t(u||"HEAD")}`,extract:r=>{let[,o,l,u,c]=r.pathname.split("/",5);if(!(u&&u!=="tree")&&(u||(c=r.hash.slice(1)),l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:c}}},i.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:r,user:o,project:l,committish:u,treepath:c,path:a,editpath:f})=>`https://${r}/${o}/${l}${e("/",c,"/",t(u||"HEAD"),"/",a,f)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/get/${t(u||"HEAD")}.tar.gz`,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(!["get"].includes(u)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:r.hash.slice(1)}}},i.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/repository/archive.tar.gz?ref=${t(u||"HEAD")}`,extract:r=>{const o=r.pathname.slice(1);if(o.includes("/-/")||o.includes("/archive.tar.gz"))return;const l=o.split("/");let u=l.pop();u.endsWith(".git")&&(u=u.slice(0,-4));const c=l.join("/");if(!(!c||!u))return{user:c,project:u,committish:r.hash.slice(1)}}},i.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:r,project:o,committish:l})=>`git@${r}:${o}.git${e("#",l)}`,sshurltemplate:({domain:r,project:o,committish:l})=>`git+ssh://git@${r}/${o}.git${e("#",l)}`,edittemplate:({domain:r,user:o,project:l,committish:u,editpath:c})=>`https://${r}/${o}/${l}${e("/",t(u))}/${c}`,browsetemplate:({domain:r,project:o,committish:l})=>`https://${r}/${o}${e("/",t(l))}`,browsetreetemplate:({domain:r,project:o,committish:l,path:u,hashformat:c})=>`https://${r}/${o}${e("/",t(l))}${e("#",c(u))}`,browseblobtemplate:({domain:r,project:o,committish:l,path:u,hashformat:c})=>`https://${r}/${o}${e("/",t(l))}${e("#",c(u))}`,docstemplate:({domain:r,project:o,committish:l})=>`https://${r}/${o}${e("/",t(l))}`,httpstemplate:({domain:r,project:o,committish:l})=>`git+https://${r}/${o}.git${e("#",l)}`,filetemplate:({user:r,project:o,committish:l,path:u})=>`https://gist.githubusercontent.com/${r}/${o}/raw${e("/",t(l))}/${u}`,shortcuttemplate:({type:r,project:o,committish:l})=>`${r}:${o}${e("#",l)}`,pathtemplate:({project:r,committish:o})=>`${r}${e("#",o)}`,bugstemplate:({domain:r,project:o})=>`https://${r}/${o}`,gittemplate:({domain:r,project:o,committish:l})=>`git://${r}/${o}.git${e("#",l)}`,tarballtemplate:({project:r,committish:o})=>`https://codeload.github.com/gist/${r}/tar.gz/${t(o||"HEAD")}`,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(u!=="raw"){if(!l){if(!o)return;l=o,o=null}return l.endsWith(".git")&&(l=l.slice(0,-4)),{user:o,project:l,committish:r.hash.slice(1)}}},hashformat:function(r){return r&&"file-"+n(r)}},i.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:r,user:o,project:l,committish:u,path:c})=>`https://${r}/${o}/${l}/blob/${t(u)||"HEAD"}/${c}`,httpstemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}.git${e("#",u)}`,tarballtemplate:({domain:r,user:o,project:l,committish:u})=>`https://${r}/${o}/${l}/archive/${t(u)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:r=>{let[,o,l,u]=r.pathname.split("/",4);if(!["archive"].includes(u)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!o||!l)))return{user:o,project:l,committish:r.hash.slice(1)}}};for(const[r,o]of Object.entries(i))i[r]=Object.assign({},s,o);return lc=i,lc}var fc,f1;function jC(){if(f1)return fc;f1=1;const e=Ft,t=(r,o,l)=>{const u=r.indexOf(l);return r.lastIndexOf(o,u>-1?u:1/0)},n=r=>{try{return new e.URL(r)}catch{}},s=(r,o)=>{const l=r.indexOf(":"),u=r.slice(0,l+1);if(Object.prototype.hasOwnProperty.call(o,u)||r.substr(l,3)==="://")return r;const c=r.indexOf("@");return c>-1?c>l?`git+ssh://${r}`:r:`${r.slice(0,l+1)}//${r.slice(l+1)}`},i=r=>{const o=t(r,"@","#"),l=t(r,":","#");return l>o&&(r=r.slice(0,l)+"/"+r.slice(l+1)),t(r,":","#")===-1&&r.indexOf("//")===-1&&(r=`git+ssh://${r}`),r};return fc=(r,o)=>{const l=o?s(r,o):r;return n(l)||n(i(l))},fc}var hc,h1;function hI(){if(h1)return hc;h1=1;const e=jC(),t=n=>{const s=n.indexOf("#"),i=n.indexOf("/"),r=n.indexOf("/",i+1),o=n.indexOf(":"),l=/\s/.exec(n),u=n.indexOf("@"),c=!l||s>-1&&l.index>s,a=u===-1||s>-1&&u>s,f=o===-1||s>-1&&o>s,h=r===-1||s>-1&&r>s,d=i>0,p=s>-1?n[s-1]!=="/":!n.endsWith("/"),g=!n.startsWith(".");return c&&d&&p&&g&&a&&f&&h};return hc=(n,s,{gitHosts:i,protocols:r})=>{if(!n)return;const o=t(n)?`github:${n}`:n,l=e(o,r);if(!l)return;const u=i.byShortcut[l.protocol],c=i.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname],a=u||c;if(!a)return;const f=i[u||c];let h=null;r[l.protocol]?.auth&&(l.username||l.password)&&(h=`${l.username}${l.password?":"+l.password:""}`);let d=null,p=null,g=null,m=null;try{if(u){let v=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const _=v.indexOf("@");_>-1&&(v=v.slice(_+1));const y=v.lastIndexOf("/");y>-1?(p=decodeURIComponent(v.slice(0,y)),p||(p=null),g=decodeURIComponent(v.slice(y+1))):g=decodeURIComponent(v),g.endsWith(".git")&&(g=g.slice(0,-4)),l.hash&&(d=decodeURIComponent(l.hash.slice(1))),m="shortcut"}else{if(!f.protocols.includes(l.protocol))return;const v=f.extract(l);if(!v)return;p=v.user&&decodeURIComponent(v.user),g=decodeURIComponent(v.project),d=decodeURIComponent(v.committish),m=r[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(v){if(v instanceof URIError)return;throw v}return[a,p,h,g,d,m,s]},hc}var dc,d1;function UC(){if(d1)return dc;d1=1;const{LRUCache:e}=ls(),t=fI(),n=hI(),s=jC(),i=new e({max:1e3});function r(l){try{const{protocol:u,hostname:c,pathname:a}=new URL(l);if(!c)return null;const f=/(?:git\+)http:$/.test(u)?"http:":"https:",h=a.replace(/\.git$/,"");return`${f}//${c}${h}`}catch{return null}}class o{constructor(u,c,a,f,h,d,p={}){Object.assign(this,o.#e[u],{type:u,user:c,auth:a,project:f,committish:h,default:d,opts:p})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(u,c){o.#e[u]=c,o.#e.byDomain[c.domain]=u,o.#e.byShortcut[`${u}:`]=u,o.#t[`${u}:`]={name:u}}static fromUrl(u,c){if(typeof u!="string")return;const a=u+JSON.stringify(c||{});if(!i.has(a)){const f=n(u,c,{gitHosts:o.#e,protocols:o.#t});i.set(a,f?new o(...f):void 0)}return i.get(a)}static fromManifest(u,c={}){if(!u||typeof u!="object")return;const a=u.repository,f=a&&(typeof a=="string"?a:typeof a=="object"&&typeof a.url=="string"?a.url:null);if(!f)throw new Error("no repository");const h=f&&o.fromUrl(f.replace(/^git\+/,""),c)||null;if(h)return h;const d=r(f);return o.fromUrl(d,c)||d}static parseUrl(u){return s(u)}#r(u,c){if(typeof u!="function")return null;const a={...this,...this.opts,...c};a.path||(a.path=""),a.path.startsWith("/")&&(a.path=a.path.slice(1)),a.noCommittish&&(a.committish=null);const f=u(a);return a.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(u){return this.#r(this.sshtemplate,u)}sshurl(u){return this.#r(this.sshurltemplate,u)}browse(u,...c){return typeof u!="string"?this.#r(this.browsetemplate,u):typeof c[0]!="string"?this.#r(this.browsetreetemplate,{...c[0],path:u}):this.#r(this.browsetreetemplate,{...c[1],fragment:c[0],path:u})}browseFile(u,...c){return typeof c[0]!="string"?this.#r(this.browseblobtemplate,{...c[0],path:u}):this.#r(this.browseblobtemplate,{...c[1],fragment:c[0],path:u})}docs(u){return this.#r(this.docstemplate,u)}bugs(u){return this.#r(this.bugstemplate,u)}https(u){return this.#r(this.httpstemplate,u)}git(u){return this.#r(this.gittemplate,u)}shortcut(u){return this.#r(this.shortcuttemplate,u)}path(u){return this.#r(this.pathtemplate,u)}tarball(u){return this.#r(this.tarballtemplate,{...u,noCommittish:!1})}file(u,c){return this.#r(this.filetemplate,{...c,path:u})}edit(u,c){return this.#r(this.edittemplate,{...c,path:u})}getDefaultRepresentation(){return this.default}toString(u){return this.default&&typeof this[this.default]=="function"?this[this.default](u):this.sshurl(u)}}for(const[l,u]of Object.entries(t))o.addHost(l,u);return dc=o,dc}var dI=UC();const pI=ft(dI);async function gI(e,{pkgFile:t}={}){return(await Im(e,{pkgFile:t}))?.repository??null}async function mI(e,t,{pkgFile:n}={}){const s=await gI(e,{pkgFile:n});if(!s)return null;let i,r="";if(typeof s=="string"){i=s;try{const o=new Ft.URL(i);if(o.protocol==="https:"||o.protocol==="http:")return i}catch{}}else typeof s.url=="string"&&(i=s.url,typeof s.directory=="string"&&(r=s.directory));if(typeof i=="string"&&typeof r=="string"){const o=pI.fromUrl(i)?.browse(r);return o!==void 0?o.replace(/\/$/,"").replace(/\/tree\/HEAD$/,""):i}return null}var pc,p1;function yI(){if(p1)return pc;p1=1;var e=typeof $r=="object"&&$r&&$r.Object===Object&&$r;return pc=e,pc}var gc,g1;function Jr(){if(g1)return gc;g1=1;var e=yI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return gc=n,gc}var mc,m1;function _a(){if(m1)return mc;m1=1;var e=Jr(),t=e.Symbol;return mc=t,mc}var yc,y1;function vI(){if(y1)return yc;y1=1;function e(t,n){for(var s=-1,i=t==null?0:t.length,r=Array(i);++s<i;)r[s]=n(t[s],s,t);return r}return yc=e,yc}var vc,v1;function oi(){if(v1)return vc;v1=1;var e=Array.isArray;return vc=e,vc}var Ec,E1;function EI(){if(E1)return Ec;E1=1;var e=_a(),t=Object.prototype,n=t.hasOwnProperty,s=t.toString,i=e?e.toStringTag:void 0;function r(o){var l=n.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var a=s.call(o);return c&&(l?o[i]=u:delete o[i]),a}return Ec=r,Ec}var bc,b1;function bI(){if(b1)return bc;b1=1;var e=Object.prototype,t=e.toString;function n(s){return t.call(s)}return bc=n,bc}var _c,_1;function Lm(){if(_1)return _c;_1=1;var e=_a(),t=EI(),n=bI(),s="[object Null]",i="[object Undefined]",r=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:s:r&&r in Object(l)?t(l):n(l)}return _c=o,_c}var wc,w1;function wa(){if(w1)return wc;w1=1;function e(t){return t!=null&&typeof t=="object"}return wc=e,wc}var Dc,D1;function Da(){if(D1)return Dc;D1=1;var e=Lm(),t=wa(),n="[object Symbol]";function s(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Dc=s,Dc}var Sc,S1;function _I(){if(S1)return Sc;S1=1;var e=_a(),t=vI(),n=oi(),s=Da(),i=e?e.prototype:void 0,r=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(s(l))return r?r.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return Sc=o,Sc}var Ac,A1;function HC(){if(A1)return Ac;A1=1;var e=_I();function t(n){return n==null?"":e(n)}return Ac=t,Ac}var Rc,R1;function wI(){if(R1)return Rc;R1=1;var e=HC(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);function s(i){return i=e(i),i&&n.test(i)?i.replace(t,"\\$&"):i}return Rc=s,Rc}var DI=wI();const SI=ft(DI);var Cc,C1;function AI(){if(C1)return Cc;C1=1;var e=oi(),t=Da(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function i(r,o){if(e(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||t(r)?!0:s.test(r)||!n.test(r)||o!=null&&r in Object(o)}return Cc=i,Cc}var Tc,T1;function fs(){if(T1)return Tc;T1=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Tc=e,Tc}var Oc,O1;function RI(){if(O1)return Oc;O1=1;var e=Lm(),t=fs(),n="[object AsyncFunction]",s="[object Function]",i="[object GeneratorFunction]",r="[object Proxy]";function o(l){if(!t(l))return!1;var u=e(l);return u==s||u==i||u==n||u==r}return Oc=o,Oc}var xc,x1;function CI(){if(x1)return xc;x1=1;var e=Jr(),t=e["__core-js_shared__"];return xc=t,xc}var Fc,F1;function TI(){if(F1)return Fc;F1=1;var e=CI(),t=(function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function n(s){return!!t&&t in s}return Fc=n,Fc}var Ic,I1;function OI(){if(I1)return Ic;I1=1;var e=Function.prototype,t=e.toString;function n(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return Ic=n,Ic}var Lc,L1;function xI(){if(L1)return Lc;L1=1;var e=RI(),t=TI(),n=fs(),s=OI(),i=/[\\^$.*+?()[\]{}|]/g,r=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,c=l.hasOwnProperty,a=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!n(h)||t(h))return!1;var d=e(h)?a:r;return d.test(s(h))}return Lc=f,Lc}var kc,k1;function FI(){if(k1)return kc;k1=1;function e(t,n){return t?.[n]}return kc=e,kc}var Nc,N1;function Sa(){if(N1)return Nc;N1=1;var e=xI(),t=FI();function n(s,i){var r=t(s,i);return e(r)?r:void 0}return Nc=n,Nc}var Pc,P1;function Aa(){if(P1)return Pc;P1=1;var e=Sa(),t=e(Object,"create");return Pc=t,Pc}var $c,$1;function II(){if($1)return $c;$1=1;var e=Aa();function t(){this.__data__=e?e(null):{},this.size=0}return $c=t,$c}var Bc,B1;function LI(){if(B1)return Bc;B1=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Bc=e,Bc}var Mc,M1;function kI(){if(M1)return Mc;M1=1;var e=Aa(),t="__lodash_hash_undefined__",n=Object.prototype,s=n.hasOwnProperty;function i(r){var o=this.__data__;if(e){var l=o[r];return l===t?void 0:l}return s.call(o,r)?o[r]:void 0}return Mc=i,Mc}var qc,q1;function NI(){if(q1)return qc;q1=1;var e=Aa(),t=Object.prototype,n=t.hasOwnProperty;function s(i){var r=this.__data__;return e?r[i]!==void 0:n.call(r,i)}return qc=s,qc}var jc,j1;function PI(){if(j1)return jc;j1=1;var e=Aa(),t="__lodash_hash_undefined__";function n(s,i){var r=this.__data__;return this.size+=this.has(s)?0:1,r[s]=e&&i===void 0?t:i,this}return jc=n,jc}var Uc,U1;function $I(){if(U1)return Uc;U1=1;var e=II(),t=LI(),n=kI(),s=NI(),i=PI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,Uc=r,Uc}var Hc,H1;function BI(){if(H1)return Hc;H1=1;function e(){this.__data__=[],this.size=0}return Hc=e,Hc}var zc,z1;function MI(){if(z1)return zc;z1=1;function e(t,n){return t===n||t!==t&&n!==n}return zc=e,zc}var Gc,G1;function Ra(){if(G1)return Gc;G1=1;var e=MI();function t(n,s){for(var i=n.length;i--;)if(e(n[i][0],s))return i;return-1}return Gc=t,Gc}var Wc,W1;function qI(){if(W1)return Wc;W1=1;var e=Ra(),t=Array.prototype,n=t.splice;function s(i){var r=this.__data__,o=e(r,i);if(o<0)return!1;var l=r.length-1;return o==l?r.pop():n.call(r,o,1),--this.size,!0}return Wc=s,Wc}var Vc,V1;function jI(){if(V1)return Vc;V1=1;var e=Ra();function t(n){var s=this.__data__,i=e(s,n);return i<0?void 0:s[i][1]}return Vc=t,Vc}var Yc,Y1;function UI(){if(Y1)return Yc;Y1=1;var e=Ra();function t(n){return e(this.__data__,n)>-1}return Yc=t,Yc}var Kc,K1;function HI(){if(K1)return Kc;K1=1;var e=Ra();function t(n,s){var i=this.__data__,r=e(i,n);return r<0?(++this.size,i.push([n,s])):i[r][1]=s,this}return Kc=t,Kc}var Zc,Z1;function zI(){if(Z1)return Zc;Z1=1;var e=BI(),t=qI(),n=jI(),s=UI(),i=HI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,Zc=r,Zc}var Jc,J1;function GI(){if(J1)return Jc;J1=1;var e=Sa(),t=Jr(),n=e(t,"Map");return Jc=n,Jc}var Xc,X1;function WI(){if(X1)return Xc;X1=1;var e=$I(),t=zI(),n=GI();function s(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Xc=s,Xc}var Qc,Q1;function VI(){if(Q1)return Qc;Q1=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Qc=e,Qc}var el,ev;function Ca(){if(ev)return el;ev=1;var e=VI();function t(n,s){var i=n.__data__;return e(s)?i[typeof s=="string"?"string":"hash"]:i.map}return el=t,el}var tl,tv;function YI(){if(tv)return tl;tv=1;var e=Ca();function t(n){var s=e(this,n).delete(n);return this.size-=s?1:0,s}return tl=t,tl}var rl,rv;function KI(){if(rv)return rl;rv=1;var e=Ca();function t(n){return e(this,n).get(n)}return rl=t,rl}var nl,nv;function ZI(){if(nv)return nl;nv=1;var e=Ca();function t(n){return e(this,n).has(n)}return nl=t,nl}var il,iv;function JI(){if(iv)return il;iv=1;var e=Ca();function t(n,s){var i=e(this,n),r=i.size;return i.set(n,s),this.size+=i.size==r?0:1,this}return il=t,il}var sl,sv;function XI(){if(sv)return sl;sv=1;var e=WI(),t=YI(),n=KI(),s=ZI(),i=JI();function r(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var c=o[l];this.set(c[0],c[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=s,r.prototype.set=i,sl=r,sl}var ol,ov;function QI(){if(ov)return ol;ov=1;var e=XI(),t="Expected a function";function n(s,i){if(typeof s!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var r=function(){var o=arguments,l=i?i.apply(this,o):o[0],u=r.cache;if(u.has(l))return u.get(l);var c=s.apply(this,o);return r.cache=u.set(l,c)||u,c};return r.cache=new(n.Cache||e),r}return n.Cache=e,ol=n,ol}var al,av;function eL(){if(av)return al;av=1;var e=QI(),t=500;function n(s){var i=e(s,function(o){return r.size===t&&r.clear(),o}),r=i.cache;return i}return al=n,al}var ul,uv;function tL(){if(uv)return ul;uv=1;var e=eL(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,s=e(function(i){var r=[];return i.charCodeAt(0)===46&&r.push(""),i.replace(t,function(o,l,u,c){r.push(u?c.replace(n,"$1"):l||o)}),r});return ul=s,ul}var cl,cv;function rL(){if(cv)return cl;cv=1;var e=oi(),t=AI(),n=tL(),s=HC();function i(r,o){return e(r)?r:t(r,o)?[r]:n(s(r))}return cl=i,cl}var ll,lv;function nL(){if(lv)return ll;lv=1;var e=Da();function t(n){if(typeof n=="string"||e(n))return n;var s=n+"";return s=="0"&&1/n==-1/0?"-0":s}return ll=t,ll}var fl,fv;function iL(){if(fv)return fl;fv=1;var e=rL(),t=nL();function n(s,i){i=e(i,s);for(var r=0,o=i.length;s!=null&&r<o;)s=s[t(i[r++])];return r&&r==o?s:void 0}return fl=n,fl}var hl,hv;function sL(){if(hv)return hl;hv=1;var e=iL();function t(n){return function(s){return n==null?void 0:e(n,s)}}return hl=t,hl}var oL=sL();const zC=ft(oL);var dl,dv;function aL(){if(dv)return dl;dv=1;var e=Ft,t=typeof URL>"u"?e.URL||null:URL,n=t?null:e.parse;function s(i){try{var r=new t(i),o=null;r.username&&(o=r.password?r.username+":"+r.password:r.username);var l=r.host||null,u=r.hostname||null,c=r.pathname||null,a=r.pathname+(r.search||"")||null;if(!l&&c&&i.indexOf("//")===-1){var f=c.indexOf("/");f===-1?(l=c,u=c,c=null,a=null):(l=c.slice(0,f),u=l,c=c.slice(f),a=c+(r.search||""))}return{auth:o,hash:r.hash||null,host:l,hostname:u,href:r.href,path:a,pathname:c,port:r.port||null,protocol:r.protocol||null,query:r.search?r.search.slice(1):null,search:r.search||null,slashes:i.indexOf("//")===-1?null:!0}}catch{var h=i.indexOf("#"),d=h===-1?null:i.slice(h),p=h===-1?i:i.slice(0,h),g=p.indexOf("?"),m=g===-1?null:p.slice(g),v=g===-1?p:p.slice(0,g);return{auth:null,hash:d,host:null,hostname:null,href:i,path:p||null,pathname:v||null,port:null,protocol:null,query:m?m.slice(1):null,search:m,slashes:null}}}return dl=t?s:n,dl}var pl,pv;function uL(){if(pv)return pl;pv=1;var e=aL(),t={__proto__:null};function n(c){return/^[a-f0-9]{40}$/i.test(c)}function s(c,a){var f=c.split("#"),h;return f.length>1&&(h=f[f.length-1]),!h&&a.hash&&a.hash.charAt(0)==="#"&&(h=a.hash.slice(1)),h||"master"}function i(c){return c.charAt(0)==="/"?c.slice(1):c}function r(c){return c?c.replace(/\.git$/,""):null}function o(c){if(!c)return null;var a=c.indexOf(":");return a>-1?c.slice(a+1):c}function l(c){var a="http://"+c.replace(/git@([^:]+):/,"$1/");return e(a).host||null}function u(c){if(typeof c!="string"||!c.length||c.indexOf("git@gist")!==-1||c.indexOf("//gist")!==-1)return null;var a=e(c);if(typeof a.path!="string"||!a.path.length||typeof a.pathname!="string"||!a.pathname.length)return null;!a.host&&/^git@/.test(c)===!0&&(a.host=l(c)),a.path=i(a.path),a.pathname=i(a.pathname),a.filepath=null,a.path.indexOf("repos")===0&&(a.path=a.path.slice(6));var f=a.path.split("/").filter(Boolean),h=f[2]==="blob";h&&!n(f[3])&&(a.branch=f[3],f.length>4&&(a.filepath=f.slice(4).join("/")));var d=c.indexOf("blob");h&&d!==-1&&(a.blob=c.slice(d+5));var p=f[2]==="tree",g=c.indexOf("tree");if(p&&g!==-1){var m=g+5,v=c.slice(m),_=v.indexOf("/");_!==-1&&(v=v.slice(0,_)),a.branch=v}if(a.owner=o(f[0]),a.name=r(f[1]),f.length>1&&a.owner&&a.name)a.repo=a.owner+"/"+a.name;else{var y=a.href.split(":");if(y.length===2&&a.href.indexOf("//")===-1){a.repo=a.repo||y[y.length-1];var E=a.repo.split("/");a.owner=E[0],a.name=E[1]}else{var b=a.href.match(/\/([^/]*)$/);a.owner=b?b[1]:null,a.repo=null}if(a.repo&&(!a.owner||!a.name)){var w=a.repo.split("/");w.length===2&&(a.owner=w[0],a.name=w[1])}}return a.branch||(a.branch=f[2]||s(a.path,a),f.length>3&&(a.filepath=f.slice(3).join("/"))),a.host=a.host||"github.com",a.owner=a.owner||null,a.name=a.name||null,a.repository=a.repo,a}return pl=function(a){return t[a]||(t[a]=u(a)),t[a]},pl}var cL=uL();const hs=ft(cL);var Ns={exports:{}},gl,gv;function Ta(){if(gv)return gl;gv=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,i=t-6;return gl={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},gl}var ml,mv;function Oa(){return mv||(mv=1,ml=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{}),ml}var yv;function ds(){return yv||(yv=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=Ta(),r=Oa();t=e.exports={};const o=t.re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],a=t.t={};let f=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,s]],p=m=>{for(const[v,_]of d)m=m.split(`${v}*`).join(`${v}{0,${_}}`).split(`${v}+`).join(`${v}{1,${_}}`);return m},g=(m,v,_)=>{const y=p(v),E=f++;r(m,E,v),a[m]=E,u[E]=v,c[E]=y,o[E]=new RegExp(v,_?"g":void 0),l[E]=new RegExp(y,_?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[a.NONNUMERICIDENTIFIER]}|${u[a.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[a.NONNUMERICIDENTIFIER]}|${u[a.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${u[a.PRERELEASEIDENTIFIER]}(?:\\.${u[a.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[a.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${u[a.BUILDIDENTIFIER]}(?:\\.${u[a.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[a.MAINVERSION]}${u[a.PRERELEASE]}?${u[a.BUILD]}?`),g("FULL",`^${u[a.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[a.MAINVERSIONLOOSE]}${u[a.PRERELEASELOOSE]}?${u[a.BUILD]}?`),g("LOOSE",`^${u[a.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[a.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:${u[a.PRERELEASE]})?${u[a.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:${u[a.PRERELEASELOOSE]})?${u[a.BUILD]}?)?)?`),g("XRANGE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${u[a.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[a.COERCEPLAIN]+`(?:${u[a.PRERELEASE]})?(?:${u[a.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",u[a.COERCE],!0),g("COERCERTLFULL",u[a.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${u[a.LONECARET]}${u[a.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[a.LONECARET]}${u[a.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[a.GTLT]}\\s*(${u[a.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]}|${u[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[a.XRANGEPLAIN]})\\s+-\\s+(${u[a.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[a.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ns,Ns.exports)),Ns.exports}var yl,vv;function km(){if(vv)return yl;vv=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return yl=s=>s?typeof s!="object"?e:s:t,yl}var vl,Ev;function GC(){if(Ev)return vl;Ev=1;const e=/^[0-9]+$/,t=(s,i)=>{if(typeof s=="number"&&typeof i=="number")return s===i?0:s<i?-1:1;const r=e.test(s),o=e.test(i);return r&&o&&(s=+s,i=+i),s===i?0:r&&!o?-1:o&&!r?1:s<i?-1:1};return vl={compareIdentifiers:t,rcompareIdentifiers:(s,i)=>t(i,s)},vl}var El,bv;function Vt(){if(bv)return El;bv=1;const e=Oa(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ta(),{safeRe:s,t:i}=ds(),r=km(),{compareIdentifiers:o}=GC();class l{constructor(c,a){if(a=r(a),c instanceof l){if(c.loose===!!a.loose&&c.includePrerelease===!!a.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const f=c.trim().match(a.loose?s[i.LOOSE]:s[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const d=+h;if(d>=0&&d<n)return d}return h}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(e("SemVer.compare",this.version,this.options,c),!(c instanceof l)){if(typeof c=="string"&&c===this.version)return 0;c=new l(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof l||(c=new l(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof l||(c=new l(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let a=0;do{const f=this.prerelease[a],h=c.prerelease[a];if(e("prerelease compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return o(f,h)}while(++a)}compareBuild(c){c instanceof l||(c=new l(c,this.options));let a=0;do{const f=this.build[a],h=c.build[a];if(e("build compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return o(f,h)}while(++a)}inc(c,a,f){if(c.startsWith("pre")){if(!a&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(a){const h=`-${a}`.match(this.options.loose?s[i.PRERELEASELOOSE]:s[i.PRERELEASE]);if(!h||h[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,f),this.inc("pre",a,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,f),this.inc("pre",a,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let d=this.prerelease.length;for(;--d>=0;)typeof this.prerelease[d]=="number"&&(this.prerelease[d]++,d=-2);if(d===-1){if(a===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(a){let d=[a,h];f===!1&&(d=[a]),o(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return El=l,El}var bl,_v;function ai(){if(_v)return bl;_v=1;const e=Vt();return bl=(n,s,i=!1)=>{if(n instanceof e)return n;try{return new e(n,s)}catch(r){if(!i)return null;throw r}},bl}var _l,wv;function lL(){if(wv)return _l;wv=1;const e=ai();return _l=(n,s)=>{const i=e(n,s);return i?i.version:null},_l}var wl,Dv;function fL(){if(Dv)return wl;Dv=1;const e=ai();return wl=(n,s)=>{const i=e(n.trim().replace(/^[=v]+/,""),s);return i?i.version:null},wl}var Dl,Sv;function hL(){if(Sv)return Dl;Sv=1;const e=Vt();return Dl=(n,s,i,r,o)=>{typeof i=="string"&&(o=r,r=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(s,r,o).version}catch{return null}},Dl}var Sl,Av;function WC(){if(Av)return Sl;Av=1;const e=ai();return Sl=(n,s)=>{const i=e(n,null,!0),r=e(s,null,!0),o=i.compare(r);if(o===0)return null;const l=o>0,u=l?i:r,c=l?r:i,a=!!u.prerelease.length;if(!!c.prerelease.length&&!a){if(!c.patch&&!c.minor)return"major";if(c.compareMain(u)===0)return c.minor&&!c.patch?"minor":"patch"}const h=a?"pre":"";return i.major!==r.major?h+"major":i.minor!==r.minor?h+"minor":i.patch!==r.patch?h+"patch":"prerelease"},Sl}var Al,Rv;function dL(){if(Rv)return Al;Rv=1;const e=Vt();return Al=(n,s)=>new e(n,s).major,Al}var Rl,Cv;function pL(){if(Cv)return Rl;Cv=1;const e=Vt();return Rl=(n,s)=>new e(n,s).minor,Rl}var Cl,Tv;function gL(){if(Tv)return Cl;Tv=1;const e=Vt();return Cl=(n,s)=>new e(n,s).patch,Cl}var Tl,Ov;function mL(){if(Ov)return Tl;Ov=1;const e=ai();return Tl=(n,s)=>{const i=e(n,s);return i&&i.prerelease.length?i.prerelease:null},Tl}var Ol,xv;function br(){if(xv)return Ol;xv=1;const e=Vt();return Ol=(n,s,i)=>new e(n,i).compare(new e(s,i)),Ol}var xl,Fv;function yL(){if(Fv)return xl;Fv=1;const e=br();return xl=(n,s,i)=>e(s,n,i),xl}var Fl,Iv;function vL(){if(Iv)return Fl;Iv=1;const e=br();return Fl=(n,s)=>e(n,s,!0),Fl}var Il,Lv;function Nm(){if(Lv)return Il;Lv=1;const e=Vt();return Il=(n,s,i)=>{const r=new e(n,i),o=new e(s,i);return r.compare(o)||r.compareBuild(o)},Il}var Ll,kv;function EL(){if(kv)return Ll;kv=1;const e=Nm();return Ll=(n,s)=>n.sort((i,r)=>e(i,r,s)),Ll}var kl,Nv;function bL(){if(Nv)return kl;Nv=1;const e=Nm();return kl=(n,s)=>n.sort((i,r)=>e(r,i,s)),kl}var Nl,Pv;function ps(){if(Pv)return Nl;Pv=1;const e=br();return Nl=(n,s,i)=>e(n,s,i)>0,Nl}var Pl,$v;function Pm(){if($v)return Pl;$v=1;const e=br();return Pl=(n,s,i)=>e(n,s,i)<0,Pl}var $l,Bv;function VC(){if(Bv)return $l;Bv=1;const e=br();return $l=(n,s,i)=>e(n,s,i)===0,$l}var Bl,Mv;function YC(){if(Mv)return Bl;Mv=1;const e=br();return Bl=(n,s,i)=>e(n,s,i)!==0,Bl}var Ml,qv;function $m(){if(qv)return Ml;qv=1;const e=br();return Ml=(n,s,i)=>e(n,s,i)>=0,Ml}var ql,jv;function Bm(){if(jv)return ql;jv=1;const e=br();return ql=(n,s,i)=>e(n,s,i)<=0,ql}var jl,Uv;function KC(){if(Uv)return jl;Uv=1;const e=VC(),t=YC(),n=ps(),s=$m(),i=Pm(),r=Bm();return jl=(l,u,c,a)=>{switch(u){case"===":return typeof l=="object"&&(l=l.version),typeof c=="object"&&(c=c.version),l===c;case"!==":return typeof l=="object"&&(l=l.version),typeof c=="object"&&(c=c.version),l!==c;case"":case"=":case"==":return e(l,c,a);case"!=":return t(l,c,a);case">":return n(l,c,a);case">=":return s(l,c,a);case"<":return i(l,c,a);case"<=":return r(l,c,a);default:throw new TypeError(`Invalid operator: ${u}`)}},jl}var Ul,Hv;function _L(){if(Hv)return Ul;Hv=1;const e=Vt(),t=ai(),{safeRe:n,t:s}=ds();return Ul=(r,o)=>{if(r instanceof e)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;o=o||{};let l=null;if(!o.rtl)l=r.match(o.includePrerelease?n[s.COERCEFULL]:n[s.COERCE]);else{const d=o.includePrerelease?n[s.COERCERTLFULL]:n[s.COERCERTL];let p;for(;(p=d.exec(r))&&(!l||l.index+l[0].length!==r.length);)(!l||p.index+p[0].length!==l.index+l[0].length)&&(l=p),d.lastIndex=p.index+p[1].length+p[2].length;d.lastIndex=-1}if(l===null)return null;const u=l[2],c=l[3]||"0",a=l[4]||"0",f=o.includePrerelease&&l[5]?`-${l[5]}`:"",h=o.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${u}.${c}.${a}${f}${h}`,o)},Ul}var Hl,zv;function wL(){if(zv)return Hl;zv=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const s=this.map.get(n);if(s!==void 0)return this.map.delete(n),this.map.set(n,s),s}delete(n){return this.map.delete(n)}set(n,s){if(!this.delete(n)&&s!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(n,s)}return this}}return Hl=e,Hl}var zl,Gv;function _r(){if(Gv)return zl;Gv=1;const e=/\s+/g;class t{constructor(Y,x){if(x=i(x),Y instanceof t)return Y.loose===!!x.loose&&Y.includePrerelease===!!x.includePrerelease?Y:new t(Y.raw,x);if(Y instanceof r)return this.raw=Y.value,this.set=[[Y]],this.formatted=void 0,this;if(this.options=x,this.loose=!!x.loose,this.includePrerelease=!!x.includePrerelease,this.raw=Y.trim().replace(e," "),this.set=this.raw.split("||").map(I=>this.parseRange(I.trim())).filter(I=>I.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const I=this.set[0];if(this.set=this.set.filter(O=>!g(O[0])),this.set.length===0)this.set=[I];else if(this.set.length>1){for(const O of this.set)if(O.length===1&&m(O[0])){this.set=[O];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Y=0;Y<this.set.length;Y++){Y>0&&(this.formatted+="||");const x=this.set[Y];for(let I=0;I<x.length;I++)I>0&&(this.formatted+=" "),this.formatted+=x[I].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Y){const I=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+Y,O=s.get(I);if(O)return O;const j=this.options.loose,P=j?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];Y=Y.replace(P,$(this.options.includePrerelease)),o("hyphen replace",Y),Y=Y.replace(u[c.COMPARATORTRIM],a),o("comparator trim",Y),Y=Y.replace(u[c.TILDETRIM],f),o("tilde trim",Y),Y=Y.replace(u[c.CARETTRIM],h),o("caret trim",Y);let R=Y.split(" ").map(X=>_(X,this.options)).join(" ").split(/\s+/).map(X=>k(X,this.options));j&&(R=R.filter(X=>(o("loose invalid filter",X,this.options),!!X.match(u[c.COMPARATORLOOSE])))),o("range list",R);const F=new Map,V=R.map(X=>new r(X,this.options));for(const X of V){if(g(X))return[X];F.set(X.value,X)}F.size>1&&F.has("")&&F.delete("");const K=[...F.values()];return s.set(I,K),K}intersects(Y,x){if(!(Y instanceof t))throw new TypeError("a Range is required");return this.set.some(I=>v(I,x)&&Y.set.some(O=>v(O,x)&&I.every(j=>O.every(P=>j.intersects(P,x)))))}test(Y){if(!Y)return!1;if(typeof Y=="string")try{Y=new l(Y,this.options)}catch{return!1}for(let x=0;x<this.set.length;x++)if(H(this.set[x],Y,this.options))return!0;return!1}}zl=t;const n=wL(),s=new n,i=km(),r=xa(),o=Oa(),l=Vt(),{safeRe:u,t:c,comparatorTrimReplace:a,tildeTrimReplace:f,caretTrimReplace:h}=ds(),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=Ta(),g=B=>B.value==="<0.0.0-0",m=B=>B.value==="",v=(B,Y)=>{let x=!0;const I=B.slice();let O=I.pop();for(;x&&I.length;)x=I.every(j=>O.intersects(j,Y)),O=I.pop();return x},_=(B,Y)=>(B=B.replace(u[c.BUILD],""),o("comp",B,Y),B=w(B,Y),o("caret",B),B=E(B,Y),o("tildes",B),B=C(B,Y),o("xrange",B),B=L(B,Y),o("stars",B),B),y=B=>!B||B.toLowerCase()==="x"||B==="*",E=(B,Y)=>B.trim().split(/\s+/).map(x=>b(x,Y)).join(" "),b=(B,Y)=>{const x=Y.loose?u[c.TILDELOOSE]:u[c.TILDE];return B.replace(x,(I,O,j,P,R)=>{o("tilde",B,I,O,j,P,R);let F;return y(O)?F="":y(j)?F=`>=${O}.0.0 <${+O+1}.0.0-0`:y(P)?F=`>=${O}.${j}.0 <${O}.${+j+1}.0-0`:R?(o("replaceTilde pr",R),F=`>=${O}.${j}.${P}-${R} <${O}.${+j+1}.0-0`):F=`>=${O}.${j}.${P} <${O}.${+j+1}.0-0`,o("tilde return",F),F})},w=(B,Y)=>B.trim().split(/\s+/).map(x=>S(x,Y)).join(" "),S=(B,Y)=>{o("caret",B,Y);const x=Y.loose?u[c.CARETLOOSE]:u[c.CARET],I=Y.includePrerelease?"-0":"";return B.replace(x,(O,j,P,R,F)=>{o("caret",B,O,j,P,R,F);let V;return y(j)?V="":y(P)?V=`>=${j}.0.0${I} <${+j+1}.0.0-0`:y(R)?j==="0"?V=`>=${j}.${P}.0${I} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.0${I} <${+j+1}.0.0-0`:F?(o("replaceCaret pr",F),j==="0"?P==="0"?V=`>=${j}.${P}.${R}-${F} <${j}.${P}.${+R+1}-0`:V=`>=${j}.${P}.${R}-${F} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.${R}-${F} <${+j+1}.0.0-0`):(o("no pr"),j==="0"?P==="0"?V=`>=${j}.${P}.${R}${I} <${j}.${P}.${+R+1}-0`:V=`>=${j}.${P}.${R}${I} <${j}.${+P+1}.0-0`:V=`>=${j}.${P}.${R} <${+j+1}.0.0-0`),o("caret return",V),V})},C=(B,Y)=>(o("replaceXRanges",B,Y),B.split(/\s+/).map(x=>T(x,Y)).join(" ")),T=(B,Y)=>{B=B.trim();const x=Y.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return B.replace(x,(I,O,j,P,R,F)=>{o("xRange",B,I,O,j,P,R,F);const V=y(j),K=V||y(P),X=K||y(R),ce=X;return O==="="&&ce&&(O=""),F=Y.includePrerelease?"-0":"",V?O===">"||O==="<"?I="<0.0.0-0":I="*":O&&ce?(K&&(P=0),R=0,O===">"?(O=">=",K?(j=+j+1,P=0,R=0):(P=+P+1,R=0)):O==="<="&&(O="<",K?j=+j+1:P=+P+1),O==="<"&&(F="-0"),I=`${O+j}.${P}.${R}${F}`):K?I=`>=${j}.0.0${F} <${+j+1}.0.0-0`:X&&(I=`>=${j}.${P}.0${F} <${j}.${+P+1}.0-0`),o("xRange return",I),I})},L=(B,Y)=>(o("replaceStars",B,Y),B.trim().replace(u[c.STAR],"")),k=(B,Y)=>(o("replaceGTE0",B,Y),B.trim().replace(u[Y.includePrerelease?c.GTE0PRE:c.GTE0],"")),$=B=>(Y,x,I,O,j,P,R,F,V,K,X,ce)=>(y(I)?x="":y(O)?x=`>=${I}.0.0${B?"-0":""}`:y(j)?x=`>=${I}.${O}.0${B?"-0":""}`:P?x=`>=${x}`:x=`>=${x}${B?"-0":""}`,y(V)?F="":y(K)?F=`<${+V+1}.0.0-0`:y(X)?F=`<${V}.${+K+1}.0-0`:ce?F=`<=${V}.${K}.${X}-${ce}`:B?F=`<${V}.${K}.${+X+1}-0`:F=`<=${F}`,`${x} ${F}`.trim()),H=(B,Y,x)=>{for(let I=0;I<B.length;I++)if(!B[I].test(Y))return!1;if(Y.prerelease.length&&!x.includePrerelease){for(let I=0;I<B.length;I++)if(o(B[I].semver),B[I].semver!==r.ANY&&B[I].semver.prerelease.length>0){const O=B[I].semver;if(O.major===Y.major&&O.minor===Y.minor&&O.patch===Y.patch)return!0}return!1}return!0};return zl}var Gl,Wv;function xa(){if(Wv)return Gl;Wv=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,f){if(f=n(f),a instanceof t){if(a.loose===!!f.loose)return a;a=a.value}a=a.trim().split(/\s+/).join(" "),o("comparator",a,f),this.options=f,this.loose=!!f.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const f=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],h=a.match(f);if(!h)throw new TypeError(`Invalid comparator: ${a}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new l(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new l(a,this.options)}catch{return!1}return r(a,this.operator,this.semver,this.options)}intersects(a,f){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(a.value,f).test(this.value):a.operator===""?a.value===""?!0:new u(this.value,f).test(a.semver):(f=n(f),f.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||r(this.semver,"<",a.semver,f)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||r(this.semver,">",a.semver,f)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}Gl=t;const n=km(),{safeRe:s,t:i}=ds(),r=KC(),o=Oa(),l=Vt(),u=_r();return Gl}var Wl,Vv;function Fa(){if(Vv)return Wl;Vv=1;const e=_r();return Wl=(n,s,i)=>{try{s=new e(s,i)}catch{return!1}return s.test(n)},Wl}var Vl,Yv;function DL(){if(Yv)return Vl;Yv=1;const e=_r();return Vl=(n,s)=>new e(n,s).set.map(i=>i.map(r=>r.value).join(" ").trim().split(" ")),Vl}var Yl,Kv;function SL(){if(Kv)return Yl;Kv=1;const e=Vt(),t=_r();return Yl=(s,i,r)=>{let o=null,l=null,u=null;try{u=new t(i,r)}catch{return null}return s.forEach(c=>{u.test(c)&&(!o||l.compare(c)===-1)&&(o=c,l=new e(o,r))}),o},Yl}var Kl,Zv;function AL(){if(Zv)return Kl;Zv=1;const e=Vt(),t=_r();return Kl=(s,i,r)=>{let o=null,l=null,u=null;try{u=new t(i,r)}catch{return null}return s.forEach(c=>{u.test(c)&&(!o||l.compare(c)===1)&&(o=c,l=new e(o,r))}),o},Kl}var Zl,Jv;function RL(){if(Jv)return Zl;Jv=1;const e=Vt(),t=_r(),n=ps();return Zl=(i,r)=>{i=new t(i,r);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let l=0;l<i.set.length;++l){const u=i.set[l];let c=null;u.forEach(a=>{const f=new e(a.semver.version);switch(a.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!c||n(f,c))&&(c=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),c&&(!o||n(o,c))&&(o=c)}return o&&i.test(o)?o:null},Zl}var Jl,Xv;function CL(){if(Xv)return Jl;Xv=1;const e=_r();return Jl=(n,s)=>{try{return new e(n,s).range||"*"}catch{return null}},Jl}var Xl,Qv;function Mm(){if(Qv)return Xl;Qv=1;const e=Vt(),t=xa(),{ANY:n}=t,s=_r(),i=Fa(),r=ps(),o=Pm(),l=Bm(),u=$m();return Xl=(a,f,h,d)=>{a=new e(a,d),f=new s(f,d);let p,g,m,v,_;switch(h){case">":p=r,g=l,m=o,v=">",_=">=";break;case"<":p=o,g=u,m=r,v="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(a,f,d))return!1;for(let y=0;y<f.set.length;++y){const E=f.set[y];let b=null,w=null;if(E.forEach(S=>{S.semver===n&&(S=new t(">=0.0.0")),b=b||S,w=w||S,p(S.semver,b.semver,d)?b=S:m(S.semver,w.semver,d)&&(w=S)}),b.operator===v||b.operator===_||(!w.operator||w.operator===v)&&g(a,w.semver))return!1;if(w.operator===_&&m(a,w.semver))return!1}return!0},Xl}var Ql,eE;function TL(){if(eE)return Ql;eE=1;const e=Mm();return Ql=(n,s,i)=>e(n,s,">",i),Ql}var ef,tE;function OL(){if(tE)return ef;tE=1;const e=Mm();return ef=(n,s,i)=>e(n,s,"<",i),ef}var tf,rE;function xL(){if(rE)return tf;rE=1;const e=_r();return tf=(n,s,i)=>(n=new e(n,i),s=new e(s,i),n.intersects(s,i)),tf}var rf,nE;function FL(){if(nE)return rf;nE=1;const e=Fa(),t=br();return rf=(n,s,i)=>{const r=[];let o=null,l=null;const u=n.sort((h,d)=>t(h,d,i));for(const h of u)e(h,s,i)?(l=h,o||(o=h)):(l&&r.push([o,l]),l=null,o=null);o&&r.push([o,null]);const c=[];for(const[h,d]of r)h===d?c.push(h):!d&&h===u[0]?c.push("*"):d?h===u[0]?c.push(`<=${d}`):c.push(`${h} - ${d}`):c.push(`>=${h}`);const a=c.join(" || "),f=typeof s.raw=="string"?s.raw:String(s);return a.length<f.length?a:s},rf}var nf,iE;function IL(){if(iE)return nf;iE=1;const e=_r(),t=xa(),{ANY:n}=t,s=Fa(),i=br(),r=(f,h,d={})=>{if(f===h)return!0;f=new e(f,d),h=new e(h,d);let p=!1;e:for(const g of f.set){for(const m of h.set){const v=u(g,m,d);if(p=p||v!==null,v)continue e}if(p)return!1}return!0},o=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],u=(f,h,d)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===n){if(h.length===1&&h[0].semver===n)return!0;d.includePrerelease?f=o:f=l}if(h.length===1&&h[0].semver===n){if(d.includePrerelease)return!0;h=l}const p=new Set;let g,m;for(const C of f)C.operator===">"||C.operator===">="?g=c(g,C,d):C.operator==="<"||C.operator==="<="?m=a(m,C,d):p.add(C.semver);if(p.size>1)return null;let v;if(g&&m){if(v=i(g.semver,m.semver,d),v>0)return null;if(v===0&&(g.operator!==">="||m.operator!=="<="))return null}for(const C of p){if(g&&!s(C,String(g),d)||m&&!s(C,String(m),d))return null;for(const T of h)if(!s(C,String(T),d))return!1;return!0}let _,y,E,b,w=m&&!d.includePrerelease&&m.semver.prerelease.length?m.semver:!1,S=g&&!d.includePrerelease&&g.semver.prerelease.length?g.semver:!1;w&&w.prerelease.length===1&&m.operator==="<"&&w.prerelease[0]===0&&(w=!1);for(const C of h){if(b=b||C.operator===">"||C.operator===">=",E=E||C.operator==="<"||C.operator==="<=",g){if(S&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===S.major&&C.semver.minor===S.minor&&C.semver.patch===S.patch&&(S=!1),C.operator===">"||C.operator===">="){if(_=c(g,C,d),_===C&&_!==g)return!1}else if(g.operator===">="&&!s(g.semver,String(C),d))return!1}if(m){if(w&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===w.major&&C.semver.minor===w.minor&&C.semver.patch===w.patch&&(w=!1),C.operator==="<"||C.operator==="<="){if(y=a(m,C,d),y===C&&y!==m)return!1}else if(m.operator==="<="&&!s(m.semver,String(C),d))return!1}if(!C.operator&&(m||g)&&v!==0)return!1}return!(g&&E&&!m&&v!==0||m&&b&&!g&&v!==0||S||w)},c=(f,h,d)=>{if(!f)return h;const p=i(f.semver,h.semver,d);return p>0?f:p<0||h.operator===">"&&f.operator===">="?h:f},a=(f,h,d)=>{if(!f)return h;const p=i(f.semver,h.semver,d);return p<0?f:p>0||h.operator==="<"&&f.operator==="<="?h:f};return nf=r,nf}var sf,sE;function qm(){if(sE)return sf;sE=1;const e=ds(),t=Ta(),n=Vt(),s=GC(),i=ai(),r=lL(),o=fL(),l=hL(),u=WC(),c=dL(),a=pL(),f=gL(),h=mL(),d=br(),p=yL(),g=vL(),m=Nm(),v=EL(),_=bL(),y=ps(),E=Pm(),b=VC(),w=YC(),S=$m(),C=Bm(),T=KC(),L=_L(),k=xa(),$=_r(),H=Fa(),B=DL(),Y=SL(),x=AL(),I=RL(),O=CL(),j=Mm(),P=TL(),R=OL(),F=xL(),V=FL(),K=IL();return sf={parse:i,valid:r,clean:o,inc:l,diff:u,major:c,minor:a,patch:f,prerelease:h,compare:d,rcompare:p,compareLoose:g,compareBuild:m,sort:v,rsort:_,gt:y,lt:E,eq:b,neq:w,gte:S,lte:C,cmp:T,coerce:L,Comparator:k,Range:$,satisfies:H,toComparators:B,maxSatisfying:Y,minSatisfying:x,minVersion:I,validRange:O,outside:j,gtr:P,ltr:R,intersects:F,simplifyRange:V,subset:K,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},sf}var pt=qm();const _t=ft(pt);var kn={},oE;function LL(){return oE||(oE=1,(function(){var e=/^v?((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/,t=/\s*((\|\||\-)|(((?:(?:~?[<>]?)|\^?)=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g;function n(u){var c={};for(var a in u)typeof u[a]<"u"&&(c[a]=u[a]);return c}function s(u){var c="";return c+=u.major||"0",c+=".",c+=u.minor||"0",c+=".",c+=u.patch||"0",u.release&&(c+="-"+u.release),u.build&&(c+="+"+u.build),c}function i(u){var c="";function a(f){f.operator&&(c+=f.operator+" "),f.major&&(c+=f.toString()+" ")}return u.forEach(a),c.trim()}function r(u){if(u){var c=this;Object.keys(u).forEach(function(a){c[a]=u[a]})}}r.prototype.toString=function(){return s(this)};function o(u){var c=e.exec(u)||[],a=new r(n({semver:c[0],version:c[1],major:c[2],minor:c[3],patch:c[4],release:c[5],build:c[6]}));return c.length===0&&(a=null),a}function l(u){for(var c,a=[],f;c=t.exec(u);)f={semver:c[3],operator:c[4]||c[2],major:c[6],minor:c[8],patch:c[10]},c[12]==="+"&&(f.build=c[13]),c[12]==="-"&&(f.release=c[13]),a.push(new r(n(f)));return a}kn.parse=o,kn.stringify=s,kn.parseRange=l,kn.stringifyRange=i})()),kn}var sr=LL();const ri=ft(sr);function Ia(e,t){return e?e.map(n=>({item:n,key:t(n)})).sort((n,s)=>n.key>s.key?1:n.key<s.key?-1:0).map(({item:n})=>n):[]}const jm=["major","minor","patch"],ZC=["release","build"],Qn=[...jm,...ZC],kL={major:"",minor:".",patch:".",release:"-",build:"+"},JC="^",XC=["^","~",".*",".x"],NL=["^","~","^*","*","x","x.x","x.x.x"],PL=new RegExp(`^(${NL.map(SI).join("|")})$`),QC=/^npm:(.*)@(.*)/;function $L(e){const[t]=ri.parseRange(e);if(!t)throw new Error(qr.format('semverutils.parseRange returned null when trying to parse "%s". This is probably a problem with the "semver-utils" dependency. Please report an issue at https://github.com/raineorshine/npm-check-updates/issues.',e));return Qn.reduce((n,s)=>t[s]?n+1:n,0)}function ni(e,t){return(t?Qn.slice(0,Qn.indexOf(t)+1):Qn).filter(s=>t&&jm.includes(t)||e[s]).map(s=>kL[s]+(e[s]||"0")).join("")}function BL(e){const[t]=ri.parseRange(e);return Qn.slice().reverse().find(zC(t))}function ML(e,t){const[n]=ri.parseRange(e);return ni(n,t)}function qL(e,t){return t==="^"||t==="~"?t+e:ML(e,"major")+t}function Um(e){return PL.test(e)}function eT(e){return e==="*"||e==="x"}function jL(e,t){if(e===t)return"none";/^[~^]/.test(t)&&t[0]===e[0]&&(t=t.slice(1),e=e.slice(1));const n=t.split("."),s=e.split(".");let i=n.findIndex((r,o)=>r!==s[o]);return i=i>=0?i:n.length,n[0]==="0"?"majorVersionZero":i===0?"major":i===1?"minor":"patch"}function tT(e,t,n){const s=ot(e,(o,l,u)=>{const c=t[o],a=jL(c,l),f=n.groupFunction?.(o,a,sr.parseRange(c),sr.parseRange(l),sr.parse(e[o]))??a;return f==="none"?u:{...u,[f]:{...u[f],[o]:l}}}),i={patch:me.green(me.bold("Patch")+" Backwards-compatible bug fixes"),minor:me.cyan(me.bold("Minor")+" Backwards-compatible features"),major:me.red(me.bold("Major")+" Potentially breaking API changes"),majorVersionZero:me.magenta(me.bold("Major version zero")+" Anything may change")};return Array.from(new Set(["patch","minor","major","majorVersionZero",...Object.keys(s).sort()])).filter(o=>o in s).map(o=>({groupName:o,heading:o in i?i[o]:o,packages:s[o]}))}function Hm(e,t){let n="";/^[~^]/.test(t)&&t[0]===e[0]&&(n=t[0],t=t.slice(1),e=e.slice(1));const s=t.split("."),i=e.split(".");let r=s.findIndex((u,c)=>u!==i[c]);r=r>=0?r:s.length;const o=r===0||s[0]==="0"?"red":r===1?"cyan":"green",l=r>0&&r<s.length?".":"";return n+s.slice(0,r).join(".")+l+me[o](s.slice(r).join("."))}const aE=e=>{const t=_t.prerelease(e);return t&&t.slice(0,-1).join(".")};function UL(e,t){const n=aE(e),s=aE(t);return typeof n!="string"||typeof s!="string"||n===s}function zm(e,t){return(_t.valid(e)&&_t.valid(t)?_t.gt(e,t):e>t)?1:e===t?0:-1}function Gm(e,t,n){if(!_t.validRange(t))return null;const s=_t.minVersion(t);return[...e].sort(zm).filter(r=>{const o=_t.parse(r);return o&&(n==="major"||o.major===s?.major)&&(n==="major"||n==="minor"||o.minor===s?.minor)}).at(-1)||null}function gs(e){return BL(e)==="release"}const rT=e=>/^[vV]?\d+$/.test(e),nT=e=>/^[vV]?\d+\.\d+$/.test(e),HL=e=>e.replace(/^[vV]/,""),zL=e=>rT(e)?e+".0.0":e,GL=e=>nT(e)?e+".0":e,Wm=e=>GL(zL(HL(e)));function iT(e){return e&&(e[0]==="v"||e[1]==="v")?"v":""}const sT=(e,t)=>`npm:${e}@${t}`,es=e=>{const t=e&&e.match&&e.match(QC);return t&&t.slice(1)},Yo=e=>e&&!!e.match(QC),WL=(e,t)=>{const n=es(e);return n?sT(n[0],t):null},Zi=e=>{if(!e)return!1;let t=null;try{t=hs(e)}catch{}if(!t||!t.branch)return!1;const n=decodeURIComponent(t.branch).replace(/^semver:/,"");return!!_t.validRange(n)},im=e=>{if(!e)return null;const t=hs(e);if(!t||!t.branch)return null;const n=decodeURIComponent(t.branch).replace(/^semver:/,"");return t&&t.branch&&_t.validRange(n)?n:null};function oT(e,t,n={}){if(n.wildcard=n.wildcard||JC,!t)return e;const[s]=ri.parseRange(t);if(!s)return e;if(n.removeRange)return t;if(Um(e))return e;const i=Ia(ri.parseRange(e).filter(m=>m.operator!=="||"&&m.operator!=="-"),m=>$L(ni(m))),[r]=i;function o(m){return(eT(r[m])?r[m]:jm.includes(m)&&r[m]||ZC.includes(m)?s[m]:null)||null}const l=ot(Qn,m=>({[m]:o(m)})),u=ni(l),c=iT(r.semver)+u,a=Array.from(new Set(i.map(m=>m.operator))),f=a[0]||"",h=XC.some(m=>u.includes(m)),d=a[0]==="<"||a[0]==="<=",p=a[0]===">",g=a.length>1;return!h&&(d||g)?qL(c,n.wildcard):(p?">=":f)+c}const VL=(e,t)=>{const n=iT(e);let s=n?n+t:t;return s=rT(e)?s.slice(0,s.length-4):s,s=nT(e)?s.slice(0,s.length-2):s,s},La=(e,t)=>{const n=Wm(t),s=hs(e);if(!s)return e;const i=decodeURIComponent(s.branch).replace(/^semver:/,"");return e.replace(i,oT(i,VL(i,n)))},uE={silent:0,error:1,minimal:2,warn:3,info:4,verbose:5,silly:6},YL=e=>!e.startsWith("file:")&&!e.startsWith("link:")&&!e.startsWith("workspace:")&&!/^[^/:@]+\/\w+/.test(e);function Me(e,t,n=null,s="log"){!e.json&&e.loglevel!=="silent"&&(n==null||uE[e.loglevel??"warn"]>=uE[n])&&console[s](t)}function Vm(e,t){e.loglevel!=="silent"&&console.log(JSON.stringify(t,null,2))}function KL(e,t){console.log(Object.keys(e).map(n=>n+"@"+e[n]).join(t))}function zr(e,t,n){const i=Object.keys(t).sort().reduce((r,o)=>(r[o]=t[o],r),{});Me(e,i,n)}function Ym(e){const t=new xm({colAligns:["left","right","right","right","left","left"],chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}});return t.push(...e),t.toString().split(`
|
|
55
55
|
`).map(n=>n.trimEnd()).join(`
|
|
56
56
|
`)}function cE(e){return Zi(e)?im(e):Yo(e)?es(e)[1]:e}async function sm({from:e,to:t,format:n,ownersChangedDeps:s,pkgFile:i,time:r}){const o=n?.includes("dep")&&i?JSON.parse(await Ve.readFile(i,"utf-8")):null;return Ym(await Promise.all(Object.keys(t).sort().map(async u=>{const c=(n?.includes("installedVersion")?await lI(u,void 0,{pkgFile:i}):e[u])||"",a=u in(o?.devDependencies??{})?"dev":u in(o?.peerDependencies??{})?"peer":u in(o?.optionalDependencies??{})?"optional":"",f=t[u]||"",h=cE(f),d=s?u in s?s[u]?"*owner changed*":"":"*unknown*":"",p=Hm(cE(c),h),g=n?.includes("homepage")&&(await Im(u,{pkgFile:i}))?.homepage||"",m=n?.includes("repo")&&await mI(u,void 0,{pkgFile:i})||"",v=n?.includes("diff")?`${process.env.NCU_DIFF||"https://npmdiff.dev"}/${encodeURIComponent(u)}/${c.replace(/^\W+/,"")}/${h.replace(/^\W+/,"")}`:"",_=n?.includes("time")&&r?.[u]?r[u]:"";return[u,...n?.includes("dep")?[a?me.gray(a):""]:[],c,"→",p,d,...[g,m,v,_].filter(y=>y)]})))}async function ZL({current:e,upgraded:t,ownersChangedDeps:n,pkgFile:s,time:i},r){if(r.format?.includes("group")){const o=tT(t,e,r);for(const{heading:l,packages:u}of o)Me(r,`
|
|
57
57
|
`+l),Me(r,await sm({from:e,to:u,format:r.format,ownersChangedDeps:n,pkgFile:s,time:i}))}else r.format?.includes("lines")?KL(t,`
|
|
@@ -730,7 +730,7 @@ Error: ${y.message}`,y}}function g(v){return n.default.readFileSync(v,"utf8")}fu
|
|
|
730
730
|
Error: ${E.message}`,E}}return zn}var oj=sj();async function NF({configFileName:e,configFilePath:t,packageFile:n,global:s,options:i}){const{default:r,Chalk:o}=await Promise.resolve().then(()=>require("./index-Bl96b__P.js")),l=i?.color?new o({level:1}):r,u=oj.rcFile("ncurc",{configFileName:e||".ncurc",defaultExtension:[".json",".yml",".js"],cwd:t||(s?Nt.homedir():n?Be.dirname(n):void 0)}),c=u?.filePath;e&&!c&&Qe(i,`Config file ${e} not found in ${t||process.cwd()}`);const{$schema:a,...f}=u?.config||{},h=f;typeof h.format=="string"&&(h.format=En.format.parse(h.format));const d=Object.keys(h).filter(g=>!En[g]);d.length>0&&(console.error(l.red(`Unknown option${d.length===1?"":"s"} found in config file:`),l.gray(d.join(", "))),console.info("Using config file "+c),console.info(`You can change the config file path with ${l.blue("--configFilePath")}`));const p=Object.entries(h).flatMap(([g,m])=>typeof m=="boolean"||En[g]?.type==="boolean"?m?[`--${g}`]:[]:[`--${g}`,m]);return{filePath:c,args:p,config:h}}var nC=Object.prototype.hasOwnProperty;function iC(e,t,n){for(n of e.keys())if(wn(n,t))return n}function wn(e,t){var n,s,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((s=e.length)===t.length)for(;s--&&wn(e[s],t[s]););return s===-1}if(n===Set){if(e.size!==t.size)return!1;for(s of e)if(i=s,i&&typeof i=="object"&&(i=iC(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(s of e)if(i=s[0],i&&typeof i=="object"&&(i=iC(t,i),!i)||!wn(s[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((s=e.byteLength)===t.byteLength)for(;s--&&e.getInt8(s)===t.getInt8(s););return s===-1}if(ArrayBuffer.isView(e)){if((s=e.byteLength)===t.byteLength)for(;s--&&e[s]===t[s];);return s===-1}if(!n||typeof e=="object"){s=0;for(n in e)if(nC.call(e,n)&&++s&&!nC.call(t,n)||!(n in t)||!wn(e[n],t[n]))return!1;return Object.keys(t).length===s}}return e!==e&&t!==t}var aj=oF();const ma=ft(aj),uj=qr.promisify(FC.execFile);async function Bg(e){const t=(await uj("git",["ls-remote","--tags",e])).stdout,n={};for(const s of t.trim().split(`
|
|
731
731
|
`)){const i=s.split(" ");n[i[1].replace(/^refs\/tags\/|\^{}$/g,"")]=i[0]}return n}async function ey(e,t,n){t=t.replace(/^github:/,"");const{auth:s,protocol:i,host:r,path:o}=hs(t);let l;try{if(i!==null)l=await Bg(`${i?i.replace("git+",""):"https:"}//${s?s+"@":""}${r}/${o?.replace(/^:/,"")}`);else try{l=await Bg(`ssh://git@${r}/${o?.replace(/^:/,"")}`)}catch{l=await Bg(`https://${s?s+"@":""}${r}/${o}`)}}catch{Me(n??{},`Invalid, private repo, or no tags for ${e}: ${t}`,"verbose");return}return Object.keys(l).map(Wm).filter(u=>pt.valid(u)).sort(zm)}const cj=async(e,t,n)=>{const s=await ey(e,t,n);if(!s)return{version:null};const i=n?.pre?s:s.filter(o=>!gs(o)),r=i[i.length-1];return{version:r?La(t,r):null}},PF=async(e,t,n)=>{const s=await ey(e,t,n);if(!s)return{version:null};const i=s[s.length-1];return{version:i?La(t,i):null}},ty=e=>async(t,n,s={})=>{const i=decodeURIComponent(hs(n).branch).replace(/^semver:/,""),r=await ey(t,n,s);if(!r)return{version:null};const o=Gm(r.map(l=>l.replace(/^v/,"")),i,e);return{version:o?La(n,o):null}},lj=ty("minor"),fj=ty("patch"),hj=async(e,t,n)=>({version:null}),dj=PF,pj=Object.freeze(Object.defineProperty({__proto__:null,greatest:PF,greatestLevel:ty,latest:cj,minor:lj,newest:dj,patch:fj,semver:hj},Symbol.toStringTag,{value:"Module"})),gj=e=>e&&e.startsWith("http://")||e.startsWith("https://"),mj=async e=>{const t=e.registry;let n;if(gj(t))n=await(await fetch(t)).text();else try{n=await Ve.readFile(t,"utf8")}catch{Qe(e,`
|
|
732
732
|
The specified static registry file does not exist: ${e.registry}`)}return JSON.parse(n)},yj=Xr(mj),vj=async(e,t,n)=>({version:(await yj(n||{}))[e]||null}),Ej=Object.freeze(Object.defineProperty({__proto__:null,latest:vj},Symbol.toStringTag,{value:"Module"})),yn={npm:oP,pnpm:UP,yarn:s3,bun:cP,gitTags:pj,staticRegistry:Ej};function Ui(e){if(typeof e=="string")return e.trim();if(Array.isArray(e)&&(e.length===0||typeof e[0]=="string")){const t=e.map(n=>typeof n=="string"?n.trim():n).filter(n=>n);return t.length>0?t:void 0}else return e}function bj(e){try{return new URL(e),!0}catch{return!1}}async function _j(e,{cli:t}={}){const{default:n,Chalk:s}=await Promise.resolve().then(()=>require("./index-Bl96b__P.js")),i=e.color?new s({level:1}):n;if(!t){const E=Ko.reduce((w,S)=>({...w,...S.default!=null?{[S.long]:S.default}:null}),{}),b={jsonUpgraded:!0,silent:e.silent||e.loglevel===void 0&&!e.verbose,args:[]};e={...E,...b,...e}}const r={...e,...e.packageData&&typeof e.packageData!="string"?{packageData:JSON.stringify(e.packageData,null,2)}:null,cli:t},o=r.silent||r.format?.includes("lines")?"silent":r.verbose?"verbose":r.loglevel,l=Object.keys(r).filter(E=>E.startsWith("json")).some(zC(r));!l&&o!=="silent"&&r.rcConfigPath&&!r.doctor&&Me(r,`Using config file ${r.rcConfigPath}`);const u=Ko.filter(({long:E,deprecated:b})=>b&&r[E]||E==="packageManager"&&r.packageManager==="staticRegistry");u.length>0&&(u.forEach(({long:E,description:b})=>{const w=E==="packageManager"?"--packageManager staticRegistry is deprecated. Use --registryType json.":`--${E}: ${b}`;Me(r,i.yellow(w),"warn")}),Me(r,"","warn")),Ko.forEach(({long:E,choices:b})=>{if(!b||b.length===0)return;const w=r[E],S=Array.isArray(w)?w:[w];S.length!==0&&S.every(C=>!b.includes(C))&&Qe(r,`Invalid option value: --${E} ${w}. Valid values are: ${b.join(", ")}.`)}),r.cwd&&!await Qi(r.cwd)&&Qe(r,`No such directory: ${r.cwd}`);const c=Ui(r.args),a=Ui(r.filter),f=Ui(r.filterVersion),h=Ui(r.reject),d=Ui(r.rejectVersion),p=r.registryType||(r.registry?.endsWith(".json")?"json":"npm");r.filter&&c&&!wn(c.join(" "),Array.isArray(a)?a.join(" "):a)?Qe(r,`Cannot specify a filter using both --filter and args. Did you forget to quote an argument?
|
|
733
|
-
See: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297`):r.packageFile&&r.deep?Qe(r,"Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'"):r.format?.includes("lines")&&r.jsonUpgraded?Qe(r,"Cannot specify both --format lines and --jsonUpgraded."):r.format?.includes("lines")&&r.jsonAll?Qe(r,"Cannot specify both --format lines and --jsonAll."):r.format?.includes("lines")&&r.format.length>1?Qe(r,"Cannot use --format lines with other formatting options."):r.workspace?.length&&r.workspaces?Qe(r,"Cannot specify both --workspace and --workspaces."):r.deep&&(r.workspace?.length||r.workspaces)?Qe(r,`Cannot specify both --deep and --workspace${r.workspaces?"s":""}.`):r.doctor&&(r.workspace?.length||r.workspaces)?Qe(r,`Doctor mode is not currently supported with --workspace${r.workspaces?"s":""}.`):r.packageManager==="staticRegistry"&&!r.registry?Qe(r,"When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry."):r.registryType==="json"&&!r.registry?Qe(r,'When --registryType json is specified, you must provide the path for the registry file with --registry. Run "ncu --help registryType" for details.'):p!=="json"&&r.registry&&!bj(r.registry)&&Qe(r,`--registry must be a valid URL. Invalid value: "${r.registry}"`);const g=await am(r);if(r.cooldown!=null){if(typeof r.cooldown=="string"){const w=ra(r.cooldown);w===null?Qe(r,`Invalid cooldown value: "${r.cooldown}". Use a number (days) or a string like "7d", "12h", or "30m".`):r.cooldown=w}const E=typeof r.cooldown=="number"&&!isNaN(r.cooldown)&&r.cooldown>=0,b=typeof r.cooldown=="function";!E&&!b&&Qe(r,'Cooldown must be a non-negative number (days), a string like "7d", "12h", or "30m", or a predicate function.')}else{const b=rs()?.minReleaseAge;if(b!=null){const w=typeof b=="string"?ra(b)??parseInt(b,10):typeof b=="number"?b:null;w!=null&&!isNaN(w)&&(r.cooldown=w,Me(r,`Using
|
|
733
|
+
See: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297`):r.packageFile&&r.deep?Qe(r,"Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'"):r.format?.includes("lines")&&r.jsonUpgraded?Qe(r,"Cannot specify both --format lines and --jsonUpgraded."):r.format?.includes("lines")&&r.jsonAll?Qe(r,"Cannot specify both --format lines and --jsonAll."):r.format?.includes("lines")&&r.format.length>1?Qe(r,"Cannot use --format lines with other formatting options."):r.workspace?.length&&r.workspaces?Qe(r,"Cannot specify both --workspace and --workspaces."):r.deep&&(r.workspace?.length||r.workspaces)?Qe(r,`Cannot specify both --deep and --workspace${r.workspaces?"s":""}.`):r.doctor&&(r.workspace?.length||r.workspaces)?Qe(r,`Doctor mode is not currently supported with --workspace${r.workspaces?"s":""}.`):r.packageManager==="staticRegistry"&&!r.registry?Qe(r,"When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry."):r.registryType==="json"&&!r.registry?Qe(r,'When --registryType json is specified, you must provide the path for the registry file with --registry. Run "ncu --help registryType" for details.'):p!=="json"&&r.registry&&!bj(r.registry)&&Qe(r,`--registry must be a valid URL. Invalid value: "${r.registry}"`);const g=await am(r);if(r.cooldown!=null){if(typeof r.cooldown=="string"){const w=ra(r.cooldown);w===null?Qe(r,`Invalid cooldown value: "${r.cooldown}". Use a number (days) or a string like "7d", "12h", or "30m".`):r.cooldown=w}const E=typeof r.cooldown=="number"&&!isNaN(r.cooldown)&&r.cooldown>=0,b=typeof r.cooldown=="function";!E&&!b&&Qe(r,'Cooldown must be a non-negative number (days), a string like "7d", "12h", or "30m", or a predicate function.')}else{const b=rs()?.minReleaseAge;if(b!=null){const w=typeof b=="string"?ra(b)??parseInt(b,10):typeof b=="number"?b:null;w!=null&&!isNaN(w)&&(r.cooldown=w,Me(r,`Using min-release-age from .npmrc: ${w} day${w!==1?"s":""}`))}else if(g==="pnpm"){const w=await RO();if(w!=null){const{minimumReleaseAge:S,minimumReleaseAgeExclude:C}=w,L=S/1440;if(C.length>0){const k=C.map($=>ma($));r.cooldown=$=>k.some(H=>H($))?null:L,Me(r,`Using minimumReleaseAge from pnpm-workspace.yaml: ${L} day${L!==1?"s":""} (${C.length} excluded pattern${C.length!==1?"s":""})`)}else r.cooldown=L,Me(r,`Using minimumReleaseAge from pnpm-workspace.yaml: ${L} day${L!==1?"s":""}`)}}else if(g==="yarn"){const w=await Ix(r);if(w!=null){const{npmMinimalAgeGate:S,npmPreapprovedPackages:C}=w,T=1440*60,L=S/T;if(C.length>0){const k=C.map($=>ma($));r.cooldown=$=>k.some(H=>H($))?null:L,Me(r,`Using npmMinimalAgeGate from .yarnrc.yml: ${L} day${L!==1?"s":""} (${C.length} pre-approved package${C.length!==1?"s":""})`)}else r.cooldown=L,Me(r,`Using npmMinimalAgeGate from .yarnrc.yml: ${L} day${L!==1?"s":""}`)}}}const m=r.target||"latest",v=m==="newest"||m==="greatest",_={...r,...r.deep?{packageFile:"**/package.json"}:null,...g==="deno"?{dep:["imports"]}:null,...r.format&&r.format.length>0?{format:r.format}:null,filter:c||a,filterVersion:f,json:l,loglevel:o,minimal:r.minimal===void 0?!1:r.minimal,...r.pre!=null||v?{pre:r.pre!=null?!!r.pre:v}:null,reject:h,rejectVersion:d,target:m,...r.interactive&&r.upgrade===void 0?{upgrade:!l}:null,packageManager:g,...r.prefix?{prefix:await(yn[g||""]?.defaultPrefix||yn.npm.defaultPrefix)(r)}:null,registryType:p};_.cacher=await nk(_);const y=ot(_,(E,b)=>b!==void 0?{[E]:b}:null);return!r.packageManager&&g!=="npm"&&Me(y,`Using ${g}`),y}function wj(e,t){return Array.from(new Set([...e||[],...t||[]]))}function Dj(e,t){const n=e||{},s=t||{},i={...n,...s};return Object.keys(i).forEach(r=>{Array.isArray(n[r])&&Array.isArray(s[r])&&(i[r]=wj(n[r],s[r]))}),i}var Mg,sC;function Sj(){if(sC)return Mg;sC=1;const e=s=>typeof s=="function"?s:()=>s,t=(...s)=>(...i)=>s.length===0||!!e(s[0])(...i)&&t(...s.slice(1))(...i),n=(...s)=>(...i)=>s.length>0&&(!!e(s[0])(...i)||n(...s.slice(1))(...i));return Mg={and:t,or:n},Mg}var Xo=Sj(),Aj=A0();const Rj=ft(Aj);function Ki(e){let t;if(!e)t=Rj;else if(typeof e=="string")if(e[0]==="/"&&e.at(-1)==="/"){const n=new RegExp(e.slice(1,-1));t=s=>n.test(s)}else{const n=e.split(/[\s,]+/);t=s=>{const i=o=>ma(o)(s),r=o=>!o.includes("/")&&s.includes("/")&&ma(o)(s.replace(/\//g,"_"));return n.some(Xo.or(i,r))}}else if(Array.isArray(e))t=(n,s)=>e.some(i=>Ki(i)(n,s));else if(e instanceof RegExp)t=n=>e.test(n);else if(typeof e=="function")t=(n,s)=>e(n,sr.parseRange(s??n));else throw new TypeError("Invalid filter. Must be a RegExp, array, or comma-or-space-delimited list.");return t}function $F(e,t,n,s){return Xo.and((i,r)=>Xo.and(e?Ki(e):!0,t?(...o)=>!Ki(t)(...o):!0)(i,r),(i,r)=>Xo.and(n?Ki(n):!0,s?(...o)=>!Ki(s)(...o):!0)(r))}function Fs(e,t){return!t||t==="deno"?yn.npm:e.registryType==="json"?yn.staticRegistry:(yn[t]||Qe(e,`Invalid package manager: ${t}`),yn[t])}async function Cj(e={}){const t=await Fs(e,e.packageManager).list?.({cwd:e.cwd,prefix:e.prefix,global:e.global});t||Qe(e,"Unable to retrieve package list");const n=$F(e.filter,e.reject,e.filterVersion,e.rejectVersion);let s={};try{s=vn(t,(i,r)=>!!r&&!eT(r)&&n(i,r))}catch(i){Qe(e,"Invalid filter: "+i.message||i)}return s}var qg,oC;function Tj(){return oC||(oC=1,qg=(e,t=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;const s=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(s,n.indent.repeat(t))}),qg}var jg,aC;function Oj(){if(aC)return jg;aC=1;const e=Nt,t=/\s+at.*(?:\(|\s)(.*)\)?/,n=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,s=typeof e.homedir>"u"?"":e.homedir();return jg=(i,r)=>(r=Object.assign({pretty:!1},r),i.replace(/\\/g,"/").split(`
|
|
734
734
|
`).filter(o=>{const l=o.match(t);if(l===null||!l[1])return!0;const u=l[1];return u.includes(".app/Contents/Resources/electron.asar")||u.includes(".app/Contents/Resources/default_app.asar")?!1:!n.test(u)}).filter(o=>o.trim()!=="").map(o=>r.pretty?o.replace(t,(l,u)=>l.replace(u,u.replace(s,"~"))):o).join(`
|
|
735
735
|
`)),jg}var Ug,uC;function xj(){if(uC)return Ug;uC=1;const e=Tj(),t=Oj(),n=i=>i.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class s extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);r=[...r].map(l=>l instanceof Error?l:l!==null&&typeof l=="object"?Object.assign(new Error(l.message),l):new Error(l));let o=r.map(l=>typeof l.stack=="string"?n(t(l.stack)):String(l)).join(`
|
|
736
736
|
`);o=`
|