npm-check-updates 21.0.1 → 21.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +22 -22
- package/build/index.cjs.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./chunks/p-map-iLLJQmmj.cjs");let
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./chunks/p-map-iLLJQmmj.cjs");let We=require("path");We=I.__toESM(We,1);let pr=require("fs");pr=I.__toESM(pr,1);let gr=require("os");gr=I.__toESM(gr,1);let ba=require("util");ba=I.__toESM(ba,1);let tt=require("fs/promises");tt=I.__toESM(tt,1);let Mr=require("node:process");Mr=I.__toESM(Mr,1);let Pr=require("node:os");Pr=I.__toESM(Pr,1);let jn=require("node:tty");jn=I.__toESM(jn,1);let yg=require("node:module"),_g=require("url"),st=require("node:path");st=I.__toESM(st,1);let au=require("node:url"),ou=require("node:util"),jr=require("node:fs");jr=I.__toESM(jr,1);let Un=require("node:child_process");Un=I.__toESM(Un,1);let Eg=require("node:stream/consumers");var Yt=I.__commonJSMin(((e,t)=>{var r,i,s,h,a=!0;typeof process<"u"&&({FORCE_COLOR:r,NODE_DISABLE_COLORS:i,NO_COLOR:s,TERM:h}=process.env||{},a=process.stdout&&process.stdout.isTTY);var n={enabled:!i&&s==null&&h!=="dumb"&&(r!=null&&r!=="0"||a),reset:f(0,0),bold:f(1,22),dim:f(2,22),italic:f(3,23),underline:f(4,24),inverse:f(7,27),hidden:f(8,28),strikethrough:f(9,29),black:f(30,39),red:f(31,39),green:f(32,39),yellow:f(33,39),blue:f(34,39),magenta:f(35,39),cyan:f(36,39),white:f(37,39),gray:f(90,39),grey:f(90,39),bgBlack:f(40,49),bgRed:f(41,49),bgGreen:f(42,49),bgYellow:f(43,49),bgBlue:f(44,49),bgMagenta:f(45,49),bgCyan:f(46,49),bgWhite:f(47,49)};function l(o,c){let d=0,p,g="",m="";for(;d<o.length;d++)p=o[d],g+=p.open,m+=p.close,~c.indexOf(p.close)&&(c=c.replace(p.rgx,p.close+p.open));return g+c+m}function u(o,c){let d={has:o,keys:c};return d.reset=n.reset.bind(d),d.bold=n.bold.bind(d),d.dim=n.dim.bind(d),d.italic=n.italic.bind(d),d.underline=n.underline.bind(d),d.inverse=n.inverse.bind(d),d.hidden=n.hidden.bind(d),d.strikethrough=n.strikethrough.bind(d),d.black=n.black.bind(d),d.red=n.red.bind(d),d.green=n.green.bind(d),d.yellow=n.yellow.bind(d),d.blue=n.blue.bind(d),d.magenta=n.magenta.bind(d),d.cyan=n.cyan.bind(d),d.white=n.white.bind(d),d.gray=n.gray.bind(d),d.grey=n.grey.bind(d),d.bgBlack=n.bgBlack.bind(d),d.bgRed=n.bgRed.bind(d),d.bgGreen=n.bgGreen.bind(d),d.bgYellow=n.bgYellow.bind(d),d.bgBlue=n.bgBlue.bind(d),d.bgMagenta=n.bgMagenta.bind(d),d.bgCyan=n.bgCyan.bind(d),d.bgWhite=n.bgWhite.bind(d),d}function f(o,c){let d={open:`\x1B[${o}m`,close:`\x1B[${c}m`,rgx:new RegExp(`\\x1b\\[${c}m`,"g")};return function(p){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(o)||(this.has.push(o),this.keys.push(d)),p===void 0?this:n.enabled?l(this.keys,p+""):p+""):p===void 0?u([o],[d]):n.enabled?l([d],p+""):p+""}}t.exports=n})),bg=I.__commonJSMin(((e,t)=>{t.exports=(r,i)=>{if(!(r.meta&&r.name!=="escape")){if(r.ctrl){if(r.name==="a")return"first";if(r.name==="c"||r.name==="d")return"abort";if(r.name==="e")return"last";if(r.name==="g")return"reset"}if(i){if(r.name==="j")return"down";if(r.name==="k")return"up"}return r.name==="return"||r.name==="enter"?"submit":r.name==="backspace"?"delete":r.name==="delete"?"deleteForward":r.name==="abort"?"abort":r.name==="escape"?"exit":r.name==="tab"?"next":r.name==="pagedown"?"nextPage":r.name==="pageup"?"prevPage":r.name==="home"?"home":r.name==="end"?"end":r.name==="up"?"up":r.name==="down"?"down":r.name==="right"?"right":r.name==="left"?"left":!1}}})),uu=I.__commonJSMin(((e,t)=>{t.exports=r=>{const i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),s=new RegExp(i,"g");return typeof r=="string"?r.replace(s,""):r}})),Kt=I.__commonJSMin(((e,t)=>{var r="\x1B",i=`${r}[`,s="\x07",h={to(l,u){return u?`${i}${u+1};${l+1}H`:`${i}${l+1}G`},move(l,u){let f="";return l<0?f+=`${i}${-l}D`:l>0&&(f+=`${i}${l}C`),u<0?f+=`${i}${-u}A`:u>0&&(f+=`${i}${u}B`),f},up:(l=1)=>`${i}${l}A`,down:(l=1)=>`${i}${l}B`,forward:(l=1)=>`${i}${l}C`,backward:(l=1)=>`${i}${l}D`,nextLine:(l=1)=>`${i}E`.repeat(l),prevLine:(l=1)=>`${i}F`.repeat(l),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`},a={up:(l=1)=>`${i}S`.repeat(l),down:(l=1)=>`${i}T`.repeat(l)},n={screen:`${i}2J`,up:(l=1)=>`${i}1J`.repeat(l),down:(l=1)=>`${i}J`.repeat(l),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(l){let u="";for(let f=0;f<l;f++)u+=this.line+(f<l-1?h.up():"");return l&&(u+=h.left),u}};t.exports={cursor:h,scroll:a,erase:n,beep:s}})),wg=I.__commonJSMin(((e,t)=>{var r=uu(),{erase:i,cursor:s}=Kt(),h=a=>[...r(a)].length;t.exports=function(a,n){if(!n)return i.line+s.to(0);let l=0;const u=a.split(/\r?\n/);for(let f of u)l+=1+Math.floor(Math.max(h(f)-1,0)/n);return i.lines(l)}})),Oh=I.__commonJSMin(((e,t)=>{var r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},s=process.platform==="win32"?i:r;t.exports=s})),Sg=I.__commonJSMin(((e,t)=>{var r=Yt(),i=Oh(),s=Object.freeze({password:{scale:1,render:f=>"*".repeat(f.length)},emoji:{scale:2,render:f=>"😃".repeat(f.length)},invisible:{scale:0,render:f=>""},default:{scale:1,render:f=>`${f}`}}),h=f=>s[f]||s.default,a=Object.freeze({aborted:r.red(i.cross),done:r.green(i.tick),exited:r.yellow(i.cross),default:r.cyan("?")}),n=(f,o,c)=>o?a.aborted:c?a.exited:f?a.done:a.default,l=f=>r.gray(f?i.ellipsis:i.pointerSmall),u=(f,o)=>r.gray(f?o?i.pointerSmall:"+":i.line);t.exports={styles:s,render:h,symbols:a,symbol:n,delimiter:l,item:u}})),Dg=I.__commonJSMin(((e,t)=>{var r=uu();t.exports=function(i,s){let h=String(r(i)||"").split(/\r?\n/);return s?h.map(a=>Math.ceil(a.length/s)).reduce((a,n)=>a+n):h.length}})),Ag=I.__commonJSMin(((e,t)=>{t.exports=(r,i={})=>{const s=Number.isSafeInteger(parseInt(i.margin))?new Array(parseInt(i.margin)).fill(" ").join(""):i.margin||"",h=i.width;return(r||"").split(/\r?\n/g).map(a=>a.split(/\s+/g).reduce((n,l)=>(l.length+s.length>=h||n[n.length-1].length+l.length+1<h?n[n.length-1]+=` ${l}`:n.push(`${s}${l}`),n),[s]).join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
`)}})),Cg=I.__commonJSMin(((e,t)=>{t.exports=(r,i,s)=>{s=s||i;let h=Math.min(i-s,r-Math.floor(s/2));h<0&&(h=0);let a=Math.min(h+s,i);return{startIndex:h,endIndex:a}}})),sr=I.__commonJSMin(((e,t)=>{t.exports={action:bg(),clear:wg(),style:Sg(),strip:uu(),figures:Oh(),lines:Dg(),wrap:Ag(),entriesToDisplay:Cg()}})),Sr=I.__commonJSMin(((e,t)=>{var r=require("readline"),{action:i}=sr(),s=require("events"),{beep:h,cursor:a}=Kt(),n=Yt(),l=class extends s{constructor(u={}){super(),this.firstRender=!0,this.in=u.stdin||process.stdin,this.out=u.stdout||process.stdout,this.onRender=(u.onRender||(()=>{})).bind(this);const f=r.createInterface({input:this.in,escapeCodeTimeout:50});r.emitKeypressEvents(this.in,f),this.in.isTTY&&this.in.setRawMode(!0);const o=(c,d)=>{let p=i(d,this.isSelect);p===!1?this._&&this._(c,d):typeof this[p]=="function"?this[p](d):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",o),this.in.isTTY&&this.in.setRawMode(!1),f.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",o)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(h)}render(){this.onRender(n),this.firstRender&&(this.firstRender=!1)}};t.exports=l})),Tg=I.__commonJSMin(((e,t)=>{var r=Yt(),i=Sr(),{erase:s,cursor:h}=Kt(),{style:a,clear:n,lines:l,figures:u}=sr(),f=class extends i{constructor(o={}){super(o),this.transform=a.render(o.style),this.scale=this.transform.scale,this.msg=o.message,this.initial=o.initial||"",this.validator=o.validate||(()=>!0),this.value="",this.errorMsg=o.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=n("",this.out.columns),this.render()}set value(o){!o&&this.initial?(this.placeholder=!0,this.rendered=r.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(o)),this._value=o,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
4
4
|
`),this.close()}async validate(){let o=await this.validator(this.value);typeof o=="string"&&(this.errorMsg=o,o=!1),this.error=!o}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
@@ -45,7 +45,7 @@ Instructions:
|
|
|
45
45
|
Filtered results for: ${this.inputValue?this.inputValue:r.gray("Enter something to filter")}
|
|
46
46
|
`}renderOption(u,f,o,c){const d=(f.selected?r.green(n.radioOn):n.radioOff)+" "+c+" ";let p;return f.disabled?p=u===o?r.gray().underline(f.title):r.strikethrough().gray(f.title):p=u===o?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 u=[r.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&u.push(r.yellow(this.warn)),u.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let u=[a.symbol(this.done,this.aborted),r.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(u+=r.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),u+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+u),this.clear=h(u,this.out.columns)}};t.exports=l})),qg=I.__commonJSMin(((e,t)=>{var r=Yt(),i=Sr(),{style:s,clear:h}=sr(),{erase:a,cursor:n}=Kt(),l=class extends i{constructor(u={}){super(u),this.msg=u.message,this.value=u.initial,this.initialValue=!!u.initial,this.yesMsg=u.yes||"yes",this.yesOption=u.yesOption||"(Y/n)",this.noMsg=u.no||"no",this.noOption=u.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
47
47
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
48
|
-
`),this.close()}_(u,f){return u.toLowerCase()==="y"?(this.value=!0,this.submit()):u.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(n.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();const u=this.aborted||this.done&&!this.value;this.outputText=[s.symbol(this.done,u),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(a.line+n.to(0)+this.outputText)}};t.exports=l})),zg=I.__commonJSMin(((e,t)=>{t.exports={TextPrompt:Tg(),SelectPrompt:Rg(),TogglePrompt:Og(),DatePrompt:Pg(),NumberPrompt:jg(),MultiselectPrompt:Ih(),AutocompletePrompt:Ug(),AutocompleteMultiselectPrompt:Hg(),ConfirmPrompt:qg()}})),Gg=I.__commonJSMin((e=>{var t=e,r=zg(),i=a=>a;function s(a,n,l={}){return new Promise((u,f)=>{const o=new r[a](n),c=l.onAbort||i,d=l.onSubmit||i,p=l.onExit||i;o.on("state",n.onState||i),o.on("submit",g=>u(d(g))),o.on("exit",g=>u(p(g))),o.on("abort",g=>f(c(g)))})}t.text=a=>s("TextPrompt",a),t.password=a=>(a.style="password",t.text(a)),t.invisible=a=>(a.style="invisible",t.text(a)),t.number=a=>s("NumberPrompt",a),t.date=a=>s("DatePrompt",a),t.confirm=a=>s("ConfirmPrompt",a),t.list=a=>{const n=a.separator||",";return s("TextPrompt",a,{onSubmit:l=>l.split(n).map(u=>u.trim())})},t.toggle=a=>s("TogglePrompt",a),t.select=a=>s("SelectPrompt",a),t.multiselect=a=>{a.choices=[].concat(a.choices||[]);const n=l=>l.filter(u=>u.selected).map(u=>u.value);return s("MultiselectPrompt",a,{onAbort:n,onSubmit:n})},t.autocompleteMultiselect=a=>{a.choices=[].concat(a.choices||[]);const n=l=>l.filter(u=>u.selected).map(u=>u.value);return s("AutocompleteMultiselectPrompt",a,{onAbort:n,onSubmit:n})};var h=(a,n)=>Promise.resolve(n.filter(l=>l.title.slice(0,a.length).toLowerCase()===a.toLowerCase()));t.autocomplete=a=>(a.suggest=a.suggest||h,a.choices=[].concat(a.choices||[]),s("AutocompletePrompt",a))})),Jg=I.__commonJSMin(((e,t)=>{var r=Gg(),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function h(u=[],{onSubmit:f=s,onCancel:o=s}={}){const c={},d=h._override||{};u=[].concat(u);let p,g,m,v,y,w;const _=async(b,E,S=!1)=>{if(!(!S&&b.validate&&b.validate(E)!==!0))return b.format?await b.format(E,c):E};for(g of u)if({name:v,type:y}=g,typeof y=="function"&&(y=await y(p,{...c},g),g.type=y),!!y){for(let b in g){if(i.includes(b))continue;let E=g[b];g[b]=typeof E=="function"?await E(p,{...c},w):E}if(w=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 _(g,d[g.name]),p!==void 0)){c[v]=p;continue}try{p=h._injected?a(h._injected,g.initial):await r[y](g),c[v]=p=await _(g,p,!0),m=await f(g,p,c)}catch{m=!await o(g,c)}if(m)return c}return c}function a(u,f){const o=u.shift();if(o instanceof Error)throw o;return o===void 0?f:o}function n(u){h._injected=(h._injected||[]).concat(u)}function l(u){h._override=Object.assign({},u)}t.exports=Object.assign(h,{prompt:h,prompts:r,inject:n,override:l})})),Wg=I.__commonJSMin(((e,t)=>{t.exports=Jg()})),Hn=I.__toESM(Wg(),1),Vg="npm-check-updates",Yg="21.0.1",Kg="Tomas Junnonen <tomas1@gmail.com>",Zg="Apache-2.0",Xg=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],Qg="Find newer versions of dependencies than what your package.json allows",e0=["dependencies","npm","package.json","update","upgrade","versions"],t0={node:"^20.19.0 || ^22.12.0 || >=24.0.0",npm:">=10.0.0"},r0="module",i0="build/index.cjs",n0="build/index.js",s0="build/index.d.ts",a0={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},o0={".":{types:"./build/index.d.ts",import:"./build/index.js",require:"./build/index.cjs"},"./package.json":"./package.json"},u0={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"},l0={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},c0="https://github.com/raineorshine/npm-check-updates",h0={url:"https://github.com/raineorshine/npm-check-updates/issues"},f0={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"},d0={"@eslint/compat":"^2.0.3","@eslint/js":"^10.0.1","@streamparser/json":"^0.0.22","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/bun":"^1.3.11","@types/chai":"^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.5.2","@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.57.2","@typescript-eslint/parser":"^8.57.2",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","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"^10.2.0","eslint-config-prettier":"^10.1.8","eslint-config-raine":"^0.5.0","eslint-config-standard":"^17.1.0","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import-x":"^4.16.2","eslint-plugin-jsdoc":"^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.4.0","hosted-git-info":"^9.0.2",ini:"^6.0.0","js-yaml":"^4.1.1","jsonc-parser":"^3.3.1",jsonlines:"^0.1.1","lockfile-lint":"^5.0.0","lodash-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.1",progress:"^2.0.3","prompts-ncu":"^3.0.2","rc-config-loader":"^4.1.4",rfdc:"^1.4.1",rimraf:"^6.1.3",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.0.3","source-map-support":"^0.5.21","spawn-please":"^3.0.0","ts-json-schema-generator":"^2.9.0",tsx:"^4.21.0",typescript:"^6.0.2",untildify:"^6.0.0","update-notifier":"^7.3.1",verdaccio:"^6.4.0",vite:"^8.0.8","vite-bundle-analyzer":"^1.3.6","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},p0=["build","!**/test/**"],m0={"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},qn={name:Vg,version:Yg,author:Kg,license:Zg,contributors:Xg,description:Qg,keywords:e0,engines:t0,type:r0,main:i0,module:n0,types:s0,bin:a0,exports:o0,scripts:u0,repository:l0,homepage:c0,bugs:h0,overrides:f0,devDependencies:d0,files:p0,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:m0},lu=I.__commonJSMin(((e,t)=>{var r=[],i=0,s=(h,a)=>{i>=a&&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})),g0=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")}})),v0=I.__commonJSMin(((e,t)=>{var r=g0();t.exports=i=>typeof i=="string"?i.replace(r(),""):i})),kh=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})),y0=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}})),_0=I.__commonJSMin(((e,t)=>{var r=v0(),i=kh(),s=y0(),h=a=>{if(typeof a!="string"||a.length===0||(a=r(a),a.length===0))return 0;a=a.replace(s()," ");let n=0;for(let l=0;l<a.length;l++){const u=a.codePointAt(l);u<=31||u>=127&&u<=159||u>=768&&u<=879||(u>65535&&l++,n+=i(u)?2:1)}return n};t.exports=h,t.exports.default=h})),Lh=I.__commonJSMin(((e,t)=>{var r=_0();function i(S){return S?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function s(S){let A=i();return(""+S).replace(A,"").split(`
|
|
48
|
+
`),this.close()}_(u,f){return u.toLowerCase()==="y"?(this.value=!0,this.submit()):u.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(n.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();const u=this.aborted||this.done&&!this.value;this.outputText=[s.symbol(this.done,u),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(a.line+n.to(0)+this.outputText)}};t.exports=l})),zg=I.__commonJSMin(((e,t)=>{t.exports={TextPrompt:Tg(),SelectPrompt:Rg(),TogglePrompt:Og(),DatePrompt:Pg(),NumberPrompt:jg(),MultiselectPrompt:Ih(),AutocompletePrompt:Ug(),AutocompleteMultiselectPrompt:Hg(),ConfirmPrompt:qg()}})),Gg=I.__commonJSMin((e=>{var t=e,r=zg(),i=a=>a;function s(a,n,l={}){return new Promise((u,f)=>{const o=new r[a](n),c=l.onAbort||i,d=l.onSubmit||i,p=l.onExit||i;o.on("state",n.onState||i),o.on("submit",g=>u(d(g))),o.on("exit",g=>u(p(g))),o.on("abort",g=>f(c(g)))})}t.text=a=>s("TextPrompt",a),t.password=a=>(a.style="password",t.text(a)),t.invisible=a=>(a.style="invisible",t.text(a)),t.number=a=>s("NumberPrompt",a),t.date=a=>s("DatePrompt",a),t.confirm=a=>s("ConfirmPrompt",a),t.list=a=>{const n=a.separator||",";return s("TextPrompt",a,{onSubmit:l=>l.split(n).map(u=>u.trim())})},t.toggle=a=>s("TogglePrompt",a),t.select=a=>s("SelectPrompt",a),t.multiselect=a=>{a.choices=[].concat(a.choices||[]);const n=l=>l.filter(u=>u.selected).map(u=>u.value);return s("MultiselectPrompt",a,{onAbort:n,onSubmit:n})},t.autocompleteMultiselect=a=>{a.choices=[].concat(a.choices||[]);const n=l=>l.filter(u=>u.selected).map(u=>u.value);return s("AutocompleteMultiselectPrompt",a,{onAbort:n,onSubmit:n})};var h=(a,n)=>Promise.resolve(n.filter(l=>l.title.slice(0,a.length).toLowerCase()===a.toLowerCase()));t.autocomplete=a=>(a.suggest=a.suggest||h,a.choices=[].concat(a.choices||[]),s("AutocompletePrompt",a))})),Jg=I.__commonJSMin(((e,t)=>{var r=Gg(),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function h(u=[],{onSubmit:f=s,onCancel:o=s}={}){const c={},d=h._override||{};u=[].concat(u);let p,g,m,v,y,w;const _=async(b,E,S=!1)=>{if(!(!S&&b.validate&&b.validate(E)!==!0))return b.format?await b.format(E,c):E};for(g of u)if({name:v,type:y}=g,typeof y=="function"&&(y=await y(p,{...c},g),g.type=y),!!y){for(let b in g){if(i.includes(b))continue;let E=g[b];g[b]=typeof E=="function"?await E(p,{...c},w):E}if(w=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 _(g,d[g.name]),p!==void 0)){c[v]=p;continue}try{p=h._injected?a(h._injected,g.initial):await r[y](g),c[v]=p=await _(g,p,!0),m=await f(g,p,c)}catch{m=!await o(g,c)}if(m)return c}return c}function a(u,f){const o=u.shift();if(o instanceof Error)throw o;return o===void 0?f:o}function n(u){h._injected=(h._injected||[]).concat(u)}function l(u){h._override=Object.assign({},u)}t.exports=Object.assign(h,{prompt:h,prompts:r,inject:n,override:l})})),Wg=I.__commonJSMin(((e,t)=>{t.exports=Jg()})),Hn=I.__toESM(Wg(),1),Vg="npm-check-updates",Yg="21.0.2",Kg="Tomas Junnonen <tomas1@gmail.com>",Zg="Apache-2.0",Xg=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],Qg="Find newer versions of dependencies than what your package.json allows",e0=["dependencies","npm","package.json","update","upgrade","versions"],t0={node:"^20.19.0 || ^22.12.0 || >=24.0.0",npm:">=10.0.0"},r0="module",i0="build/index.cjs",n0="build/index.js",s0="build/index.d.ts",a0={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},o0={".":{types:"./build/index.d.ts",import:"./build/index.js",require:"./build/index.cjs"},"./package.json":"./package.json"},u0={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"},l0={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},c0="https://github.com/raineorshine/npm-check-updates",h0={url:"https://github.com/raineorshine/npm-check-updates/issues"},f0={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"},d0={"@eslint/compat":"^2.0.3","@eslint/js":"^10.0.1","@streamparser/json":"^0.0.22","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/bun":"^1.3.11","@types/chai":"^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.5.2","@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.57.2","@typescript-eslint/parser":"^8.57.2",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","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"^10.2.0","eslint-config-prettier":"^10.1.8","eslint-config-raine":"^0.5.0","eslint-config-standard":"^17.1.0","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import-x":"^4.16.2","eslint-plugin-jsdoc":"^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.4.0","hosted-git-info":"^9.0.2",ini:"^6.0.0","js-yaml":"^4.1.1","jsonc-parser":"^3.3.1",jsonlines:"^0.1.1","lockfile-lint":"^5.0.0","lodash-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.1",progress:"^2.0.3","prompts-ncu":"^3.0.2","rc-config-loader":"^4.1.4",rfdc:"^1.4.1",rimraf:"^6.1.3",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^21.0.3","source-map-support":"^0.5.21","spawn-please":"^3.0.0","ts-json-schema-generator":"^2.9.0",tsx:"^4.21.0",typescript:"^6.0.2",untildify:"^6.0.0","update-notifier":"^7.3.1",verdaccio:"^6.4.0",vite:"^8.0.8","vite-bundle-analyzer":"^1.3.6","vite-plugin-dts":"^4.5.4",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},p0=["build","!**/test/**"],m0={"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},qn={name:Vg,version:Yg,author:Kg,license:Zg,contributors:Xg,description:Qg,keywords:e0,engines:t0,type:r0,main:i0,module:n0,types:s0,bin:a0,exports:o0,scripts:u0,repository:l0,homepage:c0,bugs:h0,overrides:f0,devDependencies:d0,files:p0,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:m0},lu=I.__commonJSMin(((e,t)=>{var r=[],i=0,s=(h,a)=>{i>=a&&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})),g0=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")}})),v0=I.__commonJSMin(((e,t)=>{var r=g0();t.exports=i=>typeof i=="string"?i.replace(r(),""):i})),kh=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})),y0=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}})),_0=I.__commonJSMin(((e,t)=>{var r=v0(),i=kh(),s=y0(),h=a=>{if(typeof a!="string"||a.length===0||(a=r(a),a.length===0))return 0;a=a.replace(s()," ");let n=0;for(let l=0;l<a.length;l++){const u=a.codePointAt(l);u<=31||u>=127&&u<=159||u>=768&&u<=879||(u>65535&&l++,n+=i(u)?2:1)}return n};t.exports=h,t.exports.default=h})),Lh=I.__commonJSMin(((e,t)=>{var r=_0();function i(S){return S?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function s(S){let A=i();return(""+S).replace(A,"").split(`
|
|
49
49
|
`).reduce(function(C,T){return r(T)>C?r(T):C},0)}function h(S,A){return Array(A+1).join(S)}function a(S,A,C,T){let U=s(S);if(A+1>=U){let $=A-U;switch(T){case"right":S=h(C,$)+S;break;case"center":{let z=Math.ceil($/2);S=h(C,$-z)+S+h(C,z);break}default:S=S+h(C,$);break}}return S}var n={};function l(S,A,C){A="\x1B["+A+"m",C="\x1B["+C+"m",n[A]={set:S,to:!0},n[C]={set:S,to:!1},n[S]={on:A,off:C}}l("bold",1,22),l("italics",3,23),l("underline",4,24),l("inverse",7,27),l("strikethrough",9,29);function u(S,A){let C=A[1]?parseInt(A[1].split(";")[0]):0;if(C>=30&&C<=39||C>=90&&C<=97){S.lastForegroundAdded=A[0];return}if(C>=40&&C<=49||C>=100&&C<=107){S.lastBackgroundAdded=A[0];return}if(C===0){for(let U in S)Object.prototype.hasOwnProperty.call(S,U)&&delete S[U];return}let T=n[A[0]];T&&(S[T.set]=T.to)}function f(S){let A=i(!0),C=A.exec(S),T={};for(;C!==null;)u(T,C),C=A.exec(S);return T}function o(S,A){let C=S.lastBackgroundAdded,T=S.lastForegroundAdded;return delete S.lastBackgroundAdded,delete S.lastForegroundAdded,Object.keys(S).forEach(function(U){S[U]&&(A+=n[U].off)}),C&&C!="\x1B[49m"&&(A+="\x1B[49m"),T&&T!="\x1B[39m"&&(A+="\x1B[39m"),A}function c(S,A){let C=S.lastBackgroundAdded,T=S.lastForegroundAdded;return delete S.lastBackgroundAdded,delete S.lastForegroundAdded,Object.keys(S).forEach(function(U){S[U]&&(A=n[U].on+A)}),C&&C!="\x1B[49m"&&(A=C+A),T&&T!="\x1B[39m"&&(A=T+A),A}function d(S,A){if(S.length===s(S))return S.substr(0,A);for(;s(S)>A;)S=S.slice(0,-1);return S}function p(S,A){let C=i(!0),T=S.split(i()),U=0,$=0,z="",V,H={};for(;$<A;){V=C.exec(S);let L=T[U];if(U++,$+s(L)>A&&(L=d(L,A-$)),z+=L,$+=s(L),$<A){if(!V)break;z+=V[0],u(H,V)}}return o(H,z)}function g(S,A,C){if(C=C||"…",s(S)<=A)return S;A-=s(C);let T=p(S,A);T+=C;const U="\x1B]8;;\x07";return S.includes(U)&&!T.includes(U)&&(T+=U),T}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(S,A){S=S||{},A=A||m();let C=Object.assign({},A,S);return C.chars=Object.assign({},A.chars,S.chars),C.style=Object.assign({},A.style,S.style),C}function y(S,A){let C=[],T=A.split(/(\s+)/g),U=[],$=0,z;for(let V=0;V<T.length;V+=2){let H=T[V],L=$+s(H);$>0&&z&&(L+=z.length),L>S?($!==0&&C.push(U.join("")),U=[H],$=s(H)):(U.push(z||"",H),$=L),z=T[V+1]}return $&&C.push(U.join("")),C}function w(S,A){let C=[],T="";function U(z,V){for(T.length&&V&&(T+=V),T+=z;T.length>S;)C.push(T.slice(0,S)),T=T.slice(S)}let $=A.split(/(\s+)/g);for(let z=0;z<$.length;z+=2)U($[z],z&&$[z-1]);return T.length&&C.push(T),C}function _(S,A,C=!0){let T=[];A=A.split(`
|
|
50
50
|
`);const U=C?y:w;for(let $=0;$<A.length;$++)T.push.apply(T,U(S,A[$]));return T}function b(S){let A={},C=[];for(let T=0;T<S.length;T++){let U=c(A,S[T]);A=f(U);let $=Object.assign({},A);C.push(o($,U))}return C}function E(S,A){return["\x1B]","8",";",";",S||A,"\x07",A,"\x1B]","8",";",";","\x07"].join("")}t.exports={strlen:s,repeat:h,pad:a,truncate:g,mergeOptions:v,wordWrap:_,colorizeLines:b,hyperlink:E}})),E0=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],a=r[s]=[];a.open="\x1B["+h[0]+"m",a.close="\x1B["+h[1]+"m"})})),b0=I.__commonJSMin(((e,t)=>{t.exports=function(r,i){i=i||process.argv;var s=i.indexOf("--"),h=/^-{1,2}/.test(r)?"":"--",a=i.indexOf(h+r);return a!==-1&&(s===-1?!0:a<s)}})),w0=I.__commonJSMin(((e,t)=>{var r=require("os"),i=b0(),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 a(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function n(u){if(h===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(u&&!u.isTTY&&h!==!0)return 0;var f=h?1:0;if(process.platform==="win32"){var o=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(o[0])>=10&&Number(o[2])>=10586?Number(o[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 l(u){return a(n(u))}t.exports={supportsColor:l,stdout:l(process.stdout),stderr:l(process.stderr)}})),S0=I.__commonJSMin(((e,t)=>{t.exports=function(i,s){var h="";i=i||"Run the trap, drop the bass",i=i.split("");var a={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 l=a[n]||[" "],u=Math.floor(Math.random()*l.length);typeof a[n]<"u"?h+=a[n][u]:h+=n}),h}})),D0=I.__commonJSMin(((e,t)=>{t.exports=function(i,s){i=i||" he is here ";var h={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},a=[].concat(h.up,h.down,h.mid);function n(f){return Math.floor(Math.random()*f)}function l(f){var o=!1;return a.filter(function(c){o=c===f}),o}function u(f,o){var c="",d,p;o=o||{},o.up=typeof o.up<"u"?o.up:!0,o.mid=typeof o.mid<"u"?o.mid:!0,o.down=typeof o.down<"u"?o.down:!0,o.size=typeof o.size<"u"?o.size:"maxi",f=f.split("");for(p in f)if(!l(p)){switch(c=c+f[p],d={up:0,down:0,mid:0},o.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++)o[v]&&(c=c+h[v][n(h[v].length)])}return c}return u(i,s)}})),A0=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)}}}})),C0=I.__commonJSMin(((e,t)=>{t.exports=function(r){return function(i,s,h){return s%2===0?i:r.inverse(i)}}})),T0=I.__commonJSMin(((e,t)=>{t.exports=function(r){var i=["red","yellow","green","blue","magenta"];return function(s,h,a){return s===" "?s:r[i[h++%i.length]](s)}}})),R0=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,a){return s===" "?s:r[i[Math.round(Math.random()*(i.length-2))]](s)}}})),O0=I.__commonJSMin(((e,t)=>{var r={};t.exports=r,r.themes={};var i=require("util"),s=r.styles=E0(),h=Object.defineProperties,a=new RegExp(/[\r\n]+/g);r.supportsColor=w0().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 w=s[y];return!w&&y in r?r[y](v):w.open+v+w.close};var n=/[|\\{}()[\]^$+*?.]/g,l=function(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(n,"\\$&")};function u(m){var v=function y(){return c.apply(y,arguments)};return v._styles=m,v.__proto__=o,v}var f=(function(){var m={};return s.grey=s.gray,Object.keys(s).forEach(function(v){s[v].closeRe=new RegExp(l(s[v].close),"g"),m[v]={get:function(){return u(this._styles.concat(v))}}}),m})(),o=h(function(){},f);function c(){var m=Array.prototype.slice.call(arguments).map(function(b){return b!=null&&b.constructor===String?b:i.inspect(b)}).join(" ");if(!r.enabled||!m)return m;for(var v=m.indexOf(`
|
|
51
51
|
`)!=-1,y=this._styles,w=y.length;w--;){var _=s[y[w]];m=_.open+m.replace(_.closeRe,_.open)+_.close,v&&(m=m.replace(a,function(b){return _.close+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(w){if(typeof m[y]=="object"){var _=w;for(var b in m[y])_=r[m[y][b]](_);return _}return r[m[y]](w)}})(v)};function d(){var m={};return Object.keys(f).forEach(function(v){m[v]={get:function(){return u([v])}}}),m}var p=function(v,y){var w=y.split("");return w=w.map(v),w.join("")};r.trap=S0(),r.zalgo=D0(),r.maps={},r.maps.america=A0()(r),r.maps.zebra=C0()(r),r.maps.rainbow=T0()(r),r.maps.random=R0()(r);for(var g in r.maps)(function(m){r[m]=function(v){return p(r.maps[m],v)}})(g);h(r,d())})),I0=I.__commonJSMin(((e,t)=>{var r=O0();t.exports=r})),k0=I.__commonJSMin(((e,t)=>{var{info:r,debug:i}=lu(),s=Lh(),h=class Nn{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(b){u(m,v,b,y)}),this.truncate=this.options.truncate||p.truncate;let w=this.options.style=this.options.style||{},_=p.style;u(w,_,"padding-left",this),u(w,_,"padding-right",this),this.head=w.head||_.head,this.border=w.border||_.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 w=1;for(;w<this.colSpan;)this.fixedWidth+=p.colWidths[this.x+w],w++}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(`
|
|
@@ -55,9 +55,9 @@ Filtered results for: ${this.inputValue?this.inputValue:r.gray("Enter something
|
|
|
55
55
|
`:`
|
|
56
56
|
`)+r,s=i+1,i=e.indexOf(`
|
|
57
57
|
`,s)}while(i!==-1);return h+=e.slice(s),h}var{stdout:Ul,stderr:Hl}=U0,Sa=Symbol("GENERATOR"),fi=Symbol("STYLER"),qi=Symbol("IS_EMPTY"),ql=["ansi","ansi","ansi256","ansi16m"],di=Object.create(null),z0=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Ul?Ul.level:0;e.level=t.level===void 0?r:t.level},G0=class{constructor(e){return Fh(e)}},Fh=e=>{const t=(...r)=>r.join(" ");return z0(t,e),Object.setPrototypeOf(t,tn.prototype),t};function tn(e){return Fh(e)}Object.setPrototypeOf(tn.prototype,Function.prototype);for(const[e,t]of Object.entries(rr))di[e]={get(){const r=Gn(this,Aa(t.open,t.close,this[fi]),this[qi]);return Object.defineProperty(this,e,{value:r}),r}};di.visible={get(){const e=Gn(this,this[fi],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Da=(e,t,r,...i)=>e==="rgb"?t==="ansi16m"?rr[r].ansi16m(...i):t==="ansi256"?rr[r].ansi256(rr.rgbToAnsi256(...i)):rr[r].ansi(rr.rgbToAnsi(...i)):e==="hex"?Da("rgb",t,r,...rr.hexToRgb(...i)):rr[r][e](...i);for(const e of["rgb","hex","ansi256"]){di[e]={get(){const{level:r}=this;return function(...i){const s=Aa(Da(e,ql[r],"color",...i),rr.color.close,this[fi]);return Gn(this,s,this[qi])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);di[t]={get(){const{level:r}=this;return function(...i){const s=Aa(Da(e,ql[r],"bgColor",...i),rr.bgColor.close,this[fi]);return Gn(this,s,this[qi])}}}}var J0=Object.defineProperties(()=>{},{...di,level:{enumerable:!0,get(){return this[Sa].level},set(e){this[Sa].level=e}}}),Aa=(e,t,r)=>{let i,s;return r===void 0?(i=e,s=t):(i=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:i,closeAll:s,parent:r}},Gn=(e,t,r)=>{const i=(...s)=>W0(i,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(i,J0),i[Sa]=e,i[fi]=t,i[qi]=r,i},W0=(e,t)=>{if(e.level<=0||!t)return e[qi]?"":t;let r=e[fi];if(r===void 0)return t;const{openAll:i,closeAll:s}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=H0(t,r.close,r.open),r=r.parent;const h=t.indexOf(`
|
|
58
|
-
`);return h!==-1&&(t=q0(t,s,i,h)),i+t+s};Object.defineProperties(tn.prototype,di);var Nh=tn(),Yk=tn({level:Hl?Hl.level:0});function at(e,t,r={}){const i=Array.isArray(e);return t=t||(s=>({[s]:!0})),Object.entries(e||{}).forEach(([s,h],a)=>{const n=i?t(h,a,r):t(s,h,r);Object.entries(n||{}).forEach(l=>{r[l[0]]=l[1]})}),r}var xh={blue:!0,bold:!0,cyan:!0,dim:!0,gray:!0,green:!0,magenta:!0,red:!0,reset:!0,underline:!0,yellow:!0},V0=at(xh,e=>({[e]:Object.assign(t=>t.toString(),{bold:t=>t.toString(),underline:t=>t.toString()})})),ji,rn=e=>e===!0?new G0({level:1}):e===null?V0:Nh,hu=e=>{ji=rn(e)},ra=()=>{if(!ji)throw new Error("Chalk has not been imported yet.")},ge=at(xh,e=>{const t=r=>(ra(),ji[e](r));return t.bold=r=>(ra(),ji[e].bold(r)),t.underline=r=>(ra(),ji[e].underline(r)),{[e]:t}}),Fr=(e,t)=>at(e,(r,i)=>t(r,i)?{[r]:i}:null),zi=e=>tt.default.stat(e).then(()=>!0,()=>!1),Y0=(0,yg.createRequire)(require("url").pathToFileURL(__filename).href);async function fu(e,{pkgFile:t}={}){const r=Y0.resolve.paths(e)||[],i=t?[Je.default.join(Je.default.dirname(t),"node_modules")]:[],s=[Je.default.join(process.cwd(),"node_modules")],h=[...i,...s,...r];for(const a of h){const n=Je.default.join(a,e,"package.json");if(await zi(n))try{return JSON.parse(await tt.default.readFile(n,"utf-8"))}catch{}}return null}async function K0(e,t,{pkgFile:r}={}){return t?t.version:(await fu(e,{pkgFile:r}))?.version??null}var nn=I.__commonJSMin((e=>{var t=(g,m)=>()=>(m||g((m={exports:{}}).exports,m),m.exports),r=t(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.tracing=g.metrics=void 0;var m=require("node:diagnostics_channel");g.metrics=(0,m.channel)("lru-cache:metrics"),g.tracing=(0,m.tracingChannel)("lru-cache")});Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var i=r(),s=()=>i.metrics.hasSubscribers||i.tracing.hasSubscribers,h=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a=new Set,n=typeof process=="object"&&process?process:{},l=(g,m,v,y)=>{typeof n.emitWarning=="function"?n.emitWarning(g,m,v,y):console.error(`[${v}] ${m}: ${g}`)},u=g=>!a.has(g),f=g=>!!g&&g===Math.floor(g)&&g>0&&isFinite(g),o=g=>f(g)?g<=Math.pow(2,8)?Uint8Array:g<=Math.pow(2,16)?Uint16Array:g<=Math.pow(2,32)?Uint32Array:g<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(g){super(g),this.fill(0)}},d=class Ni{heap;length;static#e=!1;static create(m){let v=o(m);if(!v)return[];Ni.#e=!0;let y=new Ni(m,v);return Ni.#e=!1,y}constructor(m,v){if(!Ni.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new v(m),this.length=0}push(m){this.heap[this.length++]=m}pop(){return this.heap[--this.length]}},p=class $h{#e;#t;#r;#n;#a;#l;#f;#c;get perf(){return this.#c}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#p;#h;#u;#i;#v;#w;#y;#m;#T;#g;#A;#C;#_;#E;#D;#R;#s;#F;static unsafeExposeInternals(m){return{starts:m.#C,ttls:m.#_,autopurgeTimers:m.#E,sizes:m.#A,keyMap:m.#h,keyList:m.#u,valList:m.#i,next:m.#v,prev:m.#w,get head(){return m.#y},get tail(){return m.#m},free:m.#T,isBackgroundFetch:v=>m.#d(v),backgroundFetch:(v,y,w,_)=>m.#B(v,y,w,_),moveToTail:v=>m.#Y(v),indexes:v=>m.#O(v),rindexes:v=>m.#I(v),isStale:v=>m.#S(v)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#o}get fetchMethod(){return this.#l}get memoMethod(){return this.#f}get dispose(){return this.#r}get onInsert(){return this.#n}get disposeAfter(){return this.#a}constructor(m){let{max:v=0,ttl:y,ttlResolution:w=1,ttlAutopurge:_,updateAgeOnGet:b,updateAgeOnHas:E,allowStale:S,dispose:A,onInsert:C,disposeAfter:T,noDisposeOnSet:U,noUpdateTTL:$,maxSize:z=0,maxEntrySize:V=0,sizeCalculation:H,fetchMethod:L,memoMethod:N,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:J,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:B,ignoreFetchAbort:F,perf:O}=m;if(O!==void 0&&typeof O?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#c=O??h,v!==0&&!f(v))throw new TypeError("max option must be a nonnegative integer");let x=v?o(v):Array;if(!x)throw new Error("invalid max value: "+v);if(this.#e=v,this.#t=z,this.maxEntrySize=V||this.#t,this.sizeCalculation=H,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(N!==void 0&&typeof N!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=N,L!==void 0&&typeof L!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#l=L,this.#R=!!L,this.#h=new Map,this.#u=Array.from({length:v}).fill(void 0),this.#i=Array.from({length:v}).fill(void 0),this.#v=new x(v),this.#w=new x(v),this.#y=0,this.#m=0,this.#T=d.create(v),this.#o=0,this.#p=0,typeof A=="function"&&(this.#r=A),typeof C=="function"&&(this.#n=C),typeof T=="function"?(this.#a=T,this.#g=[]):(this.#a=void 0,this.#g=void 0),this.#D=!!this.#r,this.#F=!!this.#n,this.#s=!!this.#a,this.noDisposeOnSet=!!U,this.noUpdateTTL=!!$,this.noDeleteOnFetchRejection=!!q,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(this.#t!==0&&!f(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!f(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!S,this.noDeleteOnStaleGet=!!J,this.updateAgeOnGet=!!b,this.updateAgeOnHas=!!E,this.ttlResolution=f(w)||w===0?w:1,this.ttlAutopurge=!!_,this.ttl=y||0,this.ttl){if(!f(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let Y="LRU_CACHE_UNBOUNDED";u(Y)&&(a.add(Y),l("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Y,$h))}}getRemainingTTL(m){return this.#h.has(m)?1/0:0}#N(){let m=new c(this.#e),v=new c(this.#e);this.#_=m,this.#C=v;let y=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#E=y,this.#P=(E,S,A=this.#c.now())=>{v[E]=S!==0?A:0,m[E]=S,w(E,S)},this.#k=E=>{v[E]=m[E]!==0?this.#c.now():0,w(E,m[E])};let w=this.ttlAutopurge?(E,S)=>{if(y?.[E]&&(clearTimeout(y[E]),y[E]=void 0),S&&S!==0&&y){let A=setTimeout(()=>{this.#S(E)&&this.#G(this.#u[E],"expire")},S+1);A.unref&&A.unref(),y[E]=A}}:()=>{};this.#L=(E,S)=>{if(m[S]){let A=m[S],C=v[S];if(!A||!C)return;E.ttl=A,E.start=C,E.now=_||b(),E.remainingTTL=A-(E.now-C)}};let _=0,b=()=>{let E=this.#c.now();if(this.ttlResolution>0){_=E;let S=setTimeout(()=>_=0,this.ttlResolution);S.unref&&S.unref()}return E};this.getRemainingTTL=E=>{let S=this.#h.get(E);if(S===void 0)return 0;let A=m[S],C=v[S];return!A||!C?1/0:A-((_||b())-C)},this.#S=E=>{let S=v[E],A=m[E];return!!A&&!!S&&(_||b())-S>A}}#k=()=>{};#L=()=>{};#P=()=>{};#S=()=>!1;#J(){let m=new c(this.#e);this.#p=0,this.#A=m,this.#x=v=>{this.#p-=m[v],m[v]=0},this.#j=(v,y,w,_)=>{if(this.#d(y))return 0;if(!f(w))if(_){if(typeof _!="function")throw new TypeError("sizeCalculation must be a function");if(w=_(y,v),!f(w))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return w},this.#$=(v,y,w)=>{if(m[v]=y,this.#t){let _=this.#t-m[v];for(;this.#p>_;)this.#H(!0)}this.#p+=m[v],w&&(w.entrySize=y,w.totalCalculatedSize=this.#p)}}#x=m=>{};#$=(m,v,y)=>{};#j=(m,v,y,w)=>{if(y||w)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:m=this.allowStale}={}){if(this.#o)for(let v=this.#m;this.#U(v)&&((m||!this.#S(v))&&(yield v),v!==this.#y);)v=this.#w[v]}*#I({allowStale:m=this.allowStale}={}){if(this.#o)for(let v=this.#y;this.#U(v)&&((m||!this.#S(v))&&(yield v),v!==this.#m);)v=this.#v[v]}#U(m){return m!==void 0&&this.#h.get(this.#u[m])===m}*entries(){for(let m of this.#O())this.#i[m]!==void 0&&this.#u[m]!==void 0&&!this.#d(this.#i[m])&&(yield[this.#u[m],this.#i[m]])}*rentries(){for(let m of this.#I())this.#i[m]!==void 0&&this.#u[m]!==void 0&&!this.#d(this.#i[m])&&(yield[this.#u[m],this.#i[m]])}*keys(){for(let m of this.#O()){let v=this.#u[m];v!==void 0&&!this.#d(this.#i[m])&&(yield v)}}*rkeys(){for(let m of this.#I()){let v=this.#u[m];v!==void 0&&!this.#d(this.#i[m])&&(yield v)}}*values(){for(let m of this.#O())this.#i[m]!==void 0&&!this.#d(this.#i[m])&&(yield this.#i[m])}*rvalues(){for(let m of this.#I())this.#i[m]!==void 0&&!this.#d(this.#i[m])&&(yield this.#i[m])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(m,v={}){for(let y of this.#O()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;if(_!==void 0&&m(_,this.#u[y],this))return this.#V(this.#u[y],v)}}forEach(m,v=this){for(let y of this.#O()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;_!==void 0&&m.call(v,_,this.#u[y],this)}}rforEach(m,v=this){for(let y of this.#I()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;_!==void 0&&m.call(v,_,this.#u[y],this)}}purgeStale(){let m=!1;for(let v of this.#I({allowStale:!0}))this.#S(v)&&(this.#G(this.#u[v],"expire"),m=!0);return m}info(m){let v=this.#h.get(m);if(v===void 0)return;let y=this.#i[v],w=this.#d(y)?y.__staleWhileFetching:y;if(w===void 0)return;let _={value:w};if(this.#_&&this.#C){let b=this.#_[v],E=this.#C[v];b&&E&&(_.ttl=b-(this.#c.now()-E),_.start=Date.now())}return this.#A&&(_.size=this.#A[v]),_}dump(){let m=[];for(let v of this.#O({allowStale:!0})){let y=this.#u[v],w=this.#i[v],_=this.#d(w)?w.__staleWhileFetching:w;if(_===void 0||y===void 0)continue;let b={value:_};if(this.#_&&this.#C){b.ttl=this.#_[v];let E=this.#c.now()-this.#C[v];b.start=Math.floor(Date.now()-E)}this.#A&&(b.size=this.#A[v]),m.unshift([y,b])}return m}load(m){this.clear();for(let[v,y]of m){if(y.start){let w=Date.now()-y.start;y.start=this.#c.now()-w}this.#M(v,y.value,y)}}set(m,v,y={}){let{status:w=i.metrics.hasSubscribers?{}:void 0}=y;y.status=w,w&&(w.op="set",w.key=m,v!==void 0&&(w.value=v));let _=this.#M(m,v,y);return w&&i.metrics.hasSubscribers&&i.metrics.publish(w),_}#M(m,v,y={}){let{ttl:w=this.ttl,start:_,noDisposeOnSet:b=this.noDisposeOnSet,sizeCalculation:E=this.sizeCalculation,status:S}=y;if(v===void 0)return S&&(S.set="deleted"),this.delete(m),this;let{noUpdateTTL:A=this.noUpdateTTL}=y;S&&!this.#d(v)&&(S.value=v);let C=this.#j(m,v,y.size||0,E,S);if(this.maxEntrySize&&C>this.maxEntrySize)return this.#G(m,"set"),S&&(S.set="miss",S.maxEntrySizeExceeded=!0),this;let T=this.#o===0?void 0:this.#h.get(m);if(T===void 0)T=this.#o===0?this.#m:this.#T.length!==0?this.#T.pop():this.#o===this.#e?this.#H(!1):this.#o,this.#u[T]=m,this.#i[T]=v,this.#h.set(m,T),this.#v[this.#m]=T,this.#w[T]=this.#m,this.#m=T,this.#o++,this.#$(T,C,S),S&&(S.set="add"),A=!1,this.#F&&this.#n?.(v,m,"add");else{this.#Y(T);let U=this.#i[T];if(v!==U){if(this.#R&&this.#d(U)){U.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:$}=U;$!==void 0&&!b&&(this.#D&&this.#r?.($,m,"set"),this.#s&&this.#g?.push([$,m,"set"]))}else b||(this.#D&&this.#r?.(U,m,"set"),this.#s&&this.#g?.push([U,m,"set"]));if(this.#x(T),this.#$(T,C,S),this.#i[T]=v,S){S.set="replace";let $=U&&this.#d(U)?U.__staleWhileFetching:U;$!==void 0&&(S.oldValue=$)}}else S&&(S.set="update");this.#F&&this.onInsert?.(v,m,v===U?"update":"replace")}if(w!==0&&!this.#_&&this.#N(),this.#_&&(A||this.#P(T,w,_),S&&this.#L(S,T)),!b&&this.#s&&this.#g){let U=this.#g,$;for(;$=U?.shift();)this.#a?.(...$)}return this}pop(){try{for(;this.#o;){let m=this.#i[this.#y];if(this.#H(!0),this.#d(m)){if(m.__staleWhileFetching)return m.__staleWhileFetching}else if(m!==void 0)return m}}finally{if(this.#s&&this.#g){let m=this.#g,v;for(;v=m?.shift();)this.#a?.(...v)}}}#H(m){let v=this.#y,y=this.#u[v],w=this.#i[v];return this.#R&&this.#d(w)?w.__abortController.abort(new Error("evicted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(w,y,"evict"),this.#s&&this.#g?.push([w,y,"evict"])),this.#x(v),this.#E?.[v]&&(clearTimeout(this.#E[v]),this.#E[v]=void 0),m&&(this.#u[v]=void 0,this.#i[v]=void 0,this.#T.push(v)),this.#o===1?(this.#y=this.#m=0,this.#T.length=0):this.#y=this.#v[v],this.#h.delete(y),this.#o--,v}has(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="has",y.key=m);let w=this.#b(m,v);return i.metrics.hasSubscribers&&i.metrics.publish(y),w}#b(m,v={}){let{updateAgeOnHas:y=this.updateAgeOnHas,status:w}=v,_=this.#h.get(m);if(_!==void 0){let b=this.#i[_];if(this.#d(b)&&b.__staleWhileFetching===void 0)return!1;if(this.#S(_))w&&(w.has="stale",this.#L(w,_));else return y&&this.#k(_),w&&(w.has="hit",this.#L(w,_)),!0}else w&&(w.has="miss");return!1}peek(m,v={}){let{status:y=s()?{}:void 0}=v;y&&(y.op="peek",y.key=m),v.status=y;let w=this.#q(m,v);return i.metrics.hasSubscribers&&i.metrics.publish(y),w}#q(m,v){let{status:y,allowStale:w=this.allowStale}=v,_=this.#h.get(m);if(_===void 0||!w&&this.#S(_)){y&&(y.peek=_===void 0?"miss":"stale");return}let b=this.#i[_],E=this.#d(b)?b.__staleWhileFetching:b;return y&&(E!==void 0?(y.peek="hit",y.value=E):y.peek="miss"),E}#B(m,v,y,w){let _=v===void 0?void 0:this.#i[v];if(this.#d(_))return _;let b=new AbortController,{signal:E}=y;E?.addEventListener("abort",()=>b.abort(E.reason),{signal:b.signal});let S={signal:b.signal,options:y,context:w},A=(V,H=!1)=>{let{aborted:L}=b.signal,N=y.ignoreFetchAbort&&V!==void 0,q=y.ignoreFetchAbort||!!(y.allowStaleOnFetchAbort&&V!==void 0);if(y.status&&(L&&!H?(y.status.fetchAborted=!0,y.status.fetchError=b.signal.reason,N&&(y.status.fetchAbortIgnored=!0)):y.status.fetchResolved=!0),L&&!N&&!H)return T(b.signal.reason,q);let J=$,P=this.#i[v];return(P===$||P===void 0&&N&&H)&&(V===void 0?J.__staleWhileFetching!==void 0?this.#i[v]=J.__staleWhileFetching:this.#G(m,"fetch"):(y.status&&(y.status.fetchUpdated=!0),this.#M(m,V,S.options))),V},C=V=>(y.status&&(y.status.fetchRejected=!0,y.status.fetchError=V),T(V,!1)),T=(V,H)=>{let{aborted:L}=b.signal,N=L&&y.allowStaleOnFetchAbort,q=N||y.allowStaleOnFetchRejection,J=q||y.noDeleteOnFetchRejection,P=$;if(this.#i[v]===$&&(!J||!H&&P.__staleWhileFetching===void 0?this.#G(m,"fetch"):N||(this.#i[v]=P.__staleWhileFetching)),q)return y.status&&P.__staleWhileFetching!==void 0&&(y.status.returnedStale=!0),P.__staleWhileFetching;if(P.__returned===P)throw V},U=(V,H)=>{let L=this.#l?.(m,_,S);L&&L instanceof Promise&&L.then(N=>V(N===void 0?void 0:N),H),b.signal.addEventListener("abort",()=>{(!y.ignoreFetchAbort||y.allowStaleOnFetchAbort)&&(V(void 0),y.allowStaleOnFetchAbort&&(V=N=>A(N,!0)))})};y.status&&(y.status.fetchDispatched=!0);let $=new Promise(U).then(A,C),z=Object.assign($,{__abortController:b,__staleWhileFetching:_,__returned:void 0});return v===void 0?(this.#M(m,z,{...S.options,status:void 0}),v=this.#h.get(m)):this.#i[v]=z,z}#d(m){if(!this.#R)return!1;let v=m;return!!v&&v instanceof Promise&&v.hasOwnProperty("__staleWhileFetching")&&v.__abortController instanceof AbortController}fetch(m,v={}){let y=i.tracing.hasSubscribers,{status:w=s()?{}:void 0}=v;v.status=w,w&&v.context&&(w.context=v.context);let _=this.#z(m,v);return w&&s()&&y&&(w.trace=!0,i.tracing.tracePromise(()=>_,w).catch(()=>{})),_}async#z(m,v={}){let{allowStale:y=this.allowStale,updateAgeOnGet:w=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,ttl:b=this.ttl,noDisposeOnSet:E=this.noDisposeOnSet,size:S=0,sizeCalculation:A=this.sizeCalculation,noUpdateTTL:C=this.noUpdateTTL,noDeleteOnFetchRejection:T=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:U=this.allowStaleOnFetchRejection,ignoreFetchAbort:$=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:V,forceRefresh:H=!1,status:L,signal:N}=v;if(L&&(L.op="fetch",L.key=m,H&&(L.forceRefresh=!0)),!this.#R)return L&&(L.fetch="get"),this.#V(m,{allowStale:y,updateAgeOnGet:w,noDeleteOnStaleGet:_,status:L});let q={allowStale:y,updateAgeOnGet:w,noDeleteOnStaleGet:_,ttl:b,noDisposeOnSet:E,size:S,sizeCalculation:A,noUpdateTTL:C,noDeleteOnFetchRejection:T,allowStaleOnFetchRejection:U,allowStaleOnFetchAbort:z,ignoreFetchAbort:$,status:L,signal:N},J=this.#h.get(m);if(J===void 0){L&&(L.fetch="miss");let P=this.#B(m,J,q,V);return P.__returned=P}else{let P=this.#i[J];if(this.#d(P)){let x=y&&P.__staleWhileFetching!==void 0;return L&&(L.fetch="inflight",x&&(L.returnedStale=!0)),x?P.__staleWhileFetching:P.__returned=P}let B=this.#S(J);if(!H&&!B)return L&&(L.fetch="hit"),this.#Y(J),w&&this.#k(J),L&&this.#L(L,J),P;let F=this.#B(m,J,q,V),O=F.__staleWhileFetching!==void 0&&y;return L&&(L.fetch=B?"stale":"refresh",O&&B&&(L.returnedStale=!0)),O?F.__staleWhileFetching:F.__returned=F}}forceFetch(m,v={}){let y=i.tracing.hasSubscribers,{status:w=s()?{}:void 0}=v;v.status=w,w&&v.context&&(w.context=v.context);let _=this.#W(m,v);return w&&s()&&y&&(w.trace=!0,i.tracing.tracePromise(()=>_,w).catch(()=>{})),_}async#W(m,v={}){let y=await this.#z(m,v);if(y===void 0)throw new Error("fetch() returned undefined");return y}memo(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="memo",y.key=m,v.context&&(y.context=v.context));let w=this.#X(m,v);return y&&(y.value=w),i.metrics.hasSubscribers&&i.metrics.publish(y),w}#X(m,v={}){let y=this.#f;if(!y)throw new Error("no memoMethod provided to constructor");let{context:w,status:_,forceRefresh:b,...E}=v;_&&b&&(_.forceRefresh=!0);let S=this.#V(m,E),A=b||S===void 0;if(_&&(_.memo=A?"miss":"hit",A||(_.value=S)),!A)return S;let C=y(m,S,{options:E,context:w});return _&&(_.value=C),this.#M(m,C,E),C}get(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="get",y.key=m);let w=this.#V(m,v);return y&&(w!==void 0&&(y.value=w),i.metrics.hasSubscribers&&i.metrics.publish(y)),w}#V(m,v={}){let{allowStale:y=this.allowStale,updateAgeOnGet:w=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,status:b}=v,E=this.#h.get(m);if(E===void 0){b&&(b.get="miss");return}let S=this.#i[E],A=this.#d(S);return b&&this.#L(b,E),this.#S(E)?A?(b&&(b.get="stale-fetching"),y&&S.__staleWhileFetching!==void 0?(b&&(b.returnedStale=!0),S.__staleWhileFetching):void 0):(_||this.#G(m,"expire"),b&&(b.get="stale"),y?(b&&(b.returnedStale=!0),S):void 0):(b&&(b.get=A?"fetching":"hit"),this.#Y(E),w&&this.#k(E),A?S.__staleWhileFetching:S)}#K(m,v){this.#w[v]=m,this.#v[m]=v}#Y(m){m!==this.#m&&(m===this.#y?this.#y=this.#v[m]:this.#K(this.#w[m],this.#v[m]),this.#K(this.#m,m),this.#m=m)}delete(m){return this.#G(m,"delete")}#G(m,v){i.metrics.hasSubscribers&&i.metrics.publish({op:"delete",delete:v,key:m});let y=!1;if(this.#o!==0){let w=this.#h.get(m);if(w!==void 0)if(this.#E?.[w]&&(clearTimeout(this.#E?.[w]),this.#E[w]=void 0),y=!0,this.#o===1)this.#Z(v);else{this.#x(w);let _=this.#i[w];if(this.#d(_)?_.__abortController.abort(new Error("deleted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(_,m,v),this.#s&&this.#g?.push([_,m,v])),this.#h.delete(m),this.#u[w]=void 0,this.#i[w]=void 0,w===this.#m)this.#m=this.#w[w];else if(w===this.#y)this.#y=this.#v[w];else{let b=this.#w[w];this.#v[b]=this.#v[w];let E=this.#v[w];this.#w[E]=this.#w[w]}this.#o--,this.#T.push(w)}}if(this.#s&&this.#g?.length){let w=this.#g,_;for(;_=w?.shift();)this.#a?.(..._)}return y}clear(){return this.#Z("delete")}#Z(m){for(let v of this.#I({allowStale:!0})){let y=this.#i[v];if(this.#d(y))y.__abortController.abort(new Error("deleted"));else{let w=this.#u[v];this.#D&&this.#r?.(y,w,m),this.#s&&this.#g?.push([y,w,m])}}if(this.#h.clear(),this.#i.fill(void 0),this.#u.fill(void 0),this.#_&&this.#C){this.#_.fill(0),this.#C.fill(0);for(let v of this.#E??[])v!==void 0&&clearTimeout(v);this.#E?.fill(void 0)}if(this.#A&&this.#A.fill(0),this.#y=0,this.#m=0,this.#T.length=0,this.#p=0,this.#o=0,this.#s&&this.#g){let v=this.#g,y;for(;y=v?.shift();)this.#a?.(...y)}}};e.LRUCache=p})),Z0=I.__commonJSMin(((e,t)=>{var r=(...n)=>n.every(l=>l)?n.join(""):"",i=n=>n?encodeURIComponent(n):"",s=n=>n.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),h={sshtemplate:({domain:n,user:l,project:u,committish:f})=>`git@${n}:${l}/${u}.git${r("#",f)}`,sshurltemplate:({domain:n,user:l,project:u,committish:f})=>`git+ssh://git@${n}/${l}/${u}.git${r("#",f)}`,edittemplate:({domain:n,user:l,project:u,committish:f,editpath:o,path:c})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f||"HEAD"),"/",c)}`,browsetemplate:({domain:n,user:l,project:u,committish:f,treepath:o})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f))}`,browsetreetemplate:({domain:n,user:l,project:u,committish:f,treepath:o,path:c,fragment:d,hashformat:p})=>`https://${n}/${l}/${u}/${o}/${i(f||"HEAD")}/${c}${r("#",p(d||""))}`,browseblobtemplate:({domain:n,user:l,project:u,committish:f,blobpath:o,path:c,fragment:d,hashformat:p})=>`https://${n}/${l}/${u}/${o}/${i(f||"HEAD")}/${c}${r("#",p(d||""))}`,docstemplate:({domain:n,user:l,project:u,treepath:f,committish:o})=>`https://${n}/${l}/${u}${r("/",f,"/",i(o))}#readme`,httpstemplate:({auth:n,domain:l,user:u,project:f,committish:o})=>`git+https://${r(n,"@")}${l}/${u}/${f}.git${r("#",o)}`,filetemplate:({domain:n,user:l,project:u,committish:f,path:o})=>`https://${n}/${l}/${u}/raw/${i(f||"HEAD")}/${o}`,shortcuttemplate:({type:n,user:l,project:u,committish:f})=>`${n}:${l}/${u}${r("#",f)}`,pathtemplate:({user:n,project:l,committish:u})=>`${n}/${l}${r("#",u)}`,bugstemplate:({domain:n,user:l,project:u})=>`https://${n}/${l}/${u}/issues`,hashformat:s},a={};a.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:n,user:l,project:u,committish:f,path:o})=>`https://${r(n,"@")}raw.githubusercontent.com/${l}/${u}/${i(f||"HEAD")}/${o}`,gittemplate:({auth:n,domain:l,user:u,project:f,committish:o})=>`git://${r(n,"@")}${l}/${u}/${f}.git${r("#",o)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://codeload.${n}/${l}/${u}/tar.gz/${i(f||"HEAD")}`,extract:n=>{let[,l,u,f,o]=n.pathname.split("/",5);if(!(f&&f!=="tree")&&(f||(o=n.hash.slice(1)),u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:o}}},a.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:n,user:l,project:u,committish:f,treepath:o,path:c,editpath:d})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f||"HEAD"),"/",c,d)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/get/${i(f||"HEAD")}.tar.gz`,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(!["get"].includes(f)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:n.hash.slice(1)}}},a.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/repository/archive.tar.gz?ref=${i(f||"HEAD")}`,extract:n=>{const l=n.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;const u=l.split("/");let f=u.pop();f.endsWith(".git")&&(f=f.slice(0,-4));const o=u.join("/");if(!(!o||!f))return{user:o,project:f,committish:n.hash.slice(1)}}},a.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:n,project:l,committish:u})=>`git@${n}:${l}.git${r("#",u)}`,sshurltemplate:({domain:n,project:l,committish:u})=>`git+ssh://git@${n}/${l}.git${r("#",u)}`,edittemplate:({domain:n,user:l,project:u,committish:f,editpath:o})=>`https://${n}/${l}/${u}${r("/",i(f))}/${o}`,browsetemplate:({domain:n,project:l,committish:u})=>`https://${n}/${l}${r("/",i(u))}`,browsetreetemplate:({domain:n,project:l,committish:u,path:f,hashformat:o})=>`https://${n}/${l}${r("/",i(u))}${r("#",o(f))}`,browseblobtemplate:({domain:n,project:l,committish:u,path:f,hashformat:o})=>`https://${n}/${l}${r("/",i(u))}${r("#",o(f))}`,docstemplate:({domain:n,project:l,committish:u})=>`https://${n}/${l}${r("/",i(u))}`,httpstemplate:({domain:n,project:l,committish:u})=>`git+https://${n}/${l}.git${r("#",u)}`,filetemplate:({user:n,project:l,committish:u,path:f})=>`https://gist.githubusercontent.com/${n}/${l}/raw${r("/",i(u))}/${f}`,shortcuttemplate:({type:n,project:l,committish:u})=>`${n}:${l}${r("#",u)}`,pathtemplate:({project:n,committish:l})=>`${n}${r("#",l)}`,bugstemplate:({domain:n,project:l})=>`https://${n}/${l}`,gittemplate:({domain:n,project:l,committish:u})=>`git://${n}/${l}.git${r("#",u)}`,tarballtemplate:({project:n,committish:l})=>`https://codeload.github.com/gist/${n}/tar.gz/${i(l||"HEAD")}`,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(f!=="raw"){if(!u){if(!l)return;u=l,l=null}return u.endsWith(".git")&&(u=u.slice(0,-4)),{user:l,project:u,committish:n.hash.slice(1)}}},hashformat:function(n){return n&&"file-"+s(n)}},a.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:n,user:l,project:u,committish:f,path:o})=>`https://${n}/${l}/${u}/blob/${i(f)||"HEAD"}/${o}`,httpstemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}.git${r("#",f)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/archive/${i(f)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(!["archive"].includes(f)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:n.hash.slice(1)}}};for(const[n,l]of Object.entries(a))a[n]=Object.assign({},h,l);t.exports=a})),Bh=I.__commonJSMin(((e,t)=>{var r=require("url"),i=(n,l,u)=>{const f=n.indexOf(u);return n.lastIndexOf(l,f>-1?f:1/0)},s=n=>{try{return new r.URL(n)}catch{}},h=(n,l)=>{const u=n.indexOf(":"),f=n.slice(0,u+1);if(Object.prototype.hasOwnProperty.call(l,f)||n.substr(u,3)==="://")return n;const o=n.indexOf("@");return o>-1?o>u?`git+ssh://${n}`:n:`${n.slice(0,u+1)}//${n.slice(u+1)}`},a=n=>{const l=i(n,"@","#"),u=i(n,":","#");return u>l&&(n=n.slice(0,u)+"/"+n.slice(u+1)),i(n,":","#")===-1&&n.indexOf("//")===-1&&(n=`git+ssh://${n}`),n};t.exports=(n,l)=>{const u=l?h(n,l):n;return s(u)||s(a(u))}})),X0=I.__commonJSMin(((e,t)=>{var r=Bh(),i=s=>{const h=s.indexOf("#"),a=s.indexOf("/"),n=s.indexOf("/",a+1),l=s.indexOf(":"),u=/\s/.exec(s),f=s.indexOf("@"),o=!u||h>-1&&u.index>h,c=f===-1||h>-1&&f>h,d=l===-1||h>-1&&l>h,p=n===-1||h>-1&&n>h,g=a>0,m=h>-1?s[h-1]!=="/":!s.endsWith("/"),v=!s.startsWith(".");return o&&g&&m&&v&&c&&d&&p};t.exports=(s,h,{gitHosts:a,protocols:n})=>{if(!s)return;const l=r(i(s)?`github:${s}`:s,n);if(!l)return;const u=a.byShortcut[l.protocol],f=a.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname],o=u||f;if(!o)return;const c=a[u||f];let d=null;n[l.protocol]?.auth&&(l.username||l.password)&&(d=`${l.username}${l.password?":"+l.password:""}`);let p=null,g=null,m=null,v=null;try{if(u){let y=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const w=y.indexOf("@");w>-1&&(y=y.slice(w+1));const _=y.lastIndexOf("/");_>-1?(g=decodeURIComponent(y.slice(0,_)),g||(g=null),m=decodeURIComponent(y.slice(_+1))):m=decodeURIComponent(y),m.endsWith(".git")&&(m=m.slice(0,-4)),l.hash&&(p=decodeURIComponent(l.hash.slice(1))),v="shortcut"}else{if(!c.protocols.includes(l.protocol))return;const y=c.extract(l);if(!y)return;g=y.user&&decodeURIComponent(y.user),m=decodeURIComponent(y.project),p=decodeURIComponent(y.committish),v=n[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[o,g,d,m,p,v,h]}})),Mh=I.__commonJSMin(((e,t)=>{var{LRUCache:r}=nn(),i=Z0(),s=X0(),h=Bh(),a=new r({max:1e3});function n(u){try{const{protocol:f,hostname:o,pathname:c}=new URL(u);return o?`${/(?:git\+)http:$/.test(f)?"http:":"https:"}//${o}${c.replace(/\.git$/,"")}`:null}catch{return null}}var l=class Wt{constructor(f,o,c,d,p,g,m={}){Object.assign(this,Wt.#e[f],{type:f,user:o,auth:c,project:d,committish:p,default:g,opts:m})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(f,o){Wt.#e[f]=o,Wt.#e.byDomain[o.domain]=f,Wt.#e.byShortcut[`${f}:`]=f,Wt.#t[`${f}:`]={name:f}}static fromUrl(f,o){if(typeof f!="string")return;const c=f+JSON.stringify(o||{});if(!a.has(c)){const d=s(f,o,{gitHosts:Wt.#e,protocols:Wt.#t});a.set(c,d?new Wt(...d):void 0)}return a.get(c)}static fromManifest(f,o={}){if(!f||typeof f!="object")return;const c=f.repository,d=c&&(typeof c=="string"?c:typeof c=="object"&&typeof c.url=="string"?c.url:null);if(!d)throw new Error("no repository");const p=d&&Wt.fromUrl(d.replace(/^git\+/,""),o)||null;if(p)return p;const g=n(d);return Wt.fromUrl(g,o)||g}static parseUrl(f){return h(f)}#r(f,o){if(typeof f!="function")return null;const c={...this,...this.opts,...o};c.path||(c.path=""),c.path.startsWith("/")&&(c.path=c.path.slice(1)),c.noCommittish&&(c.committish=null);const d=f(c);return c.noGitPlus&&d.startsWith("git+")?d.slice(4):d}hash(){return this.committish?`#${this.committish}`:""}ssh(f){return this.#r(this.sshtemplate,f)}sshurl(f){return this.#r(this.sshurltemplate,f)}browse(f,...o){return typeof f!="string"?this.#r(this.browsetemplate,f):typeof o[0]!="string"?this.#r(this.browsetreetemplate,{...o[0],path:f}):this.#r(this.browsetreetemplate,{...o[1],fragment:o[0],path:f})}browseFile(f,...o){return typeof o[0]!="string"?this.#r(this.browseblobtemplate,{...o[0],path:f}):this.#r(this.browseblobtemplate,{...o[1],fragment:o[0],path:f})}docs(f){return this.#r(this.docstemplate,f)}bugs(f){return this.#r(this.bugstemplate,f)}https(f){return this.#r(this.httpstemplate,f)}git(f){return this.#r(this.gittemplate,f)}shortcut(f){return this.#r(this.shortcuttemplate,f)}path(f){return this.#r(this.pathtemplate,f)}tarball(f){return this.#r(this.tarballtemplate,{...f,noCommittish:!1})}file(f,o){return this.#r(this.filetemplate,{...o,path:f})}edit(f,o){return this.#r(this.edittemplate,{...o,path:f})}getDefaultRepresentation(){return this.default}toString(f){return this.default&&typeof this[this.default]=="function"?this[this.default](f):this.sshurl(f)}};for(const[u,f]of Object.entries(i))l.addHost(u,f);t.exports=l})),Q0=I.__toESM(Mh(),1);async function ev(e,{pkgFile:t}={}){return(await fu(e,{pkgFile:t}))?.repository??null}async function tv(e,t,{pkgFile:r}={}){const i=t?t.repository?t.repository:null:await ev(e,{pkgFile:r});if(!i)return null;let s,h="";if(typeof i=="string"){s=i;try{const a=new _g.URL(s);if(a.protocol==="https:"||a.protocol==="http:")return s}catch{}}else typeof i.url=="string"&&(s=i.url,typeof i.directory=="string"&&(h=i.directory));if(typeof s=="string"&&typeof h=="string"){const a=Q0.default.fromUrl(s)?.browse(h);return a!==void 0?a.replace(/\/$/,"").replace(/\/tree\/HEAD$/,""):s}return null}var rv=typeof global=="object"&&global&&global.Object===Object&&global,iv=typeof self=="object"&&self&&self.Object===Object&&self,Dr=rv||iv||Function("return this")(),vr=Dr.Symbol,Ph=Object.prototype,nv=Ph.hasOwnProperty,sv=Ph.toString,Ti=vr?vr.toStringTag:void 0;function av(e){var t=nv.call(e,Ti),r=e[Ti];try{e[Ti]=void 0;var i=!0}catch{}var s=sv.call(e);return i&&(t?e[Ti]=r:delete e[Ti]),s}var ov=Object.prototype.toString;function uv(e){return ov.call(e)}var lv="[object Null]",cv="[object Undefined]",zl=vr?vr.toStringTag:void 0;function du(e){return e==null?e===void 0?cv:lv:zl&&zl in Object(e)?av(e):uv(e)}function fs(e){return e!=null&&typeof e=="object"}var hv="[object Symbol]";function ds(e){return typeof e=="symbol"||fs(e)&&du(e)==hv}function fv(e,t){for(var r=-1,i=e==null?0:e.length,s=Array(i);++r<i;)s[r]=t(e[r],r,e);return s}var _i=Array.isArray,dv=1/0,Gl=vr?vr.prototype:void 0,Jl=Gl?Gl.toString:void 0;function jh(e){if(typeof e=="string")return e;if(_i(e))return fv(e,jh)+"";if(ds(e))return Jl?Jl.call(e):"";var t=e+"";return t=="0"&&1/e==-dv?"-0":t}var pv=/\s/;function mv(e){for(var t=e.length;t--&&pv.test(e.charAt(t)););return t}var gv=/^\s+/;function vv(e){return e&&e.slice(0,mv(e)+1).replace(gv,"")}function pi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wl=NaN,yv=/^[-+]0x[0-9a-f]+$/i,_v=/^0b[01]+$/i,Ev=/^0o[0-7]+$/i,bv=parseInt;function wv(e){if(typeof e=="number")return e;if(ds(e))return Wl;if(pi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vv(e);var r=_v.test(e);return r||Ev.test(e)?bv(e.slice(2),r?2:8):yv.test(e)?Wl:+e}var Vl=1/0,Sv=17976931348623157e292;function Dv(e){return e?(e=wv(e),e===Vl||e===-Vl?(e<0?-1:1)*Sv:e===e?e:0):e===0?e:0}function Yl(e){var t=Dv(e),r=t%1;return t===t?r?t-r:t:0}function pu(e){return e}var Av="[object AsyncFunction]",Cv="[object Function]",Tv="[object GeneratorFunction]",Rv="[object Proxy]";function Ov(e){if(!pi(e))return!1;var t=du(e);return t==Cv||t==Tv||t==Av||t==Rv}var ia=Dr["__core-js_shared__"],Kl=(function(){var e=/[^.]+$/.exec(ia&&ia.keys&&ia.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Iv(e){return!!Kl&&Kl in e}var kv=Function.prototype.toString;function Lv(e){if(e!=null){try{return kv.call(e)}catch{}try{return e+""}catch{}}return""}var Fv=/[\\^$.*+?()[\]{}|]/g,Nv=/^\[object .+?Constructor\]$/,xv=Function.prototype,$v=Object.prototype,Bv=xv.toString,Mv=$v.hasOwnProperty,Pv=RegExp("^"+Bv.call(Mv).replace(Fv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jv(e){return!pi(e)||Iv(e)?!1:(Ov(e)?Pv:Nv).test(Lv(e))}function Uv(e,t){return e?.[t]}function ps(e,t){var r=Uv(e,t);return jv(r)?r:void 0}var Zl=ps(Dr,"WeakMap"),Jn=Zl&&new Zl,Uh=Jn?function(e,t){return Jn.set(e,t),e}:pu,Xl=Object.create,mu=(function(){function e(){}return function(t){if(!pi(t))return{};if(Xl)return Xl(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Gi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=mu(e.prototype),i=e.apply(r,t);return pi(i)?i:r}}var Hv=1;function qv(e,t,r){var i=t&Hv,s=Gi(e);function h(){return(this&&this!==Dr&&this instanceof h?s:e).apply(i?r:this,arguments)}return h}function gu(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var zv=Math.max;function Hh(e,t,r,i){for(var s=-1,h=e.length,a=r.length,n=-1,l=t.length,u=zv(h-a,0),f=Array(l+u),o=!i;++n<l;)f[n]=t[n];for(;++s<a;)(o||s<h)&&(f[r[s]]=e[s]);for(;u--;)f[n++]=e[s++];return f}var Gv=Math.max;function qh(e,t,r,i){for(var s=-1,h=e.length,a=-1,n=r.length,l=-1,u=t.length,f=Gv(h-n,0),o=Array(f+u),c=!i;++s<f;)o[s]=e[s];for(var d=s;++l<u;)o[d+l]=t[l];for(;++a<n;)(c||s<h)&&(o[d+r[a]]=e[s++]);return o}function Jv(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}function vu(){}var Wv=4294967295;function mi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wv,this.__views__=[]}mi.prototype=mu(vu.prototype);mi.prototype.constructor=mi;function Vv(){}var yu=Jn?function(e){return Jn.get(e)}:Vv,Ql={},Yv=Object.prototype.hasOwnProperty;function xn(e){for(var t=e.name+"",r=Ql[t],i=Yv.call(Ql,t)?r.length:0;i--;){var s=r[i],h=s.func;if(h==null||h==e)return s.name}return t}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}yr.prototype=mu(vu.prototype);yr.prototype.constructor=yr;function zh(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function Kv(e){if(e instanceof mi)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=zh(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Zv=Object.prototype.hasOwnProperty;function Wn(e){if(fs(e)&&!_i(e)&&!(e instanceof mi)){if(e instanceof yr)return e;if(Zv.call(e,"__wrapped__"))return Kv(e)}return new yr(e)}Wn.prototype=vu.prototype;Wn.prototype.constructor=Wn;function Ca(e){var t=xn(e),r=Wn[t];if(typeof r!="function"||!(t in mi.prototype))return!1;if(e===r)return!0;var i=yu(r);return!!i&&e===i[0]}var Xv=800,Qv=16,ey=Date.now;function Gh(e){var t=0,r=0;return function(){var i=ey(),s=Qv-(i-r);if(r=i,s>0){if(++t>=Xv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jh=Gh(Uh),ty=/\{\n\/\* \[wrapped with (.+)\] \*/,ry=/,? & /;function iy(e){var t=e.match(ty);return t?t[1].split(ry):[]}var ny=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function sy(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ny,`{
|
|
58
|
+
`);return h!==-1&&(t=q0(t,s,i,h)),i+t+s};Object.defineProperties(tn.prototype,di);var Nh=tn(),Yk=tn({level:Hl?Hl.level:0});function at(e,t,r={}){const i=Array.isArray(e);return t=t||(s=>({[s]:!0})),Object.entries(e||{}).forEach(([s,h],a)=>{const n=i?t(h,a,r):t(s,h,r);Object.entries(n||{}).forEach(l=>{r[l[0]]=l[1]})}),r}var xh={blue:!0,bold:!0,cyan:!0,dim:!0,gray:!0,green:!0,magenta:!0,red:!0,reset:!0,underline:!0,yellow:!0},V0=at(xh,e=>({[e]:Object.assign(t=>t.toString(),{bold:t=>t.toString(),underline:t=>t.toString()})})),ji,rn=e=>e===!0?new G0({level:1}):e===null?V0:Nh,hu=e=>{ji=rn(e)},ra=()=>{if(!ji)throw new Error("Chalk has not been imported yet.")},ge=at(xh,e=>{const t=r=>(ra(),ji[e](r));return t.bold=r=>(ra(),ji[e].bold(r)),t.underline=r=>(ra(),ji[e].underline(r)),{[e]:t}}),Fr=(e,t)=>at(e,(r,i)=>t(r,i)?{[r]:i}:null),zi=e=>tt.default.stat(e).then(()=>!0,()=>!1),Y0=(0,yg.createRequire)(require("url").pathToFileURL(__filename).href);async function fu(e,{pkgFile:t}={}){const r=Y0.resolve.paths(e)||[],i=t?[We.default.join(We.default.dirname(t),"node_modules")]:[],s=[We.default.join(process.cwd(),"node_modules")],h=[...i,...s,...r];for(const a of h){const n=We.default.join(a,e,"package.json");if(await zi(n))try{return JSON.parse(await tt.default.readFile(n,"utf-8"))}catch{}}return null}async function K0(e,t,{pkgFile:r}={}){return t?t.version:(await fu(e,{pkgFile:r}))?.version??null}var nn=I.__commonJSMin((e=>{var t=(g,m)=>()=>(m||g((m={exports:{}}).exports,m),m.exports),r=t(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.tracing=g.metrics=void 0;var m=require("node:diagnostics_channel");g.metrics=(0,m.channel)("lru-cache:metrics"),g.tracing=(0,m.tracingChannel)("lru-cache")});Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var i=r(),s=()=>i.metrics.hasSubscribers||i.tracing.hasSubscribers,h=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a=new Set,n=typeof process=="object"&&process?process:{},l=(g,m,v,y)=>{typeof n.emitWarning=="function"?n.emitWarning(g,m,v,y):console.error(`[${v}] ${m}: ${g}`)},u=g=>!a.has(g),f=g=>!!g&&g===Math.floor(g)&&g>0&&isFinite(g),o=g=>f(g)?g<=Math.pow(2,8)?Uint8Array:g<=Math.pow(2,16)?Uint16Array:g<=Math.pow(2,32)?Uint32Array:g<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(g){super(g),this.fill(0)}},d=class Ni{heap;length;static#e=!1;static create(m){let v=o(m);if(!v)return[];Ni.#e=!0;let y=new Ni(m,v);return Ni.#e=!1,y}constructor(m,v){if(!Ni.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new v(m),this.length=0}push(m){this.heap[this.length++]=m}pop(){return this.heap[--this.length]}},p=class $h{#e;#t;#r;#n;#a;#l;#f;#c;get perf(){return this.#c}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#p;#h;#u;#i;#v;#w;#y;#m;#T;#g;#A;#C;#_;#E;#D;#R;#s;#F;static unsafeExposeInternals(m){return{starts:m.#C,ttls:m.#_,autopurgeTimers:m.#E,sizes:m.#A,keyMap:m.#h,keyList:m.#u,valList:m.#i,next:m.#v,prev:m.#w,get head(){return m.#y},get tail(){return m.#m},free:m.#T,isBackgroundFetch:v=>m.#d(v),backgroundFetch:(v,y,w,_)=>m.#B(v,y,w,_),moveToTail:v=>m.#Y(v),indexes:v=>m.#O(v),rindexes:v=>m.#I(v),isStale:v=>m.#S(v)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#o}get fetchMethod(){return this.#l}get memoMethod(){return this.#f}get dispose(){return this.#r}get onInsert(){return this.#n}get disposeAfter(){return this.#a}constructor(m){let{max:v=0,ttl:y,ttlResolution:w=1,ttlAutopurge:_,updateAgeOnGet:b,updateAgeOnHas:E,allowStale:S,dispose:A,onInsert:C,disposeAfter:T,noDisposeOnSet:U,noUpdateTTL:$,maxSize:z=0,maxEntrySize:V=0,sizeCalculation:H,fetchMethod:L,memoMethod:N,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:J,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:B,ignoreFetchAbort:F,perf:O}=m;if(O!==void 0&&typeof O?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#c=O??h,v!==0&&!f(v))throw new TypeError("max option must be a nonnegative integer");let x=v?o(v):Array;if(!x)throw new Error("invalid max value: "+v);if(this.#e=v,this.#t=z,this.maxEntrySize=V||this.#t,this.sizeCalculation=H,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(N!==void 0&&typeof N!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=N,L!==void 0&&typeof L!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#l=L,this.#R=!!L,this.#h=new Map,this.#u=Array.from({length:v}).fill(void 0),this.#i=Array.from({length:v}).fill(void 0),this.#v=new x(v),this.#w=new x(v),this.#y=0,this.#m=0,this.#T=d.create(v),this.#o=0,this.#p=0,typeof A=="function"&&(this.#r=A),typeof C=="function"&&(this.#n=C),typeof T=="function"?(this.#a=T,this.#g=[]):(this.#a=void 0,this.#g=void 0),this.#D=!!this.#r,this.#F=!!this.#n,this.#s=!!this.#a,this.noDisposeOnSet=!!U,this.noUpdateTTL=!!$,this.noDeleteOnFetchRejection=!!q,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(this.#t!==0&&!f(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!f(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!S,this.noDeleteOnStaleGet=!!J,this.updateAgeOnGet=!!b,this.updateAgeOnHas=!!E,this.ttlResolution=f(w)||w===0?w:1,this.ttlAutopurge=!!_,this.ttl=y||0,this.ttl){if(!f(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let Y="LRU_CACHE_UNBOUNDED";u(Y)&&(a.add(Y),l("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Y,$h))}}getRemainingTTL(m){return this.#h.has(m)?1/0:0}#N(){let m=new c(this.#e),v=new c(this.#e);this.#_=m,this.#C=v;let y=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#E=y,this.#P=(E,S,A=this.#c.now())=>{v[E]=S!==0?A:0,m[E]=S,w(E,S)},this.#k=E=>{v[E]=m[E]!==0?this.#c.now():0,w(E,m[E])};let w=this.ttlAutopurge?(E,S)=>{if(y?.[E]&&(clearTimeout(y[E]),y[E]=void 0),S&&S!==0&&y){let A=setTimeout(()=>{this.#S(E)&&this.#G(this.#u[E],"expire")},S+1);A.unref&&A.unref(),y[E]=A}}:()=>{};this.#L=(E,S)=>{if(m[S]){let A=m[S],C=v[S];if(!A||!C)return;E.ttl=A,E.start=C,E.now=_||b(),E.remainingTTL=A-(E.now-C)}};let _=0,b=()=>{let E=this.#c.now();if(this.ttlResolution>0){_=E;let S=setTimeout(()=>_=0,this.ttlResolution);S.unref&&S.unref()}return E};this.getRemainingTTL=E=>{let S=this.#h.get(E);if(S===void 0)return 0;let A=m[S],C=v[S];return!A||!C?1/0:A-((_||b())-C)},this.#S=E=>{let S=v[E],A=m[E];return!!A&&!!S&&(_||b())-S>A}}#k=()=>{};#L=()=>{};#P=()=>{};#S=()=>!1;#J(){let m=new c(this.#e);this.#p=0,this.#A=m,this.#x=v=>{this.#p-=m[v],m[v]=0},this.#j=(v,y,w,_)=>{if(this.#d(y))return 0;if(!f(w))if(_){if(typeof _!="function")throw new TypeError("sizeCalculation must be a function");if(w=_(y,v),!f(w))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return w},this.#$=(v,y,w)=>{if(m[v]=y,this.#t){let _=this.#t-m[v];for(;this.#p>_;)this.#H(!0)}this.#p+=m[v],w&&(w.entrySize=y,w.totalCalculatedSize=this.#p)}}#x=m=>{};#$=(m,v,y)=>{};#j=(m,v,y,w)=>{if(y||w)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:m=this.allowStale}={}){if(this.#o)for(let v=this.#m;this.#U(v)&&((m||!this.#S(v))&&(yield v),v!==this.#y);)v=this.#w[v]}*#I({allowStale:m=this.allowStale}={}){if(this.#o)for(let v=this.#y;this.#U(v)&&((m||!this.#S(v))&&(yield v),v!==this.#m);)v=this.#v[v]}#U(m){return m!==void 0&&this.#h.get(this.#u[m])===m}*entries(){for(let m of this.#O())this.#i[m]!==void 0&&this.#u[m]!==void 0&&!this.#d(this.#i[m])&&(yield[this.#u[m],this.#i[m]])}*rentries(){for(let m of this.#I())this.#i[m]!==void 0&&this.#u[m]!==void 0&&!this.#d(this.#i[m])&&(yield[this.#u[m],this.#i[m]])}*keys(){for(let m of this.#O()){let v=this.#u[m];v!==void 0&&!this.#d(this.#i[m])&&(yield v)}}*rkeys(){for(let m of this.#I()){let v=this.#u[m];v!==void 0&&!this.#d(this.#i[m])&&(yield v)}}*values(){for(let m of this.#O())this.#i[m]!==void 0&&!this.#d(this.#i[m])&&(yield this.#i[m])}*rvalues(){for(let m of this.#I())this.#i[m]!==void 0&&!this.#d(this.#i[m])&&(yield this.#i[m])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(m,v={}){for(let y of this.#O()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;if(_!==void 0&&m(_,this.#u[y],this))return this.#V(this.#u[y],v)}}forEach(m,v=this){for(let y of this.#O()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;_!==void 0&&m.call(v,_,this.#u[y],this)}}rforEach(m,v=this){for(let y of this.#I()){let w=this.#i[y],_=this.#d(w)?w.__staleWhileFetching:w;_!==void 0&&m.call(v,_,this.#u[y],this)}}purgeStale(){let m=!1;for(let v of this.#I({allowStale:!0}))this.#S(v)&&(this.#G(this.#u[v],"expire"),m=!0);return m}info(m){let v=this.#h.get(m);if(v===void 0)return;let y=this.#i[v],w=this.#d(y)?y.__staleWhileFetching:y;if(w===void 0)return;let _={value:w};if(this.#_&&this.#C){let b=this.#_[v],E=this.#C[v];b&&E&&(_.ttl=b-(this.#c.now()-E),_.start=Date.now())}return this.#A&&(_.size=this.#A[v]),_}dump(){let m=[];for(let v of this.#O({allowStale:!0})){let y=this.#u[v],w=this.#i[v],_=this.#d(w)?w.__staleWhileFetching:w;if(_===void 0||y===void 0)continue;let b={value:_};if(this.#_&&this.#C){b.ttl=this.#_[v];let E=this.#c.now()-this.#C[v];b.start=Math.floor(Date.now()-E)}this.#A&&(b.size=this.#A[v]),m.unshift([y,b])}return m}load(m){this.clear();for(let[v,y]of m){if(y.start){let w=Date.now()-y.start;y.start=this.#c.now()-w}this.#M(v,y.value,y)}}set(m,v,y={}){let{status:w=i.metrics.hasSubscribers?{}:void 0}=y;y.status=w,w&&(w.op="set",w.key=m,v!==void 0&&(w.value=v));let _=this.#M(m,v,y);return w&&i.metrics.hasSubscribers&&i.metrics.publish(w),_}#M(m,v,y={}){let{ttl:w=this.ttl,start:_,noDisposeOnSet:b=this.noDisposeOnSet,sizeCalculation:E=this.sizeCalculation,status:S}=y;if(v===void 0)return S&&(S.set="deleted"),this.delete(m),this;let{noUpdateTTL:A=this.noUpdateTTL}=y;S&&!this.#d(v)&&(S.value=v);let C=this.#j(m,v,y.size||0,E,S);if(this.maxEntrySize&&C>this.maxEntrySize)return this.#G(m,"set"),S&&(S.set="miss",S.maxEntrySizeExceeded=!0),this;let T=this.#o===0?void 0:this.#h.get(m);if(T===void 0)T=this.#o===0?this.#m:this.#T.length!==0?this.#T.pop():this.#o===this.#e?this.#H(!1):this.#o,this.#u[T]=m,this.#i[T]=v,this.#h.set(m,T),this.#v[this.#m]=T,this.#w[T]=this.#m,this.#m=T,this.#o++,this.#$(T,C,S),S&&(S.set="add"),A=!1,this.#F&&this.#n?.(v,m,"add");else{this.#Y(T);let U=this.#i[T];if(v!==U){if(this.#R&&this.#d(U)){U.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:$}=U;$!==void 0&&!b&&(this.#D&&this.#r?.($,m,"set"),this.#s&&this.#g?.push([$,m,"set"]))}else b||(this.#D&&this.#r?.(U,m,"set"),this.#s&&this.#g?.push([U,m,"set"]));if(this.#x(T),this.#$(T,C,S),this.#i[T]=v,S){S.set="replace";let $=U&&this.#d(U)?U.__staleWhileFetching:U;$!==void 0&&(S.oldValue=$)}}else S&&(S.set="update");this.#F&&this.onInsert?.(v,m,v===U?"update":"replace")}if(w!==0&&!this.#_&&this.#N(),this.#_&&(A||this.#P(T,w,_),S&&this.#L(S,T)),!b&&this.#s&&this.#g){let U=this.#g,$;for(;$=U?.shift();)this.#a?.(...$)}return this}pop(){try{for(;this.#o;){let m=this.#i[this.#y];if(this.#H(!0),this.#d(m)){if(m.__staleWhileFetching)return m.__staleWhileFetching}else if(m!==void 0)return m}}finally{if(this.#s&&this.#g){let m=this.#g,v;for(;v=m?.shift();)this.#a?.(...v)}}}#H(m){let v=this.#y,y=this.#u[v],w=this.#i[v];return this.#R&&this.#d(w)?w.__abortController.abort(new Error("evicted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(w,y,"evict"),this.#s&&this.#g?.push([w,y,"evict"])),this.#x(v),this.#E?.[v]&&(clearTimeout(this.#E[v]),this.#E[v]=void 0),m&&(this.#u[v]=void 0,this.#i[v]=void 0,this.#T.push(v)),this.#o===1?(this.#y=this.#m=0,this.#T.length=0):this.#y=this.#v[v],this.#h.delete(y),this.#o--,v}has(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="has",y.key=m);let w=this.#b(m,v);return i.metrics.hasSubscribers&&i.metrics.publish(y),w}#b(m,v={}){let{updateAgeOnHas:y=this.updateAgeOnHas,status:w}=v,_=this.#h.get(m);if(_!==void 0){let b=this.#i[_];if(this.#d(b)&&b.__staleWhileFetching===void 0)return!1;if(this.#S(_))w&&(w.has="stale",this.#L(w,_));else return y&&this.#k(_),w&&(w.has="hit",this.#L(w,_)),!0}else w&&(w.has="miss");return!1}peek(m,v={}){let{status:y=s()?{}:void 0}=v;y&&(y.op="peek",y.key=m),v.status=y;let w=this.#q(m,v);return i.metrics.hasSubscribers&&i.metrics.publish(y),w}#q(m,v){let{status:y,allowStale:w=this.allowStale}=v,_=this.#h.get(m);if(_===void 0||!w&&this.#S(_)){y&&(y.peek=_===void 0?"miss":"stale");return}let b=this.#i[_],E=this.#d(b)?b.__staleWhileFetching:b;return y&&(E!==void 0?(y.peek="hit",y.value=E):y.peek="miss"),E}#B(m,v,y,w){let _=v===void 0?void 0:this.#i[v];if(this.#d(_))return _;let b=new AbortController,{signal:E}=y;E?.addEventListener("abort",()=>b.abort(E.reason),{signal:b.signal});let S={signal:b.signal,options:y,context:w},A=(V,H=!1)=>{let{aborted:L}=b.signal,N=y.ignoreFetchAbort&&V!==void 0,q=y.ignoreFetchAbort||!!(y.allowStaleOnFetchAbort&&V!==void 0);if(y.status&&(L&&!H?(y.status.fetchAborted=!0,y.status.fetchError=b.signal.reason,N&&(y.status.fetchAbortIgnored=!0)):y.status.fetchResolved=!0),L&&!N&&!H)return T(b.signal.reason,q);let J=$,P=this.#i[v];return(P===$||P===void 0&&N&&H)&&(V===void 0?J.__staleWhileFetching!==void 0?this.#i[v]=J.__staleWhileFetching:this.#G(m,"fetch"):(y.status&&(y.status.fetchUpdated=!0),this.#M(m,V,S.options))),V},C=V=>(y.status&&(y.status.fetchRejected=!0,y.status.fetchError=V),T(V,!1)),T=(V,H)=>{let{aborted:L}=b.signal,N=L&&y.allowStaleOnFetchAbort,q=N||y.allowStaleOnFetchRejection,J=q||y.noDeleteOnFetchRejection,P=$;if(this.#i[v]===$&&(!J||!H&&P.__staleWhileFetching===void 0?this.#G(m,"fetch"):N||(this.#i[v]=P.__staleWhileFetching)),q)return y.status&&P.__staleWhileFetching!==void 0&&(y.status.returnedStale=!0),P.__staleWhileFetching;if(P.__returned===P)throw V},U=(V,H)=>{let L=this.#l?.(m,_,S);L&&L instanceof Promise&&L.then(N=>V(N===void 0?void 0:N),H),b.signal.addEventListener("abort",()=>{(!y.ignoreFetchAbort||y.allowStaleOnFetchAbort)&&(V(void 0),y.allowStaleOnFetchAbort&&(V=N=>A(N,!0)))})};y.status&&(y.status.fetchDispatched=!0);let $=new Promise(U).then(A,C),z=Object.assign($,{__abortController:b,__staleWhileFetching:_,__returned:void 0});return v===void 0?(this.#M(m,z,{...S.options,status:void 0}),v=this.#h.get(m)):this.#i[v]=z,z}#d(m){if(!this.#R)return!1;let v=m;return!!v&&v instanceof Promise&&v.hasOwnProperty("__staleWhileFetching")&&v.__abortController instanceof AbortController}fetch(m,v={}){let y=i.tracing.hasSubscribers,{status:w=s()?{}:void 0}=v;v.status=w,w&&v.context&&(w.context=v.context);let _=this.#z(m,v);return w&&s()&&y&&(w.trace=!0,i.tracing.tracePromise(()=>_,w).catch(()=>{})),_}async#z(m,v={}){let{allowStale:y=this.allowStale,updateAgeOnGet:w=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,ttl:b=this.ttl,noDisposeOnSet:E=this.noDisposeOnSet,size:S=0,sizeCalculation:A=this.sizeCalculation,noUpdateTTL:C=this.noUpdateTTL,noDeleteOnFetchRejection:T=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:U=this.allowStaleOnFetchRejection,ignoreFetchAbort:$=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:V,forceRefresh:H=!1,status:L,signal:N}=v;if(L&&(L.op="fetch",L.key=m,H&&(L.forceRefresh=!0)),!this.#R)return L&&(L.fetch="get"),this.#V(m,{allowStale:y,updateAgeOnGet:w,noDeleteOnStaleGet:_,status:L});let q={allowStale:y,updateAgeOnGet:w,noDeleteOnStaleGet:_,ttl:b,noDisposeOnSet:E,size:S,sizeCalculation:A,noUpdateTTL:C,noDeleteOnFetchRejection:T,allowStaleOnFetchRejection:U,allowStaleOnFetchAbort:z,ignoreFetchAbort:$,status:L,signal:N},J=this.#h.get(m);if(J===void 0){L&&(L.fetch="miss");let P=this.#B(m,J,q,V);return P.__returned=P}else{let P=this.#i[J];if(this.#d(P)){let x=y&&P.__staleWhileFetching!==void 0;return L&&(L.fetch="inflight",x&&(L.returnedStale=!0)),x?P.__staleWhileFetching:P.__returned=P}let B=this.#S(J);if(!H&&!B)return L&&(L.fetch="hit"),this.#Y(J),w&&this.#k(J),L&&this.#L(L,J),P;let F=this.#B(m,J,q,V),O=F.__staleWhileFetching!==void 0&&y;return L&&(L.fetch=B?"stale":"refresh",O&&B&&(L.returnedStale=!0)),O?F.__staleWhileFetching:F.__returned=F}}forceFetch(m,v={}){let y=i.tracing.hasSubscribers,{status:w=s()?{}:void 0}=v;v.status=w,w&&v.context&&(w.context=v.context);let _=this.#W(m,v);return w&&s()&&y&&(w.trace=!0,i.tracing.tracePromise(()=>_,w).catch(()=>{})),_}async#W(m,v={}){let y=await this.#z(m,v);if(y===void 0)throw new Error("fetch() returned undefined");return y}memo(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="memo",y.key=m,v.context&&(y.context=v.context));let w=this.#X(m,v);return y&&(y.value=w),i.metrics.hasSubscribers&&i.metrics.publish(y),w}#X(m,v={}){let y=this.#f;if(!y)throw new Error("no memoMethod provided to constructor");let{context:w,status:_,forceRefresh:b,...E}=v;_&&b&&(_.forceRefresh=!0);let S=this.#V(m,E),A=b||S===void 0;if(_&&(_.memo=A?"miss":"hit",A||(_.value=S)),!A)return S;let C=y(m,S,{options:E,context:w});return _&&(_.value=C),this.#M(m,C,E),C}get(m,v={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=v;v.status=y,y&&(y.op="get",y.key=m);let w=this.#V(m,v);return y&&(w!==void 0&&(y.value=w),i.metrics.hasSubscribers&&i.metrics.publish(y)),w}#V(m,v={}){let{allowStale:y=this.allowStale,updateAgeOnGet:w=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,status:b}=v,E=this.#h.get(m);if(E===void 0){b&&(b.get="miss");return}let S=this.#i[E],A=this.#d(S);return b&&this.#L(b,E),this.#S(E)?A?(b&&(b.get="stale-fetching"),y&&S.__staleWhileFetching!==void 0?(b&&(b.returnedStale=!0),S.__staleWhileFetching):void 0):(_||this.#G(m,"expire"),b&&(b.get="stale"),y?(b&&(b.returnedStale=!0),S):void 0):(b&&(b.get=A?"fetching":"hit"),this.#Y(E),w&&this.#k(E),A?S.__staleWhileFetching:S)}#K(m,v){this.#w[v]=m,this.#v[m]=v}#Y(m){m!==this.#m&&(m===this.#y?this.#y=this.#v[m]:this.#K(this.#w[m],this.#v[m]),this.#K(this.#m,m),this.#m=m)}delete(m){return this.#G(m,"delete")}#G(m,v){i.metrics.hasSubscribers&&i.metrics.publish({op:"delete",delete:v,key:m});let y=!1;if(this.#o!==0){let w=this.#h.get(m);if(w!==void 0)if(this.#E?.[w]&&(clearTimeout(this.#E?.[w]),this.#E[w]=void 0),y=!0,this.#o===1)this.#Z(v);else{this.#x(w);let _=this.#i[w];if(this.#d(_)?_.__abortController.abort(new Error("deleted")):(this.#D||this.#s)&&(this.#D&&this.#r?.(_,m,v),this.#s&&this.#g?.push([_,m,v])),this.#h.delete(m),this.#u[w]=void 0,this.#i[w]=void 0,w===this.#m)this.#m=this.#w[w];else if(w===this.#y)this.#y=this.#v[w];else{let b=this.#w[w];this.#v[b]=this.#v[w];let E=this.#v[w];this.#w[E]=this.#w[w]}this.#o--,this.#T.push(w)}}if(this.#s&&this.#g?.length){let w=this.#g,_;for(;_=w?.shift();)this.#a?.(..._)}return y}clear(){return this.#Z("delete")}#Z(m){for(let v of this.#I({allowStale:!0})){let y=this.#i[v];if(this.#d(y))y.__abortController.abort(new Error("deleted"));else{let w=this.#u[v];this.#D&&this.#r?.(y,w,m),this.#s&&this.#g?.push([y,w,m])}}if(this.#h.clear(),this.#i.fill(void 0),this.#u.fill(void 0),this.#_&&this.#C){this.#_.fill(0),this.#C.fill(0);for(let v of this.#E??[])v!==void 0&&clearTimeout(v);this.#E?.fill(void 0)}if(this.#A&&this.#A.fill(0),this.#y=0,this.#m=0,this.#T.length=0,this.#p=0,this.#o=0,this.#s&&this.#g){let v=this.#g,y;for(;y=v?.shift();)this.#a?.(...y)}}};e.LRUCache=p})),Z0=I.__commonJSMin(((e,t)=>{var r=(...n)=>n.every(l=>l)?n.join(""):"",i=n=>n?encodeURIComponent(n):"",s=n=>n.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),h={sshtemplate:({domain:n,user:l,project:u,committish:f})=>`git@${n}:${l}/${u}.git${r("#",f)}`,sshurltemplate:({domain:n,user:l,project:u,committish:f})=>`git+ssh://git@${n}/${l}/${u}.git${r("#",f)}`,edittemplate:({domain:n,user:l,project:u,committish:f,editpath:o,path:c})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f||"HEAD"),"/",c)}`,browsetemplate:({domain:n,user:l,project:u,committish:f,treepath:o})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f))}`,browsetreetemplate:({domain:n,user:l,project:u,committish:f,treepath:o,path:c,fragment:d,hashformat:p})=>`https://${n}/${l}/${u}/${o}/${i(f||"HEAD")}/${c}${r("#",p(d||""))}`,browseblobtemplate:({domain:n,user:l,project:u,committish:f,blobpath:o,path:c,fragment:d,hashformat:p})=>`https://${n}/${l}/${u}/${o}/${i(f||"HEAD")}/${c}${r("#",p(d||""))}`,docstemplate:({domain:n,user:l,project:u,treepath:f,committish:o})=>`https://${n}/${l}/${u}${r("/",f,"/",i(o))}#readme`,httpstemplate:({auth:n,domain:l,user:u,project:f,committish:o})=>`git+https://${r(n,"@")}${l}/${u}/${f}.git${r("#",o)}`,filetemplate:({domain:n,user:l,project:u,committish:f,path:o})=>`https://${n}/${l}/${u}/raw/${i(f||"HEAD")}/${o}`,shortcuttemplate:({type:n,user:l,project:u,committish:f})=>`${n}:${l}/${u}${r("#",f)}`,pathtemplate:({user:n,project:l,committish:u})=>`${n}/${l}${r("#",u)}`,bugstemplate:({domain:n,user:l,project:u})=>`https://${n}/${l}/${u}/issues`,hashformat:s},a={};a.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:n,user:l,project:u,committish:f,path:o})=>`https://${r(n,"@")}raw.githubusercontent.com/${l}/${u}/${i(f||"HEAD")}/${o}`,gittemplate:({auth:n,domain:l,user:u,project:f,committish:o})=>`git://${r(n,"@")}${l}/${u}/${f}.git${r("#",o)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://codeload.${n}/${l}/${u}/tar.gz/${i(f||"HEAD")}`,extract:n=>{let[,l,u,f,o]=n.pathname.split("/",5);if(!(f&&f!=="tree")&&(f||(o=n.hash.slice(1)),u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:o}}},a.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:n,user:l,project:u,committish:f,treepath:o,path:c,editpath:d})=>`https://${n}/${l}/${u}${r("/",o,"/",i(f||"HEAD"),"/",c,d)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/get/${i(f||"HEAD")}.tar.gz`,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(!["get"].includes(f)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:n.hash.slice(1)}}},a.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/repository/archive.tar.gz?ref=${i(f||"HEAD")}`,extract:n=>{const l=n.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;const u=l.split("/");let f=u.pop();f.endsWith(".git")&&(f=f.slice(0,-4));const o=u.join("/");if(!(!o||!f))return{user:o,project:f,committish:n.hash.slice(1)}}},a.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:n,project:l,committish:u})=>`git@${n}:${l}.git${r("#",u)}`,sshurltemplate:({domain:n,project:l,committish:u})=>`git+ssh://git@${n}/${l}.git${r("#",u)}`,edittemplate:({domain:n,user:l,project:u,committish:f,editpath:o})=>`https://${n}/${l}/${u}${r("/",i(f))}/${o}`,browsetemplate:({domain:n,project:l,committish:u})=>`https://${n}/${l}${r("/",i(u))}`,browsetreetemplate:({domain:n,project:l,committish:u,path:f,hashformat:o})=>`https://${n}/${l}${r("/",i(u))}${r("#",o(f))}`,browseblobtemplate:({domain:n,project:l,committish:u,path:f,hashformat:o})=>`https://${n}/${l}${r("/",i(u))}${r("#",o(f))}`,docstemplate:({domain:n,project:l,committish:u})=>`https://${n}/${l}${r("/",i(u))}`,httpstemplate:({domain:n,project:l,committish:u})=>`git+https://${n}/${l}.git${r("#",u)}`,filetemplate:({user:n,project:l,committish:u,path:f})=>`https://gist.githubusercontent.com/${n}/${l}/raw${r("/",i(u))}/${f}`,shortcuttemplate:({type:n,project:l,committish:u})=>`${n}:${l}${r("#",u)}`,pathtemplate:({project:n,committish:l})=>`${n}${r("#",l)}`,bugstemplate:({domain:n,project:l})=>`https://${n}/${l}`,gittemplate:({domain:n,project:l,committish:u})=>`git://${n}/${l}.git${r("#",u)}`,tarballtemplate:({project:n,committish:l})=>`https://codeload.github.com/gist/${n}/tar.gz/${i(l||"HEAD")}`,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(f!=="raw"){if(!u){if(!l)return;u=l,l=null}return u.endsWith(".git")&&(u=u.slice(0,-4)),{user:l,project:u,committish:n.hash.slice(1)}}},hashformat:function(n){return n&&"file-"+s(n)}},a.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:n,user:l,project:u,committish:f,path:o})=>`https://${n}/${l}/${u}/blob/${i(f)||"HEAD"}/${o}`,httpstemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}.git${r("#",f)}`,tarballtemplate:({domain:n,user:l,project:u,committish:f})=>`https://${n}/${l}/${u}/archive/${i(f)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:n=>{let[,l,u,f]=n.pathname.split("/",4);if(!["archive"].includes(f)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!l||!u)))return{user:l,project:u,committish:n.hash.slice(1)}}};for(const[n,l]of Object.entries(a))a[n]=Object.assign({},h,l);t.exports=a})),Bh=I.__commonJSMin(((e,t)=>{var r=require("url"),i=(n,l,u)=>{const f=n.indexOf(u);return n.lastIndexOf(l,f>-1?f:1/0)},s=n=>{try{return new r.URL(n)}catch{}},h=(n,l)=>{const u=n.indexOf(":"),f=n.slice(0,u+1);if(Object.prototype.hasOwnProperty.call(l,f)||n.substr(u,3)==="://")return n;const o=n.indexOf("@");return o>-1?o>u?`git+ssh://${n}`:n:`${n.slice(0,u+1)}//${n.slice(u+1)}`},a=n=>{const l=i(n,"@","#"),u=i(n,":","#");return u>l&&(n=n.slice(0,u)+"/"+n.slice(u+1)),i(n,":","#")===-1&&n.indexOf("//")===-1&&(n=`git+ssh://${n}`),n};t.exports=(n,l)=>{const u=l?h(n,l):n;return s(u)||s(a(u))}})),X0=I.__commonJSMin(((e,t)=>{var r=Bh(),i=s=>{const h=s.indexOf("#"),a=s.indexOf("/"),n=s.indexOf("/",a+1),l=s.indexOf(":"),u=/\s/.exec(s),f=s.indexOf("@"),o=!u||h>-1&&u.index>h,c=f===-1||h>-1&&f>h,d=l===-1||h>-1&&l>h,p=n===-1||h>-1&&n>h,g=a>0,m=h>-1?s[h-1]!=="/":!s.endsWith("/"),v=!s.startsWith(".");return o&&g&&m&&v&&c&&d&&p};t.exports=(s,h,{gitHosts:a,protocols:n})=>{if(!s)return;const l=r(i(s)?`github:${s}`:s,n);if(!l)return;const u=a.byShortcut[l.protocol],f=a.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname],o=u||f;if(!o)return;const c=a[u||f];let d=null;n[l.protocol]?.auth&&(l.username||l.password)&&(d=`${l.username}${l.password?":"+l.password:""}`);let p=null,g=null,m=null,v=null;try{if(u){let y=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const w=y.indexOf("@");w>-1&&(y=y.slice(w+1));const _=y.lastIndexOf("/");_>-1?(g=decodeURIComponent(y.slice(0,_)),g||(g=null),m=decodeURIComponent(y.slice(_+1))):m=decodeURIComponent(y),m.endsWith(".git")&&(m=m.slice(0,-4)),l.hash&&(p=decodeURIComponent(l.hash.slice(1))),v="shortcut"}else{if(!c.protocols.includes(l.protocol))return;const y=c.extract(l);if(!y)return;g=y.user&&decodeURIComponent(y.user),m=decodeURIComponent(y.project),p=decodeURIComponent(y.committish),v=n[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[o,g,d,m,p,v,h]}})),Mh=I.__commonJSMin(((e,t)=>{var{LRUCache:r}=nn(),i=Z0(),s=X0(),h=Bh(),a=new r({max:1e3});function n(u){try{const{protocol:f,hostname:o,pathname:c}=new URL(u);return o?`${/(?:git\+)http:$/.test(f)?"http:":"https:"}//${o}${c.replace(/\.git$/,"")}`:null}catch{return null}}var l=class Wt{constructor(f,o,c,d,p,g,m={}){Object.assign(this,Wt.#e[f],{type:f,user:o,auth:c,project:d,committish:p,default:g,opts:m})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(f,o){Wt.#e[f]=o,Wt.#e.byDomain[o.domain]=f,Wt.#e.byShortcut[`${f}:`]=f,Wt.#t[`${f}:`]={name:f}}static fromUrl(f,o){if(typeof f!="string")return;const c=f+JSON.stringify(o||{});if(!a.has(c)){const d=s(f,o,{gitHosts:Wt.#e,protocols:Wt.#t});a.set(c,d?new Wt(...d):void 0)}return a.get(c)}static fromManifest(f,o={}){if(!f||typeof f!="object")return;const c=f.repository,d=c&&(typeof c=="string"?c:typeof c=="object"&&typeof c.url=="string"?c.url:null);if(!d)throw new Error("no repository");const p=d&&Wt.fromUrl(d.replace(/^git\+/,""),o)||null;if(p)return p;const g=n(d);return Wt.fromUrl(g,o)||g}static parseUrl(f){return h(f)}#r(f,o){if(typeof f!="function")return null;const c={...this,...this.opts,...o};c.path||(c.path=""),c.path.startsWith("/")&&(c.path=c.path.slice(1)),c.noCommittish&&(c.committish=null);const d=f(c);return c.noGitPlus&&d.startsWith("git+")?d.slice(4):d}hash(){return this.committish?`#${this.committish}`:""}ssh(f){return this.#r(this.sshtemplate,f)}sshurl(f){return this.#r(this.sshurltemplate,f)}browse(f,...o){return typeof f!="string"?this.#r(this.browsetemplate,f):typeof o[0]!="string"?this.#r(this.browsetreetemplate,{...o[0],path:f}):this.#r(this.browsetreetemplate,{...o[1],fragment:o[0],path:f})}browseFile(f,...o){return typeof o[0]!="string"?this.#r(this.browseblobtemplate,{...o[0],path:f}):this.#r(this.browseblobtemplate,{...o[1],fragment:o[0],path:f})}docs(f){return this.#r(this.docstemplate,f)}bugs(f){return this.#r(this.bugstemplate,f)}https(f){return this.#r(this.httpstemplate,f)}git(f){return this.#r(this.gittemplate,f)}shortcut(f){return this.#r(this.shortcuttemplate,f)}path(f){return this.#r(this.pathtemplate,f)}tarball(f){return this.#r(this.tarballtemplate,{...f,noCommittish:!1})}file(f,o){return this.#r(this.filetemplate,{...o,path:f})}edit(f,o){return this.#r(this.edittemplate,{...o,path:f})}getDefaultRepresentation(){return this.default}toString(f){return this.default&&typeof this[this.default]=="function"?this[this.default](f):this.sshurl(f)}};for(const[u,f]of Object.entries(i))l.addHost(u,f);t.exports=l})),Q0=I.__toESM(Mh(),1);async function ev(e,{pkgFile:t}={}){return(await fu(e,{pkgFile:t}))?.repository??null}async function tv(e,t,{pkgFile:r}={}){const i=t?t.repository?t.repository:null:await ev(e,{pkgFile:r});if(!i)return null;let s,h="";if(typeof i=="string"){s=i;try{const a=new _g.URL(s);if(a.protocol==="https:"||a.protocol==="http:")return s}catch{}}else typeof i.url=="string"&&(s=i.url,typeof i.directory=="string"&&(h=i.directory));if(typeof s=="string"&&typeof h=="string"){const a=Q0.default.fromUrl(s)?.browse(h);return a!==void 0?a.replace(/\/$/,"").replace(/\/tree\/HEAD$/,""):s}return null}var rv=typeof global=="object"&&global&&global.Object===Object&&global,iv=typeof self=="object"&&self&&self.Object===Object&&self,Dr=rv||iv||Function("return this")(),vr=Dr.Symbol,Ph=Object.prototype,nv=Ph.hasOwnProperty,sv=Ph.toString,Ti=vr?vr.toStringTag:void 0;function av(e){var t=nv.call(e,Ti),r=e[Ti];try{e[Ti]=void 0;var i=!0}catch{}var s=sv.call(e);return i&&(t?e[Ti]=r:delete e[Ti]),s}var ov=Object.prototype.toString;function uv(e){return ov.call(e)}var lv="[object Null]",cv="[object Undefined]",zl=vr?vr.toStringTag:void 0;function du(e){return e==null?e===void 0?cv:lv:zl&&zl in Object(e)?av(e):uv(e)}function fs(e){return e!=null&&typeof e=="object"}var hv="[object Symbol]";function ds(e){return typeof e=="symbol"||fs(e)&&du(e)==hv}function fv(e,t){for(var r=-1,i=e==null?0:e.length,s=Array(i);++r<i;)s[r]=t(e[r],r,e);return s}var _i=Array.isArray,dv=1/0,Gl=vr?vr.prototype:void 0,Jl=Gl?Gl.toString:void 0;function jh(e){if(typeof e=="string")return e;if(_i(e))return fv(e,jh)+"";if(ds(e))return Jl?Jl.call(e):"";var t=e+"";return t=="0"&&1/e==-dv?"-0":t}var pv=/\s/;function mv(e){for(var t=e.length;t--&&pv.test(e.charAt(t)););return t}var gv=/^\s+/;function vv(e){return e&&e.slice(0,mv(e)+1).replace(gv,"")}function pi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wl=NaN,yv=/^[-+]0x[0-9a-f]+$/i,_v=/^0b[01]+$/i,Ev=/^0o[0-7]+$/i,bv=parseInt;function wv(e){if(typeof e=="number")return e;if(ds(e))return Wl;if(pi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vv(e);var r=_v.test(e);return r||Ev.test(e)?bv(e.slice(2),r?2:8):yv.test(e)?Wl:+e}var Vl=1/0,Sv=17976931348623157e292;function Dv(e){return e?(e=wv(e),e===Vl||e===-Vl?(e<0?-1:1)*Sv:e===e?e:0):e===0?e:0}function Yl(e){var t=Dv(e),r=t%1;return t===t?r?t-r:t:0}function pu(e){return e}var Av="[object AsyncFunction]",Cv="[object Function]",Tv="[object GeneratorFunction]",Rv="[object Proxy]";function Ov(e){if(!pi(e))return!1;var t=du(e);return t==Cv||t==Tv||t==Av||t==Rv}var ia=Dr["__core-js_shared__"],Kl=(function(){var e=/[^.]+$/.exec(ia&&ia.keys&&ia.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Iv(e){return!!Kl&&Kl in e}var kv=Function.prototype.toString;function Lv(e){if(e!=null){try{return kv.call(e)}catch{}try{return e+""}catch{}}return""}var Fv=/[\\^$.*+?()[\]{}|]/g,Nv=/^\[object .+?Constructor\]$/,xv=Function.prototype,$v=Object.prototype,Bv=xv.toString,Mv=$v.hasOwnProperty,Pv=RegExp("^"+Bv.call(Mv).replace(Fv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jv(e){return!pi(e)||Iv(e)?!1:(Ov(e)?Pv:Nv).test(Lv(e))}function Uv(e,t){return e?.[t]}function ps(e,t){var r=Uv(e,t);return jv(r)?r:void 0}var Zl=ps(Dr,"WeakMap"),Jn=Zl&&new Zl,Uh=Jn?function(e,t){return Jn.set(e,t),e}:pu,Xl=Object.create,mu=(function(){function e(){}return function(t){if(!pi(t))return{};if(Xl)return Xl(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Gi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=mu(e.prototype),i=e.apply(r,t);return pi(i)?i:r}}var Hv=1;function qv(e,t,r){var i=t&Hv,s=Gi(e);function h(){return(this&&this!==Dr&&this instanceof h?s:e).apply(i?r:this,arguments)}return h}function gu(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var zv=Math.max;function Hh(e,t,r,i){for(var s=-1,h=e.length,a=r.length,n=-1,l=t.length,u=zv(h-a,0),f=Array(l+u),o=!i;++n<l;)f[n]=t[n];for(;++s<a;)(o||s<h)&&(f[r[s]]=e[s]);for(;u--;)f[n++]=e[s++];return f}var Gv=Math.max;function qh(e,t,r,i){for(var s=-1,h=e.length,a=-1,n=r.length,l=-1,u=t.length,f=Gv(h-n,0),o=Array(f+u),c=!i;++s<f;)o[s]=e[s];for(var d=s;++l<u;)o[d+l]=t[l];for(;++a<n;)(c||s<h)&&(o[d+r[a]]=e[s++]);return o}function Jv(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}function vu(){}var Wv=4294967295;function mi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wv,this.__views__=[]}mi.prototype=mu(vu.prototype);mi.prototype.constructor=mi;function Vv(){}var yu=Jn?function(e){return Jn.get(e)}:Vv,Ql={},Yv=Object.prototype.hasOwnProperty;function xn(e){for(var t=e.name+"",r=Ql[t],i=Yv.call(Ql,t)?r.length:0;i--;){var s=r[i],h=s.func;if(h==null||h==e)return s.name}return t}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}yr.prototype=mu(vu.prototype);yr.prototype.constructor=yr;function zh(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function Kv(e){if(e instanceof mi)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=zh(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Zv=Object.prototype.hasOwnProperty;function Wn(e){if(fs(e)&&!_i(e)&&!(e instanceof mi)){if(e instanceof yr)return e;if(Zv.call(e,"__wrapped__"))return Kv(e)}return new yr(e)}Wn.prototype=vu.prototype;Wn.prototype.constructor=Wn;function Ca(e){var t=xn(e),r=Wn[t];if(typeof r!="function"||!(t in mi.prototype))return!1;if(e===r)return!0;var i=yu(r);return!!i&&e===i[0]}var Xv=800,Qv=16,ey=Date.now;function Gh(e){var t=0,r=0;return function(){var i=ey(),s=Qv-(i-r);if(r=i,s>0){if(++t>=Xv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jh=Gh(Uh),ty=/\{\n\/\* \[wrapped with (.+)\] \*/,ry=/,? & /;function iy(e){var t=e.match(ty);return t?t[1].split(ry):[]}var ny=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function sy(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ny,`{
|
|
59
59
|
/* [wrapped with `+t+`] */
|
|
60
|
-
`)}function ay(e){return function(){return e}}var ec=(function(){try{var e=ps(Object,"defineProperty");return e({},"",{}),e}catch{}})(),oy=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:ay(t),writable:!0})}:pu,Wh=Gh(oy);function uy(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function ly(e,t,r,i){for(var s=e.length,h=r+(i?1:-1);i?h--:++h<s;)if(t(e[h],h,e))return h;return-1}function cy(e){return e!==e}function hy(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function fy(e,t,r){return t===t?hy(e,t,r):ly(e,cy,r)}function dy(e,t){return!!(e!=null&&e.length)&&fy(e,t,0)>-1}var py=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function my(e,t){return uy(py,function(r){var i="_."+r[0];t&r[1]&&!dy(e,i)&&e.push(i)}),e.sort()}function Vh(e,t,r){var i=t+"";return Wh(e,sy(i,my(iy(i),r)))}var gy=1,vy=2,yy=4,_y=8,tc=32,rc=64;function Yh(e,t,r,i,s,h,a,n,l,u){var f=t&_y,o=f?a:void 0,c=f?void 0:a,d=f?h:void 0,p=f?void 0:h;t|=f?tc:rc,t&=~(f?rc:tc),t&yy||(t&=~(gy|vy));var g=[e,t,s,d,o,p,c,n,l,u],m=r.apply(void 0,g);return Ca(e)&&Jh(m,g),m.placeholder=i,Vh(m,e,t)}function Kh(e){return e.placeholder}var Ey=9007199254740991,by=/^(?:0|[1-9]\d*)$/;function wy(e,t){var r=typeof e;return t=t??Ey,!!t&&(r=="number"||r!="symbol"&&by.test(e))&&e>-1&&e%1==0&&e<t}var Sy=Math.min;function Dy(e,t){for(var r=e.length,i=Sy(t.length,r),s=zh(e);i--;){var h=t[i];e[i]=wy(h,r)?s[h]:void 0}return e}var ic="__lodash_placeholder__";function Vn(e,t){for(var r=-1,i=e.length,s=0,h=[];++r<i;){var a=e[r];(a===t||a===ic)&&(e[r]=ic,h[s++]=r)}return h}var Ay=1,Cy=2,Ty=8,Ry=16,Oy=128,Iy=512;function _u(e,t,r,i,s,h,a,n,l,u){var f=t&Oy,o=t&Ay,c=t&Cy,d=t&(Ty|Ry),p=t&Iy,g=c?void 0:Gi(e);function m(){for(var v=arguments.length,y=Array(v),w=v;w--;)y[w]=arguments[w];if(d)var _=Kh(m),b=Jv(y,_);if(i&&(y=Hh(y,i,s,d)),h&&(y=qh(y,h,a,d)),v-=b,d&&v<u){var E=Vn(y,_);return Yh(e,t,_u,m.placeholder,r,y,E,n,l,u-v)}var S=o?r:this,A=c?S[e]:e;return v=y.length,n?y=Dy(y,n):p&&v>1&&y.reverse(),f&&l<v&&(y.length=l),this&&this!==Dr&&this instanceof m&&(A=g||Gi(A)),A.apply(S,y)}return m}function ky(e,t,r){var i=Gi(e);function s(){for(var h=arguments.length,a=Array(h),n=h,l=Kh(s);n--;)a[n]=arguments[n];var u=h<3&&a[0]!==l&&a[h-1]!==l?[]:Vn(a,l);return h-=u.length,h<r?Yh(e,t,_u,s.placeholder,void 0,a,u,void 0,void 0,r-h):gu(this&&this!==Dr&&this instanceof s?i:e,this,a)}return s}var Ly=1;function Fy(e,t,r,i){var s=t&Ly,h=Gi(e);function a(){for(var n=-1,l=arguments.length,u=-1,f=i.length,o=Array(f+l),c=this&&this!==Dr&&this instanceof a?h:e;++u<f;)o[u]=i[u];for(;l--;)o[u++]=arguments[++n];return gu(c,s?r:this,o)}return a}var nc="__lodash_placeholder__",na=1,Ny=2,xy=4,sc=8,Ri=128,ac=256,$y=Math.min;function By(e,t){var r=e[1],i=t[1],s=r|i,h=s<(na|Ny|Ri),a=i==Ri&&r==sc||i==Ri&&r==ac&&e[7].length<=t[8]||i==(Ri|ac)&&t[7].length<=t[8]&&r==sc;if(!(h||a))return e;i&na&&(e[2]=t[2],s|=r&na?0:xy);var n=t[3];if(n){var l=e[3];e[3]=l?Hh(l,n,t[4]):n,e[4]=l?Vn(e[3],nc):t[4]}return n=t[5],n&&(l=e[5],e[5]=l?qh(l,n,t[6]):n,e[6]=l?Vn(e[5],nc):t[6]),n=t[7],n&&(e[7]=n),i&Ri&&(e[8]=e[8]==null?t[8]:$y(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=s,e}var My="Expected a function",oc=1,Py=2,sa=8,aa=16,oa=32,uc=64,lc=Math.max;function jy(e,t,r,i,s,h,a,n){var l=t&Py;if(!l&&typeof e!="function")throw new TypeError(My);var u=i?i.length:0;if(u||(t&=~(oa|uc),i=s=void 0),a=a===void 0?a:lc(Yl(a),0),n=n===void 0?n:Yl(n),u-=s?s.length:0,t&uc){var f=i,o=s;i=s=void 0}var c=l?void 0:yu(e),d=[e,t,r,i,s,f,o,h,a,n];if(c&&By(d,c),e=d[0],t=d[1],r=d[2],i=d[3],s=d[4],n=d[9]=d[9]===void 0?l?0:e.length:lc(d[9]-u,0),!n&&t&(sa|aa)&&(t&=~(sa|aa)),!t||t==oc)var p=qv(e,t,r);else t==sa||t==aa?p=ky(e,t,n):(t==oa||t==(oc|oa))&&!s.length?p=Fy(e,t,r,i):p=_u.apply(void 0,d);return Vh((c?Uh:Jh)(p,d),e,t)}function Uy(e,t){return e===t||e!==e&&t!==t}var cc=Math.max;function Hy(e,t,r){return t=cc(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,h=cc(i.length-t,0),a=Array(h);++s<h;)a[s]=i[t+s];s=-1;for(var n=Array(t+1);++s<t;)n[s]=i[s];return n[t]=r(a),gu(e,this,n)}}var qy="[object Arguments]";function hc(e){return fs(e)&&du(e)==qy}var Zh=Object.prototype,zy=Zh.hasOwnProperty,Gy=Zh.propertyIsEnumerable,Jy=hc((function(){return arguments})())?hc:function(e){return fs(e)&&zy.call(e,"callee")&&!Gy.call(e,"callee")},Wy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vy=/^\w*$/;function Yy(e,t){if(_i(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ds(e)?!0:Vy.test(e)||!Wy.test(e)||t!=null&&e in Object(t)}var Ji=ps(Object,"create");function Ky(){this.__data__=Ji?Ji(null):{},this.size=0}function Zy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xy="__lodash_hash_undefined__",Qy=Object.prototype.hasOwnProperty;function e_(e){var t=this.__data__;if(Ji){var r=t[e];return r===Xy?void 0:r}return Qy.call(t,e)?t[e]:void 0}var t_=Object.prototype.hasOwnProperty;function r_(e){var t=this.__data__;return Ji?t[e]!==void 0:t_.call(t,e)}var i_="__lodash_hash_undefined__";function n_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ji&&t===void 0?i_:t,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ur.prototype.clear=Ky;Ur.prototype.delete=Zy;Ur.prototype.get=e_;Ur.prototype.has=r_;Ur.prototype.set=n_;function s_(){this.__data__=[],this.size=0}function ms(e,t){for(var r=e.length;r--;)if(Uy(e[r][0],t))return r;return-1}var a_=Array.prototype.splice;function o_(e){var t=this.__data__,r=ms(t,e);return r<0?!1:(r==t.length-1?t.pop():a_.call(t,r,1),--this.size,!0)}function u_(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}function l_(e){return ms(this.__data__,e)>-1}function c_(e,t){var r=this.__data__,i=ms(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Ei(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ei.prototype.clear=s_;Ei.prototype.delete=o_;Ei.prototype.get=u_;Ei.prototype.has=l_;Ei.prototype.set=c_;var h_=ps(Dr,"Map");function f_(){this.size=0,this.__data__={hash:new Ur,map:new(h_||Ei),string:new Ur}}function d_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gs(e,t){var r=e.__data__;return d_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function p_(e){var t=gs(this,e).delete(e);return this.size-=t?1:0,t}function m_(e){return gs(this,e).get(e)}function g_(e){return gs(this,e).has(e)}function v_(e,t){var r=gs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}qr.prototype.clear=f_;qr.prototype.delete=p_;qr.prototype.get=m_;qr.prototype.has=g_;qr.prototype.set=v_;var y_="Expected a function";function Eu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(y_);var r=function(){var i=arguments,s=t?t.apply(this,i):i[0],h=r.cache;if(h.has(s))return h.get(s);var a=e.apply(this,i);return r.cache=h.set(s,a)||h,a};return r.cache=new(Eu.Cache||qr),r}Eu.Cache=qr;var __=500;function E_(e){var t=Eu(e,function(i){return r.size===__&&r.clear(),i}),r=t.cache;return t}var b_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w_=/\\(\\)?/g,S_=E_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(b_,function(r,i,s,h){t.push(s?h.replace(w_,"$1"):i||r)}),t});function Xh(e){return e==null?"":jh(e)}function D_(e,t){return _i(e)?e:Yy(e,t)?[e]:S_(Xh(e))}var A_=1/0;function C_(e){if(typeof e=="string"||ds(e))return e;var t=e+"";return t=="0"&&1/e==-A_?"-0":t}function T_(e,t){t=D_(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[C_(t[r++])];return r&&r==i?e:void 0}function R_(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var fc=vr?vr.isConcatSpreadable:void 0;function O_(e){return _i(e)||Jy(e)||!!(fc&&e&&e[fc])}function Qh(e,t,r,i,s){var h=-1,a=e.length;for(r||(r=O_),s||(s=[]);++h<a;){var n=e[h];t>0&&r(n)?t>1?Qh(n,t-1,r,i,s):R_(s,n):i||(s[s.length]=n)}return s}function I_(e){return e!=null&&e.length?Qh(e,1):[]}function k_(e){return Wh(Hy(e,void 0,I_),e+"")}var L_=8;function bu(e,t,r){t=r?void 0:t;var i=jy(e,L_,void 0,void 0,void 0,void 0,void 0,t);return i.placeholder=bu.placeholder,i}bu.placeholder={};var ef=/[\\^$.*+?()[\]{}|]/g,F_=RegExp(ef.source);function N_(e){return e=Xh(e),e&&F_.test(e)?e.replace(ef,"\\$&"):e}var x_="Expected a function",$_=8,B_=32,M_=128,P_=256;function j_(e){return k_(function(t){var r=t.length,i=r,s=yr.prototype.thru;for(e&&t.reverse();i--;){var h=t[i];if(typeof h!="function")throw new TypeError(x_);if(s&&!a&&xn(h)=="wrapper")var a=new yr([],!0)}for(i=a?i:r;++i<r;){h=t[i];var n=xn(h),l=n=="wrapper"?yu(h):void 0;l&&Ca(l[0])&&l[1]==(M_|$_|B_|P_)&&!l[4].length&&l[9]==1?a=a[xn(l[0])].apply(a,l[3]):a=h.length==1&&Ca(h)?a[n]():a.thru(h)}return function(){var u=arguments,f=u[0];if(a&&u.length==1&&_i(f))return a.plant(f).value();for(var o=0,c=r?t[o].apply(this,u):f;++o<r;)c=t[o].call(this,c);return c}})}var U_=j_();function tf(e){return function(t){return e==null?void 0:T_(e,t)}}var H_=I.__commonJSMin(((e,t)=>{var r=require("url"),i=typeof URL>"u"?r.URL||null:URL,s=i?null:r.parse;function h(a){try{var n=new i(a),l=null;n.username&&(l=n.password?n.username+":"+n.password:n.username);var u=n.host||null,f=n.hostname||null,o=n.pathname||null,c=n.pathname+(n.search||"")||null;if(!u&&o&&a.indexOf("//")===-1){var d=o.indexOf("/");d===-1?(u=o,f=o,o=null,c=null):(u=o.slice(0,d),f=u,o=o.slice(d),c=o+(n.search||""))}return{auth:l,hash:n.hash||null,host:u,hostname:f,href:n.href,path:c,pathname:o,port:n.port||null,protocol:n.protocol||null,query:n.search?n.search.slice(1):null,search:n.search||null,slashes:a.indexOf("//")===-1?null:!0}}catch{var p=a.indexOf("#"),g=p===-1?null:a.slice(p),m=p===-1?a:a.slice(0,p),v=m.indexOf("?"),y=v===-1?null:m.slice(v),w=v===-1?m:m.slice(0,v);return{auth:null,hash:g,host:null,hostname:null,href:a,path:m||null,pathname:w||null,port:null,protocol:null,query:y?y.slice(1):null,search:y,slashes:null}}}t.exports=i?h:s})),q_=I.__commonJSMin(((e,t)=>{var r=H_(),i={__proto__:null};function s(o){return/^[a-f0-9]{40}$/i.test(o)}function h(o,c){var d=o.split("#"),p;return d.length>1&&(p=d[d.length-1]),!p&&c.hash&&c.hash.charAt(0)==="#"&&(p=c.hash.slice(1)),p||"master"}function a(o){return o.charAt(0)==="/"?o.slice(1):o}function n(o){return o?o.replace(/\.git$/,""):null}function l(o){if(!o)return null;var c=o.indexOf(":");return c>-1?o.slice(c+1):o}function u(o){return r("http://"+o.replace(/git@([^:]+):/,"$1/")).host||null}function f(o){if(typeof o!="string"||!o.length||o.indexOf("git@gist")!==-1||o.indexOf("//gist")!==-1)return null;var c=r(o);if(typeof c.path!="string"||!c.path.length||typeof c.pathname!="string"||!c.pathname.length)return null;!c.host&&/^git@/.test(o)===!0&&(c.host=u(o)),c.path=a(c.path),c.pathname=a(c.pathname),c.filepath=null,c.path.indexOf("repos")===0&&(c.path=c.path.slice(6));var d=c.path.split("/").filter(Boolean),p=d[2]==="blob";p&&!s(d[3])&&(c.branch=d[3],d.length>4&&(c.filepath=d.slice(4).join("/")));var g=o.indexOf("blob");p&&g!==-1&&(c.blob=o.slice(g+5));var m=d[2]==="tree",v=o.indexOf("tree");if(m&&v!==-1){var y=v+5,w=o.slice(y),_=w.indexOf("/");_!==-1&&(w=w.slice(0,_)),c.branch=w}if(c.owner=l(d[0]),c.name=n(d[1]),d.length>1&&c.owner&&c.name)c.repo=c.owner+"/"+c.name;else{var b=c.href.split(":");if(b.length===2&&c.href.indexOf("//")===-1){c.repo=c.repo||b[b.length-1];var E=c.repo.split("/");c.owner=E[0],c.name=E[1]}else{var S=c.href.match(/\/([^/]*)$/);c.owner=S?S[1]:null,c.repo=null}if(c.repo&&(!c.owner||!c.name)){var A=c.repo.split("/");A.length===2&&(c.owner=A[0],c.name=A[1])}}return c.branch||(c.branch=d[2]||h(c.path,c),d.length>3&&(c.filepath=d.slice(3).join("/"))),c.host=c.host||"github.com",c.owner=c.owner||null,c.name=c.name||null,c.repository=c.repo,c}t.exports=function(c){return i[c]||(i[c]=f(c)),i[c]}})),vs=I.__commonJSMin(((e,t)=>{var r="2.0.0",i=256,s=Number.MAX_SAFE_INTEGER||9007199254740991,h=16,a=i-6,n=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:h,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:s,RELEASE_TYPES:n,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),ys=I.__commonJSMin(((e,t)=>{var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};t.exports=r})),sn=I.__commonJSMin(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=vs(),h=ys();e=t.exports={};var a=e.re=[],n=e.safeRe=[],l=e.src=[],u=e.safeSrc=[],f=e.t={},o=0,c="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[c,i]],p=m=>{for(const[v,y]of d)m=m.split(`${v}*`).join(`${v}{0,${y}}`).split(`${v}+`).join(`${v}{1,${y}}`);return m},g=(m,v,y)=>{const w=p(v),_=o++;h(m,_,v),f[m]=_,l[_]=v,u[_]=w,a[_]=new RegExp(v,y?"g":void 0),n[_]=new RegExp(w,y?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${c}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${l[f.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",l[f.COERCEPLAIN]+`(?:${l[f.PRERELEASE]})?(?:${l[f.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("COERCERTLFULL",l[f.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),wu=I.__commonJSMin(((e,t)=>{var r=Object.freeze({loose:!0}),i=Object.freeze({}),s=h=>h?typeof h!="object"?r:h:i;t.exports=s})),rf=I.__commonJSMin(((e,t)=>{var r=/^[0-9]+$/,i=(h,a)=>{if(typeof h=="number"&&typeof a=="number")return h===a?0:h<a?-1:1;const n=r.test(h),l=r.test(a);return n&&l&&(h=+h,a=+a),h===a?0:n&&!l?-1:l&&!n?1:h<a?-1:1},s=(h,a)=>i(a,h);t.exports={compareIdentifiers:i,rcompareIdentifiers:s}})),$t=I.__commonJSMin(((e,t)=>{var r=ys(),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=vs(),{safeRe:h,t:a}=sn(),n=wu(),{compareIdentifiers:l}=rf(),u=class tr{constructor(o,c){if(c=n(c),o instanceof tr){if(o.loose===!!c.loose&&o.includePrerelease===!!c.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",o,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=o.trim().match(c.loose?h[a.LOOSE]:h[a.FULL]);if(!d)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const g=+p;if(g>=0&&g<s)return g}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(r("SemVer.compare",this.version,this.options,o),!(o instanceof tr)){if(typeof o=="string"&&o===this.version)return 0;o=new tr(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof tr||(o=new tr(o,this.options)),this.major<o.major?-1:this.major>o.major?1:this.minor<o.minor?-1:this.minor>o.minor?1:this.patch<o.patch?-1:this.patch>o.patch?1:0}comparePre(o){if(o instanceof tr||(o=new tr(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],p=o.prerelease[c];if(r("prerelease compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return l(d,p)}while(++c)}compareBuild(o){o instanceof tr||(o=new tr(o,this.options));let c=0;do{const d=this.build[c],p=o.build[c];if(r("build compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return l(d,p)}while(++c)}inc(o,c,d){if(o.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const p=`-${c}`.match(this.options.loose?h[a.PRERELEASELOOSE]:h[a.PRERELEASE]);if(!p||p[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(c){let g=[c,p];d===!1&&(g=[c]),l(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=u})),bi=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a=!1)=>{if(s instanceof r)return s;try{return new r(s,h)}catch(n){if(!a)return null;throw n}};t.exports=i})),z_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,h);return a?a.version:null};t.exports=i})),G_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s.trim().replace(/^[=v]+/,""),h);return a?a.version:null};t.exports=i})),J_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a,n,l)=>{typeof a=="string"&&(l=n,n=a,a=void 0);try{return new r(s instanceof r?s.version:s,a).inc(h,n,l).version}catch{return null}};t.exports=i})),nf=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,null,!0),n=r(h,null,!0),l=a.compare(n);if(l===0)return null;const u=l>0,f=u?a:n,o=u?n:a,c=!!f.prerelease.length;if(o.prerelease.length&&!c){if(!o.patch&&!o.minor)return"major";if(o.compareMain(f)===0)return o.minor&&!o.patch?"minor":"patch"}const d=c?"pre":"";return a.major!==n.major?d+"major":a.minor!==n.minor?d+"minor":a.patch!==n.patch?d+"patch":"prerelease"};t.exports=i})),W_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).major;t.exports=i})),V_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).minor;t.exports=i})),Y_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).patch;t.exports=i})),K_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,h);return a&&a.prerelease.length?a.prerelease:null};t.exports=i})),Zt=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a)=>new r(s,a).compare(new r(h,a));t.exports=i})),Z_=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(h,s,a);t.exports=i})),X_=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h)=>r(s,h,!0);t.exports=i})),Su=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a)=>{const n=new r(s,a),l=new r(h,a);return n.compare(l)||n.compareBuild(l)};t.exports=i})),Q_=I.__commonJSMin(((e,t)=>{var r=Su(),i=(s,h)=>s.sort((a,n)=>r(a,n,h));t.exports=i})),e1=I.__commonJSMin(((e,t)=>{var r=Su(),i=(s,h)=>s.sort((a,n)=>r(n,a,h));t.exports=i})),an=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)>0;t.exports=i})),Du=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)<0;t.exports=i})),sf=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)===0;t.exports=i})),af=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)!==0;t.exports=i})),Au=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)>=0;t.exports=i})),Cu=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)<=0;t.exports=i})),of=I.__commonJSMin(((e,t)=>{var r=sf(),i=af(),s=an(),h=Au(),a=Du(),n=Cu(),l=(u,f,o,c)=>{switch(f){case"===":return typeof u=="object"&&(u=u.version),typeof o=="object"&&(o=o.version),u===o;case"!==":return typeof u=="object"&&(u=u.version),typeof o=="object"&&(o=o.version),u!==o;case"":case"=":case"==":return r(u,o,c);case"!=":return i(u,o,c);case">":return s(u,o,c);case">=":return h(u,o,c);case"<":return a(u,o,c);case"<=":return n(u,o,c);default:throw new TypeError(`Invalid operator: ${f}`)}};t.exports=l})),t1=I.__commonJSMin(((e,t)=>{var r=$t(),i=bi(),{safeRe:s,t:h}=sn(),a=(n,l)=>{if(n instanceof r)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;l=l||{};let u=null;if(!l.rtl)u=n.match(l.includePrerelease?s[h.COERCEFULL]:s[h.COERCE]);else{const o=l.includePrerelease?s[h.COERCERTLFULL]:s[h.COERCERTL];let c;for(;(c=o.exec(n))&&(!u||u.index+u[0].length!==n.length);)(!u||c.index+c[0].length!==u.index+u[0].length)&&(u=c),o.lastIndex=c.index+c[1].length+c[2].length;o.lastIndex=-1}if(u===null)return null;const f=u[2];return i(`${f}.${u[3]||"0"}.${u[4]||"0"}${l.includePrerelease&&u[5]?`-${u[5]}`:""}${l.includePrerelease&&u[6]?`+${u[6]}`:""}`,l)};t.exports=a})),r1=I.__commonJSMin(((e,t)=>{var r=class{constructor(){this.max=1e3,this.map=new Map}get(i){const s=this.map.get(i);if(s!==void 0)return this.map.delete(i),this.map.set(i,s),s}delete(i){return this.map.delete(i)}set(i,s){if(!this.delete(i)&&s!==void 0){if(this.map.size>=this.max){const h=this.map.keys().next().value;this.delete(h)}this.map.set(i,s)}return this}};t.exports=r})),Xt=I.__commonJSMin(((e,t)=>{var r=/\s+/g,i=class $n{constructor(L,N){if(N=h(N),L instanceof $n)return L.loose===!!N.loose&&L.includePrerelease===!!N.includePrerelease?L:new $n(L.raw,N);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.formatted=void 0,this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=L.trim().replace(r," "),this.set=this.raw.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(J=>!m(J[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const J of this.set)if(J.length===1&&v(J[0])){this.set=[J];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let L=0;L<this.set.length;L++){L>0&&(this.formatted+="||");const N=this.set[L];for(let q=0;q<N.length;q++)q>0&&(this.formatted+=" "),this.formatted+=N[q].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(L){const N=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+L,q=s.get(N);if(q)return q;const J=this.options.loose,P=J?u[f.HYPHENRANGELOOSE]:u[f.HYPHENRANGE];L=L.replace(P,z(this.options.includePrerelease)),n("hyphen replace",L),L=L.replace(u[f.COMPARATORTRIM],o),n("comparator trim",L),L=L.replace(u[f.TILDETRIM],c),n("tilde trim",L),L=L.replace(u[f.CARETTRIM],d),n("caret trim",L);let B=L.split(" ").map(Y=>w(Y,this.options)).join(" ").split(/\s+/).map(Y=>$(Y,this.options));J&&(B=B.filter(Y=>(n("loose invalid filter",Y,this.options),!!Y.match(u[f.COMPARATORLOOSE])))),n("range list",B);const F=new Map,O=B.map(Y=>new a(Y,this.options));for(const Y of O){if(m(Y))return[Y];F.set(Y.value,Y)}F.size>1&&F.has("")&&F.delete("");const x=[...F.values()];return s.set(N,x),x}intersects(L,N){if(!(L instanceof $n))throw new TypeError("a Range is required");return this.set.some(q=>y(q,N)&&L.set.some(J=>y(J,N)&&q.every(P=>J.every(B=>P.intersects(B,N)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new l(L,this.options)}catch{return!1}for(let N=0;N<this.set.length;N++)if(V(this.set[N],L,this.options))return!0;return!1}};t.exports=i;var s=new(r1()),h=wu(),a=_s(),n=ys(),l=$t(),{safeRe:u,t:f,comparatorTrimReplace:o,tildeTrimReplace:c,caretTrimReplace:d}=sn(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=vs(),m=H=>H.value==="<0.0.0-0",v=H=>H.value==="",y=(H,L)=>{let N=!0;const q=H.slice();let J=q.pop();for(;N&&q.length;)N=q.every(P=>J.intersects(P,L)),J=q.pop();return N},w=(H,L)=>(H=H.replace(u[f.BUILD],""),n("comp",H,L),H=S(H,L),n("caret",H),H=b(H,L),n("tildes",H),H=C(H,L),n("xrange",H),H=U(H,L),n("stars",H),H),_=H=>!H||H.toLowerCase()==="x"||H==="*",b=(H,L)=>H.trim().split(/\s+/).map(N=>E(N,L)).join(" "),E=(H,L)=>{const N=L.loose?u[f.TILDELOOSE]:u[f.TILDE];return H.replace(N,(q,J,P,B,F)=>{n("tilde",H,q,J,P,B,F);let O;return _(J)?O="":_(P)?O=`>=${J}.0.0 <${+J+1}.0.0-0`:_(B)?O=`>=${J}.${P}.0 <${J}.${+P+1}.0-0`:F?(n("replaceTilde pr",F),O=`>=${J}.${P}.${B}-${F} <${J}.${+P+1}.0-0`):O=`>=${J}.${P}.${B} <${J}.${+P+1}.0-0`,n("tilde return",O),O})},S=(H,L)=>H.trim().split(/\s+/).map(N=>A(N,L)).join(" "),A=(H,L)=>{n("caret",H,L);const N=L.loose?u[f.CARETLOOSE]:u[f.CARET],q=L.includePrerelease?"-0":"";return H.replace(N,(J,P,B,F,O)=>{n("caret",H,J,P,B,F,O);let x;return _(P)?x="":_(B)?x=`>=${P}.0.0${q} <${+P+1}.0.0-0`:_(F)?P==="0"?x=`>=${P}.${B}.0${q} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.0${q} <${+P+1}.0.0-0`:O?(n("replaceCaret pr",O),P==="0"?B==="0"?x=`>=${P}.${B}.${F}-${O} <${P}.${B}.${+F+1}-0`:x=`>=${P}.${B}.${F}-${O} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.${F}-${O} <${+P+1}.0.0-0`):(n("no pr"),P==="0"?B==="0"?x=`>=${P}.${B}.${F}${q} <${P}.${B}.${+F+1}-0`:x=`>=${P}.${B}.${F}${q} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.${F} <${+P+1}.0.0-0`),n("caret return",x),x})},C=(H,L)=>(n("replaceXRanges",H,L),H.split(/\s+/).map(N=>T(N,L)).join(" ")),T=(H,L)=>{H=H.trim();const N=L.loose?u[f.XRANGELOOSE]:u[f.XRANGE];return H.replace(N,(q,J,P,B,F,O)=>{n("xRange",H,q,J,P,B,F,O);const x=_(P),Y=x||_(B),oe=Y||_(F),pe=oe;return J==="="&&pe&&(J=""),O=L.includePrerelease?"-0":"",x?J===">"||J==="<"?q="<0.0.0-0":q="*":J&&pe?(Y&&(B=0),F=0,J===">"?(J=">=",Y?(P=+P+1,B=0,F=0):(B=+B+1,F=0)):J==="<="&&(J="<",Y?P=+P+1:B=+B+1),J==="<"&&(O="-0"),q=`${J+P}.${B}.${F}${O}`):Y?q=`>=${P}.0.0${O} <${+P+1}.0.0-0`:oe&&(q=`>=${P}.${B}.0${O} <${P}.${+B+1}.0-0`),n("xRange return",q),q})},U=(H,L)=>(n("replaceStars",H,L),H.trim().replace(u[f.STAR],"")),$=(H,L)=>(n("replaceGTE0",H,L),H.trim().replace(u[L.includePrerelease?f.GTE0PRE:f.GTE0],"")),z=H=>(L,N,q,J,P,B,F,O,x,Y,oe,pe)=>(_(q)?N="":_(J)?N=`>=${q}.0.0${H?"-0":""}`:_(P)?N=`>=${q}.${J}.0${H?"-0":""}`:B?N=`>=${N}`:N=`>=${N}${H?"-0":""}`,_(x)?O="":_(Y)?O=`<${+x+1}.0.0-0`:_(oe)?O=`<${x}.${+Y+1}.0-0`:pe?O=`<=${x}.${Y}.${oe}-${pe}`:H?O=`<${x}.${Y}.${+oe+1}-0`:O=`<=${O}`,`${N} ${O}`.trim()),V=(H,L,N)=>{for(let q=0;q<H.length;q++)if(!H[q].test(L))return!1;if(L.prerelease.length&&!N.includePrerelease){for(let q=0;q<H.length;q++)if(n(H[q].semver),H[q].semver!==a.ANY&&H[q].semver.prerelease.length>0){const J=H[q].semver;if(J.major===L.major&&J.minor===L.minor&&J.patch===L.patch)return!0}return!1}return!0}})),_s=I.__commonJSMin(((e,t)=>{var r=Symbol("SemVer ANY"),i=class Ta{static get ANY(){return r}constructor(c,d){if(d=s(d),c instanceof Ta){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),l("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(c){const d=this.options.loose?h[a.COMPARATORLOOSE]:h[a.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new u(p[2],this.options.loose):this.semver=r}toString(){return this.value}test(c){if(l("Comparator.test",c,this.options.loose),this.semver===r||c===r)return!0;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}return n(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof Ta))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new f(this.value,d).test(c.semver):(d=s(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||n(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||n(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}};t.exports=i;var s=wu(),{safeRe:h,t:a}=sn(),n=of(),l=ys(),u=$t(),f=Xt()})),Es=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h,a)=>{try{h=new r(h,a)}catch{return!1}return h.test(s)};t.exports=i})),i1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h)=>new r(s,h).set.map(a=>a.map(n=>n.value).join(" ").trim().split(" "));t.exports=i})),n1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=(h,a,n)=>{let l=null,u=null,f=null;try{f=new i(a,n)}catch{return null}return h.forEach(o=>{f.test(o)&&(!l||u.compare(o)===-1)&&(l=o,u=new r(l,n))}),l};t.exports=s})),s1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=(h,a,n)=>{let l=null,u=null,f=null;try{f=new i(a,n)}catch{return null}return h.forEach(o=>{f.test(o)&&(!l||u.compare(o)===1)&&(l=o,u=new r(l,n))}),l};t.exports=s})),a1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=an(),h=(a,n)=>{a=new i(a,n);let l=new r("0.0.0");if(a.test(l)||(l=new r("0.0.0-0"),a.test(l)))return l;l=null;for(let u=0;u<a.set.length;++u){const f=a.set[u];let o=null;f.forEach(c=>{const d=new r(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!o||s(d,o))&&(o=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),o&&(!l||s(l,o))&&(l=o)}return l&&a.test(l)?l:null};t.exports=h})),o1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h)=>{try{return new r(s,h).range||"*"}catch{return null}};t.exports=i})),Tu=I.__commonJSMin(((e,t)=>{var r=$t(),i=_s(),{ANY:s}=i,h=Xt(),a=Es(),n=an(),l=Du(),u=Cu(),f=Au(),o=(c,d,p,g)=>{c=new r(c,g),d=new h(d,g);let m,v,y,w,_;switch(p){case">":m=n,v=u,y=l,w=">",_=">=";break;case"<":m=l,v=f,y=n,w="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(c,d,g))return!1;for(let b=0;b<d.set.length;++b){const E=d.set[b];let S=null,A=null;if(E.forEach(C=>{C.semver===s&&(C=new i(">=0.0.0")),S=S||C,A=A||C,m(C.semver,S.semver,g)?S=C:y(C.semver,A.semver,g)&&(A=C)}),S.operator===w||S.operator===_||(!A.operator||A.operator===w)&&v(c,A.semver))return!1;if(A.operator===_&&y(c,A.semver))return!1}return!0};t.exports=o})),u1=I.__commonJSMin(((e,t)=>{var r=Tu(),i=(s,h,a)=>r(s,h,">",a);t.exports=i})),l1=I.__commonJSMin(((e,t)=>{var r=Tu(),i=(s,h,a)=>r(s,h,"<",a);t.exports=i})),c1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h,a)=>(s=new r(s,a),h=new r(h,a),s.intersects(h,a));t.exports=i})),h1=I.__commonJSMin(((e,t)=>{var r=Es(),i=Zt();t.exports=(s,h,a)=>{const n=[];let l=null,u=null;const f=s.sort((p,g)=>i(p,g,a));for(const p of f)r(p,h,a)?(u=p,l||(l=p)):(u&&n.push([l,u]),u=null,l=null);l&&n.push([l,null]);const o=[];for(const[p,g]of n)p===g?o.push(p):!g&&p===f[0]?o.push("*"):g?p===f[0]?o.push(`<=${g}`):o.push(`${p} - ${g}`):o.push(`>=${p}`);const c=o.join(" || "),d=typeof h.raw=="string"?h.raw:String(h);return c.length<d.length?c:h}})),f1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=_s(),{ANY:s}=i,h=Es(),a=Zt(),n=(d,p,g={})=>{if(d===p)return!0;d=new r(d,g),p=new r(p,g);let m=!1;e:for(const v of d.set){for(const y of p.set){const w=f(v,y,g);if(m=m||w!==null,w)continue e}if(m)return!1}return!0},l=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],f=(d,p,g)=>{if(d===p)return!0;if(d.length===1&&d[0].semver===s){if(p.length===1&&p[0].semver===s)return!0;g.includePrerelease?d=l:d=u}if(p.length===1&&p[0].semver===s){if(g.includePrerelease)return!0;p=u}const m=new Set;let v,y;for(const T of d)T.operator===">"||T.operator===">="?v=o(v,T,g):T.operator==="<"||T.operator==="<="?y=c(y,T,g):m.add(T.semver);if(m.size>1)return null;let w;if(v&&y){if(w=a(v.semver,y.semver,g),w>0)return null;if(w===0&&(v.operator!==">="||y.operator!=="<="))return null}for(const T of m){if(v&&!h(T,String(v),g)||y&&!h(T,String(y),g))return null;for(const U of p)if(!h(T,String(U),g))return!1;return!0}let _,b,E,S,A=y&&!g.includePrerelease&&y.semver.prerelease.length?y.semver:!1,C=v&&!g.includePrerelease&&v.semver.prerelease.length?v.semver:!1;A&&A.prerelease.length===1&&y.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(const T of p){if(S=S||T.operator===">"||T.operator===">=",E=E||T.operator==="<"||T.operator==="<=",v){if(C&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===C.major&&T.semver.minor===C.minor&&T.semver.patch===C.patch&&(C=!1),T.operator===">"||T.operator===">="){if(_=o(v,T,g),_===T&&_!==v)return!1}else if(v.operator===">="&&!h(v.semver,String(T),g))return!1}if(y){if(A&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===A.major&&T.semver.minor===A.minor&&T.semver.patch===A.patch&&(A=!1),T.operator==="<"||T.operator==="<="){if(b=c(y,T,g),b===T&&b!==y)return!1}else if(y.operator==="<="&&!h(y.semver,String(T),g))return!1}if(!T.operator&&(y||v)&&w!==0)return!1}return!(v&&E&&!y&&w!==0||y&&S&&!v&&w!==0||C||A)},o=(d,p,g)=>{if(!d)return p;const m=a(d.semver,p.semver,g);return m>0?d:m<0||p.operator===">"&&d.operator===">="?p:d},c=(d,p,g)=>{if(!d)return p;const m=a(d.semver,p.semver,g);return m<0?d:m>0||p.operator==="<"&&d.operator==="<="?p:d};t.exports=n})),bs=I.__commonJSMin(((e,t)=>{var r=sn(),i=vs(),s=$t(),h=rf(),a=bi(),n=z_(),l=G_(),u=J_(),f=nf(),o=W_(),c=V_(),d=Y_(),p=K_(),g=Zt(),m=Z_(),v=X_(),y=Su(),w=Q_(),_=e1(),b=an(),E=Du(),S=sf(),A=af(),C=Au(),T=Cu(),U=of(),$=t1(),z=_s(),V=Xt(),H=Es(),L=i1(),N=n1(),q=s1(),J=a1(),P=o1(),B=Tu(),F=u1(),O=l1(),x=c1(),Y=h1(),oe=f1();t.exports={parse:a,valid:n,clean:l,inc:u,diff:f,major:o,minor:c,patch:d,prerelease:p,compare:g,rcompare:m,compareLoose:v,compareBuild:y,sort:w,rsort:_,gt:b,lt:E,eq:S,neq:A,gte:C,lte:T,cmp:U,coerce:$,Comparator:z,Range:V,satisfies:H,toComparators:L,maxSatisfying:N,minSatisfying:q,minVersion:J,validRange:P,outside:B,gtr:F,ltr:O,intersects:x,simplifyRange:Y,subset:oe,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:h.compareIdentifiers,rcompareIdentifiers:h.rcompareIdentifiers}})),d1=I.__commonJSMin(((e,t)=>{(function(){"use strict";var r=/^v?((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/,i=/\s*((\|\||\-)|(((?:(?:~?[<>]?)|\^?)=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g;function s(f){var o={};for(var c in f)typeof f[c]<"u"&&(o[c]=f[c]);return o}function h(f){var o="";return o+=f.major||"0",o+=".",o+=f.minor||"0",o+=".",o+=f.patch||"0",f.release&&(o+="-"+f.release),f.build&&(o+="+"+f.build),o}function a(f){var o="";function c(d){d.operator&&(o+=d.operator+" "),d.major&&(o+=d.toString()+" ")}return f.forEach(c),o.trim()}function n(f){if(f){var o=this;Object.keys(f).forEach(function(c){o[c]=f[c]})}}n.prototype.toString=function(){return h(this)};function l(f){var o=r.exec(f)||[],c=new n(s({semver:o[0],version:o[1],major:o[2],minor:o[3],patch:o[4],release:o[5],build:o[6]}));return o.length===0&&(c=null),c}function u(f){for(var o,c=[],d;o=i.exec(f);)d={semver:o[3],operator:o[4]||o[2],major:o[6],minor:o[8],patch:o[10]},o[12]==="+"&&(d.build=o[13]),o[12]==="-"&&(d.release=o[13]),c.push(new n(s(d)));return c}t.exports.parse=l,t.exports.stringify=h,t.exports.parseRange=u,t.exports.stringifyRange=a})()})),on=I.__toESM(q_(),1),We=I.__toESM(bs(),1),Tt=I.__toESM(d1(),1);function ws(e,t){return e?e.map(r=>({item:r,key:t(r)})).sort((r,i)=>r.key>i.key?1:r.key<i.key?-1:0).map(({item:r})=>r):[]}var Ru=["major","minor","patch"],uf=["release","build"],li=[...Ru,...uf],p1={major:"",minor:".",patch:".",release:"-",build:"+"};var lf=["^","~",".*",".x"],m1=new RegExp(`^(${["^","~","^*","*","x","x.x","x.x.x"].map(N_).join("|")})$`),cf=/^npm:(.*)@(.*)/;function g1(e){const[t]=Tt.default.parseRange(e);if(!t)throw new Error(ba.default.format('semverutils.parseRange returned null when trying to parse "%s". This is probably a problem with the "semver-utils" dependency. Please report an issue at https://github.com/raineorshine/npm-check-updates/issues.',e));return li.reduce((r,i)=>t[i]?r+1:r,0)}function gi(e,t){return(t?li.slice(0,li.indexOf(t)+1):li).filter(r=>t&&Ru.includes(t)||e[r]).map(r=>p1[r]+(e[r]||"0")).join("")}function v1(e){const[t]=Tt.default.parseRange(e);return li.slice().reverse().find(tf(t))}function y1(e,t){const[r]=Tt.default.parseRange(e);return gi(r,t)}function _1(e,t){return t==="^"||t==="~"?t+e:y1(e,"major")+t}function Ou(e){return m1.test(e)}function hf(e){return e==="*"||e==="x"}function E1(e,t){if(e===t)return"none";/^[~^]/.test(t)&&t[0]===e[0]&&(t=t.slice(1),e=e.slice(1));const r=t.split("."),i=e.split(".");let s=r.findIndex((h,a)=>h!==i[a]);return s=s>=0?s:r.length,r[0]==="0"?"majorVersionZero":s===0?"major":s===1?"minor":"patch"}function ff(e,t,r){const i=at(e,(h,a,n)=>{const l=t[h],u=E1(l,a),f=r.groupFunction?.(h,u,(0,Tt.parseRange)(l),(0,Tt.parseRange)(a),(0,Tt.parse)(e[h]))??u;return f==="none"?n:{...n,[f]:{...n[f],[h]:a}}}),s={patch:ge.green(ge.bold("Patch")+" Backwards-compatible bug fixes"),minor:ge.cyan(ge.bold("Minor")+" Backwards-compatible features"),major:ge.red(ge.bold("Major")+" Potentially breaking API changes"),majorVersionZero:ge.magenta(ge.bold("Major version zero")+" Anything may change")};return Array.from(new Set(["patch","minor","major","majorVersionZero",...Object.keys(i).sort()])).filter(h=>h in i).map(h=>({groupName:h,heading:h in s?s[h]:h,packages:i[h]}))}function Iu(e,t){let r="";/^[~^]/.test(t)&&t[0]===e[0]&&(r=t[0],t=t.slice(1),e=e.slice(1));const i=t.split("."),s=e.split(".");let h=i.findIndex((l,u)=>l!==s[u]);h=h>=0?h:i.length;const a=h===0||i[0]==="0"?"red":h===1?"cyan":"green",n=h>0&&h<i.length?".":"";return r+i.slice(0,h).join(".")+n+ge[a](i.slice(h).join("."))}var dc=e=>{const t=We.default.prerelease(e);return t&&t.slice(0,-1).join(".")};function b1(e,t){const r=dc(e),i=dc(t);return typeof r!="string"||typeof i!="string"||r===i}function ku(e,t){return(We.default.valid(e)&&We.default.valid(t)?We.default.gt(e,t):e>t)?1:e===t?0:-1}function Lu(e,t,r){if(!We.default.validRange(t))return null;const i=We.default.minVersion(t);return[...e].sort(ku).filter(s=>{const h=We.default.parse(s);return h&&(r==="major"||h.major===i?.major)&&(r==="major"||r==="minor"||h.minor===i?.minor)}).at(-1)||null}function un(e){return v1(e)==="release"}var df=e=>/^[vV]?\d+$/.test(e),pf=e=>/^[vV]?\d+\.\d+$/.test(e),w1=e=>e.replace(/^[vV]/,""),S1=e=>df(e)?e+".0.0":e,D1=e=>pf(e)?e+".0":e,Fu=e=>D1(S1(w1(e)));function mf(e){return e&&(e[0]==="v"||e[1]==="v")?"v":""}var gf=(e,t)=>`npm:${e}@${t}`,Wi=e=>{const t=e&&e.match&&e.match(cf);return t&&t.slice(1)},Bn=e=>e&&!!e.match(cf),A1=(e,t)=>{const r=Wi(e);return r?gf(r[0],t):null},Ui=e=>{if(!e)return!1;let t=null;try{t=(0,on.default)(e)}catch{}if(!t||!t.branch)return!1;const r=decodeURIComponent(t.branch).replace(/^semver:/,"");return!!We.default.validRange(r)},Ra=e=>{if(!e)return null;const t=(0,on.default)(e);if(!t||!t.branch)return null;const r=decodeURIComponent(t.branch).replace(/^semver:/,"");return t&&t.branch&&We.default.validRange(r)?r:null};function vf(e,t,r={}){if(r.wildcard=r.wildcard||"^",!t)return e;const[i]=Tt.default.parseRange(t);if(!i)return e;if(r.removeRange)return t;if(Ou(e))return e;const s=ws(Tt.default.parseRange(e).filter(g=>g.operator!=="||"&&g.operator!=="-"),g=>g1(gi(g))),[h]=s;function a(g){return(hf(h[g])?h[g]:Ru.includes(g)&&h[g]||uf.includes(g)?i[g]:null)||null}const n=gi(at(li,g=>({[g]:a(g)}))),l=mf(h.semver)+n,u=Array.from(new Set(s.map(g=>g.operator))),f=u[0]||"",o=lf.some(g=>n.includes(g)),c=u[0]==="<"||u[0]==="<=",d=u[0]===">",p=u.length>1;return!o&&(c||p)?_1(l,r.wildcard):(d?">=":f)+l}var C1=(e,t)=>{const r=mf(e);let i=r?r+t:t;return i=df(e)?i.slice(0,i.length-4):i,i=pf(e)?i.slice(0,i.length-2):i,i},Ss=(e,t)=>{const r=Fu(t),i=(0,on.default)(e);if(!i)return e;const s=decodeURIComponent(i.branch).replace(/^semver:/,"");return e.replace(s,vf(s,C1(s,r)))},pc={silent:0,error:1,minimal:2,warn:3,info:4,verbose:5,silly:6},T1=e=>!e.startsWith("file:")&&!e.startsWith("link:")&&!e.startsWith("workspace:")&&!e.startsWith("catalog:")&&!/^[^/:@]+\/\w+/.test(e);function Me(e,t,r=null,i="log"){!e.json&&e.loglevel!=="silent"&&(r==null||pc[e.loglevel??"warn"]>=pc[r])&&console[i](t)}function Nu(e,t){e.loglevel!=="silent"&&console.log(JSON.stringify(t,null,2))}function R1(e,t){console.log(Object.keys(e).map(r=>r+"@"+e[r]).join(t))}function dr(e,t,r){Me(e,Object.keys(t).sort().reduce((i,s)=>(i[s]=t[s],i),{}),r)}function xu(e){const t=new cu.default({colAligns:["left","right","right","right","left","left"],chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}});return t.push(...e),t.toString().split(`
|
|
60
|
+
`)}function ay(e){return function(){return e}}var ec=(function(){try{var e=ps(Object,"defineProperty");return e({},"",{}),e}catch{}})(),oy=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:ay(t),writable:!0})}:pu,Wh=Gh(oy);function uy(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function ly(e,t,r,i){for(var s=e.length,h=r+(i?1:-1);i?h--:++h<s;)if(t(e[h],h,e))return h;return-1}function cy(e){return e!==e}function hy(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function fy(e,t,r){return t===t?hy(e,t,r):ly(e,cy,r)}function dy(e,t){return!!(e!=null&&e.length)&&fy(e,t,0)>-1}var py=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function my(e,t){return uy(py,function(r){var i="_."+r[0];t&r[1]&&!dy(e,i)&&e.push(i)}),e.sort()}function Vh(e,t,r){var i=t+"";return Wh(e,sy(i,my(iy(i),r)))}var gy=1,vy=2,yy=4,_y=8,tc=32,rc=64;function Yh(e,t,r,i,s,h,a,n,l,u){var f=t&_y,o=f?a:void 0,c=f?void 0:a,d=f?h:void 0,p=f?void 0:h;t|=f?tc:rc,t&=~(f?rc:tc),t&yy||(t&=~(gy|vy));var g=[e,t,s,d,o,p,c,n,l,u],m=r.apply(void 0,g);return Ca(e)&&Jh(m,g),m.placeholder=i,Vh(m,e,t)}function Kh(e){return e.placeholder}var Ey=9007199254740991,by=/^(?:0|[1-9]\d*)$/;function wy(e,t){var r=typeof e;return t=t??Ey,!!t&&(r=="number"||r!="symbol"&&by.test(e))&&e>-1&&e%1==0&&e<t}var Sy=Math.min;function Dy(e,t){for(var r=e.length,i=Sy(t.length,r),s=zh(e);i--;){var h=t[i];e[i]=wy(h,r)?s[h]:void 0}return e}var ic="__lodash_placeholder__";function Vn(e,t){for(var r=-1,i=e.length,s=0,h=[];++r<i;){var a=e[r];(a===t||a===ic)&&(e[r]=ic,h[s++]=r)}return h}var Ay=1,Cy=2,Ty=8,Ry=16,Oy=128,Iy=512;function _u(e,t,r,i,s,h,a,n,l,u){var f=t&Oy,o=t&Ay,c=t&Cy,d=t&(Ty|Ry),p=t&Iy,g=c?void 0:Gi(e);function m(){for(var v=arguments.length,y=Array(v),w=v;w--;)y[w]=arguments[w];if(d)var _=Kh(m),b=Jv(y,_);if(i&&(y=Hh(y,i,s,d)),h&&(y=qh(y,h,a,d)),v-=b,d&&v<u){var E=Vn(y,_);return Yh(e,t,_u,m.placeholder,r,y,E,n,l,u-v)}var S=o?r:this,A=c?S[e]:e;return v=y.length,n?y=Dy(y,n):p&&v>1&&y.reverse(),f&&l<v&&(y.length=l),this&&this!==Dr&&this instanceof m&&(A=g||Gi(A)),A.apply(S,y)}return m}function ky(e,t,r){var i=Gi(e);function s(){for(var h=arguments.length,a=Array(h),n=h,l=Kh(s);n--;)a[n]=arguments[n];var u=h<3&&a[0]!==l&&a[h-1]!==l?[]:Vn(a,l);return h-=u.length,h<r?Yh(e,t,_u,s.placeholder,void 0,a,u,void 0,void 0,r-h):gu(this&&this!==Dr&&this instanceof s?i:e,this,a)}return s}var Ly=1;function Fy(e,t,r,i){var s=t&Ly,h=Gi(e);function a(){for(var n=-1,l=arguments.length,u=-1,f=i.length,o=Array(f+l),c=this&&this!==Dr&&this instanceof a?h:e;++u<f;)o[u]=i[u];for(;l--;)o[u++]=arguments[++n];return gu(c,s?r:this,o)}return a}var nc="__lodash_placeholder__",na=1,Ny=2,xy=4,sc=8,Ri=128,ac=256,$y=Math.min;function By(e,t){var r=e[1],i=t[1],s=r|i,h=s<(na|Ny|Ri),a=i==Ri&&r==sc||i==Ri&&r==ac&&e[7].length<=t[8]||i==(Ri|ac)&&t[7].length<=t[8]&&r==sc;if(!(h||a))return e;i&na&&(e[2]=t[2],s|=r&na?0:xy);var n=t[3];if(n){var l=e[3];e[3]=l?Hh(l,n,t[4]):n,e[4]=l?Vn(e[3],nc):t[4]}return n=t[5],n&&(l=e[5],e[5]=l?qh(l,n,t[6]):n,e[6]=l?Vn(e[5],nc):t[6]),n=t[7],n&&(e[7]=n),i&Ri&&(e[8]=e[8]==null?t[8]:$y(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=s,e}var My="Expected a function",oc=1,Py=2,sa=8,aa=16,oa=32,uc=64,lc=Math.max;function jy(e,t,r,i,s,h,a,n){var l=t&Py;if(!l&&typeof e!="function")throw new TypeError(My);var u=i?i.length:0;if(u||(t&=~(oa|uc),i=s=void 0),a=a===void 0?a:lc(Yl(a),0),n=n===void 0?n:Yl(n),u-=s?s.length:0,t&uc){var f=i,o=s;i=s=void 0}var c=l?void 0:yu(e),d=[e,t,r,i,s,f,o,h,a,n];if(c&&By(d,c),e=d[0],t=d[1],r=d[2],i=d[3],s=d[4],n=d[9]=d[9]===void 0?l?0:e.length:lc(d[9]-u,0),!n&&t&(sa|aa)&&(t&=~(sa|aa)),!t||t==oc)var p=qv(e,t,r);else t==sa||t==aa?p=ky(e,t,n):(t==oa||t==(oc|oa))&&!s.length?p=Fy(e,t,r,i):p=_u.apply(void 0,d);return Vh((c?Uh:Jh)(p,d),e,t)}function Uy(e,t){return e===t||e!==e&&t!==t}var cc=Math.max;function Hy(e,t,r){return t=cc(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,h=cc(i.length-t,0),a=Array(h);++s<h;)a[s]=i[t+s];s=-1;for(var n=Array(t+1);++s<t;)n[s]=i[s];return n[t]=r(a),gu(e,this,n)}}var qy="[object Arguments]";function hc(e){return fs(e)&&du(e)==qy}var Zh=Object.prototype,zy=Zh.hasOwnProperty,Gy=Zh.propertyIsEnumerable,Jy=hc((function(){return arguments})())?hc:function(e){return fs(e)&&zy.call(e,"callee")&&!Gy.call(e,"callee")},Wy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vy=/^\w*$/;function Yy(e,t){if(_i(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ds(e)?!0:Vy.test(e)||!Wy.test(e)||t!=null&&e in Object(t)}var Ji=ps(Object,"create");function Ky(){this.__data__=Ji?Ji(null):{},this.size=0}function Zy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xy="__lodash_hash_undefined__",Qy=Object.prototype.hasOwnProperty;function e_(e){var t=this.__data__;if(Ji){var r=t[e];return r===Xy?void 0:r}return Qy.call(t,e)?t[e]:void 0}var t_=Object.prototype.hasOwnProperty;function r_(e){var t=this.__data__;return Ji?t[e]!==void 0:t_.call(t,e)}var i_="__lodash_hash_undefined__";function n_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ji&&t===void 0?i_:t,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ur.prototype.clear=Ky;Ur.prototype.delete=Zy;Ur.prototype.get=e_;Ur.prototype.has=r_;Ur.prototype.set=n_;function s_(){this.__data__=[],this.size=0}function ms(e,t){for(var r=e.length;r--;)if(Uy(e[r][0],t))return r;return-1}var a_=Array.prototype.splice;function o_(e){var t=this.__data__,r=ms(t,e);return r<0?!1:(r==t.length-1?t.pop():a_.call(t,r,1),--this.size,!0)}function u_(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}function l_(e){return ms(this.__data__,e)>-1}function c_(e,t){var r=this.__data__,i=ms(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Ei(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ei.prototype.clear=s_;Ei.prototype.delete=o_;Ei.prototype.get=u_;Ei.prototype.has=l_;Ei.prototype.set=c_;var h_=ps(Dr,"Map");function f_(){this.size=0,this.__data__={hash:new Ur,map:new(h_||Ei),string:new Ur}}function d_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gs(e,t){var r=e.__data__;return d_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function p_(e){var t=gs(this,e).delete(e);return this.size-=t?1:0,t}function m_(e){return gs(this,e).get(e)}function g_(e){return gs(this,e).has(e)}function v_(e,t){var r=gs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}qr.prototype.clear=f_;qr.prototype.delete=p_;qr.prototype.get=m_;qr.prototype.has=g_;qr.prototype.set=v_;var y_="Expected a function";function Eu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(y_);var r=function(){var i=arguments,s=t?t.apply(this,i):i[0],h=r.cache;if(h.has(s))return h.get(s);var a=e.apply(this,i);return r.cache=h.set(s,a)||h,a};return r.cache=new(Eu.Cache||qr),r}Eu.Cache=qr;var __=500;function E_(e){var t=Eu(e,function(i){return r.size===__&&r.clear(),i}),r=t.cache;return t}var b_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w_=/\\(\\)?/g,S_=E_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(b_,function(r,i,s,h){t.push(s?h.replace(w_,"$1"):i||r)}),t});function Xh(e){return e==null?"":jh(e)}function D_(e,t){return _i(e)?e:Yy(e,t)?[e]:S_(Xh(e))}var A_=1/0;function C_(e){if(typeof e=="string"||ds(e))return e;var t=e+"";return t=="0"&&1/e==-A_?"-0":t}function T_(e,t){t=D_(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[C_(t[r++])];return r&&r==i?e:void 0}function R_(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var fc=vr?vr.isConcatSpreadable:void 0;function O_(e){return _i(e)||Jy(e)||!!(fc&&e&&e[fc])}function Qh(e,t,r,i,s){var h=-1,a=e.length;for(r||(r=O_),s||(s=[]);++h<a;){var n=e[h];t>0&&r(n)?t>1?Qh(n,t-1,r,i,s):R_(s,n):i||(s[s.length]=n)}return s}function I_(e){return e!=null&&e.length?Qh(e,1):[]}function k_(e){return Wh(Hy(e,void 0,I_),e+"")}var L_=8;function bu(e,t,r){t=r?void 0:t;var i=jy(e,L_,void 0,void 0,void 0,void 0,void 0,t);return i.placeholder=bu.placeholder,i}bu.placeholder={};var ef=/[\\^$.*+?()[\]{}|]/g,F_=RegExp(ef.source);function N_(e){return e=Xh(e),e&&F_.test(e)?e.replace(ef,"\\$&"):e}var x_="Expected a function",$_=8,B_=32,M_=128,P_=256;function j_(e){return k_(function(t){var r=t.length,i=r,s=yr.prototype.thru;for(e&&t.reverse();i--;){var h=t[i];if(typeof h!="function")throw new TypeError(x_);if(s&&!a&&xn(h)=="wrapper")var a=new yr([],!0)}for(i=a?i:r;++i<r;){h=t[i];var n=xn(h),l=n=="wrapper"?yu(h):void 0;l&&Ca(l[0])&&l[1]==(M_|$_|B_|P_)&&!l[4].length&&l[9]==1?a=a[xn(l[0])].apply(a,l[3]):a=h.length==1&&Ca(h)?a[n]():a.thru(h)}return function(){var u=arguments,f=u[0];if(a&&u.length==1&&_i(f))return a.plant(f).value();for(var o=0,c=r?t[o].apply(this,u):f;++o<r;)c=t[o].call(this,c);return c}})}var U_=j_();function tf(e){return function(t){return e==null?void 0:T_(e,t)}}var H_=I.__commonJSMin(((e,t)=>{var r=require("url"),i=typeof URL>"u"?r.URL||null:URL,s=i?null:r.parse;function h(a){try{var n=new i(a),l=null;n.username&&(l=n.password?n.username+":"+n.password:n.username);var u=n.host||null,f=n.hostname||null,o=n.pathname||null,c=n.pathname+(n.search||"")||null;if(!u&&o&&a.indexOf("//")===-1){var d=o.indexOf("/");d===-1?(u=o,f=o,o=null,c=null):(u=o.slice(0,d),f=u,o=o.slice(d),c=o+(n.search||""))}return{auth:l,hash:n.hash||null,host:u,hostname:f,href:n.href,path:c,pathname:o,port:n.port||null,protocol:n.protocol||null,query:n.search?n.search.slice(1):null,search:n.search||null,slashes:a.indexOf("//")===-1?null:!0}}catch{var p=a.indexOf("#"),g=p===-1?null:a.slice(p),m=p===-1?a:a.slice(0,p),v=m.indexOf("?"),y=v===-1?null:m.slice(v),w=v===-1?m:m.slice(0,v);return{auth:null,hash:g,host:null,hostname:null,href:a,path:m||null,pathname:w||null,port:null,protocol:null,query:y?y.slice(1):null,search:y,slashes:null}}}t.exports=i?h:s})),q_=I.__commonJSMin(((e,t)=>{var r=H_(),i={__proto__:null};function s(o){return/^[a-f0-9]{40}$/i.test(o)}function h(o,c){var d=o.split("#"),p;return d.length>1&&(p=d[d.length-1]),!p&&c.hash&&c.hash.charAt(0)==="#"&&(p=c.hash.slice(1)),p||"master"}function a(o){return o.charAt(0)==="/"?o.slice(1):o}function n(o){return o?o.replace(/\.git$/,""):null}function l(o){if(!o)return null;var c=o.indexOf(":");return c>-1?o.slice(c+1):o}function u(o){return r("http://"+o.replace(/git@([^:]+):/,"$1/")).host||null}function f(o){if(typeof o!="string"||!o.length||o.indexOf("git@gist")!==-1||o.indexOf("//gist")!==-1)return null;var c=r(o);if(typeof c.path!="string"||!c.path.length||typeof c.pathname!="string"||!c.pathname.length)return null;!c.host&&/^git@/.test(o)===!0&&(c.host=u(o)),c.path=a(c.path),c.pathname=a(c.pathname),c.filepath=null,c.path.indexOf("repos")===0&&(c.path=c.path.slice(6));var d=c.path.split("/").filter(Boolean),p=d[2]==="blob";p&&!s(d[3])&&(c.branch=d[3],d.length>4&&(c.filepath=d.slice(4).join("/")));var g=o.indexOf("blob");p&&g!==-1&&(c.blob=o.slice(g+5));var m=d[2]==="tree",v=o.indexOf("tree");if(m&&v!==-1){var y=v+5,w=o.slice(y),_=w.indexOf("/");_!==-1&&(w=w.slice(0,_)),c.branch=w}if(c.owner=l(d[0]),c.name=n(d[1]),d.length>1&&c.owner&&c.name)c.repo=c.owner+"/"+c.name;else{var b=c.href.split(":");if(b.length===2&&c.href.indexOf("//")===-1){c.repo=c.repo||b[b.length-1];var E=c.repo.split("/");c.owner=E[0],c.name=E[1]}else{var S=c.href.match(/\/([^/]*)$/);c.owner=S?S[1]:null,c.repo=null}if(c.repo&&(!c.owner||!c.name)){var A=c.repo.split("/");A.length===2&&(c.owner=A[0],c.name=A[1])}}return c.branch||(c.branch=d[2]||h(c.path,c),d.length>3&&(c.filepath=d.slice(3).join("/"))),c.host=c.host||"github.com",c.owner=c.owner||null,c.name=c.name||null,c.repository=c.repo,c}t.exports=function(c){return i[c]||(i[c]=f(c)),i[c]}})),vs=I.__commonJSMin(((e,t)=>{var r="2.0.0",i=256,s=Number.MAX_SAFE_INTEGER||9007199254740991,h=16,a=i-6,n=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:h,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:s,RELEASE_TYPES:n,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),ys=I.__commonJSMin(((e,t)=>{var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};t.exports=r})),sn=I.__commonJSMin(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=vs(),h=ys();e=t.exports={};var a=e.re=[],n=e.safeRe=[],l=e.src=[],u=e.safeSrc=[],f=e.t={},o=0,c="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[c,i]],p=m=>{for(const[v,y]of d)m=m.split(`${v}*`).join(`${v}{0,${y}}`).split(`${v}+`).join(`${v}{1,${y}}`);return m},g=(m,v,y)=>{const w=p(v),_=o++;h(m,_,v),f[m]=_,l[_]=v,u[_]=w,a[_]=new RegExp(v,y?"g":void 0),n[_]=new RegExp(w,y?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${c}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${l[f.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",l[f.COERCEPLAIN]+`(?:${l[f.PRERELEASE]})?(?:${l[f.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("COERCERTLFULL",l[f.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),wu=I.__commonJSMin(((e,t)=>{var r=Object.freeze({loose:!0}),i=Object.freeze({}),s=h=>h?typeof h!="object"?r:h:i;t.exports=s})),rf=I.__commonJSMin(((e,t)=>{var r=/^[0-9]+$/,i=(h,a)=>{if(typeof h=="number"&&typeof a=="number")return h===a?0:h<a?-1:1;const n=r.test(h),l=r.test(a);return n&&l&&(h=+h,a=+a),h===a?0:n&&!l?-1:l&&!n?1:h<a?-1:1},s=(h,a)=>i(a,h);t.exports={compareIdentifiers:i,rcompareIdentifiers:s}})),$t=I.__commonJSMin(((e,t)=>{var r=ys(),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=vs(),{safeRe:h,t:a}=sn(),n=wu(),{compareIdentifiers:l}=rf(),u=class tr{constructor(o,c){if(c=n(c),o instanceof tr){if(o.loose===!!c.loose&&o.includePrerelease===!!c.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",o,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=o.trim().match(c.loose?h[a.LOOSE]:h[a.FULL]);if(!d)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const g=+p;if(g>=0&&g<s)return g}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(r("SemVer.compare",this.version,this.options,o),!(o instanceof tr)){if(typeof o=="string"&&o===this.version)return 0;o=new tr(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof tr||(o=new tr(o,this.options)),this.major<o.major?-1:this.major>o.major?1:this.minor<o.minor?-1:this.minor>o.minor?1:this.patch<o.patch?-1:this.patch>o.patch?1:0}comparePre(o){if(o instanceof tr||(o=new tr(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],p=o.prerelease[c];if(r("prerelease compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return l(d,p)}while(++c)}compareBuild(o){o instanceof tr||(o=new tr(o,this.options));let c=0;do{const d=this.build[c],p=o.build[c];if(r("build compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return l(d,p)}while(++c)}inc(o,c,d){if(o.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const p=`-${c}`.match(this.options.loose?h[a.PRERELEASELOOSE]:h[a.PRERELEASE]);if(!p||p[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(c){let g=[c,p];d===!1&&(g=[c]),l(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=u})),bi=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a=!1)=>{if(s instanceof r)return s;try{return new r(s,h)}catch(n){if(!a)return null;throw n}};t.exports=i})),z_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,h);return a?a.version:null};t.exports=i})),G_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s.trim().replace(/^[=v]+/,""),h);return a?a.version:null};t.exports=i})),J_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a,n,l)=>{typeof a=="string"&&(l=n,n=a,a=void 0);try{return new r(s instanceof r?s.version:s,a).inc(h,n,l).version}catch{return null}};t.exports=i})),nf=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,null,!0),n=r(h,null,!0),l=a.compare(n);if(l===0)return null;const u=l>0,f=u?a:n,o=u?n:a,c=!!f.prerelease.length;if(o.prerelease.length&&!c){if(!o.patch&&!o.minor)return"major";if(o.compareMain(f)===0)return o.minor&&!o.patch?"minor":"patch"}const d=c?"pre":"";return a.major!==n.major?d+"major":a.minor!==n.minor?d+"minor":a.patch!==n.patch?d+"patch":"prerelease"};t.exports=i})),W_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).major;t.exports=i})),V_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).minor;t.exports=i})),Y_=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h)=>new r(s,h).patch;t.exports=i})),K_=I.__commonJSMin(((e,t)=>{var r=bi(),i=(s,h)=>{const a=r(s,h);return a&&a.prerelease.length?a.prerelease:null};t.exports=i})),Zt=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a)=>new r(s,a).compare(new r(h,a));t.exports=i})),Z_=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(h,s,a);t.exports=i})),X_=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h)=>r(s,h,!0);t.exports=i})),Su=I.__commonJSMin(((e,t)=>{var r=$t(),i=(s,h,a)=>{const n=new r(s,a),l=new r(h,a);return n.compare(l)||n.compareBuild(l)};t.exports=i})),Q_=I.__commonJSMin(((e,t)=>{var r=Su(),i=(s,h)=>s.sort((a,n)=>r(a,n,h));t.exports=i})),e1=I.__commonJSMin(((e,t)=>{var r=Su(),i=(s,h)=>s.sort((a,n)=>r(n,a,h));t.exports=i})),an=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)>0;t.exports=i})),Du=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)<0;t.exports=i})),sf=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)===0;t.exports=i})),af=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)!==0;t.exports=i})),Au=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)>=0;t.exports=i})),Cu=I.__commonJSMin(((e,t)=>{var r=Zt(),i=(s,h,a)=>r(s,h,a)<=0;t.exports=i})),of=I.__commonJSMin(((e,t)=>{var r=sf(),i=af(),s=an(),h=Au(),a=Du(),n=Cu(),l=(u,f,o,c)=>{switch(f){case"===":return typeof u=="object"&&(u=u.version),typeof o=="object"&&(o=o.version),u===o;case"!==":return typeof u=="object"&&(u=u.version),typeof o=="object"&&(o=o.version),u!==o;case"":case"=":case"==":return r(u,o,c);case"!=":return i(u,o,c);case">":return s(u,o,c);case">=":return h(u,o,c);case"<":return a(u,o,c);case"<=":return n(u,o,c);default:throw new TypeError(`Invalid operator: ${f}`)}};t.exports=l})),t1=I.__commonJSMin(((e,t)=>{var r=$t(),i=bi(),{safeRe:s,t:h}=sn(),a=(n,l)=>{if(n instanceof r)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;l=l||{};let u=null;if(!l.rtl)u=n.match(l.includePrerelease?s[h.COERCEFULL]:s[h.COERCE]);else{const o=l.includePrerelease?s[h.COERCERTLFULL]:s[h.COERCERTL];let c;for(;(c=o.exec(n))&&(!u||u.index+u[0].length!==n.length);)(!u||c.index+c[0].length!==u.index+u[0].length)&&(u=c),o.lastIndex=c.index+c[1].length+c[2].length;o.lastIndex=-1}if(u===null)return null;const f=u[2];return i(`${f}.${u[3]||"0"}.${u[4]||"0"}${l.includePrerelease&&u[5]?`-${u[5]}`:""}${l.includePrerelease&&u[6]?`+${u[6]}`:""}`,l)};t.exports=a})),r1=I.__commonJSMin(((e,t)=>{var r=class{constructor(){this.max=1e3,this.map=new Map}get(i){const s=this.map.get(i);if(s!==void 0)return this.map.delete(i),this.map.set(i,s),s}delete(i){return this.map.delete(i)}set(i,s){if(!this.delete(i)&&s!==void 0){if(this.map.size>=this.max){const h=this.map.keys().next().value;this.delete(h)}this.map.set(i,s)}return this}};t.exports=r})),Xt=I.__commonJSMin(((e,t)=>{var r=/\s+/g,i=class $n{constructor(L,N){if(N=h(N),L instanceof $n)return L.loose===!!N.loose&&L.includePrerelease===!!N.includePrerelease?L:new $n(L.raw,N);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.formatted=void 0,this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=L.trim().replace(r," "),this.set=this.raw.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(J=>!m(J[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const J of this.set)if(J.length===1&&v(J[0])){this.set=[J];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let L=0;L<this.set.length;L++){L>0&&(this.formatted+="||");const N=this.set[L];for(let q=0;q<N.length;q++)q>0&&(this.formatted+=" "),this.formatted+=N[q].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(L){const N=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+L,q=s.get(N);if(q)return q;const J=this.options.loose,P=J?u[f.HYPHENRANGELOOSE]:u[f.HYPHENRANGE];L=L.replace(P,z(this.options.includePrerelease)),n("hyphen replace",L),L=L.replace(u[f.COMPARATORTRIM],o),n("comparator trim",L),L=L.replace(u[f.TILDETRIM],c),n("tilde trim",L),L=L.replace(u[f.CARETTRIM],d),n("caret trim",L);let B=L.split(" ").map(Y=>w(Y,this.options)).join(" ").split(/\s+/).map(Y=>$(Y,this.options));J&&(B=B.filter(Y=>(n("loose invalid filter",Y,this.options),!!Y.match(u[f.COMPARATORLOOSE])))),n("range list",B);const F=new Map,O=B.map(Y=>new a(Y,this.options));for(const Y of O){if(m(Y))return[Y];F.set(Y.value,Y)}F.size>1&&F.has("")&&F.delete("");const x=[...F.values()];return s.set(N,x),x}intersects(L,N){if(!(L instanceof $n))throw new TypeError("a Range is required");return this.set.some(q=>y(q,N)&&L.set.some(J=>y(J,N)&&q.every(P=>J.every(B=>P.intersects(B,N)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new l(L,this.options)}catch{return!1}for(let N=0;N<this.set.length;N++)if(V(this.set[N],L,this.options))return!0;return!1}};t.exports=i;var s=new(r1()),h=wu(),a=_s(),n=ys(),l=$t(),{safeRe:u,t:f,comparatorTrimReplace:o,tildeTrimReplace:c,caretTrimReplace:d}=sn(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=vs(),m=H=>H.value==="<0.0.0-0",v=H=>H.value==="",y=(H,L)=>{let N=!0;const q=H.slice();let J=q.pop();for(;N&&q.length;)N=q.every(P=>J.intersects(P,L)),J=q.pop();return N},w=(H,L)=>(H=H.replace(u[f.BUILD],""),n("comp",H,L),H=S(H,L),n("caret",H),H=b(H,L),n("tildes",H),H=C(H,L),n("xrange",H),H=U(H,L),n("stars",H),H),_=H=>!H||H.toLowerCase()==="x"||H==="*",b=(H,L)=>H.trim().split(/\s+/).map(N=>E(N,L)).join(" "),E=(H,L)=>{const N=L.loose?u[f.TILDELOOSE]:u[f.TILDE];return H.replace(N,(q,J,P,B,F)=>{n("tilde",H,q,J,P,B,F);let O;return _(J)?O="":_(P)?O=`>=${J}.0.0 <${+J+1}.0.0-0`:_(B)?O=`>=${J}.${P}.0 <${J}.${+P+1}.0-0`:F?(n("replaceTilde pr",F),O=`>=${J}.${P}.${B}-${F} <${J}.${+P+1}.0-0`):O=`>=${J}.${P}.${B} <${J}.${+P+1}.0-0`,n("tilde return",O),O})},S=(H,L)=>H.trim().split(/\s+/).map(N=>A(N,L)).join(" "),A=(H,L)=>{n("caret",H,L);const N=L.loose?u[f.CARETLOOSE]:u[f.CARET],q=L.includePrerelease?"-0":"";return H.replace(N,(J,P,B,F,O)=>{n("caret",H,J,P,B,F,O);let x;return _(P)?x="":_(B)?x=`>=${P}.0.0${q} <${+P+1}.0.0-0`:_(F)?P==="0"?x=`>=${P}.${B}.0${q} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.0${q} <${+P+1}.0.0-0`:O?(n("replaceCaret pr",O),P==="0"?B==="0"?x=`>=${P}.${B}.${F}-${O} <${P}.${B}.${+F+1}-0`:x=`>=${P}.${B}.${F}-${O} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.${F}-${O} <${+P+1}.0.0-0`):(n("no pr"),P==="0"?B==="0"?x=`>=${P}.${B}.${F}${q} <${P}.${B}.${+F+1}-0`:x=`>=${P}.${B}.${F}${q} <${P}.${+B+1}.0-0`:x=`>=${P}.${B}.${F} <${+P+1}.0.0-0`),n("caret return",x),x})},C=(H,L)=>(n("replaceXRanges",H,L),H.split(/\s+/).map(N=>T(N,L)).join(" ")),T=(H,L)=>{H=H.trim();const N=L.loose?u[f.XRANGELOOSE]:u[f.XRANGE];return H.replace(N,(q,J,P,B,F,O)=>{n("xRange",H,q,J,P,B,F,O);const x=_(P),Y=x||_(B),oe=Y||_(F),pe=oe;return J==="="&&pe&&(J=""),O=L.includePrerelease?"-0":"",x?J===">"||J==="<"?q="<0.0.0-0":q="*":J&&pe?(Y&&(B=0),F=0,J===">"?(J=">=",Y?(P=+P+1,B=0,F=0):(B=+B+1,F=0)):J==="<="&&(J="<",Y?P=+P+1:B=+B+1),J==="<"&&(O="-0"),q=`${J+P}.${B}.${F}${O}`):Y?q=`>=${P}.0.0${O} <${+P+1}.0.0-0`:oe&&(q=`>=${P}.${B}.0${O} <${P}.${+B+1}.0-0`),n("xRange return",q),q})},U=(H,L)=>(n("replaceStars",H,L),H.trim().replace(u[f.STAR],"")),$=(H,L)=>(n("replaceGTE0",H,L),H.trim().replace(u[L.includePrerelease?f.GTE0PRE:f.GTE0],"")),z=H=>(L,N,q,J,P,B,F,O,x,Y,oe,pe)=>(_(q)?N="":_(J)?N=`>=${q}.0.0${H?"-0":""}`:_(P)?N=`>=${q}.${J}.0${H?"-0":""}`:B?N=`>=${N}`:N=`>=${N}${H?"-0":""}`,_(x)?O="":_(Y)?O=`<${+x+1}.0.0-0`:_(oe)?O=`<${x}.${+Y+1}.0-0`:pe?O=`<=${x}.${Y}.${oe}-${pe}`:H?O=`<${x}.${Y}.${+oe+1}-0`:O=`<=${O}`,`${N} ${O}`.trim()),V=(H,L,N)=>{for(let q=0;q<H.length;q++)if(!H[q].test(L))return!1;if(L.prerelease.length&&!N.includePrerelease){for(let q=0;q<H.length;q++)if(n(H[q].semver),H[q].semver!==a.ANY&&H[q].semver.prerelease.length>0){const J=H[q].semver;if(J.major===L.major&&J.minor===L.minor&&J.patch===L.patch)return!0}return!1}return!0}})),_s=I.__commonJSMin(((e,t)=>{var r=Symbol("SemVer ANY"),i=class Ta{static get ANY(){return r}constructor(c,d){if(d=s(d),c instanceof Ta){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),l("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(c){const d=this.options.loose?h[a.COMPARATORLOOSE]:h[a.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new u(p[2],this.options.loose):this.semver=r}toString(){return this.value}test(c){if(l("Comparator.test",c,this.options.loose),this.semver===r||c===r)return!0;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}return n(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof Ta))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new f(this.value,d).test(c.semver):(d=s(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||n(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||n(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}};t.exports=i;var s=wu(),{safeRe:h,t:a}=sn(),n=of(),l=ys(),u=$t(),f=Xt()})),Es=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h,a)=>{try{h=new r(h,a)}catch{return!1}return h.test(s)};t.exports=i})),i1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h)=>new r(s,h).set.map(a=>a.map(n=>n.value).join(" ").trim().split(" "));t.exports=i})),n1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=(h,a,n)=>{let l=null,u=null,f=null;try{f=new i(a,n)}catch{return null}return h.forEach(o=>{f.test(o)&&(!l||u.compare(o)===-1)&&(l=o,u=new r(l,n))}),l};t.exports=s})),s1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=(h,a,n)=>{let l=null,u=null,f=null;try{f=new i(a,n)}catch{return null}return h.forEach(o=>{f.test(o)&&(!l||u.compare(o)===1)&&(l=o,u=new r(l,n))}),l};t.exports=s})),a1=I.__commonJSMin(((e,t)=>{var r=$t(),i=Xt(),s=an(),h=(a,n)=>{a=new i(a,n);let l=new r("0.0.0");if(a.test(l)||(l=new r("0.0.0-0"),a.test(l)))return l;l=null;for(let u=0;u<a.set.length;++u){const f=a.set[u];let o=null;f.forEach(c=>{const d=new r(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!o||s(d,o))&&(o=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),o&&(!l||s(l,o))&&(l=o)}return l&&a.test(l)?l:null};t.exports=h})),o1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h)=>{try{return new r(s,h).range||"*"}catch{return null}};t.exports=i})),Tu=I.__commonJSMin(((e,t)=>{var r=$t(),i=_s(),{ANY:s}=i,h=Xt(),a=Es(),n=an(),l=Du(),u=Cu(),f=Au(),o=(c,d,p,g)=>{c=new r(c,g),d=new h(d,g);let m,v,y,w,_;switch(p){case">":m=n,v=u,y=l,w=">",_=">=";break;case"<":m=l,v=f,y=n,w="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(c,d,g))return!1;for(let b=0;b<d.set.length;++b){const E=d.set[b];let S=null,A=null;if(E.forEach(C=>{C.semver===s&&(C=new i(">=0.0.0")),S=S||C,A=A||C,m(C.semver,S.semver,g)?S=C:y(C.semver,A.semver,g)&&(A=C)}),S.operator===w||S.operator===_||(!A.operator||A.operator===w)&&v(c,A.semver))return!1;if(A.operator===_&&y(c,A.semver))return!1}return!0};t.exports=o})),u1=I.__commonJSMin(((e,t)=>{var r=Tu(),i=(s,h,a)=>r(s,h,">",a);t.exports=i})),l1=I.__commonJSMin(((e,t)=>{var r=Tu(),i=(s,h,a)=>r(s,h,"<",a);t.exports=i})),c1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=(s,h,a)=>(s=new r(s,a),h=new r(h,a),s.intersects(h,a));t.exports=i})),h1=I.__commonJSMin(((e,t)=>{var r=Es(),i=Zt();t.exports=(s,h,a)=>{const n=[];let l=null,u=null;const f=s.sort((p,g)=>i(p,g,a));for(const p of f)r(p,h,a)?(u=p,l||(l=p)):(u&&n.push([l,u]),u=null,l=null);l&&n.push([l,null]);const o=[];for(const[p,g]of n)p===g?o.push(p):!g&&p===f[0]?o.push("*"):g?p===f[0]?o.push(`<=${g}`):o.push(`${p} - ${g}`):o.push(`>=${p}`);const c=o.join(" || "),d=typeof h.raw=="string"?h.raw:String(h);return c.length<d.length?c:h}})),f1=I.__commonJSMin(((e,t)=>{var r=Xt(),i=_s(),{ANY:s}=i,h=Es(),a=Zt(),n=(d,p,g={})=>{if(d===p)return!0;d=new r(d,g),p=new r(p,g);let m=!1;e:for(const v of d.set){for(const y of p.set){const w=f(v,y,g);if(m=m||w!==null,w)continue e}if(m)return!1}return!0},l=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],f=(d,p,g)=>{if(d===p)return!0;if(d.length===1&&d[0].semver===s){if(p.length===1&&p[0].semver===s)return!0;g.includePrerelease?d=l:d=u}if(p.length===1&&p[0].semver===s){if(g.includePrerelease)return!0;p=u}const m=new Set;let v,y;for(const T of d)T.operator===">"||T.operator===">="?v=o(v,T,g):T.operator==="<"||T.operator==="<="?y=c(y,T,g):m.add(T.semver);if(m.size>1)return null;let w;if(v&&y){if(w=a(v.semver,y.semver,g),w>0)return null;if(w===0&&(v.operator!==">="||y.operator!=="<="))return null}for(const T of m){if(v&&!h(T,String(v),g)||y&&!h(T,String(y),g))return null;for(const U of p)if(!h(T,String(U),g))return!1;return!0}let _,b,E,S,A=y&&!g.includePrerelease&&y.semver.prerelease.length?y.semver:!1,C=v&&!g.includePrerelease&&v.semver.prerelease.length?v.semver:!1;A&&A.prerelease.length===1&&y.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(const T of p){if(S=S||T.operator===">"||T.operator===">=",E=E||T.operator==="<"||T.operator==="<=",v){if(C&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===C.major&&T.semver.minor===C.minor&&T.semver.patch===C.patch&&(C=!1),T.operator===">"||T.operator===">="){if(_=o(v,T,g),_===T&&_!==v)return!1}else if(v.operator===">="&&!h(v.semver,String(T),g))return!1}if(y){if(A&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===A.major&&T.semver.minor===A.minor&&T.semver.patch===A.patch&&(A=!1),T.operator==="<"||T.operator==="<="){if(b=c(y,T,g),b===T&&b!==y)return!1}else if(y.operator==="<="&&!h(y.semver,String(T),g))return!1}if(!T.operator&&(y||v)&&w!==0)return!1}return!(v&&E&&!y&&w!==0||y&&S&&!v&&w!==0||C||A)},o=(d,p,g)=>{if(!d)return p;const m=a(d.semver,p.semver,g);return m>0?d:m<0||p.operator===">"&&d.operator===">="?p:d},c=(d,p,g)=>{if(!d)return p;const m=a(d.semver,p.semver,g);return m<0?d:m>0||p.operator==="<"&&d.operator==="<="?p:d};t.exports=n})),bs=I.__commonJSMin(((e,t)=>{var r=sn(),i=vs(),s=$t(),h=rf(),a=bi(),n=z_(),l=G_(),u=J_(),f=nf(),o=W_(),c=V_(),d=Y_(),p=K_(),g=Zt(),m=Z_(),v=X_(),y=Su(),w=Q_(),_=e1(),b=an(),E=Du(),S=sf(),A=af(),C=Au(),T=Cu(),U=of(),$=t1(),z=_s(),V=Xt(),H=Es(),L=i1(),N=n1(),q=s1(),J=a1(),P=o1(),B=Tu(),F=u1(),O=l1(),x=c1(),Y=h1(),oe=f1();t.exports={parse:a,valid:n,clean:l,inc:u,diff:f,major:o,minor:c,patch:d,prerelease:p,compare:g,rcompare:m,compareLoose:v,compareBuild:y,sort:w,rsort:_,gt:b,lt:E,eq:S,neq:A,gte:C,lte:T,cmp:U,coerce:$,Comparator:z,Range:V,satisfies:H,toComparators:L,maxSatisfying:N,minSatisfying:q,minVersion:J,validRange:P,outside:B,gtr:F,ltr:O,intersects:x,simplifyRange:Y,subset:oe,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:h.compareIdentifiers,rcompareIdentifiers:h.rcompareIdentifiers}})),d1=I.__commonJSMin(((e,t)=>{(function(){"use strict";var r=/^v?((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/,i=/\s*((\|\||\-)|(((?:(?:~?[<>]?)|\^?)=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g;function s(f){var o={};for(var c in f)typeof f[c]<"u"&&(o[c]=f[c]);return o}function h(f){var o="";return o+=f.major||"0",o+=".",o+=f.minor||"0",o+=".",o+=f.patch||"0",f.release&&(o+="-"+f.release),f.build&&(o+="+"+f.build),o}function a(f){var o="";function c(d){d.operator&&(o+=d.operator+" "),d.major&&(o+=d.toString()+" ")}return f.forEach(c),o.trim()}function n(f){if(f){var o=this;Object.keys(f).forEach(function(c){o[c]=f[c]})}}n.prototype.toString=function(){return h(this)};function l(f){var o=r.exec(f)||[],c=new n(s({semver:o[0],version:o[1],major:o[2],minor:o[3],patch:o[4],release:o[5],build:o[6]}));return o.length===0&&(c=null),c}function u(f){for(var o,c=[],d;o=i.exec(f);)d={semver:o[3],operator:o[4]||o[2],major:o[6],minor:o[8],patch:o[10]},o[12]==="+"&&(d.build=o[13]),o[12]==="-"&&(d.release=o[13]),c.push(new n(s(d)));return c}t.exports.parse=l,t.exports.stringify=h,t.exports.parseRange=u,t.exports.stringifyRange=a})()})),on=I.__toESM(q_(),1),Je=I.__toESM(bs(),1),Tt=I.__toESM(d1(),1);function ws(e,t){return e?e.map(r=>({item:r,key:t(r)})).sort((r,i)=>r.key>i.key?1:r.key<i.key?-1:0).map(({item:r})=>r):[]}var Ru=["major","minor","patch"],uf=["release","build"],li=[...Ru,...uf],p1={major:"",minor:".",patch:".",release:"-",build:"+"};var lf=["^","~",".*",".x"],m1=new RegExp(`^(${["^","~","^*","*","x","x.x","x.x.x"].map(N_).join("|")})$`),cf=/^npm:(.*)@(.*)/;function g1(e){const[t]=Tt.default.parseRange(e);if(!t)throw new Error(ba.default.format('semverutils.parseRange returned null when trying to parse "%s". This is probably a problem with the "semver-utils" dependency. Please report an issue at https://github.com/raineorshine/npm-check-updates/issues.',e));return li.reduce((r,i)=>t[i]?r+1:r,0)}function gi(e,t){return(t?li.slice(0,li.indexOf(t)+1):li).filter(r=>t&&Ru.includes(t)||e[r]).map(r=>p1[r]+(e[r]||"0")).join("")}function v1(e){const[t]=Tt.default.parseRange(e);return li.slice().reverse().find(tf(t))}function y1(e,t){const[r]=Tt.default.parseRange(e);return gi(r,t)}function _1(e,t){return t==="^"||t==="~"?t+e:y1(e,"major")+t}function Ou(e){return m1.test(e)}function hf(e){return e==="*"||e==="x"}function E1(e,t){if(e===t)return"none";/^[~^]/.test(t)&&t[0]===e[0]&&(t=t.slice(1),e=e.slice(1));const r=t.split("."),i=e.split(".");let s=r.findIndex((h,a)=>h!==i[a]);return s=s>=0?s:r.length,r[0]==="0"?"majorVersionZero":s===0?"major":s===1?"minor":"patch"}function ff(e,t,r){const i=at(e,(h,a,n)=>{const l=t[h],u=E1(l,a),f=r.groupFunction?.(h,u,(0,Tt.parseRange)(l),(0,Tt.parseRange)(a),(0,Tt.parse)(e[h]))??u;return f==="none"?n:{...n,[f]:{...n[f],[h]:a}}}),s={patch:ge.green(ge.bold("Patch")+" Backwards-compatible bug fixes"),minor:ge.cyan(ge.bold("Minor")+" Backwards-compatible features"),major:ge.red(ge.bold("Major")+" Potentially breaking API changes"),majorVersionZero:ge.magenta(ge.bold("Major version zero")+" Anything may change")};return Array.from(new Set(["patch","minor","major","majorVersionZero",...Object.keys(i).sort()])).filter(h=>h in i).map(h=>({groupName:h,heading:h in s?s[h]:h,packages:i[h]}))}function Iu(e,t){let r="";/^[~^]/.test(t)&&t[0]===e[0]&&(r=t[0],t=t.slice(1),e=e.slice(1));const i=t.split("."),s=e.split(".");let h=i.findIndex((l,u)=>l!==s[u]);h=h>=0?h:i.length;const a=h===0||i[0]==="0"?"red":h===1?"cyan":"green",n=h>0&&h<i.length?".":"";return r+i.slice(0,h).join(".")+n+ge[a](i.slice(h).join("."))}var dc=e=>{const t=Je.default.prerelease(e);return t&&t.slice(0,-1).join(".")};function b1(e,t){const r=dc(e),i=dc(t);return typeof r!="string"||typeof i!="string"||r===i}function ku(e,t){return(Je.default.valid(e)&&Je.default.valid(t)?Je.default.gt(e,t):e>t)?1:e===t?0:-1}function Lu(e,t,r){if(!Je.default.validRange(t))return null;const i=Je.default.minVersion(t);return[...e].sort(ku).filter(s=>{const h=Je.default.parse(s);return h&&(r==="major"||h.major===i?.major)&&(r==="major"||r==="minor"||h.minor===i?.minor)}).at(-1)||null}function un(e){return v1(e)==="release"}var df=e=>/^[vV]?\d+$/.test(e),pf=e=>/^[vV]?\d+\.\d+$/.test(e),w1=e=>e.replace(/^[vV]/,""),S1=e=>df(e)?e+".0.0":e,D1=e=>pf(e)?e+".0":e,Fu=e=>D1(S1(w1(e)));function mf(e){return e&&(e[0]==="v"||e[1]==="v")?"v":""}var gf=(e,t)=>`npm:${e}@${t}`,Wi=e=>{const t=e&&e.match&&e.match(cf);return t&&t.slice(1)},Bn=e=>e&&!!e.match(cf),A1=(e,t)=>{const r=Wi(e);return r?gf(r[0],t):null},Ui=e=>{if(!e)return!1;let t=null;try{t=(0,on.default)(e)}catch{}if(!t||!t.branch)return!1;const r=decodeURIComponent(t.branch).replace(/^semver:/,"");return!!Je.default.validRange(r)},Ra=e=>{if(!e)return null;const t=(0,on.default)(e);if(!t||!t.branch)return null;const r=decodeURIComponent(t.branch).replace(/^semver:/,"");return t&&t.branch&&Je.default.validRange(r)?r:null};function vf(e,t,r={}){if(r.wildcard=r.wildcard||"^",!t)return e;const[i]=Tt.default.parseRange(t);if(!i)return e;if(r.removeRange)return t;if(Ou(e))return e;const s=ws(Tt.default.parseRange(e).filter(g=>g.operator!=="||"&&g.operator!=="-"),g=>g1(gi(g))),[h]=s;function a(g){return(hf(h[g])?h[g]:Ru.includes(g)&&h[g]||uf.includes(g)?i[g]:null)||null}const n=gi(at(li,g=>({[g]:a(g)}))),l=mf(h.semver)+n,u=Array.from(new Set(s.map(g=>g.operator))),f=u[0]||"",o=lf.some(g=>n.includes(g)),c=u[0]==="<"||u[0]==="<=",d=u[0]===">",p=u.length>1;return!o&&(c||p)?_1(l,r.wildcard):(d?">=":f)+l}var C1=(e,t)=>{const r=mf(e);let i=r?r+t:t;return i=df(e)?i.slice(0,i.length-4):i,i=pf(e)?i.slice(0,i.length-2):i,i},Ss=(e,t)=>{const r=Fu(t),i=(0,on.default)(e);if(!i)return e;const s=decodeURIComponent(i.branch).replace(/^semver:/,"");return e.replace(s,vf(s,C1(s,r)))},pc={silent:0,error:1,minimal:2,warn:3,info:4,verbose:5,silly:6},T1=e=>!e.startsWith("file:")&&!e.startsWith("link:")&&!e.startsWith("workspace:")&&!e.startsWith("catalog:")&&!/^[^/:@]+\/\w+/.test(e);function Me(e,t,r=null,i="log"){!e.json&&e.loglevel!=="silent"&&(r==null||pc[e.loglevel??"warn"]>=pc[r])&&console[i](t)}function Nu(e,t){e.loglevel!=="silent"&&console.log(JSON.stringify(t,null,2))}function R1(e,t){console.log(Object.keys(e).map(r=>r+"@"+e[r]).join(t))}function dr(e,t,r){Me(e,Object.keys(t).sort().reduce((i,s)=>(i[s]=t[s],i),{}),r)}function xu(e){const t=new cu.default({colAligns:["left","right","right","right","left","left"],chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}});return t.push(...e),t.toString().split(`
|
|
61
61
|
`).map(r=>r.trimEnd()).join(`
|
|
62
62
|
`)}function mc(e){return Ui(e)?Ra(e):Bn(e)?Wi(e)[1]:e}async function Oa({from:e,to:t,format:r,ownersChangedDeps:i,pkgFile:s,time:h}){const a=r?.includes("dep")&&s?JSON.parse(await tt.default.readFile(s,"utf-8")):null;return xu(await Promise.all(Object.keys(t).sort().map(async n=>{const l=(r?.includes("installedVersion")?await K0(n,void 0,{pkgFile:s}):e[n])||"",u=n in(a?.devDependencies??{})?"dev":n in(a?.peerDependencies??{})?"peer":n in(a?.optionalDependencies??{})?"optional":"",f=mc(t[n]||""),o=i?n in i?i[n]?"*owner changed*":"":"*unknown*":"",c=Iu(mc(l),f),d=r?.includes("homepage")&&(await fu(n,{pkgFile:s}))?.homepage||"",p=r?.includes("repo")&&await tv(n,void 0,{pkgFile:s})||"",g=r?.includes("diff")?`${process.env.NCU_DIFF||"https://npmdiff.dev"}/${encodeURIComponent(n)}/${l.replace(/^\W+/,"")}/${f.replace(/^\W+/,"")}`:"",m=r?.includes("time")&&h?.[n]?h[n]:"";return[n,...r?.includes("dep")?[u?ge.gray(u):""]:[],l,"→",c,o,...[d,p,g,m].filter(v=>v)]})))}async function O1({current:e,upgraded:t,ownersChangedDeps:r,pkgFile:i,time:s},h){if(h.format?.includes("group")){const a=ff(t,e,h);for(const{heading:n,packages:l}of a)Me(h,`
|
|
63
63
|
`+n),Me(h,await Oa({from:e,to:l,format:h.format,ownersChangedDeps:r,pkgFile:i,time:s}))}else h.format?.includes("lines")?R1(t,`
|
|
@@ -66,7 +66,7 @@ Filtered results for: ${this.inputValue?this.inputValue:r.gray("Enter something
|
|
|
66
66
|
Ignored incompatible updates (peer dependencies):
|
|
67
67
|
`),Me(e,xu(Object.entries(t).map(([r,{from:i,to:s,reason:h}])=>{const a="reason: "+Object.entries(h).map(([n,l])=>n+" requires "+l).join(", ");return[r,i,"→",Iu(i,s),a]})))}function L1(e,t){Me(e,`
|
|
68
68
|
Ignored incompatible updates (engines node):
|
|
69
|
-
`),Me(e,xu(Object.entries(t).map(([r,{from:i,to:s,enginesNode:h}])=>[r,i,"→",Iu(i,s),`reason: requires node ${h}`])))}function F1(e,t=10){return typeof e.timestamp!="number"?!1:e.timestamp+t*(60*1e3)<Date.now()}var yf=".ncu-cache.json",Ia=`~/${yf}`,N1=
|
|
69
|
+
`),Me(e,xu(Object.entries(t).map(([r,{from:i,to:s,enginesNode:h}])=>[r,i,"→",Iu(i,s),`reason: requires node ${h}`])))}function F1(e,t=10){return typeof e.timestamp!="number"?!1:e.timestamp+t*(60*1e3)<Date.now()}var yf=".ncu-cache.json",Ia=`~/${yf}`,N1=We.default.join(gr.default.homedir(),yf);function _f(e){return e===Ia?N1:e}async function x1(e){e.cacheFile&&await pr.default.promises.rm(_f(e.cacheFile),{force:!0})}async function $1(e){if(!e.cache||!e.cacheFile)return;const t=_f(e.cacheFile);let r={};const i=new Set;try{r=JSON.parse(await pr.default.promises.readFile(t,"utf-8")),F1(r,e.cacheExpiration)&&(pr.default.promises.rm(t,{force:!0}),r={})}catch{}return typeof r.timestamp!="number"&&(r.timestamp=Date.now()),r.packages||(r.packages={}),r.peers||(r.peers={}),{get:(s,h)=>{if(!r.packages)return;const a=`${s}___${h}`,n=r.packages[a];return n&&!a.includes(n)&&i.add(s),n},set:(s,h,a)=>{if(!r.packages)return;const n=`${s}___${h}`;r.packages[n]=a},getPeers:(s,h)=>{if(!r.peers)return;const a=`${s}___${h}`,n=r.peers[a];return n&&i.add(s),n},setPeers:(s,h,a)=>{const n=`${s}___${h}`;r.peers&&(r.peers[n]=a)},save:async()=>{await pr.default.promises.writeFile(t,JSON.stringify(r))},log:s=>{const h=i.size;h!==0&&(Me(e,`
|
|
70
70
|
Using ${h} cached package ${s?"peer":"version"}${h>1?"s":""}`,"warn"),Me(e,i,"verbose"),i.clear())}}}function Yn(e){const t=e.match(/^(\d+(?:\.\d+)?)(d|h|m)$/);if(!t)return null;const r=parseFloat(t[1]),i=t[2];return i==="d"?r:i==="h"?r/24:r/1440}var B1=(e,t=92)=>{const r=e.split(`
|
|
71
71
|
`),i=[];return r.forEach(s=>{let h=0;if(s.length===0){i.push("");return}for(;h<s.length;){const a=s.slice(h,h+t+1),n=a.trimEnd();if(n.length<=t){i.push(n);break}const l=a.split("").reverse().join("").match(/[ -][^\W]/)?.index||0,u=a.slice(0,a.length-l);if(u.length===0)break;i.push(u.trimEnd()),h+=u.length}}),i.join(`
|
|
72
72
|
`).trim()},M1=e=>e.map(([t,r])=>[t,B1(r)]),P1=e=>`
|
|
@@ -420,7 +420,7 @@ ${Gt(`${ge.gray(`/** Set cooldown to 3 days but skip it for \`@my-company\` pack
|
|
|
420
420
|
@returns Cooldown days restriction for given package.
|
|
421
421
|
*/`)}
|
|
422
422
|
${ge.green("cooldown")}: packageName ${ge.cyan("=>")} (packageName.startsWith(${ge.yellow("'@my-company'")}) ? ${ge.cyan("0")} : ${ge.cyan("3")})`,{markdown:e})}
|
|
423
|
-
`,Ef=[{long:"cache",description:`Cache versions to a local cache file. Default \`--cacheFile\` is ${Ia} and default \`--cacheExpiration\` is 10 minutes.`,type:"boolean"},{long:"cacheClear",description:"Clear the default cache, or the cache file specified by `--cacheFile`.",type:"boolean"},{long:"cacheExpiration",arg:"min",description:"Cache expiration in minutes. Only works with `--cache`.",parse:Oi("cacheExpiration"),default:10,type:"number"},{long:"cacheFile",arg:"path",description:"Filepath for the cache file. Only works with `--cache`.",parse:e=>{if(typeof e!="string")throw new Error("cacheFile must be a string");return Je.default.isAbsolute(e)?e:Je.default.join(process.cwd(),e)},default:Ia,type:"string"},{long:"color",description:"Force color in terminal.",type:"boolean"},{long:"concurrency",arg:"n",description:"Max number of concurrent HTTP requests to registry.",parse:Oi("concurrency"),default:8,type:"number"},{long:"configFileName",arg:"s",description:"Config file name. (default: .ncurc.{json,yml,js,cjs})",type:"string"},{long:"configFilePath",arg:"path",description:"Directory of .ncurc config file. (default: directory of `packageFile`)",type:"string"},{long:"cwd",arg:"path",description:"Working directory in which npm will be executed.",type:"string"},{long:"deep",description:"Run recursively in current working directory. Alias of (`--packageFile '**/package.json'`).",type:"boolean"},{long:"dep",arg:"value",description:"Check one or more sections of dependencies only: dev, optional, peer, prod, or packageManager (comma-delimited).",default:["prod","dev","optional","packageManager"],parse:e=>e&&typeof e=="string"?e.split(","):e,type:"string | readonly string[]"},{long:"deprecated",default:!0,description:"Include deprecated packages. Use `--no-deprecated` to exclude deprecated packages (20–25% slower).",type:"boolean"},{long:"doctor",short:"d",description:"Iteratively installs upgrades and runs tests to identify breaking upgrades. Requires `-u` to execute.",type:"boolean",help:H1},{long:"doctorInstall",arg:"command",description:"Specifies the install script to use in doctor mode. (default: `npm install` or the equivalent for your package manager)",type:"string"},{long:"doctorTest",arg:"command",description:"Specifies the test script to use in doctor mode. (default: `npm test`)",type:"string"},{long:"enginesNode",description:"Include only packages that satisfy engines.node as specified in the package file.",type:"boolean"},{long:"errorLevel",short:"e",arg:"n",description:"Set the error level. 1: exits with error code 0 if no errors occur. 2: exits with error code 0 if no packages need updating (useful for continuous integration).",parse:Oi("errorLevel"),default:1,type:"number"},{long:"filter",short:"f",arg:"p",description:"Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:J1},{long:"filterResults",arg:"fn",cli:!1,description:"Filters results based on a user provided predicate function after fetching new versions.",type:"FilterResultsFunction",help:q1},{long:"filterVersion",arg:"p",description:"Filter on package version using comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:W1},{long:"format",arg:"value",description:"Modify the output formatting or show additional information. Specify one or more comma-delimited values: dep, group, ownerChanged, repo, time, lines, installedVersion.",parse:e=>typeof e=="string"?e.split(","):e,default:[],type:"readonly string[]",choices:["dep","group","homepage","ownerChanged","repo","diff","time","lines","installedVersion"],help:z1},{long:"global",short:"g",description:"Check global packages instead of in the current project.",type:"boolean"},{long:"groupFunction",arg:"fn",cli:!1,description:"Customize how packages are divided into groups when using `--format group`.",type:"GroupFunction",help:K1},{long:"install",arg:"value",description:"Control the auto-install behavior: always, never, prompt.",help:G1,default:"prompt",choices:["always","never","prompt"],type:"'always' | 'never' | 'prompt'"},{long:"interactive",short:"i",description:"Enable interactive prompts for each dependency; implies `-u` unless one of the json options are set.",type:"boolean"},{long:"jsonAll",short:"j",description:"Output new package file instead of human-readable message.",type:"boolean"},{long:"jsonDeps",description:"Like `jsonAll` but only lists `dependencies`, `devDependencies`, `optionalDependencies`, etc of the new package data.",type:"boolean"},{long:"jsonUpgraded",description:"Output upgraded dependencies in json.",type:"boolean"},{long:"loglevel",short:"l",arg:"n",description:"Amount to log: silent, error, minimal, warn, info, verbose, silly.",default:"warn",type:"string"},{long:"mergeConfig",description:"Merges nested configs with the root config file for `--deep` or `--packageFile` options. (default: false)",type:"boolean"},{long:"minimal",short:"m",description:"Do not upgrade newer versions that are already satisfied by the version range according to semver.",type:"boolean"},{long:"packageData",arg:"value",description:"Package file data (you can also use stdin).",type:"string | PackageFile"},{long:"packageFile",arg:"path|glob",description:"Package file(s) location. (default: ./package.json)",type:"string"},{long:"packageManager",short:"p",arg:"s",description:"npm, yarn, pnpm, deno, bun, staticRegistry (default: npm).",help:X1,type:"'npm' | 'yarn' | 'pnpm' | 'deno' | 'bun' | 'staticRegistry'"},{long:"peer",description:"Check peer dependencies of installed packages and filter updates to compatible versions.",type:"boolean",help:eE},{long:"pre",arg:"n",description:"Include prerelease versions, e.g. -alpha.0, -beta.5, -rc.2. Automatically set to 1 when `--target` is newest or greatest, or when the current version is a prerelease. (default: 0)",parse:e=>{if(typeof e=="number")return!!e;if(typeof e=="string")return!!parseInt(e,10);throw new Error("pre must be a number")},type:"number"},{long:"prefix",arg:"path",description:"Current working directory of npm.",type:"string"},{long:"registry",short:"r",arg:"uri",description:"Specify the registry to use when looking up package versions.",type:"string"},{long:"registryType",arg:"type",description:"Specify whether --registry refers to a full npm registry or a simple JSON file or url: npm, json. (default: npm)",help:Q1,type:"'npm' | 'json'"},{long:"reject",short:"x",arg:"p",description:"Exclude packages matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:V1},{long:"rejectVersion",arg:"p",description:"Exclude package.json versions using comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:Y1},{long:"removeRange",description:"Remove version ranges from the final package version.",type:"boolean"},{long:"root",default:!0,description:"Runs updates on the root project in addition to specified workspaces. Only allowed with `--workspace` or `--workspaces`.",type:"boolean"},{long:"retry",arg:"n",description:"Number of times to retry failed requests for package info.",parse:Oi("retry"),default:3,type:"number"},{long:"silent",short:"s",description:"Don't output anything. Alias for `--loglevel` silent.",type:"boolean"},{long:"stdin",description:"Read package.json from stdin.",type:"string"},{long:"target",short:"t",arg:"value",description:"Determines the version to upgrade to: latest, newest, greatest, minor, patch, semver, `@[tag]`, or [function]. (default: latest)",help:Z1,type:`${j1.map(e=>`'${e}'`).join(" | ")} | \`@\${string}\` | TargetFunction`},{long:"timeout",arg:"ms",description:"Global timeout in milliseconds. (default: no global timeout and 30 seconds per npm-registry-fetch)",parse:Oi("timeout"),type:"number"},{long:"upgrade",short:"u",description:"Overwrite package file with upgraded versions instead of just outputting to console.",type:"boolean"},{long:"verbose",description:"Log additional information for debugging. Alias for `--loglevel` verbose.",type:"boolean"},{long:"workspace",arg:"s",parse:(e,t)=>[...t,e],default:[],description:"Run on one or more specified workspaces. Add `--no-root` to exclude the root project.",type:"readonly string[]"},{long:"workspaces",short:"w",description:"Run on all workspaces. Add `--no-root` to exclude the root project.",type:"boolean"},{long:"cooldown",short:"c",arg:"period",description:'Sets a minimum age for package versions to be considered for upgrade. Accepts a number (days) or a string with a unit: "7d" (days), "12h" (hours), "30m" (minutes). Reduces the risk of installing newly published, potentially compromised packages.',type:"number | string | CooldownFunction",help:tE,parse:e=>{if(typeof e=="number"||typeof e=="function")return e;if(typeof e=="string"){const t=Yn(e);return t!==null?t:parseInt(e,10)}else throw new Error("cooldown must be a number, string, or function")}}],Nr=Ef.reduce((e,t)=>({...e,...t.short?{[t.short]:t}:null,...t.long?{[t.long]:t}:null}),{}),Mn=ws(Ef,e=>e.long),rE=["package-lock.json","yarn.lock","pnpm-lock.yaml","deno.json","deno.jsonc","bun.lock","bun.lockb"];async function bf(e,t=tt.default.readdir){try{const r=gr.default.homedir(),i=gr.default.tmpdir();let s=e.cwd?e.cwd:e.packageFile?Je.default.dirname(e.packageFile):".";for(s=Je.default.resolve(s);;){const h=await t(s);for(const n of rE)if(h.includes(n))return{directoryPath:s,filename:n};const a=Je.default.resolve(s,"..");if(a===s||a===r||a===i)break;s=a}}catch{}return null}var Xr=(0,st.dirname)((0,au.fileURLToPath)(require("url").pathToFileURL(__filename).href)),iE={"package-lock":"npm",yarn:"yarn","pnpm-lock":"pnpm",deno:"deno",bun:"bun"},nE=()=>{const e=process.env.npm_config_user_agent??"",t=process.env.npm_execpath??"";return e.startsWith("yarn/")||t.includes("yarn")||Xr.includes("/yarn/")||Xr.includes("\\Yarn\\")?"yarn":e.startsWith("pnpm/")||t.includes("pnpm")||Xr.includes("/pnpm/")||Xr.includes("\\pnpm\\")?"pnpm":e.startsWith("bun/")||typeof Bun<"u"||process.versions.bun||Xr.includes("/.bun/")||Xr.includes("\\.bun\\")?"bun":"npm"},ka=async(e,t=tt.default.readdir)=>{if(e.packageManager)return e.packageManager;if(e.global)return nE();const r=(await bf(e,t))?.filename;return r?iE[r.split(".")[0]]:"npm"},sE=I.__commonJSMin(((e,t)=>{t.exports=h,h.sync=a;var r=require("fs");function i(n,l){var u=l.pathExt!==void 0?l.pathExt:process.env.PATHEXT;if(!u||(u=u.split(";"),u.indexOf("")!==-1))return!0;for(var f=0;f<u.length;f++){var o=u[f].toLowerCase();if(o&&n.substr(-o.length).toLowerCase()===o)return!0}return!1}function s(n,l,u){return!n.isSymbolicLink()&&!n.isFile()?!1:i(l,u)}function h(n,l,u){r.stat(n,function(f,o){u(f,f?!1:s(o,n,l))})}function a(n,l){return s(r.statSync(n),n,l)}})),aE=I.__commonJSMin(((e,t)=>{t.exports=i,i.sync=s;var r=require("fs");function i(n,l,u){r.stat(n,function(f,o){u(f,f?!1:h(o,l))})}function s(n,l){return h(r.statSync(n),l)}function h(n,l){return n.isFile()&&a(n,l)}function a(n,l){var u=n.mode,f=n.uid,o=n.gid,c=l.uid!==void 0?l.uid:process.getuid&&process.getuid(),d=l.gid!==void 0?l.gid:process.getgid&&process.getgid(),p=parseInt("100",8),g=parseInt("010",8),m=parseInt("001",8),v=p|g;return u&m||u&g&&o===d||u&p&&f===c||u&v&&c===0}})),oE=I.__commonJSMin(((e,t)=>{require("fs");var r;process.platform==="win32"||global.TESTING_WINDOWS?r=sE():r=aE(),t.exports=i,i.sync=s;function i(h,a,n){if(typeof a=="function"&&(n=a,a={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,u){i(h,a||{},function(f,o){f?u(f):l(o)})})}r(h,a||{},function(l,u){l&&(l.code==="EACCES"||a&&a.ignoreErrors)&&(l=null,u=!1),n(l,u)})}function s(h,a){try{return r.sync(h,a||{})}catch(n){if(a&&a.ignoreErrors||n.code==="EACCES")return!1;throw n}}})),uE=I.__commonJSMin(((e,t)=>{var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=require("path"),s=r?";":":",h=oE(),a=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),n=(f,o)=>{const c=o.colon||s,d=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(c)],p=r?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?p.split(c):[""];return r&&f.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:p}},l=(f,o,c)=>{typeof o=="function"&&(c=o,o={}),o||(o={});const{pathEnv:d,pathExt:p,pathExtExe:g}=n(f,o),m=[],v=w=>new Promise((_,b)=>{if(w===d.length)return o.all&&m.length?_(m):b(a(f));const E=d[w],S=/^".*"$/.test(E)?E.slice(1,-1):E,A=i.join(S,f);_(y(!S&&/^\.[\\\/]/.test(f)?f.slice(0,2)+A:A,w,0))}),y=(w,_,b)=>new Promise((E,S)=>{if(b===p.length)return E(v(_+1));const A=p[b];h(w+A,{pathExt:g},(C,T)=>{if(!C&&T)if(o.all)m.push(w+A);else return E(w+A);return E(y(w,_,b+1))})});return c?v(0).then(w=>c(null,w),c):v(0)},u=(f,o)=>{o=o||{};const{pathEnv:c,pathExt:d,pathExtExe:p}=n(f,o),g=[];for(let m=0;m<c.length;m++){const v=c[m],y=/^".*"$/.test(v)?v.slice(1,-1):v,w=i.join(y,f),_=!y&&/^\.[\\\/]/.test(f)?f.slice(0,2)+w:w;for(let b=0;b<d.length;b++){const E=_+d[b];try{if(h.sync(E,{pathExt:p}))if(o.all)g.push(E);else return E}catch{}}}if(o.all&&g.length)return g;if(o.nothrow)return null;throw a(f)};t.exports=l,l.sync=u})),lE=I.__commonJSMin(((e,t)=>{var r=(i={})=>{const s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).reverse().find(h=>h.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r})),cE=I.__commonJSMin(((e,t)=>{var r=require("path"),i=uE(),s=lE();function h(n,l){const u=n.options.env||process.env,f=process.cwd(),o=n.options.cwd!=null,c=o&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(n.options.cwd)}catch{}let d;try{d=i.sync(n.command,{path:u[s({env:u})],pathExt:l?r.delimiter:void 0})}catch{}finally{c&&process.chdir(f)}return d&&(d=r.resolve(o?n.options.cwd:"",d)),d}function a(n){return h(n)||h(n,!0)}t.exports=a})),hE=I.__commonJSMin(((e,t)=>{var r=/([()\][%!^"`<>&|;, *?])/g;function i(h){return h=h.replace(r,"^$1"),h}function s(h,a){return h=`${h}`,h=h.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),h=h.replace(/(?=(\\+?)?)\1$/,"$1$1"),h=`"${h}"`,h=h.replace(r,"^$1"),a&&(h=h.replace(r,"^$1")),h}t.exports.command=i,t.exports.argument=s})),fE=I.__commonJSMin(((e,t)=>{t.exports=/^#!(.*)/})),dE=I.__commonJSMin(((e,t)=>{var r=fE();t.exports=(i="")=>{const s=i.match(r);if(!s)return null;const[h,a]=s[0].replace(/#! ?/,"").split(" "),n=h.split("/").pop();return n==="env"?a:a?`${n} ${a}`:n}})),pE=I.__commonJSMin(((e,t)=>{var r=require("fs"),i=dE();function s(h){const n=Buffer.alloc(150);let l;try{l=r.openSync(h,"r"),r.readSync(l,n,0,150,0),r.closeSync(l)}catch{}return i(n.toString())}t.exports=s})),mE=I.__commonJSMin(((e,t)=>{var r=require("path"),i=cE(),s=hE(),h=pE(),a=process.platform==="win32",n=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(c){c.file=i(c);const d=c.file&&h(c.file);return d?(c.args.unshift(c.file),c.command=d,i(c)):c.file}function f(c){if(!a)return c;const d=u(c),p=!n.test(d);if(c.options.forceShell||p){const g=l.test(d);c.command=r.normalize(c.command),c.command=s.command(c.command),c.args=c.args.map(m=>s.argument(m,g)),c.args=["/d","/s","/c",`"${[c.command].concat(c.args).join(" ")}"`],c.command=process.env.comspec||"cmd.exe",c.options.windowsVerbatimArguments=!0}return c}function o(c,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);const g={command:c,args:d,options:p,file:void 0,original:{command:c,args:d}};return p.shell?g:f(g)}t.exports=o})),gE=I.__commonJSMin(((e,t)=>{var r=process.platform==="win32";function i(n,l){return Object.assign(new Error(`${l} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${l} ${n.command}`,path:n.command,spawnargs:n.args})}function s(n,l){if(!r)return;const u=n.emit;n.emit=function(f,o){if(f==="exit"){const c=h(o,l);if(c)return u.call(n,"error",c)}return u.apply(n,arguments)}}function h(n,l){return r&&n===1&&!l.file?i(l.original,"spawn"):null}function a(n,l){return r&&n===1&&!l.file?i(l.original,"spawnSync"):null}t.exports={hookChildProcess:s,verifyENOENT:h,verifyENOENTSync:a,notFoundError:i}})),vE=I.__commonJSMin(((e,t)=>{var r=require("child_process"),i=mE(),s=gE();function h(n,l,u){const f=i(n,l,u),o=r.spawn(f.command,f.args,f.options);return s.hookChildProcess(o,f),o}function a(n,l,u){const f=i(n,l,u),o=r.spawnSync(f.command,f.args,f.options);return o.error=o.error||s.verifyENOENTSync(o.status,f),o}t.exports=h,t.exports.spawn=h,t.exports.sync=a,t.exports._parse=i,t.exports._enoent=s})),yE=I.__commonJSMin(((e,t)=>{var r=vE(),i=(s,h,a={},n={})=>{a.rejectOnError===void 0&&(a.rejectOnError=!0);let l="",u="";const f=r(s,h,n);return new Promise((o,c)=>{a.stdin!==void 0&&a.stdin!=null&&f.stdin.write(a.stdin),f.stdin.end(),f.stdout.on("data",d=>{l+=d,a.stdout&&a.stdout(d)}),f.stderr.on("data",d=>{u+=d,a.stderr&&a.stderr(d)}),a.rejectOnError&&f.addListener("error",c),f.on("close",d=>{d!==0&&a.rejectOnError?c(u):o({stdout:l,stderr:u})})})};t.exports=i})),xr=I.__toESM(yE(),1),Be;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Be||(Be={}));var _E={[Be.QUOTATION_MARK]:Be.QUOTATION_MARK,[Be.REVERSE_SOLIDUS]:Be.REVERSE_SOLIDUS,[Be.SOLIDUS]:Be.SOLIDUS,[Be.LATIN_SMALL_LETTER_B]:Be.BACKSPACE,[Be.LATIN_SMALL_LETTER_F]:Be.FORM_FEED,[Be.LATIN_SMALL_LETTER_N]:Be.NEWLINE,[Be.LATIN_SMALL_LETTER_R]:Be.CARRIAGE_RETURN,[Be.LATIN_SMALL_LETTER_T]:Be.TAB},vc=class{constructor(){this.decoder=new TextDecoder("utf-8"),this.strings=[],this.byteLength=0}appendChar(e){this.strings.push(String.fromCharCode(e)),this.byteLength+=1}appendBuf(e,t=0,r=e.length){this.strings.push(this.decoder.decode(e.subarray(t,r))),this.byteLength+=r-t}reset(){this.strings=[],this.byteLength=0}toString(){return this.strings.join("")}},yc=class{constructor(e){this.decoder=new TextDecoder("utf-8"),this.bufferOffset=0,this.string="",this.byteLength=0,this.buffer=new Uint8Array(e)}appendChar(e){this.bufferOffset>=this.buffer.length&&this.flushStringBuffer(),this.buffer[this.bufferOffset++]=e,this.byteLength+=1}appendBuf(e,t=0,r=e.length){const i=r-t;this.bufferOffset+i>this.buffer.length&&this.flushStringBuffer(),this.buffer.set(e.subarray(t,r),this.bufferOffset),this.bufferOffset+=i,this.byteLength+=i}flushStringBuffer(){this.string+=this.decoder.decode(this.buffer.subarray(0,this.bufferOffset)),this.bufferOffset=0}reset(){this.string="",this.bufferOffset=0,this.byteLength=0}toString(){return this.flushStringBuffer(),this.string}},La;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(La||(La={}));var Ke=La,Ie;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(Ie||(Ie={}));function _c(e){return["START","ENDED","ERROR","TRUE1","TRUE2","TRUE3","FALSE1","FALSE2","FALSE3","FALSE4","NULL1","NULL2","NULL3","STRING_DEFAULT","STRING_AFTER_BACKSLASH","STRING_UNICODE_DIGIT_1","STRING_UNICODE_DIGIT_2","STRING_UNICODE_DIGIT_3","STRING_UNICODE_DIGIT_4","STRING_INCOMPLETE_CHAR","NUMBER_AFTER_INITIAL_MINUS","NUMBER_AFTER_INITIAL_ZERO","NUMBER_AFTER_INITIAL_NON_ZERO","NUMBER_AFTER_FULL_STOP","NUMBER_AFTER_DECIMAL","NUMBER_AFTER_E","NUMBER_AFTER_E_AND_SIGN","NUMBER_AFTER_E_AND_DIGIT","SEPARATOR","BOM_OR_START","BOM"][e]}var EE={stringBufferSize:0,numberBufferSize:0,separator:void 0,emitPartialTokens:!1},ua=class wf extends Error{constructor(t){super(t),Object.setPrototypeOf(this,wf.prototype)}},bE=class{constructor(e){this.state=Ie.BOM_OR_START,this.bomIndex=0,this.separatorIndex=0,this.escapedCharsByteLength=0,this.bytes_remaining=0,this.bytes_in_sequence=0,this.char_split_buffer=new Uint8Array(4),this.encoder=new TextEncoder,this.offset=-1,e=Object.assign(Object.assign({},EE),e),this.emitPartialTokens=e.emitPartialTokens===!0,this.bufferedString=e.stringBufferSize&&e.stringBufferSize>4?new yc(e.stringBufferSize):new vc,this.bufferedNumber=e.numberBufferSize&&e.numberBufferSize>0?new yc(e.numberBufferSize):new vc,this.separator=e.separator,this.separatorBytes=e.separator?this.encoder.encode(e.separator):void 0}get isEnded(){return this.state===Ie.ENDED}write(e){try{let t;if(e instanceof Uint8Array)t=e;else if(typeof e=="string")t=this.encoder.encode(e);else if(Array.isArray(e))t=Uint8Array.from(e);else if(ArrayBuffer.isView(e))t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);else throw new TypeError("Unexpected type. The `write` function only accepts Arrays, TypedArrays and Strings.");for(let r=0;r<t.length;r+=1){const i=t[r];switch(this.state){case Ie.BOM_OR_START:if(e instanceof Uint8Array&&i===239){this.bom=[239,187,191],this.bomIndex+=1,this.state=Ie.BOM;continue}if(e instanceof Uint16Array){if(i===254){this.bom=[254,255],this.bomIndex+=1,this.state=Ie.BOM;continue}if(i===255){this.bom=[255,254],this.bomIndex+=1,this.state=Ie.BOM;continue}}if(e instanceof Uint32Array){if(i===0){this.bom=[0,0,254,255],this.bomIndex+=1,this.state=Ie.BOM;continue}if(i===255){this.bom=[255,254,0,0],this.bomIndex+=1,this.state=Ie.BOM;continue}}case Ie.START:if(this.offset+=1,this.separatorBytes&&i===this.separatorBytes[0]){if(this.separatorBytes.length===1){this.state=Ie.START,this.onToken({token:Ke.SEPARATOR,value:this.separator,offset:this.offset+this.separatorBytes.length-1});continue}this.state=Ie.SEPARATOR;continue}if(i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB)continue;if(i===Be.LEFT_CURLY_BRACKET){this.onToken({token:Ke.LEFT_BRACE,value:"{",offset:this.offset});continue}if(i===Be.RIGHT_CURLY_BRACKET){this.onToken({token:Ke.RIGHT_BRACE,value:"}",offset:this.offset});continue}if(i===Be.LEFT_SQUARE_BRACKET){this.onToken({token:Ke.LEFT_BRACKET,value:"[",offset:this.offset});continue}if(i===Be.RIGHT_SQUARE_BRACKET){this.onToken({token:Ke.RIGHT_BRACKET,value:"]",offset:this.offset});continue}if(i===Be.COLON){this.onToken({token:Ke.COLON,value:":",offset:this.offset});continue}if(i===Be.COMMA){this.onToken({token:Ke.COMMA,value:",",offset:this.offset});continue}if(i===Be.LATIN_SMALL_LETTER_T){this.state=Ie.TRUE1;continue}if(i===Be.LATIN_SMALL_LETTER_F){this.state=Ie.FALSE1;continue}if(i===Be.LATIN_SMALL_LETTER_N){this.state=Ie.NULL1;continue}if(i===Be.QUOTATION_MARK){this.bufferedString.reset(),this.escapedCharsByteLength=0,this.state=Ie.STRING_DEFAULT;continue}if(i>=Be.DIGIT_ONE&&i<=Be.DIGIT_NINE){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_NON_ZERO;continue}if(i===Be.DIGIT_ZERO){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_ZERO;continue}if(i===Be.HYPHEN_MINUS){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_MINUS;continue}break;case Ie.STRING_DEFAULT:if(i===Be.QUOTATION_MARK){const h=this.bufferedString.toString();this.state=Ie.START,this.onToken({token:Ke.STRING,value:h,offset:this.offset}),this.offset+=this.escapedCharsByteLength+this.bufferedString.byteLength+1;continue}if(i===Be.REVERSE_SOLIDUS){this.state=Ie.STRING_AFTER_BACKSLASH;continue}if(i>=128){if(i>=194&&i<=223?this.bytes_in_sequence=2:i<=239?this.bytes_in_sequence=3:this.bytes_in_sequence=4,this.bytes_in_sequence<=t.length-r){this.bufferedString.appendBuf(t,r,r+this.bytes_in_sequence),r+=this.bytes_in_sequence-1;continue}this.bytes_remaining=r+this.bytes_in_sequence-t.length,this.char_split_buffer.set(t.subarray(r)),r=t.length-1,this.state=Ie.STRING_INCOMPLETE_CHAR;continue}if(i>=Be.SPACE){this.bufferedString.appendChar(i);continue}break;case Ie.STRING_INCOMPLETE_CHAR:this.char_split_buffer.set(t.subarray(r,r+this.bytes_remaining),this.bytes_in_sequence-this.bytes_remaining),this.bufferedString.appendBuf(this.char_split_buffer,0,this.bytes_in_sequence),r=this.bytes_remaining-1,this.state=Ie.STRING_DEFAULT;continue;case Ie.STRING_AFTER_BACKSLASH:const s=_E[i];if(s){this.bufferedString.appendChar(s),this.escapedCharsByteLength+=1,this.state=Ie.STRING_DEFAULT;continue}if(i===Be.LATIN_SMALL_LETTER_U){this.unicode="",this.state=Ie.STRING_UNICODE_DIGIT_1;continue}break;case Ie.STRING_UNICODE_DIGIT_1:case Ie.STRING_UNICODE_DIGIT_2:case Ie.STRING_UNICODE_DIGIT_3:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE||i>=Be.LATIN_CAPITAL_LETTER_A&&i<=Be.LATIN_CAPITAL_LETTER_F||i>=Be.LATIN_SMALL_LETTER_A&&i<=Be.LATIN_SMALL_LETTER_F){this.unicode+=String.fromCharCode(i),this.state+=1;continue}break;case Ie.STRING_UNICODE_DIGIT_4:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE||i>=Be.LATIN_CAPITAL_LETTER_A&&i<=Be.LATIN_CAPITAL_LETTER_F||i>=Be.LATIN_SMALL_LETTER_A&&i<=Be.LATIN_SMALL_LETTER_F){const h=parseInt(this.unicode+String.fromCharCode(i),16);let a;if(this.highSurrogate===void 0)if(h>=55296&&h<=56319){this.highSurrogate=h,this.state=Ie.STRING_DEFAULT;continue}else a=String.fromCharCode(h);else h>=56320&&h<=57343?a=String.fromCharCode(this.highSurrogate,h):a=String.fromCharCode(this.highSurrogate),this.highSurrogate=void 0;const n=this.encoder.encode(a);this.bufferedString.appendBuf(n),this.escapedCharsByteLength+=6-n.byteLength,this.state=Ie.STRING_DEFAULT;continue}break;case Ie.NUMBER_AFTER_INITIAL_MINUS:if(i===Be.DIGIT_ZERO){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_ZERO;continue}if(i>=Be.DIGIT_ONE&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_NON_ZERO;continue}break;case Ie.NUMBER_AFTER_INITIAL_ZERO:if(i===Be.FULL_STOP){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_FULL_STOP;continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}if(i===Be.FULL_STOP){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_FULL_STOP;continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_FULL_STOP:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_DECIMAL;continue}break;case Ie.NUMBER_AFTER_DECIMAL:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_E:if(i===Be.PLUS_SIGN||i===Be.HYPHEN_MINUS){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E_AND_SIGN;continue}case Ie.NUMBER_AFTER_E_AND_SIGN:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E_AND_DIGIT;continue}break;case Ie.NUMBER_AFTER_E_AND_DIGIT:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.TRUE1:if(i===Be.LATIN_SMALL_LETTER_R){this.state=Ie.TRUE2;continue}break;case Ie.TRUE2:if(i===Be.LATIN_SMALL_LETTER_U){this.state=Ie.TRUE3;continue}break;case Ie.TRUE3:if(i===Be.LATIN_SMALL_LETTER_E){this.state=Ie.START,this.onToken({token:Ke.TRUE,value:!0,offset:this.offset}),this.offset+=3;continue}break;case Ie.FALSE1:if(i===Be.LATIN_SMALL_LETTER_A){this.state=Ie.FALSE2;continue}break;case Ie.FALSE2:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.FALSE3;continue}break;case Ie.FALSE3:if(i===Be.LATIN_SMALL_LETTER_S){this.state=Ie.FALSE4;continue}break;case Ie.FALSE4:if(i===Be.LATIN_SMALL_LETTER_E){this.state=Ie.START,this.onToken({token:Ke.FALSE,value:!1,offset:this.offset}),this.offset+=4;continue}break;case Ie.NULL1:if(i===Be.LATIN_SMALL_LETTER_U){this.state=Ie.NULL2;continue}break;case Ie.NULL2:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.NULL3;continue}break;case Ie.NULL3:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.START,this.onToken({token:Ke.NULL,value:null,offset:this.offset}),this.offset+=3;continue}break;case Ie.SEPARATOR:if(this.separatorIndex+=1,!this.separatorBytes||i!==this.separatorBytes[this.separatorIndex])break;this.separatorIndex===this.separatorBytes.length-1&&(this.state=Ie.START,this.onToken({token:Ke.SEPARATOR,value:this.separator,offset:this.offset+this.separatorIndex}),this.separatorIndex=0);continue;case Ie.BOM:if(i===this.bom[this.bomIndex]){if(this.bomIndex===this.bom.length-1){this.state=Ie.START,this.bom=void 0,this.bomIndex=0;continue}this.bomIndex+=1;continue}break;case Ie.ENDED:if(i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB)continue}throw new ua(`Unexpected "${String.fromCharCode(i)}" at position "${r}" in state ${_c(this.state)}`)}if(this.emitPartialTokens)switch(this.state){case Ie.TRUE1:case Ie.TRUE2:case Ie.TRUE3:this.onToken({token:Ke.TRUE,value:!0,offset:this.offset,partial:!0});break;case Ie.FALSE1:case Ie.FALSE2:case Ie.FALSE3:case Ie.FALSE4:this.onToken({token:Ke.FALSE,value:!1,offset:this.offset,partial:!0});break;case Ie.NULL1:case Ie.NULL2:case Ie.NULL3:this.onToken({token:Ke.NULL,value:null,offset:this.offset,partial:!0});break;case Ie.STRING_DEFAULT:{const r=this.bufferedString.toString();this.onToken({token:Ke.STRING,value:r,offset:this.offset,partial:!0});break}case Ie.NUMBER_AFTER_INITIAL_ZERO:case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:case Ie.NUMBER_AFTER_DECIMAL:case Ie.NUMBER_AFTER_E_AND_DIGIT:try{this.onToken({token:Ke.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset,partial:!0})}catch{}}}catch(t){this.error(t)}}emitNumber(){this.onToken({token:Ke.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset}),this.offset+=this.bufferedNumber.byteLength-1}parseNumber(e){return Number(e)}error(e){this.state!==Ie.ENDED&&(this.state=Ie.ERROR),this.onError(e)}end(){switch(this.state){case Ie.NUMBER_AFTER_INITIAL_ZERO:case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:case Ie.NUMBER_AFTER_DECIMAL:case Ie.NUMBER_AFTER_E_AND_DIGIT:this.state=Ie.ENDED,this.emitNumber(),this.onEnd();break;case Ie.BOM_OR_START:case Ie.START:case Ie.ERROR:case Ie.SEPARATOR:this.state=Ie.ENDED,this.onEnd();break;default:this.error(new ua(`Tokenizer ended in the middle of a token (state: ${_c(this.state)}). Either not all the data was received or the data was invalid.`))}}onToken(e){throw new ua(`Can't emit tokens before the "onToken" callback has been set up.`)}onError(e){throw e}onEnd(){}},Lt;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(Lt||(Lt={}));var nt;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(nt||(nt={}));function Ec(e){return["VALUE","KEY","COLON","COMMA","ENDED","ERROR","SEPARATOR"][e]}var wE={paths:void 0,keepStack:!0,separator:void 0,emitPartialValues:!1},Cn=class Sf extends Error{constructor(t){super(t),Object.setPrototypeOf(this,Sf.prototype)}},SE=class{constructor(e){this.state=nt.VALUE,this.mode=void 0,this.key=void 0,this.value=void 0,this.stack=[],e=Object.assign(Object.assign({},wE),e),e.paths&&(this.paths=e.paths.map(t=>{if(t===void 0||t==="$*")return;if(!t.startsWith("$"))throw new Cn(`Invalid selector "${t}". Should start with "$".`);const r=t.split(".").slice(1);if(r.includes(""))throw new Cn(`Invalid selector "${t}". ".." syntax not supported.`);return r})),this.keepStack=e.keepStack||!1,this.separator=e.separator,e.emitPartialValues||(this.emitPartial=()=>{})}shouldEmit(){return this.paths?this.paths.some(e=>{var t;if(e===void 0)return!0;if(e.length!==this.stack.length)return!1;for(let i=0;i<e.length-1;i++){const s=e[i],h=this.stack[i+1].key;if(s!=="*"&&s!==h?.toString())return!1}const r=e[e.length-1];return r==="*"?!0:r===((t=this.key)===null||t===void 0?void 0:t.toString())}):!0}push(){this.stack.push({key:this.key,value:this.value,mode:this.mode,emit:this.shouldEmit()})}pop(){const e=this.value;let t;({key:this.key,value:this.value,mode:this.mode,emit:t}=this.stack.pop()),this.state=this.mode!==void 0?nt.COMMA:nt.VALUE,this.emit(e,t)}emit(e,t){!this.keepStack&&this.value&&this.stack.every(r=>!r.emit)&&delete this.value[this.key],t&&this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack}),this.stack.length===0&&(this.separator?this.state=nt.SEPARATOR:this.separator===void 0&&this.end())}emitPartial(e){if(this.shouldEmit()){if(this.state===nt.KEY){this.onValue({value:void 0,key:e,parent:this.value,stack:this.stack,partial:!0});return}this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack,partial:!0})}}get isEnded(){return this.state===nt.ENDED}write({token:e,value:t,partial:r}){try{if(r){this.emitPartial(t);return}if(this.state===nt.VALUE){if(e===Ke.STRING||e===Ke.NUMBER||e===Ke.TRUE||e===Ke.FALSE||e===Ke.NULL){this.mode===Lt.OBJECT?(this.value[this.key]=t,this.state=nt.COMMA):this.mode===Lt.ARRAY&&(this.value.push(t),this.state=nt.COMMA),this.emit(t,this.shouldEmit());return}if(e===Ke.LEFT_BRACE){if(this.push(),this.mode===Lt.OBJECT)this.value=this.value[this.key]={};else if(this.mode===Lt.ARRAY){const i={};this.value.push(i),this.value=i}else this.value={};this.mode=Lt.OBJECT,this.state=nt.KEY,this.key=void 0,this.emitPartial();return}if(e===Ke.LEFT_BRACKET){if(this.push(),this.mode===Lt.OBJECT)this.value=this.value[this.key]=[];else if(this.mode===Lt.ARRAY){const i=[];this.value.push(i),this.value=i}else this.value=[];this.mode=Lt.ARRAY,this.state=nt.VALUE,this.key=0,this.emitPartial();return}if(this.mode===Lt.ARRAY&&e===Ke.RIGHT_BRACKET&&this.value.length===0){this.pop();return}}if(this.state===nt.KEY){if(e===Ke.STRING){this.key=t,this.state=nt.COLON,this.emitPartial();return}if(e===Ke.RIGHT_BRACE&&Object.keys(this.value).length===0){this.pop();return}}if(this.state===nt.COLON&&e===Ke.COLON){this.state=nt.VALUE;return}if(this.state===nt.COMMA){if(e===Ke.COMMA){if(this.mode===Lt.ARRAY){this.state=nt.VALUE,this.key+=1;return}if(this.mode===Lt.OBJECT){this.state=nt.KEY;return}}if(e===Ke.RIGHT_BRACE&&this.mode===Lt.OBJECT||e===Ke.RIGHT_BRACKET&&this.mode===Lt.ARRAY){this.pop();return}}if(this.state===nt.SEPARATOR&&e===Ke.SEPARATOR&&t===this.separator){this.state=nt.VALUE;return}if(e===Ke.SEPARATOR&&this.state!==nt.SEPARATOR&&Array.from(t).map(i=>i.charCodeAt(0)).every(i=>i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB))return;throw new Cn(`Unexpected ${Ke[e]} (${JSON.stringify(t)}) in state ${Ec(this.state)}`)}catch(i){this.error(i)}}error(e){this.state!==nt.ENDED&&(this.state=nt.ERROR),this.onError(e)}end(){this.state!==nt.VALUE&&this.state!==nt.SEPARATOR||this.stack.length>0?this.error(new Error(`Parser ended in mid-parsing (state: ${Ec(this.state)}). Either not all the data was received or the data was invalid.`)):(this.state=nt.ENDED,this.onEnd())}onValue(e){throw new Cn(`Can't emit data before the "onValue" callback has been set up.`)}onError(e){throw e}onEnd(){}},DE=class{constructor(e={}){this.tokenizer=new bE(e),this.tokenParser=new SE(e),this.tokenizer.onToken=this.tokenParser.write.bind(this.tokenParser),this.tokenizer.onEnd=()=>{this.tokenParser.isEnded||this.tokenParser.end()},this.tokenParser.onError=this.tokenizer.error.bind(this.tokenizer),this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end()}}get isEnded(){return this.tokenizer.isEnded&&this.tokenParser.isEnded}write(e){this.tokenizer.write(e)}end(){this.tokenizer.end()}set onToken(e){this.tokenizer.onToken=t=>{e(t),this.tokenParser.write(t)}}set onValue(e){this.tokenParser.onValue=e}set onError(e){this.tokenizer.onError=e}set onEnd(e){this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end(),e.call(this.tokenParser)}}},Fa=/[\p{Lu}]/u,AE=/[\p{Ll}]/u,CE=/^[\p{Lu}](?![\p{Lu}])/u,ln=/[_.\- ]+/,Df=/([\p{Alpha}\p{N}_]|$)/u,TE=new RegExp("^"+ln.source),RE=new RegExp(ln.source+Df.source,"gu"),OE=new RegExp(String.raw`\d+`+Df.source,"gu"),IE=(e,t,r,i)=>{let s=!1,h=!1,a=!1,n=!1;for(let l=0;l<e.length;l++){const u=e[l];n=l>2?e[l-3]==="-":!0,s&&Fa.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),s=!1,a=h,h=!0,l++):h&&a&&AE.test(u)&&(!n||i)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),a=h,h=!1,s=!0):(s=t(u)===u&&r(u)!==u,a=h,h=r(u)===u&&t(u)!==u)}return e},kE=(e,t)=>e.replace(CE,r=>t(r)),LE=(e,t,r)=>{let i="",s=!1,h=!1;const a=[...e];for(let n=0;n<a.length;n++){const l=a[n],u=Fa.test(l),f=n+1<a.length&&Fa.test(a[n+1]);s&&/[\p{Alpha}]/u.test(l)?(i+=l,s=!1,h=u):r&&u&&(h||f)?(i+=l,h=!0):/\d/.test(l)?(i+=l,s=!0,h=!1):ln.test(l)?(i+=l,h=!1):(i+=t(l),s=!1,h=!1)}return i},FE=(e,t,{capitalizeAfterNumber:r})=>{const i=r?(s,h,a,n)=>{const l=n.charAt(a+s.length);return ln.test(l)?s:h?s.slice(0,-h.length)+t(h):s}:s=>s;return e.replaceAll(OE,i).replaceAll(RE,(s,h)=>t(h))};function NE(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,capitalizeAfterNumber:!0,...t},Array.isArray(e)?e=e.map(h=>h.trim()).filter(h=>h.length>0).join("-"):e=e.trim(),e.length===0)return"";const r=e.match(/^[_$]*/)[0];if(e=e.slice(r.length),e.length===0)return r;const i=t.locale===!1?h=>h.toLowerCase():h=>h.toLocaleLowerCase(t.locale),s=t.locale===!1?h=>h.toUpperCase():h=>h.toLocaleUpperCase(t.locale);return e.length===1?ln.test(e)?r:r+(t.pascalCase?s(e):i(e)):(e!==i(e)&&(e=IE(e,i,s,t.preserveConsecutiveUppercase)),e=e.replace(TE,""),t.capitalizeAfterNumber?e=t.preserveConsecutiveUppercase?kE(e,i):i(e):e=LE(e,i,t.preserveConsecutiveUppercase),t.pascalCase&&e.length>0&&(e=s(e[0])+e.slice(1)),r+FE(e,s,t))}var xE=I.__commonJSMin(((e,t)=>{function r(d,p){var g=p&&p.cache?p.cache:c,m=p&&p.serializer?p.serializer:f;return(p&&p.strategy?p.strategy:n)(d,{cache:g,serializer:m})}function i(d){return d==null||typeof d=="number"||typeof d=="boolean"}function s(d,p,g,m){var v=i(m)?m:g(m),y=p.get(v);return typeof y>"u"&&(y=d.call(this,m),p.set(v,y)),y}function h(d,p,g){var m=Array.prototype.slice.call(arguments,3),v=g(m),y=p.get(v);return typeof y>"u"&&(y=d.apply(this,m),p.set(v,y)),y}function a(d,p,g,m,v){return g.bind(p,d,m,v)}function n(d,p){var g=d.length===1?s:h;return a(d,this,g,p.cache.create(),p.serializer)}function l(d,p){return a(d,this,h,p.cache.create(),p.serializer)}function u(d,p){return a(d,this,s,p.cache.create(),p.serializer)}function f(){return JSON.stringify(arguments)}function o(){this.cache=Object.create(null)}o.prototype.has=function(d){return d in this.cache},o.prototype.get=function(d){return this.cache[d]},o.prototype.set=function(d,p){this.cache[d]=p};var c={create:function(){return new o}};t.exports=r,t.exports.strategies={variadic:l,monadic:u}})),$E=I.__commonJSMin(((e,t)=>{var{hasOwnProperty:r}=Object.prototype,i=(u,f={})=>{typeof f=="string"&&(f={section:f}),f.align=f.align===!0,f.newline=f.newline===!0,f.sort=f.sort===!0,f.whitespace=f.whitespace===!0||f.align===!0,f.platform=f.platform||typeof process<"u"&&process.platform,f.bracketedArray=f.bracketedArray!==!1;const o=f.platform==="win32"?`\r
|
|
423
|
+
`,Ef=[{long:"cache",description:`Cache versions to a local cache file. Default \`--cacheFile\` is ${Ia} and default \`--cacheExpiration\` is 10 minutes.`,type:"boolean"},{long:"cacheClear",description:"Clear the default cache, or the cache file specified by `--cacheFile`.",type:"boolean"},{long:"cacheExpiration",arg:"min",description:"Cache expiration in minutes. Only works with `--cache`.",parse:Oi("cacheExpiration"),default:10,type:"number"},{long:"cacheFile",arg:"path",description:"Filepath for the cache file. Only works with `--cache`.",parse:e=>{if(typeof e!="string")throw new Error("cacheFile must be a string");return We.default.isAbsolute(e)?e:We.default.join(process.cwd(),e)},default:Ia,type:"string"},{long:"color",description:"Force color in terminal.",type:"boolean"},{long:"concurrency",arg:"n",description:"Max number of concurrent HTTP requests to registry.",parse:Oi("concurrency"),default:8,type:"number"},{long:"configFileName",arg:"s",description:"Config file name. (default: .ncurc.{json,yml,js,cjs})",type:"string"},{long:"configFilePath",arg:"path",description:"Directory of .ncurc config file. (default: directory of `packageFile`)",type:"string"},{long:"cwd",arg:"path",description:"Working directory in which npm will be executed.",type:"string"},{long:"deep",description:"Run recursively in current working directory. Alias of (`--packageFile '**/package.json'`).",type:"boolean"},{long:"dep",arg:"value",description:"Check one or more sections of dependencies only: dev, optional, peer, prod, or packageManager (comma-delimited).",default:["prod","dev","optional","packageManager"],parse:e=>e&&typeof e=="string"?e.split(","):e,type:"string | readonly string[]"},{long:"deprecated",default:!0,description:"Include deprecated packages. Use `--no-deprecated` to exclude deprecated packages (20–25% slower).",type:"boolean"},{long:"doctor",short:"d",description:"Iteratively installs upgrades and runs tests to identify breaking upgrades. Requires `-u` to execute.",type:"boolean",help:H1},{long:"doctorInstall",arg:"command",description:"Specifies the install script to use in doctor mode. (default: `npm install` or the equivalent for your package manager)",type:"string"},{long:"doctorTest",arg:"command",description:"Specifies the test script to use in doctor mode. (default: `npm test`)",type:"string"},{long:"enginesNode",description:"Include only packages that satisfy engines.node as specified in the package file.",type:"boolean"},{long:"errorLevel",short:"e",arg:"n",description:"Set the error level. 1: exits with error code 0 if no errors occur. 2: exits with error code 0 if no packages need updating (useful for continuous integration).",parse:Oi("errorLevel"),default:1,type:"number"},{long:"filter",short:"f",arg:"p",description:"Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:J1},{long:"filterResults",arg:"fn",cli:!1,description:"Filters results based on a user provided predicate function after fetching new versions.",type:"FilterResultsFunction",help:q1},{long:"filterVersion",arg:"p",description:"Filter on package version using comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:W1},{long:"format",arg:"value",description:"Modify the output formatting or show additional information. Specify one or more comma-delimited values: dep, group, ownerChanged, repo, time, lines, installedVersion.",parse:e=>typeof e=="string"?e.split(","):e,default:[],type:"readonly string[]",choices:["dep","group","homepage","ownerChanged","repo","diff","time","lines","installedVersion"],help:z1},{long:"global",short:"g",description:"Check global packages instead of in the current project.",type:"boolean"},{long:"groupFunction",arg:"fn",cli:!1,description:"Customize how packages are divided into groups when using `--format group`.",type:"GroupFunction",help:K1},{long:"install",arg:"value",description:"Control the auto-install behavior: always, never, prompt.",help:G1,default:"prompt",choices:["always","never","prompt"],type:"'always' | 'never' | 'prompt'"},{long:"interactive",short:"i",description:"Enable interactive prompts for each dependency; implies `-u` unless one of the json options are set.",type:"boolean"},{long:"jsonAll",short:"j",description:"Output new package file instead of human-readable message.",type:"boolean"},{long:"jsonDeps",description:"Like `jsonAll` but only lists `dependencies`, `devDependencies`, `optionalDependencies`, etc of the new package data.",type:"boolean"},{long:"jsonUpgraded",description:"Output upgraded dependencies in json.",type:"boolean"},{long:"loglevel",short:"l",arg:"n",description:"Amount to log: silent, error, minimal, warn, info, verbose, silly.",default:"warn",type:"string"},{long:"mergeConfig",description:"Merges nested configs with the root config file for `--deep` or `--packageFile` options. (default: false)",type:"boolean"},{long:"minimal",short:"m",description:"Do not upgrade newer versions that are already satisfied by the version range according to semver.",type:"boolean"},{long:"packageData",arg:"value",description:"Package file data (you can also use stdin).",type:"string | PackageFile"},{long:"packageFile",arg:"path|glob",description:"Package file(s) location. (default: ./package.json)",type:"string"},{long:"packageManager",short:"p",arg:"s",description:"npm, yarn, pnpm, deno, bun, staticRegistry (default: npm).",help:X1,type:"'npm' | 'yarn' | 'pnpm' | 'deno' | 'bun' | 'staticRegistry'"},{long:"peer",description:"Check peer dependencies of installed packages and filter updates to compatible versions.",type:"boolean",help:eE},{long:"pre",arg:"n",description:"Include prerelease versions, e.g. -alpha.0, -beta.5, -rc.2. Automatically set to 1 when `--target` is newest or greatest, or when the current version is a prerelease. (default: 0)",parse:e=>{if(typeof e=="number")return!!e;if(typeof e=="string")return!!parseInt(e,10);throw new Error("pre must be a number")},type:"number"},{long:"prefix",arg:"path",description:"Current working directory of npm.",type:"string"},{long:"registry",short:"r",arg:"uri",description:"Specify the registry to use when looking up package versions.",type:"string"},{long:"registryType",arg:"type",description:"Specify whether --registry refers to a full npm registry or a simple JSON file or url: npm, json. (default: npm)",help:Q1,type:"'npm' | 'json'"},{long:"reject",short:"x",arg:"p",description:"Exclude packages matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:V1},{long:"rejectVersion",arg:"p",description:"Exclude package.json versions using comma-or-space-delimited list, /regex/, or predicate function.",type:"string | RegExp | readonly (string | RegExp)[] | FilterFunction",parse:(e,t)=>[...t||[],e],help:Y1},{long:"removeRange",description:"Remove version ranges from the final package version.",type:"boolean"},{long:"root",default:!0,description:"Runs updates on the root project in addition to specified workspaces. Only allowed with `--workspace` or `--workspaces`.",type:"boolean"},{long:"retry",arg:"n",description:"Number of times to retry failed requests for package info.",parse:Oi("retry"),default:3,type:"number"},{long:"silent",short:"s",description:"Don't output anything. Alias for `--loglevel` silent.",type:"boolean"},{long:"stdin",description:"Read package.json from stdin.",type:"string"},{long:"target",short:"t",arg:"value",description:"Determines the version to upgrade to: latest, newest, greatest, minor, patch, semver, `@[tag]`, or [function]. (default: latest)",help:Z1,type:`${j1.map(e=>`'${e}'`).join(" | ")} | \`@\${string}\` | TargetFunction`},{long:"timeout",arg:"ms",description:"Global timeout in milliseconds. (default: no global timeout and 30 seconds per npm-registry-fetch)",parse:Oi("timeout"),type:"number"},{long:"upgrade",short:"u",description:"Overwrite package file with upgraded versions instead of just outputting to console.",type:"boolean"},{long:"verbose",description:"Log additional information for debugging. Alias for `--loglevel` verbose.",type:"boolean"},{long:"workspace",arg:"s",parse:(e,t)=>[...t,e],default:[],description:"Run on one or more specified workspaces. Add `--no-root` to exclude the root project.",type:"readonly string[]"},{long:"workspaces",short:"w",description:"Run on all workspaces. Add `--no-root` to exclude the root project.",type:"boolean"},{long:"cooldown",short:"c",arg:"period",description:'Sets a minimum age for package versions to be considered for upgrade. Accepts a number (days) or a string with a unit: "7d" (days), "12h" (hours), "30m" (minutes). Reduces the risk of installing newly published, potentially compromised packages.',type:"number | string | CooldownFunction",help:tE,parse:e=>{if(typeof e=="number"||typeof e=="function")return e;if(typeof e=="string"){const t=Yn(e);return t!==null?t:parseInt(e,10)}else throw new Error("cooldown must be a number, string, or function")}}],Nr=Ef.reduce((e,t)=>({...e,...t.short?{[t.short]:t}:null,...t.long?{[t.long]:t}:null}),{}),Mn=ws(Ef,e=>e.long),rE=["package-lock.json","yarn.lock","pnpm-lock.yaml","deno.json","deno.jsonc","bun.lock","bun.lockb"];async function bf(e,t=tt.default.readdir){try{const r=gr.default.homedir(),i=gr.default.tmpdir();let s=e.cwd?e.cwd:e.packageFile?We.default.dirname(e.packageFile):".";for(s=We.default.resolve(s);;){const h=await t(s);for(const n of rE)if(h.includes(n))return{directoryPath:s,filename:n};const a=We.default.resolve(s,"..");if(a===s||a===r||a===i)break;s=a}}catch{}return null}var Xr=(0,st.dirname)((0,au.fileURLToPath)(require("url").pathToFileURL(__filename).href)),iE={"package-lock":"npm",yarn:"yarn","pnpm-lock":"pnpm",deno:"deno",bun:"bun"},nE=()=>{const e=process.env.npm_config_user_agent??"",t=process.env.npm_execpath??"";return e.startsWith("yarn/")||t.includes("yarn")||Xr.includes("/yarn/")||Xr.includes("\\Yarn\\")?"yarn":e.startsWith("pnpm/")||t.includes("pnpm")||Xr.includes("/pnpm/")||Xr.includes("\\pnpm\\")?"pnpm":e.startsWith("bun/")||typeof Bun<"u"||process.versions.bun||Xr.includes("/.bun/")||Xr.includes("\\.bun\\")?"bun":"npm"},ka=async(e,t=tt.default.readdir)=>{if(e.packageManager)return e.packageManager;if(e.global)return nE();const r=(await bf(e,t))?.filename;return r?iE[r.split(".")[0]]:"npm"},sE=I.__commonJSMin(((e,t)=>{t.exports=h,h.sync=a;var r=require("fs");function i(n,l){var u=l.pathExt!==void 0?l.pathExt:process.env.PATHEXT;if(!u||(u=u.split(";"),u.indexOf("")!==-1))return!0;for(var f=0;f<u.length;f++){var o=u[f].toLowerCase();if(o&&n.substr(-o.length).toLowerCase()===o)return!0}return!1}function s(n,l,u){return!n.isSymbolicLink()&&!n.isFile()?!1:i(l,u)}function h(n,l,u){r.stat(n,function(f,o){u(f,f?!1:s(o,n,l))})}function a(n,l){return s(r.statSync(n),n,l)}})),aE=I.__commonJSMin(((e,t)=>{t.exports=i,i.sync=s;var r=require("fs");function i(n,l,u){r.stat(n,function(f,o){u(f,f?!1:h(o,l))})}function s(n,l){return h(r.statSync(n),l)}function h(n,l){return n.isFile()&&a(n,l)}function a(n,l){var u=n.mode,f=n.uid,o=n.gid,c=l.uid!==void 0?l.uid:process.getuid&&process.getuid(),d=l.gid!==void 0?l.gid:process.getgid&&process.getgid(),p=parseInt("100",8),g=parseInt("010",8),m=parseInt("001",8),v=p|g;return u&m||u&g&&o===d||u&p&&f===c||u&v&&c===0}})),oE=I.__commonJSMin(((e,t)=>{require("fs");var r;process.platform==="win32"||global.TESTING_WINDOWS?r=sE():r=aE(),t.exports=i,i.sync=s;function i(h,a,n){if(typeof a=="function"&&(n=a,a={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,u){i(h,a||{},function(f,o){f?u(f):l(o)})})}r(h,a||{},function(l,u){l&&(l.code==="EACCES"||a&&a.ignoreErrors)&&(l=null,u=!1),n(l,u)})}function s(h,a){try{return r.sync(h,a||{})}catch(n){if(a&&a.ignoreErrors||n.code==="EACCES")return!1;throw n}}})),uE=I.__commonJSMin(((e,t)=>{var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=require("path"),s=r?";":":",h=oE(),a=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),n=(f,o)=>{const c=o.colon||s,d=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(c)],p=r?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?p.split(c):[""];return r&&f.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:p}},l=(f,o,c)=>{typeof o=="function"&&(c=o,o={}),o||(o={});const{pathEnv:d,pathExt:p,pathExtExe:g}=n(f,o),m=[],v=w=>new Promise((_,b)=>{if(w===d.length)return o.all&&m.length?_(m):b(a(f));const E=d[w],S=/^".*"$/.test(E)?E.slice(1,-1):E,A=i.join(S,f);_(y(!S&&/^\.[\\\/]/.test(f)?f.slice(0,2)+A:A,w,0))}),y=(w,_,b)=>new Promise((E,S)=>{if(b===p.length)return E(v(_+1));const A=p[b];h(w+A,{pathExt:g},(C,T)=>{if(!C&&T)if(o.all)m.push(w+A);else return E(w+A);return E(y(w,_,b+1))})});return c?v(0).then(w=>c(null,w),c):v(0)},u=(f,o)=>{o=o||{};const{pathEnv:c,pathExt:d,pathExtExe:p}=n(f,o),g=[];for(let m=0;m<c.length;m++){const v=c[m],y=/^".*"$/.test(v)?v.slice(1,-1):v,w=i.join(y,f),_=!y&&/^\.[\\\/]/.test(f)?f.slice(0,2)+w:w;for(let b=0;b<d.length;b++){const E=_+d[b];try{if(h.sync(E,{pathExt:p}))if(o.all)g.push(E);else return E}catch{}}}if(o.all&&g.length)return g;if(o.nothrow)return null;throw a(f)};t.exports=l,l.sync=u})),lE=I.__commonJSMin(((e,t)=>{var r=(i={})=>{const s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).reverse().find(h=>h.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r})),cE=I.__commonJSMin(((e,t)=>{var r=require("path"),i=uE(),s=lE();function h(n,l){const u=n.options.env||process.env,f=process.cwd(),o=n.options.cwd!=null,c=o&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(n.options.cwd)}catch{}let d;try{d=i.sync(n.command,{path:u[s({env:u})],pathExt:l?r.delimiter:void 0})}catch{}finally{c&&process.chdir(f)}return d&&(d=r.resolve(o?n.options.cwd:"",d)),d}function a(n){return h(n)||h(n,!0)}t.exports=a})),hE=I.__commonJSMin(((e,t)=>{var r=/([()\][%!^"`<>&|;, *?])/g;function i(h){return h=h.replace(r,"^$1"),h}function s(h,a){return h=`${h}`,h=h.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),h=h.replace(/(?=(\\+?)?)\1$/,"$1$1"),h=`"${h}"`,h=h.replace(r,"^$1"),a&&(h=h.replace(r,"^$1")),h}t.exports.command=i,t.exports.argument=s})),fE=I.__commonJSMin(((e,t)=>{t.exports=/^#!(.*)/})),dE=I.__commonJSMin(((e,t)=>{var r=fE();t.exports=(i="")=>{const s=i.match(r);if(!s)return null;const[h,a]=s[0].replace(/#! ?/,"").split(" "),n=h.split("/").pop();return n==="env"?a:a?`${n} ${a}`:n}})),pE=I.__commonJSMin(((e,t)=>{var r=require("fs"),i=dE();function s(h){const n=Buffer.alloc(150);let l;try{l=r.openSync(h,"r"),r.readSync(l,n,0,150,0),r.closeSync(l)}catch{}return i(n.toString())}t.exports=s})),mE=I.__commonJSMin(((e,t)=>{var r=require("path"),i=cE(),s=hE(),h=pE(),a=process.platform==="win32",n=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(c){c.file=i(c);const d=c.file&&h(c.file);return d?(c.args.unshift(c.file),c.command=d,i(c)):c.file}function f(c){if(!a)return c;const d=u(c),p=!n.test(d);if(c.options.forceShell||p){const g=l.test(d);c.command=r.normalize(c.command),c.command=s.command(c.command),c.args=c.args.map(m=>s.argument(m,g)),c.args=["/d","/s","/c",`"${[c.command].concat(c.args).join(" ")}"`],c.command=process.env.comspec||"cmd.exe",c.options.windowsVerbatimArguments=!0}return c}function o(c,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);const g={command:c,args:d,options:p,file:void 0,original:{command:c,args:d}};return p.shell?g:f(g)}t.exports=o})),gE=I.__commonJSMin(((e,t)=>{var r=process.platform==="win32";function i(n,l){return Object.assign(new Error(`${l} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${l} ${n.command}`,path:n.command,spawnargs:n.args})}function s(n,l){if(!r)return;const u=n.emit;n.emit=function(f,o){if(f==="exit"){const c=h(o,l);if(c)return u.call(n,"error",c)}return u.apply(n,arguments)}}function h(n,l){return r&&n===1&&!l.file?i(l.original,"spawn"):null}function a(n,l){return r&&n===1&&!l.file?i(l.original,"spawnSync"):null}t.exports={hookChildProcess:s,verifyENOENT:h,verifyENOENTSync:a,notFoundError:i}})),vE=I.__commonJSMin(((e,t)=>{var r=require("child_process"),i=mE(),s=gE();function h(n,l,u){const f=i(n,l,u),o=r.spawn(f.command,f.args,f.options);return s.hookChildProcess(o,f),o}function a(n,l,u){const f=i(n,l,u),o=r.spawnSync(f.command,f.args,f.options);return o.error=o.error||s.verifyENOENTSync(o.status,f),o}t.exports=h,t.exports.spawn=h,t.exports.sync=a,t.exports._parse=i,t.exports._enoent=s})),yE=I.__commonJSMin(((e,t)=>{var r=vE(),i=(s,h,a={},n={})=>{a.rejectOnError===void 0&&(a.rejectOnError=!0);let l="",u="";const f=r(s,h,n);return new Promise((o,c)=>{a.stdin!==void 0&&a.stdin!=null&&f.stdin.write(a.stdin),f.stdin.end(),f.stdout.on("data",d=>{l+=d,a.stdout&&a.stdout(d)}),f.stderr.on("data",d=>{u+=d,a.stderr&&a.stderr(d)}),a.rejectOnError&&f.addListener("error",c),f.on("close",d=>{d!==0&&a.rejectOnError?c(u):o({stdout:l,stderr:u})})})};t.exports=i})),xr=I.__toESM(yE(),1),Be;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Be||(Be={}));var _E={[Be.QUOTATION_MARK]:Be.QUOTATION_MARK,[Be.REVERSE_SOLIDUS]:Be.REVERSE_SOLIDUS,[Be.SOLIDUS]:Be.SOLIDUS,[Be.LATIN_SMALL_LETTER_B]:Be.BACKSPACE,[Be.LATIN_SMALL_LETTER_F]:Be.FORM_FEED,[Be.LATIN_SMALL_LETTER_N]:Be.NEWLINE,[Be.LATIN_SMALL_LETTER_R]:Be.CARRIAGE_RETURN,[Be.LATIN_SMALL_LETTER_T]:Be.TAB},vc=class{constructor(){this.decoder=new TextDecoder("utf-8"),this.strings=[],this.byteLength=0}appendChar(e){this.strings.push(String.fromCharCode(e)),this.byteLength+=1}appendBuf(e,t=0,r=e.length){this.strings.push(this.decoder.decode(e.subarray(t,r))),this.byteLength+=r-t}reset(){this.strings=[],this.byteLength=0}toString(){return this.strings.join("")}},yc=class{constructor(e){this.decoder=new TextDecoder("utf-8"),this.bufferOffset=0,this.string="",this.byteLength=0,this.buffer=new Uint8Array(e)}appendChar(e){this.bufferOffset>=this.buffer.length&&this.flushStringBuffer(),this.buffer[this.bufferOffset++]=e,this.byteLength+=1}appendBuf(e,t=0,r=e.length){const i=r-t;this.bufferOffset+i>this.buffer.length&&this.flushStringBuffer(),this.buffer.set(e.subarray(t,r),this.bufferOffset),this.bufferOffset+=i,this.byteLength+=i}flushStringBuffer(){this.string+=this.decoder.decode(this.buffer.subarray(0,this.bufferOffset)),this.bufferOffset=0}reset(){this.string="",this.bufferOffset=0,this.byteLength=0}toString(){return this.flushStringBuffer(),this.string}},La;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(La||(La={}));var Ke=La,Ie;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(Ie||(Ie={}));function _c(e){return["START","ENDED","ERROR","TRUE1","TRUE2","TRUE3","FALSE1","FALSE2","FALSE3","FALSE4","NULL1","NULL2","NULL3","STRING_DEFAULT","STRING_AFTER_BACKSLASH","STRING_UNICODE_DIGIT_1","STRING_UNICODE_DIGIT_2","STRING_UNICODE_DIGIT_3","STRING_UNICODE_DIGIT_4","STRING_INCOMPLETE_CHAR","NUMBER_AFTER_INITIAL_MINUS","NUMBER_AFTER_INITIAL_ZERO","NUMBER_AFTER_INITIAL_NON_ZERO","NUMBER_AFTER_FULL_STOP","NUMBER_AFTER_DECIMAL","NUMBER_AFTER_E","NUMBER_AFTER_E_AND_SIGN","NUMBER_AFTER_E_AND_DIGIT","SEPARATOR","BOM_OR_START","BOM"][e]}var EE={stringBufferSize:0,numberBufferSize:0,separator:void 0,emitPartialTokens:!1},ua=class wf extends Error{constructor(t){super(t),Object.setPrototypeOf(this,wf.prototype)}},bE=class{constructor(e){this.state=Ie.BOM_OR_START,this.bomIndex=0,this.separatorIndex=0,this.escapedCharsByteLength=0,this.bytes_remaining=0,this.bytes_in_sequence=0,this.char_split_buffer=new Uint8Array(4),this.encoder=new TextEncoder,this.offset=-1,e=Object.assign(Object.assign({},EE),e),this.emitPartialTokens=e.emitPartialTokens===!0,this.bufferedString=e.stringBufferSize&&e.stringBufferSize>4?new yc(e.stringBufferSize):new vc,this.bufferedNumber=e.numberBufferSize&&e.numberBufferSize>0?new yc(e.numberBufferSize):new vc,this.separator=e.separator,this.separatorBytes=e.separator?this.encoder.encode(e.separator):void 0}get isEnded(){return this.state===Ie.ENDED}write(e){try{let t;if(e instanceof Uint8Array)t=e;else if(typeof e=="string")t=this.encoder.encode(e);else if(Array.isArray(e))t=Uint8Array.from(e);else if(ArrayBuffer.isView(e))t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);else throw new TypeError("Unexpected type. The `write` function only accepts Arrays, TypedArrays and Strings.");for(let r=0;r<t.length;r+=1){const i=t[r];switch(this.state){case Ie.BOM_OR_START:if(e instanceof Uint8Array&&i===239){this.bom=[239,187,191],this.bomIndex+=1,this.state=Ie.BOM;continue}if(e instanceof Uint16Array){if(i===254){this.bom=[254,255],this.bomIndex+=1,this.state=Ie.BOM;continue}if(i===255){this.bom=[255,254],this.bomIndex+=1,this.state=Ie.BOM;continue}}if(e instanceof Uint32Array){if(i===0){this.bom=[0,0,254,255],this.bomIndex+=1,this.state=Ie.BOM;continue}if(i===255){this.bom=[255,254,0,0],this.bomIndex+=1,this.state=Ie.BOM;continue}}case Ie.START:if(this.offset+=1,this.separatorBytes&&i===this.separatorBytes[0]){if(this.separatorBytes.length===1){this.state=Ie.START,this.onToken({token:Ke.SEPARATOR,value:this.separator,offset:this.offset+this.separatorBytes.length-1});continue}this.state=Ie.SEPARATOR;continue}if(i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB)continue;if(i===Be.LEFT_CURLY_BRACKET){this.onToken({token:Ke.LEFT_BRACE,value:"{",offset:this.offset});continue}if(i===Be.RIGHT_CURLY_BRACKET){this.onToken({token:Ke.RIGHT_BRACE,value:"}",offset:this.offset});continue}if(i===Be.LEFT_SQUARE_BRACKET){this.onToken({token:Ke.LEFT_BRACKET,value:"[",offset:this.offset});continue}if(i===Be.RIGHT_SQUARE_BRACKET){this.onToken({token:Ke.RIGHT_BRACKET,value:"]",offset:this.offset});continue}if(i===Be.COLON){this.onToken({token:Ke.COLON,value:":",offset:this.offset});continue}if(i===Be.COMMA){this.onToken({token:Ke.COMMA,value:",",offset:this.offset});continue}if(i===Be.LATIN_SMALL_LETTER_T){this.state=Ie.TRUE1;continue}if(i===Be.LATIN_SMALL_LETTER_F){this.state=Ie.FALSE1;continue}if(i===Be.LATIN_SMALL_LETTER_N){this.state=Ie.NULL1;continue}if(i===Be.QUOTATION_MARK){this.bufferedString.reset(),this.escapedCharsByteLength=0,this.state=Ie.STRING_DEFAULT;continue}if(i>=Be.DIGIT_ONE&&i<=Be.DIGIT_NINE){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_NON_ZERO;continue}if(i===Be.DIGIT_ZERO){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_ZERO;continue}if(i===Be.HYPHEN_MINUS){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_MINUS;continue}break;case Ie.STRING_DEFAULT:if(i===Be.QUOTATION_MARK){const h=this.bufferedString.toString();this.state=Ie.START,this.onToken({token:Ke.STRING,value:h,offset:this.offset}),this.offset+=this.escapedCharsByteLength+this.bufferedString.byteLength+1;continue}if(i===Be.REVERSE_SOLIDUS){this.state=Ie.STRING_AFTER_BACKSLASH;continue}if(i>=128){if(i>=194&&i<=223?this.bytes_in_sequence=2:i<=239?this.bytes_in_sequence=3:this.bytes_in_sequence=4,this.bytes_in_sequence<=t.length-r){this.bufferedString.appendBuf(t,r,r+this.bytes_in_sequence),r+=this.bytes_in_sequence-1;continue}this.bytes_remaining=r+this.bytes_in_sequence-t.length,this.char_split_buffer.set(t.subarray(r)),r=t.length-1,this.state=Ie.STRING_INCOMPLETE_CHAR;continue}if(i>=Be.SPACE){this.bufferedString.appendChar(i);continue}break;case Ie.STRING_INCOMPLETE_CHAR:this.char_split_buffer.set(t.subarray(r,r+this.bytes_remaining),this.bytes_in_sequence-this.bytes_remaining),this.bufferedString.appendBuf(this.char_split_buffer,0,this.bytes_in_sequence),r=this.bytes_remaining-1,this.state=Ie.STRING_DEFAULT;continue;case Ie.STRING_AFTER_BACKSLASH:const s=_E[i];if(s){this.bufferedString.appendChar(s),this.escapedCharsByteLength+=1,this.state=Ie.STRING_DEFAULT;continue}if(i===Be.LATIN_SMALL_LETTER_U){this.unicode="",this.state=Ie.STRING_UNICODE_DIGIT_1;continue}break;case Ie.STRING_UNICODE_DIGIT_1:case Ie.STRING_UNICODE_DIGIT_2:case Ie.STRING_UNICODE_DIGIT_3:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE||i>=Be.LATIN_CAPITAL_LETTER_A&&i<=Be.LATIN_CAPITAL_LETTER_F||i>=Be.LATIN_SMALL_LETTER_A&&i<=Be.LATIN_SMALL_LETTER_F){this.unicode+=String.fromCharCode(i),this.state+=1;continue}break;case Ie.STRING_UNICODE_DIGIT_4:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE||i>=Be.LATIN_CAPITAL_LETTER_A&&i<=Be.LATIN_CAPITAL_LETTER_F||i>=Be.LATIN_SMALL_LETTER_A&&i<=Be.LATIN_SMALL_LETTER_F){const h=parseInt(this.unicode+String.fromCharCode(i),16);let a;if(this.highSurrogate===void 0)if(h>=55296&&h<=56319){this.highSurrogate=h,this.state=Ie.STRING_DEFAULT;continue}else a=String.fromCharCode(h);else h>=56320&&h<=57343?a=String.fromCharCode(this.highSurrogate,h):a=String.fromCharCode(this.highSurrogate),this.highSurrogate=void 0;const n=this.encoder.encode(a);this.bufferedString.appendBuf(n),this.escapedCharsByteLength+=6-n.byteLength,this.state=Ie.STRING_DEFAULT;continue}break;case Ie.NUMBER_AFTER_INITIAL_MINUS:if(i===Be.DIGIT_ZERO){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_ZERO;continue}if(i>=Be.DIGIT_ONE&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_INITIAL_NON_ZERO;continue}break;case Ie.NUMBER_AFTER_INITIAL_ZERO:if(i===Be.FULL_STOP){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_FULL_STOP;continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}if(i===Be.FULL_STOP){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_FULL_STOP;continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_FULL_STOP:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_DECIMAL;continue}break;case Ie.NUMBER_AFTER_DECIMAL:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}if(i===Be.LATIN_SMALL_LETTER_E||i===Be.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E;continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.NUMBER_AFTER_E:if(i===Be.PLUS_SIGN||i===Be.HYPHEN_MINUS){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E_AND_SIGN;continue}case Ie.NUMBER_AFTER_E_AND_SIGN:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i),this.state=Ie.NUMBER_AFTER_E_AND_DIGIT;continue}break;case Ie.NUMBER_AFTER_E_AND_DIGIT:if(i>=Be.DIGIT_ZERO&&i<=Be.DIGIT_NINE){this.bufferedNumber.appendChar(i);continue}r-=1,this.state=Ie.START,this.emitNumber();continue;case Ie.TRUE1:if(i===Be.LATIN_SMALL_LETTER_R){this.state=Ie.TRUE2;continue}break;case Ie.TRUE2:if(i===Be.LATIN_SMALL_LETTER_U){this.state=Ie.TRUE3;continue}break;case Ie.TRUE3:if(i===Be.LATIN_SMALL_LETTER_E){this.state=Ie.START,this.onToken({token:Ke.TRUE,value:!0,offset:this.offset}),this.offset+=3;continue}break;case Ie.FALSE1:if(i===Be.LATIN_SMALL_LETTER_A){this.state=Ie.FALSE2;continue}break;case Ie.FALSE2:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.FALSE3;continue}break;case Ie.FALSE3:if(i===Be.LATIN_SMALL_LETTER_S){this.state=Ie.FALSE4;continue}break;case Ie.FALSE4:if(i===Be.LATIN_SMALL_LETTER_E){this.state=Ie.START,this.onToken({token:Ke.FALSE,value:!1,offset:this.offset}),this.offset+=4;continue}break;case Ie.NULL1:if(i===Be.LATIN_SMALL_LETTER_U){this.state=Ie.NULL2;continue}break;case Ie.NULL2:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.NULL3;continue}break;case Ie.NULL3:if(i===Be.LATIN_SMALL_LETTER_L){this.state=Ie.START,this.onToken({token:Ke.NULL,value:null,offset:this.offset}),this.offset+=3;continue}break;case Ie.SEPARATOR:if(this.separatorIndex+=1,!this.separatorBytes||i!==this.separatorBytes[this.separatorIndex])break;this.separatorIndex===this.separatorBytes.length-1&&(this.state=Ie.START,this.onToken({token:Ke.SEPARATOR,value:this.separator,offset:this.offset+this.separatorIndex}),this.separatorIndex=0);continue;case Ie.BOM:if(i===this.bom[this.bomIndex]){if(this.bomIndex===this.bom.length-1){this.state=Ie.START,this.bom=void 0,this.bomIndex=0;continue}this.bomIndex+=1;continue}break;case Ie.ENDED:if(i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB)continue}throw new ua(`Unexpected "${String.fromCharCode(i)}" at position "${r}" in state ${_c(this.state)}`)}if(this.emitPartialTokens)switch(this.state){case Ie.TRUE1:case Ie.TRUE2:case Ie.TRUE3:this.onToken({token:Ke.TRUE,value:!0,offset:this.offset,partial:!0});break;case Ie.FALSE1:case Ie.FALSE2:case Ie.FALSE3:case Ie.FALSE4:this.onToken({token:Ke.FALSE,value:!1,offset:this.offset,partial:!0});break;case Ie.NULL1:case Ie.NULL2:case Ie.NULL3:this.onToken({token:Ke.NULL,value:null,offset:this.offset,partial:!0});break;case Ie.STRING_DEFAULT:{const r=this.bufferedString.toString();this.onToken({token:Ke.STRING,value:r,offset:this.offset,partial:!0});break}case Ie.NUMBER_AFTER_INITIAL_ZERO:case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:case Ie.NUMBER_AFTER_DECIMAL:case Ie.NUMBER_AFTER_E_AND_DIGIT:try{this.onToken({token:Ke.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset,partial:!0})}catch{}}}catch(t){this.error(t)}}emitNumber(){this.onToken({token:Ke.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset}),this.offset+=this.bufferedNumber.byteLength-1}parseNumber(e){return Number(e)}error(e){this.state!==Ie.ENDED&&(this.state=Ie.ERROR),this.onError(e)}end(){switch(this.state){case Ie.NUMBER_AFTER_INITIAL_ZERO:case Ie.NUMBER_AFTER_INITIAL_NON_ZERO:case Ie.NUMBER_AFTER_DECIMAL:case Ie.NUMBER_AFTER_E_AND_DIGIT:this.state=Ie.ENDED,this.emitNumber(),this.onEnd();break;case Ie.BOM_OR_START:case Ie.START:case Ie.ERROR:case Ie.SEPARATOR:this.state=Ie.ENDED,this.onEnd();break;default:this.error(new ua(`Tokenizer ended in the middle of a token (state: ${_c(this.state)}). Either not all the data was received or the data was invalid.`))}}onToken(e){throw new ua(`Can't emit tokens before the "onToken" callback has been set up.`)}onError(e){throw e}onEnd(){}},Lt;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(Lt||(Lt={}));var nt;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(nt||(nt={}));function Ec(e){return["VALUE","KEY","COLON","COMMA","ENDED","ERROR","SEPARATOR"][e]}var wE={paths:void 0,keepStack:!0,separator:void 0,emitPartialValues:!1},Cn=class Sf extends Error{constructor(t){super(t),Object.setPrototypeOf(this,Sf.prototype)}},SE=class{constructor(e){this.state=nt.VALUE,this.mode=void 0,this.key=void 0,this.value=void 0,this.stack=[],e=Object.assign(Object.assign({},wE),e),e.paths&&(this.paths=e.paths.map(t=>{if(t===void 0||t==="$*")return;if(!t.startsWith("$"))throw new Cn(`Invalid selector "${t}". Should start with "$".`);const r=t.split(".").slice(1);if(r.includes(""))throw new Cn(`Invalid selector "${t}". ".." syntax not supported.`);return r})),this.keepStack=e.keepStack||!1,this.separator=e.separator,e.emitPartialValues||(this.emitPartial=()=>{})}shouldEmit(){return this.paths?this.paths.some(e=>{var t;if(e===void 0)return!0;if(e.length!==this.stack.length)return!1;for(let i=0;i<e.length-1;i++){const s=e[i],h=this.stack[i+1].key;if(s!=="*"&&s!==h?.toString())return!1}const r=e[e.length-1];return r==="*"?!0:r===((t=this.key)===null||t===void 0?void 0:t.toString())}):!0}push(){this.stack.push({key:this.key,value:this.value,mode:this.mode,emit:this.shouldEmit()})}pop(){const e=this.value;let t;({key:this.key,value:this.value,mode:this.mode,emit:t}=this.stack.pop()),this.state=this.mode!==void 0?nt.COMMA:nt.VALUE,this.emit(e,t)}emit(e,t){!this.keepStack&&this.value&&this.stack.every(r=>!r.emit)&&delete this.value[this.key],t&&this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack}),this.stack.length===0&&(this.separator?this.state=nt.SEPARATOR:this.separator===void 0&&this.end())}emitPartial(e){if(this.shouldEmit()){if(this.state===nt.KEY){this.onValue({value:void 0,key:e,parent:this.value,stack:this.stack,partial:!0});return}this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack,partial:!0})}}get isEnded(){return this.state===nt.ENDED}write({token:e,value:t,partial:r}){try{if(r){this.emitPartial(t);return}if(this.state===nt.VALUE){if(e===Ke.STRING||e===Ke.NUMBER||e===Ke.TRUE||e===Ke.FALSE||e===Ke.NULL){this.mode===Lt.OBJECT?(this.value[this.key]=t,this.state=nt.COMMA):this.mode===Lt.ARRAY&&(this.value.push(t),this.state=nt.COMMA),this.emit(t,this.shouldEmit());return}if(e===Ke.LEFT_BRACE){if(this.push(),this.mode===Lt.OBJECT)this.value=this.value[this.key]={};else if(this.mode===Lt.ARRAY){const i={};this.value.push(i),this.value=i}else this.value={};this.mode=Lt.OBJECT,this.state=nt.KEY,this.key=void 0,this.emitPartial();return}if(e===Ke.LEFT_BRACKET){if(this.push(),this.mode===Lt.OBJECT)this.value=this.value[this.key]=[];else if(this.mode===Lt.ARRAY){const i=[];this.value.push(i),this.value=i}else this.value=[];this.mode=Lt.ARRAY,this.state=nt.VALUE,this.key=0,this.emitPartial();return}if(this.mode===Lt.ARRAY&&e===Ke.RIGHT_BRACKET&&this.value.length===0){this.pop();return}}if(this.state===nt.KEY){if(e===Ke.STRING){this.key=t,this.state=nt.COLON,this.emitPartial();return}if(e===Ke.RIGHT_BRACE&&Object.keys(this.value).length===0){this.pop();return}}if(this.state===nt.COLON&&e===Ke.COLON){this.state=nt.VALUE;return}if(this.state===nt.COMMA){if(e===Ke.COMMA){if(this.mode===Lt.ARRAY){this.state=nt.VALUE,this.key+=1;return}if(this.mode===Lt.OBJECT){this.state=nt.KEY;return}}if(e===Ke.RIGHT_BRACE&&this.mode===Lt.OBJECT||e===Ke.RIGHT_BRACKET&&this.mode===Lt.ARRAY){this.pop();return}}if(this.state===nt.SEPARATOR&&e===Ke.SEPARATOR&&t===this.separator){this.state=nt.VALUE;return}if(e===Ke.SEPARATOR&&this.state!==nt.SEPARATOR&&Array.from(t).map(i=>i.charCodeAt(0)).every(i=>i===Be.SPACE||i===Be.NEWLINE||i===Be.CARRIAGE_RETURN||i===Be.TAB))return;throw new Cn(`Unexpected ${Ke[e]} (${JSON.stringify(t)}) in state ${Ec(this.state)}`)}catch(i){this.error(i)}}error(e){this.state!==nt.ENDED&&(this.state=nt.ERROR),this.onError(e)}end(){this.state!==nt.VALUE&&this.state!==nt.SEPARATOR||this.stack.length>0?this.error(new Error(`Parser ended in mid-parsing (state: ${Ec(this.state)}). Either not all the data was received or the data was invalid.`)):(this.state=nt.ENDED,this.onEnd())}onValue(e){throw new Cn(`Can't emit data before the "onValue" callback has been set up.`)}onError(e){throw e}onEnd(){}},DE=class{constructor(e={}){this.tokenizer=new bE(e),this.tokenParser=new SE(e),this.tokenizer.onToken=this.tokenParser.write.bind(this.tokenParser),this.tokenizer.onEnd=()=>{this.tokenParser.isEnded||this.tokenParser.end()},this.tokenParser.onError=this.tokenizer.error.bind(this.tokenizer),this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end()}}get isEnded(){return this.tokenizer.isEnded&&this.tokenParser.isEnded}write(e){this.tokenizer.write(e)}end(){this.tokenizer.end()}set onToken(e){this.tokenizer.onToken=t=>{e(t),this.tokenParser.write(t)}}set onValue(e){this.tokenParser.onValue=e}set onError(e){this.tokenizer.onError=e}set onEnd(e){this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end(),e.call(this.tokenParser)}}},Fa=/[\p{Lu}]/u,AE=/[\p{Ll}]/u,CE=/^[\p{Lu}](?![\p{Lu}])/u,ln=/[_.\- ]+/,Df=/([\p{Alpha}\p{N}_]|$)/u,TE=new RegExp("^"+ln.source),RE=new RegExp(ln.source+Df.source,"gu"),OE=new RegExp(String.raw`\d+`+Df.source,"gu"),IE=(e,t,r,i)=>{let s=!1,h=!1,a=!1,n=!1;for(let l=0;l<e.length;l++){const u=e[l];n=l>2?e[l-3]==="-":!0,s&&Fa.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),s=!1,a=h,h=!0,l++):h&&a&&AE.test(u)&&(!n||i)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),a=h,h=!1,s=!0):(s=t(u)===u&&r(u)!==u,a=h,h=r(u)===u&&t(u)!==u)}return e},kE=(e,t)=>e.replace(CE,r=>t(r)),LE=(e,t,r)=>{let i="",s=!1,h=!1;const a=[...e];for(let n=0;n<a.length;n++){const l=a[n],u=Fa.test(l),f=n+1<a.length&&Fa.test(a[n+1]);s&&/[\p{Alpha}]/u.test(l)?(i+=l,s=!1,h=u):r&&u&&(h||f)?(i+=l,h=!0):/\d/.test(l)?(i+=l,s=!0,h=!1):ln.test(l)?(i+=l,h=!1):(i+=t(l),s=!1,h=!1)}return i},FE=(e,t,{capitalizeAfterNumber:r})=>{const i=r?(s,h,a,n)=>{const l=n.charAt(a+s.length);return ln.test(l)?s:h?s.slice(0,-h.length)+t(h):s}:s=>s;return e.replaceAll(OE,i).replaceAll(RE,(s,h)=>t(h))};function NE(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,capitalizeAfterNumber:!0,...t},Array.isArray(e)?e=e.map(h=>h.trim()).filter(h=>h.length>0).join("-"):e=e.trim(),e.length===0)return"";const r=e.match(/^[_$]*/)[0];if(e=e.slice(r.length),e.length===0)return r;const i=t.locale===!1?h=>h.toLowerCase():h=>h.toLocaleLowerCase(t.locale),s=t.locale===!1?h=>h.toUpperCase():h=>h.toLocaleUpperCase(t.locale);return e.length===1?ln.test(e)?r:r+(t.pascalCase?s(e):i(e)):(e!==i(e)&&(e=IE(e,i,s,t.preserveConsecutiveUppercase)),e=e.replace(TE,""),t.capitalizeAfterNumber?e=t.preserveConsecutiveUppercase?kE(e,i):i(e):e=LE(e,i,t.preserveConsecutiveUppercase),t.pascalCase&&e.length>0&&(e=s(e[0])+e.slice(1)),r+FE(e,s,t))}var xE=I.__commonJSMin(((e,t)=>{function r(d,p){var g=p&&p.cache?p.cache:c,m=p&&p.serializer?p.serializer:f;return(p&&p.strategy?p.strategy:n)(d,{cache:g,serializer:m})}function i(d){return d==null||typeof d=="number"||typeof d=="boolean"}function s(d,p,g,m){var v=i(m)?m:g(m),y=p.get(v);return typeof y>"u"&&(y=d.call(this,m),p.set(v,y)),y}function h(d,p,g){var m=Array.prototype.slice.call(arguments,3),v=g(m),y=p.get(v);return typeof y>"u"&&(y=d.apply(this,m),p.set(v,y)),y}function a(d,p,g,m,v){return g.bind(p,d,m,v)}function n(d,p){var g=d.length===1?s:h;return a(d,this,g,p.cache.create(),p.serializer)}function l(d,p){return a(d,this,h,p.cache.create(),p.serializer)}function u(d,p){return a(d,this,s,p.cache.create(),p.serializer)}function f(){return JSON.stringify(arguments)}function o(){this.cache=Object.create(null)}o.prototype.has=function(d){return d in this.cache},o.prototype.get=function(d){return this.cache[d]},o.prototype.set=function(d,p){this.cache[d]=p};var c={create:function(){return new o}};t.exports=r,t.exports.strategies={variadic:l,monadic:u}})),$E=I.__commonJSMin(((e,t)=>{var{hasOwnProperty:r}=Object.prototype,i=(u,f={})=>{typeof f=="string"&&(f={section:f}),f.align=f.align===!0,f.newline=f.newline===!0,f.sort=f.sort===!0,f.whitespace=f.whitespace===!0||f.align===!0,f.platform=f.platform||typeof process<"u"&&process.platform,f.bracketedArray=f.bracketedArray!==!1;const o=f.platform==="win32"?`\r
|
|
424
424
|
`:`
|
|
425
425
|
`,c=f.whitespace?" = ":"=",d=[],p=f.sort?Object.keys(u).sort():Object.keys(u);let g=0;f.align&&(g=n(p.filter(y=>u[y]===null||Array.isArray(u[y])||typeof u[y]!="object").map(y=>Array.isArray(u[y])?`${y}[]`:y).concat([""]).reduce((y,w)=>n(y).length>=n(w).length?y:w)).length);let m="";const v=f.bracketedArray?"[]":"";for(const y of p){const w=u[y];if(w&&Array.isArray(w))for(const _ of w)m+=n(`${y}${v}`).padEnd(g," ")+c+n(_)+o;else w&&typeof w=="object"?d.push(y):m+=n(y).padEnd(g," ")+c+n(w)+o}f.section&&m.length&&(m="["+n(f.section)+"]"+(f.newline?o+o:o)+m);for(const y of d){const w=s(y,".").join("\\."),_=(f.section?f.section+".":"")+w,b=i(u[y],{...f,section:_});m.length&&b.length&&(m+=o),m+=b}return m};function s(u,f){var o=0,c=0,d=0,p=[];do if(d=u.indexOf(f,o),d!==-1){if(o=d+f.length,d>0&&u[d-1]==="\\")continue;p.push(u.slice(c,d)),c=d+f.length}while(d!==-1);return p.push(u.slice(c)),p}var h=(u,f={})=>{f.bracketedArray=f.bracketedArray!==!1;const o=Object.create(null);let c=o,d=null;const p=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,g=u.split(/[\r\n]+/g),m={};for(const y of g){if(!y||y.match(/^\s*[;#]/)||y.match(/^\s*$/))continue;const w=y.match(p);if(!w)continue;if(w[1]!==void 0){if(d=l(w[1]),d==="__proto__"){c=Object.create(null);continue}c=o[d]=o[d]||Object.create(null);continue}const _=l(w[2]);let b;f.bracketedArray?b=_.length>2&&_.slice(-2)==="[]":(m[_]=(m?.[_]||0)+1,b=m[_]>1);const E=b&&_.endsWith("[]")?_.slice(0,-2):_;if(E==="__proto__")continue;const S=w[3]?l(w[4]):!0,A=S==="true"||S==="false"||S==="null"?JSON.parse(S):S;b&&(r.call(c,E)?Array.isArray(c[E])||(c[E]=[c[E]]):c[E]=[]),Array.isArray(c[E])?c[E].push(A):c[E]=A}const v=[];for(const y of Object.keys(o)){if(!r.call(o,y)||typeof o[y]!="object"||Array.isArray(o[y]))continue;const w=s(y,".");c=o;const _=w.pop(),b=_.replace(/\\\./g,".");for(const E of w)E!=="__proto__"&&((!r.call(c,E)||typeof c[E]!="object")&&(c[E]=Object.create(null)),c=c[E]);c===o&&b===_||(c[b]=o[y],v.push(y))}for(const y of v)delete o[y];return o},a=u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),n=u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&a(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),l=u=>{if(u=(u||"").trim(),a(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let f=!1,o="";for(let c=0,d=u.length;c<d;c++){const p=u.charAt(c);if(f)"\\;#".indexOf(p)!==-1?o+=p:o+="\\"+p,f=!1;else{if(";#".indexOf(p)!==-1)break;p==="\\"?f=!0:o+=p}}return f&&(o+="\\"),o.trim()}return u};t.exports={parse:h,decode:h,stringify:i,encode:i,safe:n,unsafe:l}})),Af=I.__commonJSMin(((e,t)=>{var{URL:r}=require("node:url");function i(u){try{let o=new r(u).pathname.slice(1);if(!o.match(/^-/)){o=o.split("/");var f=o.indexOf("_rewrite");return f===-1?f=o.length-1:f++,decodeURIComponent(o[f])}}catch{}}var s=class extends Error{constructor(u,f,o,c){super(),this.name=this.constructor.name,this.headers=typeof f.headers?.raw=="function"?f.headers.raw():f.headers,this.statusCode=f.status,this.code=`E${f.status}`,this.method=u,this.uri=f.url,this.body=o,this.pkgid=c?c.toString():i(f.url),Error.captureStackTrace(this,this.constructor)}},h=class extends s{constructor(u,f,o,c){super(u,f,o,c),this.message=`${f.status} ${f.statusText} - ${this.method.toUpperCase()} ${this.spec||this.uri}${o&&o.error?" - "+o.error:""}`}},a=class extends s{constructor(u,f,o,c){super(u,f,o,c),this.message="OTP required for authentication",this.code="EOTP"}},n=class extends s{constructor(u,f,o,c){super(u,f,o,c),this.message="Login is not allowed from your IP address",this.code="EAUTHIP"}},l=class extends s{constructor(u,f,o,c){super(u,f,o,c),this.message="Unable to authenticate, need: "+f.headers.get("www-authenticate")}};t.exports={HttpErrorBase:s,HttpErrorGeneral:h,HttpErrorAuthOTP:a,HttpErrorAuthIPAddress:n,HttpErrorAuthUnknown:l}})),Ot=I.__commonJSMin((e=>{var t=e&&e.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=require("node:events"),s=t(require("node:stream")),h=require("node:string_decoder"),a=k=>!!k&&typeof k=="object"&&(k instanceof ne||k instanceof s.default||(0,e.isReadable)(k)||(0,e.isWritable)(k));e.isStream=a;var n=k=>!!k&&typeof k=="object"&&k instanceof i.EventEmitter&&typeof k.pipe=="function"&&k.pipe!==s.default.Writable.prototype.pipe;e.isReadable=n;var l=k=>!!k&&typeof k=="object"&&k instanceof i.EventEmitter&&typeof k.write=="function"&&typeof k.end=="function";e.isWritable=l;var u=Symbol("EOF"),f=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),c=Symbol("emittingEnd"),d=Symbol("emittedError"),p=Symbol("closed"),g=Symbol("read"),m=Symbol("flush"),v=Symbol("flushChunk"),y=Symbol("encoding"),w=Symbol("decoder"),_=Symbol("flowing"),b=Symbol("paused"),E=Symbol("resume"),S=Symbol("buffer"),A=Symbol("pipes"),C=Symbol("bufferLength"),T=Symbol("bufferPush"),U=Symbol("bufferShift"),$=Symbol("objectMode"),z=Symbol("destroyed"),V=Symbol("error"),H=Symbol("emitData"),L=Symbol("emitEnd"),N=Symbol("emitEnd2"),q=Symbol("async"),J=Symbol("abort"),P=Symbol("aborted"),B=Symbol("signal"),F=Symbol("dataListeners"),O=Symbol("discarded"),x=k=>Promise.resolve().then(k),Y=k=>k(),oe=k=>k==="end"||k==="finish"||k==="prefinish",pe=k=>k instanceof ArrayBuffer||!!k&&typeof k=="object"&&k.constructor&&k.constructor.name==="ArrayBuffer"&&k.byteLength>=0,ye=k=>!Buffer.isBuffer(k)&&ArrayBuffer.isView(k),W=class{src;dest;opts;ondrain;constructor(k,j,ee){this.src=k,this.dest=j,this.opts=ee,this.ondrain=()=>k[E](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(k){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},M=class extends W{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(k,j,ee){super(k,j,ee),this.proxyErrors=Se=>this.dest.emit("error",Se),k.on("error",this.proxyErrors)}},G=k=>!!k.objectMode,X=k=>!k.objectMode&&!!k.encoding&&k.encoding!=="buffer",ne=class extends i.EventEmitter{[_]=!1;[b]=!1;[A]=[];[S]=[];[$];[y];[q];[w];[u]=!1;[o]=!1;[c]=!1;[p]=!1;[d]=null;[C]=0;[z]=!1;[B];[P]=!1;[F]=0;[O]=!1;writable=!0;readable=!0;constructor(...k){const j=k[0]||{};if(super(),j.objectMode&&typeof j.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");G(j)?(this[$]=!0,this[y]=null):X(j)?(this[y]=j.encoding,this[$]=!1):(this[$]=!1,this[y]=null),this[q]=!!j.async,this[w]=this[y]?new h.StringDecoder(this[y]):null,j&&j.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),j&&j.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[A]});const{signal:ee}=j;ee&&(this[B]=ee,ee.aborted?this[J]():ee.addEventListener("abort",()=>this[J]()))}get bufferLength(){return this[C]}get encoding(){return this[y]}set encoding(k){throw new Error("Encoding must be set at instantiation time")}setEncoding(k){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[$]}set objectMode(k){throw new Error("objectMode must be set at instantiation time")}get async(){return this[q]}set async(k){this[q]=this[q]||!!k}[J](){this[P]=!0,this.emit("abort",this[B]?.reason),this.destroy(this[B]?.reason)}get aborted(){return this[P]}set aborted(k){}write(k,j,ee){if(this[P])return!1;if(this[u])throw new Error("write after end");if(this[z])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof j=="function"&&(ee=j,j="utf8"),j||(j="utf8");const Se=this[q]?x:Y;if(!this[$]&&!Buffer.isBuffer(k)){if(ye(k))k=Buffer.from(k.buffer,k.byteOffset,k.byteLength);else if(pe(k))k=Buffer.from(k);else if(typeof k!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[$]?(this[_]&&this[C]!==0&&this[m](!0),this[_]?this.emit("data",k):this[T](k),this[C]!==0&&this.emit("readable"),ee&&Se(ee),this[_]):k.length?(typeof k=="string"&&!(j===this[y]&&!this[w]?.lastNeed)&&(k=Buffer.from(k,j)),Buffer.isBuffer(k)&&this[y]&&(k=this[w].write(k)),this[_]&&this[C]!==0&&this[m](!0),this[_]?this.emit("data",k):this[T](k),this[C]!==0&&this.emit("readable"),ee&&Se(ee),this[_]):(this[C]!==0&&this.emit("readable"),ee&&Se(ee),this[_])}read(k){if(this[z])return null;if(this[O]=!1,this[C]===0||k===0||k&&k>this[C])return this[f](),null;this[$]&&(k=null),this[S].length>1&&!this[$]&&(this[S]=[this[y]?this[S].join(""):Buffer.concat(this[S],this[C])]);const j=this[g](k||null,this[S][0]);return this[f](),j}[g](k,j){if(this[$])this[U]();else{const ee=j;k===ee.length||k===null?this[U]():typeof ee=="string"?(this[S][0]=ee.slice(k),j=ee.slice(0,k),this[C]-=k):(this[S][0]=ee.subarray(k),j=ee.subarray(0,k),this[C]-=k)}return this.emit("data",j),!this[S].length&&!this[u]&&this.emit("drain"),j}end(k,j,ee){return typeof k=="function"&&(ee=k,k=void 0),typeof j=="function"&&(ee=j,j="utf8"),k!==void 0&&this.write(k,j),ee&&this.once("end",ee),this[u]=!0,this.writable=!1,(this[_]||!this[b])&&this[f](),this}[E](){this[z]||(!this[F]&&!this[A].length&&(this[O]=!0),this[b]=!1,this[_]=!0,this.emit("resume"),this[S].length?this[m]():this[u]?this[f]():this.emit("drain"))}resume(){return this[E]()}pause(){this[_]=!1,this[b]=!0,this[O]=!1}get destroyed(){return this[z]}get flowing(){return this[_]}get paused(){return this[b]}[T](k){this[$]?this[C]+=1:this[C]+=k.length,this[S].push(k)}[U](){return this[$]?this[C]-=1:this[C]-=this[S][0].length,this[S].shift()}[m](k=!1){do;while(this[v](this[U]())&&this[S].length);!k&&!this[S].length&&!this[u]&&this.emit("drain")}[v](k){return this.emit("data",k),this[_]}pipe(k,j){if(this[z])return k;this[O]=!1;const ee=this[o];return j=j||{},k===r.stdout||k===r.stderr?j.end=!1:j.end=j.end!==!1,j.proxyErrors=!!j.proxyErrors,ee?j.end&&k.end():(this[A].push(j.proxyErrors?new M(this,k,j):new W(this,k,j)),this[q]?x(()=>this[E]()):this[E]()),k}unpipe(k){const j=this[A].find(ee=>ee.dest===k);j&&(this[A].length===1?(this[_]&&this[F]===0&&(this[_]=!1),this[A]=[]):this[A].splice(this[A].indexOf(j),1),j.unpipe())}addListener(k,j){return this.on(k,j)}on(k,j){const ee=super.on(k,j);if(k==="data")this[O]=!1,this[F]++,!this[A].length&&!this[_]&&this[E]();else if(k==="readable"&&this[C]!==0)super.emit("readable");else if(oe(k)&&this[o])super.emit(k),this.removeAllListeners(k);else if(k==="error"&&this[d]){const Se=j;this[q]?x(()=>Se.call(this,this[d])):Se.call(this,this[d])}return ee}removeListener(k,j){return this.off(k,j)}off(k,j){const ee=super.off(k,j);return k==="data"&&(this[F]=this.listeners("data").length,this[F]===0&&!this[O]&&!this[A].length&&(this[_]=!1)),ee}removeAllListeners(k){const j=super.removeAllListeners(k);return(k==="data"||k===void 0)&&(this[F]=0,!this[O]&&!this[A].length&&(this[_]=!1)),j}get emittedEnd(){return this[o]}[f](){!this[c]&&!this[o]&&!this[z]&&this[S].length===0&&this[u]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[p]&&this.emit("close"),this[c]=!1)}emit(k,...j){const ee=j[0];if(k!=="error"&&k!=="close"&&k!==z&&this[z])return!1;if(k==="data")return!this[$]&&!ee?!1:this[q]?(x(()=>this[H](ee)),!0):this[H](ee);if(k==="end")return this[L]();if(k==="close"){if(this[p]=!0,!this[o]&&!this[z])return!1;const De=super.emit("close");return this.removeAllListeners("close"),De}else if(k==="error"){this[d]=ee,super.emit(V,ee);const De=!this[B]||this.listeners("error").length?super.emit("error",ee):!1;return this[f](),De}else if(k==="resume"){const De=super.emit("resume");return this[f](),De}else if(k==="finish"||k==="prefinish"){const De=super.emit(k);return this.removeAllListeners(k),De}const Se=super.emit(k,...j);return this[f](),Se}[H](k){for(const ee of this[A])ee.dest.write(k)===!1&&this.pause();const j=this[O]?!1:super.emit("data",k);return this[f](),j}[L](){return this[o]?!1:(this[o]=!0,this.readable=!1,this[q]?(x(()=>this[N]()),!0):this[N]())}[N](){if(this[w]){const j=this[w].end();if(j){for(const ee of this[A])ee.dest.write(j);this[O]||super.emit("data",j)}}for(const j of this[A])j.end();const k=super.emit("end");return this.removeAllListeners("end"),k}async collect(){const k=Object.assign([],{dataLength:0});this[$]||(k.dataLength=0);const j=this.promise();return this.on("data",ee=>{k.push(ee),this[$]||(k.dataLength+=ee.length)}),await j,k}async concat(){if(this[$])throw new Error("cannot concat in objectMode");const k=await this.collect();return this[y]?k.join(""):Buffer.concat(k,k.dataLength)}async promise(){return new Promise((k,j)=>{this.on(z,()=>j(new Error("stream destroyed"))),this.on("error",ee=>j(ee)),this.on("end",()=>k())})}[Symbol.asyncIterator](){this[O]=!1;let k=!1;const j=async()=>(this.pause(),k=!0,{value:void 0,done:!0});return{next:()=>{if(k)return j();const Se=this.read();if(Se!==null)return Promise.resolve({done:!1,value:Se});if(this[u])return j();let De,ve;const $e=D=>{this.off("data",xe),this.off("end",Pe),this.off(z,Re),j(),ve(D)},xe=D=>{this.off("error",$e),this.off("end",Pe),this.off(z,Re),this.pause(),De({value:D,done:!!this[u]})},Pe=()=>{this.off("error",$e),this.off("data",xe),this.off(z,Re),j(),De({done:!0,value:void 0})},Re=()=>$e(new Error("stream destroyed"));return new Promise((D,se)=>{ve=se,De=D,this.once(z,Re),this.once("error",$e),this.once("end",Pe),this.once("data",xe)})},throw:j,return:j,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[O]=!1;let k=!1;const j=()=>(this.pause(),this.off(V,j),this.off(z,j),this.off("end",j),k=!0,{done:!0,value:void 0}),ee=()=>{if(k)return j();const Se=this.read();return Se===null?j():{done:!1,value:Se}};return this.once("end",j),this.once(V,j),this.once(z,j),{next:ee,throw:j,return:j,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(k){if(this[z])return k?this.emit("error",k):this.emit(z),this;this[z]=!0,this[O]=!0,this[S].length=0,this[C]=0;const j=this;return typeof j.close=="function"&&!this[p]&&j.close(),k?this.emit("error",k):this.emit(z),this}static get isStream(){return e.isStream}};e.Minipass=ne})),bc=I.__commonJSMin((e=>{var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.constants=void 0;var r=t(require("zlib")).default.constants||{ZLIB_VERNUM:4736};e.constants=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))})),Cf=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(N,q,J,P){P===void 0&&(P=J);var B=Object.getOwnPropertyDescriptor(q,J);(!B||("get"in B?!q.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return q[J]}}),Object.defineProperty(N,P,B)}):(function(N,q,J,P){P===void 0&&(P=J),N[P]=q[J]})),r=e&&e.__setModuleDefault||(Object.create?(function(N,q){Object.defineProperty(N,"default",{enumerable:!0,value:q})}):function(N,q){N.default=q}),i=e&&e.__importStar||(function(){var N=function(q){return N=Object.getOwnPropertyNames||function(J){var P=[];for(var B in J)Object.prototype.hasOwnProperty.call(J,B)&&(P[P.length]=B);return P},N(q)};return function(q){if(q&&q.__esModule)return q;var J={};if(q!=null)for(var P=N(q),B=0;B<P.length;B++)P[B]!=="default"&&t(J,q,P[B]);return r(J,q),J}})(),s=e&&e.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(e,"__esModule",{value:!0}),e.ZstdDecompress=e.ZstdCompress=e.BrotliDecompress=e.BrotliCompress=e.Unzip=e.InflateRaw=e.DeflateRaw=e.Gunzip=e.Gzip=e.Inflate=e.Deflate=e.Zlib=e.ZlibError=e.constants=void 0;var h=s(require("assert")),a=require("buffer"),n=Ot(),l=i(require("zlib")),u=bc(),f=bc();Object.defineProperty(e,"constants",{enumerable:!0,get:function(){return f.constants}});var o=a.Buffer.concat,c=Object.getOwnPropertyDescriptor(a.Buffer,"concat"),d=N=>N,p=c?.writable===!0||c?.set!==void 0?N=>{a.Buffer.concat=N?d:o}:N=>{},g=Symbol("_superWrite"),m=class extends Error{code;errno;constructor(N,q){super("zlib: "+N.message,{cause:N}),this.code=N.code,this.errno=N.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+N.message,Error.captureStackTrace(this,q??this.constructor)}get name(){return"ZlibError"}};e.ZlibError=m;var v=Symbol("flushFlag"),y=class extends n.Minipass{#e=!1;#t=!1;#r;#n;#a;#l;#f;get sawError(){return this.#e}get handle(){return this.#l}get flushFlag(){return this.#r}constructor(N,q){if(!N||typeof N!="object")throw new TypeError("invalid options for ZlibBase constructor");if(super(N),this.#r=N.flush??0,this.#n=N.finishFlush??0,this.#a=N.fullFlushFlag??0,typeof l[q]!="function")throw new TypeError("Compression method not supported: "+q);try{this.#l=new l[q](N)}catch(J){throw new m(J,this.constructor)}this.#f=J=>{this.#e||(this.#e=!0,this.close(),this.emit("error",J))},this.#l?.on("error",J=>this.#f(new m(J))),this.once("end",()=>this.close)}close(){this.#l&&(this.#l.close(),this.#l=void 0,this.emit("close"))}reset(){if(!this.#e)return(0,h.default)(this.#l,"zlib binding closed"),this.#l.reset?.()}flush(N){this.ended||(typeof N!="number"&&(N=this.#a),this.write(Object.assign(a.Buffer.alloc(0),{[v]:N})))}end(N,q,J){return typeof N=="function"&&(J=N,q=void 0,N=void 0),typeof q=="function"&&(J=q,q=void 0),N&&(q?this.write(N,q):this.write(N)),this.flush(this.#n),this.#t=!0,super.end(J)}get ended(){return this.#t}[g](N){return super.write(N)}write(N,q,J){if(typeof q=="function"&&(J=q,q="utf8"),typeof N=="string"&&(N=a.Buffer.from(N,q)),this.#e)return;(0,h.default)(this.#l,"zlib binding closed");const P=this.#l._handle,B=P.close;P.close=()=>{};const F=this.#l.close;this.#l.close=()=>{},p(!0);let O;try{const Y=typeof N[v]=="number"?N[v]:this.#r;O=this.#l._processChunk(N,Y),p(!1)}catch(Y){p(!1),this.#f(new m(Y,this.write))}finally{this.#l&&(this.#l._handle=P,P.close=B,this.#l.close=F,this.#l.removeAllListeners("error"))}this.#l&&this.#l.on("error",Y=>this.#f(new m(Y,this.write)));let x;if(O)if(Array.isArray(O)&&O.length>0){const Y=O[0];x=this[g](a.Buffer.from(Y));for(let oe=1;oe<O.length;oe++)x=this[g](O[oe])}else x=this[g](a.Buffer.from(O));return J&&J(),x}},w=class extends y{#e;#t;constructor(N,q){N=N||{},N.flush=N.flush||u.constants.Z_NO_FLUSH,N.finishFlush=N.finishFlush||u.constants.Z_FINISH,N.fullFlushFlag=u.constants.Z_FULL_FLUSH,super(N,q),this.#e=N.level,this.#t=N.strategy}params(N,q){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==N||this.#t!==q){this.flush(u.constants.Z_SYNC_FLUSH),(0,h.default)(this.handle,"zlib binding closed");const J=this.handle.flush;this.handle.flush=(P,B)=>{typeof P=="function"&&(B=P,P=this.flushFlag),this.flush(P),B?.()};try{this.handle.params(N,q)}finally{this.handle.flush=J}this.handle&&(this.#e=N,this.#t=q)}}}};e.Zlib=w;var _=class extends w{constructor(N){super(N,"Deflate")}};e.Deflate=_;var b=class extends w{constructor(N){super(N,"Inflate")}};e.Inflate=b;var E=class extends w{#e;constructor(N){super(N,"Gzip"),this.#e=N&&!!N.portable}[g](N){return this.#e?(this.#e=!1,N[9]=255,super[g](N)):super[g](N)}};e.Gzip=E;var S=class extends w{constructor(N){super(N,"Gunzip")}};e.Gunzip=S;var A=class extends w{constructor(N){super(N,"DeflateRaw")}};e.DeflateRaw=A;var C=class extends w{constructor(N){super(N,"InflateRaw")}};e.InflateRaw=C;var T=class extends w{constructor(N){super(N,"Unzip")}};e.Unzip=T;var U=class extends y{constructor(N,q){N=N||{},N.flush=N.flush||u.constants.BROTLI_OPERATION_PROCESS,N.finishFlush=N.finishFlush||u.constants.BROTLI_OPERATION_FINISH,N.fullFlushFlag=u.constants.BROTLI_OPERATION_FLUSH,super(N,q)}},$=class extends U{constructor(N){super(N,"BrotliCompress")}};e.BrotliCompress=$;var z=class extends U{constructor(N){super(N,"BrotliDecompress")}};e.BrotliDecompress=z;var V=class extends y{constructor(N,q){N=N||{},N.flush=N.flush||u.constants.ZSTD_e_continue,N.finishFlush=N.finishFlush||u.constants.ZSTD_e_end,N.fullFlushFlag=u.constants.ZSTD_e_flush,super(N,q)}},H=class extends V{constructor(N){super(N,"ZstdCompress")}};e.ZstdCompress=H;var L=class extends V{constructor(N){super(N,"ZstdDecompress")}};e.ZstdDecompress=L})),BE=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MinipassSized=e.SizeError=void 0;var t=Ot(),r=h=>typeof h=="string",i=class extends Error{expect;found;code="EBADSIZE";constructor(h,a,n){super(`Bad data size: expected ${a} bytes, but got ${h}`),this.expect=a,this.found=h,Error.captureStackTrace(this,n??this.constructor)}get name(){return"SizeError"}};e.SizeError=i;var s=class extends t.Minipass{found=0;expect;constructor(h){const a=h?.size;if(typeof a!="number"||a>Number.MAX_SAFE_INTEGER||isNaN(a)||a<0||!isFinite(a)||a!==Math.floor(a))throw new Error("invalid expected size: "+a);if(super(h),h.objectMode)throw new TypeError(`${this.constructor.name} streams only work with string and buffer data`);this.expect=a}write(h,a,n){const l=Buffer.isBuffer(h)?h:typeof h=="string"?Buffer.from(h,r(a)?a:"utf8"):h;return typeof a=="function"&&(n=a,a=null),Buffer.isBuffer(l)?(this.found+=l.length,this.found>this.expect&&this.emit("error",new i(this.found,this.expect)),super.write(h,a,n)):(this.emit("error",new TypeError(`${this.constructor.name} streams only work with string and buffer data`)),!1)}emit(h,...a){return h==="end"&&this.found!==this.expect&&this.emit("error",new i(this.found,this.expect,this.emit)),super.emit(h,...a)}};e.MinipassSized=s})),ME=I.__commonJSMin(((e,t)=>{var{Minipass:r}=Ot(),i=Symbol("type"),s=Symbol("buffer"),h=class Na{constructor(n,l){this[i]="";const u=[];let f=0;if(n){const c=n,d=Number(c.length);for(let p=0;p<d;p++){const g=c[p],m=g instanceof Buffer?g:ArrayBuffer.isView(g)?Buffer.from(g.buffer,g.byteOffset,g.byteLength):g instanceof ArrayBuffer?Buffer.from(g):g instanceof Na?g[s]:typeof g=="string"?Buffer.from(g):Buffer.from(String(g));f+=m.length,u.push(m)}}this[s]=Buffer.concat(u,f);const o=l&&l.type!==void 0&&String(l.type).toLowerCase();o&&!/[^\u0020-\u007E]/.test(o)&&(this[i]=o)}get size(){return this[s].length}get type(){return this[i]}text(){return Promise.resolve(this[s].toString())}arrayBuffer(){const n=this[s],l=n.byteOffset,u=n.byteLength,f=n.buffer.slice(l,l+u);return Promise.resolve(f)}stream(){return new r().end(this[s])}slice(n,l,u){const f=this.size,o=n===void 0?0:n<0?Math.max(f+n,0):Math.min(n,f),c=l===void 0?f:l<0?Math.max(f+l,0):Math.min(l,f),d=Math.max(c-o,0),p=this[s].slice(o,o+d),g=new Na([],{type:u});return g[s]=p,g}get[Symbol.toStringTag](){return"Blob"}static get BUFFER(){return s}};Object.defineProperties(h.prototype,{size:{enumerable:!0},type:{enumerable:!0}}),t.exports=h})),Tf=I.__commonJSMin(((e,t)=>{var r=class extends Error{constructor(i,s,h){super(i),this.code="FETCH_ERROR",h&&Object.assign(this,h),this.errno=this.code,this.type=this.code==="EBADSIZE"&&this.found>this.expect?"max-size":s,this.message=i,Error.captureStackTrace(this,this.constructor)}get name(){return"FetchError"}set name(i){}get[Symbol.toStringTag](){return"FetchError"}};t.exports=r})),Ar=I.__commonJSMin(((e,t)=>{var r=require("buffer"),i=r.Buffer,s={},h;for(h in r)r.hasOwnProperty(h)&&(h==="SlowBuffer"||h==="Buffer"||(s[h]=r[h]));var a=s.Buffer={};for(h in i)i.hasOwnProperty(h)&&(h==="allocUnsafe"||h==="allocUnsafeSlow"||(a[h]=i[h]));if(s.Buffer.prototype=i.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(n,l,u){if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof n);if(n&&typeof n.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);return i(n,l,u)}),a.alloc||(a.alloc=function(n,l,u){if(typeof n!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof n);if(n<0||n>=2*(1<<30))throw new RangeError('The value "'+n+'" is invalid for option "size"');var f=i(n);return!l||l.length===0?f.fill(0):typeof u=="string"?f.fill(l,u):f.fill(l),f}),!s.kStringMaxLength)try{s.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s})),PE=I.__commonJSMin((e=>{var t="\uFEFF";e.PrependBOM=r;function r(s,h){this.encoder=s,this.addBOM=!0}r.prototype.write=function(s){return this.addBOM&&(s=t+s,this.addBOM=!1),this.encoder.write(s)},r.prototype.end=function(){return this.encoder.end()},e.StripBOM=i;function i(s,h){this.decoder=s,this.pass=!1,this.options=h||{}}i.prototype.write=function(s){var h=this.decoder.write(s);return this.pass||!h||(h[0]===t&&(h=h.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),h},i.prototype.end=function(){return this.decoder.end()}})),Rf=I.__commonJSMin(((e,t)=>{var r=typeof Object.hasOwn>"u"?Function.call.bind(Object.prototype.hasOwnProperty):Object.hasOwn;function i(s,h){for(var a in h)r(h,a)&&(s[a]=h[a])}t.exports=i})),jE=I.__commonJSMin(((e,t)=>{var r=Ar().Buffer;t.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:i};function i(o,c){this.enc=o.encodingName,this.bomAware=o.bomAware,this.enc==="base64"?this.encoder=n:this.enc==="utf8"?this.encoder=f:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=l,r.from("eda0bdedb2a9","hex").toString()!=="💩"&&(this.decoder=u,this.defaultCharUnicode=c.defaultCharUnicode))}i.prototype.encoder=a,i.prototype.decoder=h;var s=require("string_decoder").StringDecoder;function h(o,c){this.decoder=new s(c.enc)}h.prototype.write=function(o){return r.isBuffer(o)||(o=r.from(o)),this.decoder.write(o)},h.prototype.end=function(){return this.decoder.end()};function a(o,c){this.enc=c.enc}a.prototype.write=function(o){return r.from(o,this.enc)},a.prototype.end=function(){};function n(o,c){this.prevStr=""}n.prototype.write=function(o){o=this.prevStr+o;var c=o.length-o.length%4;return this.prevStr=o.slice(c),o=o.slice(0,c),r.from(o,"base64")},n.prototype.end=function(){return r.from(this.prevStr,"base64")};function l(o,c){}l.prototype.write=function(o){for(var c=r.alloc(o.length*3),d=0,p=0;p<o.length;p++){var g=o.charCodeAt(p);g<128?c[d++]=g:g<2048?(c[d++]=192+(g>>>6),c[d++]=128+(g&63)):(c[d++]=224+(g>>>12),c[d++]=128+(g>>>6&63),c[d++]=128+(g&63))}return c.slice(0,d)},l.prototype.end=function(){};function u(o,c){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=c.defaultCharUnicode}u.prototype.write=function(o){for(var c=this.acc,d=this.contBytes,p=this.accBytes,g="",m=0;m<o.length;m++){var v=o[m];(v&192)!==128?(d>0&&(g+=this.defaultCharUnicode,d=0),v<128?g+=String.fromCharCode(v):v<224?(c=v&31,d=1,p=1):v<240?(c=v&15,d=2,p=1):g+=this.defaultCharUnicode):d>0?(c=c<<6|v&63,d--,p++,d===0&&(p===2&&c<128&&c>0?g+=this.defaultCharUnicode:p===3&&c<2048?g+=this.defaultCharUnicode:g+=String.fromCharCode(c))):g+=this.defaultCharUnicode}return this.acc=c,this.contBytes=d,this.accBytes=p,g},u.prototype.end=function(){var o=0;return this.contBytes>0&&(o+=this.defaultCharUnicode),o};function f(o,c){this.highSurrogate=""}f.prototype.write=function(o){if(this.highSurrogate&&(o=this.highSurrogate+o,this.highSurrogate=""),o.length>0){var c=o.charCodeAt(o.length-1);c>=55296&&c<56320&&(this.highSurrogate=o[o.length-1],o=o.slice(0,o.length-1))}return r.from(o,this.enc)},f.prototype.end=function(){if(this.highSurrogate){var o=this.highSurrogate;return this.highSurrogate="",r.from(o,this.enc)}}})),UE=I.__commonJSMin((e=>{var t=Ar().Buffer;e._utf32=r;function r(f,o){this.iconv=o,this.bomAware=!0,this.isLE=f.isLE}e.utf32le={type:"_utf32",isLE:!0},e.utf32be={type:"_utf32",isLE:!1},e.ucs4le="utf32le",e.ucs4be="utf32be",r.prototype.encoder=i,r.prototype.decoder=s;function i(f,o){this.isLE=o.isLE,this.highSurrogate=0}i.prototype.write=function(f){for(var o=t.from(f,"ucs2"),c=t.alloc(o.length*2),d=this.isLE?c.writeUInt32LE:c.writeUInt32BE,p=0,g=0;g<o.length;g+=2){var m=o.readUInt16LE(g),v=m>=55296&&m<56320,y=m>=56320&&m<57344;if(this.highSurrogate)if(v||!y)d.call(c,this.highSurrogate,p),p+=4;else{var w=(this.highSurrogate-55296<<10|m-56320)+65536;d.call(c,w,p),p+=4,this.highSurrogate=0;continue}v?this.highSurrogate=m:(d.call(c,m,p),p+=4,this.highSurrogate=0)}return p<c.length&&(c=c.slice(0,p)),c},i.prototype.end=function(){if(this.highSurrogate){var f=t.alloc(4);return this.isLE?f.writeUInt32LE(this.highSurrogate,0):f.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,f}};function s(f,o){this.isLE=o.isLE,this.badChar=o.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}s.prototype.write=function(f){if(f.length===0)return"";var o=0,c=0,d=t.alloc(f.length+4),p=0,g=this.isLE,m=this.overflow,v=this.badChar;if(m.length>0){for(;o<f.length&&m.length<4;o++)m.push(f[o]);m.length===4&&(g?c=m[o]|m[o+1]<<8|m[o+2]<<16|m[o+3]<<24:c=m[o+3]|m[o+2]<<8|m[o+1]<<16|m[o]<<24,m.length=0,p=h(d,p,c,v))}for(;o<f.length-3;o+=4)g?c=f[o]|f[o+1]<<8|f[o+2]<<16|f[o+3]<<24:c=f[o+3]|f[o+2]<<8|f[o+1]<<16|f[o]<<24,p=h(d,p,c,v);for(;o<f.length;o++)m.push(f[o]);return d.slice(0,p).toString("ucs2")};function h(f,o,c,d){if((c<0||c>1114111)&&(c=d),c>=65536){c-=65536;var p=55296|c>>10;f[o++]=p&255,f[o++]=p>>8;var c=56320|c&1023}return f[o++]=c&255,f[o++]=c>>8,o}s.prototype.end=function(){this.overflow.length=0},e.utf32=a,e.ucs4="utf32";function a(f,o){this.iconv=o}a.prototype.encoder=n,a.prototype.decoder=l;function n(f,o){f=f||{},f.addBOM===void 0&&(f.addBOM=!0),this.encoder=o.iconv.getEncoder(f.defaultEncoding||"utf-32le",f)}n.prototype.write=function(f){return this.encoder.write(f)},n.prototype.end=function(){return this.encoder.end()};function l(f,o){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=f||{},this.iconv=o.iconv}l.prototype.write=function(f){if(!this.decoder){if(this.initialBufs.push(f),this.initialBufsLen+=f.length,this.initialBufsLen<32)return"";var o=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(o,this.options);for(var c="",d=0;d<this.initialBufs.length;d++)c+=this.decoder.write(this.initialBufs[d]);return this.initialBufs.length=this.initialBufsLen=0,c}return this.decoder.write(f)},l.prototype.end=function(){if(!this.decoder){var f=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(f,this.options);for(var o="",c=0;c<this.initialBufs.length;c++)o+=this.decoder.write(this.initialBufs[c]);var d=this.decoder.end();return d&&(o+=d),this.initialBufs.length=this.initialBufsLen=0,o}return this.decoder.end()};function u(f,o){var c=[],d=0,p=0,g=0,m=0,v=0;e:for(var y=0;y<f.length;y++)for(var w=f[y],_=0;_<w.length;_++)if(c.push(w[_]),c.length===4){if(d===0){if(c[0]===255&&c[1]===254&&c[2]===0&&c[3]===0)return"utf-32le";if(c[0]===0&&c[1]===0&&c[2]===254&&c[3]===255)return"utf-32be"}if((c[0]!==0||c[1]>16)&&g++,(c[3]!==0||c[2]>16)&&p++,c[0]===0&&c[1]===0&&(c[2]!==0||c[3]!==0)&&v++,(c[0]!==0||c[1]!==0)&&c[2]===0&&c[3]===0&&m++,c.length=0,d++,d>=100)break e}return v-g>m-p?"utf-32be":v-g<m-p?"utf-32le":o||"utf-32le"}})),HE=I.__commonJSMin((e=>{var t=Ar().Buffer;e.utf16be=r;function r(){}r.prototype.encoder=i,r.prototype.decoder=s,r.prototype.bomAware=!0;function i(){}i.prototype.write=function(u){for(var f=t.from(u,"ucs2"),o=0;o<f.length;o+=2){var c=f[o];f[o]=f[o+1],f[o+1]=c}return f},i.prototype.end=function(){};function s(){this.overflowByte=-1}s.prototype.write=function(u){if(u.length==0)return"";var f=t.alloc(u.length+1),o=0,c=0;for(this.overflowByte!==-1&&(f[0]=u[0],f[1]=this.overflowByte,o=1,c=2);o<u.length-1;o+=2,c+=2)f[c]=u[o+1],f[c+1]=u[o];return this.overflowByte=o==u.length-1?u[u.length-1]:-1,f.slice(0,c).toString("ucs2")},s.prototype.end=function(){this.overflowByte=-1},e.utf16=h;function h(u,f){this.iconv=f}h.prototype.encoder=a,h.prototype.decoder=n;function a(u,f){u=u||{},u.addBOM===void 0&&(u.addBOM=!0),this.encoder=f.iconv.getEncoder("utf-16le",u)}a.prototype.write=function(u){return this.encoder.write(u)},a.prototype.end=function(){return this.encoder.end()};function n(u,f){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=f.iconv}n.prototype.write=function(u){if(!this.decoder){if(this.initialBufs.push(u),this.initialBufsLen+=u.length,this.initialBufsLen<16)return"";var f=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(f,this.options);for(var o="",c=0;c<this.initialBufs.length;c++)o+=this.decoder.write(this.initialBufs[c]);return this.initialBufs.length=this.initialBufsLen=0,o}return this.decoder.write(u)},n.prototype.end=function(){if(!this.decoder){var u=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(u,this.options);for(var f="",o=0;o<this.initialBufs.length;o++)f+=this.decoder.write(this.initialBufs[o]);var c=this.decoder.end();return c&&(f+=c),this.initialBufs.length=this.initialBufsLen=0,f}return this.decoder.end()};function l(u,f){var o=[],c=0,d=0,p=0;e:for(var g=0;g<u.length;g++)for(var m=u[g],v=0;v<m.length;v++)if(o.push(m[v]),o.length===2){if(c===0){if(o[0]===255&&o[1]===254)return"utf-16le";if(o[0]===254&&o[1]===255)return"utf-16be"}if(o[0]===0&&o[1]!==0&&p++,o[0]!==0&&o[1]===0&&d++,o.length=0,c++,c>=100)break e}return p>d?"utf-16be":p<d?"utf-16le":f||"utf-16le"}})),qE=I.__commonJSMin((e=>{var t=Ar().Buffer;e.utf7=r,e.unicode11utf7="utf7";function r(m,v){this.iconv=v}r.prototype.encoder=s,r.prototype.decoder=h,r.prototype.bomAware=!0;var i=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function s(m,v){this.iconv=v.iconv}s.prototype.write=function(m){return t.from(m.replace(i,function(v){return"+"+(v==="+"?"":this.iconv.encode(v,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))},s.prototype.end=function(){};function h(m,v){this.iconv=v.iconv,this.inBase64=!1,this.base64Accum=""}for(var a=/[A-Za-z0-9\/+]/,n=[],l=0;l<256;l++)n[l]=a.test(String.fromCharCode(l));var u=43,f=45,o=38;h.prototype.write=function(m){for(var v="",y=0,w=this.inBase64,_=this.base64Accum,b=0;b<m.length;b++)if(!w)m[b]==u&&(v+=this.iconv.decode(m.slice(y,b),"ascii"),y=b+1,w=!0);else if(!n[m[b]]){if(b==y&&m[b]==f)v+="+";else{var E=_+this.iconv.decode(m.slice(y,b),"ascii");v+=this.iconv.decode(t.from(E,"base64"),"utf16-be")}m[b]!=f&&b--,y=b+1,w=!1,_=""}if(!w)v+=this.iconv.decode(m.slice(y),"ascii");else{var E=_+this.iconv.decode(m.slice(y),"ascii"),S=E.length-E.length%8;_=E.slice(S),E=E.slice(0,S),v+=this.iconv.decode(t.from(E,"base64"),"utf16-be")}return this.inBase64=w,this.base64Accum=_,v},h.prototype.end=function(){var m="";return this.inBase64&&this.base64Accum.length>0&&(m=this.iconv.decode(t.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",m},e.utf7imap=c;function c(m,v){this.iconv=v}c.prototype.encoder=d,c.prototype.decoder=p,c.prototype.bomAware=!0;function d(m,v){this.iconv=v.iconv,this.inBase64=!1,this.base64Accum=t.alloc(6),this.base64AccumIdx=0}d.prototype.write=function(m){for(var v=this.inBase64,y=this.base64Accum,w=this.base64AccumIdx,_=t.alloc(m.length*5+10),b=0,E=0;E<m.length;E++){var S=m.charCodeAt(E);S>=32&&S<=126?(v&&(w>0&&(b+=_.write(y.slice(0,w).toString("base64").replace(/\//g,",").replace(/=+$/,""),b),w=0),_[b++]=f,v=!1),v||(_[b++]=S,S===o&&(_[b++]=f))):(v||(_[b++]=o,v=!0),v&&(y[w++]=S>>8,y[w++]=S&255,w==y.length&&(b+=_.write(y.toString("base64").replace(/\//g,","),b),w=0)))}return this.inBase64=v,this.base64AccumIdx=w,_.slice(0,b)},d.prototype.end=function(){var m=t.alloc(10),v=0;return this.inBase64&&(this.base64AccumIdx>0&&(v+=m.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),v),this.base64AccumIdx=0),m[v++]=f,this.inBase64=!1),m.slice(0,v)};function p(m,v){this.iconv=v.iconv,this.inBase64=!1,this.base64Accum=""}var g=n.slice();g[44]=!0,p.prototype.write=function(m){for(var v="",y=0,w=this.inBase64,_=this.base64Accum,b=0;b<m.length;b++)if(!w)m[b]==o&&(v+=this.iconv.decode(m.slice(y,b),"ascii"),y=b+1,w=!0);else if(!g[m[b]]){if(b==y&&m[b]==f)v+="&";else{var E=_+this.iconv.decode(m.slice(y,b),"ascii").replace(/,/g,"/");v+=this.iconv.decode(t.from(E,"base64"),"utf16-be")}m[b]!=f&&b--,y=b+1,w=!1,_=""}if(!w)v+=this.iconv.decode(m.slice(y),"ascii");else{var E=_+this.iconv.decode(m.slice(y),"ascii").replace(/,/g,"/"),S=E.length-E.length%8;_=E.slice(S),E=E.slice(0,S),v+=this.iconv.decode(t.from(E,"base64"),"utf16-be")}return this.inBase64=w,this.base64Accum=_,v},p.prototype.end=function(){var m="";return this.inBase64&&this.base64Accum.length>0&&(m=this.iconv.decode(t.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",m}})),zE=I.__commonJSMin((e=>{var t=Ar().Buffer;e._sbcs=r;function r(h,a){if(!h)throw new Error("SBCS codec is called without the data.");if(!h.chars||h.chars.length!==128&&h.chars.length!==256)throw new Error("Encoding '"+h.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(h.chars.length===128){for(var n="",l=0;l<128;l++)n+=String.fromCharCode(l);h.chars=n+h.chars}this.decodeBuf=t.from(h.chars,"ucs2");for(var u=t.alloc(65536,a.defaultCharSingleByte.charCodeAt(0)),l=0;l<h.chars.length;l++)u[h.chars.charCodeAt(l)]=l;this.encodeBuf=u}r.prototype.encoder=i,r.prototype.decoder=s;function i(h,a){this.encodeBuf=a.encodeBuf}i.prototype.write=function(h){for(var a=t.alloc(h.length),n=0;n<h.length;n++)a[n]=this.encodeBuf[h.charCodeAt(n)];return a},i.prototype.end=function(){};function s(h,a){this.decodeBuf=a.decodeBuf}s.prototype.write=function(h){for(var a=this.decodeBuf,n=t.alloc(h.length*2),l=0,u=0,f=0;f<h.length;f++)l=h[f]*2,u=f*2,n[u]=a[l],n[u+1]=a[l+1];return n.toString("ucs2")},s.prototype.end=function(){}})),GE=I.__commonJSMin(((e,t)=>{t.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"éâàçêëèïîّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}})),JE=I.__commonJSMin(((e,t)=>{t.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"
Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"
Ħ˘£¤�Ĥ§¨İŞĞĴ�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"
ĄĸŖ¤Ĩϧ¨ŠĒĢŦޝ°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"
���¤�������،�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"
‘’£€₯¦§¨©ͺ«¬�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"
�¢£¤¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"
ĄĒĢĪĨͧĻĐŠŦŽŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"
กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"
”¢£¤„¦§Ø©Ŗ«¬®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"
Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"
¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"
ĄąŁ€„Чš©Ș«ŹźŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b
|
|
426
426
|
\v\f\r\x1B !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"
¡¢£¤¥¦§¨©ª«¬®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"
ЁЂҐЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"
¡¢£¤¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"
ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€…‘’“”•–— กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"
¡¢£€¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"
�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:`\0ÚỤỪỬỮ\x07\b
|
|
@@ -458,13 +458,13 @@ globstar while`,te,je,le,Ue,ze),this.matchOne(te.slice(je),le.slice(Ue),ce))retu
|
|
|
458
458
|
`),y=v.shift();if(!y)return s.destroy(),a(new Error("No header received from proxy CONNECT response"));const w=y.split(" "),_=+w[1],b=w.slice(2).join(" "),E={};for(const S of v){if(!S)continue;const A=S.indexOf(":");if(A===-1)return s.destroy(),a(new Error(`Invalid header from proxy CONNECT response: "${S}"`));const C=S.slice(0,A).toLowerCase(),T=S.slice(A+1).trimStart(),U=E[C];typeof U=="string"?E[C]=[U,T]:Array.isArray(U)?U.push(T):E[C]=T}r("got proxy server response: %o %o",y,E),f(),h({connect:{statusCode:_,statusText:b,headers:E},buffered:g})}s.on("error",c),s.on("end",o),u()})}e.parseProxyResponse=i})),ow=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(v,y,w,_){_===void 0&&(_=w);var b=Object.getOwnPropertyDescriptor(y,w);(!b||("get"in b?!y.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return y[w]}}),Object.defineProperty(v,_,b)}):(function(v,y,w,_){_===void 0&&(_=w),v[_]=y[w]})),r=e&&e.__setModuleDefault||(Object.create?(function(v,y){Object.defineProperty(v,"default",{enumerable:!0,value:y})}):function(v,y){v.default=y}),i=e&&e.__importStar||function(v){if(v&&v.__esModule)return v;var y={};if(v!=null)for(var w in v)w!=="default"&&Object.prototype.hasOwnProperty.call(v,w)&&t(y,v,w);return r(y,v),y},s=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;var h=i(require("net")),a=i(require("tls")),n=s(require("assert")),l=s(pn()),u=As(),f=require("url"),o=aw(),c=(0,l.default)("https-proxy-agent"),d=v=>v.servername===void 0&&v.host&&!h.isIP(v.host)?{...v,servername:v.host}:v,p=class extends u.Agent{constructor(v,y){super(y),this.options={path:void 0},this.proxy=typeof v=="string"?new f.URL(v):v,this.proxyHeaders=y?.headers??{},c("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const w=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),_=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...y?m(y,"headers"):null,host:w,port:_}}async connect(v,y){const{proxy:w}=this;if(!y.host)throw new TypeError('No "host" provided');let _;w.protocol==="https:"?(c("Creating `tls.Socket`: %o",this.connectOpts),_=a.connect(d(this.connectOpts))):(c("Creating `net.Socket`: %o",this.connectOpts),_=h.connect(this.connectOpts));const b=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},E=h.isIPv6(y.host)?`[${y.host}]`:y.host;let S=`CONNECT ${E}:${y.port} HTTP/1.1\r
|
|
459
459
|
`;if(w.username||w.password){const $=`${decodeURIComponent(w.username)}:${decodeURIComponent(w.password)}`;b["Proxy-Authorization"]=`Basic ${Buffer.from($).toString("base64")}`}b.Host=`${E}:${y.port}`,b["Proxy-Connection"]||(b["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const $ of Object.keys(b))S+=`${$}: ${b[$]}\r
|
|
460
460
|
`;const A=(0,o.parseProxyResponse)(_);_.write(`${S}\r
|
|
461
|
-
`);const{connect:C,buffered:T}=await A;if(v.emit("proxyConnect",C),this.emit("proxyConnect",C,v),C.statusCode===200)return v.once("socket",g),y.secureEndpoint?(c("Upgrading socket connection to TLS"),a.connect({...m(d(y),"host","path","port"),socket:_})):_;_.destroy();const U=new h.Socket({writable:!1});return U.readable=!0,v.once("socket",$=>{c("Replaying proxy buffer for failed request"),(0,n.default)($.listenerCount("data")>0),$.push(T),$.push(null)}),U}};p.protocols=["http","https"],e.HttpsProxyAgent=p;function g(v){v.resume()}function m(v,...y){const w={};let _;for(_ in v)y.includes(_)||(w[_]=v[_]);return w}})),uw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("buffer"),r={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};e.ERRORS=r;function i(o){if(!t.Buffer.isEncoding(o))throw new Error(r.INVALID_ENCODING)}e.checkEncoding=i;function s(o){return typeof o=="number"&&isFinite(o)&&u(o)}e.isFiniteInteger=s;function h(o,c){if(typeof o=="number"){if(!s(o)||o<0)throw new Error(c?r.INVALID_OFFSET:r.INVALID_LENGTH)}else throw new Error(c?r.INVALID_OFFSET_NON_NUMBER:r.INVALID_LENGTH_NON_NUMBER)}function a(o){h(o,!1)}e.checkLengthValue=a;function n(o){h(o,!0)}e.checkOffsetValue=n;function l(o,c){if(o<0||o>c.length)throw new Error(r.INVALID_TARGET_OFFSET)}e.checkTargetOffset=l;function u(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}function f(o){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof t.Buffer.prototype[o]>"u")throw new Error(`Platform does not support Buffer.prototype.${o}.`)}e.bigIntAndBufferInt64Check=f})),lw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=uw(),r=4096,i="utf8",s=class pd{constructor(a){if(this.length=0,this._encoding=i,this._writeOffset=0,this._readOffset=0,pd.isSmartBufferOptions(a))if(a.encoding&&(t.checkEncoding(a.encoding),this._encoding=a.encoding),a.size)if(t.isFiniteInteger(a.size)&&a.size>0)this._buff=Buffer.allocUnsafe(a.size);else throw new Error(t.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(a.buff)if(Buffer.isBuffer(a.buff))this._buff=a.buff,this.length=a.buff.length;else throw new Error(t.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(r);else{if(typeof a<"u")throw new Error(t.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(r)}}static fromSize(a,n){return new this({size:a,encoding:n})}static fromBuffer(a,n){return new this({buff:a,encoding:n})}static fromOptions(a){return new this(a)}static isSmartBufferOptions(a){const n=a;return n&&(n.encoding!==void 0||n.size!==void 0||n.buff!==void 0)}readInt8(a){return this._readNumberValue(Buffer.prototype.readInt8,1,a)}readInt16BE(a){return this._readNumberValue(Buffer.prototype.readInt16BE,2,a)}readInt16LE(a){return this._readNumberValue(Buffer.prototype.readInt16LE,2,a)}readInt32BE(a){return this._readNumberValue(Buffer.prototype.readInt32BE,4,a)}readInt32LE(a){return this._readNumberValue(Buffer.prototype.readInt32LE,4,a)}readBigInt64BE(a){return t.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,a)}readBigInt64LE(a){return t.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,a)}writeInt8(a,n){return this._writeNumberValue(Buffer.prototype.writeInt8,1,a,n),this}insertInt8(a,n){return this._insertNumberValue(Buffer.prototype.writeInt8,1,a,n)}writeInt16BE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,a,n)}insertInt16BE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,a,n)}writeInt16LE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,a,n)}insertInt16LE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,a,n)}writeInt32BE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,a,n)}insertInt32BE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,a,n)}writeInt32LE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,a,n)}insertInt32LE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,a,n)}writeBigInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,a,n)}insertBigInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,a,n)}writeBigInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,a,n)}insertBigInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,a,n)}readUInt8(a){return this._readNumberValue(Buffer.prototype.readUInt8,1,a)}readUInt16BE(a){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,a)}readUInt16LE(a){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,a)}readUInt32BE(a){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,a)}readUInt32LE(a){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,a)}readBigUInt64BE(a){return t.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,a)}readBigUInt64LE(a){return t.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,a)}writeUInt8(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,a,n)}insertUInt8(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,a,n)}writeUInt16BE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,a,n)}insertUInt16BE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,a,n)}writeUInt16LE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,a,n)}insertUInt16LE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,a,n)}writeUInt32BE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,a,n)}insertUInt32BE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,a,n)}writeUInt32LE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,a,n)}insertUInt32LE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,a,n)}writeBigUInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,n)}insertBigUInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,n)}writeBigUInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,n)}insertBigUInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,n)}readFloatBE(a){return this._readNumberValue(Buffer.prototype.readFloatBE,4,a)}readFloatLE(a){return this._readNumberValue(Buffer.prototype.readFloatLE,4,a)}writeFloatBE(a,n){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,a,n)}insertFloatBE(a,n){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,a,n)}writeFloatLE(a,n){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,a,n)}insertFloatLE(a,n){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,a,n)}readDoubleBE(a){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,a)}readDoubleLE(a){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,a)}writeDoubleBE(a,n){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,a,n)}insertDoubleBE(a,n){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,a,n)}writeDoubleLE(a,n){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,a,n)}insertDoubleLE(a,n){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,a,n)}readString(a,n){let l;typeof a=="number"?(t.checkLengthValue(a),l=Math.min(a,this.length-this._readOffset)):(n=a,l=this.length-this._readOffset),typeof n<"u"&&t.checkEncoding(n);const u=this._buff.slice(this._readOffset,this._readOffset+l).toString(n||this._encoding);return this._readOffset+=l,u}insertString(a,n,l){return t.checkOffsetValue(n),this._handleString(a,!0,n,l)}writeString(a,n,l){return this._handleString(a,!1,n,l)}readStringNT(a){typeof a<"u"&&t.checkEncoding(a);let n=this.length;for(let u=this._readOffset;u<this.length;u++)if(this._buff[u]===0){n=u;break}const l=this._buff.slice(this._readOffset,n);return this._readOffset=n+1,l.toString(a||this._encoding)}insertStringNT(a,n,l){return t.checkOffsetValue(n),this.insertString(a,n,l),this.insertUInt8(0,n+a.length),this}writeStringNT(a,n,l){return this.writeString(a,n,l),this.writeUInt8(0,typeof n=="number"?n+a.length:this.writeOffset),this}readBuffer(a){typeof a<"u"&&t.checkLengthValue(a);const n=typeof a=="number"?a:this.length,l=Math.min(this.length,this._readOffset+n),u=this._buff.slice(this._readOffset,l);return this._readOffset=l,u}insertBuffer(a,n){return t.checkOffsetValue(n),this._handleBuffer(a,!0,n)}writeBuffer(a,n){return this._handleBuffer(a,!1,n)}readBufferNT(){let a=this.length;for(let l=this._readOffset;l<this.length;l++)if(this._buff[l]===0){a=l;break}const n=this._buff.slice(this._readOffset,a);return this._readOffset=a+1,n}insertBufferNT(a,n){return t.checkOffsetValue(n),this.insertBuffer(a,n),this.insertUInt8(0,n+a.length),this}writeBufferNT(a,n){return typeof n<"u"&&t.checkOffsetValue(n),this.writeBuffer(a,n),this.writeUInt8(0,typeof n=="number"?n+a.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(a){t.checkOffsetValue(a),t.checkTargetOffset(a,this),this._readOffset=a}get writeOffset(){return this._writeOffset}set writeOffset(a){t.checkOffsetValue(a),t.checkTargetOffset(a,this),this._writeOffset=a}get encoding(){return this._encoding}set encoding(a){t.checkEncoding(a),this._encoding=a}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(a){const n=typeof a=="string"?a:this._encoding;return t.checkEncoding(n),this._buff.toString(n,0,this.length)}destroy(){return this.clear(),this}_handleString(a,n,l,u){let f=this._writeOffset,o=this._encoding;typeof l=="number"?f=l:typeof l=="string"&&(t.checkEncoding(l),o=l),typeof u=="string"&&(t.checkEncoding(u),o=u);const c=Buffer.byteLength(a,o);return n?this.ensureInsertable(c,f):this._ensureWriteable(c,f),this._buff.write(a,f,c,o),n?this._writeOffset+=c:typeof l=="number"?this._writeOffset=Math.max(this._writeOffset,f+c):this._writeOffset+=c,this}_handleBuffer(a,n,l){const u=typeof l=="number"?l:this._writeOffset;return n?this.ensureInsertable(a.length,u):this._ensureWriteable(a.length,u),a.copy(this._buff,u),n?this._writeOffset+=a.length:typeof l=="number"?this._writeOffset=Math.max(this._writeOffset,u+a.length):this._writeOffset+=a.length,this}ensureReadable(a,n){let l=this._readOffset;if(typeof n<"u"&&(t.checkOffsetValue(n),l=n),l<0||l+a>this.length)throw new Error(t.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(a,n){t.checkOffsetValue(n),this._ensureCapacity(this.length+a),n<this.length&&this._buff.copy(this._buff,n+a,n,this._buff.length),n+a>this.length?this.length=n+a:this.length+=a}_ensureWriteable(a,n){const l=typeof n=="number"?n:this._writeOffset;this._ensureCapacity(l+a),l+a>this.length&&(this.length=l+a)}_ensureCapacity(a){const n=this._buff.length;if(a>n){let l=this._buff,u=n*3/2+1;u<a&&(u=a),this._buff=Buffer.allocUnsafe(u),l.copy(this._buff,0,0,n)}}_readNumberValue(a,n,l){this.ensureReadable(n,l);const u=a.call(this._buff,typeof l=="number"?l:this._readOffset);return typeof l>"u"&&(this._readOffset+=n),u}_insertNumberValue(a,n,l,u){return t.checkOffsetValue(u),this.ensureInsertable(n,u),a.call(this._buff,l,u),this._writeOffset+=n,this}_writeNumberValue(a,n,l,u){if(typeof u=="number"){if(u<0)throw new Error(t.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);t.checkOffsetValue(u)}const f=typeof u=="number"?u:this._writeOffset;return this._ensureWriteable(n,f),a.call(this._buff,l,f),typeof u=="number"?this._writeOffset=Math.max(this._writeOffset,f+n):this._writeOffset+=n,this}};e.SmartBuffer=s})),md=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SOCKS5_NO_ACCEPTABLE_AUTH=e.SOCKS5_CUSTOM_AUTH_END=e.SOCKS5_CUSTOM_AUTH_START=e.SOCKS_INCOMING_PACKET_SIZES=e.SocksClientState=e.Socks5Response=e.Socks5HostType=e.Socks5Auth=e.Socks4Response=e.SocksCommand=e.ERRORS=e.DEFAULT_TIMEOUT=void 0;var t=3e4;e.DEFAULT_TIMEOUT=t;var r={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};e.ERRORS=r;var i={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:d=>d+7,Socks4Response:8};e.SOCKS_INCOMING_PACKET_SIZES=i;var s;(function(d){d[d.connect=1]="connect",d[d.bind=2]="bind",d[d.associate=3]="associate"})(s||(e.SocksCommand=s={}));var h;(function(d){d[d.Granted=90]="Granted",d[d.Failed=91]="Failed",d[d.Rejected=92]="Rejected",d[d.RejectedIdent=93]="RejectedIdent"})(h||(e.Socks4Response=h={}));var a;(function(d){d[d.NoAuth=0]="NoAuth",d[d.GSSApi=1]="GSSApi",d[d.UserPass=2]="UserPass"})(a||(e.Socks5Auth=a={}));var n=128;e.SOCKS5_CUSTOM_AUTH_START=n;var l=254;e.SOCKS5_CUSTOM_AUTH_END=l;var u=255;e.SOCKS5_NO_ACCEPTABLE_AUTH=u;var f;(function(d){d[d.Granted=0]="Granted",d[d.Failure=1]="Failure",d[d.NotAllowed=2]="NotAllowed",d[d.NetworkUnreachable=3]="NetworkUnreachable",d[d.HostUnreachable=4]="HostUnreachable",d[d.ConnectionRefused=5]="ConnectionRefused",d[d.TTLExpired=6]="TTLExpired",d[d.CommandNotSupported=7]="CommandNotSupported",d[d.AddressNotSupported=8]="AddressNotSupported"})(f||(e.Socks5Response=f={}));var o;(function(d){d[d.IPv4=1]="IPv4",d[d.Hostname=3]="Hostname",d[d.IPv6=4]="IPv6"})(o||(e.Socks5HostType=o={}));var c;(function(d){d[d.Created=0]="Created",d[d.Connecting=1]="Connecting",d[d.Connected=2]="Connected",d[d.SentInitialHandshake=3]="SentInitialHandshake",d[d.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",d[d.SentAuthentication=5]="SentAuthentication",d[d.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",d[d.SentFinalHandshake=7]="SentFinalHandshake",d[d.ReceivedFinalResponse=8]="ReceivedFinalResponse",d[d.BoundWaitingForConnection=9]="BoundWaitingForConnection",d[d.Established=10]="Established",d[d.Disconnected=11]="Disconnected",d[d.Error=99]="Error"})(c||(e.SocksClientState=c={}))})),gd=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shuffleArray=e.SocksClientError=void 0;var t=class extends Error{constructor(i,s){super(i),this.options=s}};e.SocksClientError=t;function r(i){for(let s=i.length-1;s>0;s--){const h=Math.floor(Math.random()*(s+1));[i[s],i[h]]=[i[h],i[s]]}}e.shuffleArray=r})),To=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isInSubnet=t,e.isCorrect=r,e.numberToPaddedHex=i,e.stringToPaddedHex=s,e.testBit=h;function t(a){return this.subnetMask<a.subnetMask?!1:this.mask(a.subnetMask)===a.mask()}function r(a){return function(){return this.addressMinusSuffix!==this.correctForm()?!1:this.subnetMask===a&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask)}}function i(a){return a.toString(16).padStart(2,"0")}function s(a){return i(parseInt(a,10))}function h(a,n){const{length:l}=a;if(n>l)return!1;const u=l-n;return a.substring(u,u+1)==="1"}})),vd=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RE_SUBNET_STRING=e.RE_ADDRESS=e.GROUPS=e.BITS=void 0,e.BITS=32,e.GROUPS=4,e.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g,e.RE_SUBNET_STRING=/\/\d{1,2}$/})),zu=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AddressError=void 0;var t=class extends Error{constructor(r,i){super(r),this.name="AddressError",this.parseMessage=i}};e.AddressError=t})),yd=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(l,u,f,o){o===void 0&&(o=f);var c=Object.getOwnPropertyDescriptor(u,f);(!c||("get"in c?!u.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,o,c)}):(function(l,u,f,o){o===void 0&&(o=f),l[o]=u[f]})),r=e&&e.__setModuleDefault||(Object.create?(function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}):function(l,u){l.default=u}),i=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&t(u,l,f);return r(u,l),u};Object.defineProperty(e,"__esModule",{value:!0}),e.Address4=void 0;var s=i(To()),h=i(vd()),a=zu(),n=class Ht{constructor(u){this.groups=h.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=s.isCorrect(h.BITS),this.isInSubnet=s.isInSubnet,this.address=u;const f=h.RE_SUBNET_STRING.exec(u);if(f){if(this.parsedSubnet=f[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>h.BITS)throw new a.AddressError("Invalid subnet mask.");u=u.replace(h.RE_SUBNET_STRING,"")}this.addressMinusSuffix=u,this.parsedAddress=this.parse(u)}static isValid(u){try{return new Ht(u),!0}catch{return!1}}parse(u){const f=u.split(".");if(!u.match(h.RE_ADDRESS))throw new a.AddressError("Invalid IPv4 address.");return f}correctForm(){return this.parsedAddress.map(u=>parseInt(u,10)).join(".")}static fromHex(u){const f=u.replace(/:/g,"").padStart(8,"0"),o=[];let c;for(c=0;c<8;c+=2){const d=f.slice(c,c+2);o.push(parseInt(d,16))}return new Ht(o.join("."))}static fromInteger(u){return Ht.fromHex(u.toString(16))}static fromArpa(u){return new Ht(u.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join("."))}toHex(){return this.parsedAddress.map(u=>s.stringToPaddedHex(u)).join(":")}toArray(){return this.parsedAddress.map(u=>parseInt(u,10))}toGroup6(){const u=[];let f;for(f=0;f<h.GROUPS;f+=2)u.push(`${s.stringToPaddedHex(this.parsedAddress[f])}${s.stringToPaddedHex(this.parsedAddress[f+1])}`);return u.join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(u=>s.stringToPaddedHex(u)).join("")}`)}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(h.BITS-this.subnetMask)}`)}startAddress(){return Ht.fromBigInt(this._startAddress())}startAddressExclusive(){const u=BigInt("1");return Ht.fromBigInt(this._startAddress()+u)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(h.BITS-this.subnetMask)}`)}endAddress(){return Ht.fromBigInt(this._endAddress())}endAddressExclusive(){const u=BigInt("1");return Ht.fromBigInt(this._endAddress()-u)}static fromBigInt(u){return Ht.fromHex(u.toString(16))}static fromByteArray(u){if(u.length!==4)throw new a.AddressError("IPv4 addresses require exactly 4 bytes");for(let f=0;f<u.length;f++)if(!Number.isInteger(u[f])||u[f]<0||u[f]>255)throw new a.AddressError("All bytes must be integers between 0 and 255");return this.fromUnsignedByteArray(u)}static fromUnsignedByteArray(u){if(u.length!==4)throw new a.AddressError("IPv4 addresses require exactly 4 bytes");return new Ht(u.join("."))}mask(u){return u===void 0&&(u=this.subnetMask),this.getBitsBase2(0,u)}getBitsBase2(u,f){return this.binaryZeroPad().slice(u,f)}reverseForm(u){u||(u={});const f=this.correctForm().split(".").reverse().join(".");return u.omitSuffix?f:`${f}.in-addr.arpa.`}isMulticast(){return this.isInSubnet(new Ht("224.0.0.0/4"))}binaryZeroPad(){return this.bigInt().toString(2).padStart(h.BITS,"0")}groupForV6(){const u=this.parsedAddress;return this.address.replace(h.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${u.slice(0,2).join(".")}</span>.<span class="hover-group group-v4 group-7">${u.slice(2,4).join(".")}</span>`)}};e.Address4=n})),_d=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RE_URL_WITH_PORT=e.RE_URL=e.RE_ZONE_STRING=e.RE_SUBNET_STRING=e.RE_BAD_ADDRESS=e.RE_BAD_CHARACTERS=e.TYPES=e.SCOPES=e.GROUPS=e.BITS=void 0,e.BITS=128,e.GROUPS=8,e.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},e.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"},e.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,e.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,e.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,e.RE_ZONE_STRING=/%.*$/,e.RE_URL=/^\[{0,1}([0-9a-f:]+)\]{0,1}/,e.RE_URL_WITH_PORT=/\[([0-9a-f:]+)\]:([0-9]{1,5})/})),Ed=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.spanAllZeroes=t,e.spanAll=r,e.spanLeadingZeroes=s,e.simpleGroup=h;function t(a){return a.replace(/(0+)/g,'<span class="zero">$1</span>')}function r(a,n=0){return a.split("").map((l,u)=>`<span class="digit value-${l} position-${u+n}">${t(l)}</span>`).join("")}function i(a){return a.replace(/^(0+)/,'<span class="zero">$1</span>')}function s(a){return a.split(":").map(n=>i(n)).join(":")}function h(a,n=0){return a.split(":").map((l,u)=>/group-v4/.test(l)?l:`<span class="hover-group group-${u+n}">${i(l)}</span>`)}})),cw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(u,f,o,c){c===void 0&&(c=o);var d=Object.getOwnPropertyDescriptor(f,o);(!d||("get"in d?!f.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return f[o]}}),Object.defineProperty(u,c,d)}):(function(u,f,o,c){c===void 0&&(c=o),u[c]=f[o]})),r=e&&e.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),i=e&&e.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var o in u)o!=="default"&&Object.prototype.hasOwnProperty.call(u,o)&&t(f,u,o);return r(f,u),f};Object.defineProperty(e,"__esModule",{value:!0}),e.ADDRESS_BOUNDARY=void 0,e.groupPossibilities=h,e.padGroup=a,e.simpleRegularExpression=n,e.possibleElisions=l;var s=i(_d());function h(u){return`(${u.join("|")})`}function a(u){return u.length<4?`0{0,${4-u.length}}${u}`:u}e.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function n(u){const f=[];u.forEach((c,d)=>{parseInt(c,16)===0&&f.push(d)});const o=f.map(c=>u.map((d,p)=>{if(p===c){const g=p===0||p===s.GROUPS-1?":":"";return h([a(d),g])}return a(d)}).join(":"));return o.push(u.map(a).join(":")),h(o)}function l(u,f,o){const c=f?"":":",d=o?"":":",p=[];!f&&!o&&p.push("::"),f&&o&&p.push(""),(o&&!f||!o&&f)&&p.push(":"),p.push(`${c}(:0{1,4}){1,${u-1}}`),p.push(`(0{1,4}:){1,${u-1}}${d}`),p.push(`(0{1,4}:){${u-1}}0{1,4}`);for(let g=1;g<u-1;g++)for(let m=1;m<u-g;m++)p.push(`(0{1,4}:){${m}}:(0{1,4}:){${u-m-g-1}}0{1,4}`);return h(p)}})),hw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(w,_,b,E){E===void 0&&(E=b);var S=Object.getOwnPropertyDescriptor(_,b);(!S||("get"in S?!_.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return _[b]}}),Object.defineProperty(w,E,S)}):(function(w,_,b,E){E===void 0&&(E=b),w[E]=_[b]})),r=e&&e.__setModuleDefault||(Object.create?(function(w,_){Object.defineProperty(w,"default",{enumerable:!0,value:_})}):function(w,_){w.default=_}),i=e&&e.__importStar||function(w){if(w&&w.__esModule)return w;var _={};if(w!=null)for(var b in w)b!=="default"&&Object.prototype.hasOwnProperty.call(w,b)&&t(_,w,b);return r(_,w),_};Object.defineProperty(e,"__esModule",{value:!0}),e.Address6=void 0;var s=i(To()),h=i(vd()),a=i(_d()),n=i(Ed()),l=yd(),u=cw(),f=zu(),o=To();function c(w){if(!w)throw new Error("Assertion failed.")}function d(w){const _=/(\d+)(\d{3})/;for(;_.test(w);)w=w.replace(_,"$1,$2");return w}function p(w){return w=w.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),w=w.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),w}function g(w,_){const b=[],E=[];let S;for(S=0;S<w.length;S++)S<_[0]?b.push(w[S]):S>_[1]&&E.push(w[S]);return b.concat(["compact"]).concat(E)}function m(w){return parseInt(w,16).toString(16).padStart(4,"0")}function v(w){return w&255}var y=class Ct{constructor(_,b){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=s.isInSubnet,this.isCorrect=s.isCorrect(a.BITS),b===void 0?this.groups=a.GROUPS:this.groups=b,this.address=_;const E=a.RE_SUBNET_STRING.exec(_);if(E){if(this.parsedSubnet=E[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>a.BITS)throw new f.AddressError("Invalid subnet mask.");_=_.replace(a.RE_SUBNET_STRING,"")}else if(/\//.test(_))throw new f.AddressError("Invalid subnet mask.");const S=a.RE_ZONE_STRING.exec(_);S&&(this.zone=S[0],_=_.replace(a.RE_ZONE_STRING,"")),this.addressMinusSuffix=_,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(_){try{return new Ct(_),!0}catch{return!1}}static fromBigInt(_){const b=_.toString(16).padStart(32,"0"),E=[];let S;for(S=0;S<a.GROUPS;S++)E.push(b.slice(S*4,(S+1)*4));return new Ct(E.join(":"))}static fromURL(_){let b,E=null,S;if(_.indexOf("[")!==-1&&_.indexOf("]:")!==-1){if(S=a.RE_URL_WITH_PORT.exec(_),S===null)return{error:"failed to parse address with port",address:null,port:null};b=S[1],E=S[2]}else if(_.indexOf("/")!==-1){if(_=_.replace(/^[a-z0-9]+:\/\//,""),S=a.RE_URL.exec(_),S===null)return{error:"failed to parse address from URL",address:null,port:null};b=S[1]}else b=_;return E?(E=parseInt(E,10),(E<0||E>65536)&&(E=null)):E=null,{address:new Ct(b),port:E}}static fromAddress4(_){const b=new l.Address4(_),E=a.BITS-(h.BITS-b.subnetMask);return new Ct(`::ffff:${b.correctForm()}/${E}`)}static fromArpa(_){let b=_.replace(/(\.ip6\.arpa)?\.$/,"");const E=7;if(b.length!==63)throw new f.AddressError("Invalid 'ip6.arpa' form.");const S=b.split(".").reverse();for(let A=E;A>0;A--){const C=A*4;S.splice(C,0,":")}return b=S.join(""),new Ct(b)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,"-")}.ipv6-literal.net`}mask(_=this.subnetMask){return this.getBitsBase2(0,_)}possibleSubnets(_=128){const b=a.BITS-this.subnetMask-Math.abs(_-a.BITS);return b<0?"0":d((BigInt("2")**BigInt(b)).toString(10))}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(a.BITS-this.subnetMask)}`)}startAddress(){return Ct.fromBigInt(this._startAddress())}startAddressExclusive(){const _=BigInt("1");return Ct.fromBigInt(this._startAddress()+_)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(a.BITS-this.subnetMask)}`)}endAddress(){return Ct.fromBigInt(this._endAddress())}endAddressExclusive(){const _=BigInt("1");return Ct.fromBigInt(this._endAddress()-_)}getScope(){let _=a.SCOPES[parseInt(this.getBits(12,16).toString(10),10)];return this.getType()==="Global unicast"&&_!=="Link local"&&(_="Global"),_||"Unknown"}getType(){for(const _ of Object.keys(a.TYPES))if(this.isInSubnet(new Ct(_)))return a.TYPES[_];return"Global unicast"}getBits(_,b){return BigInt(`0b${this.getBitsBase2(_,b)}`)}getBitsBase2(_,b){return this.binaryZeroPad().slice(_,b)}getBitsBase16(_,b){const E=b-_;if(E%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(_,b).toString(16).padStart(E/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,a.BITS)}reverseForm(_){_||(_={});const b=Math.floor(this.subnetMask/4),E=this.canonicalForm().replace(/:/g,"").split("").slice(0,b).reverse().join(".");return b>0?_.omitSuffix?E:`${E}.ip6.arpa.`:_.omitSuffix?"":"ip6.arpa."}correctForm(){let _,b=[],E=0;const S=[];for(_=0;_<this.parsedAddress.length;_++){const T=parseInt(this.parsedAddress[_],16);T===0&&E++,T!==0&&E>0&&(E>1&&S.push([_-E,_-1]),E=0)}E>1&&S.push([this.parsedAddress.length-E,this.parsedAddress.length-1]);const A=S.map(T=>T[1]-T[0]+1);if(S.length>0){const T=A.indexOf(Math.max(...A));b=g(this.parsedAddress,S[T])}else b=this.parsedAddress;for(_=0;_<b.length;_++)b[_]!=="compact"&&(b[_]=parseInt(b[_],16).toString(16));let C=b.join(":");return C=C.replace(/^compact$/,"::"),C=C.replace(/(^compact)|(compact$)/,":"),C=C.replace(/compact/,""),C}binaryZeroPad(){return this.bigInt().toString(2).padStart(a.BITS,"0")}parse4in6(_){const b=_.split(":"),E=b.slice(-1)[0].match(h.RE_ADDRESS);if(E){this.parsedAddress4=E[0],this.address4=new l.Address4(this.parsedAddress4);for(let S=0;S<this.address4.groups;S++)if(/^0[0-9]+/.test(this.address4.parsedAddress[S]))throw new f.AddressError("IPv4 addresses can't have leading zeroes.",_.replace(h.RE_ADDRESS,this.address4.parsedAddress.map(p).join(".")));this.v4=!0,b[b.length-1]=this.address4.toGroup6(),_=b.join(":")}return _}parse(_){_=this.parse4in6(_);const b=_.match(a.RE_BAD_CHARACTERS);if(b)throw new f.AddressError(`Bad character${b.length>1?"s":""} detected in address: ${b.join("")}`,_.replace(a.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));const E=_.match(a.RE_BAD_ADDRESS);if(E)throw new f.AddressError(`Address failed regex: ${E.join("")}`,_.replace(a.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let S=[];const A=_.split("::");if(A.length===2){let C=A[0].split(":"),T=A[1].split(":");C.length===1&&C[0]===""&&(C=[]),T.length===1&&T[0]===""&&(T=[]);const U=this.groups-(C.length+T.length);if(!U)throw new f.AddressError("Error parsing groups");this.elidedGroups=U,this.elisionBegin=C.length,this.elisionEnd=C.length+this.elidedGroups,S=S.concat(C);for(let $=0;$<U;$++)S.push("0");S=S.concat(T)}else if(A.length===1)S=_.split(":"),this.elidedGroups=0;else throw new f.AddressError("Too many :: groups found");if(S=S.map(C=>parseInt(C,16).toString(16)),S.length!==this.groups)throw new f.AddressError("Incorrect number of groups found");return S}canonicalForm(){return this.parsedAddress.map(m).join(":")}decimal(){return this.parsedAddress.map(_=>parseInt(_,16).toString(10).padStart(5,"0")).join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(m).join("")}`)}to4(){const _=this.binaryZeroPad().split("");return l.Address4.fromHex(BigInt(`0b${_.slice(96,128).join("")}`).toString(16))}to4in6(){const _=this.to4(),b=new Ct(this.parsedAddress.slice(0,6).join(":"),6).correctForm();let E="";return/:$/.test(b)||(E=":"),b+E+_.address}inspectTeredo(){const _=this.getBitsBase16(0,32),b=(this.getBits(80,96)^BigInt("0xffff")).toString(),E=l.Address4.fromHex(this.getBitsBase16(32,64)),S=this.getBits(96,128),A=l.Address4.fromHex((S^BigInt("0xffffffff")).toString(16)),C=this.getBitsBase2(64,80),T=(0,o.testBit)(C,15),U=(0,o.testBit)(C,14),$=(0,o.testBit)(C,8),z=(0,o.testBit)(C,9),V=BigInt(`0b${C.slice(2,6)+C.slice(8,16)}`).toString(10);return{prefix:`${_.slice(0,4)}:${_.slice(4,8)}`,server4:E.address,client4:A.address,flags:C,coneNat:T,microsoft:{reserved:U,universalLocal:z,groupIndividual:$,nonce:V},udpPort:b}}inspect6to4(){const _=this.getBitsBase16(0,16),b=l.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:_.slice(0,4),gateway:b.address}}to6to4(){return this.is4()?new Ct(["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":")):null}toByteArray(){const _=this.bigInt().toString(16),b=`${"0".repeat(_.length%2)}${_}`,E=[];for(let S=0,A=b.length;S<A;S+=2)E.push(parseInt(b.substring(S,S+2),16));return E}toUnsignedByteArray(){return this.toByteArray().map(v)}static fromByteArray(_){return this.fromUnsignedByteArray(_.map(v))}static fromUnsignedByteArray(_){const b=BigInt("256");let E=BigInt("0"),S=BigInt("1");for(let A=_.length-1;A>=0;A--)E+=S*BigInt(_[A].toString(10)),S*=b;return Ct.fromBigInt(E)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new Ct("2001::/32"))}is6to4(){return this.isInSubnet(new Ct("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(_){return _===void 0?_="":_=`:${_}`,`http://[${this.correctForm()}]${_}/`}link(_){_||(_={}),_.className===void 0&&(_.className=""),_.prefix===void 0&&(_.prefix="/#address="),_.v4===void 0&&(_.v4=!1);let b=this.correctForm;_.v4&&(b=this.to4in6);const E=b.call(this);return _.className?`<a href="${_.prefix}${E}" class="${_.className}">${E}</a>`:`<a href="${_.prefix}${E}">${E}</a>`}group(){if(this.elidedGroups===0)return n.simpleGroup(this.address).join(":");c(typeof this.elidedGroups=="number"),c(typeof this.elisionBegin=="number");const _=[],[b,E]=this.address.split("::");b.length?_.push(...n.simpleGroup(b)):_.push("");const S=["hover-group"];for(let A=this.elisionBegin;A<this.elisionBegin+this.elidedGroups;A++)S.push(`group-${A}`);return _.push(`<span class="${S.join(" ")}"></span>`),E.length?_.push(...n.simpleGroup(E,this.elisionEnd)):_.push(""),this.is4()&&(c(this.address4 instanceof l.Address4),_.pop(),_.push(this.address4.groupForV6())),_.join(":")}regularExpressionString(_=!1){let b=[];const E=new Ct(this.correctForm());if(E.elidedGroups===0)b.push((0,u.simpleRegularExpression)(E.parsedAddress));else if(E.elidedGroups===a.GROUPS)b.push((0,u.possibleElisions)(a.GROUPS));else{const S=E.address.split("::");S[0].length&&b.push((0,u.simpleRegularExpression)(S[0].split(":"))),c(typeof E.elidedGroups=="number"),b.push((0,u.possibleElisions)(E.elidedGroups,S[0].length!==0,S[1].length!==0)),S[1].length&&b.push((0,u.simpleRegularExpression)(S[1].split(":"))),b=[b.join(":")]}return _||(b=["(?=^|",u.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...b,")(?=[^\\w\\:]|",u.ADDRESS_BOUNDARY,"|$)"]),b.join("")}regularExpression(_=!1){return new RegExp(this.regularExpressionString(_),"i")}};e.Address6=y})),bd=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(l,u,f,o){o===void 0&&(o=f);var c=Object.getOwnPropertyDescriptor(u,f);(!c||("get"in c?!u.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,o,c)}):(function(l,u,f,o){o===void 0&&(o=f),l[o]=u[f]})),r=e&&e.__setModuleDefault||(Object.create?(function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}):function(l,u){l.default=u}),i=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&t(u,l,f);return r(u,l),u};Object.defineProperty(e,"__esModule",{value:!0}),e.v6=e.AddressError=e.Address6=e.Address4=void 0;var s=yd();Object.defineProperty(e,"Address4",{enumerable:!0,get:function(){return s.Address4}});var h=hw();Object.defineProperty(e,"Address6",{enumerable:!0,get:function(){return h.Address6}});var a=zu();Object.defineProperty(e,"AddressError",{enumerable:!0,get:function(){return a.AddressError}});var n=i(Ed());e.v6={helpers:n}})),fw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ipToBuffer=e.int32ToIpv4=e.ipv4ToInt32=e.validateSocksClientChainOptions=e.validateSocksClientOptions=void 0;var t=gd(),r=md(),i=require("stream"),s=bd(),h=require("net");function a(g,m=["connect","bind","associate"]){if(!r.SocksCommand[g.command])throw new t.SocksClientError(r.ERRORS.InvalidSocksCommand,g);if(m.indexOf(g.command)===-1)throw new t.SocksClientError(r.ERRORS.InvalidSocksCommandForOperation,g);if(!u(g.destination))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsDestination,g);if(!f(g.proxy))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxy,g);if(l(g.proxy,g),g.timeout&&!o(g.timeout))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsTimeout,g);if(g.existing_socket&&!(g.existing_socket instanceof i.Duplex))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsExistingSocket,g)}e.validateSocksClientOptions=a;function n(g){if(g.command!=="connect")throw new t.SocksClientError(r.ERRORS.InvalidSocksCommandChain,g);if(!u(g.destination))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsDestination,g);if(!(g.proxies&&Array.isArray(g.proxies)&&g.proxies.length>=2))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxiesLength,g);if(g.proxies.forEach(m=>{if(!f(m))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxy,g);l(m,g)}),g.timeout&&!o(g.timeout))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsTimeout,g)}e.validateSocksClientChainOptions=n;function l(g,m){if(g.custom_auth_method!==void 0){if(g.custom_auth_method<r.SOCKS5_CUSTOM_AUTH_START||g.custom_auth_method>r.SOCKS5_CUSTOM_AUTH_END)throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthRange,m);if(g.custom_auth_request_handler===void 0||typeof g.custom_auth_request_handler!="function")throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m);if(g.custom_auth_response_size===void 0)throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m);if(g.custom_auth_response_handler===void 0||typeof g.custom_auth_response_handler!="function")throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m)}}function u(g){return g&&typeof g.host=="string"&&Buffer.byteLength(g.host)<256&&typeof g.port=="number"&&g.port>=0&&g.port<=65535}function f(g){return g&&(typeof g.host=="string"||typeof g.ipaddress=="string")&&typeof g.port=="number"&&g.port>=0&&g.port<=65535&&(g.type===4||g.type===5)}function o(g){return typeof g=="number"&&g>0}function c(g){return new s.Address4(g).toArray().reduce((m,v)=>(m<<8)+v,0)>>>0}e.ipv4ToInt32=c;function d(g){return[g>>>24&255,g>>>16&255,g>>>8&255,g&255].join(".")}e.int32ToIpv4=d;function p(g){if(h.isIPv4(g)){const m=new s.Address4(g);return Buffer.from(m.toArray())}else if(h.isIPv6(g)){const m=new s.Address6(g);return Buffer.from(m.canonicalForm().split(":").map(v=>v.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}e.ipToBuffer=p})),dw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReceiveBuffer=void 0;var t=class{constructor(r=4096){this.buffer=Buffer.allocUnsafe(r),this.offset=0,this.originalSize=r}get length(){return this.offset}append(r){if(!Buffer.isBuffer(r))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+r.length>=this.buffer.length){const i=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+r.length)),i.copy(this.buffer)}return r.copy(this.buffer,this.offset),this.offset+=r.length}peek(r){if(r>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,r)}get(r){if(r>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const i=Buffer.allocUnsafe(r);return this.buffer.slice(0,r).copy(i),this.buffer.copyWithin(0,r,r+this.offset-r),this.offset-=r,i}};e.ReceiveBuffer=t})),pw=I.__commonJSMin((e=>{var t=e&&e.__awaiter||function(o,c,d,p){function g(m){return m instanceof d?m:new d(function(v){v(m)})}return new(d||(d=Promise))(function(m,v){function y(b){try{_(p.next(b))}catch(E){v(E)}}function w(b){try{_(p.throw(b))}catch(E){v(E)}}function _(b){b.done?m(b.value):g(b.value).then(y,w)}_((p=p.apply(o,c||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksClientError=e.SocksClient=void 0;var r=require("events"),i=require("net"),s=lw(),h=md(),a=fw(),n=dw(),l=gd();Object.defineProperty(e,"SocksClientError",{enumerable:!0,get:function(){return l.SocksClientError}});var u=bd(),f=class Ro extends r.EventEmitter{constructor(c){super(),this.options=Object.assign({},c),(0,a.validateSocksClientOptions)(c),this.setState(h.SocksClientState.Created)}static createConnection(c,d){return new Promise((p,g)=>{try{(0,a.validateSocksClientOptions)(c,["connect"])}catch(v){return typeof d=="function"?(d(v),p(v)):g(v)}const m=new Ro(c);m.connect(c.existing_socket),m.once("established",v=>{m.removeAllListeners(),typeof d=="function"&&d(null,v),p(v)}),m.once("error",v=>{m.removeAllListeners(),typeof d=="function"?(d(v),p(v)):g(v)})})}static createConnectionChain(c,d){return new Promise((p,g)=>t(this,void 0,void 0,function*(){try{(0,a.validateSocksClientChainOptions)(c)}catch(m){return typeof d=="function"?(d(m),p(m)):g(m)}c.randomizeChain&&(0,l.shuffleArray)(c.proxies);try{let m;for(let v=0;v<c.proxies.length;v++){const y=c.proxies[v],w=v===c.proxies.length-1?c.destination:{host:c.proxies[v+1].host||c.proxies[v+1].ipaddress,port:c.proxies[v+1].port},_=yield Ro.createConnection({command:"connect",proxy:y,destination:w,existing_socket:m});m=m||_.socket}typeof d=="function"?(d(null,{socket:m}),p({socket:m})):p({socket:m})}catch(m){typeof d=="function"?(d(m),p(m)):g(m)}}))}static createUDPFrame(c){const d=new s.SmartBuffer;return d.writeUInt16BE(0),d.writeUInt8(c.frameNumber||0),i.isIPv4(c.remoteHost.host)?(d.writeUInt8(h.Socks5HostType.IPv4),d.writeUInt32BE((0,a.ipv4ToInt32)(c.remoteHost.host))):i.isIPv6(c.remoteHost.host)?(d.writeUInt8(h.Socks5HostType.IPv6),d.writeBuffer((0,a.ipToBuffer)(c.remoteHost.host))):(d.writeUInt8(h.Socks5HostType.Hostname),d.writeUInt8(Buffer.byteLength(c.remoteHost.host)),d.writeString(c.remoteHost.host)),d.writeUInt16BE(c.remoteHost.port),d.writeBuffer(c.data),d.toBuffer()}static parseUDPFrame(c){const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p=d.readUInt8(),g=d.readUInt8();let m;g===h.Socks5HostType.IPv4?m=(0,a.int32ToIpv4)(d.readUInt32BE()):g===h.Socks5HostType.IPv6?m=u.Address6.fromByteArray(Array.from(d.readBuffer(16))).canonicalForm():m=d.readString(d.readUInt8());const v=d.readUInt16BE();return{frameNumber:p,remoteHost:{host:m,port:v},data:d.readBuffer()}}setState(c){this.state!==h.SocksClientState.Error&&(this.state=c)}connect(c){this.onDataReceived=p=>this.onDataReceivedHandler(p),this.onClose=()=>this.onCloseHandler(),this.onError=p=>this.onErrorHandler(p),this.onConnect=()=>this.onConnectHandler();const d=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||h.DEFAULT_TIMEOUT);d.unref&&typeof d.unref=="function"&&d.unref(),c?this.socket=c:this.socket=new i.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(h.SocksClientState.Connecting),this.receiveBuffer=new n.ReceiveBuffer,c?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",p=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const g=this.receiveBuffer.get(this.receiveBuffer.length);p.socket.emit("data",g)}p.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.BoundWaitingForConnection&&this.closeSocket(h.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(h.SocksClientState.Connected),this.options.proxy.type===4?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(h.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(c){this.receiveBuffer.append(c),this.processData()}processData(){for(;this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===h.SocksClientState.SentInitialHandshake)this.options.proxy.type===4?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===h.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===h.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===h.SocksClientState.BoundWaitingForConnection)this.options.proxy.type===4?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(h.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(h.ERRORS.SocketClosed)}onErrorHandler(c){this.closeSocket(c.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(c){this.state!==h.SocksClientState.Error&&(this.setState(h.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new l.SocksClientError(c,this.options)))}sendSocks4InitialHandshake(){const c=this.options.proxy.userId||"",d=new s.SmartBuffer;d.writeUInt8(4),d.writeUInt8(h.SocksCommand[this.options.command]),d.writeUInt16BE(this.options.destination.port),i.isIPv4(this.options.destination.host)?(d.writeBuffer((0,a.ipToBuffer)(this.options.destination.host)),d.writeStringNT(c)):(d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(1),d.writeStringNT(c),d.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(d.toBuffer())}handleSocks4FinalHandshakeResponse(){const c=this.receiveBuffer.get(8);if(c[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedConnection} - (${h.Socks4Response[c[1]]})`);else if(h.SocksCommand[this.options.command]===h.SocksCommand.bind){const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p={port:d.readUInt16BE(),host:(0,a.int32ToIpv4)(d.readUInt32BE())};p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress),this.setState(h.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:p,socket:this.socket})}else this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const c=this.receiveBuffer.get(8);if(c[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${h.Socks4Response[c[1]]})`);else{const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p={port:d.readUInt16BE(),host:(0,a.int32ToIpv4)(d.readUInt32BE())};this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})}}sendSocks5InitialHandshake(){const c=new s.SmartBuffer,d=[h.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&d.push(h.Socks5Auth.UserPass),this.options.proxy.custom_auth_method!==void 0&&d.push(this.options.proxy.custom_auth_method),c.writeUInt8(5),c.writeUInt8(d.length);for(const p of d)c.writeUInt8(p);this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const c=this.receiveBuffer.get(2);c[0]!==5?this.closeSocket(h.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):c[1]===h.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):c[1]===h.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=h.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):c[1]===h.Socks5Auth.UserPass?(this.socks5ChosenAuthType=h.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):c[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const c=this.options.proxy.userId||"",d=this.options.proxy.password||"",p=new s.SmartBuffer;p.writeUInt8(1),p.writeUInt8(Buffer.byteLength(c)),p.writeString(c),p.writeUInt8(Buffer.byteLength(d)),p.writeString(d),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(p.toBuffer()),this.setState(h.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return t(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(h.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(c){return t(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(c)})}handleSocks5AuthenticationNoAuthHandshakeResponse(c){return t(this,void 0,void 0,function*(){return c[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(c){return t(this,void 0,void 0,function*(){return c[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return t(this,void 0,void 0,function*(){this.setState(h.SocksClientState.ReceivedAuthenticationResponse);let c=!1;this.socks5ChosenAuthType===h.Socks5Auth.NoAuth?c=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===h.Socks5Auth.UserPass?c=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(c=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),c?this.sendSocks5CommandRequest():this.closeSocket(h.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){const c=new s.SmartBuffer;c.writeUInt8(5),c.writeUInt8(h.SocksCommand[this.options.command]),c.writeUInt8(0),i.isIPv4(this.options.destination.host)?(c.writeUInt8(h.Socks5HostType.IPv4),c.writeBuffer((0,a.ipToBuffer)(this.options.destination.host))):i.isIPv6(this.options.destination.host)?(c.writeUInt8(h.Socks5HostType.IPv6),c.writeBuffer((0,a.ipToBuffer)(this.options.destination.host))):(c.writeUInt8(h.Socks5HostType.Hostname),c.writeUInt8(this.options.destination.host.length),c.writeString(this.options.destination.host)),c.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const c=this.receiveBuffer.peek(5);if(c[0]!==5||c[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${h.Socks5Response[c[1]]}`);else{const d=c[3];let p,g;if(d===h.Socks5HostType.IPv4){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:(0,a.int32ToIpv4)(g.readUInt32BE()),port:g.readUInt16BE()},p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){const m=c[4],v=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(m);if(this.receiveBuffer.length<v){this.nextRequiredPacketBufferSize=v;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(v).slice(5)),p={host:g.readString(m),port:g.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:u.Address6.fromByteArray(Array.from(g.readBuffer(16))).canonicalForm(),port:g.readUInt16BE()}}this.setState(h.SocksClientState.ReceivedFinalResponse),h.SocksCommand[this.options.command]===h.SocksCommand.connect?(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.bind?(this.setState(h.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:p,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.associate&&(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){const c=this.receiveBuffer.peek(5);if(c[0]!==5||c[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${h.Socks5Response[c[1]]}`);else{const d=c[3];let p,g;if(d===h.Socks5HostType.IPv4){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:(0,a.int32ToIpv4)(g.readUInt32BE()),port:g.readUInt16BE()},p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){const m=c[4],v=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(m);if(this.receiveBuffer.length<v){this.nextRequiredPacketBufferSize=v;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(v).slice(5)),p={host:g.readString(m),port:g.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:u.Address6.fromByteArray(Array.from(g.readBuffer(16))).canonicalForm(),port:g.readUInt16BE()}}this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}};e.SocksClient=f})),mw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(i,s,h,a){a===void 0&&(a=h);var n=Object.getOwnPropertyDescriptor(s,h);(!n||("get"in n?!s.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return s[h]}}),Object.defineProperty(i,a,n)}):(function(i,s,h,a){a===void 0&&(a=h),i[a]=s[h]})),r=e&&e.__exportStar||function(i,s){for(var h in i)h!=="default"&&!Object.prototype.hasOwnProperty.call(s,h)&&t(s,i,h)};Object.defineProperty(e,"__esModule",{value:!0}),r(pw(),e)})),gw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(v,y,w,_){_===void 0&&(_=w);var b=Object.getOwnPropertyDescriptor(y,w);(!b||("get"in b?!y.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return y[w]}}),Object.defineProperty(v,_,b)}):(function(v,y,w,_){_===void 0&&(_=w),v[_]=y[w]})),r=e&&e.__setModuleDefault||(Object.create?(function(v,y){Object.defineProperty(v,"default",{enumerable:!0,value:y})}):function(v,y){v.default=y}),i=e&&e.__importStar||function(v){if(v&&v.__esModule)return v;var y={};if(v!=null)for(var w in v)w!=="default"&&Object.prototype.hasOwnProperty.call(v,w)&&t(y,v,w);return r(y,v),y},s=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksProxyAgent=void 0;var h=mw(),a=As(),n=s(pn()),l=i(require("dns")),u=i(require("net")),f=i(require("tls")),o=require("url"),c=(0,n.default)("socks-proxy-agent"),d=v=>v.servername===void 0&&v.host&&!u.isIP(v.host)?{...v,servername:v.host}:v;function p(v){let y=!1,w=5;const _=v.hostname,b=parseInt(v.port,10)||1080;switch(v.protocol.replace(":","")){case"socks4":y=!0,w=4;break;case"socks4a":w=4;break;case"socks5":y=!0,w=5;break;case"socks":w=5;break;case"socks5h":w=5;break;default:throw new TypeError(`A "socks" protocol must be specified! Got: ${String(v.protocol)}`)}const E={host:_,port:b,type:w};return v.username&&Object.defineProperty(E,"userId",{value:decodeURIComponent(v.username),enumerable:!1}),v.password!=null&&Object.defineProperty(E,"password",{value:decodeURIComponent(v.password),enumerable:!1}),{lookup:y,proxy:E}}var g=class extends a.Agent{constructor(v,y){super(y);const{proxy:w,lookup:_}=p(typeof v=="string"?new o.URL(v):v);this.shouldLookup=_,this.proxy=w,this.timeout=y?.timeout??null,this.socketOptions=y?.socketOptions??null}async connect(v,y){const{shouldLookup:w,proxy:_,timeout:b}=this;if(!y.host)throw new Error("No `host` defined!");let{host:E}=y;const{port:S,lookup:A=l.lookup}=y;w&&(E=await new Promise(($,z)=>{A(E,{},(V,H)=>{V?z(V):$(H)})}));const C={proxy:_,destination:{host:E,port:typeof S=="number"?S:parseInt(S,10)},command:"connect",timeout:b??void 0,socket_options:this.socketOptions??void 0},T=$=>{v.destroy(),U.destroy(),$&&$.destroy()};c("Creating socks proxy connection: %o",C);const{socket:U}=await h.SocksClient.createConnection(C);if(c("Successfully created socks proxy connection"),b!==null&&(U.setTimeout(b),U.on("timeout",()=>T())),y.secureEndpoint){c("Upgrading socket connection to TLS");const $=f.connect({...m(d(y),"host","path","port"),socket:U});return $.once("error",z=>{c("Socket TLS error",z.message),T($)}),$}return U}};g.protocols=["socks","socks4","socks4a","socks5","socks5h"],e.SocksProxyAgent=g;function m(v,...y){const w={};let _;for(_ in v)y.includes(_)||(w[_]=v[_]);return w}})),wd=I.__commonJSMin(((e,t)=>{var r=class extends Error{constructor(n){super(`Invalid protocol \`${n.protocol}\` connecting to proxy \`${n.host}\``),this.code="EINVALIDPROXY",this.proxy=n}},i=class extends Error{constructor(n){super(`Timeout connecting to host \`${n}\``),this.code="ECONNECTIONTIMEOUT",this.host=n}},s=class extends Error{constructor(n){super(`Idle timeout reached for host \`${n}\``),this.code="EIDLETIMEOUT",this.host=n}},h=class extends Error{constructor(n,l){let u="Response timeout ";l&&(u+=`from proxy \`${l.host}\` `),u+=`connecting to host \`${n.host}\``,super(u),this.code="ERESPONSETIMEOUT",this.proxy=l,this.request=n}},a=class extends Error{constructor(n,l){let u="Transfer timeout ";l&&(u+=`from proxy \`${l.host}\` `),u+=`for \`${n.host}\``,super(u),this.code="ETRANSFERTIMEOUT",this.proxy=l,this.request=n}};t.exports={InvalidProxyProtocolError:r,ConnectionTimeoutError:i,IdleTimeoutError:s,ResponseTimeoutError:h,TransferTimeoutError:a}})),Sd=I.__commonJSMin(((e,t)=>{var{HttpProxyAgent:r}=sw(),{HttpsProxyAgent:i}=ow(),{SocksProxyAgent:s}=gw(),{LRUCache:h}=nn(),{InvalidProxyProtocolError:a}=wd(),n=new h({max:20}),l=new Set(s.protocols),u=new Set(["https_proxy","http_proxy","proxy","no_proxy"]),f=Object.entries(process.env).reduce((p,[g,m])=>(g=g.toLowerCase(),u.has(g)&&(p[g]=m),p),{}),o=p=>{p=new URL(p);const g=p.protocol.slice(0,-1);if(l.has(g))return s;if(g==="https"||g==="http")return[r,i];throw new a(p)},c=(p,g)=>{if(typeof g=="string"&&(g=g.split(",").map(v=>v.trim()).filter(Boolean)),!g||!g.length)return!1;const m=p.hostname.split(".").reverse();return g.some(v=>{const y=v.split(".").filter(Boolean).reverse();if(!y.length)return!1;for(let w=0;w<y.length;w++)if(m[w]!==y[w])return!1;return!0})},d=(p,{proxy:g,noProxy:m})=>(p=new URL(p),g||(g=p.protocol==="https:"?f.https_proxy:f.https_proxy||f.http_proxy||f.proxy),m||(m=f.no_proxy),!g||c(p,m)?null:new URL(g));t.exports={getProxyAgent:o,getProxy:d,proxyCache:n}})),vw=I.__commonJSMin(((e,t)=>{var r=require("net"),i=require("tls"),{once:s}=require("events"),h=require("timers/promises"),{normalizeOptions:a,cacheOptions:n}=fd(),{getProxy:l,getProxyAgent:u,proxyCache:f}=Sd(),o=wd(),{Agent:c}=As();t.exports=class extends c{#e;#t;#r;#n;#a;constructor(p={}){const{timeouts:g,proxy:m,noProxy:v,...y}=a(p);super(y),this.#e=y,this.#t=g,m&&(this.#r=new URL(m),this.#n=v,this.#a=u(m))}get proxy(){return this.#r?{url:this.#r}:{}}#l(p){if(!this.#r)return;const g=l(`${p.protocol}//${p.host}:${p.port}`,{proxy:this.#r,noProxy:this.#n});if(!g)return;const m=n({...p,...this.#e,timeouts:this.#t,proxy:g});if(f.has(m))return f.get(m);let v=this.#a;Array.isArray(v)&&(v=this.isSecureEndpoint(p)?v[1]:v[0]);const y=new v(g,{...this.#e,socketOptions:{family:this.#e.family}});return f.set(m,y),y}async#f({promises:p,options:g,timeout:m},v=new AbortController){if(m){const w=h.setTimeout(m,null,{signal:v.signal}).then(()=>{throw new o.ConnectionTimeoutError(`${g.host}:${g.port}`)}).catch(_=>{if(_.name!=="AbortError")throw _});p.push(w)}let y;try{y=await Promise.race(p),v.abort()}catch(w){throw v.abort(),w}return y}async connect(p,g){g.lookup??=this.#e.lookup;let m,v=this.#t.connection;const y=this.isSecureEndpoint(g),w=this.#l(g);if(w){const S=Date.now();m=await this.#f({options:g,timeout:v,promises:[w.connect(p,g)]}),v&&(v=v-(Date.now()-S))}else m=(y?i:r).connect(g);m.setKeepAlive(this.keepAlive,this.keepAliveMsecs),m.setNoDelay(this.keepAlive);const _=new AbortController,{signal:b}=_,E=m[y?"secureConnecting":"connecting"]?s(m,y?"secureConnect":"connect",{signal:b}):Promise.resolve();return await this.#f({options:g,timeout:v,promises:[E,s(m,"error",{signal:b}).then(S=>{throw S[0]})]},_),this.#t.idle&&m.setTimeout(this.#t.idle,()=>{m.destroy(new o.IdleTimeoutError(`${g.host}:${g.port}`))}),m}addRequest(p,g){const m=this.#l(g);if(m?.setRequestProps&&m.setRequestProps(p,g),p.setHeader("connection",this.keepAlive?"keep-alive":"close"),this.#t.response){let v;p.once("finish",()=>{setTimeout(()=>{p.destroy(new o.ResponseTimeoutError(p,this.#r))},this.#t.response)}),p.once("response",()=>{clearTimeout(v)})}if(this.#t.transfer){let v;p.once("response",y=>{setTimeout(()=>{y.destroy(new o.TransferTimeoutError(p,this.#r))},this.#t.transfer),y.once("close",()=>{clearTimeout(v)})})}return super.addRequest(p,g)}}})),yw=I.__commonJSMin(((e,t)=>{var{LRUCache:r}=nn(),{normalizeOptions:i,cacheOptions:s}=fd(),{getProxy:h,proxyCache:a}=Sd(),n=hd(),l=vw(),u=new r({max:20}),f=(o,{agent:c,proxy:d,noProxy:p,...g}={})=>{if(c!=null)return c;o=new URL(o);const m=h(o,{proxy:d,noProxy:p}),v={...i(g),proxy:m},y=s({...v,secureEndpoint:o.protocol==="https:"});if(u.has(y))return u.get(y);const w=new l(v);return u.set(y,w),w};t.exports={getAgent:f,Agent:l,HttpAgent:l,HttpsAgent:l,cache:{proxy:a,agent:u,dns:n.cache,clear:()=>{a.clear(),u.clear(),n.cache.clear()}}}})),_w=I.__exportAll({author:()=>Bo,default:()=>Dd,dependencies:()=>Mo,description:()=>ko,devDependencies:()=>Po,engines:()=>jo,files:()=>Fo,keywords:()=>$o,license:()=>"ISC",main:()=>Lo,name:()=>Oo,repository:()=>xo,scripts:()=>No,tap:()=>Uo,templateOSS:()=>Ho,version:()=>Io}),Oo,Io,ko,Lo,Fo,No,xo,$o,Bo,Ew,Mo,Po,jo,Uo,Ho,Dd,bw=I.__esmMin((()=>{Oo="make-fetch-happen",Io="15.0.5",ko="Opinionated, caching, retrying fetch client",Lo="lib/index.js",Fo=["bin/","lib/"],No={test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},xo={type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},$o=["http","request","fetch","mean girls","caching","cache","subresource integrity"],Bo="GitHub Inc.",Ew="ISC",Mo={"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0","@npmcli/redact":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},Po={"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},jo={node:"^20.17.0 || >=22.9.0"},Uo={color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},Ho={"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"},Dd={name:Oo,version:Io,description:ko,main:Lo,files:Fo,scripts:No,repository:xo,keywords:$o,author:Bo,license:"ISC",dependencies:Mo,devDependencies:Po,engines:jo,tap:Uo,templateOSS:Ho}})),Gu=I.__commonJSMin(((e,t)=>{var{Minipass:r}=Ot(),i=cn(),{promiseRetry:s}=Xb(),h=zr(),{log:a}=Pu(),{redact:n}=zf(),l=cd(),{getAgent:u}=yw(),f=(bw(),I.__toCommonJS(_w).default),o=`${f.name}/${f.version} (+https://npm.im/${f.name})`,c=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"],d=["request-timeout"],p=(g,m)=>{const v=u(g.url,{...m,signal:void 0});g.headers.has("connection")||g.headers.set("connection",v?"keep-alive":"close"),g.headers.has("user-agent")||g.headers.set("user-agent",o);const y={...m,agent:v,redirect:"manual"};return s(async(w,_)=>{const b=new i.Request(g,y),E=n(b.url);try{let S=await i(b,y);if(y.integrity&&S.status===200){const C=h.integrityStream({algorithms:y.algorithms,integrity:y.integrity,size:y.size}),T=new l({events:["integrity","size"]},S.body,C);C.on("integrity",U=>T.emit("integrity",U)),C.on("size",U=>T.emit("size",U)),S=new i.Response(T,S),S.body.hasIntegrityEmitter=!0}S.headers.set("x-fetch-attempts",_);const A=r.isStream(b.body);return b.method!=="POST"&&!A&&([408,420,429].includes(S.status)||S.status>=500)?(typeof m.onRetry=="function"&&m.onRetry(S),a.http("fetch",`${b.method} ${E} attempt ${_} failed with ${S.status}`),w(S)):S}catch(S){const A=S.code==="EPROMISERETRY"?S.retried.code:S.code,C=S.retried instanceof i.Response||c.includes(A)&&d.includes(S.type);if(b.method==="POST"||C)throw S;return typeof m.onRetry=="function"&&m.onRetry(S),a.http("fetch",`${b.method} ${E} attempt ${_} failed with ${S.code}`),w(S)}},m.retry).catch(w=>{if(w.status>=400&&w.type!=="system")return w;throw w})};t.exports=p})),ww=I.__commonJSMin(((e,t)=>{var{Request:r,Response:i}=cn(),{Minipass:s}=Ot(),h=ju(),a=Yb(),n=require("url"),l=cd(),u=Wf(),f=Kb(),o=Gu(),c=(_,b)=>Object.prototype.hasOwnProperty.call(_,b),d=["accept-charset","accept-encoding","accept-language","accept","cache-control"],p=["cache-control","content-encoding","content-language","content-type","date","etag","expires","last-modified","link","location","pragma","vary"],g=(_,b,E)=>{const S={time:Date.now(),url:_.url,reqHeaders:{},resHeaders:{},options:{compress:E.compress!=null?E.compress:_.compress}};b.status!==200&&b.status!==304&&(S.status=b.status);for(const T of d)_.headers.has(T)&&(S.reqHeaders[T]=_.headers.get(T));const A=_.headers.get("host"),C=new n.URL(_.url);if(A&&C.host!==A&&(S.reqHeaders.host=A),b.headers.has("vary")){const T=b.headers.get("vary");if(T!=="*"){const U=T.trim().toLowerCase().split(/\s*,\s*/);for(const $ of U)_.headers.has($)&&(S.reqHeaders[$]=_.headers.get($))}}for(const T of p)b.headers.has(T)&&(S.resHeaders[T]=b.headers.get(T));for(const T of E.cacheAdditionalHeaders)b.headers.has(T)&&(S.resHeaders[T]=b.headers.get(T));return S},m=Symbol("request"),v=Symbol("response"),y=Symbol("policy"),w=class ri{constructor({entry:b,request:E,response:S,options:A}){b?(this.key=b.key,this.entry=b,this.entry.metadata.time=this.entry.metadata.time||this.entry.time):this.key=f(E),this.options=A,this[m]=E,this[v]=S,this[y]=null}static async find(b,E){try{var S=await a.index.compact(E.cachePath,f(b),(C,T)=>{const U=new ri({entry:C,options:E}),$=new ri({entry:T,options:E});return U.policy.satisfies($.request)},{validateEntry:C=>C.metadata&&C.metadata.resHeaders&&C.metadata.resHeaders["content-encoding"]===null?!1:C.integrity===null?!!(C.metadata&&C.metadata.status):!0})}catch{return}if(E.cache==="reload")return;let A;for(const C of S){const T=new ri({entry:C,options:E});if(T.policy.satisfies(b)){A=T;break}}return A}static async invalidate(b,E){const S=f(b);try{await a.rm.entry(E.cachePath,S,{removeFully:!0})}catch{}}get request(){return this[m]||(this[m]=new r(this.entry.metadata.url,{method:"GET",headers:this.entry.metadata.reqHeaders,...this.entry.metadata.options})),this[m]}get response(){return this[v]||(this[v]=new i(null,{url:this.entry.metadata.url,counter:this.options.counter,status:this.entry.metadata.status||200,headers:{...this.entry.metadata.resHeaders,"content-length":this.entry.size}})),this[v]}get policy(){return this[y]||(this[y]=new u({entry:this.entry,request:this.request,response:this.response,options:this.options})),this[y]}async store(b){if(this.request.method!=="GET"||![200,301,308].includes(this.response.status)||!this.policy.storable())return this.response.headers.set("x-local-cache-status","skip"),this.response;const E=this.response.headers.get("content-length"),S={algorithms:this.options.algorithms,metadata:g(this.request,this.response,this.options),size:E,integrity:this.options.integrity,integrityEmitter:this.response.body.hasIntegrityEmitter&&this.response.body};let A=null;if(this.response.status===200){let C,T;const U=new Promise((z,V)=>{C=z,T=V}).catch(z=>{A.emit("error",z)});A=new l({events:["integrity","size"]},new h({flush(){return U}})),A.hasIntegrityEmitter=!0;const $=()=>{const z=new s,V=a.put.stream(this.options.cachePath,this.key,S);V.on("integrity",H=>A.emit("integrity",H)),V.on("size",H=>A.emit("size",H)),z.pipe(V),V.promise().then(C,T),A.unshift(z),A.unshift(this.response.body)};A.once("resume",$),A.once("end",()=>A.removeListener("resume",$))}else await a.index.insert(this.options.cachePath,this.key,null,S);return this.response.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),this.response.headers.set("x-local-cache-key",encodeURIComponent(this.key)),this.response.headers.set("x-local-cache-mode","stream"),this.response.headers.set("x-local-cache-status",b),this.response.headers.set("x-local-cache-time",new Date().toISOString()),new i(A,{url:this.response.url,status:this.response.status,headers:this.response.headers,counter:this.options.counter})}async respond(b,E,S){let A;if(b==="HEAD"||[301,308].includes(this.response.status))A=this.response;else{const C=new s,T={...this.policy.responseHeaders()},U=()=>{const $=a.get.stream.byDigest(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize});$.on("error",async z=>{$.pause(),z.code==="EINTEGRITY"&&await a.rm.content(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize}),(z.code==="ENOENT"||z.code==="EINTEGRITY")&&await ri.invalidate(this.request,this.options),C.emit("error",z),$.resume()}),C.emit("integrity",this.entry.integrity),C.emit("size",Number(T["content-length"])),$.pipe(C)};C.once("resume",U),C.once("end",()=>C.removeListener("resume",U)),A=new i(C,{url:this.entry.metadata.url,counter:E.counter,status:200,headers:T})}return A.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),A.headers.set("x-local-cache-hash",encodeURIComponent(this.entry.integrity)),A.headers.set("x-local-cache-key",encodeURIComponent(this.key)),A.headers.set("x-local-cache-mode","stream"),A.headers.set("x-local-cache-status",S),A.headers.set("x-local-cache-time",new Date(this.entry.metadata.time).toUTCString()),A}async revalidate(b,E){const S=new r(b,{headers:this.policy.revalidationHeaders(b)});try{var A=await o(S,{...E,headers:void 0})}catch(C){if(!this.policy.mustRevalidate)return this.respond(b.method,E,"stale");throw C}if(this.policy.revalidated(S,A)){const C=g(b,A,E);for(const T of p)!c(C.resHeaders,T)&&c(this.entry.metadata.resHeaders,T)&&(C.resHeaders[T]=this.entry.metadata.resHeaders[T]);for(const T of E.cacheAdditionalHeaders){const U=c(C.resHeaders,T),$=c(this.entry.metadata.resHeaders,T),z=c(this.policy.response.headers,T);!U&&$&&(C.resHeaders[T]=this.entry.metadata.resHeaders[T]),!z&&U&&(this.policy.response.headers[T]=C.resHeaders[T])}try{await a.index.insert(E.cachePath,this.key,this.entry.integrity,{size:this.entry.size,metadata:C})}catch{}return this.respond(b.method,E,"revalidated")}return new ri({request:b,response:A,options:E}).store("updated")}};t.exports=w})),Sw=I.__commonJSMin(((e,t)=>{var{NotCachedError:r}=kb(),i=ww(),s=Gu(),h=async(a,n)=>{const l=await i.find(a,n);if(!l){if(n.cache==="only-if-cached")throw new r(a.url);return new i({request:a,response:await s(a,n),options:n}).store("miss")}if(n.cache==="no-cache")return l.revalidate(a,n);const u=l.policy.needsRevalidation(a);return n.cache==="force-cache"||n.cache==="only-if-cached"||!u?l.respond(a.method,n,u?"stale":"hit"):l.revalidate(a,n)};h.invalidate=async(a,n)=>{if(n.cachePath)return i.invalidate(a,n)},t.exports=h})),Dw=I.__commonJSMin(((e,t)=>{var{FetchError:r,Request:i,isRedirect:s}=cn(),h=require("url"),a=Wf(),n=Sw(),l=Gu(),u=(c,d,p)=>{if(!s(d.status)||p.redirect==="manual")return!1;if(p.redirect==="error")throw new r(`redirect mode is set to error: ${c.url}`,"no-redirect",{code:"ENOREDIRECT"});if(!d.headers.has("location"))throw new r(`redirect location header missing for: ${c.url}`,"no-location",{code:"EINVALIDREDIRECT"});if(c.counter>=c.follow)throw new r(`maximum redirect reached at: ${c.url}`,"max-redirect",{code:"EMAXREDIRECT"});return!0},f=(c,d,p)=>{const g={...p},m=d.headers.get("location"),v=new h.URL(m,/^https?:/.test(m)?void 0:c.url);return new h.URL(c.url).hostname!==v.hostname&&(c.headers.delete("authorization"),c.headers.delete("cookie")),(d.status===303||c.method==="POST"&&[301,302].includes(d.status))&&(g.method="GET",g.body=null,c.headers.delete("content-length")),g.headers={},c.headers.forEach((y,w)=>{g.headers[w]=y}),g.counter=++c.counter,{request:new i(h.format(v),g),options:g}},o=async(c,d)=>{const p=a.storable(c,d)?await n(c,d):await l(c,d);if(!["GET","HEAD"].includes(c.method)&&p.status>=200&&p.status<=399&&await n.invalidate(c,d),!u(c,p,d))return p;const g=f(c,p,d);return o(g.request,g.options)};t.exports=o})),Aw=I.__commonJSMin(((e,t)=>{var{FetchError:r,Headers:i,Request:s,Response:h}=cn(),a=Db(),n=Dw(),l=(u,f)=>{const o=a(f);return n(new s(u,o),o)};l.defaults=(u,f={},o=l)=>{typeof u=="object"&&(f=u,u=null);const c=(d,p={})=>o(d||u,{...f,...p,headers:{...f.headers,...p.headers}});return c.defaults=(d,p={})=>l.defaults(d,p,c),c},t.exports=l,t.exports.FetchError=r,t.exports.Headers=i,t.exports.Request=s,t.exports.Response=h})),Cw=I.__commonJSMin(((e,t)=>{var r={},i=r.LEFT_BRACE=1,s=r.RIGHT_BRACE=2,h=r.LEFT_BRACKET=3,a=r.RIGHT_BRACKET=4,n=r.COLON=5,l=r.COMMA=6,u=r.TRUE=7,f=r.FALSE=8,o=r.NULL=9,c=r.STRING=10,d=r.NUMBER=11,p=r.START=17,g=r.STOP=18,m=r.TRUE1=33,v=r.TRUE2=34,y=r.TRUE3=35,w=r.FALSE1=49,_=r.FALSE2=50,b=r.FALSE3=51,E=r.FALSE4=52,S=r.NULL1=65,A=r.NULL2=66,C=r.NULL3=67,T=r.NUMBER1=81,U=r.NUMBER3=83,$=r.STRING1=97,z=r.STRING2=98,V=r.STRING3=99,H=r.STRING4=100,L=r.STRING5=101,N=r.STRING6=102,q=r.VALUE=113,J=r.KEY=114,P=r.OBJECT=129,B=r.ARRAY=130,F=92,O=47,x=8,Y=12,oe=10,pe=13,ye=9,W=64*1024;function M(){this.tState=p,this.value=void 0,this.string=void 0,this.stringBuffer=Buffer.alloc?Buffer.alloc(W):new Buffer(W),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=q,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new Buffer(2),3:new Buffer(3),4:new Buffer(4)},this.offset=-1}M.toknam=function(X){for(var ne=Object.keys(r),k=0,j=ne.length;k<j;k++){var ee=ne[k];if(r[ee]===X)return ee}return X&&"0x"+X.toString(16)};var G=M.prototype;G.onError=function(X){throw X},G.charError=function(X,ne){this.tState=g,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(X[ne]))+" at position "+ne+" in state "+M.toknam(this.tState)))},G.appendStringChar=function(X){this.stringBufferOffset>=W&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=X},G.appendStringBuf=function(X,ne,k){var j=X.length;typeof ne=="number"&&(typeof k=="number"?k<0?j=X.length-ne+k:j=k-ne:j=X.length-ne),j<0&&(j=0),this.stringBufferOffset+j>W&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),X.copy(this.stringBuffer,this.stringBufferOffset,ne,k),this.stringBufferOffset+=j},G.write=function(X){typeof X=="string"&&(X=new Buffer(X));for(var ne,k=0,j=X.length;k<j;k++)if(this.tState===p){if(ne=X[k],this.offset++,ne===123)this.onToken(i,"{");else if(ne===125)this.onToken(s,"}");else if(ne===91)this.onToken(h,"[");else if(ne===93)this.onToken(a,"]");else if(ne===58)this.onToken(n,":");else if(ne===44)this.onToken(l,",");else if(ne===116)this.tState=m;else if(ne===102)this.tState=w;else if(ne===110)this.tState=S;else if(ne===34)this.string="",this.stringBufferOffset=0,this.tState=$;else if(ne===45)this.string="-",this.tState=T;else if(ne>=48&&ne<64)this.string=String.fromCharCode(ne),this.tState=U;else if(!(ne===32||ne===9||ne===10||ne===13))return this.charError(X,k)}else if(this.tState===$)if(ne=X[k],this.bytes_remaining>0){for(var ee=0;ee<this.bytes_remaining;ee++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+ee]=X[ee];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,k=k+ee-1}else if(this.bytes_remaining===0&&ne>=128){if(ne<=193||ne>244)return this.onError(new Error("Invalid UTF-8 character at position "+k+" in state "+M.toknam(this.tState)));if(ne>=194&&ne<=223&&(this.bytes_in_sequence=2),ne>=224&&ne<=239&&(this.bytes_in_sequence=3),ne>=240&&ne<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+k>X.length){for(var Se=0;Se<=X.length-1-k;Se++)this.temp_buffs[this.bytes_in_sequence][Se]=X[k+Se];this.bytes_remaining=k+this.bytes_in_sequence-X.length,k=X.length-1}else this.appendStringBuf(X,k,k+this.bytes_in_sequence),k=k+this.bytes_in_sequence-1}else if(ne===34)this.tState=p,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(c,this.string),this.offset+=Buffer.byteLength(this.string,"utf8")+1,this.string=void 0;else if(ne===92)this.tState=z;else if(ne>=32)this.appendStringChar(ne);else return this.charError(X,k);else if(this.tState===z)if(ne=X[k],ne===34)this.appendStringChar(ne),this.tState=$;else if(ne===92)this.appendStringChar(F),this.tState=$;else if(ne===47)this.appendStringChar(O),this.tState=$;else if(ne===98)this.appendStringChar(x),this.tState=$;else if(ne===102)this.appendStringChar(Y),this.tState=$;else if(ne===110)this.appendStringChar(oe),this.tState=$;else if(ne===114)this.appendStringChar(pe),this.tState=$;else if(ne===116)this.appendStringChar(ye),this.tState=$;else if(ne===117)this.unicode="",this.tState=V;else return this.charError(X,k);else if(this.tState===V||this.tState===H||this.tState===L||this.tState===N)if(ne=X[k],ne>=48&&ne<64||ne>64&&ne<=70||ne>96&&ne<=102){if(this.unicode+=String.fromCharCode(ne),this.tState++===N){var De=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&De>=56320&&De<57344?(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate,De))),this.highSurrogate=void 0):this.highSurrogate===void 0&&De>=55296&&De<56320?this.highSurrogate=De:(this.highSurrogate!==void 0&&(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new Buffer(String.fromCharCode(De)))),this.tState=$}}else return this.charError(X,k);else if(this.tState===T||this.tState===U)switch(ne=X[k],ne){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(ne),this.tState=U;break;default:this.tState=p;var ve=Number(this.string);if(isNaN(ve))return this.charError(X,k);this.string.match(/[0-9]+/)==this.string&&ve.toString()!=this.string?this.onToken(c,this.string):this.onToken(d,ve),this.offset+=this.string.length-1,this.string=void 0,k--;break}else if(this.tState===m)if(X[k]===114)this.tState=v;else return this.charError(X,k);else if(this.tState===v)if(X[k]===117)this.tState=y;else return this.charError(X,k);else if(this.tState===y)if(X[k]===101)this.tState=p,this.onToken(u,!0),this.offset+=3;else return this.charError(X,k);else if(this.tState===w)if(X[k]===97)this.tState=_;else return this.charError(X,k);else if(this.tState===_)if(X[k]===108)this.tState=b;else return this.charError(X,k);else if(this.tState===b)if(X[k]===115)this.tState=E;else return this.charError(X,k);else if(this.tState===E)if(X[k]===101)this.tState=p,this.onToken(f,!1),this.offset+=4;else return this.charError(X,k);else if(this.tState===S)if(X[k]===117)this.tState=A;else return this.charError(X,k);else if(this.tState===A)if(X[k]===108)this.tState=C;else return this.charError(X,k);else if(this.tState===C)if(X[k]===108)this.tState=p,this.onToken(o,null),this.offset+=3;else return this.charError(X,k)},G.onToken=function(X,ne){},G.parseError=function(X,ne){this.tState=g,this.onError(new Error("Unexpected "+M.toknam(X)+(ne?"("+JSON.stringify(ne)+")":"")+" in state "+M.toknam(this.state)))},G.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},G.pop=function(){var X=this.value,ne=this.stack.pop();this.value=ne.value,this.key=ne.key,this.mode=ne.mode,this.emit(X),this.mode||(this.state=q)},G.emit=function(X){this.mode&&(this.state=l),this.onValue(X)},G.onValue=function(X){},G.onToken=function(X,ne){if(this.state===q)if(X===c||X===d||X===u||X===f||X===o)this.value&&(this.value[this.key]=ne),this.emit(ne);else if(X===i)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=J,this.mode=P;else if(X===h)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=B,this.state=q;else if(X===s)if(this.mode===P)this.pop();else return this.parseError(X,ne);else if(X===a)if(this.mode===B)this.pop();else return this.parseError(X,ne);else return this.parseError(X,ne);else if(this.state===J)if(X===c)this.key=ne,this.state=n;else if(X===s)this.pop();else return this.parseError(X,ne);else if(this.state===n)if(X===n)this.state=q;else return this.parseError(X,ne);else if(this.state===l)if(X===l)this.mode===B?(this.key++,this.state=q):this.mode===P&&(this.state=J);else if(X===a&&this.mode===B||X===s&&this.mode===P)this.pop();else return this.parseError(X,ne);else return this.parseError(X,ne)},M.C=r,t.exports=M})),Tw=I.__commonJSMin(((e,t)=>{var r=Cw(),{Minipass:i}=Ot(),s=class extends Error{constructor(n,l){super(n.message),Error.captureStackTrace(this,l||this.constructor)}get name(){return"JSONStreamError"}},h=(n,l)=>typeof n=="string"?String(l)===n:n&&typeof n.test=="function"?n.test(l):typeof n=="boolean"||typeof n=="object"?n:typeof n=="function"?n(l):!1,a=class Ad extends i{#e=0;#t=!1;#r=null;#n=null;#a=null;#l;#f;#c=null;#o=null;constructor(l){super({...l,objectMode:!0});const u=this.#f=new r;u.onValue=f=>this.#i(f),this.#l=u.onToken,u.onToken=(f,o)=>this.#u(f,o),u.onError=f=>this.#h(f),this.#c=typeof l.path=="string"?l.path.split(".").map(f=>f==="$*"?{emitKey:!0}:f==="*"?!0:f===""?{recurse:!0}:f):Array.isArray(l.path)&&l.path.length?l.path:null,typeof l.map=="function"&&(this.#a=l.map)}#p(l,u){this.#n!==!1&&(this.#n=this.#n||{},this.#n[l]=u),this.#r!==!1&&this.#n===!1&&(this.#r=this.#r||{},this.#r[l]=u)}#h(l){const u=this.#t?this.end:this.write;return this.#t=!1,this.emit("error",new s(l,u))}#u(l,u){const f=this.#f;if(this.#l.call(this.#f,l,u),f.stack.length===0&&this.#o){const o=this.#o;this.#c||super.write(o),this.#o=null,this.#e=0}}#i(l){const u=this.#f;if(this.#o=l,!this.#c)return;let f=0,o=0,c=!1;for(;f<this.#c.length;){const p=this.#c[f];if(o++,p&&!p.recurse){const g=o===u.stack.length?u:u.stack[o];if(!g)return;if(!h(p,g.key)){this.#p(g.key,l);return}c=!!p.emitKey,f++}else{if(f++,f>=this.#c.length)return;const g=this.#c[f];if(!g)return;for(;;){const m=o===u.stack.length?u:u.stack[o];if(!m)return;if(h(g,m.key)){f++,Object.isFrozen(u.stack[o])||(u.stack[o].value=null);break}else this.#p(m.key,l);o++}}}if(this.#n){const p=this.#n;this.#n=!1,this.emit("header",p)}if(o!==u.stack.length)return;this.#e++;const d=u.stack.slice(1).map(p=>p.key).concat([u.key]);if(l!=null){const p=this.#a?this.#a(l,d):l;if(p!=null){const g=c?{value:p}:p;c&&(g.key=u.key),super.write(g)}}u.value&&delete u.value[u.key];for(const p of u.stack)p.value=null}write(l,u){if(typeof l=="string")l=Buffer.from(l,u);else if(!Buffer.isBuffer(l))return this.emit("error",new TypeError("Can only parse JSON from string or buffer input"));return this.#f.write(l),this.flowing}end(l,u){this.#t=!0,l&&this.write(l,u);const f=this.#n;this.#n=null;const o=this.#r;return this.#r=null,f&&this.emit("header",f),o&&this.emit("footer",o),super.end()}static get JSONStreamError(){return s}static parse(l,u){return new Ad({path:l,map:u})}};t.exports=a})),Rw=I.__commonJSMin(((e,t)=>{var{HttpErrorAuthOTP:r}=Af(),i=_b(),s=Sb(),h=Aw(),a=Tw(),n=Jf(),l=require("querystring"),u=require("url"),f=Cf(),{Minipass:o}=Ot(),c=Hf(),d=_=>{try{return!!new u.URL(_)}catch{return!1}};t.exports=p;function p(_,b={}){const E={...c,...b},S=d(_);let A=E.registry||c.registry;S||(A=E.registry=E.spec&&v(E.spec,E)||E.registry||A,_=`${A.trim().replace(/\/?$/g,"")}/${_.trim().replace(/^\//,"")}`,new u.URL(_));const C=E.method||"GET",T=Date.now(),U=s(_,E),$=w(_,U,E);let z=E.body;const V=o.isStream(z),H=z&&typeof z=="object"&&typeof z.then=="function";if(z&&!V&&!H&&typeof z!="string"&&!Buffer.isBuffer(z)?($["content-type"]=$["content-type"]||"application/json",z=JSON.stringify(z)):z&&!$["content-type"]&&($["content-type"]="application/octet-stream"),E.gzip)if($["content-encoding"]="gzip",V){const q=new f.Gzip;z.on("error",J=>q.emit("error",J)),z=z.pipe(q)}else H||(z=new f.Gzip().end(z).concat());const L=new u.URL(_);if(E.query){const q=typeof E.query=="string"?l.parse(E.query):E.query;Object.keys(q).forEach(J=>{q[J]!==void 0&&L.searchParams.set(J,q[J])}),_=u.format(L)}L.searchParams.get("write")==="true"&&C==="GET"&&(E.offline=!1,E.preferOffline=!1,E.preferOnline=!0);const N=async q=>{const J=h(_,{agent:E.agent,algorithms:E.algorithms,body:q,cache:y(E),cachePath:E.cache,ca:E.ca,cert:U.cert||E.cert,headers:$,integrity:E.integrity,key:U.key||E.key,localAddress:E.localAddress,maxSockets:E.maxSockets,memoize:E.memoize,method:C,noProxy:E.noProxy,proxy:E.httpsProxy||E.proxy,retry:E.retry?E.retry:{retries:E.fetchRetries,factor:E.fetchRetryFactor,minTimeout:E.fetchRetryMintimeout,maxTimeout:E.fetchRetryMaxtimeout},strictSSL:E.strictSSL,timeout:E.timeout||3e4,signal:E.signal}).then(P=>i({method:C,uri:_,res:P,registry:A,startTime:T,auth:U,opts:E}));return typeof E.otpPrompt=="function"?J.catch(async P=>{if(P instanceof r){let B;try{B=await E.otpPrompt()}catch{}if(!B)throw P;return p(_,{...E,otp:B})}throw P}):J};return Promise.resolve(z).then(N)}t.exports.getAuth=s,t.exports.json=g;function g(_,b){return p(_,b).then(E=>E.json())}t.exports.json.stream=m;function m(_,b,E={}){const S={...c,...E},A=a.parse(b,S.mapJSON);return p(_,S).then(C=>C.body.on("error",T=>A.emit("error",T)).pipe(A)).catch(C=>A.emit("error",C)),A}t.exports.pickRegistry=v;function v(_,b={}){_=n(_);let E=_.scope&&b[_.scope.replace(/^@?/,"@")+":registry"];return!E&&b.scope&&(E=b[b.scope.replace(/^@?/,"@")+":registry"]),E||(E=b.registry||c.registry),E}function y(_){return _.offline?"only-if-cached":_.preferOffline?"force-cache":_.preferOnline?"no-cache":"default"}function w(_,b,E){const S=Object.assign({"user-agent":E.userAgent},E.headers||{});return E.authType&&(S["npm-auth-type"]=E.authType),E.scope&&(S["npm-scope"]=E.scope),E.npmSession&&(S["npm-session"]=E.npmSession),E.npmCommand&&(S["npm-command"]=E.npmCommand),b.token?S.authorization=`Bearer ${b.token}`:b.auth&&(S.authorization=`Basic ${b.auth}`),E.otp&&(S["npm-otp"]=E.otp),S}})),Cr=I.__toESM(xE(),1),Ju=I.__toESM($E(),1),ha=I.__toESM(Rw(),1),Ii,Tn;function Cd(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);if(Ii===void 0&&(Ii=Pr.default.homedir()),Ii&&/^~(?=$|\/|\\)/.test(e))return e.replace(/^~/,Ii);const t=e.match(/^~([^/\\]+)(.*)/);if(t&&(Tn===void 0&&(Tn=Pr.default.userInfo().username),Tn)){const r=t[1],i=t[2];if(r===Tn)return Ii+i}return e}var Ow=class{value;next;constructor(e){this.value=e}},Iw=class{#e;#t;#r;constructor(){this.clear()}enqueue(e){const t=new Ow(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#r++}dequeue(){const e=this.#e;if(e)return this.#e=this.#e.next,this.#r--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#e;)yield this.dequeue()}};function Cc(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new Iw;let r=0;const i=()=>{r--,t.size>0&&t.dequeue()()},s=async(n,l,u)=>{r++;const f=(async()=>n(...u))();l(f);try{await f}catch{}i()},h=(n,l,u)=>{t.enqueue(s.bind(void 0,n,l,u)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(n,...l)=>new Promise(u=>{h(n,u,l)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a}var Td=class extends Error{constructor(e){super(),this.value=e}},kw=async(e,t)=>t(await e),Lw=async e=>{const t=await Promise.all(e);if(t[1]===!0)throw new Td(t[0]);return!1};async function Fw(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:i=!0}={}){const s=Cc(r),h=[...e].map(n=>[n,s(kw,n,t)]),a=Cc(i?1:Number.POSITIVE_INFINITY);try{await Promise.all(h.map(n=>a(Lw,n)))}catch(n){if(n instanceof Td)return n.value;throw n}}var Rd={directory:"isDirectory",file:"isFile"};function Od(e){if(!(e==="both"||Object.hasOwn(Rd,e)))throw new Error(`Invalid type specified: ${e}`)}var Id=(e,t)=>e==="both"?t.isFile()||t.isDirectory():t[Rd[e]](),kd=e=>e instanceof URL?(0,au.fileURLToPath)(e):e;async function Tc(e,{cwd:t=Mr.default.cwd(),type:r="file",allowSymlinks:i=!0,concurrency:s,preserveOrder:h}={}){Od(r),t=kd(t);const a=i?jr.promises.stat:jr.promises.lstat;return Fw(e,async n=>{try{return Id(r,await a(st.default.resolve(t,n)))}catch{return!1}},{concurrency:s,preserveOrder:h})}function Rc(e,{cwd:t=Mr.default.cwd(),type:r="file",allowSymlinks:i=!0}={}){Od(r),t=kd(t);const s=i?jr.default.statSync:jr.default.lstatSync;for(const h of e)try{const a=s(st.default.resolve(t,h),{throwIfNoEntry:!1});if(!a)continue;if(Id(r,a))return h}catch{}}var tL=(0,ou.promisify)(Un.execFile);function Kn(e){return e instanceof URL?(0,au.fileURLToPath)(e):e}var Ld=Symbol("findUpStop");async function Nw(e,t={}){let r=st.default.resolve(Kn(t.cwd)??"");const{root:i}=st.default.parse(r),s=st.default.resolve(r,Kn(t.stopAt)??i),h=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),n=async u=>{if(typeof e!="function")return Tc(a,u);const f=await e(u.cwd);return typeof f=="string"?Tc([f],u):f},l=[];for(;;){const u=await n({...t,cwd:r});if(u===Ld||(u&&l.push(st.default.resolve(r,u)),r===s||l.length>=h))break;r=st.default.dirname(r)}return l}function xw(e,t={}){let r=st.default.resolve(Kn(t.cwd)??"");const{root:i}=st.default.parse(r),s=st.default.resolve(r,Kn(t.stopAt)??i),h=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),n=u=>{if(typeof e!="function")return Rc(a,u);const f=e(u.cwd);return typeof f=="string"?Rc([f],u):f},l=[];for(;;){const u=n({...t,cwd:r});if(u===Ld||(u&&l.push(st.default.resolve(r,u)),r===s||l.length>=h))break;r=st.default.dirname(r)}return l}async function Zn(e,t={}){return(await Nw(e,{...t,limit:1}))[0]}function $w(e,t={}){return xw(e,{...t,limit:1})[0]}var Fd=class Nd{constructor(t,r,i){this.__specs=t||{},this.__opts=r||{},this.__providers=Oc(i.filter(s=>s!=null&&typeof s=="object")),this.__isFiggyPudding=!0}get(t){return xd(this,t,!0)}toJSON(){const t={};return this.forEach((r,i)=>{t[i]=r}),t}forEach(t,r=this){for(let[i,s]of this.entries())t.call(r,s,i,this)}*entries(t){for(let i of Object.keys(this.__specs))yield[i,this.get(i)];const r=t||this.__opts.other;if(r){const i=new Set;for(let s of this.__providers){const h=s.entries?s.entries(r):Mw(s);for(let[a,n]of h)r(a)&&!i.has(a)&&(i.add(a),yield[a,n])}}}concat(...t){return new Proxy(new Nd(this.__specs,this.__opts,Oc(this.__providers).concat(t)),$d)}};function xd(e,t,r){let i=e.__specs[t];i||(i={});let s;for(let h of e.__providers)if(s=Bw(t,h),s!==void 0)break;return s===void 0&&i.default!==void 0?typeof i.default=="function"?i.default(e):i.default:s}function Bw(e,t){let r;return t.__isFiggyPudding?r=xd(t,e,!1):r=t[e],r}var $d={get(e,t){return typeof t=="symbol"||t.slice(0,2)==="__"||t in Fd.prototype?e[t]:e.get(t)}};function Bd(e,t){function r(...i){return new Proxy(new Fd(e,t,i),$d)}return r}function Oc(e){const t=[];return e.forEach(r=>t.unshift(r)),t}function Mw(e){return Object.keys(e).map(t=>[t,e[t]])}var Ic=Bd({},{other(){return!0}}),Pw=Bd({cache:{default:st.default.join(process.env.HOME||Pr.default.homedir(),".npm")},configNames:{default:["npmrc",".npmrc"]},envPrefix:{default:/^npm_config_/i},cwd:{default:()=>process.cwd()},globalconfig:{default:()=>st.default.join(Uw(),"etc","npmrc")},userconfig:{default:st.default.join(process.env.HOME||Pr.default.homedir(),".npmrc")}});function jw(e,t){const r=Pw(t),i={};Object.keys(process.env).forEach(c=>{if(!c.match(r.envPrefix))return;const d=c.toLowerCase().replace(r.envPrefix,"").replace(/(?!^)_/g,"-");i[d]=process.env[c]});const s=Ic(e),h=r.userconfig||s.userconfig||i.userconfig,a=h&&fa(h),n=r.globalconfig||s.globalconfig||i.globalconfig,l=n&&fa(n),u=$w(r.configNames,{cwd:r.cwd});let f={};u&&u!==h&&(f=fa(u));const o=Ic(r,l,a,f,i,s);return o.cache?o.concat({cache:st.default.resolve(s.cache||i.cache?r.cwd:f.cache?st.default.dirname(u):a.cache?st.default.dirname(h):l.cache?st.default.dirname(n):st.default.dirname(h),o.cache)}):o}function fa(e){let t;try{t=jr.default.readFileSync(e,"utf8")}catch(r){if(r.code==="ENOENT")return"";throw r}return Ju.default.parse(t)}function Uw(){if(process.env.PREFIX)return process.env.PREFIX;if(process.platform==="win32")return st.default.dirname(process.execPath);{let e=st.default.dirname(st.default.dirname(process.execPath));return process.env.DESTDIR&&(e=st.default.join(process.env.DESTDIR,e)),e}}async function ir(e,t,r,i){if(process.platform!=="win32"||e==="bun")return(0,xr.default)(e,t,r,i);try{return(0,xr.default)(`${e}.cmd`,t,r,i)}catch(s){if(s.code==="ENOENT")return(0,xr.default)(e,t,r,i);throw s}}function Hw(e,t){return t.deprecated||!e.deprecated}function qw(e,t){return t.pre?!0:!e.version||!un(e.version)}function Md(e,t){if(!t)return!0;const r=We.default.minVersion(t)?.version;if(!r)return!0;const i=e?.engines?.node;return!i||We.default.satisfies(r,i)}function zw(e,t){return t?Object.values(t).every(r=>r[e.name]===void 0||We.default.satisfies(e.version,r[e.name])):!0}function Wu(e,t){const r=e.version,i=e?.time?.[r];if(!t)return!0;if(!i)return!1;const s=new Date(i),h=864e5,a=typeof t=="function"?t(e.name)??0:t,n=typeof a=="string"?Yn(a)??0:a;return Date.now()-s.getTime()>=n*h}function mn(e){const t=[r=>Hw(r,e),r=>qw(r,e),e.enginesNode?r=>Md(r,e.nodeEngineVersion):null,e.peerDependencies?r=>zw(r,e.peerDependencies):null,e.cooldown?r=>Wu(r,e.cooldown):null];return r=>t.every(i=>i?i(r):!0)}var Gw=I.__exportAll({default:()=>Rs,defaultPrefix:()=>Ud,distTag:()=>vn,getEngines:()=>Os,getPeerDependencies:()=>Ku,greatest:()=>gn,latest:()=>Is,list:()=>Hd,minor:()=>Ls,newest:()=>ks,normalizeNpmConfig:()=>Vu,npmApi:()=>xt,packageAuthorChanged:()=>Ts,parseJson:()=>ci,patch:()=>Fs,semver:()=>Ns}),Jw=new Set(["-","||","&&","<","<=",">",">="]),Ww=e=>(0,Tt.parseRange)(e).some(t=>Jw.has(t.operator||"")),Pd=e=>e&&(!We.default.validRange(e)||Ou(e)),Cs=async(e,t,r,i={},s)=>{const h="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",a="application/json",n=ha.default.pickRegistry(e,i),l={"user-agent":i.userAgent||`npm-check-updates/${qn.version} node/${process.version}`,"ncu-version":qn.version,"ncu-pkg-id":`registry:${e}`,accept:i.fullMetadata?a:h,...i.headers},u=new URL(encodeURIComponent(e),n.endsWith("/")?n:`${n}/`);s&&(u.pathname+=`/${s}`);const f={...i,headers:l,spec:e};try{if(i.fullMetadata)return ha.default.json(u.href,f);{r=r||"latest";const o=await(0,ha.default)(u.href,f),c=new DE({paths:["$.*"],keepStack:!1}),d={name:e};let p=!1,g=null;c.onValue=({key:m,value:v})=>{if(p||m===void 0)return;const y=m;t.includes(y)&&(d[y]=v,Object.keys(d).length===t.length+1&&(p=!0))},c.onError=m=>{g=m};for await(const m of o.body){if(c.write(m),g)throw g;if(p)break}if(g)throw g;return d}}catch(o){if(o.code!=="E404"||i.fullMetadata)throw o;return Cs(e,t,r,{...i,fullMetadata:!0},s)}},Di=(e,t)=>{const r=e.version;return{...e,name:t.name,...t?.time?.[r]?{time:t.time}:null}},Vu=(e,t)=>{const r={cafile:a=>{if(!a)return;const n=pr.default.readFileSync(Je.default.resolve(t||"",Cd(a)),"utf8"),l="-----END CERTIFICATE-----";return{ca:n.split(l).filter(u=>!!u.trim()).map(u=>`${u.trimStart()}${l}`)}},maxsockets:"maxSockets","strict-ssl":"strictSSL"},i={all:"boolean",allowsameversion:"boolean",audit:"boolean",binlinks:"boolean",color:"boolean",commithooks:"boolean",description:"boolean",dev:"boolean",diffignoreallspace:"boolean",diffnameonly:"boolean",diffnoprefix:"boolean",difftext:"boolean",dryrun:"boolean",enginestrict:"boolean",force:"boolean",foregroundscripts:"boolean",formatpackagelock:"boolean",fund:"boolean",gittagversion:"boolean",global:"boolean",globalstyle:"boolean",ifpresent:"boolean",ignorescripts:"boolean",includestaged:"boolean",includeworkspaceroot:"boolean",installlinks:"boolean",json:"boolean",legacybundling:"boolean",legacypeerdeps:"boolean",link:"boolean",long:"boolean",offline:"boolean",omitlockfileregistryresolved:"boolean",packagelock:"boolean",packagelockonly:"boolean",parseable:"boolean",preferoffline:"boolean",preferonline:"boolean",progress:"boolean",readonly:"boolean",rebuildbundle:"boolean",save:"boolean",savebundle:"boolean",savedev:"boolean",saveexact:"boolean",saveoptional:"boolean",savepeer:"boolean",saveprod:"boolean",shrinkwrap:"boolean",signgitcommit:"boolean",signgittag:"boolean",strictpeerdeps:"boolean",strictssl:"boolean",timing:"boolean",unicode:"boolean",updatenotifier:"boolean",usage:"boolean",version:"boolean",versions:"boolean",workspacesupdate:"boolean",diffunified:"number",fetchretries:"number",fetchretryfactor:"number",fetchretrymaxtimeout:"number",fetchretrymintimeout:"number",fetchtimeout:"number",logsmax:"number",maxsockets:"number",searchlimit:"number",searchstaleness:"number",ssopollfrequency:"number",timeout:"number"},s=a=>!!a&&a!=="false"&&a!=="0",h=a=>parseInt(a)||0;return at(e,(a,n)=>{const l=typeof n!="string"?n:i[a.replace(/-/g,"").toLowerCase()]==="boolean"?s(n):i[a.replace(/-/g,"").toLowerCase()]==="number"?h(n):n.replace(/\${([^}]+)}/,(f,o)=>process.env[o]),{[a]:u}=r;return typeof u=="string"?{[u]:l}:typeof u=="function"?{...u(l.toString())}:{[a.match(/^[a-z]/i)?NE(a):a]:l}})},xt={};xt.findNpmConfig=(0,Cr.default)(e=>{let t;if(e)try{t=Ju.default.parse(pr.default.readFileSync(e,"utf-8"))}catch(r){if(r.code==="ENOENT")return null;throw r}else t={...jw(null,{userconfig:process.env.npm_config_userconfig||process.env.NPM_CONFIG_USERCONFIG}).toJSON(),cache:!1};return Vu(t,e)});var Yu=xt.findNpmConfig();function ci(e,t){let r;try{r=JSON.parse(e)}catch(i){throw new Error(`Expected JSON from "${t.command}".${t.packageName?` There could be problems with the ${t.packageName} package.`:""} ${e?"Instead received: "+e:"Received empty response."}`,{cause:i})}return r}async function Ts(e,t,r,i={},s){const h=await Cs(e,["versions"],null,{...s,...Yu,fullMetadata:!0,...i.registry?{registry:i.registry,silent:!0}:null});if(h.versions){const a=Object.keys(h.versions),n=We.default.minSatisfying(a,t),l=We.default.maxSatisfying(a,r);if(n&&l&&h.versions[n]._npmUser&&h.versions[l]._npmUser)return h.versions[n]._npmUser?.name!==h.versions[l]._npmUser?.name}return!1}var ki=e=>!!(e&&(e.name||e.engines||e.version||e.versions));xt.mockFetchUpgradedPackument=e=>(t,r,i,s)=>{const h=typeof e=="function"?e(s)?.[t]:typeof e=="string"||ki(e)?e:e[t],a=ki(h)?h.version:h;if(!a)throw new Error(`fetchUpgradedPackument is mocked, but no mock version was supplied for ${t}. Make sure that all dependencies are mocked. `);const n=ki(h)&&h.time?.[a]||new Date().toISOString(),l={name:t,"dist-tags":{[s.distTag||"latest"]:a},engines:{node:""},time:{[a]:n},version:a,versions:{},...ki(h)?h:null},{versions:u,...f}=l;return Promise.resolve({...l,versions:{...ki(h)&&h.versions||{[a]:f}}})};var Vw=(0,Cr.default)(({npmConfigLocal:e,npmConfigUser:t,npmConfigWorkspaceProject:r},i)=>{const s=i.packageFile?Je.default.join(i.packageFile,"../.npmrc"):null,h=i.packageFile?xt.findNpmConfig(s||void 0):null,a=i.cwd?Je.default.join(i.cwd,".npmrc"):null,n=i.cwd?xt.findNpmConfig(a):null;if(r&&Object.keys(r).length>0){Me(i,`
|
|
461
|
+
`);const{connect:C,buffered:T}=await A;if(v.emit("proxyConnect",C),this.emit("proxyConnect",C,v),C.statusCode===200)return v.once("socket",g),y.secureEndpoint?(c("Upgrading socket connection to TLS"),a.connect({...m(d(y),"host","path","port"),socket:_})):_;_.destroy();const U=new h.Socket({writable:!1});return U.readable=!0,v.once("socket",$=>{c("Replaying proxy buffer for failed request"),(0,n.default)($.listenerCount("data")>0),$.push(T),$.push(null)}),U}};p.protocols=["http","https"],e.HttpsProxyAgent=p;function g(v){v.resume()}function m(v,...y){const w={};let _;for(_ in v)y.includes(_)||(w[_]=v[_]);return w}})),uw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("buffer"),r={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};e.ERRORS=r;function i(o){if(!t.Buffer.isEncoding(o))throw new Error(r.INVALID_ENCODING)}e.checkEncoding=i;function s(o){return typeof o=="number"&&isFinite(o)&&u(o)}e.isFiniteInteger=s;function h(o,c){if(typeof o=="number"){if(!s(o)||o<0)throw new Error(c?r.INVALID_OFFSET:r.INVALID_LENGTH)}else throw new Error(c?r.INVALID_OFFSET_NON_NUMBER:r.INVALID_LENGTH_NON_NUMBER)}function a(o){h(o,!1)}e.checkLengthValue=a;function n(o){h(o,!0)}e.checkOffsetValue=n;function l(o,c){if(o<0||o>c.length)throw new Error(r.INVALID_TARGET_OFFSET)}e.checkTargetOffset=l;function u(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}function f(o){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof t.Buffer.prototype[o]>"u")throw new Error(`Platform does not support Buffer.prototype.${o}.`)}e.bigIntAndBufferInt64Check=f})),lw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=uw(),r=4096,i="utf8",s=class pd{constructor(a){if(this.length=0,this._encoding=i,this._writeOffset=0,this._readOffset=0,pd.isSmartBufferOptions(a))if(a.encoding&&(t.checkEncoding(a.encoding),this._encoding=a.encoding),a.size)if(t.isFiniteInteger(a.size)&&a.size>0)this._buff=Buffer.allocUnsafe(a.size);else throw new Error(t.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(a.buff)if(Buffer.isBuffer(a.buff))this._buff=a.buff,this.length=a.buff.length;else throw new Error(t.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(r);else{if(typeof a<"u")throw new Error(t.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(r)}}static fromSize(a,n){return new this({size:a,encoding:n})}static fromBuffer(a,n){return new this({buff:a,encoding:n})}static fromOptions(a){return new this(a)}static isSmartBufferOptions(a){const n=a;return n&&(n.encoding!==void 0||n.size!==void 0||n.buff!==void 0)}readInt8(a){return this._readNumberValue(Buffer.prototype.readInt8,1,a)}readInt16BE(a){return this._readNumberValue(Buffer.prototype.readInt16BE,2,a)}readInt16LE(a){return this._readNumberValue(Buffer.prototype.readInt16LE,2,a)}readInt32BE(a){return this._readNumberValue(Buffer.prototype.readInt32BE,4,a)}readInt32LE(a){return this._readNumberValue(Buffer.prototype.readInt32LE,4,a)}readBigInt64BE(a){return t.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,a)}readBigInt64LE(a){return t.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,a)}writeInt8(a,n){return this._writeNumberValue(Buffer.prototype.writeInt8,1,a,n),this}insertInt8(a,n){return this._insertNumberValue(Buffer.prototype.writeInt8,1,a,n)}writeInt16BE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,a,n)}insertInt16BE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,a,n)}writeInt16LE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,a,n)}insertInt16LE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,a,n)}writeInt32BE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,a,n)}insertInt32BE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,a,n)}writeInt32LE(a,n){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,a,n)}insertInt32LE(a,n){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,a,n)}writeBigInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,a,n)}insertBigInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,a,n)}writeBigInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,a,n)}insertBigInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,a,n)}readUInt8(a){return this._readNumberValue(Buffer.prototype.readUInt8,1,a)}readUInt16BE(a){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,a)}readUInt16LE(a){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,a)}readUInt32BE(a){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,a)}readUInt32LE(a){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,a)}readBigUInt64BE(a){return t.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,a)}readBigUInt64LE(a){return t.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,a)}writeUInt8(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,a,n)}insertUInt8(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,a,n)}writeUInt16BE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,a,n)}insertUInt16BE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,a,n)}writeUInt16LE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,a,n)}insertUInt16LE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,a,n)}writeUInt32BE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,a,n)}insertUInt32BE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,a,n)}writeUInt32LE(a,n){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,a,n)}insertUInt32LE(a,n){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,a,n)}writeBigUInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,n)}insertBigUInt64BE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,n)}writeBigUInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,n)}insertBigUInt64LE(a,n){return t.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,n)}readFloatBE(a){return this._readNumberValue(Buffer.prototype.readFloatBE,4,a)}readFloatLE(a){return this._readNumberValue(Buffer.prototype.readFloatLE,4,a)}writeFloatBE(a,n){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,a,n)}insertFloatBE(a,n){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,a,n)}writeFloatLE(a,n){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,a,n)}insertFloatLE(a,n){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,a,n)}readDoubleBE(a){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,a)}readDoubleLE(a){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,a)}writeDoubleBE(a,n){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,a,n)}insertDoubleBE(a,n){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,a,n)}writeDoubleLE(a,n){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,a,n)}insertDoubleLE(a,n){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,a,n)}readString(a,n){let l;typeof a=="number"?(t.checkLengthValue(a),l=Math.min(a,this.length-this._readOffset)):(n=a,l=this.length-this._readOffset),typeof n<"u"&&t.checkEncoding(n);const u=this._buff.slice(this._readOffset,this._readOffset+l).toString(n||this._encoding);return this._readOffset+=l,u}insertString(a,n,l){return t.checkOffsetValue(n),this._handleString(a,!0,n,l)}writeString(a,n,l){return this._handleString(a,!1,n,l)}readStringNT(a){typeof a<"u"&&t.checkEncoding(a);let n=this.length;for(let u=this._readOffset;u<this.length;u++)if(this._buff[u]===0){n=u;break}const l=this._buff.slice(this._readOffset,n);return this._readOffset=n+1,l.toString(a||this._encoding)}insertStringNT(a,n,l){return t.checkOffsetValue(n),this.insertString(a,n,l),this.insertUInt8(0,n+a.length),this}writeStringNT(a,n,l){return this.writeString(a,n,l),this.writeUInt8(0,typeof n=="number"?n+a.length:this.writeOffset),this}readBuffer(a){typeof a<"u"&&t.checkLengthValue(a);const n=typeof a=="number"?a:this.length,l=Math.min(this.length,this._readOffset+n),u=this._buff.slice(this._readOffset,l);return this._readOffset=l,u}insertBuffer(a,n){return t.checkOffsetValue(n),this._handleBuffer(a,!0,n)}writeBuffer(a,n){return this._handleBuffer(a,!1,n)}readBufferNT(){let a=this.length;for(let l=this._readOffset;l<this.length;l++)if(this._buff[l]===0){a=l;break}const n=this._buff.slice(this._readOffset,a);return this._readOffset=a+1,n}insertBufferNT(a,n){return t.checkOffsetValue(n),this.insertBuffer(a,n),this.insertUInt8(0,n+a.length),this}writeBufferNT(a,n){return typeof n<"u"&&t.checkOffsetValue(n),this.writeBuffer(a,n),this.writeUInt8(0,typeof n=="number"?n+a.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(a){t.checkOffsetValue(a),t.checkTargetOffset(a,this),this._readOffset=a}get writeOffset(){return this._writeOffset}set writeOffset(a){t.checkOffsetValue(a),t.checkTargetOffset(a,this),this._writeOffset=a}get encoding(){return this._encoding}set encoding(a){t.checkEncoding(a),this._encoding=a}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(a){const n=typeof a=="string"?a:this._encoding;return t.checkEncoding(n),this._buff.toString(n,0,this.length)}destroy(){return this.clear(),this}_handleString(a,n,l,u){let f=this._writeOffset,o=this._encoding;typeof l=="number"?f=l:typeof l=="string"&&(t.checkEncoding(l),o=l),typeof u=="string"&&(t.checkEncoding(u),o=u);const c=Buffer.byteLength(a,o);return n?this.ensureInsertable(c,f):this._ensureWriteable(c,f),this._buff.write(a,f,c,o),n?this._writeOffset+=c:typeof l=="number"?this._writeOffset=Math.max(this._writeOffset,f+c):this._writeOffset+=c,this}_handleBuffer(a,n,l){const u=typeof l=="number"?l:this._writeOffset;return n?this.ensureInsertable(a.length,u):this._ensureWriteable(a.length,u),a.copy(this._buff,u),n?this._writeOffset+=a.length:typeof l=="number"?this._writeOffset=Math.max(this._writeOffset,u+a.length):this._writeOffset+=a.length,this}ensureReadable(a,n){let l=this._readOffset;if(typeof n<"u"&&(t.checkOffsetValue(n),l=n),l<0||l+a>this.length)throw new Error(t.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(a,n){t.checkOffsetValue(n),this._ensureCapacity(this.length+a),n<this.length&&this._buff.copy(this._buff,n+a,n,this._buff.length),n+a>this.length?this.length=n+a:this.length+=a}_ensureWriteable(a,n){const l=typeof n=="number"?n:this._writeOffset;this._ensureCapacity(l+a),l+a>this.length&&(this.length=l+a)}_ensureCapacity(a){const n=this._buff.length;if(a>n){let l=this._buff,u=n*3/2+1;u<a&&(u=a),this._buff=Buffer.allocUnsafe(u),l.copy(this._buff,0,0,n)}}_readNumberValue(a,n,l){this.ensureReadable(n,l);const u=a.call(this._buff,typeof l=="number"?l:this._readOffset);return typeof l>"u"&&(this._readOffset+=n),u}_insertNumberValue(a,n,l,u){return t.checkOffsetValue(u),this.ensureInsertable(n,u),a.call(this._buff,l,u),this._writeOffset+=n,this}_writeNumberValue(a,n,l,u){if(typeof u=="number"){if(u<0)throw new Error(t.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);t.checkOffsetValue(u)}const f=typeof u=="number"?u:this._writeOffset;return this._ensureWriteable(n,f),a.call(this._buff,l,f),typeof u=="number"?this._writeOffset=Math.max(this._writeOffset,f+n):this._writeOffset+=n,this}};e.SmartBuffer=s})),md=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SOCKS5_NO_ACCEPTABLE_AUTH=e.SOCKS5_CUSTOM_AUTH_END=e.SOCKS5_CUSTOM_AUTH_START=e.SOCKS_INCOMING_PACKET_SIZES=e.SocksClientState=e.Socks5Response=e.Socks5HostType=e.Socks5Auth=e.Socks4Response=e.SocksCommand=e.ERRORS=e.DEFAULT_TIMEOUT=void 0;var t=3e4;e.DEFAULT_TIMEOUT=t;var r={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};e.ERRORS=r;var i={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:d=>d+7,Socks4Response:8};e.SOCKS_INCOMING_PACKET_SIZES=i;var s;(function(d){d[d.connect=1]="connect",d[d.bind=2]="bind",d[d.associate=3]="associate"})(s||(e.SocksCommand=s={}));var h;(function(d){d[d.Granted=90]="Granted",d[d.Failed=91]="Failed",d[d.Rejected=92]="Rejected",d[d.RejectedIdent=93]="RejectedIdent"})(h||(e.Socks4Response=h={}));var a;(function(d){d[d.NoAuth=0]="NoAuth",d[d.GSSApi=1]="GSSApi",d[d.UserPass=2]="UserPass"})(a||(e.Socks5Auth=a={}));var n=128;e.SOCKS5_CUSTOM_AUTH_START=n;var l=254;e.SOCKS5_CUSTOM_AUTH_END=l;var u=255;e.SOCKS5_NO_ACCEPTABLE_AUTH=u;var f;(function(d){d[d.Granted=0]="Granted",d[d.Failure=1]="Failure",d[d.NotAllowed=2]="NotAllowed",d[d.NetworkUnreachable=3]="NetworkUnreachable",d[d.HostUnreachable=4]="HostUnreachable",d[d.ConnectionRefused=5]="ConnectionRefused",d[d.TTLExpired=6]="TTLExpired",d[d.CommandNotSupported=7]="CommandNotSupported",d[d.AddressNotSupported=8]="AddressNotSupported"})(f||(e.Socks5Response=f={}));var o;(function(d){d[d.IPv4=1]="IPv4",d[d.Hostname=3]="Hostname",d[d.IPv6=4]="IPv6"})(o||(e.Socks5HostType=o={}));var c;(function(d){d[d.Created=0]="Created",d[d.Connecting=1]="Connecting",d[d.Connected=2]="Connected",d[d.SentInitialHandshake=3]="SentInitialHandshake",d[d.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",d[d.SentAuthentication=5]="SentAuthentication",d[d.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",d[d.SentFinalHandshake=7]="SentFinalHandshake",d[d.ReceivedFinalResponse=8]="ReceivedFinalResponse",d[d.BoundWaitingForConnection=9]="BoundWaitingForConnection",d[d.Established=10]="Established",d[d.Disconnected=11]="Disconnected",d[d.Error=99]="Error"})(c||(e.SocksClientState=c={}))})),gd=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shuffleArray=e.SocksClientError=void 0;var t=class extends Error{constructor(i,s){super(i),this.options=s}};e.SocksClientError=t;function r(i){for(let s=i.length-1;s>0;s--){const h=Math.floor(Math.random()*(s+1));[i[s],i[h]]=[i[h],i[s]]}}e.shuffleArray=r})),To=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isInSubnet=t,e.isCorrect=r,e.numberToPaddedHex=i,e.stringToPaddedHex=s,e.testBit=h;function t(a){return this.subnetMask<a.subnetMask?!1:this.mask(a.subnetMask)===a.mask()}function r(a){return function(){return this.addressMinusSuffix!==this.correctForm()?!1:this.subnetMask===a&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask)}}function i(a){return a.toString(16).padStart(2,"0")}function s(a){return i(parseInt(a,10))}function h(a,n){const{length:l}=a;if(n>l)return!1;const u=l-n;return a.substring(u,u+1)==="1"}})),vd=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RE_SUBNET_STRING=e.RE_ADDRESS=e.GROUPS=e.BITS=void 0,e.BITS=32,e.GROUPS=4,e.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g,e.RE_SUBNET_STRING=/\/\d{1,2}$/})),zu=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AddressError=void 0;var t=class extends Error{constructor(r,i){super(r),this.name="AddressError",this.parseMessage=i}};e.AddressError=t})),yd=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(l,u,f,o){o===void 0&&(o=f);var c=Object.getOwnPropertyDescriptor(u,f);(!c||("get"in c?!u.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,o,c)}):(function(l,u,f,o){o===void 0&&(o=f),l[o]=u[f]})),r=e&&e.__setModuleDefault||(Object.create?(function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}):function(l,u){l.default=u}),i=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&t(u,l,f);return r(u,l),u};Object.defineProperty(e,"__esModule",{value:!0}),e.Address4=void 0;var s=i(To()),h=i(vd()),a=zu(),n=class Ht{constructor(u){this.groups=h.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=s.isCorrect(h.BITS),this.isInSubnet=s.isInSubnet,this.address=u;const f=h.RE_SUBNET_STRING.exec(u);if(f){if(this.parsedSubnet=f[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>h.BITS)throw new a.AddressError("Invalid subnet mask.");u=u.replace(h.RE_SUBNET_STRING,"")}this.addressMinusSuffix=u,this.parsedAddress=this.parse(u)}static isValid(u){try{return new Ht(u),!0}catch{return!1}}parse(u){const f=u.split(".");if(!u.match(h.RE_ADDRESS))throw new a.AddressError("Invalid IPv4 address.");return f}correctForm(){return this.parsedAddress.map(u=>parseInt(u,10)).join(".")}static fromHex(u){const f=u.replace(/:/g,"").padStart(8,"0"),o=[];let c;for(c=0;c<8;c+=2){const d=f.slice(c,c+2);o.push(parseInt(d,16))}return new Ht(o.join("."))}static fromInteger(u){return Ht.fromHex(u.toString(16))}static fromArpa(u){return new Ht(u.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join("."))}toHex(){return this.parsedAddress.map(u=>s.stringToPaddedHex(u)).join(":")}toArray(){return this.parsedAddress.map(u=>parseInt(u,10))}toGroup6(){const u=[];let f;for(f=0;f<h.GROUPS;f+=2)u.push(`${s.stringToPaddedHex(this.parsedAddress[f])}${s.stringToPaddedHex(this.parsedAddress[f+1])}`);return u.join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(u=>s.stringToPaddedHex(u)).join("")}`)}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(h.BITS-this.subnetMask)}`)}startAddress(){return Ht.fromBigInt(this._startAddress())}startAddressExclusive(){const u=BigInt("1");return Ht.fromBigInt(this._startAddress()+u)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(h.BITS-this.subnetMask)}`)}endAddress(){return Ht.fromBigInt(this._endAddress())}endAddressExclusive(){const u=BigInt("1");return Ht.fromBigInt(this._endAddress()-u)}static fromBigInt(u){return Ht.fromHex(u.toString(16))}static fromByteArray(u){if(u.length!==4)throw new a.AddressError("IPv4 addresses require exactly 4 bytes");for(let f=0;f<u.length;f++)if(!Number.isInteger(u[f])||u[f]<0||u[f]>255)throw new a.AddressError("All bytes must be integers between 0 and 255");return this.fromUnsignedByteArray(u)}static fromUnsignedByteArray(u){if(u.length!==4)throw new a.AddressError("IPv4 addresses require exactly 4 bytes");return new Ht(u.join("."))}mask(u){return u===void 0&&(u=this.subnetMask),this.getBitsBase2(0,u)}getBitsBase2(u,f){return this.binaryZeroPad().slice(u,f)}reverseForm(u){u||(u={});const f=this.correctForm().split(".").reverse().join(".");return u.omitSuffix?f:`${f}.in-addr.arpa.`}isMulticast(){return this.isInSubnet(new Ht("224.0.0.0/4"))}binaryZeroPad(){return this.bigInt().toString(2).padStart(h.BITS,"0")}groupForV6(){const u=this.parsedAddress;return this.address.replace(h.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${u.slice(0,2).join(".")}</span>.<span class="hover-group group-v4 group-7">${u.slice(2,4).join(".")}</span>`)}};e.Address4=n})),_d=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RE_URL_WITH_PORT=e.RE_URL=e.RE_ZONE_STRING=e.RE_SUBNET_STRING=e.RE_BAD_ADDRESS=e.RE_BAD_CHARACTERS=e.TYPES=e.SCOPES=e.GROUPS=e.BITS=void 0,e.BITS=128,e.GROUPS=8,e.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},e.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"},e.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,e.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,e.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,e.RE_ZONE_STRING=/%.*$/,e.RE_URL=/^\[{0,1}([0-9a-f:]+)\]{0,1}/,e.RE_URL_WITH_PORT=/\[([0-9a-f:]+)\]:([0-9]{1,5})/})),Ed=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.spanAllZeroes=t,e.spanAll=r,e.spanLeadingZeroes=s,e.simpleGroup=h;function t(a){return a.replace(/(0+)/g,'<span class="zero">$1</span>')}function r(a,n=0){return a.split("").map((l,u)=>`<span class="digit value-${l} position-${u+n}">${t(l)}</span>`).join("")}function i(a){return a.replace(/^(0+)/,'<span class="zero">$1</span>')}function s(a){return a.split(":").map(n=>i(n)).join(":")}function h(a,n=0){return a.split(":").map((l,u)=>/group-v4/.test(l)?l:`<span class="hover-group group-${u+n}">${i(l)}</span>`)}})),cw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(u,f,o,c){c===void 0&&(c=o);var d=Object.getOwnPropertyDescriptor(f,o);(!d||("get"in d?!f.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return f[o]}}),Object.defineProperty(u,c,d)}):(function(u,f,o,c){c===void 0&&(c=o),u[c]=f[o]})),r=e&&e.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),i=e&&e.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var o in u)o!=="default"&&Object.prototype.hasOwnProperty.call(u,o)&&t(f,u,o);return r(f,u),f};Object.defineProperty(e,"__esModule",{value:!0}),e.ADDRESS_BOUNDARY=void 0,e.groupPossibilities=h,e.padGroup=a,e.simpleRegularExpression=n,e.possibleElisions=l;var s=i(_d());function h(u){return`(${u.join("|")})`}function a(u){return u.length<4?`0{0,${4-u.length}}${u}`:u}e.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function n(u){const f=[];u.forEach((c,d)=>{parseInt(c,16)===0&&f.push(d)});const o=f.map(c=>u.map((d,p)=>{if(p===c){const g=p===0||p===s.GROUPS-1?":":"";return h([a(d),g])}return a(d)}).join(":"));return o.push(u.map(a).join(":")),h(o)}function l(u,f,o){const c=f?"":":",d=o?"":":",p=[];!f&&!o&&p.push("::"),f&&o&&p.push(""),(o&&!f||!o&&f)&&p.push(":"),p.push(`${c}(:0{1,4}){1,${u-1}}`),p.push(`(0{1,4}:){1,${u-1}}${d}`),p.push(`(0{1,4}:){${u-1}}0{1,4}`);for(let g=1;g<u-1;g++)for(let m=1;m<u-g;m++)p.push(`(0{1,4}:){${m}}:(0{1,4}:){${u-m-g-1}}0{1,4}`);return h(p)}})),hw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(w,_,b,E){E===void 0&&(E=b);var S=Object.getOwnPropertyDescriptor(_,b);(!S||("get"in S?!_.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return _[b]}}),Object.defineProperty(w,E,S)}):(function(w,_,b,E){E===void 0&&(E=b),w[E]=_[b]})),r=e&&e.__setModuleDefault||(Object.create?(function(w,_){Object.defineProperty(w,"default",{enumerable:!0,value:_})}):function(w,_){w.default=_}),i=e&&e.__importStar||function(w){if(w&&w.__esModule)return w;var _={};if(w!=null)for(var b in w)b!=="default"&&Object.prototype.hasOwnProperty.call(w,b)&&t(_,w,b);return r(_,w),_};Object.defineProperty(e,"__esModule",{value:!0}),e.Address6=void 0;var s=i(To()),h=i(vd()),a=i(_d()),n=i(Ed()),l=yd(),u=cw(),f=zu(),o=To();function c(w){if(!w)throw new Error("Assertion failed.")}function d(w){const _=/(\d+)(\d{3})/;for(;_.test(w);)w=w.replace(_,"$1,$2");return w}function p(w){return w=w.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),w=w.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),w}function g(w,_){const b=[],E=[];let S;for(S=0;S<w.length;S++)S<_[0]?b.push(w[S]):S>_[1]&&E.push(w[S]);return b.concat(["compact"]).concat(E)}function m(w){return parseInt(w,16).toString(16).padStart(4,"0")}function v(w){return w&255}var y=class Ct{constructor(_,b){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=s.isInSubnet,this.isCorrect=s.isCorrect(a.BITS),b===void 0?this.groups=a.GROUPS:this.groups=b,this.address=_;const E=a.RE_SUBNET_STRING.exec(_);if(E){if(this.parsedSubnet=E[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>a.BITS)throw new f.AddressError("Invalid subnet mask.");_=_.replace(a.RE_SUBNET_STRING,"")}else if(/\//.test(_))throw new f.AddressError("Invalid subnet mask.");const S=a.RE_ZONE_STRING.exec(_);S&&(this.zone=S[0],_=_.replace(a.RE_ZONE_STRING,"")),this.addressMinusSuffix=_,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(_){try{return new Ct(_),!0}catch{return!1}}static fromBigInt(_){const b=_.toString(16).padStart(32,"0"),E=[];let S;for(S=0;S<a.GROUPS;S++)E.push(b.slice(S*4,(S+1)*4));return new Ct(E.join(":"))}static fromURL(_){let b,E=null,S;if(_.indexOf("[")!==-1&&_.indexOf("]:")!==-1){if(S=a.RE_URL_WITH_PORT.exec(_),S===null)return{error:"failed to parse address with port",address:null,port:null};b=S[1],E=S[2]}else if(_.indexOf("/")!==-1){if(_=_.replace(/^[a-z0-9]+:\/\//,""),S=a.RE_URL.exec(_),S===null)return{error:"failed to parse address from URL",address:null,port:null};b=S[1]}else b=_;return E?(E=parseInt(E,10),(E<0||E>65536)&&(E=null)):E=null,{address:new Ct(b),port:E}}static fromAddress4(_){const b=new l.Address4(_),E=a.BITS-(h.BITS-b.subnetMask);return new Ct(`::ffff:${b.correctForm()}/${E}`)}static fromArpa(_){let b=_.replace(/(\.ip6\.arpa)?\.$/,"");const E=7;if(b.length!==63)throw new f.AddressError("Invalid 'ip6.arpa' form.");const S=b.split(".").reverse();for(let A=E;A>0;A--){const C=A*4;S.splice(C,0,":")}return b=S.join(""),new Ct(b)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,"-")}.ipv6-literal.net`}mask(_=this.subnetMask){return this.getBitsBase2(0,_)}possibleSubnets(_=128){const b=a.BITS-this.subnetMask-Math.abs(_-a.BITS);return b<0?"0":d((BigInt("2")**BigInt(b)).toString(10))}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(a.BITS-this.subnetMask)}`)}startAddress(){return Ct.fromBigInt(this._startAddress())}startAddressExclusive(){const _=BigInt("1");return Ct.fromBigInt(this._startAddress()+_)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(a.BITS-this.subnetMask)}`)}endAddress(){return Ct.fromBigInt(this._endAddress())}endAddressExclusive(){const _=BigInt("1");return Ct.fromBigInt(this._endAddress()-_)}getScope(){let _=a.SCOPES[parseInt(this.getBits(12,16).toString(10),10)];return this.getType()==="Global unicast"&&_!=="Link local"&&(_="Global"),_||"Unknown"}getType(){for(const _ of Object.keys(a.TYPES))if(this.isInSubnet(new Ct(_)))return a.TYPES[_];return"Global unicast"}getBits(_,b){return BigInt(`0b${this.getBitsBase2(_,b)}`)}getBitsBase2(_,b){return this.binaryZeroPad().slice(_,b)}getBitsBase16(_,b){const E=b-_;if(E%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(_,b).toString(16).padStart(E/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,a.BITS)}reverseForm(_){_||(_={});const b=Math.floor(this.subnetMask/4),E=this.canonicalForm().replace(/:/g,"").split("").slice(0,b).reverse().join(".");return b>0?_.omitSuffix?E:`${E}.ip6.arpa.`:_.omitSuffix?"":"ip6.arpa."}correctForm(){let _,b=[],E=0;const S=[];for(_=0;_<this.parsedAddress.length;_++){const T=parseInt(this.parsedAddress[_],16);T===0&&E++,T!==0&&E>0&&(E>1&&S.push([_-E,_-1]),E=0)}E>1&&S.push([this.parsedAddress.length-E,this.parsedAddress.length-1]);const A=S.map(T=>T[1]-T[0]+1);if(S.length>0){const T=A.indexOf(Math.max(...A));b=g(this.parsedAddress,S[T])}else b=this.parsedAddress;for(_=0;_<b.length;_++)b[_]!=="compact"&&(b[_]=parseInt(b[_],16).toString(16));let C=b.join(":");return C=C.replace(/^compact$/,"::"),C=C.replace(/(^compact)|(compact$)/,":"),C=C.replace(/compact/,""),C}binaryZeroPad(){return this.bigInt().toString(2).padStart(a.BITS,"0")}parse4in6(_){const b=_.split(":"),E=b.slice(-1)[0].match(h.RE_ADDRESS);if(E){this.parsedAddress4=E[0],this.address4=new l.Address4(this.parsedAddress4);for(let S=0;S<this.address4.groups;S++)if(/^0[0-9]+/.test(this.address4.parsedAddress[S]))throw new f.AddressError("IPv4 addresses can't have leading zeroes.",_.replace(h.RE_ADDRESS,this.address4.parsedAddress.map(p).join(".")));this.v4=!0,b[b.length-1]=this.address4.toGroup6(),_=b.join(":")}return _}parse(_){_=this.parse4in6(_);const b=_.match(a.RE_BAD_CHARACTERS);if(b)throw new f.AddressError(`Bad character${b.length>1?"s":""} detected in address: ${b.join("")}`,_.replace(a.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));const E=_.match(a.RE_BAD_ADDRESS);if(E)throw new f.AddressError(`Address failed regex: ${E.join("")}`,_.replace(a.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let S=[];const A=_.split("::");if(A.length===2){let C=A[0].split(":"),T=A[1].split(":");C.length===1&&C[0]===""&&(C=[]),T.length===1&&T[0]===""&&(T=[]);const U=this.groups-(C.length+T.length);if(!U)throw new f.AddressError("Error parsing groups");this.elidedGroups=U,this.elisionBegin=C.length,this.elisionEnd=C.length+this.elidedGroups,S=S.concat(C);for(let $=0;$<U;$++)S.push("0");S=S.concat(T)}else if(A.length===1)S=_.split(":"),this.elidedGroups=0;else throw new f.AddressError("Too many :: groups found");if(S=S.map(C=>parseInt(C,16).toString(16)),S.length!==this.groups)throw new f.AddressError("Incorrect number of groups found");return S}canonicalForm(){return this.parsedAddress.map(m).join(":")}decimal(){return this.parsedAddress.map(_=>parseInt(_,16).toString(10).padStart(5,"0")).join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(m).join("")}`)}to4(){const _=this.binaryZeroPad().split("");return l.Address4.fromHex(BigInt(`0b${_.slice(96,128).join("")}`).toString(16))}to4in6(){const _=this.to4(),b=new Ct(this.parsedAddress.slice(0,6).join(":"),6).correctForm();let E="";return/:$/.test(b)||(E=":"),b+E+_.address}inspectTeredo(){const _=this.getBitsBase16(0,32),b=(this.getBits(80,96)^BigInt("0xffff")).toString(),E=l.Address4.fromHex(this.getBitsBase16(32,64)),S=this.getBits(96,128),A=l.Address4.fromHex((S^BigInt("0xffffffff")).toString(16)),C=this.getBitsBase2(64,80),T=(0,o.testBit)(C,15),U=(0,o.testBit)(C,14),$=(0,o.testBit)(C,8),z=(0,o.testBit)(C,9),V=BigInt(`0b${C.slice(2,6)+C.slice(8,16)}`).toString(10);return{prefix:`${_.slice(0,4)}:${_.slice(4,8)}`,server4:E.address,client4:A.address,flags:C,coneNat:T,microsoft:{reserved:U,universalLocal:z,groupIndividual:$,nonce:V},udpPort:b}}inspect6to4(){const _=this.getBitsBase16(0,16),b=l.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:_.slice(0,4),gateway:b.address}}to6to4(){return this.is4()?new Ct(["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":")):null}toByteArray(){const _=this.bigInt().toString(16),b=`${"0".repeat(_.length%2)}${_}`,E=[];for(let S=0,A=b.length;S<A;S+=2)E.push(parseInt(b.substring(S,S+2),16));return E}toUnsignedByteArray(){return this.toByteArray().map(v)}static fromByteArray(_){return this.fromUnsignedByteArray(_.map(v))}static fromUnsignedByteArray(_){const b=BigInt("256");let E=BigInt("0"),S=BigInt("1");for(let A=_.length-1;A>=0;A--)E+=S*BigInt(_[A].toString(10)),S*=b;return Ct.fromBigInt(E)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new Ct("2001::/32"))}is6to4(){return this.isInSubnet(new Ct("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(_){return _===void 0?_="":_=`:${_}`,`http://[${this.correctForm()}]${_}/`}link(_){_||(_={}),_.className===void 0&&(_.className=""),_.prefix===void 0&&(_.prefix="/#address="),_.v4===void 0&&(_.v4=!1);let b=this.correctForm;_.v4&&(b=this.to4in6);const E=b.call(this);return _.className?`<a href="${_.prefix}${E}" class="${_.className}">${E}</a>`:`<a href="${_.prefix}${E}">${E}</a>`}group(){if(this.elidedGroups===0)return n.simpleGroup(this.address).join(":");c(typeof this.elidedGroups=="number"),c(typeof this.elisionBegin=="number");const _=[],[b,E]=this.address.split("::");b.length?_.push(...n.simpleGroup(b)):_.push("");const S=["hover-group"];for(let A=this.elisionBegin;A<this.elisionBegin+this.elidedGroups;A++)S.push(`group-${A}`);return _.push(`<span class="${S.join(" ")}"></span>`),E.length?_.push(...n.simpleGroup(E,this.elisionEnd)):_.push(""),this.is4()&&(c(this.address4 instanceof l.Address4),_.pop(),_.push(this.address4.groupForV6())),_.join(":")}regularExpressionString(_=!1){let b=[];const E=new Ct(this.correctForm());if(E.elidedGroups===0)b.push((0,u.simpleRegularExpression)(E.parsedAddress));else if(E.elidedGroups===a.GROUPS)b.push((0,u.possibleElisions)(a.GROUPS));else{const S=E.address.split("::");S[0].length&&b.push((0,u.simpleRegularExpression)(S[0].split(":"))),c(typeof E.elidedGroups=="number"),b.push((0,u.possibleElisions)(E.elidedGroups,S[0].length!==0,S[1].length!==0)),S[1].length&&b.push((0,u.simpleRegularExpression)(S[1].split(":"))),b=[b.join(":")]}return _||(b=["(?=^|",u.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...b,")(?=[^\\w\\:]|",u.ADDRESS_BOUNDARY,"|$)"]),b.join("")}regularExpression(_=!1){return new RegExp(this.regularExpressionString(_),"i")}};e.Address6=y})),bd=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(l,u,f,o){o===void 0&&(o=f);var c=Object.getOwnPropertyDescriptor(u,f);(!c||("get"in c?!u.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,o,c)}):(function(l,u,f,o){o===void 0&&(o=f),l[o]=u[f]})),r=e&&e.__setModuleDefault||(Object.create?(function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}):function(l,u){l.default=u}),i=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)&&t(u,l,f);return r(u,l),u};Object.defineProperty(e,"__esModule",{value:!0}),e.v6=e.AddressError=e.Address6=e.Address4=void 0;var s=yd();Object.defineProperty(e,"Address4",{enumerable:!0,get:function(){return s.Address4}});var h=hw();Object.defineProperty(e,"Address6",{enumerable:!0,get:function(){return h.Address6}});var a=zu();Object.defineProperty(e,"AddressError",{enumerable:!0,get:function(){return a.AddressError}});var n=i(Ed());e.v6={helpers:n}})),fw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ipToBuffer=e.int32ToIpv4=e.ipv4ToInt32=e.validateSocksClientChainOptions=e.validateSocksClientOptions=void 0;var t=gd(),r=md(),i=require("stream"),s=bd(),h=require("net");function a(g,m=["connect","bind","associate"]){if(!r.SocksCommand[g.command])throw new t.SocksClientError(r.ERRORS.InvalidSocksCommand,g);if(m.indexOf(g.command)===-1)throw new t.SocksClientError(r.ERRORS.InvalidSocksCommandForOperation,g);if(!u(g.destination))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsDestination,g);if(!f(g.proxy))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxy,g);if(l(g.proxy,g),g.timeout&&!o(g.timeout))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsTimeout,g);if(g.existing_socket&&!(g.existing_socket instanceof i.Duplex))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsExistingSocket,g)}e.validateSocksClientOptions=a;function n(g){if(g.command!=="connect")throw new t.SocksClientError(r.ERRORS.InvalidSocksCommandChain,g);if(!u(g.destination))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsDestination,g);if(!(g.proxies&&Array.isArray(g.proxies)&&g.proxies.length>=2))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxiesLength,g);if(g.proxies.forEach(m=>{if(!f(m))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsProxy,g);l(m,g)}),g.timeout&&!o(g.timeout))throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsTimeout,g)}e.validateSocksClientChainOptions=n;function l(g,m){if(g.custom_auth_method!==void 0){if(g.custom_auth_method<r.SOCKS5_CUSTOM_AUTH_START||g.custom_auth_method>r.SOCKS5_CUSTOM_AUTH_END)throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthRange,m);if(g.custom_auth_request_handler===void 0||typeof g.custom_auth_request_handler!="function")throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m);if(g.custom_auth_response_size===void 0)throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m);if(g.custom_auth_response_handler===void 0||typeof g.custom_auth_response_handler!="function")throw new t.SocksClientError(r.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,m)}}function u(g){return g&&typeof g.host=="string"&&Buffer.byteLength(g.host)<256&&typeof g.port=="number"&&g.port>=0&&g.port<=65535}function f(g){return g&&(typeof g.host=="string"||typeof g.ipaddress=="string")&&typeof g.port=="number"&&g.port>=0&&g.port<=65535&&(g.type===4||g.type===5)}function o(g){return typeof g=="number"&&g>0}function c(g){return new s.Address4(g).toArray().reduce((m,v)=>(m<<8)+v,0)>>>0}e.ipv4ToInt32=c;function d(g){return[g>>>24&255,g>>>16&255,g>>>8&255,g&255].join(".")}e.int32ToIpv4=d;function p(g){if(h.isIPv4(g)){const m=new s.Address4(g);return Buffer.from(m.toArray())}else if(h.isIPv6(g)){const m=new s.Address6(g);return Buffer.from(m.canonicalForm().split(":").map(v=>v.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}e.ipToBuffer=p})),dw=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReceiveBuffer=void 0;var t=class{constructor(r=4096){this.buffer=Buffer.allocUnsafe(r),this.offset=0,this.originalSize=r}get length(){return this.offset}append(r){if(!Buffer.isBuffer(r))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+r.length>=this.buffer.length){const i=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+r.length)),i.copy(this.buffer)}return r.copy(this.buffer,this.offset),this.offset+=r.length}peek(r){if(r>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,r)}get(r){if(r>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const i=Buffer.allocUnsafe(r);return this.buffer.slice(0,r).copy(i),this.buffer.copyWithin(0,r,r+this.offset-r),this.offset-=r,i}};e.ReceiveBuffer=t})),pw=I.__commonJSMin((e=>{var t=e&&e.__awaiter||function(o,c,d,p){function g(m){return m instanceof d?m:new d(function(v){v(m)})}return new(d||(d=Promise))(function(m,v){function y(b){try{_(p.next(b))}catch(E){v(E)}}function w(b){try{_(p.throw(b))}catch(E){v(E)}}function _(b){b.done?m(b.value):g(b.value).then(y,w)}_((p=p.apply(o,c||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksClientError=e.SocksClient=void 0;var r=require("events"),i=require("net"),s=lw(),h=md(),a=fw(),n=dw(),l=gd();Object.defineProperty(e,"SocksClientError",{enumerable:!0,get:function(){return l.SocksClientError}});var u=bd(),f=class Ro extends r.EventEmitter{constructor(c){super(),this.options=Object.assign({},c),(0,a.validateSocksClientOptions)(c),this.setState(h.SocksClientState.Created)}static createConnection(c,d){return new Promise((p,g)=>{try{(0,a.validateSocksClientOptions)(c,["connect"])}catch(v){return typeof d=="function"?(d(v),p(v)):g(v)}const m=new Ro(c);m.connect(c.existing_socket),m.once("established",v=>{m.removeAllListeners(),typeof d=="function"&&d(null,v),p(v)}),m.once("error",v=>{m.removeAllListeners(),typeof d=="function"?(d(v),p(v)):g(v)})})}static createConnectionChain(c,d){return new Promise((p,g)=>t(this,void 0,void 0,function*(){try{(0,a.validateSocksClientChainOptions)(c)}catch(m){return typeof d=="function"?(d(m),p(m)):g(m)}c.randomizeChain&&(0,l.shuffleArray)(c.proxies);try{let m;for(let v=0;v<c.proxies.length;v++){const y=c.proxies[v],w=v===c.proxies.length-1?c.destination:{host:c.proxies[v+1].host||c.proxies[v+1].ipaddress,port:c.proxies[v+1].port},_=yield Ro.createConnection({command:"connect",proxy:y,destination:w,existing_socket:m});m=m||_.socket}typeof d=="function"?(d(null,{socket:m}),p({socket:m})):p({socket:m})}catch(m){typeof d=="function"?(d(m),p(m)):g(m)}}))}static createUDPFrame(c){const d=new s.SmartBuffer;return d.writeUInt16BE(0),d.writeUInt8(c.frameNumber||0),i.isIPv4(c.remoteHost.host)?(d.writeUInt8(h.Socks5HostType.IPv4),d.writeUInt32BE((0,a.ipv4ToInt32)(c.remoteHost.host))):i.isIPv6(c.remoteHost.host)?(d.writeUInt8(h.Socks5HostType.IPv6),d.writeBuffer((0,a.ipToBuffer)(c.remoteHost.host))):(d.writeUInt8(h.Socks5HostType.Hostname),d.writeUInt8(Buffer.byteLength(c.remoteHost.host)),d.writeString(c.remoteHost.host)),d.writeUInt16BE(c.remoteHost.port),d.writeBuffer(c.data),d.toBuffer()}static parseUDPFrame(c){const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p=d.readUInt8(),g=d.readUInt8();let m;g===h.Socks5HostType.IPv4?m=(0,a.int32ToIpv4)(d.readUInt32BE()):g===h.Socks5HostType.IPv6?m=u.Address6.fromByteArray(Array.from(d.readBuffer(16))).canonicalForm():m=d.readString(d.readUInt8());const v=d.readUInt16BE();return{frameNumber:p,remoteHost:{host:m,port:v},data:d.readBuffer()}}setState(c){this.state!==h.SocksClientState.Error&&(this.state=c)}connect(c){this.onDataReceived=p=>this.onDataReceivedHandler(p),this.onClose=()=>this.onCloseHandler(),this.onError=p=>this.onErrorHandler(p),this.onConnect=()=>this.onConnectHandler();const d=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||h.DEFAULT_TIMEOUT);d.unref&&typeof d.unref=="function"&&d.unref(),c?this.socket=c:this.socket=new i.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(h.SocksClientState.Connecting),this.receiveBuffer=new n.ReceiveBuffer,c?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",p=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const g=this.receiveBuffer.get(this.receiveBuffer.length);p.socket.emit("data",g)}p.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.BoundWaitingForConnection&&this.closeSocket(h.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(h.SocksClientState.Connected),this.options.proxy.type===4?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(h.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(c){this.receiveBuffer.append(c),this.processData()}processData(){for(;this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===h.SocksClientState.SentInitialHandshake)this.options.proxy.type===4?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===h.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===h.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===h.SocksClientState.BoundWaitingForConnection)this.options.proxy.type===4?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(h.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(h.ERRORS.SocketClosed)}onErrorHandler(c){this.closeSocket(c.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(c){this.state!==h.SocksClientState.Error&&(this.setState(h.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new l.SocksClientError(c,this.options)))}sendSocks4InitialHandshake(){const c=this.options.proxy.userId||"",d=new s.SmartBuffer;d.writeUInt8(4),d.writeUInt8(h.SocksCommand[this.options.command]),d.writeUInt16BE(this.options.destination.port),i.isIPv4(this.options.destination.host)?(d.writeBuffer((0,a.ipToBuffer)(this.options.destination.host)),d.writeStringNT(c)):(d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(1),d.writeStringNT(c),d.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(d.toBuffer())}handleSocks4FinalHandshakeResponse(){const c=this.receiveBuffer.get(8);if(c[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedConnection} - (${h.Socks4Response[c[1]]})`);else if(h.SocksCommand[this.options.command]===h.SocksCommand.bind){const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p={port:d.readUInt16BE(),host:(0,a.int32ToIpv4)(d.readUInt32BE())};p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress),this.setState(h.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:p,socket:this.socket})}else this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const c=this.receiveBuffer.get(8);if(c[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${h.Socks4Response[c[1]]})`);else{const d=s.SmartBuffer.fromBuffer(c);d.readOffset=2;const p={port:d.readUInt16BE(),host:(0,a.int32ToIpv4)(d.readUInt32BE())};this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})}}sendSocks5InitialHandshake(){const c=new s.SmartBuffer,d=[h.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&d.push(h.Socks5Auth.UserPass),this.options.proxy.custom_auth_method!==void 0&&d.push(this.options.proxy.custom_auth_method),c.writeUInt8(5),c.writeUInt8(d.length);for(const p of d)c.writeUInt8(p);this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const c=this.receiveBuffer.get(2);c[0]!==5?this.closeSocket(h.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):c[1]===h.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):c[1]===h.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=h.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):c[1]===h.Socks5Auth.UserPass?(this.socks5ChosenAuthType=h.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):c[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const c=this.options.proxy.userId||"",d=this.options.proxy.password||"",p=new s.SmartBuffer;p.writeUInt8(1),p.writeUInt8(Buffer.byteLength(c)),p.writeString(c),p.writeUInt8(Buffer.byteLength(d)),p.writeString(d),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(p.toBuffer()),this.setState(h.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return t(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(h.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(c){return t(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(c)})}handleSocks5AuthenticationNoAuthHandshakeResponse(c){return t(this,void 0,void 0,function*(){return c[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(c){return t(this,void 0,void 0,function*(){return c[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return t(this,void 0,void 0,function*(){this.setState(h.SocksClientState.ReceivedAuthenticationResponse);let c=!1;this.socks5ChosenAuthType===h.Socks5Auth.NoAuth?c=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===h.Socks5Auth.UserPass?c=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(c=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),c?this.sendSocks5CommandRequest():this.closeSocket(h.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){const c=new s.SmartBuffer;c.writeUInt8(5),c.writeUInt8(h.SocksCommand[this.options.command]),c.writeUInt8(0),i.isIPv4(this.options.destination.host)?(c.writeUInt8(h.Socks5HostType.IPv4),c.writeBuffer((0,a.ipToBuffer)(this.options.destination.host))):i.isIPv6(this.options.destination.host)?(c.writeUInt8(h.Socks5HostType.IPv6),c.writeBuffer((0,a.ipToBuffer)(this.options.destination.host))):(c.writeUInt8(h.Socks5HostType.Hostname),c.writeUInt8(this.options.destination.host.length),c.writeString(this.options.destination.host)),c.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const c=this.receiveBuffer.peek(5);if(c[0]!==5||c[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${h.Socks5Response[c[1]]}`);else{const d=c[3];let p,g;if(d===h.Socks5HostType.IPv4){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:(0,a.int32ToIpv4)(g.readUInt32BE()),port:g.readUInt16BE()},p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){const m=c[4],v=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(m);if(this.receiveBuffer.length<v){this.nextRequiredPacketBufferSize=v;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(v).slice(5)),p={host:g.readString(m),port:g.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:u.Address6.fromByteArray(Array.from(g.readBuffer(16))).canonicalForm(),port:g.readUInt16BE()}}this.setState(h.SocksClientState.ReceivedFinalResponse),h.SocksCommand[this.options.command]===h.SocksCommand.connect?(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.bind?(this.setState(h.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:p,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.associate&&(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){const c=this.receiveBuffer.peek(5);if(c[0]!==5||c[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${h.Socks5Response[c[1]]}`);else{const d=c[3];let p,g;if(d===h.Socks5HostType.IPv4){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:(0,a.int32ToIpv4)(g.readUInt32BE()),port:g.readUInt16BE()},p.host==="0.0.0.0"&&(p.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){const m=c[4],v=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(m);if(this.receiveBuffer.length<v){this.nextRequiredPacketBufferSize=v;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(v).slice(5)),p={host:g.readString(m),port:g.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){const m=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<m){this.nextRequiredPacketBufferSize=m;return}g=s.SmartBuffer.fromBuffer(this.receiveBuffer.get(m).slice(4)),p={host:u.Address6.fromByteArray(Array.from(g.readBuffer(16))).canonicalForm(),port:g.readUInt16BE()}}this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:p,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}};e.SocksClient=f})),mw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(i,s,h,a){a===void 0&&(a=h);var n=Object.getOwnPropertyDescriptor(s,h);(!n||("get"in n?!s.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return s[h]}}),Object.defineProperty(i,a,n)}):(function(i,s,h,a){a===void 0&&(a=h),i[a]=s[h]})),r=e&&e.__exportStar||function(i,s){for(var h in i)h!=="default"&&!Object.prototype.hasOwnProperty.call(s,h)&&t(s,i,h)};Object.defineProperty(e,"__esModule",{value:!0}),r(pw(),e)})),gw=I.__commonJSMin((e=>{var t=e&&e.__createBinding||(Object.create?(function(v,y,w,_){_===void 0&&(_=w);var b=Object.getOwnPropertyDescriptor(y,w);(!b||("get"in b?!y.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return y[w]}}),Object.defineProperty(v,_,b)}):(function(v,y,w,_){_===void 0&&(_=w),v[_]=y[w]})),r=e&&e.__setModuleDefault||(Object.create?(function(v,y){Object.defineProperty(v,"default",{enumerable:!0,value:y})}):function(v,y){v.default=y}),i=e&&e.__importStar||function(v){if(v&&v.__esModule)return v;var y={};if(v!=null)for(var w in v)w!=="default"&&Object.prototype.hasOwnProperty.call(v,w)&&t(y,v,w);return r(y,v),y},s=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksProxyAgent=void 0;var h=mw(),a=As(),n=s(pn()),l=i(require("dns")),u=i(require("net")),f=i(require("tls")),o=require("url"),c=(0,n.default)("socks-proxy-agent"),d=v=>v.servername===void 0&&v.host&&!u.isIP(v.host)?{...v,servername:v.host}:v;function p(v){let y=!1,w=5;const _=v.hostname,b=parseInt(v.port,10)||1080;switch(v.protocol.replace(":","")){case"socks4":y=!0,w=4;break;case"socks4a":w=4;break;case"socks5":y=!0,w=5;break;case"socks":w=5;break;case"socks5h":w=5;break;default:throw new TypeError(`A "socks" protocol must be specified! Got: ${String(v.protocol)}`)}const E={host:_,port:b,type:w};return v.username&&Object.defineProperty(E,"userId",{value:decodeURIComponent(v.username),enumerable:!1}),v.password!=null&&Object.defineProperty(E,"password",{value:decodeURIComponent(v.password),enumerable:!1}),{lookup:y,proxy:E}}var g=class extends a.Agent{constructor(v,y){super(y);const{proxy:w,lookup:_}=p(typeof v=="string"?new o.URL(v):v);this.shouldLookup=_,this.proxy=w,this.timeout=y?.timeout??null,this.socketOptions=y?.socketOptions??null}async connect(v,y){const{shouldLookup:w,proxy:_,timeout:b}=this;if(!y.host)throw new Error("No `host` defined!");let{host:E}=y;const{port:S,lookup:A=l.lookup}=y;w&&(E=await new Promise(($,z)=>{A(E,{},(V,H)=>{V?z(V):$(H)})}));const C={proxy:_,destination:{host:E,port:typeof S=="number"?S:parseInt(S,10)},command:"connect",timeout:b??void 0,socket_options:this.socketOptions??void 0},T=$=>{v.destroy(),U.destroy(),$&&$.destroy()};c("Creating socks proxy connection: %o",C);const{socket:U}=await h.SocksClient.createConnection(C);if(c("Successfully created socks proxy connection"),b!==null&&(U.setTimeout(b),U.on("timeout",()=>T())),y.secureEndpoint){c("Upgrading socket connection to TLS");const $=f.connect({...m(d(y),"host","path","port"),socket:U});return $.once("error",z=>{c("Socket TLS error",z.message),T($)}),$}return U}};g.protocols=["socks","socks4","socks4a","socks5","socks5h"],e.SocksProxyAgent=g;function m(v,...y){const w={};let _;for(_ in v)y.includes(_)||(w[_]=v[_]);return w}})),wd=I.__commonJSMin(((e,t)=>{var r=class extends Error{constructor(n){super(`Invalid protocol \`${n.protocol}\` connecting to proxy \`${n.host}\``),this.code="EINVALIDPROXY",this.proxy=n}},i=class extends Error{constructor(n){super(`Timeout connecting to host \`${n}\``),this.code="ECONNECTIONTIMEOUT",this.host=n}},s=class extends Error{constructor(n){super(`Idle timeout reached for host \`${n}\``),this.code="EIDLETIMEOUT",this.host=n}},h=class extends Error{constructor(n,l){let u="Response timeout ";l&&(u+=`from proxy \`${l.host}\` `),u+=`connecting to host \`${n.host}\``,super(u),this.code="ERESPONSETIMEOUT",this.proxy=l,this.request=n}},a=class extends Error{constructor(n,l){let u="Transfer timeout ";l&&(u+=`from proxy \`${l.host}\` `),u+=`for \`${n.host}\``,super(u),this.code="ETRANSFERTIMEOUT",this.proxy=l,this.request=n}};t.exports={InvalidProxyProtocolError:r,ConnectionTimeoutError:i,IdleTimeoutError:s,ResponseTimeoutError:h,TransferTimeoutError:a}})),Sd=I.__commonJSMin(((e,t)=>{var{HttpProxyAgent:r}=sw(),{HttpsProxyAgent:i}=ow(),{SocksProxyAgent:s}=gw(),{LRUCache:h}=nn(),{InvalidProxyProtocolError:a}=wd(),n=new h({max:20}),l=new Set(s.protocols),u=new Set(["https_proxy","http_proxy","proxy","no_proxy"]),f=Object.entries(process.env).reduce((p,[g,m])=>(g=g.toLowerCase(),u.has(g)&&(p[g]=m),p),{}),o=p=>{p=new URL(p);const g=p.protocol.slice(0,-1);if(l.has(g))return s;if(g==="https"||g==="http")return[r,i];throw new a(p)},c=(p,g)=>{if(typeof g=="string"&&(g=g.split(",").map(v=>v.trim()).filter(Boolean)),!g||!g.length)return!1;const m=p.hostname.split(".").reverse();return g.some(v=>{const y=v.split(".").filter(Boolean).reverse();if(!y.length)return!1;for(let w=0;w<y.length;w++)if(m[w]!==y[w])return!1;return!0})},d=(p,{proxy:g,noProxy:m})=>(p=new URL(p),g||(g=p.protocol==="https:"?f.https_proxy:f.https_proxy||f.http_proxy||f.proxy),m||(m=f.no_proxy),!g||c(p,m)?null:new URL(g));t.exports={getProxyAgent:o,getProxy:d,proxyCache:n}})),vw=I.__commonJSMin(((e,t)=>{var r=require("net"),i=require("tls"),{once:s}=require("events"),h=require("timers/promises"),{normalizeOptions:a,cacheOptions:n}=fd(),{getProxy:l,getProxyAgent:u,proxyCache:f}=Sd(),o=wd(),{Agent:c}=As();t.exports=class extends c{#e;#t;#r;#n;#a;constructor(p={}){const{timeouts:g,proxy:m,noProxy:v,...y}=a(p);super(y),this.#e=y,this.#t=g,m&&(this.#r=new URL(m),this.#n=v,this.#a=u(m))}get proxy(){return this.#r?{url:this.#r}:{}}#l(p){if(!this.#r)return;const g=l(`${p.protocol}//${p.host}:${p.port}`,{proxy:this.#r,noProxy:this.#n});if(!g)return;const m=n({...p,...this.#e,timeouts:this.#t,proxy:g});if(f.has(m))return f.get(m);let v=this.#a;Array.isArray(v)&&(v=this.isSecureEndpoint(p)?v[1]:v[0]);const y=new v(g,{...this.#e,socketOptions:{family:this.#e.family}});return f.set(m,y),y}async#f({promises:p,options:g,timeout:m},v=new AbortController){if(m){const w=h.setTimeout(m,null,{signal:v.signal}).then(()=>{throw new o.ConnectionTimeoutError(`${g.host}:${g.port}`)}).catch(_=>{if(_.name!=="AbortError")throw _});p.push(w)}let y;try{y=await Promise.race(p),v.abort()}catch(w){throw v.abort(),w}return y}async connect(p,g){g.lookup??=this.#e.lookup;let m,v=this.#t.connection;const y=this.isSecureEndpoint(g),w=this.#l(g);if(w){const S=Date.now();m=await this.#f({options:g,timeout:v,promises:[w.connect(p,g)]}),v&&(v=v-(Date.now()-S))}else m=(y?i:r).connect(g);m.setKeepAlive(this.keepAlive,this.keepAliveMsecs),m.setNoDelay(this.keepAlive);const _=new AbortController,{signal:b}=_,E=m[y?"secureConnecting":"connecting"]?s(m,y?"secureConnect":"connect",{signal:b}):Promise.resolve();return await this.#f({options:g,timeout:v,promises:[E,s(m,"error",{signal:b}).then(S=>{throw S[0]})]},_),this.#t.idle&&m.setTimeout(this.#t.idle,()=>{m.destroy(new o.IdleTimeoutError(`${g.host}:${g.port}`))}),m}addRequest(p,g){const m=this.#l(g);if(m?.setRequestProps&&m.setRequestProps(p,g),p.setHeader("connection",this.keepAlive?"keep-alive":"close"),this.#t.response){let v;p.once("finish",()=>{setTimeout(()=>{p.destroy(new o.ResponseTimeoutError(p,this.#r))},this.#t.response)}),p.once("response",()=>{clearTimeout(v)})}if(this.#t.transfer){let v;p.once("response",y=>{setTimeout(()=>{y.destroy(new o.TransferTimeoutError(p,this.#r))},this.#t.transfer),y.once("close",()=>{clearTimeout(v)})})}return super.addRequest(p,g)}}})),yw=I.__commonJSMin(((e,t)=>{var{LRUCache:r}=nn(),{normalizeOptions:i,cacheOptions:s}=fd(),{getProxy:h,proxyCache:a}=Sd(),n=hd(),l=vw(),u=new r({max:20}),f=(o,{agent:c,proxy:d,noProxy:p,...g}={})=>{if(c!=null)return c;o=new URL(o);const m=h(o,{proxy:d,noProxy:p}),v={...i(g),proxy:m},y=s({...v,secureEndpoint:o.protocol==="https:"});if(u.has(y))return u.get(y);const w=new l(v);return u.set(y,w),w};t.exports={getAgent:f,Agent:l,HttpAgent:l,HttpsAgent:l,cache:{proxy:a,agent:u,dns:n.cache,clear:()=>{a.clear(),u.clear(),n.cache.clear()}}}})),_w=I.__exportAll({author:()=>Bo,default:()=>Dd,dependencies:()=>Mo,description:()=>ko,devDependencies:()=>Po,engines:()=>jo,files:()=>Fo,keywords:()=>$o,license:()=>"ISC",main:()=>Lo,name:()=>Oo,repository:()=>xo,scripts:()=>No,tap:()=>Uo,templateOSS:()=>Ho,version:()=>Io}),Oo,Io,ko,Lo,Fo,No,xo,$o,Bo,Ew,Mo,Po,jo,Uo,Ho,Dd,bw=I.__esmMin((()=>{Oo="make-fetch-happen",Io="15.0.5",ko="Opinionated, caching, retrying fetch client",Lo="lib/index.js",Fo=["bin/","lib/"],No={test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},xo={type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},$o=["http","request","fetch","mean girls","caching","cache","subresource integrity"],Bo="GitHub Inc.",Ew="ISC",Mo={"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0","@npmcli/redact":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},Po={"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},jo={node:"^20.17.0 || >=22.9.0"},Uo={color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},Ho={"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"},Dd={name:Oo,version:Io,description:ko,main:Lo,files:Fo,scripts:No,repository:xo,keywords:$o,author:Bo,license:"ISC",dependencies:Mo,devDependencies:Po,engines:jo,tap:Uo,templateOSS:Ho}})),Gu=I.__commonJSMin(((e,t)=>{var{Minipass:r}=Ot(),i=cn(),{promiseRetry:s}=Xb(),h=zr(),{log:a}=Pu(),{redact:n}=zf(),l=cd(),{getAgent:u}=yw(),f=(bw(),I.__toCommonJS(_w).default),o=`${f.name}/${f.version} (+https://npm.im/${f.name})`,c=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"],d=["request-timeout"],p=(g,m)=>{const v=u(g.url,{...m,signal:void 0});g.headers.has("connection")||g.headers.set("connection",v?"keep-alive":"close"),g.headers.has("user-agent")||g.headers.set("user-agent",o);const y={...m,agent:v,redirect:"manual"};return s(async(w,_)=>{const b=new i.Request(g,y),E=n(b.url);try{let S=await i(b,y);if(y.integrity&&S.status===200){const C=h.integrityStream({algorithms:y.algorithms,integrity:y.integrity,size:y.size}),T=new l({events:["integrity","size"]},S.body,C);C.on("integrity",U=>T.emit("integrity",U)),C.on("size",U=>T.emit("size",U)),S=new i.Response(T,S),S.body.hasIntegrityEmitter=!0}S.headers.set("x-fetch-attempts",_);const A=r.isStream(b.body);return b.method!=="POST"&&!A&&([408,420,429].includes(S.status)||S.status>=500)?(typeof m.onRetry=="function"&&m.onRetry(S),a.http("fetch",`${b.method} ${E} attempt ${_} failed with ${S.status}`),w(S)):S}catch(S){const A=S.code==="EPROMISERETRY"?S.retried.code:S.code,C=S.retried instanceof i.Response||c.includes(A)&&d.includes(S.type);if(b.method==="POST"||C)throw S;return typeof m.onRetry=="function"&&m.onRetry(S),a.http("fetch",`${b.method} ${E} attempt ${_} failed with ${S.code}`),w(S)}},m.retry).catch(w=>{if(w.status>=400&&w.type!=="system")return w;throw w})};t.exports=p})),ww=I.__commonJSMin(((e,t)=>{var{Request:r,Response:i}=cn(),{Minipass:s}=Ot(),h=ju(),a=Yb(),n=require("url"),l=cd(),u=Wf(),f=Kb(),o=Gu(),c=(_,b)=>Object.prototype.hasOwnProperty.call(_,b),d=["accept-charset","accept-encoding","accept-language","accept","cache-control"],p=["cache-control","content-encoding","content-language","content-type","date","etag","expires","last-modified","link","location","pragma","vary"],g=(_,b,E)=>{const S={time:Date.now(),url:_.url,reqHeaders:{},resHeaders:{},options:{compress:E.compress!=null?E.compress:_.compress}};b.status!==200&&b.status!==304&&(S.status=b.status);for(const T of d)_.headers.has(T)&&(S.reqHeaders[T]=_.headers.get(T));const A=_.headers.get("host"),C=new n.URL(_.url);if(A&&C.host!==A&&(S.reqHeaders.host=A),b.headers.has("vary")){const T=b.headers.get("vary");if(T!=="*"){const U=T.trim().toLowerCase().split(/\s*,\s*/);for(const $ of U)_.headers.has($)&&(S.reqHeaders[$]=_.headers.get($))}}for(const T of p)b.headers.has(T)&&(S.resHeaders[T]=b.headers.get(T));for(const T of E.cacheAdditionalHeaders)b.headers.has(T)&&(S.resHeaders[T]=b.headers.get(T));return S},m=Symbol("request"),v=Symbol("response"),y=Symbol("policy"),w=class ri{constructor({entry:b,request:E,response:S,options:A}){b?(this.key=b.key,this.entry=b,this.entry.metadata.time=this.entry.metadata.time||this.entry.time):this.key=f(E),this.options=A,this[m]=E,this[v]=S,this[y]=null}static async find(b,E){try{var S=await a.index.compact(E.cachePath,f(b),(C,T)=>{const U=new ri({entry:C,options:E}),$=new ri({entry:T,options:E});return U.policy.satisfies($.request)},{validateEntry:C=>C.metadata&&C.metadata.resHeaders&&C.metadata.resHeaders["content-encoding"]===null?!1:C.integrity===null?!!(C.metadata&&C.metadata.status):!0})}catch{return}if(E.cache==="reload")return;let A;for(const C of S){const T=new ri({entry:C,options:E});if(T.policy.satisfies(b)){A=T;break}}return A}static async invalidate(b,E){const S=f(b);try{await a.rm.entry(E.cachePath,S,{removeFully:!0})}catch{}}get request(){return this[m]||(this[m]=new r(this.entry.metadata.url,{method:"GET",headers:this.entry.metadata.reqHeaders,...this.entry.metadata.options})),this[m]}get response(){return this[v]||(this[v]=new i(null,{url:this.entry.metadata.url,counter:this.options.counter,status:this.entry.metadata.status||200,headers:{...this.entry.metadata.resHeaders,"content-length":this.entry.size}})),this[v]}get policy(){return this[y]||(this[y]=new u({entry:this.entry,request:this.request,response:this.response,options:this.options})),this[y]}async store(b){if(this.request.method!=="GET"||![200,301,308].includes(this.response.status)||!this.policy.storable())return this.response.headers.set("x-local-cache-status","skip"),this.response;const E=this.response.headers.get("content-length"),S={algorithms:this.options.algorithms,metadata:g(this.request,this.response,this.options),size:E,integrity:this.options.integrity,integrityEmitter:this.response.body.hasIntegrityEmitter&&this.response.body};let A=null;if(this.response.status===200){let C,T;const U=new Promise((z,V)=>{C=z,T=V}).catch(z=>{A.emit("error",z)});A=new l({events:["integrity","size"]},new h({flush(){return U}})),A.hasIntegrityEmitter=!0;const $=()=>{const z=new s,V=a.put.stream(this.options.cachePath,this.key,S);V.on("integrity",H=>A.emit("integrity",H)),V.on("size",H=>A.emit("size",H)),z.pipe(V),V.promise().then(C,T),A.unshift(z),A.unshift(this.response.body)};A.once("resume",$),A.once("end",()=>A.removeListener("resume",$))}else await a.index.insert(this.options.cachePath,this.key,null,S);return this.response.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),this.response.headers.set("x-local-cache-key",encodeURIComponent(this.key)),this.response.headers.set("x-local-cache-mode","stream"),this.response.headers.set("x-local-cache-status",b),this.response.headers.set("x-local-cache-time",new Date().toISOString()),new i(A,{url:this.response.url,status:this.response.status,headers:this.response.headers,counter:this.options.counter})}async respond(b,E,S){let A;if(b==="HEAD"||[301,308].includes(this.response.status))A=this.response;else{const C=new s,T={...this.policy.responseHeaders()},U=()=>{const $=a.get.stream.byDigest(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize});$.on("error",async z=>{$.pause(),z.code==="EINTEGRITY"&&await a.rm.content(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize}),(z.code==="ENOENT"||z.code==="EINTEGRITY")&&await ri.invalidate(this.request,this.options),C.emit("error",z),$.resume()}),C.emit("integrity",this.entry.integrity),C.emit("size",Number(T["content-length"])),$.pipe(C)};C.once("resume",U),C.once("end",()=>C.removeListener("resume",U)),A=new i(C,{url:this.entry.metadata.url,counter:E.counter,status:200,headers:T})}return A.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),A.headers.set("x-local-cache-hash",encodeURIComponent(this.entry.integrity)),A.headers.set("x-local-cache-key",encodeURIComponent(this.key)),A.headers.set("x-local-cache-mode","stream"),A.headers.set("x-local-cache-status",S),A.headers.set("x-local-cache-time",new Date(this.entry.metadata.time).toUTCString()),A}async revalidate(b,E){const S=new r(b,{headers:this.policy.revalidationHeaders(b)});try{var A=await o(S,{...E,headers:void 0})}catch(C){if(!this.policy.mustRevalidate)return this.respond(b.method,E,"stale");throw C}if(this.policy.revalidated(S,A)){const C=g(b,A,E);for(const T of p)!c(C.resHeaders,T)&&c(this.entry.metadata.resHeaders,T)&&(C.resHeaders[T]=this.entry.metadata.resHeaders[T]);for(const T of E.cacheAdditionalHeaders){const U=c(C.resHeaders,T),$=c(this.entry.metadata.resHeaders,T),z=c(this.policy.response.headers,T);!U&&$&&(C.resHeaders[T]=this.entry.metadata.resHeaders[T]),!z&&U&&(this.policy.response.headers[T]=C.resHeaders[T])}try{await a.index.insert(E.cachePath,this.key,this.entry.integrity,{size:this.entry.size,metadata:C})}catch{}return this.respond(b.method,E,"revalidated")}return new ri({request:b,response:A,options:E}).store("updated")}};t.exports=w})),Sw=I.__commonJSMin(((e,t)=>{var{NotCachedError:r}=kb(),i=ww(),s=Gu(),h=async(a,n)=>{const l=await i.find(a,n);if(!l){if(n.cache==="only-if-cached")throw new r(a.url);return new i({request:a,response:await s(a,n),options:n}).store("miss")}if(n.cache==="no-cache")return l.revalidate(a,n);const u=l.policy.needsRevalidation(a);return n.cache==="force-cache"||n.cache==="only-if-cached"||!u?l.respond(a.method,n,u?"stale":"hit"):l.revalidate(a,n)};h.invalidate=async(a,n)=>{if(n.cachePath)return i.invalidate(a,n)},t.exports=h})),Dw=I.__commonJSMin(((e,t)=>{var{FetchError:r,Request:i,isRedirect:s}=cn(),h=require("url"),a=Wf(),n=Sw(),l=Gu(),u=(c,d,p)=>{if(!s(d.status)||p.redirect==="manual")return!1;if(p.redirect==="error")throw new r(`redirect mode is set to error: ${c.url}`,"no-redirect",{code:"ENOREDIRECT"});if(!d.headers.has("location"))throw new r(`redirect location header missing for: ${c.url}`,"no-location",{code:"EINVALIDREDIRECT"});if(c.counter>=c.follow)throw new r(`maximum redirect reached at: ${c.url}`,"max-redirect",{code:"EMAXREDIRECT"});return!0},f=(c,d,p)=>{const g={...p},m=d.headers.get("location"),v=new h.URL(m,/^https?:/.test(m)?void 0:c.url);return new h.URL(c.url).hostname!==v.hostname&&(c.headers.delete("authorization"),c.headers.delete("cookie")),(d.status===303||c.method==="POST"&&[301,302].includes(d.status))&&(g.method="GET",g.body=null,c.headers.delete("content-length")),g.headers={},c.headers.forEach((y,w)=>{g.headers[w]=y}),g.counter=++c.counter,{request:new i(h.format(v),g),options:g}},o=async(c,d)=>{const p=a.storable(c,d)?await n(c,d):await l(c,d);if(!["GET","HEAD"].includes(c.method)&&p.status>=200&&p.status<=399&&await n.invalidate(c,d),!u(c,p,d))return p;const g=f(c,p,d);return o(g.request,g.options)};t.exports=o})),Aw=I.__commonJSMin(((e,t)=>{var{FetchError:r,Headers:i,Request:s,Response:h}=cn(),a=Db(),n=Dw(),l=(u,f)=>{const o=a(f);return n(new s(u,o),o)};l.defaults=(u,f={},o=l)=>{typeof u=="object"&&(f=u,u=null);const c=(d,p={})=>o(d||u,{...f,...p,headers:{...f.headers,...p.headers}});return c.defaults=(d,p={})=>l.defaults(d,p,c),c},t.exports=l,t.exports.FetchError=r,t.exports.Headers=i,t.exports.Request=s,t.exports.Response=h})),Cw=I.__commonJSMin(((e,t)=>{var r={},i=r.LEFT_BRACE=1,s=r.RIGHT_BRACE=2,h=r.LEFT_BRACKET=3,a=r.RIGHT_BRACKET=4,n=r.COLON=5,l=r.COMMA=6,u=r.TRUE=7,f=r.FALSE=8,o=r.NULL=9,c=r.STRING=10,d=r.NUMBER=11,p=r.START=17,g=r.STOP=18,m=r.TRUE1=33,v=r.TRUE2=34,y=r.TRUE3=35,w=r.FALSE1=49,_=r.FALSE2=50,b=r.FALSE3=51,E=r.FALSE4=52,S=r.NULL1=65,A=r.NULL2=66,C=r.NULL3=67,T=r.NUMBER1=81,U=r.NUMBER3=83,$=r.STRING1=97,z=r.STRING2=98,V=r.STRING3=99,H=r.STRING4=100,L=r.STRING5=101,N=r.STRING6=102,q=r.VALUE=113,J=r.KEY=114,P=r.OBJECT=129,B=r.ARRAY=130,F=92,O=47,x=8,Y=12,oe=10,pe=13,ye=9,W=64*1024;function M(){this.tState=p,this.value=void 0,this.string=void 0,this.stringBuffer=Buffer.alloc?Buffer.alloc(W):new Buffer(W),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=q,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new Buffer(2),3:new Buffer(3),4:new Buffer(4)},this.offset=-1}M.toknam=function(X){for(var ne=Object.keys(r),k=0,j=ne.length;k<j;k++){var ee=ne[k];if(r[ee]===X)return ee}return X&&"0x"+X.toString(16)};var G=M.prototype;G.onError=function(X){throw X},G.charError=function(X,ne){this.tState=g,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(X[ne]))+" at position "+ne+" in state "+M.toknam(this.tState)))},G.appendStringChar=function(X){this.stringBufferOffset>=W&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=X},G.appendStringBuf=function(X,ne,k){var j=X.length;typeof ne=="number"&&(typeof k=="number"?k<0?j=X.length-ne+k:j=k-ne:j=X.length-ne),j<0&&(j=0),this.stringBufferOffset+j>W&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),X.copy(this.stringBuffer,this.stringBufferOffset,ne,k),this.stringBufferOffset+=j},G.write=function(X){typeof X=="string"&&(X=new Buffer(X));for(var ne,k=0,j=X.length;k<j;k++)if(this.tState===p){if(ne=X[k],this.offset++,ne===123)this.onToken(i,"{");else if(ne===125)this.onToken(s,"}");else if(ne===91)this.onToken(h,"[");else if(ne===93)this.onToken(a,"]");else if(ne===58)this.onToken(n,":");else if(ne===44)this.onToken(l,",");else if(ne===116)this.tState=m;else if(ne===102)this.tState=w;else if(ne===110)this.tState=S;else if(ne===34)this.string="",this.stringBufferOffset=0,this.tState=$;else if(ne===45)this.string="-",this.tState=T;else if(ne>=48&&ne<64)this.string=String.fromCharCode(ne),this.tState=U;else if(!(ne===32||ne===9||ne===10||ne===13))return this.charError(X,k)}else if(this.tState===$)if(ne=X[k],this.bytes_remaining>0){for(var ee=0;ee<this.bytes_remaining;ee++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+ee]=X[ee];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,k=k+ee-1}else if(this.bytes_remaining===0&&ne>=128){if(ne<=193||ne>244)return this.onError(new Error("Invalid UTF-8 character at position "+k+" in state "+M.toknam(this.tState)));if(ne>=194&&ne<=223&&(this.bytes_in_sequence=2),ne>=224&&ne<=239&&(this.bytes_in_sequence=3),ne>=240&&ne<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+k>X.length){for(var Se=0;Se<=X.length-1-k;Se++)this.temp_buffs[this.bytes_in_sequence][Se]=X[k+Se];this.bytes_remaining=k+this.bytes_in_sequence-X.length,k=X.length-1}else this.appendStringBuf(X,k,k+this.bytes_in_sequence),k=k+this.bytes_in_sequence-1}else if(ne===34)this.tState=p,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(c,this.string),this.offset+=Buffer.byteLength(this.string,"utf8")+1,this.string=void 0;else if(ne===92)this.tState=z;else if(ne>=32)this.appendStringChar(ne);else return this.charError(X,k);else if(this.tState===z)if(ne=X[k],ne===34)this.appendStringChar(ne),this.tState=$;else if(ne===92)this.appendStringChar(F),this.tState=$;else if(ne===47)this.appendStringChar(O),this.tState=$;else if(ne===98)this.appendStringChar(x),this.tState=$;else if(ne===102)this.appendStringChar(Y),this.tState=$;else if(ne===110)this.appendStringChar(oe),this.tState=$;else if(ne===114)this.appendStringChar(pe),this.tState=$;else if(ne===116)this.appendStringChar(ye),this.tState=$;else if(ne===117)this.unicode="",this.tState=V;else return this.charError(X,k);else if(this.tState===V||this.tState===H||this.tState===L||this.tState===N)if(ne=X[k],ne>=48&&ne<64||ne>64&&ne<=70||ne>96&&ne<=102){if(this.unicode+=String.fromCharCode(ne),this.tState++===N){var De=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&De>=56320&&De<57344?(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate,De))),this.highSurrogate=void 0):this.highSurrogate===void 0&&De>=55296&&De<56320?this.highSurrogate=De:(this.highSurrogate!==void 0&&(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new Buffer(String.fromCharCode(De)))),this.tState=$}}else return this.charError(X,k);else if(this.tState===T||this.tState===U)switch(ne=X[k],ne){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(ne),this.tState=U;break;default:this.tState=p;var ve=Number(this.string);if(isNaN(ve))return this.charError(X,k);this.string.match(/[0-9]+/)==this.string&&ve.toString()!=this.string?this.onToken(c,this.string):this.onToken(d,ve),this.offset+=this.string.length-1,this.string=void 0,k--;break}else if(this.tState===m)if(X[k]===114)this.tState=v;else return this.charError(X,k);else if(this.tState===v)if(X[k]===117)this.tState=y;else return this.charError(X,k);else if(this.tState===y)if(X[k]===101)this.tState=p,this.onToken(u,!0),this.offset+=3;else return this.charError(X,k);else if(this.tState===w)if(X[k]===97)this.tState=_;else return this.charError(X,k);else if(this.tState===_)if(X[k]===108)this.tState=b;else return this.charError(X,k);else if(this.tState===b)if(X[k]===115)this.tState=E;else return this.charError(X,k);else if(this.tState===E)if(X[k]===101)this.tState=p,this.onToken(f,!1),this.offset+=4;else return this.charError(X,k);else if(this.tState===S)if(X[k]===117)this.tState=A;else return this.charError(X,k);else if(this.tState===A)if(X[k]===108)this.tState=C;else return this.charError(X,k);else if(this.tState===C)if(X[k]===108)this.tState=p,this.onToken(o,null),this.offset+=3;else return this.charError(X,k)},G.onToken=function(X,ne){},G.parseError=function(X,ne){this.tState=g,this.onError(new Error("Unexpected "+M.toknam(X)+(ne?"("+JSON.stringify(ne)+")":"")+" in state "+M.toknam(this.state)))},G.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},G.pop=function(){var X=this.value,ne=this.stack.pop();this.value=ne.value,this.key=ne.key,this.mode=ne.mode,this.emit(X),this.mode||(this.state=q)},G.emit=function(X){this.mode&&(this.state=l),this.onValue(X)},G.onValue=function(X){},G.onToken=function(X,ne){if(this.state===q)if(X===c||X===d||X===u||X===f||X===o)this.value&&(this.value[this.key]=ne),this.emit(ne);else if(X===i)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=J,this.mode=P;else if(X===h)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=B,this.state=q;else if(X===s)if(this.mode===P)this.pop();else return this.parseError(X,ne);else if(X===a)if(this.mode===B)this.pop();else return this.parseError(X,ne);else return this.parseError(X,ne);else if(this.state===J)if(X===c)this.key=ne,this.state=n;else if(X===s)this.pop();else return this.parseError(X,ne);else if(this.state===n)if(X===n)this.state=q;else return this.parseError(X,ne);else if(this.state===l)if(X===l)this.mode===B?(this.key++,this.state=q):this.mode===P&&(this.state=J);else if(X===a&&this.mode===B||X===s&&this.mode===P)this.pop();else return this.parseError(X,ne);else return this.parseError(X,ne)},M.C=r,t.exports=M})),Tw=I.__commonJSMin(((e,t)=>{var r=Cw(),{Minipass:i}=Ot(),s=class extends Error{constructor(n,l){super(n.message),Error.captureStackTrace(this,l||this.constructor)}get name(){return"JSONStreamError"}},h=(n,l)=>typeof n=="string"?String(l)===n:n&&typeof n.test=="function"?n.test(l):typeof n=="boolean"||typeof n=="object"?n:typeof n=="function"?n(l):!1,a=class Ad extends i{#e=0;#t=!1;#r=null;#n=null;#a=null;#l;#f;#c=null;#o=null;constructor(l){super({...l,objectMode:!0});const u=this.#f=new r;u.onValue=f=>this.#i(f),this.#l=u.onToken,u.onToken=(f,o)=>this.#u(f,o),u.onError=f=>this.#h(f),this.#c=typeof l.path=="string"?l.path.split(".").map(f=>f==="$*"?{emitKey:!0}:f==="*"?!0:f===""?{recurse:!0}:f):Array.isArray(l.path)&&l.path.length?l.path:null,typeof l.map=="function"&&(this.#a=l.map)}#p(l,u){this.#n!==!1&&(this.#n=this.#n||{},this.#n[l]=u),this.#r!==!1&&this.#n===!1&&(this.#r=this.#r||{},this.#r[l]=u)}#h(l){const u=this.#t?this.end:this.write;return this.#t=!1,this.emit("error",new s(l,u))}#u(l,u){const f=this.#f;if(this.#l.call(this.#f,l,u),f.stack.length===0&&this.#o){const o=this.#o;this.#c||super.write(o),this.#o=null,this.#e=0}}#i(l){const u=this.#f;if(this.#o=l,!this.#c)return;let f=0,o=0,c=!1;for(;f<this.#c.length;){const p=this.#c[f];if(o++,p&&!p.recurse){const g=o===u.stack.length?u:u.stack[o];if(!g)return;if(!h(p,g.key)){this.#p(g.key,l);return}c=!!p.emitKey,f++}else{if(f++,f>=this.#c.length)return;const g=this.#c[f];if(!g)return;for(;;){const m=o===u.stack.length?u:u.stack[o];if(!m)return;if(h(g,m.key)){f++,Object.isFrozen(u.stack[o])||(u.stack[o].value=null);break}else this.#p(m.key,l);o++}}}if(this.#n){const p=this.#n;this.#n=!1,this.emit("header",p)}if(o!==u.stack.length)return;this.#e++;const d=u.stack.slice(1).map(p=>p.key).concat([u.key]);if(l!=null){const p=this.#a?this.#a(l,d):l;if(p!=null){const g=c?{value:p}:p;c&&(g.key=u.key),super.write(g)}}u.value&&delete u.value[u.key];for(const p of u.stack)p.value=null}write(l,u){if(typeof l=="string")l=Buffer.from(l,u);else if(!Buffer.isBuffer(l))return this.emit("error",new TypeError("Can only parse JSON from string or buffer input"));return this.#f.write(l),this.flowing}end(l,u){this.#t=!0,l&&this.write(l,u);const f=this.#n;this.#n=null;const o=this.#r;return this.#r=null,f&&this.emit("header",f),o&&this.emit("footer",o),super.end()}static get JSONStreamError(){return s}static parse(l,u){return new Ad({path:l,map:u})}};t.exports=a})),Rw=I.__commonJSMin(((e,t)=>{var{HttpErrorAuthOTP:r}=Af(),i=_b(),s=Sb(),h=Aw(),a=Tw(),n=Jf(),l=require("querystring"),u=require("url"),f=Cf(),{Minipass:o}=Ot(),c=Hf(),d=_=>{try{return!!new u.URL(_)}catch{return!1}};t.exports=p;function p(_,b={}){const E={...c,...b},S=d(_);let A=E.registry||c.registry;S||(A=E.registry=E.spec&&v(E.spec,E)||E.registry||A,_=`${A.trim().replace(/\/?$/g,"")}/${_.trim().replace(/^\//,"")}`,new u.URL(_));const C=E.method||"GET",T=Date.now(),U=s(_,E),$=w(_,U,E);let z=E.body;const V=o.isStream(z),H=z&&typeof z=="object"&&typeof z.then=="function";if(z&&!V&&!H&&typeof z!="string"&&!Buffer.isBuffer(z)?($["content-type"]=$["content-type"]||"application/json",z=JSON.stringify(z)):z&&!$["content-type"]&&($["content-type"]="application/octet-stream"),E.gzip)if($["content-encoding"]="gzip",V){const q=new f.Gzip;z.on("error",J=>q.emit("error",J)),z=z.pipe(q)}else H||(z=new f.Gzip().end(z).concat());const L=new u.URL(_);if(E.query){const q=typeof E.query=="string"?l.parse(E.query):E.query;Object.keys(q).forEach(J=>{q[J]!==void 0&&L.searchParams.set(J,q[J])}),_=u.format(L)}L.searchParams.get("write")==="true"&&C==="GET"&&(E.offline=!1,E.preferOffline=!1,E.preferOnline=!0);const N=async q=>{const J=h(_,{agent:E.agent,algorithms:E.algorithms,body:q,cache:y(E),cachePath:E.cache,ca:E.ca,cert:U.cert||E.cert,headers:$,integrity:E.integrity,key:U.key||E.key,localAddress:E.localAddress,maxSockets:E.maxSockets,memoize:E.memoize,method:C,noProxy:E.noProxy,proxy:E.httpsProxy||E.proxy,retry:E.retry?E.retry:{retries:E.fetchRetries,factor:E.fetchRetryFactor,minTimeout:E.fetchRetryMintimeout,maxTimeout:E.fetchRetryMaxtimeout},strictSSL:E.strictSSL,timeout:E.timeout||3e4,signal:E.signal}).then(P=>i({method:C,uri:_,res:P,registry:A,startTime:T,auth:U,opts:E}));return typeof E.otpPrompt=="function"?J.catch(async P=>{if(P instanceof r){let B;try{B=await E.otpPrompt()}catch{}if(!B)throw P;return p(_,{...E,otp:B})}throw P}):J};return Promise.resolve(z).then(N)}t.exports.getAuth=s,t.exports.json=g;function g(_,b){return p(_,b).then(E=>E.json())}t.exports.json.stream=m;function m(_,b,E={}){const S={...c,...E},A=a.parse(b,S.mapJSON);return p(_,S).then(C=>C.body.on("error",T=>A.emit("error",T)).pipe(A)).catch(C=>A.emit("error",C)),A}t.exports.pickRegistry=v;function v(_,b={}){_=n(_);let E=_.scope&&b[_.scope.replace(/^@?/,"@")+":registry"];return!E&&b.scope&&(E=b[b.scope.replace(/^@?/,"@")+":registry"]),E||(E=b.registry||c.registry),E}function y(_){return _.offline?"only-if-cached":_.preferOffline?"force-cache":_.preferOnline?"no-cache":"default"}function w(_,b,E){const S=Object.assign({"user-agent":E.userAgent},E.headers||{});return E.authType&&(S["npm-auth-type"]=E.authType),E.scope&&(S["npm-scope"]=E.scope),E.npmSession&&(S["npm-session"]=E.npmSession),E.npmCommand&&(S["npm-command"]=E.npmCommand),b.token?S.authorization=`Bearer ${b.token}`:b.auth&&(S.authorization=`Basic ${b.auth}`),E.otp&&(S["npm-otp"]=E.otp),S}})),Cr=I.__toESM(xE(),1),Ju=I.__toESM($E(),1),ha=I.__toESM(Rw(),1),Ii,Tn;function Cd(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);if(Ii===void 0&&(Ii=Pr.default.homedir()),Ii&&/^~(?=$|\/|\\)/.test(e))return e.replace(/^~/,Ii);const t=e.match(/^~([^/\\]+)(.*)/);if(t&&(Tn===void 0&&(Tn=Pr.default.userInfo().username),Tn)){const r=t[1],i=t[2];if(r===Tn)return Ii+i}return e}var Ow=class{value;next;constructor(e){this.value=e}},Iw=class{#e;#t;#r;constructor(){this.clear()}enqueue(e){const t=new Ow(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#r++}dequeue(){const e=this.#e;if(e)return this.#e=this.#e.next,this.#r--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#e;)yield this.dequeue()}};function Cc(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new Iw;let r=0;const i=()=>{r--,t.size>0&&t.dequeue()()},s=async(n,l,u)=>{r++;const f=(async()=>n(...u))();l(f);try{await f}catch{}i()},h=(n,l,u)=>{t.enqueue(s.bind(void 0,n,l,u)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(n,...l)=>new Promise(u=>{h(n,u,l)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a}var Td=class extends Error{constructor(e){super(),this.value=e}},kw=async(e,t)=>t(await e),Lw=async e=>{const t=await Promise.all(e);if(t[1]===!0)throw new Td(t[0]);return!1};async function Fw(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:i=!0}={}){const s=Cc(r),h=[...e].map(n=>[n,s(kw,n,t)]),a=Cc(i?1:Number.POSITIVE_INFINITY);try{await Promise.all(h.map(n=>a(Lw,n)))}catch(n){if(n instanceof Td)return n.value;throw n}}var Rd={directory:"isDirectory",file:"isFile"};function Od(e){if(!(e==="both"||Object.hasOwn(Rd,e)))throw new Error(`Invalid type specified: ${e}`)}var Id=(e,t)=>e==="both"?t.isFile()||t.isDirectory():t[Rd[e]](),kd=e=>e instanceof URL?(0,au.fileURLToPath)(e):e;async function Tc(e,{cwd:t=Mr.default.cwd(),type:r="file",allowSymlinks:i=!0,concurrency:s,preserveOrder:h}={}){Od(r),t=kd(t);const a=i?jr.promises.stat:jr.promises.lstat;return Fw(e,async n=>{try{return Id(r,await a(st.default.resolve(t,n)))}catch{return!1}},{concurrency:s,preserveOrder:h})}function Rc(e,{cwd:t=Mr.default.cwd(),type:r="file",allowSymlinks:i=!0}={}){Od(r),t=kd(t);const s=i?jr.default.statSync:jr.default.lstatSync;for(const h of e)try{const a=s(st.default.resolve(t,h),{throwIfNoEntry:!1});if(!a)continue;if(Id(r,a))return h}catch{}}var tL=(0,ou.promisify)(Un.execFile);function Kn(e){return e instanceof URL?(0,au.fileURLToPath)(e):e}var Ld=Symbol("findUpStop");async function Nw(e,t={}){let r=st.default.resolve(Kn(t.cwd)??"");const{root:i}=st.default.parse(r),s=st.default.resolve(r,Kn(t.stopAt)??i),h=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),n=async u=>{if(typeof e!="function")return Tc(a,u);const f=await e(u.cwd);return typeof f=="string"?Tc([f],u):f},l=[];for(;;){const u=await n({...t,cwd:r});if(u===Ld||(u&&l.push(st.default.resolve(r,u)),r===s||l.length>=h))break;r=st.default.dirname(r)}return l}function xw(e,t={}){let r=st.default.resolve(Kn(t.cwd)??"");const{root:i}=st.default.parse(r),s=st.default.resolve(r,Kn(t.stopAt)??i),h=t.limit??Number.POSITIVE_INFINITY,a=[e].flat(),n=u=>{if(typeof e!="function")return Rc(a,u);const f=e(u.cwd);return typeof f=="string"?Rc([f],u):f},l=[];for(;;){const u=n({...t,cwd:r});if(u===Ld||(u&&l.push(st.default.resolve(r,u)),r===s||l.length>=h))break;r=st.default.dirname(r)}return l}async function Zn(e,t={}){return(await Nw(e,{...t,limit:1}))[0]}function $w(e,t={}){return xw(e,{...t,limit:1})[0]}var Fd=class Nd{constructor(t,r,i){this.__specs=t||{},this.__opts=r||{},this.__providers=Oc(i.filter(s=>s!=null&&typeof s=="object")),this.__isFiggyPudding=!0}get(t){return xd(this,t,!0)}toJSON(){const t={};return this.forEach((r,i)=>{t[i]=r}),t}forEach(t,r=this){for(let[i,s]of this.entries())t.call(r,s,i,this)}*entries(t){for(let i of Object.keys(this.__specs))yield[i,this.get(i)];const r=t||this.__opts.other;if(r){const i=new Set;for(let s of this.__providers){const h=s.entries?s.entries(r):Mw(s);for(let[a,n]of h)r(a)&&!i.has(a)&&(i.add(a),yield[a,n])}}}concat(...t){return new Proxy(new Nd(this.__specs,this.__opts,Oc(this.__providers).concat(t)),$d)}};function xd(e,t,r){let i=e.__specs[t];i||(i={});let s;for(let h of e.__providers)if(s=Bw(t,h),s!==void 0)break;return s===void 0&&i.default!==void 0?typeof i.default=="function"?i.default(e):i.default:s}function Bw(e,t){let r;return t.__isFiggyPudding?r=xd(t,e,!1):r=t[e],r}var $d={get(e,t){return typeof t=="symbol"||t.slice(0,2)==="__"||t in Fd.prototype?e[t]:e.get(t)}};function Bd(e,t){function r(...i){return new Proxy(new Fd(e,t,i),$d)}return r}function Oc(e){const t=[];return e.forEach(r=>t.unshift(r)),t}function Mw(e){return Object.keys(e).map(t=>[t,e[t]])}var Ic=Bd({},{other(){return!0}}),Pw=Bd({cache:{default:st.default.join(process.env.HOME||Pr.default.homedir(),".npm")},configNames:{default:["npmrc",".npmrc"]},envPrefix:{default:/^npm_config_/i},cwd:{default:()=>process.cwd()},globalconfig:{default:()=>st.default.join(Uw(),"etc","npmrc")},userconfig:{default:st.default.join(process.env.HOME||Pr.default.homedir(),".npmrc")}});function jw(e,t){const r=Pw(t),i={};Object.keys(process.env).forEach(c=>{if(!c.match(r.envPrefix))return;const d=c.toLowerCase().replace(r.envPrefix,"").replace(/(?!^)_/g,"-");i[d]=process.env[c]});const s=Ic(e),h=r.userconfig||s.userconfig||i.userconfig,a=h&&fa(h),n=r.globalconfig||s.globalconfig||i.globalconfig,l=n&&fa(n),u=$w(r.configNames,{cwd:r.cwd});let f={};u&&u!==h&&(f=fa(u));const o=Ic(r,l,a,f,i,s);return o.cache?o.concat({cache:st.default.resolve(s.cache||i.cache?r.cwd:f.cache?st.default.dirname(u):a.cache?st.default.dirname(h):l.cache?st.default.dirname(n):st.default.dirname(h),o.cache)}):o}function fa(e){let t;try{t=jr.default.readFileSync(e,"utf8")}catch(r){if(r.code==="ENOENT")return"";throw r}return Ju.default.parse(t)}function Uw(){if(process.env.PREFIX)return process.env.PREFIX;if(process.platform==="win32")return st.default.dirname(process.execPath);{let e=st.default.dirname(st.default.dirname(process.execPath));return process.env.DESTDIR&&(e=st.default.join(process.env.DESTDIR,e)),e}}async function ir(e,t,r,i){if(process.platform!=="win32"||e==="bun")return(0,xr.default)(e,t,r,i);try{return(0,xr.default)(`${e}.cmd`,t,r,i)}catch(s){if(s.code==="ENOENT")return(0,xr.default)(e,t,r,i);throw s}}function Hw(e,t){return t.deprecated||!e.deprecated}function qw(e,t){return t.pre?!0:!e.version||!un(e.version)}function Md(e,t){if(!t)return!0;const r=Je.default.minVersion(t)?.version;if(!r)return!0;const i=e?.engines?.node;return!i||Je.default.satisfies(r,i)}function zw(e,t){return t?Object.values(t).every(r=>r[e.name]===void 0||Je.default.satisfies(e.version,r[e.name])):!0}function Wu(e,t){const r=e.version,i=e?.time?.[r];if(!t)return!0;if(!i)return!1;const s=new Date(i),h=864e5,a=typeof t=="function"?t(e.name)??0:t,n=typeof a=="string"?Yn(a)??0:a;return Date.now()-s.getTime()>=n*h}function mn(e){const t=[r=>Hw(r,e),r=>qw(r,e),e.enginesNode?r=>Md(r,e.nodeEngineVersion):null,e.peerDependencies?r=>zw(r,e.peerDependencies):null,e.cooldown?r=>Wu(r,e.cooldown):null];return r=>t.every(i=>i?i(r):!0)}var Gw=I.__exportAll({default:()=>Rs,defaultPrefix:()=>Ud,distTag:()=>vn,getEngines:()=>Os,getPeerDependencies:()=>Ku,greatest:()=>gn,latest:()=>Is,list:()=>Hd,minor:()=>Ls,newest:()=>ks,normalizeNpmConfig:()=>Vu,npmApi:()=>xt,packageAuthorChanged:()=>Ts,parseJson:()=>ci,patch:()=>Fs,semver:()=>Ns}),Jw=new Set(["-","||","&&","<","<=",">",">="]),Ww=e=>(0,Tt.parseRange)(e).some(t=>Jw.has(t.operator||"")),Pd=e=>e&&(!Je.default.validRange(e)||Ou(e)),Cs=async(e,t,r,i={},s)=>{const h="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",a="application/json",n=ha.default.pickRegistry(e,i),l={"user-agent":i.userAgent||`npm-check-updates/${qn.version} node/${process.version}`,"ncu-version":qn.version,"ncu-pkg-id":`registry:${e}`,accept:i.fullMetadata?a:h,...i.headers},u=new URL(encodeURIComponent(e),n.endsWith("/")?n:`${n}/`);s&&(u.pathname+=`/${s}`);const f={...i,headers:l,spec:e};try{if(i.fullMetadata)return ha.default.json(u.href,f);{r=r||"latest";const o=await(0,ha.default)(u.href,f),c=new DE({paths:["$.*"],keepStack:!1}),d={name:e};let p=!1,g=null;c.onValue=({key:m,value:v})=>{if(p||m===void 0)return;const y=m;t.includes(y)&&(d[y]=v,Object.keys(d).length===t.length+1&&(p=!0))},c.onError=m=>{g=m};for await(const m of o.body){if(c.write(m),g)throw g;if(p)break}if(g)throw g;return d}}catch(o){if(o.code!=="E404"||i.fullMetadata)throw o;return Cs(e,t,r,{...i,fullMetadata:!0},s)}},Di=(e,t)=>{const r=e.version;return{...e,name:t.name,...t?.time?.[r]?{time:t.time}:null}},Vu=(e,t)=>{const r={cafile:a=>{if(!a)return;const n=pr.default.readFileSync(We.default.resolve(t||"",Cd(a)),"utf8"),l="-----END CERTIFICATE-----";return{ca:n.split(l).filter(u=>!!u.trim()).map(u=>`${u.trimStart()}${l}`)}},maxsockets:"maxSockets","strict-ssl":"strictSSL"},i={all:"boolean",allowsameversion:"boolean",audit:"boolean",binlinks:"boolean",color:"boolean",commithooks:"boolean",description:"boolean",dev:"boolean",diffignoreallspace:"boolean",diffnameonly:"boolean",diffnoprefix:"boolean",difftext:"boolean",dryrun:"boolean",enginestrict:"boolean",force:"boolean",foregroundscripts:"boolean",formatpackagelock:"boolean",fund:"boolean",gittagversion:"boolean",global:"boolean",globalstyle:"boolean",ifpresent:"boolean",ignorescripts:"boolean",includestaged:"boolean",includeworkspaceroot:"boolean",installlinks:"boolean",json:"boolean",legacybundling:"boolean",legacypeerdeps:"boolean",link:"boolean",long:"boolean",offline:"boolean",omitlockfileregistryresolved:"boolean",packagelock:"boolean",packagelockonly:"boolean",parseable:"boolean",preferoffline:"boolean",preferonline:"boolean",progress:"boolean",readonly:"boolean",rebuildbundle:"boolean",save:"boolean",savebundle:"boolean",savedev:"boolean",saveexact:"boolean",saveoptional:"boolean",savepeer:"boolean",saveprod:"boolean",shrinkwrap:"boolean",signgitcommit:"boolean",signgittag:"boolean",strictpeerdeps:"boolean",strictssl:"boolean",timing:"boolean",unicode:"boolean",updatenotifier:"boolean",usage:"boolean",version:"boolean",versions:"boolean",workspacesupdate:"boolean",diffunified:"number",fetchretries:"number",fetchretryfactor:"number",fetchretrymaxtimeout:"number",fetchretrymintimeout:"number",fetchtimeout:"number",logsmax:"number",maxsockets:"number",searchlimit:"number",searchstaleness:"number",ssopollfrequency:"number",timeout:"number"},s=a=>!!a&&a!=="false"&&a!=="0",h=a=>parseInt(a)||0;return at(e,(a,n)=>{const l=typeof n!="string"?n:i[a.replace(/-/g,"").toLowerCase()]==="boolean"?s(n):i[a.replace(/-/g,"").toLowerCase()]==="number"?h(n):n.replace(/\${([^}]+)}/,(f,o)=>process.env[o]),{[a]:u}=r;return typeof u=="string"?{[u]:l}:typeof u=="function"?{...u(l.toString())}:{[a.match(/^[a-z]/i)?NE(a):a]:l}})},xt={};xt.findNpmConfig=(0,Cr.default)(e=>{let t;if(e)try{t=Ju.default.parse(pr.default.readFileSync(e,"utf-8"))}catch(r){if(r.code==="ENOENT")return null;throw r}else t={...jw(null,{userconfig:process.env.npm_config_userconfig||process.env.NPM_CONFIG_USERCONFIG}).toJSON(),cache:!1};return Vu(t,e)});var Yu=xt.findNpmConfig();function ci(e,t){let r;try{r=JSON.parse(e)}catch(i){throw new Error(`Expected JSON from "${t.command}".${t.packageName?` There could be problems with the ${t.packageName} package.`:""} ${e?"Instead received: "+e:"Received empty response."}`,{cause:i})}return r}async function Ts(e,t,r,i={},s){const h=await Cs(e,["versions"],null,{...s,...Yu,fullMetadata:!0,...i.registry?{registry:i.registry,silent:!0}:null});if(h.versions){const a=Object.keys(h.versions),n=Je.default.minSatisfying(a,t),l=Je.default.maxSatisfying(a,r);if(n&&l&&h.versions[n]._npmUser&&h.versions[l]._npmUser)return h.versions[n]._npmUser?.name!==h.versions[l]._npmUser?.name}return!1}var ki=e=>!!(e&&(e.name||e.engines||e.version||e.versions));xt.mockFetchUpgradedPackument=e=>(t,r,i,s)=>{const h=typeof e=="function"?e(s)?.[t]:typeof e=="string"||ki(e)?e:e[t],a=ki(h)?h.version:h;if(!a)throw new Error(`fetchUpgradedPackument is mocked, but no mock version was supplied for ${t}. Make sure that all dependencies are mocked. `);const n=ki(h)&&h.time?.[a]||new Date().toISOString(),l={name:t,"dist-tags":{[s.distTag||"latest"]:a},engines:{node:""},time:{[a]:n},version:a,versions:{},...ki(h)?h:null},{versions:u,...f}=l;return Promise.resolve({...l,versions:{...ki(h)&&h.versions||{[a]:f}}})};var Vw=(0,Cr.default)(({npmConfigLocal:e,npmConfigUser:t,npmConfigWorkspaceProject:r},i)=>{const s=i.packageFile?We.default.join(i.packageFile,"../.npmrc"):null,h=i.packageFile?xt.findNpmConfig(s||void 0):null,a=i.cwd?We.default.join(i.cwd,".npmrc"):null,n=i.cwd?xt.findNpmConfig(a):null;if(r&&Object.keys(r).length>0){Me(i,`
|
|
462
462
|
npm config (workspace project):`,"verbose");const{cache:u,...f}=r;dr(i,f,"verbose")}if(t&&Object.keys(t).length>0){Me(i,`
|
|
463
463
|
npm config (user):`,"verbose");const{cache:u,...f}=t;dr(i,f,"verbose")}if(e&&Object.keys(e).length>0){Me(i,`
|
|
464
464
|
npm config (local override):`,"verbose");const{cache:u,...f}=e;dr(i,f,"verbose")}if(h&&Object.keys(h).length>0){Me(i,`
|
|
465
465
|
npm config (project: ${s}):`,"verbose");const{cache:u,...f}=h;dr(i,f,"verbose")}if(n&&Object.keys(n).length>0){Me(i,`
|
|
466
466
|
npm config (cwd: ${a}):`,"verbose");const{cache:u,...f}=n;dr(i,f,"verbose")}const l={...r,...t,...e,...h,...n,...i.registry?{registry:i.registry,silent:!0}:null,...i.timeout?{timeout:i.timeout}:null};if(r||e||h||n){Me(i,`
|
|
467
|
-
merged npm config:`,"verbose");const{cache:u,...f}=l;dr(i,f,"verbose")}return l});async function jd(e,t,r,i,s=0,h,a){if(process.env.STUB_VERSIONS){const o=JSON.parse(process.env.STUB_VERSIONS);return xt.mockFetchUpgradedPackument(o)(e,t,r,i)}if(Pd(r))return Promise.resolve({});const n=i.format?.includes("time")&&!t.includes("time")?[...t,"time"]:t,l=n.includes("time"),u=Vw({npmConfigUser:{...Yu,fullMetadata:l},npmConfigLocal:h,npmConfigWorkspaceProject:a},i);let f;try{const o=i.distTag||"latest";f=await Cs(e,Array.from(new Set(["dist-tags",...t,...i.deprecated?[]:["deprecated","versions"],...i.enginesNode?["engines","versions"]:[]])),l?null:o,u)}catch(o){if(i.retry&&++s<=i.retry)return jd(e,n,r,i,s,h);throw o}return f}xt.fetchUpgradedPackumentMemo=(0,Cr.default)(jd,{serializer:(([e,t,r,i,s,h,a])=>{const{packageFile:n,...l}=i;return JSON.stringify([e,t,Pd(r),l,s,h,a])})});async function Rs(e,t={},r={},i={}){const{stdout:s}=await ir("npm",[...t.global?["--global"]:[],...t.prefix?[`--prefix=${t.prefix}`]:[],"--json",...Array.isArray(e)?e:[e]],r,i);return s}async function Ud(e){if(e.prefix)return Promise.resolve(e.prefix);let t;try{const{stdout:r}=await ir("npm",["config","get","prefix"]);t=r}catch(r){Me(e,"Error executing `npm config get prefix`. Caught and ignored. Unsolved: https://github.com/raineorshine/npm-check-updates/issues/703. ERROR: "+(r.message||r||"").toString(),"verbose","error")}return e.global&&t?.match("Cellar")?"/usr/local":process.platform==="win32"&&e.global&&!process.env.prefix?t?t.trim():`${process.env.AppData}\\npm`:void 0}var gn=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version).sort(ku).at(-1)||null}},Ku=async(e,t,r)=>{const i=["view",`${e}@${t}`,"peerDependencies"],s=await Rs(i,{},{rejectOnError:!1},r);return s?ci(s,{command:[...i,"--json"].join(" ")}):{}},Os=async(e,t,r={},i)=>(await Cs(e,["engines"],null,{...i,...Yu,...r.registry?{registry:r.registry,silent:!0}:null},t)).engines||{},Hd=async(e={})=>{const t=ci(await Rs(["ls","--depth=0"],{...e.global?{global:!0}:null,...e.prefix?{prefix:e.prefix}:null},{rejectOnError:!1},{...e.cwd?{cwd:e.cwd}:null}),{command:`npm${process.platform==="win32"?".cmd":""} ls --json${e.global?" --global":""}`}).dependencies;return at(t,(r,i)=>({[r]:i.version||i.required?.version}))},vn=async(e,t,r={},i,s)=>{const h=["dist-tags"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.["dist-tags"]?.[r.distTag||"latest"],l=a?.versions?a.versions?.[n]:{name:e,version:n},u=Di(l,a);if(l&&mn(r)(u))return{version:l.version,...a?.time?.[n]?{time:a.time[n]}:null};if(r.cooldown){if(n&&l&&!Wu(u,r.cooldown)){const f=a?.time?.[n];Me(r,`Skipping ${e}@${n} due to cooldown${f?` (published ${f})`:""}.`,"verbose")}return{cooldown:!0}}return r.distTag&&r.distTag!=="latest"?{}:gn(e,t,r,i,s)},Is=async(e,t,r={},i,s)=>vn(e,t,{...r,distTag:"latest"},i,s),ks=async(e,t,r={},i,s)=>{const h=await xt.fetchUpgradedPackumentMemo(e,["time","versions"],t,r,0,i,s),a=at(h?.versions||{},(u,f)=>Md(f,r.nodeEngineVersion)?{[f.version]:!0}:null),n=Fr(h?.time||{},u=>a[u]&&(r.pre!==!1||!un(u))),l=ws(Object.entries(n),u=>u[1]).map(([u])=>u);return r.cooldown?{version:l.filter(u=>Wu(Di(h.versions[u],h),r.cooldown)).at(-1)}:{version:l.at(-1)}},Ls=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Lu(Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version),t,"minor")}},Fs=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Lu(Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version),t,"patch")}},Ns=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;if(Ww(t))return{version:null};const l=Object.values(n||{}).filter(u=>mn(r)(Di(u,a))).map(u=>u.version);return{version:
|
|
467
|
+
merged npm config:`,"verbose");const{cache:u,...f}=l;dr(i,f,"verbose")}return l});async function jd(e,t,r,i,s=0,h,a){if(process.env.STUB_VERSIONS){const o=JSON.parse(process.env.STUB_VERSIONS);return xt.mockFetchUpgradedPackument(o)(e,t,r,i)}if(Pd(r))return Promise.resolve({});const n=i.format?.includes("time")&&!t.includes("time")?[...t,"time"]:t,l=n.includes("time"),u=Vw({npmConfigUser:{...Yu,fullMetadata:l},npmConfigLocal:h,npmConfigWorkspaceProject:a},i);let f;try{const o=i.distTag||"latest";f=await Cs(e,Array.from(new Set(["dist-tags",...t,...i.deprecated?[]:["deprecated","versions"],...i.enginesNode?["engines","versions"]:[]])),l?null:o,u)}catch(o){if(i.retry&&++s<=i.retry)return jd(e,n,r,i,s,h);throw o}return f}xt.fetchUpgradedPackumentMemo=(0,Cr.default)(jd,{serializer:(([e,t,r,i,s,h,a])=>{const{packageFile:n,...l}=i;return JSON.stringify([e,t,Pd(r),l,s,h,a])})});async function Rs(e,t={},r={},i={}){const{stdout:s}=await ir("npm",[...t.global?["--global"]:[],...t.prefix?[`--prefix=${t.prefix}`]:[],"--json",...Array.isArray(e)?e:[e]],r,i);return s}async function Ud(e){if(e.prefix)return Promise.resolve(e.prefix);let t;try{const{stdout:r}=await ir("npm",["config","get","prefix"]);t=r}catch(r){Me(e,"Error executing `npm config get prefix`. Caught and ignored. Unsolved: https://github.com/raineorshine/npm-check-updates/issues/703. ERROR: "+(r.message||r||"").toString(),"verbose","error")}return e.global&&t?.match("Cellar")?"/usr/local":process.platform==="win32"&&e.global&&!process.env.prefix?t?t.trim():`${process.env.AppData}\\npm`:void 0}var gn=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version).sort(ku).at(-1)||null}},Ku=async(e,t,r)=>{const i=["view",`${e}@${t}`,"peerDependencies"],s=await Rs(i,{},{rejectOnError:!1},r);return s?ci(s,{command:[...i,"--json"].join(" ")}):{}},Os=async(e,t,r={},i)=>(await Cs(e,["engines"],null,{...i,...Yu,...r.registry?{registry:r.registry,silent:!0}:null},t)).engines||{},Hd=async(e={})=>{const t=ci(await Rs(["ls","--depth=0"],{...e.global?{global:!0}:null,...e.prefix?{prefix:e.prefix}:null},{rejectOnError:!1},{...e.cwd?{cwd:e.cwd}:null}),{command:`npm${process.platform==="win32"?".cmd":""} ls --json${e.global?" --global":""}`}).dependencies;return at(t,(r,i)=>({[r]:i.version||i.required?.version}))},vn=async(e,t,r={},i,s)=>{const h=["dist-tags"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.["dist-tags"]?.[r.distTag||"latest"],l=a?.versions?a.versions?.[n]:{name:e,version:n},u=Di(l,a);if(l&&mn(r)(u))return{version:l.version,...a?.time?.[n]?{time:a.time[n]}:null};if(r.cooldown){if(n&&l&&!Wu(u,r.cooldown)){const f=a?.time?.[n];Me(r,`Skipping ${e}@${n} due to cooldown${f?` (published ${f})`:""}.`,"verbose")}return{cooldown:!0}}return r.distTag&&r.distTag!=="latest"?{}:gn(e,t,r,i,s)},Is=async(e,t,r={},i,s)=>vn(e,t,{...r,distTag:"latest"},i,s),ks=async(e,t,r={},i,s)=>{const h=await xt.fetchUpgradedPackumentMemo(e,["time","versions"],t,r,0,i,s),a=at(h?.versions||{},(u,f)=>Md(f,r.nodeEngineVersion)?{[f.version]:!0}:null),n=Fr(h?.time||{},u=>a[u]&&(r.pre!==!1||!un(u))),l=ws(Object.entries(n),u=>u[1]).map(([u])=>u);return r.cooldown?{version:l.filter(u=>Wu(Di(h.versions[u],h),r.cooldown)).at(-1)}:{version:l.at(-1)}},Ls=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Lu(Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version),t,"minor")}},Fs=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;return{version:Lu(Object.values(n||{}).filter(l=>mn(r)(Di(l,a))).map(l=>l.version),t,"patch")}},Ns=async(e,t,r={},i,s)=>{const h=["versions"];r.cooldown&&h.push("time");const a=await xt.fetchUpgradedPackumentMemo(e,h,t,r,0,i,s),n=a?.versions;if(Ww(t))return{version:null};const l=Object.values(n||{}).filter(u=>mn(r)(Di(u,a))).map(u=>u.version);return{version:Je.default.maxSatisfying(l,t)}},Yw=I.__exportAll({default:()=>Zu,defaultPrefix:()=>Kw,distTag:()=>vn,getEngines:()=>Os,getPeerDependencies:()=>Ku,greatest:()=>gn,latest:()=>Is,list:()=>Zw,minor:()=>Ls,newest:()=>ks,packageAuthorChanged:()=>Ts,patch:()=>Fs,semver:()=>Ns});async function Zu(e,t={},r={},i={}){return(0,xr.default)("bun",[...t.global?["--global"]:[],...t.prefix?[`--prefix=${t.prefix}`]:[],...Array.isArray(e)?e:[e]],r,i)}var Kw=async e=>e.global?e.prefix||process.env.BUN_INSTALL||We.default.dirname((await(0,xr.default)("bun",["pm","-g","bin"])).stdout):void 0,Zw=async(e={})=>{const{stdout:t}=await Zu(["pm","ls"],{...e.global?{global:!0}:null,...e.prefix?{prefix:e.prefix}:null},{rejectOnError:!1},{env:{...process.env,NO_COLOR:"1"},...e.cwd?{cwd:e.cwd}:null});return at((0,ou.stripVTControlCharacters)(t).split(`
|
|
468
468
|
`),r=>{const i=r.match(/.* (.+?)@(.+)/);if(i){const[,s,h]=i;return{[s]:h}}return null})},et=I.__commonJSMin((e=>{var t=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),i=Symbol.for("yaml.map"),s=Symbol.for("yaml.pair"),h=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),n=Symbol.for("yaml.node.type"),l=v=>!!v&&typeof v=="object"&&v[n]===t,u=v=>!!v&&typeof v=="object"&&v[n]===r,f=v=>!!v&&typeof v=="object"&&v[n]===i,o=v=>!!v&&typeof v=="object"&&v[n]===s,c=v=>!!v&&typeof v=="object"&&v[n]===h,d=v=>!!v&&typeof v=="object"&&v[n]===a;function p(v){if(v&&typeof v=="object")switch(v[n]){case i:case a:return!0}return!1}function g(v){if(v&&typeof v=="object")switch(v[n]){case t:case i:case h:case a:return!0}return!1}var m=v=>(c(v)||p(v))&&!!v.anchor;e.ALIAS=t,e.DOC=r,e.MAP=i,e.NODE_TYPE=n,e.PAIR=s,e.SCALAR=h,e.SEQ=a,e.hasAnchor=m,e.isAlias=l,e.isCollection=p,e.isDocument=u,e.isMap=f,e.isNode=g,e.isPair=o,e.isScalar=c,e.isSeq=d})),xs=I.__commonJSMin((e=>{var t=et(),r=Symbol("break visit"),i=Symbol("skip children"),s=Symbol("remove node");function h(c,d){const p=u(d);t.isDocument(c)?a(null,c.contents,p,Object.freeze([c]))===s&&(c.contents=null):a(null,c,p,Object.freeze([]))}h.BREAK=r,h.SKIP=i,h.REMOVE=s;function a(c,d,p,g){const m=f(c,d,p,g);if(t.isNode(m)||t.isPair(m))return o(c,g,m),a(c,m,p,g);if(typeof m!="symbol"){if(t.isCollection(d)){g=Object.freeze(g.concat(d));for(let v=0;v<d.items.length;++v){const y=a(v,d.items[v],p,g);if(typeof y=="number")v=y-1;else{if(y===r)return r;y===s&&(d.items.splice(v,1),v-=1)}}}else if(t.isPair(d)){g=Object.freeze(g.concat(d));const v=a("key",d.key,p,g);if(v===r)return r;v===s&&(d.key=null);const y=a("value",d.value,p,g);if(y===r)return r;y===s&&(d.value=null)}}return m}async function n(c,d){const p=u(d);t.isDocument(c)?await l(null,c.contents,p,Object.freeze([c]))===s&&(c.contents=null):await l(null,c,p,Object.freeze([]))}n.BREAK=r,n.SKIP=i,n.REMOVE=s;async function l(c,d,p,g){const m=await f(c,d,p,g);if(t.isNode(m)||t.isPair(m))return o(c,g,m),l(c,m,p,g);if(typeof m!="symbol"){if(t.isCollection(d)){g=Object.freeze(g.concat(d));for(let v=0;v<d.items.length;++v){const y=await l(v,d.items[v],p,g);if(typeof y=="number")v=y-1;else{if(y===r)return r;y===s&&(d.items.splice(v,1),v-=1)}}}else if(t.isPair(d)){g=Object.freeze(g.concat(d));const v=await l("key",d.key,p,g);if(v===r)return r;v===s&&(d.key=null);const y=await l("value",d.value,p,g);if(y===r)return r;y===s&&(d.value=null)}}return m}function u(c){return typeof c=="object"&&(c.Collection||c.Node||c.Value)?Object.assign({Alias:c.Node,Map:c.Node,Scalar:c.Node,Seq:c.Node},c.Value&&{Map:c.Value,Scalar:c.Value,Seq:c.Value},c.Collection&&{Map:c.Collection,Seq:c.Collection},c):c}function f(c,d,p,g){if(typeof p=="function")return p(c,d,g);if(t.isMap(d))return p.Map?.(c,d,g);if(t.isSeq(d))return p.Seq?.(c,d,g);if(t.isPair(d))return p.Pair?.(c,d,g);if(t.isScalar(d))return p.Scalar?.(c,d,g);if(t.isAlias(d))return p.Alias?.(c,d,g)}function o(c,d,p){const g=d[d.length-1];if(t.isCollection(g))g.items[c]=p;else if(t.isPair(g))c==="key"?g.key=p:g.value=p;else if(t.isDocument(g))g.contents=p;else{const m=t.isAlias(g)?"alias":"scalar";throw new Error(`Cannot replace node with ${m} parent`)}}e.visit=h,e.visitAsync=n})),qd=I.__commonJSMin((e=>{var t=et(),r=xs(),i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},s=a=>a.replace(/[!,[\]{}]/g,n=>i[n]),h=class or{constructor(n,l){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},or.defaultYaml,n),this.tags=Object.assign({},or.defaultTags,l)}clone(){const n=new or(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){const n=new or(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:or.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},or.defaultTags);break}return n}add(n,l){this.atNextDocument&&(this.yaml={explicit:or.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},or.defaultTags),this.atNextDocument=!1);const u=n.trim().split(/[ \t]+/),f=u.shift();switch(f){case"%TAG":{if(u.length!==2&&(l(0,"%TAG directive should contain exactly two parts"),u.length<2))return!1;const[o,c]=u;return this.tags[o]=c,!0}case"%YAML":{if(this.yaml.explicit=!0,u.length!==1)return l(0,"%YAML directive should contain exactly one part"),!1;const[o]=u;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const c=/^\d+\.\d+$/.test(o);return l(6,`Unsupported YAML version ${o}`,c),!1}}default:return l(0,`Unknown directive ${f}`,!0),!1}}tagName(n,l){if(n==="!")return"!";if(n[0]!=="!")return l(`Not a valid tag: ${n}`),null;if(n[1]==="<"){const c=n.slice(2,-1);return c==="!"||c==="!!"?(l(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(n[n.length-1]!==">"&&l("Verbatim tags must end with a >"),c)}const[,u,f]=n.match(/^(.*!)([^!]*)$/s);f||l(`The ${n} tag has no suffix`);const o=this.tags[u];if(o)try{return o+decodeURIComponent(f)}catch(c){return l(String(c)),null}return u==="!"?n:(l(`Could not resolve tag: ${n}`),null)}tagString(n){for(const[l,u]of Object.entries(this.tags))if(n.startsWith(u))return l+s(n.substring(u.length));return n[0]==="!"?n:`!<${n}>`}toString(n){const l=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],u=Object.entries(this.tags);let f;if(n&&u.length>0&&t.isNode(n.contents)){const o={};r.visit(n.contents,(c,d)=>{t.isNode(d)&&d.tag&&(o[d.tag]=!0)}),f=Object.keys(o)}else f=[];for(const[o,c]of u)o==="!!"&&c==="tag:yaml.org,2002:"||(!n||f.some(d=>d.startsWith(c)))&&l.push(`%TAG ${o} ${c}`);return l.join(`
|
|
469
469
|
`)}};h.defaultYaml={explicit:!1,version:"1.2"},h.defaultTags={"!!":"tag:yaml.org,2002:"},e.Directives=h})),Xu=I.__commonJSMin((e=>{var t=et(),r=xs();function i(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const l=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(l)}return!0}function s(n){const l=new Set;return r.visit(n,{Value(u,f){f.anchor&&l.add(f.anchor)}}),l}function h(n,l){for(let u=1;;++u){const f=`${n}${u}`;if(!l.has(f))return f}}function a(n,l){const u=[],f=new Map;let o=null;return{onAnchor:c=>{u.push(c),o??(o=s(n));const d=h(l,o);return o.add(d),d},setAnchors:()=>{for(const c of u){const d=f.get(c);if(typeof d=="object"&&d.anchor&&(t.isScalar(d.node)||t.isCollection(d.node)))d.node.anchor=d.anchor;else{const p=new Error("Failed to resolve repeated object (this should not happen)");throw p.source=c,p}}},sourceObjects:f}}e.anchorIsValid=i,e.anchorNames=s,e.createNodeAnchors=a,e.findNewAnchor=h})),zd=I.__commonJSMin((e=>{function t(r,i,s,h){if(h&&typeof h=="object")if(Array.isArray(h))for(let a=0,n=h.length;a<n;++a){const l=h[a],u=t(r,h,String(a),l);u===void 0?delete h[a]:u!==l&&(h[a]=u)}else if(h instanceof Map)for(const a of Array.from(h.keys())){const n=h.get(a),l=t(r,h,a,n);l===void 0?h.delete(a):l!==n&&h.set(a,l)}else if(h instanceof Set)for(const a of Array.from(h)){const n=t(r,h,a,a);n===void 0?h.delete(a):n!==a&&(h.delete(a),h.add(n))}else for(const[a,n]of Object.entries(h)){const l=t(r,h,a,n);l===void 0?delete h[a]:l!==n&&(h[a]=l)}return r.call(i,s,h)}e.applyReviver=t})),Gr=I.__commonJSMin((e=>{var t=et();function r(i,s,h){if(Array.isArray(i))return i.map((a,n)=>r(a,String(n),h));if(i&&typeof i.toJSON=="function"){if(!h||!t.hasAnchor(i))return i.toJSON(s,h);const a={aliasCount:0,count:1,res:void 0};h.anchors.set(i,a),h.onCreate=l=>{a.res=l,delete h.onCreate};const n=i.toJSON(s,h);return h.onCreate&&h.onCreate(n),n}return typeof i=="bigint"&&!h?.keep?Number(i):i}e.toJS=r})),Qu=I.__commonJSMin((e=>{var t=zd(),r=et(),i=Gr(),s=class{constructor(h){Object.defineProperty(this,r.NODE_TYPE,{value:h})}clone(){const h=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(h.range=this.range.slice()),h}toJS(h,{mapAsMap:a,maxAliasCount:n,onAnchor:l,reviver:u}={}){if(!r.isDocument(h))throw new TypeError("A document argument is required");const f={anchors:new Map,doc:h,keep:!0,mapAsMap:a===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},o=i.toJS(this,"",f);if(typeof l=="function")for(const{count:c,res:d}of f.anchors.values())l(d,c);return typeof u=="function"?t.applyReviver(u,{"":o},"",o):o}};e.NodeBase=s})),$s=I.__commonJSMin((e=>{var t=Xu(),r=xs(),i=et(),s=Qu(),h=Gr(),a=class extends s.NodeBase{constructor(l){super(i.ALIAS),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l,u){let f;u?.aliasResolveCache?f=u.aliasResolveCache:(f=[],r.visit(l,{Node:(c,d)=>{(i.isAlias(d)||i.hasAnchor(d))&&f.push(d)}}),u&&(u.aliasResolveCache=f));let o;for(const c of f){if(c===this)break;c.anchor===this.source&&(o=c)}return o}toJSON(l,u){if(!u)return{source:this.source};const{anchors:f,doc:o,maxAliasCount:c}=u,d=this.resolve(o,u);if(!d){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let p=f.get(d);if(p||(h.toJS(d,null,u),p=f.get(d)),p?.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(c>=0&&(p.count+=1,p.aliasCount===0&&(p.aliasCount=n(o,d,f)),p.count*p.aliasCount>c))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return p.res}toString(l,u,f){const o=`*${this.source}`;if(l){if(t.anchorIsValid(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(c)}if(l.implicitKey)return`${o} `}return o}};function n(l,u,f){if(i.isAlias(u)){const o=u.resolve(l),c=f&&o&&f.get(o);return c?c.count*c.aliasCount:0}else if(i.isCollection(u)){let o=0;for(const c of u.items){const d=n(l,c,f);d>o&&(o=d)}return o}else if(i.isPair(u)){const o=n(l,u.key,f),c=n(l,u.value,f);return Math.max(o,c)}return 1}e.Alias=a})),St=I.__commonJSMin((e=>{var t=et(),r=Qu(),i=Gr(),s=a=>!a||typeof a!="function"&&typeof a!="object",h=class extends r.NodeBase{constructor(a){super(t.SCALAR),this.value=a}toJSON(a,n){return n?.keep?this.value:i.toJS(this.value,a,n)}toString(){return String(this.value)}};h.BLOCK_FOLDED="BLOCK_FOLDED",h.BLOCK_LITERAL="BLOCK_LITERAL",h.PLAIN="PLAIN",h.QUOTE_DOUBLE="QUOTE_DOUBLE",h.QUOTE_SINGLE="QUOTE_SINGLE",e.Scalar=h,e.isScalarValue=s})),Bs=I.__commonJSMin((e=>{var t=$s(),r=et(),i=St(),s="tag:yaml.org,2002:";function h(n,l,u){if(l){const f=u.filter(c=>c.tag===l),o=f.find(c=>!c.format)??f[0];if(!o)throw new Error(`Tag ${l} not found`);return o}return u.find(f=>f.identify?.(n)&&!f.format)}function a(n,l,u){if(r.isDocument(n)&&(n=n.contents),r.isNode(n))return n;if(r.isPair(n)){const y=u.schema[r.MAP].createNode?.(u.schema,null,u);return y.items.push(n),y}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:f,onAnchor:o,onTagObj:c,schema:d,sourceObjects:p}=u;let g;if(f&&n&&typeof n=="object"){if(g=p.get(n),g)return g.anchor??(g.anchor=o(n)),new t.Alias(g.anchor);g={anchor:null,node:null},p.set(n,g)}l?.startsWith("!!")&&(l=s+l.slice(2));let m=h(n,l,d.tags);if(!m){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const y=new i.Scalar(n);return g&&(g.node=y),y}m=n instanceof Map?d[r.MAP]:Symbol.iterator in Object(n)?d[r.SEQ]:d[r.MAP]}c&&(c(m),delete u.onTagObj);const v=m?.createNode?m.createNode(u.schema,n,u):typeof m?.nodeClass?.from=="function"?m.nodeClass.from(u.schema,n,u):new i.Scalar(n);return l?v.tag=l:m.default||(v.tag=m.tag),g&&(g.node=v),v}e.createNode=a})),el=I.__commonJSMin((e=>{var t=Bs(),r=et(),i=Qu();function s(n,l,u){let f=u;for(let o=l.length-1;o>=0;--o){const c=l[o];if(typeof c=="number"&&Number.isInteger(c)&&c>=0){const d=[];d[c]=f,f=d}else f=new Map([[c,f]])}return t.createNode(f,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}var h=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done,a=class extends i.NodeBase{constructor(n,l){super(n),Object.defineProperty(this,"schema",{value:l,configurable:!0,enumerable:!1,writable:!0})}clone(n){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(l.schema=n),l.items=l.items.map(u=>r.isNode(u)||r.isPair(u)?u.clone(n):u),this.range&&(l.range=this.range.slice()),l}addIn(n,l){if(h(n))this.add(l);else{const[u,...f]=n,o=this.get(u,!0);if(r.isCollection(o))o.addIn(f,l);else if(o===void 0&&this.schema)this.set(u,s(this.schema,f,l));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${f}`)}}deleteIn(n){const[l,...u]=n;if(u.length===0)return this.delete(l);const f=this.get(l,!0);if(r.isCollection(f))return f.deleteIn(u);throw new Error(`Expected YAML collection at ${l}. Remaining path: ${u}`)}getIn(n,l){const[u,...f]=n,o=this.get(u,!0);return f.length===0?!l&&r.isScalar(o)?o.value:o:r.isCollection(o)?o.getIn(f,l):void 0}hasAllNullValues(n){return this.items.every(l=>{if(!r.isPair(l))return!1;const u=l.value;return u==null||n&&r.isScalar(u)&&u.value==null&&!u.commentBefore&&!u.comment&&!u.tag})}hasIn(n){const[l,...u]=n;if(u.length===0)return this.has(l);const f=this.get(l,!0);return r.isCollection(f)?f.hasIn(u):!1}setIn(n,l){const[u,...f]=n;if(f.length===0)this.set(u,l);else{const o=this.get(u,!0);if(r.isCollection(o))o.setIn(f,l);else if(o===void 0&&this.schema)this.set(u,s(this.schema,f,l));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${f}`)}}};e.Collection=a,e.collectionFromPath=s,e.isEmptyPath=h})),Ms=I.__commonJSMin((e=>{var t=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function r(s,h){return/^\n+$/.test(s)?s.substring(1):h?s.replace(/^(?! *$)/gm,h):s}var i=(s,h,a)=>s.endsWith(`
|
|
470
470
|
`)?r(a,h):a.includes(`
|
|
@@ -603,7 +603,7 @@ ${c.comment}`:c.comment}this.doc.range[2]=c.offset;break}default:this.errors.pus
|
|
|
603
603
|
`)+1;for(;c!==0;)this.onNewLine(this.offset+c),c=this.source.indexOf(`
|
|
604
604
|
`,c)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(o){const c=o.items[o.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,c.value){const d="end"in c.value?c.value.end:void 0;(Array.isArray(d)?d[d.length-1]:void 0)?.type==="comment"?d?.push(this.sourceToken):o.items.push({start:[this.sourceToken]})}else c.sep?c.sep.push(this.sourceToken):c.start.push(this.sourceToken);return;case"space":case"comment":if(c.value)o.items.push({start:[this.sourceToken]});else if(c.sep)c.sep.push(this.sourceToken);else{if(this.atIndentedComment(c.start,o.indent)){const d=o.items[o.items.length-2]?.value?.end;if(Array.isArray(d)){Array.prototype.push.apply(d,c.start),d.push(this.sourceToken),o.items.pop();return}}c.start.push(this.sourceToken)}return}if(this.indent>=o.indent){const d=!this.onKeyLine&&this.indent===o.indent,p=d&&(c.sep||c.explicitKey)&&this.type!=="seq-item-ind";let g=[];if(p&&c.sep&&!c.value){const m=[];for(let v=0;v<c.sep.length;++v){const y=c.sep[v];switch(y.type){case"newline":m.push(v);break;case"space":break;case"comment":y.indent>o.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(g=c.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":p||c.value?(g.push(this.sourceToken),o.items.push({start:g}),this.onKeyLine=!0):c.sep?c.sep.push(this.sourceToken):c.start.push(this.sourceToken);return;case"explicit-key-ind":!c.sep&&!c.explicitKey?(c.start.push(this.sourceToken),c.explicitKey=!0):p||c.value?(g.push(this.sourceToken),o.items.push({start:g,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(c.explicitKey)if(c.sep)if(c.value)o.items.push({start:[],key:null,sep:[this.sourceToken]});else if(s(c.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:g,key:null,sep:[this.sourceToken]}]});else if(a(c.key)&&!s(c.sep,"newline")){const m=l(c.start),v=c.key,y=c.sep;y.push(this.sourceToken),delete c.key,delete c.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:v,sep:y}]})}else g.length>0?c.sep=c.sep.concat(g,this.sourceToken):c.sep.push(this.sourceToken);else if(s(c.start,"newline"))Object.assign(c,{key:null,sep:[this.sourceToken]});else{const m=l(c.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else c.sep?c.value||p?o.items.push({start:g,key:null,sep:[this.sourceToken]}):s(c.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):c.sep.push(this.sourceToken):Object.assign(c,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);p||c.value?(o.items.push({start:g,key:m,sep:[]}),this.onKeyLine=!0):c.sep?this.stack.push(m):(Object.assign(c,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(o);if(m){if(m.type==="block-seq"){if(!c.explicitKey&&c.sep&&!s(c.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else d&&o.items.push({start:g});this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(o){const c=o.items[o.items.length-1];switch(this.type){case"newline":if(c.value){const d="end"in c.value?c.value.end:void 0;(Array.isArray(d)?d[d.length-1]:void 0)?.type==="comment"?d?.push(this.sourceToken):o.items.push({start:[this.sourceToken]})}else c.start.push(this.sourceToken);return;case"space":case"comment":if(c.value)o.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(c.start,o.indent)){const d=o.items[o.items.length-2]?.value?.end;if(Array.isArray(d)){Array.prototype.push.apply(d,c.start),d.push(this.sourceToken),o.items.pop();return}}c.start.push(this.sourceToken)}return;case"anchor":case"tag":if(c.value||this.indent<=o.indent)break;c.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==o.indent)break;c.value||s(c.start,"seq-item-ind")?o.items.push({start:[this.sourceToken]}):c.start.push(this.sourceToken);return}if(this.indent>o.indent){const d=this.startBlockValue(o);if(d){this.stack.push(d);return}}yield*this.pop(),yield*this.step()}*flowCollection(o){const c=o.items[o.items.length-1];if(this.type==="flow-error-end"){let d;do yield*this.pop(),d=this.peek(1);while(d?.type==="flow-collection")}else if(o.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!c||c.sep?o.items.push({start:[this.sourceToken]}):c.start.push(this.sourceToken);return;case"map-value-ind":!c||c.value?o.items.push({start:[],key:null,sep:[this.sourceToken]}):c.sep?c.sep.push(this.sourceToken):Object.assign(c,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!c||c.value?o.items.push({start:[this.sourceToken]}):c.sep?c.sep.push(this.sourceToken):c.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const p=this.flowScalar(this.type);!c||c.value?o.items.push({start:[],key:p,sep:[]}):c.sep?this.stack.push(p):Object.assign(c,{key:p,sep:[]});return}case"flow-map-end":case"flow-seq-end":o.end.push(this.sourceToken);return}const d=this.startBlockValue(o);d?this.stack.push(d):(yield*this.pop(),yield*this.step())}else{const d=this.peek(2);if(d.type==="block-map"&&(this.type==="map-value-ind"&&d.indent===o.indent||this.type==="newline"&&!d.items[d.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&d.type!=="flow-collection"){const p=l(n(d));u(o);const g=o.end.splice(1,o.end.length);g.push(this.sourceToken);const m={type:"block-map",offset:o.offset,indent:o.indent,items:[{start:p,key:o,sep:g}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(o)}}flowScalar(o){if(this.onNewLine){let c=this.source.indexOf(`
|
|
605
605
|
`)+1;for(;c!==0;)this.onNewLine(this.offset+c),c=this.source.indexOf(`
|
|
606
|
-
`,c)+1}return{type:o,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(o){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const c=l(n(o));return c.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const c=l(n(o));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(o,c){return this.type!=="comment"||this.indent<=c?!1:o.every(d=>d.type==="newline"||d.type==="space")}*documentEnd(o){this.type!=="doc-mode"&&(o.end?o.end.push(this.sourceToken):o.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(o){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:o.end?o.end.push(this.sourceToken):o.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};e.Parser=f})),_S=I.__commonJSMin((e=>{var t=hp(),r=Hs(),i=qs(),s=Gd(),h=et(),a=dp(),n=pp();function l(d){const p=d.prettyErrors!==!1;return{lineCounter:d.lineCounter||p&&new a.LineCounter||null,prettyErrors:p}}function u(d,p={}){const{lineCounter:g,prettyErrors:m}=l(p),v=new n.Parser(g?.addNewLine),y=new t.Composer(p),w=Array.from(y.compose(v.parse(d)));if(m&&g)for(const _ of w)_.errors.forEach(i.prettifyError(d,g)),_.warnings.forEach(i.prettifyError(d,g));return w.length>0?w:Object.assign([],{empty:!0},y.streamInfo())}function f(d,p={}){const{lineCounter:g,prettyErrors:m}=l(p),v=new n.Parser(g?.addNewLine),y=new t.Composer(p);let w=null;for(const _ of y.compose(v.parse(d),!0,d.length))if(!w)w=_;else if(w.options.logLevel!=="silent"){w.errors.push(new i.YAMLParseError(_.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return m&&g&&(w.errors.forEach(i.prettifyError(d,g)),w.warnings.forEach(i.prettifyError(d,g))),w}function o(d,p,g){let m;typeof p=="function"?m=p:g===void 0&&p&&typeof p=="object"&&(g=p);const v=f(d,g);if(!v)return null;if(v.warnings.forEach(y=>s.warn(v.options.logLevel,y)),v.errors.length>0){if(v.options.logLevel!=="silent")throw v.errors[0];v.errors=[]}return v.toJS(Object.assign({reviver:m},g))}function c(d,p,g){let m=null;if(typeof p=="function"||Array.isArray(p)?m=p:g===void 0&&p&&(g=p),typeof g=="string"&&(g=g.length),typeof g=="number"){const v=Math.round(g);g=v<1?void 0:v>8?{indent:8}:{indent:v}}if(d===void 0){const{keepUndefined:v}=g??p??{};if(!v)return}return h.isDocument(d)&&!m?d.toString(g):new r.Document(d,m,g).toString(g)}e.parse=o,e.parseAllDocuments=u,e.parseDocument=f,e.stringify=c})),ES=I.__commonJSMin((e=>{var t=hp(),r=Hs(),i=np(),s=qs(),h=$s(),a=et(),n=Jr(),l=St(),u=Wr(),f=Vr(),o=sl(),c=fp(),d=dp(),p=pp(),g=_S(),m=xs();e.Composer=t.Composer,e.Document=r.Document,e.Schema=i.Schema,e.YAMLError=s.YAMLError,e.YAMLParseError=s.YAMLParseError,e.YAMLWarning=s.YAMLWarning,e.Alias=h.Alias,e.isAlias=a.isAlias,e.isCollection=a.isCollection,e.isDocument=a.isDocument,e.isMap=a.isMap,e.isNode=a.isNode,e.isPair=a.isPair,e.isScalar=a.isScalar,e.isSeq=a.isSeq,e.Pair=n.Pair,e.Scalar=l.Scalar,e.YAMLMap=u.YAMLMap,e.YAMLSeq=f.YAMLSeq,e.CST=o,e.Lexer=c.Lexer,e.LineCounter=d.LineCounter,e.Parser=p.Parser,e.parse=g.parse,e.parseAllDocuments=g.parseAllDocuments,e.parseDocument=g.parseDocument,e.stringify=g.stringify,e.visit=m.visit,e.visitAsync=m.visitAsync})),bS=I.__exportAll({default:()=>mp,defaultPrefix:()=>Ud,distTag:()=>AS,getEngines:()=>Os,getPeerDependencies:()=>Ku,greatest:()=>CS,latest:()=>TS,list:()=>DS,minor:()=>RS,newest:()=>OS,packageAuthorChanged:()=>Ts,patch:()=>IS,pnpmApi:()=>gp,semver:()=>kS}),zt=ES(),wS=(0,Cr.default)(async e=>{const t=await Zn("pnpm-workspace.yaml");if(!t)return{};const r=
|
|
606
|
+
`,c)+1}return{type:o,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(o){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const c=l(n(o));return c.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const c=l(n(o));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(o,c){return this.type!=="comment"||this.indent<=c?!1:o.every(d=>d.type==="newline"||d.type==="space")}*documentEnd(o){this.type!=="doc-mode"&&(o.end?o.end.push(this.sourceToken):o.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(o){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:o.end?o.end.push(this.sourceToken):o.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};e.Parser=f})),_S=I.__commonJSMin((e=>{var t=hp(),r=Hs(),i=qs(),s=Gd(),h=et(),a=dp(),n=pp();function l(d){const p=d.prettyErrors!==!1;return{lineCounter:d.lineCounter||p&&new a.LineCounter||null,prettyErrors:p}}function u(d,p={}){const{lineCounter:g,prettyErrors:m}=l(p),v=new n.Parser(g?.addNewLine),y=new t.Composer(p),w=Array.from(y.compose(v.parse(d)));if(m&&g)for(const _ of w)_.errors.forEach(i.prettifyError(d,g)),_.warnings.forEach(i.prettifyError(d,g));return w.length>0?w:Object.assign([],{empty:!0},y.streamInfo())}function f(d,p={}){const{lineCounter:g,prettyErrors:m}=l(p),v=new n.Parser(g?.addNewLine),y=new t.Composer(p);let w=null;for(const _ of y.compose(v.parse(d),!0,d.length))if(!w)w=_;else if(w.options.logLevel!=="silent"){w.errors.push(new i.YAMLParseError(_.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return m&&g&&(w.errors.forEach(i.prettifyError(d,g)),w.warnings.forEach(i.prettifyError(d,g))),w}function o(d,p,g){let m;typeof p=="function"?m=p:g===void 0&&p&&typeof p=="object"&&(g=p);const v=f(d,g);if(!v)return null;if(v.warnings.forEach(y=>s.warn(v.options.logLevel,y)),v.errors.length>0){if(v.options.logLevel!=="silent")throw v.errors[0];v.errors=[]}return v.toJS(Object.assign({reviver:m},g))}function c(d,p,g){let m=null;if(typeof p=="function"||Array.isArray(p)?m=p:g===void 0&&p&&(g=p),typeof g=="string"&&(g=g.length),typeof g=="number"){const v=Math.round(g);g=v<1?void 0:v>8?{indent:8}:{indent:v}}if(d===void 0){const{keepUndefined:v}=g??p??{};if(!v)return}return h.isDocument(d)&&!m?d.toString(g):new r.Document(d,m,g).toString(g)}e.parse=o,e.parseAllDocuments=u,e.parseDocument=f,e.stringify=c})),ES=I.__commonJSMin((e=>{var t=hp(),r=Hs(),i=np(),s=qs(),h=$s(),a=et(),n=Jr(),l=St(),u=Wr(),f=Vr(),o=sl(),c=fp(),d=dp(),p=pp(),g=_S(),m=xs();e.Composer=t.Composer,e.Document=r.Document,e.Schema=i.Schema,e.YAMLError=s.YAMLError,e.YAMLParseError=s.YAMLParseError,e.YAMLWarning=s.YAMLWarning,e.Alias=h.Alias,e.isAlias=a.isAlias,e.isCollection=a.isCollection,e.isDocument=a.isDocument,e.isMap=a.isMap,e.isNode=a.isNode,e.isPair=a.isPair,e.isScalar=a.isScalar,e.isSeq=a.isSeq,e.Pair=n.Pair,e.Scalar=l.Scalar,e.YAMLMap=u.YAMLMap,e.YAMLSeq=f.YAMLSeq,e.CST=o,e.Lexer=c.Lexer,e.LineCounter=d.LineCounter,e.Parser=p.Parser,e.parse=g.parse,e.parseAllDocuments=g.parseAllDocuments,e.parseDocument=g.parseDocument,e.stringify=g.stringify,e.visit=m.visit,e.visitAsync=m.visitAsync})),bS=I.__exportAll({default:()=>mp,defaultPrefix:()=>Ud,distTag:()=>AS,getEngines:()=>Os,getPeerDependencies:()=>Ku,greatest:()=>CS,latest:()=>TS,list:()=>DS,minor:()=>RS,newest:()=>OS,packageAuthorChanged:()=>Ts,patch:()=>IS,pnpmApi:()=>gp,semver:()=>kS}),zt=ES(),wS=(0,Cr.default)(async e=>{const t=await Zn("pnpm-workspace.yaml");if(!t)return{};const r=We.default.dirname(t),i=We.default.join(r,".npmrc");let s;try{s=await tt.default.readFile(i,"utf-8")}catch{return{}}Me(e,`
|
|
607
607
|
Using pnpm workspace config at ${i}:`,"verbose");const h=Vu(Ju.default.parse(s),r);return Me(e,h,"verbose"),h}),SS=(0,Cr.default)(async()=>{const e=await Zn("pnpm-workspace.yaml");if(!e)return null;let t;try{t=await tt.default.readFile(e,"utf-8")}catch{return null}let r;try{r=(0,zt.parse)(t)??{}}catch{return null}const i=r.minimumReleaseAge;if(typeof i!="number"||isNaN(i)||i<0)return null;const s=r.minimumReleaseAgeExclude;return{minimumReleaseAge:i,minimumReleaseAgeExclude:Array.isArray(s)?s.filter(h=>typeof h=="string"):[]}}),DS=async(e={})=>{if(!e.global)return Hd(e);const{stdout:t}=await ir("pnpm",["ls","-g","--json"]);return at(JSON.parse(t)[0].dependencies||{},(r,{version:i})=>({[r]:i}))},Yr=e=>async(t,r,i={})=>e(t,r,i,{},await wS(i)),AS=Yr(vn),CS=Yr(gn),TS=Yr(Is),RS=Yr(Ls),OS=Yr(ks),IS=Yr(Fs),kS=Yr(Ns);async function mp(e,t={},r,i){const{stdout:s}=await ir("pnpm",[...t.global?"global":[],...Array.isArray(e)?e:[e],...t.prefix?`--prefix=${t.prefix}`:[]],i,r);return s}var gp={getPnpmWorkspaceMinimumReleaseAge:SS};function vp(e){return typeof e>"u"||e===null}function LS(e){return typeof e=="object"&&e!==null}function FS(e){return Array.isArray(e)?e:vp(e)?[]:[e]}function NS(e,t){var r,i,s,h;if(t)for(h=Object.keys(t),r=0,i=h.length;r<i;r+=1)s=h[r],e[s]=t[s];return e}function xS(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function $S(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var wt={isNothing:vp,isObject:LS,toArray:FS,repeat:xS,isNegativeZero:$S,extend:NS};function yp(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
608
608
|
|
|
609
609
|
`+e.mark.snippet),i+" "+r):i}function Vi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=yp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vi.prototype=Object.create(Error.prototype);Vi.prototype.constructor=Vi;Vi.prototype.toString=function(t){return this.name+": "+yp(this,t)};var Nt=Vi;function da(e,t,r,i,s){var h="",a="",n=Math.floor(s/2)-1;return i-t>n&&(h=" ... ",t=i-n+h.length),r-i>n&&(a=" ...",r=i+n-a.length),{str:h+e.slice(t,r).replace(/\t/g,"→")+a,pos:i-t+h.length}}function pa(e,t){return wt.repeat(" ",t-e.length)+e}function BS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],s=[],h,a=-1;h=r.exec(e.buffer);)s.push(h.index),i.push(h.index+h[0].length),e.position<=h.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var n="",l,u,f=Math.min(e.line+t.linesAfter,s.length).toString().length,o=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=da(e.buffer,i[a-l],s[a-l],e.position-(i[a]-i[a-l]),o),n=wt.repeat(" ",t.indent)+pa((e.line-l+1).toString(),f)+" | "+u.str+`
|
|
@@ -637,10 +637,10 @@ Using pnpm workspace config at ${i}:`,"verbose");const h=Vu(Ju.default.parse(s),
|
|
|
637
637
|
`+e.slice(a+1):l+=e.slice(s),l.slice(1)}function bA(e){for(var t="",r=0,i,s=0;s<e.length;r>=65536?s+=2:s++)r=$i(e,s),i=It[r],!i&&Zi(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=i||fA(r);return t}function wA(e,t,r){var i="",s=e.tag,h,a,n;for(h=0,a=r.length;h<a;h+=1)n=r[h],e.replacer&&(n=e.replacer.call(r,String(h),n)),(hr(e,t,n,!1,!1)||typeof n>"u"&&hr(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=s,e.dump="["+i+"]"}function zc(e,t,r,i){var s="",h=e.tag,a,n,l;for(a=0,n=r.length;a<n;a+=1)l=r[a],e.replacer&&(l=e.replacer.call(r,String(a),l)),(hr(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&hr(e,t+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=Go(e,t)),e.dump&&Yi===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=h,e.dump=s||"[]"}function SA(e,t,r){var i="",s=e.tag,h=Object.keys(r),a,n,l,u,f;for(a=0,n=h.length;a<n;a+=1)f="",i!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=h[a],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),hr(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),hr(e,t,u,!1,!1)&&(f+=e.dump,i+=f));e.tag=s,e.dump="{"+i+"}"}function DA(e,t,r,i){var s="",h=e.tag,a=Object.keys(r),n,l,u,f,o,c;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Nt("sortKeys must be a boolean or a function");for(n=0,l=a.length;n<l;n+=1)c="",(!i||s!=="")&&(c+=Go(e,t)),u=a[n],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),hr(e,t+1,u,!0,!0,!0)&&(o=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,o&&(e.dump&&Yi===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,o&&(c+=Go(e,t)),hr(e,t+1,f,!0,o)&&(e.dump&&Yi===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,s+=c));e.tag=h,e.dump=s||"{}"}function Gc(e,t,r){var i,s=r?e.explicitTypes:e.implicitTypes,h,a,n,l;for(h=0,a=s.length;h<a;h+=1)if(n=s[h],(n.instanceOf||n.predicate)&&(!n.instanceOf||typeof t=="object"&&t instanceof n.instanceOf)&&(!n.predicate||n.predicate(t))){if(r?n.multi&&n.representName?e.tag=n.representName(t):e.tag=n.tag:e.tag="?",n.represent){if(l=e.styleMap[n.tag]||n.defaultStyle,Vp.call(n.represent)==="[object Function]")i=n.represent(t,l);else if(Yp.call(n.represent,l))i=n.represent[l](t,l);else throw new Nt("!<"+n.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}function hr(e,t,r,i,s,h,a){e.tag=null,e.dump=r,Gc(e,r,!1)||Gc(e,r,!0);var n=Vp.call(e.dump),l=i,u;i&&(i=e.flowLevel<0||e.flowLevel>t);var f=n==="[object Object]"||n==="[object Array]",o,c;if(f&&(o=e.duplicates.indexOf(r),c=o!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(s=!1),c&&e.usedDuplicates[o])e.dump="*ref_"+o;else{if(f&&c&&!e.usedDuplicates[o]&&(e.usedDuplicates[o]=!0),n==="[object Object]")i&&Object.keys(e.dump).length!==0?(DA(e,t,e.dump,s),c&&(e.dump="&ref_"+o+e.dump)):(SA(e,t,e.dump),c&&(e.dump="&ref_"+o+" "+e.dump));else if(n==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?zc(e,t-1,e.dump,s):zc(e,t,e.dump,s),c&&(e.dump="&ref_"+o+e.dump)):(wA(e,t,e.dump),c&&(e.dump="&ref_"+o+" "+e.dump));else if(n==="[object String]")e.tag!=="?"&&_A(e,e.dump,t,h,l);else{if(n==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Nt("unacceptable kind of an object to dump "+n)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function AA(e,t){var r=[],i=[],s,h;for(Wo(e,r,i),s=0,h=i.length;s<h;s+=1)t.duplicates.push(r[i[s]]);t.usedDuplicates=new Array(h)}function Wo(e,t,r){var i,s,h;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,h=e.length;s<h;s+=1)Wo(e[s],t,r);else for(i=Object.keys(e),s=0,h=i.length;s<h;s+=1)Wo(e[i[s]],t,r)}function CA(e,t){t=t||{};var r=new pA(t);r.noRefs||AA(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),hr(r,0,i,!0,!0)?r.dump+`
|
|
638
638
|
`:""}var TA={dump:CA};function hl(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var RA=Rt,OA=_p,IA=Sp,kA=Rp,LA=Op,FA=ol,NA=Wp.load,xA=Wp.loadAll,$A=TA.dump,BA=Nt,MA={binary:Np,float:Tp,map:wp,null:Dp,pairs:$p,set:Bp,timestamp:Lp,bool:Ap,int:Cp,merge:Fp,omap:xp,seq:bp,str:Ep},PA=hl("safeLoad","load"),jA=hl("safeLoadAll","loadAll"),UA=hl("safeDump","dump"),Xi={Type:RA,Schema:OA,FAILSAFE_SCHEMA:IA,JSON_SCHEMA:kA,CORE_SCHEMA:LA,DEFAULT_SCHEMA:FA,load:NA,loadAll:xA,dump:$A,YAMLException:BA,types:MA,safeLoad:PA,safeLoadAll:jA,safeDump:UA},HA=I.__commonJSMin(((e,t)=>{var r=require("stream").Transform;function i(s){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");s=s||{},r.call(this,{objectMode:!0}),this._memory="",this._emitInvalidLines=s.emitInvalidLines||!1}i.prototype=Object.create(r.prototype),i.prototype._handleLines=function(s,h){for(var a=0;a<s.length;a++)if(s[a]!==""){var n=null,l=null;try{l=JSON.parse(s[a])}catch(u){u.source=s[a],n=u}if(n)if(this._emitInvalidLines)this.emit("invalid-line",n);else return h(n);else this.push(l)}h(null)},i.prototype._transform=function(s,h,a){var n=(this._memory+s.toString()).split(`
|
|
639
639
|
`);this._memory=n.pop(),this._handleLines(n,a)},i.prototype._flush=function(s){if(!this._memory)return s(null);var h=this._memory;this._memory="",this._handleLines([h],s)},t.exports=i})),qA=I.__commonJSMin(((e,t)=>{var r=require("stream").Transform;function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");r.call(this,{objectMode:!0})}i.prototype=Object.create(r.prototype),i.prototype._transform=function(s,h,a){var n;try{n=JSON.stringify(s)}catch(l){return l.source=s,a(l)}a(null,n+`
|
|
640
|
-
`)},t.exports=i})),zA=I.__commonJSMin((e=>{var t=HA(),r=qA();e.parse=function(s){return new t(s)}})),GA=I.__exportAll({default:()=>pl,defaultPrefix:()=>YA,distTag:()=>ZA,getEngines:()=>sC,getPathToLookForYarnrc:()=>fl,getPeerDependencies:()=>nC,greatest:()=>XA,latest:()=>QA,list:()=>KA,minor:()=>eC,newest:()=>tC,npmAuthTokenKeyValue:()=>Vo,packageAuthorChanged:()=>aC,patch:()=>rC,semver:()=>iC,yarnApi:()=>om}),sm=I.__toESM(zA(),1),am=(e,t)=>e.replace(/\$\{([^:-]+)(?:(:)?-([^}]*))?\}/g,(r,i,s,h,a)=>t[i]||(h?a:"")),Vo=bu((e,t,r)=>{if(r.npmAuthToken){const i=r.npmRegistryServer||e[`@${t}:registry`];if(i){let s=i.replace(/^https?:/,"");return s.endsWith("/")&&(s=s.slice(0,-1)),{[`${s}/:_authToken`]:am(r.npmAuthToken,process.env)}}}return null}),Jc=(e,t)=>t.npmRegistryServer?{[`@${e}:registry`]:am(t.npmRegistryServer,process.env)}:null;async function fl(e,t=tt.default.readdir){if(e.global)return;const r=(await bf(e,t))?.directoryPath;if(r)return
|
|
640
|
+
`)},t.exports=i})),zA=I.__commonJSMin((e=>{var t=HA(),r=qA();e.parse=function(s){return new t(s)}})),GA=I.__exportAll({default:()=>pl,defaultPrefix:()=>YA,distTag:()=>ZA,getEngines:()=>sC,getPathToLookForYarnrc:()=>fl,getPeerDependencies:()=>nC,greatest:()=>XA,latest:()=>QA,list:()=>KA,minor:()=>eC,newest:()=>tC,npmAuthTokenKeyValue:()=>Vo,packageAuthorChanged:()=>aC,patch:()=>rC,semver:()=>iC,yarnApi:()=>om}),sm=I.__toESM(zA(),1),am=(e,t)=>e.replace(/\$\{([^:-]+)(?:(:)?-([^}]*))?\}/g,(r,i,s,h,a)=>t[i]||(h?a:"")),Vo=bu((e,t,r)=>{if(r.npmAuthToken){const i=r.npmRegistryServer||e[`@${t}:registry`];if(i){let s=i.replace(/^https?:/,"");return s.endsWith("/")&&(s=s.slice(0,-1)),{[`${s}/:_authToken`]:am(r.npmAuthToken,process.env)}}}return null}),Jc=(e,t)=>t.npmRegistryServer?{[`@${e}:registry`]:am(t.npmRegistryServer,process.env)}:null;async function fl(e,t=tt.default.readdir){if(e.global)return;const r=(await bf(e,t))?.directoryPath;if(r)return We.default.join(r,".yarnrc.yml")}var dl=(0,Cr.default)(async e=>{const t=await fl(e),r=We.default.join(gr.default.homedir(),".yarnrc.yml"),i=typeof t=="string"&&await zi(t),s=await zi(r),h=i?await tt.default.readFile(t,"utf-8"):"",a=s?await tt.default.readFile(r,"utf-8"):"",n=Xi.load(h),l=Xi.load(a);let u={...at(l?.npmScopes||{},Jc),...at(n?.npmScopes||{},Jc)};return u={...u,...at(l?.npmScopes||{},Vo(u)),...at(n?.npmScopes||{},Vo(u))},i&&(Me(e,`
|
|
641
641
|
Using local yarn config at ${t}:`,"verbose"),Me(e,n,"verbose")),s&&(Me(e,`
|
|
642
642
|
Using user yarn config at ${r}:`,"verbose"),Me(e,n,"verbose")),Object.keys(u)&&(Me(e,`
|
|
643
|
-
Merged yarn config in npm format:`,"verbose"),Me(e,u,"verbose")),u}),JA=(0,Cr.default)(async e=>{const t=await fl(e),r=Je.default.join(gr.default.homedir(),".yarnrc.yml");for(const i of[t,r]){if(!i||!await zi(i))continue;let s;try{s=await tt.default.readFile(i,"utf-8")}catch{continue}let h;try{h=Xi.load(s)??{}}catch{continue}const{npmMinimalAgeGate:a}=h;if(typeof a!="number"||isNaN(a)||a<=0)continue;const n=h.npmPreapprovedPackages;return{npmMinimalAgeGate:a,npmPreapprovedPackages:Array.isArray(n)?n.filter(l=>typeof l=="string"):[]}}return null});function WA(e){return new Promise((t,r)=>{const i={},s=sm.parse();s.on("data",h=>{if(h.type==="info"&&!h.data.match(/^Visit/)){const[,a,n]=h.data.match(/"(@?.*)@(.*)"/)||[];i[a]={version:n,from:a}}else h.type==="error"&&r(new Error(h.data))}),s.on("end",()=>{t({dependencies:i})}),s.on("error",r),s.write(e),s.end()})}function VA(e){return new Promise((t,r)=>{const i=sm.parse();let s=!1;i.on("data",h=>{s||(s=!0,t(JSON.stringify(h)))}),i.on("error",r),i.write(e),i.end()})}async function pl(e,t={},r={},i={}){const{stdout:s}=await ir("yarn",[...t.global?["global"]:[],...t.prefix?[`--prefix=${t.prefix}`]:[],"--depth=0","--json","--no-progress",...Array.isArray(e)?e:[e]],r,i);return s}async function YA(e){if(e.prefix)return Promise.resolve(e.prefix);const{stdout:t}=await ir("yarn",["global","dir"]).catch(()=>({stdout:null}));return e.global&&t&&t.match("Cellar")?"/usr/local":process.platform==="win32"&&e.global&&!process.env.prefix?t?t.trim():`${process.env.LOCALAPPDATA}\\Yarn\\Data\\global`:null}var KA=async(e={},t)=>at((await WA(await pl("list",e,{},{...e.cwd?{cwd:e.cwd}:{},...t}))).dependencies,(r,i)=>({[r]:i.version||i.required?.version})),Kr=e=>async(t,r,i={})=>e(t,r,i,await dl(i)),ZA=Kr(vn),XA=Kr(gn),QA=Kr(Is),eC=Kr(Ls),tC=Kr(ks),rC=Kr(Fs),iC=Kr(Ns),nC=async(e,t,r)=>{const{stdout:i}=await ir("yarn",["--version"],{rejectOnError:!1},r);if(i.startsWith("1")){const s=["--json","info",`${e}@${t}`,"peerDependencies"],{stdout:h}=await ir("yarn",s,{rejectOnError:!1},r);return h?ci(h,{command:s.join(" ")}).data||{}:{}}else{const s=["--json","npm","info",`${e}@${t}`,"--fields","peerDependencies"],{stdout:h}=await ir("yarn",s,{rejectOnError:!1},r);if(!h)return{};try{return ci(h,{command:s.join(" ")}).peerDependencies||{}}catch(a){try{const n=await VA(h);if(n)return ci(n,{command:s.join(" ")}).peerDependencies||{}}catch{}throw a}}},sC=async(e,t,r={})=>Os(e,t,r,await dl(r)),aC=async(e,t,r,i={})=>Ts(e,t,r,i,await dl(i)),om={getYarnMinimalAgeGate:JA};function Xe(e,t,{color:r=!0}={}){if(e.cli)Me(e,r?ge.red(t):t,null,"error"),process.exit(1);else throw new Error(t)}var ml=async(e,t)=>{let r,i;try{i=await tt.default.readFile(t,"utf-8"),r=JSON.parse(i)}catch{Xe(e,`Missing or invalid ${t}`)}return{name:void 0,pkg:r,pkgFile:i,filepath:t}},rL=Object.freeze({status:"aborted"});function ke(e,t,r){function i(n,l){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,l);const u=a.prototype,f=Object.keys(u);for(let o=0;o<f.length;o++){const c=f[o];c in n||(n[c]=u[c].bind(n))}}const s=r?.Parent??Object;class h extends s{}Object.defineProperty(h,"name",{value:e});function a(n){var l;const u=r?.Parent?new h:this;i(u,n),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:n=>r?.Parent&&n instanceof r.Parent?!0:n?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var hi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},um=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Yo={};function Er(e){return e&&Object.assign(Yo,e),Yo}function lm(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Ko(e,t){return typeof t=="bigint"?t.toString():t}function gl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}throw new Error("cached value already set")}}}function vl(e){return e==null}function yl(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var Wc=Symbol("evaluating");function it(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==Wc)return i===void 0&&(i=Wc,i=r()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Zr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Tr(...e){const t={};for(const r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function Vc(e){return JSON.stringify(e)}function oC(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var cm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function is(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var uC=gl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function yi(e){if(is(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(is(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function hm(e){return yi(e)?{...e}:Array.isArray(e)?[...e]:e}var lC=new Set(["string","number","symbol"]);function Js(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function qe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function cC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var iL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function hC(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return Rr(e,Tr(e._zod.def,{get shape(){const s={};for(const h in t){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(s[h]=r.shape[h])}return Zr(this,"shape",s),s},checks:[]}))}function fC(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return Rr(e,Tr(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const h in t){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete s[h]}return Zr(this,"shape",s),s},checks:[]}))}function dC(e,t){if(!yi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Rr(e,Tr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Zr(this,"shape",i),i}}))}function pC(e,t){if(!yi(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Rr(e,Tr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Zr(this,"shape",r),r}}))}function mC(e,t){return Rr(e,Tr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Zr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]}))}function gC(e,t,r){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return Rr(t,Tr(t._zod.def,{get shape(){const s=t._zod.def.shape,h={...s};if(r)for(const a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(h[a]=e?new e({type:"optional",innerType:s[a]}):s[a])}else for(const a in s)h[a]=e?new e({type:"optional",innerType:s[a]}):s[a];return Zr(this,"shape",h),h},checks:[]}))}function vC(e,t,r){return Rr(t,Tr(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const h in r){if(!(h in s))throw new Error(`Unrecognized key: "${h}"`);r[h]&&(s[h]=new e({type:"nonoptional",innerType:i[h]}))}else for(const h in i)s[h]=new e({type:"nonoptional",innerType:i[h]});return Zr(this,"shape",s),s}}))}function oi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ui(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Rn(e){return typeof e=="string"?e:e?.message}function br(e,t,r){const i={...e,path:e.path??[]};return e.message||(i.message=Rn(e.inst?._zod.def?.error?.(e))??Rn(t?.error?.(e))??Rn(r.customError?.(e))??Rn(r.localeError?.(e))??"Invalid input"),delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function _l(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Qi(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}var fm=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ko,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dm=ke("$ZodError",fm),pm=ke("$ZodError",fm,{Parent:Error});function yC(e,t=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:r}}function _C(e,t=r=>r.message){const r={_errors:[]},i=s=>{for(const h of s.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(a=>i({issues:a}));else if(h.code==="invalid_key")i({issues:h.issues});else if(h.code==="invalid_element")i({issues:h.issues});else if(h.path.length===0)r._errors.push(t(h));else{let a=r,n=0;for(;n<h.path.length;){const l=h.path[n];n!==h.path.length-1?a[l]=a[l]||{_errors:[]}:(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(h))),a=a[l],n++}}};return i(e),r}var El=e=>(t,r,i,s)=>{const h=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},h);if(a instanceof Promise)throw new hi;if(a.issues.length){const n=new(s?.Err??e)(a.issues.map(l=>br(l,h,Er())));throw cm(n,s?.callee),n}return a.value};var bl=e=>async(t,r,i,s)=>{const h=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},h);if(a instanceof Promise&&(a=await a),a.issues.length){const n=new(s?.Err??e)(a.issues.map(l=>br(l,h,Er())));throw cm(n,s?.callee),n}return a.value};var Ws=e=>(t,r,i)=>{const s=i?{...i,async:!1}:{async:!1},h=t._zod.run({value:r,issues:[]},s);if(h instanceof Promise)throw new hi;return h.issues.length?{success:!1,error:new(e??dm)(h.issues.map(a=>br(a,s,Er())))}:{success:!0,data:h.value}},EC=Ws(pm),Vs=e=>async(t,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let h=t._zod.run({value:r,issues:[]},s);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(a=>br(a,s,Er())))}:{success:!0,data:h.value}},bC=Vs(pm),wC=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return El(e)(t,r,s)};var SC=e=>(t,r,i)=>El(e)(t,r,i);var DC=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bl(e)(t,r,s)};var AC=e=>async(t,r,i)=>bl(e)(t,r,i);var CC=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ws(e)(t,r,s)};var TC=e=>(t,r,i)=>Ws(e)(t,r,i);var RC=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Vs(e)(t,r,s)};var OC=e=>async(t,r,i)=>Vs(e)(t,r,i);var IC=/^[cC][^\s-]{8,}$/,kC=/^[0-9a-z]+$/,LC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FC=/^[0-9a-vA-V]{20}$/,NC=/^[A-Za-z0-9]{27}$/,xC=/^[a-zA-Z0-9_-]{21}$/,$C=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,BC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Yc=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,MC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,PC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jC(){return new RegExp(PC,"u")}var UC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,HC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,GC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mm=/^[A-Za-z0-9_-]*$/,JC=/^\+[1-9]\d{6,14}$/,gm="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",WC=new RegExp(`^${gm}$`);function vm(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function VC(e){return new RegExp(`^${vm(e)}$`)}function YC(e){const t=vm({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${gm}T(?:${i})$`)}var KC=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ZC=/^-?\d+(?:\.\d+)?$/,XC=/^[^A-Z]*$/,QC=/^[^a-z]*$/,ar=ke("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),eT=ke("$ZodCheckMaxLength",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=t.maximum)return;const h=_l(s);i.issues.push({origin:h,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),tT=ke("$ZodCheckMinLength",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const h=_l(s);i.issues.push({origin:h,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),rT=ke("$ZodCheckLengthEquals",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=i=>{const s=i.value,h=s.length;if(h===t.length)return;const a=_l(s),n=h>t.length;i.issues.push({origin:a,...n?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ys=ke("$ZodCheckStringFormat",(e,t)=>{var r,i;ar.init(e,t),e._zod.onattach.push(s=>{const h=s._zod.bag;h.format=t.format,t.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),iT=ke("$ZodCheckRegex",(e,t)=>{Ys.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nT=ke("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=XC),Ys.init(e,t)}),sT=ke("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=QC),Ys.init(e,t)}),aT=ke("$ZodCheckIncludes",(e,t)=>{ar.init(e,t);const r=Js(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(s=>{const h=s._zod.bag;h.patterns??(h.patterns=new Set),h.patterns.add(i)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),oT=ke("$ZodCheckStartsWith",(e,t)=>{ar.init(e,t);const r=new RegExp(`^${Js(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),uT=ke("$ZodCheckEndsWith",(e,t)=>{ar.init(e,t);const r=new RegExp(`.*${Js(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),lT=ke("$ZodCheckOverwrite",(e,t)=>{ar.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),cT=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
643
|
+
Merged yarn config in npm format:`,"verbose"),Me(e,u,"verbose")),u}),JA=(0,Cr.default)(async e=>{const t=await fl(e),r=We.default.join(gr.default.homedir(),".yarnrc.yml");for(const i of[t,r]){if(!i||!await zi(i))continue;let s;try{s=await tt.default.readFile(i,"utf-8")}catch{continue}let h;try{h=Xi.load(s)??{}}catch{continue}const{npmMinimalAgeGate:a}=h;if(typeof a!="number"||isNaN(a)||a<=0)continue;const n=h.npmPreapprovedPackages;return{npmMinimalAgeGate:a,npmPreapprovedPackages:Array.isArray(n)?n.filter(l=>typeof l=="string"):[]}}return null});function WA(e){return new Promise((t,r)=>{const i={},s=sm.parse();s.on("data",h=>{if(h.type==="info"&&!h.data.match(/^Visit/)){const[,a,n]=h.data.match(/"(@?.*)@(.*)"/)||[];i[a]={version:n,from:a}}else h.type==="error"&&r(new Error(h.data))}),s.on("end",()=>{t({dependencies:i})}),s.on("error",r),s.write(e),s.end()})}function VA(e){return new Promise((t,r)=>{const i=sm.parse();let s=!1;i.on("data",h=>{s||(s=!0,t(JSON.stringify(h)))}),i.on("error",r),i.write(e),i.end()})}async function pl(e,t={},r={},i={}){const{stdout:s}=await ir("yarn",[...t.global?["global"]:[],...t.prefix?[`--prefix=${t.prefix}`]:[],"--depth=0","--json","--no-progress",...Array.isArray(e)?e:[e]],r,i);return s}async function YA(e){if(e.prefix)return Promise.resolve(e.prefix);const{stdout:t}=await ir("yarn",["global","dir"]).catch(()=>({stdout:null}));return e.global&&t&&t.match("Cellar")?"/usr/local":process.platform==="win32"&&e.global&&!process.env.prefix?t?t.trim():`${process.env.LOCALAPPDATA}\\Yarn\\Data\\global`:null}var KA=async(e={},t)=>at((await WA(await pl("list",e,{},{...e.cwd?{cwd:e.cwd}:{},...t}))).dependencies,(r,i)=>({[r]:i.version||i.required?.version})),Kr=e=>async(t,r,i={})=>e(t,r,i,await dl(i)),ZA=Kr(vn),XA=Kr(gn),QA=Kr(Is),eC=Kr(Ls),tC=Kr(ks),rC=Kr(Fs),iC=Kr(Ns),nC=async(e,t,r)=>{const{stdout:i}=await ir("yarn",["--version"],{rejectOnError:!1},r);if(i.startsWith("1")){const s=["--json","info",`${e}@${t}`,"peerDependencies"],{stdout:h}=await ir("yarn",s,{rejectOnError:!1},r);return h?ci(h,{command:s.join(" ")}).data||{}:{}}else{const s=["--json","npm","info",`${e}@${t}`,"--fields","peerDependencies"],{stdout:h}=await ir("yarn",s,{rejectOnError:!1},r);if(!h)return{};try{return ci(h,{command:s.join(" ")}).peerDependencies||{}}catch(a){try{const n=await VA(h);if(n)return ci(n,{command:s.join(" ")}).peerDependencies||{}}catch{}throw a}}},sC=async(e,t,r={})=>Os(e,t,r,await dl(r)),aC=async(e,t,r,i={})=>Ts(e,t,r,i,await dl(i)),om={getYarnMinimalAgeGate:JA};function Xe(e,t,{color:r=!0}={}){if(e.cli)Me(e,r?ge.red(t):t,null,"error"),process.exit(1);else throw new Error(t)}var ml=async(e,t)=>{let r,i;try{i=await tt.default.readFile(t,"utf-8"),r=JSON.parse(i)}catch{Xe(e,`Missing or invalid ${t}`)}return{name:void 0,pkg:r,pkgFile:i,filepath:t}},rL=Object.freeze({status:"aborted"});function ke(e,t,r){function i(n,l){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,l);const u=a.prototype,f=Object.keys(u);for(let o=0;o<f.length;o++){const c=f[o];c in n||(n[c]=u[c].bind(n))}}const s=r?.Parent??Object;class h extends s{}Object.defineProperty(h,"name",{value:e});function a(n){var l;const u=r?.Parent?new h:this;i(u,n),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:n=>r?.Parent&&n instanceof r.Parent?!0:n?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var hi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},um=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Yo={};function Er(e){return e&&Object.assign(Yo,e),Yo}function lm(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Ko(e,t){return typeof t=="bigint"?t.toString():t}function gl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}throw new Error("cached value already set")}}}function vl(e){return e==null}function yl(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var Wc=Symbol("evaluating");function it(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==Wc)return i===void 0&&(i=Wc,i=r()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Zr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Tr(...e){const t={};for(const r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function Vc(e){return JSON.stringify(e)}function oC(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var cm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function is(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var uC=gl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function yi(e){if(is(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(is(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function hm(e){return yi(e)?{...e}:Array.isArray(e)?[...e]:e}var lC=new Set(["string","number","symbol"]);function Js(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function qe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function cC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var iL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function hC(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return Rr(e,Tr(e._zod.def,{get shape(){const s={};for(const h in t){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(s[h]=r.shape[h])}return Zr(this,"shape",s),s},checks:[]}))}function fC(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return Rr(e,Tr(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const h in t){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete s[h]}return Zr(this,"shape",s),s},checks:[]}))}function dC(e,t){if(!yi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Rr(e,Tr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Zr(this,"shape",i),i}}))}function pC(e,t){if(!yi(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Rr(e,Tr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Zr(this,"shape",r),r}}))}function mC(e,t){return Rr(e,Tr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Zr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]}))}function gC(e,t,r){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return Rr(t,Tr(t._zod.def,{get shape(){const s=t._zod.def.shape,h={...s};if(r)for(const a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(h[a]=e?new e({type:"optional",innerType:s[a]}):s[a])}else for(const a in s)h[a]=e?new e({type:"optional",innerType:s[a]}):s[a];return Zr(this,"shape",h),h},checks:[]}))}function vC(e,t,r){return Rr(t,Tr(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const h in r){if(!(h in s))throw new Error(`Unrecognized key: "${h}"`);r[h]&&(s[h]=new e({type:"nonoptional",innerType:i[h]}))}else for(const h in i)s[h]=new e({type:"nonoptional",innerType:i[h]});return Zr(this,"shape",s),s}}))}function oi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ui(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Rn(e){return typeof e=="string"?e:e?.message}function br(e,t,r){const i={...e,path:e.path??[]};return e.message||(i.message=Rn(e.inst?._zod.def?.error?.(e))??Rn(t?.error?.(e))??Rn(r.customError?.(e))??Rn(r.localeError?.(e))??"Invalid input"),delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function _l(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Qi(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}var fm=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ko,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dm=ke("$ZodError",fm),pm=ke("$ZodError",fm,{Parent:Error});function yC(e,t=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:r}}function _C(e,t=r=>r.message){const r={_errors:[]},i=s=>{for(const h of s.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(a=>i({issues:a}));else if(h.code==="invalid_key")i({issues:h.issues});else if(h.code==="invalid_element")i({issues:h.issues});else if(h.path.length===0)r._errors.push(t(h));else{let a=r,n=0;for(;n<h.path.length;){const l=h.path[n];n!==h.path.length-1?a[l]=a[l]||{_errors:[]}:(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(h))),a=a[l],n++}}};return i(e),r}var El=e=>(t,r,i,s)=>{const h=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},h);if(a instanceof Promise)throw new hi;if(a.issues.length){const n=new(s?.Err??e)(a.issues.map(l=>br(l,h,Er())));throw cm(n,s?.callee),n}return a.value};var bl=e=>async(t,r,i,s)=>{const h=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},h);if(a instanceof Promise&&(a=await a),a.issues.length){const n=new(s?.Err??e)(a.issues.map(l=>br(l,h,Er())));throw cm(n,s?.callee),n}return a.value};var Ws=e=>(t,r,i)=>{const s=i?{...i,async:!1}:{async:!1},h=t._zod.run({value:r,issues:[]},s);if(h instanceof Promise)throw new hi;return h.issues.length?{success:!1,error:new(e??dm)(h.issues.map(a=>br(a,s,Er())))}:{success:!0,data:h.value}},EC=Ws(pm),Vs=e=>async(t,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let h=t._zod.run({value:r,issues:[]},s);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(a=>br(a,s,Er())))}:{success:!0,data:h.value}},bC=Vs(pm),wC=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return El(e)(t,r,s)};var SC=e=>(t,r,i)=>El(e)(t,r,i);var DC=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bl(e)(t,r,s)};var AC=e=>async(t,r,i)=>bl(e)(t,r,i);var CC=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ws(e)(t,r,s)};var TC=e=>(t,r,i)=>Ws(e)(t,r,i);var RC=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Vs(e)(t,r,s)};var OC=e=>async(t,r,i)=>Vs(e)(t,r,i);var IC=/^[cC][^\s-]{8,}$/,kC=/^[0-9a-z]+$/,LC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FC=/^[0-9a-vA-V]{20}$/,NC=/^[A-Za-z0-9]{27}$/,xC=/^[a-zA-Z0-9_-]{21}$/,$C=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,BC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Yc=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,MC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,PC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jC(){return new RegExp(PC,"u")}var UC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,HC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,GC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mm=/^[A-Za-z0-9_-]*$/,JC=/^\+[1-9]\d{6,14}$/,gm="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",WC=new RegExp(`^${gm}$`);function vm(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function VC(e){return new RegExp(`^${vm(e)}$`)}function YC(e){const t=vm({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${gm}T(?:${i})$`)}var KC=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ZC=/^-?\d+(?:\.\d+)?$/,XC=/^[^A-Z]*$/,QC=/^[^a-z]*$/,ar=ke("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),eT=ke("$ZodCheckMaxLength",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=t.maximum)return;const h=_l(s);i.issues.push({origin:h,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),tT=ke("$ZodCheckMinLength",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const h=_l(s);i.issues.push({origin:h,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),rT=ke("$ZodCheckLengthEquals",(e,t)=>{var r;ar.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!vl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=i=>{const s=i.value,h=s.length;if(h===t.length)return;const a=_l(s),n=h>t.length;i.issues.push({origin:a,...n?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ys=ke("$ZodCheckStringFormat",(e,t)=>{var r,i;ar.init(e,t),e._zod.onattach.push(s=>{const h=s._zod.bag;h.format=t.format,t.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),iT=ke("$ZodCheckRegex",(e,t)=>{Ys.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nT=ke("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=XC),Ys.init(e,t)}),sT=ke("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=QC),Ys.init(e,t)}),aT=ke("$ZodCheckIncludes",(e,t)=>{ar.init(e,t);const r=Js(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(s=>{const h=s._zod.bag;h.patterns??(h.patterns=new Set),h.patterns.add(i)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),oT=ke("$ZodCheckStartsWith",(e,t)=>{ar.init(e,t);const r=new RegExp(`^${Js(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),uT=ke("$ZodCheckEndsWith",(e,t)=>{ar.init(e,t);const r=new RegExp(`.*${Js(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),lT=ke("$ZodCheckOverwrite",(e,t)=>{ar.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),cT=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
644
644
|
`).filter(s=>s),r=Math.min(...t.map(s=>s.length-s.trimStart().length)),i=t.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const e=Function,t=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...t,r.join(`
|
|
645
645
|
`))}},hT={major:4,minor:3,patch:6},Et=ke("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hT;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const h of s._zod.onattach)h(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,n,l)=>{let u=oi(a),f;for(const o of n){if(o._zod.def.when){if(!o._zod.def.when(a))continue}else if(u)continue;const c=a.issues.length,d=o._zod.check(a);if(d instanceof Promise&&l?.async===!1)throw new hi;if(f||d instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await d,a.issues.length!==c&&(u||(u=oi(a,c)))});else{if(a.issues.length===c)continue;u||(u=oi(a,c))}}return f?f.then(()=>a):a},h=(a,n,l)=>{if(oi(a))return a.aborted=!0,a;const u=s(n,i,l);if(u instanceof Promise){if(l.async===!1)throw new hi;return u.then(f=>e._zod.parse(f,l))}return e._zod.parse(u,l)};e._zod.run=(a,n)=>{if(n.skipChecks)return e._zod.parse(a,n);if(n.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...n,skipChecks:!0});return u instanceof Promise?u.then(f=>h(f,a,n)):h(u,a,n)}const l=e._zod.parse(a,n);if(l instanceof Promise){if(n.async===!1)throw new hi;return l.then(u=>s(u,i,n))}return s(l,i,n)}}it(e,"~standard",()=>({validate:s=>{try{const h=EC(e,s);return h.success?{value:h.data}:{issues:h.error?.issues}}catch{return bC(e,s).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),wl=ke("$ZodString",(e,t)=>{Et.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??KC(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),dt=ke("$ZodStringFormat",(e,t)=>{Ys.init(e,t),wl.init(e,t)}),fT=ke("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=BC),dt.init(e,t)}),dT=ke("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Yc(r))}else t.pattern??(t.pattern=Yc());dt.init(e,t)}),pT=ke("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=MC),dt.init(e,t)}),mT=ke("$ZodURL",(e,t)=>{dt.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),s=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=s.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gT=ke("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jC()),dt.init(e,t)}),vT=ke("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=xC),dt.init(e,t)}),yT=ke("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=IC),dt.init(e,t)}),_T=ke("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=kC),dt.init(e,t)}),ET=ke("$ZodULID",(e,t)=>{t.pattern??(t.pattern=LC),dt.init(e,t)}),bT=ke("$ZodXID",(e,t)=>{t.pattern??(t.pattern=FC),dt.init(e,t)}),wT=ke("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=NC),dt.init(e,t)}),ST=ke("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=YC(t)),dt.init(e,t)}),DT=ke("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=WC),dt.init(e,t)}),AT=ke("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=VC(t)),dt.init(e,t)}),CT=ke("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=$C),dt.init(e,t)}),TT=ke("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=UC),dt.init(e,t),e._zod.bag.format="ipv4"}),RT=ke("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=HC),dt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),OT=ke("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=qC),dt.init(e,t)}),IT=ke("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zC),dt.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[s,h]=i;if(!h)throw new Error;const a=Number(h);if(`${a}`!==h)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function ym(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var kT=ke("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=GC),dt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ym(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function LT(e){if(!mm.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/");return ym(t.padEnd(Math.ceil(t.length/4)*4,"="))}var FT=ke("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=mm),dt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{LT(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),NT=ke("$ZodE164",(e,t)=>{t.pattern??(t.pattern=JC),dt.init(e,t)});function xT(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const s=JSON.parse(atob(i));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}var $T=ke("$ZodJWT",(e,t)=>{dt.init(e,t),e._zod.check=r=>{xT(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),BT=ke("$ZodUnknown",(e,t)=>{Et.init(e,t),e._zod.parse=r=>r}),MT=ke("$ZodNever",(e,t)=>{Et.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function Kc(e,t,r){e.issues.length&&t.issues.push(...ui(r,e.issues)),t.value[r]=e.value}var PT=ke("$ZodArray",(e,t)=>{Et.init(e,t),e._zod.parse=(r,i)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const h=[];for(let a=0;a<s.length;a++){const n=s[a],l=t.element._zod.run({value:n,issues:[]},i);l instanceof Promise?h.push(l.then(u=>Kc(u,r,a))):Kc(l,r,a)}return h.length?Promise.all(h).then(()=>r):r}});function ns(e,t,r,i,s){if(e.issues.length){if(s&&!(r in i))return;t.issues.push(...ui(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function _m(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=cC(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Em(e,t,r,i,s,h){const a=[],n=s.keySet,l=s.catchall._zod,u=l.def.type,f=l.optout==="optional";for(const o in t){if(n.has(o))continue;if(u==="never"){a.push(o);continue}const c=l.run({value:t[o],issues:[]},i);c instanceof Promise?e.push(c.then(d=>ns(d,r,o,t,f))):ns(c,r,o,t,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:h}),e.length?Promise.all(e).then(()=>r):r}var jT=ke("$ZodObject",(e,t)=>{if(Et.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const n={...a};return Object.defineProperty(t,"shape",{value:n}),n}})}const r=gl(()=>_m(t));it(e._zod,"propValues",()=>{const a=t.shape,n={};for(const l in a){const u=a[l]._zod;if(u.values){n[l]??(n[l]=new Set);for(const f of u.values)n[l].add(f)}}return n});const i=is,s=t.catchall;let h;e._zod.parse=(a,n)=>{h??(h=r.value);const l=a.value;if(!i(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};const u=[],f=h.shape;for(const o of h.keys){const c=f[o],d=c._zod.optout==="optional",p=c._zod.run({value:l[o],issues:[]},n);p instanceof Promise?u.push(p.then(g=>ns(g,a,o,l,d))):ns(p,a,o,l,d)}return s?Em(u,l,a,n,r.value,e):u.length?Promise.all(u).then(()=>a):a}}),UT=ke("$ZodObjectJIT",(e,t)=>{jT.init(e,t);const r=e._zod.parse,i=gl(()=>_m(t)),s=c=>{const d=new cT(["shape","payload","ctx"]),p=i.value,g=w=>{const _=Vc(w);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};d.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const w of p.keys)m[w]=`key_${v++}`;d.write("const newResult = {};");for(const w of p.keys){const _=m[w],b=Vc(w),E=c[w]?._zod?.optout==="optional";d.write(`const ${_} = ${g(w)};`),E?d.write(`
|
|
646
646
|
if (${_}.issues.length) {
|
|
@@ -679,12 +679,12 @@ Merged yarn config in npm format:`,"verbose"),Me(e,u,"verbose")),u}),JA=(0,Cr.de
|
|
|
679
679
|
`)}d.write("payload.value = newResult;"),d.write("return payload;");const y=d.compile();return(w,_)=>y(c,w,_)};let h;const a=is,n=!Yo.jitless,u=n&&uC.value,f=t.catchall;let o;e._zod.parse=(c,d)=>{o??(o=i.value);const p=c.value;return a(p)?n&&u&&d?.async===!1&&d.jitless!==!0?(h||(h=s(t.shape)),c=h(c,d),f?Em([],p,c,d,o,e):c):r(c,d):(c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),c)}});function Zc(e,t,r,i){for(const h of e)if(h.issues.length===0)return t.value=h.value,t;const s=e.filter(h=>!oi(h));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(h=>h.issues.map(a=>br(a,i,Er())))}),t)}var HT=ke("$ZodUnion",(e,t)=>{Et.init(e,t),it(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),it(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(h=>h._zod.pattern);return new RegExp(`^(${s.map(h=>yl(h.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(s,h)=>{if(r)return i(s,h);let a=!1;const n=[];for(const l of t.options){const u=l._zod.run({value:s.value,issues:[]},h);if(u instanceof Promise)n.push(u),a=!0;else{if(u.issues.length===0)return u;n.push(u)}}return a?Promise.all(n).then(l=>Zc(l,s,e,h)):Zc(n,s,e,h)}}),qT=ke("$ZodIntersection",(e,t)=>{Et.init(e,t),e._zod.parse=(r,i)=>{const s=r.value,h=t.left._zod.run({value:s,issues:[]},i),a=t.right._zod.run({value:s,issues:[]},i);return h instanceof Promise||a instanceof Promise?Promise.all([h,a]).then(([n,l])=>Xc(r,n,l)):Xc(r,h,a)}});function Zo(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yi(e)&&yi(t)){const r=Object.keys(t),i=Object.keys(e).filter(h=>r.indexOf(h)!==-1),s={...e,...t};for(const h of i){const a=Zo(e[h],t[h]);if(!a.valid)return{valid:!1,mergeErrorPath:[h,...a.mergeErrorPath]};s[h]=a.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const s=e[i],h=t[i],a=Zo(s,h);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Xc(e,t,r){const i=new Map;let s;for(const n of t.issues)if(n.code==="unrecognized_keys"){s??(s=n);for(const l of n.keys)i.has(l)||i.set(l,{}),i.get(l).l=!0}else e.issues.push(n);for(const n of r.issues)if(n.code==="unrecognized_keys")for(const l of n.keys)i.has(l)||i.set(l,{}),i.get(l).r=!0;else e.issues.push(n);const h=[...i].filter(([,n])=>n.l&&n.r).map(([n])=>n);if(h.length&&s&&e.issues.push({...s,keys:h}),oi(e))return e;const a=Zo(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var zT=ke("$ZodRecord",(e,t)=>{Et.init(e,t),e._zod.parse=(r,i)=>{const s=r.value;if(!yi(s))return r.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),r;const h=[],a=t.keyType._zod.values;if(a){r.value={};const n=new Set;for(const u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){n.add(typeof u=="number"?u.toString():u);const f=t.valueType._zod.run({value:s[u],issues:[]},i);f instanceof Promise?h.push(f.then(o=>{o.issues.length&&r.issues.push(...ui(u,o.issues)),r.value[u]=o.value})):(f.issues.length&&r.issues.push(...ui(u,f.issues)),r.value[u]=f.value)}let l;for(const u in s)n.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:l})}else{r.value={};for(const n of Reflect.ownKeys(s)){if(n==="__proto__")continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof n=="string"&&ZC.test(n)&&l.issues.length){const f=t.keyType._zod.run({value:Number(n),issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?r.value[n]=s[n]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>br(f,i,Er())),input:n,path:[n],inst:e});continue}const u=t.valueType._zod.run({value:s[n],issues:[]},i);u instanceof Promise?h.push(u.then(f=>{f.issues.length&&r.issues.push(...ui(n,f.issues)),r.value[l.value]=f.value})):(u.issues.length&&r.issues.push(...ui(n,u.issues)),r.value[l.value]=u.value)}}return h.length?Promise.all(h).then(()=>r):r}}),GT=ke("$ZodEnum",(e,t)=>{Et.init(e,t);const r=lm(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>lC.has(typeof s)).map(s=>typeof s=="string"?Js(s):s.toString()).join("|")})$`),e._zod.parse=(s,h)=>{const a=s.value;return i.has(a)||s.issues.push({code:"invalid_value",values:r,input:a,inst:e}),s}}),JT=ke("$ZodTransform",(e,t)=>{Et.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new um(e.constructor.name);const s=t.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(h=>(r.value=h,r));if(s instanceof Promise)throw new hi;return r.value=s,r}});function Qc(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bm=ke("$ZodOptional",(e,t)=>{Et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${yl(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(h=>Qc(h,r.value)):Qc(s,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),WT=ke("$ZodExactOptional",(e,t)=>{bm.init(e,t),it(e._zod,"values",()=>t.innerType._zod.values),it(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),VT=ke("$ZodNullable",(e,t)=>{Et.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${yl(r.source)}|null)$`):void 0}),it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),YT=ke("$ZodDefault",(e,t)=>{Et.init(e,t),e._zod.optin="optional",it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(h=>eh(h,t)):eh(s,t)}});function eh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var KT=ke("$ZodPrefault",(e,t)=>{Et.init(e,t),e._zod.optin="optional",it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),ZT=ke("$ZodNonOptional",(e,t)=>{Et.init(e,t),it(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(h=>th(h,e)):th(s,e)}});function th(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var XT=ke("$ZodCatch",(e,t)=>{Et.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(h=>(r.value=h.value,h.issues.length&&(r.value=t.catchValue({...r,error:{issues:h.issues.map(a=>br(a,i,Er()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(h=>br(h,i,Er()))},input:r.value}),r.issues=[]),r)}}),QT=ke("$ZodPipe",(e,t)=>{Et.init(e,t),it(e._zod,"values",()=>t.in._zod.values),it(e._zod,"optin",()=>t.in._zod.optin),it(e._zod,"optout",()=>t.out._zod.optout),it(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const h=t.out._zod.run(r,i);return h instanceof Promise?h.then(a=>On(a,t.in,i)):On(h,t.in,i)}const s=t.in._zod.run(r,i);return s instanceof Promise?s.then(h=>On(h,t.out,i)):On(s,t.out,i)}});function On(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var eR=ke("$ZodReadonly",(e,t)=>{Et.init(e,t),it(e._zod,"propValues",()=>t.innerType._zod.propValues),it(e._zod,"values",()=>t.innerType._zod.values),it(e._zod,"optin",()=>t.innerType?._zod?.optin),it(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(rh):rh(s)}});function rh(e){return e.value=Object.freeze(e.value),e}var tR=ke("$ZodCustom",(e,t)=>{ar.init(e,t),Et.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=t.fn(i);if(s instanceof Promise)return s.then(h=>ih(h,r,i,e));ih(s,r,i,e)}});function ih(e,t,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(Qi(s))}}var nh,rR=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];return this._map.set(e,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function iR(){return new rR}(nh=globalThis).__zod_globalRegistry??(nh.__zod_globalRegistry=iR());var Bi=globalThis.__zod_globalRegistry;function nR(e,t){return new e({type:"string",...qe(t)})}function sR(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...qe(t)})}function sh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...qe(t)})}function aR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...qe(t)})}function oR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...qe(t)})}function uR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...qe(t)})}function lR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...qe(t)})}function cR(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...qe(t)})}function hR(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...qe(t)})}function fR(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...qe(t)})}function dR(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...qe(t)})}function pR(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...qe(t)})}function mR(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...qe(t)})}function gR(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...qe(t)})}function vR(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...qe(t)})}function yR(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...qe(t)})}function _R(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...qe(t)})}function ER(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...qe(t)})}function bR(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...qe(t)})}function wR(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...qe(t)})}function SR(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...qe(t)})}function DR(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...qe(t)})}function AR(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...qe(t)})}function CR(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...qe(t)})}function TR(e,t){return new e({type:"string",format:"date",check:"string_format",...qe(t)})}function RR(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...qe(t)})}function OR(e,t){return new e({type:"string",format:"duration",check:"string_format",...qe(t)})}function IR(e){return new e({type:"unknown"})}function kR(e,t){return new e({type:"never",...qe(t)})}function wm(e,t){return new eT({check:"max_length",...qe(t),maximum:e})}function ss(e,t){return new tT({check:"min_length",...qe(t),minimum:e})}function Sm(e,t){return new rT({check:"length_equals",...qe(t),length:e})}function LR(e,t){return new iT({check:"string_format",format:"regex",...qe(t),pattern:e})}function FR(e){return new nT({check:"string_format",format:"lowercase",...qe(e)})}function NR(e){return new sT({check:"string_format",format:"uppercase",...qe(e)})}function xR(e,t){return new aT({check:"string_format",format:"includes",...qe(t),includes:e})}function $R(e,t){return new oT({check:"string_format",format:"starts_with",...qe(t),prefix:e})}function BR(e,t){return new uT({check:"string_format",format:"ends_with",...qe(t),suffix:e})}function Ai(e){return new lT({check:"overwrite",tx:e})}function MR(e){return Ai(t=>t.normalize(e))}function PR(){return Ai(e=>e.trim())}function jR(){return Ai(e=>e.toLowerCase())}function UR(){return Ai(e=>e.toUpperCase())}function HR(){return Ai(e=>oC(e))}function qR(e,t,r){return new e({type:"array",element:t,...qe(r)})}function zR(e,t,r){return new e({type:"custom",check:"custom",fn:t,...qe(r)})}function GR(e){const t=JR(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Qi(i,r.value,t._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),r.issues.push(Qi(s))}},e(r.value,r)));return t}function JR(e,t){const r=new ar({check:"custom",...qe(t)});return r._zod.check=e,r}function Dm(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Bi,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function _t(e,t,r={path:[],schemaPath:[]}){var i;const s=e._zod.def,h=t.seen.get(e);if(h)return h.count++,r.schemaPath.includes(e)&&(h.cycle=r.path),h.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const n=e._zod.toJSONSchema?.();if(n)a.schema=n;else{const u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{const o=a.schema,c=t.processors[s.type];if(!c)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);c(e,t,o,u)}const f=e._zod.parent;f&&(a.ref||(a.ref=f),_t(f,t,u),t.seen.get(f).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&kt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Am(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const a of e.seen.entries()){const n=e.metadataRegistry.get(a[0])?.id;if(n){const l=i.get(n);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(n,a[0])}}const s=a=>{const n=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const f=e.external.registry.get(a[0])?.id,o=e.external.uri??(d=>d);if(f)return{ref:o(f)};const c=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=c,{defId:c,ref:`${o("__shared")}#/${n}/${c}`}}if(a[1]===r)return{ref:"#"};const l=`#/${n}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},h=a=>{if(a[1].schema.$ref)return;const n=a[1],{ref:l,defId:u}=s(a);n.def={...n.schema},u&&(n.defId=u);const f=n.schema;for(const o in f)delete f[o];f.$ref=l};if(e.cycles==="throw")for(const a of e.seen.entries()){const n=a[1];if(n.cycle)throw new Error(`Cycle detected: #/${n.cycle?.join("/")}/<root>
|
|
680
680
|
|
|
681
681
|
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const n=a[1];if(t===a[0]){h(a);continue}if(e.external){const l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){h(a);continue}}if(e.metadataRegistry.get(a[0])?.id){h(a);continue}if(n.cycle){h(a);continue}if(n.count>1&&e.reused==="ref"){h(a);continue}}}function Cm(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=a=>{const n=e.seen.get(a);if(n.ref===null)return;const l=n.def??n.schema,u={...l},f=n.ref;if(n.ref=null,f){i(f);const c=e.seen.get(f),d=c.schema;if(d.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(d)):Object.assign(l,d),Object.assign(l,u),a._zod.parent===f)for(const p in l)p==="$ref"||p==="allOf"||p in u||delete l[p];if(d.$ref&&c.def)for(const p in l)p==="$ref"||p==="allOf"||p in c.def&&JSON.stringify(l[p])===JSON.stringify(c.def[p])&&delete l[p]}const o=a._zod.parent;if(o&&o!==f){i(o);const c=e.seen.get(o);if(c?.schema.$ref&&(l.$ref=c.schema.$ref,c.def))for(const d in l)d==="$ref"||d==="allOf"||d in c.def&&JSON.stringify(l[d])===JSON.stringify(c.def[d])&&delete l[d]}e.override({zodSchema:a,jsonSchema:l,path:n.path??[]})};for(const a of[...e.seen.entries()].reverse())i(a[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(a)}Object.assign(s,r.def??r.schema);const h=e.external?.defs??{};for(const a of e.seen.entries()){const n=a[1];n.def&&n.defId&&(h[n.defId]=n.def)}e.external||Object.keys(h).length>0&&(e.target==="draft-2020-12"?s.$defs=h:s.definitions=h);try{const a=JSON.parse(JSON.stringify(s));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:as(t,"input",e.processors),output:as(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function kt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return kt(i.element,r);if(i.type==="set")return kt(i.valueType,r);if(i.type==="lazy")return kt(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return kt(i.innerType,r);if(i.type==="intersection")return kt(i.left,r)||kt(i.right,r);if(i.type==="record"||i.type==="map")return kt(i.keyType,r)||kt(i.valueType,r);if(i.type==="pipe")return kt(i.in,r)||kt(i.out,r);if(i.type==="object"){for(const s in i.shape)if(kt(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(kt(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(kt(s,r))return!0;return!!(i.rest&&kt(i.rest,r))}return!1}var WR=(e,t={})=>r=>{const i=Dm({...r,processors:t});return _t(e,i),Am(i,e),Cm(i,e)},as=(e,t,r={})=>i=>{const{libraryOptions:s,target:h}=i??{},a=Dm({...s??{},target:h,io:t,processors:r});return _t(e,a),Am(a,e),Cm(a,e)},VR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},YR=(e,t,r,i)=>{const s=r;s.type="string";const{minimum:h,maximum:a,format:n,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof h=="number"&&(s.minLength=h),typeof a=="number"&&(s.maxLength=a),n&&(s.format=VR[n]??n,s.format===""&&delete s.format,n==="time"&&delete s.format),u&&(s.contentEncoding=u),l&&l.size>0){const f=[...l];f.length===1?s.pattern=f[0].source:f.length>1&&(s.allOf=[...f.map(o=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:o.source}))])}},KR=(e,t,r,i)=>{r.not={}},ZR=(e,t,r,i)=>{},XR=(e,t,r,i)=>{const s=e._zod.def,h=lm(s.entries);h.every(a=>typeof a=="number")&&(r.type="number"),h.every(a=>typeof a=="string")&&(r.type="string"),r.enum=h},QR=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},eO=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},tO=(e,t,r,i)=>{const s=r,h=e._zod.def,{minimum:a,maximum:n}=e._zod.bag;typeof a=="number"&&(s.minItems=a),typeof n=="number"&&(s.maxItems=n),s.type="array",s.items=_t(h.element,t,{...i,path:[...i.path,"items"]})},rO=(e,t,r,i)=>{const s=r,h=e._zod.def;s.type="object",s.properties={};const a=h.shape;for(const u in a)s.properties[u]=_t(a[u],t,{...i,path:[...i.path,"properties",u]});const n=new Set(Object.keys(a)),l=new Set([...n].filter(u=>{const f=h.shape[u]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(s.required=Array.from(l)),h.catchall?._zod.def.type==="never"?s.additionalProperties=!1:h.catchall?h.catchall&&(s.additionalProperties=_t(h.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},iO=(e,t,r,i)=>{const s=e._zod.def,h=s.inclusive===!1,a=s.options.map((n,l)=>_t(n,t,{...i,path:[...i.path,h?"oneOf":"anyOf",l]}));h?r.oneOf=a:r.anyOf=a},nO=(e,t,r,i)=>{const s=e._zod.def,h=_t(s.left,t,{...i,path:[...i.path,"allOf",0]}),a=_t(s.right,t,{...i,path:[...i.path,"allOf",1]}),n=l=>"allOf"in l&&Object.keys(l).length===1;r.allOf=[...n(h)?h.allOf:[h],...n(a)?a.allOf:[a]]},sO=(e,t,r,i)=>{const s=r,h=e._zod.def;s.type="object";const a=h.keyType,n=a._zod.bag?.patterns;if(h.mode==="loose"&&n&&n.size>0){const u=_t(h.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});s.patternProperties={};for(const f of n)s.patternProperties[f.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=_t(h.keyType,t,{...i,path:[...i.path,"propertyNames"]})),s.additionalProperties=_t(h.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const l=a._zod.values;if(l){const u=[...l].filter(f=>typeof f=="string"||typeof f=="number");u.length>0&&(s.required=u)}},aO=(e,t,r,i)=>{const s=e._zod.def,h=_t(s.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=s.innerType,r.nullable=!0):r.anyOf=[h,{type:"null"}]},oO=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType},uO=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},lO=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},cO=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType;let a;try{a=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},hO=(e,t,r,i)=>{const s=e._zod.def,h=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;_t(h,t,i);const a=t.seen.get(e);a.ref=h},fO=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType,r.readOnly=!0},Tm=(e,t,r,i)=>{const s=e._zod.def;_t(s.innerType,t,i);const h=t.seen.get(e);h.ref=s.innerType},dO=ke("ZodISODateTime",(e,t)=>{ST.init(e,t),pt.init(e,t)});function pO(e){return CR(dO,e)}var mO=ke("ZodISODate",(e,t)=>{DT.init(e,t),pt.init(e,t)});function gO(e){return TR(mO,e)}var vO=ke("ZodISOTime",(e,t)=>{AT.init(e,t),pt.init(e,t)});function yO(e){return RR(vO,e)}var _O=ke("ZodISODuration",(e,t)=>{CT.init(e,t),pt.init(e,t)});function EO(e){return OR(_O,e)}var Rm=(e,t)=>{dm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>_C(e,r)},flatten:{value:r=>yC(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ko,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ko,2)}},isEmpty:{get(){return e.issues.length===0}}})},nL=ke("ZodError",Rm),Jt=ke("ZodError",Rm,{Parent:Error}),bO=El(Jt),wO=bl(Jt),SO=Ws(Jt),DO=Vs(Jt),AO=wC(Jt),CO=SC(Jt),TO=DC(Jt),RO=AC(Jt),OO=CC(Jt),IO=TC(Jt),kO=RC(Jt),LO=OC(Jt),bt=ke("ZodType",(e,t)=>(Et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:as(e,"input"),output:as(e,"output")}}),e.toJSONSchema=WR(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Tr(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Rr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>bO(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>SO(e,r,i),e.parseAsync=async(r,i)=>wO(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>DO(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>AO(e,r,i),e.decode=(r,i)=>CO(e,r,i),e.encodeAsync=async(r,i)=>TO(e,r,i),e.decodeAsync=async(r,i)=>RO(e,r,i),e.safeEncode=(r,i)=>OO(e,r,i),e.safeDecode=(r,i)=>IO(e,r,i),e.safeEncodeAsync=async(r,i)=>kO(e,r,i),e.safeDecodeAsync=async(r,i)=>LO(e,r,i),e.refine=(r,i)=>e.check(S2(r,i)),e.superRefine=r=>e.check(D2(r)),e.overwrite=r=>e.check(Ai(r)),e.optional=()=>en(e),e.exactOptional=()=>c2(e),e.nullable=()=>lh(e),e.nullish=()=>en(lh(e)),e.nonoptional=r=>g2(e,r),e.array=()=>Im(e),e.or=r=>km([e,r]),e.and=r=>n2(e,r),e.transform=r=>ch(e,u2(r)),e.default=r=>d2(e,r),e.prefault=r=>m2(e,r),e.catch=r=>y2(e,r),e.pipe=r=>ch(e,r),e.readonly=()=>b2(e),e.describe=r=>{const i=e.clone();return Bi.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Bi.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Bi.get(e);const i=e.clone();return Bi.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Om=ke("_ZodString",(e,t)=>{wl.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(i,s,h)=>YR(e,i,s,h);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(LR(...i)),e.includes=(...i)=>e.check(xR(...i)),e.startsWith=(...i)=>e.check($R(...i)),e.endsWith=(...i)=>e.check(BR(...i)),e.min=(...i)=>e.check(ss(...i)),e.max=(...i)=>e.check(wm(...i)),e.length=(...i)=>e.check(Sm(...i)),e.nonempty=(...i)=>e.check(ss(1,...i)),e.lowercase=i=>e.check(FR(i)),e.uppercase=i=>e.check(NR(i)),e.trim=()=>e.check(PR()),e.normalize=(...i)=>e.check(MR(...i)),e.toLowerCase=()=>e.check(jR()),e.toUpperCase=()=>e.check(UR()),e.slugify=()=>e.check(HR())}),FO=ke("ZodString",(e,t)=>{wl.init(e,t),Om.init(e,t),e.email=r=>e.check(sR(NO,r)),e.url=r=>e.check(cR(xO,r)),e.jwt=r=>e.check(AR(KO,r)),e.emoji=r=>e.check(hR($O,r)),e.guid=r=>e.check(sh(ah,r)),e.uuid=r=>e.check(aR(In,r)),e.uuidv4=r=>e.check(oR(In,r)),e.uuidv6=r=>e.check(uR(In,r)),e.uuidv7=r=>e.check(lR(In,r)),e.nanoid=r=>e.check(fR(BO,r)),e.guid=r=>e.check(sh(ah,r)),e.cuid=r=>e.check(dR(MO,r)),e.cuid2=r=>e.check(pR(PO,r)),e.ulid=r=>e.check(mR(jO,r)),e.base64=r=>e.check(wR(WO,r)),e.base64url=r=>e.check(SR(VO,r)),e.xid=r=>e.check(gR(UO,r)),e.ksuid=r=>e.check(vR(HO,r)),e.ipv4=r=>e.check(yR(qO,r)),e.ipv6=r=>e.check(_R(zO,r)),e.cidrv4=r=>e.check(ER(GO,r)),e.cidrv6=r=>e.check(bR(JO,r)),e.e164=r=>e.check(DR(YO,r)),e.datetime=r=>e.check(pO(r)),e.date=r=>e.check(gO(r)),e.time=r=>e.check(yO(r)),e.duration=r=>e.check(EO(r))});function ni(e){return nR(FO,e)}var pt=ke("ZodStringFormat",(e,t)=>{dt.init(e,t),Om.init(e,t)}),NO=ke("ZodEmail",(e,t)=>{pT.init(e,t),pt.init(e,t)}),ah=ke("ZodGUID",(e,t)=>{fT.init(e,t),pt.init(e,t)}),In=ke("ZodUUID",(e,t)=>{dT.init(e,t),pt.init(e,t)}),xO=ke("ZodURL",(e,t)=>{mT.init(e,t),pt.init(e,t)}),$O=ke("ZodEmoji",(e,t)=>{gT.init(e,t),pt.init(e,t)}),BO=ke("ZodNanoID",(e,t)=>{vT.init(e,t),pt.init(e,t)}),MO=ke("ZodCUID",(e,t)=>{yT.init(e,t),pt.init(e,t)}),PO=ke("ZodCUID2",(e,t)=>{_T.init(e,t),pt.init(e,t)}),jO=ke("ZodULID",(e,t)=>{ET.init(e,t),pt.init(e,t)}),UO=ke("ZodXID",(e,t)=>{bT.init(e,t),pt.init(e,t)}),HO=ke("ZodKSUID",(e,t)=>{wT.init(e,t),pt.init(e,t)}),qO=ke("ZodIPv4",(e,t)=>{TT.init(e,t),pt.init(e,t)}),zO=ke("ZodIPv6",(e,t)=>{RT.init(e,t),pt.init(e,t)}),GO=ke("ZodCIDRv4",(e,t)=>{OT.init(e,t),pt.init(e,t)}),JO=ke("ZodCIDRv6",(e,t)=>{IT.init(e,t),pt.init(e,t)}),WO=ke("ZodBase64",(e,t)=>{kT.init(e,t),pt.init(e,t)}),VO=ke("ZodBase64URL",(e,t)=>{FT.init(e,t),pt.init(e,t)}),YO=ke("ZodE164",(e,t)=>{NT.init(e,t),pt.init(e,t)}),KO=ke("ZodJWT",(e,t)=>{$T.init(e,t),pt.init(e,t)}),ZO=ke("ZodUnknown",(e,t)=>{BT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>ZR(e,r,i,s)});function oh(){return IR(ZO)}var XO=ke("ZodNever",(e,t)=>{MT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>KR(e,r,i,s)});function QO(e){return kR(XO,e)}var e2=ke("ZodArray",(e,t)=>{PT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>tO(e,r,i,s),e.element=t.element,e.min=(r,i)=>e.check(ss(r,i)),e.nonempty=r=>e.check(ss(1,r)),e.max=(r,i)=>e.check(wm(r,i)),e.length=(r,i)=>e.check(Sm(r,i)),e.unwrap=()=>e.element});function Im(e,t){return qR(e2,e,t)}var t2=ke("ZodObject",(e,t)=>{UT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>rO(e,r,i,s),it(e,"shape",()=>t.shape),e.keyof=()=>a2(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:oh()}),e.loose=()=>e.clone({...e._zod.def,catchall:oh()}),e.strict=()=>e.clone({...e._zod.def,catchall:QO()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>dC(e,r),e.safeExtend=r=>pC(e,r),e.merge=r=>mC(e,r),e.pick=r=>hC(e,r),e.omit=r=>fC(e,r),e.partial=(...r)=>gC(Lm,e,r[0]),e.required=(...r)=>vC(Fm,e,r[0])});function uh(e,t){return new t2({type:"object",shape:e??{},...qe(t)})}var r2=ke("ZodUnion",(e,t)=>{HT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>iO(e,r,i,s),e.options=t.options});function km(e,t){return new r2({type:"union",options:e,...qe(t)})}var i2=ke("ZodIntersection",(e,t)=>{qT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nO(e,r,i,s)});function n2(e,t){return new i2({type:"intersection",left:e,right:t})}var s2=ke("ZodRecord",(e,t)=>{zT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>sO(e,r,i,s),e.keyType=t.keyType,e.valueType=t.valueType});function ga(e,t,r){return new s2({type:"record",keyType:e,valueType:t,...qe(r)})}var Xo=ke("ZodEnum",(e,t)=>{GT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(i,s,h)=>XR(e,i,s,h),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,s)=>{const h={};for(const a of i)if(r.has(a))h[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Xo({...t,checks:[],...qe(s),entries:h})},e.exclude=(i,s)=>{const h={...t.entries};for(const a of i)if(r.has(a))delete h[a];else throw new Error(`Key ${a} not found in enum`);return new Xo({...t,checks:[],...qe(s),entries:h})}});function a2(e,t){return new Xo({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e,...qe(t)})}var o2=ke("ZodTransform",(e,t)=>{JT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>eO(e,r,i,s),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new um(e.constructor.name);r.addIssue=h=>{if(typeof h=="string")r.issues.push(Qi(h,r.value,t));else{const a=h;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Qi(a))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(h=>(r.value=h,r)):(r.value=s,r)}});function u2(e){return new o2({type:"transform",transform:e})}var Lm=ke("ZodOptional",(e,t)=>{bm.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>Tm(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function en(e){return new Lm({type:"optional",innerType:e})}var l2=ke("ZodExactOptional",(e,t)=>{WT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>Tm(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function c2(e){return new l2({type:"optional",innerType:e})}var h2=ke("ZodNullable",(e,t)=>{VT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>aO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function lh(e){return new h2({type:"nullable",innerType:e})}var f2=ke("ZodDefault",(e,t)=>{YT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>uO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function d2(e,t){return new f2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():hm(t)}})}var p2=ke("ZodPrefault",(e,t)=>{KT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>lO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function m2(e,t){return new p2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():hm(t)}})}var Fm=ke("ZodNonOptional",(e,t)=>{ZT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>oO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function g2(e,t){return new Fm({type:"nonoptional",innerType:e,...qe(t)})}var v2=ke("ZodCatch",(e,t)=>{XT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>cO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function y2(e,t){return new v2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var _2=ke("ZodPipe",(e,t)=>{QT.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>hO(e,r,i,s),e.in=t.in,e.out=t.out});function ch(e,t){return new _2({type:"pipe",in:e,out:t})}var E2=ke("ZodReadonly",(e,t)=>{eR.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>fO(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function b2(e){return new E2({type:"readonly",innerType:e})}var w2=ke("ZodCustom",(e,t)=>{tR.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(r,i,s)=>QR(e,r,i,s)});function S2(e,t={}){return zR(w2,e,t)}function D2(e){return GR(e)}var hh={catalog:en(ga(ni(),ni())),catalogs:en(ga(ni(),ga(ni(),ni()))).catch(void 0)},Nm=uh({...hh,workspaces:en(km([Im(ni()),uh(hh).passthrough()])).catch(void 0)}),A2={dev:"devDependencies",peer:"peerDependencies",prod:"dependencies",optional:"optionalDependencies"},Sl=e=>(e?typeof e=="string"?e.split(","):e:Nr.dep.default).map(t=>A2[t]||t);function fh(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}async function dh(e,t,r){const i=await tt.default.readFile(e,"utf-8");return Object.entries(r).filter(([s])=>t[s]).reduce((s,[h,a])=>{const n=t[h],l=`("${fh(h)}"\\s*:\\s*")(${fh(n)})(")`,u=new RegExp(l,"g");return s.replace(u,`$1${a}$3`)},i)}function ph(e,{options:t,filePath:r}){const i=e instanceof Error?e.message:String(e),s=`Invalid YAML syntax${r?` in ${r}`:""}. Unable to read catalog dependencies.
|
|
682
|
-
${i}`;throw t&&Xe(t,s),new Error(s)}function C2(e,t,{newName:r,newValue:i}){const s=t.slice(0,-1),h=t.at(-1),a=e.getIn(s);if(!a||!(0,zt.isCollection)(a))return!1;const n=a.items.find(l=>(0,zt.isPair)(l)&&(0,zt.isScalar)(l.key)&&l.key.value===h);if(!n||!(0,zt.isPair)(n))return!1;if(r&&zt.CST.setScalarValue(n.srcToken.key,r),i){if(!zt.CST.isScalar(n.srcToken?.value))return!1;zt.CST.setScalarValue(n.srcToken.value,i)}return!0}function T2({fileContent:e,upgrade:t,options:r,filePath:i}){const{path:s}=t;if(!(s.length>1)&&s[0]!=="catalog"&&s[0]!=="catalogs")return null;const{newValue:h}=t;let a,n;try{a=(0,zt.parseDocument)(e,{keepSourceTokens:!0})}catch(u){ph(u,{options:r,filePath:i})}a.errors.length>0&&ph(a.errors[0],{options:r,filePath:i});try{n=Nm.parse(a.toJSON())}catch{return null}const l=n.workspaces&&!Array.isArray(n.workspaces)?n.workspaces:void 0;return(s[0]==="catalog"?n.catalog?.[s[1]]:s[0]==="catalogs"?n.catalogs?.[s[1]]?.[s[2]]:s[0]==="workspaces"&&s[1]==="catalog"?l?.catalog?.[s[2]]:s[0]==="workspaces"&&s[1]==="catalogs"?l?.catalogs?.[s[2]]?.[s[3]]:void 0)===h?e:C2(a,s,{newValue:h,newName:t.path.at(-1)})?zt.CST.stringify(a.contents.srcToken):null}function R2(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}async function xm(e,t,r,i,s){if(s){const l=
|
|
682
|
+
${i}`;throw t&&Xe(t,s),new Error(s)}function C2(e,t,{newName:r,newValue:i}){const s=t.slice(0,-1),h=t.at(-1),a=e.getIn(s);if(!a||!(0,zt.isCollection)(a))return!1;const n=a.items.find(l=>(0,zt.isPair)(l)&&(0,zt.isScalar)(l.key)&&l.key.value===h);if(!n||!(0,zt.isPair)(n))return!1;if(r&&zt.CST.setScalarValue(n.srcToken.key,r),i){if(!zt.CST.isScalar(n.srcToken?.value))return!1;zt.CST.setScalarValue(n.srcToken.value,i)}return!0}function T2({fileContent:e,upgrade:t,options:r,filePath:i}){const{path:s}=t;if(!(s.length>1)&&s[0]!=="catalog"&&s[0]!=="catalogs")return null;const{newValue:h}=t;let a,n;try{a=(0,zt.parseDocument)(e,{keepSourceTokens:!0})}catch(u){ph(u,{options:r,filePath:i})}a.errors.length>0&&ph(a.errors[0],{options:r,filePath:i});try{n=Nm.parse(a.toJSON())}catch{return null}const l=n.workspaces&&!Array.isArray(n.workspaces)?n.workspaces:void 0;return(s[0]==="catalog"?n.catalog?.[s[1]]:s[0]==="catalogs"?n.catalogs?.[s[1]]?.[s[2]]:s[0]==="workspaces"&&s[1]==="catalog"?l?.catalog?.[s[2]]:s[0]==="workspaces"&&s[1]==="catalogs"?l?.catalogs?.[s[2]]?.[s[3]]:void 0)===h?e:C2(a,s,{newValue:h,newName:t.path.at(-1)})?zt.CST.stringify(a.contents.srcToken):null}function R2(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}async function xm(e,t,r,i,s){if(s){const l=We.default.basename(s),u=We.default.extname(s);if(s.includes("#catalog")){const f=s.replace("#catalog","");if(We.default.extname(f)===".json")return dh(f,t,r)}if(l==="pnpm-workspace.yaml"||l===".yarnrc.yml"){const f=await tt.default.readFile(s,"utf-8"),o=Nm.parse((0,zt.parseDocument)(f).toJSON()),c=[];o.catalogs&&Object.entries(o.catalogs).forEach(([g,m])=>{Object.entries(r).forEach(([v,y])=>{m[v]&&c.push({path:["catalogs",g,v],newValue:y})})}),o.catalog&&Object.entries(r).forEach(([g,m])=>{o.catalog?.[g]&&c.push({path:["catalog",g],newValue:m})});const d=o.workspaces;d&&!Array.isArray(d)&&(d.catalogs&&Object.entries(d.catalogs).forEach(([g,m])=>{Object.entries(r).forEach(([v,y])=>{m[v]&&c.push({path:["workspaces","catalogs",g,v],newValue:y})})}),d.catalog&&Object.entries(r).forEach(([g,m])=>{d.catalog?.[g]&&c.push({path:["workspaces","catalog",g],newValue:m})}));let p=f;return c.forEach(g=>{const m=T2({fileContent:p,upgrade:g,options:i,filePath:s});m&&(p=m)}),p}if(u===".json"){const f=JSON.parse(e),o=f.catalog||f.catalogs,c=f.workspaces&&!Array.isArray(f.workspaces)&&(f.workspaces.catalog||f.workspaces.catalogs);if(o||c)return dh(s,t,r)}}const h=[...Sl(i.dep),"overrides"],a=new RegExp(`"(${h.join("|")})"s*:[^}]*`,"g");let n=e.replace(a,l=>Object.entries(r).reduce((u,[f])=>{const o=`"${f}"\\s*:\\s*("|{\\s*"."\\s*:\\s*")(${R2(t[f])})"`,c=new RegExp(o,"g");return u.replace(c,(d,p)=>`"${f}${p?`": ${p}`:": "}${r[f]}"`)},l));if(h.includes("packageManager")){const l=JSON.parse(e);if(l.packageManager){const[u]=l.packageManager.split("@");r[u]&&(n=n.replace(/"packageManager"\s*:\s*".*?@[^"]*"/,`"packageManager": "${u}@${r[u]}"`))}}return n}var kn=(e,t,r,{spawnOptions:i,spawnPleaseOptions:s}={})=>{r&&console.log(ge.blue([t.packageManager,...e].join(" ")));const h={cwd:t.cwd||process.cwd(),env:{...process.env,...t.packageManager!=="pnpm"?{CI:"1"}:null,FORCE_COLOR:"1",...i?.env},...i},a={...t.global?{global:!0}:null,...t.prefix?{prefix:t.prefix}:null};return(t.packageManager==="pnpm"?mp:t.packageManager==="yarn"?pl:t.packageManager==="bun"?Zu:Rs)(e,a,s,h)},O2=async e=>{(e.packageData||e.packageFile)&&(console.error('--packageData and --packageFile are not allowed with --doctor. You must execute "ncu --doctor" in a directory with a package file so it can install dependencies and test them.'),process.exit(1));let t;try{t=await ml(e,"package.json")}catch{console.error("Missing or invalid package.json"),process.exit(1)}return!e.doctorTest&&!t.pkg.scripts?.test&&(console.error('No npm "test" script defined. You must define a "test" script in the "scripts" section of your package.json to use --doctor.'),process.exit(1)),t},I2=async(e,t)=>{await hu();let r=t.packageManager==="yarn"?"yarn.lock":t.packageManager==="pnpm"?"pnpm-lock.yaml":t.packageManager==="bun"?"bun.lock":"package-lock.json";const{pkg:i,pkgFile:s}=await O2(t),h={...i.dependencies,...i.devDependencies,...i.optionalDependencies},a=async()=>{if(t.doctorInstall){const[o,...c]=t.doctorInstall.split(" ");console.log(ge.blue(t.doctorInstall)),await(0,xr.default)(o,c)}else await kn(["install"],{packageManager:t.packageManager},!0)},n=async()=>{const o={stderr:c=>{console.error(ge.red(c.toString()))},stdout:c=>{process.stdout.write(c.toString())}};if(t.doctorTest){const c=t.doctorTest.matchAll(/"(.+?)"|'(.+?)'|[^ ]+/g);let d=[];for(const m of c)d=[...d,m[2]||m[1]||m[0]];const[p,...g]=d;console.log(ge.blue(t.doctorTest)),await(0,xr.default)(p,g,o)}else await kn(["run","test"],{packageManager:t.packageManager},!0,{spawnPleaseOptions:o})};console.log("Running tests before upgrading"),await a();let l="";try{l=await tt.default.readFile(r,"utf-8")}catch{if(t.packageManager==="bun"){r="bun.lockb";try{l=await tt.default.readFile(r,"utf-8")}catch{}}}try{await n()}catch{console.error("Tests failed before we even got started!"),process.exit(1)}t.interactive||console.log("Upgrading all dependencies and re-running tests"),console.log(ge.blue("ncu "+process.argv.slice(2).filter(o=>o!=="--doctor").join(" "))),process.env.NCU_DOCTOR="1";const u=await e({...t,silent:!0,doctor:!1});if(Object.keys(u||{}).length===0){console.log("All dependencies are up-to-date "+ge.green.bold(":)"));return}let f=!1;try{await a(),f=!0,await n(),console.log(`${ge.green("✓")} Tests pass`),await $u(t,{current:h,upgraded:u,total:Object.keys(u||{}).length}),console.log(`
|
|
683
683
|
${t.interactive?"Chosen":"All"} dependencies upgraded and installed ${ge.green(":)")}`)}catch{console.error(ge.red(f?"Tests failed":"Install failed")),console.log("Identifying broken dependencies"),await tt.default.writeFile("package.json",s),l?await tt.default.writeFile(r,l):await tt.default.rm(r,{recursive:!0,force:!0});let o=s;if(f)try{await a()}catch(p){const g=(t.packageManager||"npm")+" install";throw new Error(`Error: Doctor mode was about to test individual upgrades, but ${ge.cyan(g)} failed after rolling back to your existing package and lock files. This is unexpected since the initial install before any upgrades succeeded. Either npm failed to revert a partial install, or failed anomalously on the second run. Please check your internet connection and retry. If doctor mode fails consistently, report a bug with your complete list of dependency versions at https://github.com/raineorshine/npm-check-updates/issues.`,{cause:p})}let c,d;for([c,d]of Object.entries(u))try{if(await kn([...t.packageManager==="yarn"||t.packageManager==="pnpm"||t.packageManager==="bun"?["add"]:["install","--no-save"],`${c}@${d}`],{packageManager:t.packageManager},!0),i.scripts?.prepare)try{await kn(["run","prepare"],{packageManager:t.packageManager},!0)}catch(p){throw console.error(ge.red("Prepare script failed")),p}await n(),console.log(` ${ge.green("✓")} ${c} ${h[c]} → ${d}`),o=await xm(o,{[c]:h[c]},{[c]:d},t),l=await tt.default.readFile(r,"utf-8")}catch(p){console.error(` ${ge.red("✗")} ${c} ${h[c]} → ${d}
|
|
684
|
-
`),console.error(ge.red(p)),await tt.default.writeFile(r,l),(t.packageManager==="yarn"||t.packageManager==="pnpm"||t.packageManager==="bun")&&await tt.default.writeFile("package.json",o)}o!==s&&(console.log("Saving partially upgraded package.json"),await tt.default.writeFile("package.json",o)),await a()}};async function os(e){let t,r=null;const i=e.packageFile||"package.json";function s(h,a){if(h!=null){const n=
|
|
684
|
+
`),console.error(ge.red(p)),await tt.default.writeFile(r,l),(t.packageManager==="yarn"||t.packageManager==="pnpm"||t.packageManager==="bun")&&await tt.default.writeFile("package.json",o)}o!==s&&(console.log("Saving partially upgraded package.json"),await tt.default.writeFile("package.json",o)),await a()}};async function os(e){let t,r=null;const i=e.packageFile||"package.json";function s(h,a){if(h!=null){const n=We.default.resolve(h);Me(e,`${e.upgrade?"Upgrading":"Checking"} ${n}`)}else Xe(e,`${ge.red(`No ${a}`)}
|
|
685
685
|
|
|
686
686
|
Please add a ${a} to the current directory, specify the ${ge.cyan("--packageFile")} or ${ge.cyan("--packageData")} options, or pipe a ${a} to stdin and specify ${ge.cyan("--stdin")}.`,{color:!1});return tt.default.readFile(h,"utf-8").catch(n=>{Xe(e,n)})}if(Me(e,"Running in local mode","verbose"),Me(e,"Finding package file data","verbose"),e.packageData)r=null,t=Promise.resolve(e.packageData);else if(e.packageFile)r=e.packageFile,t=s(r,i);else if(e.stdin){Me(e,"Waiting for package data on stdin","verbose");const h=await(0,Eg.text)(process.stdin),a=h.trim().length>0?h:null;r=a||!i?null:await Zn(i),t=a||s(await r,i)}else r=i?await Zn(!e.packageFile&&e.packageManager==="deno"?["deno.json","deno.jsonc"]:i,{cwd:e.cwd||process.cwd()}):null,t=s(r,i);return{pkgData:await t,pkgFile:r||null,pkgPath:i}}var k2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((s,h)=>[].concat(s,h),[])}e.flatten=t;function r(i,s){const h=[[]];let a=0;for(const n of i)s(n)?(a++,h[a]=[]):h[a].push(n);return h}e.splitWhen=r})),L2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t})),F2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function r(i,s){return new t(i,s)}e.createDirentFromStats=r})),N2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=require("os"),r=require("path"),i=t.platform()==="win32",s=2,h=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,a=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,n=/^\\\\([.?])/,l=/\\(?![!()+@[\]{}])/g;function u(m){return m.replace(/\\/g,"/")}e.unixify=u;function f(m,v){return r.resolve(m,v)}e.makeAbsolute=f;function o(m){if(m.charAt(0)==="."){const v=m.charAt(1);if(v==="/"||v==="\\")return m.slice(s)}return m}e.removeLeadingDotSegment=o,e.escape=i?c:d;function c(m){return m.replace(a,"\\$2")}e.escapeWindowsPath=c;function d(m){return m.replace(h,"\\$2")}e.escapePosixPath=d,e.convertPathToPattern=i?p:g;function p(m){return c(m).replace(n,"//$1").replace(l,"/")}e.convertWindowsPathToPattern=p;function g(m){return d(m)}e.convertPosixPathToPattern=g})),x2=I.__commonJSMin(((e,t)=>{t.exports=function(i){if(typeof i!="string"||i==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(i);){if(s[2])return!0;i=i.slice(s.index+s[0].length)}return!1}})),$2=I.__commonJSMin(((e,t)=>{var r=x2(),i={"{":"}","(":")","[":"]"},s=function(a){if(a[0]==="!")return!0;for(var n=0,l=-2,u=-2,f=-2,o=-2,c=-2;n<a.length;){if(a[n]==="*"||a[n+1]==="?"&&/[\].+)]/.test(a[n])||u!==-1&&a[n]==="["&&a[n+1]!=="]"&&(u<n&&(u=a.indexOf("]",n)),u>n&&(c===-1||c>u||(c=a.indexOf("\\",n),c===-1||c>u)))||f!==-1&&a[n]==="{"&&a[n+1]!=="}"&&(f=a.indexOf("}",n),f>n&&(c=a.indexOf("\\",n),c===-1||c>f))||o!==-1&&a[n]==="("&&a[n+1]==="?"&&/[:!=]/.test(a[n+2])&&a[n+3]!==")"&&(o=a.indexOf(")",n),o>n&&(c=a.indexOf("\\",n),c===-1||c>o))||l!==-1&&a[n]==="("&&a[n+1]!=="|"&&(l<n&&(l=a.indexOf("|",n)),l!==-1&&a[l+1]!==")"&&(o=a.indexOf(")",l),o>l&&(c=a.indexOf("\\",l),c===-1||c>o))))return!0;if(a[n]==="\\"){var d=a[n+1];n+=2;var p=i[d];if(p){var g=a.indexOf(p,n);g!==-1&&(n=g+1)}if(a[n]==="!")return!0}else n++}return!1},h=function(a){if(a[0]==="!")return!0;for(var n=0;n<a.length;){if(/[*?{}()[\]]/.test(a[n]))return!0;if(a[n]==="\\"){var l=a[n+1];n+=2;var u=i[l];if(u){var f=a.indexOf(u,n);f!==-1&&(n=f+1)}if(a[n]==="!")return!0}else n++}return!1};t.exports=function(n,l){if(typeof n!="string"||n==="")return!1;if(r(n))return!0;var u=s;return l&&l.strict===!1&&(u=h),u(n)}})),B2=I.__commonJSMin(((e,t)=>{var r=$2(),i=require("path").posix.dirname,s=require("os").platform()==="win32",h="/",a=/\\/g,n=/[\{\[].*[\}\]]$/,l=/(^|[^\\])([\{\[]|\([^\)]+$)/,u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(o,c){Object.assign({flipBackslashes:!0},c).flipBackslashes&&s&&o.indexOf(h)<0&&(o=o.replace(a,h)),n.test(o)&&(o+=h),o+="a";do o=i(o);while(r(o)||l.test(o));return o.replace(u,"$1")}})),Dl=I.__commonJSMin((e=>{e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(i=>i.type===r),e.exceedsLimit=(t,r,i=1,s)=>s===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=s,e.escapeNode=(t,r=0,i)=>{const s=t.nodes[r];s&&(i&&s.type===i||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),e.flatten=(...t)=>{const r=[],i=s=>{for(let h=0;h<s.length;h++){const a=s[h];if(Array.isArray(a)){i(a);continue}a!==void 0&&r.push(a)}return r};return i(t),r}})),Al=I.__commonJSMin(((e,t)=>{var r=Dl();t.exports=(i,s={})=>{const h=(a,n={})=>{const l=s.escapeInvalid&&r.isInvalidBrace(n),u=a.invalid===!0&&s.escapeInvalid===!0;let f="";if(a.value)return(l||u)&&r.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(const o of a.nodes)f+=h(o);return f};return h(i)}})),M2=I.__commonJSMin(((e,t)=>{t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}})),P2=I.__commonJSMin(((e,t)=>{var r=M2(),i=(y,w,_)=>{if(r(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(w===void 0||y===w)return String(y);if(r(w)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let b={relaxZeros:!0,..._};typeof b.strictZeros=="boolean"&&(b.relaxZeros=b.strictZeros===!1);let E=String(b.relaxZeros),S=String(b.shorthand),A=String(b.capture),C=String(b.wrap),T=y+":"+w+"="+E+S+A+C;if(i.cache.hasOwnProperty(T))return i.cache[T].result;let U=Math.min(y,w),$=Math.max(y,w);if(Math.abs(U-$)===1){let N=y+"|"+w;return b.capture?`(${N})`:b.wrap===!1?N:`(?:${N})`}let z=m(y)||m(w),V={min:y,max:w,a:U,b:$},H=[],L=[];return z&&(V.isPadded=z,V.maxLen=String(V.max).length),U<0&&(L=n($<0?Math.abs($):1,Math.abs(U),V,b),U=V.a=0),$>=0&&(H=n(U,$,V,b)),V.negatives=L,V.positives=H,V.result=s(L,H,b),b.capture===!0?V.result=`(${V.result})`:b.wrap!==!1&&H.length+L.length>1&&(V.result=`(?:${V.result})`),i.cache[T]=V,V.result};function s(y,w,_){let b=l(y,w,"-",!1,_)||[],E=l(w,y,"",!1,_)||[],S=l(y,w,"-?",!0,_)||[];return b.concat(S).concat(E).join("|")}function h(y,w){let _=1,b=1,E=c(y,_),S=new Set([w]);for(;y<=E&&E<=w;)S.add(E),_+=1,E=c(y,_);for(E=d(w+1,b)-1;y<E&&E<=w;)S.add(E),b+=1,E=d(w+1,b)-1;return S=[...S],S.sort(f),S}function a(y,w,_){if(y===w)return{pattern:y,count:[],digits:0};let b=u(y,w),E=b.length,S="",A=0;for(let C=0;C<E;C++){let[T,U]=b[C];T===U?S+=T:T!=="0"||U!=="9"?S+=g(T,U,_):A++}return A&&(S+=_.shorthand===!0?"\\d":"[0-9]"),{pattern:S,count:[A],digits:E}}function n(y,w,_,b){let E=h(y,w),S=[],A=y,C;for(let T=0;T<E.length;T++){let U=E[T],$=a(String(A),String(U),b),z="";if(!_.isPadded&&C&&C.pattern===$.pattern){C.count.length>1&&C.count.pop(),C.count.push($.count[0]),C.string=C.pattern+p(C.count),A=U+1;continue}_.isPadded&&(z=v(U,_,b)),$.string=z+$.pattern+p($.count),S.push($),A=U+1,C=$}return S}function l(y,w,_,b,E){let S=[];for(let A of y){let{string:C}=A;!b&&!o(w,"string",C)&&S.push(_+C),b&&o(w,"string",C)&&S.push(_+C)}return S}function u(y,w){let _=[];for(let b=0;b<y.length;b++)_.push([y[b],w[b]]);return _}function f(y,w){return y>w?1:w>y?-1:0}function o(y,w,_){return y.some(b=>b[w]===_)}function c(y,w){return Number(String(y).slice(0,-w)+"9".repeat(w))}function d(y,w){return y-y%Math.pow(10,w)}function p(y){let[w=0,_=""]=y;return _||w>1?`{${w+(_?","+_:"")}}`:""}function g(y,w,_){return`[${y}${w-y===1?"":"-"}${w}]`}function m(y){return/^-?(0+)\d/.test(y)}function v(y,w,_){if(!w.isPadded)return y;let b=Math.abs(w.maxLen-String(y).length),E=_.relaxZeros!==!1;switch(b){case 0:return"";case 1:return E?"0?":"0";case 2:return E?"0{0,2}":"00";default:return E?`0{0,${b}}`:`0{${b}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i})),$m=I.__commonJSMin(((e,t)=>{var r=require("util"),i=P2(),s=b=>b!==null&&typeof b=="object"&&!Array.isArray(b),h=b=>E=>b===!0?Number(E):String(E),a=b=>typeof b=="number"||typeof b=="string"&&b!=="",n=b=>Number.isInteger(+b),l=b=>{let E=`${b}`,S=-1;if(E[0]==="-"&&(E=E.slice(1)),E==="0")return!1;for(;E[++S]==="0";);return S>0},u=(b,E,S)=>typeof b=="string"||typeof E=="string"?!0:S.stringify===!0,f=(b,E,S)=>{if(E>0){let A=b[0]==="-"?"-":"";A&&(b=b.slice(1)),b=A+b.padStart(A?E-1:E,"0")}return S===!1?String(b):b},o=(b,E)=>{let S=b[0]==="-"?"-":"";for(S&&(b=b.slice(1),E--);b.length<E;)b="0"+b;return S?"-"+b:b},c=(b,E,S)=>{b.negatives.sort(($,z)=>$<z?-1:$>z?1:0),b.positives.sort(($,z)=>$<z?-1:$>z?1:0);let A=E.capture?"":"?:",C="",T="",U;return b.positives.length&&(C=b.positives.map($=>o(String($),S)).join("|")),b.negatives.length&&(T=`-(${A}${b.negatives.map($=>o(String($),S)).join("|")})`),C&&T?U=`${C}|${T}`:U=C||T,E.wrap?`(${A}${U})`:U},d=(b,E,S,A)=>{if(S)return i(b,E,{wrap:!1,...A});let C=String.fromCharCode(b);return b===E?C:`[${C}-${String.fromCharCode(E)}]`},p=(b,E,S)=>{if(Array.isArray(b)){let A=S.wrap===!0,C=S.capture?"":"?:";return A?`(${C}${b.join("|")})`:b.join("|")}return i(b,E,S)},g=(...b)=>new RangeError("Invalid range arguments: "+r.inspect(...b)),m=(b,E,S)=>{if(S.strictRanges===!0)throw g([b,E]);return[]},v=(b,E)=>{if(E.strictRanges===!0)throw new TypeError(`Expected step "${b}" to be a number`);return[]},y=(b,E,S=1,A={})=>{let C=Number(b),T=Number(E);if(!Number.isInteger(C)||!Number.isInteger(T)){if(A.strictRanges===!0)throw g([b,E]);return[]}C===0&&(C=0),T===0&&(T=0);let U=C>T,$=String(b),z=String(E),V=String(S);S=Math.max(Math.abs(S),1);let H=l($)||l(z)||l(V),L=H?Math.max($.length,z.length,V.length):0,N=H===!1&&u(b,E,A)===!1,q=A.transform||h(N);if(A.toRegex&&S===1)return d(o(b,L),o(E,L),!0,A);let J={negatives:[],positives:[]},P=O=>J[O<0?"negatives":"positives"].push(Math.abs(O)),B=[],F=0;for(;U?C>=T:C<=T;)A.toRegex===!0&&S>1?P(C):B.push(f(q(C,F),L,N)),C=U?C-S:C+S,F++;return A.toRegex===!0?S>1?c(J,A,L):p(B,null,{wrap:!1,...A}):B},w=(b,E,S=1,A={})=>{if(!n(b)&&b.length>1||!n(E)&&E.length>1)return m(b,E,A);let C=A.transform||(N=>String.fromCharCode(N)),T=`${b}`.charCodeAt(0),U=`${E}`.charCodeAt(0),$=T>U,z=Math.min(T,U),V=Math.max(T,U);if(A.toRegex&&S===1)return d(z,V,!1,A);let H=[],L=0;for(;$?T>=U:T<=U;)H.push(C(T,L)),T=$?T-S:T+S,L++;return A.toRegex===!0?p(H,null,{wrap:!1,options:A}):H},_=(b,E,S,A={})=>{if(E==null&&a(b))return[b];if(!a(b)||!a(E))return m(b,E,A);if(typeof S=="function")return _(b,E,1,{transform:S});if(s(S))return _(b,E,0,S);let C={...A};return C.capture===!0&&(C.wrap=!0),S=S||C.step||1,n(S)?n(b)&&n(E)?y(b,E,S,C):w(b,E,Math.max(Math.abs(S),1),C):S!=null&&!s(S)?v(S,C):_(b,E,1,S)};t.exports=_})),j2=I.__commonJSMin(((e,t)=>{var r=$m(),i=Dl(),s=(h,a={})=>{const n=(l,u={})=>{const f=i.isInvalidBrace(u),o=l.invalid===!0&&a.escapeInvalid===!0,c=f===!0||o===!0,d=a.escapeInvalid===!0?"\\":"";let p="";if(l.isOpen===!0)return d+l.value;if(l.isClose===!0)return console.log("node.isClose",d,l.value),d+l.value;if(l.type==="open")return c?d+l.value:"(";if(l.type==="close")return c?d+l.value:")";if(l.type==="comma")return l.prev.type==="comma"?"":c?l.value:"|";if(l.value)return l.value;if(l.nodes&&l.ranges>0){const g=i.reduce(l.nodes),m=r(...g,{...a,wrap:!1,toRegex:!0,strictZeros:!0});if(m.length!==0)return g.length>1&&m.length>1?`(${m})`:m}if(l.nodes)for(const g of l.nodes)p+=n(g,l);return p};return n(h)};t.exports=s})),U2=I.__commonJSMin(((e,t)=>{var r=$m(),i=Al(),s=Dl(),h=(n="",l="",u=!1)=>{const f=[];if(n=[].concat(n),l=[].concat(l),!l.length)return n;if(!n.length)return u?s.flatten(l).map(o=>`{${o}}`):l;for(const o of n)if(Array.isArray(o))for(const c of o)f.push(h(c,l,u));else for(let c of l)u===!0&&typeof c=="string"&&(c=`{${c}}`),f.push(Array.isArray(c)?h(o,c,u):o+c);return s.flatten(f)},a=(n,l={})=>{const u=l.rangeLimit===void 0?1e3:l.rangeLimit,f=(o,c={})=>{o.queue=[];let d=c,p=c.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(o.invalid||o.dollar){p.push(h(p.pop(),i(o,l)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){p.push(h(p.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){const y=s.reduce(o.nodes);if(s.exceedsLimit(...y,l.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let w=r(...y,l);w.length===0&&(w=i(o,l)),p.push(h(p.pop(),w)),o.nodes=[];return}const g=s.encloseBrace(o);let m=o.queue,v=o;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,m=v.queue;for(let y=0;y<o.nodes.length;y++){const w=o.nodes[y];if(w.type==="comma"&&o.type==="brace"){y===1&&m.push(""),m.push("");continue}if(w.type==="close"){p.push(h(p.pop(),m,g));continue}if(w.value&&w.type!=="open"){m.push(h(m.pop(),w.value));continue}w.nodes&&f(w,o)}return m};return s.flatten(f(n))};t.exports=a})),H2=I.__commonJSMin(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
687
|
-
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}})),q2=I.__commonJSMin(((e,t)=>{var r=Al(),{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:o,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=H2(),y=(w,_={})=>{if(typeof w!="string")throw new TypeError("Expected a string");const b=_||{},E=typeof b.maxLength=="number"?Math.min(i,b.maxLength):i;if(w.length>E)throw new SyntaxError(`Input length (${w.length}), exceeds max characters (${E})`);const S={type:"root",input:w,nodes:[]},A=[S];let C=S,T=S,U=0;const $=w.length;let z=0,V=0,H;const L=()=>w[z++],N=q=>{if(q.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&q.type==="text"){T.value+=q.value;return}return C.nodes.push(q),q.parent=C,q.prev=T,T=q,q};for(N({type:"bos"});z<$;)if(C=A[A.length-1],H=L(),!(H===v||H===m)){if(H===s){N({type:"text",value:(_.keepEscaping?H:"")+L()});continue}if(H===d){N({type:"text",value:"\\"+H});continue}if(H===c){U++;let q;for(;z<$&&(q=L());){if(H+=q,q===c){U++;continue}if(q===s){H+=L();continue}if(q===d&&(U--,U===0))break}N({type:"text",value:H});continue}if(H===l){C=N({type:"paren",nodes:[]}),A.push(C),N({type:"text",value:H});continue}if(H===u){if(C.type!=="paren"){N({type:"text",value:H});continue}C=A.pop(),N({type:"text",value:H}),C=A[A.length-1];continue}if(H===p||H===g||H===h){const q=H;let J;for(_.keepQuotes!==!0&&(H="");z<$&&(J=L());){if(J===s){H+=J+L();continue}if(J===q){_.keepQuotes===!0&&(H+=J);break}H+=J}N({type:"text",value:H});continue}if(H===f){V++,C=N({type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||C.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]}),A.push(C),N({type:"open",value:H});continue}if(H===o){if(C.type!=="brace"){N({type:"text",value:H});continue}const q="close";C=A.pop(),C.close=!0,N({type:q,value:H}),V--,C=A[A.length-1];continue}if(H===a&&V>0){if(C.ranges>0){C.ranges=0;const q=C.nodes.shift();C.nodes=[q,{type:"text",value:r(C)}]}N({type:"comma",value:H}),C.commas++;continue}if(H===n&&V>0&&C.commas===0){const q=C.nodes;if(V===0||q.length===0){N({type:"text",value:H});continue}if(T.type==="dot"){if(C.range=[],T.value+=H,T.type="range",C.nodes.length!==3&&C.nodes.length!==5){C.invalid=!0,C.ranges=0,T.type="text";continue}C.ranges++,C.args=[];continue}if(T.type==="range"){q.pop();const J=q[q.length-1];J.value+=T.value+H,T=J,C.ranges--;continue}N({type:"dot",value:H});continue}N({type:"text",value:H})}do if(C=A.pop(),C.type!=="root"){C.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});const q=A[A.length-1],J=q.nodes.indexOf(C);q.nodes.splice(J,1,...C.nodes)}while(A.length>0);return N({type:"eos"}),S};t.exports=y})),z2=I.__commonJSMin(((e,t)=>{var r=Al(),i=j2(),s=U2(),h=q2(),a=(n,l={})=>{let u=[];if(Array.isArray(n))for(const f of n){const o=a.create(f,l);Array.isArray(o)?u.push(...o):u.push(o)}else u=[].concat(a.create(n,l));return l&&l.expand===!0&&l.nodupes===!0&&(u=[...new Set(u)]),u};a.parse=(n,l={})=>h(n,l),a.stringify=(n,l={})=>r(typeof n=="string"?a.parse(n,l):n,l),a.compile=(n,l={})=>(typeof n=="string"&&(n=a.parse(n,l)),i(n,l)),a.expand=(n,l={})=>{typeof n=="string"&&(n=a.parse(n,l));let u=s(n,l);return l.noempty===!0&&(u=u.filter(Boolean)),l.nodupes===!0&&(u=[...new Set(u)]),u},a.create=(n,l={})=>n===""||n.length<3?[n]:l.expand!==!0?a.compile(n,l):a.expand(n,l),t.exports=a})),Ks=I.__commonJSMin(((e,t)=>{var r=require("path"),i="\\\\/",s=`[^${i}]`,h=0,a="\\.",n="\\+",l="\\?",u="\\/",f="(?=.)",o="[^/]",c=`(?:${u}|$)`,d=`(?:^|${u})`,p=`${a}{1,2}${c}`,g={DOT_LITERAL:a,PLUS_LITERAL:n,QMARK_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:f,QMARK:o,END_ANCHOR:c,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${d}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${c})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${u}]`,STAR:`${o}*?`,START_ANCHOR:d},m={...g,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},v={__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:h,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:v,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,SEP:r.sep,extglobChars(y){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${y.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(y){return y===!0?m:g}}})),Zs=I.__commonJSMin((e=>{var t=require("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ks();e.isObject=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),e.hasRegexChars=n=>h.test(n),e.isRegexChar=n=>n.length===1&&e.hasRegexChars(n),e.escapeRegex=n=>n.replace(a,"\\$1"),e.toPosixSlashes=n=>n.replace(i,"/"),e.removeBackslashes=n=>n.replace(s,l=>l==="\\"?"":l),e.supportsLookbehinds=()=>{const n=process.version.slice(1).split(".").map(Number);return n.length===3&&n[0]>=9||n[0]===8&&n[1]>=10},e.isWindows=n=>n&&typeof n.windows=="boolean"?n.windows:r===!0||t.sep==="\\",e.escapeLast=(n,l,u)=>{const f=n.lastIndexOf(l,u);return f===-1?n:n[f-1]==="\\"?e.escapeLast(n,l,f-1):`${n.slice(0,f)}\\${n.slice(f)}`},e.removePrefix=(n,l={})=>{let u=n;return u.startsWith("./")&&(u=u.slice(2),l.prefix="./"),u},e.wrapOutput=(n,l={},u={})=>{let f=`${u.contains?"":"^"}(?:${n})${u.contains?"":"$"}`;return l.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}})),G2=I.__commonJSMin(((e,t)=>{var r=Zs(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:o,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}=Ks(),y=b=>b===u||b===h,w=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)},_=(b,E)=>{const S=E||{},A=b.length-1,C=S.parts===!0||S.scanToEnd===!0,T=[],U=[],$=[];let z=b,V=-1,H=0,L=0,N=!1,q=!1,J=!1,P=!1,B=!1,F=!1,O=!1,x=!1,Y=!1,oe=!1,pe=0,ye,W,M={value:"",depth:0,isGlob:!1};const G=()=>V>=A,X=()=>z.charCodeAt(V+1),ne=()=>(ye=W,z.charCodeAt(++V));for(;V<A;){W=ne();let De;if(W===h){O=M.backslashes=!0,W=ne(),W===f&&(F=!0);continue}if(F===!0||W===f){for(pe++;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,ne();continue}if(W===f){pe++;continue}if(F!==!0&&W===n&&(W=ne())===n){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(F!==!0&&W===a){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===g&&(pe--,pe===0)){F=!1,N=M.isBrace=!0,oe=!0;break}}if(C===!0)continue;break}if(W===u){if(T.push(V),U.push(M),M={value:"",depth:0,isGlob:!1},oe===!0)continue;if(ye===n&&V===H+1){H+=2;continue}L=V+1;continue}if(S.noext!==!0&&(W===d||W===s||W===i||W===p||W===l)&&X()===o){if(J=M.isGlob=!0,P=M.isExtglob=!0,oe=!0,W===l&&V===H&&(Y=!0),C===!0){for(;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,W=ne();continue}if(W===m){J=M.isGlob=!0,oe=!0;break}}continue}break}if(W===i){if(ye===i&&(B=M.isGlobstar=!0),J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===p){if(J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===c){for(;G()!==!0&&(De=ne());){if(De===h){O=M.backslashes=!0,ne();continue}if(De===v){q=M.isBracket=!0,J=M.isGlob=!0,oe=!0;break}}if(C===!0)continue;break}if(S.nonegate!==!0&&W===l&&V===H){x=M.negated=!0,H++;continue}if(S.noparen!==!0&&W===o){if(J=M.isGlob=!0,C===!0){for(;G()!==!0&&(W=ne());){if(W===o){O=M.backslashes=!0,W=ne();continue}if(W===m){oe=!0;break}}continue}break}if(J===!0){if(oe=!0,C===!0)continue;break}}S.noext===!0&&(P=!1,J=!1);let k=z,j="",ee="";H>0&&(j=z.slice(0,H),z=z.slice(H),L-=H),k&&J===!0&&L>0?(k=z.slice(0,L),ee=z.slice(L)):J===!0?(k="",ee=z):k=z,k&&k!==""&&k!=="/"&&k!==z&&y(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),S.unescape===!0&&(ee&&(ee=r.removeBackslashes(ee)),k&&O===!0&&(k=r.removeBackslashes(k)));const Se={prefix:j,input:b,start:H,base:k,glob:ee,isBrace:N,isBracket:q,isGlob:J,isExtglob:P,isGlobstar:B,negated:x,negatedExtglob:Y};if(S.tokens===!0&&(Se.maxDepth=0,y(W)||U.push(M),Se.tokens=U),S.parts===!0||S.tokens===!0){let De;for(let ve=0;ve<T.length;ve++){const $e=De?De+1:H,xe=T[ve],Pe=b.slice($e,xe);S.tokens&&(ve===0&&H!==0?(U[ve].isPrefix=!0,U[ve].value=j):U[ve].value=Pe,w(U[ve]),Se.maxDepth+=U[ve].depth),(ve!==0||Pe!=="")&&$.push(Pe),De=xe}if(De&&De+1<b.length){const ve=b.slice(De+1);$.push(ve),S.tokens&&(U[U.length-1].value=ve,w(U[U.length-1]),Se.maxDepth+=U[U.length-1].depth)}Se.slashes=T,Se.parts=$}return Se};t.exports=_})),J2=I.__commonJSMin(((e,t)=>{var r=Ks(),i=Zs(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:l}=r,u=(_,b)=>{if(typeof b.expandRange=="function")return b.expandRange(..._,b);_.sort();const E=`[${_.join("-")}]`;try{new RegExp(E)}catch{return _.map(A=>i.escapeRegex(A)).join("..")}return E},f=(_,b)=>`Missing ${_}: "${b}" - use "\\\\${b}" to match literal characters`,o=_=>{const b=[];let E=0,S=0,A=0,C="",T=!1;for(const U of _){if(T===!0){C+=U,T=!1;continue}if(U==="\\"){C+=U,T=!0;continue}if(U==='"'){A=A===1?0:1,C+=U;continue}if(A===0){if(U==="[")E++;else if(U==="]"&&E>0)E--;else if(E===0){if(U==="(")S++;else if(U===")"&&S>0)S--;else if(U==="|"&&S===0){b.push(C),C="";continue}}}C+=U}return b.push(C),b},c=_=>{let b=!1;for(const E of _){if(b===!0){b=!1;continue}if(E==="\\"){b=!0;continue}if(/[?*+@!()[\]{}]/.test(E))return!1}return!0},d=_=>{let b=_.trim(),E=!0;for(;E===!0;)E=!1,/^@\([^\\()[\]{}|]+\)$/.test(b)&&(b=b.slice(2,-1),E=!0);if(c(b))return b.replace(/\\(.)/g,"$1")},p=_=>{const b=_.map(d).filter(Boolean);for(let E=0;E<b.length;E++)for(let S=E+1;S<b.length;S++){const A=b[E],C=b[S],T=A[0];if(!(!T||A!==T.repeat(A.length)||C!==T.repeat(C.length))&&(A===C||A.startsWith(C)||C.startsWith(A)))return!0}return!1},g=(_,b=!0)=>{if(_[0]!=="+"&&_[0]!=="*"||_[1]!=="(")return;let E=0,S=0,A=0,C=!1;for(let T=1;T<_.length;T++){const U=_[T];if(C===!0){C=!1;continue}if(U==="\\"){C=!0;continue}if(U==='"'){A=A===1?0:1;continue}if(A!==1){if(U==="["){E++;continue}if(U==="]"&&E>0){E--;continue}if(!(E>0)){if(U==="("){S++;continue}if(U===")"&&(S--,S===0))return b===!0&&T!==_.length-1?void 0:{type:_[0],body:_.slice(2,T),end:T}}}}},m=_=>{let b=0;const E=[];for(;b<_.length;){const S=g(_.slice(b),!1);if(!S||S.type!=="*")return;const A=o(S.body).map(T=>T.trim());if(A.length!==1)return;const C=d(A[0]);if(!C||C.length!==1)return;E.push(C),b+=S.end+1}if(!(E.length<1))return`${E.length===1?i.escapeRegex(E[0]):`[${E.map(S=>i.escapeRegex(S)).join("")}]`}*`},v=_=>{let b=0,E=_.trim(),S=g(E);for(;S;)b++,E=S.body.trim(),S=g(E);return b},y=(_,b)=>{if(b.maxExtglobRecursion===!1)return{risky:!1};const E=typeof b.maxExtglobRecursion=="number"?b.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,S=o(_).map(A=>A.trim());if(S.length>1&&(S.some(A=>A==="")||S.some(A=>/^[*?]+$/.test(A))||p(S)))return{risky:!0};for(const A of S){const C=m(A);if(C)return{risky:!0,safeOutput:C};if(v(A)>E)return{risky:!0}}return{risky:!1}},w=(_,b)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=l[_]||_;const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s;let A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);const C={type:"bos",value:"",output:E.prepend||""},T=[C],U=E.capture?"":"?:",$=i.isWindows(b),z=r.globChars($),V=r.extglobChars(z),{DOT_LITERAL:H,PLUS_LITERAL:L,SLASH_LITERAL:N,ONE_CHAR:q,DOTS_SLASH:J,NO_DOT:P,NO_DOT_SLASH:B,NO_DOTS_SLASH:F,QMARK:O,QMARK_NO_DOT:x,STAR:Y,START_ANCHOR:oe}=z,pe=Q=>`(${U}(?:(?!${oe}${Q.dot?J:H}).)*?)`,ye=E.dot?"":P,W=E.dot?O:x;let M=E.bash===!0?pe(E):Y;E.capture&&(M=`(${M})`),typeof E.noext=="boolean"&&(E.noextglob=E.noext);const G={input:_,index:-1,start:0,dot:E.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:T};_=i.removePrefix(_,G),A=_.length;const X=[],ne=[],k=[];let j=C,ee;const Se=()=>G.index===A-1,De=G.peek=(Q=1)=>_[G.index+Q],ve=G.advance=()=>_[++G.index]||"",$e=()=>_.slice(G.index+1),xe=(Q="",ie=0)=>{G.consumed+=Q,G.index+=ie},Pe=Q=>{G.output+=Q.output!=null?Q.output:Q.value,xe(Q.value)},Re=()=>{let Q=1;for(;De()==="!"&&(De(2)!=="("||De(3)==="?");)ve(),G.start++,Q++;return Q%2===0?!1:(G.negated=!0,G.start++,!0)},D=Q=>{G[Q]++,k.push(Q)},se=Q=>{G[Q]--,k.pop()},he=Q=>{if(j.type==="globstar"){const ie=G.braces>0&&(Q.type==="comma"||Q.type==="brace"),ae=Q.extglob===!0||X.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!ie&&!ae&&(G.output=G.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=M,G.output+=j.output)}if(X.length&&Q.type!=="paren"&&(X[X.length-1].inner+=Q.value),(Q.value||Q.output)&&Pe(Q),j&&j.type==="text"&&Q.type==="text"){j.value+=Q.value,j.output=(j.output||"")+Q.value;return}Q.prev=j,T.push(Q),j=Q},de=(Q,ie)=>{const ae={...V[ie],conditions:1,inner:""};ae.prev=j,ae.parens=G.parens,ae.output=G.output,ae.startIndex=G.index,ae.tokensIndex=T.length;const _e=(E.capture?"(":"")+ae.open;D("parens"),he({type:Q,value:ie,output:G.output?"":q}),he({type:"paren",extglob:!0,value:ve(),output:_e}),X.push(ae)},re=Q=>{const ie=_.slice(Q.startIndex,G.index+1),ae=y(_.slice(Q.startIndex+2,G.index),E);if((Q.type==="plus"||Q.type==="star")&&ae.risky){const Ae=ae.safeOutput?(Q.output?"":q)+(E.capture?`(${ae.safeOutput})`:ae.safeOutput):void 0,Te=T[Q.tokensIndex];Te.type="text",Te.value=ie,Te.output=Ae||i.escapeRegex(ie);for(let K=Q.tokensIndex+1;K<T.length;K++)T[K].value="",T[K].output="",delete T[K].suffix;G.output=Q.output+Te.output,G.backtrack=!0,he({type:"paren",extglob:!0,value:ee,output:""}),se("parens");return}let _e=Q.close+(E.capture?")":""),Le;if(Q.type==="negate"){let Ae=M;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Ae=pe(E)),(Ae!==M||Se()||/^\)+$/.test($e()))&&(_e=Q.close=`)$))${Ae}`),Q.inner.includes("*")&&(Le=$e())&&/^\.[^\\/.]+$/.test(Le)&&(_e=Q.close=`)${w(Le,{...b,fastpaths:!1}).output})${Ae})`),Q.prev.type==="bos"&&(G.negatedExtglob=!0)}he({type:"paren",extglob:!0,value:ee,output:_e}),se("parens")};if(E.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let Q=!1,ie=_.replace(n,(ae,_e,Le,Ae,Te,K)=>Ae==="\\"?(Q=!0,ae):Ae==="?"?_e?_e+Ae+(Te?O.repeat(Te.length):""):K===0?W+(Te?O.repeat(Te.length):""):O.repeat(Le.length):Ae==="."?H.repeat(Le.length):Ae==="*"?_e?_e+Ae+(Te?M:""):M:_e?ae:`\\${ae}`);return Q===!0&&(E.unescape===!0?ie=ie.replace(/\\/g,""):ie=ie.replace(/\\+/g,ae=>ae.length%2===0?"\\\\":ae?"\\":"")),ie===_&&E.contains===!0?(G.output=_,G):(G.output=i.wrapOutput(ie,G,b),G)}for(;!Se();){if(ee=ve(),ee==="\0")continue;if(ee==="\\"){const ae=De();if(ae==="/"&&E.bash!==!0||ae==="."||ae===";")continue;if(!ae){ee+="\\",he({type:"text",value:ee});continue}const _e=/^\\+/.exec($e());let Le=0;if(_e&&_e[0].length>2&&(Le=_e[0].length,G.index+=Le,Le%2!==0&&(ee+="\\")),E.unescape===!0?ee=ve():ee+=ve(),G.brackets===0){he({type:"text",value:ee});continue}}if(G.brackets>0&&(ee!=="]"||j.value==="["||j.value==="[^")){if(E.posix!==!1&&ee===":"){const ae=j.value.slice(1);if(ae.includes("[")&&(j.posix=!0,ae.includes(":"))){const _e=j.value.lastIndexOf("["),Le=j.value.slice(0,_e),Ae=h[j.value.slice(_e+2)];if(Ae){j.value=Le+Ae,G.backtrack=!0,ve(),!C.output&&T.indexOf(j)===1&&(C.output=q);continue}}}(ee==="["&&De()!==":"||ee==="-"&&De()==="]")&&(ee=`\\${ee}`),ee==="]"&&(j.value==="["||j.value==="[^")&&(ee=`\\${ee}`),E.posix===!0&&ee==="!"&&j.value==="["&&(ee="^"),j.value+=ee,Pe({value:ee});continue}if(G.quotes===1&&ee!=='"'){ee=i.escapeRegex(ee),j.value+=ee,Pe({value:ee});continue}if(ee==='"'){G.quotes=G.quotes===1?0:1,E.keepQuotes===!0&&he({type:"text",value:ee});continue}if(ee==="("){D("parens"),he({type:"paren",value:ee});continue}if(ee===")"){if(G.parens===0&&E.strictBrackets===!0)throw new SyntaxError(f("opening","("));const ae=X[X.length-1];if(ae&&G.parens===ae.parens+1){re(X.pop());continue}he({type:"paren",value:ee,output:G.parens?")":"\\)"}),se("parens");continue}if(ee==="["){if(E.nobracket===!0||!$e().includes("]")){if(E.nobracket!==!0&&E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));ee=`\\${ee}`}else D("brackets");he({type:"bracket",value:ee});continue}if(ee==="]"){if(E.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){he({type:"text",value:ee,output:`\\${ee}`});continue}if(G.brackets===0){if(E.strictBrackets===!0)throw new SyntaxError(f("opening","["));he({type:"text",value:ee,output:`\\${ee}`});continue}se("brackets");const ae=j.value.slice(1);if(j.posix!==!0&&ae[0]==="^"&&!ae.includes("/")&&(ee=`/${ee}`),j.value+=ee,Pe({value:ee}),E.literalBrackets===!1||i.hasRegexChars(ae))continue;const _e=i.escapeRegex(j.value);if(G.output=G.output.slice(0,-j.value.length),E.literalBrackets===!0){G.output+=_e,j.value=_e;continue}j.value=`(${U}${_e}|${j.value})`,G.output+=j.value;continue}if(ee==="{"&&E.nobrace!==!0){D("braces");const ae={type:"brace",value:ee,output:"(",outputIndex:G.output.length,tokensIndex:G.tokens.length};ne.push(ae),he(ae);continue}if(ee==="}"){const ae=ne[ne.length-1];if(E.nobrace===!0||!ae){he({type:"text",value:ee,output:ee});continue}let _e=")";if(ae.dots===!0){const Le=T.slice(),Ae=[];for(let Te=Le.length-1;Te>=0&&(T.pop(),Le[Te].type!=="brace");Te--)Le[Te].type!=="dots"&&Ae.unshift(Le[Te].value);_e=u(Ae,E),G.backtrack=!0}if(ae.comma!==!0&&ae.dots!==!0){const Le=G.output.slice(0,ae.outputIndex),Ae=G.tokens.slice(ae.tokensIndex);ae.value=ae.output="\\{",ee=_e="\\}",G.output=Le;for(const Te of Ae)G.output+=Te.output||Te.value}he({type:"brace",value:ee,output:_e}),se("braces"),ne.pop();continue}if(ee==="|"){X.length>0&&X[X.length-1].conditions++,he({type:"text",value:ee});continue}if(ee===","){let ae=ee;const _e=ne[ne.length-1];_e&&k[k.length-1]==="braces"&&(_e.comma=!0,ae="|"),he({type:"comma",value:ee,output:ae});continue}if(ee==="/"){if(j.type==="dot"&&G.index===G.start+1){G.start=G.index+1,G.consumed="",G.output="",T.pop(),j=C;continue}he({type:"slash",value:ee,output:N});continue}if(ee==="."){if(G.braces>0&&j.type==="dot"){j.value==="."&&(j.output=H);const ae=ne[ne.length-1];j.type="dots",j.output+=ee,j.value+=ee,ae.dots=!0;continue}if(G.braces+G.parens===0&&j.type!=="bos"&&j.type!=="slash"){he({type:"text",value:ee,output:H});continue}he({type:"dot",value:ee,output:H});continue}if(ee==="?"){if(!(j&&j.value==="(")&&E.noextglob!==!0&&De()==="("&&De(2)!=="?"){de("qmark",ee);continue}if(j&&j.type==="paren"){const ae=De();let _e=ee;if(ae==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(ae)||ae==="<"&&!/<([!=]|\w+>)/.test($e()))&&(_e=`\\${ee}`),he({type:"text",value:ee,output:_e});continue}if(E.dot!==!0&&(j.type==="slash"||j.type==="bos")){he({type:"qmark",value:ee,output:x});continue}he({type:"qmark",value:ee,output:O});continue}if(ee==="!"){if(E.noextglob!==!0&&De()==="("&&(De(2)!=="?"||!/[!=<:]/.test(De(3)))){de("negate",ee);continue}if(E.nonegate!==!0&&G.index===0){Re();continue}}if(ee==="+"){if(E.noextglob!==!0&&De()==="("&&De(2)!=="?"){de("plus",ee);continue}if(j&&j.value==="("||E.regex===!1){he({type:"plus",value:ee,output:L});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||G.parens>0){he({type:"plus",value:ee});continue}he({type:"plus",value:L});continue}if(ee==="@"){if(E.noextglob!==!0&&De()==="("&&De(2)!=="?"){he({type:"at",extglob:!0,value:ee,output:""});continue}he({type:"text",value:ee});continue}if(ee!=="*"){(ee==="$"||ee==="^")&&(ee=`\\${ee}`);const ae=a.exec($e());ae&&(ee+=ae[0],G.index+=ae[0].length),he({type:"text",value:ee});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=ee,j.output=M,G.backtrack=!0,G.globstar=!0,xe(ee);continue}let Q=$e();if(E.noextglob!==!0&&/^\([^?]/.test(Q)){de("star",ee);continue}if(j.type==="star"){if(E.noglobstar===!0){xe(ee);continue}const ae=j.prev,_e=ae.prev,Le=ae.type==="slash"||ae.type==="bos",Ae=_e&&(_e.type==="star"||_e.type==="globstar");if(E.bash===!0&&(!Le||Q[0]&&Q[0]!=="/")){he({type:"star",value:ee,output:""});continue}const Te=G.braces>0&&(ae.type==="comma"||ae.type==="brace"),K=X.length&&(ae.type==="pipe"||ae.type==="paren");if(!Le&&ae.type!=="paren"&&!Te&&!K){he({type:"star",value:ee,output:""});continue}for(;Q.slice(0,3)==="/**";){const me=_[G.index+4];if(me&&me!=="/")break;Q=Q.slice(3),xe("/**",3)}if(ae.type==="bos"&&Se()){j.type="globstar",j.value+=ee,j.output=pe(E),G.output=j.output,G.globstar=!0,xe(ee);continue}if(ae.type==="slash"&&ae.prev.type!=="bos"&&!Ae&&Se()){G.output=G.output.slice(0,-(ae.output+j.output).length),ae.output=`(?:${ae.output}`,j.type="globstar",j.output=pe(E)+(E.strictSlashes?")":"|$)"),j.value+=ee,G.globstar=!0,G.output+=ae.output+j.output,xe(ee);continue}if(ae.type==="slash"&&ae.prev.type!=="bos"&&Q[0]==="/"){const me=Q[1]!==void 0?"|$":"";G.output=G.output.slice(0,-(ae.output+j.output).length),ae.output=`(?:${ae.output}`,j.type="globstar",j.output=`${pe(E)}${N}|${N}${me})`,j.value+=ee,G.output+=ae.output+j.output,G.globstar=!0,xe(ee+ve()),he({type:"slash",value:"/",output:""});continue}if(ae.type==="bos"&&Q[0]==="/"){j.type="globstar",j.value+=ee,j.output=`(?:^|${N}|${pe(E)}${N})`,G.output=j.output,G.globstar=!0,xe(ee+ve()),he({type:"slash",value:"/",output:""});continue}G.output=G.output.slice(0,-j.output.length),j.type="globstar",j.output=pe(E),j.value+=ee,G.output+=j.output,G.globstar=!0,xe(ee);continue}const ie={type:"star",value:ee,output:M};if(E.bash===!0){ie.output=".*?",(j.type==="bos"||j.type==="slash")&&(ie.output=ye+ie.output),he(ie);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&E.regex===!0){ie.output=ee,he(ie);continue}(G.index===G.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(G.output+=B,j.output+=B):E.dot===!0?(G.output+=F,j.output+=F):(G.output+=ye,j.output+=ye),De()!=="*"&&(G.output+=q,j.output+=q)),he(ie)}for(;G.brackets>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));G.output=i.escapeLast(G.output,"["),se("brackets")}for(;G.parens>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing",")"));G.output=i.escapeLast(G.output,"("),se("parens")}for(;G.braces>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","}"));G.output=i.escapeLast(G.output,"{"),se("braces")}if(E.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&he({type:"maybe_slash",value:"",output:`${N}?`}),G.backtrack===!0){G.output="";for(const Q of G.tokens)G.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(G.output+=Q.suffix)}return G};w.fastpaths=(_,b)=>{const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s,A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);_=l[_]||_;const C=i.isWindows(b),{DOT_LITERAL:T,SLASH_LITERAL:U,ONE_CHAR:$,DOTS_SLASH:z,NO_DOT:V,NO_DOTS:H,NO_DOTS_SLASH:L,STAR:N,START_ANCHOR:q}=r.globChars(C),J=E.dot?H:V,P=E.dot?L:V,B=E.capture?"":"?:",F={negated:!1,prefix:""};let O=E.bash===!0?".*?":N;E.capture&&(O=`(${O})`);const x=pe=>pe.noglobstar===!0?O:`(${B}(?:(?!${q}${pe.dot?z:T}).)*?)`,Y=pe=>{switch(pe){case"*":return`${J}${$}${O}`;case".*":return`${T}${$}${O}`;case"*.*":return`${J}${O}${T}${$}${O}`;case"*/*":return`${J}${O}${U}${$}${P}${O}`;case"**":return J+x(E);case"**/*":return`(?:${J}${x(E)}${U})?${P}${$}${O}`;case"**/*.*":return`(?:${J}${x(E)}${U})?${P}${O}${T}${$}${O}`;case"**/.*":return`(?:${J}${x(E)}${U})?${T}${$}${O}`;default:{const ye=/^(.*?)\.(\w+)$/.exec(pe);if(!ye)return;const W=Y(ye[1]);return W?W+T+ye[2]:void 0}}};let oe=Y(i.removePrefix(_,F));return oe&&E.strictSlashes!==!0&&(oe+=`${U}?`),oe},t.exports=w})),W2=I.__commonJSMin(((e,t)=>{var r=require("path"),i=G2(),s=J2(),h=Zs(),a=Ks(),n=u=>u&&typeof u=="object"&&!Array.isArray(u),l=(u,f,o=!1)=>{if(Array.isArray(u)){const w=u.map(b=>l(b,f,o));return b=>{for(const E of w){const S=E(b);if(S)return S}return!1}}const c=n(u)&&u.tokens&&u.input;if(u===""||typeof u!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const d=f||{},p=h.isWindows(f),g=c?l.compileRe(u,f):l.makeRe(u,f,!1,!0),m=g.state;delete g.state;let v=()=>!1;if(d.ignore){const w={...f,ignore:null,onMatch:null,onResult:null};v=l(d.ignore,w,o)}const y=(w,_=!1)=>{const{isMatch:b,match:E,output:S}=l.test(w,g,f,{glob:u,posix:p}),A={glob:u,state:m,regex:g,posix:p,input:w,output:S,match:E,isMatch:b};return typeof d.onResult=="function"&&d.onResult(A),b===!1?(A.isMatch=!1,_?A:!1):v(w)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,_?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),_?A:!0)};return o&&(y.state=m),y};l.test=(u,f,o,{glob:c,posix:d}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const p=o||{},g=p.format||(d?h.toPosixSlashes:null);let m=u===c,v=m&&g?g(u):u;return m===!1&&(v=g?g(u):u,m=v===c),(m===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?m=l.matchBase(u,f,o,d):m=f.exec(v)),{isMatch:!!m,match:m,output:v}},l.matchBase=(u,f,o,c=h.isWindows(o))=>(f instanceof RegExp?f:l.makeRe(f,o)).test(r.basename(u)),l.isMatch=(u,f,o)=>l(f,o)(u),l.parse=(u,f)=>Array.isArray(u)?u.map(o=>l.parse(o,f)):s(u,{...f,fastpaths:!1}),l.scan=(u,f)=>i(u,f),l.compileRe=(u,f,o=!1,c=!1)=>{if(o===!0)return u.output;const d=f||{},p=d.contains?"":"^",g=d.contains?"":"$";let m=`${p}(?:${u.output})${g}`;u&&u.negated===!0&&(m=`^(?!${m}).*$`);const v=l.toRegex(m,f);return c===!0&&(v.state=u),v},l.makeRe=(u,f={},o=!1,c=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return f.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(d.output=s.fastpaths(u,f)),d.output||(d=s(u,f)),l.compileRe(d,f,o,c)},l.toRegex=(u,f)=>{try{const o=f||{};return new RegExp(u,o.flags||(o.nocase?"i":""))}catch(o){if(f&&f.debug===!0)throw o;return/$^/}},l.constants=a,t.exports=l})),V2=I.__commonJSMin(((e,t)=>{t.exports=W2()})),Y2=I.__commonJSMin(((e,t)=>{var r=require("util"),i=z2(),s=V2(),h=Zs(),a=u=>u===""||u==="./",n=u=>{const f=u.indexOf("{");return f>-1&&u.indexOf("}",f)>-1},l=(u,f,o)=>{f=[].concat(f),u=[].concat(u);let c=new Set,d=new Set,p=new Set,g=0,m=y=>{p.add(y.output),o&&o.onResult&&o.onResult(y)};for(let y=0;y<f.length;y++){let w=s(String(f[y]),{...o,onResult:m},!0),_=w.state.negated||w.state.negatedExtglob;_&&g++;for(let b of u){let E=w(b,!0);(_?!E.isMatch:E.isMatch)&&(_?c.add(E.output):(c.delete(E.output),d.add(E.output)))}}let v=(g===f.length?[...p]:[...d]).filter(y=>!c.has(y));if(o&&v.length===0){if(o.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(o.nonull===!0||o.nullglob===!0)return o.unescape?f.map(y=>y.replace(/\\/g,"")):f}return v};l.match=l,l.matcher=(u,f)=>s(u,f),l.isMatch=(u,f,o)=>s(f,o)(u),l.any=l.isMatch,l.not=(u,f,o={})=>{f=[].concat(f).map(String);let c=new Set,d=[],p=m=>{o.onResult&&o.onResult(m),d.push(m.output)},g=new Set(l(u,f,{...o,onResult:p}));for(let m of d)g.has(m)||c.add(m);return[...c]},l.contains=(u,f,o)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);if(Array.isArray(f))return f.some(c=>l.contains(u,c,o));if(typeof f=="string"){if(a(u)||a(f))return!1;if(u.includes(f)||u.startsWith("./")&&u.slice(2).includes(f))return!0}return l.isMatch(u,f,{...o,contains:!0})},l.matchKeys=(u,f,o)=>{if(!h.isObject(u))throw new TypeError("Expected the first argument to be an object");let c=l(Object.keys(u),f,o),d={};for(let p of c)d[p]=u[p];return d},l.some=(u,f,o)=>{let c=[].concat(u);for(let d of[].concat(f)){let p=s(String(d),o);if(c.some(g=>p(g)))return!0}return!1},l.every=(u,f,o)=>{let c=[].concat(u);for(let d of[].concat(f)){let p=s(String(d),o);if(!c.every(g=>p(g)))return!1}return!0},l.all=(u,f,o)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);return[].concat(f).every(c=>s(c,o)(u))},l.capture=(u,f,o)=>{let c=h.isWindows(o),d=s.makeRe(String(u),{...o,capture:!0}).exec(c?h.toPosixSlashes(f):f);if(d)return d.slice(1).map(p=>p===void 0?"":p)},l.makeRe=(...u)=>s.makeRe(...u),l.scan=(...u)=>s.scan(...u),l.parse=(u,f)=>{let o=[];for(let c of[].concat(u||[]))for(let d of i(String(c),f))o.push(s.parse(d,f));return o},l.braces=(u,f)=>{if(typeof u!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!n(u)?[u]:i(u,f)},l.braceExpand=(u,f)=>{if(typeof u!="string")throw new TypeError("Expected a string");return l.braces(u,{...f,expand:!0})},l.hasBraces=n,t.exports=l})),K2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=require("path"),r=B2(),i=Y2(),s="**",h="\\",a=/[*?]|^!/,n=/\[[^[]*]/,l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,u=/[!*+?@]\([^(]*\)/,f=/,|\.\./,o=/(?!^)\/{2,}/g;function c(B,F={}){return!d(B,F)}e.isStaticPattern=c;function d(B,F={}){return B===""?!1:!!(F.caseSensitiveMatch===!1||B.includes(h)||a.test(B)||n.test(B)||l.test(B)||F.extglob!==!1&&u.test(B)||F.braceExpansion!==!1&&p(B))}e.isDynamicPattern=d;function p(B){const F=B.indexOf("{");if(F===-1)return!1;const O=B.indexOf("}",F+1);if(O===-1)return!1;const x=B.slice(F,O);return f.test(x)}function g(B){return v(B)?B.slice(1):B}e.convertToPositivePattern=g;function m(B){return"!"+B}e.convertToNegativePattern=m;function v(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=v;function y(B){return!v(B)}e.isPositivePattern=y;function w(B){return B.filter(v)}e.getNegativePatterns=w;function _(B){return B.filter(y)}e.getPositivePatterns=_;function b(B){return B.filter(F=>!S(F))}e.getPatternsInsideCurrentDirectory=b;function E(B){return B.filter(S)}e.getPatternsOutsideCurrentDirectory=E;function S(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=S;function A(B){return r(B,{flipBackslashes:!1})}e.getBaseDirectory=A;function C(B){return B.includes(s)}e.hasGlobStar=C;function T(B){return B.endsWith("/"+s)}e.endsWithSlashGlobStar=T;function U(B){const F=t.basename(B);return T(B)||c(F)}e.isAffectDepthOfReadingPattern=U;function $(B){return B.reduce((F,O)=>F.concat(z(O)),[])}e.expandPatternsWithBraceExpansion=$;function z(B){const F=i.braces(B,{expand:!0,nodupes:!0,keepEscaping:!0});return F.sort((O,x)=>O.length-x.length),F.filter(O=>O!=="")}e.expandBraceExpansion=z;function V(B,F){let{parts:O}=i.scan(B,Object.assign(Object.assign({},F),{parts:!0}));return O.length===0&&(O=[B]),O[0].startsWith("/")&&(O[0]=O[0].slice(1),O.unshift("")),O}e.getPatternParts=V;function H(B,F){return i.makeRe(B,F)}e.makeRe=H;function L(B,F){return B.map(O=>H(O,F))}e.convertPatternsToRe=L;function N(B,F){return F.some(O=>O.test(B))}e.matchAny=N;function q(B){return B.replace(o,"/")}e.removeDuplicateSlashes=q;function J(B){const F=[],O=[];for(const x of B)P(x)?F.push(x):O.push(x);return[F,O]}e.partitionAbsoluteAndRelative=J;function P(B){return t.isAbsolute(B)}e.isAbsolute=P})),Z2=I.__commonJSMin(((e,t)=>{var r=require("stream").PassThrough,i=Array.prototype.slice;t.exports=s;function s(){const a=[],n=i.call(arguments);let l=!1,u=n[n.length-1];u&&!Array.isArray(u)&&u.pipe==null?n.pop():u={};const f=u.end!==!1,o=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);const c=r(u);function d(){for(let m=0,v=arguments.length;m<v;m++)a.push(h(arguments[m],u));return p(),this}function p(){if(l)return;l=!0;let m=a.shift();if(!m){process.nextTick(g);return}Array.isArray(m)||(m=[m]);let v=m.length+1;function y(){--v>0||(l=!1,p())}function w(_){function b(){_.removeListener("merge2UnpipeEnd",b),_.removeListener("end",b),o&&_.removeListener("error",E),y()}function E(S){c.emit("error",S)}if(_._readableState.endEmitted)return y();_.on("merge2UnpipeEnd",b),_.on("end",b),o&&_.on("error",E),_.pipe(c,{end:!1}),_.resume()}for(let _=0;_<m.length;_++)w(m[_]);y()}function g(){l=!1,c.emit("queueDrain"),f&&c.end()}return c.setMaxListeners(0),c.add=d,c.on("unpipe",function(m){m.emit("merge2UnpipeEnd")}),n.length&&d.apply(null,n),c}function h(a,n){if(Array.isArray(a))for(let l=0,u=a.length;l<u;l++)a[l]=h(a[l],n);else{if(!a._readableState&&a.pipe&&(a=a.pipe(r(n))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}})),X2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Z2();function r(s){const h=t(s);return s.forEach(a=>{a.once("error",n=>h.emit("error",n))}),h.once("close",()=>i(s)),h.once("end",()=>i(s)),h}e.merge=r;function i(s){s.forEach(h=>h.emit("close"))}})),Q2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r})),Or=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=k2();e.array=t;var r=L2();e.errno=r;var i=F2();e.fs=i;var s=N2();e.path=s;var h=K2();e.pattern=h;var a=X2();e.stream=a;var n=Q2();e.string=n})),eI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Or();function r(f,o){const c=i(f,o),d=i(o.ignore,o),p=h(c),g=a(c,d),m=p.filter(_=>t.pattern.isStaticPattern(_,o)),v=p.filter(_=>t.pattern.isDynamicPattern(_,o)),y=s(m,g,!1),w=s(v,g,!0);return y.concat(w)}e.generate=r;function i(f,o){let c=f;return o.braceExpansion&&(c=t.pattern.expandPatternsWithBraceExpansion(c)),o.baseNameMatch&&(c=c.map(d=>d.includes("/")?d:`**/${d}`)),c.map(d=>t.pattern.removeDuplicateSlashes(d))}function s(f,o,c){const d=[],p=t.pattern.getPatternsOutsideCurrentDirectory(f),g=t.pattern.getPatternsInsideCurrentDirectory(f),m=n(p),v=n(g);return d.push(...l(m,o,c)),"."in v?d.push(u(".",g,o,c)):d.push(...l(v,o,c)),d}e.convertPatternsToTasks=s;function h(f){return t.pattern.getPositivePatterns(f)}e.getPositivePatterns=h;function a(f,o){return t.pattern.getNegativePatterns(f).concat(o).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=a;function n(f){return f.reduce((o,c)=>{const d=t.pattern.getBaseDirectory(c);return d in o?o[d].push(c):o[d]=[c],o},{})}e.groupPatternsByBaseDirectory=n;function l(f,o,c){return Object.keys(f).map(d=>u(d,f[d],o,c))}e.convertPatternGroupsToTasks=l;function u(f,o,c,d){return{dynamic:d,positive:o,negative:c,base:f,patterns:[].concat(o,c.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=u})),tI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(s,h,a){h.fs.lstat(s,(n,l)=>{if(n!==null){r(a,n);return}if(!l.isSymbolicLink()||!h.followSymbolicLink){i(a,l);return}h.fs.stat(s,(u,f)=>{if(u!==null){if(h.throwErrorOnBrokenSymbolicLink){r(a,u);return}i(a,l);return}h.markSymbolicLink&&(f.isSymbolicLink=()=>!0),i(a,f)})})}e.read=t;function r(s,h){s(h)}function i(s,h){s(null,h)}})),rI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){const s=i.fs.lstatSync(r);if(!s.isSymbolicLink()||!i.followSymbolicLink)return s;try{const h=i.fs.statSync(r);return i.markSymbolicLink&&(h.isSymbolicLink=()=>!0),h}catch(h){if(!i.throwErrorOnBrokenSymbolicLink)return s;throw h}}e.read=t})),iI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r})),nI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=iI(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,s){return i??s}};e.default=r})),Ci=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=tI(),r=rI(),i=nI();e.Settings=i.default;function s(n,l,u){if(typeof l=="function"){t.read(n,a(),l);return}t.read(n,a(l),u)}e.stat=s;function h(n,l){const u=a(l);return r.read(n,u)}e.statSync=h;function a(n={}){return n instanceof i.default?n:new i.default(n)}})),sI=I.__commonJSMin(((e,t)=>{var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(s=>setTimeout(()=>{throw s},0))})),aI=I.__commonJSMin(((e,t)=>{t.exports=i;var r=sI();function i(s,h){let a,n,l,u=!0;Array.isArray(s)?(a=[],n=s.length):(l=Object.keys(s),a={},n=l.length);function f(c){function d(){h&&h(c,a),h=null}u?r(d):d()}function o(c,d,p){a[c]=p,(--n===0||d)&&f(d)}n?l?l.forEach(function(c){s[c](function(d,p){o(c,d,p)})}):s.forEach(function(c,d){c(function(p,g){o(d,p,g)})}):f(null),u=!1}})),Bm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),s=10,h=10,a=r>s,n=r===s&&i>=h;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||n})),oI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function r(i,s){return new t(i,s)}e.createDirentFromStats=r})),Mm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=oI();e.fs=t})),Pm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,s){return r.endsWith(s)?r+i:r+s+i}e.joinPathSegments=t})),uI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Ci(),r=aI(),i=Bm(),s=Mm(),h=Pm();function a(c,d,p){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){n(c,d,p);return}u(c,d,p)}e.read=a;function n(c,d,p){d.fs.readdir(c,{withFileTypes:!0},(g,m)=>{if(g!==null){f(p,g);return}const v=m.map(y=>({dirent:y,name:y.name,path:h.joinPathSegments(c,y.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){o(p,v);return}r(v.map(y=>l(y,d)),(y,w)=>{if(y!==null){f(p,y);return}o(p,w)})})}e.readdirWithFileTypes=n;function l(c,d){return p=>{if(!c.dirent.isSymbolicLink()){p(null,c);return}d.fs.stat(c.path,(g,m)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){p(g);return}p(null,c);return}c.dirent=s.fs.createDirentFromStats(c.name,m),p(null,c)})}}function u(c,d,p){d.fs.readdir(c,(g,m)=>{if(g!==null){f(p,g);return}r(m.map(v=>{const y=h.joinPathSegments(c,v,d.pathSegmentSeparator);return w=>{t.stat(y,d.fsStatSettings,(_,b)=>{if(_!==null){w(_);return}const E={name:v,path:y,dirent:s.fs.createDirentFromStats(v,b)};d.stats&&(E.stats=b),w(null,E)})}}),(v,y)=>{if(v!==null){f(p,v);return}o(p,y)})})}e.readdir=u;function f(c,d){c(d)}function o(c,d){c(null,d)}})),lI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Ci(),r=Bm(),i=Mm(),s=Pm();function h(l,u){return!u.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(l,u):n(l,u)}e.read=h;function a(l,u){return u.fs.readdirSync(l,{withFileTypes:!0}).map(f=>{const o={dirent:f,name:f.name,path:s.joinPathSegments(l,f.name,u.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&u.followSymbolicLinks)try{const c=u.fs.statSync(o.path);o.dirent=i.fs.createDirentFromStats(o.name,c)}catch(c){if(u.throwErrorOnBrokenSymbolicLink)throw c}return o})}e.readdirWithFileTypes=a;function n(l,u){return u.fs.readdirSync(l).map(f=>{const o=s.joinPathSegments(l,f,u.pathSegmentSeparator),c=t.statSync(o,u.fsStatSettings),d={name:f,path:o,dirent:i.fs.createDirentFromStats(f,c)};return u.stats&&(d.stats=c),d})}e.readdir=n})),cI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r})),hI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Ci(),i=cI(),s=class{constructor(h={}){this._options=h,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(h,a){return h??a}};e.default=s})),Cl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=uI(),r=lI(),i=hI();e.Settings=i.default;function s(n,l,u){if(typeof l=="function"){t.read(n,a(),l);return}t.read(n,a(l),u)}e.scandir=s;function h(n,l){const u=a(l);return r.read(n,u)}e.scandirSync=h;function a(n={}){return n instanceof i.default?n:new i.default(n)}})),fI=I.__commonJSMin(((e,t)=>{function r(i){var s=new i,h=s;function a(){var l=s;return l.next?s=l.next:(s=new i,h=s),l.next=null,l}function n(l){h.next=l,h=l}return{get:a,release:n}}t.exports=r})),dI=I.__commonJSMin(((e,t)=>{var r=fI();function i(n,l,u){if(typeof n=="function"&&(u=l,l=n,n=null),!(u>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var f=r(h),o=null,c=null,d=0,p=null,g={push:E,drain:s,saturated:s,pause:v,paused:!1,get concurrency(){return u},set concurrency(z){if(!(z>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(u=z,!g.paused)for(;o&&d<u;)d++,A()},running:m,resume:_,idle:b,length:y,getQueue:w,unshift:S,empty:s,kill:C,killAndDrain:T,error:$,abort:U};return g;function m(){return d}function v(){g.paused=!0}function y(){for(var z=o,V=0;z;)z=z.next,V++;return V}function w(){for(var z=o,V=[];z;)V.push(z.value),z=z.next;return V}function _(){if(g.paused){if(g.paused=!1,o===null){d++,A();return}for(;o&&d<u;)d++,A()}}function b(){return d===0&&g.length()===0}function E(z,V){var H=f.get();H.context=n,H.release=A,H.value=z,H.callback=V||s,H.errorHandler=p,d>=u||g.paused?c?(c.next=H,c=H):(o=H,c=H,g.saturated()):(d++,l.call(n,H.value,H.worked))}function S(z,V){var H=f.get();H.context=n,H.release=A,H.value=z,H.callback=V||s,H.errorHandler=p,d>=u||g.paused?o?(H.next=o,o=H):(o=H,c=H,g.saturated()):(d++,l.call(n,H.value,H.worked))}function A(z){z&&f.release(z);var V=o;V&&d<=u?g.paused?d--:(c===o&&(c=null),o=V.next,V.next=null,l.call(n,V.value,V.worked),c===null&&g.empty()):--d===0&&g.drain()}function C(){o=null,c=null,g.drain=s}function T(){o=null,c=null,g.drain(),g.drain=s}function U(){var z=o;for(o=null,c=null;z;){var V=z.next,H=z.callback,L=z.errorHandler,N=z.value,q=z.context;z.value=null,z.callback=s,z.errorHandler=null,L&&L(new Error("abort"),N),H.call(q,new Error("abort")),z.release(z),z=V}g.drain=s}function $(z){p=z}}function s(){}function h(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null,this.errorHandler=null;var n=this;this.worked=function(u,f){var o=n.callback,c=n.errorHandler,d=n.value;n.value=null,n.callback=s,n.errorHandler&&c(u,d),o.call(n.context,u,f),n.release(n)}}function a(n,l,u){typeof n=="function"&&(u=l,l=n,n=null);function f(v,y){l.call(this,v).then(function(w){y(null,w)},y)}var o=i(n,f,u),c=o.push,d=o.unshift;return o.push=p,o.unshift=g,o.drained=m,o;function p(v){var y=new Promise(function(w,_){c(v,function(b,E){if(b){_(b);return}w(E)})});return y.catch(s),y}function g(v){var y=new Promise(function(w,_){d(v,function(b,E){if(b){_(b);return}w(E)})});return y.catch(s),y}function m(){return new Promise(function(v){process.nextTick(function(){if(o.idle())v();else{var y=o.drain;o.drain=function(){typeof y=="function"&&y(),v(),o.drain=y}}})})}}t.exports=i,t.exports.promise=a})),Tl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(h,a){return h.errorFilter===null?!0:!h.errorFilter(a)}e.isFatalError=t;function r(h,a){return h===null||h(a)}e.isAppliedFilter=r;function i(h,a){return h.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=i;function s(h,a,n){return h===""?a:h.endsWith(n)?h+a:h+n+a}e.joinPathSegments=s})),jm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Tl(),r=class{constructor(i,s){this._root=i,this._settings=s,this._root=t.replacePathSegmentSeparator(i,s.pathSegmentSeparator)}};e.default=r})),Um=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("events"),r=Cl(),i=dI(),s=Tl(),h=jm(),a=class extends h.default{constructor(n,l){super(n,l),this._settings=l,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,l){const u={directory:n,base:l};this._queue.push(u,f=>{f!==null&&this._handleError(f)})}_worker(n,l){this._scandir(n.directory,this._settings.fsScandirSettings,(u,f)=>{if(u!==null){l(u,void 0);return}for(const o of f)this._handleEntry(o,n.base);l(null,void 0)})}_handleError(n){this._isDestroyed||!s.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,l){if(this._isDestroyed||this._isFatalError)return;const u=n.path;l!==void 0&&(n.path=s.joinPathSegments(l,n.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(u,l===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};e.default=a})),pI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Um(),r=class{constructor(h,a){this._root=h,this._settings=a,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(h){this._reader.onError(a=>{i(h,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{s(h,this._storage)}),this._reader.read()}};e.default=r;function i(h,a){h(a)}function s(h,a){h(null,a)}})),mI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Um(),i=class{constructor(s,h){this._root=s,this._settings=h,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(s=>{this._stream.emit("error",s)}),this._reader.onEntry(s=>{this._stream.push(s)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i})),gI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Cl(),r=Tl(),i=jm(),s=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(h,a){this._queue.add({directory:h,base:a})}_handleQueue(){for(const h of this._queue.values())this._handleDirectory(h.directory,h.base)}_handleDirectory(h,a){try{const n=this._scandir(h,this._settings.fsScandirSettings);for(const l of n)this._handleEntry(l,a)}catch(n){this._handleError(n)}}_handleError(h){if(r.isFatalError(this._settings,h))throw h}_handleEntry(h,a){const n=h.path;a!==void 0&&(h.path=r.joinPathSegments(a,h.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,h)&&this._pushToStorage(h),h.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,h)&&this._pushToQueue(n,a===void 0?void 0:h.path)}_pushToStorage(h){this._storage.push(h)}};e.default=s})),vI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gI(),r=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r})),yI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Cl(),i=class{constructor(s={}){this._options=s,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(s,h){return s??h}};e.default=i})),Rl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=pI(),r=mI(),i=vI(),s=yI();e.Settings=s.default;function h(u,f,o){if(typeof f=="function"){new t.default(u,l()).read(f);return}new t.default(u,l(f)).read(o)}e.walk=h;function a(u,f){const o=l(f);return new i.default(u,o).read()}e.walkSync=a;function n(u,f){const o=l(f);return new r.default(u,o).read()}e.walkStream=n;function l(u={}){return u instanceof s.default?u:new s.default(u)}})),Ol=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Ci(),i=Or(),s=class{constructor(h){this._settings=h,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(h){return t.resolve(this._settings.cwd,h)}_makeEntry(h,a){const n={name:a,path:a,dirent:i.fs.createDirentFromStats(a,h)};return this._settings.stats&&(n.stats=h),n}_isFatalError(h){return!i.errno.isEnoentCodeError(h)&&!this._settings.suppressErrors}};e.default=s})),Hm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Ci(),i=Rl(),s=Ol(),h=class extends s.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(a,n){return this._walkStream(a,n)}static(a,n){const l=a.map(this._getFullEntryPath,this),u=new t.PassThrough({objectMode:!0});u._write=(f,o,c)=>this._getEntry(l[f],a[f],n).then(d=>{d!==null&&n.entryFilter(d)&&u.push(d),f===l.length-1&&u.end(),c()}).catch(c);for(let f=0;f<l.length;f++)u.write(f);return u}_getEntry(a,n,l){return this._getStat(a).then(u=>this._makeEntry(u,n)).catch(u=>{if(l.errorFilter(u))return null;throw u})}_getStat(a){return new Promise((n,l)=>{this._stat(a,this._fsStatSettings,(u,f)=>u===null?n(f):l(u))})}};e.default=h})),_I=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Rl(),r=Ol(),i=Hm(),s=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(h,a){return new Promise((n,l)=>{this._walkAsync(h,a,(u,f)=>{u===null?n(f):l(u)})})}async static(h,a){const n=[],l=this._readerStream.static(h,a);return new Promise((u,f)=>{l.once("error",f),l.on("data",o=>n.push(o)),l.once("end",()=>u(n))})}};e.default=s})),EI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i,s,h){this._patterns=i,this._settings=s,this._micromatchOptions=h,this._storage=[],this._fillStorage()}_fillStorage(){for(const i of this._patterns){const s=this._getPatternSegments(i),h=this._splitSegmentsIntoSections(s);this._storage.push({complete:h.length<=1,pattern:i,segments:s,sections:h})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,s=>s.dynamic&&t.pattern.hasGlobStar(s.pattern))}};e.default=r})),bI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=EI(),r=class extends t.default{match(i){const s=i.split("/"),h=s.length,a=this._storage.filter(n=>!n.complete||n.segments.length>h);for(const n of a){const l=n.sections[0];if(!n.complete&&h>l.length||s.every((u,f)=>{const o=n.segments[f];return!!(o.dynamic&&o.patternRe.test(u)||!o.dynamic&&o.pattern===u)}))return!0}return!1}};e.default=r})),wI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=bI(),i=class{constructor(s,h){this._settings=s,this._micromatchOptions=h}getFilter(s,h,a){const n=this._getMatcher(h),l=this._getNegativePatternsRe(a);return u=>this._filter(s,u,n,l)}_getMatcher(s){return new r.default(s,this._settings,this._micromatchOptions)}_getNegativePatternsRe(s){const h=s.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(h,this._micromatchOptions)}_filter(s,h,a,n){if(this._isSkippedByDeep(s,h.path)||this._isSkippedSymbolicLink(h))return!1;const l=t.path.removeLeadingDotSegment(h.path);return this._isSkippedByPositivePatterns(l,a)?!1:this._isSkippedByNegativePatterns(l,n)}_isSkippedByDeep(s,h){return this._settings.deep===1/0?!1:this._getEntryLevel(s,h)>=this._settings.deep}_getEntryLevel(s,h){const a=h.split("/").length;return s===""?a:a-s.split("/").length}_isSkippedSymbolicLink(s){return!this._settings.followSymbolicLinks&&s.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(s,h){return!this._settings.baseNameMatch&&!h.match(s)}_isSkippedByNegativePatterns(s,h){return!t.pattern.matchAny(s,h)}};e.default=i})),SI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i,s){this._settings=i,this._micromatchOptions=s,this.index=new Map}getFilter(i,s){const[h,a]=t.pattern.partitionAbsoluteAndRelative(s),n={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(h,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(a,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return l=>this._filter(l,n)}_filter(i,s){const h=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(h)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;const a=this._isMatchToPatternsSet(h,s,i.dirent.isDirectory());return this._settings.unique&&a&&this._createIndexRecord(h),a}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,s,h){return!(!this._isMatchToPatterns(i,s.positive.all,h)||this._isMatchToPatterns(i,s.negative.relative,h)||this._isMatchToAbsoluteNegative(i,s.negative.absolute,h))}_isMatchToAbsoluteNegative(i,s,h){if(s.length===0)return!1;const a=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(a,s,h)}_isMatchToPatterns(i,s,h){if(s.length===0)return!1;const a=t.pattern.matchAny(i,s);return!a&&h?t.pattern.matchAny(i+"/",s):a}};e.default=r})),DI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r})),AI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let s=i.path;return this._settings.absolute&&(s=t.path.makeAbsolute(this._settings.cwd,s),s=t.path.unixify(s)),this._settings.markDirectories&&i.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:s}):s}};e.default=r})),Il=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=wI(),i=SI(),s=DI(),h=AI(),a=class{constructor(n){this._settings=n,this.errorFilter=new s.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h.default(this._settings)}_getRootDirectory(n){return t.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){const l=n.base==="."?"":n.base;return{basePath:l,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(l,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a})),CI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_I(),r=Il(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(s){const h=this._getRootDirectory(s),a=this._getReaderOptions(s);return(await this.api(h,s,a)).map(n=>a.transform(n))}api(s,h,a){return h.dynamic?this._reader.dynamic(s,a):this._reader.static(h.patterns,a)}};e.default=i})),TI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Hm(),i=Il(),s=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(h){const a=this._getRootDirectory(h),n=this._getReaderOptions(h),l=this.api(a,h,n),u=new t.Readable({objectMode:!0,read:()=>{}});return l.once("error",f=>u.emit("error",f)).on("data",f=>u.emit("data",n.transform(f))).once("end",()=>u.emit("end")),u.once("close",()=>l.destroy()),u}api(h,a,n){return a.dynamic?this._reader.dynamic(h,n):this._reader.static(a.patterns,n)}};e.default=s})),RI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Ci(),r=Rl(),i=Ol(),s=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(h,a){return this._walkSync(h,a)}static(h,a){const n=[];for(const l of h){const u=this._getFullEntryPath(l),f=this._getEntry(u,l,a);f===null||!a.entryFilter(f)||n.push(f)}return n}_getEntry(h,a,n){try{const l=this._getStat(h);return this._makeEntry(l,a)}catch(l){if(n.errorFilter(l))return null;throw l}}_getStat(h){return this._statSync(h,this._fsStatSettings)}};e.default=s})),OI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=RI(),r=Il(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(s){const h=this._getRootDirectory(s),a=this._getReaderOptions(s);return this.api(h,s,a).map(a.transform)}api(s,h,a){return h.dynamic?this._reader.dynamic(s,a):this._reader.static(h.patterns,a)}};e.default=i})),II=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=require("fs"),r=require("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var s=class{constructor(h={}){this._options=h,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(h,a){return h===void 0?a:h}_getFileSystemMethods(h={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),h)}};e.default=s})),kI=I.__commonJSMin(((e,t)=>{var r=eI(),i=CI(),s=TI(),h=OI(),a=II(),n=Or();async function l(o,c){f(o);const d=u(o,i.default,c),p=await Promise.all(d);return n.array.flatten(p)}(function(o){o.glob=o,o.globSync=c,o.globStream=d,o.async=o;function c(y,w){f(y);const _=u(y,h.default,w);return n.array.flatten(_)}o.sync=c;function d(y,w){f(y);const _=u(y,s.default,w);return n.stream.merge(_)}o.stream=d;function p(y,w){f(y);const _=[].concat(y),b=new a.default(w);return r.generate(_,b)}o.generateTasks=p;function g(y,w){f(y);const _=new a.default(w);return n.pattern.isDynamicPattern(y,_)}o.isDynamicPattern=g;function m(y){return f(y),n.path.escape(y)}o.escapePath=m;function v(y){return f(y),n.path.convertPathToPattern(y)}o.convertPathToPattern=v,(function(y){function w(b){return f(b),n.path.escapePosixPath(b)}y.escapePath=w;function _(b){return f(b),n.path.convertPosixPathToPattern(b)}y.convertPathToPattern=_})(o.posix||(o.posix={})),(function(y){function w(b){return f(b),n.path.escapeWindowsPath(b)}y.escapePath=w;function _(b){return f(b),n.path.convertWindowsPathToPattern(b)}y.convertPathToPattern=_})(o.win32||(o.win32={}))})(l||(l={}));function u(o,c,d){const p=[].concat(o),g=new a.default(d),m=r.generate(p,g),v=new c(g);return m.map(v.read,v)}function f(o){if(![].concat(o).every(c=>n.string.isString(c)&&!n.string.isEmpty(c)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=l})),qm=I.__toESM(kI(),1),zm={ignore:["**/node_modules/**"]},Gm=async e=>{const t=Je.default.join(Je.default.dirname(e),"pnpm-workspace.yaml");let r;try{r=await tt.default.readFile(t,"utf-8")}catch{return null}return Xi.load(r)},LI=async e=>{const t=Je.default.join(Je.default.dirname(e),".yarnrc.yml");let r;try{r=await tt.default.readFile(t,"utf-8")}catch{return null}return Xi.load(r)},FI=async(e,t)=>{const r={};if(e.packageManager==="pnpm"){const s=await Gm(t);s&&!Array.isArray(s)&&(s.catalog&&Object.assign(r,s.catalog),s.catalogs&&Object.assign(r,...Object.values(s.catalogs)),s.workspaces&&!Array.isArray(s.workspaces)&&(s.workspaces.catalog&&Object.assign(r,s.workspaces.catalog),s.workspaces.catalogs&&Object.assign(r,...Object.values(s.workspaces.catalogs))))}if(e.packageManager==="yarn"){const s=await LI(t);s&&(s.catalog&&Object.assign(r,s.catalog),s.catalogs&&Object.assign(r,...Object.values(s.catalogs)))}const i=JSON.parse(await tt.default.readFile(t,"utf-8"));return Object.assign(r,i.catalog,...Object.values(i.catalogs??{})),i.workspaces&&!Array.isArray(i.workspaces)&&Object.assign(r,i.workspaces.catalog,...Object.values(i.workspaces.catalogs??{})),Object.keys(r).length>0?r:null};async function NI(e,t,r,i){const{pkgData:s,pkgPath:h}=await os({...e,packageFile:r,loglevel:"silent"}),a=(typeof s=="string"?JSON.parse(s):s).workspaces||await Gm(h||""),n=Array.isArray(a)?a:a?.packages;n||Xe(e,`workspaces property missing from package.json. --workspace${e.workspaces?"s":""} only works when you specify a "workspaces" property in your package.json.`);const l=(n||[]).map(c=>Je.default.join(i,c,"package.json").replace(/\\/g,"/")),u=qm.default.sync(l,zm),f=await Promise.all(u.map(async c=>{const d=await ml(e,c);return d.name=d.pkg.name||c.split("/").slice(-2)[0],d})),o=f.map(c=>c.name||"");return e.workspaces===!0?[f,o]:[f.filter(c=>e.workspace?.some(d=>n?.some(p=>c.name===d||c.filepath===Je.default.join(i,Je.default.dirname(p),d,t).replace(/\\/g,"/")))),o]}async function xI(e,t){if(!t)return null;const r=await FI(e,t);if(!r)return null;const i={name:"catalog-dependencies",version:"1.0.0",dependencies:r};return{filepath:e.packageManager==="pnpm"?Je.default.join(Je.default.dirname(t),"pnpm-workspace.yaml"):e.packageManager==="yarn"?Je.default.join(Je.default.dirname(t),".yarnrc.yml"):`${t}#catalog`,pkg:i,pkgFile:JSON.stringify(i,null,2),name:"catalogs"}}async function $I(e){const t=e.packageFile||"package.json",r=e.cwd?Cd(e.cwd):"./",i=e.packageFile||(e.cwd?Je.default.join(r,"package.json"):"package.json"),s=e.workspaces===!0||e.workspace!==void 0&&e.workspace.length!==0;let h=[];if(!s||e.root===!0){const u=i.replace(/\\/g,"/"),f=qm.default.sync(u,zm),o=await Promise.all(f.map(async c=>await ml(e,c)));h=[...h,...o]}if(!s)return[h,[]];let a=null;if(s){const{pkgPath:u}=await os({...e,packageFile:i,loglevel:"silent"});u&&(a=await xI(e,u))}const[n,l]=await NI(e,t,i,r);return h=[...h,...n],a&&(h=[...h,a]),[h,l]}var BI=I.__commonJSMin(((e,t)=>{var r=require("module"),i=require("path");t.exports=function(h,a,n){if(typeof a=="object"&&(n=a,a=void 0),n=n||{},a=a||"",n.appendPaths=n.appendPaths||[],n.prependPaths=n.prependPaths||[],typeof h!="string")throw new Error("code must be a string, not "+typeof h);var l=r._nodeModulePaths(i.dirname(a)),u=t.parent,f=new r(a,u);f.filename=a,f.paths=[].concat(n.prependPaths).concat(l).concat(n.appendPaths),f._compile(h,a);var o=f.exports;return u&&u.children&&u.children.splice(u.children.indexOf(f),1),o}})),MI=I.__exportAll({default:()=>Wm});function Qo(e,t,r){const i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let s=0;s<i.length;s++){const h=String(s),a=Qo(i,h,r);a===void 0?delete i[h]:Object.defineProperty(i,h,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const s in i){const h=Qo(i,s,r);h===void 0?delete i[s]:Object.defineProperty(i,s,{value:h,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,i)}function PI(){for(Ve="default",Ge="",Mi=!1,ur=1;;){Ye=cr();const e=iu[Ve]();if(e)return e}}function cr(){if(tu[ls])return String.fromCodePoint(tu.codePointAt(ls))}function Oe(){const e=cr();return e===`
|
|
687
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}})),q2=I.__commonJSMin(((e,t)=>{var r=Al(),{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:o,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=H2(),y=(w,_={})=>{if(typeof w!="string")throw new TypeError("Expected a string");const b=_||{},E=typeof b.maxLength=="number"?Math.min(i,b.maxLength):i;if(w.length>E)throw new SyntaxError(`Input length (${w.length}), exceeds max characters (${E})`);const S={type:"root",input:w,nodes:[]},A=[S];let C=S,T=S,U=0;const $=w.length;let z=0,V=0,H;const L=()=>w[z++],N=q=>{if(q.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&q.type==="text"){T.value+=q.value;return}return C.nodes.push(q),q.parent=C,q.prev=T,T=q,q};for(N({type:"bos"});z<$;)if(C=A[A.length-1],H=L(),!(H===v||H===m)){if(H===s){N({type:"text",value:(_.keepEscaping?H:"")+L()});continue}if(H===d){N({type:"text",value:"\\"+H});continue}if(H===c){U++;let q;for(;z<$&&(q=L());){if(H+=q,q===c){U++;continue}if(q===s){H+=L();continue}if(q===d&&(U--,U===0))break}N({type:"text",value:H});continue}if(H===l){C=N({type:"paren",nodes:[]}),A.push(C),N({type:"text",value:H});continue}if(H===u){if(C.type!=="paren"){N({type:"text",value:H});continue}C=A.pop(),N({type:"text",value:H}),C=A[A.length-1];continue}if(H===p||H===g||H===h){const q=H;let J;for(_.keepQuotes!==!0&&(H="");z<$&&(J=L());){if(J===s){H+=J+L();continue}if(J===q){_.keepQuotes===!0&&(H+=J);break}H+=J}N({type:"text",value:H});continue}if(H===f){V++,C=N({type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||C.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]}),A.push(C),N({type:"open",value:H});continue}if(H===o){if(C.type!=="brace"){N({type:"text",value:H});continue}const q="close";C=A.pop(),C.close=!0,N({type:q,value:H}),V--,C=A[A.length-1];continue}if(H===a&&V>0){if(C.ranges>0){C.ranges=0;const q=C.nodes.shift();C.nodes=[q,{type:"text",value:r(C)}]}N({type:"comma",value:H}),C.commas++;continue}if(H===n&&V>0&&C.commas===0){const q=C.nodes;if(V===0||q.length===0){N({type:"text",value:H});continue}if(T.type==="dot"){if(C.range=[],T.value+=H,T.type="range",C.nodes.length!==3&&C.nodes.length!==5){C.invalid=!0,C.ranges=0,T.type="text";continue}C.ranges++,C.args=[];continue}if(T.type==="range"){q.pop();const J=q[q.length-1];J.value+=T.value+H,T=J,C.ranges--;continue}N({type:"dot",value:H});continue}N({type:"text",value:H})}do if(C=A.pop(),C.type!=="root"){C.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});const q=A[A.length-1],J=q.nodes.indexOf(C);q.nodes.splice(J,1,...C.nodes)}while(A.length>0);return N({type:"eos"}),S};t.exports=y})),z2=I.__commonJSMin(((e,t)=>{var r=Al(),i=j2(),s=U2(),h=q2(),a=(n,l={})=>{let u=[];if(Array.isArray(n))for(const f of n){const o=a.create(f,l);Array.isArray(o)?u.push(...o):u.push(o)}else u=[].concat(a.create(n,l));return l&&l.expand===!0&&l.nodupes===!0&&(u=[...new Set(u)]),u};a.parse=(n,l={})=>h(n,l),a.stringify=(n,l={})=>r(typeof n=="string"?a.parse(n,l):n,l),a.compile=(n,l={})=>(typeof n=="string"&&(n=a.parse(n,l)),i(n,l)),a.expand=(n,l={})=>{typeof n=="string"&&(n=a.parse(n,l));let u=s(n,l);return l.noempty===!0&&(u=u.filter(Boolean)),l.nodupes===!0&&(u=[...new Set(u)]),u},a.create=(n,l={})=>n===""||n.length<3?[n]:l.expand!==!0?a.compile(n,l):a.expand(n,l),t.exports=a})),Ks=I.__commonJSMin(((e,t)=>{var r=require("path"),i="\\\\/",s=`[^${i}]`,h=0,a="\\.",n="\\+",l="\\?",u="\\/",f="(?=.)",o="[^/]",c=`(?:${u}|$)`,d=`(?:^|${u})`,p=`${a}{1,2}${c}`,g={DOT_LITERAL:a,PLUS_LITERAL:n,QMARK_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:f,QMARK:o,END_ANCHOR:c,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${d}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${c})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${u}]`,STAR:`${o}*?`,START_ANCHOR:d},m={...g,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},v={__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:h,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:v,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,SEP:r.sep,extglobChars(y){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${y.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(y){return y===!0?m:g}}})),Zs=I.__commonJSMin((e=>{var t=require("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ks();e.isObject=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),e.hasRegexChars=n=>h.test(n),e.isRegexChar=n=>n.length===1&&e.hasRegexChars(n),e.escapeRegex=n=>n.replace(a,"\\$1"),e.toPosixSlashes=n=>n.replace(i,"/"),e.removeBackslashes=n=>n.replace(s,l=>l==="\\"?"":l),e.supportsLookbehinds=()=>{const n=process.version.slice(1).split(".").map(Number);return n.length===3&&n[0]>=9||n[0]===8&&n[1]>=10},e.isWindows=n=>n&&typeof n.windows=="boolean"?n.windows:r===!0||t.sep==="\\",e.escapeLast=(n,l,u)=>{const f=n.lastIndexOf(l,u);return f===-1?n:n[f-1]==="\\"?e.escapeLast(n,l,f-1):`${n.slice(0,f)}\\${n.slice(f)}`},e.removePrefix=(n,l={})=>{let u=n;return u.startsWith("./")&&(u=u.slice(2),l.prefix="./"),u},e.wrapOutput=(n,l={},u={})=>{let f=`${u.contains?"":"^"}(?:${n})${u.contains?"":"$"}`;return l.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}})),G2=I.__commonJSMin(((e,t)=>{var r=Zs(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:o,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}=Ks(),y=b=>b===u||b===h,w=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)},_=(b,E)=>{const S=E||{},A=b.length-1,C=S.parts===!0||S.scanToEnd===!0,T=[],U=[],$=[];let z=b,V=-1,H=0,L=0,N=!1,q=!1,J=!1,P=!1,B=!1,F=!1,O=!1,x=!1,Y=!1,oe=!1,pe=0,ye,W,M={value:"",depth:0,isGlob:!1};const G=()=>V>=A,X=()=>z.charCodeAt(V+1),ne=()=>(ye=W,z.charCodeAt(++V));for(;V<A;){W=ne();let De;if(W===h){O=M.backslashes=!0,W=ne(),W===f&&(F=!0);continue}if(F===!0||W===f){for(pe++;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,ne();continue}if(W===f){pe++;continue}if(F!==!0&&W===n&&(W=ne())===n){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(F!==!0&&W===a){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===g&&(pe--,pe===0)){F=!1,N=M.isBrace=!0,oe=!0;break}}if(C===!0)continue;break}if(W===u){if(T.push(V),U.push(M),M={value:"",depth:0,isGlob:!1},oe===!0)continue;if(ye===n&&V===H+1){H+=2;continue}L=V+1;continue}if(S.noext!==!0&&(W===d||W===s||W===i||W===p||W===l)&&X()===o){if(J=M.isGlob=!0,P=M.isExtglob=!0,oe=!0,W===l&&V===H&&(Y=!0),C===!0){for(;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,W=ne();continue}if(W===m){J=M.isGlob=!0,oe=!0;break}}continue}break}if(W===i){if(ye===i&&(B=M.isGlobstar=!0),J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===p){if(J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===c){for(;G()!==!0&&(De=ne());){if(De===h){O=M.backslashes=!0,ne();continue}if(De===v){q=M.isBracket=!0,J=M.isGlob=!0,oe=!0;break}}if(C===!0)continue;break}if(S.nonegate!==!0&&W===l&&V===H){x=M.negated=!0,H++;continue}if(S.noparen!==!0&&W===o){if(J=M.isGlob=!0,C===!0){for(;G()!==!0&&(W=ne());){if(W===o){O=M.backslashes=!0,W=ne();continue}if(W===m){oe=!0;break}}continue}break}if(J===!0){if(oe=!0,C===!0)continue;break}}S.noext===!0&&(P=!1,J=!1);let k=z,j="",ee="";H>0&&(j=z.slice(0,H),z=z.slice(H),L-=H),k&&J===!0&&L>0?(k=z.slice(0,L),ee=z.slice(L)):J===!0?(k="",ee=z):k=z,k&&k!==""&&k!=="/"&&k!==z&&y(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),S.unescape===!0&&(ee&&(ee=r.removeBackslashes(ee)),k&&O===!0&&(k=r.removeBackslashes(k)));const Se={prefix:j,input:b,start:H,base:k,glob:ee,isBrace:N,isBracket:q,isGlob:J,isExtglob:P,isGlobstar:B,negated:x,negatedExtglob:Y};if(S.tokens===!0&&(Se.maxDepth=0,y(W)||U.push(M),Se.tokens=U),S.parts===!0||S.tokens===!0){let De;for(let ve=0;ve<T.length;ve++){const $e=De?De+1:H,xe=T[ve],Pe=b.slice($e,xe);S.tokens&&(ve===0&&H!==0?(U[ve].isPrefix=!0,U[ve].value=j):U[ve].value=Pe,w(U[ve]),Se.maxDepth+=U[ve].depth),(ve!==0||Pe!=="")&&$.push(Pe),De=xe}if(De&&De+1<b.length){const ve=b.slice(De+1);$.push(ve),S.tokens&&(U[U.length-1].value=ve,w(U[U.length-1]),Se.maxDepth+=U[U.length-1].depth)}Se.slashes=T,Se.parts=$}return Se};t.exports=_})),J2=I.__commonJSMin(((e,t)=>{var r=Ks(),i=Zs(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:l}=r,u=(_,b)=>{if(typeof b.expandRange=="function")return b.expandRange(..._,b);_.sort();const E=`[${_.join("-")}]`;try{new RegExp(E)}catch{return _.map(A=>i.escapeRegex(A)).join("..")}return E},f=(_,b)=>`Missing ${_}: "${b}" - use "\\\\${b}" to match literal characters`,o=_=>{const b=[];let E=0,S=0,A=0,C="",T=!1;for(const U of _){if(T===!0){C+=U,T=!1;continue}if(U==="\\"){C+=U,T=!0;continue}if(U==='"'){A=A===1?0:1,C+=U;continue}if(A===0){if(U==="[")E++;else if(U==="]"&&E>0)E--;else if(E===0){if(U==="(")S++;else if(U===")"&&S>0)S--;else if(U==="|"&&S===0){b.push(C),C="";continue}}}C+=U}return b.push(C),b},c=_=>{let b=!1;for(const E of _){if(b===!0){b=!1;continue}if(E==="\\"){b=!0;continue}if(/[?*+@!()[\]{}]/.test(E))return!1}return!0},d=_=>{let b=_.trim(),E=!0;for(;E===!0;)E=!1,/^@\([^\\()[\]{}|]+\)$/.test(b)&&(b=b.slice(2,-1),E=!0);if(c(b))return b.replace(/\\(.)/g,"$1")},p=_=>{const b=_.map(d).filter(Boolean);for(let E=0;E<b.length;E++)for(let S=E+1;S<b.length;S++){const A=b[E],C=b[S],T=A[0];if(!(!T||A!==T.repeat(A.length)||C!==T.repeat(C.length))&&(A===C||A.startsWith(C)||C.startsWith(A)))return!0}return!1},g=(_,b=!0)=>{if(_[0]!=="+"&&_[0]!=="*"||_[1]!=="(")return;let E=0,S=0,A=0,C=!1;for(let T=1;T<_.length;T++){const U=_[T];if(C===!0){C=!1;continue}if(U==="\\"){C=!0;continue}if(U==='"'){A=A===1?0:1;continue}if(A!==1){if(U==="["){E++;continue}if(U==="]"&&E>0){E--;continue}if(!(E>0)){if(U==="("){S++;continue}if(U===")"&&(S--,S===0))return b===!0&&T!==_.length-1?void 0:{type:_[0],body:_.slice(2,T),end:T}}}}},m=_=>{let b=0;const E=[];for(;b<_.length;){const S=g(_.slice(b),!1);if(!S||S.type!=="*")return;const A=o(S.body).map(T=>T.trim());if(A.length!==1)return;const C=d(A[0]);if(!C||C.length!==1)return;E.push(C),b+=S.end+1}if(!(E.length<1))return`${E.length===1?i.escapeRegex(E[0]):`[${E.map(S=>i.escapeRegex(S)).join("")}]`}*`},v=_=>{let b=0,E=_.trim(),S=g(E);for(;S;)b++,E=S.body.trim(),S=g(E);return b},y=(_,b)=>{if(b.maxExtglobRecursion===!1)return{risky:!1};const E=typeof b.maxExtglobRecursion=="number"?b.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,S=o(_).map(A=>A.trim());if(S.length>1&&(S.some(A=>A==="")||S.some(A=>/^[*?]+$/.test(A))||p(S)))return{risky:!0};for(const A of S){const C=m(A);if(C)return{risky:!0,safeOutput:C};if(v(A)>E)return{risky:!0}}return{risky:!1}},w=(_,b)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=l[_]||_;const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s;let A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);const C={type:"bos",value:"",output:E.prepend||""},T=[C],U=E.capture?"":"?:",$=i.isWindows(b),z=r.globChars($),V=r.extglobChars(z),{DOT_LITERAL:H,PLUS_LITERAL:L,SLASH_LITERAL:N,ONE_CHAR:q,DOTS_SLASH:J,NO_DOT:P,NO_DOT_SLASH:B,NO_DOTS_SLASH:F,QMARK:O,QMARK_NO_DOT:x,STAR:Y,START_ANCHOR:oe}=z,pe=Q=>`(${U}(?:(?!${oe}${Q.dot?J:H}).)*?)`,ye=E.dot?"":P,W=E.dot?O:x;let M=E.bash===!0?pe(E):Y;E.capture&&(M=`(${M})`),typeof E.noext=="boolean"&&(E.noextglob=E.noext);const G={input:_,index:-1,start:0,dot:E.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:T};_=i.removePrefix(_,G),A=_.length;const X=[],ne=[],k=[];let j=C,ee;const Se=()=>G.index===A-1,De=G.peek=(Q=1)=>_[G.index+Q],ve=G.advance=()=>_[++G.index]||"",$e=()=>_.slice(G.index+1),xe=(Q="",ie=0)=>{G.consumed+=Q,G.index+=ie},Pe=Q=>{G.output+=Q.output!=null?Q.output:Q.value,xe(Q.value)},Re=()=>{let Q=1;for(;De()==="!"&&(De(2)!=="("||De(3)==="?");)ve(),G.start++,Q++;return Q%2===0?!1:(G.negated=!0,G.start++,!0)},D=Q=>{G[Q]++,k.push(Q)},se=Q=>{G[Q]--,k.pop()},he=Q=>{if(j.type==="globstar"){const ie=G.braces>0&&(Q.type==="comma"||Q.type==="brace"),ae=Q.extglob===!0||X.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!ie&&!ae&&(G.output=G.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=M,G.output+=j.output)}if(X.length&&Q.type!=="paren"&&(X[X.length-1].inner+=Q.value),(Q.value||Q.output)&&Pe(Q),j&&j.type==="text"&&Q.type==="text"){j.value+=Q.value,j.output=(j.output||"")+Q.value;return}Q.prev=j,T.push(Q),j=Q},de=(Q,ie)=>{const ae={...V[ie],conditions:1,inner:""};ae.prev=j,ae.parens=G.parens,ae.output=G.output,ae.startIndex=G.index,ae.tokensIndex=T.length;const _e=(E.capture?"(":"")+ae.open;D("parens"),he({type:Q,value:ie,output:G.output?"":q}),he({type:"paren",extglob:!0,value:ve(),output:_e}),X.push(ae)},re=Q=>{const ie=_.slice(Q.startIndex,G.index+1),ae=y(_.slice(Q.startIndex+2,G.index),E);if((Q.type==="plus"||Q.type==="star")&&ae.risky){const Ae=ae.safeOutput?(Q.output?"":q)+(E.capture?`(${ae.safeOutput})`:ae.safeOutput):void 0,Te=T[Q.tokensIndex];Te.type="text",Te.value=ie,Te.output=Ae||i.escapeRegex(ie);for(let K=Q.tokensIndex+1;K<T.length;K++)T[K].value="",T[K].output="",delete T[K].suffix;G.output=Q.output+Te.output,G.backtrack=!0,he({type:"paren",extglob:!0,value:ee,output:""}),se("parens");return}let _e=Q.close+(E.capture?")":""),Le;if(Q.type==="negate"){let Ae=M;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Ae=pe(E)),(Ae!==M||Se()||/^\)+$/.test($e()))&&(_e=Q.close=`)$))${Ae}`),Q.inner.includes("*")&&(Le=$e())&&/^\.[^\\/.]+$/.test(Le)&&(_e=Q.close=`)${w(Le,{...b,fastpaths:!1}).output})${Ae})`),Q.prev.type==="bos"&&(G.negatedExtglob=!0)}he({type:"paren",extglob:!0,value:ee,output:_e}),se("parens")};if(E.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let Q=!1,ie=_.replace(n,(ae,_e,Le,Ae,Te,K)=>Ae==="\\"?(Q=!0,ae):Ae==="?"?_e?_e+Ae+(Te?O.repeat(Te.length):""):K===0?W+(Te?O.repeat(Te.length):""):O.repeat(Le.length):Ae==="."?H.repeat(Le.length):Ae==="*"?_e?_e+Ae+(Te?M:""):M:_e?ae:`\\${ae}`);return Q===!0&&(E.unescape===!0?ie=ie.replace(/\\/g,""):ie=ie.replace(/\\+/g,ae=>ae.length%2===0?"\\\\":ae?"\\":"")),ie===_&&E.contains===!0?(G.output=_,G):(G.output=i.wrapOutput(ie,G,b),G)}for(;!Se();){if(ee=ve(),ee==="\0")continue;if(ee==="\\"){const ae=De();if(ae==="/"&&E.bash!==!0||ae==="."||ae===";")continue;if(!ae){ee+="\\",he({type:"text",value:ee});continue}const _e=/^\\+/.exec($e());let Le=0;if(_e&&_e[0].length>2&&(Le=_e[0].length,G.index+=Le,Le%2!==0&&(ee+="\\")),E.unescape===!0?ee=ve():ee+=ve(),G.brackets===0){he({type:"text",value:ee});continue}}if(G.brackets>0&&(ee!=="]"||j.value==="["||j.value==="[^")){if(E.posix!==!1&&ee===":"){const ae=j.value.slice(1);if(ae.includes("[")&&(j.posix=!0,ae.includes(":"))){const _e=j.value.lastIndexOf("["),Le=j.value.slice(0,_e),Ae=h[j.value.slice(_e+2)];if(Ae){j.value=Le+Ae,G.backtrack=!0,ve(),!C.output&&T.indexOf(j)===1&&(C.output=q);continue}}}(ee==="["&&De()!==":"||ee==="-"&&De()==="]")&&(ee=`\\${ee}`),ee==="]"&&(j.value==="["||j.value==="[^")&&(ee=`\\${ee}`),E.posix===!0&&ee==="!"&&j.value==="["&&(ee="^"),j.value+=ee,Pe({value:ee});continue}if(G.quotes===1&&ee!=='"'){ee=i.escapeRegex(ee),j.value+=ee,Pe({value:ee});continue}if(ee==='"'){G.quotes=G.quotes===1?0:1,E.keepQuotes===!0&&he({type:"text",value:ee});continue}if(ee==="("){D("parens"),he({type:"paren",value:ee});continue}if(ee===")"){if(G.parens===0&&E.strictBrackets===!0)throw new SyntaxError(f("opening","("));const ae=X[X.length-1];if(ae&&G.parens===ae.parens+1){re(X.pop());continue}he({type:"paren",value:ee,output:G.parens?")":"\\)"}),se("parens");continue}if(ee==="["){if(E.nobracket===!0||!$e().includes("]")){if(E.nobracket!==!0&&E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));ee=`\\${ee}`}else D("brackets");he({type:"bracket",value:ee});continue}if(ee==="]"){if(E.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){he({type:"text",value:ee,output:`\\${ee}`});continue}if(G.brackets===0){if(E.strictBrackets===!0)throw new SyntaxError(f("opening","["));he({type:"text",value:ee,output:`\\${ee}`});continue}se("brackets");const ae=j.value.slice(1);if(j.posix!==!0&&ae[0]==="^"&&!ae.includes("/")&&(ee=`/${ee}`),j.value+=ee,Pe({value:ee}),E.literalBrackets===!1||i.hasRegexChars(ae))continue;const _e=i.escapeRegex(j.value);if(G.output=G.output.slice(0,-j.value.length),E.literalBrackets===!0){G.output+=_e,j.value=_e;continue}j.value=`(${U}${_e}|${j.value})`,G.output+=j.value;continue}if(ee==="{"&&E.nobrace!==!0){D("braces");const ae={type:"brace",value:ee,output:"(",outputIndex:G.output.length,tokensIndex:G.tokens.length};ne.push(ae),he(ae);continue}if(ee==="}"){const ae=ne[ne.length-1];if(E.nobrace===!0||!ae){he({type:"text",value:ee,output:ee});continue}let _e=")";if(ae.dots===!0){const Le=T.slice(),Ae=[];for(let Te=Le.length-1;Te>=0&&(T.pop(),Le[Te].type!=="brace");Te--)Le[Te].type!=="dots"&&Ae.unshift(Le[Te].value);_e=u(Ae,E),G.backtrack=!0}if(ae.comma!==!0&&ae.dots!==!0){const Le=G.output.slice(0,ae.outputIndex),Ae=G.tokens.slice(ae.tokensIndex);ae.value=ae.output="\\{",ee=_e="\\}",G.output=Le;for(const Te of Ae)G.output+=Te.output||Te.value}he({type:"brace",value:ee,output:_e}),se("braces"),ne.pop();continue}if(ee==="|"){X.length>0&&X[X.length-1].conditions++,he({type:"text",value:ee});continue}if(ee===","){let ae=ee;const _e=ne[ne.length-1];_e&&k[k.length-1]==="braces"&&(_e.comma=!0,ae="|"),he({type:"comma",value:ee,output:ae});continue}if(ee==="/"){if(j.type==="dot"&&G.index===G.start+1){G.start=G.index+1,G.consumed="",G.output="",T.pop(),j=C;continue}he({type:"slash",value:ee,output:N});continue}if(ee==="."){if(G.braces>0&&j.type==="dot"){j.value==="."&&(j.output=H);const ae=ne[ne.length-1];j.type="dots",j.output+=ee,j.value+=ee,ae.dots=!0;continue}if(G.braces+G.parens===0&&j.type!=="bos"&&j.type!=="slash"){he({type:"text",value:ee,output:H});continue}he({type:"dot",value:ee,output:H});continue}if(ee==="?"){if(!(j&&j.value==="(")&&E.noextglob!==!0&&De()==="("&&De(2)!=="?"){de("qmark",ee);continue}if(j&&j.type==="paren"){const ae=De();let _e=ee;if(ae==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(ae)||ae==="<"&&!/<([!=]|\w+>)/.test($e()))&&(_e=`\\${ee}`),he({type:"text",value:ee,output:_e});continue}if(E.dot!==!0&&(j.type==="slash"||j.type==="bos")){he({type:"qmark",value:ee,output:x});continue}he({type:"qmark",value:ee,output:O});continue}if(ee==="!"){if(E.noextglob!==!0&&De()==="("&&(De(2)!=="?"||!/[!=<:]/.test(De(3)))){de("negate",ee);continue}if(E.nonegate!==!0&&G.index===0){Re();continue}}if(ee==="+"){if(E.noextglob!==!0&&De()==="("&&De(2)!=="?"){de("plus",ee);continue}if(j&&j.value==="("||E.regex===!1){he({type:"plus",value:ee,output:L});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||G.parens>0){he({type:"plus",value:ee});continue}he({type:"plus",value:L});continue}if(ee==="@"){if(E.noextglob!==!0&&De()==="("&&De(2)!=="?"){he({type:"at",extglob:!0,value:ee,output:""});continue}he({type:"text",value:ee});continue}if(ee!=="*"){(ee==="$"||ee==="^")&&(ee=`\\${ee}`);const ae=a.exec($e());ae&&(ee+=ae[0],G.index+=ae[0].length),he({type:"text",value:ee});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=ee,j.output=M,G.backtrack=!0,G.globstar=!0,xe(ee);continue}let Q=$e();if(E.noextglob!==!0&&/^\([^?]/.test(Q)){de("star",ee);continue}if(j.type==="star"){if(E.noglobstar===!0){xe(ee);continue}const ae=j.prev,_e=ae.prev,Le=ae.type==="slash"||ae.type==="bos",Ae=_e&&(_e.type==="star"||_e.type==="globstar");if(E.bash===!0&&(!Le||Q[0]&&Q[0]!=="/")){he({type:"star",value:ee,output:""});continue}const Te=G.braces>0&&(ae.type==="comma"||ae.type==="brace"),K=X.length&&(ae.type==="pipe"||ae.type==="paren");if(!Le&&ae.type!=="paren"&&!Te&&!K){he({type:"star",value:ee,output:""});continue}for(;Q.slice(0,3)==="/**";){const me=_[G.index+4];if(me&&me!=="/")break;Q=Q.slice(3),xe("/**",3)}if(ae.type==="bos"&&Se()){j.type="globstar",j.value+=ee,j.output=pe(E),G.output=j.output,G.globstar=!0,xe(ee);continue}if(ae.type==="slash"&&ae.prev.type!=="bos"&&!Ae&&Se()){G.output=G.output.slice(0,-(ae.output+j.output).length),ae.output=`(?:${ae.output}`,j.type="globstar",j.output=pe(E)+(E.strictSlashes?")":"|$)"),j.value+=ee,G.globstar=!0,G.output+=ae.output+j.output,xe(ee);continue}if(ae.type==="slash"&&ae.prev.type!=="bos"&&Q[0]==="/"){const me=Q[1]!==void 0?"|$":"";G.output=G.output.slice(0,-(ae.output+j.output).length),ae.output=`(?:${ae.output}`,j.type="globstar",j.output=`${pe(E)}${N}|${N}${me})`,j.value+=ee,G.output+=ae.output+j.output,G.globstar=!0,xe(ee+ve()),he({type:"slash",value:"/",output:""});continue}if(ae.type==="bos"&&Q[0]==="/"){j.type="globstar",j.value+=ee,j.output=`(?:^|${N}|${pe(E)}${N})`,G.output=j.output,G.globstar=!0,xe(ee+ve()),he({type:"slash",value:"/",output:""});continue}G.output=G.output.slice(0,-j.output.length),j.type="globstar",j.output=pe(E),j.value+=ee,G.output+=j.output,G.globstar=!0,xe(ee);continue}const ie={type:"star",value:ee,output:M};if(E.bash===!0){ie.output=".*?",(j.type==="bos"||j.type==="slash")&&(ie.output=ye+ie.output),he(ie);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&E.regex===!0){ie.output=ee,he(ie);continue}(G.index===G.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(G.output+=B,j.output+=B):E.dot===!0?(G.output+=F,j.output+=F):(G.output+=ye,j.output+=ye),De()!=="*"&&(G.output+=q,j.output+=q)),he(ie)}for(;G.brackets>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));G.output=i.escapeLast(G.output,"["),se("brackets")}for(;G.parens>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing",")"));G.output=i.escapeLast(G.output,"("),se("parens")}for(;G.braces>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","}"));G.output=i.escapeLast(G.output,"{"),se("braces")}if(E.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&he({type:"maybe_slash",value:"",output:`${N}?`}),G.backtrack===!0){G.output="";for(const Q of G.tokens)G.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(G.output+=Q.suffix)}return G};w.fastpaths=(_,b)=>{const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s,A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);_=l[_]||_;const C=i.isWindows(b),{DOT_LITERAL:T,SLASH_LITERAL:U,ONE_CHAR:$,DOTS_SLASH:z,NO_DOT:V,NO_DOTS:H,NO_DOTS_SLASH:L,STAR:N,START_ANCHOR:q}=r.globChars(C),J=E.dot?H:V,P=E.dot?L:V,B=E.capture?"":"?:",F={negated:!1,prefix:""};let O=E.bash===!0?".*?":N;E.capture&&(O=`(${O})`);const x=pe=>pe.noglobstar===!0?O:`(${B}(?:(?!${q}${pe.dot?z:T}).)*?)`,Y=pe=>{switch(pe){case"*":return`${J}${$}${O}`;case".*":return`${T}${$}${O}`;case"*.*":return`${J}${O}${T}${$}${O}`;case"*/*":return`${J}${O}${U}${$}${P}${O}`;case"**":return J+x(E);case"**/*":return`(?:${J}${x(E)}${U})?${P}${$}${O}`;case"**/*.*":return`(?:${J}${x(E)}${U})?${P}${O}${T}${$}${O}`;case"**/.*":return`(?:${J}${x(E)}${U})?${T}${$}${O}`;default:{const ye=/^(.*?)\.(\w+)$/.exec(pe);if(!ye)return;const W=Y(ye[1]);return W?W+T+ye[2]:void 0}}};let oe=Y(i.removePrefix(_,F));return oe&&E.strictSlashes!==!0&&(oe+=`${U}?`),oe},t.exports=w})),W2=I.__commonJSMin(((e,t)=>{var r=require("path"),i=G2(),s=J2(),h=Zs(),a=Ks(),n=u=>u&&typeof u=="object"&&!Array.isArray(u),l=(u,f,o=!1)=>{if(Array.isArray(u)){const w=u.map(b=>l(b,f,o));return b=>{for(const E of w){const S=E(b);if(S)return S}return!1}}const c=n(u)&&u.tokens&&u.input;if(u===""||typeof u!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const d=f||{},p=h.isWindows(f),g=c?l.compileRe(u,f):l.makeRe(u,f,!1,!0),m=g.state;delete g.state;let v=()=>!1;if(d.ignore){const w={...f,ignore:null,onMatch:null,onResult:null};v=l(d.ignore,w,o)}const y=(w,_=!1)=>{const{isMatch:b,match:E,output:S}=l.test(w,g,f,{glob:u,posix:p}),A={glob:u,state:m,regex:g,posix:p,input:w,output:S,match:E,isMatch:b};return typeof d.onResult=="function"&&d.onResult(A),b===!1?(A.isMatch=!1,_?A:!1):v(w)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,_?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),_?A:!0)};return o&&(y.state=m),y};l.test=(u,f,o,{glob:c,posix:d}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const p=o||{},g=p.format||(d?h.toPosixSlashes:null);let m=u===c,v=m&&g?g(u):u;return m===!1&&(v=g?g(u):u,m=v===c),(m===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?m=l.matchBase(u,f,o,d):m=f.exec(v)),{isMatch:!!m,match:m,output:v}},l.matchBase=(u,f,o,c=h.isWindows(o))=>(f instanceof RegExp?f:l.makeRe(f,o)).test(r.basename(u)),l.isMatch=(u,f,o)=>l(f,o)(u),l.parse=(u,f)=>Array.isArray(u)?u.map(o=>l.parse(o,f)):s(u,{...f,fastpaths:!1}),l.scan=(u,f)=>i(u,f),l.compileRe=(u,f,o=!1,c=!1)=>{if(o===!0)return u.output;const d=f||{},p=d.contains?"":"^",g=d.contains?"":"$";let m=`${p}(?:${u.output})${g}`;u&&u.negated===!0&&(m=`^(?!${m}).*$`);const v=l.toRegex(m,f);return c===!0&&(v.state=u),v},l.makeRe=(u,f={},o=!1,c=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return f.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(d.output=s.fastpaths(u,f)),d.output||(d=s(u,f)),l.compileRe(d,f,o,c)},l.toRegex=(u,f)=>{try{const o=f||{};return new RegExp(u,o.flags||(o.nocase?"i":""))}catch(o){if(f&&f.debug===!0)throw o;return/$^/}},l.constants=a,t.exports=l})),V2=I.__commonJSMin(((e,t)=>{t.exports=W2()})),Y2=I.__commonJSMin(((e,t)=>{var r=require("util"),i=z2(),s=V2(),h=Zs(),a=u=>u===""||u==="./",n=u=>{const f=u.indexOf("{");return f>-1&&u.indexOf("}",f)>-1},l=(u,f,o)=>{f=[].concat(f),u=[].concat(u);let c=new Set,d=new Set,p=new Set,g=0,m=y=>{p.add(y.output),o&&o.onResult&&o.onResult(y)};for(let y=0;y<f.length;y++){let w=s(String(f[y]),{...o,onResult:m},!0),_=w.state.negated||w.state.negatedExtglob;_&&g++;for(let b of u){let E=w(b,!0);(_?!E.isMatch:E.isMatch)&&(_?c.add(E.output):(c.delete(E.output),d.add(E.output)))}}let v=(g===f.length?[...p]:[...d]).filter(y=>!c.has(y));if(o&&v.length===0){if(o.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(o.nonull===!0||o.nullglob===!0)return o.unescape?f.map(y=>y.replace(/\\/g,"")):f}return v};l.match=l,l.matcher=(u,f)=>s(u,f),l.isMatch=(u,f,o)=>s(f,o)(u),l.any=l.isMatch,l.not=(u,f,o={})=>{f=[].concat(f).map(String);let c=new Set,d=[],p=m=>{o.onResult&&o.onResult(m),d.push(m.output)},g=new Set(l(u,f,{...o,onResult:p}));for(let m of d)g.has(m)||c.add(m);return[...c]},l.contains=(u,f,o)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);if(Array.isArray(f))return f.some(c=>l.contains(u,c,o));if(typeof f=="string"){if(a(u)||a(f))return!1;if(u.includes(f)||u.startsWith("./")&&u.slice(2).includes(f))return!0}return l.isMatch(u,f,{...o,contains:!0})},l.matchKeys=(u,f,o)=>{if(!h.isObject(u))throw new TypeError("Expected the first argument to be an object");let c=l(Object.keys(u),f,o),d={};for(let p of c)d[p]=u[p];return d},l.some=(u,f,o)=>{let c=[].concat(u);for(let d of[].concat(f)){let p=s(String(d),o);if(c.some(g=>p(g)))return!0}return!1},l.every=(u,f,o)=>{let c=[].concat(u);for(let d of[].concat(f)){let p=s(String(d),o);if(!c.every(g=>p(g)))return!1}return!0},l.all=(u,f,o)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);return[].concat(f).every(c=>s(c,o)(u))},l.capture=(u,f,o)=>{let c=h.isWindows(o),d=s.makeRe(String(u),{...o,capture:!0}).exec(c?h.toPosixSlashes(f):f);if(d)return d.slice(1).map(p=>p===void 0?"":p)},l.makeRe=(...u)=>s.makeRe(...u),l.scan=(...u)=>s.scan(...u),l.parse=(u,f)=>{let o=[];for(let c of[].concat(u||[]))for(let d of i(String(c),f))o.push(s.parse(d,f));return o},l.braces=(u,f)=>{if(typeof u!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!n(u)?[u]:i(u,f)},l.braceExpand=(u,f)=>{if(typeof u!="string")throw new TypeError("Expected a string");return l.braces(u,{...f,expand:!0})},l.hasBraces=n,t.exports=l})),K2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=require("path"),r=B2(),i=Y2(),s="**",h="\\",a=/[*?]|^!/,n=/\[[^[]*]/,l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,u=/[!*+?@]\([^(]*\)/,f=/,|\.\./,o=/(?!^)\/{2,}/g;function c(B,F={}){return!d(B,F)}e.isStaticPattern=c;function d(B,F={}){return B===""?!1:!!(F.caseSensitiveMatch===!1||B.includes(h)||a.test(B)||n.test(B)||l.test(B)||F.extglob!==!1&&u.test(B)||F.braceExpansion!==!1&&p(B))}e.isDynamicPattern=d;function p(B){const F=B.indexOf("{");if(F===-1)return!1;const O=B.indexOf("}",F+1);if(O===-1)return!1;const x=B.slice(F,O);return f.test(x)}function g(B){return v(B)?B.slice(1):B}e.convertToPositivePattern=g;function m(B){return"!"+B}e.convertToNegativePattern=m;function v(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=v;function y(B){return!v(B)}e.isPositivePattern=y;function w(B){return B.filter(v)}e.getNegativePatterns=w;function _(B){return B.filter(y)}e.getPositivePatterns=_;function b(B){return B.filter(F=>!S(F))}e.getPatternsInsideCurrentDirectory=b;function E(B){return B.filter(S)}e.getPatternsOutsideCurrentDirectory=E;function S(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=S;function A(B){return r(B,{flipBackslashes:!1})}e.getBaseDirectory=A;function C(B){return B.includes(s)}e.hasGlobStar=C;function T(B){return B.endsWith("/"+s)}e.endsWithSlashGlobStar=T;function U(B){const F=t.basename(B);return T(B)||c(F)}e.isAffectDepthOfReadingPattern=U;function $(B){return B.reduce((F,O)=>F.concat(z(O)),[])}e.expandPatternsWithBraceExpansion=$;function z(B){const F=i.braces(B,{expand:!0,nodupes:!0,keepEscaping:!0});return F.sort((O,x)=>O.length-x.length),F.filter(O=>O!=="")}e.expandBraceExpansion=z;function V(B,F){let{parts:O}=i.scan(B,Object.assign(Object.assign({},F),{parts:!0}));return O.length===0&&(O=[B]),O[0].startsWith("/")&&(O[0]=O[0].slice(1),O.unshift("")),O}e.getPatternParts=V;function H(B,F){return i.makeRe(B,F)}e.makeRe=H;function L(B,F){return B.map(O=>H(O,F))}e.convertPatternsToRe=L;function N(B,F){return F.some(O=>O.test(B))}e.matchAny=N;function q(B){return B.replace(o,"/")}e.removeDuplicateSlashes=q;function J(B){const F=[],O=[];for(const x of B)P(x)?F.push(x):O.push(x);return[F,O]}e.partitionAbsoluteAndRelative=J;function P(B){return t.isAbsolute(B)}e.isAbsolute=P})),Z2=I.__commonJSMin(((e,t)=>{var r=require("stream").PassThrough,i=Array.prototype.slice;t.exports=s;function s(){const a=[],n=i.call(arguments);let l=!1,u=n[n.length-1];u&&!Array.isArray(u)&&u.pipe==null?n.pop():u={};const f=u.end!==!1,o=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);const c=r(u);function d(){for(let m=0,v=arguments.length;m<v;m++)a.push(h(arguments[m],u));return p(),this}function p(){if(l)return;l=!0;let m=a.shift();if(!m){process.nextTick(g);return}Array.isArray(m)||(m=[m]);let v=m.length+1;function y(){--v>0||(l=!1,p())}function w(_){function b(){_.removeListener("merge2UnpipeEnd",b),_.removeListener("end",b),o&&_.removeListener("error",E),y()}function E(S){c.emit("error",S)}if(_._readableState.endEmitted)return y();_.on("merge2UnpipeEnd",b),_.on("end",b),o&&_.on("error",E),_.pipe(c,{end:!1}),_.resume()}for(let _=0;_<m.length;_++)w(m[_]);y()}function g(){l=!1,c.emit("queueDrain"),f&&c.end()}return c.setMaxListeners(0),c.add=d,c.on("unpipe",function(m){m.emit("merge2UnpipeEnd")}),n.length&&d.apply(null,n),c}function h(a,n){if(Array.isArray(a))for(let l=0,u=a.length;l<u;l++)a[l]=h(a[l],n);else{if(!a._readableState&&a.pipe&&(a=a.pipe(r(n))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}})),X2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Z2();function r(s){const h=t(s);return s.forEach(a=>{a.once("error",n=>h.emit("error",n))}),h.once("close",()=>i(s)),h.once("end",()=>i(s)),h}e.merge=r;function i(s){s.forEach(h=>h.emit("close"))}})),Q2=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r})),Or=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=k2();e.array=t;var r=L2();e.errno=r;var i=F2();e.fs=i;var s=N2();e.path=s;var h=K2();e.pattern=h;var a=X2();e.stream=a;var n=Q2();e.string=n})),eI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Or();function r(f,o){const c=i(f,o),d=i(o.ignore,o),p=h(c),g=a(c,d),m=p.filter(_=>t.pattern.isStaticPattern(_,o)),v=p.filter(_=>t.pattern.isDynamicPattern(_,o)),y=s(m,g,!1),w=s(v,g,!0);return y.concat(w)}e.generate=r;function i(f,o){let c=f;return o.braceExpansion&&(c=t.pattern.expandPatternsWithBraceExpansion(c)),o.baseNameMatch&&(c=c.map(d=>d.includes("/")?d:`**/${d}`)),c.map(d=>t.pattern.removeDuplicateSlashes(d))}function s(f,o,c){const d=[],p=t.pattern.getPatternsOutsideCurrentDirectory(f),g=t.pattern.getPatternsInsideCurrentDirectory(f),m=n(p),v=n(g);return d.push(...l(m,o,c)),"."in v?d.push(u(".",g,o,c)):d.push(...l(v,o,c)),d}e.convertPatternsToTasks=s;function h(f){return t.pattern.getPositivePatterns(f)}e.getPositivePatterns=h;function a(f,o){return t.pattern.getNegativePatterns(f).concat(o).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=a;function n(f){return f.reduce((o,c)=>{const d=t.pattern.getBaseDirectory(c);return d in o?o[d].push(c):o[d]=[c],o},{})}e.groupPatternsByBaseDirectory=n;function l(f,o,c){return Object.keys(f).map(d=>u(d,f[d],o,c))}e.convertPatternGroupsToTasks=l;function u(f,o,c,d){return{dynamic:d,positive:o,negative:c,base:f,patterns:[].concat(o,c.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=u})),tI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(s,h,a){h.fs.lstat(s,(n,l)=>{if(n!==null){r(a,n);return}if(!l.isSymbolicLink()||!h.followSymbolicLink){i(a,l);return}h.fs.stat(s,(u,f)=>{if(u!==null){if(h.throwErrorOnBrokenSymbolicLink){r(a,u);return}i(a,l);return}h.markSymbolicLink&&(f.isSymbolicLink=()=>!0),i(a,f)})})}e.read=t;function r(s,h){s(h)}function i(s,h){s(null,h)}})),rI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){const s=i.fs.lstatSync(r);if(!s.isSymbolicLink()||!i.followSymbolicLink)return s;try{const h=i.fs.statSync(r);return i.markSymbolicLink&&(h.isSymbolicLink=()=>!0),h}catch(h){if(!i.throwErrorOnBrokenSymbolicLink)return s;throw h}}e.read=t})),iI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r})),nI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=iI(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,s){return i??s}};e.default=r})),Ci=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=tI(),r=rI(),i=nI();e.Settings=i.default;function s(n,l,u){if(typeof l=="function"){t.read(n,a(),l);return}t.read(n,a(l),u)}e.stat=s;function h(n,l){const u=a(l);return r.read(n,u)}e.statSync=h;function a(n={}){return n instanceof i.default?n:new i.default(n)}})),sI=I.__commonJSMin(((e,t)=>{var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(s=>setTimeout(()=>{throw s},0))})),aI=I.__commonJSMin(((e,t)=>{t.exports=i;var r=sI();function i(s,h){let a,n,l,u=!0;Array.isArray(s)?(a=[],n=s.length):(l=Object.keys(s),a={},n=l.length);function f(c){function d(){h&&h(c,a),h=null}u?r(d):d()}function o(c,d,p){a[c]=p,(--n===0||d)&&f(d)}n?l?l.forEach(function(c){s[c](function(d,p){o(c,d,p)})}):s.forEach(function(c,d){c(function(p,g){o(d,p,g)})}):f(null),u=!1}})),Bm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),s=10,h=10,a=r>s,n=r===s&&i>=h;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||n})),oI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function r(i,s){return new t(i,s)}e.createDirentFromStats=r})),Mm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=oI();e.fs=t})),Pm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,s){return r.endsWith(s)?r+i:r+s+i}e.joinPathSegments=t})),uI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Ci(),r=aI(),i=Bm(),s=Mm(),h=Pm();function a(c,d,p){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){n(c,d,p);return}u(c,d,p)}e.read=a;function n(c,d,p){d.fs.readdir(c,{withFileTypes:!0},(g,m)=>{if(g!==null){f(p,g);return}const v=m.map(y=>({dirent:y,name:y.name,path:h.joinPathSegments(c,y.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){o(p,v);return}r(v.map(y=>l(y,d)),(y,w)=>{if(y!==null){f(p,y);return}o(p,w)})})}e.readdirWithFileTypes=n;function l(c,d){return p=>{if(!c.dirent.isSymbolicLink()){p(null,c);return}d.fs.stat(c.path,(g,m)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){p(g);return}p(null,c);return}c.dirent=s.fs.createDirentFromStats(c.name,m),p(null,c)})}}function u(c,d,p){d.fs.readdir(c,(g,m)=>{if(g!==null){f(p,g);return}r(m.map(v=>{const y=h.joinPathSegments(c,v,d.pathSegmentSeparator);return w=>{t.stat(y,d.fsStatSettings,(_,b)=>{if(_!==null){w(_);return}const E={name:v,path:y,dirent:s.fs.createDirentFromStats(v,b)};d.stats&&(E.stats=b),w(null,E)})}}),(v,y)=>{if(v!==null){f(p,v);return}o(p,y)})})}e.readdir=u;function f(c,d){c(d)}function o(c,d){c(null,d)}})),lI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Ci(),r=Bm(),i=Mm(),s=Pm();function h(l,u){return!u.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(l,u):n(l,u)}e.read=h;function a(l,u){return u.fs.readdirSync(l,{withFileTypes:!0}).map(f=>{const o={dirent:f,name:f.name,path:s.joinPathSegments(l,f.name,u.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&u.followSymbolicLinks)try{const c=u.fs.statSync(o.path);o.dirent=i.fs.createDirentFromStats(o.name,c)}catch(c){if(u.throwErrorOnBrokenSymbolicLink)throw c}return o})}e.readdirWithFileTypes=a;function n(l,u){return u.fs.readdirSync(l).map(f=>{const o=s.joinPathSegments(l,f,u.pathSegmentSeparator),c=t.statSync(o,u.fsStatSettings),d={name:f,path:o,dirent:i.fs.createDirentFromStats(f,c)};return u.stats&&(d.stats=c),d})}e.readdir=n})),cI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r})),hI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Ci(),i=cI(),s=class{constructor(h={}){this._options=h,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(h,a){return h??a}};e.default=s})),Cl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=uI(),r=lI(),i=hI();e.Settings=i.default;function s(n,l,u){if(typeof l=="function"){t.read(n,a(),l);return}t.read(n,a(l),u)}e.scandir=s;function h(n,l){const u=a(l);return r.read(n,u)}e.scandirSync=h;function a(n={}){return n instanceof i.default?n:new i.default(n)}})),fI=I.__commonJSMin(((e,t)=>{function r(i){var s=new i,h=s;function a(){var l=s;return l.next?s=l.next:(s=new i,h=s),l.next=null,l}function n(l){h.next=l,h=l}return{get:a,release:n}}t.exports=r})),dI=I.__commonJSMin(((e,t)=>{var r=fI();function i(n,l,u){if(typeof n=="function"&&(u=l,l=n,n=null),!(u>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var f=r(h),o=null,c=null,d=0,p=null,g={push:E,drain:s,saturated:s,pause:v,paused:!1,get concurrency(){return u},set concurrency(z){if(!(z>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(u=z,!g.paused)for(;o&&d<u;)d++,A()},running:m,resume:_,idle:b,length:y,getQueue:w,unshift:S,empty:s,kill:C,killAndDrain:T,error:$,abort:U};return g;function m(){return d}function v(){g.paused=!0}function y(){for(var z=o,V=0;z;)z=z.next,V++;return V}function w(){for(var z=o,V=[];z;)V.push(z.value),z=z.next;return V}function _(){if(g.paused){if(g.paused=!1,o===null){d++,A();return}for(;o&&d<u;)d++,A()}}function b(){return d===0&&g.length()===0}function E(z,V){var H=f.get();H.context=n,H.release=A,H.value=z,H.callback=V||s,H.errorHandler=p,d>=u||g.paused?c?(c.next=H,c=H):(o=H,c=H,g.saturated()):(d++,l.call(n,H.value,H.worked))}function S(z,V){var H=f.get();H.context=n,H.release=A,H.value=z,H.callback=V||s,H.errorHandler=p,d>=u||g.paused?o?(H.next=o,o=H):(o=H,c=H,g.saturated()):(d++,l.call(n,H.value,H.worked))}function A(z){z&&f.release(z);var V=o;V&&d<=u?g.paused?d--:(c===o&&(c=null),o=V.next,V.next=null,l.call(n,V.value,V.worked),c===null&&g.empty()):--d===0&&g.drain()}function C(){o=null,c=null,g.drain=s}function T(){o=null,c=null,g.drain(),g.drain=s}function U(){var z=o;for(o=null,c=null;z;){var V=z.next,H=z.callback,L=z.errorHandler,N=z.value,q=z.context;z.value=null,z.callback=s,z.errorHandler=null,L&&L(new Error("abort"),N),H.call(q,new Error("abort")),z.release(z),z=V}g.drain=s}function $(z){p=z}}function s(){}function h(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null,this.errorHandler=null;var n=this;this.worked=function(u,f){var o=n.callback,c=n.errorHandler,d=n.value;n.value=null,n.callback=s,n.errorHandler&&c(u,d),o.call(n.context,u,f),n.release(n)}}function a(n,l,u){typeof n=="function"&&(u=l,l=n,n=null);function f(v,y){l.call(this,v).then(function(w){y(null,w)},y)}var o=i(n,f,u),c=o.push,d=o.unshift;return o.push=p,o.unshift=g,o.drained=m,o;function p(v){var y=new Promise(function(w,_){c(v,function(b,E){if(b){_(b);return}w(E)})});return y.catch(s),y}function g(v){var y=new Promise(function(w,_){d(v,function(b,E){if(b){_(b);return}w(E)})});return y.catch(s),y}function m(){return new Promise(function(v){process.nextTick(function(){if(o.idle())v();else{var y=o.drain;o.drain=function(){typeof y=="function"&&y(),v(),o.drain=y}}})})}}t.exports=i,t.exports.promise=a})),Tl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(h,a){return h.errorFilter===null?!0:!h.errorFilter(a)}e.isFatalError=t;function r(h,a){return h===null||h(a)}e.isAppliedFilter=r;function i(h,a){return h.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=i;function s(h,a,n){return h===""?a:h.endsWith(n)?h+a:h+n+a}e.joinPathSegments=s})),jm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Tl(),r=class{constructor(i,s){this._root=i,this._settings=s,this._root=t.replacePathSegmentSeparator(i,s.pathSegmentSeparator)}};e.default=r})),Um=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("events"),r=Cl(),i=dI(),s=Tl(),h=jm(),a=class extends h.default{constructor(n,l){super(n,l),this._settings=l,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,l){const u={directory:n,base:l};this._queue.push(u,f=>{f!==null&&this._handleError(f)})}_worker(n,l){this._scandir(n.directory,this._settings.fsScandirSettings,(u,f)=>{if(u!==null){l(u,void 0);return}for(const o of f)this._handleEntry(o,n.base);l(null,void 0)})}_handleError(n){this._isDestroyed||!s.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,l){if(this._isDestroyed||this._isFatalError)return;const u=n.path;l!==void 0&&(n.path=s.joinPathSegments(l,n.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(u,l===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};e.default=a})),pI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Um(),r=class{constructor(h,a){this._root=h,this._settings=a,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(h){this._reader.onError(a=>{i(h,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{s(h,this._storage)}),this._reader.read()}};e.default=r;function i(h,a){h(a)}function s(h,a){h(null,a)}})),mI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Um(),i=class{constructor(s,h){this._root=s,this._settings=h,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(s=>{this._stream.emit("error",s)}),this._reader.onEntry(s=>{this._stream.push(s)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i})),gI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Cl(),r=Tl(),i=jm(),s=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(h,a){this._queue.add({directory:h,base:a})}_handleQueue(){for(const h of this._queue.values())this._handleDirectory(h.directory,h.base)}_handleDirectory(h,a){try{const n=this._scandir(h,this._settings.fsScandirSettings);for(const l of n)this._handleEntry(l,a)}catch(n){this._handleError(n)}}_handleError(h){if(r.isFatalError(this._settings,h))throw h}_handleEntry(h,a){const n=h.path;a!==void 0&&(h.path=r.joinPathSegments(a,h.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,h)&&this._pushToStorage(h),h.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,h)&&this._pushToQueue(n,a===void 0?void 0:h.path)}_pushToStorage(h){this._storage.push(h)}};e.default=s})),vI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gI(),r=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r})),yI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Cl(),i=class{constructor(s={}){this._options=s,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(s,h){return s??h}};e.default=i})),Rl=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=pI(),r=mI(),i=vI(),s=yI();e.Settings=s.default;function h(u,f,o){if(typeof f=="function"){new t.default(u,l()).read(f);return}new t.default(u,l(f)).read(o)}e.walk=h;function a(u,f){const o=l(f);return new i.default(u,o).read()}e.walkSync=a;function n(u,f){const o=l(f);return new r.default(u,o).read()}e.walkStream=n;function l(u={}){return u instanceof s.default?u:new s.default(u)}})),Ol=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=Ci(),i=Or(),s=class{constructor(h){this._settings=h,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(h){return t.resolve(this._settings.cwd,h)}_makeEntry(h,a){const n={name:a,path:a,dirent:i.fs.createDirentFromStats(a,h)};return this._settings.stats&&(n.stats=h),n}_isFatalError(h){return!i.errno.isEnoentCodeError(h)&&!this._settings.suppressErrors}};e.default=s})),Hm=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Ci(),i=Rl(),s=Ol(),h=class extends s.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(a,n){return this._walkStream(a,n)}static(a,n){const l=a.map(this._getFullEntryPath,this),u=new t.PassThrough({objectMode:!0});u._write=(f,o,c)=>this._getEntry(l[f],a[f],n).then(d=>{d!==null&&n.entryFilter(d)&&u.push(d),f===l.length-1&&u.end(),c()}).catch(c);for(let f=0;f<l.length;f++)u.write(f);return u}_getEntry(a,n,l){return this._getStat(a).then(u=>this._makeEntry(u,n)).catch(u=>{if(l.errorFilter(u))return null;throw u})}_getStat(a){return new Promise((n,l)=>{this._stat(a,this._fsStatSettings,(u,f)=>u===null?n(f):l(u))})}};e.default=h})),_I=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Rl(),r=Ol(),i=Hm(),s=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(h,a){return new Promise((n,l)=>{this._walkAsync(h,a,(u,f)=>{u===null?n(f):l(u)})})}async static(h,a){const n=[],l=this._readerStream.static(h,a);return new Promise((u,f)=>{l.once("error",f),l.on("data",o=>n.push(o)),l.once("end",()=>u(n))})}};e.default=s})),EI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i,s,h){this._patterns=i,this._settings=s,this._micromatchOptions=h,this._storage=[],this._fillStorage()}_fillStorage(){for(const i of this._patterns){const s=this._getPatternSegments(i),h=this._splitSegmentsIntoSections(s);this._storage.push({complete:h.length<=1,pattern:i,segments:s,sections:h})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,s=>s.dynamic&&t.pattern.hasGlobStar(s.pattern))}};e.default=r})),bI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=EI(),r=class extends t.default{match(i){const s=i.split("/"),h=s.length,a=this._storage.filter(n=>!n.complete||n.segments.length>h);for(const n of a){const l=n.sections[0];if(!n.complete&&h>l.length||s.every((u,f)=>{const o=n.segments[f];return!!(o.dynamic&&o.patternRe.test(u)||!o.dynamic&&o.pattern===u)}))return!0}return!1}};e.default=r})),wI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=bI(),i=class{constructor(s,h){this._settings=s,this._micromatchOptions=h}getFilter(s,h,a){const n=this._getMatcher(h),l=this._getNegativePatternsRe(a);return u=>this._filter(s,u,n,l)}_getMatcher(s){return new r.default(s,this._settings,this._micromatchOptions)}_getNegativePatternsRe(s){const h=s.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(h,this._micromatchOptions)}_filter(s,h,a,n){if(this._isSkippedByDeep(s,h.path)||this._isSkippedSymbolicLink(h))return!1;const l=t.path.removeLeadingDotSegment(h.path);return this._isSkippedByPositivePatterns(l,a)?!1:this._isSkippedByNegativePatterns(l,n)}_isSkippedByDeep(s,h){return this._settings.deep===1/0?!1:this._getEntryLevel(s,h)>=this._settings.deep}_getEntryLevel(s,h){const a=h.split("/").length;return s===""?a:a-s.split("/").length}_isSkippedSymbolicLink(s){return!this._settings.followSymbolicLinks&&s.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(s,h){return!this._settings.baseNameMatch&&!h.match(s)}_isSkippedByNegativePatterns(s,h){return!t.pattern.matchAny(s,h)}};e.default=i})),SI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i,s){this._settings=i,this._micromatchOptions=s,this.index=new Map}getFilter(i,s){const[h,a]=t.pattern.partitionAbsoluteAndRelative(s),n={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(h,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(a,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return l=>this._filter(l,n)}_filter(i,s){const h=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(h)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;const a=this._isMatchToPatternsSet(h,s,i.dirent.isDirectory());return this._settings.unique&&a&&this._createIndexRecord(h),a}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,s,h){return!(!this._isMatchToPatterns(i,s.positive.all,h)||this._isMatchToPatterns(i,s.negative.relative,h)||this._isMatchToAbsoluteNegative(i,s.negative.absolute,h))}_isMatchToAbsoluteNegative(i,s,h){if(s.length===0)return!1;const a=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(a,s,h)}_isMatchToPatterns(i,s,h){if(s.length===0)return!1;const a=t.pattern.matchAny(i,s);return!a&&h?t.pattern.matchAny(i+"/",s):a}};e.default=r})),DI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r})),AI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Or(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let s=i.path;return this._settings.absolute&&(s=t.path.makeAbsolute(this._settings.cwd,s),s=t.path.unixify(s)),this._settings.markDirectories&&i.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:s}):s}};e.default=r})),Il=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("path"),r=wI(),i=SI(),s=DI(),h=AI(),a=class{constructor(n){this._settings=n,this.errorFilter=new s.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h.default(this._settings)}_getRootDirectory(n){return t.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){const l=n.base==="."?"":n.base;return{basePath:l,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(l,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a})),CI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_I(),r=Il(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(s){const h=this._getRootDirectory(s),a=this._getReaderOptions(s);return(await this.api(h,s,a)).map(n=>a.transform(n))}api(s,h,a){return h.dynamic?this._reader.dynamic(s,a):this._reader.static(h.patterns,a)}};e.default=i})),TI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=require("stream"),r=Hm(),i=Il(),s=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(h){const a=this._getRootDirectory(h),n=this._getReaderOptions(h),l=this.api(a,h,n),u=new t.Readable({objectMode:!0,read:()=>{}});return l.once("error",f=>u.emit("error",f)).on("data",f=>u.emit("data",n.transform(f))).once("end",()=>u.emit("end")),u.once("close",()=>l.destroy()),u}api(h,a,n){return a.dynamic?this._reader.dynamic(h,n):this._reader.static(a.patterns,n)}};e.default=s})),RI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Ci(),r=Rl(),i=Ol(),s=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(h,a){return this._walkSync(h,a)}static(h,a){const n=[];for(const l of h){const u=this._getFullEntryPath(l),f=this._getEntry(u,l,a);f===null||!a.entryFilter(f)||n.push(f)}return n}_getEntry(h,a,n){try{const l=this._getStat(h);return this._makeEntry(l,a)}catch(l){if(n.errorFilter(l))return null;throw l}}_getStat(h){return this._statSync(h,this._fsStatSettings)}};e.default=s})),OI=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=RI(),r=Il(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(s){const h=this._getRootDirectory(s),a=this._getReaderOptions(s);return this.api(h,s,a).map(a.transform)}api(s,h,a){return h.dynamic?this._reader.dynamic(s,a):this._reader.static(h.patterns,a)}};e.default=i})),II=I.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=require("fs"),r=require("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var s=class{constructor(h={}){this._options=h,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(h,a){return h===void 0?a:h}_getFileSystemMethods(h={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),h)}};e.default=s})),kI=I.__commonJSMin(((e,t)=>{var r=eI(),i=CI(),s=TI(),h=OI(),a=II(),n=Or();async function l(o,c){f(o);const d=u(o,i.default,c),p=await Promise.all(d);return n.array.flatten(p)}(function(o){o.glob=o,o.globSync=c,o.globStream=d,o.async=o;function c(y,w){f(y);const _=u(y,h.default,w);return n.array.flatten(_)}o.sync=c;function d(y,w){f(y);const _=u(y,s.default,w);return n.stream.merge(_)}o.stream=d;function p(y,w){f(y);const _=[].concat(y),b=new a.default(w);return r.generate(_,b)}o.generateTasks=p;function g(y,w){f(y);const _=new a.default(w);return n.pattern.isDynamicPattern(y,_)}o.isDynamicPattern=g;function m(y){return f(y),n.path.escape(y)}o.escapePath=m;function v(y){return f(y),n.path.convertPathToPattern(y)}o.convertPathToPattern=v,(function(y){function w(b){return f(b),n.path.escapePosixPath(b)}y.escapePath=w;function _(b){return f(b),n.path.convertPosixPathToPattern(b)}y.convertPathToPattern=_})(o.posix||(o.posix={})),(function(y){function w(b){return f(b),n.path.escapeWindowsPath(b)}y.escapePath=w;function _(b){return f(b),n.path.convertWindowsPathToPattern(b)}y.convertPathToPattern=_})(o.win32||(o.win32={}))})(l||(l={}));function u(o,c,d){const p=[].concat(o),g=new a.default(d),m=r.generate(p,g),v=new c(g);return m.map(v.read,v)}function f(o){if(![].concat(o).every(c=>n.string.isString(c)&&!n.string.isEmpty(c)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=l})),qm=I.__toESM(kI(),1),zm={ignore:["**/node_modules/**"]},Gm=async e=>{const t=We.default.join(We.default.dirname(e),"pnpm-workspace.yaml");let r;try{r=await tt.default.readFile(t,"utf-8")}catch{return null}return Xi.load(r)},LI=async e=>{const t=We.default.join(We.default.dirname(e),".yarnrc.yml");let r;try{r=await tt.default.readFile(t,"utf-8")}catch{return null}return Xi.load(r)},FI=async(e,t)=>{const r={};if(e.packageManager==="pnpm"){const s=await Gm(t);s&&!Array.isArray(s)&&(s.catalog&&Object.assign(r,s.catalog),s.catalogs&&Object.assign(r,...Object.values(s.catalogs)),s.workspaces&&!Array.isArray(s.workspaces)&&(s.workspaces.catalog&&Object.assign(r,s.workspaces.catalog),s.workspaces.catalogs&&Object.assign(r,...Object.values(s.workspaces.catalogs))))}if(e.packageManager==="yarn"){const s=await LI(t);s&&(s.catalog&&Object.assign(r,s.catalog),s.catalogs&&Object.assign(r,...Object.values(s.catalogs)))}const i=JSON.parse(await tt.default.readFile(t,"utf-8"));return Object.assign(r,i.catalog,...Object.values(i.catalogs??{})),i.workspaces&&!Array.isArray(i.workspaces)&&Object.assign(r,i.workspaces.catalog,...Object.values(i.workspaces.catalogs??{})),Object.keys(r).length>0?r:null};async function NI(e,t,r,i){const{pkgData:s,pkgPath:h}=await os({...e,packageFile:r,loglevel:"silent"}),a=(typeof s=="string"?JSON.parse(s):s).workspaces||await Gm(h||""),n=Array.isArray(a)?a:a?.packages;n||Xe(e,`workspaces property missing from package.json. --workspace${e.workspaces?"s":""} only works when you specify a "workspaces" property in your package.json.`);const l=(n||[]).map(c=>We.default.join(i,c,"package.json").replace(/\\/g,"/")),u=qm.default.sync(l,zm),f=await Promise.all(u.map(async c=>{const d=await ml(e,c);return d.name=d.pkg.name||c.split("/").slice(-2)[0],d})),o=f.map(c=>c.name||"");return e.workspaces===!0?[f,o]:[f.filter(c=>e.workspace?.some(d=>n?.some(p=>c.name===d||c.filepath===We.default.join(i,We.default.dirname(p),d,t).replace(/\\/g,"/")))),o]}async function xI(e,t){if(!t)return null;const r=await FI(e,t);if(!r)return null;const i={name:"catalog-dependencies",version:"1.0.0",dependencies:r};return{filepath:e.packageManager==="pnpm"?We.default.join(We.default.dirname(t),"pnpm-workspace.yaml"):e.packageManager==="yarn"?We.default.join(We.default.dirname(t),".yarnrc.yml"):`${t}#catalog`,pkg:i,pkgFile:JSON.stringify(i,null,2),name:"catalogs"}}async function $I(e){const t=e.packageFile||"package.json",r=e.cwd?Cd(e.cwd):"./",i=e.packageFile||(e.cwd?We.default.join(r,"package.json"):"package.json"),s=e.workspaces===!0||e.workspace!==void 0&&e.workspace.length!==0;let h=[];if(!s||e.root===!0){const u=i.replace(/\\/g,"/"),f=qm.default.sync(u,zm),o=await Promise.all(f.map(async c=>await ml(e,c)));h=[...h,...o]}if(!s)return[h,[]];let a=null;if(s){const{pkgPath:u}=await os({...e,packageFile:i,loglevel:"silent"});u&&(a=await xI(e,u))}const[n,l]=await NI(e,t,i,r);return h=[...h,...n],a&&(h=[...h,a]),[h,l]}var BI=I.__commonJSMin(((e,t)=>{var r=require("module"),i=require("path");t.exports=function(h,a,n){if(typeof a=="object"&&(n=a,a=void 0),n=n||{},a=a||"",n.appendPaths=n.appendPaths||[],n.prependPaths=n.prependPaths||[],typeof h!="string")throw new Error("code must be a string, not "+typeof h);var l=r._nodeModulePaths(i.dirname(a)),u=t.parent,f=new r(a,u);f.filename=a,f.paths=[].concat(n.prependPaths).concat(l).concat(n.appendPaths),f._compile(h,a);var o=f.exports;return u&&u.children&&u.children.splice(u.children.indexOf(f),1),o}})),MI=I.__exportAll({default:()=>Wm});function Qo(e,t,r){const i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let s=0;s<i.length;s++){const h=String(s),a=Qo(i,h,r);a===void 0?delete i[h]:Object.defineProperty(i,h,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const s in i){const h=Qo(i,s,r);h===void 0?delete i[s]:Object.defineProperty(i,s,{value:h,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,i)}function PI(){for(Ve="default",Ge="",Mi=!1,ur=1;;){Ye=cr();const e=iu[Ve]();if(e)return e}}function cr(){if(tu[ls])return String.fromCodePoint(tu.codePointAt(ls))}function Oe(){const e=cr();return e===`
|
|
688
688
|
`?(wr++,Vt=0):e?Vt+=e.length:Vt++,e&&(ls+=e.length),e}function ut(e,t){return{type:e,value:t,line:wr,column:Vt}}function Ir(e){for(const t of e){if(cr()!==t)throw lt(Oe());Oe()}}function jI(){switch(cr()){case"b":return Oe(),"\b";case"f":return Oe(),"\f";case"n":return Oe(),`
|
|
689
689
|
`;case"r":return Oe(),"\r";case"t":return Oe()," ";case"v":return Oe(),"\v";case"0":if(Oe(),mt.isDigit(cr()))throw lt(Oe());return"\0";case"x":return Oe(),UI();case"u":return Oe(),eu();case`
|
|
690
690
|
`:case"\u2028":case"\u2029":return Oe(),"";case"\r":return Oe(),cr()===`
|
|
@@ -731,8 +731,8 @@ Please add a ${a} to the current directory, specify the ${ge.cyan("--packageFile
|
|
|
731
731
|
`:""}t.exports.dump=Te})),WI=I.__commonJSMin(((e,t)=>{var r=GI(),i=JI();function s(h,a){return function(){throw new Error("Function yaml."+h+" is removed in js-yaml 4. Use yaml."+a+" instead, which is now safe by default.")}}t.exports.Type=Bt(),t.exports.Schema=Vm(),t.exports.FAILSAFE_SCHEMA=Xm(),t.exports.JSON_SCHEMA=ig(),t.exports.CORE_SCHEMA=ng(),t.exports.DEFAULT_SCHEMA=kl(),t.exports.load=r.load,t.exports.loadAll=r.loadAll,t.exports.dump=i.dump,t.exports.YAMLException=Sn(),t.exports.types={binary:og(),float:rg(),map:Zm(),null:Qm(),pairs:lg(),set:cg(),timestamp:sg(),bool:eg(),int:tg(),merge:ag(),omap:ug(),seq:Km(),str:Ym()},t.exports.safeLoad=s("safeLoad","load"),t.exports.safeLoadAll=s("safeLoadAll","loadAll"),t.exports.safeDump=s("safeDump","dump")})),VI=I.__commonJSMin((e=>{var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.rcFile=f;var r=t(require("path")),i=t(require("fs")),s=t(BI()),h=t((qI(),I.__toCommonJS(MI))),a=pn()("rc-config-loader"),n={".cjs":p,".js":p,".json":g,".yaml":v,".yml":v},l={packageJSON:!1,defaultExtension:[".json",".yaml",".yml",".js",".cjs"],cwd:process.cwd()},u=(y,w)=>{if(!l.defaultExtension.includes(w))throw new Error(`${w} is not supported.`);return y[w]};function f(y,w={}){const _=w.configFileName||`.${y}rc`,b=w.defaultExtension||l.defaultExtension,E=w.cwd||l.cwd,S=w.packageJSON||l.packageJSON,A=typeof S=="object"?S.fieldName:y,C=c(E),T=Array.isArray(b)?b.map(U=>u(n,U)):u(n,b);return o({parts:C,loaderByExt:Object.assign(Object.assign({},n),{"":T}),loadersByOrder:T,configFileName:_,packageJSON:S,packageJSONFieldName:A})}function o({parts:y,loaderByExt:w,loadersByOrder:_,configFileName:b,packageJSON:E,packageJSONFieldName:S}){const A=Object.keys(w);for(;A.length;){const C=A.shift(),T=d(y,b+C);if(!i.default.existsSync(T))continue;const U=C?w[C]:_;if(!Array.isArray(U)){const $=U(T,!1);if(!$)continue;return{config:$,filePath:T}}for(let $=0;$<U.length;$++){const z=U[$],V=z(T,!0);if(V)return{config:V,filePath:T}}}if(E){const C=d(y,"package.json");if(i.default.existsSync(C)){const T=h.default.parse(m(C));if(T[S])return{config:T[S],filePath:C}}}if(y.pop())return o({parts:y,loaderByExt:w,loadersByOrder:_,configFileName:b,packageJSON:E,packageJSONFieldName:S})}function c(y){return r.default.resolve(y||"").split(r.default.sep)}function d(y,w){return r.default.resolve(y.join(r.default.sep)+r.default.sep,w)}function p(y,w){a(`Loading JavaScript config file: ${y}`);try{const _=i.default.readFileSync(y,"utf-8");return(0,s.default)(_,y)}catch(_){if(a(`Error reading JavaScript file: ${y}`),!w)throw _.message=`Cannot read config file: ${y}
|
|
732
732
|
Error: ${_.message}`,_}}function g(y,w){a(`Loading JSON config file: ${y}`);try{return h.default.parse(m(y))}catch(_){if(a(`Error reading JSON file: ${y}`),!w)throw _.message=`Cannot read config file: ${y}
|
|
733
733
|
Error: ${_.message}`,_}}function m(y){return i.default.readFileSync(y,"utf8")}function v(y,w){a(`Loading YAML config file: ${y}`);const _=WI();try{return _.load(m(y))||{}}catch(b){if(a(`Error reading YAML file: ${y}`),!w)throw b.message=`Cannot read config file: ${y}
|
|
734
|
-
Error: ${b.message}`,b}}})),YI=VI();async function hg({configFileName:e,configFilePath:t,packageFile:r,global:i,options:s}){const h=rn(s?.color),a=(0,YI.rcFile)("ncurc",{configFileName:e||".ncurc",defaultExtension:[".json",".yml",".js"],cwd:t||(i?gr.default.homedir():r?Je.default.dirname(r):void 0)}),n=a?.filePath;e&&!n&&Xe(s,`Config file ${e} not found in ${t||process.cwd()}`);const{$schema:l,...u}=a?.config||{},f=u;typeof f.format=="string"&&(f.format=Nr.format.parse(f.format));const o=Object.keys(f).filter(c=>!Nr[c]);return o.length>0&&(console.error(h.red(`Unknown option${o.length===1?"":"s"} found in config file:`),h.gray(o.join(", "))),console.info("Using config file "+n),console.info(`You can change the config file path with ${h.blue("--configFilePath")}`)),{filePath:n,args:Object.entries(f).flatMap(([c,d])=>typeof d=="boolean"||Nr[c]?.type==="boolean"?d?[`--${c}`]:[]:[`--${c}`,d]),config:f}}var yh=Object.prototype.hasOwnProperty;function _h(e,t,r){for(r of e.keys())if(Br(r,t))return r}function Br(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--&&Br(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=_h(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=_h(t,s),!s)||!Br(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(yh.call(e,r)&&++i&&!yh.call(t,r)||!(r in t)||!Br(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}var Xs=I.__commonJSMin(((e,t)=>{var r="\\\\/",i=`[^${r}]`,s=0,h="\\.",a="\\+",n="\\?",l="\\/",u="(?=.)",f="[^/]",o=`(?:${l}|$)`,c=`(?:^|${l})`,d=`${h}{1,2}${o}`,p={DOT_LITERAL:h,PLUS_LITERAL:a,QMARK_LITERAL:n,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:f,END_ANCHOR:o,DOTS_SLASH:d,NO_DOT:`(?!${h})`,NO_DOTS:`(?!${c}${d})`,NO_DOT_SLASH:`(?!${h}{0,1}${o})`,NO_DOTS_SLASH:`(?!${d})`,QMARK_NO_DOT:`[^.${l}]`,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}}})),Qs=I.__commonJSMin((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:s}=Xs();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,a=>a==="\\"?"":a),e.escapeLast=(h,a,n)=>{const l=h.lastIndexOf(a,n);return l===-1?h:h[l-1]==="\\"?e.escapeLast(h,a,l-1):`${h.slice(0,l)}\\${h.slice(l)}`},e.removePrefix=(h,a={})=>{let n=h;return n.startsWith("./")&&(n=n.slice(2),a.prefix="./"),n},e.wrapOutput=(h,a={},n={})=>{let l=`${n.contains?"":"^"}(?:${h})${n.contains?"":"$"}`;return a.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},e.basename=(h,{windows:a}={})=>{const n=h.split(a?/[\\/]/:"/"),l=n[n.length-1];return l===""?n[n.length-2]:l}})),KI=I.__commonJSMin(((e,t)=>{var r=Qs(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:o,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}=Xs(),y=b=>b===u||b===h,w=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)},_=(b,E)=>{const S=E||{},A=b.length-1,C=S.parts===!0||S.scanToEnd===!0,T=[],U=[],$=[];let z=b,V=-1,H=0,L=0,N=!1,q=!1,J=!1,P=!1,B=!1,F=!1,O=!1,x=!1,Y=!1,oe=!1,pe=0,ye,W,M={value:"",depth:0,isGlob:!1};const G=()=>V>=A,X=()=>z.charCodeAt(V+1),ne=()=>(ye=W,z.charCodeAt(++V));for(;V<A;){W=ne();let De;if(W===h){O=M.backslashes=!0,W=ne(),W===f&&(F=!0);continue}if(F===!0||W===f){for(pe++;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,ne();continue}if(W===f){pe++;continue}if(F!==!0&&W===n&&(W=ne())===n){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(F!==!0&&W===a){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===g&&(pe--,pe===0)){F=!1,N=M.isBrace=!0,oe=!0;break}}if(C===!0)continue;break}if(W===u){if(T.push(V),U.push(M),M={value:"",depth:0,isGlob:!1},oe===!0)continue;if(ye===n&&V===H+1){H+=2;continue}L=V+1;continue}if(S.noext!==!0&&(W===d||W===s||W===i||W===p||W===l)&&X()===o){if(J=M.isGlob=!0,P=M.isExtglob=!0,oe=!0,W===l&&V===H&&(Y=!0),C===!0){for(;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,W=ne();continue}if(W===m){J=M.isGlob=!0,oe=!0;break}}continue}break}if(W===i){if(ye===i&&(B=M.isGlobstar=!0),J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===p){if(J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===c){for(;G()!==!0&&(De=ne());){if(De===h){O=M.backslashes=!0,ne();continue}if(De===v){q=M.isBracket=!0,J=M.isGlob=!0,oe=!0;break}}if(C===!0)continue;break}if(S.nonegate!==!0&&W===l&&V===H){x=M.negated=!0,H++;continue}if(S.noparen!==!0&&W===o){if(J=M.isGlob=!0,C===!0){for(;G()!==!0&&(W=ne());){if(W===o){O=M.backslashes=!0,W=ne();continue}if(W===m){oe=!0;break}}continue}break}if(J===!0){if(oe=!0,C===!0)continue;break}}S.noext===!0&&(P=!1,J=!1);let k=z,j="",ee="";H>0&&(j=z.slice(0,H),z=z.slice(H),L-=H),k&&J===!0&&L>0?(k=z.slice(0,L),ee=z.slice(L)):J===!0?(k="",ee=z):k=z,k&&k!==""&&k!=="/"&&k!==z&&y(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),S.unescape===!0&&(ee&&(ee=r.removeBackslashes(ee)),k&&O===!0&&(k=r.removeBackslashes(k)));const Se={prefix:j,input:b,start:H,base:k,glob:ee,isBrace:N,isBracket:q,isGlob:J,isExtglob:P,isGlobstar:B,negated:x,negatedExtglob:Y};if(S.tokens===!0&&(Se.maxDepth=0,y(W)||U.push(M),Se.tokens=U),S.parts===!0||S.tokens===!0){let De;for(let ve=0;ve<T.length;ve++){const $e=De?De+1:H,xe=T[ve],Pe=b.slice($e,xe);S.tokens&&(ve===0&&H!==0?(U[ve].isPrefix=!0,U[ve].value=j):U[ve].value=Pe,w(U[ve]),Se.maxDepth+=U[ve].depth),(ve!==0||Pe!=="")&&$.push(Pe),De=xe}if(De&&De+1<b.length){const ve=b.slice(De+1);$.push(ve),S.tokens&&(U[U.length-1].value=ve,w(U[U.length-1]),Se.maxDepth+=U[U.length-1].depth)}Se.slashes=T,Se.parts=$}return Se};t.exports=_})),ZI=I.__commonJSMin(((e,t)=>{var r=Xs(),i=Qs(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:l}=r,u=(_,b)=>{if(typeof b.expandRange=="function")return b.expandRange(..._,b);_.sort();const E=`[${_.join("-")}]`;try{new RegExp(E)}catch{return _.map(A=>i.escapeRegex(A)).join("..")}return E},f=(_,b)=>`Missing ${_}: "${b}" - use "\\\\${b}" to match literal characters`,o=_=>{const b=[];let E=0,S=0,A=0,C="",T=!1;for(const U of _){if(T===!0){C+=U,T=!1;continue}if(U==="\\"){C+=U,T=!0;continue}if(U==='"'){A=A===1?0:1,C+=U;continue}if(A===0){if(U==="[")E++;else if(U==="]"&&E>0)E--;else if(E===0){if(U==="(")S++;else if(U===")"&&S>0)S--;else if(U==="|"&&S===0){b.push(C),C="";continue}}}C+=U}return b.push(C),b},c=_=>{let b=!1;for(const E of _){if(b===!0){b=!1;continue}if(E==="\\"){b=!0;continue}if(/[?*+@!()[\]{}]/.test(E))return!1}return!0},d=_=>{let b=_.trim(),E=!0;for(;E===!0;)E=!1,/^@\([^\\()[\]{}|]+\)$/.test(b)&&(b=b.slice(2,-1),E=!0);if(c(b))return b.replace(/\\(.)/g,"$1")},p=_=>{const b=_.map(d).filter(Boolean);for(let E=0;E<b.length;E++)for(let S=E+1;S<b.length;S++){const A=b[E],C=b[S],T=A[0];if(!(!T||A!==T.repeat(A.length)||C!==T.repeat(C.length))&&(A===C||A.startsWith(C)||C.startsWith(A)))return!0}return!1},g=(_,b=!0)=>{if(_[0]!=="+"&&_[0]!=="*"||_[1]!=="(")return;let E=0,S=0,A=0,C=!1;for(let T=1;T<_.length;T++){const U=_[T];if(C===!0){C=!1;continue}if(U==="\\"){C=!0;continue}if(U==='"'){A=A===1?0:1;continue}if(A!==1){if(U==="["){E++;continue}if(U==="]"&&E>0){E--;continue}if(!(E>0)){if(U==="("){S++;continue}if(U===")"&&(S--,S===0))return b===!0&&T!==_.length-1?void 0:{type:_[0],body:_.slice(2,T),end:T}}}}},m=_=>{let b=0;const E=[];for(;b<_.length;){const S=g(_.slice(b),!1);if(!S||S.type!=="*")return;const A=o(S.body).map(T=>T.trim());if(A.length!==1)return;const C=d(A[0]);if(!C||C.length!==1)return;E.push(C),b+=S.end+1}if(!(E.length<1))return`${E.length===1?i.escapeRegex(E[0]):`[${E.map(S=>i.escapeRegex(S)).join("")}]`}*`},v=_=>{let b=0,E=_.trim(),S=g(E);for(;S;)b++,E=S.body.trim(),S=g(E);return b},y=(_,b)=>{if(b.maxExtglobRecursion===!1)return{risky:!1};const E=typeof b.maxExtglobRecursion=="number"?b.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,S=o(_).map(A=>A.trim());if(S.length>1&&(S.some(A=>A==="")||S.some(A=>/^[*?]+$/.test(A))||p(S)))return{risky:!0};for(const A of S){const C=m(A);if(C)return{risky:!0,safeOutput:C};if(v(A)>E)return{risky:!0}}return{risky:!1}},w=(_,b)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=l[_]||_;const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s;let A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);const C={type:"bos",value:"",output:E.prepend||""},T=[C],U=E.capture?"":"?:",$=r.globChars(E.windows),z=r.extglobChars($),{DOT_LITERAL:V,PLUS_LITERAL:H,SLASH_LITERAL:L,ONE_CHAR:N,DOTS_SLASH:q,NO_DOT:J,NO_DOT_SLASH:P,NO_DOTS_SLASH:B,QMARK:F,QMARK_NO_DOT:O,STAR:x,START_ANCHOR:Y}=$,oe=re=>`(${U}(?:(?!${Y}${re.dot?q:V}).)*?)`,pe=E.dot?"":J,ye=E.dot?F:O;let W=E.bash===!0?oe(E):x;E.capture&&(W=`(${W})`),typeof E.noext=="boolean"&&(E.noextglob=E.noext);const M={input:_,index:-1,start:0,dot:E.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:T};_=i.removePrefix(_,M),A=_.length;const G=[],X=[],ne=[];let k=C,j;const ee=()=>M.index===A-1,Se=M.peek=(re=1)=>_[M.index+re],De=M.advance=()=>_[++M.index]||"",ve=()=>_.slice(M.index+1),$e=(re="",Q=0)=>{M.consumed+=re,M.index+=Q},xe=re=>{M.output+=re.output!=null?re.output:re.value,$e(re.value)},Pe=()=>{let re=1;for(;Se()==="!"&&(Se(2)!=="("||Se(3)==="?");)De(),M.start++,re++;return re%2===0?!1:(M.negated=!0,M.start++,!0)},Re=re=>{M[re]++,ne.push(re)},D=re=>{M[re]--,ne.pop()},se=re=>{if(k.type==="globstar"){const Q=M.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||G.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!Q&&!ie&&(M.output=M.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=W,M.output+=k.output)}if(G.length&&re.type!=="paren"&&(G[G.length-1].inner+=re.value),(re.value||re.output)&&xe(re),k&&k.type==="text"&&re.type==="text"){k.output=(k.output||k.value)+re.value,k.value+=re.value;return}re.prev=k,T.push(re),k=re},he=(re,Q)=>{const ie={...z[Q],conditions:1,inner:""};ie.prev=k,ie.parens=M.parens,ie.output=M.output,ie.startIndex=M.index,ie.tokensIndex=T.length;const ae=(E.capture?"(":"")+ie.open;Re("parens"),se({type:re,value:Q,output:M.output?"":N}),se({type:"paren",extglob:!0,value:De(),output:ae}),G.push(ie)},de=re=>{const Q=_.slice(re.startIndex,M.index+1),ie=y(_.slice(re.startIndex+2,M.index),E);if((re.type==="plus"||re.type==="star")&&ie.risky){const Le=ie.safeOutput?(re.output?"":N)+(E.capture?`(${ie.safeOutput})`:ie.safeOutput):void 0,Ae=T[re.tokensIndex];Ae.type="text",Ae.value=Q,Ae.output=Le||i.escapeRegex(Q);for(let Te=re.tokensIndex+1;Te<T.length;Te++)T[Te].value="",T[Te].output="",delete T[Te].suffix;M.output=re.output+Ae.output,M.backtrack=!0,se({type:"paren",extglob:!0,value:j,output:""}),D("parens");return}let ae=re.close+(E.capture?")":""),_e;if(re.type==="negate"){let Le=W;re.inner&&re.inner.length>1&&re.inner.includes("/")&&(Le=oe(E)),(Le!==W||ee()||/^\)+$/.test(ve()))&&(ae=re.close=`)$))${Le}`),re.inner.includes("*")&&(_e=ve())&&/^\.[^\\/.]+$/.test(_e)&&(ae=re.close=`)${w(_e,{...b,fastpaths:!1}).output})${Le})`),re.prev.type==="bos"&&(M.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:j,output:ae}),D("parens")};if(E.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let re=!1,Q=_.replace(n,(ie,ae,_e,Le,Ae,Te)=>Le==="\\"?(re=!0,ie):Le==="?"?ae?ae+Le+(Ae?F.repeat(Ae.length):""):Te===0?ye+(Ae?F.repeat(Ae.length):""):F.repeat(_e.length):Le==="."?V.repeat(_e.length):Le==="*"?ae?ae+Le+(Ae?W:""):W:ae?ie:`\\${ie}`);return re===!0&&(E.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),Q===_&&E.contains===!0?(M.output=_,M):(M.output=i.wrapOutput(Q,M,b),M)}for(;!ee();){if(j=De(),j==="\0")continue;if(j==="\\"){const ie=Se();if(ie==="/"&&E.bash!==!0||ie==="."||ie===";")continue;if(!ie){j+="\\",se({type:"text",value:j});continue}const ae=/^\\+/.exec(ve());let _e=0;if(ae&&ae[0].length>2&&(_e=ae[0].length,M.index+=_e,_e%2!==0&&(j+="\\")),E.unescape===!0?j=De():j+=De(),M.brackets===0){se({type:"text",value:j});continue}}if(M.brackets>0&&(j!=="]"||k.value==="["||k.value==="[^")){if(E.posix!==!1&&j===":"){const ie=k.value.slice(1);if(ie.includes("[")&&(k.posix=!0,ie.includes(":"))){const ae=k.value.lastIndexOf("["),_e=k.value.slice(0,ae),Le=h[k.value.slice(ae+2)];if(Le){k.value=_e+Le,M.backtrack=!0,De(),!C.output&&T.indexOf(k)===1&&(C.output=N);continue}}}(j==="["&&Se()!==":"||j==="-"&&Se()==="]")&&(j=`\\${j}`),j==="]"&&(k.value==="["||k.value==="[^")&&(j=`\\${j}`),E.posix===!0&&j==="!"&&k.value==="["&&(j="^"),k.value+=j,xe({value:j});continue}if(M.quotes===1&&j!=='"'){j=i.escapeRegex(j),k.value+=j,xe({value:j});continue}if(j==='"'){M.quotes=M.quotes===1?0:1,E.keepQuotes===!0&&se({type:"text",value:j});continue}if(j==="("){Re("parens"),se({type:"paren",value:j});continue}if(j===")"){if(M.parens===0&&E.strictBrackets===!0)throw new SyntaxError(f("opening","("));const ie=G[G.length-1];if(ie&&M.parens===ie.parens+1){de(G.pop());continue}se({type:"paren",value:j,output:M.parens?")":"\\)"}),D("parens");continue}if(j==="["){if(E.nobracket===!0||!ve().includes("]")){if(E.nobracket!==!0&&E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));j=`\\${j}`}else Re("brackets");se({type:"bracket",value:j});continue}if(j==="]"){if(E.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){se({type:"text",value:j,output:`\\${j}`});continue}if(M.brackets===0){if(E.strictBrackets===!0)throw new SyntaxError(f("opening","["));se({type:"text",value:j,output:`\\${j}`});continue}D("brackets");const ie=k.value.slice(1);if(k.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(j=`/${j}`),k.value+=j,xe({value:j}),E.literalBrackets===!1||i.hasRegexChars(ie))continue;const ae=i.escapeRegex(k.value);if(M.output=M.output.slice(0,-k.value.length),E.literalBrackets===!0){M.output+=ae,k.value=ae;continue}k.value=`(${U}${ae}|${k.value})`,M.output+=k.value;continue}if(j==="{"&&E.nobrace!==!0){Re("braces");const ie={type:"brace",value:j,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};X.push(ie),se(ie);continue}if(j==="}"){const ie=X[X.length-1];if(E.nobrace===!0||!ie){se({type:"text",value:j,output:j});continue}let ae=")";if(ie.dots===!0){const _e=T.slice(),Le=[];for(let Ae=_e.length-1;Ae>=0&&(T.pop(),_e[Ae].type!=="brace");Ae--)_e[Ae].type!=="dots"&&Le.unshift(_e[Ae].value);ae=u(Le,E),M.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){const _e=M.output.slice(0,ie.outputIndex),Le=M.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",j=ae="\\}",M.output=_e;for(const Ae of Le)M.output+=Ae.output||Ae.value}se({type:"brace",value:j,output:ae}),D("braces"),X.pop();continue}if(j==="|"){G.length>0&&G[G.length-1].conditions++,se({type:"text",value:j});continue}if(j===","){let ie=j;const ae=X[X.length-1];ae&&ne[ne.length-1]==="braces"&&(ae.comma=!0,ie="|"),se({type:"comma",value:j,output:ie});continue}if(j==="/"){if(k.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",T.pop(),k=C;continue}se({type:"slash",value:j,output:L});continue}if(j==="."){if(M.braces>0&&k.type==="dot"){k.value==="."&&(k.output=V);const ie=X[X.length-1];k.type="dots",k.output+=j,k.value+=j,ie.dots=!0;continue}if(M.braces+M.parens===0&&k.type!=="bos"&&k.type!=="slash"){se({type:"text",value:j,output:V});continue}se({type:"dot",value:j,output:V});continue}if(j==="?"){if(!(k&&k.value==="(")&&E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){he("qmark",j);continue}if(k&&k.type==="paren"){const ie=Se();let ae=j;(k.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(ve()))&&(ae=`\\${j}`),se({type:"text",value:j,output:ae});continue}if(E.dot!==!0&&(k.type==="slash"||k.type==="bos")){se({type:"qmark",value:j,output:O});continue}se({type:"qmark",value:j,output:F});continue}if(j==="!"){if(E.noextglob!==!0&&Se()==="("&&(Se(2)!=="?"||!/[!=<:]/.test(Se(3)))){he("negate",j);continue}if(E.nonegate!==!0&&M.index===0){Pe();continue}}if(j==="+"){if(E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){he("plus",j);continue}if(k&&k.value==="("||E.regex===!1){se({type:"plus",value:j,output:H});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||M.parens>0){se({type:"plus",value:j});continue}se({type:"plus",value:H});continue}if(j==="@"){if(E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){se({type:"at",extglob:!0,value:j,output:""});continue}se({type:"text",value:j});continue}if(j!=="*"){(j==="$"||j==="^")&&(j=`\\${j}`);const ie=a.exec(ve());ie&&(j+=ie[0],M.index+=ie[0].length),se({type:"text",value:j});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=j,k.output=W,M.backtrack=!0,M.globstar=!0,$e(j);continue}let re=ve();if(E.noextglob!==!0&&/^\([^?]/.test(re)){he("star",j);continue}if(k.type==="star"){if(E.noglobstar===!0){$e(j);continue}const ie=k.prev,ae=ie.prev,_e=ie.type==="slash"||ie.type==="bos",Le=ae&&(ae.type==="star"||ae.type==="globstar");if(E.bash===!0&&(!_e||re[0]&&re[0]!=="/")){se({type:"star",value:j,output:""});continue}const Ae=M.braces>0&&(ie.type==="comma"||ie.type==="brace"),Te=G.length&&(ie.type==="pipe"||ie.type==="paren");if(!_e&&ie.type!=="paren"&&!Ae&&!Te){se({type:"star",value:j,output:""});continue}for(;re.slice(0,3)==="/**";){const K=_[M.index+4];if(K&&K!=="/")break;re=re.slice(3),$e("/**",3)}if(ie.type==="bos"&&ee()){k.type="globstar",k.value+=j,k.output=oe(E),M.output=k.output,M.globstar=!0,$e(j);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!Le&&ee()){M.output=M.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=oe(E)+(E.strictSlashes?")":"|$)"),k.value+=j,M.globstar=!0,M.output+=ie.output+k.output,$e(j);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){const K=re[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=`${oe(E)}${L}|${L}${K})`,k.value+=j,M.output+=ie.output+k.output,M.globstar=!0,$e(j+De()),se({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){k.type="globstar",k.value+=j,k.output=`(?:^|${L}|${oe(E)}${L})`,M.output=k.output,M.globstar=!0,$e(j+De()),se({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-k.output.length),k.type="globstar",k.output=oe(E),k.value+=j,M.output+=k.output,M.globstar=!0,$e(j);continue}const Q={type:"star",value:j,output:W};if(E.bash===!0){Q.output=".*?",(k.type==="bos"||k.type==="slash")&&(Q.output=pe+Q.output),se(Q);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&E.regex===!0){Q.output=j,se(Q);continue}(M.index===M.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(M.output+=P,k.output+=P):E.dot===!0?(M.output+=B,k.output+=B):(M.output+=pe,k.output+=pe),Se()!=="*"&&(M.output+=N,k.output+=N)),se(Q)}for(;M.brackets>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));M.output=i.escapeLast(M.output,"["),D("brackets")}for(;M.parens>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing",")"));M.output=i.escapeLast(M.output,"("),D("parens")}for(;M.braces>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","}"));M.output=i.escapeLast(M.output,"{"),D("braces")}if(E.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${L}?`}),M.backtrack===!0){M.output="";for(const re of M.tokens)M.output+=re.output!=null?re.output:re.value,re.suffix&&(M.output+=re.suffix)}return M};w.fastpaths=(_,b)=>{const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s,A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);_=l[_]||_;const{DOT_LITERAL:C,SLASH_LITERAL:T,ONE_CHAR:U,DOTS_SLASH:$,NO_DOT:z,NO_DOTS:V,NO_DOTS_SLASH:H,STAR:L,START_ANCHOR:N}=r.globChars(E.windows),q=E.dot?V:z,J=E.dot?H:z,P=E.capture?"":"?:",B={negated:!1,prefix:""};let F=E.bash===!0?".*?":L;E.capture&&(F=`(${F})`);const O=oe=>oe.noglobstar===!0?F:`(${P}(?:(?!${N}${oe.dot?$:C}).)*?)`,x=oe=>{switch(oe){case"*":return`${q}${U}${F}`;case".*":return`${C}${U}${F}`;case"*.*":return`${q}${F}${C}${U}${F}`;case"*/*":return`${q}${F}${T}${U}${J}${F}`;case"**":return q+O(E);case"**/*":return`(?:${q}${O(E)}${T})?${J}${U}${F}`;case"**/*.*":return`(?:${q}${O(E)}${T})?${J}${F}${C}${U}${F}`;case"**/.*":return`(?:${q}${O(E)}${T})?${C}${U}${F}`;default:{const pe=/^(.*?)\.(\w+)$/.exec(oe);if(!pe)return;const ye=x(pe[1]);return ye?ye+C+pe[2]:void 0}}};let Y=x(i.removePrefix(_,B));return Y&&E.strictSlashes!==!0&&(Y+=`${T}?`),Y},t.exports=w})),XI=I.__commonJSMin(((e,t)=>{var r=KI(),i=ZI(),s=Qs(),h=Xs(),a=l=>l&&typeof l=="object"&&!Array.isArray(l),n=(l,u,f=!1)=>{if(Array.isArray(l)){const y=l.map(_=>n(_,u,f));return _=>{for(const b of y){const E=b(_);if(E)return E}return!1}}const o=a(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");const c=u||{},d=c.windows,p=o?n.compileRe(l,u):n.makeRe(l,u,!1,!0),g=p.state;delete p.state;let m=()=>!1;if(c.ignore){const y={...u,ignore:null,onMatch:null,onResult:null};m=n(c.ignore,y,f)}const v=(y,w=!1)=>{const{isMatch:_,match:b,output:E}=n.test(y,p,u,{glob:l,posix:d}),S={glob:l,state:g,regex:p,posix:d,input:y,output:E,match:b,isMatch:_};return typeof c.onResult=="function"&&c.onResult(S),_===!1?(S.isMatch=!1,w?S:!1):m(y)?(typeof c.onIgnore=="function"&&c.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof c.onMatch=="function"&&c.onMatch(S),w?S:!0)};return f&&(v.state=g),v};n.test=(l,u,f,{glob:o,posix:c}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};const d=f||{},p=d.format||(c?s.toPosixSlashes:null);let g=l===o,m=g&&p?p(l):l;return g===!1&&(m=p?p(l):l,g=m===o),(g===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?g=n.matchBase(l,u,f,c):g=u.exec(m)),{isMatch:!!g,match:g,output:m}},n.matchBase=(l,u,f)=>(u instanceof RegExp?u:n.makeRe(u,f)).test(s.basename(l)),n.isMatch=(l,u,f)=>n(u,f)(l),n.parse=(l,u)=>Array.isArray(l)?l.map(f=>n.parse(f,u)):i(l,{...u,fastpaths:!1}),n.scan=(l,u)=>r(l,u),n.compileRe=(l,u,f=!1,o=!1)=>{if(f===!0)return l.output;const c=u||{},d=c.contains?"":"^",p=c.contains?"":"$";let g=`${d}(?:${l.output})${p}`;l&&l.negated===!0&&(g=`^(?!${g}).*$`);const m=n.toRegex(g,u);return o===!0&&(m.state=l),m},n.makeRe=(l,u={},f=!1,o=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(c.output=i.fastpaths(l,u)),c.output||(c=i(l,u)),n.compileRe(c,u,f,o)},n.toRegex=(l,u)=>{try{const f=u||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(u&&u.debug===!0)throw f;return/$^/}},n.constants=h,t.exports=n})),QI=I.__commonJSMin(((e,t)=>{var r=XI(),i=Qs();function s(h,a,n=!1){return a&&(a.windows===null||a.windows===void 0)&&(a={...a,windows:i.isWindows()}),r(h,a,n)}Object.assign(s,r),t.exports=s})),cs=I.__toESM(QI(),1),ek=I.__exportAll({greatest:()=>fg,greatestLevel:()=>Fl,latest:()=>rk,minor:()=>ik,newest:()=>ak,patch:()=>nk,semver:()=>sk}),tk=(0,ou.promisify)(Un.default.execFile);async function ya(e){const t=(await tk("git",["ls-remote","--tags",e])).stdout,r={};for(const i of t.trim().split(`
|
|
735
|
-
`)){const s=i.split(" ");r[s[1].replace(/^refs\/tags\/|\^{}$/g,"")]=s[0]}return r}async function Ll(e,t,r){t=t.replace(/^github:/,"");const{auth:i,protocol:s,host:h,path:a}=(0,on.default)(t);let n;try{if(s!==null)n=await ya(`${s?s.replace("git+",""):"https:"}//${i?i+"@":""}${h}/${a?.replace(/^:/,"")}`);else try{n=await ya(`ssh://git@${h}/${a?.replace(/^:/,"")}`)}catch{n=await ya(`https://${i?i+"@":""}${h}/${a}`)}}catch{Me(r??{},`Invalid, private repo, or no tags for ${e}: ${t}`,"verbose");return}return Object.keys(n).map(Fu).filter(l=>(0,
|
|
734
|
+
Error: ${b.message}`,b}}})),YI=VI();async function hg({configFileName:e,configFilePath:t,packageFile:r,global:i,options:s}){const h=rn(s?.color),a=(0,YI.rcFile)("ncurc",{configFileName:e||".ncurc",defaultExtension:[".json",".yml",".js"],cwd:t||(i?gr.default.homedir():r?We.default.dirname(r):void 0)}),n=a?.filePath;e&&!n&&Xe(s,`Config file ${e} not found in ${t||process.cwd()}`);const{$schema:l,...u}=a?.config||{},f=u;typeof f.format=="string"&&(f.format=Nr.format.parse(f.format));const o=Object.keys(f).filter(c=>!Nr[c]);return o.length>0&&(console.error(h.red(`Unknown option${o.length===1?"":"s"} found in config file:`),h.gray(o.join(", "))),console.info("Using config file "+n),console.info(`You can change the config file path with ${h.blue("--configFilePath")}`)),{filePath:n,args:Object.entries(f).flatMap(([c,d])=>typeof d=="boolean"||Nr[c]?.type==="boolean"?d?[`--${c}`]:[]:[`--${c}`,d]),config:f}}var yh=Object.prototype.hasOwnProperty;function _h(e,t,r){for(r of e.keys())if(Br(r,t))return r}function Br(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--&&Br(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=_h(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=_h(t,s),!s)||!Br(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(yh.call(e,r)&&++i&&!yh.call(t,r)||!(r in t)||!Br(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}var Xs=I.__commonJSMin(((e,t)=>{var r="\\\\/",i=`[^${r}]`,s=0,h="\\.",a="\\+",n="\\?",l="\\/",u="(?=.)",f="[^/]",o=`(?:${l}|$)`,c=`(?:^|${l})`,d=`${h}{1,2}${o}`,p={DOT_LITERAL:h,PLUS_LITERAL:a,QMARK_LITERAL:n,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:f,END_ANCHOR:o,DOTS_SLASH:d,NO_DOT:`(?!${h})`,NO_DOTS:`(?!${c}${d})`,NO_DOT_SLASH:`(?!${h}{0,1}${o})`,NO_DOTS_SLASH:`(?!${d})`,QMARK_NO_DOT:`[^.${l}]`,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}}})),Qs=I.__commonJSMin((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:s}=Xs();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,a=>a==="\\"?"":a),e.escapeLast=(h,a,n)=>{const l=h.lastIndexOf(a,n);return l===-1?h:h[l-1]==="\\"?e.escapeLast(h,a,l-1):`${h.slice(0,l)}\\${h.slice(l)}`},e.removePrefix=(h,a={})=>{let n=h;return n.startsWith("./")&&(n=n.slice(2),a.prefix="./"),n},e.wrapOutput=(h,a={},n={})=>{let l=`${n.contains?"":"^"}(?:${h})${n.contains?"":"$"}`;return a.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},e.basename=(h,{windows:a}={})=>{const n=h.split(a?/[\\/]/:"/"),l=n[n.length-1];return l===""?n[n.length-2]:l}})),KI=I.__commonJSMin(((e,t)=>{var r=Qs(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:a,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:o,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}=Xs(),y=b=>b===u||b===h,w=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)},_=(b,E)=>{const S=E||{},A=b.length-1,C=S.parts===!0||S.scanToEnd===!0,T=[],U=[],$=[];let z=b,V=-1,H=0,L=0,N=!1,q=!1,J=!1,P=!1,B=!1,F=!1,O=!1,x=!1,Y=!1,oe=!1,pe=0,ye,W,M={value:"",depth:0,isGlob:!1};const G=()=>V>=A,X=()=>z.charCodeAt(V+1),ne=()=>(ye=W,z.charCodeAt(++V));for(;V<A;){W=ne();let De;if(W===h){O=M.backslashes=!0,W=ne(),W===f&&(F=!0);continue}if(F===!0||W===f){for(pe++;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,ne();continue}if(W===f){pe++;continue}if(F!==!0&&W===n&&(W=ne())===n){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(F!==!0&&W===a){if(N=M.isBrace=!0,J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===g&&(pe--,pe===0)){F=!1,N=M.isBrace=!0,oe=!0;break}}if(C===!0)continue;break}if(W===u){if(T.push(V),U.push(M),M={value:"",depth:0,isGlob:!1},oe===!0)continue;if(ye===n&&V===H+1){H+=2;continue}L=V+1;continue}if(S.noext!==!0&&(W===d||W===s||W===i||W===p||W===l)&&X()===o){if(J=M.isGlob=!0,P=M.isExtglob=!0,oe=!0,W===l&&V===H&&(Y=!0),C===!0){for(;G()!==!0&&(W=ne());){if(W===h){O=M.backslashes=!0,W=ne();continue}if(W===m){J=M.isGlob=!0,oe=!0;break}}continue}break}if(W===i){if(ye===i&&(B=M.isGlobstar=!0),J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===p){if(J=M.isGlob=!0,oe=!0,C===!0)continue;break}if(W===c){for(;G()!==!0&&(De=ne());){if(De===h){O=M.backslashes=!0,ne();continue}if(De===v){q=M.isBracket=!0,J=M.isGlob=!0,oe=!0;break}}if(C===!0)continue;break}if(S.nonegate!==!0&&W===l&&V===H){x=M.negated=!0,H++;continue}if(S.noparen!==!0&&W===o){if(J=M.isGlob=!0,C===!0){for(;G()!==!0&&(W=ne());){if(W===o){O=M.backslashes=!0,W=ne();continue}if(W===m){oe=!0;break}}continue}break}if(J===!0){if(oe=!0,C===!0)continue;break}}S.noext===!0&&(P=!1,J=!1);let k=z,j="",ee="";H>0&&(j=z.slice(0,H),z=z.slice(H),L-=H),k&&J===!0&&L>0?(k=z.slice(0,L),ee=z.slice(L)):J===!0?(k="",ee=z):k=z,k&&k!==""&&k!=="/"&&k!==z&&y(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),S.unescape===!0&&(ee&&(ee=r.removeBackslashes(ee)),k&&O===!0&&(k=r.removeBackslashes(k)));const Se={prefix:j,input:b,start:H,base:k,glob:ee,isBrace:N,isBracket:q,isGlob:J,isExtglob:P,isGlobstar:B,negated:x,negatedExtglob:Y};if(S.tokens===!0&&(Se.maxDepth=0,y(W)||U.push(M),Se.tokens=U),S.parts===!0||S.tokens===!0){let De;for(let ve=0;ve<T.length;ve++){const $e=De?De+1:H,xe=T[ve],Pe=b.slice($e,xe);S.tokens&&(ve===0&&H!==0?(U[ve].isPrefix=!0,U[ve].value=j):U[ve].value=Pe,w(U[ve]),Se.maxDepth+=U[ve].depth),(ve!==0||Pe!=="")&&$.push(Pe),De=xe}if(De&&De+1<b.length){const ve=b.slice(De+1);$.push(ve),S.tokens&&(U[U.length-1].value=ve,w(U[U.length-1]),Se.maxDepth+=U[U.length-1].depth)}Se.slashes=T,Se.parts=$}return Se};t.exports=_})),ZI=I.__commonJSMin(((e,t)=>{var r=Xs(),i=Qs(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:l}=r,u=(_,b)=>{if(typeof b.expandRange=="function")return b.expandRange(..._,b);_.sort();const E=`[${_.join("-")}]`;try{new RegExp(E)}catch{return _.map(A=>i.escapeRegex(A)).join("..")}return E},f=(_,b)=>`Missing ${_}: "${b}" - use "\\\\${b}" to match literal characters`,o=_=>{const b=[];let E=0,S=0,A=0,C="",T=!1;for(const U of _){if(T===!0){C+=U,T=!1;continue}if(U==="\\"){C+=U,T=!0;continue}if(U==='"'){A=A===1?0:1,C+=U;continue}if(A===0){if(U==="[")E++;else if(U==="]"&&E>0)E--;else if(E===0){if(U==="(")S++;else if(U===")"&&S>0)S--;else if(U==="|"&&S===0){b.push(C),C="";continue}}}C+=U}return b.push(C),b},c=_=>{let b=!1;for(const E of _){if(b===!0){b=!1;continue}if(E==="\\"){b=!0;continue}if(/[?*+@!()[\]{}]/.test(E))return!1}return!0},d=_=>{let b=_.trim(),E=!0;for(;E===!0;)E=!1,/^@\([^\\()[\]{}|]+\)$/.test(b)&&(b=b.slice(2,-1),E=!0);if(c(b))return b.replace(/\\(.)/g,"$1")},p=_=>{const b=_.map(d).filter(Boolean);for(let E=0;E<b.length;E++)for(let S=E+1;S<b.length;S++){const A=b[E],C=b[S],T=A[0];if(!(!T||A!==T.repeat(A.length)||C!==T.repeat(C.length))&&(A===C||A.startsWith(C)||C.startsWith(A)))return!0}return!1},g=(_,b=!0)=>{if(_[0]!=="+"&&_[0]!=="*"||_[1]!=="(")return;let E=0,S=0,A=0,C=!1;for(let T=1;T<_.length;T++){const U=_[T];if(C===!0){C=!1;continue}if(U==="\\"){C=!0;continue}if(U==='"'){A=A===1?0:1;continue}if(A!==1){if(U==="["){E++;continue}if(U==="]"&&E>0){E--;continue}if(!(E>0)){if(U==="("){S++;continue}if(U===")"&&(S--,S===0))return b===!0&&T!==_.length-1?void 0:{type:_[0],body:_.slice(2,T),end:T}}}}},m=_=>{let b=0;const E=[];for(;b<_.length;){const S=g(_.slice(b),!1);if(!S||S.type!=="*")return;const A=o(S.body).map(T=>T.trim());if(A.length!==1)return;const C=d(A[0]);if(!C||C.length!==1)return;E.push(C),b+=S.end+1}if(!(E.length<1))return`${E.length===1?i.escapeRegex(E[0]):`[${E.map(S=>i.escapeRegex(S)).join("")}]`}*`},v=_=>{let b=0,E=_.trim(),S=g(E);for(;S;)b++,E=S.body.trim(),S=g(E);return b},y=(_,b)=>{if(b.maxExtglobRecursion===!1)return{risky:!1};const E=typeof b.maxExtglobRecursion=="number"?b.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,S=o(_).map(A=>A.trim());if(S.length>1&&(S.some(A=>A==="")||S.some(A=>/^[*?]+$/.test(A))||p(S)))return{risky:!0};for(const A of S){const C=m(A);if(C)return{risky:!0,safeOutput:C};if(v(A)>E)return{risky:!0}}return{risky:!1}},w=(_,b)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=l[_]||_;const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s;let A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);const C={type:"bos",value:"",output:E.prepend||""},T=[C],U=E.capture?"":"?:",$=r.globChars(E.windows),z=r.extglobChars($),{DOT_LITERAL:V,PLUS_LITERAL:H,SLASH_LITERAL:L,ONE_CHAR:N,DOTS_SLASH:q,NO_DOT:J,NO_DOT_SLASH:P,NO_DOTS_SLASH:B,QMARK:F,QMARK_NO_DOT:O,STAR:x,START_ANCHOR:Y}=$,oe=re=>`(${U}(?:(?!${Y}${re.dot?q:V}).)*?)`,pe=E.dot?"":J,ye=E.dot?F:O;let W=E.bash===!0?oe(E):x;E.capture&&(W=`(${W})`),typeof E.noext=="boolean"&&(E.noextglob=E.noext);const M={input:_,index:-1,start:0,dot:E.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:T};_=i.removePrefix(_,M),A=_.length;const G=[],X=[],ne=[];let k=C,j;const ee=()=>M.index===A-1,Se=M.peek=(re=1)=>_[M.index+re],De=M.advance=()=>_[++M.index]||"",ve=()=>_.slice(M.index+1),$e=(re="",Q=0)=>{M.consumed+=re,M.index+=Q},xe=re=>{M.output+=re.output!=null?re.output:re.value,$e(re.value)},Pe=()=>{let re=1;for(;Se()==="!"&&(Se(2)!=="("||Se(3)==="?");)De(),M.start++,re++;return re%2===0?!1:(M.negated=!0,M.start++,!0)},Re=re=>{M[re]++,ne.push(re)},D=re=>{M[re]--,ne.pop()},se=re=>{if(k.type==="globstar"){const Q=M.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||G.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!Q&&!ie&&(M.output=M.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=W,M.output+=k.output)}if(G.length&&re.type!=="paren"&&(G[G.length-1].inner+=re.value),(re.value||re.output)&&xe(re),k&&k.type==="text"&&re.type==="text"){k.output=(k.output||k.value)+re.value,k.value+=re.value;return}re.prev=k,T.push(re),k=re},he=(re,Q)=>{const ie={...z[Q],conditions:1,inner:""};ie.prev=k,ie.parens=M.parens,ie.output=M.output,ie.startIndex=M.index,ie.tokensIndex=T.length;const ae=(E.capture?"(":"")+ie.open;Re("parens"),se({type:re,value:Q,output:M.output?"":N}),se({type:"paren",extglob:!0,value:De(),output:ae}),G.push(ie)},de=re=>{const Q=_.slice(re.startIndex,M.index+1),ie=y(_.slice(re.startIndex+2,M.index),E);if((re.type==="plus"||re.type==="star")&&ie.risky){const Le=ie.safeOutput?(re.output?"":N)+(E.capture?`(${ie.safeOutput})`:ie.safeOutput):void 0,Ae=T[re.tokensIndex];Ae.type="text",Ae.value=Q,Ae.output=Le||i.escapeRegex(Q);for(let Te=re.tokensIndex+1;Te<T.length;Te++)T[Te].value="",T[Te].output="",delete T[Te].suffix;M.output=re.output+Ae.output,M.backtrack=!0,se({type:"paren",extglob:!0,value:j,output:""}),D("parens");return}let ae=re.close+(E.capture?")":""),_e;if(re.type==="negate"){let Le=W;re.inner&&re.inner.length>1&&re.inner.includes("/")&&(Le=oe(E)),(Le!==W||ee()||/^\)+$/.test(ve()))&&(ae=re.close=`)$))${Le}`),re.inner.includes("*")&&(_e=ve())&&/^\.[^\\/.]+$/.test(_e)&&(ae=re.close=`)${w(_e,{...b,fastpaths:!1}).output})${Le})`),re.prev.type==="bos"&&(M.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:j,output:ae}),D("parens")};if(E.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let re=!1,Q=_.replace(n,(ie,ae,_e,Le,Ae,Te)=>Le==="\\"?(re=!0,ie):Le==="?"?ae?ae+Le+(Ae?F.repeat(Ae.length):""):Te===0?ye+(Ae?F.repeat(Ae.length):""):F.repeat(_e.length):Le==="."?V.repeat(_e.length):Le==="*"?ae?ae+Le+(Ae?W:""):W:ae?ie:`\\${ie}`);return re===!0&&(E.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),Q===_&&E.contains===!0?(M.output=_,M):(M.output=i.wrapOutput(Q,M,b),M)}for(;!ee();){if(j=De(),j==="\0")continue;if(j==="\\"){const ie=Se();if(ie==="/"&&E.bash!==!0||ie==="."||ie===";")continue;if(!ie){j+="\\",se({type:"text",value:j});continue}const ae=/^\\+/.exec(ve());let _e=0;if(ae&&ae[0].length>2&&(_e=ae[0].length,M.index+=_e,_e%2!==0&&(j+="\\")),E.unescape===!0?j=De():j+=De(),M.brackets===0){se({type:"text",value:j});continue}}if(M.brackets>0&&(j!=="]"||k.value==="["||k.value==="[^")){if(E.posix!==!1&&j===":"){const ie=k.value.slice(1);if(ie.includes("[")&&(k.posix=!0,ie.includes(":"))){const ae=k.value.lastIndexOf("["),_e=k.value.slice(0,ae),Le=h[k.value.slice(ae+2)];if(Le){k.value=_e+Le,M.backtrack=!0,De(),!C.output&&T.indexOf(k)===1&&(C.output=N);continue}}}(j==="["&&Se()!==":"||j==="-"&&Se()==="]")&&(j=`\\${j}`),j==="]"&&(k.value==="["||k.value==="[^")&&(j=`\\${j}`),E.posix===!0&&j==="!"&&k.value==="["&&(j="^"),k.value+=j,xe({value:j});continue}if(M.quotes===1&&j!=='"'){j=i.escapeRegex(j),k.value+=j,xe({value:j});continue}if(j==='"'){M.quotes=M.quotes===1?0:1,E.keepQuotes===!0&&se({type:"text",value:j});continue}if(j==="("){Re("parens"),se({type:"paren",value:j});continue}if(j===")"){if(M.parens===0&&E.strictBrackets===!0)throw new SyntaxError(f("opening","("));const ie=G[G.length-1];if(ie&&M.parens===ie.parens+1){de(G.pop());continue}se({type:"paren",value:j,output:M.parens?")":"\\)"}),D("parens");continue}if(j==="["){if(E.nobracket===!0||!ve().includes("]")){if(E.nobracket!==!0&&E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));j=`\\${j}`}else Re("brackets");se({type:"bracket",value:j});continue}if(j==="]"){if(E.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){se({type:"text",value:j,output:`\\${j}`});continue}if(M.brackets===0){if(E.strictBrackets===!0)throw new SyntaxError(f("opening","["));se({type:"text",value:j,output:`\\${j}`});continue}D("brackets");const ie=k.value.slice(1);if(k.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(j=`/${j}`),k.value+=j,xe({value:j}),E.literalBrackets===!1||i.hasRegexChars(ie))continue;const ae=i.escapeRegex(k.value);if(M.output=M.output.slice(0,-k.value.length),E.literalBrackets===!0){M.output+=ae,k.value=ae;continue}k.value=`(${U}${ae}|${k.value})`,M.output+=k.value;continue}if(j==="{"&&E.nobrace!==!0){Re("braces");const ie={type:"brace",value:j,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};X.push(ie),se(ie);continue}if(j==="}"){const ie=X[X.length-1];if(E.nobrace===!0||!ie){se({type:"text",value:j,output:j});continue}let ae=")";if(ie.dots===!0){const _e=T.slice(),Le=[];for(let Ae=_e.length-1;Ae>=0&&(T.pop(),_e[Ae].type!=="brace");Ae--)_e[Ae].type!=="dots"&&Le.unshift(_e[Ae].value);ae=u(Le,E),M.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){const _e=M.output.slice(0,ie.outputIndex),Le=M.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",j=ae="\\}",M.output=_e;for(const Ae of Le)M.output+=Ae.output||Ae.value}se({type:"brace",value:j,output:ae}),D("braces"),X.pop();continue}if(j==="|"){G.length>0&&G[G.length-1].conditions++,se({type:"text",value:j});continue}if(j===","){let ie=j;const ae=X[X.length-1];ae&&ne[ne.length-1]==="braces"&&(ae.comma=!0,ie="|"),se({type:"comma",value:j,output:ie});continue}if(j==="/"){if(k.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",T.pop(),k=C;continue}se({type:"slash",value:j,output:L});continue}if(j==="."){if(M.braces>0&&k.type==="dot"){k.value==="."&&(k.output=V);const ie=X[X.length-1];k.type="dots",k.output+=j,k.value+=j,ie.dots=!0;continue}if(M.braces+M.parens===0&&k.type!=="bos"&&k.type!=="slash"){se({type:"text",value:j,output:V});continue}se({type:"dot",value:j,output:V});continue}if(j==="?"){if(!(k&&k.value==="(")&&E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){he("qmark",j);continue}if(k&&k.type==="paren"){const ie=Se();let ae=j;(k.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(ve()))&&(ae=`\\${j}`),se({type:"text",value:j,output:ae});continue}if(E.dot!==!0&&(k.type==="slash"||k.type==="bos")){se({type:"qmark",value:j,output:O});continue}se({type:"qmark",value:j,output:F});continue}if(j==="!"){if(E.noextglob!==!0&&Se()==="("&&(Se(2)!=="?"||!/[!=<:]/.test(Se(3)))){he("negate",j);continue}if(E.nonegate!==!0&&M.index===0){Pe();continue}}if(j==="+"){if(E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){he("plus",j);continue}if(k&&k.value==="("||E.regex===!1){se({type:"plus",value:j,output:H});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||M.parens>0){se({type:"plus",value:j});continue}se({type:"plus",value:H});continue}if(j==="@"){if(E.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){se({type:"at",extglob:!0,value:j,output:""});continue}se({type:"text",value:j});continue}if(j!=="*"){(j==="$"||j==="^")&&(j=`\\${j}`);const ie=a.exec(ve());ie&&(j+=ie[0],M.index+=ie[0].length),se({type:"text",value:j});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=j,k.output=W,M.backtrack=!0,M.globstar=!0,$e(j);continue}let re=ve();if(E.noextglob!==!0&&/^\([^?]/.test(re)){he("star",j);continue}if(k.type==="star"){if(E.noglobstar===!0){$e(j);continue}const ie=k.prev,ae=ie.prev,_e=ie.type==="slash"||ie.type==="bos",Le=ae&&(ae.type==="star"||ae.type==="globstar");if(E.bash===!0&&(!_e||re[0]&&re[0]!=="/")){se({type:"star",value:j,output:""});continue}const Ae=M.braces>0&&(ie.type==="comma"||ie.type==="brace"),Te=G.length&&(ie.type==="pipe"||ie.type==="paren");if(!_e&&ie.type!=="paren"&&!Ae&&!Te){se({type:"star",value:j,output:""});continue}for(;re.slice(0,3)==="/**";){const K=_[M.index+4];if(K&&K!=="/")break;re=re.slice(3),$e("/**",3)}if(ie.type==="bos"&&ee()){k.type="globstar",k.value+=j,k.output=oe(E),M.output=k.output,M.globstar=!0,$e(j);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!Le&&ee()){M.output=M.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=oe(E)+(E.strictSlashes?")":"|$)"),k.value+=j,M.globstar=!0,M.output+=ie.output+k.output,$e(j);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){const K=re[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=`${oe(E)}${L}|${L}${K})`,k.value+=j,M.output+=ie.output+k.output,M.globstar=!0,$e(j+De()),se({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){k.type="globstar",k.value+=j,k.output=`(?:^|${L}|${oe(E)}${L})`,M.output=k.output,M.globstar=!0,$e(j+De()),se({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-k.output.length),k.type="globstar",k.output=oe(E),k.value+=j,M.output+=k.output,M.globstar=!0,$e(j);continue}const Q={type:"star",value:j,output:W};if(E.bash===!0){Q.output=".*?",(k.type==="bos"||k.type==="slash")&&(Q.output=pe+Q.output),se(Q);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&E.regex===!0){Q.output=j,se(Q);continue}(M.index===M.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(M.output+=P,k.output+=P):E.dot===!0?(M.output+=B,k.output+=B):(M.output+=pe,k.output+=pe),Se()!=="*"&&(M.output+=N,k.output+=N)),se(Q)}for(;M.brackets>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","]"));M.output=i.escapeLast(M.output,"["),D("brackets")}for(;M.parens>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing",")"));M.output=i.escapeLast(M.output,"("),D("parens")}for(;M.braces>0;){if(E.strictBrackets===!0)throw new SyntaxError(f("closing","}"));M.output=i.escapeLast(M.output,"{"),D("braces")}if(E.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${L}?`}),M.backtrack===!0){M.output="";for(const re of M.tokens)M.output+=re.output!=null?re.output:re.value,re.suffix&&(M.output+=re.suffix)}return M};w.fastpaths=(_,b)=>{const E={...b},S=typeof E.maxLength=="number"?Math.min(s,E.maxLength):s,A=_.length;if(A>S)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${S}`);_=l[_]||_;const{DOT_LITERAL:C,SLASH_LITERAL:T,ONE_CHAR:U,DOTS_SLASH:$,NO_DOT:z,NO_DOTS:V,NO_DOTS_SLASH:H,STAR:L,START_ANCHOR:N}=r.globChars(E.windows),q=E.dot?V:z,J=E.dot?H:z,P=E.capture?"":"?:",B={negated:!1,prefix:""};let F=E.bash===!0?".*?":L;E.capture&&(F=`(${F})`);const O=oe=>oe.noglobstar===!0?F:`(${P}(?:(?!${N}${oe.dot?$:C}).)*?)`,x=oe=>{switch(oe){case"*":return`${q}${U}${F}`;case".*":return`${C}${U}${F}`;case"*.*":return`${q}${F}${C}${U}${F}`;case"*/*":return`${q}${F}${T}${U}${J}${F}`;case"**":return q+O(E);case"**/*":return`(?:${q}${O(E)}${T})?${J}${U}${F}`;case"**/*.*":return`(?:${q}${O(E)}${T})?${J}${F}${C}${U}${F}`;case"**/.*":return`(?:${q}${O(E)}${T})?${C}${U}${F}`;default:{const pe=/^(.*?)\.(\w+)$/.exec(oe);if(!pe)return;const ye=x(pe[1]);return ye?ye+C+pe[2]:void 0}}};let Y=x(i.removePrefix(_,B));return Y&&E.strictSlashes!==!0&&(Y+=`${T}?`),Y},t.exports=w})),XI=I.__commonJSMin(((e,t)=>{var r=KI(),i=ZI(),s=Qs(),h=Xs(),a=l=>l&&typeof l=="object"&&!Array.isArray(l),n=(l,u,f=!1)=>{if(Array.isArray(l)){const y=l.map(_=>n(_,u,f));return _=>{for(const b of y){const E=b(_);if(E)return E}return!1}}const o=a(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");const c=u||{},d=c.windows,p=o?n.compileRe(l,u):n.makeRe(l,u,!1,!0),g=p.state;delete p.state;let m=()=>!1;if(c.ignore){const y={...u,ignore:null,onMatch:null,onResult:null};m=n(c.ignore,y,f)}const v=(y,w=!1)=>{const{isMatch:_,match:b,output:E}=n.test(y,p,u,{glob:l,posix:d}),S={glob:l,state:g,regex:p,posix:d,input:y,output:E,match:b,isMatch:_};return typeof c.onResult=="function"&&c.onResult(S),_===!1?(S.isMatch=!1,w?S:!1):m(y)?(typeof c.onIgnore=="function"&&c.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof c.onMatch=="function"&&c.onMatch(S),w?S:!0)};return f&&(v.state=g),v};n.test=(l,u,f,{glob:o,posix:c}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};const d=f||{},p=d.format||(c?s.toPosixSlashes:null);let g=l===o,m=g&&p?p(l):l;return g===!1&&(m=p?p(l):l,g=m===o),(g===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?g=n.matchBase(l,u,f,c):g=u.exec(m)),{isMatch:!!g,match:g,output:m}},n.matchBase=(l,u,f)=>(u instanceof RegExp?u:n.makeRe(u,f)).test(s.basename(l)),n.isMatch=(l,u,f)=>n(u,f)(l),n.parse=(l,u)=>Array.isArray(l)?l.map(f=>n.parse(f,u)):i(l,{...u,fastpaths:!1}),n.scan=(l,u)=>r(l,u),n.compileRe=(l,u,f=!1,o=!1)=>{if(f===!0)return l.output;const c=u||{},d=c.contains?"":"^",p=c.contains?"":"$";let g=`${d}(?:${l.output})${p}`;l&&l.negated===!0&&(g=`^(?!${g}).*$`);const m=n.toRegex(g,u);return o===!0&&(m.state=l),m},n.makeRe=(l,u={},f=!1,o=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(c.output=i.fastpaths(l,u)),c.output||(c=i(l,u)),n.compileRe(c,u,f,o)},n.toRegex=(l,u)=>{try{const f=u||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(u&&u.debug===!0)throw f;return/$^/}},n.constants=h,t.exports=n})),QI=I.__commonJSMin(((e,t)=>{var r=XI(),i=Qs();function s(h,a,n=!1){return a&&(a.windows===null||a.windows===void 0)&&(a={...a,windows:i.isWindows()}),r(h,a,n)}Object.assign(s,r),t.exports=s})),cs=I.__toESM(QI(),1),ek=I.__exportAll({greatest:()=>fg,greatestLevel:()=>Fl,latest:()=>rk,minor:()=>ik,newest:()=>ak,patch:()=>nk,semver:()=>sk}),tk=(0,ou.promisify)(Un.default.execFile);async function ya(e){const t=(await tk("git",["ls-remote","--tags",e])).stdout,r={};for(const i of t.trim().split(`
|
|
735
|
+
`)){const s=i.split(" ");r[s[1].replace(/^refs\/tags\/|\^{}$/g,"")]=s[0]}return r}async function Ll(e,t,r){t=t.replace(/^github:/,"");const{auth:i,protocol:s,host:h,path:a}=(0,on.default)(t);let n;try{if(s!==null)n=await ya(`${s?s.replace("git+",""):"https:"}//${i?i+"@":""}${h}/${a?.replace(/^:/,"")}`);else try{n=await ya(`ssh://git@${h}/${a?.replace(/^:/,"")}`)}catch{n=await ya(`https://${i?i+"@":""}${h}/${a}`)}}catch{Me(r??{},`Invalid, private repo, or no tags for ${e}: ${t}`,"verbose");return}return Object.keys(n).map(Fu).filter(l=>(0,Je.valid)(l)).sort(ku)}var rk=async(e,t,r)=>{const i=await Ll(e,t,r);if(!i)return{version:null};const s=r?.pre?i:i.filter(a=>!un(a)),h=s[s.length-1];return{version:h?Ss(t,h):null}},fg=async(e,t,r)=>{const i=await Ll(e,t,r);if(!i)return{version:null};const s=i[i.length-1];return{version:s?Ss(t,s):null}},Fl=e=>async(t,r,i={})=>{const s=decodeURIComponent((0,on.default)(r).branch).replace(/^semver:/,""),h=await Ll(t,r,i);if(!h)return{version:null};const a=Lu(h.map(n=>n.replace(/^v/,"")),s,e);return{version:a?Ss(r,a):null}},ik=Fl("minor"),nk=Fl("patch"),sk=async(e,t,r)=>({version:null}),ak=fg,ok=I.__exportAll({latest:()=>hk}),uk=e=>e&&e.startsWith("http://")||e.startsWith("https://"),lk=async e=>{const t=e.registry;let r;if(uk(t))r=await(await fetch(t)).text();else try{r=await tt.default.readFile(t,"utf8")}catch{Xe(e,`
|
|
736
736
|
The specified static registry file does not exist: ${e.registry}`)}return JSON.parse(r)},ck=(0,Cr.default)(lk),hk=async(e,t,r)=>({version:(await ck(r||{}))[e]||null}),Lr={npm:Gw,pnpm:bS,yarn:GA,bun:Yw,gitTags:ek,staticRegistry:ok};function Li(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 fk(e){try{return new URL(e),!0}catch{return!1}}async function dk(e,{cli:t}={}){const r=rn(e.color);if(!t){const y=Mn.reduce((_,b)=>({..._,...b.default!=null?{[b.long]:b.default}:null}),{}),w={jsonUpgraded:!0,silent:e.silent||e.loglevel===void 0&&!e.verbose,args:[]};e={...y,...w,...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(tf(i));!h&&s!=="silent"&&i.rcConfigPath&&!i.doctor&&Me(i,`Using config file ${i.rcConfigPath}`);const a=Mn.filter(({long:y,deprecated:w})=>w&&i[y]||y==="packageManager"&&i.packageManager==="staticRegistry");a.length>0&&(a.forEach(({long:y,description:w})=>{const _=y==="packageManager"?"--packageManager staticRegistry is deprecated. Use --registryType json.":`--${y}: ${w}`;Me(i,r.yellow(_),"warn")}),Me(i,"","warn")),Mn.forEach(({long:y,choices:w})=>{if(!w||w.length===0)return;const _=i[y],b=Array.isArray(_)?_:[_];b.length!==0&&b.every(E=>!w.includes(E))&&Xe(i,`Invalid option value: --${y} ${_}. Valid values are: ${w.join(", ")}.`)}),i.cwd&&!await zi(i.cwd)&&Xe(i,`No such directory: ${i.cwd}`);const n=Li(i.args),l=Li(i.filter),u=Li(i.filterVersion),f=Li(i.reject),o=Li(i.rejectVersion),c=i.registryType||(i.registry?.endsWith(".json")?"json":"npm");i.filter&&n&&!Br(n.join(" "),Array.isArray(l)?l.join(" "):l)?Xe(i,`Cannot specify a filter using both --filter and args. Did you forget to quote an argument?
|
|
737
737
|
See: https://github.com/raineorshine/npm-check-updates/issues/759#issuecomment-723587297`):i.packageFile&&i.deep?Xe(i,"Cannot specify both --packageFile and --deep. --deep is an alias for --packageFile '**/package.json'"):i.format?.includes("lines")&&i.jsonUpgraded?Xe(i,"Cannot specify both --format lines and --jsonUpgraded."):i.format?.includes("lines")&&i.jsonAll?Xe(i,"Cannot specify both --format lines and --jsonAll."):i.format?.includes("lines")&&i.format.length>1?Xe(i,"Cannot use --format lines with other formatting options."):i.workspace?.length&&i.workspaces?Xe(i,"Cannot specify both --workspace and --workspaces."):i.deep&&(i.workspace?.length||i.workspaces)?Xe(i,`Cannot specify both --deep and --workspace${i.workspaces?"s":""}.`):i.doctor&&(i.workspace?.length||i.workspaces)?Xe(i,`Doctor mode is not currently supported with --workspace${i.workspaces?"s":""}.`):i.packageManager==="staticRegistry"&&!i.registry?Xe(i,"When --package-manager staticRegistry is specified, you must provide the path for the registry file with --registry."):i.registryType==="json"&&!i.registry?Xe(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&&!fk(i.registry)&&Xe(i,`--registry must be a valid URL. Invalid value: "${i.registry}"`);const d=await ka(i);if(i.cooldown!=null){if(typeof i.cooldown=="string"){const _=Yn(i.cooldown);_===null?Xe(i,`Invalid cooldown value: "${i.cooldown}". Use a number (days) or a string like "7d", "12h", or "30m".`):i.cooldown=_}const y=typeof i.cooldown=="number"&&!isNaN(i.cooldown)&&i.cooldown>=0,w=typeof i.cooldown=="function";!y&&!w&&Xe(i,'Cooldown must be a non-negative number (days), a string like "7d", "12h", or "30m", or a predicate function.')}else{const y=xt.findNpmConfig()?.minReleaseAge;if(y!=null){const w=typeof y=="string"?Yn(y)??parseInt(y,10):typeof y=="number"?y:null;w!=null&&!isNaN(w)&&(i.cooldown=w,Me(i,`Using min-release-age from .npmrc: ${w} day${w!==1?"s":""}`))}else if(d==="pnpm"){const w=await gp.getPnpmWorkspaceMinimumReleaseAge();if(w!=null){const{minimumReleaseAge:_,minimumReleaseAgeExclude:b}=w,E=_/1440;if(b.length>0){const S=b.map(A=>(0,cs.default)(A));i.cooldown=A=>S.some(C=>C(A))?null:E,Me(i,`Using minimumReleaseAge from pnpm-workspace.yaml: ${E} day${E!==1?"s":""} (${b.length} excluded pattern${b.length!==1?"s":""})`)}else i.cooldown=E,Me(i,`Using minimumReleaseAge from pnpm-workspace.yaml: ${E} day${E!==1?"s":""}`)}}else if(d==="yarn"){const w=await om.getYarnMinimalAgeGate(i);if(w!=null){const{npmMinimalAgeGate:_,npmPreapprovedPackages:b}=w,E=_/(1440*60);if(b.length>0){const S=b.map(A=>(0,cs.default)(A));i.cooldown=A=>S.some(C=>C(A))?null:E,Me(i,`Using npmMinimalAgeGate from .yarnrc.yml: ${E} day${E!==1?"s":""} (${b.length} pre-approved package${b.length!==1?"s":""})`)}else i.cooldown=E,Me(i,`Using npmMinimalAgeGate from .yarnrc.yml: ${E} day${E!==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||l,filterVersion:u,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:o,target:p,...i.interactive&&i.upgrade===void 0?{upgrade:!h}:null,packageManager:d,...i.prefix?{prefix:await(Lr[d||""]?.defaultPrefix||Lr.npm.defaultPrefix)(i)}:null,registryType:c};m.cacher=await $1(m);const v=at(m,(y,w)=>w!==void 0?{[y]:w}:null);return!i.packageManager&&d!=="npm"&&Me(v,`Using ${d}`),v}function pk(e,t){return Array.from(new Set([...e||[],...t||[]]))}function mk(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]=pk(r[h],i[h]))}),s}var gk=I.__commonJSMin(((e,t)=>{var r=h=>typeof h=="function"?h:()=>h,i=(...h)=>(...a)=>h.length===0||!!r(h[0])(...a)&&i(...h.slice(1))(...a),s=(...h)=>(...a)=>h.length>0&&(!!r(h[0])(...a)||s(...h.slice(1))(...a));t.exports={and:i,or:s}})),Pn=gk();function Pi(e){let t;if(!e)t=pu;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=a=>(0,cs.default)(a)(i),h=a=>!a.includes("/")&&i.includes("/")&&(0,cs.default)(a)(i.replace(/\//g,"_"));return r.some((0,Pn.or)(s,h))}}else if(Array.isArray(e))t=(r,i)=>e.some(s=>Pi(s)(r,i));else if(e instanceof RegExp)t=r=>e.test(r);else if(typeof e=="function")t=(r,i)=>e(r,(0,Tt.parseRange)(i??r));else throw new TypeError("Invalid filter. Must be a RegExp, array, or comma-or-space-delimited list.");return t}function dg(e,t,r,i){return(0,Pn.and)((s,h)=>(0,Pn.and)(e?Pi(e):!0,t?(...a)=>!Pi(t)(...a):!0)(s,h),(s,h)=>(0,Pn.and)(r?Pi(r):!0,i?(...a)=>!Pi(i)(...a):!0)(h))}function Dn(e,t){return!t||t==="deno"?Lr.npm:e.registryType==="json"?Lr.staticRegistry:(Lr[t]||Xe(e,`Invalid package manager: ${t}`),Lr[t])}async function vk(e={}){const t=await Dn(e,e.packageManager).list?.({cwd:e.cwd,prefix:e.prefix,global:e.global});t||Xe(e,"Unable to retrieve package list");const r=dg(e.filter,e.reject,e.filterVersion,e.rejectVersion);let i={};try{i=Fr(t,(s,h)=>!!h&&!hf(h)&&r(s,h))}catch(s){Xe(e,"Invalid filter: "+s.message||s)}return i}var yk=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(),a=h-this.lastRender;if(!(!s&&a<this.renderThrottle)){this.lastRender=h;var n=this.curr/this.total;n=Math.min(Math.max(n,0),1);var l=Math.floor(n*100),u,f,o,c=new Date-this.start,d=l==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",l.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(o=Math.round(v*n),f=Array(Math.max(0,o+1)).join(this.chars.complete),u=Array(Math.max(0,v-o+1)).join(this.chars.incomplete),o>0&&(f=f.slice(0,-1)+this.chars.head),g=g.replace(":bar",f+u),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(`
|
|
738
738
|
`),this.stream.write(this.lastDraw)},r.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(`
|
|
@@ -741,13 +741,13 @@ Unsupported target "${p}" using ${_}`)+`
|
|
|
741
741
|
Supported version targets are: `+E.join(", ")+(y?"":", and tags (e.g. @next)"),{color:!1})}try{v=await b(f,o,{...t,distTag:g,pre:t.pre!=null?t.pre:d.startsWith("@")||un(o),retry:t.retry??2}).catch(E=>({error:E?.body?.error||E.toString()})),v.version=!y&&u&&v?.version?gf(f,v.version):v?.version??null}catch(E){const S=E?(E.message||E).toString():"";if(S.match(/E504|Gateway Timeout/i))return{error:`${S}. All ${t.retry} retry attempts failed.`};if(S.match(/E400|E404|ENOTFOUND|404 Not Found|400 Bad Request/i))return{error:`${S.replace(/ - Not found$/i,"")}. All ${t.retry} retry attempts failed. Either your internet connection is down, the registry is inaccessible, the authentication credentials are invalid, or the package does not exist.`};if(E.code==="ERR_INVALID_URL")return{error:S||"Invalid URL"};throw!process.env.NCU_TESTS&&/(Response|network) timeout/i.test(S)&&console.error(`
|
|
742
742
|
|
|
743
743
|
`+r.red("FetchError: Request Timeout. npm-registry-fetch defaults to 30000 (30 seconds). Try setting the --timeout option (in milliseconds) to override this.")+`
|
|
744
|
-
`),E}return h?.tick(),v.version&&t.cacher?.set(f,p,v.version),v}const n=await I.pMap(i,a,{concurrency:t.concurrency});return await t.cacher?.save(),t.cacher?.log(),at(n,(l,u)=>l.version||l.error||l.cooldown?{[i[u]]:l}:null)}function Dk(e){if(Object.keys(e).length===0)return null;const t=Object.values(e).reduce((i,s)=>{const h=lf.find(a=>s&&s.includes(a));return h!==void 0&&(i[h]||=[],i[h].push(s)),i},{}),r=ws(Object.entries(t).map(([i,s])=>({wildcard:i,instances:s})),i=>-i.instances.length);return r.length>0?r[0].wildcard:null}function Ak(e,t,{downgrade:r}={}){if(!
|
|
744
|
+
`),E}return h?.tick(),v.version&&t.cacher?.set(f,p,v.version),v}const n=await I.pMap(i,a,{concurrency:t.concurrency});return await t.cacher?.save(),t.cacher?.log(),at(n,(l,u)=>l.version||l.error||l.cooldown?{[i[u]]:l}:null)}function Dk(e){if(Object.keys(e).length===0)return null;const t=Object.values(e).reduce((i,s)=>{const h=lf.find(a=>s&&s.includes(a));return h!==void 0&&(i[h]||=[],i[h].push(s)),i},{}),r=ws(Object.entries(t).map(([i,s])=>({wildcard:i,instances:s})),i=>-i.instances.length);return r.length>0?r[0].wildcard:null}function Ak(e,t,{downgrade:r}={}){if(!Je.validRange(e)||Ou(e))return!1;const[i]=Tt.default.parseRange(e);if(!i)throw new Error(`"${e}" could not be parsed by semver-utils. This is probably a bug. Please file an issue at https://github.com/raineorshine/npm-check-updates.`);const s=Fu(t),h=gi(i),a=!!Je.validRange(h),n=!!Je.valid(s);return a&&n&&(!b1(s,h)||!Je.satisfies(s,i.operator==="<"?e:h)&&(r||!Je.ltr(s,h)))}function Ck(e,t,r={}){const i=r.target||"latest";e=Fr(e,(a,n)=>!!n);const s=Dk(e)||"^",h=(a,n)=>vf(a,n,{wildcard:s,removeRange:r.removeRange});return U_([a=>Hr(a,(n,l)=>l in t),a=>Object.entries(a).reduce((n,[l,u])=>{const f=t[l];let o=null,c=null;if(Bn(u)&&(o=Wi(u)[1]),Bn(f)&&(c=Wi(f)[1]),Ui(u)){const[d]=(0,Tt.parseRange)(Ra(u));o=gi(d)}if(Ui(f)){const[d]=(0,Tt.parseRange)(Ra(f));c=gi(d)}return n[l]={current:u,currentParsed:o,latest:f,latestParsed:c},n},{}),a=>Hr(a,({current:n,currentParsed:l,latest:u,latestParsed:f},o)=>{const c=un(n)&&(typeof i=="string"?i:i(o,(0,Tt.parseRange)(n))).startsWith("@");return Ak(l||n,f||u,{downgrade:c})}),a=>Object.entries(a).reduce((n,[l,{current:u,currentParsed:f,latest:o,latestParsed:c}])=>{const d=h(f||u,c||o);return n[l]=Bn(u)?A1(u,d):Ui(u)?Ss(u,d):d,n},{})])(e)}var Eh=(e,t,r)=>{const i={...e,...t},s=Hr(t,(n,l)=>{const u=r[l];return u?Object.entries(u).every(([f,o])=>i[f]===void 0||!(0,Je.validRange)(o)||!(0,Je.validRange)(i[f])||(0,Je.intersects)(i[f],o)):!0}),h=Object.keys(t).length>Object.keys(s).length;let a=r;return h&&(a=Hr(r,(n,l)=>s[l]||!t[l])),{violated:h,filteredUpgradedDependencies:s,upgradedPeerDependencies:a}};async function An(e,t){const r=await Sk(e,t),i=at(r,(n,l)=>l?.version&&(!t.filterResults||t.filterResults(n,{currentVersion:e[n],currentVersionSemver:(0,Tt.parseRange)(e[n]),upgradedVersion:l.version,upgradedVersionSemver:(0,Tt.parse)(l.version)}))?{[n]:l.version}:null),s=Hr(Ck(e,i,t),(n,l)=>!t.jsonUpgraded||!t.minimal||!(0,Je.satisfies)(i[l],e[l])),h=Hr(i,(n,l)=>s[l]);let a=[s,r,t.peerDependencies];if(!t.peer||Object.keys(h).length===0)return a;if(t.peer&&Object.keys(h).length>0){const n=await xl(h,t);let l;if(Br(t.peerDependencies,{...t.peerDependencies,...n})){if(l=Eh(e,s,t.peerDependencies),!l.violated)return a}else l={violated:!1,filteredUpgradedDependencies:s,upgradedPeerDependencies:n};let u=0;do{if(u++>6)throw new Error("Stuck in a while loop. Please report an issue");const f={...t.peerDependencies,...l.upgradedPeerDependencies};if(Br(t.peerDependencies,f))return[{},r,t.peerDependencies];const[o,c,d]=await An({...e,...l.filteredUpgradedDependencies},{...t,peerDependencies:f,loglevel:"silent"});a=[{...l.filteredUpgradedDependencies,...o},{...r,...c},d],l=Eh(e,a[0],a[2])}while(l.violated)}return a}async function Tk(e){Me(e,`
|
|
745
745
|
Options:`,"verbose"),dr(e,e,"verbose"),Me(e,`
|
|
746
746
|
Getting installed packages`,"verbose");let t={};try{const{cli:l,cwd:u,filter:f,filterVersion:o,global:c,packageManager:d,prefix:p,reject:g,rejectVersion:m}=e;t=await vk({cli:l,cwd:u,filter:f,filterVersion:o,global:c,packageManager:d,prefix:p,reject:g,rejectVersion:m})}catch(l){Xe(e,l.message)}Me(e,"globalPackages:","verbose"),Me(e,t,"verbose"),Me(e,"","verbose"),Me(e,`Fetching ${e.target} versions`,"verbose");const[r,i]=await An(t,e);Me(e,i,"verbose");const s=Object.values(i).filter(l=>l.cooldown).length,h=at(i,(l,u)=>u.time?{[l]:u.time}:null),a=Object.keys(r);await $u(e,{current:t,upgraded:r,latest:i,numCooldown:s,total:a.length,time:h});const n=r?a.map(l=>l+"@"+r[l]).join(" "):"[package]";if(e.json)Nu(e,r);else if(n.length){const l=e.packageManager==="yarn"?"yarn global upgrade":e.packageManager==="pnpm"?"pnpm -g add":e.packageManager==="bun"?"bun add -g":"npm -g install";Me(e,`
|
|
747
747
|
`+ge.cyan("ncu")+` itself cannot upgrade global packages. Run the following to upgrade all global packages:
|
|
748
748
|
|
|
749
749
|
`+ge.cyan(`${l} `+n)+`
|
|
750
|
-
`)}return e.cli&&e.errorLevel===2&&a.length>0&&process.exit(1),r}var Rk=(e,t)=>
|
|
750
|
+
`)}return e.cli&&e.errorLevel===2&&a.length>0&&process.exit(1),r}var Rk=(e,t)=>Je.validRange(e)&&Je.validRange(t)&&Je.gt(Je.minVersion(e),Je.minVersion(t)),Ok=e=>{if(!e.packageManager)return{};const[t,r]=e.packageManager.split("@");return{[t]:r}};function Ik(e={},t={}){const r=Sl(t.dep).reduce((h,a)=>({...h,...a==="packageManager"?Ok(e):Fr(e[a]||{},(n,l)=>!Rk(l,h[n]))}),{}),i=at(t.workspacePackages||[]);let s={};try{s=Fr(Fr(r,h=>!i[h]),dg(t.filter||null,t.reject||null,t.filterVersion||null,t.rejectVersion||null))}catch(h){Xe(t,"Invalid filter: "+h.message||h)}return s}async function kk(e,t){const r=Dn(t,t.packageManager);if(!r.getEngines)return{};const i=Object.keys(e).length;let s;return!t.json&&t.loglevel!=="silent"&&t.loglevel!=="verbose"&&i>0&&(s=new Nl.default("[:bar] :current/:total :percent",{total:i,width:20}),s.render()),Object.entries(e).reduce(async(h,[a,n])=>{const l=(await r.getEngines(a,n,t)).node;return s&&s.tick(),{...await h,[a]:l}},Promise.resolve({}))}var Lk=(e,t)=>!e||(0,Je.satisfies)(t,e);async function Fk(e,t,r={}){if(!r.nodeEngineVersion)return{};const i=(0,Je.minVersion)(r.nodeEngineVersion)?.version;if(!i)return{};const[s,h]=await An(e,{...r,enginesNode:!1,nodeEngineVersion:void 0,loglevel:"silent"}),a=await kk(at(h,(n,l)=>s[n]&&l?.version?{[n]:l.version}:null),r);return Object.entries(s).filter(([n,l])=>t[n]!==l&&!Lk(a[n],i)).reduce((n,[l,u])=>({...n,[l]:{from:e[l],to:u,enginesNode:a[l]}}),{})}async function Nk(e,t,r,i={}){const s={...e,...t},[h,a]=await An(e,{...i,peer:!1,peerDependencies:void 0,loglevel:"silent"}),n=await xl(Object.fromEntries(Object.entries(h).map(([l,u])=>[l,(0,Je.validRange)(u)?(0,Je.minVersion)(u)?.version??u:u])),i);return Object.entries(h).filter(([l,u])=>t[l]!==u).reduce((l,[u,f])=>{let o=Object.entries(r).filter(([,c])=>c[u]!==void 0&&a[u]?.version&&!(0,Je.satisfies)(a[u].version,c[u])).reduce((c,[d,p])=>({...c,[d]:(0,Je.validRange)(p[u])?p[u]:`a range that semver does not understand: ${p[u]}. This range does not work with semver.satisfies or semver.intersects, which npm-check-updates relies on to determine peer dependency compatibility. Either this is a mistake in ${d}, or it relies on a new syntax that is not compatible with the semver package.`}),{});if(Object.keys(o).length===0){const c=n?.[u]||{};o=Object.entries(c).filter(([d,p])=>s[d]&&!!(0,Je.validRange)(s[d])&&!(!(0,Je.validRange)(p)||(0,Je.intersects)(s[d],p))).reduce((d,[p,g])=>({...d,[u]:`${p} ${g}`}),{})}return{...l,[u]:{from:e[u],to:f,reason:o}}},{})}function pg(e,t=!1){const r=e.length;let i=0,s="",h=0,a=16,n=0,l=0,u=0,f=0,o=0;function c(w,_){let b=0,E=0;for(;b<w||!_;){let S=e.charCodeAt(i);if(S>=48&&S<=57)E=E*16+S-48;else if(S>=65&&S<=70)E=E*16+S-65+10;else if(S>=97&&S<=102)E=E*16+S-97+10;else break;i++,b++}return b<w&&(E=-1),E}function d(w){i=w,s="",h=0,a=16,o=0}function p(){let w=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&ei(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&ei(e.charCodeAt(i)))for(i++;i<e.length&&ei(e.charCodeAt(i));)i++;else return o=3,e.substring(w,i);let _=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&ei(e.charCodeAt(i))){for(i++;i<e.length&&ei(e.charCodeAt(i));)i++;_=i}else o=3;return e.substring(w,_)}function g(){let w="",_=i;for(;;){if(i>=r){w+=e.substring(_,i),o=2;break}const b=e.charCodeAt(i);if(b===34){w+=e.substring(_,i),i++;break}if(b===92){if(w+=e.substring(_,i),i++,i>=r){o=2;break}switch(e.charCodeAt(i++)){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=`
|
|
751
751
|
`;break;case 114:w+="\r";break;case 116:w+=" ";break;case 117:const E=c(4,!0);E>=0?w+=String.fromCharCode(E):o=4;break;default:o=5}_=i;continue}if(b>=0&&b<=31)if(Fi(b)){w+=e.substring(_,i),o=2;break}else o=6;i++}return w}function m(){if(s="",o=0,h=i,l=n,f=u,i>=r)return h=r,a=17;let w=e.charCodeAt(i);if(_a(w)){do i++,s+=String.fromCharCode(w),w=e.charCodeAt(i);while(_a(w));return a=15}if(Fi(w))return i++,s+=String.fromCharCode(w),w===13&&e.charCodeAt(i)===10&&(i++,s+=`
|
|
752
752
|
`),n++,u=i,a=14;switch(w){case 123:return i++,a=1;case 125:return i++,a=2;case 91:return i++,a=3;case 93:return i++,a=4;case 58:return i++,a=6;case 44:return i++,a=5;case 34:return i++,s=g(),a=10;case 47:const _=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<r&&!Fi(e.charCodeAt(i));)i++;return s=e.substring(_,i),a=12}if(e.charCodeAt(i+1)===42){i+=2;const b=r-1;let E=!1;for(;i<b;){const S=e.charCodeAt(i);if(S===42&&e.charCodeAt(i+1)===47){i+=2,E=!0;break}i++,Fi(S)&&(S===13&&e.charCodeAt(i)===10&&i++,n++,u=i)}return E||(i++,o=1),s=e.substring(_,i),a=13}return s+=String.fromCharCode(w),i++,a=16;case 45:if(s+=String.fromCharCode(w),i++,i===r||!ei(e.charCodeAt(i)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=p(),a=11;default:for(;i<r&&v(w);)i++,w=e.charCodeAt(i);if(h!==i){switch(s=e.substring(h,i),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(w),i++,a=16}}function v(w){if(_a(w)||Fi(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){let w;do w=m();while(w>=12&&w<=15);return w}return{setPosition:d,getPosition:()=>i,scan:t?y:m,getToken:()=>a,getTokenValue:()=>s,getTokenOffset:()=>h,getTokenLength:()=>i-h,getTokenStartLine:()=>l,getTokenStartCharacter:()=>h-f,getTokenError:()=>o}}function _a(e){return e===32||e===9}function Fi(e){return e===10||e===13}function ei(e){return e>=48&&e<=57}var bh;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(bh||(bh={}));var sL=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),ti=200,aL={" ":{"\n":new Array(ti).fill(0).map((e,t)=>`
|
|
753
753
|
`+" ".repeat(t)),"\r":new Array(ti).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(ti).fill(0).map((e,t)=>`\r
|
|
@@ -770,12 +770,12 @@ ${jk(s,n,l)}
|
|
|
770
770
|
`,instructions:!1,message:"Choose which packages to update",name:"value",optionsPerPage:Ch(h),type:"multiselect",onState:n=>{n.aborted&&process.nextTick(()=>process.exit(1))}})).value;return at(s,n=>({[n]:t[n]}))};async function Th(e,t,r){Me(e,`
|
|
771
771
|
Options:`,"verbose"),dr(e,e,"verbose");let i;try{t?i=Ea(t):Xe(e,"Missing package data")}catch(y){Xe(e,`Invalid package file${r?`: ${r}`:" from stdin"}. Error details:
|
|
772
772
|
${y.message}`)}const s=Ik(i,e);Me(e,`
|
|
773
|
-
Current versions:`,"verbose"),Me(e,s,"verbose"),e.enginesNode&&(e.nodeEngineVersion=i?.engines?.node),e.peer&&(e.peerDependencies=await xl(Object.fromEntries(Object.entries(s).map(([y,w])=>[y,
|
|
773
|
+
Current versions:`,"verbose"),Me(e,s,"verbose"),e.enginesNode&&(e.nodeEngineVersion=i?.engines?.node),e.peer&&(e.peerDependencies=await xl(Object.fromEntries(Object.entries(s).map(([y,w])=>[y,Je.default.validRange(w)?Je.default.minVersion(w)?.version??w:w])),e));const[h,a,n]=await An(s,e),l=at(a,(y,w)=>w.version?{[y]:w.version}:null),u=at(a,(y,w)=>w.error?{[y]:w.error}:null),f=at(a,(y,w)=>w.time?{[y]:w.time}:null),o=Object.values(a).filter(y=>y.cooldown).length;e.peer&&(Me(e,`
|
|
774
774
|
upgradedPeerDependencies:`,"verbose"),Me(e,n,"verbose")),Me(e,`
|
|
775
775
|
${typeof e.target=="string"?`${e.target[0].toUpperCase()}${e.target.slice(1)}`:"Fetched"} versions:`,"verbose"),Me(e,l,"verbose"),Me(e,`
|
|
776
|
-
Upgraded versions:`,"verbose"),Me(e,h,"verbose");const c=e.minimal?at(h,(y,w)=>
|
|
777
|
-
Run ${ge.cyan(`${y}${_} -u`)} to upgrade ${e.packageFile||"package.json"}`)}return await v,m}function qk(e){return e}process.env.INJECT_PROMPTS&&Hn.default.inject(JSON.parse(process.env.INJECT_PROMPTS));var gg=!1;process.on("unhandledRejection",e=>{console.error(e),gg=!0});var zk=e=>{e.global&&(process.env.VOLTA_HOME||process.env.PATH?.includes("\\Volta"))&&(Me(e,"It appears you are using Volta. `npm-check-updates --global` cannot be used with Volta because Volta has its own system for managing global packages which circumvents npm.\n\nIf you are still receiving this message after uninstalling Volta, ensure your PATH does not contain an entry for Volta and your shell profile does not define VOLTA_HOME. You may need to reboot for changes to your shell profile to take effect.","error"),process.exit(1))},Rh=async(e,t)=>{const r={...e,cwd:e.cwd||
|
|
778
|
-
${s}.`)};async function Jk(e,t){const[r,i]=await $I(e),s=r.map(n=>n.filepath),h=e.workspaces||!!e.workspace?.length;e.deep=e.deep||h||r.length>1;let a;if(e.global){const n=await Tk(e);return clearTimeout(t),n}else if(e.deep)a=await r.reduce(async(n,l)=>{const u=await n;let f=(await hg({packageFile:l.filepath,options:e})).config;e.mergeConfig&&Object.keys(f).length&&(f=mk(e,f));const o={...e,...f,packageFile:l.filepath,workspacePackages:i};let c,d,p;if(l.filepath.includes("#")||l.name==="catalogs"){c=l.pkgFile,d=l.filepath,p=l.filepath.includes("#catalog")?l.filepath.replace("#catalog",""):l.filepath;const g=
|
|
776
|
+
Upgraded versions:`,"verbose"),Me(e,h,"verbose");const c=e.minimal?at(h,(y,w)=>Je.default.satisfies(l[y],s[y])?null:{[y]:w}):h,d=(e.format||[]).includes("ownerChanged")?await Uk(s,c,e):void 0,p=e.interactive?await Hk(s,c,r,e):c;if(!e.json||e.deep){if(await $u(e.interactive?{...e,format:(e.format||[]).filter(y=>y!=="group")}:e,{current:s,upgraded:p,total:Object.keys(h).length,latest:a,numCooldown:o,ownersChangedDeps:d,pkgFile:r||void 0,errors:u,time:f}),e.peer){const y=await Nk(s,h,n,e);Object.keys(y).length>0&&k1(e,y)}if(e.enginesNode){const y=await Fk(s,h,e);Object.keys(y).length>0&&L1(e,y)}}const g=await xm(t,s,p,e,r||void 0),m=e.jsonAll?r?.endsWith(".yaml")||r?.endsWith(".yml")?(0,zt.parseDocument)(g).toJSON():Ea(g):e.jsonDeps&&r?.endsWith(".json")?bk(Ea(g),Sl(e.dep)):p;let v;if(e.json&&!e.deep&&Nu(e,m),Object.keys(c).length>0&&r)if(e.upgrade)v=tt.default.writeFile(r.replace("#catalog",""),g);else{const y=process.env.npm_lifecycle_event==="npx"?"npx npm-check-updates":"ncu",w=process.argv.slice(2).map(b=>b.includes(" ")?`"${b}"`:b).join(" "),_=w&&" "+w;Me(e,`
|
|
777
|
+
Run ${ge.cyan(`${y}${_} -u`)} to upgrade ${e.packageFile||"package.json"}`)}return await v,m}function qk(e){return e}process.env.INJECT_PROMPTS&&Hn.default.inject(JSON.parse(process.env.INJECT_PROMPTS));var gg=!1;process.on("unhandledRejection",e=>{console.error(e),gg=!0});var zk=e=>{e.global&&(process.env.VOLTA_HOME||process.env.PATH?.includes("\\Volta"))&&(Me(e,"It appears you are using Volta. `npm-check-updates --global` cannot be used with Volta because Volta has its own system for managing global packages which circumvents npm.\n\nIf you are still receiving this message after uninstalling Volta, ensure your PATH does not contain an entry for Volta and your shell profile does not define VOLTA_HOME. You may need to reboot for changes to your shell profile to take effect.","error"),process.exit(1))},Rh=async(e,t)=>{const r={...e,cwd:e.cwd||We.default.resolve(t,".."),packageFile:t};return e.packageManager==="staticRegistry"?await ka({...r,packageManager:void 0}):e.packageManager&&e.packageManager!=="npm"?e.packageManager:await ka(r)},vg=(e,t,r)=>{const i=!r.deep&&!r.workspaces&&!r.workspace?{[e[0]]:t}:t;return Object.values(i).some(s=>Object.keys(s).length>0)},Gk=async(e,t,r)=>{if(r.install==="never"){Me(r,"");return}if(!vg(e,t,r))return;const i=await Rh(r,e[0]),s=`Run ${ge.cyan(i+" install")}${e.length>1&&!r.workspace&&!r.workspaces?" in each project directory":""} to install new versions`,h=r.interactive&&(process.env.NCU_TESTS||!process.env.NCU_DOCTOR);let a;if(h&&r.install==="prompt"&&(Me(r,""),a=await(0,Hn.default)({type:"confirm",name:"value",message:`${s}?`,initial:!0,onState:n=>{n.aborted&&process.nextTick(()=>process.exit(1))}})),r.install==="always"||h&&a.value){r.install==="always"&&Me(r,""),Me(r,"Installing dependencies...");const n=r.workspaces||r.workspace?.length?["package.json"]:e;for await(const l of n){const u=await Rh(r,l),f=r.cwd||We.default.resolve(l,"..");let o="";try{await ir(u,["install"],{stdout:c=>{o+=c},stderr:c=>{console.error(ge.red(c.toString()))}},{cwd:f,env:{...process.env,...r.color!==!1?{FORCE_COLOR:!0}:null,...u==="pnpm"?{npm_config_strict_peer_dependencies:!1}:null}}),Me(r,o),Me(r,"Done")}catch(c){console.error(c?.message||c||o),Xe(r,"Install failed. This is not a bug in npm-check-updates. The most common causes are invalid peer dependencies, networking issues, or failing postinstall scripts. Consider using --peer to filter updates to compatible versions (takes longer) or --doctor to identify breaking upgrades.")}}}else h||Me(r,`
|
|
778
|
+
${s}.`)};async function Jk(e,t){const[r,i]=await $I(e),s=r.map(n=>n.filepath),h=e.workspaces||!!e.workspace?.length;e.deep=e.deep||h||r.length>1;let a;if(e.global){const n=await Tk(e);return clearTimeout(t),n}else if(e.deep)a=await r.reduce(async(n,l)=>{const u=await n;let f=(await hg({packageFile:l.filepath,options:e})).config;e.mergeConfig&&Object.keys(f).length&&(f=mk(e,f));const o={...e,...f,packageFile:l.filepath,workspacePackages:i};let c,d,p;if(l.filepath.includes("#")||l.name==="catalogs"){c=l.pkgFile,d=l.filepath,p=l.filepath.includes("#catalog")?l.filepath.replace("#catalog",""):l.filepath;const g=We.default.resolve(p);Me(o,`${o.upgrade?"Upgrading":"Checking"} ${g} catalog dependencies`)}else{const g=await os(o);c=g.pkgData,d=g.pkgFile||l.filepath,p=d}return{...u,[o.cwd?We.default.relative(We.default.resolve(o.cwd),p).replace(/\\/g,"/"):p]:await Th(o,c,d)}},Promise.resolve({})),e.json&&Nu(e,a);else{r.length===1&&r[0].filepath!==(e.packageFile||"package.json")&&(e.packageFile=r[0].filepath);const{pkgData:n,pkgFile:l}=await os(e);a=await Th(e,n,l)}return clearTimeout(t),e.errorLevel===2&&vg(s,a,e)&&Xe(e,`
|
|
779
779
|
Dependencies not up-to-date`),e.upgrade&&(e.packageManager==="deno"?Me(e,""):await Gk(s,a,e)),a}async function $l(e={},{cli:t}={}){const r=await dk(e,{cli:t}),i=qn.bugs.url;process.on("exit",()=>{gg&&Xe(r,`Unhandled Rejection! This is a bug and should be reported: ${i}`)}),await hu(r.color),zk(r),Me(r,"Initializing","verbose"),r.cacheClear&&await x1(r);let s,h=new Promise(()=>null);if(r.timeout){const a=typeof r.timeout=="string"?Number.parseInt(r.timeout,10):r.timeout;h=new Promise((n,l)=>{s=setTimeout(()=>{const u=`Exceeded global timeout of ${a}ms`;l(u);try{Xe(r,u)}catch{}},a)})}if(r.doctor){if(r.upgrade)return Promise.race([h,I2($l,r)]);Me(r,`Usage: ncu --doctor
|
|
780
780
|
|
|
781
781
|
${typeof Nr.doctor.help=="function"?Nr.doctor.help({}):Nr.doctor.help}`,"warn")}else return Promise.race([h,Jk(r,s)])}exports.chalk=Nh;exports.chalkInit=hu;exports.cliOptionsSorted=Mn;exports.default=$l;exports.run=$l;exports.defineConfig=qk;exports.getChalk=rn;exports.getNcuRc=hg;exports.package_default=qn;exports.pickBy=Hr;exports.renderExtendedHelp=U1;Object.defineProperty(exports,"require_diff",{enumerable:!0,get:function(){return nf}});Object.defineProperty(exports,"require_gt",{enumerable:!0,get:function(){return an}});Object.defineProperty(exports,"require_is_fullwidth_code_point",{enumerable:!0,get:function(){return kh}});Object.defineProperty(exports,"require_semver",{enumerable:!0,get:function(){return bs}});
|