npm-check-updates 22.0.0 → 22.0.1

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.cjs CHANGED
@@ -45,7 +45,7 @@ Instructions:
45
45
  Filtered results for: ${this.inputValue?this.inputValue:r.gray("Enter something to filter")}
46
46
  `}renderOption(l,f,a,c){const d=(f.selected?r.green(n.radioOn):n.radioOff)+" "+c+" ";let p;return f.disabled?p=l===a?r.gray().underline(f.title):r.strikethrough().gray(f.title):p=l===a?r.cyan().underline(f.title):f.title,d+p}renderDoneOrInstructions(){if(this.done)return this.value.filter(f=>f.selected).map(f=>f.title).join(", ");const l=[r.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&l.push(r.yellow(this.warn)),l.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let l=[o.symbol(this.done,this.aborted),r.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(l+=r.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),l+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+l),this.clear=h(l,this.out.columns)}};t.exports=u})),gg=I.__commonJSMin(((e,t)=>{var r=Ft(),i=cr(),{style:s,clear:h}=Yt(),{erase:o,cursor:n}=jt(),u=class extends i{constructor(l={}){super(l),this.msg=l.message,this.value=l.initial,this.initialValue=!!l.initial,this.yesMsg=l.yes||"yes",this.yesOption=l.yesOption||"(Y/n)",this.noMsg=l.no||"no",this.noOption=l.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()}_(l,f){return l.toLowerCase()==="y"?(this.value=!0,this.submit()):l.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(n.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();const l=this.aborted||this.done&&!this.value;this.outputText=[s.symbol(this.done,l),r.bold(this.msg),s.delimiter(this.done),this.done?this.value&&!this.aborted?this.yesMsg:this.noMsg:r.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(o.line+n.to(0)+this.outputText)}};t.exports=u})),vg=I.__commonJSMin(((e,t)=>{t.exports={TextPrompt:eg(),SelectPrompt:tg(),TogglePrompt:rg(),DatePrompt:fg(),NumberPrompt:dg(),MultiselectPrompt:ih(),AutocompletePrompt:pg(),AutocompleteMultiselectPrompt:mg(),ConfirmPrompt:gg()}})),yg=I.__commonJSMin((e=>{var t=e,r=vg(),i=o=>o;function s(o,n,u={}){return new Promise((l,f)=>{const a=new r[o](n),c=u.onAbort||i,d=u.onSubmit||i,p=u.onExit||i;a.on("state",n.onState||i),a.on("submit",g=>l(d(g))),a.on("exit",g=>l(p(g))),a.on("abort",g=>f(c(g)))})}t.text=o=>s("TextPrompt",o),t.password=o=>(o.style="password",t.text(o)),t.invisible=o=>(o.style="invisible",t.text(o)),t.number=o=>s("NumberPrompt",o),t.date=o=>s("DatePrompt",o),t.confirm=o=>s("ConfirmPrompt",o),t.list=o=>{const n=o.separator||",";return s("TextPrompt",o,{onSubmit:u=>u.split(n).map(l=>l.trim())})},t.toggle=o=>s("TogglePrompt",o),t.select=o=>s("SelectPrompt",o),t.multiselect=o=>{o.choices=[].concat(o.choices||[]);const n=u=>u.filter(l=>l.selected).map(l=>l.value);return s("MultiselectPrompt",o,{onAbort:n,onSubmit:n})},t.autocompleteMultiselect=o=>{o.choices=[].concat(o.choices||[]);const n=u=>u.filter(l=>l.selected).map(l=>l.value);return s("AutocompleteMultiselectPrompt",o,{onAbort:n,onSubmit:n})};var h=(o,n)=>Promise.resolve(n.filter(u=>u.title.slice(0,o.length).toLowerCase()===o.toLowerCase()));t.autocomplete=o=>(o.suggest=o.suggest||h,o.choices=[].concat(o.choices||[]),s("AutocompletePrompt",o))})),_g=I.__commonJSMin(((e,t)=>{var r=yg(),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function h(l=[],{onSubmit:f=s,onCancel:a=s}={}){const c={},d=h._override||{};l=[].concat(l);let p,g,m,v,y,E;const b=async(S,_,w=!1)=>{if(!(!w&&S.validate&&S.validate(_)!==!0))return S.format?await S.format(_,c):_};for(g of l)if({name:v,type:y}=g,typeof y=="function"&&(y=await y(p,{...c},g),g.type=y),!!y){for(let S in g){if(i.includes(S))continue;let _=g[S];g[S]=typeof _=="function"?await _(p,{...c},E):_}if(E=g,typeof g.message!="string")throw new Error("prompt message is required");if({name:v,type:y}=g,r[y]===void 0)throw new Error(`prompt type (${y}) is not defined`);if(d[g.name]!==void 0&&(p=await b(g,d[g.name]),p!==void 0)){c[v]=p;continue}try{p=h._injected?o(h._injected,g.initial):await r[y](g),c[v]=p=await b(g,p,!0),m=await f(g,p,c)}catch{m=!await a(g,c)}if(m)return c}return c}function o(l,f){const a=l.shift();if(a instanceof Error)throw a;return a===void 0?f:a}function n(l){h._injected=(h._injected||[]).concat(l)}function u(l){h._override=Object.assign({},l)}t.exports=Object.assign(h,{prompt:h,prompts:r,inject:n,override:u})})),bg=I.__commonJSMin(((e,t)=>{t.exports=_g()})),Sn=I.__toESM(bg(),1),Sg="npm-check-updates",Eg="22.0.0",wg="Tomas Junnonen <tomas1@gmail.com>",Ag="Apache-2.0",Tg=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],Dg="Find newer versions of dependencies than what your package.json allows",Rg=["dependencies","npm","package.json","update","upgrade","versions"],Og={node:"^20.19.0 || ^22.12.0 || >=24.0.0",npm:">=10.0.0"},Cg="module",Ig="build/index.cjs",kg="build/index.js",Lg="build/index.d.ts",$g={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},xg={".":{types:"./build/index.d.ts",import:"./build/index.js",require:"./build/index.cjs"},"./package.json":"./package.json"},Ng={build:"rimraf build && vite build","build:options":"tsx src/scripts/build-options.ts","build:analyze":"rimraf build && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:types":"tsc --noEmit","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.json',"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:"tsc --noEmit && npm run test:unit && npm run test:e2e","test:bun":"mocha test/bun","test:unit":"mocha test test/package-managers/* --ignore 'test/bun/*'","test:e2e":"./test/e2e.sh",typecheck:"tsc --noEmit",ncu:"node build/cli.js"},Mg={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},Pg="https://github.com/raineorshine/npm-check-updates",Bg={url:"https://github.com/raineorshine/npm-check-updates/issues"},Fg={typescript:"$typescript",eslint:"$eslint","eslint-config-standard":{"eslint-plugin-n":"$eslint-plugin-n","eslint-plugin-promise":"$eslint-plugin-promise"},"@verdaccio/core":">=8.0.0-next-8.33","chai-string":{chai:"$chai"},diff:">=8.0.3",lodash:">=4.18.1","serialize-javascript":">=7.0.3",uuid:">=14.0.0"},jg={"@eslint/compat":"^2.0.5","@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":"^5.2.3","@types/chai-as-promised":"^8.0.2","@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-es":"^4.17.12","@types/mocha":"^10.0.10","@types/node":"^25.6.0","@types/npm-registry-fetch":"^8.0.9","@types/parse-github-url":"^1.0.3","@types/picomatch":"^4.0.3","@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.1","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^8.59.0","@typescript-eslint/parser":"^8.59.0",camelcase:"^9.0.0",chai:"^6.2.2","chai-as-promised":"^8.0.2","chai-string":"^1.6.0",chalk:"^5.6.2","cli-table3":"^0.6.5",commander:"^14.0.3",cosmiconfig:"^9.0.1","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"^10.2.1","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":"^62.9.0","eslint-plugin-n":"^17.24.0","eslint-plugin-promise":"^7.2.1","fast-glob":"^3.3.3","fast-memoize":"^2.5.2","find-up":"^8.0.0","fp-and-or":"^1.0.2",globals:"^17.5.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-es":"^4.18.1","markdownlint-cli":"^0.48.0",mocha:"^11.7.5","npm-registry-fetch":"^19.1.1","npm-run-all":"^4.1.5","p-map":"^7.0.4","parse-github-url":"^1.0.4",picomatch:"^4.0.4",prettier:"^3.8.3",progress:"^2.0.3","prompts-ncu":"^3.0.2",rfdc:"^1.4.1",rimraf:"^6.1.3",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.1.2","source-map-support":"^0.5.21","spawn-please":"^3.0.0","ts-json-schema-generator":"^2.9.0",tsx:"^4.21.0",typescript:"^6.0.3",untildify:"^6.0.0","update-notifier":"^7.3.1",verdaccio:"^6.5.2",vite:"^8.0.8","vite-bundle-analyzer":"^1.3.7","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},Ug=["build","!**/test/**"],Hg={"check-leaks":!0,extension:["test.ts"],"node-option":["import=tsx","enable-source-maps","trace-deprecation","trace-warnings","no-warnings=TimeoutNaNWarning"],timeout:6e4,recursive:!0,exit:!0},En={name:Sg,version:Eg,author:wg,license:Ag,contributors:Tg,description:Dg,keywords:Rg,engines:Og,type:Cg,main:Ig,module:kg,types:Lg,bin:$g,exports:xg,scripts:Ng,repository:Mg,homepage:Pg,bugs:Bg,overrides:Fg,devDependencies:jg,files:Ug,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:Hg},Po=I.__commonJSMin(((e,t)=>{var r=[],i=0,s=(h,o)=>{i>=o&&r.push(h)};s.WARN=1,s.INFO=2,s.DEBUG=3,s.reset=()=>{r=[]},s.setDebugLevel=h=>{i=h},s.warn=h=>s(h,s.WARN),s.info=h=>s(h,s.INFO),s.debug=h=>s(h,s.DEBUG),s.debugMessages=()=>r,t.exports=s})),qg=I.__commonJSMin(((e,t)=>{t.exports=({onlyFirst:r=!1}={})=>{const i=["[\\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(i,r?void 0:"g")}})),Gg=I.__commonJSMin(((e,t)=>{var r=qg();t.exports=i=>typeof i=="string"?i.replace(r(),""):i})),nh=I.__commonJSMin(((e,t)=>{var r=i=>Number.isNaN(i)?!1:i>=4352&&(i<=4447||i===9001||i===9002||11904<=i&&i<=12871&&i!==12351||12880<=i&&i<=19903||19968<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65131||65281<=i&&i<=65376||65504<=i&&i<=65510||110592<=i&&i<=110593||127488<=i&&i<=127569||131072<=i&&i<=262141);t.exports=r,t.exports.default=r})),zg=I.__commonJSMin(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),Jg=I.__commonJSMin(((e,t)=>{var r=Gg(),i=nh(),s=zg(),h=o=>{if(typeof o!="string"||o.length===0||(o=r(o),o.length===0))return 0;o=o.replace(s()," ");let n=0;for(let u=0;u<o.length;u++){const l=o.codePointAt(u);l<=31||l>=127&&l<=159||l>=768&&l<=879||(l>65535&&u++,n+=i(l)?2:1)}return n};t.exports=h,t.exports.default=h})),sh=I.__commonJSMin(((e,t)=>{var r=Jg();function i(w){return w?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function s(w){let T=i();return(""+w).replace(T,"").split(`
48
+ `),this.close()}_(l,f){return l.toLowerCase()==="y"?(this.value=!0,this.submit()):l.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(n.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();const l=this.aborted||this.done&&!this.value;this.outputText=[s.symbol(this.done,l),r.bold(this.msg),s.delimiter(this.done),this.done?this.value&&!this.aborted?this.yesMsg:this.noMsg:r.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(o.line+n.to(0)+this.outputText)}};t.exports=u})),vg=I.__commonJSMin(((e,t)=>{t.exports={TextPrompt:eg(),SelectPrompt:tg(),TogglePrompt:rg(),DatePrompt:fg(),NumberPrompt:dg(),MultiselectPrompt:ih(),AutocompletePrompt:pg(),AutocompleteMultiselectPrompt:mg(),ConfirmPrompt:gg()}})),yg=I.__commonJSMin((e=>{var t=e,r=vg(),i=o=>o;function s(o,n,u={}){return new Promise((l,f)=>{const a=new r[o](n),c=u.onAbort||i,d=u.onSubmit||i,p=u.onExit||i;a.on("state",n.onState||i),a.on("submit",g=>l(d(g))),a.on("exit",g=>l(p(g))),a.on("abort",g=>f(c(g)))})}t.text=o=>s("TextPrompt",o),t.password=o=>(o.style="password",t.text(o)),t.invisible=o=>(o.style="invisible",t.text(o)),t.number=o=>s("NumberPrompt",o),t.date=o=>s("DatePrompt",o),t.confirm=o=>s("ConfirmPrompt",o),t.list=o=>{const n=o.separator||",";return s("TextPrompt",o,{onSubmit:u=>u.split(n).map(l=>l.trim())})},t.toggle=o=>s("TogglePrompt",o),t.select=o=>s("SelectPrompt",o),t.multiselect=o=>{o.choices=[].concat(o.choices||[]);const n=u=>u.filter(l=>l.selected).map(l=>l.value);return s("MultiselectPrompt",o,{onAbort:n,onSubmit:n})},t.autocompleteMultiselect=o=>{o.choices=[].concat(o.choices||[]);const n=u=>u.filter(l=>l.selected).map(l=>l.value);return s("AutocompleteMultiselectPrompt",o,{onAbort:n,onSubmit:n})};var h=(o,n)=>Promise.resolve(n.filter(u=>u.title.slice(0,o.length).toLowerCase()===o.toLowerCase()));t.autocomplete=o=>(o.suggest=o.suggest||h,o.choices=[].concat(o.choices||[]),s("AutocompletePrompt",o))})),_g=I.__commonJSMin(((e,t)=>{var r=yg(),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function h(l=[],{onSubmit:f=s,onCancel:a=s}={}){const c={},d=h._override||{};l=[].concat(l);let p,g,m,v,y,E;const b=async(S,_,w=!1)=>{if(!(!w&&S.validate&&S.validate(_)!==!0))return S.format?await S.format(_,c):_};for(g of l)if({name:v,type:y}=g,typeof y=="function"&&(y=await y(p,{...c},g),g.type=y),!!y){for(let S in g){if(i.includes(S))continue;let _=g[S];g[S]=typeof _=="function"?await _(p,{...c},E):_}if(E=g,typeof g.message!="string")throw new Error("prompt message is required");if({name:v,type:y}=g,r[y]===void 0)throw new Error(`prompt type (${y}) is not defined`);if(d[g.name]!==void 0&&(p=await b(g,d[g.name]),p!==void 0)){c[v]=p;continue}try{p=h._injected?o(h._injected,g.initial):await r[y](g),c[v]=p=await b(g,p,!0),m=await f(g,p,c)}catch{m=!await a(g,c)}if(m)return c}return c}function o(l,f){const a=l.shift();if(a instanceof Error)throw a;return a===void 0?f:a}function n(l){h._injected=(h._injected||[]).concat(l)}function u(l){h._override=Object.assign({},l)}t.exports=Object.assign(h,{prompt:h,prompts:r,inject:n,override:u})})),bg=I.__commonJSMin(((e,t)=>{t.exports=_g()})),Sn=I.__toESM(bg(),1),Sg="npm-check-updates",Eg="22.0.1",wg="Tomas Junnonen <tomas1@gmail.com>",Ag="Apache-2.0",Tg=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],Dg="Find newer versions of dependencies than what your package.json allows",Rg=["dependencies","npm","package.json","update","upgrade","versions"],Og={node:"^20.19.0 || ^22.12.0 || >=24.0.0",npm:">=10.0.0"},Cg="module",Ig="build/index.cjs",kg="build/index.js",Lg="build/index.d.ts",$g={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},xg={".":{types:"./build/index.d.ts",import:"./build/index.js",require:"./build/index.cjs"},"./package.json":"./package.json"},Ng={build:"rimraf build && vite build","build:options":"tsx src/scripts/build-options.ts","build:analyze":"rimraf build && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:types":"tsc --noEmit","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.json',"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:"tsc --noEmit && npm run test:unit && npm run test:e2e","test:bun":"mocha test/bun","test:unit":"mocha test test/package-managers/* --ignore 'test/bun/*'","test:e2e":"./test/e2e.sh",typecheck:"tsc --noEmit",ncu:"node build/cli.js"},Mg={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},Pg="https://github.com/raineorshine/npm-check-updates",Bg={url:"https://github.com/raineorshine/npm-check-updates/issues"},Fg={typescript:"$typescript",eslint:"$eslint","eslint-config-standard":{"eslint-plugin-n":"$eslint-plugin-n","eslint-plugin-promise":"$eslint-plugin-promise"},"@verdaccio/core":">=8.0.0-next-8.33","chai-string":{chai:"$chai"},diff:">=8.0.3",lodash:">=4.18.1","serialize-javascript":">=7.0.3",uuid:">=14.0.0"},jg={"@eslint/compat":"^2.0.5","@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":"^5.2.3","@types/chai-as-promised":"^8.0.2","@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-es":"^4.17.12","@types/mocha":"^10.0.10","@types/node":"^25.6.0","@types/npm-registry-fetch":"^8.0.9","@types/parse-github-url":"^1.0.3","@types/picomatch":"^4.0.3","@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.1","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^8.59.0","@typescript-eslint/parser":"^8.59.0",camelcase:"^9.0.0",chai:"^6.2.2","chai-as-promised":"^8.0.2","chai-string":"^1.6.0",chalk:"^5.6.2","cli-table3":"^0.6.5",commander:"^14.0.3",cosmiconfig:"^9.0.1","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"^10.2.1","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":"^62.9.0","eslint-plugin-n":"^17.24.0","eslint-plugin-promise":"^7.2.1","fast-glob":"^3.3.3","fast-memoize":"^2.5.2","find-up":"^8.0.0","fp-and-or":"^1.0.2",globals:"^17.5.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-es":"^4.18.1","markdownlint-cli":"^0.48.0",mocha:"^11.7.5","npm-registry-fetch":"^19.1.1","npm-run-all":"^4.1.5","p-map":"^7.0.4","parse-github-url":"^1.0.4",picomatch:"^4.0.4",prettier:"^3.8.3",progress:"^2.0.3","prompts-ncu":"^3.0.2",rfdc:"^1.4.1",rimraf:"^6.1.3",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.1.2","source-map-support":"^0.5.21","spawn-please":"^3.0.0","ts-json-schema-generator":"^2.9.0",tsx:"^4.21.0",typescript:"^6.0.3",untildify:"^6.0.0","update-notifier":"^7.3.1",verdaccio:"^6.5.2",vite:"^8.0.8","vite-bundle-analyzer":"^1.3.7","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},Ug=["build","!**/test/**"],Hg={"check-leaks":!0,extension:["test.ts"],"node-option":["import=tsx","enable-source-maps","trace-deprecation","trace-warnings","no-warnings=TimeoutNaNWarning"],timeout:6e4,recursive:!0,exit:!0},En={name:Sg,version:Eg,author:wg,license:Ag,contributors:Tg,description:Dg,keywords:Rg,engines:Og,type:Cg,main:Ig,module:kg,types:Lg,bin:$g,exports:xg,scripts:Ng,repository:Mg,homepage:Pg,bugs:Bg,overrides:Fg,devDependencies:jg,files:Ug,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:Hg},Po=I.__commonJSMin(((e,t)=>{var r=[],i=0,s=(h,o)=>{i>=o&&r.push(h)};s.WARN=1,s.INFO=2,s.DEBUG=3,s.reset=()=>{r=[]},s.setDebugLevel=h=>{i=h},s.warn=h=>s(h,s.WARN),s.info=h=>s(h,s.INFO),s.debug=h=>s(h,s.DEBUG),s.debugMessages=()=>r,t.exports=s})),qg=I.__commonJSMin(((e,t)=>{t.exports=({onlyFirst:r=!1}={})=>{const i=["[\\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(i,r?void 0:"g")}})),Gg=I.__commonJSMin(((e,t)=>{var r=qg();t.exports=i=>typeof i=="string"?i.replace(r(),""):i})),nh=I.__commonJSMin(((e,t)=>{var r=i=>Number.isNaN(i)?!1:i>=4352&&(i<=4447||i===9001||i===9002||11904<=i&&i<=12871&&i!==12351||12880<=i&&i<=19903||19968<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65131||65281<=i&&i<=65376||65504<=i&&i<=65510||110592<=i&&i<=110593||127488<=i&&i<=127569||131072<=i&&i<=262141);t.exports=r,t.exports.default=r})),zg=I.__commonJSMin(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),Jg=I.__commonJSMin(((e,t)=>{var r=Gg(),i=nh(),s=zg(),h=o=>{if(typeof o!="string"||o.length===0||(o=r(o),o.length===0))return 0;o=o.replace(s()," ");let n=0;for(let u=0;u<o.length;u++){const l=o.codePointAt(u);l<=31||l>=127&&l<=159||l>=768&&l<=879||(l>65535&&u++,n+=i(l)?2:1)}return n};t.exports=h,t.exports.default=h})),sh=I.__commonJSMin(((e,t)=>{var r=Jg();function i(w){return w?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function s(w){let T=i();return(""+w).replace(T,"").split(`
49
49
  `).reduce(function(D,R){return r(R)>D?r(R):D},0)}function h(w,T){return Array(T+1).join(w)}function o(w,T,D,R){let j=s(w);if(T+1>=j){let F=T-j;switch(R){case"right":w=h(D,F)+w;break;case"center":{let G=Math.ceil(F/2);w=h(D,F-G)+w+h(D,G);break}default:w=w+h(D,F);break}}return w}var n={};function u(w,T,D){T="\x1B["+T+"m",D="\x1B["+D+"m",n[T]={set:w,to:!0},n[D]={set:w,to:!1},n[w]={on:T,off:D}}u("bold",1,22),u("italics",3,23),u("underline",4,24),u("inverse",7,27),u("strikethrough",9,29);function l(w,T){let D=T[1]?parseInt(T[1].split(";")[0]):0;if(D>=30&&D<=39||D>=90&&D<=97){w.lastForegroundAdded=T[0];return}if(D>=40&&D<=49||D>=100&&D<=107){w.lastBackgroundAdded=T[0];return}if(D===0){for(let j in w)Object.prototype.hasOwnProperty.call(w,j)&&delete w[j];return}let R=n[T[0]];R&&(w[R.set]=R.to)}function f(w){let T=i(!0),D=T.exec(w),R={};for(;D!==null;)l(R,D),D=T.exec(w);return R}function a(w,T){let D=w.lastBackgroundAdded,R=w.lastForegroundAdded;return delete w.lastBackgroundAdded,delete w.lastForegroundAdded,Object.keys(w).forEach(function(j){w[j]&&(T+=n[j].off)}),D&&D!="\x1B[49m"&&(T+="\x1B[49m"),R&&R!="\x1B[39m"&&(T+="\x1B[39m"),T}function c(w,T){let D=w.lastBackgroundAdded,R=w.lastForegroundAdded;return delete w.lastBackgroundAdded,delete w.lastForegroundAdded,Object.keys(w).forEach(function(j){w[j]&&(T=n[j].on+T)}),D&&D!="\x1B[49m"&&(T=D+T),R&&R!="\x1B[39m"&&(T=R+T),T}function d(w,T){if(w.length===s(w))return w.substr(0,T);for(;s(w)>T;)w=w.slice(0,-1);return w}function p(w,T){let D=i(!0),R=w.split(i()),j=0,F=0,G="",V,H={};for(;F<T;){V=D.exec(w);let k=R[j];if(j++,F+s(k)>T&&(k=d(k,T-F)),G+=k,F+=s(k),F<T){if(!V)break;G+=V[0],l(H,V)}}return a(H,G)}function g(w,T,D){if(D=D||"…",s(w)<=T)return w;T-=s(D);let R=p(w,T);R+=D;const j="\x1B]8;;\x07";return w.includes(j)&&!R.includes(j)&&(R+=j),R}function m(){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 v(w,T){w=w||{},T=T||m();let D=Object.assign({},T,w);return D.chars=Object.assign({},T.chars,w.chars),D.style=Object.assign({},T.style,w.style),D}function y(w,T){let D=[],R=T.split(/(\s+)/g),j=[],F=0,G;for(let V=0;V<R.length;V+=2){let H=R[V],k=F+s(H);F>0&&G&&(k+=G.length),k>w?(F!==0&&D.push(j.join("")),j=[H],F=s(H)):(j.push(G||"",H),F=k),G=R[V+1]}return F&&D.push(j.join("")),D}function E(w,T){let D=[],R="";function j(G,V){for(R.length&&V&&(R+=V),R+=G;R.length>w;)D.push(R.slice(0,w)),R=R.slice(w)}let F=T.split(/(\s+)/g);for(let G=0;G<F.length;G+=2)j(F[G],G&&F[G-1]);return R.length&&D.push(R),D}function b(w,T,D=!0){let R=[];T=T.split(`
50
50
  `);const j=D?y:E;for(let F=0;F<T.length;F++)R.push.apply(R,j(w,T[F]));return R}function S(w){let T={},D=[];for(let R=0;R<w.length;R++){let j=c(T,w[R]);T=f(j);let F=Object.assign({},T);D.push(a(F,j))}return D}function _(w,T){return["\x1B]","8",";",";",w||T,"\x07",T,"\x1B]","8",";",";","\x07"].join("")}t.exports={strlen:s,repeat:h,pad:o,truncate:g,mergeOptions:v,wordWrap:b,colorizeLines:S,hyperlink:_}})),Wg=I.__commonJSMin(((e,t)=>{var r={};t.exports=r;var i={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(i).forEach(function(s){var h=i[s],o=r[s]=[];o.open="\x1B["+h[0]+"m",o.close="\x1B["+h[1]+"m"})})),Vg=I.__commonJSMin(((e,t)=>{t.exports=function(r,i){i=i||process.argv;var s=i.indexOf("--"),h=/^-{1,2}/.test(r)?"":"--",o=i.indexOf(h+r);return o!==-1&&(s===-1?!0:o<s)}})),Yg=I.__commonJSMin(((e,t)=>{var r=require("os"),i=Vg(),s=process.env,h=void 0;i("no-color")||i("no-colors")||i("color=false")?h=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(h=!0),"FORCE_COLOR"in s&&(h=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0);function o(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function n(l){if(h===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!l.isTTY&&h!==!0)return 0;var f=h?1:0;if(process.platform==="win32"){var a=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(d){return d in s})||s.CI_NAME==="codeship"?1:f;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in s){var c=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM==="dumb",f)}function u(l){return o(n(l))}t.exports={supportsColor:u,stdout:u(process.stdout),stderr:u(process.stderr)}})),Kg=I.__commonJSMin(((e,t)=>{t.exports=function(i,s){var h="";i=i||"Run the trap, drop the bass",i=i.split("");var o={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 i.forEach(function(n){n=n.toLowerCase();var u=o[n]||[" "],l=Math.floor(Math.random()*u.length);typeof o[n]<"u"?h+=o[n][l]:h+=n}),h}})),Zg=I.__commonJSMin(((e,t)=>{t.exports=function(i,s){i=i||" he is here ";var h={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},o=[].concat(h.up,h.down,h.mid);function n(f){return Math.floor(Math.random()*f)}function u(f){var a=!1;return o.filter(function(c){a=c===f}),a}function l(f,a){var c="",d,p;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",f=f.split("");for(p in f)if(!u(p)){switch(c=c+f[p],d={up:0,down:0,mid:0},a.size){case"mini":d.up=n(8),d.mid=n(2),d.down=n(8);break;case"maxi":d.up=n(16)+3,d.mid=n(4)+1,d.down=n(64)+3;break;default:d.up=n(8)+1,d.mid=n(6)/2,d.down=n(8)+1;break}var g=["up","mid","down"];for(var m in g)for(var v=g[m],y=0;y<=d[v];y++)a[v]&&(c=c+h[v][n(h[v].length)])}return c}return l(i,s)}})),Xg=I.__commonJSMin(((e,t)=>{t.exports=function(r){return function(i,s,h){if(i===" ")return i;switch(s%3){case 0:return r.red(i);case 1:return r.white(i);case 2:return r.blue(i)}}}})),Qg=I.__commonJSMin(((e,t)=>{t.exports=function(r){return function(i,s,h){return s%2===0?i:r.inverse(i)}}})),ev=I.__commonJSMin(((e,t)=>{t.exports=function(r){var i=["red","yellow","green","blue","magenta"];return function(s,h,o){return s===" "?s:r[i[h++%i.length]](s)}}})),tv=I.__commonJSMin(((e,t)=>{t.exports=function(r){var i=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(s,h,o){return s===" "?s:r[i[Math.round(Math.random()*(i.length-2))]](s)}}})),rv=I.__commonJSMin(((e,t)=>{var r={};t.exports=r,r.themes={};var i=require("util"),s=r.styles=Wg(),h=Object.defineProperties,o=new RegExp(/[\r\n]+/g);r.supportsColor=Yg().supportsColor,typeof r.enabled>"u"&&(r.enabled=r.supportsColor()!==!1),r.enable=function(){r.enabled=!0},r.disable=function(){r.enabled=!1},r.stripColors=r.strip=function(m){return(""+m).replace(/\x1B\[\d+m/g,"")},r.stylize=function(v,y){if(!r.enabled)return v+"";var E=s[y];return!E&&y in r?r[y](v):E.open+v+E.close};var n=/[|\\{}()[\]^$+*?.]/g,u=function(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(n,"\\$&")};function l(m){var v=function y(){return c.apply(y,arguments)};return v._styles=m,v.__proto__=a,v}var f=(function(){var m={};return s.grey=s.gray,Object.keys(s).forEach(function(v){s[v].closeRe=new RegExp(u(s[v].close),"g"),m[v]={get:function(){return l(this._styles.concat(v))}}}),m})(),a=h(function(){},f);function c(){var m=Array.prototype.slice.call(arguments).map(function(S){return S!=null&&S.constructor===String?S:i.inspect(S)}).join(" ");if(!r.enabled||!m)return m;for(var v=m.indexOf(`
51
51
  `)!=-1,y=this._styles,E=y.length;E--;){var b=s[y[E]];m=b.open+m.replace(b.closeRe,b.open)+b.close,v&&(m=m.replace(o,function(S){return b.close+S+b.open}))}return m}r.setTheme=function(m){if(typeof m=="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 v in m)(function(y){r[y]=function(E){if(typeof m[y]=="object"){var b=E;for(var S in m[y])b=r[m[y][S]](b);return b}return r[m[y]](E)}})(v)};function d(){var m={};return Object.keys(f).forEach(function(v){m[v]={get:function(){return l([v])}}}),m}var p=function(v,y){var E=y.split("");return E=E.map(v),E.join("")};r.trap=Kg(),r.zalgo=Zg(),r.maps={},r.maps.america=Xg()(r),r.maps.zebra=Qg()(r),r.maps.rainbow=ev()(r),r.maps.random=tv()(r);for(var g in r.maps)(function(m){r[m]=function(v){return p(r.maps[m],v)}})(g);h(r,d())})),iv=I.__commonJSMin(((e,t)=>{var r=rv();t.exports=r})),nv=I.__commonJSMin(((e,t)=>{var{info:r,debug:i}=Po(),s=sh(),h=class dn{constructor(p){this.setOptions(p),this.x=null,this.y=null}setOptions(p){["boolean","number","bigint","string"].indexOf(typeof p)!==-1&&(p={content:""+p}),p=p||{},this.options=p;let g=p.content;if(["boolean","number","bigint","string"].indexOf(typeof g)!==-1)this.content=String(g);else if(!g)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof g);this.colSpan=p.colSpan||1,this.rowSpan=p.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(p,g){this.cells=g;let m=this.options.chars||{},v=p.chars,y=this.chars={};c.forEach(function(S){l(m,v,S,y)}),this.truncate=this.options.truncate||p.truncate;let E=this.options.style=this.options.style||{},b=p.style;l(E,b,"padding-left",this),l(E,b,"padding-right",this),this.head=E.head||b.head,this.border=E.border||b.border,this.fixedWidth=p.colWidths[this.x],this.lines=this.computeLines(p),this.desiredWidth=s.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(p){const g=p.wordWrap||p.textWrap,{wordWrap:m=g}=this.options;if(this.fixedWidth&&m){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let E=1;for(;E<this.colSpan;)this.fixedWidth+=p.colWidths[this.x+E],E++}const{wrapOnWordBoundary:v=!0}=p,{wrapOnWordBoundary:y=v}=this.options;return this.wrapLines(s.wordWrap(this.fixedWidth,this.content,y))}return this.wrapLines(this.content.split(`
@@ -750,7 +750,7 @@ Recommended: Add "type": "module" to your package.json to use ESM throughout you
750
750
  Alternative: Rename to ${r.replace(".js",".mjs")} to keep CommonJS in package.json.`:null}async function Bm({configFileName:e,configFilePath:t,packageFile:r,global:i,options:s}){const h=Fi(s?.color),o=(0,xI.cosmiconfig)("ncu",{searchPlaces:[".ncurc",".ncurc.json",".ncurc.yaml",".ncurc.yml",".ncurc.mjs",".ncurc.cjs",".ncurc.js"],searchStrategy:"global"}),n=t||(i?ir.default.homedir():r?qe.default.dirname(r):process.cwd());let u=null,l;try{e?(l=qe.default.isAbsolute(e)?e:qe.default.join(n,e),u=await o.load(l)):(u=await o.search(n),l=u?.filepath)}catch(g){const m=g.message||"",v=l||e||".ncurc.js";e&&(g.code==="ENOENT"||m.includes("no such file or directory"))&&Je(s,`Config file ${e} not found in ${n}`);const y=NI(m,v);y&&Je(s,y),Je(s,`Config file error: ${m}`)}const f=u?.filepath,{$schema:a,...c}=u?.config||{},d=c||{};typeof d.format=="string"&&(d.format=yr.format.parse(d.format));const p=Object.keys(d).filter(g=>!yr[g]);return p.length>0&&(console.error(h.red(`Unknown option${p.length===1?"":"s"} found in config file:`),h.gray(p.join(", "))),console.info("Using config file "+f),console.info(`You can change the config file path with ${h.blue("--configFilePath")}`)),{filePath:f,args:Object.entries(d).flatMap(([g,m])=>typeof m=="boolean"||yr[g]?.type==="boolean"?m?[`--${g}`]:[]:[`--${g}`,m]),config:d}}var zu=Object.prototype.hasOwnProperty;function Ju(e,t,r){for(r of e.keys())if(Sr(r,t))return r}function Sr(e,t){var r,i,s;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&Sr(e[i],t[i]););return i===-1}if(r===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=Ju(t,s),!s)||!t.has(s))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=Ju(t,s),!s)||!Sr(i[1],t.get(s)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(zu.call(e,r)&&++i&&!zu.call(t,r)||!(r in t)||!Sr(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}var Ls=I.__commonJSMin(((e,t)=>{var r="\\\\/",i=`[^${r}]`,s=0,h="\\.",o="\\+",n="\\?",u="\\/",l="(?=.)",f="[^/]",a=`(?:${u}|$)`,c=`(?:^|${u})`,d=`${h}{1,2}${a}`,p={DOT_LITERAL:h,PLUS_LITERAL:o,QMARK_LITERAL:n,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:f,END_ANCHOR:a,DOTS_SLASH:d,NO_DOT:`(?!${h})`,NO_DOTS:`(?!${c}${d})`,NO_DOT_SLASH:`(?!${h}{0,1}${a})`,NO_DOTS_SLASH:`(?!${d})`,QMARK_NO_DOT:`[^.${u}]`,STAR:`${f}*?`,START_ANCHOR:c,SEP:"/"},g={...p,SLASH_LITERAL:`[${r}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${h}{1,2}(?:[${r}]|$)`,NO_DOT:`(?!${h})`,NO_DOTS:`(?!(?:^|[${r}])${h}{1,2}(?:[${r}]|$))`,NO_DOT_SLASH:`(?!${h}{0,1}(?:[${r}]|$))`,NO_DOTS_SLASH:`(?!${h}{1,2}(?:[${r}]|$))`,QMARK_NO_DOT:`[^.${r}]`,START_ANCHOR:`(?:^|[${r}])`,END_ANCHOR:`(?:[${r}]|$)`,SEP:"\\"},m={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:s,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(v){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${v.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(v){return v===!0?g:p}}})),$s=I.__commonJSMin((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:s}=Ls();e.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),e.hasRegexChars=h=>i.test(h),e.isRegexChar=h=>h.length===1&&e.hasRegexChars(h),e.escapeRegex=h=>h.replace(s,"\\$1"),e.toPosixSlashes=h=>h.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const h=navigator.platform.toLowerCase();return h==="win32"||h==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},e.removeBackslashes=h=>h.replace(r,o=>o==="\\"?"":o),e.escapeLast=(h,o,n)=>{const u=h.lastIndexOf(o,n);return u===-1?h:h[u-1]==="\\"?e.escapeLast(h,o,u-1):`${h.slice(0,u)}\\${h.slice(u)}`},e.removePrefix=(h,o={})=>{let n=h;return n.startsWith("./")&&(n=n.slice(2),o.prefix="./"),n},e.wrapOutput=(h,o={},n={})=>{let u=`${n.contains?"":"^"}(?:${h})${n.contains?"":"$"}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u},e.basename=(h,{windows:o}={})=>{const n=h.split(o?/[\\/]/:"/"),u=n[n.length-1];return u===""?n[n.length-2]:u}})),MI=I.__commonJSMin(((e,t)=>{var r=$s(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:o,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:a,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:v}=Ls(),y=S=>S===l||S===h,E=S=>{S.isPrefix!==!0&&(S.depth=S.isGlobstar?1/0:1)},b=(S,_)=>{const w=_||{},T=S.length-1,D=w.parts===!0||w.scanToEnd===!0,R=[],j=[],F=[];let G=S,V=-1,H=0,k=0,x=!1,q=!1,z=!1,B=!1,M=!1,$=!1,C=!1,N=!1,Y=!1,oe=!1,pe=0,ye,W,P={value:"",depth:0,isGlob:!1};const J=()=>V>=T,X=()=>G.charCodeAt(V+1),ne=()=>(ye=W,G.charCodeAt(++V));for(;V<T;){W=ne();let Ae;if(W===h){C=P.backslashes=!0,W=ne(),W===f&&($=!0);continue}if($===!0||W===f){for(pe++;J()!==!0&&(W=ne());){if(W===h){C=P.backslashes=!0,ne();continue}if(W===f){pe++;continue}if($!==!0&&W===n&&(W=ne())===n){if(x=P.isBrace=!0,z=P.isGlob=!0,oe=!0,D===!0)continue;break}if($!==!0&&W===o){if(x=P.isBrace=!0,z=P.isGlob=!0,oe=!0,D===!0)continue;break}if(W===g&&(pe--,pe===0)){$=!1,x=P.isBrace=!0,oe=!0;break}}if(D===!0)continue;break}if(W===l){if(R.push(V),j.push(P),P={value:"",depth:0,isGlob:!1},oe===!0)continue;if(ye===n&&V===H+1){H+=2;continue}k=V+1;continue}if(w.noext!==!0&&(W===d||W===s||W===i||W===p||W===u)&&X()===a){if(z=P.isGlob=!0,B=P.isExtglob=!0,oe=!0,W===u&&V===H&&(Y=!0),D===!0){for(;J()!==!0&&(W=ne());){if(W===h){C=P.backslashes=!0,W=ne();continue}if(W===m){z=P.isGlob=!0,oe=!0;break}}continue}break}if(W===i){if(ye===i&&(M=P.isGlobstar=!0),z=P.isGlob=!0,oe=!0,D===!0)continue;break}if(W===p){if(z=P.isGlob=!0,oe=!0,D===!0)continue;break}if(W===c){for(;J()!==!0&&(Ae=ne());){if(Ae===h){C=P.backslashes=!0,ne();continue}if(Ae===v){q=P.isBracket=!0,z=P.isGlob=!0,oe=!0;break}}if(D===!0)continue;break}if(w.nonegate!==!0&&W===u&&V===H){N=P.negated=!0,H++;continue}if(w.noparen!==!0&&W===a){if(z=P.isGlob=!0,D===!0){for(;J()!==!0&&(W=ne());){if(W===a){C=P.backslashes=!0,W=ne();continue}if(W===m){oe=!0;break}}continue}break}if(z===!0){if(oe=!0,D===!0)continue;break}}w.noext===!0&&(B=!1,z=!1);let L=G,U="",ee="";H>0&&(U=G.slice(0,H),G=G.slice(H),k-=H),L&&z===!0&&k>0?(L=G.slice(0,k),ee=G.slice(k)):z===!0?(L="",ee=G):L=G,L&&L!==""&&L!=="/"&&L!==G&&y(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),w.unescape===!0&&(ee&&(ee=r.removeBackslashes(ee)),L&&C===!0&&(L=r.removeBackslashes(L)));const we={prefix:U,input:S,start:H,base:L,glob:ee,isBrace:x,isBracket:q,isGlob:z,isExtglob:B,isGlobstar:M,negated:N,negatedExtglob:Y};if(w.tokens===!0&&(we.maxDepth=0,y(W)||j.push(P),we.tokens=j),w.parts===!0||w.tokens===!0){let Ae;for(let ve=0;ve<R.length;ve++){const Ne=Ae?Ae+1:H,xe=R[ve],Be=S.slice(Ne,xe);w.tokens&&(ve===0&&H!==0?(j[ve].isPrefix=!0,j[ve].value=U):j[ve].value=Be,E(j[ve]),we.maxDepth+=j[ve].depth),(ve!==0||Be!=="")&&F.push(Be),Ae=xe}if(Ae&&Ae+1<S.length){const ve=S.slice(Ae+1);F.push(ve),w.tokens&&(j[j.length-1].value=ve,E(j[j.length-1]),we.maxDepth+=j[j.length-1].depth)}we.slashes=R,we.parts=F}return we};t.exports=b})),PI=I.__commonJSMin(((e,t)=>{var r=Ls(),i=$s(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:u}=r,l=(b,S)=>{if(typeof S.expandRange=="function")return S.expandRange(...b,S);b.sort();const _=`[${b.join("-")}]`;try{new RegExp(_)}catch{return b.map(T=>i.escapeRegex(T)).join("..")}return _},f=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`,a=b=>{const S=[];let _=0,w=0,T=0,D="",R=!1;for(const j of b){if(R===!0){D+=j,R=!1;continue}if(j==="\\"){D+=j,R=!0;continue}if(j==='"'){T=T===1?0:1,D+=j;continue}if(T===0){if(j==="[")_++;else if(j==="]"&&_>0)_--;else if(_===0){if(j==="(")w++;else if(j===")"&&w>0)w--;else if(j==="|"&&w===0){S.push(D),D="";continue}}}D+=j}return S.push(D),S},c=b=>{let S=!1;for(const _ of b){if(S===!0){S=!1;continue}if(_==="\\"){S=!0;continue}if(/[?*+@!()[\]{}]/.test(_))return!1}return!0},d=b=>{let S=b.trim(),_=!0;for(;_===!0;)_=!1,/^@\([^\\()[\]{}|]+\)$/.test(S)&&(S=S.slice(2,-1),_=!0);if(c(S))return S.replace(/\\(.)/g,"$1")},p=b=>{const S=b.map(d).filter(Boolean);for(let _=0;_<S.length;_++)for(let w=_+1;w<S.length;w++){const T=S[_],D=S[w],R=T[0];if(!(!R||T!==R.repeat(T.length)||D!==R.repeat(D.length))&&(T===D||T.startsWith(D)||D.startsWith(T)))return!0}return!1},g=(b,S=!0)=>{if(b[0]!=="+"&&b[0]!=="*"||b[1]!=="(")return;let _=0,w=0,T=0,D=!1;for(let R=1;R<b.length;R++){const j=b[R];if(D===!0){D=!1;continue}if(j==="\\"){D=!0;continue}if(j==='"'){T=T===1?0:1;continue}if(T!==1){if(j==="["){_++;continue}if(j==="]"&&_>0){_--;continue}if(!(_>0)){if(j==="("){w++;continue}if(j===")"&&(w--,w===0))return S===!0&&R!==b.length-1?void 0:{type:b[0],body:b.slice(2,R),end:R}}}}},m=b=>{let S=0;const _=[];for(;S<b.length;){const w=g(b.slice(S),!1);if(!w||w.type!=="*")return;const T=a(w.body).map(R=>R.trim());if(T.length!==1)return;const D=d(T[0]);if(!D||D.length!==1)return;_.push(D),S+=w.end+1}if(!(_.length<1))return`${_.length===1?i.escapeRegex(_[0]):`[${_.map(w=>i.escapeRegex(w)).join("")}]`}*`},v=b=>{let S=0,_=b.trim(),w=g(_);for(;w;)S++,_=w.body.trim(),w=g(_);return S},y=(b,S)=>{if(S.maxExtglobRecursion===!1)return{risky:!1};const _=typeof S.maxExtglobRecursion=="number"?S.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,w=a(b).map(T=>T.trim());if(w.length>1&&(w.some(T=>T==="")||w.some(T=>/^[*?]+$/.test(T))||p(w)))return{risky:!0};for(const T of w){const D=m(T);if(D)return{risky:!0,safeOutput:D};if(v(T)>_)return{risky:!0}}return{risky:!1}},E=(b,S)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=u[b]||b;const _={...S},w=typeof _.maxLength=="number"?Math.min(s,_.maxLength):s;let T=b.length;if(T>w)throw new SyntaxError(`Input length: ${T}, exceeds maximum allowed length: ${w}`);const D={type:"bos",value:"",output:_.prepend||""},R=[D],j=_.capture?"":"?:",F=r.globChars(_.windows),G=r.extglobChars(F),{DOT_LITERAL:V,PLUS_LITERAL:H,SLASH_LITERAL:k,ONE_CHAR:x,DOTS_SLASH:q,NO_DOT:z,NO_DOT_SLASH:B,NO_DOTS_SLASH:M,QMARK:$,QMARK_NO_DOT:C,STAR:N,START_ANCHOR:Y}=F,oe=re=>`(${j}(?:(?!${Y}${re.dot?q:V}).)*?)`,pe=_.dot?"":z,ye=_.dot?$:C;let W=_.bash===!0?oe(_):N;_.capture&&(W=`(${W})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const P={input:b,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:R};b=i.removePrefix(b,P),T=b.length;const J=[],X=[],ne=[];let L=D,U;const ee=()=>P.index===T-1,we=P.peek=(re=1)=>b[P.index+re],Ae=P.advance=()=>b[++P.index]||"",ve=()=>b.slice(P.index+1),Ne=(re="",Q=0)=>{P.consumed+=re,P.index+=Q},xe=re=>{P.output+=re.output!=null?re.output:re.value,Ne(re.value)},Be=()=>{let re=1;for(;we()==="!"&&(we(2)!=="("||we(3)==="?");)Ae(),P.start++,re++;return re%2===0?!1:(P.negated=!0,P.start++,!0)},Oe=re=>{P[re]++,ne.push(re)},A=re=>{P[re]--,ne.pop()},se=re=>{if(L.type==="globstar"){const Q=P.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||J.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!Q&&!ie&&(P.output=P.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=W,P.output+=L.output)}if(J.length&&re.type!=="paren"&&(J[J.length-1].inner+=re.value),(re.value||re.output)&&xe(re),L&&L.type==="text"&&re.type==="text"){L.output=(L.output||L.value)+re.value,L.value+=re.value;return}re.prev=L,R.push(re),L=re},he=(re,Q)=>{const ie={...G[Q],conditions:1,inner:""};ie.prev=L,ie.parens=P.parens,ie.output=P.output,ie.startIndex=P.index,ie.tokensIndex=R.length;const ae=(_.capture?"(":"")+ie.open;Oe("parens"),se({type:re,value:Q,output:P.output?"":x}),se({type:"paren",extglob:!0,value:Ae(),output:ae}),J.push(ie)},de=re=>{const Q=b.slice(re.startIndex,P.index+1),ie=y(b.slice(re.startIndex+2,P.index),_);if((re.type==="plus"||re.type==="star")&&ie.risky){const ke=ie.safeOutput?(re.output?"":x)+(_.capture?`(${ie.safeOutput})`:ie.safeOutput):void 0,Te=R[re.tokensIndex];Te.type="text",Te.value=Q,Te.output=ke||i.escapeRegex(Q);for(let Re=re.tokensIndex+1;Re<R.length;Re++)R[Re].value="",R[Re].output="",delete R[Re].suffix;P.output=re.output+Te.output,P.backtrack=!0,se({type:"paren",extglob:!0,value:U,output:""}),A("parens");return}let ae=re.close+(_.capture?")":""),_e;if(re.type==="negate"){let ke=W;re.inner&&re.inner.length>1&&re.inner.includes("/")&&(ke=oe(_)),(ke!==W||ee()||/^\)+$/.test(ve()))&&(ae=re.close=`)$))${ke}`),re.inner.includes("*")&&(_e=ve())&&/^\.[^\\/.]+$/.test(_e)&&(ae=re.close=`)${E(_e,{...S,fastpaths:!1}).output})${ke})`),re.prev.type==="bos"&&(P.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:U,output:ae}),A("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let re=!1,Q=b.replace(n,(ie,ae,_e,ke,Te,Re)=>ke==="\\"?(re=!0,ie):ke==="?"?ae?ae+ke+(Te?$.repeat(Te.length):""):Re===0?ye+(Te?$.repeat(Te.length):""):$.repeat(_e.length):ke==="."?V.repeat(_e.length):ke==="*"?ae?ae+ke+(Te?W:""):W:ae?ie:`\\${ie}`);return re===!0&&(_.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),Q===b&&_.contains===!0?(P.output=b,P):(P.output=i.wrapOutput(Q,P,S),P)}for(;!ee();){if(U=Ae(),U==="\0")continue;if(U==="\\"){const ie=we();if(ie==="/"&&_.bash!==!0||ie==="."||ie===";")continue;if(!ie){U+="\\",se({type:"text",value:U});continue}const ae=/^\\+/.exec(ve());let _e=0;if(ae&&ae[0].length>2&&(_e=ae[0].length,P.index+=_e,_e%2!==0&&(U+="\\")),_.unescape===!0?U=Ae():U+=Ae(),P.brackets===0){se({type:"text",value:U});continue}}if(P.brackets>0&&(U!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&U===":"){const ie=L.value.slice(1);if(ie.includes("[")&&(L.posix=!0,ie.includes(":"))){const ae=L.value.lastIndexOf("["),_e=L.value.slice(0,ae),ke=h[L.value.slice(ae+2)];if(ke){L.value=_e+ke,P.backtrack=!0,Ae(),!D.output&&R.indexOf(L)===1&&(D.output=x);continue}}}(U==="["&&we()!==":"||U==="-"&&we()==="]")&&(U=`\\${U}`),U==="]"&&(L.value==="["||L.value==="[^")&&(U=`\\${U}`),_.posix===!0&&U==="!"&&L.value==="["&&(U="^"),L.value+=U,xe({value:U});continue}if(P.quotes===1&&U!=='"'){U=i.escapeRegex(U),L.value+=U,xe({value:U});continue}if(U==='"'){P.quotes=P.quotes===1?0:1,_.keepQuotes===!0&&se({type:"text",value:U});continue}if(U==="("){Oe("parens"),se({type:"paren",value:U});continue}if(U===")"){if(P.parens===0&&_.strictBrackets===!0)throw new SyntaxError(f("opening","("));const ie=J[J.length-1];if(ie&&P.parens===ie.parens+1){de(J.pop());continue}se({type:"paren",value:U,output:P.parens?")":"\\)"}),A("parens");continue}if(U==="["){if(_.nobracket===!0||!ve().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(f("closing","]"));U=`\\${U}`}else Oe("brackets");se({type:"bracket",value:U});continue}if(U==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){se({type:"text",value:U,output:`\\${U}`});continue}if(P.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(f("opening","["));se({type:"text",value:U,output:`\\${U}`});continue}A("brackets");const ie=L.value.slice(1);if(L.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(U=`/${U}`),L.value+=U,xe({value:U}),_.literalBrackets===!1||i.hasRegexChars(ie))continue;const ae=i.escapeRegex(L.value);if(P.output=P.output.slice(0,-L.value.length),_.literalBrackets===!0){P.output+=ae,L.value=ae;continue}L.value=`(${j}${ae}|${L.value})`,P.output+=L.value;continue}if(U==="{"&&_.nobrace!==!0){Oe("braces");const ie={type:"brace",value:U,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};X.push(ie),se(ie);continue}if(U==="}"){const ie=X[X.length-1];if(_.nobrace===!0||!ie){se({type:"text",value:U,output:U});continue}let ae=")";if(ie.dots===!0){const _e=R.slice(),ke=[];for(let Te=_e.length-1;Te>=0&&(R.pop(),_e[Te].type!=="brace");Te--)_e[Te].type!=="dots"&&ke.unshift(_e[Te].value);ae=l(ke,_),P.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){const _e=P.output.slice(0,ie.outputIndex),ke=P.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",U=ae="\\}",P.output=_e;for(const Te of ke)P.output+=Te.output||Te.value}se({type:"brace",value:U,output:ae}),A("braces"),X.pop();continue}if(U==="|"){J.length>0&&J[J.length-1].conditions++,se({type:"text",value:U});continue}if(U===","){let ie=U;const ae=X[X.length-1];ae&&ne[ne.length-1]==="braces"&&(ae.comma=!0,ie="|"),se({type:"comma",value:U,output:ie});continue}if(U==="/"){if(L.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",R.pop(),L=D;continue}se({type:"slash",value:U,output:k});continue}if(U==="."){if(P.braces>0&&L.type==="dot"){L.value==="."&&(L.output=V);const ie=X[X.length-1];L.type="dots",L.output+=U,L.value+=U,ie.dots=!0;continue}if(P.braces+P.parens===0&&L.type!=="bos"&&L.type!=="slash"){se({type:"text",value:U,output:V});continue}se({type:"dot",value:U,output:V});continue}if(U==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&we()==="("&&we(2)!=="?"){he("qmark",U);continue}if(L&&L.type==="paren"){const ie=we();let ae=U;(L.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(ve()))&&(ae=`\\${U}`),se({type:"text",value:U,output:ae});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){se({type:"qmark",value:U,output:C});continue}se({type:"qmark",value:U,output:$});continue}if(U==="!"){if(_.noextglob!==!0&&we()==="("&&(we(2)!=="?"||!/[!=<:]/.test(we(3)))){he("negate",U);continue}if(_.nonegate!==!0&&P.index===0){Be();continue}}if(U==="+"){if(_.noextglob!==!0&&we()==="("&&we(2)!=="?"){he("plus",U);continue}if(L&&L.value==="("||_.regex===!1){se({type:"plus",value:U,output:H});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||P.parens>0){se({type:"plus",value:U});continue}se({type:"plus",value:H});continue}if(U==="@"){if(_.noextglob!==!0&&we()==="("&&we(2)!=="?"){se({type:"at",extglob:!0,value:U,output:""});continue}se({type:"text",value:U});continue}if(U!=="*"){(U==="$"||U==="^")&&(U=`\\${U}`);const ie=o.exec(ve());ie&&(U+=ie[0],P.index+=ie[0].length),se({type:"text",value:U});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=U,L.output=W,P.backtrack=!0,P.globstar=!0,Ne(U);continue}let re=ve();if(_.noextglob!==!0&&/^\([^?]/.test(re)){he("star",U);continue}if(L.type==="star"){if(_.noglobstar===!0){Ne(U);continue}const ie=L.prev,ae=ie.prev,_e=ie.type==="slash"||ie.type==="bos",ke=ae&&(ae.type==="star"||ae.type==="globstar");if(_.bash===!0&&(!_e||re[0]&&re[0]!=="/")){se({type:"star",value:U,output:""});continue}const Te=P.braces>0&&(ie.type==="comma"||ie.type==="brace"),Re=J.length&&(ie.type==="pipe"||ie.type==="paren");if(!_e&&ie.type!=="paren"&&!Te&&!Re){se({type:"star",value:U,output:""});continue}for(;re.slice(0,3)==="/**";){const K=b[P.index+4];if(K&&K!=="/")break;re=re.slice(3),Ne("/**",3)}if(ie.type==="bos"&&ee()){L.type="globstar",L.value+=U,L.output=oe(_),P.output=L.output,P.globstar=!0,Ne(U);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!ke&&ee()){P.output=P.output.slice(0,-(ie.output+L.output).length),ie.output=`(?:${ie.output}`,L.type="globstar",L.output=oe(_)+(_.strictSlashes?")":"|$)"),L.value+=U,P.globstar=!0,P.output+=ie.output+L.output,Ne(U);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){const K=re[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(ie.output+L.output).length),ie.output=`(?:${ie.output}`,L.type="globstar",L.output=`${oe(_)}${k}|${k}${K})`,L.value+=U,P.output+=ie.output+L.output,P.globstar=!0,Ne(U+Ae()),se({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){L.type="globstar",L.value+=U,L.output=`(?:^|${k}|${oe(_)}${k})`,P.output=L.output,P.globstar=!0,Ne(U+Ae()),se({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-L.output.length),L.type="globstar",L.output=oe(_),L.value+=U,P.output+=L.output,P.globstar=!0,Ne(U);continue}const Q={type:"star",value:U,output:W};if(_.bash===!0){Q.output=".*?",(L.type==="bos"||L.type==="slash")&&(Q.output=pe+Q.output),se(Q);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){Q.output=U,se(Q);continue}(P.index===P.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(P.output+=B,L.output+=B):_.dot===!0?(P.output+=M,L.output+=M):(P.output+=pe,L.output+=pe),we()!=="*"&&(P.output+=x,L.output+=x)),se(Q)}for(;P.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(f("closing","]"));P.output=i.escapeLast(P.output,"["),A("brackets")}for(;P.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(f("closing",")"));P.output=i.escapeLast(P.output,"("),A("parens")}for(;P.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(f("closing","}"));P.output=i.escapeLast(P.output,"{"),A("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${k}?`}),P.backtrack===!0){P.output="";for(const re of P.tokens)P.output+=re.output!=null?re.output:re.value,re.suffix&&(P.output+=re.suffix)}return P};E.fastpaths=(b,S)=>{const _={...S},w=typeof _.maxLength=="number"?Math.min(s,_.maxLength):s,T=b.length;if(T>w)throw new SyntaxError(`Input length: ${T}, exceeds maximum allowed length: ${w}`);b=u[b]||b;const{DOT_LITERAL:D,SLASH_LITERAL:R,ONE_CHAR:j,DOTS_SLASH:F,NO_DOT:G,NO_DOTS:V,NO_DOTS_SLASH:H,STAR:k,START_ANCHOR:x}=r.globChars(_.windows),q=_.dot?V:G,z=_.dot?H:G,B=_.capture?"":"?:",M={negated:!1,prefix:""};let $=_.bash===!0?".*?":k;_.capture&&($=`(${$})`);const C=oe=>oe.noglobstar===!0?$:`(${B}(?:(?!${x}${oe.dot?F:D}).)*?)`,N=oe=>{switch(oe){case"*":return`${q}${j}${$}`;case".*":return`${D}${j}${$}`;case"*.*":return`${q}${$}${D}${j}${$}`;case"*/*":return`${q}${$}${R}${j}${z}${$}`;case"**":return q+C(_);case"**/*":return`(?:${q}${C(_)}${R})?${z}${j}${$}`;case"**/*.*":return`(?:${q}${C(_)}${R})?${z}${$}${D}${j}${$}`;case"**/.*":return`(?:${q}${C(_)}${R})?${D}${j}${$}`;default:{const pe=/^(.*?)\.(\w+)$/.exec(oe);if(!pe)return;const ye=N(pe[1]);return ye?ye+D+pe[2]:void 0}}};let Y=N(i.removePrefix(b,M));return Y&&_.strictSlashes!==!0&&(Y+=`${R}?`),Y},t.exports=E})),BI=I.__commonJSMin(((e,t)=>{var r=MI(),i=PI(),s=$s(),h=Ls(),o=u=>u&&typeof u=="object"&&!Array.isArray(u),n=(u,l,f=!1)=>{if(Array.isArray(u)){const y=u.map(b=>n(b,l,f));return b=>{for(const S of y){const _=S(b);if(_)return _}return!1}}const a=o(u)&&u.tokens&&u.input;if(u===""||typeof u!="string"&&!a)throw new TypeError("Expected pattern to be a non-empty string");const c=l||{},d=c.windows,p=a?n.compileRe(u,l):n.makeRe(u,l,!1,!0),g=p.state;delete p.state;let m=()=>!1;if(c.ignore){const y={...l,ignore:null,onMatch:null,onResult:null};m=n(c.ignore,y,f)}const v=(y,E=!1)=>{const{isMatch:b,match:S,output:_}=n.test(y,p,l,{glob:u,posix:d}),w={glob:u,state:g,regex:p,posix:d,input:y,output:_,match:S,isMatch:b};return typeof c.onResult=="function"&&c.onResult(w),b===!1?(w.isMatch=!1,E?w:!1):m(y)?(typeof c.onIgnore=="function"&&c.onIgnore(w),w.isMatch=!1,E?w:!1):(typeof c.onMatch=="function"&&c.onMatch(w),E?w:!0)};return f&&(v.state=g),v};n.test=(u,l,f,{glob:a,posix:c}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const d=f||{},p=d.format||(c?s.toPosixSlashes:null);let g=u===a,m=g&&p?p(u):u;return g===!1&&(m=p?p(u):u,g=m===a),(g===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?g=n.matchBase(u,l,f,c):g=l.exec(m)),{isMatch:!!g,match:g,output:m}},n.matchBase=(u,l,f)=>(l instanceof RegExp?l:n.makeRe(l,f)).test(s.basename(u)),n.isMatch=(u,l,f)=>n(l,f)(u),n.parse=(u,l)=>Array.isArray(u)?u.map(f=>n.parse(f,l)):i(u,{...l,fastpaths:!1}),n.scan=(u,l)=>r(u,l),n.compileRe=(u,l,f=!1,a=!1)=>{if(f===!0)return u.output;const c=l||{},d=c.contains?"":"^",p=c.contains?"":"$";let g=`${d}(?:${u.output})${p}`;u&&u.negated===!0&&(g=`^(?!${g}).*$`);const m=n.toRegex(g,l);return a===!0&&(m.state=u),m},n.makeRe=(u,l={},f=!1,a=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(c.output=i.fastpaths(u,l)),c.output||(c=i(u,l)),n.compileRe(c,l,f,a)},n.toRegex=(u,l)=>{try{const f=l||{};return new RegExp(u,f.flags||(f.nocase?"i":""))}catch(f){if(l&&l.debug===!0)throw f;return/$^/}},n.constants=h,t.exports=n})),FI=I.__commonJSMin(((e,t)=>{var r=BI(),i=$s();function s(h,o,n=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:i.isWindows()}),r(h,o,n)}Object.assign(s,r),t.exports=s})),Un=I.__toESM(FI(),1),jI=I.__exportAll({greatest:()=>Fm,greatestLevel:()=>lc,latest:()=>HI,minor:()=>qI,newest:()=>JI,patch:()=>GI,semver:()=>zI}),UI=(0,No.promisify)(bn.default.execFile);async function Zs(e){const t=(await UI("git",["ls-remote","--tags",e])).stdout,r={};for(const i of t.trim().split(`
751
751
  `)){const s=i.split(" ");r[s[1].replace(/^refs\/tags\/|\^{}$/g,"")]=s[0]}return r}async function oc(e,t,r){t=t.replace(/^github:/,"");const{auth:i,protocol:s,host:h,path:o}=(0,qi.default)(t);let n;try{if(s!==null)n=await Zs(`${s?s.replace("git+",""):"https:"}//${i?i+"@":""}${h}/${o?.replace(/^:/,"")}`);else try{n=await Zs(`ssh://git@${h}/${o?.replace(/^:/,"")}`)}catch{n=await Zs(`https://${i?i+"@":""}${h}/${o}`)}}catch{Pe(r??{},`Invalid, private repo, or no tags for ${e}: ${t}`,"verbose");return}return Object.keys(n).map(ol).filter(u=>(0,ze.valid)(u)).sort(sl)}var HI=async(e,t,r)=>{const i=await oc(e,t,r);if(!i)return{version:null};const s=r?.pre?i:i.filter(o=>!Gi(o)),h=s[s.length-1];return{version:h?ts(t,h):null}},Fm=async(e,t,r)=>{const i=await oc(e,t,r);if(!i)return{version:null};const s=i[i.length-1];return{version:s?ts(t,s):null}},lc=e=>async(t,r,i={})=>{const s=decodeURIComponent((0,qi.default)(r).branch).replace(/^semver:/,""),h=await oc(t,r,i);if(!h)return{version:null};const o=al(h.map(n=>n.replace(/^v/,"")),s,e);return{version:o?ts(r,o):null}},qI=lc("minor"),GI=lc("patch"),zI=async(e,t,r)=>({version:null}),JI=Fm,WI=I.__exportAll({latest:()=>ZI}),VI=e=>e&&e.startsWith("http://")||e.startsWith("https://"),YI=async e=>{const t=e.registry;let r;if(VI(t))r=await(await fetch(t)).text();else try{r=await Ze.default.readFile(t,"utf8")}catch{Je(e,`
752
752
  The specified static registry file does not exist: ${e.registry}`)}return JSON.parse(r)},KI=(0,fr.default)(YI),ZI=async(e,t,r)=>({version:(await KI(r||{}))[e]||null}),gr={npm:yE,pnpm:VE,yarn:yT,bun:EE,gitTags:jI,staticRegistry:WI};function vi(e){if(typeof e=="string")return e.trim();if(Array.isArray(e)&&(e.length===0||typeof e[0]=="string")){const t=e.map(r=>typeof r=="string"?r.trim():r).filter(r=>r);return t.length>0?t:void 0}else return e}function XI(e){try{return new URL(e),!0}catch{return!1}}async function QI(e,{cli:t}={}){const r=Fi(e.color);if(!t){const y=vn.reduce((b,S)=>({...b,...S.default!=null?{[S.long]:S.default}:null}),{}),E={jsonUpgraded:!0,silent:e.silent||e.loglevel===void 0&&!e.verbose,args:[]};e={...y,...E,...e}}const i={...e,...e.packageData&&typeof e.packageData!="string"?{packageData:JSON.stringify(e.packageData,null,2)}:null,cli:t},s=i.silent||i.format?.includes("lines")?"silent":i.verbose?"verbose":i.loglevel,h=Object.keys(i).filter(y=>y.startsWith("json")).some(Oh(i));!h&&s!=="silent"&&i.rcConfigPath&&!i.doctor&&Pe(i,`Using config file ${i.rcConfigPath}`);const o=vn.filter(({long:y,deprecated:E})=>E&&i[y]||y==="packageManager"&&i.packageManager==="staticRegistry");o.length>0&&(o.forEach(({long:y,description:E})=>{const b=y==="packageManager"?"--packageManager staticRegistry is deprecated. Use --registryType json.":`--${y}: ${E}`;Pe(i,r.yellow(b),"warn")}),Pe(i,"","warn")),vn.forEach(({long:y,choices:E})=>{if(!E||E.length===0)return;const b=i[y],S=Array.isArray(b)?b:[b];S.length!==0&&S.every(_=>!E.includes(_))&&Je(i,`Invalid option value: --${y} ${b}. Valid values are: ${E.join(", ")}.`)}),i.cwd&&!await Ri(i.cwd)&&Je(i,`No such directory: ${i.cwd}`);const n=vi(i.args),u=vi(i.filter),l=vi(i.filterVersion),f=vi(i.reject),a=vi(i.rejectVersion),c=i.registryType||(i.registry?.endsWith(".json")?"json":"npm");i.filter&&n&&!Sr(n.join(" "),Array.isArray(u)?u.join(" "):u)?Je(i,`Cannot specify a filter using both --filter and args. Did you forget to quote an argument?
753
- See: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297`):i.packageFile&&i.deep?Je(i,"Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'"):i.format?.includes("lines")&&i.jsonUpgraded?Je(i,"Cannot specify both --format lines and --jsonUpgraded."):i.format?.includes("lines")&&i.jsonAll?Je(i,"Cannot specify both --format lines and --jsonAll."):i.format?.includes("lines")&&i.format.length>1?Je(i,"Cannot use --format lines with other formatting options."):i.workspace?.length&&i.workspaces?Je(i,"Cannot specify both --workspace and --workspaces."):i.deep&&(i.workspace?.length||i.workspaces)?Je(i,`Cannot specify both --deep and --workspace${i.workspaces?"s":""}.`):i.doctor&&(i.workspace?.length||i.workspaces)?Je(i,`Doctor mode is not currently supported with --workspace${i.workspaces?"s":""}.`):i.packageManager==="staticRegistry"&&!i.registry?Je(i,"When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry."):i.registryType==="json"&&!i.registry?Je(i,'When --registryType json is specified, you must provide the path for the registry file with --registry. Run "ncu --help registryType" for details.'):c!=="json"&&i.registry&&!XI(i.registry)&&Je(i,`--registry must be a valid URL. Invalid value: "${i.registry}"`);const d=await ua(i);if(i.cooldown!=null){if(typeof i.cooldown=="string"){const b=On(i.cooldown);b===null?Je(i,`Invalid cooldown value: "${i.cooldown}". Use a number (days) or a string like "7d", "12h", or "30m".`):i.cooldown=b}const y=typeof i.cooldown=="number"&&!isNaN(i.cooldown)&&i.cooldown>=0,E=typeof i.cooldown=="function";!y&&!E&&Je(i,'Cooldown must be a non-negative number (days), a string like "7d", "12h", or "30m", or a predicate function.')}else{const y=Dt.findNpmConfig()?.minReleaseAge;if(y!=null){const E=typeof y=="string"?On(y)??parseInt(y,10):typeof y=="number"?y:null;E!=null&&!isNaN(E)&&(i.cooldown=E,Pe(i,`Using min-release-age from .npmrc: ${E} day${E!==1?"s":""}`))}else if(d==="pnpm"){const E=await qd.getPnpmWorkspaceMinimumReleaseAge();if(E!=null){const{minimumReleaseAge:b,minimumReleaseAgeExclude:S}=E,_=b/1440;if(S.length>0){const w=S.map(T=>(0,Un.default)(T));i.cooldown=T=>w.some(D=>D(T))?null:_,Pe(i,`Using minimumReleaseAge from pnpm-workspace.yaml: ${_} day${_!==1?"s":""} (${S.length} excluded pattern${S.length!==1?"s":""})`)}else i.cooldown=_,Pe(i,`Using minimumReleaseAge from pnpm-workspace.yaml: ${_} day${_!==1?"s":""}`)}}else if(d==="yarn"){const E=await xp.getYarnMinimalAgeGate(i);if(E!=null){const{npmMinimalAgeGate:b,npmPreapprovedPackages:S}=E,_=b/(1440*60);if(S.length>0){const w=S.map(T=>(0,Un.default)(T));i.cooldown=T=>w.some(D=>D(T))?null:_,Pe(i,`Using npmMinimalAgeGate from .yarnrc.yml: ${_} day${_!==1?"s":""} (${S.length} pre-approved package${S.length!==1?"s":""})`)}else i.cooldown=_,Pe(i,`Using npmMinimalAgeGate from .yarnrc.yml: ${_} day${_!==1?"s":""}`)}}}const p=i.target||"latest",g=p==="newest"||p==="greatest",m={...i,...i.deep?{packageFile:"**/package.json"}:null,...d==="deno"?{dep:["imports"]}:null,...i.format&&i.format.length>0?{format:i.format}:null,filter:n||u,filterVersion:l,json:h,loglevel:s,minimal:i.minimal===void 0?!1:i.minimal,...i.pre!=null||g?{pre:i.pre!=null?!!i.pre:g}:null,reject:f,rejectVersion:a,target:p,...i.interactive&&i.upgrade===void 0?{upgrade:!h}:null,packageManager:d,...i.prefix?{prefix:await(gr[d||""]?.defaultPrefix||gr.npm.defaultPrefix)(i)}:null,registryType:c};m.cacher=await cb(m);const v=rt(m,(y,E)=>E!==void 0?{[y]:E}:null);return!i.packageManager&&d!=="npm"&&Pe(v,`Using ${d}`),v}function ek(e,t){return Array.from(new Set([...e||[],...t||[]]))}function tk(e,t){const r=e||{},i=t||{},s={...r,...i};return Object.keys(s).forEach(h=>{Array.isArray(r[h])&&Array.isArray(i[h])&&(s[h]=ek(r[h],i[h]))}),s}var rk=I.__commonJSMin(((e,t)=>{var r=h=>typeof h=="function"?h:()=>h,i=(...h)=>(...o)=>h.length===0||!!r(h[0])(...o)&&i(...h.slice(1))(...o),s=(...h)=>(...o)=>h.length>0&&(!!r(h[0])(...o)||s(...h.slice(1))(...o));t.exports={and:i,or:s}})),yn=rk();function wi(e){let t;if(!e)t=Ho;else if(typeof e=="string")if(e[0]==="/"&&e.at(-1)==="/"){const r=new RegExp(e.slice(1,-1));t=i=>r.test(i)}else{const r=e.split(/[\s,]+/);t=i=>{const s=o=>(0,Un.default)(o)(i),h=o=>!o.includes("/")&&i.includes("/")&&(0,Un.default)(o)(i.replace(/\//g,"_"));return r.some((0,yn.or)(s,h))}}else if(Array.isArray(e))t=(r,i)=>e.some(s=>wi(s)(r,i));else if(e instanceof RegExp)t=r=>e.test(r);else if(typeof e=="function")t=(r,i)=>e(r,(0,_t.parseRange)(i??r));else throw new TypeError("Invalid filter. Must be a RegExp, array, or comma-or-space-delimited list.");return t}function jm(e,t,r,i){return(0,yn.and)((s,h)=>(0,yn.and)(e?wi(e):!0,t?(...o)=>!wi(t)(...o):!0)(s,h),(s,h)=>(0,yn.and)(r?wi(r):!0,i?(...o)=>!wi(i)(...o):!0)(h))}function sn(e,t){return!t||t==="deno"?gr.npm:e.registryType==="json"?gr.staticRegistry:(gr[t]||Je(e,`Invalid package manager: ${t}`),gr[t])}async function ik(e={}){const t=await sn(e,e.packageManager).list?.({cwd:e.cwd,prefix:e.prefix,global:e.global});t||Je(e,"Unable to retrieve package list");const r=jm(e.filter,e.reject,e.filterVersion,e.rejectVersion);let i={};try{i=vr(t,(s,h)=>!!h&&!Ph(h)&&r(s,h))}catch(s){Je(e,"Invalid filter: "+s.message||s)}return i}var nk=I.__commonJSMin(((e,t)=>{e=t.exports=r;function r(i,s){if(this.stream=s.stream||process.stderr,typeof s=="number"){var h=s;s={},s.total=h}else{if(s=s||{},typeof i!="string")throw new Error("format required");if(typeof s.total!="number")throw new Error("total required")}this.fmt=i,this.curr=s.curr||0,this.total=s.total,this.width=s.width||this.total,this.clear=s.clear,this.chars={complete:s.complete||"=",incomplete:s.incomplete||"-",head:s.head||s.complete||"="},this.renderThrottle=s.renderThrottle!==0?s.renderThrottle||16:0,this.lastRender=-1/0,this.callback=s.callback||function(){},this.tokens={},this.lastDraw=""}r.prototype.tick=function(i,s){if(i!==0&&(i=i||1),typeof i=="object"&&(s=i,i=1),s&&(this.tokens=s),this.curr==0&&(this.start=new Date),this.curr+=i,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}},r.prototype.render=function(i,s){if(s=s!==void 0?s:!1,i&&(this.tokens=i),!!this.stream.isTTY){var h=Date.now(),o=h-this.lastRender;if(!(!s&&o<this.renderThrottle)){this.lastRender=h;var n=this.curr/this.total;n=Math.min(Math.max(n,0),1);var u=Math.floor(n*100),l,f,a,c=new Date-this.start,d=u==100?0:c*(this.total/this.curr-1),p=this.curr/(c/1e3),g=this.fmt.replace(":current",this.curr).replace(":total",this.total).replace(":elapsed",isNaN(c)?"0.0":(c/1e3).toFixed(1)).replace(":eta",isNaN(d)||!isFinite(d)?"0.0":(d/1e3).toFixed(1)).replace(":percent",u.toFixed(0)+"%").replace(":rate",Math.round(p)),m=Math.max(0,this.stream.columns-g.replace(":bar","").length);m&&process.platform==="win32"&&(m=m-1);var v=Math.min(this.width,m);if(a=Math.round(v*n),f=Array(Math.max(0,a+1)).join(this.chars.complete),l=Array(Math.max(0,v-a+1)).join(this.chars.incomplete),a>0&&(f=f.slice(0,-1)+this.chars.head),g=g.replace(":bar",f+l),this.tokens)for(var y in this.tokens)g=g.replace(":"+y,this.tokens[y]);this.lastDraw!==g&&(this.stream.cursorTo(0),this.stream.write(g),this.stream.clearLine(1),this.lastDraw=g)}}},r.prototype.update=function(i,s){var h=Math.floor(i*this.total)-this.curr;this.tick(h,s)},r.prototype.interrupt=function(i){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(i),this.stream.write(`
753
+ See: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297`):i.packageFile&&i.deep?Je(i,"Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'"):i.format?.includes("lines")&&i.jsonUpgraded?Je(i,"Cannot specify both --format lines and --jsonUpgraded."):i.format?.includes("lines")&&i.jsonAll?Je(i,"Cannot specify both --format lines and --jsonAll."):i.format?.includes("lines")&&i.format.length>1?Je(i,"Cannot use --format lines with other formatting options."):i.workspace?.length&&i.workspaces?Je(i,"Cannot specify both --workspace and --workspaces."):i.deep&&(i.workspace?.length||i.workspaces)?Je(i,`Cannot specify both --deep and --workspace${i.workspaces?"s":""}.`):i.doctor&&(i.workspace?.length||i.workspaces)?Je(i,`Doctor mode is not currently supported with --workspace${i.workspaces?"s":""}.`):i.packageManager==="staticRegistry"&&!i.registry?Je(i,"When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry."):i.registryType==="json"&&!i.registry?Je(i,'When --registryType json is specified, you must provide the path for the registry file with --registry. Run "ncu --help registryType" for details.'):c!=="json"&&i.registry&&!XI(i.registry)&&Je(i,`--registry must be a valid URL. Invalid value: "${i.registry}"`);const d=await ua(i);if(i.cooldown!=null){if(typeof i.cooldown=="string"){const b=On(i.cooldown);b===null?Je(i,`Invalid cooldown value: "${i.cooldown}". Use a number (days) or a string like "7d", "12h", or "30m".`):i.cooldown=b}const y=typeof i.cooldown=="number"&&!isNaN(i.cooldown)&&i.cooldown>=0,E=typeof i.cooldown=="function";!y&&!E&&Je(i,'Cooldown must be a non-negative number (days), a string like "7d", "12h", or "30m", or a predicate function.')}else{const y=Dt.findNpmConfig()?.minReleaseAge;if(y!=null){const E=typeof y=="string"?On(y)??parseInt(y,10):typeof y=="number"?y:null;E!=null&&!isNaN(E)&&(i.cooldown=E,Pe({...i,json:h},`Using min-release-age from .npmrc: ${E} day${E!==1?"s":""}`))}else if(d==="pnpm"){const E=await qd.getPnpmWorkspaceMinimumReleaseAge();if(E!=null){const{minimumReleaseAge:b,minimumReleaseAgeExclude:S}=E,_=b/1440;if(S.length>0){const w=S.map(T=>(0,Un.default)(T));i.cooldown=T=>w.some(D=>D(T))?null:_,Pe({...i,json:h},`Using minimumReleaseAge from pnpm-workspace.yaml: ${_} day${_!==1?"s":""} (${S.length} excluded pattern${S.length!==1?"s":""})`)}else i.cooldown=_,Pe({...i,json:h},`Using minimumReleaseAge from pnpm-workspace.yaml: ${_} day${_!==1?"s":""}`)}}else if(d==="yarn"){const E=await xp.getYarnMinimalAgeGate(i);if(E!=null){const{npmMinimalAgeGate:b,npmPreapprovedPackages:S}=E,_=b/(1440*60);if(S.length>0){const w=S.map(T=>(0,Un.default)(T));i.cooldown=T=>w.some(D=>D(T))?null:_,Pe({...i,json:h},`Using npmMinimalAgeGate from .yarnrc.yml: ${_} day${_!==1?"s":""} (${S.length} pre-approved package${S.length!==1?"s":""})`)}else i.cooldown=_,Pe({...i,json:h},`Using npmMinimalAgeGate from .yarnrc.yml: ${_} day${_!==1?"s":""}`)}}}const p=i.target||"latest",g=p==="newest"||p==="greatest",m={...i,...i.deep?{packageFile:"**/package.json"}:null,...d==="deno"?{dep:["imports"]}:null,...i.format&&i.format.length>0?{format:i.format}:null,filter:n||u,filterVersion:l,json:h,loglevel:s,minimal:i.minimal===void 0?!1:i.minimal,...i.pre!=null||g?{pre:i.pre!=null?!!i.pre:g}:null,reject:f,rejectVersion:a,target:p,...i.interactive&&i.upgrade===void 0?{upgrade:!h}:null,packageManager:d,...i.prefix?{prefix:await(gr[d||""]?.defaultPrefix||gr.npm.defaultPrefix)(i)}:null,registryType:c};m.cacher=await cb(m);const v=rt(m,(y,E)=>E!==void 0?{[y]:E}:null);return!i.packageManager&&d!=="npm"&&Pe(v,`Using ${d}`),v}function ek(e,t){return Array.from(new Set([...e||[],...t||[]]))}function tk(e,t){const r=e||{},i=t||{},s={...r,...i};return Object.keys(s).forEach(h=>{Array.isArray(r[h])&&Array.isArray(i[h])&&(s[h]=ek(r[h],i[h]))}),s}var rk=I.__commonJSMin(((e,t)=>{var r=h=>typeof h=="function"?h:()=>h,i=(...h)=>(...o)=>h.length===0||!!r(h[0])(...o)&&i(...h.slice(1))(...o),s=(...h)=>(...o)=>h.length>0&&(!!r(h[0])(...o)||s(...h.slice(1))(...o));t.exports={and:i,or:s}})),yn=rk();function wi(e){let t;if(!e)t=Ho;else if(typeof e=="string")if(e[0]==="/"&&e.at(-1)==="/"){const r=new RegExp(e.slice(1,-1));t=i=>r.test(i)}else{const r=e.split(/[\s,]+/);t=i=>{const s=o=>(0,Un.default)(o)(i),h=o=>!o.includes("/")&&i.includes("/")&&(0,Un.default)(o)(i.replace(/\//g,"_"));return r.some((0,yn.or)(s,h))}}else if(Array.isArray(e))t=(r,i)=>e.some(s=>wi(s)(r,i));else if(e instanceof RegExp)t=r=>e.test(r);else if(typeof e=="function")t=(r,i)=>e(r,(0,_t.parseRange)(i??r));else throw new TypeError("Invalid filter. Must be a RegExp, array, or comma-or-space-delimited list.");return t}function jm(e,t,r,i){return(0,yn.and)((s,h)=>(0,yn.and)(e?wi(e):!0,t?(...o)=>!wi(t)(...o):!0)(s,h),(s,h)=>(0,yn.and)(r?wi(r):!0,i?(...o)=>!wi(i)(...o):!0)(h))}function sn(e,t){return!t||t==="deno"?gr.npm:e.registryType==="json"?gr.staticRegistry:(gr[t]||Je(e,`Invalid package manager: ${t}`),gr[t])}async function ik(e={}){const t=await sn(e,e.packageManager).list?.({cwd:e.cwd,prefix:e.prefix,global:e.global});t||Je(e,"Unable to retrieve package list");const r=jm(e.filter,e.reject,e.filterVersion,e.rejectVersion);let i={};try{i=vr(t,(s,h)=>!!h&&!Ph(h)&&r(s,h))}catch(s){Je(e,"Invalid filter: "+s.message||s)}return i}var nk=I.__commonJSMin(((e,t)=>{e=t.exports=r;function r(i,s){if(this.stream=s.stream||process.stderr,typeof s=="number"){var h=s;s={},s.total=h}else{if(s=s||{},typeof i!="string")throw new Error("format required");if(typeof s.total!="number")throw new Error("total required")}this.fmt=i,this.curr=s.curr||0,this.total=s.total,this.width=s.width||this.total,this.clear=s.clear,this.chars={complete:s.complete||"=",incomplete:s.incomplete||"-",head:s.head||s.complete||"="},this.renderThrottle=s.renderThrottle!==0?s.renderThrottle||16:0,this.lastRender=-1/0,this.callback=s.callback||function(){},this.tokens={},this.lastDraw=""}r.prototype.tick=function(i,s){if(i!==0&&(i=i||1),typeof i=="object"&&(s=i,i=1),s&&(this.tokens=s),this.curr==0&&(this.start=new Date),this.curr+=i,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}},r.prototype.render=function(i,s){if(s=s!==void 0?s:!1,i&&(this.tokens=i),!!this.stream.isTTY){var h=Date.now(),o=h-this.lastRender;if(!(!s&&o<this.renderThrottle)){this.lastRender=h;var n=this.curr/this.total;n=Math.min(Math.max(n,0),1);var u=Math.floor(n*100),l,f,a,c=new Date-this.start,d=u==100?0:c*(this.total/this.curr-1),p=this.curr/(c/1e3),g=this.fmt.replace(":current",this.curr).replace(":total",this.total).replace(":elapsed",isNaN(c)?"0.0":(c/1e3).toFixed(1)).replace(":eta",isNaN(d)||!isFinite(d)?"0.0":(d/1e3).toFixed(1)).replace(":percent",u.toFixed(0)+"%").replace(":rate",Math.round(p)),m=Math.max(0,this.stream.columns-g.replace(":bar","").length);m&&process.platform==="win32"&&(m=m-1);var v=Math.min(this.width,m);if(a=Math.round(v*n),f=Array(Math.max(0,a+1)).join(this.chars.complete),l=Array(Math.max(0,v-a+1)).join(this.chars.incomplete),a>0&&(f=f.slice(0,-1)+this.chars.head),g=g.replace(":bar",f+l),this.tokens)for(var y in this.tokens)g=g.replace(":"+y,this.tokens[y]);this.lastDraw!==g&&(this.stream.cursorTo(0),this.stream.write(g),this.stream.clearLine(1),this.lastDraw=g)}}},r.prototype.update=function(i,s){var h=Math.floor(i*this.total)-this.curr;this.tick(h,s)},r.prototype.interrupt=function(i){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(i),this.stream.write(`
754
754
  `),this.stream.write(this.lastDraw)},r.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(`
755
755
  `)}})),sk=I.__commonJSMin(((e,t)=>{t.exports=nk()}));qn.init_p_map();var cc=I.__toESM(sk(),1);function ak(e,t){let r=[[t]];for(;r.length>0;){const i=[];for(const s of r){const h=Object.keys(e[s[0]]??{});for(const o of h){if(o===s.at(-1))return{isCircular:!0,offendingPackage:s[0]};i.push([o,...s])}}r=i}return{isCircular:!1}}async function uc(e,t){const r=sn(t,t.packageManager);if(!r.getPeerDependencies)return{};const i=Object.keys(e).length;let s;!t.json&&t.loglevel!=="silent"&&t.loglevel!=="verbose"&&i>0&&(s=new cc.default("[:bar] :current/:total :percent",{total:i,width:20}),s.render());const h=Object.entries(e),o=async([l,f])=>{let a;const c=t.cacher?.getPeers(l,f);return c?a=c:(a=await r.getPeerDependencies(l,f,{cwd:t.cwd}),t.cacher?.setPeers(l,f,a)),s&&s.tick(),{pkg:l,dependencies:a}},n=await qn.pMap(h,o,{concurrency:t.concurrency}),u={};for(const{pkg:l,dependencies:f}of n){u[l]=f;const a=ak(u,l);a.isCircular&&delete u[l][a.offendingPackage]}return await t.cacher?.save(),t.cacher?.log(!0),u}function ok(e,t){const r={};for(const i of t)r[i]=e[i];return r}function Dr(e,t){const r={};for(const[i,s]of Object.entries(e??{})){const h=i;t(s,h)&&(r[h]=s)}return r}var lk=["latest","newest","greatest","minor","patch","semver"];qn.init_p_map();async function ck(e,t={}){const r=Fi(t.color),i=Object.keys(e),s=sn(t,t.packageManager);let h;!t.json&&t.loglevel!=="silent"&&t.loglevel!=="verbose"&&i.length>0&&(h=new cc.default("[:bar] :current/:total :percent",{total:i.length,width:20}),h.render());async function o(u){const l=Ii(e[u]),[f,a]=l||[u,e[u]],c=t.target||"latest",d=typeof c=="string"?c:c(f,(0,_t.parseRange)(a)),[p,g]=d.startsWith("@")?["distTag",d.slice(1)]:[d,"latest"],m=t.cacher?.get(f,p);if(m)return h?.tick(),{version:m};let v;const y=Ti(e[u]),E=y?gr.gitTags:s,b=y?"github urls":t.packageManager||"npm",S=E[p];if(!S){const _=lk.filter(w=>w in E);Je(t,r.red(`
756
756
  Unsupported target "${p}" using ${b}`)+`