@tsmodule/tsmodule 36.0.0 → 39.0.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.
package/dist/index.js CHANGED
@@ -2,69 +2,58 @@
2
2
 
3
3
  typeof document>"u"&&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 Vh=Object.create;var mo=Object.defineProperty;var Wh=Object.getOwnPropertyDescriptor;var Gh=Object.getOwnPropertyNames;var Yh=Object.getPrototypeOf,Kh=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 Jh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Gh(e))!Kh.call(t,i)&&i!==r&&mo(t,i,{get:()=>e[i],enumerable:!(n=Wh(e,i))||n.enumerable});return t};var Be=(t,e,r)=>(r=t!=null?Vh(Yh(t)):{},Jh(e||!t||!t.__esModule?mo(r,"default",{value:t,enumerable:!0}):r,t));var Wt=_(qn=>{var Hn=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}},To=class extends Hn{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};qn.CommanderError=Hn;qn.InvalidArgumentError=To});var wr=_(jn=>{var{InvalidArgumentError:up}=Wt(),Po=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 up(`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 cp(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}jn.Argument=Po;jn.humanReadableArgName=cp});var Un=_(Lo=>{var{humanReadableArgName:fp}=wr(),Do=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=>fp(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 u=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(u=u.concat([c,""]));let f=r.visibleArguments(e).map(m=>a(r.argumentTerm(m),r.argumentDescription(m)));f.length>0&&(u=u.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));h.length>0&&(u=u.concat(["Options:",l(h),""]));let x=r.visibleCommands(e).map(m=>a(r.subcommandTerm(m),r.subcommandDescription(m)));return x.length>0&&(u=u.concat(["Commands:",l(x),""])),u.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),u=new RegExp(".{1,"+(s-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g"),c=a.match(u)||[];return o+c.map((f,h)=>(f.slice(-1)===`
5
+ var Kh=Object.create;var zo=Object.defineProperty;var Jh=Object.getOwnPropertyDescriptor;var Vh=Object.getOwnPropertyNames;var Yh=Object.getPrototypeOf,Wh=Object.prototype.hasOwnProperty;var S=(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 g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Xh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Vh(e))!Wh.call(t,n)&&n!==r&&zo(t,n,{get:()=>e[n],enumerable:!(i=Jh(e,n))||i.enumerable});return t};var Ne=(t,e,r)=>(r=t!=null?Kh(Yh(t)):{},Xh(e||!t||!t.__esModule?zo(r,"default",{value:t,enumerable:!0}):r,t));var Kt=g(ji=>{var Br=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},$i=class extends Br{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ji.CommanderError=Br;ji.InvalidArgumentError=$i});var Rr=g(Ui=>{var{InvalidArgumentError:fp}=Kt(),Gi=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,i)=>{if(!this.argChoices.includes(r))throw new fp(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function hp(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Ui.Argument=Gi;Ui.humanReadableArgName=hp});var Ji=g(fa=>{var{humanReadableArgName:pp}=Rr(),Ki=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(i=>!i._hidden);if(e._hasImplicitHelpCommand()){let[,i,n]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(i).helpOption(!1);s.description(e._helpCommandDescription),n&&s.arguments(n),r.push(s)}return this.sortSubcommands&&r.sort((i,n)=>i.name().localeCompare(n.name())),r}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),i=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),n=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(i||n){let s;i?n?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(i=>pp(i)).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((i,n)=>Math.max(i,r.subcommandTerm(n).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,n)=>Math.max(i,r.optionTerm(n).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,n)=>Math.max(i,r.argumentTerm(n).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+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(i=>JSON.stringify(i)).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(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),n=r.helpWidth||80,s=2,o=2;function a(_,m){if(m){let v=`${_.padEnd(i+o)}${m}`;return r.wrap(v,n-s,i+o)}return _}function l(_){return _.join(`
6
+ `).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(u=u.concat([c,""]));let f=r.visibleArguments(e).map(_=>a(r.argumentTerm(_),r.argumentDescription(_)));f.length>0&&(u=u.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(_=>a(r.optionTerm(_),r.optionDescription(_)));h.length>0&&(u=u.concat(["Options:",l(h),""]));let C=r.visibleCommands(e).map(_=>a(r.subcommandTerm(_),r.subcommandDescription(_)));return C.length>0&&(u=u.concat(["Commands:",l(C),""])),u.join(`
7
+ `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,i,n=40){if(e.match(/[\n]\s+/))return e;let s=r-i;if(s<n)return e;let o=e.substr(0,i),a=e.substr(i),l=" ".repeat(i),u=new RegExp(".{1,"+(s-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g"),c=a.match(u)||[];return o+c.map((f,h)=>(f.slice(-1)===`
8
8
  `&&(f=f.slice(0,f.length-1)),(h>0?l:"")+f.trimRight())).join(`
9
- `)}};Lo.Help=Do});var Wn=_(Vn=>{var{InvalidArgumentError:hp}=Wt(),Mo=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=ko(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 hp(`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 pp(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}};function pp(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function ko(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}}Vn.Option=Mo;Vn.splitOptionFlags=ko});var Bo=_(No=>{function dp(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 gp(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=dp(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
- (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}No.suggestSimilar=gp});var jo=_(qo=>{var _p=A("events").EventEmitter,Gn=A("child_process"),Ie=A("path"),Yn=A("fs"),W=A("process"),{Argument:mp,humanReadableArgName:yp}=wr(),{CommanderError:Kn}=Wt(),{Help:bp}=Un(),{Option:Io,splitOptionFlags:vp}=Wn(),{suggestSimilar:Fo}=Bo(),Rr=class extends _p{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 bp,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 mp(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 Kn(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 Io(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(u){if(u.code==="commander.invalidArgument"){let c=`${o} ${u.message}`;this.error(c,{exitCode:u.exitCode,code:u.code})}throw u}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 Io)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,u)=>{let c=a.exec(l);return c?c[0]:u},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(c,f){let h=Ie.resolve(c,f);if(Yn.existsSync(h))return h;if(i.includes(Ie.extname(f)))return;let x=i.find(m=>Yn.existsSync(`${h}${m}`));if(x)return`${h}${x}`}this._checkForMissingMandatoryOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Yn.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=Ie.resolve(Ie.dirname(c),a)}if(a){let c=s(a,o);if(!c&&!e._executableFile&&this._scriptPath){let f=Ie.basename(this._scriptPath,Ie.extname(this._scriptPath));f!==this._name&&(c=s(a,`${f}-${e._name}`))}o=c||o}n=i.includes(Ie.extname(o));let l;W.platform!=="win32"?n?(r.unshift(o),r=Ho(W.execArgv).concat(r),l=Gn.spawn(W.argv[0],r,{stdio:"inherit"})):l=Gn.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=Ho(W.execArgv).concat(r),l=Gn.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 u=this._exitCallback;u?l.on("close",()=>{u(new Kn(W.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",W.exit.bind(W)),l.on("error",c=>{if(c.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
9
+ `)}};fa.Help=Ki});var Wi=g(Yi=>{var{InvalidArgumentError:dp}=Kt(),Vi=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 i=ha(e);this.short=i.shortFlag,this.long=i.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,i)=>{if(!this.argChoices.includes(r))throw new dp(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Ap(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}};function Ap(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function ha(t){let e,r,i=t.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),r=i.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Yi.Option=Vi;Yi.splitOptionFlags=ha});var da=g(pa=>{function gp(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let i=0;i<=t.length;i++)r[i]=[i];for(let i=0;i<=e.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++)for(let n=1;n<=t.length;n++){let s=1;t[n-1]===e[i-1]?s=0:s=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+s),n>1&&i>1&&t[n-1]===e[i-2]&&t[n-2]===e[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-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 i=[],n=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<n?(n=a,i=[o]):a===n&&i.push(o))}),i.sort((o,a)=>o.localeCompare(a)),r&&(i=i.map(o=>`--${o}`)),i.length>1?`
10
+ (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
11
+ (Did you mean ${i[0]}?)`:""}pa.suggestSimilar=_p});var ya=g(Ea=>{var mp=S("events").EventEmitter,Xi=S("child_process"),Me=S("path"),Zi=S("fs"),K=S("process"),{Argument:Ep,humanReadableArgName:yp}=Rr(),{CommanderError:zi}=Kt(),{Help:Cp}=Ji(),{Option:Aa,splitOptionFlags:bp}=Wi(),{suggestSimilar:ga}=da(),Jt=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=>K.stdout.write(r),writeErr:r=>K.stderr.write(r),getOutHelpWidth:()=>K.stdout.isTTY?K.stdout.columns:void 0,getErrHelpWidth:()=>K.stderr.isTTY?K.stderr.columns:void 0,outputError:(r,i)=>i(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,i){let n=r,s=i;typeof n=="object"&&n!==null&&(s=n,n=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return n&&(l.description(n),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),n?this:l}createCommand(e){return new Jt(e)}createHelp(){return Object.assign(new Cp,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 Ep(e,r)}argument(e,r,i,n){let s=this.createArgument(e,r);return typeof i=="function"?s.default(n).argParser(i):s.default(i),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 i=["preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${i.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,i){this._exitCallback&&this._exitCallback(new zi(e,r,i)),K.exit(e)}action(e){let r=i=>{let n=this._args.length,s=i.slice(0,n);return this._storeOptionsAsProperties?s[n]=this:s[n]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Aa(e,r)}addOption(e){let r=e.name(),i=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");this.options.push(e);let n=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(i);if(s!==null&&e.parseArg)try{s=e.parseArg(s,l)}catch(u){if(u.code==="commander.invalidArgument"){let c=`${o} ${u.message}`;this.error(c,{exitCode:u.exitCode,code:u.code})}throw u}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(i,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;n(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;n(s,o,"env")}),this}_optionEx(e,r,i,n,s){if(typeof r=="object"&&r instanceof Aa)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,i);if(o.makeOptionMandatory(!!e.mandatory),typeof n=="function")o.default(s).argParser(n);else if(n instanceof RegExp){let a=n;n=(l,u)=>{let c=a.exec(l);return c?c[0]:u},o.default(s).argParser(n)}else o.default(n);return this.addOption(o)}option(e,r,i,n){return this._optionEx({},e,r,i,n)}requiredOption(e,r,i,n){return this._optionEx({mandatory:!0},e,r,i,n)}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,i){return this.setOptionValue(e,r),this._optionValueSources[e]=i,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=K.argv,K.versions&&K.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":K.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=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",i}parse(e,r){let i=this._prepareUserArgs(e,r);return this._parseCommand([],i),this}async parseAsync(e,r){let i=this._prepareUserArgs(e,r);return await this._parseCommand([],i),this}_executeSubCommand(e,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function s(c,f){let h=Me.resolve(c,f);if(Zi.existsSync(h))return h;if(n.includes(Me.extname(f)))return;let C=n.find(_=>Zi.existsSync(`${h}${_}`));if(C)return`${h}${C}`}this._checkForMissingMandatoryOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Zi.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=Me.resolve(Me.dirname(c),a)}if(a){let c=s(a,o);if(!c&&!e._executableFile&&this._scriptPath){let f=Me.basename(this._scriptPath,Me.extname(this._scriptPath));f!==this._name&&(c=s(a,`${f}-${e._name}`))}o=c||o}i=n.includes(Me.extname(o));let l;K.platform!=="win32"?i?(r.unshift(o),r=ma(K.execArgv).concat(r),l=Xi.spawn(K.argv[0],r,{stdio:"inherit"})):l=Xi.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=ma(K.execArgv).concat(r),l=Xi.spawn(K.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{K.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let u=this._exitCallback;u?l.on("close",()=>{u(new zi(K.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",K.exit.bind(K)),l.on("error",c=>{if(c.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
- - ${f}`;throw new Error(h)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)W.exit(1);else{let f=new Kn(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,u(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 $o(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),$o(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 u=this._findOption(l);if(u){if(u.required){let c=s.shift();c===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,c)}else if(u.optional){let c=null;s.length>0&&!o(s[0])&&(c=s.shift()),this.emit(`option:${u.name()}`,c)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let u=this._findOption(`-${l[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,l.slice(2)):(this.emit(`option:${u.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let u=l.indexOf("="),c=this._findOption(l.slice(0,u));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(u+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}
16
+ - ${f}`;throw new Error(h)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)K.exit(1);else{let f=new zi(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,u(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,i){let n=this._findCommand(e);if(n||this.help({error:!0}),n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}_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=(i,n,s)=>{let o=n;if(n!==null&&i.parseArg)try{o=i.parseArg(n,s)}catch(a){if(a.code==="commander.invalidArgument"){let l=`error: command-argument value '${n}' is invalid for argument '${i.name()}'. ${a.message}`;this.error(l,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((i,n)=>{let s=i.defaultValue;i.variadic?n<this.args.length?(s=this.args.slice(n),i.parseArg&&(s=s.reduce((o,a)=>e(i,a,o),i.defaultValue))):s===void 0&&(s=[]):n<this.args.length&&(s=this.args[n],i.parseArg&&(s=e(i,s,i.defaultValue))),r[n]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let i=e,n=[];return Qr(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{n.push({hookedCommand:s,callback:o})})}),r==="postAction"&&n.reverse(),n.forEach(s=>{i=this._chainOrCall(i,()=>s.callback(s.hookedCommand,this))}),i}_parseCommand(e,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),e=e.concat(i.operands),r=i.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 _a(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),_a(this,i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){n(),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))n(),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():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),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(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=e.find(s=>i.conflictsWith.includes(s.attributeName()));n&&this._conflictingOption(i,n)})}parseOptions(e){let r=[],i=[],n=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==="--"){n===i&&n.push(l),n.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let u=this._findOption(l);if(u){if(u.required){let c=s.shift();c===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,c)}else if(u.optional){let c=null;s.length>0&&!o(s[0])&&(c=s.shift()),this.emit(`option:${u.name()}`,c)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let u=this._findOption(`-${l[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,l.slice(2)):(this.emit(`option:${u.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let u=l.indexOf("="),c=this._findOption(l.slice(0,u));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(u+1));continue}}if(o(l)&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&i.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){i.push(l),s.length>0&&i.push(...s);break}}if(this._passThroughOptions){n.push(l),s.length>0&&n.push(...s);break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e}return this._optionValues}optsWithGlobals(){return Qr(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 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),u=this.options.find(f=>f.negate&&a===f.attributeName()),c=this.options.find(f=>!f.negate&&a===f.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:c||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=Fo(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=Fo(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=>yp(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=vp(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
- 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 $o(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ho(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}qo.Command=Rr});var Go=_((ve,Wo)=>{var{Argument:xp}=wr(),{Command:Uo}=jo(),{CommanderError:Ep,InvalidArgumentError:Vo}=Wt(),{Help:Sp}=Un(),{Option:wp}=Wn();ve=Wo.exports=new Uo;ve.program=ve;ve.Argument=xp;ve.Command=Uo;ve.CommanderError=Ep;ve.Help=Sp;ve.InvalidArgumentError=Vo;ve.InvalidOptionArgumentError=Vo;ve.Option=wp});var Jo=_(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.splitWhen=vt.flatten=void 0;function Ap(t){return t.reduce((e,r)=>[].concat(e,r),[])}vt.flatten=Ap;function Rp(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}vt.splitWhen=Rp});var Qo=_(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.isEnoentCodeError=void 0;function Cp(t){return t.code==="ENOENT"}Cr.isEnoentCodeError=Cp});var Zo=_(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var Xo=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 Op(t,e){return new Xo(t,e)}Or.createDirentFromStats=Op});var zo=_(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.removeLeadingDotSegment=Ce.escape=Ce.makeAbsolute=Ce.unixify=void 0;var Tp=A("path"),Pp=2,Dp=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Lp(t){return t.replace(/\\/g,"/")}Ce.unixify=Lp;function Mp(t,e){return Tp.resolve(t,e)}Ce.makeAbsolute=Mp;function kp(t){return t.replace(Dp,"\\$2")}Ce.escape=kp;function Np(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Pp)}return t}Ce.removeLeadingDotSegment=Np});var ta=_((Uv,ea)=>{ea.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 ia=_((Vv,na)=>{var Bp=ta(),ra={"{":"}","(":")","[":"]"},Ip=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=ra[a];if(l){var u=t.indexOf(l,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},Fp=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=ra[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};na.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Bp(e))return!0;var n=Ip;return r&&r.strict===!1&&(n=Fp),n(e)}});var oa=_((Wv,sa)=>{"use strict";var $p=ia(),Hp=A("path").posix.dirname,qp=A("os").platform()==="win32",Jn="/",jp=/\\/g,Up=/[\{\[].*[\}\]]$/,Vp=/(^|[^\\])([\{\[]|\([^\)]+$)/,Wp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;sa.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&qp&&e.indexOf(Jn)<0&&(e=e.replace(jp,Jn)),Up.test(e)&&(e+=Jn),e+="a";do e=Hp(e);while($p(e)||Vp.test(e));return e.replace(Wp,"$1")}});var Tr=_(he=>{"use strict";he.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;he.find=(t,e)=>t.nodes.find(r=>r.type===e);he.exceedsLimit=(t,e,r=1,n)=>n===!1||!he.isInteger(t)||!he.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;he.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)};he.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;he.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;he.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;he.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);he.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,la)=>{"use strict";var aa=Tr();la.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&aa.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&aa.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 ca=_((Kv,ua)=>{"use strict";ua.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ba=_((Jv,ya)=>{"use strict";var fa=ca(),rt=(t,e,r)=>{if(fa(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(fa(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 u=Math.min(t,e),c=Math.max(t,e);if(Math.abs(u-c)===1){let y=t+"|"+e;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let f=ma(t)||ma(e),h={min:t,max:e,a:u,b:c},x=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),u<0){let y=c<0?Math.abs(c):1;m=ha(y,Math.abs(u),h,n),u=h.a=0}return c>=0&&(x=ha(u,c,h,n)),h.negatives=m,h.positives=x,h.result=Gp(m,x,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&x.length+m.length>1&&(h.result=`(?:${h.result})`),rt.cache[l]=h,h.result};function Gp(t,e,r){let n=Qn(t,e,"-",!1,r)||[],i=Qn(e,t,"",!1,r)||[],s=Qn(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Yp(t,e){let r=1,n=1,i=da(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=da(t,r);for(i=ga(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=ga(e+1,n)-1;return s=[...s],s.sort(Qp),s}function Kp(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=Jp(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,u]=n[a];l===u?s+=l:l!=="0"||u!=="9"?s+=Xp(l,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ha(t,e,r,n){let i=Yp(t,e),s=[],o=t,a;for(let l=0;l<i.length;l++){let u=i[l],c=Kp(String(o),String(u),n),f="";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+_a(a.count),o=u+1;continue}r.isPadded&&(f=Zp(u,r,n)),c.string=f+c.pattern+_a(c.count),s.push(c),o=u+1,a=c}return s}function Qn(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!pa(e,"string",a)&&s.push(r+a),n&&pa(e,"string",a)&&s.push(r+a)}return s}function Jp(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function Qp(t,e){return t>e?1:e>t?-1:0}function pa(t,e,r){return t.some(n=>n[e]===r)}function da(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function ga(t,e){return t-t%Math.pow(10,e)}function _a(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Xp(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ma(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={};ya.exports=rt});var zn=_((Qv,Ca)=>{"use strict";var zp=A("util"),Ea=ba(),va=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ed=t=>e=>t===!0?Number(e):String(e),Xn=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},td=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,rd=(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},nd=(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},Sa=(t,e,r,n)=>{if(r)return Ea(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},wa=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Ea(t,e,r)},Aa=(...t)=>new RangeError("Invalid range arguments: "+zp.inspect(...t)),Ra=(t,e,r)=>{if(r.strictRanges===!0)throw Aa([t,e]);return[]},id=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},sd=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Aa([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),l=String(e),u=String(r);r=Math.max(Math.abs(r),1);let c=Zn(a)||Zn(l)||Zn(u),f=c?Math.max(a.length,l.length,u.length):0,h=c===!1&&td(t,e,n)===!1,x=n.transform||ed(h);if(n.toRegex&&r===1)return Sa(xa(t,f),xa(e,f),!0,n);let m={negatives:[],positives:[]},y=M=>m[M<0?"negatives":"positives"].push(Math.abs(M)),S=[],E=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):S.push(rd(x(i,E),f,h)),i=o?i-r:i+r,E++;return n.toRegex===!0?r>1?nd(m,n):wa(S,null,{wrap:!1,...n}):S},od=(t,e,r=1,n={})=>{if(!Gt(t)&&t.length>1||!Gt(e)&&e.length>1)return Ra(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),u=Math.max(s,o);if(n.toRegex&&r===1)return Sa(l,u,!1,n);let c=[],f=0;for(;a?s>=o:s<=o;)c.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?wa(c,null,{wrap:!1,options:n}):c},Dr=(t,e,r,n={})=>{if(e==null&&Xn(t))return[t];if(!Xn(t)||!Xn(e))return Ra(t,e,n);if(typeof r=="function")return Dr(t,e,1,{transform:r});if(va(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)?sd(t,e,r,i):od(t,e,Math.max(Math.abs(r),1),i):r!=null&&!va(r)?id(r,i):Dr(t,e,1,r)};Ca.exports=Dr});var Pa=_((Xv,Ta)=>{"use strict";var ad=zn(),Oa=Tr(),ld=(t,e={})=>{let r=(n,i={})=>{let s=Oa.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",u="";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=Oa.reduce(n.nodes),f=ad(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let c of n.nodes)u+=r(c,n);return u};return r(t)};Ta.exports=ld});var Ma=_((Zv,La)=>{"use strict";var ud=zn(),Da=Pr(),xt=Tr(),nt=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?xt.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 xt.flatten(n)},cd=(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(),Da(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=xt.reduce(i.nodes);if(xt.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=ud(...f,e);h.length===0&&(h=Da(i,e)),a.push(nt(a.pop(),h)),i.nodes=[];return}let l=xt.encloseBrace(i),u=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(nt(a.pop(),u,l));continue}if(h.value&&h.type!=="open"){u.push(nt(u.pop(),h.value));continue}h.nodes&&n(h,i)}return u};return xt.flatten(n(t))};La.exports=cd});var Na=_((zv,ka)=>{"use strict";ka.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 Ha=_((ex,$a)=>{"use strict";var fd=Pr(),{MAX_LENGTH:Ba,CHAR_BACKSLASH:ei,CHAR_BACKTICK:hd,CHAR_COMMA:pd,CHAR_DOT:dd,CHAR_LEFT_PARENTHESES:gd,CHAR_RIGHT_PARENTHESES:_d,CHAR_LEFT_CURLY_BRACE:md,CHAR_RIGHT_CURLY_BRACE:yd,CHAR_LEFT_SQUARE_BRACKET:Ia,CHAR_RIGHT_SQUARE_BRACKET:Fa,CHAR_DOUBLE_QUOTE:bd,CHAR_SINGLE_QUOTE:vd,CHAR_NO_BREAK_SPACE:xd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ed}=Na(),Sd=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Ba,r.maxLength):Ba;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,u=t.length,c=0,f=0,h,x={},m=()=>t[c++],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"});c<u;)if(o=s[s.length-1],h=m(),!(h===Ed||h===xd)){if(h===ei){y({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===Fa){y({type:"text",value:"\\"+h});continue}if(h===Ia){l++;let S=!0,E;for(;c<u&&(E=m());){if(h+=E,E===Ia){l++;continue}if(E===ei){h+=m();continue}if(E===Fa&&(l--,l===0))break}y({type:"text",value:h});continue}if(h===gd){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:h});continue}if(h===_d){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===bd||h===vd||h===hd){let S=h,E;for(e.keepQuotes!==!0&&(h="");c<u&&(E=m());){if(E===ei){h+=E+m();continue}if(E===S){e.keepQuotes===!0&&(h+=E);break}h+=E}y({type:"text",value:h});continue}if(h===md){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===yd){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===pd&&f>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:fd(o)}]}y({type:"comma",value:h}),o.commas++;continue}if(h===dd&&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 E=S[S.length-1];E.value+=a.value+h,a=E,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],E=S.nodes.indexOf(o);S.nodes.splice(E,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),i};$a.exports=Sd});var Ua=_((tx,ja)=>{"use strict";var qa=Pr(),wd=Pa(),Ad=Ma(),Rd=Ha(),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={})=>Rd(t,e);ue.stringify=(t,e={})=>qa(typeof t=="string"?ue.parse(t,e):t,e);ue.compile=(t,e={})=>(typeof t=="string"&&(t=ue.parse(t,e)),wd(t,e));ue.expand=(t,e={})=>{typeof t=="string"&&(t=ue.parse(t,e));let r=Ad(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);ja.exports=ue});var Yt=_((rx,Ka)=>{"use strict";var Cd=A("path"),Oe="\\\\/",Va=`[^${Oe}]`,Fe="\\.",Od="\\+",Td="\\?",Lr="\\/",Pd="(?=.)",Wa="[^/]",ti=`(?:${Lr}|$)`,Ga=`(?:^|${Lr})`,ri=`${Fe}{1,2}${ti}`,Dd=`(?!${Fe})`,Ld=`(?!${Ga}${ri})`,Md=`(?!${Fe}{0,1}${ti})`,kd=`(?!${ri})`,Nd=`[^.${Lr}]`,Bd=`${Wa}*?`,Ya={DOT_LITERAL:Fe,PLUS_LITERAL:Od,QMARK_LITERAL:Td,SLASH_LITERAL:Lr,ONE_CHAR:Pd,QMARK:Wa,END_ANCHOR:ti,DOTS_SLASH:ri,NO_DOT:Dd,NO_DOTS:Ld,NO_DOT_SLASH:Md,NO_DOTS_SLASH:kd,QMARK_NO_DOT:Nd,STAR:Bd,START_ANCHOR:Ga},Id={...Ya,SLASH_LITERAL:`[${Oe}]`,QMARK:Va,STAR:`${Va}*?`,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}]|$)`},Fd={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"};Ka.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Fd,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:Cd.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?Id:Ya}}});var Kt=_(ae=>{"use strict";var $d=A("path"),Hd=process.platform==="win32",{REGEX_BACKSLASH:qd,REGEX_REMOVE_BACKSLASH:jd,REGEX_SPECIAL_CHARS:Ud,REGEX_SPECIAL_CHARS_GLOBAL:Vd}=Yt();ae.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ae.hasRegexChars=t=>Ud.test(t);ae.isRegexChar=t=>t.length===1&&ae.hasRegexChars(t);ae.escapeRegex=t=>t.replace(Vd,"\\$1");ae.toPosixSlashes=t=>t.replace(qd,"/");ae.removeBackslashes=t=>t.replace(jd,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:Hd===!0||$d.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 rl=_((ix,tl)=>{"use strict";var Ja=Kt(),{CHAR_ASTERISK:ni,CHAR_AT:Wd,CHAR_BACKWARD_SLASH:Jt,CHAR_COMMA:Gd,CHAR_DOT:ii,CHAR_EXCLAMATION_MARK:si,CHAR_FORWARD_SLASH:el,CHAR_LEFT_CURLY_BRACE:oi,CHAR_LEFT_PARENTHESES:ai,CHAR_LEFT_SQUARE_BRACKET:Yd,CHAR_PLUS:Kd,CHAR_QUESTION_MARK:Qa,CHAR_RIGHT_CURLY_BRACE:Jd,CHAR_RIGHT_PARENTHESES:Xa,CHAR_RIGHT_SQUARE_BRACKET:Qd}=Yt(),Za=t=>t===el||t===Jt,za=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Xd=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,u=-1,c=0,f=0,h=!1,x=!1,m=!1,y=!1,S=!1,E=!1,M=!1,N=!1,z=!1,T=!1,q=0,P,R,F={value:"",depth:0,isGlob:!1},w=()=>u>=n,p=()=>l.charCodeAt(u+1),H=()=>(P=R,l.charCodeAt(++u));for(;u<n;){R=H();let se;if(R===Jt){M=F.backslashes=!0,R=H(),R===oi&&(E=!0);continue}if(E===!0||R===oi){for(q++;w()!==!0&&(R=H());){if(R===Jt){M=F.backslashes=!0,H();continue}if(R===oi){q++;continue}if(E!==!0&&R===ii&&(R=H())===ii){if(h=F.isBrace=!0,m=F.isGlob=!0,T=!0,i===!0)continue;break}if(E!==!0&&R===Gd){if(h=F.isBrace=!0,m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Jd&&(q--,q===0)){E=!1,h=F.isBrace=!0,T=!0;break}}if(i===!0)continue;break}if(R===el){if(s.push(u),o.push(F),F={value:"",depth:0,isGlob:!1},T===!0)continue;if(P===ii&&u===c+1){c+=2;continue}f=u+1;continue}if(r.noext!==!0&&(R===Kd||R===Wd||R===ni||R===Qa||R===si)===!0&&p()===ai){if(m=F.isGlob=!0,y=F.isExtglob=!0,T=!0,R===si&&u===c&&(z=!0),i===!0){for(;w()!==!0&&(R=H());){if(R===Jt){M=F.backslashes=!0,R=H();continue}if(R===Xa){m=F.isGlob=!0,T=!0;break}}continue}break}if(R===ni){if(P===ni&&(S=F.isGlobstar=!0),m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Qa){if(m=F.isGlob=!0,T=!0,i===!0)continue;break}if(R===Yd){for(;w()!==!0&&(se=H());){if(se===Jt){M=F.backslashes=!0,H();continue}if(se===Qd){x=F.isBracket=!0,m=F.isGlob=!0,T=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&R===si&&u===c){N=F.negated=!0,c++;continue}if(r.noparen!==!0&&R===ai){if(m=F.isGlob=!0,i===!0){for(;w()!==!0&&(R=H());){if(R===ai){M=F.backslashes=!0,R=H();continue}if(R===Xa){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="";c>0&&(Ue=l.slice(0,c),l=l.slice(c),f-=c),$&&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=Ja.removeBackslashes(d)),$&&M===!0&&($=Ja.removeBackslashes($)));let g={prefix:Ue,input:t,start:c,base:$,glob:d,isBrace:h,isBracket:x,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:c,Re=s[I],le=t.slice(Ae,Re);r.tokens&&(I===0&&c!==0?(o[I].isPrefix=!0,o[I].value=Ue):o[I].value=le,za(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,za(o[o.length-1]),g.maxDepth+=o[o.length-1].depth)}g.slashes=s,g.parts=a}return g};tl.exports=Xd});var sl=_((sx,il)=>{"use strict";var Mr=Yt(),ce=Kt(),{MAX_LENGTH:kr,POSIX_REGEX_SOURCE:Zd,REGEX_NON_SPECIAL_CHARS:zd,REGEX_SPECIAL_CHARS_BACKREF:eg,REPLACEMENTS:nl}=Mr,tg=(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},Et=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,li=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=nl[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),u=Mr.globChars(l),c=Mr.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:x,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:M,QMARK:N,QMARK_NO_DOT:z,STAR:T,START_ANCHOR:q}=u,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)},jh=()=>{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={...c[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)},Uh=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=li(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(eg,(b,D,K,oe,ee,Nn)=>oe==="\\"?(v=!0,b):oe==="?"?D?D+oe+(ee?N.repeat(ee.length):""):Nn===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(Et("opening","("));let b=H[H.length-1];if(b&&p.parens===b.parens+1){Uh(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(Et("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(Et("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=tg(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:x});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){jh();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=zd.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"),Nn=H.length&&(b.type==="pipe"||b.type==="paren");if(!K&&b.type!=="paren"&&!ee&&!Nn){k({type:"star",value:g,output:""});continue}for(;v.slice(0,3)==="/**";){let xr=t[p.index+4];if(xr&&xr!=="/")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 xr=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)}${x}|${x}${xr})`,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=`(?:^|${x}|${P(r)}${x})`,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+=E,d.output+=E):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(Et("closing","]"));p.output=ce.escapeLast(p.output,"["),tt("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Et("closing",")"));p.output=ce.escapeLast(p.output,"("),tt("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Et("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:`${x}?`}),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};li.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=nl[t]||t;let s=ce.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:u,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:x,START_ANCHOR:m}=Mr.globChars(s),y=r.dot?f:c,S=r.dot?h:c,E=r.capture?"":"?:",M={negated:!1,prefix:""},N=r.bash===!0?".*?":x;r.capture&&(N=`(${N})`);let z=R=>R.noglobstar===!0?N:`(${E}(?:(?!${m}${R.dot?u: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};il.exports=li});var al=_((ox,ol)=>{"use strict";var rg=A("path"),ng=rl(),ui=sl(),ci=Kt(),ig=Yt(),sg=t=>t&&typeof t=="object"&&!Array.isArray(t),Q=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(h=>Q(h,e,r));return h=>{for(let x of c){let m=x(h);if(m)return m}return!1}}let n=sg(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=ci.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 c={...e,ignore:null,onMatch:null,onResult:null};l=Q(i.ignore,c,r)}let u=(c,f=!1)=>{let{isMatch:h,match:x,output:m}=Q.test(c,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:c,output:m,match:x,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,f?y:!1):l(c)?(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&&(u.state=a),u};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?ci.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=ci.isWindows(r))=>(e instanceof RegExp?e:Q.makeRe(e,r)).test(rg.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)):ui(t,{...e,fastpaths:!1});Q.scan=(t,e)=>ng(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=ui.fastpaths(t,e)),i.output||(i=ui(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=ig;ol.exports=Q});var ul=_((ax,ll)=>{"use strict";ll.exports=al()});var dl=_((lx,pl)=>{"use strict";var fl=A("util"),hl=Ua(),Te=ul(),fi=Kt(),cl=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=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let f=Te(String(e[c]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let x of t){let m=f(x,!0);!(h?!m.isMatch:m.isMatch)||(h?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let u=(o===e.length?[...s]:[...i]).filter(c=>!n.has(c));if(r&&u.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 u};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: "${fl.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>G.contains(t,n,r));if(typeof e=="string"){if(cl(t)||cl(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(!fi.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: "${fl.inspect(t)}"`);return[].concat(e).every(n=>Te(n,r)(t))};G.capture=(t,e,r)=>{let n=fi.isWindows(r),s=Te.makeRe(String(t),{...r,capture:!0}).exec(n?fi.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 hl(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]:hl(t,e)};G.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return G.braces(t,{...e,expand:!0})};pl.exports=G});var El=_(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 og=A("path"),ag=oa(),hi=dl(),gl="**",lg="\\",ug=/[*?]|^!/,cg=/\[[^[]*]/,fg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,hg=/[!*+?@]\([^(]*\)/,pg=/,|\.\./;function _l(t,e={}){return!ml(t,e)}O.isStaticPattern=_l;function ml(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(lg)||ug.test(t)||cg.test(t)||fg.test(t)||e.extglob!==!1&&hg.test(t)||e.braceExpansion!==!1&&dg(t))}O.isDynamicPattern=ml;function dg(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 pg.test(n)}function gg(t){return Nr(t)?t.slice(1):t}O.convertToPositivePattern=gg;function _g(t){return"!"+t}O.convertToNegativePattern=_g;function Nr(t){return t.startsWith("!")&&t[1]!=="("}O.isNegativePattern=Nr;function yl(t){return!Nr(t)}O.isPositivePattern=yl;function mg(t){return t.filter(Nr)}O.getNegativePatterns=mg;function yg(t){return t.filter(yl)}O.getPositivePatterns=yg;function bg(t){return t.filter(e=>!pi(e))}O.getPatternsInsideCurrentDirectory=bg;function vg(t){return t.filter(pi)}O.getPatternsOutsideCurrentDirectory=vg;function pi(t){return t.startsWith("..")||t.startsWith("./..")}O.isPatternRelatedToParentDirectory=pi;function xg(t){return ag(t,{flipBackslashes:!1})}O.getBaseDirectory=xg;function Eg(t){return t.includes(gl)}O.hasGlobStar=Eg;function bl(t){return t.endsWith("/"+gl)}O.endsWithSlashGlobStar=bl;function Sg(t){let e=og.basename(t);return bl(t)||_l(e)}O.isAffectDepthOfReadingPattern=Sg;function wg(t){return t.reduce((e,r)=>e.concat(vl(r)),[])}O.expandPatternsWithBraceExpansion=wg;function vl(t){return hi.braces(t,{expand:!0,nodupes:!0})}O.expandBraceExpansion=vl;function Ag(t,e){let{parts:r}=hi.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=Ag;function xl(t,e){return hi.makeRe(t,e)}O.makeRe=xl;function Rg(t,e){return t.map(r=>xl(r,e))}O.convertPatternsToRe=Rg;function Cg(t,e){return e.some(r=>r.test(t))}O.matchAny=Cg});var Rl=_((cx,Al)=>{"use strict";var Og=A("stream"),Sl=Og.PassThrough,Tg=Array.prototype.slice;Al.exports=Pg;function Pg(){let t=[],e=Tg.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=Sl(n);function a(){for(let c=0,f=arguments.length;c<f;c++)t.push(wl(arguments[c],n));return l(),this}function l(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(u);return}Array.isArray(c)||(c=[c]);let f=c.length+1;function h(){--f>0||(r=!1,l())}function x(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",S),h()}function S(E){o.emit("error",E)}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<c.length;m++)x(c[m]);h()}function u(){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 wl(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=wl(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Sl(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ol=_(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.merge=void 0;var Dg=Rl();function Lg(t){let e=Dg(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Cl(t)),e.once("end",()=>Cl(t)),e}Br.merge=Lg;function Cl(t){t.forEach(e=>e.emit("close"))}});var Tl=_(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.isEmpty=St.isString=void 0;function Mg(t){return typeof t=="string"}St.isString=Mg;function kg(t){return t===""}St.isEmpty=kg});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 Ng=Jo();re.array=Ng;var Bg=Qo();re.errno=Bg;var Ig=Zo();re.fs=Ig;var Fg=zo();re.path=Fg;var $g=El();re.pattern=$g;var Hg=Ol();re.stream=Hg;var qg=Tl();re.string=qg});var Ll=_(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 jg(t,e){let r=Pl(t),n=Dl(t,e.ignore),i=r.filter(l=>He.pattern.isStaticPattern(l,e)),s=r.filter(l=>He.pattern.isDynamicPattern(l,e)),o=di(i,n,!1),a=di(s,n,!0);return o.concat(a)}ne.generate=jg;function di(t,e,r){let n=[],i=He.pattern.getPatternsOutsideCurrentDirectory(t),s=He.pattern.getPatternsInsideCurrentDirectory(t),o=gi(i),a=gi(s);return n.push(..._i(o,e,r)),"."in a?n.push(mi(".",s,e,r)):n.push(..._i(a,e,r)),n}ne.convertPatternsToTasks=di;function Pl(t){return He.pattern.getPositivePatterns(t)}ne.getPositivePatterns=Pl;function Dl(t,e){return He.pattern.getNegativePatterns(t).concat(e).map(He.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Dl;function gi(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=gi;function _i(t,e,r){return Object.keys(t).map(n=>mi(n,t[n],e,r))}ne.convertPatternGroupsToTasks=_i;function mi(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(He.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=mi});var kl=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.removeDuplicateSlashes=wt.transform=void 0;var Ug=/(?!^)\/{2,}/g;function Vg(t){return t.map(e=>Ml(e))}wt.transform=Vg;function Ml(t){return t.replace(Ug,"/")}wt.removeDuplicateSlashes=Ml});var Bl=_(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.read=void 0;function Wg(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Nl(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){yi(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Nl(r,s);return}yi(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),yi(r,o)})})}Ir.read=Wg;function Nl(t,e){t(e)}function yi(t,e){t(null,e)}});var Il=_(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.read=void 0;function Gg(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=Gg});var Fl=_(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 Yg(t){return t===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),t)}Ve.createFileSystemAdapter=Yg});var Hl=_(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Kg=Fl(),$l=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kg.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}};bi.default=$l});var it=_(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.statSync=We.stat=We.Settings=void 0;var ql=Bl(),Jg=Il(),vi=Hl();We.Settings=vi.default;function Qg(t,e,r){if(typeof e=="function"){ql.read(t,xi(),e);return}ql.read(t,xi(e),r)}We.stat=Qg;function Xg(t,e){let r=xi(e);return Jg.read(t,r)}We.statSync=Xg;function xi(t={}){return t instanceof vi.default?t:new vi.default(t)}});var Vl=_((xx,Ul)=>{var jl;Ul.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(jl||(jl=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Gl=_((Ex,Wl)=>{Wl.exports=zg;var Zg=Vl();function zg(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 u(){e&&e(l,r),e=null}s?Zg(u):u()}function a(l,u,c){r[l]=c,(--n===0||u)&&o(u)}n?i?i.forEach(function(l){t[l](function(u,c){a(l,u,c)})}):t.forEach(function(l,u){l(function(c,f){a(u,c,f)})}):o(null),s=!1}});var Ei=_(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 Yl=Number.parseInt(Hr[0],10),e_=Number.parseInt(Hr[1],10),Kl=10,t_=10,r_=Yl>Kl,n_=Yl===Kl&&e_>=t_;qr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=r_||n_});var Ql=_(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createDirentFromStats=void 0;var Jl=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 i_(t,e){return new Jl(t,e)}jr.createDirentFromStats=i_});var Si=_(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.fs=void 0;var s_=Ql();Ur.fs=s_});var wi=_(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.joinPathSegments=void 0;function o_(t,e,r){return t.endsWith(r)?t+e:t+r+e}Vr.joinPathSegments=o_});var ru=_(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var a_=it(),Xl=Gl(),l_=Ei(),Zl=Si(),zl=wi();function u_(t,e,r){if(!e.stats&&l_.IS_SUPPORT_READDIR_WITH_FILE_TYPES){eu(t,e,r);return}tu(t,e,r)}Ge.read=u_;function eu(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:zl.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Ai(r,s);return}let o=s.map(a=>c_(a,e));Xl(o,(a,l)=>{if(a!==null){Wr(r,a);return}Ai(r,l)})})}Ge.readdirWithFileTypes=eu;function c_(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 tu(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Wr(r,n);return}let s=i.map(o=>{let a=zl.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{a_.stat(a,e.fsStatSettings,(u,c)=>{if(u!==null){l(u);return}let f={name:o,path:a,dirent:Zl.fs.createDirentFromStats(o,c)};e.stats&&(f.stats=c),l(null,f)})}});Xl(s,(o,a)=>{if(o!==null){Wr(r,o);return}Ai(r,a)})})}Ge.readdir=tu;function Wr(t,e){t(e)}function Ai(t,e){t(null,e)}});var au=_(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.readdir=Ye.readdirWithFileTypes=Ye.read=void 0;var f_=it(),h_=Ei(),nu=Si(),iu=wi();function p_(t,e){return!e.stats&&h_.IS_SUPPORT_READDIR_WITH_FILE_TYPES?su(t,e):ou(t,e)}Ye.read=p_;function su(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:iu.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=nu.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ye.readdirWithFileTypes=su;function ou(t,e){return e.fs.readdirSync(t).map(n=>{let i=iu.joinPathSegments(t,n,e.pathSegmentSeparator),s=f_.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:nu.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Ye.readdir=ou});var lu=_(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 d_(t){return t===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),t)}Ke.createFileSystemAdapter=d_});var cu=_(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var g_=A("path"),__=it(),m_=lu(),uu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=m_.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,g_.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new __.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Ri.default=uu});var Gr=_(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Settings=Je.scandirSync=Je.scandir=void 0;var fu=ru(),y_=au(),Ci=cu();Je.Settings=Ci.default;function b_(t,e,r){if(typeof e=="function"){fu.read(t,Oi(),e);return}fu.read(t,Oi(e),r)}Je.scandir=b_;function v_(t,e){let r=Oi(e);return y_.read(t,r)}Je.scandirSync=v_;function Oi(t={}){return t instanceof Ci.default?t:new Ci.default(t)}});var pu=_((Lx,hu)=>{"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}}hu.exports=x_});var gu=_((Mx,Ti)=>{"use strict";var E_=pu();function du(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=E_(S_),i=null,s=null,o=0,a=null,l={push:y,drain:pe,saturated:pe,pause:c,paused:!1,concurrency:r,running:u,resume:x,idle:m,length:f,getQueue:h,unshift:S,empty:pe,kill:M,killAndDrain:N,error:z};return l;function u(){return o}function c(){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 x(){if(!!l.paused){l.paused=!1;for(var T=0;T<l.concurrency;T++)o++,E()}}function m(){return o===0&&l.length()===0}function y(T,q){var P=n.get();P.context=t,P.release=E,P.value=T,P.callback=q||pe,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=E,P.value=T,P.callback=q||pe,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 E(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=pe}function N(){i=null,s=null,l.drain(),l.drain=pe}function z(T){a=T}}function pe(){}function S_(){this.value=null,this.callback=pe,this.next=null,this.release=pe,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=pe,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function w_(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(c,f){e.call(this,c).then(function(h){f(null,h)},f)}var i=du(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=u,i;function a(c){var f=new Promise(function(h,x){s(c,function(m,y){if(m){x(m);return}h(y)})});return f.catch(pe),f}function l(c){var f=new Promise(function(h,x){o(c,function(m,y){if(m){x(m);return}h(y)})});return f.catch(pe),f}function u(){var c=i.drain,f=new Promise(function(h){i.drain=function(){c(),h()}});return f}}Ti.exports=du;Ti.exports.promise=w_});var Yr=_(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.joinPathSegments=Pe.replacePathSegmentSeparator=Pe.isAppliedFilter=Pe.isFatalError=void 0;function A_(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Pe.isFatalError=A_;function R_(t,e){return t===null||t(e)}Pe.isAppliedFilter=R_;function C_(t,e){return t.split(/[/\\]/).join(e)}Pe.replacePathSegmentSeparator=C_;function O_(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Pe.joinPathSegments=O_});var Di=_(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var T_=Yr(),_u=class{constructor(e,r){this._root=e,this._settings=r,this._root=T_.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Pi.default=_u});var Mi=_(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var P_=A("events"),D_=Gr(),L_=gu(),Kr=Yr(),M_=Di(),mu=class extends M_.default{constructor(e,r){super(e,r);this._settings=r,this._scandir=D_.scandir,this._emitter=new P_.EventEmitter,this._queue=L_(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)}};Li.default=mu});var bu=_(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var k_=Mi(),yu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new k_.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{N_(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{B_(e,this._storage)}),this._reader.read()}};ki.default=yu;function N_(t,e){t(e)}function B_(t,e){t(null,e)}});var xu=_(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var I_=A("stream"),F_=Mi(),vu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new F_.default(this._root,this._settings),this._stream=new I_.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}};Ni.default=vu});var Su=_(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var $_=Gr(),Jr=Yr(),H_=Di(),Eu=class extends H_.default{constructor(){super(...arguments);this._scandir=$_.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)}};Bi.default=Eu});var Au=_(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var q_=Su(),wu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new q_.default(this._root,this._settings)}read(){return this._reader.read()}};Ii.default=wu});var Cu=_(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var j_=A("path"),U_=Gr(),Ru=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,j_.sep),this.fsScandirSettings=new U_.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}};Fi.default=Ru});var Hi=_(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.Settings=De.walkStream=De.walkSync=De.walk=void 0;var Ou=bu(),V_=xu(),W_=Au(),$i=Cu();De.Settings=$i.default;function G_(t,e,r){if(typeof e=="function"){new Ou.default(t,Qr()).read(e);return}new Ou.default(t,Qr(e)).read(r)}De.walk=G_;function Y_(t,e){let r=Qr(e);return new W_.default(t,r).read()}De.walkSync=Y_;function K_(t,e){let r=Qr(e);return new V_.default(t,r).read()}De.walkStream=K_;function Qr(t={}){return t instanceof $i.default?t:new $i.default(t)}});var ji=_(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var J_=A("path"),Q_=it(),Tu=$e(),Pu=class{constructor(e){this._settings=e,this._fsStatSettings=new Q_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return J_.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Tu.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Tu.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};qi.default=Pu});var Vi=_(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var X_=A("stream"),Z_=it(),z_=Hi(),em=ji(),Du=class extends em.default{constructor(){super(...arguments);this._walkStream=z_.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 X_.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))})}};Ui.default=Du});var Mu=_(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Rt=$e(),Lu=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))}};Wi.default=Lu});var Nu=_(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var tm=Mu(),ku=class extends tm.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,u)=>{let c=s.segments[u];return!!(c.dynamic&&c.patternRe.test(l)||!c.dynamic&&c.pattern===l)}))return!0}return!1}};Gi.default=ku});var Iu=_(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var Xr=$e(),rm=Nu(),Bu=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 rm.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)}};Yi.default=Bu});var $u=_(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var st=$e(),Fu=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)}};Ki.default=Fu});var qu=_(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var nm=$e(),Hu=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return nm.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ji.default=Hu});var Vu=_(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var ju=$e(),Uu=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=ju.path.makeAbsolute(this._settings.cwd,r),r=ju.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Qi.default=Uu});var Zr=_(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});var im=A("path"),sm=Iu(),om=$u(),am=qu(),lm=Vu(),Wu=class{constructor(e){this._settings=e,this.errorFilter=new am.default(this._settings),this.entryFilter=new om.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new sm.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new lm.default(this._settings)}_getRootDirectory(e){return im.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}}};Xi.default=Wu});var Yu=_(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var um=Vi(),cm=Zr(),Gu=class extends cm.default{constructor(){super(...arguments);this._reader=new um.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=Gu});var Ju=_(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var fm=A("stream"),hm=Vi(),pm=Zr(),Ku=class extends pm.default{constructor(){super(...arguments);this._reader=new hm.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new fm.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)}};zi.default=Ku});var Xu=_(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var dm=it(),gm=Hi(),_m=ji(),Qu=class extends _m.default{constructor(){super(...arguments);this._walkSync=gm.walkSync,this._statSync=dm.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)}};es.default=Qu});var zu=_(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var mm=Xu(),ym=Zr(),Zu=class extends ym.default{constructor(){super(...arguments);this._reader=new mm.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)}};ts.default=Zu});var tc=_(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ct=A("fs"),bm=A("os"),vm=Math.max(bm.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 ec=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,vm),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=ec});var ss=_((nE,ic)=>{"use strict";var rc=Ll(),nc=kl(),xm=Yu(),Em=Ju(),Sm=zu(),rs=tc(),ot=$e();async function ns(t,e){Tt(t);let r=is(t,xm.default,e),n=await Promise.all(r);return ot.array.flatten(n)}(function(t){function e(o,a){Tt(o);let l=is(o,Sm.default,a);return ot.array.flatten(l)}t.sync=e;function r(o,a){Tt(o);let l=is(o,Em.default,a);return ot.stream.merge(l)}t.stream=r;function n(o,a){Tt(o);let l=nc.transform([].concat(o)),u=new rs.default(a);return rc.generate(l,u)}t.generateTasks=n;function i(o,a){Tt(o);let l=new rs.default(a);return ot.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=i;function s(o){return Tt(o),ot.path.escape(o)}t.escapePath=s})(ns||(ns={}));function is(t,e,r){let n=nc.transform([].concat(t)),i=new rs.default(r),s=rc.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")}ic.exports=ns});var oc=_((iE,os)=>{"use strict";var sc=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};os.exports=sc;os.exports.default=sc});var lc=_((sE,en)=>{"use strict";var wm=oc(),zr=new WeakMap,ac=(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 wm(s,t),zr.set(s,n),s};en.exports=ac;en.exports.default=ac;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 uc=_((oE,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 dc=_((aE,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)?(cc=A("assert"),Pt=uc(),fc=/^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(){};cc.equal(typeof t,"function","a callback must be provided for exit handler"),Dt===!1&&as();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=ls,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),fc&&t==="SIGHUP"&&(t="SIGINT"),Y.kill(Y.pid,t))}}}),Lt.exports.signals=function(){return Pt},Dt=!1,as=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=pc,Y.reallyExit=hc)},Lt.exports.load=as,ls=Y.reallyExit,hc=function(e){!at(global.process)||(Y.exitCode=e||0,lt("exit",Y.exitCode,null),lt("afterexit",Y.exitCode,null),ls.call(Y,Y.exitCode))},sn=Y.emit,pc=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 cc,Pt,fc,Qt,te,rn,lt,nn,Dt,as,ls,hc,sn,pc});var bc=_((pE,Cm)=>{Cm.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 Ec=_((dE,xc)=>{"use strict";var an=Object.assign({},bc()),vc=Object.keys(an);Object.defineProperty(an,"random",{get(){let t=Math.floor(Math.random()*vc.length),e=vc[t];return an[e]}});xc.exports=an});var Sc=_((SE,ln)=>{var Dm=function(){"use strict";function t(o,a,l,u){var c;typeof a=="object"&&(l=a.depth,u=a.prototype,c=a.filter,a=a.circular);var f=[],h=[],x=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 E,M;if(typeof y!="object")return y;if(t.__isArray(y))E=[];else if(t.__isRegExp(y))E=new RegExp(y.source,s(y)),y.lastIndex&&(E.lastIndex=y.lastIndex);else if(t.__isDate(y))E=new Date(y.getTime());else{if(x&&Buffer.isBuffer(y))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(y.length):E=new Buffer(y.length),y.copy(E),E;typeof u>"u"?(M=Object.getPrototypeOf(y),E=Object.create(M)):(E=Object.create(u),M=u)}if(a){var N=f.indexOf(y);if(N!=-1)return h[N];f.push(y),h.push(E)}for(var z in y){var T;M&&(T=Object.getOwnPropertyDescriptor(M,z)),!(T&&T.set==null)&&(E[z]=m(y[z],S-1))}return E}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=Dm)});var Ac=_((wE,wc)=>{var Lm=Sc();wc.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Lm(e[r]))}),t}});var Cc=_((AE,Rc)=>{Rc.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 Dc=_((RE,hs)=>{"use strict";var Mm=Ac(),zt=Cc(),Tc={nul:0,control:0};hs.exports=function(e){return Pc(e,Tc)};hs.exports.config=function(t){return t=Mm(t||{},Tc),function(r){return Pc(r,t)}};function Pc(t,e){if(typeof t!="string")return Oc(t,e);for(var r=0,n=0;n<t.length;n++){var i=Oc(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function Oc(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:km(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 km(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 ds=_((OE,Lc)=>{Lc.exports=A("stream")});var Bc=_((TE,Nc)=>{"use strict";function Mc(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 Nm(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mc(Object(r),!0).forEach(function(n){Bm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kc(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 Fm(t,e,r){return e&&kc(t.prototype,e),r&&kc(t,r),t}var $m=A("buffer"),un=$m.Buffer,Hm=A("util"),gs=Hm.inspect,qm=gs&&gs.custom||"inspect";function jm(t,e,r){un.prototype.copy.call(t,e,r)}Nc.exports=function(){function t(){Im(this,t),this.head=null,this.tail=null,this.length=0}return Fm(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;)jm(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:qm,value:function(r,n){return gs(this,Nm({},n,{depth:0,customInspect:!1}))}}]),t}()});var ms=_((PE,Fc)=>{"use strict";function Um(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(_s,this,t)):process.nextTick(_s,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(Ic,r,s)):process.nextTick(Ic,r,s):e?(process.nextTick(cn,r),e(s)):process.nextTick(cn,r)}),this)}function Ic(t,e){_s(t,e),cn(t)}function cn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Vm(){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 _s(t,e){t.emit("error",e)}function Wm(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Fc.exports={destroy:Um,undestroy:Vm,errorOrDestroy:Wm}});var Qe=_((DE,qc)=>{"use strict";var Hc={};function de(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,Hc[t]=i}function $c(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 Gm(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Ym(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Km(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}de("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);de("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Gm(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Ym(t," argument"))i=`The ${t} ${n} ${$c(e,"type")}`;else{let s=Km(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${$c(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);de("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");de("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});de("ERR_STREAM_PREMATURE_CLOSE","Premature close");de("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});de("ERR_MULTIPLE_CALLBACK","Callback called multiple times");de("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");de("ERR_STREAM_WRITE_AFTER_END","write after end");de("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);de("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);de("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");qc.exports.codes=Hc});var ys=_((LE,jc)=>{"use strict";var Jm=Qe().codes.ERR_INVALID_OPT_VALUE;function Qm(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Xm(t,e,r,n){var i=Qm(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Jm(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}jc.exports={getHighWaterMark:Xm}});var Uc=_((ME,bs)=>{typeof Object.create=="function"?bs.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:bs.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=_((kE,xs)=>{try{if(vs=A("util"),typeof vs.inherits!="function")throw"";xs.exports=vs.inherits}catch{xs.exports=Uc()}var vs});var Wc=_((NE,Vc)=>{Vc.exports=A("util").deprecate});var ws=_((BE,Xc)=>{"use strict";Xc.exports=J;function Yc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){w0(e,t)}}var kt;J.WritableState=tr;var Zm={deprecate:Wc()},Kc=ds(),hn=A("buffer").Buffer,zm=global.Uint8Array||function(){};function e0(t){return hn.from(t)}function t0(t){return hn.isBuffer(t)||t instanceof zm}var Ss=ms(),r0=ys(),n0=r0.getHighWaterMark,Xe=Qe().codes,i0=Xe.ERR_INVALID_ARG_TYPE,s0=Xe.ERR_METHOD_NOT_IMPLEMENTED,o0=Xe.ERR_MULTIPLE_CALLBACK,a0=Xe.ERR_STREAM_CANNOT_PIPE,l0=Xe.ERR_STREAM_DESTROYED,u0=Xe.ERR_STREAM_NULL_VALUES,c0=Xe.ERR_STREAM_WRITE_AFTER_END,f0=Xe.ERR_UNKNOWN_ENCODING,Nt=Ss.errorOrDestroy;ut()(J,Kc);function h0(){}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=n0(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){b0(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 Yc(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)),Kc.call(this)}J.prototype.pipe=function(){Nt(this,new a0)};function p0(t,e){var r=new c0;Nt(t,r),process.nextTick(e,r)}function d0(t,e,r,n){var i;return r===null?i=new u0:typeof r!="string"&&!e.objectMode&&(i=new i0("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&&t0(t);return s&&!hn.isBuffer(t)&&(t=e0(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=h0),n.ending?p0(this,r):(s||d0(this,n,t,r))&&(n.pendingcb++,i=_0(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&&Jc(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 f0(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function g0(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 _0(t,e,r,n,i,s){if(!r){var o=g0(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 u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Es(t,e,!1,a,n,i,s);return l}function Es(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new l0("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function m0(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 y0(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function b0(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new o0;if(y0(r),e)m0(t,r,n,e,i);else{var s=Qc(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Jc(t,r),n?process.nextTick(Gc,t,r,s,i):Gc(t,r,s,i)}}function Gc(t,e,r,n){r||v0(t,e),e.pendingcb--,n(),er(t,e)}function v0(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Jc(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,Es(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 Yc(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,f=e.objectMode?1:l.length;if(Es(t,e,!1,f,l,u,c),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 s0("_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||S0(this,n,r),this};Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Qc(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 E0(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=Qc(e);if(r&&(E0(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 S0(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 w0(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=Ss.destroy;J.prototype._undestroy=Ss.undestroy;J.prototype._destroy=function(t,e){e(t)}});var ct=_((IE,zc)=>{"use strict";var A0=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};zc.exports=Le;var Zc=Cs(),Rs=ws();ut()(Le,Zc);for(As=A0(Rs.prototype),pn=0;pn<As.length;pn++)dn=As[pn],Le.prototype[dn]||(Le.prototype[dn]=Rs.prototype[dn]);var As,dn,pn;function Le(t){if(!(this instanceof Le))return new Le(t);Zc.call(this,t),Rs.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",R0)))}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 R0(){this._writableState.ended||process.nextTick(C0,this)}function C0(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 rf=_((Os,tf)=>{var gn=A("buffer"),Me=gn.Buffer;function ef(t,e){for(var r in t)e[r]=t[r]}Me.from&&Me.alloc&&Me.allocUnsafe&&Me.allocUnsafeSlow?tf.exports=gn:(ef(gn,Os),Os.Buffer=ft);function ft(t,e,r){return Me(t,e,r)}ft.prototype=Object.create(Me.prototype);ef(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 Ds=_(sf=>{"use strict";var Ps=rf().Buffer,nf=Ps.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 O0(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 T0(t){var e=O0(t);if(typeof e!="string"&&(Ps.isEncoding===nf||!nf(t)))throw new Error("Unknown encoding: "+t);return e||t}sf.StringDecoder=rr;function rr(t){this.encoding=T0(t);var e;switch(this.encoding){case"utf16le":this.text=N0,this.end=B0,e=4;break;case"utf8":this.fillLast=L0,e=4;break;case"base64":this.text=I0,this.end=F0,e=3;break;default:this.write=$0,this.end=H0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ps.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=k0;rr.prototype.text=M0;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 Ts(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function P0(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Ts(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Ts(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Ts(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function D0(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 L0(t){var e=this.lastTotal-this.lastNeed,r=D0(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 M0(t,e){var r=P0(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 k0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function N0(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 B0(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 I0(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 F0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function $0(t){return t.toString(this.encoding)}function H0(t){return t&&t.length?this.write(t):""}});var _n=_(($E,lf)=>{"use strict";var of=Qe().codes.ERR_STREAM_PREMATURE_CLOSE;function q0(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 j0(){}function U0(t){return t.setHeader&&typeof t.abort=="function"}function af(t,e,r){if(typeof e=="function")return af(t,null,e);e||(e={}),r=q0(r||j0);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,u=function(){n=!1,l=!0,i||r.call(t)},c=function(m){r.call(t,m)},f=function(){var m;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(m=new of),r.call(t,m);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new of),r.call(t,m)},h=function(){t.req.on("finish",a)};return U0(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",u),t.on("finish",a),e.error!==!1&&t.on("error",c),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",u),t.removeListener("error",c),t.removeListener("close",f)}}lf.exports=af});var cf=_((HE,uf)=>{"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 V0=_n(),ze=Symbol("lastResolve"),ht=Symbol("lastReject"),nr=Symbol("error"),yn=Symbol("ended"),pt=Symbol("lastPromise"),Ls=Symbol("handlePromise"),dt=Symbol("stream");function et(t,e){return{value:t,done:e}}function W0(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 G0(t){process.nextTick(W0,t)}function Y0(t,e){return function(r,n){t.then(function(){if(e[yn]){r(et(void 0,!0));return}e[Ls](r,n)},n)}}var K0=Object.getPrototypeOf(function(){}),J0=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(Y0(n,this));else{var s=this[dt].read();if(s!==null)return Promise.resolve(et(s,!1));i=new Promise(this[Ls])}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),K0),Q0=function(e){var r,n=Object.create(J0,(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,Ls,{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,V0(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",G0.bind(null,n)),n};uf.exports=Q0});var df=_((qE,pf)=>{"use strict";function ff(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function X0(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){ff(s,n,i,o,a,"next",l)}function a(l){ff(s,n,i,o,a,"throw",l)}o(void 0)})}}function hf(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?hf(Object(r),!0).forEach(function(n){z0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function z0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ey=Qe().codes.ERR_INVALID_ARG_TYPE;function ty(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 ey("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=X0(function*(){try{var l=yield n.next(),u=l.value,c=l.done;c?i.push(null):i.push(yield u)?o():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}pf.exports=ty});var Cs=_((UE,wf)=>{"use strict";wf.exports=B;var Bt;B.ReadableState=yf;var jE=A("events").EventEmitter,mf=function(e,r){return e.listeners(r).length},sr=ds(),bn=A("buffer").Buffer,ry=global.Uint8Array||function(){};function ny(t){return bn.from(t)}function iy(t){return bn.isBuffer(t)||t instanceof ry}var Ms=A("util"),L;Ms&&Ms.debuglog?L=Ms.debuglog("stream"):L=function(){};var sy=Bc(),Hs=ms(),oy=ys(),ay=oy.getHighWaterMark,vn=Qe().codes,ly=vn.ERR_INVALID_ARG_TYPE,uy=vn.ERR_STREAM_PUSH_AFTER_EOF,cy=vn.ERR_METHOD_NOT_IMPLEMENTED,fy=vn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,It,ks,Ns;ut()(B,sr);var ir=Hs.errorOrDestroy,Bs=["error","close","destroy","pause","resume"];function hy(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 yf(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=ay(this,t,"readableHighWaterMark",r),this.buffer=new sy,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=Ds().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 yf(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=Hs.destroy;B.prototype._undestroy=Hs.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),bf(this,t,e,!1,n)};B.prototype.unshift=function(t){return bf(this,t,null,!0,!1)};function bf(t,e,r,n,i){L("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,gy(t,s);else{var o;if(i||(o=py(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=ny(e)),n)s.endEmitted?ir(t,new fy):Is(t,s,e,!0);else if(s.ended)ir(t,new uy);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Is(t,s,e,!1):$s(t,s)):Is(t,s,e,!1)}else n||(s.reading=!1,$s(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Is(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&&xn(t)),$s(t,e)}function py(t,e){var r;return!iy(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new ly("chunk",["string","Buffer","Uint8Array"],e)),r}B.prototype.isPaused=function(){return this._readableState.flowing===!1};B.prototype.setEncoding=function(t){It||(It=Ds().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 gf=1073741824;function dy(t){return t>=gf?t=gf:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function _f(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=dy(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?Fs(this):xn(this),null;if(t=_f(t,e),t===0&&e.ended)return e.length===0&&Fs(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=_f(r,e)));var i;return t>0?i=Ef(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&&Fs(this)),i!==null&&this.emit("data",i),i};function gy(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?xn(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,vf(t)))}}function xn(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(vf,t))}function vf(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,qs(t)}function $s(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(_y,t,e))}function _y(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 cy("_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,E){L("onunpipe"),S===r&&E&&E.hasUnpiped===!1&&(E.hasUnpiped=!0,c())}function a(){L("onend"),t.end()}var l=my(r);t.on("drain",l);var u=!1;function c(){L("cleanup"),t.removeListener("close",x),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),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(S){L("ondata");var E=t.write(S);L("dest.write",E),E===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Sf(n.pipes,t)!==-1)&&!u&&(L("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(S){L("onerror",S),y(),t.removeListener("error",h),mf(t,"error")===0&&ir(t,S)}hy(t,"error",h);function x(){t.removeListener("finish",m),y()}t.once("close",x);function m(){L("onfinish"),t.removeListener("close",x),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 my(t){return function(){var r=t._readableState;L("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&mf(t,"data")&&(r.flowing=!0,qs(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=Sf(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?xn(this):n.reading||process.nextTick(yy,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 yy(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,by(this,t)),t.paused=!1,this};function by(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(vy,t,e))}function vy(t,e){L("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qs(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 qs(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<Bs.length;s++)t.on(Bs[s],this.emit.bind(this,Bs[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 ks===void 0&&(ks=cf()),ks(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=Ef;Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ef(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 Fs(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 Ns===void 0&&(Ns=df()),Ns(B,t,e)});function Sf(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var js=_((VE,Rf)=>{"use strict";Rf.exports=je;var En=Qe().codes,Ey=En.ERR_METHOD_NOT_IMPLEMENTED,Sy=En.ERR_MULTIPLE_CALLBACK,wy=En.ERR_TRANSFORM_ALREADY_TRANSFORMING,Ay=En.ERR_TRANSFORM_WITH_LENGTH_0,Sn=ct();ut()(je,Sn);function Ry(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Sy);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:Ry.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",Cy)}function Cy(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Af(t,e,r)}):Af(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 Ey("_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 Af(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Ay;if(t._transformState.transforming)throw new wy;return t.push(null)}});var Tf=_((WE,Of)=>{"use strict";Of.exports=or;var Cf=js();ut()(or,Cf);function or(t){if(!(this instanceof or))return new or(t);Cf.call(this,t)}or.prototype._transform=function(t,e,r){r(null,t)}});var kf=_((GE,Mf)=>{"use strict";var Us;function Oy(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Lf=Qe().codes,Ty=Lf.ERR_MISSING_ARGS,Py=Lf.ERR_STREAM_DESTROYED;function Pf(t){if(t)throw t}function Dy(t){return t.setHeader&&typeof t.abort=="function"}function Ly(t,e,r,n){n=Oy(n);var i=!1;t.on("close",function(){i=!0}),Us===void 0&&(Us=_n()),Us(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,Dy(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Py("pipe"))}}}function Df(t){t()}function My(t,e){return t.pipe(e)}function ky(t){return!t.length||typeof t[t.length-1]!="function"?Pf:t.pop()}function Ny(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=ky(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Ty("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return Ly(o,l,u,function(c){i||(i=c),c&&s.forEach(Df),!l&&(s.forEach(Df),n(i))})});return e.reduce(My)}Mf.exports=Ny});var Nf=_((ge,lr)=>{var ar=A("stream");process.env.READABLE_STREAM==="disable"&&ar?(lr.exports=ar.Readable,Object.assign(lr.exports,ar),lr.exports.Stream=ar):(ge=lr.exports=Cs(),ge.Stream=ar||ge,ge.Readable=ge,ge.Writable=ws(),ge.Duplex=ct(),ge.Transform=js(),ge.PassThrough=Tf(),ge.finished=_n(),ge.pipeline=kf())});var Ff=_((YE,If)=>{"use strict";var{Buffer:xe}=A("buffer"),Bf=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,Bf,{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||xe.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,u=s&&r||0,c=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:xe.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].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=xe.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-c;if(l>h)this._bufs[f].copy(e,u,c),u+=h;else{this._bufs[f].copy(e,u,c,c+l),u+=h;break}l-=h,c&&(c=0)}return e.length>u?e.slice(0,u):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(xe.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(xe.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=xe.from([t]):typeof t=="string"?t=xe.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=xe.from(t.buffer,t.byteOffset,t.byteLength):xe.isBuffer(t)||(t=xe.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[Bf]};If.exports=U});var $f=_((KE,wn)=>{"use strict";var Vs=Nf().Duplex,By=ut(),ur=Ff();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),Vs.call(this)}By(ie,Vs);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){Vs.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 co=_((Fw,vh)=>{var Ln=A("fs"),bh=A("path"),Vb=A("os");function lo(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function uo(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 lo(t,"RegExp")},string:function(t){return lo(t,"String")},func:function(t){return typeof t=="function"},number:function(t){return lo(t,"Number")},exists:function(t){return Ln.existsSync(t)},file:function(t){return uo(t,function(e){return Ln.statSync(e).isFile()})},samePath:function(t,e){return bh.resolve(t)===bh.resolve(e)},directory:function(t){return uo(t,function(e){return Ln.statSync(e).isDirectory()})},symbolicLink:function(t){return uo(t,function(e){return Ln.lstatSync(e).isSymbolicLink()})},windows:function(){return Vb.platform()==="win32"}};vh.exports=Wb});var Ah=_(($w,wh)=>{var _r=A("fs"),xh=A("os"),fo=A("path"),Mn=co(),gr,Gb=xh.tmpdir&&xh.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Sh(){this.stack=[]}Sh.prototype={create:function(t,e){var r=fo.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"&&Mn.file(n)?_r.unlinkSync(n):r==="dir"&&Mn.directory(n)&&_r.rmdirSync(n)}}finally{Mn.func(t)&&t()}}};var Eh=!1;wh.exports=function t(e){if(!Mn.func(e))return!1;if(gr!==void 0)return e(gr);if(!Eh)Eh=!0;else return setTimeout(function(){t(e)},300);var r=new Sh,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(u){if(u.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(gr=!1);throw u}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(gr=!1)})},200);a.on("change",function(u,c){fo.basename(s)===fo.basename(c)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(gr=!0)}))}),r.write(s)}});var Bh=_((Hw,_o)=>{var po=A("fs"),mr=A("path"),Ch=A("util"),Oh=A("events"),Th=Ah(),j=co(),Yb="update",Ph="remove",Rh=Symbol("skip");function Kb(t){return t.some(function(e,r,n){return n.indexOf(e)!==r})}function go(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]:[Ph,e]})}function zb(t){var e=go(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 Dh(){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 Lh(t,e,r=function(){}){j.directory(t)?po.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 Mh(t,e){return!j.func(e)||e(t,Rh)!==Rh}var kh=Ch.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(){Oh.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Ch.inherits(Ne,Oh.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]),Lh(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(Nh,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 ho(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function Nh(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&&Th(function(u){if(!u){var c=mr.resolve(l);if(!j.exists(l))r.close(c);else{var f=j.directory(l)&&!r.watchers[c]&&Mh(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",Ph,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=po.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&&kh(),this.on("change",r))};Ne.prototype.watchDirectory=function(t,e,r,n=rv){var i=this,s=n();Th(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=po.watch(t,a);i.add(l,{type:"dir",fpath:t,options:e}),j.func(r)&&(r.length===1&&kh(),i.on("change",r)),e.recursive&&!o&&Lh(t,function(u){Mh(u,e.filter)&&i.watchDirectory(u,e,null,n)},n()),s()})};function nv(t){var e=new Ne,r=Dh(),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||ho(e)})}),e.close=function(){t.forEach(function(i){i.close()}),process.nextTick(Nh,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=go(Jb(o));i(a)})}},e.expose()}function kn(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 kn(t[0],e,r);var i=Dh();return nv(go(t).map(function(o){var a=kn(o,e);return j.func(r)&&a.on("change",i(r)),a}))}if(j.file(t))n.watchFile(t,e,r),ho(n);else if(j.directory(t)){var s=tv(function(){ho(n)});n.watchDirectory(t,e,r,s)}return n.expose()}_o.exports=kn;_o.exports.default=kn});var yo=(t=0)=>e=>`\x1B[${e+t}m`,bo=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,vo=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function Qh(){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=yo(),e.color.ansi256=bo(),e.color.ansi16m=vo(),e.bgColor.ansi=yo(10),e.bgColor.ansi256=bo(10),e.bgColor.ansi16m=vo(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 Xh=Qh(),be=Xh;import Bn from"node:process";import Zh from"node:os";import xo from"node:tty";function fe(t,e=Bn.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}=Bn,Er;fe("no-color")||fe("no-colors")||fe("color=false")||fe("color=never")?Er=0:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(Er=1);function zh(){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 ep(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function tp(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=zh();n!==void 0&&(Er=n);let i=r?Er:n;if(i===0)return 0;if(r){if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(Bn.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 Eo(t,e={}){let r=tp(t,{streamIsTTY:t&&t.isTTY,...e});return ep(r)}var rp={stdout:Eo({isTTY:xo.isatty(1)}),stderr:Eo({isTTY:xo.isatty(2)})},So=rp;function wo(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 Ao(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
19
+ `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,s=i.code||"commander.error";this._exit(n,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in K.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()}`,K.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 i=o=>{let a=o.attributeName(),l=this.getOptionValue(a),u=this.options.find(f=>f.negate&&a===f.attributeName()),c=this.options.find(f=>!f.negate&&a===f.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:c||o},n=o=>{let a=i(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${n(e)} cannot be used with ${n(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);n=n.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=ga(e,n)}let i=`error: unknown option '${e}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,i=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(s=>{n.push(s.name()),s.alias()&&n.push(s.alias())}),r=ga(e,n)}let i=`error: unknown command '${e}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(e,r,i){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this.options.push(n),this.on("option:"+n.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(i=>yp(i));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=Me.basename(e,Me.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},i;return r.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),r.write=e.write||i,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let i=this._getHelpContext(e);Qr(this).reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(r&&(n=r(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this.emit(this._helpLongFlag),this.emit("afterHelp",i),Qr(this).forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let i=bp(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e);let r=K.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
+ Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
22
+ `)}),this}};function _a(t,e){t._hasHelpOption&&e.find(i=>i===t._helpLongFlag||i===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function ma(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",n="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])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],i=s[3],n=s[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:e})}function Qr(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}Ea.Command=Jt});var xa=g((Ce,va)=>{var{Argument:vp}=Rr(),{Command:Ca}=ya(),{CommanderError:xp,InvalidArgumentError:ba}=Kt(),{Help:Sp}=Ji(),{Option:wp}=Wi();Ce=va.exports=new Ca;Ce.program=Ce;Ce.Argument=vp;Ce.Command=Ca;Ce.CommanderError=xp;Ce.Help=Sp;Ce.InvalidArgumentError=ba;Ce.InvalidOptionArgumentError=ba;Ce.Option=wp});var Ba=g(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.splitWhen=Ct.flatten=void 0;function Bp(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ct.flatten=Bp;function Rp(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Ct.splitWhen=Rp});var Ra=g(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEnoentCodeError=void 0;function Qp(t){return t.code==="ENOENT"}Ir.isEnoentCodeError=Qp});var Qa=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var en=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 Ip(t,e){return new en(t,e)}Or.createDirentFromStats=Ip});var Ia=g(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.removeLeadingDotSegment=Re.escape=Re.makeAbsolute=Re.unixify=void 0;var Op=S("path"),Tp=2,Dp=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function kp(t){return t.replace(/\\/g,"/")}Re.unixify=kp;function Lp(t,e){return Op.resolve(t,e)}Re.makeAbsolute=Lp;function Pp(t){return t.replace(Dp,"\\$2")}Re.escape=Pp;function Np(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Tp)}return t}Re.removeLeadingDotSegment=Np});var Ta=g((Vy,Oa)=>{Oa.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 La=g((Yy,ka)=>{var Mp=Ta(),Da={"{":"}","(":")","[":"]"},Fp=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||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=Da[a];if(l){var u=t.indexOf(l,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},Hp=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 i=Da[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};ka.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Mp(e))return!0;var i=Fp;return r&&r.strict===!1&&(i=Hp),i(e)}});var Na=g((Wy,Pa)=>{"use strict";var qp=La(),$p=S("path").posix.dirname,jp=S("os").platform()==="win32",tn="/",Gp=/\\/g,Up=/[\{\[].*[\}\]]$/,Kp=/(^|[^\\])([\{\[]|\([^\)]+$)/,Jp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Pa.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&jp&&e.indexOf(tn)<0&&(e=e.replace(Gp,tn)),Up.test(e)&&(e+=tn),e+="a";do e=$p(e);while(qp(e)||Kp.test(e));return e.replace(Jp,"$1")}});var Tr=g(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,i)=>i===!1||!pe.isInteger(t)||!pe.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;pe.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];!i||(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.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=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var Dr=g((Zy,Fa)=>{"use strict";var Ma=Tr();Fa.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Ma.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Ma.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var qa=g((zy,Ha)=>{"use strict";Ha.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Wa=g((eC,Ya)=>{"use strict";var $a=qa(),it=(t,e,r)=>{if($a(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if($a(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(it.cache.hasOwnProperty(l))return it.cache[l].result;let u=Math.min(t,e),c=Math.max(t,e);if(Math.abs(u-c)===1){let m=t+"|"+e;return i.capture?`(${m})`:i.wrap===!1?m:`(?:${m})`}let f=Va(t)||Va(e),h={min:t,max:e,a:u,b:c},C=[],_=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),u<0){let m=c<0?Math.abs(c):1;_=ja(m,Math.abs(u),h,i),u=h.a=0}return c>=0&&(C=ja(u,c,h,i)),h.negatives=_,h.positives=C,h.result=Vp(_,C,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&C.length+_.length>1&&(h.result=`(?:${h.result})`),it.cache[l]=h,h.result};function Vp(t,e,r){let i=rn(t,e,"-",!1,r)||[],n=rn(e,t,"",!1,r)||[],s=rn(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function Yp(t,e){let r=1,i=1,n=Ua(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Ua(t,r);for(n=Ka(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Ka(e+1,i)-1;return s=[...s],s.sort(Zp),s}function Wp(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=Xp(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,u]=i[a];l===u?s+=l:l!=="0"||u!=="9"?s+=zp(l,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function ja(t,e,r,i){let n=Yp(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let u=n[l],c=Wp(String(o),String(u),i),f="";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+Ja(a.count),o=u+1;continue}r.isPadded&&(f=ed(u,r,i)),c.string=f+c.pattern+Ja(c.count),s.push(c),o=u+1,a=c}return s}function rn(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Ga(e,"string",a)&&s.push(r+a),i&&Ga(e,"string",a)&&s.push(r+a)}return s}function Xp(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function Zp(t,e){return t>e?1:e>t?-1:0}function Ga(t,e,r){return t.some(i=>i[e]===r)}function Ua(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Ka(t,e){return t-t%Math.pow(10,e)}function Ja(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 Va(t){return/^-?(0+)\d/.test(t)}function ed(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}it.cache={};it.clearCache=()=>it.cache={};Ya.exports=it});var on=g((tC,nl)=>{"use strict";var td=S("util"),za=Wa(),Xa=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),rd=t=>e=>t===!0?Number(e):String(e),nn=t=>typeof t=="number"||typeof t=="string"&&t!=="",Vt=t=>Number.isInteger(+t),sn=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},id=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,nd=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Za=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},sd=(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?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},el=(t,e,r,i)=>{if(r)return za(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},tl=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return za(t,e,r)},rl=(...t)=>new RangeError("Invalid range arguments: "+td.inspect(...t)),il=(t,e,r)=>{if(r.strictRanges===!0)throw rl([t,e]);return[]},od=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ad=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw rl([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),u=String(r);r=Math.max(Math.abs(r),1);let c=sn(a)||sn(l)||sn(u),f=c?Math.max(a.length,l.length,u.length):0,h=c===!1&&id(t,e,i)===!1,C=i.transform||rd(h);if(i.toRegex&&r===1)return el(Za(t,f),Za(e,f),!0,i);let _={negatives:[],positives:[]},m=D=>_[D<0?"negatives":"positives"].push(Math.abs(D)),v=[],b=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?m(n):v.push(nd(C(n,b),f,h)),n=o?n-r:n+r,b++;return i.toRegex===!0?r>1?sd(_,i):tl(v,null,{wrap:!1,...i}):v},ld=(t,e,r=1,i={})=>{if(!Vt(t)&&t.length>1||!Vt(e)&&e.length>1)return il(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),u=Math.max(s,o);if(i.toRegex&&r===1)return el(l,u,!1,i);let c=[],f=0;for(;a?s>=o:s<=o;)c.push(n(s,f)),s=a?s-r:s+r,f++;return i.toRegex===!0?tl(c,null,{wrap:!1,options:i}):c},kr=(t,e,r,i={})=>{if(e==null&&nn(t))return[t];if(!nn(t)||!nn(e))return il(t,e,i);if(typeof r=="function")return kr(t,e,1,{transform:r});if(Xa(r))return kr(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Vt(r)?Vt(t)&&Vt(e)?ad(t,e,r,n):ld(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Xa(r)?od(r,n):kr(t,e,1,r)};nl.exports=kr});var al=g((rC,ol)=>{"use strict";var ud=on(),sl=Tr(),cd=(t,e={})=>{let r=(i,n={})=>{let s=sl.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",u="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=sl.reduce(i.nodes),f=ud(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let c of i.nodes)u+=r(c,i);return u};return r(t)};ol.exports=cd});var cl=g((iC,ul)=>{"use strict";var fd=on(),ll=Dr(),bt=Tr(),nt=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?bt.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(nt(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?nt(n,s,r):n+s);return bt.flatten(i)},hd=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(nt(a.pop(),ll(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(nt(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=bt.reduce(n.nodes);if(bt.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=fd(...f,e);h.length===0&&(h=ll(n,e)),a.push(nt(a.pop(),h)),n.nodes=[];return}let l=bt.encloseBrace(n),u=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(nt(a.pop(),u,l));continue}if(h.value&&h.type!=="open"){u.push(nt(u.pop(),h.value));continue}h.nodes&&i(h,n)}return u};return bt.flatten(i(t))};ul.exports=hd});var hl=g((nC,fl)=>{"use strict";fl.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 _l=g((sC,gl)=>{"use strict";var pd=Dr(),{MAX_LENGTH:pl,CHAR_BACKSLASH:an,CHAR_BACKTICK:dd,CHAR_COMMA:Ad,CHAR_DOT:gd,CHAR_LEFT_PARENTHESES:_d,CHAR_RIGHT_PARENTHESES:md,CHAR_LEFT_CURLY_BRACE:Ed,CHAR_RIGHT_CURLY_BRACE:yd,CHAR_LEFT_SQUARE_BRACKET:dl,CHAR_RIGHT_SQUARE_BRACKET:Al,CHAR_DOUBLE_QUOTE:Cd,CHAR_SINGLE_QUOTE:bd,CHAR_NO_BREAK_SPACE:vd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xd}=hl(),Sd=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(pl,r.maxLength):pl;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,u=t.length,c=0,f=0,h,C={},_=()=>t[c++],m=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(m({type:"bos"});c<u;)if(o=s[s.length-1],h=_(),!(h===xd||h===vd)){if(h===an){m({type:"text",value:(e.keepEscaping?h:"")+_()});continue}if(h===Al){m({type:"text",value:"\\"+h});continue}if(h===dl){l++;let v=!0,b;for(;c<u&&(b=_());){if(h+=b,b===dl){l++;continue}if(b===an){h+=_();continue}if(b===Al&&(l--,l===0))break}m({type:"text",value:h});continue}if(h===_d){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===md){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===Cd||h===bd||h===dd){let v=h,b;for(e.keepQuotes!==!0&&(h="");c<u&&(b=_());){if(b===an){h+=b+_();continue}if(b===v){e.keepQuotes===!0&&(h+=b);break}h+=b}m({type:"text",value:h});continue}if(h===Ed){f++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=m({type:"brace",open:!0,close:!1,dollar:v,depth:f,commas:0,ranges:0,nodes:[]}),s.push(o),m({type:"open",value:h});continue}if(h===yd){if(o.type!=="brace"){m({type:"text",value:h});continue}let v="close";o=s.pop(),o.close=!0,m({type:v,value:h}),f--,o=s[s.length-1];continue}if(h===Ad&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:pd(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===gd&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){m({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"){v.pop();let b=v[v.length-1];b.value+=a.value+h,a=b,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let v=s[s.length-1],b=v.nodes.indexOf(o);v.nodes.splice(b,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};gl.exports=Sd});var yl=g((oC,El)=>{"use strict";var ml=Dr(),wd=al(),Bd=cl(),Rd=_l(),ce=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=ce.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ce.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ce.parse=(t,e={})=>Rd(t,e);ce.stringify=(t,e={})=>ml(typeof t=="string"?ce.parse(t,e):t,e);ce.compile=(t,e={})=>(typeof t=="string"&&(t=ce.parse(t,e)),wd(t,e));ce.expand=(t,e={})=>{typeof t=="string"&&(t=ce.parse(t,e));let r=Bd(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ce.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ce.compile(t,e):ce.expand(t,e);El.exports=ce});var Yt=g((aC,Sl)=>{"use strict";var Qd=S("path"),Qe="\\\\/",Cl=`[^${Qe}]`,Fe="\\.",Id="\\+",Od="\\?",Lr="\\/",Td="(?=.)",bl="[^/]",ln=`(?:${Lr}|$)`,vl=`(?:^|${Lr})`,un=`${Fe}{1,2}${ln}`,Dd=`(?!${Fe})`,kd=`(?!${vl}${un})`,Ld=`(?!${Fe}{0,1}${ln})`,Pd=`(?!${un})`,Nd=`[^.${Lr}]`,Md=`${bl}*?`,xl={DOT_LITERAL:Fe,PLUS_LITERAL:Id,QMARK_LITERAL:Od,SLASH_LITERAL:Lr,ONE_CHAR:Td,QMARK:bl,END_ANCHOR:ln,DOTS_SLASH:un,NO_DOT:Dd,NO_DOTS:kd,NO_DOT_SLASH:Ld,NO_DOTS_SLASH:Pd,QMARK_NO_DOT:Nd,STAR:Md,START_ANCHOR:vl},Fd={...xl,SLASH_LITERAL:`[${Qe}]`,QMARK:Cl,STAR:`${Cl}*?`,DOTS_SLASH:`${Fe}{1,2}(?:[${Qe}]|$)`,NO_DOT:`(?!${Fe})`,NO_DOTS:`(?!(?:^|[${Qe}])${Fe}{1,2}(?:[${Qe}]|$))`,NO_DOT_SLASH:`(?!${Fe}{0,1}(?:[${Qe}]|$))`,NO_DOTS_SLASH:`(?!${Fe}{1,2}(?:[${Qe}]|$))`,QMARK_NO_DOT:`[^.${Qe}]`,START_ANCHOR:`(?:^|[${Qe}])`,END_ANCHOR:`(?:[${Qe}]|$)`},Hd={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"};Sl.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Hd,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:Qd.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:xl}}});var Wt=g(le=>{"use strict";var qd=S("path"),$d=process.platform==="win32",{REGEX_BACKSLASH:jd,REGEX_REMOVE_BACKSLASH:Gd,REGEX_SPECIAL_CHARS:Ud,REGEX_SPECIAL_CHARS_GLOBAL:Kd}=Yt();le.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);le.hasRegexChars=t=>Ud.test(t);le.isRegexChar=t=>t.length===1&&le.hasRegexChars(t);le.escapeRegex=t=>t.replace(Kd,"\\$1");le.toPosixSlashes=t=>t.replace(jd,"/");le.removeBackslashes=t=>t.replace(Gd,e=>e==="\\"?"":e);le.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};le.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:$d===!0||qd.sep==="\\";le.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?le.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};le.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};le.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Dl=g((uC,Tl)=>{"use strict";var wl=Wt(),{CHAR_ASTERISK:cn,CHAR_AT:Jd,CHAR_BACKWARD_SLASH:Xt,CHAR_COMMA:Vd,CHAR_DOT:fn,CHAR_EXCLAMATION_MARK:hn,CHAR_FORWARD_SLASH:Ol,CHAR_LEFT_CURLY_BRACE:pn,CHAR_LEFT_PARENTHESES:dn,CHAR_LEFT_SQUARE_BRACKET:Yd,CHAR_PLUS:Wd,CHAR_QUESTION_MARK:Bl,CHAR_RIGHT_CURLY_BRACE:Xd,CHAR_RIGHT_PARENTHESES:Rl,CHAR_RIGHT_SQUARE_BRACKET:Zd}=Yt(),Ql=t=>t===Ol||t===Xt,Il=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},zd=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,u=-1,c=0,f=0,h=!1,C=!1,_=!1,m=!1,v=!1,b=!1,D=!1,L=!1,ee=!1,Q=!1,q=0,I,w,M={value:"",depth:0,isGlob:!1},x=()=>u>=i,p=()=>l.charCodeAt(u+1),H=()=>(I=w,l.charCodeAt(++u));for(;u<i;){w=H();let oe;if(w===Xt){D=M.backslashes=!0,w=H(),w===pn&&(b=!0);continue}if(b===!0||w===pn){for(q++;x()!==!0&&(w=H());){if(w===Xt){D=M.backslashes=!0,H();continue}if(w===pn){q++;continue}if(b!==!0&&w===fn&&(w=H())===fn){if(h=M.isBrace=!0,_=M.isGlob=!0,Q=!0,n===!0)continue;break}if(b!==!0&&w===Vd){if(h=M.isBrace=!0,_=M.isGlob=!0,Q=!0,n===!0)continue;break}if(w===Xd&&(q--,q===0)){b=!1,h=M.isBrace=!0,Q=!0;break}}if(n===!0)continue;break}if(w===Ol){if(s.push(u),o.push(M),M={value:"",depth:0,isGlob:!1},Q===!0)continue;if(I===fn&&u===c+1){c+=2;continue}f=u+1;continue}if(r.noext!==!0&&(w===Wd||w===Jd||w===cn||w===Bl||w===hn)===!0&&p()===dn){if(_=M.isGlob=!0,m=M.isExtglob=!0,Q=!0,w===hn&&u===c&&(ee=!0),n===!0){for(;x()!==!0&&(w=H());){if(w===Xt){D=M.backslashes=!0,w=H();continue}if(w===Rl){_=M.isGlob=!0,Q=!0;break}}continue}break}if(w===cn){if(I===cn&&(v=M.isGlobstar=!0),_=M.isGlob=!0,Q=!0,n===!0)continue;break}if(w===Bl){if(_=M.isGlob=!0,Q=!0,n===!0)continue;break}if(w===Yd){for(;x()!==!0&&(oe=H());){if(oe===Xt){D=M.backslashes=!0,H();continue}if(oe===Zd){C=M.isBracket=!0,_=M.isGlob=!0,Q=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&w===hn&&u===c){L=M.negated=!0,c++;continue}if(r.noparen!==!0&&w===dn){if(_=M.isGlob=!0,n===!0){for(;x()!==!0&&(w=H());){if(w===dn){D=M.backslashes=!0,w=H();continue}if(w===Rl){Q=!0;break}}continue}break}if(_===!0){if(Q=!0,n===!0)continue;break}}r.noext===!0&&(m=!1,_=!1);let F=l,Ge="",d="";c>0&&(Ge=l.slice(0,c),l=l.slice(c),f-=c),F&&_===!0&&f>0?(F=l.slice(0,f),d=l.slice(f)):_===!0?(F="",d=l):F=l,F&&F!==""&&F!=="/"&&F!==l&&Ql(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(d&&(d=wl.removeBackslashes(d)),F&&D===!0&&(F=wl.removeBackslashes(F)));let A={prefix:Ge,input:t,start:c,base:F,glob:d,isBrace:h,isBracket:C,isGlob:_,isExtglob:m,isGlobstar:v,negated:L,negatedExtglob:ee};if(r.tokens===!0&&(A.maxDepth=0,Ql(w)||o.push(M),A.tokens=o),r.parts===!0||r.tokens===!0){let oe;for(let N=0;N<s.length;N++){let we=oe?oe+1:c,Be=s[N],ue=t.slice(we,Be);r.tokens&&(N===0&&c!==0?(o[N].isPrefix=!0,o[N].value=Ge):o[N].value=ue,Il(o[N]),A.maxDepth+=o[N].depth),(N!==0||ue!=="")&&a.push(ue),oe=Be}if(oe&&oe+1<t.length){let N=t.slice(oe+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Il(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Tl.exports=zd});var Pl=g((cC,Ll)=>{"use strict";var Pr=Yt(),fe=Wt(),{MAX_LENGTH:Nr,POSIX_REGEX_SOURCE:eA,REGEX_NON_SPECIAL_CHARS:tA,REGEX_SPECIAL_CHARS_BACKREF:rA,REPLACEMENTS:kl}=Pr,iA=(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(n=>fe.escapeRegex(n)).join("..")}return r},vt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,An=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=kl[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Nr,r.maxLength):Nr,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=fe.isWindows(e),u=Pr.globChars(l),c=Pr.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:C,ONE_CHAR:_,DOTS_SLASH:m,NO_DOT:v,NO_DOT_SLASH:b,NO_DOTS_SLASH:D,QMARK:L,QMARK_NO_DOT:ee,STAR:Q,START_ANCHOR:q}=u,I=y=>`(${a}(?:(?!${q}${y.dot?m:f}).)*?)`,w=r.dot?"":v,M=r.dot?L:ee,x=r.bash===!0?I(r):Q;r.capture&&(x=`(${x})`),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=fe.removePrefix(t,p),n=t.length;let H=[],F=[],Ge=[],d=s,A,oe=()=>p.index===n-1,N=p.peek=(y=1)=>t[p.index+y],we=p.advance=()=>t[++p.index]||"",Be=()=>t.slice(p.index+1),ue=(y="",G=0)=>{p.consumed+=y,p.index+=G},Cr=y=>{p.output+=y.output!=null?y.output:y.value,ue(y.value)},Gh=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)we(),p.start++,y++;return y%2===0?!1:(p.negated=!0,p.start++,!0)},br=y=>{p[y]++,Ge.push(y)},rt=y=>{p[y]--,Ge.pop()},k=y=>{if(d.type==="globstar"){let G=p.braces>0&&(y.type==="comma"||y.type==="brace"),E=y.extglob===!0||H.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!G&&!E&&(p.output=p.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=x,p.output+=d.output)}if(H.length&&y.type!=="paren"&&(H[H.length-1].inner+=y.value),(y.value||y.output)&&Cr(y),d&&d.type==="text"&&y.type==="text"){d.value+=y.value,d.output=(d.output||"")+y.value;return}y.prev=d,o.push(y),d=y},vr=(y,G)=>{let E={...c[G],conditions:1,inner:""};E.prev=d,E.parens=p.parens,E.output=p.output;let O=(r.capture?"(":"")+E.open;br("parens"),k({type:y,value:G,output:p.output?"":_}),k({type:"paren",extglob:!0,value:we(),output:O}),H.push(E)},Uh=y=>{let G=y.close+(r.capture?")":""),E;if(y.type==="negate"){let O=x;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(O=I(r)),(O!==x||oe()||/^\)+$/.test(Be()))&&(G=y.close=`)$))${O}`),y.inner.includes("*")&&(E=Be())&&/^\.[^\\/.]+$/.test(E)){let Y=An(E,{...e,fastpaths:!1}).output;G=y.close=`)${Y})${O})`}y.prev.type==="bos"&&(p.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:A,output:G}),rt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let y=!1,G=t.replace(rA,(E,O,Y,ae,te,Ni)=>ae==="\\"?(y=!0,E):ae==="?"?O?O+ae+(te?L.repeat(te.length):""):Ni===0?M+(te?L.repeat(te.length):""):L.repeat(Y.length):ae==="."?f.repeat(Y.length):ae==="*"?O?O+ae+(te?x:""):x:O?E:`\\${E}`);return y===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),G===t&&r.contains===!0?(p.output=t,p):(p.output=fe.wrapOutput(G,p,e),p)}for(;!oe();){if(A=we(),A==="\0")continue;if(A==="\\"){let E=N();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){A+="\\",k({type:"text",value:A});continue}let O=/^\\+/.exec(Be()),Y=0;if(O&&O[0].length>2&&(Y=O[0].length,p.index+=Y,Y%2!==0&&(A+="\\")),r.unescape===!0?A=we():A+=we(),p.brackets===0){k({type:"text",value:A});continue}}if(p.brackets>0&&(A!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&A===":"){let E=d.value.slice(1);if(E.includes("[")&&(d.posix=!0,E.includes(":"))){let O=d.value.lastIndexOf("["),Y=d.value.slice(0,O),ae=d.value.slice(O+2),te=eA[ae];if(te){d.value=Y+te,p.backtrack=!0,we(),!s.output&&o.indexOf(d)===1&&(s.output=_);continue}}}(A==="["&&N()!==":"||A==="-"&&N()==="]")&&(A=`\\${A}`),A==="]"&&(d.value==="["||d.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&d.value==="["&&(A="^"),d.value+=A,Cr({value:A});continue}if(p.quotes===1&&A!=='"'){A=fe.escapeRegex(A),d.value+=A,Cr({value:A});continue}if(A==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:A});continue}if(A==="("){br("parens"),k({type:"paren",value:A});continue}if(A===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vt("opening","("));let E=H[H.length-1];if(E&&p.parens===E.parens+1){Uh(H.pop());continue}k({type:"paren",value:A,output:p.parens?")":"\\)"}),rt("parens");continue}if(A==="["){if(r.nobracket===!0||!Be().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));A=`\\${A}`}else br("brackets");k({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){k({type:"text",value:A,output:`\\${A}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vt("opening","["));k({type:"text",value:A,output:`\\${A}`});continue}rt("brackets");let E=d.value.slice(1);if(d.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(A=`/${A}`),d.value+=A,Cr({value:A}),r.literalBrackets===!1||fe.hasRegexChars(E))continue;let O=fe.escapeRegex(d.value);if(p.output=p.output.slice(0,-d.value.length),r.literalBrackets===!0){p.output+=O,d.value=O;continue}d.value=`(${a}${O}|${d.value})`,p.output+=d.value;continue}if(A==="{"&&r.nobrace!==!0){br("braces");let E={type:"brace",value:A,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};F.push(E),k(E);continue}if(A==="}"){let E=F[F.length-1];if(r.nobrace===!0||!E){k({type:"text",value:A,output:A});continue}let O=")";if(E.dots===!0){let Y=o.slice(),ae=[];for(let te=Y.length-1;te>=0&&(o.pop(),Y[te].type!=="brace");te--)Y[te].type!=="dots"&&ae.unshift(Y[te].value);O=iA(ae,r),p.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let Y=p.output.slice(0,E.outputIndex),ae=p.tokens.slice(E.tokensIndex);E.value=E.output="\\{",A=O="\\}",p.output=Y;for(let te of ae)p.output+=te.output||te.value}k({type:"brace",value:A,output:O}),rt("braces"),F.pop();continue}if(A==="|"){H.length>0&&H[H.length-1].conditions++,k({type:"text",value:A});continue}if(A===","){let E=A,O=F[F.length-1];O&&Ge[Ge.length-1]==="braces"&&(O.comma=!0,E="|"),k({type:"comma",value:A,output:E});continue}if(A==="/"){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:A,output:C});continue}if(A==="."){if(p.braces>0&&d.type==="dot"){d.value==="."&&(d.output=f);let E=F[F.length-1];d.type="dots",d.output+=A,d.value+=A,E.dots=!0;continue}if(p.braces+p.parens===0&&d.type!=="bos"&&d.type!=="slash"){k({type:"text",value:A,output:f});continue}k({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){vr("qmark",A);continue}if(d&&d.type==="paren"){let O=N(),Y=A;if(O==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(O)||O==="<"&&!/<([!=]|\w+>)/.test(Be()))&&(Y=`\\${A}`),k({type:"text",value:A,output:Y});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){k({type:"qmark",value:A,output:ee});continue}k({type:"qmark",value:A,output:L});continue}if(A==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){vr("negate",A);continue}if(r.nonegate!==!0&&p.index===0){Gh();continue}}if(A==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){vr("plus",A);continue}if(d&&d.value==="("||r.regex===!1){k({type:"plus",value:A,output:h});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||p.parens>0){k({type:"plus",value:A});continue}k({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){k({type:"at",extglob:!0,value:A,output:""});continue}k({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let E=tA.exec(Be());E&&(A+=E[0],p.index+=E[0].length),k({type:"text",value:A});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=A,d.output=x,p.backtrack=!0,p.globstar=!0,ue(A);continue}let y=Be();if(r.noextglob!==!0&&/^\([^?]/.test(y)){vr("star",A);continue}if(d.type==="star"){if(r.noglobstar===!0){ue(A);continue}let E=d.prev,O=E.prev,Y=E.type==="slash"||E.type==="bos",ae=O&&(O.type==="star"||O.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){k({type:"star",value:A,output:""});continue}let te=p.braces>0&&(E.type==="comma"||E.type==="brace"),Ni=H.length&&(E.type==="pipe"||E.type==="paren");if(!Y&&E.type!=="paren"&&!te&&!Ni){k({type:"star",value:A,output:""});continue}for(;y.slice(0,3)==="/**";){let xr=t[p.index+4];if(xr&&xr!=="/")break;y=y.slice(3),ue("/**",3)}if(E.type==="bos"&&oe()){d.type="globstar",d.value+=A,d.output=I(r),p.output=d.output,p.globstar=!0,ue(A);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!ae&&oe()){p.output=p.output.slice(0,-(E.output+d.output).length),E.output=`(?:${E.output}`,d.type="globstar",d.output=I(r)+(r.strictSlashes?")":"|$)"),d.value+=A,p.globstar=!0,p.output+=E.output+d.output,ue(A);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&y[0]==="/"){let xr=y[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(E.output+d.output).length),E.output=`(?:${E.output}`,d.type="globstar",d.output=`${I(r)}${C}|${C}${xr})`,d.value+=A,p.output+=E.output+d.output,p.globstar=!0,ue(A+we()),k({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&y[0]==="/"){d.type="globstar",d.value+=A,d.output=`(?:^|${C}|${I(r)}${C})`,p.output=d.output,p.globstar=!0,ue(A+we()),k({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-d.output.length),d.type="globstar",d.output=I(r),d.value+=A,p.output+=d.output,p.globstar=!0,ue(A);continue}let G={type:"star",value:A,output:x};if(r.bash===!0){G.output=".*?",(d.type==="bos"||d.type==="slash")&&(G.output=w+G.output),k(G);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){G.output=A,k(G);continue}(p.index===p.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(p.output+=b,d.output+=b):r.dot===!0?(p.output+=D,d.output+=D):(p.output+=w,d.output+=w),N()!=="*"&&(p.output+=_,d.output+=_)),k(G)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));p.output=fe.escapeLast(p.output,"["),rt("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing",")"));p.output=fe.escapeLast(p.output,"("),rt("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","}"));p.output=fe.escapeLast(p.output,"{"),rt("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${C}?`}),p.backtrack===!0){p.output="";for(let y of p.tokens)p.output+=y.output!=null?y.output:y.value,y.suffix&&(p.output+=y.suffix)}return p};An.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Nr,r.maxLength):Nr,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=kl[t]||t;let s=fe.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:u,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:C,START_ANCHOR:_}=Pr.globChars(s),m=r.dot?f:c,v=r.dot?h:c,b=r.capture?"":"?:",D={negated:!1,prefix:""},L=r.bash===!0?".*?":C;r.capture&&(L=`(${L})`);let ee=w=>w.noglobstar===!0?L:`(${b}(?:(?!${_}${w.dot?u:o}).)*?)`,Q=w=>{switch(w){case"*":return`${m}${l}${L}`;case".*":return`${o}${l}${L}`;case"*.*":return`${m}${L}${o}${l}${L}`;case"*/*":return`${m}${L}${a}${l}${v}${L}`;case"**":return m+ee(r);case"**/*":return`(?:${m}${ee(r)}${a})?${v}${l}${L}`;case"**/*.*":return`(?:${m}${ee(r)}${a})?${v}${L}${o}${l}${L}`;case"**/.*":return`(?:${m}${ee(r)}${a})?${o}${l}${L}`;default:{let M=/^(.*?)\.(\w+)$/.exec(w);if(!M)return;let x=Q(M[1]);return x?x+o+M[2]:void 0}}},q=fe.removePrefix(t,D),I=Q(q);return I&&r.strictSlashes!==!0&&(I+=`${a}?`),I};Ll.exports=An});var Ml=g((fC,Nl)=>{"use strict";var nA=S("path"),sA=Dl(),gn=Pl(),_n=Wt(),oA=Yt(),aA=t=>t&&typeof t=="object"&&!Array.isArray(t),X=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(h=>X(h,e,r));return h=>{for(let C of c){let _=C(h);if(_)return _}return!1}}let i=aA(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=_n.isWindows(e),o=i?X.compileRe(t,e):X.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};l=X(n.ignore,c,r)}let u=(c,f=!1)=>{let{isMatch:h,match:C,output:_}=X.test(c,o,e,{glob:t,posix:s}),m={glob:t,state:a,regex:o,posix:s,input:c,output:_,match:C,isMatch:h};return typeof n.onResult=="function"&&n.onResult(m),h===!1?(m.isMatch=!1,f?m:!1):l(c)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),f?m:!0)};return r&&(u.state=a),u};X.test=(t,e,r,{glob:i,posix:n}={})=>{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||(n?_n.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=X.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:Boolean(a),match:a,output:l}};X.matchBase=(t,e,r,i=_n.isWindows(r))=>(e instanceof RegExp?e:X.makeRe(e,r)).test(nA.basename(t));X.isMatch=(t,e,r)=>X(e,r)(t);X.parse=(t,e)=>Array.isArray(t)?t.map(r=>X.parse(r,e)):gn(t,{...e,fastpaths:!1});X.scan=(t,e)=>sA(t,e);X.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=X.toRegex(a,e);return i===!0&&(l.state=t),l};X.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=gn.fastpaths(t,e)),n.output||(n=gn(t,e)),X.compileRe(n,e,r,i)};X.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/$^/}};X.constants=oA;Nl.exports=X});var Hl=g((hC,Fl)=>{"use strict";Fl.exports=Ml()});var Ul=g((pC,Gl)=>{"use strict";var $l=S("util"),jl=yl(),Ie=Hl(),mn=Wt(),ql=t=>t===""||t==="./",J=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=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 f=Ie(String(e[c]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let C of t){let _=f(C,!0);!(h?!_.isMatch:_.isMatch)||(h?i.add(_.output):(i.delete(_.output),n.add(_.output)))}}let u=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&u.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 u};J.match=J;J.matcher=(t,e)=>Ie(t,e);J.isMatch=(t,e,r)=>Ie(e,r)(t);J.any=J.isMatch;J.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(J(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};J.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$l.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>J.contains(t,i,r));if(typeof e=="string"){if(ql(t)||ql(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return J.isMatch(t,e,{...r,contains:!0})};J.matchKeys=(t,e,r)=>{if(!mn.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=J(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};J.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ie(String(n),r);if(i.some(o=>s(o)))return!0}return!1};J.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ie(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};J.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$l.inspect(t)}"`);return[].concat(e).every(i=>Ie(i,r)(t))};J.capture=(t,e,r)=>{let i=mn.isWindows(r),s=Ie.makeRe(String(t),{...r,capture:!0}).exec(i?mn.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};J.makeRe=(...t)=>Ie.makeRe(...t);J.scan=(...t)=>Ie.scan(...t);J.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of jl(String(i),e))r.push(Ie.parse(n,e));return r};J.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:jl(t,e)};J.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return J.braces(t,{...e,expand:!0})};Gl.exports=J});var zl=g(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.matchAny=R.convertPatternsToRe=R.makeRe=R.getPatternParts=R.expandBraceExpansion=R.expandPatternsWithBraceExpansion=R.isAffectDepthOfReadingPattern=R.endsWithSlashGlobStar=R.hasGlobStar=R.getBaseDirectory=R.isPatternRelatedToParentDirectory=R.getPatternsOutsideCurrentDirectory=R.getPatternsInsideCurrentDirectory=R.getPositivePatterns=R.getNegativePatterns=R.isPositivePattern=R.isNegativePattern=R.convertToNegativePattern=R.convertToPositivePattern=R.isDynamicPattern=R.isStaticPattern=void 0;var lA=S("path"),uA=Na(),En=Ul(),Kl="**",cA="\\",fA=/[*?]|^!/,hA=/\[[^[]*]/,pA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,dA=/[!*+?@]\([^(]*\)/,AA=/,|\.\./;function Jl(t,e={}){return!Vl(t,e)}R.isStaticPattern=Jl;function Vl(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(cA)||fA.test(t)||hA.test(t)||pA.test(t)||e.extglob!==!1&&dA.test(t)||e.braceExpansion!==!1&&gA(t))}R.isDynamicPattern=Vl;function gA(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return AA.test(i)}function _A(t){return Mr(t)?t.slice(1):t}R.convertToPositivePattern=_A;function mA(t){return"!"+t}R.convertToNegativePattern=mA;function Mr(t){return t.startsWith("!")&&t[1]!=="("}R.isNegativePattern=Mr;function Yl(t){return!Mr(t)}R.isPositivePattern=Yl;function EA(t){return t.filter(Mr)}R.getNegativePatterns=EA;function yA(t){return t.filter(Yl)}R.getPositivePatterns=yA;function CA(t){return t.filter(e=>!yn(e))}R.getPatternsInsideCurrentDirectory=CA;function bA(t){return t.filter(yn)}R.getPatternsOutsideCurrentDirectory=bA;function yn(t){return t.startsWith("..")||t.startsWith("./..")}R.isPatternRelatedToParentDirectory=yn;function vA(t){return uA(t,{flipBackslashes:!1})}R.getBaseDirectory=vA;function xA(t){return t.includes(Kl)}R.hasGlobStar=xA;function Wl(t){return t.endsWith("/"+Kl)}R.endsWithSlashGlobStar=Wl;function SA(t){let e=lA.basename(t);return Wl(t)||Jl(e)}R.isAffectDepthOfReadingPattern=SA;function wA(t){return t.reduce((e,r)=>e.concat(Xl(r)),[])}R.expandPatternsWithBraceExpansion=wA;function Xl(t){return En.braces(t,{expand:!0,nodupes:!0})}R.expandBraceExpansion=Xl;function BA(t,e){let{parts:r}=En.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}R.getPatternParts=BA;function Zl(t,e){return En.makeRe(t,e)}R.makeRe=Zl;function RA(t,e){return t.map(r=>Zl(r,e))}R.convertPatternsToRe=RA;function QA(t,e){return e.some(r=>r.test(t))}R.matchAny=QA});var iu=g((AC,ru)=>{"use strict";var IA=S("stream"),eu=IA.PassThrough,OA=Array.prototype.slice;ru.exports=TA;function TA(){let t=[],e=OA.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=eu(i);function a(){for(let c=0,f=arguments.length;c<f;c++)t.push(tu(arguments[c],i));return l(),this}function l(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(u);return}Array.isArray(c)||(c=[c]);let f=c.length+1;function h(){--f>0||(r=!1,l())}function C(_){function m(){_.removeListener("merge2UnpipeEnd",m),_.removeListener("end",m),s&&_.removeListener("error",v),h()}function v(b){o.emit("error",b)}if(_._readableState.endEmitted)return h();_.on("merge2UnpipeEnd",m),_.on("end",m),s&&_.on("error",v),_.pipe(o,{end:!1}),_.resume()}for(let _=0;_<c.length;_++)C(c[_]);h()}function u(){r=!1,o.emit("queueDrain"),n&&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 tu(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=tu(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(eu(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var su=g(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.merge=void 0;var DA=iu();function kA(t){let e=DA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>nu(t)),e.once("end",()=>nu(t)),e}Fr.merge=kA;function nu(t){t.forEach(e=>e.emit("close"))}});var ou=g(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.isEmpty=xt.isString=void 0;function LA(t){return typeof t=="string"}xt.isString=LA;function PA(t){return t===""}xt.isEmpty=PA});var He=g(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.string=ie.stream=ie.pattern=ie.path=ie.fs=ie.errno=ie.array=void 0;var NA=Ba();ie.array=NA;var MA=Ra();ie.errno=MA;var FA=Qa();ie.fs=FA;var HA=Ia();ie.path=HA;var qA=zl();ie.pattern=qA;var $A=su();ie.stream=$A;var jA=ou();ie.string=jA});var uu=g(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 qe=He();function GA(t,e){let r=au(t),i=lu(t,e.ignore),n=r.filter(l=>qe.pattern.isStaticPattern(l,e)),s=r.filter(l=>qe.pattern.isDynamicPattern(l,e)),o=Cn(n,i,!1),a=Cn(s,i,!0);return o.concat(a)}ne.generate=GA;function Cn(t,e,r){let i=[],n=qe.pattern.getPatternsOutsideCurrentDirectory(t),s=qe.pattern.getPatternsInsideCurrentDirectory(t),o=bn(n),a=bn(s);return i.push(...vn(o,e,r)),"."in a?i.push(xn(".",s,e,r)):i.push(...vn(a,e,r)),i}ne.convertPatternsToTasks=Cn;function au(t){return qe.pattern.getPositivePatterns(t)}ne.getPositivePatterns=au;function lu(t,e){return qe.pattern.getNegativePatterns(t).concat(e).map(qe.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=lu;function bn(t){let e={};return t.reduce((r,i)=>{let n=qe.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ne.groupPatternsByBaseDirectory=bn;function vn(t,e,r){return Object.keys(t).map(i=>xn(i,t[i],e,r))}ne.convertPatternGroupsToTasks=vn;function xn(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(qe.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=xn});var fu=g(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.removeDuplicateSlashes=St.transform=void 0;var UA=/(?!^)\/{2,}/g;function KA(t){return t.map(e=>cu(e))}St.transform=KA;function cu(t){return t.replace(UA,"/")}St.removeDuplicateSlashes=cu});var pu=g(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.read=void 0;function JA(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){hu(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Sn(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){hu(r,s);return}Sn(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Sn(r,o)})})}Hr.read=JA;function hu(t,e){t(e)}function Sn(t,e){t(null,e)}});var du=g(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.read=void 0;function VA(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}qr.read=VA});var Au=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var $r=S("fs");Ue.FILE_SYSTEM_ADAPTER={lstat:$r.lstat,stat:$r.stat,lstatSync:$r.lstatSync,statSync:$r.statSync};function YA(t){return t===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),t)}Ue.createFileSystemAdapter=YA});var gu=g(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var WA=Au(),wn=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=WA.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}};Bn.default=wn});var st=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.statSync=Ke.stat=Ke.Settings=void 0;var _u=pu(),XA=du(),Rn=gu();Ke.Settings=Rn.default;function ZA(t,e,r){if(typeof e=="function"){_u.read(t,Qn(),e);return}_u.read(t,Qn(e),r)}Ke.stat=ZA;function zA(t,e){let r=Qn(e);return XA.read(t,r)}Ke.statSync=zA;function Qn(t={}){return t instanceof Rn.default?t:new Rn.default(t)}});var yu=g((wC,Eu)=>{var mu;Eu.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(mu||(mu=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var bu=g((BC,Cu)=>{Cu.exports=tg;var eg=yu();function tg(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function u(){e&&e(l,r),e=null}s?eg(u):u()}function a(l,u,c){r[l]=c,(--i===0||u)&&o(u)}i?n?n.forEach(function(l){t[l](function(u,c){a(l,u,c)})}):t.forEach(function(l,u){l(function(c,f){a(u,c,f)})}):o(null),s=!1}});var In=g(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var jr=process.versions.node.split(".");if(jr[0]===void 0||jr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var vu=Number.parseInt(jr[0],10),rg=Number.parseInt(jr[1],10),xu=10,ig=10,ng=vu>xu,sg=vu===xu&&rg>=ig;Gr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ng||sg});var Su=g(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.createDirentFromStats=void 0;var On=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 og(t,e){return new On(t,e)}Ur.createDirentFromStats=og});var Tn=g(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.fs=void 0;var ag=Su();Kr.fs=ag});var Dn=g(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.joinPathSegments=void 0;function lg(t,e,r){return t.endsWith(r)?t+e:t+r+e}Jr.joinPathSegments=lg});var Ou=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.readdir=Je.readdirWithFileTypes=Je.read=void 0;var ug=st(),wu=bu(),cg=In(),Bu=Tn(),Ru=Dn();function fg(t,e,r){if(!e.stats&&cg.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Qu(t,e,r);return}Iu(t,e,r)}Je.read=fg;function Qu(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Vr(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Ru.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){kn(r,s);return}let o=s.map(a=>hg(a,e));wu(o,(a,l)=>{if(a!==null){Vr(r,a);return}kn(r,l)})})}Je.readdirWithFileTypes=Qu;function hg(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=Bu.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Iu(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Vr(r,i);return}let s=n.map(o=>{let a=Ru.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{ug.stat(a,e.fsStatSettings,(u,c)=>{if(u!==null){l(u);return}let f={name:o,path:a,dirent:Bu.fs.createDirentFromStats(o,c)};e.stats&&(f.stats=c),l(null,f)})}});wu(s,(o,a)=>{if(o!==null){Vr(r,o);return}kn(r,a)})})}Je.readdir=Iu;function Vr(t,e){t(e)}function kn(t,e){t(null,e)}});var Pu=g(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.readdir=Ve.readdirWithFileTypes=Ve.read=void 0;var pg=st(),dg=In(),Tu=Tn(),Du=Dn();function Ag(t,e){return!e.stats&&dg.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ku(t,e):Lu(t,e)}Ve.read=Ag;function ku(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Du.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Tu.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Ve.readdirWithFileTypes=ku;function Lu(t,e){return e.fs.readdirSync(t).map(i=>{let n=Du.joinPathSegments(t,i,e.pathSegmentSeparator),s=pg.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Tu.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Ve.readdir=Lu});var Nu=g(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.createFileSystemAdapter=Ye.FILE_SYSTEM_ADAPTER=void 0;var wt=S("fs");Ye.FILE_SYSTEM_ADAPTER={lstat:wt.lstat,stat:wt.stat,lstatSync:wt.lstatSync,statSync:wt.statSync,readdir:wt.readdir,readdirSync:wt.readdirSync};function gg(t){return t===void 0?Ye.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ye.FILE_SYSTEM_ADAPTER),t)}Ye.createFileSystemAdapter=gg});var Mu=g(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var _g=S("path"),mg=st(),Eg=Nu(),Ln=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Eg.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_g.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new mg.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Pn.default=Ln});var Yr=g(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.Settings=We.scandirSync=We.scandir=void 0;var Fu=Ou(),yg=Pu(),Nn=Mu();We.Settings=Nn.default;function Cg(t,e,r){if(typeof e=="function"){Fu.read(t,Mn(),e);return}Fu.read(t,Mn(e),r)}We.scandir=Cg;function bg(t,e){let r=Mn(e);return yg.read(t,r)}We.scandirSync=bg;function Mn(t={}){return t instanceof Nn.default?t:new Nn.default(t)}});var qu=g((NC,Hu)=>{"use strict";function vg(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}Hu.exports=vg});var ju=g((MC,Fn)=>{"use strict";var xg=qu();function $u(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 i=xg(Sg),n=null,s=null,o=0,a=null,l={push:m,drain:de,saturated:de,pause:c,paused:!1,concurrency:r,running:u,resume:C,idle:_,length:f,getQueue:h,unshift:v,empty:de,kill:D,killAndDrain:L,error:ee};return l;function u(){return o}function c(){l.paused=!0}function f(){for(var Q=n,q=0;Q;)Q=Q.next,q++;return q}function h(){for(var Q=n,q=[];Q;)q.push(Q.value),Q=Q.next;return q}function C(){if(!!l.paused){l.paused=!1;for(var Q=0;Q<l.concurrency;Q++)o++,b()}}function _(){return o===0&&l.length()===0}function m(Q,q){var I=i.get();I.context=t,I.release=b,I.value=Q,I.callback=q||de,I.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=I,s=I):(n=I,s=I,l.saturated()):(o++,e.call(t,I.value,I.worked))}function v(Q,q){var I=i.get();I.context=t,I.release=b,I.value=Q,I.callback=q||de,o===l.concurrency||l.paused?n?(I.next=n,n=I):(n=I,s=I,l.saturated()):(o++,e.call(t,I.value,I.worked))}function b(Q){Q&&i.release(Q);var q=n;q?l.paused?o--:(s===n&&(s=null),n=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&l.empty()):--o===0&&l.drain()}function D(){n=null,s=null,l.drain=de}function L(){n=null,s=null,l.drain(),l.drain=de}function ee(Q){a=Q}}function de(){}function Sg(){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,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=de,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function wg(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,f){e.call(this,c).then(function(h){f(null,h)},f)}var n=$u(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=u,n;function a(c){var f=new Promise(function(h,C){s(c,function(_,m){if(_){C(_);return}h(m)})});return f.catch(de),f}function l(c){var f=new Promise(function(h,C){o(c,function(_,m){if(_){C(_);return}h(m)})});return f.catch(de),f}function u(){var c=n.drain,f=new Promise(function(h){n.drain=function(){c(),h()}});return f}}Fn.exports=$u;Fn.exports.promise=wg});var Wr=g(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.joinPathSegments=Oe.replacePathSegmentSeparator=Oe.isAppliedFilter=Oe.isFatalError=void 0;function Bg(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Oe.isFatalError=Bg;function Rg(t,e){return t===null||t(e)}Oe.isAppliedFilter=Rg;function Qg(t,e){return t.split(/[/\\]/).join(e)}Oe.replacePathSegmentSeparator=Qg;function Ig(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Oe.joinPathSegments=Ig});var $n=g(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var Og=Wr(),Hn=class{constructor(e,r){this._root=e,this._settings=r,this._root=Og.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};qn.default=Hn});var Un=g(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var Tg=S("events"),Dg=Yr(),kg=ju(),Xr=Wr(),Lg=$n(),jn=class extends Lg.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Dg.scandir,this._emitter=new Tg.EventEmitter,this._queue=kg(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 i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Xr.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 i=e.path;r!==void 0&&(e.path=Xr.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Xr.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Xr.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Gn.default=jn});var Gu=g(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});var Pg=Un(),Kn=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pg.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Ng(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Mg(e,this._storage)}),this._reader.read()}};Jn.default=Kn;function Ng(t,e){t(e)}function Mg(t,e){t(null,e)}});var Uu=g(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});var Fg=S("stream"),Hg=Un(),Vn=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Hg.default(this._root,this._settings),this._stream=new Fg.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}};Yn.default=Vn});var Ku=g(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var qg=Yr(),Zr=Wr(),$g=$n(),Wn=class extends $g.default{constructor(){super(...arguments),this._scandir=qg.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 i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(!!Zr.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Zr.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Zr.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Zr.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Xn.default=Wn});var Ju=g(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var jg=Ku(),Zn=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new jg.default(this._root,this._settings)}read(){return this._reader.read()}};zn.default=Zn});var Vu=g(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var Gg=S("path"),Ug=Yr(),es=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,Gg.sep),this.fsScandirSettings=new Ug.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}};ts.default=es});var is=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var Yu=Gu(),Kg=Uu(),Jg=Ju(),rs=Vu();Te.Settings=rs.default;function Vg(t,e,r){if(typeof e=="function"){new Yu.default(t,zr()).read(e);return}new Yu.default(t,zr(e)).read(r)}Te.walk=Vg;function Yg(t,e){let r=zr(e);return new Jg.default(t,r).read()}Te.walkSync=Yg;function Wg(t,e){let r=zr(e);return new Kg.default(t,r).read()}Te.walkStream=Wg;function zr(t={}){return t instanceof rs.default?t:new rs.default(t)}});var os=g(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var Xg=S("path"),Zg=st(),Wu=He(),ns=class{constructor(e){this._settings=e,this._fsStatSettings=new Zg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Xg.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Wu.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Wu.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ss.default=ns});var us=g(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var zg=S("stream"),e_=st(),t_=is(),r_=os(),as=class extends r_.default{constructor(){super(...arguments),this._walkStream=t_.walkStream,this._stat=e_.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new zg.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};ls.default=as});var Xu=g(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Bt=He(),cs=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Bt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Bt.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Bt.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Bt.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Bt.array.splitWhen(e,r=>r.dynamic&&Bt.pattern.hasGlobStar(r.pattern))}};fs.default=cs});var Zu=g(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var i_=Xu(),hs=class extends i_.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,u)=>{let c=s.segments[u];return!!(c.dynamic&&c.patternRe.test(l)||!c.dynamic&&c.pattern===l)}))return!0}return!1}};ps.default=hs});var zu=g(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var ei=He(),n_=Zu(),ds=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new n_.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(ei.pattern.isAffectDepthOfReadingPattern);return ei.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ei.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!ei.pattern.matchAny(e,r)}};As.default=ds});var ec=g(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var ot=He(),gs=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=ot.pattern.convertPatternsToRe(e,this._micromatchOptions),n=ot.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=this._isMatchToPatterns(n,r)&&!this._isMatchToPatterns(e.path,i);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 i=ot.path.makeAbsolute(this._settings.cwd,e);return ot.pattern.matchAny(i,r)}_isMatchToPatterns(e,r){let i=ot.path.removeLeadingDotSegment(e);return ot.pattern.matchAny(i,r)||ot.pattern.matchAny(i+"/",r)}};_s.default=gs});var tc=g(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var s_=He(),ms=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return s_.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Es.default=ms});var ic=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var rc=He(),ys=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=rc.path.makeAbsolute(this._settings.cwd,r),r=rc.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Cs.default=ys});var ti=g(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var o_=S("path"),a_=zu(),l_=ec(),u_=tc(),c_=ic(),bs=class{constructor(e){this._settings=e,this.errorFilter=new u_.default(this._settings),this.entryFilter=new l_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new a_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c_.default(this._settings)}_getRootDirectory(e){return o_.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}}};vs.default=bs});var nc=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var f_=us(),h_=ti(),xs=class extends h_.default{constructor(){super(...arguments),this._reader=new f_.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=[];return new Promise((s,o)=>{let a=this.api(r,e,i);a.once("error",o),a.on("data",l=>n.push(i.transform(l))),a.once("end",()=>s(n))})}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ss.default=xs});var sc=g(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var p_=S("stream"),d_=us(),A_=ti(),ws=class extends A_.default{constructor(){super(...arguments),this._reader=new d_.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new p_.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Bs.default=ws});var oc=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var g_=st(),__=is(),m_=os(),Rs=class extends m_.default{constructor(){super(...arguments),this._walkSync=__.walkSync,this._statSync=g_.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Qs.default=Rs});var ac=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var E_=oc(),y_=ti(),Is=class extends y_.default{constructor(){super(...arguments),this._reader=new E_.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Os.default=Is});var lc=g(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Rt=S("fs"),C_=S("os"),b_=Math.max(C_.cpus().length,1);Qt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Rt.lstat,lstatSync:Rt.lstatSync,stat:Rt.stat,statSync:Rt.statSync,readdir:Rt.readdir,readdirSync:Rt.readdirSync};var Ts=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,b_),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=Ts});var Ps=g((lb,fc)=>{"use strict";var uc=uu(),cc=fu(),v_=nc(),x_=sc(),S_=ac(),Ds=lc(),at=He();async function ks(t,e){It(t);let r=Ls(t,v_.default,e),i=await Promise.all(r);return at.array.flatten(i)}(function(t){function e(o,a){It(o);let l=Ls(o,S_.default,a);return at.array.flatten(l)}t.sync=e;function r(o,a){It(o);let l=Ls(o,x_.default,a);return at.stream.merge(l)}t.stream=r;function i(o,a){It(o);let l=cc.transform([].concat(o)),u=new Ds.default(a);return uc.generate(l,u)}t.generateTasks=i;function n(o,a){It(o);let l=new Ds.default(a);return at.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return It(o),at.path.escape(o)}t.escapePath=s})(ks||(ks={}));function Ls(t,e,r){let i=cc.transform([].concat(t)),n=new Ds.default(r),s=uc.generate(i,n),o=new e(n);return s.map(o.read,o)}function It(t){if(![].concat(t).every(i=>at.string.isString(i)&&!at.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}fc.exports=ks});var pc=g((ub,Ns)=>{"use strict";var hc=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Ns.exports=hc;Ns.exports.default=hc});var Ac=g((cb,ii)=>{"use strict";var w_=pc(),ri=new WeakMap,dc=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(ri.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return w_(s,t),ri.set(s,i),s};ii.exports=dc;ii.exports.default=dc;ii.exports.callCount=t=>{if(!ri.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ri.get(t)}});var gc=g((fb,ni)=>{ni.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ni.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ni.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Cc=g((hb,Dt)=>{var V=global.process,lt=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"};lt(V)?(_c=S("assert"),Ot=gc(),mc=/^win/i.test(V.platform),Zt=S("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),V.__signal_exit_emitter__?re=V.__signal_exit_emitter__:(re=V.__signal_exit_emitter__=new Zt,re.count=0,re.emitted={}),re.infinite||(re.setMaxListeners(1/0),re.infinite=!0),Dt.exports=function(t,e){if(!lt(global.process))return function(){};_c.equal(typeof t,"function","a callback must be provided for exit handler"),Tt===!1&&Ms();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){re.removeListener(r,t),re.listeners("exit").length===0&&re.listeners("afterexit").length===0&&si()};return re.on(r,t),i},si=function(){!Tt||!lt(global.process)||(Tt=!1,Ot.forEach(function(e){try{V.removeListener(e,oi[e])}catch{}}),V.emit=ai,V.reallyExit=Fs,re.count-=1)},Dt.exports.unload=si,ut=function(e,r,i){re.emitted[e]||(re.emitted[e]=!0,re.emit(e,r,i))},oi={},Ot.forEach(function(t){oi[t]=function(){if(!!lt(global.process)){var r=V.listeners(t);r.length===re.count&&(si(),ut("exit",null,t),ut("afterexit",null,t),mc&&t==="SIGHUP"&&(t="SIGINT"),V.kill(V.pid,t))}}}),Dt.exports.signals=function(){return Ot},Tt=!1,Ms=function(){Tt||!lt(global.process)||(Tt=!0,re.count+=1,Ot=Ot.filter(function(e){try{return V.on(e,oi[e]),!0}catch{return!1}}),V.emit=yc,V.reallyExit=Ec)},Dt.exports.load=Ms,Fs=V.reallyExit,Ec=function(e){!lt(global.process)||(V.exitCode=e||0,ut("exit",V.exitCode,null),ut("afterexit",V.exitCode,null),Fs.call(V,V.exitCode))},ai=V.emit,yc=function(e,r){if(e==="exit"&&lt(global.process)){r!==void 0&&(V.exitCode=r);var i=ai.apply(this,arguments);return ut("exit",V.exitCode,null),ut("afterexit",V.exitCode,null),i}else return ai.apply(this,arguments)}):Dt.exports=function(){return function(){}};var _c,Ot,mc,Zt,re,si,ut,oi,Tt,Ms,Fs,Ec,ai,yc});var wc=g((mb,Q_)=>{Q_.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 Qc=g((Eb,Rc)=>{"use strict";var ui=Object.assign({},wc()),Bc=Object.keys(ui);Object.defineProperty(ui,"random",{get(){let t=Math.floor(Math.random()*Bc.length),e=Bc[t];return ui[e]}});Rc.exports=ui});var Ic=g((Rb,ci)=>{var D_=function(){"use strict";function t(o,a,l,u){var c;typeof a=="object"&&(l=a.depth,u=a.prototype,c=a.filter,a=a.circular);var f=[],h=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(m,v){if(m===null)return null;if(v==0)return m;var b,D;if(typeof m!="object")return m;if(t.__isArray(m))b=[];else if(t.__isRegExp(m))b=new RegExp(m.source,s(m)),m.lastIndex&&(b.lastIndex=m.lastIndex);else if(t.__isDate(m))b=new Date(m.getTime());else{if(C&&Buffer.isBuffer(m))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(m.length):b=new Buffer(m.length),m.copy(b),b;typeof u>"u"?(D=Object.getPrototypeOf(m),b=Object.create(D)):(b=Object.create(u),D=u)}if(a){var L=f.indexOf(m);if(L!=-1)return h[L];f.push(m),h.push(b)}for(var ee in m){var Q;D&&(Q=Object.getOwnPropertyDescriptor(D,ee)),!(Q&&Q.set==null)&&(b[ee]=_(m[ee],v-1))}return b}return _(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 i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;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 ci=="object"&&ci.exports&&(ci.exports=D_)});var Tc=g((Qb,Oc)=>{var k_=Ic();Oc.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=k_(e[r]))}),t}});var kc=g((Ib,Dc)=>{Dc.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 Mc=g((Ob,js)=>{"use strict";var L_=Tc(),tr=kc(),Pc={nul:0,control:0};js.exports=function(e){return Nc(e,Pc)};js.exports.config=function(t){return t=L_(t||{},Pc),function(r){return Nc(r,t)}};function Nc(t,e){if(typeof t!="string")return Lc(t,e);for(var r=0,i=0;i<t.length;i++){var n=Lc(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function Lc(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:P_(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 P_(t){var e=0,r=tr.length-1,i;if(t<tr[0][0]||t>tr[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>tr[i][1])e=i+1;else if(t<tr[i][0])r=i-1;else return!0;return!1}});var Us=g((Db,Fc)=>{Fc.exports=S("stream")});var jc=g((kb,$c)=>{"use strict";function Hc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function N_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hc(Object(r),!0).forEach(function(i){M_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function M_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function H_(t,e,r){return e&&qc(t.prototype,e),r&&qc(t,r),t}var q_=S("buffer"),fi=q_.Buffer,$_=S("util"),Ks=$_.inspect,j_=Ks&&Ks.custom||"inspect";function G_(t,e,r){fi.prototype.copy.call(t,e,r)}$c.exports=function(){function t(){F_(this,t),this.head=null,this.tail=null,this.length=0}return H_(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++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 i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return fi.alloc(0);for(var i=fi.allocUnsafe(r>>>0),n=this.head,s=0;n;)G_(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var o=i.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?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=fi.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:j_,value:function(r,i){return Ks(this,N_({},i,{depth:0,customInspect:!1}))}}]),t}()});var Vs=g((Lb,Uc)=>{"use strict";function U_(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Js,this,t)):process.nextTick(Js,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(hi,r):(r._writableState.errorEmitted=!0,process.nextTick(Gc,r,s)):process.nextTick(Gc,r,s):e?(process.nextTick(hi,r),e(s)):process.nextTick(hi,r)}),this)}function Gc(t,e){Js(t,e),hi(t)}function hi(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function K_(){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 Js(t,e){t.emit("error",e)}function J_(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Uc.exports={destroy:U_,undestroy:K_,errorOrDestroy:J_}});var Xe=g((Pb,Vc)=>{"use strict";var Jc={};function Ae(t,e,r){r||(r=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends r{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=r.name,n.prototype.code=t,Jc[t]=n}function Kc(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),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 V_(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Y_(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function W_(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Ae("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ae("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&V_(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(Y_(t," argument"))n=`The ${t} ${i} ${Kc(e,"type")}`;else{let s=W_(t,".")?"property":"argument";n=`The "${t}" ${s} ${i} ${Kc(e,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);Ae("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ae("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ae("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ae("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ae("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ae("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ae("ERR_STREAM_WRITE_AFTER_END","write after end");Ae("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ae("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ae("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Vc.exports.codes=Jc});var Ys=g((Nb,Yc)=>{"use strict";var X_=Xe().codes.ERR_INVALID_OPT_VALUE;function Z_(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function z_(t,e,r,i){var n=Z_(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new X_(s,n)}return Math.floor(n)}return t.objectMode?16:16*1024}Yc.exports={getHighWaterMark:z_}});var Wc=g((Mb,Ws)=>{typeof Object.create=="function"?Ws.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ws.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ct=g((Fb,Zs)=>{try{if(Xs=S("util"),typeof Xs.inherits!="function")throw"";Zs.exports=Xs.inherits}catch{Zs.exports=Wc()}var Xs});var Zc=g((Hb,Xc)=>{Xc.exports=S("util").deprecate});var to=g((qb,sf)=>{"use strict";sf.exports=W;function ef(t){var e=this;this.next=null,this.entry=null,this.finish=function(){wm(e,t)}}var Lt;W.WritableState=ir;var em={deprecate:Zc()},tf=Us(),di=S("buffer").Buffer,tm=global.Uint8Array||function(){};function rm(t){return di.from(t)}function im(t){return di.isBuffer(t)||t instanceof tm}var eo=Vs(),nm=Ys(),sm=nm.getHighWaterMark,Ze=Xe().codes,om=Ze.ERR_INVALID_ARG_TYPE,am=Ze.ERR_METHOD_NOT_IMPLEMENTED,lm=Ze.ERR_MULTIPLE_CALLBACK,um=Ze.ERR_STREAM_CANNOT_PIPE,cm=Ze.ERR_STREAM_DESTROYED,fm=Ze.ERR_STREAM_NULL_VALUES,hm=Ze.ERR_STREAM_WRITE_AFTER_END,pm=Ze.ERR_UNKNOWN_ENCODING,Pt=eo.errorOrDestroy;ct()(W,tf);function dm(){}function ir(t,e,r){Lt=Lt||ft(),t=t||{},typeof r!="boolean"&&(r=e instanceof Lt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=sm(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Cm(e,n)},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 ef(this)}ir.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(ir.prototype,"buffer",{get:em.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var pi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(pi=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(e){return pi.call(this,e)?!0:this!==W?!1:e&&e._writableState instanceof ir}})):pi=function(e){return e instanceof this};function W(t){Lt=Lt||ft();var e=this instanceof Lt;if(!e&&!pi.call(W,this))return new W(t);this._writableState=new ir(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)),tf.call(this)}W.prototype.pipe=function(){Pt(this,new um)};function Am(t,e){var r=new hm;Pt(t,r),process.nextTick(e,r)}function gm(t,e,r,i){var n;return r===null?n=new fm:typeof r!="string"&&!e.objectMode&&(n=new om("chunk",["string","Buffer"],r)),n?(Pt(t,n),process.nextTick(i,n),!1):!0}W.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&im(t);return s&&!di.isBuffer(t)&&(t=rm(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=dm),i.ending?Am(this,r):(s||gm(this,i,t,r))&&(i.pendingcb++,n=mm(this,i,s,t,e,r)),n};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&rf(this,t))};W.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 pm(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _m(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=di.from(e,r)),e}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mm(t,e,r,i,n,s){if(!r){var o=_m(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else zs(t,e,!1,a,i,n,s);return l}function zs(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new cm("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Em(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(rr,t,e),t._writableState.errorEmitted=!0,Pt(t,i)):(n(i),t._writableState.errorEmitted=!0,Pt(t,i),rr(t,e))}function ym(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Cm(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new lm;if(ym(r),e)Em(t,r,i,e,n);else{var s=nf(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&rf(t,r),i?process.nextTick(zc,t,r,s,n):zc(t,r,s,n)}}function zc(t,e,r,i){r||bm(t,e),e.pendingcb--,i(),rr(t,e)}function bm(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function rf(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,zs(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new ef(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,f=e.objectMode?1:l.length;if(zs(t,e,!1,f,l,u,c),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}W.prototype._write=function(t,e,r){r(new am("_write()"))};W.prototype._writev=null;W.prototype.end=function(t,e,r){var i=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),i.corked&&(i.corked=1,this.uncork()),i.ending||Sm(this,i,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function nf(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function vm(t,e){t._final(function(r){e.pendingcb--,r&&Pt(t,r),e.prefinished=!0,t.emit("prefinish"),rr(t,e)})}function xm(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(vm,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function rr(t,e){var r=nf(e);if(r&&(xm(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Sm(t,e,r){e.ending=!0,rr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function wm(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});W.prototype.destroy=eo.destroy;W.prototype._undestroy=eo.undestroy;W.prototype._destroy=function(t,e){e(t)}});var ft=g(($b,af)=>{"use strict";var Bm=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};af.exports=De;var of=no(),io=to();ct()(De,of);for(ro=Bm(io.prototype),Ai=0;Ai<ro.length;Ai++)gi=ro[Ai],De.prototype[gi]||(De.prototype[gi]=io.prototype[gi]);var ro,gi,Ai;function De(t){if(!(this instanceof De))return new De(t);of.call(this,t),io.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",Rm)))}Object.defineProperty(De.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(De.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(De.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Rm(){this._writableState.ended||process.nextTick(Qm,this)}function Qm(t){t.end()}Object.defineProperty(De.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 cf=g((so,uf)=>{var _i=S("buffer"),ke=_i.Buffer;function lf(t,e){for(var r in t)e[r]=t[r]}ke.from&&ke.alloc&&ke.allocUnsafe&&ke.allocUnsafeSlow?uf.exports=_i:(lf(_i,so),so.Buffer=ht);function ht(t,e,r){return ke(t,e,r)}ht.prototype=Object.create(ke.prototype);lf(ke,ht);ht.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ke(t,e,r)};ht.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ke(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};ht.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ke(t)};ht.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return _i.SlowBuffer(t)}});var lo=g(hf=>{"use strict";var ao=cf().Buffer,ff=ao.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 Im(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 Om(t){var e=Im(t);if(typeof e!="string"&&(ao.isEncoding===ff||!ff(t)))throw new Error("Unknown encoding: "+t);return e||t}hf.StringDecoder=nr;function nr(t){this.encoding=Om(t);var e;switch(this.encoding){case"utf16le":this.text=Nm,this.end=Mm,e=4;break;case"utf8":this.fillLast=km,e=4;break;case"base64":this.text=Fm,this.end=Hm,e=3;break;default:this.write=qm,this.end=$m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ao.allocUnsafe(e)}nr.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||""};nr.prototype.end=Pm;nr.prototype.text=Lm;nr.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 oo(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Tm(t,e,r){var i=e.length-1;if(i<r)return 0;var n=oo(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=oo(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=oo(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function Dm(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 km(t){var e=this.lastTotal-this.lastNeed,r=Dm(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 Lm(t,e){var r=Tm(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Pm(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Nm(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=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 Mm(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 Fm(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 Hm(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function qm(t){return t.toString(this.encoding)}function $m(t){return t&&t.length?this.write(t):""}});var mi=g((Gb,Af)=>{"use strict";var pf=Xe().codes.ERR_STREAM_PREMATURE_CLOSE;function jm(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function Gm(){}function Um(t){return t.setHeader&&typeof t.abort=="function"}function df(t,e,r){if(typeof e=="function")return df(t,null,e);e||(e={}),r=jm(r||Gm);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){n=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,n||r.call(t)},c=function(_){r.call(t,_)},f=function(){var _;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(_=new pf),r.call(t,_);if(n&&!o)return(!t._writableState||!t._writableState.ended)&&(_=new pf),r.call(t,_)},h=function(){t.req.on("finish",a)};return Um(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):n&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",c),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",u),t.removeListener("error",c),t.removeListener("close",f)}}Af.exports=df});var _f=g((Ub,gf)=>{"use strict";var Ei;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 Km=mi(),et=Symbol("lastResolve"),pt=Symbol("lastReject"),sr=Symbol("error"),yi=Symbol("ended"),dt=Symbol("lastPromise"),uo=Symbol("handlePromise"),At=Symbol("stream");function tt(t,e){return{value:t,done:e}}function Jm(t){var e=t[et];if(e!==null){var r=t[At].read();r!==null&&(t[dt]=null,t[et]=null,t[pt]=null,e(tt(r,!1)))}}function Vm(t){process.nextTick(Jm,t)}function Ym(t,e){return function(r,i){t.then(function(){if(e[yi]){r(tt(void 0,!0));return}e[uo](r,i)},i)}}var Wm=Object.getPrototypeOf(function(){}),Xm=Object.setPrototypeOf((Ei={get stream(){return this[At]},next:function(){var e=this,r=this[sr];if(r!==null)return Promise.reject(r);if(this[yi])return Promise.resolve(tt(void 0,!0));if(this[At].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[sr]?a(e[sr]):o(tt(void 0,!0))})});var i=this[dt],n;if(i)n=new Promise(Ym(i,this));else{var s=this[At].read();if(s!==null)return Promise.resolve(tt(s,!1));n=new Promise(this[uo])}return this[dt]=n,n}},ze(Ei,Symbol.asyncIterator,function(){return this}),ze(Ei,"return",function(){var e=this;return new Promise(function(r,i){e[At].destroy(null,function(n){if(n){i(n);return}r(tt(void 0,!0))})})}),Ei),Wm),Zm=function(e){var r,i=Object.create(Xm,(r={},ze(r,At,{value:e,writable:!0}),ze(r,et,{value:null,writable:!0}),ze(r,pt,{value:null,writable:!0}),ze(r,sr,{value:null,writable:!0}),ze(r,yi,{value:e._readableState.endEmitted,writable:!0}),ze(r,uo,{value:function(s,o){var a=i[At].read();a?(i[dt]=null,i[et]=null,i[pt]=null,s(tt(a,!1))):(i[et]=s,i[pt]=o)},writable:!0}),r));return i[dt]=null,Km(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[pt];s!==null&&(i[dt]=null,i[et]=null,i[pt]=null,s(n)),i[sr]=n;return}var o=i[et];o!==null&&(i[dt]=null,i[et]=null,i[pt]=null,o(tt(void 0,!0))),i[yi]=!0}),e.on("readable",Vm.bind(null,i)),i};gf.exports=Zm});var Cf=g((Kb,yf)=>{"use strict";function mf(t,e,r,i,n,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,n)}function zm(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(l){mf(s,i,n,o,a,"next",l)}function a(l){mf(s,i,n,o,a,"throw",l)}o(void 0)})}}function Ef(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function eE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ef(Object(r),!0).forEach(function(i){tE(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function tE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rE=Xe().codes.ERR_INVALID_ARG_TYPE;function iE(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new rE("iterable",["Iterable"],e);var n=new t(eE({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=zm(function*(){try{var l=yield i.next(),u=l.value,c=l.done;c?n.push(null):n.push(yield u)?o():s=!1}catch(f){n.destroy(f)}}),a.apply(this,arguments)}return n}yf.exports=iE});var no=g((Vb,Of)=>{"use strict";Of.exports=P;var Nt;P.ReadableState=Sf;var Jb=S("events").EventEmitter,xf=function(e,r){return e.listeners(r).length},ar=Us(),Ci=S("buffer").Buffer,nE=global.Uint8Array||function(){};function sE(t){return Ci.from(t)}function oE(t){return Ci.isBuffer(t)||t instanceof nE}var co=S("util"),T;co&&co.debuglog?T=co.debuglog("stream"):T=function(){};var aE=jc(),mo=Vs(),lE=Ys(),uE=lE.getHighWaterMark,bi=Xe().codes,cE=bi.ERR_INVALID_ARG_TYPE,fE=bi.ERR_STREAM_PUSH_AFTER_EOF,hE=bi.ERR_METHOD_NOT_IMPLEMENTED,pE=bi.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Mt,fo,ho;ct()(P,ar);var or=mo.errorOrDestroy,po=["error","close","destroy","pause","resume"];function dE(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 Sf(t,e,r){Nt=Nt||ft(),t=t||{},typeof r!="boolean"&&(r=e instanceof Nt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=uE(this,t,"readableHighWaterMark",r),this.buffer=new aE,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&&(Mt||(Mt=lo().StringDecoder),this.decoder=new Mt(t.encoding),this.encoding=t.encoding)}function P(t){if(Nt=Nt||ft(),!(this instanceof P))return new P(t);var e=this instanceof Nt;this._readableState=new Sf(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ar.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});P.prototype.destroy=mo.destroy;P.prototype._undestroy=mo.undestroy;P.prototype._destroy=function(t,e){e(t)};P.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ci.from(t,e),e=""),i=!0),wf(this,t,e,!1,i)};P.prototype.unshift=function(t){return wf(this,t,null,!0,!1)};function wf(t,e,r,i,n){T("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,_E(t,s);else{var o;if(n||(o=AE(s,e)),o)or(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ci.prototype&&(e=sE(e)),i)s.endEmitted?or(t,new pE):Ao(t,s,e,!0);else if(s.ended)or(t,new fE);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Ao(t,s,e,!1):_o(t,s)):Ao(t,s,e,!1)}else i||(s.reading=!1,_o(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ao(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&vi(t)),_o(t,e)}function AE(t,e){var r;return!oE(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new cE("chunk",["string","Buffer","Uint8Array"],e)),r}P.prototype.isPaused=function(){return this._readableState.flowing===!1};P.prototype.setEncoding=function(t){Mt||(Mt=lo().StringDecoder);var e=new Mt(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var bf=1073741824;function gE(t){return t>=bf?t=bf:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function vf(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=gE(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}P.prototype.read=function(t){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 T("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?go(this):vi(this),null;if(t=vf(t,e),t===0&&e.ended)return e.length===0&&go(this),null;var i=e.needReadable;T("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,T("length less than watermark",i)),e.ended||e.reading?(i=!1,T("reading or ended",i)):i&&(T("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=vf(r,e)));var n;return t>0?n=Qf(t,e):n=null,n===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&&go(this)),n!==null&&this.emit("data",n),n};function _E(t,e){if(T("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?vi(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Bf(t)))}}function vi(t){var e=t._readableState;T("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(T("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Bf,t))}function Bf(t){var e=t._readableState;T("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,Eo(t)}function _o(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(mE,t,e))}function mE(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(T("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}P.prototype._read=function(t){or(this,new hE("_read()"))};P.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,T("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:m;i.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(v,b){T("onunpipe"),v===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,c())}function a(){T("onend"),t.end()}var l=EE(r);t.on("drain",l);var u=!1;function c(){T("cleanup"),t.removeListener("close",C),t.removeListener("finish",_),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(v){T("ondata");var b=t.write(v);T("dest.write",b),b===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&If(i.pipes,t)!==-1)&&!u&&(T("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(v){T("onerror",v),m(),t.removeListener("error",h),xf(t,"error")===0&&or(t,v)}dE(t,"error",h);function C(){t.removeListener("finish",_),m()}t.once("close",C);function _(){T("onfinish"),t.removeListener("close",C),m()}t.once("finish",_);function m(){T("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(T("pipe resume"),r.resume()),t};function EE(t){return function(){var r=t._readableState;T("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&xf(t,"data")&&(r.flowing=!0,Eo(t))}}P.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 i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=If(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)};P.prototype.on=function(t,e){var r=ar.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,T("on readable",i.length,i.reading),i.length?vi(this):i.reading||process.nextTick(yE,this)),r};P.prototype.addListener=P.prototype.on;P.prototype.removeListener=function(t,e){var r=ar.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Rf,this),r};P.prototype.removeAllListeners=function(t){var e=ar.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Rf,this),e};function Rf(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 yE(t){T("readable nexttick read 0"),t.read(0)}P.prototype.resume=function(){var t=this._readableState;return t.flowing||(T("resume"),t.flowing=!t.readableListening,CE(this,t)),t.paused=!1,this};function CE(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(bE,t,e))}function bE(t,e){T("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Eo(t),e.flowing&&!e.reading&&t.read(0)}P.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Eo(t){var e=t._readableState;for(T("flow",e.flowing);e.flowing&&t.read()!==null;);}P.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(T("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(T("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=function(a){return function(){return t[a].apply(t,arguments)}}(n));for(var s=0;s<po.length;s++)t.on(po[s],this.emit.bind(this,po[s]));return this._read=function(o){T("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return fo===void 0&&(fo=_f()),fo(this)});Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});P._fromList=Qf;Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Qf(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 go(t){var e=t._readableState;T("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(vE,e,t))}function vE(t,e){if(T("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"&&(P.from=function(t,e){return ho===void 0&&(ho=Cf()),ho(P,t,e)});function If(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var yo=g((Yb,Df)=>{"use strict";Df.exports=je;var xi=Xe().codes,xE=xi.ERR_METHOD_NOT_IMPLEMENTED,SE=xi.ERR_MULTIPLE_CALLBACK,wE=xi.ERR_TRANSFORM_ALREADY_TRANSFORMING,BE=xi.ERR_TRANSFORM_WITH_LENGTH_0,Si=ft();ct()(je,Si);function RE(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new SE);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function je(t){if(!(this instanceof je))return new je(t);Si.call(this,t),this._transformState={afterTransform:RE.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",QE)}function QE(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Tf(t,e,r)}):Tf(this,null,null)}je.prototype.push=function(t,e){return this._transformState.needTransform=!1,Si.prototype.push.call(this,t,e)};je.prototype._transform=function(t,e,r){r(new xE("_transform()"))};je.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.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){Si.prototype._destroy.call(this,t,function(r){e(r)})};function Tf(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new BE;if(t._transformState.transforming)throw new wE;return t.push(null)}});var Pf=g((Wb,Lf)=>{"use strict";Lf.exports=lr;var kf=yo();ct()(lr,kf);function lr(t){if(!(this instanceof lr))return new lr(t);kf.call(this,t)}lr.prototype._transform=function(t,e,r){r(null,t)}});var qf=g((Xb,Hf)=>{"use strict";var Co;function IE(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Ff=Xe().codes,OE=Ff.ERR_MISSING_ARGS,TE=Ff.ERR_STREAM_DESTROYED;function Nf(t){if(t)throw t}function DE(t){return t.setHeader&&typeof t.abort=="function"}function kE(t,e,r,i){i=IE(i);var n=!1;t.on("close",function(){n=!0}),Co===void 0&&(Co=mi()),Co(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,DE(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new TE("pipe"))}}}function Mf(t){t()}function LE(t,e){return t.pipe(e)}function PE(t){return!t.length||typeof t[t.length-1]!="function"?Nf:t.pop()}function NE(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=PE(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new OE("streams");var n,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return kE(o,l,u,function(c){n||(n=c),c&&s.forEach(Mf),!l&&(s.forEach(Mf),i(n))})});return e.reduce(LE)}Hf.exports=NE});var $f=g((ge,cr)=>{var ur=S("stream");process.env.READABLE_STREAM==="disable"&&ur?(cr.exports=ur.Readable,Object.assign(cr.exports,ur),cr.exports.Stream=ur):(ge=cr.exports=no(),ge.Stream=ur||ge,ge.Readable=ge,ge.Writable=to(),ge.Duplex=ft(),ge.Transform=yo(),ge.PassThrough=Pf(),ge.finished=mi(),ge.pipeline=qf())});var Uf=g((Zb,Gf)=>{"use strict";var{Buffer:be}=S("buffer"),jf=Symbol.for("BufferList");function j(t){if(!(this instanceof j))return new j(t);j._init.call(this,t)}j._init=function(e){Object.defineProperty(this,jf,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};j.prototype._new=function(e){return new j(e)};j.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return[i,e-r];r=n}};j.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};j.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};j.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)};j.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||be.alloc(0);let s=!!e,o=this._offset(i),a=n-i,l=a,u=s&&r||0,c=o[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:be.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].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=be.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-c;if(l>h)this._bufs[f].copy(e,u,c),u+=h;else{this._bufs[f].copy(e,u,c,c+l),u+=h;break}l-=h,c&&(c=0)}return e.length>u?e.slice(0,u):e};j.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 i=this._offset(e),n=this._offset(r),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};j.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};j.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};j.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};j.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(be.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(be.from(e));return this};j.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};j.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=be.from([t]):typeof t=="string"?t=be.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=be.from(t.buffer,t.byteOffset,t.byteLength):be.isBuffer(t)||(t=be.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 i=this._offset(e),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let o=this._bufs[n];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([n,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,t))return l;s++}s=0}return-1};j.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?j.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:j.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();j.prototype._isBufferList=function(e){return e instanceof j||j.isBufferList(e)};j.isBufferList=function(e){return e!=null&&e[jf]};Gf.exports=j});var Kf=g((zb,wi)=>{"use strict";var bo=$f().Duplex,ME=ct(),fr=Uf();function se(t){if(!(this instanceof se))return new se(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}fr._init.call(this,t),bo.call(this)}ME(se,bo);Object.assign(se.prototype,fr.prototype);se.prototype._new=function(e){return new se(e)};se.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};se.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)};se.prototype.end=function(e){bo.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};se.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};se.prototype._isBufferList=function(e){return e instanceof se||e instanceof fr||se.isBufferList(e)};se.isBufferList=fr.isBufferList;wi.exports=se;wi.exports.BufferListStream=se;wi.exports.BufferList=fr});var Jo=g(($x,bh)=>{var ki=S("fs"),Ch=S("path"),Y0=S("os");function Uo(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function Ko(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 W0={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 ki.existsSync(t)},file:function(t){return Ko(t,function(e){return ki.statSync(e).isFile()})},samePath:function(t,e){return Ch.resolve(t)===Ch.resolve(e)},directory:function(t){return Ko(t,function(e){return ki.statSync(e).isDirectory()})},symbolicLink:function(t){return Ko(t,function(e){return ki.lstatSync(e).isSymbolicLink()})},windows:function(){return Y0.platform()==="win32"}};bh.exports=W0});var Bh=g((jx,wh)=>{var Er=S("fs"),vh=S("os"),Vo=S("path"),Li=Jo(),mr,X0=vh.tmpdir&&vh.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Sh(){this.stack=[]}Sh.prototype={create:function(t,e){var r=Vo.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)Er.writeFileSync(arguments[t]," ")},mkdir:function(){for(var t=0;t<arguments.length;++t)Er.mkdirSync(arguments[t])},cleanup:function(t){try{for(var e;e=this.stack.pop();){var r=e.type,i=e.name;r==="file"&&Li.file(i)?Er.unlinkSync(i):r==="dir"&&Li.directory(i)&&Er.rmdirSync(i)}}finally{Li.func(t)&&t()}}};var xh=!1;wh.exports=function t(e){if(!Li.func(e))return!1;if(mr!==void 0)return e(mr);if(!xh)xh=!0;else return setTimeout(function(){t(e)},300);var r=new Sh,i=r.create("dir",X0),n=r.create("dir",i),s=r.create("file",n);r.mkdir(i,n);var o={recursive:!0},a;try{a=Er.watch(i,o)}catch(u){if(u.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(mr=!1);throw u}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(mr=!1)})},200);a.on("change",function(u,c){Vo.basename(s)===Vo.basename(c)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(mr=!0)}))}),r.write(s)}});var Mh=g((Gx,Zo)=>{var Wo=S("fs"),yr=S("path"),Qh=S("util"),Ih=S("events"),Oh=Bh(),$=Jo(),Z0="update",Th="remove",Rh=Symbol("skip");function z0(t){return t.some(function(e,r,i){return i.indexOf(e)!==r})}function Xo(t){return t.filter(function(e,r,i){return i.indexOf(e)===r})}function ey(t){return t.reduce(function(e,r){return e.concat(r)},[])}function ty(t){if(t&&t!=="buffer"&&!Buffer.isEncoding(t))throw new Error("Unknown encoding: "+t)}function ry(t){return $.func(t)?function(e,r){t(e,!1)&&r()}:$.regExp(t)?function(e,r){t.test(e)&&r()}:function(e,r){r()}}function iy(t){return t.map(function(e){return $.exists(e)?[Z0,e]:[Th,e]})}function ny(t){var e=Xo(t),r=/~$|^\.#|^##$/g,i=t.some(function(s){return r.test(s)});if(i){var n=z0(t.map(function(s){return s.replace(r,"")}));n&&(e=e.filter(function(s){return $.exists(s)}))}return iy(e)}function sy(t,e){var r,i=[],n=t.options.encoding,s=t.options.delay;$.number(s)||(s=200);function o(){ny(i).forEach(function(a){a[1]=Buffer.from(a[1]),n!=="buffer"&&(a[1]=a[1].toString(n)),e.apply(null,a)}),r=null,i=[]}return function(a,l){i.push(l),r||(r=setTimeout(o,s))}}function Dh(){var t={};return function(e){return function(r,i){t[r+i]=[r,i],setTimeout(function(){Object.keys(t).forEach(function(n){e.apply(null,t[n])}),t={}})}}}function kh(t,e,r=function(){}){$.directory(t)?Wo.readdir(t,function(i,n){if(i)if(/^(EPERM|EACCES)$/.test(i.code))console.warn("Warning: Cannot access %s.",t);else throw i;else n.forEach(function(s){var o=yr.join(t,s);$.directory(o)&&e(o)}),r()}):r()}function oy(t){var e=0;return function(){return e++,function(){e--,e===0&&t()}}}function ay(){return function(){}}function Lh(t,e){return!$.func(e)||e(t,Rh)!==Rh}var Ph=Qh.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 Pe(){Ih.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Qh.inherits(Pe,Ih.EventEmitter);Pe.prototype.expose=function(){var t={},e=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(i){t[i]=function(){return e[i].apply(e,arguments)}}),t};Pe.prototype.isClosed=function(){return this._isClosed};Pe.prototype.close=function(t){var e=this;if(t){var r=this.watchers[t];r&&r.close&&(r.close(),delete e.watchers[t]),kh(t,function(i){e.close(i)})}else Object.keys(e.watchers).forEach(function(i){var n=e.watchers[i];n&&n.close&&n.close()}),this.watchers={};$.emptyObject(e.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Nh,this)))};Pe.prototype.getWatchedPaths=function(t){if($.func(t)){var e=this;e._isReady?t(Object.keys(e.watchers)):e.on("ready",function(){t(Object.keys(e.watchers))})}};function Yo(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function Nh(t){t.emit("close")}Pe.prototype.add=function(t,e){var r=this;e=e||{fpath:""};var i=yr.resolve(e.fpath);this.watchers[i]=t;var n=function(o,a){if(!r.isClosed()){var l=a;$.nil(l)&&(l=""),l=yr.join(e.fpath,l),e.options.recursive&&Oh(function(u){if(!u){var c=yr.resolve(l);if(!$.exists(l))r.close(c);else{var f=$.directory(l)&&!r.watchers[c]&&Lh(l,e.options.filter);f&&r.watchDirectory(l,e.options)}}}),s(o,l)}},s=sy(e,function(o,a){if(e.compareName)e.compareName(a)&&r.emit("change",o,a);else{var l=ry(e.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});t.on("error",function(o){r.isClosed()||($.windows()&&o.code==="EPERM"?(t.emit("change",Th,e.fpath&&""),r.flag="windows-error",r.close(i)):r.emit("error",o))}),t.on("change",n)};Pe.prototype.watchFile=function(t,e,r){var i=yr.join(t,"../"),n=Object.assign({},e,{filter:null,encoding:"utf8"});delete n.recursive;var s=Wo.watch(i,n);this.add(s,{type:"file",fpath:i,options:Object.assign({},n,{encoding:e.encoding}),compareName:function(o){return $.samePath(o,t)}}),$.func(r)&&(r.length===1&&Ph(),this.on("change",r))};Pe.prototype.watchDirectory=function(t,e,r,i=ay){var n=this,s=i();Oh(function(o){e.recursive=!!e.recursive;var a=Object.assign({},e,{encoding:"utf8"});if(o||delete a.recursive,n._isClosed)return s(),n.close();var l=Wo.watch(t,a);n.add(l,{type:"dir",fpath:t,options:e}),$.func(r)&&(r.length===1&&Ph(),n.on("change",r)),e.recursive&&!o&&kh(t,function(u){Lh(u,e.filter)&&n.watchDirectory(u,e,null,i)},i()),s()})};function ly(t){var e=new Pe,r=Dh(),i=t.length;return t.forEach(function(n){n.on("change",r(function(s,o){e.emit("change",s,o)})),n.on("error",function(s){e.emit("error",s)}),n.on("ready",function(){--i||Yo(e)})}),e.close=function(){t.forEach(function(n){n.close()}),process.nextTick(Nh,e)},e.getWatchedPaths=function(n){if($.func(n)){var s=t.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Xo(ey(o));n(a)})}},e.expose()}function Pi(t,e,r){var i=new Pe;if($.buffer(t)&&(t=t.toString()),!$.array(t)&&!$.exists(t)&&i.emit("error",new Error(t+" does not exist.")),$.string(e)&&(e={encoding:e}),$.func(e)&&(r=e,e={}),arguments.length<2&&(e={}),e.encoding?ty(e.encoding):e.encoding="utf8",$.array(t)){if(t.length===1)return Pi(t[0],e,r);var n=Dh();return ly(Xo(t).map(function(o){var a=Pi(o,e);return $.func(r)&&a.on("change",n(r)),a}))}if($.file(t))i.watchFile(t,e,r),Yo(i);else if($.directory(t)){var s=oy(function(){Yo(i)});i.watchDirectory(t,e,r,s)}return i.expose()}Zo.exports=Pi;Zo.exports.default=Pi});var ea=(t=0)=>e=>`\x1B[${e+t}m`,ta=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ra=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`;function Zh(){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,i]of Object.entries(e)){for(let[n,s]of Object.entries(i))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},i[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=ea(),e.color.ansi256=ta(),e.color.ansi16m=ra(),e.bgColor.ansi=ea(10),e.bgColor.ansi256=ta(10),e.bgColor.ansi16m=ra(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,i,n)=>r===i&&i===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:r=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!i)return[0,0,0];let{colorString:n}=i.groups;n.length===3&&(n=[...n].map(o=>o+o).join(""));let s=Number.parseInt(n,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 i,n,s;if(r>=232)i=((r-232)*10+8)/255,n=i,s=i;else{r-=16;let l=r%36;i=Math.floor(r/36)/5,n=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(i,n,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(i));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,i,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,i,n)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var zh=Zh(),ye=zh;import Mi from"node:process";import ep from"node:os";import ia from"node:tty";function he(t,e=Mi.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:Z}=Mi,Sr;he("no-color")||he("no-colors")||he("color=false")||he("color=never")?Sr=0:(he("color")||he("colors")||he("color=true")||he("color=always"))&&(Sr=1);function tp(){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 rp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ip(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=tp();i!==void 0&&(Sr=i);let n=r?Sr:i;if(n===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&&n===void 0)return 0;let s=n||0;if(Z.TERM==="dumb")return s;if(Mi.platform==="win32"){let o=ep.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 na(t,e={}){let r=ip(t,{streamIsTTY:t&&t.isTTY,...e});return rp(r)}var np={stdout:na({isTTY:ia.isatty(1)}),stderr:na({isTTY:ia.isatty(2)})},sa=np;function oa(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.substr(s,i-s)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.slice(s),o}function aa(t,e,r,i){let n=0,s="";do{let o=t[i-1]==="\r";s+=t.substr(n,(o?i-1:i)-n)+e+(o?`\r
24
24
  `:`
25
- `)+r,i=n+1,n=t.indexOf(`
26
- `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Ro,stderr:Co}=So,In=Symbol("GENERATOR"),yt=Symbol("STYLER"),Ut=Symbol("IS_EMPTY"),Oo=["ansi","ansi","ansi256","ansi16m"],bt=Object.create(null),np=(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=Ro?Ro.level:0;t.level=e.level===void 0?r:e.level};var ip=t=>{let e=(...r)=>r.join(" ");return np(e,t),Object.setPrototypeOf(e,Vt.prototype),e};function Vt(t){return ip(t)}Object.setPrototypeOf(Vt.prototype,Function.prototype);for(let[t,e]of Object.entries(be))bt[t]={get(){let r=Sr(this,$n(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 Fn=(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"?Fn("rgb",e,r,...be.hexToRgb(...n)):be[r][t](...n),sp=["rgb","hex","ansi256"];for(let t of sp){bt[t]={get(){let{level:r}=this;return function(...n){let i=$n(Fn(t,Oo[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=$n(Fn(t,Oo[r],"bgColor",...n),be.bgColor.close,this[yt]);return Sr(this,i,this[Ut])}}}}var op=Object.defineProperties(()=>{},{...bt,level:{enumerable:!0,get(){return this[In].level},set(t){this[In].level=t}}}),$n=(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)=>ap(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,op),n[In]=t,n[yt]=e,n[Ut]=r,n},ap=(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=wo(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
27
- `);return s!==-1&&(e=Ao(e,i,n,s)),n+e+i};Object.defineProperties(Vt.prototype,bt);var lp=Vt(),xv=Vt({level:Co?Co.level:0});var C=lp;var Yo=Be(Go(),1),{program:Tv,createCommand:Pv,createArgument:Dv,createOption:Lv,CommanderError:Mv,InvalidArgumentError:kv,Command:Ko,Argument:Nv,Option:Bv,Help:Iv}=Yo.default;import{constants as Ob,existsSync as uh}from"fs";import{copyFile as Tb,mkdir as Pb,readFile as ch,rm as ih,writeFile as Db}from"fs/promises";import{dirname as fh,extname as Lb,isAbsolute as Mb,resolve as kb,resolve as Dn}from"path";import{build as io,transform as Nb}from"esbuild";var so=Be(ss(),1);import{env as sh}from"process";import An from"node:process";import yc from"node:process";var gc=Be(lc(),1),_c=Be(dc(),1);import Am from"node:process";var Rm=(0,gc.default)(()=>{(0,_c.default)(()=>{Am.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),mc=Rm;var on=!1,Mt={};Mt.show=(t=yc.stderr)=>{!t.isTTY||(on=!1,t.write("\x1B[?25h"))};Mt.hide=(t=yc.stderr)=>{!t.isTTY||(mc(),on=!0,t.write("\x1B[?25l"))};Mt.toggle=(t,e)=>{t!==void 0&&(on=t),on?Mt.show(e):Mt.hide(e)};var us=Mt;var cr=Be(Ec(),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 Om={info:C.blue("ℹ"),success:C.green("✔"),warning:C.yellow("⚠"),error:C.red("✖")},Tm={info:C.blue("i"),success:C.green("√"),warning:C.yellow("‼"),error:C.red("×")},Pm=Xt()?Om:Tm,Zt=Pm;function cs({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 fs(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(cs(),"")}var qf=Be(Dc(),1);function ps({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Hf=Be($f(),1);import Ee from"node:process";import Iy from"node:readline";var Fy=3,Ws=class{#r=0;#c=new Hf.BufferListStream;#i;#n;constructor(){this.#c.pipe(Ee.stdout);let e=this;this.#i=function(r,n,...i){let{stdin:s}=Ee;if(e.#r>0||s.emit===e.#i){if(r==="keypress")return;r==="data"&&n.includes(Fy)&&Ee.emit("SIGINT"),Reflect.apply(e.#i,this,[r,n,...i])}else Reflect.apply(Ee.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(){Ee.platform!=="win32"&&(this.#n=Iy.createInterface({input:Ee.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{Ee.listenerCount("SIGINT")===0?Ee.emit("SIGINT"):(this.#n.close(),Ee.kill(Ee.pid,"SIGINT"))}))}_realStop(){Ee.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var Rn,jf=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 Ws),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:ps({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 fs(" ".repeat(this.#u)+r+"--"+this.#p).split(`
28
- `))this.#i+=Math.max(1,Math.ceil((0,qf.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&&us.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&&us.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 _e(t){return new jf(t)}var Uf={NODE_ENV:"production"};try{let{env:t}=await import("process");t.NODE_ENV&&(Uf.NODE_ENV=t.NODE_ENV)}catch{}var Gs=Uf.NODE_ENV==="development";import{Console as $y}from"console";var gt=new $y({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),Se=t=>{if(Gs){let{name:e}=t;return{log(...r){let n=C.bgBlue.white(` [${e}] `);gt.log(`${n}`,`
25
+ `)+r,n=i+1,i=t.indexOf(`
26
+ `,n)}while(i!==-1);return s+=t.slice(n),s}var{stdout:la,stderr:ua}=sa,Fi=Symbol("GENERATOR"),Et=Symbol("STYLER"),Gt=Symbol("IS_EMPTY"),ca=["ansi","ansi","ansi256","ansi16m"],yt=Object.create(null),sp=(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=la?la.level:0;t.level=e.level===void 0?r:e.level};var op=t=>{let e=(...r)=>r.join(" ");return sp(e,t),Object.setPrototypeOf(e,Ut.prototype),e};function Ut(t){return op(t)}Object.setPrototypeOf(Ut.prototype,Function.prototype);for(let[t,e]of Object.entries(ye))yt[t]={get(){let r=wr(this,qi(e.open,e.close,this[Et]),this[Gt]);return Object.defineProperty(this,t,{value:r}),r}};yt.visible={get(){let t=wr(this,this[Et],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Hi=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?ye[r].ansi16m(...i):e==="ansi256"?ye[r].ansi256(ye.rgbToAnsi256(...i)):ye[r].ansi(ye.rgbToAnsi(...i)):t==="hex"?Hi("rgb",e,r,...ye.hexToRgb(...i)):ye[r][t](...i),ap=["rgb","hex","ansi256"];for(let t of ap){yt[t]={get(){let{level:r}=this;return function(...i){let n=qi(Hi(t,ca[r],"color",...i),ye.color.close,this[Et]);return wr(this,n,this[Gt])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);yt[e]={get(){let{level:r}=this;return function(...i){let n=qi(Hi(t,ca[r],"bgColor",...i),ye.bgColor.close,this[Et]);return wr(this,n,this[Gt])}}}}var lp=Object.defineProperties(()=>{},{...yt,level:{enumerable:!0,get(){return this[Fi].level},set(t){this[Fi].level=t}}}),qi=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},wr=(t,e,r)=>{let i=(...n)=>up(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,lp),i[Fi]=t,i[Et]=e,i[Gt]=r,i},up=(t,e)=>{if(t.level<=0||!e)return t[Gt]?"":e;let r=t[Et];if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=oa(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
27
+ `);return s!==-1&&(e=aa(e,n,i,s)),i+e+n};Object.defineProperties(Ut.prototype,yt);var cp=Ut(),wy=Ut({level:ua?ua.level:0});var B=cp;var Sa=Ne(xa(),1),{program:ky,createCommand:Ly,createArgument:Py,createOption:Ny,CommanderError:My,InvalidArgumentError:Fy,Command:wa,Argument:Hy,Option:qy,Help:$y}=Sa.default;import{constants as D0,existsSync as qo}from"fs";import{copyFile as k0,mkdir as L0,readFile as ph,rm as lh,writeFile as P0}from"fs/promises";import{dirname as dh,extname as N0,isAbsolute as M0,resolve as F0,resolve as gr}from"path";import{build as Fo,transform as H0}from"esbuild";var Ho=Ne(Ps(),1);import{env as uh}from"process";import Ri from"node:process";import Sc from"node:process";var bc=Ne(Ac(),1),vc=Ne(Cc(),1);import B_ from"node:process";var R_=(0,bc.default)(()=>{(0,vc.default)(()=>{B_.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),xc=R_;var li=!1,kt={};kt.show=(t=Sc.stderr)=>{!t.isTTY||(li=!1,t.write("\x1B[?25h"))};kt.hide=(t=Sc.stderr)=>{!t.isTTY||(xc(),li=!0,t.write("\x1B[?25l"))};kt.toggle=(t,e)=>{t!==void 0&&(li=t),li?kt.show(e):kt.hide(e)};var Hs=kt;var hr=Ne(Qc(),1);import $e from"node:process";function zt(){return $e.platform!=="win32"?$e.env.TERM!=="linux":Boolean($e.env.CI)||Boolean($e.env.WT_SESSION)||$e.env.ConEmuTask==="{cmd::Cmder}"||$e.env.TERM_PROGRAM==="vscode"||$e.env.TERM==="xterm-256color"||$e.env.TERM==="alacritty"||$e.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var I_={info:B.blue("ℹ"),success:B.green("✔"),warning:B.yellow("⚠"),error:B.red("✖")},O_={info:B.blue("i"),success:B.green("√"),warning:B.yellow("‼"),error:B.red("×")},T_=zt()?I_:O_,er=T_;function qs({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 $s(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(qs(),"")}var Vf=Ne(Mc(),1);function Gs({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Jf=Ne(Kf(),1);import ve from"node:process";import FE from"node:readline";var HE=3,Bi=class{#r=0;#c=new Jf.BufferListStream;#n;#i;constructor(){this.#c.pipe(ve.stdout);let e=this;this.#n=function(r,i,...n){let{stdin:s}=ve;if(e.#r>0||s.emit===e.#n){if(r==="keypress")return;r==="data"&&i.includes(HE)&&ve.emit("SIGINT"),Reflect.apply(e.#n,this,[r,i,...n])}else Reflect.apply(ve.stdin.emit,this,[r,i,...n])}}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(){ve.platform!=="win32"&&(this.#i=FE.createInterface({input:ve.stdin,output:this.#c}),this.#i.on("SIGINT",()=>{ve.listenerCount("SIGINT")===0?ve.emit("SIGINT"):(this.#i.close(),ve.kill(ve.pid,"SIGINT"))}))}_realStop(){ve.platform!=="win32"&&(this.#i.close(),this.#i=void 0)}};var Qi,vo=class{#r=0;#c=!1;#n=0;#i=0;#e;#o;#t;#f;#h;#a;#l;#u;#p;#s;color;constructor(e){Qi||(Qi=new Bi),typeof e=="string"&&(e={text:e}),this.#e={color:"cyan",stream:Ri.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:Gs({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,Ri.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.#i}}),Object.defineProperty(this,"_lineCount",{get(){return this.#n}}))}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.#i=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(!zt())this.#o=hr.default.line;else if(e===void 0)this.#o=hr.default.dots;else if(e!=="default"&&hr.default[e])this.#o=hr.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.#n=0;for(let i of $s(" ".repeat(this.#u)+r+"--"+this.#p).split(`
28
+ `))this.#n+=Math.max(1,Math.ceil((0,Vf.default)(i)/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.#i];this.color&&(r=B[this.color](r)),this.#i=++this.#i%e.length;let i=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}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.#n,this)}start(e){return e&&(this.text=e),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Hs.hide(this.#t),this.#e.discardStdin&&Ri.stdin.isTTY&&(this.#c=!0,Qi.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.#i=0,this.clear(),this.#e.hideCursor&&Hs.show(this.#t),this.#e.discardStdin&&Ri.stdin.isTTY&&this.#c&&(Qi.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:er.success,text:e})}fail(e){return this.stopAndPersist({symbol:er.error,text:e})}warn(e){return this.stopAndPersist({symbol:er.warning,text:e})}info(e){return this.stopAndPersist({symbol:er.info,text:e})}stopAndPersist(e={}){if(this.#l)return this;let r=e.prefixText||this.#s,i=e.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${n}
30
+ `),this}};function _e(t){return new vo(t)}var Yf={NODE_ENV:"production"};try{let{env:t}=await import("process");t.NODE_ENV&&(Yf.NODE_ENV=t.NODE_ENV)}catch{}var xo=Yf.NODE_ENV==="development";import{Console as qE}from"console";var gt=new qE({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),xe=t=>{if(xo){let{name:e}=t;return{log(...r){let i=B.bgBlue.white(` [${e}] `);gt.log(`${i}`,`
31
31
 
32
- `,...r),gt.log()},group(){gt.log();let r=C.bgBlue.white(` [${e}] `);gt.group(r),gt.log()},groupEnd(){gt.log(`
32
+ `,...r),gt.log()},group(){gt.log();let r=B.bgBlue.white(` [${e}] `);gt.group(r),gt.log()},groupEnd(){gt.log(`
33
33
  `,"-".repeat(20),`
34
- `),gt.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var we=(...t)=>{console.log(),console.log(...t),console.log()};import{spawn as Hy,execSync as qy}from"child_process";import Xs from"node:process";import Vy from"node:os";import Yf 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 Vf=(t=0)=>e=>`\x1B[${e+t}m`,Wf=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Gf=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`;function jy(){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=Vf(),e.color.ansi256=Wf(),e.color.ansi16m=Gf(),e.bgColor.ansi=Vf(10),e.bgColor.ansi256=Wf(10),e.bgColor.ansi16m=Gf(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 Uy=jy(),ke=Uy;function me(t,e=Xs.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}=Xs,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 Wy(){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 Gy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yy(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Wy();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(Xs.platform==="win32"){let o=Vy.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 Kf(t,e={}){let r=Yy(t,{streamIsTTY:t&&t.isTTY,...e});return Gy(r)}var Ky={stdout:Kf({isTTY:Yf.isatty(1)}),stderr:Kf({isTTY:Yf.isatty(2)})},Jy=Ky;function Qy(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 Xy(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 Se=(...t)=>{console.log(),console.log(...t),console.log()};import{spawn as $E,execSync as jE}from"child_process";import Qo from"node:process";import KE from"node:os";import zf 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`,Xf=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Zf=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`;function GE(){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,i]of Object.entries(e)){for(let[n,s]of Object.entries(i))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},i[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:i,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=Xf(),e.color.ansi16m=Zf(),e.bgColor.ansi=Wf(10),e.bgColor.ansi256=Xf(10),e.bgColor.ansi16m=Zf(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,i,n)=>r===i&&i===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:r=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!i)return[0,0,0];let{colorString:n}=i.groups;n.length===3&&(n=[...n].map(o=>o+o).join(""));let s=Number.parseInt(n,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 i,n,s;if(r>=232)i=((r-232)*10+8)/255,n=i,s=i;else{r-=16;let l=r%36;i=Math.floor(r/36)/5,n=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(i,n,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(i));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,i,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(r,i,n)),enumerable:!1},hexToAnsi:{value:r=>e.ansi256ToAnsi(e.hexToAnsi256(r)),enumerable:!1}}),e}var UE=GE(),Le=UE;function me(t,e=Qo.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:z}=Qo,Ii;me("no-color")||me("no-colors")||me("color=false")||me("color=never")?Ii=0:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(Ii=1);function JE(){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 VE(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function YE(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=JE();i!==void 0&&(Ii=i);let n=r?Ii:i;if(n===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&&n===void 0)return 0;let s=n||0;if(z.TERM==="dumb")return s;if(Qo.platform==="win32"){let o=KE.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 eh(t,e={}){let r=YE(t,{streamIsTTY:t&&t.isTTY,...e});return VE(r)}var WE={stdout:eh({isTTY:zf.isatty(1)}),stderr:eh({isTTY:zf.isatty(2)})},XE=WE;function ZE(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.substr(s,i-s)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.slice(s),o}function zE(t,e,r,i){let n=0,s="";do{let o=t[i-1]==="\r";s+=t.substr(n,(o?i-1:i)-n)+e+(o?`\r
35
35
  `:`
36
- `)+r,i=n+1,n=t.indexOf(`
37
- `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Jf,stderr:Qf}=Jy,Ys=Symbol("GENERATOR"),Ft=Symbol("STYLER"),fr=Symbol("IS_EMPTY"),Xf=["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=Jf?Jf.level:0;t.level=e.level===void 0?r:e.level},zy=t=>{let e=(...r)=>r.join(" ");return Zy(e,t),Object.setPrototypeOf(e,hr.prototype),e};function hr(t){return zy(t)}Object.setPrototypeOf(hr.prototype,Function.prototype);for(let[t,e]of Object.entries(ke))$t[t]={get(){let r=On(this,Js(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 Ks=(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"?Ks("rgb",e,r,...ke.hexToRgb(...n)):ke[r][t](...n),eb=["rgb","hex","ansi256"];for(let t of eb){$t[t]={get(){let{level:r}=this;return function(...n){let i=Js(Ks(t,Xf[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=Js(Ks(t,Xf[r],"bgColor",...n),ke.bgColor.close,this[Ft]);return On(this,i,this[fr])}}}}var tb=Object.defineProperties(()=>{},{...$t,level:{enumerable:!0,get(){return this[Ys].level},set(t){this[Ys].level=t}}}),Js=(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)=>rb(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,tb),n[Ys]=t,n[Ft]=e,n[fr]=r,n},rb=(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=Qy(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
38
- `);return s!==-1&&(e=Xy(e,i,n,s)),n+e+i};Object.defineProperties(hr.prototype,$t);var nb=hr(),vS=hr({level:Qf?Qf.level:0}),ib=nb,sb={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},ob={"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(" ")}`}},ab=(t,e,r)=>{let n={...sb,...e},i={...ob,...r},s=a=>{let l=process.platform,u=n[l];if(u)return u(a);let[c,...f]=a.split(" ");return{cmd:c,args:f}},o=(a=>{let l=Object.entries(i);for(let[u,c]of l)if(a.startsWith(u)){let f=process.platform,h=c[f];if(!h)break;let x=a.slice(u.length).trim().split(" ");return h(x)}return a})(t);return s(o)},lb=process.platform==="linux"||process.platform==="darwin",Qs=process.platform==="win32",ub={stdio:"pipe",shell:!0,detached:!Qs,env:process.env},cb={log:!0,commandTranslations:{},shellTranslations:{},...ub},ye=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...n}=cb)=>{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&&lb&&(l="posix");let u=s[l];if(!u)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=u}let{cmd:o,args:a}=ab(s,r,e);return t&&console.log(ib.dim(`
36
+ `)+r,n=i+1,i=t.indexOf(`
37
+ `,n)}while(i!==-1);return s+=t.slice(n),s}var{stdout:th,stderr:rh}=XE,So=Symbol("GENERATOR"),Ft=Symbol("STYLER"),pr=Symbol("IS_EMPTY"),ih=["ansi","ansi","ansi256","ansi16m"],Ht=Object.create(null),e0=(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=th?th.level:0;t.level=e.level===void 0?r:e.level},t0=t=>{let e=(...r)=>r.join(" ");return e0(e,t),Object.setPrototypeOf(e,dr.prototype),e};function dr(t){return t0(t)}Object.setPrototypeOf(dr.prototype,Function.prototype);for(let[t,e]of Object.entries(Le))Ht[t]={get(){let r=Oi(this,Bo(e.open,e.close,this[Ft]),this[pr]);return Object.defineProperty(this,t,{value:r}),r}};Ht.visible={get(){let t=Oi(this,this[Ft],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var wo=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?Le[r].ansi16m(...i):e==="ansi256"?Le[r].ansi256(Le.rgbToAnsi256(...i)):Le[r].ansi(Le.rgbToAnsi(...i)):t==="hex"?wo("rgb",e,r,...Le.hexToRgb(...i)):Le[r][t](...i),r0=["rgb","hex","ansi256"];for(let t of r0){Ht[t]={get(){let{level:r}=this;return function(...i){let n=Bo(wo(t,ih[r],"color",...i),Le.color.close,this[Ft]);return Oi(this,n,this[pr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ht[e]={get(){let{level:r}=this;return function(...i){let n=Bo(wo(t,ih[r],"bgColor",...i),Le.bgColor.close,this[Ft]);return Oi(this,n,this[pr])}}}}var i0=Object.defineProperties(()=>{},{...Ht,level:{enumerable:!0,get(){return this[So].level},set(t){this[So].level=t}}}),Bo=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},Oi=(t,e,r)=>{let i=(...n)=>n0(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,i0),i[So]=t,i[Ft]=e,i[pr]=r,i},n0=(t,e)=>{if(t.level<=0||!e)return t[pr]?"":e;let r=t[Ft];if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=ZE(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
38
+ `);return s!==-1&&(e=zE(e,n,i,s)),i+e+n};Object.defineProperties(dr.prototype,Ht);var s0=dr(),Sv=dr({level:rh?rh.level:0}),o0=s0,a0={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},l0={"cp -rf":{win32:t=>{let e="xcopy /E /S /G /Q /Y",r=t.map(i=>i.endsWith("\\")?i:`${i}\\`).map(i=>i.replace(/\*\\$/,""));return`${e} ${r.join(" ")}`}},ln:{win32:t=>`mklink /D ${t.join(" ")}`},pkill:{win32:t=>`taskkill /T /F /pid ${t.join(" ")}`}},u0=(t,e,r)=>{let i={...a0,...e},n={...l0,...r},s=a=>{let l=process.platform,u=i[l];if(u)return u(a);let[c,...f]=a.split(" ");return{cmd:c,args:f}},o=(a=>{let l=Object.entries(n);for(let[u,c]of l)if(a.startsWith(u)){let f=process.platform,h=c[f];if(!h)break;let C=a.slice(u.length).trim().split(" ");return h(C)}return a})(t);return s(o)},c0=process.platform==="linux"||process.platform==="darwin",Ro=process.platform==="win32",f0={stdio:"pipe",shell:!0,detached:!Ro,env:process.env},h0={log:!0,commandTranslations:{},shellTranslations:{},...f0},Ee=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...i}=h0)=>{let n=null;return{childProcess:n,async run(s){if(n)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&c0&&(l="posix");let u=s[l];if(!u)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=u}let{cmd:o,args:a}=u0(s,r,e);return t&&console.log(o0.dim(`
39
39
  $ ${o} ${a.join(" ")}
40
- `)),await new Promise((l,u)=>{i=Hy(o,a,n);let c="",f="";if(!i)throw new Error("Child process was not set.");let h=x=>{i=null;let m={code:x,stdout:c,stderr:f};x===0||x===1&&!Qs?l(m):u(m)};i.stdout?.on("data",x=>{c+=x.toString()}),i.stderr?.on("data",x=>{f+=x.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(Qs)qy(`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},fb={".mts":{...Ht,loader:"ts"},".jsx":{...Ht,loader:"jsx"},".tsx":{...Ht,loader:"tsx"},".cts":{...Ht,loader:"ts"},".ts":{...Ht,loader:"ts"},".json":{...Ht,loader:"json"}},ES=Object.keys(fb);var zs=()=>{let t=process.cwd(),e=Zs(t,"src"),r=Zs(t,"dist");return{cwd:t,srcDir:e,outDir:r}},eo=t=>{t=Zs(t);let{srcDir:e,outDir:r}=zs();return t.replace(e,r).replace(qt,".js").replace(_t,".js")};var hb={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(hb).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 pb}from"fs/promises";import{resolve as db}from"path";var zf=async()=>{let t=process.cwd(),e=db(t,"package.json");return await pb(e,"utf-8")};var nh=Be(ss(),1);import{existsSync as Eb}from"fs";import{writeFile as Sb}from"fs/promises";import{isAbsolute as wb,resolve as Ab}from"path";import{existsSync as eh}from"fs";import{readFile as gb}from"fs/promises";import{dirname as _b,normalize as mb,posix as Tn,resolve as yb}from"path";var bb=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],vb=async(t,e)=>{let r=_b(mb(e)),n=Pn(yb(r,t)),i=n.replace(Tn.extname(n),"");for(let s of bb){let o=`${i}${s}`,a=`${i}/index${s}`;if(eh(o))return o;if(eh(a))return a}},Pn=t=>t.replace(/\\/g,"/"),xb=(t,e)=>{t=Pn(t),e=Pn(e);let r=Tn.relative(Tn.dirname(t),e);return r.startsWith(".")?r:`./${r}`},ro=async t=>{let e=Se(ro);e.log("Getting rewritten specifiers:",{modulePath:t}),t=Pn(t);let r=new RegExp(th,"g"),n=await gb(t,"utf8"),i=n.match(r);if(e.log("Found import statements:",{importStatements:i}),i)for(let s of i){let o=new RegExp(rh),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(".")||Tn.extname(l))continue;let u=await vb(l,t);if(!u)throw new Error(`Could not resolve specifier "${l}" from "${t}"`);e.log("Resolved specifier:",{resolvedSpecifier:u});let c=xb(t,u);e.log("Specifier replacement:",{specifierReplacement:c});let f=s.replace(l,c);e.log("Import statement replacement:",{importStatementReplacement:f}),n=n.replace(s,f)}return n};var GS=`(^|(?<=[
41
- \r;] *))(import) *({?)[^
42
- \r;]+(((from)[
43
- \r; *]+)|(["'][
44
- \r;]))`,YS=`(^|(?<=[
45
- \r;] *))(export) *({?)[^
46
- \r;]+(((from)[
47
- \r; *]+)|(["'][
48
- \r;]))`,th=`(^|(?<=[
49
- \r;] *))(import|export) *({?)[^
50
- \r;]+(((from)[
51
- \r; *]+)|(["'][
52
- \r;]))`,rh=`(?<=["'])([^
53
- \r]+)(?=['"])`,pr=async(t="dist/**/*.js")=>{let e=Se(pr),n=wb(t)&&Eb(t)?[t]:nh.default.sync(t);e.log("Normalizing import/require specifiers:",{files:t,filesToNormalize:n});for(let i of n){let s=Ab(i),o=await ro(s);e.log("Normalizing",{file:i,normalized:o}),await Sb(s,o,{flag:"w",encoding:"utf-8"})}e.log("Normalized",{filesToNormalize:n})};import{readFileSync as Rb}from"fs";function Cb(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=Rb(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 Cb(process.stdin)).toString()};var Bb=`import React from "react";
40
+ `)),await new Promise((l,u)=>{n=$E(o,a,i);let c="",f="";if(!n)throw new Error("Child process was not set.");let h=C=>{n=null;let _={code:C,stdout:c,stderr:f};C===0||C===1&&!Ro?l(_):u(_)};n.stdout?.on("data",C=>{c+=C.toString()}),n.stderr?.on("data",C=>{f+=C.toString()}),n.on("close",h),n.on("exit",h),n.on("error",h),n.stdout?.pipe(process.stdout),n.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(n?.pid)if(Ro)jE(`taskkill /t /f /pid ${n.pid}`);else return process.kill(-n.pid,s);return!0}}};import{extname as Iv,resolve as Io}from"path";var $t=/\.[mc]?tsx?(?=\?|$)/;var _t=/\.([mc])?[tj]sx$/,nh=/\.([mc])?[tj]sx?$/,qt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},p0={".mts":{...qt,loader:"ts"},".jsx":{...qt,loader:"jsx"},".tsx":{...qt,loader:"tsx"},".cts":{...qt,loader:"ts"},".ts":{...qt,loader:"ts"},".json":{...qt,loader:"json"}},Bv=Object.keys(p0);var Oo=()=>{let t=process.cwd(),e=Io(t,"src"),r=Io(t,"dist");return{cwd:t,srcDir:e,outDir:r}},To=t=>{t=Io(t);let{srcDir:e,outDir:r}=Oo();return t.replace(e,r).replace($t,".js").replace(_t,".js")};var d0={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Do=async()=>{let t=xe(Do),e=Ee({log:!1}),r=Object.entries(d0).map(([n,s])=>`--${n} ${s}`).join(" "),i=`tsc -p tsconfig.json ${r}`;t.log(`Calling: ${i}`),await e.run(`tsc -p tsconfig.json ${r}`)};import{readFile as A0}from"fs/promises";import{resolve as g0}from"path";var sh=async()=>{let t=process.cwd(),e=g0(t,"package.json");return await A0(e,"utf-8")};var ah=Ne(Ps(),1);import{existsSync as B0}from"fs";import{writeFile as R0}from"fs/promises";import{isAbsolute as Q0,resolve as I0}from"path";import{dirname as y0,normalize as C0,posix as Ti,resolve as b0}from"path";import{existsSync as oh}from"fs";import{readFile as v0}from"fs/promises";var _0=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Lo(t,e="@"){if(!U)return Po.then(()=>Lo(t));let r=t.length+1,i=(U.__heap_base.value||U.__heap_base)+4*r-U.memory.buffer.byteLength;i>0&&U.memory.grow(Math.ceil(i/65536));let n=U.sa(r-1);if((_0?E0:m0)(t,new Uint16Array(U.memory.buffer,n,r)),!U.parse())throw Object.assign(new Error(`Parse error ${e}:${t.slice(0,U.e()).split(`
41
+ `).length}:${U.e()-t.lastIndexOf(`
42
+ `,U.e()-1)}`),{idx:U.e()});let s=[],o=[];for(;U.ri();){let l=U.is(),u=U.ie(),c=U.ai(),f=U.id(),h=U.ss(),C=U.se(),_;U.ip()&&(_=a(t.slice(f===-1?l-1:l,f===-1?u+1:u))),s.push({n:_,s:l,e:u,ss:h,se:C,d:f,a:c})}for(;U.re();){let l=t.slice(U.es(),U.ee()),u=l[0];o.push(u==='"'||u==="'"?a(l):l)}function a(l){try{return(0,eval)(l)}catch{}}return[s,o,!!U.f()]}function m0(t,e){let r=t.length,i=0;for(;i<r;){let n=t.charCodeAt(i);e[i++]=(255&n)<<8|n>>>8}}function E0(t,e){let r=t.length,i=0;for(;i<r;)e[i]=t.charCodeAt(i++)}var U,Po=WebAssembly.compile((ko="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAkoAhQiAEEAKAKkCUcNAEF/DwsCQCAAQQAoAqgJRw0AQX4PCyAAQQAoArAJa0EBdQsLAEEAKAK8CS0AGAsVAEEAKALACSgCAEEAKAKwCWtBAXULFQBBACgCwAkoAgRBACgCsAlrQQF1CyUBAX9BAEEAKAK8CSIAQRxqQbQJIAAbKAIAIgA2ArwJIABBAEcLJQEBf0EAQQAoAsAJIgBBCGpBuAkgABsoAgAiADYCwAkgAEEARwsIAEEALQDkCQvnCwEGfyMAQYDaAGsiASQAQQBBAToA5AlBAEH//wM7AewJQQBBACgCrAk2AvAJQQBBACgCsAlBfmoiAjYCiApBACACQQAoAtQJQQF0aiIDNgKMCkEAQQA7AeYJQQBBADsB6AlBAEEAOwHqCUEAQQA6APQJQQBBADYC4AlBAEEAOgDQCUEAIAFBgNIAajYC+AlBACABQYASajYC/AlBACABNgKACkEAQQA6AIQKAkACQAJAAkADQEEAIAJBAmoiBDYCiAogAiADTw0BAkAgBC8BACIDQXdqQQVJDQACQAJAAkACQAJAIANBm39qDgUBCAgIAgALIANBIEYNBCADQS9GDQMgA0E7Rg0CDAcLQQAvAeoJDQEgBBARRQ0BIAJBBGpBgghBChAoDQEQEkEALQDkCQ0BQQBBACgCiAoiAjYC8AkMBwsgBBARRQ0AIAJBBGpBjAhBChAoDQAQEwtBAEEAKAKICjYC8AkMAQsCQCACLwEEIgRBKkYNACAEQS9HDQQQFAwBC0EBEBULQQAoAowKIQNBACgCiAohAgwACwtBACEDIAQhAkEALQDQCQ0CDAELQQAgAjYCiApBAEEAOgDkCQsDQEEAIAJBAmoiBDYCiAoCQAJAAkACQAJAAkAgAkEAKAKMCk8NACAELwEAIgNBd2pBBUkNBQJAAkACQAJAAkACQAJAAkACQAJAIANBYGoOCg8OCA4ODg4HAQIACwJAAkACQAJAIANBoH9qDgoIEREDEQERERECAAsgA0GFf2oOAwUQBgsLQQAvAeoJDQ8gBBARRQ0PIAJBBGpBgghBChAoDQ8QEgwPCyAEEBFFDQ4gAkEEakGMCEEKECgNDhATDA4LIAQQEUUNDSACKQAEQuyAhIOwjsA5Ug0NIAIvAQwiBEF3aiICQRdLDQtBASACdEGfgIAEcUUNCwwMC0EAQQAvAeoJIgJBAWo7AeoJQQAoAvwJIAJBAnRqQQAoAvAJNgIADAwLQQAvAeoJIgNFDQhBACADQX9qIgU7AeoJQQAvAegJIgNFDQsgA0ECdEEAKAKACmpBfGooAgAiBigCFEEAKAL8CSAFQf//A3FBAnRqKAIARw0LAkAgBigCBA0AIAYgBDYCBAtBACADQX9qOwHoCSAGIAJBBGo2AgwMCwsCQEEAKALwCSIELwEAQSlHDQBBACgCxAkiAkUNACACKAIEIARHDQBBAEEAKALICSICNgLECQJAIAJFDQAgAkEANgIcDAELQQBBADYCtAkLIAFBgBBqQQAvAeoJIgJqQQAtAIQKOgAAQQAgAkEBajsB6glBACgC/AkgAkECdGogBDYCAEEAQQA6AIQKDAoLQQAvAeoJIgJFDQZBACACQX9qIgM7AeoJIAJBAC8B7AkiBEcNAUEAQQAvAeYJQX9qIgI7AeYJQQBBACgC+AkgAkH//wNxQQF0ai8BADsB7AkLEBYMCAsgBEH//wNGDQcgA0H//wNxIARJDQQMBwtBJxAXDAYLQSIQFwwFCyADQS9HDQQCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAUDAcLQQEQFQwGCwJAAkACQAJAQQAoAvAJIgQvAQAiAhAYRQ0AAkACQAJAIAJBVWoOBAEFAgAFCyAEQX5qLwEAQVBqQf//A3FBCkkNAwwECyAEQX5qLwEAQStGDQIMAwsgBEF+ai8BAEEtRg0BDAILAkAgAkH9AEYNACACQSlHDQFBACgC/AlBAC8B6glBAnRqKAIAEBlFDQEMAgtBACgC/AlBAC8B6gkiA0ECdGooAgAQGg0BIAFBgBBqIANqLQAADQELIAQQGw0AIAJFDQBBASEEIAJBL0ZBAC0A9AlBAEdxRQ0BCxAcQQAhBAtBACAEOgD0CQwEC0EALwHsCUH//wNGQQAvAeoJRXFBAC0A0AlFcUEALwHoCUVxIQMMBgsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAKAKMCiECAkACQANAIAEiA0ECaiEBIAMgAk8NASABLwEAIgQgAEYNAgJAIARB3ABGDQAgBEF2ag4EAgEBAgELIANBBGohASADLwEEQQ1HDQAgA0EGaiABIAMvAQZBCkYbIQEMAAsLQQAgATYCiAoQHQ8LQQAgATYCiAoLbAEBfwJAAkAgAEFfaiIBQQVLDQBBASABdEExcQ0BCyAAQUZqQf//A3FBBkkNACAAQSlHIABBWGpB//8DcUEHSXENAAJAIABBpX9qDgQBAAABAAsgAEH9AEcgAEGFf2pB//8DcUEESXEPC0EBCy4BAX9BASEBAkAgAEH2CEEFEB8NACAAQYAJQQMQHw0AIABBhglBAhAfIQELIAELgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQZIJQQYQHw8LIABBfmovAQBBPUYPCyAAQX5qQYoJQQQQHw8LIABBfmpBnglBAxAfDwtBACEBCyABC5MDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCAgICAgICAMECAgFCAYICAcICwJAAkAgAEF+ai8BAEGXf2oOBAAJCQEJCyAAQXxqQa4IQQIQHw8LIABBfGpBsghBAxAfDwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABAgDwsgAEF6akHjABAgDwsgAEF8akG4CEEEEB8PCyAAQX5qLwEAQe8ARw0FIABBfGovAQBB5QBHDQUCQCAAQXpqLwEAIgJB8ABGDQAgAkHjAEcNBiAAQXhqQcAIQQYQHw8LIABBeGpBzAhBAhAfDwtBASEBIABBfmoiAEHpABAgDQQgAEHQCEEFEB8PCyAAQX5qQeQAECAPCyAAQX5qQdoIQQcQHw8LIABBfmpB6AhBBBAfDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECAPCyAAQXxqQfAIQQMQHyEBCyABC3ABAn8CQAJAA0BBAEEAKAKICiIAQQJqIgE2AogKIABBACgCjApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQJxoMAQtBACAAQQRqNgKICgwACwsQHQsLNQEBf0EAQQE6ANAJQQAoAogKIQBBAEEAKAKMCkECajYCiApBACAAQQAoArAJa0EBdTYC4AkLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQJXEhAQsgAQtJAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgCsAkiBUkNACAAIAEgAhAoDQACQCAAIAVHDQBBAQ8LIAQvAQAQHiEDCyADCz0BAn9BACECAkBBACgCsAkiAyAASw0AIAAvAQAgAUcNAAJAIAMgAEcNAEEBDwsgAEF+ai8BABAeIQILIAILnAEBA39BACgCiAohAQJAA0ACQAJAIAEvAQAiAkEvRw0AAkAgAS8BAiIBQSpGDQAgAUEvRw0EEBQMAgsgABAVDAELAkACQCAARQ0AIAJBd2oiAUEXSw0BQQEgAXRBn4CABHFFDQEMAgsgAhAjRQ0DDAELIAJBoAFHDQILQQBBACgCiAoiA0ECaiIBNgKICiADQQAoAowKSQ0ACwsgAgvCAwEBfwJAIAFBIkYNACABQSdGDQAQHQ8LQQAoAogKIQIgARAXIAAgAkECakEAKAKICkEAKAKkCRABQQBBACgCiApBAmo2AogKQQAQISEAQQAoAogKIQECQAJAIABB4QBHDQAgAUECakGkCEEKEChFDQELQQAgAUF+ajYCiAoPC0EAIAFBDGo2AogKAkBBARAhQfsARg0AQQAgATYCiAoPC0EAKAKICiICIQADQEEAIABBAmo2AogKAkACQAJAQQEQISIAQSJGDQAgAEEnRw0BQScQF0EAQQAoAogKQQJqNgKICkEBECEhAAwCC0EiEBdBAEEAKAKICkECajYCiApBARAhIQAMAQsgABAkIQALAkAgAEE6Rg0AQQAgATYCiAoPC0EAQQAoAogKQQJqNgKICgJAQQEQISIAQSJGDQAgAEEnRg0AQQAgATYCiAoPCyAAEBdBAEEAKAKICkECajYCiAoCQAJAQQEQISIAQSxGDQAgAEH9AEYNAUEAIAE2AogKDwtBAEEAKAKICkECajYCiApBARAhQf0ARg0AQQAoAogKIQAMAQsLQQAoAsQJIgEgAjYCECABQQAoAogKQQJqNgIMCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(ko,"base64"):Uint8Array.from(atob(ko),t=>t.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:t})=>{U=t}),ko;await Po;var x0=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],S0=async(t,e)=>{let r=y0(C0(e)),i=Di(b0(r,t)),n=i.replace(Ti.extname(i),"");for(let s of x0){let o=`${n}${s}`,a=`${n}/index${s}`;if(oh(o))return o;if(oh(a))return a}},Di=t=>t.replace(/\\/g,"/"),w0=(t,e)=>{t=Di(t),e=Di(e);let r=Ti.relative(Ti.dirname(t),e);return r.startsWith(".")?r:`./${r}`},No=async t=>{let e=xe(No);e.log("Getting rewritten specifiers:",{modulePath:t}),t=Di(t);let r=await v0(t,"utf8"),[i]=await Lo(r),n=i.filter(o=>typeof o.n<"u");e.log("Found import statements:",{namedImportExportSpecifiers:n});let s=r.slice(0);for(let o of n){let a=o.n;e.log("Found specifier:",{specifier:a});let l=r.substring(o.ss,o.se);if(!a)throw new Error(`Could not find specifier in import statement: "${l}"`);if(!a.startsWith(".")||Ti.extname(a))continue;let u=await S0(a,t);if(!u)throw new Error(`Could not resolve specifier "${a}" from "${t}"`);e.log("Resolved specifier:",{resolvedSpecifier:u});let c=w0(t,u);e.log("Specifier replacement:",{specifierReplacement:c});let f=l.replace(a,c);e.log("Replacing import statement:",{specifier:a,importStatement:l,importStatementReplacement:f}),s=s.replace(l,f)}return s};var Ar=async(t="dist/**/*.js")=>{let e=xe(Ar),i=Q0(t)&&B0(t)?[t]:ah.default.sync(t);e.log("Normalizing import/require specifiers:",{files:t,filesToNormalize:i});for(let n of i){let s=I0(n),o=await No(s);e.log("Normalizing",{file:n,normalized:o}),await R0(s,o,{flag:"w",encoding:"utf-8"})}e.log("Normalized",{filesToNormalize:i})};import{readFileSync as O0}from"fs";function T0(t){return new Promise((e,r)=>{let i=[];function n(l){i.push(l)}function s(){a(),e(Buffer.concat(i))}function o(l){a(),r(l)}function a(){t.removeListener("data",n),t.removeListener("end",s),t.removeListener("error",o)}t.on("data",n),t.on("end",s),t.on("error",o)})}var Mo=async()=>{let t=xe(Mo);t.log("Reading stdin");try{let r=O0(0).toString();if(r)return t.log("Found stdin",{stdin:r}),r}catch(r){t.log("Could not read stdin",{e:r})}return Se(B.gray("Type your source code. Press Ctrl+D to finish.")),(await T0(process.stdin)).toString()};var q0=`import React from "react";
54
43
  import ReactDOM from "react-dom";
55
- `,oh=t=>{let e=` ${t} `;we(C.bgBlue(C.bold(C.white(e))))},Ib=async()=>{let t;if(uh("dist/package.json")?t=JSON.parse(await ch("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",await Db("dist/package.json",JSON.stringify(t,null,2))},ah=(t,e,r)=>{e=Dn(e);let n=eo(e);return{stdin:{contents:t,sourcefile:e,resolveDir:fh(e),loader:r},outdir:void 0,outfile:n}},lh=async(t,e,r)=>{t=Dn(t),e=Dn(e);let o=["npx tailwindcss",r?"":"-m","--postcss postcss.config.js",`-i ${t}`,"-o",e],a=ye({log:!1,stdio:"ignore"}),l=o.join(" "),{code:u,stdout:c,stderr:f}=await a.run(l);if(u!==0)throw new Error(`Building CSS bundle exited with code ${u} for ${t}.
44
+ `,ch=t=>{let e=` ${t} `;Se(B.bgBlue(B.bold(B.white(e))))},$0=async()=>{let t;if(qo("dist/package.json")?t=JSON.parse(await ph("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",await P0("dist/package.json",JSON.stringify(t,null,2))},fh=(t,e,r)=>{e=gr(e);let i=To(e);return{stdin:{contents:t,sourcefile:e,resolveDir:dh(e),loader:r},outdir:void 0,outfile:i}},hh=async(t,e,r)=>{t=gr(t),e=gr(e);let o=["npx tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${t}`,`-o ${e}`];qo(gr(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Ee({log:!1,stdio:"ignore"}),l=o.join(" "),{code:u,stdout:c,stderr:f}=await a.run(l);if(u!==0)throw new Error(`Building CSS bundle exited with code ${u} for ${t}.
56
45
  \rTried running: ${l}.
57
- \rError: ${c+f}`)},Fb=`
46
+ \rError: ${c+f}`)},j0=`
58
47
  typeof document>"u"&&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)}})();
59
- `,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,stdin:a=void 0,stdinFile:l=void 0})=>{sh.NODE_ENV=n?"development":"production";let u=Se(jt);n&&(s=!0);let{cwd:c,srcDir:f,outDir:h}=zs(),x=await zf(),m=JSON.parse(x),y={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")}},S=["esbuild","*.png"],E={...y,bundle:i,absWorkingDir:c,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:m?.platform??"node",write:!o,external:i?S:void 0,banner:i?{js:Fb}:void 0},M="";if(a){u.log("Building file from stdin",{stdin:a,stdinFile:l,noWrite:o}),l||(we(C.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof a=="string"&&a.length?M=a:M=await no();let w={...y,sourcefile:l,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await Nb(M,w)).code;{let p=ah(M,l,"tsx");await io({...E,...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}),oh(`${C.bold("TS Module")} [${sh.NODE_ENV}]`);let N=so.default.sync(t,{cwd:c}).filter(w=>Lb(w)!==".d.ts").map(w=>Dn(w));if(Mb(t)){N.length||N.push(t);let w=t.replace(f,h).replace(qt,".js").replace(_t,".js");u.log("Cleaning emitted file:",{outfile:w}),await ih(w,{force:!0})}else u.log("Cleaning old output:",{outDir:h}),await ih(h,{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 ch(w,"utf-8"),H=Bb+p,$=ah(H,w,"tsx");await io({...E,...$})})),_e("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({...E,entryPoints:q.filter(w=>!w.endsWith(".d.ts"))}),_e("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=eo(w);u.log("Copying non-source file:",{file:w,emittedFile:p}),await Pb(fh(p),{recursive:!0}),await Tb(w,p,Ob.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let w=t.replace(f,h).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`),_e("Normalized import specifiers.").succeed()}if(await Ib()&&_e('Forced "type": "module" in output.').succeed(),s)return;if(uh(kb(e))){u.log("Building styles for production.");let{style:w="./dist/bundle.css"}=m;if(u.log("Building style bundle.",{bundleInput:e,bundleOutput:w,dev:n}),await lh(e,w,n),i){u.log("Bundling all styles.");let p=so.default.sync("dist/**/*.css"),H=_e("Bundling emitted styles.").start();await Promise.all(p.map(async $=>await lh($,$,n))),H.succeed(`Bundled all styles to ${C.bold(w)}.`)}}else we(C.grey(`Bundle styles not found for this project.
60
- \rChecked: `+C.bold(e)));oh("Running post-build setup.");let F=_e("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 hh}from"path";import{fileURLToPath as qb}from"url";var ph={default:[],react:["@tsmodule/react","react","react-dom"]},oo={default:["@types/node","@typescript-eslint/eslint-plugin"],react:["next","@types/node","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},dr=hh(Hb(qb(import.meta.url)),".."),dh=async()=>{let t=await $b(hh(dr,"package.json"),"utf-8");return JSON.parse(t)};import{mkdir as jb}from"fs/promises";import{resolve as gh}from"path";var ao=async(t,e)=>{let r=ye(),n=gh(dr,`./templates/${t}`),i=gh(e);await jb(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};import _h from"fs/promises";import{resolve as Ub}from"path";var mh=async t=>{let e=Ub(process.cwd(),t,"package.json"),r=await _h.readFile(e,"utf-8"),n=JSON.parse(r);n.name=t,await _h.writeFile(e,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var yh=async(t,{react:e=!1})=>{let r=ye(),n=_e(`Creating new module ${C.blueBright(t)}.`).start();await ao("default",t),e&&await ao("react",t),await mh(t),n.succeed("Project created."),process.chdir(t);let i=[],s=["@tsmodule/tsmodule"];e?(i.push(...ph.react),s.push(...oo.react)):s.push(...oo.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("Set up as Git repository.")};import{relative as iv,resolve as sv}from"path";import{existsSync as ov}from"fs";import{lstat as av}from"fs/promises";var $h=Be(Bh(),1);var Ih=()=>{console.clear()},Fh=t=>{we(`
61
- `,C.gray(`Built ${C.bold(t)}.`),`
62
- `,C.blue(new Date().toLocaleString()))},Hh=async()=>{let t=process.cwd(),e=ye();process.platform!=="win32"&&await e.run("clear"),Ih(),await jt({dev:!0}),Fh("src/**/*"),(0,$h.default)(sv(t,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!ov(n)||(await av(n)).isDirectory())return;Ih();let a=Date.now();await jt({dev:!0,input:n});let l=Date.now()-a;_e(C.blueBright(`Dev refresh finished in ${C.bold(`${l}ms`)}.`)).succeed(),Fh(iv(t,n))})};import{pathToFileURL as lv}from"url";import{resolve as uv}from"path";var qh=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 dh(),mt=new Ko;mt.name(C.white(C.bold("tsmodule"))).usage(C.white(C.bold("<file | command> [options]"))).description(C.blueBright(`A tool for building TypeScript modules.
48
+ `,jt=async({input:t="src/**/*",styles:e="src/components/index.css",target:r="esnext",dev:i=!1,bundle:n=!1,runtimeOnly:s=i,noWrite:o=!1,stdin:a=void 0,stdinFile:l=void 0})=>{uh.NODE_ENV=i?"development":"production";let u=xe(jt);i&&(s=!0);let{cwd:c,srcDir:f,outDir:h}=Oo(),C=await sh(),_=JSON.parse(C),m={treeShaking:n,target:r,minify:!i,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:i?"warning":"error",define:{"process.env.NODE_ENV":i?JSON.stringify("development"):JSON.stringify("production")}},v=["esbuild","*.png"],b={...m,bundle:n,absWorkingDir:c,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!o,external:n?v:void 0,banner:n?{js:j0}:void 0},D="";if(a){u.log("Building file from stdin",{stdin:a,stdinFile:l,noWrite:o}),l||(Se(B.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof a=="string"&&a.length?D=a:D=await Mo();let x={...m,sourcefile:l,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await H0(D,x)).code;{let p=fh(D,l,"tsx");await Fo({...b,...p}),Se(B.green("Successfully built stdin file to dist/.")),Se(B.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:t,dev:i,runtimeOnly:s}),ch(`${B.bold("TS Module")} [${uh.NODE_ENV}]`);let L=Ho.default.sync(t,{cwd:c}).filter(x=>N0(x)!==".d.ts").map(x=>gr(x));if(M0(t)){L.length||L.push(t);let x=t.replace(f,h).replace($t,".js").replace(_t,".js");u.log("Cleaning emitted file:",{outfile:x}),await lh(x,{force:!0})}else u.log("Cleaning old output:",{outDir:h}),await lh(h,{force:!0,recursive:!0});let ee=L.filter(x=>_t.test(x));u.log("Compiling TSX files:",{tsxJsxInput:ee});let Q=ee.filter(x=>!x.endsWith(".d.ts"));await Promise.all(Q.map(async x=>{let p=await ph(x,"utf-8"),H=q0+p,F=fh(H,x,"tsx");await Fo({...b,...F})})),_e("Built TSX files.").succeed();let q=L.filter(x=>$t.test(x)).filter(x=>!_t.test(x));u.log("Compiling TS files:",{tsJsInput:q}),await Fo({...b,entryPoints:q.filter(x=>!x.endsWith(".d.ts"))}),_e("Built TS files.").succeed();let I=L.filter(x=>!nh.test(x));u.log("Copying non-JS/TS files.",{allFiles:L,nonTsJsInput:I});for(let x of I){let p=To(x);u.log("Copying non-source file:",{file:x,emittedFile:p}),await L0(dh(p),{recursive:!0}),await k0(x,p,D0.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let x=t.replace(f,h).replace(/^(\.\/)?src\//,"dist/").replace($t,".js").replace(_t,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:x}),await Ar(x.endsWith(".js")?x:`${x}.js`),_e("Normalized import specifiers.").succeed()}if(await $0()&&_e('Forced "type": "module" in output.').succeed(),s)return;if(qo(F0(e))){u.log("Building styles for production.");let{style:x="./dist/bundle.css"}=_;if(u.log("Building style bundle.",{bundleInput:e,bundleOutput:x,dev:i}),await hh(e,x,i),n){u.log("Bundling all styles.");let p=Ho.default.sync("dist/**/*.css"),H=_e("Bundling emitted styles.").start();await Promise.all(p.map(async F=>await hh(F,F,i))),H.succeed(`Bundled all styles to ${B.bold(x)}.`)}}else Se(B.grey(`Bundle styles not found for this project.
49
+ \rChecked: `+B.bold(e)));ch("Running post-build setup.");let M=_e("Generating type declarations.").start();await Do(),M.succeed(`Generated delcarations for ${L.length} files.`),Se(B.green("Build complete."))};import{readFile as G0}from"fs/promises";import{dirname as U0,resolve as Ah}from"path";import{fileURLToPath as K0}from"url";var $o={default:[],react:["@tsmodule/react","react","react-dom"]},jo={default:["@types/node","ava","eslint","@typescript-eslint/eslint-plugin","@typescript-eslint/parser"],react:["next","@types/node","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},_r=Ah(U0(K0(import.meta.url)),".."),gh=async()=>{let t=await G0(Ah(_r,"package.json"),"utf-8");return JSON.parse(t)};import{mkdir as J0}from"fs/promises";import{resolve as _h}from"path";var Go=async(t,e)=>{let r=Ee(),i=_h(_r,`./templates/${t}`),n=_h(e);await J0(n,{recursive:!0}),await r.run({posix:`cp -rf ${i}/. ${n}`,win32:`xcopy /E /I /Q /Y ${i}\\ ${n}\\`})};import mh from"fs/promises";import{resolve as V0}from"path";var Eh=async t=>{let e=V0(process.cwd(),t,"package.json"),r=await mh.readFile(e,"utf-8"),i=JSON.parse(r);i.name=t,await mh.writeFile(e,JSON.stringify(i,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var yh=async(t,{react:e=!1})=>{let r=Ee(),i=_e(`Creating new module ${B.blueBright(t)}.`).start();await Go("default",t),e&&await Go("react",t),await Eh(t),i.succeed("Project created."),process.chdir(t);let n=[...$o.default],s=[...jo.default];e&&(n.push(...$o.react),s.push(...jo.react)),n.length&&await r.run(`yarn add ${n.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),i.succeed("Dependencies installed."),await r.run("git init"),i.succeed("Set up as Git repository.")};import{relative as uy,resolve as cy}from"path";import{existsSync as fy}from"fs";import{lstat as hy}from"fs/promises";var qh=Ne(Mh(),1);var Fh=()=>{console.clear()},Hh=t=>{Se(`
50
+ `,B.gray(`Built ${B.bold(t)}.`),`
51
+ `,B.blue(new Date().toLocaleString()))},$h=async()=>{let t=process.cwd(),e=Ee();process.platform!=="win32"&&await e.run("clear"),Fh(),await jt({dev:!0}),Hh("src/**/*"),(0,qh.default)(cy(t,"src"),{recursive:!0}).on("change",async(r,i)=>{if(!fy(i)||(await hy(i)).isDirectory())return;Fh();let a=Date.now();await jt({dev:!0,input:i});let l=Date.now()-a;_e(B.blueBright(`Dev refresh finished in ${B.bold(`${l}ms`)}.`)).succeed(),Hh(uy(t,i))})};import{pathToFileURL as py}from"url";import{resolve as dy}from"path";var jh=async()=>{let t=dy(_r,"dist/loader/index.js"),e=["--no-warnings","--loader",py(t).href,...process.argv.slice(2)];await Ee().run(`node ${e.join(" ")}`)};var{version:Ay}=await gh(),mt=new wa;mt.name(B.white(B.bold("tsmodule"))).usage(B.white(B.bold("<file | command> [options]"))).description(B.blueBright(`A tool for building TypeScript modules.
63
52
 
64
- Run TS directly: ${C.bold("tsmodule src/index.ts")}
65
- Use a command: ${C.bold("tsmodule build")}`)).version(String(cv));mt.command("dev").description("Build and watch for changes.").action(Hh);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.
53
+ Run TS directly: ${B.bold("tsmodule src/index.ts")}
54
+ Use a command: ${B.bold("tsmodule build")}`)).version(String(Ay));mt.command("dev").description("Build and watch for changes.").action($h);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.
66
55
  For programmatic use alongside { stdin: ... }.`,!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(yh);mt.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
67
- (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(qh);mt.parse(process.argv);export{YS as EXPORT_STATEMENT,th as IMPORT_OR_EXPORT_STATEMENT,rh as IMPORT_SPECIFIER_IN_CLAUSE,GS as IMPORT_STATEMENT,oh as bannerLog,jt as build,yh as create,Hh as dev,qh as execute,pr as normalizeImportSpecifiers};
56
+ (default: dist/**/*.js)`).action(async({files:t})=>{await Ar(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);export{ch as bannerLog,jt as build,yh as create,$h as dev,jh as execute,Ar as normalizeImportSpecifiers};
68
57
  /*!
69
58
  * fill-range <https://github.com/jonschlinkert/fill-range>
70
59
  *