@tsmodule/tsmodule 31.2.0 → 33.1.0

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.
Files changed (37) hide show
  1. package/dist/commands/build/index.d.ts +20 -0
  2. package/dist/commands/build/index.js +19 -20
  3. package/dist/commands/build/lib/emitTsDeclarations.d.ts +13 -0
  4. package/dist/commands/build/lib/emitTsDeclarations.js +9 -9
  5. package/dist/commands/create/index.d.ts +3 -0
  6. package/dist/commands/create/index.js +12 -18
  7. package/dist/commands/create/lib/copyTemplate.d.ts +1 -0
  8. package/dist/commands/create/lib/copyTemplate.js +10 -0
  9. package/dist/commands/create/lib/rewritePkgJson.d.ts +1 -0
  10. package/dist/commands/create/lib/rewritePkgJson.js +1 -1
  11. package/dist/commands/dev/index.d.ts +1 -0
  12. package/dist/commands/dev/index.js +23 -24
  13. package/dist/commands/execute/index.d.ts +1 -0
  14. package/dist/commands/execute/index.js +5 -5
  15. package/dist/commands/normalize/index.d.ts +14 -0
  16. package/dist/commands/normalize/index.js +13 -15
  17. package/dist/commands/normalize/lib/typescriptApi.d.ts +7 -0
  18. package/dist/commands/normalize/lib/typescriptApi.js +9 -10
  19. package/dist/constants.d.ts +10 -0
  20. package/dist/constants.js +1 -1
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.js +36 -43
  23. package/dist/loader/index.d.ts +11 -0
  24. package/dist/loader/index.js +5 -5
  25. package/dist/loader/types.d.ts +22 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/utils/cwd.d.ts +7 -0
  28. package/dist/utils/cwd.js +3 -3
  29. package/dist/utils/pkgJson.d.ts +2 -0
  30. package/dist/utils/pkgJson.js +1 -1
  31. package/dist/utils/require.d.ts +1 -0
  32. package/dist/utils/resolve.d.ts +28 -0
  33. package/dist/utils/resolve.js +1 -1
  34. package/dist/utils/stdin.d.ts +1 -0
  35. package/dist/utils/stdin.js +5 -5
  36. package/package.json +10 -11
  37. package/dist/commands/create/lib/createTemplate.js +0 -10
package/dist/index.js CHANGED
@@ -2,67 +2,60 @@
2
2
 
3
3
  await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
4
4
 
5
- var dg=Object.create;var Li=Object.defineProperty;var pg=Object.getOwnPropertyDescriptor;var mg=Object.getOwnPropertyNames;var gg=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty;var yg=t=>Li(t,"__esModule",{value:!0});var O=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var Sg=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Eg=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of mg(e))!_g.call(t,i)&&(r||i!=="default")&&Li(t,i,{get:()=>e[i],enumerable:!(n=pg(e,i))||n.enumerable});return t},je=(t,e)=>Eg(yg(Li(t!=null?dg(gg(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var vg,bg,xg,wg,Rg,Ag,Og,Cg,Tg,Pg,Dg,kg,Fg,Lg,Ng,Mg,Ig,Bg,qg,p,u=Sg(()=>{vg="@tsmodule/tsmodule",bg="node",xg="module",wg="31.2.0",Rg="tsmodule/tsmodule",Ag="TypeScript Module loader and compiler",Og="MIT",Cg="dist/types/index.d.ts",Tg={tsmodule:"dist/index.js"},Pg={".":"./dist/loader/index.js","./*":"./dist/*/index.js","./package.json":"./package.json"},Dg=["dist/","templates/"],kg={node:">=14"},Fg={prebootload:"node bootstrap.js",bootload:"node --no-warnings --loader ./dist/loader/index.js src/index.ts build -r",prebuild:"yarn bootload && yarn link -f",build:"tsmodule build -b",dev:"tsmodule dev","test-bundle":"yarn build && ava --no-worker-threads","test-production-bundle":"node runBundleTests.js",test:"yarn test-production-bundle",retest:"SKIP_TEST_SETUP=1 yarn test",lint:"eslint --fix src",prepare:"yarn build -r",prepublishOnly:"yarn test",release:"release-it"},Lg={esbuild:"^0.14.25",typescript:"^4.6.2"},Ng={"@types/fs-extra":"^9.0.13","@types/glob":"^7.2.0","@types/node":"^17.0.21","@typescript-eslint/eslint-plugin":"^5.14.0","@typescript-eslint/parser":"^5.14.0",assert:"^2.0.0",ava:"^4.1.0","await-shell":"^34.0.2",chalk:"^5.0.1",commander:"^9.0.0","create-debug-logger":"^3.0.0",eslint:"^8.11.0","eslint-config-next":"^12.1.0","fast-glob":"^3.2.11","fs-extra":"^10.0.1",glob:"^7.2.0","node-watch":"^0.7.3",ora:"^6.1.0",path:"^0.12.7","release-it":"^14.12.5"},Mg={git:{commitMessage:"chore: release v${version}",tagAnnotation:"v${version}"},github:{release:!0,releaseName:"v${version}"}},Ig={timeout:"10 minutes",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]},Bg=["esm","es module","ts module","bundle","loader","typescript","loader hook","require hook","experimental-loader"],qg=[{name:"C. Lewis",email:"ctj.lewis@icloud.com",url:"https://ctjlewis.com"}],p={name:vg,platform:bg,type:xg,version:wg,repository:Rg,description:Ag,license:Og,types:Cg,bin:Tg,exports:Pg,files:Dg,engines:kg,scripts:Fg,dependencies:Lg,devDependencies:Ng,"release-it":Mg,ava:Ig,keywords:Bg,contributors:qg}});var _r=m($i=>{u();var qi=class extends Error{constructor(e,r,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Wa=class extends qi{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};$i.CommanderError=qi;$i.InvalidArgumentError=Wa});var on=m(ji=>{u();var{InvalidArgumentError:zg}=_r(),Ga=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new zg(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function e_(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}ji.Argument=Ga;ji.humanReadableArgName=e_});var Hi=m(Ya=>{u();var{humanReadableArgName:t_}=on(),Va=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}if(this.sortOptions){let s=o=>o.short?o.short.replace(/^-/,""):o.long.replace(/^--/,"");r.sort((o,a)=>s(o).localeCompare(s(a)))}return r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>t_(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(g,E){if(E){let b=`${g.padEnd(n+o)}${E}`;return r.wrap(b,i-s,n+o)}return g}function l(g){return g.join(`
6
- `).replace(/^/gm," ".repeat(s))}let f=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(f=f.concat([c,""]));let h=r.visibleArguments(e).map(g=>a(r.argumentTerm(g),r.argumentDescription(g)));h.length>0&&(f=f.concat(["Arguments:",l(h),""]));let d=r.visibleOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));d.length>0&&(f=f.concat(["Options:",l(d),""]));let v=r.visibleCommands(e).map(g=>a(r.subcommandTerm(g),r.subcommandDescription(g)));return v.length>0&&(f=f.concat(["Commands:",l(v),""])),f.join(`
7
- `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){if(e.match(/[\n]\s+/))return e;let s=r-n;if(s<i)return e;let o=e.substr(0,n),a=e.substr(n),l=" ".repeat(n),f=new RegExp(".{1,"+(s-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g"),c=a.match(f)||[];return o+c.map((h,d)=>(h.slice(-1)===`
8
- `&&(h=h.slice(0,h.length-1)),(d>0?l:"")+h.trimRight())).join(`
9
- `)}};Ya.Help=Va});var Wi=m(Ui=>{u();var{InvalidArgumentError:r_}=_r(),Ka=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Ja(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new r_(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return n_(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}};function n_(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function Ja(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Ui.Option=Ka;Ui.splitOptionFlags=Ja});var Xa=m(Qa=>{u();function i_(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function s_(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=i_(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
5
+ var Wh=Object.create;var yo=Object.defineProperty;var Gh=Object.getOwnPropertyDescriptor;var Yh=Object.getOwnPropertyNames;var Kh=Object.getPrototypeOf,Jh=Object.prototype.hasOwnProperty;var A=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Qh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Yh(e))!Jh.call(t,i)&&i!==r&&yo(t,i,{get:()=>e[i],enumerable:!(n=Gh(e,i))||n.enumerable});return t};var Be=(t,e,r)=>(r=t!=null?Wh(Kh(t)):{},Qh(e||!t||!t.__esModule?yo(r,"default",{value:t,enumerable:!0}):r,t));var Wt=_(jn=>{var qn=class extends Error{constructor(e,r,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Po=class extends qn{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};jn.CommanderError=qn;jn.InvalidArgumentError=Po});var wr=_(Un=>{var{InvalidArgumentError:cp}=Wt(),Do=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new cp(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function fp(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Un.Argument=Do;Un.humanReadableArgName=fp});var Vn=_(Mo=>{var{humanReadableArgName:hp}=wr(),Lo=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}if(this.sortOptions){let s=o=>o.short?o.short.replace(/^-/,""):o.long.replace(/^--/,"");r.sort((o,a)=>s(o).localeCompare(s(a)))}return r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>hp(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(m,y){if(y){let S=`${m.padEnd(n+o)}${y}`;return r.wrap(S,i-s,n+o)}return m}function l(m){return m.join(`
6
+ `).replace(/^/gm," ".repeat(s))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([u,""]));let f=r.visibleArguments(e).map(m=>a(r.argumentTerm(m),r.argumentDescription(m)));f.length>0&&(c=c.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));h.length>0&&(c=c.concat(["Options:",l(h),""]));let E=r.visibleCommands(e).map(m=>a(r.subcommandTerm(m),r.subcommandDescription(m)));return E.length>0&&(c=c.concat(["Commands:",l(E),""])),c.join(`
7
+ `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){if(e.match(/[\n]\s+/))return e;let s=r-n;if(s<i)return e;let o=e.substr(0,n),a=e.substr(n),l=" ".repeat(n),c=new RegExp(".{1,"+(s-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g"),u=a.match(c)||[];return o+u.map((f,h)=>(f.slice(-1)===`
8
+ `&&(f=f.slice(0,f.length-1)),(h>0?l:"")+f.trimRight())).join(`
9
+ `)}};Mo.Help=Lo});var Gn=_(Wn=>{var{InvalidArgumentError:pp}=Wt(),ko=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=No(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[]}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new pp(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return dp(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}};function dp(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function No(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Wn.Option=ko;Wn.splitOptionFlags=No});var Io=_(Bo=>{function gp(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function _p(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=gp(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}Qa.suggestSimilar=s_});var nu=m(ru=>{u();var o_=O("events").EventEmitter,Gi=O("child_process"),Ze=O("path"),Vi=O("fs"),{Argument:a_,humanReadableArgName:u_}=on(),{CommanderError:Yi}=_r(),{Help:l_}=Hi(),{Option:Za,splitOptionFlags:c_}=Wi(),{suggestSimilar:za}=Xa(),un=class extends o_{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>process.stdout.write(r),writeErr:r=>process.stderr.write(r),getOutHelpWidth:()=>process.stdout.isTTY?process.stdout.columns:void 0,getErrHelpWidth:()=>process.stderr.isTTY?process.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new un(e)}createHelp(){return Object.assign(new l_,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new a_(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
- Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Yi(e,r,n)),process.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Za(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,l)}catch(f){if(f.code==="commander.invalidArgument"){let c=`${o} ${f.message}`;this.error(c,{exitCode:f.exitCode,code:f.code})}throw f}else s!==null&&e.variadic&&(s=e._concatValue(s,l));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Za)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,f)=>{let c=a.exec(l);return c?c[0]:f},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this}setOptionValueWithSource(e,r,n){return this.setOptionValue(e,r),this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(c,h){let d=Ze.resolve(c,h);if(Vi.existsSync(d))return d;if(i.includes(Ze.extname(h)))return;let v=i.find(g=>Vi.existsSync(`${d}${g}`));if(v)return`${d}${v}`}this._checkForMissingMandatoryOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Vi.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=Ze.resolve(Ze.dirname(c),a)}if(a){let c=s(a,o);if(!c&&!e._executableFile&&this._scriptPath){let h=Ze.basename(this._scriptPath,Ze.extname(this._scriptPath));h!==this._name&&(c=s(a,`${h}-${e._name}`))}o=c||o}n=i.includes(Ze.extname(o));let l;process.platform!=="win32"?n?(r.unshift(o),r=tu(process.execArgv).concat(r),l=Gi.spawn(process.argv[0],r,{stdio:"inherit"})):l=Gi.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=tu(process.execArgv).concat(r),l=Gi.spawn(process.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{process.on(h,()=>{l.killed===!1&&l.exitCode===null&&l.kill(h)})});let f=this._exitCallback;f?l.on("close",()=>{f(new Yi(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",process.exit.bind(process)),l.on("error",c=>{if(c.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
11
+ (Did you mean ${n[0]}?)`:""}Bo.suggestSimilar=_p});var Uo=_(jo=>{var mp=A("events").EventEmitter,Yn=A("child_process"),Ie=A("path"),Kn=A("fs"),W=A("process"),{Argument:yp,humanReadableArgName:bp}=wr(),{CommanderError:Jn}=Wt(),{Help:vp}=Vn(),{Option:Fo,splitOptionFlags:Ep}=Gn(),{suggestSimilar:$o}=Io(),Rr=class extends mp{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>W.stdout.write(r),writeErr:r=>W.stderr.write(r),getOutHelpWidth:()=>W.stdout.isTTY?W.stdout.columns:void 0,getErrHelpWidth:()=>W.stderr.isTTY?W.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new Rr(e)}createHelp(){return Object.assign(new vp,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new yp(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Jn(e,r,n)),W.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Fo(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,l)}catch(c){if(c.code==="commander.invalidArgument"){let u=`${o} ${c.message}`;this.error(u,{exitCode:c.exitCode,code:c.code})}throw c}else s!==null&&e.variadic&&(s=e._concatValue(s,l));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Fo)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,c)=>{let u=a.exec(l);return u?u[0]:c},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this}setOptionValueWithSource(e,r,n){return this.setOptionValue(e,r),this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=W.argv,W.versions&&W.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":W.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(u,f){let h=Ie.resolve(u,f);if(Kn.existsSync(h))return h;if(i.includes(Ie.extname(f)))return;let E=i.find(m=>Kn.existsSync(`${h}${m}`));if(E)return`${h}${E}`}this._checkForMissingMandatoryOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=Kn.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=Ie.resolve(Ie.dirname(u),a)}if(a){let u=s(a,o);if(!u&&!e._executableFile&&this._scriptPath){let f=Ie.basename(this._scriptPath,Ie.extname(this._scriptPath));f!==this._name&&(u=s(a,`${f}-${e._name}`))}o=u||o}n=i.includes(Ie.extname(o));let l;W.platform!=="win32"?n?(r.unshift(o),r=qo(W.execArgv).concat(r),l=Yn.spawn(W.argv[0],r,{stdio:"inherit"})):l=Yn.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=qo(W.execArgv).concat(r),l=Yn.spawn(W.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{W.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;c?l.on("close",()=>{c(new Jn(W.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",W.exit.bind(W)),l.on("error",u=>{if(u.code==="ENOENT"){let f=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",h=`'${o}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${h}`;throw new Error(d)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!f)process.exit(1);else{let h=new Yi(1,"commander.executeSubCommandAsync","(error)");h.nestedError=c,f(h)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);if(i||this.help({error:!0}),i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let l=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(l,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return an(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return e.length===1&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return eu(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),eu(this,n.unknown),this._checkForMissingMandatoryOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let f=this._findOption(l);if(f){if(f.required){let c=s.shift();c===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,c)}else if(f.optional){let c=null;s.length>0&&!o(s[0])&&(c=s.shift()),this.emit(`option:${f.name()}`,c)}else this.emit(`option:${f.name()}`);a=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),c=this._findOption(l.slice(0,f));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(f+1));continue}}if(o(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&n.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(l),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(l),s.length>0&&i.push(...s);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return an(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
16
+ - ${f}`;throw new Error(h)}else if(u.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)W.exit(1);else{let f=new Jn(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);if(i||this.help({error:!0}),i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let l=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(l,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return Ar(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return e.length===1&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return Ho(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Ho(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let c=this._findOption(l);if(c){if(c.required){let u=s.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;s.length>0&&!o(s[0])&&(u=s.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(o(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&n.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(l),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(l),s.length>0&&i.push(...s);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return Ar(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in process.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,process.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=za(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=za(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>u_(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Ze.basename(e,Ze.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);an(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),an(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=c_(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=process.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in W.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,W.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||o},i=o=>{let a=n(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=$o(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=$o(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>bp(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Ie.basename(e,Ie.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);Ar(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),Ar(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Ep(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=W.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
22
- `)}),this}};function eu(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function tu(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function an(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}ru.Command=un});var au=m((Le,ou)=>{u();var{Argument:f_}=on(),{Command:iu}=nu(),{CommanderError:h_,InvalidArgumentError:su}=_r(),{Help:d_}=Hi(),{Option:p_}=Wi();Le=ou.exports=new iu;Le.program=Le;Le.Argument=f_;Le.Command=iu;Le.CommanderError=h_;Le.Help=d_;Le.InvalidArgumentError=su;Le.InvalidOptionArgumentError=su;Le.Option=p_});var cu=m(Ht=>{"use strict";u();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.splitWhen=Ht.flatten=void 0;function m_(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ht.flatten=m_;function g_(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Ht.splitWhen=g_});var fu=m(ln=>{"use strict";u();Object.defineProperty(ln,"__esModule",{value:!0});ln.isEnoentCodeError=void 0;function __(t){return t.code==="ENOENT"}ln.isEnoentCodeError=__});var du=m(cn=>{"use strict";u();Object.defineProperty(cn,"__esModule",{value:!0});cn.createDirentFromStats=void 0;var hu=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function y_(t,e){return new hu(t,e)}cn.createDirentFromStats=y_});var pu=m(He=>{"use strict";u();Object.defineProperty(He,"__esModule",{value:!0});He.removeLeadingDotSegment=He.escape=He.makeAbsolute=He.unixify=void 0;var S_=O("path"),E_=2,v_=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function b_(t){return t.replace(/\\/g,"/")}He.unixify=b_;function x_(t,e){return S_.resolve(t,e)}He.makeAbsolute=x_;function w_(t){return t.replace(v_,"\\$2")}He.escape=w_;function R_(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(E_)}return t}He.removeLeadingDotSegment=R_});var gu=m((KA,mu)=>{u();mu.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Su=m((JA,yu)=>{u();var A_=gu(),_u={"{":"}","(":")","[":"]"},O_=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=_u[a];if(l){var f=t.indexOf(l,e);f!==-1&&(e=f+1)}if(t[e]==="!")return!0}else e++}return!1},C_=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=_u[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};yu.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(A_(e))return!0;var n=O_;return r&&r.strict===!1&&(n=C_),n(e)}});var vu=m((QA,Eu)=>{"use strict";u();var T_=Su(),P_=O("path").posix.dirname,D_=O("os").platform()==="win32",Ki="/",k_=/\\/g,F_=/[\{\[].*[\}\]]$/,L_=/(^|[^\\])([\{\[]|\([^\)]+$)/,N_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Eu.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&D_&&e.indexOf(Ki)<0&&(e=e.replace(k_,Ki)),F_.test(e)&&(e+=Ki),e+="a";do e=P_(e);while(T_(e)||L_.test(e));return e.replace(N_,"$1")}});var fn=m(Ae=>{"use strict";u();Ae.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ae.find=(t,e)=>t.nodes.find(r=>r.type===e);Ae.exceedsLimit=(t,e,r=1,n)=>n===!1||!Ae.isInteger(t)||!Ae.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Ae.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ae.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Ae.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;Ae.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ae.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ae.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var hn=m((ZA,xu)=>{"use strict";u();var bu=fn();xu.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&bu.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&bu.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(t)}});var Ru=m((zA,wu)=>{"use strict";u();wu.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Lu=m((eO,Fu)=>{"use strict";u();var Au=Ru(),vt=(t,e,r)=>{if(Au(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Au(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=t+":"+e+"="+i+s+o+a;if(vt.cache.hasOwnProperty(l))return vt.cache[l].result;let f=Math.min(t,e),c=Math.max(t,e);if(Math.abs(f-c)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=ku(t)||ku(e),d={min:t,max:e,a:f,b:c},v=[],g=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),f<0){let E=c<0?Math.abs(c):1;g=Ou(E,Math.abs(f),d,n),f=d.a=0}return c>=0&&(v=Ou(f,c,d,n)),d.negatives=g,d.positives=v,d.result=M_(g,v,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&v.length+g.length>1&&(d.result=`(?:${d.result})`),vt.cache[l]=d,d.result};function M_(t,e,r){let n=Ji(t,e,"-",!1,r)||[],i=Ji(e,t,"",!1,r)||[],s=Ji(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function I_(t,e){let r=1,n=1,i=Tu(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=Tu(t,r);for(i=Pu(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=Pu(e+1,n)-1;return s=[...s],s.sort($_),s}function B_(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=q_(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=j_(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Ou(t,e,r,n){let i=I_(t,e),s=[],o=t,a;for(let l=0;l<i.length;l++){let f=i[l],c=B_(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+Du(a.count),o=f+1;continue}r.isPadded&&(h=H_(f,r,n)),c.string=h+c.pattern+Du(c.count),s.push(c),o=f+1,a=c}return s}function Ji(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!Cu(e,"string",a)&&s.push(r+a),n&&Cu(e,"string",a)&&s.push(r+a)}return s}function q_(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function $_(t,e){return t>e?1:e>t?-1:0}function Cu(t,e,r){return t.some(n=>n[e]===r)}function Tu(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Pu(t,e){return t-t%Math.pow(10,e)}function Du(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function j_(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ku(t){return/^-?(0+)\d/.test(t)}function H_(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}vt.cache={};vt.clearCache=()=>vt.cache={};Fu.exports=vt});var Zi=m((tO,Hu)=>{"use strict";u();var U_=O("util"),Iu=Lu(),Nu=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),W_=t=>e=>t===!0?Number(e):String(e),Qi=t=>typeof t=="number"||typeof t=="string"&&t!=="",yr=t=>Number.isInteger(+t),Xi=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},G_=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,V_=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Mu=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},Y_=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},Bu=(t,e,r,n)=>{if(r)return Iu(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},qu=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Iu(t,e,r)},$u=(...t)=>new RangeError("Invalid range arguments: "+U_.inspect(...t)),ju=(t,e,r)=>{if(r.strictRanges===!0)throw $u([t,e]);return[]},K_=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},J_=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw $u([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),l=String(e),f=String(r);r=Math.max(Math.abs(r),1);let c=Xi(a)||Xi(l)||Xi(f),h=c?Math.max(a.length,l.length,f.length):0,d=c===!1&&G_(t,e,n)===!1,v=n.transform||W_(d);if(n.toRegex&&r===1)return Bu(Mu(t,h),Mu(e,h),!0,n);let g={negatives:[],positives:[]},E=P=>g[P<0?"negatives":"positives"].push(Math.abs(P)),b=[],R=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):b.push(V_(v(i,R),h,d)),i=o?i-r:i+r,R++;return n.toRegex===!0?r>1?Y_(g,n):qu(b,null,{wrap:!1,...n}):b},Q_=(t,e,r=1,n={})=>{if(!yr(t)&&t.length>1||!yr(e)&&e.length>1)return ju(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return Bu(l,f,!1,n);let c=[],h=0;for(;a?s>=o:s<=o;)c.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?qu(c,null,{wrap:!1,options:n}):c},dn=(t,e,r,n={})=>{if(e==null&&Qi(t))return[t];if(!Qi(t)||!Qi(e))return ju(t,e,n);if(typeof r=="function")return dn(t,e,1,{transform:r});if(Nu(r))return dn(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,yr(r)?yr(t)&&yr(e)?J_(t,e,r,i):Q_(t,e,Math.max(Math.abs(r),1),i):r!=null&&!Nu(r)?K_(r,i):dn(t,e,1,r)};Hu.exports=dn});var Gu=m((rO,Wu)=>{"use strict";u();var X_=Zi(),Uu=fn(),Z_=(t,e={})=>{let r=(n,i={})=>{let s=Uu.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=Uu.reduce(n.nodes),h=X_(...c,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let c of n.nodes)f+=r(c,n);return f};return r(t)};Wu.exports=Z_});var Ku=m((nO,Yu)=>{"use strict";u();var z_=Zi(),Vu=hn(),Ut=fn(),bt=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Ut.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(bt(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?bt(i,s,r):i+s);return Ut.flatten(n)},ey=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(bt(a.pop(),Vu(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(bt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Ut.reduce(i.nodes);if(Ut.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=z_(...h,e);d.length===0&&(d=Vu(i,e)),a.push(bt(a.pop(),d)),i.nodes=[];return}let l=Ut.encloseBrace(i),f=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,f=c.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(d.type==="close"){a.push(bt(a.pop(),f,l));continue}if(d.value&&d.type!=="open"){f.push(bt(f.pop(),d.value));continue}d.nodes&&n(d,i)}return f};return Ut.flatten(n(t))};Yu.exports=ey});var Qu=m((iO,Ju)=>{"use strict";u();Ju.exports={MAX_LENGTH:1024*64,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:`
23
- `,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"}});var tl=m((sO,el)=>{"use strict";u();var ty=hn(),{MAX_LENGTH:Xu,CHAR_BACKSLASH:zi,CHAR_BACKTICK:ry,CHAR_COMMA:ny,CHAR_DOT:iy,CHAR_LEFT_PARENTHESES:sy,CHAR_RIGHT_PARENTHESES:oy,CHAR_LEFT_CURLY_BRACE:ay,CHAR_RIGHT_CURLY_BRACE:uy,CHAR_LEFT_SQUARE_BRACKET:Zu,CHAR_RIGHT_SQUARE_BRACKET:zu,CHAR_DOUBLE_QUOTE:ly,CHAR_SINGLE_QUOTE:cy,CHAR_NO_BREAK_SPACE:fy,CHAR_ZERO_WIDTH_NOBREAK_SPACE:hy}=Qu(),dy=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Xu,r.maxLength):Xu;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,l=0,f=t.length,c=0,h=0,d,v={},g=()=>t[c++],E=b=>{if(b.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&b.type==="text"){a.value+=b.value;return}return o.nodes.push(b),b.parent=o,b.prev=a,a=b,b};for(E({type:"bos"});c<f;)if(o=s[s.length-1],d=g(),!(d===hy||d===fy)){if(d===zi){E({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===zu){E({type:"text",value:"\\"+d});continue}if(d===Zu){l++;let b=!0,R;for(;c<f&&(R=g());){if(d+=R,R===Zu){l++;continue}if(R===zi){d+=g();continue}if(R===zu&&(l--,l===0))break}E({type:"text",value:d});continue}if(d===sy){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===oy){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===ly||d===cy||d===ry){let b=d,R;for(e.keepQuotes!==!0&&(d="");c<f&&(R=g());){if(R===zi){d+=R+g();continue}if(R===b){e.keepQuotes===!0&&(d+=R);break}d+=R}E({type:"text",value:d});continue}if(d===ay){h++;let b=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:b,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===uy){if(o.type!=="brace"){E({type:"text",value:d});continue}let b="close";o=s.pop(),o.close=!0,E({type:b,value:d}),h--,o=s[s.length-1];continue}if(d===ny&&h>0){if(o.ranges>0){o.ranges=0;let b=o.nodes.shift();o.nodes=[b,{type:"text",value:ty(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===iy&&h>0&&o.commas===0){let b=o.nodes;if(h===0||b.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){b.pop();let R=b[b.length-1];R.value+=a.value+d,a=R,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.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)});let b=s[s.length-1],R=b.nodes.indexOf(o);b.nodes.splice(R,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};el.exports=dy});var il=m((oO,nl)=>{"use strict";u();var rl=hn(),py=Gu(),my=Ku(),gy=tl(),ve=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=ve.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ve.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ve.parse=(t,e={})=>gy(t,e);ve.stringify=(t,e={})=>rl(typeof t=="string"?ve.parse(t,e):t,e);ve.compile=(t,e={})=>(typeof t=="string"&&(t=ve.parse(t,e)),py(t,e));ve.expand=(t,e={})=>{typeof t=="string"&&(t=ve.parse(t,e));let r=my(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ve.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ve.compile(t,e):ve.expand(t,e);nl.exports=ve});var Sr=m((aO,ll)=>{"use strict";u();var _y=O("path"),Ue="\\\\/",sl=`[^${Ue}]`,ze="\\.",yy="\\+",Sy="\\?",pn="\\/",Ey="(?=.)",ol="[^/]",es=`(?:${pn}|$)`,al=`(?:^|${pn})`,ts=`${ze}{1,2}${es}`,vy=`(?!${ze})`,by=`(?!${al}${ts})`,xy=`(?!${ze}{0,1}${es})`,wy=`(?!${ts})`,Ry=`[^.${pn}]`,Ay=`${ol}*?`,ul={DOT_LITERAL:ze,PLUS_LITERAL:yy,QMARK_LITERAL:Sy,SLASH_LITERAL:pn,ONE_CHAR:Ey,QMARK:ol,END_ANCHOR:es,DOTS_SLASH:ts,NO_DOT:vy,NO_DOTS:by,NO_DOT_SLASH:xy,NO_DOTS_SLASH:wy,QMARK_NO_DOT:Ry,STAR:Ay,START_ANCHOR:al},Oy={...ul,SLASH_LITERAL:`[${Ue}]`,QMARK:sl,STAR:`${sl}*?`,DOTS_SLASH:`${ze}{1,2}(?:[${Ue}]|$)`,NO_DOT:`(?!${ze})`,NO_DOTS:`(?!(?:^|[${Ue}])${ze}{1,2}(?:[${Ue}]|$))`,NO_DOT_SLASH:`(?!${ze}{0,1}(?:[${Ue}]|$))`,NO_DOTS_SLASH:`(?!${ze}{1,2}(?:[${Ue}]|$))`,QMARK_NO_DOT:`[^.${Ue}]`,START_ANCHOR:`(?:^|[${Ue}])`,END_ANCHOR:`(?:[${Ue}]|$)`},Cy={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"};ll.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Cy,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:_y.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Oy:ul}}});var Er=m(_e=>{"use strict";u();var Ty=O("path"),Py=process.platform==="win32",{REGEX_BACKSLASH:Dy,REGEX_REMOVE_BACKSLASH:ky,REGEX_SPECIAL_CHARS:Fy,REGEX_SPECIAL_CHARS_GLOBAL:Ly}=Sr();_e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);_e.hasRegexChars=t=>Fy.test(t);_e.isRegexChar=t=>t.length===1&&_e.hasRegexChars(t);_e.escapeRegex=t=>t.replace(Ly,"\\$1");_e.toPosixSlashes=t=>t.replace(Dy,"/");_e.removeBackslashes=t=>t.replace(ky,e=>e==="\\"?"":e);_e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};_e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Py===!0||Ty.sep==="\\";_e.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?_e.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};_e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};_e.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var _l=m((lO,gl)=>{"use strict";u();var cl=Er(),{CHAR_ASTERISK:rs,CHAR_AT:Ny,CHAR_BACKWARD_SLASH:vr,CHAR_COMMA:My,CHAR_DOT:ns,CHAR_EXCLAMATION_MARK:is,CHAR_FORWARD_SLASH:ml,CHAR_LEFT_CURLY_BRACE:ss,CHAR_LEFT_PARENTHESES:os,CHAR_LEFT_SQUARE_BRACKET:Iy,CHAR_PLUS:By,CHAR_QUESTION_MARK:fl,CHAR_RIGHT_CURLY_BRACE:qy,CHAR_RIGHT_PARENTHESES:hl,CHAR_RIGHT_SQUARE_BRACKET:$y}=Sr(),dl=t=>t===ml||t===vr,pl=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},jy=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,f=-1,c=0,h=0,d=!1,v=!1,g=!1,E=!1,b=!1,R=!1,P=!1,B=!1,Q=!1,F=!1,U=0,N,x,T={value:"",depth:0,isGlob:!1},w=()=>f>=n,y=()=>l.charCodeAt(f+1),L=()=>(N=x,l.charCodeAt(++f));for(;f<n;){x=L();let G;if(x===vr){P=T.backslashes=!0,x=L(),x===ss&&(R=!0);continue}if(R===!0||x===ss){for(U++;w()!==!0&&(x=L());){if(x===vr){P=T.backslashes=!0,L();continue}if(x===ss){U++;continue}if(R!==!0&&x===ns&&(x=L())===ns){if(d=T.isBrace=!0,g=T.isGlob=!0,F=!0,i===!0)continue;break}if(R!==!0&&x===My){if(d=T.isBrace=!0,g=T.isGlob=!0,F=!0,i===!0)continue;break}if(x===qy&&(U--,U===0)){R=!1,d=T.isBrace=!0,F=!0;break}}if(i===!0)continue;break}if(x===ml){if(s.push(f),o.push(T),T={value:"",depth:0,isGlob:!1},F===!0)continue;if(N===ns&&f===c+1){c+=2;continue}h=f+1;continue}if(r.noext!==!0&&(x===By||x===Ny||x===rs||x===fl||x===is)===!0&&y()===os){if(g=T.isGlob=!0,E=T.isExtglob=!0,F=!0,x===is&&f===c&&(Q=!0),i===!0){for(;w()!==!0&&(x=L());){if(x===vr){P=T.backslashes=!0,x=L();continue}if(x===hl){g=T.isGlob=!0,F=!0;break}}continue}break}if(x===rs){if(N===rs&&(b=T.isGlobstar=!0),g=T.isGlob=!0,F=!0,i===!0)continue;break}if(x===fl){if(g=T.isGlob=!0,F=!0,i===!0)continue;break}if(x===Iy){for(;w()!==!0&&(G=L());){if(G===vr){P=T.backslashes=!0,L();continue}if(G===$y){v=T.isBracket=!0,g=T.isGlob=!0,F=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&x===is&&f===c){B=T.negated=!0,c++;continue}if(r.noparen!==!0&&x===os){if(g=T.isGlob=!0,i===!0){for(;w()!==!0&&(x=L());){if(x===os){P=T.backslashes=!0,x=L();continue}if(x===hl){F=!0;break}}continue}break}if(g===!0){if(F=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,g=!1);let k=l,W="",S="";c>0&&(W=l.slice(0,c),l=l.slice(c),h-=c),k&&g===!0&&h>0?(k=l.slice(0,h),S=l.slice(h)):g===!0?(k="",S=l):k=l,k&&k!==""&&k!=="/"&&k!==l&&dl(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),r.unescape===!0&&(S&&(S=cl.removeBackslashes(S)),k&&P===!0&&(k=cl.removeBackslashes(k)));let _={prefix:W,input:t,start:c,base:k,glob:S,isBrace:d,isBracket:v,isGlob:g,isExtglob:E,isGlobstar:b,negated:B,negatedExtglob:Q};if(r.tokens===!0&&(_.maxDepth=0,dl(x)||o.push(T),_.tokens=o),r.parts===!0||r.tokens===!0){let G;for(let D=0;D<s.length;D++){let ke=G?G+1:c,$e=s[D],Ee=t.slice(ke,$e);r.tokens&&(D===0&&c!==0?(o[D].isPrefix=!0,o[D].value=W):o[D].value=Ee,pl(o[D]),_.maxDepth+=o[D].depth),(D!==0||Ee!=="")&&a.push(Ee),G=$e}if(G&&G+1<t.length){let D=t.slice(G+1);a.push(D),r.tokens&&(o[o.length-1].value=D,pl(o[o.length-1]),_.maxDepth+=o[o.length-1].depth)}_.slashes=s,_.parts=a}return _};gl.exports=jy});var El=m((cO,Sl)=>{"use strict";u();var mn=Sr(),be=Er(),{MAX_LENGTH:gn,POSIX_REGEX_SOURCE:Hy,REGEX_NON_SPECIAL_CHARS:Uy,REGEX_SPECIAL_CHARS_BACKREF:Wy,REPLACEMENTS:yl}=mn,Gy=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>be.escapeRegex(i)).join("..")}return r},Wt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,as=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=yl[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(gn,r.maxLength):gn,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=be.isWindows(e),f=mn.globChars(l),c=mn.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:v,ONE_CHAR:g,DOTS_SLASH:E,NO_DOT:b,NO_DOT_SLASH:R,NO_DOTS_SLASH:P,QMARK:B,QMARK_NO_DOT:Q,STAR:F,START_ANCHOR:U}=f,N=C=>`(${a}(?:(?!${U}${C.dot?E:h}).)*?)`,x=r.dot?"":b,T=r.dot?B:Q,w=r.bash===!0?N(r):F;r.capture&&(w=`(${w})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let y={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=be.removePrefix(t,y),i=t.length;let L=[],k=[],W=[],S=s,_,G=()=>y.index===i-1,D=y.peek=(C=1)=>t[y.index+C],ke=y.advance=()=>t[++y.index]||"",$e=()=>t.slice(y.index+1),Ee=(C="",J=0)=>{y.consumed+=C,y.index+=J},zr=C=>{y.output+=C.output!=null?C.output:C.value,Ee(C.value)},fg=()=>{let C=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)ke(),y.start++,C++;return C%2===0?!1:(y.negated=!0,y.start++,!0)},en=C=>{y[C]++,W.push(C)},Et=C=>{y[C]--,W.pop()},j=C=>{if(S.type==="globstar"){let J=y.braces>0&&(C.type==="comma"||C.type==="brace"),A=C.extglob===!0||L.length&&(C.type==="pipe"||C.type==="paren");C.type!=="slash"&&C.type!=="paren"&&!J&&!A&&(y.output=y.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=w,y.output+=S.output)}if(L.length&&C.type!=="paren"&&(L[L.length-1].inner+=C.value),(C.value||C.output)&&zr(C),S&&S.type==="text"&&C.type==="text"){S.value+=C.value,S.output=(S.output||"")+C.value;return}C.prev=S,o.push(C),S=C},tn=(C,J)=>{let A={...c[J],conditions:1,inner:""};A.prev=S,A.parens=y.parens,A.output=y.output;let q=(r.capture?"(":"")+A.open;en("parens"),j({type:C,value:J,output:y.output?"":g}),j({type:"paren",extglob:!0,value:ke(),output:q}),L.push(A)},hg=C=>{let J=C.close+(r.capture?")":""),A;if(C.type==="negate"){let q=w;if(C.inner&&C.inner.length>1&&C.inner.includes("/")&&(q=N(r)),(q!==w||G()||/^\)+$/.test($e()))&&(J=C.close=`)$))${q}`),C.inner.includes("*")&&(A=$e())&&/^\.[^\\/.]+$/.test(A)){let z=as(A,{...e,fastpaths:!1}).output;J=C.close=`)${z})${q})`}C.prev.type==="bos"&&(y.negatedExtglob=!0)}j({type:"paren",extglob:!0,value:_,output:J}),Et("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let C=!1,J=t.replace(Wy,(A,q,z,pe,oe,Fi)=>pe==="\\"?(C=!0,A):pe==="?"?q?q+pe+(oe?B.repeat(oe.length):""):Fi===0?T+(oe?B.repeat(oe.length):""):B.repeat(z.length):pe==="."?h.repeat(z.length):pe==="*"?q?q+pe+(oe?w:""):w:q?A:`\\${A}`);return C===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,A=>A.length%2===0?"\\\\":A?"\\":"")),J===t&&r.contains===!0?(y.output=t,y):(y.output=be.wrapOutput(J,y,e),y)}for(;!G();){if(_=ke(),_==="\0")continue;if(_==="\\"){let A=D();if(A==="/"&&r.bash!==!0||A==="."||A===";")continue;if(!A){_+="\\",j({type:"text",value:_});continue}let q=/^\\+/.exec($e()),z=0;if(q&&q[0].length>2&&(z=q[0].length,y.index+=z,z%2!==0&&(_+="\\")),r.unescape===!0?_=ke():_+=ke(),y.brackets===0){j({type:"text",value:_});continue}}if(y.brackets>0&&(_!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&_===":"){let A=S.value.slice(1);if(A.includes("[")&&(S.posix=!0,A.includes(":"))){let q=S.value.lastIndexOf("["),z=S.value.slice(0,q),pe=S.value.slice(q+2),oe=Hy[pe];if(oe){S.value=z+oe,y.backtrack=!0,ke(),!s.output&&o.indexOf(S)===1&&(s.output=g);continue}}}(_==="["&&D()!==":"||_==="-"&&D()==="]")&&(_=`\\${_}`),_==="]"&&(S.value==="["||S.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&S.value==="["&&(_="^"),S.value+=_,zr({value:_});continue}if(y.quotes===1&&_!=='"'){_=be.escapeRegex(_),S.value+=_,zr({value:_});continue}if(_==='"'){y.quotes=y.quotes===1?0:1,r.keepQuotes===!0&&j({type:"text",value:_});continue}if(_==="("){en("parens"),j({type:"paren",value:_});continue}if(_===")"){if(y.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wt("opening","("));let A=L[L.length-1];if(A&&y.parens===A.parens+1){hg(L.pop());continue}j({type:"paren",value:_,output:y.parens?")":"\\)"}),Et("parens");continue}if(_==="["){if(r.nobracket===!0||!$e().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wt("closing","]"));_=`\\${_}`}else en("brackets");j({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){j({type:"text",value:_,output:`\\${_}`});continue}if(y.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wt("opening","["));j({type:"text",value:_,output:`\\${_}`});continue}Et("brackets");let A=S.value.slice(1);if(S.posix!==!0&&A[0]==="^"&&!A.includes("/")&&(_=`/${_}`),S.value+=_,zr({value:_}),r.literalBrackets===!1||be.hasRegexChars(A))continue;let q=be.escapeRegex(S.value);if(y.output=y.output.slice(0,-S.value.length),r.literalBrackets===!0){y.output+=q,S.value=q;continue}S.value=`(${a}${q}|${S.value})`,y.output+=S.value;continue}if(_==="{"&&r.nobrace!==!0){en("braces");let A={type:"brace",value:_,output:"(",outputIndex:y.output.length,tokensIndex:y.tokens.length};k.push(A),j(A);continue}if(_==="}"){let A=k[k.length-1];if(r.nobrace===!0||!A){j({type:"text",value:_,output:_});continue}let q=")";if(A.dots===!0){let z=o.slice(),pe=[];for(let oe=z.length-1;oe>=0&&(o.pop(),z[oe].type!=="brace");oe--)z[oe].type!=="dots"&&pe.unshift(z[oe].value);q=Gy(pe,r),y.backtrack=!0}if(A.comma!==!0&&A.dots!==!0){let z=y.output.slice(0,A.outputIndex),pe=y.tokens.slice(A.tokensIndex);A.value=A.output="\\{",_=q="\\}",y.output=z;for(let oe of pe)y.output+=oe.output||oe.value}j({type:"brace",value:_,output:q}),Et("braces"),k.pop();continue}if(_==="|"){L.length>0&&L[L.length-1].conditions++,j({type:"text",value:_});continue}if(_===","){let A=_,q=k[k.length-1];q&&W[W.length-1]==="braces"&&(q.comma=!0,A="|"),j({type:"comma",value:_,output:A});continue}if(_==="/"){if(S.type==="dot"&&y.index===y.start+1){y.start=y.index+1,y.consumed="",y.output="",o.pop(),S=s;continue}j({type:"slash",value:_,output:v});continue}if(_==="."){if(y.braces>0&&S.type==="dot"){S.value==="."&&(S.output=h);let A=k[k.length-1];S.type="dots",S.output+=_,S.value+=_,A.dots=!0;continue}if(y.braces+y.parens===0&&S.type!=="bos"&&S.type!=="slash"){j({type:"text",value:_,output:h});continue}j({type:"dot",value:_,output:h});continue}if(_==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&D()==="("&&D(2)!=="?"){tn("qmark",_);continue}if(S&&S.type==="paren"){let q=D(),z=_;if(q==="<"&&!be.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test($e()))&&(z=`\\${_}`),j({type:"text",value:_,output:z});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){j({type:"qmark",value:_,output:Q});continue}j({type:"qmark",value:_,output:B});continue}if(_==="!"){if(r.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){tn("negate",_);continue}if(r.nonegate!==!0&&y.index===0){fg();continue}}if(_==="+"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){tn("plus",_);continue}if(S&&S.value==="("||r.regex===!1){j({type:"plus",value:_,output:d});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||y.parens>0){j({type:"plus",value:_});continue}j({type:"plus",value:d});continue}if(_==="@"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){j({type:"at",extglob:!0,value:_,output:""});continue}j({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);let A=Uy.exec($e());A&&(_+=A[0],y.index+=A[0].length),j({type:"text",value:_});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=_,S.output=w,y.backtrack=!0,y.globstar=!0,Ee(_);continue}let C=$e();if(r.noextglob!==!0&&/^\([^?]/.test(C)){tn("star",_);continue}if(S.type==="star"){if(r.noglobstar===!0){Ee(_);continue}let A=S.prev,q=A.prev,z=A.type==="slash"||A.type==="bos",pe=q&&(q.type==="star"||q.type==="globstar");if(r.bash===!0&&(!z||C[0]&&C[0]!=="/")){j({type:"star",value:_,output:""});continue}let oe=y.braces>0&&(A.type==="comma"||A.type==="brace"),Fi=L.length&&(A.type==="pipe"||A.type==="paren");if(!z&&A.type!=="paren"&&!oe&&!Fi){j({type:"star",value:_,output:""});continue}for(;C.slice(0,3)==="/**";){let rn=t[y.index+4];if(rn&&rn!=="/")break;C=C.slice(3),Ee("/**",3)}if(A.type==="bos"&&G()){S.type="globstar",S.value+=_,S.output=N(r),y.output=S.output,y.globstar=!0,Ee(_);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&!pe&&G()){y.output=y.output.slice(0,-(A.output+S.output).length),A.output=`(?:${A.output}`,S.type="globstar",S.output=N(r)+(r.strictSlashes?")":"|$)"),S.value+=_,y.globstar=!0,y.output+=A.output+S.output,Ee(_);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&C[0]==="/"){let rn=C[1]!==void 0?"|$":"";y.output=y.output.slice(0,-(A.output+S.output).length),A.output=`(?:${A.output}`,S.type="globstar",S.output=`${N(r)}${v}|${v}${rn})`,S.value+=_,y.output+=A.output+S.output,y.globstar=!0,Ee(_+ke()),j({type:"slash",value:"/",output:""});continue}if(A.type==="bos"&&C[0]==="/"){S.type="globstar",S.value+=_,S.output=`(?:^|${v}|${N(r)}${v})`,y.output=S.output,y.globstar=!0,Ee(_+ke()),j({type:"slash",value:"/",output:""});continue}y.output=y.output.slice(0,-S.output.length),S.type="globstar",S.output=N(r),S.value+=_,y.output+=S.output,y.globstar=!0,Ee(_);continue}let J={type:"star",value:_,output:w};if(r.bash===!0){J.output=".*?",(S.type==="bos"||S.type==="slash")&&(J.output=x+J.output),j(J);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){J.output=_,j(J);continue}(y.index===y.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(y.output+=R,S.output+=R):r.dot===!0?(y.output+=P,S.output+=P):(y.output+=x,S.output+=x),D()!=="*"&&(y.output+=g,S.output+=g)),j(J)}for(;y.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wt("closing","]"));y.output=be.escapeLast(y.output,"["),Et("brackets")}for(;y.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wt("closing",")"));y.output=be.escapeLast(y.output,"("),Et("parens")}for(;y.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wt("closing","}"));y.output=be.escapeLast(y.output,"{"),Et("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&j({type:"maybe_slash",value:"",output:`${v}?`}),y.backtrack===!0){y.output="";for(let C of y.tokens)y.output+=C.output!=null?C.output:C.value,C.suffix&&(y.output+=C.suffix)}return y};as.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(gn,r.maxLength):gn,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=yl[t]||t;let s=be.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:v,START_ANCHOR:g}=mn.globChars(s),E=r.dot?h:c,b=r.dot?d:c,R=r.capture?"":"?:",P={negated:!1,prefix:""},B=r.bash===!0?".*?":v;r.capture&&(B=`(${B})`);let Q=x=>x.noglobstar===!0?B:`(${R}(?:(?!${g}${x.dot?f:o}).)*?)`,F=x=>{switch(x){case"*":return`${E}${l}${B}`;case".*":return`${o}${l}${B}`;case"*.*":return`${E}${B}${o}${l}${B}`;case"*/*":return`${E}${B}${a}${l}${b}${B}`;case"**":return E+Q(r);case"**/*":return`(?:${E}${Q(r)}${a})?${b}${l}${B}`;case"**/*.*":return`(?:${E}${Q(r)}${a})?${b}${B}${o}${l}${B}`;case"**/.*":return`(?:${E}${Q(r)}${a})?${o}${l}${B}`;default:{let T=/^(.*?)\.(\w+)$/.exec(x);if(!T)return;let w=F(T[1]);return w?w+o+T[2]:void 0}}},U=be.removePrefix(t,P),N=F(U);return N&&r.strictSlashes!==!0&&(N+=`${a}?`),N};Sl.exports=as});var bl=m((fO,vl)=>{"use strict";u();var Vy=O("path"),Yy=_l(),us=El(),ls=Er(),Ky=Sr(),Jy=t=>t&&typeof t=="object"&&!Array.isArray(t),re=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(d=>re(d,e,r));return d=>{for(let v of c){let g=v(d);if(g)return g}return!1}}let n=Jy(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=ls.isWindows(e),o=n?re.compileRe(t,e):re.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};l=re(i.ignore,c,r)}let f=(c,h=!1)=>{let{isMatch:d,match:v,output:g}=re.test(c,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:c,output:g,match:v,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):l(c)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(f.state=a),f};re.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?ls.toPosixSlashes:null),a=t===n,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=re.matchBase(t,e,r,i):a=e.exec(l)),{isMatch:Boolean(a),match:a,output:l}};re.matchBase=(t,e,r,n=ls.isWindows(r))=>(e instanceof RegExp?e:re.makeRe(e,r)).test(Vy.basename(t));re.isMatch=(t,e,r)=>re(e,r)(t);re.parse=(t,e)=>Array.isArray(t)?t.map(r=>re.parse(r,e)):us(t,{...e,fastpaths:!1});re.scan=(t,e)=>Yy(t,e);re.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=re.toRegex(a,e);return n===!0&&(l.state=t),l};re.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=us.fastpaths(t,e)),i.output||(i=us(t,e)),re.compileRe(i,e,r,n)};re.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};re.constants=Ky;vl.exports=re});var wl=m((hO,xl)=>{"use strict";u();xl.exports=bl()});var Tl=m((dO,Cl)=>{"use strict";u();var Al=O("util"),Ol=il(),We=wl(),cs=Er(),Rl=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=We(String(e[c]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let v of t){let g=h(v,!0);!(d?!g.isMatch:g.isMatch)||(d?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let f=(o===e.length?[...s]:[...i]).filter(c=>!n.has(c));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(c=>c.replace(/\\/g,"")):e}return f};X.match=X;X.matcher=(t,e)=>We(t,e);X.isMatch=(t,e,r)=>We(e,r)(t);X.any=X.isMatch;X.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],o=X(t,e,{...r,onResult:a=>{r.onResult&&r.onResult(a),i.push(a.output)}});for(let a of i)o.includes(a)||n.add(a);return[...n]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Al.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>X.contains(t,n,r));if(typeof e=="string"){if(Rl(t)||Rl(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!cs.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=X(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};X.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=We(String(i),r);if(n.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=We(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Al.inspect(t)}"`);return[].concat(e).every(n=>We(n,r)(t))};X.capture=(t,e,r)=>{let n=cs.isWindows(r),s=We.makeRe(String(t),{...r,capture:!0}).exec(n?cs.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>We.makeRe(...t);X.scan=(...t)=>We.scan(...t);X.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of Ol(String(n),e))r.push(We.parse(i,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Ol(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};Cl.exports=X});var Il=m(I=>{"use strict";u();Object.defineProperty(I,"__esModule",{value:!0});I.matchAny=I.convertPatternsToRe=I.makeRe=I.getPatternParts=I.expandBraceExpansion=I.expandPatternsWithBraceExpansion=I.isAffectDepthOfReadingPattern=I.endsWithSlashGlobStar=I.hasGlobStar=I.getBaseDirectory=I.isPatternRelatedToParentDirectory=I.getPatternsOutsideCurrentDirectory=I.getPatternsInsideCurrentDirectory=I.getPositivePatterns=I.getNegativePatterns=I.isPositivePattern=I.isNegativePattern=I.convertToNegativePattern=I.convertToPositivePattern=I.isDynamicPattern=I.isStaticPattern=void 0;var Qy=O("path"),Xy=vu(),fs=Tl(),Pl="**",Zy="\\",zy=/[*?]|^!/,e0=/\[[^[]*]/,t0=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,r0=/[!*+?@]\([^(]*\)/,n0=/,|\.\./;function Dl(t,e={}){return!kl(t,e)}I.isStaticPattern=Dl;function kl(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Zy)||zy.test(t)||e0.test(t)||t0.test(t)||e.extglob!==!1&&r0.test(t)||e.braceExpansion!==!1&&i0(t))}I.isDynamicPattern=kl;function i0(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return n0.test(n)}function s0(t){return _n(t)?t.slice(1):t}I.convertToPositivePattern=s0;function o0(t){return"!"+t}I.convertToNegativePattern=o0;function _n(t){return t.startsWith("!")&&t[1]!=="("}I.isNegativePattern=_n;function Fl(t){return!_n(t)}I.isPositivePattern=Fl;function a0(t){return t.filter(_n)}I.getNegativePatterns=a0;function u0(t){return t.filter(Fl)}I.getPositivePatterns=u0;function l0(t){return t.filter(e=>!hs(e))}I.getPatternsInsideCurrentDirectory=l0;function c0(t){return t.filter(hs)}I.getPatternsOutsideCurrentDirectory=c0;function hs(t){return t.startsWith("..")||t.startsWith("./..")}I.isPatternRelatedToParentDirectory=hs;function f0(t){return Xy(t,{flipBackslashes:!1})}I.getBaseDirectory=f0;function h0(t){return t.includes(Pl)}I.hasGlobStar=h0;function Ll(t){return t.endsWith("/"+Pl)}I.endsWithSlashGlobStar=Ll;function d0(t){let e=Qy.basename(t);return Ll(t)||Dl(e)}I.isAffectDepthOfReadingPattern=d0;function p0(t){return t.reduce((e,r)=>e.concat(Nl(r)),[])}I.expandPatternsWithBraceExpansion=p0;function Nl(t){return fs.braces(t,{expand:!0,nodupes:!0})}I.expandBraceExpansion=Nl;function m0(t,e){let{parts:r}=fs.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}I.getPatternParts=m0;function Ml(t,e){return fs.makeRe(t,e)}I.makeRe=Ml;function g0(t,e){return t.map(r=>Ml(r,e))}I.convertPatternsToRe=g0;function _0(t,e){return e.some(r=>r.test(t))}I.matchAny=_0});var jl=m((mO,$l)=>{"use strict";u();var y0=O("stream"),Bl=y0.PassThrough,S0=Array.prototype.slice;$l.exports=E0;function E0(){let t=[],e=S0.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Bl(n);function a(){for(let c=0,h=arguments.length;c<h;c++)t.push(ql(arguments[c],n));return l(),this}function l(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(f);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function d(){--h>0||(r=!1,l())}function v(g){function E(){g.removeListener("merge2UnpipeEnd",E),g.removeListener("end",E),s&&g.removeListener("error",b),d()}function b(R){o.emit("error",R)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",E),g.on("end",E),s&&g.on("error",b),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<c.length;g++)v(c[g]);d()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function ql(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=ql(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Bl(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ul=m(yn=>{"use strict";u();Object.defineProperty(yn,"__esModule",{value:!0});yn.merge=void 0;var v0=jl();function b0(t){let e=v0(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Hl(t)),e.once("end",()=>Hl(t)),e}yn.merge=b0;function Hl(t){t.forEach(e=>e.emit("close"))}});var Wl=m(Gt=>{"use strict";u();Object.defineProperty(Gt,"__esModule",{value:!0});Gt.isEmpty=Gt.isString=void 0;function x0(t){return typeof t=="string"}Gt.isString=x0;function w0(t){return t===""}Gt.isEmpty=w0});var et=m(ce=>{"use strict";u();Object.defineProperty(ce,"__esModule",{value:!0});ce.string=ce.stream=ce.pattern=ce.path=ce.fs=ce.errno=ce.array=void 0;var R0=cu();ce.array=R0;var A0=fu();ce.errno=A0;var O0=du();ce.fs=O0;var C0=pu();ce.path=C0;var T0=Il();ce.pattern=T0;var P0=Ul();ce.stream=P0;var D0=Wl();ce.string=D0});var Yl=m(fe=>{"use strict";u();Object.defineProperty(fe,"__esModule",{value:!0});fe.convertPatternGroupToTask=fe.convertPatternGroupsToTasks=fe.groupPatternsByBaseDirectory=fe.getNegativePatternsAsPositive=fe.getPositivePatterns=fe.convertPatternsToTasks=fe.generate=void 0;var tt=et();function k0(t,e){let r=Gl(t),n=Vl(t,e.ignore),i=r.filter(l=>tt.pattern.isStaticPattern(l,e)),s=r.filter(l=>tt.pattern.isDynamicPattern(l,e)),o=ds(i,n,!1),a=ds(s,n,!0);return o.concat(a)}fe.generate=k0;function ds(t,e,r){let n=[],i=tt.pattern.getPatternsOutsideCurrentDirectory(t),s=tt.pattern.getPatternsInsideCurrentDirectory(t),o=ps(i),a=ps(s);return n.push(...ms(o,e,r)),"."in a?n.push(gs(".",s,e,r)):n.push(...ms(a,e,r)),n}fe.convertPatternsToTasks=ds;function Gl(t){return tt.pattern.getPositivePatterns(t)}fe.getPositivePatterns=Gl;function Vl(t,e){return tt.pattern.getNegativePatterns(t).concat(e).map(tt.pattern.convertToPositivePattern)}fe.getNegativePatternsAsPositive=Vl;function ps(t){let e={};return t.reduce((r,n)=>{let i=tt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}fe.groupPatternsByBaseDirectory=ps;function ms(t,e,r){return Object.keys(t).map(n=>gs(n,t[n],e,r))}fe.convertPatternGroupsToTasks=ms;function gs(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(tt.pattern.convertToNegativePattern))}}fe.convertPatternGroupToTask=gs});var Jl=m(Vt=>{"use strict";u();Object.defineProperty(Vt,"__esModule",{value:!0});Vt.removeDuplicateSlashes=Vt.transform=void 0;var F0=/(?!^)\/{2,}/g;function L0(t){return t.map(e=>Kl(e))}Vt.transform=L0;function Kl(t){return t.replace(F0,"/")}Vt.removeDuplicateSlashes=Kl});var Xl=m(Sn=>{"use strict";u();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.read=void 0;function N0(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ql(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){_s(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ql(r,s);return}_s(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),_s(r,o)})})}Sn.read=N0;function Ql(t,e){t(e)}function _s(t,e){t(null,e)}});var Zl=m(En=>{"use strict";u();Object.defineProperty(En,"__esModule",{value:!0});En.read=void 0;function M0(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}En.read=M0});var zl=m(nt=>{"use strict";u();Object.defineProperty(nt,"__esModule",{value:!0});nt.createFileSystemAdapter=nt.FILE_SYSTEM_ADAPTER=void 0;var vn=O("fs");nt.FILE_SYSTEM_ADAPTER={lstat:vn.lstat,stat:vn.stat,lstatSync:vn.lstatSync,statSync:vn.statSync};function I0(t){return t===void 0?nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nt.FILE_SYSTEM_ADAPTER),t)}nt.createFileSystemAdapter=I0});var tc=m(ys=>{"use strict";u();Object.defineProperty(ys,"__esModule",{value:!0});var B0=zl(),ec=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=B0.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};ys.default=ec});var xt=m(it=>{"use strict";u();Object.defineProperty(it,"__esModule",{value:!0});it.statSync=it.stat=it.Settings=void 0;var rc=Xl(),q0=Zl(),Ss=tc();it.Settings=Ss.default;function $0(t,e,r){if(typeof e=="function"){rc.read(t,Es(),e);return}rc.read(t,Es(e),r)}it.stat=$0;function j0(t,e){let r=Es(e);return q0.read(t,r)}it.statSync=j0;function Es(t={}){return t instanceof Ss.default?t:new Ss.default(t)}});var sc=m((AO,ic)=>{u();var nc;ic.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(nc||(nc=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var ac=m((OO,oc)=>{u();oc.exports=U0;var H0=sc();function U0(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(l){function f(){e&&e(l,r),e=null}s?H0(f):f()}function a(l,f,c){r[l]=c,(--n===0||f)&&o(f)}n?i?i.forEach(function(l){t[l](function(f,c){a(l,f,c)})}):t.forEach(function(l,f){l(function(c,h){a(f,c,h)})}):o(null),s=!1}});var vs=m(xn=>{"use strict";u();Object.defineProperty(xn,"__esModule",{value:!0});xn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bn=process.versions.node.split(".");if(bn[0]===void 0||bn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var uc=Number.parseInt(bn[0],10),W0=Number.parseInt(bn[1],10),lc=10,G0=10,V0=uc>lc,Y0=uc===lc&&W0>=G0;xn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=V0||Y0});var fc=m(wn=>{"use strict";u();Object.defineProperty(wn,"__esModule",{value:!0});wn.createDirentFromStats=void 0;var cc=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function K0(t,e){return new cc(t,e)}wn.createDirentFromStats=K0});var bs=m(Rn=>{"use strict";u();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.fs=void 0;var J0=fc();Rn.fs=J0});var xs=m(An=>{"use strict";u();Object.defineProperty(An,"__esModule",{value:!0});An.joinPathSegments=void 0;function Q0(t,e,r){return t.endsWith(r)?t+e:t+r+e}An.joinPathSegments=Q0});var _c=m(st=>{"use strict";u();Object.defineProperty(st,"__esModule",{value:!0});st.readdir=st.readdirWithFileTypes=st.read=void 0;var X0=xt(),hc=ac(),Z0=vs(),dc=bs(),pc=xs();function z0(t,e,r){if(!e.stats&&Z0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){mc(t,e,r);return}gc(t,e,r)}st.read=z0;function mc(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){On(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:pc.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ws(r,s);return}let o=s.map(a=>eS(a,e));hc(o,(a,l)=>{if(a!==null){On(r,a);return}ws(r,l)})})}st.readdirWithFileTypes=mc;function eS(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=dc.fs.createDirentFromStats(t.name,i),r(null,t)})}}function gc(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){On(r,n);return}let s=i.map(o=>{let a=pc.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{X0.stat(a,e.fsStatSettings,(f,c)=>{if(f!==null){l(f);return}let h={name:o,path:a,dirent:dc.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),l(null,h)})}});hc(s,(o,a)=>{if(o!==null){On(r,o);return}ws(r,a)})})}st.readdir=gc;function On(t,e){t(e)}function ws(t,e){t(null,e)}});var bc=m(ot=>{"use strict";u();Object.defineProperty(ot,"__esModule",{value:!0});ot.readdir=ot.readdirWithFileTypes=ot.read=void 0;var tS=xt(),rS=vs(),yc=bs(),Sc=xs();function nS(t,e){return!e.stats&&rS.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ec(t,e):vc(t,e)}ot.read=nS;function Ec(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Sc.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=yc.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}ot.readdirWithFileTypes=Ec;function vc(t,e){return e.fs.readdirSync(t).map(n=>{let i=Sc.joinPathSegments(t,n,e.pathSegmentSeparator),s=tS.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:yc.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}ot.readdir=vc});var xc=m(at=>{"use strict";u();Object.defineProperty(at,"__esModule",{value:!0});at.createFileSystemAdapter=at.FILE_SYSTEM_ADAPTER=void 0;var Yt=O("fs");at.FILE_SYSTEM_ADAPTER={lstat:Yt.lstat,stat:Yt.stat,lstatSync:Yt.lstatSync,statSync:Yt.statSync,readdir:Yt.readdir,readdirSync:Yt.readdirSync};function iS(t){return t===void 0?at.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},at.FILE_SYSTEM_ADAPTER),t)}at.createFileSystemAdapter=iS});var Rc=m(Rs=>{"use strict";u();Object.defineProperty(Rs,"__esModule",{value:!0});var sS=O("path"),oS=xt(),aS=xc(),wc=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=aS.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,sS.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new oS.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Rs.default=wc});var Cn=m(ut=>{"use strict";u();Object.defineProperty(ut,"__esModule",{value:!0});ut.Settings=ut.scandirSync=ut.scandir=void 0;var Ac=_c(),uS=bc(),As=Rc();ut.Settings=As.default;function lS(t,e,r){if(typeof e=="function"){Ac.read(t,Os(),e);return}Ac.read(t,Os(e),r)}ut.scandir=lS;function cS(t,e){let r=Os(e);return uS.read(t,r)}ut.scandirSync=cS;function Os(t={}){return t instanceof As.default?t:new As.default(t)}});var Cc=m((IO,Oc)=>{"use strict";u();function fS(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Oc.exports=fS});var Pc=m((BO,Cs)=>{"use strict";u();var hS=Cc();function Tc(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=hS(dS),i=null,s=null,o=0,a=null,l={push:E,drain:Oe,saturated:Oe,pause:c,paused:!1,concurrency:r,running:f,resume:v,idle:g,length:h,getQueue:d,unshift:b,empty:Oe,kill:P,killAndDrain:B,error:Q};return l;function f(){return o}function c(){l.paused=!0}function h(){for(var F=i,U=0;F;)F=F.next,U++;return U}function d(){for(var F=i,U=[];F;)U.push(F.value),F=F.next;return U}function v(){if(!!l.paused){l.paused=!1;for(var F=0;F<l.concurrency;F++)o++,R()}}function g(){return o===0&&l.length()===0}function E(F,U){var N=n.get();N.context=t,N.release=R,N.value=F,N.callback=U||Oe,N.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=N,s=N):(i=N,s=N,l.saturated()):(o++,e.call(t,N.value,N.worked))}function b(F,U){var N=n.get();N.context=t,N.release=R,N.value=F,N.callback=U||Oe,o===l.concurrency||l.paused?i?(N.next=i,i=N):(i=N,s=N,l.saturated()):(o++,e.call(t,N.value,N.worked))}function R(F){F&&n.release(F);var U=i;U?l.paused?o--:(s===i&&(s=null),i=U.next,U.next=null,e.call(t,U.value,U.worked),s===null&&l.empty()):--o===0&&l.drain()}function P(){i=null,s=null,l.drain=Oe}function B(){i=null,s=null,l.drain(),l.drain=Oe}function Q(F){a=F}}function Oe(){}function dS(){this.value=null,this.callback=Oe,this.next=null,this.release=Oe,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Oe,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function pS(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(c,h){e.call(this,c).then(function(d){h(null,d)},h)}var i=Tc(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(c){var h=new Promise(function(d,v){s(c,function(g,E){if(g){v(g);return}d(E)})});return h.catch(Oe),h}function l(c){var h=new Promise(function(d,v){o(c,function(g,E){if(g){v(g);return}d(E)})});return h.catch(Oe),h}function f(){var c=i.drain,h=new Promise(function(d){i.drain=function(){c(),d()}});return h}}Cs.exports=Tc;Cs.exports.promise=pS});var Tn=m(Ge=>{"use strict";u();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.joinPathSegments=Ge.replacePathSegmentSeparator=Ge.isAppliedFilter=Ge.isFatalError=void 0;function mS(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Ge.isFatalError=mS;function gS(t,e){return t===null||t(e)}Ge.isAppliedFilter=gS;function _S(t,e){return t.split(/[/\\]/).join(e)}Ge.replacePathSegmentSeparator=_S;function yS(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Ge.joinPathSegments=yS});var Ps=m(Ts=>{"use strict";u();Object.defineProperty(Ts,"__esModule",{value:!0});var SS=Tn(),Dc=class{constructor(e,r){this._root=e,this._settings=r,this._root=SS.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ts.default=Dc});var ks=m(Ds=>{"use strict";u();Object.defineProperty(Ds,"__esModule",{value:!0});var ES=O("events"),vS=Cn(),bS=Pc(),Pn=Tn(),xS=Ps(),kc=class extends xS.default{constructor(e,r){super(e,r);this._settings=r,this._scandir=vS.scandir,this._emitter=new ES.EventEmitter,this._queue=bS(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Pn.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=Pn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Pn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ds.default=kc});var Lc=m(Fs=>{"use strict";u();Object.defineProperty(Fs,"__esModule",{value:!0});var wS=ks(),Fc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wS.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{RS(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{AS(e,this._storage)}),this._reader.read()}};Fs.default=Fc;function RS(t,e){t(e)}function AS(t,e){t(null,e)}});var Mc=m(Ls=>{"use strict";u();Object.defineProperty(Ls,"__esModule",{value:!0});var OS=O("stream"),CS=ks(),Nc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new CS.default(this._root,this._settings),this._stream=new OS.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ls.default=Nc});var Bc=m(Ns=>{"use strict";u();Object.defineProperty(Ns,"__esModule",{value:!0});var TS=Cn(),Dn=Tn(),PS=Ps(),Ic=class extends PS.default{constructor(){super(...arguments);this._scandir=TS.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Dn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Dn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Dn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Dn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ns.default=Ic});var $c=m(Ms=>{"use strict";u();Object.defineProperty(Ms,"__esModule",{value:!0});var DS=Bc(),qc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new DS.default(this._root,this._settings)}read(){return this._reader.read()}};Ms.default=qc});var Hc=m(Is=>{"use strict";u();Object.defineProperty(Is,"__esModule",{value:!0});var kS=O("path"),FS=Cn(),jc=class{constructor(e={}){this._options=e,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,kS.sep),this.fsScandirSettings=new FS.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Is.default=jc});var qs=m(Ve=>{"use strict";u();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Settings=Ve.walkStream=Ve.walkSync=Ve.walk=void 0;var Uc=Lc(),LS=Mc(),NS=$c(),Bs=Hc();Ve.Settings=Bs.default;function MS(t,e,r){if(typeof e=="function"){new Uc.default(t,kn()).read(e);return}new Uc.default(t,kn(e)).read(r)}Ve.walk=MS;function IS(t,e){let r=kn(e);return new NS.default(t,r).read()}Ve.walkSync=IS;function BS(t,e){let r=kn(e);return new LS.default(t,r).read()}Ve.walkStream=BS;function kn(t={}){return t instanceof Bs.default?t:new Bs.default(t)}});var js=m($s=>{"use strict";u();Object.defineProperty($s,"__esModule",{value:!0});var qS=O("path"),$S=xt(),Wc=et(),Gc=class{constructor(e){this._settings=e,this._fsStatSettings=new $S.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return qS.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Wc.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Wc.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};$s.default=Gc});var Us=m(Hs=>{"use strict";u();Object.defineProperty(Hs,"__esModule",{value:!0});var jS=O("stream"),HS=xt(),US=qs(),WS=js(),Vc=class extends WS.default{constructor(){super(...arguments);this._walkStream=US.walkStream,this._stat=HS.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new jS.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Hs.default=Vc});var Kc=m(Ws=>{"use strict";u();Object.defineProperty(Ws,"__esModule",{value:!0});var Kt=et(),Yc=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Kt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Kt.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Kt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Kt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Kt.array.splitWhen(e,r=>r.dynamic&&Kt.pattern.hasGlobStar(r.pattern))}};Ws.default=Yc});var Qc=m(Gs=>{"use strict";u();Object.defineProperty(Gs,"__esModule",{value:!0});var GS=Kc(),Jc=class extends GS.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((l,f)=>{let c=s.segments[f];return!!(c.dynamic&&c.patternRe.test(l)||!c.dynamic&&c.pattern===l)}))return!0}return!1}};Gs.default=Jc});var Zc=m(Vs=>{"use strict";u();Object.defineProperty(Vs,"__esModule",{value:!0});var Fn=et(),VS=Qc(),Xc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new VS.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Fn.pattern.isAffectDepthOfReadingPattern);return Fn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Fn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Fn.pattern.matchAny(e,r)}};Vs.default=Xc});var ef=m(Ys=>{"use strict";u();Object.defineProperty(Ys,"__esModule",{value:!0});var wt=et(),zc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=wt.pattern.convertPatternsToRe(e,this._micromatchOptions),i=wt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(e.path,n);return this._settings.unique&&s&&this._createIndexRecord(e),s}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=wt.path.makeAbsolute(this._settings.cwd,e);return wt.pattern.matchAny(n,r)}_isMatchToPatterns(e,r){let n=wt.path.removeLeadingDotSegment(e);return wt.pattern.matchAny(n,r)||wt.pattern.matchAny(n+"/",r)}};Ys.default=zc});var rf=m(Ks=>{"use strict";u();Object.defineProperty(Ks,"__esModule",{value:!0});var YS=et(),tf=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return YS.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ks.default=tf});var of=m(Js=>{"use strict";u();Object.defineProperty(Js,"__esModule",{value:!0});var nf=et(),sf=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=nf.path.makeAbsolute(this._settings.cwd,r),r=nf.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Js.default=sf});var Ln=m(Qs=>{"use strict";u();Object.defineProperty(Qs,"__esModule",{value:!0});var KS=O("path"),JS=Zc(),QS=ef(),XS=rf(),ZS=of(),af=class{constructor(e){this._settings=e,this.errorFilter=new XS.default(this._settings),this.entryFilter=new QS.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new JS.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new ZS.default(this._settings)}_getRootDirectory(e){return KS.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Qs.default=af});var lf=m(Xs=>{"use strict";u();Object.defineProperty(Xs,"__esModule",{value:!0});var zS=Us(),eE=Ln(),uf=class extends eE.default{constructor(){super(...arguments);this._reader=new zS.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=[];return new Promise((s,o)=>{let a=this.api(r,e,n);a.once("error",o),a.on("data",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Xs.default=uf});var ff=m(Zs=>{"use strict";u();Object.defineProperty(Zs,"__esModule",{value:!0});var tE=O("stream"),rE=Us(),nE=Ln(),cf=class extends nE.default{constructor(){super(...arguments);this._reader=new rE.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new tE.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Zs.default=cf});var df=m(zs=>{"use strict";u();Object.defineProperty(zs,"__esModule",{value:!0});var iE=xt(),sE=qs(),oE=js(),hf=class extends oE.default{constructor(){super(...arguments);this._walkSync=sE.walkSync,this._statSync=iE.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};zs.default=hf});var mf=m(eo=>{"use strict";u();Object.defineProperty(eo,"__esModule",{value:!0});var aE=df(),uE=Ln(),pf=class extends uE.default{constructor(){super(...arguments);this._reader=new aE.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};eo.default=pf});var _f=m(Qt=>{"use strict";u();Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Jt=O("fs"),lE=O("os"),cE=Math.max(lE.cpus().length,1);Qt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Jt.lstat,lstatSync:Jt.lstatSync,stat:Jt.stat,statSync:Jt.statSync,readdir:Jt.readdir,readdirSync:Jt.readdirSync};var gf=class{constructor(e={}){this._options=e,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,cE),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)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Qt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Qt.default=gf});var io=m((uC,Ef)=>{"use strict";u();var yf=Yl(),Sf=Jl(),fE=lf(),hE=ff(),dE=mf(),to=_f(),Rt=et();async function ro(t,e){Xt(t);let r=no(t,fE.default,e),n=await Promise.all(r);return Rt.array.flatten(n)}(function(t){function e(o,a){Xt(o);let l=no(o,dE.default,a);return Rt.array.flatten(l)}t.sync=e;function r(o,a){Xt(o);let l=no(o,hE.default,a);return Rt.stream.merge(l)}t.stream=r;function n(o,a){Xt(o);let l=Sf.transform([].concat(o)),f=new to.default(a);return yf.generate(l,f)}t.generateTasks=n;function i(o,a){Xt(o);let l=new to.default(a);return Rt.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=i;function s(o){return Xt(o),Rt.path.escape(o)}t.escapePath=s})(ro||(ro={}));function no(t,e,r){let n=Sf.transform([].concat(t)),i=new to.default(r),s=yf.generate(n,i),o=new e(i);return s.map(o.read,o)}function Xt(t){if(![].concat(t).every(n=>Rt.string.isString(n)&&!Rt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ef.exports=ro});var bf=m((lC,so)=>{"use strict";u();var vf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};so.exports=vf;so.exports.default=vf});var wf=m((cC,Mn)=>{"use strict";u();var pE=bf(),Nn=new WeakMap,xf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Nn.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return pE(s,t),Nn.set(s,n),s};Mn.exports=xf;Mn.exports.default=xf;Mn.exports.callCount=t=>{if(!Nn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Nn.get(t)}});var Rf=m((fC,In)=>{u();In.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&In.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&In.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Pf=m((hC,er)=>{u();var Z=global.process,At=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};At(Z)?(Af=O("assert"),Zt=Rf(),Of=/^win/i.test(Z.platform),br=O("events"),typeof br!="function"&&(br=br.EventEmitter),Z.__signal_exit_emitter__?ae=Z.__signal_exit_emitter__:(ae=Z.__signal_exit_emitter__=new br,ae.count=0,ae.emitted={}),ae.infinite||(ae.setMaxListeners(1/0),ae.infinite=!0),er.exports=function(t,e){if(!At(global.process))return function(){};Af.equal(typeof t,"function","a callback must be provided for exit handler"),zt===!1&&oo();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ae.removeListener(r,t),ae.listeners("exit").length===0&&ae.listeners("afterexit").length===0&&Bn()};return ae.on(r,t),n},Bn=function(){!zt||!At(global.process)||(zt=!1,Zt.forEach(function(e){try{Z.removeListener(e,qn[e])}catch{}}),Z.emit=$n,Z.reallyExit=ao,ae.count-=1)},er.exports.unload=Bn,Ot=function(e,r,n){ae.emitted[e]||(ae.emitted[e]=!0,ae.emit(e,r,n))},qn={},Zt.forEach(function(t){qn[t]=function(){if(!!At(global.process)){var r=Z.listeners(t);r.length===ae.count&&(Bn(),Ot("exit",null,t),Ot("afterexit",null,t),Of&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),er.exports.signals=function(){return Zt},zt=!1,oo=function(){zt||!At(global.process)||(zt=!0,ae.count+=1,Zt=Zt.filter(function(e){try{return Z.on(e,qn[e]),!0}catch{return!1}}),Z.emit=Tf,Z.reallyExit=Cf)},er.exports.load=oo,ao=Z.reallyExit,Cf=function(e){!At(global.process)||(Z.exitCode=e||0,Ot("exit",Z.exitCode,null),Ot("afterexit",Z.exitCode,null),ao.call(Z,Z.exitCode))},$n=Z.emit,Tf=function(e,r){if(e==="exit"&&At(global.process)){r!==void 0&&(Z.exitCode=r);var n=$n.apply(this,arguments);return Ot("exit",Z.exitCode,null),Ot("afterexit",Z.exitCode,null),n}else return $n.apply(this,arguments)}):er.exports=function(){return function(){}};var Af,Zt,Of,br,ae,Bn,Ot,qn,zt,oo,ao,Cf,$n,Tf});var Nf=m((yC,_E)=>{_E.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var Bf=m((SC,If)=>{"use strict";u();var Hn=Object.assign({},Nf()),Mf=Object.keys(Hn);Object.defineProperty(Hn,"random",{get(){let t=Math.floor(Math.random()*Mf.length),e=Mf[t];return Hn[e]}});If.exports=Hn});var qf=m((OC,Un)=>{u();var vE=function(){"use strict";function t(o,a,l,f){var c;typeof a=="object"&&(l=a.depth,f=a.prototype,c=a.filter,a=a.circular);var h=[],d=[],v=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function g(E,b){if(E===null)return null;if(b==0)return E;var R,P;if(typeof E!="object")return E;if(t.__isArray(E))R=[];else if(t.__isRegExp(E))R=new RegExp(E.source,s(E)),E.lastIndex&&(R.lastIndex=E.lastIndex);else if(t.__isDate(E))R=new Date(E.getTime());else{if(v&&Buffer.isBuffer(E))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(E.length):R=new Buffer(E.length),E.copy(R),R;typeof f>"u"?(P=Object.getPrototypeOf(E),R=Object.create(P)):(R=Object.create(f),P=f)}if(a){var B=h.indexOf(E);if(B!=-1)return d[B];h.push(E),d.push(R)}for(var Q in E){var F;P&&(F=Object.getOwnPropertyDescriptor(P,Q)),!(F&&F.set==null)&&(R[Q]=g(E[Q],b-1))}return R}return g(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Un=="object"&&Un.exports&&(Un.exports=vE)});var jf=m((CC,$f)=>{u();var bE=qf();$f.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=bE(e[r]))}),t}});var Uf=m((TC,Hf)=>{u();Hf.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Yf=m((PC,fo)=>{"use strict";u();var xE=jf(),Rr=Uf(),Gf={nul:0,control:0};fo.exports=function(e){return Vf(e,Gf)};fo.exports.config=function(t){return t=xE(t||{},Gf),function(r){return Vf(r,t)}};function Vf(t,e){if(typeof t!="string")return Wf(t,e);for(var r=0,n=0;n<t.length;n++){var i=Wf(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function Wf(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:wE(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function wE(t){var e=0,r=Rr.length-1,n;if(t<Rr[0][0]||t>Rr[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Rr[n][1])e=n+1;else if(t<Rr[n][0])r=n-1;else return!0;return!1}});var po=m((kC,Kf)=>{u();Kf.exports=O("stream")});var Zf=m((FC,Xf)=>{"use strict";u();function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function RE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jf(Object(r),!0).forEach(function(n){AE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function CE(t,e,r){return e&&Qf(t.prototype,e),r&&Qf(t,r),t}var TE=O("buffer"),Wn=TE.Buffer,PE=O("util"),mo=PE.inspect,DE=mo&&mo.custom||"inspect";function kE(t,e,r){Wn.prototype.copy.call(t,e,r)}Xf.exports=function(){function t(){OE(this,t),this.head=null,this.tail=null,this.length=0}return CE(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Wn.alloc(0);for(var n=Wn.allocUnsafe(r>>>0),i=this.head,s=0;i;)kE(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Wn.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:DE,value:function(r,n){return mo(this,RE({},n,{depth:0,customInspect:!1}))}}]),t}()});var _o=m((LC,eh)=>{"use strict";u();function FE(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(go,this,t)):process.nextTick(go,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Gn,r):(r._writableState.errorEmitted=!0,process.nextTick(zf,r,s)):process.nextTick(zf,r,s):e?(process.nextTick(Gn,r),e(s)):process.nextTick(Gn,r)}),this)}function zf(t,e){go(t,e),Gn(t)}function Gn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function LE(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function go(t,e){t.emit("error",e)}function NE(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}eh.exports={destroy:FE,undestroy:LE,errorOrDestroy:NE}});var lt=m((NC,nh)=>{"use strict";u();var rh={};function Ce(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,rh[t]=i}function th(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function ME(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function IE(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function BE(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Ce("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ce("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&ME(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(IE(t," argument"))i=`The ${t} ${n} ${th(e,"type")}`;else{let s=BE(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${th(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);Ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ce("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ce("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ce("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ce("ERR_STREAM_WRITE_AFTER_END","write after end");Ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ce("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");nh.exports.codes=rh});var yo=m((MC,ih)=>{"use strict";u();var qE=lt().codes.ERR_INVALID_OPT_VALUE;function $E(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function jE(t,e,r,n){var i=$E(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new qE(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ih.exports={getHighWaterMark:jE}});var sh=m((IC,So)=>{u();typeof Object.create=="function"?So.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:So.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ct=m((BC,vo)=>{u();try{if(Eo=O("util"),typeof Eo.inherits!="function")throw"";vo.exports=Eo.inherits}catch{vo.exports=sh()}var Eo});var ah=m((qC,oh)=>{u();oh.exports=O("util").deprecate});var wo=m(($C,dh)=>{"use strict";u();dh.exports=te;function lh(t){var e=this;this.next=null,this.entry=null,this.finish=function(){pv(e,t)}}var rr;te.WritableState=Or;var HE={deprecate:ah()},ch=po(),Yn=O("buffer").Buffer,UE=global.Uint8Array||function(){};function WE(t){return Yn.from(t)}function GE(t){return Yn.isBuffer(t)||t instanceof UE}var xo=_o(),VE=yo(),YE=VE.getHighWaterMark,ct=lt().codes,KE=ct.ERR_INVALID_ARG_TYPE,JE=ct.ERR_METHOD_NOT_IMPLEMENTED,QE=ct.ERR_MULTIPLE_CALLBACK,XE=ct.ERR_STREAM_CANNOT_PIPE,ZE=ct.ERR_STREAM_DESTROYED,zE=ct.ERR_STREAM_NULL_VALUES,ev=ct.ERR_STREAM_WRITE_AFTER_END,tv=ct.ERR_UNKNOWN_ENCODING,nr=xo.errorOrDestroy;Ct()(te,ch);function rv(){}function Or(t,e,r){rr=rr||Tt(),t=t||{},typeof r!="boolean"&&(r=e instanceof rr),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=YE(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){lv(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new lh(this)}Or.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Or.prototype,"buffer",{get:HE.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Vn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Vn=Function.prototype[Symbol.hasInstance],Object.defineProperty(te,Symbol.hasInstance,{value:function(e){return Vn.call(this,e)?!0:this!==te?!1:e&&e._writableState instanceof Or}})):Vn=function(e){return e instanceof this};function te(t){rr=rr||Tt();var e=this instanceof rr;if(!e&&!Vn.call(te,this))return new te(t);this._writableState=new Or(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ch.call(this)}te.prototype.pipe=function(){nr(this,new XE)};function nv(t,e){var r=new ev;nr(t,r),process.nextTick(e,r)}function iv(t,e,r,n){var i;return r===null?i=new zE:typeof r!="string"&&!e.objectMode&&(i=new KE("chunk",["string","Buffer"],r)),i?(nr(t,i),process.nextTick(n,i),!1):!0}te.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&GE(t);return s&&!Yn.isBuffer(t)&&(t=WE(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=rv),n.ending?nv(this,r):(s||iv(this,n,t,r))&&(n.pendingcb++,i=ov(this,n,s,t,e,r)),i};te.prototype.cork=function(){this._writableState.corked++};te.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&fh(this,t))};te.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new tv(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function sv(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Yn.from(e,r)),e}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ov(t,e,r,n,i,s){if(!r){var o=sv(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else bo(t,e,!1,a,n,i,s);return l}function bo(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new ZE("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function av(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ar,t,e),t._writableState.errorEmitted=!0,nr(t,n)):(i(n),t._writableState.errorEmitted=!0,nr(t,n),Ar(t,e))}function uv(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function lv(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new QE;if(uv(r),e)av(t,r,n,e,i);else{var s=hh(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&fh(t,r),n?process.nextTick(uh,t,r,s,i):uh(t,r,s,i)}}function uh(t,e,r,n){r||cv(t,e),e.pendingcb--,n(),Ar(t,e)}function cv(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function fh(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,bo(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new lh(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,c=r.callback,h=e.objectMode?1:l.length;if(bo(t,e,!1,h,l,f,c),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}te.prototype._write=function(t,e,r){r(new JE("_write()"))};te.prototype._writev=null;te.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||dv(this,n,r),this};Object.defineProperty(te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hh(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function fv(t,e){t._final(function(r){e.pendingcb--,r&&nr(t,r),e.prefinished=!0,t.emit("prefinish"),Ar(t,e)})}function hv(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(fv,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ar(t,e){var r=hh(e);if(r&&(hv(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function dv(t,e,r){e.ending=!0,Ar(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function pv(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(te.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});te.prototype.destroy=xo.destroy;te.prototype._undestroy=xo.undestroy;te.prototype._destroy=function(t,e){e(t)}});var Tt=m((jC,mh)=>{"use strict";u();var mv=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};mh.exports=Ye;var ph=Oo(),Ao=wo();Ct()(Ye,ph);for(Ro=mv(Ao.prototype),Kn=0;Kn<Ro.length;Kn++)Jn=Ro[Kn],Ye.prototype[Jn]||(Ye.prototype[Jn]=Ao.prototype[Jn]);var Ro,Jn,Kn;function Ye(t){if(!(this instanceof Ye))return new Ye(t);ph.call(this,t),Ao.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",gv)))}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function gv(){this._writableState.ended||process.nextTick(_v,this)}function _v(t){t.end()}Object.defineProperty(Ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var yh=m((Co,_h)=>{u();var Qn=O("buffer"),Ke=Qn.Buffer;function gh(t,e){for(var r in t)e[r]=t[r]}Ke.from&&Ke.alloc&&Ke.allocUnsafe&&Ke.allocUnsafeSlow?_h.exports=Qn:(gh(Qn,Co),Co.Buffer=Pt);function Pt(t,e,r){return Ke(t,e,r)}Pt.prototype=Object.create(Ke.prototype);gh(Ke,Pt);Pt.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Ke(t,e,r)};Pt.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Ke(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Pt.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ke(t)};Pt.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Qn.SlowBuffer(t)}});var Do=m(Eh=>{"use strict";u();var Po=yh().Buffer,Sh=Po.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function yv(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Sv(t){var e=yv(t);if(typeof e!="string"&&(Po.isEncoding===Sh||!Sh(t)))throw new Error("Unknown encoding: "+t);return e||t}Eh.StringDecoder=Cr;function Cr(t){this.encoding=Sv(t);var e;switch(this.encoding){case"utf16le":this.text=Rv,this.end=Av,e=4;break;case"utf8":this.fillLast=bv,e=4;break;case"base64":this.text=Ov,this.end=Cv,e=3;break;default:this.write=Tv,this.end=Pv;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Po.allocUnsafe(e)}Cr.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Cr.prototype.end=wv;Cr.prototype.text=xv;Cr.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function To(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Ev(t,e,r){var n=e.length-1;if(n<r)return 0;var i=To(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=To(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=To(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function vv(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function bv(t){var e=this.lastTotal-this.lastNeed,r=vv(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function xv(t,e){var r=Ev(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function wv(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Rv(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Av(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Ov(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Cv(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Tv(t){return t.toString(this.encoding)}function Pv(t){return t&&t.length?this.write(t):""}});var Xn=m((UC,xh)=>{"use strict";u();var vh=lt().codes.ERR_STREAM_PREMATURE_CLOSE;function Dv(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function kv(){}function Fv(t){return t.setHeader&&typeof t.abort=="function"}function bh(t,e,r){if(typeof e=="function")return bh(t,null,e);e||(e={}),r=Dv(r||kv);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(t)},c=function(g){r.call(t,g)},h=function(){var g;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(g=new vh),r.call(t,g);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(g=new vh),r.call(t,g)},d=function(){t.req.on("finish",a)};return Fv(t)?(t.on("complete",a),t.on("abort",h),t.req?d():t.on("request",d)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",f),t.on("finish",a),e.error!==!1&&t.on("error",c),t.on("close",h),function(){t.removeListener("complete",a),t.removeListener("abort",h),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",f),t.removeListener("error",c),t.removeListener("close",h)}}xh.exports=bh});var Rh=m((WC,wh)=>{"use strict";u();var Zn;function ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Lv=Xn(),ht=Symbol("lastResolve"),Dt=Symbol("lastReject"),Tr=Symbol("error"),zn=Symbol("ended"),kt=Symbol("lastPromise"),ko=Symbol("handlePromise"),Ft=Symbol("stream");function dt(t,e){return{value:t,done:e}}function Nv(t){var e=t[ht];if(e!==null){var r=t[Ft].read();r!==null&&(t[kt]=null,t[ht]=null,t[Dt]=null,e(dt(r,!1)))}}function Mv(t){process.nextTick(Nv,t)}function Iv(t,e){return function(r,n){t.then(function(){if(e[zn]){r(dt(void 0,!0));return}e[ko](r,n)},n)}}var Bv=Object.getPrototypeOf(function(){}),qv=Object.setPrototypeOf((Zn={get stream(){return this[Ft]},next:function(){var e=this,r=this[Tr];if(r!==null)return Promise.reject(r);if(this[zn])return Promise.resolve(dt(void 0,!0));if(this[Ft].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Tr]?a(e[Tr]):o(dt(void 0,!0))})});var n=this[kt],i;if(n)i=new Promise(Iv(n,this));else{var s=this[Ft].read();if(s!==null)return Promise.resolve(dt(s,!1));i=new Promise(this[ko])}return this[kt]=i,i}},ft(Zn,Symbol.asyncIterator,function(){return this}),ft(Zn,"return",function(){var e=this;return new Promise(function(r,n){e[Ft].destroy(null,function(i){if(i){n(i);return}r(dt(void 0,!0))})})}),Zn),Bv),$v=function(e){var r,n=Object.create(qv,(r={},ft(r,Ft,{value:e,writable:!0}),ft(r,ht,{value:null,writable:!0}),ft(r,Dt,{value:null,writable:!0}),ft(r,Tr,{value:null,writable:!0}),ft(r,zn,{value:e._readableState.endEmitted,writable:!0}),ft(r,ko,{value:function(s,o){var a=n[Ft].read();a?(n[kt]=null,n[ht]=null,n[Dt]=null,s(dt(a,!1))):(n[ht]=s,n[Dt]=o)},writable:!0}),r));return n[kt]=null,Lv(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Dt];s!==null&&(n[kt]=null,n[ht]=null,n[Dt]=null,s(i)),n[Tr]=i;return}var o=n[ht];o!==null&&(n[kt]=null,n[ht]=null,n[Dt]=null,o(dt(void 0,!0))),n[zn]=!0}),e.on("readable",Mv.bind(null,n)),n};wh.exports=$v});var Th=m((GC,Ch)=>{"use strict";u();function Ah(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(f){r(f);return}a.done?e(l):Promise.resolve(l).then(n,i)}function jv(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){Ah(s,n,i,o,a,"next",l)}function a(l){Ah(s,n,i,o,a,"throw",l)}o(void 0)})}}function Oh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oh(Object(r),!0).forEach(function(n){Uv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Uv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wv=lt().codes.ERR_INVALID_ARG_TYPE;function Gv(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Wv("iterable",["Iterable"],e);var i=new t(Hv({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=jv(function*(){try{var l=yield n.next(),f=l.value,c=l.done;c?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}Ch.exports=Gv});var Oo=m((YC,qh)=>{"use strict";u();qh.exports=H;var ir;H.ReadableState=Fh;var VC=O("events").EventEmitter,kh=function(e,r){return e.listeners(r).length},Dr=po(),ei=O("buffer").Buffer,Vv=global.Uint8Array||function(){};function Yv(t){return ei.from(t)}function Kv(t){return ei.isBuffer(t)||t instanceof Vv}var Fo=O("util"),$;Fo&&Fo.debuglog?$=Fo.debuglog("stream"):$=function(){};var Jv=Zf(),$o=_o(),Qv=yo(),Xv=Qv.getHighWaterMark,ti=lt().codes,Zv=ti.ERR_INVALID_ARG_TYPE,zv=ti.ERR_STREAM_PUSH_AFTER_EOF,eb=ti.ERR_METHOD_NOT_IMPLEMENTED,tb=ti.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,sr,Lo,No;Ct()(H,Dr);var Pr=$o.errorOrDestroy,Mo=["error","close","destroy","pause","resume"];function rb(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Fh(t,e,r){ir=ir||Tt(),t=t||{},typeof r!="boolean"&&(r=e instanceof ir),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Xv(this,t,"readableHighWaterMark",r),this.buffer=new Jv,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(sr||(sr=Do().StringDecoder),this.decoder=new sr(t.encoding),this.encoding=t.encoding)}function H(t){if(ir=ir||Tt(),!(this instanceof H))return new H(t);var e=this instanceof ir;this._readableState=new Fh(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Dr.call(this)}Object.defineProperty(H.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});H.prototype.destroy=$o.destroy;H.prototype._undestroy=$o.undestroy;H.prototype._destroy=function(t,e){e(t)};H.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=ei.from(t,e),e=""),n=!0),Lh(this,t,e,!1,n)};H.prototype.unshift=function(t){return Lh(this,t,null,!0,!1)};function Lh(t,e,r,n,i){$("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,sb(t,s);else{var o;if(i||(o=nb(s,e)),o)Pr(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==ei.prototype&&(e=Yv(e)),n)s.endEmitted?Pr(t,new tb):Io(t,s,e,!0);else if(s.ended)Pr(t,new zv);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Io(t,s,e,!1):qo(t,s)):Io(t,s,e,!1)}else n||(s.reading=!1,qo(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Io(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&ri(t)),qo(t,e)}function nb(t,e){var r;return!Kv(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Zv("chunk",["string","Buffer","Uint8Array"],e)),r}H.prototype.isPaused=function(){return this._readableState.flowing===!1};H.prototype.setEncoding=function(t){sr||(sr=Do().StringDecoder);var e=new sr(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ph=1073741824;function ib(t){return t>=Ph?t=Ph:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Dh(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=ib(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}H.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Bo(this):ri(this),null;if(t=Dh(t,e),t===0&&e.ended)return e.length===0&&Bo(this),null;var n=e.needReadable;$("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,$("length less than watermark",n)),e.ended||e.reading?(n=!1,$("reading or ended",n)):n&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Dh(r,e)));var i;return t>0?i=Ih(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Bo(this)),i!==null&&this.emit("data",i),i};function sb(t,e){if($("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?ri(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Nh(t)))}}function ri(t){var e=t._readableState;$("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Nh,t))}function Nh(t){var e=t._readableState;$("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,jo(t)}function qo(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(ob,t,e))}function ob(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if($("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}H.prototype._read=function(t){Pr(this,new eb("_read()"))};H.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,$("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:E;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(b,R){$("onunpipe"),b===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,c())}function a(){$("onend"),t.end()}var l=ab(r);t.on("drain",l);var f=!1;function c(){$("cleanup"),t.removeListener("close",v),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",h),f=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",h);function h(b){$("ondata");var R=t.write(b);$("dest.write",R),R===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Bh(n.pipes,t)!==-1)&&!f&&($("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(b){$("onerror",b),E(),t.removeListener("error",d),kh(t,"error")===0&&Pr(t,b)}rb(t,"error",d);function v(){t.removeListener("finish",g),E()}t.once("close",v);function g(){$("onfinish"),t.removeListener("close",v),E()}t.once("finish",g);function E(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||($("pipe resume"),r.resume()),t};function ab(t){return function(){var r=t._readableState;$("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&kh(t,"data")&&(r.flowing=!0,jo(t))}}H.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Bh(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};H.prototype.on=function(t,e){var r=Dr.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,$("on readable",n.length,n.reading),n.length?ri(this):n.reading||process.nextTick(ub,this)),r};H.prototype.addListener=H.prototype.on;H.prototype.removeListener=function(t,e){var r=Dr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Mh,this),r};H.prototype.removeAllListeners=function(t){var e=Dr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Mh,this),e};function Mh(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function ub(t){$("readable nexttick read 0"),t.read(0)}H.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!t.readableListening,lb(this,t)),t.paused=!1,this};function lb(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(cb,t,e))}function cb(t,e){$("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),jo(t),e.flowing&&!e.reading&&t.read(0)}H.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function jo(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}H.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var s=0;s<Mo.length;s++)t.on(Mo[s],this.emit.bind(this,Mo[s]));return this._read=function(o){$("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(H.prototype[Symbol.asyncIterator]=function(){return Lo===void 0&&(Lo=Rh()),Lo(this)});Object.defineProperty(H.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(H.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(H.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});H._fromList=Ih;Object.defineProperty(H.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ih(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Bo(t){var e=t._readableState;$("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(fb,e,t))}function fb(t,e){if($("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(H.from=function(t,e){return No===void 0&&(No=Th()),No(H,t,e)});function Bh(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Ho=m((KC,jh)=>{"use strict";u();jh.exports=rt;var ni=lt().codes,hb=ni.ERR_METHOD_NOT_IMPLEMENTED,db=ni.ERR_MULTIPLE_CALLBACK,pb=ni.ERR_TRANSFORM_ALREADY_TRANSFORMING,mb=ni.ERR_TRANSFORM_WITH_LENGTH_0,ii=Tt();Ct()(rt,ii);function gb(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new db);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function rt(t){if(!(this instanceof rt))return new rt(t);ii.call(this,t),this._transformState={afterTransform:gb.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",_b)}function _b(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){$h(t,e,r)}):$h(this,null,null)}rt.prototype.push=function(t,e){return this._transformState.needTransform=!1,ii.prototype.push.call(this,t,e)};rt.prototype._transform=function(t,e,r){r(new hb("_transform()"))};rt.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};rt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};rt.prototype._destroy=function(t,e){ii.prototype._destroy.call(this,t,function(r){e(r)})};function $h(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new mb;if(t._transformState.transforming)throw new pb;return t.push(null)}});var Wh=m((JC,Uh)=>{"use strict";u();Uh.exports=kr;var Hh=Ho();Ct()(kr,Hh);function kr(t){if(!(this instanceof kr))return new kr(t);Hh.call(this,t)}kr.prototype._transform=function(t,e,r){r(null,t)}});var Jh=m((QC,Kh)=>{"use strict";u();var Uo;function yb(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Yh=lt().codes,Sb=Yh.ERR_MISSING_ARGS,Eb=Yh.ERR_STREAM_DESTROYED;function Gh(t){if(t)throw t}function vb(t){return t.setHeader&&typeof t.abort=="function"}function bb(t,e,r,n){n=yb(n);var i=!1;t.on("close",function(){i=!0}),Uo===void 0&&(Uo=Xn()),Uo(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,vb(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Eb("pipe"))}}}function Vh(t){t()}function xb(t,e){return t.pipe(e)}function wb(t){return!t.length||typeof t[t.length-1]!="function"?Gh:t.pop()}function Rb(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=wb(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Sb("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,f=a>0;return bb(o,l,f,function(c){i||(i=c),c&&s.forEach(Vh),!l&&(s.forEach(Vh),n(i))})});return e.reduce(xb)}Kh.exports=Rb});var Qh=m((Te,Lr)=>{u();var Fr=O("stream");process.env.READABLE_STREAM==="disable"&&Fr?(Lr.exports=Fr.Readable,Object.assign(Lr.exports,Fr),Lr.exports.Stream=Fr):(Te=Lr.exports=Oo(),Te.Stream=Fr||Te,Te.Readable=Te,Te.Writable=wo(),Te.Duplex=Tt(),Te.Transform=Ho(),Te.PassThrough=Wh(),Te.finished=Xn(),Te.pipeline=Jh())});var zh=m((XC,Zh)=>{"use strict";u();var{Buffer:Ne}=O("buffer"),Xh=Symbol.for("BufferList");function K(t){if(!(this instanceof K))return new K(t);K._init.call(this,t)}K._init=function(e){Object.defineProperty(this,Xh,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};K.prototype._new=function(e){return new K(e)};K.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};K.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};K.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};K.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};K.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Ne.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,f=s&&r||0,c=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ne.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(e,f),f+=this._bufs[h].length;return e}if(l<=this._bufs[o[0]].length-c)return s?this._bufs[o[0]].copy(e,r,c,c+l):this._bufs[o[0]].slice(c,c+l);s||(e=Ne.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let d=this._bufs[h].length-c;if(l>d)this._bufs[h].copy(e,f,c),f+=d;else{this._bufs[h].copy(e,f,c,c+l),f+=d;break}l-=d,c&&(c=0)}return e.length>f?e.slice(0,f):e};K.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};K.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};K.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};K.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};K.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Ne.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Ne.from(e));return this};K.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};K.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Ne.from([t]):typeof t=="string"?t=Ne.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Ne.from(t.buffer,t.byteOffset,t.byteLength):Ne.isBuffer(t)||(t=Ne.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};K.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?K.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:K.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();K.prototype._isBufferList=function(e){return e instanceof K||K.isBufferList(e)};K.isBufferList=function(e){return e!=null&&e[Xh]};Zh.exports=K});var ed=m((ZC,si)=>{"use strict";u();var Wo=Qh().Duplex,Ab=Ct(),Nr=zh();function he(t){if(!(this instanceof he))return new he(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}Nr._init.call(this,t),Wo.call(this)}Ab(he,Wo);Object.assign(he.prototype,Nr.prototype);he.prototype._new=function(e){return new he(e)};he.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};he.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};he.prototype.end=function(e){Wo.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};he.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};he.prototype._isBufferList=function(e){return e instanceof he||e instanceof Nr||he.isBufferList(e)};he.isBufferList=Nr.isBufferList;si.exports=he;si.exports.BufferListStream=he;si.exports.BufferList=Nr});var ye=m(ua=>{"use strict";u();ua.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};ua.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var Td=m((x1,Cd)=>{u();var pt=O("constants"),Ix=process.cwd,mi=null,Bx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return mi||(mi=Ix.call(process)),mi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(la=process.chdir,process.chdir=function(t){mi=null,la.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,la));var la;Cd.exports=qx;function qx(t){pt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.lchmod||(t.lchmod=function(c,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.lchown||(t.lchown=function(c,h,d,v){v&&process.nextTick(v)},t.lchownSync=function(){}),Bx==="win32"&&(t.rename=function(c){return function(h,d,v){var g=Date.now(),E=0;c(h,d,function b(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-g<6e4){setTimeout(function(){t.stat(d,function(P,B){P&&P.code==="ENOENT"?c(h,d,b):v(R)})},E),E<100&&(E+=10);return}v&&v(R)})}}(t.rename)),t.read=function(c){function h(d,v,g,E,b,R){var P;if(R&&typeof R=="function"){var B=0;P=function(Q,F,U){if(Q&&Q.code==="EAGAIN"&&B<10)return B++,c.call(t,d,v,g,E,b,P);R.apply(this,arguments)}}return c.call(t,d,v,g,E,b,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h}(t.read),t.readSync=function(c){return function(h,d,v,g,E){for(var b=0;;)try{return c.call(t,h,d,v,g,E)}catch(R){if(R.code==="EAGAIN"&&b<10){b++;continue}throw R}}}(t.readSync);function e(c){c.lchmod=function(h,d,v){c.open(h,pt.O_WRONLY|pt.O_SYMLINK,d,function(g,E){if(g){v&&v(g);return}c.fchmod(E,d,function(b){c.close(E,function(R){v&&v(b||R)})})})},c.lchmodSync=function(h,d){var v=c.openSync(h,pt.O_WRONLY|pt.O_SYMLINK,d),g=!0,E;try{E=c.fchmodSync(v,d),g=!1}finally{if(g)try{c.closeSync(v)}catch{}else c.closeSync(v)}return E}}function r(c){pt.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(h,d,v,g){c.open(h,pt.O_SYMLINK,function(E,b){if(E){g&&g(E);return}c.futimes(b,d,v,function(R){c.close(b,function(P){g&&g(R||P)})})})},c.lutimesSync=function(h,d,v){var g=c.openSync(h,pt.O_SYMLINK),E,b=!0;try{E=c.futimesSync(g,d,v),b=!1}finally{if(b)try{c.closeSync(g)}catch{}else c.closeSync(g)}return E}):(c.lutimes=function(h,d,v,g){g&&process.nextTick(g)},c.lutimesSync=function(){})}function n(c){return c&&function(h,d,v){return c.call(t,h,d,function(g){f(g)&&(g=null),v&&v.apply(this,arguments)})}}function i(c){return c&&function(h,d){try{return c.call(t,h,d)}catch(v){if(!f(v))throw v}}}function s(c){return c&&function(h,d,v,g){return c.call(t,h,d,v,function(E){f(E)&&(E=null),g&&g.apply(this,arguments)})}}function o(c){return c&&function(h,d,v){try{return c.call(t,h,d,v)}catch(g){if(!f(g))throw g}}}function a(c){return c&&function(h,d,v){typeof d=="function"&&(v=d,d=null);function g(E,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),v&&v.apply(this,arguments)}return d?c.call(t,h,d,g):c.call(t,h,g)}}function l(c){return c&&function(h,d){var v=d?c.call(t,h,d):c.call(t,h);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function f(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var kd=m((w1,Dd)=>{u();var Pd=O("stream").Stream;Dd.exports=$x;function $x(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);Pd.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var f=o[a];this[f]=i[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,h){if(c){s.emit("error",c),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Pd.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ld=m((R1,Fd)=>{"use strict";u();Fd.exports=Hx;var jx=Object.getPrototypeOf||function(t){return t.__proto__};function Hx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:jx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var me=m((A1,ha)=>{u();var ee=O("fs"),Ux=Td(),Wx=kd(),Gx=Ld(),gi=O("util"),le,yi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(le=Symbol.for("graceful-fs.queue"),yi=Symbol.for("graceful-fs.previous")):(le="___graceful-fs.queue",yi="___graceful-fs.previous");function Vx(){}function Id(t,e){Object.defineProperty(t,le,{get:function(){return e}})}var Mt=Vx;gi.debuglog?Mt=gi.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Mt=function(){var t=gi.format.apply(gi,arguments);t="GFS4: "+t.split(/\n/).join(`
24
- GFS4: `),console.error(t)});ee[le]||(Nd=global[le]||[],Id(ee,Nd),ee.close=function(t){function e(r,n){return t.call(ee,r,function(i){i||Md(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,yi,{value:t}),e}(ee.close),ee.closeSync=function(t){function e(r){t.apply(ee,arguments),Md()}return Object.defineProperty(e,yi,{value:t}),e}(ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Mt(ee[le]),O("assert").equal(ee[le].length,0)}));var Nd;global[le]||Id(global,ee[le]);ha.exports=ca(Gx(ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ee.__patched&&(ha.exports=ca(ee),ee.__patched=!0);function ca(t){Ux(t),t.gracefulify=ca,t.createReadStream=Q,t.createWriteStream=F;var e=t.readFile;t.readFile=r;function r(x,T,w){return typeof T=="function"&&(w=T,T=null),y(x,T,w);function y(L,k,W,S){return e(L,k,function(_){_&&(_.code==="EMFILE"||_.code==="ENFILE")?fr([y,[L,k,W],_,S||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(x,T,w,y){return typeof w=="function"&&(y=w,w=null),L(x,T,w,y);function L(k,W,S,_,G){return n(k,W,S,function(D){D&&(D.code==="EMFILE"||D.code==="ENFILE")?fr([L,[k,W,S,_],D,G||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,T,w,y){return typeof w=="function"&&(y=w,w=null),L(x,T,w,y);function L(k,W,S,_,G){return s(k,W,S,function(D){D&&(D.code==="EMFILE"||D.code==="ENFILE")?fr([L,[k,W,S,_],D,G||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(x,T,w,y){return typeof w=="function"&&(y=w,w=0),L(x,T,w,y);function L(k,W,S,_,G){return a(k,W,S,function(D){D&&(D.code==="EMFILE"||D.code==="ENFILE")?fr([L,[k,W,S,_],D,G||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}var f=t.readdir;t.readdir=c;function c(x,T,w){return typeof T=="function"&&(w=T,T=null),y(x,T,w);function y(L,k,W,S){return f(L,k,function(_,G){_&&(_.code==="EMFILE"||_.code==="ENFILE")?fr([y,[L,k,W],_,S||Date.now(),Date.now()]):(G&&G.sort&&G.sort(),typeof W=="function"&&W.call(this,_,G))})}}if(process.version.substr(0,4)==="v0.8"){var h=Wx(t);b=h.ReadStream,P=h.WriteStream}var d=t.ReadStream;d&&(b.prototype=Object.create(d.prototype),b.prototype.open=R);var v=t.WriteStream;v&&(P.prototype=Object.create(v.prototype),P.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return P},set:function(x){P=x},enumerable:!0,configurable:!0});var g=b;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(x){g=x},enumerable:!0,configurable:!0});var E=P;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});function b(x,T){return this instanceof b?(d.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function R(){var x=this;N(x.path,x.flags,x.mode,function(T,w){T?(x.autoClose&&x.destroy(),x.emit("error",T)):(x.fd=w,x.emit("open",w),x.read())})}function P(x,T){return this instanceof P?(v.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function B(){var x=this;N(x.path,x.flags,x.mode,function(T,w){T?(x.destroy(),x.emit("error",T)):(x.fd=w,x.emit("open",w))})}function Q(x,T){return new t.ReadStream(x,T)}function F(x,T){return new t.WriteStream(x,T)}var U=t.open;t.open=N;function N(x,T,w,y){return typeof w=="function"&&(y=w,w=null),L(x,T,w,y);function L(k,W,S,_,G){return U(k,W,S,function(D,ke){D&&(D.code==="EMFILE"||D.code==="ENFILE")?fr([L,[k,W,S,_],D,G||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}return t}function fr(t){Mt("ENQUEUE",t[0].name,t[1]),ee[le].push(t),fa()}var _i;function Md(){for(var t=Date.now(),e=0;e<ee[le].length;++e)ee[le][e].length>2&&(ee[le][e][3]=t,ee[le][e][4]=t);fa()}function fa(){if(clearTimeout(_i),_i=void 0,ee[le].length!==0){var t=ee[le].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Mt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Mt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,l=Math.max(s-i,1),f=Math.min(l*1.2,100);a>=f?(Mt("RETRY",e.name,r),e.apply(null,r.concat([i]))):ee[le].push(t)}_i===void 0&&(_i=setTimeout(fa,0))}}});var It=m(mt=>{"use strict";u();var Bd=ye().fromCallback,we=me(),Yx=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof we[t]=="function");Object.assign(mt,we);Yx.forEach(t=>{mt[t]=Bd(we[t])});mt.realpath.native=Bd(we.realpath.native);mt.exists=function(t,e){return typeof e=="function"?we.exists(t,e):new Promise(r=>we.exists(t,r))};mt.read=function(t,e,r,n,i,s){return typeof s=="function"?we.read(t,e,r,n,i,s):new Promise((o,a)=>{we.read(t,e,r,n,i,(l,f,c)=>{if(l)return a(l);o({bytesRead:f,buffer:c})})})};mt.write=function(t,e,...r){return typeof r[r.length-1]=="function"?we.write(t,e,...r):new Promise((n,i)=>{we.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof we.writev=="function"&&(mt.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?we.writev(t,e,...r):new Promise((n,i)=>{we.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})})});var $d=m((C1,qd)=>{"use strict";u();var Kx=O("path");qd.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Kx.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var Wd=m((T1,da)=>{"use strict";u();var jd=It(),{checkPath:Hd}=$d(),Ud=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};da.exports.makeDir=async(t,e)=>(Hd(t),jd.mkdir(t,{mode:Ud(e),recursive:!0}));da.exports.makeDirSync=(t,e)=>(Hd(t),jd.mkdirSync(t,{mode:Ud(e),recursive:!0}))});var Be=m((P1,Gd)=>{"use strict";u();var Jx=ye().fromPromise,{makeDir:Qx,makeDirSync:pa}=Wd(),ma=Jx(Qx);Gd.exports={mkdirs:ma,mkdirsSync:pa,mkdirp:ma,mkdirpSync:pa,ensureDir:ma,ensureDirSync:pa}});var gt=m((D1,Yd)=>{"use strict";u();var Xx=ye().fromPromise,Vd=It();function Zx(t){return Vd.access(t).then(()=>!0).catch(()=>!1)}Yd.exports={pathExists:Xx(Zx),pathExistsSync:Vd.existsSync}});var ga=m((k1,Kd)=>{"use strict";u();var hr=me();function zx(t,e,r,n){hr.open(t,"r+",(i,s)=>{if(i)return n(i);hr.futimes(s,e,r,o=>{hr.close(s,a=>{n&&n(o||a)})})})}function ew(t,e,r){let n=hr.openSync(t,"r+");return hr.futimesSync(n,e,r),hr.closeSync(n)}Kd.exports={utimesMillis:zx,utimesMillisSync:ew}});var Bt=m((F1,Xd)=>{"use strict";u();var dr=It(),ue=O("path"),tw=O("util");function rw(t,e,r){let n=r.dereference?i=>dr.stat(i,{bigint:!0}):i=>dr.lstat(i,{bigint:!0});return Promise.all([n(t),n(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function nw(t,e,r){let n,i=r.dereference?o=>dr.statSync(o,{bigint:!0}):o=>dr.lstatSync(o,{bigint:!0}),s=i(t);try{n=i(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function iw(t,e,r,n,i){tw.callbackify(rw)(t,e,n,(s,o)=>{if(s)return i(s);let{srcStat:a,destStat:l}=o;if(l){if(jr(a,l)){let f=ue.basename(t),c=ue.basename(e);return r==="move"&&f!==c&&f.toLowerCase()===c.toLowerCase()?i(null,{srcStat:a,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!a.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return a.isDirectory()&&_a(t,e)?i(new Error(Si(t,e,r))):i(null,{srcStat:a,destStat:l})})}function sw(t,e,r,n){let{srcStat:i,destStat:s}=nw(t,e,n);if(s){if(jr(i,s)){let o=ue.basename(t),a=ue.basename(e);if(r==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(i.isDirectory()&&_a(t,e))throw new Error(Si(t,e,r));return{srcStat:i,destStat:s}}function Jd(t,e,r,n,i){let s=ue.resolve(ue.dirname(t)),o=ue.resolve(ue.dirname(r));if(o===s||o===ue.parse(o).root)return i();dr.stat(o,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?i():i(a):jr(e,l)?i(new Error(Si(t,r,n))):Jd(t,e,o,n,i))}function Qd(t,e,r,n){let i=ue.resolve(ue.dirname(t)),s=ue.resolve(ue.dirname(r));if(s===i||s===ue.parse(s).root)return;let o;try{o=dr.statSync(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(jr(e,o))throw new Error(Si(t,r,n));return Qd(t,e,s,n)}function jr(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function _a(t,e){let r=ue.resolve(t).split(ue.sep).filter(i=>i),n=ue.resolve(e).split(ue.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Si(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Xd.exports={checkPaths:iw,checkPathsSync:sw,checkParentPaths:Jd,checkParentPathsSync:Qd,isSrcSubdir:_a,areIdentical:jr}});var sp=m((L1,ip)=>{"use strict";u();var Se=me(),Hr=O("path"),ow=Be().mkdirs,aw=gt().pathExists,uw=ga().utimesMillis,Ur=Bt();function lw(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
25
-
26
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Ur.checkPaths(t,e,"copy",r,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Ur.checkParentPaths(t,o,e,"copy",l=>l?n(l):r.filter?ep(Zd,a,t,e,r,n):Zd(a,t,e,r,n))})}function Zd(t,e,r,n,i){let s=Hr.dirname(r);aw(s,(o,a)=>{if(o)return i(o);if(a)return Ei(t,e,r,n,i);ow(s,l=>l?i(l):Ei(t,e,r,n,i))})}function ep(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function cw(t,e,r,n,i){return n.filter?ep(Ei,t,e,r,n,i):Ei(t,e,r,n,i)}function Ei(t,e,r,n,i){(n.dereference?Se.stat:Se.lstat)(e,(o,a)=>o?i(o):a.isDirectory()?_w(a,t,e,r,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?fw(a,t,e,r,n,i):a.isSymbolicLink()?Ew(t,e,r,n,i):a.isSocket()?i(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${e}`)):i(new Error(`Unknown file: ${e}`)))}function fw(t,e,r,n,i,s){return e?hw(t,r,n,i,s):tp(t,r,n,i,s)}function hw(t,e,r,n,i){if(n.overwrite)Se.unlink(r,s=>s?i(s):tp(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function tp(t,e,r,n,i){Se.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?dw(t.mode,e,r,i):vi(r,t.mode,i))}function dw(t,e,r,n){return pw(t)?mw(r,t,i=>i?n(i):zd(t,e,r,n)):zd(t,e,r,n)}function pw(t){return(t&128)===0}function mw(t,e,r){return vi(t,e|128,r)}function zd(t,e,r,n){gw(e,r,i=>i?n(i):vi(r,t,n))}function vi(t,e,r){return Se.chmod(t,e,r)}function gw(t,e,r){Se.stat(t,(n,i)=>n?r(n):uw(e,i.atime,i.mtime,r))}function _w(t,e,r,n,i,s){return e?rp(r,n,i,s):yw(t.mode,r,n,i,s)}function yw(t,e,r,n,i){Se.mkdir(r,s=>{if(s)return i(s);rp(e,r,n,o=>o?i(o):vi(r,t,i))})}function rp(t,e,r,n){Se.readdir(t,(i,s)=>i?n(i):np(s,t,e,r,n))}function np(t,e,r,n,i){let s=t.pop();return s?Sw(t,s,e,r,n,i):i()}function Sw(t,e,r,n,i,s){let o=Hr.join(r,e),a=Hr.join(n,e);Ur.checkPaths(o,a,"copy",i,(l,f)=>{if(l)return s(l);let{destStat:c}=f;cw(c,o,a,i,h=>h?s(h):np(t,r,n,i,s))})}function Ew(t,e,r,n,i){Se.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Hr.resolve(process.cwd(),o)),t)Se.readlink(r,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Se.symlink(o,r,i):i(a):(n.dereference&&(l=Hr.resolve(process.cwd(),l)),Ur.isSrcSubdir(o,l)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${l}'.`)):t.isDirectory()&&Ur.isSrcSubdir(l,o)?i(new Error(`Cannot overwrite '${l}' with '${o}'.`)):vw(o,r,i)));else return Se.symlink(o,r,i)})}function vw(t,e,r){Se.unlink(e,n=>n?r(n):Se.symlink(t,e,r))}ip.exports=lw});var cp=m((N1,lp)=>{"use strict";u();var de=me(),Wr=O("path"),bw=Be().mkdirsSync,xw=ga().utimesMillisSync,Gr=Bt();function ww(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
27
-
28
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Gr.checkPathsSync(t,e,"copy",r);return Gr.checkParentPathsSync(t,n,e,"copy"),Rw(i,t,e,r)}function Rw(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Wr.dirname(r);return de.existsSync(i)||bw(i),op(t,e,r,n)}function Aw(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return op(t,e,r,n)}function op(t,e,r,n){let s=(n.dereference?de.statSync:de.lstatSync)(e);if(s.isDirectory())return Fw(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Ow(s,t,e,r,n);if(s.isSymbolicLink())return Mw(t,e,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function Ow(t,e,r,n,i){return e?Cw(t,r,n,i):ap(t,r,n,i)}function Cw(t,e,r,n){if(n.overwrite)return de.unlinkSync(r),ap(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function ap(t,e,r,n){return de.copyFileSync(e,r),n.preserveTimestamps&&Tw(t.mode,e,r),ya(r,t.mode)}function Tw(t,e,r){return Pw(t)&&Dw(r,t),kw(e,r)}function Pw(t){return(t&128)===0}function Dw(t,e){return ya(t,e|128)}function ya(t,e){return de.chmodSync(t,e)}function kw(t,e){let r=de.statSync(t);return xw(e,r.atime,r.mtime)}function Fw(t,e,r,n,i){return e?up(r,n,i):Lw(t.mode,r,n,i)}function Lw(t,e,r,n){return de.mkdirSync(r),up(e,r,n),ya(r,t)}function up(t,e,r){de.readdirSync(t).forEach(n=>Nw(n,t,e,r))}function Nw(t,e,r,n){let i=Wr.join(e,t),s=Wr.join(r,t),{destStat:o}=Gr.checkPathsSync(i,s,"copy",n);return Aw(o,i,s,n)}function Mw(t,e,r,n){let i=de.readlinkSync(e);if(n.dereference&&(i=Wr.resolve(process.cwd(),i)),t){let s;try{s=de.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return de.symlinkSync(i,r);throw o}if(n.dereference&&(s=Wr.resolve(process.cwd(),s)),Gr.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(de.statSync(r).isDirectory()&&Gr.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Iw(i,r)}else return de.symlinkSync(i,r)}function Iw(t,e){return de.unlinkSync(e),de.symlinkSync(t,e)}lp.exports=ww});var bi=m((M1,fp)=>{"use strict";u();var Bw=ye().fromCallback;fp.exports={copy:Bw(sp()),copySync:cp()}});var Ep=m((I1,Sp)=>{"use strict";u();var hp=me(),gp=O("path"),V=O("assert"),Vr=process.platform==="win32";function _p(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||hp[r],r=r+"Sync",t[r]=t[r]||hp[r]}),t.maxBusyTries=t.maxBusyTries||3}function Sa(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),V(t,"rimraf: missing path"),V.strictEqual(typeof t,"string","rimraf: path should be a string"),V.strictEqual(typeof r,"function","rimraf: callback function required"),V(e,"rimraf: invalid options argument provided"),V.strictEqual(typeof e,"object","rimraf: options should be object"),_p(e),dp(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>dp(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function dp(t,e,r){V(t),V(e),V(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Vr)return pp(t,e,n,r);if(i&&i.isDirectory())return xi(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Vr?pp(t,e,s,r):xi(t,e,s,r);if(s.code==="EISDIR")return xi(t,e,s,r)}return r(s)})})}function pp(t,e,r,n){V(t),V(e),V(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?xi(t,e,r,n):e.unlink(t,n)})})}function mp(t,e,r){let n;V(t),V(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?wi(t,e,r):e.unlinkSync(t)}function xi(t,e,r,n){V(t),V(e),V(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?qw(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function qw(t,e,r){V(t),V(e),V(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Sa(gp.join(t,a),e,l=>{if(!o){if(l)return r(o=l);--s===0&&e.rmdir(t,r)}})})})}function yp(t,e){let r;e=e||{},_p(e),V(t,"rimraf: missing path"),V.strictEqual(typeof t,"string","rimraf: path should be a string"),V(e,"rimraf: missing options"),V.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Vr&&mp(t,e,n)}try{r&&r.isDirectory()?wi(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Vr?mp(t,e,n):wi(t,e,n);if(n.code!=="EISDIR")throw n;wi(t,e,n)}}function wi(t,e,r){V(t),V(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")$w(t,e);else if(n.code!=="ENOENT")throw n}}function $w(t,e){if(V(t),V(e),e.readdirSync(t).forEach(r=>yp(gp.join(t,r),e)),Vr){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}Sp.exports=Sa;Sa.sync=yp});var Yr=m((B1,bp)=>{"use strict";u();var Ri=me(),jw=ye().fromCallback,vp=Ep();function Hw(t,e){if(Ri.rm)return Ri.rm(t,{recursive:!0,force:!0},e);vp(t,e)}function Uw(t){if(Ri.rmSync)return Ri.rmSync(t,{recursive:!0,force:!0});vp.sync(t)}bp.exports={remove:jw(Hw),removeSync:Uw}});var Pp=m((q1,Tp)=>{"use strict";u();var Ww=ye().fromPromise,Rp=It(),Ap=O("path"),Op=Be(),Cp=Yr(),xp=Ww(async function(e){let r;try{r=await Rp.readdir(e)}catch{return Op.mkdirs(e)}return Promise.all(r.map(n=>Cp.remove(Ap.join(e,n))))});function wp(t){let e;try{e=Rp.readdirSync(t)}catch{return Op.mkdirsSync(t)}e.forEach(r=>{r=Ap.join(t,r),Cp.removeSync(r)})}Tp.exports={emptyDirSync:wp,emptydirSync:wp,emptyDir:xp,emptydir:xp}});var Lp=m(($1,Fp)=>{"use strict";u();var Gw=ye().fromCallback,Dp=O("path"),_t=me(),kp=Be();function Vw(t,e){function r(){_t.writeFile(t,"",n=>{if(n)return e(n);e()})}_t.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=Dp.dirname(t);_t.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?kp.mkdirs(s,l=>{if(l)return e(l);r()}):e(o);a.isDirectory()?r():_t.readdir(s,l=>{if(l)return e(l)})})})}function Yw(t){let e;try{e=_t.statSync(t)}catch{}if(e&&e.isFile())return;let r=Dp.dirname(t);try{_t.statSync(r).isDirectory()||_t.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")kp.mkdirsSync(r);else throw n}_t.writeFileSync(t,"")}Fp.exports={createFile:Gw(Vw),createFileSync:Yw}});var qp=m((j1,Bp)=>{"use strict";u();var Kw=ye().fromCallback,Np=O("path"),yt=me(),Mp=Be(),Jw=gt().pathExists,{areIdentical:Ip}=Bt();function Qw(t,e,r){function n(i,s){yt.link(i,s,o=>{if(o)return r(o);r(null)})}yt.lstat(e,(i,s)=>{yt.lstat(t,(o,a)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&Ip(a,s))return r(null);let l=Np.dirname(e);Jw(l,(f,c)=>{if(f)return r(f);if(c)return n(t,e);Mp.mkdirs(l,h=>{if(h)return r(h);n(t,e)})})})})}function Xw(t,e){let r;try{r=yt.lstatSync(e)}catch{}try{let s=yt.lstatSync(t);if(r&&Ip(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Np.dirname(e);return yt.existsSync(n)||Mp.mkdirsSync(n),yt.linkSync(t,e)}Bp.exports={createLink:Kw(Qw),createLinkSync:Xw}});var jp=m((H1,$p)=>{"use strict";u();var St=O("path"),Kr=me(),Zw=gt().pathExists;function zw(t,e,r){if(St.isAbsolute(t))return Kr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=St.dirname(e),i=St.join(n,t);return Zw(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Kr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:St.relative(n,t)})))}}function eR(t,e){let r;if(St.isAbsolute(t)){if(r=Kr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=St.dirname(e),i=St.join(n,t);if(r=Kr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Kr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:St.relative(n,t)}}}$p.exports={symlinkPaths:zw,symlinkPathsSync:eR}});var Wp=m((U1,Up)=>{"use strict";u();var Hp=me();function tR(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Hp.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function rR(t,e){let r;if(e)return e;try{r=Hp.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Up.exports={symlinkType:tR,symlinkTypeSync:rR}});var Zp=m((W1,Xp)=>{"use strict";u();var nR=ye().fromCallback,Vp=O("path"),qe=It(),Yp=Be(),iR=Yp.mkdirs,sR=Yp.mkdirsSync,Kp=jp(),oR=Kp.symlinkPaths,aR=Kp.symlinkPathsSync,Jp=Wp(),uR=Jp.symlinkType,lR=Jp.symlinkTypeSync,cR=gt().pathExists,{areIdentical:Qp}=Bt();function fR(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,qe.lstat(e,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([qe.stat(t),qe.stat(e)]).then(([o,a])=>{if(Qp(o,a))return n(null);Gp(t,e,r,n)}):Gp(t,e,r,n)})}function Gp(t,e,r,n){oR(t,e,(i,s)=>{if(i)return n(i);t=s.toDst,uR(s.toCwd,r,(o,a)=>{if(o)return n(o);let l=Vp.dirname(e);cR(l,(f,c)=>{if(f)return n(f);if(c)return qe.symlink(t,e,a,n);iR(l,h=>{if(h)return n(h);qe.symlink(t,e,a,n)})})})})}function hR(t,e,r){let n;try{n=qe.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let a=qe.statSync(t),l=qe.statSync(e);if(Qp(a,l))return}let i=aR(t,e);t=i.toDst,r=lR(i.toCwd,r);let s=Vp.dirname(e);return qe.existsSync(s)||sR(s),qe.symlinkSync(t,e,r)}Xp.exports={createSymlink:nR(fR),createSymlinkSync:hR}});var om=m((G1,sm)=>{"use strict";u();var{createFile:zp,createFileSync:em}=Lp(),{createLink:tm,createLinkSync:rm}=qp(),{createSymlink:nm,createSymlinkSync:im}=Zp();sm.exports={createFile:zp,createFileSync:em,ensureFile:zp,ensureFileSync:em,createLink:tm,createLinkSync:rm,ensureLink:tm,ensureLinkSync:rm,createSymlink:nm,createSymlinkSync:im,ensureSymlink:nm,ensureSymlinkSync:im}});var Ai=m((V1,am)=>{u();function dR(t,{EOL:e=`
29
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function pR(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}am.exports={stringify:dR,stripBom:pR}});var fm=m((Y1,cm)=>{u();var pr;try{pr=me()}catch{pr=O("fs")}var Oi=ye(),{stringify:um,stripBom:lm}=Ai();async function mR(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||pr,n="throws"in e?e.throws:!0,i=await Oi.fromCallback(r.readFile)(t,e);i=lm(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var gR=Oi.fromPromise(mR);function _R(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||pr,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=lm(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function yR(t,e,r={}){let n=r.fs||pr,i=um(e,r);await Oi.fromCallback(n.writeFile)(t,i,r)}var SR=Oi.fromPromise(yR);function ER(t,e,r={}){let n=r.fs||pr,i=um(e,r);return n.writeFileSync(t,i,r)}var vR={readFile:gR,readFileSync:_R,writeFile:SR,writeFileSync:ER};cm.exports=vR});var dm=m((K1,hm)=>{"use strict";u();var Ci=fm();hm.exports={readJson:Ci.readFile,readJsonSync:Ci.readFileSync,writeJson:Ci.writeFile,writeJsonSync:Ci.writeFileSync}});var Ti=m((J1,gm)=>{"use strict";u();var bR=ye().fromCallback,Jr=me(),pm=O("path"),mm=Be(),xR=gt().pathExists;function wR(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=pm.dirname(t);xR(i,(s,o)=>{if(s)return n(s);if(o)return Jr.writeFile(t,e,r,n);mm.mkdirs(i,a=>{if(a)return n(a);Jr.writeFile(t,e,r,n)})})}function RR(t,...e){let r=pm.dirname(t);if(Jr.existsSync(r))return Jr.writeFileSync(t,...e);mm.mkdirsSync(r),Jr.writeFileSync(t,...e)}gm.exports={outputFile:bR(wR),outputFileSync:RR}});var ym=m((Q1,_m)=>{"use strict";u();var{stringify:AR}=Ai(),{outputFile:OR}=Ti();async function CR(t,e,r={}){let n=AR(e,r);await OR(t,n,r)}_m.exports=CR});var Em=m((X1,Sm)=>{"use strict";u();var{stringify:TR}=Ai(),{outputFileSync:PR}=Ti();function DR(t,e,r){let n=TR(e,r);PR(t,n,r)}Sm.exports=DR});var bm=m((Z1,vm)=>{"use strict";u();var kR=ye().fromPromise,ge=dm();ge.outputJson=kR(ym());ge.outputJsonSync=Em();ge.outputJSON=ge.outputJson;ge.outputJSONSync=ge.outputJsonSync;ge.writeJSON=ge.writeJson;ge.writeJSONSync=ge.writeJsonSync;ge.readJSON=ge.readJson;ge.readJSONSync=ge.readJsonSync;vm.exports=ge});var Om=m((z1,Am)=>{"use strict";u();var FR=me(),va=O("path"),LR=bi().copy,Rm=Yr().remove,NR=Be().mkdirp,MR=gt().pathExists,xm=Bt();function IR(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;xm.checkPaths(t,e,"move",r,(s,o)=>{if(s)return n(s);let{srcStat:a,isChangingCase:l=!1}=o;xm.checkParentPaths(t,a,e,"move",f=>{if(f)return n(f);if(BR(e))return wm(t,e,i,l,n);NR(va.dirname(e),c=>c?n(c):wm(t,e,i,l,n))})})}function BR(t){let e=va.dirname(t);return va.parse(e).root===e}function wm(t,e,r,n,i){if(n)return Ea(t,e,r,i);if(r)return Rm(e,s=>s?i(s):Ea(t,e,r,i));MR(e,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Ea(t,e,r,i))}function Ea(t,e,r,n){FR.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):qR(t,e,r,n):n())}function qR(t,e,r,n){LR(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):Rm(t,n))}Am.exports=IR});var km=m((eP,Dm)=>{"use strict";u();var Tm=me(),xa=O("path"),$R=bi().copySync,Pm=Yr().removeSync,jR=Be().mkdirpSync,Cm=Bt();function HR(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=Cm.checkPathsSync(t,e,"move",r);return Cm.checkParentPathsSync(t,i,e,"move"),UR(e)||jR(xa.dirname(e)),WR(t,e,n,s)}function UR(t){let e=xa.dirname(t);return xa.parse(e).root===e}function WR(t,e,r,n){if(n)return ba(t,e,r);if(r)return Pm(e),ba(t,e,r);if(Tm.existsSync(e))throw new Error("dest already exists.");return ba(t,e,r)}function ba(t,e,r){try{Tm.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return GR(t,e,r)}}function GR(t,e,r){return $R(t,e,{overwrite:r,errorOnExist:!0}),Pm(t)}Dm.exports=HR});var Lm=m((tP,Fm)=>{"use strict";u();var VR=ye().fromCallback;Fm.exports={move:VR(Om()),moveSync:km()}});var Mm=m((rP,Nm)=>{"use strict";u();Nm.exports={...It(),...bi(),...Pp(),...om(),...bm(),...Be(),...Lm(),...Ti(),...gt(),...Yr()}});var Oa=m((gP,Um)=>{u();var Pi=O("fs"),Hm=O("path"),KR=O("os");function Ra(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function Aa(t,e){try{return e(t)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",t),!1;throw r}}var JR={nil:function(t){return t==null},array:function(t){return Array.isArray(t)},emptyObject:function(t){for(var e in t)return!1;return!0},buffer:function(t){return Buffer.isBuffer(t)},regExp:function(t){return Ra(t,"RegExp")},string:function(t){return Ra(t,"String")},func:function(t){return typeof t=="function"},number:function(t){return Ra(t,"Number")},exists:function(t){return Pi.existsSync(t)},file:function(t){return Aa(t,function(e){return Pi.statSync(e).isFile()})},samePath:function(t,e){return Hm.resolve(t)===Hm.resolve(e)},directory:function(t){return Aa(t,function(e){return Pi.statSync(e).isDirectory()})},symbolicLink:function(t){return Aa(t,function(e){return Pi.lstatSync(e).isSymbolicLink()})},windows:function(){return KR.platform()==="win32"}};Um.exports=JR});var Km=m((_P,Ym)=>{u();var Xr=O("fs"),Wm=O("os"),Ca=O("path"),Di=Oa(),Qr,QR=Wm.tmpdir&&Wm.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Vm(){this.stack=[]}Vm.prototype={create:function(t,e){var r=Ca.join(e,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:t}),r},write:function(){for(var t=0;t<arguments.length;++t)Xr.writeFileSync(arguments[t]," ")},mkdir:function(){for(var t=0;t<arguments.length;++t)Xr.mkdirSync(arguments[t])},cleanup:function(t){try{for(var e;e=this.stack.pop();){var r=e.type,n=e.name;r==="file"&&Di.file(n)?Xr.unlinkSync(n):r==="dir"&&Di.directory(n)&&Xr.rmdirSync(n)}}finally{Di.func(t)&&t()}}};var Gm=!1;Ym.exports=function t(e){if(!Di.func(e))return!1;if(Qr!==void 0)return e(Qr);if(!Gm)Gm=!0;else return setTimeout(function(){t(e)},300);var r=new Vm,n=r.create("dir",QR),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=Xr.watch(n,o)}catch(f){if(f.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(Qr=!1);throw f}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(Qr=!1)})},200);a.on("change",function(f,c){Ca.basename(s)===Ca.basename(c)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(Qr=!0)}))}),r.write(s)}});var sg=m((yP,ka)=>{u();var Pa=O("fs"),Zr=O("path"),Qm=O("util"),Xm=O("events"),Zm=Km(),Y=Oa(),XR="update",zm="remove",Jm=Symbol("skip");function ZR(t){return t.some(function(e,r,n){return n.indexOf(e)!==r})}function Da(t){return t.filter(function(e,r,n){return n.indexOf(e)===r})}function zR(t){return t.reduce(function(e,r){return e.concat(r)},[])}function eA(t){if(t&&t!=="buffer"&&!Buffer.isEncoding(t))throw new Error("Unknown encoding: "+t)}function tA(t){return Y.func(t)?function(e,r){t(e,!1)&&r()}:Y.regExp(t)?function(e,r){t.test(e)&&r()}:function(e,r){r()}}function rA(t){return t.map(function(e){return Y.exists(e)?[XR,e]:[zm,e]})}function nA(t){var e=Da(t),r=/~$|^\.#|^##$/g,n=t.some(function(s){return r.test(s)});if(n){var i=ZR(t.map(function(s){return s.replace(r,"")}));i&&(e=e.filter(function(s){return Y.exists(s)}))}return rA(e)}function iA(t,e){var r,n=[],i=t.options.encoding,s=t.options.delay;Y.number(s)||(s=200);function o(){nA(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),e.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function eg(){var t={};return function(e){return function(r,n){t[r+n]=[r,n],setTimeout(function(){Object.keys(t).forEach(function(i){e.apply(null,t[i])}),t={}})}}}function tg(t,e,r=function(){}){Y.directory(t)?Pa.readdir(t,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",t);else throw n;else i.forEach(function(s){var o=Zr.join(t,s);Y.directory(o)&&e(o)}),r()}):r()}function sA(t){var e=0;return function(){return e++,function(){e--,e===0&&t()}}}function oA(){return function(){}}function rg(t,e){return!Y.func(e)||e(t,Jm)!==Jm}var ng=Qm.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Xe(){Xm.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Qm.inherits(Xe,Xm.EventEmitter);Xe.prototype.expose=function(){var t={},e=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){t[n]=function(){return e[n].apply(e,arguments)}}),t};Xe.prototype.isClosed=function(){return this._isClosed};Xe.prototype.close=function(t){var e=this;if(t){var r=this.watchers[t];r&&r.close&&(r.close(),delete e.watchers[t]),tg(t,function(n){e.close(n)})}else Object.keys(e.watchers).forEach(function(n){var i=e.watchers[n];i&&i.close&&i.close()}),this.watchers={};Y.emptyObject(e.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(ig,this)))};Xe.prototype.getWatchedPaths=function(t){if(Y.func(t)){var e=this;e._isReady?t(Object.keys(e.watchers)):e.on("ready",function(){t(Object.keys(e.watchers))})}};function Ta(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function ig(t){t.emit("close")}Xe.prototype.add=function(t,e){var r=this;e=e||{fpath:""};var n=Zr.resolve(e.fpath);this.watchers[n]=t;var i=function(o,a){if(!r.isClosed()){var l=a;Y.nil(l)&&(l=""),l=Zr.join(e.fpath,l),e.options.recursive&&Zm(function(f){if(!f){var c=Zr.resolve(l);if(!Y.exists(l))r.close(c);else{var h=Y.directory(l)&&!r.watchers[c]&&rg(l,e.options.filter);h&&r.watchDirectory(l,e.options)}}}),s(o,l)}},s=iA(e,function(o,a){if(e.compareName)e.compareName(a)&&r.emit("change",o,a);else{var l=tA(e.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});t.on("error",function(o){r.isClosed()||(Y.windows()&&o.code==="EPERM"?(t.emit("change",zm,e.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),t.on("change",i)};Xe.prototype.watchFile=function(t,e,r){var n=Zr.join(t,"../"),i=Object.assign({},e,{filter:null,encoding:"utf8"});delete i.recursive;var s=Pa.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:e.encoding}),compareName:function(o){return Y.samePath(o,t)}}),Y.func(r)&&(r.length===1&&ng(),this.on("change",r))};Xe.prototype.watchDirectory=function(t,e,r,n=oA){var i=this,s=n();Zm(function(o){e.recursive=!!e.recursive;var a=Object.assign({},e,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=Pa.watch(t,a);i.add(l,{type:"dir",fpath:t,options:e}),Y.func(r)&&(r.length===1&&ng(),i.on("change",r)),e.recursive&&!o&&tg(t,function(f){rg(f,e.filter)&&i.watchDirectory(f,e,null,n)},n()),s()})};function aA(t){var e=new Xe,r=eg(),n=t.length;return t.forEach(function(i){i.on("change",r(function(s,o){e.emit("change",s,o)})),i.on("error",function(s){e.emit("error",s)}),i.on("ready",function(){--n||Ta(e)})}),e.close=function(){t.forEach(function(i){i.close()}),process.nextTick(ig,e)},e.getWatchedPaths=function(i){if(Y.func(i)){var s=t.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Da(zR(o));i(a)})}},e.expose()}function ki(t,e,r){var n=new Xe;if(Y.buffer(t)&&(t=t.toString()),!Y.array(t)&&!Y.exists(t)&&n.emit("error",new Error(t+" does not exist.")),Y.string(e)&&(e={encoding:e}),Y.func(e)&&(r=e,e={}),arguments.length<2&&(e={}),e.encoding?eA(e.encoding):e.encoding="utf8",Y.array(t)){if(t.length===1)return ki(t[0],e,r);var i=eg();return aA(Da(t).map(function(o){var a=ki(o,e);return Y.func(r)&&a.on("change",i(r)),a}))}if(Y.file(t))n.watchFile(t,e,r),Ta(n);else if(Y.directory(t)){var s=sA(function(){Ta(n)});n.watchDirectory(t,e,r,s)}return n.expose()}ka.exports=ki;ka.exports.default=ki});u();u();u();var Fa=(t=0)=>e=>`\x1B[${e+t}m`,La=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Na=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function $g(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Fa(),e.color.ansi256=La(),e.color.ansi16m=Na(),e.bgColor.ansi=Fa(10),e.bgColor.ansi256=La(10),e.bgColor.ansi16m=Na(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>e.rgbToAnsi256(...e.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var jg=$g(),Fe=jg;u();import Ni from"node:process";import Hg from"node:os";import Ma from"node:tty";function Re(t,e=Ni.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:ie}=Ni,nn;Re("no-color")||Re("no-colors")||Re("color=false")||Re("color=never")?nn=0:(Re("color")||Re("colors")||Re("color=true")||Re("color=always"))&&(nn=1);function Ug(){if("FORCE_COLOR"in ie)return ie.FORCE_COLOR==="true"?1:ie.FORCE_COLOR==="false"?0:ie.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ie.FORCE_COLOR,10),3)}function Wg(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Gg(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Ug();n!==void 0&&(nn=n);let i=r?nn:n;if(i===0)return 0;if(r){if(Re("color=16m")||Re("color=full")||Re("color=truecolor"))return 3;if(Re("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let s=i||0;if(ie.TERM==="dumb")return s;if(Ni.platform==="win32"){let o=Hg.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in ie)||ie.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ie.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in ie&&"AGENT_NAME"in ie)return 1;if(ie.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ie){let o=Number.parseInt((ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ie.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ie.TERM)||"COLORTERM"in ie?1:s}function Ia(t,e={}){let r=Gg(t,{streamIsTTY:t&&t.isTTY,...e});return Wg(r)}var Vg={stdout:Ia({isTTY:Ma.isatty(1)}),stderr:Ia({isTTY:Ma.isatty(2)})},Ba=Vg;u();function qa(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function $a(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
22
+ `)}),this}};function Ho(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function qo(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function Ar(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}jo.Command=Rr});var Yo=_((ve,Go)=>{var{Argument:xp}=wr(),{Command:Vo}=Uo(),{CommanderError:Sp,InvalidArgumentError:Wo}=Wt(),{Help:wp}=Vn(),{Option:Ap}=Gn();ve=Go.exports=new Vo;ve.program=ve;ve.Argument=xp;ve.Command=Vo;ve.CommanderError=Sp;ve.Help=wp;ve.InvalidArgumentError=Wo;ve.InvalidOptionArgumentError=Wo;ve.Option=Ap});var Qo=_(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.splitWhen=vt.flatten=void 0;function Rp(t){return t.reduce((e,r)=>[].concat(e,r),[])}vt.flatten=Rp;function Cp(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}vt.splitWhen=Cp});var Xo=_(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.isEnoentCodeError=void 0;function Op(t){return t.code==="ENOENT"}Cr.isEnoentCodeError=Op});var zo=_(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var Zo=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Tp(t,e){return new Zo(t,e)}Or.createDirentFromStats=Tp});var ea=_(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.removeLeadingDotSegment=Ce.escape=Ce.makeAbsolute=Ce.unixify=void 0;var Pp=A("path"),Dp=2,Lp=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Mp(t){return t.replace(/\\/g,"/")}Ce.unixify=Mp;function kp(t,e){return Pp.resolve(t,e)}Ce.makeAbsolute=kp;function Np(t){return t.replace(Lp,"\\$2")}Ce.escape=Np;function Bp(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Dp)}return t}Ce.removeLeadingDotSegment=Bp});var ra=_((Uv,ta)=>{ta.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var sa=_((Vv,ia)=>{var Ip=ra(),na={"{":"}","(":")","[":"]"},Fp=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=na[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},$p=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=na[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};ia.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Ip(e))return!0;var n=Fp;return r&&r.strict===!1&&(n=$p),n(e)}});var aa=_((Wv,oa)=>{"use strict";var Hp=sa(),qp=A("path").posix.dirname,jp=A("os").platform()==="win32",Qn="/",Up=/\\/g,Vp=/[\{\[].*[\}\]]$/,Wp=/(^|[^\\])([\{\[]|\([^\)]+$)/,Gp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;oa.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&jp&&e.indexOf(Qn)<0&&(e=e.replace(Up,Qn)),Vp.test(e)&&(e+=Qn),e+="a";do e=qp(e);while(Hp(e)||Wp.test(e));return e.replace(Gp,"$1")}});var Tr=_(pe=>{"use strict";pe.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;pe.find=(t,e)=>t.nodes.find(r=>r.type===e);pe.exceedsLimit=(t,e,r=1,n)=>n===!1||!pe.isInteger(t)||!pe.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;pe.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};pe.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;pe.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;pe.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;pe.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);pe.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var Pr=_((Yv,ua)=>{"use strict";var la=Tr();ua.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&la.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&la.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(t)}});var fa=_((Kv,ca)=>{"use strict";ca.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var va=_((Jv,ba)=>{"use strict";var ha=fa(),rt=(t,e,r)=>{if(ha(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(ha(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=t+":"+e+"="+i+s+o+a;if(rt.cache.hasOwnProperty(l))return rt.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let f=ya(t)||ya(e),h={min:t,max:e,a:c,b:u},E=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let y=u<0?Math.abs(u):1;m=pa(y,Math.abs(c),h,n),c=h.a=0}return u>=0&&(E=pa(c,u,h,n)),h.negatives=m,h.positives=E,h.result=Yp(m,E,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&E.length+m.length>1&&(h.result=`(?:${h.result})`),rt.cache[l]=h,h.result};function Yp(t,e,r){let n=Xn(t,e,"-",!1,r)||[],i=Xn(e,t,"",!1,r)||[],s=Xn(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Kp(t,e){let r=1,n=1,i=ga(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=ga(t,r);for(i=_a(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=_a(e+1,n)-1;return s=[...s],s.sort(Xp),s}function Jp(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=Qp(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=Zp(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function pa(t,e,r,n){let i=Kp(t,e),s=[],o=t,a;for(let l=0;l<i.length;l++){let c=i[l],u=Jp(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+ma(a.count),o=c+1;continue}r.isPadded&&(f=zp(c,r,n)),u.string=f+u.pattern+ma(u.count),s.push(u),o=c+1,a=u}return s}function Xn(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!da(e,"string",a)&&s.push(r+a),n&&da(e,"string",a)&&s.push(r+a)}return s}function Qp(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function Xp(t,e){return t>e?1:e>t?-1:0}function da(t,e,r){return t.some(n=>n[e]===r)}function ga(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function _a(t,e){return t-t%Math.pow(10,e)}function ma(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Zp(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ya(t){return/^-?(0+)\d/.test(t)}function zp(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}rt.cache={};rt.clearCache=()=>rt.cache={};ba.exports=rt});var ei=_((Qv,Oa)=>{"use strict";var ed=A("util"),Sa=va(),Ea=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),td=t=>e=>t===!0?Number(e):String(e),Zn=t=>typeof t=="number"||typeof t=="string"&&t!=="",Gt=t=>Number.isInteger(+t),zn=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},rd=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,nd=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},xa=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},id=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},wa=(t,e,r,n)=>{if(r)return Sa(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Aa=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Sa(t,e,r)},Ra=(...t)=>new RangeError("Invalid range arguments: "+ed.inspect(...t)),Ca=(t,e,r)=>{if(r.strictRanges===!0)throw Ra([t,e]);return[]},sd=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},od=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ra([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=zn(a)||zn(l)||zn(c),f=u?Math.max(a.length,l.length,c.length):0,h=u===!1&&rd(t,e,n)===!1,E=n.transform||td(h);if(n.toRegex&&r===1)return wa(xa(t,f),xa(e,f),!0,n);let m={negatives:[],positives:[]},y=M=>m[M<0?"negatives":"positives"].push(Math.abs(M)),S=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):S.push(nd(E(i,x),f,h)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?id(m,n):Aa(S,null,{wrap:!1,...n}):S},ad=(t,e,r=1,n={})=>{if(!Gt(t)&&t.length>1||!Gt(e)&&e.length>1)return Ca(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return wa(l,c,!1,n);let u=[],f=0;for(;a?s>=o:s<=o;)u.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Aa(u,null,{wrap:!1,options:n}):u},Dr=(t,e,r,n={})=>{if(e==null&&Zn(t))return[t];if(!Zn(t)||!Zn(e))return Ca(t,e,n);if(typeof r=="function")return Dr(t,e,1,{transform:r});if(Ea(r))return Dr(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Gt(r)?Gt(t)&&Gt(e)?od(t,e,r,i):ad(t,e,Math.max(Math.abs(r),1),i):r!=null&&!Ea(r)?sd(r,i):Dr(t,e,1,r)};Oa.exports=Dr});var Da=_((Xv,Pa)=>{"use strict";var ld=ei(),Ta=Tr(),ud=(t,e={})=>{let r=(n,i={})=>{let s=Ta.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Ta.reduce(n.nodes),f=ld(...u,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return u.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(t)};Pa.exports=ud});var ka=_((Zv,Ma)=>{"use strict";var cd=ei(),La=Pr(),Et=Tr(),nt=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Et.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(nt(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?nt(i,s,r):i+s);return Et.flatten(n)},fd=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(nt(a.pop(),La(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(nt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=Et.reduce(i.nodes);if(Et.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=cd(...f,e);h.length===0&&(h=La(i,e)),a.push(nt(a.pop(),h)),i.nodes=[];return}let l=Et.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(nt(a.pop(),c,l));continue}if(h.value&&h.type!=="open"){c.push(nt(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return Et.flatten(n(t))};Ma.exports=fd});var Ba=_((zv,Na)=>{"use strict";Na.exports={MAX_LENGTH:1024*64,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:`
23
+ `,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"}});var qa=_((eE,Ha)=>{"use strict";var hd=Pr(),{MAX_LENGTH:Ia,CHAR_BACKSLASH:ti,CHAR_BACKTICK:pd,CHAR_COMMA:dd,CHAR_DOT:gd,CHAR_LEFT_PARENTHESES:_d,CHAR_RIGHT_PARENTHESES:md,CHAR_LEFT_CURLY_BRACE:yd,CHAR_RIGHT_CURLY_BRACE:bd,CHAR_LEFT_SQUARE_BRACKET:Fa,CHAR_RIGHT_SQUARE_BRACKET:$a,CHAR_DOUBLE_QUOTE:vd,CHAR_SINGLE_QUOTE:Ed,CHAR_NO_BREAK_SPACE:xd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Sd}=Ba(),wd=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Ia,r.maxLength):Ia;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,l=0,c=t.length,u=0,f=0,h,E={},m=()=>t[u++],y=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=a,a=S,S};for(y({type:"bos"});u<c;)if(o=s[s.length-1],h=m(),!(h===Sd||h===xd)){if(h===ti){y({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===$a){y({type:"text",value:"\\"+h});continue}if(h===Fa){l++;let S=!0,x;for(;u<c&&(x=m());){if(h+=x,x===Fa){l++;continue}if(x===ti){h+=m();continue}if(x===$a&&(l--,l===0))break}y({type:"text",value:h});continue}if(h===_d){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:h});continue}if(h===md){if(o.type!=="paren"){y({type:"text",value:h});continue}o=s.pop(),y({type:"text",value:h}),o=s[s.length-1];continue}if(h===vd||h===Ed||h===pd){let S=h,x;for(e.keepQuotes!==!0&&(h="");u<c&&(x=m());){if(x===ti){h+=x+m();continue}if(x===S){e.keepQuotes===!0&&(h+=x);break}h+=x}y({type:"text",value:h});continue}if(h===yd){f++;let S=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=y({type:"brace",open:!0,close:!1,dollar:S,depth:f,commas:0,ranges:0,nodes:[]}),s.push(o),y({type:"open",value:h});continue}if(h===bd){if(o.type!=="brace"){y({type:"text",value:h});continue}let S="close";o=s.pop(),o.close=!0,y({type:S,value:h}),f--,o=s[s.length-1];continue}if(h===dd&&f>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:hd(o)}]}y({type:"comma",value:h}),o.commas++;continue}if(h===gd&&f>0&&o.commas===0){let S=o.nodes;if(f===0||S.length===0){y({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){S.pop();let x=S[S.length-1];x.value+=a.value+h,a=x,o.ranges--;continue}y({type:"dot",value:h});continue}y({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(M=>{M.nodes||(M.type==="open"&&(M.isOpen=!0),M.type==="close"&&(M.isClose=!0),M.nodes||(M.type="text"),M.invalid=!0)});let S=s[s.length-1],x=S.nodes.indexOf(o);S.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),i};Ha.exports=wd});var Va=_((tE,Ua)=>{"use strict";var ja=Pr(),Ad=Da(),Rd=ka(),Cd=qa(),ue=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=ue.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ue.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ue.parse=(t,e={})=>Cd(t,e);ue.stringify=(t,e={})=>ja(typeof t=="string"?ue.parse(t,e):t,e);ue.compile=(t,e={})=>(typeof t=="string"&&(t=ue.parse(t,e)),Ad(t,e));ue.expand=(t,e={})=>{typeof t=="string"&&(t=ue.parse(t,e));let r=Rd(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ue.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ue.compile(t,e):ue.expand(t,e);Ua.exports=ue});var Yt=_((rE,Ja)=>{"use strict";var Od=A("path"),Oe="\\\\/",Wa=`[^${Oe}]`,Fe="\\.",Td="\\+",Pd="\\?",Lr="\\/",Dd="(?=.)",Ga="[^/]",ri=`(?:${Lr}|$)`,Ya=`(?:^|${Lr})`,ni=`${Fe}{1,2}${ri}`,Ld=`(?!${Fe})`,Md=`(?!${Ya}${ni})`,kd=`(?!${Fe}{0,1}${ri})`,Nd=`(?!${ni})`,Bd=`[^.${Lr}]`,Id=`${Ga}*?`,Ka={DOT_LITERAL:Fe,PLUS_LITERAL:Td,QMARK_LITERAL:Pd,SLASH_LITERAL:Lr,ONE_CHAR:Dd,QMARK:Ga,END_ANCHOR:ri,DOTS_SLASH:ni,NO_DOT:Ld,NO_DOTS:Md,NO_DOT_SLASH:kd,NO_DOTS_SLASH:Nd,QMARK_NO_DOT:Bd,STAR:Id,START_ANCHOR:Ya},Fd={...Ka,SLASH_LITERAL:`[${Oe}]`,QMARK:Wa,STAR:`${Wa}*?`,DOTS_SLASH:`${Fe}{1,2}(?:[${Oe}]|$)`,NO_DOT:`(?!${Fe})`,NO_DOTS:`(?!(?:^|[${Oe}])${Fe}{1,2}(?:[${Oe}]|$))`,NO_DOT_SLASH:`(?!${Fe}{0,1}(?:[${Oe}]|$))`,NO_DOTS_SLASH:`(?!${Fe}{1,2}(?:[${Oe}]|$))`,QMARK_NO_DOT:`[^.${Oe}]`,START_ANCHOR:`(?:^|[${Oe}])`,END_ANCHOR:`(?:[${Oe}]|$)`},$d={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"};Ja.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$d,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Od.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Fd:Ka}}});var Kt=_(ae=>{"use strict";var Hd=A("path"),qd=process.platform==="win32",{REGEX_BACKSLASH:jd,REGEX_REMOVE_BACKSLASH:Ud,REGEX_SPECIAL_CHARS:Vd,REGEX_SPECIAL_CHARS_GLOBAL:Wd}=Yt();ae.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ae.hasRegexChars=t=>Vd.test(t);ae.isRegexChar=t=>t.length===1&&ae.hasRegexChars(t);ae.escapeRegex=t=>t.replace(Wd,"\\$1");ae.toPosixSlashes=t=>t.replace(jd,"/");ae.removeBackslashes=t=>t.replace(Ud,e=>e==="\\"?"":e);ae.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};ae.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:qd===!0||Hd.sep==="\\";ae.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?ae.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};ae.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};ae.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var nl=_((iE,rl)=>{"use strict";var Qa=Kt(),{CHAR_ASTERISK:ii,CHAR_AT:Gd,CHAR_BACKWARD_SLASH:Jt,CHAR_COMMA:Yd,CHAR_DOT:si,CHAR_EXCLAMATION_MARK:oi,CHAR_FORWARD_SLASH:tl,CHAR_LEFT_CURLY_BRACE:ai,CHAR_LEFT_PARENTHESES:li,CHAR_LEFT_SQUARE_BRACKET:Kd,CHAR_PLUS:Jd,CHAR_QUESTION_MARK:Xa,CHAR_RIGHT_CURLY_BRACE:Qd,CHAR_RIGHT_PARENTHESES:Za,CHAR_RIGHT_SQUARE_BRACKET:Xd}=Yt(),za=t=>t===tl||t===Jt,el=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Zd=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,f=0,h=!1,E=!1,m=!1,y=!1,S=!1,x=!1,M=!1,N=!1,z=!1,T=!1,q=0,P,R,F={value:"",depth:0,isGlob:!1},w=()=>c>=n,p=()=>l.charCodeAt(c+1),H=()=>(P=R,l.charCodeAt(++c));for(;c<n;){R=H();let se;if(R===Jt){M=F.backslashes=!0,R=H(),R===ai&&(x=!0);continue}if(x===!0||R===ai){for(q++;w()!==!0&&(R=H());){if(R===Jt){M=F.backslashes=!0,H();continue}if(R===ai){q++;continue}if(x!==!0&&R===si&&(R=H())===si){if(h=F.isBrace=!0,m=F.isGlob=!0,T=!0,i===!0)continue;break}if(x!==!0&&R===Yd){if(h=F.isBrace=!0,m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Qd&&(q--,q===0)){x=!1,h=F.isBrace=!0,T=!0;break}}if(i===!0)continue;break}if(R===tl){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},T===!0)continue;if(P===si&&c===u+1){u+=2;continue}f=c+1;continue}if(r.noext!==!0&&(R===Jd||R===Gd||R===ii||R===Xa||R===oi)===!0&&p()===li){if(m=F.isGlob=!0,y=F.isExtglob=!0,T=!0,R===oi&&c===u&&(z=!0),i===!0){for(;w()!==!0&&(R=H());){if(R===Jt){M=F.backslashes=!0,R=H();continue}if(R===Za){m=F.isGlob=!0,T=!0;break}}continue}break}if(R===ii){if(P===ii&&(S=F.isGlobstar=!0),m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Xa){if(m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Kd){for(;w()!==!0&&(se=H());){if(se===Jt){M=F.backslashes=!0,H();continue}if(se===Xd){E=F.isBracket=!0,m=F.isGlob=!0,T=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&R===oi&&c===u){N=F.negated=!0,u++;continue}if(r.noparen!==!0&&R===li){if(m=F.isGlob=!0,i===!0){for(;w()!==!0&&(R=H());){if(R===li){M=F.backslashes=!0,R=H();continue}if(R===Za){T=!0;break}}continue}break}if(m===!0){if(T=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let $=l,Ue="",d="";u>0&&(Ue=l.slice(0,u),l=l.slice(u),f-=u),$&&m===!0&&f>0?($=l.slice(0,f),d=l.slice(f)):m===!0?($="",d=l):$=l,$&&$!==""&&$!=="/"&&$!==l&&za($.charCodeAt($.length-1))&&($=$.slice(0,-1)),r.unescape===!0&&(d&&(d=Qa.removeBackslashes(d)),$&&M===!0&&($=Qa.removeBackslashes($)));let g={prefix:Ue,input:t,start:u,base:$,glob:d,isBrace:h,isBracket:E,isGlob:m,isExtglob:y,isGlobstar:S,negated:N,negatedExtglob:z};if(r.tokens===!0&&(g.maxDepth=0,za(R)||o.push(F),g.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let I=0;I<s.length;I++){let Ae=se?se+1:u,Re=s[I],le=t.slice(Ae,Re);r.tokens&&(I===0&&u!==0?(o[I].isPrefix=!0,o[I].value=Ue):o[I].value=le,el(o[I]),g.maxDepth+=o[I].depth),(I!==0||le!=="")&&a.push(le),se=Re}if(se&&se+1<t.length){let I=t.slice(se+1);a.push(I),r.tokens&&(o[o.length-1].value=I,el(o[o.length-1]),g.maxDepth+=o[o.length-1].depth)}g.slashes=s,g.parts=a}return g};rl.exports=Zd});var ol=_((sE,sl)=>{"use strict";var Mr=Yt(),ce=Kt(),{MAX_LENGTH:kr,POSIX_REGEX_SOURCE:zd,REGEX_NON_SPECIAL_CHARS:eg,REGEX_SPECIAL_CHARS_BACKREF:tg,REPLACEMENTS:il}=Mr,rg=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>ce.escapeRegex(i)).join("..")}return r},xt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ui=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=il[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(kr,r.maxLength):kr,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=ce.isWindows(e),c=Mr.globChars(l),u=Mr.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:S,NO_DOT_SLASH:x,NO_DOTS_SLASH:M,QMARK:N,QMARK_NO_DOT:z,STAR:T,START_ANCHOR:q}=c,P=v=>`(${a}(?:(?!${q}${v.dot?y:f}).)*?)`,R=r.dot?"":S,F=r.dot?N:z,w=r.bash===!0?P(r):T;r.capture&&(w=`(${w})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ce.removePrefix(t,p),i=t.length;let H=[],$=[],Ue=[],d=s,g,se=()=>p.index===i-1,I=p.peek=(v=1)=>t[p.index+v],Ae=p.advance=()=>t[++p.index]||"",Re=()=>t.slice(p.index+1),le=(v="",V=0)=>{p.consumed+=v,p.index+=V},yr=v=>{p.output+=v.output!=null?v.output:v.value,le(v.value)},Uh=()=>{let v=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)Ae(),p.start++,v++;return v%2===0?!1:(p.negated=!0,p.start++,!0)},br=v=>{p[v]++,Ue.push(v)},tt=v=>{p[v]--,Ue.pop()},k=v=>{if(d.type==="globstar"){let V=p.braces>0&&(v.type==="comma"||v.type==="brace"),b=v.extglob===!0||H.length&&(v.type==="pipe"||v.type==="paren");v.type!=="slash"&&v.type!=="paren"&&!V&&!b&&(p.output=p.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=w,p.output+=d.output)}if(H.length&&v.type!=="paren"&&(H[H.length-1].inner+=v.value),(v.value||v.output)&&yr(v),d&&d.type==="text"&&v.type==="text"){d.value+=v.value,d.output=(d.output||"")+v.value;return}v.prev=d,o.push(v),d=v},vr=(v,V)=>{let b={...u[V],conditions:1,inner:""};b.prev=d,b.parens=p.parens,b.output=p.output;let D=(r.capture?"(":"")+b.open;br("parens"),k({type:v,value:V,output:p.output?"":m}),k({type:"paren",extglob:!0,value:Ae(),output:D}),H.push(b)},Vh=v=>{let V=v.close+(r.capture?")":""),b;if(v.type==="negate"){let D=w;if(v.inner&&v.inner.length>1&&v.inner.includes("/")&&(D=P(r)),(D!==w||se()||/^\)+$/.test(Re()))&&(V=v.close=`)$))${D}`),v.inner.includes("*")&&(b=Re())&&/^\.[^\\/.]+$/.test(b)){let K=ui(b,{...e,fastpaths:!1}).output;V=v.close=`)${K})${D})`}v.prev.type==="bos"&&(p.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:g,output:V}),tt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let v=!1,V=t.replace(tg,(b,D,K,oe,ee,Bn)=>oe==="\\"?(v=!0,b):oe==="?"?D?D+oe+(ee?N.repeat(ee.length):""):Bn===0?F+(ee?N.repeat(ee.length):""):N.repeat(K.length):oe==="."?f.repeat(K.length):oe==="*"?D?D+oe+(ee?w:""):w:D?b:`\\${b}`);return v===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),V===t&&r.contains===!0?(p.output=t,p):(p.output=ce.wrapOutput(V,p,e),p)}for(;!se();){if(g=Ae(),g==="\0")continue;if(g==="\\"){let b=I();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){g+="\\",k({type:"text",value:g});continue}let D=/^\\+/.exec(Re()),K=0;if(D&&D[0].length>2&&(K=D[0].length,p.index+=K,K%2!==0&&(g+="\\")),r.unescape===!0?g=Ae():g+=Ae(),p.brackets===0){k({type:"text",value:g});continue}}if(p.brackets>0&&(g!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&g===":"){let b=d.value.slice(1);if(b.includes("[")&&(d.posix=!0,b.includes(":"))){let D=d.value.lastIndexOf("["),K=d.value.slice(0,D),oe=d.value.slice(D+2),ee=zd[oe];if(ee){d.value=K+ee,p.backtrack=!0,Ae(),!s.output&&o.indexOf(d)===1&&(s.output=m);continue}}}(g==="["&&I()!==":"||g==="-"&&I()==="]")&&(g=`\\${g}`),g==="]"&&(d.value==="["||d.value==="[^")&&(g=`\\${g}`),r.posix===!0&&g==="!"&&d.value==="["&&(g="^"),d.value+=g,yr({value:g});continue}if(p.quotes===1&&g!=='"'){g=ce.escapeRegex(g),d.value+=g,yr({value:g});continue}if(g==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:g});continue}if(g==="("){br("parens"),k({type:"paren",value:g});continue}if(g===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xt("opening","("));let b=H[H.length-1];if(b&&p.parens===b.parens+1){Vh(H.pop());continue}k({type:"paren",value:g,output:p.parens?")":"\\)"}),tt("parens");continue}if(g==="["){if(r.nobracket===!0||!Re().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xt("closing","]"));g=`\\${g}`}else br("brackets");k({type:"bracket",value:g});continue}if(g==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){k({type:"text",value:g,output:`\\${g}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xt("opening","["));k({type:"text",value:g,output:`\\${g}`});continue}tt("brackets");let b=d.value.slice(1);if(d.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(g=`/${g}`),d.value+=g,yr({value:g}),r.literalBrackets===!1||ce.hasRegexChars(b))continue;let D=ce.escapeRegex(d.value);if(p.output=p.output.slice(0,-d.value.length),r.literalBrackets===!0){p.output+=D,d.value=D;continue}d.value=`(${a}${D}|${d.value})`,p.output+=d.value;continue}if(g==="{"&&r.nobrace!==!0){br("braces");let b={type:"brace",value:g,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};$.push(b),k(b);continue}if(g==="}"){let b=$[$.length-1];if(r.nobrace===!0||!b){k({type:"text",value:g,output:g});continue}let D=")";if(b.dots===!0){let K=o.slice(),oe=[];for(let ee=K.length-1;ee>=0&&(o.pop(),K[ee].type!=="brace");ee--)K[ee].type!=="dots"&&oe.unshift(K[ee].value);D=rg(oe,r),p.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let K=p.output.slice(0,b.outputIndex),oe=p.tokens.slice(b.tokensIndex);b.value=b.output="\\{",g=D="\\}",p.output=K;for(let ee of oe)p.output+=ee.output||ee.value}k({type:"brace",value:g,output:D}),tt("braces"),$.pop();continue}if(g==="|"){H.length>0&&H[H.length-1].conditions++,k({type:"text",value:g});continue}if(g===","){let b=g,D=$[$.length-1];D&&Ue[Ue.length-1]==="braces"&&(D.comma=!0,b="|"),k({type:"comma",value:g,output:b});continue}if(g==="/"){if(d.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),d=s;continue}k({type:"slash",value:g,output:E});continue}if(g==="."){if(p.braces>0&&d.type==="dot"){d.value==="."&&(d.output=f);let b=$[$.length-1];d.type="dots",d.output+=g,d.value+=g,b.dots=!0;continue}if(p.braces+p.parens===0&&d.type!=="bos"&&d.type!=="slash"){k({type:"text",value:g,output:f});continue}k({type:"dot",value:g,output:f});continue}if(g==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){vr("qmark",g);continue}if(d&&d.type==="paren"){let D=I(),K=g;if(D==="<"&&!ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(D)||D==="<"&&!/<([!=]|\w+>)/.test(Re()))&&(K=`\\${g}`),k({type:"text",value:g,output:K});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){k({type:"qmark",value:g,output:z});continue}k({type:"qmark",value:g,output:N});continue}if(g==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){vr("negate",g);continue}if(r.nonegate!==!0&&p.index===0){Uh();continue}}if(g==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){vr("plus",g);continue}if(d&&d.value==="("||r.regex===!1){k({type:"plus",value:g,output:h});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||p.parens>0){k({type:"plus",value:g});continue}k({type:"plus",value:h});continue}if(g==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){k({type:"at",extglob:!0,value:g,output:""});continue}k({type:"text",value:g});continue}if(g!=="*"){(g==="$"||g==="^")&&(g=`\\${g}`);let b=eg.exec(Re());b&&(g+=b[0],p.index+=b[0].length),k({type:"text",value:g});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=g,d.output=w,p.backtrack=!0,p.globstar=!0,le(g);continue}let v=Re();if(r.noextglob!==!0&&/^\([^?]/.test(v)){vr("star",g);continue}if(d.type==="star"){if(r.noglobstar===!0){le(g);continue}let b=d.prev,D=b.prev,K=b.type==="slash"||b.type==="bos",oe=D&&(D.type==="star"||D.type==="globstar");if(r.bash===!0&&(!K||v[0]&&v[0]!=="/")){k({type:"star",value:g,output:""});continue}let ee=p.braces>0&&(b.type==="comma"||b.type==="brace"),Bn=H.length&&(b.type==="pipe"||b.type==="paren");if(!K&&b.type!=="paren"&&!ee&&!Bn){k({type:"star",value:g,output:""});continue}for(;v.slice(0,3)==="/**";){let Er=t[p.index+4];if(Er&&Er!=="/")break;v=v.slice(3),le("/**",3)}if(b.type==="bos"&&se()){d.type="globstar",d.value+=g,d.output=P(r),p.output=d.output,p.globstar=!0,le(g);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!oe&&se()){p.output=p.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=P(r)+(r.strictSlashes?")":"|$)"),d.value+=g,p.globstar=!0,p.output+=b.output+d.output,le(g);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&v[0]==="/"){let Er=v[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=`${P(r)}${E}|${E}${Er})`,d.value+=g,p.output+=b.output+d.output,p.globstar=!0,le(g+Ae()),k({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&v[0]==="/"){d.type="globstar",d.value+=g,d.output=`(?:^|${E}|${P(r)}${E})`,p.output=d.output,p.globstar=!0,le(g+Ae()),k({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-d.output.length),d.type="globstar",d.output=P(r),d.value+=g,p.output+=d.output,p.globstar=!0,le(g);continue}let V={type:"star",value:g,output:w};if(r.bash===!0){V.output=".*?",(d.type==="bos"||d.type==="slash")&&(V.output=R+V.output),k(V);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){V.output=g,k(V);continue}(p.index===p.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(p.output+=x,d.output+=x):r.dot===!0?(p.output+=M,d.output+=M):(p.output+=R,d.output+=R),I()!=="*"&&(p.output+=m,d.output+=m)),k(V)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xt("closing","]"));p.output=ce.escapeLast(p.output,"["),tt("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xt("closing",")"));p.output=ce.escapeLast(p.output,"("),tt("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xt("closing","}"));p.output=ce.escapeLast(p.output,"{"),tt("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${E}?`}),p.backtrack===!0){p.output="";for(let v of p.tokens)p.output+=v.output!=null?v.output:v.value,v.suffix&&(p.output+=v.suffix)}return p};ui.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(kr,r.maxLength):kr,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=il[t]||t;let s=ce.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:E,START_ANCHOR:m}=Mr.globChars(s),y=r.dot?f:u,S=r.dot?h:u,x=r.capture?"":"?:",M={negated:!1,prefix:""},N=r.bash===!0?".*?":E;r.capture&&(N=`(${N})`);let z=R=>R.noglobstar===!0?N:`(${x}(?:(?!${m}${R.dot?c:o}).)*?)`,T=R=>{switch(R){case"*":return`${y}${l}${N}`;case".*":return`${o}${l}${N}`;case"*.*":return`${y}${N}${o}${l}${N}`;case"*/*":return`${y}${N}${a}${l}${S}${N}`;case"**":return y+z(r);case"**/*":return`(?:${y}${z(r)}${a})?${S}${l}${N}`;case"**/*.*":return`(?:${y}${z(r)}${a})?${S}${N}${o}${l}${N}`;case"**/.*":return`(?:${y}${z(r)}${a})?${o}${l}${N}`;default:{let F=/^(.*?)\.(\w+)$/.exec(R);if(!F)return;let w=T(F[1]);return w?w+o+F[2]:void 0}}},q=ce.removePrefix(t,M),P=T(q);return P&&r.strictSlashes!==!0&&(P+=`${a}?`),P};sl.exports=ui});var ll=_((oE,al)=>{"use strict";var ng=A("path"),ig=nl(),ci=ol(),fi=Kt(),sg=Yt(),og=t=>t&&typeof t=="object"&&!Array.isArray(t),Q=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(h=>Q(h,e,r));return h=>{for(let E of u){let m=E(h);if(m)return m}return!1}}let n=og(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=fi.isWindows(e),o=n?Q.compileRe(t,e):Q.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=Q(i.ignore,u,r)}let c=(u,f=!1)=>{let{isMatch:h,match:E,output:m}=Q.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:E,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,f?y:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return r&&(c.state=a),c};Q.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?fi.toPosixSlashes:null),a=t===n,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Q.matchBase(t,e,r,i):a=e.exec(l)),{isMatch:Boolean(a),match:a,output:l}};Q.matchBase=(t,e,r,n=fi.isWindows(r))=>(e instanceof RegExp?e:Q.makeRe(e,r)).test(ng.basename(t));Q.isMatch=(t,e,r)=>Q(e,r)(t);Q.parse=(t,e)=>Array.isArray(t)?t.map(r=>Q.parse(r,e)):ci(t,{...e,fastpaths:!1});Q.scan=(t,e)=>ig(t,e);Q.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=Q.toRegex(a,e);return n===!0&&(l.state=t),l};Q.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=ci.fastpaths(t,e)),i.output||(i=ci(t,e)),Q.compileRe(i,e,r,n)};Q.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Q.constants=sg;al.exports=Q});var cl=_((aE,ul)=>{"use strict";ul.exports=ll()});var gl=_((lE,dl)=>{"use strict";var hl=A("util"),pl=Va(),Te=cl(),hi=Kt(),fl=t=>t===""||t==="./",G=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let f=Te(String(e[u]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let E of t){let m=f(E,!0);!(h?!m.isMatch:m.isMatch)||(h?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let c=(o===e.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};G.match=G;G.matcher=(t,e)=>Te(t,e);G.isMatch=(t,e,r)=>Te(e,r)(t);G.any=G.isMatch;G.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(G(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};G.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${hl.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>G.contains(t,n,r));if(typeof e=="string"){if(fl(t)||fl(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return G.isMatch(t,e,{...r,contains:!0})};G.matchKeys=(t,e,r)=>{if(!hi.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=G(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};G.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Te(String(i),r);if(n.some(o=>s(o)))return!0}return!1};G.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Te(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};G.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${hl.inspect(t)}"`);return[].concat(e).every(n=>Te(n,r)(t))};G.capture=(t,e,r)=>{let n=hi.isWindows(r),s=Te.makeRe(String(t),{...r,capture:!0}).exec(n?hi.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};G.makeRe=(...t)=>Te.makeRe(...t);G.scan=(...t)=>Te.scan(...t);G.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of pl(String(n),e))r.push(Te.parse(i,e));return r};G.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:pl(t,e)};G.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return G.braces(t,{...e,expand:!0})};dl.exports=G});var Sl=_(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.matchAny=O.convertPatternsToRe=O.makeRe=O.getPatternParts=O.expandBraceExpansion=O.expandPatternsWithBraceExpansion=O.isAffectDepthOfReadingPattern=O.endsWithSlashGlobStar=O.hasGlobStar=O.getBaseDirectory=O.isPatternRelatedToParentDirectory=O.getPatternsOutsideCurrentDirectory=O.getPatternsInsideCurrentDirectory=O.getPositivePatterns=O.getNegativePatterns=O.isPositivePattern=O.isNegativePattern=O.convertToNegativePattern=O.convertToPositivePattern=O.isDynamicPattern=O.isStaticPattern=void 0;var ag=A("path"),lg=aa(),pi=gl(),_l="**",ug="\\",cg=/[*?]|^!/,fg=/\[[^[]*]/,hg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pg=/[!*+?@]\([^(]*\)/,dg=/,|\.\./;function ml(t,e={}){return!yl(t,e)}O.isStaticPattern=ml;function yl(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(ug)||cg.test(t)||fg.test(t)||hg.test(t)||e.extglob!==!1&&pg.test(t)||e.braceExpansion!==!1&&gg(t))}O.isDynamicPattern=yl;function gg(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return dg.test(n)}function _g(t){return Nr(t)?t.slice(1):t}O.convertToPositivePattern=_g;function mg(t){return"!"+t}O.convertToNegativePattern=mg;function Nr(t){return t.startsWith("!")&&t[1]!=="("}O.isNegativePattern=Nr;function bl(t){return!Nr(t)}O.isPositivePattern=bl;function yg(t){return t.filter(Nr)}O.getNegativePatterns=yg;function bg(t){return t.filter(bl)}O.getPositivePatterns=bg;function vg(t){return t.filter(e=>!di(e))}O.getPatternsInsideCurrentDirectory=vg;function Eg(t){return t.filter(di)}O.getPatternsOutsideCurrentDirectory=Eg;function di(t){return t.startsWith("..")||t.startsWith("./..")}O.isPatternRelatedToParentDirectory=di;function xg(t){return lg(t,{flipBackslashes:!1})}O.getBaseDirectory=xg;function Sg(t){return t.includes(_l)}O.hasGlobStar=Sg;function vl(t){return t.endsWith("/"+_l)}O.endsWithSlashGlobStar=vl;function wg(t){let e=ag.basename(t);return vl(t)||ml(e)}O.isAffectDepthOfReadingPattern=wg;function Ag(t){return t.reduce((e,r)=>e.concat(El(r)),[])}O.expandPatternsWithBraceExpansion=Ag;function El(t){return pi.braces(t,{expand:!0,nodupes:!0})}O.expandBraceExpansion=El;function Rg(t,e){let{parts:r}=pi.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}O.getPatternParts=Rg;function xl(t,e){return pi.makeRe(t,e)}O.makeRe=xl;function Cg(t,e){return t.map(r=>xl(r,e))}O.convertPatternsToRe=Cg;function Og(t,e){return e.some(r=>r.test(t))}O.matchAny=Og});var Cl=_((cE,Rl)=>{"use strict";var Tg=A("stream"),wl=Tg.PassThrough,Pg=Array.prototype.slice;Rl.exports=Dg;function Dg(){let t=[],e=Pg.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=wl(n);function a(){for(let u=0,f=arguments.length;u<f;u++)t.push(Al(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let f=u.length+1;function h(){--f>0||(r=!1,l())}function E(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",S),h()}function S(x){o.emit("error",x)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",S),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)E(u[m]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Al(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Al(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(wl(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Tl=_(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.merge=void 0;var Lg=Cl();function Mg(t){let e=Lg(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Ol(t)),e.once("end",()=>Ol(t)),e}Br.merge=Mg;function Ol(t){t.forEach(e=>e.emit("close"))}});var Pl=_(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.isEmpty=St.isString=void 0;function kg(t){return typeof t=="string"}St.isString=kg;function Ng(t){return t===""}St.isEmpty=Ng});var $e=_(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var Bg=Qo();re.array=Bg;var Ig=Xo();re.errno=Ig;var Fg=zo();re.fs=Fg;var $g=ea();re.path=$g;var Hg=Sl();re.pattern=Hg;var qg=Tl();re.stream=qg;var jg=Pl();re.string=jg});var Ml=_(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var He=$e();function Ug(t,e){let r=Dl(t),n=Ll(t,e.ignore),i=r.filter(l=>He.pattern.isStaticPattern(l,e)),s=r.filter(l=>He.pattern.isDynamicPattern(l,e)),o=gi(i,n,!1),a=gi(s,n,!0);return o.concat(a)}ne.generate=Ug;function gi(t,e,r){let n=[],i=He.pattern.getPatternsOutsideCurrentDirectory(t),s=He.pattern.getPatternsInsideCurrentDirectory(t),o=_i(i),a=_i(s);return n.push(...mi(o,e,r)),"."in a?n.push(yi(".",s,e,r)):n.push(...mi(a,e,r)),n}ne.convertPatternsToTasks=gi;function Dl(t){return He.pattern.getPositivePatterns(t)}ne.getPositivePatterns=Dl;function Ll(t,e){return He.pattern.getNegativePatterns(t).concat(e).map(He.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Ll;function _i(t){let e={};return t.reduce((r,n)=>{let i=He.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}ne.groupPatternsByBaseDirectory=_i;function mi(t,e,r){return Object.keys(t).map(n=>yi(n,t[n],e,r))}ne.convertPatternGroupsToTasks=mi;function yi(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(He.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=yi});var Nl=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.removeDuplicateSlashes=wt.transform=void 0;var Vg=/(?!^)\/{2,}/g;function Wg(t){return t.map(e=>kl(e))}wt.transform=Wg;function kl(t){return t.replace(Vg,"/")}wt.removeDuplicateSlashes=kl});var Il=_(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.read=void 0;function Gg(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Bl(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){bi(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Bl(r,s);return}bi(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),bi(r,o)})})}Ir.read=Gg;function Bl(t,e){t(e)}function bi(t,e){t(null,e)}});var Fl=_(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.read=void 0;function Yg(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Fr.read=Yg});var $l=_(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var $r=A("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:$r.lstat,stat:$r.stat,lstatSync:$r.lstatSync,statSync:$r.statSync};function Kg(t){return t===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),t)}Ve.createFileSystemAdapter=Kg});var ql=_(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var Jg=$l(),Hl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Jg.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};vi.default=Hl});var it=_(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.statSync=We.stat=We.Settings=void 0;var jl=Il(),Qg=Fl(),Ei=ql();We.Settings=Ei.default;function Xg(t,e,r){if(typeof e=="function"){jl.read(t,xi(),e);return}jl.read(t,xi(e),r)}We.stat=Xg;function Zg(t,e){let r=xi(e);return Qg.read(t,r)}We.statSync=Zg;function xi(t={}){return t instanceof Ei.default?t:new Ei.default(t)}});var Wl=_((EE,Vl)=>{var Ul;Vl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ul||(Ul=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Yl=_((xE,Gl)=>{Gl.exports=e_;var zg=Wl();function e_(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(l){function c(){e&&e(l,r),e=null}s?zg(c):c()}function a(l,c,u){r[l]=u,(--n===0||c)&&o(c)}n?i?i.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,f){a(c,u,f)})}):o(null),s=!1}});var Si=_(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Hr=process.versions.node.split(".");if(Hr[0]===void 0||Hr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Kl=Number.parseInt(Hr[0],10),t_=Number.parseInt(Hr[1],10),Jl=10,r_=10,n_=Kl>Jl,i_=Kl===Jl&&t_>=r_;qr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=n_||i_});var Xl=_(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createDirentFromStats=void 0;var Ql=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function s_(t,e){return new Ql(t,e)}jr.createDirentFromStats=s_});var wi=_(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.fs=void 0;var o_=Xl();Ur.fs=o_});var Ai=_(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.joinPathSegments=void 0;function a_(t,e,r){return t.endsWith(r)?t+e:t+r+e}Vr.joinPathSegments=a_});var nu=_(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var l_=it(),Zl=Yl(),u_=Si(),zl=wi(),eu=Ai();function c_(t,e,r){if(!e.stats&&u_.IS_SUPPORT_READDIR_WITH_FILE_TYPES){tu(t,e,r);return}ru(t,e,r)}Ge.read=c_;function tu(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Wr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:eu.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Ri(r,s);return}let o=s.map(a=>f_(a,e));Zl(o,(a,l)=>{if(a!==null){Wr(r,a);return}Ri(r,l)})})}Ge.readdirWithFileTypes=tu;function f_(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=zl.fs.createDirentFromStats(t.name,i),r(null,t)})}}function ru(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Wr(r,n);return}let s=i.map(o=>{let a=eu.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{l_.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let f={name:o,path:a,dirent:zl.fs.createDirentFromStats(o,u)};e.stats&&(f.stats=u),l(null,f)})}});Zl(s,(o,a)=>{if(o!==null){Wr(r,o);return}Ri(r,a)})})}Ge.readdir=ru;function Wr(t,e){t(e)}function Ri(t,e){t(null,e)}});var lu=_(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.readdir=Ye.readdirWithFileTypes=Ye.read=void 0;var h_=it(),p_=Si(),iu=wi(),su=Ai();function d_(t,e){return!e.stats&&p_.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ou(t,e):au(t,e)}Ye.read=d_;function ou(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:su.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=iu.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ye.readdirWithFileTypes=ou;function au(t,e){return e.fs.readdirSync(t).map(n=>{let i=su.joinPathSegments(t,n,e.pathSegmentSeparator),s=h_.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:iu.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Ye.readdir=au});var uu=_(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var At=A("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:At.lstat,stat:At.stat,lstatSync:At.lstatSync,statSync:At.statSync,readdir:At.readdir,readdirSync:At.readdirSync};function g_(t){return t===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),t)}Ke.createFileSystemAdapter=g_});var fu=_(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var __=A("path"),m_=it(),y_=uu(),cu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=y_.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,__.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new m_.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Ci.default=cu});var Gr=_(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Settings=Je.scandirSync=Je.scandir=void 0;var hu=nu(),b_=lu(),Oi=fu();Je.Settings=Oi.default;function v_(t,e,r){if(typeof e=="function"){hu.read(t,Ti(),e);return}hu.read(t,Ti(e),r)}Je.scandir=v_;function E_(t,e){let r=Ti(e);return b_.read(t,r)}Je.scandirSync=E_;function Ti(t={}){return t instanceof Oi.default?t:new Oi.default(t)}});var du=_((LE,pu)=>{"use strict";function x_(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}pu.exports=x_});var _u=_((ME,Pi)=>{"use strict";var S_=du();function gu(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=S_(w_),i=null,s=null,o=0,a=null,l={push:y,drain:de,saturated:de,pause:u,paused:!1,concurrency:r,running:c,resume:E,idle:m,length:f,getQueue:h,unshift:S,empty:de,kill:M,killAndDrain:N,error:z};return l;function c(){return o}function u(){l.paused=!0}function f(){for(var T=i,q=0;T;)T=T.next,q++;return q}function h(){for(var T=i,q=[];T;)q.push(T.value),T=T.next;return q}function E(){if(!!l.paused){l.paused=!1;for(var T=0;T<l.concurrency;T++)o++,x()}}function m(){return o===0&&l.length()===0}function y(T,q){var P=n.get();P.context=t,P.release=x,P.value=T,P.callback=q||de,P.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=P,s=P):(i=P,s=P,l.saturated()):(o++,e.call(t,P.value,P.worked))}function S(T,q){var P=n.get();P.context=t,P.release=x,P.value=T,P.callback=q||de,o===l.concurrency||l.paused?i?(P.next=i,i=P):(i=P,s=P,l.saturated()):(o++,e.call(t,P.value,P.worked))}function x(T){T&&n.release(T);var q=i;q?l.paused?o--:(s===i&&(s=null),i=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&l.empty()):--o===0&&l.drain()}function M(){i=null,s=null,l.drain=de}function N(){i=null,s=null,l.drain(),l.drain=de}function z(T){a=T}}function de(){}function w_(){this.value=null,this.callback=de,this.next=null,this.release=de,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=de,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function A_(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,f){e.call(this,u).then(function(h){f(null,h)},f)}var i=gu(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var f=new Promise(function(h,E){s(u,function(m,y){if(m){E(m);return}h(y)})});return f.catch(de),f}function l(u){var f=new Promise(function(h,E){o(u,function(m,y){if(m){E(m);return}h(y)})});return f.catch(de),f}function c(){var u=i.drain,f=new Promise(function(h){i.drain=function(){u(),h()}});return f}}Pi.exports=gu;Pi.exports.promise=A_});var Yr=_(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.joinPathSegments=Pe.replacePathSegmentSeparator=Pe.isAppliedFilter=Pe.isFatalError=void 0;function R_(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Pe.isFatalError=R_;function C_(t,e){return t===null||t(e)}Pe.isAppliedFilter=C_;function O_(t,e){return t.split(/[/\\]/).join(e)}Pe.replacePathSegmentSeparator=O_;function T_(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Pe.joinPathSegments=T_});var Li=_(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var P_=Yr(),mu=class{constructor(e,r){this._root=e,this._settings=r,this._root=P_.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Di.default=mu});var ki=_(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var D_=A("events"),L_=Gr(),M_=_u(),Kr=Yr(),k_=Li(),yu=class extends k_.default{constructor(e,r){super(e,r);this._settings=r,this._scandir=L_.scandir,this._emitter=new D_.EventEmitter,this._queue=M_(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Kr.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=Kr.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Kr.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Kr.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Mi.default=yu});var vu=_(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var N_=ki(),bu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new N_.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{B_(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{I_(e,this._storage)}),this._reader.read()}};Ni.default=bu;function B_(t,e){t(e)}function I_(t,e){t(null,e)}});var xu=_(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var F_=A("stream"),$_=ki(),Eu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $_.default(this._root,this._settings),this._stream=new F_.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Bi.default=Eu});var wu=_(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var H_=Gr(),Jr=Yr(),q_=Li(),Su=class extends q_.default{constructor(){super(...arguments);this._scandir=H_.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Jr.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Jr.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Jr.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Jr.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ii.default=Su});var Ru=_(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var j_=wu(),Au=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new j_.default(this._root,this._settings)}read(){return this._reader.read()}};Fi.default=Au});var Ou=_($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var U_=A("path"),V_=Gr(),Cu=class{constructor(e={}){this._options=e,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,U_.sep),this.fsScandirSettings=new V_.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};$i.default=Cu});var qi=_(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.Settings=De.walkStream=De.walkSync=De.walk=void 0;var Tu=vu(),W_=xu(),G_=Ru(),Hi=Ou();De.Settings=Hi.default;function Y_(t,e,r){if(typeof e=="function"){new Tu.default(t,Qr()).read(e);return}new Tu.default(t,Qr(e)).read(r)}De.walk=Y_;function K_(t,e){let r=Qr(e);return new G_.default(t,r).read()}De.walkSync=K_;function J_(t,e){let r=Qr(e);return new W_.default(t,r).read()}De.walkStream=J_;function Qr(t={}){return t instanceof Hi.default?t:new Hi.default(t)}});var Ui=_(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var Q_=A("path"),X_=it(),Pu=$e(),Du=class{constructor(e){this._settings=e,this._fsStatSettings=new X_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Q_.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Pu.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Pu.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ji.default=Du});var Wi=_(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var Z_=A("stream"),z_=it(),em=qi(),tm=Ui(),Lu=class extends tm.default{constructor(){super(...arguments);this._walkStream=em.walkStream,this._stat=z_.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Z_.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Vi.default=Lu});var ku=_(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var Rt=$e(),Mu=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Rt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Rt.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Rt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Rt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Rt.array.splitWhen(e,r=>r.dynamic&&Rt.pattern.hasGlobStar(r.pattern))}};Gi.default=Mu});var Bu=_(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var rm=ku(),Nu=class extends rm.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Yi.default=Nu});var Fu=_(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Xr=$e(),nm=Bu(),Iu=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new nm.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Xr.pattern.isAffectDepthOfReadingPattern);return Xr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Xr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Xr.pattern.matchAny(e,r)}};Ki.default=Iu});var Hu=_(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var st=$e(),$u=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=st.pattern.convertPatternsToRe(e,this._micromatchOptions),i=st.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(e.path,n);return this._settings.unique&&s&&this._createIndexRecord(e),s}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=st.path.makeAbsolute(this._settings.cwd,e);return st.pattern.matchAny(n,r)}_isMatchToPatterns(e,r){let n=st.path.removeLeadingDotSegment(e);return st.pattern.matchAny(n,r)||st.pattern.matchAny(n+"/",r)}};Ji.default=$u});var ju=_(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var im=$e(),qu=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return im.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Qi.default=qu});var Wu=_(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});var Uu=$e(),Vu=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Uu.path.makeAbsolute(this._settings.cwd,r),r=Uu.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Xi.default=Vu});var Zr=_(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var sm=A("path"),om=Fu(),am=Hu(),lm=ju(),um=Wu(),Gu=class{constructor(e){this._settings=e,this.errorFilter=new lm.default(this._settings),this.entryFilter=new am.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new om.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new um.default(this._settings)}_getRootDirectory(e){return sm.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Zi.default=Gu});var Ku=_(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var cm=Wi(),fm=Zr(),Yu=class extends fm.default{constructor(){super(...arguments);this._reader=new cm.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=[];return new Promise((s,o)=>{let a=this.api(r,e,n);a.once("error",o),a.on("data",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};zi.default=Yu});var Qu=_(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var hm=A("stream"),pm=Wi(),dm=Zr(),Ju=class extends dm.default{constructor(){super(...arguments);this._reader=new pm.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new hm.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};es.default=Ju});var Zu=_(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var gm=it(),_m=qi(),mm=Ui(),Xu=class extends mm.default{constructor(){super(...arguments);this._walkSync=_m.walkSync,this._statSync=gm.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};ts.default=Xu});var ec=_(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var ym=Zu(),bm=Zr(),zu=class extends bm.default{constructor(){super(...arguments);this._reader=new ym.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};rs.default=zu});var rc=_(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ct=A("fs"),vm=A("os"),Em=Math.max(vm.cpus().length,1);Ot.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,lstatSync:Ct.lstatSync,stat:Ct.stat,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};var tc=class{constructor(e={}){this._options=e,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,Em),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)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Ot.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Ot.default=tc});var os=_((nx,sc)=>{"use strict";var nc=Ml(),ic=Nl(),xm=Ku(),Sm=Qu(),wm=ec(),ns=rc(),ot=$e();async function is(t,e){Tt(t);let r=ss(t,xm.default,e),n=await Promise.all(r);return ot.array.flatten(n)}(function(t){function e(o,a){Tt(o);let l=ss(o,wm.default,a);return ot.array.flatten(l)}t.sync=e;function r(o,a){Tt(o);let l=ss(o,Sm.default,a);return ot.stream.merge(l)}t.stream=r;function n(o,a){Tt(o);let l=ic.transform([].concat(o)),c=new ns.default(a);return nc.generate(l,c)}t.generateTasks=n;function i(o,a){Tt(o);let l=new ns.default(a);return ot.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=i;function s(o){return Tt(o),ot.path.escape(o)}t.escapePath=s})(is||(is={}));function ss(t,e,r){let n=ic.transform([].concat(t)),i=new ns.default(r),s=nc.generate(n,i),o=new e(i);return s.map(o.read,o)}function Tt(t){if(![].concat(t).every(n=>ot.string.isString(n)&&!ot.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}sc.exports=is});var ac=_((ix,as)=>{"use strict";var oc=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};as.exports=oc;as.exports.default=oc});var uc=_((sx,en)=>{"use strict";var Am=ac(),zr=new WeakMap,lc=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(zr.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Am(s,t),zr.set(s,n),s};en.exports=lc;en.exports.default=lc;en.exports.callCount=t=>{if(!zr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return zr.get(t)}});var cc=_((ox,tn)=>{tn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&tn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&tn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var gc=_((ax,Lt)=>{var Y=global.process,at=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};at(Y)?(fc=A("assert"),Pt=cc(),hc=/^win/i.test(Y.platform),Qt=A("events"),typeof Qt!="function"&&(Qt=Qt.EventEmitter),Y.__signal_exit_emitter__?te=Y.__signal_exit_emitter__:(te=Y.__signal_exit_emitter__=new Qt,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Lt.exports=function(t,e){if(!at(global.process))return function(){};fc.equal(typeof t,"function","a callback must be provided for exit handler"),Dt===!1&&ls();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,t),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&rn()};return te.on(r,t),n},rn=function(){!Dt||!at(global.process)||(Dt=!1,Pt.forEach(function(e){try{Y.removeListener(e,nn[e])}catch{}}),Y.emit=sn,Y.reallyExit=us,te.count-=1)},Lt.exports.unload=rn,lt=function(e,r,n){te.emitted[e]||(te.emitted[e]=!0,te.emit(e,r,n))},nn={},Pt.forEach(function(t){nn[t]=function(){if(!!at(global.process)){var r=Y.listeners(t);r.length===te.count&&(rn(),lt("exit",null,t),lt("afterexit",null,t),hc&&t==="SIGHUP"&&(t="SIGINT"),Y.kill(Y.pid,t))}}}),Lt.exports.signals=function(){return Pt},Dt=!1,ls=function(){Dt||!at(global.process)||(Dt=!0,te.count+=1,Pt=Pt.filter(function(e){try{return Y.on(e,nn[e]),!0}catch{return!1}}),Y.emit=dc,Y.reallyExit=pc)},Lt.exports.load=ls,us=Y.reallyExit,pc=function(e){!at(global.process)||(Y.exitCode=e||0,lt("exit",Y.exitCode,null),lt("afterexit",Y.exitCode,null),us.call(Y,Y.exitCode))},sn=Y.emit,dc=function(e,r){if(e==="exit"&&at(global.process)){r!==void 0&&(Y.exitCode=r);var n=sn.apply(this,arguments);return lt("exit",Y.exitCode,null),lt("afterexit",Y.exitCode,null),n}else return sn.apply(this,arguments)}):Lt.exports=function(){return function(){}};var fc,Pt,hc,Qt,te,rn,lt,nn,Dt,ls,us,pc,sn,dc});var vc=_((px,Om)=>{Om.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var Sc=_((dx,xc)=>{"use strict";var an=Object.assign({},vc()),Ec=Object.keys(an);Object.defineProperty(an,"random",{get(){let t=Math.floor(Math.random()*Ec.length),e=Ec[t];return an[e]}});xc.exports=an});var wc=_((Sx,ln)=>{var Lm=function(){"use strict";function t(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],E=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(y,S){if(y===null)return null;if(S==0)return y;var x,M;if(typeof y!="object")return y;if(t.__isArray(y))x=[];else if(t.__isRegExp(y))x=new RegExp(y.source,s(y)),y.lastIndex&&(x.lastIndex=y.lastIndex);else if(t.__isDate(y))x=new Date(y.getTime());else{if(E&&Buffer.isBuffer(y))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(y.length):x=new Buffer(y.length),y.copy(x),x;typeof c>"u"?(M=Object.getPrototypeOf(y),x=Object.create(M)):(x=Object.create(c),M=c)}if(a){var N=f.indexOf(y);if(N!=-1)return h[N];f.push(y),h.push(x)}for(var z in y){var T;M&&(T=Object.getOwnPropertyDescriptor(M,z)),!(T&&T.set==null)&&(x[z]=m(y[z],S-1))}return x}return m(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof ln=="object"&&ln.exports&&(ln.exports=Lm)});var Rc=_((wx,Ac)=>{var Mm=wc();Ac.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Mm(e[r]))}),t}});var Oc=_((Ax,Cc)=>{Cc.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Lc=_((Rx,ps)=>{"use strict";var km=Rc(),zt=Oc(),Pc={nul:0,control:0};ps.exports=function(e){return Dc(e,Pc)};ps.exports.config=function(t){return t=km(t||{},Pc),function(r){return Dc(r,t)}};function Dc(t,e){if(typeof t!="string")return Tc(t,e);for(var r=0,n=0;n<t.length;n++){var i=Tc(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function Tc(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Nm(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Nm(t){var e=0,r=zt.length-1,n;if(t<zt[0][0]||t>zt[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>zt[n][1])e=n+1;else if(t<zt[n][0])r=n-1;else return!0;return!1}});var gs=_((Ox,Mc)=>{Mc.exports=A("stream")});var Ic=_((Tx,Bc)=>{"use strict";function kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bm(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kc(Object(r),!0).forEach(function(n){Im(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Im(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $m(t,e,r){return e&&Nc(t.prototype,e),r&&Nc(t,r),t}var Hm=A("buffer"),un=Hm.Buffer,qm=A("util"),_s=qm.inspect,jm=_s&&_s.custom||"inspect";function Um(t,e,r){un.prototype.copy.call(t,e,r)}Bc.exports=function(){function t(){Fm(this,t),this.head=null,this.tail=null,this.length=0}return $m(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return un.alloc(0);for(var n=un.allocUnsafe(r>>>0),i=this.head,s=0;i;)Um(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=un.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:jm,value:function(r,n){return _s(this,Bm({},n,{depth:0,customInspect:!1}))}}]),t}()});var ys=_((Px,$c)=>{"use strict";function Vm(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ms,this,t)):process.nextTick(ms,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(cn,r):(r._writableState.errorEmitted=!0,process.nextTick(Fc,r,s)):process.nextTick(Fc,r,s):e?(process.nextTick(cn,r),e(s)):process.nextTick(cn,r)}),this)}function Fc(t,e){ms(t,e),cn(t)}function cn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Wm(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ms(t,e){t.emit("error",e)}function Gm(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}$c.exports={destroy:Vm,undestroy:Wm,errorOrDestroy:Gm}});var Qe=_((Dx,jc)=>{"use strict";var qc={};function ge(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,qc[t]=i}function Hc(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Ym(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Km(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Jm(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ge("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ge("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Ym(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Km(t," argument"))i=`The ${t} ${n} ${Hc(e,"type")}`;else{let s=Jm(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Hc(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ge("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ge("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ge("ERR_STREAM_PREMATURE_CLOSE","Premature close");ge("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ge("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ge("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ge("ERR_STREAM_WRITE_AFTER_END","write after end");ge("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ge("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ge("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");jc.exports.codes=qc});var bs=_((Lx,Uc)=>{"use strict";var Qm=Qe().codes.ERR_INVALID_OPT_VALUE;function Xm(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Zm(t,e,r,n){var i=Xm(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Qm(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Uc.exports={getHighWaterMark:Zm}});var Vc=_((Mx,vs)=>{typeof Object.create=="function"?vs.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vs.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ut=_((kx,xs)=>{try{if(Es=A("util"),typeof Es.inherits!="function")throw"";xs.exports=Es.inherits}catch{xs.exports=Vc()}var Es});var Gc=_((Nx,Wc)=>{Wc.exports=A("util").deprecate});var As=_((Bx,Zc)=>{"use strict";Zc.exports=J;function Kc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){A0(e,t)}}var kt;J.WritableState=tr;var zm={deprecate:Gc()},Jc=gs(),hn=A("buffer").Buffer,e0=global.Uint8Array||function(){};function t0(t){return hn.from(t)}function r0(t){return hn.isBuffer(t)||t instanceof e0}var ws=ys(),n0=bs(),i0=n0.getHighWaterMark,Xe=Qe().codes,s0=Xe.ERR_INVALID_ARG_TYPE,o0=Xe.ERR_METHOD_NOT_IMPLEMENTED,a0=Xe.ERR_MULTIPLE_CALLBACK,l0=Xe.ERR_STREAM_CANNOT_PIPE,u0=Xe.ERR_STREAM_DESTROYED,c0=Xe.ERR_STREAM_NULL_VALUES,f0=Xe.ERR_STREAM_WRITE_AFTER_END,h0=Xe.ERR_UNKNOWN_ENCODING,Nt=ws.errorOrDestroy;ut()(J,Jc);function p0(){}function tr(t,e,r){kt=kt||ct(),t=t||{},typeof r!="boolean"&&(r=e instanceof kt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=i0(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){v0(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Kc(this)}tr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(tr.prototype,"buffer",{get:zm.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var fn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(fn=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(e){return fn.call(this,e)?!0:this!==J?!1:e&&e._writableState instanceof tr}})):fn=function(e){return e instanceof this};function J(t){kt=kt||ct();var e=this instanceof kt;if(!e&&!fn.call(J,this))return new J(t);this._writableState=new tr(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Jc.call(this)}J.prototype.pipe=function(){Nt(this,new l0)};function d0(t,e){var r=new f0;Nt(t,r),process.nextTick(e,r)}function g0(t,e,r,n){var i;return r===null?i=new c0:typeof r!="string"&&!e.objectMode&&(i=new s0("chunk",["string","Buffer"],r)),i?(Nt(t,i),process.nextTick(n,i),!1):!0}J.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&r0(t);return s&&!hn.isBuffer(t)&&(t=t0(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=p0),n.ending?d0(this,r):(s||g0(this,n,t,r))&&(n.pendingcb++,i=m0(this,n,s,t,e,r)),i};J.prototype.cork=function(){this._writableState.corked++};J.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Qc(this,t))};J.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new h0(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _0(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=hn.from(e,r)),e}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function m0(t,e,r,n,i,s){if(!r){var o=_0(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ss(t,e,!1,a,n,i,s);return l}function Ss(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new u0("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function y0(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(er,t,e),t._writableState.errorEmitted=!0,Nt(t,n)):(i(n),t._writableState.errorEmitted=!0,Nt(t,n),er(t,e))}function b0(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function v0(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new a0;if(b0(r),e)y0(t,r,n,e,i);else{var s=Xc(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Qc(t,r),n?process.nextTick(Yc,t,r,s,i):Yc(t,r,s,i)}}function Yc(t,e,r,n){r||E0(t,e),e.pendingcb--,n(),er(t,e)}function E0(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Qc(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Ss(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Kc(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(Ss(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}J.prototype._write=function(t,e,r){r(new o0("_write()"))};J.prototype._writev=null;J.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||w0(this,n,r),this};Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Xc(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function x0(t,e){t._final(function(r){e.pendingcb--,r&&Nt(t,r),e.prefinished=!0,t.emit("prefinish"),er(t,e)})}function S0(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(x0,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function er(t,e){var r=Xc(e);if(r&&(S0(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function w0(t,e,r){e.ending=!0,er(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function A0(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});J.prototype.destroy=ws.destroy;J.prototype._undestroy=ws.undestroy;J.prototype._destroy=function(t,e){e(t)}});var ct=_((Ix,ef)=>{"use strict";var R0=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ef.exports=Le;var zc=Os(),Cs=As();ut()(Le,zc);for(Rs=R0(Cs.prototype),pn=0;pn<Rs.length;pn++)dn=Rs[pn],Le.prototype[dn]||(Le.prototype[dn]=Cs.prototype[dn]);var Rs,dn,pn;function Le(t){if(!(this instanceof Le))return new Le(t);zc.call(this,t),Cs.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",C0)))}Object.defineProperty(Le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Le.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Le.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function C0(){this._writableState.ended||process.nextTick(O0,this)}function O0(t){t.end()}Object.defineProperty(Le.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var nf=_((Ts,rf)=>{var gn=A("buffer"),Me=gn.Buffer;function tf(t,e){for(var r in t)e[r]=t[r]}Me.from&&Me.alloc&&Me.allocUnsafe&&Me.allocUnsafeSlow?rf.exports=gn:(tf(gn,Ts),Ts.Buffer=ft);function ft(t,e,r){return Me(t,e,r)}ft.prototype=Object.create(Me.prototype);tf(Me,ft);ft.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Me(t,e,r)};ft.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Me(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ft.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Me(t)};ft.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return gn.SlowBuffer(t)}});var Ls=_(of=>{"use strict";var Ds=nf().Buffer,sf=Ds.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T0(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function P0(t){var e=T0(t);if(typeof e!="string"&&(Ds.isEncoding===sf||!sf(t)))throw new Error("Unknown encoding: "+t);return e||t}of.StringDecoder=rr;function rr(t){this.encoding=P0(t);var e;switch(this.encoding){case"utf16le":this.text=B0,this.end=I0,e=4;break;case"utf8":this.fillLast=M0,e=4;break;case"base64":this.text=F0,this.end=$0,e=3;break;default:this.write=H0,this.end=q0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ds.allocUnsafe(e)}rr.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};rr.prototype.end=N0;rr.prototype.text=k0;rr.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Ps(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function D0(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Ps(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Ps(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Ps(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function L0(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function M0(t){var e=this.lastTotal-this.lastNeed,r=L0(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function k0(t,e){var r=D0(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function N0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function B0(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function I0(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function F0(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function $0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function H0(t){return t.toString(this.encoding)}function q0(t){return t&&t.length?this.write(t):""}});var _n=_(($x,uf)=>{"use strict";var af=Qe().codes.ERR_STREAM_PREMATURE_CLOSE;function j0(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function U0(){}function V0(t){return t.setHeader&&typeof t.abort=="function"}function lf(t,e,r){if(typeof e=="function")return lf(t,null,e);e||(e={}),r=j0(r||U0);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},u=function(m){r.call(t,m)},f=function(){var m;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(m=new af),r.call(t,m);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new af),r.call(t,m)},h=function(){t.req.on("finish",a)};return V0(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}uf.exports=lf});var ff=_((Hx,cf)=>{"use strict";var mn;function Ze(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var W0=_n(),ze=Symbol("lastResolve"),ht=Symbol("lastReject"),nr=Symbol("error"),yn=Symbol("ended"),pt=Symbol("lastPromise"),Ms=Symbol("handlePromise"),dt=Symbol("stream");function et(t,e){return{value:t,done:e}}function G0(t){var e=t[ze];if(e!==null){var r=t[dt].read();r!==null&&(t[pt]=null,t[ze]=null,t[ht]=null,e(et(r,!1)))}}function Y0(t){process.nextTick(G0,t)}function K0(t,e){return function(r,n){t.then(function(){if(e[yn]){r(et(void 0,!0));return}e[Ms](r,n)},n)}}var J0=Object.getPrototypeOf(function(){}),Q0=Object.setPrototypeOf((mn={get stream(){return this[dt]},next:function(){var e=this,r=this[nr];if(r!==null)return Promise.reject(r);if(this[yn])return Promise.resolve(et(void 0,!0));if(this[dt].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[nr]?a(e[nr]):o(et(void 0,!0))})});var n=this[pt],i;if(n)i=new Promise(K0(n,this));else{var s=this[dt].read();if(s!==null)return Promise.resolve(et(s,!1));i=new Promise(this[Ms])}return this[pt]=i,i}},Ze(mn,Symbol.asyncIterator,function(){return this}),Ze(mn,"return",function(){var e=this;return new Promise(function(r,n){e[dt].destroy(null,function(i){if(i){n(i);return}r(et(void 0,!0))})})}),mn),J0),X0=function(e){var r,n=Object.create(Q0,(r={},Ze(r,dt,{value:e,writable:!0}),Ze(r,ze,{value:null,writable:!0}),Ze(r,ht,{value:null,writable:!0}),Ze(r,nr,{value:null,writable:!0}),Ze(r,yn,{value:e._readableState.endEmitted,writable:!0}),Ze(r,Ms,{value:function(s,o){var a=n[dt].read();a?(n[pt]=null,n[ze]=null,n[ht]=null,s(et(a,!1))):(n[ze]=s,n[ht]=o)},writable:!0}),r));return n[pt]=null,W0(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ht];s!==null&&(n[pt]=null,n[ze]=null,n[ht]=null,s(i)),n[nr]=i;return}var o=n[ze];o!==null&&(n[pt]=null,n[ze]=null,n[ht]=null,o(et(void 0,!0))),n[yn]=!0}),e.on("readable",Y0.bind(null,n)),n};cf.exports=X0});var gf=_((qx,df)=>{"use strict";function hf(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Z0(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){hf(s,n,i,o,a,"next",l)}function a(l){hf(s,n,i,o,a,"throw",l)}o(void 0)})}}function pf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function z0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pf(Object(r),!0).forEach(function(n){ey(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ey(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ty=Qe().codes.ERR_INVALID_ARG_TYPE;function ry(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new ty("iterable",["Iterable"],e);var i=new t(z0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=Z0(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}df.exports=ry});var Os=_((Ux,Af)=>{"use strict";Af.exports=B;var Bt;B.ReadableState=bf;var jx=A("events").EventEmitter,yf=function(e,r){return e.listeners(r).length},sr=gs(),bn=A("buffer").Buffer,ny=global.Uint8Array||function(){};function iy(t){return bn.from(t)}function sy(t){return bn.isBuffer(t)||t instanceof ny}var ks=A("util"),L;ks&&ks.debuglog?L=ks.debuglog("stream"):L=function(){};var oy=Ic(),qs=ys(),ay=bs(),ly=ay.getHighWaterMark,vn=Qe().codes,uy=vn.ERR_INVALID_ARG_TYPE,cy=vn.ERR_STREAM_PUSH_AFTER_EOF,fy=vn.ERR_METHOD_NOT_IMPLEMENTED,hy=vn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,It,Ns,Bs;ut()(B,sr);var ir=qs.errorOrDestroy,Is=["error","close","destroy","pause","resume"];function py(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function bf(t,e,r){Bt=Bt||ct(),t=t||{},typeof r!="boolean"&&(r=e instanceof Bt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ly(this,t,"readableHighWaterMark",r),this.buffer=new oy,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(It||(It=Ls().StringDecoder),this.decoder=new It(t.encoding),this.encoding=t.encoding)}function B(t){if(Bt=Bt||ct(),!(this instanceof B))return new B(t);var e=this instanceof Bt;this._readableState=new bf(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),sr.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});B.prototype.destroy=qs.destroy;B.prototype._undestroy=qs.undestroy;B.prototype._destroy=function(t,e){e(t)};B.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=bn.from(t,e),e=""),n=!0),vf(this,t,e,!1,n)};B.prototype.unshift=function(t){return vf(this,t,null,!0,!1)};function vf(t,e,r,n,i){L("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,_y(t,s);else{var o;if(i||(o=dy(s,e)),o)ir(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==bn.prototype&&(e=iy(e)),n)s.endEmitted?ir(t,new hy):Fs(t,s,e,!0);else if(s.ended)ir(t,new cy);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Fs(t,s,e,!1):Hs(t,s)):Fs(t,s,e,!1)}else n||(s.reading=!1,Hs(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Fs(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&En(t)),Hs(t,e)}function dy(t,e){var r;return!sy(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new uy("chunk",["string","Buffer","Uint8Array"],e)),r}B.prototype.isPaused=function(){return this._readableState.flowing===!1};B.prototype.setEncoding=function(t){It||(It=Ls().StringDecoder);var e=new It(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var _f=1073741824;function gy(t){return t>=_f?t=_f:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function mf(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=gy(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}B.prototype.read=function(t){L("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return L("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?$s(this):En(this),null;if(t=mf(t,e),t===0&&e.ended)return e.length===0&&$s(this),null;var n=e.needReadable;L("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,L("length less than watermark",n)),e.ended||e.reading?(n=!1,L("reading or ended",n)):n&&(L("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=mf(r,e)));var i;return t>0?i=Sf(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&$s(this)),i!==null&&this.emit("data",i),i};function _y(t,e){if(L("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?En(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ef(t)))}}function En(t){var e=t._readableState;L("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(L("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Ef,t))}function Ef(t){var e=t._readableState;L("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,js(t)}function Hs(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(my,t,e))}function my(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(L("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}B.prototype._read=function(t){ir(this,new fy("_read()"))};B.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,L("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:y;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,x){L("onunpipe"),S===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){L("onend"),t.end()}var l=yy(r);t.on("drain",l);var c=!1;function u(){L("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(S){L("ondata");var x=t.write(S);L("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&wf(n.pipes,t)!==-1)&&!c&&(L("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(S){L("onerror",S),y(),t.removeListener("error",h),yf(t,"error")===0&&ir(t,S)}py(t,"error",h);function E(){t.removeListener("finish",m),y()}t.once("close",E);function m(){L("onfinish"),t.removeListener("close",E),y()}t.once("finish",m);function y(){L("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(L("pipe resume"),r.resume()),t};function yy(t){return function(){var r=t._readableState;L("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&yf(t,"data")&&(r.flowing=!0,js(t))}}B.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=wf(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};B.prototype.on=function(t,e){var r=sr.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,L("on readable",n.length,n.reading),n.length?En(this):n.reading||process.nextTick(by,this)),r};B.prototype.addListener=B.prototype.on;B.prototype.removeListener=function(t,e){var r=sr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(xf,this),r};B.prototype.removeAllListeners=function(t){var e=sr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(xf,this),e};function xf(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function by(t){L("readable nexttick read 0"),t.read(0)}B.prototype.resume=function(){var t=this._readableState;return t.flowing||(L("resume"),t.flowing=!t.readableListening,vy(this,t)),t.paused=!1,this};function vy(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ey,t,e))}function Ey(t,e){L("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),js(t),e.flowing&&!e.reading&&t.read(0)}B.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function js(t){var e=t._readableState;for(L("flow",e.flowing);e.flowing&&t.read()!==null;);}B.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(L("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(L("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var s=0;s<Is.length;s++)t.on(Is[s],this.emit.bind(this,Is[s]));return this._read=function(o){L("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return Ns===void 0&&(Ns=ff()),Ns(this)});Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});B._fromList=Sf;Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Sf(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function $s(t){var e=t._readableState;L("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(xy,e,t))}function xy(t,e){if(L("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(B.from=function(t,e){return Bs===void 0&&(Bs=gf()),Bs(B,t,e)});function wf(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Us=_((Vx,Cf)=>{"use strict";Cf.exports=je;var xn=Qe().codes,Sy=xn.ERR_METHOD_NOT_IMPLEMENTED,wy=xn.ERR_MULTIPLE_CALLBACK,Ay=xn.ERR_TRANSFORM_ALREADY_TRANSFORMING,Ry=xn.ERR_TRANSFORM_WITH_LENGTH_0,Sn=ct();ut()(je,Sn);function Cy(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new wy);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function je(t){if(!(this instanceof je))return new je(t);Sn.call(this,t),this._transformState={afterTransform:Cy.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Oy)}function Oy(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Rf(t,e,r)}):Rf(this,null,null)}je.prototype.push=function(t,e){return this._transformState.needTransform=!1,Sn.prototype.push.call(this,t,e)};je.prototype._transform=function(t,e,r){r(new Sy("_transform()"))};je.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};je.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};je.prototype._destroy=function(t,e){Sn.prototype._destroy.call(this,t,function(r){e(r)})};function Rf(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Ry;if(t._transformState.transforming)throw new Ay;return t.push(null)}});var Pf=_((Wx,Tf)=>{"use strict";Tf.exports=or;var Of=Us();ut()(or,Of);function or(t){if(!(this instanceof or))return new or(t);Of.call(this,t)}or.prototype._transform=function(t,e,r){r(null,t)}});var Nf=_((Gx,kf)=>{"use strict";var Vs;function Ty(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Mf=Qe().codes,Py=Mf.ERR_MISSING_ARGS,Dy=Mf.ERR_STREAM_DESTROYED;function Df(t){if(t)throw t}function Ly(t){return t.setHeader&&typeof t.abort=="function"}function My(t,e,r,n){n=Ty(n);var i=!1;t.on("close",function(){i=!0}),Vs===void 0&&(Vs=_n()),Vs(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Ly(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Dy("pipe"))}}}function Lf(t){t()}function ky(t,e){return t.pipe(e)}function Ny(t){return!t.length||typeof t[t.length-1]!="function"?Df:t.pop()}function By(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ny(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Py("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,c=a>0;return My(o,l,c,function(u){i||(i=u),u&&s.forEach(Lf),!l&&(s.forEach(Lf),n(i))})});return e.reduce(ky)}kf.exports=By});var Bf=_((_e,lr)=>{var ar=A("stream");process.env.READABLE_STREAM==="disable"&&ar?(lr.exports=ar.Readable,Object.assign(lr.exports,ar),lr.exports.Stream=ar):(_e=lr.exports=Os(),_e.Stream=ar||_e,_e.Readable=_e,_e.Writable=As(),_e.Duplex=ct(),_e.Transform=Us(),_e.PassThrough=Pf(),_e.finished=_n(),_e.pipeline=Nf())});var $f=_((Yx,Ff)=>{"use strict";var{Buffer:Ee}=A("buffer"),If=Symbol.for("BufferList");function U(t){if(!(this instanceof U))return new U(t);U._init.call(this,t)}U._init=function(e){Object.defineProperty(this,If,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};U.prototype._new=function(e){return new U(e)};U.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};U.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};U.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};U.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};U.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Ee.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ee.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(e,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(e=Ee.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};U.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};U.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};U.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};U.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};U.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Ee.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Ee.from(e));return this};U.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};U.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Ee.from([t]):typeof t=="string"?t=Ee.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Ee.from(t.buffer,t.byteOffset,t.byteLength):Ee.isBuffer(t)||(t=Ee.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};U.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?U.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:U.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();U.prototype._isBufferList=function(e){return e instanceof U||U.isBufferList(e)};U.isBufferList=function(e){return e!=null&&e[If]};Ff.exports=U});var Hf=_((Kx,wn)=>{"use strict";var Ws=Bf().Duplex,Iy=ut(),ur=$f();function ie(t){if(!(this instanceof ie))return new ie(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}ur._init.call(this,t),Ws.call(this)}Iy(ie,Ws);Object.assign(ie.prototype,ur.prototype);ie.prototype._new=function(e){return new ie(e)};ie.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};ie.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};ie.prototype.end=function(e){Ws.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ie.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};ie.prototype._isBufferList=function(e){return e instanceof ie||e instanceof ur||ie.isBufferList(e)};ie.isBufferList=ur.isBufferList;wn.exports=ie;wn.exports.BufferListStream=ie;wn.exports.BufferList=ur});var fo=_((Bw,Eh)=>{var Mn=A("fs"),vh=A("path"),Vb=A("os");function uo(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function co(t,e){try{return e(t)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",t),!1;throw r}}var Wb={nil:function(t){return t==null},array:function(t){return Array.isArray(t)},emptyObject:function(t){for(var e in t)return!1;return!0},buffer:function(t){return Buffer.isBuffer(t)},regExp:function(t){return uo(t,"RegExp")},string:function(t){return uo(t,"String")},func:function(t){return typeof t=="function"},number:function(t){return uo(t,"Number")},exists:function(t){return Mn.existsSync(t)},file:function(t){return co(t,function(e){return Mn.statSync(e).isFile()})},samePath:function(t,e){return vh.resolve(t)===vh.resolve(e)},directory:function(t){return co(t,function(e){return Mn.statSync(e).isDirectory()})},symbolicLink:function(t){return co(t,function(e){return Mn.lstatSync(e).isSymbolicLink()})},windows:function(){return Vb.platform()==="win32"}};Eh.exports=Wb});var Rh=_((Iw,Ah)=>{var _r=A("fs"),xh=A("os"),ho=A("path"),kn=fo(),gr,Gb=xh.tmpdir&&xh.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function wh(){this.stack=[]}wh.prototype={create:function(t,e){var r=ho.join(e,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:t}),r},write:function(){for(var t=0;t<arguments.length;++t)_r.writeFileSync(arguments[t]," ")},mkdir:function(){for(var t=0;t<arguments.length;++t)_r.mkdirSync(arguments[t])},cleanup:function(t){try{for(var e;e=this.stack.pop();){var r=e.type,n=e.name;r==="file"&&kn.file(n)?_r.unlinkSync(n):r==="dir"&&kn.directory(n)&&_r.rmdirSync(n)}}finally{kn.func(t)&&t()}}};var Sh=!1;Ah.exports=function t(e){if(!kn.func(e))return!1;if(gr!==void 0)return e(gr);if(!Sh)Sh=!0;else return setTimeout(function(){t(e)},300);var r=new wh,n=r.create("dir",Gb),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=_r.watch(n,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(gr=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(gr=!1)})},200);a.on("change",function(c,u){ho.basename(s)===ho.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(gr=!0)}))}),r.write(s)}});var Ih=_((Fw,mo)=>{var go=A("fs"),mr=A("path"),Oh=A("util"),Th=A("events"),Ph=Rh(),j=fo(),Yb="update",Dh="remove",Ch=Symbol("skip");function Kb(t){return t.some(function(e,r,n){return n.indexOf(e)!==r})}function _o(t){return t.filter(function(e,r,n){return n.indexOf(e)===r})}function Jb(t){return t.reduce(function(e,r){return e.concat(r)},[])}function Qb(t){if(t&&t!=="buffer"&&!Buffer.isEncoding(t))throw new Error("Unknown encoding: "+t)}function Xb(t){return j.func(t)?function(e,r){t(e,!1)&&r()}:j.regExp(t)?function(e,r){t.test(e)&&r()}:function(e,r){r()}}function Zb(t){return t.map(function(e){return j.exists(e)?[Yb,e]:[Dh,e]})}function zb(t){var e=_o(t),r=/~$|^\.#|^##$/g,n=t.some(function(s){return r.test(s)});if(n){var i=Kb(t.map(function(s){return s.replace(r,"")}));i&&(e=e.filter(function(s){return j.exists(s)}))}return Zb(e)}function ev(t,e){var r,n=[],i=t.options.encoding,s=t.options.delay;j.number(s)||(s=200);function o(){zb(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),e.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function Lh(){var t={};return function(e){return function(r,n){t[r+n]=[r,n],setTimeout(function(){Object.keys(t).forEach(function(i){e.apply(null,t[i])}),t={}})}}}function Mh(t,e,r=function(){}){j.directory(t)?go.readdir(t,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",t);else throw n;else i.forEach(function(s){var o=mr.join(t,s);j.directory(o)&&e(o)}),r()}):r()}function tv(t){var e=0;return function(){return e++,function(){e--,e===0&&t()}}}function rv(){return function(){}}function kh(t,e){return!j.func(e)||e(t,Ch)!==Ch}var Nh=Oh.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Ne(){Th.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Oh.inherits(Ne,Th.EventEmitter);Ne.prototype.expose=function(){var t={},e=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){t[n]=function(){return e[n].apply(e,arguments)}}),t};Ne.prototype.isClosed=function(){return this._isClosed};Ne.prototype.close=function(t){var e=this;if(t){var r=this.watchers[t];r&&r.close&&(r.close(),delete e.watchers[t]),Mh(t,function(n){e.close(n)})}else Object.keys(e.watchers).forEach(function(n){var i=e.watchers[n];i&&i.close&&i.close()}),this.watchers={};j.emptyObject(e.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Bh,this)))};Ne.prototype.getWatchedPaths=function(t){if(j.func(t)){var e=this;e._isReady?t(Object.keys(e.watchers)):e.on("ready",function(){t(Object.keys(e.watchers))})}};function po(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function Bh(t){t.emit("close")}Ne.prototype.add=function(t,e){var r=this;e=e||{fpath:""};var n=mr.resolve(e.fpath);this.watchers[n]=t;var i=function(o,a){if(!r.isClosed()){var l=a;j.nil(l)&&(l=""),l=mr.join(e.fpath,l),e.options.recursive&&Ph(function(c){if(!c){var u=mr.resolve(l);if(!j.exists(l))r.close(u);else{var f=j.directory(l)&&!r.watchers[u]&&kh(l,e.options.filter);f&&r.watchDirectory(l,e.options)}}}),s(o,l)}},s=ev(e,function(o,a){if(e.compareName)e.compareName(a)&&r.emit("change",o,a);else{var l=Xb(e.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});t.on("error",function(o){r.isClosed()||(j.windows()&&o.code==="EPERM"?(t.emit("change",Dh,e.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),t.on("change",i)};Ne.prototype.watchFile=function(t,e,r){var n=mr.join(t,"../"),i=Object.assign({},e,{filter:null,encoding:"utf8"});delete i.recursive;var s=go.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:e.encoding}),compareName:function(o){return j.samePath(o,t)}}),j.func(r)&&(r.length===1&&Nh(),this.on("change",r))};Ne.prototype.watchDirectory=function(t,e,r,n=rv){var i=this,s=n();Ph(function(o){e.recursive=!!e.recursive;var a=Object.assign({},e,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=go.watch(t,a);i.add(l,{type:"dir",fpath:t,options:e}),j.func(r)&&(r.length===1&&Nh(),i.on("change",r)),e.recursive&&!o&&Mh(t,function(c){kh(c,e.filter)&&i.watchDirectory(c,e,null,n)},n()),s()})};function nv(t){var e=new Ne,r=Lh(),n=t.length;return t.forEach(function(i){i.on("change",r(function(s,o){e.emit("change",s,o)})),i.on("error",function(s){e.emit("error",s)}),i.on("ready",function(){--n||po(e)})}),e.close=function(){t.forEach(function(i){i.close()}),process.nextTick(Bh,e)},e.getWatchedPaths=function(i){if(j.func(i)){var s=t.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=_o(Jb(o));i(a)})}},e.expose()}function Nn(t,e,r){var n=new Ne;if(j.buffer(t)&&(t=t.toString()),!j.array(t)&&!j.exists(t)&&n.emit("error",new Error(t+" does not exist.")),j.string(e)&&(e={encoding:e}),j.func(e)&&(r=e,e={}),arguments.length<2&&(e={}),e.encoding?Qb(e.encoding):e.encoding="utf8",j.array(t)){if(t.length===1)return Nn(t[0],e,r);var i=Lh();return nv(_o(t).map(function(o){var a=Nn(o,e);return j.func(r)&&a.on("change",i(r)),a}))}if(j.file(t))n.watchFile(t,e,r),po(n);else if(j.directory(t)){var s=tv(function(){po(n)});n.watchDirectory(t,e,r,s)}return n.expose()}mo.exports=Nn;mo.exports.default=Nn});var bo=(t=0)=>e=>`\x1B[${e+t}m`,vo=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Eo=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function Xh(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=bo(),e.color.ansi256=vo(),e.color.ansi16m=Eo(),e.bgColor.ansi=bo(10),e.bgColor.ansi256=vo(10),e.bgColor.ansi16m=Eo(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>e.rgbToAnsi256(...e.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var Zh=Xh(),be=Zh;import In from"node:process";import zh from"node:os";import xo from"node:tty";function he(t,e=In.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:X}=In,xr;he("no-color")||he("no-colors")||he("color=false")||he("color=never")?xr=0:(he("color")||he("colors")||he("color=true")||he("color=always"))&&(xr=1);function ep(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function tp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function rp(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=ep();n!==void 0&&(xr=n);let i=r?xr:n;if(i===0)return 0;if(r){if(he("color=16m")||he("color=full")||he("color=truecolor"))return 3;if(he("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(In.platform==="win32"){let o=zh.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function So(t,e={}){let r=rp(t,{streamIsTTY:t&&t.isTTY,...e});return tp(r)}var np={stdout:So({isTTY:xo.isatty(1)}),stderr:So({isTTY:xo.isatty(2)})},wo=np;function Ao(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function Ro(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
30
24
  `:`
31
25
  `)+r,i=n+1,n=t.indexOf(`
32
- `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:ja,stderr:Ha}=Ba,Mi=Symbol("GENERATOR"),$t=Symbol("STYLER"),mr=Symbol("IS_EMPTY"),Ua=["ansi","ansi","ansi256","ansi16m"],jt=Object.create(null),Yg=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ja?ja.level:0;t.level=e.level===void 0?r:e.level};var Kg=t=>{let e=(...r)=>r.join(" ");return Yg(e,t),Object.setPrototypeOf(e,gr.prototype),e};function gr(t){return Kg(t)}Object.setPrototypeOf(gr.prototype,Function.prototype);for(let[t,e]of Object.entries(Fe))jt[t]={get(){let r=sn(this,Bi(e.open,e.close,this[$t]),this[mr]);return Object.defineProperty(this,t,{value:r}),r}};jt.visible={get(){let t=sn(this,this[$t],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Ii=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Fe[r].ansi16m(...n):e==="ansi256"?Fe[r].ansi256(Fe.rgbToAnsi256(...n)):Fe[r].ansi(Fe.rgbToAnsi(...n)):t==="hex"?Ii("rgb",e,r,...Fe.hexToRgb(...n)):Fe[r][t](...n),Jg=["rgb","hex","ansi256"];for(let t of Jg){jt[t]={get(){let{level:r}=this;return function(...n){let i=Bi(Ii(t,Ua[r],"color",...n),Fe.color.close,this[$t]);return sn(this,i,this[mr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);jt[e]={get(){let{level:r}=this;return function(...n){let i=Bi(Ii(t,Ua[r],"bgColor",...n),Fe.bgColor.close,this[$t]);return sn(this,i,this[mr])}}}}var Qg=Object.defineProperties(()=>{},{...jt,level:{enumerable:!0,get(){return this[Mi].level},set(t){this[Mi].level=t}}}),Bi=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},sn=(t,e,r)=>{let n=(...i)=>Xg(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Qg),n[Mi]=t,n[$t]=e,n[mr]=r,n},Xg=(t,e)=>{if(t.level<=0||!e)return t[mr]?"":e;let r=t[$t];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=qa(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
33
- `);return s!==-1&&(e=$a(e,i,n,s)),n+e+i};Object.defineProperties(gr.prototype,jt);var Zg=gr(),AA=gr({level:Ha?Ha.level:0});var M=Zg;u();var uu=je(au(),1),{program:LA,createCommand:NA,createArgument:MA,createOption:IA,CommanderError:BA,InvalidArgumentError:qA,Command:lu,Argument:$A,Option:jA,Help:HA}=uu.default;u();import{dirname as wd,extname as wx,isAbsolute as Rx,resolve as Ax,resolve as di}from"path";import{build as ia,transform as Ox}from"esbuild";import{constants as Cx,copyFileSync as Tx,existsSync as Rd,mkdirSync as Px,readFileSync as oa,rmSync as Sd,writeFileSync as Ad}from"fs";var sa=je(io(),1);import{env as Ed}from"process";u();import oi from"node:process";u();import Lf from"node:process";u();var Df=je(wf(),1),kf=je(Pf(),1);import mE from"node:process";var gE=(0,Df.default)(()=>{(0,kf.default)(()=>{mE.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Ff=gE;var jn=!1,tr={};tr.show=(t=Lf.stderr)=>{!t.isTTY||(jn=!1,t.write("\x1B[?25h"))};tr.hide=(t=Lf.stderr)=>{!t.isTTY||(Ff(),jn=!0,t.write("\x1B[?25l"))};tr.toggle=(t,e)=>{t!==void 0&&(jn=t),jn?tr.show(e):tr.hide(e)};var uo=tr;var Mr=je(Bf(),1);u();u();function xr(){return process.platform!=="win32"?process.env.TERM!=="linux":Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}var yE={info:M.blue("ℹ"),success:M.green("✔"),warning:M.yellow("⚠"),error:M.red("✖")},SE={info:M.blue("i"),success:M.green("√"),warning:M.yellow("‼"),error:M.red("×")},EE=xr()?yE:SE,wr=EE;u();u();function lo({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function co(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(lo(),"")}var rd=je(Yf(),1);u();function ho({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}u();var td=je(ed(),1);import Me from"node:process";import Ob from"node:readline";var Cb=3,Go=class{#r=0;#c=new td.BufferListStream;#i;#n;constructor(){this.#c.pipe(Me.stdout);let e=this;this.#i=function(r,n,...i){let{stdin:s}=Me;if(e.#r>0||s.emit===e.#i){if(r==="keypress")return;r==="data"&&n.includes(Cb)&&Me.emit("SIGINT"),Reflect.apply(e.#i,this,[r,n,...i])}else Reflect.apply(Me.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){Me.platform!=="win32"&&(this.#n=Ob.createInterface({input:Me.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{Me.listenerCount("SIGINT")===0?Me.emit("SIGINT"):(this.#n.close(),Me.kill(Me.pid,"SIGINT"))}))}_realStop(){Me.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var ai,nd=class{#r=0;#c=!1;#i=0;#n=0;#e;#o;#t;#f;#h;#a;#u;#l;#d;#s;color;constructor(e){ai||(ai=new Go),typeof e=="string"&&(e={text:e}),this.#e={color:"cyan",stream:oi.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:ho({stream:this.#t}),this.#u=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,oi.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#l}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#l=e,this.updateLineCount()}get interval(){return this.#h||this.#o.interval||100}get spinner(){return this.#o}set spinner(e){if(this.#n=0,this.#h=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=e}else if(!xr())this.#o=Mr.default.line;else if(e===void 0)this.#o=Mr.default.dots;else if(e!=="default"&&Mr.default[e])this.#o=Mr.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#d}set text(e){this.#d=e||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(e){this.#s=e||"",this.updateLineCount()}get isSpinning(){return this.#f!==void 0}getFullPrefixText(e=this.#s,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of co(" ".repeat(this.#l)+r+"--"+this.#d).split(`
34
- `))this.#i+=Math.max(1,Math.ceil((0,rd.default)(n)/e))}get isEnabled(){return this.#a&&!this.#u}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=e}get isSilent(){return this.#u}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=e}frame(){let{frames:e}=this.#o,r=e[this.#n];this.color&&(r=M[this.color](r)),this.#n=++this.#n%e.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let e=0;e<this.#r;e++)e>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#l||this.lastIndent!==this.#l)&&this.#t.cursorTo(this.#l),this.lastIndent=this.#l,this.#r=0,this}render(){return this.#u?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(e){return e&&(this.text=e),this.#u?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&uo.hide(this.#t),this.#e.discardStdin&&oi.stdin.isTTY&&(this.#c=!0,ai.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
35
- `),this)}stop(){return this.#a?(clearInterval(this.#f),this.#f=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&uo.show(this.#t),this.#e.discardStdin&&oi.stdin.isTTY&&this.#c&&(ai.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:wr.success,text:e})}fail(e){return this.stopAndPersist({symbol:wr.error,text:e})}warn(e){return this.stopAndPersist({symbol:wr.warning,text:e})}info(e){return this.stopAndPersist({symbol:wr.info,text:e})}stopAndPersist(e={}){if(this.#u)return this;let r=e.prefixText||this.#s,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
36
- `),this}};function xe(t){return new nd(t)}u();u();var id={NODE_ENV:"production"};try{let{env:t}=await import("process");t.NODE_ENV&&(id.NODE_ENV=t.NODE_ENV)}catch{}var Vo=id.NODE_ENV==="development";u();import{Console as Tb}from"console";var Lt=new Tb({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),Pe=t=>{if(Vo){let{name:e}=t;return{log(...r){let n=M.bgBlue.white(` [${e}] `);Lt.log(`${n}`,`
26
+ `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Co,stderr:Oo}=wo,Fn=Symbol("GENERATOR"),yt=Symbol("STYLER"),Ut=Symbol("IS_EMPTY"),To=["ansi","ansi","ansi256","ansi16m"],bt=Object.create(null),ip=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Co?Co.level:0;t.level=e.level===void 0?r:e.level};var sp=t=>{let e=(...r)=>r.join(" ");return ip(e,t),Object.setPrototypeOf(e,Vt.prototype),e};function Vt(t){return sp(t)}Object.setPrototypeOf(Vt.prototype,Function.prototype);for(let[t,e]of Object.entries(be))bt[t]={get(){let r=Sr(this,Hn(e.open,e.close,this[yt]),this[Ut]);return Object.defineProperty(this,t,{value:r}),r}};bt.visible={get(){let t=Sr(this,this[yt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var $n=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?be[r].ansi16m(...n):e==="ansi256"?be[r].ansi256(be.rgbToAnsi256(...n)):be[r].ansi(be.rgbToAnsi(...n)):t==="hex"?$n("rgb",e,r,...be.hexToRgb(...n)):be[r][t](...n),op=["rgb","hex","ansi256"];for(let t of op){bt[t]={get(){let{level:r}=this;return function(...n){let i=Hn($n(t,To[r],"color",...n),be.color.close,this[yt]);return Sr(this,i,this[Ut])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);bt[e]={get(){let{level:r}=this;return function(...n){let i=Hn($n(t,To[r],"bgColor",...n),be.bgColor.close,this[yt]);return Sr(this,i,this[Ut])}}}}var ap=Object.defineProperties(()=>{},{...bt,level:{enumerable:!0,get(){return this[Fn].level},set(t){this[Fn].level=t}}}),Hn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Sr=(t,e,r)=>{let n=(...i)=>lp(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ap),n[Fn]=t,n[yt]=e,n[Ut]=r,n},lp=(t,e)=>{if(t.level<=0||!e)return t[Ut]?"":e;let r=t[yt];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Ao(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
27
+ `);return s!==-1&&(e=Ro(e,i,n,s)),n+e+i};Object.defineProperties(Vt.prototype,bt);var up=Vt(),Ev=Vt({level:Oo?Oo.level:0});var C=up;var Ko=Be(Yo(),1),{program:Tv,createCommand:Pv,createArgument:Dv,createOption:Lv,CommanderError:Mv,InvalidArgumentError:kv,Command:Jo,Argument:Nv,Option:Bv,Help:Iv}=Ko.default;import{constants as Tb,existsSync as ch}from"fs";import{copyFile as Pb,mkdir as Db,readFile as oo,rm as sh,writeFile as fh}from"fs/promises";import{dirname as hh,extname as Lb,isAbsolute as Mb,resolve as kb,resolve as Ln}from"path";import{build as io,transform as Nb}from"esbuild";var so=Be(os(),1);import{env as oh}from"process";import An from"node:process";import bc from"node:process";var _c=Be(uc(),1),mc=Be(gc(),1);import Rm from"node:process";var Cm=(0,_c.default)(()=>{(0,mc.default)(()=>{Rm.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),yc=Cm;var on=!1,Mt={};Mt.show=(t=bc.stderr)=>{!t.isTTY||(on=!1,t.write("\x1B[?25h"))};Mt.hide=(t=bc.stderr)=>{!t.isTTY||(yc(),on=!0,t.write("\x1B[?25l"))};Mt.toggle=(t,e)=>{t!==void 0&&(on=t),on?Mt.show(e):Mt.hide(e)};var cs=Mt;var cr=Be(Sc(),1);import qe from"node:process";function Xt(){return qe.platform!=="win32"?qe.env.TERM!=="linux":Boolean(qe.env.CI)||Boolean(qe.env.WT_SESSION)||qe.env.ConEmuTask==="{cmd::Cmder}"||qe.env.TERM_PROGRAM==="vscode"||qe.env.TERM==="xterm-256color"||qe.env.TERM==="alacritty"||qe.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Tm={info:C.blue("ℹ"),success:C.green("✔"),warning:C.yellow("⚠"),error:C.red("✖")},Pm={info:C.blue("i"),success:C.green("√"),warning:C.yellow("‼"),error:C.red("×")},Dm=Xt()?Tm:Pm,Zt=Dm;function fs({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function hs(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(fs(),"")}var jf=Be(Lc(),1);function ds({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var qf=Be(Hf(),1);import xe from"node:process";import Fy from"node:readline";var $y=3,Gs=class{#r=0;#c=new qf.BufferListStream;#i;#n;constructor(){this.#c.pipe(xe.stdout);let e=this;this.#i=function(r,n,...i){let{stdin:s}=xe;if(e.#r>0||s.emit===e.#i){if(r==="keypress")return;r==="data"&&n.includes($y)&&xe.emit("SIGINT"),Reflect.apply(e.#i,this,[r,n,...i])}else Reflect.apply(xe.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){xe.platform!=="win32"&&(this.#n=Fy.createInterface({input:xe.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{xe.listenerCount("SIGINT")===0?xe.emit("SIGINT"):(this.#n.close(),xe.kill(xe.pid,"SIGINT"))}))}_realStop(){xe.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var Rn,Uf=class{#r=0;#c=!1;#i=0;#n=0;#e;#o;#t;#f;#h;#a;#l;#u;#p;#s;color;constructor(e){Rn||(Rn=new Gs),typeof e=="string"&&(e={text:e}),this.#e={color:"cyan",stream:An.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:ds({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,An.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#u}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#u=e,this.updateLineCount()}get interval(){return this.#h||this.#o.interval||100}get spinner(){return this.#o}set spinner(e){if(this.#n=0,this.#h=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=e}else if(!Xt())this.#o=cr.default.line;else if(e===void 0)this.#o=cr.default.dots;else if(e!=="default"&&cr.default[e])this.#o=cr.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#p}set text(e){this.#p=e||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(e){this.#s=e||"",this.updateLineCount()}get isSpinning(){return this.#f!==void 0}getFullPrefixText(e=this.#s,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of hs(" ".repeat(this.#u)+r+"--"+this.#p).split(`
28
+ `))this.#i+=Math.max(1,Math.ceil((0,jf.default)(n)/e))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=e}get isSilent(){return this.#l}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=e}frame(){let{frames:e}=this.#o,r=e[this.#n];this.color&&(r=C[this.color](r)),this.#n=++this.#n%e.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let e=0;e<this.#r;e++)e>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#u||this.lastIndent!==this.#u)&&this.#t.cursorTo(this.#u),this.lastIndent=this.#u,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(e){return e&&(this.text=e),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&cs.hide(this.#t),this.#e.discardStdin&&An.stdin.isTTY&&(this.#c=!0,Rn.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
29
+ `),this)}stop(){return this.#a?(clearInterval(this.#f),this.#f=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&cs.show(this.#t),this.#e.discardStdin&&An.stdin.isTTY&&this.#c&&(Rn.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Zt.success,text:e})}fail(e){return this.stopAndPersist({symbol:Zt.error,text:e})}warn(e){return this.stopAndPersist({symbol:Zt.warning,text:e})}info(e){return this.stopAndPersist({symbol:Zt.info,text:e})}stopAndPersist(e={}){if(this.#l)return this;let r=e.prefixText||this.#s,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
30
+ `),this}};function fe(t){return new Uf(t)}var Vf={NODE_ENV:"production"};try{let{env:t}=await import("process");t.NODE_ENV&&(Vf.NODE_ENV=t.NODE_ENV)}catch{}var Ys=Vf.NODE_ENV==="development";import{Console as Hy}from"console";var gt=new Hy({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),Se=t=>{if(Ys){let{name:e}=t;return{log(...r){let n=C.bgBlue.white(` [${e}] `);gt.log(`${n}`,`
37
31
 
38
- `,...r),Lt.log()},group(){Lt.log();let r=M.bgBlue.white(` [${e}] `);Lt.group(r),Lt.log()},groupEnd(){Lt.log(`
32
+ `,...r),gt.log()},group(){gt.log();let r=C.bgBlue.white(` [${e}] `);gt.group(r),gt.log()},groupEnd(){gt.log(`
39
33
  `,"-".repeat(20),`
40
- `),Lt.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var Ie=(...t)=>{console.log(),console.log(...t),console.log()};u();import{spawn as Pb,execSync as Db}from"child_process";import Xo from"node:process";import Lb from"node:os";import ud from"node:tty";await(async()=>{let{dirname:t}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=t(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var sd=(t=0)=>e=>`\x1B[${e+t}m`,od=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ad=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function kb(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=sd(),e.color.ansi256=od(),e.color.ansi16m=ad(),e.bgColor.ansi=sd(10),e.bgColor.ansi256=od(10),e.bgColor.ansi16m=ad(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>e.rgbToAnsi256(...e.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var Fb=kb(),Je=Fb;function De(t,e=Xo.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:se}=Xo,ui;De("no-color")||De("no-colors")||De("color=false")||De("color=never")?ui=0:(De("color")||De("colors")||De("color=true")||De("color=always"))&&(ui=1);function Nb(){if("FORCE_COLOR"in se)return se.FORCE_COLOR==="true"?1:se.FORCE_COLOR==="false"?0:se.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(se.FORCE_COLOR,10),3)}function Mb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ib(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Nb();n!==void 0&&(ui=n);let i=r?ui:n;if(i===0)return 0;if(r){if(De("color=16m")||De("color=full")||De("color=truecolor"))return 3;if(De("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let s=i||0;if(se.TERM==="dumb")return s;if(Xo.platform==="win32"){let o=Lb.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in se)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in se)||se.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(se.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in se&&"AGENT_NAME"in se)return 1;if(se.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in se){let o=Number.parseInt((se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(se.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(se.TERM)||"COLORTERM"in se?1:s}function ld(t,e={}){let r=Ib(t,{streamIsTTY:t&&t.isTTY,...e});return Mb(r)}var Bb={stdout:ld({isTTY:ud.isatty(1)}),stderr:ld({isTTY:ud.isatty(2)})},qb=Bb;function $b(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function jb(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
34
+ `),gt.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var we=(...t)=>{console.log(),console.log(...t),console.log()};import{spawn as qy,execSync as jy}from"child_process";import Zs from"node:process";import Wy from"node:os";import Kf from"node:tty";await(async()=>{let{dirname:t}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=t(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var Wf=(t=0)=>e=>`\x1B[${e+t}m`,Gf=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Yf=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function Uy(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Wf(),e.color.ansi256=Gf(),e.color.ansi16m=Yf(),e.bgColor.ansi=Wf(10),e.bgColor.ansi256=Gf(10),e.bgColor.ansi16m=Yf(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>e.rgbToAnsi256(...e.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var Vy=Uy(),ke=Vy;function me(t,e=Zs.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Z}=Zs,Cn;me("no-color")||me("no-colors")||me("color=false")||me("color=never")?Cn=0:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(Cn=1);function Gy(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}function Yy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ky(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Gy();n!==void 0&&(Cn=n);let i=r?Cn:n;if(i===0)return 0;if(r){if(me("color=16m")||me("color=full")||me("color=truecolor"))return 3;if(me("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Zs.platform==="win32"){let o=Wy.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let o=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}function Jf(t,e={}){let r=Ky(t,{streamIsTTY:t&&t.isTTY,...e});return Yy(r)}var Jy={stdout:Jf({isTTY:Kf.isatty(1)}),stderr:Jf({isTTY:Kf.isatty(2)})},Qy=Jy;function Xy(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function Zy(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
41
35
  `:`
42
36
  `)+r,i=n+1,n=t.indexOf(`
43
- `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:cd,stderr:fd}=qb,Yo=Symbol("GENERATOR"),or=Symbol("STYLER"),Ir=Symbol("IS_EMPTY"),hd=["ansi","ansi","ansi256","ansi16m"],ar=Object.create(null),Hb=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=cd?cd.level:0;t.level=e.level===void 0?r:e.level},Ub=t=>{let e=(...r)=>r.join(" ");return Hb(e,t),Object.setPrototypeOf(e,Br.prototype),e};function Br(t){return Ub(t)}Object.setPrototypeOf(Br.prototype,Function.prototype);for(let[t,e]of Object.entries(Je))ar[t]={get(){let r=li(this,Jo(e.open,e.close,this[or]),this[Ir]);return Object.defineProperty(this,t,{value:r}),r}};ar.visible={get(){let t=li(this,this[or],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Ko=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Je[r].ansi16m(...n):e==="ansi256"?Je[r].ansi256(Je.rgbToAnsi256(...n)):Je[r].ansi(Je.rgbToAnsi(...n)):t==="hex"?Ko("rgb",e,r,...Je.hexToRgb(...n)):Je[r][t](...n),Wb=["rgb","hex","ansi256"];for(let t of Wb){ar[t]={get(){let{level:r}=this;return function(...n){let i=Jo(Ko(t,hd[r],"color",...n),Je.color.close,this[or]);return li(this,i,this[Ir])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);ar[e]={get(){let{level:r}=this;return function(...n){let i=Jo(Ko(t,hd[r],"bgColor",...n),Je.bgColor.close,this[or]);return li(this,i,this[Ir])}}}}var Gb=Object.defineProperties(()=>{},{...ar,level:{enumerable:!0,get(){return this[Yo].level},set(t){this[Yo].level=t}}}),Jo=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},li=(t,e,r)=>{let n=(...i)=>Vb(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Gb),n[Yo]=t,n[or]=e,n[Ir]=r,n},Vb=(t,e)=>{if(t.level<=0||!e)return t[Ir]?"":e;let r=t[or];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=$b(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
44
- `);return s!==-1&&(e=jb(e,i,n,s)),n+e+i};Object.defineProperties(Br.prototype,ar);var Yb=Br(),wT=Br({level:fd?fd.level:0}),Kb=Yb,Jb={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},Qb={"cp -rf":{win32:t=>{let e="xcopy /E /S /G /Q /Y",r=t.map(n=>n.endsWith("\\")?n:`${n}\\`);return`${e} ${r.join(" ")}`}},ln:{win32:t=>`mklink /D ${t.join(" ")}`},pkill:{win32:t=>`taskkill /T /F /pid ${t.join(" ")}`}},Xb=(t,e,r)=>{let n={...Jb,...e},i={...Qb,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[c,...h]=a.split(" ");return{cmd:c,args:h}},o=(a=>{let l=Object.entries(i);for(let[f,c]of l)if(a.startsWith(f)){let h=process.platform,d=c[h];if(!d)break;let v=a.slice(f.length).split(" ");return`${d(v)} ${a.slice(f.length)}`}return a})(t);return s(o)},Zb=process.platform==="linux"||process.platform==="darwin",Qo=process.platform==="win32",zb={stdio:"pipe",shell:!0,detached:!Qo,env:process.env},ex={log:!0,commandTranslations:{},shellTranslations:{},...zb},Qe=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...n}=ex)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&Zb&&(l="posix");let f=s[l];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=f}let{cmd:o,args:a}=Xb(s,r,e);return t&&console.log(Kb.dim(`
45
- $ ${s}
46
- `)),await new Promise((l,f)=>{i=Pb(o,a,n);let c="",h="";if(!i)throw new Error("Child process was not set.");let d=v=>{i=null;let g={code:v,stdout:c,stderr:h};v===0||v===1&&!Qo?l(g):f(g)};i.stdout?.on("data",v=>{c+=v.toString()}),i.stderr?.on("data",v=>{h+=v.toString()}),i.on("close",d),i.on("exit",d),i.on("error",d),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(Qo)Db(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};u();import{extname as TT,resolve as Zo}from"path";u();var lr=/\.[mc]?tsx?(?=\?|$)/;var Nt=/\.([mc])?[tj]sx$/,dd=/\.([mc])?[tj]sx?$/,ur={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},tx={".mts":{...ur,loader:"ts"},".jsx":{...ur,loader:"jsx"},".tsx":{...ur,loader:"tsx"},".cts":{...ur,loader:"ts"},".ts":{...ur,loader:"ts"},".json":{...ur,loader:"json"}},AT=Object.keys(tx);var zo=()=>{let t=process.cwd(),e=Zo(t,"src"),r=Zo(t,"dist");return{cwd:t,srcDir:e,outDir:r}},ci=t=>{t=Zo(t);let{srcDir:e,outDir:r}=zo();return t.replace(e,r).replace(lr,".js").replace(Nt,".js")};u();var rx={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},ea=async()=>{let t=Pe(ea),e=Qe({log:!1}),r=Object.entries(rx).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;t.log(`Calling: ${n}`),await e.run(`tsc -p tsconfig.json ${r}`)};u();import{readFileSync as nx}from"fs";import{resolve as ix}from"path";var pd=async()=>{let t=process.cwd(),e=ix(t,"package.json");return nx(e,"utf-8")};u();var _d=je(io(),1);import{existsSync as hx,readFileSync as dx,writeFileSync as px}from"fs";import{isAbsolute as mx,resolve as gx}from"path";import{pathToFileURL as _x}from"url";u();import{dirname as sx,normalize as ox,posix as fi,resolve as ax}from"path";import{existsSync as md,readFileSync as ux}from"fs";var lx=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],cx=async(t,e)=>{let r=sx(ox(e)),n=hi(ax(r,t)),i=n.replace(fi.extname(n),"");for(let s of lx){let o=`${i}${s}`,a=`${i}/index${s}`;if(md(o))return o;if(md(a))return a}},hi=t=>t.replace(/\\/g,"/"),fx=(t,e)=>{t=hi(t),e=hi(e);let r=fi.relative(fi.dirname(t),e);return r.startsWith(".")?r:`./${r}`},ta=async t=>{let e=Pe(ta);e.log("Getting rewritten specifiers:",{modulePath:t}),t=hi(t);let r=[],n=new RegExp(gd,"g"),s=ux(t,"utf8").match(n);if(s)for(let o of s){let a=new RegExp(ra),l=o.match(a);if(!l)throw e.log("No specifier match",{importStatement:o,specifierPattern:a}),new Error(`Could not identify specifier in import statement: ${o}`);let f=l[0];if(!f.startsWith(".")||fi.extname(f))continue;let c=await cx(f,t);if(!c)throw new Error(`Could not resolve specifier "${f}" from "${t}"`);let h=fx(t,c);r.push({specifierToReplace:f,specifierReplacement:h})}return r};var qr=`[^
47
- \r;]*`;var yx=`(import${qr}(from)?)`,Sx=`(import|require)${qr}\\(`,Ex=`(export${qr}from)`;var gd=`(^|(?<=[
48
- \r;] *))(import|export)( )*({?)[^
37
+ `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Qf,stderr:Xf}=Qy,Ks=Symbol("GENERATOR"),Ft=Symbol("STYLER"),fr=Symbol("IS_EMPTY"),Zf=["ansi","ansi","ansi256","ansi16m"],$t=Object.create(null),zy=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Qf?Qf.level:0;t.level=e.level===void 0?r:e.level},eb=t=>{let e=(...r)=>r.join(" ");return zy(e,t),Object.setPrototypeOf(e,hr.prototype),e};function hr(t){return eb(t)}Object.setPrototypeOf(hr.prototype,Function.prototype);for(let[t,e]of Object.entries(ke))$t[t]={get(){let r=On(this,Qs(e.open,e.close,this[Ft]),this[fr]);return Object.defineProperty(this,t,{value:r}),r}};$t.visible={get(){let t=On(this,this[Ft],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Js=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?ke[r].ansi16m(...n):e==="ansi256"?ke[r].ansi256(ke.rgbToAnsi256(...n)):ke[r].ansi(ke.rgbToAnsi(...n)):t==="hex"?Js("rgb",e,r,...ke.hexToRgb(...n)):ke[r][t](...n),tb=["rgb","hex","ansi256"];for(let t of tb){$t[t]={get(){let{level:r}=this;return function(...n){let i=Qs(Js(t,Zf[r],"color",...n),ke.color.close,this[Ft]);return On(this,i,this[fr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);$t[e]={get(){let{level:r}=this;return function(...n){let i=Qs(Js(t,Zf[r],"bgColor",...n),ke.bgColor.close,this[Ft]);return On(this,i,this[fr])}}}}var rb=Object.defineProperties(()=>{},{...$t,level:{enumerable:!0,get(){return this[Ks].level},set(t){this[Ks].level=t}}}),Qs=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},On=(t,e,r)=>{let n=(...i)=>nb(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,rb),n[Ks]=t,n[Ft]=e,n[fr]=r,n},nb=(t,e)=>{if(t.level<=0||!e)return t[fr]?"":e;let r=t[Ft];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Xy(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
38
+ `);return s!==-1&&(e=Zy(e,i,n,s)),n+e+i};Object.defineProperties(hr.prototype,$t);var ib=hr(),vS=hr({level:Xf?Xf.level:0}),sb=ib,ob={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},ab={"cp -rf":{win32:t=>{let e="xcopy /E /S /G /Q /Y",r=t.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${e} ${r.join(" ")}`}},ln:{win32:t=>`mklink /D ${t.join(" ")}`},pkill:{win32:t=>`taskkill /T /F /pid ${t.join(" ")}`}},lb=(t,e,r)=>{let n={...ob,...e},i={...ab,...r},s=a=>{let l=process.platform,c=n[l];if(c)return c(a);let[u,...f]=a.split(" ");return{cmd:u,args:f}},o=(a=>{let l=Object.entries(i);for(let[c,u]of l)if(a.startsWith(c)){let f=process.platform,h=u[f];if(!h)break;let E=a.slice(c.length).trim().split(" ");return h(E)}return a})(t);return s(o)},ub=process.platform==="linux"||process.platform==="darwin",Xs=process.platform==="win32",cb={stdio:"pipe",shell:!0,detached:!Xs,env:process.env},fb={log:!0,commandTranslations:{},shellTranslations:{},...cb},ye=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...n}=fb)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&ub&&(l="posix");let c=s[l];if(!c)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=c}let{cmd:o,args:a}=lb(s,r,e);return t&&console.log(sb.dim(`
39
+ $ ${o} ${a.join(" ")}
40
+ `)),await new Promise((l,c)=>{i=qy(o,a,n);let u="",f="";if(!i)throw new Error("Child process was not set.");let h=E=>{i=null;let m={code:E,stdout:u,stderr:f};E===0||E===1&&!Xs?l(m):c(m)};i.stdout?.on("data",E=>{u+=E.toString()}),i.stderr?.on("data",E=>{f+=E.toString()}),i.on("close",h),i.on("exit",h),i.on("error",h),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(Xs)jy(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as AS,resolve as zs}from"path";var qt=/\.[mc]?tsx?(?=\?|$)/;var _t=/\.([mc])?[tj]sx$/,zf=/\.([mc])?[tj]sx?$/,Ht={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},hb={".mts":{...Ht,loader:"ts"},".jsx":{...Ht,loader:"jsx"},".tsx":{...Ht,loader:"tsx"},".cts":{...Ht,loader:"ts"},".ts":{...Ht,loader:"ts"},".json":{...Ht,loader:"json"}},xS=Object.keys(hb);var eo=()=>{let t=process.cwd(),e=zs(t,"src"),r=zs(t,"dist");return{cwd:t,srcDir:e,outDir:r}},Tn=t=>{t=zs(t);let{srcDir:e,outDir:r}=eo();return t.replace(e,r).replace(qt,".js").replace(_t,".js")};var pb={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},to=async()=>{let t=Se(to),e=ye({log:!1}),r=Object.entries(pb).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;t.log(`Calling: ${n}`),await e.run(`tsc -p tsconfig.json ${r}`)};import{readFile as db}from"fs/promises";import{resolve as gb}from"path";var eh=async()=>{let t=process.cwd(),e=gb(t,"package.json");return await db(e,"utf-8")};var ih=Be(os(),1);import{existsSync as Sb}from"fs";import{writeFile as wb}from"fs/promises";import{isAbsolute as Ab,resolve as Rb}from"path";import{existsSync as th}from"fs";import{readFile as _b}from"fs/promises";import{dirname as mb,normalize as yb,posix as Pn,resolve as bb}from"path";var vb=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],Eb=async(t,e)=>{let r=mb(yb(e)),n=Dn(bb(r,t)),i=n.replace(Pn.extname(n),"");for(let s of vb){let o=`${i}${s}`,a=`${i}/index${s}`;if(th(o))return o;if(th(a))return a}},Dn=t=>t.replace(/\\/g,"/"),xb=(t,e)=>{t=Dn(t),e=Dn(e);let r=Pn.relative(Pn.dirname(t),e);return r.startsWith(".")?r:`./${r}`},ro=async t=>{let e=Se(ro);e.log("Getting rewritten specifiers:",{modulePath:t}),t=Dn(t);let r=new RegExp(rh,"g"),n=await _b(t,"utf8"),i=n.match(r);if(e.log("Found import statements:",{importStatements:i}),i)for(let s of i){let o=new RegExp(nh),a=s.match(o);if(!a)throw e.log("No specifier match",{importStatement:s,specifierPattern:o}),new Error(`Could not identify specifier in import statement: ${s}`);let l=a[0];if(e.log("Found specifier:",{specifier:l}),!l.startsWith(".")||Pn.extname(l))continue;let c=await Eb(l,t);if(!c)throw new Error(`Could not resolve specifier "${l}" from "${t}"`);e.log("Resolved specifier:",{resolvedSpecifier:c});let u=xb(t,c);e.log("Specifier replacement:",{specifierReplacement:u});let f=s.replace(l,u);e.log("Import statement replacement:",{importStatementReplacement:f}),n=n.replace(s,f)}return n};var rh=`(^|(?<=[
41
+ \r;] *))(import|export) *({?)[^
49
42
  \r;]+(((from)[
50
43
  \r; *]+)|(["'][
51
- \r;]))`,ra=`(?<=["'])([^
52
- \r]+)(?=['"])`,vx=t=>{let e=t.replace(".","\\.").replace("/","\\/"),r=`${qr}["']${e}["']${qr}`;return new RegExp(`(${yx}|${Sx}|${Ex})${r}`,"g")},yd=(t,e,r)=>{let n=Pe(yd);n.log("Rewriting import",{importStatement:t,specifierToReplace:e,specifierReplacement:r});let i=new RegExp(ra),s=t.match(i);if(!s)throw n.log("No specifier match",{importStatement:t,specifierPattern:i}),new Error(`Could not identify specifier in import statement: ${t}`);let o=s[0],a=o.replace(e,r).trim();return t.replace(o,a)},$r=async(t="dist/**/*.js")=>{let e=Pe($r),n=mx(t)&&hx(t)?[t]:_d.default.sync(t);e.log("Normalizing import/require specifiers:",{files:t,filesToNormalize:n});for(let i of n){let s=gx(i),o=_x(s).href,a=await ta(s);if(!a)return null;e.log("TypeScript API yielded specifiers to rewrite:",{rewrites:a});let l=dx(s,"utf8");e.group();for(let{specifierToReplace:f,specifierReplacement:c}of a){let h=vx(f),d=l.match(h)??[];e.log("Replacing import statements.",{entryPointURL:o,specifierToReplace:f,specifierReplacement:c,importStatements:d});for(let v of d){e.group();let g=yd(v,f,c);e.log("Performing specifier rewrite.",{entryPointURL:o,importStatement:v,rewrittenImportStatement:g}),l=l.replace(v,g),px(s,l),e.log("Wrote output file.",{resolvedEntryPoint:s}),e.groupEnd()}}e.groupEnd()}};u();import{readFileSync as bx}from"fs";function xx(t){return new Promise((e,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),e(Buffer.concat(n))}function o(l){a(),r(l)}function a(){t.removeListener("data",i),t.removeListener("end",s),t.removeListener("error",o)}t.on("data",i),t.on("end",s),t.on("error",o)})}var na=async()=>{let t=Pe(na);t.log("Reading stdin");try{let r=bx(0).toString();if(r)return t.log("Found stdin",{stdin:r}),r}catch(r){t.log("Could not read stdin",{e:r})}return Ie(M.gray("Type your source code. Press Ctrl+D to finish.")),(await xx(process.stdin)).toString()};var Dx=`import React from "react";
44
+ \r;]))`,nh=`(?<=["'])([^
45
+ \r]+)(?=['"])`,pr=async(t="dist/**/*.js")=>{let e=Se(pr),n=Ab(t)&&Sb(t)?[t]:ih.default.sync(t);e.log("Normalizing import/require specifiers:",{files:t,filesToNormalize:n});for(let i of n){let s=Rb(i),o=await ro(s);e.log("Normalizing",{file:i,normalized:o}),await wb(s,o,{flag:"w",encoding:"utf-8"})}e.log("Normalized",{filesToNormalize:n})};import{readFileSync as Cb}from"fs";function Ob(t){return new Promise((e,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),e(Buffer.concat(n))}function o(l){a(),r(l)}function a(){t.removeListener("data",i),t.removeListener("end",s),t.removeListener("error",o)}t.on("data",i),t.on("end",s),t.on("error",o)})}var no=async()=>{let t=Se(no);t.log("Reading stdin");try{let r=Cb(0).toString();if(r)return t.log("Found stdin",{stdin:r}),r}catch(r){t.log("Could not read stdin",{e:r})}return we(C.gray("Type your source code. Press Ctrl+D to finish.")),(await Ob(process.stdin)).toString()};var Bb=`import React from "react";
53
46
  import ReactDOM from "react-dom";
54
- `,vd=t=>{let e=` ${t} `;Ie(M.bgBlue(M.bold(M.white(e))))},kx=()=>{let t;if(Rd("dist/package.json")?t=JSON.parse(oa("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",Ad("dist/package.json",JSON.stringify(t,null,2))},bd=(t,e,r)=>{e=di(e);let n=ci(e);return{stdin:{contents:t,sourcefile:e,resolveDir:wd(e),loader:r},outdir:void 0,outfile:n}},xd=async(t,e,r,n)=>{t=di(t),e=di(e);let i="npx tailwindcss",s=r?"":"-m",o="--postcss postcss.config.js",a=oa(t,"utf-8"),f=n?a:`@import "@tsmodule/react";
47
+ `,ah=t=>{let e=` ${t} `;we(C.bgBlue(C.bold(C.white(e))))},Ib=async()=>{let t;if(ch("dist/package.json")?t=JSON.parse(await oo("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",await fh("dist/package.json",JSON.stringify(t,null,2))},lh=(t,e,r)=>{e=Ln(e);let n=Tn(e);return{stdin:{contents:t,sourcefile:e,resolveDir:hh(e),loader:r},outdir:void 0,outfile:n}},uh=async(t,e,r,n)=>{t=Ln(t),e=Ln(e);let i="npx tailwindcss",s=r?"":"-m",o="--postcss postcss.config.js",a=await oo(t,"utf-8"),c=n?a:`@import "@tsmodule/react";
55
48
 
56
- ${a}`,c=ci(t);Ad(c,f);let h=[i,s,o,`-i ${c}`,"-o",e];await Qe({log:!1,stdio:"ignore"}).run(h.join(" "))},Fx=`
49
+ ${a}`,u=Tn(t);await fh(u,c);let f=[i,s,o,`-i ${u}`,"-o",e];await ye({log:!1,stdio:"ignore"}).run(f.join(" "))},Fb=`
57
50
  await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
58
- `,cr=async({input:t="src/**/*",styles:e="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,noStandardStyles:a=!1,stdin:l=void 0,stdinFile:f=void 0})=>{Ed.NODE_ENV=n?"development":"production";let c=Pe(cr);n&&(s=!0);let{cwd:h,srcDir:d,outDir:v}=zo(),g=await pd(),E=JSON.parse(g),b={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{PACKAGE_JSON:g,"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},R={...b,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:E?.platform??"node",write:!o,external:i?["esbuild"]:void 0,banner:i?{js:Fx}:void 0},P="";if(l){c.log("Building file from stdin",{stdin:l,stdinFile:f,noWrite:o}),f||(Ie(M.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?P=l:P=await na();let w={...b,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await Ox(P,w)).code;{let y=bd(P,f,"tsx");await ia({...R,...y}),Ie(M.green("Successfully built stdin file to dist/.")),Ie(M.grey("Use --no-write to print to stdout instead."));return}}c.log("Building",{files:t,dev:n,runtimeOnly:s}),vd(`${M.bold("TS Module")} [${Ed.NODE_ENV}]`);let B=sa.default.sync(t,{cwd:h}).filter(w=>wx(w)!==".d.ts").map(w=>di(w));if(Rx(t)){B.length||B.push(t);let w=t.replace(d,v).replace(lr,".js").replace(Nt,".js");c.log("Cleaning emitted file:",{outfile:w}),Sd(w,{force:!0})}else c.log("Cleaning old output:",{outDir:v}),Sd(v,{force:!0,recursive:!0});let Q=B.filter(w=>Nt.test(w));c.log("Compiling TSX files:",{tsxJsxInput:Q});let F=Q.filter(w=>!w.endsWith(".d.ts"));await Promise.all(F.map(async w=>{let y=oa(w,"utf-8"),L=Dx+y,k=bd(L,w,"tsx");await ia({...R,...k})})),xe("Built TSX files.").succeed();let U=B.filter(w=>lr.test(w)).filter(w=>!Nt.test(w));c.log("Compiling TS files:",{tsJsInput:U}),await ia({...R,entryPoints:U.filter(w=>!w.endsWith(".d.ts"))}),xe("Built TS files.").succeed();let N=B.filter(w=>!dd.test(w));c.log("Copying non-JS/TS files.",{allFiles:B,nonTsJsInput:N});for(let w of N){let y=ci(w);c.log("Copying non-source file:",{file:w,emittedFile:y}),Px(wd(y),{recursive:!0}),Tx(w,y,Cx.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let w=t.replace(d,v).replace(/^(\.\/)?src\//,"dist/").replace(lr,".js").replace(Nt,".js");c.log("Normalizing import specifiers in emitted JS.",{emittedJs:w}),await $r(w.endsWith(".js")?w:`${w}.js`),xe("Normalized import specifiers.").succeed()}if(kx()&&xe('Forced "type": "module" in output.').succeed(),s)return;if(Rd(Ax(e))){c.log("Building styles for production.");let{style:w="./dist/bundle.css"}=E;if(c.log("Building style bundle.",{bundleInput:e,bundleOutput:w,dev:n,noStandardStyles:a}),await xd(e,w,n,a),i){c.log("Bundling all styles.");let y=sa.default.sync("dist/**/*.css"),L=xe("Bundled emitted styles.").start();await Promise.all(y.map(async k=>await xd(k,k,n,a))),L.succeed()}xe(`Bundled all styles to ${M.bold(w)}.`).succeed()}else Ie(M.grey("Bundle styles not found for this projected. Checked:"),{styles:e});vd("Running post-build setup.");let T=xe("Generating type declarations.").start();await ea(),T.succeed(`Generated delcarations for ${B.length} files.`),Ie(M.green("Build complete."))};u();u();import{dirname as Lx,resolve as Nx}from"path";import{fileURLToPath as Mx}from"url";var Od={default:[],react:["@tsmodule/react","react","react-dom"]},aa={default:["@types/node"],react:["next","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},pi=Nx(Lx(Mx(import.meta.url)),"..");u();var Bm=je(Mm(),1);import{resolve as Im}from"path";var wa=async(t,e)=>{let r=Im(pi,`./templates/${t}`),n=Im(e);await(0,Bm.copy)(r,n,{overwrite:!0,recursive:!0})};u();import qm from"fs/promises";import{resolve as YR}from"path";var $m=async t=>{let e=YR(process.cwd(),t,"package.json"),r=await qm.readFile(e,"utf-8"),n=JSON.parse(r);n.name=t,await qm.writeFile(e,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var jm=async(t,{react:e=!1})=>{let r=Qe(),n=xe(`Creating new module ${M.blueBright(t)}.`).start();await wa("default",t),e&&await wa("react",t),await $m(t),n.succeed("Project created."),process.chdir(t);let i=[],s=["@tsmodule/tsmodule"];e?(i.push(...Od.react),s.push(...aa.react)):s.push(...aa.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Git initialized.")};u();import{existsSync as uA,lstatSync as lA}from"fs";import{relative as cA,resolve as fA}from"path";var ug=je(sg(),1),og=()=>{console.clear()},ag=t=>{Ie(`
59
- `,M.gray(`Built ${M.bold(t)}.`),`
60
- `,M.blue(new Date().toLocaleString()))},lg=async()=>{let t=process.cwd(),e=Qe();process.platform!=="win32"&&await e.run("clear"),og(),await cr({dev:!0}),ag("src/**/*"),(0,ug.default)(fA(t,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!uA(n)||lA(n).isDirectory())return;og();let o=Date.now();await cr({dev:!0,input:n});let a=Date.now()-o;xe(M.blueBright(`Dev refresh finished in ${M.bold(`${a}ms`)}.`)).succeed(),ag(cA(t,n))})};u();import{pathToFileURL as hA}from"url";import{resolve as dA}from"path";var cg=async()=>{let t=dA(pi,"dist/loader/index.js"),e=["--no-warnings","--loader",hA(t).href,...process.argv.slice(2)];await Qe().run(`node ${e.join(" ")}`)};var{version:pA}=p,qt=new lu;qt.name(M.white(M.bold("tsmodule"))).usage(M.white(M.bold("<file | command> [options]"))).description(M.blueBright(`A tool for building TypeScript modules.
51
+ `,jt=async({input:t="src/**/*",styles:e="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,noStandardStyles:a=!1,stdin:l=void 0,stdinFile:c=void 0})=>{oh.NODE_ENV=n?"development":"production";let u=Se(jt);n&&(s=!0);let{cwd:f,srcDir:h,outDir:E}=eo(),m=await eh(),y=JSON.parse(m),S={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},x={...S,bundle:i,absWorkingDir:f,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:y?.platform??"node",write:!o,external:i?["esbuild"]:void 0,banner:i?{js:Fb}:void 0},M="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:c,noWrite:o}),c||(we(C.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?M=l:M=await no();let w={...S,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await Nb(M,w)).code;{let p=lh(M,c,"tsx");await io({...x,...p}),we(C.green("Successfully built stdin file to dist/.")),we(C.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:t,dev:n,runtimeOnly:s}),ah(`${C.bold("TS Module")} [${oh.NODE_ENV}]`);let N=so.default.sync(t,{cwd:f}).filter(w=>Lb(w)!==".d.ts").map(w=>Ln(w));if(Mb(t)){N.length||N.push(t);let w=t.replace(h,E).replace(qt,".js").replace(_t,".js");u.log("Cleaning emitted file:",{outfile:w}),await sh(w,{force:!0})}else u.log("Cleaning old output:",{outDir:E}),await sh(E,{force:!0,recursive:!0});let z=N.filter(w=>_t.test(w));u.log("Compiling TSX files:",{tsxJsxInput:z});let T=z.filter(w=>!w.endsWith(".d.ts"));await Promise.all(T.map(async w=>{let p=await oo(w,"utf-8"),H=Bb+p,$=lh(H,w,"tsx");await io({...x,...$})})),fe("Built TSX files.").succeed();let q=N.filter(w=>qt.test(w)).filter(w=>!_t.test(w));u.log("Compiling TS files:",{tsJsInput:q}),await io({...x,entryPoints:q.filter(w=>!w.endsWith(".d.ts"))}),fe("Built TS files.").succeed();let P=N.filter(w=>!zf.test(w));u.log("Copying non-JS/TS files.",{allFiles:N,nonTsJsInput:P});for(let w of P){let p=Tn(w);u.log("Copying non-source file:",{file:w,emittedFile:p}),await Db(hh(p),{recursive:!0}),await Pb(w,p,Tb.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let w=t.replace(h,E).replace(/^(\.\/)?src\//,"dist/").replace(qt,".js").replace(_t,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:w}),await pr(w.endsWith(".js")?w:`${w}.js`),fe("Normalized import specifiers.").succeed()}if(await Ib()&&fe('Forced "type": "module" in output.').succeed(),s)return;if(ch(kb(e))){u.log("Building styles for production.");let{style:w="./dist/bundle.css"}=y;if(u.log("Building style bundle.",{bundleInput:e,bundleOutput:w,dev:n,noStandardStyles:a}),await uh(e,w,n,a),i){u.log("Bundling all styles.");let p=so.default.sync("dist/**/*.css"),H=fe("Bundled emitted styles.").start();await Promise.all(p.map(async $=>await uh($,$,n,a))),H.succeed()}fe(`Bundled all styles to ${C.bold(w)}.`).succeed()}else we(C.grey("Bundle styles not found for this projected. Checked:"),{styles:e});ah("Running post-build setup.");let F=fe("Generating type declarations.").start();await to(),F.succeed(`Generated delcarations for ${N.length} files.`),we(C.green("Build complete."))};import{readFile as $b}from"fs/promises";import{dirname as Hb,resolve as ph}from"path";import{fileURLToPath as qb}from"url";var dh={default:[],react:["@tsmodule/react","react","react-dom"]},ao={default:["@types/node"],react:["next","@types/node","@types/react","@types/react-dom","@typescript-eslint/eslint-plugin","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},dr=ph(Hb(qb(import.meta.url)),".."),gh=async()=>{let t=await $b(ph(dr,"package.json"),"utf-8");return JSON.parse(t)};import{mkdir as jb}from"fs/promises";import{resolve as _h}from"path";var lo=async(t,e)=>{let r=ye(),n=_h(dr,`./templates/${t}`),i=_h(e);await jb(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};import mh from"fs/promises";import{resolve as Ub}from"path";var yh=async t=>{let e=Ub(process.cwd(),t,"package.json"),r=await mh.readFile(e,"utf-8"),n=JSON.parse(r);n.name=t,await mh.writeFile(e,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var bh=async(t,{react:e=!1})=>{let r=ye(),n=fe(`Creating new module ${C.blueBright(t)}.`).start();await lo("default",t),e&&await lo("react",t),await yh(t),n.succeed("Project created."),process.chdir(t);let i=[],s=["@tsmodule/tsmodule"];e?(i.push(...dh.react),s.push(...ao.react)):s.push(...ao.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Git initialized.")};import{relative as iv,resolve as sv}from"path";import{existsSync as ov}from"fs";import{lstat as av}from"fs/promises";var Hh=Be(Ih(),1);var Fh=()=>{console.clear()},$h=t=>{we(`
52
+ `,C.gray(`Built ${C.bold(t)}.`),`
53
+ `,C.blue(new Date().toLocaleString()))},qh=async()=>{let t=process.cwd(),e=ye();process.platform!=="win32"&&await e.run("clear"),Fh(),await jt({dev:!0}),$h("src/**/*"),(0,Hh.default)(sv(t,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!ov(n)||(await av(n)).isDirectory())return;Fh();let a=Date.now();await jt({dev:!0,input:n});let l=Date.now()-a;fe(C.blueBright(`Dev refresh finished in ${C.bold(`${l}ms`)}.`)).succeed(),$h(iv(t,n))})};import{pathToFileURL as lv}from"url";import{resolve as uv}from"path";var jh=async()=>{let t=uv(dr,"dist/loader/index.js"),e=["--no-warnings","--loader",lv(t).href,...process.argv.slice(2)];await ye().run(`node ${e.join(" ")}`)};var{version:cv}=await gh(),mt=new Jo;mt.name(C.white(C.bold("tsmodule"))).usage(C.white(C.bold("<file | command> [options]"))).description(C.blueBright(`A tool for building TypeScript modules.
61
54
 
62
- Run TS directly: ${M.bold("tsmodule src/index.ts")}
63
- Use a command: ${M.bold("tsmodule build")}`)).version(String(pA));qt.command("dev").description("Build and watch for changes.").action(lg);qt.command("build").description("Builds TS files to output in dist/.").option("-i, --input <files>","Entrypoints to compile.","src/**/*").option("--styles <styles>","Specify stylesheet entrypoint.","src/components/index.css").option("-t, --target <target>","ECMAScript featureset to target.","esnext").option("-b, --bundle","Bundle dependencies into entrypoints.",!1).option("-d, --dev","Build development runtime.",!1).option("-r, --runtime-only","Do not emit type declarations, only build JS runtime.",!1).option("--stdin [source]","Read from a string or stdin.").option("--stdin-file [file]","File path to mock for stdin.").option("--no-write",`Return code from build() rather than write to disk.
64
- For programmatic use alongside { stdin: ... }.`,!1).option("--no-standard-styles","Do not add standard styles to bundled CSS.",!1).action(async t=>{await cr(t)});qt.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(jm);qt.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
65
- (default: dist/**/*.js)`).action(async({files:t})=>{await $r(t)});qt.command("run",{isDefault:!0}).argument("<file>","The file to run.").option("--d, --dev","Enable development mode").description("Run the given TS program, analogous to `node <file>`.").action(cg);qt.parse(process.argv);
55
+ Run TS directly: ${C.bold("tsmodule src/index.ts")}
56
+ Use a command: ${C.bold("tsmodule build")}`)).version(String(cv));mt.command("dev").description("Build and watch for changes.").action(qh);mt.command("build").description("Builds TS files to output in dist/.").option("-i, --input <files>","Entrypoints to compile.","src/**/*").option("--styles <styles>","Specify stylesheet entrypoint.","src/components/index.css").option("-t, --target <target>","ECMAScript featureset to target.","esnext").option("-b, --bundle","Bundle dependencies into entrypoints.",!1).option("-d, --dev","Build development runtime.",!1).option("-r, --runtime-only","Do not emit type declarations, only build JS runtime.",!1).option("--stdin [source]","Read from a string or stdin.").option("--stdin-file [file]","File path to mock for stdin.").option("--no-write",`Return code from build() rather than write to disk.
57
+ For programmatic use alongside { stdin: ... }.`,!1).option("--no-standard-styles","Do not add standard styles to bundled CSS.",!1).action(async t=>{await jt(t)});mt.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(bh);mt.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
58
+ (default: dist/**/*.js)`).action(async({files:t})=>{await pr(t)});mt.command("run",{isDefault:!0}).argument("<file>","The file to run.").option("--d, --dev","Enable development mode").description("Run the given TS program, analogous to `node <file>`.").action(jh);mt.parse(process.argv);
66
59
  /*!
67
60
  * fill-range <https://github.com/jonschlinkert/fill-range>
68
61
  *